From ed5c42f371e12815c6055572b0e11d5a13eb3d61 Mon Sep 17 00:00:00 2001 From: "azure-sdk-automation[bot]" <191533747+azure-sdk-automation[bot]@users.noreply.github.com> Date: Wed, 21 Oct 2026 10:41:42 +0800 Subject: [PATCH 01/22] Increment package versions for durabletask auto-releases (#50892) Co-authored-by: azure-sdk --- eng/versioning/version_client.txt | 2 +- .../azure-resourcemanager-durabletask/CHANGELOG.md | 10 ++++++++++ .../azure-resourcemanager-durabletask/pom.xml | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 7c0a6efef6505..161bbea047d23 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -466,7 +466,7 @@ com.azure.resourcemanager:azure-resourcemanager-pineconevectordb;1.0.0-beta.2;1. com.azure.resourcemanager:azure-resourcemanager-impactreporting;1.0.0-beta.1;1.0.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-migration-assessment;1.0.0-beta.1;1.0.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-databasewatcher;1.0.0-beta.1;1.0.0-beta.2 -com.azure.resourcemanager:azure-resourcemanager-durabletask;1.1.0;1.2.0-beta.1 +com.azure.resourcemanager:azure-resourcemanager-durabletask;1.1.0;1.2.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-arizeaiobservabilityeval;1.0.0;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-weightsandbiases;1.0.1;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-carbonoptimization;1.0.0;1.1.0-beta.1 diff --git a/sdk/durabletask/azure-resourcemanager-durabletask/CHANGELOG.md b/sdk/durabletask/azure-resourcemanager-durabletask/CHANGELOG.md index ab41c8edc33af..9af909fc44779 100644 --- a/sdk/durabletask/azure-resourcemanager-durabletask/CHANGELOG.md +++ b/sdk/durabletask/azure-resourcemanager-durabletask/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.2.0-beta.2 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.2.0-beta.1 (2026-10-20) - Azure Resource Manager Durable Task client library for Java. This package contains Microsoft Azure SDK for Durable Task Management SDK. Package api-version 2026-07-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). diff --git a/sdk/durabletask/azure-resourcemanager-durabletask/pom.xml b/sdk/durabletask/azure-resourcemanager-durabletask/pom.xml index 890d41ce476f4..9ef032b17052c 100644 --- a/sdk/durabletask/azure-resourcemanager-durabletask/pom.xml +++ b/sdk/durabletask/azure-resourcemanager-durabletask/pom.xml @@ -14,7 +14,7 @@ com.azure.resourcemanager azure-resourcemanager-durabletask - 1.2.0-beta.1 + 1.2.0-beta.2 jar Microsoft Azure SDK for Durable Task Management From e827d94d5eb45e92a7400a4cc59271b55aeb1329 Mon Sep 17 00:00:00 2001 From: "azure-sdk-automation[bot]" <191533747+azure-sdk-automation[bot]@users.noreply.github.com> Date: Wed, 21 Oct 2026 13:58:36 +1100 Subject: [PATCH 02/22] Configurations: 'specification/containerservice/resource-manager/Microsoft.ContainerService/aks/tspconfig.yaml', and CommitSHA: '225e9e606441aa3b48cbec26c4c02f54b32d16c3' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6981672 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. (#50894) Co-authored-by: azure-sdk --- .../CHANGELOG.md | 487 ++++- .../README.md | 2 +- .../pom.xml | 2 +- .../fluent/AgentFabricMembershipsClient.java | 349 ++++ .../fluent/AgentPoolsClient.java | 353 ++++ .../fluent/AlertConfigurationsClient.java | 346 ++++ .../ContainerServiceManagementClient.java | 70 + .../fluent/JWTAuthenticatorsClient.java | 352 ++++ .../fluent/LoadBalancersClient.java | 294 +++ .../fluent/MachinesClient.java | 172 ++ .../fluent/MaintenanceWindowsClient.java | 437 +++++ .../fluent/ManagedClusterSnapshotsClient.java | 324 ++++ .../fluent/ManagedClustersClient.java | 446 ++++- .../fluent/MeshMembershipsClient.java | 345 ++++ .../fluent/OperationStatusResultsClient.java | 249 +++ .../fluent/UpgradeInsightsClient.java | 246 +++ .../containerservice/fluent/VmSkusClient.java | 92 + .../models/AgentFabricMembershipInner.java | 210 +++ .../fluent/models/AgentPoolInner.java | 137 ++ .../models/AgentPoolUpgradeProfileInner.java | 10 + .../AgentPoolUpgradeProfileProperties.java | 24 + .../models/AlertConfigurationInner.java | 167 ++ .../GuardrailsAvailableVersionInner.java | 164 ++ .../fluent/models/IdentityBindingInner.java | 34 + .../fluent/models/JWTAuthenticatorInner.java | 185 ++ .../fluent/models/LoadBalancerInner.java | 298 ++++ .../fluent/models/LoadBalancerProperties.java | 259 +++ .../fluent/models/MachineInner.java | 29 +- .../models/MaintenanceConfigurationInner.java | 29 + .../MaintenanceConfigurationProperties.java | 37 + .../MaintenanceWindowResourceInner.java | 196 ++ ...agedClusterAgentPoolProfileProperties.java | 184 ++ .../fluent/models/ManagedClusterInner.java | 211 +++ .../models/ManagedClusterProperties.java | 283 +++ .../models/ManagedClusterSnapshotInner.java | 240 +++ .../ManagedClusterSnapshotProperties.java | 150 ++ .../fluent/models/MeshMembershipInner.java | 222 +++ .../fluent/models/NodeImageVersionInner.java | 134 ++ .../models/OperationStatusResultInner.java | 273 +++ .../fluent/models/PoolBootstrapDataInner.java | 145 ++ .../fluent/models/ResourceSkuInner.java | 307 ++++ .../SafeguardsAvailableVersionInner.java | 164 ++ .../fluent/models/UpgradeInsightInner.java | 170 ++ .../AgentFabricMembershipsClientImpl.java | 949 ++++++++++ .../implementation/AgentPoolsClientImpl.java | 753 ++++++++ .../AlertConfigurationsClientImpl.java | 938 ++++++++++ .../ContainerServiceManagementClientImpl.java | 162 +- .../JWTAuthenticatorsClientImpl.java | 948 ++++++++++ .../LoadBalancersClientImpl.java | 829 +++++++++ .../implementation/MachinesClientImpl.java | 364 ++++ .../MaintenanceWindowsClientImpl.java | 1239 +++++++++++++ .../ManagedClusterSnapshotsClientImpl.java | 1000 +++++++++++ .../ManagedClustersClientImpl.java | 1575 +++++++++++++++-- .../MeshMembershipsClientImpl.java | 937 ++++++++++ .../OperationStatusResultsClientImpl.java | 838 +++++++++ .../UpgradeInsightsClientImpl.java | 656 +++++++ .../implementation/VmSkusClientImpl.java | 331 ++++ .../AgentFabricMembershipsListResult.java | 115 ++ .../models/AlertConfigurationListResult.java | 114 ++ .../GuardrailsAvailableVersionsList.java | 115 ++ .../models/JWTAuthenticatorListResult.java | 114 ++ .../models/LoadBalancerListResult.java | 112 ++ .../MaintenanceWindowResourceListResult.java | 116 ++ .../ManagedClusterSnapshotListResult.java | 115 ++ .../models/MeshMembershipsListResult.java | 114 ++ .../models/NodeImageVersionsListResult.java | 114 ++ .../models/OperationStatusResultList.java | 114 ++ .../SafeguardsAvailableVersionsList.java | 115 ++ .../models/UpgradeInsightListResult.java | 113 ++ .../models/VmSkusListResult.java | 112 ++ .../models/AddonAutoscaling.java | 51 + .../AgentFabricMembershipProperties.java | 123 ++ ...gentFabricMembershipProvisioningState.java | 72 + .../models/AgentFabricMembershipSkuName.java | 51 + .../AgentPoolBlueGreenUpgradeSettings.java | 210 +++ ...entPoolGenerateUpgradeInsightsContent.java | 155 ++ .../models/AgentPoolMode.java | 13 + ...ntPoolNICPublicIPAddressConfiguration.java | 179 ++ .../AgentPoolNICPublicIPAddressVersion.java | 46 + .../models/AgentPoolNetworkInterface.java | 205 +++ .../models/AgentPoolNetworkInterfaceType.java | 55 + .../models/AgentPoolNetworkProfile.java | 95 + .../models/AgentPoolScopeEvaluation.java | 189 ++ .../models/AgentPoolType.java | 5 + .../models/AgentPoolUpdate.java | 96 + .../AgentPoolUpdateManualScaleProfile.java | 125 ++ .../models/AgentPoolUpdateProperties.java | 126 ++ .../models/AgentPoolUpdateScaleProfile.java | 99 ++ ...AgentPoolUpdateVirtualMachinesProfile.java | 99 ++ .../AgentPoolUpgradeInsightProperties.java | 236 +++ ...lUpgradeProfilePropertiesUpgradesItem.java | 18 + .../models/AgentPoolUpgradeSettings.java | 86 + .../models/AlertConfigurationMode.java | 52 + .../models/AlertConfigurationProperties.java | 155 ++ .../AlertConfigurationProvisioningState.java | 72 + .../models/AlertNotification.java | 102 ++ .../models/AllowedSubject.java | 161 ++ .../models/ArmImpactedResource.java | 101 ++ .../models/BackendPoolType.java | 6 + .../models/BastionProfile.java | 239 +++ .../containerservice/models/BastionSku.java | 52 + .../models/BootstrapAzureConfig.java | 135 ++ .../models/BootstrapComponentVersions.java | 113 ++ .../models/BootstrapKubeletConfig.java | 97 + .../models/BootstrapNetworkingConfig.java | 97 + .../models/BootstrapNodeConfig.java | 136 ++ .../models/BootstrapTargetCluster.java | 81 + .../models/BootstrapTokenInfo.java | 81 + .../models/CapacityReservation.java | 99 ++ .../models/CapacityReservationGroup.java | 105 ++ .../models/CloudShellNetworkProfile.java | 142 ++ .../models/CloudShellProfile.java | 205 +++ .../models/CloudShellProfileMode.java | 56 + .../models/CloudShellStorageProfile.java | 162 ++ .../models/CloudShellStorageProfileMode.java | 56 + .../models/ClusterApiConnectivityProfile.java | 134 ++ ...terServiceLoadBalancerHealthProbeMode.java | 53 + .../models/ClusterUpgradeSettings.java | 39 + .../containerservice/models/Component.java | 121 ++ .../models/ComponentsByRelease.java | 104 ++ .../ContainerServiceNetworkProfile.java | 154 ++ ...rServiceNetworkProfileKubeProxyConfig.java | 166 ++ ...tworkProfileKubeProxyConfigIpvsConfig.java | 193 ++ ...ntPoolsGenerateUpgradeInsightsContent.java | 126 ++ ...AndAgentPoolsUpgradeInsightProperties.java | 159 ++ ...olPlaneGenerateUpgradeInsightsContent.java | 122 ++ .../models/ControlPlaneScalingSize.java | 59 + .../ControlPlaneUpgradeInsightProperties.java | 220 +++ .../models/DetectedUpgradeIssue.java | 164 ++ .../containerservice/models/DriftAction.java | 52 + .../containerservice/models/DriverType.java | 54 + .../GenerateUpgradeInsightsContent.java | 119 ++ .../containerservice/models/GpuProfile.java | 36 + ...GuardrailsAvailableVersionsProperties.java | 101 ++ .../models/GuardrailsSupport.java | 52 + .../models/HardEvictionThreshold.java | 168 ++ .../models/IdentityBindingProperties.java | 50 + .../models/ImpactedResourceKind.java | 51 + .../models/IpvsScheduler.java | 51 + ...WTAuthenticatorClaimMappingExpression.java | 104 ++ .../models/JWTAuthenticatorClaimMappings.java | 213 +++ ...henticatorExtraClaimMappingExpression.java | 137 ++ .../models/JWTAuthenticatorIssuer.java | 142 ++ .../models/JWTAuthenticatorProperties.java | 299 ++++ .../JWTAuthenticatorProvisioningState.java | 71 + .../JWTAuthenticatorValidationRule.java | 131 ++ .../containerservice/models/KubeReserved.java | 128 ++ .../models/KubeletConfig.java | 228 +++ .../models/KubernetesImpactedResource.java | 117 ++ .../KubernetesVersionSupportStatus.java | 55 + .../models/LabelSelector.java | 138 ++ .../models/LabelSelectorRequirement.java | 154 ++ .../models/ListBootstrapDataRequest.java | 63 + .../models/LoadBalancerSku.java | 7 + .../models/MachineBillingProfile.java | 101 ++ .../models/MachineHardwareProfile.java | 190 ++ .../models/MachineKubernetesProfile.java | 390 ++++ .../models/MachineNetworkProperties.java | 216 ++- .../models/MachineOSProfile.java | 285 +++ .../models/MachineOSProfileLinuxProfile.java | 132 ++ .../models/MachineProperties.java | 432 ++++- .../models/MachineSecurityProfile.java | 193 ++ .../models/MachineStatus.java | 155 ++ .../MaintenanceWindowResourceProperties.java | 317 ++++ .../models/MaintenanceWindowSource.java | 54 + .../ManagedClusterAgentPoolProfile.java | 74 + .../ManagedClusterAgentSandboxProfile.java | 96 + ...agedClusterControlPlaneScalingProfile.java | 112 ++ .../ManagedClusterHealthMonitorProfile.java | 128 ++ .../models/ManagedClusterHttpProxyConfig.java | 19 + ...gedClusterIngressDefaultDomainProfile.java | 114 ++ .../models/ManagedClusterIngressProfile.java | 33 + ...IngressProfileApplicationLoadBalancer.java | 119 ++ ...gedClusterIngressProfileWebAppRouting.java | 39 + .../ManagedClusterLoadBalancerProfile.java | 35 + .../ManagedClusterPodSnapshotProfile.java | 94 + .../ManagedClusterPoolUpgradeProfile.java | 23 + ...ClusterPoolUpgradeProfileUpgradesItem.java | 18 + .../ManagedClusterPropertiesForSnapshot.java | 139 ++ .../models/ManagedClusterSecurityProfile.java | 111 ++ ...dClusterSecurityProfileImageIntegrity.java | 96 + ...ClusterSecurityProfileNodeRestriction.java | 96 + ...ProfileDiskCSIDriverQuickAttachDetach.java | 130 ++ ...gedClusterStorageProfileDiskCsiDriver.java | 39 + ...utoScalerProfileVerticalPodAutoscaler.java | 31 + .../MeshMembershipPrivateConnectProfile.java | 115 ++ .../models/MeshMembershipProperties.java | 164 ++ .../MeshMembershipProvisioningState.java | 71 + .../containerservice/models/MigStrategy.java | 60 + .../containerservice/models/Mode.java | 56 + .../models/NetworkProfileForSnapshot.java | 154 ++ .../models/NodeDisruptionPolicy.java | 65 + .../models/NodeDisruptionProfile.java | 107 ++ ...deImageGenerateUpgradeInsightsContent.java | 156 ++ .../NodeImageUpgradeInsightProperties.java | 189 ++ .../models/NvidiaDriverMode.java | 51 + .../models/NvidiaGPUProfile.java | 114 ++ .../containerservice/models/OSSku.java | 25 + .../containerservice/models/Operator.java | 61 + .../models/PodLinkLocalAccess.java | 52 + .../PreparedImageSpecificationProfile.java | 99 ++ .../models/PublicNetworkAccess.java | 5 + .../RebalanceLoadBalancersRequestBody.java | 97 + .../models/ResourceProvisioningState.java | 56 + .../models/ResourceSkuCapabilities.java | 97 + .../models/ResourceSkuCapacity.java | 130 ++ .../models/ResourceSkuCapacityScaleType.java | 56 + .../models/ResourceSkuCosts.java | 113 ++ .../models/ResourceSkuLocationInfo.java | 153 ++ .../models/ResourceSkuRestrictionInfo.java | 100 ++ .../models/ResourceSkuRestrictions.java | 138 ++ .../ResourceSkuRestrictionsReasonCode.java | 52 + .../models/ResourceSkuRestrictionsType.java | 51 + .../models/ResourceSkuZoneDetails.java | 105 ++ ...SafeguardsAvailableVersionsProperties.java | 101 ++ .../models/SafeguardsSupport.java | 52 + .../models/ScopeEvaluationResult.java | 175 ++ .../models/SeccompDefault.java | 53 + .../ServiceAccountImagePullProfile.java | 139 ++ .../containerservice/models/SnapshotType.java | 5 + .../models/SoftEvictionGracePeriod.java | 169 ++ .../models/SoftEvictionThreshold.java | 174 ++ .../models/TransitEncryptionType.java | 6 + .../models/UpgradeContext.java | 133 ++ .../models/UpgradeGateSettings.java | 111 ++ .../models/UpgradeInsightEvaluation.java | 131 ++ .../UpgradeInsightImpactedResource.java | 143 ++ .../UpgradeInsightMaintenanceWindow.java | 141 ++ .../models/UpgradeInsightProperties.java | 230 +++ .../UpgradeInsightRecommendedAction.java | 115 ++ .../models/UpgradeInsightStatus.java | 65 + .../models/UpgradeInsightStrategy.java | 51 + .../models/UpgradeIssueSeverity.java | 52 + .../models/UpgradeIssueType.java | 83 + .../models/UpgradeStrategy.java | 51 + .../containerservice/models/UpgradeType.java | 66 + .../containerservice/models/VmState.java | 51 + .../models/WorkloadRuntime.java | 8 + ...urcemanager-containerservice_metadata.json | 2 +- .../proxy-config.json | 2 +- ...abricMembershipsCreateOrUpdateSamples.java | 33 + .../AgentFabricMembershipsDeleteSamples.java | 25 + .../AgentFabricMembershipsGetSamples.java | 25 + ...embershipsListByManagedClusterSamples.java | 25 + ...AgentPoolsAbortLatestOperationSamples.java | 2 +- .../AgentPoolsCompleteUpgradeSamples.java | 25 + .../AgentPoolsCreateOrUpdateSamples.java | 439 +++-- .../AgentPoolsDeleteMachinesSamples.java | 2 +- .../generated/AgentPoolsDeleteSamples.java | 17 +- ...sGetAvailableAgentPoolVersionsSamples.java | 2 +- .../generated/AgentPoolsGetSamples.java | 2 +- .../AgentPoolsGetUpgradeProfileSamples.java | 2 +- .../AgentPoolsListBootstrapDataSamples.java | 28 + .../generated/AgentPoolsListSamples.java | 2 +- .../generated/AgentPoolsUpdateSamples.java | 54 + ...ntPoolsUpgradeNodeImageVersionSamples.java | 2 +- ...rtConfigurationsCreateOrUpdateSamples.java | 35 + .../AlertConfigurationsDeleteSamples.java | 25 + .../AlertConfigurationsGetSamples.java | 25 + ...igurationsListByManagedClusterSamples.java | 25 + ...IdentityBindingsCreateOrUpdateSamples.java | 36 +- .../IdentityBindingsDeleteSamples.java | 2 +- .../generated/IdentityBindingsGetSamples.java | 2 +- ...tyBindingsListByManagedClusterSamples.java | 2 +- ...WTAuthenticatorsCreateOrUpdateSamples.java | 99 ++ .../JWTAuthenticatorsDeleteSamples.java | 25 + .../JWTAuthenticatorsGetSamples.java | 24 + ...enticatorsListByManagedClusterSamples.java | 25 + .../LoadBalancersCreateOrUpdateSamples.java | 29 + .../generated/LoadBalancersDeleteSamples.java | 24 + .../generated/LoadBalancersGetSamples.java | 24 + ...dBalancersListByManagedClusterSamples.java | 25 + .../MachinesCreateOrUpdateSamples.java | 63 + .../generated/MachinesGetSamples.java | 2 +- .../generated/MachinesListSamples.java | 2 +- ...ceConfigurationsCreateOrUpdateSamples.java | 20 +- ...aintenanceConfigurationsDeleteSamples.java | 2 +- .../MaintenanceConfigurationsGetSamples.java | 17 +- ...igurationsListByManagedClusterSamples.java | 2 +- ...intenanceWindowsCreateOrUpdateSamples.java | 60 + .../MaintenanceWindowsDeleteSamples.java | 25 + ...nanceWindowsGetByResourceGroupSamples.java | 25 + ...anceWindowsListByResourceGroupSamples.java | 25 + .../MaintenanceWindowsListSamples.java | 23 + .../MaintenanceWindowsUpdateTagsSamples.java | 43 + ...ClusterSnapshotsCreateOrUpdateSamples.java | 46 + .../ManagedClusterSnapshotsDeleteSamples.java | 25 + ...terSnapshotsGetByResourceGroupSamples.java | 25 + ...erSnapshotsListByResourceGroupSamples.java | 25 + .../ManagedClusterSnapshotsListSamples.java | 23 + ...agedClusterSnapshotsUpdateTagsSamples.java | 43 + ...edClustersAbortLatestOperationSamples.java | 2 +- .../ManagedClustersCreateOrUpdateSamples.java | 1131 ++++++++---- .../ManagedClustersDeleteSamples.java | 4 +- ...anagedClustersGetAccessProfileSamples.java | 2 +- ...agedClustersGetByResourceGroupSamples.java | 2 +- ...anagedClustersGetCommandResultSamples.java | 4 +- ...dClustersGetGuardrailsVersionsSamples.java | 25 + ...ClustersGetMeshRevisionProfileSamples.java | 2 +- ...dClustersGetMeshUpgradeProfileSamples.java | 2 +- ...dClustersGetSafeguardsVersionsSamples.java | 25 + ...nagedClustersGetUpgradeProfileSamples.java | 2 +- ...gedClustersListByResourceGroupSamples.java | 2 +- ...ersListClusterAdminCredentialsSamples.java | 2 +- ...usterMonitoringUserCredentialsSamples.java | 2 +- ...tersListClusterUserCredentialsSamples.java | 2 +- ...ClustersListGuardrailsVersionsSamples.java | 25 + ...ClustersListKubernetesVersionsSamples.java | 2 +- ...ustersListMeshRevisionProfilesSamples.java | 2 +- ...lustersListMeshUpgradeProfilesSamples.java | 2 +- ...dClustersListNodeImageVersionsSamples.java | 25 + ...ndNetworkDependenciesEndpointsSamples.java | 2 +- ...ClustersListSafeguardsVersionsSamples.java | 25 + .../generated/ManagedClustersListSamples.java | 2 +- ...ClustersRebalanceLoadBalancersSamples.java | 30 + ...ManagedClustersResetAADProfileSamples.java | 2 +- ...rsResetServicePrincipalProfileSamples.java | 2 +- ...stersRotateClusterCertificatesSamples.java | 2 +- ...otateServiceAccountSigningKeysSamples.java | 2 +- .../ManagedClustersRunCommandSamples.java | 2 +- .../ManagedClustersStartSamples.java | 2 +- .../generated/ManagedClustersStopSamples.java | 2 +- .../ManagedClustersUpdateTagsSamples.java | 2 +- ...anagedNamespacesCreateOrUpdateSamples.java | 2 +- .../ManagedNamespacesDeleteSamples.java | 2 +- .../ManagedNamespacesGetSamples.java | 2 +- ...NamespacesListByManagedClusterSamples.java | 2 +- ...anagedNamespacesListCredentialSamples.java | 2 +- .../ManagedNamespacesUpdateSamples.java | 2 +- .../MeshMembershipsCreateOrUpdateSamples.java | 31 + .../MeshMembershipsDeleteSamples.java | 25 + .../generated/MeshMembershipsGetSamples.java | 24 + ...embershipsListByManagedClusterSamples.java | 25 + ...tionStatusResultGetByAgentPoolSamples.java | 26 + .../OperationStatusResultGetSamples.java | 26 + ...ionStatusResultListByAgentPoolSamples.java | 40 + .../OperationStatusResultListSamples.java | 25 + .../generated/OperationsListSamples.java | 2 +- ...ivateEndpointConnectionsDeleteSamples.java | 2 +- .../PrivateEndpointConnectionsGetSamples.java | 2 +- ...PrivateEndpointConnectionsListSamples.java | 2 +- ...ivateEndpointConnectionsUpdateSamples.java | 2 +- .../PrivateLinkResourcesListSamples.java | 2 +- ...esolvePrivateLinkServiceIdPOSTSamples.java | 2 +- .../SnapshotsCreateOrUpdateSamples.java | 2 +- .../generated/SnapshotsDeleteSamples.java | 2 +- .../SnapshotsGetByResourceGroupSamples.java | 2 +- .../SnapshotsListByResourceGroupSamples.java | 2 +- .../generated/SnapshotsListSamples.java | 2 +- .../generated/SnapshotsUpdateTagsSamples.java | 2 +- ...cessRoleBindingsCreateOrUpdateSamples.java | 2 +- ...rustedAccessRoleBindingsDeleteSamples.java | 2 +- .../TrustedAccessRoleBindingsGetSamples.java | 2 +- .../TrustedAccessRoleBindingsListSamples.java | 2 +- .../TrustedAccessRolesListSamples.java | 2 +- .../UpgradeInsightsGenerateSamples.java | 102 ++ .../generated/UpgradeInsightsGetSamples.java | 25 + .../generated/UpgradeInsightsListSamples.java | 23 + .../generated/VmSkusListSamples.java | 36 + .../tsp-location.yaml | 2 +- 360 files changed, 42937 insertions(+), 685 deletions(-) create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/AgentFabricMembershipsClient.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/AlertConfigurationsClient.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/JWTAuthenticatorsClient.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/LoadBalancersClient.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/MaintenanceWindowsClient.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ManagedClusterSnapshotsClient.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/MeshMembershipsClient.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/OperationStatusResultsClient.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/UpgradeInsightsClient.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/VmSkusClient.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentFabricMembershipInner.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AlertConfigurationInner.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/GuardrailsAvailableVersionInner.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/JWTAuthenticatorInner.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/LoadBalancerInner.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/LoadBalancerProperties.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MaintenanceWindowResourceInner.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterSnapshotInner.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterSnapshotProperties.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MeshMembershipInner.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/NodeImageVersionInner.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/OperationStatusResultInner.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/PoolBootstrapDataInner.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ResourceSkuInner.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/SafeguardsAvailableVersionInner.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/UpgradeInsightInner.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/AgentFabricMembershipsClientImpl.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/AlertConfigurationsClientImpl.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/JWTAuthenticatorsClientImpl.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/LoadBalancersClientImpl.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MaintenanceWindowsClientImpl.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedClusterSnapshotsClientImpl.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MeshMembershipsClientImpl.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/OperationStatusResultsClientImpl.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/UpgradeInsightsClientImpl.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/VmSkusClientImpl.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/AgentFabricMembershipsListResult.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/AlertConfigurationListResult.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/GuardrailsAvailableVersionsList.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/JWTAuthenticatorListResult.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/LoadBalancerListResult.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/MaintenanceWindowResourceListResult.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/ManagedClusterSnapshotListResult.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/MeshMembershipsListResult.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/NodeImageVersionsListResult.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/OperationStatusResultList.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/SafeguardsAvailableVersionsList.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/UpgradeInsightListResult.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/VmSkusListResult.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AddonAutoscaling.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentFabricMembershipProperties.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentFabricMembershipProvisioningState.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentFabricMembershipSkuName.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolBlueGreenUpgradeSettings.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolGenerateUpgradeInsightsContent.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolNICPublicIPAddressConfiguration.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolNICPublicIPAddressVersion.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolNetworkInterface.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolNetworkInterfaceType.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolScopeEvaluation.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpdate.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpdateManualScaleProfile.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpdateProperties.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpdateScaleProfile.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpdateVirtualMachinesProfile.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpgradeInsightProperties.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AlertConfigurationMode.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AlertConfigurationProperties.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AlertConfigurationProvisioningState.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AlertNotification.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AllowedSubject.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ArmImpactedResource.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BastionProfile.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BastionSku.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BootstrapAzureConfig.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BootstrapComponentVersions.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BootstrapKubeletConfig.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BootstrapNetworkingConfig.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BootstrapNodeConfig.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BootstrapTargetCluster.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BootstrapTokenInfo.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/CapacityReservation.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/CapacityReservationGroup.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/CloudShellNetworkProfile.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/CloudShellProfile.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/CloudShellProfileMode.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/CloudShellStorageProfile.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/CloudShellStorageProfileMode.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ClusterApiConnectivityProfile.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ClusterServiceLoadBalancerHealthProbeMode.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Component.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ComponentsByRelease.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceNetworkProfileKubeProxyConfig.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ControlPlaneAndAgentPoolsGenerateUpgradeInsightsContent.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ControlPlaneAndAgentPoolsUpgradeInsightProperties.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ControlPlaneGenerateUpgradeInsightsContent.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ControlPlaneScalingSize.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ControlPlaneUpgradeInsightProperties.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/DetectedUpgradeIssue.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/DriftAction.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/DriverType.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/GenerateUpgradeInsightsContent.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/GuardrailsAvailableVersionsProperties.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/GuardrailsSupport.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/HardEvictionThreshold.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ImpactedResourceKind.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IpvsScheduler.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JWTAuthenticatorClaimMappingExpression.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JWTAuthenticatorClaimMappings.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JWTAuthenticatorExtraClaimMappingExpression.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JWTAuthenticatorIssuer.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JWTAuthenticatorProperties.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JWTAuthenticatorProvisioningState.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JWTAuthenticatorValidationRule.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/KubeReserved.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/KubernetesImpactedResource.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/KubernetesVersionSupportStatus.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/LabelSelector.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/LabelSelectorRequirement.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ListBootstrapDataRequest.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineBillingProfile.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineHardwareProfile.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineKubernetesProfile.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineOSProfile.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineOSProfileLinuxProfile.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineSecurityProfile.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineStatus.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MaintenanceWindowResourceProperties.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MaintenanceWindowSource.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAgentSandboxProfile.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterControlPlaneScalingProfile.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterHealthMonitorProfile.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressDefaultDomainProfile.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressProfileApplicationLoadBalancer.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPodSnapshotProfile.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPropertiesForSnapshot.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileImageIntegrity.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileNodeRestriction.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfileDiskCSIDriverQuickAttachDetach.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MeshMembershipPrivateConnectProfile.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MeshMembershipProperties.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MeshMembershipProvisioningState.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MigStrategy.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Mode.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NetworkProfileForSnapshot.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NodeDisruptionPolicy.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NodeDisruptionProfile.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NodeImageGenerateUpgradeInsightsContent.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NodeImageUpgradeInsightProperties.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NvidiaDriverMode.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Operator.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/PodLinkLocalAccess.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/PreparedImageSpecificationProfile.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/RebalanceLoadBalancersRequestBody.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceProvisioningState.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuCapabilities.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuCapacity.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuCapacityScaleType.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuCosts.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuLocationInfo.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuRestrictionInfo.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuRestrictions.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuRestrictionsReasonCode.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuRestrictionsType.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuZoneDetails.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SafeguardsAvailableVersionsProperties.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SafeguardsSupport.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ScopeEvaluationResult.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SeccompDefault.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ServiceAccountImagePullProfile.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SoftEvictionGracePeriod.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SoftEvictionThreshold.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeContext.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeGateSettings.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeInsightEvaluation.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeInsightImpactedResource.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeInsightMaintenanceWindow.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeInsightProperties.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeInsightRecommendedAction.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeInsightStatus.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeInsightStrategy.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeIssueSeverity.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeIssueType.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeStrategy.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeType.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/VmState.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentFabricMembershipsCreateOrUpdateSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentFabricMembershipsDeleteSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentFabricMembershipsGetSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentFabricMembershipsListByManagedClusterSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsCompleteUpgradeSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsListBootstrapDataSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsUpdateSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AlertConfigurationsCreateOrUpdateSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AlertConfigurationsDeleteSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AlertConfigurationsGetSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AlertConfigurationsListByManagedClusterSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/JWTAuthenticatorsCreateOrUpdateSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/JWTAuthenticatorsDeleteSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/JWTAuthenticatorsGetSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/JWTAuthenticatorsListByManagedClusterSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/LoadBalancersCreateOrUpdateSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/LoadBalancersDeleteSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/LoadBalancersGetSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/LoadBalancersListByManagedClusterSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MachinesCreateOrUpdateSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceWindowsCreateOrUpdateSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceWindowsDeleteSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceWindowsGetByResourceGroupSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceWindowsListByResourceGroupSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceWindowsListSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceWindowsUpdateTagsSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClusterSnapshotsCreateOrUpdateSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClusterSnapshotsDeleteSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClusterSnapshotsGetByResourceGroupSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClusterSnapshotsListByResourceGroupSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClusterSnapshotsListSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClusterSnapshotsUpdateTagsSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetGuardrailsVersionsSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetSafeguardsVersionsSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListGuardrailsVersionsSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListNodeImageVersionsSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListSafeguardsVersionsSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRebalanceLoadBalancersSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MeshMembershipsCreateOrUpdateSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MeshMembershipsDeleteSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MeshMembershipsGetSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MeshMembershipsListByManagedClusterSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/OperationStatusResultGetByAgentPoolSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/OperationStatusResultGetSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/OperationStatusResultListByAgentPoolSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/OperationStatusResultListSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/UpgradeInsightsGenerateSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/UpgradeInsightsGetSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/UpgradeInsightsListSamples.java create mode 100644 sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/VmSkusListSamples.java diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/CHANGELOG.md b/sdk/containerservice/azure-resourcemanager-containerservice/CHANGELOG.md index f466e12ccb4bc..701cd0d2583b2 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/CHANGELOG.md +++ b/sdk/containerservice/azure-resourcemanager-containerservice/CHANGELOG.md @@ -1,14 +1,493 @@ # Release History -## 2.66.0-beta.1 (Unreleased) +## 2.66.0-beta.1 (2026-10-21) + +- Package api-version 2026-08-02-preview. ### Features Added -### Breaking Changes +* `models.CloudShellNetworkProfile` was added -### Bugs Fixed +* `models.CloudShellStorageProfileMode` was added -### Other Changes +* `models.AgentPoolBlueGreenUpgradeSettings` was added + +* `models.UpgradeStrategy` was added + +* `models.MeshMembershipProperties` was added + +* `models.SeccompDefault` was added + +* `models.BootstrapAzureConfig` was added + +* `models.UpgradeType` was added + +* `models.NvidiaDriverMode` was added + +* `models.ManagedClusterSecurityProfileImageIntegrity` was added + +* `models.MeshMembershipPrivateConnectProfile` was added + +* `models.ComponentsByRelease` was added + +* `models.VmState` was added + +* `models.SoftEvictionGracePeriod` was added + +* `models.ResourceSkuCosts` was added + +* `models.UpgradeInsightImpactedResource` was added + +* `models.ListBootstrapDataRequest` was added + +* `models.AgentPoolNICPublicIPAddressConfiguration` was added + +* `models.AgentPoolUpdateManualScaleProfile` was added + +* `models.ManagedClusterSecurityProfileNodeRestriction` was added + +* `models.ResourceSkuRestrictionsType` was added + +* `models.UpgradeInsightStatus` was added + +* `models.MigStrategy` was added + +* `models.MachineOSProfileLinuxProfile` was added + +* `models.GuardrailsAvailableVersionsProperties` was added + +* `models.AgentFabricMembershipProperties` was added + +* `models.UpgradeGateSettings` was added + +* `models.ResourceSkuRestrictions` was added + +* `models.MachineOSProfile` was added + +* `models.Operator` was added + +* `models.ClusterServiceLoadBalancerHealthProbeMode` was added + +* `models.ResourceSkuCapacity` was added + +* `models.UpgradeInsightRecommendedAction` was added + +* `models.JWTAuthenticatorExtraClaimMappingExpression` was added + +* `models.ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig` was added + +* `models.GuardrailsSupport` was added + +* `models.ControlPlaneUpgradeInsightProperties` was added + +* `models.ServiceAccountImagePullProfile` was added + +* `models.UpgradeIssueSeverity` was added + +* `models.MachineBillingProfile` was added + +* `models.CloudShellProfile` was added + +* `models.ResourceSkuRestrictionInfo` was added + +* `models.DriftAction` was added + +* `models.BastionProfile` was added + +* `models.ManagedClusterAgentSandboxProfile` was added + +* `models.SafeguardsSupport` was added + +* `models.KubeReserved` was added + +* `models.NodeDisruptionPolicy` was added + +* `models.BootstrapKubeletConfig` was added + +* `models.BootstrapTokenInfo` was added + +* `models.UpgradeInsightProperties` was added + +* `models.ResourceSkuCapabilities` was added + +* `models.MachineKubernetesProfile` was added + +* `models.ManagedClusterHealthMonitorProfile` was added + +* `models.AgentFabricMembershipSkuName` was added + +* `models.AllowedSubject` was added + +* `models.AgentFabricMembershipProvisioningState` was added + +* `models.JWTAuthenticatorProperties` was added + +* `models.JWTAuthenticatorClaimMappings` was added + +* `models.ManagedClusterPodSnapshotProfile` was added + +* `models.SafeguardsAvailableVersionsProperties` was added + +* `models.MachineSecurityProfile` was added + +* `models.CloudShellStorageProfile` was added + +* `models.LabelSelectorRequirement` was added + +* `models.HardEvictionThreshold` was added + +* `models.BootstrapTargetCluster` was added + +* `models.ManagedClusterStorageProfileDiskCSIDriverQuickAttachDetach` was added + +* `models.AgentPoolUpdateVirtualMachinesProfile` was added + +* `models.UpgradeInsightEvaluation` was added + +* `models.ContainerServiceNetworkProfileKubeProxyConfig` was added + +* `models.BootstrapNetworkingConfig` was added + +* `models.ResourceSkuLocationInfo` was added + +* `models.ControlPlaneScalingSize` was added + +* `models.AgentPoolUpdateProperties` was added + +* `models.MachineHardwareProfile` was added + +* `models.ResourceSkuRestrictionsReasonCode` was added + +* `models.AlertNotification` was added + +* `models.JWTAuthenticatorIssuer` was added + +* `models.KubernetesVersionSupportStatus` was added + +* `models.DriverType` was added + +* `models.AgentPoolScopeEvaluation` was added + +* `models.JWTAuthenticatorValidationRule` was added + +* `models.ManagedClusterPropertiesForSnapshot` was added + +* `models.CapacityReservation` was added + +* `models.AgentPoolUpdate` was added + +* `models.UpgradeInsightStrategy` was added + +* `models.ResourceSkuZoneDetails` was added + +* `models.MeshMembershipProvisioningState` was added + +* `models.ScopeEvaluationResult` was added + +* `models.MaintenanceWindowResourceProperties` was added + +* `models.ResourceSkuCapacityScaleType` was added + +* `models.UpgradeInsightMaintenanceWindow` was added + +* `models.BastionSku` was added + +* `models.PreparedImageSpecificationProfile` was added + +* `models.ManagedClusterIngressDefaultDomainProfile` was added + +* `models.ClusterApiConnectivityProfile` was added + +* `models.IpvsScheduler` was added + +* `models.CloudShellProfileMode` was added + +* `models.ManagedClusterIngressProfileApplicationLoadBalancer` was added + +* `models.LabelSelector` was added + +* `models.DetectedUpgradeIssue` was added + +* `models.AlertConfigurationProvisioningState` was added + +* `models.Component` was added + +* `models.BootstrapNodeConfig` was added + +* `models.AgentPoolUpdateScaleProfile` was added + +* `models.BootstrapComponentVersions` was added + +* `models.JWTAuthenticatorClaimMappingExpression` was added + +* `models.UpgradeContext` was added + +* `models.AlertConfigurationProperties` was added + +* `models.MachineStatus` was added + +* `models.ControlPlaneGenerateUpgradeInsightsContent` was added + +* `models.NodeImageGenerateUpgradeInsightsContent` was added + +* `models.SoftEvictionThreshold` was added + +* `models.RebalanceLoadBalancersRequestBody` was added + +* `models.GenerateUpgradeInsightsContent` was added + +* `models.AgentPoolUpgradeInsightProperties` was added + +* `models.ImpactedResourceKind` was added + +* `models.ArmImpactedResource` was added + +* `models.CapacityReservationGroup` was added + +* `models.AgentPoolNICPublicIPAddressVersion` was added + +* `models.NodeImageUpgradeInsightProperties` was added + +* `models.Mode` was added + +* `models.AgentPoolNetworkInterface` was added + +* `models.NodeDisruptionProfile` was added + +* `models.UpgradeIssueType` was added + +* `models.ManagedClusterControlPlaneScalingProfile` was added + +* `models.AddonAutoscaling` was added + +* `models.NetworkProfileForSnapshot` was added + +* `models.ResourceProvisioningState` was added + +* `models.AlertConfigurationMode` was added + +* `models.ControlPlaneAndAgentPoolsGenerateUpgradeInsightsContent` was added + +* `models.KubernetesImpactedResource` was added + +* `models.AgentPoolGenerateUpgradeInsightsContent` was added + +* `models.ControlPlaneAndAgentPoolsUpgradeInsightProperties` was added + +* `models.AgentPoolNetworkInterfaceType` was added + +* `models.JWTAuthenticatorProvisioningState` was added + +* `models.MaintenanceWindowSource` was added + +* `models.PodLinkLocalAccess` was added + +#### `models.ManagedClusterIngressProfile` was modified + +* `applicationLoadBalancer()` was added +* `withApplicationLoadBalancer(models.ManagedClusterIngressProfileApplicationLoadBalancer)` was added + +#### `models.ContainerServiceNetworkProfile` was modified + +* `withKubeProxyConfig(models.ContainerServiceNetworkProfileKubeProxyConfig)` was added +* `natGatewayId()` was added +* `podLinkLocalAccess()` was added +* `clusterApiConnectivityProfile()` was added +* `kubeProxyConfig()` was added +* `withPodLinkLocalAccess(models.PodLinkLocalAccess)` was added +* `withNatGatewayId(java.lang.String)` was added +* `withClusterApiConnectivityProfile(models.ClusterApiConnectivityProfile)` was added + +#### `models.AgentPoolMode` was modified + +* `MACHINES` was added +* `MANAGED_SYSTEM` was added + +#### `models.ManagedClusterHttpProxyConfig` was modified + +* `effectiveNoProxy()` was added + +#### `models.SnapshotType` was modified + +* `MANAGED_CLUSTER` was added + +#### `models.BackendPoolType` was modified + +* `POD_IP` was added + +#### `models.ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler` was modified + +* `withAddonAutoscaling(models.AddonAutoscaling)` was added +* `addonAutoscaling()` was added + +#### `models.IdentityBindingProperties` was modified + +* `allowedSubjects()` was added +* `withAllowedSubjects(java.util.List)` was added + +#### `models.ManagedClusterAgentPoolProfile` was modified + +* `withPreparedImageSpecificationProfile(models.PreparedImageSpecificationProfile)` was added +* `withUpgradeStrategy(models.UpgradeStrategy)` was added +* `withNodeInitializationTaints(java.util.List)` was added +* `withUpgradeSettingsBlueGreen(models.AgentPoolBlueGreenUpgradeSettings)` was added +* `withEnableOSDiskFullCaching(java.lang.Boolean)` was added + +#### `models.NvidiaGPUProfile` was modified + +* `withMigProfiles(java.util.List)` was added +* `migProfiles()` was added +* `withDriverMode(models.NvidiaDriverMode)` was added +* `withMigStrategy(models.MigStrategy)` was added +* `migStrategy()` was added +* `driverMode()` was added + +#### `models.ManagedClusterSecurityProfile` was modified + +* `withNodeRestriction(models.ManagedClusterSecurityProfileNodeRestriction)` was added +* `imageIntegrity()` was added +* `serviceAccountImagePullProfile()` was added +* `withImageIntegrity(models.ManagedClusterSecurityProfileImageIntegrity)` was added +* `withServiceAccountImagePullProfile(models.ServiceAccountImagePullProfile)` was added +* `nodeRestriction()` was added + +#### `models.AgentPoolType` was modified + +* `FLEX_NODES` was added + +#### `models.ManagedClusterIngressProfileWebAppRouting` was modified + +* `withDefaultDomain(models.ManagedClusterIngressDefaultDomainProfile)` was added +* `defaultDomain()` was added + +#### `models.ManagedClusterLoadBalancerProfile` was modified + +* `withClusterServiceLoadBalancerHealthProbeMode(models.ClusterServiceLoadBalancerHealthProbeMode)` was added +* `clusterServiceLoadBalancerHealthProbeMode()` was added + +#### `models.PublicNetworkAccess` was modified + +* `SECURED_BY_PERIMETER` was added + +#### `models.TransitEncryptionType` was modified + +* `M_TLS` was added + +#### `models.ManagedClusterStorageProfileDiskCsiDriver` was modified + +* `quickAttachDetach()` was added +* `withQuickAttachDetach(models.ManagedClusterStorageProfileDiskCSIDriverQuickAttachDetach)` was added + +#### `models.ManagedClusterPoolUpgradeProfileUpgradesItem` was modified + +* `isOutOfSupport()` was added + +#### `models.AgentPoolNetworkProfile` was modified + +* `withNodePublicIPPrefixIDs(java.util.List)` was added +* `secondaryNetworkInterfaces()` was added +* `nodePublicIPPrefixIDs()` was added +* `withSecondaryNetworkInterfaces(java.util.List)` was added + +#### `models.LoadBalancerSku` was modified + +* `SERVICE` was added + +#### `models.MachineNetworkProperties` was modified + +* `podSubnetId()` was added +* `nodePublicIpPrefixId()` was added +* `withNodePublicIpTags(java.util.List)` was added +* `withEnableNodePublicIp(java.lang.Boolean)` was added +* `nodePublicIpTags()` was added +* `withVnetSubnetId(java.lang.String)` was added +* `withPodIPAllocationMode(models.PodIpAllocationMode)` was added +* `podIPAllocationMode()` was added +* `enableNodePublicIp()` was added +* `withNodePublicIpPrefixId(java.lang.String)` was added +* `vnetSubnetId()` was added +* `withPodSubnetId(java.lang.String)` was added + +#### `models.WorkloadRuntime` was modified + +* `KATA_MSHV_VM_ISOLATION` was added + +#### `models.OSSku` was modified + +* `MARINER` was added +* `UBUNTU2604` was added +* `FLATCAR` was added +* `WINDOWS_ANNUAL` was added + +#### `models.AgentPoolUpgradeProfilePropertiesUpgradesItem` was modified + +* `isOutOfSupport()` was added + +#### `models.GpuProfile` was modified + +* `driverType()` was added +* `withDriverType(models.DriverType)` was added + +#### `models.AgentPoolUpgradeSettings` was modified + +* `withMaxBlockedNodes(java.lang.String)` was added +* `upgradeGateSettings()` was added +* `withUpgradeGateSettings(models.UpgradeGateSettings)` was added +* `maxBlockedNodes()` was added + +#### `models.ClusterUpgradeSettings` was modified + +* `upgradeGateSettings()` was added +* `withUpgradeGateSettings(models.UpgradeGateSettings)` was added + +#### `models.ManagedClusterPoolUpgradeProfile` was modified + +* `componentsByReleases()` was added + +#### `models.KubeletConfig` was modified + +* `withSoftEvictionGracePeriod(models.SoftEvictionGracePeriod)` was added +* `withEvictionMaxPodGracePeriodInSeconds(java.lang.Integer)` was added +* `withKubeReserved(models.KubeReserved)` was added +* `withSeccompDefault(models.SeccompDefault)` was added +* `evictionMaxPodGracePeriodInSeconds()` was added +* `hardEvictionThreshold()` was added +* `withHardEvictionThreshold(models.HardEvictionThreshold)` was added +* `withSoftEvictionThreshold(models.SoftEvictionThreshold)` was added +* `softEvictionThreshold()` was added +* `kubeReserved()` was added +* `softEvictionGracePeriod()` was added +* `seccompDefault()` was added + +#### `models.MachineProperties` was modified + +* `capacityReservation()` was added +* `status()` was added +* `withHardware(models.MachineHardwareProfile)` was added +* `evictionPolicy()` was added +* `security()` was added +* `localDNSProfile()` was added +* `provisioningState()` was added +* `withLocalDNSProfile(models.LocalDnsProfile)` was added +* `withOperatingSystem(models.MachineOSProfile)` was added +* `withEvictionPolicy(models.ScaleSetEvictionPolicy)` was added +* `withKubernetes(models.MachineKubernetesProfile)` was added +* `tags()` was added +* `eTag()` was added +* `withCapacityReservation(models.CapacityReservation)` was added +* `priority()` was added +* `withNetwork(models.MachineNetworkProperties)` was added +* `withPriority(models.ScaleSetPriority)` was added +* `withBilling(models.MachineBillingProfile)` was added +* `withSecurity(models.MachineSecurityProfile)` was added +* `withTags(java.util.Map)` was added +* `hardware()` was added +* `mode()` was added +* `billing()` was added +* `nodeImageVersion()` was added +* `kubernetes()` was added +* `withMode(models.AgentPoolMode)` was added +* `operatingSystem()` was added ## 2.65.0 (2026-10-19) diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/README.md b/sdk/containerservice/azure-resourcemanager-containerservice/README.md index 32e41bf16b680..239224e6caf34 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/README.md +++ b/sdk/containerservice/azure-resourcemanager-containerservice/README.md @@ -18,7 +18,7 @@ For documentation on how to use this package, please see [Azure Management Libra com.azure.resourcemanager azure-resourcemanager-containerservice - 2.65.0 + 2.66.0-beta.1 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/pom.xml b/sdk/containerservice/azure-resourcemanager-containerservice/pom.xml index ba73b26f94974..bb23151dae3ee 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/pom.xml +++ b/sdk/containerservice/azure-resourcemanager-containerservice/pom.xml @@ -42,7 +42,7 @@ --add-opens com.azure.core/com.azure.core.implementation.util=ALL-UNNAMED - false + true diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/AgentFabricMembershipsClient.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/AgentFabricMembershipsClient.java new file mode 100644 index 0000000000000..a6676138c78f3 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/AgentFabricMembershipsClient.java @@ -0,0 +1,349 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.containerservice.fluent.models.AgentFabricMembershipInner; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in AgentFabricMembershipsClient. + */ +public interface AgentFabricMembershipsClient { + /** + * Gets the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @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 AgentFabric membership of a managed cluster along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getWithResponseAsync(String resourceGroupName, String resourceName, + String agentFabricMembershipName); + + /** + * Gets the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @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 AgentFabric membership of a managed cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String resourceName, + String agentFabricMembershipName); + + /** + * Gets the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @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 AgentFabric membership of a managed cluster along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String resourceName, + String agentFabricMembershipName, Context context); + + /** + * Gets the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @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 AgentFabric membership of a managed cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + AgentFabricMembershipInner get(String resourceGroupName, String resourceName, String agentFabricMembershipName); + + /** + * Creates or updates the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the AgentFabric membership of a managed cluster along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String resourceName, + String agentFabricMembershipName, AgentFabricMembershipInner resource); + + /** + * Creates or updates the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of the AgentFabric membership of a managed cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, AgentFabricMembershipInner> beginCreateOrUpdateAsync( + String resourceGroupName, String resourceName, String agentFabricMembershipName, + AgentFabricMembershipInner resource); + + /** + * Creates or updates the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the AgentFabric membership of a managed cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, AgentFabricMembershipInner> beginCreateOrUpdate( + String resourceGroupName, String resourceName, String agentFabricMembershipName, + AgentFabricMembershipInner resource); + + /** + * Creates or updates the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the AgentFabric membership of a managed cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, AgentFabricMembershipInner> beginCreateOrUpdate( + String resourceGroupName, String resourceName, String agentFabricMembershipName, + AgentFabricMembershipInner resource, Context context); + + /** + * Creates or updates the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the AgentFabric membership of a managed cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono createOrUpdateAsync(String resourceGroupName, String resourceName, + String agentFabricMembershipName, AgentFabricMembershipInner resource); + + /** + * Creates or updates the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the AgentFabric membership of a managed cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + AgentFabricMembershipInner createOrUpdate(String resourceGroupName, String resourceName, + String agentFabricMembershipName, AgentFabricMembershipInner resource); + + /** + * Creates or updates the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the AgentFabric membership of a managed cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + AgentFabricMembershipInner createOrUpdate(String resourceGroupName, String resourceName, + String agentFabricMembershipName, AgentFabricMembershipInner resource, Context context); + + /** + * Deletes the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, + String agentFabricMembershipName); + + /** + * Deletes the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @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 PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, + String agentFabricMembershipName); + + /** + * Deletes the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, + String agentFabricMembershipName); + + /** + * Deletes the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, + String agentFabricMembershipName, Context context); + + /** + * Deletes the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String resourceName, String agentFabricMembershipName); + + /** + * Deletes the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String resourceName, String agentFabricMembershipName); + + /** + * Deletes the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String resourceName, String agentFabricMembershipName, Context context); + + /** + * Lists the AgentFabric memberships of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the result of a request to list the AgentFabric memberships of a managed cluster as paginated response + * with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listByManagedClusterAsync(String resourceGroupName, String resourceName); + + /** + * Lists the AgentFabric memberships of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the result of a request to list the AgentFabric memberships of a managed cluster as paginated response + * with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByManagedCluster(String resourceGroupName, String resourceName); + + /** + * Lists the AgentFabric memberships of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the result of a request to list the AgentFabric memberships of a managed cluster as paginated response + * with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByManagedCluster(String resourceGroupName, String resourceName, + Context context); +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/AgentPoolsClient.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/AgentPoolsClient.java index b2a610735e623..f03ca29e30ec1 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/AgentPoolsClient.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/AgentPoolsClient.java @@ -16,7 +16,10 @@ import com.azure.resourcemanager.containerservice.fluent.models.AgentPoolAvailableVersionsInner; import com.azure.resourcemanager.containerservice.fluent.models.AgentPoolInner; import com.azure.resourcemanager.containerservice.fluent.models.AgentPoolUpgradeProfileInner; +import com.azure.resourcemanager.containerservice.fluent.models.PoolBootstrapDataInner; import com.azure.resourcemanager.containerservice.models.AgentPoolDeleteMachinesParameter; +import com.azure.resourcemanager.containerservice.models.AgentPoolUpdate; +import com.azure.resourcemanager.containerservice.models.ListBootstrapDataRequest; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -559,6 +562,122 @@ SyncPoller, Void> beginAbortLatestOperation(String resourceGrou @ServiceMethod(returns = ReturnType.SINGLE) void abortLatestOperation(String resourceGroupName, String resourceName, String agentPoolName, Context context); + /** + * Completes the upgrade of an agent pool. + * + * Completes the upgrade operation for the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> completeUpgradeWithResponseAsync(String resourceGroupName, String resourceName, + String agentPoolName); + + /** + * Completes the upgrade of an agent pool. + * + * Completes the upgrade operation for the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @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 PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginCompleteUpgradeAsync(String resourceGroupName, String resourceName, + String agentPoolName); + + /** + * Completes the upgrade of an agent pool. + * + * Completes the upgrade operation for the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @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> beginCompleteUpgrade(String resourceGroupName, String resourceName, + String agentPoolName); + + /** + * Completes the upgrade of an agent pool. + * + * Completes the upgrade operation for the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @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> beginCompleteUpgrade(String resourceGroupName, String resourceName, + String agentPoolName, Context context); + + /** + * Completes the upgrade of an agent pool. + * + * Completes the upgrade operation for the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono completeUpgradeAsync(String resourceGroupName, String resourceName, String agentPoolName); + + /** + * Completes the upgrade of an agent pool. + * + * Completes the upgrade operation for the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @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 completeUpgrade(String resourceGroupName, String resourceName, String agentPoolName); + + /** + * Completes the upgrade of an agent pool. + * + * Completes the upgrade operation for the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @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 completeUpgrade(String resourceGroupName, String resourceName, String agentPoolName, Context context); + /** * Deletes specific machines in an agent pool. * @@ -801,6 +920,240 @@ SyncPoller, Void> beginUpgradeNodeImageVersion(String resourceG @ServiceMethod(returns = ReturnType.SINGLE) void upgradeNodeImageVersion(String resourceGroupName, String resourceName, String agentPoolName, Context context); + /** + * Lists bootstrap data for a FlexNode agent pool. + * + * Returns pool-level bootstrap configuration for FlexNode machines. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return bootstrap configuration for a FlexNode pool along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> listBootstrapDataWithResponseAsync(String resourceGroupName, + String resourceName, String agentPoolName, ListBootstrapDataRequest body); + + /** + * Lists bootstrap data for a FlexNode agent pool. + * + * Returns pool-level bootstrap configuration for FlexNode machines. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return bootstrap configuration for a FlexNode pool on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono listBootstrapDataAsync(String resourceGroupName, String resourceName, + String agentPoolName, ListBootstrapDataRequest body); + + /** + * Lists bootstrap data for a FlexNode agent pool. + * + * Returns pool-level bootstrap configuration for FlexNode machines. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return bootstrap configuration for a FlexNode pool along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response listBootstrapDataWithResponse(String resourceGroupName, String resourceName, + String agentPoolName, ListBootstrapDataRequest body, Context context); + + /** + * Lists bootstrap data for a FlexNode agent pool. + * + * Returns pool-level bootstrap configuration for FlexNode machines. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return bootstrap configuration for a FlexNode pool. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + PoolBootstrapDataInner listBootstrapData(String resourceGroupName, String resourceName, String agentPoolName, + ListBootstrapDataRequest body); + + /** + * Updates an agent pool in the specified managed cluster. Visit https://aka.ms/aks/concurrent-node-operations for + * more information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param parameters The resource properties to be updated. + * @param ifMatch The request should only proceed if an entity matches this string. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return agent Pool along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> updateWithResponseAsync(String resourceGroupName, String resourceName, + String agentPoolName, AgentPoolUpdate parameters, String ifMatch); + + /** + * Updates an agent pool in the specified managed cluster. Visit https://aka.ms/aks/concurrent-node-operations for + * more information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param parameters The resource properties to be updated. + * @param ifMatch The request should only proceed if an entity matches this string. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of agent Pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, AgentPoolInner> beginUpdateAsync(String resourceGroupName, + String resourceName, String agentPoolName, AgentPoolUpdate parameters, String ifMatch); + + /** + * Updates an agent pool in the specified managed cluster. Visit https://aka.ms/aks/concurrent-node-operations for + * more information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param parameters The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of agent Pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, AgentPoolInner> beginUpdateAsync(String resourceGroupName, + String resourceName, String agentPoolName, AgentPoolUpdate parameters); + + /** + * Updates an agent pool in the specified managed cluster. Visit https://aka.ms/aks/concurrent-node-operations for + * more information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param parameters The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of agent Pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, AgentPoolInner> beginUpdate(String resourceGroupName, String resourceName, + String agentPoolName, AgentPoolUpdate parameters); + + /** + * Updates an agent pool in the specified managed cluster. Visit https://aka.ms/aks/concurrent-node-operations for + * more information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param parameters The resource properties to be updated. + * @param ifMatch The request should only proceed if an entity matches this string. + * @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 agent Pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, AgentPoolInner> beginUpdate(String resourceGroupName, String resourceName, + String agentPoolName, AgentPoolUpdate parameters, String ifMatch, Context context); + + /** + * Updates an agent pool in the specified managed cluster. Visit https://aka.ms/aks/concurrent-node-operations for + * more information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param parameters The resource properties to be updated. + * @param ifMatch The request should only proceed if an entity matches this string. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return agent Pool on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono updateAsync(String resourceGroupName, String resourceName, String agentPoolName, + AgentPoolUpdate parameters, String ifMatch); + + /** + * Updates an agent pool in the specified managed cluster. Visit https://aka.ms/aks/concurrent-node-operations for + * more information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param parameters The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return agent Pool on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono updateAsync(String resourceGroupName, String resourceName, String agentPoolName, + AgentPoolUpdate parameters); + + /** + * Updates an agent pool in the specified managed cluster. Visit https://aka.ms/aks/concurrent-node-operations for + * more information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param parameters The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return agent Pool. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + AgentPoolInner update(String resourceGroupName, String resourceName, String agentPoolName, + AgentPoolUpdate parameters); + + /** + * Updates an agent pool in the specified managed cluster. Visit https://aka.ms/aks/concurrent-node-operations for + * more information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param parameters The resource properties to be updated. + * @param ifMatch The request should only proceed if an entity matches this string. + * @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 agent Pool. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + AgentPoolInner update(String resourceGroupName, String resourceName, String agentPoolName, + AgentPoolUpdate parameters, String ifMatch, Context context); + /** * Gets a list of supported Kubernetes versions for the specified agent pool. * diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/AlertConfigurationsClient.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/AlertConfigurationsClient.java new file mode 100644 index 0000000000000..42ce373720246 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/AlertConfigurationsClient.java @@ -0,0 +1,346 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.containerservice.fluent.models.AlertConfigurationInner; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in AlertConfigurationsClient. + */ +public interface AlertConfigurationsClient { + /** + * Gets the specified alert configuration of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @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 specified alert configuration of a managed cluster along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getWithResponseAsync(String resourceGroupName, String resourceName, + String configurationName); + + /** + * Gets the specified alert configuration of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @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 specified alert configuration of a managed cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String resourceName, String configurationName); + + /** + * Gets the specified alert configuration of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @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 specified alert configuration of a managed cluster along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String resourceName, + String configurationName, Context context); + + /** + * Gets the specified alert configuration of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @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 specified alert configuration of a managed cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + AlertConfigurationInner get(String resourceGroupName, String resourceName, String configurationName); + + /** + * Creates or updates an alert configuration in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @param resource The alert configuration to create or update. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return alert configuration for a managed cluster along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String resourceName, + String configurationName, AlertConfigurationInner resource); + + /** + * Creates or updates an alert configuration in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @param resource The alert configuration to create or update. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of alert configuration for a managed cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, AlertConfigurationInner> beginCreateOrUpdateAsync( + String resourceGroupName, String resourceName, String configurationName, AlertConfigurationInner resource); + + /** + * Creates or updates an alert configuration in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @param resource The alert configuration to create or update. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of alert configuration for a managed cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, AlertConfigurationInner> beginCreateOrUpdate( + String resourceGroupName, String resourceName, String configurationName, AlertConfigurationInner resource); + + /** + * Creates or updates an alert configuration in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @param resource The alert configuration to create or update. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of alert configuration for a managed cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, AlertConfigurationInner> beginCreateOrUpdate( + String resourceGroupName, String resourceName, String configurationName, AlertConfigurationInner resource, + Context context); + + /** + * Creates or updates an alert configuration in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @param resource The alert configuration to create or update. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return alert configuration for a managed cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono createOrUpdateAsync(String resourceGroupName, String resourceName, + String configurationName, AlertConfigurationInner resource); + + /** + * Creates or updates an alert configuration in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @param resource The alert configuration to create or update. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return alert configuration for a managed cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + AlertConfigurationInner createOrUpdate(String resourceGroupName, String resourceName, String configurationName, + AlertConfigurationInner resource); + + /** + * Creates or updates an alert configuration in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @param resource The alert configuration to create or update. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return alert configuration for a managed cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + AlertConfigurationInner createOrUpdate(String resourceGroupName, String resourceName, String configurationName, + AlertConfigurationInner resource, Context context); + + /** + * Deletes an alert configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, + String configurationName); + + /** + * Deletes an alert configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @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 PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, + String configurationName); + + /** + * Deletes an alert configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, + String configurationName); + + /** + * Deletes an alert configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, + String configurationName, Context context); + + /** + * Deletes an alert configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String resourceName, String configurationName); + + /** + * Deletes an alert configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String resourceName, String configurationName); + + /** + * Deletes an alert configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String resourceName, String configurationName, Context context); + + /** + * Gets a list of alert configurations in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of alert configurations in the specified managed cluster as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listByManagedClusterAsync(String resourceGroupName, String resourceName); + + /** + * Gets a list of alert configurations in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of alert configurations in the specified managed cluster as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByManagedCluster(String resourceGroupName, String resourceName); + + /** + * Gets a list of alert configurations in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of alert configurations in the specified managed cluster as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByManagedCluster(String resourceGroupName, String resourceName, + Context context); +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ContainerServiceManagementClient.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ContainerServiceManagementClient.java index e1f32004f9da8..8495362dcc7ab 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ContainerServiceManagementClient.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ContainerServiceManagementClient.java @@ -67,6 +67,13 @@ public interface ContainerServiceManagementClient { */ MaintenanceConfigurationsClient getMaintenanceConfigurations(); + /** + * Gets the MaintenanceWindowsClient object to access its operations. + * + * @return the MaintenanceWindowsClient object. + */ + MaintenanceWindowsClient getMaintenanceWindows(); + /** * Gets the ManagedNamespacesClient object to access its operations. * @@ -95,6 +102,13 @@ public interface ContainerServiceManagementClient { */ SnapshotsClient getSnapshots(); + /** + * Gets the ManagedClusterSnapshotsClient object to access its operations. + * + * @return the ManagedClusterSnapshotsClient object. + */ + ManagedClusterSnapshotsClient getManagedClusterSnapshots(); + /** * Gets the TrustedAccessRoleBindingsClient object to access its operations. * @@ -102,6 +116,13 @@ public interface ContainerServiceManagementClient { */ TrustedAccessRoleBindingsClient getTrustedAccessRoleBindings(); + /** + * Gets the LoadBalancersClient object to access its operations. + * + * @return the LoadBalancersClient object. + */ + LoadBalancersClient getLoadBalancers(); + /** * Gets the IdentityBindingsClient object to access its operations. * @@ -109,6 +130,27 @@ public interface ContainerServiceManagementClient { */ IdentityBindingsClient getIdentityBindings(); + /** + * Gets the JWTAuthenticatorsClient object to access its operations. + * + * @return the JWTAuthenticatorsClient object. + */ + JWTAuthenticatorsClient getJWTAuthenticators(); + + /** + * Gets the MeshMembershipsClient object to access its operations. + * + * @return the MeshMembershipsClient object. + */ + MeshMembershipsClient getMeshMemberships(); + + /** + * Gets the AgentFabricMembershipsClient object to access its operations. + * + * @return the AgentFabricMembershipsClient object. + */ + AgentFabricMembershipsClient getAgentFabricMemberships(); + /** * Gets the OperationsClient object to access its operations. * @@ -116,6 +158,27 @@ public interface ContainerServiceManagementClient { */ OperationsClient getOperations(); + /** + * Gets the AlertConfigurationsClient object to access its operations. + * + * @return the AlertConfigurationsClient object. + */ + AlertConfigurationsClient getAlertConfigurations(); + + /** + * Gets the UpgradeInsightsClient object to access its operations. + * + * @return the UpgradeInsightsClient object. + */ + UpgradeInsightsClient getUpgradeInsights(); + + /** + * Gets the OperationStatusResultsClient object to access its operations. + * + * @return the OperationStatusResultsClient object. + */ + OperationStatusResultsClient getOperationStatusResults(); + /** * Gets the PrivateLinkResourcesClient object to access its operations. * @@ -136,4 +199,11 @@ public interface ContainerServiceManagementClient { * @return the TrustedAccessRolesClient object. */ TrustedAccessRolesClient getTrustedAccessRoles(); + + /** + * Gets the VmSkusClient object to access its operations. + * + * @return the VmSkusClient object. + */ + VmSkusClient getVmSkus(); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/JWTAuthenticatorsClient.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/JWTAuthenticatorsClient.java new file mode 100644 index 0000000000000..53512b9a8a2f0 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/JWTAuthenticatorsClient.java @@ -0,0 +1,352 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.containerservice.fluent.models.JWTAuthenticatorInner; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in JWTAuthenticatorsClient. + */ +public interface JWTAuthenticatorsClient { + /** + * Gets the specified JWT authenticator of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @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 specified JWT authenticator of a managed cluster along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getWithResponseAsync(String resourceGroupName, String resourceName, + String jwtAuthenticatorName); + + /** + * Gets the specified JWT authenticator of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @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 specified JWT authenticator of a managed cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String resourceName, String jwtAuthenticatorName); + + /** + * Gets the specified JWT authenticator of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @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 specified JWT authenticator of a managed cluster along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String resourceName, + String jwtAuthenticatorName, Context context); + + /** + * Gets the specified JWT authenticator of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @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 specified JWT authenticator of a managed cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + JWTAuthenticatorInner get(String resourceGroupName, String resourceName, String jwtAuthenticatorName); + + /** + * Creates or updates JWT authenticator in the managed cluster and updates the managed cluster to apply the + * settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @param parameters The JWT authenticator to create or update. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return configuration for JWT authenticator in the managed cluster along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String resourceName, + String jwtAuthenticatorName, JWTAuthenticatorInner parameters); + + /** + * Creates or updates JWT authenticator in the managed cluster and updates the managed cluster to apply the + * settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @param parameters The JWT authenticator to create or update. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of configuration for JWT authenticator in the managed cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, JWTAuthenticatorInner> beginCreateOrUpdateAsync( + String resourceGroupName, String resourceName, String jwtAuthenticatorName, JWTAuthenticatorInner parameters); + + /** + * Creates or updates JWT authenticator in the managed cluster and updates the managed cluster to apply the + * settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @param parameters The JWT authenticator to create or update. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of configuration for JWT authenticator in the managed cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, JWTAuthenticatorInner> beginCreateOrUpdate(String resourceGroupName, + String resourceName, String jwtAuthenticatorName, JWTAuthenticatorInner parameters); + + /** + * Creates or updates JWT authenticator in the managed cluster and updates the managed cluster to apply the + * settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @param parameters The JWT authenticator to create or update. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of configuration for JWT authenticator in the managed cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, JWTAuthenticatorInner> beginCreateOrUpdate(String resourceGroupName, + String resourceName, String jwtAuthenticatorName, JWTAuthenticatorInner parameters, Context context); + + /** + * Creates or updates JWT authenticator in the managed cluster and updates the managed cluster to apply the + * settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @param parameters The JWT authenticator to create or update. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return configuration for JWT authenticator in the managed cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono createOrUpdateAsync(String resourceGroupName, String resourceName, + String jwtAuthenticatorName, JWTAuthenticatorInner parameters); + + /** + * Creates or updates JWT authenticator in the managed cluster and updates the managed cluster to apply the + * settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @param parameters The JWT authenticator to create or update. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return configuration for JWT authenticator in the managed cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + JWTAuthenticatorInner createOrUpdate(String resourceGroupName, String resourceName, String jwtAuthenticatorName, + JWTAuthenticatorInner parameters); + + /** + * Creates or updates JWT authenticator in the managed cluster and updates the managed cluster to apply the + * settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @param parameters The JWT authenticator to create or update. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return configuration for JWT authenticator in the managed cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + JWTAuthenticatorInner createOrUpdate(String resourceGroupName, String resourceName, String jwtAuthenticatorName, + JWTAuthenticatorInner parameters, Context context); + + /** + * Deletes a JWT authenticator and updates the managed cluster to apply the settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, + String jwtAuthenticatorName); + + /** + * Deletes a JWT authenticator and updates the managed cluster to apply the settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @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 PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, + String jwtAuthenticatorName); + + /** + * Deletes a JWT authenticator and updates the managed cluster to apply the settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, + String jwtAuthenticatorName); + + /** + * Deletes a JWT authenticator and updates the managed cluster to apply the settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, + String jwtAuthenticatorName, Context context); + + /** + * Deletes a JWT authenticator and updates the managed cluster to apply the settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String resourceName, String jwtAuthenticatorName); + + /** + * Deletes a JWT authenticator and updates the managed cluster to apply the settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String resourceName, String jwtAuthenticatorName); + + /** + * Deletes a JWT authenticator and updates the managed cluster to apply the settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String resourceName, String jwtAuthenticatorName, Context context); + + /** + * Gets a list of JWT authenticators in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of JWT authenticators in the specified managed cluster as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listByManagedClusterAsync(String resourceGroupName, String resourceName); + + /** + * Gets a list of JWT authenticators in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of JWT authenticators in the specified managed cluster as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByManagedCluster(String resourceGroupName, String resourceName); + + /** + * Gets a list of JWT authenticators in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of JWT authenticators in the specified managed cluster as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByManagedCluster(String resourceGroupName, String resourceName, + Context context); +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/LoadBalancersClient.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/LoadBalancersClient.java new file mode 100644 index 0000000000000..8ea00137dede4 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/LoadBalancersClient.java @@ -0,0 +1,294 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.containerservice.fluent.models.LoadBalancerInner; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in LoadBalancersClient. + */ +public interface LoadBalancersClient { + /** + * Gets the specified load balancer. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param loadBalancerName The name of the load balancer. + * @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 specified load balancer along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getWithResponseAsync(String resourceGroupName, String resourceName, + String loadBalancerName); + + /** + * Gets the specified load balancer. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param loadBalancerName The name of the load balancer. + * @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 specified load balancer on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String resourceName, String loadBalancerName); + + /** + * Gets the specified load balancer. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param loadBalancerName The name of the load balancer. + * @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 specified load balancer along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String resourceName, String loadBalancerName, + Context context); + + /** + * Gets the specified load balancer. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param loadBalancerName The name of the load balancer. + * @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 specified load balancer. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + LoadBalancerInner get(String resourceGroupName, String resourceName, String loadBalancerName); + + /** + * Creates or updates a load balancer in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param loadBalancerName The name of the load balancer. + * @param parameters The load balancer to create or update. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the configurations regarding multiple standard load balancers along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> createOrUpdateWithResponseAsync(String resourceGroupName, String resourceName, + String loadBalancerName, LoadBalancerInner parameters); + + /** + * Creates or updates a load balancer in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param loadBalancerName The name of the load balancer. + * @param parameters The load balancer to create or update. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the configurations regarding multiple standard load balancers on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono createOrUpdateAsync(String resourceGroupName, String resourceName, String loadBalancerName, + LoadBalancerInner parameters); + + /** + * Creates or updates a load balancer in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param loadBalancerName The name of the load balancer. + * @param parameters The load balancer to create or update. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the configurations regarding multiple standard load balancers along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response createOrUpdateWithResponse(String resourceGroupName, String resourceName, + String loadBalancerName, LoadBalancerInner parameters, Context context); + + /** + * Creates or updates a load balancer in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param loadBalancerName The name of the load balancer. + * @param parameters The load balancer to create or update. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the configurations regarding multiple standard load balancers. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + LoadBalancerInner createOrUpdate(String resourceGroupName, String resourceName, String loadBalancerName, + LoadBalancerInner parameters); + + /** + * Deletes a load balancer in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param loadBalancerName The name of the load balancer. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, + String loadBalancerName); + + /** + * Deletes a load balancer in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param loadBalancerName The name of the load balancer. + * @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 PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, + String loadBalancerName); + + /** + * Deletes a load balancer in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param loadBalancerName The name of the load balancer. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, + String loadBalancerName); + + /** + * Deletes a load balancer in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param loadBalancerName The name of the load balancer. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, + String loadBalancerName, Context context); + + /** + * Deletes a load balancer in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param loadBalancerName The name of the load balancer. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String resourceName, String loadBalancerName); + + /** + * Deletes a load balancer in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param loadBalancerName The name of the load balancer. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String resourceName, String loadBalancerName); + + /** + * Deletes a load balancer in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param loadBalancerName The name of the load balancer. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String resourceName, String loadBalancerName, Context context); + + /** + * Gets a list of load balancers in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of load balancers in the specified managed cluster as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listByManagedClusterAsync(String resourceGroupName, String resourceName); + + /** + * Gets a list of load balancers in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of load balancers in the specified managed cluster as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByManagedCluster(String resourceGroupName, String resourceName); + + /** + * Gets a list of load balancers in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of load balancers in the specified managed cluster as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByManagedCluster(String resourceGroupName, String resourceName, + Context context); +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/MachinesClient.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/MachinesClient.java index 9a9d7edbf868f..ab05fe893168a 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/MachinesClient.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/MachinesClient.java @@ -9,8 +9,13 @@ import com.azure.core.http.rest.PagedFlux; import com.azure.core.http.rest.PagedIterable; import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.containerservice.fluent.models.MachineInner; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; /** @@ -82,6 +87,173 @@ Response getWithResponse(String resourceGroupName, String resource @ServiceMethod(returns = ReturnType.SINGLE) MachineInner get(String resourceGroupName, String resourceName, String agentPoolName, String machineName); + /** + * Creates or updates a machine in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param machineName Host name of the machine. + * @param parameters The machine to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a machine along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String resourceName, + String agentPoolName, String machineName, MachineInner parameters, String ifMatch, String ifNoneMatch); + + /** + * Creates or updates a machine in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param machineName Host name of the machine. + * @param parameters The machine to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of a machine. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, MachineInner> beginCreateOrUpdateAsync(String resourceGroupName, + String resourceName, String agentPoolName, String machineName, MachineInner parameters, String ifMatch, + String ifNoneMatch); + + /** + * Creates or updates a machine in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param machineName Host name of the machine. + * @param parameters The machine to create or update. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of a machine. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, MachineInner> beginCreateOrUpdateAsync(String resourceGroupName, + String resourceName, String agentPoolName, String machineName, MachineInner parameters); + + /** + * Creates or updates a machine in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param machineName Host name of the machine. + * @param parameters The machine to create or update. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of a machine. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, MachineInner> beginCreateOrUpdate(String resourceGroupName, + String resourceName, String agentPoolName, String machineName, MachineInner parameters); + + /** + * Creates or updates a machine in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param machineName Host name of the machine. + * @param parameters The machine to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. + * @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 a machine. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, MachineInner> beginCreateOrUpdate(String resourceGroupName, + String resourceName, String agentPoolName, String machineName, MachineInner parameters, String ifMatch, + String ifNoneMatch, Context context); + + /** + * Creates or updates a machine in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param machineName Host name of the machine. + * @param parameters The machine to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a machine on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono createOrUpdateAsync(String resourceGroupName, String resourceName, String agentPoolName, + String machineName, MachineInner parameters, String ifMatch, String ifNoneMatch); + + /** + * Creates or updates a machine in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param machineName Host name of the machine. + * @param parameters The machine to create or update. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a machine on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono createOrUpdateAsync(String resourceGroupName, String resourceName, String agentPoolName, + String machineName, MachineInner parameters); + + /** + * Creates or updates a machine in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param machineName Host name of the machine. + * @param parameters The machine to create or update. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a machine. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + MachineInner createOrUpdate(String resourceGroupName, String resourceName, String agentPoolName, String machineName, + MachineInner parameters); + + /** + * Creates or updates a machine in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param machineName Host name of the machine. + * @param parameters The machine to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a machine. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + MachineInner createOrUpdate(String resourceGroupName, String resourceName, String agentPoolName, String machineName, + MachineInner parameters, String ifMatch, String ifNoneMatch, Context context); + /** * Gets a list of machines in the specified agent pool. * diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/MaintenanceWindowsClient.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/MaintenanceWindowsClient.java new file mode 100644 index 0000000000000..7b40522b40c4a --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/MaintenanceWindowsClient.java @@ -0,0 +1,437 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.containerservice.fluent.models.MaintenanceWindowResourceInner; +import com.azure.resourcemanager.containerservice.models.TagsObject; +import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; +import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; +import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in MaintenanceWindowsClient. + */ +public interface MaintenanceWindowsClient extends InnerSupportsGet, + InnerSupportsListing, InnerSupportsDelete { + /** + * Gets the specified maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @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 specified maintenance window along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String maintenanceWindowName); + + /** + * Gets the specified maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @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 specified maintenance window on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getByResourceGroupAsync(String resourceGroupName, + String maintenanceWindowName); + + /** + * Gets the specified maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @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 specified maintenance window along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getByResourceGroupWithResponse(String resourceGroupName, + String maintenanceWindowName, Context context); + + /** + * Gets the specified maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @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 specified maintenance window. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + MaintenanceWindowResourceInner getByResourceGroup(String resourceGroupName, String maintenanceWindowName); + + /** + * Creates or updates a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @param resource The maintenance window to create or update. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a maintenance window is a resource-group-scoped resource that defines a reusable maintenance schedule + * which can be linked to maintenance configurations on one or more managed clusters along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String maintenanceWindowName, MaintenanceWindowResourceInner resource); + + /** + * Creates or updates a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @param resource The maintenance window to create or update. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of a maintenance window is a resource-group-scoped resource that + * defines a reusable maintenance schedule which can be linked to maintenance configurations on one or more managed + * clusters. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, MaintenanceWindowResourceInner> beginCreateOrUpdateAsync( + String resourceGroupName, String maintenanceWindowName, MaintenanceWindowResourceInner resource); + + /** + * Creates or updates a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @param resource The maintenance window to create or update. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of a maintenance window is a resource-group-scoped resource that + * defines a reusable maintenance schedule which can be linked to maintenance configurations on one or more managed + * clusters. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, MaintenanceWindowResourceInner> beginCreateOrUpdate( + String resourceGroupName, String maintenanceWindowName, MaintenanceWindowResourceInner resource); + + /** + * Creates or updates a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @param resource The maintenance window to create or update. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of a maintenance window is a resource-group-scoped resource that + * defines a reusable maintenance schedule which can be linked to maintenance configurations on one or more managed + * clusters. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, MaintenanceWindowResourceInner> beginCreateOrUpdate( + String resourceGroupName, String maintenanceWindowName, MaintenanceWindowResourceInner resource, + Context context); + + /** + * Creates or updates a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @param resource The maintenance window to create or update. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a maintenance window is a resource-group-scoped resource that defines a reusable maintenance schedule + * which can be linked to maintenance configurations on one or more managed clusters on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono createOrUpdateAsync(String resourceGroupName, String maintenanceWindowName, + MaintenanceWindowResourceInner resource); + + /** + * Creates or updates a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @param resource The maintenance window to create or update. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a maintenance window is a resource-group-scoped resource that defines a reusable maintenance schedule + * which can be linked to maintenance configurations on one or more managed clusters. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + MaintenanceWindowResourceInner createOrUpdate(String resourceGroupName, String maintenanceWindowName, + MaintenanceWindowResourceInner resource); + + /** + * Creates or updates a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @param resource The maintenance window to create or update. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a maintenance window is a resource-group-scoped resource that defines a reusable maintenance schedule + * which can be linked to maintenance configurations on one or more managed clusters. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + MaintenanceWindowResourceInner createOrUpdate(String resourceGroupName, String maintenanceWindowName, + MaintenanceWindowResourceInner resource, Context context); + + /** + * Updates tags on a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @param properties Parameters supplied to the Update maintenance window Tags operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a maintenance window is a resource-group-scoped resource that defines a reusable maintenance schedule + * which can be linked to maintenance configurations on one or more managed clusters along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> updateTagsWithResponseAsync(String resourceGroupName, + String maintenanceWindowName, TagsObject properties); + + /** + * Updates tags on a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @param properties Parameters supplied to the Update maintenance window Tags operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a maintenance window is a resource-group-scoped resource that defines a reusable maintenance schedule + * which can be linked to maintenance configurations on one or more managed clusters on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono updateTagsAsync(String resourceGroupName, String maintenanceWindowName, + TagsObject properties); + + /** + * Updates tags on a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @param properties Parameters supplied to the Update maintenance window Tags operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a maintenance window is a resource-group-scoped resource that defines a reusable maintenance schedule + * which can be linked to maintenance configurations on one or more managed clusters along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response updateTagsWithResponse(String resourceGroupName, + String maintenanceWindowName, TagsObject properties, Context context); + + /** + * Updates tags on a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @param properties Parameters supplied to the Update maintenance window Tags operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a maintenance window is a resource-group-scoped resource that defines a reusable maintenance schedule + * which can be linked to maintenance configurations on one or more managed clusters. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + MaintenanceWindowResourceInner updateTags(String resourceGroupName, String maintenanceWindowName, + TagsObject properties); + + /** + * Deletes a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String maintenanceWindowName); + + /** + * Deletes a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @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 PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String maintenanceWindowName); + + /** + * Deletes a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String maintenanceWindowName); + + /** + * Deletes a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String maintenanceWindowName, + Context context); + + /** + * Deletes a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String maintenanceWindowName); + + /** + * Deletes a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String maintenanceWindowName); + + /** + * Deletes a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String maintenanceWindowName, Context context); + + /** + * Lists maintenance windows in the specified resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a MaintenanceWindowResource list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listByResourceGroupAsync(String resourceGroupName); + + /** + * Lists maintenance windows in the specified resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a MaintenanceWindowResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName); + + /** + * Lists maintenance windows in the specified resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a MaintenanceWindowResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * Lists maintenance windows in the specified subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a MaintenanceWindowResource list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(); + + /** + * Lists maintenance windows in the specified subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a MaintenanceWindowResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * Lists maintenance windows in the specified subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a MaintenanceWindowResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ManagedClusterSnapshotsClient.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ManagedClusterSnapshotsClient.java new file mode 100644 index 0000000000000..f9298cecaeaa7 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ManagedClusterSnapshotsClient.java @@ -0,0 +1,324 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; +import com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterSnapshotInner; +import com.azure.resourcemanager.containerservice.models.TagsObject; +import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; +import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; +import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in ManagedClusterSnapshotsClient. + */ +public interface ManagedClusterSnapshotsClient extends InnerSupportsGet, + InnerSupportsListing, InnerSupportsDelete { + /** + * Gets a managed cluster snapshot. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a managed cluster snapshot along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String resourceName); + + /** + * Gets a managed cluster snapshot. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a managed cluster snapshot on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getByResourceGroupAsync(String resourceGroupName, String resourceName); + + /** + * Gets a managed cluster snapshot. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a managed cluster snapshot along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getByResourceGroupWithResponse(String resourceGroupName, String resourceName, + Context context); + + /** + * Gets a managed cluster snapshot. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a managed cluster snapshot. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ManagedClusterSnapshotInner getByResourceGroup(String resourceGroupName, String resourceName); + + /** + * Creates or updates a managed cluster snapshot. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters The managed cluster snapshot to create or update. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a managed cluster snapshot resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String resourceName, ManagedClusterSnapshotInner parameters); + + /** + * Creates or updates a managed cluster snapshot. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters The managed cluster snapshot to create or update. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a managed cluster snapshot resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono createOrUpdateAsync(String resourceGroupName, String resourceName, + ManagedClusterSnapshotInner parameters); + + /** + * Creates or updates a managed cluster snapshot. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters The managed cluster snapshot to create or update. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a managed cluster snapshot resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response createOrUpdateWithResponse(String resourceGroupName, String resourceName, + ManagedClusterSnapshotInner parameters, Context context); + + /** + * Creates or updates a managed cluster snapshot. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters The managed cluster snapshot to create or update. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a managed cluster snapshot resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ManagedClusterSnapshotInner createOrUpdate(String resourceGroupName, String resourceName, + ManagedClusterSnapshotInner parameters); + + /** + * Updates tags on a managed cluster snapshot. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters Parameters supplied to the Update managed cluster snapshot Tags operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a managed cluster snapshot resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> updateTagsWithResponseAsync(String resourceGroupName, + String resourceName, TagsObject parameters); + + /** + * Updates tags on a managed cluster snapshot. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters Parameters supplied to the Update managed cluster snapshot Tags operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a managed cluster snapshot resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono updateTagsAsync(String resourceGroupName, String resourceName, + TagsObject parameters); + + /** + * Updates tags on a managed cluster snapshot. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters Parameters supplied to the Update managed cluster snapshot Tags operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a managed cluster snapshot resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response updateTagsWithResponse(String resourceGroupName, String resourceName, + TagsObject parameters, Context context); + + /** + * Updates tags on a managed cluster snapshot. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters Parameters supplied to the Update managed cluster snapshot Tags operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a managed cluster snapshot resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ManagedClusterSnapshotInner updateTags(String resourceGroupName, String resourceName, TagsObject parameters); + + /** + * Deletes a managed cluster snapshot. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> deleteWithResponseAsync(String resourceGroupName, String resourceName); + + /** + * Deletes a managed cluster snapshot. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String resourceName); + + /** + * Deletes a managed cluster snapshot. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response deleteWithResponse(String resourceGroupName, String resourceName, Context context); + + /** + * Deletes a managed cluster snapshot. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String resourceName); + + /** + * Lists managed cluster snapshots in the specified subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ManagedClusterSnapshot list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listByResourceGroupAsync(String resourceGroupName); + + /** + * Lists managed cluster snapshots in the specified subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ManagedClusterSnapshot list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName); + + /** + * Lists managed cluster snapshots in the specified subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ManagedClusterSnapshot list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByResourceGroup(String resourceGroupName, Context context); + + /** + * Gets a list of managed cluster snapshots in the specified subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of managed cluster snapshots in the specified subscription as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(); + + /** + * Gets a list of managed cluster snapshots in the specified subscription. + * + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of managed cluster snapshots in the specified subscription as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(); + + /** + * Gets a list of managed cluster snapshots in the specified subscription. + * + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of managed cluster snapshots in the specified subscription as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(Context context); +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ManagedClustersClient.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ManagedClustersClient.java index 3028741054506..5da187c367cc2 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ManagedClustersClient.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/ManagedClustersClient.java @@ -14,18 +14,22 @@ import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.containerservice.fluent.models.CredentialResultsInner; +import com.azure.resourcemanager.containerservice.fluent.models.GuardrailsAvailableVersionInner; import com.azure.resourcemanager.containerservice.fluent.models.KubernetesVersionListResultInner; import com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterAccessProfileInner; import com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterInner; import com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterUpgradeProfileInner; import com.azure.resourcemanager.containerservice.fluent.models.MeshRevisionProfileInner; import com.azure.resourcemanager.containerservice.fluent.models.MeshUpgradeProfileInner; +import com.azure.resourcemanager.containerservice.fluent.models.NodeImageVersionInner; import com.azure.resourcemanager.containerservice.fluent.models.OutboundEnvironmentEndpointInner; import com.azure.resourcemanager.containerservice.fluent.models.RunCommandResultInner; +import com.azure.resourcemanager.containerservice.fluent.models.SafeguardsAvailableVersionInner; import com.azure.resourcemanager.containerservice.models.Format; import com.azure.resourcemanager.containerservice.models.ManagedClusterAadProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterServicePrincipalProfile; import com.azure.resourcemanager.containerservice.models.ManagedClustersGetCommandResultResponse; +import com.azure.resourcemanager.containerservice.models.RebalanceLoadBalancersRequestBody; import com.azure.resourcemanager.containerservice.models.RunCommandRequest; import com.azure.resourcemanager.containerservice.models.TagsObject; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; @@ -387,6 +391,8 @@ ManagedClusterInner updateTags(String resourceGroupName, String resourceName, Ta * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param ifMatch The request should only proceed if an entity matches this string. + * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without + * considering Pod Disruption Budget. * @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. @@ -394,7 +400,7 @@ ManagedClusterInner updateTags(String resourceGroupName, String resourceName, Ta */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, - String ifMatch); + String ifMatch, Boolean ignorePodDisruptionBudget); /** * Deletes a managed cluster. @@ -402,13 +408,16 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param ifMatch The request should only proceed if an entity matches this string. + * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without + * considering Pod Disruption Budget. * @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 PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, String ifMatch); + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, String ifMatch, + Boolean ignorePodDisruptionBudget); /** * Deletes a managed cluster. @@ -442,6 +451,8 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param ifMatch The request should only proceed if an entity matches this string. + * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without + * considering Pod Disruption Budget. * @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. @@ -450,7 +461,7 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String ifMatch, - Context context); + Boolean ignorePodDisruptionBudget, Context context); /** * Deletes a managed cluster. @@ -458,13 +469,16 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param ifMatch The request should only proceed if an entity matches this string. + * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without + * considering Pod Disruption Budget. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String resourceName, String ifMatch); + Mono deleteAsync(String resourceGroupName, String resourceName, String ifMatch, + Boolean ignorePodDisruptionBudget); /** * Deletes a managed cluster. @@ -497,13 +511,16 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param ifMatch The request should only proceed if an entity matches this string. + * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without + * considering Pod Disruption Budget. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String resourceName, String ifMatch, Context context); + void delete(String resourceGroupName, String resourceName, String ifMatch, Boolean ignorePodDisruptionBudget, + Context context); /** * Lists managed clusters in the specified subscription and resource group. @@ -1913,6 +1930,118 @@ PagedIterable listOutboundNetworkDependenciesE PagedIterable listOutboundNetworkDependenciesEndpoints(String resourceGroupName, String resourceName, Context context); + /** + * Rebalance nodes across specific load balancers. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters The names of the load balancers to be rebalanced. If set to empty, all load balancers will be + * rebalanced. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> rebalanceLoadBalancersWithResponseAsync(String resourceGroupName, + String resourceName, RebalanceLoadBalancersRequestBody parameters); + + /** + * Rebalance nodes across specific load balancers. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters The names of the load balancers to be rebalanced. If set to empty, all load balancers will be + * rebalanced. + * @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 PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginRebalanceLoadBalancersAsync(String resourceGroupName, String resourceName, + RebalanceLoadBalancersRequestBody parameters); + + /** + * Rebalance nodes across specific load balancers. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters The names of the load balancers to be rebalanced. If set to empty, all load balancers will be + * rebalanced. + * @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> beginRebalanceLoadBalancers(String resourceGroupName, String resourceName, + RebalanceLoadBalancersRequestBody parameters); + + /** + * Rebalance nodes across specific load balancers. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters The names of the load balancers to be rebalanced. If set to empty, all load balancers will be + * rebalanced. + * @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> beginRebalanceLoadBalancers(String resourceGroupName, String resourceName, + RebalanceLoadBalancersRequestBody parameters, Context context); + + /** + * Rebalance nodes across specific load balancers. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters The names of the load balancers to be rebalanced. If set to empty, all load balancers will be + * rebalanced. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono rebalanceLoadBalancersAsync(String resourceGroupName, String resourceName, + RebalanceLoadBalancersRequestBody parameters); + + /** + * Rebalance nodes across specific load balancers. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters The names of the load balancers to be rebalanced. If set to empty, all load balancers will be + * rebalanced. + * @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 rebalanceLoadBalancers(String resourceGroupName, String resourceName, + RebalanceLoadBalancersRequestBody parameters); + + /** + * Rebalance nodes across specific load balancers. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters The names of the load balancers to be rebalanced. If set to empty, all load balancers will be + * rebalanced. + * @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 rebalanceLoadBalancers(String resourceGroupName, String resourceName, + RebalanceLoadBalancersRequestBody parameters, Context context); + /** * Gets the upgrade profile of a managed cluster. * @@ -1969,6 +2098,258 @@ Response getUpgradeProfileWithResponse(String @ServiceMethod(returns = ReturnType.SINGLE) ManagedClusterUpgradeProfileInner getUpgradeProfile(String resourceGroupName, String resourceName); + /** + * Gets supported Guardrails version in the specified subscription and location. + * + * Contains Guardrails version along with its support info and whether it is a default version. + * + * @param location The name of the Azure region. + * @param version Safeguards version. + * @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 supported Guardrails version in the specified subscription and location. + * + * Contains Guardrails version along with its support info and whether it is a default version along with + * {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getGuardrailsVersionsWithResponseAsync(String location, + String version); + + /** + * Gets supported Guardrails version in the specified subscription and location. + * + * Contains Guardrails version along with its support info and whether it is a default version. + * + * @param location The name of the Azure region. + * @param version Safeguards version. + * @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 supported Guardrails version in the specified subscription and location. + * + * Contains Guardrails version along with its support info and whether it is a default version on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getGuardrailsVersionsAsync(String location, String version); + + /** + * Gets supported Guardrails version in the specified subscription and location. + * + * Contains Guardrails version along with its support info and whether it is a default version. + * + * @param location The name of the Azure region. + * @param version Safeguards version. + * @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 supported Guardrails version in the specified subscription and location. + * + * Contains Guardrails version along with its support info and whether it is a default version along with + * {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getGuardrailsVersionsWithResponse(String location, String version, + Context context); + + /** + * Gets supported Guardrails version in the specified subscription and location. + * + * Contains Guardrails version along with its support info and whether it is a default version. + * + * @param location The name of the Azure region. + * @param version Safeguards version. + * @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 supported Guardrails version in the specified subscription and location. + * + * Contains Guardrails version along with its support info and whether it is a default version. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + GuardrailsAvailableVersionInner getGuardrailsVersions(String location, String version); + + /** + * Gets a list of supported Guardrails versions in the specified subscription and location. + * + * Contains list of Guardrails version along with its support info and whether it is a default version. + * + * @param location The name of the Azure region. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of supported Guardrails versions in the specified subscription and location. + * + * Contains list of Guardrails version along with its support info and whether it is a default version as paginated + * response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listGuardrailsVersionsAsync(String location); + + /** + * Gets a list of supported Guardrails versions in the specified subscription and location. + * + * Contains list of Guardrails version along with its support info and whether it is a default version. + * + * @param location The name of the Azure region. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of supported Guardrails versions in the specified subscription and location. + * + * Contains list of Guardrails version along with its support info and whether it is a default version as paginated + * response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listGuardrailsVersions(String location); + + /** + * Gets a list of supported Guardrails versions in the specified subscription and location. + * + * Contains list of Guardrails version along with its support info and whether it is a default version. + * + * @param location The name of the Azure region. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of supported Guardrails versions in the specified subscription and location. + * + * Contains list of Guardrails version along with its support info and whether it is a default version as paginated + * response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listGuardrailsVersions(String location, Context context); + + /** + * Gets supported Safeguards version in the specified subscription and location. + * + * Contains Safeguards version along with its support info and whether it is a default version. + * + * @param location The name of the Azure region. + * @param version Safeguards version. + * @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 supported Safeguards version in the specified subscription and location. + * + * Contains Safeguards version along with its support info and whether it is a default version along with + * {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getSafeguardsVersionsWithResponseAsync(String location, + String version); + + /** + * Gets supported Safeguards version in the specified subscription and location. + * + * Contains Safeguards version along with its support info and whether it is a default version. + * + * @param location The name of the Azure region. + * @param version Safeguards version. + * @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 supported Safeguards version in the specified subscription and location. + * + * Contains Safeguards version along with its support info and whether it is a default version on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getSafeguardsVersionsAsync(String location, String version); + + /** + * Gets supported Safeguards version in the specified subscription and location. + * + * Contains Safeguards version along with its support info and whether it is a default version. + * + * @param location The name of the Azure region. + * @param version Safeguards version. + * @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 supported Safeguards version in the specified subscription and location. + * + * Contains Safeguards version along with its support info and whether it is a default version along with + * {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getSafeguardsVersionsWithResponse(String location, String version, + Context context); + + /** + * Gets supported Safeguards version in the specified subscription and location. + * + * Contains Safeguards version along with its support info and whether it is a default version. + * + * @param location The name of the Azure region. + * @param version Safeguards version. + * @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 supported Safeguards version in the specified subscription and location. + * + * Contains Safeguards version along with its support info and whether it is a default version. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + SafeguardsAvailableVersionInner getSafeguardsVersions(String location, String version); + + /** + * Gets a list of supported Safeguards versions in the specified subscription and location. + * + * Contains list of Safeguards version along with its support info and whether it is a default version. + * + * @param location The name of the Azure region. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of supported Safeguards versions in the specified subscription and location. + * + * Contains list of Safeguards version along with its support info and whether it is a default version as paginated + * response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listSafeguardsVersionsAsync(String location); + + /** + * Gets a list of supported Safeguards versions in the specified subscription and location. + * + * Contains list of Safeguards version along with its support info and whether it is a default version. + * + * @param location The name of the Azure region. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of supported Safeguards versions in the specified subscription and location. + * + * Contains list of Safeguards version along with its support info and whether it is a default version as paginated + * response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listSafeguardsVersions(String location); + + /** + * Gets a list of supported Safeguards versions in the specified subscription and location. + * + * Contains list of Safeguards version along with its support info and whether it is a default version. + * + * @param location The name of the Azure region. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of supported Safeguards versions in the specified subscription and location. + * + * Contains list of Safeguards version along with its support info and whether it is a default version as paginated + * response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listSafeguardsVersions(String location, Context context); + /** * Gets a mesh revision profile for a specified mesh in the specified location. * @@ -2267,4 +2648,59 @@ PagedIterable listMeshUpgradeProfiles(String resourceGr */ @ServiceMethod(returns = ReturnType.SINGLE) KubernetesVersionListResultInner listKubernetesVersions(String location); + + /** + * Gets a list of supported NodeImage versions in the specified subscription. + * + * Only returns the latest version of each node image. For example there may be an + * AKSUbuntu-1804gen2containerd-2024.01.26, but only AKSUbuntu-1804gen2containerd-2024.02.02 is visible in this + * list. + * + * @param location The name of the Azure region. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of supported NodeImage versions in the specified subscription. + * + * Only returns the latest version of each node image as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listNodeImageVersionsAsync(String location); + + /** + * Gets a list of supported NodeImage versions in the specified subscription. + * + * Only returns the latest version of each node image. For example there may be an + * AKSUbuntu-1804gen2containerd-2024.01.26, but only AKSUbuntu-1804gen2containerd-2024.02.02 is visible in this + * list. + * + * @param location The name of the Azure region. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of supported NodeImage versions in the specified subscription. + * + * Only returns the latest version of each node image as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listNodeImageVersions(String location); + + /** + * Gets a list of supported NodeImage versions in the specified subscription. + * + * Only returns the latest version of each node image. For example there may be an + * AKSUbuntu-1804gen2containerd-2024.01.26, but only AKSUbuntu-1804gen2containerd-2024.02.02 is visible in this + * list. + * + * @param location The name of the Azure region. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of supported NodeImage versions in the specified subscription. + * + * Only returns the latest version of each node image as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listNodeImageVersions(String location, Context context); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/MeshMembershipsClient.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/MeshMembershipsClient.java new file mode 100644 index 0000000000000..0efc90f7dbca6 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/MeshMembershipsClient.java @@ -0,0 +1,345 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.containerservice.fluent.models.MeshMembershipInner; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in MeshMembershipsClient. + */ +public interface MeshMembershipsClient { + /** + * Gets the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @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 mesh membership of a managed cluster along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getWithResponseAsync(String resourceGroupName, String resourceName, + String meshMembershipName); + + /** + * Gets the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @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 mesh membership of a managed cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String resourceName, String meshMembershipName); + + /** + * Gets the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @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 mesh membership of a managed cluster along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String resourceName, + String meshMembershipName, Context context); + + /** + * Gets the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @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 mesh membership of a managed cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + MeshMembershipInner get(String resourceGroupName, String resourceName, String meshMembershipName); + + /** + * Creates or updates the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @param parameters The mesh membership to create or update. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mesh membership of a managed cluster along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String resourceName, + String meshMembershipName, MeshMembershipInner parameters); + + /** + * Creates or updates the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @param parameters The mesh membership to create or update. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of mesh membership of a managed cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, MeshMembershipInner> beginCreateOrUpdateAsync(String resourceGroupName, + String resourceName, String meshMembershipName, MeshMembershipInner parameters); + + /** + * Creates or updates the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @param parameters The mesh membership to create or update. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of mesh membership of a managed cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, MeshMembershipInner> beginCreateOrUpdate(String resourceGroupName, + String resourceName, String meshMembershipName, MeshMembershipInner parameters); + + /** + * Creates or updates the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @param parameters The mesh membership to create or update. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of mesh membership of a managed cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, MeshMembershipInner> beginCreateOrUpdate(String resourceGroupName, + String resourceName, String meshMembershipName, MeshMembershipInner parameters, Context context); + + /** + * Creates or updates the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @param parameters The mesh membership to create or update. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mesh membership of a managed cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono createOrUpdateAsync(String resourceGroupName, String resourceName, + String meshMembershipName, MeshMembershipInner parameters); + + /** + * Creates or updates the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @param parameters The mesh membership to create or update. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mesh membership of a managed cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + MeshMembershipInner createOrUpdate(String resourceGroupName, String resourceName, String meshMembershipName, + MeshMembershipInner parameters); + + /** + * Creates or updates the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @param parameters The mesh membership to create or update. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return mesh membership of a managed cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + MeshMembershipInner createOrUpdate(String resourceGroupName, String resourceName, String meshMembershipName, + MeshMembershipInner parameters, Context context); + + /** + * Deletes the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, + String meshMembershipName); + + /** + * Deletes the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @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 PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, + String meshMembershipName); + + /** + * Deletes the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, + String meshMembershipName); + + /** + * Deletes the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, + String meshMembershipName, Context context); + + /** + * Deletes the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String resourceName, String meshMembershipName); + + /** + * Deletes the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String resourceName, String meshMembershipName); + + /** + * Deletes the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String resourceName, String meshMembershipName, Context context); + + /** + * Lists mesh memberships in a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the result of a request to list mesh memberships in a managed cluster as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listByManagedClusterAsync(String resourceGroupName, String resourceName); + + /** + * Lists mesh memberships in a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the result of a request to list mesh memberships in a managed cluster as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByManagedCluster(String resourceGroupName, String resourceName); + + /** + * Lists mesh memberships in a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the result of a request to list mesh memberships in a managed cluster as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByManagedCluster(String resourceGroupName, String resourceName, + Context context); +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/OperationStatusResultsClient.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/OperationStatusResultsClient.java new file mode 100644 index 0000000000000..4c1bbdc292e8a --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/OperationStatusResultsClient.java @@ -0,0 +1,249 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; +import com.azure.resourcemanager.containerservice.fluent.models.OperationStatusResultInner; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in OperationStatusResultsClient. + */ +public interface OperationStatusResultsClient { + /** + * Gets a list of operations in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param activeOnly If true, only return operations that are currently active (not terminal). + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of operations in the specified agent pool as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listByAgentPoolAsync(String resourceGroupName, String resourceName, + String agentPoolName, Boolean activeOnly); + + /** + * Gets a list of operations in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of operations in the specified agent pool as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listByAgentPoolAsync(String resourceGroupName, String resourceName, + String agentPoolName); + + /** + * Gets a list of operations in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of operations in the specified agent pool as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByAgentPool(String resourceGroupName, String resourceName, + String agentPoolName); + + /** + * Gets a list of operations in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param activeOnly If true, only return operations that are currently active (not terminal). + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of operations in the specified agent pool as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listByAgentPool(String resourceGroupName, String resourceName, + String agentPoolName, Boolean activeOnly, Context context); + + /** + * Get the status of a specific operation in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param operationId The ID of an ongoing async 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 status of a specific operation in the specified agent pool along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getByAgentPoolWithResponseAsync(String resourceGroupName, + String resourceName, String agentPoolName, String operationId); + + /** + * Get the status of a specific operation in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param operationId The ID of an ongoing async 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 status of a specific operation in the specified agent pool on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getByAgentPoolAsync(String resourceGroupName, String resourceName, + String agentPoolName, String operationId); + + /** + * Get the status of a specific operation in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param operationId The ID of an ongoing async operation. + * @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 status of a specific operation in the specified agent pool along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getByAgentPoolWithResponse(String resourceGroupName, String resourceName, + String agentPoolName, String operationId, Context context); + + /** + * Get the status of a specific operation in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param operationId The ID of an ongoing async 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 status of a specific operation in the specified agent pool. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + OperationStatusResultInner getByAgentPool(String resourceGroupName, String resourceName, String agentPoolName, + String operationId); + + /** + * Gets a list of operations in the specified managedCluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of operations in the specified managedCluster as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String resourceName); + + /** + * Gets a list of operations in the specified managedCluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of operations in the specified managedCluster as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String resourceName); + + /** + * Gets a list of operations in the specified managedCluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of operations in the specified managedCluster as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String resourceName, Context context); + + /** + * Get the status of a specific operation in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param operationId The ID of an ongoing async 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 status of a specific operation in the specified managed cluster along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getWithResponseAsync(String resourceGroupName, String resourceName, + String operationId); + + /** + * Get the status of a specific operation in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param operationId The ID of an ongoing async 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 status of a specific operation in the specified managed cluster on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String resourceName, String operationId); + + /** + * Get the status of a specific operation in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param operationId The ID of an ongoing async operation. + * @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 status of a specific operation in the specified managed cluster along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String resourceName, + String operationId, Context context); + + /** + * Get the status of a specific operation in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param operationId The ID of an ongoing async 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 status of a specific operation in the specified managed cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + OperationStatusResultInner get(String resourceGroupName, String resourceName, String operationId); +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/UpgradeInsightsClient.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/UpgradeInsightsClient.java new file mode 100644 index 0000000000000..4d9fc22bca7b9 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/UpgradeInsightsClient.java @@ -0,0 +1,246 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; +import com.azure.resourcemanager.containerservice.fluent.models.UpgradeInsightInner; +import com.azure.resourcemanager.containerservice.models.GenerateUpgradeInsightsContent; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in UpgradeInsightsClient. + */ +public interface UpgradeInsightsClient { + /** + * Gets a stored upgrade insight for the managed cluster by its server-generated name. + * This is a read-only operation: it returns the most recently generated readiness + * evaluation for that scope from the data store, including the detected + * upgrade-blocking issues and contextual upgrade information. It does not regenerate + * the evaluation. If no non-expired evaluation exists for the name, it returns 404. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param upgradeInsightName The name of the UpgradeInsight. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a stored upgrade insight for the managed cluster by its server-generated name. + * This is a read-only operation: it returns the most recently generated readiness + * evaluation for that scope from the data store, including the detected + * upgrade-blocking issues and contextual upgrade information along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getWithResponseAsync(String resourceGroupName, String resourceName, + String upgradeInsightName); + + /** + * Gets a stored upgrade insight for the managed cluster by its server-generated name. + * This is a read-only operation: it returns the most recently generated readiness + * evaluation for that scope from the data store, including the detected + * upgrade-blocking issues and contextual upgrade information. It does not regenerate + * the evaluation. If no non-expired evaluation exists for the name, it returns 404. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param upgradeInsightName The name of the UpgradeInsight. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a stored upgrade insight for the managed cluster by its server-generated name. + * This is a read-only operation: it returns the most recently generated readiness + * evaluation for that scope from the data store, including the detected + * upgrade-blocking issues and contextual upgrade information on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String resourceName, String upgradeInsightName); + + /** + * Gets a stored upgrade insight for the managed cluster by its server-generated name. + * This is a read-only operation: it returns the most recently generated readiness + * evaluation for that scope from the data store, including the detected + * upgrade-blocking issues and contextual upgrade information. It does not regenerate + * the evaluation. If no non-expired evaluation exists for the name, it returns 404. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param upgradeInsightName The name of the UpgradeInsight. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a stored upgrade insight for the managed cluster by its server-generated name. + * This is a read-only operation: it returns the most recently generated readiness + * evaluation for that scope from the data store, including the detected + * upgrade-blocking issues and contextual upgrade information along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String resourceName, + String upgradeInsightName, Context context); + + /** + * Gets a stored upgrade insight for the managed cluster by its server-generated name. + * This is a read-only operation: it returns the most recently generated readiness + * evaluation for that scope from the data store, including the detected + * upgrade-blocking issues and contextual upgrade information. It does not regenerate + * the evaluation. If no non-expired evaluation exists for the name, it returns 404. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param upgradeInsightName The name of the UpgradeInsight. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a stored upgrade insight for the managed cluster by its server-generated name. + * This is a read-only operation: it returns the most recently generated readiness + * evaluation for that scope from the data store, including the detected + * upgrade-blocking issues and contextual upgrade information. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + UpgradeInsightInner get(String resourceGroupName, String resourceName, String upgradeInsightName); + + /** + * Lists the stored upgrade insights for the specified managed cluster, one entry per + * scope that has been generated and not yet expired. This is a read-only operation and + * does not regenerate any evaluation. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a UpgradeInsight list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String resourceName); + + /** + * Lists the stored upgrade insights for the specified managed cluster, one entry per + * scope that has been generated and not yet expired. This is a read-only operation and + * does not regenerate any evaluation. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a UpgradeInsight list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String resourceName); + + /** + * Lists the stored upgrade insights for the specified managed cluster, one entry per + * scope that has been generated and not yet expired. This is a read-only operation and + * does not regenerate any evaluation. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a UpgradeInsight list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String resourceName, Context context); + + /** + * Generates (or refreshes) an upgrade readiness evaluation for the managed cluster. + * The requested scope and target version(s) are supplied in the request body; the + * server runs the readiness checks — the control plane Kubernetes version upgrade, a + * single agent pool Kubernetes version upgrade, a single agent pool node OS image + * upgrade, or the combined control plane and agent pools upgrade — persists the result + * as an UpgradeInsight resource with a server-generated name, and returns that + * resource. The response body is identical to a subsequent GET of the resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an upgrade insight for a managed cluster: an on-demand readiness evaluation for an + * upgrade scope, produced by the generateUpgradeInsights action on the managed cluster + * and addressable by a server-generated name along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> generateWithResponseAsync(String resourceGroupName, String resourceName, + GenerateUpgradeInsightsContent body); + + /** + * Generates (or refreshes) an upgrade readiness evaluation for the managed cluster. + * The requested scope and target version(s) are supplied in the request body; the + * server runs the readiness checks — the control plane Kubernetes version upgrade, a + * single agent pool Kubernetes version upgrade, a single agent pool node OS image + * upgrade, or the combined control plane and agent pools upgrade — persists the result + * as an UpgradeInsight resource with a server-generated name, and returns that + * resource. The response body is identical to a subsequent GET of the resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an upgrade insight for a managed cluster: an on-demand readiness evaluation for an + * upgrade scope, produced by the generateUpgradeInsights action on the managed cluster + * and addressable by a server-generated name on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono generateAsync(String resourceGroupName, String resourceName, + GenerateUpgradeInsightsContent body); + + /** + * Generates (or refreshes) an upgrade readiness evaluation for the managed cluster. + * The requested scope and target version(s) are supplied in the request body; the + * server runs the readiness checks — the control plane Kubernetes version upgrade, a + * single agent pool Kubernetes version upgrade, a single agent pool node OS image + * upgrade, or the combined control plane and agent pools upgrade — persists the result + * as an UpgradeInsight resource with a server-generated name, and returns that + * resource. The response body is identical to a subsequent GET of the resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an upgrade insight for a managed cluster: an on-demand readiness evaluation for an + * upgrade scope, produced by the generateUpgradeInsights action on the managed cluster + * and addressable by a server-generated name along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response generateWithResponse(String resourceGroupName, String resourceName, + GenerateUpgradeInsightsContent body, Context context); + + /** + * Generates (or refreshes) an upgrade readiness evaluation for the managed cluster. + * The requested scope and target version(s) are supplied in the request body; the + * server runs the readiness checks — the control plane Kubernetes version upgrade, a + * single agent pool Kubernetes version upgrade, a single agent pool node OS image + * upgrade, or the combined control plane and agent pools upgrade — persists the result + * as an UpgradeInsight resource with a server-generated name, and returns that + * resource. The response body is identical to a subsequent GET of the resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an upgrade insight for a managed cluster: an on-demand readiness evaluation for an + * upgrade scope, produced by the generateUpgradeInsights action on the managed cluster + * and addressable by a server-generated name. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + UpgradeInsightInner generate(String resourceGroupName, String resourceName, GenerateUpgradeInsightsContent body); +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/VmSkusClient.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/VmSkusClient.java new file mode 100644 index 0000000000000..09ad3c0c5e982 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/VmSkusClient.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.containerservice.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.util.Context; +import com.azure.resourcemanager.containerservice.fluent.models.ResourceSkuInner; + +/** + * An instance of this class provides access to all the operations defined in VmSkusClient. + */ +public interface VmSkusClient { + /** + * Gets the list of VM SKUs accepted by AKS. + * + * Gets the list of VM SKUs accepted by AKS when creating node pools in a specified location. AKS will perform a + * best effort approach to provision the requested VM SKUs, but availability is not guaranteed. + * + * @param location The name of the Azure region. + * @param includeExtendedLocations To Include Extended Locations information or not in the response. + * @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 list of VM SKUs accepted by AKS. + * + * Gets the list of VM SKUs accepted by AKS when creating node pools in a specified location as paginated response + * with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String location, Boolean includeExtendedLocations); + + /** + * Gets the list of VM SKUs accepted by AKS. + * + * Gets the list of VM SKUs accepted by AKS when creating node pools in a specified location. AKS will perform a + * best effort approach to provision the requested VM SKUs, but availability is not guaranteed. + * + * @param location The name of the Azure region. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of VM SKUs accepted by AKS. + * + * Gets the list of VM SKUs accepted by AKS when creating node pools in a specified location as paginated response + * with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String location); + + /** + * Gets the list of VM SKUs accepted by AKS. + * + * Gets the list of VM SKUs accepted by AKS when creating node pools in a specified location. AKS will perform a + * best effort approach to provision the requested VM SKUs, but availability is not guaranteed. + * + * @param location The name of the Azure region. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the list of VM SKUs accepted by AKS. + * + * Gets the list of VM SKUs accepted by AKS when creating node pools in a specified location as paginated response + * with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String location); + + /** + * Gets the list of VM SKUs accepted by AKS. + * + * Gets the list of VM SKUs accepted by AKS when creating node pools in a specified location. AKS will perform a + * best effort approach to provision the requested VM SKUs, but availability is not guaranteed. + * + * @param location The name of the Azure region. + * @param includeExtendedLocations To Include Extended Locations information or not in the response. + * @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 list of VM SKUs accepted by AKS. + * + * Gets the list of VM SKUs accepted by AKS when creating node pools in a specified location as paginated response + * with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String location, Boolean includeExtendedLocations, Context context); +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentFabricMembershipInner.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentFabricMembershipInner.java new file mode 100644 index 0000000000000..077d14debb7ed --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentFabricMembershipInner.java @@ -0,0 +1,210 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.containerservice.models.AgentFabricMembershipProperties; +import java.io.IOException; + +/** + * The AgentFabric membership of a managed cluster. A cluster may belong to at most one AgentFabric, so this resource + * always has the name 'default'. See https://aka.ms/aks/agentfabric-membership. + */ +@Fluent +public final class AgentFabricMembershipInner extends ProxyResource { + /* + * The resource-specific properties for this resource. + */ + private AgentFabricMembershipProperties properties; + + /* + * Resource ID of the AgentFabric that this cluster is a member of. The AgentFabric must be in the same tenant and + * subscription as the managed cluster. As the ARM envelope property, it also stops a complete mode deployment from + * deleting the membership and silently detaching the cluster. + */ + private String managedBy; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of AgentFabricMembershipInner class. + */ + public AgentFabricMembershipInner() { + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public AgentFabricMembershipProperties properties() { + return this.properties; + } + + /** + * Set the properties property: The resource-specific properties for this resource. + * + * @param properties the properties value to set. + * @return the AgentFabricMembershipInner object itself. + */ + public AgentFabricMembershipInner withProperties(AgentFabricMembershipProperties properties) { + this.properties = properties; + return this; + } + + /** + * Get the managedBy property: Resource ID of the AgentFabric that this cluster is a member of. The AgentFabric must + * be in the same tenant and subscription as the managed cluster. As the ARM envelope property, it also stops a + * complete mode deployment from deleting the membership and silently detaching the cluster. + * + * @return the managedBy value. + */ + public String managedBy() { + return this.managedBy; + } + + /** + * Set the managedBy property: Resource ID of the AgentFabric that this cluster is a member of. The AgentFabric must + * be in the same tenant and subscription as the managed cluster. As the ARM envelope property, it also stops a + * complete mode deployment from deleting the membership and silently detaching the cluster. + * + * @param managedBy the managedBy value to set. + * @return the AgentFabricMembershipInner object itself. + */ + public AgentFabricMembershipInner withManagedBy(String managedBy) { + this.managedBy = managedBy; + return this; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() != null) { + properties().validate(); + } + if (managedBy() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property managedBy in model AgentFabricMembershipInner")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(AgentFabricMembershipInner.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("managedBy", this.managedBy); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AgentFabricMembershipInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AgentFabricMembershipInner 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 AgentFabricMembershipInner. + */ + public static AgentFabricMembershipInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AgentFabricMembershipInner deserializedAgentFabricMembershipInner = new AgentFabricMembershipInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedAgentFabricMembershipInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedAgentFabricMembershipInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedAgentFabricMembershipInner.type = reader.getString(); + } else if ("managedBy".equals(fieldName)) { + deserializedAgentFabricMembershipInner.managedBy = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedAgentFabricMembershipInner.properties + = AgentFabricMembershipProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedAgentFabricMembershipInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedAgentFabricMembershipInner; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolInner.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolInner.java index 569854bbc7913..ce50afb13fec6 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolInner.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolInner.java @@ -11,6 +11,7 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.containerservice.models.AgentPoolArtifactStreamingProfile; +import com.azure.resourcemanager.containerservice.models.AgentPoolBlueGreenUpgradeSettings; import com.azure.resourcemanager.containerservice.models.AgentPoolGatewayProfile; import com.azure.resourcemanager.containerservice.models.AgentPoolMode; import com.azure.resourcemanager.containerservice.models.AgentPoolNetworkProfile; @@ -31,9 +32,11 @@ import com.azure.resourcemanager.containerservice.models.OSType; import com.azure.resourcemanager.containerservice.models.PodIpAllocationMode; import com.azure.resourcemanager.containerservice.models.PowerState; +import com.azure.resourcemanager.containerservice.models.PreparedImageSpecificationProfile; import com.azure.resourcemanager.containerservice.models.ScaleDownMode; import com.azure.resourcemanager.containerservice.models.ScaleSetEvictionPolicy; import com.azure.resourcemanager.containerservice.models.ScaleSetPriority; +import com.azure.resourcemanager.containerservice.models.UpgradeStrategy; import com.azure.resourcemanager.containerservice.models.VirtualMachineNodes; import com.azure.resourcemanager.containerservice.models.VirtualMachinesProfile; import com.azure.resourcemanager.containerservice.models.WorkloadRuntime; @@ -697,6 +700,56 @@ public AgentPoolInner withNodeImageVersion(String nodeImageVersion) { return this; } + /** + * Get the upgradeStrategy property: Defines the upgrade strategy for the agent pool. The default is Rolling. + * + * @return the upgradeStrategy value. + */ + public UpgradeStrategy upgradeStrategy() { + return this.innerProperties() == null ? null : this.innerProperties().upgradeStrategy(); + } + + /** + * Set the upgradeStrategy property: Defines the upgrade strategy for the agent pool. The default is Rolling. + * + * @param upgradeStrategy the upgradeStrategy value to set. + * @return the AgentPoolInner object itself. + */ + public AgentPoolInner withUpgradeStrategy(UpgradeStrategy upgradeStrategy) { + if (this.innerProperties() == null) { + this.innerProperties = new ManagedClusterAgentPoolProfileProperties(); + } + this.innerProperties().withUpgradeStrategy(upgradeStrategy); + return this; + } + + /** + * Get the enableOSDiskFullCaching property: Whether to enable the full-cache ephemeral OS disk feature. When this + * feature is enabled, the entire operating system will be locally cached on the ephemeral OS disk, preventing E17 + * events caused by network failures. + * + * @return the enableOSDiskFullCaching value. + */ + public Boolean enableOSDiskFullCaching() { + return this.innerProperties() == null ? null : this.innerProperties().enableOSDiskFullCaching(); + } + + /** + * Set the enableOSDiskFullCaching property: Whether to enable the full-cache ephemeral OS disk feature. When this + * feature is enabled, the entire operating system will be locally cached on the ephemeral OS disk, preventing E17 + * events caused by network failures. + * + * @param enableOSDiskFullCaching the enableOSDiskFullCaching value to set. + * @return the AgentPoolInner object itself. + */ + public AgentPoolInner withEnableOSDiskFullCaching(Boolean enableOSDiskFullCaching) { + if (this.innerProperties() == null) { + this.innerProperties = new ManagedClusterAgentPoolProfileProperties(); + } + this.innerProperties().withEnableOSDiskFullCaching(enableOSDiskFullCaching); + return this; + } + /** * Get the upgradeSettings property: Settings for upgrading the agentpool. * @@ -720,6 +773,31 @@ public AgentPoolInner withUpgradeSettings(AgentPoolUpgradeSettings upgradeSettin return this; } + /** + * Get the upgradeSettingsBlueGreen property: Settings for Blue-Green upgrade on the agentpool. Applies when upgrade + * strategy is set to BlueGreen. + * + * @return the upgradeSettingsBlueGreen value. + */ + public AgentPoolBlueGreenUpgradeSettings upgradeSettingsBlueGreen() { + return this.innerProperties() == null ? null : this.innerProperties().upgradeSettingsBlueGreen(); + } + + /** + * Set the upgradeSettingsBlueGreen property: Settings for Blue-Green upgrade on the agentpool. Applies when upgrade + * strategy is set to BlueGreen. + * + * @param upgradeSettingsBlueGreen the upgradeSettingsBlueGreen value to set. + * @return the AgentPoolInner object itself. + */ + public AgentPoolInner withUpgradeSettingsBlueGreen(AgentPoolBlueGreenUpgradeSettings upgradeSettingsBlueGreen) { + if (this.innerProperties() == null) { + this.innerProperties = new ManagedClusterAgentPoolProfileProperties(); + } + this.innerProperties().withUpgradeSettingsBlueGreen(upgradeSettingsBlueGreen); + return this; + } + /** * Get the provisioningState property: The current deployment or provisioning state. * @@ -995,6 +1073,39 @@ public AgentPoolInner withNodeTaints(List nodeTaints) { return this; } + /** + * Get the nodeInitializationTaints property: Taints added on the nodes during creation that will not be reconciled + * by AKS. These taints will not be reconciled by AKS and can be removed with a kubectl call. This field can be + * modified after node pool is created, but nodes will not be recreated with new taints until another operation that + * requires recreation (e.g. node image upgrade) happens. These taints allow for required configuration to run + * before the node is ready to accept workloads, for example 'key1=value1:NoSchedule' that then can be removed with + * `kubectl taint nodes node1 key1=value1:NoSchedule-`. + * + * @return the nodeInitializationTaints value. + */ + public List nodeInitializationTaints() { + return this.innerProperties() == null ? null : this.innerProperties().nodeInitializationTaints(); + } + + /** + * Set the nodeInitializationTaints property: Taints added on the nodes during creation that will not be reconciled + * by AKS. These taints will not be reconciled by AKS and can be removed with a kubectl call. This field can be + * modified after node pool is created, but nodes will not be recreated with new taints until another operation that + * requires recreation (e.g. node image upgrade) happens. These taints allow for required configuration to run + * before the node is ready to accept workloads, for example 'key1=value1:NoSchedule' that then can be removed with + * `kubectl taint nodes node1 key1=value1:NoSchedule-`. + * + * @param nodeInitializationTaints the nodeInitializationTaints value to set. + * @return the AgentPoolInner object itself. + */ + public AgentPoolInner withNodeInitializationTaints(List nodeInitializationTaints) { + if (this.innerProperties() == null) { + this.innerProperties = new ManagedClusterAgentPoolProfileProperties(); + } + this.innerProperties().withNodeInitializationTaints(nodeInitializationTaints); + return this; + } + /** * Get the proximityPlacementGroupId property: The ID for Proximity Placement Group. * @@ -1489,6 +1600,32 @@ public AgentPoolInner withLocalDnsProfile(LocalDnsProfile localDnsProfile) { return this; } + /** + * Get the preparedImageSpecificationProfile property: Settings to determine the prepared image specification used + * to provision nodes in a pool. + * + * @return the preparedImageSpecificationProfile value. + */ + public PreparedImageSpecificationProfile preparedImageSpecificationProfile() { + return this.innerProperties() == null ? null : this.innerProperties().preparedImageSpecificationProfile(); + } + + /** + * Set the preparedImageSpecificationProfile property: Settings to determine the prepared image specification used + * to provision nodes in a pool. + * + * @param preparedImageSpecificationProfile the preparedImageSpecificationProfile value to set. + * @return the AgentPoolInner object itself. + */ + public AgentPoolInner + withPreparedImageSpecificationProfile(PreparedImageSpecificationProfile preparedImageSpecificationProfile) { + if (this.innerProperties() == null) { + this.innerProperties = new ManagedClusterAgentPoolProfileProperties(); + } + this.innerProperties().withPreparedImageSpecificationProfile(preparedImageSpecificationProfile); + return this; + } + /** * Validates the instance. * diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolUpgradeProfileInner.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolUpgradeProfileInner.java index 69c9e9093fcbe..c9b4dd9c985d0 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolUpgradeProfileInner.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolUpgradeProfileInner.java @@ -13,6 +13,7 @@ import com.azure.json.JsonWriter; import com.azure.resourcemanager.containerservice.models.AgentPoolRecentlyUsedVersion; import com.azure.resourcemanager.containerservice.models.AgentPoolUpgradeProfilePropertiesUpgradesItem; +import com.azure.resourcemanager.containerservice.models.ComponentsByRelease; import com.azure.resourcemanager.containerservice.models.OSType; import java.io.IOException; import java.util.List; @@ -128,6 +129,15 @@ public List upgrades() { return this.innerProperties() == null ? null : this.innerProperties().upgrades(); } + /** + * Get the componentsByReleases property: List of components grouped by kubernetes major.minor version. + * + * @return the componentsByReleases value. + */ + public List componentsByReleases() { + return this.innerProperties() == null ? null : this.innerProperties().componentsByReleases(); + } + /** * Get the recentlyUsedVersions property: List of historical good versions for rollback operations. * diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolUpgradeProfileProperties.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolUpgradeProfileProperties.java index 361c33c86e5f7..678f925ed5641 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolUpgradeProfileProperties.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolUpgradeProfileProperties.java @@ -12,6 +12,7 @@ import com.azure.json.JsonWriter; import com.azure.resourcemanager.containerservice.models.AgentPoolRecentlyUsedVersion; import com.azure.resourcemanager.containerservice.models.AgentPoolUpgradeProfilePropertiesUpgradesItem; +import com.azure.resourcemanager.containerservice.models.ComponentsByRelease; import com.azure.resourcemanager.containerservice.models.OSType; import java.io.IOException; import java.util.List; @@ -36,6 +37,11 @@ public final class AgentPoolUpgradeProfileProperties implements JsonSerializable */ private List upgrades; + /* + * List of components grouped by kubernetes major.minor version. + */ + private List componentsByReleases; + /* * List of historical good versions for rollback operations. */ @@ -79,6 +85,15 @@ public List upgrades() { return this.upgrades; } + /** + * Get the componentsByReleases property: List of components grouped by kubernetes major.minor version. + * + * @return the componentsByReleases value. + */ + public List componentsByReleases() { + return this.componentsByReleases; + } + /** * Get the recentlyUsedVersions property: List of historical good versions for rollback operations. * @@ -116,6 +131,9 @@ public void validate() { if (upgrades() != null) { upgrades().forEach(e -> e.validate()); } + if (componentsByReleases() != null) { + componentsByReleases().forEach(e -> e.validate()); + } if (recentlyUsedVersions() != null) { recentlyUsedVersions().forEach(e -> e.validate()); } @@ -132,6 +150,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("kubernetesVersion", this.kubernetesVersion); jsonWriter.writeStringField("osType", this.osType == null ? null : this.osType.toString()); jsonWriter.writeArrayField("upgrades", this.upgrades, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeArrayField("componentsByReleases", this.componentsByReleases, + (writer, element) -> writer.writeJson(element)); jsonWriter.writeStringField("latestNodeImageVersion", this.latestNodeImageVersion); return jsonWriter.writeEndObject(); } @@ -161,6 +181,10 @@ public static AgentPoolUpgradeProfileProperties fromJson(JsonReader jsonReader) List upgrades = reader.readArray(reader1 -> AgentPoolUpgradeProfilePropertiesUpgradesItem.fromJson(reader1)); deserializedAgentPoolUpgradeProfileProperties.upgrades = upgrades; + } else if ("componentsByReleases".equals(fieldName)) { + List componentsByReleases + = reader.readArray(reader1 -> ComponentsByRelease.fromJson(reader1)); + deserializedAgentPoolUpgradeProfileProperties.componentsByReleases = componentsByReleases; } else if ("recentlyUsedVersions".equals(fieldName)) { List recentlyUsedVersions = reader.readArray(reader1 -> AgentPoolRecentlyUsedVersion.fromJson(reader1)); diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AlertConfigurationInner.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AlertConfigurationInner.java new file mode 100644 index 0000000000000..b99e51ff7617b --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AlertConfigurationInner.java @@ -0,0 +1,167 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.containerservice.models.AlertConfigurationProperties; +import java.io.IOException; + +/** + * Alert configuration for a managed cluster. Allows configuring AKS-managed alerts + * that notify users of important cluster events and conditions. + */ +@Fluent +public final class AlertConfigurationInner extends ProxyResource { + /* + * The resource-specific properties for this resource. + */ + private AlertConfigurationProperties properties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of AlertConfigurationInner class. + */ + public AlertConfigurationInner() { + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public AlertConfigurationProperties properties() { + return this.properties; + } + + /** + * Set the properties property: The resource-specific properties for this resource. + * + * @param properties the properties value to set. + * @return the AlertConfigurationInner object itself. + */ + public AlertConfigurationInner withProperties(AlertConfigurationProperties properties) { + this.properties = properties; + return this; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() != null) { + properties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AlertConfigurationInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AlertConfigurationInner 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 AlertConfigurationInner. + */ + public static AlertConfigurationInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AlertConfigurationInner deserializedAlertConfigurationInner = new AlertConfigurationInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedAlertConfigurationInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedAlertConfigurationInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedAlertConfigurationInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedAlertConfigurationInner.properties = AlertConfigurationProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedAlertConfigurationInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedAlertConfigurationInner; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/GuardrailsAvailableVersionInner.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/GuardrailsAvailableVersionInner.java new file mode 100644 index 0000000000000..20cc0a1d4cd5b --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/GuardrailsAvailableVersionInner.java @@ -0,0 +1,164 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.containerservice.models.GuardrailsAvailableVersionsProperties; +import java.io.IOException; + +/** + * Available Guardrails Version. + */ +@Immutable +public final class GuardrailsAvailableVersionInner extends ProxyResource { + /* + * Whether the version is default or not and support info. + */ + private GuardrailsAvailableVersionsProperties properties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of GuardrailsAvailableVersionInner class. + */ + private GuardrailsAvailableVersionInner() { + } + + /** + * Get the properties property: Whether the version is default or not and support info. + * + * @return the properties value. + */ + public GuardrailsAvailableVersionsProperties properties() { + return this.properties; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property properties in model GuardrailsAvailableVersionInner")); + } else { + properties().validate(); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(GuardrailsAvailableVersionInner.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of GuardrailsAvailableVersionInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of GuardrailsAvailableVersionInner 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 GuardrailsAvailableVersionInner. + */ + public static GuardrailsAvailableVersionInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + GuardrailsAvailableVersionInner deserializedGuardrailsAvailableVersionInner + = new GuardrailsAvailableVersionInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedGuardrailsAvailableVersionInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedGuardrailsAvailableVersionInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedGuardrailsAvailableVersionInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedGuardrailsAvailableVersionInner.properties + = GuardrailsAvailableVersionsProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedGuardrailsAvailableVersionInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedGuardrailsAvailableVersionInner; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/IdentityBindingInner.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/IdentityBindingInner.java index 6680c341c330e..de7caca0bf9d2 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/IdentityBindingInner.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/IdentityBindingInner.java @@ -23,6 +23,13 @@ public final class IdentityBindingInner extends ProxyResource { */ private IdentityBindingProperties properties; + /* + * The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed + * by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is + * removed from the template since it is managed by another resource. + */ + private String managedBy; + /* * If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. * Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity @@ -77,6 +84,30 @@ public IdentityBindingInner withProperties(IdentityBindingProperties properties) return this; } + /** + * Get the managedBy property: The fully qualified resource ID of the resource that manages this resource. Indicates + * if this resource is managed by another Azure resource. If this is present, complete mode deployment will not + * delete the resource if it is removed from the template since it is managed by another resource. + * + * @return the managedBy value. + */ + public String managedBy() { + return this.managedBy; + } + + /** + * Set the managedBy property: The fully qualified resource ID of the resource that manages this resource. Indicates + * if this resource is managed by another Azure resource. If this is present, complete mode deployment will not + * delete the resource if it is removed from the template since it is managed by another resource. + * + * @param managedBy the managedBy value to set. + * @return the IdentityBindingInner object itself. + */ + public IdentityBindingInner withManagedBy(String managedBy) { + this.managedBy = managedBy; + return this; + } + /** * Get the eTag property: If eTag is provided in the response body, it may also be provided as a header per the * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. @@ -146,6 +177,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeJsonField("properties", this.properties); + jsonWriter.writeStringField("managedBy", this.managedBy); return jsonWriter.writeEndObject(); } @@ -173,6 +205,8 @@ public static IdentityBindingInner fromJson(JsonReader jsonReader) throws IOExce deserializedIdentityBindingInner.type = reader.getString(); } else if ("properties".equals(fieldName)) { deserializedIdentityBindingInner.properties = IdentityBindingProperties.fromJson(reader); + } else if ("managedBy".equals(fieldName)) { + deserializedIdentityBindingInner.managedBy = reader.getString(); } else if ("eTag".equals(fieldName)) { deserializedIdentityBindingInner.eTag = reader.getString(); } else if ("systemData".equals(fieldName)) { diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/JWTAuthenticatorInner.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/JWTAuthenticatorInner.java new file mode 100644 index 0000000000000..790178f25c23c --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/JWTAuthenticatorInner.java @@ -0,0 +1,185 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.containerservice.models.JWTAuthenticatorProperties; +import java.io.IOException; + +/** + * Configuration for JWT authenticator in the managed cluster. + */ +@Fluent +public final class JWTAuthenticatorInner extends ProxyResource { + /* + * The properties of JWTAuthenticator. For details on how to configure the properties of a JWT authenticator, please + * refer to the Kubernetes documentation: + * https://kubernetes.io/docs/reference/access-authn-authz/authentication/#using-authentication-configuration. + * Please note that not all fields available in the Kubernetes documentation are supported by AKS. For + * troubleshooting, please see https://aka.ms/aks-external-issuers-docs. + */ + private JWTAuthenticatorProperties properties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of JWTAuthenticatorInner class. + */ + public JWTAuthenticatorInner() { + } + + /** + * Get the properties property: The properties of JWTAuthenticator. For details on how to configure the properties + * of a JWT authenticator, please refer to the Kubernetes documentation: + * https://kubernetes.io/docs/reference/access-authn-authz/authentication/#using-authentication-configuration. + * Please note that not all fields available in the Kubernetes documentation are supported by AKS. For + * troubleshooting, please see https://aka.ms/aks-external-issuers-docs. + * + * @return the properties value. + */ + public JWTAuthenticatorProperties properties() { + return this.properties; + } + + /** + * Set the properties property: The properties of JWTAuthenticator. For details on how to configure the properties + * of a JWT authenticator, please refer to the Kubernetes documentation: + * https://kubernetes.io/docs/reference/access-authn-authz/authentication/#using-authentication-configuration. + * Please note that not all fields available in the Kubernetes documentation are supported by AKS. For + * troubleshooting, please see https://aka.ms/aks-external-issuers-docs. + * + * @param properties the properties value to set. + * @return the JWTAuthenticatorInner object itself. + */ + public JWTAuthenticatorInner withProperties(JWTAuthenticatorProperties properties) { + this.properties = properties; + return this; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property properties in model JWTAuthenticatorInner")); + } else { + properties().validate(); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(JWTAuthenticatorInner.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of JWTAuthenticatorInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of JWTAuthenticatorInner 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 JWTAuthenticatorInner. + */ + public static JWTAuthenticatorInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + JWTAuthenticatorInner deserializedJWTAuthenticatorInner = new JWTAuthenticatorInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedJWTAuthenticatorInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedJWTAuthenticatorInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedJWTAuthenticatorInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedJWTAuthenticatorInner.properties = JWTAuthenticatorProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedJWTAuthenticatorInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedJWTAuthenticatorInner; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/LoadBalancerInner.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/LoadBalancerInner.java new file mode 100644 index 0000000000000..ed5ded707a816 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/LoadBalancerInner.java @@ -0,0 +1,298 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.containerservice.models.LabelSelector; +import java.io.IOException; + +/** + * The configurations regarding multiple standard load balancers. If not supplied, single load balancer mode will be + * used. Multiple standard load balancers mode will be used if at lease one configuration is supplied. There has to be a + * configuration named `kubernetes`. The name field will be the name of the corresponding public load balancer. There + * will be an internal load balancer created if needed, and the name will be `<name>-internal`. The internal lb + * shares the same configurations as the external one. The internal lbs are not needed to be included in LoadBalancer + * list. + */ +@Fluent +public final class LoadBalancerInner extends ProxyResource { + /* + * The properties of the load balancer. + */ + private LoadBalancerProperties innerProperties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of LoadBalancerInner class. + */ + public LoadBalancerInner() { + } + + /** + * Get the innerProperties property: The properties of the load balancer. + * + * @return the innerProperties value. + */ + private LoadBalancerProperties innerProperties() { + return this.innerProperties; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * Get the primaryAgentPoolName property: Required field. A string value that must specify the ID of an existing + * agent pool. All nodes in the given pool will always be added to this load balancer. This agent pool must have at + * least one node and minCount>=1 for autoscaling operations. An agent pool can only be the primary pool for a + * single load balancer. + * + * @return the primaryAgentPoolName value. + */ + public String primaryAgentPoolName() { + return this.innerProperties() == null ? null : this.innerProperties().primaryAgentPoolName(); + } + + /** + * Set the primaryAgentPoolName property: Required field. A string value that must specify the ID of an existing + * agent pool. All nodes in the given pool will always be added to this load balancer. This agent pool must have at + * least one node and minCount>=1 for autoscaling operations. An agent pool can only be the primary pool for a + * single load balancer. + * + * @param primaryAgentPoolName the primaryAgentPoolName value to set. + * @return the LoadBalancerInner object itself. + */ + public LoadBalancerInner withPrimaryAgentPoolName(String primaryAgentPoolName) { + if (this.innerProperties() == null) { + this.innerProperties = new LoadBalancerProperties(); + } + this.innerProperties().withPrimaryAgentPoolName(primaryAgentPoolName); + return this; + } + + /** + * Get the allowServicePlacement property: Whether to automatically place services on the load balancer. If not + * supplied, the default value is true. If set to false manually, both of the external and the internal load + * balancer will not be selected for services unless they explicitly target it. + * + * @return the allowServicePlacement value. + */ + public Boolean allowServicePlacement() { + return this.innerProperties() == null ? null : this.innerProperties().allowServicePlacement(); + } + + /** + * Set the allowServicePlacement property: Whether to automatically place services on the load balancer. If not + * supplied, the default value is true. If set to false manually, both of the external and the internal load + * balancer will not be selected for services unless they explicitly target it. + * + * @param allowServicePlacement the allowServicePlacement value to set. + * @return the LoadBalancerInner object itself. + */ + public LoadBalancerInner withAllowServicePlacement(Boolean allowServicePlacement) { + if (this.innerProperties() == null) { + this.innerProperties = new LoadBalancerProperties(); + } + this.innerProperties().withAllowServicePlacement(allowServicePlacement); + return this; + } + + /** + * Get the serviceLabelSelector property: Only services that must match this selector can be placed on this load + * balancer. + * + * @return the serviceLabelSelector value. + */ + public LabelSelector serviceLabelSelector() { + return this.innerProperties() == null ? null : this.innerProperties().serviceLabelSelector(); + } + + /** + * Set the serviceLabelSelector property: Only services that must match this selector can be placed on this load + * balancer. + * + * @param serviceLabelSelector the serviceLabelSelector value to set. + * @return the LoadBalancerInner object itself. + */ + public LoadBalancerInner withServiceLabelSelector(LabelSelector serviceLabelSelector) { + if (this.innerProperties() == null) { + this.innerProperties = new LoadBalancerProperties(); + } + this.innerProperties().withServiceLabelSelector(serviceLabelSelector); + return this; + } + + /** + * Get the serviceNamespaceSelector property: Services created in namespaces that match the selector can be placed + * on this load balancer. + * + * @return the serviceNamespaceSelector value. + */ + public LabelSelector serviceNamespaceSelector() { + return this.innerProperties() == null ? null : this.innerProperties().serviceNamespaceSelector(); + } + + /** + * Set the serviceNamespaceSelector property: Services created in namespaces that match the selector can be placed + * on this load balancer. + * + * @param serviceNamespaceSelector the serviceNamespaceSelector value to set. + * @return the LoadBalancerInner object itself. + */ + public LoadBalancerInner withServiceNamespaceSelector(LabelSelector serviceNamespaceSelector) { + if (this.innerProperties() == null) { + this.innerProperties = new LoadBalancerProperties(); + } + this.innerProperties().withServiceNamespaceSelector(serviceNamespaceSelector); + return this; + } + + /** + * Get the nodeSelector property: Nodes that match this selector will be possible members of this load balancer. + * + * @return the nodeSelector value. + */ + public LabelSelector nodeSelector() { + return this.innerProperties() == null ? null : this.innerProperties().nodeSelector(); + } + + /** + * Set the nodeSelector property: Nodes that match this selector will be possible members of this load balancer. + * + * @param nodeSelector the nodeSelector value to set. + * @return the LoadBalancerInner object itself. + */ + public LoadBalancerInner withNodeSelector(LabelSelector nodeSelector) { + if (this.innerProperties() == null) { + this.innerProperties = new LoadBalancerProperties(); + } + this.innerProperties().withNodeSelector(nodeSelector); + return this; + } + + /** + * Get the provisioningState property: The current provisioning state. + * + * @return the provisioningState value. + */ + public String provisioningState() { + return this.innerProperties() == null ? null : this.innerProperties().provisioningState(); + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (innerProperties() != null) { + innerProperties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of LoadBalancerInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of LoadBalancerInner 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 LoadBalancerInner. + */ + public static LoadBalancerInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + LoadBalancerInner deserializedLoadBalancerInner = new LoadBalancerInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedLoadBalancerInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedLoadBalancerInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedLoadBalancerInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedLoadBalancerInner.innerProperties = LoadBalancerProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedLoadBalancerInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedLoadBalancerInner; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/LoadBalancerProperties.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/LoadBalancerProperties.java new file mode 100644 index 0000000000000..5425a3eec21f4 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/LoadBalancerProperties.java @@ -0,0 +1,259 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.containerservice.models.LabelSelector; +import java.io.IOException; + +/** + * Properties for a load balancer resource. + */ +@Fluent +public final class LoadBalancerProperties implements JsonSerializable { + /* + * Required field. A string value that must specify the ID of an existing agent pool. All nodes in the given pool + * will always be added to this load balancer. This agent pool must have at least one node and minCount>=1 for + * autoscaling operations. An agent pool can only be the primary pool for a single load balancer. + */ + private String primaryAgentPoolName; + + /* + * Whether to automatically place services on the load balancer. If not supplied, the default value is true. If set + * to false manually, both of the external and the internal load balancer will not be selected for services unless + * they explicitly target it. + */ + private Boolean allowServicePlacement; + + /* + * Only services that must match this selector can be placed on this load balancer. + */ + private LabelSelector serviceLabelSelector; + + /* + * Services created in namespaces that match the selector can be placed on this load balancer. + */ + private LabelSelector serviceNamespaceSelector; + + /* + * Nodes that match this selector will be possible members of this load balancer. + */ + private LabelSelector nodeSelector; + + /* + * The current provisioning state. + */ + private String provisioningState; + + /** + * Creates an instance of LoadBalancerProperties class. + */ + public LoadBalancerProperties() { + } + + /** + * Get the primaryAgentPoolName property: Required field. A string value that must specify the ID of an existing + * agent pool. All nodes in the given pool will always be added to this load balancer. This agent pool must have at + * least one node and minCount>=1 for autoscaling operations. An agent pool can only be the primary pool for a + * single load balancer. + * + * @return the primaryAgentPoolName value. + */ + public String primaryAgentPoolName() { + return this.primaryAgentPoolName; + } + + /** + * Set the primaryAgentPoolName property: Required field. A string value that must specify the ID of an existing + * agent pool. All nodes in the given pool will always be added to this load balancer. This agent pool must have at + * least one node and minCount>=1 for autoscaling operations. An agent pool can only be the primary pool for a + * single load balancer. + * + * @param primaryAgentPoolName the primaryAgentPoolName value to set. + * @return the LoadBalancerProperties object itself. + */ + public LoadBalancerProperties withPrimaryAgentPoolName(String primaryAgentPoolName) { + this.primaryAgentPoolName = primaryAgentPoolName; + return this; + } + + /** + * Get the allowServicePlacement property: Whether to automatically place services on the load balancer. If not + * supplied, the default value is true. If set to false manually, both of the external and the internal load + * balancer will not be selected for services unless they explicitly target it. + * + * @return the allowServicePlacement value. + */ + public Boolean allowServicePlacement() { + return this.allowServicePlacement; + } + + /** + * Set the allowServicePlacement property: Whether to automatically place services on the load balancer. If not + * supplied, the default value is true. If set to false manually, both of the external and the internal load + * balancer will not be selected for services unless they explicitly target it. + * + * @param allowServicePlacement the allowServicePlacement value to set. + * @return the LoadBalancerProperties object itself. + */ + public LoadBalancerProperties withAllowServicePlacement(Boolean allowServicePlacement) { + this.allowServicePlacement = allowServicePlacement; + return this; + } + + /** + * Get the serviceLabelSelector property: Only services that must match this selector can be placed on this load + * balancer. + * + * @return the serviceLabelSelector value. + */ + public LabelSelector serviceLabelSelector() { + return this.serviceLabelSelector; + } + + /** + * Set the serviceLabelSelector property: Only services that must match this selector can be placed on this load + * balancer. + * + * @param serviceLabelSelector the serviceLabelSelector value to set. + * @return the LoadBalancerProperties object itself. + */ + public LoadBalancerProperties withServiceLabelSelector(LabelSelector serviceLabelSelector) { + this.serviceLabelSelector = serviceLabelSelector; + return this; + } + + /** + * Get the serviceNamespaceSelector property: Services created in namespaces that match the selector can be placed + * on this load balancer. + * + * @return the serviceNamespaceSelector value. + */ + public LabelSelector serviceNamespaceSelector() { + return this.serviceNamespaceSelector; + } + + /** + * Set the serviceNamespaceSelector property: Services created in namespaces that match the selector can be placed + * on this load balancer. + * + * @param serviceNamespaceSelector the serviceNamespaceSelector value to set. + * @return the LoadBalancerProperties object itself. + */ + public LoadBalancerProperties withServiceNamespaceSelector(LabelSelector serviceNamespaceSelector) { + this.serviceNamespaceSelector = serviceNamespaceSelector; + return this; + } + + /** + * Get the nodeSelector property: Nodes that match this selector will be possible members of this load balancer. + * + * @return the nodeSelector value. + */ + public LabelSelector nodeSelector() { + return this.nodeSelector; + } + + /** + * Set the nodeSelector property: Nodes that match this selector will be possible members of this load balancer. + * + * @param nodeSelector the nodeSelector value to set. + * @return the LoadBalancerProperties object itself. + */ + public LoadBalancerProperties withNodeSelector(LabelSelector nodeSelector) { + this.nodeSelector = nodeSelector; + return this; + } + + /** + * Get the provisioningState property: The current provisioning state. + * + * @return the provisioningState value. + */ + public String provisioningState() { + return this.provisioningState; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (primaryAgentPoolName() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property primaryAgentPoolName in model LoadBalancerProperties")); + } + if (serviceLabelSelector() != null) { + serviceLabelSelector().validate(); + } + if (serviceNamespaceSelector() != null) { + serviceNamespaceSelector().validate(); + } + if (nodeSelector() != null) { + nodeSelector().validate(); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(LoadBalancerProperties.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("primaryAgentPoolName", this.primaryAgentPoolName); + jsonWriter.writeBooleanField("allowServicePlacement", this.allowServicePlacement); + jsonWriter.writeJsonField("serviceLabelSelector", this.serviceLabelSelector); + jsonWriter.writeJsonField("serviceNamespaceSelector", this.serviceNamespaceSelector); + jsonWriter.writeJsonField("nodeSelector", this.nodeSelector); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of LoadBalancerProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of LoadBalancerProperties 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 LoadBalancerProperties. + */ + public static LoadBalancerProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + LoadBalancerProperties deserializedLoadBalancerProperties = new LoadBalancerProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("primaryAgentPoolName".equals(fieldName)) { + deserializedLoadBalancerProperties.primaryAgentPoolName = reader.getString(); + } else if ("allowServicePlacement".equals(fieldName)) { + deserializedLoadBalancerProperties.allowServicePlacement + = reader.getNullable(JsonReader::getBoolean); + } else if ("serviceLabelSelector".equals(fieldName)) { + deserializedLoadBalancerProperties.serviceLabelSelector = LabelSelector.fromJson(reader); + } else if ("serviceNamespaceSelector".equals(fieldName)) { + deserializedLoadBalancerProperties.serviceNamespaceSelector = LabelSelector.fromJson(reader); + } else if ("nodeSelector".equals(fieldName)) { + deserializedLoadBalancerProperties.nodeSelector = LabelSelector.fromJson(reader); + } else if ("provisioningState".equals(fieldName)) { + deserializedLoadBalancerProperties.provisioningState = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedLoadBalancerProperties; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MachineInner.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MachineInner.java index 348ec67773504..7d21daf092d22 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MachineInner.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MachineInner.java @@ -4,7 +4,7 @@ package com.azure.resourcemanager.containerservice.fluent.models; -import com.azure.core.annotation.Immutable; +import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; import com.azure.core.management.SystemData; import com.azure.json.JsonReader; @@ -18,7 +18,7 @@ * A machine. Contains details about the underlying virtual machine. A machine may be visible here but not in kubectl * get nodes; if so it may be because the machine has not been registered with the Kubernetes API Server yet. */ -@Immutable +@Fluent public final class MachineInner extends ProxyResource { /* * The properties of the machine @@ -53,7 +53,7 @@ public final class MachineInner extends ProxyResource { /** * Creates an instance of MachineInner class. */ - private MachineInner() { + public MachineInner() { } /** @@ -65,6 +65,17 @@ public MachineProperties properties() { return this.properties; } + /** + * Set the properties property: The properties of the machine. + * + * @param properties the properties value to set. + * @return the MachineInner object itself. + */ + public MachineInner withProperties(MachineProperties properties) { + this.properties = properties; + return this; + } + /** * Get the zones property: The Availability zone in which machine is located. * @@ -74,6 +85,17 @@ public List zones() { return this.zones; } + /** + * Set the zones property: The Availability zone in which machine is located. + * + * @param zones the zones value to set. + * @return the MachineInner object itself. + */ + public MachineInner withZones(List zones) { + this.zones = zones; + return this; + } + /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. * @@ -131,6 +153,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeJsonField("properties", this.properties); + jsonWriter.writeArrayField("zones", this.zones, (writer, element) -> writer.writeString(element)); return jsonWriter.writeEndObject(); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MaintenanceConfigurationInner.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MaintenanceConfigurationInner.java index 4b7da59359e4c..8943b03682ba8 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MaintenanceConfigurationInner.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MaintenanceConfigurationInner.java @@ -150,6 +150,35 @@ public MaintenanceConfigurationInner withNotAllowedTime(List notAllowe return this; } + /** + * Get the maintenanceWindowId property: The fully qualified resource ID of the maintenance window that this + * maintenance configuration is linked to. When set, the schedule is derived read-only from the linked maintenance + * window — maintenanceWindow becomes a computed field. When absent (the default), the schedule is defined inline + * via the maintenanceWindow property. The caller must have read access to the target maintenance window. + * + * @return the maintenanceWindowId value. + */ + public String maintenanceWindowId() { + return this.innerProperties() == null ? null : this.innerProperties().maintenanceWindowId(); + } + + /** + * Set the maintenanceWindowId property: The fully qualified resource ID of the maintenance window that this + * maintenance configuration is linked to. When set, the schedule is derived read-only from the linked maintenance + * window — maintenanceWindow becomes a computed field. When absent (the default), the schedule is defined inline + * via the maintenanceWindow property. The caller must have read access to the target maintenance window. + * + * @param maintenanceWindowId the maintenanceWindowId value to set. + * @return the MaintenanceConfigurationInner object itself. + */ + public MaintenanceConfigurationInner withMaintenanceWindowId(String maintenanceWindowId) { + if (this.innerProperties() == null) { + this.innerProperties = new MaintenanceConfigurationProperties(); + } + this.innerProperties().withMaintenanceWindowId(maintenanceWindowId); + return this; + } + /** * Get the maintenanceWindow property: Maintenance window for the maintenance configuration. * diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MaintenanceConfigurationProperties.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MaintenanceConfigurationProperties.java index 3c543b48ae30d..5c5fd90475752 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MaintenanceConfigurationProperties.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MaintenanceConfigurationProperties.java @@ -31,6 +31,14 @@ public final class MaintenanceConfigurationProperties implements JsonSerializabl */ private List notAllowedTime; + /* + * The fully qualified resource ID of the maintenance window that this maintenance configuration is linked to. When + * set, the schedule is derived read-only from the linked maintenance window — maintenanceWindow becomes a computed + * field. When absent (the default), the schedule is defined inline via the maintenanceWindow property. The caller + * must have read access to the target maintenance window. + */ + private String maintenanceWindowId; + /* * Maintenance window for the maintenance configuration. */ @@ -84,6 +92,32 @@ public MaintenanceConfigurationProperties withNotAllowedTime(List notA return this; } + /** + * Get the maintenanceWindowId property: The fully qualified resource ID of the maintenance window that this + * maintenance configuration is linked to. When set, the schedule is derived read-only from the linked maintenance + * window — maintenanceWindow becomes a computed field. When absent (the default), the schedule is defined inline + * via the maintenanceWindow property. The caller must have read access to the target maintenance window. + * + * @return the maintenanceWindowId value. + */ + public String maintenanceWindowId() { + return this.maintenanceWindowId; + } + + /** + * Set the maintenanceWindowId property: The fully qualified resource ID of the maintenance window that this + * maintenance configuration is linked to. When set, the schedule is derived read-only from the linked maintenance + * window — maintenanceWindow becomes a computed field. When absent (the default), the schedule is defined inline + * via the maintenanceWindow property. The caller must have read access to the target maintenance window. + * + * @param maintenanceWindowId the maintenanceWindowId value to set. + * @return the MaintenanceConfigurationProperties object itself. + */ + public MaintenanceConfigurationProperties withMaintenanceWindowId(String maintenanceWindowId) { + this.maintenanceWindowId = maintenanceWindowId; + return this; + } + /** * Get the maintenanceWindow property: Maintenance window for the maintenance configuration. * @@ -130,6 +164,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeArrayField("timeInWeek", this.timeInWeek, (writer, element) -> writer.writeJson(element)); jsonWriter.writeArrayField("notAllowedTime", this.notAllowedTime, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("maintenanceWindowId", this.maintenanceWindowId); jsonWriter.writeJsonField("maintenanceWindow", this.maintenanceWindow); return jsonWriter.writeEndObject(); } @@ -156,6 +191,8 @@ public static MaintenanceConfigurationProperties fromJson(JsonReader jsonReader) } else if ("notAllowedTime".equals(fieldName)) { List notAllowedTime = reader.readArray(reader1 -> TimeSpan.fromJson(reader1)); deserializedMaintenanceConfigurationProperties.notAllowedTime = notAllowedTime; + } else if ("maintenanceWindowId".equals(fieldName)) { + deserializedMaintenanceConfigurationProperties.maintenanceWindowId = reader.getString(); } else if ("maintenanceWindow".equals(fieldName)) { deserializedMaintenanceConfigurationProperties.maintenanceWindow = MaintenanceWindow.fromJson(reader); diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MaintenanceWindowResourceInner.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MaintenanceWindowResourceInner.java new file mode 100644 index 0000000000000..68dd7a9d2ea47 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MaintenanceWindowResourceInner.java @@ -0,0 +1,196 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.Resource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.containerservice.models.MaintenanceWindowResourceProperties; +import java.io.IOException; +import java.util.Map; + +/** + * A maintenance window is a resource-group-scoped resource that defines a reusable maintenance schedule which can be + * linked to maintenance configurations on one or more managed clusters. For more information, see + * https://aka.ms/aks/maintenance-windows. + */ +@Fluent +public final class MaintenanceWindowResourceInner extends Resource { + /* + * Properties of a maintenance window. + */ + private MaintenanceWindowResourceProperties properties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of MaintenanceWindowResourceInner class. + */ + public MaintenanceWindowResourceInner() { + } + + /** + * Get the properties property: Properties of a maintenance window. + * + * @return the properties value. + */ + public MaintenanceWindowResourceProperties properties() { + return this.properties; + } + + /** + * Set the properties property: Properties of a maintenance window. + * + * @param properties the properties value to set. + * @return the MaintenanceWindowResourceInner object itself. + */ + public MaintenanceWindowResourceInner withProperties(MaintenanceWindowResourceProperties properties) { + this.properties = properties; + return this; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public MaintenanceWindowResourceInner withLocation(String location) { + super.withLocation(location); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public MaintenanceWindowResourceInner withTags(Map tags) { + super.withTags(tags); + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() != null) { + properties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", location()); + jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MaintenanceWindowResourceInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MaintenanceWindowResourceInner 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 MaintenanceWindowResourceInner. + */ + public static MaintenanceWindowResourceInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MaintenanceWindowResourceInner deserializedMaintenanceWindowResourceInner + = new MaintenanceWindowResourceInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedMaintenanceWindowResourceInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedMaintenanceWindowResourceInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedMaintenanceWindowResourceInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedMaintenanceWindowResourceInner.withLocation(reader.getString()); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedMaintenanceWindowResourceInner.withTags(tags); + } else if ("properties".equals(fieldName)) { + deserializedMaintenanceWindowResourceInner.properties + = MaintenanceWindowResourceProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedMaintenanceWindowResourceInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedMaintenanceWindowResourceInner; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterAgentPoolProfileProperties.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterAgentPoolProfileProperties.java index 40d6100e0ca68..9c187c6addc65 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterAgentPoolProfileProperties.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterAgentPoolProfileProperties.java @@ -10,6 +10,7 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import com.azure.resourcemanager.containerservice.models.AgentPoolArtifactStreamingProfile; +import com.azure.resourcemanager.containerservice.models.AgentPoolBlueGreenUpgradeSettings; import com.azure.resourcemanager.containerservice.models.AgentPoolGatewayProfile; import com.azure.resourcemanager.containerservice.models.AgentPoolMode; import com.azure.resourcemanager.containerservice.models.AgentPoolNetworkProfile; @@ -30,9 +31,11 @@ import com.azure.resourcemanager.containerservice.models.OSType; import com.azure.resourcemanager.containerservice.models.PodIpAllocationMode; import com.azure.resourcemanager.containerservice.models.PowerState; +import com.azure.resourcemanager.containerservice.models.PreparedImageSpecificationProfile; import com.azure.resourcemanager.containerservice.models.ScaleDownMode; import com.azure.resourcemanager.containerservice.models.ScaleSetEvictionPolicy; import com.azure.resourcemanager.containerservice.models.ScaleSetPriority; +import com.azure.resourcemanager.containerservice.models.UpgradeStrategy; import com.azure.resourcemanager.containerservice.models.VirtualMachineNodes; import com.azure.resourcemanager.containerservice.models.VirtualMachinesProfile; import com.azure.resourcemanager.containerservice.models.WorkloadRuntime; @@ -194,11 +197,27 @@ public class ManagedClusterAgentPoolProfileProperties */ private String nodeImageVersion; + /* + * Defines the upgrade strategy for the agent pool. The default is Rolling. + */ + private UpgradeStrategy upgradeStrategy; + + /* + * Whether to enable the full-cache ephemeral OS disk feature. When this feature is enabled, the entire operating + * system will be locally cached on the ephemeral OS disk, preventing E17 events caused by network failures. + */ + private Boolean enableOSDiskFullCaching; + /* * Settings for upgrading the agentpool */ private AgentPoolUpgradeSettings upgradeSettings; + /* + * Settings for Blue-Green upgrade on the agentpool. Applies when upgrade strategy is set to BlueGreen. + */ + private AgentPoolBlueGreenUpgradeSettings upgradeSettingsBlueGreen; + /* * The current deployment or provisioning state. */ @@ -269,6 +288,16 @@ public class ManagedClusterAgentPoolProfileProperties */ private List nodeTaints; + /* + * Taints added on the nodes during creation that will not be reconciled by AKS. These taints will not be reconciled + * by AKS and can be removed with a kubectl call. This field can be modified after node pool is created, but nodes + * will not be recreated with new taints until another operation that requires recreation (e.g. node image upgrade) + * happens. These taints allow for required configuration to run before the node is ready to accept workloads, for + * example 'key1=value1:NoSchedule' that then can be removed with `kubectl taint nodes node1 + * key1=value1:NoSchedule-` + */ + private List nodeInitializationTaints; + /* * The ID for Proximity Placement Group. */ @@ -384,6 +413,11 @@ public class ManagedClusterAgentPoolProfileProperties */ private LocalDnsProfile localDnsProfile; + /* + * Settings to determine the prepared image specification used to provision nodes in a pool. + */ + private PreparedImageSpecificationProfile preparedImageSpecificationProfile; + /** * Creates an instance of ManagedClusterAgentPoolProfileProperties class. */ @@ -926,6 +960,50 @@ public ManagedClusterAgentPoolProfileProperties withNodeImageVersion(String node return this; } + /** + * Get the upgradeStrategy property: Defines the upgrade strategy for the agent pool. The default is Rolling. + * + * @return the upgradeStrategy value. + */ + public UpgradeStrategy upgradeStrategy() { + return this.upgradeStrategy; + } + + /** + * Set the upgradeStrategy property: Defines the upgrade strategy for the agent pool. The default is Rolling. + * + * @param upgradeStrategy the upgradeStrategy value to set. + * @return the ManagedClusterAgentPoolProfileProperties object itself. + */ + public ManagedClusterAgentPoolProfileProperties withUpgradeStrategy(UpgradeStrategy upgradeStrategy) { + this.upgradeStrategy = upgradeStrategy; + return this; + } + + /** + * Get the enableOSDiskFullCaching property: Whether to enable the full-cache ephemeral OS disk feature. When this + * feature is enabled, the entire operating system will be locally cached on the ephemeral OS disk, preventing E17 + * events caused by network failures. + * + * @return the enableOSDiskFullCaching value. + */ + public Boolean enableOSDiskFullCaching() { + return this.enableOSDiskFullCaching; + } + + /** + * Set the enableOSDiskFullCaching property: Whether to enable the full-cache ephemeral OS disk feature. When this + * feature is enabled, the entire operating system will be locally cached on the ephemeral OS disk, preventing E17 + * events caused by network failures. + * + * @param enableOSDiskFullCaching the enableOSDiskFullCaching value to set. + * @return the ManagedClusterAgentPoolProfileProperties object itself. + */ + public ManagedClusterAgentPoolProfileProperties withEnableOSDiskFullCaching(Boolean enableOSDiskFullCaching) { + this.enableOSDiskFullCaching = enableOSDiskFullCaching; + return this; + } + /** * Get the upgradeSettings property: Settings for upgrading the agentpool. * @@ -946,6 +1024,29 @@ public ManagedClusterAgentPoolProfileProperties withUpgradeSettings(AgentPoolUpg return this; } + /** + * Get the upgradeSettingsBlueGreen property: Settings for Blue-Green upgrade on the agentpool. Applies when upgrade + * strategy is set to BlueGreen. + * + * @return the upgradeSettingsBlueGreen value. + */ + public AgentPoolBlueGreenUpgradeSettings upgradeSettingsBlueGreen() { + return this.upgradeSettingsBlueGreen; + } + + /** + * Set the upgradeSettingsBlueGreen property: Settings for Blue-Green upgrade on the agentpool. Applies when upgrade + * strategy is set to BlueGreen. + * + * @param upgradeSettingsBlueGreen the upgradeSettingsBlueGreen value to set. + * @return the ManagedClusterAgentPoolProfileProperties object itself. + */ + public ManagedClusterAgentPoolProfileProperties + withUpgradeSettingsBlueGreen(AgentPoolBlueGreenUpgradeSettings upgradeSettingsBlueGreen) { + this.upgradeSettingsBlueGreen = upgradeSettingsBlueGreen; + return this; + } + /** * Get the provisioningState property: The current deployment or provisioning state. * @@ -1203,6 +1304,37 @@ public ManagedClusterAgentPoolProfileProperties withNodeTaints(List node return this; } + /** + * Get the nodeInitializationTaints property: Taints added on the nodes during creation that will not be reconciled + * by AKS. These taints will not be reconciled by AKS and can be removed with a kubectl call. This field can be + * modified after node pool is created, but nodes will not be recreated with new taints until another operation that + * requires recreation (e.g. node image upgrade) happens. These taints allow for required configuration to run + * before the node is ready to accept workloads, for example 'key1=value1:NoSchedule' that then can be removed with + * `kubectl taint nodes node1 key1=value1:NoSchedule-`. + * + * @return the nodeInitializationTaints value. + */ + public List nodeInitializationTaints() { + return this.nodeInitializationTaints; + } + + /** + * Set the nodeInitializationTaints property: Taints added on the nodes during creation that will not be reconciled + * by AKS. These taints will not be reconciled by AKS and can be removed with a kubectl call. This field can be + * modified after node pool is created, but nodes will not be recreated with new taints until another operation that + * requires recreation (e.g. node image upgrade) happens. These taints allow for required configuration to run + * before the node is ready to accept workloads, for example 'key1=value1:NoSchedule' that then can be removed with + * `kubectl taint nodes node1 key1=value1:NoSchedule-`. + * + * @param nodeInitializationTaints the nodeInitializationTaints value to set. + * @return the ManagedClusterAgentPoolProfileProperties object itself. + */ + public ManagedClusterAgentPoolProfileProperties + withNodeInitializationTaints(List nodeInitializationTaints) { + this.nodeInitializationTaints = nodeInitializationTaints; + return this; + } + /** * Get the proximityPlacementGroupId property: The ID for Proximity Placement Group. * @@ -1640,6 +1772,29 @@ public ManagedClusterAgentPoolProfileProperties withLocalDnsProfile(LocalDnsProf return this; } + /** + * Get the preparedImageSpecificationProfile property: Settings to determine the prepared image specification used + * to provision nodes in a pool. + * + * @return the preparedImageSpecificationProfile value. + */ + public PreparedImageSpecificationProfile preparedImageSpecificationProfile() { + return this.preparedImageSpecificationProfile; + } + + /** + * Set the preparedImageSpecificationProfile property: Settings to determine the prepared image specification used + * to provision nodes in a pool. + * + * @param preparedImageSpecificationProfile the preparedImageSpecificationProfile value to set. + * @return the ManagedClusterAgentPoolProfileProperties object itself. + */ + public ManagedClusterAgentPoolProfileProperties + withPreparedImageSpecificationProfile(PreparedImageSpecificationProfile preparedImageSpecificationProfile) { + this.preparedImageSpecificationProfile = preparedImageSpecificationProfile; + return this; + } + /** * Validates the instance. * @@ -1649,6 +1804,9 @@ public void validate() { if (upgradeSettings() != null) { upgradeSettings().validate(); } + if (upgradeSettingsBlueGreen() != null) { + upgradeSettingsBlueGreen().validate(); + } if (powerState() != null) { powerState().validate(); } @@ -1691,6 +1849,9 @@ public void validate() { if (localDnsProfile() != null) { localDnsProfile().validate(); } + if (preparedImageSpecificationProfile() != null) { + preparedImageSpecificationProfile().validate(); + } } /** @@ -1723,7 +1884,11 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("mode", this.mode == null ? null : this.mode.toString()); jsonWriter.writeStringField("orchestratorVersion", this.orchestratorVersion); jsonWriter.writeStringField("nodeImageVersion", this.nodeImageVersion); + jsonWriter.writeStringField("upgradeStrategy", + this.upgradeStrategy == null ? null : this.upgradeStrategy.toString()); + jsonWriter.writeBooleanField("enableOSDiskFullCaching", this.enableOSDiskFullCaching); jsonWriter.writeJsonField("upgradeSettings", this.upgradeSettings); + jsonWriter.writeJsonField("upgradeSettingsBlueGreen", this.upgradeSettingsBlueGreen); jsonWriter.writeJsonField("powerState", this.powerState); jsonWriter.writeArrayField("availabilityZones", this.availabilityZones, (writer, element) -> writer.writeString(element)); @@ -1737,6 +1902,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); jsonWriter.writeMapField("nodeLabels", this.nodeLabels, (writer, element) -> writer.writeString(element)); jsonWriter.writeArrayField("nodeTaints", this.nodeTaints, (writer, element) -> writer.writeString(element)); + jsonWriter.writeArrayField("nodeInitializationTaints", this.nodeInitializationTaints, + (writer, element) -> writer.writeString(element)); jsonWriter.writeStringField("proximityPlacementGroupID", this.proximityPlacementGroupId); jsonWriter.writeJsonField("kubeletConfig", this.kubeletConfig); jsonWriter.writeJsonField("linuxOSConfig", this.linuxOSConfig); @@ -1759,6 +1926,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { (writer, element) -> writer.writeJson(element)); jsonWriter.writeJsonField("status", this.status); jsonWriter.writeJsonField("localDNSProfile", this.localDnsProfile); + jsonWriter.writeJsonField("preparedImageSpecificationProfile", this.preparedImageSpecificationProfile); return jsonWriter.writeEndObject(); } @@ -1837,9 +2005,18 @@ public static ManagedClusterAgentPoolProfileProperties fromJson(JsonReader jsonR = reader.getString(); } else if ("nodeImageVersion".equals(fieldName)) { deserializedManagedClusterAgentPoolProfileProperties.nodeImageVersion = reader.getString(); + } else if ("upgradeStrategy".equals(fieldName)) { + deserializedManagedClusterAgentPoolProfileProperties.upgradeStrategy + = UpgradeStrategy.fromString(reader.getString()); + } else if ("enableOSDiskFullCaching".equals(fieldName)) { + deserializedManagedClusterAgentPoolProfileProperties.enableOSDiskFullCaching + = reader.getNullable(JsonReader::getBoolean); } else if ("upgradeSettings".equals(fieldName)) { deserializedManagedClusterAgentPoolProfileProperties.upgradeSettings = AgentPoolUpgradeSettings.fromJson(reader); + } else if ("upgradeSettingsBlueGreen".equals(fieldName)) { + deserializedManagedClusterAgentPoolProfileProperties.upgradeSettingsBlueGreen + = AgentPoolBlueGreenUpgradeSettings.fromJson(reader); } else if ("provisioningState".equals(fieldName)) { deserializedManagedClusterAgentPoolProfileProperties.provisioningState = reader.getString(); } else if ("powerState".equals(fieldName)) { @@ -1870,6 +2047,10 @@ public static ManagedClusterAgentPoolProfileProperties fromJson(JsonReader jsonR } else if ("nodeTaints".equals(fieldName)) { List nodeTaints = reader.readArray(reader1 -> reader1.getString()); deserializedManagedClusterAgentPoolProfileProperties.nodeTaints = nodeTaints; + } else if ("nodeInitializationTaints".equals(fieldName)) { + List nodeInitializationTaints = reader.readArray(reader1 -> reader1.getString()); + deserializedManagedClusterAgentPoolProfileProperties.nodeInitializationTaints + = nodeInitializationTaints; } else if ("proximityPlacementGroupID".equals(fieldName)) { deserializedManagedClusterAgentPoolProfileProperties.proximityPlacementGroupId = reader.getString(); } else if ("kubeletConfig".equals(fieldName)) { @@ -1925,6 +2106,9 @@ public static ManagedClusterAgentPoolProfileProperties fromJson(JsonReader jsonR } else if ("localDNSProfile".equals(fieldName)) { deserializedManagedClusterAgentPoolProfileProperties.localDnsProfile = LocalDnsProfile.fromJson(reader); + } else if ("preparedImageSpecificationProfile".equals(fieldName)) { + deserializedManagedClusterAgentPoolProfileProperties.preparedImageSpecificationProfile + = PreparedImageSpecificationProfile.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterInner.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterInner.java index 67b316636139f..434c141e32dec 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterInner.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterInner.java @@ -13,16 +13,20 @@ import com.azure.resourcemanager.containerservice.models.ClusterUpgradeSettings; import com.azure.resourcemanager.containerservice.models.ContainerServiceLinuxProfile; import com.azure.resourcemanager.containerservice.models.ContainerServiceNetworkProfile; +import com.azure.resourcemanager.containerservice.models.CreationData; import com.azure.resourcemanager.containerservice.models.ExtendedLocation; import com.azure.resourcemanager.containerservice.models.KubernetesSupportPlan; import com.azure.resourcemanager.containerservice.models.ManagedClusterAIToolchainOperatorProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterAadProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterAddonProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterAgentPoolProfile; +import com.azure.resourcemanager.containerservice.models.ManagedClusterAgentSandboxProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterApiServerAccessProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterAutoUpgradeProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterAzureMonitorProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterBootstrapProfile; +import com.azure.resourcemanager.containerservice.models.ManagedClusterControlPlaneScalingProfile; +import com.azure.resourcemanager.containerservice.models.ManagedClusterHealthMonitorProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterHostedSystemProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterHttpProxyConfig; import com.azure.resourcemanager.containerservice.models.ManagedClusterIdentity; @@ -32,6 +36,7 @@ import com.azure.resourcemanager.containerservice.models.ManagedClusterNodeResourceGroupProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterOidcIssuerProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterPodIdentityProfile; +import com.azure.resourcemanager.containerservice.models.ManagedClusterPodSnapshotProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterPropertiesAutoScalerProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterSecurityProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterServicePrincipalProfile; @@ -40,6 +45,7 @@ import com.azure.resourcemanager.containerservice.models.ManagedClusterStorageProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterWindowsProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterWorkloadAutoScalerProfile; +import com.azure.resourcemanager.containerservice.models.NodeDisruptionProfile; import com.azure.resourcemanager.containerservice.models.PowerState; import com.azure.resourcemanager.containerservice.models.PublicNetworkAccess; import com.azure.resourcemanager.containerservice.models.SchedulerProfile; @@ -291,6 +297,31 @@ public PowerState powerState() { return this.innerProperties() == null ? null : this.innerProperties().powerState(); } + /** + * Get the creationData property: CreationData to be used to specify the source Snapshot ID if the cluster will be + * created/upgraded using a snapshot. + * + * @return the creationData value. + */ + public CreationData creationData() { + return this.innerProperties() == null ? null : this.innerProperties().creationData(); + } + + /** + * Set the creationData property: CreationData to be used to specify the source Snapshot ID if the cluster will be + * created/upgraded using a snapshot. + * + * @param creationData the creationData value to set. + * @return the ManagedClusterInner object itself. + */ + public ManagedClusterInner withCreationData(CreationData creationData) { + if (this.innerProperties() == null) { + this.innerProperties = new ManagedClusterProperties(); + } + this.innerProperties().withCreationData(creationData); + return this; + } + /** * Get the maxAgentPools property: The max number of agent pools for the managed cluster. * @@ -727,6 +758,66 @@ public ManagedClusterInner withEnableFips(Boolean enableFips) { return this; } + /** + * Get the enableNodeHardening property: Whether to enable node hardening at the cluster level. When enabled, AKS + * applies hardened defaults for soft eviction thresholds, kube-reserved, and system-reserved on all Linux node + * pools in the cluster. Per-node-pool kubeletConfig settings take precedence over hardening defaults. On agent + * pools running Kubernetes 1.37 or later, node hardening is enabled by default and cannot be disabled; setting this + * field to false has no effect on those pools. + * + * @return the enableNodeHardening value. + */ + public Boolean enableNodeHardening() { + return this.innerProperties() == null ? null : this.innerProperties().enableNodeHardening(); + } + + /** + * Set the enableNodeHardening property: Whether to enable node hardening at the cluster level. When enabled, AKS + * applies hardened defaults for soft eviction thresholds, kube-reserved, and system-reserved on all Linux node + * pools in the cluster. Per-node-pool kubeletConfig settings take precedence over hardening defaults. On agent + * pools running Kubernetes 1.37 or later, node hardening is enabled by default and cannot be disabled; setting this + * field to false has no effect on those pools. + * + * @param enableNodeHardening the enableNodeHardening value to set. + * @return the ManagedClusterInner object itself. + */ + public ManagedClusterInner withEnableNodeHardening(Boolean enableNodeHardening) { + if (this.innerProperties() == null) { + this.innerProperties = new ManagedClusterProperties(); + } + this.innerProperties().withEnableNodeHardening(enableNodeHardening); + return this; + } + + /** + * Get the enableNamespaceResources property: Enable namespace as Azure resource. The default value is false. It can + * be enabled/disabled on creation and updating of the managed cluster. See + * [https://aka.ms/NamespaceARMResource](https://aka.ms/NamespaceARMResource) for more details on Namespace as a ARM + * Resource. + * + * @return the enableNamespaceResources value. + */ + public Boolean enableNamespaceResources() { + return this.innerProperties() == null ? null : this.innerProperties().enableNamespaceResources(); + } + + /** + * Set the enableNamespaceResources property: Enable namespace as Azure resource. The default value is false. It can + * be enabled/disabled on creation and updating of the managed cluster. See + * [https://aka.ms/NamespaceARMResource](https://aka.ms/NamespaceARMResource) for more details on Namespace as a ARM + * Resource. + * + * @param enableNamespaceResources the enableNamespaceResources value to set. + * @return the ManagedClusterInner object itself. + */ + public ManagedClusterInner withEnableNamespaceResources(Boolean enableNamespaceResources) { + if (this.innerProperties() == null) { + this.innerProperties = new ManagedClusterProperties(); + } + this.innerProperties().withEnableNamespaceResources(enableNamespaceResources); + return this; + } + /** * Get the networkProfile property: The network configuration profile. * @@ -1264,6 +1355,52 @@ public ManagedClusterAIToolchainOperatorProfile aiToolchainOperatorProfile() { return this; } + /** + * Get the agentSandboxProfile property: Agent Sandbox settings that apply to the whole cluster. + * + * @return the agentSandboxProfile value. + */ + public ManagedClusterAgentSandboxProfile agentSandboxProfile() { + return this.innerProperties() == null ? null : this.innerProperties().agentSandboxProfile(); + } + + /** + * Set the agentSandboxProfile property: Agent Sandbox settings that apply to the whole cluster. + * + * @param agentSandboxProfile the agentSandboxProfile value to set. + * @return the ManagedClusterInner object itself. + */ + public ManagedClusterInner withAgentSandboxProfile(ManagedClusterAgentSandboxProfile agentSandboxProfile) { + if (this.innerProperties() == null) { + this.innerProperties = new ManagedClusterProperties(); + } + this.innerProperties().withAgentSandboxProfile(agentSandboxProfile); + return this; + } + + /** + * Get the podSnapshotProfile property: The Pod Snapshot Restore profile for the managed cluster. + * + * @return the podSnapshotProfile value. + */ + public ManagedClusterPodSnapshotProfile podSnapshotProfile() { + return this.innerProperties() == null ? null : this.innerProperties().podSnapshotProfile(); + } + + /** + * Set the podSnapshotProfile property: The Pod Snapshot Restore profile for the managed cluster. + * + * @param podSnapshotProfile the podSnapshotProfile value to set. + * @return the ManagedClusterInner object itself. + */ + public ManagedClusterInner withPodSnapshotProfile(ManagedClusterPodSnapshotProfile podSnapshotProfile) { + if (this.innerProperties() == null) { + this.innerProperties = new ManagedClusterProperties(); + } + this.innerProperties().withPodSnapshotProfile(podSnapshotProfile); + return this; + } + /** * Get the schedulerProfile property: Profile with scheduler-related settings, like the configuration mode for each * scheduler managed by AKS. See https://aka.ms/aks/scheduler-profile. @@ -1314,6 +1451,80 @@ public ManagedClusterInner withHostedSystemProfile(ManagedClusterHostedSystemPro return this; } + /** + * Get the healthMonitorProfile property: Health monitor profile for the managed cluster. + * + * @return the healthMonitorProfile value. + */ + public ManagedClusterHealthMonitorProfile healthMonitorProfile() { + return this.innerProperties() == null ? null : this.innerProperties().healthMonitorProfile(); + } + + /** + * Set the healthMonitorProfile property: Health monitor profile for the managed cluster. + * + * @param healthMonitorProfile the healthMonitorProfile value to set. + * @return the ManagedClusterInner object itself. + */ + public ManagedClusterInner withHealthMonitorProfile(ManagedClusterHealthMonitorProfile healthMonitorProfile) { + if (this.innerProperties() == null) { + this.innerProperties = new ManagedClusterProperties(); + } + this.innerProperties().withHealthMonitorProfile(healthMonitorProfile); + return this; + } + + /** + * Get the controlPlaneScalingProfile property: Profile for providing scaled and performance guaranteed control + * plane capacity to deliver consistent performance under high workload. Requires Kubernetes version 1.33.0 or + * later. + * + * @return the controlPlaneScalingProfile value. + */ + public ManagedClusterControlPlaneScalingProfile controlPlaneScalingProfile() { + return this.innerProperties() == null ? null : this.innerProperties().controlPlaneScalingProfile(); + } + + /** + * Set the controlPlaneScalingProfile property: Profile for providing scaled and performance guaranteed control + * plane capacity to deliver consistent performance under high workload. Requires Kubernetes version 1.33.0 or + * later. + * + * @param controlPlaneScalingProfile the controlPlaneScalingProfile value to set. + * @return the ManagedClusterInner object itself. + */ + public ManagedClusterInner + withControlPlaneScalingProfile(ManagedClusterControlPlaneScalingProfile controlPlaneScalingProfile) { + if (this.innerProperties() == null) { + this.innerProperties = new ManagedClusterProperties(); + } + this.innerProperties().withControlPlaneScalingProfile(controlPlaneScalingProfile); + return this; + } + + /** + * Get the nodeDisruptionProfile property: Node disruption profile for a managed cluster. + * + * @return the nodeDisruptionProfile value. + */ + public NodeDisruptionProfile nodeDisruptionProfile() { + return this.innerProperties() == null ? null : this.innerProperties().nodeDisruptionProfile(); + } + + /** + * Set the nodeDisruptionProfile property: Node disruption profile for a managed cluster. + * + * @param nodeDisruptionProfile the nodeDisruptionProfile value to set. + * @return the ManagedClusterInner object itself. + */ + public ManagedClusterInner withNodeDisruptionProfile(NodeDisruptionProfile nodeDisruptionProfile) { + if (this.innerProperties() == null) { + this.innerProperties = new ManagedClusterProperties(); + } + this.innerProperties().withNodeDisruptionProfile(nodeDisruptionProfile); + return this; + } + /** * Get the status property: Contains read-only information about the Managed Cluster. * diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterProperties.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterProperties.java index 40843f467f0fc..fcfba52cb5da0 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterProperties.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterProperties.java @@ -12,15 +12,19 @@ import com.azure.resourcemanager.containerservice.models.ClusterUpgradeSettings; import com.azure.resourcemanager.containerservice.models.ContainerServiceLinuxProfile; import com.azure.resourcemanager.containerservice.models.ContainerServiceNetworkProfile; +import com.azure.resourcemanager.containerservice.models.CreationData; import com.azure.resourcemanager.containerservice.models.KubernetesSupportPlan; import com.azure.resourcemanager.containerservice.models.ManagedClusterAIToolchainOperatorProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterAadProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterAddonProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterAgentPoolProfile; +import com.azure.resourcemanager.containerservice.models.ManagedClusterAgentSandboxProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterApiServerAccessProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterAutoUpgradeProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterAzureMonitorProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterBootstrapProfile; +import com.azure.resourcemanager.containerservice.models.ManagedClusterControlPlaneScalingProfile; +import com.azure.resourcemanager.containerservice.models.ManagedClusterHealthMonitorProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterHostedSystemProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterHttpProxyConfig; import com.azure.resourcemanager.containerservice.models.ManagedClusterIngressProfile; @@ -29,6 +33,7 @@ import com.azure.resourcemanager.containerservice.models.ManagedClusterNodeResourceGroupProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterOidcIssuerProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterPodIdentityProfile; +import com.azure.resourcemanager.containerservice.models.ManagedClusterPodSnapshotProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterPropertiesAutoScalerProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterSecurityProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterServicePrincipalProfile; @@ -36,6 +41,7 @@ import com.azure.resourcemanager.containerservice.models.ManagedClusterStorageProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterWindowsProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterWorkloadAutoScalerProfile; +import com.azure.resourcemanager.containerservice.models.NodeDisruptionProfile; import com.azure.resourcemanager.containerservice.models.PowerState; import com.azure.resourcemanager.containerservice.models.PublicNetworkAccess; import com.azure.resourcemanager.containerservice.models.SchedulerProfile; @@ -60,6 +66,12 @@ public final class ManagedClusterProperties implements JsonSerializable e.validate()); } @@ -1368,12 +1606,27 @@ public void validate() { if (aiToolchainOperatorProfile() != null) { aiToolchainOperatorProfile().validate(); } + if (agentSandboxProfile() != null) { + agentSandboxProfile().validate(); + } + if (podSnapshotProfile() != null) { + podSnapshotProfile().validate(); + } if (schedulerProfile() != null) { schedulerProfile().validate(); } if (hostedSystemProfile() != null) { hostedSystemProfile().validate(); } + if (healthMonitorProfile() != null) { + healthMonitorProfile().validate(); + } + if (controlPlaneScalingProfile() != null) { + controlPlaneScalingProfile().validate(); + } + if (nodeDisruptionProfile() != null) { + nodeDisruptionProfile().validate(); + } if (status() != null) { status().validate(); } @@ -1385,6 +1638,7 @@ public void validate() { @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("creationData", this.creationData); jsonWriter.writeStringField("kubernetesVersion", this.kubernetesVersion); jsonWriter.writeStringField("dnsPrefix", this.dnsPrefix); jsonWriter.writeStringField("fqdnSubdomain", this.fqdnSubdomain); @@ -1401,6 +1655,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeBooleanField("enableRBAC", this.enableRbac); jsonWriter.writeStringField("supportPlan", this.supportPlan == null ? null : this.supportPlan.toString()); jsonWriter.writeBooleanField("enableFIPS", this.enableFips); + jsonWriter.writeBooleanField("enableNodeHardening", this.enableNodeHardening); + jsonWriter.writeBooleanField("enableNamespaceResources", this.enableNamespaceResources); jsonWriter.writeJsonField("networkProfile", this.networkProfile); jsonWriter.writeJsonField("aadProfile", this.aadProfile); jsonWriter.writeJsonField("autoUpgradeProfile", this.autoUpgradeProfile); @@ -1426,8 +1682,13 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeJsonField("nodeProvisioningProfile", this.nodeProvisioningProfile); jsonWriter.writeJsonField("bootstrapProfile", this.bootstrapProfile); jsonWriter.writeJsonField("aiToolchainOperatorProfile", this.aiToolchainOperatorProfile); + jsonWriter.writeJsonField("agentSandboxProfile", this.agentSandboxProfile); + jsonWriter.writeJsonField("podSnapshotProfile", this.podSnapshotProfile); jsonWriter.writeJsonField("schedulerProfile", this.schedulerProfile); jsonWriter.writeJsonField("hostedSystemProfile", this.hostedSystemProfile); + jsonWriter.writeJsonField("healthMonitorProfile", this.healthMonitorProfile); + jsonWriter.writeJsonField("controlPlaneScalingProfile", this.controlPlaneScalingProfile); + jsonWriter.writeJsonField("nodeDisruptionProfile", this.nodeDisruptionProfile); jsonWriter.writeJsonField("status", this.status); return jsonWriter.writeEndObject(); } @@ -1451,6 +1712,8 @@ public static ManagedClusterProperties fromJson(JsonReader jsonReader) throws IO deserializedManagedClusterProperties.provisioningState = reader.getString(); } else if ("powerState".equals(fieldName)) { deserializedManagedClusterProperties.powerState = PowerState.fromJson(reader); + } else if ("creationData".equals(fieldName)) { + deserializedManagedClusterProperties.creationData = CreationData.fromJson(reader); } else if ("maxAgentPools".equals(fieldName)) { deserializedManagedClusterProperties.maxAgentPools = reader.getNullable(JsonReader::getInt); } else if ("kubernetesVersion".equals(fieldName)) { @@ -1500,6 +1763,12 @@ public static ManagedClusterProperties fromJson(JsonReader jsonReader) throws IO = KubernetesSupportPlan.fromString(reader.getString()); } else if ("enableFIPS".equals(fieldName)) { deserializedManagedClusterProperties.enableFips = reader.getNullable(JsonReader::getBoolean); + } else if ("enableNodeHardening".equals(fieldName)) { + deserializedManagedClusterProperties.enableNodeHardening + = reader.getNullable(JsonReader::getBoolean); + } else if ("enableNamespaceResources".equals(fieldName)) { + deserializedManagedClusterProperties.enableNamespaceResources + = reader.getNullable(JsonReader::getBoolean); } else if ("networkProfile".equals(fieldName)) { deserializedManagedClusterProperties.networkProfile = ContainerServiceNetworkProfile.fromJson(reader); @@ -1563,11 +1832,25 @@ public static ManagedClusterProperties fromJson(JsonReader jsonReader) throws IO } else if ("aiToolchainOperatorProfile".equals(fieldName)) { deserializedManagedClusterProperties.aiToolchainOperatorProfile = ManagedClusterAIToolchainOperatorProfile.fromJson(reader); + } else if ("agentSandboxProfile".equals(fieldName)) { + deserializedManagedClusterProperties.agentSandboxProfile + = ManagedClusterAgentSandboxProfile.fromJson(reader); + } else if ("podSnapshotProfile".equals(fieldName)) { + deserializedManagedClusterProperties.podSnapshotProfile + = ManagedClusterPodSnapshotProfile.fromJson(reader); } else if ("schedulerProfile".equals(fieldName)) { deserializedManagedClusterProperties.schedulerProfile = SchedulerProfile.fromJson(reader); } else if ("hostedSystemProfile".equals(fieldName)) { deserializedManagedClusterProperties.hostedSystemProfile = ManagedClusterHostedSystemProfile.fromJson(reader); + } else if ("healthMonitorProfile".equals(fieldName)) { + deserializedManagedClusterProperties.healthMonitorProfile + = ManagedClusterHealthMonitorProfile.fromJson(reader); + } else if ("controlPlaneScalingProfile".equals(fieldName)) { + deserializedManagedClusterProperties.controlPlaneScalingProfile + = ManagedClusterControlPlaneScalingProfile.fromJson(reader); + } else if ("nodeDisruptionProfile".equals(fieldName)) { + deserializedManagedClusterProperties.nodeDisruptionProfile = NodeDisruptionProfile.fromJson(reader); } else if ("status".equals(fieldName)) { deserializedManagedClusterProperties.status = ManagedClusterStatus.fromJson(reader); } else { diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterSnapshotInner.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterSnapshotInner.java new file mode 100644 index 0000000000000..ad04226937afd --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterSnapshotInner.java @@ -0,0 +1,240 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.Resource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.containerservice.models.CreationData; +import com.azure.resourcemanager.containerservice.models.ManagedClusterPropertiesForSnapshot; +import com.azure.resourcemanager.containerservice.models.SnapshotType; +import java.io.IOException; +import java.util.Map; + +/** + * A managed cluster snapshot resource. + */ +@Fluent +public final class ManagedClusterSnapshotInner extends Resource { + /* + * Properties of a managed cluster snapshot. + */ + private ManagedClusterSnapshotProperties innerProperties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of ManagedClusterSnapshotInner class. + */ + public ManagedClusterSnapshotInner() { + } + + /** + * Get the innerProperties property: Properties of a managed cluster snapshot. + * + * @return the innerProperties value. + */ + private ManagedClusterSnapshotProperties innerProperties() { + return this.innerProperties; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public ManagedClusterSnapshotInner withLocation(String location) { + super.withLocation(location); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public ManagedClusterSnapshotInner withTags(Map tags) { + super.withTags(tags); + return this; + } + + /** + * Get the creationData property: CreationData to be used to specify the source resource ID to create this snapshot. + * + * @return the creationData value. + */ + public CreationData creationData() { + return this.innerProperties() == null ? null : this.innerProperties().creationData(); + } + + /** + * Set the creationData property: CreationData to be used to specify the source resource ID to create this snapshot. + * + * @param creationData the creationData value to set. + * @return the ManagedClusterSnapshotInner object itself. + */ + public ManagedClusterSnapshotInner withCreationData(CreationData creationData) { + if (this.innerProperties() == null) { + this.innerProperties = new ManagedClusterSnapshotProperties(); + } + this.innerProperties().withCreationData(creationData); + return this; + } + + /** + * Get the snapshotType property: The type of a snapshot. The default is NodePool. + * + * @return the snapshotType value. + */ + public SnapshotType snapshotType() { + return this.innerProperties() == null ? null : this.innerProperties().snapshotType(); + } + + /** + * Set the snapshotType property: The type of a snapshot. The default is NodePool. + * + * @param snapshotType the snapshotType value to set. + * @return the ManagedClusterSnapshotInner object itself. + */ + public ManagedClusterSnapshotInner withSnapshotType(SnapshotType snapshotType) { + if (this.innerProperties() == null) { + this.innerProperties = new ManagedClusterSnapshotProperties(); + } + this.innerProperties().withSnapshotType(snapshotType); + return this; + } + + /** + * Get the managedClusterPropertiesReadOnly property: What the properties will be showed when getting managed + * cluster snapshot. Those properties are read-only. + * + * @return the managedClusterPropertiesReadOnly value. + */ + public ManagedClusterPropertiesForSnapshot managedClusterPropertiesReadOnly() { + return this.innerProperties() == null ? null : this.innerProperties().managedClusterPropertiesReadOnly(); + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (innerProperties() != null) { + innerProperties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", location()); + jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("properties", this.innerProperties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ManagedClusterSnapshotInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ManagedClusterSnapshotInner 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 ManagedClusterSnapshotInner. + */ + public static ManagedClusterSnapshotInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ManagedClusterSnapshotInner deserializedManagedClusterSnapshotInner = new ManagedClusterSnapshotInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedManagedClusterSnapshotInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedManagedClusterSnapshotInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedManagedClusterSnapshotInner.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedManagedClusterSnapshotInner.withLocation(reader.getString()); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedManagedClusterSnapshotInner.withTags(tags); + } else if ("properties".equals(fieldName)) { + deserializedManagedClusterSnapshotInner.innerProperties + = ManagedClusterSnapshotProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedManagedClusterSnapshotInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedManagedClusterSnapshotInner; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterSnapshotProperties.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterSnapshotProperties.java new file mode 100644 index 0000000000000..e1a44d06f3a7b --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterSnapshotProperties.java @@ -0,0 +1,150 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.fluent.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 com.azure.resourcemanager.containerservice.models.CreationData; +import com.azure.resourcemanager.containerservice.models.ManagedClusterPropertiesForSnapshot; +import com.azure.resourcemanager.containerservice.models.SnapshotType; +import java.io.IOException; + +/** + * Properties for a managed cluster snapshot. + */ +@Fluent +public final class ManagedClusterSnapshotProperties implements JsonSerializable { + /* + * CreationData to be used to specify the source resource ID to create this snapshot. + */ + private CreationData creationData; + + /* + * The type of a snapshot. The default is NodePool. + */ + private SnapshotType snapshotType; + + /* + * What the properties will be showed when getting managed cluster snapshot. Those properties are read-only. + */ + private ManagedClusterPropertiesForSnapshot managedClusterPropertiesReadOnly; + + /** + * Creates an instance of ManagedClusterSnapshotProperties class. + */ + public ManagedClusterSnapshotProperties() { + } + + /** + * Get the creationData property: CreationData to be used to specify the source resource ID to create this snapshot. + * + * @return the creationData value. + */ + public CreationData creationData() { + return this.creationData; + } + + /** + * Set the creationData property: CreationData to be used to specify the source resource ID to create this snapshot. + * + * @param creationData the creationData value to set. + * @return the ManagedClusterSnapshotProperties object itself. + */ + public ManagedClusterSnapshotProperties withCreationData(CreationData creationData) { + this.creationData = creationData; + return this; + } + + /** + * Get the snapshotType property: The type of a snapshot. The default is NodePool. + * + * @return the snapshotType value. + */ + public SnapshotType snapshotType() { + return this.snapshotType; + } + + /** + * Set the snapshotType property: The type of a snapshot. The default is NodePool. + * + * @param snapshotType the snapshotType value to set. + * @return the ManagedClusterSnapshotProperties object itself. + */ + public ManagedClusterSnapshotProperties withSnapshotType(SnapshotType snapshotType) { + this.snapshotType = snapshotType; + return this; + } + + /** + * Get the managedClusterPropertiesReadOnly property: What the properties will be showed when getting managed + * cluster snapshot. Those properties are read-only. + * + * @return the managedClusterPropertiesReadOnly value. + */ + public ManagedClusterPropertiesForSnapshot managedClusterPropertiesReadOnly() { + return this.managedClusterPropertiesReadOnly; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (creationData() != null) { + creationData().validate(); + } + if (managedClusterPropertiesReadOnly() != null) { + managedClusterPropertiesReadOnly().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("creationData", this.creationData); + jsonWriter.writeStringField("snapshotType", this.snapshotType == null ? null : this.snapshotType.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ManagedClusterSnapshotProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ManagedClusterSnapshotProperties 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 ManagedClusterSnapshotProperties. + */ + public static ManagedClusterSnapshotProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ManagedClusterSnapshotProperties deserializedManagedClusterSnapshotProperties + = new ManagedClusterSnapshotProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("creationData".equals(fieldName)) { + deserializedManagedClusterSnapshotProperties.creationData = CreationData.fromJson(reader); + } else if ("snapshotType".equals(fieldName)) { + deserializedManagedClusterSnapshotProperties.snapshotType + = SnapshotType.fromString(reader.getString()); + } else if ("managedClusterPropertiesReadOnly".equals(fieldName)) { + deserializedManagedClusterSnapshotProperties.managedClusterPropertiesReadOnly + = ManagedClusterPropertiesForSnapshot.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedManagedClusterSnapshotProperties; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MeshMembershipInner.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MeshMembershipInner.java new file mode 100644 index 0000000000000..ead228ed07988 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MeshMembershipInner.java @@ -0,0 +1,222 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.containerservice.models.MeshMembershipProperties; +import java.io.IOException; + +/** + * Mesh membership of a managed cluster. + */ +@Fluent +public final class MeshMembershipInner extends ProxyResource { + /* + * Mesh membership properties of a managed cluster. + */ + private MeshMembershipProperties properties; + + /* + * The fully qualified resource ID of the resource that manages this resource. Indicates if this resource is managed + * by another Azure resource. If this is present, complete mode deployment will not delete the resource if it is + * removed from the template since it is managed by another resource. + */ + private String managedBy; + + /* + * If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. + * Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity + * tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section + * 14.27) header fields. + */ + private String eTag; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of MeshMembershipInner class. + */ + public MeshMembershipInner() { + } + + /** + * Get the properties property: Mesh membership properties of a managed cluster. + * + * @return the properties value. + */ + public MeshMembershipProperties properties() { + return this.properties; + } + + /** + * Set the properties property: Mesh membership properties of a managed cluster. + * + * @param properties the properties value to set. + * @return the MeshMembershipInner object itself. + */ + public MeshMembershipInner withProperties(MeshMembershipProperties properties) { + this.properties = properties; + return this; + } + + /** + * Get the managedBy property: The fully qualified resource ID of the resource that manages this resource. Indicates + * if this resource is managed by another Azure resource. If this is present, complete mode deployment will not + * delete the resource if it is removed from the template since it is managed by another resource. + * + * @return the managedBy value. + */ + public String managedBy() { + return this.managedBy; + } + + /** + * Set the managedBy property: The fully qualified resource ID of the resource that manages this resource. Indicates + * if this resource is managed by another Azure resource. If this is present, complete mode deployment will not + * delete the resource if it is removed from the template since it is managed by another resource. + * + * @param managedBy the managedBy value to set. + * @return the MeshMembershipInner object itself. + */ + public MeshMembershipInner withManagedBy(String managedBy) { + this.managedBy = managedBy; + return this; + } + + /** + * Get the eTag property: If eTag is provided in the response body, it may also be provided as a header per the + * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. + * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), + * and If-Range (section 14.27) header fields. + * + * @return the eTag value. + */ + public String eTag() { + return this.eTag; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() != null) { + properties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + jsonWriter.writeStringField("managedBy", this.managedBy); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MeshMembershipInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MeshMembershipInner 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 MeshMembershipInner. + */ + public static MeshMembershipInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MeshMembershipInner deserializedMeshMembershipInner = new MeshMembershipInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedMeshMembershipInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedMeshMembershipInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedMeshMembershipInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedMeshMembershipInner.properties = MeshMembershipProperties.fromJson(reader); + } else if ("managedBy".equals(fieldName)) { + deserializedMeshMembershipInner.managedBy = reader.getString(); + } else if ("eTag".equals(fieldName)) { + deserializedMeshMembershipInner.eTag = reader.getString(); + } else if ("systemData".equals(fieldName)) { + deserializedMeshMembershipInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedMeshMembershipInner; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/NodeImageVersionInner.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/NodeImageVersionInner.java new file mode 100644 index 0000000000000..50dab7b1d2a67 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/NodeImageVersionInner.java @@ -0,0 +1,134 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * node image version profile for given major.minor.patch release. + */ +@Immutable +public final class NodeImageVersionInner implements JsonSerializable { + /* + * The operating system of the node image. Example: AKSUbuntu + */ + private String os; + + /* + * The SKU or flavor of the node image. Example: 2004gen2containerd + */ + private String sku; + + /* + * major.minor.patch version of the node image version release. Example: 2024.02.02 + */ + private String version; + + /* + * The OS + SKU + version of the node image. Example: AKSUbuntu-1804gen2containerd-2024.02.02 + */ + private String fullName; + + /** + * Creates an instance of NodeImageVersionInner class. + */ + private NodeImageVersionInner() { + } + + /** + * Get the os property: The operating system of the node image. Example: AKSUbuntu. + * + * @return the os value. + */ + public String os() { + return this.os; + } + + /** + * Get the sku property: The SKU or flavor of the node image. Example: 2004gen2containerd. + * + * @return the sku value. + */ + public String sku() { + return this.sku; + } + + /** + * Get the version property: major.minor.patch version of the node image version release. Example: 2024.02.02. + * + * @return the version value. + */ + public String version() { + return this.version; + } + + /** + * Get the fullName property: The OS + SKU + version of the node image. Example: + * AKSUbuntu-1804gen2containerd-2024.02.02. + * + * @return the fullName value. + */ + public String fullName() { + return this.fullName; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("os", this.os); + jsonWriter.writeStringField("sku", this.sku); + jsonWriter.writeStringField("version", this.version); + jsonWriter.writeStringField("fullName", this.fullName); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of NodeImageVersionInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of NodeImageVersionInner 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 NodeImageVersionInner. + */ + public static NodeImageVersionInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + NodeImageVersionInner deserializedNodeImageVersionInner = new NodeImageVersionInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("os".equals(fieldName)) { + deserializedNodeImageVersionInner.os = reader.getString(); + } else if ("sku".equals(fieldName)) { + deserializedNodeImageVersionInner.sku = reader.getString(); + } else if ("version".equals(fieldName)) { + deserializedNodeImageVersionInner.version = reader.getString(); + } else if ("fullName".equals(fieldName)) { + deserializedNodeImageVersionInner.fullName = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedNodeImageVersionInner; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/OperationStatusResultInner.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/OperationStatusResultInner.java new file mode 100644 index 0000000000000..a8a3cd061b06b --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/OperationStatusResultInner.java @@ -0,0 +1,273 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.management.exception.ManagementError; +import com.azure.core.util.CoreUtils; +import com.azure.core.util.logging.ClientLogger; +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.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; +import java.util.List; + +/** + * The current status of an async operation. + */ +@Immutable +public final class OperationStatusResultInner implements JsonSerializable { + /* + * Fully qualified ID for the async operation. + */ + private String id; + + /* + * Name of the async operation. + */ + private String name; + + /* + * Operation status. + */ + private String status; + + /* + * Percent of the operation that is complete. + */ + private Double percentComplete; + + /* + * The start time of the operation. + */ + private OffsetDateTime startTime; + + /* + * The end time of the operation. + */ + private OffsetDateTime endTime; + + /* + * The operations list. + */ + private List operations; + + /* + * If present, details of the operation error. + */ + private ManagementError error; + + /* + * Fully qualified ID of the resource against which the original async operation was started. + */ + private String resourceId; + + /* + * The type of the operation. + */ + private String operationType; + + /* + * The type of the suboperation. + */ + private String subOperationType; + + /** + * Creates an instance of OperationStatusResultInner class. + */ + private OperationStatusResultInner() { + } + + /** + * Get the id property: Fully qualified ID for the async operation. + * + * @return the id value. + */ + public String id() { + return this.id; + } + + /** + * Get the name property: Name of the async operation. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Get the status property: Operation status. + * + * @return the status value. + */ + public String status() { + return this.status; + } + + /** + * Get the percentComplete property: Percent of the operation that is complete. + * + * @return the percentComplete value. + */ + public Double percentComplete() { + return this.percentComplete; + } + + /** + * Get the startTime property: The start time of the operation. + * + * @return the startTime value. + */ + public OffsetDateTime startTime() { + return this.startTime; + } + + /** + * Get the endTime property: The end time of the operation. + * + * @return the endTime value. + */ + public OffsetDateTime endTime() { + return this.endTime; + } + + /** + * Get the operations property: The operations list. + * + * @return the operations value. + */ + public List operations() { + return this.operations; + } + + /** + * Get the error property: If present, details of the operation error. + * + * @return the error value. + */ + public ManagementError error() { + return this.error; + } + + /** + * Get the resourceId property: Fully qualified ID of the resource against which the original async operation was + * started. + * + * @return the resourceId value. + */ + public String resourceId() { + return this.resourceId; + } + + /** + * Get the operationType property: The type of the operation. + * + * @return the operationType value. + */ + public String operationType() { + return this.operationType; + } + + /** + * Get the subOperationType property: The type of the suboperation. + * + * @return the subOperationType value. + */ + public String subOperationType() { + return this.subOperationType; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (status() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property status in model OperationStatusResultInner")); + } + if (operations() != null) { + operations().forEach(e -> e.validate()); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(OperationStatusResultInner.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("status", this.status); + jsonWriter.writeStringField("id", this.id); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeNumberField("percentComplete", this.percentComplete); + jsonWriter.writeStringField("startTime", + this.startTime == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.startTime)); + jsonWriter.writeStringField("endTime", + this.endTime == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.endTime)); + jsonWriter.writeArrayField("operations", this.operations, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeJsonField("error", this.error); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of OperationStatusResultInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of OperationStatusResultInner 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 OperationStatusResultInner. + */ + public static OperationStatusResultInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + OperationStatusResultInner deserializedOperationStatusResultInner = new OperationStatusResultInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("status".equals(fieldName)) { + deserializedOperationStatusResultInner.status = reader.getString(); + } else if ("id".equals(fieldName)) { + deserializedOperationStatusResultInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedOperationStatusResultInner.name = reader.getString(); + } else if ("percentComplete".equals(fieldName)) { + deserializedOperationStatusResultInner.percentComplete = reader.getNullable(JsonReader::getDouble); + } else if ("startTime".equals(fieldName)) { + deserializedOperationStatusResultInner.startTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("endTime".equals(fieldName)) { + deserializedOperationStatusResultInner.endTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("operations".equals(fieldName)) { + List operations + = reader.readArray(reader1 -> OperationStatusResultInner.fromJson(reader1)); + deserializedOperationStatusResultInner.operations = operations; + } else if ("error".equals(fieldName)) { + deserializedOperationStatusResultInner.error = ManagementError.fromJson(reader); + } else if ("resourceId".equals(fieldName)) { + deserializedOperationStatusResultInner.resourceId = reader.getString(); + } else if ("operationType".equals(fieldName)) { + deserializedOperationStatusResultInner.operationType = reader.getString(); + } else if ("subOperationType".equals(fieldName)) { + deserializedOperationStatusResultInner.subOperationType = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedOperationStatusResultInner; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/PoolBootstrapDataInner.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/PoolBootstrapDataInner.java new file mode 100644 index 0000000000000..7b938642f4a72 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/PoolBootstrapDataInner.java @@ -0,0 +1,145 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.containerservice.models.BootstrapAzureConfig; +import com.azure.resourcemanager.containerservice.models.BootstrapComponentVersions; +import com.azure.resourcemanager.containerservice.models.BootstrapNetworkingConfig; +import com.azure.resourcemanager.containerservice.models.BootstrapNodeConfig; +import java.io.IOException; + +/** + * Bootstrap configuration for a FlexNode pool. + */ +@Immutable +public final class PoolBootstrapDataInner implements JsonSerializable { + /* + * Azure environment and cluster identity information. + */ + private BootstrapAzureConfig azure; + + /* + * Component versions for the node runtime. + */ + private BootstrapComponentVersions components; + + /* + * Network configuration for the node. + */ + private BootstrapNetworkingConfig networking; + + /* + * Node-level configuration for kubelet, labels, and taints. + */ + private BootstrapNodeConfig node; + + /** + * Creates an instance of PoolBootstrapDataInner class. + */ + private PoolBootstrapDataInner() { + } + + /** + * Get the azure property: Azure environment and cluster identity information. + * + * @return the azure value. + */ + public BootstrapAzureConfig azure() { + return this.azure; + } + + /** + * Get the components property: Component versions for the node runtime. + * + * @return the components value. + */ + public BootstrapComponentVersions components() { + return this.components; + } + + /** + * Get the networking property: Network configuration for the node. + * + * @return the networking value. + */ + public BootstrapNetworkingConfig networking() { + return this.networking; + } + + /** + * Get the node property: Node-level configuration for kubelet, labels, and taints. + * + * @return the node value. + */ + public BootstrapNodeConfig node() { + return this.node; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (azure() != null) { + azure().validate(); + } + if (components() != null) { + components().validate(); + } + if (networking() != null) { + networking().validate(); + } + if (node() != null) { + node().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PoolBootstrapDataInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PoolBootstrapDataInner 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 PoolBootstrapDataInner. + */ + public static PoolBootstrapDataInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PoolBootstrapDataInner deserializedPoolBootstrapDataInner = new PoolBootstrapDataInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("azure".equals(fieldName)) { + deserializedPoolBootstrapDataInner.azure = BootstrapAzureConfig.fromJson(reader); + } else if ("components".equals(fieldName)) { + deserializedPoolBootstrapDataInner.components = BootstrapComponentVersions.fromJson(reader); + } else if ("networking".equals(fieldName)) { + deserializedPoolBootstrapDataInner.networking = BootstrapNetworkingConfig.fromJson(reader); + } else if ("node".equals(fieldName)) { + deserializedPoolBootstrapDataInner.node = BootstrapNodeConfig.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedPoolBootstrapDataInner; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ResourceSkuInner.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ResourceSkuInner.java new file mode 100644 index 0000000000000..37c271dfea791 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ResourceSkuInner.java @@ -0,0 +1,307 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.containerservice.models.ResourceSkuCapabilities; +import com.azure.resourcemanager.containerservice.models.ResourceSkuCapacity; +import com.azure.resourcemanager.containerservice.models.ResourceSkuCosts; +import com.azure.resourcemanager.containerservice.models.ResourceSkuLocationInfo; +import com.azure.resourcemanager.containerservice.models.ResourceSkuRestrictions; +import java.io.IOException; +import java.util.List; + +/** + * Describes an available Compute SKU. + */ +@Immutable +public final class ResourceSkuInner implements JsonSerializable { + /* + * The type of resource the SKU applies to. + */ + private String resourceType; + + /* + * The name of SKU. + */ + private String name; + + /* + * Specifies the tier of virtual machines in a scale set.

Possible Values:

**Standard**

**Basic** + */ + private String tier; + + /* + * The Size of the SKU. + */ + private String size; + + /* + * The Family of this particular SKU. + */ + private String family; + + /* + * The Kind of resources that are supported in this SKU. + */ + private String kind; + + /* + * Specifies the number of virtual machines in the scale set. + */ + private ResourceSkuCapacity capacity; + + /* + * The set of locations that the SKU is available. + */ + private List locations; + + /* + * A list of locations and availability zones in those locations where the SKU is available. + */ + private List locationInfo; + + /* + * The api versions that support this SKU. + */ + private List apiVersions; + + /* + * Metadata for retrieving price info. + */ + private List costs; + + /* + * A name value pair to describe the capability. + */ + private List capabilities; + + /* + * The restrictions because of which SKU cannot be used. This is empty if there are no restrictions. + */ + private List restrictions; + + /** + * Creates an instance of ResourceSkuInner class. + */ + private ResourceSkuInner() { + } + + /** + * Get the resourceType property: The type of resource the SKU applies to. + * + * @return the resourceType value. + */ + public String resourceType() { + return this.resourceType; + } + + /** + * Get the name property: The name of SKU. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Get the tier property: Specifies the tier of virtual machines in a scale set.<br /><br /> Possible + * Values:<br /><br /> **Standard**<br /><br /> **Basic**. + * + * @return the tier value. + */ + public String tier() { + return this.tier; + } + + /** + * Get the size property: The Size of the SKU. + * + * @return the size value. + */ + public String size() { + return this.size; + } + + /** + * Get the family property: The Family of this particular SKU. + * + * @return the family value. + */ + public String family() { + return this.family; + } + + /** + * Get the kind property: The Kind of resources that are supported in this SKU. + * + * @return the kind value. + */ + public String kind() { + return this.kind; + } + + /** + * Get the capacity property: Specifies the number of virtual machines in the scale set. + * + * @return the capacity value. + */ + public ResourceSkuCapacity capacity() { + return this.capacity; + } + + /** + * Get the locations property: The set of locations that the SKU is available. + * + * @return the locations value. + */ + public List locations() { + return this.locations; + } + + /** + * Get the locationInfo property: A list of locations and availability zones in those locations where the SKU is + * available. + * + * @return the locationInfo value. + */ + public List locationInfo() { + return this.locationInfo; + } + + /** + * Get the apiVersions property: The api versions that support this SKU. + * + * @return the apiVersions value. + */ + public List apiVersions() { + return this.apiVersions; + } + + /** + * Get the costs property: Metadata for retrieving price info. + * + * @return the costs value. + */ + public List costs() { + return this.costs; + } + + /** + * Get the capabilities property: A name value pair to describe the capability. + * + * @return the capabilities value. + */ + public List capabilities() { + return this.capabilities; + } + + /** + * Get the restrictions property: The restrictions because of which SKU cannot be used. This is empty if there are + * no restrictions. + * + * @return the restrictions value. + */ + public List restrictions() { + return this.restrictions; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (capacity() != null) { + capacity().validate(); + } + if (locationInfo() != null) { + locationInfo().forEach(e -> e.validate()); + } + if (costs() != null) { + costs().forEach(e -> e.validate()); + } + if (capabilities() != null) { + capabilities().forEach(e -> e.validate()); + } + if (restrictions() != null) { + restrictions().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ResourceSkuInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ResourceSkuInner 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 ResourceSkuInner. + */ + public static ResourceSkuInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ResourceSkuInner deserializedResourceSkuInner = new ResourceSkuInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("resourceType".equals(fieldName)) { + deserializedResourceSkuInner.resourceType = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedResourceSkuInner.name = reader.getString(); + } else if ("tier".equals(fieldName)) { + deserializedResourceSkuInner.tier = reader.getString(); + } else if ("size".equals(fieldName)) { + deserializedResourceSkuInner.size = reader.getString(); + } else if ("family".equals(fieldName)) { + deserializedResourceSkuInner.family = reader.getString(); + } else if ("kind".equals(fieldName)) { + deserializedResourceSkuInner.kind = reader.getString(); + } else if ("capacity".equals(fieldName)) { + deserializedResourceSkuInner.capacity = ResourceSkuCapacity.fromJson(reader); + } else if ("locations".equals(fieldName)) { + List locations = reader.readArray(reader1 -> reader1.getString()); + deserializedResourceSkuInner.locations = locations; + } else if ("locationInfo".equals(fieldName)) { + List locationInfo + = reader.readArray(reader1 -> ResourceSkuLocationInfo.fromJson(reader1)); + deserializedResourceSkuInner.locationInfo = locationInfo; + } else if ("apiVersions".equals(fieldName)) { + List apiVersions = reader.readArray(reader1 -> reader1.getString()); + deserializedResourceSkuInner.apiVersions = apiVersions; + } else if ("costs".equals(fieldName)) { + List costs = reader.readArray(reader1 -> ResourceSkuCosts.fromJson(reader1)); + deserializedResourceSkuInner.costs = costs; + } else if ("capabilities".equals(fieldName)) { + List capabilities + = reader.readArray(reader1 -> ResourceSkuCapabilities.fromJson(reader1)); + deserializedResourceSkuInner.capabilities = capabilities; + } else if ("restrictions".equals(fieldName)) { + List restrictions + = reader.readArray(reader1 -> ResourceSkuRestrictions.fromJson(reader1)); + deserializedResourceSkuInner.restrictions = restrictions; + } else { + reader.skipChildren(); + } + } + + return deserializedResourceSkuInner; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/SafeguardsAvailableVersionInner.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/SafeguardsAvailableVersionInner.java new file mode 100644 index 0000000000000..edfa11b669ba5 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/SafeguardsAvailableVersionInner.java @@ -0,0 +1,164 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.containerservice.models.SafeguardsAvailableVersionsProperties; +import java.io.IOException; + +/** + * Available Safeguards Version. + */ +@Immutable +public final class SafeguardsAvailableVersionInner extends ProxyResource { + /* + * Whether the version is default or not and support info. + */ + private SafeguardsAvailableVersionsProperties properties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of SafeguardsAvailableVersionInner class. + */ + private SafeguardsAvailableVersionInner() { + } + + /** + * Get the properties property: Whether the version is default or not and support info. + * + * @return the properties value. + */ + public SafeguardsAvailableVersionsProperties properties() { + return this.properties; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property properties in model SafeguardsAvailableVersionInner")); + } else { + properties().validate(); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(SafeguardsAvailableVersionInner.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SafeguardsAvailableVersionInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SafeguardsAvailableVersionInner 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 SafeguardsAvailableVersionInner. + */ + public static SafeguardsAvailableVersionInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SafeguardsAvailableVersionInner deserializedSafeguardsAvailableVersionInner + = new SafeguardsAvailableVersionInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedSafeguardsAvailableVersionInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedSafeguardsAvailableVersionInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedSafeguardsAvailableVersionInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedSafeguardsAvailableVersionInner.properties + = SafeguardsAvailableVersionsProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedSafeguardsAvailableVersionInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedSafeguardsAvailableVersionInner; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/UpgradeInsightInner.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/UpgradeInsightInner.java new file mode 100644 index 0000000000000..13db7d2fd6bc6 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/fluent/models/UpgradeInsightInner.java @@ -0,0 +1,170 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.containerservice.models.UpgradeInsightProperties; +import java.io.IOException; + +/** + * An upgrade insight for a managed cluster: an on-demand readiness evaluation for an + * upgrade scope, produced by the generateUpgradeInsights action on the managed cluster + * and addressable by a server-generated name. The name identifies + * the scope and evaluated target — + * `controlPlane-<targetKubernetesVersion>` (for example `controlPlane-1.33.5`), + * `controlPlaneAndAgentPools-<targetKubernetesVersion>`, + * `agentPool-<agentPoolName>-<targetKubernetesVersion>` (for example + * `agentPool-nodepool1-1.33.5`), or + * `nodeImage-<agentPoolName>-<nodeImageVersion>` (for example + * `nodeImage-nodepool1-202607.01.0`). The node image segment contains only the numeric + * image version, while `properties.targetNodeImageVersion` returns the full image name. + * The resource itself + * is read-only: GET returns the stored evaluation and LIST returns the stored + * evaluations for the cluster. Evaluations are (re)generated via the managed cluster's + * generateUpgradeInsights action, whose response body is the same UpgradeInsight + * representation returned by GET. + */ +@Immutable +public final class UpgradeInsightInner extends ProxyResource { + /* + * The resource-specific properties for this resource. + */ + private UpgradeInsightProperties properties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of UpgradeInsightInner class. + */ + private UpgradeInsightInner() { + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public UpgradeInsightProperties properties() { + return this.properties; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() != null) { + properties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of UpgradeInsightInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of UpgradeInsightInner 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 UpgradeInsightInner. + */ + public static UpgradeInsightInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + UpgradeInsightInner deserializedUpgradeInsightInner = new UpgradeInsightInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedUpgradeInsightInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedUpgradeInsightInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedUpgradeInsightInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedUpgradeInsightInner.properties = UpgradeInsightProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedUpgradeInsightInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedUpgradeInsightInner; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/AgentFabricMembershipsClientImpl.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/AgentFabricMembershipsClientImpl.java new file mode 100644 index 0000000000000..2de5c3f4ce70e --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/AgentFabricMembershipsClientImpl.java @@ -0,0 +1,949 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.containerservice.fluent.AgentFabricMembershipsClient; +import com.azure.resourcemanager.containerservice.fluent.models.AgentFabricMembershipInner; +import com.azure.resourcemanager.containerservice.implementation.models.AgentFabricMembershipsListResult; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in AgentFabricMembershipsClient. + */ +public final class AgentFabricMembershipsClientImpl implements AgentFabricMembershipsClient { + /** + * The proxy service used to perform REST calls. + */ + private final AgentFabricMembershipsService service; + + /** + * The service client containing this operation class. + */ + private final ContainerServiceManagementClientImpl client; + + /** + * Initializes an instance of AgentFabricMembershipsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + AgentFabricMembershipsClientImpl(ContainerServiceManagementClientImpl client) { + this.service = RestProxy.create(AgentFabricMembershipsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for ContainerServiceManagementClientAgentFabricMemberships to be used by + * the proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "ContainerServiceManagementClientAgentFabricMemberships") + public interface AgentFabricMembershipsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentFabricMemberships/{agentFabricMembershipName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("agentFabricMembershipName") String agentFabricMembershipName, + @HeaderParam("Accept") String accept, Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentFabricMemberships/{agentFabricMembershipName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("agentFabricMembershipName") String agentFabricMembershipName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") AgentFabricMembershipInner resource, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentFabricMemberships/{agentFabricMembershipName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("agentFabricMembershipName") String agentFabricMembershipName, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentFabricMemberships") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByManagedCluster(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByManagedClusterNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Gets the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @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 AgentFabric membership of a managed cluster along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getWithResponseAsync(String resourceGroupName, + String resourceName, String agentFabricMembershipName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (agentFabricMembershipName == null) { + return Mono.error( + new IllegalArgumentException("Parameter agentFabricMembershipName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, agentFabricMembershipName, accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @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 AgentFabric membership of a managed cluster along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, + String resourceName, String agentFabricMembershipName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (agentFabricMembershipName == null) { + return Mono.error( + new IllegalArgumentException("Parameter agentFabricMembershipName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, agentFabricMembershipName, accept, context); + } + + /** + * Gets the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @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 AgentFabric membership of a managed cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, String resourceName, + String agentFabricMembershipName) { + return getWithResponseAsync(resourceGroupName, resourceName, agentFabricMembershipName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @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 AgentFabric membership of a managed cluster along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String resourceName, + String agentFabricMembershipName, Context context) { + return getWithResponseAsync(resourceGroupName, resourceName, agentFabricMembershipName, context).block(); + } + + /** + * Gets the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @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 AgentFabric membership of a managed cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AgentFabricMembershipInner get(String resourceGroupName, String resourceName, + String agentFabricMembershipName) { + return getWithResponse(resourceGroupName, resourceName, agentFabricMembershipName, Context.NONE).getValue(); + } + + /** + * Creates or updates the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @param resource Resource create parameters. + * @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 AgentFabric membership of a managed cluster along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String resourceName, String agentFabricMembershipName, AgentFabricMembershipInner resource) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (agentFabricMembershipName == null) { + return Mono.error( + new IllegalArgumentException("Parameter agentFabricMembershipName is required and cannot be null.")); + } + if (resource == null) { + return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); + } else { + resource.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, agentFabricMembershipName, + contentType, accept, resource, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Creates or updates the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @param resource Resource create parameters. + * @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 AgentFabric membership of a managed cluster along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String resourceName, String agentFabricMembershipName, AgentFabricMembershipInner resource, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (agentFabricMembershipName == null) { + return Mono.error( + new IllegalArgumentException("Parameter agentFabricMembershipName is required and cannot be null.")); + } + if (resource == null) { + return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); + } else { + resource.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, agentFabricMembershipName, contentType, + accept, resource, context); + } + + /** + * Creates or updates the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @param resource Resource create parameters. + * @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 AgentFabric membership of a managed cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, AgentFabricMembershipInner> beginCreateOrUpdateAsync( + String resourceGroupName, String resourceName, String agentFabricMembershipName, + AgentFabricMembershipInner resource) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, agentFabricMembershipName, resource); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), AgentFabricMembershipInner.class, AgentFabricMembershipInner.class, + this.client.getContext()); + } + + /** + * Creates or updates the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of the AgentFabric membership of a managed cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, AgentFabricMembershipInner> beginCreateOrUpdateAsync( + String resourceGroupName, String resourceName, String agentFabricMembershipName, + AgentFabricMembershipInner resource, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, + agentFabricMembershipName, resource, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), AgentFabricMembershipInner.class, AgentFabricMembershipInner.class, context); + } + + /** + * Creates or updates the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @param resource Resource create parameters. + * @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 AgentFabric membership of a managed cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, AgentFabricMembershipInner> beginCreateOrUpdate( + String resourceGroupName, String resourceName, String agentFabricMembershipName, + AgentFabricMembershipInner resource) { + return this.beginCreateOrUpdateAsync(resourceGroupName, resourceName, agentFabricMembershipName, resource) + .getSyncPoller(); + } + + /** + * Creates or updates the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @param resource Resource create parameters. + * @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 AgentFabric membership of a managed cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, AgentFabricMembershipInner> beginCreateOrUpdate( + String resourceGroupName, String resourceName, String agentFabricMembershipName, + AgentFabricMembershipInner resource, Context context) { + return this + .beginCreateOrUpdateAsync(resourceGroupName, resourceName, agentFabricMembershipName, resource, context) + .getSyncPoller(); + } + + /** + * Creates or updates the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @param resource Resource create parameters. + * @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 AgentFabric membership of a managed cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateAsync(String resourceGroupName, String resourceName, + String agentFabricMembershipName, AgentFabricMembershipInner resource) { + return beginCreateOrUpdateAsync(resourceGroupName, resourceName, agentFabricMembershipName, resource).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates or updates the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @param resource Resource create parameters. + * @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 AgentFabric membership of a managed cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String resourceName, + String agentFabricMembershipName, AgentFabricMembershipInner resource, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, resourceName, agentFabricMembershipName, resource, context) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates or updates the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @param resource Resource create parameters. + * @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 AgentFabric membership of a managed cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AgentFabricMembershipInner createOrUpdate(String resourceGroupName, String resourceName, + String agentFabricMembershipName, AgentFabricMembershipInner resource) { + return createOrUpdateAsync(resourceGroupName, resourceName, agentFabricMembershipName, resource).block(); + } + + /** + * Creates or updates the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @param resource Resource create parameters. + * @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 AgentFabric membership of a managed cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AgentFabricMembershipInner createOrUpdate(String resourceGroupName, String resourceName, + String agentFabricMembershipName, AgentFabricMembershipInner resource, Context context) { + return createOrUpdateAsync(resourceGroupName, resourceName, agentFabricMembershipName, resource, context) + .block(); + } + + /** + * Deletes the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @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) + public Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, + String agentFabricMembershipName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (agentFabricMembershipName == null) { + return Mono.error( + new IllegalArgumentException("Parameter agentFabricMembershipName is required and cannot be null.")); + } + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, agentFabricMembershipName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @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 Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, + String agentFabricMembershipName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (agentFabricMembershipName == null) { + return Mono.error( + new IllegalArgumentException("Parameter agentFabricMembershipName is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, agentFabricMembershipName, context); + } + + /** + * Deletes the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @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) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, + String agentFabricMembershipName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, resourceName, agentFabricMembershipName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, + String agentFabricMembershipName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, resourceName, agentFabricMembershipName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @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> beginDelete(String resourceGroupName, String resourceName, + String agentFabricMembershipName) { + return this.beginDeleteAsync(resourceGroupName, resourceName, agentFabricMembershipName).getSyncPoller(); + } + + /** + * Deletes the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @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> beginDelete(String resourceGroupName, String resourceName, + String agentFabricMembershipName, Context context) { + return this.beginDeleteAsync(resourceGroupName, resourceName, agentFabricMembershipName, context) + .getSyncPoller(); + } + + /** + * Deletes the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @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) + public Mono deleteAsync(String resourceGroupName, String resourceName, String agentFabricMembershipName) { + return beginDeleteAsync(resourceGroupName, resourceName, agentFabricMembershipName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @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 A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String resourceName, String agentFabricMembershipName, + Context context) { + return beginDeleteAsync(resourceGroupName, resourceName, agentFabricMembershipName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @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 delete(String resourceGroupName, String resourceName, String agentFabricMembershipName) { + deleteAsync(resourceGroupName, resourceName, agentFabricMembershipName).block(); + } + + /** + * Deletes the AgentFabric membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentFabricMembershipName The name of the AgentFabricMembership. + * @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 delete(String resourceGroupName, String resourceName, String agentFabricMembershipName, + Context context) { + deleteAsync(resourceGroupName, resourceName, agentFabricMembershipName, context).block(); + } + + /** + * Lists the AgentFabric memberships of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 result of a request to list the AgentFabric memberships of a managed cluster along with + * {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByManagedClusterSinglePageAsync(String resourceGroupName, String resourceName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByManagedCluster(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Lists the AgentFabric memberships of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 result of a request to list the AgentFabric memberships of a managed cluster along with + * {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByManagedClusterSinglePageAsync(String resourceGroupName, String resourceName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByManagedCluster(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Lists the AgentFabric memberships of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 result of a request to list the AgentFabric memberships of a managed cluster as paginated response + * with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listByManagedClusterAsync(String resourceGroupName, + String resourceName) { + return new PagedFlux<>(() -> listByManagedClusterSinglePageAsync(resourceGroupName, resourceName), + nextLink -> listByManagedClusterNextSinglePageAsync(nextLink)); + } + + /** + * Lists the AgentFabric memberships of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 result of a request to list the AgentFabric memberships of a managed cluster as paginated response + * with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByManagedClusterAsync(String resourceGroupName, + String resourceName, Context context) { + return new PagedFlux<>(() -> listByManagedClusterSinglePageAsync(resourceGroupName, resourceName, context), + nextLink -> listByManagedClusterNextSinglePageAsync(nextLink, context)); + } + + /** + * Lists the AgentFabric memberships of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 result of a request to list the AgentFabric memberships of a managed cluster as paginated response + * with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByManagedCluster(String resourceGroupName, + String resourceName) { + return new PagedIterable<>(listByManagedClusterAsync(resourceGroupName, resourceName)); + } + + /** + * Lists the AgentFabric memberships of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 result of a request to list the AgentFabric memberships of a managed cluster as paginated response + * with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByManagedCluster(String resourceGroupName, String resourceName, + Context context) { + return new PagedIterable<>(listByManagedClusterAsync(resourceGroupName, resourceName, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 result of a request to list the AgentFabric memberships of a managed cluster along with + * {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByManagedClusterNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listByManagedClusterNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 result of a request to list the AgentFabric memberships of a managed cluster along with + * {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByManagedClusterNextSinglePageAsync(String nextLink, + Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listByManagedClusterNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/AgentPoolsClientImpl.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/AgentPoolsClientImpl.java index b6fe3e48afd6d..62fa2821ece77 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/AgentPoolsClientImpl.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/AgentPoolsClientImpl.java @@ -12,6 +12,7 @@ import com.azure.core.annotation.Headers; import com.azure.core.annotation.Host; import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; import com.azure.core.annotation.PathParam; import com.azure.core.annotation.Post; import com.azure.core.annotation.Put; @@ -36,8 +37,11 @@ import com.azure.resourcemanager.containerservice.fluent.models.AgentPoolAvailableVersionsInner; import com.azure.resourcemanager.containerservice.fluent.models.AgentPoolInner; import com.azure.resourcemanager.containerservice.fluent.models.AgentPoolUpgradeProfileInner; +import com.azure.resourcemanager.containerservice.fluent.models.PoolBootstrapDataInner; import com.azure.resourcemanager.containerservice.implementation.models.AgentPoolListResult; import com.azure.resourcemanager.containerservice.models.AgentPoolDeleteMachinesParameter; +import com.azure.resourcemanager.containerservice.models.AgentPoolUpdate; +import com.azure.resourcemanager.containerservice.models.ListBootstrapDataRequest; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; @@ -123,6 +127,15 @@ Mono>> abortLatestOperation(@HostParam("endpoint") Str @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, @PathParam("agentPoolName") String agentPoolName, Context context); + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/completeUpgrade") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> completeUpgrade(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("agentPoolName") String agentPoolName, Context context); + @Headers({ "Accept: application/json;q=0.9" }) @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/deleteMachines") @ExpectedResponses({ 202 }) @@ -142,6 +155,26 @@ Mono>> upgradeNodeImageVersion(@HostParam("endpoint") @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, @PathParam("agentPoolName") String agentPoolName, @HeaderParam("Accept") String accept, Context context); + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/listBootstrapData") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listBootstrapData(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("agentPoolName") String agentPoolName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") ListBootstrapDataRequest body, + Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> update(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("agentPoolName") String agentPoolName, @HeaderParam("if-match") String ifMatch, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") AgentPoolUpdate parameters, Context context); + @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/availableAgentPoolVersions") @ExpectedResponses({ 200 }) @@ -1326,6 +1359,246 @@ public void abortLatestOperation(String resourceGroupName, String resourceName, abortLatestOperationAsync(resourceGroupName, resourceName, agentPoolName, context).block(); } + /** + * Completes the upgrade of an agent pool. + * + * Completes the upgrade operation for the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @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) + public Mono>> completeUpgradeWithResponseAsync(String resourceGroupName, + String resourceName, String agentPoolName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (agentPoolName == null) { + return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); + } + return FluxUtil + .withContext(context -> service.completeUpgrade(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, agentPoolName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Completes the upgrade of an agent pool. + * + * Completes the upgrade operation for the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @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 Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> completeUpgradeWithResponseAsync(String resourceGroupName, + String resourceName, String agentPoolName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (agentPoolName == null) { + return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service.completeUpgrade(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, agentPoolName, context); + } + + /** + * Completes the upgrade of an agent pool. + * + * Completes the upgrade operation for the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @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) + public PollerFlux, Void> beginCompleteUpgradeAsync(String resourceGroupName, String resourceName, + String agentPoolName) { + Mono>> mono + = completeUpgradeWithResponseAsync(resourceGroupName, resourceName, agentPoolName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Completes the upgrade of an agent pool. + * + * Completes the upgrade operation for the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginCompleteUpgradeAsync(String resourceGroupName, String resourceName, + String agentPoolName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = completeUpgradeWithResponseAsync(resourceGroupName, resourceName, agentPoolName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Completes the upgrade of an agent pool. + * + * Completes the upgrade operation for the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @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> beginCompleteUpgrade(String resourceGroupName, String resourceName, + String agentPoolName) { + return this.beginCompleteUpgradeAsync(resourceGroupName, resourceName, agentPoolName).getSyncPoller(); + } + + /** + * Completes the upgrade of an agent pool. + * + * Completes the upgrade operation for the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @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> beginCompleteUpgrade(String resourceGroupName, String resourceName, + String agentPoolName, Context context) { + return this.beginCompleteUpgradeAsync(resourceGroupName, resourceName, agentPoolName, context).getSyncPoller(); + } + + /** + * Completes the upgrade of an agent pool. + * + * Completes the upgrade operation for the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @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) + public Mono completeUpgradeAsync(String resourceGroupName, String resourceName, String agentPoolName) { + return beginCompleteUpgradeAsync(resourceGroupName, resourceName, agentPoolName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Completes the upgrade of an agent pool. + * + * Completes the upgrade operation for the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @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 A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono completeUpgradeAsync(String resourceGroupName, String resourceName, String agentPoolName, + Context context) { + return beginCompleteUpgradeAsync(resourceGroupName, resourceName, agentPoolName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Completes the upgrade of an agent pool. + * + * Completes the upgrade operation for the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @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 completeUpgrade(String resourceGroupName, String resourceName, String agentPoolName) { + completeUpgradeAsync(resourceGroupName, resourceName, agentPoolName).block(); + } + + /** + * Completes the upgrade of an agent pool. + * + * Completes the upgrade operation for the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @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 completeUpgrade(String resourceGroupName, String resourceName, String agentPoolName, Context context) { + completeUpgradeAsync(resourceGroupName, resourceName, agentPoolName, context).block(); + } + /** * Deletes specific machines in an agent pool. * @@ -1840,6 +2113,486 @@ public void upgradeNodeImageVersion(String resourceGroupName, String resourceNam upgradeNodeImageVersionAsync(resourceGroupName, resourceName, agentPoolName, context).block(); } + /** + * Lists bootstrap data for a FlexNode agent pool. + * + * Returns pool-level bootstrap configuration for FlexNode machines. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param body The content of the action request. + * @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 bootstrap configuration for a FlexNode pool along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listBootstrapDataWithResponseAsync(String resourceGroupName, + String resourceName, String agentPoolName, ListBootstrapDataRequest body) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (agentPoolName == null) { + return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); + } + if (body == null) { + return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); + } else { + body.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listBootstrapData(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, agentPoolName, contentType, accept, + body, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Lists bootstrap data for a FlexNode agent pool. + * + * Returns pool-level bootstrap configuration for FlexNode machines. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return bootstrap configuration for a FlexNode pool along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listBootstrapDataWithResponseAsync(String resourceGroupName, + String resourceName, String agentPoolName, ListBootstrapDataRequest body, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (agentPoolName == null) { + return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); + } + if (body == null) { + return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); + } else { + body.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listBootstrapData(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, agentPoolName, contentType, accept, body, + context); + } + + /** + * Lists bootstrap data for a FlexNode agent pool. + * + * Returns pool-level bootstrap configuration for FlexNode machines. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param body The content of the action request. + * @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 bootstrap configuration for a FlexNode pool on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono listBootstrapDataAsync(String resourceGroupName, String resourceName, + String agentPoolName, ListBootstrapDataRequest body) { + return listBootstrapDataWithResponseAsync(resourceGroupName, resourceName, agentPoolName, body) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Lists bootstrap data for a FlexNode agent pool. + * + * Returns pool-level bootstrap configuration for FlexNode machines. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return bootstrap configuration for a FlexNode pool along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response listBootstrapDataWithResponse(String resourceGroupName, String resourceName, + String agentPoolName, ListBootstrapDataRequest body, Context context) { + return listBootstrapDataWithResponseAsync(resourceGroupName, resourceName, agentPoolName, body, context) + .block(); + } + + /** + * Lists bootstrap data for a FlexNode agent pool. + * + * Returns pool-level bootstrap configuration for FlexNode machines. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param body The content of the action request. + * @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 bootstrap configuration for a FlexNode pool. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public PoolBootstrapDataInner listBootstrapData(String resourceGroupName, String resourceName, String agentPoolName, + ListBootstrapDataRequest body) { + return listBootstrapDataWithResponse(resourceGroupName, resourceName, agentPoolName, body, Context.NONE) + .getValue(); + } + + /** + * Updates an agent pool in the specified managed cluster. Visit https://aka.ms/aks/concurrent-node-operations for + * more information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param parameters The resource properties to be updated. + * @param ifMatch The request should only proceed if an entity matches this 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 agent Pool along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> updateWithResponseAsync(String resourceGroupName, String resourceName, + String agentPoolName, AgentPoolUpdate parameters, String ifMatch) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (agentPoolName == null) { + return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, agentPoolName, ifMatch, contentType, + accept, parameters, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Updates an agent pool in the specified managed cluster. Visit https://aka.ms/aks/concurrent-node-operations for + * more information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param parameters The resource properties to be updated. + * @param ifMatch The request should only proceed if an entity matches this string. + * @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 agent Pool along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> updateWithResponseAsync(String resourceGroupName, String resourceName, + String agentPoolName, AgentPoolUpdate parameters, String ifMatch, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (agentPoolName == null) { + return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.update(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, agentPoolName, ifMatch, contentType, accept, parameters, context); + } + + /** + * Updates an agent pool in the specified managed cluster. Visit https://aka.ms/aks/concurrent-node-operations for + * more information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param parameters The resource properties to be updated. + * @param ifMatch The request should only proceed if an entity matches this 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 {@link PollerFlux} for polling of agent Pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, AgentPoolInner> beginUpdateAsync(String resourceGroupName, + String resourceName, String agentPoolName, AgentPoolUpdate parameters, String ifMatch) { + Mono>> mono + = updateWithResponseAsync(resourceGroupName, resourceName, agentPoolName, parameters, ifMatch); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + AgentPoolInner.class, AgentPoolInner.class, this.client.getContext()); + } + + /** + * Updates an agent pool in the specified managed cluster. Visit https://aka.ms/aks/concurrent-node-operations for + * more information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param parameters The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of agent Pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, AgentPoolInner> beginUpdateAsync(String resourceGroupName, + String resourceName, String agentPoolName, AgentPoolUpdate parameters) { + final String ifMatch = null; + Mono>> mono + = updateWithResponseAsync(resourceGroupName, resourceName, agentPoolName, parameters, ifMatch); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + AgentPoolInner.class, AgentPoolInner.class, this.client.getContext()); + } + + /** + * Updates an agent pool in the specified managed cluster. Visit https://aka.ms/aks/concurrent-node-operations for + * more information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param parameters The resource properties to be updated. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of agent Pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, AgentPoolInner> beginUpdateAsync(String resourceGroupName, + String resourceName, String agentPoolName, AgentPoolUpdate parameters, String ifMatch, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = updateWithResponseAsync(resourceGroupName, resourceName, agentPoolName, parameters, ifMatch, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + AgentPoolInner.class, AgentPoolInner.class, context); + } + + /** + * Updates an agent pool in the specified managed cluster. Visit https://aka.ms/aks/concurrent-node-operations for + * more information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param parameters The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of agent Pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, AgentPoolInner> beginUpdate(String resourceGroupName, + String resourceName, String agentPoolName, AgentPoolUpdate parameters) { + final String ifMatch = null; + return this.beginUpdateAsync(resourceGroupName, resourceName, agentPoolName, parameters, ifMatch) + .getSyncPoller(); + } + + /** + * Updates an agent pool in the specified managed cluster. Visit https://aka.ms/aks/concurrent-node-operations for + * more information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param parameters The resource properties to be updated. + * @param ifMatch The request should only proceed if an entity matches this string. + * @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 agent Pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, AgentPoolInner> beginUpdate(String resourceGroupName, + String resourceName, String agentPoolName, AgentPoolUpdate parameters, String ifMatch, Context context) { + return this.beginUpdateAsync(resourceGroupName, resourceName, agentPoolName, parameters, ifMatch, context) + .getSyncPoller(); + } + + /** + * Updates an agent pool in the specified managed cluster. Visit https://aka.ms/aks/concurrent-node-operations for + * more information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param parameters The resource properties to be updated. + * @param ifMatch The request should only proceed if an entity matches this 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 agent Pool on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono updateAsync(String resourceGroupName, String resourceName, String agentPoolName, + AgentPoolUpdate parameters, String ifMatch) { + return beginUpdateAsync(resourceGroupName, resourceName, agentPoolName, parameters, ifMatch).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Updates an agent pool in the specified managed cluster. Visit https://aka.ms/aks/concurrent-node-operations for + * more information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param parameters The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return agent Pool on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono updateAsync(String resourceGroupName, String resourceName, String agentPoolName, + AgentPoolUpdate parameters) { + final String ifMatch = null; + return beginUpdateAsync(resourceGroupName, resourceName, agentPoolName, parameters, ifMatch).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Updates an agent pool in the specified managed cluster. Visit https://aka.ms/aks/concurrent-node-operations for + * more information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param parameters The resource properties to be updated. + * @param ifMatch The request should only proceed if an entity matches this string. + * @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 agent Pool on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono updateAsync(String resourceGroupName, String resourceName, String agentPoolName, + AgentPoolUpdate parameters, String ifMatch, Context context) { + return beginUpdateAsync(resourceGroupName, resourceName, agentPoolName, parameters, ifMatch, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Updates an agent pool in the specified managed cluster. Visit https://aka.ms/aks/concurrent-node-operations for + * more information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param parameters The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return agent Pool. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AgentPoolInner update(String resourceGroupName, String resourceName, String agentPoolName, + AgentPoolUpdate parameters) { + final String ifMatch = null; + return updateAsync(resourceGroupName, resourceName, agentPoolName, parameters, ifMatch).block(); + } + + /** + * Updates an agent pool in the specified managed cluster. Visit https://aka.ms/aks/concurrent-node-operations for + * more information. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param parameters The resource properties to be updated. + * @param ifMatch The request should only proceed if an entity matches this string. + * @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 agent Pool. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AgentPoolInner update(String resourceGroupName, String resourceName, String agentPoolName, + AgentPoolUpdate parameters, String ifMatch, Context context) { + return updateAsync(resourceGroupName, resourceName, agentPoolName, parameters, ifMatch, context).block(); + } + /** * Gets a list of supported Kubernetes versions for the specified agent pool. * diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/AlertConfigurationsClientImpl.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/AlertConfigurationsClientImpl.java new file mode 100644 index 0000000000000..ebbb8ee403b65 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/AlertConfigurationsClientImpl.java @@ -0,0 +1,938 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.containerservice.fluent.AlertConfigurationsClient; +import com.azure.resourcemanager.containerservice.fluent.models.AlertConfigurationInner; +import com.azure.resourcemanager.containerservice.implementation.models.AlertConfigurationListResult; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in AlertConfigurationsClient. + */ +public final class AlertConfigurationsClientImpl implements AlertConfigurationsClient { + /** + * The proxy service used to perform REST calls. + */ + private final AlertConfigurationsService service; + + /** + * The service client containing this operation class. + */ + private final ContainerServiceManagementClientImpl client; + + /** + * Initializes an instance of AlertConfigurationsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + AlertConfigurationsClientImpl(ContainerServiceManagementClientImpl client) { + this.service = RestProxy.create(AlertConfigurationsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for ContainerServiceManagementClientAlertConfigurations to be used by the + * proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "ContainerServiceManagementClientAlertConfigurations") + public interface AlertConfigurationsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/alertConfigurations/{configurationName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("configurationName") String configurationName, @HeaderParam("Accept") String accept, + Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/alertConfigurations/{configurationName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("configurationName") String configurationName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") AlertConfigurationInner resource, + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/alertConfigurations/{configurationName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("configurationName") String configurationName, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/alertConfigurations") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByManagedCluster(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByManagedClusterNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Gets the specified alert configuration of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @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 specified alert configuration of a managed cluster along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getWithResponseAsync(String resourceGroupName, String resourceName, + String configurationName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (configurationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, configurationName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the specified alert configuration of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @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 specified alert configuration of a managed cluster along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, + String configurationName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (configurationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, configurationName, accept, context); + } + + /** + * Gets the specified alert configuration of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @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 specified alert configuration of a managed cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, String resourceName, + String configurationName) { + return getWithResponseAsync(resourceGroupName, resourceName, configurationName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets the specified alert configuration of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @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 specified alert configuration of a managed cluster along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String resourceName, + String configurationName, Context context) { + return getWithResponseAsync(resourceGroupName, resourceName, configurationName, context).block(); + } + + /** + * Gets the specified alert configuration of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @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 specified alert configuration of a managed cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AlertConfigurationInner get(String resourceGroupName, String resourceName, String configurationName) { + return getWithResponse(resourceGroupName, resourceName, configurationName, Context.NONE).getValue(); + } + + /** + * Creates or updates an alert configuration in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @param resource The alert configuration to create or update. + * @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 alert configuration for a managed cluster along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String resourceName, String configurationName, AlertConfigurationInner resource) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (configurationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); + } + if (resource == null) { + return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); + } else { + resource.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, configurationName, contentType, + accept, resource, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Creates or updates an alert configuration in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @param resource The alert configuration to create or update. + * @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 alert configuration for a managed cluster along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String resourceName, String configurationName, AlertConfigurationInner resource, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (configurationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); + } + if (resource == null) { + return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); + } else { + resource.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, configurationName, contentType, accept, + resource, context); + } + + /** + * Creates or updates an alert configuration in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @param resource The alert configuration to create or update. + * @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 alert configuration for a managed cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, AlertConfigurationInner> beginCreateOrUpdateAsync( + String resourceGroupName, String resourceName, String configurationName, AlertConfigurationInner resource) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, configurationName, resource); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), AlertConfigurationInner.class, AlertConfigurationInner.class, + this.client.getContext()); + } + + /** + * Creates or updates an alert configuration in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @param resource The alert configuration to create or update. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of alert configuration for a managed cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, AlertConfigurationInner> beginCreateOrUpdateAsync( + String resourceGroupName, String resourceName, String configurationName, AlertConfigurationInner resource, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, configurationName, resource, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), AlertConfigurationInner.class, AlertConfigurationInner.class, context); + } + + /** + * Creates or updates an alert configuration in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @param resource The alert configuration to create or update. + * @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 alert configuration for a managed cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, AlertConfigurationInner> beginCreateOrUpdate( + String resourceGroupName, String resourceName, String configurationName, AlertConfigurationInner resource) { + return this.beginCreateOrUpdateAsync(resourceGroupName, resourceName, configurationName, resource) + .getSyncPoller(); + } + + /** + * Creates or updates an alert configuration in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @param resource The alert configuration to create or update. + * @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 alert configuration for a managed cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, AlertConfigurationInner> beginCreateOrUpdate( + String resourceGroupName, String resourceName, String configurationName, AlertConfigurationInner resource, + Context context) { + return this.beginCreateOrUpdateAsync(resourceGroupName, resourceName, configurationName, resource, context) + .getSyncPoller(); + } + + /** + * Creates or updates an alert configuration in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @param resource The alert configuration to create or update. + * @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 alert configuration for a managed cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateAsync(String resourceGroupName, String resourceName, + String configurationName, AlertConfigurationInner resource) { + return beginCreateOrUpdateAsync(resourceGroupName, resourceName, configurationName, resource).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates or updates an alert configuration in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @param resource The alert configuration to create or update. + * @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 alert configuration for a managed cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String resourceName, + String configurationName, AlertConfigurationInner resource, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, resourceName, configurationName, resource, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates or updates an alert configuration in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @param resource The alert configuration to create or update. + * @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 alert configuration for a managed cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AlertConfigurationInner createOrUpdate(String resourceGroupName, String resourceName, + String configurationName, AlertConfigurationInner resource) { + return createOrUpdateAsync(resourceGroupName, resourceName, configurationName, resource).block(); + } + + /** + * Creates or updates an alert configuration in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @param resource The alert configuration to create or update. + * @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 alert configuration for a managed cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public AlertConfigurationInner createOrUpdate(String resourceGroupName, String resourceName, + String configurationName, AlertConfigurationInner resource, Context context) { + return createOrUpdateAsync(resourceGroupName, resourceName, configurationName, resource, context).block(); + } + + /** + * Deletes an alert configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @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) + public Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, + String configurationName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (configurationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); + } + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, configurationName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes an alert configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @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 Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, + String configurationName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (configurationName == null) { + return Mono + .error(new IllegalArgumentException("Parameter configurationName is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, configurationName, context); + } + + /** + * Deletes an alert configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @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) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, + String configurationName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, resourceName, configurationName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes an alert configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, + String configurationName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, resourceName, configurationName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes an alert configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @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> beginDelete(String resourceGroupName, String resourceName, + String configurationName) { + return this.beginDeleteAsync(resourceGroupName, resourceName, configurationName).getSyncPoller(); + } + + /** + * Deletes an alert configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @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> beginDelete(String resourceGroupName, String resourceName, + String configurationName, Context context) { + return this.beginDeleteAsync(resourceGroupName, resourceName, configurationName, context).getSyncPoller(); + } + + /** + * Deletes an alert configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @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) + public Mono deleteAsync(String resourceGroupName, String resourceName, String configurationName) { + return beginDeleteAsync(resourceGroupName, resourceName, configurationName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes an alert configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @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 A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String resourceName, String configurationName, + Context context) { + return beginDeleteAsync(resourceGroupName, resourceName, configurationName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes an alert configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @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 delete(String resourceGroupName, String resourceName, String configurationName) { + deleteAsync(resourceGroupName, resourceName, configurationName).block(); + } + + /** + * Deletes an alert configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param configurationName The name of the alert configuration. + * @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 delete(String resourceGroupName, String resourceName, String configurationName, Context context) { + deleteAsync(resourceGroupName, resourceName, configurationName, context).block(); + } + + /** + * Gets a list of alert configurations in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 list of alert configurations in the specified managed cluster along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByManagedClusterSinglePageAsync(String resourceGroupName, + String resourceName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByManagedCluster(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets a list of alert configurations in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 a list of alert configurations in the specified managed cluster along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByManagedClusterSinglePageAsync(String resourceGroupName, + String resourceName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByManagedCluster(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Gets a list of alert configurations in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 list of alert configurations in the specified managed cluster as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listByManagedClusterAsync(String resourceGroupName, String resourceName) { + return new PagedFlux<>(() -> listByManagedClusterSinglePageAsync(resourceGroupName, resourceName), + nextLink -> listByManagedClusterNextSinglePageAsync(nextLink)); + } + + /** + * Gets a list of alert configurations in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 a list of alert configurations in the specified managed cluster as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByManagedClusterAsync(String resourceGroupName, String resourceName, + Context context) { + return new PagedFlux<>(() -> listByManagedClusterSinglePageAsync(resourceGroupName, resourceName, context), + nextLink -> listByManagedClusterNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets a list of alert configurations in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 list of alert configurations in the specified managed cluster as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByManagedCluster(String resourceGroupName, String resourceName) { + return new PagedIterable<>(listByManagedClusterAsync(resourceGroupName, resourceName)); + } + + /** + * Gets a list of alert configurations in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 a list of alert configurations in the specified managed cluster as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByManagedCluster(String resourceGroupName, String resourceName, + Context context) { + return new PagedIterable<>(listByManagedClusterAsync(resourceGroupName, resourceName, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 list of alert configurations in the specified managed cluster along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByManagedClusterNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listByManagedClusterNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 a list of alert configurations in the specified managed cluster along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByManagedClusterNextSinglePageAsync(String nextLink, + Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listByManagedClusterNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ContainerServiceManagementClientImpl.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ContainerServiceManagementClientImpl.java index db5388257d5c6..7bf0685be13a6 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ContainerServiceManagementClientImpl.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ContainerServiceManagementClientImpl.java @@ -8,13 +8,21 @@ import com.azure.core.http.HttpPipeline; import com.azure.core.management.AzureEnvironment; import com.azure.core.util.serializer.SerializerAdapter; +import com.azure.resourcemanager.containerservice.fluent.AgentFabricMembershipsClient; import com.azure.resourcemanager.containerservice.fluent.AgentPoolsClient; +import com.azure.resourcemanager.containerservice.fluent.AlertConfigurationsClient; import com.azure.resourcemanager.containerservice.fluent.ContainerServiceManagementClient; import com.azure.resourcemanager.containerservice.fluent.IdentityBindingsClient; +import com.azure.resourcemanager.containerservice.fluent.JWTAuthenticatorsClient; +import com.azure.resourcemanager.containerservice.fluent.LoadBalancersClient; import com.azure.resourcemanager.containerservice.fluent.MachinesClient; import com.azure.resourcemanager.containerservice.fluent.MaintenanceConfigurationsClient; +import com.azure.resourcemanager.containerservice.fluent.MaintenanceWindowsClient; +import com.azure.resourcemanager.containerservice.fluent.ManagedClusterSnapshotsClient; import com.azure.resourcemanager.containerservice.fluent.ManagedClustersClient; import com.azure.resourcemanager.containerservice.fluent.ManagedNamespacesClient; +import com.azure.resourcemanager.containerservice.fluent.MeshMembershipsClient; +import com.azure.resourcemanager.containerservice.fluent.OperationStatusResultsClient; import com.azure.resourcemanager.containerservice.fluent.OperationsClient; import com.azure.resourcemanager.containerservice.fluent.PrivateEndpointConnectionsClient; import com.azure.resourcemanager.containerservice.fluent.PrivateLinkResourcesClient; @@ -22,6 +30,8 @@ import com.azure.resourcemanager.containerservice.fluent.SnapshotsClient; import com.azure.resourcemanager.containerservice.fluent.TrustedAccessRoleBindingsClient; import com.azure.resourcemanager.containerservice.fluent.TrustedAccessRolesClient; +import com.azure.resourcemanager.containerservice.fluent.UpgradeInsightsClient; +import com.azure.resourcemanager.containerservice.fluent.VmSkusClient; import com.azure.resourcemanager.resources.fluentcore.AzureServiceClient; import java.time.Duration; @@ -157,6 +167,20 @@ public MaintenanceConfigurationsClient getMaintenanceConfigurations() { return this.maintenanceConfigurations; } + /** + * The MaintenanceWindowsClient object to access its operations. + */ + private final MaintenanceWindowsClient maintenanceWindows; + + /** + * Gets the MaintenanceWindowsClient object to access its operations. + * + * @return the MaintenanceWindowsClient object. + */ + public MaintenanceWindowsClient getMaintenanceWindows() { + return this.maintenanceWindows; + } + /** * The ManagedNamespacesClient object to access its operations. */ @@ -213,6 +237,20 @@ public SnapshotsClient getSnapshots() { return this.snapshots; } + /** + * The ManagedClusterSnapshotsClient object to access its operations. + */ + private final ManagedClusterSnapshotsClient managedClusterSnapshots; + + /** + * Gets the ManagedClusterSnapshotsClient object to access its operations. + * + * @return the ManagedClusterSnapshotsClient object. + */ + public ManagedClusterSnapshotsClient getManagedClusterSnapshots() { + return this.managedClusterSnapshots; + } + /** * The TrustedAccessRoleBindingsClient object to access its operations. */ @@ -227,6 +265,20 @@ public TrustedAccessRoleBindingsClient getTrustedAccessRoleBindings() { return this.trustedAccessRoleBindings; } + /** + * The LoadBalancersClient object to access its operations. + */ + private final LoadBalancersClient loadBalancers; + + /** + * Gets the LoadBalancersClient object to access its operations. + * + * @return the LoadBalancersClient object. + */ + public LoadBalancersClient getLoadBalancers() { + return this.loadBalancers; + } + /** * The IdentityBindingsClient object to access its operations. */ @@ -241,6 +293,48 @@ public IdentityBindingsClient getIdentityBindings() { return this.identityBindings; } + /** + * The JWTAuthenticatorsClient object to access its operations. + */ + private final JWTAuthenticatorsClient jWTAuthenticators; + + /** + * Gets the JWTAuthenticatorsClient object to access its operations. + * + * @return the JWTAuthenticatorsClient object. + */ + public JWTAuthenticatorsClient getJWTAuthenticators() { + return this.jWTAuthenticators; + } + + /** + * The MeshMembershipsClient object to access its operations. + */ + private final MeshMembershipsClient meshMemberships; + + /** + * Gets the MeshMembershipsClient object to access its operations. + * + * @return the MeshMembershipsClient object. + */ + public MeshMembershipsClient getMeshMemberships() { + return this.meshMemberships; + } + + /** + * The AgentFabricMembershipsClient object to access its operations. + */ + private final AgentFabricMembershipsClient agentFabricMemberships; + + /** + * Gets the AgentFabricMembershipsClient object to access its operations. + * + * @return the AgentFabricMembershipsClient object. + */ + public AgentFabricMembershipsClient getAgentFabricMemberships() { + return this.agentFabricMemberships; + } + /** * The OperationsClient object to access its operations. */ @@ -255,6 +349,48 @@ public OperationsClient getOperations() { return this.operations; } + /** + * The AlertConfigurationsClient object to access its operations. + */ + private final AlertConfigurationsClient alertConfigurations; + + /** + * Gets the AlertConfigurationsClient object to access its operations. + * + * @return the AlertConfigurationsClient object. + */ + public AlertConfigurationsClient getAlertConfigurations() { + return this.alertConfigurations; + } + + /** + * The UpgradeInsightsClient object to access its operations. + */ + private final UpgradeInsightsClient upgradeInsights; + + /** + * Gets the UpgradeInsightsClient object to access its operations. + * + * @return the UpgradeInsightsClient object. + */ + public UpgradeInsightsClient getUpgradeInsights() { + return this.upgradeInsights; + } + + /** + * The OperationStatusResultsClient object to access its operations. + */ + private final OperationStatusResultsClient operationStatusResults; + + /** + * Gets the OperationStatusResultsClient object to access its operations. + * + * @return the OperationStatusResultsClient object. + */ + public OperationStatusResultsClient getOperationStatusResults() { + return this.operationStatusResults; + } + /** * The PrivateLinkResourcesClient object to access its operations. */ @@ -297,6 +433,20 @@ public TrustedAccessRolesClient getTrustedAccessRoles() { return this.trustedAccessRoles; } + /** + * The VmSkusClient object to access its operations. + */ + private final VmSkusClient vmSkus; + + /** + * Gets the VmSkusClient object to access its operations. + * + * @return the VmSkusClient object. + */ + public VmSkusClient getVmSkus() { + return this.vmSkus; + } + /** * Initializes an instance of ContainerServiceManagementClient client. * @@ -315,19 +465,29 @@ public TrustedAccessRolesClient getTrustedAccessRoles() { this.defaultPollInterval = defaultPollInterval; this.endpoint = endpoint; this.subscriptionId = subscriptionId; - this.apiVersion = "2026-08-01"; + this.apiVersion = "2026-08-02-preview"; this.agentPools = new AgentPoolsClientImpl(this); this.managedClusters = new ManagedClustersClientImpl(this); this.maintenanceConfigurations = new MaintenanceConfigurationsClientImpl(this); + this.maintenanceWindows = new MaintenanceWindowsClientImpl(this); this.managedNamespaces = new ManagedNamespacesClientImpl(this); this.machines = new MachinesClientImpl(this); this.privateEndpointConnections = new PrivateEndpointConnectionsClientImpl(this); this.snapshots = new SnapshotsClientImpl(this); + this.managedClusterSnapshots = new ManagedClusterSnapshotsClientImpl(this); this.trustedAccessRoleBindings = new TrustedAccessRoleBindingsClientImpl(this); + this.loadBalancers = new LoadBalancersClientImpl(this); this.identityBindings = new IdentityBindingsClientImpl(this); + this.jWTAuthenticators = new JWTAuthenticatorsClientImpl(this); + this.meshMemberships = new MeshMembershipsClientImpl(this); + this.agentFabricMemberships = new AgentFabricMembershipsClientImpl(this); this.operations = new OperationsClientImpl(this); + this.alertConfigurations = new AlertConfigurationsClientImpl(this); + this.upgradeInsights = new UpgradeInsightsClientImpl(this); + this.operationStatusResults = new OperationStatusResultsClientImpl(this); this.privateLinkResources = new PrivateLinkResourcesClientImpl(this); this.resolvePrivateLinkServiceIds = new ResolvePrivateLinkServiceIdsClientImpl(this); this.trustedAccessRoles = new TrustedAccessRolesClientImpl(this); + this.vmSkus = new VmSkusClientImpl(this); } } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/JWTAuthenticatorsClientImpl.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/JWTAuthenticatorsClientImpl.java new file mode 100644 index 0000000000000..5ddc2c107c15d --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/JWTAuthenticatorsClientImpl.java @@ -0,0 +1,948 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.containerservice.fluent.JWTAuthenticatorsClient; +import com.azure.resourcemanager.containerservice.fluent.models.JWTAuthenticatorInner; +import com.azure.resourcemanager.containerservice.implementation.models.JWTAuthenticatorListResult; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in JWTAuthenticatorsClient. + */ +public final class JWTAuthenticatorsClientImpl implements JWTAuthenticatorsClient { + /** + * The proxy service used to perform REST calls. + */ + private final JWTAuthenticatorsService service; + + /** + * The service client containing this operation class. + */ + private final ContainerServiceManagementClientImpl client; + + /** + * Initializes an instance of JWTAuthenticatorsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + JWTAuthenticatorsClientImpl(ContainerServiceManagementClientImpl client) { + this.service + = RestProxy.create(JWTAuthenticatorsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for ContainerServiceManagementClientJWTAuthenticators to be used by the + * proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "ContainerServiceManagementClientJWTAuthenticators") + public interface JWTAuthenticatorsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/jwtAuthenticators/{jwtAuthenticatorName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("jwtAuthenticatorName") String jwtAuthenticatorName, @HeaderParam("Accept") String accept, + Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/jwtAuthenticators/{jwtAuthenticatorName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("jwtAuthenticatorName") String jwtAuthenticatorName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") JWTAuthenticatorInner parameters, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/jwtAuthenticators/{jwtAuthenticatorName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("jwtAuthenticatorName") String jwtAuthenticatorName, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/jwtAuthenticators") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByManagedCluster(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByManagedClusterNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Gets the specified JWT authenticator of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @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 specified JWT authenticator of a managed cluster along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getWithResponseAsync(String resourceGroupName, String resourceName, + String jwtAuthenticatorName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (jwtAuthenticatorName == null) { + return Mono + .error(new IllegalArgumentException("Parameter jwtAuthenticatorName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, jwtAuthenticatorName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the specified JWT authenticator of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @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 specified JWT authenticator of a managed cluster along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, + String jwtAuthenticatorName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (jwtAuthenticatorName == null) { + return Mono + .error(new IllegalArgumentException("Parameter jwtAuthenticatorName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, jwtAuthenticatorName, accept, context); + } + + /** + * Gets the specified JWT authenticator of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @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 specified JWT authenticator of a managed cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, String resourceName, + String jwtAuthenticatorName) { + return getWithResponseAsync(resourceGroupName, resourceName, jwtAuthenticatorName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets the specified JWT authenticator of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @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 specified JWT authenticator of a managed cluster along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String resourceName, + String jwtAuthenticatorName, Context context) { + return getWithResponseAsync(resourceGroupName, resourceName, jwtAuthenticatorName, context).block(); + } + + /** + * Gets the specified JWT authenticator of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @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 specified JWT authenticator of a managed cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public JWTAuthenticatorInner get(String resourceGroupName, String resourceName, String jwtAuthenticatorName) { + return getWithResponse(resourceGroupName, resourceName, jwtAuthenticatorName, Context.NONE).getValue(); + } + + /** + * Creates or updates JWT authenticator in the managed cluster and updates the managed cluster to apply the + * settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @param parameters The JWT authenticator to create or update. + * @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 configuration for JWT authenticator in the managed cluster along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String resourceName, String jwtAuthenticatorName, JWTAuthenticatorInner parameters) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (jwtAuthenticatorName == null) { + return Mono + .error(new IllegalArgumentException("Parameter jwtAuthenticatorName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, jwtAuthenticatorName, contentType, + accept, parameters, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Creates or updates JWT authenticator in the managed cluster and updates the managed cluster to apply the + * settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @param parameters The JWT authenticator to create or update. + * @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 configuration for JWT authenticator in the managed cluster along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String resourceName, String jwtAuthenticatorName, JWTAuthenticatorInner parameters, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (jwtAuthenticatorName == null) { + return Mono + .error(new IllegalArgumentException("Parameter jwtAuthenticatorName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, jwtAuthenticatorName, contentType, accept, + parameters, context); + } + + /** + * Creates or updates JWT authenticator in the managed cluster and updates the managed cluster to apply the + * settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @param parameters The JWT authenticator to create or update. + * @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 configuration for JWT authenticator in the managed cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, JWTAuthenticatorInner> beginCreateOrUpdateAsync( + String resourceGroupName, String resourceName, String jwtAuthenticatorName, JWTAuthenticatorInner parameters) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, jwtAuthenticatorName, parameters); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), JWTAuthenticatorInner.class, JWTAuthenticatorInner.class, + this.client.getContext()); + } + + /** + * Creates or updates JWT authenticator in the managed cluster and updates the managed cluster to apply the + * settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @param parameters The JWT authenticator to create or update. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of configuration for JWT authenticator in the managed cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, JWTAuthenticatorInner> beginCreateOrUpdateAsync( + String resourceGroupName, String resourceName, String jwtAuthenticatorName, JWTAuthenticatorInner parameters, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, + jwtAuthenticatorName, parameters, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), JWTAuthenticatorInner.class, JWTAuthenticatorInner.class, context); + } + + /** + * Creates or updates JWT authenticator in the managed cluster and updates the managed cluster to apply the + * settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @param parameters The JWT authenticator to create or update. + * @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 configuration for JWT authenticator in the managed cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, JWTAuthenticatorInner> beginCreateOrUpdate( + String resourceGroupName, String resourceName, String jwtAuthenticatorName, JWTAuthenticatorInner parameters) { + return this.beginCreateOrUpdateAsync(resourceGroupName, resourceName, jwtAuthenticatorName, parameters) + .getSyncPoller(); + } + + /** + * Creates or updates JWT authenticator in the managed cluster and updates the managed cluster to apply the + * settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @param parameters The JWT authenticator to create or update. + * @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 configuration for JWT authenticator in the managed cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, JWTAuthenticatorInner> beginCreateOrUpdate( + String resourceGroupName, String resourceName, String jwtAuthenticatorName, JWTAuthenticatorInner parameters, + Context context) { + return this.beginCreateOrUpdateAsync(resourceGroupName, resourceName, jwtAuthenticatorName, parameters, context) + .getSyncPoller(); + } + + /** + * Creates or updates JWT authenticator in the managed cluster and updates the managed cluster to apply the + * settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @param parameters The JWT authenticator to create or update. + * @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 configuration for JWT authenticator in the managed cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateAsync(String resourceGroupName, String resourceName, + String jwtAuthenticatorName, JWTAuthenticatorInner parameters) { + return beginCreateOrUpdateAsync(resourceGroupName, resourceName, jwtAuthenticatorName, parameters).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates or updates JWT authenticator in the managed cluster and updates the managed cluster to apply the + * settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @param parameters The JWT authenticator to create or update. + * @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 configuration for JWT authenticator in the managed cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String resourceName, + String jwtAuthenticatorName, JWTAuthenticatorInner parameters, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, resourceName, jwtAuthenticatorName, parameters, context) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates or updates JWT authenticator in the managed cluster and updates the managed cluster to apply the + * settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @param parameters The JWT authenticator to create or update. + * @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 configuration for JWT authenticator in the managed cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public JWTAuthenticatorInner createOrUpdate(String resourceGroupName, String resourceName, + String jwtAuthenticatorName, JWTAuthenticatorInner parameters) { + return createOrUpdateAsync(resourceGroupName, resourceName, jwtAuthenticatorName, parameters).block(); + } + + /** + * Creates or updates JWT authenticator in the managed cluster and updates the managed cluster to apply the + * settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @param parameters The JWT authenticator to create or update. + * @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 configuration for JWT authenticator in the managed cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public JWTAuthenticatorInner createOrUpdate(String resourceGroupName, String resourceName, + String jwtAuthenticatorName, JWTAuthenticatorInner parameters, Context context) { + return createOrUpdateAsync(resourceGroupName, resourceName, jwtAuthenticatorName, parameters, context).block(); + } + + /** + * Deletes a JWT authenticator and updates the managed cluster to apply the settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @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) + public Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, + String jwtAuthenticatorName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (jwtAuthenticatorName == null) { + return Mono + .error(new IllegalArgumentException("Parameter jwtAuthenticatorName is required and cannot be null.")); + } + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, jwtAuthenticatorName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes a JWT authenticator and updates the managed cluster to apply the settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @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 Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, + String jwtAuthenticatorName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (jwtAuthenticatorName == null) { + return Mono + .error(new IllegalArgumentException("Parameter jwtAuthenticatorName is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, jwtAuthenticatorName, context); + } + + /** + * Deletes a JWT authenticator and updates the managed cluster to apply the settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @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) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, + String jwtAuthenticatorName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, resourceName, jwtAuthenticatorName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes a JWT authenticator and updates the managed cluster to apply the settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, + String jwtAuthenticatorName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, resourceName, jwtAuthenticatorName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes a JWT authenticator and updates the managed cluster to apply the settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @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> beginDelete(String resourceGroupName, String resourceName, + String jwtAuthenticatorName) { + return this.beginDeleteAsync(resourceGroupName, resourceName, jwtAuthenticatorName).getSyncPoller(); + } + + /** + * Deletes a JWT authenticator and updates the managed cluster to apply the settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @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> beginDelete(String resourceGroupName, String resourceName, + String jwtAuthenticatorName, Context context) { + return this.beginDeleteAsync(resourceGroupName, resourceName, jwtAuthenticatorName, context).getSyncPoller(); + } + + /** + * Deletes a JWT authenticator and updates the managed cluster to apply the settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @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) + public Mono deleteAsync(String resourceGroupName, String resourceName, String jwtAuthenticatorName) { + return beginDeleteAsync(resourceGroupName, resourceName, jwtAuthenticatorName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes a JWT authenticator and updates the managed cluster to apply the settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @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 A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String resourceName, String jwtAuthenticatorName, + Context context) { + return beginDeleteAsync(resourceGroupName, resourceName, jwtAuthenticatorName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes a JWT authenticator and updates the managed cluster to apply the settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @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 delete(String resourceGroupName, String resourceName, String jwtAuthenticatorName) { + deleteAsync(resourceGroupName, resourceName, jwtAuthenticatorName).block(); + } + + /** + * Deletes a JWT authenticator and updates the managed cluster to apply the settings. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param jwtAuthenticatorName The name of the JWT authenticator. + * @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 delete(String resourceGroupName, String resourceName, String jwtAuthenticatorName, Context context) { + deleteAsync(resourceGroupName, resourceName, jwtAuthenticatorName, context).block(); + } + + /** + * Gets a list of JWT authenticators in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 list of JWT authenticators in the specified managed cluster along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByManagedClusterSinglePageAsync(String resourceGroupName, + String resourceName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByManagedCluster(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets a list of JWT authenticators in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 a list of JWT authenticators in the specified managed cluster along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByManagedClusterSinglePageAsync(String resourceGroupName, + String resourceName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByManagedCluster(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Gets a list of JWT authenticators in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 list of JWT authenticators in the specified managed cluster as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listByManagedClusterAsync(String resourceGroupName, String resourceName) { + return new PagedFlux<>(() -> listByManagedClusterSinglePageAsync(resourceGroupName, resourceName), + nextLink -> listByManagedClusterNextSinglePageAsync(nextLink)); + } + + /** + * Gets a list of JWT authenticators in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 a list of JWT authenticators in the specified managed cluster as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByManagedClusterAsync(String resourceGroupName, String resourceName, + Context context) { + return new PagedFlux<>(() -> listByManagedClusterSinglePageAsync(resourceGroupName, resourceName, context), + nextLink -> listByManagedClusterNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets a list of JWT authenticators in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 list of JWT authenticators in the specified managed cluster as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByManagedCluster(String resourceGroupName, String resourceName) { + return new PagedIterable<>(listByManagedClusterAsync(resourceGroupName, resourceName)); + } + + /** + * Gets a list of JWT authenticators in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 a list of JWT authenticators in the specified managed cluster as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByManagedCluster(String resourceGroupName, String resourceName, + Context context) { + return new PagedIterable<>(listByManagedClusterAsync(resourceGroupName, resourceName, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 list of JWT authenticators in the specified managed cluster along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByManagedClusterNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listByManagedClusterNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 a list of JWT authenticators in the specified managed cluster along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByManagedClusterNextSinglePageAsync(String nextLink, + Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listByManagedClusterNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/LoadBalancersClientImpl.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/LoadBalancersClientImpl.java new file mode 100644 index 0000000000000..de9578b677a34 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/LoadBalancersClientImpl.java @@ -0,0 +1,829 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.containerservice.fluent.LoadBalancersClient; +import com.azure.resourcemanager.containerservice.fluent.models.LoadBalancerInner; +import com.azure.resourcemanager.containerservice.implementation.models.LoadBalancerListResult; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in LoadBalancersClient. + */ +public final class LoadBalancersClientImpl implements LoadBalancersClient { + /** + * The proxy service used to perform REST calls. + */ + private final LoadBalancersService service; + + /** + * The service client containing this operation class. + */ + private final ContainerServiceManagementClientImpl client; + + /** + * Initializes an instance of LoadBalancersClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + LoadBalancersClientImpl(ContainerServiceManagementClientImpl client) { + this.service + = RestProxy.create(LoadBalancersService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for ContainerServiceManagementClientLoadBalancers to be used by the proxy + * service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "ContainerServiceManagementClientLoadBalancers") + public interface LoadBalancersService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/loadBalancers/{loadBalancerName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("loadBalancerName") String loadBalancerName, @HeaderParam("Accept") String accept, + Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/loadBalancers/{loadBalancerName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("loadBalancerName") String loadBalancerName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") LoadBalancerInner parameters, + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/loadBalancers/{loadBalancerName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("loadBalancerName") String loadBalancerName, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/loadBalancers") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByManagedCluster(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByManagedClusterNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Gets the specified load balancer. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param loadBalancerName The name of the load balancer. + * @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 specified load balancer along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getWithResponseAsync(String resourceGroupName, String resourceName, + String loadBalancerName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (loadBalancerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, loadBalancerName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the specified load balancer. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param loadBalancerName The name of the load balancer. + * @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 specified load balancer along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, + String loadBalancerName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (loadBalancerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, loadBalancerName, accept, context); + } + + /** + * Gets the specified load balancer. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param loadBalancerName The name of the load balancer. + * @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 specified load balancer on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, String resourceName, String loadBalancerName) { + return getWithResponseAsync(resourceGroupName, resourceName, loadBalancerName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets the specified load balancer. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param loadBalancerName The name of the load balancer. + * @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 specified load balancer along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String resourceName, + String loadBalancerName, Context context) { + return getWithResponseAsync(resourceGroupName, resourceName, loadBalancerName, context).block(); + } + + /** + * Gets the specified load balancer. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param loadBalancerName The name of the load balancer. + * @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 specified load balancer. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public LoadBalancerInner get(String resourceGroupName, String resourceName, String loadBalancerName) { + return getWithResponse(resourceGroupName, resourceName, loadBalancerName, Context.NONE).getValue(); + } + + /** + * Creates or updates a load balancer in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param loadBalancerName The name of the load balancer. + * @param parameters The load balancer to create or update. + * @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 configurations regarding multiple standard load balancers along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String resourceName, String loadBalancerName, LoadBalancerInner parameters) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (loadBalancerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, loadBalancerName, contentType, accept, + parameters, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Creates or updates a load balancer in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param loadBalancerName The name of the load balancer. + * @param parameters The load balancer to create or update. + * @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 configurations regarding multiple standard load balancers along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String resourceName, String loadBalancerName, LoadBalancerInner parameters, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (loadBalancerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, loadBalancerName, contentType, accept, + parameters, context); + } + + /** + * Creates or updates a load balancer in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param loadBalancerName The name of the load balancer. + * @param parameters The load balancer to create or update. + * @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 configurations regarding multiple standard load balancers on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateAsync(String resourceGroupName, String resourceName, + String loadBalancerName, LoadBalancerInner parameters) { + return createOrUpdateWithResponseAsync(resourceGroupName, resourceName, loadBalancerName, parameters) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Creates or updates a load balancer in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param loadBalancerName The name of the load balancer. + * @param parameters The load balancer to create or update. + * @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 configurations regarding multiple standard load balancers along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response createOrUpdateWithResponse(String resourceGroupName, String resourceName, + String loadBalancerName, LoadBalancerInner parameters, Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, resourceName, loadBalancerName, parameters, context) + .block(); + } + + /** + * Creates or updates a load balancer in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param loadBalancerName The name of the load balancer. + * @param parameters The load balancer to create or update. + * @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 configurations regarding multiple standard load balancers. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public LoadBalancerInner createOrUpdate(String resourceGroupName, String resourceName, String loadBalancerName, + LoadBalancerInner parameters) { + return createOrUpdateWithResponse(resourceGroupName, resourceName, loadBalancerName, parameters, Context.NONE) + .getValue(); + } + + /** + * Deletes a load balancer in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param loadBalancerName The name of the load balancer. + * @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) + public Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, + String loadBalancerName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (loadBalancerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); + } + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, loadBalancerName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes a load balancer in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param loadBalancerName The name of the load balancer. + * @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 Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, + String loadBalancerName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (loadBalancerName == null) { + return Mono + .error(new IllegalArgumentException("Parameter loadBalancerName is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, loadBalancerName, context); + } + + /** + * Deletes a load balancer in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param loadBalancerName The name of the load balancer. + * @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) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, + String loadBalancerName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, resourceName, loadBalancerName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes a load balancer in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param loadBalancerName The name of the load balancer. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, + String loadBalancerName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, resourceName, loadBalancerName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes a load balancer in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param loadBalancerName The name of the load balancer. + * @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> beginDelete(String resourceGroupName, String resourceName, + String loadBalancerName) { + return this.beginDeleteAsync(resourceGroupName, resourceName, loadBalancerName).getSyncPoller(); + } + + /** + * Deletes a load balancer in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param loadBalancerName The name of the load balancer. + * @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> beginDelete(String resourceGroupName, String resourceName, + String loadBalancerName, Context context) { + return this.beginDeleteAsync(resourceGroupName, resourceName, loadBalancerName, context).getSyncPoller(); + } + + /** + * Deletes a load balancer in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param loadBalancerName The name of the load balancer. + * @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) + public Mono deleteAsync(String resourceGroupName, String resourceName, String loadBalancerName) { + return beginDeleteAsync(resourceGroupName, resourceName, loadBalancerName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes a load balancer in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param loadBalancerName The name of the load balancer. + * @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 A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String resourceName, String loadBalancerName, + Context context) { + return beginDeleteAsync(resourceGroupName, resourceName, loadBalancerName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes a load balancer in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param loadBalancerName The name of the load balancer. + * @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 delete(String resourceGroupName, String resourceName, String loadBalancerName) { + deleteAsync(resourceGroupName, resourceName, loadBalancerName).block(); + } + + /** + * Deletes a load balancer in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param loadBalancerName The name of the load balancer. + * @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 delete(String resourceGroupName, String resourceName, String loadBalancerName, Context context) { + deleteAsync(resourceGroupName, resourceName, loadBalancerName, context).block(); + } + + /** + * Gets a list of load balancers in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 list of load balancers in the specified managed cluster along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByManagedClusterSinglePageAsync(String resourceGroupName, + String resourceName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByManagedCluster(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets a list of load balancers in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 a list of load balancers in the specified managed cluster along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByManagedClusterSinglePageAsync(String resourceGroupName, + String resourceName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByManagedCluster(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Gets a list of load balancers in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 list of load balancers in the specified managed cluster as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listByManagedClusterAsync(String resourceGroupName, String resourceName) { + return new PagedFlux<>(() -> listByManagedClusterSinglePageAsync(resourceGroupName, resourceName), + nextLink -> listByManagedClusterNextSinglePageAsync(nextLink)); + } + + /** + * Gets a list of load balancers in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 a list of load balancers in the specified managed cluster as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByManagedClusterAsync(String resourceGroupName, String resourceName, + Context context) { + return new PagedFlux<>(() -> listByManagedClusterSinglePageAsync(resourceGroupName, resourceName, context), + nextLink -> listByManagedClusterNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets a list of load balancers in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 list of load balancers in the specified managed cluster as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByManagedCluster(String resourceGroupName, String resourceName) { + return new PagedIterable<>(listByManagedClusterAsync(resourceGroupName, resourceName)); + } + + /** + * Gets a list of load balancers in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 a list of load balancers in the specified managed cluster as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByManagedCluster(String resourceGroupName, String resourceName, + Context context) { + return new PagedIterable<>(listByManagedClusterAsync(resourceGroupName, resourceName, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 list of load balancers in the specified managed cluster along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByManagedClusterNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listByManagedClusterNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 a list of load balancers in the specified managed cluster along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByManagedClusterNextSinglePageAsync(String nextLink, + Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listByManagedClusterNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MachinesClientImpl.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MachinesClientImpl.java index b04845e1f3893..cf7047e2dd15c 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MachinesClientImpl.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MachinesClientImpl.java @@ -4,6 +4,7 @@ package com.azure.resourcemanager.containerservice.implementation; +import com.azure.core.annotation.BodyParam; import com.azure.core.annotation.ExpectedResponses; import com.azure.core.annotation.Get; import com.azure.core.annotation.HeaderParam; @@ -11,6 +12,7 @@ import com.azure.core.annotation.Host; import com.azure.core.annotation.HostParam; import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; import com.azure.core.annotation.QueryParam; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceInterface; @@ -23,11 +25,16 @@ import com.azure.core.http.rest.Response; import com.azure.core.http.rest.RestProxy; import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.containerservice.fluent.MachinesClient; import com.azure.resourcemanager.containerservice.fluent.models.MachineInner; import com.azure.resourcemanager.containerservice.implementation.models.MachineListResult; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; /** @@ -71,6 +78,17 @@ Mono> get(@HostParam("endpoint") String endpoint, @PathParam("agentPoolName") String agentPoolName, @PathParam("machineName") String machineName, @HeaderParam("Accept") String accept, Context context); + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/machines/{machineName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("agentPoolName") String agentPoolName, @PathParam("machineName") String machineName, + @HeaderParam("if-match") String ifMatch, @HeaderParam("if-none-match") String ifNoneMatch, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") MachineInner parameters, Context context); + @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/machines") @ExpectedResponses({ 200 }) @@ -232,6 +250,352 @@ public MachineInner get(String resourceGroupName, String resourceName, String ag return getWithResponse(resourceGroupName, resourceName, agentPoolName, machineName, Context.NONE).getValue(); } + /** + * Creates or updates a machine in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param machineName Host name of the machine. + * @param parameters The machine to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this 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 a machine along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String resourceName, String agentPoolName, String machineName, MachineInner parameters, String ifMatch, + String ifNoneMatch) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (agentPoolName == null) { + return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); + } + if (machineName == null) { + return Mono.error(new IllegalArgumentException("Parameter machineName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, agentPoolName, machineName, ifMatch, + ifNoneMatch, contentType, accept, parameters, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Creates or updates a machine in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param machineName Host name of the machine. + * @param parameters The machine to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. + * @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 a machine along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String resourceName, String agentPoolName, String machineName, MachineInner parameters, String ifMatch, + String ifNoneMatch, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (agentPoolName == null) { + return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); + } + if (machineName == null) { + return Mono.error(new IllegalArgumentException("Parameter machineName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, agentPoolName, machineName, ifMatch, + ifNoneMatch, contentType, accept, parameters, context); + } + + /** + * Creates or updates a machine in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param machineName Host name of the machine. + * @param parameters The machine to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this 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 {@link PollerFlux} for polling of a machine. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, MachineInner> beginCreateOrUpdateAsync(String resourceGroupName, + String resourceName, String agentPoolName, String machineName, MachineInner parameters, String ifMatch, + String ifNoneMatch) { + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, + agentPoolName, machineName, parameters, ifMatch, ifNoneMatch); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + MachineInner.class, MachineInner.class, this.client.getContext()); + } + + /** + * Creates or updates a machine in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param machineName Host name of the machine. + * @param parameters The machine to create or update. + * @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 a machine. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, MachineInner> beginCreateOrUpdateAsync(String resourceGroupName, + String resourceName, String agentPoolName, String machineName, MachineInner parameters) { + final String ifMatch = null; + final String ifNoneMatch = null; + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, + agentPoolName, machineName, parameters, ifMatch, ifNoneMatch); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + MachineInner.class, MachineInner.class, this.client.getContext()); + } + + /** + * Creates or updates a machine in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param machineName Host name of the machine. + * @param parameters The machine to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of a machine. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, MachineInner> beginCreateOrUpdateAsync(String resourceGroupName, + String resourceName, String agentPoolName, String machineName, MachineInner parameters, String ifMatch, + String ifNoneMatch, Context context) { + context = this.client.mergeContext(context); + Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, + agentPoolName, machineName, parameters, ifMatch, ifNoneMatch, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + MachineInner.class, MachineInner.class, context); + } + + /** + * Creates or updates a machine in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param machineName Host name of the machine. + * @param parameters The machine to create or update. + * @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 a machine. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, MachineInner> beginCreateOrUpdate(String resourceGroupName, + String resourceName, String agentPoolName, String machineName, MachineInner parameters) { + final String ifMatch = null; + final String ifNoneMatch = null; + return this + .beginCreateOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, machineName, parameters, ifMatch, + ifNoneMatch) + .getSyncPoller(); + } + + /** + * Creates or updates a machine in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param machineName Host name of the machine. + * @param parameters The machine to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. + * @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 a machine. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, MachineInner> beginCreateOrUpdate(String resourceGroupName, + String resourceName, String agentPoolName, String machineName, MachineInner parameters, String ifMatch, + String ifNoneMatch, Context context) { + return this + .beginCreateOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, machineName, parameters, ifMatch, + ifNoneMatch, context) + .getSyncPoller(); + } + + /** + * Creates or updates a machine in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param machineName Host name of the machine. + * @param parameters The machine to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this 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 a machine on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateAsync(String resourceGroupName, String resourceName, String agentPoolName, + String machineName, MachineInner parameters, String ifMatch, String ifNoneMatch) { + return beginCreateOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, machineName, parameters, + ifMatch, ifNoneMatch).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates or updates a machine in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param machineName Host name of the machine. + * @param parameters The machine to create or update. + * @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 machine on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateAsync(String resourceGroupName, String resourceName, String agentPoolName, + String machineName, MachineInner parameters) { + final String ifMatch = null; + final String ifNoneMatch = null; + return beginCreateOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, machineName, parameters, + ifMatch, ifNoneMatch).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates or updates a machine in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param machineName Host name of the machine. + * @param parameters The machine to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. + * @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 a machine on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String resourceName, String agentPoolName, + String machineName, MachineInner parameters, String ifMatch, String ifNoneMatch, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, machineName, parameters, + ifMatch, ifNoneMatch, context).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates or updates a machine in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param machineName Host name of the machine. + * @param parameters The machine to create or update. + * @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 machine. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public MachineInner createOrUpdate(String resourceGroupName, String resourceName, String agentPoolName, + String machineName, MachineInner parameters) { + final String ifMatch = null; + final String ifNoneMatch = null; + return createOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, machineName, parameters, ifMatch, + ifNoneMatch).block(); + } + + /** + * Creates or updates a machine in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param machineName Host name of the machine. + * @param parameters The machine to create or update. + * @param ifMatch The request should only proceed if an entity matches this string. + * @param ifNoneMatch The request should only proceed if no entity matches this string. + * @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 a machine. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public MachineInner createOrUpdate(String resourceGroupName, String resourceName, String agentPoolName, + String machineName, MachineInner parameters, String ifMatch, String ifNoneMatch, Context context) { + return createOrUpdateAsync(resourceGroupName, resourceName, agentPoolName, machineName, parameters, ifMatch, + ifNoneMatch, context).block(); + } + /** * Gets a list of machines in the specified agent pool. * diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MaintenanceWindowsClientImpl.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MaintenanceWindowsClientImpl.java new file mode 100644 index 0000000000000..e0fee417404bf --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MaintenanceWindowsClientImpl.java @@ -0,0 +1,1239 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.containerservice.fluent.MaintenanceWindowsClient; +import com.azure.resourcemanager.containerservice.fluent.models.MaintenanceWindowResourceInner; +import com.azure.resourcemanager.containerservice.implementation.models.MaintenanceWindowResourceListResult; +import com.azure.resourcemanager.containerservice.models.TagsObject; +import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; +import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; +import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in MaintenanceWindowsClient. + */ +public final class MaintenanceWindowsClientImpl implements InnerSupportsGet, + InnerSupportsListing, InnerSupportsDelete, MaintenanceWindowsClient { + /** + * The proxy service used to perform REST calls. + */ + private final MaintenanceWindowsService service; + + /** + * The service client containing this operation class. + */ + private final ContainerServiceManagementClientImpl client; + + /** + * Initializes an instance of MaintenanceWindowsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + MaintenanceWindowsClientImpl(ContainerServiceManagementClientImpl client) { + this.service = RestProxy.create(MaintenanceWindowsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for ContainerServiceManagementClientMaintenanceWindows to be used by the + * proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "ContainerServiceManagementClientMaintenanceWindows") + public interface MaintenanceWindowsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/maintenanceWindows/{maintenanceWindowName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("maintenanceWindowName") String maintenanceWindowName, @HeaderParam("Accept") String accept, + Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/maintenanceWindows/{maintenanceWindowName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("maintenanceWindowName") String maintenanceWindowName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") MaintenanceWindowResourceInner resource, Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/maintenanceWindows/{maintenanceWindowName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("maintenanceWindowName") String maintenanceWindowName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") TagsObject properties, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/maintenanceWindows/{maintenanceWindowName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, + @PathParam("maintenanceWindowName") String maintenanceWindowName, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/maintenanceWindows") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/maintenanceWindows") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listBySubscriptionNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Gets the specified maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @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 specified maintenance window along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String maintenanceWindowName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (maintenanceWindowName == null) { + return Mono + .error(new IllegalArgumentException("Parameter maintenanceWindowName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, maintenanceWindowName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the specified maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @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 specified maintenance window along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String maintenanceWindowName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (maintenanceWindowName == null) { + return Mono + .error(new IllegalArgumentException("Parameter maintenanceWindowName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, maintenanceWindowName, accept, context); + } + + /** + * Gets the specified maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @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 specified maintenance window on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getByResourceGroupAsync(String resourceGroupName, + String maintenanceWindowName) { + return getByResourceGroupWithResponseAsync(resourceGroupName, maintenanceWindowName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets the specified maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @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 specified maintenance window along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getByResourceGroupWithResponse(String resourceGroupName, + String maintenanceWindowName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, maintenanceWindowName, context).block(); + } + + /** + * Gets the specified maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @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 specified maintenance window. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public MaintenanceWindowResourceInner getByResourceGroup(String resourceGroupName, String maintenanceWindowName) { + return getByResourceGroupWithResponse(resourceGroupName, maintenanceWindowName, Context.NONE).getValue(); + } + + /** + * Creates or updates a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @param resource The maintenance window to create or update. + * @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 maintenance window is a resource-group-scoped resource that defines a reusable maintenance schedule + * which can be linked to maintenance configurations on one or more managed clusters along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String maintenanceWindowName, MaintenanceWindowResourceInner resource) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (maintenanceWindowName == null) { + return Mono + .error(new IllegalArgumentException("Parameter maintenanceWindowName is required and cannot be null.")); + } + if (resource == null) { + return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); + } else { + resource.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, maintenanceWindowName, contentType, accept, + resource, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Creates or updates a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @param resource The maintenance window to create or update. + * @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 a maintenance window is a resource-group-scoped resource that defines a reusable maintenance schedule + * which can be linked to maintenance configurations on one or more managed clusters along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String maintenanceWindowName, MaintenanceWindowResourceInner resource, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (maintenanceWindowName == null) { + return Mono + .error(new IllegalArgumentException("Parameter maintenanceWindowName is required and cannot be null.")); + } + if (resource == null) { + return Mono.error(new IllegalArgumentException("Parameter resource is required and cannot be null.")); + } else { + resource.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, maintenanceWindowName, contentType, accept, resource, + context); + } + + /** + * Creates or updates a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @param resource The maintenance window to create or update. + * @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 a maintenance window is a resource-group-scoped resource that + * defines a reusable maintenance schedule which can be linked to maintenance configurations on one or more managed + * clusters. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, MaintenanceWindowResourceInner> + beginCreateOrUpdateAsync(String resourceGroupName, String maintenanceWindowName, + MaintenanceWindowResourceInner resource) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, maintenanceWindowName, resource); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), MaintenanceWindowResourceInner.class, MaintenanceWindowResourceInner.class, + this.client.getContext()); + } + + /** + * Creates or updates a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @param resource The maintenance window to create or update. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of a maintenance window is a resource-group-scoped resource that + * defines a reusable maintenance schedule which can be linked to maintenance configurations on one or more managed + * clusters. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, MaintenanceWindowResourceInner> + beginCreateOrUpdateAsync(String resourceGroupName, String maintenanceWindowName, + MaintenanceWindowResourceInner resource, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, maintenanceWindowName, resource, context); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), MaintenanceWindowResourceInner.class, MaintenanceWindowResourceInner.class, + context); + } + + /** + * Creates or updates a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @param resource The maintenance window to create or update. + * @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 a maintenance window is a resource-group-scoped resource that + * defines a reusable maintenance schedule which can be linked to maintenance configurations on one or more managed + * clusters. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, MaintenanceWindowResourceInner> beginCreateOrUpdate( + String resourceGroupName, String maintenanceWindowName, MaintenanceWindowResourceInner resource) { + return this.beginCreateOrUpdateAsync(resourceGroupName, maintenanceWindowName, resource).getSyncPoller(); + } + + /** + * Creates or updates a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @param resource The maintenance window to create or update. + * @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 a maintenance window is a resource-group-scoped resource that + * defines a reusable maintenance schedule which can be linked to maintenance configurations on one or more managed + * clusters. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, MaintenanceWindowResourceInner> beginCreateOrUpdate( + String resourceGroupName, String maintenanceWindowName, MaintenanceWindowResourceInner resource, + Context context) { + return this.beginCreateOrUpdateAsync(resourceGroupName, maintenanceWindowName, resource, context) + .getSyncPoller(); + } + + /** + * Creates or updates a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @param resource The maintenance window to create or update. + * @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 maintenance window is a resource-group-scoped resource that defines a reusable maintenance schedule + * which can be linked to maintenance configurations on one or more managed clusters on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateAsync(String resourceGroupName, + String maintenanceWindowName, MaintenanceWindowResourceInner resource) { + return beginCreateOrUpdateAsync(resourceGroupName, maintenanceWindowName, resource).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates or updates a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @param resource The maintenance window to create or update. + * @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 a maintenance window is a resource-group-scoped resource that defines a reusable maintenance schedule + * which can be linked to maintenance configurations on one or more managed clusters on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, + String maintenanceWindowName, MaintenanceWindowResourceInner resource, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, maintenanceWindowName, resource, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates or updates a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @param resource The maintenance window to create or update. + * @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 maintenance window is a resource-group-scoped resource that defines a reusable maintenance schedule + * which can be linked to maintenance configurations on one or more managed clusters. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public MaintenanceWindowResourceInner createOrUpdate(String resourceGroupName, String maintenanceWindowName, + MaintenanceWindowResourceInner resource) { + return createOrUpdateAsync(resourceGroupName, maintenanceWindowName, resource).block(); + } + + /** + * Creates or updates a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @param resource The maintenance window to create or update. + * @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 a maintenance window is a resource-group-scoped resource that defines a reusable maintenance schedule + * which can be linked to maintenance configurations on one or more managed clusters. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public MaintenanceWindowResourceInner createOrUpdate(String resourceGroupName, String maintenanceWindowName, + MaintenanceWindowResourceInner resource, Context context) { + return createOrUpdateAsync(resourceGroupName, maintenanceWindowName, resource, context).block(); + } + + /** + * Updates tags on a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @param properties Parameters supplied to the Update maintenance window Tags 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 a maintenance window is a resource-group-scoped resource that defines a reusable maintenance schedule + * which can be linked to maintenance configurations on one or more managed clusters along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> updateTagsWithResponseAsync(String resourceGroupName, + String maintenanceWindowName, TagsObject properties) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (maintenanceWindowName == null) { + return Mono + .error(new IllegalArgumentException("Parameter maintenanceWindowName is required and cannot be null.")); + } + if (properties == null) { + return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null.")); + } else { + properties.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.updateTags(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, maintenanceWindowName, contentType, accept, + properties, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Updates tags on a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @param properties Parameters supplied to the Update maintenance window Tags operation. + * @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 a maintenance window is a resource-group-scoped resource that defines a reusable maintenance schedule + * which can be linked to maintenance configurations on one or more managed clusters along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> updateTagsWithResponseAsync(String resourceGroupName, + String maintenanceWindowName, TagsObject properties, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (maintenanceWindowName == null) { + return Mono + .error(new IllegalArgumentException("Parameter maintenanceWindowName is required and cannot be null.")); + } + if (properties == null) { + return Mono.error(new IllegalArgumentException("Parameter properties is required and cannot be null.")); + } else { + properties.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.updateTags(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, maintenanceWindowName, contentType, accept, properties, + context); + } + + /** + * Updates tags on a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @param properties Parameters supplied to the Update maintenance window Tags 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 a maintenance window is a resource-group-scoped resource that defines a reusable maintenance schedule + * which can be linked to maintenance configurations on one or more managed clusters on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono updateTagsAsync(String resourceGroupName, String maintenanceWindowName, + TagsObject properties) { + return updateTagsWithResponseAsync(resourceGroupName, maintenanceWindowName, properties) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Updates tags on a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @param properties Parameters supplied to the Update maintenance window Tags operation. + * @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 a maintenance window is a resource-group-scoped resource that defines a reusable maintenance schedule + * which can be linked to maintenance configurations on one or more managed clusters along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response updateTagsWithResponse(String resourceGroupName, + String maintenanceWindowName, TagsObject properties, Context context) { + return updateTagsWithResponseAsync(resourceGroupName, maintenanceWindowName, properties, context).block(); + } + + /** + * Updates tags on a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @param properties Parameters supplied to the Update maintenance window Tags 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 a maintenance window is a resource-group-scoped resource that defines a reusable maintenance schedule + * which can be linked to maintenance configurations on one or more managed clusters. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public MaintenanceWindowResourceInner updateTags(String resourceGroupName, String maintenanceWindowName, + TagsObject properties) { + return updateTagsWithResponse(resourceGroupName, maintenanceWindowName, properties, Context.NONE).getValue(); + } + + /** + * Deletes a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @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) + public Mono>> deleteWithResponseAsync(String resourceGroupName, + String maintenanceWindowName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (maintenanceWindowName == null) { + return Mono + .error(new IllegalArgumentException("Parameter maintenanceWindowName is required and cannot be null.")); + } + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, maintenanceWindowName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @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 Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, + String maintenanceWindowName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (maintenanceWindowName == null) { + return Mono + .error(new IllegalArgumentException("Parameter maintenanceWindowName is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, maintenanceWindowName, context); + } + + /** + * Deletes a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @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) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String maintenanceWindowName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, maintenanceWindowName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String maintenanceWindowName, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, maintenanceWindowName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @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> beginDelete(String resourceGroupName, String maintenanceWindowName) { + return this.beginDeleteAsync(resourceGroupName, maintenanceWindowName).getSyncPoller(); + } + + /** + * Deletes a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @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> beginDelete(String resourceGroupName, String maintenanceWindowName, + Context context) { + return this.beginDeleteAsync(resourceGroupName, maintenanceWindowName, context).getSyncPoller(); + } + + /** + * Deletes a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @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) + public Mono deleteAsync(String resourceGroupName, String maintenanceWindowName) { + return beginDeleteAsync(resourceGroupName, maintenanceWindowName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @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 A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String maintenanceWindowName, Context context) { + return beginDeleteAsync(resourceGroupName, maintenanceWindowName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @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 delete(String resourceGroupName, String maintenanceWindowName) { + deleteAsync(resourceGroupName, maintenanceWindowName).block(); + } + + /** + * Deletes a maintenance window. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param maintenanceWindowName The name of the maintenance window. + * @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 delete(String resourceGroupName, String maintenanceWindowName, Context context) { + deleteAsync(resourceGroupName, maintenanceWindowName, context).block(); + } + + /** + * Lists maintenance windows in the specified resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @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 of a MaintenanceWindowResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByResourceGroupSinglePageAsync(String resourceGroupName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Lists maintenance windows in the specified resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a MaintenanceWindowResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByResourceGroupSinglePageAsync(String resourceGroupName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Lists maintenance windows in the specified resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @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 of a MaintenanceWindowResource list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Lists maintenance windows in the specified resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a MaintenanceWindowResource list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByResourceGroupAsync(String resourceGroupName, + Context context) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * Lists maintenance windows in the specified resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @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 of a MaintenanceWindowResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); + } + + /** + * Lists maintenance windows in the specified resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a MaintenanceWindowResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName, + Context context) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); + } + + /** + * Lists maintenance windows in the specified subscription. + * + * @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 of a MaintenanceWindowResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync() { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Lists maintenance windows in the specified subscription. + * + * @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 of a MaintenanceWindowResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), accept, + context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Lists maintenance windows in the specified subscription. + * + * @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 of a MaintenanceWindowResource list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), + nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); + } + + /** + * Lists maintenance windows in the specified subscription. + * + * @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 of a MaintenanceWindowResource list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listBySubscriptionNextSinglePageAsync(nextLink, context)); + } + + /** + * Lists maintenance windows in the specified subscription. + * + * @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 of a MaintenanceWindowResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(listAsync()); + } + + /** + * Lists maintenance windows in the specified subscription. + * + * @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 of a MaintenanceWindowResource list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a MaintenanceWindowResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a MaintenanceWindowResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink, + Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a MaintenanceWindowResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a MaintenanceWindowResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listBySubscriptionNextSinglePageAsync(String nextLink, + Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedClusterSnapshotsClientImpl.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedClusterSnapshotsClientImpl.java new file mode 100644 index 0000000000000..a9b71c874a992 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedClusterSnapshotsClientImpl.java @@ -0,0 +1,1000 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.resourcemanager.containerservice.fluent.ManagedClusterSnapshotsClient; +import com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterSnapshotInner; +import com.azure.resourcemanager.containerservice.implementation.models.ManagedClusterSnapshotListResult; +import com.azure.resourcemanager.containerservice.models.TagsObject; +import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; +import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsGet; +import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsListing; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in ManagedClusterSnapshotsClient. + */ +public final class ManagedClusterSnapshotsClientImpl implements InnerSupportsGet, + InnerSupportsListing, InnerSupportsDelete, ManagedClusterSnapshotsClient { + /** + * The proxy service used to perform REST calls. + */ + private final ManagedClusterSnapshotsService service; + + /** + * The service client containing this operation class. + */ + private final ContainerServiceManagementClientImpl client; + + /** + * Initializes an instance of ManagedClusterSnapshotsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + ManagedClusterSnapshotsClientImpl(ContainerServiceManagementClientImpl client) { + this.service = RestProxy.create(ManagedClusterSnapshotsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for ContainerServiceManagementClientManagedClusterSnapshots to be used by + * the proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "ContainerServiceManagementClientManagedClusterSnapshots") + public interface ManagedClusterSnapshotsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @HeaderParam("Accept") String accept, Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ManagedClusterSnapshotInner parameters, Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> updateTags(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") TagsObject parameters, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots/{resourceName}") + @ExpectedResponses({ 200, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedclustersnapshots") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/managedclustersnapshots") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByResourceGroupNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Gets a managed cluster snapshot. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 managed cluster snapshot along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String resourceName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets a managed cluster snapshot. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 a managed cluster snapshot along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + String resourceName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context); + } + + /** + * Gets a managed cluster snapshot. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 managed cluster snapshot on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getByResourceGroupAsync(String resourceGroupName, String resourceName) { + return getByResourceGroupWithResponseAsync(resourceGroupName, resourceName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets a managed cluster snapshot. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 a managed cluster snapshot along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getByResourceGroupWithResponse(String resourceGroupName, + String resourceName, Context context) { + return getByResourceGroupWithResponseAsync(resourceGroupName, resourceName, context).block(); + } + + /** + * Gets a managed cluster snapshot. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 managed cluster snapshot. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ManagedClusterSnapshotInner getByResourceGroup(String resourceGroupName, String resourceName) { + return getByResourceGroupWithResponse(resourceGroupName, resourceName, Context.NONE).getValue(); + } + + /** + * Creates or updates a managed cluster snapshot. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters The managed cluster snapshot to create or update. + * @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 managed cluster snapshot resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String resourceName, ManagedClusterSnapshotInner parameters) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, contentType, accept, parameters, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Creates or updates a managed cluster snapshot. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters The managed cluster snapshot to create or update. + * @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 a managed cluster snapshot resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> createOrUpdateWithResponseAsync(String resourceGroupName, + String resourceName, ManagedClusterSnapshotInner parameters, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, contentType, accept, parameters, context); + } + + /** + * Creates or updates a managed cluster snapshot. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters The managed cluster snapshot to create or update. + * @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 managed cluster snapshot resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateAsync(String resourceGroupName, String resourceName, + ManagedClusterSnapshotInner parameters) { + return createOrUpdateWithResponseAsync(resourceGroupName, resourceName, parameters) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Creates or updates a managed cluster snapshot. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters The managed cluster snapshot to create or update. + * @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 a managed cluster snapshot resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response createOrUpdateWithResponse(String resourceGroupName, + String resourceName, ManagedClusterSnapshotInner parameters, Context context) { + return createOrUpdateWithResponseAsync(resourceGroupName, resourceName, parameters, context).block(); + } + + /** + * Creates or updates a managed cluster snapshot. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters The managed cluster snapshot to create or update. + * @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 managed cluster snapshot resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ManagedClusterSnapshotInner createOrUpdate(String resourceGroupName, String resourceName, + ManagedClusterSnapshotInner parameters) { + return createOrUpdateWithResponse(resourceGroupName, resourceName, parameters, Context.NONE).getValue(); + } + + /** + * Updates tags on a managed cluster snapshot. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters Parameters supplied to the Update managed cluster snapshot Tags 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 a managed cluster snapshot resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> updateTagsWithResponseAsync(String resourceGroupName, + String resourceName, TagsObject parameters) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.updateTags(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, contentType, accept, parameters, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Updates tags on a managed cluster snapshot. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters Parameters supplied to the Update managed cluster snapshot Tags operation. + * @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 a managed cluster snapshot resource along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> updateTagsWithResponseAsync(String resourceGroupName, + String resourceName, TagsObject parameters, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.updateTags(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, contentType, accept, parameters, context); + } + + /** + * Updates tags on a managed cluster snapshot. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters Parameters supplied to the Update managed cluster snapshot Tags 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 a managed cluster snapshot resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono updateTagsAsync(String resourceGroupName, String resourceName, + TagsObject parameters) { + return updateTagsWithResponseAsync(resourceGroupName, resourceName, parameters) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Updates tags on a managed cluster snapshot. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters Parameters supplied to the Update managed cluster snapshot Tags operation. + * @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 a managed cluster snapshot resource along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response updateTagsWithResponse(String resourceGroupName, String resourceName, + TagsObject parameters, Context context) { + return updateTagsWithResponseAsync(resourceGroupName, resourceName, parameters, context).block(); + } + + /** + * Updates tags on a managed cluster snapshot. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters Parameters supplied to the Update managed cluster snapshot Tags 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 a managed cluster snapshot resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ManagedClusterSnapshotInner updateTags(String resourceGroupName, String resourceName, + TagsObject parameters) { + return updateTagsWithResponse(resourceGroupName, resourceName, parameters, Context.NONE).getValue(); + } + + /** + * Deletes a managed cluster snapshot. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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) + public Mono> deleteWithResponseAsync(String resourceGroupName, String resourceName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes a managed cluster snapshot. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> deleteWithResponseAsync(String resourceGroupName, String resourceName, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, context); + } + + /** + * Deletes a managed cluster snapshot. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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) + public Mono deleteAsync(String resourceGroupName, String resourceName) { + return deleteWithResponseAsync(resourceGroupName, resourceName).flatMap(ignored -> Mono.empty()); + } + + /** + * Deletes a managed cluster snapshot. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response deleteWithResponse(String resourceGroupName, String resourceName, Context context) { + return deleteWithResponseAsync(resourceGroupName, resourceName, context).block(); + } + + /** + * Deletes a managed cluster snapshot. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 delete(String resourceGroupName, String resourceName) { + deleteWithResponse(resourceGroupName, resourceName, Context.NONE); + } + + /** + * Lists managed cluster snapshots in the specified subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @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 of a ManagedClusterSnapshot list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByResourceGroupSinglePageAsync(String resourceGroupName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Lists managed cluster snapshots in the specified subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ManagedClusterSnapshot list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listByResourceGroupSinglePageAsync(String resourceGroupName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Lists managed cluster snapshots in the specified subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @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 of a ManagedClusterSnapshot list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listByResourceGroupAsync(String resourceGroupName) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); + } + + /** + * Lists managed cluster snapshots in the specified subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ManagedClusterSnapshot list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByResourceGroupAsync(String resourceGroupName, Context context) { + return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName, context), + nextLink -> listByResourceGroupNextSinglePageAsync(nextLink, context)); + } + + /** + * Lists managed cluster snapshots in the specified subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @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 of a ManagedClusterSnapshot list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName)); + } + + /** + * Lists managed cluster snapshots in the specified subscription and resource group. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ManagedClusterSnapshot list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + return new PagedIterable<>(listByResourceGroupAsync(resourceGroupName, context)); + } + + /** + * Gets a list of managed cluster snapshots in the specified subscription. + * + * @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 list of managed cluster snapshots in the specified subscription along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync() { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets a list of managed cluster snapshots in the specified subscription. + * + * @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 a list of managed cluster snapshots in the specified subscription along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), accept, + context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Gets a list of managed cluster snapshots in the specified subscription. + * + * @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 list of managed cluster snapshots in the specified subscription as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync() { + return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Gets a list of managed cluster snapshots in the specified subscription. + * + * @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 a list of managed cluster snapshots in the specified subscription as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(context), + nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets a list of managed cluster snapshots in the specified subscription. + * + * @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 list of managed cluster snapshots in the specified subscription as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list() { + return new PagedIterable<>(listAsync()); + } + + /** + * Gets a list of managed cluster snapshots in the specified subscription. + * + * @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 a list of managed cluster snapshots in the specified subscription as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(Context context) { + return new PagedIterable<>(listAsync(context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a ManagedClusterSnapshot list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a ManagedClusterSnapshot list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByResourceGroupNextSinglePageAsync(String nextLink, + Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 list of managed cluster snapshots in the specified subscription along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 a list of managed cluster snapshots in the specified subscription along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedClustersClientImpl.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedClustersClientImpl.java index cd85ea20602b3..489f80f818192 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedClustersClientImpl.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedClustersClientImpl.java @@ -35,22 +35,29 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.containerservice.fluent.ManagedClustersClient; import com.azure.resourcemanager.containerservice.fluent.models.CredentialResultsInner; +import com.azure.resourcemanager.containerservice.fluent.models.GuardrailsAvailableVersionInner; import com.azure.resourcemanager.containerservice.fluent.models.KubernetesVersionListResultInner; import com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterAccessProfileInner; import com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterInner; import com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterUpgradeProfileInner; import com.azure.resourcemanager.containerservice.fluent.models.MeshRevisionProfileInner; import com.azure.resourcemanager.containerservice.fluent.models.MeshUpgradeProfileInner; +import com.azure.resourcemanager.containerservice.fluent.models.NodeImageVersionInner; import com.azure.resourcemanager.containerservice.fluent.models.OutboundEnvironmentEndpointInner; import com.azure.resourcemanager.containerservice.fluent.models.RunCommandResultInner; +import com.azure.resourcemanager.containerservice.fluent.models.SafeguardsAvailableVersionInner; +import com.azure.resourcemanager.containerservice.implementation.models.GuardrailsAvailableVersionsList; import com.azure.resourcemanager.containerservice.implementation.models.ManagedClusterListResult; import com.azure.resourcemanager.containerservice.implementation.models.MeshRevisionProfileList; import com.azure.resourcemanager.containerservice.implementation.models.MeshUpgradeProfileList; +import com.azure.resourcemanager.containerservice.implementation.models.NodeImageVersionsListResult; import com.azure.resourcemanager.containerservice.implementation.models.OutboundEnvironmentEndpointCollection; +import com.azure.resourcemanager.containerservice.implementation.models.SafeguardsAvailableVersionsList; import com.azure.resourcemanager.containerservice.models.Format; import com.azure.resourcemanager.containerservice.models.ManagedClusterAadProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterServicePrincipalProfile; import com.azure.resourcemanager.containerservice.models.ManagedClustersGetCommandResultResponse; +import com.azure.resourcemanager.containerservice.models.RebalanceLoadBalancersRequestBody; import com.azure.resourcemanager.containerservice.models.RunCommandRequest; import com.azure.resourcemanager.containerservice.models.TagsObject; import com.azure.resourcemanager.resources.fluentcore.collection.InnerSupportsDelete; @@ -129,7 +136,8 @@ Mono>> updateTags(@HostParam("endpoint") String endpoi Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, - @HeaderParam("if-match") String ifMatch, Context context); + @HeaderParam("if-match") String ifMatch, + @QueryParam("ignore-pod-disruption-budget") Boolean ignorePodDisruptionBudget, Context context); @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters") @@ -279,6 +287,16 @@ Mono> listOutboundNetworkDepende @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, @HeaderParam("Accept") String accept, Context context); + @Headers({ "Accept: application/json;q=0.9" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/rebalanceLoadBalancers") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> rebalanceLoadBalancers(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @HeaderParam("Content-Type") String contentType, + @BodyParam("application/json") RebalanceLoadBalancersRequestBody parameters, Context context); + @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/upgradeProfiles/default") @ExpectedResponses({ 200 }) @@ -288,6 +306,40 @@ Mono> getUpgradeProfile(@HostParam(" @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, @HeaderParam("Accept") String accept, Context context); + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/guardrailsVersions/{version}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getGuardrailsVersions(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @PathParam("version") String version, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/guardrailsVersions") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listGuardrailsVersions(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/safeguardsVersions/{version}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getSafeguardsVersions(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @PathParam("version") String version, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/safeguardsVersions") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listSafeguardsVersions(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); + @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/meshRevisionProfiles/{mode}") @ExpectedResponses({ 200 }) @@ -331,6 +383,14 @@ Mono> listKubernetesVersions(@HostPar @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/nodeImageVersions") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNodeImageVersions(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @@ -355,6 +415,22 @@ Mono> listOutboundNetworkDepende @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listGuardrailsVersionsNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listSafeguardsVersionsNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @@ -370,6 +446,14 @@ Mono> listMeshRevisionProfilesNext( Mono> listMeshUpgradeProfilesNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNodeImageVersionsNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); } /** @@ -1083,6 +1167,8 @@ public ManagedClusterInner updateTags(String resourceGroupName, String resourceN * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param ifMatch The request should only proceed if an entity matches this string. + * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without + * considering Pod Disruption Budget. * @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. @@ -1090,7 +1176,7 @@ public ManagedClusterInner updateTags(String resourceGroupName, String resourceN */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, - String ifMatch) { + String ifMatch, Boolean ignorePodDisruptionBudget) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1108,7 +1194,8 @@ public Mono>> deleteWithResponseAsync(String resourceG } return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, resourceName, ifMatch, context)) + this.client.getSubscriptionId(), resourceGroupName, resourceName, ifMatch, ignorePodDisruptionBudget, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1118,6 +1205,8 @@ public Mono>> deleteWithResponseAsync(String resourceG * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param ifMatch The request should only proceed if an entity matches this string. + * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without + * considering Pod Disruption Budget. * @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. @@ -1126,7 +1215,7 @@ public Mono>> deleteWithResponseAsync(String resourceG */ @ServiceMethod(returns = ReturnType.SINGLE) private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, - String ifMatch, Context context) { + String ifMatch, Boolean ignorePodDisruptionBudget, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -1144,7 +1233,7 @@ private Mono>> deleteWithResponseAsync(String resource } context = this.client.mergeContext(context); return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, resourceName, ifMatch, context); + resourceGroupName, resourceName, ifMatch, ignorePodDisruptionBudget, context); } /** @@ -1153,6 +1242,8 @@ private Mono>> deleteWithResponseAsync(String resource * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param ifMatch The request should only proceed if an entity matches this string. + * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without + * considering Pod Disruption Budget. * @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. @@ -1160,8 +1251,9 @@ private Mono>> deleteWithResponseAsync(String resource */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, - String ifMatch) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName, ifMatch); + String ifMatch, Boolean ignorePodDisruptionBudget) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, resourceName, ifMatch, ignorePodDisruptionBudget); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } @@ -1179,7 +1271,9 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName) { final String ifMatch = null; - Mono>> mono = deleteWithResponseAsync(resourceGroupName, resourceName, ifMatch); + final Boolean ignorePodDisruptionBudget = null; + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, resourceName, ifMatch, ignorePodDisruptionBudget); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } @@ -1190,6 +1284,8 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param ifMatch The request should only proceed if an entity matches this string. + * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without + * considering Pod Disruption Budget. * @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. @@ -1198,10 +1294,10 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, - String ifMatch, Context context) { + String ifMatch, Boolean ignorePodDisruptionBudget, Context context) { context = this.client.mergeContext(context); Mono>> mono - = deleteWithResponseAsync(resourceGroupName, resourceName, ifMatch, context); + = deleteWithResponseAsync(resourceGroupName, resourceName, ifMatch, ignorePodDisruptionBudget, context); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, context); } @@ -1219,7 +1315,9 @@ private PollerFlux, Void> beginDeleteAsync(String resourceGroup @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName) { final String ifMatch = null; - return this.beginDeleteAsync(resourceGroupName, resourceName, ifMatch).getSyncPoller(); + final Boolean ignorePodDisruptionBudget = null; + return this.beginDeleteAsync(resourceGroupName, resourceName, ifMatch, ignorePodDisruptionBudget) + .getSyncPoller(); } /** @@ -1228,6 +1326,8 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param ifMatch The request should only proceed if an entity matches this string. + * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without + * considering Pod Disruption Budget. * @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. @@ -1236,8 +1336,9 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) public SyncPoller, Void> beginDelete(String resourceGroupName, String resourceName, String ifMatch, - Context context) { - return this.beginDeleteAsync(resourceGroupName, resourceName, ifMatch, context).getSyncPoller(); + Boolean ignorePodDisruptionBudget, Context context) { + return this.beginDeleteAsync(resourceGroupName, resourceName, ifMatch, ignorePodDisruptionBudget, context) + .getSyncPoller(); } /** @@ -1246,14 +1347,17 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param ifMatch The request should only proceed if an entity matches this string. + * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without + * considering Pod Disruption Budget. * @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) - public Mono deleteAsync(String resourceGroupName, String resourceName, String ifMatch) { - return beginDeleteAsync(resourceGroupName, resourceName, ifMatch).last() + public Mono deleteAsync(String resourceGroupName, String resourceName, String ifMatch, + Boolean ignorePodDisruptionBudget) { + return beginDeleteAsync(resourceGroupName, resourceName, ifMatch, ignorePodDisruptionBudget).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1270,7 +1374,8 @@ public Mono deleteAsync(String resourceGroupName, String resourceName, Str @ServiceMethod(returns = ReturnType.SINGLE) public Mono deleteAsync(String resourceGroupName, String resourceName) { final String ifMatch = null; - return beginDeleteAsync(resourceGroupName, resourceName, ifMatch).last() + final Boolean ignorePodDisruptionBudget = null; + return beginDeleteAsync(resourceGroupName, resourceName, ifMatch, ignorePodDisruptionBudget).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1280,6 +1385,8 @@ public Mono deleteAsync(String resourceGroupName, String resourceName) { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param ifMatch The request should only proceed if an entity matches this string. + * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without + * considering Pod Disruption Budget. * @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. @@ -1287,8 +1394,9 @@ public Mono deleteAsync(String resourceGroupName, String resourceName) { * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono deleteAsync(String resourceGroupName, String resourceName, String ifMatch, Context context) { - return beginDeleteAsync(resourceGroupName, resourceName, ifMatch, context).last() + private Mono deleteAsync(String resourceGroupName, String resourceName, String ifMatch, + Boolean ignorePodDisruptionBudget, Context context) { + return beginDeleteAsync(resourceGroupName, resourceName, ifMatch, ignorePodDisruptionBudget, context).last() .flatMap(this.client::getLroFinalResultOrError); } @@ -1304,7 +1412,8 @@ private Mono deleteAsync(String resourceGroupName, String resourceName, St @ServiceMethod(returns = ReturnType.SINGLE) public void delete(String resourceGroupName, String resourceName) { final String ifMatch = null; - deleteAsync(resourceGroupName, resourceName, ifMatch).block(); + final Boolean ignorePodDisruptionBudget = null; + deleteAsync(resourceGroupName, resourceName, ifMatch, ignorePodDisruptionBudget).block(); } /** @@ -1313,14 +1422,17 @@ public void delete(String resourceGroupName, String resourceName) { * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. * @param ifMatch The request should only proceed if an entity matches this string. + * @param ignorePodDisruptionBudget ignore-pod-disruption-budget=true to delete those pods on a node without + * considering Pod Disruption Budget. * @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 delete(String resourceGroupName, String resourceName, String ifMatch, Context context) { - deleteAsync(resourceGroupName, resourceName, ifMatch, context).block(); + public void delete(String resourceGroupName, String resourceName, String ifMatch, Boolean ignorePodDisruptionBudget, + Context context) { + deleteAsync(resourceGroupName, resourceName, ifMatch, ignorePodDisruptionBudget, context).block(); } /** @@ -4381,19 +4493,20 @@ public RunCommandResultInner getCommandResult(String resourceGroupName, String r } /** - * Gets the upgrade profile of a managed cluster. + * Rebalance nodes across specific load balancers. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. + * @param parameters The names of the load balancers to be rebalanced. If set to empty, all load balancers will be + * rebalanced. * @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 upgrade profile of a managed cluster along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> - getUpgradeProfileWithResponseAsync(String resourceGroupName, String resourceName) { + public Mono>> rebalanceLoadBalancersWithResponseAsync(String resourceGroupName, + String resourceName, RebalanceLoadBalancersRequestBody parameters) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -4409,28 +4522,35 @@ public RunCommandResultInner getCommandResult(String resourceGroupName, String r if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String accept = "application/json"; + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String contentType = "application/json"; return FluxUtil - .withContext(context -> service.getUpgradeProfile(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context)) + .withContext( + context -> service.rebalanceLoadBalancers(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, contentType, parameters, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets the upgrade profile of a managed cluster. + * Rebalance nodes across specific load balancers. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. + * @param parameters The names of the load balancers to be rebalanced. If set to empty, all load balancers will be + * rebalanced. * @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 upgrade profile of a managed cluster along with {@link Response} on successful completion of - * {@link Mono}. + * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - getUpgradeProfileWithResponseAsync(String resourceGroupName, String resourceName, Context context) { + private Mono>> rebalanceLoadBalancersWithResponseAsync(String resourceGroupName, + String resourceName, RebalanceLoadBalancersRequestBody parameters, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -4446,80 +4566,187 @@ public RunCommandResultInner getCommandResult(String resourceGroupName, String r if (resourceName == null) { return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } - final String accept = "application/json"; + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String contentType = "application/json"; context = this.client.mergeContext(context); - return service.getUpgradeProfile(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context); + return service.rebalanceLoadBalancers(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, contentType, parameters, context); } /** - * Gets the upgrade profile of a managed cluster. + * Rebalance nodes across specific load balancers. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. + * @param parameters The names of the load balancers to be rebalanced. If set to empty, all load balancers will be + * rebalanced. * @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 upgrade profile of a managed cluster on successful completion of {@link Mono}. + * @return the {@link PollerFlux} for polling of long-running operation. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getUpgradeProfileAsync(String resourceGroupName, - String resourceName) { - return getUpgradeProfileWithResponseAsync(resourceGroupName, resourceName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, Void> beginRebalanceLoadBalancersAsync(String resourceGroupName, + String resourceName, RebalanceLoadBalancersRequestBody parameters) { + Mono>> mono + = rebalanceLoadBalancersWithResponseAsync(resourceGroupName, resourceName, parameters); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); } /** - * Gets the upgrade profile of a managed cluster. + * Rebalance nodes across specific load balancers. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. + * @param parameters The names of the load balancers to be rebalanced. If set to empty, all load balancers will be + * rebalanced. * @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 upgrade profile of a managed cluster along with {@link Response}. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginRebalanceLoadBalancersAsync(String resourceGroupName, + String resourceName, RebalanceLoadBalancersRequestBody parameters, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = rebalanceLoadBalancersWithResponseAsync(resourceGroupName, resourceName, parameters, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Rebalance nodes across specific load balancers. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters The names of the load balancers to be rebalanced. If set to empty, all load balancers will be + * rebalanced. + * @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> beginRebalanceLoadBalancers(String resourceGroupName, String resourceName, + RebalanceLoadBalancersRequestBody parameters) { + return this.beginRebalanceLoadBalancersAsync(resourceGroupName, resourceName, parameters).getSyncPoller(); + } + + /** + * Rebalance nodes across specific load balancers. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters The names of the load balancers to be rebalanced. If set to empty, all load balancers will be + * rebalanced. + * @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> beginRebalanceLoadBalancers(String resourceGroupName, String resourceName, + RebalanceLoadBalancersRequestBody parameters, Context context) { + return this.beginRebalanceLoadBalancersAsync(resourceGroupName, resourceName, parameters, context) + .getSyncPoller(); + } + + /** + * Rebalance nodes across specific load balancers. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters The names of the load balancers to be rebalanced. If set to empty, all load balancers will be + * rebalanced. + * @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) - public Response getUpgradeProfileWithResponse(String resourceGroupName, - String resourceName, Context context) { - return getUpgradeProfileWithResponseAsync(resourceGroupName, resourceName, context).block(); + public Mono rebalanceLoadBalancersAsync(String resourceGroupName, String resourceName, + RebalanceLoadBalancersRequestBody parameters) { + return beginRebalanceLoadBalancersAsync(resourceGroupName, resourceName, parameters).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Gets the upgrade profile of a managed cluster. + * Rebalance nodes across specific load balancers. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param resourceName The name of the managed cluster resource. + * @param parameters The names of the load balancers to be rebalanced. If set to empty, all load balancers will be + * rebalanced. + * @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 upgrade profile of a managed cluster. + * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - public ManagedClusterUpgradeProfileInner getUpgradeProfile(String resourceGroupName, String resourceName) { - return getUpgradeProfileWithResponse(resourceGroupName, resourceName, Context.NONE).getValue(); + private Mono rebalanceLoadBalancersAsync(String resourceGroupName, String resourceName, + RebalanceLoadBalancersRequestBody parameters, Context context) { + return beginRebalanceLoadBalancersAsync(resourceGroupName, resourceName, parameters, context).last() + .flatMap(this.client::getLroFinalResultOrError); } /** - * Gets a mesh revision profile for a specified mesh in the specified location. + * Rebalance nodes across specific load balancers. * - * Contains extra metadata on the revision, including supported revisions, cluster compatibility and available - * upgrades. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters The names of the load balancers to be rebalanced. If set to empty, all load balancers will be + * rebalanced. + * @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 rebalanceLoadBalancers(String resourceGroupName, String resourceName, + RebalanceLoadBalancersRequestBody parameters) { + rebalanceLoadBalancersAsync(resourceGroupName, resourceName, parameters).block(); + } + + /** + * Rebalance nodes across specific load balancers. * - * @param location The name of the Azure region. - * @param mode The mode of the mesh. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param parameters The names of the load balancers to be rebalanced. If set to empty, all load balancers will be + * rebalanced. + * @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 a mesh revision profile for a specified mesh in the specified location. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void rebalanceLoadBalancers(String resourceGroupName, String resourceName, + RebalanceLoadBalancersRequestBody parameters, Context context) { + rebalanceLoadBalancersAsync(resourceGroupName, resourceName, parameters, context).block(); + } + + /** + * Gets the upgrade profile of a managed cluster. * - * Contains extra metadata on the revision, including supported revisions, cluster compatibility and available - * upgrades along with {@link Response} on successful completion of {@link Mono}. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 upgrade profile of a managed cluster along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getMeshRevisionProfileWithResponseAsync(String location, - String mode) { + public Mono> + getUpgradeProfileWithResponseAsync(String resourceGroupName, String resourceName) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -4528,39 +4755,35 @@ public Mono> getMeshRevisionProfileWithRespon return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (mode == null) { - return Mono.error(new IllegalArgumentException("Parameter mode is required and cannot be null.")); + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.getMeshRevisionProfile(this.client.getEndpoint(), - this.client.getApiVersion(), this.client.getSubscriptionId(), location, mode, accept, context)) + .withContext(context -> service.getUpgradeProfile(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets a mesh revision profile for a specified mesh in the specified location. - * - * Contains extra metadata on the revision, including supported revisions, cluster compatibility and available - * upgrades. + * Gets the upgrade profile of a managed cluster. * - * @param location The name of the Azure region. - * @param mode The mode of the mesh. + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. * @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 a mesh revision profile for a specified mesh in the specified location. - * - * Contains extra metadata on the revision, including supported revisions, cluster compatibility and available - * upgrades along with {@link Response} on successful completion of {@link Mono}. + * @return the upgrade profile of a managed cluster along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getMeshRevisionProfileWithResponseAsync(String location, - String mode, Context context) { + private Mono> + getUpgradeProfileWithResponseAsync(String resourceGroupName, String resourceName, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -4569,23 +4792,743 @@ private Mono> getMeshRevisionProfileWithRespo return Mono.error(new IllegalArgumentException( "Parameter this.client.getSubscriptionId() is required and cannot be null.")); } - if (location == null) { - return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); } - if (mode == null) { - return Mono.error(new IllegalArgumentException("Parameter mode is required and cannot be null.")); + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.getMeshRevisionProfile(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), location, mode, accept, context); + return service.getUpgradeProfile(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context); } /** - * Gets a mesh revision profile for a specified mesh in the specified location. - * - * Contains extra metadata on the revision, including supported revisions, cluster compatibility and available - * upgrades. + * Gets the upgrade profile of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 upgrade profile of a managed cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getUpgradeProfileAsync(String resourceGroupName, + String resourceName) { + return getUpgradeProfileWithResponseAsync(resourceGroupName, resourceName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets the upgrade profile of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 upgrade profile of a managed cluster along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getUpgradeProfileWithResponse(String resourceGroupName, + String resourceName, Context context) { + return getUpgradeProfileWithResponseAsync(resourceGroupName, resourceName, context).block(); + } + + /** + * Gets the upgrade profile of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 upgrade profile of a managed cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ManagedClusterUpgradeProfileInner getUpgradeProfile(String resourceGroupName, String resourceName) { + return getUpgradeProfileWithResponse(resourceGroupName, resourceName, Context.NONE).getValue(); + } + + /** + * Gets supported Guardrails version in the specified subscription and location. + * + * Contains Guardrails version along with its support info and whether it is a default version. + * + * @param location The name of the Azure region. + * @param version Safeguards version. + * @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 supported Guardrails version in the specified subscription and location. + * + * Contains Guardrails version along with its support info and whether it is a default version along with + * {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getGuardrailsVersionsWithResponseAsync(String location, + String version) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + if (version == null) { + return Mono.error(new IllegalArgumentException("Parameter version is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.getGuardrailsVersions(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), location, version, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets supported Guardrails version in the specified subscription and location. + * + * Contains Guardrails version along with its support info and whether it is a default version. + * + * @param location The name of the Azure region. + * @param version Safeguards version. + * @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 supported Guardrails version in the specified subscription and location. + * + * Contains Guardrails version along with its support info and whether it is a default version along with + * {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getGuardrailsVersionsWithResponseAsync(String location, + String version, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + if (version == null) { + return Mono.error(new IllegalArgumentException("Parameter version is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getGuardrailsVersions(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, version, accept, context); + } + + /** + * Gets supported Guardrails version in the specified subscription and location. + * + * Contains Guardrails version along with its support info and whether it is a default version. + * + * @param location The name of the Azure region. + * @param version Safeguards version. + * @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 supported Guardrails version in the specified subscription and location. + * + * Contains Guardrails version along with its support info and whether it is a default version on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getGuardrailsVersionsAsync(String location, String version) { + return getGuardrailsVersionsWithResponseAsync(location, version) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets supported Guardrails version in the specified subscription and location. + * + * Contains Guardrails version along with its support info and whether it is a default version. + * + * @param location The name of the Azure region. + * @param version Safeguards version. + * @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 supported Guardrails version in the specified subscription and location. + * + * Contains Guardrails version along with its support info and whether it is a default version along with + * {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getGuardrailsVersionsWithResponse(String location, String version, + Context context) { + return getGuardrailsVersionsWithResponseAsync(location, version, context).block(); + } + + /** + * Gets supported Guardrails version in the specified subscription and location. + * + * Contains Guardrails version along with its support info and whether it is a default version. + * + * @param location The name of the Azure region. + * @param version Safeguards version. + * @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 supported Guardrails version in the specified subscription and location. + * + * Contains Guardrails version along with its support info and whether it is a default version. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public GuardrailsAvailableVersionInner getGuardrailsVersions(String location, String version) { + return getGuardrailsVersionsWithResponse(location, version, Context.NONE).getValue(); + } + + /** + * Gets a list of supported Guardrails versions in the specified subscription and location. + * + * Contains list of Guardrails version along with its support info and whether it is a default version. + * + * @param location The name of the Azure region. + * @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 list of supported Guardrails versions in the specified subscription and location. + * + * Contains list of Guardrails version along with its support info and whether it is a default version along with + * {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listGuardrailsVersionsSinglePageAsync(String location) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listGuardrailsVersions(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), location, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets a list of supported Guardrails versions in the specified subscription and location. + * + * Contains list of Guardrails version along with its support info and whether it is a default version. + * + * @param location The name of the Azure region. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of supported Guardrails versions in the specified subscription and location. + * + * Contains list of Guardrails version along with its support info and whether it is a default version along with + * {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listGuardrailsVersionsSinglePageAsync(String location, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listGuardrailsVersions(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Gets a list of supported Guardrails versions in the specified subscription and location. + * + * Contains list of Guardrails version along with its support info and whether it is a default version. + * + * @param location The name of the Azure region. + * @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 list of supported Guardrails versions in the specified subscription and location. + * + * Contains list of Guardrails version along with its support info and whether it is a default version as paginated + * response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listGuardrailsVersionsAsync(String location) { + return new PagedFlux<>(() -> listGuardrailsVersionsSinglePageAsync(location), + nextLink -> listGuardrailsVersionsNextSinglePageAsync(nextLink)); + } + + /** + * Gets a list of supported Guardrails versions in the specified subscription and location. + * + * Contains list of Guardrails version along with its support info and whether it is a default version. + * + * @param location The name of the Azure region. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of supported Guardrails versions in the specified subscription and location. + * + * Contains list of Guardrails version along with its support info and whether it is a default version as paginated + * response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listGuardrailsVersionsAsync(String location, Context context) { + return new PagedFlux<>(() -> listGuardrailsVersionsSinglePageAsync(location, context), + nextLink -> listGuardrailsVersionsNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets a list of supported Guardrails versions in the specified subscription and location. + * + * Contains list of Guardrails version along with its support info and whether it is a default version. + * + * @param location The name of the Azure region. + * @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 list of supported Guardrails versions in the specified subscription and location. + * + * Contains list of Guardrails version along with its support info and whether it is a default version as paginated + * response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listGuardrailsVersions(String location) { + return new PagedIterable<>(listGuardrailsVersionsAsync(location)); + } + + /** + * Gets a list of supported Guardrails versions in the specified subscription and location. + * + * Contains list of Guardrails version along with its support info and whether it is a default version. + * + * @param location The name of the Azure region. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of supported Guardrails versions in the specified subscription and location. + * + * Contains list of Guardrails version along with its support info and whether it is a default version as paginated + * response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listGuardrailsVersions(String location, Context context) { + return new PagedIterable<>(listGuardrailsVersionsAsync(location, context)); + } + + /** + * Gets supported Safeguards version in the specified subscription and location. + * + * Contains Safeguards version along with its support info and whether it is a default version. + * + * @param location The name of the Azure region. + * @param version Safeguards version. + * @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 supported Safeguards version in the specified subscription and location. + * + * Contains Safeguards version along with its support info and whether it is a default version along with + * {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getSafeguardsVersionsWithResponseAsync(String location, + String version) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + if (version == null) { + return Mono.error(new IllegalArgumentException("Parameter version is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.getSafeguardsVersions(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), location, version, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets supported Safeguards version in the specified subscription and location. + * + * Contains Safeguards version along with its support info and whether it is a default version. + * + * @param location The name of the Azure region. + * @param version Safeguards version. + * @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 supported Safeguards version in the specified subscription and location. + * + * Contains Safeguards version along with its support info and whether it is a default version along with + * {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getSafeguardsVersionsWithResponseAsync(String location, + String version, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + if (version == null) { + return Mono.error(new IllegalArgumentException("Parameter version is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getSafeguardsVersions(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, version, accept, context); + } + + /** + * Gets supported Safeguards version in the specified subscription and location. + * + * Contains Safeguards version along with its support info and whether it is a default version. + * + * @param location The name of the Azure region. + * @param version Safeguards version. + * @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 supported Safeguards version in the specified subscription and location. + * + * Contains Safeguards version along with its support info and whether it is a default version on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getSafeguardsVersionsAsync(String location, String version) { + return getSafeguardsVersionsWithResponseAsync(location, version) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets supported Safeguards version in the specified subscription and location. + * + * Contains Safeguards version along with its support info and whether it is a default version. + * + * @param location The name of the Azure region. + * @param version Safeguards version. + * @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 supported Safeguards version in the specified subscription and location. + * + * Contains Safeguards version along with its support info and whether it is a default version along with + * {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getSafeguardsVersionsWithResponse(String location, String version, + Context context) { + return getSafeguardsVersionsWithResponseAsync(location, version, context).block(); + } + + /** + * Gets supported Safeguards version in the specified subscription and location. + * + * Contains Safeguards version along with its support info and whether it is a default version. + * + * @param location The name of the Azure region. + * @param version Safeguards version. + * @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 supported Safeguards version in the specified subscription and location. + * + * Contains Safeguards version along with its support info and whether it is a default version. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public SafeguardsAvailableVersionInner getSafeguardsVersions(String location, String version) { + return getSafeguardsVersionsWithResponse(location, version, Context.NONE).getValue(); + } + + /** + * Gets a list of supported Safeguards versions in the specified subscription and location. + * + * Contains list of Safeguards version along with its support info and whether it is a default version. + * + * @param location The name of the Azure region. + * @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 list of supported Safeguards versions in the specified subscription and location. + * + * Contains list of Safeguards version along with its support info and whether it is a default version along with + * {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listSafeguardsVersionsSinglePageAsync(String location) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listSafeguardsVersions(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), location, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets a list of supported Safeguards versions in the specified subscription and location. + * + * Contains list of Safeguards version along with its support info and whether it is a default version. + * + * @param location The name of the Azure region. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of supported Safeguards versions in the specified subscription and location. + * + * Contains list of Safeguards version along with its support info and whether it is a default version along with + * {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSafeguardsVersionsSinglePageAsync(String location, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listSafeguardsVersions(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Gets a list of supported Safeguards versions in the specified subscription and location. + * + * Contains list of Safeguards version along with its support info and whether it is a default version. + * + * @param location The name of the Azure region. + * @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 list of supported Safeguards versions in the specified subscription and location. + * + * Contains list of Safeguards version along with its support info and whether it is a default version as paginated + * response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listSafeguardsVersionsAsync(String location) { + return new PagedFlux<>(() -> listSafeguardsVersionsSinglePageAsync(location), + nextLink -> listSafeguardsVersionsNextSinglePageAsync(nextLink)); + } + + /** + * Gets a list of supported Safeguards versions in the specified subscription and location. + * + * Contains list of Safeguards version along with its support info and whether it is a default version. + * + * @param location The name of the Azure region. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of supported Safeguards versions in the specified subscription and location. + * + * Contains list of Safeguards version along with its support info and whether it is a default version as paginated + * response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listSafeguardsVersionsAsync(String location, Context context) { + return new PagedFlux<>(() -> listSafeguardsVersionsSinglePageAsync(location, context), + nextLink -> listSafeguardsVersionsNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets a list of supported Safeguards versions in the specified subscription and location. + * + * Contains list of Safeguards version along with its support info and whether it is a default version. + * + * @param location The name of the Azure region. + * @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 list of supported Safeguards versions in the specified subscription and location. + * + * Contains list of Safeguards version along with its support info and whether it is a default version as paginated + * response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listSafeguardsVersions(String location) { + return new PagedIterable<>(listSafeguardsVersionsAsync(location)); + } + + /** + * Gets a list of supported Safeguards versions in the specified subscription and location. + * + * Contains list of Safeguards version along with its support info and whether it is a default version. + * + * @param location The name of the Azure region. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of supported Safeguards versions in the specified subscription and location. + * + * Contains list of Safeguards version along with its support info and whether it is a default version as paginated + * response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listSafeguardsVersions(String location, Context context) { + return new PagedIterable<>(listSafeguardsVersionsAsync(location, context)); + } + + /** + * Gets a mesh revision profile for a specified mesh in the specified location. + * + * Contains extra metadata on the revision, including supported revisions, cluster compatibility and available + * upgrades. + * + * @param location The name of the Azure region. + * @param mode The mode of the mesh. + * @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 mesh revision profile for a specified mesh in the specified location. + * + * Contains extra metadata on the revision, including supported revisions, cluster compatibility and available + * upgrades along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getMeshRevisionProfileWithResponseAsync(String location, + String mode) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + if (mode == null) { + return Mono.error(new IllegalArgumentException("Parameter mode is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.getMeshRevisionProfile(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), location, mode, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets a mesh revision profile for a specified mesh in the specified location. + * + * Contains extra metadata on the revision, including supported revisions, cluster compatibility and available + * upgrades. + * + * @param location The name of the Azure region. + * @param mode The mode of the mesh. + * @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 a mesh revision profile for a specified mesh in the specified location. + * + * Contains extra metadata on the revision, including supported revisions, cluster compatibility and available + * upgrades along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getMeshRevisionProfileWithResponseAsync(String location, + String mode, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + if (mode == null) { + return Mono.error(new IllegalArgumentException("Parameter mode is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getMeshRevisionProfile(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, mode, accept, context); + } + + /** + * Gets a mesh revision profile for a specified mesh in the specified location. + * + * Contains extra metadata on the revision, including supported revisions, cluster compatibility and available + * upgrades. * * @param location The name of the Azure region. * @param mode The mode of the mesh. @@ -5053,20 +5996,133 @@ public PagedIterable listMeshUpgradeProfiles(String res } /** - * Lists available upgrades for all service meshes in a specific cluster. + * Lists available upgrades for all service meshes in a specific cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 holds an array of MeshUpgradeProfiles as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listMeshUpgradeProfiles(String resourceGroupName, String resourceName, + Context context) { + return new PagedIterable<>(listMeshUpgradeProfilesAsync(resourceGroupName, resourceName, context)); + } + + /** + * Gets a list of supported Kubernetes versions in the specified subscription. + * + * Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and + * details on preview status of the version. + * + * @param location The name of the Azure region. + * @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 list of supported Kubernetes versions in the specified subscription. + * + * Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and + * details on preview status of the version along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listKubernetesVersionsWithResponseAsync(String location) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listKubernetesVersions(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), location, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets a list of supported Kubernetes versions in the specified subscription. + * + * Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and + * details on preview status of the version. + * + * @param location The name of the Azure region. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of supported Kubernetes versions in the specified subscription. + * + * Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and + * details on preview status of the version along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listKubernetesVersionsWithResponseAsync(String location, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listKubernetesVersions(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, accept, context); + } + + /** + * Gets a list of supported Kubernetes versions in the specified subscription. + * + * Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and + * details on preview status of the version. + * + * @param location The name of the Azure region. + * @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 list of supported Kubernetes versions in the specified subscription. + * + * Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and + * details on preview status of the version on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono listKubernetesVersionsAsync(String location) { + return listKubernetesVersionsWithResponseAsync(location).flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets a list of supported Kubernetes versions in the specified subscription. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param resourceName The name of the managed cluster resource. + * Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and + * details on preview status of the version. + * + * @param location The name of the Azure region. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return holds an array of MeshUpgradeProfiles as paginated response with {@link PagedIterable}. + * @return a list of supported Kubernetes versions in the specified subscription. + * + * Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and + * details on preview status of the version along with {@link Response}. */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listMeshUpgradeProfiles(String resourceGroupName, String resourceName, + @ServiceMethod(returns = ReturnType.SINGLE) + public Response listKubernetesVersionsWithResponse(String location, Context context) { - return new PagedIterable<>(listMeshUpgradeProfilesAsync(resourceGroupName, resourceName, context)); + return listKubernetesVersionsWithResponseAsync(location, context).block(); } /** @@ -5082,10 +6138,31 @@ public PagedIterable listMeshUpgradeProfiles(String res * @return a list of supported Kubernetes versions in the specified subscription. * * Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and - * details on preview status of the version along with {@link Response} on successful completion of {@link Mono}. + * details on preview status of the version. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> listKubernetesVersionsWithResponseAsync(String location) { + public KubernetesVersionListResultInner listKubernetesVersions(String location) { + return listKubernetesVersionsWithResponse(location, Context.NONE).getValue(); + } + + /** + * Gets a list of supported NodeImage versions in the specified subscription. + * + * Only returns the latest version of each node image. For example there may be an + * AKSUbuntu-1804gen2containerd-2024.01.26, but only AKSUbuntu-1804gen2containerd-2024.02.02 is visible in this + * list. + * + * @param location The name of the Azure region. + * @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 list of supported NodeImage versions in the specified subscription. + * + * Only returns the latest version of each node image along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNodeImageVersionsSinglePageAsync(String location) { if (this.client.getEndpoint() == null) { return Mono.error( new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); @@ -5099,29 +6176,32 @@ public Mono> listKubernetesVersionsWi } final String accept = "application/json"; return FluxUtil - .withContext(context -> service.listKubernetesVersions(this.client.getEndpoint(), + .withContext(context -> service.listNodeImageVersions(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), location, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets a list of supported Kubernetes versions in the specified subscription. + * Gets a list of supported NodeImage versions in the specified subscription. * - * Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and - * details on preview status of the version. + * Only returns the latest version of each node image. For example there may be an + * AKSUbuntu-1804gen2containerd-2024.01.26, but only AKSUbuntu-1804gen2containerd-2024.02.02 is visible in this + * list. * * @param location The name of the Azure region. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of supported Kubernetes versions in the specified subscription. + * @return a list of supported NodeImage versions in the specified subscription. * - * Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and - * details on preview status of the version along with {@link Response} on successful completion of {@link Mono}. + * Only returns the latest version of each node image along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listKubernetesVersionsWithResponseAsync(String location, + private Mono> listNodeImageVersionsSinglePageAsync(String location, Context context) { if (this.client.getEndpoint() == null) { return Mono.error( @@ -5136,70 +6216,95 @@ private Mono> listKubernetesVersionsW } final String accept = "application/json"; context = this.client.mergeContext(context); - return service.listKubernetesVersions(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), location, accept, context); + return service + .listNodeImageVersions(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); } /** - * Gets a list of supported Kubernetes versions in the specified subscription. + * Gets a list of supported NodeImage versions in the specified subscription. * - * Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and - * details on preview status of the version. + * Only returns the latest version of each node image. For example there may be an + * AKSUbuntu-1804gen2containerd-2024.01.26, but only AKSUbuntu-1804gen2containerd-2024.02.02 is visible in this + * list. * * @param location The name of the Azure region. * @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 list of supported Kubernetes versions in the specified subscription. + * @return a list of supported NodeImage versions in the specified subscription. * - * Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and - * details on preview status of the version on successful completion of {@link Mono}. + * Only returns the latest version of each node image as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono listKubernetesVersionsAsync(String location) { - return listKubernetesVersionsWithResponseAsync(location).flatMap(res -> Mono.justOrEmpty(res.getValue())); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listNodeImageVersionsAsync(String location) { + return new PagedFlux<>(() -> listNodeImageVersionsSinglePageAsync(location), + nextLink -> listNodeImageVersionsNextSinglePageAsync(nextLink)); } /** - * Gets a list of supported Kubernetes versions in the specified subscription. + * Gets a list of supported NodeImage versions in the specified subscription. * - * Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and - * details on preview status of the version. + * Only returns the latest version of each node image. For example there may be an + * AKSUbuntu-1804gen2containerd-2024.01.26, but only AKSUbuntu-1804gen2containerd-2024.02.02 is visible in this + * list. * * @param location The name of the Azure region. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a list of supported Kubernetes versions in the specified subscription. + * @return a list of supported NodeImage versions in the specified subscription. * - * Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and - * details on preview status of the version along with {@link Response}. + * Only returns the latest version of each node image as paginated response with {@link PagedFlux}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response listKubernetesVersionsWithResponse(String location, - Context context) { - return listKubernetesVersionsWithResponseAsync(location, context).block(); + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listNodeImageVersionsAsync(String location, Context context) { + return new PagedFlux<>(() -> listNodeImageVersionsSinglePageAsync(location, context), + nextLink -> listNodeImageVersionsNextSinglePageAsync(nextLink, context)); } /** - * Gets a list of supported Kubernetes versions in the specified subscription. + * Gets a list of supported NodeImage versions in the specified subscription. * - * Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and - * details on preview status of the version. + * Only returns the latest version of each node image. For example there may be an + * AKSUbuntu-1804gen2containerd-2024.01.26, but only AKSUbuntu-1804gen2containerd-2024.02.02 is visible in this + * list. * * @param location The name of the Azure region. * @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 list of supported Kubernetes versions in the specified subscription. + * @return a list of supported NodeImage versions in the specified subscription. * - * Contains extra metadata on the version, including supported patch versions, capabilities, available upgrades, and - * details on preview status of the version. + * Only returns the latest version of each node image as paginated response with {@link PagedIterable}. */ - @ServiceMethod(returns = ReturnType.SINGLE) - public KubernetesVersionListResultInner listKubernetesVersions(String location) { - return listKubernetesVersionsWithResponse(location, Context.NONE).getValue(); + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listNodeImageVersions(String location) { + return new PagedIterable<>(listNodeImageVersionsAsync(location)); + } + + /** + * Gets a list of supported NodeImage versions in the specified subscription. + * + * Only returns the latest version of each node image. For example there may be an + * AKSUbuntu-1804gen2containerd-2024.01.26, but only AKSUbuntu-1804gen2containerd-2024.02.02 is visible in this + * list. + * + * @param location The name of the Azure region. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a list of supported NodeImage versions in the specified subscription. + * + * Only returns the latest version of each node image as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listNodeImageVersions(String location, Context context) { + return new PagedIterable<>(listNodeImageVersionsAsync(location, context)); } /** @@ -5381,6 +6486,136 @@ private Mono> listNextSinglePageAsync(String res.getValue().value(), res.getValue().nextLink(), null)); } + /** + * Gets a list of supported Guardrails versions in the specified subscription and location. + * + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 list of supported Guardrails versions in the specified subscription and location. + * + * Contains list of Guardrails version along with its support info and whether it is a default version along with + * {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listGuardrailsVersionsNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listGuardrailsVersionsNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets a list of supported Guardrails versions in the specified subscription and location. + * + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 a list of supported Guardrails versions in the specified subscription and location. + * + * Contains list of Guardrails version along with its support info and whether it is a default version along with + * {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listGuardrailsVersionsNextSinglePageAsync(String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listGuardrailsVersionsNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Gets a list of supported Safeguards versions in the specified subscription and location. + * + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 list of supported Safeguards versions in the specified subscription and location. + * + * Contains list of Safeguards version along with its support info and whether it is a default version along with + * {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listSafeguardsVersionsNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listSafeguardsVersionsNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets a list of supported Safeguards versions in the specified subscription and location. + * + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 a list of supported Safeguards versions in the specified subscription and location. + * + * Contains list of Safeguards version along with its support info and whether it is a default version along with + * {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listSafeguardsVersionsNextSinglePageAsync(String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listSafeguardsVersionsNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + /** * Lists mesh revision profiles for all meshes in the specified location. * @@ -5496,4 +6731,68 @@ private Mono> listMeshUpgradeProfilesNext .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)); } + + /** + * Gets a list of supported NodeImage versions in the specified subscription. + * + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 list of supported NodeImage versions in the specified subscription. + * + * Only returns the latest version of each node image along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNodeImageVersionsNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listNodeImageVersionsNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets a list of supported NodeImage versions in the specified subscription. + * + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 a list of supported NodeImage versions in the specified subscription. + * + * Only returns the latest version of each node image along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNodeImageVersionsNextSinglePageAsync(String nextLink, + Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listNodeImageVersionsNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MeshMembershipsClientImpl.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MeshMembershipsClientImpl.java new file mode 100644 index 0000000000000..49a4f5a67f1dc --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/MeshMembershipsClientImpl.java @@ -0,0 +1,937 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.containerservice.fluent.MeshMembershipsClient; +import com.azure.resourcemanager.containerservice.fluent.models.MeshMembershipInner; +import com.azure.resourcemanager.containerservice.implementation.models.MeshMembershipsListResult; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in MeshMembershipsClient. + */ +public final class MeshMembershipsClientImpl implements MeshMembershipsClient { + /** + * The proxy service used to perform REST calls. + */ + private final MeshMembershipsService service; + + /** + * The service client containing this operation class. + */ + private final ContainerServiceManagementClientImpl client; + + /** + * Initializes an instance of MeshMembershipsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + MeshMembershipsClientImpl(ContainerServiceManagementClientImpl client) { + this.service + = RestProxy.create(MeshMembershipsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for ContainerServiceManagementClientMeshMemberships to be used by the + * proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "ContainerServiceManagementClientMeshMemberships") + public interface MeshMembershipsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/meshMemberships/{meshMembershipName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("meshMembershipName") String meshMembershipName, @HeaderParam("Accept") String accept, + Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/meshMemberships/{meshMembershipName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("meshMembershipName") String meshMembershipName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") MeshMembershipInner parameters, + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/meshMemberships/{meshMembershipName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("meshMembershipName") String meshMembershipName, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/meshMemberships") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByManagedCluster(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByManagedClusterNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Gets the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @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 mesh membership of a managed cluster along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getWithResponseAsync(String resourceGroupName, String resourceName, + String meshMembershipName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (meshMembershipName == null) { + return Mono + .error(new IllegalArgumentException("Parameter meshMembershipName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, meshMembershipName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @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 mesh membership of a managed cluster along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, + String meshMembershipName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (meshMembershipName == null) { + return Mono + .error(new IllegalArgumentException("Parameter meshMembershipName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, meshMembershipName, accept, context); + } + + /** + * Gets the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @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 mesh membership of a managed cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, String resourceName, + String meshMembershipName) { + return getWithResponseAsync(resourceGroupName, resourceName, meshMembershipName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @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 mesh membership of a managed cluster along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String resourceName, + String meshMembershipName, Context context) { + return getWithResponseAsync(resourceGroupName, resourceName, meshMembershipName, context).block(); + } + + /** + * Gets the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @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 mesh membership of a managed cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public MeshMembershipInner get(String resourceGroupName, String resourceName, String meshMembershipName) { + return getWithResponse(resourceGroupName, resourceName, meshMembershipName, Context.NONE).getValue(); + } + + /** + * Creates or updates the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @param parameters The mesh membership to create or update. + * @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 mesh membership of a managed cluster along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String resourceName, String meshMembershipName, MeshMembershipInner parameters) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (meshMembershipName == null) { + return Mono + .error(new IllegalArgumentException("Parameter meshMembershipName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, meshMembershipName, contentType, + accept, parameters, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Creates or updates the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @param parameters The mesh membership to create or update. + * @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 mesh membership of a managed cluster along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, + String resourceName, String meshMembershipName, MeshMembershipInner parameters, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (meshMembershipName == null) { + return Mono + .error(new IllegalArgumentException("Parameter meshMembershipName is required and cannot be null.")); + } + if (parameters == null) { + return Mono.error(new IllegalArgumentException("Parameter parameters is required and cannot be null.")); + } else { + parameters.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, meshMembershipName, contentType, accept, + parameters, context); + } + + /** + * Creates or updates the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @param parameters The mesh membership to create or update. + * @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 mesh membership of a managed cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, MeshMembershipInner> beginCreateOrUpdateAsync( + String resourceGroupName, String resourceName, String meshMembershipName, MeshMembershipInner parameters) { + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, meshMembershipName, parameters); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + MeshMembershipInner.class, MeshMembershipInner.class, this.client.getContext()); + } + + /** + * Creates or updates the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @param parameters The mesh membership to create or update. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of mesh membership of a managed cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, MeshMembershipInner> beginCreateOrUpdateAsync( + String resourceGroupName, String resourceName, String meshMembershipName, MeshMembershipInner parameters, + Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = createOrUpdateWithResponseAsync(resourceGroupName, resourceName, meshMembershipName, parameters, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + MeshMembershipInner.class, MeshMembershipInner.class, context); + } + + /** + * Creates or updates the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @param parameters The mesh membership to create or update. + * @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 mesh membership of a managed cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, MeshMembershipInner> beginCreateOrUpdate( + String resourceGroupName, String resourceName, String meshMembershipName, MeshMembershipInner parameters) { + return this.beginCreateOrUpdateAsync(resourceGroupName, resourceName, meshMembershipName, parameters) + .getSyncPoller(); + } + + /** + * Creates or updates the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @param parameters The mesh membership to create or update. + * @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 mesh membership of a managed cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, MeshMembershipInner> beginCreateOrUpdate( + String resourceGroupName, String resourceName, String meshMembershipName, MeshMembershipInner parameters, + Context context) { + return this.beginCreateOrUpdateAsync(resourceGroupName, resourceName, meshMembershipName, parameters, context) + .getSyncPoller(); + } + + /** + * Creates or updates the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @param parameters The mesh membership to create or update. + * @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 mesh membership of a managed cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrUpdateAsync(String resourceGroupName, String resourceName, + String meshMembershipName, MeshMembershipInner parameters) { + return beginCreateOrUpdateAsync(resourceGroupName, resourceName, meshMembershipName, parameters).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates or updates the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @param parameters The mesh membership to create or update. + * @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 mesh membership of a managed cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono createOrUpdateAsync(String resourceGroupName, String resourceName, + String meshMembershipName, MeshMembershipInner parameters, Context context) { + return beginCreateOrUpdateAsync(resourceGroupName, resourceName, meshMembershipName, parameters, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates or updates the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @param parameters The mesh membership to create or update. + * @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 mesh membership of a managed cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public MeshMembershipInner createOrUpdate(String resourceGroupName, String resourceName, String meshMembershipName, + MeshMembershipInner parameters) { + return createOrUpdateAsync(resourceGroupName, resourceName, meshMembershipName, parameters).block(); + } + + /** + * Creates or updates the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @param parameters The mesh membership to create or update. + * @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 mesh membership of a managed cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public MeshMembershipInner createOrUpdate(String resourceGroupName, String resourceName, String meshMembershipName, + MeshMembershipInner parameters, Context context) { + return createOrUpdateAsync(resourceGroupName, resourceName, meshMembershipName, parameters, context).block(); + } + + /** + * Deletes the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @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) + public Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, + String meshMembershipName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (meshMembershipName == null) { + return Mono + .error(new IllegalArgumentException("Parameter meshMembershipName is required and cannot be null.")); + } + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, meshMembershipName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @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 Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> deleteWithResponseAsync(String resourceGroupName, String resourceName, + String meshMembershipName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (meshMembershipName == null) { + return Mono + .error(new IllegalArgumentException("Parameter meshMembershipName is required and cannot be null.")); + } + context = this.client.mergeContext(context); + return service.delete(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, meshMembershipName, context); + } + + /** + * Deletes the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @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) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, + String meshMembershipName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, resourceName, meshMembershipName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String resourceName, + String meshMembershipName, Context context) { + context = this.client.mergeContext(context); + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, resourceName, meshMembershipName, context); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + context); + } + + /** + * Deletes the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @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> beginDelete(String resourceGroupName, String resourceName, + String meshMembershipName) { + return this.beginDeleteAsync(resourceGroupName, resourceName, meshMembershipName).getSyncPoller(); + } + + /** + * Deletes the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @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> beginDelete(String resourceGroupName, String resourceName, + String meshMembershipName, Context context) { + return this.beginDeleteAsync(resourceGroupName, resourceName, meshMembershipName, context).getSyncPoller(); + } + + /** + * Deletes the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @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) + public Mono deleteAsync(String resourceGroupName, String resourceName, String meshMembershipName) { + return beginDeleteAsync(resourceGroupName, resourceName, meshMembershipName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @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 A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono deleteAsync(String resourceGroupName, String resourceName, String meshMembershipName, + Context context) { + return beginDeleteAsync(resourceGroupName, resourceName, meshMembershipName, context).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @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 delete(String resourceGroupName, String resourceName, String meshMembershipName) { + deleteAsync(resourceGroupName, resourceName, meshMembershipName).block(); + } + + /** + * Deletes the mesh membership of a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param meshMembershipName The name of the mesh membership. + * @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 delete(String resourceGroupName, String resourceName, String meshMembershipName, Context context) { + deleteAsync(resourceGroupName, resourceName, meshMembershipName, context).block(); + } + + /** + * Lists mesh memberships in a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 result of a request to list mesh memberships in a managed cluster along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByManagedClusterSinglePageAsync(String resourceGroupName, + String resourceName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByManagedCluster(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Lists mesh memberships in a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 result of a request to list mesh memberships in a managed cluster along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByManagedClusterSinglePageAsync(String resourceGroupName, + String resourceName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByManagedCluster(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Lists mesh memberships in a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 result of a request to list mesh memberships in a managed cluster as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listByManagedClusterAsync(String resourceGroupName, String resourceName) { + return new PagedFlux<>(() -> listByManagedClusterSinglePageAsync(resourceGroupName, resourceName), + nextLink -> listByManagedClusterNextSinglePageAsync(nextLink)); + } + + /** + * Lists mesh memberships in a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 result of a request to list mesh memberships in a managed cluster as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByManagedClusterAsync(String resourceGroupName, String resourceName, + Context context) { + return new PagedFlux<>(() -> listByManagedClusterSinglePageAsync(resourceGroupName, resourceName, context), + nextLink -> listByManagedClusterNextSinglePageAsync(nextLink, context)); + } + + /** + * Lists mesh memberships in a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 result of a request to list mesh memberships in a managed cluster as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByManagedCluster(String resourceGroupName, String resourceName) { + return new PagedIterable<>(listByManagedClusterAsync(resourceGroupName, resourceName)); + } + + /** + * Lists mesh memberships in a managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 result of a request to list mesh memberships in a managed cluster as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByManagedCluster(String resourceGroupName, String resourceName, + Context context) { + return new PagedIterable<>(listByManagedClusterAsync(resourceGroupName, resourceName, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 result of a request to list mesh memberships in a managed cluster along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByManagedClusterNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext( + context -> service.listByManagedClusterNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 result of a request to list mesh memberships in a managed cluster along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByManagedClusterNextSinglePageAsync(String nextLink, + Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listByManagedClusterNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/OperationStatusResultsClientImpl.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/OperationStatusResultsClientImpl.java new file mode 100644 index 0000000000000..80002ee58217b --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/OperationStatusResultsClientImpl.java @@ -0,0 +1,838 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.implementation; + +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.resourcemanager.containerservice.fluent.OperationStatusResultsClient; +import com.azure.resourcemanager.containerservice.fluent.models.OperationStatusResultInner; +import com.azure.resourcemanager.containerservice.implementation.models.OperationStatusResultList; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in OperationStatusResultsClient. + */ +public final class OperationStatusResultsClientImpl implements OperationStatusResultsClient { + /** + * The proxy service used to perform REST calls. + */ + private final OperationStatusResultsService service; + + /** + * The service client containing this operation class. + */ + private final ContainerServiceManagementClientImpl client; + + /** + * Initializes an instance of OperationStatusResultsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + OperationStatusResultsClientImpl(ContainerServiceManagementClientImpl client) { + this.service = RestProxy.create(OperationStatusResultsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for ContainerServiceManagementClientOperationStatusResults to be used by + * the proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "ContainerServiceManagementClientOperationStatusResults") + public interface OperationStatusResultsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/operations") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByAgentPool(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("agentPoolName") String agentPoolName, @QueryParam("activeOnly") Boolean activeOnly, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/agentPools/{agentPoolName}/operations/{operationId}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> getByAgentPool(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("agentPoolName") String agentPoolName, @PathParam("operationId") String operationId, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/operations") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/operations/{operationId}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("operationId") String operationId, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listByAgentPoolNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Gets a list of operations in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param activeOnly If true, only return operations that are currently active (not terminal). + * @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 list of operations in the specified agent pool along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByAgentPoolSinglePageAsync(String resourceGroupName, + String resourceName, String agentPoolName, Boolean activeOnly) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (agentPoolName == null) { + return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByAgentPool(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, agentPoolName, activeOnly, accept, + context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets a list of operations in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param activeOnly If true, only return operations that are currently active (not terminal). + * @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 a list of operations in the specified agent pool along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByAgentPoolSinglePageAsync(String resourceGroupName, + String resourceName, String agentPoolName, Boolean activeOnly, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (agentPoolName == null) { + return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .listByAgentPool(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, agentPoolName, activeOnly, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Gets a list of operations in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param activeOnly If true, only return operations that are currently active (not terminal). + * @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 list of operations in the specified agent pool as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listByAgentPoolAsync(String resourceGroupName, String resourceName, + String agentPoolName, Boolean activeOnly) { + return new PagedFlux<>( + () -> listByAgentPoolSinglePageAsync(resourceGroupName, resourceName, agentPoolName, activeOnly), + nextLink -> listByAgentPoolNextSinglePageAsync(nextLink)); + } + + /** + * Gets a list of operations in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @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 list of operations in the specified agent pool as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listByAgentPoolAsync(String resourceGroupName, String resourceName, + String agentPoolName) { + final Boolean activeOnly = null; + return new PagedFlux<>( + () -> listByAgentPoolSinglePageAsync(resourceGroupName, resourceName, agentPoolName, activeOnly), + nextLink -> listByAgentPoolNextSinglePageAsync(nextLink)); + } + + /** + * Gets a list of operations in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param activeOnly If true, only return operations that are currently active (not terminal). + * @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 a list of operations in the specified agent pool as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listByAgentPoolAsync(String resourceGroupName, String resourceName, + String agentPoolName, Boolean activeOnly, Context context) { + return new PagedFlux<>( + () -> listByAgentPoolSinglePageAsync(resourceGroupName, resourceName, agentPoolName, activeOnly, context), + nextLink -> listByAgentPoolNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets a list of operations in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @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 list of operations in the specified agent pool as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByAgentPool(String resourceGroupName, String resourceName, + String agentPoolName) { + final Boolean activeOnly = null; + return new PagedIterable<>(listByAgentPoolAsync(resourceGroupName, resourceName, agentPoolName, activeOnly)); + } + + /** + * Gets a list of operations in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param activeOnly If true, only return operations that are currently active (not terminal). + * @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 a list of operations in the specified agent pool as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listByAgentPool(String resourceGroupName, String resourceName, + String agentPoolName, Boolean activeOnly, Context context) { + return new PagedIterable<>( + listByAgentPoolAsync(resourceGroupName, resourceName, agentPoolName, activeOnly, context)); + } + + /** + * Get the status of a specific operation in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param operationId The ID of an ongoing async 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 a specific operation in the specified agent pool along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getByAgentPoolWithResponseAsync(String resourceGroupName, + String resourceName, String agentPoolName, String operationId) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (agentPoolName == null) { + return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); + } + if (operationId == null) { + return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.getByAgentPool(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, agentPoolName, operationId, accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the status of a specific operation in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param operationId The ID of an ongoing async operation. + * @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 a specific operation in the specified agent pool along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getByAgentPoolWithResponseAsync(String resourceGroupName, + String resourceName, String agentPoolName, String operationId, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (agentPoolName == null) { + return Mono.error(new IllegalArgumentException("Parameter agentPoolName is required and cannot be null.")); + } + if (operationId == null) { + return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.getByAgentPool(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, agentPoolName, operationId, accept, + context); + } + + /** + * Get the status of a specific operation in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param operationId The ID of an ongoing async 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 a specific operation in the specified agent pool on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getByAgentPoolAsync(String resourceGroupName, String resourceName, + String agentPoolName, String operationId) { + return getByAgentPoolWithResponseAsync(resourceGroupName, resourceName, agentPoolName, operationId) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Get the status of a specific operation in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param operationId The ID of an ongoing async operation. + * @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 a specific operation in the specified agent pool along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getByAgentPoolWithResponse(String resourceGroupName, + String resourceName, String agentPoolName, String operationId, Context context) { + return getByAgentPoolWithResponseAsync(resourceGroupName, resourceName, agentPoolName, operationId, context) + .block(); + } + + /** + * Get the status of a specific operation in the specified agent pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param agentPoolName The name of the agent pool. + * @param operationId The ID of an ongoing async 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 a specific operation in the specified agent pool. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public OperationStatusResultInner getByAgentPool(String resourceGroupName, String resourceName, + String agentPoolName, String operationId) { + return getByAgentPoolWithResponse(resourceGroupName, resourceName, agentPoolName, operationId, Context.NONE) + .getValue(); + } + + /** + * Gets a list of operations in the specified managedCluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 list of operations in the specified managedCluster along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String resourceName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets a list of operations in the specified managedCluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 a list of operations in the specified managedCluster along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String resourceName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Gets a list of operations in the specified managedCluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 list of operations in the specified managedCluster as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String resourceName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Gets a list of operations in the specified managedCluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 a list of operations in the specified managedCluster as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String resourceName, + Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets a list of operations in the specified managedCluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 list of operations in the specified managedCluster as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String resourceName) { + return new PagedIterable<>(listAsync(resourceGroupName, resourceName)); + } + + /** + * Gets a list of operations in the specified managedCluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 a list of operations in the specified managedCluster as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String resourceName, + Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, resourceName, context)); + } + + /** + * Get the status of a specific operation in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param operationId The ID of an ongoing async 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 a specific operation in the specified managed cluster along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getWithResponseAsync(String resourceGroupName, + String resourceName, String operationId) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (operationId == null) { + return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, operationId, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the status of a specific operation in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param operationId The ID of an ongoing async operation. + * @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 a specific operation in the specified managed cluster along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, + String resourceName, String operationId, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (operationId == null) { + return Mono.error(new IllegalArgumentException("Parameter operationId is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, operationId, accept, context); + } + + /** + * Get the status of a specific operation in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param operationId The ID of an ongoing async 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 a specific operation in the specified managed cluster on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, String resourceName, + String operationId) { + return getWithResponseAsync(resourceGroupName, resourceName, operationId) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Get the status of a specific operation in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param operationId The ID of an ongoing async operation. + * @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 a specific operation in the specified managed cluster along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String resourceName, + String operationId, Context context) { + return getWithResponseAsync(resourceGroupName, resourceName, operationId, context).block(); + } + + /** + * Get the status of a specific operation in the specified managed cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param operationId The ID of an ongoing async 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 a specific operation in the specified managed cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public OperationStatusResultInner get(String resourceGroupName, String resourceName, String operationId) { + return getWithResponse(resourceGroupName, resourceName, operationId, Context.NONE).getValue(); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 list of operations in the specified agent pool along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByAgentPoolNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listByAgentPoolNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 a list of operations in the specified agent pool along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listByAgentPoolNextSinglePageAsync(String nextLink, + Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listByAgentPoolNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 list of operations in the specified managedCluster along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 a list of operations in the specified managedCluster along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/UpgradeInsightsClientImpl.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/UpgradeInsightsClientImpl.java new file mode 100644 index 0000000000000..cf8feb5ff41cc --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/UpgradeInsightsClientImpl.java @@ -0,0 +1,656 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Post; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.resourcemanager.containerservice.fluent.UpgradeInsightsClient; +import com.azure.resourcemanager.containerservice.fluent.models.UpgradeInsightInner; +import com.azure.resourcemanager.containerservice.implementation.models.UpgradeInsightListResult; +import com.azure.resourcemanager.containerservice.models.GenerateUpgradeInsightsContent; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in UpgradeInsightsClient. + */ +public final class UpgradeInsightsClientImpl implements UpgradeInsightsClient { + /** + * The proxy service used to perform REST calls. + */ + private final UpgradeInsightsService service; + + /** + * The service client containing this operation class. + */ + private final ContainerServiceManagementClientImpl client; + + /** + * Initializes an instance of UpgradeInsightsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + UpgradeInsightsClientImpl(ContainerServiceManagementClientImpl client) { + this.service + = RestProxy.create(UpgradeInsightsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for ContainerServiceManagementClientUpgradeInsights to be used by the + * proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "ContainerServiceManagementClientUpgradeInsights") + public interface UpgradeInsightsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/upgradeInsights/{upgradeInsightName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @PathParam("upgradeInsightName") String upgradeInsightName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/upgradeInsights") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @HeaderParam("Accept") String accept, Context context); + + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.ContainerService/managedClusters/{resourceName}/generateUpgradeInsights") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> generate(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("resourceName") String resourceName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") GenerateUpgradeInsightsContent body, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Gets a stored upgrade insight for the managed cluster by its server-generated name. + * This is a read-only operation: it returns the most recently generated readiness + * evaluation for that scope from the data store, including the detected + * upgrade-blocking issues and contextual upgrade information. It does not regenerate + * the evaluation. If no non-expired evaluation exists for the name, it returns 404. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param upgradeInsightName The name of the UpgradeInsight. + * @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 stored upgrade insight for the managed cluster by its server-generated name. + * This is a read-only operation: it returns the most recently generated readiness + * evaluation for that scope from the data store, including the detected + * upgrade-blocking issues and contextual upgrade information along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getWithResponseAsync(String resourceGroupName, String resourceName, + String upgradeInsightName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (upgradeInsightName == null) { + return Mono + .error(new IllegalArgumentException("Parameter upgradeInsightName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, upgradeInsightName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets a stored upgrade insight for the managed cluster by its server-generated name. + * This is a read-only operation: it returns the most recently generated readiness + * evaluation for that scope from the data store, including the detected + * upgrade-blocking issues and contextual upgrade information. It does not regenerate + * the evaluation. If no non-expired evaluation exists for the name, it returns 404. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param upgradeInsightName The name of the UpgradeInsight. + * @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 a stored upgrade insight for the managed cluster by its server-generated name. + * This is a read-only operation: it returns the most recently generated readiness + * evaluation for that scope from the data store, including the detected + * upgrade-blocking issues and contextual upgrade information along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, String resourceName, + String upgradeInsightName, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (upgradeInsightName == null) { + return Mono + .error(new IllegalArgumentException("Parameter upgradeInsightName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.get(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, upgradeInsightName, accept, context); + } + + /** + * Gets a stored upgrade insight for the managed cluster by its server-generated name. + * This is a read-only operation: it returns the most recently generated readiness + * evaluation for that scope from the data store, including the detected + * upgrade-blocking issues and contextual upgrade information. It does not regenerate + * the evaluation. If no non-expired evaluation exists for the name, it returns 404. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param upgradeInsightName The name of the UpgradeInsight. + * @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 stored upgrade insight for the managed cluster by its server-generated name. + * This is a read-only operation: it returns the most recently generated readiness + * evaluation for that scope from the data store, including the detected + * upgrade-blocking issues and contextual upgrade information on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, String resourceName, + String upgradeInsightName) { + return getWithResponseAsync(resourceGroupName, resourceName, upgradeInsightName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets a stored upgrade insight for the managed cluster by its server-generated name. + * This is a read-only operation: it returns the most recently generated readiness + * evaluation for that scope from the data store, including the detected + * upgrade-blocking issues and contextual upgrade information. It does not regenerate + * the evaluation. If no non-expired evaluation exists for the name, it returns 404. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param upgradeInsightName The name of the UpgradeInsight. + * @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 a stored upgrade insight for the managed cluster by its server-generated name. + * This is a read-only operation: it returns the most recently generated readiness + * evaluation for that scope from the data store, including the detected + * upgrade-blocking issues and contextual upgrade information along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String resourceName, + String upgradeInsightName, Context context) { + return getWithResponseAsync(resourceGroupName, resourceName, upgradeInsightName, context).block(); + } + + /** + * Gets a stored upgrade insight for the managed cluster by its server-generated name. + * This is a read-only operation: it returns the most recently generated readiness + * evaluation for that scope from the data store, including the detected + * upgrade-blocking issues and contextual upgrade information. It does not regenerate + * the evaluation. If no non-expired evaluation exists for the name, it returns 404. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param upgradeInsightName The name of the UpgradeInsight. + * @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 stored upgrade insight for the managed cluster by its server-generated name. + * This is a read-only operation: it returns the most recently generated readiness + * evaluation for that scope from the data store, including the detected + * upgrade-blocking issues and contextual upgrade information. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public UpgradeInsightInner get(String resourceGroupName, String resourceName, String upgradeInsightName) { + return getWithResponse(resourceGroupName, resourceName, upgradeInsightName, Context.NONE).getValue(); + } + + /** + * Lists the stored upgrade insights for the specified managed cluster, one entry per + * scope that has been generated and not yet expired. This is a read-only operation and + * does not regenerate any evaluation. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 of a UpgradeInsight list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String resourceName) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Lists the stored upgrade insights for the specified managed cluster, one entry per + * scope that has been generated and not yet expired. This is a read-only operation and + * does not regenerate any evaluation. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 of a UpgradeInsight list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, String resourceName, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Lists the stored upgrade insights for the specified managed cluster, one entry per + * scope that has been generated and not yet expired. This is a read-only operation and + * does not regenerate any evaluation. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 of a UpgradeInsight list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String resourceName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Lists the stored upgrade insights for the specified managed cluster, one entry per + * scope that has been generated and not yet expired. This is a read-only operation and + * does not regenerate any evaluation. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 of a UpgradeInsight list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String resourceGroupName, String resourceName, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, resourceName, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * Lists the stored upgrade insights for the specified managed cluster, one entry per + * scope that has been generated and not yet expired. This is a read-only operation and + * does not regenerate any evaluation. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 of a UpgradeInsight list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String resourceName) { + return new PagedIterable<>(listAsync(resourceGroupName, resourceName)); + } + + /** + * Lists the stored upgrade insights for the specified managed cluster, one entry per + * scope that has been generated and not yet expired. This is a read-only operation and + * does not regenerate any evaluation. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @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 of a UpgradeInsight list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String resourceName, Context context) { + return new PagedIterable<>(listAsync(resourceGroupName, resourceName, context)); + } + + /** + * Generates (or refreshes) an upgrade readiness evaluation for the managed cluster. + * The requested scope and target version(s) are supplied in the request body; the + * server runs the readiness checks — the control plane Kubernetes version upgrade, a + * single agent pool Kubernetes version upgrade, a single agent pool node OS image + * upgrade, or the combined control plane and agent pools upgrade — persists the result + * as an UpgradeInsight resource with a server-generated name, and returns that + * resource. The response body is identical to a subsequent GET of the resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param body The content of the action request. + * @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 an upgrade insight for a managed cluster: an on-demand readiness evaluation for an + * upgrade scope, produced by the generateUpgradeInsights action on the managed cluster + * and addressable by a server-generated name along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> generateWithResponseAsync(String resourceGroupName, String resourceName, + GenerateUpgradeInsightsContent body) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (body == null) { + return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); + } else { + body.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.generate(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, resourceName, contentType, accept, body, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Generates (or refreshes) an upgrade readiness evaluation for the managed cluster. + * The requested scope and target version(s) are supplied in the request body; the + * server runs the readiness checks — the control plane Kubernetes version upgrade, a + * single agent pool Kubernetes version upgrade, a single agent pool node OS image + * upgrade, or the combined control plane and agent pools upgrade — persists the result + * as an UpgradeInsight resource with a server-generated name, and returns that + * resource. The response body is identical to a subsequent GET of the resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an upgrade insight for a managed cluster: an on-demand readiness evaluation for an + * upgrade scope, produced by the generateUpgradeInsights action on the managed cluster + * and addressable by a server-generated name along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> generateWithResponseAsync(String resourceGroupName, String resourceName, + GenerateUpgradeInsightsContent body, Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (resourceGroupName == null) { + return Mono + .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); + } + if (resourceName == null) { + return Mono.error(new IllegalArgumentException("Parameter resourceName is required and cannot be null.")); + } + if (body == null) { + return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); + } else { + body.validate(); + } + final String contentType = "application/json"; + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.generate(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, resourceName, contentType, accept, body, context); + } + + /** + * Generates (or refreshes) an upgrade readiness evaluation for the managed cluster. + * The requested scope and target version(s) are supplied in the request body; the + * server runs the readiness checks — the control plane Kubernetes version upgrade, a + * single agent pool Kubernetes version upgrade, a single agent pool node OS image + * upgrade, or the combined control plane and agent pools upgrade — persists the result + * as an UpgradeInsight resource with a server-generated name, and returns that + * resource. The response body is identical to a subsequent GET of the resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param body The content of the action request. + * @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 an upgrade insight for a managed cluster: an on-demand readiness evaluation for an + * upgrade scope, produced by the generateUpgradeInsights action on the managed cluster + * and addressable by a server-generated name on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono generateAsync(String resourceGroupName, String resourceName, + GenerateUpgradeInsightsContent body) { + return generateWithResponseAsync(resourceGroupName, resourceName, body) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Generates (or refreshes) an upgrade readiness evaluation for the managed cluster. + * The requested scope and target version(s) are supplied in the request body; the + * server runs the readiness checks — the control plane Kubernetes version upgrade, a + * single agent pool Kubernetes version upgrade, a single agent pool node OS image + * upgrade, or the combined control plane and agent pools upgrade — persists the result + * as an UpgradeInsight resource with a server-generated name, and returns that + * resource. The response body is identical to a subsequent GET of the resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return an upgrade insight for a managed cluster: an on-demand readiness evaluation for an + * upgrade scope, produced by the generateUpgradeInsights action on the managed cluster + * and addressable by a server-generated name along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response generateWithResponse(String resourceGroupName, String resourceName, + GenerateUpgradeInsightsContent body, Context context) { + return generateWithResponseAsync(resourceGroupName, resourceName, body, context).block(); + } + + /** + * Generates (or refreshes) an upgrade readiness evaluation for the managed cluster. + * The requested scope and target version(s) are supplied in the request body; the + * server runs the readiness checks — the control plane Kubernetes version upgrade, a + * single agent pool Kubernetes version upgrade, a single agent pool node OS image + * upgrade, or the combined control plane and agent pools upgrade — persists the result + * as an UpgradeInsight resource with a server-generated name, and returns that + * resource. The response body is identical to a subsequent GET of the resource. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param resourceName The name of the managed cluster resource. + * @param body The content of the action request. + * @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 an upgrade insight for a managed cluster: an on-demand readiness evaluation for an + * upgrade scope, produced by the generateUpgradeInsights action on the managed cluster + * and addressable by a server-generated name. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public UpgradeInsightInner generate(String resourceGroupName, String resourceName, + GenerateUpgradeInsightsContent body) { + return generateWithResponse(resourceGroupName, resourceName, body, Context.NONE).getValue(); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a UpgradeInsight list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a UpgradeInsight list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/VmSkusClientImpl.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/VmSkusClientImpl.java new file mode 100644 index 0000000000000..16cc1f0d42508 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/VmSkusClientImpl.java @@ -0,0 +1,331 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.implementation; + +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.resourcemanager.containerservice.fluent.VmSkusClient; +import com.azure.resourcemanager.containerservice.fluent.models.ResourceSkuInner; +import com.azure.resourcemanager.containerservice.implementation.models.VmSkusListResult; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in VmSkusClient. + */ +public final class VmSkusClientImpl implements VmSkusClient { + /** + * The proxy service used to perform REST calls. + */ + private final VmSkusService service; + + /** + * The service client containing this operation class. + */ + private final ContainerServiceManagementClientImpl client; + + /** + * Initializes an instance of VmSkusClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + VmSkusClientImpl(ContainerServiceManagementClientImpl client) { + this.service = RestProxy.create(VmSkusService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for ContainerServiceManagementClientVmSkus to be used by the proxy + * service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "ContainerServiceManagementClientVmSkus") + public interface VmSkusService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.ContainerService/locations/{location}/vmSkus") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, + @QueryParam("includeExtendedLocations") Boolean includeExtendedLocations, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); + } + + /** + * Gets the list of VM SKUs accepted by AKS. + * + * Gets the list of VM SKUs accepted by AKS when creating node pools in a specified location. AKS will perform a + * best effort approach to provision the requested VM SKUs, but availability is not guaranteed. + * + * @param location The name of the Azure region. + * @param includeExtendedLocations To Include Extended Locations information or not in the response. + * @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 list of VM SKUs accepted by AKS. + * + * Gets the list of VM SKUs accepted by AKS when creating node pools in a specified location along with + * {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String location, + Boolean includeExtendedLocations) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, includeExtendedLocations, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the list of VM SKUs accepted by AKS. + * + * Gets the list of VM SKUs accepted by AKS when creating node pools in a specified location. AKS will perform a + * best effort approach to provision the requested VM SKUs, but availability is not guaranteed. + * + * @param location The name of the Azure region. + * @param includeExtendedLocations To Include Extended Locations information or not in the response. + * @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 list of VM SKUs accepted by AKS. + * + * Gets the list of VM SKUs accepted by AKS when creating node pools in a specified location along with + * {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String location, Boolean includeExtendedLocations, + Context context) { + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + if (this.client.getSubscriptionId() == null) { + return Mono.error(new IllegalArgumentException( + "Parameter this.client.getSubscriptionId() is required and cannot be null.")); + } + if (location == null) { + return Mono.error(new IllegalArgumentException("Parameter location is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service + .list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), location, + includeExtendedLocations, accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } + + /** + * Gets the list of VM SKUs accepted by AKS. + * + * Gets the list of VM SKUs accepted by AKS when creating node pools in a specified location. AKS will perform a + * best effort approach to provision the requested VM SKUs, but availability is not guaranteed. + * + * @param location The name of the Azure region. + * @param includeExtendedLocations To Include Extended Locations information or not in the response. + * @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 list of VM SKUs accepted by AKS. + * + * Gets the list of VM SKUs accepted by AKS when creating node pools in a specified location as paginated response + * with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String location, Boolean includeExtendedLocations) { + return new PagedFlux<>(() -> listSinglePageAsync(location, includeExtendedLocations), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Gets the list of VM SKUs accepted by AKS. + * + * Gets the list of VM SKUs accepted by AKS when creating node pools in a specified location. AKS will perform a + * best effort approach to provision the requested VM SKUs, but availability is not guaranteed. + * + * @param location The name of the Azure region. + * @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 list of VM SKUs accepted by AKS. + * + * Gets the list of VM SKUs accepted by AKS when creating node pools in a specified location as paginated response + * with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String location) { + final Boolean includeExtendedLocations = null; + return new PagedFlux<>(() -> listSinglePageAsync(location, includeExtendedLocations), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Gets the list of VM SKUs accepted by AKS. + * + * Gets the list of VM SKUs accepted by AKS when creating node pools in a specified location. AKS will perform a + * best effort approach to provision the requested VM SKUs, but availability is not guaranteed. + * + * @param location The name of the Azure region. + * @param includeExtendedLocations To Include Extended Locations information or not in the response. + * @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 list of VM SKUs accepted by AKS. + * + * Gets the list of VM SKUs accepted by AKS when creating node pools in a specified location as paginated response + * with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + private PagedFlux listAsync(String location, Boolean includeExtendedLocations, Context context) { + return new PagedFlux<>(() -> listSinglePageAsync(location, includeExtendedLocations, context), + nextLink -> listNextSinglePageAsync(nextLink, context)); + } + + /** + * Gets the list of VM SKUs accepted by AKS. + * + * Gets the list of VM SKUs accepted by AKS when creating node pools in a specified location. AKS will perform a + * best effort approach to provision the requested VM SKUs, but availability is not guaranteed. + * + * @param location The name of the Azure region. + * @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 list of VM SKUs accepted by AKS. + * + * Gets the list of VM SKUs accepted by AKS when creating node pools in a specified location as paginated response + * with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String location) { + final Boolean includeExtendedLocations = null; + return new PagedIterable<>(listAsync(location, includeExtendedLocations)); + } + + /** + * Gets the list of VM SKUs accepted by AKS. + * + * Gets the list of VM SKUs accepted by AKS when creating node pools in a specified location. AKS will perform a + * best effort approach to provision the requested VM SKUs, but availability is not guaranteed. + * + * @param location The name of the Azure region. + * @param includeExtendedLocations To Include Extended Locations information or not in the response. + * @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 list of VM SKUs accepted by AKS. + * + * Gets the list of VM SKUs accepted by AKS when creating node pools in a specified location as paginated response + * with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String location, Boolean includeExtendedLocations, Context context) { + return new PagedIterable<>(listAsync(location, includeExtendedLocations, context)); + } + + /** + * Gets the list of VM SKUs accepted by AKS. + * + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 list of VM SKUs accepted by AKS. + * + * Gets the list of VM SKUs accepted by AKS when creating node pools in a specified location along with + * {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the list of VM SKUs accepted by AKS. + * + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 list of VM SKUs accepted by AKS. + * + * Gets the list of VM SKUs accepted by AKS when creating node pools in a specified location along with + * {@link PagedResponse} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink, Context context) { + if (nextLink == null) { + return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); + } + if (this.client.getEndpoint() == null) { + return Mono.error( + new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); + } + final String accept = "application/json"; + context = this.client.mergeContext(context); + return service.listNext(nextLink, this.client.getEndpoint(), accept, context) + .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), + res.getValue().value(), res.getValue().nextLink(), null)); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/AgentFabricMembershipsListResult.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/AgentFabricMembershipsListResult.java new file mode 100644 index 0000000000000..ac9d893033806 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/AgentFabricMembershipsListResult.java @@ -0,0 +1,115 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.containerservice.fluent.models.AgentFabricMembershipInner; +import java.io.IOException; +import java.util.List; + +/** + * The result of a request to list the AgentFabric memberships of a managed cluster. + */ +@Immutable +public final class AgentFabricMembershipsListResult implements JsonSerializable { + /* + * The list of AgentFabric memberships. + */ + private List value; + + /* + * The URL to get the next set of AgentFabric membership results. + */ + private String nextLink; + + /** + * Creates an instance of AgentFabricMembershipsListResult class. + */ + private AgentFabricMembershipsListResult() { + } + + /** + * Get the value property: The list of AgentFabric memberships. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The URL to get the next set of AgentFabric membership results. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model AgentFabricMembershipsListResult")); + } else { + value().forEach(e -> e.validate()); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(AgentFabricMembershipsListResult.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AgentFabricMembershipsListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AgentFabricMembershipsListResult 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 AgentFabricMembershipsListResult. + */ + public static AgentFabricMembershipsListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AgentFabricMembershipsListResult deserializedAgentFabricMembershipsListResult + = new AgentFabricMembershipsListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> AgentFabricMembershipInner.fromJson(reader1)); + deserializedAgentFabricMembershipsListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedAgentFabricMembershipsListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedAgentFabricMembershipsListResult; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/AlertConfigurationListResult.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/AlertConfigurationListResult.java new file mode 100644 index 0000000000000..026f4931f48fa --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/AlertConfigurationListResult.java @@ -0,0 +1,114 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.containerservice.fluent.models.AlertConfigurationInner; +import java.io.IOException; +import java.util.List; + +/** + * The response of a AlertConfiguration list operation. + */ +@Immutable +public final class AlertConfigurationListResult implements JsonSerializable { + /* + * The AlertConfiguration items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of AlertConfigurationListResult class. + */ + private AlertConfigurationListResult() { + } + + /** + * Get the value property: The AlertConfiguration items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model AlertConfigurationListResult")); + } else { + value().forEach(e -> e.validate()); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(AlertConfigurationListResult.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AlertConfigurationListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AlertConfigurationListResult 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 AlertConfigurationListResult. + */ + public static AlertConfigurationListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AlertConfigurationListResult deserializedAlertConfigurationListResult = new AlertConfigurationListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> AlertConfigurationInner.fromJson(reader1)); + deserializedAlertConfigurationListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedAlertConfigurationListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedAlertConfigurationListResult; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/GuardrailsAvailableVersionsList.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/GuardrailsAvailableVersionsList.java new file mode 100644 index 0000000000000..67284e0048577 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/GuardrailsAvailableVersionsList.java @@ -0,0 +1,115 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.containerservice.fluent.models.GuardrailsAvailableVersionInner; +import java.io.IOException; +import java.util.List; + +/** + * Hold values properties, which is array of GuardrailsVersions. + */ +@Immutable +public final class GuardrailsAvailableVersionsList implements JsonSerializable { + /* + * The GuardrailsAvailableVersion items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of GuardrailsAvailableVersionsList class. + */ + private GuardrailsAvailableVersionsList() { + } + + /** + * Get the value property: The GuardrailsAvailableVersion items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model GuardrailsAvailableVersionsList")); + } else { + value().forEach(e -> e.validate()); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(GuardrailsAvailableVersionsList.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of GuardrailsAvailableVersionsList from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of GuardrailsAvailableVersionsList 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 GuardrailsAvailableVersionsList. + */ + public static GuardrailsAvailableVersionsList fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + GuardrailsAvailableVersionsList deserializedGuardrailsAvailableVersionsList + = new GuardrailsAvailableVersionsList(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> GuardrailsAvailableVersionInner.fromJson(reader1)); + deserializedGuardrailsAvailableVersionsList.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedGuardrailsAvailableVersionsList.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedGuardrailsAvailableVersionsList; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/JWTAuthenticatorListResult.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/JWTAuthenticatorListResult.java new file mode 100644 index 0000000000000..accd2113e84ef --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/JWTAuthenticatorListResult.java @@ -0,0 +1,114 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.containerservice.fluent.models.JWTAuthenticatorInner; +import java.io.IOException; +import java.util.List; + +/** + * The response of a JWTAuthenticator list operation. + */ +@Immutable +public final class JWTAuthenticatorListResult implements JsonSerializable { + /* + * The JWTAuthenticator items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of JWTAuthenticatorListResult class. + */ + private JWTAuthenticatorListResult() { + } + + /** + * Get the value property: The JWTAuthenticator items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model JWTAuthenticatorListResult")); + } else { + value().forEach(e -> e.validate()); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(JWTAuthenticatorListResult.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of JWTAuthenticatorListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of JWTAuthenticatorListResult 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 JWTAuthenticatorListResult. + */ + public static JWTAuthenticatorListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + JWTAuthenticatorListResult deserializedJWTAuthenticatorListResult = new JWTAuthenticatorListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> JWTAuthenticatorInner.fromJson(reader1)); + deserializedJWTAuthenticatorListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedJWTAuthenticatorListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedJWTAuthenticatorListResult; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/LoadBalancerListResult.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/LoadBalancerListResult.java new file mode 100644 index 0000000000000..b430434b4774b --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/LoadBalancerListResult.java @@ -0,0 +1,112 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.containerservice.fluent.models.LoadBalancerInner; +import java.io.IOException; +import java.util.List; + +/** + * The response of a LoadBalancer list operation. + */ +@Immutable +public final class LoadBalancerListResult implements JsonSerializable { + /* + * The LoadBalancer items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of LoadBalancerListResult class. + */ + private LoadBalancerListResult() { + } + + /** + * Get the value property: The LoadBalancer items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model LoadBalancerListResult")); + } else { + value().forEach(e -> e.validate()); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(LoadBalancerListResult.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of LoadBalancerListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of LoadBalancerListResult 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 LoadBalancerListResult. + */ + public static LoadBalancerListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + LoadBalancerListResult deserializedLoadBalancerListResult = new LoadBalancerListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> LoadBalancerInner.fromJson(reader1)); + deserializedLoadBalancerListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedLoadBalancerListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedLoadBalancerListResult; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/MaintenanceWindowResourceListResult.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/MaintenanceWindowResourceListResult.java new file mode 100644 index 0000000000000..c50d31505227d --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/MaintenanceWindowResourceListResult.java @@ -0,0 +1,116 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.containerservice.fluent.models.MaintenanceWindowResourceInner; +import java.io.IOException; +import java.util.List; + +/** + * The response of a MaintenanceWindowResource list operation. + */ +@Immutable +public final class MaintenanceWindowResourceListResult + implements JsonSerializable { + /* + * The MaintenanceWindowResource items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of MaintenanceWindowResourceListResult class. + */ + private MaintenanceWindowResourceListResult() { + } + + /** + * Get the value property: The MaintenanceWindowResource items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model MaintenanceWindowResourceListResult")); + } else { + value().forEach(e -> e.validate()); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(MaintenanceWindowResourceListResult.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MaintenanceWindowResourceListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MaintenanceWindowResourceListResult 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 MaintenanceWindowResourceListResult. + */ + public static MaintenanceWindowResourceListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MaintenanceWindowResourceListResult deserializedMaintenanceWindowResourceListResult + = new MaintenanceWindowResourceListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> MaintenanceWindowResourceInner.fromJson(reader1)); + deserializedMaintenanceWindowResourceListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedMaintenanceWindowResourceListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedMaintenanceWindowResourceListResult; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/ManagedClusterSnapshotListResult.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/ManagedClusterSnapshotListResult.java new file mode 100644 index 0000000000000..dfb3d9174e491 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/ManagedClusterSnapshotListResult.java @@ -0,0 +1,115 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterSnapshotInner; +import java.io.IOException; +import java.util.List; + +/** + * The response of a ManagedClusterSnapshot list operation. + */ +@Immutable +public final class ManagedClusterSnapshotListResult implements JsonSerializable { + /* + * The ManagedClusterSnapshot items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of ManagedClusterSnapshotListResult class. + */ + private ManagedClusterSnapshotListResult() { + } + + /** + * Get the value property: The ManagedClusterSnapshot items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model ManagedClusterSnapshotListResult")); + } else { + value().forEach(e -> e.validate()); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(ManagedClusterSnapshotListResult.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ManagedClusterSnapshotListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ManagedClusterSnapshotListResult 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 ManagedClusterSnapshotListResult. + */ + public static ManagedClusterSnapshotListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ManagedClusterSnapshotListResult deserializedManagedClusterSnapshotListResult + = new ManagedClusterSnapshotListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> ManagedClusterSnapshotInner.fromJson(reader1)); + deserializedManagedClusterSnapshotListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedManagedClusterSnapshotListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedManagedClusterSnapshotListResult; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/MeshMembershipsListResult.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/MeshMembershipsListResult.java new file mode 100644 index 0000000000000..b2a16df0fdf61 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/MeshMembershipsListResult.java @@ -0,0 +1,114 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.containerservice.fluent.models.MeshMembershipInner; +import java.io.IOException; +import java.util.List; + +/** + * The result of a request to list mesh memberships in a managed cluster. + */ +@Immutable +public final class MeshMembershipsListResult implements JsonSerializable { + /* + * The list of mesh memberships. + */ + private List value; + + /* + * The URL to get the next set of mesh membership results. + */ + private String nextLink; + + /** + * Creates an instance of MeshMembershipsListResult class. + */ + private MeshMembershipsListResult() { + } + + /** + * Get the value property: The list of mesh memberships. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The URL to get the next set of mesh membership results. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() == null) { + throw LOGGER.atError() + .log( + new IllegalArgumentException("Missing required property value in model MeshMembershipsListResult")); + } else { + value().forEach(e -> e.validate()); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(MeshMembershipsListResult.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MeshMembershipsListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MeshMembershipsListResult 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 MeshMembershipsListResult. + */ + public static MeshMembershipsListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MeshMembershipsListResult deserializedMeshMembershipsListResult = new MeshMembershipsListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> MeshMembershipInner.fromJson(reader1)); + deserializedMeshMembershipsListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedMeshMembershipsListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedMeshMembershipsListResult; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/NodeImageVersionsListResult.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/NodeImageVersionsListResult.java new file mode 100644 index 0000000000000..ac867ee39124e --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/NodeImageVersionsListResult.java @@ -0,0 +1,114 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.containerservice.fluent.models.NodeImageVersionInner; +import java.io.IOException; +import java.util.List; + +/** + * Holds an array NodeImageVersions. + */ +@Immutable +public final class NodeImageVersionsListResult implements JsonSerializable { + /* + * The NodeImageVersion items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of NodeImageVersionsListResult class. + */ + private NodeImageVersionsListResult() { + } + + /** + * Get the value property: The NodeImageVersion items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model NodeImageVersionsListResult")); + } else { + value().forEach(e -> e.validate()); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(NodeImageVersionsListResult.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of NodeImageVersionsListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of NodeImageVersionsListResult 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 NodeImageVersionsListResult. + */ + public static NodeImageVersionsListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + NodeImageVersionsListResult deserializedNodeImageVersionsListResult = new NodeImageVersionsListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> NodeImageVersionInner.fromJson(reader1)); + deserializedNodeImageVersionsListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedNodeImageVersionsListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedNodeImageVersionsListResult; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/OperationStatusResultList.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/OperationStatusResultList.java new file mode 100644 index 0000000000000..4fe8ca992b841 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/OperationStatusResultList.java @@ -0,0 +1,114 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.containerservice.fluent.models.OperationStatusResultInner; +import java.io.IOException; +import java.util.List; + +/** + * The operations list. It contains an URL link to get the next set of results. + */ +@Immutable +public final class OperationStatusResultList implements JsonSerializable { + /* + * The OperationStatusResult items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of OperationStatusResultList class. + */ + private OperationStatusResultList() { + } + + /** + * Get the value property: The OperationStatusResult items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() == null) { + throw LOGGER.atError() + .log( + new IllegalArgumentException("Missing required property value in model OperationStatusResultList")); + } else { + value().forEach(e -> e.validate()); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(OperationStatusResultList.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of OperationStatusResultList from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of OperationStatusResultList 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 OperationStatusResultList. + */ + public static OperationStatusResultList fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + OperationStatusResultList deserializedOperationStatusResultList = new OperationStatusResultList(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> OperationStatusResultInner.fromJson(reader1)); + deserializedOperationStatusResultList.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedOperationStatusResultList.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedOperationStatusResultList; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/SafeguardsAvailableVersionsList.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/SafeguardsAvailableVersionsList.java new file mode 100644 index 0000000000000..11aeae71b7c15 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/SafeguardsAvailableVersionsList.java @@ -0,0 +1,115 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.containerservice.fluent.models.SafeguardsAvailableVersionInner; +import java.io.IOException; +import java.util.List; + +/** + * Hold values properties, which is array of SafeguardsVersions. + */ +@Immutable +public final class SafeguardsAvailableVersionsList implements JsonSerializable { + /* + * The SafeguardsAvailableVersion items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of SafeguardsAvailableVersionsList class. + */ + private SafeguardsAvailableVersionsList() { + } + + /** + * Get the value property: The SafeguardsAvailableVersion items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property value in model SafeguardsAvailableVersionsList")); + } else { + value().forEach(e -> e.validate()); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(SafeguardsAvailableVersionsList.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SafeguardsAvailableVersionsList from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SafeguardsAvailableVersionsList 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 SafeguardsAvailableVersionsList. + */ + public static SafeguardsAvailableVersionsList fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SafeguardsAvailableVersionsList deserializedSafeguardsAvailableVersionsList + = new SafeguardsAvailableVersionsList(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> SafeguardsAvailableVersionInner.fromJson(reader1)); + deserializedSafeguardsAvailableVersionsList.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedSafeguardsAvailableVersionsList.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedSafeguardsAvailableVersionsList; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/UpgradeInsightListResult.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/UpgradeInsightListResult.java new file mode 100644 index 0000000000000..435907d963848 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/UpgradeInsightListResult.java @@ -0,0 +1,113 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.containerservice.fluent.models.UpgradeInsightInner; +import java.io.IOException; +import java.util.List; + +/** + * The response of a UpgradeInsight list operation. + */ +@Immutable +public final class UpgradeInsightListResult implements JsonSerializable { + /* + * The UpgradeInsight items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of UpgradeInsightListResult class. + */ + private UpgradeInsightListResult() { + } + + /** + * Get the value property: The UpgradeInsight items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model UpgradeInsightListResult")); + } else { + value().forEach(e -> e.validate()); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(UpgradeInsightListResult.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of UpgradeInsightListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of UpgradeInsightListResult 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 UpgradeInsightListResult. + */ + public static UpgradeInsightListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + UpgradeInsightListResult deserializedUpgradeInsightListResult = new UpgradeInsightListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> UpgradeInsightInner.fromJson(reader1)); + deserializedUpgradeInsightListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedUpgradeInsightListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedUpgradeInsightListResult; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/VmSkusListResult.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/VmSkusListResult.java new file mode 100644 index 0000000000000..d4a44608a95e1 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/implementation/models/VmSkusListResult.java @@ -0,0 +1,112 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.containerservice.fluent.models.ResourceSkuInner; +import java.io.IOException; +import java.util.List; + +/** + * The List Resource Skus operation response. + */ +@Immutable +public final class VmSkusListResult implements JsonSerializable { + /* + * The ResourceSku items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of VmSkusListResult class. + */ + private VmSkusListResult() { + } + + /** + * Get the value property: The ResourceSku items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (value() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property value in model VmSkusListResult")); + } else { + value().forEach(e -> e.validate()); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(VmSkusListResult.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of VmSkusListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of VmSkusListResult 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 VmSkusListResult. + */ + public static VmSkusListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + VmSkusListResult deserializedVmSkusListResult = new VmSkusListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> ResourceSkuInner.fromJson(reader1)); + deserializedVmSkusListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedVmSkusListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedVmSkusListResult; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AddonAutoscaling.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AddonAutoscaling.java new file mode 100644 index 0000000000000..8a0059faf37c9 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AddonAutoscaling.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Whether VPA add-on is enabled and configured to scale AKS-managed add-ons. + */ +public final class AddonAutoscaling extends ExpandableStringEnum { + /** + * Feature to autoscale AKS-managed add-ons is enabled. The default VPA update mode is Initial mode. + */ + public static final AddonAutoscaling ENABLED = fromString("Enabled"); + + /** + * Feature to autoscale AKS-managed add-ons is disabled. + */ + public static final AddonAutoscaling DISABLED = fromString("Disabled"); + + /** + * Creates a new instance of AddonAutoscaling value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public AddonAutoscaling() { + } + + /** + * Creates or finds a AddonAutoscaling from its string representation. + * + * @param name a name to look for. + * @return the corresponding AddonAutoscaling. + */ + public static AddonAutoscaling fromString(String name) { + return fromString(name, AddonAutoscaling.class); + } + + /** + * Gets known AddonAutoscaling values. + * + * @return known AddonAutoscaling values. + */ + public static Collection values() { + return values(AddonAutoscaling.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentFabricMembershipProperties.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentFabricMembershipProperties.java new file mode 100644 index 0000000000000..3e2bf82053c47 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentFabricMembershipProperties.java @@ -0,0 +1,123 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Properties of the AgentFabric membership of a managed cluster. + */ +@Fluent +public final class AgentFabricMembershipProperties implements JsonSerializable { + /* + * The current provisioning state of the AgentFabric membership. + */ + private AgentFabricMembershipProvisioningState provisioningState; + + /* + * The SKU of the AgentFabric membership. Determines which AgentFabric components are deployed to the cluster. + */ + private AgentFabricMembershipSkuName sku; + + /** + * Creates an instance of AgentFabricMembershipProperties class. + */ + public AgentFabricMembershipProperties() { + } + + /** + * Get the provisioningState property: The current provisioning state of the AgentFabric membership. + * + * @return the provisioningState value. + */ + public AgentFabricMembershipProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Get the sku property: The SKU of the AgentFabric membership. Determines which AgentFabric components are deployed + * to the cluster. + * + * @return the sku value. + */ + public AgentFabricMembershipSkuName sku() { + return this.sku; + } + + /** + * Set the sku property: The SKU of the AgentFabric membership. Determines which AgentFabric components are deployed + * to the cluster. + * + * @param sku the sku value to set. + * @return the AgentFabricMembershipProperties object itself. + */ + public AgentFabricMembershipProperties withSku(AgentFabricMembershipSkuName sku) { + this.sku = sku; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (sku() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property sku in model AgentFabricMembershipProperties")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(AgentFabricMembershipProperties.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("sku", this.sku == null ? null : this.sku.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AgentFabricMembershipProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AgentFabricMembershipProperties 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 AgentFabricMembershipProperties. + */ + public static AgentFabricMembershipProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AgentFabricMembershipProperties deserializedAgentFabricMembershipProperties + = new AgentFabricMembershipProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("sku".equals(fieldName)) { + deserializedAgentFabricMembershipProperties.sku + = AgentFabricMembershipSkuName.fromString(reader.getString()); + } else if ("provisioningState".equals(fieldName)) { + deserializedAgentFabricMembershipProperties.provisioningState + = AgentFabricMembershipProvisioningState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedAgentFabricMembershipProperties; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentFabricMembershipProvisioningState.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentFabricMembershipProvisioningState.java new file mode 100644 index 0000000000000..880a666b370b0 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentFabricMembershipProvisioningState.java @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The current provisioning state of the AgentFabric membership. + */ +public final class AgentFabricMembershipProvisioningState + extends ExpandableStringEnum { + /** + * The provisioning of the AgentFabric membership was canceled. + */ + public static final AgentFabricMembershipProvisioningState CANCELED = fromString("Canceled"); + + /** + * The AgentFabric membership is being created. + */ + public static final AgentFabricMembershipProvisioningState CREATING = fromString("Creating"); + + /** + * The AgentFabric membership is being deleted. + */ + public static final AgentFabricMembershipProvisioningState DELETING = fromString("Deleting"); + + /** + * The provisioning of the AgentFabric membership failed. + */ + public static final AgentFabricMembershipProvisioningState FAILED = fromString("Failed"); + + /** + * The AgentFabric membership was provisioned successfully. + */ + public static final AgentFabricMembershipProvisioningState SUCCEEDED = fromString("Succeeded"); + + /** + * The AgentFabric membership is being updated. + */ + public static final AgentFabricMembershipProvisioningState UPDATING = fromString("Updating"); + + /** + * Creates a new instance of AgentFabricMembershipProvisioningState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public AgentFabricMembershipProvisioningState() { + } + + /** + * Creates or finds a AgentFabricMembershipProvisioningState from its string representation. + * + * @param name a name to look for. + * @return the corresponding AgentFabricMembershipProvisioningState. + */ + public static AgentFabricMembershipProvisioningState fromString(String name) { + return fromString(name, AgentFabricMembershipProvisioningState.class); + } + + /** + * Gets known AgentFabricMembershipProvisioningState values. + * + * @return known AgentFabricMembershipProvisioningState values. + */ + public static Collection values() { + return values(AgentFabricMembershipProvisioningState.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentFabricMembershipSkuName.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentFabricMembershipSkuName.java new file mode 100644 index 0000000000000..12288ef147a4a --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentFabricMembershipSkuName.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The SKU of the AgentFabric membership. The SKU determines which AgentFabric components are deployed to the cluster. + */ +public final class AgentFabricMembershipSkuName extends ExpandableStringEnum { + /** + * The Standard SKU. + */ + public static final AgentFabricMembershipSkuName STANDARD = fromString("Standard"); + + /** + * The Premium SKU. + */ + public static final AgentFabricMembershipSkuName PREMIUM = fromString("Premium"); + + /** + * Creates a new instance of AgentFabricMembershipSkuName value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public AgentFabricMembershipSkuName() { + } + + /** + * Creates or finds a AgentFabricMembershipSkuName from its string representation. + * + * @param name a name to look for. + * @return the corresponding AgentFabricMembershipSkuName. + */ + public static AgentFabricMembershipSkuName fromString(String name) { + return fromString(name, AgentFabricMembershipSkuName.class); + } + + /** + * Gets known AgentFabricMembershipSkuName values. + * + * @return known AgentFabricMembershipSkuName values. + */ + public static Collection values() { + return values(AgentFabricMembershipSkuName.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolBlueGreenUpgradeSettings.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolBlueGreenUpgradeSettings.java new file mode 100644 index 0000000000000..27c951e6e74c7 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolBlueGreenUpgradeSettings.java @@ -0,0 +1,210 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * Settings for blue-green upgrade on an agentpool. + */ +@Fluent +public final class AgentPoolBlueGreenUpgradeSettings implements JsonSerializable { + /* + * The number or percentage of nodes to drain in batch during blue-green upgrade. Must be a non-zero number. This + * can either be set to an integer (e.g. '5') or a percentage (e.g. '50%'). If a percentage is specified, it is the + * percentage of the total number of blue nodes of the initial upgrade operation. For percentages, fractional nodes + * are rounded up. If not specified, the default is 10%. For more information, including best practices, see: + * https://learn.microsoft.com/en-us/azure/aks/upgrade-cluster + */ + private String drainBatchSize; + + /* + * The drain timeout for a node, i.e., the amount of time (in minutes) to wait on eviction of pods and graceful + * termination per node. This eviction wait time honors waiting on pod disruption budgets. If this time is exceeded, + * the upgrade fails. If not specified, the default is 30 minutes. + */ + private Integer drainTimeoutInMinutes; + + /* + * The soak duration after draining a batch of nodes, i.e., the amount of time (in minutes) to wait after draining a + * batch of nodes before moving on the next batch. If not specified, the default is 15 minutes. + */ + private Integer batchSoakDurationInMinutes; + + /* + * The soak duration for a node pool, i.e., the amount of time (in minutes) to wait after all old nodes are drained + * before we remove the old nodes. If not specified, the default is 60 minutes. Only applicable for blue-green + * upgrade strategy. + */ + private Integer finalSoakDurationInMinutes; + + /** + * Creates an instance of AgentPoolBlueGreenUpgradeSettings class. + */ + public AgentPoolBlueGreenUpgradeSettings() { + } + + /** + * Get the drainBatchSize property: The number or percentage of nodes to drain in batch during blue-green upgrade. + * Must be a non-zero number. This can either be set to an integer (e.g. '5') or a percentage (e.g. '50%'). If a + * percentage is specified, it is the percentage of the total number of blue nodes of the initial upgrade operation. + * For percentages, fractional nodes are rounded up. If not specified, the default is 10%. For more information, + * including best practices, see: https://learn.microsoft.com/en-us/azure/aks/upgrade-cluster. + * + * @return the drainBatchSize value. + */ + public String drainBatchSize() { + return this.drainBatchSize; + } + + /** + * Set the drainBatchSize property: The number or percentage of nodes to drain in batch during blue-green upgrade. + * Must be a non-zero number. This can either be set to an integer (e.g. '5') or a percentage (e.g. '50%'). If a + * percentage is specified, it is the percentage of the total number of blue nodes of the initial upgrade operation. + * For percentages, fractional nodes are rounded up. If not specified, the default is 10%. For more information, + * including best practices, see: https://learn.microsoft.com/en-us/azure/aks/upgrade-cluster. + * + * @param drainBatchSize the drainBatchSize value to set. + * @return the AgentPoolBlueGreenUpgradeSettings object itself. + */ + public AgentPoolBlueGreenUpgradeSettings withDrainBatchSize(String drainBatchSize) { + this.drainBatchSize = drainBatchSize; + return this; + } + + /** + * Get the drainTimeoutInMinutes property: The drain timeout for a node, i.e., the amount of time (in minutes) to + * wait on eviction of pods and graceful termination per node. This eviction wait time honors waiting on pod + * disruption budgets. If this time is exceeded, the upgrade fails. If not specified, the default is 30 minutes. + * + * @return the drainTimeoutInMinutes value. + */ + public Integer drainTimeoutInMinutes() { + return this.drainTimeoutInMinutes; + } + + /** + * Set the drainTimeoutInMinutes property: The drain timeout for a node, i.e., the amount of time (in minutes) to + * wait on eviction of pods and graceful termination per node. This eviction wait time honors waiting on pod + * disruption budgets. If this time is exceeded, the upgrade fails. If not specified, the default is 30 minutes. + * + * @param drainTimeoutInMinutes the drainTimeoutInMinutes value to set. + * @return the AgentPoolBlueGreenUpgradeSettings object itself. + */ + public AgentPoolBlueGreenUpgradeSettings withDrainTimeoutInMinutes(Integer drainTimeoutInMinutes) { + this.drainTimeoutInMinutes = drainTimeoutInMinutes; + return this; + } + + /** + * Get the batchSoakDurationInMinutes property: The soak duration after draining a batch of nodes, i.e., the amount + * of time (in minutes) to wait after draining a batch of nodes before moving on the next batch. If not specified, + * the default is 15 minutes. + * + * @return the batchSoakDurationInMinutes value. + */ + public Integer batchSoakDurationInMinutes() { + return this.batchSoakDurationInMinutes; + } + + /** + * Set the batchSoakDurationInMinutes property: The soak duration after draining a batch of nodes, i.e., the amount + * of time (in minutes) to wait after draining a batch of nodes before moving on the next batch. If not specified, + * the default is 15 minutes. + * + * @param batchSoakDurationInMinutes the batchSoakDurationInMinutes value to set. + * @return the AgentPoolBlueGreenUpgradeSettings object itself. + */ + public AgentPoolBlueGreenUpgradeSettings withBatchSoakDurationInMinutes(Integer batchSoakDurationInMinutes) { + this.batchSoakDurationInMinutes = batchSoakDurationInMinutes; + return this; + } + + /** + * Get the finalSoakDurationInMinutes property: The soak duration for a node pool, i.e., the amount of time (in + * minutes) to wait after all old nodes are drained before we remove the old nodes. If not specified, the default is + * 60 minutes. Only applicable for blue-green upgrade strategy. + * + * @return the finalSoakDurationInMinutes value. + */ + public Integer finalSoakDurationInMinutes() { + return this.finalSoakDurationInMinutes; + } + + /** + * Set the finalSoakDurationInMinutes property: The soak duration for a node pool, i.e., the amount of time (in + * minutes) to wait after all old nodes are drained before we remove the old nodes. If not specified, the default is + * 60 minutes. Only applicable for blue-green upgrade strategy. + * + * @param finalSoakDurationInMinutes the finalSoakDurationInMinutes value to set. + * @return the AgentPoolBlueGreenUpgradeSettings object itself. + */ + public AgentPoolBlueGreenUpgradeSettings withFinalSoakDurationInMinutes(Integer finalSoakDurationInMinutes) { + this.finalSoakDurationInMinutes = finalSoakDurationInMinutes; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("drainBatchSize", this.drainBatchSize); + jsonWriter.writeNumberField("drainTimeoutInMinutes", this.drainTimeoutInMinutes); + jsonWriter.writeNumberField("batchSoakDurationInMinutes", this.batchSoakDurationInMinutes); + jsonWriter.writeNumberField("finalSoakDurationInMinutes", this.finalSoakDurationInMinutes); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AgentPoolBlueGreenUpgradeSettings from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AgentPoolBlueGreenUpgradeSettings 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 AgentPoolBlueGreenUpgradeSettings. + */ + public static AgentPoolBlueGreenUpgradeSettings fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AgentPoolBlueGreenUpgradeSettings deserializedAgentPoolBlueGreenUpgradeSettings + = new AgentPoolBlueGreenUpgradeSettings(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("drainBatchSize".equals(fieldName)) { + deserializedAgentPoolBlueGreenUpgradeSettings.drainBatchSize = reader.getString(); + } else if ("drainTimeoutInMinutes".equals(fieldName)) { + deserializedAgentPoolBlueGreenUpgradeSettings.drainTimeoutInMinutes + = reader.getNullable(JsonReader::getInt); + } else if ("batchSoakDurationInMinutes".equals(fieldName)) { + deserializedAgentPoolBlueGreenUpgradeSettings.batchSoakDurationInMinutes + = reader.getNullable(JsonReader::getInt); + } else if ("finalSoakDurationInMinutes".equals(fieldName)) { + deserializedAgentPoolBlueGreenUpgradeSettings.finalSoakDurationInMinutes + = reader.getNullable(JsonReader::getInt); + } else { + reader.skipChildren(); + } + } + + return deserializedAgentPoolBlueGreenUpgradeSettings; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolGenerateUpgradeInsightsContent.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolGenerateUpgradeInsightsContent.java new file mode 100644 index 0000000000000..ba3a0a9467582 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolGenerateUpgradeInsightsContent.java @@ -0,0 +1,155 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Request body to evaluate a single agent pool Kubernetes version upgrade. + */ +@Fluent +public final class AgentPoolGenerateUpgradeInsightsContent extends GenerateUpgradeInsightsContent { + /* + * The type of upgrade to evaluate. + */ + private UpgradeType upgradeType = UpgradeType.AGENT_POOL; + + /* + * The name of the agent pool to evaluate. + */ + private String agentPoolName; + + /* + * The target Kubernetes version to evaluate. + */ + private String targetKubernetesVersion; + + /** + * Creates an instance of AgentPoolGenerateUpgradeInsightsContent class. + */ + public AgentPoolGenerateUpgradeInsightsContent() { + } + + /** + * Get the upgradeType property: The type of upgrade to evaluate. + * + * @return the upgradeType value. + */ + @Override + public UpgradeType upgradeType() { + return this.upgradeType; + } + + /** + * Get the agentPoolName property: The name of the agent pool to evaluate. + * + * @return the agentPoolName value. + */ + public String agentPoolName() { + return this.agentPoolName; + } + + /** + * Set the agentPoolName property: The name of the agent pool to evaluate. + * + * @param agentPoolName the agentPoolName value to set. + * @return the AgentPoolGenerateUpgradeInsightsContent object itself. + */ + public AgentPoolGenerateUpgradeInsightsContent withAgentPoolName(String agentPoolName) { + this.agentPoolName = agentPoolName; + return this; + } + + /** + * Get the targetKubernetesVersion property: The target Kubernetes version to evaluate. + * + * @return the targetKubernetesVersion value. + */ + public String targetKubernetesVersion() { + return this.targetKubernetesVersion; + } + + /** + * Set the targetKubernetesVersion property: The target Kubernetes version to evaluate. + * + * @param targetKubernetesVersion the targetKubernetesVersion value to set. + * @return the AgentPoolGenerateUpgradeInsightsContent object itself. + */ + public AgentPoolGenerateUpgradeInsightsContent withTargetKubernetesVersion(String targetKubernetesVersion) { + this.targetKubernetesVersion = targetKubernetesVersion; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + if (agentPoolName() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property agentPoolName in model AgentPoolGenerateUpgradeInsightsContent")); + } + if (targetKubernetesVersion() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property targetKubernetesVersion in model AgentPoolGenerateUpgradeInsightsContent")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(AgentPoolGenerateUpgradeInsightsContent.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("agentPoolName", this.agentPoolName); + jsonWriter.writeStringField("targetKubernetesVersion", this.targetKubernetesVersion); + jsonWriter.writeStringField("upgradeType", this.upgradeType == null ? null : this.upgradeType.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AgentPoolGenerateUpgradeInsightsContent from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AgentPoolGenerateUpgradeInsightsContent 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 AgentPoolGenerateUpgradeInsightsContent. + */ + public static AgentPoolGenerateUpgradeInsightsContent fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AgentPoolGenerateUpgradeInsightsContent deserializedAgentPoolGenerateUpgradeInsightsContent + = new AgentPoolGenerateUpgradeInsightsContent(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("agentPoolName".equals(fieldName)) { + deserializedAgentPoolGenerateUpgradeInsightsContent.agentPoolName = reader.getString(); + } else if ("targetKubernetesVersion".equals(fieldName)) { + deserializedAgentPoolGenerateUpgradeInsightsContent.targetKubernetesVersion = reader.getString(); + } else if ("upgradeType".equals(fieldName)) { + deserializedAgentPoolGenerateUpgradeInsightsContent.upgradeType + = UpgradeType.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedAgentPoolGenerateUpgradeInsightsContent; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolMode.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolMode.java index 41ce870f4514e..cf33ad8ddfb82 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolMode.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolMode.java @@ -30,6 +30,19 @@ public final class AgentPoolMode extends ExpandableStringEnum { */ public static final AgentPoolMode GATEWAY = fromString("Gateway"); + /** + * ManagedSystem is a system pool managed by AKS. The pool scales dynamically according to cluster usage, and has + * additional automated monitoring and healing capabilities. There can only be one ManagedSystem pool, and it is + * recommended to delete all other system pools for the best experience. + */ + public static final AgentPoolMode MANAGED_SYSTEM = fromString("ManagedSystem"); + + /** + * Machines agent pools are dedicated to hosting machines. Only limited operations, such as creation and deletion, + * are allowed at the pool level. Please use the machine APIs to manage the full machine lifecycle. + */ + public static final AgentPoolMode MACHINES = fromString("Machines"); + /** * Creates a new instance of AgentPoolMode value. * diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolNICPublicIPAddressConfiguration.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolNICPublicIPAddressConfiguration.java new file mode 100644 index 0000000000000..cf7b186e68ffe --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolNICPublicIPAddressConfiguration.java @@ -0,0 +1,179 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Public IP configuration applied to a secondary NIC on an agent pool. `ipTags` and `publicIPPrefixID` are mutually + * exclusive, matching the primary NIC's behavior. For more information, see https://aka.ms/aks/multi-nic. + */ +@Fluent +public final class AgentPoolNICPublicIPAddressConfiguration + implements JsonSerializable { + /* + * IP version of the public IP provisioned for this NIC. Required: its presence is what enables public IP + * provisioning, so an empty configuration allocates nothing. `IPv4` is the only accepted value. + */ + private AgentPoolNICPublicIPAddressVersion publicIPAddressVersion; + + /* + * IP tags to attach to the public IP allocated for this NIC. Each tag's `ipTagType` must be `FirstPartyUsage`, + * `NetworkDomain`, or `RoutingPreference`. Mutually exclusive with `publicIPPrefixID`. + */ + private List ipTags; + + /* + * The resource ID of a public IP prefix to draw this NIC's public IP from. Mutually exclusive with `ipTags`. + */ + private String publicIPPrefixID; + + /** + * Creates an instance of AgentPoolNICPublicIPAddressConfiguration class. + */ + public AgentPoolNICPublicIPAddressConfiguration() { + } + + /** + * Get the publicIPAddressVersion property: IP version of the public IP provisioned for this NIC. Required: its + * presence is what enables public IP provisioning, so an empty configuration allocates nothing. `IPv4` is the only + * accepted value. + * + * @return the publicIPAddressVersion value. + */ + public AgentPoolNICPublicIPAddressVersion publicIPAddressVersion() { + return this.publicIPAddressVersion; + } + + /** + * Set the publicIPAddressVersion property: IP version of the public IP provisioned for this NIC. Required: its + * presence is what enables public IP provisioning, so an empty configuration allocates nothing. `IPv4` is the only + * accepted value. + * + * @param publicIPAddressVersion the publicIPAddressVersion value to set. + * @return the AgentPoolNICPublicIPAddressConfiguration object itself. + */ + public AgentPoolNICPublicIPAddressConfiguration + withPublicIPAddressVersion(AgentPoolNICPublicIPAddressVersion publicIPAddressVersion) { + this.publicIPAddressVersion = publicIPAddressVersion; + return this; + } + + /** + * Get the ipTags property: IP tags to attach to the public IP allocated for this NIC. Each tag's `ipTagType` must + * be `FirstPartyUsage`, `NetworkDomain`, or `RoutingPreference`. Mutually exclusive with `publicIPPrefixID`. + * + * @return the ipTags value. + */ + public List ipTags() { + return this.ipTags; + } + + /** + * Set the ipTags property: IP tags to attach to the public IP allocated for this NIC. Each tag's `ipTagType` must + * be `FirstPartyUsage`, `NetworkDomain`, or `RoutingPreference`. Mutually exclusive with `publicIPPrefixID`. + * + * @param ipTags the ipTags value to set. + * @return the AgentPoolNICPublicIPAddressConfiguration object itself. + */ + public AgentPoolNICPublicIPAddressConfiguration withIpTags(List ipTags) { + this.ipTags = ipTags; + return this; + } + + /** + * Get the publicIPPrefixID property: The resource ID of a public IP prefix to draw this NIC's public IP from. + * Mutually exclusive with `ipTags`. + * + * @return the publicIPPrefixID value. + */ + public String publicIPPrefixID() { + return this.publicIPPrefixID; + } + + /** + * Set the publicIPPrefixID property: The resource ID of a public IP prefix to draw this NIC's public IP from. + * Mutually exclusive with `ipTags`. + * + * @param publicIPPrefixID the publicIPPrefixID value to set. + * @return the AgentPoolNICPublicIPAddressConfiguration object itself. + */ + public AgentPoolNICPublicIPAddressConfiguration withPublicIPPrefixID(String publicIPPrefixID) { + this.publicIPPrefixID = publicIPPrefixID; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (publicIPAddressVersion() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property publicIPAddressVersion in model AgentPoolNICPublicIPAddressConfiguration")); + } + if (ipTags() != null) { + ipTags().forEach(e -> e.validate()); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(AgentPoolNICPublicIPAddressConfiguration.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("publicIPAddressVersion", + this.publicIPAddressVersion == null ? null : this.publicIPAddressVersion.toString()); + jsonWriter.writeArrayField("ipTags", this.ipTags, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("publicIPPrefixID", this.publicIPPrefixID); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AgentPoolNICPublicIPAddressConfiguration from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AgentPoolNICPublicIPAddressConfiguration 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 AgentPoolNICPublicIPAddressConfiguration. + */ + public static AgentPoolNICPublicIPAddressConfiguration fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AgentPoolNICPublicIPAddressConfiguration deserializedAgentPoolNICPublicIPAddressConfiguration + = new AgentPoolNICPublicIPAddressConfiguration(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("publicIPAddressVersion".equals(fieldName)) { + deserializedAgentPoolNICPublicIPAddressConfiguration.publicIPAddressVersion + = AgentPoolNICPublicIPAddressVersion.fromString(reader.getString()); + } else if ("ipTags".equals(fieldName)) { + List ipTags = reader.readArray(reader1 -> IpTag.fromJson(reader1)); + deserializedAgentPoolNICPublicIPAddressConfiguration.ipTags = ipTags; + } else if ("publicIPPrefixID".equals(fieldName)) { + deserializedAgentPoolNICPublicIPAddressConfiguration.publicIPPrefixID = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedAgentPoolNICPublicIPAddressConfiguration; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolNICPublicIPAddressVersion.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolNICPublicIPAddressVersion.java new file mode 100644 index 0000000000000..7fade016018ef --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolNICPublicIPAddressVersion.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.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * IP version of the public IP allocated for a secondary NIC. `IPv4` is the only accepted value. + */ +public final class AgentPoolNICPublicIPAddressVersion extends ExpandableStringEnum { + /** + * The public IP allocated for the NIC will be IPv4. + */ + public static final AgentPoolNICPublicIPAddressVersion IPV4 = fromString("IPv4"); + + /** + * Creates a new instance of AgentPoolNICPublicIPAddressVersion value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public AgentPoolNICPublicIPAddressVersion() { + } + + /** + * Creates or finds a AgentPoolNICPublicIPAddressVersion from its string representation. + * + * @param name a name to look for. + * @return the corresponding AgentPoolNICPublicIPAddressVersion. + */ + public static AgentPoolNICPublicIPAddressVersion fromString(String name) { + return fromString(name, AgentPoolNICPublicIPAddressVersion.class); + } + + /** + * Gets known AgentPoolNICPublicIPAddressVersion values. + * + * @return known AgentPoolNICPublicIPAddressVersion values. + */ + public static Collection values() { + return values(AgentPoolNICPublicIPAddressVersion.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolNetworkInterface.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolNetworkInterface.java new file mode 100644 index 0000000000000..3415d92708b32 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolNetworkInterface.java @@ -0,0 +1,205 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * Configuration of a secondary network interface provisioned on each VM instance in the agent pool. For more + * information, see https://aka.ms/aks/multi-nic. + */ +@Fluent +public final class AgentPoolNetworkInterface implements JsonSerializable { + /* + * Type of NIC to be provisioned on the VM. + */ + private AgentPoolNetworkInterfaceType type; + + /* + * The resource ID of the subnet which will be attached to the secondary network interface. Required when `type` is + * `Standard`; must be an empty string (`""`) or omitted when `type` is `Dynamic`. + */ + private String vnetSubnetId; + + /* + * Whether accelerated networking is enabled on this secondary NIC. If omitted, this defaults to true only when the + * agent pool VM SKU supports accelerated networking. Validation will fail if it is enabled on an unsupported SKU or + * NIC configuration. + */ + private Boolean enableAcceleratedNetworking; + + /* + * Public IP configuration for this secondary NIC. Only valid when `type` is `Standard`. Set + * `publicIPAddressVersion` to provision a per-VM instance-level public IP for the NIC, then optionally shape it + * with `ipTags` or `publicIPPrefixID`. If omitted, no public IP is provisioned. Idle timeout is not configurable. + * For more information, see https://aka.ms/aks/multi-nic + */ + private AgentPoolNICPublicIPAddressConfiguration publicIPAddressConfiguration; + + /** + * Creates an instance of AgentPoolNetworkInterface class. + */ + public AgentPoolNetworkInterface() { + } + + /** + * Get the type property: Type of NIC to be provisioned on the VM. + * + * @return the type value. + */ + public AgentPoolNetworkInterfaceType type() { + return this.type; + } + + /** + * Set the type property: Type of NIC to be provisioned on the VM. + * + * @param type the type value to set. + * @return the AgentPoolNetworkInterface object itself. + */ + public AgentPoolNetworkInterface withType(AgentPoolNetworkInterfaceType type) { + this.type = type; + return this; + } + + /** + * Get the vnetSubnetId property: The resource ID of the subnet which will be attached to the secondary network + * interface. Required when `type` is `Standard`; must be an empty string (`""`) or omitted when `type` is + * `Dynamic`. + * + * @return the vnetSubnetId value. + */ + public String vnetSubnetId() { + return this.vnetSubnetId; + } + + /** + * Set the vnetSubnetId property: The resource ID of the subnet which will be attached to the secondary network + * interface. Required when `type` is `Standard`; must be an empty string (`""`) or omitted when `type` is + * `Dynamic`. + * + * @param vnetSubnetId the vnetSubnetId value to set. + * @return the AgentPoolNetworkInterface object itself. + */ + public AgentPoolNetworkInterface withVnetSubnetId(String vnetSubnetId) { + this.vnetSubnetId = vnetSubnetId; + return this; + } + + /** + * Get the enableAcceleratedNetworking property: Whether accelerated networking is enabled on this secondary NIC. If + * omitted, this defaults to true only when the agent pool VM SKU supports accelerated networking. Validation will + * fail if it is enabled on an unsupported SKU or NIC configuration. + * + * @return the enableAcceleratedNetworking value. + */ + public Boolean enableAcceleratedNetworking() { + return this.enableAcceleratedNetworking; + } + + /** + * Set the enableAcceleratedNetworking property: Whether accelerated networking is enabled on this secondary NIC. If + * omitted, this defaults to true only when the agent pool VM SKU supports accelerated networking. Validation will + * fail if it is enabled on an unsupported SKU or NIC configuration. + * + * @param enableAcceleratedNetworking the enableAcceleratedNetworking value to set. + * @return the AgentPoolNetworkInterface object itself. + */ + public AgentPoolNetworkInterface withEnableAcceleratedNetworking(Boolean enableAcceleratedNetworking) { + this.enableAcceleratedNetworking = enableAcceleratedNetworking; + return this; + } + + /** + * Get the publicIPAddressConfiguration property: Public IP configuration for this secondary NIC. Only valid when + * `type` is `Standard`. Set `publicIPAddressVersion` to provision a per-VM instance-level public IP for the NIC, + * then optionally shape it with `ipTags` or `publicIPPrefixID`. If omitted, no public IP is provisioned. Idle + * timeout is not configurable. For more information, see https://aka.ms/aks/multi-nic. + * + * @return the publicIPAddressConfiguration value. + */ + public AgentPoolNICPublicIPAddressConfiguration publicIPAddressConfiguration() { + return this.publicIPAddressConfiguration; + } + + /** + * Set the publicIPAddressConfiguration property: Public IP configuration for this secondary NIC. Only valid when + * `type` is `Standard`. Set `publicIPAddressVersion` to provision a per-VM instance-level public IP for the NIC, + * then optionally shape it with `ipTags` or `publicIPPrefixID`. If omitted, no public IP is provisioned. Idle + * timeout is not configurable. For more information, see https://aka.ms/aks/multi-nic. + * + * @param publicIPAddressConfiguration the publicIPAddressConfiguration value to set. + * @return the AgentPoolNetworkInterface object itself. + */ + public AgentPoolNetworkInterface + withPublicIPAddressConfiguration(AgentPoolNICPublicIPAddressConfiguration publicIPAddressConfiguration) { + this.publicIPAddressConfiguration = publicIPAddressConfiguration; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (publicIPAddressConfiguration() != null) { + publicIPAddressConfiguration().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeStringField("vnetSubnetId", this.vnetSubnetId); + jsonWriter.writeBooleanField("enableAcceleratedNetworking", this.enableAcceleratedNetworking); + jsonWriter.writeJsonField("publicIPAddressConfiguration", this.publicIPAddressConfiguration); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AgentPoolNetworkInterface from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AgentPoolNetworkInterface 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 AgentPoolNetworkInterface. + */ + public static AgentPoolNetworkInterface fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AgentPoolNetworkInterface deserializedAgentPoolNetworkInterface = new AgentPoolNetworkInterface(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("type".equals(fieldName)) { + deserializedAgentPoolNetworkInterface.type + = AgentPoolNetworkInterfaceType.fromString(reader.getString()); + } else if ("vnetSubnetId".equals(fieldName)) { + deserializedAgentPoolNetworkInterface.vnetSubnetId = reader.getString(); + } else if ("enableAcceleratedNetworking".equals(fieldName)) { + deserializedAgentPoolNetworkInterface.enableAcceleratedNetworking + = reader.getNullable(JsonReader::getBoolean); + } else if ("publicIPAddressConfiguration".equals(fieldName)) { + deserializedAgentPoolNetworkInterface.publicIPAddressConfiguration + = AgentPoolNICPublicIPAddressConfiguration.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedAgentPoolNetworkInterface; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolNetworkInterfaceType.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolNetworkInterfaceType.java new file mode 100644 index 0000000000000..fbb178407c451 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolNetworkInterfaceType.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Type of network interface to be provisioned on each virtual machine instance. For more information, see + * https://aka.ms/aks/multi-nic. + */ +public final class AgentPoolNetworkInterfaceType extends ExpandableStringEnum { + /** + * A standard network interface programmed with an IP from a specified VNet subnet. Must be used with `vnetSubnetId` + * set in the AgentPoolNetworkInterface. IP address family (IPv4/IPv6/Dual-stack) is determined by the subnet. + */ + public static final AgentPoolNetworkInterfaceType STANDARD = fromString("Standard"); + + /** + * A secondary network interface created without IP configuration or subnet attachment. The interface is provisioned + * in an uninitialized state and the subnet is attached during workload creation. `vnetSubnetId` must be set to an + * empty string (`""`) or omitted. + */ + public static final AgentPoolNetworkInterfaceType DYNAMIC = fromString("Dynamic"); + + /** + * Creates a new instance of AgentPoolNetworkInterfaceType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public AgentPoolNetworkInterfaceType() { + } + + /** + * Creates or finds a AgentPoolNetworkInterfaceType from its string representation. + * + * @param name a name to look for. + * @return the corresponding AgentPoolNetworkInterfaceType. + */ + public static AgentPoolNetworkInterfaceType fromString(String name) { + return fromString(name, AgentPoolNetworkInterfaceType.class); + } + + /** + * Gets known AgentPoolNetworkInterfaceType values. + * + * @return known AgentPoolNetworkInterfaceType values. + */ + public static Collection values() { + return values(AgentPoolNetworkInterfaceType.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolNetworkProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolNetworkProfile.java index 389b056ead313..a9ace22cb55eb 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolNetworkProfile.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolNetworkProfile.java @@ -22,6 +22,15 @@ public final class AgentPoolNetworkProfile implements JsonSerializable nodePublicIpTags; + /* + * The resource IDs of public IP prefixes for node public IPs. At most one IPv4 and one IPv6 prefix may be + * specified. Order does not matter; the RP determines IP version from the referenced resource's + * publicIPAddressVersion. Requires enableNodePublicIP to be true on the agent pool. Mutually exclusive with the + * top-level nodePublicIPPrefixID property. Immutable after node pool creation. To change prefixes, delete and + * recreate the node pool. For more information, see https://aka.ms/aks/ipv6-ilpip + */ + private List nodePublicIPPrefixIDs; + /* * The port ranges that are allowed to access. The specified ranges are allowed to overlap. */ @@ -32,6 +41,17 @@ public final class AgentPoolNetworkProfile implements JsonSerializable applicationSecurityGroups; + /* + * Secondary network interface configurations for each VM in the agent pool. Each entry is a template: one physical + * NIC per entry is provisioned on every VM instance. These interfaces are created at agent pool creation time and + * are immutable. The length of the list must be less than the NIC capacity minus 1 for the VM size of the agent + * pool (AKS manages the primary NIC). For example, a Standard_D8a_v4 VM supports up to 4 NICs, so the maximum + * number of secondary interfaces allowed is 3. For mixed-SKU VM pools the effective capacity is the minimum across + * all SKUs: count(secondaryNetworkInterfaces) + 1 <= min(maxNICs). For more information, see + * https://aka.ms/aks/multi-nic + */ + private List secondaryNetworkInterfaces; + /* * DRANET settings of an agent pool. */ @@ -63,6 +83,34 @@ public AgentPoolNetworkProfile withNodePublicIpTags(List nodePublicIpTags return this; } + /** + * Get the nodePublicIPPrefixIDs property: The resource IDs of public IP prefixes for node public IPs. At most one + * IPv4 and one IPv6 prefix may be specified. Order does not matter; the RP determines IP version from the + * referenced resource's publicIPAddressVersion. Requires enableNodePublicIP to be true on the agent pool. Mutually + * exclusive with the top-level nodePublicIPPrefixID property. Immutable after node pool creation. To change + * prefixes, delete and recreate the node pool. For more information, see https://aka.ms/aks/ipv6-ilpip. + * + * @return the nodePublicIPPrefixIDs value. + */ + public List nodePublicIPPrefixIDs() { + return this.nodePublicIPPrefixIDs; + } + + /** + * Set the nodePublicIPPrefixIDs property: The resource IDs of public IP prefixes for node public IPs. At most one + * IPv4 and one IPv6 prefix may be specified. Order does not matter; the RP determines IP version from the + * referenced resource's publicIPAddressVersion. Requires enableNodePublicIP to be true on the agent pool. Mutually + * exclusive with the top-level nodePublicIPPrefixID property. Immutable after node pool creation. To change + * prefixes, delete and recreate the node pool. For more information, see https://aka.ms/aks/ipv6-ilpip. + * + * @param nodePublicIPPrefixIDs the nodePublicIPPrefixIDs value to set. + * @return the AgentPoolNetworkProfile object itself. + */ + public AgentPoolNetworkProfile withNodePublicIPPrefixIDs(List nodePublicIPPrefixIDs) { + this.nodePublicIPPrefixIDs = nodePublicIPPrefixIDs; + return this; + } + /** * Get the allowedHostPorts property: The port ranges that are allowed to access. The specified ranges are allowed * to overlap. @@ -107,6 +155,39 @@ public AgentPoolNetworkProfile withApplicationSecurityGroups(List applic return this; } + /** + * Get the secondaryNetworkInterfaces property: Secondary network interface configurations for each VM in the agent + * pool. Each entry is a template: one physical NIC per entry is provisioned on every VM instance. These interfaces + * are created at agent pool creation time and are immutable. The length of the list must be less than the NIC + * capacity minus 1 for the VM size of the agent pool (AKS manages the primary NIC). For example, a Standard_D8a_v4 + * VM supports up to 4 NICs, so the maximum number of secondary interfaces allowed is 3. For mixed-SKU VM pools the + * effective capacity is the minimum across all SKUs: count(secondaryNetworkInterfaces) + 1 <= min(maxNICs). For + * more information, see https://aka.ms/aks/multi-nic. + * + * @return the secondaryNetworkInterfaces value. + */ + public List secondaryNetworkInterfaces() { + return this.secondaryNetworkInterfaces; + } + + /** + * Set the secondaryNetworkInterfaces property: Secondary network interface configurations for each VM in the agent + * pool. Each entry is a template: one physical NIC per entry is provisioned on every VM instance. These interfaces + * are created at agent pool creation time and are immutable. The length of the list must be less than the NIC + * capacity minus 1 for the VM size of the agent pool (AKS manages the primary NIC). For example, a Standard_D8a_v4 + * VM supports up to 4 NICs, so the maximum number of secondary interfaces allowed is 3. For mixed-SKU VM pools the + * effective capacity is the minimum across all SKUs: count(secondaryNetworkInterfaces) + 1 <= min(maxNICs). For + * more information, see https://aka.ms/aks/multi-nic. + * + * @param secondaryNetworkInterfaces the secondaryNetworkInterfaces value to set. + * @return the AgentPoolNetworkProfile object itself. + */ + public AgentPoolNetworkProfile + withSecondaryNetworkInterfaces(List secondaryNetworkInterfaces) { + this.secondaryNetworkInterfaces = secondaryNetworkInterfaces; + return this; + } + /** * Get the dranet property: DRANET settings of an agent pool. * @@ -139,6 +220,9 @@ public void validate() { if (allowedHostPorts() != null) { allowedHostPorts().forEach(e -> e.validate()); } + if (secondaryNetworkInterfaces() != null) { + secondaryNetworkInterfaces().forEach(e -> e.validate()); + } if (dranet() != null) { dranet().validate(); } @@ -152,10 +236,14 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("nodePublicIPTags", this.nodePublicIpTags, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeArrayField("nodePublicIPPrefixIDs", this.nodePublicIPPrefixIDs, + (writer, element) -> writer.writeString(element)); jsonWriter.writeArrayField("allowedHostPorts", this.allowedHostPorts, (writer, element) -> writer.writeJson(element)); jsonWriter.writeArrayField("applicationSecurityGroups", this.applicationSecurityGroups, (writer, element) -> writer.writeString(element)); + jsonWriter.writeArrayField("secondaryNetworkInterfaces", this.secondaryNetworkInterfaces, + (writer, element) -> writer.writeJson(element)); jsonWriter.writeJsonField("dranet", this.dranet); return jsonWriter.writeEndObject(); } @@ -178,12 +266,19 @@ public static AgentPoolNetworkProfile fromJson(JsonReader jsonReader) throws IOE if ("nodePublicIPTags".equals(fieldName)) { List nodePublicIpTags = reader.readArray(reader1 -> IpTag.fromJson(reader1)); deserializedAgentPoolNetworkProfile.nodePublicIpTags = nodePublicIpTags; + } else if ("nodePublicIPPrefixIDs".equals(fieldName)) { + List nodePublicIPPrefixIDs = reader.readArray(reader1 -> reader1.getString()); + deserializedAgentPoolNetworkProfile.nodePublicIPPrefixIDs = nodePublicIPPrefixIDs; } else if ("allowedHostPorts".equals(fieldName)) { List allowedHostPorts = reader.readArray(reader1 -> PortRange.fromJson(reader1)); deserializedAgentPoolNetworkProfile.allowedHostPorts = allowedHostPorts; } else if ("applicationSecurityGroups".equals(fieldName)) { List applicationSecurityGroups = reader.readArray(reader1 -> reader1.getString()); deserializedAgentPoolNetworkProfile.applicationSecurityGroups = applicationSecurityGroups; + } else if ("secondaryNetworkInterfaces".equals(fieldName)) { + List secondaryNetworkInterfaces + = reader.readArray(reader1 -> AgentPoolNetworkInterface.fromJson(reader1)); + deserializedAgentPoolNetworkProfile.secondaryNetworkInterfaces = secondaryNetworkInterfaces; } else if ("dranet".equals(fieldName)) { deserializedAgentPoolNetworkProfile.dranet = DRANETProfile.fromJson(reader); } else { diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolScopeEvaluation.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolScopeEvaluation.java new file mode 100644 index 0000000000000..289576eac984e --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolScopeEvaluation.java @@ -0,0 +1,189 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.time.LocalDate; + +/** + * The readiness evaluation for a single agent pool within a combined evaluation. + */ +@Immutable +public final class AgentPoolScopeEvaluation implements JsonSerializable { + /* + * The name of the agent pool this evaluation applies to. + */ + private String agentPoolName; + + /* + * The Kubernetes version the scope was evaluated from (the upgrade source version the scope is currently running). + * Lets consumers read the result as "from X to targetKubernetesVersion" and detect a stale cached record by + * comparing against the live cluster version. Populated for Kubernetes version upgrades. + */ + private String currentKubernetesVersion; + + /* + * The support status of the Kubernetes version the scope is currently running (not the target version). Populated + * for Kubernetes version upgrades. + */ + private KubernetesVersionSupportStatus kubernetesVersionSupportStatus; + + /* + * The date on which support ends for the Kubernetes version the scope is currently + * running (its end-of-support date). Returned as an absolute date so clients can apply + * their own "approaching end of support" threshold and compute the remaining days against + * the current time; a precomputed remaining-days value is intentionally not returned so + * that cached results do not go stale. Populated for Kubernetes version upgrades. + */ + private LocalDate kubernetesVersionEndOfSupportDate; + + /* + * Contextual information about how this upgrade is managed, such as the upgrade strategy, next maintenance window, + * and last successful upgrade time. + */ + private UpgradeContext context; + + /* + * The evaluation result, including overall status, evaluation time, and any detected issues. + */ + private UpgradeInsightEvaluation evaluation; + + /** + * Creates an instance of AgentPoolScopeEvaluation class. + */ + private AgentPoolScopeEvaluation() { + } + + /** + * Get the agentPoolName property: The name of the agent pool this evaluation applies to. + * + * @return the agentPoolName value. + */ + public String agentPoolName() { + return this.agentPoolName; + } + + /** + * Get the currentKubernetesVersion property: The Kubernetes version the scope was evaluated from (the upgrade + * source version the scope is currently running). Lets consumers read the result as "from X to + * targetKubernetesVersion" and detect a stale cached record by comparing against the live cluster version. + * Populated for Kubernetes version upgrades. + * + * @return the currentKubernetesVersion value. + */ + public String currentKubernetesVersion() { + return this.currentKubernetesVersion; + } + + /** + * Get the kubernetesVersionSupportStatus property: The support status of the Kubernetes version the scope is + * currently running (not the target version). Populated for Kubernetes version upgrades. + * + * @return the kubernetesVersionSupportStatus value. + */ + public KubernetesVersionSupportStatus kubernetesVersionSupportStatus() { + return this.kubernetesVersionSupportStatus; + } + + /** + * Get the kubernetesVersionEndOfSupportDate property: The date on which support ends for the Kubernetes version the + * scope is currently + * running (its end-of-support date). Returned as an absolute date so clients can apply + * their own "approaching end of support" threshold and compute the remaining days against + * the current time; a precomputed remaining-days value is intentionally not returned so + * that cached results do not go stale. Populated for Kubernetes version upgrades. + * + * @return the kubernetesVersionEndOfSupportDate value. + */ + public LocalDate kubernetesVersionEndOfSupportDate() { + return this.kubernetesVersionEndOfSupportDate; + } + + /** + * Get the context property: Contextual information about how this upgrade is managed, such as the upgrade strategy, + * next maintenance window, and last successful upgrade time. + * + * @return the context value. + */ + public UpgradeContext context() { + return this.context; + } + + /** + * Get the evaluation property: The evaluation result, including overall status, evaluation time, and any detected + * issues. + * + * @return the evaluation value. + */ + public UpgradeInsightEvaluation evaluation() { + return this.evaluation; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (context() != null) { + context().validate(); + } + if (evaluation() != null) { + evaluation().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AgentPoolScopeEvaluation from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AgentPoolScopeEvaluation 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 AgentPoolScopeEvaluation. + */ + public static AgentPoolScopeEvaluation fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AgentPoolScopeEvaluation deserializedAgentPoolScopeEvaluation = new AgentPoolScopeEvaluation(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("agentPoolName".equals(fieldName)) { + deserializedAgentPoolScopeEvaluation.agentPoolName = reader.getString(); + } else if ("currentKubernetesVersion".equals(fieldName)) { + deserializedAgentPoolScopeEvaluation.currentKubernetesVersion = reader.getString(); + } else if ("kubernetesVersionSupportStatus".equals(fieldName)) { + deserializedAgentPoolScopeEvaluation.kubernetesVersionSupportStatus + = KubernetesVersionSupportStatus.fromString(reader.getString()); + } else if ("kubernetesVersionEndOfSupportDate".equals(fieldName)) { + deserializedAgentPoolScopeEvaluation.kubernetesVersionEndOfSupportDate + = reader.getNullable(nonNullReader -> LocalDate.parse(nonNullReader.getString())); + } else if ("context".equals(fieldName)) { + deserializedAgentPoolScopeEvaluation.context = UpgradeContext.fromJson(reader); + } else if ("evaluation".equals(fieldName)) { + deserializedAgentPoolScopeEvaluation.evaluation = UpgradeInsightEvaluation.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedAgentPoolScopeEvaluation; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolType.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolType.java index 5d9cc75ca5fec..803bf0bda7ced 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolType.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolType.java @@ -26,6 +26,11 @@ public final class AgentPoolType extends ExpandableStringEnum { */ public static final AgentPoolType VIRTUAL_MACHINES = fromString("VirtualMachines"); + /** + * Create an Agent Pool for BYO machines running the FlexNode agent. + */ + public static final AgentPoolType FLEX_NODES = fromString("FlexNodes"); + /** * Creates a new instance of AgentPoolType value. * diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpdate.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpdate.java new file mode 100644 index 0000000000000..8f5ceef2a2d81 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpdate.java @@ -0,0 +1,96 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * Agent pool. + */ +@Fluent +public final class AgentPoolUpdate implements JsonSerializable { + /* + * Properties for the agent pool. + */ + private AgentPoolUpdateProperties properties; + + /** + * Creates an instance of AgentPoolUpdate class. + */ + public AgentPoolUpdate() { + } + + /** + * Get the properties property: Properties for the agent pool. + * + * @return the properties value. + */ + public AgentPoolUpdateProperties properties() { + return this.properties; + } + + /** + * Set the properties property: Properties for the agent pool. + * + * @param properties the properties value to set. + * @return the AgentPoolUpdate object itself. + */ + public AgentPoolUpdate withProperties(AgentPoolUpdateProperties properties) { + this.properties = properties; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (properties() != null) { + properties().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AgentPoolUpdate from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AgentPoolUpdate 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 AgentPoolUpdate. + */ + public static AgentPoolUpdate fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AgentPoolUpdate deserializedAgentPoolUpdate = new AgentPoolUpdate(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("properties".equals(fieldName)) { + deserializedAgentPoolUpdate.properties = AgentPoolUpdateProperties.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedAgentPoolUpdate; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpdateManualScaleProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpdateManualScaleProfile.java new file mode 100644 index 0000000000000..b290646352507 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpdateManualScaleProfile.java @@ -0,0 +1,125 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * Specifications on number of machines. + */ +@Fluent +public final class AgentPoolUpdateManualScaleProfile implements JsonSerializable { + /* + * VM size that AKS will use when creating and scaling e.g. 'Standard_E4s_v3', 'Standard_E16s_v3' or + * 'Standard_D16s_v5'. + */ + private String size; + + /* + * Number of nodes. + */ + private Integer count; + + /** + * Creates an instance of AgentPoolUpdateManualScaleProfile class. + */ + public AgentPoolUpdateManualScaleProfile() { + } + + /** + * Get the size property: VM size that AKS will use when creating and scaling e.g. 'Standard_E4s_v3', + * 'Standard_E16s_v3' or 'Standard_D16s_v5'. + * + * @return the size value. + */ + public String size() { + return this.size; + } + + /** + * Set the size property: VM size that AKS will use when creating and scaling e.g. 'Standard_E4s_v3', + * 'Standard_E16s_v3' or 'Standard_D16s_v5'. + * + * @param size the size value to set. + * @return the AgentPoolUpdateManualScaleProfile object itself. + */ + public AgentPoolUpdateManualScaleProfile withSize(String size) { + this.size = size; + return this; + } + + /** + * Get the count property: Number of nodes. + * + * @return the count value. + */ + public Integer count() { + return this.count; + } + + /** + * Set the count property: Number of nodes. + * + * @param count the count value to set. + * @return the AgentPoolUpdateManualScaleProfile object itself. + */ + public AgentPoolUpdateManualScaleProfile withCount(Integer count) { + this.count = count; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("size", this.size); + jsonWriter.writeNumberField("count", this.count); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AgentPoolUpdateManualScaleProfile from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AgentPoolUpdateManualScaleProfile 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 AgentPoolUpdateManualScaleProfile. + */ + public static AgentPoolUpdateManualScaleProfile fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AgentPoolUpdateManualScaleProfile deserializedAgentPoolUpdateManualScaleProfile + = new AgentPoolUpdateManualScaleProfile(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("size".equals(fieldName)) { + deserializedAgentPoolUpdateManualScaleProfile.size = reader.getString(); + } else if ("count".equals(fieldName)) { + deserializedAgentPoolUpdateManualScaleProfile.count = reader.getNullable(JsonReader::getInt); + } else { + reader.skipChildren(); + } + } + + return deserializedAgentPoolUpdateManualScaleProfile; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpdateProperties.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpdateProperties.java new file mode 100644 index 0000000000000..f63bf12ed5fe6 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpdateProperties.java @@ -0,0 +1,126 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * Properties for the agent pool. + */ +@Fluent +public final class AgentPoolUpdateProperties implements JsonSerializable { + /* + * Number of agents (VMs) to host docker containers. + */ + private Integer count; + + /* + * Specifications on VirtualMachines agent pool. + */ + private AgentPoolUpdateVirtualMachinesProfile virtualMachinesProfile; + + /** + * Creates an instance of AgentPoolUpdateProperties class. + */ + public AgentPoolUpdateProperties() { + } + + /** + * Get the count property: Number of agents (VMs) to host docker containers. + * + * @return the count value. + */ + public Integer count() { + return this.count; + } + + /** + * Set the count property: Number of agents (VMs) to host docker containers. + * + * @param count the count value to set. + * @return the AgentPoolUpdateProperties object itself. + */ + public AgentPoolUpdateProperties withCount(Integer count) { + this.count = count; + return this; + } + + /** + * Get the virtualMachinesProfile property: Specifications on VirtualMachines agent pool. + * + * @return the virtualMachinesProfile value. + */ + public AgentPoolUpdateVirtualMachinesProfile virtualMachinesProfile() { + return this.virtualMachinesProfile; + } + + /** + * Set the virtualMachinesProfile property: Specifications on VirtualMachines agent pool. + * + * @param virtualMachinesProfile the virtualMachinesProfile value to set. + * @return the AgentPoolUpdateProperties object itself. + */ + public AgentPoolUpdateProperties + withVirtualMachinesProfile(AgentPoolUpdateVirtualMachinesProfile virtualMachinesProfile) { + this.virtualMachinesProfile = virtualMachinesProfile; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (virtualMachinesProfile() != null) { + virtualMachinesProfile().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeNumberField("count", this.count); + jsonWriter.writeJsonField("virtualMachinesProfile", this.virtualMachinesProfile); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AgentPoolUpdateProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AgentPoolUpdateProperties 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 AgentPoolUpdateProperties. + */ + public static AgentPoolUpdateProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AgentPoolUpdateProperties deserializedAgentPoolUpdateProperties = new AgentPoolUpdateProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("count".equals(fieldName)) { + deserializedAgentPoolUpdateProperties.count = reader.getNullable(JsonReader::getInt); + } else if ("virtualMachinesProfile".equals(fieldName)) { + deserializedAgentPoolUpdateProperties.virtualMachinesProfile + = AgentPoolUpdateVirtualMachinesProfile.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedAgentPoolUpdateProperties; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpdateScaleProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpdateScaleProfile.java new file mode 100644 index 0000000000000..ca70b9af08b60 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpdateScaleProfile.java @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * Specifications on how to scale a VirtualMachines agent pool. + */ +@Fluent +public final class AgentPoolUpdateScaleProfile implements JsonSerializable { + /* + * Specifications on how to scale the VirtualMachines agent pool to a fixed size. + */ + private List manual; + + /** + * Creates an instance of AgentPoolUpdateScaleProfile class. + */ + public AgentPoolUpdateScaleProfile() { + } + + /** + * Get the manual property: Specifications on how to scale the VirtualMachines agent pool to a fixed size. + * + * @return the manual value. + */ + public List manual() { + return this.manual; + } + + /** + * Set the manual property: Specifications on how to scale the VirtualMachines agent pool to a fixed size. + * + * @param manual the manual value to set. + * @return the AgentPoolUpdateScaleProfile object itself. + */ + public AgentPoolUpdateScaleProfile withManual(List manual) { + this.manual = manual; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (manual() != null) { + manual().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("manual", this.manual, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AgentPoolUpdateScaleProfile from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AgentPoolUpdateScaleProfile 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 AgentPoolUpdateScaleProfile. + */ + public static AgentPoolUpdateScaleProfile fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AgentPoolUpdateScaleProfile deserializedAgentPoolUpdateScaleProfile = new AgentPoolUpdateScaleProfile(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("manual".equals(fieldName)) { + List manual + = reader.readArray(reader1 -> AgentPoolUpdateManualScaleProfile.fromJson(reader1)); + deserializedAgentPoolUpdateScaleProfile.manual = manual; + } else { + reader.skipChildren(); + } + } + + return deserializedAgentPoolUpdateScaleProfile; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpdateVirtualMachinesProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpdateVirtualMachinesProfile.java new file mode 100644 index 0000000000000..37e8d92fcdc92 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpdateVirtualMachinesProfile.java @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * Specifications on VirtualMachines agent pool. + */ +@Fluent +public final class AgentPoolUpdateVirtualMachinesProfile + implements JsonSerializable { + /* + * Specifications on how to scale a VirtualMachines agent pool. + */ + private AgentPoolUpdateScaleProfile scale; + + /** + * Creates an instance of AgentPoolUpdateVirtualMachinesProfile class. + */ + public AgentPoolUpdateVirtualMachinesProfile() { + } + + /** + * Get the scale property: Specifications on how to scale a VirtualMachines agent pool. + * + * @return the scale value. + */ + public AgentPoolUpdateScaleProfile scale() { + return this.scale; + } + + /** + * Set the scale property: Specifications on how to scale a VirtualMachines agent pool. + * + * @param scale the scale value to set. + * @return the AgentPoolUpdateVirtualMachinesProfile object itself. + */ + public AgentPoolUpdateVirtualMachinesProfile withScale(AgentPoolUpdateScaleProfile scale) { + this.scale = scale; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (scale() != null) { + scale().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("scale", this.scale); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AgentPoolUpdateVirtualMachinesProfile from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AgentPoolUpdateVirtualMachinesProfile 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 AgentPoolUpdateVirtualMachinesProfile. + */ + public static AgentPoolUpdateVirtualMachinesProfile fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AgentPoolUpdateVirtualMachinesProfile deserializedAgentPoolUpdateVirtualMachinesProfile + = new AgentPoolUpdateVirtualMachinesProfile(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("scale".equals(fieldName)) { + deserializedAgentPoolUpdateVirtualMachinesProfile.scale + = AgentPoolUpdateScaleProfile.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedAgentPoolUpdateVirtualMachinesProfile; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpgradeInsightProperties.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpgradeInsightProperties.java new file mode 100644 index 0000000000000..667589e86e5fb --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpgradeInsightProperties.java @@ -0,0 +1,236 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.time.LocalDate; + +/** + * Properties for a single agent pool Kubernetes version upgrade insight. + */ +@Immutable +public final class AgentPoolUpgradeInsightProperties extends UpgradeInsightProperties { + /* + * The type of upgrade this insight evaluates. Derived from the resource name. + */ + private UpgradeType upgradeType = UpgradeType.AGENT_POOL; + + /* + * The name of the agent pool this insight applies to. + */ + private String agentPoolName; + + /* + * The target Kubernetes version that was evaluated. + */ + private String targetKubernetesVersion; + + /* + * The Kubernetes version the scope was evaluated from (the upgrade source version the scope is currently running). + * Lets consumers read the result as "from X to targetKubernetesVersion" and detect a stale cached record by + * comparing against the live cluster version. Populated for Kubernetes version upgrades. + */ + private String currentKubernetesVersion; + + /* + * The support status of the Kubernetes version the scope is currently running (not the target version). Populated + * for Kubernetes version upgrades. + */ + private KubernetesVersionSupportStatus kubernetesVersionSupportStatus; + + /* + * The date on which support ends for the Kubernetes version the scope is currently + * running (its end-of-support date). Returned as an absolute date so clients can apply + * their own "approaching end of support" threshold and compute the remaining days against + * the current time; a precomputed remaining-days value is intentionally not returned so + * that cached results do not go stale. Populated for Kubernetes version upgrades. + */ + private LocalDate kubernetesVersionEndOfSupportDate; + + /* + * Contextual information about how this upgrade is managed, such as the upgrade strategy, next maintenance window, + * and last successful upgrade time. + */ + private UpgradeContext context; + + /* + * The evaluation result, including overall status, evaluation time, and any detected issues. + */ + private UpgradeInsightEvaluation evaluation; + + /** + * Creates an instance of AgentPoolUpgradeInsightProperties class. + */ + private AgentPoolUpgradeInsightProperties() { + } + + /** + * Get the upgradeType property: The type of upgrade this insight evaluates. Derived from the resource name. + * + * @return the upgradeType value. + */ + @Override + public UpgradeType upgradeType() { + return this.upgradeType; + } + + /** + * Get the agentPoolName property: The name of the agent pool this insight applies to. + * + * @return the agentPoolName value. + */ + public String agentPoolName() { + return this.agentPoolName; + } + + /** + * Get the targetKubernetesVersion property: The target Kubernetes version that was evaluated. + * + * @return the targetKubernetesVersion value. + */ + public String targetKubernetesVersion() { + return this.targetKubernetesVersion; + } + + /** + * Get the currentKubernetesVersion property: The Kubernetes version the scope was evaluated from (the upgrade + * source version the scope is currently running). Lets consumers read the result as "from X to + * targetKubernetesVersion" and detect a stale cached record by comparing against the live cluster version. + * Populated for Kubernetes version upgrades. + * + * @return the currentKubernetesVersion value. + */ + public String currentKubernetesVersion() { + return this.currentKubernetesVersion; + } + + /** + * Get the kubernetesVersionSupportStatus property: The support status of the Kubernetes version the scope is + * currently running (not the target version). Populated for Kubernetes version upgrades. + * + * @return the kubernetesVersionSupportStatus value. + */ + public KubernetesVersionSupportStatus kubernetesVersionSupportStatus() { + return this.kubernetesVersionSupportStatus; + } + + /** + * Get the kubernetesVersionEndOfSupportDate property: The date on which support ends for the Kubernetes version the + * scope is currently + * running (its end-of-support date). Returned as an absolute date so clients can apply + * their own "approaching end of support" threshold and compute the remaining days against + * the current time; a precomputed remaining-days value is intentionally not returned so + * that cached results do not go stale. Populated for Kubernetes version upgrades. + * + * @return the kubernetesVersionEndOfSupportDate value. + */ + public LocalDate kubernetesVersionEndOfSupportDate() { + return this.kubernetesVersionEndOfSupportDate; + } + + /** + * Get the context property: Contextual information about how this upgrade is managed, such as the upgrade strategy, + * next maintenance window, and last successful upgrade time. + * + * @return the context value. + */ + public UpgradeContext context() { + return this.context; + } + + /** + * Get the evaluation property: The evaluation result, including overall status, evaluation time, and any detected + * issues. + * + * @return the evaluation value. + */ + public UpgradeInsightEvaluation evaluation() { + return this.evaluation; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + if (context() != null) { + context().validate(); + } + if (evaluation() != null) { + evaluation().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("upgradeType", this.upgradeType == null ? null : this.upgradeType.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AgentPoolUpgradeInsightProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AgentPoolUpgradeInsightProperties 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 AgentPoolUpgradeInsightProperties. + */ + public static AgentPoolUpgradeInsightProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AgentPoolUpgradeInsightProperties deserializedAgentPoolUpgradeInsightProperties + = new AgentPoolUpgradeInsightProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("provisioningState".equals(fieldName)) { + deserializedAgentPoolUpgradeInsightProperties + .withProvisioningState(ResourceProvisioningState.fromString(reader.getString())); + } else if ("lastEvaluatedAt".equals(fieldName)) { + deserializedAgentPoolUpgradeInsightProperties.withLastEvaluatedAt(reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()))); + } else if ("expiresAt".equals(fieldName)) { + deserializedAgentPoolUpgradeInsightProperties.withExpiresAt(reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()))); + } else if ("upgradeType".equals(fieldName)) { + deserializedAgentPoolUpgradeInsightProperties.upgradeType + = UpgradeType.fromString(reader.getString()); + } else if ("agentPoolName".equals(fieldName)) { + deserializedAgentPoolUpgradeInsightProperties.agentPoolName = reader.getString(); + } else if ("targetKubernetesVersion".equals(fieldName)) { + deserializedAgentPoolUpgradeInsightProperties.targetKubernetesVersion = reader.getString(); + } else if ("currentKubernetesVersion".equals(fieldName)) { + deserializedAgentPoolUpgradeInsightProperties.currentKubernetesVersion = reader.getString(); + } else if ("kubernetesVersionSupportStatus".equals(fieldName)) { + deserializedAgentPoolUpgradeInsightProperties.kubernetesVersionSupportStatus + = KubernetesVersionSupportStatus.fromString(reader.getString()); + } else if ("kubernetesVersionEndOfSupportDate".equals(fieldName)) { + deserializedAgentPoolUpgradeInsightProperties.kubernetesVersionEndOfSupportDate + = reader.getNullable(nonNullReader -> LocalDate.parse(nonNullReader.getString())); + } else if ("context".equals(fieldName)) { + deserializedAgentPoolUpgradeInsightProperties.context = UpgradeContext.fromJson(reader); + } else if ("evaluation".equals(fieldName)) { + deserializedAgentPoolUpgradeInsightProperties.evaluation + = UpgradeInsightEvaluation.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedAgentPoolUpgradeInsightProperties; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpgradeProfilePropertiesUpgradesItem.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpgradeProfilePropertiesUpgradesItem.java index 7fa33bb5d40d3..22cc5f5dd50ad 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpgradeProfilePropertiesUpgradesItem.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpgradeProfilePropertiesUpgradesItem.java @@ -27,6 +27,11 @@ public final class AgentPoolUpgradeProfilePropertiesUpgradesItem */ private Boolean isPreview; + /* + * Whether the Kubernetes version is out of support. + */ + private Boolean isOutOfSupport; + /** * Creates an instance of AgentPoolUpgradeProfilePropertiesUpgradesItem class. */ @@ -51,6 +56,15 @@ public Boolean isPreview() { return this.isPreview; } + /** + * Get the isOutOfSupport property: Whether the Kubernetes version is out of support. + * + * @return the isOutOfSupport value. + */ + public Boolean isOutOfSupport() { + return this.isOutOfSupport; + } + /** * Validates the instance. * @@ -67,6 +81,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("kubernetesVersion", this.kubernetesVersion); jsonWriter.writeBooleanField("isPreview", this.isPreview); + jsonWriter.writeBooleanField("isOutOfSupport", this.isOutOfSupport); return jsonWriter.writeEndObject(); } @@ -91,6 +106,9 @@ public static AgentPoolUpgradeProfilePropertiesUpgradesItem fromJson(JsonReader } else if ("isPreview".equals(fieldName)) { deserializedAgentPoolUpgradeProfilePropertiesUpgradesItem.isPreview = reader.getNullable(JsonReader::getBoolean); + } else if ("isOutOfSupport".equals(fieldName)) { + deserializedAgentPoolUpgradeProfilePropertiesUpgradesItem.isOutOfSupport + = reader.getNullable(JsonReader::getBoolean); } else { reader.skipChildren(); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpgradeSettings.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpgradeSettings.java index daf88503669e2..0223371c196c4 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpgradeSettings.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpgradeSettings.java @@ -34,6 +34,16 @@ public final class AgentPoolUpgradeSettings implements JsonSerializable { + /** + * Alerts are disabled. + */ + public static final AlertConfigurationMode DISABLED = fromString("Disabled"); + + /** + * AKS manages the alerts lifecycle including creation, updates, and deletion. + * Users receive alerts through the configured notification channel. + */ + public static final AlertConfigurationMode MANAGED = fromString("Managed"); + + /** + * Creates a new instance of AlertConfigurationMode value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public AlertConfigurationMode() { + } + + /** + * Creates or finds a AlertConfigurationMode from its string representation. + * + * @param name a name to look for. + * @return the corresponding AlertConfigurationMode. + */ + public static AlertConfigurationMode fromString(String name) { + return fromString(name, AlertConfigurationMode.class); + } + + /** + * Gets known AlertConfigurationMode values. + * + * @return known AlertConfigurationMode values. + */ + public static Collection values() { + return values(AlertConfigurationMode.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AlertConfigurationProperties.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AlertConfigurationProperties.java new file mode 100644 index 0000000000000..2eed757d0b5ec --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AlertConfigurationProperties.java @@ -0,0 +1,155 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Properties of the alert configuration. + */ +@Fluent +public final class AlertConfigurationProperties implements JsonSerializable { + /* + * The mode of the alert configuration. Specifies how AKS manages the alerts. + */ + private AlertConfigurationMode mode; + + /* + * Notification settings for the alert configuration. + */ + private AlertNotification notification; + + /* + * The current provisioning state of the alert configuration. + */ + private AlertConfigurationProvisioningState provisioningState; + + /** + * Creates an instance of AlertConfigurationProperties class. + */ + public AlertConfigurationProperties() { + } + + /** + * Get the mode property: The mode of the alert configuration. Specifies how AKS manages the alerts. + * + * @return the mode value. + */ + public AlertConfigurationMode mode() { + return this.mode; + } + + /** + * Set the mode property: The mode of the alert configuration. Specifies how AKS manages the alerts. + * + * @param mode the mode value to set. + * @return the AlertConfigurationProperties object itself. + */ + public AlertConfigurationProperties withMode(AlertConfigurationMode mode) { + this.mode = mode; + return this; + } + + /** + * Get the notification property: Notification settings for the alert configuration. + * + * @return the notification value. + */ + public AlertNotification notification() { + return this.notification; + } + + /** + * Set the notification property: Notification settings for the alert configuration. + * + * @param notification the notification value to set. + * @return the AlertConfigurationProperties object itself. + */ + public AlertConfigurationProperties withNotification(AlertNotification notification) { + this.notification = notification; + return this; + } + + /** + * Get the provisioningState property: The current provisioning state of the alert configuration. + * + * @return the provisioningState value. + */ + public AlertConfigurationProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (mode() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property mode in model AlertConfigurationProperties")); + } + if (notification() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property notification in model AlertConfigurationProperties")); + } else { + notification().validate(); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(AlertConfigurationProperties.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("mode", this.mode == null ? null : this.mode.toString()); + jsonWriter.writeJsonField("notification", this.notification); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AlertConfigurationProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AlertConfigurationProperties 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 AlertConfigurationProperties. + */ + public static AlertConfigurationProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AlertConfigurationProperties deserializedAlertConfigurationProperties = new AlertConfigurationProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("mode".equals(fieldName)) { + deserializedAlertConfigurationProperties.mode + = AlertConfigurationMode.fromString(reader.getString()); + } else if ("notification".equals(fieldName)) { + deserializedAlertConfigurationProperties.notification = AlertNotification.fromJson(reader); + } else if ("provisioningState".equals(fieldName)) { + deserializedAlertConfigurationProperties.provisioningState + = AlertConfigurationProvisioningState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedAlertConfigurationProperties; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AlertConfigurationProvisioningState.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AlertConfigurationProvisioningState.java new file mode 100644 index 0000000000000..d39ecaa2b1503 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AlertConfigurationProvisioningState.java @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The current provisioning state of the alert configuration. + */ +public final class AlertConfigurationProvisioningState + extends ExpandableStringEnum { + /** + * Resource has been created. + */ + public static final AlertConfigurationProvisioningState SUCCEEDED = fromString("Succeeded"); + + /** + * Resource creation failed. + */ + public static final AlertConfigurationProvisioningState FAILED = fromString("Failed"); + + /** + * Resource creation was canceled. + */ + public static final AlertConfigurationProvisioningState CANCELED = fromString("Canceled"); + + /** + * The alert configuration is being created. + */ + public static final AlertConfigurationProvisioningState CREATING = fromString("Creating"); + + /** + * The alert configuration is being updated. + */ + public static final AlertConfigurationProvisioningState UPDATING = fromString("Updating"); + + /** + * The alert configuration is being deleted. + */ + public static final AlertConfigurationProvisioningState DELETING = fromString("Deleting"); + + /** + * Creates a new instance of AlertConfigurationProvisioningState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public AlertConfigurationProvisioningState() { + } + + /** + * Creates or finds a AlertConfigurationProvisioningState from its string representation. + * + * @param name a name to look for. + * @return the corresponding AlertConfigurationProvisioningState. + */ + public static AlertConfigurationProvisioningState fromString(String name) { + return fromString(name, AlertConfigurationProvisioningState.class); + } + + /** + * Gets known AlertConfigurationProvisioningState values. + * + * @return known AlertConfigurationProvisioningState values. + */ + public static Collection values() { + return values(AlertConfigurationProvisioningState.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AlertNotification.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AlertNotification.java new file mode 100644 index 0000000000000..4a4f89bee27f8 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AlertNotification.java @@ -0,0 +1,102 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Notification settings for the alert configuration. + */ +@Fluent +public final class AlertNotification implements JsonSerializable { + /* + * The resource ID of the Azure Monitor action group to send notifications to. + */ + private String actionGroupId; + + /** + * Creates an instance of AlertNotification class. + */ + public AlertNotification() { + } + + /** + * Get the actionGroupId property: The resource ID of the Azure Monitor action group to send notifications to. + * + * @return the actionGroupId value. + */ + public String actionGroupId() { + return this.actionGroupId; + } + + /** + * Set the actionGroupId property: The resource ID of the Azure Monitor action group to send notifications to. + * + * @param actionGroupId the actionGroupId value to set. + * @return the AlertNotification object itself. + */ + public AlertNotification withActionGroupId(String actionGroupId) { + this.actionGroupId = actionGroupId; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (actionGroupId() == null) { + throw LOGGER.atError() + .log( + new IllegalArgumentException("Missing required property actionGroupId in model AlertNotification")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(AlertNotification.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("actionGroupId", this.actionGroupId); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AlertNotification from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AlertNotification 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 AlertNotification. + */ + public static AlertNotification fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AlertNotification deserializedAlertNotification = new AlertNotification(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("actionGroupId".equals(fieldName)) { + deserializedAlertNotification.actionGroupId = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedAlertNotification; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AllowedSubject.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AllowedSubject.java new file mode 100644 index 0000000000000..ed48644edc20a --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/AllowedSubject.java @@ -0,0 +1,161 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * A subject authorized to use the identity binding for token exchange. + * The namespace selector is required and must be non-empty. The service + * account selector is optional; when omitted, all service accounts in + * matching namespaces are authorized. Selectors within a single + * AllowedSubject are AND'd; multiple AllowedSubjects on an + * IdentityBinding are OR'd. + */ +@Fluent +public final class AllowedSubject implements JsonSerializable { + /* + * Label selector matching the namespaces in which this identity may be + * used. Must be non-empty: an empty selector would match every namespace + * and is rejected to prevent overly permissive bindings. Use the built-in + * `kubernetes.io/metadata.name` label to target specific namespaces by + * name. + */ + private LabelSelector namespaceSelector; + + /* + * Optional label selector matching the service accounts (within the + * namespaces matched by `namespaceSelector`) that may use this identity. + * When omitted, all service accounts in matching namespaces are + * authorized. When provided, it must be non-empty. + */ + private LabelSelector serviceAccountSelector; + + /** + * Creates an instance of AllowedSubject class. + */ + public AllowedSubject() { + } + + /** + * Get the namespaceSelector property: Label selector matching the namespaces in which this identity may be + * used. Must be non-empty: an empty selector would match every namespace + * and is rejected to prevent overly permissive bindings. Use the built-in + * `kubernetes.io/metadata.name` label to target specific namespaces by + * name. + * + * @return the namespaceSelector value. + */ + public LabelSelector namespaceSelector() { + return this.namespaceSelector; + } + + /** + * Set the namespaceSelector property: Label selector matching the namespaces in which this identity may be + * used. Must be non-empty: an empty selector would match every namespace + * and is rejected to prevent overly permissive bindings. Use the built-in + * `kubernetes.io/metadata.name` label to target specific namespaces by + * name. + * + * @param namespaceSelector the namespaceSelector value to set. + * @return the AllowedSubject object itself. + */ + public AllowedSubject withNamespaceSelector(LabelSelector namespaceSelector) { + this.namespaceSelector = namespaceSelector; + return this; + } + + /** + * Get the serviceAccountSelector property: Optional label selector matching the service accounts (within the + * namespaces matched by `namespaceSelector`) that may use this identity. + * When omitted, all service accounts in matching namespaces are + * authorized. When provided, it must be non-empty. + * + * @return the serviceAccountSelector value. + */ + public LabelSelector serviceAccountSelector() { + return this.serviceAccountSelector; + } + + /** + * Set the serviceAccountSelector property: Optional label selector matching the service accounts (within the + * namespaces matched by `namespaceSelector`) that may use this identity. + * When omitted, all service accounts in matching namespaces are + * authorized. When provided, it must be non-empty. + * + * @param serviceAccountSelector the serviceAccountSelector value to set. + * @return the AllowedSubject object itself. + */ + public AllowedSubject withServiceAccountSelector(LabelSelector serviceAccountSelector) { + this.serviceAccountSelector = serviceAccountSelector; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (namespaceSelector() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property namespaceSelector in model AllowedSubject")); + } else { + namespaceSelector().validate(); + } + if (serviceAccountSelector() != null) { + serviceAccountSelector().validate(); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(AllowedSubject.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("namespaceSelector", this.namespaceSelector); + jsonWriter.writeJsonField("serviceAccountSelector", this.serviceAccountSelector); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AllowedSubject from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AllowedSubject 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 AllowedSubject. + */ + public static AllowedSubject fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AllowedSubject deserializedAllowedSubject = new AllowedSubject(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("namespaceSelector".equals(fieldName)) { + deserializedAllowedSubject.namespaceSelector = LabelSelector.fromJson(reader); + } else if ("serviceAccountSelector".equals(fieldName)) { + deserializedAllowedSubject.serviceAccountSelector = LabelSelector.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedAllowedSubject; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ArmImpactedResource.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ArmImpactedResource.java new file mode 100644 index 0000000000000..924a0100f35ff --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ArmImpactedResource.java @@ -0,0 +1,101 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * An Azure Resource Manager (ARM) resource impacted by a detected upgrade issue, identified by its ARM resource ID. + */ +@Immutable +public final class ArmImpactedResource extends UpgradeInsightImpactedResource { + /* + * The category of the impacted resource. + */ + private ImpactedResourceKind kind = ImpactedResourceKind.ARM; + + /* + * The ARM resource ID of the impacted resource. + */ + private String resourceId; + + /** + * Creates an instance of ArmImpactedResource class. + */ + private ArmImpactedResource() { + } + + /** + * Get the kind property: The category of the impacted resource. + * + * @return the kind value. + */ + @Override + public ImpactedResourceKind kind() { + return this.kind; + } + + /** + * Get the resourceId property: The ARM resource ID of the impacted resource. + * + * @return the resourceId value. + */ + public String resourceId() { + return this.resourceId; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("kind", this.kind == null ? null : this.kind.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ArmImpactedResource from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ArmImpactedResource 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 ArmImpactedResource. + */ + public static ArmImpactedResource fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ArmImpactedResource deserializedArmImpactedResource = new ArmImpactedResource(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("resourceType".equals(fieldName)) { + deserializedArmImpactedResource.withResourceType(reader.getString()); + } else if ("kind".equals(fieldName)) { + deserializedArmImpactedResource.kind = ImpactedResourceKind.fromString(reader.getString()); + } else if ("resourceId".equals(fieldName)) { + deserializedArmImpactedResource.resourceId = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedArmImpactedResource; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BackendPoolType.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BackendPoolType.java index d75309d6652bb..9264f52980eab 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BackendPoolType.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BackendPoolType.java @@ -23,6 +23,12 @@ public final class BackendPoolType extends ExpandableStringEnum */ public static final BackendPoolType NODE_IP = fromString("NodeIP"); + /** + * The type of the managed inbound Load Balancer BackendPool. Used only when loadBalancerSku is specified as + * 'service'. https://cloud-provider-azure.sigs.k8s.io/topics/loadbalancer/#configure-load-balancer-backend. + */ + public static final BackendPoolType POD_IP = fromString("PodIP"); + /** * Creates a new instance of BackendPoolType value. * diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BastionProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BastionProfile.java new file mode 100644 index 0000000000000..14725afab228a --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BastionProfile.java @@ -0,0 +1,239 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * Profile to enable managed Azure Bastion or reference to an existing Bastion for the managed cluster. + * See https://aka.ms/aks/BastionConnect for more details. + */ +@Fluent +public final class BastionProfile implements JsonSerializable { + /* + * Indicates whether managed bastion is enabled. + */ + private Boolean enabled; + + /* + * The resource ID of the managed bastion associated with the managed cluster. + */ + private String bastionId; + + /* + * The SKU of the managed bastion. + * + * Only Standard and Premium SKUs are supported. + * SKU downgrading is not allowed. To downgrade SKU, please disable then re-enable the managed bastion with new SKU. + * + * See https://aka.ms/aks/BastionSKUs for more details. + */ + private BastionSku sku; + + /* + * The scale units of the managed bastion. Default value is 2. + */ + private Integer scaleUnits; + + /* + * + * The resource ID of the public IP address associated with the managed bastion. + * + * When provided during creation, the managed bastion will reference this existing public IP address instead of + * creating a new one. + * The referenced public IP address must be in the same subscription and region as the managed cluster. + * + * When not provided during creation, AKS will automatically create a new public IP address. + * + * This field cannot be updated. To change IP address after creation, please disable and re-enable the managed + * bastion with the new public IP address. + */ + private String publicIpAddressId; + + /** + * Creates an instance of BastionProfile class. + */ + public BastionProfile() { + } + + /** + * Get the enabled property: Indicates whether managed bastion is enabled. + * + * @return the enabled value. + */ + public Boolean enabled() { + return this.enabled; + } + + /** + * Set the enabled property: Indicates whether managed bastion is enabled. + * + * @param enabled the enabled value to set. + * @return the BastionProfile object itself. + */ + public BastionProfile withEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Get the bastionId property: The resource ID of the managed bastion associated with the managed cluster. + * + * @return the bastionId value. + */ + public String bastionId() { + return this.bastionId; + } + + /** + * Get the sku property: The SKU of the managed bastion. + * + * Only Standard and Premium SKUs are supported. + * SKU downgrading is not allowed. To downgrade SKU, please disable then re-enable the managed bastion with new SKU. + * + * See https://aka.ms/aks/BastionSKUs for more details. + * + * @return the sku value. + */ + public BastionSku sku() { + return this.sku; + } + + /** + * Set the sku property: The SKU of the managed bastion. + * + * Only Standard and Premium SKUs are supported. + * SKU downgrading is not allowed. To downgrade SKU, please disable then re-enable the managed bastion with new SKU. + * + * See https://aka.ms/aks/BastionSKUs for more details. + * + * @param sku the sku value to set. + * @return the BastionProfile object itself. + */ + public BastionProfile withSku(BastionSku sku) { + this.sku = sku; + return this; + } + + /** + * Get the scaleUnits property: The scale units of the managed bastion. Default value is 2. + * + * @return the scaleUnits value. + */ + public Integer scaleUnits() { + return this.scaleUnits; + } + + /** + * Set the scaleUnits property: The scale units of the managed bastion. Default value is 2. + * + * @param scaleUnits the scaleUnits value to set. + * @return the BastionProfile object itself. + */ + public BastionProfile withScaleUnits(Integer scaleUnits) { + this.scaleUnits = scaleUnits; + return this; + } + + /** + * Get the publicIpAddressId property: + * The resource ID of the public IP address associated with the managed bastion. + * + * When provided during creation, the managed bastion will reference this existing public IP address instead of + * creating a new one. + * The referenced public IP address must be in the same subscription and region as the managed cluster. + * + * When not provided during creation, AKS will automatically create a new public IP address. + * + * This field cannot be updated. To change IP address after creation, please disable and re-enable the managed + * bastion with the new public IP address. + * + * @return the publicIpAddressId value. + */ + public String publicIpAddressId() { + return this.publicIpAddressId; + } + + /** + * Set the publicIpAddressId property: + * The resource ID of the public IP address associated with the managed bastion. + * + * When provided during creation, the managed bastion will reference this existing public IP address instead of + * creating a new one. + * The referenced public IP address must be in the same subscription and region as the managed cluster. + * + * When not provided during creation, AKS will automatically create a new public IP address. + * + * This field cannot be updated. To change IP address after creation, please disable and re-enable the managed + * bastion with the new public IP address. + * + * @param publicIpAddressId the publicIpAddressId value to set. + * @return the BastionProfile object itself. + */ + public BastionProfile withPublicIpAddressId(String publicIpAddressId) { + this.publicIpAddressId = publicIpAddressId; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeBooleanField("enabled", this.enabled); + jsonWriter.writeStringField("sku", this.sku == null ? null : this.sku.toString()); + jsonWriter.writeNumberField("scaleUnits", this.scaleUnits); + jsonWriter.writeStringField("publicIpAddressId", this.publicIpAddressId); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BastionProfile from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BastionProfile 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 BastionProfile. + */ + public static BastionProfile fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BastionProfile deserializedBastionProfile = new BastionProfile(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("enabled".equals(fieldName)) { + deserializedBastionProfile.enabled = reader.getNullable(JsonReader::getBoolean); + } else if ("bastionId".equals(fieldName)) { + deserializedBastionProfile.bastionId = reader.getString(); + } else if ("sku".equals(fieldName)) { + deserializedBastionProfile.sku = BastionSku.fromString(reader.getString()); + } else if ("scaleUnits".equals(fieldName)) { + deserializedBastionProfile.scaleUnits = reader.getNullable(JsonReader::getInt); + } else if ("publicIpAddressId".equals(fieldName)) { + deserializedBastionProfile.publicIpAddressId = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedBastionProfile; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BastionSku.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BastionSku.java new file mode 100644 index 0000000000000..eef6f83b10ae3 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BastionSku.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The SKU of the managed Azure Bastion. The default is 'Standard'. See https://aka.ms/aks/BastionSKUs for more + * information about the differences between Azure Bastion SKUs. + */ +public final class BastionSku extends ExpandableStringEnum { + /** + * Use the standard SKU of Azure Bastion. + */ + public static final BastionSku STANDARD = fromString("Standard"); + + /** + * Use the premium SKU of Azure Bastion. + */ + public static final BastionSku PREMIUM = fromString("Premium"); + + /** + * Creates a new instance of BastionSku value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public BastionSku() { + } + + /** + * Creates or finds a BastionSku from its string representation. + * + * @param name a name to look for. + * @return the corresponding BastionSku. + */ + public static BastionSku fromString(String name) { + return fromString(name, BastionSku.class); + } + + /** + * Gets known BastionSku values. + * + * @return known BastionSku values. + */ + public static Collection values() { + return values(BastionSku.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BootstrapAzureConfig.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BootstrapAzureConfig.java new file mode 100644 index 0000000000000..e3112563e73a1 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BootstrapAzureConfig.java @@ -0,0 +1,135 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Azure configuration returned as part of FlexNode bootstrap data. + */ +@Immutable +public final class BootstrapAzureConfig implements JsonSerializable { + /* + * Azure Resource Manager endpoint for the cloud environment. + */ + private String resourceManagerEndpoint; + + /* + * Target cluster identity. + */ + private BootstrapTargetCluster targetCluster; + + /* + * Target agent pool name. + */ + private String targetAgentPoolName; + + /* + * Bootstrap token for node enrollment. Do not cache or log. + */ + private BootstrapTokenInfo bootstrapToken; + + /** + * Creates an instance of BootstrapAzureConfig class. + */ + private BootstrapAzureConfig() { + } + + /** + * Get the resourceManagerEndpoint property: Azure Resource Manager endpoint for the cloud environment. + * + * @return the resourceManagerEndpoint value. + */ + public String resourceManagerEndpoint() { + return this.resourceManagerEndpoint; + } + + /** + * Get the targetCluster property: Target cluster identity. + * + * @return the targetCluster value. + */ + public BootstrapTargetCluster targetCluster() { + return this.targetCluster; + } + + /** + * Get the targetAgentPoolName property: Target agent pool name. + * + * @return the targetAgentPoolName value. + */ + public String targetAgentPoolName() { + return this.targetAgentPoolName; + } + + /** + * Get the bootstrapToken property: Bootstrap token for node enrollment. Do not cache or log. + * + * @return the bootstrapToken value. + */ + public BootstrapTokenInfo bootstrapToken() { + return this.bootstrapToken; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (targetCluster() != null) { + targetCluster().validate(); + } + if (bootstrapToken() != null) { + bootstrapToken().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BootstrapAzureConfig from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BootstrapAzureConfig 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 BootstrapAzureConfig. + */ + public static BootstrapAzureConfig fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BootstrapAzureConfig deserializedBootstrapAzureConfig = new BootstrapAzureConfig(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("resourceManagerEndpoint".equals(fieldName)) { + deserializedBootstrapAzureConfig.resourceManagerEndpoint = reader.getString(); + } else if ("targetCluster".equals(fieldName)) { + deserializedBootstrapAzureConfig.targetCluster = BootstrapTargetCluster.fromJson(reader); + } else if ("targetAgentPoolName".equals(fieldName)) { + deserializedBootstrapAzureConfig.targetAgentPoolName = reader.getString(); + } else if ("bootstrapToken".equals(fieldName)) { + deserializedBootstrapAzureConfig.bootstrapToken = BootstrapTokenInfo.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedBootstrapAzureConfig; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BootstrapComponentVersions.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BootstrapComponentVersions.java new file mode 100644 index 0000000000000..3b98a4452e9bc --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BootstrapComponentVersions.java @@ -0,0 +1,113 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Component versions returned as part of FlexNode bootstrap data. + */ +@Immutable +public final class BootstrapComponentVersions implements JsonSerializable { + /* + * Kubernetes version. + */ + private String kubernetes; + + /* + * Containerd version. + */ + private String containerd; + + /* + * Runc version. + */ + private String runc; + + /** + * Creates an instance of BootstrapComponentVersions class. + */ + private BootstrapComponentVersions() { + } + + /** + * Get the kubernetes property: Kubernetes version. + * + * @return the kubernetes value. + */ + public String kubernetes() { + return this.kubernetes; + } + + /** + * Get the containerd property: Containerd version. + * + * @return the containerd value. + */ + public String containerd() { + return this.containerd; + } + + /** + * Get the runc property: Runc version. + * + * @return the runc value. + */ + public String runc() { + return this.runc; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BootstrapComponentVersions from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BootstrapComponentVersions 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 BootstrapComponentVersions. + */ + public static BootstrapComponentVersions fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BootstrapComponentVersions deserializedBootstrapComponentVersions = new BootstrapComponentVersions(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("kubernetes".equals(fieldName)) { + deserializedBootstrapComponentVersions.kubernetes = reader.getString(); + } else if ("containerd".equals(fieldName)) { + deserializedBootstrapComponentVersions.containerd = reader.getString(); + } else if ("runc".equals(fieldName)) { + deserializedBootstrapComponentVersions.runc = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedBootstrapComponentVersions; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BootstrapKubeletConfig.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BootstrapKubeletConfig.java new file mode 100644 index 0000000000000..a6d4157bdebe3 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BootstrapKubeletConfig.java @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Kubelet configuration returned as part of FlexNode bootstrap data. + */ +@Immutable +public final class BootstrapKubeletConfig implements JsonSerializable { + /* + * FQDN of the Kubernetes API server. + */ + private String clusterFQDN; + + /* + * Base64-encoded PEM certificate of the cluster CA. Do not cache or log. + */ + private String caCertData; + + /** + * Creates an instance of BootstrapKubeletConfig class. + */ + private BootstrapKubeletConfig() { + } + + /** + * Get the clusterFQDN property: FQDN of the Kubernetes API server. + * + * @return the clusterFQDN value. + */ + public String clusterFQDN() { + return this.clusterFQDN; + } + + /** + * Get the caCertData property: Base64-encoded PEM certificate of the cluster CA. Do not cache or log. + * + * @return the caCertData value. + */ + public String caCertData() { + return this.caCertData; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BootstrapKubeletConfig from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BootstrapKubeletConfig 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 BootstrapKubeletConfig. + */ + public static BootstrapKubeletConfig fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BootstrapKubeletConfig deserializedBootstrapKubeletConfig = new BootstrapKubeletConfig(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("clusterFQDN".equals(fieldName)) { + deserializedBootstrapKubeletConfig.clusterFQDN = reader.getString(); + } else if ("caCertData".equals(fieldName)) { + deserializedBootstrapKubeletConfig.caCertData = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedBootstrapKubeletConfig; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BootstrapNetworkingConfig.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BootstrapNetworkingConfig.java new file mode 100644 index 0000000000000..968f08eb651f8 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BootstrapNetworkingConfig.java @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Network configuration returned as part of FlexNode bootstrap data. + */ +@Immutable +public final class BootstrapNetworkingConfig implements JsonSerializable { + /* + * IP address of the cluster DNS service. + */ + private String dnsServiceIP; + + /* + * CNI plugin version. + */ + private String cniVersion; + + /** + * Creates an instance of BootstrapNetworkingConfig class. + */ + private BootstrapNetworkingConfig() { + } + + /** + * Get the dnsServiceIP property: IP address of the cluster DNS service. + * + * @return the dnsServiceIP value. + */ + public String dnsServiceIP() { + return this.dnsServiceIP; + } + + /** + * Get the cniVersion property: CNI plugin version. + * + * @return the cniVersion value. + */ + public String cniVersion() { + return this.cniVersion; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BootstrapNetworkingConfig from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BootstrapNetworkingConfig 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 BootstrapNetworkingConfig. + */ + public static BootstrapNetworkingConfig fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BootstrapNetworkingConfig deserializedBootstrapNetworkingConfig = new BootstrapNetworkingConfig(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("dnsServiceIP".equals(fieldName)) { + deserializedBootstrapNetworkingConfig.dnsServiceIP = reader.getString(); + } else if ("cniVersion".equals(fieldName)) { + deserializedBootstrapNetworkingConfig.cniVersion = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedBootstrapNetworkingConfig; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BootstrapNodeConfig.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BootstrapNodeConfig.java new file mode 100644 index 0000000000000..ffc280a56faaa --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BootstrapNodeConfig.java @@ -0,0 +1,136 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; +import java.util.Map; + +/** + * Node configuration returned as part of FlexNode bootstrap data. + */ +@Immutable +public final class BootstrapNodeConfig implements JsonSerializable { + /* + * Maximum pods per node. + */ + private Integer maxPods; + + /* + * Node labels to apply during registration. + */ + private Map labels; + + /* + * Node taints in the format 'key=value:effect'. + */ + private List taints; + + /* + * Kubelet configuration. + */ + private BootstrapKubeletConfig kubelet; + + /** + * Creates an instance of BootstrapNodeConfig class. + */ + private BootstrapNodeConfig() { + } + + /** + * Get the maxPods property: Maximum pods per node. + * + * @return the maxPods value. + */ + public Integer maxPods() { + return this.maxPods; + } + + /** + * Get the labels property: Node labels to apply during registration. + * + * @return the labels value. + */ + public Map labels() { + return this.labels; + } + + /** + * Get the taints property: Node taints in the format 'key=value:effect'. + * + * @return the taints value. + */ + public List taints() { + return this.taints; + } + + /** + * Get the kubelet property: Kubelet configuration. + * + * @return the kubelet value. + */ + public BootstrapKubeletConfig kubelet() { + return this.kubelet; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (kubelet() != null) { + kubelet().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BootstrapNodeConfig from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BootstrapNodeConfig 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 BootstrapNodeConfig. + */ + public static BootstrapNodeConfig fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BootstrapNodeConfig deserializedBootstrapNodeConfig = new BootstrapNodeConfig(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("maxPods".equals(fieldName)) { + deserializedBootstrapNodeConfig.maxPods = reader.getNullable(JsonReader::getInt); + } else if ("labels".equals(fieldName)) { + Map labels = reader.readMap(reader1 -> reader1.getString()); + deserializedBootstrapNodeConfig.labels = labels; + } else if ("taints".equals(fieldName)) { + List taints = reader.readArray(reader1 -> reader1.getString()); + deserializedBootstrapNodeConfig.taints = taints; + } else if ("kubelet".equals(fieldName)) { + deserializedBootstrapNodeConfig.kubelet = BootstrapKubeletConfig.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedBootstrapNodeConfig; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BootstrapTargetCluster.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BootstrapTargetCluster.java new file mode 100644 index 0000000000000..d99ef52b2237b --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BootstrapTargetCluster.java @@ -0,0 +1,81 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Target AKS cluster for FlexNode bootstrap. + */ +@Immutable +public final class BootstrapTargetCluster implements JsonSerializable { + /* + * Azure resource ID of the target AKS cluster. + */ + private String resourceId; + + /** + * Creates an instance of BootstrapTargetCluster class. + */ + private BootstrapTargetCluster() { + } + + /** + * Get the resourceId property: Azure resource ID of the target AKS cluster. + * + * @return the resourceId value. + */ + public String resourceId() { + return this.resourceId; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BootstrapTargetCluster from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BootstrapTargetCluster 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 BootstrapTargetCluster. + */ + public static BootstrapTargetCluster fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BootstrapTargetCluster deserializedBootstrapTargetCluster = new BootstrapTargetCluster(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("resourceId".equals(fieldName)) { + deserializedBootstrapTargetCluster.resourceId = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedBootstrapTargetCluster; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BootstrapTokenInfo.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BootstrapTokenInfo.java new file mode 100644 index 0000000000000..79aa7d237cc12 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/BootstrapTokenInfo.java @@ -0,0 +1,81 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Bootstrap token information. + */ +@Immutable +public final class BootstrapTokenInfo implements JsonSerializable { + /* + * Short-lived bootstrap token for kubelet. Do not cache or log. + */ + private String token; + + /** + * Creates an instance of BootstrapTokenInfo class. + */ + private BootstrapTokenInfo() { + } + + /** + * Get the token property: Short-lived bootstrap token for kubelet. Do not cache or log. + * + * @return the token value. + */ + public String token() { + return this.token; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BootstrapTokenInfo from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BootstrapTokenInfo 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 BootstrapTokenInfo. + */ + public static BootstrapTokenInfo fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BootstrapTokenInfo deserializedBootstrapTokenInfo = new BootstrapTokenInfo(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("token".equals(fieldName)) { + deserializedBootstrapTokenInfo.token = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedBootstrapTokenInfo; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/CapacityReservation.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/CapacityReservation.java new file mode 100644 index 0000000000000..5a02ffc1afcb7 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/CapacityReservation.java @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * The Capacity Reservation to provide virtual machines from a reserved group of Machines. + */ +@Fluent +public final class CapacityReservation implements JsonSerializable { + /* + * The Capacity Reservation Group to provide virtual machines from a reserved group of Machines + */ + private CapacityReservationGroup capacityReservationGroup; + + /** + * Creates an instance of CapacityReservation class. + */ + public CapacityReservation() { + } + + /** + * Get the capacityReservationGroup property: The Capacity Reservation Group to provide virtual machines from a + * reserved group of Machines. + * + * @return the capacityReservationGroup value. + */ + public CapacityReservationGroup capacityReservationGroup() { + return this.capacityReservationGroup; + } + + /** + * Set the capacityReservationGroup property: The Capacity Reservation Group to provide virtual machines from a + * reserved group of Machines. + * + * @param capacityReservationGroup the capacityReservationGroup value to set. + * @return the CapacityReservation object itself. + */ + public CapacityReservation withCapacityReservationGroup(CapacityReservationGroup capacityReservationGroup) { + this.capacityReservationGroup = capacityReservationGroup; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (capacityReservationGroup() != null) { + capacityReservationGroup().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("capacityReservationGroup", this.capacityReservationGroup); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CapacityReservation from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CapacityReservation 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 CapacityReservation. + */ + public static CapacityReservation fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CapacityReservation deserializedCapacityReservation = new CapacityReservation(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("capacityReservationGroup".equals(fieldName)) { + deserializedCapacityReservation.capacityReservationGroup + = CapacityReservationGroup.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedCapacityReservation; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/CapacityReservationGroup.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/CapacityReservationGroup.java new file mode 100644 index 0000000000000..409c1d2d3a23b --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/CapacityReservationGroup.java @@ -0,0 +1,105 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * The Capacity Reservation Group to provide virtual machines from a reserved group of Machines. + */ +@Fluent +public final class CapacityReservationGroup implements JsonSerializable { + /* + * The fully qualified resource ID of the Capacity Reservation Group to provide virtual machines from a reserved + * group of Machines. This is of the form: + * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Compute/ + * capacityreservationgroups/{capacityReservationGroupName}' Customers use it to create a Machine with a specified + * CRG. For more information see [Capacity Reservation](aka.ms/CapacityReservation) + */ + private String id; + + /** + * Creates an instance of CapacityReservationGroup class. + */ + public CapacityReservationGroup() { + } + + /** + * Get the id property: The fully qualified resource ID of the Capacity Reservation Group to provide virtual + * machines from a reserved group of Machines. This is of the form: + * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Compute/capacityreservationgroups/{capacityReservationGroupName}' + * Customers use it to create a Machine with a specified CRG. For more information see [Capacity + * Reservation](aka.ms/CapacityReservation). + * + * @return the id value. + */ + public String id() { + return this.id; + } + + /** + * Set the id property: The fully qualified resource ID of the Capacity Reservation Group to provide virtual + * machines from a reserved group of Machines. This is of the form: + * '/subscriptions/{subscriptionId}/resourcegroups/{resourceGroupName}/providers/Microsoft.Compute/capacityreservationgroups/{capacityReservationGroupName}' + * Customers use it to create a Machine with a specified CRG. For more information see [Capacity + * Reservation](aka.ms/CapacityReservation). + * + * @param id the id value to set. + * @return the CapacityReservationGroup object itself. + */ + public CapacityReservationGroup withId(String id) { + this.id = id; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("id", this.id); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CapacityReservationGroup from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CapacityReservationGroup 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 CapacityReservationGroup. + */ + public static CapacityReservationGroup fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CapacityReservationGroup deserializedCapacityReservationGroup = new CapacityReservationGroup(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedCapacityReservationGroup.id = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedCapacityReservationGroup; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/CloudShellNetworkProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/CloudShellNetworkProfile.java new file mode 100644 index 0000000000000..b3941d0f21ddc --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/CloudShellNetworkProfile.java @@ -0,0 +1,142 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * Network resources used by Cloud Shell. AKS peers the subnet's virtual network with the cluster virtual network. + * For Custom resources, their address spaces must not overlap. See https://aka.ms/aks/CloudShellConnect. + */ +@Fluent +public final class CloudShellNetworkProfile implements JsonSerializable { + /* + * Dedicated IPv4 subnet used by Cloud Shell containers. For Custom networking, this subnet must be + * delegated to Microsoft.ContainerInstance/containerGroups and be /24 or larger. Grant the cluster identity + * Network Contributor on the containing virtual network and grant the Azure Container Instance service principal + * Network Contributor on this subnet or its containing virtual network. Required when Cloud Shell mode is Custom. + */ + private String subnetId; + + /* + * + * Azure Relay namespace used by Cloud Shell. For Custom networking, this existing namespace is required + * with subnetId. Grant the cluster identity Reader and the Azure Container Instance service principal Contributor + * on the namespace. Required when Cloud Shell mode is Custom. + */ + private String relayNamespaceId; + + /** + * Creates an instance of CloudShellNetworkProfile class. + */ + public CloudShellNetworkProfile() { + } + + /** + * Get the subnetId property: Dedicated IPv4 subnet used by Cloud Shell containers. For Custom networking, this + * subnet must be + * delegated to Microsoft.ContainerInstance/containerGroups and be /24 or larger. Grant the cluster identity + * Network Contributor on the containing virtual network and grant the Azure Container Instance service principal + * Network Contributor on this subnet or its containing virtual network. Required when Cloud Shell mode is Custom. + * + * @return the subnetId value. + */ + public String subnetId() { + return this.subnetId; + } + + /** + * Set the subnetId property: Dedicated IPv4 subnet used by Cloud Shell containers. For Custom networking, this + * subnet must be + * delegated to Microsoft.ContainerInstance/containerGroups and be /24 or larger. Grant the cluster identity + * Network Contributor on the containing virtual network and grant the Azure Container Instance service principal + * Network Contributor on this subnet or its containing virtual network. Required when Cloud Shell mode is Custom. + * + * @param subnetId the subnetId value to set. + * @return the CloudShellNetworkProfile object itself. + */ + public CloudShellNetworkProfile withSubnetId(String subnetId) { + this.subnetId = subnetId; + return this; + } + + /** + * Get the relayNamespaceId property: + * Azure Relay namespace used by Cloud Shell. For Custom networking, this existing namespace is required + * with subnetId. Grant the cluster identity Reader and the Azure Container Instance service principal Contributor + * on the namespace. Required when Cloud Shell mode is Custom. + * + * @return the relayNamespaceId value. + */ + public String relayNamespaceId() { + return this.relayNamespaceId; + } + + /** + * Set the relayNamespaceId property: + * Azure Relay namespace used by Cloud Shell. For Custom networking, this existing namespace is required + * with subnetId. Grant the cluster identity Reader and the Azure Container Instance service principal Contributor + * on the namespace. Required when Cloud Shell mode is Custom. + * + * @param relayNamespaceId the relayNamespaceId value to set. + * @return the CloudShellNetworkProfile object itself. + */ + public CloudShellNetworkProfile withRelayNamespaceId(String relayNamespaceId) { + this.relayNamespaceId = relayNamespaceId; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("subnetId", this.subnetId); + jsonWriter.writeStringField("relayNamespaceId", this.relayNamespaceId); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CloudShellNetworkProfile from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CloudShellNetworkProfile 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 CloudShellNetworkProfile. + */ + public static CloudShellNetworkProfile fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CloudShellNetworkProfile deserializedCloudShellNetworkProfile = new CloudShellNetworkProfile(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("subnetId".equals(fieldName)) { + deserializedCloudShellNetworkProfile.subnetId = reader.getString(); + } else if ("relayNamespaceId".equals(fieldName)) { + deserializedCloudShellNetworkProfile.relayNamespaceId = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedCloudShellNetworkProfile; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/CloudShellProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/CloudShellProfile.java new file mode 100644 index 0000000000000..8cc5fce94ffc7 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/CloudShellProfile.java @@ -0,0 +1,205 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * Cloud Shell connectivity and storage settings for a private managed cluster. + * For more information, see https://aka.ms/aks/CloudShellConnect. + */ +@Fluent +public final class CloudShellProfile implements JsonSerializable { + /* + * + * Whether Cloud Shell connectivity is disabled, uses AKS-managed network resources, or uses user-provided + * network resources. Defaults to Disabled when omitted during create. On update, omission preserves the existing + * mode. Setting this property to Disabled removes AKS-created resources and connectivity artifacts. For Custom + * mode, AKS unregisters the user-provided resources but does not delete them. + */ + private CloudShellProfileMode mode; + + /* + * Network resources used by Cloud Shell. When configuring Custom networking, users must provide + * both subnetId and relayNamespaceId. When updating an existing Custom configuration, either resource ID can be + * changed independently; omitted fields preserve their existing values. In Custom mode, AKS returns the + * user-provided + * values. In Managed mode, AKS populates the effective values. Users may omit Managed values or resubmit values + * returned by GET unchanged; different values are rejected. This property must be omitted when mode is Disabled. + * See https://aka.ms/aks/CloudShellConnect for Custom networking requirements. + */ + private CloudShellNetworkProfile network; + + /* + * Storage resources used for Cloud Shell file persistence. When configuring Custom storage, users + * must provide both storageAccountId and fileShareName. When updating an existing Custom configuration, either + * property can be changed independently; omitted fields preserve their existing values. In Custom mode, AKS returns + * the user-provided values. In Managed mode, AKS populates the effective values. Users may omit Managed values or + * resubmit values returned by GET unchanged; different values are rejected. Both properties must be omitted when + * mode is Disabled. See https://aka.ms/aks/CloudShellConnect for Custom storage requirements. + */ + private CloudShellStorageProfile storage; + + /** + * Creates an instance of CloudShellProfile class. + */ + public CloudShellProfile() { + } + + /** + * Get the mode property: + * Whether Cloud Shell connectivity is disabled, uses AKS-managed network resources, or uses user-provided + * network resources. Defaults to Disabled when omitted during create. On update, omission preserves the existing + * mode. Setting this property to Disabled removes AKS-created resources and connectivity artifacts. For Custom + * mode, AKS unregisters the user-provided resources but does not delete them. + * + * @return the mode value. + */ + public CloudShellProfileMode mode() { + return this.mode; + } + + /** + * Set the mode property: + * Whether Cloud Shell connectivity is disabled, uses AKS-managed network resources, or uses user-provided + * network resources. Defaults to Disabled when omitted during create. On update, omission preserves the existing + * mode. Setting this property to Disabled removes AKS-created resources and connectivity artifacts. For Custom + * mode, AKS unregisters the user-provided resources but does not delete them. + * + * @param mode the mode value to set. + * @return the CloudShellProfile object itself. + */ + public CloudShellProfile withMode(CloudShellProfileMode mode) { + this.mode = mode; + return this; + } + + /** + * Get the network property: Network resources used by Cloud Shell. When configuring Custom networking, users must + * provide + * both subnetId and relayNamespaceId. When updating an existing Custom configuration, either resource ID can be + * changed independently; omitted fields preserve their existing values. In Custom mode, AKS returns the + * user-provided + * values. In Managed mode, AKS populates the effective values. Users may omit Managed values or resubmit values + * returned by GET unchanged; different values are rejected. This property must be omitted when mode is Disabled. + * See https://aka.ms/aks/CloudShellConnect for Custom networking requirements. + * + * @return the network value. + */ + public CloudShellNetworkProfile network() { + return this.network; + } + + /** + * Set the network property: Network resources used by Cloud Shell. When configuring Custom networking, users must + * provide + * both subnetId and relayNamespaceId. When updating an existing Custom configuration, either resource ID can be + * changed independently; omitted fields preserve their existing values. In Custom mode, AKS returns the + * user-provided + * values. In Managed mode, AKS populates the effective values. Users may omit Managed values or resubmit values + * returned by GET unchanged; different values are rejected. This property must be omitted when mode is Disabled. + * See https://aka.ms/aks/CloudShellConnect for Custom networking requirements. + * + * @param network the network value to set. + * @return the CloudShellProfile object itself. + */ + public CloudShellProfile withNetwork(CloudShellNetworkProfile network) { + this.network = network; + return this; + } + + /** + * Get the storage property: Storage resources used for Cloud Shell file persistence. When configuring Custom + * storage, users + * must provide both storageAccountId and fileShareName. When updating an existing Custom configuration, either + * property can be changed independently; omitted fields preserve their existing values. In Custom mode, AKS returns + * the user-provided values. In Managed mode, AKS populates the effective values. Users may omit Managed values or + * resubmit values returned by GET unchanged; different values are rejected. Both properties must be omitted when + * mode is Disabled. See https://aka.ms/aks/CloudShellConnect for Custom storage requirements. + * + * @return the storage value. + */ + public CloudShellStorageProfile storage() { + return this.storage; + } + + /** + * Set the storage property: Storage resources used for Cloud Shell file persistence. When configuring Custom + * storage, users + * must provide both storageAccountId and fileShareName. When updating an existing Custom configuration, either + * property can be changed independently; omitted fields preserve their existing values. In Custom mode, AKS returns + * the user-provided values. In Managed mode, AKS populates the effective values. Users may omit Managed values or + * resubmit values returned by GET unchanged; different values are rejected. Both properties must be omitted when + * mode is Disabled. See https://aka.ms/aks/CloudShellConnect for Custom storage requirements. + * + * @param storage the storage value to set. + * @return the CloudShellProfile object itself. + */ + public CloudShellProfile withStorage(CloudShellStorageProfile storage) { + this.storage = storage; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (network() != null) { + network().validate(); + } + if (storage() != null) { + storage().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("mode", this.mode == null ? null : this.mode.toString()); + jsonWriter.writeJsonField("network", this.network); + jsonWriter.writeJsonField("storage", this.storage); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CloudShellProfile from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CloudShellProfile 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 CloudShellProfile. + */ + public static CloudShellProfile fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CloudShellProfile deserializedCloudShellProfile = new CloudShellProfile(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("mode".equals(fieldName)) { + deserializedCloudShellProfile.mode = CloudShellProfileMode.fromString(reader.getString()); + } else if ("network".equals(fieldName)) { + deserializedCloudShellProfile.network = CloudShellNetworkProfile.fromJson(reader); + } else if ("storage".equals(fieldName)) { + deserializedCloudShellProfile.storage = CloudShellStorageProfile.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedCloudShellProfile; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/CloudShellProfileMode.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/CloudShellProfileMode.java new file mode 100644 index 0000000000000..7ae2f13c202c0 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/CloudShellProfileMode.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.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Cloud Shell connectivity mode. + */ +public final class CloudShellProfileMode extends ExpandableStringEnum { + /** + * Cloud Shell connectivity is disabled. + */ + public static final CloudShellProfileMode DISABLED = fromString("Disabled"); + + /** + * Cloud Shell connectivity uses network resources managed by AKS. + */ + public static final CloudShellProfileMode MANAGED = fromString("Managed"); + + /** + * Cloud Shell connectivity uses network resources provided by the user. + */ + public static final CloudShellProfileMode CUSTOM = fromString("Custom"); + + /** + * Creates a new instance of CloudShellProfileMode value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public CloudShellProfileMode() { + } + + /** + * Creates or finds a CloudShellProfileMode from its string representation. + * + * @param name a name to look for. + * @return the corresponding CloudShellProfileMode. + */ + public static CloudShellProfileMode fromString(String name) { + return fromString(name, CloudShellProfileMode.class); + } + + /** + * Gets known CloudShellProfileMode values. + * + * @return known CloudShellProfileMode values. + */ + public static Collection values() { + return values(CloudShellProfileMode.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/CloudShellStorageProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/CloudShellStorageProfile.java new file mode 100644 index 0000000000000..aa3293c5fc1db --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/CloudShellStorageProfile.java @@ -0,0 +1,162 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * Storage used for Cloud Shell file persistence. + */ +@Fluent +public final class CloudShellStorageProfile implements JsonSerializable { + /* + * + * Whether persistent storage is disabled, managed by AKS, or provided by the user. Defaults to Disabled when + * omitted during initial Cloud Shell enablement. On update, omission preserves the existing mode. + */ + private CloudShellStorageProfileMode mode; + + /* + * + * Storage account used for Cloud Shell files. For Custom storage, grant the cluster identity + * Storage File Data SMB Share Contributor on this existing storage account. Required when mode is Custom. + */ + private String storageAccountId; + + /* + * File share used for Cloud Shell files. Required when mode is Custom. + */ + private String fileShareName; + + /** + * Creates an instance of CloudShellStorageProfile class. + */ + public CloudShellStorageProfile() { + } + + /** + * Get the mode property: + * Whether persistent storage is disabled, managed by AKS, or provided by the user. Defaults to Disabled when + * omitted during initial Cloud Shell enablement. On update, omission preserves the existing mode. + * + * @return the mode value. + */ + public CloudShellStorageProfileMode mode() { + return this.mode; + } + + /** + * Set the mode property: + * Whether persistent storage is disabled, managed by AKS, or provided by the user. Defaults to Disabled when + * omitted during initial Cloud Shell enablement. On update, omission preserves the existing mode. + * + * @param mode the mode value to set. + * @return the CloudShellStorageProfile object itself. + */ + public CloudShellStorageProfile withMode(CloudShellStorageProfileMode mode) { + this.mode = mode; + return this; + } + + /** + * Get the storageAccountId property: + * Storage account used for Cloud Shell files. For Custom storage, grant the cluster identity + * Storage File Data SMB Share Contributor on this existing storage account. Required when mode is Custom. + * + * @return the storageAccountId value. + */ + public String storageAccountId() { + return this.storageAccountId; + } + + /** + * Set the storageAccountId property: + * Storage account used for Cloud Shell files. For Custom storage, grant the cluster identity + * Storage File Data SMB Share Contributor on this existing storage account. Required when mode is Custom. + * + * @param storageAccountId the storageAccountId value to set. + * @return the CloudShellStorageProfile object itself. + */ + public CloudShellStorageProfile withStorageAccountId(String storageAccountId) { + this.storageAccountId = storageAccountId; + return this; + } + + /** + * Get the fileShareName property: File share used for Cloud Shell files. Required when mode is Custom. + * + * @return the fileShareName value. + */ + public String fileShareName() { + return this.fileShareName; + } + + /** + * Set the fileShareName property: File share used for Cloud Shell files. Required when mode is Custom. + * + * @param fileShareName the fileShareName value to set. + * @return the CloudShellStorageProfile object itself. + */ + public CloudShellStorageProfile withFileShareName(String fileShareName) { + this.fileShareName = fileShareName; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("mode", this.mode == null ? null : this.mode.toString()); + jsonWriter.writeStringField("storageAccountId", this.storageAccountId); + jsonWriter.writeStringField("fileShareName", this.fileShareName); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CloudShellStorageProfile from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CloudShellStorageProfile 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 CloudShellStorageProfile. + */ + public static CloudShellStorageProfile fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CloudShellStorageProfile deserializedCloudShellStorageProfile = new CloudShellStorageProfile(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("mode".equals(fieldName)) { + deserializedCloudShellStorageProfile.mode + = CloudShellStorageProfileMode.fromString(reader.getString()); + } else if ("storageAccountId".equals(fieldName)) { + deserializedCloudShellStorageProfile.storageAccountId = reader.getString(); + } else if ("fileShareName".equals(fieldName)) { + deserializedCloudShellStorageProfile.fileShareName = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedCloudShellStorageProfile; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/CloudShellStorageProfileMode.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/CloudShellStorageProfileMode.java new file mode 100644 index 0000000000000..e0d818df24732 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/CloudShellStorageProfileMode.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.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * How Cloud Shell storage resources are managed. + */ +public final class CloudShellStorageProfileMode extends ExpandableStringEnum { + /** + * Persistent storage is disabled. + */ + public static final CloudShellStorageProfileMode DISABLED = fromString("Disabled"); + + /** + * AKS manages the storage resources. + */ + public static final CloudShellStorageProfileMode MANAGED = fromString("Managed"); + + /** + * The user provides the storage resources. + */ + public static final CloudShellStorageProfileMode CUSTOM = fromString("Custom"); + + /** + * Creates a new instance of CloudShellStorageProfileMode value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public CloudShellStorageProfileMode() { + } + + /** + * Creates or finds a CloudShellStorageProfileMode from its string representation. + * + * @param name a name to look for. + * @return the corresponding CloudShellStorageProfileMode. + */ + public static CloudShellStorageProfileMode fromString(String name) { + return fromString(name, CloudShellStorageProfileMode.class); + } + + /** + * Gets known CloudShellStorageProfileMode values. + * + * @return known CloudShellStorageProfileMode values. + */ + public static Collection values() { + return values(CloudShellStorageProfileMode.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ClusterApiConnectivityProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ClusterApiConnectivityProfile.java new file mode 100644 index 0000000000000..9e71b21655bb6 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ClusterApiConnectivityProfile.java @@ -0,0 +1,134 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * Configuration for accessing the managed cluster API through Bastion or Cloud Shell. + */ +@Fluent +public final class ClusterApiConnectivityProfile implements JsonSerializable { + /* + * Azure Bastion connectivity settings. + * See https://aka.ms/aks/BastionConnect for more details. + */ + private BastionProfile bastion; + + /* + * Cloud Shell connectivity settings. + * For more information, see https://aka.ms/aks/CloudShellConnect. + */ + private CloudShellProfile cloudShell; + + /** + * Creates an instance of ClusterApiConnectivityProfile class. + */ + public ClusterApiConnectivityProfile() { + } + + /** + * Get the bastion property: Azure Bastion connectivity settings. + * See https://aka.ms/aks/BastionConnect for more details. + * + * @return the bastion value. + */ + public BastionProfile bastion() { + return this.bastion; + } + + /** + * Set the bastion property: Azure Bastion connectivity settings. + * See https://aka.ms/aks/BastionConnect for more details. + * + * @param bastion the bastion value to set. + * @return the ClusterApiConnectivityProfile object itself. + */ + public ClusterApiConnectivityProfile withBastion(BastionProfile bastion) { + this.bastion = bastion; + return this; + } + + /** + * Get the cloudShell property: Cloud Shell connectivity settings. + * For more information, see https://aka.ms/aks/CloudShellConnect. + * + * @return the cloudShell value. + */ + public CloudShellProfile cloudShell() { + return this.cloudShell; + } + + /** + * Set the cloudShell property: Cloud Shell connectivity settings. + * For more information, see https://aka.ms/aks/CloudShellConnect. + * + * @param cloudShell the cloudShell value to set. + * @return the ClusterApiConnectivityProfile object itself. + */ + public ClusterApiConnectivityProfile withCloudShell(CloudShellProfile cloudShell) { + this.cloudShell = cloudShell; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (bastion() != null) { + bastion().validate(); + } + if (cloudShell() != null) { + cloudShell().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("bastion", this.bastion); + jsonWriter.writeJsonField("cloudShell", this.cloudShell); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterApiConnectivityProfile from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterApiConnectivityProfile 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 ClusterApiConnectivityProfile. + */ + public static ClusterApiConnectivityProfile fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterApiConnectivityProfile deserializedClusterApiConnectivityProfile + = new ClusterApiConnectivityProfile(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("bastion".equals(fieldName)) { + deserializedClusterApiConnectivityProfile.bastion = BastionProfile.fromJson(reader); + } else if ("cloudShell".equals(fieldName)) { + deserializedClusterApiConnectivityProfile.cloudShell = CloudShellProfile.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedClusterApiConnectivityProfile; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ClusterServiceLoadBalancerHealthProbeMode.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ClusterServiceLoadBalancerHealthProbeMode.java new file mode 100644 index 0000000000000..121a5242a2146 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ClusterServiceLoadBalancerHealthProbeMode.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.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The health probing behavior for External Traffic Policy Cluster services. + */ +public final class ClusterServiceLoadBalancerHealthProbeMode + extends ExpandableStringEnum { + /** + * Each External Traffic Policy Cluster service will have its own health probe targeting service nodePort. + */ + public static final ClusterServiceLoadBalancerHealthProbeMode SERVICE_NODE_PORT = fromString("ServiceNodePort"); + + /** + * All External Traffic Policy Cluster services in a Standard Load Balancer will have a dedicated health probe + * targeting the backend nodes' kube-proxy health check port 10256. + */ + public static final ClusterServiceLoadBalancerHealthProbeMode SHARED = fromString("Shared"); + + /** + * Creates a new instance of ClusterServiceLoadBalancerHealthProbeMode value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ClusterServiceLoadBalancerHealthProbeMode() { + } + + /** + * Creates or finds a ClusterServiceLoadBalancerHealthProbeMode from its string representation. + * + * @param name a name to look for. + * @return the corresponding ClusterServiceLoadBalancerHealthProbeMode. + */ + public static ClusterServiceLoadBalancerHealthProbeMode fromString(String name) { + return fromString(name, ClusterServiceLoadBalancerHealthProbeMode.class); + } + + /** + * Gets known ClusterServiceLoadBalancerHealthProbeMode values. + * + * @return known ClusterServiceLoadBalancerHealthProbeMode values. + */ + public static Collection values() { + return values(ClusterServiceLoadBalancerHealthProbeMode.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ClusterUpgradeSettings.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ClusterUpgradeSettings.java index 92a65c004c003..66e424e4bc1fe 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ClusterUpgradeSettings.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ClusterUpgradeSettings.java @@ -21,6 +21,13 @@ public final class ClusterUpgradeSettings implements JsonSerializable { + /* + * Component name. + */ + private String name; + + /* + * Component version. + */ + private String version; + + /* + * If upgraded component version contains breaking changes from the current version. To see a detailed description + * of what the breaking changes are, visit + * https://learn.microsoft.com/azure/aks/supported-kubernetes-versions?tabs=azure-cli#aks-components-breaking- + * changes-by-version. + */ + private Boolean hasBreakingChanges; + + /** + * Creates an instance of Component class. + */ + private Component() { + } + + /** + * Get the name property: Component name. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Get the version property: Component version. + * + * @return the version value. + */ + public String version() { + return this.version; + } + + /** + * Get the hasBreakingChanges property: If upgraded component version contains breaking changes from the current + * version. To see a detailed description of what the breaking changes are, visit + * https://learn.microsoft.com/azure/aks/supported-kubernetes-versions?tabs=azure-cli#aks-components-breaking-changes-by-version. + * + * @return the hasBreakingChanges value. + */ + public Boolean hasBreakingChanges() { + return this.hasBreakingChanges; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("name", this.name); + jsonWriter.writeStringField("version", this.version); + jsonWriter.writeBooleanField("hasBreakingChanges", this.hasBreakingChanges); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of Component from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of Component 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 Component. + */ + public static Component fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + Component deserializedComponent = new Component(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + deserializedComponent.name = reader.getString(); + } else if ("version".equals(fieldName)) { + deserializedComponent.version = reader.getString(); + } else if ("hasBreakingChanges".equals(fieldName)) { + deserializedComponent.hasBreakingChanges = reader.getNullable(JsonReader::getBoolean); + } else { + reader.skipChildren(); + } + } + + return deserializedComponent; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ComponentsByRelease.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ComponentsByRelease.java new file mode 100644 index 0000000000000..79a7f0ef9245a --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ComponentsByRelease.java @@ -0,0 +1,104 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * components of given Kubernetes version. + */ +@Immutable +public final class ComponentsByRelease implements JsonSerializable { + /* + * The Kubernetes version (major.minor). + */ + private String kubernetesVersion; + + /* + * components of current or upgraded Kubernetes version in the cluster. + */ + private List components; + + /** + * Creates an instance of ComponentsByRelease class. + */ + private ComponentsByRelease() { + } + + /** + * Get the kubernetesVersion property: The Kubernetes version (major.minor). + * + * @return the kubernetesVersion value. + */ + public String kubernetesVersion() { + return this.kubernetesVersion; + } + + /** + * Get the components property: components of current or upgraded Kubernetes version in the cluster. + * + * @return the components value. + */ + public List components() { + return this.components; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (components() != null) { + components().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("kubernetesVersion", this.kubernetesVersion); + jsonWriter.writeArrayField("components", this.components, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ComponentsByRelease from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ComponentsByRelease 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 ComponentsByRelease. + */ + public static ComponentsByRelease fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ComponentsByRelease deserializedComponentsByRelease = new ComponentsByRelease(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("kubernetesVersion".equals(fieldName)) { + deserializedComponentsByRelease.kubernetesVersion = reader.getString(); + } else if ("components".equals(fieldName)) { + List components = reader.readArray(reader1 -> Component.fromJson(reader1)); + deserializedComponentsByRelease.components = components; + } else { + reader.skipChildren(); + } + } + + return deserializedComponentsByRelease; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceNetworkProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceNetworkProfile.java index 1ae8f9a7a33c3..d409736884cfc 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceNetworkProfile.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceNetworkProfile.java @@ -83,11 +83,26 @@ public final class ContainerServiceNetworkProfile implements JsonSerializable ipFamilies; + /* + * Defines access to special link local addresses (Azure Instance Metadata Service, aka IMDS) for pods with + * hostNetwork=false. if not specified, the default is 'IMDS'. + */ + private PodLinkLocalAccess podLinkLocalAccess; + + /* + * Holds configuration customizations for kube-proxy. Any values not defined will use the kube-proxy defaulting + * behavior. See https://v.docs.kubernetes.io/docs/reference/command-line-tools-reference/kube-proxy/ where + * is represented by a - string. Kubernetes version 1.23 would be '1-23'. + */ + private ContainerServiceNetworkProfileKubeProxyConfig kubeProxyConfig; + /** * Creates an instance of ContainerServiceNetworkProfile class. */ @@ -377,6 +405,29 @@ public ManagedClusterLoadBalancerProfile loadBalancerProfile() { return this; } + /** + * Get the clusterApiConnectivityProfile property: Configuration for accessing the managed cluster API through + * Bastion or Cloud Shell. + * + * @return the clusterApiConnectivityProfile value. + */ + public ClusterApiConnectivityProfile clusterApiConnectivityProfile() { + return this.clusterApiConnectivityProfile; + } + + /** + * Set the clusterApiConnectivityProfile property: Configuration for accessing the managed cluster API through + * Bastion or Cloud Shell. + * + * @param clusterApiConnectivityProfile the clusterApiConnectivityProfile value to set. + * @return the ContainerServiceNetworkProfile object itself. + */ + public ContainerServiceNetworkProfile + withClusterApiConnectivityProfile(ClusterApiConnectivityProfile clusterApiConnectivityProfile) { + this.clusterApiConnectivityProfile = clusterApiConnectivityProfile; + return this; + } + /** * Get the natGatewayProfile property: Profile of the cluster NAT gateway. * @@ -397,6 +448,36 @@ public ContainerServiceNetworkProfile withNatGatewayProfile(ManagedClusterNatGat return this; } + /** + * Get the natGatewayId property: The Azure resource ID of the NAT gateway to use for egress at cluster startup when + * outboundType is 'userAssignedNATGateway' using StandardV2 Public IP, backend pool type is podIP, and load + * balancer type is service SKU. This is of the form: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/natGateways/{natGatewayName}'. + * When using managed NATGateway this field is auto populated. For more information, see + * https://aka.ms/aks/container-native-slb. + * + * @return the natGatewayId value. + */ + public String natGatewayId() { + return this.natGatewayId; + } + + /** + * Set the natGatewayId property: The Azure resource ID of the NAT gateway to use for egress at cluster startup when + * outboundType is 'userAssignedNATGateway' using StandardV2 Public IP, backend pool type is podIP, and load + * balancer type is service SKU. This is of the form: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/natGateways/{natGatewayName}'. + * When using managed NATGateway this field is auto populated. For more information, see + * https://aka.ms/aks/container-native-slb. + * + * @param natGatewayId the natGatewayId value to set. + * @return the ContainerServiceNetworkProfile object itself. + */ + public ContainerServiceNetworkProfile withNatGatewayId(String natGatewayId) { + this.natGatewayId = natGatewayId; + return this; + } + /** * Get the staticEgressGatewayProfile property: The profile for Static Egress Gateway addon. For more details about * Static Egress Gateway, see https://aka.ms/aks/static-egress-gateway. @@ -492,6 +573,57 @@ public ContainerServiceNetworkProfile withIpFamilies(List ipFamilies) return this; } + /** + * Get the podLinkLocalAccess property: Defines access to special link local addresses (Azure Instance Metadata + * Service, aka IMDS) for pods with hostNetwork=false. if not specified, the default is 'IMDS'. + * + * @return the podLinkLocalAccess value. + */ + public PodLinkLocalAccess podLinkLocalAccess() { + return this.podLinkLocalAccess; + } + + /** + * Set the podLinkLocalAccess property: Defines access to special link local addresses (Azure Instance Metadata + * Service, aka IMDS) for pods with hostNetwork=false. if not specified, the default is 'IMDS'. + * + * @param podLinkLocalAccess the podLinkLocalAccess value to set. + * @return the ContainerServiceNetworkProfile object itself. + */ + public ContainerServiceNetworkProfile withPodLinkLocalAccess(PodLinkLocalAccess podLinkLocalAccess) { + this.podLinkLocalAccess = podLinkLocalAccess; + return this; + } + + /** + * Get the kubeProxyConfig property: Holds configuration customizations for kube-proxy. Any values not defined will + * use the kube-proxy defaulting behavior. See + * https://v<version>.docs.kubernetes.io/docs/reference/command-line-tools-reference/kube-proxy/ where + * <version> is represented by a <major version>-<minor version> string. Kubernetes version 1.23 + * would be '1-23'. + * + * @return the kubeProxyConfig value. + */ + public ContainerServiceNetworkProfileKubeProxyConfig kubeProxyConfig() { + return this.kubeProxyConfig; + } + + /** + * Set the kubeProxyConfig property: Holds configuration customizations for kube-proxy. Any values not defined will + * use the kube-proxy defaulting behavior. See + * https://v<version>.docs.kubernetes.io/docs/reference/command-line-tools-reference/kube-proxy/ where + * <version> is represented by a <major version>-<minor version> string. Kubernetes version 1.23 + * would be '1-23'. + * + * @param kubeProxyConfig the kubeProxyConfig value to set. + * @return the ContainerServiceNetworkProfile object itself. + */ + public ContainerServiceNetworkProfile + withKubeProxyConfig(ContainerServiceNetworkProfileKubeProxyConfig kubeProxyConfig) { + this.kubeProxyConfig = kubeProxyConfig; + return this; + } + /** * Validates the instance. * @@ -504,12 +636,18 @@ public void validate() { if (loadBalancerProfile() != null) { loadBalancerProfile().validate(); } + if (clusterApiConnectivityProfile() != null) { + clusterApiConnectivityProfile().validate(); + } if (natGatewayProfile() != null) { natGatewayProfile().validate(); } if (staticEgressGatewayProfile() != null) { staticEgressGatewayProfile().validate(); } + if (kubeProxyConfig() != null) { + kubeProxyConfig().validate(); + } } /** @@ -533,12 +671,17 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("loadBalancerSku", this.loadBalancerSku == null ? null : this.loadBalancerSku.toString()); jsonWriter.writeJsonField("loadBalancerProfile", this.loadBalancerProfile); + jsonWriter.writeJsonField("clusterAPIConnectivityProfile", this.clusterApiConnectivityProfile); jsonWriter.writeJsonField("natGatewayProfile", this.natGatewayProfile); + jsonWriter.writeStringField("natGatewayId", this.natGatewayId); jsonWriter.writeJsonField("staticEgressGatewayProfile", this.staticEgressGatewayProfile); jsonWriter.writeArrayField("podCidrs", this.podCidrs, (writer, element) -> writer.writeString(element)); jsonWriter.writeArrayField("serviceCidrs", this.serviceCidrs, (writer, element) -> writer.writeString(element)); jsonWriter.writeArrayField("ipFamilies", this.ipFamilies, (writer, element) -> writer.writeString(element == null ? null : element.toString())); + jsonWriter.writeStringField("podLinkLocalAccess", + this.podLinkLocalAccess == null ? null : this.podLinkLocalAccess.toString()); + jsonWriter.writeJsonField("kubeProxyConfig", this.kubeProxyConfig); return jsonWriter.writeEndObject(); } @@ -589,9 +732,14 @@ public static ContainerServiceNetworkProfile fromJson(JsonReader jsonReader) thr } else if ("loadBalancerProfile".equals(fieldName)) { deserializedContainerServiceNetworkProfile.loadBalancerProfile = ManagedClusterLoadBalancerProfile.fromJson(reader); + } else if ("clusterAPIConnectivityProfile".equals(fieldName)) { + deserializedContainerServiceNetworkProfile.clusterApiConnectivityProfile + = ClusterApiConnectivityProfile.fromJson(reader); } else if ("natGatewayProfile".equals(fieldName)) { deserializedContainerServiceNetworkProfile.natGatewayProfile = ManagedClusterNatGatewayProfile.fromJson(reader); + } else if ("natGatewayId".equals(fieldName)) { + deserializedContainerServiceNetworkProfile.natGatewayId = reader.getString(); } else if ("staticEgressGatewayProfile".equals(fieldName)) { deserializedContainerServiceNetworkProfile.staticEgressGatewayProfile = ManagedClusterStaticEgressGatewayProfile.fromJson(reader); @@ -604,6 +752,12 @@ public static ContainerServiceNetworkProfile fromJson(JsonReader jsonReader) thr } else if ("ipFamilies".equals(fieldName)) { List ipFamilies = reader.readArray(reader1 -> IpFamily.fromString(reader1.getString())); deserializedContainerServiceNetworkProfile.ipFamilies = ipFamilies; + } else if ("podLinkLocalAccess".equals(fieldName)) { + deserializedContainerServiceNetworkProfile.podLinkLocalAccess + = PodLinkLocalAccess.fromString(reader.getString()); + } else if ("kubeProxyConfig".equals(fieldName)) { + deserializedContainerServiceNetworkProfile.kubeProxyConfig + = ContainerServiceNetworkProfileKubeProxyConfig.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceNetworkProfileKubeProxyConfig.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceNetworkProfileKubeProxyConfig.java new file mode 100644 index 0000000000000..de14147a2529f --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceNetworkProfileKubeProxyConfig.java @@ -0,0 +1,166 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * Holds configuration customizations for kube-proxy. Any values not defined will use the kube-proxy defaulting + * behavior. See https://v<version>.docs.kubernetes.io/docs/reference/command-line-tools-reference/kube-proxy/ + * where <version> is represented by a <major version>-<minor version> string. Kubernetes version 1.23 + * would be '1-23'. + */ +@Fluent +public final class ContainerServiceNetworkProfileKubeProxyConfig + implements JsonSerializable { + /* + * Whether to enable on kube-proxy on the cluster (if no 'kubeProxyConfig' exists, kube-proxy is enabled in AKS by + * default without these customizations). + */ + private Boolean enabled; + + /* + * Specify which proxy mode to use ('IPTABLES', 'IPVS' or 'NFTABLES') + */ + private Mode mode; + + /* + * Holds configuration customizations for IPVS. May only be specified if 'mode' is set to 'IPVS'. + */ + private ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig ipvsConfig; + + /** + * Creates an instance of ContainerServiceNetworkProfileKubeProxyConfig class. + */ + public ContainerServiceNetworkProfileKubeProxyConfig() { + } + + /** + * Get the enabled property: Whether to enable on kube-proxy on the cluster (if no 'kubeProxyConfig' exists, + * kube-proxy is enabled in AKS by default without these customizations). + * + * @return the enabled value. + */ + public Boolean enabled() { + return this.enabled; + } + + /** + * Set the enabled property: Whether to enable on kube-proxy on the cluster (if no 'kubeProxyConfig' exists, + * kube-proxy is enabled in AKS by default without these customizations). + * + * @param enabled the enabled value to set. + * @return the ContainerServiceNetworkProfileKubeProxyConfig object itself. + */ + public ContainerServiceNetworkProfileKubeProxyConfig withEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Get the mode property: Specify which proxy mode to use ('IPTABLES', 'IPVS' or 'NFTABLES'). + * + * @return the mode value. + */ + public Mode mode() { + return this.mode; + } + + /** + * Set the mode property: Specify which proxy mode to use ('IPTABLES', 'IPVS' or 'NFTABLES'). + * + * @param mode the mode value to set. + * @return the ContainerServiceNetworkProfileKubeProxyConfig object itself. + */ + public ContainerServiceNetworkProfileKubeProxyConfig withMode(Mode mode) { + this.mode = mode; + return this; + } + + /** + * Get the ipvsConfig property: Holds configuration customizations for IPVS. May only be specified if 'mode' is set + * to 'IPVS'. + * + * @return the ipvsConfig value. + */ + public ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig ipvsConfig() { + return this.ipvsConfig; + } + + /** + * Set the ipvsConfig property: Holds configuration customizations for IPVS. May only be specified if 'mode' is set + * to 'IPVS'. + * + * @param ipvsConfig the ipvsConfig value to set. + * @return the ContainerServiceNetworkProfileKubeProxyConfig object itself. + */ + public ContainerServiceNetworkProfileKubeProxyConfig + withIpvsConfig(ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig ipvsConfig) { + this.ipvsConfig = ipvsConfig; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (ipvsConfig() != null) { + ipvsConfig().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeBooleanField("enabled", this.enabled); + jsonWriter.writeStringField("mode", this.mode == null ? null : this.mode.toString()); + jsonWriter.writeJsonField("ipvsConfig", this.ipvsConfig); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ContainerServiceNetworkProfileKubeProxyConfig from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ContainerServiceNetworkProfileKubeProxyConfig 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 ContainerServiceNetworkProfileKubeProxyConfig. + */ + public static ContainerServiceNetworkProfileKubeProxyConfig fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ContainerServiceNetworkProfileKubeProxyConfig deserializedContainerServiceNetworkProfileKubeProxyConfig + = new ContainerServiceNetworkProfileKubeProxyConfig(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("enabled".equals(fieldName)) { + deserializedContainerServiceNetworkProfileKubeProxyConfig.enabled + = reader.getNullable(JsonReader::getBoolean); + } else if ("mode".equals(fieldName)) { + deserializedContainerServiceNetworkProfileKubeProxyConfig.mode + = Mode.fromString(reader.getString()); + } else if ("ipvsConfig".equals(fieldName)) { + deserializedContainerServiceNetworkProfileKubeProxyConfig.ipvsConfig + = ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedContainerServiceNetworkProfileKubeProxyConfig; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig.java new file mode 100644 index 0000000000000..b459f51c50306 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig.java @@ -0,0 +1,193 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * Holds configuration customizations for IPVS. May only be specified if 'mode' is set to 'IPVS'. + */ +@Fluent +public final class ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig + implements JsonSerializable { + /* + * IPVS scheduler, for more information please see http://www.linuxvirtualserver.org/docs/scheduling.html. + */ + private IpvsScheduler scheduler; + + /* + * The timeout value used for idle IPVS TCP sessions in seconds. Must be a positive integer value. + */ + private Integer tcpTimeoutSeconds; + + /* + * The timeout value used for IPVS TCP sessions after receiving a FIN in seconds. Must be a positive integer value. + */ + private Integer tcpFinTimeoutSeconds; + + /* + * The timeout value used for IPVS UDP packets in seconds. Must be a positive integer value. + */ + private Integer udpTimeoutSeconds; + + /** + * Creates an instance of ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig class. + */ + public ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig() { + } + + /** + * Get the scheduler property: IPVS scheduler, for more information please see + * http://www.linuxvirtualserver.org/docs/scheduling.html. + * + * @return the scheduler value. + */ + public IpvsScheduler scheduler() { + return this.scheduler; + } + + /** + * Set the scheduler property: IPVS scheduler, for more information please see + * http://www.linuxvirtualserver.org/docs/scheduling.html. + * + * @param scheduler the scheduler value to set. + * @return the ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig object itself. + */ + public ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig withScheduler(IpvsScheduler scheduler) { + this.scheduler = scheduler; + return this; + } + + /** + * Get the tcpTimeoutSeconds property: The timeout value used for idle IPVS TCP sessions in seconds. Must be a + * positive integer value. + * + * @return the tcpTimeoutSeconds value. + */ + public Integer tcpTimeoutSeconds() { + return this.tcpTimeoutSeconds; + } + + /** + * Set the tcpTimeoutSeconds property: The timeout value used for idle IPVS TCP sessions in seconds. Must be a + * positive integer value. + * + * @param tcpTimeoutSeconds the tcpTimeoutSeconds value to set. + * @return the ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig object itself. + */ + public ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig withTcpTimeoutSeconds(Integer tcpTimeoutSeconds) { + this.tcpTimeoutSeconds = tcpTimeoutSeconds; + return this; + } + + /** + * Get the tcpFinTimeoutSeconds property: The timeout value used for IPVS TCP sessions after receiving a FIN in + * seconds. Must be a positive integer value. + * + * @return the tcpFinTimeoutSeconds value. + */ + public Integer tcpFinTimeoutSeconds() { + return this.tcpFinTimeoutSeconds; + } + + /** + * Set the tcpFinTimeoutSeconds property: The timeout value used for IPVS TCP sessions after receiving a FIN in + * seconds. Must be a positive integer value. + * + * @param tcpFinTimeoutSeconds the tcpFinTimeoutSeconds value to set. + * @return the ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig object itself. + */ + public ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig + withTcpFinTimeoutSeconds(Integer tcpFinTimeoutSeconds) { + this.tcpFinTimeoutSeconds = tcpFinTimeoutSeconds; + return this; + } + + /** + * Get the udpTimeoutSeconds property: The timeout value used for IPVS UDP packets in seconds. Must be a positive + * integer value. + * + * @return the udpTimeoutSeconds value. + */ + public Integer udpTimeoutSeconds() { + return this.udpTimeoutSeconds; + } + + /** + * Set the udpTimeoutSeconds property: The timeout value used for IPVS UDP packets in seconds. Must be a positive + * integer value. + * + * @param udpTimeoutSeconds the udpTimeoutSeconds value to set. + * @return the ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig object itself. + */ + public ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig withUdpTimeoutSeconds(Integer udpTimeoutSeconds) { + this.udpTimeoutSeconds = udpTimeoutSeconds; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("scheduler", this.scheduler == null ? null : this.scheduler.toString()); + jsonWriter.writeNumberField("tcpTimeoutSeconds", this.tcpTimeoutSeconds); + jsonWriter.writeNumberField("tcpFinTimeoutSeconds", this.tcpFinTimeoutSeconds); + jsonWriter.writeNumberField("udpTimeoutSeconds", this.udpTimeoutSeconds); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig 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 ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig. + */ + public static ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig fromJson(JsonReader jsonReader) + throws IOException { + return jsonReader.readObject(reader -> { + ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig deserializedContainerServiceNetworkProfileKubeProxyConfigIpvsConfig + = new ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("scheduler".equals(fieldName)) { + deserializedContainerServiceNetworkProfileKubeProxyConfigIpvsConfig.scheduler + = IpvsScheduler.fromString(reader.getString()); + } else if ("tcpTimeoutSeconds".equals(fieldName)) { + deserializedContainerServiceNetworkProfileKubeProxyConfigIpvsConfig.tcpTimeoutSeconds + = reader.getNullable(JsonReader::getInt); + } else if ("tcpFinTimeoutSeconds".equals(fieldName)) { + deserializedContainerServiceNetworkProfileKubeProxyConfigIpvsConfig.tcpFinTimeoutSeconds + = reader.getNullable(JsonReader::getInt); + } else if ("udpTimeoutSeconds".equals(fieldName)) { + deserializedContainerServiceNetworkProfileKubeProxyConfigIpvsConfig.udpTimeoutSeconds + = reader.getNullable(JsonReader::getInt); + } else { + reader.skipChildren(); + } + } + + return deserializedContainerServiceNetworkProfileKubeProxyConfigIpvsConfig; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ControlPlaneAndAgentPoolsGenerateUpgradeInsightsContent.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ControlPlaneAndAgentPoolsGenerateUpgradeInsightsContent.java new file mode 100644 index 0000000000000..ce2c7b858da72 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ControlPlaneAndAgentPoolsGenerateUpgradeInsightsContent.java @@ -0,0 +1,126 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Request body to evaluate the combined control plane and agent pools Kubernetes version upgrade. + */ +@Fluent +public final class ControlPlaneAndAgentPoolsGenerateUpgradeInsightsContent extends GenerateUpgradeInsightsContent { + /* + * The type of upgrade to evaluate. + */ + private UpgradeType upgradeType = UpgradeType.CONTROL_PLANE_AND_AGENT_POOLS; + + /* + * The target Kubernetes version to evaluate for all scopes. + */ + private String targetKubernetesVersion; + + /** + * Creates an instance of ControlPlaneAndAgentPoolsGenerateUpgradeInsightsContent class. + */ + public ControlPlaneAndAgentPoolsGenerateUpgradeInsightsContent() { + } + + /** + * Get the upgradeType property: The type of upgrade to evaluate. + * + * @return the upgradeType value. + */ + @Override + public UpgradeType upgradeType() { + return this.upgradeType; + } + + /** + * Get the targetKubernetesVersion property: The target Kubernetes version to evaluate for all scopes. + * + * @return the targetKubernetesVersion value. + */ + public String targetKubernetesVersion() { + return this.targetKubernetesVersion; + } + + /** + * Set the targetKubernetesVersion property: The target Kubernetes version to evaluate for all scopes. + * + * @param targetKubernetesVersion the targetKubernetesVersion value to set. + * @return the ControlPlaneAndAgentPoolsGenerateUpgradeInsightsContent object itself. + */ + public ControlPlaneAndAgentPoolsGenerateUpgradeInsightsContent + withTargetKubernetesVersion(String targetKubernetesVersion) { + this.targetKubernetesVersion = targetKubernetesVersion; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + if (targetKubernetesVersion() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property targetKubernetesVersion in model ControlPlaneAndAgentPoolsGenerateUpgradeInsightsContent")); + } + } + + private static final ClientLogger LOGGER + = new ClientLogger(ControlPlaneAndAgentPoolsGenerateUpgradeInsightsContent.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("targetKubernetesVersion", this.targetKubernetesVersion); + jsonWriter.writeStringField("upgradeType", this.upgradeType == null ? null : this.upgradeType.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ControlPlaneAndAgentPoolsGenerateUpgradeInsightsContent from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ControlPlaneAndAgentPoolsGenerateUpgradeInsightsContent 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 ControlPlaneAndAgentPoolsGenerateUpgradeInsightsContent. + */ + public static ControlPlaneAndAgentPoolsGenerateUpgradeInsightsContent fromJson(JsonReader jsonReader) + throws IOException { + return jsonReader.readObject(reader -> { + ControlPlaneAndAgentPoolsGenerateUpgradeInsightsContent deserializedControlPlaneAndAgentPoolsGenerateUpgradeInsightsContent + = new ControlPlaneAndAgentPoolsGenerateUpgradeInsightsContent(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("targetKubernetesVersion".equals(fieldName)) { + deserializedControlPlaneAndAgentPoolsGenerateUpgradeInsightsContent.targetKubernetesVersion + = reader.getString(); + } else if ("upgradeType".equals(fieldName)) { + deserializedControlPlaneAndAgentPoolsGenerateUpgradeInsightsContent.upgradeType + = UpgradeType.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedControlPlaneAndAgentPoolsGenerateUpgradeInsightsContent; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ControlPlaneAndAgentPoolsUpgradeInsightProperties.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ControlPlaneAndAgentPoolsUpgradeInsightProperties.java new file mode 100644 index 0000000000000..3854c324e52e1 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ControlPlaneAndAgentPoolsUpgradeInsightProperties.java @@ -0,0 +1,159 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Properties for a combined control plane and agent pools Kubernetes version upgrade + * insight: a single evaluation of the control plane plus every agent pool for one + * target Kubernetes version. This scope is Kubernetes-version-only — node OS image + * upgrades are never part of a combined evaluation and must be requested separately + * with a `nodeImage-<agentPoolName>-<nodeImageVersion>` insight. + */ +@Immutable +public final class ControlPlaneAndAgentPoolsUpgradeInsightProperties extends UpgradeInsightProperties { + /* + * The type of upgrade this insight evaluates. Derived from the resource name. + */ + private UpgradeType upgradeType = UpgradeType.CONTROL_PLANE_AND_AGENT_POOLS; + + /* + * The target Kubernetes version that was evaluated for all scopes. + */ + private String targetKubernetesVersion; + + /* + * The readiness evaluation for the control plane Kubernetes version upgrade. + */ + private ScopeEvaluationResult controlPlane; + + /* + * The readiness evaluation for each agent pool Kubernetes version upgrade, one entry per agent pool. + */ + private List agentPools; + + /** + * Creates an instance of ControlPlaneAndAgentPoolsUpgradeInsightProperties class. + */ + private ControlPlaneAndAgentPoolsUpgradeInsightProperties() { + } + + /** + * Get the upgradeType property: The type of upgrade this insight evaluates. Derived from the resource name. + * + * @return the upgradeType value. + */ + @Override + public UpgradeType upgradeType() { + return this.upgradeType; + } + + /** + * Get the targetKubernetesVersion property: The target Kubernetes version that was evaluated for all scopes. + * + * @return the targetKubernetesVersion value. + */ + public String targetKubernetesVersion() { + return this.targetKubernetesVersion; + } + + /** + * Get the controlPlane property: The readiness evaluation for the control plane Kubernetes version upgrade. + * + * @return the controlPlane value. + */ + public ScopeEvaluationResult controlPlane() { + return this.controlPlane; + } + + /** + * Get the agentPools property: The readiness evaluation for each agent pool Kubernetes version upgrade, one entry + * per agent pool. + * + * @return the agentPools value. + */ + public List agentPools() { + return this.agentPools; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + if (controlPlane() != null) { + controlPlane().validate(); + } + if (agentPools() != null) { + agentPools().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("upgradeType", this.upgradeType == null ? null : this.upgradeType.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ControlPlaneAndAgentPoolsUpgradeInsightProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ControlPlaneAndAgentPoolsUpgradeInsightProperties 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 ControlPlaneAndAgentPoolsUpgradeInsightProperties. + */ + public static ControlPlaneAndAgentPoolsUpgradeInsightProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ControlPlaneAndAgentPoolsUpgradeInsightProperties deserializedControlPlaneAndAgentPoolsUpgradeInsightProperties + = new ControlPlaneAndAgentPoolsUpgradeInsightProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("provisioningState".equals(fieldName)) { + deserializedControlPlaneAndAgentPoolsUpgradeInsightProperties + .withProvisioningState(ResourceProvisioningState.fromString(reader.getString())); + } else if ("lastEvaluatedAt".equals(fieldName)) { + deserializedControlPlaneAndAgentPoolsUpgradeInsightProperties.withLastEvaluatedAt(reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()))); + } else if ("expiresAt".equals(fieldName)) { + deserializedControlPlaneAndAgentPoolsUpgradeInsightProperties.withExpiresAt(reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()))); + } else if ("upgradeType".equals(fieldName)) { + deserializedControlPlaneAndAgentPoolsUpgradeInsightProperties.upgradeType + = UpgradeType.fromString(reader.getString()); + } else if ("targetKubernetesVersion".equals(fieldName)) { + deserializedControlPlaneAndAgentPoolsUpgradeInsightProperties.targetKubernetesVersion + = reader.getString(); + } else if ("controlPlane".equals(fieldName)) { + deserializedControlPlaneAndAgentPoolsUpgradeInsightProperties.controlPlane + = ScopeEvaluationResult.fromJson(reader); + } else if ("agentPools".equals(fieldName)) { + List agentPools + = reader.readArray(reader1 -> AgentPoolScopeEvaluation.fromJson(reader1)); + deserializedControlPlaneAndAgentPoolsUpgradeInsightProperties.agentPools = agentPools; + } else { + reader.skipChildren(); + } + } + + return deserializedControlPlaneAndAgentPoolsUpgradeInsightProperties; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ControlPlaneGenerateUpgradeInsightsContent.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ControlPlaneGenerateUpgradeInsightsContent.java new file mode 100644 index 0000000000000..826a0fdf819e4 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ControlPlaneGenerateUpgradeInsightsContent.java @@ -0,0 +1,122 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Request body to evaluate a control plane (managed cluster) Kubernetes version upgrade. + */ +@Fluent +public final class ControlPlaneGenerateUpgradeInsightsContent extends GenerateUpgradeInsightsContent { + /* + * The type of upgrade to evaluate. + */ + private UpgradeType upgradeType = UpgradeType.CONTROL_PLANE; + + /* + * The target Kubernetes version to evaluate. + */ + private String targetKubernetesVersion; + + /** + * Creates an instance of ControlPlaneGenerateUpgradeInsightsContent class. + */ + public ControlPlaneGenerateUpgradeInsightsContent() { + } + + /** + * Get the upgradeType property: The type of upgrade to evaluate. + * + * @return the upgradeType value. + */ + @Override + public UpgradeType upgradeType() { + return this.upgradeType; + } + + /** + * Get the targetKubernetesVersion property: The target Kubernetes version to evaluate. + * + * @return the targetKubernetesVersion value. + */ + public String targetKubernetesVersion() { + return this.targetKubernetesVersion; + } + + /** + * Set the targetKubernetesVersion property: The target Kubernetes version to evaluate. + * + * @param targetKubernetesVersion the targetKubernetesVersion value to set. + * @return the ControlPlaneGenerateUpgradeInsightsContent object itself. + */ + public ControlPlaneGenerateUpgradeInsightsContent withTargetKubernetesVersion(String targetKubernetesVersion) { + this.targetKubernetesVersion = targetKubernetesVersion; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + if (targetKubernetesVersion() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property targetKubernetesVersion in model ControlPlaneGenerateUpgradeInsightsContent")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(ControlPlaneGenerateUpgradeInsightsContent.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("targetKubernetesVersion", this.targetKubernetesVersion); + jsonWriter.writeStringField("upgradeType", this.upgradeType == null ? null : this.upgradeType.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ControlPlaneGenerateUpgradeInsightsContent from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ControlPlaneGenerateUpgradeInsightsContent 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 ControlPlaneGenerateUpgradeInsightsContent. + */ + public static ControlPlaneGenerateUpgradeInsightsContent fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ControlPlaneGenerateUpgradeInsightsContent deserializedControlPlaneGenerateUpgradeInsightsContent + = new ControlPlaneGenerateUpgradeInsightsContent(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("targetKubernetesVersion".equals(fieldName)) { + deserializedControlPlaneGenerateUpgradeInsightsContent.targetKubernetesVersion = reader.getString(); + } else if ("upgradeType".equals(fieldName)) { + deserializedControlPlaneGenerateUpgradeInsightsContent.upgradeType + = UpgradeType.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedControlPlaneGenerateUpgradeInsightsContent; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ControlPlaneScalingSize.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ControlPlaneScalingSize.java new file mode 100644 index 0000000000000..a7d8c41a05737 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ControlPlaneScalingSize.java @@ -0,0 +1,59 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The scaling size of the control plane. Scaling sizes offer guaranteed capacity and predictable Kubernetes performance + * beyond standard tier defaults. Higher H sizes provide increased performance guarantees. See + * https://aka.ms/aks/hyperscale for performance metrics details for each size. + */ +public final class ControlPlaneScalingSize extends ExpandableStringEnum { + /** + * H2 is the smallest scaling size with guaranteed capacity and predictable performance beyond standard tier + * defaults. + */ + public static final ControlPlaneScalingSize H2 = fromString("H2"); + + /** + * H4 scaling size provides increased guaranteed performance over H2. + */ + public static final ControlPlaneScalingSize H4 = fromString("H4"); + + /** + * H8 scaling size provides increased guaranteed performance over H4. + */ + public static final ControlPlaneScalingSize H8 = fromString("H8"); + + /** + * Creates a new instance of ControlPlaneScalingSize value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ControlPlaneScalingSize() { + } + + /** + * Creates or finds a ControlPlaneScalingSize from its string representation. + * + * @param name a name to look for. + * @return the corresponding ControlPlaneScalingSize. + */ + public static ControlPlaneScalingSize fromString(String name) { + return fromString(name, ControlPlaneScalingSize.class); + } + + /** + * Gets known ControlPlaneScalingSize values. + * + * @return known ControlPlaneScalingSize values. + */ + public static Collection values() { + return values(ControlPlaneScalingSize.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ControlPlaneUpgradeInsightProperties.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ControlPlaneUpgradeInsightProperties.java new file mode 100644 index 0000000000000..f2c865f2be449 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ControlPlaneUpgradeInsightProperties.java @@ -0,0 +1,220 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.time.LocalDate; + +/** + * Properties for a control plane (managed cluster) Kubernetes version upgrade insight. + */ +@Immutable +public final class ControlPlaneUpgradeInsightProperties extends UpgradeInsightProperties { + /* + * The type of upgrade this insight evaluates. Derived from the resource name. + */ + private UpgradeType upgradeType = UpgradeType.CONTROL_PLANE; + + /* + * The target Kubernetes version that was evaluated. + */ + private String targetKubernetesVersion; + + /* + * The Kubernetes version the scope was evaluated from (the upgrade source version the scope is currently running). + * Lets consumers read the result as "from X to targetKubernetesVersion" and detect a stale cached record by + * comparing against the live cluster version. Populated for Kubernetes version upgrades. + */ + private String currentKubernetesVersion; + + /* + * The support status of the Kubernetes version the scope is currently running (not the target version). Populated + * for Kubernetes version upgrades. + */ + private KubernetesVersionSupportStatus kubernetesVersionSupportStatus; + + /* + * The date on which support ends for the Kubernetes version the scope is currently + * running (its end-of-support date). Returned as an absolute date so clients can apply + * their own "approaching end of support" threshold and compute the remaining days against + * the current time; a precomputed remaining-days value is intentionally not returned so + * that cached results do not go stale. Populated for Kubernetes version upgrades. + */ + private LocalDate kubernetesVersionEndOfSupportDate; + + /* + * Contextual information about how this upgrade is managed, such as the upgrade strategy, next maintenance window, + * and last successful upgrade time. + */ + private UpgradeContext context; + + /* + * The evaluation result, including overall status, evaluation time, and any detected issues. + */ + private UpgradeInsightEvaluation evaluation; + + /** + * Creates an instance of ControlPlaneUpgradeInsightProperties class. + */ + private ControlPlaneUpgradeInsightProperties() { + } + + /** + * Get the upgradeType property: The type of upgrade this insight evaluates. Derived from the resource name. + * + * @return the upgradeType value. + */ + @Override + public UpgradeType upgradeType() { + return this.upgradeType; + } + + /** + * Get the targetKubernetesVersion property: The target Kubernetes version that was evaluated. + * + * @return the targetKubernetesVersion value. + */ + public String targetKubernetesVersion() { + return this.targetKubernetesVersion; + } + + /** + * Get the currentKubernetesVersion property: The Kubernetes version the scope was evaluated from (the upgrade + * source version the scope is currently running). Lets consumers read the result as "from X to + * targetKubernetesVersion" and detect a stale cached record by comparing against the live cluster version. + * Populated for Kubernetes version upgrades. + * + * @return the currentKubernetesVersion value. + */ + public String currentKubernetesVersion() { + return this.currentKubernetesVersion; + } + + /** + * Get the kubernetesVersionSupportStatus property: The support status of the Kubernetes version the scope is + * currently running (not the target version). Populated for Kubernetes version upgrades. + * + * @return the kubernetesVersionSupportStatus value. + */ + public KubernetesVersionSupportStatus kubernetesVersionSupportStatus() { + return this.kubernetesVersionSupportStatus; + } + + /** + * Get the kubernetesVersionEndOfSupportDate property: The date on which support ends for the Kubernetes version the + * scope is currently + * running (its end-of-support date). Returned as an absolute date so clients can apply + * their own "approaching end of support" threshold and compute the remaining days against + * the current time; a precomputed remaining-days value is intentionally not returned so + * that cached results do not go stale. Populated for Kubernetes version upgrades. + * + * @return the kubernetesVersionEndOfSupportDate value. + */ + public LocalDate kubernetesVersionEndOfSupportDate() { + return this.kubernetesVersionEndOfSupportDate; + } + + /** + * Get the context property: Contextual information about how this upgrade is managed, such as the upgrade strategy, + * next maintenance window, and last successful upgrade time. + * + * @return the context value. + */ + public UpgradeContext context() { + return this.context; + } + + /** + * Get the evaluation property: The evaluation result, including overall status, evaluation time, and any detected + * issues. + * + * @return the evaluation value. + */ + public UpgradeInsightEvaluation evaluation() { + return this.evaluation; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + if (context() != null) { + context().validate(); + } + if (evaluation() != null) { + evaluation().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("upgradeType", this.upgradeType == null ? null : this.upgradeType.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ControlPlaneUpgradeInsightProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ControlPlaneUpgradeInsightProperties 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 ControlPlaneUpgradeInsightProperties. + */ + public static ControlPlaneUpgradeInsightProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ControlPlaneUpgradeInsightProperties deserializedControlPlaneUpgradeInsightProperties + = new ControlPlaneUpgradeInsightProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("provisioningState".equals(fieldName)) { + deserializedControlPlaneUpgradeInsightProperties + .withProvisioningState(ResourceProvisioningState.fromString(reader.getString())); + } else if ("lastEvaluatedAt".equals(fieldName)) { + deserializedControlPlaneUpgradeInsightProperties.withLastEvaluatedAt(reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()))); + } else if ("expiresAt".equals(fieldName)) { + deserializedControlPlaneUpgradeInsightProperties.withExpiresAt(reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()))); + } else if ("upgradeType".equals(fieldName)) { + deserializedControlPlaneUpgradeInsightProperties.upgradeType + = UpgradeType.fromString(reader.getString()); + } else if ("targetKubernetesVersion".equals(fieldName)) { + deserializedControlPlaneUpgradeInsightProperties.targetKubernetesVersion = reader.getString(); + } else if ("currentKubernetesVersion".equals(fieldName)) { + deserializedControlPlaneUpgradeInsightProperties.currentKubernetesVersion = reader.getString(); + } else if ("kubernetesVersionSupportStatus".equals(fieldName)) { + deserializedControlPlaneUpgradeInsightProperties.kubernetesVersionSupportStatus + = KubernetesVersionSupportStatus.fromString(reader.getString()); + } else if ("kubernetesVersionEndOfSupportDate".equals(fieldName)) { + deserializedControlPlaneUpgradeInsightProperties.kubernetesVersionEndOfSupportDate + = reader.getNullable(nonNullReader -> LocalDate.parse(nonNullReader.getString())); + } else if ("context".equals(fieldName)) { + deserializedControlPlaneUpgradeInsightProperties.context = UpgradeContext.fromJson(reader); + } else if ("evaluation".equals(fieldName)) { + deserializedControlPlaneUpgradeInsightProperties.evaluation + = UpgradeInsightEvaluation.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedControlPlaneUpgradeInsightProperties; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/DetectedUpgradeIssue.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/DetectedUpgradeIssue.java new file mode 100644 index 0000000000000..211fe8c692c33 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/DetectedUpgradeIssue.java @@ -0,0 +1,164 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * A detected upgrade issue for a managed cluster. + */ +@Immutable +public final class DetectedUpgradeIssue implements JsonSerializable { + /* + * The type of the detected upgrade issue. + */ + private UpgradeIssueType issueType; + + /* + * The severity of the detected issue. + */ + private UpgradeIssueSeverity severity; + + /* + * A human-readable description of the issue and why it may block or risk the upgrade. + */ + private String message; + + /* + * The Azure or Kubernetes resources impacted by this issue. A single issue can affect multiple resources (for + * example, one removed Kubernetes API version affecting several objects). + */ + private List impactedResources; + + /* + * The recommended actions to resolve this issue. Today this always contains a + * single action whose documentation link covers all of the options the user could + * take to remediate the issue; it is modeled as an array so that additional distinct + * actions can be returned in the future without a breaking change. + */ + private List recommendedActions; + + /** + * Creates an instance of DetectedUpgradeIssue class. + */ + private DetectedUpgradeIssue() { + } + + /** + * Get the issueType property: The type of the detected upgrade issue. + * + * @return the issueType value. + */ + public UpgradeIssueType issueType() { + return this.issueType; + } + + /** + * Get the severity property: The severity of the detected issue. + * + * @return the severity value. + */ + public UpgradeIssueSeverity severity() { + return this.severity; + } + + /** + * Get the message property: A human-readable description of the issue and why it may block or risk the upgrade. + * + * @return the message value. + */ + public String message() { + return this.message; + } + + /** + * Get the impactedResources property: The Azure or Kubernetes resources impacted by this issue. A single issue can + * affect multiple resources (for example, one removed Kubernetes API version affecting several objects). + * + * @return the impactedResources value. + */ + public List impactedResources() { + return this.impactedResources; + } + + /** + * Get the recommendedActions property: The recommended actions to resolve this issue. Today this always contains a + * single action whose documentation link covers all of the options the user could + * take to remediate the issue; it is modeled as an array so that additional distinct + * actions can be returned in the future without a breaking change. + * + * @return the recommendedActions value. + */ + public List recommendedActions() { + return this.recommendedActions; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (impactedResources() != null) { + impactedResources().forEach(e -> e.validate()); + } + if (recommendedActions() != null) { + recommendedActions().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DetectedUpgradeIssue from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DetectedUpgradeIssue 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 DetectedUpgradeIssue. + */ + public static DetectedUpgradeIssue fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DetectedUpgradeIssue deserializedDetectedUpgradeIssue = new DetectedUpgradeIssue(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("issueType".equals(fieldName)) { + deserializedDetectedUpgradeIssue.issueType = UpgradeIssueType.fromString(reader.getString()); + } else if ("severity".equals(fieldName)) { + deserializedDetectedUpgradeIssue.severity = UpgradeIssueSeverity.fromString(reader.getString()); + } else if ("message".equals(fieldName)) { + deserializedDetectedUpgradeIssue.message = reader.getString(); + } else if ("impactedResources".equals(fieldName)) { + List impactedResources + = reader.readArray(reader1 -> UpgradeInsightImpactedResource.fromJson(reader1)); + deserializedDetectedUpgradeIssue.impactedResources = impactedResources; + } else if ("recommendedActions".equals(fieldName)) { + List recommendedActions + = reader.readArray(reader1 -> UpgradeInsightRecommendedAction.fromJson(reader1)); + deserializedDetectedUpgradeIssue.recommendedActions = recommendedActions; + } else { + reader.skipChildren(); + } + } + + return deserializedDetectedUpgradeIssue; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/DriftAction.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/DriftAction.java new file mode 100644 index 0000000000000..2729e4cb9f6b3 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/DriftAction.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The drift action of the machine. Indicates whether a machine has deviated from its expected state due to changes in + * managed cluster properties, requiring corrective action. + */ +public final class DriftAction extends ExpandableStringEnum { + /** + * The machine is up to date. + */ + public static final DriftAction SYNCED = fromString("Synced"); + + /** + * The machine has drifted and needs to be deleted and recreated. + */ + public static final DriftAction RECREATE = fromString("Recreate"); + + /** + * Creates a new instance of DriftAction value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public DriftAction() { + } + + /** + * Creates or finds a DriftAction from its string representation. + * + * @param name a name to look for. + * @return the corresponding DriftAction. + */ + public static DriftAction fromString(String name) { + return fromString(name, DriftAction.class); + } + + /** + * Gets known DriftAction values. + * + * @return known DriftAction values. + */ + public static Collection values() { + return values(DriftAction.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/DriverType.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/DriverType.java new file mode 100644 index 0000000000000..28c7b06815e32 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/DriverType.java @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Specify the type of GPU driver to install when creating Windows agent pools. If not provided, AKS selects the driver + * based on system compatibility. This cannot be changed once the AgentPool has been created. This cannot be set on + * Linux AgentPools. For Linux AgentPools, the driver is selected based on system compatibility. + */ +public final class DriverType extends ExpandableStringEnum { + /** + * Install the GRID driver for the GPU, suitable for applications requiring virtualization support. + */ + public static final DriverType GRID = fromString("GRID"); + + /** + * Install the CUDA driver for the GPU, optimized for computational tasks in scientific computing and data-intensive + * applications. + */ + public static final DriverType CUDA = fromString("CUDA"); + + /** + * Creates a new instance of DriverType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public DriverType() { + } + + /** + * Creates or finds a DriverType from its string representation. + * + * @param name a name to look for. + * @return the corresponding DriverType. + */ + public static DriverType fromString(String name) { + return fromString(name, DriverType.class); + } + + /** + * Gets known DriverType values. + * + * @return known DriverType values. + */ + public static Collection values() { + return values(DriverType.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/GenerateUpgradeInsightsContent.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/GenerateUpgradeInsightsContent.java new file mode 100644 index 0000000000000..a41a9f9d6152f --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/GenerateUpgradeInsightsContent.java @@ -0,0 +1,119 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The base request body for the generateUpgradeInsights action. The concrete shape is + * determined by `upgradeType`, so that each scope declares exactly the inputs it needs: + * the schema itself enforces which of `targetKubernetesVersion`, + * `targetNodeImageVersion`, and `agentPoolName` are required or optional, rather than + * relying on documented conventions plus server-side validation. The server generates + * (or refreshes) the corresponding UpgradeInsight and returns it. + */ +@Immutable +public class GenerateUpgradeInsightsContent implements JsonSerializable { + /* + * The type of upgrade to evaluate. + */ + private UpgradeType upgradeType = UpgradeType.fromString("GenerateUpgradeInsightsContent"); + + /** + * Creates an instance of GenerateUpgradeInsightsContent class. + */ + public GenerateUpgradeInsightsContent() { + } + + /** + * Get the upgradeType property: The type of upgrade to evaluate. + * + * @return the upgradeType value. + */ + public UpgradeType upgradeType() { + return this.upgradeType; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("upgradeType", this.upgradeType == null ? null : this.upgradeType.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of GenerateUpgradeInsightsContent from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of GenerateUpgradeInsightsContent 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 GenerateUpgradeInsightsContent. + */ + public static GenerateUpgradeInsightsContent fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String discriminatorValue = null; + try (JsonReader readerToUse = reader.bufferObject()) { + readerToUse.nextToken(); // Prepare for reading + while (readerToUse.nextToken() != JsonToken.END_OBJECT) { + String fieldName = readerToUse.getFieldName(); + readerToUse.nextToken(); + if ("upgradeType".equals(fieldName)) { + discriminatorValue = readerToUse.getString(); + break; + } else { + readerToUse.skipChildren(); + } + } + // Use the discriminator value to determine which subtype should be deserialized. + if ("ControlPlane".equals(discriminatorValue)) { + return ControlPlaneGenerateUpgradeInsightsContent.fromJson(readerToUse.reset()); + } else if ("AgentPool".equals(discriminatorValue)) { + return AgentPoolGenerateUpgradeInsightsContent.fromJson(readerToUse.reset()); + } else if ("NodeImage".equals(discriminatorValue)) { + return NodeImageGenerateUpgradeInsightsContent.fromJson(readerToUse.reset()); + } else if ("ControlPlaneAndAgentPools".equals(discriminatorValue)) { + return ControlPlaneAndAgentPoolsGenerateUpgradeInsightsContent.fromJson(readerToUse.reset()); + } else { + return fromJsonKnownDiscriminator(readerToUse.reset()); + } + } + }); + } + + static GenerateUpgradeInsightsContent fromJsonKnownDiscriminator(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + GenerateUpgradeInsightsContent deserializedGenerateUpgradeInsightsContent + = new GenerateUpgradeInsightsContent(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("upgradeType".equals(fieldName)) { + deserializedGenerateUpgradeInsightsContent.upgradeType = UpgradeType.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedGenerateUpgradeInsightsContent; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/GpuProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/GpuProfile.java index 091332fb423f1..5b4c631257147 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/GpuProfile.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/GpuProfile.java @@ -21,6 +21,13 @@ public final class GpuProfile implements JsonSerializable { */ private GpuDriver driver; + /* + * Specify the type of GPU driver to install when creating Windows agent pools. If not provided, AKS selects the + * driver based on system compatibility. This cannot be changed once the AgentPool has been created. This cannot be + * set on Linux AgentPools. For Linux AgentPools, the driver is selected based on system compatibility. + */ + private DriverType driverType; + /* * NVIDIA-specific GPU settings. */ @@ -52,6 +59,32 @@ public GpuProfile withDriver(GpuDriver driver) { return this; } + /** + * Get the driverType property: Specify the type of GPU driver to install when creating Windows agent pools. If not + * provided, AKS selects the driver based on system compatibility. This cannot be changed once the AgentPool has + * been created. This cannot be set on Linux AgentPools. For Linux AgentPools, the driver is selected based on + * system compatibility. + * + * @return the driverType value. + */ + public DriverType driverType() { + return this.driverType; + } + + /** + * Set the driverType property: Specify the type of GPU driver to install when creating Windows agent pools. If not + * provided, AKS selects the driver based on system compatibility. This cannot be changed once the AgentPool has + * been created. This cannot be set on Linux AgentPools. For Linux AgentPools, the driver is selected based on + * system compatibility. + * + * @param driverType the driverType value to set. + * @return the GpuProfile object itself. + */ + public GpuProfile withDriverType(DriverType driverType) { + this.driverType = driverType; + return this; + } + /** * Get the nvidia property: NVIDIA-specific GPU settings. * @@ -90,6 +123,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("driver", this.driver == null ? null : this.driver.toString()); + jsonWriter.writeStringField("driverType", this.driverType == null ? null : this.driverType.toString()); jsonWriter.writeJsonField("nvidia", this.nvidia); return jsonWriter.writeEndObject(); } @@ -111,6 +145,8 @@ public static GpuProfile fromJson(JsonReader jsonReader) throws IOException { if ("driver".equals(fieldName)) { deserializedGpuProfile.driver = GpuDriver.fromString(reader.getString()); + } else if ("driverType".equals(fieldName)) { + deserializedGpuProfile.driverType = DriverType.fromString(reader.getString()); } else if ("nvidia".equals(fieldName)) { deserializedGpuProfile.nvidia = NvidiaGPUProfile.fromJson(reader); } else { diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/GuardrailsAvailableVersionsProperties.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/GuardrailsAvailableVersionsProperties.java new file mode 100644 index 0000000000000..22968b6ccdec5 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/GuardrailsAvailableVersionsProperties.java @@ -0,0 +1,101 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Whether the version is default or not and support info. + */ +@Immutable +public final class GuardrailsAvailableVersionsProperties + implements JsonSerializable { + /* + * Whether this is the default version. + */ + private Boolean isDefaultVersion; + + /* + * Whether the version is preview or stable. + */ + private GuardrailsSupport support; + + /** + * Creates an instance of GuardrailsAvailableVersionsProperties class. + */ + private GuardrailsAvailableVersionsProperties() { + } + + /** + * Get the isDefaultVersion property: Whether this is the default version. + * + * @return the isDefaultVersion value. + */ + public Boolean isDefaultVersion() { + return this.isDefaultVersion; + } + + /** + * Get the support property: Whether the version is preview or stable. + * + * @return the support value. + */ + public GuardrailsSupport support() { + return this.support; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of GuardrailsAvailableVersionsProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of GuardrailsAvailableVersionsProperties 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 GuardrailsAvailableVersionsProperties. + */ + public static GuardrailsAvailableVersionsProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + GuardrailsAvailableVersionsProperties deserializedGuardrailsAvailableVersionsProperties + = new GuardrailsAvailableVersionsProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("isDefaultVersion".equals(fieldName)) { + deserializedGuardrailsAvailableVersionsProperties.isDefaultVersion + = reader.getNullable(JsonReader::getBoolean); + } else if ("support".equals(fieldName)) { + deserializedGuardrailsAvailableVersionsProperties.support + = GuardrailsSupport.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedGuardrailsAvailableVersionsProperties; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/GuardrailsSupport.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/GuardrailsSupport.java new file mode 100644 index 0000000000000..c32023e93a49c --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/GuardrailsSupport.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Whether the version is preview or stable. + */ +public final class GuardrailsSupport extends ExpandableStringEnum { + /** + * The version is preview. It is not recommended to use preview versions on critical production clusters. The + * preview version may not support all use-cases. + */ + public static final GuardrailsSupport PREVIEW = fromString("Preview"); + + /** + * The version is stable and can be used on critical production clusters. + */ + public static final GuardrailsSupport STABLE = fromString("Stable"); + + /** + * Creates a new instance of GuardrailsSupport value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public GuardrailsSupport() { + } + + /** + * Creates or finds a GuardrailsSupport from its string representation. + * + * @param name a name to look for. + * @return the corresponding GuardrailsSupport. + */ + public static GuardrailsSupport fromString(String name) { + return fromString(name, GuardrailsSupport.class); + } + + /** + * Gets known GuardrailsSupport values. + * + * @return known GuardrailsSupport values. + */ + public static Collection values() { + return values(GuardrailsSupport.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/HardEvictionThreshold.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/HardEvictionThreshold.java new file mode 100644 index 0000000000000..d9dd276db4966 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/HardEvictionThreshold.java @@ -0,0 +1,168 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * Hard eviction thresholds for kubelet. These thresholds trigger pod eviction when node resources drop below the + * specified values. Values must be greater than or equal to the documented minimums for each signal. Supported formats + * are Ki, Mi, Gi, or percentages using %. + */ +@Fluent +public final class HardEvictionThreshold implements JsonSerializable { + /* + * The threshold for available memory below which pod eviction is triggered. Accepts absolute values (e.g. '500Mi') + * or percentage values (e.g. '5%'). Absolute values must be greater than or equal to 100Mi. Percentage values must + * be greater than or equal to 2%. + */ + private String memoryAvailable; + + /* + * The threshold for available node filesystem space below which pod eviction is triggered. Accepts absolute values + * (e.g. '1Gi') or percentage values (e.g. '10%'). Must be greater than or equal to the system default of 10%. + */ + private String nodeFsAvailable; + + /* + * The threshold for available inodes on the node filesystem below which pod eviction is triggered. Accepts absolute + * inode counts (e.g. '100000') or percentage values (e.g. '5%'). Percentage values must be greater than or equal to + * the system default of 5%. + */ + private String nodeFsInodesFree; + + /** + * Creates an instance of HardEvictionThreshold class. + */ + public HardEvictionThreshold() { + } + + /** + * Get the memoryAvailable property: The threshold for available memory below which pod eviction is triggered. + * Accepts absolute values (e.g. '500Mi') or percentage values (e.g. '5%'). Absolute values must be greater than or + * equal to 100Mi. Percentage values must be greater than or equal to 2%. + * + * @return the memoryAvailable value. + */ + public String memoryAvailable() { + return this.memoryAvailable; + } + + /** + * Set the memoryAvailable property: The threshold for available memory below which pod eviction is triggered. + * Accepts absolute values (e.g. '500Mi') or percentage values (e.g. '5%'). Absolute values must be greater than or + * equal to 100Mi. Percentage values must be greater than or equal to 2%. + * + * @param memoryAvailable the memoryAvailable value to set. + * @return the HardEvictionThreshold object itself. + */ + public HardEvictionThreshold withMemoryAvailable(String memoryAvailable) { + this.memoryAvailable = memoryAvailable; + return this; + } + + /** + * Get the nodeFsAvailable property: The threshold for available node filesystem space below which pod eviction is + * triggered. Accepts absolute values (e.g. '1Gi') or percentage values (e.g. '10%'). Must be greater than or equal + * to the system default of 10%. + * + * @return the nodeFsAvailable value. + */ + public String nodeFsAvailable() { + return this.nodeFsAvailable; + } + + /** + * Set the nodeFsAvailable property: The threshold for available node filesystem space below which pod eviction is + * triggered. Accepts absolute values (e.g. '1Gi') or percentage values (e.g. '10%'). Must be greater than or equal + * to the system default of 10%. + * + * @param nodeFsAvailable the nodeFsAvailable value to set. + * @return the HardEvictionThreshold object itself. + */ + public HardEvictionThreshold withNodeFsAvailable(String nodeFsAvailable) { + this.nodeFsAvailable = nodeFsAvailable; + return this; + } + + /** + * Get the nodeFsInodesFree property: The threshold for available inodes on the node filesystem below which pod + * eviction is triggered. Accepts absolute inode counts (e.g. '100000') or percentage values (e.g. '5%'). Percentage + * values must be greater than or equal to the system default of 5%. + * + * @return the nodeFsInodesFree value. + */ + public String nodeFsInodesFree() { + return this.nodeFsInodesFree; + } + + /** + * Set the nodeFsInodesFree property: The threshold for available inodes on the node filesystem below which pod + * eviction is triggered. Accepts absolute inode counts (e.g. '100000') or percentage values (e.g. '5%'). Percentage + * values must be greater than or equal to the system default of 5%. + * + * @param nodeFsInodesFree the nodeFsInodesFree value to set. + * @return the HardEvictionThreshold object itself. + */ + public HardEvictionThreshold withNodeFsInodesFree(String nodeFsInodesFree) { + this.nodeFsInodesFree = nodeFsInodesFree; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("memoryAvailable", this.memoryAvailable); + jsonWriter.writeStringField("nodeFsAvailable", this.nodeFsAvailable); + jsonWriter.writeStringField("nodeFsInodesFree", this.nodeFsInodesFree); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of HardEvictionThreshold from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of HardEvictionThreshold 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 HardEvictionThreshold. + */ + public static HardEvictionThreshold fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + HardEvictionThreshold deserializedHardEvictionThreshold = new HardEvictionThreshold(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("memoryAvailable".equals(fieldName)) { + deserializedHardEvictionThreshold.memoryAvailable = reader.getString(); + } else if ("nodeFsAvailable".equals(fieldName)) { + deserializedHardEvictionThreshold.nodeFsAvailable = reader.getString(); + } else if ("nodeFsInodesFree".equals(fieldName)) { + deserializedHardEvictionThreshold.nodeFsInodesFree = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedHardEvictionThreshold; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IdentityBindingProperties.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IdentityBindingProperties.java index 29c4711af8efb..994aaa64f70b9 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IdentityBindingProperties.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IdentityBindingProperties.java @@ -11,6 +11,7 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import java.io.IOException; +import java.util.List; /** * IdentityBinding properties. @@ -32,6 +33,16 @@ public final class IdentityBindingProperties implements JsonSerializable allowedSubjects; + /** * Creates an instance of IdentityBindingProperties class. */ @@ -76,6 +87,36 @@ public IdentityBindingProvisioningState provisioningState() { return this.provisioningState; } + /** + * Get the allowedSubjects property: Optional list of subjects authorized to use this identity binding for + * token exchange. Each entry pairs a required namespace label selector + * with an optional service account label selector; selectors within an + * entry are AND'd, and multiple entries are OR'd. When omitted or empty, + * authorization falls back exclusively to ClusterRole/ClusterRoleBinding + * evaluation. Maximum 100 entries. + * + * @return the allowedSubjects value. + */ + public List allowedSubjects() { + return this.allowedSubjects; + } + + /** + * Set the allowedSubjects property: Optional list of subjects authorized to use this identity binding for + * token exchange. Each entry pairs a required namespace label selector + * with an optional service account label selector; selectors within an + * entry are AND'd, and multiple entries are OR'd. When omitted or empty, + * authorization falls back exclusively to ClusterRole/ClusterRoleBinding + * evaluation. Maximum 100 entries. + * + * @param allowedSubjects the allowedSubjects value to set. + * @return the IdentityBindingProperties object itself. + */ + public IdentityBindingProperties withAllowedSubjects(List allowedSubjects) { + this.allowedSubjects = allowedSubjects; + return this; + } + /** * Validates the instance. * @@ -92,6 +133,9 @@ public void validate() { if (oidcIssuer() != null) { oidcIssuer().validate(); } + if (allowedSubjects() != null) { + allowedSubjects().forEach(e -> e.validate()); + } } private static final ClientLogger LOGGER = new ClientLogger(IdentityBindingProperties.class); @@ -103,6 +147,8 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeJsonField("managedIdentity", this.managedIdentity); + jsonWriter.writeArrayField("allowedSubjects", this.allowedSubjects, + (writer, element) -> writer.writeJson(element)); return jsonWriter.writeEndObject(); } @@ -131,6 +177,10 @@ public static IdentityBindingProperties fromJson(JsonReader jsonReader) throws I } else if ("provisioningState".equals(fieldName)) { deserializedIdentityBindingProperties.provisioningState = IdentityBindingProvisioningState.fromString(reader.getString()); + } else if ("allowedSubjects".equals(fieldName)) { + List allowedSubjects + = reader.readArray(reader1 -> AllowedSubject.fromJson(reader1)); + deserializedIdentityBindingProperties.allowedSubjects = allowedSubjects; } else { reader.skipChildren(); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ImpactedResourceKind.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ImpactedResourceKind.java new file mode 100644 index 0000000000000..da66b0996fce1 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ImpactedResourceKind.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The category of a resource impacted by a detected upgrade issue. + */ +public final class ImpactedResourceKind extends ExpandableStringEnum { + /** + * An Azure Resource Manager (ARM) resource. + */ + public static final ImpactedResourceKind ARM = fromString("Arm"); + + /** + * A Kubernetes resource. + */ + public static final ImpactedResourceKind KUBERNETES = fromString("Kubernetes"); + + /** + * Creates a new instance of ImpactedResourceKind value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ImpactedResourceKind() { + } + + /** + * Creates or finds a ImpactedResourceKind from its string representation. + * + * @param name a name to look for. + * @return the corresponding ImpactedResourceKind. + */ + public static ImpactedResourceKind fromString(String name) { + return fromString(name, ImpactedResourceKind.class); + } + + /** + * Gets known ImpactedResourceKind values. + * + * @return known ImpactedResourceKind values. + */ + public static Collection values() { + return values(ImpactedResourceKind.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IpvsScheduler.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IpvsScheduler.java new file mode 100644 index 0000000000000..9cadce7b0ef26 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/IpvsScheduler.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * IPVS scheduler, for more information please see http://www.linuxvirtualserver.org/docs/scheduling.html. + */ +public final class IpvsScheduler extends ExpandableStringEnum { + /** + * Round Robin. + */ + public static final IpvsScheduler ROUND_ROBIN = fromString("RoundRobin"); + + /** + * Least Connection. + */ + public static final IpvsScheduler LEAST_CONNECTION = fromString("LeastConnection"); + + /** + * Creates a new instance of IpvsScheduler value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public IpvsScheduler() { + } + + /** + * Creates or finds a IpvsScheduler from its string representation. + * + * @param name a name to look for. + * @return the corresponding IpvsScheduler. + */ + public static IpvsScheduler fromString(String name) { + return fromString(name, IpvsScheduler.class); + } + + /** + * Gets known IpvsScheduler values. + * + * @return known IpvsScheduler values. + */ + public static Collection values() { + return values(IpvsScheduler.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JWTAuthenticatorClaimMappingExpression.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JWTAuthenticatorClaimMappingExpression.java new file mode 100644 index 0000000000000..493002409c82b --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JWTAuthenticatorClaimMappingExpression.java @@ -0,0 +1,104 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The claim mapping expression for JWTAuthenticator. + */ +@Fluent +public final class JWTAuthenticatorClaimMappingExpression + implements JsonSerializable { + /* + * The CEL expression used to access token claims. + */ + private String expression; + + /** + * Creates an instance of JWTAuthenticatorClaimMappingExpression class. + */ + public JWTAuthenticatorClaimMappingExpression() { + } + + /** + * Get the expression property: The CEL expression used to access token claims. + * + * @return the expression value. + */ + public String expression() { + return this.expression; + } + + /** + * Set the expression property: The CEL expression used to access token claims. + * + * @param expression the expression value to set. + * @return the JWTAuthenticatorClaimMappingExpression object itself. + */ + public JWTAuthenticatorClaimMappingExpression withExpression(String expression) { + this.expression = expression; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (expression() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property expression in model JWTAuthenticatorClaimMappingExpression")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(JWTAuthenticatorClaimMappingExpression.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("expression", this.expression); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of JWTAuthenticatorClaimMappingExpression from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of JWTAuthenticatorClaimMappingExpression 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 JWTAuthenticatorClaimMappingExpression. + */ + public static JWTAuthenticatorClaimMappingExpression fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + JWTAuthenticatorClaimMappingExpression deserializedJWTAuthenticatorClaimMappingExpression + = new JWTAuthenticatorClaimMappingExpression(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("expression".equals(fieldName)) { + deserializedJWTAuthenticatorClaimMappingExpression.expression = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedJWTAuthenticatorClaimMappingExpression; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JWTAuthenticatorClaimMappings.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JWTAuthenticatorClaimMappings.java new file mode 100644 index 0000000000000..8be5ddc596ff1 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JWTAuthenticatorClaimMappings.java @@ -0,0 +1,213 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * The claim mappings for JWTAuthenticator. + */ +@Fluent +public final class JWTAuthenticatorClaimMappings implements JsonSerializable { + /* + * The expression to extract username attribute from the token claims. + */ + private JWTAuthenticatorClaimMappingExpression username; + + /* + * The expression to extract groups attribute from the token claims. When not provided, no groups are extracted from + * the token claims. + */ + private JWTAuthenticatorClaimMappingExpression groups; + + /* + * The expression to extract uid attribute from the token claims. When not provided, no uid is extracted from the + * token claims. + */ + private JWTAuthenticatorClaimMappingExpression uid; + + /* + * The expression to extract extra attribute from the token claims. When not provided, no extra attributes are + * extracted from the token claims. + */ + private List extra; + + /** + * Creates an instance of JWTAuthenticatorClaimMappings class. + */ + public JWTAuthenticatorClaimMappings() { + } + + /** + * Get the username property: The expression to extract username attribute from the token claims. + * + * @return the username value. + */ + public JWTAuthenticatorClaimMappingExpression username() { + return this.username; + } + + /** + * Set the username property: The expression to extract username attribute from the token claims. + * + * @param username the username value to set. + * @return the JWTAuthenticatorClaimMappings object itself. + */ + public JWTAuthenticatorClaimMappings withUsername(JWTAuthenticatorClaimMappingExpression username) { + this.username = username; + return this; + } + + /** + * Get the groups property: The expression to extract groups attribute from the token claims. When not provided, no + * groups are extracted from the token claims. + * + * @return the groups value. + */ + public JWTAuthenticatorClaimMappingExpression groups() { + return this.groups; + } + + /** + * Set the groups property: The expression to extract groups attribute from the token claims. When not provided, no + * groups are extracted from the token claims. + * + * @param groups the groups value to set. + * @return the JWTAuthenticatorClaimMappings object itself. + */ + public JWTAuthenticatorClaimMappings withGroups(JWTAuthenticatorClaimMappingExpression groups) { + this.groups = groups; + return this; + } + + /** + * Get the uid property: The expression to extract uid attribute from the token claims. When not provided, no uid is + * extracted from the token claims. + * + * @return the uid value. + */ + public JWTAuthenticatorClaimMappingExpression uid() { + return this.uid; + } + + /** + * Set the uid property: The expression to extract uid attribute from the token claims. When not provided, no uid is + * extracted from the token claims. + * + * @param uid the uid value to set. + * @return the JWTAuthenticatorClaimMappings object itself. + */ + public JWTAuthenticatorClaimMappings withUid(JWTAuthenticatorClaimMappingExpression uid) { + this.uid = uid; + return this; + } + + /** + * Get the extra property: The expression to extract extra attribute from the token claims. When not provided, no + * extra attributes are extracted from the token claims. + * + * @return the extra value. + */ + public List extra() { + return this.extra; + } + + /** + * Set the extra property: The expression to extract extra attribute from the token claims. When not provided, no + * extra attributes are extracted from the token claims. + * + * @param extra the extra value to set. + * @return the JWTAuthenticatorClaimMappings object itself. + */ + public JWTAuthenticatorClaimMappings withExtra(List extra) { + this.extra = extra; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (username() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property username in model JWTAuthenticatorClaimMappings")); + } else { + username().validate(); + } + if (groups() != null) { + groups().validate(); + } + if (uid() != null) { + uid().validate(); + } + if (extra() != null) { + extra().forEach(e -> e.validate()); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(JWTAuthenticatorClaimMappings.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("username", this.username); + jsonWriter.writeJsonField("groups", this.groups); + jsonWriter.writeJsonField("uid", this.uid); + jsonWriter.writeArrayField("extra", this.extra, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of JWTAuthenticatorClaimMappings from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of JWTAuthenticatorClaimMappings 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 JWTAuthenticatorClaimMappings. + */ + public static JWTAuthenticatorClaimMappings fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + JWTAuthenticatorClaimMappings deserializedJWTAuthenticatorClaimMappings + = new JWTAuthenticatorClaimMappings(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("username".equals(fieldName)) { + deserializedJWTAuthenticatorClaimMappings.username + = JWTAuthenticatorClaimMappingExpression.fromJson(reader); + } else if ("groups".equals(fieldName)) { + deserializedJWTAuthenticatorClaimMappings.groups + = JWTAuthenticatorClaimMappingExpression.fromJson(reader); + } else if ("uid".equals(fieldName)) { + deserializedJWTAuthenticatorClaimMappings.uid + = JWTAuthenticatorClaimMappingExpression.fromJson(reader); + } else if ("extra".equals(fieldName)) { + List extra + = reader.readArray(reader1 -> JWTAuthenticatorExtraClaimMappingExpression.fromJson(reader1)); + deserializedJWTAuthenticatorClaimMappings.extra = extra; + } else { + reader.skipChildren(); + } + } + + return deserializedJWTAuthenticatorClaimMappings; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JWTAuthenticatorExtraClaimMappingExpression.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JWTAuthenticatorExtraClaimMappingExpression.java new file mode 100644 index 0000000000000..ea33ba837a84c --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JWTAuthenticatorExtraClaimMappingExpression.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.containerservice.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The extra claim mapping expression for JWTAuthenticator. + */ +@Fluent +public final class JWTAuthenticatorExtraClaimMappingExpression + implements JsonSerializable { + /* + * The key of the extra attribute. + */ + private String key; + + /* + * The CEL expression used to extract the value of the extra attribute. + */ + private String valueExpression; + + /** + * Creates an instance of JWTAuthenticatorExtraClaimMappingExpression class. + */ + public JWTAuthenticatorExtraClaimMappingExpression() { + } + + /** + * Get the key property: The key of the extra attribute. + * + * @return the key value. + */ + public String key() { + return this.key; + } + + /** + * Set the key property: The key of the extra attribute. + * + * @param key the key value to set. + * @return the JWTAuthenticatorExtraClaimMappingExpression object itself. + */ + public JWTAuthenticatorExtraClaimMappingExpression withKey(String key) { + this.key = key; + return this; + } + + /** + * Get the valueExpression property: The CEL expression used to extract the value of the extra attribute. + * + * @return the valueExpression value. + */ + public String valueExpression() { + return this.valueExpression; + } + + /** + * Set the valueExpression property: The CEL expression used to extract the value of the extra attribute. + * + * @param valueExpression the valueExpression value to set. + * @return the JWTAuthenticatorExtraClaimMappingExpression object itself. + */ + public JWTAuthenticatorExtraClaimMappingExpression withValueExpression(String valueExpression) { + this.valueExpression = valueExpression; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (key() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property key in model JWTAuthenticatorExtraClaimMappingExpression")); + } + if (valueExpression() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property valueExpression in model JWTAuthenticatorExtraClaimMappingExpression")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(JWTAuthenticatorExtraClaimMappingExpression.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("key", this.key); + jsonWriter.writeStringField("valueExpression", this.valueExpression); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of JWTAuthenticatorExtraClaimMappingExpression from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of JWTAuthenticatorExtraClaimMappingExpression 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 JWTAuthenticatorExtraClaimMappingExpression. + */ + public static JWTAuthenticatorExtraClaimMappingExpression fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + JWTAuthenticatorExtraClaimMappingExpression deserializedJWTAuthenticatorExtraClaimMappingExpression + = new JWTAuthenticatorExtraClaimMappingExpression(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("key".equals(fieldName)) { + deserializedJWTAuthenticatorExtraClaimMappingExpression.key = reader.getString(); + } else if ("valueExpression".equals(fieldName)) { + deserializedJWTAuthenticatorExtraClaimMappingExpression.valueExpression = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedJWTAuthenticatorExtraClaimMappingExpression; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JWTAuthenticatorIssuer.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JWTAuthenticatorIssuer.java new file mode 100644 index 0000000000000..1bbde0a29e9d8 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JWTAuthenticatorIssuer.java @@ -0,0 +1,142 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * The OIDC issuer details for JWTAuthenticator. + */ +@Fluent +public final class JWTAuthenticatorIssuer implements JsonSerializable { + /* + * The issuer URL. The URL must begin with the scheme https and cannot contain a query string or fragment. This must + * match the "iss" claim in the presented JWT, and the issuer returned from discovery. + */ + private String url; + + /* + * The set of acceptable audiences the JWT must be issued to. At least one is required. When multiple is set, + * AudienceMatchPolicy is used in API Server configuration. + */ + private List audiences; + + /** + * Creates an instance of JWTAuthenticatorIssuer class. + */ + public JWTAuthenticatorIssuer() { + } + + /** + * Get the url property: The issuer URL. The URL must begin with the scheme https and cannot contain a query string + * or fragment. This must match the "iss" claim in the presented JWT, and the issuer returned from discovery. + * + * @return the url value. + */ + public String url() { + return this.url; + } + + /** + * Set the url property: The issuer URL. The URL must begin with the scheme https and cannot contain a query string + * or fragment. This must match the "iss" claim in the presented JWT, and the issuer returned from discovery. + * + * @param url the url value to set. + * @return the JWTAuthenticatorIssuer object itself. + */ + public JWTAuthenticatorIssuer withUrl(String url) { + this.url = url; + return this; + } + + /** + * Get the audiences property: The set of acceptable audiences the JWT must be issued to. At least one is required. + * When multiple is set, AudienceMatchPolicy is used in API Server configuration. + * + * @return the audiences value. + */ + public List audiences() { + return this.audiences; + } + + /** + * Set the audiences property: The set of acceptable audiences the JWT must be issued to. At least one is required. + * When multiple is set, AudienceMatchPolicy is used in API Server configuration. + * + * @param audiences the audiences value to set. + * @return the JWTAuthenticatorIssuer object itself. + */ + public JWTAuthenticatorIssuer withAudiences(List audiences) { + this.audiences = audiences; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (url() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException("Missing required property url in model JWTAuthenticatorIssuer")); + } + if (audiences() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property audiences in model JWTAuthenticatorIssuer")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(JWTAuthenticatorIssuer.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("url", this.url); + jsonWriter.writeArrayField("audiences", this.audiences, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of JWTAuthenticatorIssuer from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of JWTAuthenticatorIssuer 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 JWTAuthenticatorIssuer. + */ + public static JWTAuthenticatorIssuer fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + JWTAuthenticatorIssuer deserializedJWTAuthenticatorIssuer = new JWTAuthenticatorIssuer(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("url".equals(fieldName)) { + deserializedJWTAuthenticatorIssuer.url = reader.getString(); + } else if ("audiences".equals(fieldName)) { + List audiences = reader.readArray(reader1 -> reader1.getString()); + deserializedJWTAuthenticatorIssuer.audiences = audiences; + } else { + reader.skipChildren(); + } + } + + return deserializedJWTAuthenticatorIssuer; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JWTAuthenticatorProperties.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JWTAuthenticatorProperties.java new file mode 100644 index 0000000000000..00a627ec7a54a --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JWTAuthenticatorProperties.java @@ -0,0 +1,299 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * The properties of JWTAuthenticator. For details on how to configure the properties of a JWT authenticator, please + * refer to the Kubernetes documentation: + * https://kubernetes.io/docs/reference/access-authn-authz/authentication/#using-authentication-configuration. Please + * note that not all fields available in the Kubernetes documentation are supported by AKS. For troubleshooting, please + * see https://aka.ms/aks-external-issuers-docs. + */ +@Fluent +public final class JWTAuthenticatorProperties implements JsonSerializable { + /* + * The current provisioning state of the JWT authenticator. + */ + private JWTAuthenticatorProvisioningState provisioningState; + + /* + * The JWT OIDC issuer details. + */ + private JWTAuthenticatorIssuer issuer; + + /* + * The rules that are applied to validate token claims to authenticate users. All the expressions must evaluate to + * true for validation to succeed. + */ + private List claimValidationRules; + + /* + * The mappings that define how user attributes are extracted from the token claims. + */ + private JWTAuthenticatorClaimMappings claimMappings; + + /* + * The rules that are applied to the mapped user before completing authentication. All the expressions must evaluate + * to true for validation to succeed. + */ + private List userValidationRules; + + /* + * PEM-encoded CA certificate bundle used to validate the connection when fetching discovery information. Use this + * for issuer endpoints that use private certificate authorities + * or environments where TLS inspection is performed. + * + * The bundle must contain only CERTIFICATE PEM blocks, up to 10 CA certificates, and must be no larger than 20 KB + * in total. Include all CA certificates needed to validate + * the issuer endpoint's TLS certificate. Certificate revocation checking is not supported. + * + * If provided, only these CAs are trusted instead of the well-known root CAs. + * If not provided and the managed cluster's properties.securityProfile.customCATrustCertificates is set, those + * certificates will be used instead. Otherwise, only the well-known + * root CAs are trusted. + */ + private String certificateAuthorityBundle; + + /** + * Creates an instance of JWTAuthenticatorProperties class. + */ + public JWTAuthenticatorProperties() { + } + + /** + * Get the provisioningState property: The current provisioning state of the JWT authenticator. + * + * @return the provisioningState value. + */ + public JWTAuthenticatorProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Get the issuer property: The JWT OIDC issuer details. + * + * @return the issuer value. + */ + public JWTAuthenticatorIssuer issuer() { + return this.issuer; + } + + /** + * Set the issuer property: The JWT OIDC issuer details. + * + * @param issuer the issuer value to set. + * @return the JWTAuthenticatorProperties object itself. + */ + public JWTAuthenticatorProperties withIssuer(JWTAuthenticatorIssuer issuer) { + this.issuer = issuer; + return this; + } + + /** + * Get the claimValidationRules property: The rules that are applied to validate token claims to authenticate users. + * All the expressions must evaluate to true for validation to succeed. + * + * @return the claimValidationRules value. + */ + public List claimValidationRules() { + return this.claimValidationRules; + } + + /** + * Set the claimValidationRules property: The rules that are applied to validate token claims to authenticate users. + * All the expressions must evaluate to true for validation to succeed. + * + * @param claimValidationRules the claimValidationRules value to set. + * @return the JWTAuthenticatorProperties object itself. + */ + public JWTAuthenticatorProperties + withClaimValidationRules(List claimValidationRules) { + this.claimValidationRules = claimValidationRules; + return this; + } + + /** + * Get the claimMappings property: The mappings that define how user attributes are extracted from the token claims. + * + * @return the claimMappings value. + */ + public JWTAuthenticatorClaimMappings claimMappings() { + return this.claimMappings; + } + + /** + * Set the claimMappings property: The mappings that define how user attributes are extracted from the token claims. + * + * @param claimMappings the claimMappings value to set. + * @return the JWTAuthenticatorProperties object itself. + */ + public JWTAuthenticatorProperties withClaimMappings(JWTAuthenticatorClaimMappings claimMappings) { + this.claimMappings = claimMappings; + return this; + } + + /** + * Get the userValidationRules property: The rules that are applied to the mapped user before completing + * authentication. All the expressions must evaluate to true for validation to succeed. + * + * @return the userValidationRules value. + */ + public List userValidationRules() { + return this.userValidationRules; + } + + /** + * Set the userValidationRules property: The rules that are applied to the mapped user before completing + * authentication. All the expressions must evaluate to true for validation to succeed. + * + * @param userValidationRules the userValidationRules value to set. + * @return the JWTAuthenticatorProperties object itself. + */ + public JWTAuthenticatorProperties + withUserValidationRules(List userValidationRules) { + this.userValidationRules = userValidationRules; + return this; + } + + /** + * Get the certificateAuthorityBundle property: PEM-encoded CA certificate bundle used to validate the connection + * when fetching discovery information. Use this for issuer endpoints that use private certificate authorities + * or environments where TLS inspection is performed. + * + * The bundle must contain only CERTIFICATE PEM blocks, up to 10 CA certificates, and must be no larger than 20 KB + * in total. Include all CA certificates needed to validate + * the issuer endpoint's TLS certificate. Certificate revocation checking is not supported. + * + * If provided, only these CAs are trusted instead of the well-known root CAs. + * If not provided and the managed cluster's properties.securityProfile.customCATrustCertificates is set, those + * certificates will be used instead. Otherwise, only the well-known + * root CAs are trusted. + * + * @return the certificateAuthorityBundle value. + */ + public String certificateAuthorityBundle() { + return this.certificateAuthorityBundle; + } + + /** + * Set the certificateAuthorityBundle property: PEM-encoded CA certificate bundle used to validate the connection + * when fetching discovery information. Use this for issuer endpoints that use private certificate authorities + * or environments where TLS inspection is performed. + * + * The bundle must contain only CERTIFICATE PEM blocks, up to 10 CA certificates, and must be no larger than 20 KB + * in total. Include all CA certificates needed to validate + * the issuer endpoint's TLS certificate. Certificate revocation checking is not supported. + * + * If provided, only these CAs are trusted instead of the well-known root CAs. + * If not provided and the managed cluster's properties.securityProfile.customCATrustCertificates is set, those + * certificates will be used instead. Otherwise, only the well-known + * root CAs are trusted. + * + * @param certificateAuthorityBundle the certificateAuthorityBundle value to set. + * @return the JWTAuthenticatorProperties object itself. + */ + public JWTAuthenticatorProperties withCertificateAuthorityBundle(String certificateAuthorityBundle) { + this.certificateAuthorityBundle = certificateAuthorityBundle; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (issuer() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property issuer in model JWTAuthenticatorProperties")); + } else { + issuer().validate(); + } + if (claimValidationRules() != null) { + claimValidationRules().forEach(e -> e.validate()); + } + if (claimMappings() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property claimMappings in model JWTAuthenticatorProperties")); + } else { + claimMappings().validate(); + } + if (userValidationRules() != null) { + userValidationRules().forEach(e -> e.validate()); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(JWTAuthenticatorProperties.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("issuer", this.issuer); + jsonWriter.writeJsonField("claimMappings", this.claimMappings); + jsonWriter.writeArrayField("claimValidationRules", this.claimValidationRules, + (writer, element) -> writer.writeJson(element)); + jsonWriter.writeArrayField("userValidationRules", this.userValidationRules, + (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("certificateAuthorityBundle", this.certificateAuthorityBundle); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of JWTAuthenticatorProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of JWTAuthenticatorProperties 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 JWTAuthenticatorProperties. + */ + public static JWTAuthenticatorProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + JWTAuthenticatorProperties deserializedJWTAuthenticatorProperties = new JWTAuthenticatorProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("issuer".equals(fieldName)) { + deserializedJWTAuthenticatorProperties.issuer = JWTAuthenticatorIssuer.fromJson(reader); + } else if ("claimMappings".equals(fieldName)) { + deserializedJWTAuthenticatorProperties.claimMappings + = JWTAuthenticatorClaimMappings.fromJson(reader); + } else if ("provisioningState".equals(fieldName)) { + deserializedJWTAuthenticatorProperties.provisioningState + = JWTAuthenticatorProvisioningState.fromString(reader.getString()); + } else if ("claimValidationRules".equals(fieldName)) { + List claimValidationRules + = reader.readArray(reader1 -> JWTAuthenticatorValidationRule.fromJson(reader1)); + deserializedJWTAuthenticatorProperties.claimValidationRules = claimValidationRules; + } else if ("userValidationRules".equals(fieldName)) { + List userValidationRules + = reader.readArray(reader1 -> JWTAuthenticatorValidationRule.fromJson(reader1)); + deserializedJWTAuthenticatorProperties.userValidationRules = userValidationRules; + } else if ("certificateAuthorityBundle".equals(fieldName)) { + deserializedJWTAuthenticatorProperties.certificateAuthorityBundle = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedJWTAuthenticatorProperties; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JWTAuthenticatorProvisioningState.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JWTAuthenticatorProvisioningState.java new file mode 100644 index 0000000000000..3cb2ef6a9d1d4 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JWTAuthenticatorProvisioningState.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.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The provisioning state of the last accepted operation. + */ +public final class JWTAuthenticatorProvisioningState extends ExpandableStringEnum { + /** + * Resource has been created. + */ + public static final JWTAuthenticatorProvisioningState SUCCEEDED = fromString("Succeeded"); + + /** + * Resource creation failed. + */ + public static final JWTAuthenticatorProvisioningState FAILED = fromString("Failed"); + + /** + * Resource creation was canceled. + */ + public static final JWTAuthenticatorProvisioningState CANCELED = fromString("Canceled"); + + /** + * The JWT authenticator is being created. + */ + public static final JWTAuthenticatorProvisioningState CREATING = fromString("Creating"); + + /** + * The JWT authenticator is being updated. + */ + public static final JWTAuthenticatorProvisioningState UPDATING = fromString("Updating"); + + /** + * The JWT authenticator is being deleted. + */ + public static final JWTAuthenticatorProvisioningState DELETING = fromString("Deleting"); + + /** + * Creates a new instance of JWTAuthenticatorProvisioningState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public JWTAuthenticatorProvisioningState() { + } + + /** + * Creates or finds a JWTAuthenticatorProvisioningState from its string representation. + * + * @param name a name to look for. + * @return the corresponding JWTAuthenticatorProvisioningState. + */ + public static JWTAuthenticatorProvisioningState fromString(String name) { + return fromString(name, JWTAuthenticatorProvisioningState.class); + } + + /** + * Gets known JWTAuthenticatorProvisioningState values. + * + * @return known JWTAuthenticatorProvisioningState values. + */ + public static Collection values() { + return values(JWTAuthenticatorProvisioningState.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JWTAuthenticatorValidationRule.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JWTAuthenticatorValidationRule.java new file mode 100644 index 0000000000000..ba7efd902605f --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/JWTAuthenticatorValidationRule.java @@ -0,0 +1,131 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The validation rule for JWTAuthenticator. + */ +@Fluent +public final class JWTAuthenticatorValidationRule implements JsonSerializable { + /* + * The CEL expression used to validate the claim or attribute. + */ + private String expression; + + /* + * The validation error message. + */ + private String message; + + /** + * Creates an instance of JWTAuthenticatorValidationRule class. + */ + public JWTAuthenticatorValidationRule() { + } + + /** + * Get the expression property: The CEL expression used to validate the claim or attribute. + * + * @return the expression value. + */ + public String expression() { + return this.expression; + } + + /** + * Set the expression property: The CEL expression used to validate the claim or attribute. + * + * @param expression the expression value to set. + * @return the JWTAuthenticatorValidationRule object itself. + */ + public JWTAuthenticatorValidationRule withExpression(String expression) { + this.expression = expression; + return this; + } + + /** + * Get the message property: The validation error message. + * + * @return the message value. + */ + public String message() { + return this.message; + } + + /** + * Set the message property: The validation error message. + * + * @param message the message value to set. + * @return the JWTAuthenticatorValidationRule object itself. + */ + public JWTAuthenticatorValidationRule withMessage(String message) { + this.message = message; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (expression() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property expression in model JWTAuthenticatorValidationRule")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(JWTAuthenticatorValidationRule.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("expression", this.expression); + jsonWriter.writeStringField("message", this.message); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of JWTAuthenticatorValidationRule from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of JWTAuthenticatorValidationRule 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 JWTAuthenticatorValidationRule. + */ + public static JWTAuthenticatorValidationRule fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + JWTAuthenticatorValidationRule deserializedJWTAuthenticatorValidationRule + = new JWTAuthenticatorValidationRule(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("expression".equals(fieldName)) { + deserializedJWTAuthenticatorValidationRule.expression = reader.getString(); + } else if ("message".equals(fieldName)) { + deserializedJWTAuthenticatorValidationRule.message = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedJWTAuthenticatorValidationRule; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/KubeReserved.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/KubeReserved.java new file mode 100644 index 0000000000000..e386a02559d27 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/KubeReserved.java @@ -0,0 +1,128 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * Kube-reserved values for kubelet. When a value is not set, the system-computed default based on VM size is used. See + * [AKS node resource reservations](https://aka.ms/aks/nodereservations) for details on computed defaults. Only + * applicable for Linux nodepools. + */ +@Fluent +public final class KubeReserved implements JsonSerializable { + /* + * The amount of CPU reserved for Kubernetes system daemons, in millicores. Must be greater than or equal to 140. + * For example, a value of 200 means 200m (0.2 CPU cores). + */ + private Integer cpuMillicores; + + /* + * The amount of memory reserved for Kubernetes system daemons, in MiB. Must be greater than or equal to 750. + */ + private Integer memoryMB; + + /** + * Creates an instance of KubeReserved class. + */ + public KubeReserved() { + } + + /** + * Get the cpuMillicores property: The amount of CPU reserved for Kubernetes system daemons, in millicores. Must be + * greater than or equal to 140. For example, a value of 200 means 200m (0.2 CPU cores). + * + * @return the cpuMillicores value. + */ + public Integer cpuMillicores() { + return this.cpuMillicores; + } + + /** + * Set the cpuMillicores property: The amount of CPU reserved for Kubernetes system daemons, in millicores. Must be + * greater than or equal to 140. For example, a value of 200 means 200m (0.2 CPU cores). + * + * @param cpuMillicores the cpuMillicores value to set. + * @return the KubeReserved object itself. + */ + public KubeReserved withCpuMillicores(Integer cpuMillicores) { + this.cpuMillicores = cpuMillicores; + return this; + } + + /** + * Get the memoryMB property: The amount of memory reserved for Kubernetes system daemons, in MiB. Must be greater + * than or equal to 750. + * + * @return the memoryMB value. + */ + public Integer memoryMB() { + return this.memoryMB; + } + + /** + * Set the memoryMB property: The amount of memory reserved for Kubernetes system daemons, in MiB. Must be greater + * than or equal to 750. + * + * @param memoryMB the memoryMB value to set. + * @return the KubeReserved object itself. + */ + public KubeReserved withMemoryMB(Integer memoryMB) { + this.memoryMB = memoryMB; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeNumberField("cpuMillicores", this.cpuMillicores); + jsonWriter.writeNumberField("memoryMB", this.memoryMB); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of KubeReserved from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of KubeReserved 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 KubeReserved. + */ + public static KubeReserved fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + KubeReserved deserializedKubeReserved = new KubeReserved(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("cpuMillicores".equals(fieldName)) { + deserializedKubeReserved.cpuMillicores = reader.getNullable(JsonReader::getInt); + } else if ("memoryMB".equals(fieldName)) { + deserializedKubeReserved.memoryMB = reader.getNullable(JsonReader::getInt); + } else { + reader.skipChildren(); + } + } + + return deserializedKubeReserved; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/KubeletConfig.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/KubeletConfig.java index d07302d31b09f..b6de4bf2322db 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/KubeletConfig.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/KubeletConfig.java @@ -81,6 +81,50 @@ public final class KubeletConfig implements JsonSerializable { */ private Integer podMaxPids; + /* + * Specifies the default seccomp profile applied to all workloads. If not specified, 'Unconfined' will be used by + * default. + */ + private SeccompDefault seccompDefault; + + /* + * Kube-reserved values for kubelet. When a value is not set, the system-computed default based on VM size is used. + * See [AKS node resource reservations](https://aka.ms/aks/nodereservations) for details on computed defaults. Only + * applicable for Linux nodepools. + */ + private KubeReserved kubeReserved; + + /* + * Hard eviction thresholds for kubelet. When a threshold is not set, the system default is used. See [AKS node + * resource reservations](https://aka.ms/aks/nodereservations) for details on computed defaults. Only applicable for + * Linux nodepools. + */ + private HardEvictionThreshold hardEvictionThreshold; + + /* + * Soft eviction thresholds for kubelet. When crossed, pods are evicted after the paired softEvictionGracePeriod. + * System defaults apply when the cluster's `enableNodeHardening` property is true; otherwise no soft eviction is + * configured. For each signal (memoryAvailable, nodeFsAvailable, nodeFsInodesFree), the entries in + * softEvictionThreshold and softEvictionGracePeriod must be in the same state: both omitted (default), both + * non-empty (override), or both empty strings (opt that signal out). Only applicable for Linux nodepools. See + * https://kubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction/#soft-eviction-thresholds. + */ + private SoftEvictionThreshold softEvictionThreshold; + + /* + * Grace periods for soft eviction signals — how long a threshold must be held before pod eviction. Same defaulting + * and pairing rules as softEvictionThreshold. Values are Go-style duration strings (e.g. '1m30s'); supported units + * are 'ns', 'us', 'ms', 's', 'm', and 'h'. Only applicable for Linux nodepools. + */ + private SoftEvictionGracePeriod softEvictionGracePeriod; + + /* + * Maximum grace period, in seconds, for pods to terminate during a soft eviction; caps the pod's + * terminationGracePeriodSeconds. Default is 60, applied when the cluster's `enableNodeHardening` property is true. + * Only applicable for Linux nodepools. + */ + private Integer evictionMaxPodGracePeriodInSeconds; + /** * Creates an instance of KubeletConfig class. */ @@ -331,12 +375,176 @@ public KubeletConfig withPodMaxPids(Integer podMaxPids) { return this; } + /** + * Get the seccompDefault property: Specifies the default seccomp profile applied to all workloads. If not + * specified, 'Unconfined' will be used by default. + * + * @return the seccompDefault value. + */ + public SeccompDefault seccompDefault() { + return this.seccompDefault; + } + + /** + * Set the seccompDefault property: Specifies the default seccomp profile applied to all workloads. If not + * specified, 'Unconfined' will be used by default. + * + * @param seccompDefault the seccompDefault value to set. + * @return the KubeletConfig object itself. + */ + public KubeletConfig withSeccompDefault(SeccompDefault seccompDefault) { + this.seccompDefault = seccompDefault; + return this; + } + + /** + * Get the kubeReserved property: Kube-reserved values for kubelet. When a value is not set, the system-computed + * default based on VM size is used. See [AKS node resource reservations](https://aka.ms/aks/nodereservations) for + * details on computed defaults. Only applicable for Linux nodepools. + * + * @return the kubeReserved value. + */ + public KubeReserved kubeReserved() { + return this.kubeReserved; + } + + /** + * Set the kubeReserved property: Kube-reserved values for kubelet. When a value is not set, the system-computed + * default based on VM size is used. See [AKS node resource reservations](https://aka.ms/aks/nodereservations) for + * details on computed defaults. Only applicable for Linux nodepools. + * + * @param kubeReserved the kubeReserved value to set. + * @return the KubeletConfig object itself. + */ + public KubeletConfig withKubeReserved(KubeReserved kubeReserved) { + this.kubeReserved = kubeReserved; + return this; + } + + /** + * Get the hardEvictionThreshold property: Hard eviction thresholds for kubelet. When a threshold is not set, the + * system default is used. See [AKS node resource reservations](https://aka.ms/aks/nodereservations) for details on + * computed defaults. Only applicable for Linux nodepools. + * + * @return the hardEvictionThreshold value. + */ + public HardEvictionThreshold hardEvictionThreshold() { + return this.hardEvictionThreshold; + } + + /** + * Set the hardEvictionThreshold property: Hard eviction thresholds for kubelet. When a threshold is not set, the + * system default is used. See [AKS node resource reservations](https://aka.ms/aks/nodereservations) for details on + * computed defaults. Only applicable for Linux nodepools. + * + * @param hardEvictionThreshold the hardEvictionThreshold value to set. + * @return the KubeletConfig object itself. + */ + public KubeletConfig withHardEvictionThreshold(HardEvictionThreshold hardEvictionThreshold) { + this.hardEvictionThreshold = hardEvictionThreshold; + return this; + } + + /** + * Get the softEvictionThreshold property: Soft eviction thresholds for kubelet. When crossed, pods are evicted + * after the paired softEvictionGracePeriod. System defaults apply when the cluster's `enableNodeHardening` property + * is true; otherwise no soft eviction is configured. For each signal (memoryAvailable, nodeFsAvailable, + * nodeFsInodesFree), the entries in softEvictionThreshold and softEvictionGracePeriod must be in the same state: + * both omitted (default), both non-empty (override), or both empty strings (opt that signal out). Only applicable + * for Linux nodepools. See + * https://kubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction/#soft-eviction-thresholds. + * + * @return the softEvictionThreshold value. + */ + public SoftEvictionThreshold softEvictionThreshold() { + return this.softEvictionThreshold; + } + + /** + * Set the softEvictionThreshold property: Soft eviction thresholds for kubelet. When crossed, pods are evicted + * after the paired softEvictionGracePeriod. System defaults apply when the cluster's `enableNodeHardening` property + * is true; otherwise no soft eviction is configured. For each signal (memoryAvailable, nodeFsAvailable, + * nodeFsInodesFree), the entries in softEvictionThreshold and softEvictionGracePeriod must be in the same state: + * both omitted (default), both non-empty (override), or both empty strings (opt that signal out). Only applicable + * for Linux nodepools. See + * https://kubernetes.io/docs/concepts/scheduling-eviction/node-pressure-eviction/#soft-eviction-thresholds. + * + * @param softEvictionThreshold the softEvictionThreshold value to set. + * @return the KubeletConfig object itself. + */ + public KubeletConfig withSoftEvictionThreshold(SoftEvictionThreshold softEvictionThreshold) { + this.softEvictionThreshold = softEvictionThreshold; + return this; + } + + /** + * Get the softEvictionGracePeriod property: Grace periods for soft eviction signals — how long a threshold must be + * held before pod eviction. Same defaulting and pairing rules as softEvictionThreshold. Values are Go-style + * duration strings (e.g. '1m30s'); supported units are 'ns', 'us', 'ms', 's', 'm', and 'h'. Only applicable for + * Linux nodepools. + * + * @return the softEvictionGracePeriod value. + */ + public SoftEvictionGracePeriod softEvictionGracePeriod() { + return this.softEvictionGracePeriod; + } + + /** + * Set the softEvictionGracePeriod property: Grace periods for soft eviction signals — how long a threshold must be + * held before pod eviction. Same defaulting and pairing rules as softEvictionThreshold. Values are Go-style + * duration strings (e.g. '1m30s'); supported units are 'ns', 'us', 'ms', 's', 'm', and 'h'. Only applicable for + * Linux nodepools. + * + * @param softEvictionGracePeriod the softEvictionGracePeriod value to set. + * @return the KubeletConfig object itself. + */ + public KubeletConfig withSoftEvictionGracePeriod(SoftEvictionGracePeriod softEvictionGracePeriod) { + this.softEvictionGracePeriod = softEvictionGracePeriod; + return this; + } + + /** + * Get the evictionMaxPodGracePeriodInSeconds property: Maximum grace period, in seconds, for pods to terminate + * during a soft eviction; caps the pod's terminationGracePeriodSeconds. Default is 60, applied when the cluster's + * `enableNodeHardening` property is true. Only applicable for Linux nodepools. + * + * @return the evictionMaxPodGracePeriodInSeconds value. + */ + public Integer evictionMaxPodGracePeriodInSeconds() { + return this.evictionMaxPodGracePeriodInSeconds; + } + + /** + * Set the evictionMaxPodGracePeriodInSeconds property: Maximum grace period, in seconds, for pods to terminate + * during a soft eviction; caps the pod's terminationGracePeriodSeconds. Default is 60, applied when the cluster's + * `enableNodeHardening` property is true. Only applicable for Linux nodepools. + * + * @param evictionMaxPodGracePeriodInSeconds the evictionMaxPodGracePeriodInSeconds value to set. + * @return the KubeletConfig object itself. + */ + public KubeletConfig withEvictionMaxPodGracePeriodInSeconds(Integer evictionMaxPodGracePeriodInSeconds) { + this.evictionMaxPodGracePeriodInSeconds = evictionMaxPodGracePeriodInSeconds; + return this; + } + /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (kubeReserved() != null) { + kubeReserved().validate(); + } + if (hardEvictionThreshold() != null) { + hardEvictionThreshold().validate(); + } + if (softEvictionThreshold() != null) { + softEvictionThreshold().validate(); + } + if (softEvictionGracePeriod() != null) { + softEvictionGracePeriod().validate(); + } } /** @@ -357,6 +565,13 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeNumberField("containerLogMaxSizeMB", this.containerLogMaxSizeMB); jsonWriter.writeNumberField("containerLogMaxFiles", this.containerLogMaxFiles); jsonWriter.writeNumberField("podMaxPids", this.podMaxPids); + jsonWriter.writeStringField("seccompDefault", + this.seccompDefault == null ? null : this.seccompDefault.toString()); + jsonWriter.writeJsonField("kubeReserved", this.kubeReserved); + jsonWriter.writeJsonField("hardEvictionThreshold", this.hardEvictionThreshold); + jsonWriter.writeJsonField("softEvictionThreshold", this.softEvictionThreshold); + jsonWriter.writeJsonField("softEvictionGracePeriod", this.softEvictionGracePeriod); + jsonWriter.writeNumberField("evictionMaxPodGracePeriodInSeconds", this.evictionMaxPodGracePeriodInSeconds); return jsonWriter.writeEndObject(); } @@ -398,6 +613,19 @@ public static KubeletConfig fromJson(JsonReader jsonReader) throws IOException { deserializedKubeletConfig.containerLogMaxFiles = reader.getNullable(JsonReader::getInt); } else if ("podMaxPids".equals(fieldName)) { deserializedKubeletConfig.podMaxPids = reader.getNullable(JsonReader::getInt); + } else if ("seccompDefault".equals(fieldName)) { + deserializedKubeletConfig.seccompDefault = SeccompDefault.fromString(reader.getString()); + } else if ("kubeReserved".equals(fieldName)) { + deserializedKubeletConfig.kubeReserved = KubeReserved.fromJson(reader); + } else if ("hardEvictionThreshold".equals(fieldName)) { + deserializedKubeletConfig.hardEvictionThreshold = HardEvictionThreshold.fromJson(reader); + } else if ("softEvictionThreshold".equals(fieldName)) { + deserializedKubeletConfig.softEvictionThreshold = SoftEvictionThreshold.fromJson(reader); + } else if ("softEvictionGracePeriod".equals(fieldName)) { + deserializedKubeletConfig.softEvictionGracePeriod = SoftEvictionGracePeriod.fromJson(reader); + } else if ("evictionMaxPodGracePeriodInSeconds".equals(fieldName)) { + deserializedKubeletConfig.evictionMaxPodGracePeriodInSeconds + = reader.getNullable(JsonReader::getInt); } else { reader.skipChildren(); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/KubernetesImpactedResource.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/KubernetesImpactedResource.java new file mode 100644 index 0000000000000..1028df50a34c7 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/KubernetesImpactedResource.java @@ -0,0 +1,117 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * A Kubernetes resource impacted by a detected upgrade issue, identified by its namespace and name. + */ +@Immutable +public final class KubernetesImpactedResource extends UpgradeInsightImpactedResource { + /* + * The category of the impacted resource. + */ + private ImpactedResourceKind kind = ImpactedResourceKind.KUBERNETES; + + /* + * The Kubernetes namespace of the impacted resource, if applicable. + */ + private String namespace; + + /* + * The name of the impacted Kubernetes resource. + */ + private String name; + + /** + * Creates an instance of KubernetesImpactedResource class. + */ + private KubernetesImpactedResource() { + } + + /** + * Get the kind property: The category of the impacted resource. + * + * @return the kind value. + */ + @Override + public ImpactedResourceKind kind() { + return this.kind; + } + + /** + * Get the namespace property: The Kubernetes namespace of the impacted resource, if applicable. + * + * @return the namespace value. + */ + public String namespace() { + return this.namespace; + } + + /** + * Get the name property: The name of the impacted Kubernetes resource. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("kind", this.kind == null ? null : this.kind.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of KubernetesImpactedResource from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of KubernetesImpactedResource 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 KubernetesImpactedResource. + */ + public static KubernetesImpactedResource fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + KubernetesImpactedResource deserializedKubernetesImpactedResource = new KubernetesImpactedResource(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("resourceType".equals(fieldName)) { + deserializedKubernetesImpactedResource.withResourceType(reader.getString()); + } else if ("kind".equals(fieldName)) { + deserializedKubernetesImpactedResource.kind = ImpactedResourceKind.fromString(reader.getString()); + } else if ("namespace".equals(fieldName)) { + deserializedKubernetesImpactedResource.namespace = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedKubernetesImpactedResource.name = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedKubernetesImpactedResource; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/KubernetesVersionSupportStatus.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/KubernetesVersionSupportStatus.java new file mode 100644 index 0000000000000..924f0e98aa585 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/KubernetesVersionSupportStatus.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The support status of the Kubernetes version the cluster is currently running. This is + * intentionally binary — there is no discrete `ApproachingEOL` value. Proximity to end of + * support is derived by clients from `kubernetesVersionEndOfSupportDate` (comparing it + * against the current time), so no server-computed "approaching EOS" flag or message is + * returned that could go stale in a cached record. + */ +public final class KubernetesVersionSupportStatus extends ExpandableStringEnum { + /** + * The scope is running a Kubernetes version that is still within its support window. + */ + public static final KubernetesVersionSupportStatus IN_SUPPORT = fromString("InSupport"); + + /** + * The scope is running a Kubernetes version that is past its end of support. + */ + public static final KubernetesVersionSupportStatus OUT_OF_SUPPORT = fromString("OutOfSupport"); + + /** + * Creates a new instance of KubernetesVersionSupportStatus value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public KubernetesVersionSupportStatus() { + } + + /** + * Creates or finds a KubernetesVersionSupportStatus from its string representation. + * + * @param name a name to look for. + * @return the corresponding KubernetesVersionSupportStatus. + */ + public static KubernetesVersionSupportStatus fromString(String name) { + return fromString(name, KubernetesVersionSupportStatus.class); + } + + /** + * Gets known KubernetesVersionSupportStatus values. + * + * @return known KubernetesVersionSupportStatus values. + */ + public static Collection values() { + return values(KubernetesVersionSupportStatus.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/LabelSelector.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/LabelSelector.java new file mode 100644 index 0000000000000..70e48728567f8 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/LabelSelector.java @@ -0,0 +1,138 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * A label selector is a label query over a set of resources. The result of matchLabels and matchExpressions are ANDed. + * An empty label selector matches all objects. A null label selector matches no objects. + */ +@Fluent +public final class LabelSelector implements JsonSerializable { + /* + * matchLabels is an array of {key=value} pairs. A single {key=value} in the matchLabels map is equivalent to an + * element of matchExpressions, whose key field is `key`, the operator is `In`, and the values array contains only + * `value`. The requirements are ANDed. + */ + private List matchLabels; + + /* + * matchExpressions is a list of label selector requirements. The requirements are ANDed. + */ + private List matchExpressions; + + /** + * Creates an instance of LabelSelector class. + */ + public LabelSelector() { + } + + /** + * Get the matchLabels property: matchLabels is an array of {key=value} pairs. A single {key=value} in the + * matchLabels map is equivalent to an element of matchExpressions, whose key field is `key`, the operator is `In`, + * and the values array contains only `value`. The requirements are ANDed. + * + * @return the matchLabels value. + */ + public List matchLabels() { + return this.matchLabels; + } + + /** + * Set the matchLabels property: matchLabels is an array of {key=value} pairs. A single {key=value} in the + * matchLabels map is equivalent to an element of matchExpressions, whose key field is `key`, the operator is `In`, + * and the values array contains only `value`. The requirements are ANDed. + * + * @param matchLabels the matchLabels value to set. + * @return the LabelSelector object itself. + */ + public LabelSelector withMatchLabels(List matchLabels) { + this.matchLabels = matchLabels; + return this; + } + + /** + * Get the matchExpressions property: matchExpressions is a list of label selector requirements. The requirements + * are ANDed. + * + * @return the matchExpressions value. + */ + public List matchExpressions() { + return this.matchExpressions; + } + + /** + * Set the matchExpressions property: matchExpressions is a list of label selector requirements. The requirements + * are ANDed. + * + * @param matchExpressions the matchExpressions value to set. + * @return the LabelSelector object itself. + */ + public LabelSelector withMatchExpressions(List matchExpressions) { + this.matchExpressions = matchExpressions; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (matchExpressions() != null) { + matchExpressions().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("matchLabels", this.matchLabels, (writer, element) -> writer.writeString(element)); + jsonWriter.writeArrayField("matchExpressions", this.matchExpressions, + (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of LabelSelector from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of LabelSelector 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 LabelSelector. + */ + public static LabelSelector fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + LabelSelector deserializedLabelSelector = new LabelSelector(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("matchLabels".equals(fieldName)) { + List matchLabels = reader.readArray(reader1 -> reader1.getString()); + deserializedLabelSelector.matchLabels = matchLabels; + } else if ("matchExpressions".equals(fieldName)) { + List matchExpressions + = reader.readArray(reader1 -> LabelSelectorRequirement.fromJson(reader1)); + deserializedLabelSelector.matchExpressions = matchExpressions; + } else { + reader.skipChildren(); + } + } + + return deserializedLabelSelector; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/LabelSelectorRequirement.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/LabelSelectorRequirement.java new file mode 100644 index 0000000000000..15d4188070c06 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/LabelSelectorRequirement.java @@ -0,0 +1,154 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * A label selector requirement is a selector that contains values, a key, and an operator that relates the key and + * values. + */ +@Fluent +public final class LabelSelectorRequirement implements JsonSerializable { + /* + * key is the label key that the selector applies to. + */ + private String key; + + /* + * operator represents a key's relationship to a set of values. Valid operators are In and NotIn + */ + private Operator operator; + + /* + * values is an array of string values, the values array must be non-empty. + */ + private List values; + + /** + * Creates an instance of LabelSelectorRequirement class. + */ + public LabelSelectorRequirement() { + } + + /** + * Get the key property: key is the label key that the selector applies to. + * + * @return the key value. + */ + public String key() { + return this.key; + } + + /** + * Set the key property: key is the label key that the selector applies to. + * + * @param key the key value to set. + * @return the LabelSelectorRequirement object itself. + */ + public LabelSelectorRequirement withKey(String key) { + this.key = key; + return this; + } + + /** + * Get the operator property: operator represents a key's relationship to a set of values. Valid operators are In + * and NotIn. + * + * @return the operator value. + */ + public Operator operator() { + return this.operator; + } + + /** + * Set the operator property: operator represents a key's relationship to a set of values. Valid operators are In + * and NotIn. + * + * @param operator the operator value to set. + * @return the LabelSelectorRequirement object itself. + */ + public LabelSelectorRequirement withOperator(Operator operator) { + this.operator = operator; + return this; + } + + /** + * Get the values property: values is an array of string values, the values array must be non-empty. + * + * @return the values value. + */ + public List values() { + return this.values; + } + + /** + * Set the values property: values is an array of string values, the values array must be non-empty. + * + * @param values the values value to set. + * @return the LabelSelectorRequirement object itself. + */ + public LabelSelectorRequirement withValues(List values) { + this.values = values; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("key", this.key); + jsonWriter.writeStringField("operator", this.operator == null ? null : this.operator.toString()); + jsonWriter.writeArrayField("values", this.values, (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of LabelSelectorRequirement from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of LabelSelectorRequirement 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 LabelSelectorRequirement. + */ + public static LabelSelectorRequirement fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + LabelSelectorRequirement deserializedLabelSelectorRequirement = new LabelSelectorRequirement(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("key".equals(fieldName)) { + deserializedLabelSelectorRequirement.key = reader.getString(); + } else if ("operator".equals(fieldName)) { + deserializedLabelSelectorRequirement.operator = Operator.fromString(reader.getString()); + } else if ("values".equals(fieldName)) { + List values = reader.readArray(reader1 -> reader1.getString()); + deserializedLabelSelectorRequirement.values = values; + } else { + reader.skipChildren(); + } + } + + return deserializedLabelSelectorRequirement; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ListBootstrapDataRequest.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ListBootstrapDataRequest.java new file mode 100644 index 0000000000000..34daead813932 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ListBootstrapDataRequest.java @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Empty request body for listing FlexNode bootstrap data. + */ +@Immutable +public final class ListBootstrapDataRequest implements JsonSerializable { + /** + * Creates an instance of ListBootstrapDataRequest class. + */ + public ListBootstrapDataRequest() { + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ListBootstrapDataRequest from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ListBootstrapDataRequest 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 ListBootstrapDataRequest. + */ + public static ListBootstrapDataRequest fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ListBootstrapDataRequest deserializedListBootstrapDataRequest = new ListBootstrapDataRequest(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + reader.skipChildren(); + } + + return deserializedListBootstrapDataRequest; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/LoadBalancerSku.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/LoadBalancerSku.java index 1edbb9a693cc5..a9bc95e869762 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/LoadBalancerSku.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/LoadBalancerSku.java @@ -13,6 +13,13 @@ * balancer SKUs. */ public final class LoadBalancerSku extends ExpandableStringEnum { + /** + * Use a service Load Balancer, with native pod-level load balancing. This SKU is specifically built to scale for + * container-based workloads, with a single instance utilized for each application. For more information, see + * https://aka.ms/aks/container-native-slb. + */ + public static final LoadBalancerSku SERVICE = fromString("service"); + /** * Use a a standard Load Balancer. This is the recommended Load Balancer SKU. For more information about on working * with the load balancer in the managed cluster, see the [standard Load diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineBillingProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineBillingProfile.java new file mode 100644 index 0000000000000..8671f8fd079bd --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineBillingProfile.java @@ -0,0 +1,101 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * The properties having to do with machine billing. + */ +@Fluent +public final class MachineBillingProfile implements JsonSerializable { + /* + * The max price (in US Dollars) you are willing to pay for spot instances. Possible values are any decimal value + * greater than zero or -1 which indicates default price to be up-to on-demand. For more details on spot pricing, + * see [spot VMs pricing](https://docs.microsoft.com/azure/virtual-machines/spot-vms#pricing) + */ + private Float spotMaxPrice; + + /** + * Creates an instance of MachineBillingProfile class. + */ + public MachineBillingProfile() { + } + + /** + * Get the spotMaxPrice property: The max price (in US Dollars) you are willing to pay for spot instances. Possible + * values are any decimal value greater than zero or -1 which indicates default price to be up-to on-demand. For + * more details on spot pricing, see [spot VMs + * pricing](https://docs.microsoft.com/azure/virtual-machines/spot-vms#pricing). + * + * @return the spotMaxPrice value. + */ + public Float spotMaxPrice() { + return this.spotMaxPrice; + } + + /** + * Set the spotMaxPrice property: The max price (in US Dollars) you are willing to pay for spot instances. Possible + * values are any decimal value greater than zero or -1 which indicates default price to be up-to on-demand. For + * more details on spot pricing, see [spot VMs + * pricing](https://docs.microsoft.com/azure/virtual-machines/spot-vms#pricing). + * + * @param spotMaxPrice the spotMaxPrice value to set. + * @return the MachineBillingProfile object itself. + */ + public MachineBillingProfile withSpotMaxPrice(Float spotMaxPrice) { + this.spotMaxPrice = spotMaxPrice; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeNumberField("spotMaxPrice", this.spotMaxPrice); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MachineBillingProfile from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MachineBillingProfile 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 MachineBillingProfile. + */ + public static MachineBillingProfile fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MachineBillingProfile deserializedMachineBillingProfile = new MachineBillingProfile(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("spotMaxPrice".equals(fieldName)) { + deserializedMachineBillingProfile.spotMaxPrice = reader.getNullable(JsonReader::getFloat); + } else { + reader.skipChildren(); + } + } + + return deserializedMachineBillingProfile; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineHardwareProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineHardwareProfile.java new file mode 100644 index 0000000000000..fc95dab7515f4 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineHardwareProfile.java @@ -0,0 +1,190 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * The hardware and GPU settings of the machine. + */ +@Fluent +public final class MachineHardwareProfile implements JsonSerializable { + /* + * The size of the VM. VM size availability varies by region. If a node contains insufficient compute resources + * (memory, cpu, etc) pods might fail to run correctly. For more details on restricted VM sizes, see: + * https://docs.microsoft.com/azure/aks/quotas-skus-regions + */ + private String vmSize; + + /* + * GPUInstanceProfile to be used to specify GPU MIG instance profile for supported GPU VM SKU. + */ + private GpuInstanceProfile gpuInstanceProfile; + + /* + * The GPU settings of the machine. + */ + private GpuProfile gpuProfile; + + /* + * Whether to enable UltraSSD + */ + private Boolean ultraSsdEnabled; + + /** + * Creates an instance of MachineHardwareProfile class. + */ + public MachineHardwareProfile() { + } + + /** + * Get the vmSize property: The size of the VM. VM size availability varies by region. If a node contains + * insufficient compute resources (memory, cpu, etc) pods might fail to run correctly. For more details on + * restricted VM sizes, see: https://docs.microsoft.com/azure/aks/quotas-skus-regions. + * + * @return the vmSize value. + */ + public String vmSize() { + return this.vmSize; + } + + /** + * Set the vmSize property: The size of the VM. VM size availability varies by region. If a node contains + * insufficient compute resources (memory, cpu, etc) pods might fail to run correctly. For more details on + * restricted VM sizes, see: https://docs.microsoft.com/azure/aks/quotas-skus-regions. + * + * @param vmSize the vmSize value to set. + * @return the MachineHardwareProfile object itself. + */ + public MachineHardwareProfile withVmSize(String vmSize) { + this.vmSize = vmSize; + return this; + } + + /** + * Get the gpuInstanceProfile property: GPUInstanceProfile to be used to specify GPU MIG instance profile for + * supported GPU VM SKU. + * + * @return the gpuInstanceProfile value. + */ + public GpuInstanceProfile gpuInstanceProfile() { + return this.gpuInstanceProfile; + } + + /** + * Set the gpuInstanceProfile property: GPUInstanceProfile to be used to specify GPU MIG instance profile for + * supported GPU VM SKU. + * + * @param gpuInstanceProfile the gpuInstanceProfile value to set. + * @return the MachineHardwareProfile object itself. + */ + public MachineHardwareProfile withGpuInstanceProfile(GpuInstanceProfile gpuInstanceProfile) { + this.gpuInstanceProfile = gpuInstanceProfile; + return this; + } + + /** + * Get the gpuProfile property: The GPU settings of the machine. + * + * @return the gpuProfile value. + */ + public GpuProfile gpuProfile() { + return this.gpuProfile; + } + + /** + * Set the gpuProfile property: The GPU settings of the machine. + * + * @param gpuProfile the gpuProfile value to set. + * @return the MachineHardwareProfile object itself. + */ + public MachineHardwareProfile withGpuProfile(GpuProfile gpuProfile) { + this.gpuProfile = gpuProfile; + return this; + } + + /** + * Get the ultraSsdEnabled property: Whether to enable UltraSSD. + * + * @return the ultraSsdEnabled value. + */ + public Boolean ultraSsdEnabled() { + return this.ultraSsdEnabled; + } + + /** + * Set the ultraSsdEnabled property: Whether to enable UltraSSD. + * + * @param ultraSsdEnabled the ultraSsdEnabled value to set. + * @return the MachineHardwareProfile object itself. + */ + public MachineHardwareProfile withUltraSsdEnabled(Boolean ultraSsdEnabled) { + this.ultraSsdEnabled = ultraSsdEnabled; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (gpuProfile() != null) { + gpuProfile().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("vmSize", this.vmSize); + jsonWriter.writeStringField("gpuInstanceProfile", + this.gpuInstanceProfile == null ? null : this.gpuInstanceProfile.toString()); + jsonWriter.writeJsonField("gpuProfile", this.gpuProfile); + jsonWriter.writeBooleanField("ultraSsdEnabled", this.ultraSsdEnabled); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MachineHardwareProfile from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MachineHardwareProfile 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 MachineHardwareProfile. + */ + public static MachineHardwareProfile fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MachineHardwareProfile deserializedMachineHardwareProfile = new MachineHardwareProfile(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("vmSize".equals(fieldName)) { + deserializedMachineHardwareProfile.vmSize = reader.getString(); + } else if ("gpuInstanceProfile".equals(fieldName)) { + deserializedMachineHardwareProfile.gpuInstanceProfile + = GpuInstanceProfile.fromString(reader.getString()); + } else if ("gpuProfile".equals(fieldName)) { + deserializedMachineHardwareProfile.gpuProfile = GpuProfile.fromJson(reader); + } else if ("ultraSsdEnabled".equals(fieldName)) { + deserializedMachineHardwareProfile.ultraSsdEnabled = reader.getNullable(JsonReader::getBoolean); + } else { + reader.skipChildren(); + } + } + + return deserializedMachineHardwareProfile; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineKubernetesProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineKubernetesProfile.java new file mode 100644 index 0000000000000..c846b9de23e4c --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineKubernetesProfile.java @@ -0,0 +1,390 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; +import java.util.Map; + +/** + * The Kubernetes configurations used by the machine. + */ +@Fluent +public final class MachineKubernetesProfile implements JsonSerializable { + /* + * The node labels on the machine. + */ + private Map nodeLabels; + + /* + * The version of Kubernetes specified by the user. Both patch version and are + * supported. When is specified, the latest supported patch version is chosen automatically. + */ + private String orchestratorVersion; + + /* + * The version of Kubernetes running on the machine. If orchestratorVersion was a fully specified version + * , this field will be exactly equal to it. If orchestratorVersion was , this field + * will contain the full version being used. + */ + private String currentOrchestratorVersion; + + /* + * Determines the placement of emptyDir volumes, container runtime data root, and Kubelet ephemeral storage. + */ + private KubeletDiskType kubeletDiskType; + + /* + * The Kubelet configuration on the machine. + */ + private KubeletConfig kubeletConfig; + + /* + * Taints added on the node during creation that will not be reconciled by AKS. These taints will not be reconciled + * by AKS and can be removed with a kubectl call. These taints allow for required configuration to run before the + * node is ready to accept workloads, for example 'key1=value1:NoSchedule' that then can be removed with `kubectl + * taint nodes node1 key1=value1:NoSchedule-` + */ + private List nodeInitializationTaints; + + /* + * The taints added to new node during machine create. For example, key=value:NoSchedule. + */ + private List nodeTaints; + + /* + * The maximum number of pods that can run on a node. + */ + private Integer maxPods; + + /* + * The node name in the Kubernetes cluster. + */ + private String nodeName; + + /* + * Determines the type of workload a node can run. + */ + private WorkloadRuntime workloadRuntime; + + /* + * Configuration for using artifact streaming on AKS. + */ + private AgentPoolArtifactStreamingProfile artifactStreamingProfile; + + /** + * Creates an instance of MachineKubernetesProfile class. + */ + public MachineKubernetesProfile() { + } + + /** + * Get the nodeLabels property: The node labels on the machine. + * + * @return the nodeLabels value. + */ + public Map nodeLabels() { + return this.nodeLabels; + } + + /** + * Set the nodeLabels property: The node labels on the machine. + * + * @param nodeLabels the nodeLabels value to set. + * @return the MachineKubernetesProfile object itself. + */ + public MachineKubernetesProfile withNodeLabels(Map nodeLabels) { + this.nodeLabels = nodeLabels; + return this; + } + + /** + * Get the orchestratorVersion property: The version of Kubernetes specified by the user. Both patch version + * <major.minor.patch> and <major.minor> are supported. When <major.minor> is specified, the + * latest supported patch version is chosen automatically. + * + * @return the orchestratorVersion value. + */ + public String orchestratorVersion() { + return this.orchestratorVersion; + } + + /** + * Set the orchestratorVersion property: The version of Kubernetes specified by the user. Both patch version + * <major.minor.patch> and <major.minor> are supported. When <major.minor> is specified, the + * latest supported patch version is chosen automatically. + * + * @param orchestratorVersion the orchestratorVersion value to set. + * @return the MachineKubernetesProfile object itself. + */ + public MachineKubernetesProfile withOrchestratorVersion(String orchestratorVersion) { + this.orchestratorVersion = orchestratorVersion; + return this; + } + + /** + * Get the currentOrchestratorVersion property: The version of Kubernetes running on the machine. If + * orchestratorVersion was a fully specified version <major.minor.patch>, this field will be exactly equal to + * it. If orchestratorVersion was <major.minor>, this field will contain the full <major.minor.patch> + * version being used. + * + * @return the currentOrchestratorVersion value. + */ + public String currentOrchestratorVersion() { + return this.currentOrchestratorVersion; + } + + /** + * Get the kubeletDiskType property: Determines the placement of emptyDir volumes, container runtime data root, and + * Kubelet ephemeral storage. + * + * @return the kubeletDiskType value. + */ + public KubeletDiskType kubeletDiskType() { + return this.kubeletDiskType; + } + + /** + * Set the kubeletDiskType property: Determines the placement of emptyDir volumes, container runtime data root, and + * Kubelet ephemeral storage. + * + * @param kubeletDiskType the kubeletDiskType value to set. + * @return the MachineKubernetesProfile object itself. + */ + public MachineKubernetesProfile withKubeletDiskType(KubeletDiskType kubeletDiskType) { + this.kubeletDiskType = kubeletDiskType; + return this; + } + + /** + * Get the kubeletConfig property: The Kubelet configuration on the machine. + * + * @return the kubeletConfig value. + */ + public KubeletConfig kubeletConfig() { + return this.kubeletConfig; + } + + /** + * Set the kubeletConfig property: The Kubelet configuration on the machine. + * + * @param kubeletConfig the kubeletConfig value to set. + * @return the MachineKubernetesProfile object itself. + */ + public MachineKubernetesProfile withKubeletConfig(KubeletConfig kubeletConfig) { + this.kubeletConfig = kubeletConfig; + return this; + } + + /** + * Get the nodeInitializationTaints property: Taints added on the node during creation that will not be reconciled + * by AKS. These taints will not be reconciled by AKS and can be removed with a kubectl call. These taints allow for + * required configuration to run before the node is ready to accept workloads, for example 'key1=value1:NoSchedule' + * that then can be removed with `kubectl taint nodes node1 key1=value1:NoSchedule-`. + * + * @return the nodeInitializationTaints value. + */ + public List nodeInitializationTaints() { + return this.nodeInitializationTaints; + } + + /** + * Set the nodeInitializationTaints property: Taints added on the node during creation that will not be reconciled + * by AKS. These taints will not be reconciled by AKS and can be removed with a kubectl call. These taints allow for + * required configuration to run before the node is ready to accept workloads, for example 'key1=value1:NoSchedule' + * that then can be removed with `kubectl taint nodes node1 key1=value1:NoSchedule-`. + * + * @param nodeInitializationTaints the nodeInitializationTaints value to set. + * @return the MachineKubernetesProfile object itself. + */ + public MachineKubernetesProfile withNodeInitializationTaints(List nodeInitializationTaints) { + this.nodeInitializationTaints = nodeInitializationTaints; + return this; + } + + /** + * Get the nodeTaints property: The taints added to new node during machine create. For example, + * key=value:NoSchedule. + * + * @return the nodeTaints value. + */ + public List nodeTaints() { + return this.nodeTaints; + } + + /** + * Set the nodeTaints property: The taints added to new node during machine create. For example, + * key=value:NoSchedule. + * + * @param nodeTaints the nodeTaints value to set. + * @return the MachineKubernetesProfile object itself. + */ + public MachineKubernetesProfile withNodeTaints(List nodeTaints) { + this.nodeTaints = nodeTaints; + return this; + } + + /** + * Get the maxPods property: The maximum number of pods that can run on a node. + * + * @return the maxPods value. + */ + public Integer maxPods() { + return this.maxPods; + } + + /** + * Set the maxPods property: The maximum number of pods that can run on a node. + * + * @param maxPods the maxPods value to set. + * @return the MachineKubernetesProfile object itself. + */ + public MachineKubernetesProfile withMaxPods(Integer maxPods) { + this.maxPods = maxPods; + return this; + } + + /** + * Get the nodeName property: The node name in the Kubernetes cluster. + * + * @return the nodeName value. + */ + public String nodeName() { + return this.nodeName; + } + + /** + * Get the workloadRuntime property: Determines the type of workload a node can run. + * + * @return the workloadRuntime value. + */ + public WorkloadRuntime workloadRuntime() { + return this.workloadRuntime; + } + + /** + * Set the workloadRuntime property: Determines the type of workload a node can run. + * + * @param workloadRuntime the workloadRuntime value to set. + * @return the MachineKubernetesProfile object itself. + */ + public MachineKubernetesProfile withWorkloadRuntime(WorkloadRuntime workloadRuntime) { + this.workloadRuntime = workloadRuntime; + return this; + } + + /** + * Get the artifactStreamingProfile property: Configuration for using artifact streaming on AKS. + * + * @return the artifactStreamingProfile value. + */ + public AgentPoolArtifactStreamingProfile artifactStreamingProfile() { + return this.artifactStreamingProfile; + } + + /** + * Set the artifactStreamingProfile property: Configuration for using artifact streaming on AKS. + * + * @param artifactStreamingProfile the artifactStreamingProfile value to set. + * @return the MachineKubernetesProfile object itself. + */ + public MachineKubernetesProfile + withArtifactStreamingProfile(AgentPoolArtifactStreamingProfile artifactStreamingProfile) { + this.artifactStreamingProfile = artifactStreamingProfile; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (kubeletConfig() != null) { + kubeletConfig().validate(); + } + if (artifactStreamingProfile() != null) { + artifactStreamingProfile().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeMapField("nodeLabels", this.nodeLabels, (writer, element) -> writer.writeString(element)); + jsonWriter.writeStringField("orchestratorVersion", this.orchestratorVersion); + jsonWriter.writeStringField("kubeletDiskType", + this.kubeletDiskType == null ? null : this.kubeletDiskType.toString()); + jsonWriter.writeJsonField("kubeletConfig", this.kubeletConfig); + jsonWriter.writeArrayField("nodeInitializationTaints", this.nodeInitializationTaints, + (writer, element) -> writer.writeString(element)); + jsonWriter.writeArrayField("nodeTaints", this.nodeTaints, (writer, element) -> writer.writeString(element)); + jsonWriter.writeNumberField("maxPods", this.maxPods); + jsonWriter.writeStringField("workloadRuntime", + this.workloadRuntime == null ? null : this.workloadRuntime.toString()); + jsonWriter.writeJsonField("artifactStreamingProfile", this.artifactStreamingProfile); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MachineKubernetesProfile from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MachineKubernetesProfile 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 MachineKubernetesProfile. + */ + public static MachineKubernetesProfile fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MachineKubernetesProfile deserializedMachineKubernetesProfile = new MachineKubernetesProfile(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nodeLabels".equals(fieldName)) { + Map nodeLabels = reader.readMap(reader1 -> reader1.getString()); + deserializedMachineKubernetesProfile.nodeLabels = nodeLabels; + } else if ("orchestratorVersion".equals(fieldName)) { + deserializedMachineKubernetesProfile.orchestratorVersion = reader.getString(); + } else if ("currentOrchestratorVersion".equals(fieldName)) { + deserializedMachineKubernetesProfile.currentOrchestratorVersion = reader.getString(); + } else if ("kubeletDiskType".equals(fieldName)) { + deserializedMachineKubernetesProfile.kubeletDiskType + = KubeletDiskType.fromString(reader.getString()); + } else if ("kubeletConfig".equals(fieldName)) { + deserializedMachineKubernetesProfile.kubeletConfig = KubeletConfig.fromJson(reader); + } else if ("nodeInitializationTaints".equals(fieldName)) { + List nodeInitializationTaints = reader.readArray(reader1 -> reader1.getString()); + deserializedMachineKubernetesProfile.nodeInitializationTaints = nodeInitializationTaints; + } else if ("nodeTaints".equals(fieldName)) { + List nodeTaints = reader.readArray(reader1 -> reader1.getString()); + deserializedMachineKubernetesProfile.nodeTaints = nodeTaints; + } else if ("maxPods".equals(fieldName)) { + deserializedMachineKubernetesProfile.maxPods = reader.getNullable(JsonReader::getInt); + } else if ("nodeName".equals(fieldName)) { + deserializedMachineKubernetesProfile.nodeName = reader.getString(); + } else if ("workloadRuntime".equals(fieldName)) { + deserializedMachineKubernetesProfile.workloadRuntime + = WorkloadRuntime.fromString(reader.getString()); + } else if ("artifactStreamingProfile".equals(fieldName)) { + deserializedMachineKubernetesProfile.artifactStreamingProfile + = AgentPoolArtifactStreamingProfile.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedMachineKubernetesProfile; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineNetworkProperties.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineNetworkProperties.java index a8ee1822c56de..0db2e2cd1a2de 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineNetworkProperties.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineNetworkProperties.java @@ -4,7 +4,7 @@ package com.azure.resourcemanager.containerservice.models; -import com.azure.core.annotation.Immutable; +import com.azure.core.annotation.Fluent; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -15,17 +15,59 @@ /** * network properties of the machine. */ -@Immutable +@Fluent public final class MachineNetworkProperties implements JsonSerializable { /* * IPv4, IPv6 addresses of the machine */ private List ipAddresses; + /* + * The ID of the subnet which node and optionally pods will join on startup. If this is not specified, a VNET and + * subnet will be generated and used. If no podSubnetID is specified, this applies to nodes and pods, otherwise it + * applies to just nodes. This is of the form: + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{ + * virtualNetworkName}/subnets/{subnetName} + */ + private String vnetSubnetId; + + /* + * The ID of the subnet which pods will join when launched. If omitted, pod IPs are statically assigned on the node + * subnet (see vnetSubnetID for more details). This is of the form: + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{ + * virtualNetworkName}/subnets/{subnetName} + */ + private String podSubnetId; + + /* + * Pod IP Allocation Mode. The IP allocation mode for pods on the machine. Must be used with podSubnetID. The + * default is 'DynamicIndividual'. + */ + private PodIpAllocationMode podIPAllocationMode; + + /* + * Whether the machine is allocated its own public IP. Some scenarios may require the machine to receive their own + * dedicated public IP addresses. A common scenario is for gaming workloads, where a console needs to make a direct + * connection to a cloud virtual machine to minimize hops. The default is false. + */ + private Boolean enableNodePublicIp; + + /* + * The public IP prefix ID which VM node should use IPs from. This is of the form: + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{ + * publicIPPrefixName} + */ + private String nodePublicIpPrefixId; + + /* + * IPTags of instance-level public IPs. + */ + private List nodePublicIpTags; + /** * Creates an instance of MachineNetworkProperties class. */ - private MachineNetworkProperties() { + public MachineNetworkProperties() { } /** @@ -37,6 +79,148 @@ public List ipAddresses() { return this.ipAddresses; } + /** + * Get the vnetSubnetId property: The ID of the subnet which node and optionally pods will join on startup. If this + * is not specified, a VNET and subnet will be generated and used. If no podSubnetID is specified, this applies to + * nodes and pods, otherwise it applies to just nodes. This is of the form: + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. + * + * @return the vnetSubnetId value. + */ + public String vnetSubnetId() { + return this.vnetSubnetId; + } + + /** + * Set the vnetSubnetId property: The ID of the subnet which node and optionally pods will join on startup. If this + * is not specified, a VNET and subnet will be generated and used. If no podSubnetID is specified, this applies to + * nodes and pods, otherwise it applies to just nodes. This is of the form: + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. + * + * @param vnetSubnetId the vnetSubnetId value to set. + * @return the MachineNetworkProperties object itself. + */ + public MachineNetworkProperties withVnetSubnetId(String vnetSubnetId) { + this.vnetSubnetId = vnetSubnetId; + return this; + } + + /** + * Get the podSubnetId property: The ID of the subnet which pods will join when launched. If omitted, pod IPs are + * statically assigned on the node subnet (see vnetSubnetID for more details). This is of the form: + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. + * + * @return the podSubnetId value. + */ + public String podSubnetId() { + return this.podSubnetId; + } + + /** + * Set the podSubnetId property: The ID of the subnet which pods will join when launched. If omitted, pod IPs are + * statically assigned on the node subnet (see vnetSubnetID for more details). This is of the form: + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/virtualNetworks/{virtualNetworkName}/subnets/{subnetName}. + * + * @param podSubnetId the podSubnetId value to set. + * @return the MachineNetworkProperties object itself. + */ + public MachineNetworkProperties withPodSubnetId(String podSubnetId) { + this.podSubnetId = podSubnetId; + return this; + } + + /** + * Get the podIPAllocationMode property: Pod IP Allocation Mode. The IP allocation mode for pods on the machine. + * Must be used with podSubnetID. The default is 'DynamicIndividual'. + * + * @return the podIPAllocationMode value. + */ + public PodIpAllocationMode podIPAllocationMode() { + return this.podIPAllocationMode; + } + + /** + * Set the podIPAllocationMode property: Pod IP Allocation Mode. The IP allocation mode for pods on the machine. + * Must be used with podSubnetID. The default is 'DynamicIndividual'. + * + * @param podIPAllocationMode the podIPAllocationMode value to set. + * @return the MachineNetworkProperties object itself. + */ + public MachineNetworkProperties withPodIPAllocationMode(PodIpAllocationMode podIPAllocationMode) { + this.podIPAllocationMode = podIPAllocationMode; + return this; + } + + /** + * Get the enableNodePublicIp property: Whether the machine is allocated its own public IP. Some scenarios may + * require the machine to receive their own dedicated public IP addresses. A common scenario is for gaming + * workloads, where a console needs to make a direct connection to a cloud virtual machine to minimize hops. The + * default is false. + * + * @return the enableNodePublicIp value. + */ + public Boolean enableNodePublicIp() { + return this.enableNodePublicIp; + } + + /** + * Set the enableNodePublicIp property: Whether the machine is allocated its own public IP. Some scenarios may + * require the machine to receive their own dedicated public IP addresses. A common scenario is for gaming + * workloads, where a console needs to make a direct connection to a cloud virtual machine to minimize hops. The + * default is false. + * + * @param enableNodePublicIp the enableNodePublicIp value to set. + * @return the MachineNetworkProperties object itself. + */ + public MachineNetworkProperties withEnableNodePublicIp(Boolean enableNodePublicIp) { + this.enableNodePublicIp = enableNodePublicIp; + return this; + } + + /** + * Get the nodePublicIpPrefixId property: The public IP prefix ID which VM node should use IPs from. This is of the + * form: + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}. + * + * @return the nodePublicIpPrefixId value. + */ + public String nodePublicIpPrefixId() { + return this.nodePublicIpPrefixId; + } + + /** + * Set the nodePublicIpPrefixId property: The public IP prefix ID which VM node should use IPs from. This is of the + * form: + * /subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.Network/publicIPPrefixes/{publicIPPrefixName}. + * + * @param nodePublicIpPrefixId the nodePublicIpPrefixId value to set. + * @return the MachineNetworkProperties object itself. + */ + public MachineNetworkProperties withNodePublicIpPrefixId(String nodePublicIpPrefixId) { + this.nodePublicIpPrefixId = nodePublicIpPrefixId; + return this; + } + + /** + * Get the nodePublicIpTags property: IPTags of instance-level public IPs. + * + * @return the nodePublicIpTags value. + */ + public List nodePublicIpTags() { + return this.nodePublicIpTags; + } + + /** + * Set the nodePublicIpTags property: IPTags of instance-level public IPs. + * + * @param nodePublicIpTags the nodePublicIpTags value to set. + * @return the MachineNetworkProperties object itself. + */ + public MachineNetworkProperties withNodePublicIpTags(List nodePublicIpTags) { + this.nodePublicIpTags = nodePublicIpTags; + return this; + } + /** * Validates the instance. * @@ -46,6 +230,9 @@ public void validate() { if (ipAddresses() != null) { ipAddresses().forEach(e -> e.validate()); } + if (nodePublicIpTags() != null) { + nodePublicIpTags().forEach(e -> e.validate()); + } } /** @@ -54,6 +241,14 @@ public void validate() { @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); + jsonWriter.writeStringField("vnetSubnetID", this.vnetSubnetId); + jsonWriter.writeStringField("podSubnetID", this.podSubnetId); + jsonWriter.writeStringField("podIPAllocationMode", + this.podIPAllocationMode == null ? null : this.podIPAllocationMode.toString()); + jsonWriter.writeBooleanField("enableNodePublicIP", this.enableNodePublicIp); + jsonWriter.writeStringField("nodePublicIPPrefixID", this.nodePublicIpPrefixId); + jsonWriter.writeArrayField("nodePublicIPTags", this.nodePublicIpTags, + (writer, element) -> writer.writeJson(element)); return jsonWriter.writeEndObject(); } @@ -76,6 +271,21 @@ public static MachineNetworkProperties fromJson(JsonReader jsonReader) throws IO List ipAddresses = reader.readArray(reader1 -> MachineIpAddress.fromJson(reader1)); deserializedMachineNetworkProperties.ipAddresses = ipAddresses; + } else if ("vnetSubnetID".equals(fieldName)) { + deserializedMachineNetworkProperties.vnetSubnetId = reader.getString(); + } else if ("podSubnetID".equals(fieldName)) { + deserializedMachineNetworkProperties.podSubnetId = reader.getString(); + } else if ("podIPAllocationMode".equals(fieldName)) { + deserializedMachineNetworkProperties.podIPAllocationMode + = PodIpAllocationMode.fromString(reader.getString()); + } else if ("enableNodePublicIP".equals(fieldName)) { + deserializedMachineNetworkProperties.enableNodePublicIp + = reader.getNullable(JsonReader::getBoolean); + } else if ("nodePublicIPPrefixID".equals(fieldName)) { + deserializedMachineNetworkProperties.nodePublicIpPrefixId = reader.getString(); + } else if ("nodePublicIPTags".equals(fieldName)) { + List nodePublicIpTags = reader.readArray(reader1 -> IpTag.fromJson(reader1)); + deserializedMachineNetworkProperties.nodePublicIpTags = nodePublicIpTags; } else { reader.skipChildren(); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineOSProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineOSProfile.java new file mode 100644 index 0000000000000..083bb49aeb2c7 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineOSProfile.java @@ -0,0 +1,285 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * The operating system and disk used by the machine. + */ +@Fluent +public final class MachineOSProfile implements JsonSerializable { + /* + * The operating system type. The default is Linux. + */ + private OSType osType; + + /* + * Specifies the OS SKU used by the agent pool. If not specified, the default is Ubuntu if OSType=Linux or + * Windows2019 if OSType=Windows. And the default Windows OSSKU will be changed to Windows2022 after Windows2019 is + * deprecated. + */ + private OSSku osSku; + + /* + * OS Disk Size in GB to be used to specify the disk size for every machine in the master/agent pool. If you specify + * 0, it will apply the default osDisk size according to the vmSize specified. + */ + private Integer osDiskSizeGB; + + /* + * The OS disk type to be used for machines in the agent pool. The default is 'Ephemeral' if the VM supports it and + * has a cache disk larger than the requested OSDiskSizeGB. Otherwise, defaults to 'Managed'. May not be changed + * after creation. For more information see [Ephemeral + * OS](https://docs.microsoft.com/azure/aks/cluster-configuration#ephemeral-os). + */ + private OSDiskType osDiskType; + + /* + * Whether to use a FIPS-enabled OS. + */ + private Boolean enableFips; + + /* + * The Linux machine's specific profile. + */ + private MachineOSProfileLinuxProfile linuxProfile; + + /* + * The Windows machine's specific profile. + */ + private AgentPoolWindowsProfile windowsProfile; + + /** + * Creates an instance of MachineOSProfile class. + */ + public MachineOSProfile() { + } + + /** + * Get the osType property: The operating system type. The default is Linux. + * + * @return the osType value. + */ + public OSType osType() { + return this.osType; + } + + /** + * Set the osType property: The operating system type. The default is Linux. + * + * @param osType the osType value to set. + * @return the MachineOSProfile object itself. + */ + public MachineOSProfile withOsType(OSType osType) { + this.osType = osType; + return this; + } + + /** + * Get the osSku property: Specifies the OS SKU used by the agent pool. If not specified, the default is Ubuntu if + * OSType=Linux or Windows2019 if OSType=Windows. And the default Windows OSSKU will be changed to Windows2022 after + * Windows2019 is deprecated. + * + * @return the osSku value. + */ + public OSSku osSku() { + return this.osSku; + } + + /** + * Set the osSku property: Specifies the OS SKU used by the agent pool. If not specified, the default is Ubuntu if + * OSType=Linux or Windows2019 if OSType=Windows. And the default Windows OSSKU will be changed to Windows2022 after + * Windows2019 is deprecated. + * + * @param osSku the osSku value to set. + * @return the MachineOSProfile object itself. + */ + public MachineOSProfile withOsSku(OSSku osSku) { + this.osSku = osSku; + return this; + } + + /** + * Get the osDiskSizeGB property: OS Disk Size in GB to be used to specify the disk size for every machine in the + * master/agent pool. If you specify 0, it will apply the default osDisk size according to the vmSize specified. + * + * @return the osDiskSizeGB value. + */ + public Integer osDiskSizeGB() { + return this.osDiskSizeGB; + } + + /** + * Set the osDiskSizeGB property: OS Disk Size in GB to be used to specify the disk size for every machine in the + * master/agent pool. If you specify 0, it will apply the default osDisk size according to the vmSize specified. + * + * @param osDiskSizeGB the osDiskSizeGB value to set. + * @return the MachineOSProfile object itself. + */ + public MachineOSProfile withOsDiskSizeGB(Integer osDiskSizeGB) { + this.osDiskSizeGB = osDiskSizeGB; + return this; + } + + /** + * Get the osDiskType property: The OS disk type to be used for machines in the agent pool. The default is + * 'Ephemeral' if the VM supports it and has a cache disk larger than the requested OSDiskSizeGB. Otherwise, + * defaults to 'Managed'. May not be changed after creation. For more information see [Ephemeral + * OS](https://docs.microsoft.com/azure/aks/cluster-configuration#ephemeral-os). + * + * @return the osDiskType value. + */ + public OSDiskType osDiskType() { + return this.osDiskType; + } + + /** + * Set the osDiskType property: The OS disk type to be used for machines in the agent pool. The default is + * 'Ephemeral' if the VM supports it and has a cache disk larger than the requested OSDiskSizeGB. Otherwise, + * defaults to 'Managed'. May not be changed after creation. For more information see [Ephemeral + * OS](https://docs.microsoft.com/azure/aks/cluster-configuration#ephemeral-os). + * + * @param osDiskType the osDiskType value to set. + * @return the MachineOSProfile object itself. + */ + public MachineOSProfile withOsDiskType(OSDiskType osDiskType) { + this.osDiskType = osDiskType; + return this; + } + + /** + * Get the enableFips property: Whether to use a FIPS-enabled OS. + * + * @return the enableFips value. + */ + public Boolean enableFips() { + return this.enableFips; + } + + /** + * Set the enableFips property: Whether to use a FIPS-enabled OS. + * + * @param enableFips the enableFips value to set. + * @return the MachineOSProfile object itself. + */ + public MachineOSProfile withEnableFips(Boolean enableFips) { + this.enableFips = enableFips; + return this; + } + + /** + * Get the linuxProfile property: The Linux machine's specific profile. + * + * @return the linuxProfile value. + */ + public MachineOSProfileLinuxProfile linuxProfile() { + return this.linuxProfile; + } + + /** + * Set the linuxProfile property: The Linux machine's specific profile. + * + * @param linuxProfile the linuxProfile value to set. + * @return the MachineOSProfile object itself. + */ + public MachineOSProfile withLinuxProfile(MachineOSProfileLinuxProfile linuxProfile) { + this.linuxProfile = linuxProfile; + return this; + } + + /** + * Get the windowsProfile property: The Windows machine's specific profile. + * + * @return the windowsProfile value. + */ + public AgentPoolWindowsProfile windowsProfile() { + return this.windowsProfile; + } + + /** + * Set the windowsProfile property: The Windows machine's specific profile. + * + * @param windowsProfile the windowsProfile value to set. + * @return the MachineOSProfile object itself. + */ + public MachineOSProfile withWindowsProfile(AgentPoolWindowsProfile windowsProfile) { + this.windowsProfile = windowsProfile; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (linuxProfile() != null) { + linuxProfile().validate(); + } + if (windowsProfile() != null) { + windowsProfile().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("osType", this.osType == null ? null : this.osType.toString()); + jsonWriter.writeStringField("osSKU", this.osSku == null ? null : this.osSku.toString()); + jsonWriter.writeNumberField("osDiskSizeGB", this.osDiskSizeGB); + jsonWriter.writeStringField("osDiskType", this.osDiskType == null ? null : this.osDiskType.toString()); + jsonWriter.writeBooleanField("enableFIPS", this.enableFips); + jsonWriter.writeJsonField("linuxProfile", this.linuxProfile); + jsonWriter.writeJsonField("windowsProfile", this.windowsProfile); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MachineOSProfile from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MachineOSProfile 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 MachineOSProfile. + */ + public static MachineOSProfile fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MachineOSProfile deserializedMachineOSProfile = new MachineOSProfile(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("osType".equals(fieldName)) { + deserializedMachineOSProfile.osType = OSType.fromString(reader.getString()); + } else if ("osSKU".equals(fieldName)) { + deserializedMachineOSProfile.osSku = OSSku.fromString(reader.getString()); + } else if ("osDiskSizeGB".equals(fieldName)) { + deserializedMachineOSProfile.osDiskSizeGB = reader.getNullable(JsonReader::getInt); + } else if ("osDiskType".equals(fieldName)) { + deserializedMachineOSProfile.osDiskType = OSDiskType.fromString(reader.getString()); + } else if ("enableFIPS".equals(fieldName)) { + deserializedMachineOSProfile.enableFips = reader.getNullable(JsonReader::getBoolean); + } else if ("linuxProfile".equals(fieldName)) { + deserializedMachineOSProfile.linuxProfile = MachineOSProfileLinuxProfile.fromJson(reader); + } else if ("windowsProfile".equals(fieldName)) { + deserializedMachineOSProfile.windowsProfile = AgentPoolWindowsProfile.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedMachineOSProfile; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineOSProfileLinuxProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineOSProfileLinuxProfile.java new file mode 100644 index 0000000000000..b80b1495a7081 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineOSProfileLinuxProfile.java @@ -0,0 +1,132 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * The Linux machine's specific profile. + */ +@Fluent +public final class MachineOSProfileLinuxProfile implements JsonSerializable { + /* + * The OS configuration of Linux machine. + */ + private LinuxOSConfig linuxOSConfig; + + /* + * Message of the day for Linux nodes, base64-encoded. A base64-encoded string which will be written to /etc/motd + * after decoding. This allows customization of the message of the day for Linux nodes. It must not be specified for + * Windows nodes. It must be a static string (i.e., will be printed raw and not be executed as a script). + */ + private String messageOfTheDay; + + /** + * Creates an instance of MachineOSProfileLinuxProfile class. + */ + public MachineOSProfileLinuxProfile() { + } + + /** + * Get the linuxOSConfig property: The OS configuration of Linux machine. + * + * @return the linuxOSConfig value. + */ + public LinuxOSConfig linuxOSConfig() { + return this.linuxOSConfig; + } + + /** + * Set the linuxOSConfig property: The OS configuration of Linux machine. + * + * @param linuxOSConfig the linuxOSConfig value to set. + * @return the MachineOSProfileLinuxProfile object itself. + */ + public MachineOSProfileLinuxProfile withLinuxOSConfig(LinuxOSConfig linuxOSConfig) { + this.linuxOSConfig = linuxOSConfig; + return this; + } + + /** + * Get the messageOfTheDay property: Message of the day for Linux nodes, base64-encoded. A base64-encoded string + * which will be written to /etc/motd after decoding. This allows customization of the message of the day for Linux + * nodes. It must not be specified for Windows nodes. It must be a static string (i.e., will be printed raw and not + * be executed as a script). + * + * @return the messageOfTheDay value. + */ + public String messageOfTheDay() { + return this.messageOfTheDay; + } + + /** + * Set the messageOfTheDay property: Message of the day for Linux nodes, base64-encoded. A base64-encoded string + * which will be written to /etc/motd after decoding. This allows customization of the message of the day for Linux + * nodes. It must not be specified for Windows nodes. It must be a static string (i.e., will be printed raw and not + * be executed as a script). + * + * @param messageOfTheDay the messageOfTheDay value to set. + * @return the MachineOSProfileLinuxProfile object itself. + */ + public MachineOSProfileLinuxProfile withMessageOfTheDay(String messageOfTheDay) { + this.messageOfTheDay = messageOfTheDay; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (linuxOSConfig() != null) { + linuxOSConfig().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("linuxOSConfig", this.linuxOSConfig); + jsonWriter.writeStringField("messageOfTheDay", this.messageOfTheDay); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MachineOSProfileLinuxProfile from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MachineOSProfileLinuxProfile 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 MachineOSProfileLinuxProfile. + */ + public static MachineOSProfileLinuxProfile fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MachineOSProfileLinuxProfile deserializedMachineOSProfileLinuxProfile = new MachineOSProfileLinuxProfile(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("linuxOSConfig".equals(fieldName)) { + deserializedMachineOSProfileLinuxProfile.linuxOSConfig = LinuxOSConfig.fromJson(reader); + } else if ("messageOfTheDay".equals(fieldName)) { + deserializedMachineOSProfileLinuxProfile.messageOfTheDay = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedMachineOSProfileLinuxProfile; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineProperties.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineProperties.java index ab6e144bfc2e7..d34354fed7279 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineProperties.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineProperties.java @@ -4,17 +4,18 @@ package com.azure.resourcemanager.containerservice.models; -import com.azure.core.annotation.Immutable; +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; /** * The properties of the machine. */ -@Immutable +@Fluent public final class MachineProperties implements JsonSerializable { /* * network properties of the machine @@ -26,10 +27,89 @@ public final class MachineProperties implements JsonSerializable tags; + + /* + * Unique read-only string used to implement optimistic concurrency. The eTag value will change when the resource is + * updated. Specify an if-match or if-none-match header with the eTag value for a subsequent request to enable + * optimistic concurrency per the normal eTag convention. + */ + private String eTag; + + /* + * Contains read-only information about the machine. + */ + private MachineStatus status; + + /* + * Configures the per-node local DNS, with VnetDNS and KubeDNS overrides. LocalDNS helps improve performance and + * reliability of DNS resolution in an AKS cluster. For more details see aka.ms/aks/localdns. + */ + private LocalDnsProfile localDNSProfile; + + /* + * The Capacity Reservation Group to provide virtual machines from a reserved group of Machines + */ + private CapacityReservation capacityReservation; + /** * Creates an instance of MachineProperties class. */ - private MachineProperties() { + public MachineProperties() { } /** @@ -41,6 +121,17 @@ public MachineNetworkProperties network() { return this.network; } + /** + * Set the network property: network properties of the machine. + * + * @param network the network value to set. + * @return the MachineProperties object itself. + */ + public MachineProperties withNetwork(MachineNetworkProperties network) { + this.network = network; + return this; + } + /** * Get the resourceId property: Azure resource id of the machine. It can be used to GET underlying VM Instance. * @@ -50,6 +141,272 @@ public String resourceId() { return this.resourceId; } + /** + * Get the hardware property: The hardware and GPU settings of the machine. + * + * @return the hardware value. + */ + public MachineHardwareProfile hardware() { + return this.hardware; + } + + /** + * Set the hardware property: The hardware and GPU settings of the machine. + * + * @param hardware the hardware value to set. + * @return the MachineProperties object itself. + */ + public MachineProperties withHardware(MachineHardwareProfile hardware) { + this.hardware = hardware; + return this; + } + + /** + * Get the operatingSystem property: The operating system and disk used by the machine. + * + * @return the operatingSystem value. + */ + public MachineOSProfile operatingSystem() { + return this.operatingSystem; + } + + /** + * Set the operatingSystem property: The operating system and disk used by the machine. + * + * @param operatingSystem the operatingSystem value to set. + * @return the MachineProperties object itself. + */ + public MachineProperties withOperatingSystem(MachineOSProfile operatingSystem) { + this.operatingSystem = operatingSystem; + return this; + } + + /** + * Get the kubernetes property: The Kubernetes configurations used by the machine. + * + * @return the kubernetes value. + */ + public MachineKubernetesProfile kubernetes() { + return this.kubernetes; + } + + /** + * Set the kubernetes property: The Kubernetes configurations used by the machine. + * + * @param kubernetes the kubernetes value to set. + * @return the MachineProperties object itself. + */ + public MachineProperties withKubernetes(MachineKubernetesProfile kubernetes) { + this.kubernetes = kubernetes; + return this; + } + + /** + * Get the mode property: Machine only allows 'System' and 'User' mode. + * + * @return the mode value. + */ + public AgentPoolMode mode() { + return this.mode; + } + + /** + * Set the mode property: Machine only allows 'System' and 'User' mode. + * + * @param mode the mode value to set. + * @return the MachineProperties object itself. + */ + public MachineProperties withMode(AgentPoolMode mode) { + this.mode = mode; + return this; + } + + /** + * Get the security property: The security settings of the machine. + * + * @return the security value. + */ + public MachineSecurityProfile security() { + return this.security; + } + + /** + * Set the security property: The security settings of the machine. + * + * @param security the security value to set. + * @return the MachineProperties object itself. + */ + public MachineProperties withSecurity(MachineSecurityProfile security) { + this.security = security; + return this; + } + + /** + * Get the priority property: The priority for the machine. If not specified, the default is 'Regular'. + * + * @return the priority value. + */ + public ScaleSetPriority priority() { + return this.priority; + } + + /** + * Set the priority property: The priority for the machine. If not specified, the default is 'Regular'. + * + * @param priority the priority value to set. + * @return the MachineProperties object itself. + */ + public MachineProperties withPriority(ScaleSetPriority priority) { + this.priority = priority; + return this; + } + + /** + * Get the evictionPolicy property: The eviction policy for machine. This cannot be specified unless the priority is + * 'Spot'. If not specified, the default is 'Delete'. + * + * @return the evictionPolicy value. + */ + public ScaleSetEvictionPolicy evictionPolicy() { + return this.evictionPolicy; + } + + /** + * Set the evictionPolicy property: The eviction policy for machine. This cannot be specified unless the priority is + * 'Spot'. If not specified, the default is 'Delete'. + * + * @param evictionPolicy the evictionPolicy value to set. + * @return the MachineProperties object itself. + */ + public MachineProperties withEvictionPolicy(ScaleSetEvictionPolicy evictionPolicy) { + this.evictionPolicy = evictionPolicy; + return this; + } + + /** + * Get the billing property: The properties having to do with machine billing. + * + * @return the billing value. + */ + public MachineBillingProfile billing() { + return this.billing; + } + + /** + * Set the billing property: The properties having to do with machine billing. + * + * @param billing the billing value to set. + * @return the MachineProperties object itself. + */ + public MachineProperties withBilling(MachineBillingProfile billing) { + this.billing = billing; + return this; + } + + /** + * Get the nodeImageVersion property: The version of node image. + * + * @return the nodeImageVersion value. + */ + public String nodeImageVersion() { + return this.nodeImageVersion; + } + + /** + * Get the provisioningState property: The current deployment or provisioning state. + * + * @return the provisioningState value. + */ + public String provisioningState() { + return this.provisioningState; + } + + /** + * Get the tags property: The tags to be persisted on the machine. + * + * @return the tags value. + */ + public Map tags() { + return this.tags; + } + + /** + * Set the tags property: The tags to be persisted on the machine. + * + * @param tags the tags value to set. + * @return the MachineProperties object itself. + */ + public MachineProperties withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get the eTag property: Unique read-only string used to implement optimistic concurrency. The eTag value will + * change when the resource is updated. Specify an if-match or if-none-match header with the eTag value for a + * subsequent request to enable optimistic concurrency per the normal eTag convention. + * + * @return the eTag value. + */ + public String eTag() { + return this.eTag; + } + + /** + * Get the status property: Contains read-only information about the machine. + * + * @return the status value. + */ + public MachineStatus status() { + return this.status; + } + + /** + * Get the localDNSProfile property: Configures the per-node local DNS, with VnetDNS and KubeDNS overrides. LocalDNS + * helps improve performance and reliability of DNS resolution in an AKS cluster. For more details see + * aka.ms/aks/localdns. + * + * @return the localDNSProfile value. + */ + public LocalDnsProfile localDNSProfile() { + return this.localDNSProfile; + } + + /** + * Set the localDNSProfile property: Configures the per-node local DNS, with VnetDNS and KubeDNS overrides. LocalDNS + * helps improve performance and reliability of DNS resolution in an AKS cluster. For more details see + * aka.ms/aks/localdns. + * + * @param localDNSProfile the localDNSProfile value to set. + * @return the MachineProperties object itself. + */ + public MachineProperties withLocalDNSProfile(LocalDnsProfile localDNSProfile) { + this.localDNSProfile = localDNSProfile; + return this; + } + + /** + * Get the capacityReservation property: The Capacity Reservation Group to provide virtual machines from a reserved + * group of Machines. + * + * @return the capacityReservation value. + */ + public CapacityReservation capacityReservation() { + return this.capacityReservation; + } + + /** + * Set the capacityReservation property: The Capacity Reservation Group to provide virtual machines from a reserved + * group of Machines. + * + * @param capacityReservation the capacityReservation value to set. + * @return the MachineProperties object itself. + */ + public MachineProperties withCapacityReservation(CapacityReservation capacityReservation) { + this.capacityReservation = capacityReservation; + return this; + } + /** * Validates the instance. * @@ -59,6 +416,30 @@ public void validate() { if (network() != null) { network().validate(); } + if (hardware() != null) { + hardware().validate(); + } + if (operatingSystem() != null) { + operatingSystem().validate(); + } + if (kubernetes() != null) { + kubernetes().validate(); + } + if (security() != null) { + security().validate(); + } + if (billing() != null) { + billing().validate(); + } + if (status() != null) { + status().validate(); + } + if (localDNSProfile() != null) { + localDNSProfile().validate(); + } + if (capacityReservation() != null) { + capacityReservation().validate(); + } } /** @@ -67,6 +448,19 @@ public void validate() { @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("network", this.network); + jsonWriter.writeJsonField("hardware", this.hardware); + jsonWriter.writeJsonField("operatingSystem", this.operatingSystem); + jsonWriter.writeJsonField("kubernetes", this.kubernetes); + jsonWriter.writeStringField("mode", this.mode == null ? null : this.mode.toString()); + jsonWriter.writeJsonField("security", this.security); + jsonWriter.writeStringField("priority", this.priority == null ? null : this.priority.toString()); + jsonWriter.writeStringField("evictionPolicy", + this.evictionPolicy == null ? null : this.evictionPolicy.toString()); + jsonWriter.writeJsonField("billing", this.billing); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + jsonWriter.writeJsonField("localDNSProfile", this.localDNSProfile); + jsonWriter.writeJsonField("capacityReservation", this.capacityReservation); return jsonWriter.writeEndObject(); } @@ -89,6 +483,38 @@ public static MachineProperties fromJson(JsonReader jsonReader) throws IOExcepti deserializedMachineProperties.network = MachineNetworkProperties.fromJson(reader); } else if ("resourceId".equals(fieldName)) { deserializedMachineProperties.resourceId = reader.getString(); + } else if ("hardware".equals(fieldName)) { + deserializedMachineProperties.hardware = MachineHardwareProfile.fromJson(reader); + } else if ("operatingSystem".equals(fieldName)) { + deserializedMachineProperties.operatingSystem = MachineOSProfile.fromJson(reader); + } else if ("kubernetes".equals(fieldName)) { + deserializedMachineProperties.kubernetes = MachineKubernetesProfile.fromJson(reader); + } else if ("mode".equals(fieldName)) { + deserializedMachineProperties.mode = AgentPoolMode.fromString(reader.getString()); + } else if ("security".equals(fieldName)) { + deserializedMachineProperties.security = MachineSecurityProfile.fromJson(reader); + } else if ("priority".equals(fieldName)) { + deserializedMachineProperties.priority = ScaleSetPriority.fromString(reader.getString()); + } else if ("evictionPolicy".equals(fieldName)) { + deserializedMachineProperties.evictionPolicy + = ScaleSetEvictionPolicy.fromString(reader.getString()); + } else if ("billing".equals(fieldName)) { + deserializedMachineProperties.billing = MachineBillingProfile.fromJson(reader); + } else if ("nodeImageVersion".equals(fieldName)) { + deserializedMachineProperties.nodeImageVersion = reader.getString(); + } else if ("provisioningState".equals(fieldName)) { + deserializedMachineProperties.provisioningState = reader.getString(); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedMachineProperties.tags = tags; + } else if ("eTag".equals(fieldName)) { + deserializedMachineProperties.eTag = reader.getString(); + } else if ("status".equals(fieldName)) { + deserializedMachineProperties.status = MachineStatus.fromJson(reader); + } else if ("localDNSProfile".equals(fieldName)) { + deserializedMachineProperties.localDNSProfile = LocalDnsProfile.fromJson(reader); + } else if ("capacityReservation".equals(fieldName)) { + deserializedMachineProperties.capacityReservation = CapacityReservation.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineSecurityProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineSecurityProfile.java new file mode 100644 index 0000000000000..21b7ccecb3382 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineSecurityProfile.java @@ -0,0 +1,193 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * The security settings of the machine. + */ +@Fluent +public final class MachineSecurityProfile implements JsonSerializable { + /* + * vTPM is a Trusted Launch feature for configuring a dedicated secure vault for keys and measurements held locally + * on the node. For more details, see aka.ms/aks/trustedlaunch. If not specified, the default is false. + */ + private Boolean enableVTPM; + + /* + * Secure Boot is a feature of Trusted Launch which ensures that only signed operating systems and drivers can boot. + * For more details, see aka.ms/aks/trustedlaunch. If not specified, the default is false. + */ + private Boolean enableSecureBoot; + + /* + * SSH access method of an agent pool. + */ + private AgentPoolSshAccess sshAccess; + + /* + * Whether to enable host based OS and data drive encryption. This is only supported on certain VM sizes and in + * certain Azure regions. For more information, see: https://docs.microsoft.com/azure/aks/enable-host-encryption + */ + private Boolean enableEncryptionAtHost; + + /** + * Creates an instance of MachineSecurityProfile class. + */ + public MachineSecurityProfile() { + } + + /** + * Get the enableVTPM property: vTPM is a Trusted Launch feature for configuring a dedicated secure vault for keys + * and measurements held locally on the node. For more details, see aka.ms/aks/trustedlaunch. If not specified, the + * default is false. + * + * @return the enableVTPM value. + */ + public Boolean enableVTPM() { + return this.enableVTPM; + } + + /** + * Set the enableVTPM property: vTPM is a Trusted Launch feature for configuring a dedicated secure vault for keys + * and measurements held locally on the node. For more details, see aka.ms/aks/trustedlaunch. If not specified, the + * default is false. + * + * @param enableVTPM the enableVTPM value to set. + * @return the MachineSecurityProfile object itself. + */ + public MachineSecurityProfile withEnableVTPM(Boolean enableVTPM) { + this.enableVTPM = enableVTPM; + return this; + } + + /** + * Get the enableSecureBoot property: Secure Boot is a feature of Trusted Launch which ensures that only signed + * operating systems and drivers can boot. For more details, see aka.ms/aks/trustedlaunch. If not specified, the + * default is false. + * + * @return the enableSecureBoot value. + */ + public Boolean enableSecureBoot() { + return this.enableSecureBoot; + } + + /** + * Set the enableSecureBoot property: Secure Boot is a feature of Trusted Launch which ensures that only signed + * operating systems and drivers can boot. For more details, see aka.ms/aks/trustedlaunch. If not specified, the + * default is false. + * + * @param enableSecureBoot the enableSecureBoot value to set. + * @return the MachineSecurityProfile object itself. + */ + public MachineSecurityProfile withEnableSecureBoot(Boolean enableSecureBoot) { + this.enableSecureBoot = enableSecureBoot; + return this; + } + + /** + * Get the sshAccess property: SSH access method of an agent pool. + * + * @return the sshAccess value. + */ + public AgentPoolSshAccess sshAccess() { + return this.sshAccess; + } + + /** + * Set the sshAccess property: SSH access method of an agent pool. + * + * @param sshAccess the sshAccess value to set. + * @return the MachineSecurityProfile object itself. + */ + public MachineSecurityProfile withSshAccess(AgentPoolSshAccess sshAccess) { + this.sshAccess = sshAccess; + return this; + } + + /** + * Get the enableEncryptionAtHost property: Whether to enable host based OS and data drive encryption. This is only + * supported on certain VM sizes and in certain Azure regions. For more information, see: + * https://docs.microsoft.com/azure/aks/enable-host-encryption. + * + * @return the enableEncryptionAtHost value. + */ + public Boolean enableEncryptionAtHost() { + return this.enableEncryptionAtHost; + } + + /** + * Set the enableEncryptionAtHost property: Whether to enable host based OS and data drive encryption. This is only + * supported on certain VM sizes and in certain Azure regions. For more information, see: + * https://docs.microsoft.com/azure/aks/enable-host-encryption. + * + * @param enableEncryptionAtHost the enableEncryptionAtHost value to set. + * @return the MachineSecurityProfile object itself. + */ + public MachineSecurityProfile withEnableEncryptionAtHost(Boolean enableEncryptionAtHost) { + this.enableEncryptionAtHost = enableEncryptionAtHost; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeBooleanField("enableVTPM", this.enableVTPM); + jsonWriter.writeBooleanField("enableSecureBoot", this.enableSecureBoot); + jsonWriter.writeStringField("sshAccess", this.sshAccess == null ? null : this.sshAccess.toString()); + jsonWriter.writeBooleanField("enableEncryptionAtHost", this.enableEncryptionAtHost); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MachineSecurityProfile from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MachineSecurityProfile 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 MachineSecurityProfile. + */ + public static MachineSecurityProfile fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MachineSecurityProfile deserializedMachineSecurityProfile = new MachineSecurityProfile(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("enableVTPM".equals(fieldName)) { + deserializedMachineSecurityProfile.enableVTPM = reader.getNullable(JsonReader::getBoolean); + } else if ("enableSecureBoot".equals(fieldName)) { + deserializedMachineSecurityProfile.enableSecureBoot = reader.getNullable(JsonReader::getBoolean); + } else if ("sshAccess".equals(fieldName)) { + deserializedMachineSecurityProfile.sshAccess = AgentPoolSshAccess.fromString(reader.getString()); + } else if ("enableEncryptionAtHost".equals(fieldName)) { + deserializedMachineSecurityProfile.enableEncryptionAtHost + = reader.getNullable(JsonReader::getBoolean); + } else { + reader.skipChildren(); + } + } + + return deserializedMachineSecurityProfile; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineStatus.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineStatus.java new file mode 100644 index 0000000000000..46eba39440c56 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MachineStatus.java @@ -0,0 +1,155 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.management.exception.ManagementError; +import com.azure.core.util.CoreUtils; +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.time.OffsetDateTime; + +/** + * Contains read-only information about the machine. + */ +@Immutable +public final class MachineStatus implements JsonSerializable { + /* + * The error details information of the machine. Preserves the detailed info of failure. If there was no error, this + * field is omitted. + */ + private ManagementError provisioningError; + + /* + * Specifies the time at which the machine was created. + */ + private OffsetDateTime creationTimestamp; + + /* + * The drift action of the machine. Indicates whether a machine has deviated from its expected state due to changes + * in managed cluster properties, requiring corrective action. + */ + private DriftAction driftAction; + + /* + * Reason for machine drift. Provides detailed information on why the machine has drifted. This field is omitted if + * the machine is up to date. + */ + private String driftReason; + + /* + * Virtual machine state. Indicates the current state of the underlying virtual machine. + */ + private VmState vmState; + + /** + * Creates an instance of MachineStatus class. + */ + private MachineStatus() { + } + + /** + * Get the provisioningError property: The error details information of the machine. Preserves the detailed info of + * failure. If there was no error, this field is omitted. + * + * @return the provisioningError value. + */ + public ManagementError provisioningError() { + return this.provisioningError; + } + + /** + * Get the creationTimestamp property: Specifies the time at which the machine was created. + * + * @return the creationTimestamp value. + */ + public OffsetDateTime creationTimestamp() { + return this.creationTimestamp; + } + + /** + * Get the driftAction property: The drift action of the machine. Indicates whether a machine has deviated from its + * expected state due to changes in managed cluster properties, requiring corrective action. + * + * @return the driftAction value. + */ + public DriftAction driftAction() { + return this.driftAction; + } + + /** + * Get the driftReason property: Reason for machine drift. Provides detailed information on why the machine has + * drifted. This field is omitted if the machine is up to date. + * + * @return the driftReason value. + */ + public String driftReason() { + return this.driftReason; + } + + /** + * Get the vmState property: Virtual machine state. Indicates the current state of the underlying virtual machine. + * + * @return the vmState value. + */ + public VmState vmState() { + return this.vmState; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MachineStatus from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MachineStatus 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 MachineStatus. + */ + public static MachineStatus fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MachineStatus deserializedMachineStatus = new MachineStatus(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("provisioningError".equals(fieldName)) { + deserializedMachineStatus.provisioningError = ManagementError.fromJson(reader); + } else if ("creationTimestamp".equals(fieldName)) { + deserializedMachineStatus.creationTimestamp = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("driftAction".equals(fieldName)) { + deserializedMachineStatus.driftAction = DriftAction.fromString(reader.getString()); + } else if ("driftReason".equals(fieldName)) { + deserializedMachineStatus.driftReason = reader.getString(); + } else if ("vmState".equals(fieldName)) { + deserializedMachineStatus.vmState = VmState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedMachineStatus; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MaintenanceWindowResourceProperties.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MaintenanceWindowResourceProperties.java new file mode 100644 index 0000000000000..dfdb9afe48639 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MaintenanceWindowResourceProperties.java @@ -0,0 +1,317 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.time.LocalDate; +import java.util.List; +import java.util.Objects; + +/** + * Properties of a maintenance window. + * For more information, see https://aka.ms/aks/maintenance-windows. + */ +@Fluent +public final class MaintenanceWindowResourceProperties + implements JsonSerializable { + /* + * The provisioning state of the maintenance window. + */ + private ResourceProvisioningState provisioningState; + + /* + * Recurrence schedule for the maintenance window. One and only one of the schedule + * types should be specified: 'daily', 'weekly', 'absoluteMonthly', or 'relativeMonthly'. + */ + private Schedule schedule; + + /* + * The date the maintenance window activates. If the current date is before this + * date, the maintenance window is inactive and will not be used. If not specified, + * the maintenance window will be active right away. + */ + private LocalDate startDate; + + /* + * The start time of the maintenance window. Accepted values are from '00:00' to + * '23:59'. 'utcOffset' applies to this field. For example: '02:00' with + * 'utcOffset: +02:00' means UTC time '00:00'. + */ + private String startTime; + + /* + * Length of the maintenance window in hours. + */ + private int durationHours; + + /* + * The UTC offset in format +/-HH:mm. For example, '+05:30' for IST and '-07:00' + * for PST. If not specified, the default is '+00:00'. + * Note: this is a static offset and does not adjust for Daylight Saving Time. + * Customers in DST-observing regions should pick the offset that matches their + * preferred wall-clock time year-round; the maintenance window will shift by one + * hour relative to local time when DST starts or ends. + */ + private String utcOffset; + + /* + * Date ranges during which maintenance is not allowed. 'utcOffset' applies to + * these dates. For example, with 'utcOffset: +02:00' and a date span of + * '2026-12-23' to '2027-01-03', maintenance will be blocked from + * '2026-12-22 22:00' to '2027-01-03 22:00' in UTC time. + */ + private List notAllowedDates; + + /** + * Creates an instance of MaintenanceWindowResourceProperties class. + */ + public MaintenanceWindowResourceProperties() { + } + + /** + * Get the provisioningState property: The provisioning state of the maintenance window. + * + * @return the provisioningState value. + */ + public ResourceProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Get the schedule property: Recurrence schedule for the maintenance window. One and only one of the schedule + * types should be specified: 'daily', 'weekly', 'absoluteMonthly', or 'relativeMonthly'. + * + * @return the schedule value. + */ + public Schedule schedule() { + return this.schedule; + } + + /** + * Set the schedule property: Recurrence schedule for the maintenance window. One and only one of the schedule + * types should be specified: 'daily', 'weekly', 'absoluteMonthly', or 'relativeMonthly'. + * + * @param schedule the schedule value to set. + * @return the MaintenanceWindowResourceProperties object itself. + */ + public MaintenanceWindowResourceProperties withSchedule(Schedule schedule) { + this.schedule = schedule; + return this; + } + + /** + * Get the startDate property: The date the maintenance window activates. If the current date is before this + * date, the maintenance window is inactive and will not be used. If not specified, + * the maintenance window will be active right away. + * + * @return the startDate value. + */ + public LocalDate startDate() { + return this.startDate; + } + + /** + * Set the startDate property: The date the maintenance window activates. If the current date is before this + * date, the maintenance window is inactive and will not be used. If not specified, + * the maintenance window will be active right away. + * + * @param startDate the startDate value to set. + * @return the MaintenanceWindowResourceProperties object itself. + */ + public MaintenanceWindowResourceProperties withStartDate(LocalDate startDate) { + this.startDate = startDate; + return this; + } + + /** + * Get the startTime property: The start time of the maintenance window. Accepted values are from '00:00' to + * '23:59'. 'utcOffset' applies to this field. For example: '02:00' with + * 'utcOffset: +02:00' means UTC time '00:00'. + * + * @return the startTime value. + */ + public String startTime() { + return this.startTime; + } + + /** + * Set the startTime property: The start time of the maintenance window. Accepted values are from '00:00' to + * '23:59'. 'utcOffset' applies to this field. For example: '02:00' with + * 'utcOffset: +02:00' means UTC time '00:00'. + * + * @param startTime the startTime value to set. + * @return the MaintenanceWindowResourceProperties object itself. + */ + public MaintenanceWindowResourceProperties withStartTime(String startTime) { + this.startTime = startTime; + return this; + } + + /** + * Get the durationHours property: Length of the maintenance window in hours. + * + * @return the durationHours value. + */ + public int durationHours() { + return this.durationHours; + } + + /** + * Set the durationHours property: Length of the maintenance window in hours. + * + * @param durationHours the durationHours value to set. + * @return the MaintenanceWindowResourceProperties object itself. + */ + public MaintenanceWindowResourceProperties withDurationHours(int durationHours) { + this.durationHours = durationHours; + return this; + } + + /** + * Get the utcOffset property: The UTC offset in format +/-HH:mm. For example, '+05:30' for IST and '-07:00' + * for PST. If not specified, the default is '+00:00'. + * Note: this is a static offset and does not adjust for Daylight Saving Time. + * Customers in DST-observing regions should pick the offset that matches their + * preferred wall-clock time year-round; the maintenance window will shift by one + * hour relative to local time when DST starts or ends. + * + * @return the utcOffset value. + */ + public String utcOffset() { + return this.utcOffset; + } + + /** + * Set the utcOffset property: The UTC offset in format +/-HH:mm. For example, '+05:30' for IST and '-07:00' + * for PST. If not specified, the default is '+00:00'. + * Note: this is a static offset and does not adjust for Daylight Saving Time. + * Customers in DST-observing regions should pick the offset that matches their + * preferred wall-clock time year-round; the maintenance window will shift by one + * hour relative to local time when DST starts or ends. + * + * @param utcOffset the utcOffset value to set. + * @return the MaintenanceWindowResourceProperties object itself. + */ + public MaintenanceWindowResourceProperties withUtcOffset(String utcOffset) { + this.utcOffset = utcOffset; + return this; + } + + /** + * Get the notAllowedDates property: Date ranges during which maintenance is not allowed. 'utcOffset' applies to + * these dates. For example, with 'utcOffset: +02:00' and a date span of + * '2026-12-23' to '2027-01-03', maintenance will be blocked from + * '2026-12-22 22:00' to '2027-01-03 22:00' in UTC time. + * + * @return the notAllowedDates value. + */ + public List notAllowedDates() { + return this.notAllowedDates; + } + + /** + * Set the notAllowedDates property: Date ranges during which maintenance is not allowed. 'utcOffset' applies to + * these dates. For example, with 'utcOffset: +02:00' and a date span of + * '2026-12-23' to '2027-01-03', maintenance will be blocked from + * '2026-12-22 22:00' to '2027-01-03 22:00' in UTC time. + * + * @param notAllowedDates the notAllowedDates value to set. + * @return the MaintenanceWindowResourceProperties object itself. + */ + public MaintenanceWindowResourceProperties withNotAllowedDates(List notAllowedDates) { + this.notAllowedDates = notAllowedDates; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (schedule() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property schedule in model MaintenanceWindowResourceProperties")); + } else { + schedule().validate(); + } + if (startTime() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property startTime in model MaintenanceWindowResourceProperties")); + } + if (notAllowedDates() != null) { + notAllowedDates().forEach(e -> e.validate()); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(MaintenanceWindowResourceProperties.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("schedule", this.schedule); + jsonWriter.writeStringField("startTime", this.startTime); + jsonWriter.writeIntField("durationHours", this.durationHours); + jsonWriter.writeStringField("startDate", Objects.toString(this.startDate, null)); + jsonWriter.writeStringField("utcOffset", this.utcOffset); + jsonWriter.writeArrayField("notAllowedDates", this.notAllowedDates, + (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MaintenanceWindowResourceProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MaintenanceWindowResourceProperties 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 MaintenanceWindowResourceProperties. + */ + public static MaintenanceWindowResourceProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MaintenanceWindowResourceProperties deserializedMaintenanceWindowResourceProperties + = new MaintenanceWindowResourceProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("schedule".equals(fieldName)) { + deserializedMaintenanceWindowResourceProperties.schedule = Schedule.fromJson(reader); + } else if ("startTime".equals(fieldName)) { + deserializedMaintenanceWindowResourceProperties.startTime = reader.getString(); + } else if ("durationHours".equals(fieldName)) { + deserializedMaintenanceWindowResourceProperties.durationHours = reader.getInt(); + } else if ("provisioningState".equals(fieldName)) { + deserializedMaintenanceWindowResourceProperties.provisioningState + = ResourceProvisioningState.fromString(reader.getString()); + } else if ("startDate".equals(fieldName)) { + deserializedMaintenanceWindowResourceProperties.startDate + = reader.getNullable(nonNullReader -> LocalDate.parse(nonNullReader.getString())); + } else if ("utcOffset".equals(fieldName)) { + deserializedMaintenanceWindowResourceProperties.utcOffset = reader.getString(); + } else if ("notAllowedDates".equals(fieldName)) { + List notAllowedDates = reader.readArray(reader1 -> DateSpan.fromJson(reader1)); + deserializedMaintenanceWindowResourceProperties.notAllowedDates = notAllowedDates; + } else { + reader.skipChildren(); + } + } + + return deserializedMaintenanceWindowResourceProperties; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MaintenanceWindowSource.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MaintenanceWindowSource.java new file mode 100644 index 0000000000000..b122f81c57821 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MaintenanceWindowSource.java @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The auto-upgrade schedule that a maintenance window is derived from. + */ +public final class MaintenanceWindowSource extends ExpandableStringEnum { + /** + * The window is derived from the cluster auto-upgrade schedule (aksManagedAutoUpgradeSchedule), which governs + * Kubernetes version upgrades. + */ + public static final MaintenanceWindowSource CLUSTER_AUTO_UPGRADE_SCHEDULE + = fromString("ClusterAutoUpgradeSchedule"); + + /** + * The window is derived from the node OS auto-upgrade schedule (aksManagedNodeOSUpgradeSchedule), which governs + * node OS image upgrades. + */ + public static final MaintenanceWindowSource NODE_OSUPGRADE_SCHEDULE = fromString("NodeOSUpgradeSchedule"); + + /** + * Creates a new instance of MaintenanceWindowSource value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public MaintenanceWindowSource() { + } + + /** + * Creates or finds a MaintenanceWindowSource from its string representation. + * + * @param name a name to look for. + * @return the corresponding MaintenanceWindowSource. + */ + public static MaintenanceWindowSource fromString(String name) { + return fromString(name, MaintenanceWindowSource.class); + } + + /** + * Gets known MaintenanceWindowSource values. + * + * @return known MaintenanceWindowSource values. + */ + public static Collection values() { + return values(MaintenanceWindowSource.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAgentPoolProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAgentPoolProfile.java index a8cf4f09cc522..8ea9453e682a8 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAgentPoolProfile.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAgentPoolProfile.java @@ -296,6 +296,24 @@ public ManagedClusterAgentPoolProfile withNodeImageVersion(String nodeImageVersi return this; } + /** + * {@inheritDoc} + */ + @Override + public ManagedClusterAgentPoolProfile withUpgradeStrategy(UpgradeStrategy upgradeStrategy) { + super.withUpgradeStrategy(upgradeStrategy); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public ManagedClusterAgentPoolProfile withEnableOSDiskFullCaching(Boolean enableOSDiskFullCaching) { + super.withEnableOSDiskFullCaching(enableOSDiskFullCaching); + return this; + } + /** * {@inheritDoc} */ @@ -305,6 +323,16 @@ public ManagedClusterAgentPoolProfile withUpgradeSettings(AgentPoolUpgradeSettin return this; } + /** + * {@inheritDoc} + */ + @Override + public ManagedClusterAgentPoolProfile + withUpgradeSettingsBlueGreen(AgentPoolBlueGreenUpgradeSettings upgradeSettingsBlueGreen) { + super.withUpgradeSettingsBlueGreen(upgradeSettingsBlueGreen); + return this; + } + /** * {@inheritDoc} */ @@ -395,6 +423,15 @@ public ManagedClusterAgentPoolProfile withNodeTaints(List nodeTaints) { return this; } + /** + * {@inheritDoc} + */ + @Override + public ManagedClusterAgentPoolProfile withNodeInitializationTaints(List nodeInitializationTaints) { + super.withNodeInitializationTaints(nodeInitializationTaints); + return this; + } + /** * {@inheritDoc} */ @@ -577,6 +614,16 @@ public ManagedClusterAgentPoolProfile withLocalDnsProfile(LocalDnsProfile localD return this; } + /** + * {@inheritDoc} + */ + @Override + public ManagedClusterAgentPoolProfile + withPreparedImageSpecificationProfile(PreparedImageSpecificationProfile preparedImageSpecificationProfile) { + super.withPreparedImageSpecificationProfile(preparedImageSpecificationProfile); + return this; + } + /** * Validates the instance. * @@ -592,6 +639,9 @@ public void validate() { if (upgradeSettings() != null) { upgradeSettings().validate(); } + if (upgradeSettingsBlueGreen() != null) { + upgradeSettingsBlueGreen().validate(); + } if (powerState() != null) { powerState().validate(); } @@ -634,6 +684,9 @@ public void validate() { if (localDnsProfile() != null) { localDnsProfile().validate(); } + if (preparedImageSpecificationProfile() != null) { + preparedImageSpecificationProfile().validate(); + } } private static final ClientLogger LOGGER = new ClientLogger(ManagedClusterAgentPoolProfile.class); @@ -666,7 +719,10 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("mode", mode() == null ? null : mode().toString()); jsonWriter.writeStringField("orchestratorVersion", orchestratorVersion()); jsonWriter.writeStringField("nodeImageVersion", nodeImageVersion()); + jsonWriter.writeStringField("upgradeStrategy", upgradeStrategy() == null ? null : upgradeStrategy().toString()); + jsonWriter.writeBooleanField("enableOSDiskFullCaching", enableOSDiskFullCaching()); jsonWriter.writeJsonField("upgradeSettings", upgradeSettings()); + jsonWriter.writeJsonField("upgradeSettingsBlueGreen", upgradeSettingsBlueGreen()); jsonWriter.writeJsonField("powerState", powerState()); jsonWriter.writeArrayField("availabilityZones", availabilityZones(), (writer, element) -> writer.writeString(element)); @@ -680,6 +736,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); jsonWriter.writeMapField("nodeLabels", nodeLabels(), (writer, element) -> writer.writeString(element)); jsonWriter.writeArrayField("nodeTaints", nodeTaints(), (writer, element) -> writer.writeString(element)); + jsonWriter.writeArrayField("nodeInitializationTaints", nodeInitializationTaints(), + (writer, element) -> writer.writeString(element)); jsonWriter.writeStringField("proximityPlacementGroupID", proximityPlacementGroupId()); jsonWriter.writeJsonField("kubeletConfig", kubeletConfig()); jsonWriter.writeJsonField("linuxOSConfig", linuxOSConfig()); @@ -702,6 +760,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { (writer, element) -> writer.writeJson(element)); jsonWriter.writeJsonField("status", status()); jsonWriter.writeJsonField("localDNSProfile", localDnsProfile()); + jsonWriter.writeJsonField("preparedImageSpecificationProfile", preparedImageSpecificationProfile()); jsonWriter.writeStringField("name", this.name); return jsonWriter.writeEndObject(); } @@ -775,9 +834,18 @@ public static ManagedClusterAgentPoolProfile fromJson(JsonReader jsonReader) thr deserializedManagedClusterAgentPoolProfile.currentOrchestratorVersion = reader.getString(); } else if ("nodeImageVersion".equals(fieldName)) { deserializedManagedClusterAgentPoolProfile.withNodeImageVersion(reader.getString()); + } else if ("upgradeStrategy".equals(fieldName)) { + deserializedManagedClusterAgentPoolProfile + .withUpgradeStrategy(UpgradeStrategy.fromString(reader.getString())); + } else if ("enableOSDiskFullCaching".equals(fieldName)) { + deserializedManagedClusterAgentPoolProfile + .withEnableOSDiskFullCaching(reader.getNullable(JsonReader::getBoolean)); } else if ("upgradeSettings".equals(fieldName)) { deserializedManagedClusterAgentPoolProfile .withUpgradeSettings(AgentPoolUpgradeSettings.fromJson(reader)); + } else if ("upgradeSettingsBlueGreen".equals(fieldName)) { + deserializedManagedClusterAgentPoolProfile + .withUpgradeSettingsBlueGreen(AgentPoolBlueGreenUpgradeSettings.fromJson(reader)); } else if ("provisioningState".equals(fieldName)) { deserializedManagedClusterAgentPoolProfile.provisioningState = reader.getString(); } else if ("powerState".equals(fieldName)) { @@ -808,6 +876,9 @@ public static ManagedClusterAgentPoolProfile fromJson(JsonReader jsonReader) thr } else if ("nodeTaints".equals(fieldName)) { List nodeTaints = reader.readArray(reader1 -> reader1.getString()); deserializedManagedClusterAgentPoolProfile.withNodeTaints(nodeTaints); + } else if ("nodeInitializationTaints".equals(fieldName)) { + List nodeInitializationTaints = reader.readArray(reader1 -> reader1.getString()); + deserializedManagedClusterAgentPoolProfile.withNodeInitializationTaints(nodeInitializationTaints); } else if ("proximityPlacementGroupID".equals(fieldName)) { deserializedManagedClusterAgentPoolProfile.withProximityPlacementGroupId(reader.getString()); } else if ("kubeletConfig".equals(fieldName)) { @@ -860,6 +931,9 @@ public static ManagedClusterAgentPoolProfile fromJson(JsonReader jsonReader) thr deserializedManagedClusterAgentPoolProfile.withStatus(AgentPoolStatus.fromJson(reader)); } else if ("localDNSProfile".equals(fieldName)) { deserializedManagedClusterAgentPoolProfile.withLocalDnsProfile(LocalDnsProfile.fromJson(reader)); + } else if ("preparedImageSpecificationProfile".equals(fieldName)) { + deserializedManagedClusterAgentPoolProfile + .withPreparedImageSpecificationProfile(PreparedImageSpecificationProfile.fromJson(reader)); } else if ("name".equals(fieldName)) { deserializedManagedClusterAgentPoolProfile.name = reader.getString(); } else { diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAgentSandboxProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAgentSandboxProfile.java new file mode 100644 index 0000000000000..07e929c8d96e2 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAgentSandboxProfile.java @@ -0,0 +1,96 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * Settings for the Agent Sandbox core extension managed by Azure Kubernetes Service (AKS). + */ +@Fluent +public final class ManagedClusterAgentSandboxProfile implements JsonSerializable { + /* + * Whether the Agent Sandbox core extension is enabled for the cluster. On cluster creation, the default is false. + */ + private Boolean enabled; + + /** + * Creates an instance of ManagedClusterAgentSandboxProfile class. + */ + public ManagedClusterAgentSandboxProfile() { + } + + /** + * Get the enabled property: Whether the Agent Sandbox core extension is enabled for the cluster. On cluster + * creation, the default is false. + * + * @return the enabled value. + */ + public Boolean enabled() { + return this.enabled; + } + + /** + * Set the enabled property: Whether the Agent Sandbox core extension is enabled for the cluster. On cluster + * creation, the default is false. + * + * @param enabled the enabled value to set. + * @return the ManagedClusterAgentSandboxProfile object itself. + */ + public ManagedClusterAgentSandboxProfile withEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeBooleanField("enabled", this.enabled); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ManagedClusterAgentSandboxProfile from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ManagedClusterAgentSandboxProfile 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 ManagedClusterAgentSandboxProfile. + */ + public static ManagedClusterAgentSandboxProfile fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ManagedClusterAgentSandboxProfile deserializedManagedClusterAgentSandboxProfile + = new ManagedClusterAgentSandboxProfile(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("enabled".equals(fieldName)) { + deserializedManagedClusterAgentSandboxProfile.enabled = reader.getNullable(JsonReader::getBoolean); + } else { + reader.skipChildren(); + } + } + + return deserializedManagedClusterAgentSandboxProfile; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterControlPlaneScalingProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterControlPlaneScalingProfile.java new file mode 100644 index 0000000000000..e4840f8e70a87 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterControlPlaneScalingProfile.java @@ -0,0 +1,112 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Profile for providing scaled and performance guaranteed control plane capacity to deliver consistent performance + * under high workload. Requires Kubernetes version 1.33.0 or later. + */ +@Fluent +public final class ManagedClusterControlPlaneScalingProfile + implements JsonSerializable { + /* + * The scaling size of the control plane. Scaling sizes offer guaranteed capacity and predictable Kubernetes + * performance beyond standard tier defaults. Higher H sizes provide increased performance guarantees. See + * https://aka.ms/aks/hyperscale for performance metrics details for each size. + */ + private ControlPlaneScalingSize scalingSize; + + /** + * Creates an instance of ManagedClusterControlPlaneScalingProfile class. + */ + public ManagedClusterControlPlaneScalingProfile() { + } + + /** + * Get the scalingSize property: The scaling size of the control plane. Scaling sizes offer guaranteed capacity and + * predictable Kubernetes performance beyond standard tier defaults. Higher H sizes provide increased performance + * guarantees. See https://aka.ms/aks/hyperscale for performance metrics details for each size. + * + * @return the scalingSize value. + */ + public ControlPlaneScalingSize scalingSize() { + return this.scalingSize; + } + + /** + * Set the scalingSize property: The scaling size of the control plane. Scaling sizes offer guaranteed capacity and + * predictable Kubernetes performance beyond standard tier defaults. Higher H sizes provide increased performance + * guarantees. See https://aka.ms/aks/hyperscale for performance metrics details for each size. + * + * @param scalingSize the scalingSize value to set. + * @return the ManagedClusterControlPlaneScalingProfile object itself. + */ + public ManagedClusterControlPlaneScalingProfile withScalingSize(ControlPlaneScalingSize scalingSize) { + this.scalingSize = scalingSize; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (scalingSize() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property scalingSize in model ManagedClusterControlPlaneScalingProfile")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(ManagedClusterControlPlaneScalingProfile.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("scalingSize", this.scalingSize == null ? null : this.scalingSize.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ManagedClusterControlPlaneScalingProfile from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ManagedClusterControlPlaneScalingProfile 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 ManagedClusterControlPlaneScalingProfile. + */ + public static ManagedClusterControlPlaneScalingProfile fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ManagedClusterControlPlaneScalingProfile deserializedManagedClusterControlPlaneScalingProfile + = new ManagedClusterControlPlaneScalingProfile(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("scalingSize".equals(fieldName)) { + deserializedManagedClusterControlPlaneScalingProfile.scalingSize + = ControlPlaneScalingSize.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedManagedClusterControlPlaneScalingProfile; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterHealthMonitorProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterHealthMonitorProfile.java new file mode 100644 index 0000000000000..a4981a55eba55 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterHealthMonitorProfile.java @@ -0,0 +1,128 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * Health monitor profile for the managed cluster. + */ +@Fluent +public final class ManagedClusterHealthMonitorProfile implements JsonSerializable { + /* + * Whether to enable continuous control plane and addon monitor. + */ + private Boolean enableContinuousControlPlaneAndAddonMonitor; + + /* + * Whether to enable on-demand monitor. + */ + private Boolean enableOnDemandMonitor; + + /** + * Creates an instance of ManagedClusterHealthMonitorProfile class. + */ + public ManagedClusterHealthMonitorProfile() { + } + + /** + * Get the enableContinuousControlPlaneAndAddonMonitor property: Whether to enable continuous control plane and + * addon monitor. + * + * @return the enableContinuousControlPlaneAndAddonMonitor value. + */ + public Boolean enableContinuousControlPlaneAndAddonMonitor() { + return this.enableContinuousControlPlaneAndAddonMonitor; + } + + /** + * Set the enableContinuousControlPlaneAndAddonMonitor property: Whether to enable continuous control plane and + * addon monitor. + * + * @param enableContinuousControlPlaneAndAddonMonitor the enableContinuousControlPlaneAndAddonMonitor value to set. + * @return the ManagedClusterHealthMonitorProfile object itself. + */ + public ManagedClusterHealthMonitorProfile + withEnableContinuousControlPlaneAndAddonMonitor(Boolean enableContinuousControlPlaneAndAddonMonitor) { + this.enableContinuousControlPlaneAndAddonMonitor = enableContinuousControlPlaneAndAddonMonitor; + return this; + } + + /** + * Get the enableOnDemandMonitor property: Whether to enable on-demand monitor. + * + * @return the enableOnDemandMonitor value. + */ + public Boolean enableOnDemandMonitor() { + return this.enableOnDemandMonitor; + } + + /** + * Set the enableOnDemandMonitor property: Whether to enable on-demand monitor. + * + * @param enableOnDemandMonitor the enableOnDemandMonitor value to set. + * @return the ManagedClusterHealthMonitorProfile object itself. + */ + public ManagedClusterHealthMonitorProfile withEnableOnDemandMonitor(Boolean enableOnDemandMonitor) { + this.enableOnDemandMonitor = enableOnDemandMonitor; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeBooleanField("enableContinuousControlPlaneAndAddonMonitor", + this.enableContinuousControlPlaneAndAddonMonitor); + jsonWriter.writeBooleanField("enableOnDemandMonitor", this.enableOnDemandMonitor); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ManagedClusterHealthMonitorProfile from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ManagedClusterHealthMonitorProfile 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 ManagedClusterHealthMonitorProfile. + */ + public static ManagedClusterHealthMonitorProfile fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ManagedClusterHealthMonitorProfile deserializedManagedClusterHealthMonitorProfile + = new ManagedClusterHealthMonitorProfile(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("enableContinuousControlPlaneAndAddonMonitor".equals(fieldName)) { + deserializedManagedClusterHealthMonitorProfile.enableContinuousControlPlaneAndAddonMonitor + = reader.getNullable(JsonReader::getBoolean); + } else if ("enableOnDemandMonitor".equals(fieldName)) { + deserializedManagedClusterHealthMonitorProfile.enableOnDemandMonitor + = reader.getNullable(JsonReader::getBoolean); + } else { + reader.skipChildren(); + } + } + + return deserializedManagedClusterHealthMonitorProfile; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterHttpProxyConfig.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterHttpProxyConfig.java index aca96ac497949..796ed2329e1e1 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterHttpProxyConfig.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterHttpProxyConfig.java @@ -32,6 +32,12 @@ public final class ManagedClusterHttpProxyConfig implements JsonSerializable noProxy; + /* + * A read-only list of all endpoints for which traffic should not be sent to the proxy. This list is a superset of + * noProxy and values injected by AKS. + */ + private List effectiveNoProxy; + /* * Alternative CA cert to use for connecting to proxy servers. */ @@ -109,6 +115,16 @@ public ManagedClusterHttpProxyConfig withNoProxy(List noProxy) { return this; } + /** + * Get the effectiveNoProxy property: A read-only list of all endpoints for which traffic should not be sent to the + * proxy. This list is a superset of noProxy and values injected by AKS. + * + * @return the effectiveNoProxy value. + */ + public List effectiveNoProxy() { + return this.effectiveNoProxy; + } + /** * Get the trustedCa property: Alternative CA cert to use for connecting to proxy servers. * @@ -196,6 +212,9 @@ public static ManagedClusterHttpProxyConfig fromJson(JsonReader jsonReader) thro } else if ("noProxy".equals(fieldName)) { List noProxy = reader.readArray(reader1 -> reader1.getString()); deserializedManagedClusterHttpProxyConfig.noProxy = noProxy; + } else if ("effectiveNoProxy".equals(fieldName)) { + List effectiveNoProxy = reader.readArray(reader1 -> reader1.getString()); + deserializedManagedClusterHttpProxyConfig.effectiveNoProxy = effectiveNoProxy; } else if ("trustedCa".equals(fieldName)) { deserializedManagedClusterHttpProxyConfig.trustedCa = reader.getString(); } else if ("enabled".equals(fieldName)) { diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressDefaultDomainProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressDefaultDomainProfile.java new file mode 100644 index 0000000000000..02ee4a68be4f4 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressDefaultDomainProfile.java @@ -0,0 +1,114 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * Default domain profile for the managed cluster ingress profile. + */ +@Fluent +public final class ManagedClusterIngressDefaultDomainProfile + implements JsonSerializable { + /* + * Whether to enable Default Domain. + */ + private Boolean enabled; + + /* + * The unique fully qualified domain name assigned to the cluster. This will not change even if disabled then + * reenabled. + */ + private String domainName; + + /** + * Creates an instance of ManagedClusterIngressDefaultDomainProfile class. + */ + public ManagedClusterIngressDefaultDomainProfile() { + } + + /** + * Get the enabled property: Whether to enable Default Domain. + * + * @return the enabled value. + */ + public Boolean enabled() { + return this.enabled; + } + + /** + * Set the enabled property: Whether to enable Default Domain. + * + * @param enabled the enabled value to set. + * @return the ManagedClusterIngressDefaultDomainProfile object itself. + */ + public ManagedClusterIngressDefaultDomainProfile withEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Get the domainName property: The unique fully qualified domain name assigned to the cluster. This will not change + * even if disabled then reenabled. + * + * @return the domainName value. + */ + public String domainName() { + return this.domainName; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeBooleanField("enabled", this.enabled); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ManagedClusterIngressDefaultDomainProfile from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ManagedClusterIngressDefaultDomainProfile 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 ManagedClusterIngressDefaultDomainProfile. + */ + public static ManagedClusterIngressDefaultDomainProfile fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ManagedClusterIngressDefaultDomainProfile deserializedManagedClusterIngressDefaultDomainProfile + = new ManagedClusterIngressDefaultDomainProfile(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("enabled".equals(fieldName)) { + deserializedManagedClusterIngressDefaultDomainProfile.enabled + = reader.getNullable(JsonReader::getBoolean); + } else if ("domainName".equals(fieldName)) { + deserializedManagedClusterIngressDefaultDomainProfile.domainName = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedManagedClusterIngressDefaultDomainProfile; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressProfile.java index 63edb179b945a..383fdcb55412f 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressProfile.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressProfile.java @@ -27,6 +27,11 @@ public final class ManagedClusterIngressProfile implements JsonSerializable { + /* + * Whether to enable Application Load Balancer. + */ + private Boolean enabled; + + /* + * Managed identity of the Application Load Balancer add-on. This is the identity that should be granted permissions + * to manage the associated Application Gateway for Containers resource. + */ + private UserAssignedIdentity identity; + + /** + * Creates an instance of ManagedClusterIngressProfileApplicationLoadBalancer class. + */ + public ManagedClusterIngressProfileApplicationLoadBalancer() { + } + + /** + * Get the enabled property: Whether to enable Application Load Balancer. + * + * @return the enabled value. + */ + public Boolean enabled() { + return this.enabled; + } + + /** + * Set the enabled property: Whether to enable Application Load Balancer. + * + * @param enabled the enabled value to set. + * @return the ManagedClusterIngressProfileApplicationLoadBalancer object itself. + */ + public ManagedClusterIngressProfileApplicationLoadBalancer withEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Get the identity property: Managed identity of the Application Load Balancer add-on. This is the identity that + * should be granted permissions to manage the associated Application Gateway for Containers resource. + * + * @return the identity value. + */ + public UserAssignedIdentity identity() { + return this.identity; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (identity() != null) { + identity().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeBooleanField("enabled", this.enabled); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ManagedClusterIngressProfileApplicationLoadBalancer from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ManagedClusterIngressProfileApplicationLoadBalancer 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 ManagedClusterIngressProfileApplicationLoadBalancer. + */ + public static ManagedClusterIngressProfileApplicationLoadBalancer fromJson(JsonReader jsonReader) + throws IOException { + return jsonReader.readObject(reader -> { + ManagedClusterIngressProfileApplicationLoadBalancer deserializedManagedClusterIngressProfileApplicationLoadBalancer + = new ManagedClusterIngressProfileApplicationLoadBalancer(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("enabled".equals(fieldName)) { + deserializedManagedClusterIngressProfileApplicationLoadBalancer.enabled + = reader.getNullable(JsonReader::getBoolean); + } else if ("identity".equals(fieldName)) { + deserializedManagedClusterIngressProfileApplicationLoadBalancer.identity + = UserAssignedIdentity.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedManagedClusterIngressProfileApplicationLoadBalancer; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressProfileWebAppRouting.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressProfileWebAppRouting.java index 5be044dc901a5..1d85a2dfe24b6 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressProfileWebAppRouting.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressProfileWebAppRouting.java @@ -50,6 +50,13 @@ public final class ManagedClusterIngressProfileWebAppRouting */ private UserAssignedIdentity identity; + /* + * Configuration for the Default Domain. This is a unique, autogenerated domain that comes with a signed TLS + * Certificate allowing for secure HTTPS. See [the Default Domain documentation](https://aka.ms/aks/defaultdomain) + * for more instructions. + */ + private ManagedClusterIngressDefaultDomainProfile defaultDomain; + /** * Creates an instance of ManagedClusterIngressProfileWebAppRouting class. */ @@ -159,6 +166,31 @@ public UserAssignedIdentity identity() { return this.identity; } + /** + * Get the defaultDomain property: Configuration for the Default Domain. This is a unique, autogenerated domain that + * comes with a signed TLS Certificate allowing for secure HTTPS. See [the Default Domain + * documentation](https://aka.ms/aks/defaultdomain) for more instructions. + * + * @return the defaultDomain value. + */ + public ManagedClusterIngressDefaultDomainProfile defaultDomain() { + return this.defaultDomain; + } + + /** + * Set the defaultDomain property: Configuration for the Default Domain. This is a unique, autogenerated domain that + * comes with a signed TLS Certificate allowing for secure HTTPS. See [the Default Domain + * documentation](https://aka.ms/aks/defaultdomain) for more instructions. + * + * @param defaultDomain the defaultDomain value to set. + * @return the ManagedClusterIngressProfileWebAppRouting object itself. + */ + public ManagedClusterIngressProfileWebAppRouting + withDefaultDomain(ManagedClusterIngressDefaultDomainProfile defaultDomain) { + this.defaultDomain = defaultDomain; + return this; + } + /** * Validates the instance. * @@ -174,6 +206,9 @@ public void validate() { if (identity() != null) { identity().validate(); } + if (defaultDomain() != null) { + defaultDomain().validate(); + } } /** @@ -187,6 +222,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeArrayField("dnsZoneResourceIds", this.dnsZoneResourceIds, (writer, element) -> writer.writeString(element)); jsonWriter.writeJsonField("nginx", this.nginx); + jsonWriter.writeJsonField("defaultDomain", this.defaultDomain); return jsonWriter.writeEndObject(); } @@ -221,6 +257,9 @@ public static ManagedClusterIngressProfileWebAppRouting fromJson(JsonReader json } else if ("identity".equals(fieldName)) { deserializedManagedClusterIngressProfileWebAppRouting.identity = UserAssignedIdentity.fromJson(reader); + } else if ("defaultDomain".equals(fieldName)) { + deserializedManagedClusterIngressProfileWebAppRouting.defaultDomain + = ManagedClusterIngressDefaultDomainProfile.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterLoadBalancerProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterLoadBalancerProfile.java index 917a6232954ee..744e402a98dcf 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterLoadBalancerProfile.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterLoadBalancerProfile.java @@ -59,6 +59,11 @@ public final class ManagedClusterLoadBalancerProfile implements JsonSerializable */ private BackendPoolType backendPoolType; + /* + * The health probing behavior for External Traffic Policy Cluster services. + */ + private ClusterServiceLoadBalancerHealthProbeMode clusterServiceLoadBalancerHealthProbeMode; + /** * Creates an instance of ManagedClusterLoadBalancerProfile class. */ @@ -223,6 +228,29 @@ public ManagedClusterLoadBalancerProfile withBackendPoolType(BackendPoolType bac return this; } + /** + * Get the clusterServiceLoadBalancerHealthProbeMode property: The health probing behavior for External Traffic + * Policy Cluster services. + * + * @return the clusterServiceLoadBalancerHealthProbeMode value. + */ + public ClusterServiceLoadBalancerHealthProbeMode clusterServiceLoadBalancerHealthProbeMode() { + return this.clusterServiceLoadBalancerHealthProbeMode; + } + + /** + * Set the clusterServiceLoadBalancerHealthProbeMode property: The health probing behavior for External Traffic + * Policy Cluster services. + * + * @param clusterServiceLoadBalancerHealthProbeMode the clusterServiceLoadBalancerHealthProbeMode value to set. + * @return the ManagedClusterLoadBalancerProfile object itself. + */ + public ManagedClusterLoadBalancerProfile withClusterServiceLoadBalancerHealthProbeMode( + ClusterServiceLoadBalancerHealthProbeMode clusterServiceLoadBalancerHealthProbeMode) { + this.clusterServiceLoadBalancerHealthProbeMode = clusterServiceLoadBalancerHealthProbeMode; + return this; + } + /** * Validates the instance. * @@ -257,6 +285,10 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeBooleanField("enableMultipleStandardLoadBalancers", this.enableMultipleStandardLoadBalancers); jsonWriter.writeStringField("backendPoolType", this.backendPoolType == null ? null : this.backendPoolType.toString()); + jsonWriter.writeStringField("clusterServiceLoadBalancerHealthProbeMode", + this.clusterServiceLoadBalancerHealthProbeMode == null + ? null + : this.clusterServiceLoadBalancerHealthProbeMode.toString()); return jsonWriter.writeEndObject(); } @@ -301,6 +333,9 @@ public static ManagedClusterLoadBalancerProfile fromJson(JsonReader jsonReader) } else if ("backendPoolType".equals(fieldName)) { deserializedManagedClusterLoadBalancerProfile.backendPoolType = BackendPoolType.fromString(reader.getString()); + } else if ("clusterServiceLoadBalancerHealthProbeMode".equals(fieldName)) { + deserializedManagedClusterLoadBalancerProfile.clusterServiceLoadBalancerHealthProbeMode + = ClusterServiceLoadBalancerHealthProbeMode.fromString(reader.getString()); } else { reader.skipChildren(); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPodSnapshotProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPodSnapshotProfile.java new file mode 100644 index 0000000000000..4ba5d2d2934f1 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPodSnapshotProfile.java @@ -0,0 +1,94 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * The Pod Snapshot Restore profile for the managed cluster. + */ +@Fluent +public final class ManagedClusterPodSnapshotProfile implements JsonSerializable { + /* + * Whether the Pod Snapshot Restore core extension is enabled for the managed cluster. + */ + private Boolean enabled; + + /** + * Creates an instance of ManagedClusterPodSnapshotProfile class. + */ + public ManagedClusterPodSnapshotProfile() { + } + + /** + * Get the enabled property: Whether the Pod Snapshot Restore core extension is enabled for the managed cluster. + * + * @return the enabled value. + */ + public Boolean enabled() { + return this.enabled; + } + + /** + * Set the enabled property: Whether the Pod Snapshot Restore core extension is enabled for the managed cluster. + * + * @param enabled the enabled value to set. + * @return the ManagedClusterPodSnapshotProfile object itself. + */ + public ManagedClusterPodSnapshotProfile withEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeBooleanField("enabled", this.enabled); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ManagedClusterPodSnapshotProfile from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ManagedClusterPodSnapshotProfile 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 ManagedClusterPodSnapshotProfile. + */ + public static ManagedClusterPodSnapshotProfile fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ManagedClusterPodSnapshotProfile deserializedManagedClusterPodSnapshotProfile + = new ManagedClusterPodSnapshotProfile(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("enabled".equals(fieldName)) { + deserializedManagedClusterPodSnapshotProfile.enabled = reader.getNullable(JsonReader::getBoolean); + } else { + reader.skipChildren(); + } + } + + return deserializedManagedClusterPodSnapshotProfile; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPoolUpgradeProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPoolUpgradeProfile.java index 2fe55571ce539..1032f8cea2397 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPoolUpgradeProfile.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPoolUpgradeProfile.java @@ -38,6 +38,11 @@ public final class ManagedClusterPoolUpgradeProfile implements JsonSerializable< */ private List upgrades; + /* + * List of components grouped by kubernetes major.minor version. + */ + private List componentsByReleases; + /** * Creates an instance of ManagedClusterPoolUpgradeProfile class. */ @@ -80,6 +85,15 @@ public List upgrades() { return this.upgrades; } + /** + * Get the componentsByReleases property: List of components grouped by kubernetes major.minor version. + * + * @return the componentsByReleases value. + */ + public List componentsByReleases() { + return this.componentsByReleases; + } + /** * Validates the instance. * @@ -99,6 +113,9 @@ public void validate() { if (upgrades() != null) { upgrades().forEach(e -> e.validate()); } + if (componentsByReleases() != null) { + componentsByReleases().forEach(e -> e.validate()); + } } private static final ClientLogger LOGGER = new ClientLogger(ManagedClusterPoolUpgradeProfile.class); @@ -113,6 +130,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("osType", this.osType == null ? null : this.osType.toString()); jsonWriter.writeStringField("name", this.name); jsonWriter.writeArrayField("upgrades", this.upgrades, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeArrayField("componentsByReleases", this.componentsByReleases, + (writer, element) -> writer.writeJson(element)); return jsonWriter.writeEndObject(); } @@ -143,6 +162,10 @@ public static ManagedClusterPoolUpgradeProfile fromJson(JsonReader jsonReader) t List upgrades = reader.readArray(reader1 -> ManagedClusterPoolUpgradeProfileUpgradesItem.fromJson(reader1)); deserializedManagedClusterPoolUpgradeProfile.upgrades = upgrades; + } else if ("componentsByReleases".equals(fieldName)) { + List componentsByReleases + = reader.readArray(reader1 -> ComponentsByRelease.fromJson(reader1)); + deserializedManagedClusterPoolUpgradeProfile.componentsByReleases = componentsByReleases; } else { reader.skipChildren(); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPoolUpgradeProfileUpgradesItem.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPoolUpgradeProfileUpgradesItem.java index 8717467dc2aa2..07ce6b21b26cf 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPoolUpgradeProfileUpgradesItem.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPoolUpgradeProfileUpgradesItem.java @@ -27,6 +27,11 @@ public final class ManagedClusterPoolUpgradeProfileUpgradesItem */ private Boolean isPreview; + /* + * Whether the Kubernetes version is out of support. + */ + private Boolean isOutOfSupport; + /** * Creates an instance of ManagedClusterPoolUpgradeProfileUpgradesItem class. */ @@ -51,6 +56,15 @@ public Boolean isPreview() { return this.isPreview; } + /** + * Get the isOutOfSupport property: Whether the Kubernetes version is out of support. + * + * @return the isOutOfSupport value. + */ + public Boolean isOutOfSupport() { + return this.isOutOfSupport; + } + /** * Validates the instance. * @@ -67,6 +81,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("kubernetesVersion", this.kubernetesVersion); jsonWriter.writeBooleanField("isPreview", this.isPreview); + jsonWriter.writeBooleanField("isOutOfSupport", this.isOutOfSupport); return jsonWriter.writeEndObject(); } @@ -91,6 +106,9 @@ public static ManagedClusterPoolUpgradeProfileUpgradesItem fromJson(JsonReader j } else if ("isPreview".equals(fieldName)) { deserializedManagedClusterPoolUpgradeProfileUpgradesItem.isPreview = reader.getNullable(JsonReader::getBoolean); + } else if ("isOutOfSupport".equals(fieldName)) { + deserializedManagedClusterPoolUpgradeProfileUpgradesItem.isOutOfSupport + = reader.getNullable(JsonReader::getBoolean); } else { reader.skipChildren(); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPropertiesForSnapshot.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPropertiesForSnapshot.java new file mode 100644 index 0000000000000..8bb2f269c587e --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPropertiesForSnapshot.java @@ -0,0 +1,139 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * managed cluster properties for snapshot, these properties are read only. + */ +@Immutable +public final class ManagedClusterPropertiesForSnapshot + implements JsonSerializable { + /* + * The current kubernetes version. + */ + private String kubernetesVersion; + + /* + * The current managed cluster sku. + */ + private ManagedClusterSku sku; + + /* + * Whether the cluster has enabled Kubernetes Role-Based Access Control or not. + */ + private Boolean enableRbac; + + /* + * The current network profile. + */ + private NetworkProfileForSnapshot networkProfile; + + /** + * Creates an instance of ManagedClusterPropertiesForSnapshot class. + */ + private ManagedClusterPropertiesForSnapshot() { + } + + /** + * Get the kubernetesVersion property: The current kubernetes version. + * + * @return the kubernetesVersion value. + */ + public String kubernetesVersion() { + return this.kubernetesVersion; + } + + /** + * Get the sku property: The current managed cluster sku. + * + * @return the sku value. + */ + public ManagedClusterSku sku() { + return this.sku; + } + + /** + * Get the enableRbac property: Whether the cluster has enabled Kubernetes Role-Based Access Control or not. + * + * @return the enableRbac value. + */ + public Boolean enableRbac() { + return this.enableRbac; + } + + /** + * Get the networkProfile property: The current network profile. + * + * @return the networkProfile value. + */ + public NetworkProfileForSnapshot networkProfile() { + return this.networkProfile; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (sku() != null) { + sku().validate(); + } + if (networkProfile() != null) { + networkProfile().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ManagedClusterPropertiesForSnapshot from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ManagedClusterPropertiesForSnapshot 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 ManagedClusterPropertiesForSnapshot. + */ + public static ManagedClusterPropertiesForSnapshot fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ManagedClusterPropertiesForSnapshot deserializedManagedClusterPropertiesForSnapshot + = new ManagedClusterPropertiesForSnapshot(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("kubernetesVersion".equals(fieldName)) { + deserializedManagedClusterPropertiesForSnapshot.kubernetesVersion = reader.getString(); + } else if ("sku".equals(fieldName)) { + deserializedManagedClusterPropertiesForSnapshot.sku = ManagedClusterSku.fromJson(reader); + } else if ("enableRbac".equals(fieldName)) { + deserializedManagedClusterPropertiesForSnapshot.enableRbac + = reader.getNullable(JsonReader::getBoolean); + } else if ("networkProfile".equals(fieldName)) { + deserializedManagedClusterPropertiesForSnapshot.networkProfile + = NetworkProfileForSnapshot.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedManagedClusterPropertiesForSnapshot; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfile.java index 8810320b5af10..3be600dea0272 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfile.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfile.java @@ -45,6 +45,20 @@ public final class ManagedClusterSecurityProfile implements JsonSerializable customCATrustCertificates; + /* + * Defines service account based image pull settings. + */ + private ServiceAccountImagePullProfile serviceAccountImagePullProfile; + /** * Creates an instance of ManagedClusterSecurityProfile class. */ @@ -168,6 +187,56 @@ public ManagedClusterSecurityProfile withImageCleaner(ManagedClusterSecurityProf return this; } + /** + * Get the imageIntegrity property: Image integrity is a feature that works with Azure Policy to verify image + * integrity by signature. This will not have any effect unless Azure Policy is applied to enforce image signatures. + * See https://aka.ms/aks/image-integrity for how to use this feature via policy. + * + * @return the imageIntegrity value. + */ + public ManagedClusterSecurityProfileImageIntegrity imageIntegrity() { + return this.imageIntegrity; + } + + /** + * Set the imageIntegrity property: Image integrity is a feature that works with Azure Policy to verify image + * integrity by signature. This will not have any effect unless Azure Policy is applied to enforce image signatures. + * See https://aka.ms/aks/image-integrity for how to use this feature via policy. + * + * @param imageIntegrity the imageIntegrity value to set. + * @return the ManagedClusterSecurityProfile object itself. + */ + public ManagedClusterSecurityProfile + withImageIntegrity(ManagedClusterSecurityProfileImageIntegrity imageIntegrity) { + this.imageIntegrity = imageIntegrity; + return this; + } + + /** + * Get the nodeRestriction property: [Node + * Restriction](https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/#noderestriction) + * settings for the security profile. + * + * @return the nodeRestriction value. + */ + public ManagedClusterSecurityProfileNodeRestriction nodeRestriction() { + return this.nodeRestriction; + } + + /** + * Set the nodeRestriction property: [Node + * Restriction](https://kubernetes.io/docs/reference/access-authn-authz/admission-controllers/#noderestriction) + * settings for the security profile. + * + * @param nodeRestriction the nodeRestriction value to set. + * @return the ManagedClusterSecurityProfile object itself. + */ + public ManagedClusterSecurityProfile + withNodeRestriction(ManagedClusterSecurityProfileNodeRestriction nodeRestriction) { + this.nodeRestriction = nodeRestriction; + return this; + } + /** * Get the customCATrustCertificates property: A list of up to 10 base64 encoded CAs that will be added to the trust * store on all nodes in the cluster. For more information see [Custom CA Trust @@ -192,6 +261,27 @@ public ManagedClusterSecurityProfile withCustomCATrustCertificates(List return this; } + /** + * Get the serviceAccountImagePullProfile property: Defines service account based image pull settings. + * + * @return the serviceAccountImagePullProfile value. + */ + public ServiceAccountImagePullProfile serviceAccountImagePullProfile() { + return this.serviceAccountImagePullProfile; + } + + /** + * Set the serviceAccountImagePullProfile property: Defines service account based image pull settings. + * + * @param serviceAccountImagePullProfile the serviceAccountImagePullProfile value to set. + * @return the ManagedClusterSecurityProfile object itself. + */ + public ManagedClusterSecurityProfile + withServiceAccountImagePullProfile(ServiceAccountImagePullProfile serviceAccountImagePullProfile) { + this.serviceAccountImagePullProfile = serviceAccountImagePullProfile; + return this; + } + /** * Validates the instance. * @@ -213,6 +303,15 @@ public void validate() { if (imageCleaner() != null) { imageCleaner().validate(); } + if (imageIntegrity() != null) { + imageIntegrity().validate(); + } + if (nodeRestriction() != null) { + nodeRestriction().validate(); + } + if (serviceAccountImagePullProfile() != null) { + serviceAccountImagePullProfile().validate(); + } } /** @@ -227,8 +326,11 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { this.kubernetesResourceObjectEncryptionProfile); jsonWriter.writeJsonField("workloadIdentity", this.workloadIdentity); jsonWriter.writeJsonField("imageCleaner", this.imageCleaner); + jsonWriter.writeJsonField("imageIntegrity", this.imageIntegrity); + jsonWriter.writeJsonField("nodeRestriction", this.nodeRestriction); jsonWriter.writeArrayField("customCATrustCertificates", this.customCATrustCertificates, (writer, element) -> writer.writeBinary(element)); + jsonWriter.writeJsonField("serviceAccountImagePullProfile", this.serviceAccountImagePullProfile); return jsonWriter.writeEndObject(); } @@ -262,9 +364,18 @@ public static ManagedClusterSecurityProfile fromJson(JsonReader jsonReader) thro } else if ("imageCleaner".equals(fieldName)) { deserializedManagedClusterSecurityProfile.imageCleaner = ManagedClusterSecurityProfileImageCleaner.fromJson(reader); + } else if ("imageIntegrity".equals(fieldName)) { + deserializedManagedClusterSecurityProfile.imageIntegrity + = ManagedClusterSecurityProfileImageIntegrity.fromJson(reader); + } else if ("nodeRestriction".equals(fieldName)) { + deserializedManagedClusterSecurityProfile.nodeRestriction + = ManagedClusterSecurityProfileNodeRestriction.fromJson(reader); } else if ("customCATrustCertificates".equals(fieldName)) { List customCATrustCertificates = reader.readArray(reader1 -> reader1.getBinary()); deserializedManagedClusterSecurityProfile.customCATrustCertificates = customCATrustCertificates; + } else if ("serviceAccountImagePullProfile".equals(fieldName)) { + deserializedManagedClusterSecurityProfile.serviceAccountImagePullProfile + = ServiceAccountImagePullProfile.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileImageIntegrity.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileImageIntegrity.java new file mode 100644 index 0000000000000..a8564658218f1 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileImageIntegrity.java @@ -0,0 +1,96 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * Image integrity related settings for the security profile. + */ +@Fluent +public final class ManagedClusterSecurityProfileImageIntegrity + implements JsonSerializable { + /* + * Whether to enable image integrity. The default value is false. + */ + private Boolean enabled; + + /** + * Creates an instance of ManagedClusterSecurityProfileImageIntegrity class. + */ + public ManagedClusterSecurityProfileImageIntegrity() { + } + + /** + * Get the enabled property: Whether to enable image integrity. The default value is false. + * + * @return the enabled value. + */ + public Boolean enabled() { + return this.enabled; + } + + /** + * Set the enabled property: Whether to enable image integrity. The default value is false. + * + * @param enabled the enabled value to set. + * @return the ManagedClusterSecurityProfileImageIntegrity object itself. + */ + public ManagedClusterSecurityProfileImageIntegrity withEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeBooleanField("enabled", this.enabled); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ManagedClusterSecurityProfileImageIntegrity from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ManagedClusterSecurityProfileImageIntegrity 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 ManagedClusterSecurityProfileImageIntegrity. + */ + public static ManagedClusterSecurityProfileImageIntegrity fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ManagedClusterSecurityProfileImageIntegrity deserializedManagedClusterSecurityProfileImageIntegrity + = new ManagedClusterSecurityProfileImageIntegrity(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("enabled".equals(fieldName)) { + deserializedManagedClusterSecurityProfileImageIntegrity.enabled + = reader.getNullable(JsonReader::getBoolean); + } else { + reader.skipChildren(); + } + } + + return deserializedManagedClusterSecurityProfileImageIntegrity; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileNodeRestriction.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileNodeRestriction.java new file mode 100644 index 0000000000000..760149a2ed838 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileNodeRestriction.java @@ -0,0 +1,96 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * Node Restriction settings for the security profile. + */ +@Fluent +public final class ManagedClusterSecurityProfileNodeRestriction + implements JsonSerializable { + /* + * Whether to enable Node Restriction + */ + private Boolean enabled; + + /** + * Creates an instance of ManagedClusterSecurityProfileNodeRestriction class. + */ + public ManagedClusterSecurityProfileNodeRestriction() { + } + + /** + * Get the enabled property: Whether to enable Node Restriction. + * + * @return the enabled value. + */ + public Boolean enabled() { + return this.enabled; + } + + /** + * Set the enabled property: Whether to enable Node Restriction. + * + * @param enabled the enabled value to set. + * @return the ManagedClusterSecurityProfileNodeRestriction object itself. + */ + public ManagedClusterSecurityProfileNodeRestriction withEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeBooleanField("enabled", this.enabled); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ManagedClusterSecurityProfileNodeRestriction from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ManagedClusterSecurityProfileNodeRestriction 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 ManagedClusterSecurityProfileNodeRestriction. + */ + public static ManagedClusterSecurityProfileNodeRestriction fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ManagedClusterSecurityProfileNodeRestriction deserializedManagedClusterSecurityProfileNodeRestriction + = new ManagedClusterSecurityProfileNodeRestriction(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("enabled".equals(fieldName)) { + deserializedManagedClusterSecurityProfileNodeRestriction.enabled + = reader.getNullable(JsonReader::getBoolean); + } else { + reader.skipChildren(); + } + } + + return deserializedManagedClusterSecurityProfileNodeRestriction; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfileDiskCSIDriverQuickAttachDetach.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfileDiskCSIDriverQuickAttachDetach.java new file mode 100644 index 0000000000000..f34d356b5b77f --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfileDiskCSIDriverQuickAttachDetach.java @@ -0,0 +1,130 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * Quick Attach Detach settings for the AzureDisk CSI driver. + */ +@Fluent +public final class ManagedClusterStorageProfileDiskCSIDriverQuickAttachDetach + implements JsonSerializable { + /* + * Whether to enable Quick Attach Detach for the AzureDisk CSI driver. The default value is false. + */ + private Boolean enabled; + + /* + * Identity used by Quick Attach Detach. This property is returned by GET and cannot be set by clients. The Quick + * Attach Detach feature uses a managed identity that is automatically created and managed by the AKS resource + * provider. In most scenarios, no user action is required. An exception applies when using customer-managed disks + * that are located outside of the AKS node resource group (Bring Your Own Disk scenario). In this case, users must + * grant the Quick Attach Detach managed identity the required permissions on the resource group containing the + * disk. + */ + private UserAssignedIdentity identity; + + /** + * Creates an instance of ManagedClusterStorageProfileDiskCSIDriverQuickAttachDetach class. + */ + public ManagedClusterStorageProfileDiskCSIDriverQuickAttachDetach() { + } + + /** + * Get the enabled property: Whether to enable Quick Attach Detach for the AzureDisk CSI driver. The default value + * is false. + * + * @return the enabled value. + */ + public Boolean enabled() { + return this.enabled; + } + + /** + * Set the enabled property: Whether to enable Quick Attach Detach for the AzureDisk CSI driver. The default value + * is false. + * + * @param enabled the enabled value to set. + * @return the ManagedClusterStorageProfileDiskCSIDriverQuickAttachDetach object itself. + */ + public ManagedClusterStorageProfileDiskCSIDriverQuickAttachDetach withEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Get the identity property: Identity used by Quick Attach Detach. This property is returned by GET and cannot be + * set by clients. The Quick Attach Detach feature uses a managed identity that is automatically created and managed + * by the AKS resource provider. In most scenarios, no user action is required. An exception applies when using + * customer-managed disks that are located outside of the AKS node resource group (Bring Your Own Disk scenario). In + * this case, users must grant the Quick Attach Detach managed identity the required permissions on the resource + * group containing the disk. + * + * @return the identity value. + */ + public UserAssignedIdentity identity() { + return this.identity; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (identity() != null) { + identity().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeBooleanField("enabled", this.enabled); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ManagedClusterStorageProfileDiskCSIDriverQuickAttachDetach from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ManagedClusterStorageProfileDiskCSIDriverQuickAttachDetach 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 + * ManagedClusterStorageProfileDiskCSIDriverQuickAttachDetach. + */ + public static ManagedClusterStorageProfileDiskCSIDriverQuickAttachDetach fromJson(JsonReader jsonReader) + throws IOException { + return jsonReader.readObject(reader -> { + ManagedClusterStorageProfileDiskCSIDriverQuickAttachDetach deserializedManagedClusterStorageProfileDiskCSIDriverQuickAttachDetach + = new ManagedClusterStorageProfileDiskCSIDriverQuickAttachDetach(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("enabled".equals(fieldName)) { + deserializedManagedClusterStorageProfileDiskCSIDriverQuickAttachDetach.enabled + = reader.getNullable(JsonReader::getBoolean); + } else if ("identity".equals(fieldName)) { + deserializedManagedClusterStorageProfileDiskCSIDriverQuickAttachDetach.identity + = UserAssignedIdentity.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedManagedClusterStorageProfileDiskCSIDriverQuickAttachDetach; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfileDiskCsiDriver.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfileDiskCsiDriver.java index ac0063cf88eda..ec11b4a9f138c 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfileDiskCsiDriver.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfileDiskCsiDriver.java @@ -22,6 +22,13 @@ public final class ManagedClusterStorageProfileDiskCsiDriver */ private Boolean enabled; + /* + * Quick Attach Detach settings for the AzureDisk CSI driver. Quick Attach Detach enables faster, higher-scale Azure + * Disk attach and detach operations for stateful AKS workloads by bypassing ARM/CRP control-plane bottlenecks. For + * more information, see https://aka.ms/aks/qad. + */ + private ManagedClusterStorageProfileDiskCSIDriverQuickAttachDetach quickAttachDetach; + /** * Creates an instance of ManagedClusterStorageProfileDiskCsiDriver class. */ @@ -48,12 +55,40 @@ public ManagedClusterStorageProfileDiskCsiDriver withEnabled(Boolean enabled) { return this; } + /** + * Get the quickAttachDetach property: Quick Attach Detach settings for the AzureDisk CSI driver. Quick Attach + * Detach enables faster, higher-scale Azure Disk attach and detach operations for stateful AKS workloads by + * bypassing ARM/CRP control-plane bottlenecks. For more information, see https://aka.ms/aks/qad. + * + * @return the quickAttachDetach value. + */ + public ManagedClusterStorageProfileDiskCSIDriverQuickAttachDetach quickAttachDetach() { + return this.quickAttachDetach; + } + + /** + * Set the quickAttachDetach property: Quick Attach Detach settings for the AzureDisk CSI driver. Quick Attach + * Detach enables faster, higher-scale Azure Disk attach and detach operations for stateful AKS workloads by + * bypassing ARM/CRP control-plane bottlenecks. For more information, see https://aka.ms/aks/qad. + * + * @param quickAttachDetach the quickAttachDetach value to set. + * @return the ManagedClusterStorageProfileDiskCsiDriver object itself. + */ + public ManagedClusterStorageProfileDiskCsiDriver + withQuickAttachDetach(ManagedClusterStorageProfileDiskCSIDriverQuickAttachDetach quickAttachDetach) { + this.quickAttachDetach = quickAttachDetach; + return this; + } + /** * Validates the instance. * * @throws IllegalArgumentException thrown if the instance is not valid. */ public void validate() { + if (quickAttachDetach() != null) { + quickAttachDetach().validate(); + } } /** @@ -63,6 +98,7 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeBooleanField("enabled", this.enabled); + jsonWriter.writeJsonField("quickAttachDetach", this.quickAttachDetach); return jsonWriter.writeEndObject(); } @@ -85,6 +121,9 @@ public static ManagedClusterStorageProfileDiskCsiDriver fromJson(JsonReader json if ("enabled".equals(fieldName)) { deserializedManagedClusterStorageProfileDiskCsiDriver.enabled = reader.getNullable(JsonReader::getBoolean); + } else if ("quickAttachDetach".equals(fieldName)) { + deserializedManagedClusterStorageProfileDiskCsiDriver.quickAttachDetach + = ManagedClusterStorageProfileDiskCSIDriverQuickAttachDetach.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler.java index 437787a183577..0598abfa790f7 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler.java @@ -22,6 +22,11 @@ public final class ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler */ private boolean enabled; + /* + * Whether VPA add-on is enabled and configured to scale AKS-managed add-ons. + */ + private AddonAutoscaling addonAutoscaling; + /** * Creates an instance of ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler class. */ @@ -48,6 +53,27 @@ public ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler withEnabled( return this; } + /** + * Get the addonAutoscaling property: Whether VPA add-on is enabled and configured to scale AKS-managed add-ons. + * + * @return the addonAutoscaling value. + */ + public AddonAutoscaling addonAutoscaling() { + return this.addonAutoscaling; + } + + /** + * Set the addonAutoscaling property: Whether VPA add-on is enabled and configured to scale AKS-managed add-ons. + * + * @param addonAutoscaling the addonAutoscaling value to set. + * @return the ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler object itself. + */ + public ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler + withAddonAutoscaling(AddonAutoscaling addonAutoscaling) { + this.addonAutoscaling = addonAutoscaling; + return this; + } + /** * Validates the instance. * @@ -63,6 +89,8 @@ public void validate() { public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeBooleanField("enabled", this.enabled); + jsonWriter.writeStringField("addonAutoscaling", + this.addonAutoscaling == null ? null : this.addonAutoscaling.toString()); return jsonWriter.writeEndObject(); } @@ -88,6 +116,9 @@ public static ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler fromJ if ("enabled".equals(fieldName)) { deserializedManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler.enabled = reader.getBoolean(); + } else if ("addonAutoscaling".equals(fieldName)) { + deserializedManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler.addonAutoscaling + = AddonAutoscaling.fromString(reader.getString()); } else { reader.skipChildren(); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MeshMembershipPrivateConnectProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MeshMembershipPrivateConnectProfile.java new file mode 100644 index 0000000000000..3d3b502f541f3 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MeshMembershipPrivateConnectProfile.java @@ -0,0 +1,115 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * Private connect profile for mesh membership. + */ +@Fluent +public final class MeshMembershipPrivateConnectProfile + implements JsonSerializable { + /* + * The private IP address of the member cluster private FQDN. This is a read-only property populated by the service. + */ + private String privateIpAddress; + + /* + * The delegated subnet resource ID. Customer can provide their own subnet, or AKS will allocate one if not + * specified. When providing your own subnet, the minimum required size is /28 + */ + private String subnetResourceId; + + /** + * Creates an instance of MeshMembershipPrivateConnectProfile class. + */ + public MeshMembershipPrivateConnectProfile() { + } + + /** + * Get the privateIpAddress property: The private IP address of the member cluster private FQDN. This is a read-only + * property populated by the service. + * + * @return the privateIpAddress value. + */ + public String privateIpAddress() { + return this.privateIpAddress; + } + + /** + * Get the subnetResourceId property: The delegated subnet resource ID. Customer can provide their own subnet, or + * AKS will allocate one if not specified. When providing your own subnet, the minimum required size is /28. + * + * @return the subnetResourceId value. + */ + public String subnetResourceId() { + return this.subnetResourceId; + } + + /** + * Set the subnetResourceId property: The delegated subnet resource ID. Customer can provide their own subnet, or + * AKS will allocate one if not specified. When providing your own subnet, the minimum required size is /28. + * + * @param subnetResourceId the subnetResourceId value to set. + * @return the MeshMembershipPrivateConnectProfile object itself. + */ + public MeshMembershipPrivateConnectProfile withSubnetResourceId(String subnetResourceId) { + this.subnetResourceId = subnetResourceId; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("subnetResourceId", this.subnetResourceId); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MeshMembershipPrivateConnectProfile from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MeshMembershipPrivateConnectProfile 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 MeshMembershipPrivateConnectProfile. + */ + public static MeshMembershipPrivateConnectProfile fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MeshMembershipPrivateConnectProfile deserializedMeshMembershipPrivateConnectProfile + = new MeshMembershipPrivateConnectProfile(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("privateIpAddress".equals(fieldName)) { + deserializedMeshMembershipPrivateConnectProfile.privateIpAddress = reader.getString(); + } else if ("subnetResourceId".equals(fieldName)) { + deserializedMeshMembershipPrivateConnectProfile.subnetResourceId = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedMeshMembershipPrivateConnectProfile; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MeshMembershipProperties.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MeshMembershipProperties.java new file mode 100644 index 0000000000000..462dd0a25f375 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MeshMembershipProperties.java @@ -0,0 +1,164 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Mesh membership properties of a managed cluster. + */ +@Fluent +public final class MeshMembershipProperties implements JsonSerializable { + /* + * The current provisioning state of the Mesh Membership. + */ + private MeshMembershipProvisioningState provisioningState; + + /* + * Profile for configuring private connectivity between the mesh control plane and member clusters. When configured, + * communication between the mesh control plane and this member cluster occurs over private network instead of + * public networks. Visit https://aka.ms/applink for more information. + */ + private MeshMembershipPrivateConnectProfile privateConnectProfile; + + /* + * The ARM resource id for the managed mesh member. This is of the form: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppLink/applinks/{ + * appLinkName}/appLinkMembers/{appLinkMemberName}'. Visit https://aka.ms/applink for more information. + */ + private String managedMeshId; + + /** + * Creates an instance of MeshMembershipProperties class. + */ + public MeshMembershipProperties() { + } + + /** + * Get the provisioningState property: The current provisioning state of the Mesh Membership. + * + * @return the provisioningState value. + */ + public MeshMembershipProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Get the privateConnectProfile property: Profile for configuring private connectivity between the mesh control + * plane and member clusters. When configured, communication between the mesh control plane and this member cluster + * occurs over private network instead of public networks. Visit https://aka.ms/applink for more information. + * + * @return the privateConnectProfile value. + */ + public MeshMembershipPrivateConnectProfile privateConnectProfile() { + return this.privateConnectProfile; + } + + /** + * Set the privateConnectProfile property: Profile for configuring private connectivity between the mesh control + * plane and member clusters. When configured, communication between the mesh control plane and this member cluster + * occurs over private network instead of public networks. Visit https://aka.ms/applink for more information. + * + * @param privateConnectProfile the privateConnectProfile value to set. + * @return the MeshMembershipProperties object itself. + */ + public MeshMembershipProperties + withPrivateConnectProfile(MeshMembershipPrivateConnectProfile privateConnectProfile) { + this.privateConnectProfile = privateConnectProfile; + return this; + } + + /** + * Get the managedMeshId property: The ARM resource id for the managed mesh member. This is of the form: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppLink/applinks/{appLinkName}/appLinkMembers/{appLinkMemberName}'. + * Visit https://aka.ms/applink for more information. + * + * @return the managedMeshId value. + */ + public String managedMeshId() { + return this.managedMeshId; + } + + /** + * Set the managedMeshId property: The ARM resource id for the managed mesh member. This is of the form: + * '/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.AppLink/applinks/{appLinkName}/appLinkMembers/{appLinkMemberName}'. + * Visit https://aka.ms/applink for more information. + * + * @param managedMeshId the managedMeshId value to set. + * @return the MeshMembershipProperties object itself. + */ + public MeshMembershipProperties withManagedMeshId(String managedMeshId) { + this.managedMeshId = managedMeshId; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (privateConnectProfile() != null) { + privateConnectProfile().validate(); + } + if (managedMeshId() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property managedMeshId in model MeshMembershipProperties")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(MeshMembershipProperties.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("managedMeshID", this.managedMeshId); + jsonWriter.writeJsonField("privateConnectProfile", this.privateConnectProfile); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MeshMembershipProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MeshMembershipProperties 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 MeshMembershipProperties. + */ + public static MeshMembershipProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MeshMembershipProperties deserializedMeshMembershipProperties = new MeshMembershipProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("managedMeshID".equals(fieldName)) { + deserializedMeshMembershipProperties.managedMeshId = reader.getString(); + } else if ("provisioningState".equals(fieldName)) { + deserializedMeshMembershipProperties.provisioningState + = MeshMembershipProvisioningState.fromString(reader.getString()); + } else if ("privateConnectProfile".equals(fieldName)) { + deserializedMeshMembershipProperties.privateConnectProfile + = MeshMembershipPrivateConnectProfile.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedMeshMembershipProperties; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MeshMembershipProvisioningState.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MeshMembershipProvisioningState.java new file mode 100644 index 0000000000000..9f3800fba4dae --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MeshMembershipProvisioningState.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.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The provisioning state of the last accepted operation. + */ +public final class MeshMembershipProvisioningState extends ExpandableStringEnum { + /** + * Resource creation was canceled. + */ + public static final MeshMembershipProvisioningState CANCELED = fromString("Canceled"); + + /** + * The Mesh Membership is being created. + */ + public static final MeshMembershipProvisioningState CREATING = fromString("Creating"); + + /** + * The Mesh Membership is being deleted. + */ + public static final MeshMembershipProvisioningState DELETING = fromString("Deleting"); + + /** + * Resource creation failed. + */ + public static final MeshMembershipProvisioningState FAILED = fromString("Failed"); + + /** + * Resource has been created. + */ + public static final MeshMembershipProvisioningState SUCCEEDED = fromString("Succeeded"); + + /** + * The Mesh Membership is being updated. + */ + public static final MeshMembershipProvisioningState UPDATING = fromString("Updating"); + + /** + * Creates a new instance of MeshMembershipProvisioningState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public MeshMembershipProvisioningState() { + } + + /** + * Creates or finds a MeshMembershipProvisioningState from its string representation. + * + * @param name a name to look for. + * @return the corresponding MeshMembershipProvisioningState. + */ + public static MeshMembershipProvisioningState fromString(String name) { + return fromString(name, MeshMembershipProvisioningState.class); + } + + /** + * Gets known MeshMembershipProvisioningState values. + * + * @return known MeshMembershipProvisioningState values. + */ + public static Collection values() { + return values(MeshMembershipProvisioningState.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MigStrategy.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MigStrategy.java new file mode 100644 index 0000000000000..2c3caa57834ce --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/MigStrategy.java @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Sets the MIG (Multi-Instance GPU) strategy that will be used for managed MIG support. For more information about the + * different strategies, visit aka.ms/aks/managed-gpu. When not specified, the default is None. + */ +public final class MigStrategy extends ExpandableStringEnum { + /** + * No MIG partitioning is applied; the GPU is exposed as a single unified whole-device instance. Specifying this + * value removes any previously active MIG strategy. + */ + public static final MigStrategy NONE = fromString("None"); + + /** + * All MIG partitions on every GPU in the pool are the same size (`nvidia.com/mig.strategy: single`). The uniform + * partition size is controlled by `nvidia.migProfiles` (exactly one element required). + */ + public static final MigStrategy SINGLE = fromString("Single"); + + /** + * Each GPU in the pool can host heterogeneous partitions of different sizes simultaneously + * (`nvidia.com/mig.strategy: mixed`). The exact partition mix per GPU is declared via `nvidia.migProfiles`. + */ + public static final MigStrategy MIXED = fromString("Mixed"); + + /** + * Creates a new instance of MigStrategy value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public MigStrategy() { + } + + /** + * Creates or finds a MigStrategy from its string representation. + * + * @param name a name to look for. + * @return the corresponding MigStrategy. + */ + public static MigStrategy fromString(String name) { + return fromString(name, MigStrategy.class); + } + + /** + * Gets known MigStrategy values. + * + * @return known MigStrategy values. + */ + public static Collection values() { + return values(MigStrategy.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Mode.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Mode.java new file mode 100644 index 0000000000000..43ad5b9807f55 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Mode.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.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Specify which proxy mode to use ('IPTABLES', 'IPVS' or 'NFTABLES'). + */ +public final class Mode extends ExpandableStringEnum { + /** + * IPTables proxy mode. + */ + public static final Mode IPTABLES = fromString("IPTABLES"); + + /** + * IPVS proxy mode. Must be using Kubernetes version >= 1.22. + */ + public static final Mode IPVS = fromString("IPVS"); + + /** + * NFTables proxy mode. Must be using Kubernetes version >= 1.33. + */ + public static final Mode NFTABLES = fromString("NFTABLES"); + + /** + * Creates a new instance of Mode value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public Mode() { + } + + /** + * Creates or finds a Mode from its string representation. + * + * @param name a name to look for. + * @return the corresponding Mode. + */ + public static Mode fromString(String name) { + return fromString(name, Mode.class); + } + + /** + * Gets known Mode values. + * + * @return known Mode values. + */ + public static Collection values() { + return values(Mode.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NetworkProfileForSnapshot.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NetworkProfileForSnapshot.java new file mode 100644 index 0000000000000..30c82df6eaf3d --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NetworkProfileForSnapshot.java @@ -0,0 +1,154 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * network profile for managed cluster snapshot, these properties are read only. + */ +@Immutable +public final class NetworkProfileForSnapshot implements JsonSerializable { + /* + * networkPlugin for managed cluster snapshot. + */ + private NetworkPlugin networkPlugin; + + /* + * NetworkPluginMode for managed cluster snapshot. + */ + private NetworkPluginMode networkPluginMode; + + /* + * networkPolicy for managed cluster snapshot. + */ + private NetworkPolicy networkPolicy; + + /* + * networkMode for managed cluster snapshot. + */ + private NetworkMode networkMode; + + /* + * loadBalancerSku for managed cluster snapshot. + */ + private LoadBalancerSku loadBalancerSku; + + /** + * Creates an instance of NetworkProfileForSnapshot class. + */ + private NetworkProfileForSnapshot() { + } + + /** + * Get the networkPlugin property: networkPlugin for managed cluster snapshot. + * + * @return the networkPlugin value. + */ + public NetworkPlugin networkPlugin() { + return this.networkPlugin; + } + + /** + * Get the networkPluginMode property: NetworkPluginMode for managed cluster snapshot. + * + * @return the networkPluginMode value. + */ + public NetworkPluginMode networkPluginMode() { + return this.networkPluginMode; + } + + /** + * Get the networkPolicy property: networkPolicy for managed cluster snapshot. + * + * @return the networkPolicy value. + */ + public NetworkPolicy networkPolicy() { + return this.networkPolicy; + } + + /** + * Get the networkMode property: networkMode for managed cluster snapshot. + * + * @return the networkMode value. + */ + public NetworkMode networkMode() { + return this.networkMode; + } + + /** + * Get the loadBalancerSku property: loadBalancerSku for managed cluster snapshot. + * + * @return the loadBalancerSku value. + */ + public LoadBalancerSku loadBalancerSku() { + return this.loadBalancerSku; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("networkPlugin", this.networkPlugin == null ? null : this.networkPlugin.toString()); + jsonWriter.writeStringField("networkPluginMode", + this.networkPluginMode == null ? null : this.networkPluginMode.toString()); + jsonWriter.writeStringField("networkPolicy", this.networkPolicy == null ? null : this.networkPolicy.toString()); + jsonWriter.writeStringField("networkMode", this.networkMode == null ? null : this.networkMode.toString()); + jsonWriter.writeStringField("loadBalancerSku", + this.loadBalancerSku == null ? null : this.loadBalancerSku.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of NetworkProfileForSnapshot from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of NetworkProfileForSnapshot 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 NetworkProfileForSnapshot. + */ + public static NetworkProfileForSnapshot fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + NetworkProfileForSnapshot deserializedNetworkProfileForSnapshot = new NetworkProfileForSnapshot(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("networkPlugin".equals(fieldName)) { + deserializedNetworkProfileForSnapshot.networkPlugin = NetworkPlugin.fromString(reader.getString()); + } else if ("networkPluginMode".equals(fieldName)) { + deserializedNetworkProfileForSnapshot.networkPluginMode + = NetworkPluginMode.fromString(reader.getString()); + } else if ("networkPolicy".equals(fieldName)) { + deserializedNetworkProfileForSnapshot.networkPolicy = NetworkPolicy.fromString(reader.getString()); + } else if ("networkMode".equals(fieldName)) { + deserializedNetworkProfileForSnapshot.networkMode = NetworkMode.fromString(reader.getString()); + } else if ("loadBalancerSku".equals(fieldName)) { + deserializedNetworkProfileForSnapshot.loadBalancerSku + = LoadBalancerSku.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedNetworkProfileForSnapshot; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NodeDisruptionPolicy.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NodeDisruptionPolicy.java new file mode 100644 index 0000000000000..03280f76af59d --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NodeDisruptionPolicy.java @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The policy configuration for when to allow certain operations which require node re-image and trigger redeployment. + * For example, some operations, such as updating the + * .properties.ManagedClusterSecurityProfile.customCATrustCertificates field on an existing managed cluster, trigger + * rolling updates of the nodes. This setting allows control over when such updates are accepted. The default is + * 'Allow'. For a full list of covered operations see aka.ms/aks/nodedisruptionpolicy". + */ +public final class NodeDisruptionPolicy extends ExpandableStringEnum { + /** + * Allows operations that will require node re-image and trigger redeployment. + */ + public static final NodeDisruptionPolicy ALLOW = fromString("Allow"); + + /** + * Blocks certain operations that will require node re-image and trigger redeployment unless within the + * aksManagedNodeOSUpgradeSchedule maintenance window. For a full list of covered operations see + * aka.ms/aks/nodedisruptionpolicy . For more information on using the aksManagedNodeOSUpgradeSchedule maintenance + * window, please see https://learn.microsoft.com/azure/aks/planned-maintenance?tabs=azure-cli. + */ + public static final NodeDisruptionPolicy ALLOW_DURING_MAINTENANCE_WINDOW + = fromString("AllowDuringMaintenanceWindow"); + + /** + * Blocks certain operations that will require node re-image and trigger redeployment. For a full list of covered + * operations see aka.ms/aks/nodedisruptionpolicy. + */ + public static final NodeDisruptionPolicy BLOCK = fromString("Block"); + + /** + * Creates a new instance of NodeDisruptionPolicy value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public NodeDisruptionPolicy() { + } + + /** + * Creates or finds a NodeDisruptionPolicy from its string representation. + * + * @param name a name to look for. + * @return the corresponding NodeDisruptionPolicy. + */ + public static NodeDisruptionPolicy fromString(String name) { + return fromString(name, NodeDisruptionPolicy.class); + } + + /** + * Gets known NodeDisruptionPolicy values. + * + * @return known NodeDisruptionPolicy values. + */ + public static Collection values() { + return values(NodeDisruptionPolicy.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NodeDisruptionProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NodeDisruptionProfile.java new file mode 100644 index 0000000000000..2ac3eb9c2b886 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NodeDisruptionProfile.java @@ -0,0 +1,107 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * Node disruption profile for a managed cluster. + */ +@Fluent +public final class NodeDisruptionProfile implements JsonSerializable { + /* + * The policy configuration for when to allow certain operations which require node re-image and trigger + * redeployment. For example, some operations, such as updating the + * .properties.ManagedClusterSecurityProfile.customCATrustCertificates field on an existing managed cluster, trigger + * rolling updates of the nodes. This setting allows control over when such updates are accepted. The default is + * 'Allow'. For a full list of covered operations see aka.ms/aks/nodedisruptionpolicy". + */ + private NodeDisruptionPolicy nodeDisruptionPolicy; + + /** + * Creates an instance of NodeDisruptionProfile class. + */ + public NodeDisruptionProfile() { + } + + /** + * Get the nodeDisruptionPolicy property: The policy configuration for when to allow certain operations which + * require node re-image and trigger redeployment. For example, some operations, such as updating the + * .properties.ManagedClusterSecurityProfile.customCATrustCertificates field on an existing managed cluster, trigger + * rolling updates of the nodes. This setting allows control over when such updates are accepted. The default is + * 'Allow'. For a full list of covered operations see aka.ms/aks/nodedisruptionpolicy". + * + * @return the nodeDisruptionPolicy value. + */ + public NodeDisruptionPolicy nodeDisruptionPolicy() { + return this.nodeDisruptionPolicy; + } + + /** + * Set the nodeDisruptionPolicy property: The policy configuration for when to allow certain operations which + * require node re-image and trigger redeployment. For example, some operations, such as updating the + * .properties.ManagedClusterSecurityProfile.customCATrustCertificates field on an existing managed cluster, trigger + * rolling updates of the nodes. This setting allows control over when such updates are accepted. The default is + * 'Allow'. For a full list of covered operations see aka.ms/aks/nodedisruptionpolicy". + * + * @param nodeDisruptionPolicy the nodeDisruptionPolicy value to set. + * @return the NodeDisruptionProfile object itself. + */ + public NodeDisruptionProfile withNodeDisruptionPolicy(NodeDisruptionPolicy nodeDisruptionPolicy) { + this.nodeDisruptionPolicy = nodeDisruptionPolicy; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("nodeDisruptionPolicy", + this.nodeDisruptionPolicy == null ? null : this.nodeDisruptionPolicy.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of NodeDisruptionProfile from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of NodeDisruptionProfile 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 NodeDisruptionProfile. + */ + public static NodeDisruptionProfile fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + NodeDisruptionProfile deserializedNodeDisruptionProfile = new NodeDisruptionProfile(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nodeDisruptionPolicy".equals(fieldName)) { + deserializedNodeDisruptionProfile.nodeDisruptionPolicy + = NodeDisruptionPolicy.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedNodeDisruptionProfile; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NodeImageGenerateUpgradeInsightsContent.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NodeImageGenerateUpgradeInsightsContent.java new file mode 100644 index 0000000000000..74e6b0c6e1f34 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NodeImageGenerateUpgradeInsightsContent.java @@ -0,0 +1,156 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.logging.ClientLogger; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Request body to evaluate a single agent pool node OS image upgrade. + */ +@Fluent +public final class NodeImageGenerateUpgradeInsightsContent extends GenerateUpgradeInsightsContent { + /* + * The type of upgrade to evaluate. + */ + private UpgradeType upgradeType = UpgradeType.NODE_IMAGE; + + /* + * The name of the agent pool to evaluate. + */ + private String agentPoolName; + + /* + * The target node OS image version to evaluate. If omitted, the server resolves and evaluates the latest available + * node image. The resolved full version is always returned in the generated insight's read-only + * `targetNodeImageVersion` property. + */ + private String targetNodeImageVersion; + + /** + * Creates an instance of NodeImageGenerateUpgradeInsightsContent class. + */ + public NodeImageGenerateUpgradeInsightsContent() { + } + + /** + * Get the upgradeType property: The type of upgrade to evaluate. + * + * @return the upgradeType value. + */ + @Override + public UpgradeType upgradeType() { + return this.upgradeType; + } + + /** + * Get the agentPoolName property: The name of the agent pool to evaluate. + * + * @return the agentPoolName value. + */ + public String agentPoolName() { + return this.agentPoolName; + } + + /** + * Set the agentPoolName property: The name of the agent pool to evaluate. + * + * @param agentPoolName the agentPoolName value to set. + * @return the NodeImageGenerateUpgradeInsightsContent object itself. + */ + public NodeImageGenerateUpgradeInsightsContent withAgentPoolName(String agentPoolName) { + this.agentPoolName = agentPoolName; + return this; + } + + /** + * Get the targetNodeImageVersion property: The target node OS image version to evaluate. If omitted, the server + * resolves and evaluates the latest available node image. The resolved full version is always returned in the + * generated insight's read-only `targetNodeImageVersion` property. + * + * @return the targetNodeImageVersion value. + */ + public String targetNodeImageVersion() { + return this.targetNodeImageVersion; + } + + /** + * Set the targetNodeImageVersion property: The target node OS image version to evaluate. If omitted, the server + * resolves and evaluates the latest available node image. The resolved full version is always returned in the + * generated insight's read-only `targetNodeImageVersion` property. + * + * @param targetNodeImageVersion the targetNodeImageVersion value to set. + * @return the NodeImageGenerateUpgradeInsightsContent object itself. + */ + public NodeImageGenerateUpgradeInsightsContent withTargetNodeImageVersion(String targetNodeImageVersion) { + this.targetNodeImageVersion = targetNodeImageVersion; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + if (agentPoolName() == null) { + throw LOGGER.atError() + .log(new IllegalArgumentException( + "Missing required property agentPoolName in model NodeImageGenerateUpgradeInsightsContent")); + } + } + + private static final ClientLogger LOGGER = new ClientLogger(NodeImageGenerateUpgradeInsightsContent.class); + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("agentPoolName", this.agentPoolName); + jsonWriter.writeStringField("upgradeType", this.upgradeType == null ? null : this.upgradeType.toString()); + jsonWriter.writeStringField("targetNodeImageVersion", this.targetNodeImageVersion); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of NodeImageGenerateUpgradeInsightsContent from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of NodeImageGenerateUpgradeInsightsContent 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 NodeImageGenerateUpgradeInsightsContent. + */ + public static NodeImageGenerateUpgradeInsightsContent fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + NodeImageGenerateUpgradeInsightsContent deserializedNodeImageGenerateUpgradeInsightsContent + = new NodeImageGenerateUpgradeInsightsContent(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("agentPoolName".equals(fieldName)) { + deserializedNodeImageGenerateUpgradeInsightsContent.agentPoolName = reader.getString(); + } else if ("upgradeType".equals(fieldName)) { + deserializedNodeImageGenerateUpgradeInsightsContent.upgradeType + = UpgradeType.fromString(reader.getString()); + } else if ("targetNodeImageVersion".equals(fieldName)) { + deserializedNodeImageGenerateUpgradeInsightsContent.targetNodeImageVersion = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedNodeImageGenerateUpgradeInsightsContent; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NodeImageUpgradeInsightProperties.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NodeImageUpgradeInsightProperties.java new file mode 100644 index 0000000000000..b12635b8e2870 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NodeImageUpgradeInsightProperties.java @@ -0,0 +1,189 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Properties for a single agent pool node OS image upgrade insight. + */ +@Immutable +public final class NodeImageUpgradeInsightProperties extends UpgradeInsightProperties { + /* + * The type of upgrade this insight evaluates. Derived from the resource name. + */ + private UpgradeType upgradeType = UpgradeType.NODE_IMAGE; + + /* + * The name of the agent pool this insight applies to. + */ + private String agentPoolName; + + /* + * The node OS image version the agent pool was evaluated from (the upgrade source version it is currently running). + * Lets consumers read the result as "from X to targetNodeImageVersion" and detect a stale cached record by + * comparing against the live node image version. + */ + private String currentNodeImageVersion; + + /* + * The target node OS image version that was evaluated. + */ + private String targetNodeImageVersion; + + /* + * Contextual information about how this upgrade is managed, such as the upgrade strategy, next maintenance window, + * and last successful upgrade time. + */ + private UpgradeContext context; + + /* + * The evaluation result, including overall status, evaluation time, and any detected issues. + */ + private UpgradeInsightEvaluation evaluation; + + /** + * Creates an instance of NodeImageUpgradeInsightProperties class. + */ + private NodeImageUpgradeInsightProperties() { + } + + /** + * Get the upgradeType property: The type of upgrade this insight evaluates. Derived from the resource name. + * + * @return the upgradeType value. + */ + @Override + public UpgradeType upgradeType() { + return this.upgradeType; + } + + /** + * Get the agentPoolName property: The name of the agent pool this insight applies to. + * + * @return the agentPoolName value. + */ + public String agentPoolName() { + return this.agentPoolName; + } + + /** + * Get the currentNodeImageVersion property: The node OS image version the agent pool was evaluated from (the + * upgrade source version it is currently running). Lets consumers read the result as "from X to + * targetNodeImageVersion" and detect a stale cached record by comparing against the live node image version. + * + * @return the currentNodeImageVersion value. + */ + public String currentNodeImageVersion() { + return this.currentNodeImageVersion; + } + + /** + * Get the targetNodeImageVersion property: The target node OS image version that was evaluated. + * + * @return the targetNodeImageVersion value. + */ + public String targetNodeImageVersion() { + return this.targetNodeImageVersion; + } + + /** + * Get the context property: Contextual information about how this upgrade is managed, such as the upgrade strategy, + * next maintenance window, and last successful upgrade time. + * + * @return the context value. + */ + public UpgradeContext context() { + return this.context; + } + + /** + * Get the evaluation property: The evaluation result, including overall status, evaluation time, and any detected + * issues. + * + * @return the evaluation value. + */ + public UpgradeInsightEvaluation evaluation() { + return this.evaluation; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + @Override + public void validate() { + if (context() != null) { + context().validate(); + } + if (evaluation() != null) { + evaluation().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("upgradeType", this.upgradeType == null ? null : this.upgradeType.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of NodeImageUpgradeInsightProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of NodeImageUpgradeInsightProperties 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 NodeImageUpgradeInsightProperties. + */ + public static NodeImageUpgradeInsightProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + NodeImageUpgradeInsightProperties deserializedNodeImageUpgradeInsightProperties + = new NodeImageUpgradeInsightProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("provisioningState".equals(fieldName)) { + deserializedNodeImageUpgradeInsightProperties + .withProvisioningState(ResourceProvisioningState.fromString(reader.getString())); + } else if ("lastEvaluatedAt".equals(fieldName)) { + deserializedNodeImageUpgradeInsightProperties.withLastEvaluatedAt(reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()))); + } else if ("expiresAt".equals(fieldName)) { + deserializedNodeImageUpgradeInsightProperties.withExpiresAt(reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()))); + } else if ("upgradeType".equals(fieldName)) { + deserializedNodeImageUpgradeInsightProperties.upgradeType + = UpgradeType.fromString(reader.getString()); + } else if ("agentPoolName".equals(fieldName)) { + deserializedNodeImageUpgradeInsightProperties.agentPoolName = reader.getString(); + } else if ("currentNodeImageVersion".equals(fieldName)) { + deserializedNodeImageUpgradeInsightProperties.currentNodeImageVersion = reader.getString(); + } else if ("targetNodeImageVersion".equals(fieldName)) { + deserializedNodeImageUpgradeInsightProperties.targetNodeImageVersion = reader.getString(); + } else if ("context".equals(fieldName)) { + deserializedNodeImageUpgradeInsightProperties.context = UpgradeContext.fromJson(reader); + } else if ("evaluation".equals(fieldName)) { + deserializedNodeImageUpgradeInsightProperties.evaluation + = UpgradeInsightEvaluation.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedNodeImageUpgradeInsightProperties; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NvidiaDriverMode.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NvidiaDriverMode.java new file mode 100644 index 0000000000000..45edff67f4439 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NvidiaDriverMode.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * NVIDIA GPU resource allocation mode. + */ +public final class NvidiaDriverMode extends ExpandableStringEnum { + /** + * NVIDIA Kubernetes device plugin is installed on the nodes for resource allocation and scheduling. + */ + public static final NvidiaDriverMode DEVICE_PLUGIN = fromString("DevicePlugin"); + + /** + * NVIDIA Device Resource Allocation (DRA) driver is installed on the nodes for resource allocation and scheduling. + */ + public static final NvidiaDriverMode DRA = fromString("DRA"); + + /** + * Creates a new instance of NvidiaDriverMode value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public NvidiaDriverMode() { + } + + /** + * Creates or finds a NvidiaDriverMode from its string representation. + * + * @param name a name to look for. + * @return the corresponding NvidiaDriverMode. + */ + public static NvidiaDriverMode fromString(String name) { + return fromString(name, NvidiaDriverMode.class); + } + + /** + * Gets known NvidiaDriverMode values. + * + * @return known NvidiaDriverMode values. + */ + public static Collection values() { + return values(NvidiaDriverMode.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NvidiaGPUProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NvidiaGPUProfile.java index 709d404e35bae..edacaf2aa8732 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NvidiaGPUProfile.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/NvidiaGPUProfile.java @@ -10,6 +10,7 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import java.io.IOException; +import java.util.List; /** * NVIDIA-specific GPU settings. @@ -23,6 +24,29 @@ public final class NvidiaGPUProfile implements JsonSerializable migProfiles; + /** * Creates an instance of NvidiaGPUProfile class. */ @@ -53,6 +77,84 @@ public NvidiaGPUProfile withManagementMode(ManagementMode managementMode) { return this; } + /** + * Get the driverMode property: + * NVIDIA GPU resource allocation mode. DevicePlugin installs the NVIDIA + * Kubernetes device plugin. DRA installs the NVIDIA DRA driver. + * + * @return the driverMode value. + */ + public NvidiaDriverMode driverMode() { + return this.driverMode; + } + + /** + * Set the driverMode property: + * NVIDIA GPU resource allocation mode. DevicePlugin installs the NVIDIA + * Kubernetes device plugin. DRA installs the NVIDIA DRA driver. + * + * @param driverMode the driverMode value to set. + * @return the NvidiaGPUProfile object itself. + */ + public NvidiaGPUProfile withDriverMode(NvidiaDriverMode driverMode) { + this.driverMode = driverMode; + return this; + } + + /** + * Get the migStrategy property: Sets the MIG (Multi-Instance GPU) strategy that will be used for managed MIG + * support. For more information about the different strategies, visit aka.ms/aks/managed-gpu. When not specified, + * the default is None. + * + * @return the migStrategy value. + */ + public MigStrategy migStrategy() { + return this.migStrategy; + } + + /** + * Set the migStrategy property: Sets the MIG (Multi-Instance GPU) strategy that will be used for managed MIG + * support. For more information about the different strategies, visit aka.ms/aks/managed-gpu. When not specified, + * the default is None. + * + * @param migStrategy the migStrategy value to set. + * @return the NvidiaGPUProfile object itself. + */ + public NvidiaGPUProfile withMigStrategy(MigStrategy migStrategy) { + this.migStrategy = migStrategy; + return this; + } + + /** + * Get the migProfiles property: The ordered list of MIG (Multi-Instance GPU) partition profiles to assign to each + * supported NVIDIA GPU. When `migStrategy` is `Single`, exactly one profile must be specified. When `migStrategy` + * is `Mixed`, one or more profiles may be specified and the combination is validated against the supported MIG + * geometry for the agent pool's GPU VM size. The same value may appear more than once to request multiple + * partitions of that size. This field is mutually exclusive with the top-level `gpuInstanceProfile` property. For + * more information, see https://aka.ms/aks/managed-gpu. + * + * @return the migProfiles value. + */ + public List migProfiles() { + return this.migProfiles; + } + + /** + * Set the migProfiles property: The ordered list of MIG (Multi-Instance GPU) partition profiles to assign to each + * supported NVIDIA GPU. When `migStrategy` is `Single`, exactly one profile must be specified. When `migStrategy` + * is `Mixed`, one or more profiles may be specified and the combination is validated against the supported MIG + * geometry for the agent pool's GPU VM size. The same value may appear more than once to request multiple + * partitions of that size. This field is mutually exclusive with the top-level `gpuInstanceProfile` property. For + * more information, see https://aka.ms/aks/managed-gpu. + * + * @param migProfiles the migProfiles value to set. + * @return the NvidiaGPUProfile object itself. + */ + public NvidiaGPUProfile withMigProfiles(List migProfiles) { + this.migProfiles = migProfiles; + return this; + } + /** * Validates the instance. * @@ -69,6 +171,10 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeStringField("managementMode", this.managementMode == null ? null : this.managementMode.toString()); + jsonWriter.writeStringField("driverMode", this.driverMode == null ? null : this.driverMode.toString()); + jsonWriter.writeStringField("migStrategy", this.migStrategy == null ? null : this.migStrategy.toString()); + jsonWriter.writeArrayField("migProfiles", this.migProfiles, + (writer, element) -> writer.writeString(element == null ? null : element.toString())); return jsonWriter.writeEndObject(); } @@ -89,6 +195,14 @@ public static NvidiaGPUProfile fromJson(JsonReader jsonReader) throws IOExceptio if ("managementMode".equals(fieldName)) { deserializedNvidiaGPUProfile.managementMode = ManagementMode.fromString(reader.getString()); + } else if ("driverMode".equals(fieldName)) { + deserializedNvidiaGPUProfile.driverMode = NvidiaDriverMode.fromString(reader.getString()); + } else if ("migStrategy".equals(fieldName)) { + deserializedNvidiaGPUProfile.migStrategy = MigStrategy.fromString(reader.getString()); + } else if ("migProfiles".equals(fieldName)) { + List migProfiles + = reader.readArray(reader1 -> GpuInstanceProfile.fromString(reader1.getString())); + deserializedNvidiaGPUProfile.migProfiles = migProfiles; } else { reader.skipChildren(); } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OSSku.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OSSku.java index 6d34285a2799a..e3515f7764cbb 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OSSku.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/OSSku.java @@ -30,6 +30,18 @@ public final class OSSku extends ExpandableStringEnum { */ public static final OSSku AZURE_LINUX3 = fromString("AzureLinux3"); + /** + * Deprecated OSSKU. Microsoft recommends that new deployments choose 'AzureLinux' instead. + */ + public static final OSSku MARINER = fromString("Mariner"); + + /** + * Use Flatcar Container Linux as the OS for node images. Flatcar is a container-optimized, security-focused Linux + * OS, with an immutable filesystem and part of the Cloud Native Computing Foundation (CNCF). For more information + * about Flatcar Container Linux for AKS, see aka.ms/aks/flatcar-container-linux-for-aks. + */ + public static final OSSku FLATCAR = fromString("Flatcar"); + /** * Deprecated OSSKU. Microsoft recommends that new deployments choose 'AzureLinux' instead. */ @@ -59,6 +71,13 @@ public final class OSSku extends ExpandableStringEnum { */ public static final OSSku WINDOWS2025 = fromString("Windows2025"); + /** + * Use Windows Annual Channel version as the OS for node images. Unsupported for system node pools. Details about + * supported container images and kubernetes versions under different AKS Annual Channel versions could be seen in + * https://aka.ms/aks/windows-annual-channel-details. + */ + public static final OSSku WINDOWS_ANNUAL = fromString("WindowsAnnual"); + /** * Use Ubuntu2404 as the OS for node images, however, Ubuntu 24.04 may not be supported for all nodepools. For * limitations and supported kubernetes versions, see see https://aka.ms/aks/supported-ubuntu-versions. @@ -74,6 +93,12 @@ public final class OSSku extends ExpandableStringEnum { */ public static final OSSku AZURE_CONTAINER_LINUX = fromString("AzureContainerLinux"); + /** + * Use Ubuntu2604 as the OS for node images. For limitations and supported Kubernetes versions, see + * https://aka.ms/aks/supported-ubuntu-versions. + */ + public static final OSSku UBUNTU2604 = fromString("Ubuntu2604"); + /** * Creates a new instance of OSSku value. * diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Operator.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Operator.java new file mode 100644 index 0000000000000..3047f879b8a96 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/Operator.java @@ -0,0 +1,61 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * operator represents a key's relationship to a set of values. Valid operators are In and NotIn. + */ +public final class Operator extends ExpandableStringEnum { + /** + * The value of the key should be in the given list. + */ + public static final Operator IN = fromString("In"); + + /** + * The value of the key should not be in the given list. + */ + public static final Operator NOT_IN = fromString("NotIn"); + + /** + * The value of the key should exist. + */ + public static final Operator EXISTS = fromString("Exists"); + + /** + * The value of the key should not exist. + */ + public static final Operator DOES_NOT_EXIST = fromString("DoesNotExist"); + + /** + * Creates a new instance of Operator value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public Operator() { + } + + /** + * Creates or finds a Operator from its string representation. + * + * @param name a name to look for. + * @return the corresponding Operator. + */ + public static Operator fromString(String name) { + return fromString(name, Operator.class); + } + + /** + * Gets known Operator values. + * + * @return known Operator values. + */ + public static Collection values() { + return values(Operator.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/PodLinkLocalAccess.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/PodLinkLocalAccess.java new file mode 100644 index 0000000000000..967e4f295d886 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/PodLinkLocalAccess.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Defines access to special link local addresses (Azure Instance Metadata Service, aka IMDS) for pods with + * hostNetwork=false. If not specified, the default is 'IMDS'. + */ +public final class PodLinkLocalAccess extends ExpandableStringEnum { + /** + * Pods with hostNetwork=false can access Azure Instance Metadata Service (IMDS) without restriction. + */ + public static final PodLinkLocalAccess IMDS = fromString("IMDS"); + + /** + * Pods with hostNetwork=false cannot access Azure Instance Metadata Service (IMDS). + */ + public static final PodLinkLocalAccess NONE = fromString("None"); + + /** + * Creates a new instance of PodLinkLocalAccess value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public PodLinkLocalAccess() { + } + + /** + * Creates or finds a PodLinkLocalAccess from its string representation. + * + * @param name a name to look for. + * @return the corresponding PodLinkLocalAccess. + */ + public static PodLinkLocalAccess fromString(String name) { + return fromString(name, PodLinkLocalAccess.class); + } + + /** + * Gets known PodLinkLocalAccess values. + * + * @return known PodLinkLocalAccess values. + */ + public static Collection values() { + return values(PodLinkLocalAccess.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/PreparedImageSpecificationProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/PreparedImageSpecificationProfile.java new file mode 100644 index 0000000000000..eb767c7fb0d28 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/PreparedImageSpecificationProfile.java @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * Settings to determine the prepared image specification used to provision nodes in a pool. + */ +@Fluent +public final class PreparedImageSpecificationProfile implements JsonSerializable { + /* + * The resource ID of the prepared image specification resource to use. This can include a version. Omitting the + * version will use the latest version of the prepared image specification. + */ + private String preparedImageSpecificationId; + + /** + * Creates an instance of PreparedImageSpecificationProfile class. + */ + public PreparedImageSpecificationProfile() { + } + + /** + * Get the preparedImageSpecificationId property: The resource ID of the prepared image specification resource to + * use. This can include a version. Omitting the version will use the latest version of the prepared image + * specification. + * + * @return the preparedImageSpecificationId value. + */ + public String preparedImageSpecificationId() { + return this.preparedImageSpecificationId; + } + + /** + * Set the preparedImageSpecificationId property: The resource ID of the prepared image specification resource to + * use. This can include a version. Omitting the version will use the latest version of the prepared image + * specification. + * + * @param preparedImageSpecificationId the preparedImageSpecificationId value to set. + * @return the PreparedImageSpecificationProfile object itself. + */ + public PreparedImageSpecificationProfile withPreparedImageSpecificationId(String preparedImageSpecificationId) { + this.preparedImageSpecificationId = preparedImageSpecificationId; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("preparedImageSpecificationId", this.preparedImageSpecificationId); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PreparedImageSpecificationProfile from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PreparedImageSpecificationProfile 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 PreparedImageSpecificationProfile. + */ + public static PreparedImageSpecificationProfile fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PreparedImageSpecificationProfile deserializedPreparedImageSpecificationProfile + = new PreparedImageSpecificationProfile(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("preparedImageSpecificationId".equals(fieldName)) { + deserializedPreparedImageSpecificationProfile.preparedImageSpecificationId = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedPreparedImageSpecificationProfile; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/PublicNetworkAccess.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/PublicNetworkAccess.java index d0f973ce23928..66424d6a749ee 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/PublicNetworkAccess.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/PublicNetworkAccess.java @@ -21,6 +21,11 @@ public final class PublicNetworkAccess extends ExpandableStringEnum { + /* + * The load balancer names list. + */ + private List loadBalancerNames; + + /** + * Creates an instance of RebalanceLoadBalancersRequestBody class. + */ + public RebalanceLoadBalancersRequestBody() { + } + + /** + * Get the loadBalancerNames property: The load balancer names list. + * + * @return the loadBalancerNames value. + */ + public List loadBalancerNames() { + return this.loadBalancerNames; + } + + /** + * Set the loadBalancerNames property: The load balancer names list. + * + * @param loadBalancerNames the loadBalancerNames value to set. + * @return the RebalanceLoadBalancersRequestBody object itself. + */ + public RebalanceLoadBalancersRequestBody withLoadBalancerNames(List loadBalancerNames) { + this.loadBalancerNames = loadBalancerNames; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("loadBalancerNames", this.loadBalancerNames, + (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RebalanceLoadBalancersRequestBody from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RebalanceLoadBalancersRequestBody 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 RebalanceLoadBalancersRequestBody. + */ + public static RebalanceLoadBalancersRequestBody fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RebalanceLoadBalancersRequestBody deserializedRebalanceLoadBalancersRequestBody + = new RebalanceLoadBalancersRequestBody(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("loadBalancerNames".equals(fieldName)) { + List loadBalancerNames = reader.readArray(reader1 -> reader1.getString()); + deserializedRebalanceLoadBalancersRequestBody.loadBalancerNames = loadBalancerNames; + } else { + reader.skipChildren(); + } + } + + return deserializedRebalanceLoadBalancersRequestBody; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceProvisioningState.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceProvisioningState.java new file mode 100644 index 0000000000000..cb671d7dc9115 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceProvisioningState.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.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The provisioning state of a resource type. + */ +public final class ResourceProvisioningState extends ExpandableStringEnum { + /** + * Resource has been created. + */ + public static final ResourceProvisioningState SUCCEEDED = fromString("Succeeded"); + + /** + * Resource creation failed. + */ + public static final ResourceProvisioningState FAILED = fromString("Failed"); + + /** + * Resource creation was canceled. + */ + public static final ResourceProvisioningState CANCELED = fromString("Canceled"); + + /** + * Creates a new instance of ResourceProvisioningState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ResourceProvisioningState() { + } + + /** + * Creates or finds a ResourceProvisioningState from its string representation. + * + * @param name a name to look for. + * @return the corresponding ResourceProvisioningState. + */ + public static ResourceProvisioningState fromString(String name) { + return fromString(name, ResourceProvisioningState.class); + } + + /** + * Gets known ResourceProvisioningState values. + * + * @return known ResourceProvisioningState values. + */ + public static Collection values() { + return values(ResourceProvisioningState.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuCapabilities.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuCapabilities.java new file mode 100644 index 0000000000000..9aed2b186f7b0 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuCapabilities.java @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Describes The SKU capabilities object. + */ +@Immutable +public final class ResourceSkuCapabilities implements JsonSerializable { + /* + * An invariant to describe the feature. + */ + private String name; + + /* + * An invariant if the feature is measured by quantity. + */ + private String value; + + /** + * Creates an instance of ResourceSkuCapabilities class. + */ + private ResourceSkuCapabilities() { + } + + /** + * Get the name property: An invariant to describe the feature. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Get the value property: An invariant if the feature is measured by quantity. + * + * @return the value value. + */ + public String value() { + return this.value; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ResourceSkuCapabilities from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ResourceSkuCapabilities 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 ResourceSkuCapabilities. + */ + public static ResourceSkuCapabilities fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ResourceSkuCapabilities deserializedResourceSkuCapabilities = new ResourceSkuCapabilities(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + deserializedResourceSkuCapabilities.name = reader.getString(); + } else if ("value".equals(fieldName)) { + deserializedResourceSkuCapabilities.value = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedResourceSkuCapabilities; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuCapacity.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuCapacity.java new file mode 100644 index 0000000000000..d59f328fc9124 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuCapacity.java @@ -0,0 +1,130 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Describes scaling information of a SKU. + */ +@Immutable +public final class ResourceSkuCapacity implements JsonSerializable { + /* + * The minimum capacity. + */ + private Long minimum; + + /* + * The maximum capacity that can be set. + */ + private Long maximum; + + /* + * The default capacity. + */ + private Long defaultProperty; + + /* + * The scale type applicable to the sku. + */ + private ResourceSkuCapacityScaleType scaleType; + + /** + * Creates an instance of ResourceSkuCapacity class. + */ + private ResourceSkuCapacity() { + } + + /** + * Get the minimum property: The minimum capacity. + * + * @return the minimum value. + */ + public Long minimum() { + return this.minimum; + } + + /** + * Get the maximum property: The maximum capacity that can be set. + * + * @return the maximum value. + */ + public Long maximum() { + return this.maximum; + } + + /** + * Get the defaultProperty property: The default capacity. + * + * @return the defaultProperty value. + */ + public Long defaultProperty() { + return this.defaultProperty; + } + + /** + * Get the scaleType property: The scale type applicable to the sku. + * + * @return the scaleType value. + */ + public ResourceSkuCapacityScaleType scaleType() { + return this.scaleType; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ResourceSkuCapacity from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ResourceSkuCapacity 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 ResourceSkuCapacity. + */ + public static ResourceSkuCapacity fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ResourceSkuCapacity deserializedResourceSkuCapacity = new ResourceSkuCapacity(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("minimum".equals(fieldName)) { + deserializedResourceSkuCapacity.minimum = reader.getNullable(JsonReader::getLong); + } else if ("maximum".equals(fieldName)) { + deserializedResourceSkuCapacity.maximum = reader.getNullable(JsonReader::getLong); + } else if ("default".equals(fieldName)) { + deserializedResourceSkuCapacity.defaultProperty = reader.getNullable(JsonReader::getLong); + } else if ("scaleType".equals(fieldName)) { + deserializedResourceSkuCapacity.scaleType + = ResourceSkuCapacityScaleType.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedResourceSkuCapacity; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuCapacityScaleType.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuCapacityScaleType.java new file mode 100644 index 0000000000000..1c7aea85d9288 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuCapacityScaleType.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.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The scale type applicable to the sku. + */ +public final class ResourceSkuCapacityScaleType extends ExpandableStringEnum { + /** + * Automatic scaling. + */ + public static final ResourceSkuCapacityScaleType AUTOMATIC = fromString("Automatic"); + + /** + * Manual scaling. + */ + public static final ResourceSkuCapacityScaleType MANUAL = fromString("Manual"); + + /** + * No scaling. + */ + public static final ResourceSkuCapacityScaleType NONE = fromString("None"); + + /** + * Creates a new instance of ResourceSkuCapacityScaleType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ResourceSkuCapacityScaleType() { + } + + /** + * Creates or finds a ResourceSkuCapacityScaleType from its string representation. + * + * @param name a name to look for. + * @return the corresponding ResourceSkuCapacityScaleType. + */ + public static ResourceSkuCapacityScaleType fromString(String name) { + return fromString(name, ResourceSkuCapacityScaleType.class); + } + + /** + * Gets known ResourceSkuCapacityScaleType values. + * + * @return known ResourceSkuCapacityScaleType values. + */ + public static Collection values() { + return values(ResourceSkuCapacityScaleType.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuCosts.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuCosts.java new file mode 100644 index 0000000000000..069e612cbbafb --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuCosts.java @@ -0,0 +1,113 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Describes metadata for retrieving price info. + */ +@Immutable +public final class ResourceSkuCosts implements JsonSerializable { + /* + * Used for querying price from commerce. + */ + private String meterId; + + /* + * The multiplier is needed to extend the base metered cost. + */ + private Long quantity; + + /* + * An invariant to show the extended unit. + */ + private String extendedUnit; + + /** + * Creates an instance of ResourceSkuCosts class. + */ + private ResourceSkuCosts() { + } + + /** + * Get the meterId property: Used for querying price from commerce. + * + * @return the meterId value. + */ + public String meterId() { + return this.meterId; + } + + /** + * Get the quantity property: The multiplier is needed to extend the base metered cost. + * + * @return the quantity value. + */ + public Long quantity() { + return this.quantity; + } + + /** + * Get the extendedUnit property: An invariant to show the extended unit. + * + * @return the extendedUnit value. + */ + public String extendedUnit() { + return this.extendedUnit; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ResourceSkuCosts from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ResourceSkuCosts 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 ResourceSkuCosts. + */ + public static ResourceSkuCosts fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ResourceSkuCosts deserializedResourceSkuCosts = new ResourceSkuCosts(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("meterID".equals(fieldName)) { + deserializedResourceSkuCosts.meterId = reader.getString(); + } else if ("quantity".equals(fieldName)) { + deserializedResourceSkuCosts.quantity = reader.getNullable(JsonReader::getLong); + } else if ("extendedUnit".equals(fieldName)) { + deserializedResourceSkuCosts.extendedUnit = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedResourceSkuCosts; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuLocationInfo.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuLocationInfo.java new file mode 100644 index 0000000000000..e69981ec167b8 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuLocationInfo.java @@ -0,0 +1,153 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Describes an available Compute SKU Location Information. + */ +@Immutable +public final class ResourceSkuLocationInfo implements JsonSerializable { + /* + * Location of the SKU + */ + private String location; + + /* + * List of availability zones where the SKU is supported. + */ + private List zones; + + /* + * Details of capabilities available to a SKU in specific zones. + */ + private List zoneDetails; + + /* + * The names of extended locations. + */ + private List extendedLocations; + + /* + * The type of the extended location. + */ + private ExtendedLocationTypes type; + + /** + * Creates an instance of ResourceSkuLocationInfo class. + */ + private ResourceSkuLocationInfo() { + } + + /** + * Get the location property: Location of the SKU. + * + * @return the location value. + */ + public String location() { + return this.location; + } + + /** + * Get the zones property: List of availability zones where the SKU is supported. + * + * @return the zones value. + */ + public List zones() { + return this.zones; + } + + /** + * Get the zoneDetails property: Details of capabilities available to a SKU in specific zones. + * + * @return the zoneDetails value. + */ + public List zoneDetails() { + return this.zoneDetails; + } + + /** + * Get the extendedLocations property: The names of extended locations. + * + * @return the extendedLocations value. + */ + public List extendedLocations() { + return this.extendedLocations; + } + + /** + * Get the type property: The type of the extended location. + * + * @return the type value. + */ + public ExtendedLocationTypes type() { + return this.type; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (zoneDetails() != null) { + zoneDetails().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ResourceSkuLocationInfo from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ResourceSkuLocationInfo 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 ResourceSkuLocationInfo. + */ + public static ResourceSkuLocationInfo fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ResourceSkuLocationInfo deserializedResourceSkuLocationInfo = new ResourceSkuLocationInfo(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("location".equals(fieldName)) { + deserializedResourceSkuLocationInfo.location = reader.getString(); + } else if ("zones".equals(fieldName)) { + List zones = reader.readArray(reader1 -> reader1.getString()); + deserializedResourceSkuLocationInfo.zones = zones; + } else if ("zoneDetails".equals(fieldName)) { + List zoneDetails + = reader.readArray(reader1 -> ResourceSkuZoneDetails.fromJson(reader1)); + deserializedResourceSkuLocationInfo.zoneDetails = zoneDetails; + } else if ("extendedLocations".equals(fieldName)) { + List extendedLocations = reader.readArray(reader1 -> reader1.getString()); + deserializedResourceSkuLocationInfo.extendedLocations = extendedLocations; + } else if ("type".equals(fieldName)) { + deserializedResourceSkuLocationInfo.type = ExtendedLocationTypes.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedResourceSkuLocationInfo; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuRestrictionInfo.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuRestrictionInfo.java new file mode 100644 index 0000000000000..601f679be3d79 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuRestrictionInfo.java @@ -0,0 +1,100 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Describes an available Compute SKU Restriction Information. + */ +@Immutable +public final class ResourceSkuRestrictionInfo implements JsonSerializable { + /* + * Locations where the SKU is restricted + */ + private List locations; + + /* + * List of availability zones where the SKU is restricted. + */ + private List zones; + + /** + * Creates an instance of ResourceSkuRestrictionInfo class. + */ + private ResourceSkuRestrictionInfo() { + } + + /** + * Get the locations property: Locations where the SKU is restricted. + * + * @return the locations value. + */ + public List locations() { + return this.locations; + } + + /** + * Get the zones property: List of availability zones where the SKU is restricted. + * + * @return the zones value. + */ + public List zones() { + return this.zones; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ResourceSkuRestrictionInfo from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ResourceSkuRestrictionInfo 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 ResourceSkuRestrictionInfo. + */ + public static ResourceSkuRestrictionInfo fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ResourceSkuRestrictionInfo deserializedResourceSkuRestrictionInfo = new ResourceSkuRestrictionInfo(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("locations".equals(fieldName)) { + List locations = reader.readArray(reader1 -> reader1.getString()); + deserializedResourceSkuRestrictionInfo.locations = locations; + } else if ("zones".equals(fieldName)) { + List zones = reader.readArray(reader1 -> reader1.getString()); + deserializedResourceSkuRestrictionInfo.zones = zones; + } else { + reader.skipChildren(); + } + } + + return deserializedResourceSkuRestrictionInfo; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuRestrictions.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuRestrictions.java new file mode 100644 index 0000000000000..8ca66c39db665 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuRestrictions.java @@ -0,0 +1,138 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Describes scaling information of a SKU. + */ +@Immutable +public final class ResourceSkuRestrictions implements JsonSerializable { + /* + * The type of restrictions. + */ + private ResourceSkuRestrictionsType type; + + /* + * The value of restrictions. If the restriction type is set to location. This would be different locations where + * the SKU is restricted. + */ + private List values; + + /* + * The information about the restriction where the SKU cannot be used. + */ + private ResourceSkuRestrictionInfo restrictionInfo; + + /* + * The reason for restriction. + */ + private ResourceSkuRestrictionsReasonCode reasonCode; + + /** + * Creates an instance of ResourceSkuRestrictions class. + */ + private ResourceSkuRestrictions() { + } + + /** + * Get the type property: The type of restrictions. + * + * @return the type value. + */ + public ResourceSkuRestrictionsType type() { + return this.type; + } + + /** + * Get the values property: The value of restrictions. If the restriction type is set to location. This would be + * different locations where the SKU is restricted. + * + * @return the values value. + */ + public List values() { + return this.values; + } + + /** + * Get the restrictionInfo property: The information about the restriction where the SKU cannot be used. + * + * @return the restrictionInfo value. + */ + public ResourceSkuRestrictionInfo restrictionInfo() { + return this.restrictionInfo; + } + + /** + * Get the reasonCode property: The reason for restriction. + * + * @return the reasonCode value. + */ + public ResourceSkuRestrictionsReasonCode reasonCode() { + return this.reasonCode; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (restrictionInfo() != null) { + restrictionInfo().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ResourceSkuRestrictions from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ResourceSkuRestrictions 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 ResourceSkuRestrictions. + */ + public static ResourceSkuRestrictions fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ResourceSkuRestrictions deserializedResourceSkuRestrictions = new ResourceSkuRestrictions(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("type".equals(fieldName)) { + deserializedResourceSkuRestrictions.type + = ResourceSkuRestrictionsType.fromString(reader.getString()); + } else if ("values".equals(fieldName)) { + List values = reader.readArray(reader1 -> reader1.getString()); + deserializedResourceSkuRestrictions.values = values; + } else if ("restrictionInfo".equals(fieldName)) { + deserializedResourceSkuRestrictions.restrictionInfo = ResourceSkuRestrictionInfo.fromJson(reader); + } else if ("reasonCode".equals(fieldName)) { + deserializedResourceSkuRestrictions.reasonCode + = ResourceSkuRestrictionsReasonCode.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedResourceSkuRestrictions; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuRestrictionsReasonCode.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuRestrictionsReasonCode.java new file mode 100644 index 0000000000000..182192219cf6e --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuRestrictionsReasonCode.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The reason for restriction. + */ +public final class ResourceSkuRestrictionsReasonCode extends ExpandableStringEnum { + /** + * Quota ID restriction. + */ + public static final ResourceSkuRestrictionsReasonCode QUOTA_ID = fromString("QuotaId"); + + /** + * Not available for subscription. + */ + public static final ResourceSkuRestrictionsReasonCode NOT_AVAILABLE_FOR_SUBSCRIPTION + = fromString("NotAvailableForSubscription"); + + /** + * Creates a new instance of ResourceSkuRestrictionsReasonCode value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ResourceSkuRestrictionsReasonCode() { + } + + /** + * Creates or finds a ResourceSkuRestrictionsReasonCode from its string representation. + * + * @param name a name to look for. + * @return the corresponding ResourceSkuRestrictionsReasonCode. + */ + public static ResourceSkuRestrictionsReasonCode fromString(String name) { + return fromString(name, ResourceSkuRestrictionsReasonCode.class); + } + + /** + * Gets known ResourceSkuRestrictionsReasonCode values. + * + * @return known ResourceSkuRestrictionsReasonCode values. + */ + public static Collection values() { + return values(ResourceSkuRestrictionsReasonCode.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuRestrictionsType.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuRestrictionsType.java new file mode 100644 index 0000000000000..52b3611920cca --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuRestrictionsType.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The type of restrictions. + */ +public final class ResourceSkuRestrictionsType extends ExpandableStringEnum { + /** + * Location restriction. + */ + public static final ResourceSkuRestrictionsType LOCATION = fromString("Location"); + + /** + * Zone restriction. + */ + public static final ResourceSkuRestrictionsType ZONE = fromString("Zone"); + + /** + * Creates a new instance of ResourceSkuRestrictionsType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ResourceSkuRestrictionsType() { + } + + /** + * Creates or finds a ResourceSkuRestrictionsType from its string representation. + * + * @param name a name to look for. + * @return the corresponding ResourceSkuRestrictionsType. + */ + public static ResourceSkuRestrictionsType fromString(String name) { + return fromString(name, ResourceSkuRestrictionsType.class); + } + + /** + * Gets known ResourceSkuRestrictionsType values. + * + * @return known ResourceSkuRestrictionsType values. + */ + public static Collection values() { + return values(ResourceSkuRestrictionsType.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuZoneDetails.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuZoneDetails.java new file mode 100644 index 0000000000000..dda9f34983224 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuZoneDetails.java @@ -0,0 +1,105 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Describes The zonal capabilities of a SKU. + */ +@Immutable +public final class ResourceSkuZoneDetails implements JsonSerializable { + /* + * The set of zones that the SKU is available in with the specified capabilities. + */ + private List name; + + /* + * A list of capabilities that are available for the SKU in the specified list of zones. + */ + private List capabilities; + + /** + * Creates an instance of ResourceSkuZoneDetails class. + */ + private ResourceSkuZoneDetails() { + } + + /** + * Get the name property: The set of zones that the SKU is available in with the specified capabilities. + * + * @return the name value. + */ + public List name() { + return this.name; + } + + /** + * Get the capabilities property: A list of capabilities that are available for the SKU in the specified list of + * zones. + * + * @return the capabilities value. + */ + public List capabilities() { + return this.capabilities; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (capabilities() != null) { + capabilities().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ResourceSkuZoneDetails from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ResourceSkuZoneDetails 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 ResourceSkuZoneDetails. + */ + public static ResourceSkuZoneDetails fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ResourceSkuZoneDetails deserializedResourceSkuZoneDetails = new ResourceSkuZoneDetails(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + List name = reader.readArray(reader1 -> reader1.getString()); + deserializedResourceSkuZoneDetails.name = name; + } else if ("capabilities".equals(fieldName)) { + List capabilities + = reader.readArray(reader1 -> ResourceSkuCapabilities.fromJson(reader1)); + deserializedResourceSkuZoneDetails.capabilities = capabilities; + } else { + reader.skipChildren(); + } + } + + return deserializedResourceSkuZoneDetails; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SafeguardsAvailableVersionsProperties.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SafeguardsAvailableVersionsProperties.java new file mode 100644 index 0000000000000..be616c4f7d066 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SafeguardsAvailableVersionsProperties.java @@ -0,0 +1,101 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Whether the version is default or not and support info. + */ +@Immutable +public final class SafeguardsAvailableVersionsProperties + implements JsonSerializable { + /* + * Whether this is the default version. + */ + private Boolean isDefaultVersion; + + /* + * Whether the version is preview or stable. + */ + private SafeguardsSupport support; + + /** + * Creates an instance of SafeguardsAvailableVersionsProperties class. + */ + private SafeguardsAvailableVersionsProperties() { + } + + /** + * Get the isDefaultVersion property: Whether this is the default version. + * + * @return the isDefaultVersion value. + */ + public Boolean isDefaultVersion() { + return this.isDefaultVersion; + } + + /** + * Get the support property: Whether the version is preview or stable. + * + * @return the support value. + */ + public SafeguardsSupport support() { + return this.support; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SafeguardsAvailableVersionsProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SafeguardsAvailableVersionsProperties 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 SafeguardsAvailableVersionsProperties. + */ + public static SafeguardsAvailableVersionsProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SafeguardsAvailableVersionsProperties deserializedSafeguardsAvailableVersionsProperties + = new SafeguardsAvailableVersionsProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("isDefaultVersion".equals(fieldName)) { + deserializedSafeguardsAvailableVersionsProperties.isDefaultVersion + = reader.getNullable(JsonReader::getBoolean); + } else if ("support".equals(fieldName)) { + deserializedSafeguardsAvailableVersionsProperties.support + = SafeguardsSupport.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedSafeguardsAvailableVersionsProperties; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SafeguardsSupport.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SafeguardsSupport.java new file mode 100644 index 0000000000000..0631186b5be5c --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SafeguardsSupport.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Whether the version is preview or stable. + */ +public final class SafeguardsSupport extends ExpandableStringEnum { + /** + * The version is preview. It is not recommended to use preview versions on critical production clusters. The + * preview version may not support all use-cases. + */ + public static final SafeguardsSupport PREVIEW = fromString("Preview"); + + /** + * The version is stable and can be used on critical production clusters. + */ + public static final SafeguardsSupport STABLE = fromString("Stable"); + + /** + * Creates a new instance of SafeguardsSupport value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public SafeguardsSupport() { + } + + /** + * Creates or finds a SafeguardsSupport from its string representation. + * + * @param name a name to look for. + * @return the corresponding SafeguardsSupport. + */ + public static SafeguardsSupport fromString(String name) { + return fromString(name, SafeguardsSupport.class); + } + + /** + * Gets known SafeguardsSupport values. + * + * @return known SafeguardsSupport values. + */ + public static Collection values() { + return values(SafeguardsSupport.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ScopeEvaluationResult.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ScopeEvaluationResult.java new file mode 100644 index 0000000000000..a195eccd6c3e0 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ScopeEvaluationResult.java @@ -0,0 +1,175 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.time.LocalDate; + +/** + * The readiness evaluation details shared by a single scope: the support status of the + * version the scope is currently running, the upgrade context, and the evaluation + * result. All fields are server-computed and read-only. + */ +@Immutable +public final class ScopeEvaluationResult implements JsonSerializable { + /* + * The Kubernetes version the scope was evaluated from (the upgrade source version the scope is currently running). + * Lets consumers read the result as "from X to targetKubernetesVersion" and detect a stale cached record by + * comparing against the live cluster version. Populated for Kubernetes version upgrades. + */ + private String currentKubernetesVersion; + + /* + * The support status of the Kubernetes version the scope is currently running (not the target version). Populated + * for Kubernetes version upgrades. + */ + private KubernetesVersionSupportStatus kubernetesVersionSupportStatus; + + /* + * The date on which support ends for the Kubernetes version the scope is currently + * running (its end-of-support date). Returned as an absolute date so clients can apply + * their own "approaching end of support" threshold and compute the remaining days against + * the current time; a precomputed remaining-days value is intentionally not returned so + * that cached results do not go stale. Populated for Kubernetes version upgrades. + */ + private LocalDate kubernetesVersionEndOfSupportDate; + + /* + * Contextual information about how this upgrade is managed, such as the upgrade strategy, next maintenance window, + * and last successful upgrade time. + */ + private UpgradeContext context; + + /* + * The evaluation result, including overall status, evaluation time, and any detected issues. + */ + private UpgradeInsightEvaluation evaluation; + + /** + * Creates an instance of ScopeEvaluationResult class. + */ + private ScopeEvaluationResult() { + } + + /** + * Get the currentKubernetesVersion property: The Kubernetes version the scope was evaluated from (the upgrade + * source version the scope is currently running). Lets consumers read the result as "from X to + * targetKubernetesVersion" and detect a stale cached record by comparing against the live cluster version. + * Populated for Kubernetes version upgrades. + * + * @return the currentKubernetesVersion value. + */ + public String currentKubernetesVersion() { + return this.currentKubernetesVersion; + } + + /** + * Get the kubernetesVersionSupportStatus property: The support status of the Kubernetes version the scope is + * currently running (not the target version). Populated for Kubernetes version upgrades. + * + * @return the kubernetesVersionSupportStatus value. + */ + public KubernetesVersionSupportStatus kubernetesVersionSupportStatus() { + return this.kubernetesVersionSupportStatus; + } + + /** + * Get the kubernetesVersionEndOfSupportDate property: The date on which support ends for the Kubernetes version the + * scope is currently + * running (its end-of-support date). Returned as an absolute date so clients can apply + * their own "approaching end of support" threshold and compute the remaining days against + * the current time; a precomputed remaining-days value is intentionally not returned so + * that cached results do not go stale. Populated for Kubernetes version upgrades. + * + * @return the kubernetesVersionEndOfSupportDate value. + */ + public LocalDate kubernetesVersionEndOfSupportDate() { + return this.kubernetesVersionEndOfSupportDate; + } + + /** + * Get the context property: Contextual information about how this upgrade is managed, such as the upgrade strategy, + * next maintenance window, and last successful upgrade time. + * + * @return the context value. + */ + public UpgradeContext context() { + return this.context; + } + + /** + * Get the evaluation property: The evaluation result, including overall status, evaluation time, and any detected + * issues. + * + * @return the evaluation value. + */ + public UpgradeInsightEvaluation evaluation() { + return this.evaluation; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (context() != null) { + context().validate(); + } + if (evaluation() != null) { + evaluation().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ScopeEvaluationResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ScopeEvaluationResult 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 ScopeEvaluationResult. + */ + public static ScopeEvaluationResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ScopeEvaluationResult deserializedScopeEvaluationResult = new ScopeEvaluationResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("currentKubernetesVersion".equals(fieldName)) { + deserializedScopeEvaluationResult.currentKubernetesVersion = reader.getString(); + } else if ("kubernetesVersionSupportStatus".equals(fieldName)) { + deserializedScopeEvaluationResult.kubernetesVersionSupportStatus + = KubernetesVersionSupportStatus.fromString(reader.getString()); + } else if ("kubernetesVersionEndOfSupportDate".equals(fieldName)) { + deserializedScopeEvaluationResult.kubernetesVersionEndOfSupportDate + = reader.getNullable(nonNullReader -> LocalDate.parse(nonNullReader.getString())); + } else if ("context".equals(fieldName)) { + deserializedScopeEvaluationResult.context = UpgradeContext.fromJson(reader); + } else if ("evaluation".equals(fieldName)) { + deserializedScopeEvaluationResult.evaluation = UpgradeInsightEvaluation.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedScopeEvaluationResult; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SeccompDefault.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SeccompDefault.java new file mode 100644 index 0000000000000..5847b1bcc721b --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SeccompDefault.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.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Specifies the default seccomp profile applied to all workloads. If not specified, 'Unconfined' will be used by + * default. + */ +public final class SeccompDefault extends ExpandableStringEnum { + /** + * No seccomp profile is applied, allowing all system calls. + */ + public static final SeccompDefault UNCONFINED = fromString("Unconfined"); + + /** + * The default seccomp profile for container runtime is applied, which restricts certain system calls for enhanced + * security. + */ + public static final SeccompDefault RUNTIME_DEFAULT = fromString("RuntimeDefault"); + + /** + * Creates a new instance of SeccompDefault value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public SeccompDefault() { + } + + /** + * Creates or finds a SeccompDefault from its string representation. + * + * @param name a name to look for. + * @return the corresponding SeccompDefault. + */ + public static SeccompDefault fromString(String name) { + return fromString(name, SeccompDefault.class); + } + + /** + * Gets known SeccompDefault values. + * + * @return known SeccompDefault values. + */ + public static Collection values() { + return values(SeccompDefault.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ServiceAccountImagePullProfile.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ServiceAccountImagePullProfile.java new file mode 100644 index 0000000000000..0c5c59a37cf70 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/ServiceAccountImagePullProfile.java @@ -0,0 +1,139 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * Profile for configuring image pull authentication to use service account scoped managed identities for authentication + * instead of node scoped managed identity (kubelet identity) for authentication to Azure Container Registry. For more + * information, refer to https://aka.ms/aks/identity-binding/acr-image-pull/docs. + */ +@Fluent +public final class ServiceAccountImagePullProfile implements JsonSerializable { + /* + * Indicates whether service account based image pull is enabled, for which identity bindings are required for the + * managed identity to be used for authentication. For more information, refer to + * https://aka.ms/aks/identity-binding-docs. + */ + private Boolean enabled; + + /* + * Optional. The default managed identity resource ID used for image pulls at the cluster level. When configured, + * this identity is used if a Pod’s service account does not explicitly specify an identity for pulling images. If + * not configured and no identity is specified at service account level, image will be pulled via anonymous + * authentication. + */ + private String defaultManagedIdentityId; + + /** + * Creates an instance of ServiceAccountImagePullProfile class. + */ + public ServiceAccountImagePullProfile() { + } + + /** + * Get the enabled property: Indicates whether service account based image pull is enabled, for which identity + * bindings are required for the managed identity to be used for authentication. For more information, refer to + * https://aka.ms/aks/identity-binding-docs. + * + * @return the enabled value. + */ + public Boolean enabled() { + return this.enabled; + } + + /** + * Set the enabled property: Indicates whether service account based image pull is enabled, for which identity + * bindings are required for the managed identity to be used for authentication. For more information, refer to + * https://aka.ms/aks/identity-binding-docs. + * + * @param enabled the enabled value to set. + * @return the ServiceAccountImagePullProfile object itself. + */ + public ServiceAccountImagePullProfile withEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Get the defaultManagedIdentityId property: Optional. The default managed identity resource ID used for image + * pulls at the cluster level. When configured, this identity is used if a Pod’s service account does not explicitly + * specify an identity for pulling images. If not configured and no identity is specified at service account level, + * image will be pulled via anonymous authentication. + * + * @return the defaultManagedIdentityId value. + */ + public String defaultManagedIdentityId() { + return this.defaultManagedIdentityId; + } + + /** + * Set the defaultManagedIdentityId property: Optional. The default managed identity resource ID used for image + * pulls at the cluster level. When configured, this identity is used if a Pod’s service account does not explicitly + * specify an identity for pulling images. If not configured and no identity is specified at service account level, + * image will be pulled via anonymous authentication. + * + * @param defaultManagedIdentityId the defaultManagedIdentityId value to set. + * @return the ServiceAccountImagePullProfile object itself. + */ + public ServiceAccountImagePullProfile withDefaultManagedIdentityId(String defaultManagedIdentityId) { + this.defaultManagedIdentityId = defaultManagedIdentityId; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeBooleanField("enabled", this.enabled); + jsonWriter.writeStringField("defaultManagedIdentityId", this.defaultManagedIdentityId); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ServiceAccountImagePullProfile from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ServiceAccountImagePullProfile 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 ServiceAccountImagePullProfile. + */ + public static ServiceAccountImagePullProfile fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ServiceAccountImagePullProfile deserializedServiceAccountImagePullProfile + = new ServiceAccountImagePullProfile(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("enabled".equals(fieldName)) { + deserializedServiceAccountImagePullProfile.enabled = reader.getNullable(JsonReader::getBoolean); + } else if ("defaultManagedIdentityId".equals(fieldName)) { + deserializedServiceAccountImagePullProfile.defaultManagedIdentityId = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedServiceAccountImagePullProfile; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SnapshotType.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SnapshotType.java index 6539cbbd40927..f94850c9924e9 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SnapshotType.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SnapshotType.java @@ -16,6 +16,11 @@ public final class SnapshotType extends ExpandableStringEnum { */ public static final SnapshotType NODE_POOL = fromString("NodePool"); + /** + * The snapshot is a snapshot of a managed cluster. + */ + public static final SnapshotType MANAGED_CLUSTER = fromString("ManagedCluster"); + /** * Creates a new instance of SnapshotType value. * diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SoftEvictionGracePeriod.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SoftEvictionGracePeriod.java new file mode 100644 index 0000000000000..eb721ca8977ad --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SoftEvictionGracePeriod.java @@ -0,0 +1,169 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * Grace periods for kubelet soft eviction thresholds. Each field is a Go-style duration string (e.g. '1m30s') that + * specifies how long the corresponding soft eviction signal must be crossed before pod eviction is triggered. A grace + * period only applies when the matching soft eviction threshold is set. + */ +@Fluent +public final class SoftEvictionGracePeriod implements JsonSerializable { + /* + * The grace period for the memoryAvailable soft eviction signal, expressed as a Go-style duration string (e.g. + * '30s', '1m30s'). Supported units are 'ns', 'us', 'ms', 's', 'm', and 'h'. Must be greater than or equal to '30s'. + * Default is '30s'. + */ + private String memoryAvailable; + + /* + * The grace period for the nodeFsAvailable soft eviction signal, expressed as a Go-style duration string (e.g. + * '30s', '1m30s'). Supported units are 'ns', 'us', 'ms', 's', 'm', and 'h'. Must be greater than or equal to '30s'. + * Default is '2m'. + */ + private String nodeFsAvailable; + + /* + * The grace period for the nodeFsInodesFree soft eviction signal, expressed as a Go-style duration string (e.g. + * '30s', '1m30s'). Supported units are 'ns', 'us', 'ms', 's', 'm', and 'h'. Must be greater than or equal to '30s'. + * Default is '2m'. + */ + private String nodeFsInodesFree; + + /** + * Creates an instance of SoftEvictionGracePeriod class. + */ + public SoftEvictionGracePeriod() { + } + + /** + * Get the memoryAvailable property: The grace period for the memoryAvailable soft eviction signal, expressed as a + * Go-style duration string (e.g. '30s', '1m30s'). Supported units are 'ns', 'us', 'ms', 's', 'm', and 'h'. Must be + * greater than or equal to '30s'. Default is '30s'. + * + * @return the memoryAvailable value. + */ + public String memoryAvailable() { + return this.memoryAvailable; + } + + /** + * Set the memoryAvailable property: The grace period for the memoryAvailable soft eviction signal, expressed as a + * Go-style duration string (e.g. '30s', '1m30s'). Supported units are 'ns', 'us', 'ms', 's', 'm', and 'h'. Must be + * greater than or equal to '30s'. Default is '30s'. + * + * @param memoryAvailable the memoryAvailable value to set. + * @return the SoftEvictionGracePeriod object itself. + */ + public SoftEvictionGracePeriod withMemoryAvailable(String memoryAvailable) { + this.memoryAvailable = memoryAvailable; + return this; + } + + /** + * Get the nodeFsAvailable property: The grace period for the nodeFsAvailable soft eviction signal, expressed as a + * Go-style duration string (e.g. '30s', '1m30s'). Supported units are 'ns', 'us', 'ms', 's', 'm', and 'h'. Must be + * greater than or equal to '30s'. Default is '2m'. + * + * @return the nodeFsAvailable value. + */ + public String nodeFsAvailable() { + return this.nodeFsAvailable; + } + + /** + * Set the nodeFsAvailable property: The grace period for the nodeFsAvailable soft eviction signal, expressed as a + * Go-style duration string (e.g. '30s', '1m30s'). Supported units are 'ns', 'us', 'ms', 's', 'm', and 'h'. Must be + * greater than or equal to '30s'. Default is '2m'. + * + * @param nodeFsAvailable the nodeFsAvailable value to set. + * @return the SoftEvictionGracePeriod object itself. + */ + public SoftEvictionGracePeriod withNodeFsAvailable(String nodeFsAvailable) { + this.nodeFsAvailable = nodeFsAvailable; + return this; + } + + /** + * Get the nodeFsInodesFree property: The grace period for the nodeFsInodesFree soft eviction signal, expressed as a + * Go-style duration string (e.g. '30s', '1m30s'). Supported units are 'ns', 'us', 'ms', 's', 'm', and 'h'. Must be + * greater than or equal to '30s'. Default is '2m'. + * + * @return the nodeFsInodesFree value. + */ + public String nodeFsInodesFree() { + return this.nodeFsInodesFree; + } + + /** + * Set the nodeFsInodesFree property: The grace period for the nodeFsInodesFree soft eviction signal, expressed as a + * Go-style duration string (e.g. '30s', '1m30s'). Supported units are 'ns', 'us', 'ms', 's', 'm', and 'h'. Must be + * greater than or equal to '30s'. Default is '2m'. + * + * @param nodeFsInodesFree the nodeFsInodesFree value to set. + * @return the SoftEvictionGracePeriod object itself. + */ + public SoftEvictionGracePeriod withNodeFsInodesFree(String nodeFsInodesFree) { + this.nodeFsInodesFree = nodeFsInodesFree; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("memoryAvailable", this.memoryAvailable); + jsonWriter.writeStringField("nodeFsAvailable", this.nodeFsAvailable); + jsonWriter.writeStringField("nodeFsInodesFree", this.nodeFsInodesFree); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SoftEvictionGracePeriod from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SoftEvictionGracePeriod 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 SoftEvictionGracePeriod. + */ + public static SoftEvictionGracePeriod fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SoftEvictionGracePeriod deserializedSoftEvictionGracePeriod = new SoftEvictionGracePeriod(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("memoryAvailable".equals(fieldName)) { + deserializedSoftEvictionGracePeriod.memoryAvailable = reader.getString(); + } else if ("nodeFsAvailable".equals(fieldName)) { + deserializedSoftEvictionGracePeriod.nodeFsAvailable = reader.getString(); + } else if ("nodeFsInodesFree".equals(fieldName)) { + deserializedSoftEvictionGracePeriod.nodeFsInodesFree = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedSoftEvictionGracePeriod; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SoftEvictionThreshold.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SoftEvictionThreshold.java new file mode 100644 index 0000000000000..a63e070d7134b --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/SoftEvictionThreshold.java @@ -0,0 +1,174 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * Soft eviction thresholds for kubelet. These thresholds trigger graceful pod eviction when node resources drop below + * the specified values for at least the corresponding grace period defined in softEvictionGracePeriod. Supported + * formats are Ki, Mi, Gi, or percentages using %. + */ +@Fluent +public final class SoftEvictionThreshold implements JsonSerializable { + /* + * The threshold for available memory below which soft pod eviction is triggered. Accepts absolute values (e.g. + * '500Mi') or percentage values (e.g. '5%'). Absolute minimum is 100Mi; percentage minimum is 2%. Default uses a + * capacity-based step ladder: 500Mi for nodes with <=8GiB, 750Mi for 16GiB, and 1024Mi (1Gi) for >=32GiB. Must also + * be greater than the effective hardEvictionThreshold.memoryAvailable. + */ + private String memoryAvailable; + + /* + * The threshold for available node filesystem space below which soft pod eviction is triggered. Accepts absolute + * values (e.g. '1Gi') or percentage values (e.g. '10%'). Default is '12%'. Must be greater than or equal to 10% and + * greater than the effective hardEvictionThreshold.nodeFsAvailable. + */ + private String nodeFsAvailable; + + /* + * The threshold for available inodes on the node filesystem below which soft pod eviction is triggered. Accepts + * absolute inode counts (e.g. '100000') or percentage values (e.g. '5%'). Default is '7%'. Percentage values must + * be greater than or equal to 5% and greater than the effective hardEvictionThreshold.nodeFsInodesFree. + */ + private String nodeFsInodesFree; + + /** + * Creates an instance of SoftEvictionThreshold class. + */ + public SoftEvictionThreshold() { + } + + /** + * Get the memoryAvailable property: The threshold for available memory below which soft pod eviction is triggered. + * Accepts absolute values (e.g. '500Mi') or percentage values (e.g. '5%'). Absolute minimum is 100Mi; percentage + * minimum is 2%. Default uses a capacity-based step ladder: 500Mi for nodes with <=8GiB, 750Mi for 16GiB, and + * 1024Mi (1Gi) for >=32GiB. Must also be greater than the effective hardEvictionThreshold.memoryAvailable. + * + * @return the memoryAvailable value. + */ + public String memoryAvailable() { + return this.memoryAvailable; + } + + /** + * Set the memoryAvailable property: The threshold for available memory below which soft pod eviction is triggered. + * Accepts absolute values (e.g. '500Mi') or percentage values (e.g. '5%'). Absolute minimum is 100Mi; percentage + * minimum is 2%. Default uses a capacity-based step ladder: 500Mi for nodes with <=8GiB, 750Mi for 16GiB, and + * 1024Mi (1Gi) for >=32GiB. Must also be greater than the effective hardEvictionThreshold.memoryAvailable. + * + * @param memoryAvailable the memoryAvailable value to set. + * @return the SoftEvictionThreshold object itself. + */ + public SoftEvictionThreshold withMemoryAvailable(String memoryAvailable) { + this.memoryAvailable = memoryAvailable; + return this; + } + + /** + * Get the nodeFsAvailable property: The threshold for available node filesystem space below which soft pod eviction + * is triggered. Accepts absolute values (e.g. '1Gi') or percentage values (e.g. '10%'). Default is '12%'. Must be + * greater than or equal to 10% and greater than the effective hardEvictionThreshold.nodeFsAvailable. + * + * @return the nodeFsAvailable value. + */ + public String nodeFsAvailable() { + return this.nodeFsAvailable; + } + + /** + * Set the nodeFsAvailable property: The threshold for available node filesystem space below which soft pod eviction + * is triggered. Accepts absolute values (e.g. '1Gi') or percentage values (e.g. '10%'). Default is '12%'. Must be + * greater than or equal to 10% and greater than the effective hardEvictionThreshold.nodeFsAvailable. + * + * @param nodeFsAvailable the nodeFsAvailable value to set. + * @return the SoftEvictionThreshold object itself. + */ + public SoftEvictionThreshold withNodeFsAvailable(String nodeFsAvailable) { + this.nodeFsAvailable = nodeFsAvailable; + return this; + } + + /** + * Get the nodeFsInodesFree property: The threshold for available inodes on the node filesystem below which soft pod + * eviction is triggered. Accepts absolute inode counts (e.g. '100000') or percentage values (e.g. '5%'). Default is + * '7%'. Percentage values must be greater than or equal to 5% and greater than the effective + * hardEvictionThreshold.nodeFsInodesFree. + * + * @return the nodeFsInodesFree value. + */ + public String nodeFsInodesFree() { + return this.nodeFsInodesFree; + } + + /** + * Set the nodeFsInodesFree property: The threshold for available inodes on the node filesystem below which soft pod + * eviction is triggered. Accepts absolute inode counts (e.g. '100000') or percentage values (e.g. '5%'). Default is + * '7%'. Percentage values must be greater than or equal to 5% and greater than the effective + * hardEvictionThreshold.nodeFsInodesFree. + * + * @param nodeFsInodesFree the nodeFsInodesFree value to set. + * @return the SoftEvictionThreshold object itself. + */ + public SoftEvictionThreshold withNodeFsInodesFree(String nodeFsInodesFree) { + this.nodeFsInodesFree = nodeFsInodesFree; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("memoryAvailable", this.memoryAvailable); + jsonWriter.writeStringField("nodeFsAvailable", this.nodeFsAvailable); + jsonWriter.writeStringField("nodeFsInodesFree", this.nodeFsInodesFree); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SoftEvictionThreshold from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SoftEvictionThreshold 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 SoftEvictionThreshold. + */ + public static SoftEvictionThreshold fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SoftEvictionThreshold deserializedSoftEvictionThreshold = new SoftEvictionThreshold(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("memoryAvailable".equals(fieldName)) { + deserializedSoftEvictionThreshold.memoryAvailable = reader.getString(); + } else if ("nodeFsAvailable".equals(fieldName)) { + deserializedSoftEvictionThreshold.nodeFsAvailable = reader.getString(); + } else if ("nodeFsInodesFree".equals(fieldName)) { + deserializedSoftEvictionThreshold.nodeFsInodesFree = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedSoftEvictionThreshold; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/TransitEncryptionType.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/TransitEncryptionType.java index 588980d9452ce..6a14e41784c6e 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/TransitEncryptionType.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/TransitEncryptionType.java @@ -18,6 +18,12 @@ public final class TransitEncryptionType extends ExpandableStringEnum { + /* + * The strategy currently used to perform this type of upgrade (manual or auto-upgrade). + */ + private UpgradeInsightStrategy currentUpgradeStrategy; + + /* + * The next scheduled automatic upgrade maintenance window for this upgrade type, if auto-upgrade is configured. + */ + private UpgradeInsightMaintenanceWindow nextMaintenanceWindow; + + /* + * The UTC time of the last successful upgrade of this type for this scope. + * Clients can compute "days since last successful upgrade" from this value and the + * current time; the server intentionally does not return a precomputed value so that + * cached results do not go stale. + */ + private OffsetDateTime lastSuccessfulUpgradeTime; + + /** + * Creates an instance of UpgradeContext class. + */ + private UpgradeContext() { + } + + /** + * Get the currentUpgradeStrategy property: The strategy currently used to perform this type of upgrade (manual or + * auto-upgrade). + * + * @return the currentUpgradeStrategy value. + */ + public UpgradeInsightStrategy currentUpgradeStrategy() { + return this.currentUpgradeStrategy; + } + + /** + * Get the nextMaintenanceWindow property: The next scheduled automatic upgrade maintenance window for this upgrade + * type, if auto-upgrade is configured. + * + * @return the nextMaintenanceWindow value. + */ + public UpgradeInsightMaintenanceWindow nextMaintenanceWindow() { + return this.nextMaintenanceWindow; + } + + /** + * Get the lastSuccessfulUpgradeTime property: The UTC time of the last successful upgrade of this type for this + * scope. + * Clients can compute "days since last successful upgrade" from this value and the + * current time; the server intentionally does not return a precomputed value so that + * cached results do not go stale. + * + * @return the lastSuccessfulUpgradeTime value. + */ + public OffsetDateTime lastSuccessfulUpgradeTime() { + return this.lastSuccessfulUpgradeTime; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (nextMaintenanceWindow() != null) { + nextMaintenanceWindow().validate(); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of UpgradeContext from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of UpgradeContext 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 UpgradeContext. + */ + public static UpgradeContext fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + UpgradeContext deserializedUpgradeContext = new UpgradeContext(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("currentUpgradeStrategy".equals(fieldName)) { + deserializedUpgradeContext.currentUpgradeStrategy + = UpgradeInsightStrategy.fromString(reader.getString()); + } else if ("nextMaintenanceWindow".equals(fieldName)) { + deserializedUpgradeContext.nextMaintenanceWindow = UpgradeInsightMaintenanceWindow.fromJson(reader); + } else if ("lastSuccessfulUpgradeTime".equals(fieldName)) { + deserializedUpgradeContext.lastSuccessfulUpgradeTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else { + reader.skipChildren(); + } + } + + return deserializedUpgradeContext; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeGateSettings.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeGateSettings.java new file mode 100644 index 0000000000000..5f5554bf53ca7 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeGateSettings.java @@ -0,0 +1,111 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.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; + +/** + * Settings for health-aware upgrade gating. + */ +@Fluent +public final class UpgradeGateSettings implements JsonSerializable { + /* + * Whether upgrade gating is enabled. Defaults to `false` when unset, except on a newly created agent pool in a + * cluster where upgrade gating is enabled, which defaults to `true`. When `true`, upgrade-gated health checks are + * enabled for upgrades in the corresponding scope. Setting this to `true` at the cluster scope enables gating for + * the entire cluster, including all agent pool upgrades. When the cluster scope is unset or `false`, an agent pool + * can opt in independently by setting this to `true`. When the cluster scope is `true`, an agent pool cannot set + * this to `false`. Force upgrade (`overrideSettings.forceUpgrade`) overrides the gate: while the override window is + * active, the upgrade skips health signal validation and proceeds. + */ + private Boolean enabled; + + /** + * Creates an instance of UpgradeGateSettings class. + */ + public UpgradeGateSettings() { + } + + /** + * Get the enabled property: Whether upgrade gating is enabled. Defaults to `false` when unset, except on a newly + * created agent pool in a cluster where upgrade gating is enabled, which defaults to `true`. When `true`, + * upgrade-gated health checks are enabled for upgrades in the corresponding scope. Setting this to `true` at the + * cluster scope enables gating for the entire cluster, including all agent pool upgrades. When the cluster scope is + * unset or `false`, an agent pool can opt in independently by setting this to `true`. When the cluster scope is + * `true`, an agent pool cannot set this to `false`. Force upgrade (`overrideSettings.forceUpgrade`) overrides the + * gate: while the override window is active, the upgrade skips health signal validation and proceeds. + * + * @return the enabled value. + */ + public Boolean enabled() { + return this.enabled; + } + + /** + * Set the enabled property: Whether upgrade gating is enabled. Defaults to `false` when unset, except on a newly + * created agent pool in a cluster where upgrade gating is enabled, which defaults to `true`. When `true`, + * upgrade-gated health checks are enabled for upgrades in the corresponding scope. Setting this to `true` at the + * cluster scope enables gating for the entire cluster, including all agent pool upgrades. When the cluster scope is + * unset or `false`, an agent pool can opt in independently by setting this to `true`. When the cluster scope is + * `true`, an agent pool cannot set this to `false`. Force upgrade (`overrideSettings.forceUpgrade`) overrides the + * gate: while the override window is active, the upgrade skips health signal validation and proceeds. + * + * @param enabled the enabled value to set. + * @return the UpgradeGateSettings object itself. + */ + public UpgradeGateSettings withEnabled(Boolean enabled) { + this.enabled = enabled; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeBooleanField("enabled", this.enabled); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of UpgradeGateSettings from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of UpgradeGateSettings 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 UpgradeGateSettings. + */ + public static UpgradeGateSettings fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + UpgradeGateSettings deserializedUpgradeGateSettings = new UpgradeGateSettings(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("enabled".equals(fieldName)) { + deserializedUpgradeGateSettings.enabled = reader.getNullable(JsonReader::getBoolean); + } else { + reader.skipChildren(); + } + } + + return deserializedUpgradeGateSettings; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeInsightEvaluation.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeInsightEvaluation.java new file mode 100644 index 0000000000000..9867272845394 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeInsightEvaluation.java @@ -0,0 +1,131 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.CoreUtils; +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.time.OffsetDateTime; +import java.util.List; + +/** + * The evaluation payload shared by all upgrade insight results, containing the + * overall status, evaluation time, and any detected issues. Whenever this object is + * present the evaluation has run, so `status` and `evaluatedAt` are always populated; + * the "not yet evaluated" state is signaled by the absence of this `evaluation` object + * (and by `provisioningState`), never by a present evaluation with an absent status. + */ +@Immutable +public final class UpgradeInsightEvaluation implements JsonSerializable { + /* + * The overall upgrade insight status indicating whether issues were detected. Always present when the evaluation + * has run; absence of the enclosing `evaluation` object—not an absent status—represents "not yet evaluated". + */ + private UpgradeInsightStatus status; + + /* + * The UTC time at which the upgrade insight evaluation was performed. + */ + private OffsetDateTime evaluatedAt; + + /* + * The list of detected upgrade issues, if any. Empty or absent for a `Passed` status. + */ + private List detectedIssues; + + /** + * Creates an instance of UpgradeInsightEvaluation class. + */ + private UpgradeInsightEvaluation() { + } + + /** + * Get the status property: The overall upgrade insight status indicating whether issues were detected. Always + * present when the evaluation has run; absence of the enclosing `evaluation` object—not an absent status—represents + * "not yet evaluated". + * + * @return the status value. + */ + public UpgradeInsightStatus status() { + return this.status; + } + + /** + * Get the evaluatedAt property: The UTC time at which the upgrade insight evaluation was performed. + * + * @return the evaluatedAt value. + */ + public OffsetDateTime evaluatedAt() { + return this.evaluatedAt; + } + + /** + * Get the detectedIssues property: The list of detected upgrade issues, if any. Empty or absent for a `Passed` + * status. + * + * @return the detectedIssues value. + */ + public List detectedIssues() { + return this.detectedIssues; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + if (detectedIssues() != null) { + detectedIssues().forEach(e -> e.validate()); + } + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of UpgradeInsightEvaluation from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of UpgradeInsightEvaluation 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 UpgradeInsightEvaluation. + */ + public static UpgradeInsightEvaluation fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + UpgradeInsightEvaluation deserializedUpgradeInsightEvaluation = new UpgradeInsightEvaluation(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("status".equals(fieldName)) { + deserializedUpgradeInsightEvaluation.status = UpgradeInsightStatus.fromString(reader.getString()); + } else if ("evaluatedAt".equals(fieldName)) { + deserializedUpgradeInsightEvaluation.evaluatedAt = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("detectedIssues".equals(fieldName)) { + List detectedIssues + = reader.readArray(reader1 -> DetectedUpgradeIssue.fromJson(reader1)); + deserializedUpgradeInsightEvaluation.detectedIssues = detectedIssues; + } else { + reader.skipChildren(); + } + } + + return deserializedUpgradeInsightEvaluation; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeInsightImpactedResource.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeInsightImpactedResource.java new file mode 100644 index 0000000000000..5e2ceb03eaa3f --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeInsightImpactedResource.java @@ -0,0 +1,143 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * A resource impacted by a detected upgrade issue. The concrete shape is determined + * by `kind`: an ARM resource is identified by its ARM resource ID, while a Kubernetes + * resource is identified by its namespace and name. + */ +@Immutable +public class UpgradeInsightImpactedResource implements JsonSerializable { + /* + * The category of the impacted resource. + */ + private ImpactedResourceKind kind = ImpactedResourceKind.fromString("UpgradeInsightImpactedResource"); + + /* + * The type of the impacted resource (for example, Microsoft.Network/virtualNetworks/subnets or + * PodDisruptionBudget). + */ + private String resourceType; + + /** + * Creates an instance of UpgradeInsightImpactedResource class. + */ + protected UpgradeInsightImpactedResource() { + } + + /** + * Get the kind property: The category of the impacted resource. + * + * @return the kind value. + */ + public ImpactedResourceKind kind() { + return this.kind; + } + + /** + * Get the resourceType property: The type of the impacted resource (for example, + * Microsoft.Network/virtualNetworks/subnets or PodDisruptionBudget). + * + * @return the resourceType value. + */ + public String resourceType() { + return this.resourceType; + } + + /** + * Set the resourceType property: The type of the impacted resource (for example, + * Microsoft.Network/virtualNetworks/subnets or PodDisruptionBudget). + * + * @param resourceType the resourceType value to set. + * @return the UpgradeInsightImpactedResource object itself. + */ + UpgradeInsightImpactedResource withResourceType(String resourceType) { + this.resourceType = resourceType; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("kind", this.kind == null ? null : this.kind.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of UpgradeInsightImpactedResource from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of UpgradeInsightImpactedResource 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 UpgradeInsightImpactedResource. + */ + public static UpgradeInsightImpactedResource fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String discriminatorValue = null; + try (JsonReader readerToUse = reader.bufferObject()) { + readerToUse.nextToken(); // Prepare for reading + while (readerToUse.nextToken() != JsonToken.END_OBJECT) { + String fieldName = readerToUse.getFieldName(); + readerToUse.nextToken(); + if ("kind".equals(fieldName)) { + discriminatorValue = readerToUse.getString(); + break; + } else { + readerToUse.skipChildren(); + } + } + // Use the discriminator value to determine which subtype should be deserialized. + if ("Arm".equals(discriminatorValue)) { + return ArmImpactedResource.fromJson(readerToUse.reset()); + } else if ("Kubernetes".equals(discriminatorValue)) { + return KubernetesImpactedResource.fromJson(readerToUse.reset()); + } else { + return fromJsonKnownDiscriminator(readerToUse.reset()); + } + } + }); + } + + static UpgradeInsightImpactedResource fromJsonKnownDiscriminator(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + UpgradeInsightImpactedResource deserializedUpgradeInsightImpactedResource + = new UpgradeInsightImpactedResource(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("kind".equals(fieldName)) { + deserializedUpgradeInsightImpactedResource.kind + = ImpactedResourceKind.fromString(reader.getString()); + } else if ("resourceType".equals(fieldName)) { + deserializedUpgradeInsightImpactedResource.resourceType = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedUpgradeInsightImpactedResource; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeInsightMaintenanceWindow.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeInsightMaintenanceWindow.java new file mode 100644 index 0000000000000..1186ad5931e69 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeInsightMaintenanceWindow.java @@ -0,0 +1,141 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.CoreUtils; +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.time.OffsetDateTime; + +/** + * A scheduled maintenance window during which an automatic upgrade of this type is + * expected to run. The window is derived from the maintenance configuration that + * governs this upgrade type — the cluster auto-upgrade schedule for Kubernetes + * version upgrades or the node OS upgrade schedule for node image upgrades — so the + * same model describes both without duplicating types. + */ +@Immutable +public final class UpgradeInsightMaintenanceWindow implements JsonSerializable { + /* + * The name of the maintenance configuration that governs this window (for example, aksManagedAutoUpgradeSchedule or + * aksManagedNodeOSUpgradeSchedule). + */ + private String maintenanceConfigurationName; + + /* + * The auto-upgrade schedule that this window is derived from. + */ + private MaintenanceWindowSource source; + + /* + * The UTC start time of the next scheduled maintenance window. + */ + private OffsetDateTime startTime; + + /* + * The UTC end time of the next scheduled maintenance window. + */ + private OffsetDateTime endTime; + + /** + * Creates an instance of UpgradeInsightMaintenanceWindow class. + */ + private UpgradeInsightMaintenanceWindow() { + } + + /** + * Get the maintenanceConfigurationName property: The name of the maintenance configuration that governs this window + * (for example, aksManagedAutoUpgradeSchedule or aksManagedNodeOSUpgradeSchedule). + * + * @return the maintenanceConfigurationName value. + */ + public String maintenanceConfigurationName() { + return this.maintenanceConfigurationName; + } + + /** + * Get the source property: The auto-upgrade schedule that this window is derived from. + * + * @return the source value. + */ + public MaintenanceWindowSource source() { + return this.source; + } + + /** + * Get the startTime property: The UTC start time of the next scheduled maintenance window. + * + * @return the startTime value. + */ + public OffsetDateTime startTime() { + return this.startTime; + } + + /** + * Get the endTime property: The UTC end time of the next scheduled maintenance window. + * + * @return the endTime value. + */ + public OffsetDateTime endTime() { + return this.endTime; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of UpgradeInsightMaintenanceWindow from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of UpgradeInsightMaintenanceWindow 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 UpgradeInsightMaintenanceWindow. + */ + public static UpgradeInsightMaintenanceWindow fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + UpgradeInsightMaintenanceWindow deserializedUpgradeInsightMaintenanceWindow + = new UpgradeInsightMaintenanceWindow(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("maintenanceConfigurationName".equals(fieldName)) { + deserializedUpgradeInsightMaintenanceWindow.maintenanceConfigurationName = reader.getString(); + } else if ("source".equals(fieldName)) { + deserializedUpgradeInsightMaintenanceWindow.source + = MaintenanceWindowSource.fromString(reader.getString()); + } else if ("startTime".equals(fieldName)) { + deserializedUpgradeInsightMaintenanceWindow.startTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("endTime".equals(fieldName)) { + deserializedUpgradeInsightMaintenanceWindow.endTime = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else { + reader.skipChildren(); + } + } + + return deserializedUpgradeInsightMaintenanceWindow; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeInsightProperties.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeInsightProperties.java new file mode 100644 index 0000000000000..95ac93809ab89 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeInsightProperties.java @@ -0,0 +1,230 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.CoreUtils; +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.time.OffsetDateTime; + +/** + * The base properties of an upgrade insight. The concrete shape is determined by + * `upgradeType`, which is encoded in the resource name: single-scope evaluations + * (`ControlPlane`, `AgentPool`, `NodeImage`) carry a flat per-scope result, while a + * combined evaluation (`ControlPlaneAndAgentPools`) carries a nested control plane + * result plus a per-agent-pool array. + */ +@Immutable +public class UpgradeInsightProperties implements JsonSerializable { + /* + * The type of upgrade this insight evaluates. Derived from the resource name. + */ + private UpgradeType upgradeType = UpgradeType.fromString("UpgradeInsightProperties"); + + /* + * The provisioning state of the upgrade insight evaluation. + */ + private ResourceProvisioningState provisioningState; + + /* + * The UTC time at which this upgrade insight was last computed (the last time the + * compute operation ran for this resource). This is the resource-level "last run" + * marker and, for a cached record, indicates how stale the stored evaluation is. For + * a combined evaluation it is the umbrella run time across all scopes, whereas each + * scope's `evaluation.evaluatedAt` records when that specific snapshot was produced. + */ + private OffsetDateTime lastEvaluatedAt; + + /* + * The UTC time at which this stored upgrade insight expires and is removed from the + * data store (currently `lastEvaluatedAt` plus a 14-day retention window). After this + * time a GET for the resource returns 404 Not Found and it no longer appears in the + * list, indicating the caller should call the compute operation to produce a fresh + * evaluation. Exposing the expiry lets clients decide when to recompute without + * hardcoding the retention period. + */ + private OffsetDateTime expiresAt; + + /** + * Creates an instance of UpgradeInsightProperties class. + */ + protected UpgradeInsightProperties() { + } + + /** + * Get the upgradeType property: The type of upgrade this insight evaluates. Derived from the resource name. + * + * @return the upgradeType value. + */ + public UpgradeType upgradeType() { + return this.upgradeType; + } + + /** + * Get the provisioningState property: The provisioning state of the upgrade insight evaluation. + * + * @return the provisioningState value. + */ + public ResourceProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Set the provisioningState property: The provisioning state of the upgrade insight evaluation. + * + * @param provisioningState the provisioningState value to set. + * @return the UpgradeInsightProperties object itself. + */ + UpgradeInsightProperties withProvisioningState(ResourceProvisioningState provisioningState) { + this.provisioningState = provisioningState; + return this; + } + + /** + * Get the lastEvaluatedAt property: The UTC time at which this upgrade insight was last computed (the last time the + * compute operation ran for this resource). This is the resource-level "last run" + * marker and, for a cached record, indicates how stale the stored evaluation is. For + * a combined evaluation it is the umbrella run time across all scopes, whereas each + * scope's `evaluation.evaluatedAt` records when that specific snapshot was produced. + * + * @return the lastEvaluatedAt value. + */ + public OffsetDateTime lastEvaluatedAt() { + return this.lastEvaluatedAt; + } + + /** + * Set the lastEvaluatedAt property: The UTC time at which this upgrade insight was last computed (the last time the + * compute operation ran for this resource). This is the resource-level "last run" + * marker and, for a cached record, indicates how stale the stored evaluation is. For + * a combined evaluation it is the umbrella run time across all scopes, whereas each + * scope's `evaluation.evaluatedAt` records when that specific snapshot was produced. + * + * @param lastEvaluatedAt the lastEvaluatedAt value to set. + * @return the UpgradeInsightProperties object itself. + */ + UpgradeInsightProperties withLastEvaluatedAt(OffsetDateTime lastEvaluatedAt) { + this.lastEvaluatedAt = lastEvaluatedAt; + return this; + } + + /** + * Get the expiresAt property: The UTC time at which this stored upgrade insight expires and is removed from the + * data store (currently `lastEvaluatedAt` plus a 14-day retention window). After this + * time a GET for the resource returns 404 Not Found and it no longer appears in the + * list, indicating the caller should call the compute operation to produce a fresh + * evaluation. Exposing the expiry lets clients decide when to recompute without + * hardcoding the retention period. + * + * @return the expiresAt value. + */ + public OffsetDateTime expiresAt() { + return this.expiresAt; + } + + /** + * Set the expiresAt property: The UTC time at which this stored upgrade insight expires and is removed from the + * data store (currently `lastEvaluatedAt` plus a 14-day retention window). After this + * time a GET for the resource returns 404 Not Found and it no longer appears in the + * list, indicating the caller should call the compute operation to produce a fresh + * evaluation. Exposing the expiry lets clients decide when to recompute without + * hardcoding the retention period. + * + * @param expiresAt the expiresAt value to set. + * @return the UpgradeInsightProperties object itself. + */ + UpgradeInsightProperties withExpiresAt(OffsetDateTime expiresAt) { + this.expiresAt = expiresAt; + return this; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("upgradeType", this.upgradeType == null ? null : this.upgradeType.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of UpgradeInsightProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of UpgradeInsightProperties 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 UpgradeInsightProperties. + */ + public static UpgradeInsightProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String discriminatorValue = null; + try (JsonReader readerToUse = reader.bufferObject()) { + readerToUse.nextToken(); // Prepare for reading + while (readerToUse.nextToken() != JsonToken.END_OBJECT) { + String fieldName = readerToUse.getFieldName(); + readerToUse.nextToken(); + if ("upgradeType".equals(fieldName)) { + discriminatorValue = readerToUse.getString(); + break; + } else { + readerToUse.skipChildren(); + } + } + // Use the discriminator value to determine which subtype should be deserialized. + if ("ControlPlane".equals(discriminatorValue)) { + return ControlPlaneUpgradeInsightProperties.fromJson(readerToUse.reset()); + } else if ("AgentPool".equals(discriminatorValue)) { + return AgentPoolUpgradeInsightProperties.fromJson(readerToUse.reset()); + } else if ("NodeImage".equals(discriminatorValue)) { + return NodeImageUpgradeInsightProperties.fromJson(readerToUse.reset()); + } else if ("ControlPlaneAndAgentPools".equals(discriminatorValue)) { + return ControlPlaneAndAgentPoolsUpgradeInsightProperties.fromJson(readerToUse.reset()); + } else { + return fromJsonKnownDiscriminator(readerToUse.reset()); + } + } + }); + } + + static UpgradeInsightProperties fromJsonKnownDiscriminator(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + UpgradeInsightProperties deserializedUpgradeInsightProperties = new UpgradeInsightProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("upgradeType".equals(fieldName)) { + deserializedUpgradeInsightProperties.upgradeType = UpgradeType.fromString(reader.getString()); + } else if ("provisioningState".equals(fieldName)) { + deserializedUpgradeInsightProperties.provisioningState + = ResourceProvisioningState.fromString(reader.getString()); + } else if ("lastEvaluatedAt".equals(fieldName)) { + deserializedUpgradeInsightProperties.lastEvaluatedAt = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("expiresAt".equals(fieldName)) { + deserializedUpgradeInsightProperties.expiresAt = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else { + reader.skipChildren(); + } + } + + return deserializedUpgradeInsightProperties; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeInsightRecommendedAction.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeInsightRecommendedAction.java new file mode 100644 index 0000000000000..ccddedba2c35c --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeInsightRecommendedAction.java @@ -0,0 +1,115 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * A recommended action to resolve a detected upgrade issue. + */ +@Immutable +public final class UpgradeInsightRecommendedAction implements JsonSerializable { + /* + * A short title describing the recommended action. + */ + private String title; + + /* + * A detailed description of the recommended action and how to perform it. + */ + private String details; + + /* + * A link to customer-facing documentation describing the available options for remediating the issue. + */ + private String documentationLink; + + /** + * Creates an instance of UpgradeInsightRecommendedAction class. + */ + private UpgradeInsightRecommendedAction() { + } + + /** + * Get the title property: A short title describing the recommended action. + * + * @return the title value. + */ + public String title() { + return this.title; + } + + /** + * Get the details property: A detailed description of the recommended action and how to perform it. + * + * @return the details value. + */ + public String details() { + return this.details; + } + + /** + * Get the documentationLink property: A link to customer-facing documentation describing the available options for + * remediating the issue. + * + * @return the documentationLink value. + */ + public String documentationLink() { + return this.documentationLink; + } + + /** + * Validates the instance. + * + * @throws IllegalArgumentException thrown if the instance is not valid. + */ + public void validate() { + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of UpgradeInsightRecommendedAction from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of UpgradeInsightRecommendedAction 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 UpgradeInsightRecommendedAction. + */ + public static UpgradeInsightRecommendedAction fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + UpgradeInsightRecommendedAction deserializedUpgradeInsightRecommendedAction + = new UpgradeInsightRecommendedAction(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("title".equals(fieldName)) { + deserializedUpgradeInsightRecommendedAction.title = reader.getString(); + } else if ("details".equals(fieldName)) { + deserializedUpgradeInsightRecommendedAction.details = reader.getString(); + } else if ("documentationLink".equals(fieldName)) { + deserializedUpgradeInsightRecommendedAction.documentationLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedUpgradeInsightRecommendedAction; + }); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeInsightStatus.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeInsightStatus.java new file mode 100644 index 0000000000000..16d6e76f0f65c --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeInsightStatus.java @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The overall status of an upgrade insight readiness evaluation. This is an aggregation of the + * per-issue `severity` values in `detectedIssues`: any `Blocking` issue ⇒ `Failed`; + * otherwise any `Warning` issue ⇒ `Warning`; otherwise (no issues) ⇒ `Passed`. The + * scope-level vocabulary here (Passed/Warning/Failed) intentionally differs from the + * issue-level `UpgradeIssueSeverity` (Blocking/Warning): a `Blocking` issue maps to + * a `Failed` status, while `Warning` maps through unchanged. + */ +public final class UpgradeInsightStatus extends ExpandableStringEnum { + /** + * The evaluation completed and no upgrade issues were found for the target version; the scope appears ready to + * upgrade. + */ + public static final UpgradeInsightStatus PASSED = fromString("Passed"); + + /** + * The evaluation found one or more non-blocking warnings; the upgrade is expected to succeed but the warnings + * should be reviewed. + */ + public static final UpgradeInsightStatus WARNING = fromString("Warning"); + + /** + * The evaluation found one or more blocking issues that will prevent the upgrade from completing until they are + * resolved. This reflects the readiness result, not a failure of the compute operation itself (that is conveyed by + * provisioningState). + */ + public static final UpgradeInsightStatus FAILED = fromString("Failed"); + + /** + * Creates a new instance of UpgradeInsightStatus value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public UpgradeInsightStatus() { + } + + /** + * Creates or finds a UpgradeInsightStatus from its string representation. + * + * @param name a name to look for. + * @return the corresponding UpgradeInsightStatus. + */ + public static UpgradeInsightStatus fromString(String name) { + return fromString(name, UpgradeInsightStatus.class); + } + + /** + * Gets known UpgradeInsightStatus values. + * + * @return known UpgradeInsightStatus values. + */ + public static Collection values() { + return values(UpgradeInsightStatus.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeInsightStrategy.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeInsightStrategy.java new file mode 100644 index 0000000000000..558876535cb84 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeInsightStrategy.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The strategy currently used to perform an upgrade (manual or automatic). + */ +public final class UpgradeInsightStrategy extends ExpandableStringEnum { + /** + * Upgrades are initiated manually by the customer. + */ + public static final UpgradeInsightStrategy MANUAL = fromString("Manual"); + + /** + * Upgrades are performed automatically by AKS auto-upgrade. + */ + public static final UpgradeInsightStrategy AUTO = fromString("Auto"); + + /** + * Creates a new instance of UpgradeInsightStrategy value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public UpgradeInsightStrategy() { + } + + /** + * Creates or finds a UpgradeInsightStrategy from its string representation. + * + * @param name a name to look for. + * @return the corresponding UpgradeInsightStrategy. + */ + public static UpgradeInsightStrategy fromString(String name) { + return fromString(name, UpgradeInsightStrategy.class); + } + + /** + * Gets known UpgradeInsightStrategy values. + * + * @return known UpgradeInsightStrategy values. + */ + public static Collection values() { + return values(UpgradeInsightStrategy.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeIssueSeverity.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeIssueSeverity.java new file mode 100644 index 0000000000000..98280f1436cb2 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeIssueSeverity.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The severity of a detected upgrade issue. + */ +public final class UpgradeIssueSeverity extends ExpandableStringEnum { + /** + * The issue will block the upgrade from completing successfully. + */ + public static final UpgradeIssueSeverity BLOCKING = fromString("Blocking"); + + /** + * The issue may cause problems with client applications or services on the cluster but will not necessarily prevent + * the upgrade from completing. + */ + public static final UpgradeIssueSeverity WARNING = fromString("Warning"); + + /** + * Creates a new instance of UpgradeIssueSeverity value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public UpgradeIssueSeverity() { + } + + /** + * Creates or finds a UpgradeIssueSeverity from its string representation. + * + * @param name a name to look for. + * @return the corresponding UpgradeIssueSeverity. + */ + public static UpgradeIssueSeverity fromString(String name) { + return fromString(name, UpgradeIssueSeverity.class); + } + + /** + * Gets known UpgradeIssueSeverity values. + * + * @return known UpgradeIssueSeverity values. + */ + public static Collection values() { + return values(UpgradeIssueSeverity.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeIssueType.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeIssueType.java new file mode 100644 index 0000000000000..5b3fa9f092fe6 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeIssueType.java @@ -0,0 +1,83 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The type of a detected upgrade issue. + */ +public final class UpgradeIssueType extends ExpandableStringEnum { + /** + * A restrictive PodDisruptionBudget prevents node drain during upgrade. See + * https://aka.ms/aks/upgrade-insights/pdb-constraint for remediation guidance. + */ + public static final UpgradeIssueType PDBCONSTRAINT = fromString("PDBConstraint"); + + /** + * The cluster subnet does not have sufficient available IP addresses for surge nodes during upgrade. See + * https://aka.ms/aks/upgrade-insights/subnet-ip-exhaustion for remediation guidance. + */ + public static final UpgradeIssueType SUBNET_IPEXHAUSTED = fromString("SubnetIPExhausted"); + + /** + * Compute quota for the node pool VM SKU is insufficient to accommodate surge nodes during upgrade. See + * https://aka.ms/aks/upgrade-insights/quota-exceeded for remediation guidance. + */ + public static final UpgradeIssueType QUOTA_EXCEEDED = fromString("QuotaExceeded"); + + /** + * The cluster is using deprecated Kubernetes APIs that are removed in the target version. See + * https://aka.ms/aks/upgrade-insights/api-breaking-change for remediation guidance. + */ + public static final UpgradeIssueType APIBREAKING_CHANGE = fromString("APIBreakingChange"); + + /** + * An add-on or system component is not compatible with the target Kubernetes version. See + * https://aka.ms/aks/upgrade-insights/component-version-mismatch for remediation guidance. + */ + public static final UpgradeIssueType COMPONENT_VERSION_MISMATCH = fromString("ComponentVersionMismatch"); + + /** + * The cluster is running a Kubernetes version that is no longer supported. See + * https://aka.ms/aks/upgrade-insights/unsupported-kubernetes-version for remediation guidance. + */ + public static final UpgradeIssueType UNSUPPORTED_KUBERNETES_VERSION = fromString("UnsupportedKubernetesVersion"); + + /** + * The cluster node image has not been upgraded within the required compliance interval. See + * https://aka.ms/aks/upgrade-insights/node-image-out-of-sla for remediation guidance. + */ + public static final UpgradeIssueType NODE_IMAGE_OUT_OF_SLA = fromString("NodeImageOutOfSLA"); + + /** + * Creates a new instance of UpgradeIssueType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public UpgradeIssueType() { + } + + /** + * Creates or finds a UpgradeIssueType from its string representation. + * + * @param name a name to look for. + * @return the corresponding UpgradeIssueType. + */ + public static UpgradeIssueType fromString(String name) { + return fromString(name, UpgradeIssueType.class); + } + + /** + * Gets known UpgradeIssueType values. + * + * @return known UpgradeIssueType values. + */ + public static Collection values() { + return values(UpgradeIssueType.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeStrategy.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeStrategy.java new file mode 100644 index 0000000000000..3a3241c046990 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeStrategy.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Defines the upgrade strategy for the agent pool. The default is Rolling. + */ +public final class UpgradeStrategy extends ExpandableStringEnum { + /** + * Specifies that the agent pool will conduct rolling upgrade. This is the default upgrade strategy. + */ + public static final UpgradeStrategy ROLLING = fromString("Rolling"); + + /** + * Specifies that the agent pool will conduct blue-green upgrade. + */ + public static final UpgradeStrategy BLUE_GREEN = fromString("BlueGreen"); + + /** + * Creates a new instance of UpgradeStrategy value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public UpgradeStrategy() { + } + + /** + * Creates or finds a UpgradeStrategy from its string representation. + * + * @param name a name to look for. + * @return the corresponding UpgradeStrategy. + */ + public static UpgradeStrategy fromString(String name) { + return fromString(name, UpgradeStrategy.class); + } + + /** + * Gets known UpgradeStrategy values. + * + * @return known UpgradeStrategy values. + */ + public static Collection values() { + return values(UpgradeStrategy.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeType.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeType.java new file mode 100644 index 0000000000000..67f53b5efa31c --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeType.java @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The type of upgrade an upgrade insight evaluates. Each upgrade insight resource + * represents exactly one of these scopes; the scope is encoded in the resource name. + */ +public final class UpgradeType extends ExpandableStringEnum { + /** + * The control plane (managed cluster) Kubernetes version upgrade. + */ + public static final UpgradeType CONTROL_PLANE = fromString("ControlPlane"); + + /** + * An agent pool (node pool) Kubernetes version upgrade. + */ + public static final UpgradeType AGENT_POOL = fromString("AgentPool"); + + /** + * An agent pool node OS image upgrade. NodeImage upgrade insights are evaluated per agent pool, mirroring the + * per-pool node-image upgrade API (.../agentPools/{name}), and cover the node OS image only; agent-pool Kubernetes + * version readiness is evaluated separately via the AgentPool or ControlPlaneAndAgentPools scopes. + */ + public static final UpgradeType NODE_IMAGE = fromString("NodeImage"); + + /** + * A combined evaluation of the control plane plus every agent pool for a single target Kubernetes version. This + * scope covers Kubernetes version upgrades only; node OS image upgrades are not included and must be evaluated + * separately using the NodeImage scope. + */ + public static final UpgradeType CONTROL_PLANE_AND_AGENT_POOLS = fromString("ControlPlaneAndAgentPools"); + + /** + * Creates a new instance of UpgradeType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public UpgradeType() { + } + + /** + * Creates or finds a UpgradeType from its string representation. + * + * @param name a name to look for. + * @return the corresponding UpgradeType. + */ + public static UpgradeType fromString(String name) { + return fromString(name, UpgradeType.class); + } + + /** + * Gets known UpgradeType values. + * + * @return known UpgradeType values. + */ + public static Collection values() { + return values(UpgradeType.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/VmState.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/VmState.java new file mode 100644 index 0000000000000..77ae5a314d12b --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/VmState.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Virtual machine state. Indicates the current state of the underlying virtual machine. + */ +public final class VmState extends ExpandableStringEnum { + /** + * The virtual machine is currently running. + */ + public static final VmState RUNNING = fromString("Running"); + + /** + * The virtual machine has been deleted by the user or due to spot eviction. + */ + public static final VmState DELETED = fromString("Deleted"); + + /** + * Creates a new instance of VmState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public VmState() { + } + + /** + * Creates or finds a VmState from its string representation. + * + * @param name a name to look for. + * @return the corresponding VmState. + */ + public static VmState fromString(String name) { + return fromString(name, VmState.class); + } + + /** + * Gets known VmState values. + * + * @return known VmState values. + */ + public static Collection values() { + return values(VmState.class); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/WorkloadRuntime.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/WorkloadRuntime.java index 2a39c6c567629..5410b0b3bce87 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/WorkloadRuntime.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/java/com/azure/resourcemanager/containerservice/models/WorkloadRuntime.java @@ -21,6 +21,14 @@ public final class WorkloadRuntime extends ExpandableStringEnum */ public static final WorkloadRuntime WASM_WASI = fromString("WasmWasi"); + /** + * Nodes can use (Kata + Cloud Hypervisor + Hyper-V) to enable Nested VM-based pods (Preview). Due to the use + * Hyper-V, AKS node OS itself is a nested VM (the root OS) of Hyper-V. Thus it can only be used with VM series that + * support Nested Virtualization such as Dv3 series. This naming convention will be deprecated in future releases in + * favor of KataVmIsolation. + */ + public static final WorkloadRuntime KATA_MSHV_VM_ISOLATION = fromString("KataMshvVmIsolation"); + /** * Nodes can use (Kata + Cloud Hypervisor + Hyper-V) to enable Nested VM-based pods. Due to the use Hyper-V, AKS * node OS itself is a nested VM (the root OS) of Hyper-V. Thus it can only be used with VM series that support diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/resources/META-INF/azure-resourcemanager-containerservice_metadata.json b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/resources/META-INF/azure-resourcemanager-containerservice_metadata.json index 0dca2d6a8c283..a119bfb1514e7 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/resources/META-INF/azure-resourcemanager-containerservice_metadata.json +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/resources/META-INF/azure-resourcemanager-containerservice_metadata.json @@ -1 +1 @@ -{"flavor":"azure","apiVersions":{"Microsoft.ContainerService":"2026-08-01"},"crossLanguagePackageId":"Microsoft.ContainerService","crossLanguageVersion":"56064badd067","generatedFiles":["src/main/java/com/azure/resourcemanager/containerservice/fluent/AgentPoolsClient.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/ContainerServiceManagementClient.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/IdentityBindingsClient.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/MachinesClient.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/MaintenanceConfigurationsClient.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/ManagedClustersClient.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/ManagedNamespacesClient.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/PrivateEndpointConnectionsClient.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/PrivateLinkResourcesClient.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/ResolvePrivateLinkServiceIdsClient.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/SnapshotsClient.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/TrustedAccessRoleBindingsClient.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/TrustedAccessRolesClient.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AccessProfile.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolAvailableVersionsInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolAvailableVersionsProperties.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolUpgradeProfileInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolUpgradeProfileProperties.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/CommandResultProperties.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/CredentialResultsInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/IdentityBindingInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/KubernetesVersionListResultInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MachineInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MaintenanceConfigurationInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MaintenanceConfigurationProperties.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterAccessProfileInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterAgentPoolProfileProperties.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterProperties.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterUpgradeProfileInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterUpgradeProfileProperties.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedNamespaceInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MeshRevisionProfileInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MeshUpgradeProfileInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/OperationValueDisplay.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/OperationValueInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/OutboundEnvironmentEndpointInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/PrivateEndpointConnectionInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/PrivateEndpointConnectionListResultInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/PrivateEndpointConnectionProperties.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/PrivateLinkResourceInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/PrivateLinkResourcesListResultInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/RunCommandResultInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/SnapshotInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/SnapshotProperties.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/TrustedAccessRoleBindingInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/TrustedAccessRoleBindingProperties.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/TrustedAccessRoleInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/package-info.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/AgentPoolsClientImpl.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/ContainerServiceManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/ContainerServiceManagementClientImpl.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/IdentityBindingsClientImpl.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/MachinesClientImpl.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/MaintenanceConfigurationsClientImpl.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedClustersClientImpl.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedNamespacesClientImpl.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateEndpointConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateLinkResourcesClientImpl.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/ResolvePrivateLinkServiceIdsClientImpl.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/SnapshotsClientImpl.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/TrustedAccessRoleBindingsClientImpl.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/TrustedAccessRolesClientImpl.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/AgentPoolListResult.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/IdentityBindingListResult.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/MachineListResult.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/MaintenanceConfigurationListResult.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/ManagedClusterListResult.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/ManagedNamespaceListResult.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/MeshRevisionProfileList.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/MeshUpgradeProfileList.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/OutboundEnvironmentEndpointCollection.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/SnapshotListResult.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/TrustedAccessRoleBindingListResult.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/TrustedAccessRoleListResult.java","src/main/java/com/azure/resourcemanager/containerservice/models/AbsoluteMonthlySchedule.java","src/main/java/com/azure/resourcemanager/containerservice/models/AccelerationMode.java","src/main/java/com/azure/resourcemanager/containerservice/models/AdoptionPolicy.java","src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworkPolicies.java","src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworking.java","src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworkingObservability.java","src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworkingPerformance.java","src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworkingSecurity.java","src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworkingSecurityTransitEncryption.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolArtifactStreamingProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolDeleteMachinesParameter.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolGatewayProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolMode.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolNetworkProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolRecentlyUsedVersion.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolSecurityProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolSshAccess.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolStatus.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolType.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpgradeProfilePropertiesUpgradesItem.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpgradeSettings.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolWindowsProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ArtifactSource.java","src/main/java/com/azure/resourcemanager/containerservice/models/AutoScaleProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/AzureKeyVaultKms.java","src/main/java/com/azure/resourcemanager/containerservice/models/BackendPoolType.java","src/main/java/com/azure/resourcemanager/containerservice/models/ClusterUpgradeSettings.java","src/main/java/com/azure/resourcemanager/containerservice/models/Code.java","src/main/java/com/azure/resourcemanager/containerservice/models/CompatibleVersions.java","src/main/java/com/azure/resourcemanager/containerservice/models/ConnectionStatus.java","src/main/java/com/azure/resourcemanager/containerservice/models/ContainerNetworkLogs.java","src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceLinuxProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceNetworkProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceSshConfiguration.java","src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceSshPublicKey.java","src/main/java/com/azure/resourcemanager/containerservice/models/CreationData.java","src/main/java/com/azure/resourcemanager/containerservice/models/CredentialResult.java","src/main/java/com/azure/resourcemanager/containerservice/models/DRANETMode.java","src/main/java/com/azure/resourcemanager/containerservice/models/DRANETProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/DailySchedule.java","src/main/java/com/azure/resourcemanager/containerservice/models/DateSpan.java","src/main/java/com/azure/resourcemanager/containerservice/models/DelegatedResource.java","src/main/java/com/azure/resourcemanager/containerservice/models/DeletePolicy.java","src/main/java/com/azure/resourcemanager/containerservice/models/EndpointDependency.java","src/main/java/com/azure/resourcemanager/containerservice/models/EndpointDetail.java","src/main/java/com/azure/resourcemanager/containerservice/models/Expander.java","src/main/java/com/azure/resourcemanager/containerservice/models/ExtendedLocation.java","src/main/java/com/azure/resourcemanager/containerservice/models/ExtendedLocationTypes.java","src/main/java/com/azure/resourcemanager/containerservice/models/Format.java","src/main/java/com/azure/resourcemanager/containerservice/models/GatewayApiIstioEnabled.java","src/main/java/com/azure/resourcemanager/containerservice/models/GpuDriver.java","src/main/java/com/azure/resourcemanager/containerservice/models/GpuInstanceProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/GpuProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/IdentityBindingManagedIdentityProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/IdentityBindingOidcIssuerProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/IdentityBindingProperties.java","src/main/java/com/azure/resourcemanager/containerservice/models/IdentityBindingProvisioningState.java","src/main/java/com/azure/resourcemanager/containerservice/models/InfrastructureEncryption.java","src/main/java/com/azure/resourcemanager/containerservice/models/IpFamily.java","src/main/java/com/azure/resourcemanager/containerservice/models/IpTag.java","src/main/java/com/azure/resourcemanager/containerservice/models/IstioCertificateAuthority.java","src/main/java/com/azure/resourcemanager/containerservice/models/IstioComponents.java","src/main/java/com/azure/resourcemanager/containerservice/models/IstioEgressGateway.java","src/main/java/com/azure/resourcemanager/containerservice/models/IstioIngressGateway.java","src/main/java/com/azure/resourcemanager/containerservice/models/IstioIngressGatewayMode.java","src/main/java/com/azure/resourcemanager/containerservice/models/IstioPluginCertificateAuthority.java","src/main/java/com/azure/resourcemanager/containerservice/models/IstioServiceMesh.java","src/main/java/com/azure/resourcemanager/containerservice/models/KeyVaultNetworkAccessTypes.java","src/main/java/com/azure/resourcemanager/containerservice/models/KubeletConfig.java","src/main/java/com/azure/resourcemanager/containerservice/models/KubeletDiskType.java","src/main/java/com/azure/resourcemanager/containerservice/models/KubernetesPatchVersion.java","src/main/java/com/azure/resourcemanager/containerservice/models/KubernetesResourceObjectEncryptionProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/KubernetesSupportPlan.java","src/main/java/com/azure/resourcemanager/containerservice/models/KubernetesVersion.java","src/main/java/com/azure/resourcemanager/containerservice/models/KubernetesVersionCapabilities.java","src/main/java/com/azure/resourcemanager/containerservice/models/LicenseType.java","src/main/java/com/azure/resourcemanager/containerservice/models/LinuxOSConfig.java","src/main/java/com/azure/resourcemanager/containerservice/models/LoadBalancerSku.java","src/main/java/com/azure/resourcemanager/containerservice/models/LocalDnsForwardDestination.java","src/main/java/com/azure/resourcemanager/containerservice/models/LocalDnsForwardPolicy.java","src/main/java/com/azure/resourcemanager/containerservice/models/LocalDnsMode.java","src/main/java/com/azure/resourcemanager/containerservice/models/LocalDnsOverride.java","src/main/java/com/azure/resourcemanager/containerservice/models/LocalDnsProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/LocalDnsProtocol.java","src/main/java/com/azure/resourcemanager/containerservice/models/LocalDnsQueryLogging.java","src/main/java/com/azure/resourcemanager/containerservice/models/LocalDnsServeStale.java","src/main/java/com/azure/resourcemanager/containerservice/models/LocalDnsState.java","src/main/java/com/azure/resourcemanager/containerservice/models/MachineIpAddress.java","src/main/java/com/azure/resourcemanager/containerservice/models/MachineNetworkProperties.java","src/main/java/com/azure/resourcemanager/containerservice/models/MachineProperties.java","src/main/java/com/azure/resourcemanager/containerservice/models/MaintenanceWindow.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAIToolchainOperatorProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAadProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAddonProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAddonProfileIdentity.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAgentPoolProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterApiServerAccessProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAppRoutingIstio.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAutoUpgradeProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileAppMonitoring.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogsAndTraces.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileContainerInsights.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileKubeStateMetrics.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileMetrics.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileMetricsControlPlane.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterBootstrapProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterCostAnalysis.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterHostedSystemProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterHttpProxyConfig.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIdentity.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressProfileGatewayConfiguration.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressProfileNginx.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressProfileWebAppRouting.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterLoadBalancerProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterLoadBalancerProfileManagedOutboundIPs.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterLoadBalancerProfileOutboundIPs.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterLoadBalancerProfileOutboundIpPrefixes.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterManagedOutboundIpProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterMetricsProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterNATGatewayProfileOutboundIPs.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterNATGatewayProfileOutboundIpPrefixes.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterNATGatewaySku.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterNatGatewayProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterNodeProvisioningProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterNodeResourceGroupProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterOidcIssuerProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPodIdentity.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPodIdentityException.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPodIdentityProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPodIdentityProvisioningError.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPodIdentityProvisioningErrorBody.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPodIdentityProvisioningInfo.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPodIdentityProvisioningState.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPoolUpgradeProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPoolUpgradeProfileUpgradesItem.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPropertiesAutoScalerProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileDefender.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileDefenderSecurityGating.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileDefenderSecurityGatingIdentity.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileDefenderSecurityMonitoring.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileImageCleaner.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileWorkloadIdentity.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterServicePrincipalProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSku.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSkuName.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSkuTier.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStaticEgressGatewayProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStatus.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfileBlobCsiDriver.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfileDiskCsiDriver.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfileFileCsiDriver.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfileSnapshotController.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterWebAppRoutingGatewayApiImplementations.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterWindowsProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterWorkloadAutoScalerProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterWorkloadAutoScalerProfileKeda.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClustersGetCommandResultHeaders.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClustersGetCommandResultResponse.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedGatewayType.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedServiceIdentityUserAssignedIdentitiesValue.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagementMode.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManualScaleProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/MeshRevision.java","src/main/java/com/azure/resourcemanager/containerservice/models/MeshRevisionProfileProperties.java","src/main/java/com/azure/resourcemanager/containerservice/models/MeshUpgradeProfileProperties.java","src/main/java/com/azure/resourcemanager/containerservice/models/NamespaceProperties.java","src/main/java/com/azure/resourcemanager/containerservice/models/NamespaceProvisioningState.java","src/main/java/com/azure/resourcemanager/containerservice/models/NetworkDataplane.java","src/main/java/com/azure/resourcemanager/containerservice/models/NetworkMode.java","src/main/java/com/azure/resourcemanager/containerservice/models/NetworkPlugin.java","src/main/java/com/azure/resourcemanager/containerservice/models/NetworkPluginMode.java","src/main/java/com/azure/resourcemanager/containerservice/models/NetworkPolicies.java","src/main/java/com/azure/resourcemanager/containerservice/models/NetworkPolicy.java","src/main/java/com/azure/resourcemanager/containerservice/models/NginxIngressControllerType.java","src/main/java/com/azure/resourcemanager/containerservice/models/NodeOSUpgradeChannel.java","src/main/java/com/azure/resourcemanager/containerservice/models/NodeProvisioningDefaultNodePools.java","src/main/java/com/azure/resourcemanager/containerservice/models/NodeProvisioningMode.java","src/main/java/com/azure/resourcemanager/containerservice/models/NvidiaGPUProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/OSDiskType.java","src/main/java/com/azure/resourcemanager/containerservice/models/OSSku.java","src/main/java/com/azure/resourcemanager/containerservice/models/OSType.java","src/main/java/com/azure/resourcemanager/containerservice/models/OutboundType.java","src/main/java/com/azure/resourcemanager/containerservice/models/PodIpAllocationMode.java","src/main/java/com/azure/resourcemanager/containerservice/models/PolicyRule.java","src/main/java/com/azure/resourcemanager/containerservice/models/PortRange.java","src/main/java/com/azure/resourcemanager/containerservice/models/PowerState.java","src/main/java/com/azure/resourcemanager/containerservice/models/PrivateEndpoint.java","src/main/java/com/azure/resourcemanager/containerservice/models/PrivateEndpointConnectionProvisioningState.java","src/main/java/com/azure/resourcemanager/containerservice/models/PrivateLinkServiceConnectionState.java","src/main/java/com/azure/resourcemanager/containerservice/models/Protocol.java","src/main/java/com/azure/resourcemanager/containerservice/models/ProxyRedirectionMechanism.java","src/main/java/com/azure/resourcemanager/containerservice/models/PublicNetworkAccess.java","src/main/java/com/azure/resourcemanager/containerservice/models/RelativeMonthlySchedule.java","src/main/java/com/azure/resourcemanager/containerservice/models/ResourceIdentityType.java","src/main/java/com/azure/resourcemanager/containerservice/models/ResourceQuota.java","src/main/java/com/azure/resourcemanager/containerservice/models/ResourceReference.java","src/main/java/com/azure/resourcemanager/containerservice/models/RestrictionLevel.java","src/main/java/com/azure/resourcemanager/containerservice/models/RunCommandRequest.java","src/main/java/com/azure/resourcemanager/containerservice/models/ScaleDownMode.java","src/main/java/com/azure/resourcemanager/containerservice/models/ScaleProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ScaleSetEvictionPolicy.java","src/main/java/com/azure/resourcemanager/containerservice/models/ScaleSetPriority.java","src/main/java/com/azure/resourcemanager/containerservice/models/Schedule.java","src/main/java/com/azure/resourcemanager/containerservice/models/SchedulerConfigMode.java","src/main/java/com/azure/resourcemanager/containerservice/models/SchedulerInstanceProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/SchedulerProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ServiceMeshMode.java","src/main/java/com/azure/resourcemanager/containerservice/models/ServiceMeshProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/SnapshotType.java","src/main/java/com/azure/resourcemanager/containerservice/models/SysctlConfig.java","src/main/java/com/azure/resourcemanager/containerservice/models/TagsObject.java","src/main/java/com/azure/resourcemanager/containerservice/models/TimeInWeek.java","src/main/java/com/azure/resourcemanager/containerservice/models/TimeSpan.java","src/main/java/com/azure/resourcemanager/containerservice/models/TransitEncryptionType.java","src/main/java/com/azure/resourcemanager/containerservice/models/TrustedAccessRoleBindingProvisioningState.java","src/main/java/com/azure/resourcemanager/containerservice/models/TrustedAccessRoleRule.java","src/main/java/com/azure/resourcemanager/containerservice/models/Type.java","src/main/java/com/azure/resourcemanager/containerservice/models/UndrainableNodeBehavior.java","src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeChannel.java","src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeOverrideSettings.java","src/main/java/com/azure/resourcemanager/containerservice/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/containerservice/models/VirtualMachineNodes.java","src/main/java/com/azure/resourcemanager/containerservice/models/VirtualMachinesProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/WeekDay.java","src/main/java/com/azure/resourcemanager/containerservice/models/WeeklySchedule.java","src/main/java/com/azure/resourcemanager/containerservice/models/WindowsGmsaProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/WorkloadRuntime.java","src/main/java/com/azure/resourcemanager/containerservice/models/package-info.java","src/main/java/com/azure/resourcemanager/containerservice/package-info.java"]} \ No newline at end of file +{"flavor":"azure","apiVersions":{"Microsoft.ContainerService":"2026-08-02-preview"},"crossLanguagePackageId":"Microsoft.ContainerService","crossLanguageVersion":"b16d12ff3951","generatedFiles":["src/main/java/com/azure/resourcemanager/containerservice/fluent/AgentFabricMembershipsClient.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/AgentPoolsClient.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/AlertConfigurationsClient.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/ContainerServiceManagementClient.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/IdentityBindingsClient.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/JWTAuthenticatorsClient.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/LoadBalancersClient.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/MachinesClient.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/MaintenanceConfigurationsClient.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/MaintenanceWindowsClient.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/ManagedClusterSnapshotsClient.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/ManagedClustersClient.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/ManagedNamespacesClient.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/MeshMembershipsClient.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/OperationStatusResultsClient.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/PrivateEndpointConnectionsClient.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/PrivateLinkResourcesClient.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/ResolvePrivateLinkServiceIdsClient.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/SnapshotsClient.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/TrustedAccessRoleBindingsClient.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/TrustedAccessRolesClient.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/UpgradeInsightsClient.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/VmSkusClient.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AccessProfile.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentFabricMembershipInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolAvailableVersionsInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolAvailableVersionsProperties.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolUpgradeProfileInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AgentPoolUpgradeProfileProperties.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/AlertConfigurationInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/CommandResultProperties.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/CredentialResultsInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/GuardrailsAvailableVersionInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/IdentityBindingInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/JWTAuthenticatorInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/KubernetesVersionListResultInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/LoadBalancerInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/LoadBalancerProperties.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MachineInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MaintenanceConfigurationInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MaintenanceConfigurationProperties.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MaintenanceWindowResourceInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterAccessProfileInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterAgentPoolProfileProperties.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterProperties.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterSnapshotInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterSnapshotProperties.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterUpgradeProfileInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedClusterUpgradeProfileProperties.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ManagedNamespaceInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MeshMembershipInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MeshRevisionProfileInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/MeshUpgradeProfileInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/NodeImageVersionInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/OperationStatusResultInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/OperationValueDisplay.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/OperationValueInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/OutboundEnvironmentEndpointInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/PoolBootstrapDataInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/PrivateEndpointConnectionInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/PrivateEndpointConnectionListResultInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/PrivateEndpointConnectionProperties.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/PrivateLinkResourceInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/PrivateLinkResourcesListResultInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/ResourceSkuInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/RunCommandResultInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/SafeguardsAvailableVersionInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/SnapshotInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/SnapshotProperties.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/TrustedAccessRoleBindingInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/TrustedAccessRoleBindingProperties.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/TrustedAccessRoleInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/UpgradeInsightInner.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/containerservice/fluent/package-info.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/AgentFabricMembershipsClientImpl.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/AgentPoolsClientImpl.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/AlertConfigurationsClientImpl.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/ContainerServiceManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/ContainerServiceManagementClientImpl.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/IdentityBindingsClientImpl.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/JWTAuthenticatorsClientImpl.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/LoadBalancersClientImpl.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/MachinesClientImpl.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/MaintenanceConfigurationsClientImpl.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/MaintenanceWindowsClientImpl.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedClusterSnapshotsClientImpl.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedClustersClientImpl.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/ManagedNamespacesClientImpl.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/MeshMembershipsClientImpl.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/OperationStatusResultsClientImpl.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateEndpointConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/PrivateLinkResourcesClientImpl.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/ResolvePrivateLinkServiceIdsClientImpl.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/SnapshotsClientImpl.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/TrustedAccessRoleBindingsClientImpl.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/TrustedAccessRolesClientImpl.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/UpgradeInsightsClientImpl.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/VmSkusClientImpl.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/AgentFabricMembershipsListResult.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/AgentPoolListResult.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/AlertConfigurationListResult.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/GuardrailsAvailableVersionsList.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/IdentityBindingListResult.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/JWTAuthenticatorListResult.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/LoadBalancerListResult.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/MachineListResult.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/MaintenanceConfigurationListResult.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/MaintenanceWindowResourceListResult.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/ManagedClusterListResult.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/ManagedClusterSnapshotListResult.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/ManagedNamespaceListResult.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/MeshMembershipsListResult.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/MeshRevisionProfileList.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/MeshUpgradeProfileList.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/NodeImageVersionsListResult.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/OperationStatusResultList.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/OutboundEnvironmentEndpointCollection.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/SafeguardsAvailableVersionsList.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/SnapshotListResult.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/TrustedAccessRoleBindingListResult.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/TrustedAccessRoleListResult.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/UpgradeInsightListResult.java","src/main/java/com/azure/resourcemanager/containerservice/implementation/models/VmSkusListResult.java","src/main/java/com/azure/resourcemanager/containerservice/models/AbsoluteMonthlySchedule.java","src/main/java/com/azure/resourcemanager/containerservice/models/AccelerationMode.java","src/main/java/com/azure/resourcemanager/containerservice/models/AddonAutoscaling.java","src/main/java/com/azure/resourcemanager/containerservice/models/AdoptionPolicy.java","src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworkPolicies.java","src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworking.java","src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworkingObservability.java","src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworkingPerformance.java","src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworkingSecurity.java","src/main/java/com/azure/resourcemanager/containerservice/models/AdvancedNetworkingSecurityTransitEncryption.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentFabricMembershipProperties.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentFabricMembershipProvisioningState.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentFabricMembershipSkuName.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolArtifactStreamingProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolAvailableVersionsPropertiesAgentPoolVersionsItem.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolBlueGreenUpgradeSettings.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolDeleteMachinesParameter.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolGatewayProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolGenerateUpgradeInsightsContent.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolMode.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolNICPublicIPAddressConfiguration.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolNICPublicIPAddressVersion.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolNetworkInterface.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolNetworkInterfaceType.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolNetworkProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolRecentlyUsedVersion.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolScopeEvaluation.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolSecurityProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolSshAccess.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolStatus.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolType.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpdate.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpdateManualScaleProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpdateProperties.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpdateScaleProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpdateVirtualMachinesProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpgradeInsightProperties.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpgradeProfilePropertiesUpgradesItem.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolUpgradeSettings.java","src/main/java/com/azure/resourcemanager/containerservice/models/AgentPoolWindowsProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/AlertConfigurationMode.java","src/main/java/com/azure/resourcemanager/containerservice/models/AlertConfigurationProperties.java","src/main/java/com/azure/resourcemanager/containerservice/models/AlertConfigurationProvisioningState.java","src/main/java/com/azure/resourcemanager/containerservice/models/AlertNotification.java","src/main/java/com/azure/resourcemanager/containerservice/models/AllowedSubject.java","src/main/java/com/azure/resourcemanager/containerservice/models/ArmImpactedResource.java","src/main/java/com/azure/resourcemanager/containerservice/models/ArtifactSource.java","src/main/java/com/azure/resourcemanager/containerservice/models/AutoScaleProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/AzureKeyVaultKms.java","src/main/java/com/azure/resourcemanager/containerservice/models/BackendPoolType.java","src/main/java/com/azure/resourcemanager/containerservice/models/BastionProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/BastionSku.java","src/main/java/com/azure/resourcemanager/containerservice/models/BootstrapAzureConfig.java","src/main/java/com/azure/resourcemanager/containerservice/models/BootstrapComponentVersions.java","src/main/java/com/azure/resourcemanager/containerservice/models/BootstrapKubeletConfig.java","src/main/java/com/azure/resourcemanager/containerservice/models/BootstrapNetworkingConfig.java","src/main/java/com/azure/resourcemanager/containerservice/models/BootstrapNodeConfig.java","src/main/java/com/azure/resourcemanager/containerservice/models/BootstrapTargetCluster.java","src/main/java/com/azure/resourcemanager/containerservice/models/BootstrapTokenInfo.java","src/main/java/com/azure/resourcemanager/containerservice/models/CapacityReservation.java","src/main/java/com/azure/resourcemanager/containerservice/models/CapacityReservationGroup.java","src/main/java/com/azure/resourcemanager/containerservice/models/CloudShellNetworkProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/CloudShellProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/CloudShellProfileMode.java","src/main/java/com/azure/resourcemanager/containerservice/models/CloudShellStorageProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/CloudShellStorageProfileMode.java","src/main/java/com/azure/resourcemanager/containerservice/models/ClusterApiConnectivityProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ClusterServiceLoadBalancerHealthProbeMode.java","src/main/java/com/azure/resourcemanager/containerservice/models/ClusterUpgradeSettings.java","src/main/java/com/azure/resourcemanager/containerservice/models/Code.java","src/main/java/com/azure/resourcemanager/containerservice/models/CompatibleVersions.java","src/main/java/com/azure/resourcemanager/containerservice/models/Component.java","src/main/java/com/azure/resourcemanager/containerservice/models/ComponentsByRelease.java","src/main/java/com/azure/resourcemanager/containerservice/models/ConnectionStatus.java","src/main/java/com/azure/resourcemanager/containerservice/models/ContainerNetworkLogs.java","src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceLinuxProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceNetworkProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceNetworkProfileKubeProxyConfig.java","src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceNetworkProfileKubeProxyConfigIpvsConfig.java","src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceSshConfiguration.java","src/main/java/com/azure/resourcemanager/containerservice/models/ContainerServiceSshPublicKey.java","src/main/java/com/azure/resourcemanager/containerservice/models/ControlPlaneAndAgentPoolsGenerateUpgradeInsightsContent.java","src/main/java/com/azure/resourcemanager/containerservice/models/ControlPlaneAndAgentPoolsUpgradeInsightProperties.java","src/main/java/com/azure/resourcemanager/containerservice/models/ControlPlaneGenerateUpgradeInsightsContent.java","src/main/java/com/azure/resourcemanager/containerservice/models/ControlPlaneScalingSize.java","src/main/java/com/azure/resourcemanager/containerservice/models/ControlPlaneUpgradeInsightProperties.java","src/main/java/com/azure/resourcemanager/containerservice/models/CreationData.java","src/main/java/com/azure/resourcemanager/containerservice/models/CredentialResult.java","src/main/java/com/azure/resourcemanager/containerservice/models/DRANETMode.java","src/main/java/com/azure/resourcemanager/containerservice/models/DRANETProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/DailySchedule.java","src/main/java/com/azure/resourcemanager/containerservice/models/DateSpan.java","src/main/java/com/azure/resourcemanager/containerservice/models/DelegatedResource.java","src/main/java/com/azure/resourcemanager/containerservice/models/DeletePolicy.java","src/main/java/com/azure/resourcemanager/containerservice/models/DetectedUpgradeIssue.java","src/main/java/com/azure/resourcemanager/containerservice/models/DriftAction.java","src/main/java/com/azure/resourcemanager/containerservice/models/DriverType.java","src/main/java/com/azure/resourcemanager/containerservice/models/EndpointDependency.java","src/main/java/com/azure/resourcemanager/containerservice/models/EndpointDetail.java","src/main/java/com/azure/resourcemanager/containerservice/models/Expander.java","src/main/java/com/azure/resourcemanager/containerservice/models/ExtendedLocation.java","src/main/java/com/azure/resourcemanager/containerservice/models/ExtendedLocationTypes.java","src/main/java/com/azure/resourcemanager/containerservice/models/Format.java","src/main/java/com/azure/resourcemanager/containerservice/models/GatewayApiIstioEnabled.java","src/main/java/com/azure/resourcemanager/containerservice/models/GenerateUpgradeInsightsContent.java","src/main/java/com/azure/resourcemanager/containerservice/models/GpuDriver.java","src/main/java/com/azure/resourcemanager/containerservice/models/GpuInstanceProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/GpuProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/GuardrailsAvailableVersionsProperties.java","src/main/java/com/azure/resourcemanager/containerservice/models/GuardrailsSupport.java","src/main/java/com/azure/resourcemanager/containerservice/models/HardEvictionThreshold.java","src/main/java/com/azure/resourcemanager/containerservice/models/IdentityBindingManagedIdentityProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/IdentityBindingOidcIssuerProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/IdentityBindingProperties.java","src/main/java/com/azure/resourcemanager/containerservice/models/IdentityBindingProvisioningState.java","src/main/java/com/azure/resourcemanager/containerservice/models/ImpactedResourceKind.java","src/main/java/com/azure/resourcemanager/containerservice/models/InfrastructureEncryption.java","src/main/java/com/azure/resourcemanager/containerservice/models/IpFamily.java","src/main/java/com/azure/resourcemanager/containerservice/models/IpTag.java","src/main/java/com/azure/resourcemanager/containerservice/models/IpvsScheduler.java","src/main/java/com/azure/resourcemanager/containerservice/models/IstioCertificateAuthority.java","src/main/java/com/azure/resourcemanager/containerservice/models/IstioComponents.java","src/main/java/com/azure/resourcemanager/containerservice/models/IstioEgressGateway.java","src/main/java/com/azure/resourcemanager/containerservice/models/IstioIngressGateway.java","src/main/java/com/azure/resourcemanager/containerservice/models/IstioIngressGatewayMode.java","src/main/java/com/azure/resourcemanager/containerservice/models/IstioPluginCertificateAuthority.java","src/main/java/com/azure/resourcemanager/containerservice/models/IstioServiceMesh.java","src/main/java/com/azure/resourcemanager/containerservice/models/JWTAuthenticatorClaimMappingExpression.java","src/main/java/com/azure/resourcemanager/containerservice/models/JWTAuthenticatorClaimMappings.java","src/main/java/com/azure/resourcemanager/containerservice/models/JWTAuthenticatorExtraClaimMappingExpression.java","src/main/java/com/azure/resourcemanager/containerservice/models/JWTAuthenticatorIssuer.java","src/main/java/com/azure/resourcemanager/containerservice/models/JWTAuthenticatorProperties.java","src/main/java/com/azure/resourcemanager/containerservice/models/JWTAuthenticatorProvisioningState.java","src/main/java/com/azure/resourcemanager/containerservice/models/JWTAuthenticatorValidationRule.java","src/main/java/com/azure/resourcemanager/containerservice/models/KeyVaultNetworkAccessTypes.java","src/main/java/com/azure/resourcemanager/containerservice/models/KubeReserved.java","src/main/java/com/azure/resourcemanager/containerservice/models/KubeletConfig.java","src/main/java/com/azure/resourcemanager/containerservice/models/KubeletDiskType.java","src/main/java/com/azure/resourcemanager/containerservice/models/KubernetesImpactedResource.java","src/main/java/com/azure/resourcemanager/containerservice/models/KubernetesPatchVersion.java","src/main/java/com/azure/resourcemanager/containerservice/models/KubernetesResourceObjectEncryptionProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/KubernetesSupportPlan.java","src/main/java/com/azure/resourcemanager/containerservice/models/KubernetesVersion.java","src/main/java/com/azure/resourcemanager/containerservice/models/KubernetesVersionCapabilities.java","src/main/java/com/azure/resourcemanager/containerservice/models/KubernetesVersionSupportStatus.java","src/main/java/com/azure/resourcemanager/containerservice/models/LabelSelector.java","src/main/java/com/azure/resourcemanager/containerservice/models/LabelSelectorRequirement.java","src/main/java/com/azure/resourcemanager/containerservice/models/LicenseType.java","src/main/java/com/azure/resourcemanager/containerservice/models/LinuxOSConfig.java","src/main/java/com/azure/resourcemanager/containerservice/models/ListBootstrapDataRequest.java","src/main/java/com/azure/resourcemanager/containerservice/models/LoadBalancerSku.java","src/main/java/com/azure/resourcemanager/containerservice/models/LocalDnsForwardDestination.java","src/main/java/com/azure/resourcemanager/containerservice/models/LocalDnsForwardPolicy.java","src/main/java/com/azure/resourcemanager/containerservice/models/LocalDnsMode.java","src/main/java/com/azure/resourcemanager/containerservice/models/LocalDnsOverride.java","src/main/java/com/azure/resourcemanager/containerservice/models/LocalDnsProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/LocalDnsProtocol.java","src/main/java/com/azure/resourcemanager/containerservice/models/LocalDnsQueryLogging.java","src/main/java/com/azure/resourcemanager/containerservice/models/LocalDnsServeStale.java","src/main/java/com/azure/resourcemanager/containerservice/models/LocalDnsState.java","src/main/java/com/azure/resourcemanager/containerservice/models/MachineBillingProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/MachineHardwareProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/MachineIpAddress.java","src/main/java/com/azure/resourcemanager/containerservice/models/MachineKubernetesProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/MachineNetworkProperties.java","src/main/java/com/azure/resourcemanager/containerservice/models/MachineOSProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/MachineOSProfileLinuxProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/MachineProperties.java","src/main/java/com/azure/resourcemanager/containerservice/models/MachineSecurityProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/MachineStatus.java","src/main/java/com/azure/resourcemanager/containerservice/models/MaintenanceWindow.java","src/main/java/com/azure/resourcemanager/containerservice/models/MaintenanceWindowResourceProperties.java","src/main/java/com/azure/resourcemanager/containerservice/models/MaintenanceWindowSource.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAIToolchainOperatorProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAadProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAddonProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAddonProfileIdentity.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAgentPoolProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAgentSandboxProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterApiServerAccessProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAppRoutingIstio.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAutoUpgradeProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileAppMonitoring.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileAppMonitoringAutoInstrumentation.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryLogsAndTraces.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileAppMonitoringOpenTelemetryMetrics.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileContainerInsights.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileKubeStateMetrics.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileMetrics.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterAzureMonitorProfileMetricsControlPlane.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterBootstrapProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterControlPlaneScalingProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterCostAnalysis.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterHealthMonitorProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterHostedSystemProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterHttpProxyConfig.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIdentity.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressDefaultDomainProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressProfileApplicationLoadBalancer.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressProfileGatewayConfiguration.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressProfileNginx.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterIngressProfileWebAppRouting.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterLoadBalancerProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterLoadBalancerProfileManagedOutboundIPs.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterLoadBalancerProfileOutboundIPs.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterLoadBalancerProfileOutboundIpPrefixes.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterManagedOutboundIpProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterMetricsProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterNATGatewayProfileOutboundIPs.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterNATGatewayProfileOutboundIpPrefixes.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterNATGatewaySku.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterNatGatewayProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterNodeProvisioningProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterNodeResourceGroupProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterOidcIssuerProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPodIdentity.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPodIdentityException.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPodIdentityProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPodIdentityProvisioningError.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPodIdentityProvisioningErrorBody.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPodIdentityProvisioningInfo.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPodIdentityProvisioningState.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPodSnapshotProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPoolUpgradeProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPoolUpgradeProfileUpgradesItem.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPropertiesAutoScalerProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterPropertiesForSnapshot.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileDefender.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileDefenderSecurityGating.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileDefenderSecurityGatingIdentity.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileDefenderSecurityMonitoring.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileImageCleaner.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileImageIntegrity.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileNodeRestriction.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSecurityProfileWorkloadIdentity.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterServicePrincipalProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSku.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSkuName.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterSkuTier.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStaticEgressGatewayProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStatus.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfileBlobCsiDriver.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfileDiskCSIDriverQuickAttachDetach.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfileDiskCsiDriver.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfileFileCsiDriver.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterStorageProfileSnapshotController.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterWebAppRoutingGatewayApiImplementations.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterWindowsProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterWorkloadAutoScalerProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterWorkloadAutoScalerProfileKeda.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClusterWorkloadAutoScalerProfileVerticalPodAutoscaler.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClustersGetCommandResultHeaders.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedClustersGetCommandResultResponse.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedGatewayType.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagedServiceIdentityUserAssignedIdentitiesValue.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManagementMode.java","src/main/java/com/azure/resourcemanager/containerservice/models/ManualScaleProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/MeshMembershipPrivateConnectProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/MeshMembershipProperties.java","src/main/java/com/azure/resourcemanager/containerservice/models/MeshMembershipProvisioningState.java","src/main/java/com/azure/resourcemanager/containerservice/models/MeshRevision.java","src/main/java/com/azure/resourcemanager/containerservice/models/MeshRevisionProfileProperties.java","src/main/java/com/azure/resourcemanager/containerservice/models/MeshUpgradeProfileProperties.java","src/main/java/com/azure/resourcemanager/containerservice/models/MigStrategy.java","src/main/java/com/azure/resourcemanager/containerservice/models/Mode.java","src/main/java/com/azure/resourcemanager/containerservice/models/NamespaceProperties.java","src/main/java/com/azure/resourcemanager/containerservice/models/NamespaceProvisioningState.java","src/main/java/com/azure/resourcemanager/containerservice/models/NetworkDataplane.java","src/main/java/com/azure/resourcemanager/containerservice/models/NetworkMode.java","src/main/java/com/azure/resourcemanager/containerservice/models/NetworkPlugin.java","src/main/java/com/azure/resourcemanager/containerservice/models/NetworkPluginMode.java","src/main/java/com/azure/resourcemanager/containerservice/models/NetworkPolicies.java","src/main/java/com/azure/resourcemanager/containerservice/models/NetworkPolicy.java","src/main/java/com/azure/resourcemanager/containerservice/models/NetworkProfileForSnapshot.java","src/main/java/com/azure/resourcemanager/containerservice/models/NginxIngressControllerType.java","src/main/java/com/azure/resourcemanager/containerservice/models/NodeDisruptionPolicy.java","src/main/java/com/azure/resourcemanager/containerservice/models/NodeDisruptionProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/NodeImageGenerateUpgradeInsightsContent.java","src/main/java/com/azure/resourcemanager/containerservice/models/NodeImageUpgradeInsightProperties.java","src/main/java/com/azure/resourcemanager/containerservice/models/NodeOSUpgradeChannel.java","src/main/java/com/azure/resourcemanager/containerservice/models/NodeProvisioningDefaultNodePools.java","src/main/java/com/azure/resourcemanager/containerservice/models/NodeProvisioningMode.java","src/main/java/com/azure/resourcemanager/containerservice/models/NvidiaDriverMode.java","src/main/java/com/azure/resourcemanager/containerservice/models/NvidiaGPUProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/OSDiskType.java","src/main/java/com/azure/resourcemanager/containerservice/models/OSSku.java","src/main/java/com/azure/resourcemanager/containerservice/models/OSType.java","src/main/java/com/azure/resourcemanager/containerservice/models/Operator.java","src/main/java/com/azure/resourcemanager/containerservice/models/OutboundType.java","src/main/java/com/azure/resourcemanager/containerservice/models/PodIpAllocationMode.java","src/main/java/com/azure/resourcemanager/containerservice/models/PodLinkLocalAccess.java","src/main/java/com/azure/resourcemanager/containerservice/models/PolicyRule.java","src/main/java/com/azure/resourcemanager/containerservice/models/PortRange.java","src/main/java/com/azure/resourcemanager/containerservice/models/PowerState.java","src/main/java/com/azure/resourcemanager/containerservice/models/PreparedImageSpecificationProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/PrivateEndpoint.java","src/main/java/com/azure/resourcemanager/containerservice/models/PrivateEndpointConnectionProvisioningState.java","src/main/java/com/azure/resourcemanager/containerservice/models/PrivateLinkServiceConnectionState.java","src/main/java/com/azure/resourcemanager/containerservice/models/Protocol.java","src/main/java/com/azure/resourcemanager/containerservice/models/ProxyRedirectionMechanism.java","src/main/java/com/azure/resourcemanager/containerservice/models/PublicNetworkAccess.java","src/main/java/com/azure/resourcemanager/containerservice/models/RebalanceLoadBalancersRequestBody.java","src/main/java/com/azure/resourcemanager/containerservice/models/RelativeMonthlySchedule.java","src/main/java/com/azure/resourcemanager/containerservice/models/ResourceIdentityType.java","src/main/java/com/azure/resourcemanager/containerservice/models/ResourceProvisioningState.java","src/main/java/com/azure/resourcemanager/containerservice/models/ResourceQuota.java","src/main/java/com/azure/resourcemanager/containerservice/models/ResourceReference.java","src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuCapabilities.java","src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuCapacity.java","src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuCapacityScaleType.java","src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuCosts.java","src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuLocationInfo.java","src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuRestrictionInfo.java","src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuRestrictions.java","src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuRestrictionsReasonCode.java","src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuRestrictionsType.java","src/main/java/com/azure/resourcemanager/containerservice/models/ResourceSkuZoneDetails.java","src/main/java/com/azure/resourcemanager/containerservice/models/RestrictionLevel.java","src/main/java/com/azure/resourcemanager/containerservice/models/RunCommandRequest.java","src/main/java/com/azure/resourcemanager/containerservice/models/SafeguardsAvailableVersionsProperties.java","src/main/java/com/azure/resourcemanager/containerservice/models/SafeguardsSupport.java","src/main/java/com/azure/resourcemanager/containerservice/models/ScaleDownMode.java","src/main/java/com/azure/resourcemanager/containerservice/models/ScaleProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ScaleSetEvictionPolicy.java","src/main/java/com/azure/resourcemanager/containerservice/models/ScaleSetPriority.java","src/main/java/com/azure/resourcemanager/containerservice/models/Schedule.java","src/main/java/com/azure/resourcemanager/containerservice/models/SchedulerConfigMode.java","src/main/java/com/azure/resourcemanager/containerservice/models/SchedulerInstanceProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/SchedulerProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ScopeEvaluationResult.java","src/main/java/com/azure/resourcemanager/containerservice/models/SeccompDefault.java","src/main/java/com/azure/resourcemanager/containerservice/models/ServiceAccountImagePullProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/ServiceMeshMode.java","src/main/java/com/azure/resourcemanager/containerservice/models/ServiceMeshProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/SnapshotType.java","src/main/java/com/azure/resourcemanager/containerservice/models/SoftEvictionGracePeriod.java","src/main/java/com/azure/resourcemanager/containerservice/models/SoftEvictionThreshold.java","src/main/java/com/azure/resourcemanager/containerservice/models/SysctlConfig.java","src/main/java/com/azure/resourcemanager/containerservice/models/TagsObject.java","src/main/java/com/azure/resourcemanager/containerservice/models/TimeInWeek.java","src/main/java/com/azure/resourcemanager/containerservice/models/TimeSpan.java","src/main/java/com/azure/resourcemanager/containerservice/models/TransitEncryptionType.java","src/main/java/com/azure/resourcemanager/containerservice/models/TrustedAccessRoleBindingProvisioningState.java","src/main/java/com/azure/resourcemanager/containerservice/models/TrustedAccessRoleRule.java","src/main/java/com/azure/resourcemanager/containerservice/models/Type.java","src/main/java/com/azure/resourcemanager/containerservice/models/UndrainableNodeBehavior.java","src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeChannel.java","src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeContext.java","src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeGateSettings.java","src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeInsightEvaluation.java","src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeInsightImpactedResource.java","src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeInsightMaintenanceWindow.java","src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeInsightProperties.java","src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeInsightRecommendedAction.java","src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeInsightStatus.java","src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeInsightStrategy.java","src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeIssueSeverity.java","src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeIssueType.java","src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeOverrideSettings.java","src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeStrategy.java","src/main/java/com/azure/resourcemanager/containerservice/models/UpgradeType.java","src/main/java/com/azure/resourcemanager/containerservice/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/containerservice/models/VirtualMachineNodes.java","src/main/java/com/azure/resourcemanager/containerservice/models/VirtualMachinesProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/VmState.java","src/main/java/com/azure/resourcemanager/containerservice/models/WeekDay.java","src/main/java/com/azure/resourcemanager/containerservice/models/WeeklySchedule.java","src/main/java/com/azure/resourcemanager/containerservice/models/WindowsGmsaProfile.java","src/main/java/com/azure/resourcemanager/containerservice/models/WorkloadRuntime.java","src/main/java/com/azure/resourcemanager/containerservice/models/package-info.java","src/main/java/com/azure/resourcemanager/containerservice/package-info.java"]} \ No newline at end of file diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-containerservice/proxy-config.json b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-containerservice/proxy-config.json index 3924376cbd83e..e53b390840dd4 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-containerservice/proxy-config.json +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-containerservice/proxy-config.json @@ -1 +1 @@ -[["com.azure.resourcemanager.containerservice.implementation.AgentPoolsClientImpl$AgentPoolsService"],["com.azure.resourcemanager.containerservice.implementation.IdentityBindingsClientImpl$IdentityBindingsService"],["com.azure.resourcemanager.containerservice.implementation.MachinesClientImpl$MachinesService"],["com.azure.resourcemanager.containerservice.implementation.MaintenanceConfigurationsClientImpl$MaintenanceConfigurationsService"],["com.azure.resourcemanager.containerservice.implementation.ManagedClustersClientImpl$ManagedClustersService"],["com.azure.resourcemanager.containerservice.implementation.ManagedNamespacesClientImpl$ManagedNamespacesService"],["com.azure.resourcemanager.containerservice.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.containerservice.implementation.PrivateEndpointConnectionsClientImpl$PrivateEndpointConnectionsService"],["com.azure.resourcemanager.containerservice.implementation.PrivateLinkResourcesClientImpl$PrivateLinkResourcesService"],["com.azure.resourcemanager.containerservice.implementation.ResolvePrivateLinkServiceIdsClientImpl$ResolvePrivateLinkServiceIdsService"],["com.azure.resourcemanager.containerservice.implementation.SnapshotsClientImpl$SnapshotsService"],["com.azure.resourcemanager.containerservice.implementation.TrustedAccessRoleBindingsClientImpl$TrustedAccessRoleBindingsService"],["com.azure.resourcemanager.containerservice.implementation.TrustedAccessRolesClientImpl$TrustedAccessRolesService"]] \ No newline at end of file +[["com.azure.resourcemanager.containerservice.implementation.AgentFabricMembershipsClientImpl$AgentFabricMembershipsService"],["com.azure.resourcemanager.containerservice.implementation.AgentPoolsClientImpl$AgentPoolsService"],["com.azure.resourcemanager.containerservice.implementation.AlertConfigurationsClientImpl$AlertConfigurationsService"],["com.azure.resourcemanager.containerservice.implementation.IdentityBindingsClientImpl$IdentityBindingsService"],["com.azure.resourcemanager.containerservice.implementation.JWTAuthenticatorsClientImpl$JWTAuthenticatorsService"],["com.azure.resourcemanager.containerservice.implementation.LoadBalancersClientImpl$LoadBalancersService"],["com.azure.resourcemanager.containerservice.implementation.MachinesClientImpl$MachinesService"],["com.azure.resourcemanager.containerservice.implementation.MaintenanceConfigurationsClientImpl$MaintenanceConfigurationsService"],["com.azure.resourcemanager.containerservice.implementation.MaintenanceWindowsClientImpl$MaintenanceWindowsService"],["com.azure.resourcemanager.containerservice.implementation.ManagedClusterSnapshotsClientImpl$ManagedClusterSnapshotsService"],["com.azure.resourcemanager.containerservice.implementation.ManagedClustersClientImpl$ManagedClustersService"],["com.azure.resourcemanager.containerservice.implementation.ManagedNamespacesClientImpl$ManagedNamespacesService"],["com.azure.resourcemanager.containerservice.implementation.MeshMembershipsClientImpl$MeshMembershipsService"],["com.azure.resourcemanager.containerservice.implementation.OperationStatusResultsClientImpl$OperationStatusResultsService"],["com.azure.resourcemanager.containerservice.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.containerservice.implementation.PrivateEndpointConnectionsClientImpl$PrivateEndpointConnectionsService"],["com.azure.resourcemanager.containerservice.implementation.PrivateLinkResourcesClientImpl$PrivateLinkResourcesService"],["com.azure.resourcemanager.containerservice.implementation.ResolvePrivateLinkServiceIdsClientImpl$ResolvePrivateLinkServiceIdsService"],["com.azure.resourcemanager.containerservice.implementation.SnapshotsClientImpl$SnapshotsService"],["com.azure.resourcemanager.containerservice.implementation.TrustedAccessRoleBindingsClientImpl$TrustedAccessRoleBindingsService"],["com.azure.resourcemanager.containerservice.implementation.TrustedAccessRolesClientImpl$TrustedAccessRolesService"],["com.azure.resourcemanager.containerservice.implementation.UpgradeInsightsClientImpl$UpgradeInsightsService"],["com.azure.resourcemanager.containerservice.implementation.VmSkusClientImpl$VmSkusService"]] \ No newline at end of file diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentFabricMembershipsCreateOrUpdateSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentFabricMembershipsCreateOrUpdateSamples.java new file mode 100644 index 0000000000000..e3e85fc3d3d25 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentFabricMembershipsCreateOrUpdateSamples.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.containerservice.generated; + +import com.azure.resourcemanager.containerservice.fluent.models.AgentFabricMembershipInner; +import com.azure.resourcemanager.containerservice.models.AgentFabricMembershipProperties; +import com.azure.resourcemanager.containerservice.models.AgentFabricMembershipSkuName; + +/** + * Samples for AgentFabricMemberships CreateOrUpdate. + */ +public final class AgentFabricMembershipsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2026-08-02-preview/AgentFabricMemberships_CreateOrUpdate.json + */ + /** + * Sample code: Create or update AgentFabric Membership. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void createOrUpdateAgentFabricMembership( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getAgentFabricMemberships() + .createOrUpdate("rg1", "clustername1", "default", new AgentFabricMembershipInner() + .withProperties(new AgentFabricMembershipProperties().withSku(AgentFabricMembershipSkuName.STANDARD)) + .withManagedBy( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.NetworkSecurity/agentFabrics/fabric1"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentFabricMembershipsDeleteSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentFabricMembershipsDeleteSamples.java new file mode 100644 index 0000000000000..ed4606a13f0e9 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentFabricMembershipsDeleteSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +/** + * Samples for AgentFabricMemberships Delete. + */ +public final class AgentFabricMembershipsDeleteSamples { + /* + * x-ms-original-file: 2026-08-02-preview/AgentFabricMemberships_Delete.json + */ + /** + * Sample code: Delete AgentFabric Membership. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void + deleteAgentFabricMembership(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getAgentFabricMemberships() + .delete("rg1", "clustername1", "default", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentFabricMembershipsGetSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentFabricMembershipsGetSamples.java new file mode 100644 index 0000000000000..825d5abe504c6 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentFabricMembershipsGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +/** + * Samples for AgentFabricMemberships Get. + */ +public final class AgentFabricMembershipsGetSamples { + /* + * x-ms-original-file: 2026-08-02-preview/AgentFabricMemberships_Get.json + */ + /** + * Sample code: Get AgentFabric Membership. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void + getAgentFabricMembership(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getAgentFabricMemberships() + .getWithResponse("rg1", "clustername1", "default", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentFabricMembershipsListByManagedClusterSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentFabricMembershipsListByManagedClusterSamples.java new file mode 100644 index 0000000000000..b4ae94459e3bd --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentFabricMembershipsListByManagedClusterSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +/** + * Samples for AgentFabricMemberships ListByManagedCluster. + */ +public final class AgentFabricMembershipsListByManagedClusterSamples { + /* + * x-ms-original-file: 2026-08-02-preview/AgentFabricMemberships_ListByManagedCluster.json + */ + /** + * Sample code: List AgentFabric Memberships by Managed Cluster. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void listAgentFabricMembershipsByManagedCluster( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getAgentFabricMemberships() + .listByManagedCluster("rg1", "clustername1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsAbortLatestOperationSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsAbortLatestOperationSamples.java index 570e0e0a3ff80..e7c61c573f35c 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsAbortLatestOperationSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsAbortLatestOperationSamples.java @@ -9,7 +9,7 @@ */ public final class AgentPoolsAbortLatestOperationSamples { /* - * x-ms-original-file: 2026-08-01/AgentPoolsAbortOperation.json + * x-ms-original-file: 2026-08-02-preview/AgentPoolsAbortOperation.json */ /** * Sample code: Abort operation on agent pool. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsCompleteUpgradeSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsCompleteUpgradeSamples.java new file mode 100644 index 0000000000000..98d9dca8525bb --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsCompleteUpgradeSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +/** + * Samples for AgentPools CompleteUpgrade. + */ +public final class AgentPoolsCompleteUpgradeSamples { + /* + * x-ms-original-file: 2026-08-02-preview/AgentPoolsCompleteUpgrade.json + */ + /** + * Sample code: Complete agent pool upgrade. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void + completeAgentPoolUpgrade(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getAgentPools() + .completeUpgrade("rg1", "clustername1", "agentpool1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsCreateOrUpdateSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsCreateOrUpdateSamples.java index fcdeeda8d946d..40d7031f02c21 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsCreateOrUpdateSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsCreateOrUpdateSamples.java @@ -6,7 +6,13 @@ import com.azure.resourcemanager.containerservice.fluent.models.AgentPoolInner; import com.azure.resourcemanager.containerservice.models.AgentPoolMode; +import com.azure.resourcemanager.containerservice.models.AgentPoolNICPublicIPAddressConfiguration; +import com.azure.resourcemanager.containerservice.models.AgentPoolNICPublicIPAddressVersion; +import com.azure.resourcemanager.containerservice.models.AgentPoolNetworkInterface; +import com.azure.resourcemanager.containerservice.models.AgentPoolNetworkInterfaceType; +import com.azure.resourcemanager.containerservice.models.AgentPoolNetworkProfile; import com.azure.resourcemanager.containerservice.models.AgentPoolType; +import com.azure.resourcemanager.containerservice.models.AgentPoolUpgradeSettings; import com.azure.resourcemanager.containerservice.models.AgentPoolWindowsProfile; import com.azure.resourcemanager.containerservice.models.AutoScaleProfile; import com.azure.resourcemanager.containerservice.models.Code; @@ -14,10 +20,14 @@ import com.azure.resourcemanager.containerservice.models.GpuDriver; import com.azure.resourcemanager.containerservice.models.GpuInstanceProfile; import com.azure.resourcemanager.containerservice.models.GpuProfile; +import com.azure.resourcemanager.containerservice.models.HardEvictionThreshold; +import com.azure.resourcemanager.containerservice.models.IpTag; +import com.azure.resourcemanager.containerservice.models.KubeReserved; import com.azure.resourcemanager.containerservice.models.KubeletConfig; import com.azure.resourcemanager.containerservice.models.LinuxOSConfig; import com.azure.resourcemanager.containerservice.models.ManagementMode; import com.azure.resourcemanager.containerservice.models.ManualScaleProfile; +import com.azure.resourcemanager.containerservice.models.MigStrategy; import com.azure.resourcemanager.containerservice.models.NvidiaGPUProfile; import com.azure.resourcemanager.containerservice.models.OSDiskType; import com.azure.resourcemanager.containerservice.models.OSSku; @@ -26,7 +36,10 @@ import com.azure.resourcemanager.containerservice.models.ScaleProfile; import com.azure.resourcemanager.containerservice.models.ScaleSetEvictionPolicy; import com.azure.resourcemanager.containerservice.models.ScaleSetPriority; +import com.azure.resourcemanager.containerservice.models.SoftEvictionGracePeriod; +import com.azure.resourcemanager.containerservice.models.SoftEvictionThreshold; import com.azure.resourcemanager.containerservice.models.SysctlConfig; +import com.azure.resourcemanager.containerservice.models.UpgradeGateSettings; import com.azure.resourcemanager.containerservice.models.VirtualMachinesProfile; import com.azure.resourcemanager.containerservice.models.WorkloadRuntime; import java.util.Arrays; @@ -38,7 +51,7 @@ */ public final class AgentPoolsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-08-01/AgentPoolsCreate_EnableFIPS.json + * x-ms-original-file: 2026-08-02-preview/AgentPoolsCreate_EnableFIPS.json */ /** * Sample code: Create Agent Pool with FIPS enabled OS. @@ -59,32 +72,7 @@ public final class AgentPoolsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2026-08-01/AgentPools_Update.json - */ - /** - * Sample code: Update Agent Pool. - * - * @param manager Entry point to ContainerServiceManager. - */ - public static void updateAgentPool(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { - manager.serviceClient() - .getAgentPools() - .createOrUpdate("rg1", "clustername1", "agentpool1", - new AgentPoolInner().withCount(3) - .withVmSize("Standard_DS1_v2") - .withOsType(OSType.LINUX) - .withMaxCount(2) - .withMinCount(2) - .withEnableAutoScaling(true) - .withOrchestratorVersion("") - .withScaleSetPriority(ScaleSetPriority.SPOT) - .withScaleSetEvictionPolicy(ScaleSetEvictionPolicy.DELETE) - .withNodeTaints(Arrays.asList("Key1=Value1:NoSchedule")), - null, null, com.azure.core.util.Context.NONE); - } - - /* - * x-ms-original-file: 2026-08-01/AgentPoolsCreate_GPUMIG.json + * x-ms-original-file: 2026-08-02-preview/AgentPoolsCreate_GPUMIG.json */ /** * Sample code: Create Agent Pool with GPUMIG. @@ -121,15 +109,15 @@ public static void updateAgentPool(com.azure.resourcemanager.containerservice.Co } /* - * x-ms-original-file: 2026-08-01/AgentPoolsCreate_WindowsOSSKU.json + * x-ms-original-file: 2026-08-02-preview/AgentPoolsCreate_WindowsDisableOutboundNAT.json */ /** - * Sample code: Create Agent Pool with Windows OSSKU. + * Sample code: Create Windows Agent Pool with disabling OutboundNAT. * * @param manager Entry point to ContainerServiceManager. */ - public static void - createAgentPoolWithWindowsOSSKU(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + public static void createWindowsAgentPoolWithDisablingOutboundNAT( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { manager.serviceClient() .getAgentPools() .createOrUpdate("rg1", "clustername1", "wnp2", @@ -137,19 +125,60 @@ public static void updateAgentPool(com.azure.resourcemanager.containerservice.Co .withVmSize("Standard_D4s_v3") .withOsType(OSType.WINDOWS) .withOsSku(OSSku.WINDOWS2022) - .withOrchestratorVersion("1.23.3"), + .withOrchestratorVersion("1.23.8") + .withWindowsProfile(new AgentPoolWindowsProfile().withDisableOutboundNat(true)), null, null, com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: 2026-08-01/AgentPoolsCreate_DedicatedHostGroup.json + * x-ms-original-file: 2026-08-02-preview/AgentPools_Start.json */ /** - * Sample code: Create Agent Pool with Dedicated Host Group. + * Sample code: Start Agent Pool. * * @param manager Entry point to ContainerServiceManager. */ - public static void createAgentPoolWithDedicatedHostGroup( + public static void startAgentPool(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getAgentPools() + .createOrUpdate("rg1", "clustername1", "agentpool1", + new AgentPoolInner().withPowerState(new PowerState().withCode(Code.RUNNING)), null, null, + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-08-02-preview/AgentPoolsCreate_SingleMIG.json + */ + /** + * Sample code: Create Agent Pool with single MIG profile. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void createAgentPoolWithSingleMIGProfile( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getAgentPools() + .createOrUpdate("rg1", "clustername1", "agentpool1", + new AgentPoolInner().withCount(3) + .withVmSize("Standard_ND96asr_v4") + .withOsType(OSType.LINUX) + .withMode(AgentPoolMode.USER) + .withGpuProfile(new GpuProfile().withDriver(GpuDriver.INSTALL) + .withNvidia(new NvidiaGPUProfile().withManagementMode(ManagementMode.MANAGED) + .withMigStrategy(MigStrategy.SINGLE) + .withMigProfiles(Arrays.asList(GpuInstanceProfile.MIG3G)))), + null, null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-08-02-preview/AgentPoolsAssociate_CRG.json + */ + /** + * Sample code: Associate Agent Pool with Capacity Reservation Group. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void associateAgentPoolWithCapacityReservationGroup( com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { manager.serviceClient() .getAgentPools() @@ -157,47 +186,155 @@ public static void createAgentPoolWithDedicatedHostGroup( .withVmSize("Standard_DS2_v2") .withOsType(OSType.LINUX) .withOrchestratorVersion("") - .withHostGroupId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Compute/hostGroups/hostgroup1"), + .withCapacityReservationGroupId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/CapacityReservationGroups/crg1"), null, null, com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: 2026-08-01/AgentPoolsCreate_Update.json + * x-ms-original-file: 2026-08-02-preview/AgentPoolsCreate_PPG.json */ /** - * Sample code: Create/Update Agent Pool. + * Sample code: Create Agent Pool with PPG. * * @param manager Entry point to ContainerServiceManager. */ public static void - createUpdateAgentPool(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + createAgentPoolWithPPG(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getAgentPools() + .createOrUpdate("rg1", "clustername1", "agentpool1", new AgentPoolInner().withCount(3) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withOrchestratorVersion("") + .withProximityPlacementGroupId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/proximityPlacementGroups/ppg1"), + null, null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-08-02-preview/AgentPoolsCreate_UpgradeGate.json + */ + /** + * Sample code: Create Agent Pool with upgrade gate enabled. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void createAgentPoolWithUpgradeGateEnabled( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { manager.serviceClient() .getAgentPools() .createOrUpdate("rg1", "clustername1", "agentpool1", new AgentPoolInner().withCount(3) - .withVmSize("Standard_DS1_v2") + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withOrchestratorVersion("") + .withUpgradeSettings(new AgentPoolUpgradeSettings().withMaxSurge("33%") + .withUpgradeGateSettings(new UpgradeGateSettings().withEnabled(true))), + null, null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-08-02-preview/AgentPools_Stop.json + */ + /** + * Sample code: Stop Agent Pool. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void stopAgentPool(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getAgentPools() + .createOrUpdate("rg1", "clustername1", "agentpool1", + new AgentPoolInner().withPowerState(new PowerState().withCode(Code.STOPPED)), null, null, + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-08-02-preview/AgentPoolsCreate_MixedMIG.json + */ + /** + * Sample code: Create Agent Pool with mixed MIG profiles. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void createAgentPoolWithMixedMIGProfiles( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getAgentPools() + .createOrUpdate("rg1", "clustername1", "agentpool1", + new AgentPoolInner().withCount(3) + .withVmSize("Standard_ND96asr_v4") .withOsType(OSType.LINUX) .withMode(AgentPoolMode.USER) + .withGpuProfile(new GpuProfile().withDriver(GpuDriver.INSTALL) + .withNvidia(new NvidiaGPUProfile().withManagementMode(ManagementMode.MANAGED) + .withMigStrategy(MigStrategy.MIXED) + .withMigProfiles(Arrays.asList(GpuInstanceProfile.MIG3G, GpuInstanceProfile.MIG2G, + GpuInstanceProfile.MIG1G, GpuInstanceProfile.MIG1G)))), + null, null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-08-02-preview/AgentPoolsCreate_TypeVirtualMachines.json + */ + /** + * Sample code: Create Agent Pool with VirtualMachines pool type. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void createAgentPoolWithVirtualMachinesPoolType( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getAgentPools() + .createOrUpdate("rg1", "clustername1", "agentpool1", + new AgentPoolInner().withOsType(OSType.LINUX) + .withTypePropertiesType(AgentPoolType.VIRTUAL_MACHINES) + .withOrchestratorVersion("1.9.6") + .withTags(mapOf("name1", "val1")) + .withNodeLabels(mapOf("key1", "fakeTokenPlaceholder")) + .withNodeTaints(Arrays.asList("Key1=Value1:NoSchedule")) + .withVirtualMachinesProfile(new VirtualMachinesProfile().withScale(new ScaleProfile() + .withManual(Arrays.asList(new ManualScaleProfile().withSize("Standard_D2_v2").withCount(3), + new ManualScaleProfile().withSize("Standard_D2_v3").withCount(2))))), + null, null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-08-02-preview/AgentPools_Update.json + */ + /** + * Sample code: Update Agent Pool. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void updateAgentPool(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getAgentPools() + .createOrUpdate("rg1", "clustername1", "agentpool1", + new AgentPoolInner().withCount(3) + .withVmSize("Standard_DS1_v2") + .withOsType(OSType.LINUX) + .withMaxCount(2) + .withMinCount(2) + .withEnableAutoScaling(true) .withOrchestratorVersion("") .withScaleSetPriority(ScaleSetPriority.SPOT) .withScaleSetEvictionPolicy(ScaleSetEvictionPolicy.DELETE) - .withTags(mapOf("name1", "val1")) - .withNodeLabels(mapOf("key1", "fakeTokenPlaceholder")) .withNodeTaints(Arrays.asList("Key1=Value1:NoSchedule")), null, null, com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: 2026-08-01/AgentPoolsCreate_WindowsDisableOutboundNAT.json + * x-ms-original-file: 2026-08-02-preview/AgentPoolsCreate_WindowsOSSKU.json */ /** - * Sample code: Create Windows Agent Pool with disabling OutboundNAT. + * Sample code: Create Agent Pool with Windows OSSKU. * * @param manager Entry point to ContainerServiceManager. */ - public static void createWindowsAgentPoolWithDisablingOutboundNAT( - com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + public static void + createAgentPoolWithWindowsOSSKU(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { manager.serviceClient() .getAgentPools() .createOrUpdate("rg1", "clustername1", "wnp2", @@ -205,51 +342,94 @@ public static void createWindowsAgentPoolWithDisablingOutboundNAT( .withVmSize("Standard_D4s_v3") .withOsType(OSType.WINDOWS) .withOsSku(OSSku.WINDOWS2022) - .withOrchestratorVersion("1.23.8") - .withWindowsProfile(new AgentPoolWindowsProfile().withDisableOutboundNat(true)), + .withOrchestratorVersion("1.23.3"), null, null, com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: 2026-08-01/AgentPools_Start.json + * x-ms-original-file: 2026-08-02-preview/AgentPoolsCreate_DedicatedHostGroup.json */ /** - * Sample code: Start Agent Pool. + * Sample code: Create Agent Pool with Dedicated Host Group. * * @param manager Entry point to ContainerServiceManager. */ - public static void startAgentPool(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + public static void createAgentPoolWithDedicatedHostGroup( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { manager.serviceClient() .getAgentPools() - .createOrUpdate("rg1", "clustername1", "agentpool1", - new AgentPoolInner().withPowerState(new PowerState().withCode(Code.RUNNING)), null, null, - com.azure.core.util.Context.NONE); + .createOrUpdate("rg1", "clustername1", "agentpool1", new AgentPoolInner().withCount(3) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withOrchestratorVersion("") + .withHostGroupId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Compute/hostGroups/hostgroup1"), + null, null, com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: 2026-08-01/AgentPoolsCreate_ManagedGPU.json + * x-ms-original-file: 2026-08-02-preview/AgentPoolsCreate_Update.json */ /** - * Sample code: Create Agent Pool with fully managed GPU experience. + * Sample code: Create/Update Agent Pool. * * @param manager Entry point to ContainerServiceManager. */ - public static void createAgentPoolWithFullyManagedGPUExperience( - com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + public static void + createUpdateAgentPool(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { manager.serviceClient() .getAgentPools() .createOrUpdate("rg1", "clustername1", "agentpool1", new AgentPoolInner().withCount(3) - .withVmSize("Standard_NC4as_T4_v3") + .withVmSize("Standard_DS1_v2") .withOsType(OSType.LINUX) .withMode(AgentPoolMode.USER) - .withGpuProfile(new GpuProfile().withDriver(GpuDriver.INSTALL) - .withNvidia(new NvidiaGPUProfile().withManagementMode(ManagementMode.MANAGED))), + .withOrchestratorVersion("") + .withScaleSetPriority(ScaleSetPriority.SPOT) + .withScaleSetEvictionPolicy(ScaleSetEvictionPolicy.DELETE) + .withTags(mapOf("name1", "val1")) + .withNodeLabels(mapOf("key1", "fakeTokenPlaceholder")) + .withNodeTaints(Arrays.asList("Key1=Value1:NoSchedule")), null, null, com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: 2026-08-01/AgentPoolsCreate_Spot.json + * x-ms-original-file: 2026-08-02-preview/AgentPoolsCreate_PerNICPublicIP.json + */ + /** + * Sample code: Create Agent Pool with per-NIC public IP configuration. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void createAgentPoolWithPerNICPublicIPConfiguration( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getAgentPools() + .createOrUpdate("rg1", "clustername1", "agentpool1", new AgentPoolInner().withCount(3) + .withVmSize("Standard_D8s_v3") + .withOsType(OSType.LINUX) + .withOrchestratorVersion("") + .withNetworkProfile(new AgentPoolNetworkProfile().withSecondaryNetworkInterfaces(Arrays.asList( + new AgentPoolNetworkInterface().withType(AgentPoolNetworkInterfaceType.STANDARD) + .withVnetSubnetId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/myVNet/subnets/secondary-subnet-1") + .withEnableAcceleratedNetworking(true) + .withPublicIPAddressConfiguration(new AgentPoolNICPublicIPAddressConfiguration() + .withPublicIPAddressVersion(AgentPoolNICPublicIPAddressVersion.IPV4) + .withIpTags(Arrays.asList(new IpTag().withIpTagType("FirstPartyUsage").withTag("teams")))), + new AgentPoolNetworkInterface().withType(AgentPoolNetworkInterfaceType.STANDARD) + .withVnetSubnetId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/virtualNetworks/myVNet/subnets/secondary-subnet-2") + .withEnableAcceleratedNetworking(true) + .withPublicIPAddressConfiguration(new AgentPoolNICPublicIPAddressConfiguration() + .withPublicIPAddressVersion(AgentPoolNICPublicIPAddressVersion.IPV4) + .withPublicIPPrefixID( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/myPrefix"))))), + null, null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-08-02-preview/AgentPoolsCreate_Spot.json */ /** * Sample code: Create Spot Agent Pool. @@ -273,7 +453,7 @@ public static void createSpotAgentPool(com.azure.resourcemanager.containerservic } /* - * x-ms-original-file: 2026-08-01/AgentPoolsCreate_Ephemeral.json + * x-ms-original-file: 2026-08-02-preview/AgentPoolsCreate_Ephemeral.json */ /** * Sample code: Create Agent Pool with Ephemeral OS Disk. @@ -295,7 +475,7 @@ public static void createSpotAgentPool(com.azure.resourcemanager.containerservic } /* - * x-ms-original-file: 2026-08-01/AgentPoolsCreate_EnableEncryptionAtHost.json + * x-ms-original-file: 2026-08-02-preview/AgentPoolsCreate_EnableEncryptionAtHost.json */ /** * Sample code: Create Agent Pool with EncryptionAtHost enabled. @@ -316,7 +496,7 @@ public static void createAgentPoolWithEncryptionAtHostEnabled( } /* - * x-ms-original-file: 2026-08-01/AgentPoolsCreate_EnableUltraSSD.json + * x-ms-original-file: 2026-08-02-preview/AgentPoolsCreate_EnableUltraSSD.json */ /** * Sample code: Create Agent Pool with UltraSSD enabled. @@ -337,7 +517,26 @@ public static void createAgentPoolWithEncryptionAtHostEnabled( } /* - * x-ms-original-file: 2026-08-01/AgentPoolsCreate_TypeVirtualMachines_Autoscale.json + * x-ms-original-file: 2026-08-02-preview/AgentPoolsCreate_FlexNode.json + */ + /** + * Sample code: Create FlexNode Agent Pool. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void + createFlexNodeAgentPool(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getAgentPools() + .createOrUpdate("rg1", "clustername1", "flexnode1", + new AgentPoolInner().withTypePropertiesType(AgentPoolType.FLEX_NODES) + .withMode(AgentPoolMode.USER) + .withOrchestratorVersion("1.32"), + null, null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-08-02-preview/AgentPoolsCreate_TypeVirtualMachines_Autoscale.json */ /** * Sample code: Create Agent Pool with VirtualMachines pool type with autoscaling enabled. @@ -360,7 +559,7 @@ public static void createAgentPoolWithVirtualMachinesPoolTypeWithAutoscalingEnab } /* - * x-ms-original-file: 2026-08-01/AgentPoolsCreate_WasmWasi.json + * x-ms-original-file: 2026-08-02-preview/AgentPoolsCreate_WasmWasi.json */ /** * Sample code: Create Agent Pool with Krustlet and the WASI runtime. @@ -383,28 +582,7 @@ public static void createAgentPoolWithKrustletAndTheWASIRuntime( } /* - * x-ms-original-file: 2026-08-01/AgentPoolsCreate_PPG.json - */ - /** - * Sample code: Create Agent Pool with PPG. - * - * @param manager Entry point to ContainerServiceManager. - */ - public static void - createAgentPoolWithPPG(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { - manager.serviceClient() - .getAgentPools() - .createOrUpdate("rg1", "clustername1", "agentpool1", new AgentPoolInner().withCount(3) - .withVmSize("Standard_DS2_v2") - .withOsType(OSType.LINUX) - .withOrchestratorVersion("") - .withProximityPlacementGroupId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/proximityPlacementGroups/ppg1"), - null, null, com.azure.core.util.Context.NONE); - } - - /* - * x-ms-original-file: 2026-08-01/AgentPoolsCreate_Snapshot.json + * x-ms-original-file: 2026-08-02-preview/AgentPoolsCreate_Snapshot.json */ /** * Sample code: Create Agent Pool using an agent pool snapshot. @@ -426,7 +604,7 @@ public static void createAgentPoolUsingAnAgentPoolSnapshot( } /* - * x-ms-original-file: 2026-08-01/AgentPoolsCreate_CustomNodeConfig.json + * x-ms-original-file: 2026-08-02-preview/AgentPoolsCreate_CustomNodeConfig.json */ /** * Sample code: Create Agent Pool with KubeletConfig and LinuxOSConfig. @@ -449,7 +627,18 @@ public static void createAgentPoolWithKubeletConfigAndLinuxOSConfig( .withImageGcLowThreshold(70) .withTopologyManagerPolicy("best-effort") .withAllowedUnsafeSysctls(Arrays.asList("kernel.msg*", "net.core.somaxconn")) - .withFailSwapOn(false)) + .withFailSwapOn(false) + .withKubeReserved(new KubeReserved().withCpuMillicores(200).withMemoryMB(1024)) + .withHardEvictionThreshold(new HardEvictionThreshold().withMemoryAvailable("500Mi") + .withNodeFsAvailable("15%") + .withNodeFsInodesFree("10%")) + .withSoftEvictionThreshold(new SoftEvictionThreshold().withMemoryAvailable("750Mi") + .withNodeFsAvailable("20%") + .withNodeFsInodesFree("15%")) + .withSoftEvictionGracePeriod(new SoftEvictionGracePeriod().withMemoryAvailable("1m30s") + .withNodeFsAvailable("2m") + .withNodeFsInodesFree("2m")) + .withEvictionMaxPodGracePeriodInSeconds(60)) .withLinuxOSConfig(new LinuxOSConfig() .withSysctls(new SysctlConfig().withNetCoreWmemDefault(12345) .withNetIpv4TcpTwReuse(true) @@ -462,23 +651,7 @@ public static void createAgentPoolWithKubeletConfigAndLinuxOSConfig( } /* - * x-ms-original-file: 2026-08-01/AgentPools_Stop.json - */ - /** - * Sample code: Stop Agent Pool. - * - * @param manager Entry point to ContainerServiceManager. - */ - public static void stopAgentPool(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { - manager.serviceClient() - .getAgentPools() - .createOrUpdate("rg1", "clustername1", "agentpool1", - new AgentPoolInner().withPowerState(new PowerState().withCode(Code.STOPPED)), null, null, - com.azure.core.util.Context.NONE); - } - - /* - * x-ms-original-file: 2026-08-01/AgentPoolsCreate_MessageOfTheDay.json + * x-ms-original-file: 2026-08-02-preview/AgentPoolsCreate_MessageOfTheDay.json */ /** * Sample code: Create Agent Pool with Message of the Day. @@ -501,28 +674,7 @@ public static void stopAgentPool(com.azure.resourcemanager.containerservice.Cont } /* - * x-ms-original-file: 2026-08-01/AgentPoolsCreate_CRG.json - */ - /** - * Sample code: Create Agent Pool with Capacity Reservation Group. - * - * @param manager Entry point to ContainerServiceManager. - */ - public static void createAgentPoolWithCapacityReservationGroup( - com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { - manager.serviceClient() - .getAgentPools() - .createOrUpdate("rg1", "clustername1", "agentpool1", new AgentPoolInner().withCount(3) - .withVmSize("Standard_DS2_v2") - .withOsType(OSType.LINUX) - .withOrchestratorVersion("") - .withCapacityReservationGroupId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/CapacityReservationGroups/crg1"), - null, null, com.azure.core.util.Context.NONE); - } - - /* - * x-ms-original-file: 2026-08-01/AgentPoolsCreate_OSSKU.json + * x-ms-original-file: 2026-08-02-preview/AgentPoolsCreate_OSSKU.json */ /** * Sample code: Create Agent Pool with OSSKU. @@ -558,31 +710,6 @@ public static void createAgentPoolWithCapacityReservationGroup( null, null, com.azure.core.util.Context.NONE); } - /* - * x-ms-original-file: 2026-08-01/AgentPoolsCreate_TypeVirtualMachines.json - */ - /** - * Sample code: Create Agent Pool with VirtualMachines pool type. - * - * @param manager Entry point to ContainerServiceManager. - */ - public static void createAgentPoolWithVirtualMachinesPoolType( - com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { - manager.serviceClient() - .getAgentPools() - .createOrUpdate("rg1", "clustername1", "agentpool1", - new AgentPoolInner().withOsType(OSType.LINUX) - .withTypePropertiesType(AgentPoolType.VIRTUAL_MACHINES) - .withOrchestratorVersion("1.9.6") - .withTags(mapOf("name1", "val1")) - .withNodeLabels(mapOf("key1", "fakeTokenPlaceholder")) - .withNodeTaints(Arrays.asList("Key1=Value1:NoSchedule")) - .withVirtualMachinesProfile(new VirtualMachinesProfile().withScale(new ScaleProfile() - .withManual(Arrays.asList(new ManualScaleProfile().withSize("Standard_D2_v2").withCount(3), - new ManualScaleProfile().withSize("Standard_D2_v3").withCount(2))))), - null, null, com.azure.core.util.Context.NONE); - } - // Use "Map.of" if available @SuppressWarnings("unchecked") private static Map mapOf(Object... inputs) { diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsDeleteMachinesSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsDeleteMachinesSamples.java index ff7fe9ad99bd4..83aad23ff79c9 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsDeleteMachinesSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsDeleteMachinesSamples.java @@ -12,7 +12,7 @@ */ public final class AgentPoolsDeleteMachinesSamples { /* - * x-ms-original-file: 2026-08-01/AgentPoolsDeleteMachines.json + * x-ms-original-file: 2026-08-02-preview/AgentPoolsDeleteMachines.json */ /** * Sample code: Delete Specific Machines in an Agent Pool. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsDeleteSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsDeleteSamples.java index d23fd1a9e07c4..8a6e73de3811b 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsDeleteSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsDeleteSamples.java @@ -9,7 +9,22 @@ */ public final class AgentPoolsDeleteSamples { /* - * x-ms-original-file: 2026-08-01/AgentPoolsDelete.json + * x-ms-original-file: 2026-08-02-preview/AgentPoolsDelete_IgnorePodDisruptionBudget.json + */ + /** + * Sample code: Delete Agent Pool by ignoring PodDisruptionBudget. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void deleteAgentPoolByIgnoringPodDisruptionBudget( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getAgentPools() + .delete("rg1", "clustername1", "agentpool1", true, null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-08-02-preview/AgentPoolsDelete.json */ /** * Sample code: Delete Agent Pool. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetAvailableAgentPoolVersionsSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetAvailableAgentPoolVersionsSamples.java index 7efb230bd5302..a21694f002b7c 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetAvailableAgentPoolVersionsSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetAvailableAgentPoolVersionsSamples.java @@ -9,7 +9,7 @@ */ public final class AgentPoolsGetAvailableAgentPoolVersionsSamples { /* - * x-ms-original-file: 2026-08-01/AgentPoolsGetAgentPoolAvailableVersions.json + * x-ms-original-file: 2026-08-02-preview/AgentPoolsGetAgentPoolAvailableVersions.json */ /** * Sample code: Get available versions for agent pool. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetSamples.java index b0154d385494d..6e77657957b11 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetSamples.java @@ -9,7 +9,7 @@ */ public final class AgentPoolsGetSamples { /* - * x-ms-original-file: 2026-08-01/AgentPoolsGet.json + * x-ms-original-file: 2026-08-02-preview/AgentPoolsGet.json */ /** * Sample code: Get Agent Pool. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetUpgradeProfileSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetUpgradeProfileSamples.java index 465413cf8d70e..32fa020a642e9 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetUpgradeProfileSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsGetUpgradeProfileSamples.java @@ -9,7 +9,7 @@ */ public final class AgentPoolsGetUpgradeProfileSamples { /* - * x-ms-original-file: 2026-08-01/AgentPoolsGetUpgradeProfile.json + * x-ms-original-file: 2026-08-02-preview/AgentPoolsGetUpgradeProfile.json */ /** * Sample code: Get Upgrade Profile for Agent Pool. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsListBootstrapDataSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsListBootstrapDataSamples.java new file mode 100644 index 0000000000000..85e981ca51964 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsListBootstrapDataSamples.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +import com.azure.resourcemanager.containerservice.models.ListBootstrapDataRequest; + +/** + * Samples for AgentPools ListBootstrapData. + */ +public final class AgentPoolsListBootstrapDataSamples { + /* + * x-ms-original-file: 2026-08-02-preview/AgentPoolsListBootstrapData.json + */ + /** + * Sample code: List Bootstrap Data for FlexNode Agent Pool. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void listBootstrapDataForFlexNodeAgentPool( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getAgentPools() + .listBootstrapDataWithResponse("rg1", "clustername1", "flexnode1", new ListBootstrapDataRequest(), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsListSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsListSamples.java index 1554c0e006a5a..9e713c4b620d7 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsListSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsListSamples.java @@ -9,7 +9,7 @@ */ public final class AgentPoolsListSamples { /* - * x-ms-original-file: 2026-08-01/AgentPoolsList.json + * x-ms-original-file: 2026-08-02-preview/AgentPoolsList.json */ /** * Sample code: List Agent Pools by Managed Cluster. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsUpdateSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsUpdateSamples.java new file mode 100644 index 0000000000000..61f52e65c4437 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsUpdateSamples.java @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +import com.azure.resourcemanager.containerservice.models.AgentPoolUpdate; +import com.azure.resourcemanager.containerservice.models.AgentPoolUpdateManualScaleProfile; +import com.azure.resourcemanager.containerservice.models.AgentPoolUpdateProperties; +import com.azure.resourcemanager.containerservice.models.AgentPoolUpdateScaleProfile; +import com.azure.resourcemanager.containerservice.models.AgentPoolUpdateVirtualMachinesProfile; +import java.util.Arrays; + +/** + * Samples for AgentPools Update. + */ +public final class AgentPoolsUpdateSamples { + /* + * x-ms-original-file: 2026-08-02-preview/AgentPoolsUpdate_Scale.json + */ + /** + * Sample code: Update Agent Pool - Scale VMSS. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void + updateAgentPoolScaleVMSS(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getAgentPools() + .update("rg1", "clustername1", "agentpool1", + new AgentPoolUpdate().withProperties(new AgentPoolUpdateProperties().withCount(5)), null, + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-08-02-preview/AgentPoolsUpdate_ScaleVMs.json + */ + /** + * Sample code: Update Agent Pool - Scale VirtualMachines. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void updateAgentPoolScaleVirtualMachines( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getAgentPools() + .update("rg1", "clustername1", "agentpool1", + new AgentPoolUpdate().withProperties(new AgentPoolUpdateProperties().withVirtualMachinesProfile( + new AgentPoolUpdateVirtualMachinesProfile().withScale(new AgentPoolUpdateScaleProfile().withManual( + Arrays.asList(new AgentPoolUpdateManualScaleProfile().withSize("Standard_D2_v2").withCount(5), + new AgentPoolUpdateManualScaleProfile().withSize("Standard_D2_v3").withCount(3)))))), + null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsUpgradeNodeImageVersionSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsUpgradeNodeImageVersionSamples.java index 660e9df97af6e..6187b130bfa26 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsUpgradeNodeImageVersionSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AgentPoolsUpgradeNodeImageVersionSamples.java @@ -9,7 +9,7 @@ */ public final class AgentPoolsUpgradeNodeImageVersionSamples { /* - * x-ms-original-file: 2026-08-01/AgentPoolsUpgradeNodeImageVersion.json + * x-ms-original-file: 2026-08-02-preview/AgentPoolsUpgradeNodeImageVersion.json */ /** * Sample code: Upgrade Agent Pool Node Image Version. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AlertConfigurationsCreateOrUpdateSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AlertConfigurationsCreateOrUpdateSamples.java new file mode 100644 index 0000000000000..8369eba6e8cd9 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AlertConfigurationsCreateOrUpdateSamples.java @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +import com.azure.resourcemanager.containerservice.fluent.models.AlertConfigurationInner; +import com.azure.resourcemanager.containerservice.models.AlertConfigurationMode; +import com.azure.resourcemanager.containerservice.models.AlertConfigurationProperties; +import com.azure.resourcemanager.containerservice.models.AlertNotification; + +/** + * Samples for AlertConfigurations CreateOrUpdate. + */ +public final class AlertConfigurationsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2026-08-02-preview/AlertConfigurations_CreateOrUpdate.json + */ + /** + * Sample code: Create or Update Alert Configuration. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void + createOrUpdateAlertConfiguration(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getAlertConfigurations() + .createOrUpdate("rg1", "clustername1", "alertconfig1", + new AlertConfigurationInner().withProperties(new AlertConfigurationProperties() + .withMode(AlertConfigurationMode.MANAGED) + .withNotification(new AlertNotification().withActionGroupId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Insights/actionGroups/actiongroup1"))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AlertConfigurationsDeleteSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AlertConfigurationsDeleteSamples.java new file mode 100644 index 0000000000000..6117566637c00 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AlertConfigurationsDeleteSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +/** + * Samples for AlertConfigurations Delete. + */ +public final class AlertConfigurationsDeleteSamples { + /* + * x-ms-original-file: 2026-08-02-preview/AlertConfigurations_Delete.json + */ + /** + * Sample code: Delete Alert Configuration. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void + deleteAlertConfiguration(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getAlertConfigurations() + .delete("rg1", "clustername1", "alertconfig1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AlertConfigurationsGetSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AlertConfigurationsGetSamples.java new file mode 100644 index 0000000000000..d4050686b13fe --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AlertConfigurationsGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +/** + * Samples for AlertConfigurations Get. + */ +public final class AlertConfigurationsGetSamples { + /* + * x-ms-original-file: 2026-08-02-preview/AlertConfigurations_Get.json + */ + /** + * Sample code: Get Alert Configuration. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void + getAlertConfiguration(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getAlertConfigurations() + .getWithResponse("rg1", "clustername1", "alertconfig1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AlertConfigurationsListByManagedClusterSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AlertConfigurationsListByManagedClusterSamples.java new file mode 100644 index 0000000000000..808ac8c4f61b6 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/AlertConfigurationsListByManagedClusterSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +/** + * Samples for AlertConfigurations ListByManagedCluster. + */ +public final class AlertConfigurationsListByManagedClusterSamples { + /* + * x-ms-original-file: 2026-08-02-preview/AlertConfigurations_ListByManagedCluster.json + */ + /** + * Sample code: List Alert Configurations by Managed Cluster. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void listAlertConfigurationsByManagedCluster( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getAlertConfigurations() + .listByManagedCluster("rg1", "clustername1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/IdentityBindingsCreateOrUpdateSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/IdentityBindingsCreateOrUpdateSamples.java index e3f6191fb62ef..2c80680dde09a 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/IdentityBindingsCreateOrUpdateSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/IdentityBindingsCreateOrUpdateSamples.java @@ -5,15 +5,20 @@ package com.azure.resourcemanager.containerservice.generated; import com.azure.resourcemanager.containerservice.fluent.models.IdentityBindingInner; +import com.azure.resourcemanager.containerservice.models.AllowedSubject; import com.azure.resourcemanager.containerservice.models.IdentityBindingManagedIdentityProfile; import com.azure.resourcemanager.containerservice.models.IdentityBindingProperties; +import com.azure.resourcemanager.containerservice.models.LabelSelector; +import com.azure.resourcemanager.containerservice.models.LabelSelectorRequirement; +import com.azure.resourcemanager.containerservice.models.Operator; +import java.util.Arrays; /** * Samples for IdentityBindings CreateOrUpdate. */ public final class IdentityBindingsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-08-01/IdentityBindings_Create_Or_Update.json + * x-ms-original-file: 2026-08-02-preview/IdentityBindings_Create_Or_Update.json */ /** * Sample code: Create or update Identity Binding. @@ -30,4 +35,33 @@ public final class IdentityBindingsCreateOrUpdateSamples { "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"))), com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2026-08-02-preview/IdentityBindings_Create_Or_UpdateWithAllowedSubjects.json + */ + /** + * Sample code: Create or update Identity Binding with allowed subjects. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void createOrUpdateIdentityBindingWithAllowedSubjects( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getIdentityBindings() + .createOrUpdate("rg1", "clustername1", "identitybinding1", + new IdentityBindingInner().withProperties(new IdentityBindingProperties() + .withManagedIdentity(new IdentityBindingManagedIdentityProfile().withResourceId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1")) + .withAllowedSubjects(Arrays.asList( + new AllowedSubject().withNamespaceSelector( + new LabelSelector().withMatchLabels(Arrays.asList("kubernetes.io/metadata.name=team-a"))), + new AllowedSubject() + .withNamespaceSelector(new LabelSelector().withMatchExpressions( + Arrays.asList(new LabelSelectorRequirement().withKey("fakeTokenPlaceholder") + .withOperator(Operator.IN) + .withValues(Arrays.asList("team-a", "team-b"))))) + .withServiceAccountSelector( + new LabelSelector().withMatchLabels(Arrays.asList("app=my-workload")))))), + com.azure.core.util.Context.NONE); + } } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/IdentityBindingsDeleteSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/IdentityBindingsDeleteSamples.java index 3410dcb14a37a..284448505dbc2 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/IdentityBindingsDeleteSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/IdentityBindingsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class IdentityBindingsDeleteSamples { /* - * x-ms-original-file: 2026-08-01/IdentityBindings_Delete.json + * x-ms-original-file: 2026-08-02-preview/IdentityBindings_Delete.json */ /** * Sample code: Delete Identity Binding. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/IdentityBindingsGetSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/IdentityBindingsGetSamples.java index b15af66b9bd0b..dae26848fd386 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/IdentityBindingsGetSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/IdentityBindingsGetSamples.java @@ -9,7 +9,7 @@ */ public final class IdentityBindingsGetSamples { /* - * x-ms-original-file: 2026-08-01/IdentityBindings_Get.json + * x-ms-original-file: 2026-08-02-preview/IdentityBindings_Get.json */ /** * Sample code: Get Identity Binding. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/IdentityBindingsListByManagedClusterSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/IdentityBindingsListByManagedClusterSamples.java index cb4f4f0dd2458..5e238b75b58a9 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/IdentityBindingsListByManagedClusterSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/IdentityBindingsListByManagedClusterSamples.java @@ -9,7 +9,7 @@ */ public final class IdentityBindingsListByManagedClusterSamples { /* - * x-ms-original-file: 2026-08-01/IdentityBindings_List.json + * x-ms-original-file: 2026-08-02-preview/IdentityBindings_List.json */ /** * Sample code: List Identity Bindings by Managed Cluster. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/JWTAuthenticatorsCreateOrUpdateSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/JWTAuthenticatorsCreateOrUpdateSamples.java new file mode 100644 index 0000000000000..7c66fcb2ff43e --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/JWTAuthenticatorsCreateOrUpdateSamples.java @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +import com.azure.resourcemanager.containerservice.fluent.models.JWTAuthenticatorInner; +import com.azure.resourcemanager.containerservice.models.JWTAuthenticatorClaimMappingExpression; +import com.azure.resourcemanager.containerservice.models.JWTAuthenticatorClaimMappings; +import com.azure.resourcemanager.containerservice.models.JWTAuthenticatorExtraClaimMappingExpression; +import com.azure.resourcemanager.containerservice.models.JWTAuthenticatorIssuer; +import com.azure.resourcemanager.containerservice.models.JWTAuthenticatorProperties; +import com.azure.resourcemanager.containerservice.models.JWTAuthenticatorValidationRule; +import java.util.Arrays; + +/** + * Samples for JWTAuthenticators CreateOrUpdate. + */ +public final class JWTAuthenticatorsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2026-08-02-preview/JWTAuthenticators_Create_Or_Update_CustomCABundle.json + */ + /** + * Sample code: Create or update JWT Authenticator With Custom CA Bundle. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void createOrUpdateJWTAuthenticatorWithCustomCABundle( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getJWTAuthenticators() + .createOrUpdate("rg1", "clustername1", "jwt1", + new JWTAuthenticatorInner() + .withProperties( + new JWTAuthenticatorProperties() + .withIssuer( + new JWTAuthenticatorIssuer().withUrl("https://example.com") + .withAudiences(Arrays.asList("https://example.com/audience1", + "https://example.com/audience2"))) + .withClaimValidationRules(Arrays.asList( + new JWTAuthenticatorValidationRule().withExpression("has(claims.sub)") + .withMessage("Sub is required"), + new JWTAuthenticatorValidationRule().withExpression("claims.sub != ''") + .withMessage("Sub cannot be empty"))) + .withClaimMappings(new JWTAuthenticatorClaimMappings() + .withUsername(new JWTAuthenticatorClaimMappingExpression() + .withExpression("'aks:jwt:' + claims.sub")) + .withGroups(new JWTAuthenticatorClaimMappingExpression() + .withExpression("claims.groups.split(',').map(group, 'aks:jwt:' + group)")) + .withExtra(Arrays.asList( + new JWTAuthenticatorExtraClaimMappingExpression().withKey("fakeTokenPlaceholder") + .withValueExpression("claims.customfield")))) + .withUserValidationRules(Arrays.asList(new JWTAuthenticatorValidationRule() + .withExpression("user.groups.all(group, group.startsWith('aks:jwt:admin:'))") + .withMessage("Must be in admin user group"))) + .withCertificateAuthorityBundle( + "-----BEGIN CERTIFICATE-----\nMII...rest of the certificate1...\n-----END CERTIFICATE-----")), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-08-02-preview/JWTAuthenticators_Create_Or_Update.json + */ + /** + * Sample code: Create or update JWT Authenticator. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void + createOrUpdateJWTAuthenticator(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getJWTAuthenticators() + .createOrUpdate("rg1", "clustername1", "jwt1", + new JWTAuthenticatorInner() + .withProperties( + new JWTAuthenticatorProperties() + .withIssuer( + new JWTAuthenticatorIssuer().withUrl("https://example.com") + .withAudiences(Arrays.asList("https://example.com/audience1", + "https://example.com/audience2"))) + .withClaimValidationRules(Arrays.asList( + new JWTAuthenticatorValidationRule().withExpression("has(claims.sub)") + .withMessage("Sub is required"), + new JWTAuthenticatorValidationRule().withExpression("claims.sub != ''") + .withMessage("Sub cannot be empty"))) + .withClaimMappings(new JWTAuthenticatorClaimMappings() + .withUsername(new JWTAuthenticatorClaimMappingExpression() + .withExpression("'aks:jwt:' + claims.sub")) + .withGroups(new JWTAuthenticatorClaimMappingExpression() + .withExpression("claims.groups.split(',').map(group, 'aks:jwt:' + group)")) + .withExtra(Arrays.asList( + new JWTAuthenticatorExtraClaimMappingExpression().withKey("fakeTokenPlaceholder") + .withValueExpression("claims.customfield")))) + .withUserValidationRules(Arrays.asList(new JWTAuthenticatorValidationRule() + .withExpression("user.groups.all(group, group.startsWith('aks:jwt:admin:'))") + .withMessage("Must be in admin user group")))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/JWTAuthenticatorsDeleteSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/JWTAuthenticatorsDeleteSamples.java new file mode 100644 index 0000000000000..be9b726b98a30 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/JWTAuthenticatorsDeleteSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +/** + * Samples for JWTAuthenticators Delete. + */ +public final class JWTAuthenticatorsDeleteSamples { + /* + * x-ms-original-file: 2026-08-02-preview/JWTAuthenticators_Delete.json + */ + /** + * Sample code: Delete JWT Authenticator. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void + deleteJWTAuthenticator(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getJWTAuthenticators() + .delete("rg1", "clustername1", "jwt1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/JWTAuthenticatorsGetSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/JWTAuthenticatorsGetSamples.java new file mode 100644 index 0000000000000..44f42f64c20c7 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/JWTAuthenticatorsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +/** + * Samples for JWTAuthenticators Get. + */ +public final class JWTAuthenticatorsGetSamples { + /* + * x-ms-original-file: 2026-08-02-preview/JWTAuthenticators_Get.json + */ + /** + * Sample code: Get JWT Authenticator. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void getJWTAuthenticator(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getJWTAuthenticators() + .getWithResponse("rg1", "clustername1", "jwt1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/JWTAuthenticatorsListByManagedClusterSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/JWTAuthenticatorsListByManagedClusterSamples.java new file mode 100644 index 0000000000000..b495524be475e --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/JWTAuthenticatorsListByManagedClusterSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +/** + * Samples for JWTAuthenticators ListByManagedCluster. + */ +public final class JWTAuthenticatorsListByManagedClusterSamples { + /* + * x-ms-original-file: 2026-08-02-preview/JWTAuthenticators_List.json + */ + /** + * Sample code: List JWT authenticators by Managed Cluster. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void listJWTAuthenticatorsByManagedCluster( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getJWTAuthenticators() + .listByManagedCluster("rg1", "clustername1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/LoadBalancersCreateOrUpdateSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/LoadBalancersCreateOrUpdateSamples.java new file mode 100644 index 0000000000000..93790c083753e --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/LoadBalancersCreateOrUpdateSamples.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +import com.azure.resourcemanager.containerservice.fluent.models.LoadBalancerInner; + +/** + * Samples for LoadBalancers CreateOrUpdate. + */ +public final class LoadBalancersCreateOrUpdateSamples { + /* + * x-ms-original-file: 2026-08-02-preview/LoadBalancers_Create_Or_Update.json + */ + /** + * Sample code: Create or update a Load Balancer. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void + createOrUpdateALoadBalancer(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getLoadBalancers() + .createOrUpdateWithResponse("rg1", "clustername1", "kubernetes", + new LoadBalancerInner().withPrimaryAgentPoolName("agentpool1").withAllowServicePlacement(true), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/LoadBalancersDeleteSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/LoadBalancersDeleteSamples.java new file mode 100644 index 0000000000000..ad1adb4fea953 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/LoadBalancersDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +/** + * Samples for LoadBalancers Delete. + */ +public final class LoadBalancersDeleteSamples { + /* + * x-ms-original-file: 2026-08-02-preview/LoadBalancers_Delete.json + */ + /** + * Sample code: Delete a Load Balancer. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void deleteALoadBalancer(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getLoadBalancers() + .delete("rg1", "clustername1", "kubernetes", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/LoadBalancersGetSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/LoadBalancersGetSamples.java new file mode 100644 index 0000000000000..cff708f122dc4 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/LoadBalancersGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +/** + * Samples for LoadBalancers Get. + */ +public final class LoadBalancersGetSamples { + /* + * x-ms-original-file: 2026-08-02-preview/LoadBalancers_Get.json + */ + /** + * Sample code: Get Load Balancer. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void getLoadBalancer(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getLoadBalancers() + .getWithResponse("rg1", "clustername1", "kubernetes", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/LoadBalancersListByManagedClusterSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/LoadBalancersListByManagedClusterSamples.java new file mode 100644 index 0000000000000..08005bf093a67 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/LoadBalancersListByManagedClusterSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +/** + * Samples for LoadBalancers ListByManagedCluster. + */ +public final class LoadBalancersListByManagedClusterSamples { + /* + * x-ms-original-file: 2026-08-02-preview/LoadBalancers_List.json + */ + /** + * Sample code: List Load Balancers by Managed Cluster. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void + listLoadBalancersByManagedCluster(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getLoadBalancers() + .listByManagedCluster("rg1", "clustername1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MachinesCreateOrUpdateSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MachinesCreateOrUpdateSamples.java new file mode 100644 index 0000000000000..3ee9bf0527604 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MachinesCreateOrUpdateSamples.java @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +import com.azure.resourcemanager.containerservice.fluent.models.MachineInner; +import com.azure.resourcemanager.containerservice.models.AgentPoolMode; +import com.azure.resourcemanager.containerservice.models.KubeletDiskType; +import com.azure.resourcemanager.containerservice.models.MachineHardwareProfile; +import com.azure.resourcemanager.containerservice.models.MachineKubernetesProfile; +import com.azure.resourcemanager.containerservice.models.MachineOSProfile; +import com.azure.resourcemanager.containerservice.models.MachineProperties; +import com.azure.resourcemanager.containerservice.models.OSSku; +import com.azure.resourcemanager.containerservice.models.OSType; +import com.azure.resourcemanager.containerservice.models.ScaleSetPriority; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for Machines CreateOrUpdate. + */ +public final class MachinesCreateOrUpdateSamples { + /* + * x-ms-original-file: 2026-08-02-preview/MachineCreate_Update.json + */ + /** + * Sample code: Create/Update Machine. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void createUpdateMachine(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getMachines() + .createOrUpdate("rg1", "clustername1", "agentpool1", "machine1", + new MachineInner().withProperties(new MachineProperties() + .withHardware(new MachineHardwareProfile().withVmSize("Standard_DS1_v2")) + .withOperatingSystem( + new MachineOSProfile().withOsType(OSType.LINUX).withOsSku(OSSku.UBUNTU).withEnableFips(false)) + .withKubernetes(new MachineKubernetesProfile().withNodeLabels(mapOf("key1", "fakeTokenPlaceholder")) + .withOrchestratorVersion("1.30") + .withKubeletDiskType(KubeletDiskType.OS) + .withNodeTaints(Arrays.asList("Key1=Value1:NoSchedule")) + .withMaxPods(110)) + .withMode(AgentPoolMode.USER) + .withPriority(ScaleSetPriority.SPOT) + .withTags(mapOf("name1", "val1"))), + null, null, 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/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MachinesGetSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MachinesGetSamples.java index 5aa6ec7591736..d4c7d71000ea6 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MachinesGetSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MachinesGetSamples.java @@ -9,7 +9,7 @@ */ public final class MachinesGetSamples { /* - * x-ms-original-file: 2026-08-01/MachineGet.json + * x-ms-original-file: 2026-08-02-preview/MachineGet.json */ /** * Sample code: Get a Machine in an Agent Pools by Managed Cluster. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MachinesListSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MachinesListSamples.java index b51946b1033b0..3ba825e23b81d 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MachinesListSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MachinesListSamples.java @@ -9,7 +9,7 @@ */ public final class MachinesListSamples { /* - * x-ms-original-file: 2026-08-01/MachineList.json + * x-ms-original-file: 2026-08-02-preview/MachineList.json */ /** * Sample code: List Machines in an Agentpool by Managed Cluster. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsCreateOrUpdateSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsCreateOrUpdateSamples.java index cfbbb0548e964..de6c00612dbc5 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsCreateOrUpdateSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsCreateOrUpdateSamples.java @@ -19,7 +19,7 @@ */ public final class MaintenanceConfigurationsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-08-01/MaintenanceConfigurationsCreate_Update_MaintenanceWindow.json + * x-ms-original-file: 2026-08-02-preview/MaintenanceConfigurationsCreate_Update_MaintenanceWindow.json */ /** * Sample code: Create/Update Maintenance Configuration with Maintenance Window. @@ -45,4 +45,22 @@ public static void createUpdateMaintenanceConfigurationWithMaintenanceWindow( .withEnd(LocalDate.parse("2024-01-05"))))), com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2026-08-02-preview/MaintenanceConfigurationsCreate_LinkedMaintenanceWindow.json + */ + /** + * Sample code: Create a Linked Maintenance Configuration. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void createALinkedMaintenanceConfiguration( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getMaintenanceConfigurations() + .createOrUpdateWithResponse("rg1", "clustername1", "aksManagedAutoUpgradeSchedule", + new MaintenanceConfigurationInner().withMaintenanceWindowId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/maintenanceWindows/myMaintenanceWindow"), + com.azure.core.util.Context.NONE); + } } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsDeleteSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsDeleteSamples.java index ee1c9cf83c357..0c1a2b8e30de4 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsDeleteSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class MaintenanceConfigurationsDeleteSamples { /* - * x-ms-original-file: 2026-08-01/MaintenanceConfigurationsDelete_MaintenanceWindow.json + * x-ms-original-file: 2026-08-02-preview/MaintenanceConfigurationsDelete_MaintenanceWindow.json */ /** * Sample code: Delete Maintenance Configuration For Node OS Upgrade. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsGetSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsGetSamples.java index ca6397d5d07fd..3fc380b9de9c1 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsGetSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsGetSamples.java @@ -9,7 +9,22 @@ */ public final class MaintenanceConfigurationsGetSamples { /* - * x-ms-original-file: 2026-08-01/MaintenanceConfigurationsGet_MaintenanceWindow.json + * x-ms-original-file: 2026-08-02-preview/MaintenanceConfigurationsGet_LinkedMaintenanceWindow.json + */ + /** + * Sample code: Get a Linked Maintenance Configuration. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void + getALinkedMaintenanceConfiguration(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getMaintenanceConfigurations() + .getWithResponse("rg1", "clustername1", "aksManagedAutoUpgradeSchedule", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-08-02-preview/MaintenanceConfigurationsGet_MaintenanceWindow.json */ /** * Sample code: Get Maintenance Configuration Configured With Maintenance Window. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsListByManagedClusterSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsListByManagedClusterSamples.java index 8a305a6053a80..1dad2a127dce6 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsListByManagedClusterSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceConfigurationsListByManagedClusterSamples.java @@ -9,7 +9,7 @@ */ public final class MaintenanceConfigurationsListByManagedClusterSamples { /* - * x-ms-original-file: 2026-08-01/MaintenanceConfigurationsList_MaintenanceWindow.json + * x-ms-original-file: 2026-08-02-preview/MaintenanceConfigurationsList_MaintenanceWindow.json */ /** * Sample code: List maintenance configurations configured with maintenance window by Managed Cluster. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceWindowsCreateOrUpdateSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceWindowsCreateOrUpdateSamples.java new file mode 100644 index 0000000000000..28b5a8af76c49 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceWindowsCreateOrUpdateSamples.java @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +import com.azure.resourcemanager.containerservice.fluent.models.MaintenanceWindowResourceInner; +import com.azure.resourcemanager.containerservice.models.DateSpan; +import com.azure.resourcemanager.containerservice.models.MaintenanceWindowResourceProperties; +import com.azure.resourcemanager.containerservice.models.Schedule; +import com.azure.resourcemanager.containerservice.models.WeekDay; +import com.azure.resourcemanager.containerservice.models.WeeklySchedule; +import java.time.LocalDate; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for MaintenanceWindows CreateOrUpdate. + */ +public final class MaintenanceWindowsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2026-08-02-preview/MaintenanceWindowsCreateOrUpdate.json + */ + /** + * Sample code: Create/Update Maintenance Window. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void + createUpdateMaintenanceWindow(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getMaintenanceWindows() + .createOrUpdate("rg-maintenance", "production-weekends", + new MaintenanceWindowResourceInner().withLocation("eastus") + .withTags(mapOf("environment", "production")) + .withProperties(new MaintenanceWindowResourceProperties() + .withSchedule(new Schedule() + .withWeekly(new WeeklySchedule().withIntervalWeeks(1).withDayOfWeek(WeekDay.SATURDAY))) + .withStartDate(LocalDate.parse("2026-04-05")) + .withStartTime("02:00") + .withDurationHours(8) + .withUtcOffset("-07:00") + .withNotAllowedDates(Arrays.asList(new DateSpan().withStart(LocalDate.parse("2026-12-23")) + .withEnd(LocalDate.parse("2027-01-03"))))), + 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/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceWindowsDeleteSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceWindowsDeleteSamples.java new file mode 100644 index 0000000000000..2cd5cdd338ae7 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceWindowsDeleteSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +/** + * Samples for MaintenanceWindows Delete. + */ +public final class MaintenanceWindowsDeleteSamples { + /* + * x-ms-original-file: 2026-08-02-preview/MaintenanceWindowsDelete.json + */ + /** + * Sample code: Delete Maintenance Window. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void + deleteMaintenanceWindow(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getMaintenanceWindows() + .delete("rg-maintenance", "production-weekends", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceWindowsGetByResourceGroupSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceWindowsGetByResourceGroupSamples.java new file mode 100644 index 0000000000000..0773ed9435f91 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceWindowsGetByResourceGroupSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +/** + * Samples for MaintenanceWindows GetByResourceGroup. + */ +public final class MaintenanceWindowsGetByResourceGroupSamples { + /* + * x-ms-original-file: 2026-08-02-preview/MaintenanceWindowsGet.json + */ + /** + * Sample code: Get Maintenance Window. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void + getMaintenanceWindow(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getMaintenanceWindows() + .getByResourceGroupWithResponse("rg-maintenance", "production-weekends", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceWindowsListByResourceGroupSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceWindowsListByResourceGroupSamples.java new file mode 100644 index 0000000000000..d008dff3d07db --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceWindowsListByResourceGroupSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +/** + * Samples for MaintenanceWindows ListByResourceGroup. + */ +public final class MaintenanceWindowsListByResourceGroupSamples { + /* + * x-ms-original-file: 2026-08-02-preview/MaintenanceWindowsList.json + */ + /** + * Sample code: List Maintenance Windows by Resource Group. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void listMaintenanceWindowsByResourceGroup( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getMaintenanceWindows() + .listByResourceGroup("rg-maintenance", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceWindowsListSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceWindowsListSamples.java new file mode 100644 index 0000000000000..11ece3a1f80a8 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceWindowsListSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +/** + * Samples for MaintenanceWindows List. + */ +public final class MaintenanceWindowsListSamples { + /* + * x-ms-original-file: 2026-08-02-preview/MaintenanceWindowsListBySubscription.json + */ + /** + * Sample code: List Maintenance Windows by Subscription. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void listMaintenanceWindowsBySubscription( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient().getMaintenanceWindows().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceWindowsUpdateTagsSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceWindowsUpdateTagsSamples.java new file mode 100644 index 0000000000000..6d9a89acadb6f --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MaintenanceWindowsUpdateTagsSamples.java @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +import com.azure.resourcemanager.containerservice.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for MaintenanceWindows UpdateTags. + */ +public final class MaintenanceWindowsUpdateTagsSamples { + /* + * x-ms-original-file: 2026-08-02-preview/MaintenanceWindowsUpdateTags.json + */ + /** + * Sample code: Update Maintenance Window Tags. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void + updateMaintenanceWindowTags(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getMaintenanceWindows() + .updateTagsWithResponse("rg-maintenance", "production-weekends", + new TagsObject().withTags(mapOf("environment", "production", "team", "aks-platform")), + 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/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClusterSnapshotsCreateOrUpdateSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClusterSnapshotsCreateOrUpdateSamples.java new file mode 100644 index 0000000000000..6292e46246220 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClusterSnapshotsCreateOrUpdateSamples.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.containerservice.generated; + +import com.azure.resourcemanager.containerservice.fluent.models.ManagedClusterSnapshotInner; +import com.azure.resourcemanager.containerservice.models.CreationData; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for ManagedClusterSnapshots CreateOrUpdate. + */ +public final class ManagedClusterSnapshotsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2026-08-02-preview/ManagedClusterSnapshotsCreate.json + */ + /** + * Sample code: Create/Update Managed Cluster Snapshot. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void + createUpdateManagedClusterSnapshot(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getManagedClusterSnapshots() + .createOrUpdateWithResponse("rg1", "snapshot1", new ManagedClusterSnapshotInner().withLocation("westus") + .withTags(mapOf("key1", "fakeTokenPlaceholder", "key2", "fakeTokenPlaceholder")) + .withCreationData(new CreationData().withSourceResourceId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/managedClusters/cluster1")), + 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/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClusterSnapshotsDeleteSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClusterSnapshotsDeleteSamples.java new file mode 100644 index 0000000000000..585e20cfceb2e --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClusterSnapshotsDeleteSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +/** + * Samples for ManagedClusterSnapshots Delete. + */ +public final class ManagedClusterSnapshotsDeleteSamples { + /* + * x-ms-original-file: 2026-08-02-preview/ManagedClusterSnapshotsDelete.json + */ + /** + * Sample code: Delete Managed Cluster Snapshot. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void + deleteManagedClusterSnapshot(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getManagedClusterSnapshots() + .deleteWithResponse("rg1", "snapshot1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClusterSnapshotsGetByResourceGroupSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClusterSnapshotsGetByResourceGroupSamples.java new file mode 100644 index 0000000000000..1503e6a10cf76 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClusterSnapshotsGetByResourceGroupSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +/** + * Samples for ManagedClusterSnapshots GetByResourceGroup. + */ +public final class ManagedClusterSnapshotsGetByResourceGroupSamples { + /* + * x-ms-original-file: 2026-08-02-preview/ManagedClusterSnapshotsGet.json + */ + /** + * Sample code: Get Managed Cluster Snapshot. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void + getManagedClusterSnapshot(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getManagedClusterSnapshots() + .getByResourceGroupWithResponse("rg1", "snapshot1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClusterSnapshotsListByResourceGroupSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClusterSnapshotsListByResourceGroupSamples.java new file mode 100644 index 0000000000000..dc0ab97aad514 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClusterSnapshotsListByResourceGroupSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +/** + * Samples for ManagedClusterSnapshots ListByResourceGroup. + */ +public final class ManagedClusterSnapshotsListByResourceGroupSamples { + /* + * x-ms-original-file: 2026-08-02-preview/ManagedClusterSnapshotsListByResourceGroup.json + */ + /** + * Sample code: List Managed Cluster Snapshots by Resource Group. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void listManagedClusterSnapshotsByResourceGroup( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getManagedClusterSnapshots() + .listByResourceGroup("rg1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClusterSnapshotsListSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClusterSnapshotsListSamples.java new file mode 100644 index 0000000000000..aa5837c7e1a50 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClusterSnapshotsListSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +/** + * Samples for ManagedClusterSnapshots List. + */ +public final class ManagedClusterSnapshotsListSamples { + /* + * x-ms-original-file: 2026-08-02-preview/ManagedClusterSnapshotsList.json + */ + /** + * Sample code: List Managed Cluster Snapshots. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void + listManagedClusterSnapshots(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient().getManagedClusterSnapshots().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClusterSnapshotsUpdateTagsSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClusterSnapshotsUpdateTagsSamples.java new file mode 100644 index 0000000000000..4979ff96575c3 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClusterSnapshotsUpdateTagsSamples.java @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +import com.azure.resourcemanager.containerservice.models.TagsObject; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for ManagedClusterSnapshots UpdateTags. + */ +public final class ManagedClusterSnapshotsUpdateTagsSamples { + /* + * x-ms-original-file: 2026-08-02-preview/ManagedClusterSnapshotsUpdateTags.json + */ + /** + * Sample code: Update Managed Cluster Snapshot Tags. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void + updateManagedClusterSnapshotTags(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getManagedClusterSnapshots() + .updateTagsWithResponse("rg1", "snapshot1", + new TagsObject().withTags(mapOf("key2", "fakeTokenPlaceholder", "key3", "fakeTokenPlaceholder")), + 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/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersAbortLatestOperationSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersAbortLatestOperationSamples.java index 36a7710b07e8e..4740613feeb55 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersAbortLatestOperationSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersAbortLatestOperationSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedClustersAbortLatestOperationSamples { /* - * x-ms-original-file: 2026-08-01/ManagedClustersAbortOperation.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersAbortOperation.json */ /** * Sample code: Abort operation on managed cluster. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersCreateOrUpdateSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersCreateOrUpdateSamples.java index fe5726b4a86e2..96d675d098f8b 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersCreateOrUpdateSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersCreateOrUpdateSamples.java @@ -12,11 +12,20 @@ import com.azure.resourcemanager.containerservice.models.AdvancedNetworkingSecurityTransitEncryption; import com.azure.resourcemanager.containerservice.models.AgentPoolMode; import com.azure.resourcemanager.containerservice.models.AgentPoolType; +import com.azure.resourcemanager.containerservice.models.BastionProfile; +import com.azure.resourcemanager.containerservice.models.BastionSku; +import com.azure.resourcemanager.containerservice.models.CloudShellNetworkProfile; +import com.azure.resourcemanager.containerservice.models.CloudShellProfile; +import com.azure.resourcemanager.containerservice.models.CloudShellProfileMode; +import com.azure.resourcemanager.containerservice.models.CloudShellStorageProfile; +import com.azure.resourcemanager.containerservice.models.CloudShellStorageProfileMode; +import com.azure.resourcemanager.containerservice.models.ClusterApiConnectivityProfile; import com.azure.resourcemanager.containerservice.models.ClusterUpgradeSettings; import com.azure.resourcemanager.containerservice.models.ContainerServiceLinuxProfile; import com.azure.resourcemanager.containerservice.models.ContainerServiceNetworkProfile; import com.azure.resourcemanager.containerservice.models.ContainerServiceSshConfiguration; import com.azure.resourcemanager.containerservice.models.ContainerServiceSshPublicKey; +import com.azure.resourcemanager.containerservice.models.ControlPlaneScalingSize; import com.azure.resourcemanager.containerservice.models.CreationData; import com.azure.resourcemanager.containerservice.models.Expander; import com.azure.resourcemanager.containerservice.models.GpuInstanceProfile; @@ -31,24 +40,30 @@ import com.azure.resourcemanager.containerservice.models.KubernetesSupportPlan; import com.azure.resourcemanager.containerservice.models.LicenseType; import com.azure.resourcemanager.containerservice.models.LoadBalancerSku; +import com.azure.resourcemanager.containerservice.models.ManagedClusterAIToolchainOperatorProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterAadProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterAddonProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterAgentPoolProfile; +import com.azure.resourcemanager.containerservice.models.ManagedClusterAgentSandboxProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterApiServerAccessProfile; +import com.azure.resourcemanager.containerservice.models.ManagedClusterControlPlaneScalingProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterHttpProxyConfig; import com.azure.resourcemanager.containerservice.models.ManagedClusterIdentity; import com.azure.resourcemanager.containerservice.models.ManagedClusterIngressProfile; +import com.azure.resourcemanager.containerservice.models.ManagedClusterIngressProfileApplicationLoadBalancer; import com.azure.resourcemanager.containerservice.models.ManagedClusterIngressProfileWebAppRouting; import com.azure.resourcemanager.containerservice.models.ManagedClusterLoadBalancerProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterLoadBalancerProfileManagedOutboundIPs; import com.azure.resourcemanager.containerservice.models.ManagedClusterManagedOutboundIpProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterNatGatewayProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterPodIdentityProfile; +import com.azure.resourcemanager.containerservice.models.ManagedClusterPodSnapshotProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterPropertiesAutoScalerProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterSecurityProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterSecurityProfileDefender; +import com.azure.resourcemanager.containerservice.models.ManagedClusterSecurityProfileDefenderSecurityGating; +import com.azure.resourcemanager.containerservice.models.ManagedClusterSecurityProfileDefenderSecurityGatingIdentity; import com.azure.resourcemanager.containerservice.models.ManagedClusterSecurityProfileDefenderSecurityMonitoring; -import com.azure.resourcemanager.containerservice.models.ManagedClusterSecurityProfileWorkloadIdentity; import com.azure.resourcemanager.containerservice.models.ManagedClusterServicePrincipalProfile; import com.azure.resourcemanager.containerservice.models.ManagedClusterSku; import com.azure.resourcemanager.containerservice.models.ManagedClusterSkuName; @@ -66,7 +81,9 @@ import com.azure.resourcemanager.containerservice.models.ServiceMeshMode; import com.azure.resourcemanager.containerservice.models.ServiceMeshProfile; import com.azure.resourcemanager.containerservice.models.TransitEncryptionType; +import com.azure.resourcemanager.containerservice.models.UpgradeGateSettings; import com.azure.resourcemanager.containerservice.models.UpgradeOverrideSettings; +import com.azure.resourcemanager.containerservice.models.UserAssignedIdentity; import com.azure.resourcemanager.containerservice.models.WindowsGmsaProfile; import java.time.OffsetDateTime; import java.util.Arrays; @@ -78,54 +95,7 @@ */ public final class ManagedClustersCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-08-01/ManagedClustersCreate_CRG.json - */ - /** - * Sample code: Create Managed Cluster with Capacity Reservation Group. - * - * @param manager Entry point to ContainerServiceManager. - */ - public static void createManagedClusterWithCapacityReservationGroup( - com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { - manager.serviceClient() - .getManagedClusters() - .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") - .withTags(mapOf("archv2", "", "tier", "production")) - .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) - .withTier(ManagedClusterSkuTier.FREE)) - .withKubernetesVersion("") - .withDnsPrefix("dnsprefix1") - .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) - .withVmSize("Standard_DS2_v2") - .withOsType(OSType.LINUX) - .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) - .withMode(AgentPoolMode.SYSTEM) - .withEnableNodePublicIp(true) - .withCapacityReservationGroupId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/capacityReservationGroups/crg1") - .withName("nodepool1"))) - .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") - .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( - Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) - .withWindowsProfile(new ManagedClusterWindowsProfile().withAdminUsername("azureuser") - .withAdminPassword("fakeTokenPlaceholder")) - .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") - .withSecret("fakeTokenPlaceholder")) - .withAddonProfiles(mapOf()) - .withEnableRbac(true) - .withNetworkProfile(new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) - .withLoadBalancerSku(LoadBalancerSku.STANDARD) - .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( - new ManagedClusterLoadBalancerProfileManagedOutboundIPs().withCount(2)))) - .withAutoScalerProfile(new ManagedClusterPropertiesAutoScalerProfile().withScanInterval("20s") - .withScaleDownDelayAfterAdd("15m")) - .withDiskEncryptionSetId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - null, null, com.azure.core.util.Context.NONE); - } - - /* - * x-ms-original-file: 2026-08-01/ManagedClustersCreate_EnabledFIPS.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_EnabledFIPS.json */ /** * Sample code: Create Managed Cluster with cluster-level FIPS enabled. @@ -172,54 +142,7 @@ public static void createManagedClusterWithClusterLevelFIPSEnabled( } /* - * x-ms-original-file: 2026-08-01/ManagedClustersCreate_CustomCATrustCertificates.json - */ - /** - * Sample code: Create Managed Cluster with Custom CA Trust Certificates. - * - * @param manager Entry point to ContainerServiceManager. - */ - public static void createManagedClusterWithCustomCATrustCertificates( - com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { - manager.serviceClient() - .getManagedClusters() - .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") - .withTags(mapOf("archv2", "", "tier", "production")) - .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) - .withTier(ManagedClusterSkuTier.FREE)) - .withKubernetesVersion("") - .withDnsPrefix("dnsprefix1") - .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) - .withVmSize("Standard_DS2_v2") - .withOsType(OSType.LINUX) - .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) - .withMode(AgentPoolMode.SYSTEM) - .withEnableNodePublicIp(true) - .withName("nodepool1"))) - .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") - .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( - Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) - .withWindowsProfile(new ManagedClusterWindowsProfile().withAdminUsername("azureuser") - .withAdminPassword("fakeTokenPlaceholder")) - .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") - .withSecret("fakeTokenPlaceholder")) - .withAddonProfiles(mapOf()) - .withEnableRbac(true) - .withNetworkProfile(new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) - .withLoadBalancerSku(LoadBalancerSku.STANDARD) - .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( - new ManagedClusterLoadBalancerProfileManagedOutboundIPs().withCount(2)))) - .withAutoScalerProfile(new ManagedClusterPropertiesAutoScalerProfile().withScanInterval("20s") - .withScaleDownDelayAfterAdd("15m")) - .withDiskEncryptionSetId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des") - .withSecurityProfile(new ManagedClusterSecurityProfile().withCustomCATrustCertificates( - Arrays.asList("ZHVtbXlFeGFtcGxlVGVzdFZhbHVlRm9yQ2VydGlmaWNhdGVUb0JlQWRkZWQ=".getBytes()))), - null, null, com.azure.core.util.Context.NONE); - } - - /* - * x-ms-original-file: 2026-08-01/ManagedClustersCreate_DualStackNetworking.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_DualStackNetworking.json */ /** * Sample code: Create/Update Managed Cluster with dual-stack networking. @@ -277,7 +200,7 @@ public static void createUpdateManagedClusterWithDualStackNetworking( } /* - * x-ms-original-file: 2026-08-01/ManagedClustersCreate_PodIdentity.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_PodIdentity.json */ /** * Sample code: Create Managed Cluster with PodIdentity enabled. @@ -324,7 +247,7 @@ public static void createManagedClusterWithPodIdentityEnabled( } /* - * x-ms-original-file: 2026-08-01/ManagedClustersCreate_UserAssignedNATGateway.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_UserAssignedNATGateway.json */ /** * Sample code: Create Managed Cluster with user-assigned NAT gateway as outbound type. @@ -368,7 +291,43 @@ public static void createManagedClusterWithUserAssignedNATGatewayAsOutboundType( } /* - * x-ms-original-file: 2026-08-01/ManagedClustersCreate_Update.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_MCSnapshot.json + */ + /** + * Sample code: Create Managed Cluster using a managed cluster snapshot. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void createManagedClusterUsingAManagedClusterSnapshot( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) + .withTier(ManagedClusterSkuTier.FREE)) + .withCreationData(new CreationData().withSourceResourceId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.ContainerService/managedclustersnapshots/snapshot1")) + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") + .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) + .withEnableNodePublicIp(true) + .withEnableFips(true) + .withName("nodepool1"))) + .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") + .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( + Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) + .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") + .withSecret("fakeTokenPlaceholder")), + null, null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_Update.json */ /** * Sample code: Create/Update Managed Cluster. @@ -412,7 +371,7 @@ public static void createManagedClusterWithUserAssignedNATGatewayAsOutboundType( .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( new ManagedClusterLoadBalancerProfileManagedOutboundIPs().withCount(2)))) .withUpgradeSettings(new ClusterUpgradeSettings() - .withOverrideSettings(new UpgradeOverrideSettings().withForceUpgrade(false) + .withOverrideSettings(new UpgradeOverrideSettings().withForceUpgrade(true) .withUntil(OffsetDateTime.parse("2022-11-01T13:00:00Z")))) .withAutoScalerProfile( new ManagedClusterPropertiesAutoScalerProfile().withBalanceSimilarNodeGroups("true") @@ -428,7 +387,47 @@ public static void createManagedClusterWithUserAssignedNATGatewayAsOutboundType( } /* - * x-ms-original-file: 2026-08-01/ManagedClustersCreate_PrivateClusterFQDNSubdomain.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_ControlPlaneScalingProfile.json + */ + /** + * Sample code: Create Managed Cluster with ControlPlaneScalingProfile. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void createManagedClusterWithControlPlaneScalingProfile( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", + new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.BASE) + .withTier(ManagedClusterSkuTier.STANDARD)) + .withKubernetesVersion("1.33.0") + .withDnsPrefix("dnsprefix1") + .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) + .withEnableNodePublicIp(true) + .withName("nodepool1"))) + .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") + .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( + Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) + .withNetworkProfile(new ContainerServiceNetworkProfile().withNetworkPlugin(NetworkPlugin.AZURE) + .withNetworkPluginMode(NetworkPluginMode.OVERLAY) + .withOutboundType(OutboundType.LOAD_BALANCER) + .withLoadBalancerSku(LoadBalancerSku.STANDARD) + .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( + new ManagedClusterLoadBalancerProfileManagedOutboundIPs().withCount(2)))) + .withControlPlaneScalingProfile( + new ManagedClusterControlPlaneScalingProfile().withScalingSize(ControlPlaneScalingSize.H4)), + null, null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_PrivateClusterFQDNSubdomain.json */ /** * Sample code: Create Managed Private Cluster with fqdn subdomain specified. @@ -475,7 +474,7 @@ public static void createManagedPrivateClusterWithFqdnSubdomainSpecified( } /* - * x-ms-original-file: 2026-08-01/ManagedClustersCreate_ManagedNATGateway.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_ManagedNATGateway.json */ /** * Sample code: Create Managed Cluster with AKS-managed NAT gateway as outbound type. @@ -521,7 +520,7 @@ public static void createManagedClusterWithAKSManagedNATGatewayAsOutboundType( } /* - * x-ms-original-file: 2026-08-01/ManagedClustersCreate_Premium.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_Premium.json */ /** * Sample code: Create Managed Cluster with LongTermSupport. @@ -567,112 +566,346 @@ public static void createManagedClusterWithLongTermSupport( } /* - * x-ms-original-file: 2026-08-01/ManagedClustersCreate_NodePublicIPPrefix.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_AzureKeyvaultSecretsProvider.json */ /** - * Sample code: Create Managed Cluster with Node Public IP Prefix. + * Sample code: Create Managed Cluster with Azure Key Vault Secrets Provider Addon. * * @param manager Entry point to ContainerServiceManager. */ - public static void createManagedClusterWithNodePublicIPPrefix( + public static void createManagedClusterWithAzureKeyVaultSecretsProviderAddon( com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { manager.serviceClient() .getManagedClusters() - .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") - .withTags(mapOf("archv2", "", "tier", "production")) - .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) - .withTier(ManagedClusterSkuTier.FREE)) - .withKubernetesVersion("") - .withDnsPrefix("dnsprefix1") - .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) - .withVmSize("Standard_DS2_v2") - .withOsType(OSType.LINUX) - .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) - .withMode(AgentPoolMode.SYSTEM) - .withEnableNodePublicIp(true) - .withNodePublicIpPrefixId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/public-ip-prefix") - .withName("nodepool1"))) - .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") - .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( - Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) - .withWindowsProfile(new ManagedClusterWindowsProfile().withAdminUsername("azureuser") - .withAdminPassword("fakeTokenPlaceholder")) - .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") - .withSecret("fakeTokenPlaceholder")) - .withAddonProfiles(mapOf()) - .withEnableRbac(true) - .withNetworkProfile(new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) - .withLoadBalancerSku(LoadBalancerSku.STANDARD) - .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( - new ManagedClusterLoadBalancerProfileManagedOutboundIPs().withCount(2)))) - .withAutoScalerProfile(new ManagedClusterPropertiesAutoScalerProfile().withScanInterval("20s") - .withScaleDownDelayAfterAdd("15m")) - .withDiskEncryptionSetId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), + .createOrUpdate("rg1", "clustername1", + new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) + .withTier(ManagedClusterSkuTier.FREE)) + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") + .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) + .withEnableNodePublicIp(true) + .withName("nodepool1"))) + .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") + .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( + Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) + .withWindowsProfile(new ManagedClusterWindowsProfile().withAdminUsername("azureuser") + .withAdminPassword("fakeTokenPlaceholder")) + .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") + .withSecret("fakeTokenPlaceholder")) + .withAddonProfiles( + mapOf("azureKeyvaultSecretsProvider", + new ManagedClusterAddonProfile().withEnabled(true) + .withConfig(mapOf("enableSecretRotation", "fakeTokenPlaceholder", + "rotationPollInterval", "2m")))) + .withEnableRbac(true) + .withNetworkProfile( + new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) + .withLoadBalancerSku(LoadBalancerSku.STANDARD) + .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( + new ManagedClusterLoadBalancerProfileManagedOutboundIPs().withCount(2)))) + .withAutoScalerProfile(new ManagedClusterPropertiesAutoScalerProfile() + .withScanInterval("20s") + .withScaleDownDelayAfterAdd("15m")) + .withDiskEncryptionSetId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), null, null, com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: 2026-08-01/ManagedClustersCreate_EnableEncryptionAtHost.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_EnableManagedCloudShell.json */ /** - * Sample code: Create Managed Cluster with EncryptionAtHost enabled. + * Sample code: Create Managed Private Cluster With AKS-Managed Cloud Shell Resources. * * @param manager Entry point to ContainerServiceManager. */ - public static void createManagedClusterWithEncryptionAtHostEnabled( + public static void createManagedPrivateClusterWithAKSManagedCloudShellResources( com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { manager.serviceClient() .getManagedClusters() .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") - .withTags(mapOf("archv2", "", "tier", "production")) - .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) - .withTier(ManagedClusterSkuTier.FREE)) - .withKubernetesVersion("") - .withDnsPrefix("dnsprefix1") - .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) - .withVmSize("Standard_DS2_v2") - .withOsType(OSType.LINUX) - .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) - .withMode(AgentPoolMode.SYSTEM) - .withEnableNodePublicIp(true) - .withEnableEncryptionAtHost(true) - .withName("nodepool1"))) - .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") - .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( - Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) - .withWindowsProfile(new ManagedClusterWindowsProfile().withAdminUsername("azureuser") - .withAdminPassword("fakeTokenPlaceholder")) - .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") - .withSecret("fakeTokenPlaceholder")) - .withAddonProfiles(mapOf()) - .withEnableRbac(true) - .withNetworkProfile(new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) - .withLoadBalancerSku(LoadBalancerSku.STANDARD) - .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( - new ManagedClusterLoadBalancerProfileManagedOutboundIPs().withCount(2)))) - .withAutoScalerProfile(new ManagedClusterPropertiesAutoScalerProfile().withScanInterval("20s") - .withScaleDownDelayAfterAdd("15m")) - .withDiskEncryptionSetId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), + .withNetworkProfile(new ContainerServiceNetworkProfile().withClusterApiConnectivityProfile( + new ClusterApiConnectivityProfile().withCloudShell(new CloudShellProfile() + .withMode(CloudShellProfileMode.MANAGED) + .withStorage(new CloudShellStorageProfile().withMode(CloudShellStorageProfileMode.MANAGED))))) + .withApiServerAccessProfile(new ManagedClusterApiServerAccessProfile().withEnablePrivateCluster(true)), null, null, com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: 2026-08-01/ManagedClustersCreate_PrivateClusterPublicFQDN.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_EnableCustomCloudShell.json */ /** - * Sample code: Create Managed Private Cluster with Public FQDN specified. + * Sample code: Create Managed Private Cluster With Custom Cloud Shell Resources. * * @param manager Entry point to ContainerServiceManager. */ - public static void createManagedPrivateClusterWithPublicFQDNSpecified( + public static void createManagedPrivateClusterWithCustomCloudShellResources( com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { manager.serviceClient() .getManagedClusters() .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") - .withTags(mapOf("archv2", "", "tier", "production")) + .withNetworkProfile(new ContainerServiceNetworkProfile().withClusterApiConnectivityProfile( + new ClusterApiConnectivityProfile().withCloudShell(new CloudShellProfile() + .withMode(CloudShellProfileMode.CUSTOM) + .withNetwork(new CloudShellNetworkProfile().withSubnetId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cloudshell-rg/providers/Microsoft.Network/virtualNetworks/cloudshell-vnet/subnets/cloudshell-subnet") + .withRelayNamespaceId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cloudshell-rg/providers/Microsoft.Relay/namespaces/cloudshell-relay")) + .withStorage(new CloudShellStorageProfile().withMode(CloudShellStorageProfileMode.CUSTOM) + .withStorageAccountId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/cloudshell-rg/providers/Microsoft.Storage/storageAccounts/cloudshellstorage") + .withFileShareName("cloudshell"))))) + .withApiServerAccessProfile(new ManagedClusterApiServerAccessProfile().withEnablePrivateCluster(true)), + null, null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_EnableAgentSandbox.json + */ + /** + * Sample code: Create or Update Managed Cluster with Agent Sandbox enabled. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void createOrUpdateManagedClusterWithAgentSandboxEnabled( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", + new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) + .withTier(ManagedClusterSkuTier.FREE)) + .withIdentity(new ManagedClusterIdentity().withType(ResourceIdentityType.SYSTEM_ASSIGNED)) + .withKubernetesVersion("1.35.6") + .withDnsPrefix("dnsprefix1") + .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) + .withEnableNodePublicIp(true) + .withName("nodepool1"))) + .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") + .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( + Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) + .withAddonProfiles(mapOf()) + .withEnableRbac(true) + .withNetworkProfile(new ContainerServiceNetworkProfile().withNetworkPlugin(NetworkPlugin.AZURE) + .withNetworkPluginMode(NetworkPluginMode.OVERLAY) + .withNetworkDataplane(NetworkDataplane.CILIUM) + .withOutboundType(OutboundType.LOAD_BALANCER) + .withLoadBalancerSku(LoadBalancerSku.STANDARD) + .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( + new ManagedClusterLoadBalancerProfileManagedOutboundIPs().withCount(2)))) + .withAgentSandboxProfile(new ManagedClusterAgentSandboxProfile().withEnabled(true)), + null, null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-08-02-preview/ManagedClustersAssociate_CRG.json + */ + /** + * Sample code: Associate Managed Cluster with Capacity Reservation Group. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void associateManagedClusterWithCapacityReservationGroup( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) + .withTier(ManagedClusterSkuTier.FREE)) + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") + .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) + .withEnableNodePublicIp(true) + .withCapacityReservationGroupId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/capacityReservationGroups/crg1") + .withName("nodepool1"))) + .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") + .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( + Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) + .withWindowsProfile(new ManagedClusterWindowsProfile().withAdminUsername("azureuser") + .withAdminPassword("fakeTokenPlaceholder")) + .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") + .withSecret("fakeTokenPlaceholder")) + .withAddonProfiles(mapOf()) + .withEnableRbac(true) + .withNetworkProfile(new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) + .withLoadBalancerSku(LoadBalancerSku.STANDARD) + .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( + new ManagedClusterLoadBalancerProfileManagedOutboundIPs().withCount(2)))) + .withAutoScalerProfile(new ManagedClusterPropertiesAutoScalerProfile().withScanInterval("20s") + .withScaleDownDelayAfterAdd("15m")) + .withDiskEncryptionSetId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), + null, null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_NodeAutoProvisioning.json + */ + /** + * Sample code: Create Managed Cluster with Node Auto Provisioning. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void createManagedClusterWithNodeAutoProvisioning( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", + new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) + .withTier(ManagedClusterSkuTier.FREE)) + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") + .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) + .withEnableNodePublicIp(true) + .withName("nodepool1"))) + .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") + .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( + Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) + .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") + .withSecret("fakeTokenPlaceholder")) + .withAddonProfiles(mapOf()) + .withEnableRbac(true) + .withNetworkProfile(new ContainerServiceNetworkProfile().withNetworkPlugin(NetworkPlugin.AZURE) + .withNetworkPluginMode(NetworkPluginMode.OVERLAY) + .withNetworkDataplane(NetworkDataplane.CILIUM) + .withOutboundType(OutboundType.LOAD_BALANCER) + .withLoadBalancerSku(LoadBalancerSku.STANDARD) + .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( + new ManagedClusterLoadBalancerProfileManagedOutboundIPs().withCount(2)))), + null, null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_NodePublicIPPrefix.json + */ + /** + * Sample code: Create Managed Cluster with Node Public IP Prefix. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void createManagedClusterWithNodePublicIPPrefix( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) + .withTier(ManagedClusterSkuTier.FREE)) + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") + .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) + .withEnableNodePublicIp(true) + .withNodePublicIpPrefixId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Network/publicIPPrefixes/public-ip-prefix") + .withName("nodepool1"))) + .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") + .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( + Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) + .withWindowsProfile(new ManagedClusterWindowsProfile().withAdminUsername("azureuser") + .withAdminPassword("fakeTokenPlaceholder")) + .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") + .withSecret("fakeTokenPlaceholder")) + .withAddonProfiles(mapOf()) + .withEnableRbac(true) + .withNetworkProfile(new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) + .withLoadBalancerSku(LoadBalancerSku.STANDARD) + .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( + new ManagedClusterLoadBalancerProfileManagedOutboundIPs().withCount(2)))) + .withAutoScalerProfile(new ManagedClusterPropertiesAutoScalerProfile().withScanInterval("20s") + .withScaleDownDelayAfterAdd("15m")) + .withDiskEncryptionSetId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), + null, null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_EnableEncryptionAtHost.json + */ + /** + * Sample code: Create Managed Cluster with EncryptionAtHost enabled. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void createManagedClusterWithEncryptionAtHostEnabled( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) + .withTier(ManagedClusterSkuTier.FREE)) + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") + .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) + .withEnableNodePublicIp(true) + .withEnableEncryptionAtHost(true) + .withName("nodepool1"))) + .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") + .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( + Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) + .withWindowsProfile(new ManagedClusterWindowsProfile().withAdminUsername("azureuser") + .withAdminPassword("fakeTokenPlaceholder")) + .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") + .withSecret("fakeTokenPlaceholder")) + .withAddonProfiles(mapOf()) + .withEnableRbac(true) + .withNetworkProfile(new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) + .withLoadBalancerSku(LoadBalancerSku.STANDARD) + .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( + new ManagedClusterLoadBalancerProfileManagedOutboundIPs().withCount(2)))) + .withAutoScalerProfile(new ManagedClusterPropertiesAutoScalerProfile().withScanInterval("20s") + .withScaleDownDelayAfterAdd("15m")) + .withDiskEncryptionSetId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), + null, null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_PrivateClusterPublicFQDN.json + */ + /** + * Sample code: Create Managed Private Cluster with Public FQDN specified. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void createManagedPrivateClusterWithPublicFQDNSpecified( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) .withTier(ManagedClusterSkuTier.FREE)) .withKubernetesVersion("") @@ -706,63 +939,287 @@ public static void createManagedPrivateClusterWithPublicFQDNSpecified( } /* - * x-ms-original-file: 2026-08-01/ManagedClustersCreate_HTTPProxy.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_EnableManagedBastion.json + */ + /** + * Sample code: Create Managed Private Cluster With Managed Bastion. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void createManagedPrivateClusterWithManagedBastion( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", + new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) + .withTier(ManagedClusterSkuTier.FREE)) + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") + .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) + .withEnableEncryptionAtHost(true) + .withName("nodepool1"))) + .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") + .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( + Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) + .withWindowsProfile(new ManagedClusterWindowsProfile().withAdminUsername("azureuser") + .withAdminPassword("fakeTokenPlaceholder")) + .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") + .withSecret("fakeTokenPlaceholder")) + .withAddonProfiles(mapOf()) + .withNetworkProfile(new ContainerServiceNetworkProfile() + .withClusterApiConnectivityProfile(new ClusterApiConnectivityProfile().withBastion( + new BastionProfile().withEnabled(true).withSku(BastionSku.PREMIUM).withScaleUnits(3)))) + .withAutoScalerProfile(new ManagedClusterPropertiesAutoScalerProfile().withScanInterval("20s") + .withScaleDownDelayAfterAdd("15m")) + .withApiServerAccessProfile( + new ManagedClusterApiServerAccessProfile().withEnablePrivateCluster(true)), + null, null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_HTTPProxy.json + */ + /** + * Sample code: Create Managed Cluster with HTTP proxy configured. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void createManagedClusterWithHTTPProxyConfigured( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) + .withTier(ManagedClusterSkuTier.FREE)) + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") + .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) + .withEnableNodePublicIp(true) + .withName("nodepool1"))) + .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") + .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( + Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) + .withWindowsProfile(new ManagedClusterWindowsProfile().withAdminUsername("azureuser") + .withAdminPassword("fakeTokenPlaceholder")) + .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") + .withSecret("fakeTokenPlaceholder")) + .withAddonProfiles(mapOf()) + .withEnableRbac(true) + .withNetworkProfile(new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) + .withLoadBalancerSku(LoadBalancerSku.STANDARD) + .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( + new ManagedClusterLoadBalancerProfileManagedOutboundIPs().withCount(2)))) + .withAutoScalerProfile(new ManagedClusterPropertiesAutoScalerProfile().withScanInterval("20s") + .withScaleDownDelayAfterAdd("15m")) + .withDiskEncryptionSetId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des") + .withHttpProxyConfig(new ManagedClusterHttpProxyConfig().withHttpProxy("http://myproxy.server.com:8080") + .withHttpsProxy("https://myproxy.server.com:8080") + .withNoProxy(Arrays.asList("localhost", "127.0.0.1")) + .withTrustedCa("Q29uZ3JhdHMhIFlvdSBoYXZlIGZvdW5kIGEgaGlkZGVuIG1lc3NhZ2U=")), + null, null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_UpdateWithEnableNamespaceResources.json + */ + /** + * Sample code: Create/Update Managed Cluster with EnableNamespaceResources. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void createUpdateManagedClusterWithEnableNamespaceResources( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) + .withTier(ManagedClusterSkuTier.FREE)) + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") + .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) + .withVmSize("Standard_DS1_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) + .withAvailabilityZones(Arrays.asList("1", "2", "3")) + .withEnableNodePublicIp(true) + .withName("nodepool1"))) + .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") + .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( + Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) + .withWindowsProfile(new ManagedClusterWindowsProfile().withAdminUsername("azureuser") + .withAdminPassword("fakeTokenPlaceholder")) + .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") + .withSecret("fakeTokenPlaceholder")) + .withAddonProfiles(mapOf()) + .withEnableRbac(true) + .withEnableNamespaceResources(true) + .withNetworkProfile(new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) + .withLoadBalancerSku(LoadBalancerSku.STANDARD) + .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( + new ManagedClusterLoadBalancerProfileManagedOutboundIPs().withCount(2)))) + .withAutoScalerProfile(new ManagedClusterPropertiesAutoScalerProfile().withScanInterval("20s") + .withScaleDownDelayAfterAdd("15m")) + .withDiskEncryptionSetId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), + null, null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_DedicatedHostGroup.json + */ + /** + * Sample code: Create Managed Cluster with Dedicated Host Group. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void createManagedClusterWithDedicatedHostGroup( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) + .withTier(ManagedClusterSkuTier.FREE)) + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") + .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withEnableNodePublicIp(true) + .withHostGroupId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Compute/hostGroups/hostgroup1") + .withName("nodepool1"))) + .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") + .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( + Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) + .withWindowsProfile(new ManagedClusterWindowsProfile().withAdminUsername("azureuser") + .withAdminPassword("fakeTokenPlaceholder")) + .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") + .withSecret("fakeTokenPlaceholder")) + .withAddonProfiles(mapOf()) + .withEnableRbac(true) + .withNetworkProfile(new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) + .withLoadBalancerSku(LoadBalancerSku.STANDARD) + .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( + new ManagedClusterLoadBalancerProfileManagedOutboundIPs().withCount(2)))) + .withAutoScalerProfile(new ManagedClusterPropertiesAutoScalerProfile().withScanInterval("20s") + .withScaleDownDelayAfterAdd("15m")) + .withDiskEncryptionSetId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), + null, null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_EnableAIToolchainOperator.json + */ + /** + * Sample code: Create Managed Cluster with AI Toolchain Operator enabled. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void createManagedClusterWithAIToolchainOperatorEnabled( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", + new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) + .withTier(ManagedClusterSkuTier.FREE)) + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") + .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) + .withEnableNodePublicIp(true) + .withName("nodepool1"))) + .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") + .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( + Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) + .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") + .withSecret("fakeTokenPlaceholder")) + .withAddonProfiles(mapOf()) + .withEnableRbac(true) + .withNetworkProfile(new ContainerServiceNetworkProfile().withNetworkPlugin(NetworkPlugin.AZURE) + .withNetworkPluginMode(NetworkPluginMode.OVERLAY) + .withNetworkDataplane(NetworkDataplane.CILIUM) + .withOutboundType(OutboundType.LOAD_BALANCER) + .withLoadBalancerSku(LoadBalancerSku.STANDARD) + .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( + new ManagedClusterLoadBalancerProfileManagedOutboundIPs().withCount(2)))) + .withAiToolchainOperatorProfile(new ManagedClusterAIToolchainOperatorProfile().withEnabled(true)), + null, null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_EnablePodSnapshotRestore.json */ /** - * Sample code: Create Managed Cluster with HTTP proxy configured. + * Sample code: Create or Update Managed Cluster with Pod Snapshot Restore enabled. * * @param manager Entry point to ContainerServiceManager. */ - public static void createManagedClusterWithHTTPProxyConfigured( + public static void createOrUpdateManagedClusterWithPodSnapshotRestoreEnabled( com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { manager.serviceClient() .getManagedClusters() - .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") - .withTags(mapOf("archv2", "", "tier", "production")) - .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) - .withTier(ManagedClusterSkuTier.FREE)) - .withKubernetesVersion("") - .withDnsPrefix("dnsprefix1") - .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) - .withVmSize("Standard_DS2_v2") - .withOsType(OSType.LINUX) - .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) - .withMode(AgentPoolMode.SYSTEM) - .withEnableNodePublicIp(true) - .withName("nodepool1"))) - .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") - .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( - Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) - .withWindowsProfile(new ManagedClusterWindowsProfile().withAdminUsername("azureuser") - .withAdminPassword("fakeTokenPlaceholder")) - .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") - .withSecret("fakeTokenPlaceholder")) - .withAddonProfiles(mapOf()) - .withEnableRbac(true) - .withNetworkProfile(new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) - .withLoadBalancerSku(LoadBalancerSku.STANDARD) - .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( - new ManagedClusterLoadBalancerProfileManagedOutboundIPs().withCount(2)))) - .withAutoScalerProfile(new ManagedClusterPropertiesAutoScalerProfile().withScanInterval("20s") - .withScaleDownDelayAfterAdd("15m")) - .withDiskEncryptionSetId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des") - .withHttpProxyConfig(new ManagedClusterHttpProxyConfig().withHttpProxy("http://myproxy.server.com:8080") - .withHttpsProxy("https://myproxy.server.com:8080") - .withNoProxy(Arrays.asList("localhost", "127.0.0.1")) - .withTrustedCa("Q29uZ3JhdHMhIFlvdSBoYXZlIGZvdW5kIGEgaGlkZGVuIG1lc3NhZ2U=")), + .createOrUpdate("rg1", "clustername1", + new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) + .withTier(ManagedClusterSkuTier.FREE)) + .withIdentity(new ManagedClusterIdentity().withType(ResourceIdentityType.SYSTEM_ASSIGNED)) + .withKubernetesVersion("1.35.6") + .withDnsPrefix("dnsprefix1") + .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) + .withEnableNodePublicIp(true) + .withName("nodepool1"))) + .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") + .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( + Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) + .withAddonProfiles(mapOf()) + .withEnableRbac(true) + .withNetworkProfile(new ContainerServiceNetworkProfile().withNetworkPlugin(NetworkPlugin.AZURE) + .withNetworkPluginMode(NetworkPluginMode.OVERLAY) + .withNetworkDataplane(NetworkDataplane.CILIUM) + .withOutboundType(OutboundType.LOAD_BALANCER) + .withLoadBalancerSku(LoadBalancerSku.STANDARD) + .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( + new ManagedClusterLoadBalancerProfileManagedOutboundIPs().withCount(2)))) + .withPodSnapshotProfile(new ManagedClusterPodSnapshotProfile().withEnabled(true)), null, null, com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: 2026-08-01/ManagedClustersCreate_DedicatedHostGroup.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_IngressProfile_ApplicationLoadBalancer.json */ /** - * Sample code: Create Managed Cluster with Dedicated Host Group. + * Sample code: Create Managed Cluster with Application Load Balancer Profile configured. * * @param manager Entry point to ContainerServiceManager. */ - public static void createManagedClusterWithDedicatedHostGroup( + public static void createManagedClusterWithApplicationLoadBalancerProfileConfigured( com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { manager.serviceClient() .getManagedClusters() @@ -776,32 +1233,23 @@ public static void createManagedClusterWithDedicatedHostGroup( .withVmSize("Standard_DS2_v2") .withOsType(OSType.LINUX) .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) .withEnableNodePublicIp(true) - .withHostGroupId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg/providers/Microsoft.Compute/hostGroups/hostgroup1") .withName("nodepool1"))) .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) - .withWindowsProfile(new ManagedClusterWindowsProfile().withAdminUsername("azureuser") - .withAdminPassword("fakeTokenPlaceholder")) - .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") - .withSecret("fakeTokenPlaceholder")) - .withAddonProfiles(mapOf()) - .withEnableRbac(true) .withNetworkProfile(new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) .withLoadBalancerSku(LoadBalancerSku.STANDARD) .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( new ManagedClusterLoadBalancerProfileManagedOutboundIPs().withCount(2)))) - .withAutoScalerProfile(new ManagedClusterPropertiesAutoScalerProfile().withScanInterval("20s") - .withScaleDownDelayAfterAdd("15m")) - .withDiskEncryptionSetId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), + .withIngressProfile(new ManagedClusterIngressProfile().withApplicationLoadBalancer( + new ManagedClusterIngressProfileApplicationLoadBalancer().withEnabled(true))), null, null, com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: 2026-08-01/ManagedClustersCreate_SecurityProfile.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_SecurityProfile.json */ /** * Sample code: Create Managed Cluster with Security Profile configured. @@ -836,13 +1284,20 @@ public static void createManagedClusterWithSecurityProfileConfigured( .withDefender(new ManagedClusterSecurityProfileDefender().withLogAnalyticsWorkspaceResourceId( "/subscriptions/SUB_ID/resourceGroups/RG_NAME/providers/microsoft.operationalinsights/workspaces/WORKSPACE_NAME") .withSecurityMonitoring( - new ManagedClusterSecurityProfileDefenderSecurityMonitoring().withEnabled(true))) - .withWorkloadIdentity(new ManagedClusterSecurityProfileWorkloadIdentity().withEnabled(true))), + new ManagedClusterSecurityProfileDefenderSecurityMonitoring().withEnabled(true)) + .withSecurityGating(new ManagedClusterSecurityProfileDefenderSecurityGating().withEnabled(true) + .withIdentities( + Arrays.asList(new ManagedClusterSecurityProfileDefenderSecurityGatingIdentity() + .withAzureContainerRegistry("registry1") + .withIdentity(new UserAssignedIdentity().withResourceId( + "/subscriptions/SUB_ID/resourceGroups/RG_NAME/providers/Microsoft.ManagedIdentity/userAssignedIdentities/IDENTITY_NAME") + .withClientId("client1")))) + .withAllowSecretAccess(true)))), null, null, com.azure.core.util.Context.NONE); } /* - * x-ms-original-file: 2026-08-01/ManagedClustersCreate_PPG.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_PPG.json */ /** * Sample code: Create Managed Cluster with PPG. @@ -889,7 +1344,7 @@ public static void createManagedClusterWithSecurityProfileConfigured( } /* - * x-ms-original-file: 2026-08-01/ManagedClustersCreate_IngressProfile_WebAppRouting.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_IngressProfile_WebAppRouting.json */ /** * Sample code: Create Managed Cluster with Web App Routing Ingress Profile configured. @@ -928,7 +1383,7 @@ public static void createManagedClusterWithWebAppRoutingIngressProfileConfigured } /* - * x-ms-original-file: 2026-08-01/ManagedClustersCreate_UpdateWithAHUB.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_UpdateWithAHUB.json */ /** * Sample code: Create/Update Managed Cluster with EnableAHUB. @@ -979,7 +1434,52 @@ public static void createUpdateManagedClusterWithEnableAHUB( } /* - * x-ms-original-file: 2026-08-01/ManagedClustersCreate_DisableRunCommand.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_UpgradeGate.json + */ + /** + * Sample code: Create/Update Managed Cluster with upgrade gate enabled. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void createUpdateManagedClusterWithUpgradeGateEnabled( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) + .withTier(ManagedClusterSkuTier.FREE)) + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") + .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) + .withEnableNodePublicIp(true) + .withName("nodepool1"))) + .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") + .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( + Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) + .withWindowsProfile(new ManagedClusterWindowsProfile().withAdminUsername("azureuser") + .withAdminPassword("fakeTokenPlaceholder")) + .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") + .withSecret("fakeTokenPlaceholder")) + .withAddonProfiles(mapOf()) + .withEnableRbac(true) + .withNetworkProfile(new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) + .withLoadBalancerSku(LoadBalancerSku.STANDARD) + .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( + new ManagedClusterLoadBalancerProfileManagedOutboundIPs().withCount(2)))) + .withUpgradeSettings( + new ClusterUpgradeSettings().withUpgradeGateSettings(new UpgradeGateSettings().withEnabled(true))) + .withAutoScalerProfile(new ManagedClusterPropertiesAutoScalerProfile().withScanInterval("20s") + .withScaleDownDelayAfterAdd("15m")), + null, null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_DisableRunCommand.json */ /** * Sample code: Create Managed Cluster with RunCommand disabled. @@ -1024,7 +1524,7 @@ public static void createManagedClusterWithRunCommandDisabled( } /* - * x-ms-original-file: 2026-08-01/ManagedClustersCreate_AzureServiceMesh.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_AzureServiceMesh.json */ /** * Sample code: Create/Update Managed Cluster with Azure Service Mesh. @@ -1078,9 +1578,8 @@ public static void createUpdateManagedClusterWithAzureServiceMesh( .withIngressGateways( Arrays.asList(new IstioIngressGateway().withMode(IstioIngressGatewayMode.INTERNAL) .withEnabled(true))) - .withEgressGateways(Arrays.asList(new IstioEgressGateway().withEnabled(true) - .withName("test-istio-egress") - .withGatewayConfigurationName("test-gateway-configuration")))) + .withEgressGateways( + Arrays.asList(new IstioEgressGateway().withEnabled(true).withName("istioegress1")))) .withCertificateAuthority(new IstioCertificateAuthority() .withPlugin(new IstioPluginCertificateAuthority().withKeyVaultId("fakeTokenPlaceholder") .withCertObjectName("ca-cert") @@ -1091,7 +1590,7 @@ public static void createUpdateManagedClusterWithAzureServiceMesh( } /* - * x-ms-original-file: 2026-08-01/ManagedClustersCreate_Snapshot.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_Snapshot.json */ /** * Sample code: Create Managed Cluster using an agent pool snapshot. @@ -1139,59 +1638,7 @@ public static void createManagedClusterUsingAnAgentPoolSnapshot( } /* - * x-ms-original-file: 2026-08-01/ManagedClustersCreate_AzureKeyvaultSecretsProvider.json - */ - /** - * Sample code: Create Managed Cluster with Azure KeyVault Secrets Provider Addon. - * - * @param manager Entry point to ContainerServiceManager. - */ - public static void createManagedClusterWithAzureKeyVaultSecretsProviderAddon( - com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { - manager.serviceClient() - .getManagedClusters() - .createOrUpdate("rg1", "clustername1", - new ManagedClusterInner().withLocation("location1") - .withTags(mapOf("archv2", "", "tier", "production")) - .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) - .withTier(ManagedClusterSkuTier.FREE)) - .withKubernetesVersion("") - .withDnsPrefix("dnsprefix1") - .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) - .withVmSize("Standard_DS2_v2") - .withOsType(OSType.LINUX) - .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) - .withMode(AgentPoolMode.SYSTEM) - .withEnableNodePublicIp(true) - .withName("nodepool1"))) - .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") - .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( - Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) - .withWindowsProfile(new ManagedClusterWindowsProfile().withAdminUsername("azureuser") - .withAdminPassword("fakeTokenPlaceholder")) - .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") - .withSecret("fakeTokenPlaceholder")) - .withAddonProfiles( - mapOf("azureKeyvaultSecretsProvider", - new ManagedClusterAddonProfile().withEnabled(true) - .withConfig(mapOf("enableSecretRotation", "fakeTokenPlaceholder", - "rotationPollInterval", "2m")))) - .withEnableRbac(true) - .withNetworkProfile( - new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) - .withLoadBalancerSku(LoadBalancerSku.STANDARD) - .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( - new ManagedClusterLoadBalancerProfileManagedOutboundIPs().withCount(2)))) - .withAutoScalerProfile(new ManagedClusterPropertiesAutoScalerProfile() - .withScanInterval("20s") - .withScaleDownDelayAfterAdd("15m")) - .withDiskEncryptionSetId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), - null, null, com.azure.core.util.Context.NONE); - } - - /* - * x-ms-original-file: 2026-08-01/ManagedClustersCreate_OSSKU.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_OSSKU.json */ /** * Sample code: Create Managed Cluster with OSSKU. @@ -1241,7 +1688,48 @@ public static void createManagedClusterWithAzureKeyVaultSecretsProviderAddon( } /* - * x-ms-original-file: 2026-08-01/AdvancedNetworkingTransitEncryption.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_VirtualMachines.json + */ + /** + * Sample code: Create Managed Cluster with VirtualMachines pool type. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void createManagedClusterWithVirtualMachinesPoolType( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) + .withTier(ManagedClusterSkuTier.FREE)) + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") + .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINES) + .withMode(AgentPoolMode.SYSTEM) + .withEnableFips(true) + .withName("nodepool1"))) + .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") + .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( + Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) + .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") + .withSecret("fakeTokenPlaceholder")) + .withAddonProfiles(mapOf()) + .withEnableRbac(true) + .withNetworkProfile(new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) + .withLoadBalancerSku(LoadBalancerSku.STANDARD) + .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( + new ManagedClusterLoadBalancerProfileManagedOutboundIPs().withCount(2)))) + .withDiskEncryptionSetId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des"), + null, null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-08-02-preview/AdvancedNetworkingTransitEncryption.json */ /** * Sample code: Create Managed Cluster with Advanced Networking Transit Encryption. @@ -1290,7 +1778,7 @@ public static void createManagedClusterWithAdvancedNetworkingTransitEncryption( } /* - * x-ms-original-file: 2026-08-01/ManagedClustersCreate_UpdateWithEnableAzureRBAC.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_UpdateWithEnableAzureRBAC.json */ /** * Sample code: Create/Update AAD Managed Cluster with EnableAzureRBAC. @@ -1337,7 +1825,7 @@ public static void createUpdateAADManagedClusterWithEnableAzureRBAC( } /* - * x-ms-original-file: 2026-08-01/ManagedClustersCreate_EnableUltraSSD.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_EnableUltraSSD.json */ /** * Sample code: Create Managed Cluster with UltraSSD enabled. @@ -1383,7 +1871,54 @@ public static void createManagedClusterWithUltraSSDEnabled( } /* - * x-ms-original-file: 2026-08-01/ManagedClustersCreate_UpdateWindowsGmsa.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_CustomCATrustCertificates.json + */ + /** + * Sample code: Create Managed Cluster with CustomCATrustCertificates populated. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void createManagedClusterWithCustomCATrustCertificatesPopulated( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getManagedClusters() + .createOrUpdate("rg1", "clustername1", new ManagedClusterInner().withLocation("location1") + .withTags(mapOf("archv2", "", "tier", "production")) + .withSku(new ManagedClusterSku().withName(ManagedClusterSkuName.fromString("Basic")) + .withTier(ManagedClusterSkuTier.FREE)) + .withKubernetesVersion("") + .withDnsPrefix("dnsprefix1") + .withAgentPoolProfiles(Arrays.asList(new ManagedClusterAgentPoolProfile().withCount(3) + .withVmSize("Standard_DS2_v2") + .withOsType(OSType.LINUX) + .withType(AgentPoolType.VIRTUAL_MACHINE_SCALE_SETS) + .withMode(AgentPoolMode.SYSTEM) + .withEnableNodePublicIp(true) + .withName("nodepool1"))) + .withLinuxProfile(new ContainerServiceLinuxProfile().withAdminUsername("azureuser") + .withSsh(new ContainerServiceSshConfiguration().withPublicKeys( + Arrays.asList(new ContainerServiceSshPublicKey().withKeyData("fakeTokenPlaceholder"))))) + .withWindowsProfile(new ManagedClusterWindowsProfile().withAdminUsername("azureuser") + .withAdminPassword("fakeTokenPlaceholder")) + .withServicePrincipalProfile(new ManagedClusterServicePrincipalProfile().withClientId("clientid") + .withSecret("fakeTokenPlaceholder")) + .withAddonProfiles(mapOf()) + .withEnableRbac(true) + .withNetworkProfile(new ContainerServiceNetworkProfile().withOutboundType(OutboundType.LOAD_BALANCER) + .withLoadBalancerSku(LoadBalancerSku.STANDARD) + .withLoadBalancerProfile(new ManagedClusterLoadBalancerProfile().withManagedOutboundIPs( + new ManagedClusterLoadBalancerProfileManagedOutboundIPs().withCount(2)))) + .withAutoScalerProfile(new ManagedClusterPropertiesAutoScalerProfile().withScanInterval("20s") + .withScaleDownDelayAfterAdd("15m")) + .withDiskEncryptionSetId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.Compute/diskEncryptionSets/des") + .withSecurityProfile(new ManagedClusterSecurityProfile().withCustomCATrustCertificates( + Arrays.asList("ZHVtbXlFeGFtcGxlVGVzdFZhbHVlRm9yQ2VydGlmaWNhdGVUb0JlQWRkZWQ=".getBytes()))), + null, null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_UpdateWindowsGmsa.json */ /** * Sample code: Create/Update Managed Cluster with Windows gMSA enabled. @@ -1434,7 +1969,7 @@ public static void createUpdateManagedClusterWithWindowsGMSAEnabled( } /* - * x-ms-original-file: 2026-08-01/ManagedClustersCreate_GPUMIG.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersCreate_GPUMIG.json */ /** * Sample code: Create Managed Cluster with GPUMIG. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersDeleteSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersDeleteSamples.java index 8297a6d0d3a34..4f7dd26c63aec 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersDeleteSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedClustersDeleteSamples { /* - * x-ms-original-file: 2026-08-01/ManagedClustersDelete.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersDelete.json */ /** * Sample code: Delete Managed Cluster. @@ -20,6 +20,6 @@ public final class ManagedClustersDeleteSamples { deleteManagedCluster(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { manager.serviceClient() .getManagedClusters() - .delete("rg1", "clustername1", null, com.azure.core.util.Context.NONE); + .delete("rg1", "clustername1", null, null, com.azure.core.util.Context.NONE); } } diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetAccessProfileSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetAccessProfileSamples.java index e834c0c9fb31e..da5237d860316 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetAccessProfileSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetAccessProfileSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedClustersGetAccessProfileSamples { /* - * x-ms-original-file: 2026-08-01/ManagedClustersGetAccessProfile.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersGetAccessProfile.json */ /** * Sample code: Get Managed Cluster. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetByResourceGroupSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetByResourceGroupSamples.java index 3912d90cd5890..2ac95d39dcb6a 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetByResourceGroupSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedClustersGetByResourceGroupSamples { /* - * x-ms-original-file: 2026-08-01/ManagedClustersGet.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersGet.json */ /** * Sample code: Get Managed Cluster. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetCommandResultSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetCommandResultSamples.java index 10d89d85f72eb..996a6609d2e0d 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetCommandResultSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetCommandResultSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedClustersGetCommandResultSamples { /* - * x-ms-original-file: 2026-08-01/RunCommandResultFailed.json + * x-ms-original-file: 2026-08-02-preview/RunCommandResultFailed.json */ /** * Sample code: commandFailedResult. @@ -24,7 +24,7 @@ public static void commandFailedResult(com.azure.resourcemanager.containerservic } /* - * x-ms-original-file: 2026-08-01/RunCommandResultSucceed.json + * x-ms-original-file: 2026-08-02-preview/RunCommandResultSucceed.json */ /** * Sample code: commandSucceedResult. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetGuardrailsVersionsSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetGuardrailsVersionsSamples.java new file mode 100644 index 0000000000000..37412f0bb6a2a --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetGuardrailsVersionsSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +/** + * Samples for ManagedClusters GetGuardrailsVersions. + */ +public final class ManagedClustersGetGuardrailsVersionsSamples { + /* + * x-ms-original-file: 2026-08-02-preview/GetGuardrailsVersions.json + */ + /** + * Sample code: Get guardrails available versions. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void + getGuardrailsAvailableVersions(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getManagedClusters() + .getGuardrailsVersionsWithResponse("location1", "v1.0.0", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetMeshRevisionProfileSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetMeshRevisionProfileSamples.java index 593edf2b829a9..ff48f821142f8 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetMeshRevisionProfileSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetMeshRevisionProfileSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedClustersGetMeshRevisionProfileSamples { /* - * x-ms-original-file: 2026-08-01/ManagedClustersGet_MeshRevisionProfile.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersGet_MeshRevisionProfile.json */ /** * Sample code: Get a mesh revision profile for a mesh mode. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetMeshUpgradeProfileSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetMeshUpgradeProfileSamples.java index 750cc60937d5d..a579281fdfc7e 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetMeshUpgradeProfileSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetMeshUpgradeProfileSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedClustersGetMeshUpgradeProfileSamples { /* - * x-ms-original-file: 2026-08-01/ManagedClustersGet_MeshUpgradeProfile.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersGet_MeshUpgradeProfile.json */ /** * Sample code: Gets version compatibility and upgrade profile for a service mesh in a cluster. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetSafeguardsVersionsSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetSafeguardsVersionsSamples.java new file mode 100644 index 0000000000000..e32d2e9e57d01 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetSafeguardsVersionsSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +/** + * Samples for ManagedClusters GetSafeguardsVersions. + */ +public final class ManagedClustersGetSafeguardsVersionsSamples { + /* + * x-ms-original-file: 2026-08-02-preview/GetSafeguardsVersions.json + */ + /** + * Sample code: Get Safeguards available versions. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void + getSafeguardsAvailableVersions(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getManagedClusters() + .getSafeguardsVersionsWithResponse("location1", "v1.0.0", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetUpgradeProfileSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetUpgradeProfileSamples.java index 13585f3e0f58b..7fc016ffeb5d4 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetUpgradeProfileSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersGetUpgradeProfileSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedClustersGetUpgradeProfileSamples { /* - * x-ms-original-file: 2026-08-01/ManagedClustersGetUpgradeProfile.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersGetUpgradeProfile.json */ /** * Sample code: Get Upgrade Profile for Managed Cluster. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListByResourceGroupSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListByResourceGroupSamples.java index f2bc8b7f1ed0f..b0afd5d4b85da 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListByResourceGroupSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedClustersListByResourceGroupSamples { /* - * x-ms-original-file: 2026-08-01/ManagedClustersListByResourceGroup.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersListByResourceGroup.json */ /** * Sample code: Get Managed Clusters by Resource Group. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterAdminCredentialsSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterAdminCredentialsSamples.java index 24ad2c7e5f66d..10cf8ff6927ca 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterAdminCredentialsSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterAdminCredentialsSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedClustersListClusterAdminCredentialsSamples { /* - * x-ms-original-file: 2026-08-01/ManagedClustersListClusterAdminCredentials.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersListClusterAdminCredentials.json */ /** * Sample code: Get Managed Cluster. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterMonitoringUserCredentialsSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterMonitoringUserCredentialsSamples.java index a7d7d5e5a8f74..6ed832dfa9109 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterMonitoringUserCredentialsSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterMonitoringUserCredentialsSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedClustersListClusterMonitoringUserCredentialsSamples { /* - * x-ms-original-file: 2026-08-01/ManagedClustersListClusterMonitoringUserCredentials.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersListClusterCredentialResult.json */ /** * Sample code: Get Managed Cluster. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterUserCredentialsSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterUserCredentialsSamples.java index e48499719e48b..326657e863996 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterUserCredentialsSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListClusterUserCredentialsSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedClustersListClusterUserCredentialsSamples { /* - * x-ms-original-file: 2026-08-01/ManagedClustersListClusterUserCredentials.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersListClusterUserCredentials.json */ /** * Sample code: Get Managed Cluster. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListGuardrailsVersionsSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListGuardrailsVersionsSamples.java new file mode 100644 index 0000000000000..ea96c1be628e5 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListGuardrailsVersionsSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +/** + * Samples for ManagedClusters ListGuardrailsVersions. + */ +public final class ManagedClustersListGuardrailsVersionsSamples { + /* + * x-ms-original-file: 2026-08-02-preview/ListGuardrailsVersions.json + */ + /** + * Sample code: List Guardrails Versions. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void + listGuardrailsVersions(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getManagedClusters() + .listGuardrailsVersions("location1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListKubernetesVersionsSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListKubernetesVersionsSamples.java index 92d65bca48218..0091124f4b6ba 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListKubernetesVersionsSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListKubernetesVersionsSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedClustersListKubernetesVersionsSamples { /* - * x-ms-original-file: 2026-08-01/KubernetesVersions_List.json + * x-ms-original-file: 2026-08-02-preview/KubernetesVersions_List.json */ /** * Sample code: List Kubernetes Versions. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListMeshRevisionProfilesSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListMeshRevisionProfilesSamples.java index 4658cec6278f6..e00a1adac72fe 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListMeshRevisionProfilesSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListMeshRevisionProfilesSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedClustersListMeshRevisionProfilesSamples { /* - * x-ms-original-file: 2026-08-01/ManagedClustersList_MeshRevisionProfiles.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersList_MeshRevisionProfiles.json */ /** * Sample code: List mesh revision profiles in a location. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListMeshUpgradeProfilesSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListMeshUpgradeProfilesSamples.java index 483ae81351709..47db059733774 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListMeshUpgradeProfilesSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListMeshUpgradeProfilesSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedClustersListMeshUpgradeProfilesSamples { /* - * x-ms-original-file: 2026-08-01/ManagedClustersList_MeshUpgradeProfiles.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersList_MeshUpgradeProfiles.json */ /** * Sample code: Lists version compatibility and upgrade profile for all service meshes in a cluster. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListNodeImageVersionsSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListNodeImageVersionsSamples.java new file mode 100644 index 0000000000000..bf386534a9641 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListNodeImageVersionsSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +/** + * Samples for ManagedClusters ListNodeImageVersions. + */ +public final class ManagedClustersListNodeImageVersionsSamples { + /* + * x-ms-original-file: 2026-08-02-preview/NodeImageVersions_List.json + */ + /** + * Sample code: List Node Image Versions. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void + listNodeImageVersions(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getManagedClusters() + .listNodeImageVersions("location1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListOutboundNetworkDependenciesEndpointsSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListOutboundNetworkDependenciesEndpointsSamples.java index 8e4389b51f925..e5b1f806890ff 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListOutboundNetworkDependenciesEndpointsSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListOutboundNetworkDependenciesEndpointsSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedClustersListOutboundNetworkDependenciesEndpointsSamples { /* - * x-ms-original-file: 2026-08-01/OutboundNetworkDependenciesEndpointsList.json + * x-ms-original-file: 2026-08-02-preview/OutboundNetworkDependenciesEndpointsList.json */ /** * Sample code: List OutboundNetworkDependenciesEndpoints by Managed Cluster. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListSafeguardsVersionsSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListSafeguardsVersionsSamples.java new file mode 100644 index 0000000000000..8dfcb2b5646a5 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListSafeguardsVersionsSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +/** + * Samples for ManagedClusters ListSafeguardsVersions. + */ +public final class ManagedClustersListSafeguardsVersionsSamples { + /* + * x-ms-original-file: 2026-08-02-preview/ListSafeguardsVersions.json + */ + /** + * Sample code: List Safeguards Versions. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void + listSafeguardsVersions(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getManagedClusters() + .listSafeguardsVersions("location1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListSamples.java index aae0eac929523..8a17ddd4709e1 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersListSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedClustersListSamples { /* - * x-ms-original-file: 2026-08-01/ManagedClustersList.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersList.json */ /** * Sample code: List Managed Clusters. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRebalanceLoadBalancersSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRebalanceLoadBalancersSamples.java new file mode 100644 index 0000000000000..39be2bb7aca67 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRebalanceLoadBalancersSamples.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +import com.azure.resourcemanager.containerservice.models.RebalanceLoadBalancersRequestBody; +import java.util.Arrays; + +/** + * Samples for ManagedClusters RebalanceLoadBalancers. + */ +public final class ManagedClustersRebalanceLoadBalancersSamples { + /* + * x-ms-original-file: 2026-08-02-preview/LoadBalancers_Rebalance.json + */ + /** + * Sample code: Rebalance Load Balancers of a Managed Cluster. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void rebalanceLoadBalancersOfAManagedCluster( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getManagedClusters() + .rebalanceLoadBalancers("rg1", "clustername1", + new RebalanceLoadBalancersRequestBody().withLoadBalancerNames(Arrays.asList("kubernetes")), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersResetAADProfileSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersResetAADProfileSamples.java index 506db2befa258..d6c35ef46a5f7 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersResetAADProfileSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersResetAADProfileSamples.java @@ -11,7 +11,7 @@ */ public final class ManagedClustersResetAADProfileSamples { /* - * x-ms-original-file: 2026-08-01/ManagedClustersResetAADProfile.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersResetAADProfile.json */ /** * Sample code: Reset AAD Profile. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersResetServicePrincipalProfileSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersResetServicePrincipalProfileSamples.java index 21aa9ec3ff1c6..0f2af67bf8c81 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersResetServicePrincipalProfileSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersResetServicePrincipalProfileSamples.java @@ -11,7 +11,7 @@ */ public final class ManagedClustersResetServicePrincipalProfileSamples { /* - * x-ms-original-file: 2026-08-01/ManagedClustersResetServicePrincipalProfile.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersResetServicePrincipalProfile.json */ /** * Sample code: Reset Service Principal Profile. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRotateClusterCertificatesSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRotateClusterCertificatesSamples.java index 28f1250369405..05eef461f76dd 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRotateClusterCertificatesSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRotateClusterCertificatesSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedClustersRotateClusterCertificatesSamples { /* - * x-ms-original-file: 2026-08-01/ManagedClustersRotateClusterCertificates.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersRotateClusterCertificates.json */ /** * Sample code: Rotate Cluster Certificates. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRotateServiceAccountSigningKeysSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRotateServiceAccountSigningKeysSamples.java index 5efa2d6779f2b..2ea3343565823 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRotateServiceAccountSigningKeysSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRotateServiceAccountSigningKeysSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedClustersRotateServiceAccountSigningKeysSamples { /* - * x-ms-original-file: 2026-08-01/ManagedClustersRotateServiceAccountSigningKeys.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersRotateServiceAccountSigningKeys.json */ /** * Sample code: Rotate Cluster Service Account Signing Keys. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRunCommandSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRunCommandSamples.java index d7e279fc49fbc..993fded1df776 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRunCommandSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersRunCommandSamples.java @@ -11,7 +11,7 @@ */ public final class ManagedClustersRunCommandSamples { /* - * x-ms-original-file: 2026-08-01/RunCommandRequest.json + * x-ms-original-file: 2026-08-02-preview/RunCommandRequest.json */ /** * Sample code: submitNewCommand. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersStartSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersStartSamples.java index cc247afe08c2e..a31bc0bb8d502 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersStartSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersStartSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedClustersStartSamples { /* - * x-ms-original-file: 2026-08-01/ManagedClustersStart.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersStart.json */ /** * Sample code: Start Managed Cluster. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersStopSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersStopSamples.java index 893f81f9bc454..51955202e03da 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersStopSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersStopSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedClustersStopSamples { /* - * x-ms-original-file: 2026-08-01/ManagedClustersStop.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersStop.json */ /** * Sample code: Stop Managed Cluster. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersUpdateTagsSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersUpdateTagsSamples.java index 18316056ca5e6..b9c4295b62697 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersUpdateTagsSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedClustersUpdateTagsSamples.java @@ -13,7 +13,7 @@ */ public final class ManagedClustersUpdateTagsSamples { /* - * x-ms-original-file: 2026-08-01/ManagedClustersUpdateTags.json + * x-ms-original-file: 2026-08-02-preview/ManagedClustersUpdateTags.json */ /** * Sample code: Update Managed Cluster Tags. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesCreateOrUpdateSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesCreateOrUpdateSamples.java index 6f7e668e35741..b6cb295aa8ab6 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesCreateOrUpdateSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesCreateOrUpdateSamples.java @@ -19,7 +19,7 @@ */ public final class ManagedNamespacesCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-08-01/ManagedNamespacesCreate_Update.json + * x-ms-original-file: 2026-08-02-preview/ManagedNamespacesCreate_Update.json */ /** * Sample code: Create/Update Managed Namespace. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesDeleteSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesDeleteSamples.java index a390235e7fe68..f2e191330ab49 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesDeleteSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedNamespacesDeleteSamples { /* - * x-ms-original-file: 2026-08-01/ManagedNamespacesDelete.json + * x-ms-original-file: 2026-08-02-preview/ManagedNamespacesDelete.json */ /** * Sample code: Delete Managed Namespace. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesGetSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesGetSamples.java index 3efdbde731695..acbc82071b810 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesGetSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesGetSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedNamespacesGetSamples { /* - * x-ms-original-file: 2026-08-01/ManagedNamespacesGet.json + * x-ms-original-file: 2026-08-02-preview/ManagedNamespacesGet.json */ /** * Sample code: Get Managed Namespace. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesListByManagedClusterSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesListByManagedClusterSamples.java index f509859e291d8..07dbc123048d1 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesListByManagedClusterSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesListByManagedClusterSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedNamespacesListByManagedClusterSamples { /* - * x-ms-original-file: 2026-08-01/ManagedNamespacesList.json + * x-ms-original-file: 2026-08-02-preview/ManagedNamespacesList.json */ /** * Sample code: List namespaces by Managed Cluster. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesListCredentialSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesListCredentialSamples.java index e42db2d9d7892..696444861fcc4 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesListCredentialSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesListCredentialSamples.java @@ -9,7 +9,7 @@ */ public final class ManagedNamespacesListCredentialSamples { /* - * x-ms-original-file: 2026-08-01/ManagedNamespacesListCredentialResult.json + * x-ms-original-file: 2026-08-02-preview/ManagedNamespacesListCredentialResult.json */ /** * Sample code: List managed namespace credentials. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesUpdateSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesUpdateSamples.java index 2d26302b1d6c6..551d2cb8f78c4 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesUpdateSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ManagedNamespacesUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class ManagedNamespacesUpdateSamples { /* - * x-ms-original-file: 2026-08-01/ManagedNamespacesUpdateTags.json + * x-ms-original-file: 2026-08-02-preview/ManagedNamespacesUpdateTags.json */ /** * Sample code: Update Managed Namespace Tags. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MeshMembershipsCreateOrUpdateSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MeshMembershipsCreateOrUpdateSamples.java new file mode 100644 index 0000000000000..d41e8c89d490c --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MeshMembershipsCreateOrUpdateSamples.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +import com.azure.resourcemanager.containerservice.fluent.models.MeshMembershipInner; +import com.azure.resourcemanager.containerservice.models.MeshMembershipProperties; + +/** + * Samples for MeshMemberships CreateOrUpdate. + */ +public final class MeshMembershipsCreateOrUpdateSamples { + /* + * x-ms-original-file: 2026-08-02-preview/MeshMemberships_CreateOrUpdate.json + */ + /** + * Sample code: Create or update Mesh Membership. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void + createOrUpdateMeshMembership(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getMeshMemberships() + .createOrUpdate("rg1", "clustername1", "meshmembership1", + new MeshMembershipInner().withProperties(new MeshMembershipProperties().withManagedMeshId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/rg1/providers/Microsoft.AppLink/applinks/applink1/appLinkMembers/member1")), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MeshMembershipsDeleteSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MeshMembershipsDeleteSamples.java new file mode 100644 index 0000000000000..623b35fdb9e8f --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MeshMembershipsDeleteSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +/** + * Samples for MeshMemberships Delete. + */ +public final class MeshMembershipsDeleteSamples { + /* + * x-ms-original-file: 2026-08-02-preview/MeshMemberships_Delete.json + */ + /** + * Sample code: Delete Mesh Membership. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void + deleteMeshMembership(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getMeshMemberships() + .delete("rg1", "clustername1", "meshmembership1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MeshMembershipsGetSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MeshMembershipsGetSamples.java new file mode 100644 index 0000000000000..6dd4872f60084 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MeshMembershipsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +/** + * Samples for MeshMemberships Get. + */ +public final class MeshMembershipsGetSamples { + /* + * x-ms-original-file: 2026-08-02-preview/MeshMemberships_Get.json + */ + /** + * Sample code: Get Mesh Membership. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void getMeshMembership(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getMeshMemberships() + .getWithResponse("rg1", "clustername1", "meshmembership1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MeshMembershipsListByManagedClusterSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MeshMembershipsListByManagedClusterSamples.java new file mode 100644 index 0000000000000..ed525b4a3590a --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/MeshMembershipsListByManagedClusterSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +/** + * Samples for MeshMemberships ListByManagedCluster. + */ +public final class MeshMembershipsListByManagedClusterSamples { + /* + * x-ms-original-file: 2026-08-02-preview/MeshMemberships_ListByManagedCluster.json + */ + /** + * Sample code: List Mesh Memberships by Managed Cluster. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void listMeshMembershipsByManagedCluster( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getMeshMemberships() + .listByManagedCluster("rg1", "clustername1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/OperationStatusResultGetByAgentPoolSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/OperationStatusResultGetByAgentPoolSamples.java new file mode 100644 index 0000000000000..3bc4499bdada0 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/OperationStatusResultGetByAgentPoolSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +/** + * Samples for OperationStatusResult GetByAgentPool. + */ +public final class OperationStatusResultGetByAgentPoolSamples { + /* + * x-ms-original-file: 2026-08-02-preview/OperationStatusResultGetByAgentPool.json + */ + /** + * Sample code: Get OperationStatusResult. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void + getOperationStatusResult(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getOperationStatusResults() + .getByAgentPoolWithResponse("rg1", "clustername1", "agentpool1", "00000000-0000-0000-0000-000000000001", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/OperationStatusResultGetSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/OperationStatusResultGetSamples.java new file mode 100644 index 0000000000000..d5d8b053277b5 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/OperationStatusResultGetSamples.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +/** + * Samples for OperationStatusResult Get. + */ +public final class OperationStatusResultGetSamples { + /* + * x-ms-original-file: 2026-08-02-preview/OperationStatusResultGet.json + */ + /** + * Sample code: Get OperationStatusResult. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void + getOperationStatusResult(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getOperationStatusResults() + .getWithResponse("rg1", "clustername1", "00000000-0000-0000-0000-000000000001", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/OperationStatusResultListByAgentPoolSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/OperationStatusResultListByAgentPoolSamples.java new file mode 100644 index 0000000000000..4b84058654485 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/OperationStatusResultListByAgentPoolSamples.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.containerservice.generated; + +/** + * Samples for OperationStatusResult ListByAgentPool. + */ +public final class OperationStatusResultListByAgentPoolSamples { + /* + * x-ms-original-file: 2026-08-02-preview/OperationStatusResultListByAgentPool.json + */ + /** + * Sample code: List Operations on Agent Pool. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void + listOperationsOnAgentPool(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getOperationStatusResults() + .listByAgentPool("rg1", "clustername1", "agentpool1", null, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-08-02-preview/OperationStatusResultListByAgentPool_Active.json + */ + /** + * Sample code: List Active Operations on Agent Pool. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void + listActiveOperationsOnAgentPool(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getOperationStatusResults() + .listByAgentPool("rg1", "clustername1", "agentpool1", true, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/OperationStatusResultListSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/OperationStatusResultListSamples.java new file mode 100644 index 0000000000000..0aa9303e408f0 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/OperationStatusResultListSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +/** + * Samples for OperationStatusResult List. + */ +public final class OperationStatusResultListSamples { + /* + * x-ms-original-file: 2026-08-02-preview/OperationStatusResultList.json + */ + /** + * Sample code: List of OperationStatusResult. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void + listOfOperationStatusResult(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getOperationStatusResults() + .list("rg1", "clustername1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/OperationsListSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/OperationsListSamples.java index 9fc485e94b2fb..92d98250b8548 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/OperationsListSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/OperationsListSamples.java @@ -9,7 +9,7 @@ */ public final class OperationsListSamples { /* - * x-ms-original-file: 2026-08-01/Operation_List.json + * x-ms-original-file: 2026-08-02-preview/Operation_List.json */ /** * Sample code: List available operations for the container service resource provider. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsDeleteSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsDeleteSamples.java index 5843c80a3706c..c80b9e0dad1bb 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsDeleteSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: 2026-08-01/PrivateEndpointConnectionsDelete.json + * x-ms-original-file: 2026-08-02-preview/PrivateEndpointConnectionsDelete.json */ /** * Sample code: Delete Private Endpoint Connection. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsGetSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsGetSamples.java index 8aa82471cfe5e..8fd31e242261d 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsGetSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsGetSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateEndpointConnectionsGetSamples { /* - * x-ms-original-file: 2026-08-01/PrivateEndpointConnectionsGet.json + * x-ms-original-file: 2026-08-02-preview/PrivateEndpointConnectionsGet.json */ /** * Sample code: Get Private Endpoint Connection. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsListSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsListSamples.java index c2d40ed818d58..02f7d9787befe 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsListSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsListSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateEndpointConnectionsListSamples { /* - * x-ms-original-file: 2026-08-01/PrivateEndpointConnectionsList.json + * x-ms-original-file: 2026-08-02-preview/PrivateEndpointConnectionsList.json */ /** * Sample code: List Private Endpoint Connections by Managed Cluster. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsUpdateSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsUpdateSamples.java index 6a91665f97c8d..fa241db3207eb 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsUpdateSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateEndpointConnectionsUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class PrivateEndpointConnectionsUpdateSamples { /* - * x-ms-original-file: 2026-08-01/PrivateEndpointConnectionsUpdate.json + * x-ms-original-file: 2026-08-02-preview/PrivateEndpointConnectionsUpdate.json */ /** * Sample code: Update Private Endpoint Connection. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateLinkResourcesListSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateLinkResourcesListSamples.java index 7296990843637..067391272efc1 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateLinkResourcesListSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/PrivateLinkResourcesListSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateLinkResourcesListSamples { /* - * x-ms-original-file: 2026-08-01/PrivateLinkResourcesList.json + * x-ms-original-file: 2026-08-02-preview/PrivateLinkResourcesList.json */ /** * Sample code: List Private Link Resources by Managed Cluster. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ResolvePrivateLinkServiceIdPOSTSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ResolvePrivateLinkServiceIdPOSTSamples.java index 0eca328e0b8a0..23eb67de60a85 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ResolvePrivateLinkServiceIdPOSTSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/ResolvePrivateLinkServiceIdPOSTSamples.java @@ -11,7 +11,7 @@ */ public final class ResolvePrivateLinkServiceIdPOSTSamples { /* - * x-ms-original-file: 2026-08-01/ResolvePrivateLinkServiceId.json + * x-ms-original-file: 2026-08-02-preview/ResolvePrivateLinkServiceId.json */ /** * Sample code: Resolve the Private Link Service ID for Managed Cluster. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsCreateOrUpdateSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsCreateOrUpdateSamples.java index b84b93f419c7a..78436751cdac5 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsCreateOrUpdateSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsCreateOrUpdateSamples.java @@ -14,7 +14,7 @@ */ public final class SnapshotsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-08-01/SnapshotsCreate.json + * x-ms-original-file: 2026-08-02-preview/SnapshotsCreate.json */ /** * Sample code: Create/Update Snapshot. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsDeleteSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsDeleteSamples.java index 29f54c2b982c1..4d94e318ca793 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsDeleteSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class SnapshotsDeleteSamples { /* - * x-ms-original-file: 2026-08-01/SnapshotsDelete.json + * x-ms-original-file: 2026-08-02-preview/SnapshotsDelete.json */ /** * Sample code: Delete Snapshot. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsGetByResourceGroupSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsGetByResourceGroupSamples.java index 8ec00d74c3007..cd3bcebe1e4ec 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsGetByResourceGroupSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class SnapshotsGetByResourceGroupSamples { /* - * x-ms-original-file: 2026-08-01/SnapshotsGet.json + * x-ms-original-file: 2026-08-02-preview/SnapshotsGet.json */ /** * Sample code: Get Snapshot. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsListByResourceGroupSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsListByResourceGroupSamples.java index 06ec33705d88c..9555ccdc1bc81 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsListByResourceGroupSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class SnapshotsListByResourceGroupSamples { /* - * x-ms-original-file: 2026-08-01/SnapshotsListByResourceGroup.json + * x-ms-original-file: 2026-08-02-preview/SnapshotsListByResourceGroup.json */ /** * Sample code: List Snapshots by Resource Group. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsListSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsListSamples.java index 1d671ffe285f7..e370bd7d56f19 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsListSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsListSamples.java @@ -9,7 +9,7 @@ */ public final class SnapshotsListSamples { /* - * x-ms-original-file: 2026-08-01/SnapshotsList.json + * x-ms-original-file: 2026-08-02-preview/SnapshotsList.json */ /** * Sample code: List Snapshots. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsUpdateTagsSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsUpdateTagsSamples.java index ea29b4acc2b64..be929d74cd391 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsUpdateTagsSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/SnapshotsUpdateTagsSamples.java @@ -13,7 +13,7 @@ */ public final class SnapshotsUpdateTagsSamples { /* - * x-ms-original-file: 2026-08-01/SnapshotsUpdateTags.json + * x-ms-original-file: 2026-08-02-preview/SnapshotsUpdateTags.json */ /** * Sample code: Update Snapshot Tags. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsCreateOrUpdateSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsCreateOrUpdateSamples.java index 28a4429d7a548..7498d09f452d8 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsCreateOrUpdateSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsCreateOrUpdateSamples.java @@ -12,7 +12,7 @@ */ public final class TrustedAccessRoleBindingsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-08-01/TrustedAccessRoleBindings_CreateOrUpdate.json + * x-ms-original-file: 2026-08-02-preview/TrustedAccessRoleBindings_CreateOrUpdate.json */ /** * Sample code: Create or update a trusted access role binding. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsDeleteSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsDeleteSamples.java index 02cfcf5bfd718..5cf063e423de8 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsDeleteSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class TrustedAccessRoleBindingsDeleteSamples { /* - * x-ms-original-file: 2026-08-01/TrustedAccessRoleBindings_Delete.json + * x-ms-original-file: 2026-08-02-preview/TrustedAccessRoleBindings_Delete.json */ /** * Sample code: Delete a trusted access role binding. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsGetSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsGetSamples.java index 37ec3625c5a7e..9b0bcb89f0207 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsGetSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsGetSamples.java @@ -9,7 +9,7 @@ */ public final class TrustedAccessRoleBindingsGetSamples { /* - * x-ms-original-file: 2026-08-01/TrustedAccessRoleBindings_Get.json + * x-ms-original-file: 2026-08-02-preview/TrustedAccessRoleBindings_Get.json */ /** * Sample code: Get a trusted access role binding. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsListSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsListSamples.java index 69bb8e5e04eac..039bf1f05bc57 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsListSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRoleBindingsListSamples.java @@ -9,7 +9,7 @@ */ public final class TrustedAccessRoleBindingsListSamples { /* - * x-ms-original-file: 2026-08-01/TrustedAccessRoleBindings_List.json + * x-ms-original-file: 2026-08-02-preview/TrustedAccessRoleBindings_List.json */ /** * Sample code: List trusted access role bindings. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRolesListSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRolesListSamples.java index 41100be73cd67..a95e3c9b4a97b 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRolesListSamples.java +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/TrustedAccessRolesListSamples.java @@ -9,7 +9,7 @@ */ public final class TrustedAccessRolesListSamples { /* - * x-ms-original-file: 2026-08-01/TrustedAccessRoles_List.json + * x-ms-original-file: 2026-08-02-preview/TrustedAccessRoles_List.json */ /** * Sample code: List trusted access roles. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/UpgradeInsightsGenerateSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/UpgradeInsightsGenerateSamples.java new file mode 100644 index 0000000000000..dc170dfc77b23 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/UpgradeInsightsGenerateSamples.java @@ -0,0 +1,102 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +import com.azure.resourcemanager.containerservice.models.AgentPoolGenerateUpgradeInsightsContent; +import com.azure.resourcemanager.containerservice.models.ControlPlaneAndAgentPoolsGenerateUpgradeInsightsContent; +import com.azure.resourcemanager.containerservice.models.ControlPlaneGenerateUpgradeInsightsContent; +import com.azure.resourcemanager.containerservice.models.NodeImageGenerateUpgradeInsightsContent; + +/** + * Samples for UpgradeInsights Generate. + */ +public final class UpgradeInsightsGenerateSamples { + /* + * x-ms-original-file: 2026-08-02-preview/ManagedClustersGenerateUpgradeInsights_ControlPlane.json + */ + /** + * Sample code: Generate a control plane upgrade insight. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void generateAControlPlaneUpgradeInsight( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getUpgradeInsights() + .generateWithResponse("rg1", "clustername1", + new ControlPlaneGenerateUpgradeInsightsContent().withTargetKubernetesVersion("1.33.5"), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-08-02-preview/ManagedClustersGenerateUpgradeInsights_NodeImageLatest.json + */ + /** + * Sample code: Generate a node OS image upgrade insight using the latest available image. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void generateANodeOSImageUpgradeInsightUsingTheLatestAvailableImage( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getUpgradeInsights() + .generateWithResponse("rg1", "clustername1", + new NodeImageGenerateUpgradeInsightsContent().withAgentPoolName("nodepool1"), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-08-02-preview/ManagedClustersGenerateUpgradeInsights_AgentPool.json + */ + /** + * Sample code: Generate a single agent pool Kubernetes version upgrade insight. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void generateASingleAgentPoolKubernetesVersionUpgradeInsight( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getUpgradeInsights() + .generateWithResponse("rg1", "clustername1", + new AgentPoolGenerateUpgradeInsightsContent().withAgentPoolName("nodepool1") + .withTargetKubernetesVersion("1.33.5"), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-08-02-preview/ManagedClustersGenerateUpgradeInsights_NodeImage.json + */ + /** + * Sample code: Generate a node OS image upgrade insight. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void + generateANodeOSImageUpgradeInsight(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getUpgradeInsights() + .generateWithResponse("rg1", "clustername1", + new NodeImageGenerateUpgradeInsightsContent().withAgentPoolName("nodepool1") + .withTargetNodeImageVersion("AKSUbuntu-2204gen2-202607.01.0"), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-08-02-preview/ManagedClustersGenerateUpgradeInsights_ControlPlaneAndAgentPools.json + */ + /** + * Sample code: Generate a combined control plane and agent pools upgrade insight. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void generateACombinedControlPlaneAndAgentPoolsUpgradeInsight( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getUpgradeInsights() + .generateWithResponse("rg1", "clustername1", + new ControlPlaneAndAgentPoolsGenerateUpgradeInsightsContent().withTargetKubernetesVersion("1.33.5"), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/UpgradeInsightsGetSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/UpgradeInsightsGetSamples.java new file mode 100644 index 0000000000000..9df3102ae3737 --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/UpgradeInsightsGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +/** + * Samples for UpgradeInsights Get. + */ +public final class UpgradeInsightsGetSamples { + /* + * x-ms-original-file: 2026-08-02-preview/ManagedClustersGetUpgradeInsight.json + */ + /** + * Sample code: Get a stored upgrade insight. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void + getAStoredUpgradeInsight(com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient() + .getUpgradeInsights() + .getWithResponse("rg1", "clustername1", "controlPlane-1.33.5", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/UpgradeInsightsListSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/UpgradeInsightsListSamples.java new file mode 100644 index 0000000000000..ab7ef3bcf7f1d --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/UpgradeInsightsListSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +/** + * Samples for UpgradeInsights List. + */ +public final class UpgradeInsightsListSamples { + /* + * x-ms-original-file: 2026-08-02-preview/ManagedClustersListUpgradeInsights.json + */ + /** + * Sample code: List the stored upgrade insights for a managed cluster. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void listTheStoredUpgradeInsightsForAManagedCluster( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient().getUpgradeInsights().list("rg1", "clustername1", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/VmSkusListSamples.java b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/VmSkusListSamples.java new file mode 100644 index 0000000000000..5686cb3fd646c --- /dev/null +++ b/sdk/containerservice/azure-resourcemanager-containerservice/src/samples/java/com/azure/resourcemanager/containerservice/generated/VmSkusListSamples.java @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.containerservice.generated; + +/** + * Samples for VmSkus List. + */ +public final class VmSkusListSamples { + /* + * x-ms-original-file: 2026-08-02-preview/ListAvailableContainerServiceVmSkusWithExtendedLocations.json + */ + /** + * Sample code: Lists all available Container Service VM SKUs with Extended Location information. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void listsAllAvailableContainerServiceVMSKUsWithExtendedLocationInformation( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient().getVmSkus().list("westus", true, com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-08-02-preview/ListAvailableContainerServiceVmSkus.json + */ + /** + * Sample code: Lists all available Container Service VM SKUs for a location. + * + * @param manager Entry point to ContainerServiceManager. + */ + public static void listsAllAvailableContainerServiceVMSKUsForALocation( + com.azure.resourcemanager.containerservice.ContainerServiceManager manager) { + manager.serviceClient().getVmSkus().list("westus", null, com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/tsp-location.yaml b/sdk/containerservice/azure-resourcemanager-containerservice/tsp-location.yaml index 4cfb56cc15024..be915e7dc574f 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/tsp-location.yaml +++ b/sdk/containerservice/azure-resourcemanager-containerservice/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/containerservice/resource-manager/Microsoft.ContainerService/aks -commit: ebc13f67950a95e50c6828c27dd979e8608c0329 +commit: 225e9e606441aa3b48cbec26c4c02f54b32d16c3 repo: Azure/azure-rest-api-specs additionalDirectories: From 806284f9d27a64cc45b5f487e2de0802dd16debe Mon Sep 17 00:00:00 2001 From: "azure-sdk-automation[bot]" <191533747+azure-sdk-automation[bot]@users.noreply.github.com> Date: Wed, 21 Oct 2026 12:02:13 +0800 Subject: [PATCH 03/22] Increment package versions for keyvault/azure-resourcemanager-keyvault auto-releases (#50883) Co-authored-by: azure-sdk --- eng/versioning/version_client.txt | 2 +- .../azure-resourcemanager-appplatform/pom.xml | 2 +- .../azure-resourcemanager-appservice/pom.xml | 2 +- sdk/chaos/azure-resourcemanager-chaos/pom.xml | 2 +- sdk/compute/azure-resourcemanager-compute/pom.xml | 2 +- .../azure-resourcemanager-keyvault/CHANGELOG.md | 10 ++++++++++ sdk/keyvault/azure-resourcemanager-keyvault/pom.xml | 2 +- .../azure-resourcemanager-machinelearning/pom.xml | 2 +- sdk/network/azure-resourcemanager-network/pom.xml | 2 +- sdk/resourcemanager/azure-resourcemanager/pom.xml | 2 +- 10 files changed, 19 insertions(+), 9 deletions(-) diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 161bbea047d23..30b09c7db8b43 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -272,7 +272,7 @@ com.azure.resourcemanager:azure-resourcemanager-containerservice;2.65.0;2.66.0-b com.azure.resourcemanager:azure-resourcemanager-cosmos;2.55.3;2.56.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-dns;2.53.12;2.54.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-eventhubs;2.53.13;2.54.0-beta.1 -com.azure.resourcemanager:azure-resourcemanager-keyvault;2.55.6;2.56.0 +com.azure.resourcemanager:azure-resourcemanager-keyvault;2.56.0;2.57.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-monitor;2.53.12;2.54.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-msi;2.54.3;2.55.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-network;2.62.0;2.63.0-beta.1 diff --git a/sdk/appplatform/azure-resourcemanager-appplatform/pom.xml b/sdk/appplatform/azure-resourcemanager-appplatform/pom.xml index eb2f7509f03f0..15e835ce98d0f 100644 --- a/sdk/appplatform/azure-resourcemanager-appplatform/pom.xml +++ b/sdk/appplatform/azure-resourcemanager-appplatform/pom.xml @@ -109,7 +109,7 @@ com.azure.resourcemanager azure-resourcemanager-keyvault - 2.55.6 + 2.56.0 test diff --git a/sdk/appservice/azure-resourcemanager-appservice/pom.xml b/sdk/appservice/azure-resourcemanager-appservice/pom.xml index 3cb7f6b843573..12dc2cbc8beb3 100644 --- a/sdk/appservice/azure-resourcemanager-appservice/pom.xml +++ b/sdk/appservice/azure-resourcemanager-appservice/pom.xml @@ -79,7 +79,7 @@ com.azure.resourcemanager azure-resourcemanager-keyvault - 2.55.6 + 2.56.0 com.azure.resourcemanager diff --git a/sdk/chaos/azure-resourcemanager-chaos/pom.xml b/sdk/chaos/azure-resourcemanager-chaos/pom.xml index 603c2b641fa0d..3796f01c9a68b 100644 --- a/sdk/chaos/azure-resourcemanager-chaos/pom.xml +++ b/sdk/chaos/azure-resourcemanager-chaos/pom.xml @@ -79,7 +79,7 @@ com.azure.resourcemanager azure-resourcemanager-keyvault - 2.55.6 + 2.56.0 test diff --git a/sdk/compute/azure-resourcemanager-compute/pom.xml b/sdk/compute/azure-resourcemanager-compute/pom.xml index 5d0d1057b5ed0..3103fbf87dc6e 100644 --- a/sdk/compute/azure-resourcemanager-compute/pom.xml +++ b/sdk/compute/azure-resourcemanager-compute/pom.xml @@ -120,7 +120,7 @@ com.azure.resourcemanager azure-resourcemanager-keyvault - 2.55.6 + 2.56.0 test diff --git a/sdk/keyvault/azure-resourcemanager-keyvault/CHANGELOG.md b/sdk/keyvault/azure-resourcemanager-keyvault/CHANGELOG.md index d3dc98f130778..2c20fd9fe3a0b 100644 --- a/sdk/keyvault/azure-resourcemanager-keyvault/CHANGELOG.md +++ b/sdk/keyvault/azure-resourcemanager-keyvault/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 2.57.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 2.56.0 (2026-10-12) - Package api-version 2026-05-15. diff --git a/sdk/keyvault/azure-resourcemanager-keyvault/pom.xml b/sdk/keyvault/azure-resourcemanager-keyvault/pom.xml index 9c123eeeb718c..d4cb77615b290 100644 --- a/sdk/keyvault/azure-resourcemanager-keyvault/pom.xml +++ b/sdk/keyvault/azure-resourcemanager-keyvault/pom.xml @@ -14,7 +14,7 @@ com.azure.resourcemanager azure-resourcemanager-keyvault - 2.56.0 + 2.57.0-beta.1 jar Microsoft Azure SDK for Key Vault Management diff --git a/sdk/machinelearning/azure-resourcemanager-machinelearning/pom.xml b/sdk/machinelearning/azure-resourcemanager-machinelearning/pom.xml index 15e5fbdfe765b..86a5d9e7d8ca3 100644 --- a/sdk/machinelearning/azure-resourcemanager-machinelearning/pom.xml +++ b/sdk/machinelearning/azure-resourcemanager-machinelearning/pom.xml @@ -84,7 +84,7 @@ com.azure.resourcemanager azure-resourcemanager-keyvault - 2.55.6 + 2.56.0 test diff --git a/sdk/network/azure-resourcemanager-network/pom.xml b/sdk/network/azure-resourcemanager-network/pom.xml index 5707f1b348a33..10b02fff147eb 100644 --- a/sdk/network/azure-resourcemanager-network/pom.xml +++ b/sdk/network/azure-resourcemanager-network/pom.xml @@ -93,7 +93,7 @@ com.azure.resourcemanager azure-resourcemanager-keyvault - 2.55.6 + 2.56.0 test diff --git a/sdk/resourcemanager/azure-resourcemanager/pom.xml b/sdk/resourcemanager/azure-resourcemanager/pom.xml index 0761a8f801f33..d6c38eff9f64c 100644 --- a/sdk/resourcemanager/azure-resourcemanager/pom.xml +++ b/sdk/resourcemanager/azure-resourcemanager/pom.xml @@ -112,7 +112,7 @@ com.azure.resourcemanager azure-resourcemanager-keyvault - 2.55.6 + 2.56.0 com.azure.resourcemanager From c578d1afe21b57b6fab8ff9a10c8acaf0b731f1d Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Wed, 21 Oct 2026 16:53:37 +0800 Subject: [PATCH 04/22] fix(ai-agents): tolerate absent generated tool enum in customization (#50896) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 4bbe3fb2-95f1-4311-8050-62ba7dba4860 --- .../src/main/java/AgentsCustomizations.java | 19 +++++++++++++------ 1 file changed, 13 insertions(+), 6 deletions(-) diff --git a/sdk/ai/azure-ai-agents/customizations/src/main/java/AgentsCustomizations.java b/sdk/ai/azure-ai-agents/customizations/src/main/java/AgentsCustomizations.java index 5d747be11b42f..4f39c023f045e 100644 --- a/sdk/ai/azure-ai-agents/customizations/src/main/java/AgentsCustomizations.java +++ b/sdk/ai/azure-ai-agents/customizations/src/main/java/AgentsCustomizations.java @@ -37,7 +37,7 @@ public void customize(LibraryCustomization libraryCustomization, Logger logger) renameImageGenToolSize(libraryCustomization, logger); modifyPollingStrategies(libraryCustomization, logger); customizeOptimizationPollingStrategies(libraryCustomization, logger); - internalizeUnusedVoiceAgentFunctionToolType(libraryCustomization); + internalizeUnusedVoiceAgentFunctionToolType(libraryCustomization, logger); protectPolymorphicBaseConstructors(libraryCustomization); makeRealtimeMessageDiscriminatorsFinal(libraryCustomization); applyUnionTypeWrappers(libraryCustomization, logger); @@ -93,11 +93,18 @@ public void customize(LibraryCustomization libraryCustomization, Logger logger) private static final int V_SIZE = 18; - private void internalizeUnusedVoiceAgentFunctionToolType(LibraryCustomization customization) { - customization.getClass(MODELS_PACKAGE, "VoiceAgentFunctionToolType1") - .customizeAst(ast -> ast.getEnumByName("VoiceAgentFunctionToolType1") - .orElseThrow(() -> new IllegalStateException("VoiceAgentFunctionToolType1 was not generated")) - .removeModifier(Modifier.Keyword.PUBLIC)); + private void internalizeUnusedVoiceAgentFunctionToolType(LibraryCustomization customization, Logger logger) { + ClassCustomization enumCustomization = customization.getPackage(MODELS_PACKAGE).listClasses().stream() + .filter(clazz -> "VoiceAgentFunctionToolType1".equals(clazz.getClassName())) + .findFirst() + .orElse(null); + if (enumCustomization == null) { + logger.info("VoiceAgentFunctionToolType1 is not generated; no enum visibility change is needed."); + return; + } + enumCustomization.customizeAst(ast -> ast.getEnumByName("VoiceAgentFunctionToolType1") + .orElseThrow(() -> new IllegalStateException("VoiceAgentFunctionToolType1 was not generated")) + .removeModifier(Modifier.Keyword.PUBLIC)); } /** From cc81e63dac3bd9c0b5695f92629c3aa3eb0671c8 Mon Sep 17 00:00:00 2001 From: Alan Zimmer <48699787+alzimmermsft@users.noreply.github.com> Date: Wed, 21 Oct 2026 07:52:54 -0400 Subject: [PATCH 05/22] Add official support and validation for Vert.x 5.1 and 5.2 (#50886) * Add official support and validation for Vert.x 5.1 and 5.2 * Update versions * Use baseline of Java 11 in version override tests --- common/perf-test-core/pom.xml | 4 +- eng/versioning/external_dependencies.txt | 4 +- ...upported_external_dependency_versions.json | 12 +++++ sdk/core/azure-core-http-vertx/CHANGELOG.md | 9 +++- sdk/core/azure-core-http-vertx/README.md | 5 +- sdk/core/azure-core-http-vertx/pom.xml | 47 +++++++++++++++++-- .../core/http/vertx/VertxHttpClient.java | 22 ++++++++- .../vertx/VertxHttpClientTimeoutTests.java | 25 ++++++++++ sdk/core/version-overrides-vertx-matrix.json | 5 +- sdk/template/azure-template-stress/pom.xml | 4 +- 10 files changed, 122 insertions(+), 15 deletions(-) diff --git a/common/perf-test-core/pom.xml b/common/perf-test-core/pom.xml index 1cb0e1a1c4661..22744d230da00 100644 --- a/common/perf-test-core/pom.xml +++ b/common/perf-test-core/pom.xml @@ -55,7 +55,7 @@ com.beust:jcommander:[1.82] - io.vertx:vertx-codegen:[4.5.32] + io.vertx:vertx-codegen:[4.5.35] io.projectreactor:reactor-core:[3.8.7] @@ -94,7 +94,7 @@ io.vertx vertx-codegen - 4.5.32 + 4.5.35 provided diff --git a/eng/versioning/external_dependencies.txt b/eng/versioning/external_dependencies.txt index 0d4bd6af14c10..9b590e3c3689a 100644 --- a/eng/versioning/external_dependencies.txt +++ b/eng/versioning/external_dependencies.txt @@ -63,8 +63,8 @@ io.netty:netty-transport-native-unix-common;4.2.19.Final io.netty:netty-transport-native-kqueue;4.2.19.Final io.projectreactor.netty:reactor-netty-http;1.3.7 io.projectreactor:reactor-core;3.8.7 -io.vertx:vertx-codegen;4.5.32 -io.vertx:vertx-core;4.5.32 +io.vertx:vertx-codegen;4.5.35 +io.vertx:vertx-core;4.5.35 javax.websocket:javax.websocket-api;1.1 org.apache.ant:ant;1.10.18 org.apache.arrow:arrow-format;19.0.0 diff --git a/eng/versioning/supported_external_dependency_versions.json b/eng/versioning/supported_external_dependency_versions.json index 722d67abfd9ee..948c262bf707c 100644 --- a/eng/versioning/supported_external_dependency_versions.json +++ b/eng/versioning/supported_external_dependency_versions.json @@ -195,8 +195,20 @@ { "io.projectreactor:reactor-core": "3.4.15" }, { "io.projectreactor:reactor-test": "3.4.15" } ], + "vertx_4.5": [ + { "io.vertx:vertx-codegen": "4.5.0" }, + { "io.vertx:vertx-core": "4.5.0" } + ], "vertx_5.0": [ { "io.vertx:vertx-codegen": "5.0.0" }, { "io.vertx:vertx-core": "5.0.0" } + ], + "vertx_5.1": [ + { "io.vertx:vertx-codegen": "5.1.0" }, + { "io.vertx:vertx-core": "5.1.0" } + ], + "vertx_5.2": [ + { "io.vertx:vertx-codegen": "5.2.0" }, + { "io.vertx:vertx-core": "5.2.0" } ] } diff --git a/sdk/core/azure-core-http-vertx/CHANGELOG.md b/sdk/core/azure-core-http-vertx/CHANGELOG.md index 73501b0a9a9fb..1ef71277c5c73 100644 --- a/sdk/core/azure-core-http-vertx/CHANGELOG.md +++ b/sdk/core/azure-core-http-vertx/CHANGELOG.md @@ -4,18 +4,25 @@ ### Features Added +- Added support for Vert.x 5.1 and 5.2 while retaining compatibility with Vert.x 4.5 and 5.0. + ### Breaking Changes ### Bugs Fixed - Fixed a bug where requests with a streaming body, such as `Flux` or `InputStream`, would never be sent when running with Vert.x 5.x. -- Fixed response timeouts and request cancellation leaving HTTP exchanges active and occupying pooled connections. +- Fixed response timeouts and request cancellation leaving HTTP exchanges active and occupying pooled connections, + including reset failures caused by incompatible method return types in Vert.x 5.x. - Fixed the SDK write timeout continuing to run after writing completed, incorrectly terminating slow responses. - Fixed excessive retention of canceled write-timeout tasks during streamed uploads with many small buffers. ### Other Changes +#### Dependency Updates + +- Upgraded `vertx-codegen` and `vertx-core` from `4.5.32` to `4.5.35`. + ## 1.2.0 (2026-09-29) ### Features Added diff --git a/sdk/core/azure-core-http-vertx/README.md b/sdk/core/azure-core-http-vertx/README.md index c70fc902f5359..f0ded5ab33770 100644 --- a/sdk/core/azure-core-http-vertx/README.md +++ b/sdk/core/azure-core-http-vertx/README.md @@ -11,8 +11,9 @@ Azure Core Vert.x HTTP client is a plugin for the `azure-core` HTTP client API. ### Include the package -By default, this transport uses Vert.x 4.5 and Netty 4.1 to support Java 8. It also supports Vert.x 5.0 on Java 11 or -later when your application selects Vert.x 5.0 and its compatible transitive dependencies, including Netty 4.2. +By default, this transport uses Vert.x 4.5 and Netty 4.1 to support Java 8. It also supports Vert.x 5.0, 5.1, and 5.2 +on Java 11 or later when your application selects one of these Vert.x versions and its compatible transitive +dependencies, including Netty 4.2. Keep Vert.x and Netty versions consistent across your application. Do not combine the default Vert.x 4.5/Netty 4.1 dependencies with the Netty 4.2-based `azure-core-http-netty` library on the same classpath. diff --git a/sdk/core/azure-core-http-vertx/pom.xml b/sdk/core/azure-core-http-vertx/pom.xml index 8e0d2b3bfdc16..6bf3f12e09bca 100644 --- a/sdk/core/azure-core-http-vertx/pom.xml +++ b/sdk/core/azure-core-http-vertx/pom.xml @@ -82,14 +82,14 @@ io.vertx vertx-codegen - 4.5.32 + 4.5.35 provided io.vertx vertx-core - 4.5.32 + 4.5.35 @@ -172,8 +172,8 @@ - io.vertx:vertx-codegen:[4.5.32] - io.vertx:vertx-core:[4.5.32] + io.vertx:vertx-codegen:[4.5.35] + io.vertx:vertx-core:[4.5.35] @@ -181,4 +181,43 @@ + + + + + version-override-tests + + + env.VERSION_OVERRIDE_TESTS + true + + + + + + org.apache.maven.plugins + maven-compiler-plugin + 3.15.0 + + + base-compile + + 11 + + + + + + base-testCompile + + 11 + 11 + + + + + + + + diff --git a/sdk/core/azure-core-http-vertx/src/main/java/com/azure/core/http/vertx/VertxHttpClient.java b/sdk/core/azure-core-http-vertx/src/main/java/com/azure/core/http/vertx/VertxHttpClient.java index ea23b6ebdbb63..73eee1974cefa 100644 --- a/sdk/core/azure-core-http-vertx/src/main/java/com/azure/core/http/vertx/VertxHttpClient.java +++ b/sdk/core/azure-core-http-vertx/src/main/java/com/azure/core/http/vertx/VertxHttpClient.java @@ -64,6 +64,7 @@ class VertxHttpClient implements HttpClient { private static final Duration EXPECT_CONTINUE_TIMEOUT = Duration.ofSeconds(1); private static final ReflectiveInvoker REQUEST_RESET; + private static final ReflectiveInvoker REQUEST_WRITE_HEAD; static { // In order to support both Vert.x 4.5 and 5.x reflection is needed to reset an HttpClientRequest. // HttpClientRequest.reset(long, Throwable) is available in both versions, but it returns boolean in 4.5 and @@ -71,6 +72,16 @@ class VertxHttpClient implements HttpClient { try { Method method = HttpClientRequest.class.getMethod("reset", long.class, Throwable.class); REQUEST_RESET = ReflectionUtils.getMethodInvoker(HttpClientRequest.class, method, false); + + // Vert.x 5.1 introduced writeHead() and deprecated sendHead() for removal. Resolve the appropriate method + // at runtime so the transport can still be compiled and used with Vert.x 4.5 and 5.0. + Method writeHeadMethod; + try { + writeHeadMethod = HttpClientRequest.class.getMethod("writeHead"); + } catch (NoSuchMethodException ex) { + writeHeadMethod = HttpClientRequest.class.getMethod("sendHead"); + } + REQUEST_WRITE_HEAD = ReflectionUtils.getMethodInvoker(HttpClientRequest.class, writeHeadMethod, false); } catch (Exception ex) { // Fail here as the method isn't available and this HttpClient wouldn't be usable anyway. throw LOGGER.logExceptionAsError(new IllegalStateException(ex)); @@ -288,7 +299,7 @@ private void sendBody(ContextView contextView, HttpRequest azureRequest, Progres writeOnce.run(); }); long headerWrite = writeWatcher.start(); - vertxRequest.sendHead().onSuccess(ignored -> writeWatcher.pause(headerWrite)).onFailure(promise::tryFail); + writeHead(vertxRequest).onSuccess(ignored -> writeWatcher.pause(headerWrite)).onFailure(promise::tryFail); } else { writeBody(contextView, azureRequest, progressReporter, vertxRequest, promise, body, writeWatcher); } @@ -339,6 +350,15 @@ private void writeBody(ContextView contextView, HttpRequest azureRequest, Progre } } + @SuppressWarnings("unchecked") + private static Future writeHead(HttpClientRequest vertxRequest) { + try { + return (Future) REQUEST_WRITE_HEAD.invokeWithArguments(vertxRequest); + } catch (Exception ex) { + return Future.failedFuture(ex); + } + } + private static void resetRequest(HttpClientRequest vertxRequest, long code, Throwable cause) { try { REQUEST_RESET.invokeWithArguments(vertxRequest, code, cause); diff --git a/sdk/core/azure-core-http-vertx/src/test/java/com/azure/core/http/vertx/VertxHttpClientTimeoutTests.java b/sdk/core/azure-core-http-vertx/src/test/java/com/azure/core/http/vertx/VertxHttpClientTimeoutTests.java index 1e0c8cc4e1f53..93d882faeba25 100644 --- a/sdk/core/azure-core-http-vertx/src/test/java/com/azure/core/http/vertx/VertxHttpClientTimeoutTests.java +++ b/sdk/core/azure-core-http-vertx/src/test/java/com/azure/core/http/vertx/VertxHttpClientTimeoutTests.java @@ -96,6 +96,31 @@ public void cancelledRequestReleasesConnection(boolean bufferingResponse) throws } } + @Test + public void cancelledUploadCancelsBodyAndReleasesConnection() throws Exception { + try (TimeoutTestServer server = new TimeoutTestServer()) { + CompletableFuture cancelled = new CompletableFuture<>(); + HttpRequest request = server.request("/hang") + .setHttpMethod(HttpMethod.POST) + .setBody(Flux.just(ByteBuffer.wrap(new byte[] { 1 })) + .concatWith(Flux.never()) + .doOnCancel(() -> cancelled.complete(null))); + HttpClient client = server.client(Duration.ZERO); + CompletableFuture pending = client.send(request).toFuture(); + + try { + assertNotNull(server.received.get(TEST_TIMEOUT.toMillis(), TimeUnit.MILLISECONDS)); + assertFalse(pending.isDone()); + assertTrue(pending.cancel(true)); + + cancelled.get(TEST_TIMEOUT.toMillis(), TimeUnit.MILLISECONDS); + assertFastRequestSucceeds(client, server); + } finally { + pending.cancel(true); + } + } + } + @Test public void cancelledQueuedRequestDoesNotHoldConnection() throws Exception { try (TimeoutTestServer server = new TimeoutTestServer()) { diff --git a/sdk/core/version-overrides-vertx-matrix.json b/sdk/core/version-overrides-vertx-matrix.json index 971463e1f7cea..b07ef87477d9c 100644 --- a/sdk/core/version-overrides-vertx-matrix.json +++ b/sdk/core/version-overrides-vertx-matrix.json @@ -19,7 +19,10 @@ } }, "VersionOverride": [ - "vertx_5.0" + "vertx_4.5", + "vertx_5.0", + "vertx_5.1", + "vertx_5.2" ] } } diff --git a/sdk/template/azure-template-stress/pom.xml b/sdk/template/azure-template-stress/pom.xml index f3e7c97e91ce6..c850845f6f1f2 100644 --- a/sdk/template/azure-template-stress/pom.xml +++ b/sdk/template/azure-template-stress/pom.xml @@ -59,7 +59,7 @@ io.vertx vertx-codegen - 4.5.32 + 4.5.35 provided @@ -98,7 +98,7 @@ io.opentelemetry.instrumentation:opentelemetry-runtime-telemetry:[2.31.1-alpha] io.opentelemetry.instrumentation:opentelemetry-logback-appender-1.0:[2.31.1-alpha] ch.qos.logback:logback-classic:[1.3.14] - io.vertx:vertx-codegen:[4.5.32] + io.vertx:vertx-codegen:[4.5.35] From e321055950228f153fee46e17d857cfdac51ff1e Mon Sep 17 00:00:00 2001 From: vcolin7 Date: Wed, 21 Oct 2026 04:53:33 -0700 Subject: [PATCH 06/22] Fix Batch bulk task retry race (#50881) * Fix Batch bulk task retry race * Updated versions and changelog --- sdk/batch/azure-compute-batch/CHANGELOG.md | 4 ++ .../implementation/task/TaskManager.java | 4 +- .../azure/compute/batch/TaskManagerTests.java | 70 ++++++++++++++++--- 3 files changed, 68 insertions(+), 10 deletions(-) diff --git a/sdk/batch/azure-compute-batch/CHANGELOG.md b/sdk/batch/azure-compute-batch/CHANGELOG.md index 0055defbb99c8..d682f52820d8a 100644 --- a/sdk/batch/azure-compute-batch/CHANGELOG.md +++ b/sdk/batch/azure-compute-batch/CHANGELOG.md @@ -16,6 +16,10 @@ - Replaced the public `BatchFileProperties(HttpHeaders)` constructor with a static factory `BatchFileProperties.fromHeaders(HttpHeaders)`. +### Bugs Fixed + +- Fixed a race condition that could cause bulk task creation to return before retrying tasks with server errors. + ### Other Changes This is the first generally available release of the `azure-compute-batch` library. It includes all features and breaking changes introduced in `1.0.0-beta.6`. diff --git a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/implementation/task/TaskManager.java b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/implementation/task/TaskManager.java index 7261cdff97de3..a4a99771514dc 100644 --- a/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/implementation/task/TaskManager.java +++ b/sdk/batch/azure-compute-batch/src/main/java/com/azure/compute/batch/implementation/task/TaskManager.java @@ -220,8 +220,8 @@ public static void createTasks(TaskSubmitter taskSubmitter, String jobId, List semaphoreThreads = new ArrayList<>(); Exception innerException = null; - // Continue looping while there are still tasks left to submit OR while any active threads are still processing tasks. - while (!pendingList.isEmpty() || taskSemaphore.availablePermits() < threadNumber) { + // Check workers first so tasks requeued before their permits are released cannot be missed. + while (taskSemaphore.availablePermits() < threadNumber || !pendingList.isEmpty()) { try { if (taskSemaphore.tryAcquire(30, TimeUnit.SECONDS)) { if (!pendingList.isEmpty()) { diff --git a/sdk/batch/azure-compute-batch/src/test/java/com/azure/compute/batch/TaskManagerTests.java b/sdk/batch/azure-compute-batch/src/test/java/com/azure/compute/batch/TaskManagerTests.java index 186a7f90baadb..60af009a5c335 100644 --- a/sdk/batch/azure-compute-batch/src/test/java/com/azure/compute/batch/TaskManagerTests.java +++ b/sdk/batch/azure-compute-batch/src/test/java/com/azure/compute/batch/TaskManagerTests.java @@ -4,19 +4,35 @@ package com.azure.compute.batch; import com.azure.compute.batch.implementation.task.TaskManager; +import com.azure.compute.batch.implementation.task.TaskSubmitter; import com.azure.compute.batch.models.BatchTaskBulkCreateOptions; import com.azure.compute.batch.models.BatchTaskCreateParameters; import com.azure.compute.batch.models.CreateTasksErrorException; -import org.junit.jupiter.api.*; +import org.junit.jupiter.api.RepeatedTest; +import org.junit.jupiter.api.Test; import org.junit.jupiter.api.parallel.Execution; import org.junit.jupiter.api.parallel.ExecutionMode; import org.junit.jupiter.api.parallel.Isolated; - -import java.util.*; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.ValueSource; + +import java.io.IOException; +import java.util.Arrays; +import java.util.Collections; +import java.util.HashMap; +import java.util.HashSet; +import java.util.List; +import java.util.Map; +import java.util.Set; import java.util.stream.Collectors; import java.util.stream.IntStream; -import static org.junit.jupiter.api.Assertions.*; +import static org.junit.jupiter.api.Assertions.assertDoesNotThrow; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertSame; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; @Execution(ExecutionMode.SAME_THREAD) @Isolated @@ -28,7 +44,7 @@ private static List makeTasks(String prefix, int coun .collect(Collectors.toList()); } - private static void runCreateTasks(FakeTaskSubmitter submitter, List tasks) { + private static void runCreateTasks(TaskSubmitter submitter, List tasks) { TaskManager.createTasks(submitter, "job-1", tasks, new BatchTaskBulkCreateOptions().setMaxConcurrency(4)); } @@ -44,11 +60,11 @@ public void serverErrorsAreRetriedUntilSuccessNoCap() { assertDoesNotThrow(() -> runCreateTasks(fake, tasks)); - assertTrue(fake.getSubmissionCount("A") > 1, "A should have been retried at least once"); + assertEquals(11, fake.getSubmissionCount("A"), "A should succeed after ten retries"); assertEquals(1, fake.getSubmissionCount("B"), "B should submit once"); } - @Test + @RepeatedTest(1000) public void successAfterOneServerErrorDidRetry() { Map serverErrors = new HashMap<>(); serverErrors.put("X", 1); // one failure then success @@ -57,7 +73,45 @@ public void successAfterOneServerErrorDidRetry() { List tasks = Collections.singletonList(new BatchTaskCreateParameters("X", "echo X")); assertDoesNotThrow(() -> runCreateTasks(fake, tasks)); - assertTrue(fake.getSubmissionCount("X") >= 2, "X should have been retried at least once"); + assertEquals(2, fake.getSubmissionCount("X"), "X should succeed after one retry"); + } + + @ParameterizedTest + @ValueSource(ints = { 1, 4 }) + public void retriesAcrossMultipleChunks(int maxConcurrency) { + List tasks = makeTasks("T", 201); + Map serverErrors = new HashMap<>(); + tasks.forEach(task -> serverErrors.put(task.getId(), 1)); + FakeTaskSubmitter fake = new FakeTaskSubmitter(Collections.emptySet(), serverErrors, 0); + + assertDoesNotThrow(() -> TaskManager.createTasks(fake, "job-1", tasks, + new BatchTaskBulkCreateOptions().setMaxConcurrency(maxConcurrency))); + + tasks.forEach(task -> assertEquals(2, fake.getSubmissionCount(task.getId()), + task.getId() + " should succeed after one retry")); + } + + @RepeatedTest(100) + public void submissionExceptionIsPropagated() { + RuntimeException expected = new IllegalStateException("Submission failed"); + TaskSubmitter submitter = (jobId, taskCollection) -> { + throw expected; + }; + + assertSame(expected, assertThrows(IllegalStateException.class, + () -> runCreateTasks(submitter, Collections.singletonList(new BatchTaskCreateParameters("X", "echo X"))))); + } + + @Test + public void checkedSubmissionExceptionIsPropagated() { + IOException expected = new IOException("Submission failed"); + TaskSubmitter submitter = (jobId, taskCollection) -> { + throw expected; + }; + + RuntimeException actual = assertThrows(RuntimeException.class, + () -> runCreateTasks(submitter, Collections.singletonList(new BatchTaskCreateParameters("X", "echo X")))); + assertSame(expected, actual.getCause()); } @Test From 70f418743102352ad58fc288e7893666d9e51f48 Mon Sep 17 00:00:00 2001 From: "azure-sdk-automation[bot]" <191533747+azure-sdk-automation[bot]@users.noreply.github.com> Date: Wed, 21 Oct 2026 11:01:51 -0400 Subject: [PATCH 07/22] Configurations: 'specification/horizondb/resource-manager/Microsoft.HorizonDb/HorizonDb/tspconfig.yaml', and CommitSHA: '90e63e5fe2c596e8bd807aad7dd9d62cee1746dd' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6964257 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. (#50831) Co-authored-by: azure-sdk Co-authored-by: Weidong Xu --- .../CHANGELOG.md | 564 +++- .../azure-resourcemanager-horizondb/README.md | 4 +- .../azure-resourcemanager-horizondb/SAMPLE.md | 2524 ++++++++++++++--- .../azure-resourcemanager-horizondb/pom.xml | 2 +- .../horizondb/HorizonDbManager.java | 368 ++- .../fluent/AuthenticationsClient.java | 57 + .../horizondb/fluent/CapabilitiesClient.java | 111 + ... ChangeDataCaptureCapabilitiesClient.java} | 337 +-- ...ChangeDataCaptureConfigurationsClient.java | 506 ++++ .../ChangeDataCaptureDestinationsClient.java | 627 ++++ ...lustersClient.java => ClustersClient.java} | 430 ++- .../fluent/DefaultParameterGroupsClient.java | 118 + .../horizondb/fluent/EndpointsClient.java | 132 + ...esClient.java => FirewallRulesClient.java} | 155 +- .../fluent/HorizonDbManagementClient.java | 139 +- .../fluent/IdentityAssignmentsClient.java | 387 +++ .../LogCaptureConfigurationsClient.java | 250 ++ .../horizondb/fluent/LogFilesClient.java | 184 ++ .../fluent/MaintenanceEventsClient.java | 408 +++ ...> MicrosoftEntraAdministratorsClient.java} | 211 +- .../MicrosoftEntraAuthenticationsClient.java | 347 +++ ...zonDbPoolsClient.java => NodesClient.java} | 58 +- ...Client.java => ParameterGroupsClient.java} | 245 +- .../fluent/PasswordAuthenticationsClient.java | 338 +++ .../horizondb/fluent/PoolsClient.java | 1201 ++++++++ ... => PrivateEndpointConnectionsClient.java} | 107 +- ...t.java => PrivateLinkResourcesClient.java} | 32 +- ...eChangeDataCaptureIdentityResultInner.java | 109 + .../fluent/models/AuthenticationInner.java | 145 + .../fluent/models/CapabilityInner.java | 144 + .../ChangeDataCaptureCapabilityInner.java | 179 ++ .../ChangeDataCaptureConfigurationInner.java | 179 ++ .../ChangeDataCaptureDestinationInner.java | 179 ++ ...nDbClusterInner.java => ClusterInner.java} | 74 +- ...r.java => DefaultParameterGroupInner.java} | 55 +- .../fluent/models/EndpointInner.java | 146 + ...plicaInner.java => FirewallRuleInner.java} | 42 +- ...rameterGroupConnectionPropertiesInner.java | 107 - .../models/IdentityAssignmentInner.java | 178 ++ ...java => LogCaptureConfigurationInner.java} | 38 +- .../models/LogFileDownloadUrlInner.java | 97 + .../horizondb/fluent/models/LogFileInner.java | 144 + .../MaintenanceEventActionResponseInner.java | 198 ++ .../fluent/models/MaintenanceEventInner.java | 144 + .../MicrosoftEntraAdministratorInner.java | 147 + .../MicrosoftEntraAuthenticationInner.java | 157 + .../horizondb/fluent/models/NodeInner.java | 144 + ...rameterGroupConnectionPropertiesInner.java | 76 + ...oupInner.java => ParameterGroupInner.java} | 49 +- .../models/PasswordAuthenticationInner.java | 158 ++ ...HorizonDbPoolInner.java => PoolInner.java} | 64 +- ...ner.java => PrivateLinkResourceInner.java} | 32 +- .../horizondb/fluent/models/package-info.java | 2 +- .../horizondb/fluent/package-info.java | 2 +- ...teChangeDataCaptureIdentityResultImpl.java | 40 + ...rtiesImpl.java => AuthenticationImpl.java} | 31 +- .../AuthenticationsClientImpl.java | 267 ++ .../implementation/AuthenticationsImpl.java | 45 + .../CapabilitiesClientImpl.java | 340 +++ .../implementation/CapabilitiesImpl.java | 62 + .../implementation/CapabilityImpl.java | 49 + ...ngeDataCaptureCapabilitiesClientImpl.java} | 798 +++--- .../ChangeDataCaptureCapabilitiesImpl.java | 122 + ...a => ChangeDataCaptureCapabilityImpl.java} | 27 +- .../ChangeDataCaptureConfigurationImpl.java | 147 + ...geDataCaptureConfigurationsClientImpl.java | 1041 +++++++ .../ChangeDataCaptureConfigurationsImpl.java | 158 ++ .../ChangeDataCaptureDestinationImpl.java | 146 + ...angeDataCaptureDestinationsClientImpl.java | 1268 +++++++++ .../ChangeDataCaptureDestinationsImpl.java | 183 ++ ...zonDbClusterImpl.java => ClusterImpl.java} | 102 +- ...lientImpl.java => ClustersClientImpl.java} | 869 +++--- ...nDbClustersImpl.java => ClustersImpl.java} | 97 +- .../DefaultParameterGroupImpl.java | 50 + .../DefaultParameterGroupsClientImpl.java | 363 +++ .../DefaultParameterGroupsImpl.java | 63 + .../implementation/EndpointImpl.java | 49 + .../implementation/EndpointsClientImpl.java | 371 +++ .../implementation/EndpointsImpl.java | 64 + .../implementation/FirewallRuleImpl.java | 108 + ...Impl.java => FirewallRulesClientImpl.java} | 318 +-- ...lRulesImpl.java => FirewallRulesImpl.java} | 55 +- .../HorizonDbAdministratorImpl.java | 146 - .../HorizonDbFirewallRuleImpl.java | 136 - .../HorizonDbManagementClientImpl.java | 338 ++- .../implementation/HorizonDbPoolsImpl.java | 64 - ...rizonDbPrivateEndpointConnectionsImpl.java | 100 - .../HorizonDbPrivateLinkResourcesImpl.java | 69 - .../implementation/HorizonDbReplicaImpl.java | 144 - .../IdentityAssignmentImpl.java | 114 + .../IdentityAssignmentsClientImpl.java | 838 ++++++ .../IdentityAssignmentsImpl.java | 180 ++ .../LogCaptureConfigurationImpl.java | 50 + .../LogCaptureConfigurationsClientImpl.java | 600 ++++ .../LogCaptureConfigurationsImpl.java | 90 + .../LogFileDownloadUrlImpl.java | 37 + .../horizondb/implementation/LogFileImpl.java | 49 + .../implementation/LogFilesClientImpl.java | 454 +++ .../implementation/LogFilesImpl.java | 84 + .../MaintenanceEventActionResponseImpl.java | 58 + .../implementation/MaintenanceEventImpl.java | 50 + .../MaintenanceEventsClientImpl.java | 873 ++++++ .../implementation/MaintenanceEventsImpl.java | 116 + .../MicrosoftEntraAdministratorImpl.java | 109 + ...crosoftEntraAdministratorsClientImpl.java} | 391 +-- ... => MicrosoftEntraAdministratorsImpl.java} | 78 +- .../MicrosoftEntraAuthenticationImpl.java | 50 + ...crosoftEntraAuthenticationsClientImpl.java | 619 ++++ .../MicrosoftEntraAuthenticationsImpl.java | 98 + .../horizondb/implementation/NodeImpl.java | 49 + ...lsClientImpl.java => NodesClientImpl.java} | 188 +- .../horizondb/implementation/NodesImpl.java | 63 + ...arameterGroupConnectionPropertiesImpl.java | 32 + ...GroupImpl.java => ParameterGroupImpl.java} | 71 +- ...pl.java => ParameterGroupsClientImpl.java} | 685 ++--- ...oupsImpl.java => ParameterGroupsImpl.java} | 95 +- .../PasswordAuthenticationImpl.java | 50 + .../PasswordAuthenticationsClientImpl.java | 608 ++++ .../PasswordAuthenticationsImpl.java | 97 + .../horizondb/implementation/PoolImpl.java | 187 ++ .../implementation/PoolsClientImpl.java | 2068 ++++++++++++++ ...izonDbReplicasImpl.java => PoolsImpl.java} | 149 +- ...PrivateEndpointConnectionResourceImpl.java | 98 +- ...PrivateEndpointConnectionsClientImpl.java} | 206 +- .../PrivateEndpointConnectionsImpl.java | 165 ++ ...Impl.java => PrivateLinkResourceImpl.java} | 12 +- ...va => PrivateLinkResourcesClientImpl.java} | 108 +- .../PrivateLinkResourcesImpl.java | 65 + ...ult.java => AuthenticationListResult.java} | 38 +- ...tResult.java => CapabilityListResult.java} | 36 +- ...hangeDataCaptureCapabilityListResult.java} | 43 +- ...ngeDataCaptureConfigurationListResult.java | 98 + ...angeDataCaptureDestinationListResult.java} | 42 +- .../models/ClusterListResult.java | 95 + ...a => DefaultParameterGroupListResult.java} | 40 +- .../models/EndpointListResult.java | 95 + .../models/FirewallRuleListResult.java | 95 + ...erGroupConnectionPropertiesListResult.java | 99 - .../models/IdentityAssignmentListResult.java | 96 + ...=> LogCaptureConfigurationListResult.java} | 40 +- .../models/LogFileListResult.java | 95 + ...t.java => MaintenanceEventListResult.java} | 38 +- ...MicrosoftEntraAdministratorListResult.java | 98 + .../implementation/models/NodeListResult.java | 95 + ...gedParameterGroupConnectionProperties.java | 98 + .../models/ParameterGroupListResult.java | 96 + .../implementation/models/PoolListResult.java | 95 + .../models/PrivateLinkResourceListResult.java | 97 + .../implementation/package-info.java | 2 +- ...ivateChangeDataCaptureIdentityRequest.java | 124 + ...tivateChangeDataCaptureIdentityResult.java | 42 + .../models/AiModelManagementStatus.java | 51 + ...HorizonDbPool.java => Authentication.java} | 20 +- .../models/AuthenticationProperties.java | 91 + .../horizondb/models/Authentications.java | 38 + .../horizondb/models/BackupProperties.java | 139 + .../BackupPropertiesForPatchUpdate.java | 86 + .../horizondb/models/Capabilities.java | 63 + .../horizondb/models/Capability.java | 55 + .../models/CapabilityProperties.java | 108 + .../models/ChangeDataCaptureCapabilities.java | 151 + .../models/ChangeDataCaptureCapability.java | 65 + ...geDataCaptureCapabilityForPatchUpdate.java | 89 + ...ChangeDataCaptureCapabilityProperties.java | 255 ++ ...ureCapabilityPropertiesForPatchUpdate.java | 123 + ...va => ChangeDataCaptureConfiguration.java} | 71 +- ...ataCaptureConfigurationForPatchUpdate.java | 89 + ...ngeDataCaptureConfigurationProperties.java | 301 ++ ...ConfigurationPropertiesForPatchUpdate.java | 90 + ...a => ChangeDataCaptureConfigurations.java} | 78 +- .../models/ChangeDataCaptureDesiredState.java | 51 + ...java => ChangeDataCaptureDestination.java} | 71 +- .../ChangeDataCaptureDestinationDetails.java | 133 + ...eDataCaptureDestinationEffectiveState.java | 78 + ...eDataCaptureDestinationForPatchUpdate.java | 89 + ...hangeDataCaptureDestinationProperties.java | 207 ++ ...reDestinationPropertiesForPatchUpdate.java | 90 + .../ChangeDataCaptureDestinationType.java | 46 + .../models/ChangeDataCaptureDestinations.java | 187 ++ .../ChangeDataCaptureEffectiveState.java | 71 + ...geDataCaptureEngineConfigurationState.java | 62 + .../ChangeDataCaptureExtensionState.java | 71 + .../ChangeDataCaptureExtensionStatus.java | 108 + ...ngeDataCaptureIdentityActivationState.java | 67 + ...taCaptureIdentityAssignmentProperties.java | 220 ++ ...ngeDataCaptureIdentityAssignmentState.java | 62 + ...ngeDataCaptureIdentityValidationState.java | 62 + .../ChangeDataCapturePrerequisiteStatus.java | 95 + .../models/ChangeDataCaptureProtocol.java | 46 + ...angeDataCaptureReadWriteEndpointState.java | 52 + ...ngeDataCaptureReplicationArchitecture.java | 57 + .../ChangeDataCaptureReplicationState.java | 86 + .../ChangeDataCaptureReplicationStatus.java | 114 + .../models/ChangeDataCaptureStatus.java | 90 + ...ChangeDataCaptureTopologyBindingState.java | 67 + ...hangeDataCaptureTopologyBindingStatus.java | 128 + .../models/ChangeDataCaptureUsageProfile.java | 46 + .../{HorizonDbCluster.java => Cluster.java} | 143 +- .../horizondb/models/ClusterCapability.java | 115 + .../horizondb/models/ClusterCreateMode.java | 51 + .../models/ClusterFeatureCapability.java | 74 + ...Update.java => ClusterForPatchUpdate.java} | 63 +- .../horizondb/models/ClusterProperties.java | 442 +++ .../ClusterPropertiesForPatchUpdate.java | 181 ++ .../horizondb/models/ClusterState.java | 66 + .../{HorizonDbClusters.java => Clusters.java} | 111 +- .../models/ComputeGenerationCapability.java | 113 + .../models/ComputeModelCapability.java | 99 + .../models/ComputeProcessorCapability.java | 93 + .../models/ComputeProcessorType.java | 51 + .../models/ComputeSizeCapability.java | 90 + .../horizondb/models/CreateModeCluster.java | 56 - .../horizondb/models/CreateModePool.java | 51 - .../models/DefaultParameterGroup.java | 55 + .../DefaultParameterGroupProperties.java | 133 + .../models/DefaultParameterGroups.java | 66 + .../horizondb/models/Endpoint.java | 55 + .../horizondb/models/EndpointProperties.java | 141 + .../horizondb/models/EndpointRole.java | 52 + .../horizondb/models/EndpointScope.java | 51 + .../horizondb/models/Endpoints.java | 74 + .../models/FabricDestinationDetails.java | 122 + .../horizondb/models/FirewallRule.java | 138 + ...rties.java => FirewallRuleProperties.java} | 64 +- ...bFirewallRules.java => FirewallRules.java} | 59 +- .../horizondb/models/GeoRedundancyState.java | 51 + .../models/HorizonDbAdministrator.java | 189 -- .../models/HorizonDbAdministratorAdd.java | 87 - .../HorizonDbAdministratorProperties.java | 150 - ...orizonDbAdministratorPropertiesForAdd.java | 152 - .../models/HorizonDbClusterAuthConfig.java | 143 - .../HorizonDbClusterDataEncryption.java | 222 ++ ...DbClusterDataEncryptionForPatchUpdate.java | 172 ++ .../HorizonDbClusterDataEncryptionType.java | 52 + .../HorizonDbClusterEncryptionKeyStatus.java | 52 + .../models/HorizonDbClusterIdentityType.java | 51 + ...orizonDbClusterManagedServiceIdentity.java | 146 + .../models/HorizonDbClusterMirroring.java | 118 - ...terParameterGroupConnectionProperties.java | 133 - .../models/HorizonDbClusterProperties.java | 581 ---- ...izonDbClusterPropertiesForPatchUpdate.java | 234 -- .../models/HorizonDbComputeModel.java | 169 -- .../models/HorizonDbComputeModelType.java | 51 - ...nDbParameterGroupConnectionProperties.java | 41 - .../HorizonDbParameterGroupProperties.java | 207 -- ...arameterGroupPropertiesForPatchUpdate.java | 147 - .../models/HorizonDbPoolProperties.java | 155 - .../models/HorizonDbReplicaProperties.java | 162 -- ...izonDbReplicaPropertiesForPatchUpdate.java | 88 - .../horizondb/models/IdentityAssignment.java | 149 + ...Replicas.java => IdentityAssignments.java} | 81 +- .../models/IdentityValidationStatus.java | 111 + .../models/LogCaptureConfiguration.java | 55 + ...LogCaptureConfigurationForPatchUpdate.java | 89 + .../LogCaptureConfigurationProperties.java | 113 + ...ConfigurationPropertiesForPatchUpdate.java | 120 + .../models/LogCaptureConfigurations.java | 100 + .../horizondb/models/LogCaptureState.java | 51 + .../horizondb/models/LogFile.java | 55 + .../horizondb/models/LogFileDownloadUrl.java | 34 + .../horizondb/models/LogFileProperties.java | 208 ++ .../horizondb/models/LogFileType.java | 46 + .../horizondb/models/LogFiles.java | 97 + .../horizondb/models/MaintenanceEvent.java | 55 + .../MaintenanceEventActionResponse.java | 70 + .../models/MaintenanceEventProperties.java | 271 ++ .../MaintenanceEventRescheduleRequest.java | 94 + .../models/MaintenanceEventStatus.java | 66 + .../horizondb/models/MaintenanceEvents.java | 141 + .../horizondb/models/MaintenanceType.java | 46 + .../models/ManagedServiceIdentity.java | 154 - .../models/ManagedServiceIdentityType.java | 62 - .../models/MicrosoftEntraAdministrator.java | 137 + ...va => MicrosoftEntraAdministratorAdd.java} | 42 +- ...MicrosoftEntraAdministratorProperties.java | 154 + ...oftEntraAdministratorPropertiesForAdd.java | 155 + .../models/MicrosoftEntraAdministrators.java | 160 ++ .../models/MicrosoftEntraAuthentication.java | 55 + ...softEntraAuthenticationForPatchUpdate.java | 89 + ...icrosoftEntraAuthenticationProperties.java | 106 + ...uthenticationPropertiesForPatchUpdate.java | 91 + .../models/MicrosoftEntraAuthentications.java | 110 + .../horizondb/models/Network.java | 35 +- .../models/NetworkForPatchUpdate.java | 88 + .../horizondb/models/Node.java | 55 + .../horizondb/models/NodeProperties.java | 90 + .../horizondb/models/NodeRole.java | 56 + .../{HorizonDbPools.java => Nodes.java} | 32 +- .../models/ParameterApplyMethod.java | 55 + ...arameterGroup.java => ParameterGroup.java} | 58 +- .../ParameterGroupConnectionProperties.java | 26 + ...java => ParameterGroupForPatchUpdate.java} | 41 +- .../models/ParameterGroupProperties.java | 173 ++ ...arameterGroupPropertiesForPatchUpdate.java | 118 + .../models/ParameterGroupSyncStatus.java | 62 + ...ameterGroups.java => ParameterGroups.java} | 85 +- .../horizondb/models/ParameterProperties.java | 41 +- .../models/ParameterValueSource.java | 51 + .../models/PasswordAuthentication.java | 55 + .../PasswordAuthenticationForPatchUpdate.java | 89 + .../PasswordAuthenticationProperties.java | 170 ++ ...uthenticationPropertiesForPatchUpdate.java | 137 + .../models/PasswordAuthentications.java | 107 + .../horizondb/models/Pool.java | 323 +++ .../horizondb/models/PoolCapability.java | 117 + .../horizondb/models/PoolComputeModel.java | 171 ++ .../PoolComputeModelForPatchUpdate.java | 191 ++ .../models/PoolComputeModelType.java | 46 + .../models/PoolFeatureCapability.java | 74 + .../horizondb/models/PoolForPatchUpdate.java | 115 + .../models/PoolHighAvailability.java | 89 + .../models/PoolHighAvailabilityMode.java | 58 + .../models/PoolHighAvailabilityPatch.java | 89 + .../models/PoolParameterGroupReference.java | 152 + ...ParameterGroupReferenceForPatchUpdate.java | 126 + .../horizondb/models/PoolProperties.java | 253 ++ .../models/PoolPropertiesForPatchUpdate.java | 230 ++ .../horizondb/models/PoolState.java | 86 + .../horizondb/models/Pools.java | 292 ++ .../models/PostgreSqlCapabilityVersion.java | 51 + .../horizondb/models/PostgreSqlVersion.java | 52 + .../models/PostgreSqlVersionCapability.java | 97 + .../horizondb/models/PrincipalTypes.java | 10 +- .../PrivateEndpointConnectionResource.java | 134 + ...s.java => PrivateEndpointConnections.java} | 66 +- ...Resource.java => PrivateLinkResource.java} | 10 +- ...sources.java => PrivateLinkResources.java} | 20 +- .../ProvisionedComputeModelCapability.java | 114 + .../horizondb/models/ProvisioningState.java | 10 +- .../models/ReadWritePoolProperties.java | 83 + .../horizondb/models/ReplicaRole.java | 51 - .../ScheduledMaintenanceManagementType.java | 46 + .../ScheduledMaintenanceProperties.java | 104 + ...edMaintenancePropertiesForPatchUpdate.java | 93 + .../horizondb/models/State.java | 91 - .../SystemScheduledMaintenanceProperties.java | 79 + .../horizondb/models/ZonePlacementPolicy.java | 51 - .../horizondb/models/package-info.java | 2 +- .../horizondb/package-info.java | 2 +- ...re-resourcemanager-horizondb_metadata.json | 2 +- .../proxy-config.json | 2 +- .../generated/AuthenticationsListSamples.java | 23 + .../generated/CapabilitiesGetSamples.java | 23 + .../generated/CapabilitiesListSamples.java | 23 + ...ureCapabilitiesCreateOrReplaceSamples.java | 32 + ...eDataCaptureCapabilitiesDeleteSamples.java | 24 + ...angeDataCaptureCapabilitiesGetSamples.java | 24 + ...ngeDataCaptureCapabilitiesListSamples.java | 24 + ...eDataCaptureCapabilitiesUpdateSamples.java | 30 + ...eConfigurationsCreateOrReplaceSamples.java | 35 + ...ataCaptureConfigurationsDeleteSamples.java | 24 + ...geDataCaptureConfigurationsGetSamples.java | 25 + ...eDataCaptureConfigurationsListSamples.java | 24 + ...ataCaptureConfigurationsUpdateSamples.java | 34 + ...reDestinationsActivateIdentitySamples.java | 30 + ...ureDestinationsCreateOrReplaceSamples.java | 33 + ...eDataCaptureDestinationsDeleteSamples.java | 24 + ...angeDataCaptureDestinationsGetSamples.java | 25 + ...ngeDataCaptureDestinationsListSamples.java | 24 + ...eDataCaptureDestinationsUpdateSamples.java | 34 + .../ClustersCreateOrReplaceSamples.java | 158 ++ ...amples.java => ClustersDeleteSamples.java} | 8 +- .../generated/ClustersFailoverSamples.java | 23 + .../ClustersGetByResourceGroupSamples.java | 54 + ...> ClustersListByResourceGroupSamples.java} | 8 +- .../generated/ClustersListSamples.java | 23 + .../generated/ClustersUpdateSamples.java | 72 + .../DefaultParameterGroupsGetSamples.java | 24 + ...upsListBySubscriptionAndRegionSamples.java | 23 + .../generated/EndpointsGetSamples.java | 38 + .../generated/EndpointsListSamples.java | 22 + .../FirewallRulesCreateOrReplaceSamples.java | 31 + .../generated/FirewallRulesDeleteSamples.java | 25 + .../generated/FirewallRulesGetSamples.java | 24 + .../generated/FirewallRulesListSamples.java | 23 + ...DbAdministratorsCreateOrUpdateSamples.java | 32 - .../HorizonDbAdministratorsDeleteSamples.java | 24 - .../HorizonDbAdministratorsGetSamples.java | 24 - .../HorizonDbAdministratorsListSamples.java | 24 - ...orizonDbClustersCreateOrUpdateSamples.java | 52 - ...onDbClustersGetByResourceGroupSamples.java | 23 - .../HorizonDbClustersListSamples.java | 23 - .../HorizonDbClustersRestartSamples.java | 22 - .../HorizonDbClustersStartSamples.java | 22 - .../HorizonDbClustersStopSamples.java | 22 - .../HorizonDbClustersUpdateSamples.java | 47 - ...nDbFirewallRulesCreateOrUpdateSamples.java | 31 - .../HorizonDbFirewallRulesDeleteSamples.java | 24 - .../HorizonDbFirewallRulesGetSamples.java | 24 - .../HorizonDbFirewallRulesListSamples.java | 23 - ...bParameterGroupsCreateOrUpdateSamples.java | 53 - ...ParameterGroupsListConnectionsSamples.java | 24 - ...nDbParameterGroupsListVersionsSamples.java | 24 - ...HorizonDbParameterGroupsUpdateSamples.java | 52 - ...bPrivateEndpointConnectionsGetSamples.java | 25 - ...PrivateEndpointConnectionsListSamples.java | 24 - ...ndpointConnectionsUpdateStatusSamples.java | 35 - ...rizonDbPrivateLinkResourcesGetSamples.java | 24 - ...izonDbPrivateLinkResourcesListSamples.java | 24 - ...orizonDbReplicasCreateOrUpdateSamples.java | 29 - .../HorizonDbReplicasDeleteSamples.java | 24 - .../HorizonDbReplicasGetSamples.java | 24 - .../HorizonDbReplicasListSamples.java | 23 - .../HorizonDbReplicasUpdateSamples.java | 32 - ...tityAssignmentsCreateOrReplaceSamples.java | 30 + .../IdentityAssignmentsDeleteSamples.java | 25 + .../IdentityAssignmentsGetSamples.java | 25 + .../IdentityAssignmentsListSamples.java | 24 + .../LogCaptureConfigurationsGetSamples.java | 25 + .../LogCaptureConfigurationsListSamples.java | 23 + ...LogCaptureConfigurationsUpdateSamples.java | 30 + .../generated/LogFilesGetSamples.java | 24 + .../LogFilesListDownloadUrlsSamples.java | 25 + .../generated/LogFilesListSamples.java | 22 + .../MaintenanceEventsApplyNowSamples.java | 25 + .../MaintenanceEventsGetSamples.java | 25 + .../MaintenanceEventsListSamples.java | 41 + .../MaintenanceEventsRescheduleSamples.java | 30 + ...aAdministratorsCreateOrReplaceSamples.java | 33 + ...osoftEntraAdministratorsDeleteSamples.java | 25 + ...icrosoftEntraAdministratorsGetSamples.java | 25 + ...crosoftEntraAdministratorsListSamples.java | 24 + ...AuthenticationsCreateOrReplaceSamples.java | 48 + ...crosoftEntraAuthenticationsGetSamples.java | 24 + ...softEntraAuthenticationsUpdateSamples.java | 48 + .../horizondb/generated/NodesGetSamples.java | 24 + .../horizondb/generated/NodesListSamples.java | 24 + .../generated/OperationsListSamples.java | 6 +- ...ParameterGroupsCreateOrReplaceSamples.java | 56 + ...java => ParameterGroupsDeleteSamples.java} | 10 +- ...meterGroupsGetByResourceGroupSamples.java} | 10 +- ...eterGroupsListByResourceGroupSamples.java} | 9 +- ...ParameterGroupsListConnectionsSamples.java | 24 + ...s.java => ParameterGroupsListSamples.java} | 8 +- .../ParameterGroupsUpdateSamples.java | 55 + ...AuthenticationsCreateOrReplaceSamples.java | 33 + .../PasswordAuthenticationsGetSamples.java | 24 + .../PasswordAuthenticationsUpdateSamples.java | 66 + .../PoolsCreateOrReplaceSamples.java | 47 + .../generated/PoolsDeleteSamples.java | 24 + ...lsGetSamples.java => PoolsGetSamples.java} | 11 +- ...ListSamples.java => PoolsListSamples.java} | 8 +- .../generated/PoolsRestartSamples.java | 24 + .../generated/PoolsStartSamples.java | 24 + .../horizondb/generated/PoolsStopSamples.java | 24 + .../generated/PoolsUpdateSamples.java | 128 + ...ointConnectionsApproveOrRejectSamples.java | 33 + ...vateEndpointConnectionsDeleteSamples.java} | 11 +- .../PrivateEndpointConnectionsGetSamples.java | 39 + ...PrivateEndpointConnectionsListSamples.java | 24 + .../PrivateLinkResourcesGetSamples.java | 24 + .../PrivateLinkResourcesListSamples.java | 23 + ...ChangeDataCaptureIdentityRequestTests.java | 30 + ...geDataCaptureIdentityResultInnerTests.java | 17 + .../generated/AuthenticationInnerTests.java | 17 + .../AuthenticationListResultTests.java | 19 + .../AuthenticationPropertiesTests.java | 17 + ...java => AuthenticationsListMockTests.java} | 12 +- .../BackupPropertiesForPatchUpdateTests.java | 25 + .../generated/BackupPropertiesTests.java | 30 + .../CapabilitiesGetWithResponseMockTests.java | 36 + .../generated/CapabilitiesListMockTests.java | 37 + .../generated/CapabilityInnerTests.java | 17 + .../generated/CapabilityListResultTests.java | 19 + .../generated/CapabilityPropertiesTests.java | 17 + ...aCaptureCapabilityForPatchUpdateTests.java | 33 + ...pabilityPropertiesForPatchUpdateTests.java | 32 + ...ptureConfigurationForPatchUpdateTests.java | 30 + ...gurationPropertiesForPatchUpdateTests.java | 29 + ...ngeDataCaptureDestinationDetailsTests.java | 28 + ...CaptureDestinationForPatchUpdateTests.java | 30 + ...tinationPropertiesForPatchUpdateTests.java | 29 + ...DestinationsActivateIdentityMockTests.java | 40 + ...ChangeDataCaptureExtensionStatusTests.java | 17 + ...ngeDataCapturePrerequisiteStatusTests.java | 17 + ...angeDataCaptureReplicationStatusTests.java | 17 + ...DataCaptureTopologyBindingStatusTests.java | 17 + .../generated/ClusterCapabilityTests.java | 17 + .../ClusterFeatureCapabilityTests.java | 16 + .../ComputeGenerationCapabilityTests.java | 17 + .../ComputeModelCapabilityTests.java | 16 + .../ComputeProcessorCapabilityTests.java | 17 + .../generated/ComputeSizeCapabilityTests.java | 17 + .../DefaultParameterGroupInnerTests.java | 23 + .../DefaultParameterGroupListResultTests.java | 24 + .../DefaultParameterGroupPropertiesTests.java | 23 + ...rameterGroupsGetWithResponseMockTests.java | 43 + ...sListBySubscriptionAndRegionMockTests.java | 43 + .../generated/EndpointInnerTests.java | 17 + .../generated/EndpointListResultTests.java | 19 + .../generated/EndpointPropertiesTests.java | 17 + .../EndpointsGetWithResponseMockTests.java | 37 + .../generated/EndpointsListMockTests.java | 37 + .../FabricDestinationDetailsTests.java | 26 + .../generated/FirewallRuleInnerTests.java | 34 + .../FirewallRuleListResultTests.java | 22 + .../FirewallRulePropertiesTests.java | 32 + ...irewallRulesCreateOrReplaceMockTests.java} | 27 +- ...irewallRulesGetWithResponseMockTests.java} | 16 +- ...s.java => FirewallRulesListMockTests.java} | 16 +- .../HorizonDbAdministratorAddTests.java | 35 - .../HorizonDbAdministratorInnerTests.java | 22 - ...HorizonDbAdministratorListResultTests.java | 23 - ...nDbAdministratorPropertiesForAddTests.java | 34 - ...HorizonDbAdministratorPropertiesTests.java | 22 - ...nDbClusterManagedServiceIdentityTests.java | 46 + .../HorizonDbClusterMirroringTests.java | 31 - ...rameterGroupConnectionPropertiesTests.java | 30 - .../generated/HorizonDbComputeModelTests.java | 36 - .../HorizonDbFirewallRuleInnerTests.java | 34 - .../HorizonDbFirewallRuleListResultTests.java | 22 - .../HorizonDbFirewallRulePropertiesTests.java | 32 - ...bFirewallRulesCreateOrUpdateMockTests.java | 46 - ...erGroupConnectionPropertiesInnerTests.java | 17 - ...upConnectionPropertiesListResultTests.java | 19 - ...onDbParameterGroupForPatchUpdateTests.java | 59 - .../HorizonDbParameterGroupInnerTests.java | 62 - ...orizonDbParameterGroupListResultTests.java | 26 - ...terGroupPropertiesForPatchUpdateTests.java | 40 - ...orizonDbParameterGroupPropertiesTests.java | 43 - ...arameterGroupsCreateOrUpdateMockTests.java | 71 - ...tByResourceGroupWithResponseMockTests.java | 45 - ...terGroupsListByResourceGroupMockTests.java | 45 - ...HorizonDbParameterGroupsListMockTests.java | 45 - ...bParameterGroupsListVersionsMockTests.java | 46 - .../generated/HorizonDbPoolInnerTests.java | 20 - .../HorizonDbPoolListResultTests.java | 21 - .../HorizonDbPoolPropertiesTests.java | 19 - ...orizonDbPrivateLinkResourceInnerTests.java | 19 - ...nDbPrivateLinkResourceListResultTests.java | 20 - .../HorizonDbReplicaForPatchUpdateTests.java | 28 - .../generated/HorizonDbReplicaInnerTests.java | 31 - .../HorizonDbReplicaListResultTests.java | 22 - ...bReplicaPropertiesForPatchUpdateTests.java | 27 - .../HorizonDbReplicaPropertiesTests.java | 30 - ...ptureConfigurationForPatchUpdateTests.java | 32 + .../LogCaptureConfigurationInnerTests.java | 21 + ...ogCaptureConfigurationListResultTests.java | 22 + ...gurationPropertiesForPatchUpdateTests.java | 31 + ...ogCaptureConfigurationPropertiesTests.java | 21 + ...nfigurationsGetWithResponseMockTests.java} | 15 +- ...ogCaptureConfigurationsListMockTests.java} | 15 +- ...gCaptureConfigurationsUpdateMockTests.java | 46 + .../LogFileDownloadUrlInnerTests.java | 21 + .../generated/LogFileInnerTests.java | 17 + .../generated/LogFileListResultTests.java | 19 + .../generated/LogFilePropertiesTests.java | 17 + .../LogFilesGetWithResponseMockTests.java | 37 + ...ListDownloadUrlsWithResponseMockTests.java | 40 + .../generated/LogFilesListMockTests.java | 37 + ...ntenanceEventActionResponseInnerTests.java | 27 + .../generated/MaintenanceEventInnerTests.java | 17 + .../MaintenanceEventListResultTests.java | 19 + .../MaintenanceEventPropertiesTests.java | 17 + ...aintenanceEventRescheduleRequestTests.java | 28 + .../MaintenanceEventsApplyNowMockTests.java | 45 + ...enanceEventsGetWithResponseMockTests.java} | 14 +- ...va => MaintenanceEventsListMockTests.java} | 14 +- .../MaintenanceEventsRescheduleMockTests.java | 49 + .../ManagedServiceIdentityTests.java | 45 - .../MicrosoftEntraAdministratorAddTests.java | 36 + ...MicrosoftEntraAdministratorInnerTests.java | 22 + ...softEntraAdministratorListResultTests.java | 23 + ...traAdministratorPropertiesForAddTests.java | 34 + ...softEntraAdministratorPropertiesTests.java | 22 + ...ministratorsCreateOrReplaceMockTests.java} | 28 +- ...ministratorsGetWithResponseMockTests.java} | 16 +- ...softEntraAdministratorsListMockTests.java} | 17 +- ...ntraAuthenticationForPatchUpdateTests.java | 30 + ...icrosoftEntraAuthenticationInnerTests.java | 29 + ...ticationPropertiesForPatchUpdateTests.java | 27 + ...oftEntraAuthenticationPropertiesTests.java | 28 + ...thenticationsCreateOrReplaceMockTests.java | 44 + ...henticationsGetWithResponseMockTests.java} | 13 +- ...ftEntraAuthenticationsUpdateMockTests.java | 44 + .../generated/NetworkForPatchUpdateTests.java | 26 + .../horizondb/generated/NetworkTests.java | 8 +- .../horizondb/generated/NodeInnerTests.java | 17 + .../generated/NodeListResultTests.java | 19 + .../generated/NodePropertiesTests.java | 16 + ...ava => NodesGetWithResponseMockTests.java} | 12 +- ...MockTests.java => NodesListMockTests.java} | 12 +- .../generated/OperationsListMockTests.java | 2 +- ...rameterGroupConnectionPropertiesTests.java | 19 + ...erGroupConnectionPropertiesInnerTests.java | 16 + .../ParameterGroupForPatchUpdateTests.java | 52 + .../generated/ParameterGroupInnerTests.java | 60 + .../ParameterGroupListResultTests.java | 26 + ...terGroupPropertiesForPatchUpdateTests.java | 38 + .../ParameterGroupPropertiesTests.java | 38 + ...rameterGroupsCreateOrReplaceMockTests.java | 70 + ...tByResourceGroupWithResponseMockTests.java | 45 + ...terGroupsListByResourceGroupMockTests.java | 45 + ...ameterGroupsListConnectionsMockTests.java} | 10 +- .../ParameterGroupsListMockTests.java | 44 + .../generated/ParameterPropertiesTests.java | 12 +- .../generated/PoolCapabilityTests.java | 17 + .../PoolComputeModelForPatchUpdateTests.java | 38 + .../generated/PoolComputeModelTests.java | 37 + .../generated/PoolFeatureCapabilityTests.java | 16 + .../generated/PoolForPatchUpdateTests.java | 83 + .../PoolHighAvailabilityPatchTests.java | 26 + .../generated/PoolHighAvailabilityTests.java | 26 + .../horizondb/generated/PoolInnerTests.java | 76 + .../generated/PoolListResultTests.java | 37 + ...eterGroupReferenceForPatchUpdateTests.java | 31 + .../PoolParameterGroupReferenceTests.java | 31 + .../PoolPropertiesForPatchUpdateTests.java | 64 + .../generated/PoolPropertiesTests.java | 57 + .../PoolsCreateOrReplaceMockTests.java | 84 + .../PoolsGetWithResponseMockTests.java | 52 + .../generated/PoolsListMockTests.java | 55 + .../generated/PoolsRestartMockTests.java | 51 + .../generated/PoolsStartMockTests.java | 49 + .../generated/PoolsStopMockTests.java | 52 + .../PostgreSqlVersionCapabilityTests.java | 17 + ...vateEndpointConnectionPropertiesTests.java | 20 +- ...eEndpointConnectionResourceInnerTests.java | 20 +- ...ointConnectionResourceListResultTests.java | 10 +- ...tConnectionsApproveOrRejectMockTests.java} | 31 +- ...tConnectionsGetWithResponseMockTests.java} | 13 +- ...vateEndpointConnectionsListMockTests.java} | 12 +- .../generated/PrivateEndpointTests.java | 2 +- .../PrivateLinkResourceInnerTests.java | 19 + .../PrivateLinkResourceListResultTests.java | 20 + .../PrivateLinkResourcePropertiesTests.java | 4 +- ...LinkResourcesGetWithResponseMockTests.java | 39 + ...=> PrivateLinkResourcesListMockTests.java} | 12 +- ...rivateLinkServiceConnectionStateTests.java | 20 +- ...rovisionedComputeModelCapabilityTests.java | 17 + .../ReadWritePoolPropertiesTests.java | 16 + ...ntenancePropertiesForPatchUpdateTests.java | 28 + .../ScheduledMaintenancePropertiesTests.java | 23 + ...emScheduledMaintenancePropertiesTests.java | 22 + .../generated/UserAssignedIdentityTests.java | 2 +- .../tsp-location.yaml | 2 +- 636 files changed, 49472 insertions(+), 11106 deletions(-) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/AuthenticationsClient.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/CapabilitiesClient.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/{HorizonDbReplicasClient.java => ChangeDataCaptureCapabilitiesClient.java} (62%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/ChangeDataCaptureConfigurationsClient.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/ChangeDataCaptureDestinationsClient.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/{HorizonDbClustersClient.java => ClustersClient.java} (60%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/DefaultParameterGroupsClient.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/EndpointsClient.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/{HorizonDbFirewallRulesClient.java => FirewallRulesClient.java} (72%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/IdentityAssignmentsClient.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/LogCaptureConfigurationsClient.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/LogFilesClient.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/MaintenanceEventsClient.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/{HorizonDbAdministratorsClient.java => MicrosoftEntraAdministratorsClient.java} (59%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/MicrosoftEntraAuthenticationsClient.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/{HorizonDbPoolsClient.java => NodesClient.java} (67%) rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/{HorizonDbParameterGroupsClient.java => ParameterGroupsClient.java} (71%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/PasswordAuthenticationsClient.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/PoolsClient.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/{HorizonDbPrivateEndpointConnectionsClient.java => PrivateEndpointConnectionsClient.java} (71%) rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/{HorizonDbPrivateLinkResourcesClient.java => PrivateLinkResourcesClient.java} (79%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/ActivateChangeDataCaptureIdentityResultInner.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/AuthenticationInner.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/CapabilityInner.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/ChangeDataCaptureCapabilityInner.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/ChangeDataCaptureConfigurationInner.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/ChangeDataCaptureDestinationInner.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/{HorizonDbClusterInner.java => ClusterInner.java} (62%) rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/{HorizonDbFirewallRuleInner.java => DefaultParameterGroupInner.java} (67%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/EndpointInner.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/{HorizonDbReplicaInner.java => FirewallRuleInner.java} (69%) delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/HorizonDbParameterGroupConnectionPropertiesInner.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/IdentityAssignmentInner.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/{HorizonDbAdministratorInner.java => LogCaptureConfigurationInner.java} (67%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/LogFileDownloadUrlInner.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/LogFileInner.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/MaintenanceEventActionResponseInner.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/MaintenanceEventInner.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/MicrosoftEntraAdministratorInner.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/MicrosoftEntraAuthenticationInner.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/NodeInner.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/ParameterGroupConnectionPropertiesInner.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/{HorizonDbParameterGroupInner.java => ParameterGroupInner.java} (67%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/PasswordAuthenticationInner.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/{HorizonDbPoolInner.java => PoolInner.java} (67%) rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/{HorizonDbPrivateLinkResourceInner.java => PrivateLinkResourceInner.java} (71%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ActivateChangeDataCaptureIdentityResultImpl.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/{HorizonDbParameterGroupConnectionPropertiesImpl.java => AuthenticationImpl.java} (56%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/AuthenticationsClientImpl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/AuthenticationsImpl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/CapabilitiesClientImpl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/CapabilitiesImpl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/CapabilityImpl.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/{HorizonDbReplicasClientImpl.java => ChangeDataCaptureCapabilitiesClientImpl.java} (61%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureCapabilitiesImpl.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/{HorizonDbPoolImpl.java => ChangeDataCaptureCapabilityImpl.java} (57%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureConfigurationImpl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureConfigurationsClientImpl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureConfigurationsImpl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureDestinationImpl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureDestinationsClientImpl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureDestinationsImpl.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/{HorizonDbClusterImpl.java => ClusterImpl.java} (56%) rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/{HorizonDbClustersClientImpl.java => ClustersClientImpl.java} (61%) rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/{HorizonDbClustersImpl.java => ClustersImpl.java} (60%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/DefaultParameterGroupImpl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/DefaultParameterGroupsClientImpl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/DefaultParameterGroupsImpl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/EndpointImpl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/EndpointsClientImpl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/EndpointsImpl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/FirewallRuleImpl.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/{HorizonDbFirewallRulesClientImpl.java => FirewallRulesClientImpl.java} (73%) rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/{HorizonDbFirewallRulesImpl.java => FirewallRulesImpl.java} (78%) delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbAdministratorImpl.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbFirewallRuleImpl.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbPoolsImpl.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbPrivateEndpointConnectionsImpl.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbPrivateLinkResourcesImpl.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbReplicaImpl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/IdentityAssignmentImpl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/IdentityAssignmentsClientImpl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/IdentityAssignmentsImpl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/LogCaptureConfigurationImpl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/LogCaptureConfigurationsClientImpl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/LogCaptureConfigurationsImpl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/LogFileDownloadUrlImpl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/LogFileImpl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/LogFilesClientImpl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/LogFilesImpl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/MaintenanceEventActionResponseImpl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/MaintenanceEventImpl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/MaintenanceEventsClientImpl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/MaintenanceEventsImpl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/MicrosoftEntraAdministratorImpl.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/{HorizonDbAdministratorsClientImpl.java => MicrosoftEntraAdministratorsClientImpl.java} (65%) rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/{HorizonDbAdministratorsImpl.java => MicrosoftEntraAdministratorsImpl.java} (65%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/MicrosoftEntraAuthenticationImpl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/MicrosoftEntraAuthenticationsClientImpl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/MicrosoftEntraAuthenticationsImpl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/NodeImpl.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/{HorizonDbPoolsClientImpl.java => NodesClientImpl.java} (69%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/NodesImpl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ParameterGroupConnectionPropertiesImpl.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/{HorizonDbParameterGroupImpl.java => ParameterGroupImpl.java} (60%) rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/{HorizonDbParameterGroupsClientImpl.java => ParameterGroupsClientImpl.java} (66%) rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/{HorizonDbParameterGroupsImpl.java => ParameterGroupsImpl.java} (56%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PasswordAuthenticationImpl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PasswordAuthenticationsClientImpl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PasswordAuthenticationsImpl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PoolImpl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PoolsClientImpl.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/{HorizonDbReplicasImpl.java => PoolsImpl.java} (58%) rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/{HorizonDbPrivateEndpointConnectionsClientImpl.java => PrivateEndpointConnectionsClientImpl.java} (75%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PrivateEndpointConnectionsImpl.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/{HorizonDbPrivateLinkResourceImpl.java => PrivateLinkResourceImpl.java} (71%) rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/{HorizonDbPrivateLinkResourcesClientImpl.java => PrivateLinkResourcesClientImpl.java} (77%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PrivateLinkResourcesImpl.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/{HorizonDbClusterListResult.java => AuthenticationListResult.java} (59%) rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/{HorizonDbPoolListResult.java => CapabilityListResult.java} (60%) rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/{HorizonDbAdministratorListResult.java => ChangeDataCaptureCapabilityListResult.java} (54%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/ChangeDataCaptureConfigurationListResult.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/{HorizonDbPrivateLinkResourceListResult.java => ChangeDataCaptureDestinationListResult.java} (61%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/ClusterListResult.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/{HorizonDbFirewallRuleListResult.java => DefaultParameterGroupListResult.java} (62%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/EndpointListResult.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/FirewallRuleListResult.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/HorizonDbParameterGroupConnectionPropertiesListResult.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/IdentityAssignmentListResult.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/{HorizonDbParameterGroupListResult.java => LogCaptureConfigurationListResult.java} (62%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/LogFileListResult.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/{HorizonDbReplicaListResult.java => MaintenanceEventListResult.java} (63%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/MicrosoftEntraAdministratorListResult.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/NodeListResult.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/PagedParameterGroupConnectionProperties.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/ParameterGroupListResult.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/PoolListResult.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/PrivateLinkResourceListResult.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ActivateChangeDataCaptureIdentityRequest.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ActivateChangeDataCaptureIdentityResult.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/AiModelManagementStatus.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/{HorizonDbPool.java => Authentication.java} (72%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/AuthenticationProperties.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Authentications.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/BackupProperties.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/BackupPropertiesForPatchUpdate.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Capabilities.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Capability.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/CapabilityProperties.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureCapabilities.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureCapability.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureCapabilityForPatchUpdate.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureCapabilityProperties.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureCapabilityPropertiesForPatchUpdate.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/{HorizonDbReplica.java => ChangeDataCaptureConfiguration.java} (58%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureConfigurationForPatchUpdate.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureConfigurationProperties.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureConfigurationPropertiesForPatchUpdate.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/{HorizonDbAdministrators.java => ChangeDataCaptureConfigurations.java} (60%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDesiredState.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/{HorizonDbFirewallRule.java => ChangeDataCaptureDestination.java} (58%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestinationDetails.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestinationEffectiveState.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestinationForPatchUpdate.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestinationProperties.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestinationPropertiesForPatchUpdate.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestinationType.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestinations.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureEffectiveState.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureEngineConfigurationState.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureExtensionState.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureExtensionStatus.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureIdentityActivationState.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureIdentityAssignmentProperties.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureIdentityAssignmentState.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureIdentityValidationState.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCapturePrerequisiteStatus.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureProtocol.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureReadWriteEndpointState.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureReplicationArchitecture.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureReplicationState.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureReplicationStatus.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureStatus.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureTopologyBindingState.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureTopologyBindingStatus.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureUsageProfile.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/{HorizonDbCluster.java => Cluster.java} (62%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ClusterCapability.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ClusterCreateMode.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ClusterFeatureCapability.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/{HorizonDbClusterForPatchUpdate.java => ClusterForPatchUpdate.java} (54%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ClusterProperties.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ClusterPropertiesForPatchUpdate.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ClusterState.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/{HorizonDbClusters.java => Clusters.java} (64%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ComputeGenerationCapability.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ComputeModelCapability.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ComputeProcessorCapability.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ComputeProcessorType.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ComputeSizeCapability.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/CreateModeCluster.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/CreateModePool.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/DefaultParameterGroup.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/DefaultParameterGroupProperties.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/DefaultParameterGroups.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Endpoint.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/EndpointProperties.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/EndpointRole.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/EndpointScope.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Endpoints.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/FabricDestinationDetails.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/FirewallRule.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/{HorizonDbFirewallRuleProperties.java => FirewallRuleProperties.java} (57%) rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/{HorizonDbFirewallRules.java => FirewallRules.java} (73%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/GeoRedundancyState.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbAdministrator.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbAdministratorAdd.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbAdministratorProperties.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbAdministratorPropertiesForAdd.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterAuthConfig.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterDataEncryption.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterDataEncryptionForPatchUpdate.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterDataEncryptionType.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterEncryptionKeyStatus.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterIdentityType.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterManagedServiceIdentity.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterMirroring.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterParameterGroupConnectionProperties.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterProperties.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterPropertiesForPatchUpdate.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbComputeModel.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbComputeModelType.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbParameterGroupConnectionProperties.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbParameterGroupProperties.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbParameterGroupPropertiesForPatchUpdate.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbPoolProperties.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbReplicaProperties.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbReplicaPropertiesForPatchUpdate.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/IdentityAssignment.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/{HorizonDbReplicas.java => IdentityAssignments.java} (62%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/IdentityValidationStatus.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogCaptureConfiguration.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogCaptureConfigurationForPatchUpdate.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogCaptureConfigurationProperties.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogCaptureConfigurationPropertiesForPatchUpdate.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogCaptureConfigurations.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogCaptureState.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogFile.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogFileDownloadUrl.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogFileProperties.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogFileType.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogFiles.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MaintenanceEvent.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MaintenanceEventActionResponse.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MaintenanceEventProperties.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MaintenanceEventRescheduleRequest.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MaintenanceEventStatus.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MaintenanceEvents.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MaintenanceType.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ManagedServiceIdentity.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ManagedServiceIdentityType.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAdministrator.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/{HorizonDbReplicaForPatchUpdate.java => MicrosoftEntraAdministratorAdd.java} (51%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAdministratorProperties.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAdministratorPropertiesForAdd.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAdministrators.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAuthentication.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAuthenticationForPatchUpdate.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAuthenticationProperties.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAuthenticationPropertiesForPatchUpdate.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAuthentications.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/NetworkForPatchUpdate.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Node.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/NodeProperties.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/NodeRole.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/{HorizonDbPools.java => Nodes.java} (67%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ParameterApplyMethod.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/{HorizonDbParameterGroup.java => ParameterGroup.java} (75%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ParameterGroupConnectionProperties.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/{HorizonDbParameterGroupForPatchUpdate.java => ParameterGroupForPatchUpdate.java} (60%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ParameterGroupProperties.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ParameterGroupPropertiesForPatchUpdate.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ParameterGroupSyncStatus.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/{HorizonDbParameterGroups.java => ParameterGroups.java} (69%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ParameterValueSource.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PasswordAuthentication.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PasswordAuthenticationForPatchUpdate.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PasswordAuthenticationProperties.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PasswordAuthenticationPropertiesForPatchUpdate.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PasswordAuthentications.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Pool.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolCapability.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolComputeModel.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolComputeModelForPatchUpdate.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolComputeModelType.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolFeatureCapability.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolForPatchUpdate.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolHighAvailability.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolHighAvailabilityMode.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolHighAvailabilityPatch.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolParameterGroupReference.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolParameterGroupReferenceForPatchUpdate.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolProperties.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolPropertiesForPatchUpdate.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolState.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Pools.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PostgreSqlCapabilityVersion.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PostgreSqlVersion.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PostgreSqlVersionCapability.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/{HorizonDbPrivateEndpointConnections.java => PrivateEndpointConnections.java} (76%) rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/{HorizonDbPrivateLinkResource.java => PrivateLinkResource.java} (79%) rename sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/{HorizonDbPrivateLinkResources.java => PrivateLinkResources.java} (76%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ProvisionedComputeModelCapability.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ReadWritePoolProperties.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ReplicaRole.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ScheduledMaintenanceManagementType.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ScheduledMaintenanceProperties.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ScheduledMaintenancePropertiesForPatchUpdate.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/State.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/SystemScheduledMaintenanceProperties.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ZonePlacementPolicy.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/AuthenticationsListSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/CapabilitiesGetSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/CapabilitiesListSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureCapabilitiesCreateOrReplaceSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureCapabilitiesDeleteSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureCapabilitiesGetSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureCapabilitiesListSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureCapabilitiesUpdateSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureConfigurationsCreateOrReplaceSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureConfigurationsDeleteSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureConfigurationsGetSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureConfigurationsListSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureConfigurationsUpdateSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationsActivateIdentitySamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationsCreateOrReplaceSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationsDeleteSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationsGetSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationsListSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationsUpdateSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ClustersCreateOrReplaceSamples.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/{HorizonDbClustersDeleteSamples.java => ClustersDeleteSamples.java} (63%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ClustersFailoverSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ClustersGetByResourceGroupSamples.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/{HorizonDbClustersListByResourceGroupSamples.java => ClustersListByResourceGroupSamples.java} (64%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ClustersListSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ClustersUpdateSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/DefaultParameterGroupsGetSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/DefaultParameterGroupsListBySubscriptionAndRegionSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/EndpointsGetSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/EndpointsListSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/FirewallRulesCreateOrReplaceSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/FirewallRulesDeleteSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/FirewallRulesGetSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/FirewallRulesListSamples.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorsCreateOrUpdateSamples.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorsDeleteSamples.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorsGetSamples.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorsListSamples.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersCreateOrUpdateSamples.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersGetByResourceGroupSamples.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersListSamples.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersRestartSamples.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersStartSamples.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersStopSamples.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersUpdateSamples.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbFirewallRulesCreateOrUpdateSamples.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbFirewallRulesDeleteSamples.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbFirewallRulesGetSamples.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbFirewallRulesListSamples.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsCreateOrUpdateSamples.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsListConnectionsSamples.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsListVersionsSamples.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsUpdateSamples.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateEndpointConnectionsGetSamples.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateEndpointConnectionsListSamples.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateEndpointConnectionsUpdateStatusSamples.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateLinkResourcesGetSamples.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateLinkResourcesListSamples.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicasCreateOrUpdateSamples.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicasDeleteSamples.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicasGetSamples.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicasListSamples.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicasUpdateSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/IdentityAssignmentsCreateOrReplaceSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/IdentityAssignmentsDeleteSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/IdentityAssignmentsGetSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/IdentityAssignmentsListSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationsGetSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationsListSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationsUpdateSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/LogFilesGetSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/LogFilesListDownloadUrlsSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/LogFilesListSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventsApplyNowSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventsGetSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventsListSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventsRescheduleSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorsCreateOrReplaceSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorsDeleteSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorsGetSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorsListSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationsCreateOrReplaceSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationsGetSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationsUpdateSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/NodesGetSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/NodesListSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsCreateOrReplaceSamples.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/{HorizonDbParameterGroupsDeleteSamples.java => ParameterGroupsDeleteSamples.java} (61%) rename sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/{HorizonDbParameterGroupsGetByResourceGroupSamples.java => ParameterGroupsGetByResourceGroupSamples.java} (62%) rename sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/{HorizonDbParameterGroupsListByResourceGroupSamples.java => ParameterGroupsListByResourceGroupSamples.java} (62%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsListConnectionsSamples.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/{HorizonDbParameterGroupsListSamples.java => ParameterGroupsListSamples.java} (68%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsUpdateSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PasswordAuthenticationsCreateOrReplaceSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PasswordAuthenticationsGetSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PasswordAuthenticationsUpdateSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PoolsCreateOrReplaceSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PoolsDeleteSamples.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/{HorizonDbPoolsGetSamples.java => PoolsGetSamples.java} (61%) rename sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/{HorizonDbPoolsListSamples.java => PoolsListSamples.java} (65%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PoolsRestartSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PoolsStartSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PoolsStopSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PoolsUpdateSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointConnectionsApproveOrRejectSamples.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/{HorizonDbPrivateEndpointConnectionsDeleteSamples.java => PrivateEndpointConnectionsDeleteSamples.java} (59%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointConnectionsGetSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointConnectionsListSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PrivateLinkResourcesGetSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PrivateLinkResourcesListSamples.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ActivateChangeDataCaptureIdentityRequestTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ActivateChangeDataCaptureIdentityResultInnerTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/AuthenticationInnerTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/AuthenticationListResultTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/AuthenticationPropertiesTests.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/{HorizonDbClustersStartMockTests.java => AuthenticationsListMockTests.java} (68%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/BackupPropertiesForPatchUpdateTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/BackupPropertiesTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/CapabilitiesGetWithResponseMockTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/CapabilitiesListMockTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/CapabilityInnerTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/CapabilityListResultTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/CapabilityPropertiesTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureCapabilityForPatchUpdateTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureCapabilityPropertiesForPatchUpdateTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureConfigurationForPatchUpdateTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureConfigurationPropertiesForPatchUpdateTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationDetailsTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationForPatchUpdateTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationPropertiesForPatchUpdateTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationsActivateIdentityMockTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureExtensionStatusTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCapturePrerequisiteStatusTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureReplicationStatusTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureTopologyBindingStatusTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ClusterCapabilityTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ClusterFeatureCapabilityTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ComputeGenerationCapabilityTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ComputeModelCapabilityTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ComputeProcessorCapabilityTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ComputeSizeCapabilityTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/DefaultParameterGroupInnerTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/DefaultParameterGroupListResultTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/DefaultParameterGroupPropertiesTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/DefaultParameterGroupsGetWithResponseMockTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/DefaultParameterGroupsListBySubscriptionAndRegionMockTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/EndpointInnerTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/EndpointListResultTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/EndpointPropertiesTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/EndpointsGetWithResponseMockTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/EndpointsListMockTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/FabricDestinationDetailsTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/FirewallRuleInnerTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/FirewallRuleListResultTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/FirewallRulePropertiesTests.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/{HorizonDbReplicasCreateOrUpdateMockTests.java => FirewallRulesCreateOrReplaceMockTests.java} (52%) rename sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/{HorizonDbFirewallRulesGetWithResponseMockTests.java => FirewallRulesGetWithResponseMockTests.java} (62%) rename sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/{HorizonDbFirewallRulesListMockTests.java => FirewallRulesListMockTests.java} (62%) delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorAddTests.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorInnerTests.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorListResultTests.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorPropertiesForAddTests.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorPropertiesTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClusterManagedServiceIdentityTests.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClusterMirroringTests.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClusterParameterGroupConnectionPropertiesTests.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbComputeModelTests.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbFirewallRuleInnerTests.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbFirewallRuleListResultTests.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbFirewallRulePropertiesTests.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbFirewallRulesCreateOrUpdateMockTests.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupConnectionPropertiesInnerTests.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupConnectionPropertiesListResultTests.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupForPatchUpdateTests.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupInnerTests.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupListResultTests.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupPropertiesForPatchUpdateTests.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupPropertiesTests.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsCreateOrUpdateMockTests.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsGetByResourceGroupWithResponseMockTests.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsListByResourceGroupMockTests.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsListMockTests.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsListVersionsMockTests.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPoolInnerTests.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPoolListResultTests.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPoolPropertiesTests.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateLinkResourceInnerTests.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateLinkResourceListResultTests.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicaForPatchUpdateTests.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicaInnerTests.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicaListResultTests.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicaPropertiesForPatchUpdateTests.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicaPropertiesTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationForPatchUpdateTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationInnerTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationListResultTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationPropertiesForPatchUpdateTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationPropertiesTests.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/{HorizonDbPoolsGetWithResponseMockTests.java => LogCaptureConfigurationsGetWithResponseMockTests.java} (61%) rename sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/{HorizonDbPoolsListMockTests.java => LogCaptureConfigurationsListMockTests.java} (62%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationsUpdateMockTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogFileDownloadUrlInnerTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogFileInnerTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogFileListResultTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogFilePropertiesTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogFilesGetWithResponseMockTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogFilesListDownloadUrlsWithResponseMockTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogFilesListMockTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventActionResponseInnerTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventInnerTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventListResultTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventPropertiesTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventRescheduleRequestTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventsApplyNowMockTests.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/{HorizonDbReplicasGetWithResponseMockTests.java => MaintenanceEventsGetWithResponseMockTests.java} (58%) rename sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/{HorizonDbReplicasListMockTests.java => MaintenanceEventsListMockTests.java} (58%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventsRescheduleMockTests.java delete mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ManagedServiceIdentityTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorAddTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorInnerTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorListResultTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorPropertiesForAddTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorPropertiesTests.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/{HorizonDbAdministratorsCreateOrUpdateMockTests.java => MicrosoftEntraAdministratorsCreateOrReplaceMockTests.java} (50%) rename sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/{HorizonDbAdministratorsGetWithResponseMockTests.java => MicrosoftEntraAdministratorsGetWithResponseMockTests.java} (60%) rename sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/{HorizonDbAdministratorsListMockTests.java => MicrosoftEntraAdministratorsListMockTests.java} (61%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationForPatchUpdateTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationInnerTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationPropertiesForPatchUpdateTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationPropertiesTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationsCreateOrReplaceMockTests.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/{HorizonDbPrivateLinkResourcesGetWithResponseMockTests.java => MicrosoftEntraAuthenticationsGetWithResponseMockTests.java} (65%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationsUpdateMockTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/NetworkForPatchUpdateTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/NodeInnerTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/NodeListResultTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/NodePropertiesTests.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/{HorizonDbClustersRestartMockTests.java => NodesGetWithResponseMockTests.java} (67%) rename sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/{HorizonDbClustersStopMockTests.java => NodesListMockTests.java} (67%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PagedParameterGroupConnectionPropertiesTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupConnectionPropertiesInnerTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupForPatchUpdateTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupInnerTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupListResultTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupPropertiesForPatchUpdateTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupPropertiesTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsCreateOrReplaceMockTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsGetByResourceGroupWithResponseMockTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsListByResourceGroupMockTests.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/{HorizonDbParameterGroupsListConnectionsMockTests.java => ParameterGroupsListConnectionsMockTests.java} (72%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsListMockTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolCapabilityTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolComputeModelForPatchUpdateTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolComputeModelTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolFeatureCapabilityTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolForPatchUpdateTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolHighAvailabilityPatchTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolHighAvailabilityTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolInnerTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolListResultTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolParameterGroupReferenceForPatchUpdateTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolParameterGroupReferenceTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolPropertiesForPatchUpdateTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolPropertiesTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolsCreateOrReplaceMockTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolsGetWithResponseMockTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolsListMockTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolsRestartMockTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolsStartMockTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolsStopMockTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PostgreSqlVersionCapabilityTests.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/{HorizonDbPrivateEndpointConnectionsUpdateStatusWithResponseMockTests.java => PrivateEndpointConnectionsApproveOrRejectMockTests.java} (54%) rename sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/{HorizonDbPrivateEndpointConnectionsGetWithResponseMockTests.java => PrivateEndpointConnectionsGetWithResponseMockTests.java} (64%) rename sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/{HorizonDbPrivateEndpointConnectionsListMockTests.java => PrivateEndpointConnectionsListMockTests.java} (74%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateLinkResourceInnerTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateLinkResourceListResultTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateLinkResourcesGetWithResponseMockTests.java rename sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/{HorizonDbPrivateLinkResourcesListMockTests.java => PrivateLinkResourcesListMockTests.java} (65%) create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ProvisionedComputeModelCapabilityTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ReadWritePoolPropertiesTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ScheduledMaintenancePropertiesForPatchUpdateTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ScheduledMaintenancePropertiesTests.java create mode 100644 sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/SystemScheduledMaintenancePropertiesTests.java diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/CHANGELOG.md b/sdk/horizondb/azure-resourcemanager-horizondb/CHANGELOG.md index 2086f61e93a25..d23a8932cd175 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/CHANGELOG.md +++ b/sdk/horizondb/azure-resourcemanager-horizondb/CHANGELOG.md @@ -1,14 +1,570 @@ # Release History -## 1.0.0-beta.3 (Unreleased) +## 1.0.0-beta.3 (2026-10-15) -### Features Added +- Azure Resource Manager HorizonDb client library for Java. This package contains Microsoft Azure SDK for HorizonDb Management SDK. Azure Resource Provider API for managing HorizonDB clusters, pools, endpoints, nodes, and firewall rules. Package api-version 2026-10-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Breaking Changes -### Bugs Fixed +#### `models.HorizonDbPoolProperties` was removed + +#### `models.HorizonDbReplica` was removed + +#### `models.HorizonDbAdministrators` was removed + +#### `models.HorizonDbAdministrator$UpdateStages` was removed + +#### `models.HorizonDbAdministratorAdd` was removed + +#### `models.HorizonDbParameterGroups` was removed + +#### `models.HorizonDbReplica$UpdateStages` was removed + +#### `models.HorizonDbReplicaProperties` was removed + +#### `models.ReplicaRole` was removed + +#### `models.HorizonDbReplicaForPatchUpdate` was removed + +#### `models.HorizonDbFirewallRule$DefinitionStages` was removed + +#### `models.ZonePlacementPolicy` was removed + +#### `models.HorizonDbPrivateLinkResource` was removed + +#### `models.HorizonDbParameterGroupPropertiesForPatchUpdate` was removed + +#### `models.CreateModeCluster` was removed + +#### `models.HorizonDbAdministrator$Update` was removed + +#### `models.HorizonDbComputeModelType` was removed + +#### `models.HorizonDbParameterGroup$UpdateStages` was removed + +#### `models.HorizonDbParameterGroup` was removed + +#### `models.HorizonDbPools` was removed + +#### `models.HorizonDbFirewallRule$Definition` was removed + +#### `models.HorizonDbPrivateLinkResources` was removed + +#### `models.HorizonDbParameterGroupForPatchUpdate` was removed + +#### `models.HorizonDbAdministratorProperties` was removed + +#### `models.HorizonDbCluster$Definition` was removed + +#### `models.HorizonDbAdministrator$Definition` was removed + +#### `models.HorizonDbAdministrator` was removed + +#### `models.HorizonDbCluster$Update` was removed + +#### `models.HorizonDbReplica$Definition` was removed + +#### `models.HorizonDbClusters` was removed + +#### `models.HorizonDbPrivateEndpointConnections` was removed + +#### `models.HorizonDbPool` was removed + +#### `models.CreateModePool` was removed + +#### `models.HorizonDbCluster$UpdateStages` was removed + +#### `models.ManagedServiceIdentity` was removed + +#### `models.HorizonDbFirewallRuleProperties` was removed + +#### `models.HorizonDbParameterGroupProperties` was removed + +#### `models.ManagedServiceIdentityType` was removed + +#### `models.HorizonDbReplicaPropertiesForPatchUpdate` was removed + +#### `models.HorizonDbClusterPropertiesForPatchUpdate` was removed + +#### `models.HorizonDbComputeModel` was removed + +#### `models.HorizonDbAdministratorPropertiesForAdd` was removed + +#### `models.HorizonDbReplica$Update` was removed + +#### `models.HorizonDbCluster` was removed + +#### `models.HorizonDbParameterGroupConnectionProperties` was removed + +#### `models.HorizonDbParameterGroup$Definition` was removed + +#### `models.HorizonDbClusterProperties` was removed + +#### `models.HorizonDbClusterForPatchUpdate` was removed + +#### `models.HorizonDbReplicas` was removed + +#### `models.HorizonDbFirewallRule$Update` was removed + +#### `models.HorizonDbParameterGroup$DefinitionStages` was removed + +#### `models.HorizonDbFirewallRule$UpdateStages` was removed + +#### `models.HorizonDbCluster$DefinitionStages` was removed + +#### `models.HorizonDbClusterMirroring` was removed + +#### `models.HorizonDbReplica$DefinitionStages` was removed + +#### `models.HorizonDbClusterAuthConfig` was removed + +#### `models.HorizonDbAdministrator$DefinitionStages` was removed + +#### `models.HorizonDbClusterParameterGroupConnectionProperties` was removed + +#### `models.HorizonDbFirewallRule` was removed + +#### `models.HorizonDbFirewallRules` was removed + +#### `models.HorizonDbParameterGroup$Update` was removed + +#### `models.State` was removed + +#### `models.Network` was modified + +* `publicNetworkAccess()` was removed + +#### `HorizonDbManager` was modified + +* `horizonDbReplicas()` was removed +* `horizonDbAdministrators()` was removed +* `horizonDbPrivateEndpointConnections()` was removed +* `horizonDbFirewallRules()` was removed +* `horizonDbPools()` was removed +* `horizonDbPrivateLinkResources()` was removed +* `horizonDbParameterGroups()` was removed +* `horizonDbClusters()` was removed + +### Features Added + +* `models.GeoRedundancyState` was added + +* `models.Clusters` was added + +* `models.PrivateEndpointConnections` was added + +* `models.AuthenticationProperties` was added + +* `models.ChangeDataCaptureIdentityActivationState` was added + +* `models.MicrosoftEntraAuthenticationForPatchUpdate` was added + +* `models.ScheduledMaintenancePropertiesForPatchUpdate` was added + +* `models.Pool$UpdateStages` was added + +* `models.ClusterCreateMode` was added + +* `models.Nodes` was added + +* `models.DefaultParameterGroup` was added + +* `models.PoolForPatchUpdate` was added + +* `models.ParameterGroup` was added + +* `models.ChangeDataCaptureConfiguration$UpdateStages` was added + +* `models.ChangeDataCaptureProtocol` was added + +* `models.MaintenanceType` was added + +* `models.ChangeDataCaptureReplicationState` was added + +* `models.ChangeDataCaptureDestination$Update` was added + +* `models.PoolFeatureCapability` was added + +* `models.ClusterState` was added + +* `models.ChangeDataCaptureCapabilities` was added + +* `models.ChangeDataCaptureDesiredState` was added + +* `models.ChangeDataCaptureExtensionStatus` was added + +* `models.BackupProperties` was added + +* `models.Endpoints` was added + +* `models.ChangeDataCaptureConfiguration$Definition` was added + +* `models.Pool$Definition` was added + +* `models.ChangeDataCaptureDestinationDetails` was added + +* `models.PrivateEndpointConnectionResource$Update` was added + +* `models.ChangeDataCaptureConfiguration$DefinitionStages` was added + +* `models.BackupPropertiesForPatchUpdate` was added + +* `models.Cluster$UpdateStages` was added + +* `models.LogCaptureConfiguration` was added + +* `models.PoolComputeModelForPatchUpdate` was added + +* `models.LogCaptureState` was added + +* `models.MicrosoftEntraAdministratorAdd` was added + +* `models.MaintenanceEvent` was added + +* `models.SystemScheduledMaintenanceProperties` was added + +* `models.PasswordAuthentications` was added + +* `models.PoolCapability` was added + +* `models.LogFileDownloadUrl` was added + +* `models.ParameterApplyMethod` was added + +* `models.Authentication` was added + +* `models.HorizonDbClusterDataEncryption` was added + +* `models.ChangeDataCaptureCapability` was added + +* `models.ClusterCapability` was added + +* `models.PrivateEndpointConnectionResource$Definition` was added + +* `models.EndpointRole` was added + +* `models.ChangeDataCaptureCapabilityPropertiesForPatchUpdate` was added + +* `models.ChangeDataCaptureEffectiveState` was added + +* `models.PasswordAuthenticationPropertiesForPatchUpdate` was added + +* `models.ClusterPropertiesForPatchUpdate` was added + +* `models.ChangeDataCaptureCapabilityProperties` was added + +* `models.ParameterGroup$DefinitionStages` was added + +* `models.ChangeDataCaptureDestination$Definition` was added + +* `models.FirewallRule$DefinitionStages` was added + +* `models.ParameterGroupProperties` was added + +* `models.MicrosoftEntraAdministrator$Definition` was added + +* `models.ChangeDataCaptureConfigurationPropertiesForPatchUpdate` was added + +* `models.HorizonDbClusterManagedServiceIdentity` was added + +* `models.Capabilities` was added + +* `models.NodeRole` was added + +* `models.DefaultParameterGroups` was added + +* `models.ParameterGroup$Definition` was added + +* `models.ChangeDataCaptureStatus` was added + +* `models.MicrosoftEntraAdministrator$DefinitionStages` was added + +* `models.PrivateEndpointConnectionResource$UpdateStages` was added + +* `models.Pool$DefinitionStages` was added + +* `models.MaintenanceEventProperties` was added + +* `models.MicrosoftEntraAuthenticationPropertiesForPatchUpdate` was added + +* `models.ChangeDataCaptureCapabilityForPatchUpdate` was added + +* `models.ChangeDataCaptureEngineConfigurationState` was added + +* `models.Cluster$Update` was added + +* `models.MicrosoftEntraAdministratorProperties` was added + +* `models.EndpointProperties` was added + +* `models.ChangeDataCaptureReplicationArchitecture` was added + +* `models.NodeProperties` was added + +* `models.PoolHighAvailability` was added + +* `models.LogCaptureConfigurationProperties` was added + +* `models.ParameterGroup$Update` was added + +* `models.PoolHighAvailabilityPatch` was added + +* `models.ChangeDataCaptureReplicationStatus` was added + +* `models.Pools` was added + +* `models.PoolProperties` was added + +* `models.ChangeDataCaptureIdentityValidationState` was added + +* `models.LogFile` was added + +* `models.ParameterValueSource` was added + +* `models.ScheduledMaintenanceManagementType` was added + +* `models.ParameterGroup$UpdateStages` was added + +* `models.LogFiles` was added + +* `models.PoolHighAvailabilityMode` was added + +* `models.ClusterProperties` was added + +* `models.FirewallRules` was added + +* `models.ClusterForPatchUpdate` was added + +* `models.ParameterGroupSyncStatus` was added + +* `models.MicrosoftEntraAdministrator` was added + +* `models.ChangeDataCaptureDestinationProperties` was added + +* `models.ChangeDataCaptureIdentityAssignmentState` was added + +* `models.PoolParameterGroupReference` was added + +* `models.PasswordAuthenticationForPatchUpdate` was added + +* `models.ChangeDataCaptureConfiguration$Update` was added + +* `models.MicrosoftEntraAuthentications` was added + +* `models.ReadWritePoolProperties` was added + +* `models.HorizonDbClusterEncryptionKeyStatus` was added + +* `models.ActivateChangeDataCaptureIdentityRequest` was added + +* `models.FirewallRule$Definition` was added + +* `models.ChangeDataCaptureDestinationEffectiveState` was added + +* `models.PoolParameterGroupReferenceForPatchUpdate` was added + +* `models.Pool` was added + +* `models.LogCaptureConfigurationPropertiesForPatchUpdate` was added + +* `models.ActivateChangeDataCaptureIdentityResult` was added + +* `models.ComputeModelCapability` was added + +* `models.ChangeDataCaptureConfigurations` was added + +* `models.ChangeDataCaptureDestinationPropertiesForPatchUpdate` was added + +* `models.Cluster` was added + +* `models.Pool$Update` was added + +* `models.ParameterGroupConnectionProperties` was added + +* `models.ChangeDataCaptureConfiguration` was added + +* `models.AiModelManagementStatus` was added + +* `models.LogFileProperties` was added + +* `models.Node` was added + +* `models.ClusterFeatureCapability` was added + +* `models.ChangeDataCaptureDestination$DefinitionStages` was added + +* `models.ChangeDataCaptureConfigurationForPatchUpdate` was added + +* `models.MaintenanceEvents` was added + +* `models.PostgreSqlCapabilityVersion` was added + +* `models.ComputeGenerationCapability` was added + +* `models.PasswordAuthentication` was added + +* `models.HorizonDbClusterDataEncryptionForPatchUpdate` was added + +* `models.MaintenanceEventRescheduleRequest` was added + +* `models.FirewallRuleProperties` was added + +* `models.ChangeDataCaptureTopologyBindingStatus` was added + +* `models.ChangeDataCaptureTopologyBindingState` was added + +* `models.ComputeSizeCapability` was added + +* `models.PoolComputeModelType` was added + +* `models.LogCaptureConfigurations` was added + +* `models.CapabilityProperties` was added + +* `models.ChangeDataCaptureConfigurationProperties` was added + +* `models.ParameterGroups` was added + +* `models.IdentityAssignment$Definition` was added + +* `models.MicrosoftEntraAuthenticationProperties` was added + +* `models.ChangeDataCaptureDestination$UpdateStages` was added + +* `models.Endpoint` was added + +* `models.ChangeDataCaptureDestinations` was added + +* `models.ChangeDataCaptureDestinationForPatchUpdate` was added + +* `models.MicrosoftEntraAdministratorPropertiesForAdd` was added + +* `models.NetworkForPatchUpdate` was added + +* `models.MaintenanceEventActionResponse` was added + +* `models.ComputeProcessorCapability` was added + +* `models.LogFileType` was added + +* `models.ChangeDataCaptureReadWriteEndpointState` was added + +* `models.LogCaptureConfigurationForPatchUpdate` was added + +* `models.DefaultParameterGroupProperties` was added + +* `models.HorizonDbClusterIdentityType` was added + +* `models.PrivateLinkResource` was added + +* `models.ParameterGroupForPatchUpdate` was added + +* `models.Authentications` was added + +* `models.ScheduledMaintenanceProperties` was added + +* `models.Cluster$Definition` was added + +* `models.IdentityAssignment` was added + +* `models.ChangeDataCapturePrerequisiteStatus` was added + +* `models.MicrosoftEntraAdministrators` was added + +* `models.PoolState` was added + +* `models.IdentityAssignments` was added + +* `models.FirewallRule` was added + +* `models.PasswordAuthenticationProperties` was added + +* `models.EndpointScope` was added + +* `models.PoolComputeModel` was added + +* `models.ChangeDataCaptureDestinationType` was added + +* `models.ParameterGroupPropertiesForPatchUpdate` was added + +* `models.IdentityAssignment$DefinitionStages` was added + +* `models.ChangeDataCaptureIdentityAssignmentProperties` was added + +* `models.PostgreSqlVersionCapability` was added + +* `models.PrivateLinkResources` was added + +* `models.PrivateEndpointConnectionResource$DefinitionStages` was added + +* `models.ComputeProcessorType` was added + +* `models.Capability` was added + +* `models.ChangeDataCaptureExtensionState` was added + +* `models.HorizonDbClusterDataEncryptionType` was added + +* `models.PoolPropertiesForPatchUpdate` was added + +* `models.MicrosoftEntraAuthentication` was added + +* `models.PostgreSqlVersion` was added + +* `models.ProvisionedComputeModelCapability` was added + +* `models.MaintenanceEventStatus` was added + +* `models.FabricDestinationDetails` was added + +* `models.ChangeDataCaptureUsageProfile` was added + +* `models.ChangeDataCaptureDestination` was added + +* `models.Cluster$DefinitionStages` was added + +* `models.IdentityValidationStatus` was added + +#### `models.Network` was modified + +* `withPublicAccess(models.PublicNetworkAccessState)` was added +* `publicAccess()` was added + +#### `models.ParameterProperties` was modified + +* `defaultValue()` was added +* `valueSource()` was added + +#### `HorizonDbManager` was modified -### Other Changes +* `changeDataCaptureCapabilities()` was added +* `firewallRules()` was added +* `identityAssignments()` was added +* `passwordAuthentications()` was added +* `privateLinkResources()` was added +* `parameterGroups()` was added +* `capabilities()` was added +* `nodes()` was added +* `defaultParameterGroups()` was added +* `pools()` was added +* `clusters()` was added +* `microsoftEntraAdministrators()` was added +* `privateEndpointConnections()` was added +* `logFiles()` was added +* `changeDataCaptureDestinations()` was added +* `authentications()` was added +* `maintenanceEvents()` was added +* `logCaptureConfigurations()` was added +* `microsoftEntraAuthentications()` was added +* `endpoints()` was added +* `changeDataCaptureConfigurations()` was added + +#### `models.PrivateEndpointConnectionResource` was modified + +* `resourceGroupName()` was added +* `refresh(com.azure.core.util.Context)` was added +* `refresh()` was added +* `update()` was added ## 1.0.0-beta.2 (2026-08-20) diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/README.md b/sdk/horizondb/azure-resourcemanager-horizondb/README.md index c82695c4d0981..1be74fa751ea4 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/README.md +++ b/sdk/horizondb/azure-resourcemanager-horizondb/README.md @@ -2,7 +2,7 @@ Azure Resource Manager HorizonDb client library for Java. -This package contains Microsoft Azure SDK for HorizonDb Management SDK. Azure Resource Provider API for managing HorizonDB clusters, pools, replicas, and firewall rules. Package api-version 2026-05-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 HorizonDb Management SDK. Azure Resource Provider API for managing HorizonDB clusters, pools, endpoints, nodes, and firewall rules. Package api-version 2026-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-horizondb - 1.0.0-beta.2 + 1.0.0-beta.3 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/SAMPLE.md b/sdk/horizondb/azure-resourcemanager-horizondb/SAMPLE.md index f5f648dcefc84..0bd7b07f0147a 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/SAMPLE.md +++ b/sdk/horizondb/azure-resourcemanager-horizondb/SAMPLE.md @@ -1,551 +1,789 @@ # Code snippets and samples -## HorizonDbAdministrators +## Authentications -- [CreateOrUpdate](#horizondbadministrators_createorupdate) -- [Delete](#horizondbadministrators_delete) -- [Get](#horizondbadministrators_get) -- [List](#horizondbadministrators_list) +- [List](#authentications_list) -## HorizonDbClusters +## Capabilities -- [CreateOrUpdate](#horizondbclusters_createorupdate) -- [Delete](#horizondbclusters_delete) -- [GetByResourceGroup](#horizondbclusters_getbyresourcegroup) -- [List](#horizondbclusters_list) -- [ListByResourceGroup](#horizondbclusters_listbyresourcegroup) -- [Restart](#horizondbclusters_restart) -- [Start](#horizondbclusters_start) -- [Stop](#horizondbclusters_stop) -- [Update](#horizondbclusters_update) +- [Get](#capabilities_get) +- [List](#capabilities_list) -## HorizonDbFirewallRules +## ChangeDataCaptureCapabilities -- [CreateOrUpdate](#horizondbfirewallrules_createorupdate) -- [Delete](#horizondbfirewallrules_delete) -- [Get](#horizondbfirewallrules_get) -- [List](#horizondbfirewallrules_list) +- [CreateOrReplace](#changedatacapturecapabilities_createorreplace) +- [Delete](#changedatacapturecapabilities_delete) +- [Get](#changedatacapturecapabilities_get) +- [List](#changedatacapturecapabilities_list) +- [Update](#changedatacapturecapabilities_update) -## HorizonDbParameterGroups +## ChangeDataCaptureConfigurations -- [CreateOrUpdate](#horizondbparametergroups_createorupdate) -- [Delete](#horizondbparametergroups_delete) -- [GetByResourceGroup](#horizondbparametergroups_getbyresourcegroup) -- [List](#horizondbparametergroups_list) -- [ListByResourceGroup](#horizondbparametergroups_listbyresourcegroup) -- [ListConnections](#horizondbparametergroups_listconnections) -- [ListVersions](#horizondbparametergroups_listversions) -- [Update](#horizondbparametergroups_update) +- [CreateOrReplace](#changedatacaptureconfigurations_createorreplace) +- [Delete](#changedatacaptureconfigurations_delete) +- [Get](#changedatacaptureconfigurations_get) +- [List](#changedatacaptureconfigurations_list) +- [Update](#changedatacaptureconfigurations_update) -## HorizonDbPools +## ChangeDataCaptureDestinations -- [Get](#horizondbpools_get) -- [List](#horizondbpools_list) +- [ActivateIdentity](#changedatacapturedestinations_activateidentity) +- [CreateOrReplace](#changedatacapturedestinations_createorreplace) +- [Delete](#changedatacapturedestinations_delete) +- [Get](#changedatacapturedestinations_get) +- [List](#changedatacapturedestinations_list) +- [Update](#changedatacapturedestinations_update) -## HorizonDbPrivateEndpointConnections +## Clusters -- [Delete](#horizondbprivateendpointconnections_delete) -- [Get](#horizondbprivateendpointconnections_get) -- [List](#horizondbprivateendpointconnections_list) -- [UpdateStatus](#horizondbprivateendpointconnections_updatestatus) +- [CreateOrReplace](#clusters_createorreplace) +- [Delete](#clusters_delete) +- [Failover](#clusters_failover) +- [GetByResourceGroup](#clusters_getbyresourcegroup) +- [List](#clusters_list) +- [ListByResourceGroup](#clusters_listbyresourcegroup) +- [Update](#clusters_update) -## HorizonDbPrivateLinkResources +## DefaultParameterGroups -- [Get](#horizondbprivatelinkresources_get) -- [List](#horizondbprivatelinkresources_list) +- [Get](#defaultparametergroups_get) +- [ListBySubscriptionAndRegion](#defaultparametergroups_listbysubscriptionandregion) -## HorizonDbReplicas +## Endpoints -- [CreateOrUpdate](#horizondbreplicas_createorupdate) -- [Delete](#horizondbreplicas_delete) -- [Get](#horizondbreplicas_get) -- [List](#horizondbreplicas_list) -- [Update](#horizondbreplicas_update) +- [Get](#endpoints_get) +- [List](#endpoints_list) + +## FirewallRules + +- [CreateOrReplace](#firewallrules_createorreplace) +- [Delete](#firewallrules_delete) +- [Get](#firewallrules_get) +- [List](#firewallrules_list) + +## IdentityAssignments + +- [CreateOrReplace](#identityassignments_createorreplace) +- [Delete](#identityassignments_delete) +- [Get](#identityassignments_get) +- [List](#identityassignments_list) + +## LogCaptureConfigurations + +- [Get](#logcaptureconfigurations_get) +- [List](#logcaptureconfigurations_list) +- [Update](#logcaptureconfigurations_update) + +## LogFiles + +- [Get](#logfiles_get) +- [List](#logfiles_list) +- [ListDownloadUrls](#logfiles_listdownloadurls) + +## MaintenanceEvents + +- [ApplyNow](#maintenanceevents_applynow) +- [Get](#maintenanceevents_get) +- [List](#maintenanceevents_list) +- [Reschedule](#maintenanceevents_reschedule) + +## MicrosoftEntraAdministrators + +- [CreateOrReplace](#microsoftentraadministrators_createorreplace) +- [Delete](#microsoftentraadministrators_delete) +- [Get](#microsoftentraadministrators_get) +- [List](#microsoftentraadministrators_list) + +## MicrosoftEntraAuthentications + +- [CreateOrReplace](#microsoftentraauthentications_createorreplace) +- [Get](#microsoftentraauthentications_get) +- [Update](#microsoftentraauthentications_update) + +## Nodes + +- [Get](#nodes_get) +- [List](#nodes_list) ## Operations - [List](#operations_list) -### HorizonDbAdministrators_CreateOrUpdate -```java -import com.azure.resourcemanager.horizondb.models.HorizonDbAdministratorPropertiesForAdd; -import com.azure.resourcemanager.horizondb.models.PrincipalTypes; +## ParameterGroups + +- [CreateOrReplace](#parametergroups_createorreplace) +- [Delete](#parametergroups_delete) +- [GetByResourceGroup](#parametergroups_getbyresourcegroup) +- [List](#parametergroups_list) +- [ListByResourceGroup](#parametergroups_listbyresourcegroup) +- [ListConnections](#parametergroups_listconnections) +- [Update](#parametergroups_update) + +## PasswordAuthentications + +- [CreateOrReplace](#passwordauthentications_createorreplace) +- [Get](#passwordauthentications_get) +- [Update](#passwordauthentications_update) + +## Pools + +- [CreateOrReplace](#pools_createorreplace) +- [Delete](#pools_delete) +- [Get](#pools_get) +- [List](#pools_list) +- [Restart](#pools_restart) +- [Start](#pools_start) +- [Stop](#pools_stop) +- [Update](#pools_update) + +## PrivateEndpointConnections +- [ApproveOrReject](#privateendpointconnections_approveorreject) +- [Delete](#privateendpointconnections_delete) +- [Get](#privateendpointconnections_get) +- [List](#privateendpointconnections_list) + +## PrivateLinkResources + +- [Get](#privatelinkresources_get) +- [List](#privatelinkresources_list) +### Authentications_List + +```java /** - * Samples for HorizonDbAdministrators CreateOrUpdate. + * Samples for Authentications List. */ -public final class HorizonDbAdministratorsCreateOrUpdateSamples { +public final class AuthenticationsListSamples { /* - * x-ms-original-file: 2026-05-01-preview/Administrators_CreateOrUpdate.json + * x-ms-original-file: 2026-10-01-preview/Authentications_List.json */ /** - * Sample code: Create or update a HorizonDB administrator. + * Sample code: List the service-created authentication methods. * * @param manager Entry point to HorizonDbManager. */ public static void - createOrUpdateAHorizonDBAdministrator(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbAdministrators() - .define("aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee") - .withExistingCluster("exampleresourcegroup", "examplecluster") - .withProperties(new HorizonDbAdministratorPropertiesForAdd().withPrincipalName("admin@contoso.com") - .withPrincipalType(PrincipalTypes.USER) - .withTenantId("11111111-2222-3333-4444-555555555555")) - .create(); + listTheServiceCreatedAuthenticationMethods(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.authentications().list("example-resource-group", "example-cluster", com.azure.core.util.Context.NONE); } } ``` -### HorizonDbAdministrators_Delete +### Capabilities_Get ```java /** - * Samples for HorizonDbAdministrators Delete. + * Samples for Capabilities Get. */ -public final class HorizonDbAdministratorsDeleteSamples { +public final class CapabilitiesGetSamples { /* - * x-ms-original-file: 2026-05-01-preview/Administrators_Delete.json + * x-ms-original-file: 2026-10-01-preview/Capabilities_Get.json */ /** - * Sample code: Delete a HorizonDB administrator. + * Sample code: Get HorizonDB capabilities by subscription and region. * * @param manager Entry point to HorizonDbManager. */ - public static void deleteAHorizonDBAdministrator(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbAdministrators() - .delete("exampleresourcegroup", "examplecluster", "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", - com.azure.core.util.Context.NONE); + public static void + getHorizonDBCapabilitiesBySubscriptionAndRegion(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.capabilities().getWithResponse("eastus2", com.azure.core.util.Context.NONE); } } ``` -### HorizonDbAdministrators_Get +### Capabilities_List ```java /** - * Samples for HorizonDbAdministrators Get. + * Samples for Capabilities List. */ -public final class HorizonDbAdministratorsGetSamples { +public final class CapabilitiesListSamples { /* - * x-ms-original-file: 2026-05-01-preview/Administrators_Get.json + * x-ms-original-file: 2026-10-01-preview/Capabilities_List.json */ /** - * Sample code: Get a HorizonDB administrator. + * Sample code: List HorizonDB capabilities by subscription and region. * * @param manager Entry point to HorizonDbManager. */ - public static void getAHorizonDBAdministrator(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbAdministrators() - .getWithResponse("exampleresourcegroup", "examplecluster", "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", - com.azure.core.util.Context.NONE); + public static void + listHorizonDBCapabilitiesBySubscriptionAndRegion(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.capabilities().list("eastus2", com.azure.core.util.Context.NONE); } } ``` -### HorizonDbAdministrators_List +### ChangeDataCaptureCapabilities_CreateOrReplace ```java +import com.azure.resourcemanager.horizondb.fluent.models.ChangeDataCaptureCapabilityInner; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureCapabilityProperties; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDesiredState; + /** - * Samples for HorizonDbAdministrators List. + * Samples for ChangeDataCaptureCapabilities CreateOrReplace. */ -public final class HorizonDbAdministratorsListSamples { +public final class ChangeDataCaptureCapabilitiesCreateOrReplaceSamples { /* - * x-ms-original-file: 2026-05-01-preview/Administrators_List.json + * x-ms-original-file: 2026-10-01-preview/ChangeDataCaptureCapabilities_CreateOrReplace.json */ /** - * Sample code: List HorizonDB administrators in a cluster. + * Sample code: Enable the cluster change data capture capability. * * @param manager Entry point to HorizonDbManager. */ public static void - listHorizonDBAdministratorsInACluster(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbAdministrators() - .list("exampleresourcegroup", "examplecluster", com.azure.core.util.Context.NONE); + enableTheClusterChangeDataCaptureCapability(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.changeDataCaptureCapabilities() + .createOrReplace("example-resource-group", "example-cluster", + new ChangeDataCaptureCapabilityInner().withProperties( + new ChangeDataCaptureCapabilityProperties().withDesiredState(ChangeDataCaptureDesiredState.ENABLED) + .withAutoUpgradeExtension(true)), + com.azure.core.util.Context.NONE); } } ``` -### HorizonDbClusters_CreateOrUpdate +### ChangeDataCaptureCapabilities_Delete ```java -import com.azure.resourcemanager.horizondb.models.CreateModeCluster; -import com.azure.resourcemanager.horizondb.models.HorizonDbClusterProperties; -import com.azure.resourcemanager.horizondb.models.ZonePlacementPolicy; -import java.util.HashMap; -import java.util.Map; - /** - * Samples for HorizonDbClusters CreateOrUpdate. + * Samples for ChangeDataCaptureCapabilities Delete. */ -public final class HorizonDbClustersCreateOrUpdateSamples { +public final class ChangeDataCaptureCapabilitiesDeleteSamples { /* - * x-ms-original-file: 2026-05-01-preview/Clusters_CreateOrUpdate.json + * x-ms-original-file: 2026-10-01-preview/ChangeDataCaptureCapabilities_Delete.json */ /** - * Sample code: Create or update a HorizonDB cluster. + * Sample code: Delete the cluster change data capture capability. * * @param manager Entry point to HorizonDbManager. */ - public static void createOrUpdateAHorizonDBCluster(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbClusters() - .define("examplecluster") - .withRegion("westus2") - .withExistingResourceGroup("exampleresourcegroup") - .withTags(mapOf("env", "dev")) - .withProperties(new HorizonDbClusterProperties().withAdministratorLogin("exampleadministratorlogin") - .withAdministratorLoginPassword("fakeTokenPlaceholder") - .withVersion("17") - .withCreateMode(CreateModeCluster.CREATE) - .withReplicaCount(2) - .withVCores(4) - .withZonePlacementPolicy(ZonePlacementPolicy.BEST_EFFORT)) - .create(); - } - - // 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; + public static void + deleteTheClusterChangeDataCaptureCapability(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.changeDataCaptureCapabilities() + .delete("example-resource-group", "example-cluster", com.azure.core.util.Context.NONE); } } ``` -### HorizonDbClusters_Delete +### ChangeDataCaptureCapabilities_Get ```java /** - * Samples for HorizonDbClusters Delete. + * Samples for ChangeDataCaptureCapabilities Get. */ -public final class HorizonDbClustersDeleteSamples { +public final class ChangeDataCaptureCapabilitiesGetSamples { /* - * x-ms-original-file: 2026-05-01-preview/Clusters_Delete.json + * x-ms-original-file: 2026-10-01-preview/ChangeDataCaptureCapabilities_Get.json */ /** - * Sample code: Delete a HorizonDB cluster. + * Sample code: Get the cluster change data capture capability. * * @param manager Entry point to HorizonDbManager. */ - public static void deleteAHorizonDBCluster(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbClusters().delete("exampleresourcegroup", "examplecluster", com.azure.core.util.Context.NONE); + public static void + getTheClusterChangeDataCaptureCapability(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.changeDataCaptureCapabilities() + .getWithResponse("example-resource-group", "example-cluster", com.azure.core.util.Context.NONE); } } ``` -### HorizonDbClusters_GetByResourceGroup +### ChangeDataCaptureCapabilities_List ```java /** - * Samples for HorizonDbClusters GetByResourceGroup. + * Samples for ChangeDataCaptureCapabilities List. */ -public final class HorizonDbClustersGetByResourceGroupSamples { +public final class ChangeDataCaptureCapabilitiesListSamples { /* - * x-ms-original-file: 2026-05-01-preview/Clusters_Get.json + * x-ms-original-file: 2026-10-01-preview/ChangeDataCaptureCapabilities_List.json */ /** - * Sample code: Get a HorizonDB cluster. + * Sample code: List the optional cluster change data capture capability. * * @param manager Entry point to HorizonDbManager. */ - public static void getAHorizonDBCluster(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbClusters() - .getByResourceGroupWithResponse("exampleresourcegroup", "examplecluster", com.azure.core.util.Context.NONE); + public static void listTheOptionalClusterChangeDataCaptureCapability( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.changeDataCaptureCapabilities() + .list("example-resource-group", "example-cluster", com.azure.core.util.Context.NONE); } } ``` -### HorizonDbClusters_List +### ChangeDataCaptureCapabilities_Update ```java +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureCapabilityForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureCapabilityPropertiesForPatchUpdate; + /** - * Samples for HorizonDbClusters List. + * Samples for ChangeDataCaptureCapabilities Update. */ -public final class HorizonDbClustersListSamples { +public final class ChangeDataCaptureCapabilitiesUpdateSamples { /* - * x-ms-original-file: 2026-05-01-preview/Clusters_ListBySubscription.json + * x-ms-original-file: 2026-10-01-preview/ChangeDataCaptureCapabilities_Update.json */ /** - * Sample code: List HorizonDB clusters by subscription. + * Sample code: Update the cluster change data capture capability. * * @param manager Entry point to HorizonDbManager. */ public static void - listHorizonDBClustersBySubscription(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbClusters().list(com.azure.core.util.Context.NONE); + updateTheClusterChangeDataCaptureCapability(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.changeDataCaptureCapabilities() + .update("example-resource-group", "example-cluster", + new ChangeDataCaptureCapabilityForPatchUpdate().withProperties( + new ChangeDataCaptureCapabilityPropertiesForPatchUpdate().withAutoUpgradeExtension(false)), + com.azure.core.util.Context.NONE); } } ``` -### HorizonDbClusters_ListByResourceGroup +### ChangeDataCaptureConfigurations_CreateOrReplace ```java +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureConfigurationProperties; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDesiredState; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureUsageProfile; + /** - * Samples for HorizonDbClusters ListByResourceGroup. + * Samples for ChangeDataCaptureConfigurations CreateOrReplace. */ -public final class HorizonDbClustersListByResourceGroupSamples { +public final class ChangeDataCaptureConfigurationsCreateOrReplaceSamples { /* - * x-ms-original-file: 2026-05-01-preview/Clusters_ListByResourceGroup.json + * x-ms-original-file: 2026-10-01-preview/ChangeDataCaptureConfigurations_CreateOrReplace.json */ /** - * Sample code: List HorizonDB clusters in a resource group. + * Sample code: Enroll a database for Microsoft Fabric Mirroring. * * @param manager Entry point to HorizonDbManager. */ public static void - listHorizonDBClustersInAResourceGroup(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbClusters().listByResourceGroup("exampleresourcegroup", com.azure.core.util.Context.NONE); + enrollADatabaseForMicrosoftFabricMirroring(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.changeDataCaptureConfigurations() + .define("sales-database") + .withExistingCluster("example-resource-group", "example-cluster") + .withProperties(new ChangeDataCaptureConfigurationProperties().withDatabaseName("sales") + .withUsageProfile(ChangeDataCaptureUsageProfile.MIRRORING) + .withDestinationResourceId( + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/example-cluster/changeDataCaptureDestinations/fabric-mirroring") + .withDesiredState(ChangeDataCaptureDesiredState.ENABLED)) + .create(); } } ``` -### HorizonDbClusters_Restart +### ChangeDataCaptureConfigurations_Delete ```java /** - * Samples for HorizonDbClusters Restart. + * Samples for ChangeDataCaptureConfigurations Delete. */ -public final class HorizonDbClustersRestartSamples { +public final class ChangeDataCaptureConfigurationsDeleteSamples { /* - * x-ms-original-file: 2026-05-01-preview/Clusters_Restart.json + * x-ms-original-file: 2026-10-01-preview/ChangeDataCaptureConfigurations_Delete.json */ /** - * Sample code: Restart a HorizonDB cluster. + * Sample code: Delete a Microsoft Fabric Mirroring configuration. * * @param manager Entry point to HorizonDbManager. */ - public static void restartAHorizonDBCluster(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbClusters().restart("exampleresourcegroup", "examplecluster", com.azure.core.util.Context.NONE); + public static void + deleteAMicrosoftFabricMirroringConfiguration(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.changeDataCaptureConfigurations() + .delete("example-resource-group", "example-cluster", "sales-database", com.azure.core.util.Context.NONE); } } ``` -### HorizonDbClusters_Start +### ChangeDataCaptureConfigurations_Get ```java /** - * Samples for HorizonDbClusters Start. + * Samples for ChangeDataCaptureConfigurations Get. */ -public final class HorizonDbClustersStartSamples { +public final class ChangeDataCaptureConfigurationsGetSamples { /* - * x-ms-original-file: 2026-05-01-preview/Clusters_Start.json + * x-ms-original-file: 2026-10-01-preview/ChangeDataCaptureConfigurations_Get.json */ /** - * Sample code: Start a HorizonDB cluster. + * Sample code: Get a Microsoft Fabric Mirroring configuration. * * @param manager Entry point to HorizonDbManager. */ - public static void startAHorizonDBCluster(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbClusters().start("exampleresourcegroup", "examplecluster", com.azure.core.util.Context.NONE); + public static void + getAMicrosoftFabricMirroringConfiguration(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.changeDataCaptureConfigurations() + .getWithResponse("example-resource-group", "example-cluster", "sales-database", + com.azure.core.util.Context.NONE); } } ``` -### HorizonDbClusters_Stop +### ChangeDataCaptureConfigurations_List ```java /** - * Samples for HorizonDbClusters Stop. + * Samples for ChangeDataCaptureConfigurations List. */ -public final class HorizonDbClustersStopSamples { +public final class ChangeDataCaptureConfigurationsListSamples { /* - * x-ms-original-file: 2026-05-01-preview/Clusters_Stop.json + * x-ms-original-file: 2026-10-01-preview/ChangeDataCaptureConfigurations_List.json */ /** - * Sample code: Stop a HorizonDB cluster. + * Sample code: List Microsoft Fabric Mirroring configurations. * * @param manager Entry point to HorizonDbManager. */ - public static void stopAHorizonDBCluster(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbClusters().stop("exampleresourcegroup", "examplecluster", com.azure.core.util.Context.NONE); + public static void + listMicrosoftFabricMirroringConfigurations(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.changeDataCaptureConfigurations() + .list("example-resource-group", "example-cluster", com.azure.core.util.Context.NONE); } } ``` -### HorizonDbClusters_Update +### ChangeDataCaptureConfigurations_Update ```java -import com.azure.resourcemanager.horizondb.models.HorizonDbCluster; -import com.azure.resourcemanager.horizondb.models.HorizonDbClusterPropertiesForPatchUpdate; -import java.util.HashMap; -import java.util.Map; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureConfiguration; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureConfigurationPropertiesForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDesiredState; /** - * Samples for HorizonDbClusters Update. + * Samples for ChangeDataCaptureConfigurations Update. */ -public final class HorizonDbClustersUpdateSamples { +public final class ChangeDataCaptureConfigurationsUpdateSamples { /* - * x-ms-original-file: 2026-05-01-preview/Clusters_Update.json + * x-ms-original-file: 2026-10-01-preview/ChangeDataCaptureConfigurations_Update.json */ /** - * Sample code: Update a HorizonDB cluster. + * Sample code: Disable a Microsoft Fabric Mirroring configuration. * * @param manager Entry point to HorizonDbManager. */ - public static void updateAHorizonDBCluster(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - HorizonDbCluster resource = manager.horizonDbClusters() - .getByResourceGroupWithResponse("exampleresourcegroup", "examplecluster", com.azure.core.util.Context.NONE) + public static void + disableAMicrosoftFabricMirroringConfiguration(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + ChangeDataCaptureConfiguration resource = manager.changeDataCaptureConfigurations() + .getWithResponse("example-resource-group", "example-cluster", "sales-database", + com.azure.core.util.Context.NONE) .getValue(); resource.update() - .withTags(mapOf("team", "updated-data-platform")) - .withProperties( - new HorizonDbClusterPropertiesForPatchUpdate().withAdministratorLoginPassword("fakeTokenPlaceholder") - .withVCores(8)) + .withProperties(new ChangeDataCaptureConfigurationPropertiesForPatchUpdate() + .withDesiredState(ChangeDataCaptureDesiredState.DISABLED)) .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; +### ChangeDataCaptureDestinations_ActivateIdentity + +```java +import com.azure.resourcemanager.horizondb.models.ActivateChangeDataCaptureIdentityRequest; + +/** + * Samples for ChangeDataCaptureDestinations ActivateIdentity. + */ +public final class ChangeDataCaptureDestinationsActivateIdentitySamples { + /* + * x-ms-original-file: 2026-10-01-preview/ChangeDataCaptureDestinations_ActivateIdentity.json + */ + /** + * Sample code: Activate a validated identity assignment for a change data capture destination. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void activateAValidatedIdentityAssignmentForAChangeDataCaptureDestination( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.changeDataCaptureDestinations() + .activateIdentity("example-resource-group", "*", "example-cluster", "fabric-mirroring", + new ActivateChangeDataCaptureIdentityRequest().withIdentityAssignmentResourceId( + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/example-cluster/changeDataCaptureDestinations/fabric-mirroring/identityAssignments/fabric-writer") + .withDrainExistingSessions(true), + com.azure.core.util.Context.NONE); } } ``` -### HorizonDbFirewallRules_CreateOrUpdate +### ChangeDataCaptureDestinations_CreateOrReplace ```java -import com.azure.resourcemanager.horizondb.models.HorizonDbFirewallRuleProperties; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDesiredState; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDestinationProperties; +import com.azure.resourcemanager.horizondb.models.FabricDestinationDetails; /** - * Samples for HorizonDbFirewallRules CreateOrUpdate. + * Samples for ChangeDataCaptureDestinations CreateOrReplace. */ -public final class HorizonDbFirewallRulesCreateOrUpdateSamples { +public final class ChangeDataCaptureDestinationsCreateOrReplaceSamples { /* - * x-ms-original-file: 2026-05-01-preview/FirewallRules_CreateOrUpdate.json + * x-ms-original-file: 2026-10-01-preview/ChangeDataCaptureDestinations_CreateOrReplace.json */ /** - * Sample code: Create or update a HorizonDB firewall rule. + * Sample code: Create a Microsoft Fabric change data capture destination. * * @param manager Entry point to HorizonDbManager. */ - public static void - createOrUpdateAHorizonDBFirewallRule(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbFirewallRules() - .define("examplefirewallrule") - .withExistingPool("exampleresourcegroup", "examplecluster", "examplepool") - .withProperties(new HorizonDbFirewallRuleProperties().withStartIpAddress("10.0.0.1") - .withEndIpAddress("10.0.0.10") - .withDescription("Allow access from corporate network")) + public static void createAMicrosoftFabricChangeDataCaptureDestination( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.changeDataCaptureDestinations() + .define("fabric-mirroring") + .withExistingCluster("example-resource-group", "example-cluster") + .withProperties(new ChangeDataCaptureDestinationProperties() + .withDestination(new FabricDestinationDetails().withWorkspaceId("aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee")) + .withDesiredState(ChangeDataCaptureDesiredState.ENABLED)) .create(); } } ``` -### HorizonDbFirewallRules_Delete +### ChangeDataCaptureDestinations_Delete ```java /** - * Samples for HorizonDbFirewallRules Delete. + * Samples for ChangeDataCaptureDestinations Delete. */ -public final class HorizonDbFirewallRulesDeleteSamples { +public final class ChangeDataCaptureDestinationsDeleteSamples { /* - * x-ms-original-file: 2026-05-01-preview/FirewallRules_Delete.json + * x-ms-original-file: 2026-10-01-preview/ChangeDataCaptureDestinations_Delete.json */ /** - * Sample code: Delete a HorizonDB firewall rule. + * Sample code: Delete a Microsoft Fabric change data capture destination. * * @param manager Entry point to HorizonDbManager. */ - public static void deleteAHorizonDBFirewallRule(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbFirewallRules() - .delete("exampleresourcegroup", "examplecluster", "examplepool", "examplefirewallrule", - com.azure.core.util.Context.NONE); + public static void deleteAMicrosoftFabricChangeDataCaptureDestination( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.changeDataCaptureDestinations() + .delete("example-resource-group", "example-cluster", "fabric-mirroring", com.azure.core.util.Context.NONE); } } ``` -### HorizonDbFirewallRules_Get +### ChangeDataCaptureDestinations_Get ```java /** - * Samples for HorizonDbFirewallRules Get. + * Samples for ChangeDataCaptureDestinations Get. */ -public final class HorizonDbFirewallRulesGetSamples { +public final class ChangeDataCaptureDestinationsGetSamples { /* - * x-ms-original-file: 2026-05-01-preview/FirewallRules_Get.json + * x-ms-original-file: 2026-10-01-preview/ChangeDataCaptureDestinations_Get.json */ /** - * Sample code: Get a HorizonDB firewall rule. + * Sample code: Get a Microsoft Fabric change data capture destination. * * @param manager Entry point to HorizonDbManager. */ - public static void getAHorizonDBFirewallRule(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbFirewallRules() - .getWithResponse("exampleresourcegroup", "examplecluster", "examplepool", "examplefirewallrule", + public static void + getAMicrosoftFabricChangeDataCaptureDestination(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.changeDataCaptureDestinations() + .getWithResponse("example-resource-group", "example-cluster", "fabric-mirroring", com.azure.core.util.Context.NONE); } } ``` -### HorizonDbFirewallRules_List +### ChangeDataCaptureDestinations_List ```java /** - * Samples for HorizonDbFirewallRules List. + * Samples for ChangeDataCaptureDestinations List. */ -public final class HorizonDbFirewallRulesListSamples { +public final class ChangeDataCaptureDestinationsListSamples { /* - * x-ms-original-file: 2026-05-01-preview/FirewallRules_List.json + * x-ms-original-file: 2026-10-01-preview/ChangeDataCaptureDestinations_List.json */ /** - * Sample code: List HorizonDB firewall rules in a pool. + * Sample code: List Microsoft Fabric change data capture destinations. * * @param manager Entry point to HorizonDbManager. */ - public static void listHorizonDBFirewallRulesInAPool(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbFirewallRules() - .list("exampleresourcegroup", "examplecluster", "examplepool", com.azure.core.util.Context.NONE); + public static void + listMicrosoftFabricChangeDataCaptureDestinations(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.changeDataCaptureDestinations() + .list("example-resource-group", "example-cluster", com.azure.core.util.Context.NONE); } } ``` -### HorizonDbParameterGroups_CreateOrUpdate +### ChangeDataCaptureDestinations_Update ```java -import com.azure.resourcemanager.horizondb.models.HorizonDbParameterGroupProperties; -import com.azure.resourcemanager.horizondb.models.ParameterProperties; -import java.util.Arrays; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDesiredState; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDestination; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDestinationPropertiesForPatchUpdate; + +/** + * Samples for ChangeDataCaptureDestinations Update. + */ +public final class ChangeDataCaptureDestinationsUpdateSamples { + /* + * x-ms-original-file: 2026-10-01-preview/ChangeDataCaptureDestinations_Update.json + */ + /** + * Sample code: Disable a Microsoft Fabric change data capture destination. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void disableAMicrosoftFabricChangeDataCaptureDestination( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + ChangeDataCaptureDestination resource = manager.changeDataCaptureDestinations() + .getWithResponse("example-resource-group", "example-cluster", "fabric-mirroring", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withProperties(new ChangeDataCaptureDestinationPropertiesForPatchUpdate() + .withDesiredState(ChangeDataCaptureDesiredState.DISABLED)) + .apply(); + } +} +``` + +### Clusters_CreateOrReplace + +```java +import com.azure.resourcemanager.horizondb.models.BackupProperties; +import com.azure.resourcemanager.horizondb.models.ClusterCreateMode; +import com.azure.resourcemanager.horizondb.models.ClusterProperties; +import com.azure.resourcemanager.horizondb.models.GeoRedundancyState; +import com.azure.resourcemanager.horizondb.models.HorizonDbClusterDataEncryption; +import com.azure.resourcemanager.horizondb.models.HorizonDbClusterDataEncryptionType; +import com.azure.resourcemanager.horizondb.models.HorizonDbClusterIdentityType; +import com.azure.resourcemanager.horizondb.models.HorizonDbClusterManagedServiceIdentity; +import com.azure.resourcemanager.horizondb.models.Network; +import com.azure.resourcemanager.horizondb.models.PostgreSqlVersion; +import com.azure.resourcemanager.horizondb.models.PublicNetworkAccessState; +import com.azure.resourcemanager.horizondb.models.UserAssignedIdentity; +import java.time.OffsetDateTime; import java.util.HashMap; import java.util.Map; /** - * Samples for HorizonDbParameterGroups CreateOrUpdate. + * Samples for Clusters CreateOrReplace. */ -public final class HorizonDbParameterGroupsCreateOrUpdateSamples { +public final class ClustersCreateOrReplaceSamples { + /* + * x-ms-original-file: 2026-10-01-preview/Clusters_CreateOrReplace.json + */ + /** + * Sample code: Create or replace a HorizonDB cluster. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void createOrReplaceAHorizonDBCluster(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.clusters() + .define("example-cluster") + .withRegion("eastus2") + .withExistingResourceGroup("example-resource-group") + .withTags(mapOf("environment", "production")) + .withProperties(new ClusterProperties().withPostgreSqlVersion(PostgreSqlVersion.V17) + .withNetwork(new Network().withPublicAccess(PublicNetworkAccessState.ENABLED)) + .withBackup(new BackupProperties().withGeoRedundancy(GeoRedundancyState.ENABLED).withRetentionDays(14))) + .withIdentity(new HorizonDbClusterManagedServiceIdentity() + .withType(HorizonDbClusterIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/identity-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/fabric-writer", + new UserAssignedIdentity()))) + .create(); + } + + /* + * x-ms-original-file: 2026-10-01-preview/Clusters_CreateOrReplaceMinimumDefaults.json + */ + /** + * Sample code: Create a PostgreSQL 18 HorizonDB cluster with minimum configuration and service defaults. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void createAPostgreSQL18HorizonDBClusterWithMinimumConfigurationAndServiceDefaults( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.clusters() + .define("minimum-defaults") + .withRegion("eastus2") + .withExistingResourceGroup("example-resource-group") + .withProperties(new ClusterProperties().withPostgreSqlVersion(PostgreSqlVersion.V18) + .withBackup(new BackupProperties().withGeoRedundancy(GeoRedundancyState.DISABLED))) + .create(); + } + + /* + * x-ms-original-file: 2026-10-01-preview/Clusters_CreateOrReplaceWithDataEncryption.json + */ + /** + * Sample code: Create a HorizonDB cluster with customer-managed key data encryption. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void createAHorizonDBClusterWithCustomerManagedKeyDataEncryption( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.clusters() + .define("example-cluster") + .withRegion("eastus2") + .withExistingResourceGroup("example-resource-group") + .withProperties(new ClusterProperties().withPostgreSqlVersion(PostgreSqlVersion.V17) + .withBackup(new BackupProperties().withGeoRedundancy(GeoRedundancyState.DISABLED).withRetentionDays(14)) + .withDataEncryption(new HorizonDbClusterDataEncryption() + .withType(HorizonDbClusterDataEncryptionType.AZURE_KEY_VAULT) + .withPrimaryKeyUri("fakeTokenPlaceholder") + .withPrimaryUserAssignedIdentityId( + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/identity-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/primary-encryption-identity"))) + .withIdentity(new HorizonDbClusterManagedServiceIdentity() + .withType(HorizonDbClusterIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/identity-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/primary-encryption-identity", + new UserAssignedIdentity()))) + .create(); + } + /* - * x-ms-original-file: 2026-05-01-preview/ParameterGroups_CreateOrUpdate.json + * x-ms-original-file: 2026-10-01-preview/Clusters_CreateOrReplacePointInTimeRestore.json */ /** - * Sample code: Create or update a HorizonDB parameter group. + * Sample code: Restore a HorizonDB cluster to a point in time. * * @param manager Entry point to HorizonDbManager. */ public static void - createOrUpdateAHorizonDBParameterGroup(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbParameterGroups() - .define("exampleparametergroup") + restoreAHorizonDBClusterToAPointInTime(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.clusters() + .define("restored-cluster") + .withRegion("eastus2") + .withExistingResourceGroup("example-resource-group") + .withProperties(new ClusterProperties().withCreationMode(ClusterCreateMode.POINT_IN_TIME_RESTORE) + .withPointInTimeUtc(OffsetDateTime.parse("2026-07-27T12:00:00Z")) + .withCreationSourceClusterResourceId( + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/source-cluster") + .withNetwork(new Network().withPublicAccess(PublicNetworkAccessState.DISABLED)) + .withBackup(new BackupProperties().withGeoRedundancy(GeoRedundancyState.ENABLED).withRetentionDays(14))) + .create(); + } + + /* + * x-ms-original-file: 2026-10-01-preview/Clusters_CreateOrReplaceCrossRegionPointInTimeRestore.json + */ + /** + * Sample code: Restore a HorizonDB cluster across Azure regions from the latest available backup. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void restoreAHorizonDBClusterAcrossAzureRegionsFromTheLatestAvailableBackup( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.clusters() + .define("cross-region-restored-cluster") .withRegion("westus2") - .withExistingResourceGroup("exampleresourcegroup") - .withTags(mapOf("env", "dev", "team", "data-platform")) - .withProperties(new HorizonDbParameterGroupProperties() - .withParameters(Arrays.asList(new ParameterProperties().withName("max_connections").withValue("200"), - new ParameterProperties().withName("log_min_error_statement").withValue("error"), - new ParameterProperties().withName("shared_buffers").withValue("2000"))) - .withDescription("Parameter group for high-throughput workloads") - .withPgVersion(17) - .withApplyImmediately(true)) + .withExistingResourceGroup("example-resource-group") + .withProperties(new ClusterProperties().withCreationMode(ClusterCreateMode.POINT_IN_TIME_RESTORE) + .withPointInTimeUtc(OffsetDateTime.parse("2026-07-27T12:00:00Z")) + .withCreationSourceClusterResourceId( + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/source-cluster") + .withCreationSourceClusterLocation("eastus2") + .withNetwork(new Network().withPublicAccess(PublicNetworkAccessState.DISABLED)) + .withBackup(new BackupProperties().withGeoRedundancy(GeoRedundancyState.ENABLED).withRetentionDays(14))) .create(); } @@ -563,176 +801,200 @@ public final class HorizonDbParameterGroupsCreateOrUpdateSamples { } ``` -### HorizonDbParameterGroups_Delete +### Clusters_Delete ```java /** - * Samples for HorizonDbParameterGroups Delete. + * Samples for Clusters Delete. */ -public final class HorizonDbParameterGroupsDeleteSamples { +public final class ClustersDeleteSamples { /* - * x-ms-original-file: 2026-05-01-preview/ParameterGroups_Delete.json + * x-ms-original-file: 2026-10-01-preview/Clusters_Delete.json */ /** - * Sample code: Delete a HorizonDB parameter group. + * Sample code: Delete a HorizonDB cluster. * * @param manager Entry point to HorizonDbManager. */ - public static void deleteAHorizonDBParameterGroup(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbParameterGroups() - .delete("exampleresourcegroup", "exampleparametergroup", com.azure.core.util.Context.NONE); + public static void deleteAHorizonDBCluster(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.clusters().delete("example-resource-group", "example-cluster", com.azure.core.util.Context.NONE); } } ``` -### HorizonDbParameterGroups_GetByResourceGroup +### Clusters_Failover ```java /** - * Samples for HorizonDbParameterGroups GetByResourceGroup. + * Samples for Clusters Failover. */ -public final class HorizonDbParameterGroupsGetByResourceGroupSamples { +public final class ClustersFailoverSamples { /* - * x-ms-original-file: 2026-05-01-preview/ParameterGroups_Get.json + * x-ms-original-file: 2026-10-01-preview/Clusters_Failover.json */ /** - * Sample code: Get a HorizonDB parameter group. + * Sample code: Trigger failover within a HorizonDB cluster. * * @param manager Entry point to HorizonDbManager. */ - public static void getAHorizonDBParameterGroup(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbParameterGroups() - .getByResourceGroupWithResponse("exampleresourcegroup", "exampleparametergroup", - com.azure.core.util.Context.NONE); + public static void + triggerFailoverWithinAHorizonDBCluster(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.clusters().failover("example-resource-group", "example-cluster", com.azure.core.util.Context.NONE); } } ``` -### HorizonDbParameterGroups_List +### Clusters_GetByResourceGroup ```java /** - * Samples for HorizonDbParameterGroups List. + * Samples for Clusters GetByResourceGroup. */ -public final class HorizonDbParameterGroupsListSamples { +public final class ClustersGetByResourceGroupSamples { /* - * x-ms-original-file: 2026-05-01-preview/ParameterGroups_ListBySubscription.json + * x-ms-original-file: 2026-10-01-preview/Clusters_GetMinimumDefaults.json */ /** - * Sample code: List HorizonDB parameter groups in a subscription. + * Sample code: Get a minimum HorizonDB cluster with materialized service defaults. * * @param manager Entry point to HorizonDbManager. */ - public static void - listHorizonDBParameterGroupsInASubscription(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbParameterGroups().list(com.azure.core.util.Context.NONE); + public static void getAMinimumHorizonDBClusterWithMaterializedServiceDefaults( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.clusters() + .getByResourceGroupWithResponse("example-resource-group", "minimum-defaults", + com.azure.core.util.Context.NONE); } -} -``` -### HorizonDbParameterGroups_ListByResourceGroup + /* + * x-ms-original-file: 2026-10-01-preview/Clusters_Get.json + */ + /** + * Sample code: Get a HorizonDB cluster. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void getAHorizonDBCluster(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.clusters() + .getByResourceGroupWithResponse("example-resource-group", "example-cluster", + com.azure.core.util.Context.NONE); + } -```java -/** - * Samples for HorizonDbParameterGroups ListByResourceGroup. - */ -public final class HorizonDbParameterGroupsListByResourceGroupSamples { /* - * x-ms-original-file: 2026-05-01-preview/ParameterGroups_ListByResourceGroup.json + * x-ms-original-file: 2026-10-01-preview/Clusters_GetAfterPoolCreationOnEmptyCluster.json */ /** - * Sample code: List HorizonDB parameter groups in a resource group. + * Sample code: Get a cluster after pool creation while it had no existing pools. * * @param manager Entry point to HorizonDbManager. */ - public static void - listHorizonDBParameterGroupsInAResourceGroup(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbParameterGroups() - .listByResourceGroup("exampleresourcegroup", com.azure.core.util.Context.NONE); + public static void getAClusterAfterPoolCreationWhileItHadNoExistingPools( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.clusters() + .getByResourceGroupWithResponse("example-resource-group", "example-cluster", + com.azure.core.util.Context.NONE); } } ``` -### HorizonDbParameterGroups_ListConnections +### Clusters_List ```java /** - * Samples for HorizonDbParameterGroups ListConnections. + * Samples for Clusters List. */ -public final class HorizonDbParameterGroupsListConnectionsSamples { +public final class ClustersListSamples { /* - * x-ms-original-file: 2026-05-01-preview/ParameterGroups_ListConnections.json + * x-ms-original-file: 2026-10-01-preview/Clusters_ListBySubscription.json */ /** - * Sample code: List connections for a HorizonDB parameter group. + * Sample code: List HorizonDB clusters in a subscription. * * @param manager Entry point to HorizonDbManager. */ public static void - listConnectionsForAHorizonDBParameterGroup(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbParameterGroups() - .listConnections("exampleresourcegroup", "exampleparametergroup", com.azure.core.util.Context.NONE); + listHorizonDBClustersInASubscription(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.clusters().list(com.azure.core.util.Context.NONE); } } ``` -### HorizonDbParameterGroups_ListVersions +### Clusters_ListByResourceGroup ```java /** - * Samples for HorizonDbParameterGroups ListVersions. + * Samples for Clusters ListByResourceGroup. */ -public final class HorizonDbParameterGroupsListVersionsSamples { +public final class ClustersListByResourceGroupSamples { /* - * x-ms-original-file: 2026-05-01-preview/ParameterGroups_ListVersions.json + * x-ms-original-file: 2026-10-01-preview/Clusters_ListByResourceGroup.json */ /** - * Sample code: List parameter groups filtered by version. + * Sample code: List HorizonDB clusters in a resource group. * * @param manager Entry point to HorizonDbManager. */ public static void - listParameterGroupsFilteredByVersion(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbParameterGroups() - .listVersions("exampleresourcegroup", "exampleparametergroup", 22, com.azure.core.util.Context.NONE); + listHorizonDBClustersInAResourceGroup(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.clusters().listByResourceGroup("example-resource-group", com.azure.core.util.Context.NONE); } } ``` -### HorizonDbParameterGroups_Update +### Clusters_Update ```java -import com.azure.resourcemanager.horizondb.models.HorizonDbParameterGroup; -import com.azure.resourcemanager.horizondb.models.HorizonDbParameterGroupPropertiesForPatchUpdate; -import com.azure.resourcemanager.horizondb.models.ParameterProperties; -import java.util.Arrays; +import com.azure.resourcemanager.horizondb.models.BackupPropertiesForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.Cluster; +import com.azure.resourcemanager.horizondb.models.ClusterPropertiesForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.HorizonDbClusterDataEncryptionForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.NetworkForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.PublicNetworkAccessState; import java.util.HashMap; import java.util.Map; /** - * Samples for HorizonDbParameterGroups Update. + * Samples for Clusters Update. */ -public final class HorizonDbParameterGroupsUpdateSamples { +public final class ClustersUpdateSamples { /* - * x-ms-original-file: 2026-05-01-preview/ParameterGroups_Update.json + * x-ms-original-file: 2026-10-01-preview/Clusters_Update.json */ /** - * Sample code: Update a HorizonDB parameter group. + * Sample code: Update a HorizonDB cluster. * * @param manager Entry point to HorizonDbManager. */ - public static void updateAHorizonDBParameterGroup(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - HorizonDbParameterGroup resource = manager.horizonDbParameterGroups() - .getByResourceGroupWithResponse("exampleresourcegroup", "exampleparametergroup", + public static void updateAHorizonDBCluster(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + Cluster resource = manager.clusters() + .getByResourceGroupWithResponse("example-resource-group", "example-cluster", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withTags(mapOf("environment", "production", "team", "data-platform")) + .withProperties(new ClusterPropertiesForPatchUpdate() + .withNetwork(new NetworkForPatchUpdate().withPublicAccess(PublicNetworkAccessState.DISABLED)) + .withBackup(new BackupPropertiesForPatchUpdate().withRetentionDays(21))) + .apply(); + } + + /* + * x-ms-original-file: 2026-10-01-preview/Clusters_UpdateDataEncryption.json + */ + /** + * Sample code: Rotate the customer-managed key used by a HorizonDB cluster. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void rotateTheCustomerManagedKeyUsedByAHorizonDBCluster( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + Cluster resource = manager.clusters() + .getByResourceGroupWithResponse("example-resource-group", "example-cluster", com.azure.core.util.Context.NONE) .getValue(); resource.update() - .withTags(mapOf("team", "updated-data-platform")) - .withProperties(new HorizonDbParameterGroupPropertiesForPatchUpdate() - .withParameters(Arrays.asList(new ParameterProperties().withName("max_connections").withValue("300"), - new ParameterProperties().withName("log_min_error_statement").withValue("warning"))) - .withDescription("Updated parameter group for high-throughput workloads") - .withApplyImmediately(true)) + .withProperties(new ClusterPropertiesForPatchUpdate().withDataEncryption( + new HorizonDbClusterDataEncryptionForPatchUpdate().withPrimaryKeyUri("fakeTokenPlaceholder"))) .apply(); } @@ -750,345 +1012,1663 @@ public final class HorizonDbParameterGroupsUpdateSamples { } ``` -### HorizonDbPools_Get +### DefaultParameterGroups_Get ```java /** - * Samples for HorizonDbPools Get. + * Samples for DefaultParameterGroups Get. */ -public final class HorizonDbPoolsGetSamples { +public final class DefaultParameterGroupsGetSamples { /* - * x-ms-original-file: 2026-05-01-preview/Pools_Get.json + * x-ms-original-file: 2026-10-01-preview/DefaultParameterGroups_Get.json */ /** - * Sample code: Get a HorizonDB pool. + * Sample code: Get a default HorizonDB parameter group by subscription, location, and name. * * @param manager Entry point to HorizonDbManager. */ - public static void getAHorizonDBPool(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbPools() - .getWithResponse("exampleresourcegroup", "examplecluster", "examplepool", com.azure.core.util.Context.NONE); + public static void getADefaultHorizonDBParameterGroupBySubscriptionLocationAndName( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.defaultParameterGroups() + .getWithResponse("eastus2", "default-postgresql-17-provisioned", com.azure.core.util.Context.NONE); } } ``` -### HorizonDbPools_List +### DefaultParameterGroups_ListBySubscriptionAndRegion ```java /** - * Samples for HorizonDbPools List. + * Samples for DefaultParameterGroups ListBySubscriptionAndRegion. */ -public final class HorizonDbPoolsListSamples { +public final class DefaultParameterGroupsListBySubscriptionAndRegionSamples { /* - * x-ms-original-file: 2026-05-01-preview/Pools_List.json + * x-ms-original-file: 2026-10-01-preview/DefaultParameterGroups_List.json */ /** - * Sample code: List HorizonDB pools in a cluster. + * Sample code: List default HorizonDB parameter groups by subscription and region. * * @param manager Entry point to HorizonDbManager. */ - public static void listHorizonDBPoolsInACluster(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbPools().list("exampleresourcegroup", "examplecluster", com.azure.core.util.Context.NONE); + public static void listDefaultHorizonDBParameterGroupsBySubscriptionAndRegion( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.defaultParameterGroups().listBySubscriptionAndRegion("eastus2", com.azure.core.util.Context.NONE); } } ``` -### HorizonDbPrivateEndpointConnections_Delete +### Endpoints_Get ```java /** - * Samples for HorizonDbPrivateEndpointConnections Delete. + * Samples for Endpoints Get. */ -public final class HorizonDbPrivateEndpointConnectionsDeleteSamples { +public final class EndpointsGetSamples { /* - * x-ms-original-file: 2026-05-01-preview/PrivateEndpointConnections_Delete.json + * x-ms-original-file: 2026-10-01-preview/Endpoints_GetReadOnly.json */ /** - * Sample code: Delete a private endpoint connection. + * Sample code: Get a read-only HorizonDB pool endpoint. * * @param manager Entry point to HorizonDbManager. */ - public static void deleteAPrivateEndpointConnection(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbPrivateEndpointConnections() - .delete("exampleresourcegroup", "examplecluster", - "exampleprivateendpointconnection.1fa229cd-bf3f-47f0-8c49-afb36723997e", + public static void getAReadOnlyHorizonDBPoolEndpoint(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.endpoints() + .getWithResponse("example-resource-group", "example-cluster", "example-pool-01", + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-10-01-preview/Endpoints_Get.json + */ + /** + * Sample code: Get a HorizonDB endpoint. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void getAHorizonDBEndpoint(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.endpoints() + .getWithResponse("example-resource-group", "example-cluster", "example-cluster", com.azure.core.util.Context.NONE); } } ``` -### HorizonDbPrivateEndpointConnections_Get +### Endpoints_List ```java /** - * Samples for HorizonDbPrivateEndpointConnections Get. + * Samples for Endpoints List. */ -public final class HorizonDbPrivateEndpointConnectionsGetSamples { +public final class EndpointsListSamples { /* - * x-ms-original-file: 2026-05-01-preview/PrivateEndpointConnections_Get.json + * x-ms-original-file: 2026-10-01-preview/Endpoints_List.json */ /** - * Sample code: Get a private endpoint connection. + * Sample code: List HorizonDB endpoints in a cluster. * * @param manager Entry point to HorizonDbManager. */ - public static void getAPrivateEndpointConnection(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbPrivateEndpointConnections() - .getWithResponse("exampleresourcegroup", "examplecluster", - "exampleprivateendpointconnection.1fa229cd-bf3f-47f0-8c49-afb36723997e", - com.azure.core.util.Context.NONE); + public static void listHorizonDBEndpointsInACluster(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.endpoints().list("example-resource-group", "example-cluster", com.azure.core.util.Context.NONE); } } ``` -### HorizonDbPrivateEndpointConnections_List +### FirewallRules_CreateOrReplace ```java +import com.azure.resourcemanager.horizondb.models.FirewallRuleProperties; + /** - * Samples for HorizonDbPrivateEndpointConnections List. + * Samples for FirewallRules CreateOrReplace. */ -public final class HorizonDbPrivateEndpointConnectionsListSamples { +public final class FirewallRulesCreateOrReplaceSamples { /* - * x-ms-original-file: 2026-05-01-preview/PrivateEndpointConnections_List.json + * x-ms-original-file: 2026-10-01-preview/FirewallRules_CreateOrReplace.json */ /** - * Sample code: List all private endpoint connections on a cluster. + * Sample code: Create or replace a firewall rule on a HorizonDB pool. * * @param manager Entry point to HorizonDbManager. */ public static void - listAllPrivateEndpointConnectionsOnACluster(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbPrivateEndpointConnections() - .list("exampleresourcegroup", "examplecluster", com.azure.core.util.Context.NONE); + createOrReplaceAFirewallRuleOnAHorizonDBPool(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.firewallRules() + .define("example-firewall-rule-01") + .withExistingPool("example-resource-group", "example-cluster", "example-pool-01") + .withProperties(new FirewallRuleProperties().withStartIpAddress("10.0.0.1") + .withEndIpAddress("10.0.0.254") + .withDescription("Allow access from the corporate network")) + .create(); } } ``` -### HorizonDbPrivateEndpointConnections_UpdateStatus +### FirewallRules_Delete ```java -import com.azure.resourcemanager.horizondb.fluent.models.PrivateEndpointConnectionResourceInner; -import com.azure.resourcemanager.horizondb.models.PrivateEndpointConnectionProperties; -import com.azure.resourcemanager.horizondb.models.PrivateEndpointServiceConnectionStatus; -import com.azure.resourcemanager.horizondb.models.PrivateLinkServiceConnectionState; - /** - * Samples for HorizonDbPrivateEndpointConnections UpdateStatus. + * Samples for FirewallRules Delete. */ -public final class HorizonDbPrivateEndpointConnectionsUpdateStatusSamples { +public final class FirewallRulesDeleteSamples { /* - * x-ms-original-file: 2026-05-01-preview/PrivateEndpointConnections_UpdateStatus.json + * x-ms-original-file: 2026-10-01-preview/FirewallRules_Delete.json */ /** - * Sample code: Approve or reject a private endpoint connection. + * Sample code: Delete a firewall rule from a HorizonDB pool. * * @param manager Entry point to HorizonDbManager. */ public static void - approveOrRejectAPrivateEndpointConnection(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbPrivateEndpointConnections() - .updateStatusWithResponse("exampleresourcegroup", "examplecluster", - "exampleprivateendpointconnection.1fa229cd-bf3f-47f0-8c49-afb36723997e", - new PrivateEndpointConnectionResourceInner().withProperties(new PrivateEndpointConnectionProperties() - .withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState() - .withStatus(PrivateEndpointServiceConnectionStatus.APPROVED) - .withDescription("Approved by johndoe@contoso.com"))), + deleteAFirewallRuleFromAHorizonDBPool(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.firewallRules() + .delete("example-resource-group", "example-cluster", "example-pool-01", "example-firewall-rule-01", com.azure.core.util.Context.NONE); } } ``` -### HorizonDbPrivateLinkResources_Get +### FirewallRules_Get ```java /** - * Samples for HorizonDbPrivateLinkResources Get. + * Samples for FirewallRules Get. */ -public final class HorizonDbPrivateLinkResourcesGetSamples { +public final class FirewallRulesGetSamples { /* - * x-ms-original-file: 2026-05-01-preview/PrivateLinkResources_Get.json + * x-ms-original-file: 2026-10-01-preview/FirewallRules_Get.json */ /** - * Sample code: Gets a private link resource for HorizonDB. + * Sample code: Get a firewall rule on a HorizonDB pool. * * @param manager Entry point to HorizonDbManager. */ - public static void - getsAPrivateLinkResourceForHorizonDB(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbPrivateLinkResources() - .getWithResponse("exampleresourcegroup", "examplecluster", "default", com.azure.core.util.Context.NONE); + public static void getAFirewallRuleOnAHorizonDBPool(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.firewallRules() + .getWithResponse("example-resource-group", "example-cluster", "example-pool-01", "example-firewall-rule-01", + com.azure.core.util.Context.NONE); } } ``` -### HorizonDbPrivateLinkResources_List +### FirewallRules_List ```java /** - * Samples for HorizonDbPrivateLinkResources List. + * Samples for FirewallRules List. */ -public final class HorizonDbPrivateLinkResourcesListSamples { +public final class FirewallRulesListSamples { /* - * x-ms-original-file: 2026-05-01-preview/PrivateLinkResources_List.json + * x-ms-original-file: 2026-10-01-preview/FirewallRules_List.json */ /** - * Sample code: Gets private link resources for HorizonDB. + * Sample code: List firewall rules in a HorizonDB pool. * * @param manager Entry point to HorizonDbManager. */ - public static void - getsPrivateLinkResourcesForHorizonDB(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbPrivateLinkResources() - .list("exampleresourcegroup", "examplecluster", com.azure.core.util.Context.NONE); + public static void listFirewallRulesInAHorizonDBPool(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.firewallRules() + .list("example-resource-group", "example-cluster", "example-pool-01", com.azure.core.util.Context.NONE); } } ``` -### HorizonDbReplicas_CreateOrUpdate +### IdentityAssignments_CreateOrReplace ```java -import com.azure.resourcemanager.horizondb.models.HorizonDbReplicaProperties; -import com.azure.resourcemanager.horizondb.models.ReplicaRole; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureIdentityAssignmentProperties; /** - * Samples for HorizonDbReplicas CreateOrUpdate. + * Samples for IdentityAssignments CreateOrReplace. */ -public final class HorizonDbReplicasCreateOrUpdateSamples { +public final class IdentityAssignmentsCreateOrReplaceSamples { /* - * x-ms-original-file: 2026-05-01-preview/Replicas_CreateOrUpdate.json + * x-ms-original-file: 2026-10-01-preview/IdentityAssignments_CreateOrReplace.json */ /** - * Sample code: Create or update a HorizonDB replica. + * Sample code: Create a change data capture identity assignment for a UAMI attached to the parent cluster. * * @param manager Entry point to HorizonDbManager. */ - public static void createOrUpdateAHorizonDBReplica(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbReplicas() - .define("examplereplica") - .withExistingPool("exampleresourcegroup", "examplecluster", "examplepool") - .withProperties(new HorizonDbReplicaProperties().withRole(ReplicaRole.READ).withAvailabilityZone("1")) + public static void createAChangeDataCaptureIdentityAssignmentForAUAMIAttachedToTheParentCluster( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.identityAssignments() + .define("fabric-writer") + .withExistingChangeDataCaptureDestination("example-resource-group", "example-cluster", "fabric-mirroring") + .withProperties(new ChangeDataCaptureIdentityAssignmentProperties().withIdentityResourceId( + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/identity-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/fabric-writer")) .create(); } } ``` -### HorizonDbReplicas_Delete +### IdentityAssignments_Delete ```java /** - * Samples for HorizonDbReplicas Delete. + * Samples for IdentityAssignments Delete. */ -public final class HorizonDbReplicasDeleteSamples { +public final class IdentityAssignmentsDeleteSamples { /* - * x-ms-original-file: 2026-05-01-preview/Replicas_Delete.json + * x-ms-original-file: 2026-10-01-preview/IdentityAssignments_Delete.json */ /** - * Sample code: Delete a HorizonDB replica. + * Sample code: Delete an inactive change data capture identity assignment. * * @param manager Entry point to HorizonDbManager. */ - public static void deleteAHorizonDBReplica(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbReplicas() - .delete("exampleresourcegroup", "examplecluster", "examplepool", "examplereplica", + public static void deleteAnInactiveChangeDataCaptureIdentityAssignment( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.identityAssignments() + .delete("example-resource-group", "example-cluster", "fabric-mirroring", "fabric-writer", com.azure.core.util.Context.NONE); } } ``` -### HorizonDbReplicas_Get +### IdentityAssignments_Get ```java /** - * Samples for HorizonDbReplicas Get. + * Samples for IdentityAssignments Get. */ -public final class HorizonDbReplicasGetSamples { +public final class IdentityAssignmentsGetSamples { /* - * x-ms-original-file: 2026-05-01-preview/Replicas_Get.json + * x-ms-original-file: 2026-10-01-preview/IdentityAssignments_Get.json */ /** - * Sample code: Get a HorizonDB replica. + * Sample code: Get a change data capture identity assignment. * * @param manager Entry point to HorizonDbManager. */ - public static void getAHorizonDBReplica(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbReplicas() - .getWithResponse("exampleresourcegroup", "examplecluster", "examplepool", "examplereplica", + public static void + getAChangeDataCaptureIdentityAssignment(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.identityAssignments() + .getWithResponse("example-resource-group", "example-cluster", "fabric-mirroring", "fabric-writer", com.azure.core.util.Context.NONE); } } ``` -### HorizonDbReplicas_List +### IdentityAssignments_List ```java /** - * Samples for HorizonDbReplicas List. + * Samples for IdentityAssignments List. */ -public final class HorizonDbReplicasListSamples { +public final class IdentityAssignmentsListSamples { /* - * x-ms-original-file: 2026-05-01-preview/Replicas_List.json + * x-ms-original-file: 2026-10-01-preview/IdentityAssignments_List.json */ /** - * Sample code: List HorizonDB replicas in a pool. + * Sample code: List change data capture identity assignments. * * @param manager Entry point to HorizonDbManager. */ - public static void listHorizonDBReplicasInAPool(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbReplicas() - .list("exampleresourcegroup", "examplecluster", "examplepool", com.azure.core.util.Context.NONE); + public static void + listChangeDataCaptureIdentityAssignments(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.identityAssignments() + .list("example-resource-group", "example-cluster", "fabric-mirroring", com.azure.core.util.Context.NONE); } } ``` -### HorizonDbReplicas_Update +### LogCaptureConfigurations_Get ```java -import com.azure.resourcemanager.horizondb.models.HorizonDbReplica; -import com.azure.resourcemanager.horizondb.models.HorizonDbReplicaPropertiesForPatchUpdate; -import com.azure.resourcemanager.horizondb.models.ReplicaRole; - /** - * Samples for HorizonDbReplicas Update. + * Samples for LogCaptureConfigurations Get. */ -public final class HorizonDbReplicasUpdateSamples { +public final class LogCaptureConfigurationsGetSamples { /* - * x-ms-original-file: 2026-05-01-preview/Replicas_Update.json + * x-ms-original-file: 2026-10-01-preview/LogCaptureConfigurations_Get.json */ /** - * Sample code: Update a HorizonDB replica. + * Sample code: Get the PostgreSQL server log capture configuration. * * @param manager Entry point to HorizonDbManager. */ - public static void updateAHorizonDBReplica(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - HorizonDbReplica resource = manager.horizonDbReplicas() - .getWithResponse("exampleresourcegroup", "examplecluster", "examplepool", "examplereplica", - com.azure.core.util.Context.NONE) - .getValue(); - resource.update() - .withProperties(new HorizonDbReplicaPropertiesForPatchUpdate().withRole(ReplicaRole.READ_WRITE)) - .apply(); + public static void + getThePostgreSQLServerLogCaptureConfiguration(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.logCaptureConfigurations() + .getWithResponse("example-resource-group", "example-cluster", "PostgreSqlServer", + com.azure.core.util.Context.NONE); } } ``` -### Operations_List +### LogCaptureConfigurations_List ```java /** - * Samples for Operations List. + * Samples for LogCaptureConfigurations List. */ -public final class OperationsListSamples { +public final class LogCaptureConfigurationsListSamples { /* - * x-ms-original-file: 2026-05-01-preview/Operations_List.json + * x-ms-original-file: 2026-10-01-preview/LogCaptureConfigurations_List.json */ /** - * Sample code: List operations for Microsoft.HorizonDB. + * Sample code: List log capture configurations. * * @param manager Entry point to HorizonDbManager. */ - public static void - listOperationsForMicrosoftHorizonDB(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.operations().list(com.azure.core.util.Context.NONE); + public static void listLogCaptureConfigurations(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.logCaptureConfigurations() + .list("example-resource-group", "example-cluster", com.azure.core.util.Context.NONE); + } +} +``` + +### LogCaptureConfigurations_Update + +```java +import com.azure.resourcemanager.horizondb.models.LogCaptureConfigurationForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.LogCaptureConfigurationPropertiesForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.LogCaptureState; + +/** + * Samples for LogCaptureConfigurations Update. + */ +public final class LogCaptureConfigurationsUpdateSamples { + /* + * x-ms-original-file: 2026-10-01-preview/LogCaptureConfigurations_Update.json + */ + /** + * Sample code: Disable PostgreSQL server log capture. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void disablePostgreSQLServerLogCapture(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.logCaptureConfigurations() + .update("example-resource-group", "example-cluster", "PostgreSqlServer", + new LogCaptureConfigurationForPatchUpdate().withProperties( + new LogCaptureConfigurationPropertiesForPatchUpdate().withState(LogCaptureState.DISABLED)), + com.azure.core.util.Context.NONE); + } +} +``` + +### LogFiles_Get + +```java +/** + * Samples for LogFiles Get. + */ +public final class LogFilesGetSamples { + /* + * x-ms-original-file: 2026-10-01-preview/LogFiles_Get.json + */ + /** + * Sample code: Get captured log file metadata. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void getCapturedLogFileMetadata(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.logFiles() + .getWithResponse("example-resource-group", "example-cluster", "11111111-1111-1111-1111-111111111111", + com.azure.core.util.Context.NONE); + } +} +``` + +### LogFiles_List + +```java +/** + * Samples for LogFiles List. + */ +public final class LogFilesListSamples { + /* + * x-ms-original-file: 2026-10-01-preview/LogFiles_List.json + */ + /** + * Sample code: List captured log files. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void listCapturedLogFiles(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.logFiles().list("example-resource-group", "example-cluster", com.azure.core.util.Context.NONE); + } +} +``` + +### LogFiles_ListDownloadUrls + +```java +/** + * Samples for LogFiles ListDownloadUrls. + */ +public final class LogFilesListDownloadUrlsSamples { + /* + * x-ms-original-file: 2026-10-01-preview/LogFiles_ListDownloadUrls.json + */ + /** + * Sample code: List a signed URL for downloading a captured log file. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + listASignedURLForDownloadingACapturedLogFile(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.logFiles() + .listDownloadUrlsWithResponse("example-resource-group", "example-cluster", + "22222222-2222-2222-2222-222222222222", com.azure.core.util.Context.NONE); + } +} +``` + +### MaintenanceEvents_ApplyNow + +```java +/** + * Samples for MaintenanceEvents ApplyNow. + */ +public final class MaintenanceEventsApplyNowSamples { + /* + * x-ms-original-file: 2026-10-01-preview/MaintenanceEvents_ApplyNow.json + */ + /** + * Sample code: Apply a maintenance event immediately for a HorizonDB pool. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void applyAMaintenanceEventImmediatelyForAHorizonDBPool( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.maintenanceEvents() + .applyNow("example-resource-group", "example-cluster", "example-pool-01", "ABCD-123", + com.azure.core.util.Context.NONE); + } +} +``` + +### MaintenanceEvents_Get + +```java +/** + * Samples for MaintenanceEvents Get. + */ +public final class MaintenanceEventsGetSamples { + /* + * x-ms-original-file: 2026-10-01-preview/MaintenanceEvents_Get.json + */ + /** + * Sample code: Get information about a maintenance event for a HorizonDB pool. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void getInformationAboutAMaintenanceEventForAHorizonDBPool( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.maintenanceEvents() + .getWithResponse("example-resource-group", "example-cluster", "example-pool-01", "ABCD-123", + com.azure.core.util.Context.NONE); + } +} +``` + +### MaintenanceEvents_List + +```java +/** + * Samples for MaintenanceEvents List. + */ +public final class MaintenanceEventsListSamples { + /* + * x-ms-original-file: 2026-10-01-preview/MaintenanceEvents_ListWithFilter.json + */ + /** + * Sample code: List upcoming maintenance events for a HorizonDB pool. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + listUpcomingMaintenanceEventsForAHorizonDBPool(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.maintenanceEvents() + .list("example-resource-group", "example-cluster", "example-pool-01", + "properties/status eq 'Planned' or properties/status eq 'InProgress'", + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-10-01-preview/MaintenanceEvents_List.json + */ + /** + * Sample code: List maintenance events for a HorizonDB pool. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + listMaintenanceEventsForAHorizonDBPool(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.maintenanceEvents() + .list("example-resource-group", "example-cluster", "example-pool-01", null, + com.azure.core.util.Context.NONE); + } +} +``` + +### MaintenanceEvents_Reschedule + +```java +import com.azure.resourcemanager.horizondb.models.MaintenanceEventRescheduleRequest; +import java.time.OffsetDateTime; + +/** + * Samples for MaintenanceEvents Reschedule. + */ +public final class MaintenanceEventsRescheduleSamples { + /* + * x-ms-original-file: 2026-10-01-preview/MaintenanceEvents_Reschedule.json + */ + /** + * Sample code: Reschedule a maintenance event for a HorizonDB pool. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + rescheduleAMaintenanceEventForAHorizonDBPool(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.maintenanceEvents() + .reschedule("example-resource-group", "example-cluster", "example-pool-01", "ABCD-123", + new MaintenanceEventRescheduleRequest().withPostponeToDateTimeUtc( + OffsetDateTime.parse("2026-08-20T10:00:00Z")), + com.azure.core.util.Context.NONE); + } +} +``` + +### MicrosoftEntraAdministrators_CreateOrReplace + +```java +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAdministratorPropertiesForAdd; +import com.azure.resourcemanager.horizondb.models.PrincipalTypes; + +/** + * Samples for MicrosoftEntraAdministrators CreateOrReplace. + */ +public final class MicrosoftEntraAdministratorsCreateOrReplaceSamples { + /* + * x-ms-original-file: 2026-10-01-preview/MicrosoftEntraAdministrators_CreateOrReplace.json + */ + /** + * Sample code: Create or replace a Microsoft Entra administrator for a HorizonDB cluster. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void createOrReplaceAMicrosoftEntraAdministratorForAHorizonDBCluster( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.microsoftEntraAdministrators() + .define("11111111-1111-1111-1111-111111111111") + .withExistingCluster("example-resource-group", "example-cluster") + .withProperties(new MicrosoftEntraAdministratorPropertiesForAdd() + .withPrincipalName("database.administrators@contoso.com") + .withPrincipalType(PrincipalTypes.GROUP) + .withTenantId("22222222-2222-2222-2222-222222222222")) + .create(); + } +} +``` + +### MicrosoftEntraAdministrators_Delete + +```java +/** + * Samples for MicrosoftEntraAdministrators Delete. + */ +public final class MicrosoftEntraAdministratorsDeleteSamples { + /* + * x-ms-original-file: 2026-10-01-preview/MicrosoftEntraAdministrators_Delete.json + */ + /** + * Sample code: Delete a Microsoft Entra administrator from a HorizonDB cluster. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void deleteAMicrosoftEntraAdministratorFromAHorizonDBCluster( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.microsoftEntraAdministrators() + .delete("example-resource-group", "example-cluster", "11111111-1111-1111-1111-111111111111", + com.azure.core.util.Context.NONE); + } +} +``` + +### MicrosoftEntraAdministrators_Get + +```java +/** + * Samples for MicrosoftEntraAdministrators Get. + */ +public final class MicrosoftEntraAdministratorsGetSamples { + /* + * x-ms-original-file: 2026-10-01-preview/MicrosoftEntraAdministrators_Get.json + */ + /** + * Sample code: Get a Microsoft Entra administrator for a HorizonDB cluster. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void getAMicrosoftEntraAdministratorForAHorizonDBCluster( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.microsoftEntraAdministrators() + .getWithResponse("example-resource-group", "example-cluster", "11111111-1111-1111-1111-111111111111", + com.azure.core.util.Context.NONE); + } +} +``` + +### MicrosoftEntraAdministrators_List + +```java +/** + * Samples for MicrosoftEntraAdministrators List. + */ +public final class MicrosoftEntraAdministratorsListSamples { + /* + * x-ms-original-file: 2026-10-01-preview/MicrosoftEntraAdministrators_List.json + */ + /** + * Sample code: List Microsoft Entra administrators for a HorizonDB cluster. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void listMicrosoftEntraAdministratorsForAHorizonDBCluster( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.microsoftEntraAdministrators() + .list("example-resource-group", "example-cluster", com.azure.core.util.Context.NONE); + } +} +``` + +### MicrosoftEntraAuthentications_CreateOrReplace + +```java +import com.azure.resourcemanager.horizondb.fluent.models.MicrosoftEntraAuthenticationInner; +import com.azure.resourcemanager.horizondb.models.AuthenticationState; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAuthenticationProperties; + +/** + * Samples for MicrosoftEntraAuthentications CreateOrReplace. + */ +public final class MicrosoftEntraAuthenticationsCreateOrReplaceSamples { + /* + * x-ms-original-file: 2026-10-01-preview/MicrosoftEntraAuthentications_CreateOrReplaceDisabled.json + */ + /** + * Sample code: Disable Microsoft Entra authentication declaratively. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + disableMicrosoftEntraAuthenticationDeclaratively(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.microsoftEntraAuthentications() + .createOrReplace("example-resource-group", "example-cluster", + new MicrosoftEntraAuthenticationInner().withProperties( + new MicrosoftEntraAuthenticationProperties().withState(AuthenticationState.DISABLED)), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-10-01-preview/MicrosoftEntraAuthentications_CreateOrReplaceEnabled.json + */ + /** + * Sample code: Enable Microsoft Entra authentication declaratively. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + enableMicrosoftEntraAuthenticationDeclaratively(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.microsoftEntraAuthentications() + .createOrReplace("example-resource-group", "example-cluster", + new MicrosoftEntraAuthenticationInner().withProperties( + new MicrosoftEntraAuthenticationProperties().withState(AuthenticationState.ENABLED)), + com.azure.core.util.Context.NONE); + } +} +``` + +### MicrosoftEntraAuthentications_Get + +```java +/** + * Samples for MicrosoftEntraAuthentications Get. + */ +public final class MicrosoftEntraAuthenticationsGetSamples { + /* + * x-ms-original-file: 2026-10-01-preview/MicrosoftEntraAuthentications_Get.json + */ + /** + * Sample code: Get the Microsoft Entra authentication method. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + getTheMicrosoftEntraAuthenticationMethod(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.microsoftEntraAuthentications() + .getWithResponse("example-resource-group", "example-cluster", com.azure.core.util.Context.NONE); + } +} +``` + +### MicrosoftEntraAuthentications_Update + +```java +import com.azure.resourcemanager.horizondb.models.AuthenticationState; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAuthenticationForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAuthenticationPropertiesForPatchUpdate; + +/** + * Samples for MicrosoftEntraAuthentications Update. + */ +public final class MicrosoftEntraAuthenticationsUpdateSamples { + /* + * x-ms-original-file: 2026-10-01-preview/MicrosoftEntraAuthentications_Disable.json + */ + /** + * Sample code: Disable Microsoft Entra authentication without modifying existing database roles. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void disableMicrosoftEntraAuthenticationWithoutModifyingExistingDatabaseRoles( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.microsoftEntraAuthentications() + .update("example-resource-group", "example-cluster", + new MicrosoftEntraAuthenticationForPatchUpdate().withProperties( + new MicrosoftEntraAuthenticationPropertiesForPatchUpdate().withState(AuthenticationState.DISABLED)), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-10-01-preview/MicrosoftEntraAuthentications_Enable.json + */ + /** + * Sample code: Start enabling Microsoft Entra authentication. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + startEnablingMicrosoftEntraAuthentication(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.microsoftEntraAuthentications() + .update("example-resource-group", "example-cluster", + new MicrosoftEntraAuthenticationForPatchUpdate().withProperties( + new MicrosoftEntraAuthenticationPropertiesForPatchUpdate().withState(AuthenticationState.ENABLED)), + com.azure.core.util.Context.NONE); + } +} +``` + +### Nodes_Get + +```java +/** + * Samples for Nodes Get. + */ +public final class NodesGetSamples { + /* + * x-ms-original-file: 2026-10-01-preview/Nodes_Get.json + */ + /** + * Sample code: Get a HorizonDB node. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void getAHorizonDBNode(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.nodes() + .getWithResponse("example-resource-group", "example-cluster", "example-pool-01", "node-01", + com.azure.core.util.Context.NONE); + } +} +``` + +### Nodes_List + +```java +/** + * Samples for Nodes List. + */ +public final class NodesListSamples { + /* + * x-ms-original-file: 2026-10-01-preview/Nodes_List.json + */ + /** + * Sample code: List the nodes allocated to a HorizonDB pool. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + listTheNodesAllocatedToAHorizonDBPool(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.nodes() + .list("example-resource-group", "example-cluster", "example-pool-01", com.azure.core.util.Context.NONE); + } +} +``` + +### Operations_List + +```java +/** + * Samples for Operations List. + */ +public final class OperationsListSamples { + /* + * x-ms-original-file: 2026-10-01-preview/Operations_List.json + */ + /** + * Sample code: List operations for Microsoft.HorizonDb. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + listOperationsForMicrosoftHorizonDb(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.operations().list(com.azure.core.util.Context.NONE); + } +} +``` + +### ParameterGroups_CreateOrReplace + +```java +import com.azure.resourcemanager.horizondb.models.ParameterGroupProperties; +import com.azure.resourcemanager.horizondb.models.ParameterProperties; +import com.azure.resourcemanager.horizondb.models.PostgreSqlVersion; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for ParameterGroups CreateOrReplace. + */ +public final class ParameterGroupsCreateOrReplaceSamples { + /* + * x-ms-original-file: 2026-10-01-preview/ParameterGroups_CreateOrReplace.json + */ + /** + * Sample code: Create or replace a HorizonDB parameter group for a PostgreSQL version. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void createOrReplaceAHorizonDBParameterGroupForAPostgreSQLVersion( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.parameterGroups() + .define("production-parameters") + .withRegion("eastus2") + .withExistingResourceGroup("example-resource-group") + .withTags(mapOf("environment", "production")) + .withProperties(new ParameterGroupProperties() + .withParameters(Arrays.asList( + new ParameterProperties().withName("application_name").withValue("horizondb-production"), + new ParameterProperties().withName("autovacuum").withValue("off"), + new ParameterProperties().withName("wal_receiver_timeout").withValue("45000"), + new ParameterProperties().withName("work_mem").withValue("8192"), + new ParameterProperties().withName("xmlbinary").withValue("base64"))) + .withDescription("Parameters for production transactional workloads") + .withPostgreSqlVersion(PostgreSqlVersion.V17)) + .create(); + } + + // 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; + } +} +``` + +### ParameterGroups_Delete + +```java +/** + * Samples for ParameterGroups Delete. + */ +public final class ParameterGroupsDeleteSamples { + /* + * x-ms-original-file: 2026-10-01-preview/ParameterGroups_Delete.json + */ + /** + * Sample code: Delete a HorizonDB parameter group. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void deleteAHorizonDBParameterGroup(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.parameterGroups() + .delete("example-resource-group", "production-parameters", com.azure.core.util.Context.NONE); + } +} +``` + +### ParameterGroups_GetByResourceGroup + +```java +/** + * Samples for ParameterGroups GetByResourceGroup. + */ +public final class ParameterGroupsGetByResourceGroupSamples { + /* + * x-ms-original-file: 2026-10-01-preview/ParameterGroups_Get.json + */ + /** + * Sample code: Get a HorizonDB parameter group. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void getAHorizonDBParameterGroup(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.parameterGroups() + .getByResourceGroupWithResponse("example-resource-group", "production-parameters", + com.azure.core.util.Context.NONE); + } +} +``` + +### ParameterGroups_List + +```java +/** + * Samples for ParameterGroups List. + */ +public final class ParameterGroupsListSamples { + /* + * x-ms-original-file: 2026-10-01-preview/ParameterGroups_ListBySubscription.json + */ + /** + * Sample code: List HorizonDB parameter groups in a subscription. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + listHorizonDBParameterGroupsInASubscription(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.parameterGroups().list(com.azure.core.util.Context.NONE); + } +} +``` + +### ParameterGroups_ListByResourceGroup + +```java +/** + * Samples for ParameterGroups ListByResourceGroup. + */ +public final class ParameterGroupsListByResourceGroupSamples { + /* + * x-ms-original-file: 2026-10-01-preview/ParameterGroups_ListByResourceGroup.json + */ + /** + * Sample code: List HorizonDB parameter groups in a resource group. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + listHorizonDBParameterGroupsInAResourceGroup(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.parameterGroups().listByResourceGroup("example-resource-group", com.azure.core.util.Context.NONE); + } +} +``` + +### ParameterGroups_ListConnections + +```java +/** + * Samples for ParameterGroups ListConnections. + */ +public final class ParameterGroupsListConnectionsSamples { + /* + * x-ms-original-file: 2026-10-01-preview/ParameterGroups_ListConnections.json + */ + /** + * Sample code: List HorizonDB pools connected to a parameter group. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + listHorizonDBPoolsConnectedToAParameterGroup(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.parameterGroups() + .listConnections("example-resource-group", "production-parameters", com.azure.core.util.Context.NONE); + } +} +``` + +### ParameterGroups_Update + +```java +import com.azure.resourcemanager.horizondb.models.ParameterGroup; +import com.azure.resourcemanager.horizondb.models.ParameterGroupPropertiesForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.ParameterProperties; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for ParameterGroups Update. + */ +public final class ParameterGroupsUpdateSamples { + /* + * x-ms-original-file: 2026-10-01-preview/ParameterGroups_Update.json + */ + /** + * Sample code: Update a HorizonDB parameter group. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void updateAHorizonDBParameterGroup(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + ParameterGroup resource = manager.parameterGroups() + .getByResourceGroupWithResponse("example-resource-group", "production-parameters", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withTags(mapOf("environment", "production", "team", "data-platform")) + .withProperties(new ParameterGroupPropertiesForPatchUpdate() + .withParameters(Arrays.asList( + new ParameterProperties().withName("application_name").withValue("horizondb-production"), + new ParameterProperties().withName("autovacuum").withValue("off"), + new ParameterProperties().withName("wal_receiver_timeout").withValue("45000"), + new ParameterProperties().withName("work_mem").withValue("8192"), + new ParameterProperties().withName("xmlbinary").withValue("base64"))) + .withDescription("Updated parameters for production transactional workloads")) + .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; + } +} +``` + +### PasswordAuthentications_CreateOrReplace + +```java +import com.azure.resourcemanager.horizondb.fluent.models.PasswordAuthenticationInner; +import com.azure.resourcemanager.horizondb.models.AuthenticationState; +import com.azure.resourcemanager.horizondb.models.PasswordAuthenticationProperties; + +/** + * Samples for PasswordAuthentications CreateOrReplace. + */ +public final class PasswordAuthenticationsCreateOrReplaceSamples { + /* + * x-ms-original-file: 2026-10-01-preview/PasswordAuthentications_CreateOrReplace.json + */ + /** + * Sample code: Enable password authentication and set the administrator login and password during initial setup. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void enablePasswordAuthenticationAndSetTheAdministratorLoginAndPasswordDuringInitialSetup( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.passwordAuthentications() + .createOrReplace("example-resource-group", "example-cluster", + new PasswordAuthenticationInner() + .withProperties(new PasswordAuthenticationProperties().withState(AuthenticationState.ENABLED) + .withAdministratorLogin("adminlogin1") + .withAdministratorLoginPassword("fakeTokenPlaceholder")), + com.azure.core.util.Context.NONE); + } +} +``` + +### PasswordAuthentications_Get + +```java +/** + * Samples for PasswordAuthentications Get. + */ +public final class PasswordAuthenticationsGetSamples { + /* + * x-ms-original-file: 2026-10-01-preview/PasswordAuthentications_Get.json + */ + /** + * Sample code: Get the password authentication method. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + getThePasswordAuthenticationMethod(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.passwordAuthentications() + .getWithResponse("example-resource-group", "example-cluster", com.azure.core.util.Context.NONE); + } +} +``` + +### PasswordAuthentications_Update + +```java +import com.azure.resourcemanager.horizondb.models.AuthenticationState; +import com.azure.resourcemanager.horizondb.models.PasswordAuthenticationForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.PasswordAuthenticationPropertiesForPatchUpdate; + +/** + * Samples for PasswordAuthentications Update. + */ +public final class PasswordAuthenticationsUpdateSamples { + /* + * x-ms-original-file: 2026-10-01-preview/PasswordAuthentications_ResetPassword.json + */ + /** + * Sample code: Reset the sole PostgreSQL administrator role password. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + resetTheSolePostgreSQLAdministratorRolePassword(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.passwordAuthentications() + .update("example-resource-group", "example-cluster", + new PasswordAuthenticationForPatchUpdate() + .withProperties(new PasswordAuthenticationPropertiesForPatchUpdate() + .withAdministratorLoginPassword("fakeTokenPlaceholder")), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-10-01-preview/PasswordAuthentications_Enable.json + */ + /** + * Sample code: Enable password authentication and reset the existing administrator password. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void enablePasswordAuthenticationAndResetTheExistingAdministratorPassword( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.passwordAuthentications() + .update("example-resource-group", "example-cluster", + new PasswordAuthenticationForPatchUpdate().withProperties( + new PasswordAuthenticationPropertiesForPatchUpdate().withState(AuthenticationState.ENABLED) + .withAdministratorLoginPassword("fakeTokenPlaceholder")), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-10-01-preview/PasswordAuthentications_Disable.json + */ + /** + * Sample code: Disable password authentication. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void disablePasswordAuthentication(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.passwordAuthentications() + .update("example-resource-group", "example-cluster", + new PasswordAuthenticationForPatchUpdate().withProperties( + new PasswordAuthenticationPropertiesForPatchUpdate().withState(AuthenticationState.DISABLED)), + com.azure.core.util.Context.NONE); + } +} +``` + +### Pools_CreateOrReplace + +```java +import com.azure.resourcemanager.horizondb.models.ComputeProcessorType; +import com.azure.resourcemanager.horizondb.models.ParameterApplyMethod; +import com.azure.resourcemanager.horizondb.models.PoolComputeModel; +import com.azure.resourcemanager.horizondb.models.PoolComputeModelType; +import com.azure.resourcemanager.horizondb.models.PoolHighAvailability; +import com.azure.resourcemanager.horizondb.models.PoolHighAvailabilityMode; +import com.azure.resourcemanager.horizondb.models.PoolParameterGroupReference; +import com.azure.resourcemanager.horizondb.models.PoolProperties; +import com.azure.resourcemanager.horizondb.models.SystemScheduledMaintenanceProperties; + +/** + * Samples for Pools CreateOrReplace. + */ +public final class PoolsCreateOrReplaceSamples { + /* + * x-ms-original-file: 2026-10-01-preview/Pools_CreateOrReplace.json + */ + /** + * Sample code: Create a minimum provisioned HorizonDB pool. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + createAMinimumProvisionedHorizonDBPool(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.pools() + .define("example-pool-01") + .withExistingCluster("example-resource-group", "example-cluster") + .withProperties(new PoolProperties() + .withComputeModel(new PoolComputeModel().withType(PoolComputeModelType.PROVISIONED) + .withComputeProcessor(ComputeProcessorType.AMD) + .withComputeGeneration(3) + .withVCores(2)) + .withNodeCount(1) + .withHighAvailability(new PoolHighAvailability().withMode(PoolHighAvailabilityMode.DISABLED)) + .withParameterGroup(new PoolParameterGroupReference().withParameterGroupResourceId( + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.HorizonDb/locations/eastus2/parameterGroups/default-postgresql-17-provisioned") + .withApplyMethod(ParameterApplyMethod.IMMEDIATE)) + .withScheduledMaintenance(new SystemScheduledMaintenanceProperties())) + .create(); + } +} +``` + +### Pools_Delete + +```java +/** + * Samples for Pools Delete. + */ +public final class PoolsDeleteSamples { + /* + * x-ms-original-file: 2026-10-01-preview/Pools_Delete.json + */ + /** + * Sample code: Delete the last HorizonDB pool and disconnect private endpoint connections. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void deleteTheLastHorizonDBPoolAndDisconnectPrivateEndpointConnections( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.pools() + .delete("example-resource-group", "example-cluster", "example-pool-01", com.azure.core.util.Context.NONE); + } +} +``` + +### Pools_Get + +```java +/** + * Samples for Pools Get. + */ +public final class PoolsGetSamples { + /* + * x-ms-original-file: 2026-10-01-preview/Pools_Get.json + */ + /** + * Sample code: Get a HorizonDB pool. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void getAHorizonDBPool(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.pools() + .getWithResponse("example-resource-group", "example-cluster", "example-pool-01", + com.azure.core.util.Context.NONE); + } +} +``` + +### Pools_List + +```java +/** + * Samples for Pools List. + */ +public final class PoolsListSamples { + /* + * x-ms-original-file: 2026-10-01-preview/Pools_List.json + */ + /** + * Sample code: List HorizonDB pools in a cluster. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void listHorizonDBPoolsInACluster(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.pools().list("example-resource-group", "example-cluster", com.azure.core.util.Context.NONE); + } +} +``` + +### Pools_Restart + +```java +/** + * Samples for Pools Restart. + */ +public final class PoolsRestartSamples { + /* + * x-ms-original-file: 2026-10-01-preview/Pools_Restart.json + */ + /** + * Sample code: Restart a HorizonDB pool and apply pending parameter changes. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void restartAHorizonDBPoolAndApplyPendingParameterChanges( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.pools() + .restart("exampleresourcegroup", "examplecluster", "example-pool-01", com.azure.core.util.Context.NONE); + } +} +``` + +### Pools_Start + +```java +/** + * Samples for Pools Start. + */ +public final class PoolsStartSamples { + /* + * x-ms-original-file: 2026-10-01-preview/Pools_Start.json + */ + /** + * Sample code: Start a HorizonDB pool without applying pending parameter changes. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void startAHorizonDBPoolWithoutApplyingPendingParameterChanges( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.pools() + .start("exampleresourcegroup", "examplecluster", "example-pool-01", com.azure.core.util.Context.NONE); + } +} +``` + +### Pools_Stop + +```java +/** + * Samples for Pools Stop. + */ +public final class PoolsStopSamples { + /* + * x-ms-original-file: 2026-10-01-preview/Pools_Stop.json + */ + /** + * Sample code: Stop and deallocate a HorizonDB pool without applying pending parameter changes. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void stopAndDeallocateAHorizonDBPoolWithoutApplyingPendingParameterChanges( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.pools() + .stop("exampleresourcegroup", "examplecluster", "example-pool-01", com.azure.core.util.Context.NONE); + } +} +``` + +### Pools_Update + +```java +import com.azure.resourcemanager.horizondb.models.ParameterApplyMethod; +import com.azure.resourcemanager.horizondb.models.Pool; +import com.azure.resourcemanager.horizondb.models.PoolComputeModelForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.PoolHighAvailabilityMode; +import com.azure.resourcemanager.horizondb.models.PoolHighAvailabilityPatch; +import com.azure.resourcemanager.horizondb.models.PoolParameterGroupReferenceForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.PoolPropertiesForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.ScheduledMaintenanceManagementType; +import com.azure.resourcemanager.horizondb.models.ScheduledMaintenancePropertiesForPatchUpdate; + +/** + * Samples for Pools Update. + */ +public final class PoolsUpdateSamples { + /* + * x-ms-original-file: 2026-10-01-preview/Pools_Update.json + */ + /** + * Sample code: Update a single HorizonDB pool compute property. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + updateASingleHorizonDBPoolComputeProperty(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + Pool resource = manager.pools() + .getWithResponse("example-resource-group", "example-cluster", "example-pool-01", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withProperties( + new PoolPropertiesForPatchUpdate().withComputeModel(new PoolComputeModelForPatchUpdate().withVCores(16)) + .withScheduledMaintenance(new ScheduledMaintenancePropertiesForPatchUpdate() + .withMaintenanceManagementType(ScheduledMaintenanceManagementType.SYSTEM))) + .apply(); + } + + /* + * x-ms-original-file: 2026-10-01-preview/Pools_UpdateParameterGroupDefault.json + */ + /** + * Sample code: Switch a HorizonDB pool back to its corresponding default parameter group. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void switchAHorizonDBPoolBackToItsCorrespondingDefaultParameterGroup( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + Pool resource = manager.pools() + .getWithResponse("example-resource-group", "example-cluster", "example-pool-01", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withProperties(new PoolPropertiesForPatchUpdate() + .withParameterGroup(new PoolParameterGroupReferenceForPatchUpdate().withParameterGroupResourceId( + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.HorizonDb/locations/eastus2/parameterGroups/default-postgresql-17-provisioned") + .withApplyMethod(ParameterApplyMethod.IMMEDIATE))) + .apply(); + } + + /* + * x-ms-original-file: 2026-10-01-preview/Pools_UpdateParameterGroupImmediate.json + */ + /** + * Sample code: Associate a HorizonDB pool with a parameter group immediately. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void associateAHorizonDBPoolWithAParameterGroupImmediately( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + Pool resource = manager.pools() + .getWithResponse("example-resource-group", "example-cluster", "example-pool-01", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withProperties(new PoolPropertiesForPatchUpdate() + .withParameterGroup(new PoolParameterGroupReferenceForPatchUpdate().withParameterGroupResourceId( + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/parameterGroups/production-parameters") + .withApplyMethod(ParameterApplyMethod.IMMEDIATE))) + .apply(); + } + + /* + * x-ms-original-file: 2026-10-01-preview/Pools_UpdateParameterGroupPendingReboot.json + */ + /** + * Sample code: Associate a HorizonDB pool with a parameter group pending reboot. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void associateAHorizonDBPoolWithAParameterGroupPendingReboot( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + Pool resource = manager.pools() + .getWithResponse("example-resource-group", "example-cluster", "example-pool-01", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withProperties(new PoolPropertiesForPatchUpdate() + .withParameterGroup(new PoolParameterGroupReferenceForPatchUpdate().withParameterGroupResourceId( + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/parameterGroups/maintenance-window-parameters") + .withApplyMethod(ParameterApplyMethod.PENDING_REBOOT))) + .apply(); + } + + /* + * x-ms-original-file: 2026-10-01-preview/Pools_UpdateHighAvailabilityMode.json + */ + /** + * Sample code: Require zone-redundant placement for a HorizonDB pool. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + requireZoneRedundantPlacementForAHorizonDBPool(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + Pool resource = manager.pools() + .getWithResponse("example-resource-group", "example-cluster", "example-pool-01", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withProperties(new PoolPropertiesForPatchUpdate().withHighAvailability( + new PoolHighAvailabilityPatch().withMode(PoolHighAvailabilityMode.ZONE_REDUNDANT))) + .apply(); + } +} +``` + +### PrivateEndpointConnections_ApproveOrReject + +```java +import com.azure.resourcemanager.horizondb.models.PrivateEndpointConnectionProperties; +import com.azure.resourcemanager.horizondb.models.PrivateEndpointServiceConnectionStatus; +import com.azure.resourcemanager.horizondb.models.PrivateLinkServiceConnectionState; + +/** + * Samples for PrivateEndpointConnections ApproveOrReject. + */ +public final class PrivateEndpointConnectionsApproveOrRejectSamples { + /* + * x-ms-original-file: 2026-10-01-preview/PrivateEndpointConnections_ApproveOrReject.json + */ + /** + * Sample code: Approve or reject a private endpoint connection. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + approveOrRejectAPrivateEndpointConnection(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.privateEndpointConnections() + .define("example-private-endpoint-connection") + .withExistingCluster("example-resource-group", "example-cluster") + .withProperties(new PrivateEndpointConnectionProperties().withPrivateLinkServiceConnectionState( + new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointServiceConnectionStatus.APPROVED) + .withDescription("Approved for the production database network"))) + .create(); + } +} +``` + +### PrivateEndpointConnections_Delete + +```java +/** + * Samples for PrivateEndpointConnections Delete. + */ +public final class PrivateEndpointConnectionsDeleteSamples { + /* + * x-ms-original-file: 2026-10-01-preview/PrivateEndpointConnections_Delete.json + */ + /** + * Sample code: Delete a private endpoint connection. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void deleteAPrivateEndpointConnection(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.privateEndpointConnections() + .delete("example-resource-group", "example-cluster", "example-private-endpoint-connection", + com.azure.core.util.Context.NONE); + } +} +``` + +### PrivateEndpointConnections_Get + +```java +/** + * Samples for PrivateEndpointConnections Get. + */ +public final class PrivateEndpointConnectionsGetSamples { + /* + * x-ms-original-file: 2026-10-01-preview/PrivateEndpointConnections_GetDisconnectedAfterLastPoolDeletion.json + */ + /** + * Sample code: Get a private endpoint connection disconnected after the last pool was deleted. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void getAPrivateEndpointConnectionDisconnectedAfterTheLastPoolWasDeleted( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.privateEndpointConnections() + .getWithResponse("example-resource-group", "example-cluster", "example-private-endpoint-connection", + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-10-01-preview/PrivateEndpointConnections_Get.json + */ + /** + * Sample code: Get a private endpoint connection. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void getAPrivateEndpointConnection(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.privateEndpointConnections() + .getWithResponse("example-resource-group", "example-cluster", "example-private-endpoint-connection", + com.azure.core.util.Context.NONE); + } +} +``` + +### PrivateEndpointConnections_List + +```java +/** + * Samples for PrivateEndpointConnections List. + */ +public final class PrivateEndpointConnectionsListSamples { + /* + * x-ms-original-file: 2026-10-01-preview/PrivateEndpointConnections_List.json + */ + /** + * Sample code: List private endpoint connections on a HorizonDB cluster. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void listPrivateEndpointConnectionsOnAHorizonDBCluster( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.privateEndpointConnections() + .list("example-resource-group", "example-cluster", com.azure.core.util.Context.NONE); + } +} +``` + +### PrivateLinkResources_Get + +```java +/** + * Samples for PrivateLinkResources Get. + */ +public final class PrivateLinkResourcesGetSamples { + /* + * x-ms-original-file: 2026-10-01-preview/PrivateLinkResources_Get.json + */ + /** + * Sample code: Get a HorizonDB private link resource. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void getAHorizonDBPrivateLinkResource(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.privateLinkResources() + .getWithResponse("example-resource-group", "example-cluster", "example-cluster", + com.azure.core.util.Context.NONE); + } +} +``` + +### PrivateLinkResources_List + +```java +/** + * Samples for PrivateLinkResources List. + */ +public final class PrivateLinkResourcesListSamples { + /* + * x-ms-original-file: 2026-10-01-preview/PrivateLinkResources_List.json + */ + /** + * Sample code: List HorizonDB private link resources. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void listHorizonDBPrivateLinkResources(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.privateLinkResources() + .list("example-resource-group", "example-cluster", com.azure.core.util.Context.NONE); } } ``` diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/pom.xml b/sdk/horizondb/azure-resourcemanager-horizondb/pom.xml index 365cb80bca103..480c45f012b16 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/pom.xml +++ b/sdk/horizondb/azure-resourcemanager-horizondb/pom.xml @@ -18,7 +18,7 @@ jar Microsoft Azure SDK for HorizonDb Management - This package contains Microsoft Azure SDK for HorizonDb Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Resource Provider API for managing HorizonDB clusters, pools, replicas, and firewall rules. Package api-version 2026-05-01-preview. + This package contains Microsoft Azure SDK for HorizonDb Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Azure Resource Provider API for managing HorizonDB clusters, pools, endpoints, nodes, and firewall rules. Package api-version 2026-10-01-preview. https://github.com/Azure/azure-sdk-for-java diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/HorizonDbManager.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/HorizonDbManager.java index b83b18c91fb42..23e06f5892696 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/HorizonDbManager.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/HorizonDbManager.java @@ -25,25 +25,51 @@ import com.azure.core.util.CoreUtils; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.horizondb.fluent.HorizonDbManagementClient; -import com.azure.resourcemanager.horizondb.implementation.HorizonDbAdministratorsImpl; -import com.azure.resourcemanager.horizondb.implementation.HorizonDbClustersImpl; -import com.azure.resourcemanager.horizondb.implementation.HorizonDbFirewallRulesImpl; +import com.azure.resourcemanager.horizondb.implementation.AuthenticationsImpl; +import com.azure.resourcemanager.horizondb.implementation.CapabilitiesImpl; +import com.azure.resourcemanager.horizondb.implementation.ChangeDataCaptureCapabilitiesImpl; +import com.azure.resourcemanager.horizondb.implementation.ChangeDataCaptureConfigurationsImpl; +import com.azure.resourcemanager.horizondb.implementation.ChangeDataCaptureDestinationsImpl; +import com.azure.resourcemanager.horizondb.implementation.ClustersImpl; +import com.azure.resourcemanager.horizondb.implementation.DefaultParameterGroupsImpl; +import com.azure.resourcemanager.horizondb.implementation.EndpointsImpl; +import com.azure.resourcemanager.horizondb.implementation.FirewallRulesImpl; import com.azure.resourcemanager.horizondb.implementation.HorizonDbManagementClientBuilder; -import com.azure.resourcemanager.horizondb.implementation.HorizonDbParameterGroupsImpl; -import com.azure.resourcemanager.horizondb.implementation.HorizonDbPoolsImpl; -import com.azure.resourcemanager.horizondb.implementation.HorizonDbPrivateEndpointConnectionsImpl; -import com.azure.resourcemanager.horizondb.implementation.HorizonDbPrivateLinkResourcesImpl; -import com.azure.resourcemanager.horizondb.implementation.HorizonDbReplicasImpl; +import com.azure.resourcemanager.horizondb.implementation.IdentityAssignmentsImpl; +import com.azure.resourcemanager.horizondb.implementation.LogCaptureConfigurationsImpl; +import com.azure.resourcemanager.horizondb.implementation.LogFilesImpl; +import com.azure.resourcemanager.horizondb.implementation.MaintenanceEventsImpl; +import com.azure.resourcemanager.horizondb.implementation.MicrosoftEntraAdministratorsImpl; +import com.azure.resourcemanager.horizondb.implementation.MicrosoftEntraAuthenticationsImpl; +import com.azure.resourcemanager.horizondb.implementation.NodesImpl; import com.azure.resourcemanager.horizondb.implementation.OperationsImpl; -import com.azure.resourcemanager.horizondb.models.HorizonDbAdministrators; -import com.azure.resourcemanager.horizondb.models.HorizonDbClusters; -import com.azure.resourcemanager.horizondb.models.HorizonDbFirewallRules; -import com.azure.resourcemanager.horizondb.models.HorizonDbParameterGroups; -import com.azure.resourcemanager.horizondb.models.HorizonDbPools; -import com.azure.resourcemanager.horizondb.models.HorizonDbPrivateEndpointConnections; -import com.azure.resourcemanager.horizondb.models.HorizonDbPrivateLinkResources; -import com.azure.resourcemanager.horizondb.models.HorizonDbReplicas; +import com.azure.resourcemanager.horizondb.implementation.ParameterGroupsImpl; +import com.azure.resourcemanager.horizondb.implementation.PasswordAuthenticationsImpl; +import com.azure.resourcemanager.horizondb.implementation.PoolsImpl; +import com.azure.resourcemanager.horizondb.implementation.PrivateEndpointConnectionsImpl; +import com.azure.resourcemanager.horizondb.implementation.PrivateLinkResourcesImpl; +import com.azure.resourcemanager.horizondb.models.Authentications; +import com.azure.resourcemanager.horizondb.models.Capabilities; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureCapabilities; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureConfigurations; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDestinations; +import com.azure.resourcemanager.horizondb.models.Clusters; +import com.azure.resourcemanager.horizondb.models.DefaultParameterGroups; +import com.azure.resourcemanager.horizondb.models.Endpoints; +import com.azure.resourcemanager.horizondb.models.FirewallRules; +import com.azure.resourcemanager.horizondb.models.IdentityAssignments; +import com.azure.resourcemanager.horizondb.models.LogCaptureConfigurations; +import com.azure.resourcemanager.horizondb.models.LogFiles; +import com.azure.resourcemanager.horizondb.models.MaintenanceEvents; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAdministrators; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAuthentications; +import com.azure.resourcemanager.horizondb.models.Nodes; import com.azure.resourcemanager.horizondb.models.Operations; +import com.azure.resourcemanager.horizondb.models.ParameterGroups; +import com.azure.resourcemanager.horizondb.models.PasswordAuthentications; +import com.azure.resourcemanager.horizondb.models.Pools; +import com.azure.resourcemanager.horizondb.models.PrivateEndpointConnections; +import com.azure.resourcemanager.horizondb.models.PrivateLinkResources; import java.time.Duration; import java.time.temporal.ChronoUnit; import java.util.ArrayList; @@ -54,26 +80,52 @@ /** * Entry point to HorizonDbManager. - * Azure Resource Provider API for managing HorizonDB clusters, pools, replicas, and firewall rules. + * Azure Resource Provider API for managing HorizonDB clusters, pools, endpoints, nodes, and firewall rules. */ public final class HorizonDbManager { private Operations operations; - private HorizonDbClusters horizonDbClusters; + private Capabilities capabilities; - private HorizonDbPools horizonDbPools; + private Clusters clusters; - private HorizonDbReplicas horizonDbReplicas; + private Pools pools; - private HorizonDbFirewallRules horizonDbFirewallRules; + private FirewallRules firewallRules; - private HorizonDbPrivateEndpointConnections horizonDbPrivateEndpointConnections; + private PrivateEndpointConnections privateEndpointConnections; - private HorizonDbPrivateLinkResources horizonDbPrivateLinkResources; + private PrivateLinkResources privateLinkResources; - private HorizonDbParameterGroups horizonDbParameterGroups; + private ParameterGroups parameterGroups; - private HorizonDbAdministrators horizonDbAdministrators; + private DefaultParameterGroups defaultParameterGroups; + + private MicrosoftEntraAdministrators microsoftEntraAdministrators; + + private Authentications authentications; + + private PasswordAuthentications passwordAuthentications; + + private MicrosoftEntraAuthentications microsoftEntraAuthentications; + + private ChangeDataCaptureCapabilities changeDataCaptureCapabilities; + + private ChangeDataCaptureDestinations changeDataCaptureDestinations; + + private IdentityAssignments identityAssignments; + + private ChangeDataCaptureConfigurations changeDataCaptureConfigurations; + + private Endpoints endpoints; + + private MaintenanceEvents maintenanceEvents; + + private Nodes nodes; + + private LogCaptureConfigurations logCaptureConfigurations; + + private LogFiles logFiles; private final HorizonDbManagementClient clientObject; @@ -303,104 +355,264 @@ public Operations operations() { } /** - * Gets the resource collection API of HorizonDbClusters. It manages HorizonDbCluster. + * Gets the resource collection API of Capabilities. + * + * @return Resource collection API of Capabilities. + */ + public Capabilities capabilities() { + if (this.capabilities == null) { + this.capabilities = new CapabilitiesImpl(clientObject.getCapabilities(), this); + } + return capabilities; + } + + /** + * Gets the resource collection API of Clusters. It manages Cluster. + * + * @return Resource collection API of Clusters. + */ + public Clusters clusters() { + if (this.clusters == null) { + this.clusters = new ClustersImpl(clientObject.getClusters(), this); + } + return clusters; + } + + /** + * Gets the resource collection API of Pools. It manages Pool. + * + * @return Resource collection API of Pools. + */ + public Pools pools() { + if (this.pools == null) { + this.pools = new PoolsImpl(clientObject.getPools(), this); + } + return pools; + } + + /** + * Gets the resource collection API of FirewallRules. It manages FirewallRule. + * + * @return Resource collection API of FirewallRules. + */ + public FirewallRules firewallRules() { + if (this.firewallRules == null) { + this.firewallRules = new FirewallRulesImpl(clientObject.getFirewallRules(), this); + } + return firewallRules; + } + + /** + * Gets the resource collection API of PrivateEndpointConnections. It manages PrivateEndpointConnectionResource. + * + * @return Resource collection API of PrivateEndpointConnections. + */ + public PrivateEndpointConnections privateEndpointConnections() { + if (this.privateEndpointConnections == null) { + this.privateEndpointConnections + = new PrivateEndpointConnectionsImpl(clientObject.getPrivateEndpointConnections(), this); + } + return privateEndpointConnections; + } + + /** + * Gets the resource collection API of PrivateLinkResources. + * + * @return Resource collection API of PrivateLinkResources. + */ + public PrivateLinkResources privateLinkResources() { + if (this.privateLinkResources == null) { + this.privateLinkResources = new PrivateLinkResourcesImpl(clientObject.getPrivateLinkResources(), this); + } + return privateLinkResources; + } + + /** + * Gets the resource collection API of ParameterGroups. It manages ParameterGroup. + * + * @return Resource collection API of ParameterGroups. + */ + public ParameterGroups parameterGroups() { + if (this.parameterGroups == null) { + this.parameterGroups = new ParameterGroupsImpl(clientObject.getParameterGroups(), this); + } + return parameterGroups; + } + + /** + * Gets the resource collection API of DefaultParameterGroups. + * + * @return Resource collection API of DefaultParameterGroups. + */ + public DefaultParameterGroups defaultParameterGroups() { + if (this.defaultParameterGroups == null) { + this.defaultParameterGroups + = new DefaultParameterGroupsImpl(clientObject.getDefaultParameterGroups(), this); + } + return defaultParameterGroups; + } + + /** + * Gets the resource collection API of MicrosoftEntraAdministrators. It manages MicrosoftEntraAdministrator. + * + * @return Resource collection API of MicrosoftEntraAdministrators. + */ + public MicrosoftEntraAdministrators microsoftEntraAdministrators() { + if (this.microsoftEntraAdministrators == null) { + this.microsoftEntraAdministrators + = new MicrosoftEntraAdministratorsImpl(clientObject.getMicrosoftEntraAdministrators(), this); + } + return microsoftEntraAdministrators; + } + + /** + * Gets the resource collection API of Authentications. + * + * @return Resource collection API of Authentications. + */ + public Authentications authentications() { + if (this.authentications == null) { + this.authentications = new AuthenticationsImpl(clientObject.getAuthentications(), this); + } + return authentications; + } + + /** + * Gets the resource collection API of PasswordAuthentications. + * + * @return Resource collection API of PasswordAuthentications. + */ + public PasswordAuthentications passwordAuthentications() { + if (this.passwordAuthentications == null) { + this.passwordAuthentications + = new PasswordAuthenticationsImpl(clientObject.getPasswordAuthentications(), this); + } + return passwordAuthentications; + } + + /** + * Gets the resource collection API of MicrosoftEntraAuthentications. + * + * @return Resource collection API of MicrosoftEntraAuthentications. + */ + public MicrosoftEntraAuthentications microsoftEntraAuthentications() { + if (this.microsoftEntraAuthentications == null) { + this.microsoftEntraAuthentications + = new MicrosoftEntraAuthenticationsImpl(clientObject.getMicrosoftEntraAuthentications(), this); + } + return microsoftEntraAuthentications; + } + + /** + * Gets the resource collection API of ChangeDataCaptureCapabilities. + * + * @return Resource collection API of ChangeDataCaptureCapabilities. + */ + public ChangeDataCaptureCapabilities changeDataCaptureCapabilities() { + if (this.changeDataCaptureCapabilities == null) { + this.changeDataCaptureCapabilities + = new ChangeDataCaptureCapabilitiesImpl(clientObject.getChangeDataCaptureCapabilities(), this); + } + return changeDataCaptureCapabilities; + } + + /** + * Gets the resource collection API of ChangeDataCaptureDestinations. It manages ChangeDataCaptureDestination. * - * @return Resource collection API of HorizonDbClusters. + * @return Resource collection API of ChangeDataCaptureDestinations. */ - public HorizonDbClusters horizonDbClusters() { - if (this.horizonDbClusters == null) { - this.horizonDbClusters = new HorizonDbClustersImpl(clientObject.getHorizonDbClusters(), this); + public ChangeDataCaptureDestinations changeDataCaptureDestinations() { + if (this.changeDataCaptureDestinations == null) { + this.changeDataCaptureDestinations + = new ChangeDataCaptureDestinationsImpl(clientObject.getChangeDataCaptureDestinations(), this); } - return horizonDbClusters; + return changeDataCaptureDestinations; } /** - * Gets the resource collection API of HorizonDbPools. + * Gets the resource collection API of IdentityAssignments. It manages IdentityAssignment. * - * @return Resource collection API of HorizonDbPools. + * @return Resource collection API of IdentityAssignments. */ - public HorizonDbPools horizonDbPools() { - if (this.horizonDbPools == null) { - this.horizonDbPools = new HorizonDbPoolsImpl(clientObject.getHorizonDbPools(), this); + public IdentityAssignments identityAssignments() { + if (this.identityAssignments == null) { + this.identityAssignments = new IdentityAssignmentsImpl(clientObject.getIdentityAssignments(), this); } - return horizonDbPools; + return identityAssignments; } /** - * Gets the resource collection API of HorizonDbReplicas. It manages HorizonDbReplica. + * Gets the resource collection API of ChangeDataCaptureConfigurations. It manages ChangeDataCaptureConfiguration. * - * @return Resource collection API of HorizonDbReplicas. + * @return Resource collection API of ChangeDataCaptureConfigurations. */ - public HorizonDbReplicas horizonDbReplicas() { - if (this.horizonDbReplicas == null) { - this.horizonDbReplicas = new HorizonDbReplicasImpl(clientObject.getHorizonDbReplicas(), this); + public ChangeDataCaptureConfigurations changeDataCaptureConfigurations() { + if (this.changeDataCaptureConfigurations == null) { + this.changeDataCaptureConfigurations + = new ChangeDataCaptureConfigurationsImpl(clientObject.getChangeDataCaptureConfigurations(), this); } - return horizonDbReplicas; + return changeDataCaptureConfigurations; } /** - * Gets the resource collection API of HorizonDbFirewallRules. It manages HorizonDbFirewallRule. + * Gets the resource collection API of Endpoints. * - * @return Resource collection API of HorizonDbFirewallRules. + * @return Resource collection API of Endpoints. */ - public HorizonDbFirewallRules horizonDbFirewallRules() { - if (this.horizonDbFirewallRules == null) { - this.horizonDbFirewallRules - = new HorizonDbFirewallRulesImpl(clientObject.getHorizonDbFirewallRules(), this); + public Endpoints endpoints() { + if (this.endpoints == null) { + this.endpoints = new EndpointsImpl(clientObject.getEndpoints(), this); } - return horizonDbFirewallRules; + return endpoints; } /** - * Gets the resource collection API of HorizonDbPrivateEndpointConnections. + * Gets the resource collection API of MaintenanceEvents. * - * @return Resource collection API of HorizonDbPrivateEndpointConnections. + * @return Resource collection API of MaintenanceEvents. */ - public HorizonDbPrivateEndpointConnections horizonDbPrivateEndpointConnections() { - if (this.horizonDbPrivateEndpointConnections == null) { - this.horizonDbPrivateEndpointConnections = new HorizonDbPrivateEndpointConnectionsImpl( - clientObject.getHorizonDbPrivateEndpointConnections(), this); + public MaintenanceEvents maintenanceEvents() { + if (this.maintenanceEvents == null) { + this.maintenanceEvents = new MaintenanceEventsImpl(clientObject.getMaintenanceEvents(), this); } - return horizonDbPrivateEndpointConnections; + return maintenanceEvents; } /** - * Gets the resource collection API of HorizonDbPrivateLinkResources. + * Gets the resource collection API of Nodes. * - * @return Resource collection API of HorizonDbPrivateLinkResources. + * @return Resource collection API of Nodes. */ - public HorizonDbPrivateLinkResources horizonDbPrivateLinkResources() { - if (this.horizonDbPrivateLinkResources == null) { - this.horizonDbPrivateLinkResources - = new HorizonDbPrivateLinkResourcesImpl(clientObject.getHorizonDbPrivateLinkResources(), this); + public Nodes nodes() { + if (this.nodes == null) { + this.nodes = new NodesImpl(clientObject.getNodes(), this); } - return horizonDbPrivateLinkResources; + return nodes; } /** - * Gets the resource collection API of HorizonDbParameterGroups. It manages HorizonDbParameterGroup. + * Gets the resource collection API of LogCaptureConfigurations. * - * @return Resource collection API of HorizonDbParameterGroups. + * @return Resource collection API of LogCaptureConfigurations. */ - public HorizonDbParameterGroups horizonDbParameterGroups() { - if (this.horizonDbParameterGroups == null) { - this.horizonDbParameterGroups - = new HorizonDbParameterGroupsImpl(clientObject.getHorizonDbParameterGroups(), this); + public LogCaptureConfigurations logCaptureConfigurations() { + if (this.logCaptureConfigurations == null) { + this.logCaptureConfigurations + = new LogCaptureConfigurationsImpl(clientObject.getLogCaptureConfigurations(), this); } - return horizonDbParameterGroups; + return logCaptureConfigurations; } /** - * Gets the resource collection API of HorizonDbAdministrators. It manages HorizonDbAdministrator. + * Gets the resource collection API of LogFiles. * - * @return Resource collection API of HorizonDbAdministrators. + * @return Resource collection API of LogFiles. */ - public HorizonDbAdministrators horizonDbAdministrators() { - if (this.horizonDbAdministrators == null) { - this.horizonDbAdministrators - = new HorizonDbAdministratorsImpl(clientObject.getHorizonDbAdministrators(), this); + public LogFiles logFiles() { + if (this.logFiles == null) { + this.logFiles = new LogFilesImpl(clientObject.getLogFiles(), this); } - return horizonDbAdministrators; + return logFiles; } /** diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/AuthenticationsClient.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/AuthenticationsClient.java new file mode 100644 index 0000000000000..08724b3f3dd57 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/AuthenticationsClient.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.horizondb.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.util.Context; +import com.azure.resourcemanager.horizondb.fluent.models.AuthenticationInner; + +/** + * An instance of this class provides access to all the operations defined in AuthenticationsClient. + */ +public interface AuthenticationsClient { + /** + * Lists the two service-created authentication configurations for the cluster: passwordMethod and microsoftEntra. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Authentication list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String clusterName); + + /** + * Lists the two service-created authentication configurations for the cluster: passwordMethod and microsoftEntra. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Authentication list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String clusterName); + + /** + * Lists the two service-created authentication configurations for the cluster: passwordMethod and microsoftEntra. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Authentication list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String clusterName, Context context); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/CapabilitiesClient.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/CapabilitiesClient.java new file mode 100644 index 0000000000000..5a4795e3f75fa --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/CapabilitiesClient.java @@ -0,0 +1,111 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; +import com.azure.resourcemanager.horizondb.fluent.models.CapabilityInner; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in CapabilitiesClient. + */ +public interface CapabilitiesClient { + /** + * Gets the singleton HorizonDB capability catalog entry available to a subscription in a specific region. + * + * @param location The name of the Azure region. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the singleton HorizonDB capability catalog entry available to a subscription in a specific region along + * with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getWithResponseAsync(String location); + + /** + * Gets the singleton HorizonDB capability catalog entry available to a subscription in a specific region. + * + * @param location The name of the Azure region. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the singleton HorizonDB capability catalog entry available to a subscription in a specific region on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String location); + + /** + * Gets the singleton HorizonDB capability catalog entry available to a subscription in a specific region. + * + * @param location The name of the Azure region. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the singleton HorizonDB capability catalog entry available to a subscription in a specific region along + * with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String location, Context context); + + /** + * Gets the singleton HorizonDB capability catalog entry available to a subscription in a specific region. + * + * @param location The name of the Azure region. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the singleton HorizonDB capability catalog entry available to a subscription in a specific region. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + CapabilityInner get(String location); + + /** + * Lists the singleton HorizonDB capability catalog entry available to a subscription in a specific region. The + * result contains one item. + * + * @param location The name of the Azure region. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Capability list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String location); + + /** + * Lists the singleton HorizonDB capability catalog entry available to a subscription in a specific region. The + * result contains one item. + * + * @param location The name of the Azure region. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Capability list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String location); + + /** + * Lists the singleton HorizonDB capability catalog entry available to a subscription in a specific region. The + * result contains one item. + * + * @param location The name of the Azure region. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Capability list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String location, Context context); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/HorizonDbReplicasClient.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/ChangeDataCaptureCapabilitiesClient.java similarity index 62% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/HorizonDbReplicasClient.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/ChangeDataCaptureCapabilitiesClient.java index 400f300b23774..7f91bfe5e033f 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/HorizonDbReplicasClient.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/ChangeDataCaptureCapabilitiesClient.java @@ -13,424 +13,346 @@ import com.azure.core.util.Context; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbReplicaInner; -import com.azure.resourcemanager.horizondb.models.HorizonDbReplicaForPatchUpdate; +import com.azure.resourcemanager.horizondb.fluent.models.ChangeDataCaptureCapabilityInner; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureCapabilityForPatchUpdate; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; /** - * An instance of this class provides access to all the operations defined in HorizonDbReplicasClient. + * An instance of this class provides access to all the operations defined in ChangeDataCaptureCapabilitiesClient. */ -public interface HorizonDbReplicasClient { +public interface ChangeDataCaptureCapabilitiesClient { /** - * Gets information about a HorizonDB replica. + * Gets the singleton change data capture capability for a HorizonDB cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @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 information about a HorizonDB replica along with {@link Response} on successful completion of - * {@link Mono}. + * @return the singleton change data capture capability for a HorizonDB cluster along with {@link Response} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, String clusterName, - String poolName, String replicaName); + Mono> getWithResponseAsync(String resourceGroupName, String clusterName); /** - * Gets information about a HorizonDB replica. + * Gets the singleton change data capture capability for a HorizonDB cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @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 information about a HorizonDB replica on successful completion of {@link Mono}. + * @return the singleton change data capture capability for a HorizonDB cluster on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String clusterName, String poolName, - String replicaName); + Mono getAsync(String resourceGroupName, String clusterName); /** - * Gets information about a HorizonDB replica. + * Gets the singleton change data capture capability for a HorizonDB cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @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 information about a HorizonDB replica along with {@link Response}. + * @return the singleton change data capture capability for a HorizonDB cluster along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String clusterName, String poolName, - String replicaName, Context context); + Response getWithResponse(String resourceGroupName, String clusterName, + Context context); /** - * Gets information about a HorizonDB replica. + * Gets the singleton change data capture capability for a HorizonDB cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @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 information about a HorizonDB replica. + * @return the singleton change data capture capability for a HorizonDB cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) - HorizonDbReplicaInner get(String resourceGroupName, String clusterName, String poolName, String replicaName); - - /** - * Lists all HorizonDB replicas in a pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbReplica list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String clusterName, String poolName); - - /** - * Lists all HorizonDB replicas in a pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbReplica list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String clusterName, String poolName); - - /** - * Lists all HorizonDB replicas in a pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbReplica list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String clusterName, String poolName, - Context context); + ChangeDataCaptureCapabilityInner get(String resourceGroupName, String clusterName); /** - * Creates a new HorizonDB replica or updates an existing replica. + * Creates or replaces the singleton change data capture capability and reconciles shared engine prerequisites. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @param resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents the HorizonDB replica along with {@link Response} on successful completion of {@link Mono}. + * @return the singleton change data capture capability for a HorizonDB cluster along with {@link Response} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String clusterName, - String poolName, String replicaName, HorizonDbReplicaInner resource); + Mono>> createOrReplaceWithResponseAsync(String resourceGroupName, String clusterName, + ChangeDataCaptureCapabilityInner resource); /** - * Creates a new HorizonDB replica or updates an existing replica. + * Creates or replaces the singleton change data capture capability and reconciles shared engine prerequisites. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @param resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of represents the HorizonDB replica. + * @return the {@link PollerFlux} for polling of the singleton change data capture capability for a HorizonDB + * cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, HorizonDbReplicaInner> beginCreateOrUpdateAsync( - String resourceGroupName, String clusterName, String poolName, String replicaName, - HorizonDbReplicaInner resource); + PollerFlux, ChangeDataCaptureCapabilityInner> + beginCreateOrReplaceAsync(String resourceGroupName, String clusterName, + ChangeDataCaptureCapabilityInner resource); /** - * Creates a new HorizonDB replica or updates an existing replica. + * Creates or replaces the singleton change data capture capability and reconciles shared engine prerequisites. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @param resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of represents the HorizonDB replica. + * @return the {@link SyncPoller} for polling of the singleton change data capture capability for a HorizonDB + * cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, HorizonDbReplicaInner> beginCreateOrUpdate(String resourceGroupName, - String clusterName, String poolName, String replicaName, HorizonDbReplicaInner resource); + SyncPoller, ChangeDataCaptureCapabilityInner> + beginCreateOrReplace(String resourceGroupName, String clusterName, ChangeDataCaptureCapabilityInner resource); /** - * Creates a new HorizonDB replica or updates an existing replica. + * Creates or replaces the singleton change data capture capability and reconciles shared engine prerequisites. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @param resource Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of represents the HorizonDB replica. + * @return the {@link SyncPoller} for polling of the singleton change data capture capability for a HorizonDB + * cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, HorizonDbReplicaInner> beginCreateOrUpdate(String resourceGroupName, - String clusterName, String poolName, String replicaName, HorizonDbReplicaInner resource, Context context); + SyncPoller, ChangeDataCaptureCapabilityInner> beginCreateOrReplace( + String resourceGroupName, String clusterName, ChangeDataCaptureCapabilityInner resource, Context context); /** - * Creates a new HorizonDB replica or updates an existing replica. + * Creates or replaces the singleton change data capture capability and reconciles shared engine prerequisites. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @param resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents the HorizonDB replica on successful completion of {@link Mono}. + * @return the singleton change data capture capability for a HorizonDB cluster on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono createOrUpdateAsync(String resourceGroupName, String clusterName, String poolName, - String replicaName, HorizonDbReplicaInner resource); + Mono createOrReplaceAsync(String resourceGroupName, String clusterName, + ChangeDataCaptureCapabilityInner resource); /** - * Creates a new HorizonDB replica or updates an existing replica. + * Creates or replaces the singleton change data capture capability and reconciles shared engine prerequisites. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @param resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents the HorizonDB replica. + * @return the singleton change data capture capability for a HorizonDB cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) - HorizonDbReplicaInner createOrUpdate(String resourceGroupName, String clusterName, String poolName, - String replicaName, HorizonDbReplicaInner resource); + ChangeDataCaptureCapabilityInner createOrReplace(String resourceGroupName, String clusterName, + ChangeDataCaptureCapabilityInner resource); /** - * Creates a new HorizonDB replica or updates an existing replica. + * Creates or replaces the singleton change data capture capability and reconciles shared engine prerequisites. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @param resource Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents the HorizonDB replica. + * @return the singleton change data capture capability for a HorizonDB cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) - HorizonDbReplicaInner createOrUpdate(String resourceGroupName, String clusterName, String poolName, - String replicaName, HorizonDbReplicaInner resource, Context context); + ChangeDataCaptureCapabilityInner createOrReplace(String resourceGroupName, String clusterName, + ChangeDataCaptureCapabilityInner resource, Context context); /** - * Updates an existing HorizonDB replica (e.g., role). + * Updates mutable change data capture capability properties. Omitted properties preserve their current values. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @param properties The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents the HorizonDB replica along with {@link Response} on successful completion of {@link Mono}. + * @return the singleton change data capture capability for a HorizonDB cluster along with {@link Response} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> updateWithResponseAsync(String resourceGroupName, String clusterName, - String poolName, String replicaName, HorizonDbReplicaForPatchUpdate properties); + ChangeDataCaptureCapabilityForPatchUpdate properties); /** - * Updates an existing HorizonDB replica (e.g., role). + * Updates mutable change data capture capability properties. Omitted properties preserve their current values. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @param properties The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of represents the HorizonDB replica. + * @return the {@link PollerFlux} for polling of the singleton change data capture capability for a HorizonDB + * cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, HorizonDbReplicaInner> beginUpdateAsync(String resourceGroupName, - String clusterName, String poolName, String replicaName, HorizonDbReplicaForPatchUpdate properties); + PollerFlux, ChangeDataCaptureCapabilityInner> beginUpdateAsync( + String resourceGroupName, String clusterName, ChangeDataCaptureCapabilityForPatchUpdate properties); /** - * Updates an existing HorizonDB replica (e.g., role). + * Updates mutable change data capture capability properties. Omitted properties preserve their current values. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @param properties The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of represents the HorizonDB replica. + * @return the {@link SyncPoller} for polling of the singleton change data capture capability for a HorizonDB + * cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, HorizonDbReplicaInner> beginUpdate(String resourceGroupName, - String clusterName, String poolName, String replicaName, HorizonDbReplicaForPatchUpdate properties); + SyncPoller, ChangeDataCaptureCapabilityInner> + beginUpdate(String resourceGroupName, String clusterName, ChangeDataCaptureCapabilityForPatchUpdate properties); /** - * Updates an existing HorizonDB replica (e.g., role). + * Updates mutable change data capture capability properties. Omitted properties preserve their current values. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @param properties The resource properties to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of represents the HorizonDB replica. + * @return the {@link SyncPoller} for polling of the singleton change data capture capability for a HorizonDB + * cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, HorizonDbReplicaInner> beginUpdate(String resourceGroupName, - String clusterName, String poolName, String replicaName, HorizonDbReplicaForPatchUpdate properties, + SyncPoller, ChangeDataCaptureCapabilityInner> beginUpdate( + String resourceGroupName, String clusterName, ChangeDataCaptureCapabilityForPatchUpdate properties, Context context); /** - * Updates an existing HorizonDB replica (e.g., role). + * Updates mutable change data capture capability properties. Omitted properties preserve their current values. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @param properties The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents the HorizonDB replica on successful completion of {@link Mono}. + * @return the singleton change data capture capability for a HorizonDB cluster on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono updateAsync(String resourceGroupName, String clusterName, String poolName, - String replicaName, HorizonDbReplicaForPatchUpdate properties); + Mono updateAsync(String resourceGroupName, String clusterName, + ChangeDataCaptureCapabilityForPatchUpdate properties); /** - * Updates an existing HorizonDB replica (e.g., role). + * Updates mutable change data capture capability properties. Omitted properties preserve their current values. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @param properties The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents the HorizonDB replica. + * @return the singleton change data capture capability for a HorizonDB cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) - HorizonDbReplicaInner update(String resourceGroupName, String clusterName, String poolName, String replicaName, - HorizonDbReplicaForPatchUpdate properties); + ChangeDataCaptureCapabilityInner update(String resourceGroupName, String clusterName, + ChangeDataCaptureCapabilityForPatchUpdate properties); /** - * Updates an existing HorizonDB replica (e.g., role). + * Updates mutable change data capture capability properties. Omitted properties preserve their current values. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @param properties The resource properties to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents the HorizonDB replica. + * @return the singleton change data capture capability for a HorizonDB cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) - HorizonDbReplicaInner update(String resourceGroupName, String clusterName, String poolName, String replicaName, - HorizonDbReplicaForPatchUpdate properties, Context context); + ChangeDataCaptureCapabilityInner update(String resourceGroupName, String clusterName, + ChangeDataCaptureCapabilityForPatchUpdate properties, Context context); /** - * Deletes a HorizonDB replica. + * Deletes the change data capture capability after all change data capture destinations and configurations have + * been removed. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> deleteWithResponseAsync(String resourceGroupName, String clusterName, - String poolName, String replicaName); + Mono>> deleteWithResponseAsync(String resourceGroupName, String clusterName); /** - * Deletes a HorizonDB replica. + * Deletes the change data capture capability after all change data capture destinations and configurations have + * been removed. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @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 PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String clusterName, String poolName, - String replicaName); + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String clusterName); /** - * Deletes a HorizonDB replica. + * Deletes the change data capture capability after all change data capture destinations and configurations have + * been removed. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, String poolName, - String replicaName); + SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName); /** - * Deletes a HorizonDB replica. + * Deletes the change data capture capability after all change data capture destinations and configurations have + * been removed. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @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. @@ -438,50 +360,89 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, String poolName, - String replicaName, Context context); + SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, Context context); /** - * Deletes a HorizonDB replica. + * Deletes the change data capture capability after all change data capture destinations and configurations have + * been removed. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return A {@link Mono} that completes when a successful response is received. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono deleteAsync(String resourceGroupName, String clusterName, String poolName, String replicaName); + Mono deleteAsync(String resourceGroupName, String clusterName); /** - * Deletes a HorizonDB replica. + * Deletes the change data capture capability after all change data capture destinations and configurations have + * been removed. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String clusterName, String poolName, String replicaName); + void delete(String resourceGroupName, String clusterName); /** - * Deletes a HorizonDB replica. + * Deletes the change data capture capability after all change data capture destinations and configurations have + * been removed. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. */ @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String clusterName, String poolName, String replicaName, Context context); + void delete(String resourceGroupName, String clusterName, Context context); + + /** + * Lists the optional singleton change data capture capability for a cluster. The result contains zero or one item. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ChangeDataCaptureCapability list operation as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String clusterName); + + /** + * Lists the optional singleton change data capture capability for a cluster. The result contains zero or one item. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ChangeDataCaptureCapability list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String clusterName); + + /** + * Lists the optional singleton change data capture capability for a cluster. The result contains zero or one item. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ChangeDataCaptureCapability list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String clusterName, Context context); } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/ChangeDataCaptureConfigurationsClient.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/ChangeDataCaptureConfigurationsClient.java new file mode 100644 index 0000000000000..51e186eeac978 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/ChangeDataCaptureConfigurationsClient.java @@ -0,0 +1,506 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.horizondb.fluent.models.ChangeDataCaptureConfigurationInner; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureConfigurationForPatchUpdate; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in ChangeDataCaptureConfigurationsClient. + */ +public interface ChangeDataCaptureConfigurationsClient { + /** + * Gets a change data capture configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a change data capture configuration along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getWithResponseAsync(String resourceGroupName, + String clusterName, String configurationName); + + /** + * Gets a change data capture configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a change data capture configuration on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String clusterName, + String configurationName); + + /** + * Gets a change data capture configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a change data capture configuration along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String clusterName, + String configurationName, Context context); + + /** + * Gets a change data capture configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a change data capture configuration. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ChangeDataCaptureConfigurationInner get(String resourceGroupName, String clusterName, String configurationName); + + /** + * Creates or replaces a change data capture configuration that enrolls a PostgreSQL database for Microsoft Fabric + * Mirroring. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a HorizonDB database enrollment for Microsoft Fabric Mirroring along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> createOrReplaceWithResponseAsync(String resourceGroupName, String clusterName, + String configurationName, ChangeDataCaptureConfigurationInner resource); + + /** + * Creates or replaces a change data capture configuration that enrolls a PostgreSQL database for Microsoft Fabric + * Mirroring. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of a HorizonDB database enrollment for Microsoft Fabric Mirroring. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, ChangeDataCaptureConfigurationInner> + beginCreateOrReplaceAsync(String resourceGroupName, String clusterName, String configurationName, + ChangeDataCaptureConfigurationInner resource); + + /** + * Creates or replaces a change data capture configuration that enrolls a PostgreSQL database for Microsoft Fabric + * Mirroring. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of a HorizonDB database enrollment for Microsoft Fabric Mirroring. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ChangeDataCaptureConfigurationInner> + beginCreateOrReplace(String resourceGroupName, String clusterName, String configurationName, + ChangeDataCaptureConfigurationInner resource); + + /** + * Creates or replaces a change data capture configuration that enrolls a PostgreSQL database for Microsoft Fabric + * Mirroring. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of a HorizonDB database enrollment for Microsoft Fabric Mirroring. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ChangeDataCaptureConfigurationInner> + beginCreateOrReplace(String resourceGroupName, String clusterName, String configurationName, + ChangeDataCaptureConfigurationInner resource, Context context); + + /** + * Creates or replaces a change data capture configuration that enrolls a PostgreSQL database for Microsoft Fabric + * Mirroring. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a HorizonDB database enrollment for Microsoft Fabric Mirroring on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono createOrReplaceAsync(String resourceGroupName, String clusterName, + String configurationName, ChangeDataCaptureConfigurationInner resource); + + /** + * Creates or replaces a change data capture configuration that enrolls a PostgreSQL database for Microsoft Fabric + * Mirroring. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a HorizonDB database enrollment for Microsoft Fabric Mirroring. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ChangeDataCaptureConfigurationInner createOrReplace(String resourceGroupName, String clusterName, + String configurationName, ChangeDataCaptureConfigurationInner resource); + + /** + * Creates or replaces a change data capture configuration that enrolls a PostgreSQL database for Microsoft Fabric + * Mirroring. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a HorizonDB database enrollment for Microsoft Fabric Mirroring. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ChangeDataCaptureConfigurationInner createOrReplace(String resourceGroupName, String clusterName, + String configurationName, ChangeDataCaptureConfigurationInner resource, Context context); + + /** + * Updates mutable change data capture configuration properties. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a HorizonDB database enrollment for Microsoft Fabric Mirroring along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> updateWithResponseAsync(String resourceGroupName, String clusterName, + String configurationName, ChangeDataCaptureConfigurationForPatchUpdate properties); + + /** + * Updates mutable change data capture configuration properties. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of a HorizonDB database enrollment for Microsoft Fabric Mirroring. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, ChangeDataCaptureConfigurationInner> beginUpdateAsync( + String resourceGroupName, String clusterName, String configurationName, + ChangeDataCaptureConfigurationForPatchUpdate properties); + + /** + * Updates mutable change data capture configuration properties. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of a HorizonDB database enrollment for Microsoft Fabric Mirroring. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ChangeDataCaptureConfigurationInner> beginUpdate( + String resourceGroupName, String clusterName, String configurationName, + ChangeDataCaptureConfigurationForPatchUpdate properties); + + /** + * Updates mutable change data capture configuration properties. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of a HorizonDB database enrollment for Microsoft Fabric Mirroring. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ChangeDataCaptureConfigurationInner> beginUpdate( + String resourceGroupName, String clusterName, String configurationName, + ChangeDataCaptureConfigurationForPatchUpdate properties, Context context); + + /** + * Updates mutable change data capture configuration properties. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a HorizonDB database enrollment for Microsoft Fabric Mirroring on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono updateAsync(String resourceGroupName, String clusterName, + String configurationName, ChangeDataCaptureConfigurationForPatchUpdate properties); + + /** + * Updates mutable change data capture configuration properties. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a HorizonDB database enrollment for Microsoft Fabric Mirroring. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ChangeDataCaptureConfigurationInner update(String resourceGroupName, String clusterName, String configurationName, + ChangeDataCaptureConfigurationForPatchUpdate properties); + + /** + * Updates mutable change data capture configuration properties. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a HorizonDB database enrollment for Microsoft Fabric Mirroring. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ChangeDataCaptureConfigurationInner update(String resourceGroupName, String clusterName, String configurationName, + ChangeDataCaptureConfigurationForPatchUpdate properties, Context context); + + /** + * Deletes a change data capture configuration after destination-side replication has been stopped or detached. This + * operation never deletes the Microsoft Fabric mirrored-database item. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String clusterName, + String configurationName); + + /** + * Deletes a change data capture configuration after destination-side replication has been stopped or detached. This + * operation never deletes the Microsoft Fabric mirrored-database item. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @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 PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String clusterName, + String configurationName); + + /** + * Deletes a change data capture configuration after destination-side replication has been stopped or detached. This + * operation never deletes the Microsoft Fabric mirrored-database item. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, + String configurationName); + + /** + * Deletes a change data capture configuration after destination-side replication has been stopped or detached. This + * operation never deletes the Microsoft Fabric mirrored-database item. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, + String configurationName, Context context); + + /** + * Deletes a change data capture configuration after destination-side replication has been stopped or detached. This + * operation never deletes the Microsoft Fabric mirrored-database item. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String clusterName, String configurationName); + + /** + * Deletes a change data capture configuration after destination-side replication has been stopped or detached. This + * operation never deletes the Microsoft Fabric mirrored-database item. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String clusterName, String configurationName); + + /** + * Deletes a change data capture configuration after destination-side replication has been stopped or detached. This + * operation never deletes the Microsoft Fabric mirrored-database item. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String clusterName, String configurationName, Context context); + + /** + * Lists change data capture configurations in a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ChangeDataCaptureConfiguration list operation as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String clusterName); + + /** + * Lists change data capture configurations in a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ChangeDataCaptureConfiguration list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String clusterName); + + /** + * Lists change data capture configurations in a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ChangeDataCaptureConfiguration list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String clusterName, + Context context); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/ChangeDataCaptureDestinationsClient.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/ChangeDataCaptureDestinationsClient.java new file mode 100644 index 0000000000000..8976d6e6af3c4 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/ChangeDataCaptureDestinationsClient.java @@ -0,0 +1,627 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.horizondb.fluent.models.ActivateChangeDataCaptureIdentityResultInner; +import com.azure.resourcemanager.horizondb.fluent.models.ChangeDataCaptureDestinationInner; +import com.azure.resourcemanager.horizondb.models.ActivateChangeDataCaptureIdentityRequest; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDestinationForPatchUpdate; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in ChangeDataCaptureDestinationsClient. + */ +public interface ChangeDataCaptureDestinationsClient { + /** + * Gets a change data capture destination. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a change data capture destination along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getWithResponseAsync(String resourceGroupName, String clusterName, + String destinationName); + + /** + * Gets a change data capture destination. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a change data capture destination on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String clusterName, + String destinationName); + + /** + * Gets a change data capture destination. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a change data capture destination along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String clusterName, + String destinationName, Context context); + + /** + * Gets a change data capture destination. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a change data capture destination. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ChangeDataCaptureDestinationInner get(String resourceGroupName, String clusterName, String destinationName); + + /** + * Creates or replaces a Microsoft Fabric change data capture destination. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a reusable Microsoft Fabric destination for HorizonDB change data capture configurations along with + * {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> createOrReplaceWithResponseAsync(String resourceGroupName, String clusterName, + String destinationName, ChangeDataCaptureDestinationInner resource); + + /** + * Creates or replaces a Microsoft Fabric change data capture destination. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of a reusable Microsoft Fabric destination for HorizonDB change data + * capture configurations. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, ChangeDataCaptureDestinationInner> + beginCreateOrReplaceAsync(String resourceGroupName, String clusterName, String destinationName, + ChangeDataCaptureDestinationInner resource); + + /** + * Creates or replaces a Microsoft Fabric change data capture destination. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of a reusable Microsoft Fabric destination for HorizonDB change data + * capture configurations. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ChangeDataCaptureDestinationInner> beginCreateOrReplace( + String resourceGroupName, String clusterName, String destinationName, + ChangeDataCaptureDestinationInner resource); + + /** + * Creates or replaces a Microsoft Fabric change data capture destination. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of a reusable Microsoft Fabric destination for HorizonDB change data + * capture configurations. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ChangeDataCaptureDestinationInner> beginCreateOrReplace( + String resourceGroupName, String clusterName, String destinationName, + ChangeDataCaptureDestinationInner resource, Context context); + + /** + * Creates or replaces a Microsoft Fabric change data capture destination. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a reusable Microsoft Fabric destination for HorizonDB change data capture configurations on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono createOrReplaceAsync(String resourceGroupName, String clusterName, + String destinationName, ChangeDataCaptureDestinationInner resource); + + /** + * Creates or replaces a Microsoft Fabric change data capture destination. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a reusable Microsoft Fabric destination for HorizonDB change data capture configurations. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ChangeDataCaptureDestinationInner createOrReplace(String resourceGroupName, String clusterName, + String destinationName, ChangeDataCaptureDestinationInner resource); + + /** + * Creates or replaces a Microsoft Fabric change data capture destination. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a reusable Microsoft Fabric destination for HorizonDB change data capture configurations. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ChangeDataCaptureDestinationInner createOrReplace(String resourceGroupName, String clusterName, + String destinationName, ChangeDataCaptureDestinationInner resource, Context context); + + /** + * Updates mutable change data capture destination properties. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a reusable Microsoft Fabric destination for HorizonDB change data capture configurations along with + * {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> updateWithResponseAsync(String resourceGroupName, String clusterName, + String destinationName, ChangeDataCaptureDestinationForPatchUpdate properties); + + /** + * Updates mutable change data capture destination properties. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of a reusable Microsoft Fabric destination for HorizonDB change data + * capture configurations. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, ChangeDataCaptureDestinationInner> beginUpdateAsync( + String resourceGroupName, String clusterName, String destinationName, + ChangeDataCaptureDestinationForPatchUpdate properties); + + /** + * Updates mutable change data capture destination properties. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of a reusable Microsoft Fabric destination for HorizonDB change data + * capture configurations. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ChangeDataCaptureDestinationInner> beginUpdate( + String resourceGroupName, String clusterName, String destinationName, + ChangeDataCaptureDestinationForPatchUpdate properties); + + /** + * Updates mutable change data capture destination properties. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of a reusable Microsoft Fabric destination for HorizonDB change data + * capture configurations. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ChangeDataCaptureDestinationInner> beginUpdate( + String resourceGroupName, String clusterName, String destinationName, + ChangeDataCaptureDestinationForPatchUpdate properties, Context context); + + /** + * Updates mutable change data capture destination properties. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a reusable Microsoft Fabric destination for HorizonDB change data capture configurations on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono updateAsync(String resourceGroupName, String clusterName, + String destinationName, ChangeDataCaptureDestinationForPatchUpdate properties); + + /** + * Updates mutable change data capture destination properties. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a reusable Microsoft Fabric destination for HorizonDB change data capture configurations. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ChangeDataCaptureDestinationInner update(String resourceGroupName, String clusterName, String destinationName, + ChangeDataCaptureDestinationForPatchUpdate properties); + + /** + * Updates mutable change data capture destination properties. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a reusable Microsoft Fabric destination for HorizonDB change data capture configurations. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ChangeDataCaptureDestinationInner update(String resourceGroupName, String clusterName, String destinationName, + ChangeDataCaptureDestinationForPatchUpdate properties, Context context); + + /** + * Deletes a change data capture destination after all referencing configurations and identity assignments have been + * removed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String clusterName, + String destinationName); + + /** + * Deletes a change data capture destination after all referencing configurations and identity assignments have been + * removed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @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 PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String clusterName, + String destinationName); + + /** + * Deletes a change data capture destination after all referencing configurations and identity assignments have been + * removed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, + String destinationName); + + /** + * Deletes a change data capture destination after all referencing configurations and identity assignments have been + * removed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, String destinationName, + Context context); + + /** + * Deletes a change data capture destination after all referencing configurations and identity assignments have been + * removed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String clusterName, String destinationName); + + /** + * Deletes a change data capture destination after all referencing configurations and identity assignments have been + * removed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String clusterName, String destinationName); + + /** + * Deletes a change data capture destination after all referencing configurations and identity assignments have been + * removed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String clusterName, String destinationName, Context context); + + /** + * Lists change data capture destinations in a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ChangeDataCaptureDestination list operation as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String clusterName); + + /** + * Lists change data capture destinations in a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ChangeDataCaptureDestination list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String clusterName); + + /** + * Lists change data capture destinations in a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ChangeDataCaptureDestination list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String clusterName, + Context context); + + /** + * Atomically activates a validated identity assignment for this destination. If-Match is evaluated against the + * destination entity tag. Activating the already-active assignment succeeds idempotently. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ifMatch The destination entity tag. The action proceeds only when this value matches the destination's + * current entity tag. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completed result of activating a change data capture destination identity along with {@link Response} + * on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> activateIdentityWithResponseAsync(String resourceGroupName, String ifMatch, + String clusterName, String destinationName, ActivateChangeDataCaptureIdentityRequest body); + + /** + * Atomically activates a validated identity assignment for this destination. If-Match is evaluated against the + * destination entity tag. Activating the already-active assignment succeeds idempotently. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ifMatch The destination entity tag. The action proceeds only when this value matches the destination's + * current entity tag. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of the completed result of activating a change data capture + * destination identity. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, ActivateChangeDataCaptureIdentityResultInner> + beginActivateIdentityAsync(String resourceGroupName, String ifMatch, String clusterName, String destinationName, + ActivateChangeDataCaptureIdentityRequest body); + + /** + * Atomically activates a validated identity assignment for this destination. If-Match is evaluated against the + * destination entity tag. Activating the already-active assignment succeeds idempotently. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ifMatch The destination entity tag. The action proceeds only when this value matches the destination's + * current entity tag. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the completed result of activating a change data capture + * destination identity. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ActivateChangeDataCaptureIdentityResultInner> + beginActivateIdentity(String resourceGroupName, String ifMatch, String clusterName, String destinationName, + ActivateChangeDataCaptureIdentityRequest body); + + /** + * Atomically activates a validated identity assignment for this destination. If-Match is evaluated against the + * destination entity tag. Activating the already-active assignment succeeds idempotently. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ifMatch The destination entity tag. The action proceeds only when this value matches the destination's + * current entity tag. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the completed result of activating a change data capture + * destination identity. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, ActivateChangeDataCaptureIdentityResultInner> + beginActivateIdentity(String resourceGroupName, String ifMatch, String clusterName, String destinationName, + ActivateChangeDataCaptureIdentityRequest body, Context context); + + /** + * Atomically activates a validated identity assignment for this destination. If-Match is evaluated against the + * destination entity tag. Activating the already-active assignment succeeds idempotently. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ifMatch The destination entity tag. The action proceeds only when this value matches the destination's + * current entity tag. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completed result of activating a change data capture destination identity on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono activateIdentityAsync(String resourceGroupName, String ifMatch, + String clusterName, String destinationName, ActivateChangeDataCaptureIdentityRequest body); + + /** + * Atomically activates a validated identity assignment for this destination. If-Match is evaluated against the + * destination entity tag. Activating the already-active assignment succeeds idempotently. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ifMatch The destination entity tag. The action proceeds only when this value matches the destination's + * current entity tag. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completed result of activating a change data capture destination identity. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ActivateChangeDataCaptureIdentityResultInner activateIdentity(String resourceGroupName, String ifMatch, + String clusterName, String destinationName, ActivateChangeDataCaptureIdentityRequest body); + + /** + * Atomically activates a validated identity assignment for this destination. If-Match is evaluated against the + * destination entity tag. Activating the already-active assignment succeeds idempotently. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ifMatch The destination entity tag. The action proceeds only when this value matches the destination's + * current entity tag. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completed result of activating a change data capture destination identity. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + ActivateChangeDataCaptureIdentityResultInner activateIdentity(String resourceGroupName, String ifMatch, + String clusterName, String destinationName, ActivateChangeDataCaptureIdentityRequest body, Context context); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/HorizonDbClustersClient.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/ClustersClient.java similarity index 60% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/HorizonDbClustersClient.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/ClustersClient.java index dc0f0af681a21..2975e46ab2f45 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/HorizonDbClustersClient.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/ClustersClient.java @@ -13,16 +13,16 @@ import com.azure.core.util.Context; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbClusterInner; -import com.azure.resourcemanager.horizondb.models.HorizonDbClusterForPatchUpdate; +import com.azure.resourcemanager.horizondb.fluent.models.ClusterInner; +import com.azure.resourcemanager.horizondb.models.ClusterForPatchUpdate; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; /** - * An instance of this class provides access to all the operations defined in HorizonDbClustersClient. + * An instance of this class provides access to all the operations defined in ClustersClient. */ -public interface HorizonDbClustersClient { +public interface ClustersClient { /** * Gets information about a HorizonDB cluster. * @@ -35,8 +35,7 @@ public interface HorizonDbClustersClient { * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String clusterName); + Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, String clusterName); /** * Gets information about a HorizonDB cluster. @@ -49,7 +48,7 @@ Mono> getByResourceGroupWithResponseAsync(String * @return information about a HorizonDB cluster on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono getByResourceGroupAsync(String resourceGroupName, String clusterName); + Mono getByResourceGroupAsync(String resourceGroupName, String clusterName); /** * Gets information about a HorizonDB cluster. @@ -63,7 +62,7 @@ Mono> getByResourceGroupWithResponseAsync(String * @return information about a HorizonDB cluster along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse(String resourceGroupName, String clusterName, + Response getByResourceGroupWithResponse(String resourceGroupName, String clusterName, Context context); /** @@ -77,10 +76,18 @@ Response getByResourceGroupWithResponse(String resourceGr * @return information about a HorizonDB cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) - HorizonDbClusterInner getByResourceGroup(String resourceGroupName, String clusterName); + ClusterInner getByResourceGroup(String resourceGroupName, String clusterName); /** - * Creates a new HorizonDB cluster or updates an existing cluster. + * Creates a new HorizonDB cluster or replaces an existing cluster. PointInTimeRestore creates the new Cluster + * resource and hydrates its service-owned database storage from an available source backup. It does not clone + * source pools, Pool-scoped endpoints, firewall rules, parameter-group associations, or other child resources. The + * new Cluster receives its service-generated Cluster-scoped Endpoint named cluster. For restore, postgreSqlVersion + * must be omitted because the service obtains it from backup metadata; all other new-cluster configuration comes + * from the request or service defaults. Same-location restore requires and honors pointInTimeUtc and allows + * creationSourceClusterLocation to be omitted. Cross-location restore requires creationSourceClusterLocation to + * identify the source cluster's Azure location and requires pointInTimeUtc, but ignores the supplied timestamp and + * restores the latest available backup. Cross-location responses omit pointInTimeUtc. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -91,11 +98,19 @@ Response getByResourceGroupWithResponse(String resourceGr * @return represents the HorizonDB cluster along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String clusterName, - HorizonDbClusterInner resource); + Mono>> createOrReplaceWithResponseAsync(String resourceGroupName, String clusterName, + ClusterInner resource); /** - * Creates a new HorizonDB cluster or updates an existing cluster. + * Creates a new HorizonDB cluster or replaces an existing cluster. PointInTimeRestore creates the new Cluster + * resource and hydrates its service-owned database storage from an available source backup. It does not clone + * source pools, Pool-scoped endpoints, firewall rules, parameter-group associations, or other child resources. The + * new Cluster receives its service-generated Cluster-scoped Endpoint named cluster. For restore, postgreSqlVersion + * must be omitted because the service obtains it from backup metadata; all other new-cluster configuration comes + * from the request or service defaults. Same-location restore requires and honors pointInTimeUtc and allows + * creationSourceClusterLocation to be omitted. Cross-location restore requires creationSourceClusterLocation to + * identify the source cluster's Azure location and requires pointInTimeUtc, but ignores the supplied timestamp and + * restores the latest available backup. Cross-location responses omit pointInTimeUtc. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -106,11 +121,19 @@ Mono>> createOrUpdateWithResponseAsync(String resource * @return the {@link PollerFlux} for polling of represents the HorizonDB cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, HorizonDbClusterInner> - beginCreateOrUpdateAsync(String resourceGroupName, String clusterName, HorizonDbClusterInner resource); + PollerFlux, ClusterInner> beginCreateOrReplaceAsync(String resourceGroupName, + String clusterName, ClusterInner resource); /** - * Creates a new HorizonDB cluster or updates an existing cluster. + * Creates a new HorizonDB cluster or replaces an existing cluster. PointInTimeRestore creates the new Cluster + * resource and hydrates its service-owned database storage from an available source backup. It does not clone + * source pools, Pool-scoped endpoints, firewall rules, parameter-group associations, or other child resources. The + * new Cluster receives its service-generated Cluster-scoped Endpoint named cluster. For restore, postgreSqlVersion + * must be omitted because the service obtains it from backup metadata; all other new-cluster configuration comes + * from the request or service defaults. Same-location restore requires and honors pointInTimeUtc and allows + * creationSourceClusterLocation to be omitted. Cross-location restore requires creationSourceClusterLocation to + * identify the source cluster's Azure location and requires pointInTimeUtc, but ignores the supplied timestamp and + * restores the latest available backup. Cross-location responses omit pointInTimeUtc. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -121,11 +144,19 @@ Mono>> createOrUpdateWithResponseAsync(String resource * @return the {@link SyncPoller} for polling of represents the HorizonDB cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, HorizonDbClusterInner> beginCreateOrUpdate(String resourceGroupName, - String clusterName, HorizonDbClusterInner resource); + SyncPoller, ClusterInner> beginCreateOrReplace(String resourceGroupName, + String clusterName, ClusterInner resource); /** - * Creates a new HorizonDB cluster or updates an existing cluster. + * Creates a new HorizonDB cluster or replaces an existing cluster. PointInTimeRestore creates the new Cluster + * resource and hydrates its service-owned database storage from an available source backup. It does not clone + * source pools, Pool-scoped endpoints, firewall rules, parameter-group associations, or other child resources. The + * new Cluster receives its service-generated Cluster-scoped Endpoint named cluster. For restore, postgreSqlVersion + * must be omitted because the service obtains it from backup metadata; all other new-cluster configuration comes + * from the request or service defaults. Same-location restore requires and honors pointInTimeUtc and allows + * creationSourceClusterLocation to be omitted. Cross-location restore requires creationSourceClusterLocation to + * identify the source cluster's Azure location and requires pointInTimeUtc, but ignores the supplied timestamp and + * restores the latest available backup. Cross-location responses omit pointInTimeUtc. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -137,11 +168,19 @@ SyncPoller, HorizonDbClusterInner> beginCreate * @return the {@link SyncPoller} for polling of represents the HorizonDB cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, HorizonDbClusterInner> beginCreateOrUpdate(String resourceGroupName, - String clusterName, HorizonDbClusterInner resource, Context context); + SyncPoller, ClusterInner> beginCreateOrReplace(String resourceGroupName, + String clusterName, ClusterInner resource, Context context); /** - * Creates a new HorizonDB cluster or updates an existing cluster. + * Creates a new HorizonDB cluster or replaces an existing cluster. PointInTimeRestore creates the new Cluster + * resource and hydrates its service-owned database storage from an available source backup. It does not clone + * source pools, Pool-scoped endpoints, firewall rules, parameter-group associations, or other child resources. The + * new Cluster receives its service-generated Cluster-scoped Endpoint named cluster. For restore, postgreSqlVersion + * must be omitted because the service obtains it from backup metadata; all other new-cluster configuration comes + * from the request or service defaults. Same-location restore requires and honors pointInTimeUtc and allows + * creationSourceClusterLocation to be omitted. Cross-location restore requires creationSourceClusterLocation to + * identify the source cluster's Azure location and requires pointInTimeUtc, but ignores the supplied timestamp and + * restores the latest available backup. Cross-location responses omit pointInTimeUtc. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -152,11 +191,18 @@ SyncPoller, HorizonDbClusterInner> beginCreate * @return represents the HorizonDB cluster on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono createOrUpdateAsync(String resourceGroupName, String clusterName, - HorizonDbClusterInner resource); + Mono createOrReplaceAsync(String resourceGroupName, String clusterName, ClusterInner resource); /** - * Creates a new HorizonDB cluster or updates an existing cluster. + * Creates a new HorizonDB cluster or replaces an existing cluster. PointInTimeRestore creates the new Cluster + * resource and hydrates its service-owned database storage from an available source backup. It does not clone + * source pools, Pool-scoped endpoints, firewall rules, parameter-group associations, or other child resources. The + * new Cluster receives its service-generated Cluster-scoped Endpoint named cluster. For restore, postgreSqlVersion + * must be omitted because the service obtains it from backup metadata; all other new-cluster configuration comes + * from the request or service defaults. Same-location restore requires and honors pointInTimeUtc and allows + * creationSourceClusterLocation to be omitted. Cross-location restore requires creationSourceClusterLocation to + * identify the source cluster's Azure location and requires pointInTimeUtc, but ignores the supplied timestamp and + * restores the latest available backup. Cross-location responses omit pointInTimeUtc. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -167,10 +213,18 @@ Mono createOrUpdateAsync(String resourceGroupName, String * @return represents the HorizonDB cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) - HorizonDbClusterInner createOrUpdate(String resourceGroupName, String clusterName, HorizonDbClusterInner resource); + ClusterInner createOrReplace(String resourceGroupName, String clusterName, ClusterInner resource); /** - * Creates a new HorizonDB cluster or updates an existing cluster. + * Creates a new HorizonDB cluster or replaces an existing cluster. PointInTimeRestore creates the new Cluster + * resource and hydrates its service-owned database storage from an available source backup. It does not clone + * source pools, Pool-scoped endpoints, firewall rules, parameter-group associations, or other child resources. The + * new Cluster receives its service-generated Cluster-scoped Endpoint named cluster. For restore, postgreSqlVersion + * must be omitted because the service obtains it from backup metadata; all other new-cluster configuration comes + * from the request or service defaults. Same-location restore requires and honors pointInTimeUtc and allows + * creationSourceClusterLocation to be omitted. Cross-location restore requires creationSourceClusterLocation to + * identify the source cluster's Azure location and requires pointInTimeUtc, but ignores the supplied timestamp and + * restores the latest available backup. Cross-location responses omit pointInTimeUtc. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -182,11 +236,10 @@ Mono createOrUpdateAsync(String resourceGroupName, String * @return represents the HorizonDB cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) - HorizonDbClusterInner createOrUpdate(String resourceGroupName, String clusterName, HorizonDbClusterInner resource, - Context context); + ClusterInner createOrReplace(String resourceGroupName, String clusterName, ClusterInner resource, Context context); /** - * Updates an existing HorizonDB cluster (e.g., tags, virtual cores, replica count). + * Updates an existing HorizonDB cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -198,10 +251,10 @@ HorizonDbClusterInner createOrUpdate(String resourceGroupName, String clusterNam */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> updateWithResponseAsync(String resourceGroupName, String clusterName, - HorizonDbClusterForPatchUpdate properties); + ClusterForPatchUpdate properties); /** - * Updates an existing HorizonDB cluster (e.g., tags, virtual cores, replica count). + * Updates an existing HorizonDB cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -212,11 +265,11 @@ Mono>> updateWithResponseAsync(String resourceGroupNam * @return the {@link PollerFlux} for polling of represents the HorizonDB cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, HorizonDbClusterInner> beginUpdateAsync(String resourceGroupName, - String clusterName, HorizonDbClusterForPatchUpdate properties); + PollerFlux, ClusterInner> beginUpdateAsync(String resourceGroupName, String clusterName, + ClusterForPatchUpdate properties); /** - * Updates an existing HorizonDB cluster (e.g., tags, virtual cores, replica count). + * Updates an existing HorizonDB cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -227,11 +280,11 @@ PollerFlux, HorizonDbClusterInner> beginUpdate * @return the {@link SyncPoller} for polling of represents the HorizonDB cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, HorizonDbClusterInner> beginUpdate(String resourceGroupName, - String clusterName, HorizonDbClusterForPatchUpdate properties); + SyncPoller, ClusterInner> beginUpdate(String resourceGroupName, String clusterName, + ClusterForPatchUpdate properties); /** - * Updates an existing HorizonDB cluster (e.g., tags, virtual cores, replica count). + * Updates an existing HorizonDB cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -243,11 +296,11 @@ SyncPoller, HorizonDbClusterInner> beginUpdate * @return the {@link SyncPoller} for polling of represents the HorizonDB cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, HorizonDbClusterInner> beginUpdate(String resourceGroupName, - String clusterName, HorizonDbClusterForPatchUpdate properties, Context context); + SyncPoller, ClusterInner> beginUpdate(String resourceGroupName, String clusterName, + ClusterForPatchUpdate properties, Context context); /** - * Updates an existing HorizonDB cluster (e.g., tags, virtual cores, replica count). + * Updates an existing HorizonDB cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -258,11 +311,10 @@ SyncPoller, HorizonDbClusterInner> beginUpdate * @return represents the HorizonDB cluster on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono updateAsync(String resourceGroupName, String clusterName, - HorizonDbClusterForPatchUpdate properties); + Mono updateAsync(String resourceGroupName, String clusterName, ClusterForPatchUpdate properties); /** - * Updates an existing HorizonDB cluster (e.g., tags, virtual cores, replica count). + * Updates an existing HorizonDB cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -273,11 +325,10 @@ Mono updateAsync(String resourceGroupName, String cluster * @return represents the HorizonDB cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) - HorizonDbClusterInner update(String resourceGroupName, String clusterName, - HorizonDbClusterForPatchUpdate properties); + ClusterInner update(String resourceGroupName, String clusterName, ClusterForPatchUpdate properties); /** - * Updates an existing HorizonDB cluster (e.g., tags, virtual cores, replica count). + * Updates an existing HorizonDB cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -289,11 +340,13 @@ HorizonDbClusterInner update(String resourceGroupName, String clusterName, * @return represents the HorizonDB cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) - HorizonDbClusterInner update(String resourceGroupName, String clusterName, - HorizonDbClusterForPatchUpdate properties, Context context); + ClusterInner update(String resourceGroupName, String clusterName, ClusterForPatchUpdate properties, + Context context); /** - * Deletes a HorizonDB cluster. + * Deletes a HorizonDB cluster, its Cluster-scoped Endpoint, and all remaining child resources. For an accepted + * deletion, the long-running operation remains nonterminal until physical deletion completes and point GET returns + * 404 Not Found. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -306,7 +359,9 @@ HorizonDbClusterInner update(String resourceGroupName, String clusterName, Mono>> deleteWithResponseAsync(String resourceGroupName, String clusterName); /** - * Deletes a HorizonDB cluster. + * Deletes a HorizonDB cluster, its Cluster-scoped Endpoint, and all remaining child resources. For an accepted + * deletion, the long-running operation remains nonterminal until physical deletion completes and point GET returns + * 404 Not Found. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -319,7 +374,9 @@ HorizonDbClusterInner update(String resourceGroupName, String clusterName, PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String clusterName); /** - * Deletes a HorizonDB cluster. + * Deletes a HorizonDB cluster, its Cluster-scoped Endpoint, and all remaining child resources. For an accepted + * deletion, the long-running operation remains nonterminal until physical deletion completes and point GET returns + * 404 Not Found. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -332,7 +389,9 @@ HorizonDbClusterInner update(String resourceGroupName, String clusterName, SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName); /** - * Deletes a HorizonDB cluster. + * Deletes a HorizonDB cluster, its Cluster-scoped Endpoint, and all remaining child resources. For an accepted + * deletion, the long-running operation remains nonterminal until physical deletion completes and point GET returns + * 404 Not Found. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -346,7 +405,9 @@ HorizonDbClusterInner update(String resourceGroupName, String clusterName, SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, Context context); /** - * Deletes a HorizonDB cluster. + * Deletes a HorizonDB cluster, its Cluster-scoped Endpoint, and all remaining child resources. For an accepted + * deletion, the long-running operation remains nonterminal until physical deletion completes and point GET returns + * 404 Not Found. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -359,7 +420,9 @@ HorizonDbClusterInner update(String resourceGroupName, String clusterName, Mono deleteAsync(String resourceGroupName, String clusterName); /** - * Deletes a HorizonDB cluster. + * Deletes a HorizonDB cluster, its Cluster-scoped Endpoint, and all remaining child resources. For an accepted + * deletion, the long-running operation remains nonterminal until physical deletion completes and point GET returns + * 404 Not Found. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -371,7 +434,9 @@ HorizonDbClusterInner update(String resourceGroupName, String clusterName, void delete(String resourceGroupName, String clusterName); /** - * Deletes a HorizonDB cluster. + * Deletes a HorizonDB cluster, its Cluster-scoped Endpoint, and all remaining child resources. For an accepted + * deletion, the long-running operation remains nonterminal until physical deletion completes and point GET returns + * 404 Not Found. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -390,10 +455,10 @@ HorizonDbClusterInner update(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 response of a HorizonDbCluster list operation as paginated response with {@link PagedFlux}. + * @return the response of a Cluster list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listByResourceGroupAsync(String resourceGroupName); + PagedFlux listByResourceGroupAsync(String resourceGroupName); /** * Lists all HorizonDB clusters in a resource group. @@ -402,10 +467,10 @@ HorizonDbClusterInner update(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 response of a HorizonDbCluster list operation as paginated response with {@link PagedIterable}. + * @return the response of a Cluster list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName); + PagedIterable listByResourceGroup(String resourceGroupName); /** * Lists all HorizonDB clusters in a resource group. @@ -415,30 +480,30 @@ HorizonDbClusterInner update(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 response of a HorizonDbCluster list operation as paginated response with {@link PagedIterable}. + * @return the response of a Cluster list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName, Context context); + PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** * Lists all HorizonDB clusters in a subscription. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbCluster list operation as paginated response with {@link PagedFlux}. + * @return the response of a Cluster list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(); + PagedFlux listAsync(); /** * Lists all HorizonDB clusters in a subscription. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbCluster list operation as paginated response with {@link PagedIterable}. + * @return the response of a Cluster list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); + PagedIterable list(); /** * Lists all HorizonDB clusters in a subscription. @@ -447,104 +512,15 @@ HorizonDbClusterInner update(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 response of a HorizonDbCluster list operation as paginated response with {@link PagedIterable}. + * @return the response of a Cluster list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); - - /** - * Starts a stopped HorizonDB cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> startWithResponseAsync(String resourceGroupName, String clusterName); - - /** - * Starts a stopped HorizonDB cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginStartAsync(String resourceGroupName, String clusterName); - - /** - * Starts a stopped HorizonDB cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginStart(String resourceGroupName, String clusterName); - - /** - * Starts a stopped HorizonDB cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginStart(String resourceGroupName, String clusterName, Context context); - - /** - * Starts a stopped HorizonDB cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB 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 A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono startAsync(String resourceGroupName, String clusterName); - - /** - * Starts a stopped HorizonDB cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB 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. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void start(String resourceGroupName, String clusterName); - - /** - * Starts a stopped HorizonDB cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void start(String resourceGroupName, String clusterName, Context context); + PagedIterable list(Context context); /** - * Stops a running HorizonDB cluster. + * Triggers failover within the cluster's designated read-write pool. HorizonDB selects the replacement node using + * the same eligibility and node-selection rules as automatic failover. The request fails with 409 Conflict when the + * designated pool is not eligible for failover or another conflicting operation is in progress. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -554,10 +530,12 @@ HorizonDbClusterInner update(String resourceGroupName, String clusterName, * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> stopWithResponseAsync(String resourceGroupName, String clusterName); + Mono>> failoverWithResponseAsync(String resourceGroupName, String clusterName); /** - * Stops a running HorizonDB cluster. + * Triggers failover within the cluster's designated read-write pool. HorizonDB selects the replacement node using + * the same eligibility and node-selection rules as automatic failover. The request fails with 409 Conflict when the + * designated pool is not eligible for failover or another conflicting operation is in progress. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -567,10 +545,12 @@ HorizonDbClusterInner update(String resourceGroupName, String clusterName, * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginStopAsync(String resourceGroupName, String clusterName); + PollerFlux, ClusterInner> beginFailoverAsync(String resourceGroupName, String clusterName); /** - * Stops a running HorizonDB cluster. + * Triggers failover within the cluster's designated read-write pool. HorizonDB selects the replacement node using + * the same eligibility and node-selection rules as automatic failover. The request fails with 409 Conflict when the + * designated pool is not eligible for failover or another conflicting operation is in progress. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -580,10 +560,12 @@ HorizonDbClusterInner update(String resourceGroupName, String clusterName, * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginStop(String resourceGroupName, String clusterName); + SyncPoller, ClusterInner> beginFailover(String resourceGroupName, String clusterName); /** - * Stops a running HorizonDB cluster. + * Triggers failover within the cluster's designated read-write pool. HorizonDB selects the replacement node using + * the same eligibility and node-selection rules as automatic failover. The request fails with 409 Conflict when the + * designated pool is not eligible for failover or another conflicting operation is in progress. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -594,126 +576,43 @@ HorizonDbClusterInner update(String resourceGroupName, String clusterName, * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginStop(String resourceGroupName, String clusterName, Context context); - - /** - * Stops a running HorizonDB cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB 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 A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono stopAsync(String resourceGroupName, String clusterName); - - /** - * Stops a running HorizonDB cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB 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. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void stop(String resourceGroupName, String clusterName); - - /** - * Stops a running HorizonDB cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void stop(String resourceGroupName, String clusterName, Context context); - - /** - * Restarts a HorizonDB cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> restartWithResponseAsync(String resourceGroupName, String clusterName); - - /** - * Restarts a HorizonDB cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, Void> beginRestartAsync(String resourceGroupName, String clusterName); - - /** - * Restarts a HorizonDB cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginRestart(String resourceGroupName, String clusterName); - - /** - * Restarts a HorizonDB cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginRestart(String resourceGroupName, String clusterName, Context context); + SyncPoller, ClusterInner> beginFailover(String resourceGroupName, String clusterName, + Context context); /** - * Restarts a HorizonDB cluster. + * Triggers failover within the cluster's designated read-write pool. HorizonDB selects the replacement node using + * the same eligibility and node-selection rules as automatic failover. The request fails with 409 Conflict when the + * designated pool is not eligible for failover or another conflicting operation is in progress. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB 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 A {@link Mono} that completes when a successful response is received. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono restartAsync(String resourceGroupName, String clusterName); + Mono failoverAsync(String resourceGroupName, String clusterName); /** - * Restarts a HorizonDB cluster. + * Triggers failover within the cluster's designated read-write pool. HorizonDB selects the replacement node using + * the same eligibility and node-selection rules as automatic failover. The request fails with 409 Conflict when the + * designated pool is not eligible for failover or another conflicting operation is in progress. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - void restart(String resourceGroupName, String clusterName); + ClusterInner failover(String resourceGroupName, String clusterName); /** - * Restarts a HorizonDB cluster. + * Triggers failover within the cluster's designated read-write pool. HorizonDB selects the replacement node using + * the same eligibility and node-selection rules as automatic failover. The request fails with 409 Conflict when the + * designated pool is not eligible for failover or another conflicting operation is in progress. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -721,7 +620,8 @@ HorizonDbClusterInner update(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 response. */ @ServiceMethod(returns = ReturnType.SINGLE) - void restart(String resourceGroupName, String clusterName, Context context); + ClusterInner failover(String resourceGroupName, String clusterName, Context context); } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/DefaultParameterGroupsClient.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/DefaultParameterGroupsClient.java new file mode 100644 index 0000000000000..3e122fb9e00e3 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/DefaultParameterGroupsClient.java @@ -0,0 +1,118 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; +import com.azure.resourcemanager.horizondb.fluent.models.DefaultParameterGroupInner; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in DefaultParameterGroupsClient. + */ +public interface DefaultParameterGroupsClient { + /** + * Lists default parameter groups available for a subscription in a specific region. The response contains at most + * one default parameter group for each PostgreSQL version. + * + * @param location The name of the Azure region. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DefaultParameterGroup list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listBySubscriptionAndRegionAsync(String location); + + /** + * Lists default parameter groups available for a subscription in a specific region. The response contains at most + * one default parameter group for each PostgreSQL version. + * + * @param location The name of the Azure region. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DefaultParameterGroup list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listBySubscriptionAndRegion(String location); + + /** + * Lists default parameter groups available for a subscription in a specific region. The response contains at most + * one default parameter group for each PostgreSQL version. + * + * @param location The name of the Azure region. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DefaultParameterGroup list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable listBySubscriptionAndRegion(String location, Context context); + + /** + * Gets a default parameter group available for a subscription in a specific region. Each PostgreSQL version has at + * most one default parameter group in a location. + * + * @param location The name of the Azure region. + * @param name The name of the DefaultParameterGroup. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a default parameter group available for a subscription in a specific region along with {@link Response} + * on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getWithResponseAsync(String location, String name); + + /** + * Gets a default parameter group available for a subscription in a specific region. Each PostgreSQL version has at + * most one default parameter group in a location. + * + * @param location The name of the Azure region. + * @param name The name of the DefaultParameterGroup. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a default parameter group available for a subscription in a specific region on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String location, String name); + + /** + * Gets a default parameter group available for a subscription in a specific region. Each PostgreSQL version has at + * most one default parameter group in a location. + * + * @param location The name of the Azure region. + * @param name The name of the DefaultParameterGroup. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a default parameter group available for a subscription in a specific region along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String location, String name, Context context); + + /** + * Gets a default parameter group available for a subscription in a specific region. Each PostgreSQL version has at + * most one default parameter group in a location. + * + * @param location The name of the Azure region. + * @param name The name of the DefaultParameterGroup. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a default parameter group available for a subscription in a specific region. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + DefaultParameterGroupInner get(String location, String name); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/EndpointsClient.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/EndpointsClient.java new file mode 100644 index 0000000000000..03b3614169af8 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/EndpointsClient.java @@ -0,0 +1,132 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; +import com.azure.resourcemanager.horizondb.fluent.models.EndpointInner; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in EndpointsClient. + */ +public interface EndpointsClient { + /** + * Gets information about a service-generated HorizonDB Cluster- or Pool-scoped Endpoint. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param endpointName The platform-assigned name of the HorizonDB endpoint. A Cluster-scoped ReadWrite Endpoint has + * exactly the same name as its associated Cluster. A Pool-scoped Endpoint has exactly the same name as its + * associated Pool. + * @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 information about a service-generated HorizonDB Cluster- or Pool-scoped Endpoint along with + * {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getWithResponseAsync(String resourceGroupName, String clusterName, + String endpointName); + + /** + * Gets information about a service-generated HorizonDB Cluster- or Pool-scoped Endpoint. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param endpointName The platform-assigned name of the HorizonDB endpoint. A Cluster-scoped ReadWrite Endpoint has + * exactly the same name as its associated Cluster. A Pool-scoped Endpoint has exactly the same name as its + * associated Pool. + * @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 information about a service-generated HorizonDB Cluster- or Pool-scoped Endpoint on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String clusterName, String endpointName); + + /** + * Gets information about a service-generated HorizonDB Cluster- or Pool-scoped Endpoint. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param endpointName The platform-assigned name of the HorizonDB endpoint. A Cluster-scoped ReadWrite Endpoint has + * exactly the same name as its associated Cluster. A Pool-scoped Endpoint has exactly the same name as its + * associated Pool. + * @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 information about a service-generated HorizonDB Cluster- or Pool-scoped Endpoint along with + * {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String clusterName, String endpointName, + Context context); + + /** + * Gets information about a service-generated HorizonDB Cluster- or Pool-scoped Endpoint. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param endpointName The platform-assigned name of the HorizonDB endpoint. A Cluster-scoped ReadWrite Endpoint has + * exactly the same name as its associated Cluster. A Pool-scoped Endpoint has exactly the same name as its + * associated Pool. + * @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 information about a service-generated HorizonDB Cluster- or Pool-scoped Endpoint. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + EndpointInner get(String resourceGroupName, String clusterName, String endpointName); + + /** + * Lists the service-generated Endpoints in a cluster. The collection contains the Cluster-scoped Endpoint named + * cluster and one Pool-scoped Endpoint for each pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Endpoint list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String clusterName); + + /** + * Lists the service-generated Endpoints in a cluster. The collection contains the Cluster-scoped Endpoint named + * cluster and one Pool-scoped Endpoint for each pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Endpoint list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String clusterName); + + /** + * Lists the service-generated Endpoints in a cluster. The collection contains the Cluster-scoped Endpoint named + * cluster and one Pool-scoped Endpoint for each pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Endpoint list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String clusterName, Context context); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/HorizonDbFirewallRulesClient.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/FirewallRulesClient.java similarity index 72% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/HorizonDbFirewallRulesClient.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/FirewallRulesClient.java index e68e2fd670c4b..ff8ede6a68273 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/HorizonDbFirewallRulesClient.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/FirewallRulesClient.java @@ -13,80 +13,79 @@ import com.azure.core.util.Context; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbFirewallRuleInner; +import com.azure.resourcemanager.horizondb.fluent.models.FirewallRuleInner; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; /** - * An instance of this class provides access to all the operations defined in HorizonDbFirewallRulesClient. + * An instance of this class provides access to all the operations defined in FirewallRulesClient. */ -public interface HorizonDbFirewallRulesClient { +public interface FirewallRulesClient { /** - * Gets information about a HorizonDB firewall rule. + * Gets information about a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @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 information about a HorizonDB firewall rule along with {@link Response} on successful completion of + * @return information about a HorizonDB pool firewall rule along with {@link Response} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, String clusterName, + Mono> getWithResponseAsync(String resourceGroupName, String clusterName, String poolName, String firewallRuleName); /** - * Gets information about a HorizonDB firewall rule. + * Gets information about a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @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 information about a HorizonDB firewall rule on successful completion of {@link Mono}. + * @return information about a HorizonDB pool firewall rule on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String clusterName, String poolName, + Mono getAsync(String resourceGroupName, String clusterName, String poolName, String firewallRuleName); /** - * Gets information about a HorizonDB firewall rule. + * Gets information about a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @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 information about a HorizonDB firewall rule along with {@link Response}. + * @return information about a HorizonDB pool firewall rule along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String clusterName, String poolName, + Response getWithResponse(String resourceGroupName, String clusterName, String poolName, String firewallRuleName, Context context); /** - * Gets information about a HorizonDB firewall rule. + * Gets information about a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @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 information about a HorizonDB firewall rule. + * @return information about a HorizonDB pool firewall rule. */ @ServiceMethod(returns = ReturnType.SINGLE) - HorizonDbFirewallRuleInner get(String resourceGroupName, String clusterName, String poolName, - String firewallRuleName); + FirewallRuleInner get(String resourceGroupName, String clusterName, String poolName, String firewallRuleName); /** * Lists all HorizonDB firewall rules in a pool. @@ -97,10 +96,10 @@ HorizonDbFirewallRuleInner get(String resourceGroupName, String clusterName, Str * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbFirewallRule list operation as paginated response with {@link PagedFlux}. + * @return the response of a FirewallRule list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String clusterName, String poolName); + PagedFlux listAsync(String resourceGroupName, String clusterName, String poolName); /** * Lists all HorizonDB firewall rules in a pool. @@ -111,10 +110,10 @@ HorizonDbFirewallRuleInner get(String resourceGroupName, String clusterName, Str * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbFirewallRule list operation as paginated response with {@link PagedIterable}. + * @return the response of a FirewallRule list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String clusterName, String poolName); + PagedIterable list(String resourceGroupName, String clusterName, String poolName); /** * Lists all HorizonDB firewall rules in a pool. @@ -126,144 +125,142 @@ HorizonDbFirewallRuleInner get(String resourceGroupName, String clusterName, Str * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbFirewallRule list operation as paginated response with {@link PagedIterable}. + * @return the response of a FirewallRule list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String clusterName, String poolName, + PagedIterable list(String resourceGroupName, String clusterName, String poolName, Context context); /** - * Creates a new HorizonDB firewall rule or updates an existing rule. + * Creates or replaces a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @param resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents the HorizonDB firewall rule along with {@link Response} on successful completion of - * {@link Mono}. + * @return represents a customer-managed firewall rule for a HorizonDB pool along with {@link Response} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String clusterName, - String poolName, String firewallRuleName, HorizonDbFirewallRuleInner resource); + Mono>> createOrReplaceWithResponseAsync(String resourceGroupName, String clusterName, + String poolName, String firewallRuleName, FirewallRuleInner resource); /** - * Creates a new HorizonDB firewall rule or updates an existing rule. + * Creates or replaces a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @param resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of represents the HorizonDB firewall rule. + * @return the {@link PollerFlux} for polling of represents a customer-managed firewall rule for a HorizonDB pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, HorizonDbFirewallRuleInner> beginCreateOrUpdateAsync( - String resourceGroupName, String clusterName, String poolName, String firewallRuleName, - HorizonDbFirewallRuleInner resource); + PollerFlux, FirewallRuleInner> beginCreateOrReplaceAsync(String resourceGroupName, + String clusterName, String poolName, String firewallRuleName, FirewallRuleInner resource); /** - * Creates a new HorizonDB firewall rule or updates an existing rule. + * Creates or replaces a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @param resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of represents the HorizonDB firewall rule. + * @return the {@link SyncPoller} for polling of represents a customer-managed firewall rule for a HorizonDB pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, HorizonDbFirewallRuleInner> beginCreateOrUpdate( - String resourceGroupName, String clusterName, String poolName, String firewallRuleName, - HorizonDbFirewallRuleInner resource); + SyncPoller, FirewallRuleInner> beginCreateOrReplace(String resourceGroupName, + String clusterName, String poolName, String firewallRuleName, FirewallRuleInner resource); /** - * Creates a new HorizonDB firewall rule or updates an existing rule. + * Creates or replaces a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @param resource Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of represents the HorizonDB firewall rule. + * @return the {@link SyncPoller} for polling of represents a customer-managed firewall rule for a HorizonDB pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, HorizonDbFirewallRuleInner> beginCreateOrUpdate( - String resourceGroupName, String clusterName, String poolName, String firewallRuleName, - HorizonDbFirewallRuleInner resource, Context context); + SyncPoller, FirewallRuleInner> beginCreateOrReplace(String resourceGroupName, + String clusterName, String poolName, String firewallRuleName, FirewallRuleInner resource, Context context); /** - * Creates a new HorizonDB firewall rule or updates an existing rule. + * Creates or replaces a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @param resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents the HorizonDB firewall rule on successful completion of {@link Mono}. + * @return represents a customer-managed firewall rule for a HorizonDB pool on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono createOrUpdateAsync(String resourceGroupName, String clusterName, String poolName, - String firewallRuleName, HorizonDbFirewallRuleInner resource); + Mono createOrReplaceAsync(String resourceGroupName, String clusterName, String poolName, + String firewallRuleName, FirewallRuleInner resource); /** - * Creates a new HorizonDB firewall rule or updates an existing rule. + * Creates or replaces a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @param resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents the HorizonDB firewall rule. + * @return represents a customer-managed firewall rule for a HorizonDB pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - HorizonDbFirewallRuleInner createOrUpdate(String resourceGroupName, String clusterName, String poolName, - String firewallRuleName, HorizonDbFirewallRuleInner resource); + FirewallRuleInner createOrReplace(String resourceGroupName, String clusterName, String poolName, + String firewallRuleName, FirewallRuleInner resource); /** - * Creates a new HorizonDB firewall rule or updates an existing rule. + * Creates or replaces a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @param resource Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents the HorizonDB firewall rule. + * @return represents a customer-managed firewall rule for a HorizonDB pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - HorizonDbFirewallRuleInner createOrUpdate(String resourceGroupName, String clusterName, String poolName, - String firewallRuleName, HorizonDbFirewallRuleInner resource, Context context); + FirewallRuleInner createOrReplace(String resourceGroupName, String clusterName, String poolName, + String firewallRuleName, FirewallRuleInner resource, Context context); /** - * Deletes a HorizonDB firewall rule. + * Deletes a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @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. @@ -274,12 +271,12 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam String poolName, String firewallRuleName); /** - * Deletes a HorizonDB firewall rule. + * Deletes a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @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. @@ -290,12 +287,12 @@ PollerFlux, Void> beginDeleteAsync(String resourceGroupName, St String firewallRuleName); /** - * Deletes a HorizonDB firewall rule. + * Deletes a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @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. @@ -306,12 +303,12 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String String firewallRuleName); /** - * Deletes a HorizonDB firewall rule. + * Deletes a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @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. @@ -323,12 +320,12 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String String firewallRuleName, Context context); /** - * Deletes a HorizonDB firewall rule. + * Deletes a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @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. @@ -338,12 +335,12 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String Mono deleteAsync(String resourceGroupName, String clusterName, String poolName, String firewallRuleName); /** - * Deletes a HorizonDB firewall rule. + * Deletes a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @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. @@ -352,12 +349,12 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String void delete(String resourceGroupName, String clusterName, String poolName, String firewallRuleName); /** - * Deletes a HorizonDB firewall rule. + * Deletes a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @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. diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/HorizonDbManagementClient.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/HorizonDbManagementClient.java index d1dbaa75d6a4e..1dfe709712e70 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/HorizonDbManagementClient.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/HorizonDbManagementClient.java @@ -54,58 +54,149 @@ public interface HorizonDbManagementClient { OperationsClient getOperations(); /** - * Gets the HorizonDbClustersClient object to access its operations. + * Gets the CapabilitiesClient object to access its operations. * - * @return the HorizonDbClustersClient object. + * @return the CapabilitiesClient object. */ - HorizonDbClustersClient getHorizonDbClusters(); + CapabilitiesClient getCapabilities(); /** - * Gets the HorizonDbPoolsClient object to access its operations. + * Gets the ClustersClient object to access its operations. * - * @return the HorizonDbPoolsClient object. + * @return the ClustersClient object. */ - HorizonDbPoolsClient getHorizonDbPools(); + ClustersClient getClusters(); /** - * Gets the HorizonDbReplicasClient object to access its operations. + * Gets the PoolsClient object to access its operations. * - * @return the HorizonDbReplicasClient object. + * @return the PoolsClient object. */ - HorizonDbReplicasClient getHorizonDbReplicas(); + PoolsClient getPools(); /** - * Gets the HorizonDbFirewallRulesClient object to access its operations. + * Gets the FirewallRulesClient object to access its operations. * - * @return the HorizonDbFirewallRulesClient object. + * @return the FirewallRulesClient object. */ - HorizonDbFirewallRulesClient getHorizonDbFirewallRules(); + FirewallRulesClient getFirewallRules(); /** - * Gets the HorizonDbPrivateEndpointConnectionsClient object to access its operations. + * Gets the PrivateEndpointConnectionsClient object to access its operations. * - * @return the HorizonDbPrivateEndpointConnectionsClient object. + * @return the PrivateEndpointConnectionsClient object. */ - HorizonDbPrivateEndpointConnectionsClient getHorizonDbPrivateEndpointConnections(); + PrivateEndpointConnectionsClient getPrivateEndpointConnections(); /** - * Gets the HorizonDbPrivateLinkResourcesClient object to access its operations. + * Gets the PrivateLinkResourcesClient object to access its operations. * - * @return the HorizonDbPrivateLinkResourcesClient object. + * @return the PrivateLinkResourcesClient object. */ - HorizonDbPrivateLinkResourcesClient getHorizonDbPrivateLinkResources(); + PrivateLinkResourcesClient getPrivateLinkResources(); /** - * Gets the HorizonDbParameterGroupsClient object to access its operations. + * Gets the ParameterGroupsClient object to access its operations. * - * @return the HorizonDbParameterGroupsClient object. + * @return the ParameterGroupsClient object. */ - HorizonDbParameterGroupsClient getHorizonDbParameterGroups(); + ParameterGroupsClient getParameterGroups(); /** - * Gets the HorizonDbAdministratorsClient object to access its operations. + * Gets the DefaultParameterGroupsClient object to access its operations. * - * @return the HorizonDbAdministratorsClient object. + * @return the DefaultParameterGroupsClient object. */ - HorizonDbAdministratorsClient getHorizonDbAdministrators(); + DefaultParameterGroupsClient getDefaultParameterGroups(); + + /** + * Gets the MicrosoftEntraAdministratorsClient object to access its operations. + * + * @return the MicrosoftEntraAdministratorsClient object. + */ + MicrosoftEntraAdministratorsClient getMicrosoftEntraAdministrators(); + + /** + * Gets the AuthenticationsClient object to access its operations. + * + * @return the AuthenticationsClient object. + */ + AuthenticationsClient getAuthentications(); + + /** + * Gets the PasswordAuthenticationsClient object to access its operations. + * + * @return the PasswordAuthenticationsClient object. + */ + PasswordAuthenticationsClient getPasswordAuthentications(); + + /** + * Gets the MicrosoftEntraAuthenticationsClient object to access its operations. + * + * @return the MicrosoftEntraAuthenticationsClient object. + */ + MicrosoftEntraAuthenticationsClient getMicrosoftEntraAuthentications(); + + /** + * Gets the ChangeDataCaptureCapabilitiesClient object to access its operations. + * + * @return the ChangeDataCaptureCapabilitiesClient object. + */ + ChangeDataCaptureCapabilitiesClient getChangeDataCaptureCapabilities(); + + /** + * Gets the ChangeDataCaptureDestinationsClient object to access its operations. + * + * @return the ChangeDataCaptureDestinationsClient object. + */ + ChangeDataCaptureDestinationsClient getChangeDataCaptureDestinations(); + + /** + * Gets the IdentityAssignmentsClient object to access its operations. + * + * @return the IdentityAssignmentsClient object. + */ + IdentityAssignmentsClient getIdentityAssignments(); + + /** + * Gets the ChangeDataCaptureConfigurationsClient object to access its operations. + * + * @return the ChangeDataCaptureConfigurationsClient object. + */ + ChangeDataCaptureConfigurationsClient getChangeDataCaptureConfigurations(); + + /** + * Gets the EndpointsClient object to access its operations. + * + * @return the EndpointsClient object. + */ + EndpointsClient getEndpoints(); + + /** + * Gets the MaintenanceEventsClient object to access its operations. + * + * @return the MaintenanceEventsClient object. + */ + MaintenanceEventsClient getMaintenanceEvents(); + + /** + * Gets the NodesClient object to access its operations. + * + * @return the NodesClient object. + */ + NodesClient getNodes(); + + /** + * Gets the LogCaptureConfigurationsClient object to access its operations. + * + * @return the LogCaptureConfigurationsClient object. + */ + LogCaptureConfigurationsClient getLogCaptureConfigurations(); + + /** + * Gets the LogFilesClient object to access its operations. + * + * @return the LogFilesClient object. + */ + LogFilesClient getLogFiles(); } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/IdentityAssignmentsClient.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/IdentityAssignmentsClient.java new file mode 100644 index 0000000000000..ce44017223bfc --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/IdentityAssignmentsClient.java @@ -0,0 +1,387 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.horizondb.fluent.models.IdentityAssignmentInner; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in IdentityAssignmentsClient. + */ +public interface IdentityAssignmentsClient { + /** + * Gets a change data capture identity assignment. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a change data capture identity assignment along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getWithResponseAsync(String resourceGroupName, String clusterName, + String destinationName, String assignmentName); + + /** + * Gets a change data capture identity assignment. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a change data capture identity assignment on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String clusterName, String destinationName, + String assignmentName); + + /** + * Gets a change data capture identity assignment. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a change data capture identity assignment along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String clusterName, + String destinationName, String assignmentName, Context context); + + /** + * Gets a change data capture identity assignment. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a change data capture identity assignment. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + IdentityAssignmentInner get(String resourceGroupName, String clusterName, String destinationName, + String assignmentName); + + /** + * Creates or idempotently replaces a change data capture identity assignment. The identity resource ID is immutable + * and must reference a user-assigned managed identity already attached to the parent cluster. The service also + * validates destination permissions, which are not granted by attaching the identity to the cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a user-assigned managed identity authorized for a HorizonDB change data capture destination along with + * {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> createOrReplaceWithResponseAsync(String resourceGroupName, String clusterName, + String destinationName, String assignmentName, IdentityAssignmentInner resource); + + /** + * Creates or idempotently replaces a change data capture identity assignment. The identity resource ID is immutable + * and must reference a user-assigned managed identity already attached to the parent cluster. The service also + * validates destination permissions, which are not granted by attaching the identity to the cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of a user-assigned managed identity authorized for a HorizonDB change + * data capture destination. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, IdentityAssignmentInner> beginCreateOrReplaceAsync( + String resourceGroupName, String clusterName, String destinationName, String assignmentName, + IdentityAssignmentInner resource); + + /** + * Creates or idempotently replaces a change data capture identity assignment. The identity resource ID is immutable + * and must reference a user-assigned managed identity already attached to the parent cluster. The service also + * validates destination permissions, which are not granted by attaching the identity to the cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of a user-assigned managed identity authorized for a HorizonDB change + * data capture destination. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, IdentityAssignmentInner> beginCreateOrReplace( + String resourceGroupName, String clusterName, String destinationName, String assignmentName, + IdentityAssignmentInner resource); + + /** + * Creates or idempotently replaces a change data capture identity assignment. The identity resource ID is immutable + * and must reference a user-assigned managed identity already attached to the parent cluster. The service also + * validates destination permissions, which are not granted by attaching the identity to the cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of a user-assigned managed identity authorized for a HorizonDB change + * data capture destination. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, IdentityAssignmentInner> beginCreateOrReplace( + String resourceGroupName, String clusterName, String destinationName, String assignmentName, + IdentityAssignmentInner resource, Context context); + + /** + * Creates or idempotently replaces a change data capture identity assignment. The identity resource ID is immutable + * and must reference a user-assigned managed identity already attached to the parent cluster. The service also + * validates destination permissions, which are not granted by attaching the identity to the cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a user-assigned managed identity authorized for a HorizonDB change data capture destination on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono createOrReplaceAsync(String resourceGroupName, String clusterName, + String destinationName, String assignmentName, IdentityAssignmentInner resource); + + /** + * Creates or idempotently replaces a change data capture identity assignment. The identity resource ID is immutable + * and must reference a user-assigned managed identity already attached to the parent cluster. The service also + * validates destination permissions, which are not granted by attaching the identity to the cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a user-assigned managed identity authorized for a HorizonDB change data capture destination. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + IdentityAssignmentInner createOrReplace(String resourceGroupName, String clusterName, String destinationName, + String assignmentName, IdentityAssignmentInner resource); + + /** + * Creates or idempotently replaces a change data capture identity assignment. The identity resource ID is immutable + * and must reference a user-assigned managed identity already attached to the parent cluster. The service also + * validates destination permissions, which are not granted by attaching the identity to the cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a user-assigned managed identity authorized for a HorizonDB change data capture destination. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + IdentityAssignmentInner createOrReplace(String resourceGroupName, String clusterName, String destinationName, + String assignmentName, IdentityAssignmentInner resource, Context context); + + /** + * Deletes an inactive change data capture identity assignment. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String clusterName, + String destinationName, String assignmentName); + + /** + * Deletes an inactive change data capture identity assignment. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @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 PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String clusterName, + String destinationName, String assignmentName); + + /** + * Deletes an inactive change data capture identity assignment. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, String destinationName, + String assignmentName); + + /** + * Deletes an inactive change data capture identity assignment. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, String destinationName, + String assignmentName, Context context); + + /** + * Deletes an inactive change data capture identity assignment. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String clusterName, String destinationName, String assignmentName); + + /** + * Deletes an inactive change data capture identity assignment. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String clusterName, String destinationName, String assignmentName); + + /** + * Deletes an inactive change data capture identity assignment. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String clusterName, String destinationName, String assignmentName, + Context context); + + /** + * Lists identity assignments for a change data capture destination. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IdentityAssignment list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String clusterName, String destinationName); + + /** + * Lists identity assignments for a change data capture destination. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IdentityAssignment list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String clusterName, String destinationName); + + /** + * Lists identity assignments for a change data capture destination. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IdentityAssignment list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String clusterName, String destinationName, + Context context); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/LogCaptureConfigurationsClient.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/LogCaptureConfigurationsClient.java new file mode 100644 index 0000000000000..d6af22848a3b3 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/LogCaptureConfigurationsClient.java @@ -0,0 +1,250 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.horizondb.fluent.models.LogCaptureConfigurationInner; +import com.azure.resourcemanager.horizondb.models.LogCaptureConfigurationForPatchUpdate; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in LogCaptureConfigurationsClient. + */ +public interface LogCaptureConfigurationsClient { + /** + * Gets a log capture configuration for a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logCaptureConfigurationName The name of the LogCaptureConfiguration. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a log capture configuration for a HorizonDB cluster along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getWithResponseAsync(String resourceGroupName, String clusterName, + String logCaptureConfigurationName); + + /** + * Gets a log capture configuration for a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logCaptureConfigurationName The name of the LogCaptureConfiguration. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a log capture configuration for a HorizonDB cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String clusterName, + String logCaptureConfigurationName); + + /** + * Gets a log capture configuration for a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logCaptureConfigurationName The name of the LogCaptureConfiguration. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a log capture configuration for a HorizonDB cluster along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String clusterName, + String logCaptureConfigurationName, Context context); + + /** + * Gets a log capture configuration for a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logCaptureConfigurationName The name of the LogCaptureConfiguration. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a log capture configuration for a HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + LogCaptureConfigurationInner get(String resourceGroupName, String clusterName, String logCaptureConfigurationName); + + /** + * Updates a log capture configuration. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logCaptureConfigurationName The name of the LogCaptureConfiguration. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a predefined log capture configuration created by the service for a HorizonDB cluster along with + * {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> updateWithResponseAsync(String resourceGroupName, String clusterName, + String logCaptureConfigurationName, LogCaptureConfigurationForPatchUpdate properties); + + /** + * Updates a log capture configuration. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logCaptureConfigurationName The name of the LogCaptureConfiguration. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of a predefined log capture configuration created by the service for a + * HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, LogCaptureConfigurationInner> beginUpdateAsync( + String resourceGroupName, String clusterName, String logCaptureConfigurationName, + LogCaptureConfigurationForPatchUpdate properties); + + /** + * Updates a log capture configuration. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logCaptureConfigurationName The name of the LogCaptureConfiguration. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of a predefined log capture configuration created by the service for a + * HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, LogCaptureConfigurationInner> beginUpdate( + String resourceGroupName, String clusterName, String logCaptureConfigurationName, + LogCaptureConfigurationForPatchUpdate properties); + + /** + * Updates a log capture configuration. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logCaptureConfigurationName The name of the LogCaptureConfiguration. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of a predefined log capture configuration created by the service for a + * HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, LogCaptureConfigurationInner> beginUpdate( + String resourceGroupName, String clusterName, String logCaptureConfigurationName, + LogCaptureConfigurationForPatchUpdate properties, Context context); + + /** + * Updates a log capture configuration. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logCaptureConfigurationName The name of the LogCaptureConfiguration. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a predefined log capture configuration created by the service for a HorizonDB cluster on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono updateAsync(String resourceGroupName, String clusterName, + String logCaptureConfigurationName, LogCaptureConfigurationForPatchUpdate properties); + + /** + * Updates a log capture configuration. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logCaptureConfigurationName The name of the LogCaptureConfiguration. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a predefined log capture configuration created by the service for a HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + LogCaptureConfigurationInner update(String resourceGroupName, String clusterName, + String logCaptureConfigurationName, LogCaptureConfigurationForPatchUpdate properties); + + /** + * Updates a log capture configuration. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logCaptureConfigurationName The name of the LogCaptureConfiguration. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a predefined log capture configuration created by the service for a HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + LogCaptureConfigurationInner update(String resourceGroupName, String clusterName, + String logCaptureConfigurationName, LogCaptureConfigurationForPatchUpdate properties, Context context); + + /** + * Lists the log capture configurations for a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LogCaptureConfiguration list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String clusterName); + + /** + * Lists the log capture configurations for a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LogCaptureConfiguration list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String clusterName); + + /** + * Lists the log capture configurations for a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LogCaptureConfiguration list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String clusterName, Context context); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/LogFilesClient.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/LogFilesClient.java new file mode 100644 index 0000000000000..347923ab351bd --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/LogFilesClient.java @@ -0,0 +1,184 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; +import com.azure.resourcemanager.horizondb.fluent.models.LogFileDownloadUrlInner; +import com.azure.resourcemanager.horizondb.fluent.models.LogFileInner; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in LogFilesClient. + */ +public interface LogFilesClient { + /** + * Gets metadata for a captured HorizonDB log file. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logFileName The name of the LogFile. + * @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 metadata for a captured HorizonDB log file along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getWithResponseAsync(String resourceGroupName, String clusterName, String logFileName); + + /** + * Gets metadata for a captured HorizonDB log file. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logFileName The name of the LogFile. + * @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 metadata for a captured HorizonDB log file on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String clusterName, String logFileName); + + /** + * Gets metadata for a captured HorizonDB log file. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logFileName The name of the LogFile. + * @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 metadata for a captured HorizonDB log file along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String clusterName, String logFileName, + Context context); + + /** + * Gets metadata for a captured HorizonDB log file. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logFileName The name of the LogFile. + * @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 metadata for a captured HorizonDB log file. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + LogFileInner get(String resourceGroupName, String clusterName, String logFileName); + + /** + * Lists captured log files for a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LogFile list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String clusterName); + + /** + * Lists captured log files for a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LogFile list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String clusterName); + + /** + * Lists captured log files for a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LogFile list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String clusterName, Context context); + + /** + * Gets a short-lived signed URL for downloading a captured log file. The signed URL is returned only by this action + * so routine resource GET and LIST responses do not expose bearer credentials. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logFileName The name of the LogFile. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a short-lived signed URL for downloading a captured log file along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> listDownloadUrlsWithResponseAsync(String resourceGroupName, + String clusterName, String logFileName); + + /** + * Gets a short-lived signed URL for downloading a captured log file. The signed URL is returned only by this action + * so routine resource GET and LIST responses do not expose bearer credentials. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logFileName The name of the LogFile. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a short-lived signed URL for downloading a captured log file on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono listDownloadUrlsAsync(String resourceGroupName, String clusterName, + String logFileName); + + /** + * Gets a short-lived signed URL for downloading a captured log file. The signed URL is returned only by this action + * so routine resource GET and LIST responses do not expose bearer credentials. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logFileName The name of the LogFile. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a short-lived signed URL for downloading a captured log file along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response listDownloadUrlsWithResponse(String resourceGroupName, String clusterName, + String logFileName, Context context); + + /** + * Gets a short-lived signed URL for downloading a captured log file. The signed URL is returned only by this action + * so routine resource GET and LIST responses do not expose bearer credentials. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logFileName The name of the LogFile. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a short-lived signed URL for downloading a captured log file. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + LogFileDownloadUrlInner listDownloadUrls(String resourceGroupName, String clusterName, String logFileName); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/MaintenanceEventsClient.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/MaintenanceEventsClient.java new file mode 100644 index 0000000000000..385d20ccc7e3c --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/MaintenanceEventsClient.java @@ -0,0 +1,408 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.horizondb.fluent.models.MaintenanceEventActionResponseInner; +import com.azure.resourcemanager.horizondb.fluent.models.MaintenanceEventInner; +import com.azure.resourcemanager.horizondb.models.MaintenanceEventRescheduleRequest; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in MaintenanceEventsClient. + */ +public interface MaintenanceEventsClient { + /** + * Gets information about a maintenance event for a HorizonDB pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @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 information about a maintenance event for a HorizonDB pool along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getWithResponseAsync(String resourceGroupName, String clusterName, + String poolName, String maintenanceEventId); + + /** + * Gets information about a maintenance event for a HorizonDB pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @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 information about a maintenance event for a HorizonDB pool on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String clusterName, String poolName, + String maintenanceEventId); + + /** + * Gets information about a maintenance event for a HorizonDB pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @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 information about a maintenance event for a HorizonDB pool along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String clusterName, String poolName, + String maintenanceEventId, Context context); + + /** + * Gets information about a maintenance event for a HorizonDB pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @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 information about a maintenance event for a HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + MaintenanceEventInner get(String resourceGroupName, String clusterName, String poolName, String maintenanceEventId); + + /** + * Lists maintenance events for a HorizonDB pool. Use the OData $filter query parameter to filter by + * properties/status with the eq and or operators. For example, properties/status eq 'Planned' or properties/status + * eq 'InProgress' returns upcoming events. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param filter The OData filter expression to apply to the list operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a MaintenanceEvent list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String clusterName, String poolName, + String filter); + + /** + * Lists maintenance events for a HorizonDB pool. Use the OData $filter query parameter to filter by + * properties/status with the eq and or operators. For example, properties/status eq 'Planned' or properties/status + * eq 'InProgress' returns upcoming events. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a MaintenanceEvent list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String clusterName, String poolName); + + /** + * Lists maintenance events for a HorizonDB pool. Use the OData $filter query parameter to filter by + * properties/status with the eq and or operators. For example, properties/status eq 'Planned' or properties/status + * eq 'InProgress' returns upcoming events. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a MaintenanceEvent list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String clusterName, String poolName); + + /** + * Lists maintenance events for a HorizonDB pool. Use the OData $filter query parameter to filter by + * properties/status with the eq and or operators. For example, properties/status eq 'Planned' or properties/status + * eq 'InProgress' returns upcoming events. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param filter The OData filter expression to apply to the list operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a MaintenanceEvent list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String clusterName, String poolName, + String filter, Context context); + + /** + * Reschedules a maintenance event to a new date and time. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response from a maintenance event reschedule or apply-now action along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> rescheduleWithResponseAsync(String resourceGroupName, String clusterName, + String poolName, String maintenanceEventId, MaintenanceEventRescheduleRequest body); + + /** + * Reschedules a maintenance event to a new date and time. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of the response from a maintenance event reschedule or apply-now + * action. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, MaintenanceEventActionResponseInner> + beginRescheduleAsync(String resourceGroupName, String clusterName, String poolName, String maintenanceEventId, + MaintenanceEventRescheduleRequest body); + + /** + * Reschedules a maintenance event to a new date and time. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the response from a maintenance event reschedule or apply-now + * action. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, MaintenanceEventActionResponseInner> beginReschedule( + String resourceGroupName, String clusterName, String poolName, String maintenanceEventId, + MaintenanceEventRescheduleRequest body); + + /** + * Reschedules a maintenance event to a new date and time. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the response from a maintenance event reschedule or apply-now + * action. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, MaintenanceEventActionResponseInner> beginReschedule( + String resourceGroupName, String clusterName, String poolName, String maintenanceEventId, + MaintenanceEventRescheduleRequest body, Context context); + + /** + * Reschedules a maintenance event to a new date and time. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response from a maintenance event reschedule or apply-now action on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono rescheduleAsync(String resourceGroupName, String clusterName, + String poolName, String maintenanceEventId, MaintenanceEventRescheduleRequest body); + + /** + * Reschedules a maintenance event to a new date and time. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response from a maintenance event reschedule or apply-now action. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + MaintenanceEventActionResponseInner reschedule(String resourceGroupName, String clusterName, String poolName, + String maintenanceEventId, MaintenanceEventRescheduleRequest body); + + /** + * Reschedules a maintenance event to a new date and time. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response from a maintenance event reschedule or apply-now action. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + MaintenanceEventActionResponseInner reschedule(String resourceGroupName, String clusterName, String poolName, + String maintenanceEventId, MaintenanceEventRescheduleRequest body, Context context); + + /** + * Applies the maintenance event immediately. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response from a maintenance event reschedule or apply-now action along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> applyNowWithResponseAsync(String resourceGroupName, String clusterName, + String poolName, String maintenanceEventId); + + /** + * Applies the maintenance event immediately. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @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 PollerFlux} for polling of the response from a maintenance event reschedule or apply-now + * action. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, MaintenanceEventActionResponseInner> + beginApplyNowAsync(String resourceGroupName, String clusterName, String poolName, String maintenanceEventId); + + /** + * Applies the maintenance event immediately. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @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 response from a maintenance event reschedule or apply-now + * action. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, MaintenanceEventActionResponseInner> + beginApplyNow(String resourceGroupName, String clusterName, String poolName, String maintenanceEventId); + + /** + * Applies the maintenance event immediately. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @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 response from a maintenance event reschedule or apply-now + * action. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, MaintenanceEventActionResponseInner> beginApplyNow( + String resourceGroupName, String clusterName, String poolName, String maintenanceEventId, Context context); + + /** + * Applies the maintenance event immediately. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response from a maintenance event reschedule or apply-now action on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono applyNowAsync(String resourceGroupName, String clusterName, + String poolName, String maintenanceEventId); + + /** + * Applies the maintenance event immediately. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response from a maintenance event reschedule or apply-now action. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + MaintenanceEventActionResponseInner applyNow(String resourceGroupName, String clusterName, String poolName, + String maintenanceEventId); + + /** + * Applies the maintenance event immediately. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response from a maintenance event reschedule or apply-now action. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + MaintenanceEventActionResponseInner applyNow(String resourceGroupName, String clusterName, String poolName, + String maintenanceEventId, Context context); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/HorizonDbAdministratorsClient.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/MicrosoftEntraAdministratorsClient.java similarity index 59% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/HorizonDbAdministratorsClient.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/MicrosoftEntraAdministratorsClient.java index 89820c0540d30..8070a064f47f4 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/HorizonDbAdministratorsClient.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/MicrosoftEntraAdministratorsClient.java @@ -13,202 +13,231 @@ import com.azure.core.util.Context; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbAdministratorInner; -import com.azure.resourcemanager.horizondb.models.HorizonDbAdministratorAdd; +import com.azure.resourcemanager.horizondb.fluent.models.MicrosoftEntraAdministratorInner; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAdministratorAdd; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; /** - * An instance of this class provides access to all the operations defined in HorizonDbAdministratorsClient. + * An instance of this class provides access to all the operations defined in MicrosoftEntraAdministratorsClient. */ -public interface HorizonDbAdministratorsClient { +public interface MicrosoftEntraAdministratorsClient { /** - * Gets information about a HorizonDB administrator. + * Gets information about a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @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 information about a HorizonDB administrator along with {@link Response} on successful completion of - * {@link Mono}. + * @return information about a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, String clusterName, + Mono> getWithResponseAsync(String resourceGroupName, String clusterName, String objectId); /** - * Gets information about a HorizonDB administrator. + * Gets information about a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @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 information about a HorizonDB administrator on successful completion of {@link Mono}. + * @return information about a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String clusterName, String objectId); + Mono getAsync(String resourceGroupName, String clusterName, String objectId); /** - * Gets information about a HorizonDB administrator. + * Gets information about a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @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 information about a HorizonDB administrator along with {@link Response}. + * @return information about a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String clusterName, String objectId, - Context context); + Response getWithResponse(String resourceGroupName, String clusterName, + String objectId, Context context); /** - * Gets information about a HorizonDB administrator. + * Gets information about a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @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 information about a HorizonDB administrator. + * @return information about a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal. */ @ServiceMethod(returns = ReturnType.SINGLE) - HorizonDbAdministratorInner get(String resourceGroupName, String clusterName, String objectId); + MicrosoftEntraAdministratorInner get(String resourceGroupName, String clusterName, String objectId); /** - * Creates a new HorizonDB administrator or updates an existing administrator. + * Creates or replaces a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @param resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents an Entra ID administrator configured on a HorizonDB cluster along with {@link Response} on - * successful completion of {@link Mono}. + * @return represents a PostgreSQL role that is a member of the azure_pg_admin role and is mapped to a Microsoft + * Entra principal along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, String clusterName, - String objectId, HorizonDbAdministratorAdd resource); + Mono>> createOrReplaceWithResponseAsync(String resourceGroupName, String clusterName, + String objectId, MicrosoftEntraAdministratorAdd resource); /** - * Creates a new HorizonDB administrator or updates an existing administrator. + * Creates or replaces a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @param resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of represents an Entra ID administrator configured on a HorizonDB - * cluster. + * @return the {@link PollerFlux} for polling of represents a PostgreSQL role that is a member of the azure_pg_admin + * role and is mapped to a Microsoft Entra principal. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, HorizonDbAdministratorInner> beginCreateOrUpdateAsync( - String resourceGroupName, String clusterName, String objectId, HorizonDbAdministratorAdd resource); + PollerFlux, MicrosoftEntraAdministratorInner> + beginCreateOrReplaceAsync(String resourceGroupName, String clusterName, String objectId, + MicrosoftEntraAdministratorAdd resource); /** - * Creates a new HorizonDB administrator or updates an existing administrator. + * Creates or replaces a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @param resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of represents an Entra ID administrator configured on a HorizonDB - * cluster. + * @return the {@link SyncPoller} for polling of represents a PostgreSQL role that is a member of the azure_pg_admin + * role and is mapped to a Microsoft Entra principal. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, HorizonDbAdministratorInner> beginCreateOrUpdate( - String resourceGroupName, String clusterName, String objectId, HorizonDbAdministratorAdd resource); + SyncPoller, MicrosoftEntraAdministratorInner> beginCreateOrReplace( + String resourceGroupName, String clusterName, String objectId, MicrosoftEntraAdministratorAdd resource); /** - * Creates a new HorizonDB administrator or updates an existing administrator. + * Creates or replaces a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @param resource Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of represents an Entra ID administrator configured on a HorizonDB - * cluster. + * @return the {@link SyncPoller} for polling of represents a PostgreSQL role that is a member of the azure_pg_admin + * role and is mapped to a Microsoft Entra principal. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, HorizonDbAdministratorInner> beginCreateOrUpdate( - String resourceGroupName, String clusterName, String objectId, HorizonDbAdministratorAdd resource, + SyncPoller, MicrosoftEntraAdministratorInner> beginCreateOrReplace( + String resourceGroupName, String clusterName, String objectId, MicrosoftEntraAdministratorAdd resource, Context context); /** - * Creates a new HorizonDB administrator or updates an existing administrator. + * Creates or replaces a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @param resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents an Entra ID administrator configured on a HorizonDB cluster on successful completion of - * {@link Mono}. + * @return represents a PostgreSQL role that is a member of the azure_pg_admin role and is mapped to a Microsoft + * Entra principal on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono createOrUpdateAsync(String resourceGroupName, String clusterName, String objectId, - HorizonDbAdministratorAdd resource); + Mono createOrReplaceAsync(String resourceGroupName, String clusterName, + String objectId, MicrosoftEntraAdministratorAdd resource); /** - * Creates a new HorizonDB administrator or updates an existing administrator. + * Creates or replaces a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @param resource Resource create parameters. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents an Entra ID administrator configured on a HorizonDB cluster. + * @return represents a PostgreSQL role that is a member of the azure_pg_admin role and is mapped to a Microsoft + * Entra principal. */ @ServiceMethod(returns = ReturnType.SINGLE) - HorizonDbAdministratorInner createOrUpdate(String resourceGroupName, String clusterName, String objectId, - HorizonDbAdministratorAdd resource); + MicrosoftEntraAdministratorInner createOrReplace(String resourceGroupName, String clusterName, String objectId, + MicrosoftEntraAdministratorAdd resource); /** - * Creates a new HorizonDB administrator or updates an existing administrator. + * Creates or replaces a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @param resource Resource create parameters. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents an Entra ID administrator configured on a HorizonDB cluster. + * @return represents a PostgreSQL role that is a member of the azure_pg_admin role and is mapped to a Microsoft + * Entra principal. */ @ServiceMethod(returns = ReturnType.SINGLE) - HorizonDbAdministratorInner createOrUpdate(String resourceGroupName, String clusterName, String objectId, - HorizonDbAdministratorAdd resource, Context context); + MicrosoftEntraAdministratorInner createOrReplace(String resourceGroupName, String clusterName, String objectId, + MicrosoftEntraAdministratorAdd resource, Context context); /** - * Deletes a HorizonDB administrator. + * Deletes a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @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. @@ -219,11 +248,12 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam String objectId); /** - * Deletes a HorizonDB administrator. + * Deletes a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @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. @@ -233,11 +263,12 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String clusterName, String objectId); /** - * Deletes a HorizonDB administrator. + * Deletes a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @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. @@ -247,11 +278,12 @@ Mono>> deleteWithResponseAsync(String resourceGroupNam SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, String objectId); /** - * Deletes a HorizonDB administrator. + * Deletes a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @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. @@ -263,11 +295,12 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String Context context); /** - * Deletes a HorizonDB administrator. + * Deletes a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @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. @@ -277,11 +310,12 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String Mono deleteAsync(String resourceGroupName, String clusterName, String objectId); /** - * Deletes a HorizonDB administrator. + * Deletes a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @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. @@ -290,11 +324,12 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String void delete(String resourceGroupName, String clusterName, String objectId); /** - * Deletes a HorizonDB administrator. + * Deletes a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @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. @@ -304,33 +339,38 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String void delete(String resourceGroupName, String clusterName, String objectId, Context context); /** - * Lists all HorizonDB administrators in a cluster. + * Lists the PostgreSQL roles in a cluster that are members of azure_pg_admin and mapped to Microsoft Entra + * principals. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbAdministrator list operation as paginated response with {@link PagedFlux}. + * @return the response of a MicrosoftEntraAdministrator list operation as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String clusterName); + PagedFlux listAsync(String resourceGroupName, String clusterName); /** - * Lists all HorizonDB administrators in a cluster. + * Lists the PostgreSQL roles in a cluster that are members of azure_pg_admin and mapped to Microsoft Entra + * principals. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbAdministrator list operation as paginated response with {@link PagedIterable}. + * @return the response of a MicrosoftEntraAdministrator list operation as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String clusterName); + PagedIterable list(String resourceGroupName, String clusterName); /** - * Lists all HorizonDB administrators in a cluster. + * Lists the PostgreSQL roles in a cluster that are members of azure_pg_admin and mapped to Microsoft Entra + * principals. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -338,8 +378,9 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbAdministrator list operation as paginated response with {@link PagedIterable}. + * @return the response of a MicrosoftEntraAdministrator list operation as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String clusterName, Context context); + PagedIterable list(String resourceGroupName, String clusterName, Context context); } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/MicrosoftEntraAuthenticationsClient.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/MicrosoftEntraAuthenticationsClient.java new file mode 100644 index 0000000000000..8ea6e2379ba85 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/MicrosoftEntraAuthenticationsClient.java @@ -0,0 +1,347 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.horizondb.fluent.models.MicrosoftEntraAuthenticationInner; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAuthenticationForPatchUpdate; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in MicrosoftEntraAuthenticationsClient. + */ +public interface MicrosoftEntraAuthenticationsClient { + /** + * Gets the service-created Microsoft Entra authentication method. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB 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 service-created Microsoft Entra authentication method along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getWithResponseAsync(String resourceGroupName, + String clusterName); + + /** + * Gets the service-created Microsoft Entra authentication method. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB 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 service-created Microsoft Entra authentication method on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String clusterName); + + /** + * Gets the service-created Microsoft Entra authentication method. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created Microsoft Entra authentication method along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String clusterName, + Context context); + + /** + * Gets the service-created Microsoft Entra authentication method. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB 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 service-created Microsoft Entra authentication method. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + MicrosoftEntraAuthenticationInner get(String resourceGroupName, String clusterName); + + /** + * Creates or replaces the service-created Microsoft Entra authentication method. State Enabled enables the feature + * and State Disabled disables it; no additional properties are required. Repeating the same request is idempotent. + * Disabling the feature does not remove or modify database roles or users previously created through the + * MicrosoftEntraAdministrators control-plane API or directly through pgaadauth extension functions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created Microsoft Entra authentication method for a HorizonDB cluster along with + * {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> createOrReplaceWithResponseAsync(String resourceGroupName, String clusterName, + MicrosoftEntraAuthenticationInner resource); + + /** + * Creates or replaces the service-created Microsoft Entra authentication method. State Enabled enables the feature + * and State Disabled disables it; no additional properties are required. Repeating the same request is idempotent. + * Disabling the feature does not remove or modify database roles or users previously created through the + * MicrosoftEntraAdministrators control-plane API or directly through pgaadauth extension functions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of the service-created Microsoft Entra authentication method for a + * HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, MicrosoftEntraAuthenticationInner> + beginCreateOrReplaceAsync(String resourceGroupName, String clusterName, + MicrosoftEntraAuthenticationInner resource); + + /** + * Creates or replaces the service-created Microsoft Entra authentication method. State Enabled enables the feature + * and State Disabled disables it; no additional properties are required. Repeating the same request is idempotent. + * Disabling the feature does not remove or modify database roles or users previously created through the + * MicrosoftEntraAdministrators control-plane API or directly through pgaadauth extension functions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the service-created Microsoft Entra authentication method for a + * HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, MicrosoftEntraAuthenticationInner> + beginCreateOrReplace(String resourceGroupName, String clusterName, MicrosoftEntraAuthenticationInner resource); + + /** + * Creates or replaces the service-created Microsoft Entra authentication method. State Enabled enables the feature + * and State Disabled disables it; no additional properties are required. Repeating the same request is idempotent. + * Disabling the feature does not remove or modify database roles or users previously created through the + * MicrosoftEntraAdministrators control-plane API or directly through pgaadauth extension functions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the service-created Microsoft Entra authentication method for a + * HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, MicrosoftEntraAuthenticationInner> beginCreateOrReplace( + String resourceGroupName, String clusterName, MicrosoftEntraAuthenticationInner resource, Context context); + + /** + * Creates or replaces the service-created Microsoft Entra authentication method. State Enabled enables the feature + * and State Disabled disables it; no additional properties are required. Repeating the same request is idempotent. + * Disabling the feature does not remove or modify database roles or users previously created through the + * MicrosoftEntraAdministrators control-plane API or directly through pgaadauth extension functions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created Microsoft Entra authentication method for a HorizonDB cluster on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono createOrReplaceAsync(String resourceGroupName, String clusterName, + MicrosoftEntraAuthenticationInner resource); + + /** + * Creates or replaces the service-created Microsoft Entra authentication method. State Enabled enables the feature + * and State Disabled disables it; no additional properties are required. Repeating the same request is idempotent. + * Disabling the feature does not remove or modify database roles or users previously created through the + * MicrosoftEntraAdministrators control-plane API or directly through pgaadauth extension functions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created Microsoft Entra authentication method for a HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + MicrosoftEntraAuthenticationInner createOrReplace(String resourceGroupName, String clusterName, + MicrosoftEntraAuthenticationInner resource); + + /** + * Creates or replaces the service-created Microsoft Entra authentication method. State Enabled enables the feature + * and State Disabled disables it; no additional properties are required. Repeating the same request is idempotent. + * Disabling the feature does not remove or modify database roles or users previously created through the + * MicrosoftEntraAdministrators control-plane API or directly through pgaadauth extension functions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created Microsoft Entra authentication method for a HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + MicrosoftEntraAuthenticationInner createOrReplace(String resourceGroupName, String clusterName, + MicrosoftEntraAuthenticationInner resource, Context context); + + /** + * Updates the service-created Microsoft Entra authentication method. State Enabled enables the feature and State + * Disabled disables it; no additional properties are required. Disabling the feature does not remove or modify + * database roles or users previously created through the MicrosoftEntraAdministrators control-plane API or directly + * through pgaadauth extension functions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created Microsoft Entra authentication method for a HorizonDB cluster along with + * {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> updateWithResponseAsync(String resourceGroupName, String clusterName, + MicrosoftEntraAuthenticationForPatchUpdate properties); + + /** + * Updates the service-created Microsoft Entra authentication method. State Enabled enables the feature and State + * Disabled disables it; no additional properties are required. Disabling the feature does not remove or modify + * database roles or users previously created through the MicrosoftEntraAdministrators control-plane API or directly + * through pgaadauth extension functions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of the service-created Microsoft Entra authentication method for a + * HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, MicrosoftEntraAuthenticationInner> beginUpdateAsync( + String resourceGroupName, String clusterName, MicrosoftEntraAuthenticationForPatchUpdate properties); + + /** + * Updates the service-created Microsoft Entra authentication method. State Enabled enables the feature and State + * Disabled disables it; no additional properties are required. Disabling the feature does not remove or modify + * database roles or users previously created through the MicrosoftEntraAdministrators control-plane API or directly + * through pgaadauth extension functions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the service-created Microsoft Entra authentication method for a + * HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, MicrosoftEntraAuthenticationInner> beginUpdate( + String resourceGroupName, String clusterName, MicrosoftEntraAuthenticationForPatchUpdate properties); + + /** + * Updates the service-created Microsoft Entra authentication method. State Enabled enables the feature and State + * Disabled disables it; no additional properties are required. Disabling the feature does not remove or modify + * database roles or users previously created through the MicrosoftEntraAdministrators control-plane API or directly + * through pgaadauth extension functions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the service-created Microsoft Entra authentication method for a + * HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, MicrosoftEntraAuthenticationInner> beginUpdate( + String resourceGroupName, String clusterName, MicrosoftEntraAuthenticationForPatchUpdate properties, + Context context); + + /** + * Updates the service-created Microsoft Entra authentication method. State Enabled enables the feature and State + * Disabled disables it; no additional properties are required. Disabling the feature does not remove or modify + * database roles or users previously created through the MicrosoftEntraAdministrators control-plane API or directly + * through pgaadauth extension functions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created Microsoft Entra authentication method for a HorizonDB cluster on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono updateAsync(String resourceGroupName, String clusterName, + MicrosoftEntraAuthenticationForPatchUpdate properties); + + /** + * Updates the service-created Microsoft Entra authentication method. State Enabled enables the feature and State + * Disabled disables it; no additional properties are required. Disabling the feature does not remove or modify + * database roles or users previously created through the MicrosoftEntraAdministrators control-plane API or directly + * through pgaadauth extension functions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created Microsoft Entra authentication method for a HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + MicrosoftEntraAuthenticationInner update(String resourceGroupName, String clusterName, + MicrosoftEntraAuthenticationForPatchUpdate properties); + + /** + * Updates the service-created Microsoft Entra authentication method. State Enabled enables the feature and State + * Disabled disables it; no additional properties are required. Disabling the feature does not remove or modify + * database roles or users previously created through the MicrosoftEntraAdministrators control-plane API or directly + * through pgaadauth extension functions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created Microsoft Entra authentication method for a HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + MicrosoftEntraAuthenticationInner update(String resourceGroupName, String clusterName, + MicrosoftEntraAuthenticationForPatchUpdate properties, Context context); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/HorizonDbPoolsClient.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/NodesClient.java similarity index 67% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/HorizonDbPoolsClient.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/NodesClient.java index bc780ad10e252..311ef8cc7d6e7 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/HorizonDbPoolsClient.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/NodesClient.java @@ -10,109 +10,117 @@ import com.azure.core.http.rest.PagedIterable; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbPoolInner; +import com.azure.resourcemanager.horizondb.fluent.models.NodeInner; import reactor.core.publisher.Mono; /** - * An instance of this class provides access to all the operations defined in HorizonDbPoolsClient. + * An instance of this class provides access to all the operations defined in NodesClient. */ -public interface HorizonDbPoolsClient { +public interface NodesClient { /** - * Gets information about a HorizonDB pool. + * Gets a node allocated to a HorizonDB pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. + * @param nodeName The name of the Node. * @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 information about a HorizonDB pool along with {@link Response} on successful completion of {@link Mono}. + * @return a node allocated to a HorizonDB pool along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, String clusterName, - String poolName); + Mono> getWithResponseAsync(String resourceGroupName, String clusterName, String poolName, + String nodeName); /** - * Gets information about a HorizonDB pool. + * Gets a node allocated to a HorizonDB pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. + * @param nodeName The name of the Node. * @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 information about a HorizonDB pool on successful completion of {@link Mono}. + * @return a node allocated to a HorizonDB pool on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String clusterName, String poolName); + Mono getAsync(String resourceGroupName, String clusterName, String poolName, String nodeName); /** - * Gets information about a HorizonDB pool. + * Gets a node allocated to a HorizonDB pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. + * @param nodeName The name of the Node. * @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 information about a HorizonDB pool along with {@link Response}. + * @return a node allocated to a HorizonDB pool along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String clusterName, String poolName, + Response getWithResponse(String resourceGroupName, String clusterName, String poolName, String nodeName, Context context); /** - * Gets information about a HorizonDB pool. + * Gets a node allocated to a HorizonDB pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. + * @param nodeName The name of the Node. * @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 information about a HorizonDB pool. + * @return a node allocated to a HorizonDB pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - HorizonDbPoolInner get(String resourceGroupName, String clusterName, String poolName); + NodeInner get(String resourceGroupName, String clusterName, String poolName, String nodeName); /** - * Lists all HorizonDB pools in a cluster. + * Lists the nodes allocated to a HorizonDB pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbPool list operation as paginated response with {@link PagedFlux}. + * @return the response of a Node list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String clusterName); + PagedFlux listAsync(String resourceGroupName, String clusterName, String poolName); /** - * Lists all HorizonDB pools in a cluster. + * Lists the nodes allocated to a HorizonDB pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbPool list operation as paginated response with {@link PagedIterable}. + * @return the response of a Node list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String clusterName); + PagedIterable list(String resourceGroupName, String clusterName, String poolName); /** - * Lists all HorizonDB pools in a cluster. + * Lists the nodes allocated to a HorizonDB pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbPool list operation as paginated response with {@link PagedIterable}. + * @return the response of a Node list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String clusterName, Context context); + PagedIterable list(String resourceGroupName, String clusterName, String poolName, Context context); } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/HorizonDbParameterGroupsClient.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/ParameterGroupsClient.java similarity index 71% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/HorizonDbParameterGroupsClient.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/ParameterGroupsClient.java index dbc815e5c8b8e..c780cbc604023 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/HorizonDbParameterGroupsClient.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/ParameterGroupsClient.java @@ -13,17 +13,17 @@ import com.azure.core.util.Context; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbParameterGroupConnectionPropertiesInner; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbParameterGroupInner; -import com.azure.resourcemanager.horizondb.models.HorizonDbParameterGroupForPatchUpdate; +import com.azure.resourcemanager.horizondb.fluent.models.ParameterGroupConnectionPropertiesInner; +import com.azure.resourcemanager.horizondb.fluent.models.ParameterGroupInner; +import com.azure.resourcemanager.horizondb.models.ParameterGroupForPatchUpdate; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; /** - * An instance of this class provides access to all the operations defined in HorizonDbParameterGroupsClient. + * An instance of this class provides access to all the operations defined in ParameterGroupsClient. */ -public interface HorizonDbParameterGroupsClient { +public interface ParameterGroupsClient { /** * Gets information about a HorizonDB parameter group. * @@ -36,7 +36,7 @@ public interface HorizonDbParameterGroupsClient { * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, String parameterGroupName); /** @@ -50,7 +50,7 @@ Mono> getByResourceGroupWithResponseAsync * @return information about a HorizonDB parameter group on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono getByResourceGroupAsync(String resourceGroupName, String parameterGroupName); + Mono getByResourceGroupAsync(String resourceGroupName, String parameterGroupName); /** * Gets information about a HorizonDB parameter group. @@ -64,8 +64,8 @@ Mono> getByResourceGroupWithResponseAsync * @return information about a HorizonDB parameter group along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse(String resourceGroupName, - String parameterGroupName, Context context); + Response getByResourceGroupWithResponse(String resourceGroupName, String parameterGroupName, + Context context); /** * Gets information about a HorizonDB parameter group. @@ -78,10 +78,10 @@ Response getByResourceGroupWithResponse(String res * @return information about a HorizonDB parameter group. */ @ServiceMethod(returns = ReturnType.SINGLE) - HorizonDbParameterGroupInner getByResourceGroup(String resourceGroupName, String parameterGroupName); + ParameterGroupInner getByResourceGroup(String resourceGroupName, String parameterGroupName); /** - * Creates a new HorizonDB parameter group or updates an existing parameter group. + * Creates a new HorizonDB parameter group or replaces an existing parameter group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -93,11 +93,11 @@ Response getByResourceGroupWithResponse(String res * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String parameterGroupName, HorizonDbParameterGroupInner resource); + Mono>> createOrReplaceWithResponseAsync(String resourceGroupName, + String parameterGroupName, ParameterGroupInner resource); /** - * Creates a new HorizonDB parameter group or updates an existing parameter group. + * Creates a new HorizonDB parameter group or replaces an existing parameter group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -108,11 +108,11 @@ Mono>> createOrUpdateWithResponseAsync(String resource * @return the {@link PollerFlux} for polling of represents the HorizonDB parameter group. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, HorizonDbParameterGroupInner> beginCreateOrUpdateAsync( - String resourceGroupName, String parameterGroupName, HorizonDbParameterGroupInner resource); + PollerFlux, ParameterGroupInner> beginCreateOrReplaceAsync(String resourceGroupName, + String parameterGroupName, ParameterGroupInner resource); /** - * Creates a new HorizonDB parameter group or updates an existing parameter group. + * Creates a new HorizonDB parameter group or replaces an existing parameter group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -123,11 +123,11 @@ PollerFlux, HorizonDbParameterGroupInne * @return the {@link SyncPoller} for polling of represents the HorizonDB parameter group. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, HorizonDbParameterGroupInner> - beginCreateOrUpdate(String resourceGroupName, String parameterGroupName, HorizonDbParameterGroupInner resource); + SyncPoller, ParameterGroupInner> beginCreateOrReplace(String resourceGroupName, + String parameterGroupName, ParameterGroupInner resource); /** - * Creates a new HorizonDB parameter group or updates an existing parameter group. + * Creates a new HorizonDB parameter group or replaces an existing parameter group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -139,11 +139,11 @@ PollerFlux, HorizonDbParameterGroupInne * @return the {@link SyncPoller} for polling of represents the HorizonDB parameter group. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, HorizonDbParameterGroupInner> beginCreateOrUpdate( - String resourceGroupName, String parameterGroupName, HorizonDbParameterGroupInner resource, Context context); + SyncPoller, ParameterGroupInner> beginCreateOrReplace(String resourceGroupName, + String parameterGroupName, ParameterGroupInner resource, Context context); /** - * Creates a new HorizonDB parameter group or updates an existing parameter group. + * Creates a new HorizonDB parameter group or replaces an existing parameter group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -154,11 +154,11 @@ SyncPoller, HorizonDbParameterGroupInne * @return represents the HorizonDB parameter group on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono createOrUpdateAsync(String resourceGroupName, String parameterGroupName, - HorizonDbParameterGroupInner resource); + Mono createOrReplaceAsync(String resourceGroupName, String parameterGroupName, + ParameterGroupInner resource); /** - * Creates a new HorizonDB parameter group or updates an existing parameter group. + * Creates a new HorizonDB parameter group or replaces an existing parameter group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -169,11 +169,11 @@ Mono createOrUpdateAsync(String resourceGroupName, * @return represents the HorizonDB parameter group. */ @ServiceMethod(returns = ReturnType.SINGLE) - HorizonDbParameterGroupInner createOrUpdate(String resourceGroupName, String parameterGroupName, - HorizonDbParameterGroupInner resource); + ParameterGroupInner createOrReplace(String resourceGroupName, String parameterGroupName, + ParameterGroupInner resource); /** - * Creates a new HorizonDB parameter group or updates an existing parameter group. + * Creates a new HorizonDB parameter group or replaces an existing parameter group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -185,11 +185,15 @@ HorizonDbParameterGroupInner createOrUpdate(String resourceGroupName, String par * @return represents the HorizonDB parameter group. */ @ServiceMethod(returns = ReturnType.SINGLE) - HorizonDbParameterGroupInner createOrUpdate(String resourceGroupName, String parameterGroupName, - HorizonDbParameterGroupInner resource, Context context); + ParameterGroupInner createOrReplace(String resourceGroupName, String parameterGroupName, + ParameterGroupInner resource, Context context); /** - * Updates an existing HorizonDB parameter group. + * Updates an existing HorizonDB parameter group. Each connected pool's applyMethod setting controls whether dynamic + * parameter changes become effective immediately or remain pending until a customer-initiated pool Restart. Static + * parameter changes always remain pending until a customer-initiated pool Restart. Stop followed by Start and + * scheduled maintenance do not apply pending changes. The operation fails with a conflict while a previous update + * to this parameter group is still being processed. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -202,10 +206,14 @@ HorizonDbParameterGroupInner createOrUpdate(String resourceGroupName, String par */ @ServiceMethod(returns = ReturnType.SINGLE) Mono>> updateWithResponseAsync(String resourceGroupName, String parameterGroupName, - HorizonDbParameterGroupForPatchUpdate properties); + ParameterGroupForPatchUpdate properties); /** - * Updates an existing HorizonDB parameter group. + * Updates an existing HorizonDB parameter group. Each connected pool's applyMethod setting controls whether dynamic + * parameter changes become effective immediately or remain pending until a customer-initiated pool Restart. Static + * parameter changes always remain pending until a customer-initiated pool Restart. Stop followed by Start and + * scheduled maintenance do not apply pending changes. The operation fails with a conflict while a previous update + * to this parameter group is still being processed. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -216,11 +224,15 @@ Mono>> updateWithResponseAsync(String resourceGroupNam * @return the {@link PollerFlux} for polling of represents the HorizonDB parameter group. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - PollerFlux, HorizonDbParameterGroupInner> beginUpdateAsync( - String resourceGroupName, String parameterGroupName, HorizonDbParameterGroupForPatchUpdate properties); + PollerFlux, ParameterGroupInner> beginUpdateAsync(String resourceGroupName, + String parameterGroupName, ParameterGroupForPatchUpdate properties); /** - * Updates an existing HorizonDB parameter group. + * Updates an existing HorizonDB parameter group. Each connected pool's applyMethod setting controls whether dynamic + * parameter changes become effective immediately or remain pending until a customer-initiated pool Restart. Static + * parameter changes always remain pending until a customer-initiated pool Restart. Stop followed by Start and + * scheduled maintenance do not apply pending changes. The operation fails with a conflict while a previous update + * to this parameter group is still being processed. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -231,11 +243,15 @@ PollerFlux, HorizonDbParameterGroupInne * @return the {@link SyncPoller} for polling of represents the HorizonDB parameter group. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, HorizonDbParameterGroupInner> beginUpdate( - String resourceGroupName, String parameterGroupName, HorizonDbParameterGroupForPatchUpdate properties); + SyncPoller, ParameterGroupInner> beginUpdate(String resourceGroupName, + String parameterGroupName, ParameterGroupForPatchUpdate properties); /** - * Updates an existing HorizonDB parameter group. + * Updates an existing HorizonDB parameter group. Each connected pool's applyMethod setting controls whether dynamic + * parameter changes become effective immediately or remain pending until a customer-initiated pool Restart. Static + * parameter changes always remain pending until a customer-initiated pool Restart. Stop followed by Start and + * scheduled maintenance do not apply pending changes. The operation fails with a conflict while a previous update + * to this parameter group is still being processed. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -247,12 +263,15 @@ SyncPoller, HorizonDbParameterGroupInne * @return the {@link SyncPoller} for polling of represents the HorizonDB parameter group. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, HorizonDbParameterGroupInner> beginUpdate( - String resourceGroupName, String parameterGroupName, HorizonDbParameterGroupForPatchUpdate properties, - Context context); + SyncPoller, ParameterGroupInner> beginUpdate(String resourceGroupName, + String parameterGroupName, ParameterGroupForPatchUpdate properties, Context context); /** - * Updates an existing HorizonDB parameter group. + * Updates an existing HorizonDB parameter group. Each connected pool's applyMethod setting controls whether dynamic + * parameter changes become effective immediately or remain pending until a customer-initiated pool Restart. Static + * parameter changes always remain pending until a customer-initiated pool Restart. Stop followed by Start and + * scheduled maintenance do not apply pending changes. The operation fails with a conflict while a previous update + * to this parameter group is still being processed. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -263,11 +282,15 @@ SyncPoller, HorizonDbParameterGroupInne * @return represents the HorizonDB parameter group on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono updateAsync(String resourceGroupName, String parameterGroupName, - HorizonDbParameterGroupForPatchUpdate properties); + Mono updateAsync(String resourceGroupName, String parameterGroupName, + ParameterGroupForPatchUpdate properties); /** - * Updates an existing HorizonDB parameter group. + * Updates an existing HorizonDB parameter group. Each connected pool's applyMethod setting controls whether dynamic + * parameter changes become effective immediately or remain pending until a customer-initiated pool Restart. Static + * parameter changes always remain pending until a customer-initiated pool Restart. Stop followed by Start and + * scheduled maintenance do not apply pending changes. The operation fails with a conflict while a previous update + * to this parameter group is still being processed. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -278,11 +301,15 @@ Mono updateAsync(String resourceGroupName, String * @return represents the HorizonDB parameter group. */ @ServiceMethod(returns = ReturnType.SINGLE) - HorizonDbParameterGroupInner update(String resourceGroupName, String parameterGroupName, - HorizonDbParameterGroupForPatchUpdate properties); + ParameterGroupInner update(String resourceGroupName, String parameterGroupName, + ParameterGroupForPatchUpdate properties); /** - * Updates an existing HorizonDB parameter group. + * Updates an existing HorizonDB parameter group. Each connected pool's applyMethod setting controls whether dynamic + * parameter changes become effective immediately or remain pending until a customer-initiated pool Restart. Static + * parameter changes always remain pending until a customer-initiated pool Restart. Stop followed by Start and + * scheduled maintenance do not apply pending changes. The operation fails with a conflict while a previous update + * to this parameter group is still being processed. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -294,11 +321,12 @@ HorizonDbParameterGroupInner update(String resourceGroupName, String parameterGr * @return represents the HorizonDB parameter group. */ @ServiceMethod(returns = ReturnType.SINGLE) - HorizonDbParameterGroupInner update(String resourceGroupName, String parameterGroupName, - HorizonDbParameterGroupForPatchUpdate properties, Context context); + ParameterGroupInner update(String resourceGroupName, String parameterGroupName, + ParameterGroupForPatchUpdate properties, Context context); /** - * Deletes a HorizonDB parameter group. + * Deletes a HorizonDB parameter group. Deletion fails with a conflict when the parameter group is associated with + * one or more pools. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -311,7 +339,8 @@ HorizonDbParameterGroupInner update(String resourceGroupName, String parameterGr Mono>> deleteWithResponseAsync(String resourceGroupName, String parameterGroupName); /** - * Deletes a HorizonDB parameter group. + * Deletes a HorizonDB parameter group. Deletion fails with a conflict when the parameter group is associated with + * one or more pools. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -324,7 +353,8 @@ HorizonDbParameterGroupInner update(String resourceGroupName, String parameterGr PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String parameterGroupName); /** - * Deletes a HorizonDB parameter group. + * Deletes a HorizonDB parameter group. Deletion fails with a conflict when the parameter group is associated with + * one or more pools. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -337,7 +367,8 @@ HorizonDbParameterGroupInner update(String resourceGroupName, String parameterGr SyncPoller, Void> beginDelete(String resourceGroupName, String parameterGroupName); /** - * Deletes a HorizonDB parameter group. + * Deletes a HorizonDB parameter group. Deletion fails with a conflict when the parameter group is associated with + * one or more pools. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -352,7 +383,8 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String Context context); /** - * Deletes a HorizonDB parameter group. + * Deletes a HorizonDB parameter group. Deletion fails with a conflict when the parameter group is associated with + * one or more pools. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -365,7 +397,8 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String Mono deleteAsync(String resourceGroupName, String parameterGroupName); /** - * Deletes a HorizonDB parameter group. + * Deletes a HorizonDB parameter group. Deletion fails with a conflict when the parameter group is associated with + * one or more pools. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -377,7 +410,8 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String void delete(String resourceGroupName, String parameterGroupName); /** - * Deletes a HorizonDB parameter group. + * Deletes a HorizonDB parameter group. Deletion fails with a conflict when the parameter group is associated with + * one or more pools. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -396,10 +430,10 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbParameterGroup list operation as paginated response with {@link PagedFlux}. + * @return the response of a ParameterGroup list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listByResourceGroupAsync(String resourceGroupName); + PagedFlux listByResourceGroupAsync(String resourceGroupName); /** * Lists all HorizonDB parameter groups in a resource group. @@ -408,11 +442,10 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbParameterGroup list operation as paginated response with - * {@link PagedIterable}. + * @return the response of a ParameterGroup list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName); + PagedIterable listByResourceGroup(String resourceGroupName); /** * Lists all HorizonDB parameter groups in a resource group. @@ -422,32 +455,30 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbParameterGroup list operation as paginated response with - * {@link PagedIterable}. + * @return the response of a ParameterGroup list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName, Context context); + PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** * Lists all HorizonDB parameter groups in a subscription. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbParameterGroup list operation as paginated response with {@link PagedFlux}. + * @return the response of a ParameterGroup list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(); + PagedFlux listAsync(); /** * Lists all HorizonDB parameter groups in a subscription. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbParameterGroup list operation as paginated response with - * {@link PagedIterable}. + * @return the response of a ParameterGroup list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); + PagedIterable list(); /** * Lists all HorizonDB parameter groups in a subscription. @@ -456,11 +487,10 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbParameterGroup list operation as paginated response with - * {@link PagedIterable}. + * @return the response of a ParameterGroup list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); + PagedIterable list(Context context); /** * Gets all connections to a parameter group. @@ -473,7 +503,7 @@ SyncPoller, Void> beginDelete(String resourceGroupName, String * @return all connections to a parameter group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listConnectionsAsync(String resourceGroupName, + PagedFlux listConnectionsAsync(String resourceGroupName, String parameterGroupName); /** @@ -487,7 +517,7 @@ PagedFlux listConnectionsAsync * @return all connections to a parameter group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listConnections(String resourceGroupName, + PagedIterable listConnections(String resourceGroupName, String parameterGroupName); /** @@ -502,65 +532,6 @@ PagedIterable listConnections( * @return all connections to a parameter group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listConnections(String resourceGroupName, + PagedIterable listConnections(String resourceGroupName, String parameterGroupName, Context context); - - /** - * Lists parameter groups filtered by version number. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameterGroupName The name of the HorizonDB parameter group. - * @param version The version number to filter by. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbParameterGroup list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listVersionsAsync(String resourceGroupName, String parameterGroupName, - Integer version); - - /** - * Lists parameter groups filtered by version number. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameterGroupName The name of the HorizonDB parameter group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbParameterGroup list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listVersionsAsync(String resourceGroupName, String parameterGroupName); - - /** - * Lists parameter groups filtered by version number. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameterGroupName The name of the HorizonDB parameter group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbParameterGroup list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listVersions(String resourceGroupName, String parameterGroupName); - - /** - * Lists parameter groups filtered by version number. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameterGroupName The name of the HorizonDB parameter group. - * @param version The version number to filter by. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbParameterGroup list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listVersions(String resourceGroupName, String parameterGroupName, - Integer version, Context context); } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/PasswordAuthenticationsClient.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/PasswordAuthenticationsClient.java new file mode 100644 index 0000000000000..f03f0e1ac350d --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/PasswordAuthenticationsClient.java @@ -0,0 +1,338 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.horizondb.fluent.models.PasswordAuthenticationInner; +import com.azure.resourcemanager.horizondb.models.PasswordAuthenticationForPatchUpdate; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in PasswordAuthenticationsClient. + */ +public interface PasswordAuthenticationsClient { + /** + * Gets the service-created PostgreSQL username-and-password authentication method. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB 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 service-created PostgreSQL username-and-password authentication method along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getWithResponseAsync(String resourceGroupName, String clusterName); + + /** + * Gets the service-created PostgreSQL username-and-password authentication method. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB 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 service-created PostgreSQL username-and-password authentication method on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String clusterName); + + /** + * Gets the service-created PostgreSQL username-and-password authentication method. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created PostgreSQL username-and-password authentication method along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String clusterName, + Context context); + + /** + * Gets the service-created PostgreSQL username-and-password authentication method. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB 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 service-created PostgreSQL username-and-password authentication method. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + PasswordAuthenticationInner get(String resourceGroupName, String clusterName); + + /** + * Creates or replaces the service-created PostgreSQL username-and-password authentication method. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created PostgreSQL username-and-password authentication method for a HorizonDB cluster along + * with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> createOrReplaceWithResponseAsync(String resourceGroupName, String clusterName, + PasswordAuthenticationInner resource); + + /** + * Creates or replaces the service-created PostgreSQL username-and-password authentication method. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of the service-created PostgreSQL username-and-password authentication + * method for a HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, PasswordAuthenticationInner> + beginCreateOrReplaceAsync(String resourceGroupName, String clusterName, PasswordAuthenticationInner resource); + + /** + * Creates or replaces the service-created PostgreSQL username-and-password authentication method. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the service-created PostgreSQL username-and-password authentication + * method for a HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, PasswordAuthenticationInner> + beginCreateOrReplace(String resourceGroupName, String clusterName, PasswordAuthenticationInner resource); + + /** + * Creates or replaces the service-created PostgreSQL username-and-password authentication method. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the service-created PostgreSQL username-and-password authentication + * method for a HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, PasswordAuthenticationInner> beginCreateOrReplace( + String resourceGroupName, String clusterName, PasswordAuthenticationInner resource, Context context); + + /** + * Creates or replaces the service-created PostgreSQL username-and-password authentication method. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created PostgreSQL username-and-password authentication method for a HorizonDB cluster on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono createOrReplaceAsync(String resourceGroupName, String clusterName, + PasswordAuthenticationInner resource); + + /** + * Creates or replaces the service-created PostgreSQL username-and-password authentication method. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created PostgreSQL username-and-password authentication method for a HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + PasswordAuthenticationInner createOrReplace(String resourceGroupName, String clusterName, + PasswordAuthenticationInner resource); + + /** + * Creates or replaces the service-created PostgreSQL username-and-password authentication method. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created PostgreSQL username-and-password authentication method for a HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + PasswordAuthenticationInner createOrReplace(String resourceGroupName, String clusterName, + PasswordAuthenticationInner resource, Context context); + + /** + * Updates the service-created PostgreSQL username-and-password authentication method. The request is sparse and + * omitted properties preserve their current values. This API version supports enabling the method, disabling the + * method, and resetting its password. For a cluster that already has an administrator but currently has password + * authentication disabled, state Enabled and administratorLoginPassword can be supplied together to re-enable + * password authentication and reset the password. Disabling cannot include credentials and does not remove or + * modify existing database users or roles. Administrator rename is not supported in this API version. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created PostgreSQL username-and-password authentication method for a HorizonDB cluster along + * with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> updateWithResponseAsync(String resourceGroupName, String clusterName, + PasswordAuthenticationForPatchUpdate properties); + + /** + * Updates the service-created PostgreSQL username-and-password authentication method. The request is sparse and + * omitted properties preserve their current values. This API version supports enabling the method, disabling the + * method, and resetting its password. For a cluster that already has an administrator but currently has password + * authentication disabled, state Enabled and administratorLoginPassword can be supplied together to re-enable + * password authentication and reset the password. Disabling cannot include credentials and does not remove or + * modify existing database users or roles. Administrator rename is not supported in this API version. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of the service-created PostgreSQL username-and-password authentication + * method for a HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, PasswordAuthenticationInner> + beginUpdateAsync(String resourceGroupName, String clusterName, PasswordAuthenticationForPatchUpdate properties); + + /** + * Updates the service-created PostgreSQL username-and-password authentication method. The request is sparse and + * omitted properties preserve their current values. This API version supports enabling the method, disabling the + * method, and resetting its password. For a cluster that already has an administrator but currently has password + * authentication disabled, state Enabled and administratorLoginPassword can be supplied together to re-enable + * password authentication and reset the password. Disabling cannot include credentials and does not remove or + * modify existing database users or roles. Administrator rename is not supported in this API version. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the service-created PostgreSQL username-and-password authentication + * method for a HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, PasswordAuthenticationInner> + beginUpdate(String resourceGroupName, String clusterName, PasswordAuthenticationForPatchUpdate properties); + + /** + * Updates the service-created PostgreSQL username-and-password authentication method. The request is sparse and + * omitted properties preserve their current values. This API version supports enabling the method, disabling the + * method, and resetting its password. For a cluster that already has an administrator but currently has password + * authentication disabled, state Enabled and administratorLoginPassword can be supplied together to re-enable + * password authentication and reset the password. Disabling cannot include credentials and does not remove or + * modify existing database users or roles. Administrator rename is not supported in this API version. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the service-created PostgreSQL username-and-password authentication + * method for a HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, PasswordAuthenticationInner> beginUpdate( + String resourceGroupName, String clusterName, PasswordAuthenticationForPatchUpdate properties, Context context); + + /** + * Updates the service-created PostgreSQL username-and-password authentication method. The request is sparse and + * omitted properties preserve their current values. This API version supports enabling the method, disabling the + * method, and resetting its password. For a cluster that already has an administrator but currently has password + * authentication disabled, state Enabled and administratorLoginPassword can be supplied together to re-enable + * password authentication and reset the password. Disabling cannot include credentials and does not remove or + * modify existing database users or roles. Administrator rename is not supported in this API version. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created PostgreSQL username-and-password authentication method for a HorizonDB cluster on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono updateAsync(String resourceGroupName, String clusterName, + PasswordAuthenticationForPatchUpdate properties); + + /** + * Updates the service-created PostgreSQL username-and-password authentication method. The request is sparse and + * omitted properties preserve their current values. This API version supports enabling the method, disabling the + * method, and resetting its password. For a cluster that already has an administrator but currently has password + * authentication disabled, state Enabled and administratorLoginPassword can be supplied together to re-enable + * password authentication and reset the password. Disabling cannot include credentials and does not remove or + * modify existing database users or roles. Administrator rename is not supported in this API version. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created PostgreSQL username-and-password authentication method for a HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + PasswordAuthenticationInner update(String resourceGroupName, String clusterName, + PasswordAuthenticationForPatchUpdate properties); + + /** + * Updates the service-created PostgreSQL username-and-password authentication method. The request is sparse and + * omitted properties preserve their current values. This API version supports enabling the method, disabling the + * method, and resetting its password. For a cluster that already has an administrator but currently has password + * authentication disabled, state Enabled and administratorLoginPassword can be supplied together to re-enable + * password authentication and reset the password. Disabling cannot include credentials and does not remove or + * modify existing database users or roles. Administrator rename is not supported in this API version. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created PostgreSQL username-and-password authentication method for a HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + PasswordAuthenticationInner update(String resourceGroupName, String clusterName, + PasswordAuthenticationForPatchUpdate properties, Context context); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/PoolsClient.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/PoolsClient.java new file mode 100644 index 0000000000000..1e83b47fcaead --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/PoolsClient.java @@ -0,0 +1,1201 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.Context; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.horizondb.fluent.models.PoolInner; +import com.azure.resourcemanager.horizondb.models.PoolForPatchUpdate; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in PoolsClient. + */ +public interface PoolsClient { + /** + * Gets information about a HorizonDB pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 information about a HorizonDB pool along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono> getWithResponseAsync(String resourceGroupName, String clusterName, String poolName); + + /** + * Gets information about a HorizonDB pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 information about a HorizonDB pool on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono getAsync(String resourceGroupName, String clusterName, String poolName); + + /** + * Gets information about a HorizonDB pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 information about a HorizonDB pool along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String clusterName, String poolName, Context context); + + /** + * Gets information about a HorizonDB pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 information about a HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + PoolInner get(String resourceGroupName, String clusterName, String poolName); + + /** + * Creates a new HorizonDB pool or replaces an existing pool, including its node allocation, compute model, + * high-availability configuration, or associated parameter group. nodeCount and highAvailability.mode are required + * and have no service defaults. nodeCount must be 1 through 16. Disabled is valid only when nodeCount is 1. AnyZone + * and ZoneRedundant are valid only when nodeCount is 2 through 16. AnyZone permits same-zone or cross-zone + * placement, while ZoneRedundant requires nodes to be allocated across availability zones. Node allocation and + * high-availability reconfiguration are atomic: if all requested nodes or the required zonal topology cannot be + * provisioned, the long-running operation fails and the previous resource state is preserved. A pool name must + * differ from its parent cluster name because the Cluster-scoped ReadWrite Endpoint is named after the Cluster and + * the Pool-scoped ReadOnly Endpoint is named after the Pool; the service rejects a request whose names would + * collide. Creating a pool also creates exactly one service-managed Pool-scoped ReadOnly Endpoint representing that + * Pool and its network boundary. The Endpoint's associatedResourceId identifies the Pool, and the Endpoint cannot + * outlive or be deleted independently from it. When the first pool is created, the service automatically designates + * it to host the cluster's read-write node when an eligible node is available. A Cluster must contain at least one + * Pool before a private endpoint connection can be created or approved. This API version supports at most one pool + * per cluster; an attempt to create another pool is rejected with 409 Conflict. parameterGroup, + * parameterGroupResourceId, and applyMethod are required. When creating a new pool in this API version, + * parameterGroupResourceId must identify the corresponding default parameter group; a customer-created parameter + * group is rejected. When replacing an existing pool, the request can switch its association in either direction + * between the corresponding default parameter group and a customer-created parameter group. applyMethod controls + * when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated + * Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute + * constraints are validated before the resource is changed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the HorizonDB pool along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> createOrReplaceWithResponseAsync(String resourceGroupName, String clusterName, + String poolName, PoolInner resource); + + /** + * Creates a new HorizonDB pool or replaces an existing pool, including its node allocation, compute model, + * high-availability configuration, or associated parameter group. nodeCount and highAvailability.mode are required + * and have no service defaults. nodeCount must be 1 through 16. Disabled is valid only when nodeCount is 1. AnyZone + * and ZoneRedundant are valid only when nodeCount is 2 through 16. AnyZone permits same-zone or cross-zone + * placement, while ZoneRedundant requires nodes to be allocated across availability zones. Node allocation and + * high-availability reconfiguration are atomic: if all requested nodes or the required zonal topology cannot be + * provisioned, the long-running operation fails and the previous resource state is preserved. A pool name must + * differ from its parent cluster name because the Cluster-scoped ReadWrite Endpoint is named after the Cluster and + * the Pool-scoped ReadOnly Endpoint is named after the Pool; the service rejects a request whose names would + * collide. Creating a pool also creates exactly one service-managed Pool-scoped ReadOnly Endpoint representing that + * Pool and its network boundary. The Endpoint's associatedResourceId identifies the Pool, and the Endpoint cannot + * outlive or be deleted independently from it. When the first pool is created, the service automatically designates + * it to host the cluster's read-write node when an eligible node is available. A Cluster must contain at least one + * Pool before a private endpoint connection can be created or approved. This API version supports at most one pool + * per cluster; an attempt to create another pool is rejected with 409 Conflict. parameterGroup, + * parameterGroupResourceId, and applyMethod are required. When creating a new pool in this API version, + * parameterGroupResourceId must identify the corresponding default parameter group; a customer-created parameter + * group is rejected. When replacing an existing pool, the request can switch its association in either direction + * between the corresponding default parameter group and a customer-created parameter group. applyMethod controls + * when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated + * Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute + * constraints are validated before the resource is changed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, PoolInner> beginCreateOrReplaceAsync(String resourceGroupName, String clusterName, + String poolName, PoolInner resource); + + /** + * Creates a new HorizonDB pool or replaces an existing pool, including its node allocation, compute model, + * high-availability configuration, or associated parameter group. nodeCount and highAvailability.mode are required + * and have no service defaults. nodeCount must be 1 through 16. Disabled is valid only when nodeCount is 1. AnyZone + * and ZoneRedundant are valid only when nodeCount is 2 through 16. AnyZone permits same-zone or cross-zone + * placement, while ZoneRedundant requires nodes to be allocated across availability zones. Node allocation and + * high-availability reconfiguration are atomic: if all requested nodes or the required zonal topology cannot be + * provisioned, the long-running operation fails and the previous resource state is preserved. A pool name must + * differ from its parent cluster name because the Cluster-scoped ReadWrite Endpoint is named after the Cluster and + * the Pool-scoped ReadOnly Endpoint is named after the Pool; the service rejects a request whose names would + * collide. Creating a pool also creates exactly one service-managed Pool-scoped ReadOnly Endpoint representing that + * Pool and its network boundary. The Endpoint's associatedResourceId identifies the Pool, and the Endpoint cannot + * outlive or be deleted independently from it. When the first pool is created, the service automatically designates + * it to host the cluster's read-write node when an eligible node is available. A Cluster must contain at least one + * Pool before a private endpoint connection can be created or approved. This API version supports at most one pool + * per cluster; an attempt to create another pool is rejected with 409 Conflict. parameterGroup, + * parameterGroupResourceId, and applyMethod are required. When creating a new pool in this API version, + * parameterGroupResourceId must identify the corresponding default parameter group; a customer-created parameter + * group is rejected. When replacing an existing pool, the request can switch its association in either direction + * between the corresponding default parameter group and a customer-created parameter group. applyMethod controls + * when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated + * Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute + * constraints are validated before the resource is changed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, PoolInner> beginCreateOrReplace(String resourceGroupName, String clusterName, + String poolName, PoolInner resource); + + /** + * Creates a new HorizonDB pool or replaces an existing pool, including its node allocation, compute model, + * high-availability configuration, or associated parameter group. nodeCount and highAvailability.mode are required + * and have no service defaults. nodeCount must be 1 through 16. Disabled is valid only when nodeCount is 1. AnyZone + * and ZoneRedundant are valid only when nodeCount is 2 through 16. AnyZone permits same-zone or cross-zone + * placement, while ZoneRedundant requires nodes to be allocated across availability zones. Node allocation and + * high-availability reconfiguration are atomic: if all requested nodes or the required zonal topology cannot be + * provisioned, the long-running operation fails and the previous resource state is preserved. A pool name must + * differ from its parent cluster name because the Cluster-scoped ReadWrite Endpoint is named after the Cluster and + * the Pool-scoped ReadOnly Endpoint is named after the Pool; the service rejects a request whose names would + * collide. Creating a pool also creates exactly one service-managed Pool-scoped ReadOnly Endpoint representing that + * Pool and its network boundary. The Endpoint's associatedResourceId identifies the Pool, and the Endpoint cannot + * outlive or be deleted independently from it. When the first pool is created, the service automatically designates + * it to host the cluster's read-write node when an eligible node is available. A Cluster must contain at least one + * Pool before a private endpoint connection can be created or approved. This API version supports at most one pool + * per cluster; an attempt to create another pool is rejected with 409 Conflict. parameterGroup, + * parameterGroupResourceId, and applyMethod are required. When creating a new pool in this API version, + * parameterGroupResourceId must identify the corresponding default parameter group; a customer-created parameter + * group is rejected. When replacing an existing pool, the request can switch its association in either direction + * between the corresponding default parameter group and a customer-created parameter group. applyMethod controls + * when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated + * Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute + * constraints are validated before the resource is changed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, PoolInner> beginCreateOrReplace(String resourceGroupName, String clusterName, + String poolName, PoolInner resource, Context context); + + /** + * Creates a new HorizonDB pool or replaces an existing pool, including its node allocation, compute model, + * high-availability configuration, or associated parameter group. nodeCount and highAvailability.mode are required + * and have no service defaults. nodeCount must be 1 through 16. Disabled is valid only when nodeCount is 1. AnyZone + * and ZoneRedundant are valid only when nodeCount is 2 through 16. AnyZone permits same-zone or cross-zone + * placement, while ZoneRedundant requires nodes to be allocated across availability zones. Node allocation and + * high-availability reconfiguration are atomic: if all requested nodes or the required zonal topology cannot be + * provisioned, the long-running operation fails and the previous resource state is preserved. A pool name must + * differ from its parent cluster name because the Cluster-scoped ReadWrite Endpoint is named after the Cluster and + * the Pool-scoped ReadOnly Endpoint is named after the Pool; the service rejects a request whose names would + * collide. Creating a pool also creates exactly one service-managed Pool-scoped ReadOnly Endpoint representing that + * Pool and its network boundary. The Endpoint's associatedResourceId identifies the Pool, and the Endpoint cannot + * outlive or be deleted independently from it. When the first pool is created, the service automatically designates + * it to host the cluster's read-write node when an eligible node is available. A Cluster must contain at least one + * Pool before a private endpoint connection can be created or approved. This API version supports at most one pool + * per cluster; an attempt to create another pool is rejected with 409 Conflict. parameterGroup, + * parameterGroupResourceId, and applyMethod are required. When creating a new pool in this API version, + * parameterGroupResourceId must identify the corresponding default parameter group; a customer-created parameter + * group is rejected. When replacing an existing pool, the request can switch its association in either direction + * between the corresponding default parameter group and a customer-created parameter group. applyMethod controls + * when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated + * Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute + * constraints are validated before the resource is changed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the HorizonDB pool on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono createOrReplaceAsync(String resourceGroupName, String clusterName, String poolName, + PoolInner resource); + + /** + * Creates a new HorizonDB pool or replaces an existing pool, including its node allocation, compute model, + * high-availability configuration, or associated parameter group. nodeCount and highAvailability.mode are required + * and have no service defaults. nodeCount must be 1 through 16. Disabled is valid only when nodeCount is 1. AnyZone + * and ZoneRedundant are valid only when nodeCount is 2 through 16. AnyZone permits same-zone or cross-zone + * placement, while ZoneRedundant requires nodes to be allocated across availability zones. Node allocation and + * high-availability reconfiguration are atomic: if all requested nodes or the required zonal topology cannot be + * provisioned, the long-running operation fails and the previous resource state is preserved. A pool name must + * differ from its parent cluster name because the Cluster-scoped ReadWrite Endpoint is named after the Cluster and + * the Pool-scoped ReadOnly Endpoint is named after the Pool; the service rejects a request whose names would + * collide. Creating a pool also creates exactly one service-managed Pool-scoped ReadOnly Endpoint representing that + * Pool and its network boundary. The Endpoint's associatedResourceId identifies the Pool, and the Endpoint cannot + * outlive or be deleted independently from it. When the first pool is created, the service automatically designates + * it to host the cluster's read-write node when an eligible node is available. A Cluster must contain at least one + * Pool before a private endpoint connection can be created or approved. This API version supports at most one pool + * per cluster; an attempt to create another pool is rejected with 409 Conflict. parameterGroup, + * parameterGroupResourceId, and applyMethod are required. When creating a new pool in this API version, + * parameterGroupResourceId must identify the corresponding default parameter group; a customer-created parameter + * group is rejected. When replacing an existing pool, the request can switch its association in either direction + * between the corresponding default parameter group and a customer-created parameter group. applyMethod controls + * when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated + * Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute + * constraints are validated before the resource is changed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + PoolInner createOrReplace(String resourceGroupName, String clusterName, String poolName, PoolInner resource); + + /** + * Creates a new HorizonDB pool or replaces an existing pool, including its node allocation, compute model, + * high-availability configuration, or associated parameter group. nodeCount and highAvailability.mode are required + * and have no service defaults. nodeCount must be 1 through 16. Disabled is valid only when nodeCount is 1. AnyZone + * and ZoneRedundant are valid only when nodeCount is 2 through 16. AnyZone permits same-zone or cross-zone + * placement, while ZoneRedundant requires nodes to be allocated across availability zones. Node allocation and + * high-availability reconfiguration are atomic: if all requested nodes or the required zonal topology cannot be + * provisioned, the long-running operation fails and the previous resource state is preserved. A pool name must + * differ from its parent cluster name because the Cluster-scoped ReadWrite Endpoint is named after the Cluster and + * the Pool-scoped ReadOnly Endpoint is named after the Pool; the service rejects a request whose names would + * collide. Creating a pool also creates exactly one service-managed Pool-scoped ReadOnly Endpoint representing that + * Pool and its network boundary. The Endpoint's associatedResourceId identifies the Pool, and the Endpoint cannot + * outlive or be deleted independently from it. When the first pool is created, the service automatically designates + * it to host the cluster's read-write node when an eligible node is available. A Cluster must contain at least one + * Pool before a private endpoint connection can be created or approved. This API version supports at most one pool + * per cluster; an attempt to create another pool is rejected with 409 Conflict. parameterGroup, + * parameterGroupResourceId, and applyMethod are required. When creating a new pool in this API version, + * parameterGroupResourceId must identify the corresponding default parameter group; a customer-created parameter + * group is rejected. When replacing an existing pool, the request can switch its association in either direction + * between the corresponding default parameter group and a customer-created parameter group. applyMethod controls + * when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated + * Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute + * constraints are validated before the resource is changed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + PoolInner createOrReplace(String resourceGroupName, String clusterName, String poolName, PoolInner resource, + Context context); + + /** + * Updates an existing HorizonDB pool, including its node allocation, selected compute model properties, compute + * model type, high-availability configuration, or associated parameter group. Omitted nodeCount and + * highAvailability.mode values preserve their existing values; the service recursively merges the PATCH before + * atomically validating the effective tuple. nodeCount, when supplied, must be 1 through 16. Disabled is valid only + * when the effective nodeCount is 1. AnyZone and ZoneRedundant are valid only when the effective nodeCount is 2 + * through 16. Therefore, crossing between those node-count ranges requires nodeCount and highAvailability.mode to + * be changed together. AnyZone permits same-zone or cross-zone placement. Changing from AnyZone to ZoneRedundant + * may allocate a replacement node in another availability zone and replace a read-only node, disconnecting + * connections to the replaced node. If all requested nodes or the required zonal topology cannot be provisioned, + * the long-running operation fails and the previous resource state is preserved. To deallocate runtime compute + * without changing the configured nodeCount, use the Pool stop action. When parameterGroup is supplied, both + * parameterGroupResourceId and applyMethod are required. The pool can switch its association in either direction + * between the corresponding default parameter group and a customer-created parameter group. applyMethod controls + * when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated + * Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute + * constraints are validated against the recursively merged configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the HorizonDB pool along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> updateWithResponseAsync(String resourceGroupName, String clusterName, + String poolName, PoolForPatchUpdate properties); + + /** + * Updates an existing HorizonDB pool, including its node allocation, selected compute model properties, compute + * model type, high-availability configuration, or associated parameter group. Omitted nodeCount and + * highAvailability.mode values preserve their existing values; the service recursively merges the PATCH before + * atomically validating the effective tuple. nodeCount, when supplied, must be 1 through 16. Disabled is valid only + * when the effective nodeCount is 1. AnyZone and ZoneRedundant are valid only when the effective nodeCount is 2 + * through 16. Therefore, crossing between those node-count ranges requires nodeCount and highAvailability.mode to + * be changed together. AnyZone permits same-zone or cross-zone placement. Changing from AnyZone to ZoneRedundant + * may allocate a replacement node in another availability zone and replace a read-only node, disconnecting + * connections to the replaced node. If all requested nodes or the required zonal topology cannot be provisioned, + * the long-running operation fails and the previous resource state is preserved. To deallocate runtime compute + * without changing the configured nodeCount, use the Pool stop action. When parameterGroup is supplied, both + * parameterGroupResourceId and applyMethod are required. The pool can switch its association in either direction + * between the corresponding default parameter group and a customer-created parameter group. applyMethod controls + * when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated + * Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute + * constraints are validated against the recursively merged configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, PoolInner> beginUpdateAsync(String resourceGroupName, String clusterName, + String poolName, PoolForPatchUpdate properties); + + /** + * Updates an existing HorizonDB pool, including its node allocation, selected compute model properties, compute + * model type, high-availability configuration, or associated parameter group. Omitted nodeCount and + * highAvailability.mode values preserve their existing values; the service recursively merges the PATCH before + * atomically validating the effective tuple. nodeCount, when supplied, must be 1 through 16. Disabled is valid only + * when the effective nodeCount is 1. AnyZone and ZoneRedundant are valid only when the effective nodeCount is 2 + * through 16. Therefore, crossing between those node-count ranges requires nodeCount and highAvailability.mode to + * be changed together. AnyZone permits same-zone or cross-zone placement. Changing from AnyZone to ZoneRedundant + * may allocate a replacement node in another availability zone and replace a read-only node, disconnecting + * connections to the replaced node. If all requested nodes or the required zonal topology cannot be provisioned, + * the long-running operation fails and the previous resource state is preserved. To deallocate runtime compute + * without changing the configured nodeCount, use the Pool stop action. When parameterGroup is supplied, both + * parameterGroupResourceId and applyMethod are required. The pool can switch its association in either direction + * between the corresponding default parameter group and a customer-created parameter group. applyMethod controls + * when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated + * Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute + * constraints are validated against the recursively merged configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, PoolInner> beginUpdate(String resourceGroupName, String clusterName, + String poolName, PoolForPatchUpdate properties); + + /** + * Updates an existing HorizonDB pool, including its node allocation, selected compute model properties, compute + * model type, high-availability configuration, or associated parameter group. Omitted nodeCount and + * highAvailability.mode values preserve their existing values; the service recursively merges the PATCH before + * atomically validating the effective tuple. nodeCount, when supplied, must be 1 through 16. Disabled is valid only + * when the effective nodeCount is 1. AnyZone and ZoneRedundant are valid only when the effective nodeCount is 2 + * through 16. Therefore, crossing between those node-count ranges requires nodeCount and highAvailability.mode to + * be changed together. AnyZone permits same-zone or cross-zone placement. Changing from AnyZone to ZoneRedundant + * may allocate a replacement node in another availability zone and replace a read-only node, disconnecting + * connections to the replaced node. If all requested nodes or the required zonal topology cannot be provisioned, + * the long-running operation fails and the previous resource state is preserved. To deallocate runtime compute + * without changing the configured nodeCount, use the Pool stop action. When parameterGroup is supplied, both + * parameterGroupResourceId and applyMethod are required. The pool can switch its association in either direction + * between the corresponding default parameter group and a customer-created parameter group. applyMethod controls + * when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated + * Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute + * constraints are validated against the recursively merged configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, PoolInner> beginUpdate(String resourceGroupName, String clusterName, + String poolName, PoolForPatchUpdate properties, Context context); + + /** + * Updates an existing HorizonDB pool, including its node allocation, selected compute model properties, compute + * model type, high-availability configuration, or associated parameter group. Omitted nodeCount and + * highAvailability.mode values preserve their existing values; the service recursively merges the PATCH before + * atomically validating the effective tuple. nodeCount, when supplied, must be 1 through 16. Disabled is valid only + * when the effective nodeCount is 1. AnyZone and ZoneRedundant are valid only when the effective nodeCount is 2 + * through 16. Therefore, crossing between those node-count ranges requires nodeCount and highAvailability.mode to + * be changed together. AnyZone permits same-zone or cross-zone placement. Changing from AnyZone to ZoneRedundant + * may allocate a replacement node in another availability zone and replace a read-only node, disconnecting + * connections to the replaced node. If all requested nodes or the required zonal topology cannot be provisioned, + * the long-running operation fails and the previous resource state is preserved. To deallocate runtime compute + * without changing the configured nodeCount, use the Pool stop action. When parameterGroup is supplied, both + * parameterGroupResourceId and applyMethod are required. The pool can switch its association in either direction + * between the corresponding default parameter group and a customer-created parameter group. applyMethod controls + * when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated + * Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute + * constraints are validated against the recursively merged configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the HorizonDB pool on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono updateAsync(String resourceGroupName, String clusterName, String poolName, + PoolForPatchUpdate properties); + + /** + * Updates an existing HorizonDB pool, including its node allocation, selected compute model properties, compute + * model type, high-availability configuration, or associated parameter group. Omitted nodeCount and + * highAvailability.mode values preserve their existing values; the service recursively merges the PATCH before + * atomically validating the effective tuple. nodeCount, when supplied, must be 1 through 16. Disabled is valid only + * when the effective nodeCount is 1. AnyZone and ZoneRedundant are valid only when the effective nodeCount is 2 + * through 16. Therefore, crossing between those node-count ranges requires nodeCount and highAvailability.mode to + * be changed together. AnyZone permits same-zone or cross-zone placement. Changing from AnyZone to ZoneRedundant + * may allocate a replacement node in another availability zone and replace a read-only node, disconnecting + * connections to the replaced node. If all requested nodes or the required zonal topology cannot be provisioned, + * the long-running operation fails and the previous resource state is preserved. To deallocate runtime compute + * without changing the configured nodeCount, use the Pool stop action. When parameterGroup is supplied, both + * parameterGroupResourceId and applyMethod are required. The pool can switch its association in either direction + * between the corresponding default parameter group and a customer-created parameter group. applyMethod controls + * when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated + * Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute + * constraints are validated against the recursively merged configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + PoolInner update(String resourceGroupName, String clusterName, String poolName, PoolForPatchUpdate properties); + + /** + * Updates an existing HorizonDB pool, including its node allocation, selected compute model properties, compute + * model type, high-availability configuration, or associated parameter group. Omitted nodeCount and + * highAvailability.mode values preserve their existing values; the service recursively merges the PATCH before + * atomically validating the effective tuple. nodeCount, when supplied, must be 1 through 16. Disabled is valid only + * when the effective nodeCount is 1. AnyZone and ZoneRedundant are valid only when the effective nodeCount is 2 + * through 16. Therefore, crossing between those node-count ranges requires nodeCount and highAvailability.mode to + * be changed together. AnyZone permits same-zone or cross-zone placement. Changing from AnyZone to ZoneRedundant + * may allocate a replacement node in another availability zone and replace a read-only node, disconnecting + * connections to the replaced node. If all requested nodes or the required zonal topology cannot be provisioned, + * the long-running operation fails and the previous resource state is preserved. To deallocate runtime compute + * without changing the configured nodeCount, use the Pool stop action. When parameterGroup is supplied, both + * parameterGroupResourceId and applyMethod are required. The pool can switch its association in either direction + * between the corresponding default parameter group and a customer-created parameter group. applyMethod controls + * when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated + * Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute + * constraints are validated against the recursively merged configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + PoolInner update(String resourceGroupName, String clusterName, String poolName, PoolForPatchUpdate properties, + Context context); + + /** + * Deletes a HorizonDB pool together with the Pool-scoped Endpoint whose associatedResourceId identifies that Pool + * and all FirewallRule children of that Endpoint. The Endpoint cannot outlive or be deleted independently from its + * Pool. When this is the Cluster's last surviving Pool, the service also disconnects every existing private + * endpoint connection associated with the Cluster by setting its privateLinkServiceConnectionState.status to + * Rejected and providing a description that the last Pool was deleted. The HorizonDB private endpoint connection + * resources remain available for inspection and cleanup, and customer-owned Microsoft.Network/privateEndpoints + * resources are not deleted. The delete long-running operation completes only after all required private endpoint + * disconnections have completed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> deleteWithResponseAsync(String resourceGroupName, String clusterName, + String poolName); + + /** + * Deletes a HorizonDB pool together with the Pool-scoped Endpoint whose associatedResourceId identifies that Pool + * and all FirewallRule children of that Endpoint. The Endpoint cannot outlive or be deleted independently from its + * Pool. When this is the Cluster's last surviving Pool, the service also disconnects every existing private + * endpoint connection associated with the Cluster by setting its privateLinkServiceConnectionState.status to + * Rejected and providing a description that the last Pool was deleted. The HorizonDB private endpoint connection + * resources remain available for inspection and cleanup, and customer-owned Microsoft.Network/privateEndpoints + * resources are not deleted. The delete long-running operation completes only after all required private endpoint + * disconnections have completed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 PollerFlux} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String clusterName, String poolName); + + /** + * Deletes a HorizonDB pool together with the Pool-scoped Endpoint whose associatedResourceId identifies that Pool + * and all FirewallRule children of that Endpoint. The Endpoint cannot outlive or be deleted independently from its + * Pool. When this is the Cluster's last surviving Pool, the service also disconnects every existing private + * endpoint connection associated with the Cluster by setting its privateLinkServiceConnectionState.status to + * Rejected and providing a description that the last Pool was deleted. The HorizonDB private endpoint connection + * resources remain available for inspection and cleanup, and customer-owned Microsoft.Network/privateEndpoints + * resources are not deleted. The delete long-running operation completes only after all required private endpoint + * disconnections have completed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, String poolName); + + /** + * Deletes a HorizonDB pool together with the Pool-scoped Endpoint whose associatedResourceId identifies that Pool + * and all FirewallRule children of that Endpoint. The Endpoint cannot outlive or be deleted independently from its + * Pool. When this is the Cluster's last surviving Pool, the service also disconnects every existing private + * endpoint connection associated with the Cluster by setting its privateLinkServiceConnectionState.status to + * Rejected and providing a description that the last Pool was deleted. The HorizonDB private endpoint connection + * resources remain available for inspection and cleanup, and customer-owned Microsoft.Network/privateEndpoints + * resources are not deleted. The delete long-running operation completes only after all required private endpoint + * disconnections have completed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of long-running operation. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, String poolName, + Context context); + + /** + * Deletes a HorizonDB pool together with the Pool-scoped Endpoint whose associatedResourceId identifies that Pool + * and all FirewallRule children of that Endpoint. The Endpoint cannot outlive or be deleted independently from its + * Pool. When this is the Cluster's last surviving Pool, the service also disconnects every existing private + * endpoint connection associated with the Cluster by setting its privateLinkServiceConnectionState.status to + * Rejected and providing a description that the last Pool was deleted. The HorizonDB private endpoint connection + * resources remain available for inspection and cleanup, and customer-owned Microsoft.Network/privateEndpoints + * resources are not deleted. The delete long-running operation completes only after all required private endpoint + * disconnections have completed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return A {@link Mono} that completes when a successful response is received. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono deleteAsync(String resourceGroupName, String clusterName, String poolName); + + /** + * Deletes a HorizonDB pool together with the Pool-scoped Endpoint whose associatedResourceId identifies that Pool + * and all FirewallRule children of that Endpoint. The Endpoint cannot outlive or be deleted independently from its + * Pool. When this is the Cluster's last surviving Pool, the service also disconnects every existing private + * endpoint connection associated with the Cluster by setting its privateLinkServiceConnectionState.status to + * Rejected and providing a description that the last Pool was deleted. The HorizonDB private endpoint connection + * resources remain available for inspection and cleanup, and customer-owned Microsoft.Network/privateEndpoints + * resources are not deleted. The delete long-running operation completes only after all required private endpoint + * disconnections have completed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String clusterName, String poolName); + + /** + * Deletes a HorizonDB pool together with the Pool-scoped Endpoint whose associatedResourceId identifies that Pool + * and all FirewallRule children of that Endpoint. The Endpoint cannot outlive or be deleted independently from its + * Pool. When this is the Cluster's last surviving Pool, the service also disconnects every existing private + * endpoint connection associated with the Cluster by setting its privateLinkServiceConnectionState.status to + * Rejected and providing a description that the last Pool was deleted. The HorizonDB private endpoint connection + * resources remain available for inspection and cleanup, and customer-owned Microsoft.Network/privateEndpoints + * resources are not deleted. The delete long-running operation completes only after all required private endpoint + * disconnections have completed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + void delete(String resourceGroupName, String clusterName, String poolName, Context context); + + /** + * Lists all HorizonDB pools in a cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Pool list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedFlux listAsync(String resourceGroupName, String clusterName); + + /** + * Lists all HorizonDB pools in a cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Pool list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String clusterName); + + /** + * Lists all HorizonDB pools in a cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Pool list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + PagedIterable list(String resourceGroupName, String clusterName, Context context); + + /** + * Starts a stopped HorizonDB pool. Power operations are supported only at pool scope in this API version; there is + * no cluster-level start action. Start does not apply pending dynamic or static parameter changes; + * parameterGroup.syncStatus remains PendingReboot until a customer-initiated Restart. When the pool is already + * Ready, the operation succeeds as a true idempotent no-op and likewise leaves pending parameter changes pending. + * The operation is allowed when the pool has no allocated nodes. After the Pool is running, its Pool-scoped + * ReadOnly Endpoint routes only when at least one allocated node is not currently playing the read-write role. The + * request fails with 409 Conflict when another operation is in progress or the pool is in any other incompatible + * state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> startWithResponseAsync(String resourceGroupName, String clusterName, + String poolName); + + /** + * Starts a stopped HorizonDB pool. Power operations are supported only at pool scope in this API version; there is + * no cluster-level start action. Start does not apply pending dynamic or static parameter changes; + * parameterGroup.syncStatus remains PendingReboot until a customer-initiated Restart. When the pool is already + * Ready, the operation succeeds as a true idempotent no-op and likewise leaves pending parameter changes pending. + * The operation is allowed when the pool has no allocated nodes. After the Pool is running, its Pool-scoped + * ReadOnly Endpoint routes only when at least one allocated node is not currently playing the read-write role. The + * request fails with 409 Conflict when another operation is in progress or the pool is in any other incompatible + * state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 PollerFlux} for polling of represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, PoolInner> beginStartAsync(String resourceGroupName, String clusterName, + String poolName); + + /** + * Starts a stopped HorizonDB pool. Power operations are supported only at pool scope in this API version; there is + * no cluster-level start action. Start does not apply pending dynamic or static parameter changes; + * parameterGroup.syncStatus remains PendingReboot until a customer-initiated Restart. When the pool is already + * Ready, the operation succeeds as a true idempotent no-op and likewise leaves pending parameter changes pending. + * The operation is allowed when the pool has no allocated nodes. After the Pool is running, its Pool-scoped + * ReadOnly Endpoint routes only when at least one allocated node is not currently playing the read-write role. The + * request fails with 409 Conflict when another operation is in progress or the pool is in any other incompatible + * state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, PoolInner> beginStart(String resourceGroupName, String clusterName, + String poolName); + + /** + * Starts a stopped HorizonDB pool. Power operations are supported only at pool scope in this API version; there is + * no cluster-level start action. Start does not apply pending dynamic or static parameter changes; + * parameterGroup.syncStatus remains PendingReboot until a customer-initiated Restart. When the pool is already + * Ready, the operation succeeds as a true idempotent no-op and likewise leaves pending parameter changes pending. + * The operation is allowed when the pool has no allocated nodes. After the Pool is running, its Pool-scoped + * ReadOnly Endpoint routes only when at least one allocated node is not currently playing the read-write role. The + * request fails with 409 Conflict when another operation is in progress or the pool is in any other incompatible + * state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, PoolInner> beginStart(String resourceGroupName, String clusterName, + String poolName, Context context); + + /** + * Starts a stopped HorizonDB pool. Power operations are supported only at pool scope in this API version; there is + * no cluster-level start action. Start does not apply pending dynamic or static parameter changes; + * parameterGroup.syncStatus remains PendingReboot until a customer-initiated Restart. When the pool is already + * Ready, the operation succeeds as a true idempotent no-op and likewise leaves pending parameter changes pending. + * The operation is allowed when the pool has no allocated nodes. After the Pool is running, its Pool-scoped + * ReadOnly Endpoint routes only when at least one allocated node is not currently playing the read-write role. The + * request fails with 409 Conflict when another operation is in progress or the pool is in any other incompatible + * state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono startAsync(String resourceGroupName, String clusterName, String poolName); + + /** + * Starts a stopped HorizonDB pool. Power operations are supported only at pool scope in this API version; there is + * no cluster-level start action. Start does not apply pending dynamic or static parameter changes; + * parameterGroup.syncStatus remains PendingReboot until a customer-initiated Restart. When the pool is already + * Ready, the operation succeeds as a true idempotent no-op and likewise leaves pending parameter changes pending. + * The operation is allowed when the pool has no allocated nodes. After the Pool is running, its Pool-scoped + * ReadOnly Endpoint routes only when at least one allocated node is not currently playing the read-write role. The + * request fails with 409 Conflict when another operation is in progress or the pool is in any other incompatible + * state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + PoolInner start(String resourceGroupName, String clusterName, String poolName); + + /** + * Starts a stopped HorizonDB pool. Power operations are supported only at pool scope in this API version; there is + * no cluster-level start action. Start does not apply pending dynamic or static parameter changes; + * parameterGroup.syncStatus remains PendingReboot until a customer-initiated Restart. When the pool is already + * Ready, the operation succeeds as a true idempotent no-op and likewise leaves pending parameter changes pending. + * The operation is allowed when the pool has no allocated nodes. After the Pool is running, its Pool-scoped + * ReadOnly Endpoint routes only when at least one allocated node is not currently playing the read-write role. The + * request fails with 409 Conflict when another operation is in progress or the pool is in any other incompatible + * state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + PoolInner start(String resourceGroupName, String clusterName, String poolName, Context context); + + /** + * Stops a running HorizonDB pool and deallocates compute. Power operations are supported only at pool scope in this + * API version; there is no cluster-level stop action. Stop does not apply pending dynamic or static parameter + * changes; parameterGroup.syncStatus remains PendingReboot. A subsequent Start also preserves those pending + * changes. The operation succeeds as an idempotent no-op when the pool is already Stopped. It is allowed when the + * pool has no allocated nodes. The Pool-scoped ReadOnly Endpoint remains discoverable but has no routing + * destination while the Pool is Stopped. The request fails with 409 Conflict when another operation is in progress + * or the pool is in any other incompatible state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> stopWithResponseAsync(String resourceGroupName, String clusterName, + String poolName); + + /** + * Stops a running HorizonDB pool and deallocates compute. Power operations are supported only at pool scope in this + * API version; there is no cluster-level stop action. Stop does not apply pending dynamic or static parameter + * changes; parameterGroup.syncStatus remains PendingReboot. A subsequent Start also preserves those pending + * changes. The operation succeeds as an idempotent no-op when the pool is already Stopped. It is allowed when the + * pool has no allocated nodes. The Pool-scoped ReadOnly Endpoint remains discoverable but has no routing + * destination while the Pool is Stopped. The request fails with 409 Conflict when another operation is in progress + * or the pool is in any other incompatible state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 PollerFlux} for polling of represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, PoolInner> beginStopAsync(String resourceGroupName, String clusterName, + String poolName); + + /** + * Stops a running HorizonDB pool and deallocates compute. Power operations are supported only at pool scope in this + * API version; there is no cluster-level stop action. Stop does not apply pending dynamic or static parameter + * changes; parameterGroup.syncStatus remains PendingReboot. A subsequent Start also preserves those pending + * changes. The operation succeeds as an idempotent no-op when the pool is already Stopped. It is allowed when the + * pool has no allocated nodes. The Pool-scoped ReadOnly Endpoint remains discoverable but has no routing + * destination while the Pool is Stopped. The request fails with 409 Conflict when another operation is in progress + * or the pool is in any other incompatible state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, PoolInner> beginStop(String resourceGroupName, String clusterName, + String poolName); + + /** + * Stops a running HorizonDB pool and deallocates compute. Power operations are supported only at pool scope in this + * API version; there is no cluster-level stop action. Stop does not apply pending dynamic or static parameter + * changes; parameterGroup.syncStatus remains PendingReboot. A subsequent Start also preserves those pending + * changes. The operation succeeds as an idempotent no-op when the pool is already Stopped. It is allowed when the + * pool has no allocated nodes. The Pool-scoped ReadOnly Endpoint remains discoverable but has no routing + * destination while the Pool is Stopped. The request fails with 409 Conflict when another operation is in progress + * or the pool is in any other incompatible state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, PoolInner> beginStop(String resourceGroupName, String clusterName, + String poolName, Context context); + + /** + * Stops a running HorizonDB pool and deallocates compute. Power operations are supported only at pool scope in this + * API version; there is no cluster-level stop action. Stop does not apply pending dynamic or static parameter + * changes; parameterGroup.syncStatus remains PendingReboot. A subsequent Start also preserves those pending + * changes. The operation succeeds as an idempotent no-op when the pool is already Stopped. It is allowed when the + * pool has no allocated nodes. The Pool-scoped ReadOnly Endpoint remains discoverable but has no routing + * destination while the Pool is Stopped. The request fails with 409 Conflict when another operation is in progress + * or the pool is in any other incompatible state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono stopAsync(String resourceGroupName, String clusterName, String poolName); + + /** + * Stops a running HorizonDB pool and deallocates compute. Power operations are supported only at pool scope in this + * API version; there is no cluster-level stop action. Stop does not apply pending dynamic or static parameter + * changes; parameterGroup.syncStatus remains PendingReboot. A subsequent Start also preserves those pending + * changes. The operation succeeds as an idempotent no-op when the pool is already Stopped. It is allowed when the + * pool has no allocated nodes. The Pool-scoped ReadOnly Endpoint remains discoverable but has no routing + * destination while the Pool is Stopped. The request fails with 409 Conflict when another operation is in progress + * or the pool is in any other incompatible state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + PoolInner stop(String resourceGroupName, String clusterName, String poolName); + + /** + * Stops a running HorizonDB pool and deallocates compute. Power operations are supported only at pool scope in this + * API version; there is no cluster-level stop action. Stop does not apply pending dynamic or static parameter + * changes; parameterGroup.syncStatus remains PendingReboot. A subsequent Start also preserves those pending + * changes. The operation succeeds as an idempotent no-op when the pool is already Stopped. It is allowed when the + * pool has no allocated nodes. The Pool-scoped ReadOnly Endpoint remains discoverable but has no routing + * destination while the Pool is Stopped. The request fails with 409 Conflict when another operation is in progress + * or the pool is in any other incompatible state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + PoolInner stop(String resourceGroupName, String clusterName, String poolName, Context context); + + /** + * Restarts the PostgreSQL container on all allocated nodes in a ready HorizonDB pool and applies pending dynamic + * and static parameter changes. This customer-initiated Restart is the only operation that applies static parameter + * changes or dynamic parameter changes requested with PendingReboot; Stop followed by Start and scheduled + * maintenance do not apply them. Power operations are supported only at pool scope in this API version; there is no + * cluster-level restart action. When the pool has no allocated nodes, the operation succeeds without restarting any + * nodes, pending changes are considered applied, parameterGroup.syncStatus becomes InSync, and the resulting + * configuration applies to nodes allocated later. The request fails with 409 Conflict when another operation is in + * progress or the pool is in any other incompatible state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono>> restartWithResponseAsync(String resourceGroupName, String clusterName, + String poolName); + + /** + * Restarts the PostgreSQL container on all allocated nodes in a ready HorizonDB pool and applies pending dynamic + * and static parameter changes. This customer-initiated Restart is the only operation that applies static parameter + * changes or dynamic parameter changes requested with PendingReboot; Stop followed by Start and scheduled + * maintenance do not apply them. Power operations are supported only at pool scope in this API version; there is no + * cluster-level restart action. When the pool has no allocated nodes, the operation succeeds without restarting any + * nodes, pending changes are considered applied, parameterGroup.syncStatus becomes InSync, and the resulting + * configuration applies to nodes allocated later. The request fails with 409 Conflict when another operation is in + * progress or the pool is in any other incompatible state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 PollerFlux} for polling of represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, PoolInner> beginRestartAsync(String resourceGroupName, String clusterName, + String poolName); + + /** + * Restarts the PostgreSQL container on all allocated nodes in a ready HorizonDB pool and applies pending dynamic + * and static parameter changes. This customer-initiated Restart is the only operation that applies static parameter + * changes or dynamic parameter changes requested with PendingReboot; Stop followed by Start and scheduled + * maintenance do not apply them. Power operations are supported only at pool scope in this API version; there is no + * cluster-level restart action. When the pool has no allocated nodes, the operation succeeds without restarting any + * nodes, pending changes are considered applied, parameterGroup.syncStatus becomes InSync, and the resulting + * configuration applies to nodes allocated later. The request fails with 409 Conflict when another operation is in + * progress or the pool is in any other incompatible state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, PoolInner> beginRestart(String resourceGroupName, String clusterName, + String poolName); + + /** + * Restarts the PostgreSQL container on all allocated nodes in a ready HorizonDB pool and applies pending dynamic + * and static parameter changes. This customer-initiated Restart is the only operation that applies static parameter + * changes or dynamic parameter changes requested with PendingReboot; Stop followed by Start and scheduled + * maintenance do not apply them. Power operations are supported only at pool scope in this API version; there is no + * cluster-level restart action. When the pool has no allocated nodes, the operation succeeds without restarting any + * nodes, pending changes are considered applied, parameterGroup.syncStatus becomes InSync, and the resulting + * configuration applies to nodes allocated later. The request fails with 409 Conflict when another operation is in + * progress or the pool is in any other incompatible state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, PoolInner> beginRestart(String resourceGroupName, String clusterName, + String poolName, Context context); + + /** + * Restarts the PostgreSQL container on all allocated nodes in a ready HorizonDB pool and applies pending dynamic + * and static parameter changes. This customer-initiated Restart is the only operation that applies static parameter + * changes or dynamic parameter changes requested with PendingReboot; Stop followed by Start and scheduled + * maintenance do not apply them. Power operations are supported only at pool scope in this API version; there is no + * cluster-level restart action. When the pool has no allocated nodes, the operation succeeds without restarting any + * nodes, pending changes are considered applied, parameterGroup.syncStatus becomes InSync, and the resulting + * configuration applies to nodes allocated later. The request fails with 409 Conflict when another operation is in + * progress or the pool is in any other incompatible state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Mono restartAsync(String resourceGroupName, String clusterName, String poolName); + + /** + * Restarts the PostgreSQL container on all allocated nodes in a ready HorizonDB pool and applies pending dynamic + * and static parameter changes. This customer-initiated Restart is the only operation that applies static parameter + * changes or dynamic parameter changes requested with PendingReboot; Stop followed by Start and scheduled + * maintenance do not apply them. Power operations are supported only at pool scope in this API version; there is no + * cluster-level restart action. When the pool has no allocated nodes, the operation succeeds without restarting any + * nodes, pending changes are considered applied, parameterGroup.syncStatus becomes InSync, and the resulting + * configuration applies to nodes allocated later. The request fails with 409 Conflict when another operation is in + * progress or the pool is in any other incompatible state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + PoolInner restart(String resourceGroupName, String clusterName, String poolName); + + /** + * Restarts the PostgreSQL container on all allocated nodes in a ready HorizonDB pool and applies pending dynamic + * and static parameter changes. This customer-initiated Restart is the only operation that applies static parameter + * changes or dynamic parameter changes requested with PendingReboot; Stop followed by Start and scheduled + * maintenance do not apply them. Power operations are supported only at pool scope in this API version; there is no + * cluster-level restart action. When the pool has no allocated nodes, the operation succeeds without restarting any + * nodes, pending changes are considered applied, parameterGroup.syncStatus becomes InSync, and the resulting + * configuration applies to nodes allocated later. The request fails with 409 Conflict when another operation is in + * progress or the pool is in any other incompatible state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + PoolInner restart(String resourceGroupName, String clusterName, String poolName, Context context); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/HorizonDbPrivateEndpointConnectionsClient.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/PrivateEndpointConnectionsClient.java similarity index 71% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/HorizonDbPrivateEndpointConnectionsClient.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/PrivateEndpointConnectionsClient.java index f42b97054cc97..2412b5cda5b2e 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/HorizonDbPrivateEndpointConnectionsClient.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/PrivateEndpointConnectionsClient.java @@ -19,9 +19,9 @@ import reactor.core.publisher.Mono; /** - * An instance of this class provides access to all the operations defined in HorizonDbPrivateEndpointConnectionsClient. + * An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. */ -public interface HorizonDbPrivateEndpointConnectionsClient { +public interface PrivateEndpointConnectionsClient { /** * Gets a private endpoint connection. * @@ -132,7 +132,10 @@ PagedIterable list(String resourceGroupN Context context); /** - * Approves or rejects a private endpoint connection. + * Approves or rejects an existing private endpoint connection. Approval requires the parent Cluster to contain at + * least one Pool. An approval attempt when the Cluster has no Pools fails with 409 Conflict and the stable error + * code PrivateEndpointRequiresPool. Rejection remains allowed when the Cluster has no Pools so that existing + * connections can be cleaned up. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -146,11 +149,78 @@ PagedIterable list(String resourceGroupN * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> updateStatusWithResponseAsync(String resourceGroupName, - String clusterName, String privateEndpointConnectionName, PrivateEndpointConnectionResourceInner resource); + Mono>> approveOrRejectWithResponseAsync(String resourceGroupName, String clusterName, + String privateEndpointConnectionName, PrivateEndpointConnectionResourceInner resource); + + /** + * Approves or rejects an existing private endpoint connection. Approval requires the parent Cluster to contain at + * least one Pool. An approval attempt when the Cluster has no Pools fails with 409 Conflict and the stable error + * code PrivateEndpointRequiresPool. Rejection remains allowed when the Cluster has no Pools so that existing + * connections can be cleaned up. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure + * resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of a private endpoint connection resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + PollerFlux, PrivateEndpointConnectionResourceInner> + beginApproveOrRejectAsync(String resourceGroupName, String clusterName, String privateEndpointConnectionName, + PrivateEndpointConnectionResourceInner resource); /** - * Approves or rejects a private endpoint connection. + * Approves or rejects an existing private endpoint connection. Approval requires the parent Cluster to contain at + * least one Pool. An approval attempt when the Cluster has no Pools fails with 409 Conflict and the stable error + * code PrivateEndpointRequiresPool. Rejection remains allowed when the Cluster has no Pools so that existing + * connections can be cleaned up. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure + * resource. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of a private endpoint connection resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, PrivateEndpointConnectionResourceInner> + beginApproveOrReject(String resourceGroupName, String clusterName, String privateEndpointConnectionName, + PrivateEndpointConnectionResourceInner resource); + + /** + * Approves or rejects an existing private endpoint connection. Approval requires the parent Cluster to contain at + * least one Pool. An approval attempt when the Cluster has no Pools fails with 409 Conflict and the stable error + * code PrivateEndpointRequiresPool. Rejection remains allowed when the Cluster has no Pools so that existing + * connections can be cleaned up. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure + * resource. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of a private endpoint connection resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, PrivateEndpointConnectionResourceInner> + beginApproveOrReject(String resourceGroupName, String clusterName, String privateEndpointConnectionName, + PrivateEndpointConnectionResourceInner resource, Context context); + + /** + * Approves or rejects an existing private endpoint connection. Approval requires the parent Cluster to contain at + * least one Pool. An approval attempt when the Cluster has no Pools fails with 409 Conflict and the stable error + * code PrivateEndpointRequiresPool. Rejection remains allowed when the Cluster has no Pools so that existing + * connections can be cleaned up. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -163,44 +233,49 @@ Mono> updateStatusWithResponseA * @return a private endpoint connection resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono updateStatusAsync(String resourceGroupName, String clusterName, + Mono approveOrRejectAsync(String resourceGroupName, String clusterName, String privateEndpointConnectionName, PrivateEndpointConnectionResourceInner resource); /** - * Approves or rejects a private endpoint connection. + * Approves or rejects an existing private endpoint connection. Approval requires the parent Cluster to contain at + * least one Pool. An approval attempt when the Cluster has no Pools fails with 409 Conflict and the stable error + * code PrivateEndpointRequiresPool. Rejection remains allowed when the Cluster has no Pools so that existing + * connections can be cleaned up. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @param resource Resource create parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a private endpoint connection resource along with {@link Response}. + * @return a private endpoint connection resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response updateStatusWithResponse(String resourceGroupName, - String clusterName, String privateEndpointConnectionName, PrivateEndpointConnectionResourceInner resource, - Context context); + PrivateEndpointConnectionResourceInner approveOrReject(String resourceGroupName, String clusterName, + String privateEndpointConnectionName, PrivateEndpointConnectionResourceInner resource); /** - * Approves or rejects a private endpoint connection. + * Approves or rejects an existing private endpoint connection. Approval requires the parent Cluster to contain at + * least one Pool. An approval attempt when the Cluster has no Pools fails with 409 Conflict and the stable error + * code PrivateEndpointRequiresPool. Rejection remains allowed when the Cluster has no Pools so that existing + * connections can be cleaned up. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. * @param resource Resource create parameters. + * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a private endpoint connection resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - PrivateEndpointConnectionResourceInner updateStatus(String resourceGroupName, String clusterName, - String privateEndpointConnectionName, PrivateEndpointConnectionResourceInner resource); + PrivateEndpointConnectionResourceInner approveOrReject(String resourceGroupName, String clusterName, + String privateEndpointConnectionName, PrivateEndpointConnectionResourceInner resource, Context context); /** * Deletes a private endpoint connection. diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/HorizonDbPrivateLinkResourcesClient.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/PrivateLinkResourcesClient.java similarity index 79% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/HorizonDbPrivateLinkResourcesClient.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/PrivateLinkResourcesClient.java index 4de77b5c4af16..da8775916c7d8 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/HorizonDbPrivateLinkResourcesClient.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/PrivateLinkResourcesClient.java @@ -10,13 +10,13 @@ import com.azure.core.http.rest.PagedIterable; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbPrivateLinkResourceInner; +import com.azure.resourcemanager.horizondb.fluent.models.PrivateLinkResourceInner; import reactor.core.publisher.Mono; /** - * An instance of this class provides access to all the operations defined in HorizonDbPrivateLinkResourcesClient. + * An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient. */ -public interface HorizonDbPrivateLinkResourcesClient { +public interface PrivateLinkResourcesClient { /** * Gets a private link resource. * @@ -29,7 +29,7 @@ public interface HorizonDbPrivateLinkResourcesClient { * @return a private link resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono> getWithResponseAsync(String resourceGroupName, String clusterName, + Mono> getWithResponseAsync(String resourceGroupName, String clusterName, String groupName); /** @@ -44,7 +44,7 @@ Mono> getWithResponseAsync(String re * @return a private link resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Mono getAsync(String resourceGroupName, String clusterName, String groupName); + Mono getAsync(String resourceGroupName, String clusterName, String groupName); /** * Gets a private link resource. @@ -59,8 +59,8 @@ Mono> getWithResponseAsync(String re * @return a private link resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String clusterName, - String groupName, Context context); + Response getWithResponse(String resourceGroupName, String clusterName, String groupName, + Context context); /** * Gets a private link resource. @@ -74,7 +74,7 @@ Response getWithResponse(String resourceGroup * @return a private link resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - HorizonDbPrivateLinkResourceInner get(String resourceGroupName, String clusterName, String groupName); + PrivateLinkResourceInner get(String resourceGroupName, String clusterName, String groupName); /** * Lists private link resources in a HorizonDB cluster. @@ -84,11 +84,10 @@ Response getWithResponse(String resourceGroup * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbPrivateLinkResource list operation as paginated response with - * {@link PagedFlux}. + * @return the response of a PrivateLinkResource list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedFlux listAsync(String resourceGroupName, String clusterName); + PagedFlux listAsync(String resourceGroupName, String clusterName); /** * Lists private link resources in a HorizonDB cluster. @@ -98,11 +97,10 @@ Response getWithResponse(String resourceGroup * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbPrivateLinkResource list operation as paginated response with - * {@link PagedIterable}. + * @return the response of a PrivateLinkResource list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String clusterName); + PagedIterable list(String resourceGroupName, String clusterName); /** * Lists private link resources in a HorizonDB cluster. @@ -113,10 +111,8 @@ Response getWithResponse(String resourceGroup * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbPrivateLinkResource list operation as paginated response with - * {@link PagedIterable}. + * @return the response of a PrivateLinkResource list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(String resourceGroupName, String clusterName, - Context context); + PagedIterable list(String resourceGroupName, String clusterName, Context context); } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/ActivateChangeDataCaptureIdentityResultInner.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/ActivateChangeDataCaptureIdentityResultInner.java new file mode 100644 index 0000000000000..6d155e5b75401 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/ActivateChangeDataCaptureIdentityResultInner.java @@ -0,0 +1,109 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The completed result of activating a change data capture destination identity. + */ +@Immutable +public final class ActivateChangeDataCaptureIdentityResultInner + implements JsonSerializable { + /* + * The completed activation status. + */ + private final String status = "Succeeded"; + + /* + * The resource ID of the newly active identity assignment. + */ + private String targetIdentityAssignmentResourceId; + + /* + * The resource ID of the previously active identity assignment, when one existed. + */ + private String previousIdentityAssignmentResourceId; + + /** + * Creates an instance of ActivateChangeDataCaptureIdentityResultInner class. + */ + private ActivateChangeDataCaptureIdentityResultInner() { + } + + /** + * Get the status property: The completed activation status. + * + * @return the status value. + */ + public String status() { + return this.status; + } + + /** + * Get the targetIdentityAssignmentResourceId property: The resource ID of the newly active identity assignment. + * + * @return the targetIdentityAssignmentResourceId value. + */ + public String targetIdentityAssignmentResourceId() { + return this.targetIdentityAssignmentResourceId; + } + + /** + * Get the previousIdentityAssignmentResourceId property: The resource ID of the previously active identity + * assignment, when one existed. + * + * @return the previousIdentityAssignmentResourceId value. + */ + public String previousIdentityAssignmentResourceId() { + return this.previousIdentityAssignmentResourceId; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ActivateChangeDataCaptureIdentityResultInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ActivateChangeDataCaptureIdentityResultInner 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 ActivateChangeDataCaptureIdentityResultInner. + */ + public static ActivateChangeDataCaptureIdentityResultInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ActivateChangeDataCaptureIdentityResultInner deserializedActivateChangeDataCaptureIdentityResultInner + = new ActivateChangeDataCaptureIdentityResultInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("targetIdentityAssignmentResourceId".equals(fieldName)) { + deserializedActivateChangeDataCaptureIdentityResultInner.targetIdentityAssignmentResourceId + = reader.getString(); + } else if ("previousIdentityAssignmentResourceId".equals(fieldName)) { + deserializedActivateChangeDataCaptureIdentityResultInner.previousIdentityAssignmentResourceId + = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedActivateChangeDataCaptureIdentityResultInner; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/AuthenticationInner.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/AuthenticationInner.java new file mode 100644 index 0000000000000..4688f63113f58 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/AuthenticationInner.java @@ -0,0 +1,145 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.horizondb.models.AuthenticationProperties; +import java.io.IOException; + +/** + * A service-created authentication configuration returned by the authentications collection. The resource name is + * passwordMethod or microsoftEntra. + */ +@Immutable +public final class AuthenticationInner extends ProxyResource { + /* + * The resource-specific properties for this resource. + */ + private AuthenticationProperties properties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of AuthenticationInner class. + */ + private AuthenticationInner() { + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public AuthenticationProperties properties() { + return this.properties; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AuthenticationInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AuthenticationInner 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 AuthenticationInner. + */ + public static AuthenticationInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AuthenticationInner deserializedAuthenticationInner = new AuthenticationInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedAuthenticationInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedAuthenticationInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedAuthenticationInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedAuthenticationInner.properties = AuthenticationProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedAuthenticationInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedAuthenticationInner; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/CapabilityInner.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/CapabilityInner.java new file mode 100644 index 0000000000000..2fb75f7dc67bc --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/CapabilityInner.java @@ -0,0 +1,144 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.horizondb.models.CapabilityProperties; +import java.io.IOException; + +/** + * The singleton HorizonDB capability catalog entry available to a subscription in a location. + */ +@Immutable +public final class CapabilityInner extends ProxyResource { + /* + * The resource-specific properties for this resource. + */ + private CapabilityProperties properties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of CapabilityInner class. + */ + private CapabilityInner() { + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public CapabilityProperties properties() { + return this.properties; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CapabilityInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CapabilityInner 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 CapabilityInner. + */ + public static CapabilityInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CapabilityInner deserializedCapabilityInner = new CapabilityInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedCapabilityInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedCapabilityInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedCapabilityInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedCapabilityInner.properties = CapabilityProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedCapabilityInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedCapabilityInner; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/ChangeDataCaptureCapabilityInner.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/ChangeDataCaptureCapabilityInner.java new file mode 100644 index 0000000000000..216ec432ae49e --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/ChangeDataCaptureCapabilityInner.java @@ -0,0 +1,179 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureCapabilityProperties; +import java.io.IOException; + +/** + * The singleton change data capture capability for a HorizonDB cluster. + */ +@Fluent +public final class ChangeDataCaptureCapabilityInner extends ProxyResource { + /* + * The resource-specific properties for this resource. + */ + private ChangeDataCaptureCapabilityProperties properties; + + /* + * If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. + * Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity + * tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section + * 14.27) header fields. + */ + private String eTag; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of ChangeDataCaptureCapabilityInner class. + */ + public ChangeDataCaptureCapabilityInner() { + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public ChangeDataCaptureCapabilityProperties properties() { + return this.properties; + } + + /** + * Set the properties property: The resource-specific properties for this resource. + * + * @param properties the properties value to set. + * @return the ChangeDataCaptureCapabilityInner object itself. + */ + public ChangeDataCaptureCapabilityInner withProperties(ChangeDataCaptureCapabilityProperties properties) { + this.properties = properties; + return this; + } + + /** + * Get the eTag property: If eTag is provided in the response body, it may also be provided as a header per the + * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. + * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), + * and If-Range (section 14.27) header fields. + * + * @return the eTag value. + */ + public String eTag() { + return this.eTag; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ChangeDataCaptureCapabilityInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ChangeDataCaptureCapabilityInner 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 ChangeDataCaptureCapabilityInner. + */ + public static ChangeDataCaptureCapabilityInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ChangeDataCaptureCapabilityInner deserializedChangeDataCaptureCapabilityInner + = new ChangeDataCaptureCapabilityInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedChangeDataCaptureCapabilityInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedChangeDataCaptureCapabilityInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedChangeDataCaptureCapabilityInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedChangeDataCaptureCapabilityInner.properties + = ChangeDataCaptureCapabilityProperties.fromJson(reader); + } else if ("eTag".equals(fieldName)) { + deserializedChangeDataCaptureCapabilityInner.eTag = reader.getString(); + } else if ("systemData".equals(fieldName)) { + deserializedChangeDataCaptureCapabilityInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedChangeDataCaptureCapabilityInner; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/ChangeDataCaptureConfigurationInner.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/ChangeDataCaptureConfigurationInner.java new file mode 100644 index 0000000000000..d7eb636e347c9 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/ChangeDataCaptureConfigurationInner.java @@ -0,0 +1,179 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureConfigurationProperties; +import java.io.IOException; + +/** + * A HorizonDB database enrollment for Microsoft Fabric Mirroring. + */ +@Fluent +public final class ChangeDataCaptureConfigurationInner extends ProxyResource { + /* + * The resource-specific properties for this resource. + */ + private ChangeDataCaptureConfigurationProperties properties; + + /* + * If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. + * Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity + * tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section + * 14.27) header fields. + */ + private String eTag; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of ChangeDataCaptureConfigurationInner class. + */ + public ChangeDataCaptureConfigurationInner() { + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public ChangeDataCaptureConfigurationProperties properties() { + return this.properties; + } + + /** + * Set the properties property: The resource-specific properties for this resource. + * + * @param properties the properties value to set. + * @return the ChangeDataCaptureConfigurationInner object itself. + */ + public ChangeDataCaptureConfigurationInner withProperties(ChangeDataCaptureConfigurationProperties properties) { + this.properties = properties; + return this; + } + + /** + * Get the eTag property: If eTag is provided in the response body, it may also be provided as a header per the + * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. + * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), + * and If-Range (section 14.27) header fields. + * + * @return the eTag value. + */ + public String eTag() { + return this.eTag; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ChangeDataCaptureConfigurationInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ChangeDataCaptureConfigurationInner 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 ChangeDataCaptureConfigurationInner. + */ + public static ChangeDataCaptureConfigurationInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ChangeDataCaptureConfigurationInner deserializedChangeDataCaptureConfigurationInner + = new ChangeDataCaptureConfigurationInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedChangeDataCaptureConfigurationInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedChangeDataCaptureConfigurationInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedChangeDataCaptureConfigurationInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedChangeDataCaptureConfigurationInner.properties + = ChangeDataCaptureConfigurationProperties.fromJson(reader); + } else if ("eTag".equals(fieldName)) { + deserializedChangeDataCaptureConfigurationInner.eTag = reader.getString(); + } else if ("systemData".equals(fieldName)) { + deserializedChangeDataCaptureConfigurationInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedChangeDataCaptureConfigurationInner; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/ChangeDataCaptureDestinationInner.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/ChangeDataCaptureDestinationInner.java new file mode 100644 index 0000000000000..2910e7a7186ad --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/ChangeDataCaptureDestinationInner.java @@ -0,0 +1,179 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDestinationProperties; +import java.io.IOException; + +/** + * A reusable Microsoft Fabric destination for HorizonDB change data capture configurations. + */ +@Fluent +public final class ChangeDataCaptureDestinationInner extends ProxyResource { + /* + * The resource-specific properties for this resource. + */ + private ChangeDataCaptureDestinationProperties properties; + + /* + * If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. + * Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity + * tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section + * 14.27) header fields. + */ + private String eTag; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of ChangeDataCaptureDestinationInner class. + */ + public ChangeDataCaptureDestinationInner() { + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public ChangeDataCaptureDestinationProperties properties() { + return this.properties; + } + + /** + * Set the properties property: The resource-specific properties for this resource. + * + * @param properties the properties value to set. + * @return the ChangeDataCaptureDestinationInner object itself. + */ + public ChangeDataCaptureDestinationInner withProperties(ChangeDataCaptureDestinationProperties properties) { + this.properties = properties; + return this; + } + + /** + * Get the eTag property: If eTag is provided in the response body, it may also be provided as a header per the + * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. + * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), + * and If-Range (section 14.27) header fields. + * + * @return the eTag value. + */ + public String eTag() { + return this.eTag; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ChangeDataCaptureDestinationInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ChangeDataCaptureDestinationInner 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 ChangeDataCaptureDestinationInner. + */ + public static ChangeDataCaptureDestinationInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ChangeDataCaptureDestinationInner deserializedChangeDataCaptureDestinationInner + = new ChangeDataCaptureDestinationInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedChangeDataCaptureDestinationInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedChangeDataCaptureDestinationInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedChangeDataCaptureDestinationInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedChangeDataCaptureDestinationInner.properties + = ChangeDataCaptureDestinationProperties.fromJson(reader); + } else if ("eTag".equals(fieldName)) { + deserializedChangeDataCaptureDestinationInner.eTag = reader.getString(); + } else if ("systemData".equals(fieldName)) { + deserializedChangeDataCaptureDestinationInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedChangeDataCaptureDestinationInner; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/HorizonDbClusterInner.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/ClusterInner.java similarity index 62% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/HorizonDbClusterInner.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/ClusterInner.java index 60f27389e60ed..d730298ebedac 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/HorizonDbClusterInner.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/ClusterInner.java @@ -10,8 +10,8 @@ import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import com.azure.resourcemanager.horizondb.models.HorizonDbClusterProperties; -import com.azure.resourcemanager.horizondb.models.ManagedServiceIdentity; +import com.azure.resourcemanager.horizondb.models.ClusterProperties; +import com.azure.resourcemanager.horizondb.models.HorizonDbClusterManagedServiceIdentity; import java.io.IOException; import java.util.Map; @@ -19,16 +19,18 @@ * Represents the HorizonDB cluster. */ @Fluent -public final class HorizonDbClusterInner extends Resource { +public final class ClusterInner extends Resource { /* * The resource-specific properties for this resource. */ - private HorizonDbClusterProperties properties; + private ClusterProperties properties; /* - * The managed service identities assigned to this resource. + * The managed service identities assigned to this resource. Omitting the entire identity property from PUT or PATCH + * preserves all current assignments. When provided, PUT replaces the user-assigned identity set and PATCH merges + * it; null PATCH dictionary entries remove individual identities. Setting type to None clears all assignments. */ - private ManagedServiceIdentity identity; + private HorizonDbClusterManagedServiceIdentity identity; /* * Azure Resource Manager metadata containing createdBy and modifiedBy information. @@ -51,9 +53,9 @@ public final class HorizonDbClusterInner extends Resource { private String id; /** - * Creates an instance of HorizonDbClusterInner class. + * Creates an instance of ClusterInner class. */ - public HorizonDbClusterInner() { + public ClusterInner() { } /** @@ -61,7 +63,7 @@ public HorizonDbClusterInner() { * * @return the properties value. */ - public HorizonDbClusterProperties properties() { + public ClusterProperties properties() { return this.properties; } @@ -69,29 +71,35 @@ public HorizonDbClusterProperties properties() { * Set the properties property: The resource-specific properties for this resource. * * @param properties the properties value to set. - * @return the HorizonDbClusterInner object itself. + * @return the ClusterInner object itself. */ - public HorizonDbClusterInner withProperties(HorizonDbClusterProperties properties) { + public ClusterInner withProperties(ClusterProperties properties) { this.properties = properties; return this; } /** - * Get the identity property: The managed service identities assigned to this resource. + * Get the identity property: The managed service identities assigned to this resource. Omitting the entire identity + * property from PUT or PATCH preserves all current assignments. When provided, PUT replaces the user-assigned + * identity set and PATCH merges it; null PATCH dictionary entries remove individual identities. Setting type to + * None clears all assignments. * * @return the identity value. */ - public ManagedServiceIdentity identity() { + public HorizonDbClusterManagedServiceIdentity identity() { return this.identity; } /** - * Set the identity property: The managed service identities assigned to this resource. + * Set the identity property: The managed service identities assigned to this resource. Omitting the entire identity + * property from PUT or PATCH preserves all current assignments. When provided, PUT replaces the user-assigned + * identity set and PATCH merges it; null PATCH dictionary entries remove individual identities. Setting type to + * None clears all assignments. * * @param identity the identity value to set. - * @return the HorizonDbClusterInner object itself. + * @return the ClusterInner object itself. */ - public HorizonDbClusterInner withIdentity(ManagedServiceIdentity identity) { + public ClusterInner withIdentity(HorizonDbClusterManagedServiceIdentity identity) { this.identity = identity; return this; } @@ -139,7 +147,7 @@ public String id() { * {@inheritDoc} */ @Override - public HorizonDbClusterInner withLocation(String location) { + public ClusterInner withLocation(String location) { super.withLocation(location); return this; } @@ -148,7 +156,7 @@ public HorizonDbClusterInner withLocation(String location) { * {@inheritDoc} */ @Override - public HorizonDbClusterInner withTags(Map tags) { + public ClusterInner withTags(Map tags) { super.withTags(tags); return this; } @@ -167,44 +175,44 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { } /** - * Reads an instance of HorizonDbClusterInner from the JsonReader. + * Reads an instance of ClusterInner from the JsonReader. * * @param jsonReader The JsonReader being read. - * @return An instance of HorizonDbClusterInner if the JsonReader was pointing to an instance of it, or null if it - * was pointing to JSON null. + * @return An instance of ClusterInner 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 HorizonDbClusterInner. + * @throws IOException If an error occurs while reading the ClusterInner. */ - public static HorizonDbClusterInner fromJson(JsonReader jsonReader) throws IOException { + public static ClusterInner fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { - HorizonDbClusterInner deserializedHorizonDbClusterInner = new HorizonDbClusterInner(); + ClusterInner deserializedClusterInner = new ClusterInner(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); if ("id".equals(fieldName)) { - deserializedHorizonDbClusterInner.id = reader.getString(); + deserializedClusterInner.id = reader.getString(); } else if ("name".equals(fieldName)) { - deserializedHorizonDbClusterInner.name = reader.getString(); + deserializedClusterInner.name = reader.getString(); } else if ("type".equals(fieldName)) { - deserializedHorizonDbClusterInner.type = reader.getString(); + deserializedClusterInner.type = reader.getString(); } else if ("location".equals(fieldName)) { - deserializedHorizonDbClusterInner.withLocation(reader.getString()); + deserializedClusterInner.withLocation(reader.getString()); } else if ("tags".equals(fieldName)) { Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedHorizonDbClusterInner.withTags(tags); + deserializedClusterInner.withTags(tags); } else if ("properties".equals(fieldName)) { - deserializedHorizonDbClusterInner.properties = HorizonDbClusterProperties.fromJson(reader); + deserializedClusterInner.properties = ClusterProperties.fromJson(reader); } else if ("identity".equals(fieldName)) { - deserializedHorizonDbClusterInner.identity = ManagedServiceIdentity.fromJson(reader); + deserializedClusterInner.identity = HorizonDbClusterManagedServiceIdentity.fromJson(reader); } else if ("systemData".equals(fieldName)) { - deserializedHorizonDbClusterInner.systemData = SystemData.fromJson(reader); + deserializedClusterInner.systemData = SystemData.fromJson(reader); } else { reader.skipChildren(); } } - return deserializedHorizonDbClusterInner; + return deserializedClusterInner; }); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/HorizonDbFirewallRuleInner.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/DefaultParameterGroupInner.java similarity index 67% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/HorizonDbFirewallRuleInner.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/DefaultParameterGroupInner.java index f9d45648b858b..d61d6cd77b6ae 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/HorizonDbFirewallRuleInner.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/DefaultParameterGroupInner.java @@ -4,24 +4,26 @@ package com.azure.resourcemanager.horizondb.fluent.models; -import com.azure.core.annotation.Fluent; +import com.azure.core.annotation.Immutable; import com.azure.core.management.ProxyResource; import com.azure.core.management.SystemData; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import com.azure.resourcemanager.horizondb.models.HorizonDbFirewallRuleProperties; +import com.azure.resourcemanager.horizondb.models.DefaultParameterGroupProperties; import java.io.IOException; /** - * Represents the HorizonDB firewall rule. + * A default parameter group available in a specific region. It contains engine-defined parameters and excludes service + * and other non-engine entries. For each PostgreSQL version, the DefaultParameterGroups APIs return at most one default + * parameter group in a location. */ -@Fluent -public final class HorizonDbFirewallRuleInner extends ProxyResource { +@Immutable +public final class DefaultParameterGroupInner extends ProxyResource { /* * The resource-specific properties for this resource. */ - private HorizonDbFirewallRuleProperties properties; + private DefaultParameterGroupProperties properties; /* * Azure Resource Manager metadata containing createdBy and modifiedBy information. @@ -44,9 +46,9 @@ public final class HorizonDbFirewallRuleInner extends ProxyResource { private String id; /** - * Creates an instance of HorizonDbFirewallRuleInner class. + * Creates an instance of DefaultParameterGroupInner class. */ - public HorizonDbFirewallRuleInner() { + private DefaultParameterGroupInner() { } /** @@ -54,21 +56,10 @@ public HorizonDbFirewallRuleInner() { * * @return the properties value. */ - public HorizonDbFirewallRuleProperties properties() { + public DefaultParameterGroupProperties properties() { return this.properties; } - /** - * Set the properties property: The resource-specific properties for this resource. - * - * @param properties the properties value to set. - * @return the HorizonDbFirewallRuleInner object itself. - */ - public HorizonDbFirewallRuleInner withProperties(HorizonDbFirewallRuleProperties properties) { - this.properties = properties; - return this; - } - /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. * @@ -119,38 +110,38 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { } /** - * Reads an instance of HorizonDbFirewallRuleInner from the JsonReader. + * Reads an instance of DefaultParameterGroupInner from the JsonReader. * * @param jsonReader The JsonReader being read. - * @return An instance of HorizonDbFirewallRuleInner if the JsonReader was pointing to an instance of it, or null if + * @return An instance of DefaultParameterGroupInner 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 HorizonDbFirewallRuleInner. + * @throws IOException If an error occurs while reading the DefaultParameterGroupInner. */ - public static HorizonDbFirewallRuleInner fromJson(JsonReader jsonReader) throws IOException { + public static DefaultParameterGroupInner fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { - HorizonDbFirewallRuleInner deserializedHorizonDbFirewallRuleInner = new HorizonDbFirewallRuleInner(); + DefaultParameterGroupInner deserializedDefaultParameterGroupInner = new DefaultParameterGroupInner(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); if ("id".equals(fieldName)) { - deserializedHorizonDbFirewallRuleInner.id = reader.getString(); + deserializedDefaultParameterGroupInner.id = reader.getString(); } else if ("name".equals(fieldName)) { - deserializedHorizonDbFirewallRuleInner.name = reader.getString(); + deserializedDefaultParameterGroupInner.name = reader.getString(); } else if ("type".equals(fieldName)) { - deserializedHorizonDbFirewallRuleInner.type = reader.getString(); + deserializedDefaultParameterGroupInner.type = reader.getString(); } else if ("properties".equals(fieldName)) { - deserializedHorizonDbFirewallRuleInner.properties - = HorizonDbFirewallRuleProperties.fromJson(reader); + deserializedDefaultParameterGroupInner.properties + = DefaultParameterGroupProperties.fromJson(reader); } else if ("systemData".equals(fieldName)) { - deserializedHorizonDbFirewallRuleInner.systemData = SystemData.fromJson(reader); + deserializedDefaultParameterGroupInner.systemData = SystemData.fromJson(reader); } else { reader.skipChildren(); } } - return deserializedHorizonDbFirewallRuleInner; + return deserializedDefaultParameterGroupInner; }); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/EndpointInner.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/EndpointInner.java new file mode 100644 index 0000000000000..3ff99793f7be3 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/EndpointInner.java @@ -0,0 +1,146 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.horizondb.models.EndpointProperties; +import java.io.IOException; + +/** + * Represents a service-generated, service-managed HorizonDB endpoint. The Cluster-scoped Endpoint is created and + * deleted with its parent Cluster. A Pool-scoped Endpoint is created and deleted with the Pool identified by + * associatedResourceId. Endpoints cannot be created or deleted independently from their lifecycle owner. + */ +@Immutable +public final class EndpointInner extends ProxyResource { + /* + * The resource-specific properties for this resource. + */ + private EndpointProperties properties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of EndpointInner class. + */ + private EndpointInner() { + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public EndpointProperties properties() { + return this.properties; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of EndpointInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of EndpointInner 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 EndpointInner. + */ + public static EndpointInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + EndpointInner deserializedEndpointInner = new EndpointInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedEndpointInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedEndpointInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedEndpointInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedEndpointInner.properties = EndpointProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedEndpointInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedEndpointInner; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/HorizonDbReplicaInner.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/FirewallRuleInner.java similarity index 69% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/HorizonDbReplicaInner.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/FirewallRuleInner.java index fb9a21a9b826c..058d682c80982 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/HorizonDbReplicaInner.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/FirewallRuleInner.java @@ -10,18 +10,18 @@ import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import com.azure.resourcemanager.horizondb.models.HorizonDbReplicaProperties; +import com.azure.resourcemanager.horizondb.models.FirewallRuleProperties; import java.io.IOException; /** - * Represents the HorizonDB replica. + * Represents a customer-managed firewall rule for a HorizonDB pool. */ @Fluent -public final class HorizonDbReplicaInner extends ProxyResource { +public final class FirewallRuleInner extends ProxyResource { /* * The resource-specific properties for this resource. */ - private HorizonDbReplicaProperties properties; + private FirewallRuleProperties properties; /* * Azure Resource Manager metadata containing createdBy and modifiedBy information. @@ -44,9 +44,9 @@ public final class HorizonDbReplicaInner extends ProxyResource { private String id; /** - * Creates an instance of HorizonDbReplicaInner class. + * Creates an instance of FirewallRuleInner class. */ - public HorizonDbReplicaInner() { + public FirewallRuleInner() { } /** @@ -54,7 +54,7 @@ public HorizonDbReplicaInner() { * * @return the properties value. */ - public HorizonDbReplicaProperties properties() { + public FirewallRuleProperties properties() { return this.properties; } @@ -62,9 +62,9 @@ public HorizonDbReplicaProperties properties() { * Set the properties property: The resource-specific properties for this resource. * * @param properties the properties value to set. - * @return the HorizonDbReplicaInner object itself. + * @return the FirewallRuleInner object itself. */ - public HorizonDbReplicaInner withProperties(HorizonDbReplicaProperties properties) { + public FirewallRuleInner withProperties(FirewallRuleProperties properties) { this.properties = properties; return this; } @@ -119,37 +119,37 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { } /** - * Reads an instance of HorizonDbReplicaInner from the JsonReader. + * Reads an instance of FirewallRuleInner from the JsonReader. * * @param jsonReader The JsonReader being read. - * @return An instance of HorizonDbReplicaInner if the JsonReader was pointing to an instance of it, or null if it - * was pointing to JSON null. + * @return An instance of FirewallRuleInner 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 HorizonDbReplicaInner. + * @throws IOException If an error occurs while reading the FirewallRuleInner. */ - public static HorizonDbReplicaInner fromJson(JsonReader jsonReader) throws IOException { + public static FirewallRuleInner fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { - HorizonDbReplicaInner deserializedHorizonDbReplicaInner = new HorizonDbReplicaInner(); + FirewallRuleInner deserializedFirewallRuleInner = new FirewallRuleInner(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); if ("id".equals(fieldName)) { - deserializedHorizonDbReplicaInner.id = reader.getString(); + deserializedFirewallRuleInner.id = reader.getString(); } else if ("name".equals(fieldName)) { - deserializedHorizonDbReplicaInner.name = reader.getString(); + deserializedFirewallRuleInner.name = reader.getString(); } else if ("type".equals(fieldName)) { - deserializedHorizonDbReplicaInner.type = reader.getString(); + deserializedFirewallRuleInner.type = reader.getString(); } else if ("properties".equals(fieldName)) { - deserializedHorizonDbReplicaInner.properties = HorizonDbReplicaProperties.fromJson(reader); + deserializedFirewallRuleInner.properties = FirewallRuleProperties.fromJson(reader); } else if ("systemData".equals(fieldName)) { - deserializedHorizonDbReplicaInner.systemData = SystemData.fromJson(reader); + deserializedFirewallRuleInner.systemData = SystemData.fromJson(reader); } else { reader.skipChildren(); } } - return deserializedHorizonDbReplicaInner; + return deserializedFirewallRuleInner; }); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/HorizonDbParameterGroupConnectionPropertiesInner.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/HorizonDbParameterGroupConnectionPropertiesInner.java deleted file mode 100644 index 5823b9ad55166..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/HorizonDbParameterGroupConnectionPropertiesInner.java +++ /dev/null @@ -1,107 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.fluent.models; - -import com.azure.core.annotation.Immutable; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Connection information for HorizonDB parameter group. - */ -@Immutable -public final class HorizonDbParameterGroupConnectionPropertiesInner - implements JsonSerializable { - /* - * The name of the connected resource. - */ - private String name; - - /* - * The resource ID of the connected resource. - */ - private String id; - - /* - * The type of the resource. - */ - private String type; - - /** - * Creates an instance of HorizonDbParameterGroupConnectionPropertiesInner class. - */ - private HorizonDbParameterGroupConnectionPropertiesInner() { - } - - /** - * Get the name property: The name of the connected resource. - * - * @return the name value. - */ - public String name() { - return this.name; - } - - /** - * Get the id property: The resource ID of the connected resource. - * - * @return the id value. - */ - public String id() { - return this.id; - } - - /** - * Get the type property: The type of the resource. - * - * @return the type value. - */ - public String type() { - return this.type; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of HorizonDbParameterGroupConnectionPropertiesInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of HorizonDbParameterGroupConnectionPropertiesInner 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 HorizonDbParameterGroupConnectionPropertiesInner. - */ - public static HorizonDbParameterGroupConnectionPropertiesInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - HorizonDbParameterGroupConnectionPropertiesInner deserializedHorizonDbParameterGroupConnectionPropertiesInner - = new HorizonDbParameterGroupConnectionPropertiesInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("name".equals(fieldName)) { - deserializedHorizonDbParameterGroupConnectionPropertiesInner.name = reader.getString(); - } else if ("id".equals(fieldName)) { - deserializedHorizonDbParameterGroupConnectionPropertiesInner.id = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedHorizonDbParameterGroupConnectionPropertiesInner.type = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedHorizonDbParameterGroupConnectionPropertiesInner; - }); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/IdentityAssignmentInner.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/IdentityAssignmentInner.java new file mode 100644 index 0000000000000..1e0d949f96f9a --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/IdentityAssignmentInner.java @@ -0,0 +1,178 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureIdentityAssignmentProperties; +import java.io.IOException; + +/** + * A user-assigned managed identity authorized for a HorizonDB change data capture destination. + */ +@Fluent +public final class IdentityAssignmentInner extends ProxyResource { + /* + * The resource-specific properties for this resource. + */ + private ChangeDataCaptureIdentityAssignmentProperties properties; + + /* + * If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. + * Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity + * tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section + * 14.27) header fields. + */ + private String eTag; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of IdentityAssignmentInner class. + */ + public IdentityAssignmentInner() { + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public ChangeDataCaptureIdentityAssignmentProperties properties() { + return this.properties; + } + + /** + * Set the properties property: The resource-specific properties for this resource. + * + * @param properties the properties value to set. + * @return the IdentityAssignmentInner object itself. + */ + public IdentityAssignmentInner withProperties(ChangeDataCaptureIdentityAssignmentProperties properties) { + this.properties = properties; + return this; + } + + /** + * Get the eTag property: If eTag is provided in the response body, it may also be provided as a header per the + * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. + * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), + * and If-Range (section 14.27) header fields. + * + * @return the eTag value. + */ + public String eTag() { + return this.eTag; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of IdentityAssignmentInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of IdentityAssignmentInner 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 IdentityAssignmentInner. + */ + public static IdentityAssignmentInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + IdentityAssignmentInner deserializedIdentityAssignmentInner = new IdentityAssignmentInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedIdentityAssignmentInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedIdentityAssignmentInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedIdentityAssignmentInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedIdentityAssignmentInner.properties + = ChangeDataCaptureIdentityAssignmentProperties.fromJson(reader); + } else if ("eTag".equals(fieldName)) { + deserializedIdentityAssignmentInner.eTag = reader.getString(); + } else if ("systemData".equals(fieldName)) { + deserializedIdentityAssignmentInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedIdentityAssignmentInner; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/HorizonDbAdministratorInner.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/LogCaptureConfigurationInner.java similarity index 67% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/HorizonDbAdministratorInner.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/LogCaptureConfigurationInner.java index a5c4598688542..3ae0c37af9d54 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/HorizonDbAdministratorInner.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/LogCaptureConfigurationInner.java @@ -10,18 +10,18 @@ import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import com.azure.resourcemanager.horizondb.models.HorizonDbAdministratorProperties; +import com.azure.resourcemanager.horizondb.models.LogCaptureConfigurationProperties; import java.io.IOException; /** - * Represents an Entra ID administrator configured on a HorizonDB cluster. + * A predefined log capture configuration created by the service for a HorizonDB cluster. */ @Immutable -public final class HorizonDbAdministratorInner extends ProxyResource { +public final class LogCaptureConfigurationInner extends ProxyResource { /* * The resource-specific properties for this resource. */ - private HorizonDbAdministratorProperties properties; + private LogCaptureConfigurationProperties properties; /* * Azure Resource Manager metadata containing createdBy and modifiedBy information. @@ -44,9 +44,9 @@ public final class HorizonDbAdministratorInner extends ProxyResource { private String id; /** - * Creates an instance of HorizonDbAdministratorInner class. + * Creates an instance of LogCaptureConfigurationInner class. */ - private HorizonDbAdministratorInner() { + private LogCaptureConfigurationInner() { } /** @@ -54,7 +54,7 @@ private HorizonDbAdministratorInner() { * * @return the properties value. */ - public HorizonDbAdministratorProperties properties() { + public LogCaptureConfigurationProperties properties() { return this.properties; } @@ -108,38 +108,38 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { } /** - * Reads an instance of HorizonDbAdministratorInner from the JsonReader. + * Reads an instance of LogCaptureConfigurationInner from the JsonReader. * * @param jsonReader The JsonReader being read. - * @return An instance of HorizonDbAdministratorInner if the JsonReader was pointing to an instance of it, or null + * @return An instance of LogCaptureConfigurationInner 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 HorizonDbAdministratorInner. + * @throws IOException If an error occurs while reading the LogCaptureConfigurationInner. */ - public static HorizonDbAdministratorInner fromJson(JsonReader jsonReader) throws IOException { + public static LogCaptureConfigurationInner fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { - HorizonDbAdministratorInner deserializedHorizonDbAdministratorInner = new HorizonDbAdministratorInner(); + LogCaptureConfigurationInner deserializedLogCaptureConfigurationInner = new LogCaptureConfigurationInner(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); if ("id".equals(fieldName)) { - deserializedHorizonDbAdministratorInner.id = reader.getString(); + deserializedLogCaptureConfigurationInner.id = reader.getString(); } else if ("name".equals(fieldName)) { - deserializedHorizonDbAdministratorInner.name = reader.getString(); + deserializedLogCaptureConfigurationInner.name = reader.getString(); } else if ("type".equals(fieldName)) { - deserializedHorizonDbAdministratorInner.type = reader.getString(); + deserializedLogCaptureConfigurationInner.type = reader.getString(); } else if ("properties".equals(fieldName)) { - deserializedHorizonDbAdministratorInner.properties - = HorizonDbAdministratorProperties.fromJson(reader); + deserializedLogCaptureConfigurationInner.properties + = LogCaptureConfigurationProperties.fromJson(reader); } else if ("systemData".equals(fieldName)) { - deserializedHorizonDbAdministratorInner.systemData = SystemData.fromJson(reader); + deserializedLogCaptureConfigurationInner.systemData = SystemData.fromJson(reader); } else { reader.skipChildren(); } } - return deserializedHorizonDbAdministratorInner; + return deserializedLogCaptureConfigurationInner; }); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/LogFileDownloadUrlInner.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/LogFileDownloadUrlInner.java new file mode 100644 index 0000000000000..2ef12620bc524 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/LogFileDownloadUrlInner.java @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.CoreUtils; +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.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; + +/** + * A short-lived signed URL for downloading a captured log file. + */ +@Immutable +public final class LogFileDownloadUrlInner implements JsonSerializable { + /* + * A short-lived signed URL from which the original log file can be downloaded. + */ + private String downloadUri; + + /* + * The date and time when the signed download URL expires, in UTC. + */ + private OffsetDateTime expiresAtUtc; + + /** + * Creates an instance of LogFileDownloadUrlInner class. + */ + private LogFileDownloadUrlInner() { + } + + /** + * Get the downloadUri property: A short-lived signed URL from which the original log file can be downloaded. + * + * @return the downloadUri value. + */ + public String downloadUri() { + return this.downloadUri; + } + + /** + * Get the expiresAtUtc property: The date and time when the signed download URL expires, in UTC. + * + * @return the expiresAtUtc value. + */ + public OffsetDateTime expiresAtUtc() { + return this.expiresAtUtc; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("downloadUri", this.downloadUri); + jsonWriter.writeStringField("expiresAtUtc", + this.expiresAtUtc == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.expiresAtUtc)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of LogFileDownloadUrlInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of LogFileDownloadUrlInner 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 LogFileDownloadUrlInner. + */ + public static LogFileDownloadUrlInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + LogFileDownloadUrlInner deserializedLogFileDownloadUrlInner = new LogFileDownloadUrlInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("downloadUri".equals(fieldName)) { + deserializedLogFileDownloadUrlInner.downloadUri = reader.getString(); + } else if ("expiresAtUtc".equals(fieldName)) { + deserializedLogFileDownloadUrlInner.expiresAtUtc = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else { + reader.skipChildren(); + } + } + + return deserializedLogFileDownloadUrlInner; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/LogFileInner.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/LogFileInner.java new file mode 100644 index 0000000000000..03c8fe1dcc33c --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/LogFileInner.java @@ -0,0 +1,144 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.horizondb.models.LogFileProperties; +import java.io.IOException; + +/** + * A service-generated log file captured for a HorizonDB cluster. + */ +@Immutable +public final class LogFileInner extends ProxyResource { + /* + * The resource-specific properties for this resource. + */ + private LogFileProperties properties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of LogFileInner class. + */ + private LogFileInner() { + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public LogFileProperties properties() { + return this.properties; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of LogFileInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of LogFileInner 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 LogFileInner. + */ + public static LogFileInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + LogFileInner deserializedLogFileInner = new LogFileInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedLogFileInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedLogFileInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedLogFileInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedLogFileInner.properties = LogFileProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedLogFileInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedLogFileInner; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/MaintenanceEventActionResponseInner.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/MaintenanceEventActionResponseInner.java new file mode 100644 index 0000000000000..04e627eb8d725 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/MaintenanceEventActionResponseInner.java @@ -0,0 +1,198 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.horizondb.models.MaintenanceEventStatus; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; + +/** + * The response from a maintenance event reschedule or apply-now action. + */ +@Immutable +public final class MaintenanceEventActionResponseInner + implements JsonSerializable { + /* + * The maintenance event identifier. + */ + private String maintenanceEventId; + + /* + * The full Azure resource ID of the HorizonDB pool. + */ + private String poolResourceId; + + /* + * The status of the maintenance event. + */ + private MaintenanceEventStatus status; + + /* + * The planned start time of the maintenance event in UTC. + */ + private OffsetDateTime plannedStartTimeUtc; + + /* + * The planned end time of the maintenance event in UTC. + */ + private OffsetDateTime plannedEndTimeUtc; + + /* + * Indicates whether the maintenance event was requested to be applied immediately. The value is true for apply-now + * and false for reschedule. + */ + private Boolean appliedNow; + + /* + * The time when this maintenance event record was last updated, in UTC. + */ + private OffsetDateTime lastUpdatedTimeUtc; + + /** + * Creates an instance of MaintenanceEventActionResponseInner class. + */ + private MaintenanceEventActionResponseInner() { + } + + /** + * Get the maintenanceEventId property: The maintenance event identifier. + * + * @return the maintenanceEventId value. + */ + public String maintenanceEventId() { + return this.maintenanceEventId; + } + + /** + * Get the poolResourceId property: The full Azure resource ID of the HorizonDB pool. + * + * @return the poolResourceId value. + */ + public String poolResourceId() { + return this.poolResourceId; + } + + /** + * Get the status property: The status of the maintenance event. + * + * @return the status value. + */ + public MaintenanceEventStatus status() { + return this.status; + } + + /** + * Get the plannedStartTimeUtc property: The planned start time of the maintenance event in UTC. + * + * @return the plannedStartTimeUtc value. + */ + public OffsetDateTime plannedStartTimeUtc() { + return this.plannedStartTimeUtc; + } + + /** + * Get the plannedEndTimeUtc property: The planned end time of the maintenance event in UTC. + * + * @return the plannedEndTimeUtc value. + */ + public OffsetDateTime plannedEndTimeUtc() { + return this.plannedEndTimeUtc; + } + + /** + * Get the appliedNow property: Indicates whether the maintenance event was requested to be applied immediately. The + * value is true for apply-now and false for reschedule. + * + * @return the appliedNow value. + */ + public Boolean appliedNow() { + return this.appliedNow; + } + + /** + * Get the lastUpdatedTimeUtc property: The time when this maintenance event record was last updated, in UTC. + * + * @return the lastUpdatedTimeUtc value. + */ + public OffsetDateTime lastUpdatedTimeUtc() { + return this.lastUpdatedTimeUtc; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("maintenanceEventId", this.maintenanceEventId); + jsonWriter.writeStringField("poolResourceId", this.poolResourceId); + jsonWriter.writeStringField("status", this.status == null ? null : this.status.toString()); + jsonWriter.writeStringField("plannedStartTimeUtc", + this.plannedStartTimeUtc == null + ? null + : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.plannedStartTimeUtc)); + jsonWriter.writeStringField("plannedEndTimeUtc", + this.plannedEndTimeUtc == null + ? null + : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.plannedEndTimeUtc)); + jsonWriter.writeBooleanField("appliedNow", this.appliedNow); + jsonWriter.writeStringField("lastUpdatedTimeUtc", + this.lastUpdatedTimeUtc == null + ? null + : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.lastUpdatedTimeUtc)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MaintenanceEventActionResponseInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MaintenanceEventActionResponseInner 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 MaintenanceEventActionResponseInner. + */ + public static MaintenanceEventActionResponseInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MaintenanceEventActionResponseInner deserializedMaintenanceEventActionResponseInner + = new MaintenanceEventActionResponseInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("maintenanceEventId".equals(fieldName)) { + deserializedMaintenanceEventActionResponseInner.maintenanceEventId = reader.getString(); + } else if ("poolResourceId".equals(fieldName)) { + deserializedMaintenanceEventActionResponseInner.poolResourceId = reader.getString(); + } else if ("status".equals(fieldName)) { + deserializedMaintenanceEventActionResponseInner.status + = MaintenanceEventStatus.fromString(reader.getString()); + } else if ("plannedStartTimeUtc".equals(fieldName)) { + deserializedMaintenanceEventActionResponseInner.plannedStartTimeUtc = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("plannedEndTimeUtc".equals(fieldName)) { + deserializedMaintenanceEventActionResponseInner.plannedEndTimeUtc = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("appliedNow".equals(fieldName)) { + deserializedMaintenanceEventActionResponseInner.appliedNow + = reader.getNullable(JsonReader::getBoolean); + } else if ("lastUpdatedTimeUtc".equals(fieldName)) { + deserializedMaintenanceEventActionResponseInner.lastUpdatedTimeUtc = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else { + reader.skipChildren(); + } + } + + return deserializedMaintenanceEventActionResponseInner; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/MaintenanceEventInner.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/MaintenanceEventInner.java new file mode 100644 index 0000000000000..acfbae193d262 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/MaintenanceEventInner.java @@ -0,0 +1,144 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.horizondb.models.MaintenanceEventProperties; +import java.io.IOException; + +/** + * Represents a maintenance event for a HorizonDB pool. + */ +@Immutable +public final class MaintenanceEventInner extends ProxyResource { + /* + * The resource-specific properties for this resource. + */ + private MaintenanceEventProperties properties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of MaintenanceEventInner class. + */ + private MaintenanceEventInner() { + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public MaintenanceEventProperties properties() { + return this.properties; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MaintenanceEventInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MaintenanceEventInner 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 MaintenanceEventInner. + */ + public static MaintenanceEventInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MaintenanceEventInner deserializedMaintenanceEventInner = new MaintenanceEventInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedMaintenanceEventInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedMaintenanceEventInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedMaintenanceEventInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedMaintenanceEventInner.properties = MaintenanceEventProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedMaintenanceEventInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedMaintenanceEventInner; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/MicrosoftEntraAdministratorInner.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/MicrosoftEntraAdministratorInner.java new file mode 100644 index 0000000000000..eac240ba1fc26 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/MicrosoftEntraAdministratorInner.java @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAdministratorProperties; +import java.io.IOException; + +/** + * Represents a PostgreSQL role that is a member of the azure_pg_admin role and is mapped to a Microsoft Entra + * principal. + */ +@Immutable +public final class MicrosoftEntraAdministratorInner extends ProxyResource { + /* + * The resource-specific properties for this resource. + */ + private MicrosoftEntraAdministratorProperties properties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of MicrosoftEntraAdministratorInner class. + */ + private MicrosoftEntraAdministratorInner() { + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public MicrosoftEntraAdministratorProperties properties() { + return this.properties; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MicrosoftEntraAdministratorInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MicrosoftEntraAdministratorInner 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 MicrosoftEntraAdministratorInner. + */ + public static MicrosoftEntraAdministratorInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MicrosoftEntraAdministratorInner deserializedMicrosoftEntraAdministratorInner + = new MicrosoftEntraAdministratorInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedMicrosoftEntraAdministratorInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedMicrosoftEntraAdministratorInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedMicrosoftEntraAdministratorInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedMicrosoftEntraAdministratorInner.properties + = MicrosoftEntraAdministratorProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedMicrosoftEntraAdministratorInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedMicrosoftEntraAdministratorInner; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/MicrosoftEntraAuthenticationInner.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/MicrosoftEntraAuthenticationInner.java new file mode 100644 index 0000000000000..23c7910d015f6 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/MicrosoftEntraAuthenticationInner.java @@ -0,0 +1,157 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAuthenticationProperties; +import java.io.IOException; + +/** + * The service-created Microsoft Entra authentication method for a HorizonDB cluster. + */ +@Fluent +public final class MicrosoftEntraAuthenticationInner extends ProxyResource { + /* + * The resource-specific properties for this resource. + */ + private MicrosoftEntraAuthenticationProperties properties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of MicrosoftEntraAuthenticationInner class. + */ + public MicrosoftEntraAuthenticationInner() { + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public MicrosoftEntraAuthenticationProperties properties() { + return this.properties; + } + + /** + * Set the properties property: The resource-specific properties for this resource. + * + * @param properties the properties value to set. + * @return the MicrosoftEntraAuthenticationInner object itself. + */ + public MicrosoftEntraAuthenticationInner withProperties(MicrosoftEntraAuthenticationProperties properties) { + this.properties = properties; + return this; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MicrosoftEntraAuthenticationInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MicrosoftEntraAuthenticationInner 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 MicrosoftEntraAuthenticationInner. + */ + public static MicrosoftEntraAuthenticationInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MicrosoftEntraAuthenticationInner deserializedMicrosoftEntraAuthenticationInner + = new MicrosoftEntraAuthenticationInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedMicrosoftEntraAuthenticationInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedMicrosoftEntraAuthenticationInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedMicrosoftEntraAuthenticationInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedMicrosoftEntraAuthenticationInner.properties + = MicrosoftEntraAuthenticationProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedMicrosoftEntraAuthenticationInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedMicrosoftEntraAuthenticationInner; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/NodeInner.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/NodeInner.java new file mode 100644 index 0000000000000..b034705c81023 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/NodeInner.java @@ -0,0 +1,144 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.horizondb.models.NodeProperties; +import java.io.IOException; + +/** + * A service-managed node allocated to a HorizonDB pool. + */ +@Immutable +public final class NodeInner extends ProxyResource { + /* + * The resource-specific properties for this resource. + */ + private NodeProperties properties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of NodeInner class. + */ + private NodeInner() { + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public NodeProperties properties() { + return this.properties; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of NodeInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of NodeInner 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 NodeInner. + */ + public static NodeInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + NodeInner deserializedNodeInner = new NodeInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedNodeInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedNodeInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedNodeInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedNodeInner.properties = NodeProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedNodeInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedNodeInner; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/ParameterGroupConnectionPropertiesInner.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/ParameterGroupConnectionPropertiesInner.java new file mode 100644 index 0000000000000..872f490cb79d0 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/ParameterGroupConnectionPropertiesInner.java @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Connection information for HorizonDB parameter group. + */ +@Immutable +public final class ParameterGroupConnectionPropertiesInner + implements JsonSerializable { + /* + * The Azure resource ID of the connected HorizonDB pool. + */ + private String poolResourceId; + + /** + * Creates an instance of ParameterGroupConnectionPropertiesInner class. + */ + private ParameterGroupConnectionPropertiesInner() { + } + + /** + * Get the poolResourceId property: The Azure resource ID of the connected HorizonDB pool. + * + * @return the poolResourceId value. + */ + public String poolResourceId() { + return this.poolResourceId; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ParameterGroupConnectionPropertiesInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ParameterGroupConnectionPropertiesInner 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 ParameterGroupConnectionPropertiesInner. + */ + public static ParameterGroupConnectionPropertiesInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ParameterGroupConnectionPropertiesInner deserializedParameterGroupConnectionPropertiesInner + = new ParameterGroupConnectionPropertiesInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("poolResourceId".equals(fieldName)) { + deserializedParameterGroupConnectionPropertiesInner.poolResourceId = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedParameterGroupConnectionPropertiesInner; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/HorizonDbParameterGroupInner.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/ParameterGroupInner.java similarity index 67% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/HorizonDbParameterGroupInner.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/ParameterGroupInner.java index 8dd6b0cdc2053..6bd6a9971dafc 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/HorizonDbParameterGroupInner.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/ParameterGroupInner.java @@ -10,7 +10,7 @@ import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import com.azure.resourcemanager.horizondb.models.HorizonDbParameterGroupProperties; +import com.azure.resourcemanager.horizondb.models.ParameterGroupProperties; import java.io.IOException; import java.util.Map; @@ -18,11 +18,11 @@ * Represents the HorizonDB parameter group. */ @Fluent -public final class HorizonDbParameterGroupInner extends Resource { +public final class ParameterGroupInner extends Resource { /* * The resource-specific properties for this resource. */ - private HorizonDbParameterGroupProperties properties; + private ParameterGroupProperties properties; /* * Azure Resource Manager metadata containing createdBy and modifiedBy information. @@ -45,9 +45,9 @@ public final class HorizonDbParameterGroupInner extends Resource { private String id; /** - * Creates an instance of HorizonDbParameterGroupInner class. + * Creates an instance of ParameterGroupInner class. */ - public HorizonDbParameterGroupInner() { + public ParameterGroupInner() { } /** @@ -55,7 +55,7 @@ public HorizonDbParameterGroupInner() { * * @return the properties value. */ - public HorizonDbParameterGroupProperties properties() { + public ParameterGroupProperties properties() { return this.properties; } @@ -63,9 +63,9 @@ public HorizonDbParameterGroupProperties properties() { * Set the properties property: The resource-specific properties for this resource. * * @param properties the properties value to set. - * @return the HorizonDbParameterGroupInner object itself. + * @return the ParameterGroupInner object itself. */ - public HorizonDbParameterGroupInner withProperties(HorizonDbParameterGroupProperties properties) { + public ParameterGroupInner withProperties(ParameterGroupProperties properties) { this.properties = properties; return this; } @@ -113,7 +113,7 @@ public String id() { * {@inheritDoc} */ @Override - public HorizonDbParameterGroupInner withLocation(String location) { + public ParameterGroupInner withLocation(String location) { super.withLocation(location); return this; } @@ -122,7 +122,7 @@ public HorizonDbParameterGroupInner withLocation(String location) { * {@inheritDoc} */ @Override - public HorizonDbParameterGroupInner withTags(Map tags) { + public ParameterGroupInner withTags(Map tags) { super.withTags(tags); return this; } @@ -140,43 +140,42 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { } /** - * Reads an instance of HorizonDbParameterGroupInner from the JsonReader. + * Reads an instance of ParameterGroupInner from the JsonReader. * * @param jsonReader The JsonReader being read. - * @return An instance of HorizonDbParameterGroupInner if the JsonReader was pointing to an instance of it, or null - * if it was pointing to JSON null. + * @return An instance of ParameterGroupInner 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 HorizonDbParameterGroupInner. + * @throws IOException If an error occurs while reading the ParameterGroupInner. */ - public static HorizonDbParameterGroupInner fromJson(JsonReader jsonReader) throws IOException { + public static ParameterGroupInner fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { - HorizonDbParameterGroupInner deserializedHorizonDbParameterGroupInner = new HorizonDbParameterGroupInner(); + ParameterGroupInner deserializedParameterGroupInner = new ParameterGroupInner(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); if ("id".equals(fieldName)) { - deserializedHorizonDbParameterGroupInner.id = reader.getString(); + deserializedParameterGroupInner.id = reader.getString(); } else if ("name".equals(fieldName)) { - deserializedHorizonDbParameterGroupInner.name = reader.getString(); + deserializedParameterGroupInner.name = reader.getString(); } else if ("type".equals(fieldName)) { - deserializedHorizonDbParameterGroupInner.type = reader.getString(); + deserializedParameterGroupInner.type = reader.getString(); } else if ("location".equals(fieldName)) { - deserializedHorizonDbParameterGroupInner.withLocation(reader.getString()); + deserializedParameterGroupInner.withLocation(reader.getString()); } else if ("tags".equals(fieldName)) { Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedHorizonDbParameterGroupInner.withTags(tags); + deserializedParameterGroupInner.withTags(tags); } else if ("properties".equals(fieldName)) { - deserializedHorizonDbParameterGroupInner.properties - = HorizonDbParameterGroupProperties.fromJson(reader); + deserializedParameterGroupInner.properties = ParameterGroupProperties.fromJson(reader); } else if ("systemData".equals(fieldName)) { - deserializedHorizonDbParameterGroupInner.systemData = SystemData.fromJson(reader); + deserializedParameterGroupInner.systemData = SystemData.fromJson(reader); } else { reader.skipChildren(); } } - return deserializedHorizonDbParameterGroupInner; + return deserializedParameterGroupInner; }); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/PasswordAuthenticationInner.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/PasswordAuthenticationInner.java new file mode 100644 index 0000000000000..8e8936399ad49 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/PasswordAuthenticationInner.java @@ -0,0 +1,158 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.fluent.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.horizondb.models.PasswordAuthenticationProperties; +import java.io.IOException; + +/** + * The service-created PostgreSQL username-and-password authentication method for a HorizonDB cluster. This resource + * configures the authentication mechanism, including its enabled state and administrator login credentials; it is not a + * password-only resource. + */ +@Fluent +public final class PasswordAuthenticationInner extends ProxyResource { + /* + * The resource-specific properties for this resource. + */ + private PasswordAuthenticationProperties properties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of PasswordAuthenticationInner class. + */ + public PasswordAuthenticationInner() { + } + + /** + * Get the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + public PasswordAuthenticationProperties properties() { + return this.properties; + } + + /** + * Set the properties property: The resource-specific properties for this resource. + * + * @param properties the properties value to set. + * @return the PasswordAuthenticationInner object itself. + */ + public PasswordAuthenticationInner withProperties(PasswordAuthenticationProperties properties) { + this.properties = properties; + return this; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PasswordAuthenticationInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PasswordAuthenticationInner 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 PasswordAuthenticationInner. + */ + public static PasswordAuthenticationInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PasswordAuthenticationInner deserializedPasswordAuthenticationInner = new PasswordAuthenticationInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedPasswordAuthenticationInner.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedPasswordAuthenticationInner.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedPasswordAuthenticationInner.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedPasswordAuthenticationInner.properties + = PasswordAuthenticationProperties.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedPasswordAuthenticationInner.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedPasswordAuthenticationInner; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/HorizonDbPoolInner.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/PoolInner.java similarity index 67% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/HorizonDbPoolInner.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/PoolInner.java index b45cc6245712a..4b1c1d80f1dc2 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/HorizonDbPoolInner.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/PoolInner.java @@ -4,25 +4,25 @@ package com.azure.resourcemanager.horizondb.fluent.models; -import com.azure.core.annotation.Immutable; +import com.azure.core.annotation.Fluent; import com.azure.core.management.ProxyResource; import com.azure.core.management.SystemData; import com.azure.json.JsonReader; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import com.azure.resourcemanager.horizondb.models.HorizonDbPoolProperties; +import com.azure.resourcemanager.horizondb.models.PoolProperties; import java.io.IOException; import java.util.Map; /** * Represents the HorizonDB pool. */ -@Immutable -public final class HorizonDbPoolInner extends ProxyResource { +@Fluent +public final class PoolInner extends ProxyResource { /* * The resource-specific properties for this resource. */ - private HorizonDbPoolProperties properties; + private PoolProperties properties; /* * Resource tags. @@ -50,9 +50,9 @@ public final class HorizonDbPoolInner extends ProxyResource { private String id; /** - * Creates an instance of HorizonDbPoolInner class. + * Creates an instance of PoolInner class. */ - private HorizonDbPoolInner() { + public PoolInner() { } /** @@ -60,10 +60,21 @@ private HorizonDbPoolInner() { * * @return the properties value. */ - public HorizonDbPoolProperties properties() { + public PoolProperties properties() { return this.properties; } + /** + * Set the properties property: The resource-specific properties for this resource. + * + * @param properties the properties value to set. + * @return the PoolInner object itself. + */ + public PoolInner withProperties(PoolProperties properties) { + this.properties = properties; + return this; + } + /** * Get the tags property: Resource tags. * @@ -73,6 +84,17 @@ public Map tags() { return this.tags; } + /** + * Set the tags property: Resource tags. + * + * @param tags the tags value to set. + * @return the PoolInner object itself. + */ + public PoolInner withTags(Map tags) { + this.tags = tags; + return this; + } + /** * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. * @@ -124,40 +146,40 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { } /** - * Reads an instance of HorizonDbPoolInner from the JsonReader. + * Reads an instance of PoolInner from the JsonReader. * * @param jsonReader The JsonReader being read. - * @return An instance of HorizonDbPoolInner if the JsonReader was pointing to an instance of it, or null if it was - * pointing to JSON null. + * @return An instance of PoolInner 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 HorizonDbPoolInner. + * @throws IOException If an error occurs while reading the PoolInner. */ - public static HorizonDbPoolInner fromJson(JsonReader jsonReader) throws IOException { + public static PoolInner fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { - HorizonDbPoolInner deserializedHorizonDbPoolInner = new HorizonDbPoolInner(); + PoolInner deserializedPoolInner = new PoolInner(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); if ("id".equals(fieldName)) { - deserializedHorizonDbPoolInner.id = reader.getString(); + deserializedPoolInner.id = reader.getString(); } else if ("name".equals(fieldName)) { - deserializedHorizonDbPoolInner.name = reader.getString(); + deserializedPoolInner.name = reader.getString(); } else if ("type".equals(fieldName)) { - deserializedHorizonDbPoolInner.type = reader.getString(); + deserializedPoolInner.type = reader.getString(); } else if ("properties".equals(fieldName)) { - deserializedHorizonDbPoolInner.properties = HorizonDbPoolProperties.fromJson(reader); + deserializedPoolInner.properties = PoolProperties.fromJson(reader); } else if ("tags".equals(fieldName)) { Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedHorizonDbPoolInner.tags = tags; + deserializedPoolInner.tags = tags; } else if ("systemData".equals(fieldName)) { - deserializedHorizonDbPoolInner.systemData = SystemData.fromJson(reader); + deserializedPoolInner.systemData = SystemData.fromJson(reader); } else { reader.skipChildren(); } } - return deserializedHorizonDbPoolInner; + return deserializedPoolInner; }); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/HorizonDbPrivateLinkResourceInner.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/PrivateLinkResourceInner.java similarity index 71% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/HorizonDbPrivateLinkResourceInner.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/PrivateLinkResourceInner.java index f3ac562b1a574..331a1aed14bb3 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/HorizonDbPrivateLinkResourceInner.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/PrivateLinkResourceInner.java @@ -17,7 +17,7 @@ * Represents the HorizonDB private link resource. */ @Immutable -public final class HorizonDbPrivateLinkResourceInner extends ProxyResource { +public final class PrivateLinkResourceInner extends ProxyResource { /* * The resource-specific properties for this resource. */ @@ -44,9 +44,9 @@ public final class HorizonDbPrivateLinkResourceInner extends ProxyResource { private String id; /** - * Creates an instance of HorizonDbPrivateLinkResourceInner class. + * Creates an instance of PrivateLinkResourceInner class. */ - private HorizonDbPrivateLinkResourceInner() { + private PrivateLinkResourceInner() { } /** @@ -108,39 +108,37 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { } /** - * Reads an instance of HorizonDbPrivateLinkResourceInner from the JsonReader. + * Reads an instance of PrivateLinkResourceInner from the JsonReader. * * @param jsonReader The JsonReader being read. - * @return An instance of HorizonDbPrivateLinkResourceInner if the JsonReader was pointing to an instance of it, or - * null if it was pointing to JSON null. + * @return An instance of PrivateLinkResourceInner 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 HorizonDbPrivateLinkResourceInner. + * @throws IOException If an error occurs while reading the PrivateLinkResourceInner. */ - public static HorizonDbPrivateLinkResourceInner fromJson(JsonReader jsonReader) throws IOException { + public static PrivateLinkResourceInner fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { - HorizonDbPrivateLinkResourceInner deserializedHorizonDbPrivateLinkResourceInner - = new HorizonDbPrivateLinkResourceInner(); + PrivateLinkResourceInner deserializedPrivateLinkResourceInner = new PrivateLinkResourceInner(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); if ("id".equals(fieldName)) { - deserializedHorizonDbPrivateLinkResourceInner.id = reader.getString(); + deserializedPrivateLinkResourceInner.id = reader.getString(); } else if ("name".equals(fieldName)) { - deserializedHorizonDbPrivateLinkResourceInner.name = reader.getString(); + deserializedPrivateLinkResourceInner.name = reader.getString(); } else if ("type".equals(fieldName)) { - deserializedHorizonDbPrivateLinkResourceInner.type = reader.getString(); + deserializedPrivateLinkResourceInner.type = reader.getString(); } else if ("properties".equals(fieldName)) { - deserializedHorizonDbPrivateLinkResourceInner.properties - = PrivateLinkResourceProperties.fromJson(reader); + deserializedPrivateLinkResourceInner.properties = PrivateLinkResourceProperties.fromJson(reader); } else if ("systemData".equals(fieldName)) { - deserializedHorizonDbPrivateLinkResourceInner.systemData = SystemData.fromJson(reader); + deserializedPrivateLinkResourceInner.systemData = SystemData.fromJson(reader); } else { reader.skipChildren(); } } - return deserializedHorizonDbPrivateLinkResourceInner; + return deserializedPrivateLinkResourceInner; }); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/package-info.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/package-info.java index 6f099e72bcfd8..ce83752f0c2f3 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/package-info.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/models/package-info.java @@ -4,6 +4,6 @@ /** * Package containing the inner data models for HorizonDb. - * Azure Resource Provider API for managing HorizonDB clusters, pools, replicas, and firewall rules. + * Azure Resource Provider API for managing HorizonDB clusters, pools, endpoints, nodes, and firewall rules. */ package com.azure.resourcemanager.horizondb.fluent.models; diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/package-info.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/package-info.java index 4fb9cb5774bb7..c4fca367bafca 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/package-info.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/fluent/package-info.java @@ -4,6 +4,6 @@ /** * Package containing the service clients for HorizonDb. - * Azure Resource Provider API for managing HorizonDB clusters, pools, replicas, and firewall rules. + * Azure Resource Provider API for managing HorizonDB clusters, pools, endpoints, nodes, and firewall rules. */ package com.azure.resourcemanager.horizondb.fluent; diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ActivateChangeDataCaptureIdentityResultImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ActivateChangeDataCaptureIdentityResultImpl.java new file mode 100644 index 0000000000000..5dda3b937d44a --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ActivateChangeDataCaptureIdentityResultImpl.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.horizondb.implementation; + +import com.azure.resourcemanager.horizondb.fluent.models.ActivateChangeDataCaptureIdentityResultInner; +import com.azure.resourcemanager.horizondb.models.ActivateChangeDataCaptureIdentityResult; + +public final class ActivateChangeDataCaptureIdentityResultImpl implements ActivateChangeDataCaptureIdentityResult { + private ActivateChangeDataCaptureIdentityResultInner innerObject; + + private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; + + ActivateChangeDataCaptureIdentityResultImpl(ActivateChangeDataCaptureIdentityResultInner innerObject, + com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String status() { + return this.innerModel().status(); + } + + public String targetIdentityAssignmentResourceId() { + return this.innerModel().targetIdentityAssignmentResourceId(); + } + + public String previousIdentityAssignmentResourceId() { + return this.innerModel().previousIdentityAssignmentResourceId(); + } + + public ActivateChangeDataCaptureIdentityResultInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbParameterGroupConnectionPropertiesImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/AuthenticationImpl.java similarity index 56% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbParameterGroupConnectionPropertiesImpl.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/AuthenticationImpl.java index 8d7c1f847b25a..8fd1273522414 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbParameterGroupConnectionPropertiesImpl.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/AuthenticationImpl.java @@ -4,34 +4,43 @@ package com.azure.resourcemanager.horizondb.implementation; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbParameterGroupConnectionPropertiesInner; -import com.azure.resourcemanager.horizondb.models.HorizonDbParameterGroupConnectionProperties; +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.horizondb.fluent.models.AuthenticationInner; +import com.azure.resourcemanager.horizondb.models.Authentication; +import com.azure.resourcemanager.horizondb.models.AuthenticationProperties; -public final class HorizonDbParameterGroupConnectionPropertiesImpl - implements HorizonDbParameterGroupConnectionProperties { - private HorizonDbParameterGroupConnectionPropertiesInner innerObject; +public final class AuthenticationImpl implements Authentication { + private AuthenticationInner innerObject; private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; - HorizonDbParameterGroupConnectionPropertiesImpl(HorizonDbParameterGroupConnectionPropertiesInner innerObject, + AuthenticationImpl(AuthenticationInner innerObject, com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; } - public String name() { - return this.innerModel().name(); - } - public String id() { return this.innerModel().id(); } + public String name() { + return this.innerModel().name(); + } + public String type() { return this.innerModel().type(); } - public HorizonDbParameterGroupConnectionPropertiesInner innerModel() { + public AuthenticationProperties properties() { + return this.innerModel().properties(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public AuthenticationInner innerModel() { return this.innerObject; } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/AuthenticationsClientImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/AuthenticationsClientImpl.java new file mode 100644 index 0000000000000..3df1c0387f9e2 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/AuthenticationsClientImpl.java @@ -0,0 +1,267 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.resourcemanager.horizondb.fluent.AuthenticationsClient; +import com.azure.resourcemanager.horizondb.fluent.models.AuthenticationInner; +import com.azure.resourcemanager.horizondb.implementation.models.AuthenticationListResult; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in AuthenticationsClient. + */ +public final class AuthenticationsClientImpl implements AuthenticationsClient { + /** + * The proxy service used to perform REST calls. + */ + private final AuthenticationsService service; + + /** + * The service client containing this operation class. + */ + private final HorizonDbManagementClientImpl client; + + /** + * Initializes an instance of AuthenticationsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + AuthenticationsClientImpl(HorizonDbManagementClientImpl client) { + this.service + = RestProxy.create(AuthenticationsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for HorizonDbManagementClientAuthentications to be used by the proxy + * service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "HorizonDbManagementClientAuthentications") + public interface AuthenticationsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/authentications") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/authentications") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); + } + + /** + * Lists the two service-created authentication configurations for the cluster: passwordMethod and microsoftEntra. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Authentication list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, String clusterName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Lists the two service-created authentication configurations for the cluster: passwordMethod and microsoftEntra. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Authentication list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String clusterName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, clusterName), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Lists the two service-created authentication configurations for the cluster: passwordMethod and microsoftEntra. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Authentication list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, String clusterName) { + final String accept = "application/json"; + Response res + = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, clusterName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Lists the two service-created authentication configurations for the cluster: passwordMethod and microsoftEntra. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Authentication list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, String clusterName, + Context context) { + final String accept = "application/json"; + Response res + = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, clusterName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Lists the two service-created authentication configurations for the cluster: passwordMethod and microsoftEntra. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Authentication list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String clusterName) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, clusterName), + nextLink -> listNextSinglePage(nextLink)); + } + + /** + * Lists the two service-created authentication configurations for the cluster: passwordMethod and microsoftEntra. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Authentication list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String clusterName, Context context) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, clusterName, context), + nextLink -> listNextSinglePage(nextLink, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a Authentication list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a Authentication list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a Authentication list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/AuthenticationsImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/AuthenticationsImpl.java new file mode 100644 index 0000000000000..26ce3a35be656 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/AuthenticationsImpl.java @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.horizondb.fluent.AuthenticationsClient; +import com.azure.resourcemanager.horizondb.fluent.models.AuthenticationInner; +import com.azure.resourcemanager.horizondb.models.Authentication; +import com.azure.resourcemanager.horizondb.models.Authentications; + +public final class AuthenticationsImpl implements Authentications { + private static final ClientLogger LOGGER = new ClientLogger(AuthenticationsImpl.class); + + private final AuthenticationsClient innerClient; + + private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; + + public AuthenticationsImpl(AuthenticationsClient innerClient, + com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public PagedIterable list(String resourceGroupName, String clusterName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, clusterName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new AuthenticationImpl(inner1, this.manager())); + } + + public PagedIterable list(String resourceGroupName, String clusterName, Context context) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, clusterName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new AuthenticationImpl(inner1, this.manager())); + } + + private AuthenticationsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/CapabilitiesClientImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/CapabilitiesClientImpl.java new file mode 100644 index 0000000000000..b63bdf2025832 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/CapabilitiesClientImpl.java @@ -0,0 +1,340 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.resourcemanager.horizondb.fluent.CapabilitiesClient; +import com.azure.resourcemanager.horizondb.fluent.models.CapabilityInner; +import com.azure.resourcemanager.horizondb.implementation.models.CapabilityListResult; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in CapabilitiesClient. + */ +public final class CapabilitiesClientImpl implements CapabilitiesClient { + /** + * The proxy service used to perform REST calls. + */ + private final CapabilitiesService service; + + /** + * The service client containing this operation class. + */ + private final HorizonDbManagementClientImpl client; + + /** + * Initializes an instance of CapabilitiesClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + CapabilitiesClientImpl(HorizonDbManagementClientImpl client) { + this.service + = RestProxy.create(CapabilitiesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for HorizonDbManagementClientCapabilities to be used by the proxy service + * to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "HorizonDbManagementClientCapabilities") + public interface CapabilitiesService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.HorizonDb/locations/{location}/capabilities/default") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.HorizonDb/locations/{location}/capabilities/default") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.HorizonDb/locations/{location}/capabilities") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.HorizonDb/locations/{location}/capabilities") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); + } + + /** + * Gets the singleton HorizonDB capability catalog entry available to a subscription in a specific region. + * + * @param location The name of the Azure region. + * @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 singleton HorizonDB capability catalog entry available to a subscription in a specific region along + * with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getWithResponseAsync(String location) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the singleton HorizonDB capability catalog entry available to a subscription in a specific region. + * + * @param location The name of the Azure region. + * @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 singleton HorizonDB capability catalog entry available to a subscription in a specific region on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String location) { + return getWithResponseAsync(location).flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets the singleton HorizonDB capability catalog entry available to a subscription in a specific region. + * + * @param location The name of the Azure region. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws 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 singleton HorizonDB capability catalog entry available to a subscription in a specific region along + * with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String location, Context context) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + location, accept, context); + } + + /** + * Gets the singleton HorizonDB capability catalog entry available to a subscription in a specific region. + * + * @param location The name of the Azure region. + * @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 singleton HorizonDB capability catalog entry available to a subscription in a specific region. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public CapabilityInner get(String location) { + return getWithResponse(location, Context.NONE).getValue(); + } + + /** + * Lists the singleton HorizonDB capability catalog entry available to a subscription in a specific region. The + * result contains one item. + * + * @param location The name of the Azure region. + * @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 of a Capability list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String location) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Lists the singleton HorizonDB capability catalog entry available to a subscription in a specific region. The + * result contains one item. + * + * @param location The name of the Azure region. + * @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 of a Capability list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String location) { + return new PagedFlux<>(() -> listSinglePageAsync(location), nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Lists the singleton HorizonDB capability catalog entry available to a subscription in a specific region. The + * result contains one item. + * + * @param location The name of the Azure region. + * @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 of a Capability list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String location) { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Lists the singleton HorizonDB capability catalog entry available to a subscription in a specific region. The + * result contains one item. + * + * @param location The name of the Azure region. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Capability list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String location, Context context) { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Lists the singleton HorizonDB capability catalog entry available to a subscription in a specific region. The + * result contains one item. + * + * @param location The name of the Azure region. + * @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 of a Capability list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String location) { + return new PagedIterable<>(() -> listSinglePage(location), nextLink -> listNextSinglePage(nextLink)); + } + + /** + * Lists the singleton HorizonDB capability catalog entry available to a subscription in a specific region. The + * result contains one item. + * + * @param location The name of the Azure region. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Capability list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String location, Context context) { + return new PagedIterable<>(() -> listSinglePage(location, context), + nextLink -> listNextSinglePage(nextLink, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a Capability list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a Capability list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a Capability list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/CapabilitiesImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/CapabilitiesImpl.java new file mode 100644 index 0000000000000..a10c66bf7a292 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/CapabilitiesImpl.java @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.horizondb.fluent.CapabilitiesClient; +import com.azure.resourcemanager.horizondb.fluent.models.CapabilityInner; +import com.azure.resourcemanager.horizondb.models.Capabilities; +import com.azure.resourcemanager.horizondb.models.Capability; + +public final class CapabilitiesImpl implements Capabilities { + private static final ClientLogger LOGGER = new ClientLogger(CapabilitiesImpl.class); + + private final CapabilitiesClient innerClient; + + private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; + + public CapabilitiesImpl(CapabilitiesClient innerClient, + com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String location, Context context) { + Response inner = this.serviceClient().getWithResponse(location, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new CapabilityImpl(inner.getValue(), this.manager())); + } + + public Capability get(String location) { + CapabilityInner inner = this.serviceClient().get(location); + if (inner != null) { + return new CapabilityImpl(inner, this.manager()); + } else { + return null; + } + } + + public PagedIterable list(String location) { + PagedIterable inner = this.serviceClient().list(location); + return ResourceManagerUtils.mapPage(inner, inner1 -> new CapabilityImpl(inner1, this.manager())); + } + + public PagedIterable list(String location, Context context) { + PagedIterable inner = this.serviceClient().list(location, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new CapabilityImpl(inner1, this.manager())); + } + + private CapabilitiesClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/CapabilityImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/CapabilityImpl.java new file mode 100644 index 0000000000000..2ec6b2789ee61 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/CapabilityImpl.java @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.horizondb.fluent.models.CapabilityInner; +import com.azure.resourcemanager.horizondb.models.Capability; +import com.azure.resourcemanager.horizondb.models.CapabilityProperties; + +public final class CapabilityImpl implements Capability { + private CapabilityInner innerObject; + + private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; + + CapabilityImpl(CapabilityInner innerObject, com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public CapabilityProperties properties() { + return this.innerModel().properties(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public CapabilityInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbReplicasClientImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureCapabilitiesClientImpl.java similarity index 61% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbReplicasClientImpl.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureCapabilitiesClientImpl.java index 85a1708664282..3b62b00a2d54c 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbReplicasClientImpl.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureCapabilitiesClientImpl.java @@ -33,22 +33,22 @@ import com.azure.core.util.FluxUtil; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.horizondb.fluent.HorizonDbReplicasClient; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbReplicaInner; -import com.azure.resourcemanager.horizondb.implementation.models.HorizonDbReplicaListResult; -import com.azure.resourcemanager.horizondb.models.HorizonDbReplicaForPatchUpdate; +import com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureCapabilitiesClient; +import com.azure.resourcemanager.horizondb.fluent.models.ChangeDataCaptureCapabilityInner; +import com.azure.resourcemanager.horizondb.implementation.models.ChangeDataCaptureCapabilityListResult; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureCapabilityForPatchUpdate; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; /** - * An instance of this class provides access to all the operations defined in HorizonDbReplicasClient. + * An instance of this class provides access to all the operations defined in ChangeDataCaptureCapabilitiesClient. */ -public final class HorizonDbReplicasClientImpl implements HorizonDbReplicasClient { +public final class ChangeDataCaptureCapabilitiesClientImpl implements ChangeDataCaptureCapabilitiesClient { /** * The proxy service used to perform REST calls. */ - private final HorizonDbReplicasService service; + private final ChangeDataCaptureCapabilitiesService service; /** * The service client containing this operation class. @@ -56,124 +56,118 @@ public final class HorizonDbReplicasClientImpl implements HorizonDbReplicasClien private final HorizonDbManagementClientImpl client; /** - * Initializes an instance of HorizonDbReplicasClientImpl. + * Initializes an instance of ChangeDataCaptureCapabilitiesClientImpl. * * @param client the instance of the service client containing this operation class. */ - HorizonDbReplicasClientImpl(HorizonDbManagementClientImpl client) { - this.service - = RestProxy.create(HorizonDbReplicasService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + ChangeDataCaptureCapabilitiesClientImpl(HorizonDbManagementClientImpl client) { + this.service = RestProxy.create(ChangeDataCaptureCapabilitiesService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for HorizonDbManagementClientHorizonDbReplicas to be used by the proxy - * service to perform REST calls. + * The interface defining all the services for HorizonDbManagementClientChangeDataCaptureCapabilities to be used by + * the proxy service to perform REST calls. */ @Host("{endpoint}") - @ServiceInterface(name = "HorizonDbManagementClientHorizonDbReplicas") - public interface HorizonDbReplicasService { + @ServiceInterface(name = "HorizonDbManagementClientChangeDataCaptureCapabilities") + public interface ChangeDataCaptureCapabilitiesService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCapture/default") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("endpoint") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, - @PathParam("poolName") String poolName, @PathParam("replicaName") String replicaName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCapture/default") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("endpoint") String endpoint, + Response getSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, - @PathParam("poolName") String poolName, @PathParam("replicaName") String replicaName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, - @PathParam("poolName") String poolName, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, - @PathParam("poolName") String poolName, @HeaderParam("Accept") String accept, Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}") + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCapture/default") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + Mono>> createOrReplace(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, - @PathParam("poolName") String poolName, @PathParam("replicaName") String replicaName, @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") HorizonDbReplicaInner resource, Context context); + @BodyParam("application/json") ChangeDataCaptureCapabilityInner resource, Context context); - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}") + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCapture/default") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("endpoint") String endpoint, + Response createOrReplaceSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, - @PathParam("poolName") String poolName, @PathParam("replicaName") String replicaName, @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") HorizonDbReplicaInner resource, Context context); + @BodyParam("application/json") ChangeDataCaptureCapabilityInner resource, Context context); - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}") + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCapture/default") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> update(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, - @PathParam("poolName") String poolName, @PathParam("replicaName") String replicaName, @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") HorizonDbReplicaForPatchUpdate properties, Context context); + @BodyParam("application/json") ChangeDataCaptureCapabilityForPatchUpdate properties, Context context); - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}") + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCapture/default") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) Response updateSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, - @PathParam("poolName") String poolName, @PathParam("replicaName") String replicaName, @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") HorizonDbReplicaForPatchUpdate properties, Context context); + @BodyParam("application/json") ChangeDataCaptureCapabilityForPatchUpdate properties, Context context); @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}") + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCapture/default") @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, - @PathParam("poolName") String poolName, @PathParam("replicaName") String replicaName, Context context); + Context context); @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/replicas/{replicaName}") + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCapture/default") @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) Response deleteSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, - @PathParam("poolName") String poolName, @PathParam("replicaName") String replicaName, Context context); + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCapture") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCapture") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( + Mono> listNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @@ -181,664 +175,490 @@ Mono> listNext( @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listNextSync( + Response listNextSync( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Gets information about a HorizonDB replica. + * Gets the singleton change data capture capability for a HorizonDB cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @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 information about a HorizonDB replica along with {@link Response} on successful completion of - * {@link Mono}. + * @return the singleton change data capture capability for a HorizonDB cluster along with {@link Response} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String resourceGroupName, String clusterName, - String poolName, String replicaName) { + public Mono> getWithResponseAsync(String resourceGroupName, + String clusterName) { final String accept = "application/json"; - return FluxUtil.withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, replicaName, accept, context)) + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets information about a HorizonDB replica. + * Gets the singleton change data capture capability for a HorizonDB cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @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 information about a HorizonDB replica on successful completion of {@link Mono}. + * @return the singleton change data capture capability for a HorizonDB cluster on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String resourceGroupName, String clusterName, String poolName, - String replicaName) { - return getWithResponseAsync(resourceGroupName, clusterName, poolName, replicaName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + public Mono getAsync(String resourceGroupName, String clusterName) { + return getWithResponseAsync(resourceGroupName, clusterName).flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Gets information about a HorizonDB replica. + * Gets the singleton change data capture capability for a HorizonDB cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @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 information about a HorizonDB replica along with {@link Response}. + * @return the singleton change data capture capability for a HorizonDB cluster along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String clusterName, - String poolName, String replicaName, Context context) { + public Response getWithResponse(String resourceGroupName, String clusterName, + Context context) { final String accept = "application/json"; return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, clusterName, poolName, replicaName, accept, context); - } - - /** - * Gets information about a HorizonDB replica. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. - * @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 information about a HorizonDB replica. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public HorizonDbReplicaInner get(String resourceGroupName, String clusterName, String poolName, - String replicaName) { - return getWithResponse(resourceGroupName, clusterName, poolName, replicaName, Context.NONE).getValue(); + resourceGroupName, clusterName, accept, context); } /** - * Lists all HorizonDB replicas in a pool. + * Gets the singleton change data capture capability for a HorizonDB cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. * @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 of a HorizonDbReplica list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the singleton change data capture capability for a HorizonDB cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, String clusterName, - String poolName) { - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + public ChangeDataCaptureCapabilityInner get(String resourceGroupName, String clusterName) { + return getWithResponse(resourceGroupName, clusterName, Context.NONE).getValue(); } /** - * Lists all HorizonDB replicas in a pool. + * Creates or replaces the singleton change data capture capability and reconciles shared engine prerequisites. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @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 of a HorizonDbReplica list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String clusterName, String poolName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, clusterName, poolName), - nextLink -> listNextSinglePageAsync(nextLink)); - } - - /** - * Lists all HorizonDB replicas in a pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @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 of a HorizonDbReplica list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(String resourceGroupName, String clusterName, - String poolName) { - final String accept = "application/json"; - Response res - = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, clusterName, poolName, accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * Lists all HorizonDB replicas in a pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @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 of a HorizonDbReplica list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(String resourceGroupName, String clusterName, - String poolName, Context context) { - final String accept = "application/json"; - Response res - = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, clusterName, poolName, accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * Lists all HorizonDB replicas in a pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @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 of a HorizonDbReplica list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String clusterName, String poolName) { - return new PagedIterable<>(() -> listSinglePage(resourceGroupName, clusterName, poolName), - nextLink -> listNextSinglePage(nextLink)); - } - - /** - * Lists all HorizonDB replicas in a pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @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 of a HorizonDbReplica list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String clusterName, String poolName, - Context context) { - return new PagedIterable<>(() -> listSinglePage(resourceGroupName, clusterName, poolName, context), - nextLink -> listNextSinglePage(nextLink, context)); - } - - /** - * Creates a new HorizonDB replica or updates an existing replica. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @param resource Resource create parameters. * @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 represents the HorizonDB replica along with {@link Response} on successful completion of {@link Mono}. + * @return the singleton change data capture capability for a HorizonDB cluster along with {@link Response} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String clusterName, String poolName, String replicaName, HorizonDbReplicaInner resource) { + public Mono>> createOrReplaceWithResponseAsync(String resourceGroupName, + String clusterName, ChangeDataCaptureCapabilityInner resource) { final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, replicaName, contentType, - accept, resource, context)) + .withContext(context -> service.createOrReplace(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, contentType, accept, resource, + context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Creates a new HorizonDB replica or updates an existing replica. + * Creates or replaces the singleton change data capture capability and reconciles shared engine prerequisites. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @param resource Resource create parameters. * @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 represents the HorizonDB replica along with {@link Response}. + * @return the singleton change data capture capability for a HorizonDB cluster along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String clusterName, - String poolName, String replicaName, HorizonDbReplicaInner resource) { + private Response createOrReplaceWithResponse(String resourceGroupName, String clusterName, + ChangeDataCaptureCapabilityInner resource) { final String contentType = "application/json"; final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, replicaName, contentType, accept, - resource, Context.NONE); + return service.createOrReplaceSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, contentType, accept, resource, + Context.NONE); } /** - * Creates a new HorizonDB replica or updates an existing replica. + * Creates or replaces the singleton change data capture capability and reconciles shared engine prerequisites. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @param resource Resource create parameters. * @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 represents the HorizonDB replica along with {@link Response}. + * @return the singleton change data capture capability for a HorizonDB cluster along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String clusterName, - String poolName, String replicaName, HorizonDbReplicaInner resource, Context context) { + private Response createOrReplaceWithResponse(String resourceGroupName, String clusterName, + ChangeDataCaptureCapabilityInner resource, Context context) { final String contentType = "application/json"; final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, replicaName, contentType, accept, - resource, context); + return service.createOrReplaceSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, contentType, accept, resource, context); } /** - * Creates a new HorizonDB replica or updates an existing replica. + * Creates or replaces the singleton change data capture capability and reconciles shared engine prerequisites. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @param resource Resource create parameters. * @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 represents the HorizonDB replica. + * @return the {@link PollerFlux} for polling of the singleton change data capture capability for a HorizonDB + * cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, HorizonDbReplicaInner> beginCreateOrUpdateAsync( - String resourceGroupName, String clusterName, String poolName, String replicaName, - HorizonDbReplicaInner resource) { + public PollerFlux, ChangeDataCaptureCapabilityInner> + beginCreateOrReplaceAsync(String resourceGroupName, String clusterName, + ChangeDataCaptureCapabilityInner resource) { Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, clusterName, poolName, replicaName, resource); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), HorizonDbReplicaInner.class, HorizonDbReplicaInner.class, - this.client.getContext()); + = createOrReplaceWithResponseAsync(resourceGroupName, clusterName, resource); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ChangeDataCaptureCapabilityInner.class, + ChangeDataCaptureCapabilityInner.class, this.client.getContext()); } /** - * Creates a new HorizonDB replica or updates an existing replica. + * Creates or replaces the singleton change data capture capability and reconciles shared engine prerequisites. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @param resource Resource create parameters. * @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 represents the HorizonDB replica. + * @return the {@link SyncPoller} for polling of the singleton change data capture capability for a HorizonDB + * cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, HorizonDbReplicaInner> beginCreateOrUpdate( - String resourceGroupName, String clusterName, String poolName, String replicaName, - HorizonDbReplicaInner resource) { - Response response - = createOrUpdateWithResponse(resourceGroupName, clusterName, poolName, replicaName, resource); - return this.client.getLroResult(response, - HorizonDbReplicaInner.class, HorizonDbReplicaInner.class, Context.NONE); + public SyncPoller, ChangeDataCaptureCapabilityInner> + beginCreateOrReplace(String resourceGroupName, String clusterName, ChangeDataCaptureCapabilityInner resource) { + Response response = createOrReplaceWithResponse(resourceGroupName, clusterName, resource); + return this.client.getLroResult(response, + ChangeDataCaptureCapabilityInner.class, ChangeDataCaptureCapabilityInner.class, Context.NONE); } /** - * Creates a new HorizonDB replica or updates an existing replica. + * Creates or replaces the singleton change data capture capability and reconciles shared engine prerequisites. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @param resource Resource create parameters. * @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 represents the HorizonDB replica. + * @return the {@link SyncPoller} for polling of the singleton change data capture capability for a HorizonDB + * cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, HorizonDbReplicaInner> beginCreateOrUpdate( - String resourceGroupName, String clusterName, String poolName, String replicaName, - HorizonDbReplicaInner resource, Context context) { - Response response - = createOrUpdateWithResponse(resourceGroupName, clusterName, poolName, replicaName, resource, context); - return this.client.getLroResult(response, - HorizonDbReplicaInner.class, HorizonDbReplicaInner.class, context); + public SyncPoller, ChangeDataCaptureCapabilityInner> + beginCreateOrReplace(String resourceGroupName, String clusterName, ChangeDataCaptureCapabilityInner resource, + Context context) { + Response response = createOrReplaceWithResponse(resourceGroupName, clusterName, resource, context); + return this.client.getLroResult(response, + ChangeDataCaptureCapabilityInner.class, ChangeDataCaptureCapabilityInner.class, context); } /** - * Creates a new HorizonDB replica or updates an existing replica. + * Creates or replaces the singleton change data capture capability and reconciles shared engine prerequisites. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @param resource Resource create parameters. * @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 represents the HorizonDB replica on successful completion of {@link Mono}. + * @return the singleton change data capture capability for a HorizonDB cluster on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createOrUpdateAsync(String resourceGroupName, String clusterName, - String poolName, String replicaName, HorizonDbReplicaInner resource) { - return beginCreateOrUpdateAsync(resourceGroupName, clusterName, poolName, replicaName, resource).last() + public Mono createOrReplaceAsync(String resourceGroupName, String clusterName, + ChangeDataCaptureCapabilityInner resource) { + return beginCreateOrReplaceAsync(resourceGroupName, clusterName, resource).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Creates a new HorizonDB replica or updates an existing replica. + * Creates or replaces the singleton change data capture capability and reconciles shared engine prerequisites. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @param resource Resource create parameters. * @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 represents the HorizonDB replica. + * @return the singleton change data capture capability for a HorizonDB cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) - public HorizonDbReplicaInner createOrUpdate(String resourceGroupName, String clusterName, String poolName, - String replicaName, HorizonDbReplicaInner resource) { - return beginCreateOrUpdate(resourceGroupName, clusterName, poolName, replicaName, resource).getFinalResult(); + public ChangeDataCaptureCapabilityInner createOrReplace(String resourceGroupName, String clusterName, + ChangeDataCaptureCapabilityInner resource) { + return beginCreateOrReplace(resourceGroupName, clusterName, resource).getFinalResult(); } /** - * Creates a new HorizonDB replica or updates an existing replica. + * Creates or replaces the singleton change data capture capability and reconciles shared engine prerequisites. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @param resource Resource create parameters. * @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 represents the HorizonDB replica. + * @return the singleton change data capture capability for a HorizonDB cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) - public HorizonDbReplicaInner createOrUpdate(String resourceGroupName, String clusterName, String poolName, - String replicaName, HorizonDbReplicaInner resource, Context context) { - return beginCreateOrUpdate(resourceGroupName, clusterName, poolName, replicaName, resource, context) - .getFinalResult(); + public ChangeDataCaptureCapabilityInner createOrReplace(String resourceGroupName, String clusterName, + ChangeDataCaptureCapabilityInner resource, Context context) { + return beginCreateOrReplace(resourceGroupName, clusterName, resource, context).getFinalResult(); } /** - * Updates an existing HorizonDB replica (e.g., role). + * Updates mutable change data capture capability properties. Omitted properties preserve their current values. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @param properties The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents the HorizonDB replica along with {@link Response} on successful completion of {@link Mono}. + * @return the singleton change data capture capability for a HorizonDB cluster along with {@link Response} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> updateWithResponseAsync(String resourceGroupName, String clusterName, - String poolName, String replicaName, HorizonDbReplicaForPatchUpdate properties) { + ChangeDataCaptureCapabilityForPatchUpdate properties) { final String contentType = "application/json"; final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, replicaName, contentType, - accept, properties, context)) + return FluxUtil.withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, contentType, accept, properties, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Updates an existing HorizonDB replica (e.g., role). + * Updates mutable change data capture capability properties. Omitted properties preserve their current values. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @param properties The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents the HorizonDB replica along with {@link Response}. + * @return the singleton change data capture capability for a HorizonDB cluster along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String clusterName, String poolName, - String replicaName, HorizonDbReplicaForPatchUpdate properties) { + private Response updateWithResponse(String resourceGroupName, String clusterName, + ChangeDataCaptureCapabilityForPatchUpdate properties) { final String contentType = "application/json"; final String accept = "application/json"; return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, replicaName, contentType, accept, - properties, Context.NONE); + this.client.getSubscriptionId(), resourceGroupName, clusterName, contentType, accept, properties, + Context.NONE); } /** - * Updates an existing HorizonDB replica (e.g., role). + * Updates mutable change data capture capability properties. Omitted properties preserve their current values. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @param properties The resource properties to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents the HorizonDB replica along with {@link Response}. + * @return the singleton change data capture capability for a HorizonDB cluster along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String clusterName, String poolName, - String replicaName, HorizonDbReplicaForPatchUpdate properties, Context context) { + private Response updateWithResponse(String resourceGroupName, String clusterName, + ChangeDataCaptureCapabilityForPatchUpdate properties, Context context) { final String contentType = "application/json"; final String accept = "application/json"; return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, replicaName, contentType, accept, - properties, context); + this.client.getSubscriptionId(), resourceGroupName, clusterName, contentType, accept, properties, context); } /** - * Updates an existing HorizonDB replica (e.g., role). + * Updates mutable change data capture capability properties. Omitted properties preserve their current values. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @param properties The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of represents the HorizonDB replica. + * @return the {@link PollerFlux} for polling of the singleton change data capture capability for a HorizonDB + * cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, HorizonDbReplicaInner> beginUpdateAsync( - String resourceGroupName, String clusterName, String poolName, String replicaName, - HorizonDbReplicaForPatchUpdate properties) { - Mono>> mono - = updateWithResponseAsync(resourceGroupName, clusterName, poolName, replicaName, properties); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), HorizonDbReplicaInner.class, HorizonDbReplicaInner.class, - this.client.getContext()); + public PollerFlux, ChangeDataCaptureCapabilityInner> beginUpdateAsync( + String resourceGroupName, String clusterName, ChangeDataCaptureCapabilityForPatchUpdate properties) { + Mono>> mono = updateWithResponseAsync(resourceGroupName, clusterName, properties); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ChangeDataCaptureCapabilityInner.class, + ChangeDataCaptureCapabilityInner.class, this.client.getContext()); } /** - * Updates an existing HorizonDB replica (e.g., role). + * Updates mutable change data capture capability properties. Omitted properties preserve their current values. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @param properties The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of represents the HorizonDB replica. + * @return the {@link SyncPoller} for polling of the singleton change data capture capability for a HorizonDB + * cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, HorizonDbReplicaInner> beginUpdate(String resourceGroupName, - String clusterName, String poolName, String replicaName, HorizonDbReplicaForPatchUpdate properties) { - Response response - = updateWithResponse(resourceGroupName, clusterName, poolName, replicaName, properties); - return this.client.getLroResult(response, - HorizonDbReplicaInner.class, HorizonDbReplicaInner.class, Context.NONE); + public SyncPoller, ChangeDataCaptureCapabilityInner> beginUpdate( + String resourceGroupName, String clusterName, ChangeDataCaptureCapabilityForPatchUpdate properties) { + Response response = updateWithResponse(resourceGroupName, clusterName, properties); + return this.client.getLroResult(response, + ChangeDataCaptureCapabilityInner.class, ChangeDataCaptureCapabilityInner.class, Context.NONE); } /** - * Updates an existing HorizonDB replica (e.g., role). + * Updates mutable change data capture capability properties. Omitted properties preserve their current values. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @param properties The resource properties to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of represents the HorizonDB replica. + * @return the {@link SyncPoller} for polling of the singleton change data capture capability for a HorizonDB + * cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, HorizonDbReplicaInner> beginUpdate(String resourceGroupName, - String clusterName, String poolName, String replicaName, HorizonDbReplicaForPatchUpdate properties, + public SyncPoller, ChangeDataCaptureCapabilityInner> beginUpdate( + String resourceGroupName, String clusterName, ChangeDataCaptureCapabilityForPatchUpdate properties, Context context) { - Response response - = updateWithResponse(resourceGroupName, clusterName, poolName, replicaName, properties, context); - return this.client.getLroResult(response, - HorizonDbReplicaInner.class, HorizonDbReplicaInner.class, context); + Response response = updateWithResponse(resourceGroupName, clusterName, properties, context); + return this.client.getLroResult(response, + ChangeDataCaptureCapabilityInner.class, ChangeDataCaptureCapabilityInner.class, context); } /** - * Updates an existing HorizonDB replica (e.g., role). + * Updates mutable change data capture capability properties. Omitted properties preserve their current values. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @param properties The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents the HorizonDB replica on successful completion of {@link Mono}. + * @return the singleton change data capture capability for a HorizonDB cluster on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono updateAsync(String resourceGroupName, String clusterName, String poolName, - String replicaName, HorizonDbReplicaForPatchUpdate properties) { - return beginUpdateAsync(resourceGroupName, clusterName, poolName, replicaName, properties).last() + public Mono updateAsync(String resourceGroupName, String clusterName, + ChangeDataCaptureCapabilityForPatchUpdate properties) { + return beginUpdateAsync(resourceGroupName, clusterName, properties).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Updates an existing HorizonDB replica (e.g., role). + * Updates mutable change data capture capability properties. Omitted properties preserve their current values. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @param properties The resource properties to be updated. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents the HorizonDB replica. + * @return the singleton change data capture capability for a HorizonDB cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) - public HorizonDbReplicaInner update(String resourceGroupName, String clusterName, String poolName, - String replicaName, HorizonDbReplicaForPatchUpdate properties) { - return beginUpdate(resourceGroupName, clusterName, poolName, replicaName, properties).getFinalResult(); + public ChangeDataCaptureCapabilityInner update(String resourceGroupName, String clusterName, + ChangeDataCaptureCapabilityForPatchUpdate properties) { + return beginUpdate(resourceGroupName, clusterName, properties).getFinalResult(); } /** - * Updates an existing HorizonDB replica (e.g., role). + * Updates mutable change data capture capability properties. Omitted properties preserve their current values. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @param properties The resource properties to be updated. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return represents the HorizonDB replica. + * @return the singleton change data capture capability for a HorizonDB cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) - public HorizonDbReplicaInner update(String resourceGroupName, String clusterName, String poolName, - String replicaName, HorizonDbReplicaForPatchUpdate properties, Context context) { - return beginUpdate(resourceGroupName, clusterName, poolName, replicaName, properties, context).getFinalResult(); + public ChangeDataCaptureCapabilityInner update(String resourceGroupName, String clusterName, + ChangeDataCaptureCapabilityForPatchUpdate properties, Context context) { + return beginUpdate(resourceGroupName, clusterName, properties, context).getFinalResult(); } /** - * Deletes a HorizonDB replica. + * Deletes the change data capture capability after all change data capture destinations and configurations have + * been removed. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @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) - public Mono>> deleteWithResponseAsync(String resourceGroupName, String clusterName, - String poolName, String replicaName) { + public Mono>> deleteWithResponseAsync(String resourceGroupName, String clusterName) { return FluxUtil .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, replicaName, context)) + this.client.getSubscriptionId(), resourceGroupName, clusterName, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Deletes a HorizonDB replica. + * Deletes the change data capture capability after all change data capture destinations and configurations have + * been removed. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @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 deleteWithResponse(String resourceGroupName, String clusterName, String poolName, - String replicaName) { + private Response deleteWithResponse(String resourceGroupName, String clusterName) { return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, replicaName, Context.NONE); + this.client.getSubscriptionId(), resourceGroupName, clusterName, Context.NONE); } /** - * Deletes a HorizonDB replica. + * Deletes the change data capture capability after all change data capture destinations and configurations have + * been removed. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @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. @@ -846,59 +666,52 @@ private Response deleteWithResponse(String resourceGroupName, String * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response deleteWithResponse(String resourceGroupName, String clusterName, String poolName, - String replicaName, Context context) { + private Response deleteWithResponse(String resourceGroupName, String clusterName, Context context) { return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, replicaName, context); + this.client.getSubscriptionId(), resourceGroupName, clusterName, context); } /** - * Deletes a HorizonDB replica. + * Deletes the change data capture capability after all change data capture destinations and configurations have + * been removed. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @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) - public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String clusterName, - String poolName, String replicaName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, clusterName, poolName, replicaName); + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String clusterName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, clusterName); return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, this.client.getContext()); } /** - * Deletes a HorizonDB replica. + * Deletes the change data capture capability after all change data capture destinations and configurations have + * been removed. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @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> beginDelete(String resourceGroupName, String clusterName, String poolName, - String replicaName) { - Response response = deleteWithResponse(resourceGroupName, clusterName, poolName, replicaName); + public SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName) { + Response response = deleteWithResponse(resourceGroupName, clusterName); return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); } /** - * Deletes a HorizonDB replica. + * Deletes the change data capture capability after all change data capture destinations and configurations have + * been removed. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @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. @@ -906,63 +719,176 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, String poolName, - String replicaName, Context context) { - Response response - = deleteWithResponse(resourceGroupName, clusterName, poolName, replicaName, context); + public SyncPoller, Void> beginDelete(String resourceGroupName, String clusterName, + Context context) { + Response response = deleteWithResponse(resourceGroupName, clusterName, context); return this.client.getLroResult(response, Void.class, Void.class, context); } /** - * Deletes a HorizonDB replica. + * Deletes the change data capture capability after all change data capture destinations and configurations have + * been removed. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @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) - public Mono deleteAsync(String resourceGroupName, String clusterName, String poolName, String replicaName) { - return beginDeleteAsync(resourceGroupName, clusterName, poolName, replicaName).last() - .flatMap(this.client::getLroFinalResultOrError); + public Mono deleteAsync(String resourceGroupName, String clusterName) { + return beginDeleteAsync(resourceGroupName, clusterName).last().flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes the change data capture capability after all change data capture destinations and configurations have + * been removed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String clusterName) { + beginDelete(resourceGroupName, clusterName).getFinalResult(); + } + + /** + * Deletes the change data capture capability after all change data capture destinations and configurations have + * been removed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public void delete(String resourceGroupName, String clusterName, Context context) { + beginDelete(resourceGroupName, clusterName, context).getFinalResult(); + } + + /** + * Lists the optional singleton change data capture capability for a cluster. The result contains zero or one item. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ChangeDataCaptureCapability list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String clusterName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Lists the optional singleton change data capture capability for a cluster. The result contains zero or one item. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ChangeDataCaptureCapability list operation as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String clusterName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, clusterName), + nextLink -> listNextSinglePageAsync(nextLink)); } /** - * Deletes a HorizonDB replica. + * Lists the optional singleton change data capture capability for a cluster. The result contains zero or one item. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @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 of a ChangeDataCaptureCapability list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String clusterName, String poolName, String replicaName) { - beginDelete(resourceGroupName, clusterName, poolName, replicaName).getFinalResult(); + private PagedResponse listSinglePage(String resourceGroupName, + String clusterName) { + final String accept = "application/json"; + Response res + = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, clusterName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); } /** - * Deletes a HorizonDB replica. + * Lists the optional singleton change data capture capability for a cluster. The result contains zero or one item. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. * @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 of a ChangeDataCaptureCapability list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void delete(String resourceGroupName, String clusterName, String poolName, String replicaName, + private PagedResponse listSinglePage(String resourceGroupName, String clusterName, + Context context) { + final String accept = "application/json"; + Response res + = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, clusterName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Lists the optional singleton change data capture capability for a cluster. The result contains zero or one item. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ChangeDataCaptureCapability list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String clusterName) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, clusterName), + nextLink -> listNextSinglePage(nextLink)); + } + + /** + * Lists the optional singleton change data capture capability for a cluster. The result contains zero or one item. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ChangeDataCaptureCapability list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String clusterName, Context context) { - beginDelete(resourceGroupName, clusterName, poolName, replicaName, context).getFinalResult(); + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, clusterName, context), + nextLink -> listNextSinglePage(nextLink, context)); } /** @@ -972,14 +898,14 @@ public void delete(String resourceGroupName, String clusterName, String poolName * @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 of a HorizonDbReplica list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a ChangeDataCaptureCapability list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { + private Mono> listNextSinglePageAsync(String nextLink) { final String accept = "application/json"; return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -991,12 +917,12 @@ private Mono> listNextSinglePageAsync(Strin * @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 of a HorizonDbReplica list operation along with {@link PagedResponse}. + * @return the response of a ChangeDataCaptureCapability list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listNextSinglePage(String nextLink) { + private PagedResponse listNextSinglePage(String nextLink) { final String accept = "application/json"; - Response res + Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); @@ -1010,12 +936,12 @@ private PagedResponse listNextSinglePage(String nextLink) * @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 of a HorizonDbReplica list operation along with {@link PagedResponse}. + * @return the response of a ChangeDataCaptureCapability list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listNextSinglePage(String nextLink, Context context) { + private PagedResponse listNextSinglePage(String nextLink, Context context) { final String accept = "application/json"; - Response res + Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureCapabilitiesImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureCapabilitiesImpl.java new file mode 100644 index 0000000000000..85af7e46cb222 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureCapabilitiesImpl.java @@ -0,0 +1,122 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureCapabilitiesClient; +import com.azure.resourcemanager.horizondb.fluent.models.ChangeDataCaptureCapabilityInner; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureCapabilities; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureCapability; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureCapabilityForPatchUpdate; + +public final class ChangeDataCaptureCapabilitiesImpl implements ChangeDataCaptureCapabilities { + private static final ClientLogger LOGGER = new ClientLogger(ChangeDataCaptureCapabilitiesImpl.class); + + private final ChangeDataCaptureCapabilitiesClient innerClient; + + private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; + + public ChangeDataCaptureCapabilitiesImpl(ChangeDataCaptureCapabilitiesClient innerClient, + com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String resourceGroupName, String clusterName, + Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, clusterName, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new ChangeDataCaptureCapabilityImpl(inner.getValue(), this.manager())); + } + + public ChangeDataCaptureCapability get(String resourceGroupName, String clusterName) { + ChangeDataCaptureCapabilityInner inner = this.serviceClient().get(resourceGroupName, clusterName); + if (inner != null) { + return new ChangeDataCaptureCapabilityImpl(inner, this.manager()); + } else { + return null; + } + } + + public ChangeDataCaptureCapability createOrReplace(String resourceGroupName, String clusterName, + ChangeDataCaptureCapabilityInner resource) { + ChangeDataCaptureCapabilityInner inner + = this.serviceClient().createOrReplace(resourceGroupName, clusterName, resource); + if (inner != null) { + return new ChangeDataCaptureCapabilityImpl(inner, this.manager()); + } else { + return null; + } + } + + public ChangeDataCaptureCapability createOrReplace(String resourceGroupName, String clusterName, + ChangeDataCaptureCapabilityInner resource, Context context) { + ChangeDataCaptureCapabilityInner inner + = this.serviceClient().createOrReplace(resourceGroupName, clusterName, resource, context); + if (inner != null) { + return new ChangeDataCaptureCapabilityImpl(inner, this.manager()); + } else { + return null; + } + } + + public ChangeDataCaptureCapability update(String resourceGroupName, String clusterName, + ChangeDataCaptureCapabilityForPatchUpdate properties) { + ChangeDataCaptureCapabilityInner inner + = this.serviceClient().update(resourceGroupName, clusterName, properties); + if (inner != null) { + return new ChangeDataCaptureCapabilityImpl(inner, this.manager()); + } else { + return null; + } + } + + public ChangeDataCaptureCapability update(String resourceGroupName, String clusterName, + ChangeDataCaptureCapabilityForPatchUpdate properties, Context context) { + ChangeDataCaptureCapabilityInner inner + = this.serviceClient().update(resourceGroupName, clusterName, properties, context); + if (inner != null) { + return new ChangeDataCaptureCapabilityImpl(inner, this.manager()); + } else { + return null; + } + } + + public void deleteByResourceGroup(String resourceGroupName, String clusterName) { + this.serviceClient().delete(resourceGroupName, clusterName); + } + + public void delete(String resourceGroupName, String clusterName, Context context) { + this.serviceClient().delete(resourceGroupName, clusterName, context); + } + + public PagedIterable list(String resourceGroupName, String clusterName) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, clusterName); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new ChangeDataCaptureCapabilityImpl(inner1, this.manager())); + } + + public PagedIterable list(String resourceGroupName, String clusterName, + Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, clusterName, context); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new ChangeDataCaptureCapabilityImpl(inner1, this.manager())); + } + + private ChangeDataCaptureCapabilitiesClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbPoolImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureCapabilityImpl.java similarity index 57% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbPoolImpl.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureCapabilityImpl.java index 214a79c62568f..0bf5ecdb9cf5c 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbPoolImpl.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureCapabilityImpl.java @@ -5,18 +5,16 @@ package com.azure.resourcemanager.horizondb.implementation; import com.azure.core.management.SystemData; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbPoolInner; -import com.azure.resourcemanager.horizondb.models.HorizonDbPool; -import com.azure.resourcemanager.horizondb.models.HorizonDbPoolProperties; -import java.util.Collections; -import java.util.Map; +import com.azure.resourcemanager.horizondb.fluent.models.ChangeDataCaptureCapabilityInner; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureCapability; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureCapabilityProperties; -public final class HorizonDbPoolImpl implements HorizonDbPool { - private HorizonDbPoolInner innerObject; +public final class ChangeDataCaptureCapabilityImpl implements ChangeDataCaptureCapability { + private ChangeDataCaptureCapabilityInner innerObject; private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; - HorizonDbPoolImpl(HorizonDbPoolInner innerObject, + ChangeDataCaptureCapabilityImpl(ChangeDataCaptureCapabilityInner innerObject, com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; @@ -34,24 +32,19 @@ public String type() { return this.innerModel().type(); } - public HorizonDbPoolProperties properties() { + public ChangeDataCaptureCapabilityProperties properties() { return this.innerModel().properties(); } - public Map tags() { - Map inner = this.innerModel().tags(); - if (inner != null) { - return Collections.unmodifiableMap(inner); - } else { - return Collections.emptyMap(); - } + public String eTag() { + return this.innerModel().eTag(); } public SystemData systemData() { return this.innerModel().systemData(); } - public HorizonDbPoolInner innerModel() { + public ChangeDataCaptureCapabilityInner innerModel() { return this.innerObject; } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureConfigurationImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureConfigurationImpl.java new file mode 100644 index 0000000000000..6094bad2f67a8 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureConfigurationImpl.java @@ -0,0 +1,147 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.horizondb.fluent.models.ChangeDataCaptureConfigurationInner; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureConfiguration; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureConfigurationForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureConfigurationProperties; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureConfigurationPropertiesForPatchUpdate; + +public final class ChangeDataCaptureConfigurationImpl implements ChangeDataCaptureConfiguration, + ChangeDataCaptureConfiguration.Definition, ChangeDataCaptureConfiguration.Update { + private ChangeDataCaptureConfigurationInner innerObject; + + private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public ChangeDataCaptureConfigurationProperties properties() { + return this.innerModel().properties(); + } + + public String eTag() { + return this.innerModel().eTag(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public String resourceGroupName() { + return resourceGroupName; + } + + public ChangeDataCaptureConfigurationInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { + return this.serviceManager; + } + + private String resourceGroupName; + + private String clusterName; + + private String configurationName; + + private ChangeDataCaptureConfigurationForPatchUpdate updateProperties; + + public ChangeDataCaptureConfigurationImpl withExistingCluster(String resourceGroupName, String clusterName) { + this.resourceGroupName = resourceGroupName; + this.clusterName = clusterName; + return this; + } + + public ChangeDataCaptureConfiguration create() { + this.innerObject = serviceManager.serviceClient() + .getChangeDataCaptureConfigurations() + .createOrReplace(resourceGroupName, clusterName, configurationName, this.innerModel(), Context.NONE); + return this; + } + + public ChangeDataCaptureConfiguration create(Context context) { + this.innerObject = serviceManager.serviceClient() + .getChangeDataCaptureConfigurations() + .createOrReplace(resourceGroupName, clusterName, configurationName, this.innerModel(), context); + return this; + } + + ChangeDataCaptureConfigurationImpl(String name, + com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerObject = new ChangeDataCaptureConfigurationInner(); + this.serviceManager = serviceManager; + this.configurationName = name; + } + + public ChangeDataCaptureConfigurationImpl update() { + this.updateProperties = new ChangeDataCaptureConfigurationForPatchUpdate(); + return this; + } + + public ChangeDataCaptureConfiguration apply() { + this.innerObject = serviceManager.serviceClient() + .getChangeDataCaptureConfigurations() + .update(resourceGroupName, clusterName, configurationName, updateProperties, Context.NONE); + return this; + } + + public ChangeDataCaptureConfiguration apply(Context context) { + this.innerObject = serviceManager.serviceClient() + .getChangeDataCaptureConfigurations() + .update(resourceGroupName, clusterName, configurationName, updateProperties, context); + return this; + } + + ChangeDataCaptureConfigurationImpl(ChangeDataCaptureConfigurationInner innerObject, + com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.clusterName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "clusters"); + this.configurationName + = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "changeDataCaptureConfigurations"); + } + + public ChangeDataCaptureConfiguration refresh() { + this.innerObject = serviceManager.serviceClient() + .getChangeDataCaptureConfigurations() + .getWithResponse(resourceGroupName, clusterName, configurationName, Context.NONE) + .getValue(); + return this; + } + + public ChangeDataCaptureConfiguration refresh(Context context) { + this.innerObject = serviceManager.serviceClient() + .getChangeDataCaptureConfigurations() + .getWithResponse(resourceGroupName, clusterName, configurationName, context) + .getValue(); + return this; + } + + public ChangeDataCaptureConfigurationImpl withProperties(ChangeDataCaptureConfigurationProperties properties) { + this.innerModel().withProperties(properties); + return this; + } + + public ChangeDataCaptureConfigurationImpl + withProperties(ChangeDataCaptureConfigurationPropertiesForPatchUpdate properties) { + this.updateProperties.withProperties(properties); + return this; + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureConfigurationsClientImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureConfigurationsClientImpl.java new file mode 100644 index 0000000000000..0adaec7bfbe70 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureConfigurationsClientImpl.java @@ -0,0 +1,1041 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.BinaryData; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureConfigurationsClient; +import com.azure.resourcemanager.horizondb.fluent.models.ChangeDataCaptureConfigurationInner; +import com.azure.resourcemanager.horizondb.implementation.models.ChangeDataCaptureConfigurationListResult; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureConfigurationForPatchUpdate; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in ChangeDataCaptureConfigurationsClient. + */ +public final class ChangeDataCaptureConfigurationsClientImpl implements ChangeDataCaptureConfigurationsClient { + /** + * The proxy service used to perform REST calls. + */ + private final ChangeDataCaptureConfigurationsService service; + + /** + * The service client containing this operation class. + */ + private final HorizonDbManagementClientImpl client; + + /** + * Initializes an instance of ChangeDataCaptureConfigurationsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + ChangeDataCaptureConfigurationsClientImpl(HorizonDbManagementClientImpl client) { + this.service = RestProxy.create(ChangeDataCaptureConfigurationsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for HorizonDbManagementClientChangeDataCaptureConfigurations to be used + * by the proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "HorizonDbManagementClientChangeDataCaptureConfigurations") + public interface ChangeDataCaptureConfigurationsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCaptureConfigurations/{configurationName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("configurationName") String configurationName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCaptureConfigurations/{configurationName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("configurationName") String configurationName, @HeaderParam("Accept") String accept, + Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCaptureConfigurations/{configurationName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createOrReplace(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("configurationName") String configurationName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") ChangeDataCaptureConfigurationInner resource, Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCaptureConfigurations/{configurationName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response createOrReplaceSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("configurationName") String configurationName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") ChangeDataCaptureConfigurationInner resource, Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCaptureConfigurations/{configurationName}") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> update(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("configurationName") String configurationName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") ChangeDataCaptureConfigurationForPatchUpdate properties, Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCaptureConfigurations/{configurationName}") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response updateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("configurationName") String configurationName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") ChangeDataCaptureConfigurationForPatchUpdate properties, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCaptureConfigurations/{configurationName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("configurationName") String configurationName, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCaptureConfigurations/{configurationName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("configurationName") String configurationName, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCaptureConfigurations") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCaptureConfigurations") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Gets a change data capture configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @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 change data capture configuration along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getWithResponseAsync(String resourceGroupName, + String clusterName, String configurationName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, configurationName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets a change data capture configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @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 change data capture configuration on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, String clusterName, + String configurationName) { + return getWithResponseAsync(resourceGroupName, clusterName, configurationName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets a change data capture configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @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 a change data capture configuration along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String clusterName, + String configurationName, Context context) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, clusterName, configurationName, accept, context); + } + + /** + * Gets a change data capture configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @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 change data capture configuration. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ChangeDataCaptureConfigurationInner get(String resourceGroupName, String clusterName, + String configurationName) { + return getWithResponse(resourceGroupName, clusterName, configurationName, Context.NONE).getValue(); + } + + /** + * Creates or replaces a change data capture configuration that enrolls a PostgreSQL database for Microsoft Fabric + * Mirroring. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @param resource Resource create parameters. + * @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 HorizonDB database enrollment for Microsoft Fabric Mirroring along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> createOrReplaceWithResponseAsync(String resourceGroupName, + String clusterName, String configurationName, ChangeDataCaptureConfigurationInner resource) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrReplace(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, configurationName, contentType, accept, + resource, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Creates or replaces a change data capture configuration that enrolls a PostgreSQL database for Microsoft Fabric + * Mirroring. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @param resource Resource create parameters. + * @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 HorizonDB database enrollment for Microsoft Fabric Mirroring along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrReplaceWithResponse(String resourceGroupName, String clusterName, + String configurationName, ChangeDataCaptureConfigurationInner resource) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrReplaceSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, configurationName, contentType, accept, + resource, Context.NONE); + } + + /** + * Creates or replaces a change data capture configuration that enrolls a PostgreSQL database for Microsoft Fabric + * Mirroring. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @param resource Resource create parameters. + * @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 a HorizonDB database enrollment for Microsoft Fabric Mirroring along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrReplaceWithResponse(String resourceGroupName, String clusterName, + String configurationName, ChangeDataCaptureConfigurationInner resource, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrReplaceSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, configurationName, contentType, accept, + resource, context); + } + + /** + * Creates or replaces a change data capture configuration that enrolls a PostgreSQL database for Microsoft Fabric + * Mirroring. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @param resource Resource create parameters. + * @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 a HorizonDB database enrollment for Microsoft Fabric Mirroring. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, ChangeDataCaptureConfigurationInner> + beginCreateOrReplaceAsync(String resourceGroupName, String clusterName, String configurationName, + ChangeDataCaptureConfigurationInner resource) { + Mono>> mono + = createOrReplaceWithResponseAsync(resourceGroupName, clusterName, configurationName, resource); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ChangeDataCaptureConfigurationInner.class, + ChangeDataCaptureConfigurationInner.class, this.client.getContext()); + } + + /** + * Creates or replaces a change data capture configuration that enrolls a PostgreSQL database for Microsoft Fabric + * Mirroring. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @param resource Resource create parameters. + * @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 a HorizonDB database enrollment for Microsoft Fabric Mirroring. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ChangeDataCaptureConfigurationInner> + beginCreateOrReplace(String resourceGroupName, String clusterName, String configurationName, + ChangeDataCaptureConfigurationInner resource) { + Response response + = createOrReplaceWithResponse(resourceGroupName, clusterName, configurationName, resource); + return this.client.getLroResult( + response, ChangeDataCaptureConfigurationInner.class, ChangeDataCaptureConfigurationInner.class, + Context.NONE); + } + + /** + * Creates or replaces a change data capture configuration that enrolls a PostgreSQL database for Microsoft Fabric + * Mirroring. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @param resource Resource create parameters. + * @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 a HorizonDB database enrollment for Microsoft Fabric Mirroring. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ChangeDataCaptureConfigurationInner> + beginCreateOrReplace(String resourceGroupName, String clusterName, String configurationName, + ChangeDataCaptureConfigurationInner resource, Context context) { + Response response + = createOrReplaceWithResponse(resourceGroupName, clusterName, configurationName, resource, context); + return this.client.getLroResult( + response, ChangeDataCaptureConfigurationInner.class, ChangeDataCaptureConfigurationInner.class, context); + } + + /** + * Creates or replaces a change data capture configuration that enrolls a PostgreSQL database for Microsoft Fabric + * Mirroring. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @param resource Resource create parameters. + * @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 HorizonDB database enrollment for Microsoft Fabric Mirroring on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrReplaceAsync(String resourceGroupName, String clusterName, + String configurationName, ChangeDataCaptureConfigurationInner resource) { + return beginCreateOrReplaceAsync(resourceGroupName, clusterName, configurationName, resource).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates or replaces a change data capture configuration that enrolls a PostgreSQL database for Microsoft Fabric + * Mirroring. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @param resource Resource create parameters. + * @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 HorizonDB database enrollment for Microsoft Fabric Mirroring. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ChangeDataCaptureConfigurationInner createOrReplace(String resourceGroupName, String clusterName, + String configurationName, ChangeDataCaptureConfigurationInner resource) { + return beginCreateOrReplace(resourceGroupName, clusterName, configurationName, resource).getFinalResult(); + } + + /** + * Creates or replaces a change data capture configuration that enrolls a PostgreSQL database for Microsoft Fabric + * Mirroring. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @param resource Resource create parameters. + * @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 a HorizonDB database enrollment for Microsoft Fabric Mirroring. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ChangeDataCaptureConfigurationInner createOrReplace(String resourceGroupName, String clusterName, + String configurationName, ChangeDataCaptureConfigurationInner resource, Context context) { + return beginCreateOrReplace(resourceGroupName, clusterName, configurationName, resource, context) + .getFinalResult(); + } + + /** + * Updates mutable change data capture configuration properties. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a HorizonDB database enrollment for Microsoft Fabric Mirroring along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> updateWithResponseAsync(String resourceGroupName, String clusterName, + String configurationName, ChangeDataCaptureConfigurationForPatchUpdate properties) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, configurationName, contentType, accept, + properties, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Updates mutable change data capture configuration properties. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a HorizonDB database enrollment for Microsoft Fabric Mirroring along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response updateWithResponse(String resourceGroupName, String clusterName, + String configurationName, ChangeDataCaptureConfigurationForPatchUpdate properties) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, configurationName, contentType, accept, + properties, Context.NONE); + } + + /** + * Updates mutable change data capture configuration properties. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a HorizonDB database enrollment for Microsoft Fabric Mirroring along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response updateWithResponse(String resourceGroupName, String clusterName, + String configurationName, ChangeDataCaptureConfigurationForPatchUpdate properties, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, configurationName, contentType, accept, + properties, context); + } + + /** + * Updates mutable change data capture configuration properties. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of a HorizonDB database enrollment for Microsoft Fabric Mirroring. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, ChangeDataCaptureConfigurationInner> + beginUpdateAsync(String resourceGroupName, String clusterName, String configurationName, + ChangeDataCaptureConfigurationForPatchUpdate properties) { + Mono>> mono + = updateWithResponseAsync(resourceGroupName, clusterName, configurationName, properties); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ChangeDataCaptureConfigurationInner.class, + ChangeDataCaptureConfigurationInner.class, this.client.getContext()); + } + + /** + * Updates mutable change data capture configuration properties. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of a HorizonDB database enrollment for Microsoft Fabric Mirroring. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ChangeDataCaptureConfigurationInner> beginUpdate( + String resourceGroupName, String clusterName, String configurationName, + ChangeDataCaptureConfigurationForPatchUpdate properties) { + Response response + = updateWithResponse(resourceGroupName, clusterName, configurationName, properties); + return this.client.getLroResult( + response, ChangeDataCaptureConfigurationInner.class, ChangeDataCaptureConfigurationInner.class, + Context.NONE); + } + + /** + * Updates mutable change data capture configuration properties. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of a HorizonDB database enrollment for Microsoft Fabric Mirroring. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ChangeDataCaptureConfigurationInner> beginUpdate( + String resourceGroupName, String clusterName, String configurationName, + ChangeDataCaptureConfigurationForPatchUpdate properties, Context context) { + Response response + = updateWithResponse(resourceGroupName, clusterName, configurationName, properties, context); + return this.client.getLroResult( + response, ChangeDataCaptureConfigurationInner.class, ChangeDataCaptureConfigurationInner.class, context); + } + + /** + * Updates mutable change data capture configuration properties. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a HorizonDB database enrollment for Microsoft Fabric Mirroring on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono updateAsync(String resourceGroupName, String clusterName, + String configurationName, ChangeDataCaptureConfigurationForPatchUpdate properties) { + return beginUpdateAsync(resourceGroupName, clusterName, configurationName, properties).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Updates mutable change data capture configuration properties. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a HorizonDB database enrollment for Microsoft Fabric Mirroring. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ChangeDataCaptureConfigurationInner update(String resourceGroupName, String clusterName, + String configurationName, ChangeDataCaptureConfigurationForPatchUpdate properties) { + return beginUpdate(resourceGroupName, clusterName, configurationName, properties).getFinalResult(); + } + + /** + * Updates mutable change data capture configuration properties. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a HorizonDB database enrollment for Microsoft Fabric Mirroring. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ChangeDataCaptureConfigurationInner update(String resourceGroupName, String clusterName, + String configurationName, ChangeDataCaptureConfigurationForPatchUpdate properties, Context context) { + return beginUpdate(resourceGroupName, clusterName, configurationName, properties, context).getFinalResult(); + } + + /** + * Deletes a change data capture configuration after destination-side replication has been stopped or detached. This + * operation never deletes the Microsoft Fabric mirrored-database item. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @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) + public Mono>> deleteWithResponseAsync(String resourceGroupName, String clusterName, + String configurationName) { + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, configurationName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes a change data capture configuration after destination-side replication has been stopped or detached. This + * operation never deletes the Microsoft Fabric mirrored-database item. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @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 deleteWithResponse(String resourceGroupName, String clusterName, + String configurationName) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, configurationName, Context.NONE); + } + + /** + * Deletes a change data capture configuration after destination-side replication has been stopped or detached. This + * operation never deletes the Microsoft Fabric mirrored-database item. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @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 deleteWithResponse(String resourceGroupName, String clusterName, + String configurationName, Context context) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, configurationName, context); + } + + /** + * Deletes a change data capture configuration after destination-side replication has been stopped or detached. This + * operation never deletes the Microsoft Fabric mirrored-database item. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @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) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String clusterName, + String configurationName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, clusterName, configurationName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes a change data capture configuration after destination-side replication has been stopped or detached. This + * operation never deletes the Microsoft Fabric mirrored-database item. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @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> beginDelete(String resourceGroupName, String clusterName, + String configurationName) { + Response response = deleteWithResponse(resourceGroupName, clusterName, configurationName); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + } + + /** + * Deletes a change data capture configuration after destination-side replication has been stopped or detached. This + * operation never deletes the Microsoft Fabric mirrored-database item. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @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> beginDelete(String resourceGroupName, String clusterName, + String configurationName, Context context) { + Response response = deleteWithResponse(resourceGroupName, clusterName, configurationName, context); + return this.client.getLroResult(response, Void.class, Void.class, context); + } + + /** + * Deletes a change data capture configuration after destination-side replication has been stopped or detached. This + * operation never deletes the Microsoft Fabric mirrored-database item. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @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) + public Mono deleteAsync(String resourceGroupName, String clusterName, String configurationName) { + return beginDeleteAsync(resourceGroupName, clusterName, configurationName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes a change data capture configuration after destination-side replication has been stopped or detached. This + * operation never deletes the Microsoft Fabric mirrored-database item. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @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 delete(String resourceGroupName, String clusterName, String configurationName) { + beginDelete(resourceGroupName, clusterName, configurationName).getFinalResult(); + } + + /** + * Deletes a change data capture configuration after destination-side replication has been stopped or detached. This + * operation never deletes the Microsoft Fabric mirrored-database item. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. + * @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 delete(String resourceGroupName, String clusterName, String configurationName, Context context) { + beginDelete(resourceGroupName, clusterName, configurationName, context).getFinalResult(); + } + + /** + * Lists change data capture configurations in a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ChangeDataCaptureConfiguration list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String clusterName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Lists change data capture configurations in a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ChangeDataCaptureConfiguration list operation as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String clusterName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, clusterName), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Lists change data capture configurations in a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ChangeDataCaptureConfiguration list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, + String clusterName) { + final String accept = "application/json"; + Response res + = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, clusterName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Lists change data capture configurations in a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ChangeDataCaptureConfiguration list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, + String clusterName, Context context) { + final String accept = "application/json"; + Response res + = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, clusterName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Lists change data capture configurations in a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ChangeDataCaptureConfiguration list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String clusterName) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, clusterName), + nextLink -> listNextSinglePage(nextLink)); + } + + /** + * Lists change data capture configurations in a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ChangeDataCaptureConfiguration list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String clusterName, + Context context) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, clusterName, context), + nextLink -> listNextSinglePage(nextLink, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a ChangeDataCaptureConfiguration list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a ChangeDataCaptureConfiguration list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a ChangeDataCaptureConfiguration list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureConfigurationsImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureConfigurationsImpl.java new file mode 100644 index 0000000000000..db3ba5d2f527b --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureConfigurationsImpl.java @@ -0,0 +1,158 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureConfigurationsClient; +import com.azure.resourcemanager.horizondb.fluent.models.ChangeDataCaptureConfigurationInner; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureConfiguration; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureConfigurations; + +public final class ChangeDataCaptureConfigurationsImpl implements ChangeDataCaptureConfigurations { + private static final ClientLogger LOGGER = new ClientLogger(ChangeDataCaptureConfigurationsImpl.class); + + private final ChangeDataCaptureConfigurationsClient innerClient; + + private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; + + public ChangeDataCaptureConfigurationsImpl(ChangeDataCaptureConfigurationsClient innerClient, + com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String resourceGroupName, String clusterName, + String configurationName, Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, clusterName, configurationName, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new ChangeDataCaptureConfigurationImpl(inner.getValue(), this.manager())); + } + + public ChangeDataCaptureConfiguration get(String resourceGroupName, String clusterName, String configurationName) { + ChangeDataCaptureConfigurationInner inner + = this.serviceClient().get(resourceGroupName, clusterName, configurationName); + if (inner != null) { + return new ChangeDataCaptureConfigurationImpl(inner, this.manager()); + } else { + return null; + } + } + + public void delete(String resourceGroupName, String clusterName, String configurationName) { + this.serviceClient().delete(resourceGroupName, clusterName, configurationName); + } + + public void delete(String resourceGroupName, String clusterName, String configurationName, Context context) { + this.serviceClient().delete(resourceGroupName, clusterName, configurationName, context); + } + + public PagedIterable list(String resourceGroupName, String clusterName) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, clusterName); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new ChangeDataCaptureConfigurationImpl(inner1, this.manager())); + } + + public PagedIterable list(String resourceGroupName, String clusterName, + Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, clusterName, context); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new ChangeDataCaptureConfigurationImpl(inner1, this.manager())); + } + + public ChangeDataCaptureConfiguration getById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String clusterName = ResourceManagerUtils.getValueFromIdByName(id, "clusters"); + if (clusterName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); + } + String configurationName = ResourceManagerUtils.getValueFromIdByName(id, "changeDataCaptureConfigurations"); + if (configurationName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format( + "The resource ID '%s' is not valid. Missing path segment 'changeDataCaptureConfigurations'.", id))); + } + return this.getWithResponse(resourceGroupName, clusterName, configurationName, Context.NONE).getValue(); + } + + public Response getByIdWithResponse(String id, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String clusterName = ResourceManagerUtils.getValueFromIdByName(id, "clusters"); + if (clusterName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); + } + String configurationName = ResourceManagerUtils.getValueFromIdByName(id, "changeDataCaptureConfigurations"); + if (configurationName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format( + "The resource ID '%s' is not valid. Missing path segment 'changeDataCaptureConfigurations'.", id))); + } + return this.getWithResponse(resourceGroupName, clusterName, configurationName, context); + } + + public void deleteById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String clusterName = ResourceManagerUtils.getValueFromIdByName(id, "clusters"); + if (clusterName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); + } + String configurationName = ResourceManagerUtils.getValueFromIdByName(id, "changeDataCaptureConfigurations"); + if (configurationName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format( + "The resource ID '%s' is not valid. Missing path segment 'changeDataCaptureConfigurations'.", id))); + } + this.delete(resourceGroupName, clusterName, configurationName, Context.NONE); + } + + public void deleteByIdWithResponse(String id, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String clusterName = ResourceManagerUtils.getValueFromIdByName(id, "clusters"); + if (clusterName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); + } + String configurationName = ResourceManagerUtils.getValueFromIdByName(id, "changeDataCaptureConfigurations"); + if (configurationName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format( + "The resource ID '%s' is not valid. Missing path segment 'changeDataCaptureConfigurations'.", id))); + } + this.delete(resourceGroupName, clusterName, configurationName, context); + } + + private ChangeDataCaptureConfigurationsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { + return this.serviceManager; + } + + public ChangeDataCaptureConfigurationImpl define(String name) { + return new ChangeDataCaptureConfigurationImpl(name, this.manager()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureDestinationImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureDestinationImpl.java new file mode 100644 index 0000000000000..9f134d1984a78 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureDestinationImpl.java @@ -0,0 +1,146 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.horizondb.fluent.models.ChangeDataCaptureDestinationInner; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDestination; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDestinationForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDestinationProperties; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDestinationPropertiesForPatchUpdate; + +public final class ChangeDataCaptureDestinationImpl implements ChangeDataCaptureDestination, + ChangeDataCaptureDestination.Definition, ChangeDataCaptureDestination.Update { + private ChangeDataCaptureDestinationInner innerObject; + + private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public ChangeDataCaptureDestinationProperties properties() { + return this.innerModel().properties(); + } + + public String eTag() { + return this.innerModel().eTag(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public String resourceGroupName() { + return resourceGroupName; + } + + public ChangeDataCaptureDestinationInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { + return this.serviceManager; + } + + private String resourceGroupName; + + private String clusterName; + + private String destinationName; + + private ChangeDataCaptureDestinationForPatchUpdate updateProperties; + + public ChangeDataCaptureDestinationImpl withExistingCluster(String resourceGroupName, String clusterName) { + this.resourceGroupName = resourceGroupName; + this.clusterName = clusterName; + return this; + } + + public ChangeDataCaptureDestination create() { + this.innerObject = serviceManager.serviceClient() + .getChangeDataCaptureDestinations() + .createOrReplace(resourceGroupName, clusterName, destinationName, this.innerModel(), Context.NONE); + return this; + } + + public ChangeDataCaptureDestination create(Context context) { + this.innerObject = serviceManager.serviceClient() + .getChangeDataCaptureDestinations() + .createOrReplace(resourceGroupName, clusterName, destinationName, this.innerModel(), context); + return this; + } + + ChangeDataCaptureDestinationImpl(String name, com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerObject = new ChangeDataCaptureDestinationInner(); + this.serviceManager = serviceManager; + this.destinationName = name; + } + + public ChangeDataCaptureDestinationImpl update() { + this.updateProperties = new ChangeDataCaptureDestinationForPatchUpdate(); + return this; + } + + public ChangeDataCaptureDestination apply() { + this.innerObject = serviceManager.serviceClient() + .getChangeDataCaptureDestinations() + .update(resourceGroupName, clusterName, destinationName, updateProperties, Context.NONE); + return this; + } + + public ChangeDataCaptureDestination apply(Context context) { + this.innerObject = serviceManager.serviceClient() + .getChangeDataCaptureDestinations() + .update(resourceGroupName, clusterName, destinationName, updateProperties, context); + return this; + } + + ChangeDataCaptureDestinationImpl(ChangeDataCaptureDestinationInner innerObject, + com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.clusterName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "clusters"); + this.destinationName + = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "changeDataCaptureDestinations"); + } + + public ChangeDataCaptureDestination refresh() { + this.innerObject = serviceManager.serviceClient() + .getChangeDataCaptureDestinations() + .getWithResponse(resourceGroupName, clusterName, destinationName, Context.NONE) + .getValue(); + return this; + } + + public ChangeDataCaptureDestination refresh(Context context) { + this.innerObject = serviceManager.serviceClient() + .getChangeDataCaptureDestinations() + .getWithResponse(resourceGroupName, clusterName, destinationName, context) + .getValue(); + return this; + } + + public ChangeDataCaptureDestinationImpl withProperties(ChangeDataCaptureDestinationProperties properties) { + this.innerModel().withProperties(properties); + return this; + } + + public ChangeDataCaptureDestinationImpl + withProperties(ChangeDataCaptureDestinationPropertiesForPatchUpdate properties) { + this.updateProperties.withProperties(properties); + return this; + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureDestinationsClientImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureDestinationsClientImpl.java new file mode 100644 index 0000000000000..495514b1a3df3 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureDestinationsClientImpl.java @@ -0,0 +1,1268 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Post; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.BinaryData; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureDestinationsClient; +import com.azure.resourcemanager.horizondb.fluent.models.ActivateChangeDataCaptureIdentityResultInner; +import com.azure.resourcemanager.horizondb.fluent.models.ChangeDataCaptureDestinationInner; +import com.azure.resourcemanager.horizondb.implementation.models.ChangeDataCaptureDestinationListResult; +import com.azure.resourcemanager.horizondb.models.ActivateChangeDataCaptureIdentityRequest; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDestinationForPatchUpdate; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in ChangeDataCaptureDestinationsClient. + */ +public final class ChangeDataCaptureDestinationsClientImpl implements ChangeDataCaptureDestinationsClient { + /** + * The proxy service used to perform REST calls. + */ + private final ChangeDataCaptureDestinationsService service; + + /** + * The service client containing this operation class. + */ + private final HorizonDbManagementClientImpl client; + + /** + * Initializes an instance of ChangeDataCaptureDestinationsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + ChangeDataCaptureDestinationsClientImpl(HorizonDbManagementClientImpl client) { + this.service = RestProxy.create(ChangeDataCaptureDestinationsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for HorizonDbManagementClientChangeDataCaptureDestinations to be used by + * the proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "HorizonDbManagementClientChangeDataCaptureDestinations") + public interface ChangeDataCaptureDestinationsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCaptureDestinations/{destinationName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("destinationName") String destinationName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCaptureDestinations/{destinationName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("destinationName") String destinationName, @HeaderParam("Accept") String accept, + Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCaptureDestinations/{destinationName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createOrReplace(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("destinationName") String destinationName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") ChangeDataCaptureDestinationInner resource, Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCaptureDestinations/{destinationName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response createOrReplaceSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("destinationName") String destinationName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") ChangeDataCaptureDestinationInner resource, Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCaptureDestinations/{destinationName}") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> update(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("destinationName") String destinationName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") ChangeDataCaptureDestinationForPatchUpdate properties, Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCaptureDestinations/{destinationName}") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response updateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("destinationName") String destinationName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") ChangeDataCaptureDestinationForPatchUpdate properties, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCaptureDestinations/{destinationName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("destinationName") String destinationName, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCaptureDestinations/{destinationName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("destinationName") String destinationName, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCaptureDestinations") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCaptureDestinations") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @HeaderParam("Accept") String accept, Context context); + + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCaptureDestinations/{destinationName}/activateIdentity") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> activateIdentity(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("If-Match") String ifMatch, + @PathParam("clusterName") String clusterName, @PathParam("destinationName") String destinationName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ActivateChangeDataCaptureIdentityRequest body, Context context); + + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCaptureDestinations/{destinationName}/activateIdentity") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response activateIdentitySync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("If-Match") String ifMatch, + @PathParam("clusterName") String clusterName, @PathParam("destinationName") String destinationName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") ActivateChangeDataCaptureIdentityRequest body, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Gets a change data capture destination. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @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 change data capture destination along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getWithResponseAsync(String resourceGroupName, + String clusterName, String destinationName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, destinationName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets a change data capture destination. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @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 change data capture destination on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, String clusterName, + String destinationName) { + return getWithResponseAsync(resourceGroupName, clusterName, destinationName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets a change data capture destination. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @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 a change data capture destination along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String clusterName, + String destinationName, Context context) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, clusterName, destinationName, accept, context); + } + + /** + * Gets a change data capture destination. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @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 change data capture destination. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ChangeDataCaptureDestinationInner get(String resourceGroupName, String clusterName, String destinationName) { + return getWithResponse(resourceGroupName, clusterName, destinationName, Context.NONE).getValue(); + } + + /** + * Creates or replaces a Microsoft Fabric change data capture destination. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param resource Resource create parameters. + * @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 reusable Microsoft Fabric destination for HorizonDB change data capture configurations along with + * {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> createOrReplaceWithResponseAsync(String resourceGroupName, + String clusterName, String destinationName, ChangeDataCaptureDestinationInner resource) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrReplace(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, destinationName, contentType, accept, + resource, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Creates or replaces a Microsoft Fabric change data capture destination. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param resource Resource create parameters. + * @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 reusable Microsoft Fabric destination for HorizonDB change data capture configurations along with + * {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrReplaceWithResponse(String resourceGroupName, String clusterName, + String destinationName, ChangeDataCaptureDestinationInner resource) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrReplaceSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, destinationName, contentType, accept, + resource, Context.NONE); + } + + /** + * Creates or replaces a Microsoft Fabric change data capture destination. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param resource Resource create parameters. + * @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 a reusable Microsoft Fabric destination for HorizonDB change data capture configurations along with + * {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrReplaceWithResponse(String resourceGroupName, String clusterName, + String destinationName, ChangeDataCaptureDestinationInner resource, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrReplaceSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, destinationName, contentType, accept, + resource, context); + } + + /** + * Creates or replaces a Microsoft Fabric change data capture destination. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param resource Resource create parameters. + * @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 a reusable Microsoft Fabric destination for HorizonDB change data + * capture configurations. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, ChangeDataCaptureDestinationInner> + beginCreateOrReplaceAsync(String resourceGroupName, String clusterName, String destinationName, + ChangeDataCaptureDestinationInner resource) { + Mono>> mono + = createOrReplaceWithResponseAsync(resourceGroupName, clusterName, destinationName, resource); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ChangeDataCaptureDestinationInner.class, + ChangeDataCaptureDestinationInner.class, this.client.getContext()); + } + + /** + * Creates or replaces a Microsoft Fabric change data capture destination. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param resource Resource create parameters. + * @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 a reusable Microsoft Fabric destination for HorizonDB change data + * capture configurations. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ChangeDataCaptureDestinationInner> + beginCreateOrReplace(String resourceGroupName, String clusterName, String destinationName, + ChangeDataCaptureDestinationInner resource) { + Response response + = createOrReplaceWithResponse(resourceGroupName, clusterName, destinationName, resource); + return this.client.getLroResult(response, + ChangeDataCaptureDestinationInner.class, ChangeDataCaptureDestinationInner.class, Context.NONE); + } + + /** + * Creates or replaces a Microsoft Fabric change data capture destination. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param resource Resource create parameters. + * @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 a reusable Microsoft Fabric destination for HorizonDB change data + * capture configurations. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ChangeDataCaptureDestinationInner> + beginCreateOrReplace(String resourceGroupName, String clusterName, String destinationName, + ChangeDataCaptureDestinationInner resource, Context context) { + Response response + = createOrReplaceWithResponse(resourceGroupName, clusterName, destinationName, resource, context); + return this.client.getLroResult(response, + ChangeDataCaptureDestinationInner.class, ChangeDataCaptureDestinationInner.class, context); + } + + /** + * Creates or replaces a Microsoft Fabric change data capture destination. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param resource Resource create parameters. + * @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 reusable Microsoft Fabric destination for HorizonDB change data capture configurations on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrReplaceAsync(String resourceGroupName, String clusterName, + String destinationName, ChangeDataCaptureDestinationInner resource) { + return beginCreateOrReplaceAsync(resourceGroupName, clusterName, destinationName, resource).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates or replaces a Microsoft Fabric change data capture destination. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param resource Resource create parameters. + * @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 reusable Microsoft Fabric destination for HorizonDB change data capture configurations. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ChangeDataCaptureDestinationInner createOrReplace(String resourceGroupName, String clusterName, + String destinationName, ChangeDataCaptureDestinationInner resource) { + return beginCreateOrReplace(resourceGroupName, clusterName, destinationName, resource).getFinalResult(); + } + + /** + * Creates or replaces a Microsoft Fabric change data capture destination. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param resource Resource create parameters. + * @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 a reusable Microsoft Fabric destination for HorizonDB change data capture configurations. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ChangeDataCaptureDestinationInner createOrReplace(String resourceGroupName, String clusterName, + String destinationName, ChangeDataCaptureDestinationInner resource, Context context) { + return beginCreateOrReplace(resourceGroupName, clusterName, destinationName, resource, context) + .getFinalResult(); + } + + /** + * Updates mutable change data capture destination properties. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a reusable Microsoft Fabric destination for HorizonDB change data capture configurations along with + * {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> updateWithResponseAsync(String resourceGroupName, String clusterName, + String destinationName, ChangeDataCaptureDestinationForPatchUpdate properties) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, destinationName, contentType, accept, + properties, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Updates mutable change data capture destination properties. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a reusable Microsoft Fabric destination for HorizonDB change data capture configurations along with + * {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response updateWithResponse(String resourceGroupName, String clusterName, + String destinationName, ChangeDataCaptureDestinationForPatchUpdate properties) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, destinationName, contentType, accept, + properties, Context.NONE); + } + + /** + * Updates mutable change data capture destination properties. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a reusable Microsoft Fabric destination for HorizonDB change data capture configurations along with + * {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response updateWithResponse(String resourceGroupName, String clusterName, + String destinationName, ChangeDataCaptureDestinationForPatchUpdate properties, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, destinationName, contentType, accept, + properties, context); + } + + /** + * Updates mutable change data capture destination properties. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of a reusable Microsoft Fabric destination for HorizonDB change data + * capture configurations. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, ChangeDataCaptureDestinationInner> + beginUpdateAsync(String resourceGroupName, String clusterName, String destinationName, + ChangeDataCaptureDestinationForPatchUpdate properties) { + Mono>> mono + = updateWithResponseAsync(resourceGroupName, clusterName, destinationName, properties); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), ChangeDataCaptureDestinationInner.class, + ChangeDataCaptureDestinationInner.class, this.client.getContext()); + } + + /** + * Updates mutable change data capture destination properties. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of a reusable Microsoft Fabric destination for HorizonDB change data + * capture configurations. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ChangeDataCaptureDestinationInner> beginUpdate( + String resourceGroupName, String clusterName, String destinationName, + ChangeDataCaptureDestinationForPatchUpdate properties) { + Response response = updateWithResponse(resourceGroupName, clusterName, destinationName, properties); + return this.client.getLroResult(response, + ChangeDataCaptureDestinationInner.class, ChangeDataCaptureDestinationInner.class, Context.NONE); + } + + /** + * Updates mutable change data capture destination properties. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of a reusable Microsoft Fabric destination for HorizonDB change data + * capture configurations. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, ChangeDataCaptureDestinationInner> beginUpdate( + String resourceGroupName, String clusterName, String destinationName, + ChangeDataCaptureDestinationForPatchUpdate properties, Context context) { + Response response + = updateWithResponse(resourceGroupName, clusterName, destinationName, properties, context); + return this.client.getLroResult(response, + ChangeDataCaptureDestinationInner.class, ChangeDataCaptureDestinationInner.class, context); + } + + /** + * Updates mutable change data capture destination properties. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a reusable Microsoft Fabric destination for HorizonDB change data capture configurations on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono updateAsync(String resourceGroupName, String clusterName, + String destinationName, ChangeDataCaptureDestinationForPatchUpdate properties) { + return beginUpdateAsync(resourceGroupName, clusterName, destinationName, properties).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Updates mutable change data capture destination properties. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a reusable Microsoft Fabric destination for HorizonDB change data capture configurations. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ChangeDataCaptureDestinationInner update(String resourceGroupName, String clusterName, + String destinationName, ChangeDataCaptureDestinationForPatchUpdate properties) { + return beginUpdate(resourceGroupName, clusterName, destinationName, properties).getFinalResult(); + } + + /** + * Updates mutable change data capture destination properties. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a reusable Microsoft Fabric destination for HorizonDB change data capture configurations. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ChangeDataCaptureDestinationInner update(String resourceGroupName, String clusterName, + String destinationName, ChangeDataCaptureDestinationForPatchUpdate properties, Context context) { + return beginUpdate(resourceGroupName, clusterName, destinationName, properties, context).getFinalResult(); + } + + /** + * Deletes a change data capture destination after all referencing configurations and identity assignments have been + * removed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @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) + public Mono>> deleteWithResponseAsync(String resourceGroupName, String clusterName, + String destinationName) { + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, destinationName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes a change data capture destination after all referencing configurations and identity assignments have been + * removed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @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 deleteWithResponse(String resourceGroupName, String clusterName, + String destinationName) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, destinationName, Context.NONE); + } + + /** + * Deletes a change data capture destination after all referencing configurations and identity assignments have been + * removed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @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 deleteWithResponse(String resourceGroupName, String clusterName, + String destinationName, Context context) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, destinationName, context); + } + + /** + * Deletes a change data capture destination after all referencing configurations and identity assignments have been + * removed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @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) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String clusterName, + String destinationName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, clusterName, destinationName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes a change data capture destination after all referencing configurations and identity assignments have been + * removed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @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> beginDelete(String resourceGroupName, String clusterName, + String destinationName) { + Response response = deleteWithResponse(resourceGroupName, clusterName, destinationName); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + } + + /** + * Deletes a change data capture destination after all referencing configurations and identity assignments have been + * removed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @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> beginDelete(String resourceGroupName, String clusterName, + String destinationName, Context context) { + Response response = deleteWithResponse(resourceGroupName, clusterName, destinationName, context); + return this.client.getLroResult(response, Void.class, Void.class, context); + } + + /** + * Deletes a change data capture destination after all referencing configurations and identity assignments have been + * removed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @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) + public Mono deleteAsync(String resourceGroupName, String clusterName, String destinationName) { + return beginDeleteAsync(resourceGroupName, clusterName, destinationName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes a change data capture destination after all referencing configurations and identity assignments have been + * removed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @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 delete(String resourceGroupName, String clusterName, String destinationName) { + beginDelete(resourceGroupName, clusterName, destinationName).getFinalResult(); + } + + /** + * Deletes a change data capture destination after all referencing configurations and identity assignments have been + * removed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @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 delete(String resourceGroupName, String clusterName, String destinationName, Context context) { + beginDelete(resourceGroupName, clusterName, destinationName, context).getFinalResult(); + } + + /** + * Lists change data capture destinations in a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ChangeDataCaptureDestination list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String clusterName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Lists change data capture destinations in a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ChangeDataCaptureDestination list operation as paginated response with + * {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String clusterName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, clusterName), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Lists change data capture destinations in a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ChangeDataCaptureDestination list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, + String clusterName) { + final String accept = "application/json"; + Response res + = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, clusterName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Lists change data capture destinations in a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ChangeDataCaptureDestination list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, + String clusterName, Context context) { + final String accept = "application/json"; + Response res + = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, clusterName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Lists change data capture destinations in a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ChangeDataCaptureDestination list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String clusterName) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, clusterName), + nextLink -> listNextSinglePage(nextLink)); + } + + /** + * Lists change data capture destinations in a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ChangeDataCaptureDestination list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String clusterName, + Context context) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, clusterName, context), + nextLink -> listNextSinglePage(nextLink, context)); + } + + /** + * Atomically activates a validated identity assignment for this destination. If-Match is evaluated against the + * destination entity tag. Activating the already-active assignment succeeds idempotently. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ifMatch The destination entity tag. The action proceeds only when this value matches the destination's + * current entity tag. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param body The content of the action request. + * @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 completed result of activating a change data capture destination identity along with {@link Response} + * on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> activateIdentityWithResponseAsync(String resourceGroupName, String ifMatch, + String clusterName, String destinationName, ActivateChangeDataCaptureIdentityRequest body) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.activateIdentity(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, ifMatch, clusterName, destinationName, contentType, + accept, body, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Atomically activates a validated identity assignment for this destination. If-Match is evaluated against the + * destination entity tag. Activating the already-active assignment succeeds idempotently. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ifMatch The destination entity tag. The action proceeds only when this value matches the destination's + * current entity tag. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param body The content of the action request. + * @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 completed result of activating a change data capture destination identity along with + * {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response activateIdentityWithResponse(String resourceGroupName, String ifMatch, + String clusterName, String destinationName, ActivateChangeDataCaptureIdentityRequest body) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.activateIdentitySync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, ifMatch, clusterName, destinationName, contentType, + accept, body, Context.NONE); + } + + /** + * Atomically activates a validated identity assignment for this destination. If-Match is evaluated against the + * destination entity tag. Activating the already-active assignment succeeds idempotently. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ifMatch The destination entity tag. The action proceeds only when this value matches the destination's + * current entity tag. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws 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 completed result of activating a change data capture destination identity along with + * {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response activateIdentityWithResponse(String resourceGroupName, String ifMatch, + String clusterName, String destinationName, ActivateChangeDataCaptureIdentityRequest body, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.activateIdentitySync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, ifMatch, clusterName, destinationName, contentType, + accept, body, context); + } + + /** + * Atomically activates a validated identity assignment for this destination. If-Match is evaluated against the + * destination entity tag. Activating the already-active assignment succeeds idempotently. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ifMatch The destination entity tag. The action proceeds only when this value matches the destination's + * current entity tag. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param body The content of the action request. + * @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 completed result of activating a change data capture + * destination identity. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public + PollerFlux, ActivateChangeDataCaptureIdentityResultInner> + beginActivateIdentityAsync(String resourceGroupName, String ifMatch, String clusterName, String destinationName, + ActivateChangeDataCaptureIdentityRequest body) { + Mono>> mono + = activateIdentityWithResponseAsync(resourceGroupName, ifMatch, clusterName, destinationName, body); + return this.client + .getLroResult( + mono, this.client.getHttpPipeline(), ActivateChangeDataCaptureIdentityResultInner.class, + ActivateChangeDataCaptureIdentityResultInner.class, this.client.getContext()); + } + + /** + * Atomically activates a validated identity assignment for this destination. If-Match is evaluated against the + * destination entity tag. Activating the already-active assignment succeeds idempotently. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ifMatch The destination entity tag. The action proceeds only when this value matches the destination's + * current entity tag. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param body The content of the action request. + * @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 completed result of activating a change data capture + * destination identity. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public + SyncPoller, ActivateChangeDataCaptureIdentityResultInner> + beginActivateIdentity(String resourceGroupName, String ifMatch, String clusterName, String destinationName, + ActivateChangeDataCaptureIdentityRequest body) { + Response response + = activateIdentityWithResponse(resourceGroupName, ifMatch, clusterName, destinationName, body); + return this.client + .getLroResult( + response, ActivateChangeDataCaptureIdentityResultInner.class, + ActivateChangeDataCaptureIdentityResultInner.class, Context.NONE); + } + + /** + * Atomically activates a validated identity assignment for this destination. If-Match is evaluated against the + * destination entity tag. Activating the already-active assignment succeeds idempotently. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ifMatch The destination entity tag. The action proceeds only when this value matches the destination's + * current entity tag. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws 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 completed result of activating a change data capture + * destination identity. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public + SyncPoller, ActivateChangeDataCaptureIdentityResultInner> + beginActivateIdentity(String resourceGroupName, String ifMatch, String clusterName, String destinationName, + ActivateChangeDataCaptureIdentityRequest body, Context context) { + Response response + = activateIdentityWithResponse(resourceGroupName, ifMatch, clusterName, destinationName, body, context); + return this.client + .getLroResult( + response, ActivateChangeDataCaptureIdentityResultInner.class, + ActivateChangeDataCaptureIdentityResultInner.class, context); + } + + /** + * Atomically activates a validated identity assignment for this destination. If-Match is evaluated against the + * destination entity tag. Activating the already-active assignment succeeds idempotently. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ifMatch The destination entity tag. The action proceeds only when this value matches the destination's + * current entity tag. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param body The content of the action request. + * @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 completed result of activating a change data capture destination identity on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono activateIdentityAsync(String resourceGroupName, + String ifMatch, String clusterName, String destinationName, ActivateChangeDataCaptureIdentityRequest body) { + return beginActivateIdentityAsync(resourceGroupName, ifMatch, clusterName, destinationName, body).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Atomically activates a validated identity assignment for this destination. If-Match is evaluated against the + * destination entity tag. Activating the already-active assignment succeeds idempotently. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ifMatch The destination entity tag. The action proceeds only when this value matches the destination's + * current entity tag. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param body The content of the action request. + * @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 completed result of activating a change data capture destination identity. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ActivateChangeDataCaptureIdentityResultInner activateIdentity(String resourceGroupName, String ifMatch, + String clusterName, String destinationName, ActivateChangeDataCaptureIdentityRequest body) { + return beginActivateIdentity(resourceGroupName, ifMatch, clusterName, destinationName, body).getFinalResult(); + } + + /** + * Atomically activates a validated identity assignment for this destination. If-Match is evaluated against the + * destination entity tag. Activating the already-active assignment succeeds idempotently. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ifMatch The destination entity tag. The action proceeds only when this value matches the destination's + * current entity tag. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws 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 completed result of activating a change data capture destination identity. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public ActivateChangeDataCaptureIdentityResultInner activateIdentity(String resourceGroupName, String ifMatch, + String clusterName, String destinationName, ActivateChangeDataCaptureIdentityRequest body, Context context) { + return beginActivateIdentity(resourceGroupName, ifMatch, clusterName, destinationName, body, context) + .getFinalResult(); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a ChangeDataCaptureDestination list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a ChangeDataCaptureDestination list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a ChangeDataCaptureDestination list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureDestinationsImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureDestinationsImpl.java new file mode 100644 index 0000000000000..9dec27c659a4f --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureDestinationsImpl.java @@ -0,0 +1,183 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureDestinationsClient; +import com.azure.resourcemanager.horizondb.fluent.models.ActivateChangeDataCaptureIdentityResultInner; +import com.azure.resourcemanager.horizondb.fluent.models.ChangeDataCaptureDestinationInner; +import com.azure.resourcemanager.horizondb.models.ActivateChangeDataCaptureIdentityRequest; +import com.azure.resourcemanager.horizondb.models.ActivateChangeDataCaptureIdentityResult; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDestination; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDestinations; + +public final class ChangeDataCaptureDestinationsImpl implements ChangeDataCaptureDestinations { + private static final ClientLogger LOGGER = new ClientLogger(ChangeDataCaptureDestinationsImpl.class); + + private final ChangeDataCaptureDestinationsClient innerClient; + + private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; + + public ChangeDataCaptureDestinationsImpl(ChangeDataCaptureDestinationsClient innerClient, + com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String resourceGroupName, String clusterName, + String destinationName, Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, clusterName, destinationName, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new ChangeDataCaptureDestinationImpl(inner.getValue(), this.manager())); + } + + public ChangeDataCaptureDestination get(String resourceGroupName, String clusterName, String destinationName) { + ChangeDataCaptureDestinationInner inner + = this.serviceClient().get(resourceGroupName, clusterName, destinationName); + if (inner != null) { + return new ChangeDataCaptureDestinationImpl(inner, this.manager()); + } else { + return null; + } + } + + public void delete(String resourceGroupName, String clusterName, String destinationName) { + this.serviceClient().delete(resourceGroupName, clusterName, destinationName); + } + + public void delete(String resourceGroupName, String clusterName, String destinationName, Context context) { + this.serviceClient().delete(resourceGroupName, clusterName, destinationName, context); + } + + public PagedIterable list(String resourceGroupName, String clusterName) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, clusterName); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new ChangeDataCaptureDestinationImpl(inner1, this.manager())); + } + + public PagedIterable list(String resourceGroupName, String clusterName, + Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, clusterName, context); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new ChangeDataCaptureDestinationImpl(inner1, this.manager())); + } + + public ActivateChangeDataCaptureIdentityResult activateIdentity(String resourceGroupName, String ifMatch, + String clusterName, String destinationName, ActivateChangeDataCaptureIdentityRequest body) { + ActivateChangeDataCaptureIdentityResultInner inner + = this.serviceClient().activateIdentity(resourceGroupName, ifMatch, clusterName, destinationName, body); + if (inner != null) { + return new ActivateChangeDataCaptureIdentityResultImpl(inner, this.manager()); + } else { + return null; + } + } + + public ActivateChangeDataCaptureIdentityResult activateIdentity(String resourceGroupName, String ifMatch, + String clusterName, String destinationName, ActivateChangeDataCaptureIdentityRequest body, Context context) { + ActivateChangeDataCaptureIdentityResultInner inner = this.serviceClient() + .activateIdentity(resourceGroupName, ifMatch, clusterName, destinationName, body, context); + if (inner != null) { + return new ActivateChangeDataCaptureIdentityResultImpl(inner, this.manager()); + } else { + return null; + } + } + + public ChangeDataCaptureDestination getById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String clusterName = ResourceManagerUtils.getValueFromIdByName(id, "clusters"); + if (clusterName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); + } + String destinationName = ResourceManagerUtils.getValueFromIdByName(id, "changeDataCaptureDestinations"); + if (destinationName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format( + "The resource ID '%s' is not valid. Missing path segment 'changeDataCaptureDestinations'.", id))); + } + return this.getWithResponse(resourceGroupName, clusterName, destinationName, Context.NONE).getValue(); + } + + public Response getByIdWithResponse(String id, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String clusterName = ResourceManagerUtils.getValueFromIdByName(id, "clusters"); + if (clusterName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); + } + String destinationName = ResourceManagerUtils.getValueFromIdByName(id, "changeDataCaptureDestinations"); + if (destinationName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format( + "The resource ID '%s' is not valid. Missing path segment 'changeDataCaptureDestinations'.", id))); + } + return this.getWithResponse(resourceGroupName, clusterName, destinationName, context); + } + + public void deleteById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String clusterName = ResourceManagerUtils.getValueFromIdByName(id, "clusters"); + if (clusterName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); + } + String destinationName = ResourceManagerUtils.getValueFromIdByName(id, "changeDataCaptureDestinations"); + if (destinationName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format( + "The resource ID '%s' is not valid. Missing path segment 'changeDataCaptureDestinations'.", id))); + } + this.delete(resourceGroupName, clusterName, destinationName, Context.NONE); + } + + public void deleteByIdWithResponse(String id, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String clusterName = ResourceManagerUtils.getValueFromIdByName(id, "clusters"); + if (clusterName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); + } + String destinationName = ResourceManagerUtils.getValueFromIdByName(id, "changeDataCaptureDestinations"); + if (destinationName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format( + "The resource ID '%s' is not valid. Missing path segment 'changeDataCaptureDestinations'.", id))); + } + this.delete(resourceGroupName, clusterName, destinationName, context); + } + + private ChangeDataCaptureDestinationsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { + return this.serviceManager; + } + + public ChangeDataCaptureDestinationImpl define(String name) { + return new ChangeDataCaptureDestinationImpl(name, this.manager()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbClusterImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ClusterImpl.java similarity index 56% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbClusterImpl.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ClusterImpl.java index b2714f10b7dd8..ecbcc8b6223e5 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbClusterImpl.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ClusterImpl.java @@ -7,18 +7,17 @@ import com.azure.core.management.Region; import com.azure.core.management.SystemData; import com.azure.core.util.Context; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbClusterInner; -import com.azure.resourcemanager.horizondb.models.HorizonDbCluster; -import com.azure.resourcemanager.horizondb.models.HorizonDbClusterForPatchUpdate; -import com.azure.resourcemanager.horizondb.models.HorizonDbClusterProperties; -import com.azure.resourcemanager.horizondb.models.HorizonDbClusterPropertiesForPatchUpdate; -import com.azure.resourcemanager.horizondb.models.ManagedServiceIdentity; +import com.azure.resourcemanager.horizondb.fluent.models.ClusterInner; +import com.azure.resourcemanager.horizondb.models.Cluster; +import com.azure.resourcemanager.horizondb.models.ClusterForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.ClusterProperties; +import com.azure.resourcemanager.horizondb.models.ClusterPropertiesForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.HorizonDbClusterManagedServiceIdentity; import java.util.Collections; import java.util.Map; -public final class HorizonDbClusterImpl - implements HorizonDbCluster, HorizonDbCluster.Definition, HorizonDbCluster.Update { - private HorizonDbClusterInner innerObject; +public final class ClusterImpl implements Cluster, Cluster.Definition, Cluster.Update { + private ClusterInner innerObject; private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; @@ -47,11 +46,11 @@ public Map tags() { } } - public HorizonDbClusterProperties properties() { + public ClusterProperties properties() { return this.innerModel().properties(); } - public ManagedServiceIdentity identity() { + public HorizonDbClusterManagedServiceIdentity identity() { return this.innerModel().identity(); } @@ -71,7 +70,7 @@ public String resourceGroupName() { return resourceGroupName; } - public HorizonDbClusterInner innerModel() { + public ClusterInner innerModel() { return this.innerObject; } @@ -83,111 +82,94 @@ private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { private String clusterName; - private HorizonDbClusterForPatchUpdate updateProperties; + private ClusterForPatchUpdate updateProperties; - public HorizonDbClusterImpl withExistingResourceGroup(String resourceGroupName) { + public ClusterImpl withExistingResourceGroup(String resourceGroupName) { this.resourceGroupName = resourceGroupName; return this; } - public HorizonDbCluster create() { + public Cluster create() { this.innerObject = serviceManager.serviceClient() - .getHorizonDbClusters() - .createOrUpdate(resourceGroupName, clusterName, this.innerModel(), Context.NONE); + .getClusters() + .createOrReplace(resourceGroupName, clusterName, this.innerModel(), Context.NONE); return this; } - public HorizonDbCluster create(Context context) { + public Cluster create(Context context) { this.innerObject = serviceManager.serviceClient() - .getHorizonDbClusters() - .createOrUpdate(resourceGroupName, clusterName, this.innerModel(), context); + .getClusters() + .createOrReplace(resourceGroupName, clusterName, this.innerModel(), context); return this; } - HorizonDbClusterImpl(String name, com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { - this.innerObject = new HorizonDbClusterInner(); + ClusterImpl(String name, com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerObject = new ClusterInner(); this.serviceManager = serviceManager; this.clusterName = name; } - public HorizonDbClusterImpl update() { - this.updateProperties = new HorizonDbClusterForPatchUpdate(); + public ClusterImpl update() { + this.updateProperties = new ClusterForPatchUpdate(); return this; } - public HorizonDbCluster apply() { + public Cluster apply() { this.innerObject = serviceManager.serviceClient() - .getHorizonDbClusters() + .getClusters() .update(resourceGroupName, clusterName, updateProperties, Context.NONE); return this; } - public HorizonDbCluster apply(Context context) { + public Cluster apply(Context context) { this.innerObject = serviceManager.serviceClient() - .getHorizonDbClusters() + .getClusters() .update(resourceGroupName, clusterName, updateProperties, context); return this; } - HorizonDbClusterImpl(HorizonDbClusterInner innerObject, - com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + ClusterImpl(ClusterInner innerObject, com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); this.clusterName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "clusters"); } - public HorizonDbCluster refresh() { + public Cluster refresh() { this.innerObject = serviceManager.serviceClient() - .getHorizonDbClusters() + .getClusters() .getByResourceGroupWithResponse(resourceGroupName, clusterName, Context.NONE) .getValue(); return this; } - public HorizonDbCluster refresh(Context context) { + public Cluster refresh(Context context) { this.innerObject = serviceManager.serviceClient() - .getHorizonDbClusters() + .getClusters() .getByResourceGroupWithResponse(resourceGroupName, clusterName, context) .getValue(); return this; } - public void start() { - serviceManager.horizonDbClusters().start(resourceGroupName, clusterName); + public Cluster failover() { + return serviceManager.clusters().failover(resourceGroupName, clusterName); } - public void start(Context context) { - serviceManager.horizonDbClusters().start(resourceGroupName, clusterName, context); + public Cluster failover(Context context) { + return serviceManager.clusters().failover(resourceGroupName, clusterName, context); } - public void stop() { - serviceManager.horizonDbClusters().stop(resourceGroupName, clusterName); - } - - public void stop(Context context) { - serviceManager.horizonDbClusters().stop(resourceGroupName, clusterName, context); - } - - public void restart() { - serviceManager.horizonDbClusters().restart(resourceGroupName, clusterName); - } - - public void restart(Context context) { - serviceManager.horizonDbClusters().restart(resourceGroupName, clusterName, context); - } - - public HorizonDbClusterImpl withRegion(Region location) { + public ClusterImpl withRegion(Region location) { this.innerModel().withLocation(location.toString()); return this; } - public HorizonDbClusterImpl withRegion(String location) { + public ClusterImpl withRegion(String location) { this.innerModel().withLocation(location); return this; } - public HorizonDbClusterImpl withTags(Map tags) { + public ClusterImpl withTags(Map tags) { if (isInCreateMode()) { this.innerModel().withTags(tags); return this; @@ -197,12 +179,12 @@ public HorizonDbClusterImpl withTags(Map tags) { } } - public HorizonDbClusterImpl withProperties(HorizonDbClusterProperties properties) { + public ClusterImpl withProperties(ClusterProperties properties) { this.innerModel().withProperties(properties); return this; } - public HorizonDbClusterImpl withIdentity(ManagedServiceIdentity identity) { + public ClusterImpl withIdentity(HorizonDbClusterManagedServiceIdentity identity) { if (isInCreateMode()) { this.innerModel().withIdentity(identity); return this; @@ -212,7 +194,7 @@ public HorizonDbClusterImpl withIdentity(ManagedServiceIdentity identity) { } } - public HorizonDbClusterImpl withProperties(HorizonDbClusterPropertiesForPatchUpdate properties) { + public ClusterImpl withProperties(ClusterPropertiesForPatchUpdate properties) { this.updateProperties.withProperties(properties); return this; } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbClustersClientImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ClustersClientImpl.java similarity index 61% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbClustersClientImpl.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ClustersClientImpl.java index 761111df6dd0f..c8699e7bb6ed8 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbClustersClientImpl.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ClustersClientImpl.java @@ -34,22 +34,22 @@ import com.azure.core.util.FluxUtil; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbClusterInner; -import com.azure.resourcemanager.horizondb.implementation.models.HorizonDbClusterListResult; -import com.azure.resourcemanager.horizondb.models.HorizonDbClusterForPatchUpdate; +import com.azure.resourcemanager.horizondb.fluent.ClustersClient; +import com.azure.resourcemanager.horizondb.fluent.models.ClusterInner; +import com.azure.resourcemanager.horizondb.implementation.models.ClusterListResult; +import com.azure.resourcemanager.horizondb.models.ClusterForPatchUpdate; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; /** - * An instance of this class provides access to all the operations defined in HorizonDbClustersClient. + * An instance of this class provides access to all the operations defined in ClustersClient. */ -public final class HorizonDbClustersClientImpl implements HorizonDbClustersClient { +public final class ClustersClientImpl implements ClustersClient { /** * The proxy service used to perform REST calls. */ - private final HorizonDbClustersService service; + private final ClustersService service; /** * The service client containing this operation class. @@ -57,28 +57,27 @@ public final class HorizonDbClustersClientImpl implements HorizonDbClustersClien private final HorizonDbManagementClientImpl client; /** - * Initializes an instance of HorizonDbClustersClientImpl. + * Initializes an instance of ClustersClientImpl. * * @param client the instance of the service client containing this operation class. */ - HorizonDbClustersClientImpl(HorizonDbManagementClientImpl client) { - this.service - = RestProxy.create(HorizonDbClustersService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + ClustersClientImpl(HorizonDbManagementClientImpl client) { + this.service = RestProxy.create(ClustersService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for HorizonDbManagementClientHorizonDbClusters to be used by the proxy - * service to perform REST calls. + * The interface defining all the services for HorizonDbManagementClientClusters to be used by the proxy service to + * perform REST calls. */ @Host("{endpoint}") - @ServiceInterface(name = "HorizonDbManagementClientHorizonDbClusters") - public interface HorizonDbClustersService { + @ServiceInterface(name = "HorizonDbManagementClientClusters") + public interface ClustersService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, @HeaderParam("Accept") String accept, Context context); @@ -87,7 +86,7 @@ Mono> getByResourceGroup(@HostParam("endpoint") @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getByResourceGroupSync(@HostParam("endpoint") String endpoint, + Response getByResourceGroupSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, @HeaderParam("Accept") String accept, Context context); @@ -95,20 +94,20 @@ Response getByResourceGroupSync(@HostParam("endpoint") St @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + Mono>> createOrReplace(@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") HorizonDbClusterInner resource, Context context); + @BodyParam("application/json") ClusterInner resource, Context context); @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("endpoint") String endpoint, + Response createOrReplaceSync(@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") HorizonDbClusterInner resource, Context context); + @BodyParam("application/json") ClusterInner resource, Context context); @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}") @ExpectedResponses({ 200, 202 }) @@ -117,7 +116,7 @@ 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") HorizonDbClusterForPatchUpdate properties, Context context); + @BodyParam("application/json") ClusterForPatchUpdate properties, Context context); @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}") @ExpectedResponses({ 200, 202 }) @@ -126,7 +125,7 @@ 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, - @BodyParam("application/json") HorizonDbClusterForPatchUpdate properties, Context context); + @BodyParam("application/json") ClusterForPatchUpdate properties, Context context); @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}") @@ -150,7 +149,7 @@ Response deleteSync(@HostParam("endpoint") String endpoint, @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, Context context); @@ -159,7 +158,7 @@ Mono> listByResourceGroup(@HostParam("endpo @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listByResourceGroupSync(@HostParam("endpoint") String endpoint, + Response listByResourceGroupSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, Context context); @@ -168,7 +167,7 @@ Response listByResourceGroupSync(@HostParam("endpoin @Get("/subscriptions/{subscriptionId}/providers/Microsoft.HorizonDb/clusters") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("endpoint") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @@ -176,60 +175,24 @@ Mono> list(@HostParam("endpoint") String en @Get("/subscriptions/{subscriptionId}/providers/Microsoft.HorizonDb/clusters") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listSync(@HostParam("endpoint") String endpoint, + Response listSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/start") + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/failover") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> start(@HostParam("endpoint") String endpoint, + Mono>> failover(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/start") + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/failover") @ExpectedResponses({ 200, 202 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response startSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/stop") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> stop(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/stop") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response stopSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/restart") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> restart(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/restart") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response restartSync(@HostParam("endpoint") String endpoint, + Response failoverSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, @HeaderParam("Accept") String accept, Context context); @@ -238,7 +201,7 @@ Response restartSync(@HostParam("endpoint") String endpoint, @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroupNext( + Mono> listByResourceGroupNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @@ -246,7 +209,7 @@ Mono> listByResourceGroupNext( @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listByResourceGroupNextSync( + Response listByResourceGroupNextSync( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @@ -254,7 +217,7 @@ Response listByResourceGroupNextSync( @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listBySubscriptionNext( + Mono> listBySubscriptionNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @@ -262,7 +225,7 @@ Mono> listBySubscriptionNext( @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listBySubscriptionNextSync( + Response listBySubscriptionNextSync( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } @@ -279,7 +242,7 @@ Response listBySubscriptionNextSync( * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, String clusterName) { final String accept = "application/json"; return FluxUtil @@ -299,7 +262,7 @@ public Mono> getByResourceGroupWithResponseAsync * @return information about a HorizonDB cluster on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getByResourceGroupAsync(String resourceGroupName, String clusterName) { + public Mono getByResourceGroupAsync(String resourceGroupName, String clusterName) { return getByResourceGroupWithResponseAsync(resourceGroupName, clusterName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -316,7 +279,7 @@ public Mono getByResourceGroupAsync(String resourceGroupN * @return information about a HorizonDB cluster along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse(String resourceGroupName, String clusterName, + public Response getByResourceGroupWithResponse(String resourceGroupName, String clusterName, Context context) { final String accept = "application/json"; return service.getByResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(), @@ -334,12 +297,20 @@ public Response getByResourceGroupWithResponse(String res * @return information about a HorizonDB cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) - public HorizonDbClusterInner getByResourceGroup(String resourceGroupName, String clusterName) { + public ClusterInner getByResourceGroup(String resourceGroupName, String clusterName) { return getByResourceGroupWithResponse(resourceGroupName, clusterName, Context.NONE).getValue(); } /** - * Creates a new HorizonDB cluster or updates an existing cluster. + * Creates a new HorizonDB cluster or replaces an existing cluster. PointInTimeRestore creates the new Cluster + * resource and hydrates its service-owned database storage from an available source backup. It does not clone + * source pools, Pool-scoped endpoints, firewall rules, parameter-group associations, or other child resources. The + * new Cluster receives its service-generated Cluster-scoped Endpoint named cluster. For restore, postgreSqlVersion + * must be omitted because the service obtains it from backup metadata; all other new-cluster configuration comes + * from the request or service defaults. Same-location restore requires and honors pointInTimeUtc and allows + * creationSourceClusterLocation to be omitted. Cross-location restore requires creationSourceClusterLocation to + * identify the source cluster's Azure location and requires pointInTimeUtc, but ignores the supplied timestamp and + * restores the latest available backup. Cross-location responses omit pointInTimeUtc. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -350,19 +321,27 @@ public HorizonDbClusterInner getByResourceGroup(String resourceGroupName, String * @return represents the HorizonDB cluster along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String clusterName, HorizonDbClusterInner resource) { + public Mono>> createOrReplaceWithResponseAsync(String resourceGroupName, + String clusterName, ClusterInner resource) { final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + .withContext(context -> service.createOrReplace(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, clusterName, contentType, accept, resource, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Creates a new HorizonDB cluster or updates an existing cluster. + * Creates a new HorizonDB cluster or replaces an existing cluster. PointInTimeRestore creates the new Cluster + * resource and hydrates its service-owned database storage from an available source backup. It does not clone + * source pools, Pool-scoped endpoints, firewall rules, parameter-group associations, or other child resources. The + * new Cluster receives its service-generated Cluster-scoped Endpoint named cluster. For restore, postgreSqlVersion + * must be omitted because the service obtains it from backup metadata; all other new-cluster configuration comes + * from the request or service defaults. Same-location restore requires and honors pointInTimeUtc and allows + * creationSourceClusterLocation to be omitted. Cross-location restore requires creationSourceClusterLocation to + * identify the source cluster's Azure location and requires pointInTimeUtc, but ignores the supplied timestamp and + * restores the latest available backup. Cross-location responses omit pointInTimeUtc. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -373,17 +352,25 @@ public Mono>> createOrUpdateWithResponseAsync(String r * @return represents the HorizonDB cluster along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String clusterName, - HorizonDbClusterInner resource) { + private Response createOrReplaceWithResponse(String resourceGroupName, String clusterName, + ClusterInner resource) { final String contentType = "application/json"; final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + return service.createOrReplaceSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, clusterName, contentType, accept, resource, Context.NONE); } /** - * Creates a new HorizonDB cluster or updates an existing cluster. + * Creates a new HorizonDB cluster or replaces an existing cluster. PointInTimeRestore creates the new Cluster + * resource and hydrates its service-owned database storage from an available source backup. It does not clone + * source pools, Pool-scoped endpoints, firewall rules, parameter-group associations, or other child resources. The + * new Cluster receives its service-generated Cluster-scoped Endpoint named cluster. For restore, postgreSqlVersion + * must be omitted because the service obtains it from backup metadata; all other new-cluster configuration comes + * from the request or service defaults. Same-location restore requires and honors pointInTimeUtc and allows + * creationSourceClusterLocation to be omitted. Cross-location restore requires creationSourceClusterLocation to + * identify the source cluster's Azure location and requires pointInTimeUtc, but ignores the supplied timestamp and + * restores the latest available backup. Cross-location responses omit pointInTimeUtc. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -395,16 +382,24 @@ private Response createOrUpdateWithResponse(String resourceGroupName * @return represents the HorizonDB cluster along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String clusterName, - HorizonDbClusterInner resource, Context context) { + private Response createOrReplaceWithResponse(String resourceGroupName, String clusterName, + ClusterInner resource, Context context) { final String contentType = "application/json"; final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + return service.createOrReplaceSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, clusterName, contentType, accept, resource, context); } /** - * Creates a new HorizonDB cluster or updates an existing cluster. + * Creates a new HorizonDB cluster or replaces an existing cluster. PointInTimeRestore creates the new Cluster + * resource and hydrates its service-owned database storage from an available source backup. It does not clone + * source pools, Pool-scoped endpoints, firewall rules, parameter-group associations, or other child resources. The + * new Cluster receives its service-generated Cluster-scoped Endpoint named cluster. For restore, postgreSqlVersion + * must be omitted because the service obtains it from backup metadata; all other new-cluster configuration comes + * from the request or service defaults. Same-location restore requires and honors pointInTimeUtc and allows + * creationSourceClusterLocation to be omitted. Cross-location restore requires creationSourceClusterLocation to + * identify the source cluster's Azure location and requires pointInTimeUtc, but ignores the supplied timestamp and + * restores the latest available backup. Cross-location responses omit pointInTimeUtc. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -415,17 +410,24 @@ private Response createOrUpdateWithResponse(String resourceGroupName * @return the {@link PollerFlux} for polling of represents the HorizonDB cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, HorizonDbClusterInner> - beginCreateOrUpdateAsync(String resourceGroupName, String clusterName, HorizonDbClusterInner resource) { + public PollerFlux, ClusterInner> beginCreateOrReplaceAsync(String resourceGroupName, + String clusterName, ClusterInner resource) { Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, clusterName, resource); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), HorizonDbClusterInner.class, HorizonDbClusterInner.class, - this.client.getContext()); + = createOrReplaceWithResponseAsync(resourceGroupName, clusterName, resource); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + ClusterInner.class, ClusterInner.class, this.client.getContext()); } /** - * Creates a new HorizonDB cluster or updates an existing cluster. + * Creates a new HorizonDB cluster or replaces an existing cluster. PointInTimeRestore creates the new Cluster + * resource and hydrates its service-owned database storage from an available source backup. It does not clone + * source pools, Pool-scoped endpoints, firewall rules, parameter-group associations, or other child resources. The + * new Cluster receives its service-generated Cluster-scoped Endpoint named cluster. For restore, postgreSqlVersion + * must be omitted because the service obtains it from backup metadata; all other new-cluster configuration comes + * from the request or service defaults. Same-location restore requires and honors pointInTimeUtc and allows + * creationSourceClusterLocation to be omitted. Cross-location restore requires creationSourceClusterLocation to + * identify the source cluster's Azure location and requires pointInTimeUtc, but ignores the supplied timestamp and + * restores the latest available backup. Cross-location responses omit pointInTimeUtc. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -436,15 +438,23 @@ private Response createOrUpdateWithResponse(String resourceGroupName * @return the {@link SyncPoller} for polling of represents the HorizonDB cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, HorizonDbClusterInner> - beginCreateOrUpdate(String resourceGroupName, String clusterName, HorizonDbClusterInner resource) { - Response response = createOrUpdateWithResponse(resourceGroupName, clusterName, resource); - return this.client.getLroResult(response, - HorizonDbClusterInner.class, HorizonDbClusterInner.class, Context.NONE); + public SyncPoller, ClusterInner> beginCreateOrReplace(String resourceGroupName, + String clusterName, ClusterInner resource) { + Response response = createOrReplaceWithResponse(resourceGroupName, clusterName, resource); + return this.client.getLroResult(response, ClusterInner.class, ClusterInner.class, + Context.NONE); } /** - * Creates a new HorizonDB cluster or updates an existing cluster. + * Creates a new HorizonDB cluster or replaces an existing cluster. PointInTimeRestore creates the new Cluster + * resource and hydrates its service-owned database storage from an available source backup. It does not clone + * source pools, Pool-scoped endpoints, firewall rules, parameter-group associations, or other child resources. The + * new Cluster receives its service-generated Cluster-scoped Endpoint named cluster. For restore, postgreSqlVersion + * must be omitted because the service obtains it from backup metadata; all other new-cluster configuration comes + * from the request or service defaults. Same-location restore requires and honors pointInTimeUtc and allows + * creationSourceClusterLocation to be omitted. Cross-location restore requires creationSourceClusterLocation to + * identify the source cluster's Azure location and requires pointInTimeUtc, but ignores the supplied timestamp and + * restores the latest available backup. Cross-location responses omit pointInTimeUtc. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -456,15 +466,23 @@ private Response createOrUpdateWithResponse(String resourceGroupName * @return the {@link SyncPoller} for polling of represents the HorizonDB cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, HorizonDbClusterInner> beginCreateOrUpdate( - String resourceGroupName, String clusterName, HorizonDbClusterInner resource, Context context) { - Response response = createOrUpdateWithResponse(resourceGroupName, clusterName, resource, context); - return this.client.getLroResult(response, - HorizonDbClusterInner.class, HorizonDbClusterInner.class, context); + public SyncPoller, ClusterInner> beginCreateOrReplace(String resourceGroupName, + String clusterName, ClusterInner resource, Context context) { + Response response = createOrReplaceWithResponse(resourceGroupName, clusterName, resource, context); + return this.client.getLroResult(response, ClusterInner.class, ClusterInner.class, + context); } /** - * Creates a new HorizonDB cluster or updates an existing cluster. + * Creates a new HorizonDB cluster or replaces an existing cluster. PointInTimeRestore creates the new Cluster + * resource and hydrates its service-owned database storage from an available source backup. It does not clone + * source pools, Pool-scoped endpoints, firewall rules, parameter-group associations, or other child resources. The + * new Cluster receives its service-generated Cluster-scoped Endpoint named cluster. For restore, postgreSqlVersion + * must be omitted because the service obtains it from backup metadata; all other new-cluster configuration comes + * from the request or service defaults. Same-location restore requires and honors pointInTimeUtc and allows + * creationSourceClusterLocation to be omitted. Cross-location restore requires creationSourceClusterLocation to + * identify the source cluster's Azure location and requires pointInTimeUtc, but ignores the supplied timestamp and + * restores the latest available backup. Cross-location responses omit pointInTimeUtc. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -475,14 +493,22 @@ public SyncPoller, HorizonDbClusterInner> begi * @return represents the HorizonDB cluster on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createOrUpdateAsync(String resourceGroupName, String clusterName, - HorizonDbClusterInner resource) { - return beginCreateOrUpdateAsync(resourceGroupName, clusterName, resource).last() + public Mono createOrReplaceAsync(String resourceGroupName, String clusterName, + ClusterInner resource) { + return beginCreateOrReplaceAsync(resourceGroupName, clusterName, resource).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Creates a new HorizonDB cluster or updates an existing cluster. + * Creates a new HorizonDB cluster or replaces an existing cluster. PointInTimeRestore creates the new Cluster + * resource and hydrates its service-owned database storage from an available source backup. It does not clone + * source pools, Pool-scoped endpoints, firewall rules, parameter-group associations, or other child resources. The + * new Cluster receives its service-generated Cluster-scoped Endpoint named cluster. For restore, postgreSqlVersion + * must be omitted because the service obtains it from backup metadata; all other new-cluster configuration comes + * from the request or service defaults. Same-location restore requires and honors pointInTimeUtc and allows + * creationSourceClusterLocation to be omitted. Cross-location restore requires creationSourceClusterLocation to + * identify the source cluster's Azure location and requires pointInTimeUtc, but ignores the supplied timestamp and + * restores the latest available backup. Cross-location responses omit pointInTimeUtc. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -493,13 +519,20 @@ public Mono createOrUpdateAsync(String resourceGroupName, * @return represents the HorizonDB cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) - public HorizonDbClusterInner createOrUpdate(String resourceGroupName, String clusterName, - HorizonDbClusterInner resource) { - return beginCreateOrUpdate(resourceGroupName, clusterName, resource).getFinalResult(); + public ClusterInner createOrReplace(String resourceGroupName, String clusterName, ClusterInner resource) { + return beginCreateOrReplace(resourceGroupName, clusterName, resource).getFinalResult(); } /** - * Creates a new HorizonDB cluster or updates an existing cluster. + * Creates a new HorizonDB cluster or replaces an existing cluster. PointInTimeRestore creates the new Cluster + * resource and hydrates its service-owned database storage from an available source backup. It does not clone + * source pools, Pool-scoped endpoints, firewall rules, parameter-group associations, or other child resources. The + * new Cluster receives its service-generated Cluster-scoped Endpoint named cluster. For restore, postgreSqlVersion + * must be omitted because the service obtains it from backup metadata; all other new-cluster configuration comes + * from the request or service defaults. Same-location restore requires and honors pointInTimeUtc and allows + * creationSourceClusterLocation to be omitted. Cross-location restore requires creationSourceClusterLocation to + * identify the source cluster's Azure location and requires pointInTimeUtc, but ignores the supplied timestamp and + * restores the latest available backup. Cross-location responses omit pointInTimeUtc. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -511,13 +544,13 @@ public HorizonDbClusterInner createOrUpdate(String resourceGroupName, String clu * @return represents the HorizonDB cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) - public HorizonDbClusterInner createOrUpdate(String resourceGroupName, String clusterName, - HorizonDbClusterInner resource, Context context) { - return beginCreateOrUpdate(resourceGroupName, clusterName, resource, context).getFinalResult(); + public ClusterInner createOrReplace(String resourceGroupName, String clusterName, ClusterInner resource, + Context context) { + return beginCreateOrReplace(resourceGroupName, clusterName, resource, context).getFinalResult(); } /** - * Updates an existing HorizonDB cluster (e.g., tags, virtual cores, replica count). + * Updates an existing HorizonDB cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -529,7 +562,7 @@ public HorizonDbClusterInner createOrUpdate(String resourceGroupName, String clu */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> updateWithResponseAsync(String resourceGroupName, String clusterName, - HorizonDbClusterForPatchUpdate properties) { + ClusterForPatchUpdate properties) { final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil.withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), @@ -538,7 +571,7 @@ public Mono>> updateWithResponseAsync(String resourceG } /** - * Updates an existing HorizonDB cluster (e.g., tags, virtual cores, replica count). + * Updates an existing HorizonDB cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -550,7 +583,7 @@ public Mono>> updateWithResponseAsync(String resourceG */ @ServiceMethod(returns = ReturnType.SINGLE) private Response updateWithResponse(String resourceGroupName, String clusterName, - HorizonDbClusterForPatchUpdate properties) { + ClusterForPatchUpdate properties) { final String contentType = "application/json"; final String accept = "application/json"; return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), @@ -559,7 +592,7 @@ private Response updateWithResponse(String resourceGroupName, String } /** - * Updates an existing HorizonDB cluster (e.g., tags, virtual cores, replica count). + * Updates an existing HorizonDB cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -572,7 +605,7 @@ private Response updateWithResponse(String resourceGroupName, String */ @ServiceMethod(returns = ReturnType.SINGLE) private Response updateWithResponse(String resourceGroupName, String clusterName, - HorizonDbClusterForPatchUpdate properties, Context context) { + ClusterForPatchUpdate properties, Context context) { final String contentType = "application/json"; final String accept = "application/json"; return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), @@ -580,7 +613,7 @@ private Response updateWithResponse(String resourceGroupName, String } /** - * Updates an existing HorizonDB cluster (e.g., tags, virtual cores, replica count). + * Updates an existing HorizonDB cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -591,16 +624,15 @@ private Response updateWithResponse(String resourceGroupName, String * @return the {@link PollerFlux} for polling of represents the HorizonDB cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, HorizonDbClusterInner> - beginUpdateAsync(String resourceGroupName, String clusterName, HorizonDbClusterForPatchUpdate properties) { + public PollerFlux, ClusterInner> beginUpdateAsync(String resourceGroupName, + String clusterName, ClusterForPatchUpdate properties) { Mono>> mono = updateWithResponseAsync(resourceGroupName, clusterName, properties); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), HorizonDbClusterInner.class, HorizonDbClusterInner.class, - this.client.getContext()); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + ClusterInner.class, ClusterInner.class, this.client.getContext()); } /** - * Updates an existing HorizonDB cluster (e.g., tags, virtual cores, replica count). + * Updates an existing HorizonDB cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -611,15 +643,15 @@ private Response updateWithResponse(String resourceGroupName, String * @return the {@link SyncPoller} for polling of represents the HorizonDB cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, HorizonDbClusterInner> beginUpdate(String resourceGroupName, - String clusterName, HorizonDbClusterForPatchUpdate properties) { + public SyncPoller, ClusterInner> beginUpdate(String resourceGroupName, String clusterName, + ClusterForPatchUpdate properties) { Response response = updateWithResponse(resourceGroupName, clusterName, properties); - return this.client.getLroResult(response, - HorizonDbClusterInner.class, HorizonDbClusterInner.class, Context.NONE); + return this.client.getLroResult(response, ClusterInner.class, ClusterInner.class, + Context.NONE); } /** - * Updates an existing HorizonDB cluster (e.g., tags, virtual cores, replica count). + * Updates an existing HorizonDB cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -631,15 +663,15 @@ public SyncPoller, HorizonDbClusterInner> begi * @return the {@link SyncPoller} for polling of represents the HorizonDB cluster. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, HorizonDbClusterInner> beginUpdate(String resourceGroupName, - String clusterName, HorizonDbClusterForPatchUpdate properties, Context context) { + public SyncPoller, ClusterInner> beginUpdate(String resourceGroupName, String clusterName, + ClusterForPatchUpdate properties, Context context) { Response response = updateWithResponse(resourceGroupName, clusterName, properties, context); - return this.client.getLroResult(response, - HorizonDbClusterInner.class, HorizonDbClusterInner.class, context); + return this.client.getLroResult(response, ClusterInner.class, ClusterInner.class, + context); } /** - * Updates an existing HorizonDB cluster (e.g., tags, virtual cores, replica count). + * Updates an existing HorizonDB cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -650,14 +682,14 @@ public SyncPoller, HorizonDbClusterInner> begi * @return represents the HorizonDB cluster on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono updateAsync(String resourceGroupName, String clusterName, - HorizonDbClusterForPatchUpdate properties) { + public Mono updateAsync(String resourceGroupName, String clusterName, + ClusterForPatchUpdate properties) { return beginUpdateAsync(resourceGroupName, clusterName, properties).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Updates an existing HorizonDB cluster (e.g., tags, virtual cores, replica count). + * Updates an existing HorizonDB cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -668,13 +700,12 @@ public Mono updateAsync(String resourceGroupName, String * @return represents the HorizonDB cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) - public HorizonDbClusterInner update(String resourceGroupName, String clusterName, - HorizonDbClusterForPatchUpdate properties) { + public ClusterInner update(String resourceGroupName, String clusterName, ClusterForPatchUpdate properties) { return beginUpdate(resourceGroupName, clusterName, properties).getFinalResult(); } /** - * Updates an existing HorizonDB cluster (e.g., tags, virtual cores, replica count). + * Updates an existing HorizonDB cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -686,13 +717,15 @@ public HorizonDbClusterInner update(String resourceGroupName, String clusterName * @return represents the HorizonDB cluster. */ @ServiceMethod(returns = ReturnType.SINGLE) - public HorizonDbClusterInner update(String resourceGroupName, String clusterName, - HorizonDbClusterForPatchUpdate properties, Context context) { + public ClusterInner update(String resourceGroupName, String clusterName, ClusterForPatchUpdate properties, + Context context) { return beginUpdate(resourceGroupName, clusterName, properties, context).getFinalResult(); } /** - * Deletes a HorizonDB cluster. + * Deletes a HorizonDB cluster, its Cluster-scoped Endpoint, and all remaining child resources. For an accepted + * deletion, the long-running operation remains nonterminal until physical deletion completes and point GET returns + * 404 Not Found. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -710,7 +743,9 @@ public Mono>> deleteWithResponseAsync(String resourceG } /** - * Deletes a HorizonDB cluster. + * Deletes a HorizonDB cluster, its Cluster-scoped Endpoint, and all remaining child resources. For an accepted + * deletion, the long-running operation remains nonterminal until physical deletion completes and point GET returns + * 404 Not Found. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -726,7 +761,9 @@ private Response deleteWithResponse(String resourceGroupName, String } /** - * Deletes a HorizonDB cluster. + * Deletes a HorizonDB cluster, its Cluster-scoped Endpoint, and all remaining child resources. For an accepted + * deletion, the long-running operation remains nonterminal until physical deletion completes and point GET returns + * 404 Not Found. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -743,7 +780,9 @@ private Response deleteWithResponse(String resourceGroupName, String } /** - * Deletes a HorizonDB cluster. + * Deletes a HorizonDB cluster, its Cluster-scoped Endpoint, and all remaining child resources. For an accepted + * deletion, the long-running operation remains nonterminal until physical deletion completes and point GET returns + * 404 Not Found. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -760,7 +799,9 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN } /** - * Deletes a HorizonDB cluster. + * Deletes a HorizonDB cluster, its Cluster-scoped Endpoint, and all remaining child resources. For an accepted + * deletion, the long-running operation remains nonterminal until physical deletion completes and point GET returns + * 404 Not Found. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -776,7 +817,9 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * Deletes a HorizonDB cluster. + * Deletes a HorizonDB cluster, its Cluster-scoped Endpoint, and all remaining child resources. For an accepted + * deletion, the long-running operation remains nonterminal until physical deletion completes and point GET returns + * 404 Not Found. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -794,7 +837,9 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * Deletes a HorizonDB cluster. + * Deletes a HorizonDB cluster, its Cluster-scoped Endpoint, and all remaining child resources. For an accepted + * deletion, the long-running operation remains nonterminal until physical deletion completes and point GET returns + * 404 Not Found. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -809,7 +854,9 @@ public Mono deleteAsync(String resourceGroupName, String clusterName) { } /** - * Deletes a HorizonDB cluster. + * Deletes a HorizonDB cluster, its Cluster-scoped Endpoint, and all remaining child resources. For an accepted + * deletion, the long-running operation remains nonterminal until physical deletion completes and point GET returns + * 404 Not Found. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -823,7 +870,9 @@ public void delete(String resourceGroupName, String clusterName) { } /** - * Deletes a HorizonDB cluster. + * Deletes a HorizonDB cluster, its Cluster-scoped Endpoint, and all remaining child resources. For an accepted + * deletion, the long-running operation remains nonterminal until physical deletion completes and point GET returns + * 404 Not Found. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -844,17 +893,17 @@ public void delete(String resourceGroupName, String clusterName, Context context * @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 of a HorizonDbCluster list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a Cluster list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -865,10 +914,10 @@ private Mono> listByResourceGroupSinglePage * @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 of a HorizonDbCluster list operation as paginated response with {@link PagedFlux}. + * @return the response of a Cluster list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listByResourceGroupAsync(String resourceGroupName) { + public PagedFlux listByResourceGroupAsync(String resourceGroupName) { return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); } @@ -880,12 +929,12 @@ public PagedFlux listByResourceGroupAsync(String resource * @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 of a HorizonDbCluster list operation along with {@link PagedResponse}. + * @return the response of a Cluster list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByResourceGroupSinglePage(String resourceGroupName) { + private PagedResponse listByResourceGroupSinglePage(String resourceGroupName) { final String accept = "application/json"; - Response res = service.listByResourceGroupSync(this.client.getEndpoint(), + Response res = service.listByResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); @@ -899,13 +948,12 @@ private PagedResponse listByResourceGroupSinglePage(Strin * @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 of a HorizonDbCluster list operation along with {@link PagedResponse}. + * @return the response of a Cluster list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByResourceGroupSinglePage(String resourceGroupName, - Context context) { + private PagedResponse listByResourceGroupSinglePage(String resourceGroupName, Context context) { final String accept = "application/json"; - Response res = service.listByResourceGroupSync(this.client.getEndpoint(), + Response res = service.listByResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); @@ -918,10 +966,10 @@ private PagedResponse listByResourceGroupSinglePage(Strin * @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 of a HorizonDbCluster list operation as paginated response with {@link PagedIterable}. + * @return the response of a Cluster list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName) { + public PagedIterable listByResourceGroup(String resourceGroupName) { return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName), nextLink -> listByResourceGroupNextSinglePage(nextLink)); } @@ -934,10 +982,10 @@ public PagedIterable listByResourceGroup(String resourceG * @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 of a HorizonDbCluster list operation as paginated response with {@link PagedIterable}. + * @return the response of a Cluster list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName, context), nextLink -> listByResourceGroupNextSinglePage(nextLink, context)); } @@ -947,17 +995,17 @@ public PagedIterable listByResourceGroup(String resourceG * * @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 of a HorizonDbCluster list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a Cluster list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { + private Mono> listSinglePageAsync() { final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -966,10 +1014,10 @@ private Mono> listSinglePageAsync() { * * @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 of a HorizonDbCluster list operation as paginated response with {@link PagedFlux}. + * @return the response of a Cluster list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync() { + public PagedFlux listAsync() { return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); } @@ -979,13 +1027,13 @@ public PagedFlux listAsync() { * * @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 of a HorizonDbCluster list operation along with {@link PagedResponse}. + * @return the response of a Cluster list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage() { + private PagedResponse listSinglePage() { final String accept = "application/json"; - Response res = service.listSync(this.client.getEndpoint(), - this.client.getApiVersion(), this.client.getSubscriptionId(), accept, Context.NONE); + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), accept, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); } @@ -997,13 +1045,13 @@ private PagedResponse listSinglePage() { * @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 of a HorizonDbCluster list operation along with {@link PagedResponse}. + * @return the response of a Cluster list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(Context context) { + private PagedResponse listSinglePage(Context context) { final String accept = "application/json"; - Response res = service.listSync(this.client.getEndpoint(), - this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context); + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); } @@ -1013,10 +1061,10 @@ private PagedResponse listSinglePage(Context context) { * * @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 of a HorizonDbCluster list operation as paginated response with {@link PagedIterable}. + * @return the response of a Cluster list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { + public PagedIterable list() { return new PagedIterable<>(() -> listSinglePage(), nextLink -> listBySubscriptionNextSinglePage(nextLink)); } @@ -1027,16 +1075,18 @@ public PagedIterable list() { * @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 of a HorizonDbCluster list operation as paginated response with {@link PagedIterable}. + * @return the response of a Cluster list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { + public PagedIterable list(Context context) { return new PagedIterable<>(() -> listSinglePage(context), nextLink -> listBySubscriptionNextSinglePage(nextLink, context)); } /** - * Starts a stopped HorizonDB cluster. + * Triggers failover within the cluster's designated read-write pool. HorizonDB selects the replacement node using + * the same eligibility and node-selection rules as automatic failover. The request fails with 409 Conflict when the + * designated pool is not eligible for failover or another conflicting operation is in progress. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -1046,16 +1096,18 @@ public PagedIterable list(Context context) { * @return the response body along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> startWithResponseAsync(String resourceGroupName, String clusterName) { + public Mono>> failoverWithResponseAsync(String resourceGroupName, String clusterName) { final String accept = "application/json"; return FluxUtil - .withContext(context -> service.start(this.client.getEndpoint(), this.client.getApiVersion(), + .withContext(context -> service.failover(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Starts a stopped HorizonDB cluster. + * Triggers failover within the cluster's designated read-write pool. HorizonDB selects the replacement node using + * the same eligibility and node-selection rules as automatic failover. The request fails with 409 Conflict when the + * designated pool is not eligible for failover or another conflicting operation is in progress. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -1065,14 +1117,16 @@ public Mono>> startWithResponseAsync(String resourceGr * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response startWithResponse(String resourceGroupName, String clusterName) { + private Response failoverWithResponse(String resourceGroupName, String clusterName) { final String accept = "application/json"; - return service.startSync(this.client.getEndpoint(), this.client.getApiVersion(), + return service.failoverSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, Context.NONE); } /** - * Starts a stopped HorizonDB cluster. + * Triggers failover within the cluster's designated read-write pool. HorizonDB selects the replacement node using + * the same eligibility and node-selection rules as automatic failover. The request fails with 409 Conflict when the + * designated pool is not eligible for failover or another conflicting operation is in progress. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -1083,14 +1137,16 @@ private Response startWithResponse(String resourceGroupName, String * @return the response body along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response startWithResponse(String resourceGroupName, String clusterName, Context context) { + private Response failoverWithResponse(String resourceGroupName, String clusterName, Context context) { final String accept = "application/json"; - return service.startSync(this.client.getEndpoint(), this.client.getApiVersion(), + return service.failoverSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, context); } /** - * Starts a stopped HorizonDB cluster. + * Triggers failover within the cluster's designated read-write pool. HorizonDB selects the replacement node using + * the same eligibility and node-selection rules as automatic failover. The request fails with 409 Conflict when the + * designated pool is not eligible for failover or another conflicting operation is in progress. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -1100,311 +1156,17 @@ private Response startWithResponse(String resourceGroupName, String * @return the {@link PollerFlux} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginStartAsync(String resourceGroupName, String clusterName) { - Mono>> mono = startWithResponseAsync(resourceGroupName, clusterName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Starts a stopped HorizonDB cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginStart(String resourceGroupName, String clusterName) { - Response response = startWithResponse(resourceGroupName, clusterName); - return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); - } - - /** - * Starts a stopped HorizonDB cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginStart(String resourceGroupName, String clusterName, - Context context) { - Response response = startWithResponse(resourceGroupName, clusterName, context); - return this.client.getLroResult(response, Void.class, Void.class, context); - } - - /** - * Starts a stopped HorizonDB cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono startAsync(String resourceGroupName, String clusterName) { - return beginStartAsync(resourceGroupName, clusterName).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Starts a stopped HorizonDB cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void start(String resourceGroupName, String clusterName) { - beginStart(resourceGroupName, clusterName).getFinalResult(); - } - - /** - * Starts a stopped HorizonDB cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void start(String resourceGroupName, String clusterName, Context context) { - beginStart(resourceGroupName, clusterName, context).getFinalResult(); - } - - /** - * Stops a running HorizonDB cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> stopWithResponseAsync(String resourceGroupName, String clusterName) { - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.stop(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Stops a running HorizonDB cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response stopWithResponse(String resourceGroupName, String clusterName) { - final String accept = "application/json"; - return service.stopSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, clusterName, accept, Context.NONE); - } - - /** - * Stops a running HorizonDB cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response stopWithResponse(String resourceGroupName, String clusterName, Context context) { - final String accept = "application/json"; - return service.stopSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, clusterName, accept, context); - } - - /** - * Stops a running HorizonDB cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginStopAsync(String resourceGroupName, String clusterName) { - Mono>> mono = stopWithResponseAsync(resourceGroupName, clusterName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Stops a running HorizonDB cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginStop(String resourceGroupName, String clusterName) { - Response response = stopWithResponse(resourceGroupName, clusterName); - return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); - } - - /** - * Stops a running HorizonDB cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginStop(String resourceGroupName, String clusterName, Context context) { - Response response = stopWithResponse(resourceGroupName, clusterName, context); - return this.client.getLroResult(response, Void.class, Void.class, context); - } - - /** - * Stops a running HorizonDB cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono stopAsync(String resourceGroupName, String clusterName) { - return beginStopAsync(resourceGroupName, clusterName).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Stops a running HorizonDB cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void stop(String resourceGroupName, String clusterName) { - beginStop(resourceGroupName, clusterName).getFinalResult(); - } - - /** - * Stops a running HorizonDB cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public void stop(String resourceGroupName, String clusterName, Context context) { - beginStop(resourceGroupName, clusterName, context).getFinalResult(); - } - - /** - * Restarts a HorizonDB cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> restartWithResponseAsync(String resourceGroupName, String clusterName) { - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.restart(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Restarts a HorizonDB cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response restartWithResponse(String resourceGroupName, String clusterName) { - final String accept = "application/json"; - return service.restartSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, Context.NONE); - } - - /** - * Restarts a HorizonDB cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response body along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response restartWithResponse(String resourceGroupName, String clusterName, Context context) { - final String accept = "application/json"; - return service.restartSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, context); - } - - /** - * Restarts a HorizonDB cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, Void> beginRestartAsync(String resourceGroupName, String clusterName) { - Mono>> mono = restartWithResponseAsync(resourceGroupName, clusterName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); + public PollerFlux, ClusterInner> beginFailoverAsync(String resourceGroupName, + String clusterName) { + Mono>> mono = failoverWithResponseAsync(resourceGroupName, clusterName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + ClusterInner.class, ClusterInner.class, this.client.getContext()); } /** - * Restarts a HorizonDB cluster. + * Triggers failover within the cluster's designated read-write pool. HorizonDB selects the replacement node using + * the same eligibility and node-selection rules as automatic failover. The request fails with 409 Conflict when the + * designated pool is not eligible for failover or another conflicting operation is in progress. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -1414,13 +1176,17 @@ public PollerFlux, Void> beginRestartAsync(String resourceGroup * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginRestart(String resourceGroupName, String clusterName) { - Response response = restartWithResponse(resourceGroupName, clusterName); - return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + public SyncPoller, ClusterInner> beginFailover(String resourceGroupName, + String clusterName) { + Response response = failoverWithResponse(resourceGroupName, clusterName); + return this.client.getLroResult(response, ClusterInner.class, ClusterInner.class, + Context.NONE); } /** - * Restarts a HorizonDB cluster. + * Triggers failover within the cluster's designated read-write pool. HorizonDB selects the replacement node using + * the same eligibility and node-selection rules as automatic failover. The request fails with 409 Conflict when the + * designated pool is not eligible for failover or another conflicting operation is in progress. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -1431,43 +1197,51 @@ public SyncPoller, Void> beginRestart(String resourceGroupName, * @return the {@link SyncPoller} for polling of long-running operation. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, Void> beginRestart(String resourceGroupName, String clusterName, - Context context) { - Response response = restartWithResponse(resourceGroupName, clusterName, context); - return this.client.getLroResult(response, Void.class, Void.class, context); + public SyncPoller, ClusterInner> beginFailover(String resourceGroupName, + String clusterName, Context context) { + Response response = failoverWithResponse(resourceGroupName, clusterName, context); + return this.client.getLroResult(response, ClusterInner.class, ClusterInner.class, + context); } /** - * Restarts a HorizonDB cluster. + * Triggers failover within the cluster's designated read-write pool. HorizonDB selects the replacement node using + * the same eligibility and node-selection rules as automatic failover. The request fails with 409 Conflict when the + * designated pool is not eligible for failover or another conflicting operation is in progress. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return A {@link Mono} that completes when a successful response is received. + * @return the response body on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono restartAsync(String resourceGroupName, String clusterName) { - return beginRestartAsync(resourceGroupName, clusterName).last().flatMap(this.client::getLroFinalResultOrError); + public Mono failoverAsync(String resourceGroupName, String clusterName) { + return beginFailoverAsync(resourceGroupName, clusterName).last().flatMap(this.client::getLroFinalResultOrError); } /** - * Restarts a HorizonDB cluster. + * Triggers failover within the cluster's designated read-write pool. HorizonDB selects the replacement node using + * the same eligibility and node-selection rules as automatic failover. The request fails with 409 Conflict when the + * designated pool is not eligible for failover or another conflicting operation is in progress. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void restart(String resourceGroupName, String clusterName) { - beginRestart(resourceGroupName, clusterName).getFinalResult(); + public ClusterInner failover(String resourceGroupName, String clusterName) { + return beginFailover(resourceGroupName, clusterName).getFinalResult(); } /** - * Restarts a HorizonDB cluster. + * Triggers failover within the cluster's designated read-write pool. HorizonDB selects the replacement node using + * the same eligibility and node-selection rules as automatic failover. The request fails with 409 Conflict when the + * designated pool is not eligible for failover or another conflicting operation is in progress. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -1475,10 +1249,11 @@ public void restart(String resourceGroupName, String clusterName) { * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. */ @ServiceMethod(returns = ReturnType.SINGLE) - public void restart(String resourceGroupName, String clusterName, Context context) { - beginRestart(resourceGroupName, clusterName, context).getFinalResult(); + public ClusterInner failover(String resourceGroupName, String clusterName, Context context) { + return beginFailover(resourceGroupName, clusterName, context).getFinalResult(); } /** @@ -1488,17 +1263,17 @@ public void restart(String resourceGroupName, String clusterName, Context contex * @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 of a HorizonDbCluster list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a Cluster list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { + private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { final String accept = "application/json"; return FluxUtil .withContext( context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1509,12 +1284,12 @@ private Mono> listByResourceGroupNextSingle * @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 of a HorizonDbCluster list operation along with {@link PagedResponse}. + * @return the response of a Cluster list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByResourceGroupNextSinglePage(String nextLink) { + private PagedResponse listByResourceGroupNextSinglePage(String nextLink) { final String accept = "application/json"; - Response res + Response res = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); @@ -1528,12 +1303,12 @@ private PagedResponse listByResourceGroupNextSinglePage(S * @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 of a HorizonDbCluster list operation along with {@link PagedResponse}. + * @return the response of a Cluster list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByResourceGroupNextSinglePage(String nextLink, Context context) { + private PagedResponse listByResourceGroupNextSinglePage(String nextLink, Context context) { final String accept = "application/json"; - Response res + Response res = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); @@ -1546,17 +1321,17 @@ private PagedResponse listByResourceGroupNextSinglePage(S * @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 of a HorizonDbCluster list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a Cluster list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { + private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { final String accept = "application/json"; return FluxUtil .withContext( context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1567,12 +1342,12 @@ private Mono> listBySubscriptionNextSingleP * @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 of a HorizonDbCluster list operation along with {@link PagedResponse}. + * @return the response of a Cluster list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listBySubscriptionNextSinglePage(String nextLink) { + private PagedResponse listBySubscriptionNextSinglePage(String nextLink) { final String accept = "application/json"; - Response res + Response res = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); @@ -1586,12 +1361,12 @@ private PagedResponse listBySubscriptionNextSinglePage(St * @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 of a HorizonDbCluster list operation along with {@link PagedResponse}. + * @return the response of a Cluster list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listBySubscriptionNextSinglePage(String nextLink, Context context) { + private PagedResponse listBySubscriptionNextSinglePage(String nextLink, Context context) { final String accept = "application/json"; - Response res + Response res = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbClustersImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ClustersImpl.java similarity index 60% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbClustersImpl.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ClustersImpl.java index 2c1cab9d428b8..62e129c2a7523 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbClustersImpl.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ClustersImpl.java @@ -9,36 +9,36 @@ import com.azure.core.http.rest.SimpleResponse; import com.azure.core.util.Context; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbClusterInner; -import com.azure.resourcemanager.horizondb.models.HorizonDbCluster; -import com.azure.resourcemanager.horizondb.models.HorizonDbClusters; +import com.azure.resourcemanager.horizondb.fluent.ClustersClient; +import com.azure.resourcemanager.horizondb.fluent.models.ClusterInner; +import com.azure.resourcemanager.horizondb.models.Cluster; +import com.azure.resourcemanager.horizondb.models.Clusters; -public final class HorizonDbClustersImpl implements HorizonDbClusters { - private static final ClientLogger LOGGER = new ClientLogger(HorizonDbClustersImpl.class); +public final class ClustersImpl implements Clusters { + private static final ClientLogger LOGGER = new ClientLogger(ClustersImpl.class); - private final HorizonDbClustersClient innerClient; + private final ClustersClient innerClient; private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; - public HorizonDbClustersImpl(HorizonDbClustersClient innerClient, + public ClustersImpl(ClustersClient innerClient, com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response getByResourceGroupWithResponse(String resourceGroupName, String clusterName, + public Response getByResourceGroupWithResponse(String resourceGroupName, String clusterName, Context context) { - Response inner + Response inner = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, clusterName, context); return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new HorizonDbClusterImpl(inner.getValue(), this.manager())); + new ClusterImpl(inner.getValue(), this.manager())); } - public HorizonDbCluster getByResourceGroup(String resourceGroupName, String clusterName) { - HorizonDbClusterInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, clusterName); + public Cluster getByResourceGroup(String resourceGroupName, String clusterName) { + ClusterInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, clusterName); if (inner != null) { - return new HorizonDbClusterImpl(inner, this.manager()); + return new ClusterImpl(inner, this.manager()); } else { return null; } @@ -52,52 +52,45 @@ public void delete(String resourceGroupName, String clusterName, Context context this.serviceClient().delete(resourceGroupName, clusterName, context); } - public PagedIterable listByResourceGroup(String resourceGroupName) { - PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new HorizonDbClusterImpl(inner1, this.manager())); + public PagedIterable listByResourceGroup(String resourceGroupName) { + PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ClusterImpl(inner1, this.manager())); } - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - PagedIterable inner - = this.serviceClient().listByResourceGroup(resourceGroupName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new HorizonDbClusterImpl(inner1, this.manager())); + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ClusterImpl(inner1, this.manager())); } - public PagedIterable list() { - PagedIterable inner = this.serviceClient().list(); - return ResourceManagerUtils.mapPage(inner, inner1 -> new HorizonDbClusterImpl(inner1, this.manager())); + public PagedIterable list() { + PagedIterable inner = this.serviceClient().list(); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ClusterImpl(inner1, this.manager())); } - public PagedIterable list(Context context) { - PagedIterable inner = this.serviceClient().list(context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new HorizonDbClusterImpl(inner1, this.manager())); + public PagedIterable list(Context context) { + PagedIterable inner = this.serviceClient().list(context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ClusterImpl(inner1, this.manager())); } - public void start(String resourceGroupName, String clusterName) { - this.serviceClient().start(resourceGroupName, clusterName); - } - - public void start(String resourceGroupName, String clusterName, Context context) { - this.serviceClient().start(resourceGroupName, clusterName, context); - } - - public void stop(String resourceGroupName, String clusterName) { - this.serviceClient().stop(resourceGroupName, clusterName); - } - - public void stop(String resourceGroupName, String clusterName, Context context) { - this.serviceClient().stop(resourceGroupName, clusterName, context); - } - - public void restart(String resourceGroupName, String clusterName) { - this.serviceClient().restart(resourceGroupName, clusterName); + public Cluster failover(String resourceGroupName, String clusterName) { + ClusterInner inner = this.serviceClient().failover(resourceGroupName, clusterName); + if (inner != null) { + return new ClusterImpl(inner, this.manager()); + } else { + return null; + } } - public void restart(String resourceGroupName, String clusterName, Context context) { - this.serviceClient().restart(resourceGroupName, clusterName, context); + public Cluster failover(String resourceGroupName, String clusterName, Context context) { + ClusterInner inner = this.serviceClient().failover(resourceGroupName, clusterName, context); + if (inner != null) { + return new ClusterImpl(inner, this.manager()); + } else { + return null; + } } - public HorizonDbCluster getById(String id) { + public Cluster getById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -111,7 +104,7 @@ public HorizonDbCluster getById(String id) { return this.getByResourceGroupWithResponse(resourceGroupName, clusterName, Context.NONE).getValue(); } - public Response getByIdWithResponse(String id, Context context) { + public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -153,7 +146,7 @@ public void deleteByIdWithResponse(String id, Context context) { this.delete(resourceGroupName, clusterName, context); } - private HorizonDbClustersClient serviceClient() { + private ClustersClient serviceClient() { return this.innerClient; } @@ -161,7 +154,7 @@ private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { return this.serviceManager; } - public HorizonDbClusterImpl define(String name) { - return new HorizonDbClusterImpl(name, this.manager()); + public ClusterImpl define(String name) { + return new ClusterImpl(name, this.manager()); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/DefaultParameterGroupImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/DefaultParameterGroupImpl.java new file mode 100644 index 0000000000000..bcb4587261f30 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/DefaultParameterGroupImpl.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.horizondb.fluent.models.DefaultParameterGroupInner; +import com.azure.resourcemanager.horizondb.models.DefaultParameterGroup; +import com.azure.resourcemanager.horizondb.models.DefaultParameterGroupProperties; + +public final class DefaultParameterGroupImpl implements DefaultParameterGroup { + private DefaultParameterGroupInner innerObject; + + private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; + + DefaultParameterGroupImpl(DefaultParameterGroupInner innerObject, + com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public DefaultParameterGroupProperties properties() { + return this.innerModel().properties(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public DefaultParameterGroupInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/DefaultParameterGroupsClientImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/DefaultParameterGroupsClientImpl.java new file mode 100644 index 0000000000000..22b48c6074001 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/DefaultParameterGroupsClientImpl.java @@ -0,0 +1,363 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.resourcemanager.horizondb.fluent.DefaultParameterGroupsClient; +import com.azure.resourcemanager.horizondb.fluent.models.DefaultParameterGroupInner; +import com.azure.resourcemanager.horizondb.implementation.models.DefaultParameterGroupListResult; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in DefaultParameterGroupsClient. + */ +public final class DefaultParameterGroupsClientImpl implements DefaultParameterGroupsClient { + /** + * The proxy service used to perform REST calls. + */ + private final DefaultParameterGroupsService service; + + /** + * The service client containing this operation class. + */ + private final HorizonDbManagementClientImpl client; + + /** + * Initializes an instance of DefaultParameterGroupsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + DefaultParameterGroupsClientImpl(HorizonDbManagementClientImpl client) { + this.service = RestProxy.create(DefaultParameterGroupsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for HorizonDbManagementClientDefaultParameterGroups to be used by the + * proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "HorizonDbManagementClientDefaultParameterGroups") + public interface DefaultParameterGroupsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.HorizonDb/locations/{location}/parameterGroups") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listBySubscriptionAndRegion( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.HorizonDb/locations/{location}/parameterGroups") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listBySubscriptionAndRegionSync( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, @PathParam("location") String location, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.HorizonDb/locations/{location}/parameterGroups/{name}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @PathParam("name") String name, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/providers/Microsoft.HorizonDb/locations/{location}/parameterGroups/{name}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("location") String location, @PathParam("name") String name, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listBySubscriptionAndRegionNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listBySubscriptionAndRegionNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Lists default parameter groups available for a subscription in a specific region. The response contains at most + * one default parameter group for each PostgreSQL version. + * + * @param location The name of the Azure region. + * @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 of a DefaultParameterGroup list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listBySubscriptionAndRegionSinglePageAsync(String location) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listBySubscriptionAndRegion(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), location, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Lists default parameter groups available for a subscription in a specific region. The response contains at most + * one default parameter group for each PostgreSQL version. + * + * @param location The name of the Azure region. + * @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 of a DefaultParameterGroup list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listBySubscriptionAndRegionAsync(String location) { + return new PagedFlux<>(() -> listBySubscriptionAndRegionSinglePageAsync(location), + nextLink -> listBySubscriptionAndRegionNextSinglePageAsync(nextLink)); + } + + /** + * Lists default parameter groups available for a subscription in a specific region. The response contains at most + * one default parameter group for each PostgreSQL version. + * + * @param location The name of the Azure region. + * @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 of a DefaultParameterGroup list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listBySubscriptionAndRegionSinglePage(String location) { + final String accept = "application/json"; + Response res + = service.listBySubscriptionAndRegionSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Lists default parameter groups available for a subscription in a specific region. The response contains at most + * one default parameter group for each PostgreSQL version. + * + * @param location The name of the Azure region. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DefaultParameterGroup list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listBySubscriptionAndRegionSinglePage(String location, + Context context) { + final String accept = "application/json"; + Response res + = service.listBySubscriptionAndRegionSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Lists default parameter groups available for a subscription in a specific region. The response contains at most + * one default parameter group for each PostgreSQL version. + * + * @param location The name of the Azure region. + * @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 of a DefaultParameterGroup list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listBySubscriptionAndRegion(String location) { + return new PagedIterable<>(() -> listBySubscriptionAndRegionSinglePage(location), + nextLink -> listBySubscriptionAndRegionNextSinglePage(nextLink)); + } + + /** + * Lists default parameter groups available for a subscription in a specific region. The response contains at most + * one default parameter group for each PostgreSQL version. + * + * @param location The name of the Azure region. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DefaultParameterGroup list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listBySubscriptionAndRegion(String location, Context context) { + return new PagedIterable<>(() -> listBySubscriptionAndRegionSinglePage(location, context), + nextLink -> listBySubscriptionAndRegionNextSinglePage(nextLink, context)); + } + + /** + * Gets a default parameter group available for a subscription in a specific region. Each PostgreSQL version has at + * most one default parameter group in a location. + * + * @param location The name of the Azure region. + * @param name The name of the DefaultParameterGroup. + * @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 default parameter group available for a subscription in a specific region along with {@link Response} + * on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getWithResponseAsync(String location, String name) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), location, name, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets a default parameter group available for a subscription in a specific region. Each PostgreSQL version has at + * most one default parameter group in a location. + * + * @param location The name of the Azure region. + * @param name The name of the DefaultParameterGroup. + * @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 default parameter group available for a subscription in a specific region on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String location, String name) { + return getWithResponseAsync(location, name).flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets a default parameter group available for a subscription in a specific region. Each PostgreSQL version has at + * most one default parameter group in a location. + * + * @param location The name of the Azure region. + * @param name The name of the DefaultParameterGroup. + * @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 a default parameter group available for a subscription in a specific region along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String location, String name, Context context) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + location, name, accept, context); + } + + /** + * Gets a default parameter group available for a subscription in a specific region. Each PostgreSQL version has at + * most one default parameter group in a location. + * + * @param location The name of the Azure region. + * @param name The name of the DefaultParameterGroup. + * @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 default parameter group available for a subscription in a specific region. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public DefaultParameterGroupInner get(String location, String name) { + return getWithResponse(location, name, Context.NONE).getValue(); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a DefaultParameterGroup list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> + listBySubscriptionAndRegionNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil.withContext( + context -> service.listBySubscriptionAndRegionNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a DefaultParameterGroup list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listBySubscriptionAndRegionNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listBySubscriptionAndRegionNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a DefaultParameterGroup list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listBySubscriptionAndRegionNextSinglePage(String nextLink, + Context context) { + final String accept = "application/json"; + Response res + = service.listBySubscriptionAndRegionNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/DefaultParameterGroupsImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/DefaultParameterGroupsImpl.java new file mode 100644 index 0000000000000..4c525f55f7c82 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/DefaultParameterGroupsImpl.java @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.horizondb.fluent.DefaultParameterGroupsClient; +import com.azure.resourcemanager.horizondb.fluent.models.DefaultParameterGroupInner; +import com.azure.resourcemanager.horizondb.models.DefaultParameterGroup; +import com.azure.resourcemanager.horizondb.models.DefaultParameterGroups; + +public final class DefaultParameterGroupsImpl implements DefaultParameterGroups { + private static final ClientLogger LOGGER = new ClientLogger(DefaultParameterGroupsImpl.class); + + private final DefaultParameterGroupsClient innerClient; + + private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; + + public DefaultParameterGroupsImpl(DefaultParameterGroupsClient innerClient, + com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public PagedIterable listBySubscriptionAndRegion(String location) { + PagedIterable inner = this.serviceClient().listBySubscriptionAndRegion(location); + return ResourceManagerUtils.mapPage(inner, inner1 -> new DefaultParameterGroupImpl(inner1, this.manager())); + } + + public PagedIterable listBySubscriptionAndRegion(String location, Context context) { + PagedIterable inner + = this.serviceClient().listBySubscriptionAndRegion(location, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new DefaultParameterGroupImpl(inner1, this.manager())); + } + + public Response getWithResponse(String location, String name, Context context) { + Response inner = this.serviceClient().getWithResponse(location, name, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new DefaultParameterGroupImpl(inner.getValue(), this.manager())); + } + + public DefaultParameterGroup get(String location, String name) { + DefaultParameterGroupInner inner = this.serviceClient().get(location, name); + if (inner != null) { + return new DefaultParameterGroupImpl(inner, this.manager()); + } else { + return null; + } + } + + private DefaultParameterGroupsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/EndpointImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/EndpointImpl.java new file mode 100644 index 0000000000000..1f6f5f377e2b1 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/EndpointImpl.java @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.horizondb.fluent.models.EndpointInner; +import com.azure.resourcemanager.horizondb.models.Endpoint; +import com.azure.resourcemanager.horizondb.models.EndpointProperties; + +public final class EndpointImpl implements Endpoint { + private EndpointInner innerObject; + + private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; + + EndpointImpl(EndpointInner innerObject, com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public EndpointProperties properties() { + return this.innerModel().properties(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public EndpointInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/EndpointsClientImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/EndpointsClientImpl.java new file mode 100644 index 0000000000000..986d7d233326c --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/EndpointsClientImpl.java @@ -0,0 +1,371 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.resourcemanager.horizondb.fluent.EndpointsClient; +import com.azure.resourcemanager.horizondb.fluent.models.EndpointInner; +import com.azure.resourcemanager.horizondb.implementation.models.EndpointListResult; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in EndpointsClient. + */ +public final class EndpointsClientImpl implements EndpointsClient { + /** + * The proxy service used to perform REST calls. + */ + private final EndpointsService service; + + /** + * The service client containing this operation class. + */ + private final HorizonDbManagementClientImpl client; + + /** + * Initializes an instance of EndpointsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + EndpointsClientImpl(HorizonDbManagementClientImpl client) { + this.service + = RestProxy.create(EndpointsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for HorizonDbManagementClientEndpoints to be used by the proxy service to + * perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "HorizonDbManagementClientEndpoints") + public interface EndpointsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/endpoints/{endpointName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("endpointName") String endpointName, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/endpoints/{endpointName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("endpointName") String endpointName, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/endpoints") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/endpoints") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); + } + + /** + * Gets information about a service-generated HorizonDB Cluster- or Pool-scoped Endpoint. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param endpointName The platform-assigned name of the HorizonDB endpoint. A Cluster-scoped ReadWrite Endpoint has + * exactly the same name as its associated Cluster. A Pool-scoped Endpoint has exactly the same name as its + * associated Pool. + * @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 information about a service-generated HorizonDB Cluster- or Pool-scoped Endpoint along with + * {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getWithResponseAsync(String resourceGroupName, String clusterName, + String endpointName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, endpointName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets information about a service-generated HorizonDB Cluster- or Pool-scoped Endpoint. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param endpointName The platform-assigned name of the HorizonDB endpoint. A Cluster-scoped ReadWrite Endpoint has + * exactly the same name as its associated Cluster. A Pool-scoped Endpoint has exactly the same name as its + * associated Pool. + * @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 information about a service-generated HorizonDB Cluster- or Pool-scoped Endpoint on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, String clusterName, String endpointName) { + return getWithResponseAsync(resourceGroupName, clusterName, endpointName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets information about a service-generated HorizonDB Cluster- or Pool-scoped Endpoint. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param endpointName The platform-assigned name of the HorizonDB endpoint. A Cluster-scoped ReadWrite Endpoint has + * exactly the same name as its associated Cluster. A Pool-scoped Endpoint has exactly the same name as its + * associated Pool. + * @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 information about a service-generated HorizonDB Cluster- or Pool-scoped Endpoint along with + * {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String clusterName, String endpointName, + Context context) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, clusterName, endpointName, accept, context); + } + + /** + * Gets information about a service-generated HorizonDB Cluster- or Pool-scoped Endpoint. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param endpointName The platform-assigned name of the HorizonDB endpoint. A Cluster-scoped ReadWrite Endpoint has + * exactly the same name as its associated Cluster. A Pool-scoped Endpoint has exactly the same name as its + * associated Pool. + * @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 information about a service-generated HorizonDB Cluster- or Pool-scoped Endpoint. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public EndpointInner get(String resourceGroupName, String clusterName, String endpointName) { + return getWithResponse(resourceGroupName, clusterName, endpointName, Context.NONE).getValue(); + } + + /** + * Lists the service-generated Endpoints in a cluster. The collection contains the Cluster-scoped Endpoint named + * cluster and one Pool-scoped Endpoint for each pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Endpoint list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, String clusterName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Lists the service-generated Endpoints in a cluster. The collection contains the Cluster-scoped Endpoint named + * cluster and one Pool-scoped Endpoint for each pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Endpoint list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String clusterName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, clusterName), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Lists the service-generated Endpoints in a cluster. The collection contains the Cluster-scoped Endpoint named + * cluster and one Pool-scoped Endpoint for each pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Endpoint list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, String clusterName) { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Lists the service-generated Endpoints in a cluster. The collection contains the Cluster-scoped Endpoint named + * cluster and one Pool-scoped Endpoint for each pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Endpoint list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, String clusterName, Context context) { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Lists the service-generated Endpoints in a cluster. The collection contains the Cluster-scoped Endpoint named + * cluster and one Pool-scoped Endpoint for each pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Endpoint list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String clusterName) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, clusterName), + nextLink -> listNextSinglePage(nextLink)); + } + + /** + * Lists the service-generated Endpoints in a cluster. The collection contains the Cluster-scoped Endpoint named + * cluster and one Pool-scoped Endpoint for each pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Endpoint list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String clusterName, Context context) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, clusterName, context), + nextLink -> listNextSinglePage(nextLink, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a Endpoint list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a Endpoint list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a Endpoint list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/EndpointsImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/EndpointsImpl.java new file mode 100644 index 0000000000000..e4ea8a308b062 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/EndpointsImpl.java @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.horizondb.fluent.EndpointsClient; +import com.azure.resourcemanager.horizondb.fluent.models.EndpointInner; +import com.azure.resourcemanager.horizondb.models.Endpoint; +import com.azure.resourcemanager.horizondb.models.Endpoints; + +public final class EndpointsImpl implements Endpoints { + private static final ClientLogger LOGGER = new ClientLogger(EndpointsImpl.class); + + private final EndpointsClient innerClient; + + private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; + + public EndpointsImpl(EndpointsClient innerClient, + com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String resourceGroupName, String clusterName, String endpointName, + Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, clusterName, endpointName, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new EndpointImpl(inner.getValue(), this.manager())); + } + + public Endpoint get(String resourceGroupName, String clusterName, String endpointName) { + EndpointInner inner = this.serviceClient().get(resourceGroupName, clusterName, endpointName); + if (inner != null) { + return new EndpointImpl(inner, this.manager()); + } else { + return null; + } + } + + public PagedIterable list(String resourceGroupName, String clusterName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, clusterName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new EndpointImpl(inner1, this.manager())); + } + + public PagedIterable list(String resourceGroupName, String clusterName, Context context) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, clusterName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new EndpointImpl(inner1, this.manager())); + } + + private EndpointsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/FirewallRuleImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/FirewallRuleImpl.java new file mode 100644 index 0000000000000..7baf9530a44da --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/FirewallRuleImpl.java @@ -0,0 +1,108 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.horizondb.fluent.models.FirewallRuleInner; +import com.azure.resourcemanager.horizondb.models.FirewallRule; +import com.azure.resourcemanager.horizondb.models.FirewallRuleProperties; + +public final class FirewallRuleImpl implements FirewallRule, FirewallRule.Definition { + private FirewallRuleInner innerObject; + + private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; + + FirewallRuleImpl(FirewallRuleInner innerObject, + com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public FirewallRuleProperties properties() { + return this.innerModel().properties(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public FirewallRuleInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { + return this.serviceManager; + } + + private String resourceGroupName; + + private String clusterName; + + private String poolName; + + private String firewallRuleName; + + public FirewallRuleImpl withExistingPool(String resourceGroupName, String clusterName, String poolName) { + this.resourceGroupName = resourceGroupName; + this.clusterName = clusterName; + this.poolName = poolName; + return this; + } + + public FirewallRule create() { + this.innerObject = serviceManager.serviceClient() + .getFirewallRules() + .createOrReplace(resourceGroupName, clusterName, poolName, firewallRuleName, this.innerModel(), + Context.NONE); + return this; + } + + public FirewallRule create(Context context) { + this.innerObject = serviceManager.serviceClient() + .getFirewallRules() + .createOrReplace(resourceGroupName, clusterName, poolName, firewallRuleName, this.innerModel(), context); + return this; + } + + FirewallRuleImpl(String name, com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerObject = new FirewallRuleInner(); + this.serviceManager = serviceManager; + this.firewallRuleName = name; + } + + public FirewallRule refresh() { + this.innerObject = serviceManager.serviceClient() + .getFirewallRules() + .getWithResponse(resourceGroupName, clusterName, poolName, firewallRuleName, Context.NONE) + .getValue(); + return this; + } + + public FirewallRule refresh(Context context) { + this.innerObject = serviceManager.serviceClient() + .getFirewallRules() + .getWithResponse(resourceGroupName, clusterName, poolName, firewallRuleName, context) + .getValue(); + return this; + } + + public FirewallRuleImpl withProperties(FirewallRuleProperties properties) { + this.innerModel().withProperties(properties); + return this; + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbFirewallRulesClientImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/FirewallRulesClientImpl.java similarity index 73% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbFirewallRulesClientImpl.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/FirewallRulesClientImpl.java index c066df228ed03..2002106e26fa7 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbFirewallRulesClientImpl.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/FirewallRulesClientImpl.java @@ -32,21 +32,21 @@ import com.azure.core.util.FluxUtil; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.horizondb.fluent.HorizonDbFirewallRulesClient; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbFirewallRuleInner; -import com.azure.resourcemanager.horizondb.implementation.models.HorizonDbFirewallRuleListResult; +import com.azure.resourcemanager.horizondb.fluent.FirewallRulesClient; +import com.azure.resourcemanager.horizondb.fluent.models.FirewallRuleInner; +import com.azure.resourcemanager.horizondb.implementation.models.FirewallRuleListResult; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; /** - * An instance of this class provides access to all the operations defined in HorizonDbFirewallRulesClient. + * An instance of this class provides access to all the operations defined in FirewallRulesClient. */ -public final class HorizonDbFirewallRulesClientImpl implements HorizonDbFirewallRulesClient { +public final class FirewallRulesClientImpl implements FirewallRulesClient { /** * The proxy service used to perform REST calls. */ - private final HorizonDbFirewallRulesService service; + private final FirewallRulesService service; /** * The service client containing this operation class. @@ -54,28 +54,28 @@ public final class HorizonDbFirewallRulesClientImpl implements HorizonDbFirewall private final HorizonDbManagementClientImpl client; /** - * Initializes an instance of HorizonDbFirewallRulesClientImpl. + * Initializes an instance of FirewallRulesClientImpl. * * @param client the instance of the service client containing this operation class. */ - HorizonDbFirewallRulesClientImpl(HorizonDbManagementClientImpl client) { - this.service = RestProxy.create(HorizonDbFirewallRulesService.class, client.getHttpPipeline(), - client.getSerializerAdapter()); + FirewallRulesClientImpl(HorizonDbManagementClientImpl client) { + this.service + = RestProxy.create(FirewallRulesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for HorizonDbManagementClientHorizonDbFirewallRules to be used by the - * proxy service to perform REST calls. + * The interface defining all the services for HorizonDbManagementClientFirewallRules to be used by the proxy + * service to perform REST calls. */ @Host("{endpoint}") - @ServiceInterface(name = "HorizonDbManagementClientHorizonDbFirewallRules") - public interface HorizonDbFirewallRulesService { + @ServiceInterface(name = "HorizonDbManagementClientFirewallRules") + public interface FirewallRulesService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("endpoint") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, @PathParam("poolName") String poolName, @PathParam("firewallRuleName") String firewallRuleName, @@ -85,7 +85,7 @@ Mono> get(@HostParam("endpoint") String end @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("endpoint") String endpoint, + Response getSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, @PathParam("poolName") String poolName, @PathParam("firewallRuleName") String firewallRuleName, @@ -95,7 +95,7 @@ Response getSync(@HostParam("endpoint") String endpo @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("endpoint") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, @PathParam("poolName") String poolName, @HeaderParam("Accept") String accept, Context context); @@ -104,7 +104,7 @@ Mono> list(@HostParam("endpoint") Stri @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listSync(@HostParam("endpoint") String endpoint, + Response listSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, @PathParam("poolName") String poolName, @HeaderParam("Accept") String accept, Context context); @@ -112,22 +112,22 @@ Response listSync(@HostParam("endpoint") String @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + Mono>> createOrReplace(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, @PathParam("poolName") String poolName, @PathParam("firewallRuleName") String firewallRuleName, @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") HorizonDbFirewallRuleInner resource, Context context); + @BodyParam("application/json") FirewallRuleInner resource, Context context); @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("endpoint") String endpoint, + Response createOrReplaceSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, @PathParam("poolName") String poolName, @PathParam("firewallRuleName") String firewallRuleName, @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") HorizonDbFirewallRuleInner resource, Context context); + @BodyParam("application/json") FirewallRuleInner resource, Context context); @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/firewallRules/{firewallRuleName}") @@ -153,34 +153,32 @@ Response deleteSync(@HostParam("endpoint") String endpoint, @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, Context context); + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, Context context); + Response listNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Gets information about a HorizonDB firewall rule. + * Gets information about a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @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 information about a HorizonDB firewall rule along with {@link Response} on successful completion of + * @return information about a HorizonDB pool firewall rule along with {@link Response} on successful completion of * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String resourceGroupName, String clusterName, + public Mono> getWithResponseAsync(String resourceGroupName, String clusterName, String poolName, String firewallRuleName) { final String accept = "application/json"; return FluxUtil @@ -191,59 +189,59 @@ public Mono> getWithResponseAsync(String re } /** - * Gets information about a HorizonDB firewall rule. + * Gets information about a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @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 information about a HorizonDB firewall rule on successful completion of {@link Mono}. + * @return information about a HorizonDB pool firewall rule on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String resourceGroupName, String clusterName, String poolName, + public Mono getAsync(String resourceGroupName, String clusterName, String poolName, String firewallRuleName) { return getWithResponseAsync(resourceGroupName, clusterName, poolName, firewallRuleName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Gets information about a HorizonDB firewall rule. + * Gets information about a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @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 information about a HorizonDB firewall rule along with {@link Response}. + * @return information about a HorizonDB pool firewall rule along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String clusterName, - String poolName, String firewallRuleName, Context context) { + public Response getWithResponse(String resourceGroupName, String clusterName, String poolName, + String firewallRuleName, Context context) { final String accept = "application/json"; return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, firewallRuleName, accept, context); } /** - * Gets information about a HorizonDB firewall rule. + * Gets information about a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @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 information about a HorizonDB firewall rule. + * @return information about a HorizonDB pool firewall rule. */ @ServiceMethod(returns = ReturnType.SINGLE) - public HorizonDbFirewallRuleInner get(String resourceGroupName, String clusterName, String poolName, + public FirewallRuleInner get(String resourceGroupName, String clusterName, String poolName, String firewallRuleName) { return getWithResponse(resourceGroupName, clusterName, poolName, firewallRuleName, Context.NONE).getValue(); } @@ -257,18 +255,18 @@ public HorizonDbFirewallRuleInner get(String resourceGroupName, String clusterNa * @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 of a HorizonDbFirewallRule list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a FirewallRule list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, - String clusterName, String poolName) { + private Mono> listSinglePageAsync(String resourceGroupName, String clusterName, + String poolName) { final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -281,11 +279,10 @@ private Mono> listSinglePageAsync(Stri * @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 of a HorizonDbFirewallRule list operation as paginated response with {@link PagedFlux}. + * @return the response of a FirewallRule list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String clusterName, - String poolName) { + public PagedFlux listAsync(String resourceGroupName, String clusterName, String poolName) { return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, clusterName, poolName), nextLink -> listNextSinglePageAsync(nextLink)); } @@ -299,15 +296,14 @@ public PagedFlux listAsync(String resourceGroupName, * @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 of a HorizonDbFirewallRule list operation along with {@link PagedResponse}. + * @return the response of a FirewallRule list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(String resourceGroupName, String clusterName, + private PagedResponse listSinglePage(String resourceGroupName, String clusterName, String poolName) { final String accept = "application/json"; - Response res - = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, clusterName, poolName, accept, Context.NONE); + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, accept, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); } @@ -322,15 +318,14 @@ private PagedResponse listSinglePage(String resource * @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 of a HorizonDbFirewallRule list operation along with {@link PagedResponse}. + * @return the response of a FirewallRule list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(String resourceGroupName, String clusterName, + private PagedResponse listSinglePage(String resourceGroupName, String clusterName, String poolName, Context context) { final String accept = "application/json"; - Response res - = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, clusterName, poolName, accept, context); + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); } @@ -344,11 +339,10 @@ private PagedResponse listSinglePage(String resource * @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 of a HorizonDbFirewallRule list operation as paginated response with {@link PagedIterable}. + * @return the response of a FirewallRule list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String clusterName, - String poolName) { + public PagedIterable list(String resourceGroupName, String clusterName, String poolName) { return new PagedIterable<>(() -> listSinglePage(resourceGroupName, clusterName, poolName), nextLink -> listNextSinglePage(nextLink)); } @@ -363,227 +357,225 @@ public PagedIterable list(String resourceGroupName, * @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 of a HorizonDbFirewallRule list operation as paginated response with {@link PagedIterable}. + * @return the response of a FirewallRule list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String clusterName, String poolName, + public PagedIterable list(String resourceGroupName, String clusterName, String poolName, Context context) { return new PagedIterable<>(() -> listSinglePage(resourceGroupName, clusterName, poolName, context), nextLink -> listNextSinglePage(nextLink, context)); } /** - * Creates a new HorizonDB firewall rule or updates an existing rule. + * Creates or replaces a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @param resource Resource create parameters. * @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 represents the HorizonDB firewall rule along with {@link Response} on successful completion of - * {@link Mono}. + * @return represents a customer-managed firewall rule for a HorizonDB pool along with {@link Response} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String clusterName, String poolName, String firewallRuleName, HorizonDbFirewallRuleInner resource) { + public Mono>> createOrReplaceWithResponseAsync(String resourceGroupName, + String clusterName, String poolName, String firewallRuleName, FirewallRuleInner resource) { final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + .withContext(context -> service.createOrReplace(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, firewallRuleName, contentType, accept, resource, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Creates a new HorizonDB firewall rule or updates an existing rule. + * Creates or replaces a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @param resource Resource create parameters. * @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 represents the HorizonDB firewall rule along with {@link Response}. + * @return represents a customer-managed firewall rule for a HorizonDB pool along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String clusterName, - String poolName, String firewallRuleName, HorizonDbFirewallRuleInner resource) { + private Response createOrReplaceWithResponse(String resourceGroupName, String clusterName, + String poolName, String firewallRuleName, FirewallRuleInner resource) { final String contentType = "application/json"; final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + return service.createOrReplaceSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, firewallRuleName, contentType, accept, resource, Context.NONE); } /** - * Creates a new HorizonDB firewall rule or updates an existing rule. + * Creates or replaces a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @param resource Resource create parameters. * @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 represents the HorizonDB firewall rule along with {@link Response}. + * @return represents a customer-managed firewall rule for a HorizonDB pool along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String clusterName, - String poolName, String firewallRuleName, HorizonDbFirewallRuleInner resource, Context context) { + private Response createOrReplaceWithResponse(String resourceGroupName, String clusterName, + String poolName, String firewallRuleName, FirewallRuleInner resource, Context context) { final String contentType = "application/json"; final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + return service.createOrReplaceSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, firewallRuleName, contentType, accept, resource, context); } /** - * Creates a new HorizonDB firewall rule or updates an existing rule. + * Creates or replaces a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @param resource Resource create parameters. * @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 represents the HorizonDB firewall rule. + * @return the {@link PollerFlux} for polling of represents a customer-managed firewall rule for a HorizonDB pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, HorizonDbFirewallRuleInner> beginCreateOrUpdateAsync( + public PollerFlux, FirewallRuleInner> beginCreateOrReplaceAsync( String resourceGroupName, String clusterName, String poolName, String firewallRuleName, - HorizonDbFirewallRuleInner resource) { + FirewallRuleInner resource) { Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, clusterName, poolName, firewallRuleName, resource); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), HorizonDbFirewallRuleInner.class, HorizonDbFirewallRuleInner.class, - this.client.getContext()); + = createOrReplaceWithResponseAsync(resourceGroupName, clusterName, poolName, firewallRuleName, resource); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + FirewallRuleInner.class, FirewallRuleInner.class, this.client.getContext()); } /** - * Creates a new HorizonDB firewall rule or updates an existing rule. + * Creates or replaces a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @param resource Resource create parameters. * @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 represents the HorizonDB firewall rule. + * @return the {@link SyncPoller} for polling of represents a customer-managed firewall rule for a HorizonDB pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, HorizonDbFirewallRuleInner> beginCreateOrUpdate( - String resourceGroupName, String clusterName, String poolName, String firewallRuleName, - HorizonDbFirewallRuleInner resource) { + public SyncPoller, FirewallRuleInner> beginCreateOrReplace(String resourceGroupName, + String clusterName, String poolName, String firewallRuleName, FirewallRuleInner resource) { Response response - = createOrUpdateWithResponse(resourceGroupName, clusterName, poolName, firewallRuleName, resource); - return this.client.getLroResult(response, - HorizonDbFirewallRuleInner.class, HorizonDbFirewallRuleInner.class, Context.NONE); + = createOrReplaceWithResponse(resourceGroupName, clusterName, poolName, firewallRuleName, resource); + return this.client.getLroResult(response, FirewallRuleInner.class, + FirewallRuleInner.class, Context.NONE); } /** - * Creates a new HorizonDB firewall rule or updates an existing rule. + * Creates or replaces a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @param resource Resource create parameters. * @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 represents the HorizonDB firewall rule. + * @return the {@link SyncPoller} for polling of represents a customer-managed firewall rule for a HorizonDB pool. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, HorizonDbFirewallRuleInner> beginCreateOrUpdate( - String resourceGroupName, String clusterName, String poolName, String firewallRuleName, - HorizonDbFirewallRuleInner resource, Context context) { - Response response - = createOrUpdateWithResponse(resourceGroupName, clusterName, poolName, firewallRuleName, resource, context); - return this.client.getLroResult(response, - HorizonDbFirewallRuleInner.class, HorizonDbFirewallRuleInner.class, context); + public SyncPoller, FirewallRuleInner> beginCreateOrReplace(String resourceGroupName, + String clusterName, String poolName, String firewallRuleName, FirewallRuleInner resource, Context context) { + Response response = createOrReplaceWithResponse(resourceGroupName, clusterName, poolName, + firewallRuleName, resource, context); + return this.client.getLroResult(response, FirewallRuleInner.class, + FirewallRuleInner.class, context); } /** - * Creates a new HorizonDB firewall rule or updates an existing rule. + * Creates or replaces a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @param resource Resource create parameters. * @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 represents the HorizonDB firewall rule on successful completion of {@link Mono}. + * @return represents a customer-managed firewall rule for a HorizonDB pool on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createOrUpdateAsync(String resourceGroupName, String clusterName, - String poolName, String firewallRuleName, HorizonDbFirewallRuleInner resource) { - return beginCreateOrUpdateAsync(resourceGroupName, clusterName, poolName, firewallRuleName, resource).last() + public Mono createOrReplaceAsync(String resourceGroupName, String clusterName, String poolName, + String firewallRuleName, FirewallRuleInner resource) { + return beginCreateOrReplaceAsync(resourceGroupName, clusterName, poolName, firewallRuleName, resource).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Creates a new HorizonDB firewall rule or updates an existing rule. + * Creates or replaces a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @param resource Resource create parameters. * @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 represents the HorizonDB firewall rule. + * @return represents a customer-managed firewall rule for a HorizonDB pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - public HorizonDbFirewallRuleInner createOrUpdate(String resourceGroupName, String clusterName, String poolName, - String firewallRuleName, HorizonDbFirewallRuleInner resource) { - return beginCreateOrUpdate(resourceGroupName, clusterName, poolName, firewallRuleName, resource) + public FirewallRuleInner createOrReplace(String resourceGroupName, String clusterName, String poolName, + String firewallRuleName, FirewallRuleInner resource) { + return beginCreateOrReplace(resourceGroupName, clusterName, poolName, firewallRuleName, resource) .getFinalResult(); } /** - * Creates a new HorizonDB firewall rule or updates an existing rule. + * Creates or replaces a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @param resource Resource create parameters. * @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 represents the HorizonDB firewall rule. + * @return represents a customer-managed firewall rule for a HorizonDB pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - public HorizonDbFirewallRuleInner createOrUpdate(String resourceGroupName, String clusterName, String poolName, - String firewallRuleName, HorizonDbFirewallRuleInner resource, Context context) { - return beginCreateOrUpdate(resourceGroupName, clusterName, poolName, firewallRuleName, resource, context) + public FirewallRuleInner createOrReplace(String resourceGroupName, String clusterName, String poolName, + String firewallRuleName, FirewallRuleInner resource, Context context) { + return beginCreateOrReplace(resourceGroupName, clusterName, poolName, firewallRuleName, resource, context) .getFinalResult(); } /** - * Deletes a HorizonDB firewall rule. + * Deletes a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @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. @@ -599,12 +591,12 @@ public Mono>> deleteWithResponseAsync(String resourceG } /** - * Deletes a HorizonDB firewall rule. + * Deletes a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @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. @@ -618,12 +610,12 @@ private Response deleteWithResponse(String resourceGroupName, String } /** - * Deletes a HorizonDB firewall rule. + * Deletes a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @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. @@ -638,12 +630,12 @@ private Response deleteWithResponse(String resourceGroupName, String } /** - * Deletes a HorizonDB firewall rule. + * Deletes a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @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. @@ -659,12 +651,12 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN } /** - * Deletes a HorizonDB firewall rule. + * Deletes a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @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. @@ -678,12 +670,12 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * Deletes a HorizonDB firewall rule. + * Deletes a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @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. @@ -699,12 +691,12 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * Deletes a HorizonDB firewall rule. + * Deletes a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @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. @@ -718,12 +710,12 @@ public Mono deleteAsync(String resourceGroupName, String clusterName, Stri } /** - * Deletes a HorizonDB firewall rule. + * Deletes a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @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. @@ -734,12 +726,12 @@ public void delete(String resourceGroupName, String clusterName, String poolName } /** - * Deletes a HorizonDB firewall rule. + * Deletes a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @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. @@ -758,15 +750,15 @@ public void delete(String resourceGroupName, String clusterName, String poolName * @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 of a HorizonDbFirewallRule list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a FirewallRule list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { + private Mono> listNextSinglePageAsync(String nextLink) { final String accept = "application/json"; return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -777,12 +769,12 @@ private Mono> listNextSinglePageAsync( * @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 of a HorizonDbFirewallRule list operation along with {@link PagedResponse}. + * @return the response of a FirewallRule list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listNextSinglePage(String nextLink) { + private PagedResponse listNextSinglePage(String nextLink) { final String accept = "application/json"; - Response res + Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); @@ -796,12 +788,12 @@ private PagedResponse listNextSinglePage(String next * @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 of a HorizonDbFirewallRule list operation along with {@link PagedResponse}. + * @return the response of a FirewallRule list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listNextSinglePage(String nextLink, Context context) { + private PagedResponse listNextSinglePage(String nextLink, Context context) { final String accept = "application/json"; - Response res + Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbFirewallRulesImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/FirewallRulesImpl.java similarity index 78% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbFirewallRulesImpl.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/FirewallRulesImpl.java index ec8935c28e4fe..76ac09c86b03b 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbFirewallRulesImpl.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/FirewallRulesImpl.java @@ -9,54 +9,51 @@ import com.azure.core.http.rest.SimpleResponse; import com.azure.core.util.Context; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.horizondb.fluent.HorizonDbFirewallRulesClient; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbFirewallRuleInner; -import com.azure.resourcemanager.horizondb.models.HorizonDbFirewallRule; -import com.azure.resourcemanager.horizondb.models.HorizonDbFirewallRules; +import com.azure.resourcemanager.horizondb.fluent.FirewallRulesClient; +import com.azure.resourcemanager.horizondb.fluent.models.FirewallRuleInner; +import com.azure.resourcemanager.horizondb.models.FirewallRule; +import com.azure.resourcemanager.horizondb.models.FirewallRules; -public final class HorizonDbFirewallRulesImpl implements HorizonDbFirewallRules { - private static final ClientLogger LOGGER = new ClientLogger(HorizonDbFirewallRulesImpl.class); +public final class FirewallRulesImpl implements FirewallRules { + private static final ClientLogger LOGGER = new ClientLogger(FirewallRulesImpl.class); - private final HorizonDbFirewallRulesClient innerClient; + private final FirewallRulesClient innerClient; private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; - public HorizonDbFirewallRulesImpl(HorizonDbFirewallRulesClient innerClient, + public FirewallRulesImpl(FirewallRulesClient innerClient, com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response getWithResponse(String resourceGroupName, String clusterName, - String poolName, String firewallRuleName, Context context) { - Response inner + public Response getWithResponse(String resourceGroupName, String clusterName, String poolName, + String firewallRuleName, Context context) { + Response inner = this.serviceClient().getWithResponse(resourceGroupName, clusterName, poolName, firewallRuleName, context); return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new HorizonDbFirewallRuleImpl(inner.getValue(), this.manager())); + new FirewallRuleImpl(inner.getValue(), this.manager())); } - public HorizonDbFirewallRule get(String resourceGroupName, String clusterName, String poolName, - String firewallRuleName) { - HorizonDbFirewallRuleInner inner - = this.serviceClient().get(resourceGroupName, clusterName, poolName, firewallRuleName); + public FirewallRule get(String resourceGroupName, String clusterName, String poolName, String firewallRuleName) { + FirewallRuleInner inner = this.serviceClient().get(resourceGroupName, clusterName, poolName, firewallRuleName); if (inner != null) { - return new HorizonDbFirewallRuleImpl(inner, this.manager()); + return new FirewallRuleImpl(inner, this.manager()); } else { return null; } } - public PagedIterable list(String resourceGroupName, String clusterName, String poolName) { - PagedIterable inner - = this.serviceClient().list(resourceGroupName, clusterName, poolName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new HorizonDbFirewallRuleImpl(inner1, this.manager())); + public PagedIterable list(String resourceGroupName, String clusterName, String poolName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, clusterName, poolName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new FirewallRuleImpl(inner1, this.manager())); } - public PagedIterable list(String resourceGroupName, String clusterName, String poolName, + public PagedIterable list(String resourceGroupName, String clusterName, String poolName, Context context) { - PagedIterable inner + PagedIterable inner = this.serviceClient().list(resourceGroupName, clusterName, poolName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new HorizonDbFirewallRuleImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, inner1 -> new FirewallRuleImpl(inner1, this.manager())); } public void delete(String resourceGroupName, String clusterName, String poolName, String firewallRuleName) { @@ -68,7 +65,7 @@ public void delete(String resourceGroupName, String clusterName, String poolName this.serviceClient().delete(resourceGroupName, clusterName, poolName, firewallRuleName, context); } - public HorizonDbFirewallRule getById(String id) { + public FirewallRule getById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -93,7 +90,7 @@ public HorizonDbFirewallRule getById(String id) { .getValue(); } - public Response getByIdWithResponse(String id, Context context) { + public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -165,7 +162,7 @@ public void deleteByIdWithResponse(String id, Context context) { this.delete(resourceGroupName, clusterName, poolName, firewallRuleName, context); } - private HorizonDbFirewallRulesClient serviceClient() { + private FirewallRulesClient serviceClient() { return this.innerClient; } @@ -173,7 +170,7 @@ private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { return this.serviceManager; } - public HorizonDbFirewallRuleImpl define(String name) { - return new HorizonDbFirewallRuleImpl(name, this.manager()); + public FirewallRuleImpl define(String name) { + return new FirewallRuleImpl(name, this.manager()); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbAdministratorImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbAdministratorImpl.java deleted file mode 100644 index 000179f21c286..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbAdministratorImpl.java +++ /dev/null @@ -1,146 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.implementation; - -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbAdministratorInner; -import com.azure.resourcemanager.horizondb.models.HorizonDbAdministrator; -import com.azure.resourcemanager.horizondb.models.HorizonDbAdministratorAdd; -import com.azure.resourcemanager.horizondb.models.HorizonDbAdministratorProperties; -import com.azure.resourcemanager.horizondb.models.HorizonDbAdministratorPropertiesForAdd; - -public final class HorizonDbAdministratorImpl - implements HorizonDbAdministrator, HorizonDbAdministrator.Definition, HorizonDbAdministrator.Update { - private HorizonDbAdministratorInner innerObject; - - private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; - - public String id() { - return this.innerModel().id(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public HorizonDbAdministratorProperties properties() { - return this.innerModel().properties(); - } - - public SystemData systemData() { - return this.innerModel().systemData(); - } - - public String resourceGroupName() { - return resourceGroupName; - } - - public HorizonDbAdministratorInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { - return this.serviceManager; - } - - private String resourceGroupName; - - private String clusterName; - - private String objectId; - - private HorizonDbAdministratorAdd createResource; - - private HorizonDbAdministratorAdd updateResource; - - public HorizonDbAdministratorImpl withExistingCluster(String resourceGroupName, String clusterName) { - this.resourceGroupName = resourceGroupName; - this.clusterName = clusterName; - return this; - } - - public HorizonDbAdministrator create() { - this.innerObject = serviceManager.serviceClient() - .getHorizonDbAdministrators() - .createOrUpdate(resourceGroupName, clusterName, objectId, createResource, Context.NONE); - return this; - } - - public HorizonDbAdministrator create(Context context) { - this.innerObject = serviceManager.serviceClient() - .getHorizonDbAdministrators() - .createOrUpdate(resourceGroupName, clusterName, objectId, createResource, context); - return this; - } - - HorizonDbAdministratorImpl(String name, com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { - this.serviceManager = serviceManager; - this.objectId = name; - this.createResource = new HorizonDbAdministratorAdd(); - } - - public HorizonDbAdministratorImpl update() { - this.updateResource = new HorizonDbAdministratorAdd(); - return this; - } - - public HorizonDbAdministrator apply() { - this.innerObject = serviceManager.serviceClient() - .getHorizonDbAdministrators() - .createOrUpdate(resourceGroupName, clusterName, objectId, updateResource, Context.NONE); - return this; - } - - public HorizonDbAdministrator apply(Context context) { - this.innerObject = serviceManager.serviceClient() - .getHorizonDbAdministrators() - .createOrUpdate(resourceGroupName, clusterName, objectId, updateResource, context); - return this; - } - - HorizonDbAdministratorImpl(HorizonDbAdministratorInner innerObject, - com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.clusterName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "clusters"); - this.objectId = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "administrators"); - } - - public HorizonDbAdministrator refresh() { - this.innerObject = serviceManager.serviceClient() - .getHorizonDbAdministrators() - .getWithResponse(resourceGroupName, clusterName, objectId, Context.NONE) - .getValue(); - return this; - } - - public HorizonDbAdministrator refresh(Context context) { - this.innerObject = serviceManager.serviceClient() - .getHorizonDbAdministrators() - .getWithResponse(resourceGroupName, clusterName, objectId, context) - .getValue(); - return this; - } - - public HorizonDbAdministratorImpl withProperties(HorizonDbAdministratorPropertiesForAdd properties) { - if (isInCreateMode()) { - this.createResource.withProperties(properties); - return this; - } else { - this.updateResource.withProperties(properties); - return this; - } - } - - private boolean isInCreateMode() { - return this.innerModel() == null || this.innerModel().id() == null; - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbFirewallRuleImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbFirewallRuleImpl.java deleted file mode 100644 index b9ddc9e190d54..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbFirewallRuleImpl.java +++ /dev/null @@ -1,136 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.implementation; - -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbFirewallRuleInner; -import com.azure.resourcemanager.horizondb.models.HorizonDbFirewallRule; -import com.azure.resourcemanager.horizondb.models.HorizonDbFirewallRuleProperties; - -public final class HorizonDbFirewallRuleImpl - implements HorizonDbFirewallRule, HorizonDbFirewallRule.Definition, HorizonDbFirewallRule.Update { - private HorizonDbFirewallRuleInner innerObject; - - private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; - - public String id() { - return this.innerModel().id(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public HorizonDbFirewallRuleProperties properties() { - return this.innerModel().properties(); - } - - public SystemData systemData() { - return this.innerModel().systemData(); - } - - public String resourceGroupName() { - return resourceGroupName; - } - - public HorizonDbFirewallRuleInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { - return this.serviceManager; - } - - private String resourceGroupName; - - private String clusterName; - - private String poolName; - - private String firewallRuleName; - - public HorizonDbFirewallRuleImpl withExistingPool(String resourceGroupName, String clusterName, String poolName) { - this.resourceGroupName = resourceGroupName; - this.clusterName = clusterName; - this.poolName = poolName; - return this; - } - - public HorizonDbFirewallRule create() { - this.innerObject = serviceManager.serviceClient() - .getHorizonDbFirewallRules() - .createOrUpdate(resourceGroupName, clusterName, poolName, firewallRuleName, this.innerModel(), - Context.NONE); - return this; - } - - public HorizonDbFirewallRule create(Context context) { - this.innerObject = serviceManager.serviceClient() - .getHorizonDbFirewallRules() - .createOrUpdate(resourceGroupName, clusterName, poolName, firewallRuleName, this.innerModel(), context); - return this; - } - - HorizonDbFirewallRuleImpl(String name, com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { - this.innerObject = new HorizonDbFirewallRuleInner(); - this.serviceManager = serviceManager; - this.firewallRuleName = name; - } - - public HorizonDbFirewallRuleImpl update() { - return this; - } - - public HorizonDbFirewallRule apply() { - this.innerObject = serviceManager.serviceClient() - .getHorizonDbFirewallRules() - .createOrUpdate(resourceGroupName, clusterName, poolName, firewallRuleName, this.innerModel(), - Context.NONE); - return this; - } - - public HorizonDbFirewallRule apply(Context context) { - this.innerObject = serviceManager.serviceClient() - .getHorizonDbFirewallRules() - .createOrUpdate(resourceGroupName, clusterName, poolName, firewallRuleName, this.innerModel(), context); - return this; - } - - HorizonDbFirewallRuleImpl(HorizonDbFirewallRuleInner innerObject, - com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.clusterName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "clusters"); - this.poolName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "pools"); - this.firewallRuleName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "firewallRules"); - } - - public HorizonDbFirewallRule refresh() { - this.innerObject = serviceManager.serviceClient() - .getHorizonDbFirewallRules() - .getWithResponse(resourceGroupName, clusterName, poolName, firewallRuleName, Context.NONE) - .getValue(); - return this; - } - - public HorizonDbFirewallRule refresh(Context context) { - this.innerObject = serviceManager.serviceClient() - .getHorizonDbFirewallRules() - .getWithResponse(resourceGroupName, clusterName, poolName, firewallRuleName, context) - .getValue(); - return this; - } - - public HorizonDbFirewallRuleImpl withProperties(HorizonDbFirewallRuleProperties properties) { - this.innerModel().withProperties(properties); - return this; - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbManagementClientImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbManagementClientImpl.java index f7065652627ed..03cb2a667709f 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbManagementClientImpl.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbManagementClientImpl.java @@ -26,16 +26,29 @@ import com.azure.core.util.polling.SyncPoller; import com.azure.core.util.serializer.SerializerAdapter; import com.azure.core.util.serializer.SerializerEncoding; -import com.azure.resourcemanager.horizondb.fluent.HorizonDbAdministratorsClient; -import com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient; -import com.azure.resourcemanager.horizondb.fluent.HorizonDbFirewallRulesClient; +import com.azure.resourcemanager.horizondb.fluent.AuthenticationsClient; +import com.azure.resourcemanager.horizondb.fluent.CapabilitiesClient; +import com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureCapabilitiesClient; +import com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureConfigurationsClient; +import com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureDestinationsClient; +import com.azure.resourcemanager.horizondb.fluent.ClustersClient; +import com.azure.resourcemanager.horizondb.fluent.DefaultParameterGroupsClient; +import com.azure.resourcemanager.horizondb.fluent.EndpointsClient; +import com.azure.resourcemanager.horizondb.fluent.FirewallRulesClient; import com.azure.resourcemanager.horizondb.fluent.HorizonDbManagementClient; -import com.azure.resourcemanager.horizondb.fluent.HorizonDbParameterGroupsClient; -import com.azure.resourcemanager.horizondb.fluent.HorizonDbPoolsClient; -import com.azure.resourcemanager.horizondb.fluent.HorizonDbPrivateEndpointConnectionsClient; -import com.azure.resourcemanager.horizondb.fluent.HorizonDbPrivateLinkResourcesClient; -import com.azure.resourcemanager.horizondb.fluent.HorizonDbReplicasClient; +import com.azure.resourcemanager.horizondb.fluent.IdentityAssignmentsClient; +import com.azure.resourcemanager.horizondb.fluent.LogCaptureConfigurationsClient; +import com.azure.resourcemanager.horizondb.fluent.LogFilesClient; +import com.azure.resourcemanager.horizondb.fluent.MaintenanceEventsClient; +import com.azure.resourcemanager.horizondb.fluent.MicrosoftEntraAdministratorsClient; +import com.azure.resourcemanager.horizondb.fluent.MicrosoftEntraAuthenticationsClient; +import com.azure.resourcemanager.horizondb.fluent.NodesClient; import com.azure.resourcemanager.horizondb.fluent.OperationsClient; +import com.azure.resourcemanager.horizondb.fluent.ParameterGroupsClient; +import com.azure.resourcemanager.horizondb.fluent.PasswordAuthenticationsClient; +import com.azure.resourcemanager.horizondb.fluent.PoolsClient; +import com.azure.resourcemanager.horizondb.fluent.PrivateEndpointConnectionsClient; +import com.azure.resourcemanager.horizondb.fluent.PrivateLinkResourcesClient; import java.io.IOException; import java.lang.reflect.Type; import java.nio.ByteBuffer; @@ -149,115 +162,297 @@ public OperationsClient getOperations() { } /** - * The HorizonDbClustersClient object to access its operations. + * The CapabilitiesClient object to access its operations. */ - private final HorizonDbClustersClient horizonDbClusters; + private final CapabilitiesClient capabilities; /** - * Gets the HorizonDbClustersClient object to access its operations. + * Gets the CapabilitiesClient object to access its operations. * - * @return the HorizonDbClustersClient object. + * @return the CapabilitiesClient object. */ - public HorizonDbClustersClient getHorizonDbClusters() { - return this.horizonDbClusters; + public CapabilitiesClient getCapabilities() { + return this.capabilities; } /** - * The HorizonDbPoolsClient object to access its operations. + * The ClustersClient object to access its operations. */ - private final HorizonDbPoolsClient horizonDbPools; + private final ClustersClient clusters; /** - * Gets the HorizonDbPoolsClient object to access its operations. + * Gets the ClustersClient object to access its operations. * - * @return the HorizonDbPoolsClient object. + * @return the ClustersClient object. */ - public HorizonDbPoolsClient getHorizonDbPools() { - return this.horizonDbPools; + public ClustersClient getClusters() { + return this.clusters; } /** - * The HorizonDbReplicasClient object to access its operations. + * The PoolsClient object to access its operations. */ - private final HorizonDbReplicasClient horizonDbReplicas; + private final PoolsClient pools; /** - * Gets the HorizonDbReplicasClient object to access its operations. + * Gets the PoolsClient object to access its operations. * - * @return the HorizonDbReplicasClient object. + * @return the PoolsClient object. */ - public HorizonDbReplicasClient getHorizonDbReplicas() { - return this.horizonDbReplicas; + public PoolsClient getPools() { + return this.pools; } /** - * The HorizonDbFirewallRulesClient object to access its operations. + * The FirewallRulesClient object to access its operations. */ - private final HorizonDbFirewallRulesClient horizonDbFirewallRules; + private final FirewallRulesClient firewallRules; /** - * Gets the HorizonDbFirewallRulesClient object to access its operations. + * Gets the FirewallRulesClient object to access its operations. * - * @return the HorizonDbFirewallRulesClient object. + * @return the FirewallRulesClient object. */ - public HorizonDbFirewallRulesClient getHorizonDbFirewallRules() { - return this.horizonDbFirewallRules; + public FirewallRulesClient getFirewallRules() { + return this.firewallRules; } /** - * The HorizonDbPrivateEndpointConnectionsClient object to access its operations. + * The PrivateEndpointConnectionsClient object to access its operations. */ - private final HorizonDbPrivateEndpointConnectionsClient horizonDbPrivateEndpointConnections; + private final PrivateEndpointConnectionsClient privateEndpointConnections; /** - * Gets the HorizonDbPrivateEndpointConnectionsClient object to access its operations. + * Gets the PrivateEndpointConnectionsClient object to access its operations. * - * @return the HorizonDbPrivateEndpointConnectionsClient object. + * @return the PrivateEndpointConnectionsClient object. */ - public HorizonDbPrivateEndpointConnectionsClient getHorizonDbPrivateEndpointConnections() { - return this.horizonDbPrivateEndpointConnections; + public PrivateEndpointConnectionsClient getPrivateEndpointConnections() { + return this.privateEndpointConnections; } /** - * The HorizonDbPrivateLinkResourcesClient object to access its operations. + * The PrivateLinkResourcesClient object to access its operations. */ - private final HorizonDbPrivateLinkResourcesClient horizonDbPrivateLinkResources; + private final PrivateLinkResourcesClient privateLinkResources; /** - * Gets the HorizonDbPrivateLinkResourcesClient object to access its operations. + * Gets the PrivateLinkResourcesClient object to access its operations. * - * @return the HorizonDbPrivateLinkResourcesClient object. + * @return the PrivateLinkResourcesClient object. */ - public HorizonDbPrivateLinkResourcesClient getHorizonDbPrivateLinkResources() { - return this.horizonDbPrivateLinkResources; + public PrivateLinkResourcesClient getPrivateLinkResources() { + return this.privateLinkResources; } /** - * The HorizonDbParameterGroupsClient object to access its operations. + * The ParameterGroupsClient object to access its operations. */ - private final HorizonDbParameterGroupsClient horizonDbParameterGroups; + private final ParameterGroupsClient parameterGroups; /** - * Gets the HorizonDbParameterGroupsClient object to access its operations. + * Gets the ParameterGroupsClient object to access its operations. * - * @return the HorizonDbParameterGroupsClient object. + * @return the ParameterGroupsClient object. */ - public HorizonDbParameterGroupsClient getHorizonDbParameterGroups() { - return this.horizonDbParameterGroups; + public ParameterGroupsClient getParameterGroups() { + return this.parameterGroups; } /** - * The HorizonDbAdministratorsClient object to access its operations. + * The DefaultParameterGroupsClient object to access its operations. */ - private final HorizonDbAdministratorsClient horizonDbAdministrators; + private final DefaultParameterGroupsClient defaultParameterGroups; /** - * Gets the HorizonDbAdministratorsClient object to access its operations. + * Gets the DefaultParameterGroupsClient object to access its operations. * - * @return the HorizonDbAdministratorsClient object. + * @return the DefaultParameterGroupsClient object. */ - public HorizonDbAdministratorsClient getHorizonDbAdministrators() { - return this.horizonDbAdministrators; + public DefaultParameterGroupsClient getDefaultParameterGroups() { + return this.defaultParameterGroups; + } + + /** + * The MicrosoftEntraAdministratorsClient object to access its operations. + */ + private final MicrosoftEntraAdministratorsClient microsoftEntraAdministrators; + + /** + * Gets the MicrosoftEntraAdministratorsClient object to access its operations. + * + * @return the MicrosoftEntraAdministratorsClient object. + */ + public MicrosoftEntraAdministratorsClient getMicrosoftEntraAdministrators() { + return this.microsoftEntraAdministrators; + } + + /** + * The AuthenticationsClient object to access its operations. + */ + private final AuthenticationsClient authentications; + + /** + * Gets the AuthenticationsClient object to access its operations. + * + * @return the AuthenticationsClient object. + */ + public AuthenticationsClient getAuthentications() { + return this.authentications; + } + + /** + * The PasswordAuthenticationsClient object to access its operations. + */ + private final PasswordAuthenticationsClient passwordAuthentications; + + /** + * Gets the PasswordAuthenticationsClient object to access its operations. + * + * @return the PasswordAuthenticationsClient object. + */ + public PasswordAuthenticationsClient getPasswordAuthentications() { + return this.passwordAuthentications; + } + + /** + * The MicrosoftEntraAuthenticationsClient object to access its operations. + */ + private final MicrosoftEntraAuthenticationsClient microsoftEntraAuthentications; + + /** + * Gets the MicrosoftEntraAuthenticationsClient object to access its operations. + * + * @return the MicrosoftEntraAuthenticationsClient object. + */ + public MicrosoftEntraAuthenticationsClient getMicrosoftEntraAuthentications() { + return this.microsoftEntraAuthentications; + } + + /** + * The ChangeDataCaptureCapabilitiesClient object to access its operations. + */ + private final ChangeDataCaptureCapabilitiesClient changeDataCaptureCapabilities; + + /** + * Gets the ChangeDataCaptureCapabilitiesClient object to access its operations. + * + * @return the ChangeDataCaptureCapabilitiesClient object. + */ + public ChangeDataCaptureCapabilitiesClient getChangeDataCaptureCapabilities() { + return this.changeDataCaptureCapabilities; + } + + /** + * The ChangeDataCaptureDestinationsClient object to access its operations. + */ + private final ChangeDataCaptureDestinationsClient changeDataCaptureDestinations; + + /** + * Gets the ChangeDataCaptureDestinationsClient object to access its operations. + * + * @return the ChangeDataCaptureDestinationsClient object. + */ + public ChangeDataCaptureDestinationsClient getChangeDataCaptureDestinations() { + return this.changeDataCaptureDestinations; + } + + /** + * The IdentityAssignmentsClient object to access its operations. + */ + private final IdentityAssignmentsClient identityAssignments; + + /** + * Gets the IdentityAssignmentsClient object to access its operations. + * + * @return the IdentityAssignmentsClient object. + */ + public IdentityAssignmentsClient getIdentityAssignments() { + return this.identityAssignments; + } + + /** + * The ChangeDataCaptureConfigurationsClient object to access its operations. + */ + private final ChangeDataCaptureConfigurationsClient changeDataCaptureConfigurations; + + /** + * Gets the ChangeDataCaptureConfigurationsClient object to access its operations. + * + * @return the ChangeDataCaptureConfigurationsClient object. + */ + public ChangeDataCaptureConfigurationsClient getChangeDataCaptureConfigurations() { + return this.changeDataCaptureConfigurations; + } + + /** + * The EndpointsClient object to access its operations. + */ + private final EndpointsClient endpoints; + + /** + * Gets the EndpointsClient object to access its operations. + * + * @return the EndpointsClient object. + */ + public EndpointsClient getEndpoints() { + return this.endpoints; + } + + /** + * The MaintenanceEventsClient object to access its operations. + */ + private final MaintenanceEventsClient maintenanceEvents; + + /** + * Gets the MaintenanceEventsClient object to access its operations. + * + * @return the MaintenanceEventsClient object. + */ + public MaintenanceEventsClient getMaintenanceEvents() { + return this.maintenanceEvents; + } + + /** + * The NodesClient object to access its operations. + */ + private final NodesClient nodes; + + /** + * Gets the NodesClient object to access its operations. + * + * @return the NodesClient object. + */ + public NodesClient getNodes() { + return this.nodes; + } + + /** + * The LogCaptureConfigurationsClient object to access its operations. + */ + private final LogCaptureConfigurationsClient logCaptureConfigurations; + + /** + * Gets the LogCaptureConfigurationsClient object to access its operations. + * + * @return the LogCaptureConfigurationsClient object. + */ + public LogCaptureConfigurationsClient getLogCaptureConfigurations() { + return this.logCaptureConfigurations; + } + + /** + * The LogFilesClient object to access its operations. + */ + private final LogFilesClient logFiles; + + /** + * Gets the LogFilesClient object to access its operations. + * + * @return the LogFilesClient object. + */ + public LogFilesClient getLogFiles() { + return this.logFiles; } /** @@ -277,16 +472,29 @@ public HorizonDbAdministratorsClient getHorizonDbAdministrators() { this.defaultPollInterval = defaultPollInterval; this.endpoint = endpoint; this.subscriptionId = subscriptionId; - this.apiVersion = "2026-05-01-preview"; + this.apiVersion = "2026-10-01-preview"; this.operations = new OperationsClientImpl(this); - this.horizonDbClusters = new HorizonDbClustersClientImpl(this); - this.horizonDbPools = new HorizonDbPoolsClientImpl(this); - this.horizonDbReplicas = new HorizonDbReplicasClientImpl(this); - this.horizonDbFirewallRules = new HorizonDbFirewallRulesClientImpl(this); - this.horizonDbPrivateEndpointConnections = new HorizonDbPrivateEndpointConnectionsClientImpl(this); - this.horizonDbPrivateLinkResources = new HorizonDbPrivateLinkResourcesClientImpl(this); - this.horizonDbParameterGroups = new HorizonDbParameterGroupsClientImpl(this); - this.horizonDbAdministrators = new HorizonDbAdministratorsClientImpl(this); + this.capabilities = new CapabilitiesClientImpl(this); + this.clusters = new ClustersClientImpl(this); + this.pools = new PoolsClientImpl(this); + this.firewallRules = new FirewallRulesClientImpl(this); + this.privateEndpointConnections = new PrivateEndpointConnectionsClientImpl(this); + this.privateLinkResources = new PrivateLinkResourcesClientImpl(this); + this.parameterGroups = new ParameterGroupsClientImpl(this); + this.defaultParameterGroups = new DefaultParameterGroupsClientImpl(this); + this.microsoftEntraAdministrators = new MicrosoftEntraAdministratorsClientImpl(this); + this.authentications = new AuthenticationsClientImpl(this); + this.passwordAuthentications = new PasswordAuthenticationsClientImpl(this); + this.microsoftEntraAuthentications = new MicrosoftEntraAuthenticationsClientImpl(this); + this.changeDataCaptureCapabilities = new ChangeDataCaptureCapabilitiesClientImpl(this); + this.changeDataCaptureDestinations = new ChangeDataCaptureDestinationsClientImpl(this); + this.identityAssignments = new IdentityAssignmentsClientImpl(this); + this.changeDataCaptureConfigurations = new ChangeDataCaptureConfigurationsClientImpl(this); + this.endpoints = new EndpointsClientImpl(this); + this.maintenanceEvents = new MaintenanceEventsClientImpl(this); + this.nodes = new NodesClientImpl(this); + this.logCaptureConfigurations = new LogCaptureConfigurationsClientImpl(this); + this.logFiles = new LogFilesClientImpl(this); } /** diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbPoolsImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbPoolsImpl.java deleted file mode 100644 index 75becd5a260ed..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbPoolsImpl.java +++ /dev/null @@ -1,64 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.horizondb.fluent.HorizonDbPoolsClient; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbPoolInner; -import com.azure.resourcemanager.horizondb.models.HorizonDbPool; -import com.azure.resourcemanager.horizondb.models.HorizonDbPools; - -public final class HorizonDbPoolsImpl implements HorizonDbPools { - private static final ClientLogger LOGGER = new ClientLogger(HorizonDbPoolsImpl.class); - - private final HorizonDbPoolsClient innerClient; - - private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; - - public HorizonDbPoolsImpl(HorizonDbPoolsClient innerClient, - com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public Response getWithResponse(String resourceGroupName, String clusterName, String poolName, - Context context) { - Response inner - = this.serviceClient().getWithResponse(resourceGroupName, clusterName, poolName, context); - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new HorizonDbPoolImpl(inner.getValue(), this.manager())); - } - - public HorizonDbPool get(String resourceGroupName, String clusterName, String poolName) { - HorizonDbPoolInner inner = this.serviceClient().get(resourceGroupName, clusterName, poolName); - if (inner != null) { - return new HorizonDbPoolImpl(inner, this.manager()); - } else { - return null; - } - } - - public PagedIterable list(String resourceGroupName, String clusterName) { - PagedIterable inner = this.serviceClient().list(resourceGroupName, clusterName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new HorizonDbPoolImpl(inner1, this.manager())); - } - - public PagedIterable list(String resourceGroupName, String clusterName, Context context) { - PagedIterable inner = this.serviceClient().list(resourceGroupName, clusterName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new HorizonDbPoolImpl(inner1, this.manager())); - } - - private HorizonDbPoolsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbPrivateEndpointConnectionsImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbPrivateEndpointConnectionsImpl.java deleted file mode 100644 index 876947b113ed5..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbPrivateEndpointConnectionsImpl.java +++ /dev/null @@ -1,100 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.horizondb.fluent.HorizonDbPrivateEndpointConnectionsClient; -import com.azure.resourcemanager.horizondb.fluent.models.PrivateEndpointConnectionResourceInner; -import com.azure.resourcemanager.horizondb.models.HorizonDbPrivateEndpointConnections; -import com.azure.resourcemanager.horizondb.models.PrivateEndpointConnectionResource; - -public final class HorizonDbPrivateEndpointConnectionsImpl implements HorizonDbPrivateEndpointConnections { - private static final ClientLogger LOGGER = new ClientLogger(HorizonDbPrivateEndpointConnectionsImpl.class); - - private final HorizonDbPrivateEndpointConnectionsClient innerClient; - - private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; - - public HorizonDbPrivateEndpointConnectionsImpl(HorizonDbPrivateEndpointConnectionsClient innerClient, - com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public Response getWithResponse(String resourceGroupName, String clusterName, - String privateEndpointConnectionName, Context context) { - Response inner = this.serviceClient() - .getWithResponse(resourceGroupName, clusterName, privateEndpointConnectionName, context); - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new PrivateEndpointConnectionResourceImpl(inner.getValue(), this.manager())); - } - - public PrivateEndpointConnectionResource get(String resourceGroupName, String clusterName, - String privateEndpointConnectionName) { - PrivateEndpointConnectionResourceInner inner - = this.serviceClient().get(resourceGroupName, clusterName, privateEndpointConnectionName); - if (inner != null) { - return new PrivateEndpointConnectionResourceImpl(inner, this.manager()); - } else { - return null; - } - } - - public PagedIterable list(String resourceGroupName, String clusterName) { - PagedIterable inner - = this.serviceClient().list(resourceGroupName, clusterName); - return ResourceManagerUtils.mapPage(inner, - inner1 -> new PrivateEndpointConnectionResourceImpl(inner1, this.manager())); - } - - public PagedIterable list(String resourceGroupName, String clusterName, - Context context) { - PagedIterable inner - = this.serviceClient().list(resourceGroupName, clusterName, context); - return ResourceManagerUtils.mapPage(inner, - inner1 -> new PrivateEndpointConnectionResourceImpl(inner1, this.manager())); - } - - public Response updateStatusWithResponse(String resourceGroupName, - String clusterName, String privateEndpointConnectionName, PrivateEndpointConnectionResourceInner resource, - Context context) { - Response inner = this.serviceClient() - .updateStatusWithResponse(resourceGroupName, clusterName, privateEndpointConnectionName, resource, context); - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new PrivateEndpointConnectionResourceImpl(inner.getValue(), this.manager())); - } - - public PrivateEndpointConnectionResource updateStatus(String resourceGroupName, String clusterName, - String privateEndpointConnectionName, PrivateEndpointConnectionResourceInner resource) { - PrivateEndpointConnectionResourceInner inner = this.serviceClient() - .updateStatus(resourceGroupName, clusterName, privateEndpointConnectionName, resource); - if (inner != null) { - return new PrivateEndpointConnectionResourceImpl(inner, this.manager()); - } else { - return null; - } - } - - public void delete(String resourceGroupName, String clusterName, String privateEndpointConnectionName) { - this.serviceClient().delete(resourceGroupName, clusterName, privateEndpointConnectionName); - } - - public void delete(String resourceGroupName, String clusterName, String privateEndpointConnectionName, - Context context) { - this.serviceClient().delete(resourceGroupName, clusterName, privateEndpointConnectionName, context); - } - - private HorizonDbPrivateEndpointConnectionsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbPrivateLinkResourcesImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbPrivateLinkResourcesImpl.java deleted file mode 100644 index 82aa93ee9ed32..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbPrivateLinkResourcesImpl.java +++ /dev/null @@ -1,69 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.horizondb.fluent.HorizonDbPrivateLinkResourcesClient; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbPrivateLinkResourceInner; -import com.azure.resourcemanager.horizondb.models.HorizonDbPrivateLinkResource; -import com.azure.resourcemanager.horizondb.models.HorizonDbPrivateLinkResources; - -public final class HorizonDbPrivateLinkResourcesImpl implements HorizonDbPrivateLinkResources { - private static final ClientLogger LOGGER = new ClientLogger(HorizonDbPrivateLinkResourcesImpl.class); - - private final HorizonDbPrivateLinkResourcesClient innerClient; - - private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; - - public HorizonDbPrivateLinkResourcesImpl(HorizonDbPrivateLinkResourcesClient innerClient, - com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public Response getWithResponse(String resourceGroupName, String clusterName, - String groupName, Context context) { - Response inner - = this.serviceClient().getWithResponse(resourceGroupName, clusterName, groupName, context); - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new HorizonDbPrivateLinkResourceImpl(inner.getValue(), this.manager())); - } - - public HorizonDbPrivateLinkResource get(String resourceGroupName, String clusterName, String groupName) { - HorizonDbPrivateLinkResourceInner inner = this.serviceClient().get(resourceGroupName, clusterName, groupName); - if (inner != null) { - return new HorizonDbPrivateLinkResourceImpl(inner, this.manager()); - } else { - return null; - } - } - - public PagedIterable list(String resourceGroupName, String clusterName) { - PagedIterable inner - = this.serviceClient().list(resourceGroupName, clusterName); - return ResourceManagerUtils.mapPage(inner, - inner1 -> new HorizonDbPrivateLinkResourceImpl(inner1, this.manager())); - } - - public PagedIterable list(String resourceGroupName, String clusterName, - Context context) { - PagedIterable inner - = this.serviceClient().list(resourceGroupName, clusterName, context); - return ResourceManagerUtils.mapPage(inner, - inner1 -> new HorizonDbPrivateLinkResourceImpl(inner1, this.manager())); - } - - private HorizonDbPrivateLinkResourcesClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbReplicaImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbReplicaImpl.java deleted file mode 100644 index b9503a78e8b38..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbReplicaImpl.java +++ /dev/null @@ -1,144 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.implementation; - -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbReplicaInner; -import com.azure.resourcemanager.horizondb.models.HorizonDbReplica; -import com.azure.resourcemanager.horizondb.models.HorizonDbReplicaForPatchUpdate; -import com.azure.resourcemanager.horizondb.models.HorizonDbReplicaProperties; -import com.azure.resourcemanager.horizondb.models.HorizonDbReplicaPropertiesForPatchUpdate; - -public final class HorizonDbReplicaImpl - implements HorizonDbReplica, HorizonDbReplica.Definition, HorizonDbReplica.Update { - private HorizonDbReplicaInner innerObject; - - private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; - - public String id() { - return this.innerModel().id(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public HorizonDbReplicaProperties properties() { - return this.innerModel().properties(); - } - - public SystemData systemData() { - return this.innerModel().systemData(); - } - - public String resourceGroupName() { - return resourceGroupName; - } - - public HorizonDbReplicaInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { - return this.serviceManager; - } - - private String resourceGroupName; - - private String clusterName; - - private String poolName; - - private String replicaName; - - private HorizonDbReplicaForPatchUpdate updateProperties; - - public HorizonDbReplicaImpl withExistingPool(String resourceGroupName, String clusterName, String poolName) { - this.resourceGroupName = resourceGroupName; - this.clusterName = clusterName; - this.poolName = poolName; - return this; - } - - public HorizonDbReplica create() { - this.innerObject = serviceManager.serviceClient() - .getHorizonDbReplicas() - .createOrUpdate(resourceGroupName, clusterName, poolName, replicaName, this.innerModel(), Context.NONE); - return this; - } - - public HorizonDbReplica create(Context context) { - this.innerObject = serviceManager.serviceClient() - .getHorizonDbReplicas() - .createOrUpdate(resourceGroupName, clusterName, poolName, replicaName, this.innerModel(), context); - return this; - } - - HorizonDbReplicaImpl(String name, com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { - this.innerObject = new HorizonDbReplicaInner(); - this.serviceManager = serviceManager; - this.replicaName = name; - } - - public HorizonDbReplicaImpl update() { - this.updateProperties = new HorizonDbReplicaForPatchUpdate(); - return this; - } - - public HorizonDbReplica apply() { - this.innerObject = serviceManager.serviceClient() - .getHorizonDbReplicas() - .update(resourceGroupName, clusterName, poolName, replicaName, updateProperties, Context.NONE); - return this; - } - - public HorizonDbReplica apply(Context context) { - this.innerObject = serviceManager.serviceClient() - .getHorizonDbReplicas() - .update(resourceGroupName, clusterName, poolName, replicaName, updateProperties, context); - return this; - } - - HorizonDbReplicaImpl(HorizonDbReplicaInner innerObject, - com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.clusterName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "clusters"); - this.poolName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "pools"); - this.replicaName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "replicas"); - } - - public HorizonDbReplica refresh() { - this.innerObject = serviceManager.serviceClient() - .getHorizonDbReplicas() - .getWithResponse(resourceGroupName, clusterName, poolName, replicaName, Context.NONE) - .getValue(); - return this; - } - - public HorizonDbReplica refresh(Context context) { - this.innerObject = serviceManager.serviceClient() - .getHorizonDbReplicas() - .getWithResponse(resourceGroupName, clusterName, poolName, replicaName, context) - .getValue(); - return this; - } - - public HorizonDbReplicaImpl withProperties(HorizonDbReplicaProperties properties) { - this.innerModel().withProperties(properties); - return this; - } - - public HorizonDbReplicaImpl withProperties(HorizonDbReplicaPropertiesForPatchUpdate properties) { - this.updateProperties.withProperties(properties); - return this; - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/IdentityAssignmentImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/IdentityAssignmentImpl.java new file mode 100644 index 0000000000000..65f5f1e8e08f6 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/IdentityAssignmentImpl.java @@ -0,0 +1,114 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.horizondb.fluent.models.IdentityAssignmentInner; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureIdentityAssignmentProperties; +import com.azure.resourcemanager.horizondb.models.IdentityAssignment; + +public final class IdentityAssignmentImpl implements IdentityAssignment, IdentityAssignment.Definition { + private IdentityAssignmentInner innerObject; + + private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; + + IdentityAssignmentImpl(IdentityAssignmentInner innerObject, + com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public ChangeDataCaptureIdentityAssignmentProperties properties() { + return this.innerModel().properties(); + } + + public String eTag() { + return this.innerModel().eTag(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public IdentityAssignmentInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { + return this.serviceManager; + } + + private String resourceGroupName; + + private String clusterName; + + private String destinationName; + + private String assignmentName; + + public IdentityAssignmentImpl withExistingChangeDataCaptureDestination(String resourceGroupName, String clusterName, + String destinationName) { + this.resourceGroupName = resourceGroupName; + this.clusterName = clusterName; + this.destinationName = destinationName; + return this; + } + + public IdentityAssignment create() { + this.innerObject = serviceManager.serviceClient() + .getIdentityAssignments() + .createOrReplace(resourceGroupName, clusterName, destinationName, assignmentName, this.innerModel(), + Context.NONE); + return this; + } + + public IdentityAssignment create(Context context) { + this.innerObject = serviceManager.serviceClient() + .getIdentityAssignments() + .createOrReplace(resourceGroupName, clusterName, destinationName, assignmentName, this.innerModel(), + context); + return this; + } + + IdentityAssignmentImpl(String name, com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerObject = new IdentityAssignmentInner(); + this.serviceManager = serviceManager; + this.assignmentName = name; + } + + public IdentityAssignment refresh() { + this.innerObject = serviceManager.serviceClient() + .getIdentityAssignments() + .getWithResponse(resourceGroupName, clusterName, destinationName, assignmentName, Context.NONE) + .getValue(); + return this; + } + + public IdentityAssignment refresh(Context context) { + this.innerObject = serviceManager.serviceClient() + .getIdentityAssignments() + .getWithResponse(resourceGroupName, clusterName, destinationName, assignmentName, context) + .getValue(); + return this; + } + + public IdentityAssignmentImpl withProperties(ChangeDataCaptureIdentityAssignmentProperties properties) { + this.innerModel().withProperties(properties); + return this; + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/IdentityAssignmentsClientImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/IdentityAssignmentsClientImpl.java new file mode 100644 index 0000000000000..420db2d8a8c58 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/IdentityAssignmentsClientImpl.java @@ -0,0 +1,838 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.BinaryData; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.horizondb.fluent.IdentityAssignmentsClient; +import com.azure.resourcemanager.horizondb.fluent.models.IdentityAssignmentInner; +import com.azure.resourcemanager.horizondb.implementation.models.IdentityAssignmentListResult; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in IdentityAssignmentsClient. + */ +public final class IdentityAssignmentsClientImpl implements IdentityAssignmentsClient { + /** + * The proxy service used to perform REST calls. + */ + private final IdentityAssignmentsService service; + + /** + * The service client containing this operation class. + */ + private final HorizonDbManagementClientImpl client; + + /** + * Initializes an instance of IdentityAssignmentsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + IdentityAssignmentsClientImpl(HorizonDbManagementClientImpl client) { + this.service = RestProxy.create(IdentityAssignmentsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for HorizonDbManagementClientIdentityAssignments to be used by the proxy + * service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "HorizonDbManagementClientIdentityAssignments") + public interface IdentityAssignmentsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCaptureDestinations/{destinationName}/identityAssignments/{assignmentName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("destinationName") String destinationName, @PathParam("assignmentName") String assignmentName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCaptureDestinations/{destinationName}/identityAssignments/{assignmentName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("destinationName") String destinationName, @PathParam("assignmentName") String assignmentName, + @HeaderParam("Accept") String accept, Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCaptureDestinations/{destinationName}/identityAssignments/{assignmentName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createOrReplace(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("destinationName") String destinationName, @PathParam("assignmentName") String assignmentName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") IdentityAssignmentInner resource, Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCaptureDestinations/{destinationName}/identityAssignments/{assignmentName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response createOrReplaceSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("destinationName") String destinationName, @PathParam("assignmentName") String assignmentName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") IdentityAssignmentInner resource, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCaptureDestinations/{destinationName}/identityAssignments/{assignmentName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("destinationName") String destinationName, @PathParam("assignmentName") String assignmentName, + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCaptureDestinations/{destinationName}/identityAssignments/{assignmentName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("destinationName") String destinationName, @PathParam("assignmentName") String assignmentName, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCaptureDestinations/{destinationName}/identityAssignments") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("destinationName") String destinationName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/changeDataCaptureDestinations/{destinationName}/identityAssignments") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("destinationName") String destinationName, @HeaderParam("Accept") String accept, + Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Gets a change data capture identity assignment. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @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 change data capture identity assignment along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getWithResponseAsync(String resourceGroupName, String clusterName, + String destinationName, String assignmentName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, destinationName, assignmentName, + accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets a change data capture identity assignment. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @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 change data capture identity assignment on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, String clusterName, String destinationName, + String assignmentName) { + return getWithResponseAsync(resourceGroupName, clusterName, destinationName, assignmentName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets a change data capture identity assignment. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @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 a change data capture identity assignment along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String clusterName, + String destinationName, String assignmentName, Context context) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, clusterName, destinationName, assignmentName, accept, context); + } + + /** + * Gets a change data capture identity assignment. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @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 change data capture identity assignment. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public IdentityAssignmentInner get(String resourceGroupName, String clusterName, String destinationName, + String assignmentName) { + return getWithResponse(resourceGroupName, clusterName, destinationName, assignmentName, Context.NONE) + .getValue(); + } + + /** + * Creates or idempotently replaces a change data capture identity assignment. The identity resource ID is immutable + * and must reference a user-assigned managed identity already attached to the parent cluster. The service also + * validates destination permissions, which are not granted by attaching the identity to the cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @param resource Resource create parameters. + * @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 user-assigned managed identity authorized for a HorizonDB change data capture destination along with + * {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> createOrReplaceWithResponseAsync(String resourceGroupName, + String clusterName, String destinationName, String assignmentName, IdentityAssignmentInner resource) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrReplace(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, destinationName, assignmentName, + contentType, accept, resource, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Creates or idempotently replaces a change data capture identity assignment. The identity resource ID is immutable + * and must reference a user-assigned managed identity already attached to the parent cluster. The service also + * validates destination permissions, which are not granted by attaching the identity to the cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @param resource Resource create parameters. + * @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 user-assigned managed identity authorized for a HorizonDB change data capture destination along with + * {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrReplaceWithResponse(String resourceGroupName, String clusterName, + String destinationName, String assignmentName, IdentityAssignmentInner resource) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrReplaceSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, destinationName, assignmentName, + contentType, accept, resource, Context.NONE); + } + + /** + * Creates or idempotently replaces a change data capture identity assignment. The identity resource ID is immutable + * and must reference a user-assigned managed identity already attached to the parent cluster. The service also + * validates destination permissions, which are not granted by attaching the identity to the cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @param resource Resource create parameters. + * @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 a user-assigned managed identity authorized for a HorizonDB change data capture destination along with + * {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrReplaceWithResponse(String resourceGroupName, String clusterName, + String destinationName, String assignmentName, IdentityAssignmentInner resource, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrReplaceSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, destinationName, assignmentName, + contentType, accept, resource, context); + } + + /** + * Creates or idempotently replaces a change data capture identity assignment. The identity resource ID is immutable + * and must reference a user-assigned managed identity already attached to the parent cluster. The service also + * validates destination permissions, which are not granted by attaching the identity to the cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @param resource Resource create parameters. + * @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 a user-assigned managed identity authorized for a HorizonDB change + * data capture destination. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, IdentityAssignmentInner> beginCreateOrReplaceAsync( + String resourceGroupName, String clusterName, String destinationName, String assignmentName, + IdentityAssignmentInner resource) { + Mono>> mono = createOrReplaceWithResponseAsync(resourceGroupName, clusterName, + destinationName, assignmentName, resource); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), IdentityAssignmentInner.class, IdentityAssignmentInner.class, + this.client.getContext()); + } + + /** + * Creates or idempotently replaces a change data capture identity assignment. The identity resource ID is immutable + * and must reference a user-assigned managed identity already attached to the parent cluster. The service also + * validates destination permissions, which are not granted by attaching the identity to the cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @param resource Resource create parameters. + * @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 a user-assigned managed identity authorized for a HorizonDB change + * data capture destination. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, IdentityAssignmentInner> beginCreateOrReplace( + String resourceGroupName, String clusterName, String destinationName, String assignmentName, + IdentityAssignmentInner resource) { + Response response + = createOrReplaceWithResponse(resourceGroupName, clusterName, destinationName, assignmentName, resource); + return this.client.getLroResult(response, + IdentityAssignmentInner.class, IdentityAssignmentInner.class, Context.NONE); + } + + /** + * Creates or idempotently replaces a change data capture identity assignment. The identity resource ID is immutable + * and must reference a user-assigned managed identity already attached to the parent cluster. The service also + * validates destination permissions, which are not granted by attaching the identity to the cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @param resource Resource create parameters. + * @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 a user-assigned managed identity authorized for a HorizonDB change + * data capture destination. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, IdentityAssignmentInner> beginCreateOrReplace( + String resourceGroupName, String clusterName, String destinationName, String assignmentName, + IdentityAssignmentInner resource, Context context) { + Response response = createOrReplaceWithResponse(resourceGroupName, clusterName, destinationName, + assignmentName, resource, context); + return this.client.getLroResult(response, + IdentityAssignmentInner.class, IdentityAssignmentInner.class, context); + } + + /** + * Creates or idempotently replaces a change data capture identity assignment. The identity resource ID is immutable + * and must reference a user-assigned managed identity already attached to the parent cluster. The service also + * validates destination permissions, which are not granted by attaching the identity to the cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @param resource Resource create parameters. + * @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 user-assigned managed identity authorized for a HorizonDB change data capture destination on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrReplaceAsync(String resourceGroupName, String clusterName, + String destinationName, String assignmentName, IdentityAssignmentInner resource) { + return beginCreateOrReplaceAsync(resourceGroupName, clusterName, destinationName, assignmentName, resource) + .last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates or idempotently replaces a change data capture identity assignment. The identity resource ID is immutable + * and must reference a user-assigned managed identity already attached to the parent cluster. The service also + * validates destination permissions, which are not granted by attaching the identity to the cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @param resource Resource create parameters. + * @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 user-assigned managed identity authorized for a HorizonDB change data capture destination. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public IdentityAssignmentInner createOrReplace(String resourceGroupName, String clusterName, String destinationName, + String assignmentName, IdentityAssignmentInner resource) { + return beginCreateOrReplace(resourceGroupName, clusterName, destinationName, assignmentName, resource) + .getFinalResult(); + } + + /** + * Creates or idempotently replaces a change data capture identity assignment. The identity resource ID is immutable + * and must reference a user-assigned managed identity already attached to the parent cluster. The service also + * validates destination permissions, which are not granted by attaching the identity to the cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @param resource Resource create parameters. + * @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 a user-assigned managed identity authorized for a HorizonDB change data capture destination. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public IdentityAssignmentInner createOrReplace(String resourceGroupName, String clusterName, String destinationName, + String assignmentName, IdentityAssignmentInner resource, Context context) { + return beginCreateOrReplace(resourceGroupName, clusterName, destinationName, assignmentName, resource, context) + .getFinalResult(); + } + + /** + * Deletes an inactive change data capture identity assignment. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @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) + public Mono>> deleteWithResponseAsync(String resourceGroupName, String clusterName, + String destinationName, String assignmentName) { + return FluxUtil.withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, destinationName, assignmentName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes an inactive change data capture identity assignment. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @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 deleteWithResponse(String resourceGroupName, String clusterName, + String destinationName, String assignmentName) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, destinationName, assignmentName, + Context.NONE); + } + + /** + * Deletes an inactive change data capture identity assignment. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @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 deleteWithResponse(String resourceGroupName, String clusterName, + String destinationName, String assignmentName, Context context) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, destinationName, assignmentName, context); + } + + /** + * Deletes an inactive change data capture identity assignment. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @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) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String clusterName, + String destinationName, String assignmentName) { + Mono>> mono + = deleteWithResponseAsync(resourceGroupName, clusterName, destinationName, assignmentName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes an inactive change data capture identity assignment. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @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> beginDelete(String resourceGroupName, String clusterName, + String destinationName, String assignmentName) { + Response response + = deleteWithResponse(resourceGroupName, clusterName, destinationName, assignmentName); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + } + + /** + * Deletes an inactive change data capture identity assignment. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @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> beginDelete(String resourceGroupName, String clusterName, + String destinationName, String assignmentName, Context context) { + Response response + = deleteWithResponse(resourceGroupName, clusterName, destinationName, assignmentName, context); + return this.client.getLroResult(response, Void.class, Void.class, context); + } + + /** + * Deletes an inactive change data capture identity assignment. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @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) + public Mono deleteAsync(String resourceGroupName, String clusterName, String destinationName, + String assignmentName) { + return beginDeleteAsync(resourceGroupName, clusterName, destinationName, assignmentName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes an inactive change data capture identity assignment. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @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 delete(String resourceGroupName, String clusterName, String destinationName, String assignmentName) { + beginDelete(resourceGroupName, clusterName, destinationName, assignmentName).getFinalResult(); + } + + /** + * Deletes an inactive change data capture identity assignment. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. + * @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 delete(String resourceGroupName, String clusterName, String destinationName, String assignmentName, + Context context) { + beginDelete(resourceGroupName, clusterName, destinationName, assignmentName, context).getFinalResult(); + } + + /** + * Lists identity assignments for a change data capture destination. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @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 of a IdentityAssignment list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String clusterName, String destinationName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, destinationName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Lists identity assignments for a change data capture destination. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @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 of a IdentityAssignment list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String clusterName, + String destinationName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, clusterName, destinationName), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Lists identity assignments for a change data capture destination. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @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 of a IdentityAssignment list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, String clusterName, + String destinationName) { + final String accept = "application/json"; + Response res + = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, clusterName, destinationName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Lists identity assignments for a change data capture destination. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @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 of a IdentityAssignment list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, String clusterName, + String destinationName, Context context) { + final String accept = "application/json"; + Response res + = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, clusterName, destinationName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Lists identity assignments for a change data capture destination. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @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 of a IdentityAssignment list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String clusterName, + String destinationName) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, clusterName, destinationName), + nextLink -> listNextSinglePage(nextLink)); + } + + /** + * Lists identity assignments for a change data capture destination. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @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 of a IdentityAssignment list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String clusterName, + String destinationName, Context context) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, clusterName, destinationName, context), + nextLink -> listNextSinglePage(nextLink, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a IdentityAssignment list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a IdentityAssignment list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a IdentityAssignment list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/IdentityAssignmentsImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/IdentityAssignmentsImpl.java new file mode 100644 index 0000000000000..2e48748b062ba --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/IdentityAssignmentsImpl.java @@ -0,0 +1,180 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.horizondb.fluent.IdentityAssignmentsClient; +import com.azure.resourcemanager.horizondb.fluent.models.IdentityAssignmentInner; +import com.azure.resourcemanager.horizondb.models.IdentityAssignment; +import com.azure.resourcemanager.horizondb.models.IdentityAssignments; + +public final class IdentityAssignmentsImpl implements IdentityAssignments { + private static final ClientLogger LOGGER = new ClientLogger(IdentityAssignmentsImpl.class); + + private final IdentityAssignmentsClient innerClient; + + private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; + + public IdentityAssignmentsImpl(IdentityAssignmentsClient innerClient, + com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String resourceGroupName, String clusterName, + String destinationName, String assignmentName, Context context) { + Response inner = this.serviceClient() + .getWithResponse(resourceGroupName, clusterName, destinationName, assignmentName, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new IdentityAssignmentImpl(inner.getValue(), this.manager())); + } + + public IdentityAssignment get(String resourceGroupName, String clusterName, String destinationName, + String assignmentName) { + IdentityAssignmentInner inner + = this.serviceClient().get(resourceGroupName, clusterName, destinationName, assignmentName); + if (inner != null) { + return new IdentityAssignmentImpl(inner, this.manager()); + } else { + return null; + } + } + + public void delete(String resourceGroupName, String clusterName, String destinationName, String assignmentName) { + this.serviceClient().delete(resourceGroupName, clusterName, destinationName, assignmentName); + } + + public void delete(String resourceGroupName, String clusterName, String destinationName, String assignmentName, + Context context) { + this.serviceClient().delete(resourceGroupName, clusterName, destinationName, assignmentName, context); + } + + public PagedIterable list(String resourceGroupName, String clusterName, + String destinationName) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, clusterName, destinationName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new IdentityAssignmentImpl(inner1, this.manager())); + } + + public PagedIterable list(String resourceGroupName, String clusterName, String destinationName, + Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, clusterName, destinationName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new IdentityAssignmentImpl(inner1, this.manager())); + } + + public IdentityAssignment getById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String clusterName = ResourceManagerUtils.getValueFromIdByName(id, "clusters"); + if (clusterName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); + } + String destinationName = ResourceManagerUtils.getValueFromIdByName(id, "changeDataCaptureDestinations"); + if (destinationName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format( + "The resource ID '%s' is not valid. Missing path segment 'changeDataCaptureDestinations'.", id))); + } + String assignmentName = ResourceManagerUtils.getValueFromIdByName(id, "identityAssignments"); + if (assignmentName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'identityAssignments'.", id))); + } + return this.getWithResponse(resourceGroupName, clusterName, destinationName, assignmentName, Context.NONE) + .getValue(); + } + + public Response getByIdWithResponse(String id, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String clusterName = ResourceManagerUtils.getValueFromIdByName(id, "clusters"); + if (clusterName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); + } + String destinationName = ResourceManagerUtils.getValueFromIdByName(id, "changeDataCaptureDestinations"); + if (destinationName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format( + "The resource ID '%s' is not valid. Missing path segment 'changeDataCaptureDestinations'.", id))); + } + String assignmentName = ResourceManagerUtils.getValueFromIdByName(id, "identityAssignments"); + if (assignmentName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'identityAssignments'.", id))); + } + return this.getWithResponse(resourceGroupName, clusterName, destinationName, assignmentName, context); + } + + public void deleteById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String clusterName = ResourceManagerUtils.getValueFromIdByName(id, "clusters"); + if (clusterName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); + } + String destinationName = ResourceManagerUtils.getValueFromIdByName(id, "changeDataCaptureDestinations"); + if (destinationName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format( + "The resource ID '%s' is not valid. Missing path segment 'changeDataCaptureDestinations'.", id))); + } + String assignmentName = ResourceManagerUtils.getValueFromIdByName(id, "identityAssignments"); + if (assignmentName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'identityAssignments'.", id))); + } + this.delete(resourceGroupName, clusterName, destinationName, assignmentName, Context.NONE); + } + + public void deleteByIdWithResponse(String id, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String clusterName = ResourceManagerUtils.getValueFromIdByName(id, "clusters"); + if (clusterName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); + } + String destinationName = ResourceManagerUtils.getValueFromIdByName(id, "changeDataCaptureDestinations"); + if (destinationName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format( + "The resource ID '%s' is not valid. Missing path segment 'changeDataCaptureDestinations'.", id))); + } + String assignmentName = ResourceManagerUtils.getValueFromIdByName(id, "identityAssignments"); + if (assignmentName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'identityAssignments'.", id))); + } + this.delete(resourceGroupName, clusterName, destinationName, assignmentName, context); + } + + private IdentityAssignmentsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { + return this.serviceManager; + } + + public IdentityAssignmentImpl define(String name) { + return new IdentityAssignmentImpl(name, this.manager()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/LogCaptureConfigurationImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/LogCaptureConfigurationImpl.java new file mode 100644 index 0000000000000..a236d06ac7435 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/LogCaptureConfigurationImpl.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.horizondb.fluent.models.LogCaptureConfigurationInner; +import com.azure.resourcemanager.horizondb.models.LogCaptureConfiguration; +import com.azure.resourcemanager.horizondb.models.LogCaptureConfigurationProperties; + +public final class LogCaptureConfigurationImpl implements LogCaptureConfiguration { + private LogCaptureConfigurationInner innerObject; + + private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; + + LogCaptureConfigurationImpl(LogCaptureConfigurationInner innerObject, + com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public LogCaptureConfigurationProperties properties() { + return this.innerModel().properties(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public LogCaptureConfigurationInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/LogCaptureConfigurationsClientImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/LogCaptureConfigurationsClientImpl.java new file mode 100644 index 0000000000000..515a46678b6dd --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/LogCaptureConfigurationsClientImpl.java @@ -0,0 +1,600 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.BinaryData; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.horizondb.fluent.LogCaptureConfigurationsClient; +import com.azure.resourcemanager.horizondb.fluent.models.LogCaptureConfigurationInner; +import com.azure.resourcemanager.horizondb.implementation.models.LogCaptureConfigurationListResult; +import com.azure.resourcemanager.horizondb.models.LogCaptureConfigurationForPatchUpdate; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in LogCaptureConfigurationsClient. + */ +public final class LogCaptureConfigurationsClientImpl implements LogCaptureConfigurationsClient { + /** + * The proxy service used to perform REST calls. + */ + private final LogCaptureConfigurationsService service; + + /** + * The service client containing this operation class. + */ + private final HorizonDbManagementClientImpl client; + + /** + * Initializes an instance of LogCaptureConfigurationsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + LogCaptureConfigurationsClientImpl(HorizonDbManagementClientImpl client) { + this.service = RestProxy.create(LogCaptureConfigurationsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for HorizonDbManagementClientLogCaptureConfigurations to be used by the + * proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "HorizonDbManagementClientLogCaptureConfigurations") + public interface LogCaptureConfigurationsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/logCaptureConfigurations/{logCaptureConfigurationName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("logCaptureConfigurationName") String logCaptureConfigurationName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/logCaptureConfigurations/{logCaptureConfigurationName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("logCaptureConfigurationName") String logCaptureConfigurationName, + @HeaderParam("Accept") String accept, Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/logCaptureConfigurations/{logCaptureConfigurationName}") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> update(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("logCaptureConfigurationName") String logCaptureConfigurationName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") LogCaptureConfigurationForPatchUpdate properties, Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/logCaptureConfigurations/{logCaptureConfigurationName}") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response updateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("logCaptureConfigurationName") String logCaptureConfigurationName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") LogCaptureConfigurationForPatchUpdate properties, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/logCaptureConfigurations") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/logCaptureConfigurations") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Gets a log capture configuration for a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logCaptureConfigurationName The name of the LogCaptureConfiguration. + * @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 log capture configuration for a HorizonDB cluster along with {@link Response} on successful completion + * of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getWithResponseAsync(String resourceGroupName, + String clusterName, String logCaptureConfigurationName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, logCaptureConfigurationName, accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets a log capture configuration for a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logCaptureConfigurationName The name of the LogCaptureConfiguration. + * @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 log capture configuration for a HorizonDB cluster on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, String clusterName, + String logCaptureConfigurationName) { + return getWithResponseAsync(resourceGroupName, clusterName, logCaptureConfigurationName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets a log capture configuration for a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logCaptureConfigurationName The name of the LogCaptureConfiguration. + * @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 a log capture configuration for a HorizonDB cluster along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String clusterName, + String logCaptureConfigurationName, Context context) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, clusterName, logCaptureConfigurationName, accept, context); + } + + /** + * Gets a log capture configuration for a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logCaptureConfigurationName The name of the LogCaptureConfiguration. + * @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 log capture configuration for a HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public LogCaptureConfigurationInner get(String resourceGroupName, String clusterName, + String logCaptureConfigurationName) { + return getWithResponse(resourceGroupName, clusterName, logCaptureConfigurationName, Context.NONE).getValue(); + } + + /** + * Updates a log capture configuration. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logCaptureConfigurationName The name of the LogCaptureConfiguration. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a predefined log capture configuration created by the service for a HorizonDB cluster along with + * {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> updateWithResponseAsync(String resourceGroupName, String clusterName, + String logCaptureConfigurationName, LogCaptureConfigurationForPatchUpdate properties) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, logCaptureConfigurationName, + contentType, accept, properties, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Updates a log capture configuration. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logCaptureConfigurationName The name of the LogCaptureConfiguration. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a predefined log capture configuration created by the service for a HorizonDB cluster along with + * {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response updateWithResponse(String resourceGroupName, String clusterName, + String logCaptureConfigurationName, LogCaptureConfigurationForPatchUpdate properties) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, logCaptureConfigurationName, contentType, + accept, properties, Context.NONE); + } + + /** + * Updates a log capture configuration. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logCaptureConfigurationName The name of the LogCaptureConfiguration. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a predefined log capture configuration created by the service for a HorizonDB cluster along with + * {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response updateWithResponse(String resourceGroupName, String clusterName, + String logCaptureConfigurationName, LogCaptureConfigurationForPatchUpdate properties, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, logCaptureConfigurationName, contentType, + accept, properties, context); + } + + /** + * Updates a log capture configuration. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logCaptureConfigurationName The name of the LogCaptureConfiguration. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of a predefined log capture configuration created by the service for a + * HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, LogCaptureConfigurationInner> beginUpdateAsync( + String resourceGroupName, String clusterName, String logCaptureConfigurationName, + LogCaptureConfigurationForPatchUpdate properties) { + Mono>> mono + = updateWithResponseAsync(resourceGroupName, clusterName, logCaptureConfigurationName, properties); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), LogCaptureConfigurationInner.class, LogCaptureConfigurationInner.class, + this.client.getContext()); + } + + /** + * Updates a log capture configuration. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logCaptureConfigurationName The name of the LogCaptureConfiguration. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of a predefined log capture configuration created by the service for a + * HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, LogCaptureConfigurationInner> beginUpdate( + String resourceGroupName, String clusterName, String logCaptureConfigurationName, + LogCaptureConfigurationForPatchUpdate properties) { + Response response + = updateWithResponse(resourceGroupName, clusterName, logCaptureConfigurationName, properties); + return this.client.getLroResult(response, + LogCaptureConfigurationInner.class, LogCaptureConfigurationInner.class, Context.NONE); + } + + /** + * Updates a log capture configuration. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logCaptureConfigurationName The name of the LogCaptureConfiguration. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of a predefined log capture configuration created by the service for a + * HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, LogCaptureConfigurationInner> beginUpdate( + String resourceGroupName, String clusterName, String logCaptureConfigurationName, + LogCaptureConfigurationForPatchUpdate properties, Context context) { + Response response + = updateWithResponse(resourceGroupName, clusterName, logCaptureConfigurationName, properties, context); + return this.client.getLroResult(response, + LogCaptureConfigurationInner.class, LogCaptureConfigurationInner.class, context); + } + + /** + * Updates a log capture configuration. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logCaptureConfigurationName The name of the LogCaptureConfiguration. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a predefined log capture configuration created by the service for a HorizonDB cluster on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono updateAsync(String resourceGroupName, String clusterName, + String logCaptureConfigurationName, LogCaptureConfigurationForPatchUpdate properties) { + return beginUpdateAsync(resourceGroupName, clusterName, logCaptureConfigurationName, properties).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Updates a log capture configuration. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logCaptureConfigurationName The name of the LogCaptureConfiguration. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a predefined log capture configuration created by the service for a HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public LogCaptureConfigurationInner update(String resourceGroupName, String clusterName, + String logCaptureConfigurationName, LogCaptureConfigurationForPatchUpdate properties) { + return beginUpdate(resourceGroupName, clusterName, logCaptureConfigurationName, properties).getFinalResult(); + } + + /** + * Updates a log capture configuration. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logCaptureConfigurationName The name of the LogCaptureConfiguration. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a predefined log capture configuration created by the service for a HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public LogCaptureConfigurationInner update(String resourceGroupName, String clusterName, + String logCaptureConfigurationName, LogCaptureConfigurationForPatchUpdate properties, Context context) { + return beginUpdate(resourceGroupName, clusterName, logCaptureConfigurationName, properties, context) + .getFinalResult(); + } + + /** + * Lists the log capture configurations for a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LogCaptureConfiguration list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, + String clusterName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Lists the log capture configurations for a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LogCaptureConfiguration list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String clusterName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, clusterName), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Lists the log capture configurations for a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LogCaptureConfiguration list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, String clusterName) { + final String accept = "application/json"; + Response res + = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, clusterName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Lists the log capture configurations for a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LogCaptureConfiguration list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, String clusterName, + Context context) { + final String accept = "application/json"; + Response res + = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, clusterName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Lists the log capture configurations for a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LogCaptureConfiguration list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String clusterName) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, clusterName), + nextLink -> listNextSinglePage(nextLink)); + } + + /** + * Lists the log capture configurations for a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LogCaptureConfiguration list operation as paginated response with + * {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String clusterName, + Context context) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, clusterName, context), + nextLink -> listNextSinglePage(nextLink, context)); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a LogCaptureConfiguration list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a LogCaptureConfiguration list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a LogCaptureConfiguration list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/LogCaptureConfigurationsImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/LogCaptureConfigurationsImpl.java new file mode 100644 index 0000000000000..10f0f6d7a89b0 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/LogCaptureConfigurationsImpl.java @@ -0,0 +1,90 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.horizondb.fluent.LogCaptureConfigurationsClient; +import com.azure.resourcemanager.horizondb.fluent.models.LogCaptureConfigurationInner; +import com.azure.resourcemanager.horizondb.models.LogCaptureConfiguration; +import com.azure.resourcemanager.horizondb.models.LogCaptureConfigurationForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.LogCaptureConfigurations; + +public final class LogCaptureConfigurationsImpl implements LogCaptureConfigurations { + private static final ClientLogger LOGGER = new ClientLogger(LogCaptureConfigurationsImpl.class); + + private final LogCaptureConfigurationsClient innerClient; + + private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; + + public LogCaptureConfigurationsImpl(LogCaptureConfigurationsClient innerClient, + com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String resourceGroupName, String clusterName, + String logCaptureConfigurationName, Context context) { + Response inner = this.serviceClient() + .getWithResponse(resourceGroupName, clusterName, logCaptureConfigurationName, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new LogCaptureConfigurationImpl(inner.getValue(), this.manager())); + } + + public LogCaptureConfiguration get(String resourceGroupName, String clusterName, + String logCaptureConfigurationName) { + LogCaptureConfigurationInner inner + = this.serviceClient().get(resourceGroupName, clusterName, logCaptureConfigurationName); + if (inner != null) { + return new LogCaptureConfigurationImpl(inner, this.manager()); + } else { + return null; + } + } + + public LogCaptureConfiguration update(String resourceGroupName, String clusterName, + String logCaptureConfigurationName, LogCaptureConfigurationForPatchUpdate properties) { + LogCaptureConfigurationInner inner + = this.serviceClient().update(resourceGroupName, clusterName, logCaptureConfigurationName, properties); + if (inner != null) { + return new LogCaptureConfigurationImpl(inner, this.manager()); + } else { + return null; + } + } + + public LogCaptureConfiguration update(String resourceGroupName, String clusterName, + String logCaptureConfigurationName, LogCaptureConfigurationForPatchUpdate properties, Context context) { + LogCaptureConfigurationInner inner = this.serviceClient() + .update(resourceGroupName, clusterName, logCaptureConfigurationName, properties, context); + if (inner != null) { + return new LogCaptureConfigurationImpl(inner, this.manager()); + } else { + return null; + } + } + + public PagedIterable list(String resourceGroupName, String clusterName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, clusterName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new LogCaptureConfigurationImpl(inner1, this.manager())); + } + + public PagedIterable list(String resourceGroupName, String clusterName, Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, clusterName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new LogCaptureConfigurationImpl(inner1, this.manager())); + } + + private LogCaptureConfigurationsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/LogFileDownloadUrlImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/LogFileDownloadUrlImpl.java new file mode 100644 index 0000000000000..3e9058b45bd3f --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/LogFileDownloadUrlImpl.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.resourcemanager.horizondb.fluent.models.LogFileDownloadUrlInner; +import com.azure.resourcemanager.horizondb.models.LogFileDownloadUrl; +import java.time.OffsetDateTime; + +public final class LogFileDownloadUrlImpl implements LogFileDownloadUrl { + private LogFileDownloadUrlInner innerObject; + + private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; + + LogFileDownloadUrlImpl(LogFileDownloadUrlInner innerObject, + com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String downloadUri() { + return this.innerModel().downloadUri(); + } + + public OffsetDateTime expiresAtUtc() { + return this.innerModel().expiresAtUtc(); + } + + public LogFileDownloadUrlInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/LogFileImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/LogFileImpl.java new file mode 100644 index 0000000000000..18597f2e048d4 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/LogFileImpl.java @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.horizondb.fluent.models.LogFileInner; +import com.azure.resourcemanager.horizondb.models.LogFile; +import com.azure.resourcemanager.horizondb.models.LogFileProperties; + +public final class LogFileImpl implements LogFile { + private LogFileInner innerObject; + + private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; + + LogFileImpl(LogFileInner innerObject, com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public LogFileProperties properties() { + return this.innerModel().properties(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public LogFileInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/LogFilesClientImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/LogFilesClientImpl.java new file mode 100644 index 0000000000000..8bd6bcb0b624f --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/LogFilesClientImpl.java @@ -0,0 +1,454 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Post; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.resourcemanager.horizondb.fluent.LogFilesClient; +import com.azure.resourcemanager.horizondb.fluent.models.LogFileDownloadUrlInner; +import com.azure.resourcemanager.horizondb.fluent.models.LogFileInner; +import com.azure.resourcemanager.horizondb.implementation.models.LogFileListResult; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in LogFilesClient. + */ +public final class LogFilesClientImpl implements LogFilesClient { + /** + * The proxy service used to perform REST calls. + */ + private final LogFilesService service; + + /** + * The service client containing this operation class. + */ + private final HorizonDbManagementClientImpl client; + + /** + * Initializes an instance of LogFilesClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + LogFilesClientImpl(HorizonDbManagementClientImpl client) { + this.service = RestProxy.create(LogFilesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for HorizonDbManagementClientLogFiles to be used by the proxy service to + * perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "HorizonDbManagementClientLogFiles") + public interface LogFilesService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/logFiles/{logFileName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("logFileName") String logFileName, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/logFiles/{logFileName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("logFileName") String logFileName, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/logFiles") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/logFiles") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/logFiles/{logFileName}/listDownloadUrls") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listDownloadUrls(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("logFileName") String logFileName, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/logFiles/{logFileName}/listDownloadUrls") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listDownloadUrlsSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("logFileName") String logFileName, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); + } + + /** + * Gets metadata for a captured HorizonDB log file. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logFileName The name of the LogFile. + * @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 metadata for a captured HorizonDB log file along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getWithResponseAsync(String resourceGroupName, String clusterName, + String logFileName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, logFileName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets metadata for a captured HorizonDB log file. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logFileName The name of the LogFile. + * @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 metadata for a captured HorizonDB log file on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, String clusterName, String logFileName) { + return getWithResponseAsync(resourceGroupName, clusterName, logFileName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets metadata for a captured HorizonDB log file. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logFileName The name of the LogFile. + * @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 metadata for a captured HorizonDB log file along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String clusterName, String logFileName, + Context context) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, clusterName, logFileName, accept, context); + } + + /** + * Gets metadata for a captured HorizonDB log file. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logFileName The name of the LogFile. + * @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 metadata for a captured HorizonDB log file. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public LogFileInner get(String resourceGroupName, String clusterName, String logFileName) { + return getWithResponse(resourceGroupName, clusterName, logFileName, Context.NONE).getValue(); + } + + /** + * Lists captured log files for a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LogFile list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, String clusterName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Lists captured log files for a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LogFile list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String clusterName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, clusterName), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Lists captured log files for a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LogFile list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, String clusterName) { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Lists captured log files for a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LogFile list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, String clusterName, Context context) { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Lists captured log files for a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LogFile list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String clusterName) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, clusterName), + nextLink -> listNextSinglePage(nextLink)); + } + + /** + * Lists captured log files for a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LogFile list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String clusterName, Context context) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, clusterName, context), + nextLink -> listNextSinglePage(nextLink, context)); + } + + /** + * Gets a short-lived signed URL for downloading a captured log file. The signed URL is returned only by this action + * so routine resource GET and LIST responses do not expose bearer credentials. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logFileName The name of the LogFile. + * @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 short-lived signed URL for downloading a captured log file along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> listDownloadUrlsWithResponseAsync(String resourceGroupName, + String clusterName, String logFileName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.listDownloadUrls(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, logFileName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets a short-lived signed URL for downloading a captured log file. The signed URL is returned only by this action + * so routine resource GET and LIST responses do not expose bearer credentials. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logFileName The name of the LogFile. + * @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 short-lived signed URL for downloading a captured log file on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono listDownloadUrlsAsync(String resourceGroupName, String clusterName, + String logFileName) { + return listDownloadUrlsWithResponseAsync(resourceGroupName, clusterName, logFileName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets a short-lived signed URL for downloading a captured log file. The signed URL is returned only by this action + * so routine resource GET and LIST responses do not expose bearer credentials. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logFileName The name of the LogFile. + * @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 a short-lived signed URL for downloading a captured log file along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response listDownloadUrlsWithResponse(String resourceGroupName, String clusterName, + String logFileName, Context context) { + final String accept = "application/json"; + return service.listDownloadUrlsSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, logFileName, accept, context); + } + + /** + * Gets a short-lived signed URL for downloading a captured log file. The signed URL is returned only by this action + * so routine resource GET and LIST responses do not expose bearer credentials. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logFileName The name of the LogFile. + * @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 short-lived signed URL for downloading a captured log file. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public LogFileDownloadUrlInner listDownloadUrls(String resourceGroupName, String clusterName, String logFileName) { + return listDownloadUrlsWithResponse(resourceGroupName, clusterName, logFileName, Context.NONE).getValue(); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a LogFile list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a LogFile list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a LogFile list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/LogFilesImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/LogFilesImpl.java new file mode 100644 index 0000000000000..9211163647093 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/LogFilesImpl.java @@ -0,0 +1,84 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.horizondb.fluent.LogFilesClient; +import com.azure.resourcemanager.horizondb.fluent.models.LogFileDownloadUrlInner; +import com.azure.resourcemanager.horizondb.fluent.models.LogFileInner; +import com.azure.resourcemanager.horizondb.models.LogFile; +import com.azure.resourcemanager.horizondb.models.LogFileDownloadUrl; +import com.azure.resourcemanager.horizondb.models.LogFiles; + +public final class LogFilesImpl implements LogFiles { + private static final ClientLogger LOGGER = new ClientLogger(LogFilesImpl.class); + + private final LogFilesClient innerClient; + + private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; + + public LogFilesImpl(LogFilesClient innerClient, + com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String resourceGroupName, String clusterName, String logFileName, + Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, clusterName, logFileName, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new LogFileImpl(inner.getValue(), this.manager())); + } + + public LogFile get(String resourceGroupName, String clusterName, String logFileName) { + LogFileInner inner = this.serviceClient().get(resourceGroupName, clusterName, logFileName); + if (inner != null) { + return new LogFileImpl(inner, this.manager()); + } else { + return null; + } + } + + public PagedIterable list(String resourceGroupName, String clusterName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, clusterName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new LogFileImpl(inner1, this.manager())); + } + + public PagedIterable list(String resourceGroupName, String clusterName, Context context) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, clusterName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new LogFileImpl(inner1, this.manager())); + } + + public Response listDownloadUrlsWithResponse(String resourceGroupName, String clusterName, + String logFileName, Context context) { + Response inner + = this.serviceClient().listDownloadUrlsWithResponse(resourceGroupName, clusterName, logFileName, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new LogFileDownloadUrlImpl(inner.getValue(), this.manager())); + } + + public LogFileDownloadUrl listDownloadUrls(String resourceGroupName, String clusterName, String logFileName) { + LogFileDownloadUrlInner inner + = this.serviceClient().listDownloadUrls(resourceGroupName, clusterName, logFileName); + if (inner != null) { + return new LogFileDownloadUrlImpl(inner, this.manager()); + } else { + return null; + } + } + + private LogFilesClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/MaintenanceEventActionResponseImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/MaintenanceEventActionResponseImpl.java new file mode 100644 index 0000000000000..3a02c81ad7605 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/MaintenanceEventActionResponseImpl.java @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.resourcemanager.horizondb.fluent.models.MaintenanceEventActionResponseInner; +import com.azure.resourcemanager.horizondb.models.MaintenanceEventActionResponse; +import com.azure.resourcemanager.horizondb.models.MaintenanceEventStatus; +import java.time.OffsetDateTime; + +public final class MaintenanceEventActionResponseImpl implements MaintenanceEventActionResponse { + private MaintenanceEventActionResponseInner innerObject; + + private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; + + MaintenanceEventActionResponseImpl(MaintenanceEventActionResponseInner innerObject, + com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String maintenanceEventId() { + return this.innerModel().maintenanceEventId(); + } + + public String poolResourceId() { + return this.innerModel().poolResourceId(); + } + + public MaintenanceEventStatus status() { + return this.innerModel().status(); + } + + public OffsetDateTime plannedStartTimeUtc() { + return this.innerModel().plannedStartTimeUtc(); + } + + public OffsetDateTime plannedEndTimeUtc() { + return this.innerModel().plannedEndTimeUtc(); + } + + public Boolean appliedNow() { + return this.innerModel().appliedNow(); + } + + public OffsetDateTime lastUpdatedTimeUtc() { + return this.innerModel().lastUpdatedTimeUtc(); + } + + public MaintenanceEventActionResponseInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/MaintenanceEventImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/MaintenanceEventImpl.java new file mode 100644 index 0000000000000..e0181547ec9e2 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/MaintenanceEventImpl.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.horizondb.fluent.models.MaintenanceEventInner; +import com.azure.resourcemanager.horizondb.models.MaintenanceEvent; +import com.azure.resourcemanager.horizondb.models.MaintenanceEventProperties; + +public final class MaintenanceEventImpl implements MaintenanceEvent { + private MaintenanceEventInner innerObject; + + private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; + + MaintenanceEventImpl(MaintenanceEventInner innerObject, + com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public MaintenanceEventProperties properties() { + return this.innerModel().properties(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public MaintenanceEventInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/MaintenanceEventsClientImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/MaintenanceEventsClientImpl.java new file mode 100644 index 0000000000000..4ae3e1568a3fe --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/MaintenanceEventsClientImpl.java @@ -0,0 +1,873 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Post; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.BinaryData; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.horizondb.fluent.MaintenanceEventsClient; +import com.azure.resourcemanager.horizondb.fluent.models.MaintenanceEventActionResponseInner; +import com.azure.resourcemanager.horizondb.fluent.models.MaintenanceEventInner; +import com.azure.resourcemanager.horizondb.implementation.models.MaintenanceEventListResult; +import com.azure.resourcemanager.horizondb.models.MaintenanceEventRescheduleRequest; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in MaintenanceEventsClient. + */ +public final class MaintenanceEventsClientImpl implements MaintenanceEventsClient { + /** + * The proxy service used to perform REST calls. + */ + private final MaintenanceEventsService service; + + /** + * The service client containing this operation class. + */ + private final HorizonDbManagementClientImpl client; + + /** + * Initializes an instance of MaintenanceEventsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + MaintenanceEventsClientImpl(HorizonDbManagementClientImpl client) { + this.service + = RestProxy.create(MaintenanceEventsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for HorizonDbManagementClientMaintenanceEvents to be used by the proxy + * service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "HorizonDbManagementClientMaintenanceEvents") + public interface MaintenanceEventsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/maintenanceEvents/{maintenanceEventId}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("poolName") String poolName, @PathParam("maintenanceEventId") String maintenanceEventId, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/maintenanceEvents/{maintenanceEventId}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("poolName") String poolName, @PathParam("maintenanceEventId") String maintenanceEventId, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/maintenanceEvents") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("poolName") String poolName, @QueryParam("$filter") String filter, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/maintenanceEvents") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("poolName") String poolName, @QueryParam("$filter") String filter, + @HeaderParam("Accept") String accept, Context context); + + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/maintenanceEvents/{maintenanceEventId}/reschedule") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> reschedule(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("poolName") String poolName, @PathParam("maintenanceEventId") String maintenanceEventId, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") MaintenanceEventRescheduleRequest body, Context context); + + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/maintenanceEvents/{maintenanceEventId}/reschedule") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response rescheduleSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("poolName") String poolName, @PathParam("maintenanceEventId") String maintenanceEventId, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") MaintenanceEventRescheduleRequest body, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/maintenanceEvents/{maintenanceEventId}/applyNow") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> applyNow(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("poolName") String poolName, @PathParam("maintenanceEventId") String maintenanceEventId, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/maintenanceEvents/{maintenanceEventId}/applyNow") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response applyNowSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("poolName") String poolName, @PathParam("maintenanceEventId") String maintenanceEventId, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listNextSync( + @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Gets information about a maintenance event for a HorizonDB pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @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 information about a maintenance event for a HorizonDB pool along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getWithResponseAsync(String resourceGroupName, String clusterName, + String poolName, String maintenanceEventId) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, maintenanceEventId, accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets information about a maintenance event for a HorizonDB pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @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 information about a maintenance event for a HorizonDB pool on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, String clusterName, String poolName, + String maintenanceEventId) { + return getWithResponseAsync(resourceGroupName, clusterName, poolName, maintenanceEventId) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets information about a maintenance event for a HorizonDB pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @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 information about a maintenance event for a HorizonDB pool along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String clusterName, + String poolName, String maintenanceEventId, Context context) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, clusterName, poolName, maintenanceEventId, accept, context); + } + + /** + * Gets information about a maintenance event for a HorizonDB pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @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 information about a maintenance event for a HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public MaintenanceEventInner get(String resourceGroupName, String clusterName, String poolName, + String maintenanceEventId) { + return getWithResponse(resourceGroupName, clusterName, poolName, maintenanceEventId, Context.NONE).getValue(); + } + + /** + * Lists maintenance events for a HorizonDB pool. Use the OData $filter query parameter to filter by + * properties/status with the eq and or operators. For example, properties/status eq 'Planned' or properties/status + * eq 'InProgress' returns upcoming events. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param filter The OData filter expression to apply to the list 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 of a MaintenanceEvent list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, String clusterName, + String poolName, String filter) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, filter, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Lists maintenance events for a HorizonDB pool. Use the OData $filter query parameter to filter by + * properties/status with the eq and or operators. For example, properties/status eq 'Planned' or properties/status + * eq 'InProgress' returns upcoming events. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param filter The OData filter expression to apply to the list 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 of a MaintenanceEvent list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String clusterName, String poolName, + String filter) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, clusterName, poolName, filter), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Lists maintenance events for a HorizonDB pool. Use the OData $filter query parameter to filter by + * properties/status with the eq and or operators. For example, properties/status eq 'Planned' or properties/status + * eq 'InProgress' returns upcoming events. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 of a MaintenanceEvent list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String clusterName, String poolName) { + final String filter = null; + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, clusterName, poolName, filter), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Lists maintenance events for a HorizonDB pool. Use the OData $filter query parameter to filter by + * properties/status with the eq and or operators. For example, properties/status eq 'Planned' or properties/status + * eq 'InProgress' returns upcoming events. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param filter The OData filter expression to apply to the list 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 of a MaintenanceEvent list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, String clusterName, + String poolName, String filter) { + final String accept = "application/json"; + Response res + = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, clusterName, poolName, filter, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Lists maintenance events for a HorizonDB pool. Use the OData $filter query parameter to filter by + * properties/status with the eq and or operators. For example, properties/status eq 'Planned' or properties/status + * eq 'InProgress' returns upcoming events. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param filter The OData filter expression to apply to the list operation. + * @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 of a MaintenanceEvent list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, String clusterName, + String poolName, String filter, Context context) { + final String accept = "application/json"; + Response res + = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, clusterName, poolName, filter, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Lists maintenance events for a HorizonDB pool. Use the OData $filter query parameter to filter by + * properties/status with the eq and or operators. For example, properties/status eq 'Planned' or properties/status + * eq 'InProgress' returns upcoming events. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 of a MaintenanceEvent list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String clusterName, String poolName) { + final String filter = null; + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, clusterName, poolName, filter), + nextLink -> listNextSinglePage(nextLink)); + } + + /** + * Lists maintenance events for a HorizonDB pool. Use the OData $filter query parameter to filter by + * properties/status with the eq and or operators. For example, properties/status eq 'Planned' or properties/status + * eq 'InProgress' returns upcoming events. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param filter The OData filter expression to apply to the list operation. + * @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 of a MaintenanceEvent list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String clusterName, String poolName, + String filter, Context context) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, clusterName, poolName, filter, context), + nextLink -> listNextSinglePage(nextLink, context)); + } + + /** + * Reschedules a maintenance event to a new date and time. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @param body The content of the action request. + * @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 from a maintenance event reschedule or apply-now action along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> rescheduleWithResponseAsync(String resourceGroupName, String clusterName, + String poolName, String maintenanceEventId, MaintenanceEventRescheduleRequest body) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.reschedule(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, maintenanceEventId, + contentType, accept, body, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Reschedules a maintenance event to a new date and time. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @param body The content of the action request. + * @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 from a maintenance event reschedule or apply-now action along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response rescheduleWithResponse(String resourceGroupName, String clusterName, String poolName, + String maintenanceEventId, MaintenanceEventRescheduleRequest body) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.rescheduleSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, maintenanceEventId, contentType, + accept, body, Context.NONE); + } + + /** + * Reschedules a maintenance event to a new date and time. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws 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 from a maintenance event reschedule or apply-now action along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response rescheduleWithResponse(String resourceGroupName, String clusterName, String poolName, + String maintenanceEventId, MaintenanceEventRescheduleRequest body, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.rescheduleSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, maintenanceEventId, contentType, + accept, body, context); + } + + /** + * Reschedules a maintenance event to a new date and time. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @param body The content of the action request. + * @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 response from a maintenance event reschedule or apply-now + * action. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, MaintenanceEventActionResponseInner> + beginRescheduleAsync(String resourceGroupName, String clusterName, String poolName, String maintenanceEventId, + MaintenanceEventRescheduleRequest body) { + Mono>> mono + = rescheduleWithResponseAsync(resourceGroupName, clusterName, poolName, maintenanceEventId, body); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), MaintenanceEventActionResponseInner.class, + MaintenanceEventActionResponseInner.class, this.client.getContext()); + } + + /** + * Reschedules a maintenance event to a new date and time. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @param body The content of the action request. + * @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 response from a maintenance event reschedule or apply-now + * action. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, MaintenanceEventActionResponseInner> + beginReschedule(String resourceGroupName, String clusterName, String poolName, String maintenanceEventId, + MaintenanceEventRescheduleRequest body) { + Response response + = rescheduleWithResponse(resourceGroupName, clusterName, poolName, maintenanceEventId, body); + return this.client.getLroResult( + response, MaintenanceEventActionResponseInner.class, MaintenanceEventActionResponseInner.class, + Context.NONE); + } + + /** + * Reschedules a maintenance event to a new date and time. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws 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 response from a maintenance event reschedule or apply-now + * action. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, MaintenanceEventActionResponseInner> + beginReschedule(String resourceGroupName, String clusterName, String poolName, String maintenanceEventId, + MaintenanceEventRescheduleRequest body, Context context) { + Response response + = rescheduleWithResponse(resourceGroupName, clusterName, poolName, maintenanceEventId, body, context); + return this.client.getLroResult( + response, MaintenanceEventActionResponseInner.class, MaintenanceEventActionResponseInner.class, context); + } + + /** + * Reschedules a maintenance event to a new date and time. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @param body The content of the action request. + * @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 from a maintenance event reschedule or apply-now action on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono rescheduleAsync(String resourceGroupName, String clusterName, + String poolName, String maintenanceEventId, MaintenanceEventRescheduleRequest body) { + return beginRescheduleAsync(resourceGroupName, clusterName, poolName, maintenanceEventId, body).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Reschedules a maintenance event to a new date and time. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @param body The content of the action request. + * @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 from a maintenance event reschedule or apply-now action. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public MaintenanceEventActionResponseInner reschedule(String resourceGroupName, String clusterName, String poolName, + String maintenanceEventId, MaintenanceEventRescheduleRequest body) { + return beginReschedule(resourceGroupName, clusterName, poolName, maintenanceEventId, body).getFinalResult(); + } + + /** + * Reschedules a maintenance event to a new date and time. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws 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 from a maintenance event reschedule or apply-now action. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public MaintenanceEventActionResponseInner reschedule(String resourceGroupName, String clusterName, String poolName, + String maintenanceEventId, MaintenanceEventRescheduleRequest body, Context context) { + return beginReschedule(resourceGroupName, clusterName, poolName, maintenanceEventId, body, context) + .getFinalResult(); + } + + /** + * Applies the maintenance event immediately. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @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 from a maintenance event reschedule or apply-now action along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> applyNowWithResponseAsync(String resourceGroupName, String clusterName, + String poolName, String maintenanceEventId) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.applyNow(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, maintenanceEventId, accept, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Applies the maintenance event immediately. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @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 from a maintenance event reschedule or apply-now action along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response applyNowWithResponse(String resourceGroupName, String clusterName, String poolName, + String maintenanceEventId) { + final String accept = "application/json"; + return service.applyNowSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, maintenanceEventId, accept, + Context.NONE); + } + + /** + * Applies the maintenance event immediately. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @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 from a maintenance event reschedule or apply-now action along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response applyNowWithResponse(String resourceGroupName, String clusterName, String poolName, + String maintenanceEventId, Context context) { + final String accept = "application/json"; + return service.applyNowSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, maintenanceEventId, accept, + context); + } + + /** + * Applies the maintenance event immediately. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @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 response from a maintenance event reschedule or apply-now + * action. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, MaintenanceEventActionResponseInner> + beginApplyNowAsync(String resourceGroupName, String clusterName, String poolName, String maintenanceEventId) { + Mono>> mono + = applyNowWithResponseAsync(resourceGroupName, clusterName, poolName, maintenanceEventId); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), MaintenanceEventActionResponseInner.class, + MaintenanceEventActionResponseInner.class, this.client.getContext()); + } + + /** + * Applies the maintenance event immediately. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @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 response from a maintenance event reschedule or apply-now + * action. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, MaintenanceEventActionResponseInner> + beginApplyNow(String resourceGroupName, String clusterName, String poolName, String maintenanceEventId) { + Response response + = applyNowWithResponse(resourceGroupName, clusterName, poolName, maintenanceEventId); + return this.client.getLroResult( + response, MaintenanceEventActionResponseInner.class, MaintenanceEventActionResponseInner.class, + Context.NONE); + } + + /** + * Applies the maintenance event immediately. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @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 response from a maintenance event reschedule or apply-now + * action. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, MaintenanceEventActionResponseInner> + beginApplyNow(String resourceGroupName, String clusterName, String poolName, String maintenanceEventId, + Context context) { + Response response + = applyNowWithResponse(resourceGroupName, clusterName, poolName, maintenanceEventId, context); + return this.client.getLroResult( + response, MaintenanceEventActionResponseInner.class, MaintenanceEventActionResponseInner.class, context); + } + + /** + * Applies the maintenance event immediately. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @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 from a maintenance event reschedule or apply-now action on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono applyNowAsync(String resourceGroupName, String clusterName, + String poolName, String maintenanceEventId) { + return beginApplyNowAsync(resourceGroupName, clusterName, poolName, maintenanceEventId).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Applies the maintenance event immediately. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @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 from a maintenance event reschedule or apply-now action. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public MaintenanceEventActionResponseInner applyNow(String resourceGroupName, String clusterName, String poolName, + String maintenanceEventId) { + return beginApplyNow(resourceGroupName, clusterName, poolName, maintenanceEventId).getFinalResult(); + } + + /** + * Applies the maintenance event immediately. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @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 from a maintenance event reschedule or apply-now action. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public MaintenanceEventActionResponseInner applyNow(String resourceGroupName, String clusterName, String poolName, + String maintenanceEventId, Context context) { + return beginApplyNow(resourceGroupName, clusterName, poolName, maintenanceEventId, context).getFinalResult(); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a MaintenanceEvent list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), + res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a MaintenanceEvent list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a MaintenanceEvent list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res + = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/MaintenanceEventsImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/MaintenanceEventsImpl.java new file mode 100644 index 0000000000000..fd67ad002261a --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/MaintenanceEventsImpl.java @@ -0,0 +1,116 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.horizondb.fluent.MaintenanceEventsClient; +import com.azure.resourcemanager.horizondb.fluent.models.MaintenanceEventActionResponseInner; +import com.azure.resourcemanager.horizondb.fluent.models.MaintenanceEventInner; +import com.azure.resourcemanager.horizondb.models.MaintenanceEvent; +import com.azure.resourcemanager.horizondb.models.MaintenanceEventActionResponse; +import com.azure.resourcemanager.horizondb.models.MaintenanceEventRescheduleRequest; +import com.azure.resourcemanager.horizondb.models.MaintenanceEvents; + +public final class MaintenanceEventsImpl implements MaintenanceEvents { + private static final ClientLogger LOGGER = new ClientLogger(MaintenanceEventsImpl.class); + + private final MaintenanceEventsClient innerClient; + + private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; + + public MaintenanceEventsImpl(MaintenanceEventsClient innerClient, + com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String resourceGroupName, String clusterName, String poolName, + String maintenanceEventId, Context context) { + Response inner = this.serviceClient() + .getWithResponse(resourceGroupName, clusterName, poolName, maintenanceEventId, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new MaintenanceEventImpl(inner.getValue(), this.manager())); + } + + public MaintenanceEvent get(String resourceGroupName, String clusterName, String poolName, + String maintenanceEventId) { + MaintenanceEventInner inner + = this.serviceClient().get(resourceGroupName, clusterName, poolName, maintenanceEventId); + if (inner != null) { + return new MaintenanceEventImpl(inner, this.manager()); + } else { + return null; + } + } + + public PagedIterable list(String resourceGroupName, String clusterName, String poolName) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, clusterName, poolName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new MaintenanceEventImpl(inner1, this.manager())); + } + + public PagedIterable list(String resourceGroupName, String clusterName, String poolName, + String filter, Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, clusterName, poolName, filter, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new MaintenanceEventImpl(inner1, this.manager())); + } + + public MaintenanceEventActionResponse reschedule(String resourceGroupName, String clusterName, String poolName, + String maintenanceEventId, MaintenanceEventRescheduleRequest body) { + MaintenanceEventActionResponseInner inner + = this.serviceClient().reschedule(resourceGroupName, clusterName, poolName, maintenanceEventId, body); + if (inner != null) { + return new MaintenanceEventActionResponseImpl(inner, this.manager()); + } else { + return null; + } + } + + public MaintenanceEventActionResponse reschedule(String resourceGroupName, String clusterName, String poolName, + String maintenanceEventId, MaintenanceEventRescheduleRequest body, Context context) { + MaintenanceEventActionResponseInner inner = this.serviceClient() + .reschedule(resourceGroupName, clusterName, poolName, maintenanceEventId, body, context); + if (inner != null) { + return new MaintenanceEventActionResponseImpl(inner, this.manager()); + } else { + return null; + } + } + + public MaintenanceEventActionResponse applyNow(String resourceGroupName, String clusterName, String poolName, + String maintenanceEventId) { + MaintenanceEventActionResponseInner inner + = this.serviceClient().applyNow(resourceGroupName, clusterName, poolName, maintenanceEventId); + if (inner != null) { + return new MaintenanceEventActionResponseImpl(inner, this.manager()); + } else { + return null; + } + } + + public MaintenanceEventActionResponse applyNow(String resourceGroupName, String clusterName, String poolName, + String maintenanceEventId, Context context) { + MaintenanceEventActionResponseInner inner + = this.serviceClient().applyNow(resourceGroupName, clusterName, poolName, maintenanceEventId, context); + if (inner != null) { + return new MaintenanceEventActionResponseImpl(inner, this.manager()); + } else { + return null; + } + } + + private MaintenanceEventsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/MicrosoftEntraAdministratorImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/MicrosoftEntraAdministratorImpl.java new file mode 100644 index 0000000000000..cb912e9e227fb --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/MicrosoftEntraAdministratorImpl.java @@ -0,0 +1,109 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.horizondb.fluent.models.MicrosoftEntraAdministratorInner; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAdministrator; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAdministratorAdd; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAdministratorProperties; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAdministratorPropertiesForAdd; + +public final class MicrosoftEntraAdministratorImpl + implements MicrosoftEntraAdministrator, MicrosoftEntraAdministrator.Definition { + private MicrosoftEntraAdministratorInner innerObject; + + private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; + + MicrosoftEntraAdministratorImpl(MicrosoftEntraAdministratorInner innerObject, + com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public MicrosoftEntraAdministratorProperties properties() { + return this.innerModel().properties(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public MicrosoftEntraAdministratorInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { + return this.serviceManager; + } + + private String resourceGroupName; + + private String clusterName; + + private String objectId; + + private MicrosoftEntraAdministratorAdd createResource; + + public MicrosoftEntraAdministratorImpl withExistingCluster(String resourceGroupName, String clusterName) { + this.resourceGroupName = resourceGroupName; + this.clusterName = clusterName; + return this; + } + + public MicrosoftEntraAdministrator create() { + this.innerObject = serviceManager.serviceClient() + .getMicrosoftEntraAdministrators() + .createOrReplace(resourceGroupName, clusterName, objectId, createResource, Context.NONE); + return this; + } + + public MicrosoftEntraAdministrator create(Context context) { + this.innerObject = serviceManager.serviceClient() + .getMicrosoftEntraAdministrators() + .createOrReplace(resourceGroupName, clusterName, objectId, createResource, context); + return this; + } + + MicrosoftEntraAdministratorImpl(String name, com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.serviceManager = serviceManager; + this.objectId = name; + this.createResource = new MicrosoftEntraAdministratorAdd(); + } + + public MicrosoftEntraAdministrator refresh() { + this.innerObject = serviceManager.serviceClient() + .getMicrosoftEntraAdministrators() + .getWithResponse(resourceGroupName, clusterName, objectId, Context.NONE) + .getValue(); + return this; + } + + public MicrosoftEntraAdministrator refresh(Context context) { + this.innerObject = serviceManager.serviceClient() + .getMicrosoftEntraAdministrators() + .getWithResponse(resourceGroupName, clusterName, objectId, context) + .getValue(); + return this; + } + + public MicrosoftEntraAdministratorImpl withProperties(MicrosoftEntraAdministratorPropertiesForAdd properties) { + this.createResource.withProperties(properties); + return this; + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbAdministratorsClientImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/MicrosoftEntraAdministratorsClientImpl.java similarity index 65% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbAdministratorsClientImpl.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/MicrosoftEntraAdministratorsClientImpl.java index 3ae62b0c7ba57..d821e2e87baea 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbAdministratorsClientImpl.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/MicrosoftEntraAdministratorsClientImpl.java @@ -32,22 +32,22 @@ import com.azure.core.util.FluxUtil; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.horizondb.fluent.HorizonDbAdministratorsClient; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbAdministratorInner; -import com.azure.resourcemanager.horizondb.implementation.models.HorizonDbAdministratorListResult; -import com.azure.resourcemanager.horizondb.models.HorizonDbAdministratorAdd; +import com.azure.resourcemanager.horizondb.fluent.MicrosoftEntraAdministratorsClient; +import com.azure.resourcemanager.horizondb.fluent.models.MicrosoftEntraAdministratorInner; +import com.azure.resourcemanager.horizondb.implementation.models.MicrosoftEntraAdministratorListResult; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAdministratorAdd; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; /** - * An instance of this class provides access to all the operations defined in HorizonDbAdministratorsClient. + * An instance of this class provides access to all the operations defined in MicrosoftEntraAdministratorsClient. */ -public final class HorizonDbAdministratorsClientImpl implements HorizonDbAdministratorsClient { +public final class MicrosoftEntraAdministratorsClientImpl implements MicrosoftEntraAdministratorsClient { /** * The proxy service used to perform REST calls. */ - private final HorizonDbAdministratorsService service; + private final MicrosoftEntraAdministratorsService service; /** * The service client containing this operation class. @@ -55,63 +55,63 @@ public final class HorizonDbAdministratorsClientImpl implements HorizonDbAdminis private final HorizonDbManagementClientImpl client; /** - * Initializes an instance of HorizonDbAdministratorsClientImpl. + * Initializes an instance of MicrosoftEntraAdministratorsClientImpl. * * @param client the instance of the service client containing this operation class. */ - HorizonDbAdministratorsClientImpl(HorizonDbManagementClientImpl client) { - this.service = RestProxy.create(HorizonDbAdministratorsService.class, client.getHttpPipeline(), + MicrosoftEntraAdministratorsClientImpl(HorizonDbManagementClientImpl client) { + this.service = RestProxy.create(MicrosoftEntraAdministratorsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for HorizonDbManagementClientHorizonDbAdministrators to be used by the - * proxy service to perform REST calls. + * The interface defining all the services for HorizonDbManagementClientMicrosoftEntraAdministrators to be used by + * the proxy service to perform REST calls. */ @Host("{endpoint}") - @ServiceInterface(name = "HorizonDbManagementClientHorizonDbAdministrators") - public interface HorizonDbAdministratorsService { + @ServiceInterface(name = "HorizonDbManagementClientMicrosoftEntraAdministrators") + public interface MicrosoftEntraAdministratorsService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/administrators/{objectId}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/microsoftEntraAdministrators/{objectId}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("endpoint") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, @PathParam("objectId") String objectId, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/administrators/{objectId}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/microsoftEntraAdministrators/{objectId}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("endpoint") String endpoint, + Response getSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, @PathParam("objectId") String objectId, @HeaderParam("Accept") String accept, Context context); - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/administrators/{objectId}") + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/microsoftEntraAdministrators/{objectId}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + Mono>> createOrReplace(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, @PathParam("objectId") String objectId, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") HorizonDbAdministratorAdd resource, - Context context); + @HeaderParam("Accept") String accept, + @BodyParam("application/json") MicrosoftEntraAdministratorAdd resource, Context context); - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/administrators/{objectId}") + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/microsoftEntraAdministrators/{objectId}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("endpoint") String endpoint, + Response createOrReplaceSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, @PathParam("objectId") String objectId, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") HorizonDbAdministratorAdd resource, - Context context); + @HeaderParam("Accept") String accept, + @BodyParam("application/json") MicrosoftEntraAdministratorAdd resource, Context context); @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/administrators/{objectId}") + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/microsoftEntraAdministrators/{objectId}") @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) Mono>> delete(@HostParam("endpoint") String endpoint, @@ -120,7 +120,7 @@ Mono>> delete(@HostParam("endpoint") String endpoint, @PathParam("objectId") String objectId, Context context); @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/administrators/{objectId}") + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/microsoftEntraAdministrators/{objectId}") @ExpectedResponses({ 202, 204 }) @UnexpectedResponseExceptionType(ManagementException.class) Response deleteSync(@HostParam("endpoint") String endpoint, @@ -129,19 +129,19 @@ Response deleteSync(@HostParam("endpoint") String endpoint, @PathParam("objectId") String objectId, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/administrators") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/microsoftEntraAdministrators") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("endpoint") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/administrators") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/microsoftEntraAdministrators") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listSync(@HostParam("endpoint") String endpoint, + Response listSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, @HeaderParam("Accept") String accept, Context context); @@ -150,7 +150,7 @@ Response listSync(@HostParam("endpoint") Strin @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( + Mono> listNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @@ -158,25 +158,27 @@ Mono> listNext( @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listNextSync( + Response listNextSync( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Gets information about a HorizonDB administrator. + * Gets information about a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @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 information about a HorizonDB administrator along with {@link Response} on successful completion of - * {@link Mono}. + * @return information about a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String resourceGroupName, + public Mono> getWithResponseAsync(String resourceGroupName, String clusterName, String objectId) { final String accept = "application/json"; return FluxUtil @@ -186,36 +188,43 @@ public Mono> getWithResponseAsync(String r } /** - * Gets information about a HorizonDB administrator. + * Gets information about a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @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 information about a HorizonDB administrator on successful completion of {@link Mono}. + * @return information about a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String resourceGroupName, String clusterName, String objectId) { + public Mono getAsync(String resourceGroupName, String clusterName, + String objectId) { return getWithResponseAsync(resourceGroupName, clusterName, objectId) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Gets information about a HorizonDB administrator. + * Gets information about a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @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 information about a HorizonDB administrator along with {@link Response}. + * @return information about a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String clusterName, + public Response getWithResponse(String resourceGroupName, String clusterName, String objectId, Context context) { final String accept = "application/json"; return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), @@ -223,222 +232,250 @@ public Response getWithResponse(String resourceGrou } /** - * Gets information about a HorizonDB administrator. + * Gets information about a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @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 information about a HorizonDB administrator. + * @return information about a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal. */ @ServiceMethod(returns = ReturnType.SINGLE) - public HorizonDbAdministratorInner get(String resourceGroupName, String clusterName, String objectId) { + public MicrosoftEntraAdministratorInner get(String resourceGroupName, String clusterName, String objectId) { return getWithResponse(resourceGroupName, clusterName, objectId, Context.NONE).getValue(); } /** - * Creates a new HorizonDB administrator or updates an existing administrator. + * Creates or replaces a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @param resource Resource create parameters. * @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 represents an Entra ID administrator configured on a HorizonDB cluster along with {@link Response} on - * successful completion of {@link Mono}. + * @return represents a PostgreSQL role that is a member of the azure_pg_admin role and is mapped to a Microsoft + * Entra principal along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String clusterName, String objectId, HorizonDbAdministratorAdd resource) { + public Mono>> createOrReplaceWithResponseAsync(String resourceGroupName, + String clusterName, String objectId, MicrosoftEntraAdministratorAdd resource) { final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + .withContext(context -> service.createOrReplace(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, clusterName, objectId, contentType, accept, resource, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Creates a new HorizonDB administrator or updates an existing administrator. + * Creates or replaces a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @param resource Resource create parameters. * @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 represents an Entra ID administrator configured on a HorizonDB cluster along with {@link Response}. + * @return represents a PostgreSQL role that is a member of the azure_pg_admin role and is mapped to a Microsoft + * Entra principal along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String clusterName, - String objectId, HorizonDbAdministratorAdd resource) { + private Response createOrReplaceWithResponse(String resourceGroupName, String clusterName, + String objectId, MicrosoftEntraAdministratorAdd resource) { final String contentType = "application/json"; final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + return service.createOrReplaceSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, clusterName, objectId, contentType, accept, resource, Context.NONE); } /** - * Creates a new HorizonDB administrator or updates an existing administrator. + * Creates or replaces a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @param resource Resource create parameters. * @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 represents an Entra ID administrator configured on a HorizonDB cluster along with {@link Response}. + * @return represents a PostgreSQL role that is a member of the azure_pg_admin role and is mapped to a Microsoft + * Entra principal along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String clusterName, - String objectId, HorizonDbAdministratorAdd resource, Context context) { + private Response createOrReplaceWithResponse(String resourceGroupName, String clusterName, + String objectId, MicrosoftEntraAdministratorAdd resource, Context context) { final String contentType = "application/json"; final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + return service.createOrReplaceSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, clusterName, objectId, contentType, accept, resource, context); } /** - * Creates a new HorizonDB administrator or updates an existing administrator. + * Creates or replaces a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @param resource Resource create parameters. * @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 represents an Entra ID administrator configured on a HorizonDB - * cluster. + * @return the {@link PollerFlux} for polling of represents a PostgreSQL role that is a member of the azure_pg_admin + * role and is mapped to a Microsoft Entra principal. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, HorizonDbAdministratorInner> beginCreateOrUpdateAsync( - String resourceGroupName, String clusterName, String objectId, HorizonDbAdministratorAdd resource) { + public PollerFlux, MicrosoftEntraAdministratorInner> + beginCreateOrReplaceAsync(String resourceGroupName, String clusterName, String objectId, + MicrosoftEntraAdministratorAdd resource) { Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, clusterName, objectId, resource); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), HorizonDbAdministratorInner.class, HorizonDbAdministratorInner.class, - this.client.getContext()); + = createOrReplaceWithResponseAsync(resourceGroupName, clusterName, objectId, resource); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), MicrosoftEntraAdministratorInner.class, + MicrosoftEntraAdministratorInner.class, this.client.getContext()); } /** - * Creates a new HorizonDB administrator or updates an existing administrator. + * Creates or replaces a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @param resource Resource create parameters. * @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 represents an Entra ID administrator configured on a HorizonDB - * cluster. + * @return the {@link SyncPoller} for polling of represents a PostgreSQL role that is a member of the azure_pg_admin + * role and is mapped to a Microsoft Entra principal. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, HorizonDbAdministratorInner> beginCreateOrUpdate( - String resourceGroupName, String clusterName, String objectId, HorizonDbAdministratorAdd resource) { - Response response = createOrUpdateWithResponse(resourceGroupName, clusterName, objectId, resource); - return this.client.getLroResult(response, - HorizonDbAdministratorInner.class, HorizonDbAdministratorInner.class, Context.NONE); + public SyncPoller, MicrosoftEntraAdministratorInner> + beginCreateOrReplace(String resourceGroupName, String clusterName, String objectId, + MicrosoftEntraAdministratorAdd resource) { + Response response = createOrReplaceWithResponse(resourceGroupName, clusterName, objectId, resource); + return this.client.getLroResult(response, + MicrosoftEntraAdministratorInner.class, MicrosoftEntraAdministratorInner.class, Context.NONE); } /** - * Creates a new HorizonDB administrator or updates an existing administrator. + * Creates or replaces a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @param resource Resource create parameters. * @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 represents an Entra ID administrator configured on a HorizonDB - * cluster. + * @return the {@link SyncPoller} for polling of represents a PostgreSQL role that is a member of the azure_pg_admin + * role and is mapped to a Microsoft Entra principal. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, HorizonDbAdministratorInner> beginCreateOrUpdate( - String resourceGroupName, String clusterName, String objectId, HorizonDbAdministratorAdd resource, - Context context) { + public SyncPoller, MicrosoftEntraAdministratorInner> + beginCreateOrReplace(String resourceGroupName, String clusterName, String objectId, + MicrosoftEntraAdministratorAdd resource, Context context) { Response response - = createOrUpdateWithResponse(resourceGroupName, clusterName, objectId, resource, context); - return this.client.getLroResult(response, - HorizonDbAdministratorInner.class, HorizonDbAdministratorInner.class, context); + = createOrReplaceWithResponse(resourceGroupName, clusterName, objectId, resource, context); + return this.client.getLroResult(response, + MicrosoftEntraAdministratorInner.class, MicrosoftEntraAdministratorInner.class, context); } /** - * Creates a new HorizonDB administrator or updates an existing administrator. + * Creates or replaces a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @param resource Resource create parameters. * @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 represents an Entra ID administrator configured on a HorizonDB cluster on successful completion of - * {@link Mono}. + * @return represents a PostgreSQL role that is a member of the azure_pg_admin role and is mapped to a Microsoft + * Entra principal on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createOrUpdateAsync(String resourceGroupName, String clusterName, - String objectId, HorizonDbAdministratorAdd resource) { - return beginCreateOrUpdateAsync(resourceGroupName, clusterName, objectId, resource).last() + public Mono createOrReplaceAsync(String resourceGroupName, String clusterName, + String objectId, MicrosoftEntraAdministratorAdd resource) { + return beginCreateOrReplaceAsync(resourceGroupName, clusterName, objectId, resource).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Creates a new HorizonDB administrator or updates an existing administrator. + * Creates or replaces a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @param resource Resource create parameters. * @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 represents an Entra ID administrator configured on a HorizonDB cluster. + * @return represents a PostgreSQL role that is a member of the azure_pg_admin role and is mapped to a Microsoft + * Entra principal. */ @ServiceMethod(returns = ReturnType.SINGLE) - public HorizonDbAdministratorInner createOrUpdate(String resourceGroupName, String clusterName, String objectId, - HorizonDbAdministratorAdd resource) { - return beginCreateOrUpdate(resourceGroupName, clusterName, objectId, resource).getFinalResult(); + public MicrosoftEntraAdministratorInner createOrReplace(String resourceGroupName, String clusterName, + String objectId, MicrosoftEntraAdministratorAdd resource) { + return beginCreateOrReplace(resourceGroupName, clusterName, objectId, resource).getFinalResult(); } /** - * Creates a new HorizonDB administrator or updates an existing administrator. + * Creates or replaces a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @param resource Resource create parameters. * @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 represents an Entra ID administrator configured on a HorizonDB cluster. + * @return represents a PostgreSQL role that is a member of the azure_pg_admin role and is mapped to a Microsoft + * Entra principal. */ @ServiceMethod(returns = ReturnType.SINGLE) - public HorizonDbAdministratorInner createOrUpdate(String resourceGroupName, String clusterName, String objectId, - HorizonDbAdministratorAdd resource, Context context) { - return beginCreateOrUpdate(resourceGroupName, clusterName, objectId, resource, context).getFinalResult(); + public MicrosoftEntraAdministratorInner createOrReplace(String resourceGroupName, String clusterName, + String objectId, MicrosoftEntraAdministratorAdd resource, Context context) { + return beginCreateOrReplace(resourceGroupName, clusterName, objectId, resource, context).getFinalResult(); } /** - * Deletes a HorizonDB administrator. + * Deletes a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @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. @@ -454,11 +491,12 @@ public Mono>> deleteWithResponseAsync(String resourceG } /** - * Deletes a HorizonDB administrator. + * Deletes a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @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. @@ -471,11 +509,12 @@ private Response deleteWithResponse(String resourceGroupName, String } /** - * Deletes a HorizonDB administrator. + * Deletes a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @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. @@ -490,11 +529,12 @@ private Response deleteWithResponse(String resourceGroupName, String } /** - * Deletes a HorizonDB administrator. + * Deletes a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @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. @@ -509,11 +549,12 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN } /** - * Deletes a HorizonDB administrator. + * Deletes a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @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. @@ -527,11 +568,12 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * Deletes a HorizonDB administrator. + * Deletes a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @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. @@ -546,11 +588,12 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * Deletes a HorizonDB administrator. + * Deletes a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @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. @@ -563,11 +606,12 @@ public Mono deleteAsync(String resourceGroupName, String clusterName, Stri } /** - * Deletes a HorizonDB administrator. + * Deletes a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @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. @@ -578,11 +622,12 @@ public void delete(String resourceGroupName, String clusterName, String objectId } /** - * Deletes a HorizonDB administrator. + * Deletes a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra principal. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. * @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. @@ -594,58 +639,63 @@ public void delete(String resourceGroupName, String clusterName, String objectId } /** - * Lists all HorizonDB administrators in a cluster. + * Lists the PostgreSQL roles in a cluster that are members of azure_pg_admin and mapped to Microsoft Entra + * principals. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbAdministrator list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a MicrosoftEntraAdministrator list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, + private Mono> listSinglePageAsync(String resourceGroupName, String clusterName) { final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Lists all HorizonDB administrators in a cluster. + * Lists the PostgreSQL roles in a cluster that are members of azure_pg_admin and mapped to Microsoft Entra + * principals. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbAdministrator list operation as paginated response with {@link PagedFlux}. + * @return the response of a MicrosoftEntraAdministrator list operation as paginated response with + * {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String clusterName) { + public PagedFlux listAsync(String resourceGroupName, String clusterName) { return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, clusterName), nextLink -> listNextSinglePageAsync(nextLink)); } /** - * Lists all HorizonDB administrators in a cluster. + * Lists the PostgreSQL roles in a cluster that are members of azure_pg_admin and mapped to Microsoft Entra + * principals. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbAdministrator list operation along with {@link PagedResponse}. + * @return the response of a MicrosoftEntraAdministrator list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(String resourceGroupName, String clusterName) { + private PagedResponse listSinglePage(String resourceGroupName, + String clusterName) { final String accept = "application/json"; - Response res + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), @@ -653,7 +703,8 @@ private PagedResponse listSinglePage(String resourc } /** - * Lists all HorizonDB administrators in a cluster. + * Lists the PostgreSQL roles in a cluster that are members of azure_pg_admin and mapped to Microsoft Entra + * principals. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -661,13 +712,13 @@ private PagedResponse listSinglePage(String resourc * @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 of a HorizonDbAdministrator list operation along with {@link PagedResponse}. + * @return the response of a MicrosoftEntraAdministrator list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(String resourceGroupName, String clusterName, + private PagedResponse listSinglePage(String resourceGroupName, String clusterName, Context context) { final String accept = "application/json"; - Response res + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), @@ -675,23 +726,26 @@ private PagedResponse listSinglePage(String resourc } /** - * Lists all HorizonDB administrators in a cluster. + * Lists the PostgreSQL roles in a cluster that are members of azure_pg_admin and mapped to Microsoft Entra + * principals. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbAdministrator list operation as paginated response with {@link PagedIterable}. + * @return the response of a MicrosoftEntraAdministrator list operation as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String clusterName) { + public PagedIterable list(String resourceGroupName, String clusterName) { return new PagedIterable<>(() -> listSinglePage(resourceGroupName, clusterName), nextLink -> listNextSinglePage(nextLink)); } /** - * Lists all HorizonDB administrators in a cluster. + * Lists the PostgreSQL roles in a cluster that are members of azure_pg_admin and mapped to Microsoft Entra + * principals. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -699,10 +753,11 @@ public PagedIterable list(String resourceGroupName, * @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 of a HorizonDbAdministrator list operation as paginated response with {@link PagedIterable}. + * @return the response of a MicrosoftEntraAdministrator list operation as paginated response with + * {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String clusterName, + public PagedIterable list(String resourceGroupName, String clusterName, Context context) { return new PagedIterable<>(() -> listSinglePage(resourceGroupName, clusterName, context), nextLink -> listNextSinglePage(nextLink, context)); @@ -715,14 +770,14 @@ public PagedIterable list(String resourceGroupName, * @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 of a HorizonDbAdministrator list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a MicrosoftEntraAdministrator list operation along with {@link PagedResponse} on + * successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { + private Mono> listNextSinglePageAsync(String nextLink) { final String accept = "application/json"; return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -734,12 +789,12 @@ private Mono> listNextSinglePageAsync * @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 of a HorizonDbAdministrator list operation along with {@link PagedResponse}. + * @return the response of a MicrosoftEntraAdministrator list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listNextSinglePage(String nextLink) { + private PagedResponse listNextSinglePage(String nextLink) { final String accept = "application/json"; - Response res + Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); @@ -753,12 +808,12 @@ private PagedResponse listNextSinglePage(String nex * @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 of a HorizonDbAdministrator list operation along with {@link PagedResponse}. + * @return the response of a MicrosoftEntraAdministrator list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listNextSinglePage(String nextLink, Context context) { + private PagedResponse listNextSinglePage(String nextLink, Context context) { final String accept = "application/json"; - Response res + Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbAdministratorsImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/MicrosoftEntraAdministratorsImpl.java similarity index 65% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbAdministratorsImpl.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/MicrosoftEntraAdministratorsImpl.java index 9aca7f7621b36..bd2de89ca8a93 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbAdministratorsImpl.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/MicrosoftEntraAdministratorsImpl.java @@ -9,36 +9,36 @@ import com.azure.core.http.rest.SimpleResponse; import com.azure.core.util.Context; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.horizondb.fluent.HorizonDbAdministratorsClient; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbAdministratorInner; -import com.azure.resourcemanager.horizondb.models.HorizonDbAdministrator; -import com.azure.resourcemanager.horizondb.models.HorizonDbAdministrators; +import com.azure.resourcemanager.horizondb.fluent.MicrosoftEntraAdministratorsClient; +import com.azure.resourcemanager.horizondb.fluent.models.MicrosoftEntraAdministratorInner; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAdministrator; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAdministrators; -public final class HorizonDbAdministratorsImpl implements HorizonDbAdministrators { - private static final ClientLogger LOGGER = new ClientLogger(HorizonDbAdministratorsImpl.class); +public final class MicrosoftEntraAdministratorsImpl implements MicrosoftEntraAdministrators { + private static final ClientLogger LOGGER = new ClientLogger(MicrosoftEntraAdministratorsImpl.class); - private final HorizonDbAdministratorsClient innerClient; + private final MicrosoftEntraAdministratorsClient innerClient; private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; - public HorizonDbAdministratorsImpl(HorizonDbAdministratorsClient innerClient, + public MicrosoftEntraAdministratorsImpl(MicrosoftEntraAdministratorsClient innerClient, com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response getWithResponse(String resourceGroupName, String clusterName, + public Response getWithResponse(String resourceGroupName, String clusterName, String objectId, Context context) { - Response inner + Response inner = this.serviceClient().getWithResponse(resourceGroupName, clusterName, objectId, context); return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new HorizonDbAdministratorImpl(inner.getValue(), this.manager())); + new MicrosoftEntraAdministratorImpl(inner.getValue(), this.manager())); } - public HorizonDbAdministrator get(String resourceGroupName, String clusterName, String objectId) { - HorizonDbAdministratorInner inner = this.serviceClient().get(resourceGroupName, clusterName, objectId); + public MicrosoftEntraAdministrator get(String resourceGroupName, String clusterName, String objectId) { + MicrosoftEntraAdministratorInner inner = this.serviceClient().get(resourceGroupName, clusterName, objectId); if (inner != null) { - return new HorizonDbAdministratorImpl(inner, this.manager()); + return new MicrosoftEntraAdministratorImpl(inner, this.manager()); } else { return null; } @@ -52,18 +52,22 @@ public void delete(String resourceGroupName, String clusterName, String objectId this.serviceClient().delete(resourceGroupName, clusterName, objectId, context); } - public PagedIterable list(String resourceGroupName, String clusterName) { - PagedIterable inner = this.serviceClient().list(resourceGroupName, clusterName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new HorizonDbAdministratorImpl(inner1, this.manager())); + public PagedIterable list(String resourceGroupName, String clusterName) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, clusterName); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new MicrosoftEntraAdministratorImpl(inner1, this.manager())); } - public PagedIterable list(String resourceGroupName, String clusterName, Context context) { - PagedIterable inner + public PagedIterable list(String resourceGroupName, String clusterName, + Context context) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, clusterName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new HorizonDbAdministratorImpl(inner1, this.manager())); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new MicrosoftEntraAdministratorImpl(inner1, this.manager())); } - public HorizonDbAdministrator getById(String id) { + public MicrosoftEntraAdministrator getById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -74,15 +78,15 @@ public HorizonDbAdministrator getById(String id) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); } - String objectId = ResourceManagerUtils.getValueFromIdByName(id, "administrators"); + String objectId = ResourceManagerUtils.getValueFromIdByName(id, "microsoftEntraAdministrators"); if (objectId == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'administrators'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format( + "The resource ID '%s' is not valid. Missing path segment 'microsoftEntraAdministrators'.", id))); } return this.getWithResponse(resourceGroupName, clusterName, objectId, Context.NONE).getValue(); } - public Response getByIdWithResponse(String id, Context context) { + public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -93,10 +97,10 @@ public Response getByIdWithResponse(String id, Context c throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); } - String objectId = ResourceManagerUtils.getValueFromIdByName(id, "administrators"); + String objectId = ResourceManagerUtils.getValueFromIdByName(id, "microsoftEntraAdministrators"); if (objectId == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'administrators'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format( + "The resource ID '%s' is not valid. Missing path segment 'microsoftEntraAdministrators'.", id))); } return this.getWithResponse(resourceGroupName, clusterName, objectId, context); } @@ -112,10 +116,10 @@ public void deleteById(String id) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); } - String objectId = ResourceManagerUtils.getValueFromIdByName(id, "administrators"); + String objectId = ResourceManagerUtils.getValueFromIdByName(id, "microsoftEntraAdministrators"); if (objectId == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'administrators'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format( + "The resource ID '%s' is not valid. Missing path segment 'microsoftEntraAdministrators'.", id))); } this.delete(resourceGroupName, clusterName, objectId, Context.NONE); } @@ -131,15 +135,15 @@ public void deleteByIdWithResponse(String id, Context context) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); } - String objectId = ResourceManagerUtils.getValueFromIdByName(id, "administrators"); + String objectId = ResourceManagerUtils.getValueFromIdByName(id, "microsoftEntraAdministrators"); if (objectId == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'administrators'.", id))); + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String.format( + "The resource ID '%s' is not valid. Missing path segment 'microsoftEntraAdministrators'.", id))); } this.delete(resourceGroupName, clusterName, objectId, context); } - private HorizonDbAdministratorsClient serviceClient() { + private MicrosoftEntraAdministratorsClient serviceClient() { return this.innerClient; } @@ -147,7 +151,7 @@ private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { return this.serviceManager; } - public HorizonDbAdministratorImpl define(String name) { - return new HorizonDbAdministratorImpl(name, this.manager()); + public MicrosoftEntraAdministratorImpl define(String name) { + return new MicrosoftEntraAdministratorImpl(name, this.manager()); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/MicrosoftEntraAuthenticationImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/MicrosoftEntraAuthenticationImpl.java new file mode 100644 index 0000000000000..ff6daf5225de9 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/MicrosoftEntraAuthenticationImpl.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.horizondb.fluent.models.MicrosoftEntraAuthenticationInner; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAuthentication; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAuthenticationProperties; + +public final class MicrosoftEntraAuthenticationImpl implements MicrosoftEntraAuthentication { + private MicrosoftEntraAuthenticationInner innerObject; + + private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; + + MicrosoftEntraAuthenticationImpl(MicrosoftEntraAuthenticationInner innerObject, + com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public MicrosoftEntraAuthenticationProperties properties() { + return this.innerModel().properties(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public MicrosoftEntraAuthenticationInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/MicrosoftEntraAuthenticationsClientImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/MicrosoftEntraAuthenticationsClientImpl.java new file mode 100644 index 0000000000000..12be1a4ed27ee --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/MicrosoftEntraAuthenticationsClientImpl.java @@ -0,0 +1,619 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.BinaryData; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.horizondb.fluent.MicrosoftEntraAuthenticationsClient; +import com.azure.resourcemanager.horizondb.fluent.models.MicrosoftEntraAuthenticationInner; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAuthenticationForPatchUpdate; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in MicrosoftEntraAuthenticationsClient. + */ +public final class MicrosoftEntraAuthenticationsClientImpl implements MicrosoftEntraAuthenticationsClient { + /** + * The proxy service used to perform REST calls. + */ + private final MicrosoftEntraAuthenticationsService service; + + /** + * The service client containing this operation class. + */ + private final HorizonDbManagementClientImpl client; + + /** + * Initializes an instance of MicrosoftEntraAuthenticationsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + MicrosoftEntraAuthenticationsClientImpl(HorizonDbManagementClientImpl client) { + this.service = RestProxy.create(MicrosoftEntraAuthenticationsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for HorizonDbManagementClientMicrosoftEntraAuthentications to be used by + * the proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "HorizonDbManagementClientMicrosoftEntraAuthentications") + public interface MicrosoftEntraAuthenticationsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/authentications/microsoftEntra") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/authentications/microsoftEntra") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @HeaderParam("Accept") String accept, Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/authentications/microsoftEntra") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createOrReplace(@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") MicrosoftEntraAuthenticationInner resource, Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/authentications/microsoftEntra") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response createOrReplaceSync(@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") MicrosoftEntraAuthenticationInner resource, Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/authentications/microsoftEntra") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + 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") MicrosoftEntraAuthenticationForPatchUpdate properties, Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/authentications/microsoftEntra") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response updateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") MicrosoftEntraAuthenticationForPatchUpdate properties, Context context); + } + + /** + * Gets the service-created Microsoft Entra authentication method. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created Microsoft Entra authentication method along with {@link Response} on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getWithResponseAsync(String resourceGroupName, + String clusterName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the service-created Microsoft Entra authentication method. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created Microsoft Entra authentication method on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, String clusterName) { + return getWithResponseAsync(resourceGroupName, clusterName).flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets the service-created Microsoft Entra authentication method. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created Microsoft Entra authentication method along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String clusterName, + Context context) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, clusterName, accept, context); + } + + /** + * Gets the service-created Microsoft Entra authentication method. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created Microsoft Entra authentication method. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public MicrosoftEntraAuthenticationInner get(String resourceGroupName, String clusterName) { + return getWithResponse(resourceGroupName, clusterName, Context.NONE).getValue(); + } + + /** + * Creates or replaces the service-created Microsoft Entra authentication method. State Enabled enables the feature + * and State Disabled disables it; no additional properties are required. Repeating the same request is idempotent. + * Disabling the feature does not remove or modify database roles or users previously created through the + * MicrosoftEntraAdministrators control-plane API or directly through pgaadauth extension functions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param resource Resource create parameters. + * @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 service-created Microsoft Entra authentication method for a HorizonDB cluster along with + * {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> createOrReplaceWithResponseAsync(String resourceGroupName, + String clusterName, MicrosoftEntraAuthenticationInner resource) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrReplace(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, contentType, accept, resource, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Creates or replaces the service-created Microsoft Entra authentication method. State Enabled enables the feature + * and State Disabled disables it; no additional properties are required. Repeating the same request is idempotent. + * Disabling the feature does not remove or modify database roles or users previously created through the + * MicrosoftEntraAdministrators control-plane API or directly through pgaadauth extension functions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param resource Resource create parameters. + * @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 service-created Microsoft Entra authentication method for a HorizonDB cluster along with + * {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrReplaceWithResponse(String resourceGroupName, String clusterName, + MicrosoftEntraAuthenticationInner resource) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrReplaceSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, contentType, accept, resource, + Context.NONE); + } + + /** + * Creates or replaces the service-created Microsoft Entra authentication method. State Enabled enables the feature + * and State Disabled disables it; no additional properties are required. Repeating the same request is idempotent. + * Disabling the feature does not remove or modify database roles or users previously created through the + * MicrosoftEntraAdministrators control-plane API or directly through pgaadauth extension functions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param resource Resource create parameters. + * @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 service-created Microsoft Entra authentication method for a HorizonDB cluster along with + * {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrReplaceWithResponse(String resourceGroupName, String clusterName, + MicrosoftEntraAuthenticationInner resource, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrReplaceSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, contentType, accept, resource, context); + } + + /** + * Creates or replaces the service-created Microsoft Entra authentication method. State Enabled enables the feature + * and State Disabled disables it; no additional properties are required. Repeating the same request is idempotent. + * Disabling the feature does not remove or modify database roles or users previously created through the + * MicrosoftEntraAdministrators control-plane API or directly through pgaadauth extension functions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param resource Resource create parameters. + * @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 service-created Microsoft Entra authentication method for a + * HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, MicrosoftEntraAuthenticationInner> + beginCreateOrReplaceAsync(String resourceGroupName, String clusterName, + MicrosoftEntraAuthenticationInner resource) { + Mono>> mono + = createOrReplaceWithResponseAsync(resourceGroupName, clusterName, resource); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), MicrosoftEntraAuthenticationInner.class, + MicrosoftEntraAuthenticationInner.class, this.client.getContext()); + } + + /** + * Creates or replaces the service-created Microsoft Entra authentication method. State Enabled enables the feature + * and State Disabled disables it; no additional properties are required. Repeating the same request is idempotent. + * Disabling the feature does not remove or modify database roles or users previously created through the + * MicrosoftEntraAdministrators control-plane API or directly through pgaadauth extension functions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param resource Resource create parameters. + * @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 service-created Microsoft Entra authentication method for a + * HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, MicrosoftEntraAuthenticationInner> + beginCreateOrReplace(String resourceGroupName, String clusterName, MicrosoftEntraAuthenticationInner resource) { + Response response = createOrReplaceWithResponse(resourceGroupName, clusterName, resource); + return this.client.getLroResult(response, + MicrosoftEntraAuthenticationInner.class, MicrosoftEntraAuthenticationInner.class, Context.NONE); + } + + /** + * Creates or replaces the service-created Microsoft Entra authentication method. State Enabled enables the feature + * and State Disabled disables it; no additional properties are required. Repeating the same request is idempotent. + * Disabling the feature does not remove or modify database roles or users previously created through the + * MicrosoftEntraAdministrators control-plane API or directly through pgaadauth extension functions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param resource Resource create parameters. + * @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 service-created Microsoft Entra authentication method for a + * HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, MicrosoftEntraAuthenticationInner> + beginCreateOrReplace(String resourceGroupName, String clusterName, MicrosoftEntraAuthenticationInner resource, + Context context) { + Response response = createOrReplaceWithResponse(resourceGroupName, clusterName, resource, context); + return this.client.getLroResult(response, + MicrosoftEntraAuthenticationInner.class, MicrosoftEntraAuthenticationInner.class, context); + } + + /** + * Creates or replaces the service-created Microsoft Entra authentication method. State Enabled enables the feature + * and State Disabled disables it; no additional properties are required. Repeating the same request is idempotent. + * Disabling the feature does not remove or modify database roles or users previously created through the + * MicrosoftEntraAdministrators control-plane API or directly through pgaadauth extension functions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param resource Resource create parameters. + * @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 service-created Microsoft Entra authentication method for a HorizonDB cluster on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrReplaceAsync(String resourceGroupName, String clusterName, + MicrosoftEntraAuthenticationInner resource) { + return beginCreateOrReplaceAsync(resourceGroupName, clusterName, resource).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates or replaces the service-created Microsoft Entra authentication method. State Enabled enables the feature + * and State Disabled disables it; no additional properties are required. Repeating the same request is idempotent. + * Disabling the feature does not remove or modify database roles or users previously created through the + * MicrosoftEntraAdministrators control-plane API or directly through pgaadauth extension functions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param resource Resource create parameters. + * @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 service-created Microsoft Entra authentication method for a HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public MicrosoftEntraAuthenticationInner createOrReplace(String resourceGroupName, String clusterName, + MicrosoftEntraAuthenticationInner resource) { + return beginCreateOrReplace(resourceGroupName, clusterName, resource).getFinalResult(); + } + + /** + * Creates or replaces the service-created Microsoft Entra authentication method. State Enabled enables the feature + * and State Disabled disables it; no additional properties are required. Repeating the same request is idempotent. + * Disabling the feature does not remove or modify database roles or users previously created through the + * MicrosoftEntraAdministrators control-plane API or directly through pgaadauth extension functions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param resource Resource create parameters. + * @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 service-created Microsoft Entra authentication method for a HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public MicrosoftEntraAuthenticationInner createOrReplace(String resourceGroupName, String clusterName, + MicrosoftEntraAuthenticationInner resource, Context context) { + return beginCreateOrReplace(resourceGroupName, clusterName, resource, context).getFinalResult(); + } + + /** + * Updates the service-created Microsoft Entra authentication method. State Enabled enables the feature and State + * Disabled disables it; no additional properties are required. Disabling the feature does not remove or modify + * database roles or users previously created through the MicrosoftEntraAdministrators control-plane API or directly + * through pgaadauth extension functions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created Microsoft Entra authentication method for a HorizonDB cluster along with + * {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> updateWithResponseAsync(String resourceGroupName, String clusterName, + MicrosoftEntraAuthenticationForPatchUpdate properties) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, contentType, accept, properties, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Updates the service-created Microsoft Entra authentication method. State Enabled enables the feature and State + * Disabled disables it; no additional properties are required. Disabling the feature does not remove or modify + * database roles or users previously created through the MicrosoftEntraAdministrators control-plane API or directly + * through pgaadauth extension functions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created Microsoft Entra authentication method for a HorizonDB cluster along with + * {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response updateWithResponse(String resourceGroupName, String clusterName, + MicrosoftEntraAuthenticationForPatchUpdate properties) { + 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, properties, + Context.NONE); + } + + /** + * Updates the service-created Microsoft Entra authentication method. State Enabled enables the feature and State + * Disabled disables it; no additional properties are required. Disabling the feature does not remove or modify + * database roles or users previously created through the MicrosoftEntraAdministrators control-plane API or directly + * through pgaadauth extension functions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created Microsoft Entra authentication method for a HorizonDB cluster along with + * {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response updateWithResponse(String resourceGroupName, String clusterName, + MicrosoftEntraAuthenticationForPatchUpdate properties, Context context) { + 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, properties, context); + } + + /** + * Updates the service-created Microsoft Entra authentication method. State Enabled enables the feature and State + * Disabled disables it; no additional properties are required. Disabling the feature does not remove or modify + * database roles or users previously created through the MicrosoftEntraAdministrators control-plane API or directly + * through pgaadauth extension functions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of the service-created Microsoft Entra authentication method for a + * HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, MicrosoftEntraAuthenticationInner> + beginUpdateAsync(String resourceGroupName, String clusterName, + MicrosoftEntraAuthenticationForPatchUpdate properties) { + Mono>> mono = updateWithResponseAsync(resourceGroupName, clusterName, properties); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), MicrosoftEntraAuthenticationInner.class, + MicrosoftEntraAuthenticationInner.class, this.client.getContext()); + } + + /** + * Updates the service-created Microsoft Entra authentication method. State Enabled enables the feature and State + * Disabled disables it; no additional properties are required. Disabling the feature does not remove or modify + * database roles or users previously created through the MicrosoftEntraAdministrators control-plane API or directly + * through pgaadauth extension functions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the service-created Microsoft Entra authentication method for a + * HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, MicrosoftEntraAuthenticationInner> beginUpdate( + String resourceGroupName, String clusterName, MicrosoftEntraAuthenticationForPatchUpdate properties) { + Response response = updateWithResponse(resourceGroupName, clusterName, properties); + return this.client.getLroResult(response, + MicrosoftEntraAuthenticationInner.class, MicrosoftEntraAuthenticationInner.class, Context.NONE); + } + + /** + * Updates the service-created Microsoft Entra authentication method. State Enabled enables the feature and State + * Disabled disables it; no additional properties are required. Disabling the feature does not remove or modify + * database roles or users previously created through the MicrosoftEntraAdministrators control-plane API or directly + * through pgaadauth extension functions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the service-created Microsoft Entra authentication method for a + * HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, MicrosoftEntraAuthenticationInner> beginUpdate( + String resourceGroupName, String clusterName, MicrosoftEntraAuthenticationForPatchUpdate properties, + Context context) { + Response response = updateWithResponse(resourceGroupName, clusterName, properties, context); + return this.client.getLroResult(response, + MicrosoftEntraAuthenticationInner.class, MicrosoftEntraAuthenticationInner.class, context); + } + + /** + * Updates the service-created Microsoft Entra authentication method. State Enabled enables the feature and State + * Disabled disables it; no additional properties are required. Disabling the feature does not remove or modify + * database roles or users previously created through the MicrosoftEntraAdministrators control-plane API or directly + * through pgaadauth extension functions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created Microsoft Entra authentication method for a HorizonDB cluster on successful + * completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono updateAsync(String resourceGroupName, String clusterName, + MicrosoftEntraAuthenticationForPatchUpdate properties) { + return beginUpdateAsync(resourceGroupName, clusterName, properties).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Updates the service-created Microsoft Entra authentication method. State Enabled enables the feature and State + * Disabled disables it; no additional properties are required. Disabling the feature does not remove or modify + * database roles or users previously created through the MicrosoftEntraAdministrators control-plane API or directly + * through pgaadauth extension functions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created Microsoft Entra authentication method for a HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public MicrosoftEntraAuthenticationInner update(String resourceGroupName, String clusterName, + MicrosoftEntraAuthenticationForPatchUpdate properties) { + return beginUpdate(resourceGroupName, clusterName, properties).getFinalResult(); + } + + /** + * Updates the service-created Microsoft Entra authentication method. State Enabled enables the feature and State + * Disabled disables it; no additional properties are required. Disabling the feature does not remove or modify + * database roles or users previously created through the MicrosoftEntraAdministrators control-plane API or directly + * through pgaadauth extension functions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created Microsoft Entra authentication method for a HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public MicrosoftEntraAuthenticationInner update(String resourceGroupName, String clusterName, + MicrosoftEntraAuthenticationForPatchUpdate properties, Context context) { + return beginUpdate(resourceGroupName, clusterName, properties, context).getFinalResult(); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/MicrosoftEntraAuthenticationsImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/MicrosoftEntraAuthenticationsImpl.java new file mode 100644 index 0000000000000..1e13ac92e5f5d --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/MicrosoftEntraAuthenticationsImpl.java @@ -0,0 +1,98 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.horizondb.fluent.MicrosoftEntraAuthenticationsClient; +import com.azure.resourcemanager.horizondb.fluent.models.MicrosoftEntraAuthenticationInner; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAuthentication; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAuthenticationForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAuthentications; + +public final class MicrosoftEntraAuthenticationsImpl implements MicrosoftEntraAuthentications { + private static final ClientLogger LOGGER = new ClientLogger(MicrosoftEntraAuthenticationsImpl.class); + + private final MicrosoftEntraAuthenticationsClient innerClient; + + private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; + + public MicrosoftEntraAuthenticationsImpl(MicrosoftEntraAuthenticationsClient innerClient, + com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String resourceGroupName, String clusterName, + Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, clusterName, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new MicrosoftEntraAuthenticationImpl(inner.getValue(), this.manager())); + } + + public MicrosoftEntraAuthentication get(String resourceGroupName, String clusterName) { + MicrosoftEntraAuthenticationInner inner = this.serviceClient().get(resourceGroupName, clusterName); + if (inner != null) { + return new MicrosoftEntraAuthenticationImpl(inner, this.manager()); + } else { + return null; + } + } + + public MicrosoftEntraAuthentication createOrReplace(String resourceGroupName, String clusterName, + MicrosoftEntraAuthenticationInner resource) { + MicrosoftEntraAuthenticationInner inner + = this.serviceClient().createOrReplace(resourceGroupName, clusterName, resource); + if (inner != null) { + return new MicrosoftEntraAuthenticationImpl(inner, this.manager()); + } else { + return null; + } + } + + public MicrosoftEntraAuthentication createOrReplace(String resourceGroupName, String clusterName, + MicrosoftEntraAuthenticationInner resource, Context context) { + MicrosoftEntraAuthenticationInner inner + = this.serviceClient().createOrReplace(resourceGroupName, clusterName, resource, context); + if (inner != null) { + return new MicrosoftEntraAuthenticationImpl(inner, this.manager()); + } else { + return null; + } + } + + public MicrosoftEntraAuthentication update(String resourceGroupName, String clusterName, + MicrosoftEntraAuthenticationForPatchUpdate properties) { + MicrosoftEntraAuthenticationInner inner + = this.serviceClient().update(resourceGroupName, clusterName, properties); + if (inner != null) { + return new MicrosoftEntraAuthenticationImpl(inner, this.manager()); + } else { + return null; + } + } + + public MicrosoftEntraAuthentication update(String resourceGroupName, String clusterName, + MicrosoftEntraAuthenticationForPatchUpdate properties, Context context) { + MicrosoftEntraAuthenticationInner inner + = this.serviceClient().update(resourceGroupName, clusterName, properties, context); + if (inner != null) { + return new MicrosoftEntraAuthenticationImpl(inner, this.manager()); + } else { + return null; + } + } + + private MicrosoftEntraAuthenticationsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/NodeImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/NodeImpl.java new file mode 100644 index 0000000000000..fad2c4dbd66ca --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/NodeImpl.java @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.horizondb.fluent.models.NodeInner; +import com.azure.resourcemanager.horizondb.models.Node; +import com.azure.resourcemanager.horizondb.models.NodeProperties; + +public final class NodeImpl implements Node { + private NodeInner innerObject; + + private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; + + NodeImpl(NodeInner innerObject, com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public NodeProperties properties() { + return this.innerModel().properties(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public NodeInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbPoolsClientImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/NodesClientImpl.java similarity index 69% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbPoolsClientImpl.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/NodesClientImpl.java index 37af89d01041e..d5a0e720f32ef 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbPoolsClientImpl.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/NodesClientImpl.java @@ -25,19 +25,19 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.resourcemanager.horizondb.fluent.HorizonDbPoolsClient; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbPoolInner; -import com.azure.resourcemanager.horizondb.implementation.models.HorizonDbPoolListResult; +import com.azure.resourcemanager.horizondb.fluent.NodesClient; +import com.azure.resourcemanager.horizondb.fluent.models.NodeInner; +import com.azure.resourcemanager.horizondb.implementation.models.NodeListResult; import reactor.core.publisher.Mono; /** - * An instance of this class provides access to all the operations defined in HorizonDbPoolsClient. + * An instance of this class provides access to all the operations defined in NodesClient. */ -public final class HorizonDbPoolsClientImpl implements HorizonDbPoolsClient { +public final class NodesClientImpl implements NodesClient { /** * The proxy service used to perform REST calls. */ - private final HorizonDbPoolsService service; + private final NodesService service; /** * The service client containing this operation class. @@ -45,256 +45,270 @@ public final class HorizonDbPoolsClientImpl implements HorizonDbPoolsClient { private final HorizonDbManagementClientImpl client; /** - * Initializes an instance of HorizonDbPoolsClientImpl. + * Initializes an instance of NodesClientImpl. * * @param client the instance of the service client containing this operation class. */ - HorizonDbPoolsClientImpl(HorizonDbManagementClientImpl client) { - this.service - = RestProxy.create(HorizonDbPoolsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + NodesClientImpl(HorizonDbManagementClientImpl client) { + this.service = RestProxy.create(NodesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for HorizonDbManagementClientHorizonDbPools to be used by the proxy - * service to perform REST calls. + * The interface defining all the services for HorizonDbManagementClientNodes to be used by the proxy service to + * perform REST calls. */ @Host("{endpoint}") - @ServiceInterface(name = "HorizonDbManagementClientHorizonDbPools") - public interface HorizonDbPoolsService { + @ServiceInterface(name = "HorizonDbManagementClientNodes") + public interface NodesService { @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/nodes/{nodeName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("endpoint") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, - @PathParam("poolName") String poolName, @HeaderParam("Accept") String accept, Context context); + @PathParam("poolName") String poolName, @PathParam("nodeName") String nodeName, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/nodes/{nodeName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("endpoint") String endpoint, + Response getSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, - @PathParam("poolName") String poolName, @HeaderParam("Accept") String accept, Context context); + @PathParam("poolName") String poolName, @PathParam("nodeName") String nodeName, + @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/nodes") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("endpoint") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, - @HeaderParam("Accept") String accept, Context context); + @PathParam("poolName") String poolName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools") + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/nodes") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listSync(@HostParam("endpoint") String endpoint, + Response listSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, - @HeaderParam("Accept") String accept, Context context); + @PathParam("poolName") String poolName, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink, + Response listNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } /** - * Gets information about a HorizonDB pool. + * Gets a node allocated to a HorizonDB pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. + * @param nodeName The name of the Node. * @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 information about a HorizonDB pool along with {@link Response} on successful completion of {@link Mono}. + * @return a node allocated to a HorizonDB pool along with {@link Response} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String resourceGroupName, String clusterName, - String poolName) { + public Mono> getWithResponseAsync(String resourceGroupName, String clusterName, String poolName, + String nodeName) { final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, accept, context)) + this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, nodeName, accept, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Gets information about a HorizonDB pool. + * Gets a node allocated to a HorizonDB pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. + * @param nodeName The name of the Node. * @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 information about a HorizonDB pool on successful completion of {@link Mono}. + * @return a node allocated to a HorizonDB pool on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String resourceGroupName, String clusterName, String poolName) { - return getWithResponseAsync(resourceGroupName, clusterName, poolName) + public Mono getAsync(String resourceGroupName, String clusterName, String poolName, String nodeName) { + return getWithResponseAsync(resourceGroupName, clusterName, poolName, nodeName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } /** - * Gets information about a HorizonDB pool. + * Gets a node allocated to a HorizonDB pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. + * @param nodeName The name of the Node. * @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 information about a HorizonDB pool along with {@link Response}. + * @return a node allocated to a HorizonDB pool along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String clusterName, String poolName, - Context context) { + public Response getWithResponse(String resourceGroupName, String clusterName, String poolName, + String nodeName, Context context) { final String accept = "application/json"; return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, clusterName, poolName, accept, context); + resourceGroupName, clusterName, poolName, nodeName, accept, context); } /** - * Gets information about a HorizonDB pool. + * Gets a node allocated to a HorizonDB pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. + * @param nodeName The name of the Node. * @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 information about a HorizonDB pool. + * @return a node allocated to a HorizonDB pool. */ @ServiceMethod(returns = ReturnType.SINGLE) - public HorizonDbPoolInner get(String resourceGroupName, String clusterName, String poolName) { - return getWithResponse(resourceGroupName, clusterName, poolName, Context.NONE).getValue(); + public NodeInner get(String resourceGroupName, String clusterName, String poolName, String nodeName) { + return getWithResponse(resourceGroupName, clusterName, poolName, nodeName, Context.NONE).getValue(); } /** - * Lists all HorizonDB pools in a cluster. + * Lists the nodes allocated to a HorizonDB pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. * @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 of a HorizonDbPool list operation along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * @return the response of a Node list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, String clusterName) { + private Mono> listSinglePageAsync(String resourceGroupName, String clusterName, + String poolName) { final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Lists all HorizonDB pools in a cluster. + * Lists the nodes allocated to a HorizonDB pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. * @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 of a HorizonDbPool list operation as paginated response with {@link PagedFlux}. + * @return the response of a Node list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String clusterName) { - return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, clusterName), + public PagedFlux listAsync(String resourceGroupName, String clusterName, String poolName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, clusterName, poolName), nextLink -> listNextSinglePageAsync(nextLink)); } /** - * Lists all HorizonDB pools in a cluster. + * Lists the nodes allocated to a HorizonDB pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. * @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 of a HorizonDbPool list operation along with {@link PagedResponse}. + * @return the response of a Node list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(String resourceGroupName, String clusterName) { + private PagedResponse listSinglePage(String resourceGroupName, String clusterName, String poolName) { final String accept = "application/json"; - Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, Context.NONE); + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, accept, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); } /** - * Lists all HorizonDB pools in a cluster. + * Lists the nodes allocated to a HorizonDB pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. * @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 of a HorizonDbPool list operation along with {@link PagedResponse}. + * @return the response of a Node list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(String resourceGroupName, String clusterName, + private PagedResponse listSinglePage(String resourceGroupName, String clusterName, String poolName, Context context) { final String accept = "application/json"; - Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, context); + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); } /** - * Lists all HorizonDB pools in a cluster. + * Lists the nodes allocated to a HorizonDB pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. * @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 of a HorizonDbPool list operation as paginated response with {@link PagedIterable}. + * @return the response of a Node list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String clusterName) { - return new PagedIterable<>(() -> listSinglePage(resourceGroupName, clusterName), + public PagedIterable list(String resourceGroupName, String clusterName, String poolName) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, clusterName, poolName), nextLink -> listNextSinglePage(nextLink)); } /** - * Lists all HorizonDB pools in a cluster. + * Lists the nodes allocated to a HorizonDB pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. * @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 of a HorizonDbPool list operation as paginated response with {@link PagedIterable}. + * @return the response of a Node list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String clusterName, Context context) { - return new PagedIterable<>(() -> listSinglePage(resourceGroupName, clusterName, context), + public PagedIterable list(String resourceGroupName, String clusterName, String poolName, + Context context) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, clusterName, poolName, context), nextLink -> listNextSinglePage(nextLink, context)); } @@ -305,15 +319,15 @@ public PagedIterable list(String resourceGroupName, String c * @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 of a HorizonDbPool list operation along with {@link PagedResponse} on successful completion - * of {@link Mono}. + * @return the response of a Node list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { + private Mono> listNextSinglePageAsync(String nextLink) { final String accept = "application/json"; return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -324,13 +338,12 @@ private Mono> listNextSinglePageAsync(String n * @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 of a HorizonDbPool list operation along with {@link PagedResponse}. + * @return the response of a Node list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listNextSinglePage(String nextLink) { + private PagedResponse listNextSinglePage(String nextLink) { final String accept = "application/json"; - Response res - = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); } @@ -343,13 +356,12 @@ private PagedResponse listNextSinglePage(String nextLink) { * @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 of a HorizonDbPool list operation along with {@link PagedResponse}. + * @return the response of a Node list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listNextSinglePage(String nextLink, Context context) { + private PagedResponse listNextSinglePage(String nextLink, Context context) { final String accept = "application/json"; - Response res - = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); + Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/NodesImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/NodesImpl.java new file mode 100644 index 0000000000000..4efeb35a6a0d5 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/NodesImpl.java @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.horizondb.fluent.NodesClient; +import com.azure.resourcemanager.horizondb.fluent.models.NodeInner; +import com.azure.resourcemanager.horizondb.models.Node; +import com.azure.resourcemanager.horizondb.models.Nodes; + +public final class NodesImpl implements Nodes { + private static final ClientLogger LOGGER = new ClientLogger(NodesImpl.class); + + private final NodesClient innerClient; + + private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; + + public NodesImpl(NodesClient innerClient, com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String resourceGroupName, String clusterName, String poolName, + String nodeName, Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, clusterName, poolName, nodeName, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new NodeImpl(inner.getValue(), this.manager())); + } + + public Node get(String resourceGroupName, String clusterName, String poolName, String nodeName) { + NodeInner inner = this.serviceClient().get(resourceGroupName, clusterName, poolName, nodeName); + if (inner != null) { + return new NodeImpl(inner, this.manager()); + } else { + return null; + } + } + + public PagedIterable list(String resourceGroupName, String clusterName, String poolName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, clusterName, poolName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new NodeImpl(inner1, this.manager())); + } + + public PagedIterable list(String resourceGroupName, String clusterName, String poolName, Context context) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, clusterName, poolName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new NodeImpl(inner1, this.manager())); + } + + private NodesClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ParameterGroupConnectionPropertiesImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ParameterGroupConnectionPropertiesImpl.java new file mode 100644 index 0000000000000..46b5321713ef2 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ParameterGroupConnectionPropertiesImpl.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.horizondb.implementation; + +import com.azure.resourcemanager.horizondb.fluent.models.ParameterGroupConnectionPropertiesInner; +import com.azure.resourcemanager.horizondb.models.ParameterGroupConnectionProperties; + +public final class ParameterGroupConnectionPropertiesImpl implements ParameterGroupConnectionProperties { + private ParameterGroupConnectionPropertiesInner innerObject; + + private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; + + ParameterGroupConnectionPropertiesImpl(ParameterGroupConnectionPropertiesInner innerObject, + com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String poolResourceId() { + return this.innerModel().poolResourceId(); + } + + public ParameterGroupConnectionPropertiesInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbParameterGroupImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ParameterGroupImpl.java similarity index 60% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbParameterGroupImpl.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ParameterGroupImpl.java index b1b7144483923..113f0bded3ed9 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbParameterGroupImpl.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ParameterGroupImpl.java @@ -7,17 +7,16 @@ import com.azure.core.management.Region; import com.azure.core.management.SystemData; import com.azure.core.util.Context; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbParameterGroupInner; -import com.azure.resourcemanager.horizondb.models.HorizonDbParameterGroup; -import com.azure.resourcemanager.horizondb.models.HorizonDbParameterGroupForPatchUpdate; -import com.azure.resourcemanager.horizondb.models.HorizonDbParameterGroupProperties; -import com.azure.resourcemanager.horizondb.models.HorizonDbParameterGroupPropertiesForPatchUpdate; +import com.azure.resourcemanager.horizondb.fluent.models.ParameterGroupInner; +import com.azure.resourcemanager.horizondb.models.ParameterGroup; +import com.azure.resourcemanager.horizondb.models.ParameterGroupForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.ParameterGroupProperties; +import com.azure.resourcemanager.horizondb.models.ParameterGroupPropertiesForPatchUpdate; import java.util.Collections; import java.util.Map; -public final class HorizonDbParameterGroupImpl - implements HorizonDbParameterGroup, HorizonDbParameterGroup.Definition, HorizonDbParameterGroup.Update { - private HorizonDbParameterGroupInner innerObject; +public final class ParameterGroupImpl implements ParameterGroup, ParameterGroup.Definition, ParameterGroup.Update { + private ParameterGroupInner innerObject; private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; @@ -46,7 +45,7 @@ public Map tags() { } } - public HorizonDbParameterGroupProperties properties() { + public ParameterGroupProperties properties() { return this.innerModel().properties(); } @@ -66,7 +65,7 @@ public String resourceGroupName() { return resourceGroupName; } - public HorizonDbParameterGroupInner innerModel() { + public ParameterGroupInner innerModel() { return this.innerObject; } @@ -78,53 +77,53 @@ private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { private String parameterGroupName; - private HorizonDbParameterGroupForPatchUpdate updateProperties; + private ParameterGroupForPatchUpdate updateProperties; - public HorizonDbParameterGroupImpl withExistingResourceGroup(String resourceGroupName) { + public ParameterGroupImpl withExistingResourceGroup(String resourceGroupName) { this.resourceGroupName = resourceGroupName; return this; } - public HorizonDbParameterGroup create() { + public ParameterGroup create() { this.innerObject = serviceManager.serviceClient() - .getHorizonDbParameterGroups() - .createOrUpdate(resourceGroupName, parameterGroupName, this.innerModel(), Context.NONE); + .getParameterGroups() + .createOrReplace(resourceGroupName, parameterGroupName, this.innerModel(), Context.NONE); return this; } - public HorizonDbParameterGroup create(Context context) { + public ParameterGroup create(Context context) { this.innerObject = serviceManager.serviceClient() - .getHorizonDbParameterGroups() - .createOrUpdate(resourceGroupName, parameterGroupName, this.innerModel(), context); + .getParameterGroups() + .createOrReplace(resourceGroupName, parameterGroupName, this.innerModel(), context); return this; } - HorizonDbParameterGroupImpl(String name, com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { - this.innerObject = new HorizonDbParameterGroupInner(); + ParameterGroupImpl(String name, com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerObject = new ParameterGroupInner(); this.serviceManager = serviceManager; this.parameterGroupName = name; } - public HorizonDbParameterGroupImpl update() { - this.updateProperties = new HorizonDbParameterGroupForPatchUpdate(); + public ParameterGroupImpl update() { + this.updateProperties = new ParameterGroupForPatchUpdate(); return this; } - public HorizonDbParameterGroup apply() { + public ParameterGroup apply() { this.innerObject = serviceManager.serviceClient() - .getHorizonDbParameterGroups() + .getParameterGroups() .update(resourceGroupName, parameterGroupName, updateProperties, Context.NONE); return this; } - public HorizonDbParameterGroup apply(Context context) { + public ParameterGroup apply(Context context) { this.innerObject = serviceManager.serviceClient() - .getHorizonDbParameterGroups() + .getParameterGroups() .update(resourceGroupName, parameterGroupName, updateProperties, context); return this; } - HorizonDbParameterGroupImpl(HorizonDbParameterGroupInner innerObject, + ParameterGroupImpl(ParameterGroupInner innerObject, com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; @@ -132,33 +131,33 @@ public HorizonDbParameterGroup apply(Context context) { this.parameterGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "parameterGroups"); } - public HorizonDbParameterGroup refresh() { + public ParameterGroup refresh() { this.innerObject = serviceManager.serviceClient() - .getHorizonDbParameterGroups() + .getParameterGroups() .getByResourceGroupWithResponse(resourceGroupName, parameterGroupName, Context.NONE) .getValue(); return this; } - public HorizonDbParameterGroup refresh(Context context) { + public ParameterGroup refresh(Context context) { this.innerObject = serviceManager.serviceClient() - .getHorizonDbParameterGroups() + .getParameterGroups() .getByResourceGroupWithResponse(resourceGroupName, parameterGroupName, context) .getValue(); return this; } - public HorizonDbParameterGroupImpl withRegion(Region location) { + public ParameterGroupImpl withRegion(Region location) { this.innerModel().withLocation(location.toString()); return this; } - public HorizonDbParameterGroupImpl withRegion(String location) { + public ParameterGroupImpl withRegion(String location) { this.innerModel().withLocation(location); return this; } - public HorizonDbParameterGroupImpl withTags(Map tags) { + public ParameterGroupImpl withTags(Map tags) { if (isInCreateMode()) { this.innerModel().withTags(tags); return this; @@ -168,12 +167,12 @@ public HorizonDbParameterGroupImpl withTags(Map tags) { } } - public HorizonDbParameterGroupImpl withProperties(HorizonDbParameterGroupProperties properties) { + public ParameterGroupImpl withProperties(ParameterGroupProperties properties) { this.innerModel().withProperties(properties); return this; } - public HorizonDbParameterGroupImpl withProperties(HorizonDbParameterGroupPropertiesForPatchUpdate properties) { + public ParameterGroupImpl withProperties(ParameterGroupPropertiesForPatchUpdate properties) { this.updateProperties.withProperties(properties); return this; } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbParameterGroupsClientImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ParameterGroupsClientImpl.java similarity index 66% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbParameterGroupsClientImpl.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ParameterGroupsClientImpl.java index bc809a22ffdbe..f63b24b7df98a 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbParameterGroupsClientImpl.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ParameterGroupsClientImpl.java @@ -33,24 +33,24 @@ import com.azure.core.util.FluxUtil; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.horizondb.fluent.HorizonDbParameterGroupsClient; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbParameterGroupConnectionPropertiesInner; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbParameterGroupInner; -import com.azure.resourcemanager.horizondb.implementation.models.HorizonDbParameterGroupConnectionPropertiesListResult; -import com.azure.resourcemanager.horizondb.implementation.models.HorizonDbParameterGroupListResult; -import com.azure.resourcemanager.horizondb.models.HorizonDbParameterGroupForPatchUpdate; +import com.azure.resourcemanager.horizondb.fluent.ParameterGroupsClient; +import com.azure.resourcemanager.horizondb.fluent.models.ParameterGroupConnectionPropertiesInner; +import com.azure.resourcemanager.horizondb.fluent.models.ParameterGroupInner; +import com.azure.resourcemanager.horizondb.implementation.models.PagedParameterGroupConnectionProperties; +import com.azure.resourcemanager.horizondb.implementation.models.ParameterGroupListResult; +import com.azure.resourcemanager.horizondb.models.ParameterGroupForPatchUpdate; import java.nio.ByteBuffer; import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; /** - * An instance of this class provides access to all the operations defined in HorizonDbParameterGroupsClient. + * An instance of this class provides access to all the operations defined in ParameterGroupsClient. */ -public final class HorizonDbParameterGroupsClientImpl implements HorizonDbParameterGroupsClient { +public final class ParameterGroupsClientImpl implements ParameterGroupsClient { /** * The proxy service used to perform REST calls. */ - private final HorizonDbParameterGroupsService service; + private final ParameterGroupsService service; /** * The service client containing this operation class. @@ -58,28 +58,28 @@ public final class HorizonDbParameterGroupsClientImpl implements HorizonDbParame private final HorizonDbManagementClientImpl client; /** - * Initializes an instance of HorizonDbParameterGroupsClientImpl. + * Initializes an instance of ParameterGroupsClientImpl. * * @param client the instance of the service client containing this operation class. */ - HorizonDbParameterGroupsClientImpl(HorizonDbManagementClientImpl client) { - this.service = RestProxy.create(HorizonDbParameterGroupsService.class, client.getHttpPipeline(), - client.getSerializerAdapter()); + ParameterGroupsClientImpl(HorizonDbManagementClientImpl client) { + this.service + = RestProxy.create(ParameterGroupsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for HorizonDbManagementClientHorizonDbParameterGroups to be used by the - * proxy service to perform REST calls. + * The interface defining all the services for HorizonDbManagementClientParameterGroups to be used by the proxy + * service to perform REST calls. */ @Host("{endpoint}") - @ServiceInterface(name = "HorizonDbManagementClientHorizonDbParameterGroups") - public interface HorizonDbParameterGroupsService { + @ServiceInterface(name = "HorizonDbManagementClientParameterGroups") + public interface ParameterGroupsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, + Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("parameterGroupName") String parameterGroupName, @HeaderParam("Accept") String accept, @@ -89,7 +89,7 @@ Mono> getByResourceGroup(@HostParam("endp @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getByResourceGroupSync(@HostParam("endpoint") String endpoint, + Response getByResourceGroupSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("parameterGroupName") String parameterGroupName, @HeaderParam("Accept") String accept, @@ -98,21 +98,21 @@ Response getByResourceGroupSync(@HostParam("endpoi @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, + Mono>> createOrReplace(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("parameterGroupName") String parameterGroupName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") HorizonDbParameterGroupInner resource, + @HeaderParam("Accept") String accept, @BodyParam("application/json") ParameterGroupInner resource, Context context); @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("endpoint") String endpoint, + Response createOrReplaceSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("parameterGroupName") String parameterGroupName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") HorizonDbParameterGroupInner resource, + @HeaderParam("Accept") String accept, @BodyParam("application/json") ParameterGroupInner resource, Context context); @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}") @@ -123,7 +123,7 @@ Mono>> update(@HostParam("endpoint") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("parameterGroupName") String parameterGroupName, @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") HorizonDbParameterGroupForPatchUpdate properties, Context context); + @BodyParam("application/json") ParameterGroupForPatchUpdate properties, Context context); @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}") @ExpectedResponses({ 200, 202 }) @@ -133,7 +133,7 @@ Response updateSync(@HostParam("endpoint") String endpoint, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("parameterGroupName") String parameterGroupName, @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") HorizonDbParameterGroupForPatchUpdate properties, Context context); + @BodyParam("application/json") ParameterGroupForPatchUpdate properties, Context context); @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}") @@ -157,7 +157,7 @@ Response deleteSync(@HostParam("endpoint") String endpoint, @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, + Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, Context context); @@ -166,7 +166,7 @@ Mono> listByResourceGroup(@HostParam @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listByResourceGroupSync(@HostParam("endpoint") String endpoint, + Response listByResourceGroupSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, Context context); @@ -175,7 +175,7 @@ Response listByResourceGroupSync(@HostParam(" @Get("/subscriptions/{subscriptionId}/providers/Microsoft.HorizonDb/parameterGroups") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("endpoint") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @@ -183,7 +183,7 @@ Mono> list(@HostParam("endpoint") St @Get("/subscriptions/{subscriptionId}/providers/Microsoft.HorizonDb/parameterGroups") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listSync(@HostParam("endpoint") String endpoint, + Response listSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @HeaderParam("Accept") String accept, Context context); @@ -191,9 +191,8 @@ Response listSync(@HostParam("endpoint") Stri @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}/connections") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listConnections( - @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + Mono> listConnections(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("parameterGroupName") String parameterGroupName, @HeaderParam("Accept") String accept, Context context); @@ -202,46 +201,17 @@ Mono> listConnec @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}/connections") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listConnectionsSync( - @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, + Response listConnectionsSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("parameterGroupName") String parameterGroupName, @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}/versions") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listVersions(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("parameterGroupName") String parameterGroupName, @QueryParam("version") Integer version, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/parameterGroups/{parameterGroupName}/versions") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listVersionsSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("parameterGroupName") String parameterGroupName, @QueryParam("version") Integer version, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroupNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, Context context); - @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listByResourceGroupNextSync( + Mono> listByResourceGroupNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @@ -249,7 +219,7 @@ Response listByResourceGroupNextSync( @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listBySubscriptionNext( + Response listByResourceGroupNextSync( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @@ -257,7 +227,7 @@ Mono> listBySubscriptionNext( @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listBySubscriptionNextSync( + Mono> listBySubscriptionNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @@ -265,7 +235,7 @@ Response listBySubscriptionNextSync( @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listConnectionsNext( + Response listBySubscriptionNextSync( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @@ -273,7 +243,7 @@ Mono> listConnec @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listConnectionsNextSync( + Mono> listConnectionsNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @@ -281,15 +251,7 @@ Response listConnectionsN @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listVersionsNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listVersionsNextSync( + Response listConnectionsNextSync( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } @@ -306,7 +268,7 @@ Response listVersionsNextSync( * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, + public Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, String parameterGroupName) { final String accept = "application/json"; return FluxUtil @@ -326,8 +288,7 @@ public Mono> getByResourceGroupWithRespon * @return information about a HorizonDB parameter group on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getByResourceGroupAsync(String resourceGroupName, - String parameterGroupName) { + public Mono getByResourceGroupAsync(String resourceGroupName, String parameterGroupName) { return getByResourceGroupWithResponseAsync(resourceGroupName, parameterGroupName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -344,7 +305,7 @@ public Mono getByResourceGroupAsync(String resourc * @return information about a HorizonDB parameter group along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse(String resourceGroupName, + public Response getByResourceGroupWithResponse(String resourceGroupName, String parameterGroupName, Context context) { final String accept = "application/json"; return service.getByResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(), @@ -362,12 +323,12 @@ public Response getByResourceGroupWithResponse(Str * @return information about a HorizonDB parameter group. */ @ServiceMethod(returns = ReturnType.SINGLE) - public HorizonDbParameterGroupInner getByResourceGroup(String resourceGroupName, String parameterGroupName) { + public ParameterGroupInner getByResourceGroup(String resourceGroupName, String parameterGroupName) { return getByResourceGroupWithResponse(resourceGroupName, parameterGroupName, Context.NONE).getValue(); } /** - * Creates a new HorizonDB parameter group or updates an existing parameter group. + * Creates a new HorizonDB parameter group or replaces an existing parameter group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -379,19 +340,19 @@ public HorizonDbParameterGroupInner getByResourceGroup(String resourceGroupName, * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String parameterGroupName, HorizonDbParameterGroupInner resource) { + public Mono>> createOrReplaceWithResponseAsync(String resourceGroupName, + String parameterGroupName, ParameterGroupInner resource) { final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), + .withContext(context -> service.createOrReplace(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, parameterGroupName, contentType, accept, resource, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Creates a new HorizonDB parameter group or updates an existing parameter group. + * Creates a new HorizonDB parameter group or replaces an existing parameter group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -402,17 +363,17 @@ public Mono>> createOrUpdateWithResponseAsync(String r * @return represents the HorizonDB parameter group along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String parameterGroupName, - HorizonDbParameterGroupInner resource) { + private Response createOrReplaceWithResponse(String resourceGroupName, String parameterGroupName, + ParameterGroupInner resource) { final String contentType = "application/json"; final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + return service.createOrReplaceSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, parameterGroupName, contentType, accept, resource, Context.NONE); } /** - * Creates a new HorizonDB parameter group or updates an existing parameter group. + * Creates a new HorizonDB parameter group or replaces an existing parameter group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -424,17 +385,17 @@ private Response createOrUpdateWithResponse(String resourceGroupName * @return represents the HorizonDB parameter group along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String parameterGroupName, - HorizonDbParameterGroupInner resource, Context context) { + private Response createOrReplaceWithResponse(String resourceGroupName, String parameterGroupName, + ParameterGroupInner resource, Context context) { final String contentType = "application/json"; final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), + return service.createOrReplaceSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, parameterGroupName, contentType, accept, resource, context); } /** - * Creates a new HorizonDB parameter group or updates an existing parameter group. + * Creates a new HorizonDB parameter group or replaces an existing parameter group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -445,17 +406,16 @@ private Response createOrUpdateWithResponse(String resourceGroupName * @return the {@link PollerFlux} for polling of represents the HorizonDB parameter group. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, HorizonDbParameterGroupInner> beginCreateOrUpdateAsync( - String resourceGroupName, String parameterGroupName, HorizonDbParameterGroupInner resource) { + public PollerFlux, ParameterGroupInner> + beginCreateOrReplaceAsync(String resourceGroupName, String parameterGroupName, ParameterGroupInner resource) { Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, parameterGroupName, resource); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), HorizonDbParameterGroupInner.class, HorizonDbParameterGroupInner.class, - this.client.getContext()); + = createOrReplaceWithResponseAsync(resourceGroupName, parameterGroupName, resource); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + ParameterGroupInner.class, ParameterGroupInner.class, this.client.getContext()); } /** - * Creates a new HorizonDB parameter group or updates an existing parameter group. + * Creates a new HorizonDB parameter group or replaces an existing parameter group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -466,15 +426,15 @@ public PollerFlux, HorizonDbParameterGr * @return the {@link SyncPoller} for polling of represents the HorizonDB parameter group. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, HorizonDbParameterGroupInner> beginCreateOrUpdate( - String resourceGroupName, String parameterGroupName, HorizonDbParameterGroupInner resource) { - Response response = createOrUpdateWithResponse(resourceGroupName, parameterGroupName, resource); - return this.client.getLroResult(response, - HorizonDbParameterGroupInner.class, HorizonDbParameterGroupInner.class, Context.NONE); + public SyncPoller, ParameterGroupInner> + beginCreateOrReplace(String resourceGroupName, String parameterGroupName, ParameterGroupInner resource) { + Response response = createOrReplaceWithResponse(resourceGroupName, parameterGroupName, resource); + return this.client.getLroResult(response, ParameterGroupInner.class, + ParameterGroupInner.class, Context.NONE); } /** - * Creates a new HorizonDB parameter group or updates an existing parameter group. + * Creates a new HorizonDB parameter group or replaces an existing parameter group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -486,16 +446,16 @@ public SyncPoller, HorizonDbParameterGr * @return the {@link SyncPoller} for polling of represents the HorizonDB parameter group. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, HorizonDbParameterGroupInner> beginCreateOrUpdate( - String resourceGroupName, String parameterGroupName, HorizonDbParameterGroupInner resource, Context context) { + public SyncPoller, ParameterGroupInner> beginCreateOrReplace( + String resourceGroupName, String parameterGroupName, ParameterGroupInner resource, Context context) { Response response - = createOrUpdateWithResponse(resourceGroupName, parameterGroupName, resource, context); - return this.client.getLroResult(response, - HorizonDbParameterGroupInner.class, HorizonDbParameterGroupInner.class, context); + = createOrReplaceWithResponse(resourceGroupName, parameterGroupName, resource, context); + return this.client.getLroResult(response, ParameterGroupInner.class, + ParameterGroupInner.class, context); } /** - * Creates a new HorizonDB parameter group or updates an existing parameter group. + * Creates a new HorizonDB parameter group or replaces an existing parameter group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -506,14 +466,14 @@ public SyncPoller, HorizonDbParameterGr * @return represents the HorizonDB parameter group on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono createOrUpdateAsync(String resourceGroupName, String parameterGroupName, - HorizonDbParameterGroupInner resource) { - return beginCreateOrUpdateAsync(resourceGroupName, parameterGroupName, resource).last() + public Mono createOrReplaceAsync(String resourceGroupName, String parameterGroupName, + ParameterGroupInner resource) { + return beginCreateOrReplaceAsync(resourceGroupName, parameterGroupName, resource).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Creates a new HorizonDB parameter group or updates an existing parameter group. + * Creates a new HorizonDB parameter group or replaces an existing parameter group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -524,13 +484,13 @@ public Mono createOrUpdateAsync(String resourceGro * @return represents the HorizonDB parameter group. */ @ServiceMethod(returns = ReturnType.SINGLE) - public HorizonDbParameterGroupInner createOrUpdate(String resourceGroupName, String parameterGroupName, - HorizonDbParameterGroupInner resource) { - return beginCreateOrUpdate(resourceGroupName, parameterGroupName, resource).getFinalResult(); + public ParameterGroupInner createOrReplace(String resourceGroupName, String parameterGroupName, + ParameterGroupInner resource) { + return beginCreateOrReplace(resourceGroupName, parameterGroupName, resource).getFinalResult(); } /** - * Creates a new HorizonDB parameter group or updates an existing parameter group. + * Creates a new HorizonDB parameter group or replaces an existing parameter group. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -542,13 +502,17 @@ public HorizonDbParameterGroupInner createOrUpdate(String resourceGroupName, Str * @return represents the HorizonDB parameter group. */ @ServiceMethod(returns = ReturnType.SINGLE) - public HorizonDbParameterGroupInner createOrUpdate(String resourceGroupName, String parameterGroupName, - HorizonDbParameterGroupInner resource, Context context) { - return beginCreateOrUpdate(resourceGroupName, parameterGroupName, resource, context).getFinalResult(); + public ParameterGroupInner createOrReplace(String resourceGroupName, String parameterGroupName, + ParameterGroupInner resource, Context context) { + return beginCreateOrReplace(resourceGroupName, parameterGroupName, resource, context).getFinalResult(); } /** - * Updates an existing HorizonDB parameter group. + * Updates an existing HorizonDB parameter group. Each connected pool's applyMethod setting controls whether dynamic + * parameter changes become effective immediately or remain pending until a customer-initiated pool Restart. Static + * parameter changes always remain pending until a customer-initiated pool Restart. Stop followed by Start and + * scheduled maintenance do not apply pending changes. The operation fails with a conflict while a previous update + * to this parameter group is still being processed. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -561,7 +525,7 @@ public HorizonDbParameterGroupInner createOrUpdate(String resourceGroupName, Str */ @ServiceMethod(returns = ReturnType.SINGLE) public Mono>> updateWithResponseAsync(String resourceGroupName, String parameterGroupName, - HorizonDbParameterGroupForPatchUpdate properties) { + ParameterGroupForPatchUpdate properties) { final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil @@ -572,7 +536,11 @@ public Mono>> updateWithResponseAsync(String resourceG } /** - * Updates an existing HorizonDB parameter group. + * Updates an existing HorizonDB parameter group. Each connected pool's applyMethod setting controls whether dynamic + * parameter changes become effective immediately or remain pending until a customer-initiated pool Restart. Static + * parameter changes always remain pending until a customer-initiated pool Restart. Stop followed by Start and + * scheduled maintenance do not apply pending changes. The operation fails with a conflict while a previous update + * to this parameter group is still being processed. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -584,7 +552,7 @@ public Mono>> updateWithResponseAsync(String resourceG */ @ServiceMethod(returns = ReturnType.SINGLE) private Response updateWithResponse(String resourceGroupName, String parameterGroupName, - HorizonDbParameterGroupForPatchUpdate properties) { + ParameterGroupForPatchUpdate properties) { final String contentType = "application/json"; final String accept = "application/json"; return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), @@ -593,7 +561,11 @@ private Response updateWithResponse(String resourceGroupName, String } /** - * Updates an existing HorizonDB parameter group. + * Updates an existing HorizonDB parameter group. Each connected pool's applyMethod setting controls whether dynamic + * parameter changes become effective immediately or remain pending until a customer-initiated pool Restart. Static + * parameter changes always remain pending until a customer-initiated pool Restart. Stop followed by Start and + * scheduled maintenance do not apply pending changes. The operation fails with a conflict while a previous update + * to this parameter group is still being processed. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -606,7 +578,7 @@ private Response updateWithResponse(String resourceGroupName, String */ @ServiceMethod(returns = ReturnType.SINGLE) private Response updateWithResponse(String resourceGroupName, String parameterGroupName, - HorizonDbParameterGroupForPatchUpdate properties, Context context) { + ParameterGroupForPatchUpdate properties, Context context) { final String contentType = "application/json"; final String accept = "application/json"; return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), @@ -615,7 +587,11 @@ private Response updateWithResponse(String resourceGroupName, String } /** - * Updates an existing HorizonDB parameter group. + * Updates an existing HorizonDB parameter group. Each connected pool's applyMethod setting controls whether dynamic + * parameter changes become effective immediately or remain pending until a customer-initiated pool Restart. Static + * parameter changes always remain pending until a customer-initiated pool Restart. Stop followed by Start and + * scheduled maintenance do not apply pending changes. The operation fails with a conflict while a previous update + * to this parameter group is still being processed. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -626,17 +602,20 @@ private Response updateWithResponse(String resourceGroupName, String * @return the {@link PollerFlux} for polling of represents the HorizonDB parameter group. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public PollerFlux, HorizonDbParameterGroupInner> beginUpdateAsync( - String resourceGroupName, String parameterGroupName, HorizonDbParameterGroupForPatchUpdate properties) { + public PollerFlux, ParameterGroupInner> beginUpdateAsync(String resourceGroupName, + String parameterGroupName, ParameterGroupForPatchUpdate properties) { Mono>> mono = updateWithResponseAsync(resourceGroupName, parameterGroupName, properties); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), HorizonDbParameterGroupInner.class, HorizonDbParameterGroupInner.class, - this.client.getContext()); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), + ParameterGroupInner.class, ParameterGroupInner.class, this.client.getContext()); } /** - * Updates an existing HorizonDB parameter group. + * Updates an existing HorizonDB parameter group. Each connected pool's applyMethod setting controls whether dynamic + * parameter changes become effective immediately or remain pending until a customer-initiated pool Restart. Static + * parameter changes always remain pending until a customer-initiated pool Restart. Stop followed by Start and + * scheduled maintenance do not apply pending changes. The operation fails with a conflict while a previous update + * to this parameter group is still being processed. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -647,15 +626,19 @@ public PollerFlux, HorizonDbParameterGr * @return the {@link SyncPoller} for polling of represents the HorizonDB parameter group. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, HorizonDbParameterGroupInner> beginUpdate( - String resourceGroupName, String parameterGroupName, HorizonDbParameterGroupForPatchUpdate properties) { + public SyncPoller, ParameterGroupInner> beginUpdate(String resourceGroupName, + String parameterGroupName, ParameterGroupForPatchUpdate properties) { Response response = updateWithResponse(resourceGroupName, parameterGroupName, properties); - return this.client.getLroResult(response, - HorizonDbParameterGroupInner.class, HorizonDbParameterGroupInner.class, Context.NONE); + return this.client.getLroResult(response, ParameterGroupInner.class, + ParameterGroupInner.class, Context.NONE); } /** - * Updates an existing HorizonDB parameter group. + * Updates an existing HorizonDB parameter group. Each connected pool's applyMethod setting controls whether dynamic + * parameter changes become effective immediately or remain pending until a customer-initiated pool Restart. Static + * parameter changes always remain pending until a customer-initiated pool Restart. Stop followed by Start and + * scheduled maintenance do not apply pending changes. The operation fails with a conflict while a previous update + * to this parameter group is still being processed. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -667,16 +650,19 @@ public SyncPoller, HorizonDbParameterGr * @return the {@link SyncPoller} for polling of represents the HorizonDB parameter group. */ @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, HorizonDbParameterGroupInner> beginUpdate( - String resourceGroupName, String parameterGroupName, HorizonDbParameterGroupForPatchUpdate properties, - Context context) { + public SyncPoller, ParameterGroupInner> beginUpdate(String resourceGroupName, + String parameterGroupName, ParameterGroupForPatchUpdate properties, Context context) { Response response = updateWithResponse(resourceGroupName, parameterGroupName, properties, context); - return this.client.getLroResult(response, - HorizonDbParameterGroupInner.class, HorizonDbParameterGroupInner.class, context); + return this.client.getLroResult(response, ParameterGroupInner.class, + ParameterGroupInner.class, context); } /** - * Updates an existing HorizonDB parameter group. + * Updates an existing HorizonDB parameter group. Each connected pool's applyMethod setting controls whether dynamic + * parameter changes become effective immediately or remain pending until a customer-initiated pool Restart. Static + * parameter changes always remain pending until a customer-initiated pool Restart. Stop followed by Start and + * scheduled maintenance do not apply pending changes. The operation fails with a conflict while a previous update + * to this parameter group is still being processed. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -687,14 +673,18 @@ public SyncPoller, HorizonDbParameterGr * @return represents the HorizonDB parameter group on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono updateAsync(String resourceGroupName, String parameterGroupName, - HorizonDbParameterGroupForPatchUpdate properties) { + public Mono updateAsync(String resourceGroupName, String parameterGroupName, + ParameterGroupForPatchUpdate properties) { return beginUpdateAsync(resourceGroupName, parameterGroupName, properties).last() .flatMap(this.client::getLroFinalResultOrError); } /** - * Updates an existing HorizonDB parameter group. + * Updates an existing HorizonDB parameter group. Each connected pool's applyMethod setting controls whether dynamic + * parameter changes become effective immediately or remain pending until a customer-initiated pool Restart. Static + * parameter changes always remain pending until a customer-initiated pool Restart. Stop followed by Start and + * scheduled maintenance do not apply pending changes. The operation fails with a conflict while a previous update + * to this parameter group is still being processed. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -705,13 +695,17 @@ public Mono updateAsync(String resourceGroupName, * @return represents the HorizonDB parameter group. */ @ServiceMethod(returns = ReturnType.SINGLE) - public HorizonDbParameterGroupInner update(String resourceGroupName, String parameterGroupName, - HorizonDbParameterGroupForPatchUpdate properties) { + public ParameterGroupInner update(String resourceGroupName, String parameterGroupName, + ParameterGroupForPatchUpdate properties) { return beginUpdate(resourceGroupName, parameterGroupName, properties).getFinalResult(); } /** - * Updates an existing HorizonDB parameter group. + * Updates an existing HorizonDB parameter group. Each connected pool's applyMethod setting controls whether dynamic + * parameter changes become effective immediately or remain pending until a customer-initiated pool Restart. Static + * parameter changes always remain pending until a customer-initiated pool Restart. Stop followed by Start and + * scheduled maintenance do not apply pending changes. The operation fails with a conflict while a previous update + * to this parameter group is still being processed. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -723,13 +717,14 @@ public HorizonDbParameterGroupInner update(String resourceGroupName, String para * @return represents the HorizonDB parameter group. */ @ServiceMethod(returns = ReturnType.SINGLE) - public HorizonDbParameterGroupInner update(String resourceGroupName, String parameterGroupName, - HorizonDbParameterGroupForPatchUpdate properties, Context context) { + public ParameterGroupInner update(String resourceGroupName, String parameterGroupName, + ParameterGroupForPatchUpdate properties, Context context) { return beginUpdate(resourceGroupName, parameterGroupName, properties, context).getFinalResult(); } /** - * Deletes a HorizonDB parameter group. + * Deletes a HorizonDB parameter group. Deletion fails with a conflict when the parameter group is associated with + * one or more pools. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -748,7 +743,8 @@ public Mono>> deleteWithResponseAsync(String resourceG } /** - * Deletes a HorizonDB parameter group. + * Deletes a HorizonDB parameter group. Deletion fails with a conflict when the parameter group is associated with + * one or more pools. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -764,7 +760,8 @@ private Response deleteWithResponse(String resourceGroupName, String } /** - * Deletes a HorizonDB parameter group. + * Deletes a HorizonDB parameter group. Deletion fails with a conflict when the parameter group is associated with + * one or more pools. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -782,7 +779,8 @@ private Response deleteWithResponse(String resourceGroupName, String } /** - * Deletes a HorizonDB parameter group. + * Deletes a HorizonDB parameter group. Deletion fails with a conflict when the parameter group is associated with + * one or more pools. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -799,7 +797,8 @@ public PollerFlux, Void> beginDeleteAsync(String resourceGroupN } /** - * Deletes a HorizonDB parameter group. + * Deletes a HorizonDB parameter group. Deletion fails with a conflict when the parameter group is associated with + * one or more pools. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -815,7 +814,8 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * Deletes a HorizonDB parameter group. + * Deletes a HorizonDB parameter group. Deletion fails with a conflict when the parameter group is associated with + * one or more pools. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -833,7 +833,8 @@ public SyncPoller, Void> beginDelete(String resourceGroupName, } /** - * Deletes a HorizonDB parameter group. + * Deletes a HorizonDB parameter group. Deletion fails with a conflict when the parameter group is associated with + * one or more pools. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -849,7 +850,8 @@ public Mono deleteAsync(String resourceGroupName, String parameterGroupNam } /** - * Deletes a HorizonDB parameter group. + * Deletes a HorizonDB parameter group. Deletion fails with a conflict when the parameter group is associated with + * one or more pools. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -863,7 +865,8 @@ public void delete(String resourceGroupName, String parameterGroupName) { } /** - * Deletes a HorizonDB parameter group. + * Deletes a HorizonDB parameter group. Deletion fails with a conflict when the parameter group is associated with + * one or more pools. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -884,17 +887,16 @@ public void delete(String resourceGroupName, String parameterGroupName, Context * @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 of a HorizonDbParameterGroup list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a ParameterGroup list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByResourceGroupSinglePageAsync(String resourceGroupName) { + private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { final String accept = "application/json"; return FluxUtil .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -906,10 +908,10 @@ public void delete(String resourceGroupName, String parameterGroupName, Context * @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 of a HorizonDbParameterGroup list operation as paginated response with {@link PagedFlux}. + * @return the response of a ParameterGroup list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listByResourceGroupAsync(String resourceGroupName) { + public PagedFlux listByResourceGroupAsync(String resourceGroupName) { return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); } @@ -921,12 +923,12 @@ public PagedFlux listByResourceGroupAsync(String r * @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 of a HorizonDbParameterGroup list operation along with {@link PagedResponse}. + * @return the response of a ParameterGroup list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByResourceGroupSinglePage(String resourceGroupName) { + private PagedResponse listByResourceGroupSinglePage(String resourceGroupName) { final String accept = "application/json"; - Response res = service.listByResourceGroupSync(this.client.getEndpoint(), + Response res = service.listByResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); @@ -940,13 +942,13 @@ private PagedResponse listByResourceGroupSinglePag * @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 of a HorizonDbParameterGroup list operation along with {@link PagedResponse}. + * @return the response of a ParameterGroup list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByResourceGroupSinglePage(String resourceGroupName, + private PagedResponse listByResourceGroupSinglePage(String resourceGroupName, Context context) { final String accept = "application/json"; - Response res = service.listByResourceGroupSync(this.client.getEndpoint(), + Response res = service.listByResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); @@ -959,11 +961,10 @@ private PagedResponse listByResourceGroupSinglePag * @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 of a HorizonDbParameterGroup list operation as paginated response with - * {@link PagedIterable}. + * @return the response of a ParameterGroup list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName) { + public PagedIterable listByResourceGroup(String resourceGroupName) { return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName), nextLink -> listByResourceGroupNextSinglePage(nextLink)); } @@ -976,11 +977,10 @@ public PagedIterable listByResourceGroup(String re * @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 of a HorizonDbParameterGroup list operation as paginated response with - * {@link PagedIterable}. + * @return the response of a ParameterGroup list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName, context), nextLink -> listByResourceGroupNextSinglePage(nextLink, context)); } @@ -990,16 +990,16 @@ public PagedIterable listByResourceGroup(String re * * @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 of a HorizonDbParameterGroup list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a ParameterGroup list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { + private Mono> listSinglePageAsync() { final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1009,10 +1009,10 @@ private Mono> listSinglePageAsync() * * @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 of a HorizonDbParameterGroup list operation as paginated response with {@link PagedFlux}. + * @return the response of a ParameterGroup list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync() { + public PagedFlux listAsync() { return new PagedFlux<>(() -> listSinglePageAsync(), nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); } @@ -1022,12 +1022,12 @@ public PagedFlux listAsync() { * * @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 of a HorizonDbParameterGroup list operation along with {@link PagedResponse}. + * @return the response of a ParameterGroup list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage() { + private PagedResponse listSinglePage() { final String accept = "application/json"; - Response res = service.listSync(this.client.getEndpoint(), + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), accept, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); @@ -1040,12 +1040,12 @@ private PagedResponse listSinglePage() { * @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 of a HorizonDbParameterGroup list operation along with {@link PagedResponse}. + * @return the response of a ParameterGroup list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(Context context) { + private PagedResponse listSinglePage(Context context) { final String accept = "application/json"; - Response res = service.listSync(this.client.getEndpoint(), + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); @@ -1056,11 +1056,10 @@ private PagedResponse listSinglePage(Context conte * * @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 of a HorizonDbParameterGroup list operation as paginated response with - * {@link PagedIterable}. + * @return the response of a ParameterGroup list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { + public PagedIterable list() { return new PagedIterable<>(() -> listSinglePage(), nextLink -> listBySubscriptionNextSinglePage(nextLink)); } @@ -1071,11 +1070,10 @@ public PagedIterable list() { * @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 of a HorizonDbParameterGroup list operation as paginated response with - * {@link PagedIterable}. + * @return the response of a ParameterGroup list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { + public PagedIterable list(Context context) { return new PagedIterable<>(() -> listSinglePage(context), nextLink -> listBySubscriptionNextSinglePage(nextLink, context)); } @@ -1092,13 +1090,13 @@ public PagedIterable list(Context context) { * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> + private Mono> listConnectionsSinglePageAsync(String resourceGroupName, String parameterGroupName) { final String accept = "application/json"; return FluxUtil .withContext(context -> service.listConnections(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, parameterGroupName, accept, context)) - .>map( + .>map( res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1115,7 +1113,7 @@ public PagedIterable list(Context context) { * @return all connections to a parameter group as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listConnectionsAsync(String resourceGroupName, + public PagedFlux listConnectionsAsync(String resourceGroupName, String parameterGroupName) { return new PagedFlux<>(() -> listConnectionsSinglePageAsync(resourceGroupName, parameterGroupName), nextLink -> listConnectionsNextSinglePageAsync(nextLink)); @@ -1132,10 +1130,10 @@ public PagedFlux listConnectio * @return all connections to a parameter group along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse - listConnectionsSinglePage(String resourceGroupName, String parameterGroupName) { + private PagedResponse listConnectionsSinglePage(String resourceGroupName, + String parameterGroupName) { final String accept = "application/json"; - Response res + Response res = service.listConnectionsSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, parameterGroupName, accept, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), @@ -1154,10 +1152,10 @@ public PagedFlux listConnectio * @return all connections to a parameter group along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse - listConnectionsSinglePage(String resourceGroupName, String parameterGroupName, Context context) { + private PagedResponse listConnectionsSinglePage(String resourceGroupName, + String parameterGroupName, Context context) { final String accept = "application/json"; - Response res + Response res = service.listConnectionsSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, parameterGroupName, accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), @@ -1175,7 +1173,7 @@ public PagedFlux listConnectio * @return all connections to a parameter group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listConnections(String resourceGroupName, + public PagedIterable listConnections(String resourceGroupName, String parameterGroupName) { return new PagedIterable<>(() -> listConnectionsSinglePage(resourceGroupName, parameterGroupName), nextLink -> listConnectionsNextSinglePage(nextLink)); @@ -1193,157 +1191,12 @@ public PagedIterable listConne * @return all connections to a parameter group as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listConnections(String resourceGroupName, + public PagedIterable listConnections(String resourceGroupName, String parameterGroupName, Context context) { return new PagedIterable<>(() -> listConnectionsSinglePage(resourceGroupName, parameterGroupName, context), nextLink -> listConnectionsNextSinglePage(nextLink, context)); } - /** - * Lists parameter groups filtered by version number. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameterGroupName The name of the HorizonDB parameter group. - * @param version The version number to filter by. - * @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 of a HorizonDbParameterGroup list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listVersionsSinglePageAsync(String resourceGroupName, - String parameterGroupName, Integer version) { - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listVersions(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, parameterGroupName, version, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Lists parameter groups filtered by version number. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameterGroupName The name of the HorizonDB parameter group. - * @param version The version number to filter by. - * @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 of a HorizonDbParameterGroup list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listVersionsAsync(String resourceGroupName, - String parameterGroupName, Integer version) { - return new PagedFlux<>(() -> listVersionsSinglePageAsync(resourceGroupName, parameterGroupName, version), - nextLink -> listVersionsNextSinglePageAsync(nextLink)); - } - - /** - * Lists parameter groups filtered by version number. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameterGroupName The name of the HorizonDB parameter group. - * @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 of a HorizonDbParameterGroup list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listVersionsAsync(String resourceGroupName, - String parameterGroupName) { - final Integer version = null; - return new PagedFlux<>(() -> listVersionsSinglePageAsync(resourceGroupName, parameterGroupName, version), - nextLink -> listVersionsNextSinglePageAsync(nextLink)); - } - - /** - * Lists parameter groups filtered by version number. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameterGroupName The name of the HorizonDB parameter group. - * @param version The version number to filter by. - * @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 of a HorizonDbParameterGroup list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listVersionsSinglePage(String resourceGroupName, - String parameterGroupName, Integer version) { - final String accept = "application/json"; - Response res - = service.listVersionsSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, parameterGroupName, version, accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * Lists parameter groups filtered by version number. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameterGroupName The name of the HorizonDB parameter group. - * @param version The version number to filter by. - * @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 of a HorizonDbParameterGroup list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listVersionsSinglePage(String resourceGroupName, - String parameterGroupName, Integer version, Context context) { - final String accept = "application/json"; - Response res - = service.listVersionsSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, parameterGroupName, version, accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * Lists parameter groups filtered by version number. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameterGroupName The name of the HorizonDB parameter group. - * @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 of a HorizonDbParameterGroup list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listVersions(String resourceGroupName, - String parameterGroupName) { - final Integer version = null; - return new PagedIterable<>(() -> listVersionsSinglePage(resourceGroupName, parameterGroupName, version), - nextLink -> listVersionsNextSinglePage(nextLink)); - } - - /** - * Lists parameter groups filtered by version number. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameterGroupName The name of the HorizonDB parameter group. - * @param version The version number to filter by. - * @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 of a HorizonDbParameterGroup list operation as paginated response with - * {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listVersions(String resourceGroupName, String parameterGroupName, - Integer version, Context context) { - return new PagedIterable<>( - () -> listVersionsSinglePage(resourceGroupName, parameterGroupName, version, context), - nextLink -> listVersionsNextSinglePage(nextLink, context)); - } - /** * Get the next page of items. * @@ -1351,16 +1204,16 @@ public PagedIterable listVersions(String resourceG * @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 of a HorizonDbParameterGroup list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a ParameterGroup list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { + private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { final String accept = "application/json"; return FluxUtil .withContext( context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1372,12 +1225,12 @@ private Mono> listByResourceGroupNex * @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 of a HorizonDbParameterGroup list operation along with {@link PagedResponse}. + * @return the response of a ParameterGroup list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByResourceGroupNextSinglePage(String nextLink) { + private PagedResponse listByResourceGroupNextSinglePage(String nextLink) { final String accept = "application/json"; - Response res + Response res = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); @@ -1391,13 +1244,12 @@ private PagedResponse listByResourceGroupNextSingl * @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 of a HorizonDbParameterGroup list operation along with {@link PagedResponse}. + * @return the response of a ParameterGroup list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByResourceGroupNextSinglePage(String nextLink, - Context context) { + private PagedResponse listByResourceGroupNextSinglePage(String nextLink, Context context) { final String accept = "application/json"; - Response res + Response res = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); @@ -1410,16 +1262,16 @@ private PagedResponse listByResourceGroupNextSingl * @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 of a HorizonDbParameterGroup list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. + * @return the response of a ParameterGroup list operation along with {@link PagedResponse} on successful completion + * of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { + private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { final String accept = "application/json"; return FluxUtil .withContext( context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -1431,12 +1283,12 @@ private Mono> listBySubscriptionNext * @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 of a HorizonDbParameterGroup list operation along with {@link PagedResponse}. + * @return the response of a ParameterGroup list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listBySubscriptionNextSinglePage(String nextLink) { + private PagedResponse listBySubscriptionNextSinglePage(String nextLink) { final String accept = "application/json"; - Response res + Response res = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); @@ -1450,13 +1302,12 @@ private PagedResponse listBySubscriptionNextSingle * @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 of a HorizonDbParameterGroup list operation along with {@link PagedResponse}. + * @return the response of a ParameterGroup list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listBySubscriptionNextSinglePage(String nextLink, - Context context) { + private PagedResponse listBySubscriptionNextSinglePage(String nextLink, Context context) { final String accept = "application/json"; - Response res + Response res = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); @@ -1473,12 +1324,12 @@ private PagedResponse listBySubscriptionNextSingle * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> + private Mono> listConnectionsNextSinglePageAsync(String nextLink) { final String accept = "application/json"; return FluxUtil .withContext(context -> service.listConnectionsNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map( + .>map( res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); @@ -1494,10 +1345,9 @@ private PagedResponse listBySubscriptionNextSingle * @return all connections to a parameter group along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse - listConnectionsNextSinglePage(String nextLink) { + private PagedResponse listConnectionsNextSinglePage(String nextLink) { final String accept = "application/json"; - Response res + Response res = service.listConnectionsNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); @@ -1514,69 +1364,12 @@ private PagedResponse listBySubscriptionNextSingle * @return all connections to a parameter group along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse - listConnectionsNextSinglePage(String nextLink, Context context) { + private PagedResponse listConnectionsNextSinglePage(String nextLink, + Context context) { final String accept = "application/json"; - Response res + Response res = service.listConnectionsNextSync(nextLink, this.client.getEndpoint(), accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 of a HorizonDbParameterGroup list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listVersionsNextSinglePageAsync(String nextLink) { - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listVersionsNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 of a HorizonDbParameterGroup list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listVersionsNextSinglePage(String nextLink) { - final String accept = "application/json"; - Response res - = service.listVersionsNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 of a HorizonDbParameterGroup list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listVersionsNextSinglePage(String nextLink, Context context) { - final String accept = "application/json"; - Response res - = service.listVersionsNextSync(nextLink, this.client.getEndpoint(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbParameterGroupsImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ParameterGroupsImpl.java similarity index 56% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbParameterGroupsImpl.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ParameterGroupsImpl.java index d2842ae1b4757..c1816339e2b73 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbParameterGroupsImpl.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/ParameterGroupsImpl.java @@ -9,39 +9,38 @@ import com.azure.core.http.rest.SimpleResponse; import com.azure.core.util.Context; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.horizondb.fluent.HorizonDbParameterGroupsClient; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbParameterGroupConnectionPropertiesInner; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbParameterGroupInner; -import com.azure.resourcemanager.horizondb.models.HorizonDbParameterGroup; -import com.azure.resourcemanager.horizondb.models.HorizonDbParameterGroupConnectionProperties; -import com.azure.resourcemanager.horizondb.models.HorizonDbParameterGroups; +import com.azure.resourcemanager.horizondb.fluent.ParameterGroupsClient; +import com.azure.resourcemanager.horizondb.fluent.models.ParameterGroupConnectionPropertiesInner; +import com.azure.resourcemanager.horizondb.fluent.models.ParameterGroupInner; +import com.azure.resourcemanager.horizondb.models.ParameterGroup; +import com.azure.resourcemanager.horizondb.models.ParameterGroupConnectionProperties; +import com.azure.resourcemanager.horizondb.models.ParameterGroups; -public final class HorizonDbParameterGroupsImpl implements HorizonDbParameterGroups { - private static final ClientLogger LOGGER = new ClientLogger(HorizonDbParameterGroupsImpl.class); +public final class ParameterGroupsImpl implements ParameterGroups { + private static final ClientLogger LOGGER = new ClientLogger(ParameterGroupsImpl.class); - private final HorizonDbParameterGroupsClient innerClient; + private final ParameterGroupsClient innerClient; private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; - public HorizonDbParameterGroupsImpl(HorizonDbParameterGroupsClient innerClient, + public ParameterGroupsImpl(ParameterGroupsClient innerClient, com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response getByResourceGroupWithResponse(String resourceGroupName, - String parameterGroupName, Context context) { - Response inner + public Response getByResourceGroupWithResponse(String resourceGroupName, String parameterGroupName, + Context context) { + Response inner = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, parameterGroupName, context); return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new HorizonDbParameterGroupImpl(inner.getValue(), this.manager())); + new ParameterGroupImpl(inner.getValue(), this.manager())); } - public HorizonDbParameterGroup getByResourceGroup(String resourceGroupName, String parameterGroupName) { - HorizonDbParameterGroupInner inner - = this.serviceClient().getByResourceGroup(resourceGroupName, parameterGroupName); + public ParameterGroup getByResourceGroup(String resourceGroupName, String parameterGroupName) { + ParameterGroupInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, parameterGroupName); if (inner != null) { - return new HorizonDbParameterGroupImpl(inner, this.manager()); + return new ParameterGroupImpl(inner, this.manager()); } else { return null; } @@ -55,57 +54,43 @@ public void delete(String resourceGroupName, String parameterGroupName, Context this.serviceClient().delete(resourceGroupName, parameterGroupName, context); } - public PagedIterable listByResourceGroup(String resourceGroupName) { - PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new HorizonDbParameterGroupImpl(inner1, this.manager())); + public PagedIterable listByResourceGroup(String resourceGroupName) { + PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ParameterGroupImpl(inner1, this.manager())); } - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - PagedIterable inner - = this.serviceClient().listByResourceGroup(resourceGroupName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new HorizonDbParameterGroupImpl(inner1, this.manager())); + public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { + PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ParameterGroupImpl(inner1, this.manager())); } - public PagedIterable list() { - PagedIterable inner = this.serviceClient().list(); - return ResourceManagerUtils.mapPage(inner, inner1 -> new HorizonDbParameterGroupImpl(inner1, this.manager())); + public PagedIterable list() { + PagedIterable inner = this.serviceClient().list(); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ParameterGroupImpl(inner1, this.manager())); } - public PagedIterable list(Context context) { - PagedIterable inner = this.serviceClient().list(context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new HorizonDbParameterGroupImpl(inner1, this.manager())); + public PagedIterable list(Context context) { + PagedIterable inner = this.serviceClient().list(context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new ParameterGroupImpl(inner1, this.manager())); } - public PagedIterable listConnections(String resourceGroupName, + public PagedIterable listConnections(String resourceGroupName, String parameterGroupName) { - PagedIterable inner + PagedIterable inner = this.serviceClient().listConnections(resourceGroupName, parameterGroupName); return ResourceManagerUtils.mapPage(inner, - inner1 -> new HorizonDbParameterGroupConnectionPropertiesImpl(inner1, this.manager())); + inner1 -> new ParameterGroupConnectionPropertiesImpl(inner1, this.manager())); } - public PagedIterable listConnections(String resourceGroupName, + public PagedIterable listConnections(String resourceGroupName, String parameterGroupName, Context context) { - PagedIterable inner + PagedIterable inner = this.serviceClient().listConnections(resourceGroupName, parameterGroupName, context); return ResourceManagerUtils.mapPage(inner, - inner1 -> new HorizonDbParameterGroupConnectionPropertiesImpl(inner1, this.manager())); - } - - public PagedIterable listVersions(String resourceGroupName, String parameterGroupName) { - PagedIterable inner - = this.serviceClient().listVersions(resourceGroupName, parameterGroupName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new HorizonDbParameterGroupImpl(inner1, this.manager())); - } - - public PagedIterable listVersions(String resourceGroupName, String parameterGroupName, - Integer version, Context context) { - PagedIterable inner - = this.serviceClient().listVersions(resourceGroupName, parameterGroupName, version, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new HorizonDbParameterGroupImpl(inner1, this.manager())); + inner1 -> new ParameterGroupConnectionPropertiesImpl(inner1, this.manager())); } - public HorizonDbParameterGroup getById(String id) { + public ParameterGroup getById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -119,7 +104,7 @@ public HorizonDbParameterGroup getById(String id) { return this.getByResourceGroupWithResponse(resourceGroupName, parameterGroupName, Context.NONE).getValue(); } - public Response getByIdWithResponse(String id, Context context) { + public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -161,7 +146,7 @@ public void deleteByIdWithResponse(String id, Context context) { this.delete(resourceGroupName, parameterGroupName, context); } - private HorizonDbParameterGroupsClient serviceClient() { + private ParameterGroupsClient serviceClient() { return this.innerClient; } @@ -169,7 +154,7 @@ private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { return this.serviceManager; } - public HorizonDbParameterGroupImpl define(String name) { - return new HorizonDbParameterGroupImpl(name, this.manager()); + public ParameterGroupImpl define(String name) { + return new ParameterGroupImpl(name, this.manager()); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PasswordAuthenticationImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PasswordAuthenticationImpl.java new file mode 100644 index 0000000000000..4ad97b87e3970 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PasswordAuthenticationImpl.java @@ -0,0 +1,50 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.horizondb.fluent.models.PasswordAuthenticationInner; +import com.azure.resourcemanager.horizondb.models.PasswordAuthentication; +import com.azure.resourcemanager.horizondb.models.PasswordAuthenticationProperties; + +public final class PasswordAuthenticationImpl implements PasswordAuthentication { + private PasswordAuthenticationInner innerObject; + + private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; + + PasswordAuthenticationImpl(PasswordAuthenticationInner innerObject, + com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public PasswordAuthenticationProperties properties() { + return this.innerModel().properties(); + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public PasswordAuthenticationInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PasswordAuthenticationsClientImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PasswordAuthenticationsClientImpl.java new file mode 100644 index 0000000000000..ec0ba1b924cdb --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PasswordAuthenticationsClientImpl.java @@ -0,0 +1,608 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.BinaryData; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.horizondb.fluent.PasswordAuthenticationsClient; +import com.azure.resourcemanager.horizondb.fluent.models.PasswordAuthenticationInner; +import com.azure.resourcemanager.horizondb.models.PasswordAuthenticationForPatchUpdate; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in PasswordAuthenticationsClient. + */ +public final class PasswordAuthenticationsClientImpl implements PasswordAuthenticationsClient { + /** + * The proxy service used to perform REST calls. + */ + private final PasswordAuthenticationsService service; + + /** + * The service client containing this operation class. + */ + private final HorizonDbManagementClientImpl client; + + /** + * Initializes an instance of PasswordAuthenticationsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + PasswordAuthenticationsClientImpl(HorizonDbManagementClientImpl client) { + this.service = RestProxy.create(PasswordAuthenticationsService.class, client.getHttpPipeline(), + client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for HorizonDbManagementClientPasswordAuthentications to be used by the + * proxy service to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "HorizonDbManagementClientPasswordAuthentications") + public interface PasswordAuthenticationsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/authentications/passwordMethod") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/authentications/passwordMethod") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @HeaderParam("Accept") String accept, Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/authentications/passwordMethod") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createOrReplace(@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") PasswordAuthenticationInner resource, Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/authentications/passwordMethod") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response createOrReplaceSync(@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") PasswordAuthenticationInner resource, Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/authentications/passwordMethod") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + 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") PasswordAuthenticationForPatchUpdate properties, Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/authentications/passwordMethod") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response updateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, + @BodyParam("application/json") PasswordAuthenticationForPatchUpdate properties, Context context); + } + + /** + * Gets the service-created PostgreSQL username-and-password authentication method. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created PostgreSQL username-and-password authentication method along with {@link Response} on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getWithResponseAsync(String resourceGroupName, + String clusterName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets the service-created PostgreSQL username-and-password authentication method. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created PostgreSQL username-and-password authentication method on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, String clusterName) { + return getWithResponseAsync(resourceGroupName, clusterName).flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets the service-created PostgreSQL username-and-password authentication method. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created PostgreSQL username-and-password authentication method along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String clusterName, + Context context) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, clusterName, accept, context); + } + + /** + * Gets the service-created PostgreSQL username-and-password authentication method. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created PostgreSQL username-and-password authentication method. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public PasswordAuthenticationInner get(String resourceGroupName, String clusterName) { + return getWithResponse(resourceGroupName, clusterName, Context.NONE).getValue(); + } + + /** + * Creates or replaces the service-created PostgreSQL username-and-password authentication method. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param resource Resource create parameters. + * @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 service-created PostgreSQL username-and-password authentication method for a HorizonDB cluster along + * with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> createOrReplaceWithResponseAsync(String resourceGroupName, + String clusterName, PasswordAuthenticationInner resource) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrReplace(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, contentType, accept, resource, + context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Creates or replaces the service-created PostgreSQL username-and-password authentication method. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param resource Resource create parameters. + * @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 service-created PostgreSQL username-and-password authentication method for a HorizonDB cluster along + * with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrReplaceWithResponse(String resourceGroupName, String clusterName, + PasswordAuthenticationInner resource) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrReplaceSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, contentType, accept, resource, + Context.NONE); + } + + /** + * Creates or replaces the service-created PostgreSQL username-and-password authentication method. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param resource Resource create parameters. + * @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 service-created PostgreSQL username-and-password authentication method for a HorizonDB cluster along + * with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrReplaceWithResponse(String resourceGroupName, String clusterName, + PasswordAuthenticationInner resource, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrReplaceSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, contentType, accept, resource, context); + } + + /** + * Creates or replaces the service-created PostgreSQL username-and-password authentication method. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param resource Resource create parameters. + * @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 service-created PostgreSQL username-and-password authentication + * method for a HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, PasswordAuthenticationInner> + beginCreateOrReplaceAsync(String resourceGroupName, String clusterName, PasswordAuthenticationInner resource) { + Mono>> mono + = createOrReplaceWithResponseAsync(resourceGroupName, clusterName, resource); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), PasswordAuthenticationInner.class, PasswordAuthenticationInner.class, + this.client.getContext()); + } + + /** + * Creates or replaces the service-created PostgreSQL username-and-password authentication method. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param resource Resource create parameters. + * @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 service-created PostgreSQL username-and-password authentication + * method for a HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, PasswordAuthenticationInner> + beginCreateOrReplace(String resourceGroupName, String clusterName, PasswordAuthenticationInner resource) { + Response response = createOrReplaceWithResponse(resourceGroupName, clusterName, resource); + return this.client.getLroResult(response, + PasswordAuthenticationInner.class, PasswordAuthenticationInner.class, Context.NONE); + } + + /** + * Creates or replaces the service-created PostgreSQL username-and-password authentication method. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param resource Resource create parameters. + * @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 service-created PostgreSQL username-and-password authentication + * method for a HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, PasswordAuthenticationInner> beginCreateOrReplace( + String resourceGroupName, String clusterName, PasswordAuthenticationInner resource, Context context) { + Response response = createOrReplaceWithResponse(resourceGroupName, clusterName, resource, context); + return this.client.getLroResult(response, + PasswordAuthenticationInner.class, PasswordAuthenticationInner.class, context); + } + + /** + * Creates or replaces the service-created PostgreSQL username-and-password authentication method. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param resource Resource create parameters. + * @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 service-created PostgreSQL username-and-password authentication method for a HorizonDB cluster on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrReplaceAsync(String resourceGroupName, String clusterName, + PasswordAuthenticationInner resource) { + return beginCreateOrReplaceAsync(resourceGroupName, clusterName, resource).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates or replaces the service-created PostgreSQL username-and-password authentication method. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param resource Resource create parameters. + * @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 service-created PostgreSQL username-and-password authentication method for a HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public PasswordAuthenticationInner createOrReplace(String resourceGroupName, String clusterName, + PasswordAuthenticationInner resource) { + return beginCreateOrReplace(resourceGroupName, clusterName, resource).getFinalResult(); + } + + /** + * Creates or replaces the service-created PostgreSQL username-and-password authentication method. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param resource Resource create parameters. + * @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 service-created PostgreSQL username-and-password authentication method for a HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public PasswordAuthenticationInner createOrReplace(String resourceGroupName, String clusterName, + PasswordAuthenticationInner resource, Context context) { + return beginCreateOrReplace(resourceGroupName, clusterName, resource, context).getFinalResult(); + } + + /** + * Updates the service-created PostgreSQL username-and-password authentication method. The request is sparse and + * omitted properties preserve their current values. This API version supports enabling the method, disabling the + * method, and resetting its password. For a cluster that already has an administrator but currently has password + * authentication disabled, state Enabled and administratorLoginPassword can be supplied together to re-enable + * password authentication and reset the password. Disabling cannot include credentials and does not remove or + * modify existing database users or roles. Administrator rename is not supported in this API version. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created PostgreSQL username-and-password authentication method for a HorizonDB cluster along + * with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> updateWithResponseAsync(String resourceGroupName, String clusterName, + PasswordAuthenticationForPatchUpdate properties) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, contentType, accept, properties, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Updates the service-created PostgreSQL username-and-password authentication method. The request is sparse and + * omitted properties preserve their current values. This API version supports enabling the method, disabling the + * method, and resetting its password. For a cluster that already has an administrator but currently has password + * authentication disabled, state Enabled and administratorLoginPassword can be supplied together to re-enable + * password authentication and reset the password. Disabling cannot include credentials and does not remove or + * modify existing database users or roles. Administrator rename is not supported in this API version. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created PostgreSQL username-and-password authentication method for a HorizonDB cluster along + * with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response updateWithResponse(String resourceGroupName, String clusterName, + PasswordAuthenticationForPatchUpdate properties) { + 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, properties, + Context.NONE); + } + + /** + * Updates the service-created PostgreSQL username-and-password authentication method. The request is sparse and + * omitted properties preserve their current values. This API version supports enabling the method, disabling the + * method, and resetting its password. For a cluster that already has an administrator but currently has password + * authentication disabled, state Enabled and administratorLoginPassword can be supplied together to re-enable + * password authentication and reset the password. Disabling cannot include credentials and does not remove or + * modify existing database users or roles. Administrator rename is not supported in this API version. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created PostgreSQL username-and-password authentication method for a HorizonDB cluster along + * with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response updateWithResponse(String resourceGroupName, String clusterName, + PasswordAuthenticationForPatchUpdate properties, Context context) { + 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, properties, context); + } + + /** + * Updates the service-created PostgreSQL username-and-password authentication method. The request is sparse and + * omitted properties preserve their current values. This API version supports enabling the method, disabling the + * method, and resetting its password. For a cluster that already has an administrator but currently has password + * authentication disabled, state Enabled and administratorLoginPassword can be supplied together to re-enable + * password authentication and reset the password. Disabling cannot include credentials and does not remove or + * modify existing database users or roles. Administrator rename is not supported in this API version. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of the service-created PostgreSQL username-and-password authentication + * method for a HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, PasswordAuthenticationInner> beginUpdateAsync( + String resourceGroupName, String clusterName, PasswordAuthenticationForPatchUpdate properties) { + Mono>> mono = updateWithResponseAsync(resourceGroupName, clusterName, properties); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), PasswordAuthenticationInner.class, PasswordAuthenticationInner.class, + this.client.getContext()); + } + + /** + * Updates the service-created PostgreSQL username-and-password authentication method. The request is sparse and + * omitted properties preserve their current values. This API version supports enabling the method, disabling the + * method, and resetting its password. For a cluster that already has an administrator but currently has password + * authentication disabled, state Enabled and administratorLoginPassword can be supplied together to re-enable + * password authentication and reset the password. Disabling cannot include credentials and does not remove or + * modify existing database users or roles. Administrator rename is not supported in this API version. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the service-created PostgreSQL username-and-password authentication + * method for a HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, PasswordAuthenticationInner> + beginUpdate(String resourceGroupName, String clusterName, PasswordAuthenticationForPatchUpdate properties) { + Response response = updateWithResponse(resourceGroupName, clusterName, properties); + return this.client.getLroResult(response, + PasswordAuthenticationInner.class, PasswordAuthenticationInner.class, Context.NONE); + } + + /** + * Updates the service-created PostgreSQL username-and-password authentication method. The request is sparse and + * omitted properties preserve their current values. This API version supports enabling the method, disabling the + * method, and resetting its password. For a cluster that already has an administrator but currently has password + * authentication disabled, state Enabled and administratorLoginPassword can be supplied together to re-enable + * password authentication and reset the password. Disabling cannot include credentials and does not remove or + * modify existing database users or roles. Administrator rename is not supported in this API version. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of the service-created PostgreSQL username-and-password authentication + * method for a HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, PasswordAuthenticationInner> beginUpdate( + String resourceGroupName, String clusterName, PasswordAuthenticationForPatchUpdate properties, + Context context) { + Response response = updateWithResponse(resourceGroupName, clusterName, properties, context); + return this.client.getLroResult(response, + PasswordAuthenticationInner.class, PasswordAuthenticationInner.class, context); + } + + /** + * Updates the service-created PostgreSQL username-and-password authentication method. The request is sparse and + * omitted properties preserve their current values. This API version supports enabling the method, disabling the + * method, and resetting its password. For a cluster that already has an administrator but currently has password + * authentication disabled, state Enabled and administratorLoginPassword can be supplied together to re-enable + * password authentication and reset the password. Disabling cannot include credentials and does not remove or + * modify existing database users or roles. Administrator rename is not supported in this API version. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created PostgreSQL username-and-password authentication method for a HorizonDB cluster on + * successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono updateAsync(String resourceGroupName, String clusterName, + PasswordAuthenticationForPatchUpdate properties) { + return beginUpdateAsync(resourceGroupName, clusterName, properties).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Updates the service-created PostgreSQL username-and-password authentication method. The request is sparse and + * omitted properties preserve their current values. This API version supports enabling the method, disabling the + * method, and resetting its password. For a cluster that already has an administrator but currently has password + * authentication disabled, state Enabled and administratorLoginPassword can be supplied together to re-enable + * password authentication and reset the password. Disabling cannot include credentials and does not remove or + * modify existing database users or roles. Administrator rename is not supported in this API version. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created PostgreSQL username-and-password authentication method for a HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public PasswordAuthenticationInner update(String resourceGroupName, String clusterName, + PasswordAuthenticationForPatchUpdate properties) { + return beginUpdate(resourceGroupName, clusterName, properties).getFinalResult(); + } + + /** + * Updates the service-created PostgreSQL username-and-password authentication method. The request is sparse and + * omitted properties preserve their current values. This API version supports enabling the method, disabling the + * method, and resetting its password. For a cluster that already has an administrator but currently has password + * authentication disabled, state Enabled and administratorLoginPassword can be supplied together to re-enable + * password authentication and reset the password. Disabling cannot include credentials and does not remove or + * modify existing database users or roles. Administrator rename is not supported in this API version. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created PostgreSQL username-and-password authentication method for a HorizonDB cluster. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public PasswordAuthenticationInner update(String resourceGroupName, String clusterName, + PasswordAuthenticationForPatchUpdate properties, Context context) { + return beginUpdate(resourceGroupName, clusterName, properties, context).getFinalResult(); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PasswordAuthenticationsImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PasswordAuthenticationsImpl.java new file mode 100644 index 0000000000000..0534c2b7a7bc6 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PasswordAuthenticationsImpl.java @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.horizondb.fluent.PasswordAuthenticationsClient; +import com.azure.resourcemanager.horizondb.fluent.models.PasswordAuthenticationInner; +import com.azure.resourcemanager.horizondb.models.PasswordAuthentication; +import com.azure.resourcemanager.horizondb.models.PasswordAuthenticationForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.PasswordAuthentications; + +public final class PasswordAuthenticationsImpl implements PasswordAuthentications { + private static final ClientLogger LOGGER = new ClientLogger(PasswordAuthenticationsImpl.class); + + private final PasswordAuthenticationsClient innerClient; + + private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; + + public PasswordAuthenticationsImpl(PasswordAuthenticationsClient innerClient, + com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String resourceGroupName, String clusterName, + Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, clusterName, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new PasswordAuthenticationImpl(inner.getValue(), this.manager())); + } + + public PasswordAuthentication get(String resourceGroupName, String clusterName) { + PasswordAuthenticationInner inner = this.serviceClient().get(resourceGroupName, clusterName); + if (inner != null) { + return new PasswordAuthenticationImpl(inner, this.manager()); + } else { + return null; + } + } + + public PasswordAuthentication createOrReplace(String resourceGroupName, String clusterName, + PasswordAuthenticationInner resource) { + PasswordAuthenticationInner inner + = this.serviceClient().createOrReplace(resourceGroupName, clusterName, resource); + if (inner != null) { + return new PasswordAuthenticationImpl(inner, this.manager()); + } else { + return null; + } + } + + public PasswordAuthentication createOrReplace(String resourceGroupName, String clusterName, + PasswordAuthenticationInner resource, Context context) { + PasswordAuthenticationInner inner + = this.serviceClient().createOrReplace(resourceGroupName, clusterName, resource, context); + if (inner != null) { + return new PasswordAuthenticationImpl(inner, this.manager()); + } else { + return null; + } + } + + public PasswordAuthentication update(String resourceGroupName, String clusterName, + PasswordAuthenticationForPatchUpdate properties) { + PasswordAuthenticationInner inner = this.serviceClient().update(resourceGroupName, clusterName, properties); + if (inner != null) { + return new PasswordAuthenticationImpl(inner, this.manager()); + } else { + return null; + } + } + + public PasswordAuthentication update(String resourceGroupName, String clusterName, + PasswordAuthenticationForPatchUpdate properties, Context context) { + PasswordAuthenticationInner inner + = this.serviceClient().update(resourceGroupName, clusterName, properties, context); + if (inner != null) { + return new PasswordAuthenticationImpl(inner, this.manager()); + } else { + return null; + } + } + + private PasswordAuthenticationsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PoolImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PoolImpl.java new file mode 100644 index 0000000000000..0c39b491ca57f --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PoolImpl.java @@ -0,0 +1,187 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.horizondb.fluent.models.PoolInner; +import com.azure.resourcemanager.horizondb.models.Pool; +import com.azure.resourcemanager.horizondb.models.PoolForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.PoolProperties; +import com.azure.resourcemanager.horizondb.models.PoolPropertiesForPatchUpdate; +import java.util.Collections; +import java.util.Map; + +public final class PoolImpl implements Pool, Pool.Definition, Pool.Update { + private PoolInner innerObject; + + private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; + + public String id() { + return this.innerModel().id(); + } + + public String name() { + return this.innerModel().name(); + } + + public String type() { + return this.innerModel().type(); + } + + public PoolProperties properties() { + return this.innerModel().properties(); + } + + public Map tags() { + Map inner = this.innerModel().tags(); + if (inner != null) { + return Collections.unmodifiableMap(inner); + } else { + return Collections.emptyMap(); + } + } + + public SystemData systemData() { + return this.innerModel().systemData(); + } + + public String resourceGroupName() { + return resourceGroupName; + } + + public PoolInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { + return this.serviceManager; + } + + private String resourceGroupName; + + private String clusterName; + + private String poolName; + + private PoolForPatchUpdate updateProperties; + + public PoolImpl withExistingCluster(String resourceGroupName, String clusterName) { + this.resourceGroupName = resourceGroupName; + this.clusterName = clusterName; + return this; + } + + public Pool create() { + this.innerObject = serviceManager.serviceClient() + .getPools() + .createOrReplace(resourceGroupName, clusterName, poolName, this.innerModel(), Context.NONE); + return this; + } + + public Pool create(Context context) { + this.innerObject = serviceManager.serviceClient() + .getPools() + .createOrReplace(resourceGroupName, clusterName, poolName, this.innerModel(), context); + return this; + } + + PoolImpl(String name, com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerObject = new PoolInner(); + this.serviceManager = serviceManager; + this.poolName = name; + } + + public PoolImpl update() { + this.updateProperties = new PoolForPatchUpdate(); + return this; + } + + public Pool apply() { + this.innerObject = serviceManager.serviceClient() + .getPools() + .update(resourceGroupName, clusterName, poolName, updateProperties, Context.NONE); + return this; + } + + public Pool apply(Context context) { + this.innerObject = serviceManager.serviceClient() + .getPools() + .update(resourceGroupName, clusterName, poolName, updateProperties, context); + return this; + } + + PoolImpl(PoolInner innerObject, com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.clusterName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "clusters"); + this.poolName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "pools"); + } + + public Pool refresh() { + this.innerObject = serviceManager.serviceClient() + .getPools() + .getWithResponse(resourceGroupName, clusterName, poolName, Context.NONE) + .getValue(); + return this; + } + + public Pool refresh(Context context) { + this.innerObject = serviceManager.serviceClient() + .getPools() + .getWithResponse(resourceGroupName, clusterName, poolName, context) + .getValue(); + return this; + } + + public Pool start() { + return serviceManager.pools().start(resourceGroupName, clusterName, poolName); + } + + public Pool start(Context context) { + return serviceManager.pools().start(resourceGroupName, clusterName, poolName, context); + } + + public Pool stop() { + return serviceManager.pools().stop(resourceGroupName, clusterName, poolName); + } + + public Pool stop(Context context) { + return serviceManager.pools().stop(resourceGroupName, clusterName, poolName, context); + } + + public Pool restart() { + return serviceManager.pools().restart(resourceGroupName, clusterName, poolName); + } + + public Pool restart(Context context) { + return serviceManager.pools().restart(resourceGroupName, clusterName, poolName, context); + } + + public PoolImpl withTags(Map tags) { + if (isInCreateMode()) { + this.innerModel().withTags(tags); + return this; + } else { + this.updateProperties.withTags(tags); + return this; + } + } + + public PoolImpl withProperties(PoolProperties properties) { + this.innerModel().withProperties(properties); + return this; + } + + public PoolImpl withProperties(PoolPropertiesForPatchUpdate properties) { + this.updateProperties.withProperties(properties); + return this; + } + + private boolean isInCreateMode() { + return this.innerModel() == null || this.innerModel().id() == null; + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PoolsClientImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PoolsClientImpl.java new file mode 100644 index 0000000000000..f07b4088b890a --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PoolsClientImpl.java @@ -0,0 +1,2068 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.annotation.BodyParam; +import com.azure.core.annotation.Delete; +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.Patch; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Post; +import com.azure.core.annotation.Put; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.PagedFlux; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.PagedResponse; +import com.azure.core.http.rest.PagedResponseBase; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.BinaryData; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.horizondb.fluent.PoolsClient; +import com.azure.resourcemanager.horizondb.fluent.models.PoolInner; +import com.azure.resourcemanager.horizondb.implementation.models.PoolListResult; +import com.azure.resourcemanager.horizondb.models.PoolForPatchUpdate; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in PoolsClient. + */ +public final class PoolsClientImpl implements PoolsClient { + /** + * The proxy service used to perform REST calls. + */ + private final PoolsService service; + + /** + * The service client containing this operation class. + */ + private final HorizonDbManagementClientImpl client; + + /** + * Initializes an instance of PoolsClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + PoolsClientImpl(HorizonDbManagementClientImpl client) { + this.service = RestProxy.create(PoolsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for HorizonDbManagementClientPools to be used by the proxy service to + * perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "HorizonDbManagementClientPools") + public interface PoolsService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("poolName") String poolName, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("poolName") String poolName, @HeaderParam("Accept") String accept, Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> createOrReplace(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("poolName") String poolName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") PoolInner resource, Context context); + + @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}") + @ExpectedResponses({ 200, 201 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response createOrReplaceSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("poolName") String poolName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") PoolInner resource, Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> update(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("poolName") String poolName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") PoolForPatchUpdate properties, + Context context); + + @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response updateSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("poolName") String poolName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, @BodyParam("application/json") PoolForPatchUpdate properties, + Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> delete(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("poolName") String poolName, Context context); + + @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) + @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}") + @ExpectedResponses({ 202, 204 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response deleteSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("poolName") String poolName, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> list(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/start") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> start(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("poolName") String poolName, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/start") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response startSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("poolName") String poolName, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/stop") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> stop(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("poolName") String poolName, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/stop") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response stopSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("poolName") String poolName, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/restart") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> restart(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("poolName") String poolName, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/pools/{poolName}/restart") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response restartSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, + @PathParam("poolName") String poolName, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> listNext(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("{nextLink}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response listNextSync(@PathParam(value = "nextLink", encoded = true) String nextLink, + @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); + } + + /** + * Gets information about a HorizonDB pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 information about a HorizonDB pool along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono> getWithResponseAsync(String resourceGroupName, String clusterName, + String poolName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Gets information about a HorizonDB pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 information about a HorizonDB pool on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAsync(String resourceGroupName, String clusterName, String poolName) { + return getWithResponseAsync(resourceGroupName, clusterName, poolName) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Gets information about a HorizonDB pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 information about a HorizonDB pool along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String clusterName, String poolName, + Context context) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, clusterName, poolName, accept, context); + } + + /** + * Gets information about a HorizonDB pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 information about a HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public PoolInner get(String resourceGroupName, String clusterName, String poolName) { + return getWithResponse(resourceGroupName, clusterName, poolName, Context.NONE).getValue(); + } + + /** + * Creates a new HorizonDB pool or replaces an existing pool, including its node allocation, compute model, + * high-availability configuration, or associated parameter group. nodeCount and highAvailability.mode are required + * and have no service defaults. nodeCount must be 1 through 16. Disabled is valid only when nodeCount is 1. AnyZone + * and ZoneRedundant are valid only when nodeCount is 2 through 16. AnyZone permits same-zone or cross-zone + * placement, while ZoneRedundant requires nodes to be allocated across availability zones. Node allocation and + * high-availability reconfiguration are atomic: if all requested nodes or the required zonal topology cannot be + * provisioned, the long-running operation fails and the previous resource state is preserved. A pool name must + * differ from its parent cluster name because the Cluster-scoped ReadWrite Endpoint is named after the Cluster and + * the Pool-scoped ReadOnly Endpoint is named after the Pool; the service rejects a request whose names would + * collide. Creating a pool also creates exactly one service-managed Pool-scoped ReadOnly Endpoint representing that + * Pool and its network boundary. The Endpoint's associatedResourceId identifies the Pool, and the Endpoint cannot + * outlive or be deleted independently from it. When the first pool is created, the service automatically designates + * it to host the cluster's read-write node when an eligible node is available. A Cluster must contain at least one + * Pool before a private endpoint connection can be created or approved. This API version supports at most one pool + * per cluster; an attempt to create another pool is rejected with 409 Conflict. parameterGroup, + * parameterGroupResourceId, and applyMethod are required. When creating a new pool in this API version, + * parameterGroupResourceId must identify the corresponding default parameter group; a customer-created parameter + * group is rejected. When replacing an existing pool, the request can switch its association in either direction + * between the corresponding default parameter group and a customer-created parameter group. applyMethod controls + * when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated + * Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute + * constraints are validated before the resource is changed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param resource Resource create parameters. + * @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 represents the HorizonDB pool along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> createOrReplaceWithResponseAsync(String resourceGroupName, + String clusterName, String poolName, PoolInner resource) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.createOrReplace(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, contentType, accept, + resource, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Creates a new HorizonDB pool or replaces an existing pool, including its node allocation, compute model, + * high-availability configuration, or associated parameter group. nodeCount and highAvailability.mode are required + * and have no service defaults. nodeCount must be 1 through 16. Disabled is valid only when nodeCount is 1. AnyZone + * and ZoneRedundant are valid only when nodeCount is 2 through 16. AnyZone permits same-zone or cross-zone + * placement, while ZoneRedundant requires nodes to be allocated across availability zones. Node allocation and + * high-availability reconfiguration are atomic: if all requested nodes or the required zonal topology cannot be + * provisioned, the long-running operation fails and the previous resource state is preserved. A pool name must + * differ from its parent cluster name because the Cluster-scoped ReadWrite Endpoint is named after the Cluster and + * the Pool-scoped ReadOnly Endpoint is named after the Pool; the service rejects a request whose names would + * collide. Creating a pool also creates exactly one service-managed Pool-scoped ReadOnly Endpoint representing that + * Pool and its network boundary. The Endpoint's associatedResourceId identifies the Pool, and the Endpoint cannot + * outlive or be deleted independently from it. When the first pool is created, the service automatically designates + * it to host the cluster's read-write node when an eligible node is available. A Cluster must contain at least one + * Pool before a private endpoint connection can be created or approved. This API version supports at most one pool + * per cluster; an attempt to create another pool is rejected with 409 Conflict. parameterGroup, + * parameterGroupResourceId, and applyMethod are required. When creating a new pool in this API version, + * parameterGroupResourceId must identify the corresponding default parameter group; a customer-created parameter + * group is rejected. When replacing an existing pool, the request can switch its association in either direction + * between the corresponding default parameter group and a customer-created parameter group. applyMethod controls + * when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated + * Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute + * constraints are validated before the resource is changed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param resource Resource create parameters. + * @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 represents the HorizonDB pool along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrReplaceWithResponse(String resourceGroupName, String clusterName, + String poolName, PoolInner resource) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrReplaceSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, contentType, accept, resource, + Context.NONE); + } + + /** + * Creates a new HorizonDB pool or replaces an existing pool, including its node allocation, compute model, + * high-availability configuration, or associated parameter group. nodeCount and highAvailability.mode are required + * and have no service defaults. nodeCount must be 1 through 16. Disabled is valid only when nodeCount is 1. AnyZone + * and ZoneRedundant are valid only when nodeCount is 2 through 16. AnyZone permits same-zone or cross-zone + * placement, while ZoneRedundant requires nodes to be allocated across availability zones. Node allocation and + * high-availability reconfiguration are atomic: if all requested nodes or the required zonal topology cannot be + * provisioned, the long-running operation fails and the previous resource state is preserved. A pool name must + * differ from its parent cluster name because the Cluster-scoped ReadWrite Endpoint is named after the Cluster and + * the Pool-scoped ReadOnly Endpoint is named after the Pool; the service rejects a request whose names would + * collide. Creating a pool also creates exactly one service-managed Pool-scoped ReadOnly Endpoint representing that + * Pool and its network boundary. The Endpoint's associatedResourceId identifies the Pool, and the Endpoint cannot + * outlive or be deleted independently from it. When the first pool is created, the service automatically designates + * it to host the cluster's read-write node when an eligible node is available. A Cluster must contain at least one + * Pool before a private endpoint connection can be created or approved. This API version supports at most one pool + * per cluster; an attempt to create another pool is rejected with 409 Conflict. parameterGroup, + * parameterGroupResourceId, and applyMethod are required. When creating a new pool in this API version, + * parameterGroupResourceId must identify the corresponding default parameter group; a customer-created parameter + * group is rejected. When replacing an existing pool, the request can switch its association in either direction + * between the corresponding default parameter group and a customer-created parameter group. applyMethod controls + * when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated + * Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute + * constraints are validated before the resource is changed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param resource Resource create parameters. + * @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 represents the HorizonDB pool along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response createOrReplaceWithResponse(String resourceGroupName, String clusterName, + String poolName, PoolInner resource, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.createOrReplaceSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, contentType, accept, resource, + context); + } + + /** + * Creates a new HorizonDB pool or replaces an existing pool, including its node allocation, compute model, + * high-availability configuration, or associated parameter group. nodeCount and highAvailability.mode are required + * and have no service defaults. nodeCount must be 1 through 16. Disabled is valid only when nodeCount is 1. AnyZone + * and ZoneRedundant are valid only when nodeCount is 2 through 16. AnyZone permits same-zone or cross-zone + * placement, while ZoneRedundant requires nodes to be allocated across availability zones. Node allocation and + * high-availability reconfiguration are atomic: if all requested nodes or the required zonal topology cannot be + * provisioned, the long-running operation fails and the previous resource state is preserved. A pool name must + * differ from its parent cluster name because the Cluster-scoped ReadWrite Endpoint is named after the Cluster and + * the Pool-scoped ReadOnly Endpoint is named after the Pool; the service rejects a request whose names would + * collide. Creating a pool also creates exactly one service-managed Pool-scoped ReadOnly Endpoint representing that + * Pool and its network boundary. The Endpoint's associatedResourceId identifies the Pool, and the Endpoint cannot + * outlive or be deleted independently from it. When the first pool is created, the service automatically designates + * it to host the cluster's read-write node when an eligible node is available. A Cluster must contain at least one + * Pool before a private endpoint connection can be created or approved. This API version supports at most one pool + * per cluster; an attempt to create another pool is rejected with 409 Conflict. parameterGroup, + * parameterGroupResourceId, and applyMethod are required. When creating a new pool in this API version, + * parameterGroupResourceId must identify the corresponding default parameter group; a customer-created parameter + * group is rejected. When replacing an existing pool, the request can switch its association in either direction + * between the corresponding default parameter group and a customer-created parameter group. applyMethod controls + * when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated + * Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute + * constraints are validated before the resource is changed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param resource Resource create parameters. + * @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 represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, PoolInner> beginCreateOrReplaceAsync(String resourceGroupName, + String clusterName, String poolName, PoolInner resource) { + Mono>> mono + = createOrReplaceWithResponseAsync(resourceGroupName, clusterName, poolName, resource); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), PoolInner.class, + PoolInner.class, this.client.getContext()); + } + + /** + * Creates a new HorizonDB pool or replaces an existing pool, including its node allocation, compute model, + * high-availability configuration, or associated parameter group. nodeCount and highAvailability.mode are required + * and have no service defaults. nodeCount must be 1 through 16. Disabled is valid only when nodeCount is 1. AnyZone + * and ZoneRedundant are valid only when nodeCount is 2 through 16. AnyZone permits same-zone or cross-zone + * placement, while ZoneRedundant requires nodes to be allocated across availability zones. Node allocation and + * high-availability reconfiguration are atomic: if all requested nodes or the required zonal topology cannot be + * provisioned, the long-running operation fails and the previous resource state is preserved. A pool name must + * differ from its parent cluster name because the Cluster-scoped ReadWrite Endpoint is named after the Cluster and + * the Pool-scoped ReadOnly Endpoint is named after the Pool; the service rejects a request whose names would + * collide. Creating a pool also creates exactly one service-managed Pool-scoped ReadOnly Endpoint representing that + * Pool and its network boundary. The Endpoint's associatedResourceId identifies the Pool, and the Endpoint cannot + * outlive or be deleted independently from it. When the first pool is created, the service automatically designates + * it to host the cluster's read-write node when an eligible node is available. A Cluster must contain at least one + * Pool before a private endpoint connection can be created or approved. This API version supports at most one pool + * per cluster; an attempt to create another pool is rejected with 409 Conflict. parameterGroup, + * parameterGroupResourceId, and applyMethod are required. When creating a new pool in this API version, + * parameterGroupResourceId must identify the corresponding default parameter group; a customer-created parameter + * group is rejected. When replacing an existing pool, the request can switch its association in either direction + * between the corresponding default parameter group and a customer-created parameter group. applyMethod controls + * when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated + * Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute + * constraints are validated before the resource is changed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param resource Resource create parameters. + * @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 represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, PoolInner> beginCreateOrReplace(String resourceGroupName, + String clusterName, String poolName, PoolInner resource) { + Response response = createOrReplaceWithResponse(resourceGroupName, clusterName, poolName, resource); + return this.client.getLroResult(response, PoolInner.class, PoolInner.class, Context.NONE); + } + + /** + * Creates a new HorizonDB pool or replaces an existing pool, including its node allocation, compute model, + * high-availability configuration, or associated parameter group. nodeCount and highAvailability.mode are required + * and have no service defaults. nodeCount must be 1 through 16. Disabled is valid only when nodeCount is 1. AnyZone + * and ZoneRedundant are valid only when nodeCount is 2 through 16. AnyZone permits same-zone or cross-zone + * placement, while ZoneRedundant requires nodes to be allocated across availability zones. Node allocation and + * high-availability reconfiguration are atomic: if all requested nodes or the required zonal topology cannot be + * provisioned, the long-running operation fails and the previous resource state is preserved. A pool name must + * differ from its parent cluster name because the Cluster-scoped ReadWrite Endpoint is named after the Cluster and + * the Pool-scoped ReadOnly Endpoint is named after the Pool; the service rejects a request whose names would + * collide. Creating a pool also creates exactly one service-managed Pool-scoped ReadOnly Endpoint representing that + * Pool and its network boundary. The Endpoint's associatedResourceId identifies the Pool, and the Endpoint cannot + * outlive or be deleted independently from it. When the first pool is created, the service automatically designates + * it to host the cluster's read-write node when an eligible node is available. A Cluster must contain at least one + * Pool before a private endpoint connection can be created or approved. This API version supports at most one pool + * per cluster; an attempt to create another pool is rejected with 409 Conflict. parameterGroup, + * parameterGroupResourceId, and applyMethod are required. When creating a new pool in this API version, + * parameterGroupResourceId must identify the corresponding default parameter group; a customer-created parameter + * group is rejected. When replacing an existing pool, the request can switch its association in either direction + * between the corresponding default parameter group and a customer-created parameter group. applyMethod controls + * when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated + * Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute + * constraints are validated before the resource is changed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param resource Resource create parameters. + * @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 represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, PoolInner> beginCreateOrReplace(String resourceGroupName, + String clusterName, String poolName, PoolInner resource, Context context) { + Response response + = createOrReplaceWithResponse(resourceGroupName, clusterName, poolName, resource, context); + return this.client.getLroResult(response, PoolInner.class, PoolInner.class, context); + } + + /** + * Creates a new HorizonDB pool or replaces an existing pool, including its node allocation, compute model, + * high-availability configuration, or associated parameter group. nodeCount and highAvailability.mode are required + * and have no service defaults. nodeCount must be 1 through 16. Disabled is valid only when nodeCount is 1. AnyZone + * and ZoneRedundant are valid only when nodeCount is 2 through 16. AnyZone permits same-zone or cross-zone + * placement, while ZoneRedundant requires nodes to be allocated across availability zones. Node allocation and + * high-availability reconfiguration are atomic: if all requested nodes or the required zonal topology cannot be + * provisioned, the long-running operation fails and the previous resource state is preserved. A pool name must + * differ from its parent cluster name because the Cluster-scoped ReadWrite Endpoint is named after the Cluster and + * the Pool-scoped ReadOnly Endpoint is named after the Pool; the service rejects a request whose names would + * collide. Creating a pool also creates exactly one service-managed Pool-scoped ReadOnly Endpoint representing that + * Pool and its network boundary. The Endpoint's associatedResourceId identifies the Pool, and the Endpoint cannot + * outlive or be deleted independently from it. When the first pool is created, the service automatically designates + * it to host the cluster's read-write node when an eligible node is available. A Cluster must contain at least one + * Pool before a private endpoint connection can be created or approved. This API version supports at most one pool + * per cluster; an attempt to create another pool is rejected with 409 Conflict. parameterGroup, + * parameterGroupResourceId, and applyMethod are required. When creating a new pool in this API version, + * parameterGroupResourceId must identify the corresponding default parameter group; a customer-created parameter + * group is rejected. When replacing an existing pool, the request can switch its association in either direction + * between the corresponding default parameter group and a customer-created parameter group. applyMethod controls + * when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated + * Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute + * constraints are validated before the resource is changed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param resource Resource create parameters. + * @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 represents the HorizonDB pool on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono createOrReplaceAsync(String resourceGroupName, String clusterName, String poolName, + PoolInner resource) { + return beginCreateOrReplaceAsync(resourceGroupName, clusterName, poolName, resource).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Creates a new HorizonDB pool or replaces an existing pool, including its node allocation, compute model, + * high-availability configuration, or associated parameter group. nodeCount and highAvailability.mode are required + * and have no service defaults. nodeCount must be 1 through 16. Disabled is valid only when nodeCount is 1. AnyZone + * and ZoneRedundant are valid only when nodeCount is 2 through 16. AnyZone permits same-zone or cross-zone + * placement, while ZoneRedundant requires nodes to be allocated across availability zones. Node allocation and + * high-availability reconfiguration are atomic: if all requested nodes or the required zonal topology cannot be + * provisioned, the long-running operation fails and the previous resource state is preserved. A pool name must + * differ from its parent cluster name because the Cluster-scoped ReadWrite Endpoint is named after the Cluster and + * the Pool-scoped ReadOnly Endpoint is named after the Pool; the service rejects a request whose names would + * collide. Creating a pool also creates exactly one service-managed Pool-scoped ReadOnly Endpoint representing that + * Pool and its network boundary. The Endpoint's associatedResourceId identifies the Pool, and the Endpoint cannot + * outlive or be deleted independently from it. When the first pool is created, the service automatically designates + * it to host the cluster's read-write node when an eligible node is available. A Cluster must contain at least one + * Pool before a private endpoint connection can be created or approved. This API version supports at most one pool + * per cluster; an attempt to create another pool is rejected with 409 Conflict. parameterGroup, + * parameterGroupResourceId, and applyMethod are required. When creating a new pool in this API version, + * parameterGroupResourceId must identify the corresponding default parameter group; a customer-created parameter + * group is rejected. When replacing an existing pool, the request can switch its association in either direction + * between the corresponding default parameter group and a customer-created parameter group. applyMethod controls + * when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated + * Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute + * constraints are validated before the resource is changed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param resource Resource create parameters. + * @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 represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public PoolInner createOrReplace(String resourceGroupName, String clusterName, String poolName, + PoolInner resource) { + return beginCreateOrReplace(resourceGroupName, clusterName, poolName, resource).getFinalResult(); + } + + /** + * Creates a new HorizonDB pool or replaces an existing pool, including its node allocation, compute model, + * high-availability configuration, or associated parameter group. nodeCount and highAvailability.mode are required + * and have no service defaults. nodeCount must be 1 through 16. Disabled is valid only when nodeCount is 1. AnyZone + * and ZoneRedundant are valid only when nodeCount is 2 through 16. AnyZone permits same-zone or cross-zone + * placement, while ZoneRedundant requires nodes to be allocated across availability zones. Node allocation and + * high-availability reconfiguration are atomic: if all requested nodes or the required zonal topology cannot be + * provisioned, the long-running operation fails and the previous resource state is preserved. A pool name must + * differ from its parent cluster name because the Cluster-scoped ReadWrite Endpoint is named after the Cluster and + * the Pool-scoped ReadOnly Endpoint is named after the Pool; the service rejects a request whose names would + * collide. Creating a pool also creates exactly one service-managed Pool-scoped ReadOnly Endpoint representing that + * Pool and its network boundary. The Endpoint's associatedResourceId identifies the Pool, and the Endpoint cannot + * outlive or be deleted independently from it. When the first pool is created, the service automatically designates + * it to host the cluster's read-write node when an eligible node is available. A Cluster must contain at least one + * Pool before a private endpoint connection can be created or approved. This API version supports at most one pool + * per cluster; an attempt to create another pool is rejected with 409 Conflict. parameterGroup, + * parameterGroupResourceId, and applyMethod are required. When creating a new pool in this API version, + * parameterGroupResourceId must identify the corresponding default parameter group; a customer-created parameter + * group is rejected. When replacing an existing pool, the request can switch its association in either direction + * between the corresponding default parameter group and a customer-created parameter group. applyMethod controls + * when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated + * Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute + * constraints are validated before the resource is changed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param resource Resource create parameters. + * @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 represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public PoolInner createOrReplace(String resourceGroupName, String clusterName, String poolName, PoolInner resource, + Context context) { + return beginCreateOrReplace(resourceGroupName, clusterName, poolName, resource, context).getFinalResult(); + } + + /** + * Updates an existing HorizonDB pool, including its node allocation, selected compute model properties, compute + * model type, high-availability configuration, or associated parameter group. Omitted nodeCount and + * highAvailability.mode values preserve their existing values; the service recursively merges the PATCH before + * atomically validating the effective tuple. nodeCount, when supplied, must be 1 through 16. Disabled is valid only + * when the effective nodeCount is 1. AnyZone and ZoneRedundant are valid only when the effective nodeCount is 2 + * through 16. Therefore, crossing between those node-count ranges requires nodeCount and highAvailability.mode to + * be changed together. AnyZone permits same-zone or cross-zone placement. Changing from AnyZone to ZoneRedundant + * may allocate a replacement node in another availability zone and replace a read-only node, disconnecting + * connections to the replaced node. If all requested nodes or the required zonal topology cannot be provisioned, + * the long-running operation fails and the previous resource state is preserved. To deallocate runtime compute + * without changing the configured nodeCount, use the Pool stop action. When parameterGroup is supplied, both + * parameterGroupResourceId and applyMethod are required. The pool can switch its association in either direction + * between the corresponding default parameter group and a customer-created parameter group. applyMethod controls + * when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated + * Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute + * constraints are validated against the recursively merged configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the HorizonDB pool along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> updateWithResponseAsync(String resourceGroupName, String clusterName, + String poolName, PoolForPatchUpdate properties) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, contentType, accept, + properties, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Updates an existing HorizonDB pool, including its node allocation, selected compute model properties, compute + * model type, high-availability configuration, or associated parameter group. Omitted nodeCount and + * highAvailability.mode values preserve their existing values; the service recursively merges the PATCH before + * atomically validating the effective tuple. nodeCount, when supplied, must be 1 through 16. Disabled is valid only + * when the effective nodeCount is 1. AnyZone and ZoneRedundant are valid only when the effective nodeCount is 2 + * through 16. Therefore, crossing between those node-count ranges requires nodeCount and highAvailability.mode to + * be changed together. AnyZone permits same-zone or cross-zone placement. Changing from AnyZone to ZoneRedundant + * may allocate a replacement node in another availability zone and replace a read-only node, disconnecting + * connections to the replaced node. If all requested nodes or the required zonal topology cannot be provisioned, + * the long-running operation fails and the previous resource state is preserved. To deallocate runtime compute + * without changing the configured nodeCount, use the Pool stop action. When parameterGroup is supplied, both + * parameterGroupResourceId and applyMethod are required. The pool can switch its association in either direction + * between the corresponding default parameter group and a customer-created parameter group. applyMethod controls + * when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated + * Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute + * constraints are validated against the recursively merged configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the HorizonDB pool along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response updateWithResponse(String resourceGroupName, String clusterName, String poolName, + PoolForPatchUpdate properties) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, contentType, accept, properties, + Context.NONE); + } + + /** + * Updates an existing HorizonDB pool, including its node allocation, selected compute model properties, compute + * model type, high-availability configuration, or associated parameter group. Omitted nodeCount and + * highAvailability.mode values preserve their existing values; the service recursively merges the PATCH before + * atomically validating the effective tuple. nodeCount, when supplied, must be 1 through 16. Disabled is valid only + * when the effective nodeCount is 1. AnyZone and ZoneRedundant are valid only when the effective nodeCount is 2 + * through 16. Therefore, crossing between those node-count ranges requires nodeCount and highAvailability.mode to + * be changed together. AnyZone permits same-zone or cross-zone placement. Changing from AnyZone to ZoneRedundant + * may allocate a replacement node in another availability zone and replace a read-only node, disconnecting + * connections to the replaced node. If all requested nodes or the required zonal topology cannot be provisioned, + * the long-running operation fails and the previous resource state is preserved. To deallocate runtime compute + * without changing the configured nodeCount, use the Pool stop action. When parameterGroup is supplied, both + * parameterGroupResourceId and applyMethod are required. The pool can switch its association in either direction + * between the corresponding default parameter group and a customer-created parameter group. applyMethod controls + * when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated + * Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute + * constraints are validated against the recursively merged configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the HorizonDB pool along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response updateWithResponse(String resourceGroupName, String clusterName, String poolName, + PoolForPatchUpdate properties, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, contentType, accept, properties, + context); + } + + /** + * Updates an existing HorizonDB pool, including its node allocation, selected compute model properties, compute + * model type, high-availability configuration, or associated parameter group. Omitted nodeCount and + * highAvailability.mode values preserve their existing values; the service recursively merges the PATCH before + * atomically validating the effective tuple. nodeCount, when supplied, must be 1 through 16. Disabled is valid only + * when the effective nodeCount is 1. AnyZone and ZoneRedundant are valid only when the effective nodeCount is 2 + * through 16. Therefore, crossing between those node-count ranges requires nodeCount and highAvailability.mode to + * be changed together. AnyZone permits same-zone or cross-zone placement. Changing from AnyZone to ZoneRedundant + * may allocate a replacement node in another availability zone and replace a read-only node, disconnecting + * connections to the replaced node. If all requested nodes or the required zonal topology cannot be provisioned, + * the long-running operation fails and the previous resource state is preserved. To deallocate runtime compute + * without changing the configured nodeCount, use the Pool stop action. When parameterGroup is supplied, both + * parameterGroupResourceId and applyMethod are required. The pool can switch its association in either direction + * between the corresponding default parameter group and a customer-created parameter group. applyMethod controls + * when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated + * Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute + * constraints are validated against the recursively merged configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link PollerFlux} for polling of represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, PoolInner> beginUpdateAsync(String resourceGroupName, String clusterName, + String poolName, PoolForPatchUpdate properties) { + Mono>> mono + = updateWithResponseAsync(resourceGroupName, clusterName, poolName, properties); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), PoolInner.class, + PoolInner.class, this.client.getContext()); + } + + /** + * Updates an existing HorizonDB pool, including its node allocation, selected compute model properties, compute + * model type, high-availability configuration, or associated parameter group. Omitted nodeCount and + * highAvailability.mode values preserve their existing values; the service recursively merges the PATCH before + * atomically validating the effective tuple. nodeCount, when supplied, must be 1 through 16. Disabled is valid only + * when the effective nodeCount is 1. AnyZone and ZoneRedundant are valid only when the effective nodeCount is 2 + * through 16. Therefore, crossing between those node-count ranges requires nodeCount and highAvailability.mode to + * be changed together. AnyZone permits same-zone or cross-zone placement. Changing from AnyZone to ZoneRedundant + * may allocate a replacement node in another availability zone and replace a read-only node, disconnecting + * connections to the replaced node. If all requested nodes or the required zonal topology cannot be provisioned, + * the long-running operation fails and the previous resource state is preserved. To deallocate runtime compute + * without changing the configured nodeCount, use the Pool stop action. When parameterGroup is supplied, both + * parameterGroupResourceId and applyMethod are required. The pool can switch its association in either direction + * between the corresponding default parameter group and a customer-created parameter group. applyMethod controls + * when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated + * Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute + * constraints are validated against the recursively merged configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, PoolInner> beginUpdate(String resourceGroupName, String clusterName, + String poolName, PoolForPatchUpdate properties) { + Response response = updateWithResponse(resourceGroupName, clusterName, poolName, properties); + return this.client.getLroResult(response, PoolInner.class, PoolInner.class, Context.NONE); + } + + /** + * Updates an existing HorizonDB pool, including its node allocation, selected compute model properties, compute + * model type, high-availability configuration, or associated parameter group. Omitted nodeCount and + * highAvailability.mode values preserve their existing values; the service recursively merges the PATCH before + * atomically validating the effective tuple. nodeCount, when supplied, must be 1 through 16. Disabled is valid only + * when the effective nodeCount is 1. AnyZone and ZoneRedundant are valid only when the effective nodeCount is 2 + * through 16. Therefore, crossing between those node-count ranges requires nodeCount and highAvailability.mode to + * be changed together. AnyZone permits same-zone or cross-zone placement. Changing from AnyZone to ZoneRedundant + * may allocate a replacement node in another availability zone and replace a read-only node, disconnecting + * connections to the replaced node. If all requested nodes or the required zonal topology cannot be provisioned, + * the long-running operation fails and the previous resource state is preserved. To deallocate runtime compute + * without changing the configured nodeCount, use the Pool stop action. When parameterGroup is supplied, both + * parameterGroupResourceId and applyMethod are required. The pool can switch its association in either direction + * between the corresponding default parameter group and a customer-created parameter group. applyMethod controls + * when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated + * Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute + * constraints are validated against the recursively merged configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the {@link SyncPoller} for polling of represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, PoolInner> beginUpdate(String resourceGroupName, String clusterName, + String poolName, PoolForPatchUpdate properties, Context context) { + Response response + = updateWithResponse(resourceGroupName, clusterName, poolName, properties, context); + return this.client.getLroResult(response, PoolInner.class, PoolInner.class, context); + } + + /** + * Updates an existing HorizonDB pool, including its node allocation, selected compute model properties, compute + * model type, high-availability configuration, or associated parameter group. Omitted nodeCount and + * highAvailability.mode values preserve their existing values; the service recursively merges the PATCH before + * atomically validating the effective tuple. nodeCount, when supplied, must be 1 through 16. Disabled is valid only + * when the effective nodeCount is 1. AnyZone and ZoneRedundant are valid only when the effective nodeCount is 2 + * through 16. Therefore, crossing between those node-count ranges requires nodeCount and highAvailability.mode to + * be changed together. AnyZone permits same-zone or cross-zone placement. Changing from AnyZone to ZoneRedundant + * may allocate a replacement node in another availability zone and replace a read-only node, disconnecting + * connections to the replaced node. If all requested nodes or the required zonal topology cannot be provisioned, + * the long-running operation fails and the previous resource state is preserved. To deallocate runtime compute + * without changing the configured nodeCount, use the Pool stop action. When parameterGroup is supplied, both + * parameterGroupResourceId and applyMethod are required. The pool can switch its association in either direction + * between the corresponding default parameter group and a customer-created parameter group. applyMethod controls + * when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated + * Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute + * constraints are validated against the recursively merged configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the HorizonDB pool on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono updateAsync(String resourceGroupName, String clusterName, String poolName, + PoolForPatchUpdate properties) { + return beginUpdateAsync(resourceGroupName, clusterName, poolName, properties).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Updates an existing HorizonDB pool, including its node allocation, selected compute model properties, compute + * model type, high-availability configuration, or associated parameter group. Omitted nodeCount and + * highAvailability.mode values preserve their existing values; the service recursively merges the PATCH before + * atomically validating the effective tuple. nodeCount, when supplied, must be 1 through 16. Disabled is valid only + * when the effective nodeCount is 1. AnyZone and ZoneRedundant are valid only when the effective nodeCount is 2 + * through 16. Therefore, crossing between those node-count ranges requires nodeCount and highAvailability.mode to + * be changed together. AnyZone permits same-zone or cross-zone placement. Changing from AnyZone to ZoneRedundant + * may allocate a replacement node in another availability zone and replace a read-only node, disconnecting + * connections to the replaced node. If all requested nodes or the required zonal topology cannot be provisioned, + * the long-running operation fails and the previous resource state is preserved. To deallocate runtime compute + * without changing the configured nodeCount, use the Pool stop action. When parameterGroup is supplied, both + * parameterGroupResourceId and applyMethod are required. The pool can switch its association in either direction + * between the corresponding default parameter group and a customer-created parameter group. applyMethod controls + * when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated + * Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute + * constraints are validated against the recursively merged configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public PoolInner update(String resourceGroupName, String clusterName, String poolName, + PoolForPatchUpdate properties) { + return beginUpdate(resourceGroupName, clusterName, poolName, properties).getFinalResult(); + } + + /** + * Updates an existing HorizonDB pool, including its node allocation, selected compute model properties, compute + * model type, high-availability configuration, or associated parameter group. Omitted nodeCount and + * highAvailability.mode values preserve their existing values; the service recursively merges the PATCH before + * atomically validating the effective tuple. nodeCount, when supplied, must be 1 through 16. Disabled is valid only + * when the effective nodeCount is 1. AnyZone and ZoneRedundant are valid only when the effective nodeCount is 2 + * through 16. Therefore, crossing between those node-count ranges requires nodeCount and highAvailability.mode to + * be changed together. AnyZone permits same-zone or cross-zone placement. Changing from AnyZone to ZoneRedundant + * may allocate a replacement node in another availability zone and replace a read-only node, disconnecting + * connections to the replaced node. If all requested nodes or the required zonal topology cannot be provisioned, + * the long-running operation fails and the previous resource state is preserved. To deallocate runtime compute + * without changing the configured nodeCount, use the Pool stop action. When parameterGroup is supplied, both + * parameterGroupResourceId and applyMethod are required. The pool can switch its association in either direction + * between the corresponding default parameter group and a customer-created parameter group. applyMethod controls + * when dynamic parameter changes become effective. Static parameter changes always require a customer-initiated + * Restart; Stop followed by Start and scheduled maintenance do not apply pending changes. Subtype-specific compute + * constraints are validated against the recursively merged configuration. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public PoolInner update(String resourceGroupName, String clusterName, String poolName, + PoolForPatchUpdate properties, Context context) { + return beginUpdate(resourceGroupName, clusterName, poolName, properties, context).getFinalResult(); + } + + /** + * Deletes a HorizonDB pool together with the Pool-scoped Endpoint whose associatedResourceId identifies that Pool + * and all FirewallRule children of that Endpoint. The Endpoint cannot outlive or be deleted independently from its + * Pool. When this is the Cluster's last surviving Pool, the service also disconnects every existing private + * endpoint connection associated with the Cluster by setting its privateLinkServiceConnectionState.status to + * Rejected and providing a description that the last Pool was deleted. The HorizonDB private endpoint connection + * resources remain available for inspection and cleanup, and customer-owned Microsoft.Network/privateEndpoints + * resources are not deleted. The delete long-running operation completes only after all required private endpoint + * disconnections have completed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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) + public Mono>> deleteWithResponseAsync(String resourceGroupName, String clusterName, + String poolName) { + return FluxUtil + .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Deletes a HorizonDB pool together with the Pool-scoped Endpoint whose associatedResourceId identifies that Pool + * and all FirewallRule children of that Endpoint. The Endpoint cannot outlive or be deleted independently from its + * Pool. When this is the Cluster's last surviving Pool, the service also disconnects every existing private + * endpoint connection associated with the Cluster by setting its privateLinkServiceConnectionState.status to + * Rejected and providing a description that the last Pool was deleted. The HorizonDB private endpoint connection + * resources remain available for inspection and cleanup, and customer-owned Microsoft.Network/privateEndpoints + * resources are not deleted. The delete long-running operation completes only after all required private endpoint + * disconnections have completed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 deleteWithResponse(String resourceGroupName, String clusterName, String poolName) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, Context.NONE); + } + + /** + * Deletes a HorizonDB pool together with the Pool-scoped Endpoint whose associatedResourceId identifies that Pool + * and all FirewallRule children of that Endpoint. The Endpoint cannot outlive or be deleted independently from its + * Pool. When this is the Cluster's last surviving Pool, the service also disconnects every existing private + * endpoint connection associated with the Cluster by setting its privateLinkServiceConnectionState.status to + * Rejected and providing a description that the last Pool was deleted. The HorizonDB private endpoint connection + * resources remain available for inspection and cleanup, and customer-owned Microsoft.Network/privateEndpoints + * resources are not deleted. The delete long-running operation completes only after all required private endpoint + * disconnections have completed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 deleteWithResponse(String resourceGroupName, String clusterName, String poolName, + Context context) { + return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, context); + } + + /** + * Deletes a HorizonDB pool together with the Pool-scoped Endpoint whose associatedResourceId identifies that Pool + * and all FirewallRule children of that Endpoint. The Endpoint cannot outlive or be deleted independently from its + * Pool. When this is the Cluster's last surviving Pool, the service also disconnects every existing private + * endpoint connection associated with the Cluster by setting its privateLinkServiceConnectionState.status to + * Rejected and providing a description that the last Pool was deleted. The HorizonDB private endpoint connection + * resources remain available for inspection and cleanup, and customer-owned Microsoft.Network/privateEndpoints + * resources are not deleted. The delete long-running operation completes only after all required private endpoint + * disconnections have completed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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) + public PollerFlux, Void> beginDeleteAsync(String resourceGroupName, String clusterName, + String poolName) { + Mono>> mono = deleteWithResponseAsync(resourceGroupName, clusterName, poolName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, + this.client.getContext()); + } + + /** + * Deletes a HorizonDB pool together with the Pool-scoped Endpoint whose associatedResourceId identifies that Pool + * and all FirewallRule children of that Endpoint. The Endpoint cannot outlive or be deleted independently from its + * Pool. When this is the Cluster's last surviving Pool, the service also disconnects every existing private + * endpoint connection associated with the Cluster by setting its privateLinkServiceConnectionState.status to + * Rejected and providing a description that the last Pool was deleted. The HorizonDB private endpoint connection + * resources remain available for inspection and cleanup, and customer-owned Microsoft.Network/privateEndpoints + * resources are not deleted. The delete long-running operation completes only after all required private endpoint + * disconnections have completed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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> beginDelete(String resourceGroupName, String clusterName, + String poolName) { + Response response = deleteWithResponse(resourceGroupName, clusterName, poolName); + return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); + } + + /** + * Deletes a HorizonDB pool together with the Pool-scoped Endpoint whose associatedResourceId identifies that Pool + * and all FirewallRule children of that Endpoint. The Endpoint cannot outlive or be deleted independently from its + * Pool. When this is the Cluster's last surviving Pool, the service also disconnects every existing private + * endpoint connection associated with the Cluster by setting its privateLinkServiceConnectionState.status to + * Rejected and providing a description that the last Pool was deleted. The HorizonDB private endpoint connection + * resources remain available for inspection and cleanup, and customer-owned Microsoft.Network/privateEndpoints + * resources are not deleted. The delete long-running operation completes only after all required private endpoint + * disconnections have completed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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> beginDelete(String resourceGroupName, String clusterName, String poolName, + Context context) { + Response response = deleteWithResponse(resourceGroupName, clusterName, poolName, context); + return this.client.getLroResult(response, Void.class, Void.class, context); + } + + /** + * Deletes a HorizonDB pool together with the Pool-scoped Endpoint whose associatedResourceId identifies that Pool + * and all FirewallRule children of that Endpoint. The Endpoint cannot outlive or be deleted independently from its + * Pool. When this is the Cluster's last surviving Pool, the service also disconnects every existing private + * endpoint connection associated with the Cluster by setting its privateLinkServiceConnectionState.status to + * Rejected and providing a description that the last Pool was deleted. The HorizonDB private endpoint connection + * resources remain available for inspection and cleanup, and customer-owned Microsoft.Network/privateEndpoints + * resources are not deleted. The delete long-running operation completes only after all required private endpoint + * disconnections have completed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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) + public Mono deleteAsync(String resourceGroupName, String clusterName, String poolName) { + return beginDeleteAsync(resourceGroupName, clusterName, poolName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Deletes a HorizonDB pool together with the Pool-scoped Endpoint whose associatedResourceId identifies that Pool + * and all FirewallRule children of that Endpoint. The Endpoint cannot outlive or be deleted independently from its + * Pool. When this is the Cluster's last surviving Pool, the service also disconnects every existing private + * endpoint connection associated with the Cluster by setting its privateLinkServiceConnectionState.status to + * Rejected and providing a description that the last Pool was deleted. The HorizonDB private endpoint connection + * resources remain available for inspection and cleanup, and customer-owned Microsoft.Network/privateEndpoints + * resources are not deleted. The delete long-running operation completes only after all required private endpoint + * disconnections have completed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 delete(String resourceGroupName, String clusterName, String poolName) { + beginDelete(resourceGroupName, clusterName, poolName).getFinalResult(); + } + + /** + * Deletes a HorizonDB pool together with the Pool-scoped Endpoint whose associatedResourceId identifies that Pool + * and all FirewallRule children of that Endpoint. The Endpoint cannot outlive or be deleted independently from its + * Pool. When this is the Cluster's last surviving Pool, the service also disconnects every existing private + * endpoint connection associated with the Cluster by setting its privateLinkServiceConnectionState.status to + * Rejected and providing a description that the last Pool was deleted. The HorizonDB private endpoint connection + * resources remain available for inspection and cleanup, and customer-owned Microsoft.Network/privateEndpoints + * resources are not deleted. The delete long-running operation completes only after all required private endpoint + * disconnections have completed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 delete(String resourceGroupName, String clusterName, String poolName, Context context) { + beginDelete(resourceGroupName, clusterName, poolName, context).getFinalResult(); + } + + /** + * Lists all HorizonDB pools in a cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Pool list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listSinglePageAsync(String resourceGroupName, String clusterName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Lists all HorizonDB pools in a cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Pool list operation as paginated response with {@link PagedFlux}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAsync(String resourceGroupName, String clusterName) { + return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, clusterName), + nextLink -> listNextSinglePageAsync(nextLink)); + } + + /** + * Lists all HorizonDB pools in a cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Pool list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, String clusterName) { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Lists all HorizonDB pools in a cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Pool list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listSinglePage(String resourceGroupName, String clusterName, Context context) { + final String accept = "application/json"; + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Lists all HorizonDB pools in a cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Pool list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String clusterName) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, clusterName), + nextLink -> listNextSinglePage(nextLink)); + } + + /** + * Lists all HorizonDB pools in a cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Pool list operation as paginated response with {@link PagedIterable}. + */ + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable list(String resourceGroupName, String clusterName, Context context) { + return new PagedIterable<>(() -> listSinglePage(resourceGroupName, clusterName, context), + nextLink -> listNextSinglePage(nextLink, context)); + } + + /** + * Starts a stopped HorizonDB pool. Power operations are supported only at pool scope in this API version; there is + * no cluster-level start action. Start does not apply pending dynamic or static parameter changes; + * parameterGroup.syncStatus remains PendingReboot until a customer-initiated Restart. When the pool is already + * Ready, the operation succeeds as a true idempotent no-op and likewise leaves pending parameter changes pending. + * The operation is allowed when the pool has no allocated nodes. After the Pool is running, its Pool-scoped + * ReadOnly Endpoint routes only when at least one allocated node is not currently playing the read-write role. The + * request fails with 409 Conflict when another operation is in progress or the pool is in any other incompatible + * state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> startWithResponseAsync(String resourceGroupName, String clusterName, + String poolName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.start(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Starts a stopped HorizonDB pool. Power operations are supported only at pool scope in this API version; there is + * no cluster-level start action. Start does not apply pending dynamic or static parameter changes; + * parameterGroup.syncStatus remains PendingReboot until a customer-initiated Restart. When the pool is already + * Ready, the operation succeeds as a true idempotent no-op and likewise leaves pending parameter changes pending. + * The operation is allowed when the pool has no allocated nodes. After the Pool is running, its Pool-scoped + * ReadOnly Endpoint routes only when at least one allocated node is not currently playing the read-write role. The + * request fails with 409 Conflict when another operation is in progress or the pool is in any other incompatible + * state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response startWithResponse(String resourceGroupName, String clusterName, String poolName) { + final String accept = "application/json"; + return service.startSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, accept, Context.NONE); + } + + /** + * Starts a stopped HorizonDB pool. Power operations are supported only at pool scope in this API version; there is + * no cluster-level start action. Start does not apply pending dynamic or static parameter changes; + * parameterGroup.syncStatus remains PendingReboot until a customer-initiated Restart. When the pool is already + * Ready, the operation succeeds as a true idempotent no-op and likewise leaves pending parameter changes pending. + * The operation is allowed when the pool has no allocated nodes. After the Pool is running, its Pool-scoped + * ReadOnly Endpoint routes only when at least one allocated node is not currently playing the read-write role. The + * request fails with 409 Conflict when another operation is in progress or the pool is in any other incompatible + * state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response startWithResponse(String resourceGroupName, String clusterName, String poolName, + Context context) { + final String accept = "application/json"; + return service.startSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, accept, context); + } + + /** + * Starts a stopped HorizonDB pool. Power operations are supported only at pool scope in this API version; there is + * no cluster-level start action. Start does not apply pending dynamic or static parameter changes; + * parameterGroup.syncStatus remains PendingReboot until a customer-initiated Restart. When the pool is already + * Ready, the operation succeeds as a true idempotent no-op and likewise leaves pending parameter changes pending. + * The operation is allowed when the pool has no allocated nodes. After the Pool is running, its Pool-scoped + * ReadOnly Endpoint routes only when at least one allocated node is not currently playing the read-write role. The + * request fails with 409 Conflict when another operation is in progress or the pool is in any other incompatible + * state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, PoolInner> beginStartAsync(String resourceGroupName, String clusterName, + String poolName) { + Mono>> mono = startWithResponseAsync(resourceGroupName, clusterName, poolName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), PoolInner.class, + PoolInner.class, this.client.getContext()); + } + + /** + * Starts a stopped HorizonDB pool. Power operations are supported only at pool scope in this API version; there is + * no cluster-level start action. Start does not apply pending dynamic or static parameter changes; + * parameterGroup.syncStatus remains PendingReboot until a customer-initiated Restart. When the pool is already + * Ready, the operation succeeds as a true idempotent no-op and likewise leaves pending parameter changes pending. + * The operation is allowed when the pool has no allocated nodes. After the Pool is running, its Pool-scoped + * ReadOnly Endpoint routes only when at least one allocated node is not currently playing the read-write role. The + * request fails with 409 Conflict when another operation is in progress or the pool is in any other incompatible + * state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, PoolInner> beginStart(String resourceGroupName, String clusterName, + String poolName) { + Response response = startWithResponse(resourceGroupName, clusterName, poolName); + return this.client.getLroResult(response, PoolInner.class, PoolInner.class, Context.NONE); + } + + /** + * Starts a stopped HorizonDB pool. Power operations are supported only at pool scope in this API version; there is + * no cluster-level start action. Start does not apply pending dynamic or static parameter changes; + * parameterGroup.syncStatus remains PendingReboot until a customer-initiated Restart. When the pool is already + * Ready, the operation succeeds as a true idempotent no-op and likewise leaves pending parameter changes pending. + * The operation is allowed when the pool has no allocated nodes. After the Pool is running, its Pool-scoped + * ReadOnly Endpoint routes only when at least one allocated node is not currently playing the read-write role. The + * request fails with 409 Conflict when another operation is in progress or the pool is in any other incompatible + * state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, PoolInner> beginStart(String resourceGroupName, String clusterName, + String poolName, Context context) { + Response response = startWithResponse(resourceGroupName, clusterName, poolName, context); + return this.client.getLroResult(response, PoolInner.class, PoolInner.class, context); + } + + /** + * Starts a stopped HorizonDB pool. Power operations are supported only at pool scope in this API version; there is + * no cluster-level start action. Start does not apply pending dynamic or static parameter changes; + * parameterGroup.syncStatus remains PendingReboot until a customer-initiated Restart. When the pool is already + * Ready, the operation succeeds as a true idempotent no-op and likewise leaves pending parameter changes pending. + * The operation is allowed when the pool has no allocated nodes. After the Pool is running, its Pool-scoped + * ReadOnly Endpoint routes only when at least one allocated node is not currently playing the read-write role. The + * request fails with 409 Conflict when another operation is in progress or the pool is in any other incompatible + * state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono startAsync(String resourceGroupName, String clusterName, String poolName) { + return beginStartAsync(resourceGroupName, clusterName, poolName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Starts a stopped HorizonDB pool. Power operations are supported only at pool scope in this API version; there is + * no cluster-level start action. Start does not apply pending dynamic or static parameter changes; + * parameterGroup.syncStatus remains PendingReboot until a customer-initiated Restart. When the pool is already + * Ready, the operation succeeds as a true idempotent no-op and likewise leaves pending parameter changes pending. + * The operation is allowed when the pool has no allocated nodes. After the Pool is running, its Pool-scoped + * ReadOnly Endpoint routes only when at least one allocated node is not currently playing the read-write role. The + * request fails with 409 Conflict when another operation is in progress or the pool is in any other incompatible + * state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public PoolInner start(String resourceGroupName, String clusterName, String poolName) { + return beginStart(resourceGroupName, clusterName, poolName).getFinalResult(); + } + + /** + * Starts a stopped HorizonDB pool. Power operations are supported only at pool scope in this API version; there is + * no cluster-level start action. Start does not apply pending dynamic or static parameter changes; + * parameterGroup.syncStatus remains PendingReboot until a customer-initiated Restart. When the pool is already + * Ready, the operation succeeds as a true idempotent no-op and likewise leaves pending parameter changes pending. + * The operation is allowed when the pool has no allocated nodes. After the Pool is running, its Pool-scoped + * ReadOnly Endpoint routes only when at least one allocated node is not currently playing the read-write role. The + * request fails with 409 Conflict when another operation is in progress or the pool is in any other incompatible + * state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public PoolInner start(String resourceGroupName, String clusterName, String poolName, Context context) { + return beginStart(resourceGroupName, clusterName, poolName, context).getFinalResult(); + } + + /** + * Stops a running HorizonDB pool and deallocates compute. Power operations are supported only at pool scope in this + * API version; there is no cluster-level stop action. Stop does not apply pending dynamic or static parameter + * changes; parameterGroup.syncStatus remains PendingReboot. A subsequent Start also preserves those pending + * changes. The operation succeeds as an idempotent no-op when the pool is already Stopped. It is allowed when the + * pool has no allocated nodes. The Pool-scoped ReadOnly Endpoint remains discoverable but has no routing + * destination while the Pool is Stopped. The request fails with 409 Conflict when another operation is in progress + * or the pool is in any other incompatible state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> stopWithResponseAsync(String resourceGroupName, String clusterName, + String poolName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.stop(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Stops a running HorizonDB pool and deallocates compute. Power operations are supported only at pool scope in this + * API version; there is no cluster-level stop action. Stop does not apply pending dynamic or static parameter + * changes; parameterGroup.syncStatus remains PendingReboot. A subsequent Start also preserves those pending + * changes. The operation succeeds as an idempotent no-op when the pool is already Stopped. It is allowed when the + * pool has no allocated nodes. The Pool-scoped ReadOnly Endpoint remains discoverable but has no routing + * destination while the Pool is Stopped. The request fails with 409 Conflict when another operation is in progress + * or the pool is in any other incompatible state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response stopWithResponse(String resourceGroupName, String clusterName, String poolName) { + final String accept = "application/json"; + return service.stopSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, clusterName, poolName, accept, Context.NONE); + } + + /** + * Stops a running HorizonDB pool and deallocates compute. Power operations are supported only at pool scope in this + * API version; there is no cluster-level stop action. Stop does not apply pending dynamic or static parameter + * changes; parameterGroup.syncStatus remains PendingReboot. A subsequent Start also preserves those pending + * changes. The operation succeeds as an idempotent no-op when the pool is already Stopped. It is allowed when the + * pool has no allocated nodes. The Pool-scoped ReadOnly Endpoint remains discoverable but has no routing + * destination while the Pool is Stopped. The request fails with 409 Conflict when another operation is in progress + * or the pool is in any other incompatible state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response stopWithResponse(String resourceGroupName, String clusterName, String poolName, + Context context) { + final String accept = "application/json"; + return service.stopSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, clusterName, poolName, accept, context); + } + + /** + * Stops a running HorizonDB pool and deallocates compute. Power operations are supported only at pool scope in this + * API version; there is no cluster-level stop action. Stop does not apply pending dynamic or static parameter + * changes; parameterGroup.syncStatus remains PendingReboot. A subsequent Start also preserves those pending + * changes. The operation succeeds as an idempotent no-op when the pool is already Stopped. It is allowed when the + * pool has no allocated nodes. The Pool-scoped ReadOnly Endpoint remains discoverable but has no routing + * destination while the Pool is Stopped. The request fails with 409 Conflict when another operation is in progress + * or the pool is in any other incompatible state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, PoolInner> beginStopAsync(String resourceGroupName, String clusterName, + String poolName) { + Mono>> mono = stopWithResponseAsync(resourceGroupName, clusterName, poolName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), PoolInner.class, + PoolInner.class, this.client.getContext()); + } + + /** + * Stops a running HorizonDB pool and deallocates compute. Power operations are supported only at pool scope in this + * API version; there is no cluster-level stop action. Stop does not apply pending dynamic or static parameter + * changes; parameterGroup.syncStatus remains PendingReboot. A subsequent Start also preserves those pending + * changes. The operation succeeds as an idempotent no-op when the pool is already Stopped. It is allowed when the + * pool has no allocated nodes. The Pool-scoped ReadOnly Endpoint remains discoverable but has no routing + * destination while the Pool is Stopped. The request fails with 409 Conflict when another operation is in progress + * or the pool is in any other incompatible state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, PoolInner> beginStop(String resourceGroupName, String clusterName, + String poolName) { + Response response = stopWithResponse(resourceGroupName, clusterName, poolName); + return this.client.getLroResult(response, PoolInner.class, PoolInner.class, Context.NONE); + } + + /** + * Stops a running HorizonDB pool and deallocates compute. Power operations are supported only at pool scope in this + * API version; there is no cluster-level stop action. Stop does not apply pending dynamic or static parameter + * changes; parameterGroup.syncStatus remains PendingReboot. A subsequent Start also preserves those pending + * changes. The operation succeeds as an idempotent no-op when the pool is already Stopped. It is allowed when the + * pool has no allocated nodes. The Pool-scoped ReadOnly Endpoint remains discoverable but has no routing + * destination while the Pool is Stopped. The request fails with 409 Conflict when another operation is in progress + * or the pool is in any other incompatible state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, PoolInner> beginStop(String resourceGroupName, String clusterName, + String poolName, Context context) { + Response response = stopWithResponse(resourceGroupName, clusterName, poolName, context); + return this.client.getLroResult(response, PoolInner.class, PoolInner.class, context); + } + + /** + * Stops a running HorizonDB pool and deallocates compute. Power operations are supported only at pool scope in this + * API version; there is no cluster-level stop action. Stop does not apply pending dynamic or static parameter + * changes; parameterGroup.syncStatus remains PendingReboot. A subsequent Start also preserves those pending + * changes. The operation succeeds as an idempotent no-op when the pool is already Stopped. It is allowed when the + * pool has no allocated nodes. The Pool-scoped ReadOnly Endpoint remains discoverable but has no routing + * destination while the Pool is Stopped. The request fails with 409 Conflict when another operation is in progress + * or the pool is in any other incompatible state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono stopAsync(String resourceGroupName, String clusterName, String poolName) { + return beginStopAsync(resourceGroupName, clusterName, poolName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Stops a running HorizonDB pool and deallocates compute. Power operations are supported only at pool scope in this + * API version; there is no cluster-level stop action. Stop does not apply pending dynamic or static parameter + * changes; parameterGroup.syncStatus remains PendingReboot. A subsequent Start also preserves those pending + * changes. The operation succeeds as an idempotent no-op when the pool is already Stopped. It is allowed when the + * pool has no allocated nodes. The Pool-scoped ReadOnly Endpoint remains discoverable but has no routing + * destination while the Pool is Stopped. The request fails with 409 Conflict when another operation is in progress + * or the pool is in any other incompatible state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public PoolInner stop(String resourceGroupName, String clusterName, String poolName) { + return beginStop(resourceGroupName, clusterName, poolName).getFinalResult(); + } + + /** + * Stops a running HorizonDB pool and deallocates compute. Power operations are supported only at pool scope in this + * API version; there is no cluster-level stop action. Stop does not apply pending dynamic or static parameter + * changes; parameterGroup.syncStatus remains PendingReboot. A subsequent Start also preserves those pending + * changes. The operation succeeds as an idempotent no-op when the pool is already Stopped. It is allowed when the + * pool has no allocated nodes. The Pool-scoped ReadOnly Endpoint remains discoverable but has no routing + * destination while the Pool is Stopped. The request fails with 409 Conflict when another operation is in progress + * or the pool is in any other incompatible state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public PoolInner stop(String resourceGroupName, String clusterName, String poolName, Context context) { + return beginStop(resourceGroupName, clusterName, poolName, context).getFinalResult(); + } + + /** + * Restarts the PostgreSQL container on all allocated nodes in a ready HorizonDB pool and applies pending dynamic + * and static parameter changes. This customer-initiated Restart is the only operation that applies static parameter + * changes or dynamic parameter changes requested with PendingReboot; Stop followed by Start and scheduled + * maintenance do not apply them. Power operations are supported only at pool scope in this API version; there is no + * cluster-level restart action. When the pool has no allocated nodes, the operation succeeds without restarting any + * nodes, pending changes are considered applied, parameterGroup.syncStatus becomes InSync, and the resulting + * configuration applies to nodes allocated later. The request fails with 409 Conflict when another operation is in + * progress or the pool is in any other incompatible state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono>> restartWithResponseAsync(String resourceGroupName, String clusterName, + String poolName) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.restart(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Restarts the PostgreSQL container on all allocated nodes in a ready HorizonDB pool and applies pending dynamic + * and static parameter changes. This customer-initiated Restart is the only operation that applies static parameter + * changes or dynamic parameter changes requested with PendingReboot; Stop followed by Start and scheduled + * maintenance do not apply them. Power operations are supported only at pool scope in this API version; there is no + * cluster-level restart action. When the pool has no allocated nodes, the operation succeeds without restarting any + * nodes, pending changes are considered applied, parameterGroup.syncStatus becomes InSync, and the resulting + * configuration applies to nodes allocated later. The request fails with 409 Conflict when another operation is in + * progress or the pool is in any other incompatible state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response restartWithResponse(String resourceGroupName, String clusterName, String poolName) { + final String accept = "application/json"; + return service.restartSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, accept, Context.NONE); + } + + /** + * Restarts the PostgreSQL container on all allocated nodes in a ready HorizonDB pool and applies pending dynamic + * and static parameter changes. This customer-initiated Restart is the only operation that applies static parameter + * changes or dynamic parameter changes requested with PendingReboot; Stop followed by Start and scheduled + * maintenance do not apply them. Power operations are supported only at pool scope in this API version; there is no + * cluster-level restart action. When the pool has no allocated nodes, the operation succeeds without restarting any + * nodes, pending changes are considered applied, parameterGroup.syncStatus becomes InSync, and the resulting + * configuration applies to nodes allocated later. The request fails with 409 Conflict when another operation is in + * progress or the pool is in any other incompatible state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response restartWithResponse(String resourceGroupName, String clusterName, String poolName, + Context context) { + final String accept = "application/json"; + return service.restartSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, poolName, accept, context); + } + + /** + * Restarts the PostgreSQL container on all allocated nodes in a ready HorizonDB pool and applies pending dynamic + * and static parameter changes. This customer-initiated Restart is the only operation that applies static parameter + * changes or dynamic parameter changes requested with PendingReboot; Stop followed by Start and scheduled + * maintenance do not apply them. Power operations are supported only at pool scope in this API version; there is no + * cluster-level restart action. When the pool has no allocated nodes, the operation succeeds without restarting any + * nodes, pending changes are considered applied, parameterGroup.syncStatus becomes InSync, and the resulting + * configuration applies to nodes allocated later. The request fails with 409 Conflict when another operation is in + * progress or the pool is in any other incompatible state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, PoolInner> beginRestartAsync(String resourceGroupName, String clusterName, + String poolName) { + Mono>> mono = restartWithResponseAsync(resourceGroupName, clusterName, poolName); + return this.client.getLroResult(mono, this.client.getHttpPipeline(), PoolInner.class, + PoolInner.class, this.client.getContext()); + } + + /** + * Restarts the PostgreSQL container on all allocated nodes in a ready HorizonDB pool and applies pending dynamic + * and static parameter changes. This customer-initiated Restart is the only operation that applies static parameter + * changes or dynamic parameter changes requested with PendingReboot; Stop followed by Start and scheduled + * maintenance do not apply them. Power operations are supported only at pool scope in this API version; there is no + * cluster-level restart action. When the pool has no allocated nodes, the operation succeeds without restarting any + * nodes, pending changes are considered applied, parameterGroup.syncStatus becomes InSync, and the resulting + * configuration applies to nodes allocated later. The request fails with 409 Conflict when another operation is in + * progress or the pool is in any other incompatible state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, PoolInner> beginRestart(String resourceGroupName, String clusterName, + String poolName) { + Response response = restartWithResponse(resourceGroupName, clusterName, poolName); + return this.client.getLroResult(response, PoolInner.class, PoolInner.class, Context.NONE); + } + + /** + * Restarts the PostgreSQL container on all allocated nodes in a ready HorizonDB pool and applies pending dynamic + * and static parameter changes. This customer-initiated Restart is the only operation that applies static parameter + * changes or dynamic parameter changes requested with PendingReboot; Stop followed by Start and scheduled + * maintenance do not apply them. Power operations are supported only at pool scope in this API version; there is no + * cluster-level restart action. When the pool has no allocated nodes, the operation succeeds without restarting any + * nodes, pending changes are considered applied, parameterGroup.syncStatus becomes InSync, and the resulting + * configuration applies to nodes allocated later. The request fails with 409 Conflict when another operation is in + * progress or the pool is in any other incompatible state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, PoolInner> beginRestart(String resourceGroupName, String clusterName, + String poolName, Context context) { + Response response = restartWithResponse(resourceGroupName, clusterName, poolName, context); + return this.client.getLroResult(response, PoolInner.class, PoolInner.class, context); + } + + /** + * Restarts the PostgreSQL container on all allocated nodes in a ready HorizonDB pool and applies pending dynamic + * and static parameter changes. This customer-initiated Restart is the only operation that applies static parameter + * changes or dynamic parameter changes requested with PendingReboot; Stop followed by Start and scheduled + * maintenance do not apply them. Power operations are supported only at pool scope in this API version; there is no + * cluster-level restart action. When the pool has no allocated nodes, the operation succeeds without restarting any + * nodes, pending changes are considered applied, parameterGroup.syncStatus becomes InSync, and the resulting + * configuration applies to nodes allocated later. The request fails with 409 Conflict when another operation is in + * progress or the pool is in any other incompatible state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono restartAsync(String resourceGroupName, String clusterName, String poolName) { + return beginRestartAsync(resourceGroupName, clusterName, poolName).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Restarts the PostgreSQL container on all allocated nodes in a ready HorizonDB pool and applies pending dynamic + * and static parameter changes. This customer-initiated Restart is the only operation that applies static parameter + * changes or dynamic parameter changes requested with PendingReboot; Stop followed by Start and scheduled + * maintenance do not apply them. Power operations are supported only at pool scope in this API version; there is no + * cluster-level restart action. When the pool has no allocated nodes, the operation succeeds without restarting any + * nodes, pending changes are considered applied, parameterGroup.syncStatus becomes InSync, and the resulting + * configuration applies to nodes allocated later. The request fails with 409 Conflict when another operation is in + * progress or the pool is in any other incompatible state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public PoolInner restart(String resourceGroupName, String clusterName, String poolName) { + return beginRestart(resourceGroupName, clusterName, poolName).getFinalResult(); + } + + /** + * Restarts the PostgreSQL container on all allocated nodes in a ready HorizonDB pool and applies pending dynamic + * and static parameter changes. This customer-initiated Restart is the only operation that applies static parameter + * changes or dynamic parameter changes requested with PendingReboot; Stop followed by Start and scheduled + * maintenance do not apply them. Power operations are supported only at pool scope in this API version; there is no + * cluster-level restart action. When the pool has no allocated nodes, the operation succeeds without restarting any + * nodes, pending changes are considered applied, parameterGroup.syncStatus becomes InSync, and the resulting + * configuration applies to nodes allocated later. The request fails with 409 Conflict when another operation is in + * progress or the pool is in any other incompatible state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public PoolInner restart(String resourceGroupName, String clusterName, String poolName, Context context) { + return beginRestart(resourceGroupName, clusterName, poolName, context).getFinalResult(); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a Pool list operation along with {@link PagedResponse} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> listNextSinglePageAsync(String nextLink) { + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), + res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a Pool list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink) { + final String accept = "application/json"; + Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } + + /** + * Get the next page of items. + * + * @param nextLink The URL to get the next list of items. + * @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 of a Pool list operation along with {@link PagedResponse}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private PagedResponse listNextSinglePage(String nextLink, Context context) { + final String accept = "application/json"; + Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); + return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), + res.getValue().nextLink(), null); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbReplicasImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PoolsImpl.java similarity index 58% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbReplicasImpl.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PoolsImpl.java index 2a981612c3cef..132e1b413e5f5 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbReplicasImpl.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PoolsImpl.java @@ -9,64 +9,113 @@ import com.azure.core.http.rest.SimpleResponse; import com.azure.core.util.Context; import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.horizondb.fluent.HorizonDbReplicasClient; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbReplicaInner; -import com.azure.resourcemanager.horizondb.models.HorizonDbReplica; -import com.azure.resourcemanager.horizondb.models.HorizonDbReplicas; +import com.azure.resourcemanager.horizondb.fluent.PoolsClient; +import com.azure.resourcemanager.horizondb.fluent.models.PoolInner; +import com.azure.resourcemanager.horizondb.models.Pool; +import com.azure.resourcemanager.horizondb.models.Pools; -public final class HorizonDbReplicasImpl implements HorizonDbReplicas { - private static final ClientLogger LOGGER = new ClientLogger(HorizonDbReplicasImpl.class); +public final class PoolsImpl implements Pools { + private static final ClientLogger LOGGER = new ClientLogger(PoolsImpl.class); - private final HorizonDbReplicasClient innerClient; + private final PoolsClient innerClient; private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; - public HorizonDbReplicasImpl(HorizonDbReplicasClient innerClient, - com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + public PoolsImpl(PoolsClient innerClient, com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { this.innerClient = innerClient; this.serviceManager = serviceManager; } - public Response getWithResponse(String resourceGroupName, String clusterName, String poolName, - String replicaName, Context context) { - Response inner - = this.serviceClient().getWithResponse(resourceGroupName, clusterName, poolName, replicaName, context); + public Response getWithResponse(String resourceGroupName, String clusterName, String poolName, + Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, clusterName, poolName, context); return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new HorizonDbReplicaImpl(inner.getValue(), this.manager())); + new PoolImpl(inner.getValue(), this.manager())); } - public HorizonDbReplica get(String resourceGroupName, String clusterName, String poolName, String replicaName) { - HorizonDbReplicaInner inner = this.serviceClient().get(resourceGroupName, clusterName, poolName, replicaName); + public Pool get(String resourceGroupName, String clusterName, String poolName) { + PoolInner inner = this.serviceClient().get(resourceGroupName, clusterName, poolName); if (inner != null) { - return new HorizonDbReplicaImpl(inner, this.manager()); + return new PoolImpl(inner, this.manager()); } else { return null; } } - public PagedIterable list(String resourceGroupName, String clusterName, String poolName) { - PagedIterable inner - = this.serviceClient().list(resourceGroupName, clusterName, poolName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new HorizonDbReplicaImpl(inner1, this.manager())); + public void delete(String resourceGroupName, String clusterName, String poolName) { + this.serviceClient().delete(resourceGroupName, clusterName, poolName); } - public PagedIterable list(String resourceGroupName, String clusterName, String poolName, - Context context) { - PagedIterable inner - = this.serviceClient().list(resourceGroupName, clusterName, poolName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new HorizonDbReplicaImpl(inner1, this.manager())); + public void delete(String resourceGroupName, String clusterName, String poolName, Context context) { + this.serviceClient().delete(resourceGroupName, clusterName, poolName, context); } - public void delete(String resourceGroupName, String clusterName, String poolName, String replicaName) { - this.serviceClient().delete(resourceGroupName, clusterName, poolName, replicaName); + public PagedIterable list(String resourceGroupName, String clusterName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, clusterName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new PoolImpl(inner1, this.manager())); } - public void delete(String resourceGroupName, String clusterName, String poolName, String replicaName, - Context context) { - this.serviceClient().delete(resourceGroupName, clusterName, poolName, replicaName, context); + public PagedIterable list(String resourceGroupName, String clusterName, Context context) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, clusterName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new PoolImpl(inner1, this.manager())); + } + + public Pool start(String resourceGroupName, String clusterName, String poolName) { + PoolInner inner = this.serviceClient().start(resourceGroupName, clusterName, poolName); + if (inner != null) { + return new PoolImpl(inner, this.manager()); + } else { + return null; + } + } + + public Pool start(String resourceGroupName, String clusterName, String poolName, Context context) { + PoolInner inner = this.serviceClient().start(resourceGroupName, clusterName, poolName, context); + if (inner != null) { + return new PoolImpl(inner, this.manager()); + } else { + return null; + } + } + + public Pool stop(String resourceGroupName, String clusterName, String poolName) { + PoolInner inner = this.serviceClient().stop(resourceGroupName, clusterName, poolName); + if (inner != null) { + return new PoolImpl(inner, this.manager()); + } else { + return null; + } } - public HorizonDbReplica getById(String id) { + public Pool stop(String resourceGroupName, String clusterName, String poolName, Context context) { + PoolInner inner = this.serviceClient().stop(resourceGroupName, clusterName, poolName, context); + if (inner != null) { + return new PoolImpl(inner, this.manager()); + } else { + return null; + } + } + + public Pool restart(String resourceGroupName, String clusterName, String poolName) { + PoolInner inner = this.serviceClient().restart(resourceGroupName, clusterName, poolName); + if (inner != null) { + return new PoolImpl(inner, this.manager()); + } else { + return null; + } + } + + public Pool restart(String resourceGroupName, String clusterName, String poolName, Context context) { + PoolInner inner = this.serviceClient().restart(resourceGroupName, clusterName, poolName, context); + if (inner != null) { + return new PoolImpl(inner, this.manager()); + } else { + return null; + } + } + + public Pool getById(String id) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -82,15 +131,10 @@ public HorizonDbReplica getById(String id) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'pools'.", id))); } - String replicaName = ResourceManagerUtils.getValueFromIdByName(id, "replicas"); - if (replicaName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'replicas'.", id))); - } - return this.getWithResponse(resourceGroupName, clusterName, poolName, replicaName, Context.NONE).getValue(); + return this.getWithResponse(resourceGroupName, clusterName, poolName, Context.NONE).getValue(); } - public Response getByIdWithResponse(String id, Context context) { + public Response getByIdWithResponse(String id, Context context) { String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); if (resourceGroupName == null) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( @@ -106,12 +150,7 @@ public Response getByIdWithResponse(String id, Context context throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'pools'.", id))); } - String replicaName = ResourceManagerUtils.getValueFromIdByName(id, "replicas"); - if (replicaName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'replicas'.", id))); - } - return this.getWithResponse(resourceGroupName, clusterName, poolName, replicaName, context); + return this.getWithResponse(resourceGroupName, clusterName, poolName, context); } public void deleteById(String id) { @@ -130,12 +169,7 @@ public void deleteById(String id) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'pools'.", id))); } - String replicaName = ResourceManagerUtils.getValueFromIdByName(id, "replicas"); - if (replicaName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'replicas'.", id))); - } - this.delete(resourceGroupName, clusterName, poolName, replicaName, Context.NONE); + this.delete(resourceGroupName, clusterName, poolName, Context.NONE); } public void deleteByIdWithResponse(String id, Context context) { @@ -154,15 +188,10 @@ public void deleteByIdWithResponse(String id, Context context) { throw LOGGER.logExceptionAsError(new IllegalArgumentException( String.format("The resource ID '%s' is not valid. Missing path segment 'pools'.", id))); } - String replicaName = ResourceManagerUtils.getValueFromIdByName(id, "replicas"); - if (replicaName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'replicas'.", id))); - } - this.delete(resourceGroupName, clusterName, poolName, replicaName, context); + this.delete(resourceGroupName, clusterName, poolName, context); } - private HorizonDbReplicasClient serviceClient() { + private PoolsClient serviceClient() { return this.innerClient; } @@ -170,7 +199,7 @@ private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { return this.serviceManager; } - public HorizonDbReplicaImpl define(String name) { - return new HorizonDbReplicaImpl(name, this.manager()); + public PoolImpl define(String name) { + return new PoolImpl(name, this.manager()); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PrivateEndpointConnectionResourceImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PrivateEndpointConnectionResourceImpl.java index 78e3abf0af86b..0e003ed008b61 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PrivateEndpointConnectionResourceImpl.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PrivateEndpointConnectionResourceImpl.java @@ -5,21 +5,17 @@ package com.azure.resourcemanager.horizondb.implementation; import com.azure.core.management.SystemData; +import com.azure.core.util.Context; import com.azure.resourcemanager.horizondb.fluent.models.PrivateEndpointConnectionResourceInner; import com.azure.resourcemanager.horizondb.models.PrivateEndpointConnectionProperties; import com.azure.resourcemanager.horizondb.models.PrivateEndpointConnectionResource; -public final class PrivateEndpointConnectionResourceImpl implements PrivateEndpointConnectionResource { +public final class PrivateEndpointConnectionResourceImpl implements PrivateEndpointConnectionResource, + PrivateEndpointConnectionResource.Definition, PrivateEndpointConnectionResource.Update { private PrivateEndpointConnectionResourceInner innerObject; private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; - PrivateEndpointConnectionResourceImpl(PrivateEndpointConnectionResourceInner innerObject, - com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - public String id() { return this.innerModel().id(); } @@ -40,6 +36,10 @@ public SystemData systemData() { return this.innerModel().systemData(); } + public String resourceGroupName() { + return resourceGroupName; + } + public PrivateEndpointConnectionResourceInner innerModel() { return this.innerObject; } @@ -47,4 +47,88 @@ public PrivateEndpointConnectionResourceInner innerModel() { private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { return this.serviceManager; } + + private String resourceGroupName; + + private String clusterName; + + private String privateEndpointConnectionName; + + public PrivateEndpointConnectionResourceImpl withExistingCluster(String resourceGroupName, String clusterName) { + this.resourceGroupName = resourceGroupName; + this.clusterName = clusterName; + return this; + } + + public PrivateEndpointConnectionResource create() { + this.innerObject = serviceManager.serviceClient() + .getPrivateEndpointConnections() + .approveOrReject(resourceGroupName, clusterName, privateEndpointConnectionName, this.innerModel(), + Context.NONE); + return this; + } + + public PrivateEndpointConnectionResource create(Context context) { + this.innerObject = serviceManager.serviceClient() + .getPrivateEndpointConnections() + .approveOrReject(resourceGroupName, clusterName, privateEndpointConnectionName, this.innerModel(), context); + return this; + } + + PrivateEndpointConnectionResourceImpl(String name, + com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerObject = new PrivateEndpointConnectionResourceInner(); + this.serviceManager = serviceManager; + this.privateEndpointConnectionName = name; + } + + public PrivateEndpointConnectionResourceImpl update() { + return this; + } + + public PrivateEndpointConnectionResource apply() { + this.innerObject = serviceManager.serviceClient() + .getPrivateEndpointConnections() + .approveOrReject(resourceGroupName, clusterName, privateEndpointConnectionName, this.innerModel(), + Context.NONE); + return this; + } + + public PrivateEndpointConnectionResource apply(Context context) { + this.innerObject = serviceManager.serviceClient() + .getPrivateEndpointConnections() + .approveOrReject(resourceGroupName, clusterName, privateEndpointConnectionName, this.innerModel(), context); + return this; + } + + PrivateEndpointConnectionResourceImpl(PrivateEndpointConnectionResourceInner innerObject, + com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); + this.clusterName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "clusters"); + this.privateEndpointConnectionName + = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "privateEndpointConnections"); + } + + public PrivateEndpointConnectionResource refresh() { + this.innerObject = serviceManager.serviceClient() + .getPrivateEndpointConnections() + .getWithResponse(resourceGroupName, clusterName, privateEndpointConnectionName, Context.NONE) + .getValue(); + return this; + } + + public PrivateEndpointConnectionResource refresh(Context context) { + this.innerObject = serviceManager.serviceClient() + .getPrivateEndpointConnections() + .getWithResponse(resourceGroupName, clusterName, privateEndpointConnectionName, context) + .getValue(); + return this; + } + + public PrivateEndpointConnectionResourceImpl withProperties(PrivateEndpointConnectionProperties properties) { + this.innerModel().withProperties(properties); + return this; + } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbPrivateEndpointConnectionsClientImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PrivateEndpointConnectionsClientImpl.java similarity index 75% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbPrivateEndpointConnectionsClientImpl.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PrivateEndpointConnectionsClientImpl.java index a47e2202931c0..2f31f8140475a 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbPrivateEndpointConnectionsClientImpl.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PrivateEndpointConnectionsClientImpl.java @@ -32,7 +32,7 @@ import com.azure.core.util.FluxUtil; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.horizondb.fluent.HorizonDbPrivateEndpointConnectionsClient; +import com.azure.resourcemanager.horizondb.fluent.PrivateEndpointConnectionsClient; import com.azure.resourcemanager.horizondb.fluent.models.PrivateEndpointConnectionResourceInner; import com.azure.resourcemanager.horizondb.implementation.models.PrivateEndpointConnectionResourceListResult; import java.nio.ByteBuffer; @@ -40,13 +40,13 @@ import reactor.core.publisher.Mono; /** - * An instance of this class provides access to all the operations defined in HorizonDbPrivateEndpointConnectionsClient. + * An instance of this class provides access to all the operations defined in PrivateEndpointConnectionsClient. */ -public final class HorizonDbPrivateEndpointConnectionsClientImpl implements HorizonDbPrivateEndpointConnectionsClient { +public final class PrivateEndpointConnectionsClientImpl implements PrivateEndpointConnectionsClient { /** * The proxy service used to perform REST calls. */ - private final HorizonDbPrivateEndpointConnectionsService service; + private final PrivateEndpointConnectionsService service; /** * The service client containing this operation class. @@ -54,23 +54,23 @@ public final class HorizonDbPrivateEndpointConnectionsClientImpl implements Hori private final HorizonDbManagementClientImpl client; /** - * Initializes an instance of HorizonDbPrivateEndpointConnectionsClientImpl. + * Initializes an instance of PrivateEndpointConnectionsClientImpl. * * @param client the instance of the service client containing this operation class. */ - HorizonDbPrivateEndpointConnectionsClientImpl(HorizonDbManagementClientImpl client) { - this.service = RestProxy.create(HorizonDbPrivateEndpointConnectionsService.class, client.getHttpPipeline(), + PrivateEndpointConnectionsClientImpl(HorizonDbManagementClientImpl client) { + this.service = RestProxy.create(PrivateEndpointConnectionsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for HorizonDbManagementClientHorizonDbPrivateEndpointConnections to be - * used by the proxy service to perform REST calls. + * The interface defining all the services for HorizonDbManagementClientPrivateEndpointConnections to be used by the + * proxy service to perform REST calls. */ @Host("{endpoint}") - @ServiceInterface(name = "HorizonDbManagementClientHorizonDbPrivateEndpointConnections") - public interface HorizonDbPrivateEndpointConnectionsService { + @ServiceInterface(name = "HorizonDbManagementClientPrivateEndpointConnections") + public interface PrivateEndpointConnectionsService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}") @ExpectedResponses({ 200 }) @@ -112,7 +112,7 @@ Response listSync(@HostParam("endpo @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> updateStatus(@HostParam("endpoint") String endpoint, + Mono>> approveOrReject(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, @PathParam("privateEndpointConnectionName") String privateEndpointConnectionName, @@ -122,7 +122,7 @@ Mono> updateStatus(@HostParam(" @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateEndpointConnections/{privateEndpointConnectionName}") @ExpectedResponses({ 200, 201 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response updateStatusSync(@HostParam("endpoint") String endpoint, + Response approveOrRejectSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, @PathParam("privateEndpointConnectionName") String privateEndpointConnectionName, @@ -365,7 +365,10 @@ public PagedIterable list(String resourc } /** - * Approves or rejects a private endpoint connection. + * Approves or rejects an existing private endpoint connection. Approval requires the parent Cluster to contain at + * least one Pool. An approval attempt when the Cluster has no Pools fails with 409 Conflict and the stable error + * code PrivateEndpointRequiresPool. Rejection remains allowed when the Cluster has no Pools so that existing + * connections can be cleaned up. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -379,20 +382,22 @@ public PagedIterable list(String resourc * {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> updateStatusWithResponseAsync( - String resourceGroupName, String clusterName, String privateEndpointConnectionName, - PrivateEndpointConnectionResourceInner resource) { + public Mono>> approveOrRejectWithResponseAsync(String resourceGroupName, + String clusterName, String privateEndpointConnectionName, PrivateEndpointConnectionResourceInner resource) { final String contentType = "application/json"; final String accept = "application/json"; return FluxUtil - .withContext(context -> service.updateStatus(this.client.getEndpoint(), this.client.getApiVersion(), + .withContext(context -> service.approveOrReject(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, clusterName, privateEndpointConnectionName, contentType, accept, resource, context)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } /** - * Approves or rejects a private endpoint connection. + * Approves or rejects an existing private endpoint connection. Approval requires the parent Cluster to contain at + * least one Pool. An approval attempt when the Cluster has no Pools fails with 409 Conflict and the stable error + * code PrivateEndpointRequiresPool. Rejection remains allowed when the Cluster has no Pools so that existing + * connections can be cleaned up. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -402,17 +407,23 @@ public Mono> updateStatusWithRe * @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 private endpoint connection resource on successful completion of {@link Mono}. + * @return a private endpoint connection resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono updateStatusAsync(String resourceGroupName, String clusterName, + private Response approveOrRejectWithResponse(String resourceGroupName, String clusterName, String privateEndpointConnectionName, PrivateEndpointConnectionResourceInner resource) { - return updateStatusWithResponseAsync(resourceGroupName, clusterName, privateEndpointConnectionName, resource) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); + final String contentType = "application/json"; + final String accept = "application/json"; + return service.approveOrRejectSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, clusterName, privateEndpointConnectionName, contentType, + accept, resource, Context.NONE); } /** - * Approves or rejects a private endpoint connection. + * Approves or rejects an existing private endpoint connection. Approval requires the parent Cluster to contain at + * least one Pool. An approval attempt when the Cluster has no Pools fails with 409 Conflict and the stable error + * code PrivateEndpointRequiresPool. Rejection remains allowed when the Cluster has no Pools so that existing + * connections can be cleaned up. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -426,18 +437,125 @@ public Mono updateStatusAsync(String res * @return a private endpoint connection resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response updateStatusWithResponse(String resourceGroupName, - String clusterName, String privateEndpointConnectionName, PrivateEndpointConnectionResourceInner resource, - Context context) { + private Response approveOrRejectWithResponse(String resourceGroupName, String clusterName, + String privateEndpointConnectionName, PrivateEndpointConnectionResourceInner resource, Context context) { final String contentType = "application/json"; final String accept = "application/json"; - return service.updateStatusSync(this.client.getEndpoint(), this.client.getApiVersion(), + return service.approveOrRejectSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, clusterName, privateEndpointConnectionName, contentType, accept, resource, context); } /** - * Approves or rejects a private endpoint connection. + * Approves or rejects an existing private endpoint connection. Approval requires the parent Cluster to contain at + * least one Pool. An approval attempt when the Cluster has no Pools fails with 409 Conflict and the stable error + * code PrivateEndpointRequiresPool. Rejection remains allowed when the Cluster has no Pools so that existing + * connections can be cleaned up. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure + * resource. + * @param resource Resource create parameters. + * @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 a private endpoint connection resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public PollerFlux, PrivateEndpointConnectionResourceInner> + beginApproveOrRejectAsync(String resourceGroupName, String clusterName, String privateEndpointConnectionName, + PrivateEndpointConnectionResourceInner resource) { + Mono>> mono + = approveOrRejectWithResponseAsync(resourceGroupName, clusterName, privateEndpointConnectionName, resource); + return this.client.getLroResult( + mono, this.client.getHttpPipeline(), PrivateEndpointConnectionResourceInner.class, + PrivateEndpointConnectionResourceInner.class, this.client.getContext()); + } + + /** + * Approves or rejects an existing private endpoint connection. Approval requires the parent Cluster to contain at + * least one Pool. An approval attempt when the Cluster has no Pools fails with 409 Conflict and the stable error + * code PrivateEndpointRequiresPool. Rejection remains allowed when the Cluster has no Pools so that existing + * connections can be cleaned up. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure + * resource. + * @param resource Resource create parameters. + * @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 a private endpoint connection resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, PrivateEndpointConnectionResourceInner> + beginApproveOrReject(String resourceGroupName, String clusterName, String privateEndpointConnectionName, + PrivateEndpointConnectionResourceInner resource) { + Response response + = approveOrRejectWithResponse(resourceGroupName, clusterName, privateEndpointConnectionName, resource); + return this.client.getLroResult( + response, PrivateEndpointConnectionResourceInner.class, PrivateEndpointConnectionResourceInner.class, + Context.NONE); + } + + /** + * Approves or rejects an existing private endpoint connection. Approval requires the parent Cluster to contain at + * least one Pool. An approval attempt when the Cluster has no Pools fails with 409 Conflict and the stable error + * code PrivateEndpointRequiresPool. Rejection remains allowed when the Cluster has no Pools so that existing + * connections can be cleaned up. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure + * resource. + * @param resource Resource create parameters. + * @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 a private endpoint connection resource. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, PrivateEndpointConnectionResourceInner> + beginApproveOrReject(String resourceGroupName, String clusterName, String privateEndpointConnectionName, + PrivateEndpointConnectionResourceInner resource, Context context) { + Response response = approveOrRejectWithResponse(resourceGroupName, clusterName, + privateEndpointConnectionName, resource, context); + return this.client.getLroResult( + response, PrivateEndpointConnectionResourceInner.class, PrivateEndpointConnectionResourceInner.class, + context); + } + + /** + * Approves or rejects an existing private endpoint connection. Approval requires the parent Cluster to contain at + * least one Pool. An approval attempt when the Cluster has no Pools fails with 409 Conflict and the stable error + * code PrivateEndpointRequiresPool. Rejection remains allowed when the Cluster has no Pools so that existing + * connections can be cleaned up. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure + * resource. + * @param resource Resource create parameters. + * @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 private endpoint connection resource on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono approveOrRejectAsync(String resourceGroupName, + String clusterName, String privateEndpointConnectionName, PrivateEndpointConnectionResourceInner resource) { + return beginApproveOrRejectAsync(resourceGroupName, clusterName, privateEndpointConnectionName, resource).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Approves or rejects an existing private endpoint connection. Approval requires the parent Cluster to contain at + * least one Pool. An approval attempt when the Cluster has no Pools fails with 409 Conflict and the stable error + * code PrivateEndpointRequiresPool. Rejection remains allowed when the Cluster has no Pools so that existing + * connections can be cleaned up. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -450,10 +568,34 @@ public Response updateStatusWithResponse * @return a private endpoint connection resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public PrivateEndpointConnectionResourceInner updateStatus(String resourceGroupName, String clusterName, + public PrivateEndpointConnectionResourceInner approveOrReject(String resourceGroupName, String clusterName, String privateEndpointConnectionName, PrivateEndpointConnectionResourceInner resource) { - return updateStatusWithResponse(resourceGroupName, clusterName, privateEndpointConnectionName, resource, - Context.NONE).getValue(); + return beginApproveOrReject(resourceGroupName, clusterName, privateEndpointConnectionName, resource) + .getFinalResult(); + } + + /** + * Approves or rejects an existing private endpoint connection. Approval requires the parent Cluster to contain at + * least one Pool. An approval attempt when the Cluster has no Pools fails with 409 Conflict and the stable error + * code PrivateEndpointRequiresPool. Rejection remains allowed when the Cluster has no Pools so that existing + * connections can be cleaned up. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure + * resource. + * @param resource Resource create parameters. + * @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 a private endpoint connection resource. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public PrivateEndpointConnectionResourceInner approveOrReject(String resourceGroupName, String clusterName, + String privateEndpointConnectionName, PrivateEndpointConnectionResourceInner resource, Context context) { + return beginApproveOrReject(resourceGroupName, clusterName, privateEndpointConnectionName, resource, context) + .getFinalResult(); } /** diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PrivateEndpointConnectionsImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PrivateEndpointConnectionsImpl.java new file mode 100644 index 0000000000000..708dc3f118e56 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PrivateEndpointConnectionsImpl.java @@ -0,0 +1,165 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.horizondb.fluent.PrivateEndpointConnectionsClient; +import com.azure.resourcemanager.horizondb.fluent.models.PrivateEndpointConnectionResourceInner; +import com.azure.resourcemanager.horizondb.models.PrivateEndpointConnectionResource; +import com.azure.resourcemanager.horizondb.models.PrivateEndpointConnections; + +public final class PrivateEndpointConnectionsImpl implements PrivateEndpointConnections { + private static final ClientLogger LOGGER = new ClientLogger(PrivateEndpointConnectionsImpl.class); + + private final PrivateEndpointConnectionsClient innerClient; + + private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; + + public PrivateEndpointConnectionsImpl(PrivateEndpointConnectionsClient innerClient, + com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String resourceGroupName, String clusterName, + String privateEndpointConnectionName, Context context) { + Response inner = this.serviceClient() + .getWithResponse(resourceGroupName, clusterName, privateEndpointConnectionName, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new PrivateEndpointConnectionResourceImpl(inner.getValue(), this.manager())); + } + + public PrivateEndpointConnectionResource get(String resourceGroupName, String clusterName, + String privateEndpointConnectionName) { + PrivateEndpointConnectionResourceInner inner + = this.serviceClient().get(resourceGroupName, clusterName, privateEndpointConnectionName); + if (inner != null) { + return new PrivateEndpointConnectionResourceImpl(inner, this.manager()); + } else { + return null; + } + } + + public PagedIterable list(String resourceGroupName, String clusterName) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, clusterName); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new PrivateEndpointConnectionResourceImpl(inner1, this.manager())); + } + + public PagedIterable list(String resourceGroupName, String clusterName, + Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, clusterName, context); + return ResourceManagerUtils.mapPage(inner, + inner1 -> new PrivateEndpointConnectionResourceImpl(inner1, this.manager())); + } + + public void delete(String resourceGroupName, String clusterName, String privateEndpointConnectionName) { + this.serviceClient().delete(resourceGroupName, clusterName, privateEndpointConnectionName); + } + + public void delete(String resourceGroupName, String clusterName, String privateEndpointConnectionName, + Context context) { + this.serviceClient().delete(resourceGroupName, clusterName, privateEndpointConnectionName, context); + } + + public PrivateEndpointConnectionResource getById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String clusterName = ResourceManagerUtils.getValueFromIdByName(id, "clusters"); + if (clusterName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); + } + String privateEndpointConnectionName + = ResourceManagerUtils.getValueFromIdByName(id, "privateEndpointConnections"); + if (privateEndpointConnectionName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'privateEndpointConnections'.", id))); + } + return this.getWithResponse(resourceGroupName, clusterName, privateEndpointConnectionName, Context.NONE) + .getValue(); + } + + public Response getByIdWithResponse(String id, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String clusterName = ResourceManagerUtils.getValueFromIdByName(id, "clusters"); + if (clusterName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); + } + String privateEndpointConnectionName + = ResourceManagerUtils.getValueFromIdByName(id, "privateEndpointConnections"); + if (privateEndpointConnectionName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'privateEndpointConnections'.", id))); + } + return this.getWithResponse(resourceGroupName, clusterName, privateEndpointConnectionName, context); + } + + public void deleteById(String id) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String clusterName = ResourceManagerUtils.getValueFromIdByName(id, "clusters"); + if (clusterName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); + } + String privateEndpointConnectionName + = ResourceManagerUtils.getValueFromIdByName(id, "privateEndpointConnections"); + if (privateEndpointConnectionName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'privateEndpointConnections'.", id))); + } + this.delete(resourceGroupName, clusterName, privateEndpointConnectionName, Context.NONE); + } + + public void deleteByIdWithResponse(String id, Context context) { + String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); + if (resourceGroupName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); + } + String clusterName = ResourceManagerUtils.getValueFromIdByName(id, "clusters"); + if (clusterName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException( + String.format("The resource ID '%s' is not valid. Missing path segment 'clusters'.", id))); + } + String privateEndpointConnectionName + = ResourceManagerUtils.getValueFromIdByName(id, "privateEndpointConnections"); + if (privateEndpointConnectionName == null) { + throw LOGGER.logExceptionAsError(new IllegalArgumentException(String + .format("The resource ID '%s' is not valid. Missing path segment 'privateEndpointConnections'.", id))); + } + this.delete(resourceGroupName, clusterName, privateEndpointConnectionName, context); + } + + private PrivateEndpointConnectionsClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { + return this.serviceManager; + } + + public PrivateEndpointConnectionResourceImpl define(String name) { + return new PrivateEndpointConnectionResourceImpl(name, this.manager()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbPrivateLinkResourceImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PrivateLinkResourceImpl.java similarity index 71% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbPrivateLinkResourceImpl.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PrivateLinkResourceImpl.java index 5b45a5d835a58..0658f984ad2a6 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbPrivateLinkResourceImpl.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PrivateLinkResourceImpl.java @@ -5,16 +5,16 @@ package com.azure.resourcemanager.horizondb.implementation; import com.azure.core.management.SystemData; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbPrivateLinkResourceInner; -import com.azure.resourcemanager.horizondb.models.HorizonDbPrivateLinkResource; +import com.azure.resourcemanager.horizondb.fluent.models.PrivateLinkResourceInner; +import com.azure.resourcemanager.horizondb.models.PrivateLinkResource; import com.azure.resourcemanager.horizondb.models.PrivateLinkResourceProperties; -public final class HorizonDbPrivateLinkResourceImpl implements HorizonDbPrivateLinkResource { - private HorizonDbPrivateLinkResourceInner innerObject; +public final class PrivateLinkResourceImpl implements PrivateLinkResource { + private PrivateLinkResourceInner innerObject; private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; - HorizonDbPrivateLinkResourceImpl(HorizonDbPrivateLinkResourceInner innerObject, + PrivateLinkResourceImpl(PrivateLinkResourceInner innerObject, com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { this.innerObject = innerObject; this.serviceManager = serviceManager; @@ -40,7 +40,7 @@ public SystemData systemData() { return this.innerModel().systemData(); } - public HorizonDbPrivateLinkResourceInner innerModel() { + public PrivateLinkResourceInner innerModel() { return this.innerObject; } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbPrivateLinkResourcesClientImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PrivateLinkResourcesClientImpl.java similarity index 77% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbPrivateLinkResourcesClientImpl.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PrivateLinkResourcesClientImpl.java index 153a1b4e4db45..ce48704aecfeb 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbPrivateLinkResourcesClientImpl.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PrivateLinkResourcesClientImpl.java @@ -25,19 +25,19 @@ import com.azure.core.management.exception.ManagementException; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; -import com.azure.resourcemanager.horizondb.fluent.HorizonDbPrivateLinkResourcesClient; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbPrivateLinkResourceInner; -import com.azure.resourcemanager.horizondb.implementation.models.HorizonDbPrivateLinkResourceListResult; +import com.azure.resourcemanager.horizondb.fluent.PrivateLinkResourcesClient; +import com.azure.resourcemanager.horizondb.fluent.models.PrivateLinkResourceInner; +import com.azure.resourcemanager.horizondb.implementation.models.PrivateLinkResourceListResult; import reactor.core.publisher.Mono; /** - * An instance of this class provides access to all the operations defined in HorizonDbPrivateLinkResourcesClient. + * An instance of this class provides access to all the operations defined in PrivateLinkResourcesClient. */ -public final class HorizonDbPrivateLinkResourcesClientImpl implements HorizonDbPrivateLinkResourcesClient { +public final class PrivateLinkResourcesClientImpl implements PrivateLinkResourcesClient { /** * The proxy service used to perform REST calls. */ - private final HorizonDbPrivateLinkResourcesService service; + private final PrivateLinkResourcesService service; /** * The service client containing this operation class. @@ -45,28 +45,28 @@ public final class HorizonDbPrivateLinkResourcesClientImpl implements HorizonDbP private final HorizonDbManagementClientImpl client; /** - * Initializes an instance of HorizonDbPrivateLinkResourcesClientImpl. + * Initializes an instance of PrivateLinkResourcesClientImpl. * * @param client the instance of the service client containing this operation class. */ - HorizonDbPrivateLinkResourcesClientImpl(HorizonDbManagementClientImpl client) { - this.service = RestProxy.create(HorizonDbPrivateLinkResourcesService.class, client.getHttpPipeline(), + PrivateLinkResourcesClientImpl(HorizonDbManagementClientImpl client) { + this.service = RestProxy.create(PrivateLinkResourcesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); this.client = client; } /** - * The interface defining all the services for HorizonDbManagementClientHorizonDbPrivateLinkResources to be used by - * the proxy service to perform REST calls. + * The interface defining all the services for HorizonDbManagementClientPrivateLinkResources to be used by the proxy + * service to perform REST calls. */ @Host("{endpoint}") - @ServiceInterface(name = "HorizonDbManagementClientHorizonDbPrivateLinkResources") - public interface HorizonDbPrivateLinkResourcesService { + @ServiceInterface(name = "HorizonDbManagementClientPrivateLinkResources") + public interface PrivateLinkResourcesService { @Headers({ "Content-Type: application/json" }) @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateLinkResources/{groupName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("endpoint") String endpoint, + Mono> get(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, @PathParam("groupName") String groupName, @HeaderParam("Accept") String accept, Context context); @@ -75,7 +75,7 @@ Mono> get(@HostParam("endpoint") Str @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateLinkResources/{groupName}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("endpoint") String endpoint, + Response getSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, @PathParam("groupName") String groupName, @HeaderParam("Accept") String accept, Context context); @@ -84,7 +84,7 @@ Response getSync(@HostParam("endpoint") Strin @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateLinkResources") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("endpoint") String endpoint, + Mono> list(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, @HeaderParam("Accept") String accept, Context context); @@ -93,7 +93,7 @@ Mono> list(@HostParam("endpoint @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.HorizonDb/clusters/{clusterName}/privateLinkResources") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listSync(@HostParam("endpoint") String endpoint, + Response listSync(@HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, @PathParam("resourceGroupName") String resourceGroupName, @PathParam("clusterName") String clusterName, @HeaderParam("Accept") String accept, Context context); @@ -102,7 +102,7 @@ Response listSync(@HostParam("endpoint") @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listNext( + Mono> listNext( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); @@ -110,7 +110,7 @@ Mono> listNext( @Get("{nextLink}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(ManagementException.class) - Response listNextSync( + Response listNextSync( @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, @HeaderParam("Accept") String accept, Context context); } @@ -127,8 +127,8 @@ Response listNextSync( * @return a private link resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono> getWithResponseAsync(String resourceGroupName, - String clusterName, String groupName) { + public Mono> getWithResponseAsync(String resourceGroupName, String clusterName, + String groupName) { final String accept = "application/json"; return FluxUtil .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), @@ -148,8 +148,7 @@ public Mono> getWithResponseAsync(St * @return a private link resource on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAsync(String resourceGroupName, String clusterName, - String groupName) { + public Mono getAsync(String resourceGroupName, String clusterName, String groupName) { return getWithResponseAsync(resourceGroupName, clusterName, groupName) .flatMap(res -> Mono.justOrEmpty(res.getValue())); } @@ -167,7 +166,7 @@ public Mono getAsync(String resourceGroupName * @return a private link resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String clusterName, + public Response getWithResponse(String resourceGroupName, String clusterName, String groupName, Context context) { final String accept = "application/json"; return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), @@ -186,7 +185,7 @@ public Response getWithResponse(String resour * @return a private link resource. */ @ServiceMethod(returns = ReturnType.SINGLE) - public HorizonDbPrivateLinkResourceInner get(String resourceGroupName, String clusterName, String groupName) { + public PrivateLinkResourceInner get(String resourceGroupName, String clusterName, String groupName) { return getWithResponse(resourceGroupName, clusterName, groupName, Context.NONE).getValue(); } @@ -198,17 +197,17 @@ public HorizonDbPrivateLinkResourceInner get(String resourceGroupName, String cl * @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 of a HorizonDbPrivateLinkResource list operation along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return the response of a PrivateLinkResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync(String resourceGroupName, + private Mono> listSinglePageAsync(String resourceGroupName, String clusterName) { final String accept = "application/json"; return FluxUtil .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -221,11 +220,10 @@ private Mono> listSinglePageAsy * @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 of a HorizonDbPrivateLinkResource list operation as paginated response with - * {@link PagedFlux}. + * @return the response of a PrivateLinkResource list operation as paginated response with {@link PagedFlux}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAsync(String resourceGroupName, String clusterName) { + public PagedFlux listAsync(String resourceGroupName, String clusterName) { return new PagedFlux<>(() -> listSinglePageAsync(resourceGroupName, clusterName), nextLink -> listNextSinglePageAsync(nextLink)); } @@ -238,13 +236,12 @@ public PagedFlux listAsync(String resourceGro * @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 of a HorizonDbPrivateLinkResource list operation along with {@link PagedResponse}. + * @return the response of a PrivateLinkResource list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(String resourceGroupName, - String clusterName) { + private PagedResponse listSinglePage(String resourceGroupName, String clusterName) { final String accept = "application/json"; - Response res + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), @@ -260,13 +257,13 @@ private PagedResponse listSinglePage(String r * @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 of a HorizonDbPrivateLinkResource list operation along with {@link PagedResponse}. + * @return the response of a PrivateLinkResource list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(String resourceGroupName, - String clusterName, Context context) { + private PagedResponse listSinglePage(String resourceGroupName, String clusterName, + Context context) { final String accept = "application/json"; - Response res + Response res = service.listSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, clusterName, accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), @@ -281,11 +278,10 @@ private PagedResponse listSinglePage(String r * @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 of a HorizonDbPrivateLinkResource list operation as paginated response with - * {@link PagedIterable}. + * @return the response of a PrivateLinkResource list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String clusterName) { + public PagedIterable list(String resourceGroupName, String clusterName) { return new PagedIterable<>(() -> listSinglePage(resourceGroupName, clusterName), nextLink -> listNextSinglePage(nextLink)); } @@ -299,12 +295,10 @@ public PagedIterable list(String resourceGrou * @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 of a HorizonDbPrivateLinkResource list operation as paginated response with - * {@link PagedIterable}. + * @return the response of a PrivateLinkResource list operation as paginated response with {@link PagedIterable}. */ @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(String resourceGroupName, String clusterName, - Context context) { + public PagedIterable list(String resourceGroupName, String clusterName, Context context) { return new PagedIterable<>(() -> listSinglePage(resourceGroupName, clusterName, context), nextLink -> listNextSinglePage(nextLink, context)); } @@ -316,14 +310,14 @@ public PagedIterable list(String resourceGrou * @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 of a HorizonDbPrivateLinkResource list operation along with {@link PagedResponse} on - * successful completion of {@link Mono}. + * @return the response of a PrivateLinkResource list operation along with {@link PagedResponse} on successful + * completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listNextSinglePageAsync(String nextLink) { + private Mono> listNextSinglePageAsync(String nextLink) { final String accept = "application/json"; return FluxUtil.withContext(context -> service.listNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), + .>map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); } @@ -335,12 +329,12 @@ private Mono> listNextSinglePag * @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 of a HorizonDbPrivateLinkResource list operation along with {@link PagedResponse}. + * @return the response of a PrivateLinkResource list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listNextSinglePage(String nextLink) { + private PagedResponse listNextSinglePage(String nextLink) { final String accept = "application/json"; - Response res + Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); @@ -354,12 +348,12 @@ private PagedResponse listNextSinglePage(Stri * @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 of a HorizonDbPrivateLinkResource list operation along with {@link PagedResponse}. + * @return the response of a PrivateLinkResource list operation along with {@link PagedResponse}. */ @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listNextSinglePage(String nextLink, Context context) { + private PagedResponse listNextSinglePage(String nextLink, Context context) { final String accept = "application/json"; - Response res + Response res = service.listNextSync(nextLink, this.client.getEndpoint(), accept, context); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null); diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PrivateLinkResourcesImpl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PrivateLinkResourcesImpl.java new file mode 100644 index 0000000000000..e3363cce181f3 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/PrivateLinkResourcesImpl.java @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.horizondb.fluent.PrivateLinkResourcesClient; +import com.azure.resourcemanager.horizondb.fluent.models.PrivateLinkResourceInner; +import com.azure.resourcemanager.horizondb.models.PrivateLinkResource; +import com.azure.resourcemanager.horizondb.models.PrivateLinkResources; + +public final class PrivateLinkResourcesImpl implements PrivateLinkResources { + private static final ClientLogger LOGGER = new ClientLogger(PrivateLinkResourcesImpl.class); + + private final PrivateLinkResourcesClient innerClient; + + private final com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager; + + public PrivateLinkResourcesImpl(PrivateLinkResourcesClient innerClient, + com.azure.resourcemanager.horizondb.HorizonDbManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String resourceGroupName, String clusterName, String groupName, + Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, clusterName, groupName, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new PrivateLinkResourceImpl(inner.getValue(), this.manager())); + } + + public PrivateLinkResource get(String resourceGroupName, String clusterName, String groupName) { + PrivateLinkResourceInner inner = this.serviceClient().get(resourceGroupName, clusterName, groupName); + if (inner != null) { + return new PrivateLinkResourceImpl(inner, this.manager()); + } else { + return null; + } + } + + public PagedIterable list(String resourceGroupName, String clusterName) { + PagedIterable inner = this.serviceClient().list(resourceGroupName, clusterName); + return ResourceManagerUtils.mapPage(inner, inner1 -> new PrivateLinkResourceImpl(inner1, this.manager())); + } + + public PagedIterable list(String resourceGroupName, String clusterName, Context context) { + PagedIterable inner + = this.serviceClient().list(resourceGroupName, clusterName, context); + return ResourceManagerUtils.mapPage(inner, inner1 -> new PrivateLinkResourceImpl(inner1, this.manager())); + } + + private PrivateLinkResourcesClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.horizondb.HorizonDbManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/HorizonDbClusterListResult.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/AuthenticationListResult.java similarity index 59% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/HorizonDbClusterListResult.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/AuthenticationListResult.java index a4587d0b2cb71..ef02a32b3f331 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/HorizonDbClusterListResult.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/AuthenticationListResult.java @@ -9,19 +9,19 @@ import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbClusterInner; +import com.azure.resourcemanager.horizondb.fluent.models.AuthenticationInner; import java.io.IOException; import java.util.List; /** - * The response of a HorizonDbCluster list operation. + * The response of a Authentication list operation. */ @Immutable -public final class HorizonDbClusterListResult implements JsonSerializable { +public final class AuthenticationListResult implements JsonSerializable { /* - * The HorizonDbCluster items on this page + * The Authentication items on this page */ - private List value; + private List value; /* * The link to the next page of items @@ -29,17 +29,17 @@ public final class HorizonDbClusterListResult implements JsonSerializable value() { + public List value() { return this.value; } @@ -64,33 +64,33 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { } /** - * Reads an instance of HorizonDbClusterListResult from the JsonReader. + * Reads an instance of AuthenticationListResult from the JsonReader. * * @param jsonReader The JsonReader being read. - * @return An instance of HorizonDbClusterListResult if the JsonReader was pointing to an instance of it, or null if + * @return An instance of AuthenticationListResult 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 HorizonDbClusterListResult. + * @throws IOException If an error occurs while reading the AuthenticationListResult. */ - public static HorizonDbClusterListResult fromJson(JsonReader jsonReader) throws IOException { + public static AuthenticationListResult fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { - HorizonDbClusterListResult deserializedHorizonDbClusterListResult = new HorizonDbClusterListResult(); + AuthenticationListResult deserializedAuthenticationListResult = new AuthenticationListResult(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> HorizonDbClusterInner.fromJson(reader1)); - deserializedHorizonDbClusterListResult.value = value; + List value + = reader.readArray(reader1 -> AuthenticationInner.fromJson(reader1)); + deserializedAuthenticationListResult.value = value; } else if ("nextLink".equals(fieldName)) { - deserializedHorizonDbClusterListResult.nextLink = reader.getString(); + deserializedAuthenticationListResult.nextLink = reader.getString(); } else { reader.skipChildren(); } } - return deserializedHorizonDbClusterListResult; + return deserializedAuthenticationListResult; }); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/HorizonDbPoolListResult.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/CapabilityListResult.java similarity index 60% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/HorizonDbPoolListResult.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/CapabilityListResult.java index 95ed0dd0e4f29..4d5cfb2e05765 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/HorizonDbPoolListResult.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/CapabilityListResult.java @@ -9,19 +9,19 @@ import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbPoolInner; +import com.azure.resourcemanager.horizondb.fluent.models.CapabilityInner; import java.io.IOException; import java.util.List; /** - * The response of a HorizonDbPool list operation. + * The response of a Capability list operation. */ @Immutable -public final class HorizonDbPoolListResult implements JsonSerializable { +public final class CapabilityListResult implements JsonSerializable { /* - * The HorizonDbPool items on this page + * The Capability items on this page */ - private List value; + private List value; /* * The link to the next page of items @@ -29,17 +29,17 @@ public final class HorizonDbPoolListResult implements JsonSerializable value() { + public List value() { return this.value; } @@ -64,32 +64,32 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { } /** - * Reads an instance of HorizonDbPoolListResult from the JsonReader. + * Reads an instance of CapabilityListResult from the JsonReader. * * @param jsonReader The JsonReader being read. - * @return An instance of HorizonDbPoolListResult if the JsonReader was pointing to an instance of it, or null if it + * @return An instance of CapabilityListResult 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 HorizonDbPoolListResult. + * @throws IOException If an error occurs while reading the CapabilityListResult. */ - public static HorizonDbPoolListResult fromJson(JsonReader jsonReader) throws IOException { + public static CapabilityListResult fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { - HorizonDbPoolListResult deserializedHorizonDbPoolListResult = new HorizonDbPoolListResult(); + CapabilityListResult deserializedCapabilityListResult = new CapabilityListResult(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); if ("value".equals(fieldName)) { - List value = reader.readArray(reader1 -> HorizonDbPoolInner.fromJson(reader1)); - deserializedHorizonDbPoolListResult.value = value; + List value = reader.readArray(reader1 -> CapabilityInner.fromJson(reader1)); + deserializedCapabilityListResult.value = value; } else if ("nextLink".equals(fieldName)) { - deserializedHorizonDbPoolListResult.nextLink = reader.getString(); + deserializedCapabilityListResult.nextLink = reader.getString(); } else { reader.skipChildren(); } } - return deserializedHorizonDbPoolListResult; + return deserializedCapabilityListResult; }); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/HorizonDbAdministratorListResult.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/ChangeDataCaptureCapabilityListResult.java similarity index 54% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/HorizonDbAdministratorListResult.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/ChangeDataCaptureCapabilityListResult.java index 0e175f396fcf1..cb8191a214fb7 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/HorizonDbAdministratorListResult.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/ChangeDataCaptureCapabilityListResult.java @@ -9,19 +9,20 @@ import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbAdministratorInner; +import com.azure.resourcemanager.horizondb.fluent.models.ChangeDataCaptureCapabilityInner; import java.io.IOException; import java.util.List; /** - * The response of a HorizonDbAdministrator list operation. + * The response of a ChangeDataCaptureCapability list operation. */ @Immutable -public final class HorizonDbAdministratorListResult implements JsonSerializable { +public final class ChangeDataCaptureCapabilityListResult + implements JsonSerializable { /* - * The HorizonDbAdministrator items on this page + * The ChangeDataCaptureCapability items on this page */ - private List value; + private List value; /* * The link to the next page of items @@ -29,17 +30,17 @@ public final class HorizonDbAdministratorListResult implements JsonSerializable< private String nextLink; /** - * Creates an instance of HorizonDbAdministratorListResult class. + * Creates an instance of ChangeDataCaptureCapabilityListResult class. */ - private HorizonDbAdministratorListResult() { + private ChangeDataCaptureCapabilityListResult() { } /** - * Get the value property: The HorizonDbAdministrator items on this page. + * Get the value property: The ChangeDataCaptureCapability items on this page. * * @return the value value. */ - public List value() { + public List value() { return this.value; } @@ -64,34 +65,34 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { } /** - * Reads an instance of HorizonDbAdministratorListResult from the JsonReader. + * Reads an instance of ChangeDataCaptureCapabilityListResult from the JsonReader. * * @param jsonReader The JsonReader being read. - * @return An instance of HorizonDbAdministratorListResult if the JsonReader was pointing to an instance of it, or - * null if it was pointing to JSON null. + * @return An instance of ChangeDataCaptureCapabilityListResult 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 HorizonDbAdministratorListResult. + * @throws IOException If an error occurs while reading the ChangeDataCaptureCapabilityListResult. */ - public static HorizonDbAdministratorListResult fromJson(JsonReader jsonReader) throws IOException { + public static ChangeDataCaptureCapabilityListResult fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { - HorizonDbAdministratorListResult deserializedHorizonDbAdministratorListResult - = new HorizonDbAdministratorListResult(); + ChangeDataCaptureCapabilityListResult deserializedChangeDataCaptureCapabilityListResult + = new ChangeDataCaptureCapabilityListResult(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> HorizonDbAdministratorInner.fromJson(reader1)); - deserializedHorizonDbAdministratorListResult.value = value; + List value + = reader.readArray(reader1 -> ChangeDataCaptureCapabilityInner.fromJson(reader1)); + deserializedChangeDataCaptureCapabilityListResult.value = value; } else if ("nextLink".equals(fieldName)) { - deserializedHorizonDbAdministratorListResult.nextLink = reader.getString(); + deserializedChangeDataCaptureCapabilityListResult.nextLink = reader.getString(); } else { reader.skipChildren(); } } - return deserializedHorizonDbAdministratorListResult; + return deserializedChangeDataCaptureCapabilityListResult; }); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/ChangeDataCaptureConfigurationListResult.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/ChangeDataCaptureConfigurationListResult.java new file mode 100644 index 0000000000000..743c7519e288a --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/ChangeDataCaptureConfigurationListResult.java @@ -0,0 +1,98 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.horizondb.fluent.models.ChangeDataCaptureConfigurationInner; +import java.io.IOException; +import java.util.List; + +/** + * The response of a ChangeDataCaptureConfiguration list operation. + */ +@Immutable +public final class ChangeDataCaptureConfigurationListResult + implements JsonSerializable { + /* + * The ChangeDataCaptureConfiguration items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of ChangeDataCaptureConfigurationListResult class. + */ + private ChangeDataCaptureConfigurationListResult() { + } + + /** + * Get the value property: The ChangeDataCaptureConfiguration items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ChangeDataCaptureConfigurationListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ChangeDataCaptureConfigurationListResult 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 ChangeDataCaptureConfigurationListResult. + */ + public static ChangeDataCaptureConfigurationListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ChangeDataCaptureConfigurationListResult deserializedChangeDataCaptureConfigurationListResult + = new ChangeDataCaptureConfigurationListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> ChangeDataCaptureConfigurationInner.fromJson(reader1)); + deserializedChangeDataCaptureConfigurationListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedChangeDataCaptureConfigurationListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedChangeDataCaptureConfigurationListResult; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/HorizonDbPrivateLinkResourceListResult.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/ChangeDataCaptureDestinationListResult.java similarity index 61% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/HorizonDbPrivateLinkResourceListResult.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/ChangeDataCaptureDestinationListResult.java index 97bb7f3e37b93..1b0f0cd0a0098 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/HorizonDbPrivateLinkResourceListResult.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/ChangeDataCaptureDestinationListResult.java @@ -9,20 +9,20 @@ import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbPrivateLinkResourceInner; +import com.azure.resourcemanager.horizondb.fluent.models.ChangeDataCaptureDestinationInner; import java.io.IOException; import java.util.List; /** - * The response of a HorizonDbPrivateLinkResource list operation. + * The response of a ChangeDataCaptureDestination list operation. */ @Immutable -public final class HorizonDbPrivateLinkResourceListResult - implements JsonSerializable { +public final class ChangeDataCaptureDestinationListResult + implements JsonSerializable { /* - * The HorizonDbPrivateLinkResource items on this page + * The ChangeDataCaptureDestination items on this page */ - private List value; + private List value; /* * The link to the next page of items @@ -30,17 +30,17 @@ public final class HorizonDbPrivateLinkResourceListResult private String nextLink; /** - * Creates an instance of HorizonDbPrivateLinkResourceListResult class. + * Creates an instance of ChangeDataCaptureDestinationListResult class. */ - private HorizonDbPrivateLinkResourceListResult() { + private ChangeDataCaptureDestinationListResult() { } /** - * Get the value property: The HorizonDbPrivateLinkResource items on this page. + * Get the value property: The ChangeDataCaptureDestination items on this page. * * @return the value value. */ - public List value() { + public List value() { return this.value; } @@ -65,34 +65,34 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { } /** - * Reads an instance of HorizonDbPrivateLinkResourceListResult from the JsonReader. + * Reads an instance of ChangeDataCaptureDestinationListResult from the JsonReader. * * @param jsonReader The JsonReader being read. - * @return An instance of HorizonDbPrivateLinkResourceListResult if the JsonReader was pointing to an instance of + * @return An instance of ChangeDataCaptureDestinationListResult 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 HorizonDbPrivateLinkResourceListResult. + * @throws IOException If an error occurs while reading the ChangeDataCaptureDestinationListResult. */ - public static HorizonDbPrivateLinkResourceListResult fromJson(JsonReader jsonReader) throws IOException { + public static ChangeDataCaptureDestinationListResult fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { - HorizonDbPrivateLinkResourceListResult deserializedHorizonDbPrivateLinkResourceListResult - = new HorizonDbPrivateLinkResourceListResult(); + ChangeDataCaptureDestinationListResult deserializedChangeDataCaptureDestinationListResult + = new ChangeDataCaptureDestinationListResult(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> HorizonDbPrivateLinkResourceInner.fromJson(reader1)); - deserializedHorizonDbPrivateLinkResourceListResult.value = value; + List value + = reader.readArray(reader1 -> ChangeDataCaptureDestinationInner.fromJson(reader1)); + deserializedChangeDataCaptureDestinationListResult.value = value; } else if ("nextLink".equals(fieldName)) { - deserializedHorizonDbPrivateLinkResourceListResult.nextLink = reader.getString(); + deserializedChangeDataCaptureDestinationListResult.nextLink = reader.getString(); } else { reader.skipChildren(); } } - return deserializedHorizonDbPrivateLinkResourceListResult; + return deserializedChangeDataCaptureDestinationListResult; }); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/ClusterListResult.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/ClusterListResult.java new file mode 100644 index 0000000000000..b9088ef1274a4 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/ClusterListResult.java @@ -0,0 +1,95 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.horizondb.fluent.models.ClusterInner; +import java.io.IOException; +import java.util.List; + +/** + * The response of a Cluster list operation. + */ +@Immutable +public final class ClusterListResult implements JsonSerializable { + /* + * The Cluster items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of ClusterListResult class. + */ + private ClusterListResult() { + } + + /** + * Get the value property: The Cluster items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterListResult 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 ClusterListResult. + */ + public static ClusterListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterListResult deserializedClusterListResult = new ClusterListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> ClusterInner.fromJson(reader1)); + deserializedClusterListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedClusterListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedClusterListResult; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/HorizonDbFirewallRuleListResult.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/DefaultParameterGroupListResult.java similarity index 62% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/HorizonDbFirewallRuleListResult.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/DefaultParameterGroupListResult.java index 2be284751257b..3bf8e8c9f6558 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/HorizonDbFirewallRuleListResult.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/DefaultParameterGroupListResult.java @@ -9,19 +9,19 @@ import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbFirewallRuleInner; +import com.azure.resourcemanager.horizondb.fluent.models.DefaultParameterGroupInner; import java.io.IOException; import java.util.List; /** - * The response of a HorizonDbFirewallRule list operation. + * The response of a DefaultParameterGroup list operation. */ @Immutable -public final class HorizonDbFirewallRuleListResult implements JsonSerializable { +public final class DefaultParameterGroupListResult implements JsonSerializable { /* - * The HorizonDbFirewallRule items on this page + * The DefaultParameterGroup items on this page */ - private List value; + private List value; /* * The link to the next page of items @@ -29,17 +29,17 @@ public final class HorizonDbFirewallRuleListResult implements JsonSerializable value() { + public List value() { return this.value; } @@ -64,34 +64,34 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { } /** - * Reads an instance of HorizonDbFirewallRuleListResult from the JsonReader. + * Reads an instance of DefaultParameterGroupListResult from the JsonReader. * * @param jsonReader The JsonReader being read. - * @return An instance of HorizonDbFirewallRuleListResult if the JsonReader was pointing to an instance of it, or + * @return An instance of DefaultParameterGroupListResult 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 HorizonDbFirewallRuleListResult. + * @throws IOException If an error occurs while reading the DefaultParameterGroupListResult. */ - public static HorizonDbFirewallRuleListResult fromJson(JsonReader jsonReader) throws IOException { + public static DefaultParameterGroupListResult fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { - HorizonDbFirewallRuleListResult deserializedHorizonDbFirewallRuleListResult - = new HorizonDbFirewallRuleListResult(); + DefaultParameterGroupListResult deserializedDefaultParameterGroupListResult + = new DefaultParameterGroupListResult(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> HorizonDbFirewallRuleInner.fromJson(reader1)); - deserializedHorizonDbFirewallRuleListResult.value = value; + List value + = reader.readArray(reader1 -> DefaultParameterGroupInner.fromJson(reader1)); + deserializedDefaultParameterGroupListResult.value = value; } else if ("nextLink".equals(fieldName)) { - deserializedHorizonDbFirewallRuleListResult.nextLink = reader.getString(); + deserializedDefaultParameterGroupListResult.nextLink = reader.getString(); } else { reader.skipChildren(); } } - return deserializedHorizonDbFirewallRuleListResult; + return deserializedDefaultParameterGroupListResult; }); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/EndpointListResult.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/EndpointListResult.java new file mode 100644 index 0000000000000..8a0d6e3532697 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/EndpointListResult.java @@ -0,0 +1,95 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.horizondb.fluent.models.EndpointInner; +import java.io.IOException; +import java.util.List; + +/** + * The response of a Endpoint list operation. + */ +@Immutable +public final class EndpointListResult implements JsonSerializable { + /* + * The Endpoint items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of EndpointListResult class. + */ + private EndpointListResult() { + } + + /** + * Get the value property: The Endpoint items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of EndpointListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of EndpointListResult 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 EndpointListResult. + */ + public static EndpointListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + EndpointListResult deserializedEndpointListResult = new EndpointListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> EndpointInner.fromJson(reader1)); + deserializedEndpointListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedEndpointListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedEndpointListResult; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/FirewallRuleListResult.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/FirewallRuleListResult.java new file mode 100644 index 0000000000000..5dfc3e774df1f --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/FirewallRuleListResult.java @@ -0,0 +1,95 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.horizondb.fluent.models.FirewallRuleInner; +import java.io.IOException; +import java.util.List; + +/** + * The response of a FirewallRule list operation. + */ +@Immutable +public final class FirewallRuleListResult implements JsonSerializable { + /* + * The FirewallRule items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of FirewallRuleListResult class. + */ + private FirewallRuleListResult() { + } + + /** + * Get the value property: The FirewallRule items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of FirewallRuleListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of FirewallRuleListResult 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 FirewallRuleListResult. + */ + public static FirewallRuleListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + FirewallRuleListResult deserializedFirewallRuleListResult = new FirewallRuleListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> FirewallRuleInner.fromJson(reader1)); + deserializedFirewallRuleListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedFirewallRuleListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedFirewallRuleListResult; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/HorizonDbParameterGroupConnectionPropertiesListResult.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/HorizonDbParameterGroupConnectionPropertiesListResult.java deleted file mode 100644 index e4f653392c666..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/HorizonDbParameterGroupConnectionPropertiesListResult.java +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.implementation.models; - -import com.azure.core.annotation.Immutable; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbParameterGroupConnectionPropertiesInner; -import java.io.IOException; -import java.util.List; - -/** - * The response of a HorizonDbParameterGroupConnectionProperties list operation. - */ -@Immutable -public final class HorizonDbParameterGroupConnectionPropertiesListResult - implements JsonSerializable { - /* - * The HorizonDbParameterGroupConnectionProperties items on this page - */ - private List value; - - /* - * The link to the next page of items - */ - private String nextLink; - - /** - * Creates an instance of HorizonDbParameterGroupConnectionPropertiesListResult class. - */ - private HorizonDbParameterGroupConnectionPropertiesListResult() { - } - - /** - * Get the value property: The HorizonDbParameterGroupConnectionProperties items on this page. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Get the nextLink property: The link to the next page of items. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeStringField("nextLink", this.nextLink); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of HorizonDbParameterGroupConnectionPropertiesListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of HorizonDbParameterGroupConnectionPropertiesListResult 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 HorizonDbParameterGroupConnectionPropertiesListResult. - */ - public static HorizonDbParameterGroupConnectionPropertiesListResult fromJson(JsonReader jsonReader) - throws IOException { - return jsonReader.readObject(reader -> { - HorizonDbParameterGroupConnectionPropertiesListResult deserializedHorizonDbParameterGroupConnectionPropertiesListResult - = new HorizonDbParameterGroupConnectionPropertiesListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value = reader - .readArray(reader1 -> HorizonDbParameterGroupConnectionPropertiesInner.fromJson(reader1)); - deserializedHorizonDbParameterGroupConnectionPropertiesListResult.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedHorizonDbParameterGroupConnectionPropertiesListResult.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedHorizonDbParameterGroupConnectionPropertiesListResult; - }); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/IdentityAssignmentListResult.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/IdentityAssignmentListResult.java new file mode 100644 index 0000000000000..24e6d6a55cb1b --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/IdentityAssignmentListResult.java @@ -0,0 +1,96 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.horizondb.fluent.models.IdentityAssignmentInner; +import java.io.IOException; +import java.util.List; + +/** + * The response of a IdentityAssignment list operation. + */ +@Immutable +public final class IdentityAssignmentListResult implements JsonSerializable { + /* + * The IdentityAssignment items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of IdentityAssignmentListResult class. + */ + private IdentityAssignmentListResult() { + } + + /** + * Get the value property: The IdentityAssignment items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of IdentityAssignmentListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of IdentityAssignmentListResult 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 IdentityAssignmentListResult. + */ + public static IdentityAssignmentListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + IdentityAssignmentListResult deserializedIdentityAssignmentListResult = new IdentityAssignmentListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> IdentityAssignmentInner.fromJson(reader1)); + deserializedIdentityAssignmentListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedIdentityAssignmentListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedIdentityAssignmentListResult; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/HorizonDbParameterGroupListResult.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/LogCaptureConfigurationListResult.java similarity index 62% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/HorizonDbParameterGroupListResult.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/LogCaptureConfigurationListResult.java index de7d1e92c6263..3a2032851ef84 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/HorizonDbParameterGroupListResult.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/LogCaptureConfigurationListResult.java @@ -9,19 +9,19 @@ import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbParameterGroupInner; +import com.azure.resourcemanager.horizondb.fluent.models.LogCaptureConfigurationInner; import java.io.IOException; import java.util.List; /** - * The response of a HorizonDbParameterGroup list operation. + * The response of a LogCaptureConfiguration list operation. */ @Immutable -public final class HorizonDbParameterGroupListResult implements JsonSerializable { +public final class LogCaptureConfigurationListResult implements JsonSerializable { /* - * The HorizonDbParameterGroup items on this page + * The LogCaptureConfiguration items on this page */ - private List value; + private List value; /* * The link to the next page of items @@ -29,17 +29,17 @@ public final class HorizonDbParameterGroupListResult implements JsonSerializable private String nextLink; /** - * Creates an instance of HorizonDbParameterGroupListResult class. + * Creates an instance of LogCaptureConfigurationListResult class. */ - private HorizonDbParameterGroupListResult() { + private LogCaptureConfigurationListResult() { } /** - * Get the value property: The HorizonDbParameterGroup items on this page. + * Get the value property: The LogCaptureConfiguration items on this page. * * @return the value value. */ - public List value() { + public List value() { return this.value; } @@ -64,34 +64,34 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { } /** - * Reads an instance of HorizonDbParameterGroupListResult from the JsonReader. + * Reads an instance of LogCaptureConfigurationListResult from the JsonReader. * * @param jsonReader The JsonReader being read. - * @return An instance of HorizonDbParameterGroupListResult if the JsonReader was pointing to an instance of it, or + * @return An instance of LogCaptureConfigurationListResult 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 HorizonDbParameterGroupListResult. + * @throws IOException If an error occurs while reading the LogCaptureConfigurationListResult. */ - public static HorizonDbParameterGroupListResult fromJson(JsonReader jsonReader) throws IOException { + public static LogCaptureConfigurationListResult fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { - HorizonDbParameterGroupListResult deserializedHorizonDbParameterGroupListResult - = new HorizonDbParameterGroupListResult(); + LogCaptureConfigurationListResult deserializedLogCaptureConfigurationListResult + = new LogCaptureConfigurationListResult(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> HorizonDbParameterGroupInner.fromJson(reader1)); - deserializedHorizonDbParameterGroupListResult.value = value; + List value + = reader.readArray(reader1 -> LogCaptureConfigurationInner.fromJson(reader1)); + deserializedLogCaptureConfigurationListResult.value = value; } else if ("nextLink".equals(fieldName)) { - deserializedHorizonDbParameterGroupListResult.nextLink = reader.getString(); + deserializedLogCaptureConfigurationListResult.nextLink = reader.getString(); } else { reader.skipChildren(); } } - return deserializedHorizonDbParameterGroupListResult; + return deserializedLogCaptureConfigurationListResult; }); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/LogFileListResult.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/LogFileListResult.java new file mode 100644 index 0000000000000..c34b2b2677374 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/LogFileListResult.java @@ -0,0 +1,95 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.horizondb.fluent.models.LogFileInner; +import java.io.IOException; +import java.util.List; + +/** + * The response of a LogFile list operation. + */ +@Immutable +public final class LogFileListResult implements JsonSerializable { + /* + * The LogFile items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of LogFileListResult class. + */ + private LogFileListResult() { + } + + /** + * Get the value property: The LogFile items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of LogFileListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of LogFileListResult 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 LogFileListResult. + */ + public static LogFileListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + LogFileListResult deserializedLogFileListResult = new LogFileListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> LogFileInner.fromJson(reader1)); + deserializedLogFileListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedLogFileListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedLogFileListResult; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/HorizonDbReplicaListResult.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/MaintenanceEventListResult.java similarity index 63% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/HorizonDbReplicaListResult.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/MaintenanceEventListResult.java index 3c1314a8f0846..43f16fe08045f 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/HorizonDbReplicaListResult.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/MaintenanceEventListResult.java @@ -9,19 +9,19 @@ import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbReplicaInner; +import com.azure.resourcemanager.horizondb.fluent.models.MaintenanceEventInner; import java.io.IOException; import java.util.List; /** - * The response of a HorizonDbReplica list operation. + * The response of a MaintenanceEvent list operation. */ @Immutable -public final class HorizonDbReplicaListResult implements JsonSerializable { +public final class MaintenanceEventListResult implements JsonSerializable { /* - * The HorizonDbReplica items on this page + * The MaintenanceEvent items on this page */ - private List value; + private List value; /* * The link to the next page of items @@ -29,17 +29,17 @@ public final class HorizonDbReplicaListResult implements JsonSerializable value() { + public List value() { return this.value; } @@ -64,33 +64,33 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { } /** - * Reads an instance of HorizonDbReplicaListResult from the JsonReader. + * Reads an instance of MaintenanceEventListResult from the JsonReader. * * @param jsonReader The JsonReader being read. - * @return An instance of HorizonDbReplicaListResult if the JsonReader was pointing to an instance of it, or null if + * @return An instance of MaintenanceEventListResult 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 HorizonDbReplicaListResult. + * @throws IOException If an error occurs while reading the MaintenanceEventListResult. */ - public static HorizonDbReplicaListResult fromJson(JsonReader jsonReader) throws IOException { + public static MaintenanceEventListResult fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { - HorizonDbReplicaListResult deserializedHorizonDbReplicaListResult = new HorizonDbReplicaListResult(); + MaintenanceEventListResult deserializedMaintenanceEventListResult = new MaintenanceEventListResult(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> HorizonDbReplicaInner.fromJson(reader1)); - deserializedHorizonDbReplicaListResult.value = value; + List value + = reader.readArray(reader1 -> MaintenanceEventInner.fromJson(reader1)); + deserializedMaintenanceEventListResult.value = value; } else if ("nextLink".equals(fieldName)) { - deserializedHorizonDbReplicaListResult.nextLink = reader.getString(); + deserializedMaintenanceEventListResult.nextLink = reader.getString(); } else { reader.skipChildren(); } } - return deserializedHorizonDbReplicaListResult; + return deserializedMaintenanceEventListResult; }); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/MicrosoftEntraAdministratorListResult.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/MicrosoftEntraAdministratorListResult.java new file mode 100644 index 0000000000000..a81e44c79b20e --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/MicrosoftEntraAdministratorListResult.java @@ -0,0 +1,98 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.horizondb.fluent.models.MicrosoftEntraAdministratorInner; +import java.io.IOException; +import java.util.List; + +/** + * The response of a MicrosoftEntraAdministrator list operation. + */ +@Immutable +public final class MicrosoftEntraAdministratorListResult + implements JsonSerializable { + /* + * The MicrosoftEntraAdministrator items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of MicrosoftEntraAdministratorListResult class. + */ + private MicrosoftEntraAdministratorListResult() { + } + + /** + * Get the value property: The MicrosoftEntraAdministrator items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MicrosoftEntraAdministratorListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MicrosoftEntraAdministratorListResult 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 MicrosoftEntraAdministratorListResult. + */ + public static MicrosoftEntraAdministratorListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MicrosoftEntraAdministratorListResult deserializedMicrosoftEntraAdministratorListResult + = new MicrosoftEntraAdministratorListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> MicrosoftEntraAdministratorInner.fromJson(reader1)); + deserializedMicrosoftEntraAdministratorListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedMicrosoftEntraAdministratorListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedMicrosoftEntraAdministratorListResult; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/NodeListResult.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/NodeListResult.java new file mode 100644 index 0000000000000..693fd0e77252a --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/NodeListResult.java @@ -0,0 +1,95 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.horizondb.fluent.models.NodeInner; +import java.io.IOException; +import java.util.List; + +/** + * The response of a Node list operation. + */ +@Immutable +public final class NodeListResult implements JsonSerializable { + /* + * The Node items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of NodeListResult class. + */ + private NodeListResult() { + } + + /** + * Get the value property: The Node items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of NodeListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of NodeListResult 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 NodeListResult. + */ + public static NodeListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + NodeListResult deserializedNodeListResult = new NodeListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> NodeInner.fromJson(reader1)); + deserializedNodeListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedNodeListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedNodeListResult; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/PagedParameterGroupConnectionProperties.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/PagedParameterGroupConnectionProperties.java new file mode 100644 index 0000000000000..4008ba5dfc0c5 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/PagedParameterGroupConnectionProperties.java @@ -0,0 +1,98 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.horizondb.fluent.models.ParameterGroupConnectionPropertiesInner; +import java.io.IOException; +import java.util.List; + +/** + * A page of HorizonDB parameter group connections. + */ +@Immutable +public final class PagedParameterGroupConnectionProperties + implements JsonSerializable { + /* + * The parameter group connection items on this page. + */ + private List value; + + /* + * The link to the next page of items. + */ + private String nextLink; + + /** + * Creates an instance of PagedParameterGroupConnectionProperties class. + */ + private PagedParameterGroupConnectionProperties() { + } + + /** + * Get the value property: The parameter group connection items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PagedParameterGroupConnectionProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PagedParameterGroupConnectionProperties 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 PagedParameterGroupConnectionProperties. + */ + public static PagedParameterGroupConnectionProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PagedParameterGroupConnectionProperties deserializedPagedParameterGroupConnectionProperties + = new PagedParameterGroupConnectionProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> ParameterGroupConnectionPropertiesInner.fromJson(reader1)); + deserializedPagedParameterGroupConnectionProperties.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedPagedParameterGroupConnectionProperties.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedPagedParameterGroupConnectionProperties; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/ParameterGroupListResult.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/ParameterGroupListResult.java new file mode 100644 index 0000000000000..37389b55a930e --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/ParameterGroupListResult.java @@ -0,0 +1,96 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.horizondb.fluent.models.ParameterGroupInner; +import java.io.IOException; +import java.util.List; + +/** + * The response of a ParameterGroup list operation. + */ +@Immutable +public final class ParameterGroupListResult implements JsonSerializable { + /* + * The ParameterGroup items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of ParameterGroupListResult class. + */ + private ParameterGroupListResult() { + } + + /** + * Get the value property: The ParameterGroup items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ParameterGroupListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ParameterGroupListResult 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 ParameterGroupListResult. + */ + public static ParameterGroupListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ParameterGroupListResult deserializedParameterGroupListResult = new ParameterGroupListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> ParameterGroupInner.fromJson(reader1)); + deserializedParameterGroupListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedParameterGroupListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedParameterGroupListResult; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/PoolListResult.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/PoolListResult.java new file mode 100644 index 0000000000000..aa1a7862ac410 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/PoolListResult.java @@ -0,0 +1,95 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.horizondb.fluent.models.PoolInner; +import java.io.IOException; +import java.util.List; + +/** + * The response of a Pool list operation. + */ +@Immutable +public final class PoolListResult implements JsonSerializable { + /* + * The Pool items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of PoolListResult class. + */ + private PoolListResult() { + } + + /** + * Get the value property: The Pool items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PoolListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PoolListResult 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 PoolListResult. + */ + public static PoolListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PoolListResult deserializedPoolListResult = new PoolListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value = reader.readArray(reader1 -> PoolInner.fromJson(reader1)); + deserializedPoolListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedPoolListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedPoolListResult; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/PrivateLinkResourceListResult.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/PrivateLinkResourceListResult.java new file mode 100644 index 0000000000000..d87afd0155ac2 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/models/PrivateLinkResourceListResult.java @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.implementation.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.horizondb.fluent.models.PrivateLinkResourceInner; +import java.io.IOException; +import java.util.List; + +/** + * The response of a PrivateLinkResource list operation. + */ +@Immutable +public final class PrivateLinkResourceListResult implements JsonSerializable { + /* + * The PrivateLinkResource items on this page + */ + private List value; + + /* + * The link to the next page of items + */ + private String nextLink; + + /** + * Creates an instance of PrivateLinkResourceListResult class. + */ + private PrivateLinkResourceListResult() { + } + + /** + * Get the value property: The PrivateLinkResource items on this page. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The link to the next page of items. + * + * @return the nextLink value. + */ + public String nextLink() { + return this.nextLink; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("nextLink", this.nextLink); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PrivateLinkResourceListResult from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PrivateLinkResourceListResult 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 PrivateLinkResourceListResult. + */ + public static PrivateLinkResourceListResult fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PrivateLinkResourceListResult deserializedPrivateLinkResourceListResult + = new PrivateLinkResourceListResult(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> PrivateLinkResourceInner.fromJson(reader1)); + deserializedPrivateLinkResourceListResult.value = value; + } else if ("nextLink".equals(fieldName)) { + deserializedPrivateLinkResourceListResult.nextLink = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedPrivateLinkResourceListResult; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/package-info.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/package-info.java index 4a055a915c78e..a9bc30f6b3828 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/package-info.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/implementation/package-info.java @@ -4,6 +4,6 @@ /** * Package containing the implementations for HorizonDb. - * Azure Resource Provider API for managing HorizonDB clusters, pools, replicas, and firewall rules. + * Azure Resource Provider API for managing HorizonDB clusters, pools, endpoints, nodes, and firewall rules. */ package com.azure.resourcemanager.horizondb.implementation; diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ActivateChangeDataCaptureIdentityRequest.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ActivateChangeDataCaptureIdentityRequest.java new file mode 100644 index 0000000000000..53b4f45dbb487 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ActivateChangeDataCaptureIdentityRequest.java @@ -0,0 +1,124 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.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; + +/** + * The request to activate an identity assignment for a change data capture destination. + */ +@Fluent +public final class ActivateChangeDataCaptureIdentityRequest + implements JsonSerializable { + /* + * The resource ID of an inactive, successfully validated identity assignment under the destination receiving the + * action. + */ + private String identityAssignmentResourceId; + + /* + * Whether existing destination sessions should drain before the identity cutover. The default is false. + */ + private Boolean drainExistingSessions; + + /** + * Creates an instance of ActivateChangeDataCaptureIdentityRequest class. + */ + public ActivateChangeDataCaptureIdentityRequest() { + } + + /** + * Get the identityAssignmentResourceId property: The resource ID of an inactive, successfully validated identity + * assignment under the destination receiving the action. + * + * @return the identityAssignmentResourceId value. + */ + public String identityAssignmentResourceId() { + return this.identityAssignmentResourceId; + } + + /** + * Set the identityAssignmentResourceId property: The resource ID of an inactive, successfully validated identity + * assignment under the destination receiving the action. + * + * @param identityAssignmentResourceId the identityAssignmentResourceId value to set. + * @return the ActivateChangeDataCaptureIdentityRequest object itself. + */ + public ActivateChangeDataCaptureIdentityRequest + withIdentityAssignmentResourceId(String identityAssignmentResourceId) { + this.identityAssignmentResourceId = identityAssignmentResourceId; + return this; + } + + /** + * Get the drainExistingSessions property: Whether existing destination sessions should drain before the identity + * cutover. The default is false. + * + * @return the drainExistingSessions value. + */ + public Boolean drainExistingSessions() { + return this.drainExistingSessions; + } + + /** + * Set the drainExistingSessions property: Whether existing destination sessions should drain before the identity + * cutover. The default is false. + * + * @param drainExistingSessions the drainExistingSessions value to set. + * @return the ActivateChangeDataCaptureIdentityRequest object itself. + */ + public ActivateChangeDataCaptureIdentityRequest withDrainExistingSessions(Boolean drainExistingSessions) { + this.drainExistingSessions = drainExistingSessions; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("identityAssignmentResourceId", this.identityAssignmentResourceId); + jsonWriter.writeBooleanField("drainExistingSessions", this.drainExistingSessions); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ActivateChangeDataCaptureIdentityRequest from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ActivateChangeDataCaptureIdentityRequest 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 ActivateChangeDataCaptureIdentityRequest. + */ + public static ActivateChangeDataCaptureIdentityRequest fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ActivateChangeDataCaptureIdentityRequest deserializedActivateChangeDataCaptureIdentityRequest + = new ActivateChangeDataCaptureIdentityRequest(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("identityAssignmentResourceId".equals(fieldName)) { + deserializedActivateChangeDataCaptureIdentityRequest.identityAssignmentResourceId + = reader.getString(); + } else if ("drainExistingSessions".equals(fieldName)) { + deserializedActivateChangeDataCaptureIdentityRequest.drainExistingSessions + = reader.getNullable(JsonReader::getBoolean); + } else { + reader.skipChildren(); + } + } + + return deserializedActivateChangeDataCaptureIdentityRequest; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ActivateChangeDataCaptureIdentityResult.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ActivateChangeDataCaptureIdentityResult.java new file mode 100644 index 0000000000000..767daebbd8a16 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ActivateChangeDataCaptureIdentityResult.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.resourcemanager.horizondb.fluent.models.ActivateChangeDataCaptureIdentityResultInner; + +/** + * An immutable client-side representation of ActivateChangeDataCaptureIdentityResult. + */ +public interface ActivateChangeDataCaptureIdentityResult { + /** + * Gets the status property: The completed activation status. + * + * @return the status value. + */ + String status(); + + /** + * Gets the targetIdentityAssignmentResourceId property: The resource ID of the newly active identity assignment. + * + * @return the targetIdentityAssignmentResourceId value. + */ + String targetIdentityAssignmentResourceId(); + + /** + * Gets the previousIdentityAssignmentResourceId property: The resource ID of the previously active identity + * assignment, when one existed. + * + * @return the previousIdentityAssignmentResourceId value. + */ + String previousIdentityAssignmentResourceId(); + + /** + * Gets the inner com.azure.resourcemanager.horizondb.fluent.models.ActivateChangeDataCaptureIdentityResultInner + * object. + * + * @return the inner object. + */ + ActivateChangeDataCaptureIdentityResultInner innerModel(); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/AiModelManagementStatus.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/AiModelManagementStatus.java new file mode 100644 index 0000000000000..4ba8b2531602a --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/AiModelManagementStatus.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The AI Model Management status for a HorizonDB cluster. + */ +public final class AiModelManagementStatus extends ExpandableStringEnum { + /** + * AI Model Management is enabled. + */ + public static final AiModelManagementStatus ENABLED = fromString("Enabled"); + + /** + * AI Model Management is disabled. + */ + public static final AiModelManagementStatus DISABLED = fromString("Disabled"); + + /** + * Creates a new instance of AiModelManagementStatus value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public AiModelManagementStatus() { + } + + /** + * Creates or finds a AiModelManagementStatus from its string representation. + * + * @param name a name to look for. + * @return the corresponding AiModelManagementStatus. + */ + public static AiModelManagementStatus fromString(String name) { + return fromString(name, AiModelManagementStatus.class); + } + + /** + * Gets known AiModelManagementStatus values. + * + * @return known AiModelManagementStatus values. + */ + public static Collection values() { + return values(AiModelManagementStatus.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbPool.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Authentication.java similarity index 72% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbPool.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Authentication.java index 5df7b2ff9e50f..bf32095c18fdd 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbPool.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Authentication.java @@ -5,13 +5,12 @@ package com.azure.resourcemanager.horizondb.models; import com.azure.core.management.SystemData; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbPoolInner; -import java.util.Map; +import com.azure.resourcemanager.horizondb.fluent.models.AuthenticationInner; /** - * An immutable client-side representation of HorizonDbPool. + * An immutable client-side representation of Authentication. */ -public interface HorizonDbPool { +public interface Authentication { /** * Gets the id property: Fully qualified resource Id for the resource. * @@ -38,14 +37,7 @@ public interface HorizonDbPool { * * @return the properties value. */ - HorizonDbPoolProperties properties(); - - /** - * Gets the tags property: Resource tags. - * - * @return the tags value. - */ - Map tags(); + AuthenticationProperties properties(); /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. @@ -55,9 +47,9 @@ public interface HorizonDbPool { SystemData systemData(); /** - * Gets the inner com.azure.resourcemanager.horizondb.fluent.models.HorizonDbPoolInner object. + * Gets the inner com.azure.resourcemanager.horizondb.fluent.models.AuthenticationInner object. * * @return the inner object. */ - HorizonDbPoolInner innerModel(); + AuthenticationInner innerModel(); } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/AuthenticationProperties.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/AuthenticationProperties.java new file mode 100644 index 0000000000000..2cc8bd4a2fc7f --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/AuthenticationProperties.java @@ -0,0 +1,91 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Common read-only properties of a service-created authentication configuration. + */ +@Immutable +public final class AuthenticationProperties implements JsonSerializable { + /* + * The state of the authentication configuration. + */ + private AuthenticationState state; + + /* + * The provisioning state of the authentication configuration. + */ + private ProvisioningState provisioningState; + + /** + * Creates an instance of AuthenticationProperties class. + */ + private AuthenticationProperties() { + } + + /** + * Get the state property: The state of the authentication configuration. + * + * @return the state value. + */ + public AuthenticationState state() { + return this.state; + } + + /** + * Get the provisioningState property: The provisioning state of the authentication configuration. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AuthenticationProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AuthenticationProperties 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 AuthenticationProperties. + */ + public static AuthenticationProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AuthenticationProperties deserializedAuthenticationProperties = new AuthenticationProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("state".equals(fieldName)) { + deserializedAuthenticationProperties.state = AuthenticationState.fromString(reader.getString()); + } else if ("provisioningState".equals(fieldName)) { + deserializedAuthenticationProperties.provisioningState + = ProvisioningState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedAuthenticationProperties; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Authentications.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Authentications.java new file mode 100644 index 0000000000000..c09e4133cad4c --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Authentications.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.util.Context; + +/** + * Resource collection API of Authentications. + */ +public interface Authentications { + /** + * Lists the two service-created authentication configurations for the cluster: passwordMethod and microsoftEntra. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Authentication list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String clusterName); + + /** + * Lists the two service-created authentication configurations for the cluster: passwordMethod and microsoftEntra. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Authentication list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String clusterName, Context context); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/BackupProperties.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/BackupProperties.java new file mode 100644 index 0000000000000..b9fc587aade16 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/BackupProperties.java @@ -0,0 +1,139 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.CoreUtils; +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.time.OffsetDateTime; + +/** + * Backup configuration properties for a HorizonDB cluster. + */ +@Fluent +public final class BackupProperties implements JsonSerializable { + /* + * The geo-redundancy state. Geo-redundant backup is not supported when dataEncryption.type is AzureKeyVault. + */ + private GeoRedundancyState geoRedundancy; + + /* + * The number of days that automatic backups are retained. The service defaults to 7 days when this property is + * omitted. + */ + private Integer retentionDays; + + /* + * The earliest point in time, in UTC, to which the cluster can currently be restored. + */ + private OffsetDateTime earliestRestorePointUtc; + + /** + * Creates an instance of BackupProperties class. + */ + public BackupProperties() { + } + + /** + * Get the geoRedundancy property: The geo-redundancy state. Geo-redundant backup is not supported when + * dataEncryption.type is AzureKeyVault. + * + * @return the geoRedundancy value. + */ + public GeoRedundancyState geoRedundancy() { + return this.geoRedundancy; + } + + /** + * Set the geoRedundancy property: The geo-redundancy state. Geo-redundant backup is not supported when + * dataEncryption.type is AzureKeyVault. + * + * @param geoRedundancy the geoRedundancy value to set. + * @return the BackupProperties object itself. + */ + public BackupProperties withGeoRedundancy(GeoRedundancyState geoRedundancy) { + this.geoRedundancy = geoRedundancy; + return this; + } + + /** + * Get the retentionDays property: The number of days that automatic backups are retained. The service defaults to 7 + * days when this property is omitted. + * + * @return the retentionDays value. + */ + public Integer retentionDays() { + return this.retentionDays; + } + + /** + * Set the retentionDays property: The number of days that automatic backups are retained. The service defaults to 7 + * days when this property is omitted. + * + * @param retentionDays the retentionDays value to set. + * @return the BackupProperties object itself. + */ + public BackupProperties withRetentionDays(Integer retentionDays) { + this.retentionDays = retentionDays; + return this; + } + + /** + * Get the earliestRestorePointUtc property: The earliest point in time, in UTC, to which the cluster can currently + * be restored. + * + * @return the earliestRestorePointUtc value. + */ + public OffsetDateTime earliestRestorePointUtc() { + return this.earliestRestorePointUtc; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("geoRedundancy", this.geoRedundancy == null ? null : this.geoRedundancy.toString()); + jsonWriter.writeNumberField("retentionDays", this.retentionDays); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BackupProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BackupProperties 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 BackupProperties. + */ + public static BackupProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BackupProperties deserializedBackupProperties = new BackupProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("geoRedundancy".equals(fieldName)) { + deserializedBackupProperties.geoRedundancy = GeoRedundancyState.fromString(reader.getString()); + } else if ("retentionDays".equals(fieldName)) { + deserializedBackupProperties.retentionDays = reader.getNullable(JsonReader::getInt); + } else if ("earliestRestorePointUtc".equals(fieldName)) { + deserializedBackupProperties.earliestRestorePointUtc = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else { + reader.skipChildren(); + } + } + + return deserializedBackupProperties; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/BackupPropertiesForPatchUpdate.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/BackupPropertiesForPatchUpdate.java new file mode 100644 index 0000000000000..838616b1ad6ec --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/BackupPropertiesForPatchUpdate.java @@ -0,0 +1,86 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.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; + +/** + * Backup configuration properties for updating a HorizonDB cluster. + */ +@Fluent +public final class BackupPropertiesForPatchUpdate implements JsonSerializable { + /* + * The number of days that automatic backups are retained. + */ + private Integer retentionDays; + + /** + * Creates an instance of BackupPropertiesForPatchUpdate class. + */ + public BackupPropertiesForPatchUpdate() { + } + + /** + * Get the retentionDays property: The number of days that automatic backups are retained. + * + * @return the retentionDays value. + */ + public Integer retentionDays() { + return this.retentionDays; + } + + /** + * Set the retentionDays property: The number of days that automatic backups are retained. + * + * @param retentionDays the retentionDays value to set. + * @return the BackupPropertiesForPatchUpdate object itself. + */ + public BackupPropertiesForPatchUpdate withRetentionDays(Integer retentionDays) { + this.retentionDays = retentionDays; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeNumberField("retentionDays", this.retentionDays); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of BackupPropertiesForPatchUpdate from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of BackupPropertiesForPatchUpdate 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 BackupPropertiesForPatchUpdate. + */ + public static BackupPropertiesForPatchUpdate fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + BackupPropertiesForPatchUpdate deserializedBackupPropertiesForPatchUpdate + = new BackupPropertiesForPatchUpdate(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("retentionDays".equals(fieldName)) { + deserializedBackupPropertiesForPatchUpdate.retentionDays = reader.getNullable(JsonReader::getInt); + } else { + reader.skipChildren(); + } + } + + return deserializedBackupPropertiesForPatchUpdate; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Capabilities.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Capabilities.java new file mode 100644 index 0000000000000..ec287d09a345a --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Capabilities.java @@ -0,0 +1,63 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of Capabilities. + */ +public interface Capabilities { + /** + * Gets the singleton HorizonDB capability catalog entry available to a subscription in a specific region. + * + * @param location The name of the Azure region. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the singleton HorizonDB capability catalog entry available to a subscription in a specific region along + * with {@link Response}. + */ + Response getWithResponse(String location, Context context); + + /** + * Gets the singleton HorizonDB capability catalog entry available to a subscription in a specific region. + * + * @param location The name of the Azure region. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the singleton HorizonDB capability catalog entry available to a subscription in a specific region. + */ + Capability get(String location); + + /** + * Lists the singleton HorizonDB capability catalog entry available to a subscription in a specific region. The + * result contains one item. + * + * @param location The name of the Azure region. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Capability list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String location); + + /** + * Lists the singleton HorizonDB capability catalog entry available to a subscription in a specific region. The + * result contains one item. + * + * @param location The name of the Azure region. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Capability list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String location, Context context); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Capability.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Capability.java new file mode 100644 index 0000000000000..913830522e2c3 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Capability.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.horizondb.fluent.models.CapabilityInner; + +/** + * An immutable client-side representation of Capability. + */ +public interface Capability { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + CapabilityProperties properties(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the inner com.azure.resourcemanager.horizondb.fluent.models.CapabilityInner object. + * + * @return the inner object. + */ + CapabilityInner innerModel(); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/CapabilityProperties.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/CapabilityProperties.java new file mode 100644 index 0000000000000..681256c1cb5fb --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/CapabilityProperties.java @@ -0,0 +1,108 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Properties of the HorizonDB capabilities available to a subscription in a location. + */ +@Immutable +public final class CapabilityProperties implements JsonSerializable { + /* + * The provisioning state of the capability catalog entry. + */ + private ProvisioningState provisioningState; + + /* + * The Cluster capabilities available in the region. + */ + private ClusterCapability clusterCapabilities; + + /* + * The Pool capabilities available in the region, including processor, generation, and compute-model details. + */ + private PoolCapability poolCapabilities; + + /** + * Creates an instance of CapabilityProperties class. + */ + private CapabilityProperties() { + } + + /** + * Get the provisioningState property: The provisioning state of the capability catalog entry. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Get the clusterCapabilities property: The Cluster capabilities available in the region. + * + * @return the clusterCapabilities value. + */ + public ClusterCapability clusterCapabilities() { + return this.clusterCapabilities; + } + + /** + * Get the poolCapabilities property: The Pool capabilities available in the region, including processor, + * generation, and compute-model details. + * + * @return the poolCapabilities value. + */ + public PoolCapability poolCapabilities() { + return this.poolCapabilities; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of CapabilityProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of CapabilityProperties 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 CapabilityProperties. + */ + public static CapabilityProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + CapabilityProperties deserializedCapabilityProperties = new CapabilityProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("clusterCapabilities".equals(fieldName)) { + deserializedCapabilityProperties.clusterCapabilities = ClusterCapability.fromJson(reader); + } else if ("poolCapabilities".equals(fieldName)) { + deserializedCapabilityProperties.poolCapabilities = PoolCapability.fromJson(reader); + } else if ("provisioningState".equals(fieldName)) { + deserializedCapabilityProperties.provisioningState + = ProvisioningState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedCapabilityProperties; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureCapabilities.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureCapabilities.java new file mode 100644 index 0000000000000..7e0561b051866 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureCapabilities.java @@ -0,0 +1,151 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; +import com.azure.resourcemanager.horizondb.fluent.models.ChangeDataCaptureCapabilityInner; + +/** + * Resource collection API of ChangeDataCaptureCapabilities. + */ +public interface ChangeDataCaptureCapabilities { + /** + * Gets the singleton change data capture capability for a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the singleton change data capture capability for a HorizonDB cluster along with {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String clusterName, + Context context); + + /** + * Gets the singleton change data capture capability for a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB 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 singleton change data capture capability for a HorizonDB cluster. + */ + ChangeDataCaptureCapability get(String resourceGroupName, String clusterName); + + /** + * Creates or replaces the singleton change data capture capability and reconciles shared engine prerequisites. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the singleton change data capture capability for a HorizonDB cluster. + */ + ChangeDataCaptureCapability createOrReplace(String resourceGroupName, String clusterName, + ChangeDataCaptureCapabilityInner resource); + + /** + * Creates or replaces the singleton change data capture capability and reconciles shared engine prerequisites. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the singleton change data capture capability for a HorizonDB cluster. + */ + ChangeDataCaptureCapability createOrReplace(String resourceGroupName, String clusterName, + ChangeDataCaptureCapabilityInner resource, Context context); + + /** + * Updates mutable change data capture capability properties. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the singleton change data capture capability for a HorizonDB cluster. + */ + ChangeDataCaptureCapability update(String resourceGroupName, String clusterName, + ChangeDataCaptureCapabilityForPatchUpdate properties); + + /** + * Updates mutable change data capture capability properties. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the singleton change data capture capability for a HorizonDB cluster. + */ + ChangeDataCaptureCapability update(String resourceGroupName, String clusterName, + ChangeDataCaptureCapabilityForPatchUpdate properties, Context context); + + /** + * Deletes the change data capture capability after all change data capture destinations and configurations have + * been removed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB 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. + */ + void deleteByResourceGroup(String resourceGroupName, String clusterName); + + /** + * Deletes the change data capture capability after all change data capture destinations and configurations have + * been removed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String clusterName, Context context); + + /** + * Lists the optional singleton change data capture capability for a cluster. The result contains zero or one item. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ChangeDataCaptureCapability list operation as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String clusterName); + + /** + * Lists the optional singleton change data capture capability for a cluster. The result contains zero or one item. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ChangeDataCaptureCapability list operation as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String clusterName, Context context); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureCapability.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureCapability.java new file mode 100644 index 0000000000000..bad6e71ecbdbc --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureCapability.java @@ -0,0 +1,65 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.horizondb.fluent.models.ChangeDataCaptureCapabilityInner; + +/** + * An immutable client-side representation of ChangeDataCaptureCapability. + */ +public interface ChangeDataCaptureCapability { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + ChangeDataCaptureCapabilityProperties properties(); + + /** + * Gets the eTag property: If eTag is provided in the response body, it may also be provided as a header per the + * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. + * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), + * and If-Range (section 14.27) header fields. + * + * @return the eTag value. + */ + String eTag(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the inner com.azure.resourcemanager.horizondb.fluent.models.ChangeDataCaptureCapabilityInner object. + * + * @return the inner object. + */ + ChangeDataCaptureCapabilityInner innerModel(); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureCapabilityForPatchUpdate.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureCapabilityForPatchUpdate.java new file mode 100644 index 0000000000000..c32ed903503f5 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureCapabilityForPatchUpdate.java @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.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; + +/** + * A sparse update request for the singleton change data capture capability. + */ +@Fluent +public final class ChangeDataCaptureCapabilityForPatchUpdate + implements JsonSerializable { + /* + * The capability properties to update. + */ + private ChangeDataCaptureCapabilityPropertiesForPatchUpdate properties; + + /** + * Creates an instance of ChangeDataCaptureCapabilityForPatchUpdate class. + */ + public ChangeDataCaptureCapabilityForPatchUpdate() { + } + + /** + * Get the properties property: The capability properties to update. + * + * @return the properties value. + */ + public ChangeDataCaptureCapabilityPropertiesForPatchUpdate properties() { + return this.properties; + } + + /** + * Set the properties property: The capability properties to update. + * + * @param properties the properties value to set. + * @return the ChangeDataCaptureCapabilityForPatchUpdate object itself. + */ + public ChangeDataCaptureCapabilityForPatchUpdate + withProperties(ChangeDataCaptureCapabilityPropertiesForPatchUpdate properties) { + this.properties = properties; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ChangeDataCaptureCapabilityForPatchUpdate from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ChangeDataCaptureCapabilityForPatchUpdate 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 ChangeDataCaptureCapabilityForPatchUpdate. + */ + public static ChangeDataCaptureCapabilityForPatchUpdate fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ChangeDataCaptureCapabilityForPatchUpdate deserializedChangeDataCaptureCapabilityForPatchUpdate + = new ChangeDataCaptureCapabilityForPatchUpdate(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("properties".equals(fieldName)) { + deserializedChangeDataCaptureCapabilityForPatchUpdate.properties + = ChangeDataCaptureCapabilityPropertiesForPatchUpdate.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedChangeDataCaptureCapabilityForPatchUpdate; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureCapabilityProperties.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureCapabilityProperties.java new file mode 100644 index 0000000000000..63a6e644b91d3 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureCapabilityProperties.java @@ -0,0 +1,255 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.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; + +/** + * The properties of the singleton change data capture capability. + */ +@Fluent +public final class ChangeDataCaptureCapabilityProperties + implements JsonSerializable { + /* + * The requested capability state. + */ + private ChangeDataCaptureDesiredState desiredState; + + /* + * The current effective capability state. + */ + private ChangeDataCaptureEffectiveState effectiveState; + + /* + * The provisioning state of the latest capability mutation. + */ + private ProvisioningState provisioningState; + + /* + * Whether HorizonDB may automatically upgrade the service-owned change data capture extension within the supported + * compatibility policy. + */ + private Boolean autoUpgradeExtension; + + /* + * The implementation architecture currently used for change capture. + */ + private ChangeDataCaptureReplicationArchitecture replicationArchitecture; + + /* + * The installed change data capture extension and its current lifecycle state. + */ + private ChangeDataCaptureExtensionStatus extension; + + /* + * The current readiness of change data capture engine and read-write endpoint prerequisites. + */ + private ChangeDataCapturePrerequisiteStatus prerequisites; + + /* + * The number of change data capture destinations under this cluster. + */ + private int destinationCount; + + /* + * The number of change data capture configurations under this cluster. + */ + private int configurationCount; + + /* + * Customer-safe health information for the capability. + */ + private ChangeDataCaptureStatus status; + + /** + * Creates an instance of ChangeDataCaptureCapabilityProperties class. + */ + public ChangeDataCaptureCapabilityProperties() { + } + + /** + * Get the desiredState property: The requested capability state. + * + * @return the desiredState value. + */ + public ChangeDataCaptureDesiredState desiredState() { + return this.desiredState; + } + + /** + * Set the desiredState property: The requested capability state. + * + * @param desiredState the desiredState value to set. + * @return the ChangeDataCaptureCapabilityProperties object itself. + */ + public ChangeDataCaptureCapabilityProperties withDesiredState(ChangeDataCaptureDesiredState desiredState) { + this.desiredState = desiredState; + return this; + } + + /** + * Get the effectiveState property: The current effective capability state. + * + * @return the effectiveState value. + */ + public ChangeDataCaptureEffectiveState effectiveState() { + return this.effectiveState; + } + + /** + * Get the provisioningState property: The provisioning state of the latest capability mutation. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Get the autoUpgradeExtension property: Whether HorizonDB may automatically upgrade the service-owned change data + * capture extension within the supported compatibility policy. + * + * @return the autoUpgradeExtension value. + */ + public Boolean autoUpgradeExtension() { + return this.autoUpgradeExtension; + } + + /** + * Set the autoUpgradeExtension property: Whether HorizonDB may automatically upgrade the service-owned change data + * capture extension within the supported compatibility policy. + * + * @param autoUpgradeExtension the autoUpgradeExtension value to set. + * @return the ChangeDataCaptureCapabilityProperties object itself. + */ + public ChangeDataCaptureCapabilityProperties withAutoUpgradeExtension(Boolean autoUpgradeExtension) { + this.autoUpgradeExtension = autoUpgradeExtension; + return this; + } + + /** + * Get the replicationArchitecture property: The implementation architecture currently used for change capture. + * + * @return the replicationArchitecture value. + */ + public ChangeDataCaptureReplicationArchitecture replicationArchitecture() { + return this.replicationArchitecture; + } + + /** + * Get the extension property: The installed change data capture extension and its current lifecycle state. + * + * @return the extension value. + */ + public ChangeDataCaptureExtensionStatus extension() { + return this.extension; + } + + /** + * Get the prerequisites property: The current readiness of change data capture engine and read-write endpoint + * prerequisites. + * + * @return the prerequisites value. + */ + public ChangeDataCapturePrerequisiteStatus prerequisites() { + return this.prerequisites; + } + + /** + * Get the destinationCount property: The number of change data capture destinations under this cluster. + * + * @return the destinationCount value. + */ + public int destinationCount() { + return this.destinationCount; + } + + /** + * Get the configurationCount property: The number of change data capture configurations under this cluster. + * + * @return the configurationCount value. + */ + public int configurationCount() { + return this.configurationCount; + } + + /** + * Get the status property: Customer-safe health information for the capability. + * + * @return the status value. + */ + public ChangeDataCaptureStatus status() { + return this.status; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("desiredState", this.desiredState == null ? null : this.desiredState.toString()); + jsonWriter.writeBooleanField("autoUpgradeExtension", this.autoUpgradeExtension); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ChangeDataCaptureCapabilityProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ChangeDataCaptureCapabilityProperties 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 ChangeDataCaptureCapabilityProperties. + */ + public static ChangeDataCaptureCapabilityProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ChangeDataCaptureCapabilityProperties deserializedChangeDataCaptureCapabilityProperties + = new ChangeDataCaptureCapabilityProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("desiredState".equals(fieldName)) { + deserializedChangeDataCaptureCapabilityProperties.desiredState + = ChangeDataCaptureDesiredState.fromString(reader.getString()); + } else if ("effectiveState".equals(fieldName)) { + deserializedChangeDataCaptureCapabilityProperties.effectiveState + = ChangeDataCaptureEffectiveState.fromString(reader.getString()); + } else if ("replicationArchitecture".equals(fieldName)) { + deserializedChangeDataCaptureCapabilityProperties.replicationArchitecture + = ChangeDataCaptureReplicationArchitecture.fromString(reader.getString()); + } else if ("extension".equals(fieldName)) { + deserializedChangeDataCaptureCapabilityProperties.extension + = ChangeDataCaptureExtensionStatus.fromJson(reader); + } else if ("prerequisites".equals(fieldName)) { + deserializedChangeDataCaptureCapabilityProperties.prerequisites + = ChangeDataCapturePrerequisiteStatus.fromJson(reader); + } else if ("destinationCount".equals(fieldName)) { + deserializedChangeDataCaptureCapabilityProperties.destinationCount = reader.getInt(); + } else if ("configurationCount".equals(fieldName)) { + deserializedChangeDataCaptureCapabilityProperties.configurationCount = reader.getInt(); + } else if ("status".equals(fieldName)) { + deserializedChangeDataCaptureCapabilityProperties.status = ChangeDataCaptureStatus.fromJson(reader); + } else if ("provisioningState".equals(fieldName)) { + deserializedChangeDataCaptureCapabilityProperties.provisioningState + = ProvisioningState.fromString(reader.getString()); + } else if ("autoUpgradeExtension".equals(fieldName)) { + deserializedChangeDataCaptureCapabilityProperties.autoUpgradeExtension + = reader.getNullable(JsonReader::getBoolean); + } else { + reader.skipChildren(); + } + } + + return deserializedChangeDataCaptureCapabilityProperties; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureCapabilityPropertiesForPatchUpdate.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureCapabilityPropertiesForPatchUpdate.java new file mode 100644 index 0000000000000..fa7f4a958c5d9 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureCapabilityPropertiesForPatchUpdate.java @@ -0,0 +1,123 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.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; + +/** + * Properties for updating the singleton change data capture capability. Omitted properties preserve their current + * values. + */ +@Fluent +public final class ChangeDataCaptureCapabilityPropertiesForPatchUpdate + implements JsonSerializable { + /* + * The requested capability state. + */ + private ChangeDataCaptureDesiredState desiredState; + + /* + * Whether HorizonDB may automatically upgrade the service-owned change data capture extension within the supported + * compatibility policy. + */ + private Boolean autoUpgradeExtension; + + /** + * Creates an instance of ChangeDataCaptureCapabilityPropertiesForPatchUpdate class. + */ + public ChangeDataCaptureCapabilityPropertiesForPatchUpdate() { + } + + /** + * Get the desiredState property: The requested capability state. + * + * @return the desiredState value. + */ + public ChangeDataCaptureDesiredState desiredState() { + return this.desiredState; + } + + /** + * Set the desiredState property: The requested capability state. + * + * @param desiredState the desiredState value to set. + * @return the ChangeDataCaptureCapabilityPropertiesForPatchUpdate object itself. + */ + public ChangeDataCaptureCapabilityPropertiesForPatchUpdate + withDesiredState(ChangeDataCaptureDesiredState desiredState) { + this.desiredState = desiredState; + return this; + } + + /** + * Get the autoUpgradeExtension property: Whether HorizonDB may automatically upgrade the service-owned change data + * capture extension within the supported compatibility policy. + * + * @return the autoUpgradeExtension value. + */ + public Boolean autoUpgradeExtension() { + return this.autoUpgradeExtension; + } + + /** + * Set the autoUpgradeExtension property: Whether HorizonDB may automatically upgrade the service-owned change data + * capture extension within the supported compatibility policy. + * + * @param autoUpgradeExtension the autoUpgradeExtension value to set. + * @return the ChangeDataCaptureCapabilityPropertiesForPatchUpdate object itself. + */ + public ChangeDataCaptureCapabilityPropertiesForPatchUpdate withAutoUpgradeExtension(Boolean autoUpgradeExtension) { + this.autoUpgradeExtension = autoUpgradeExtension; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("desiredState", this.desiredState == null ? null : this.desiredState.toString()); + jsonWriter.writeBooleanField("autoUpgradeExtension", this.autoUpgradeExtension); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ChangeDataCaptureCapabilityPropertiesForPatchUpdate from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ChangeDataCaptureCapabilityPropertiesForPatchUpdate 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 ChangeDataCaptureCapabilityPropertiesForPatchUpdate. + */ + public static ChangeDataCaptureCapabilityPropertiesForPatchUpdate fromJson(JsonReader jsonReader) + throws IOException { + return jsonReader.readObject(reader -> { + ChangeDataCaptureCapabilityPropertiesForPatchUpdate deserializedChangeDataCaptureCapabilityPropertiesForPatchUpdate + = new ChangeDataCaptureCapabilityPropertiesForPatchUpdate(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("desiredState".equals(fieldName)) { + deserializedChangeDataCaptureCapabilityPropertiesForPatchUpdate.desiredState + = ChangeDataCaptureDesiredState.fromString(reader.getString()); + } else if ("autoUpgradeExtension".equals(fieldName)) { + deserializedChangeDataCaptureCapabilityPropertiesForPatchUpdate.autoUpgradeExtension + = reader.getNullable(JsonReader::getBoolean); + } else { + reader.skipChildren(); + } + } + + return deserializedChangeDataCaptureCapabilityPropertiesForPatchUpdate; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbReplica.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureConfiguration.java similarity index 58% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbReplica.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureConfiguration.java index 7becfdc1d48c6..d3e3309e8dc28 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbReplica.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureConfiguration.java @@ -6,12 +6,12 @@ import com.azure.core.management.SystemData; import com.azure.core.util.Context; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbReplicaInner; +import com.azure.resourcemanager.horizondb.fluent.models.ChangeDataCaptureConfigurationInner; /** - * An immutable client-side representation of HorizonDbReplica. + * An immutable client-side representation of ChangeDataCaptureConfiguration. */ -public interface HorizonDbReplica { +public interface ChangeDataCaptureConfiguration { /** * Gets the id property: Fully qualified resource Id for the resource. * @@ -38,7 +38,17 @@ public interface HorizonDbReplica { * * @return the properties value. */ - HorizonDbReplicaProperties properties(); + ChangeDataCaptureConfigurationProperties properties(); + + /** + * Gets the eTag property: If eTag is provided in the response body, it may also be provided as a header per the + * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. + * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), + * and If-Range (section 14.27) header fields. + * + * @return the eTag value. + */ + String eTag(); /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. @@ -55,47 +65,46 @@ public interface HorizonDbReplica { String resourceGroupName(); /** - * Gets the inner com.azure.resourcemanager.horizondb.fluent.models.HorizonDbReplicaInner object. + * Gets the inner com.azure.resourcemanager.horizondb.fluent.models.ChangeDataCaptureConfigurationInner object. * * @return the inner object. */ - HorizonDbReplicaInner innerModel(); + ChangeDataCaptureConfigurationInner innerModel(); /** - * The entirety of the HorizonDbReplica definition. + * The entirety of the ChangeDataCaptureConfiguration definition. */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } /** - * The HorizonDbReplica definition stages. + * The ChangeDataCaptureConfiguration definition stages. */ interface DefinitionStages { /** - * The first stage of the HorizonDbReplica definition. + * The first stage of the ChangeDataCaptureConfiguration definition. */ interface Blank extends WithParentResource { } /** - * The stage of the HorizonDbReplica definition allowing to specify parent resource. + * The stage of the ChangeDataCaptureConfiguration definition allowing to specify parent resource. */ interface WithParentResource { /** - * Specifies resourceGroupName, clusterName, poolName. + * Specifies resourceGroupName, clusterName. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. * @return the next definition stage. */ - WithCreate withExistingPool(String resourceGroupName, String clusterName, String poolName); + WithCreate withExistingCluster(String resourceGroupName, String clusterName); } /** - * The stage of the HorizonDbReplica definition which contains all the minimum required properties for the - * resource to be created, but also allows for any other optional properties to be specified. + * The stage of the ChangeDataCaptureConfiguration definition which contains all the minimum required properties + * for the resource to be created, but also allows for any other optional properties to be specified. */ interface WithCreate extends DefinitionStages.WithProperties { /** @@ -103,7 +112,7 @@ interface WithCreate extends DefinitionStages.WithProperties { * * @return the created resource. */ - HorizonDbReplica create(); + ChangeDataCaptureConfiguration create(); /** * Executes the create request. @@ -111,11 +120,11 @@ interface WithCreate extends DefinitionStages.WithProperties { * @param context The context to associate with this operation. * @return the created resource. */ - HorizonDbReplica create(Context context); + ChangeDataCaptureConfiguration create(Context context); } /** - * The stage of the HorizonDbReplica definition allowing to specify properties. + * The stage of the ChangeDataCaptureConfiguration definition allowing to specify properties. */ interface WithProperties { /** @@ -124,19 +133,19 @@ interface WithProperties { * @param properties The resource-specific properties for this resource. * @return the next definition stage. */ - WithCreate withProperties(HorizonDbReplicaProperties properties); + WithCreate withProperties(ChangeDataCaptureConfigurationProperties properties); } } /** - * Begins update for the HorizonDbReplica resource. + * Begins update for the ChangeDataCaptureConfiguration resource. * * @return the stage of resource update. */ - HorizonDbReplica.Update update(); + ChangeDataCaptureConfiguration.Update update(); /** - * The template for HorizonDbReplica update. + * The template for ChangeDataCaptureConfiguration update. */ interface Update extends UpdateStages.WithProperties { /** @@ -144,7 +153,7 @@ interface Update extends UpdateStages.WithProperties { * * @return the updated resource. */ - HorizonDbReplica apply(); + ChangeDataCaptureConfiguration apply(); /** * Executes the update request. @@ -152,24 +161,24 @@ interface Update extends UpdateStages.WithProperties { * @param context The context to associate with this operation. * @return the updated resource. */ - HorizonDbReplica apply(Context context); + ChangeDataCaptureConfiguration apply(Context context); } /** - * The HorizonDbReplica update stages. + * The ChangeDataCaptureConfiguration update stages. */ interface UpdateStages { /** - * The stage of the HorizonDbReplica update allowing to specify properties. + * The stage of the ChangeDataCaptureConfiguration update allowing to specify properties. */ interface WithProperties { /** - * Specifies the properties property: Properties of a HorizonDB replica for update operations.. + * Specifies the properties property: The configuration properties to update.. * - * @param properties Properties of a HorizonDB replica for update operations. + * @param properties The configuration properties to update. * @return the next definition stage. */ - Update withProperties(HorizonDbReplicaPropertiesForPatchUpdate properties); + Update withProperties(ChangeDataCaptureConfigurationPropertiesForPatchUpdate properties); } } @@ -178,7 +187,7 @@ interface WithProperties { * * @return the refreshed resource. */ - HorizonDbReplica refresh(); + ChangeDataCaptureConfiguration refresh(); /** * Refreshes the resource to sync with Azure. @@ -186,5 +195,5 @@ interface WithProperties { * @param context The context to associate with this operation. * @return the refreshed resource. */ - HorizonDbReplica refresh(Context context); + ChangeDataCaptureConfiguration refresh(Context context); } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureConfigurationForPatchUpdate.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureConfigurationForPatchUpdate.java new file mode 100644 index 0000000000000..50dc5ec8eb05b --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureConfigurationForPatchUpdate.java @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.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; + +/** + * A sparse update request for a change data capture configuration. + */ +@Fluent +public final class ChangeDataCaptureConfigurationForPatchUpdate + implements JsonSerializable { + /* + * The configuration properties to update. + */ + private ChangeDataCaptureConfigurationPropertiesForPatchUpdate properties; + + /** + * Creates an instance of ChangeDataCaptureConfigurationForPatchUpdate class. + */ + public ChangeDataCaptureConfigurationForPatchUpdate() { + } + + /** + * Get the properties property: The configuration properties to update. + * + * @return the properties value. + */ + public ChangeDataCaptureConfigurationPropertiesForPatchUpdate properties() { + return this.properties; + } + + /** + * Set the properties property: The configuration properties to update. + * + * @param properties the properties value to set. + * @return the ChangeDataCaptureConfigurationForPatchUpdate object itself. + */ + public ChangeDataCaptureConfigurationForPatchUpdate + withProperties(ChangeDataCaptureConfigurationPropertiesForPatchUpdate properties) { + this.properties = properties; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ChangeDataCaptureConfigurationForPatchUpdate from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ChangeDataCaptureConfigurationForPatchUpdate 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 ChangeDataCaptureConfigurationForPatchUpdate. + */ + public static ChangeDataCaptureConfigurationForPatchUpdate fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ChangeDataCaptureConfigurationForPatchUpdate deserializedChangeDataCaptureConfigurationForPatchUpdate + = new ChangeDataCaptureConfigurationForPatchUpdate(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("properties".equals(fieldName)) { + deserializedChangeDataCaptureConfigurationForPatchUpdate.properties + = ChangeDataCaptureConfigurationPropertiesForPatchUpdate.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedChangeDataCaptureConfigurationForPatchUpdate; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureConfigurationProperties.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureConfigurationProperties.java new file mode 100644 index 0000000000000..966a2895bff6d --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureConfigurationProperties.java @@ -0,0 +1,301 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.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; + +/** + * The properties of a Microsoft Fabric Mirroring configuration. + */ +@Fluent +public final class ChangeDataCaptureConfigurationProperties + implements JsonSerializable { + /* + * The exact PostgreSQL database name enrolled in this logical stream. This value is immutable. + */ + private String databaseName; + + /* + * The immutable usage profile. API version 2026-10-01-preview accepts Mirroring only. + */ + private ChangeDataCaptureUsageProfile usageProfile; + + /* + * The immutable resource ID of an enabled change data capture destination under the same cluster. + */ + private String destinationResourceId; + + /* + * A service-generated identifier for the logical stream, represented as an RFC 4122 GUID. This value remains stable + * when a writer role moves and the service materializes a replacement ARM resource under the new writer cluster. + */ + private String logicalStreamId; + + /* + * The requested configuration state. + */ + private ChangeDataCaptureDesiredState desiredState; + + /* + * The current effective configuration state. + */ + private ChangeDataCaptureEffectiveState effectiveState; + + /* + * The provisioning state of the latest configuration mutation. + */ + private ProvisioningState provisioningState; + + /* + * The change data capture extension state for the enrolled database. + */ + private ChangeDataCaptureExtensionStatus extension; + + /* + * The known status of the destination-owned replication session. + */ + private ChangeDataCaptureReplicationStatus replication; + + /* + * The current writer-topology binding for this logical stream. + */ + private ChangeDataCaptureTopologyBindingStatus topology; + + /* + * Customer-safe health information for the configuration. + */ + private ChangeDataCaptureStatus status; + + /** + * Creates an instance of ChangeDataCaptureConfigurationProperties class. + */ + public ChangeDataCaptureConfigurationProperties() { + } + + /** + * Get the databaseName property: The exact PostgreSQL database name enrolled in this logical stream. This value is + * immutable. + * + * @return the databaseName value. + */ + public String databaseName() { + return this.databaseName; + } + + /** + * Set the databaseName property: The exact PostgreSQL database name enrolled in this logical stream. This value is + * immutable. + * + * @param databaseName the databaseName value to set. + * @return the ChangeDataCaptureConfigurationProperties object itself. + */ + public ChangeDataCaptureConfigurationProperties withDatabaseName(String databaseName) { + this.databaseName = databaseName; + return this; + } + + /** + * Get the usageProfile property: The immutable usage profile. API version 2026-10-01-preview accepts Mirroring + * only. + * + * @return the usageProfile value. + */ + public ChangeDataCaptureUsageProfile usageProfile() { + return this.usageProfile; + } + + /** + * Set the usageProfile property: The immutable usage profile. API version 2026-10-01-preview accepts Mirroring + * only. + * + * @param usageProfile the usageProfile value to set. + * @return the ChangeDataCaptureConfigurationProperties object itself. + */ + public ChangeDataCaptureConfigurationProperties withUsageProfile(ChangeDataCaptureUsageProfile usageProfile) { + this.usageProfile = usageProfile; + return this; + } + + /** + * Get the destinationResourceId property: The immutable resource ID of an enabled change data capture destination + * under the same cluster. + * + * @return the destinationResourceId value. + */ + public String destinationResourceId() { + return this.destinationResourceId; + } + + /** + * Set the destinationResourceId property: The immutable resource ID of an enabled change data capture destination + * under the same cluster. + * + * @param destinationResourceId the destinationResourceId value to set. + * @return the ChangeDataCaptureConfigurationProperties object itself. + */ + public ChangeDataCaptureConfigurationProperties withDestinationResourceId(String destinationResourceId) { + this.destinationResourceId = destinationResourceId; + return this; + } + + /** + * Get the logicalStreamId property: A service-generated identifier for the logical stream, represented as an RFC + * 4122 GUID. This value remains stable when a writer role moves and the service materializes a replacement ARM + * resource under the new writer cluster. + * + * @return the logicalStreamId value. + */ + public String logicalStreamId() { + return this.logicalStreamId; + } + + /** + * Get the desiredState property: The requested configuration state. + * + * @return the desiredState value. + */ + public ChangeDataCaptureDesiredState desiredState() { + return this.desiredState; + } + + /** + * Set the desiredState property: The requested configuration state. + * + * @param desiredState the desiredState value to set. + * @return the ChangeDataCaptureConfigurationProperties object itself. + */ + public ChangeDataCaptureConfigurationProperties withDesiredState(ChangeDataCaptureDesiredState desiredState) { + this.desiredState = desiredState; + return this; + } + + /** + * Get the effectiveState property: The current effective configuration state. + * + * @return the effectiveState value. + */ + public ChangeDataCaptureEffectiveState effectiveState() { + return this.effectiveState; + } + + /** + * Get the provisioningState property: The provisioning state of the latest configuration mutation. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Get the extension property: The change data capture extension state for the enrolled database. + * + * @return the extension value. + */ + public ChangeDataCaptureExtensionStatus extension() { + return this.extension; + } + + /** + * Get the replication property: The known status of the destination-owned replication session. + * + * @return the replication value. + */ + public ChangeDataCaptureReplicationStatus replication() { + return this.replication; + } + + /** + * Get the topology property: The current writer-topology binding for this logical stream. + * + * @return the topology value. + */ + public ChangeDataCaptureTopologyBindingStatus topology() { + return this.topology; + } + + /** + * Get the status property: Customer-safe health information for the configuration. + * + * @return the status value. + */ + public ChangeDataCaptureStatus status() { + return this.status; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("databaseName", this.databaseName); + jsonWriter.writeStringField("usageProfile", this.usageProfile == null ? null : this.usageProfile.toString()); + jsonWriter.writeStringField("destinationResourceId", this.destinationResourceId); + jsonWriter.writeStringField("desiredState", this.desiredState == null ? null : this.desiredState.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ChangeDataCaptureConfigurationProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ChangeDataCaptureConfigurationProperties 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 ChangeDataCaptureConfigurationProperties. + */ + public static ChangeDataCaptureConfigurationProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ChangeDataCaptureConfigurationProperties deserializedChangeDataCaptureConfigurationProperties + = new ChangeDataCaptureConfigurationProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("databaseName".equals(fieldName)) { + deserializedChangeDataCaptureConfigurationProperties.databaseName = reader.getString(); + } else if ("usageProfile".equals(fieldName)) { + deserializedChangeDataCaptureConfigurationProperties.usageProfile + = ChangeDataCaptureUsageProfile.fromString(reader.getString()); + } else if ("destinationResourceId".equals(fieldName)) { + deserializedChangeDataCaptureConfigurationProperties.destinationResourceId = reader.getString(); + } else if ("logicalStreamId".equals(fieldName)) { + deserializedChangeDataCaptureConfigurationProperties.logicalStreamId = reader.getString(); + } else if ("desiredState".equals(fieldName)) { + deserializedChangeDataCaptureConfigurationProperties.desiredState + = ChangeDataCaptureDesiredState.fromString(reader.getString()); + } else if ("effectiveState".equals(fieldName)) { + deserializedChangeDataCaptureConfigurationProperties.effectiveState + = ChangeDataCaptureEffectiveState.fromString(reader.getString()); + } else if ("extension".equals(fieldName)) { + deserializedChangeDataCaptureConfigurationProperties.extension + = ChangeDataCaptureExtensionStatus.fromJson(reader); + } else if ("replication".equals(fieldName)) { + deserializedChangeDataCaptureConfigurationProperties.replication + = ChangeDataCaptureReplicationStatus.fromJson(reader); + } else if ("topology".equals(fieldName)) { + deserializedChangeDataCaptureConfigurationProperties.topology + = ChangeDataCaptureTopologyBindingStatus.fromJson(reader); + } else if ("status".equals(fieldName)) { + deserializedChangeDataCaptureConfigurationProperties.status + = ChangeDataCaptureStatus.fromJson(reader); + } else if ("provisioningState".equals(fieldName)) { + deserializedChangeDataCaptureConfigurationProperties.provisioningState + = ProvisioningState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedChangeDataCaptureConfigurationProperties; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureConfigurationPropertiesForPatchUpdate.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureConfigurationPropertiesForPatchUpdate.java new file mode 100644 index 0000000000000..9e0e42e6b8e85 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureConfigurationPropertiesForPatchUpdate.java @@ -0,0 +1,90 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.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; + +/** + * Properties for updating a change data capture configuration. Omitted properties preserve their current values. + */ +@Fluent +public final class ChangeDataCaptureConfigurationPropertiesForPatchUpdate + implements JsonSerializable { + /* + * The requested configuration state. + */ + private ChangeDataCaptureDesiredState desiredState; + + /** + * Creates an instance of ChangeDataCaptureConfigurationPropertiesForPatchUpdate class. + */ + public ChangeDataCaptureConfigurationPropertiesForPatchUpdate() { + } + + /** + * Get the desiredState property: The requested configuration state. + * + * @return the desiredState value. + */ + public ChangeDataCaptureDesiredState desiredState() { + return this.desiredState; + } + + /** + * Set the desiredState property: The requested configuration state. + * + * @param desiredState the desiredState value to set. + * @return the ChangeDataCaptureConfigurationPropertiesForPatchUpdate object itself. + */ + public ChangeDataCaptureConfigurationPropertiesForPatchUpdate + withDesiredState(ChangeDataCaptureDesiredState desiredState) { + this.desiredState = desiredState; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("desiredState", this.desiredState == null ? null : this.desiredState.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ChangeDataCaptureConfigurationPropertiesForPatchUpdate from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ChangeDataCaptureConfigurationPropertiesForPatchUpdate 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 ChangeDataCaptureConfigurationPropertiesForPatchUpdate. + */ + public static ChangeDataCaptureConfigurationPropertiesForPatchUpdate fromJson(JsonReader jsonReader) + throws IOException { + return jsonReader.readObject(reader -> { + ChangeDataCaptureConfigurationPropertiesForPatchUpdate deserializedChangeDataCaptureConfigurationPropertiesForPatchUpdate + = new ChangeDataCaptureConfigurationPropertiesForPatchUpdate(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("desiredState".equals(fieldName)) { + deserializedChangeDataCaptureConfigurationPropertiesForPatchUpdate.desiredState + = ChangeDataCaptureDesiredState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedChangeDataCaptureConfigurationPropertiesForPatchUpdate; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbAdministrators.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureConfigurations.java similarity index 60% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbAdministrators.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureConfigurations.java index 1a8aa2c1852d7..d4670eae81a1d 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbAdministrators.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureConfigurations.java @@ -9,76 +9,83 @@ import com.azure.core.util.Context; /** - * Resource collection API of HorizonDbAdministrators. + * Resource collection API of ChangeDataCaptureConfigurations. */ -public interface HorizonDbAdministrators { +public interface ChangeDataCaptureConfigurations { /** - * Gets information about a HorizonDB administrator. + * Gets a change data capture configuration. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. * @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 information about a HorizonDB administrator along with {@link Response}. + * @return a change data capture configuration along with {@link Response}. */ - Response getWithResponse(String resourceGroupName, String clusterName, String objectId, - Context context); + Response getWithResponse(String resourceGroupName, String clusterName, + String configurationName, Context context); /** - * Gets information about a HorizonDB administrator. + * Gets a change data capture configuration. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. * @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 information about a HorizonDB administrator. + * @return a change data capture configuration. */ - HorizonDbAdministrator get(String resourceGroupName, String clusterName, String objectId); + ChangeDataCaptureConfiguration get(String resourceGroupName, String clusterName, String configurationName); /** - * Deletes a HorizonDB administrator. + * Deletes a change data capture configuration after destination-side replication has been stopped or detached. This + * operation never deletes the Microsoft Fabric mirrored-database item. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. * @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 delete(String resourceGroupName, String clusterName, String objectId); + void delete(String resourceGroupName, String clusterName, String configurationName); /** - * Deletes a HorizonDB administrator. + * Deletes a change data capture configuration after destination-side replication has been stopped or detached. This + * operation never deletes the Microsoft Fabric mirrored-database item. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param objectId The Entra ID object identifier of the principal (an RFC 4122 GUID). + * @param configurationName The caller-selected ARM-safe name of the change data capture configuration. The exact + * PostgreSQL database name is stored in properties.databaseName. * @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 delete(String resourceGroupName, String clusterName, String objectId, Context context); + void delete(String resourceGroupName, String clusterName, String configurationName, Context context); /** - * Lists all HorizonDB administrators in a cluster. + * Lists change data capture configurations in a HorizonDB cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbAdministrator list operation as paginated response with {@link PagedIterable}. + * @return the response of a ChangeDataCaptureConfiguration list operation as paginated response with + * {@link PagedIterable}. */ - PagedIterable list(String resourceGroupName, String clusterName); + PagedIterable list(String resourceGroupName, String clusterName); /** - * Lists all HorizonDB administrators in a cluster. + * Lists change data capture configurations in a HorizonDB cluster. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -86,35 +93,37 @@ Response getWithResponse(String resourceGroupName, Strin * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbAdministrator list operation as paginated response with {@link PagedIterable}. + * @return the response of a ChangeDataCaptureConfiguration list operation as paginated response with + * {@link PagedIterable}. */ - PagedIterable list(String resourceGroupName, String clusterName, Context context); + PagedIterable list(String resourceGroupName, String clusterName, Context context); /** - * Gets information about a HorizonDB administrator. + * Gets a change data capture configuration. * * @param id the resource ID. * @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 information about a HorizonDB administrator along with {@link Response}. + * @return a change data capture configuration along with {@link Response}. */ - HorizonDbAdministrator getById(String id); + ChangeDataCaptureConfiguration getById(String id); /** - * Gets information about a HorizonDB administrator. + * Gets a change data capture configuration. * * @param id the resource ID. * @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 information about a HorizonDB administrator along with {@link Response}. + * @return a change data capture configuration along with {@link Response}. */ - Response getByIdWithResponse(String id, Context context); + Response getByIdWithResponse(String id, Context context); /** - * Deletes a HorizonDB administrator. + * Deletes a change data capture configuration after destination-side replication has been stopped or detached. This + * operation never deletes the Microsoft Fabric mirrored-database item. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -124,7 +133,8 @@ Response getWithResponse(String resourceGroupName, Strin void deleteById(String id); /** - * Deletes a HorizonDB administrator. + * Deletes a change data capture configuration after destination-side replication has been stopped or detached. This + * operation never deletes the Microsoft Fabric mirrored-database item. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -135,10 +145,10 @@ Response getWithResponse(String resourceGroupName, Strin void deleteByIdWithResponse(String id, Context context); /** - * Begins definition for a new HorizonDbAdministrator resource. + * Begins definition for a new ChangeDataCaptureConfiguration resource. * * @param name resource name. - * @return the first stage of the new HorizonDbAdministrator definition. + * @return the first stage of the new ChangeDataCaptureConfiguration definition. */ - HorizonDbAdministrator.DefinitionStages.Blank define(String name); + ChangeDataCaptureConfiguration.DefinitionStages.Blank define(String name); } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDesiredState.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDesiredState.java new file mode 100644 index 0000000000000..22a7c4b636d0c --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDesiredState.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The requested state of a HorizonDB change data capture capability, destination, or configuration. + */ +public final class ChangeDataCaptureDesiredState extends ExpandableStringEnum { + /** + * The resource should be enabled. + */ + public static final ChangeDataCaptureDesiredState ENABLED = fromString("Enabled"); + + /** + * The resource should be disabled. + */ + public static final ChangeDataCaptureDesiredState DISABLED = fromString("Disabled"); + + /** + * Creates a new instance of ChangeDataCaptureDesiredState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ChangeDataCaptureDesiredState() { + } + + /** + * Creates or finds a ChangeDataCaptureDesiredState from its string representation. + * + * @param name a name to look for. + * @return the corresponding ChangeDataCaptureDesiredState. + */ + public static ChangeDataCaptureDesiredState fromString(String name) { + return fromString(name, ChangeDataCaptureDesiredState.class); + } + + /** + * Gets known ChangeDataCaptureDesiredState values. + * + * @return known ChangeDataCaptureDesiredState values. + */ + public static Collection values() { + return values(ChangeDataCaptureDesiredState.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbFirewallRule.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestination.java similarity index 58% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbFirewallRule.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestination.java index 120b8795cd0ce..15eb662826065 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbFirewallRule.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestination.java @@ -6,12 +6,12 @@ import com.azure.core.management.SystemData; import com.azure.core.util.Context; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbFirewallRuleInner; +import com.azure.resourcemanager.horizondb.fluent.models.ChangeDataCaptureDestinationInner; /** - * An immutable client-side representation of HorizonDbFirewallRule. + * An immutable client-side representation of ChangeDataCaptureDestination. */ -public interface HorizonDbFirewallRule { +public interface ChangeDataCaptureDestination { /** * Gets the id property: Fully qualified resource Id for the resource. * @@ -38,7 +38,17 @@ public interface HorizonDbFirewallRule { * * @return the properties value. */ - HorizonDbFirewallRuleProperties properties(); + ChangeDataCaptureDestinationProperties properties(); + + /** + * Gets the eTag property: If eTag is provided in the response body, it may also be provided as a header per the + * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. + * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), + * and If-Range (section 14.27) header fields. + * + * @return the eTag value. + */ + String eTag(); /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. @@ -55,47 +65,46 @@ public interface HorizonDbFirewallRule { String resourceGroupName(); /** - * Gets the inner com.azure.resourcemanager.horizondb.fluent.models.HorizonDbFirewallRuleInner object. + * Gets the inner com.azure.resourcemanager.horizondb.fluent.models.ChangeDataCaptureDestinationInner object. * * @return the inner object. */ - HorizonDbFirewallRuleInner innerModel(); + ChangeDataCaptureDestinationInner innerModel(); /** - * The entirety of the HorizonDbFirewallRule definition. + * The entirety of the ChangeDataCaptureDestination definition. */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { } /** - * The HorizonDbFirewallRule definition stages. + * The ChangeDataCaptureDestination definition stages. */ interface DefinitionStages { /** - * The first stage of the HorizonDbFirewallRule definition. + * The first stage of the ChangeDataCaptureDestination definition. */ interface Blank extends WithParentResource { } /** - * The stage of the HorizonDbFirewallRule definition allowing to specify parent resource. + * The stage of the ChangeDataCaptureDestination definition allowing to specify parent resource. */ interface WithParentResource { /** - * Specifies resourceGroupName, clusterName, poolName. + * Specifies resourceGroupName, clusterName. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. * @return the next definition stage. */ - WithCreate withExistingPool(String resourceGroupName, String clusterName, String poolName); + WithCreate withExistingCluster(String resourceGroupName, String clusterName); } /** - * The stage of the HorizonDbFirewallRule definition which contains all the minimum required properties for the - * resource to be created, but also allows for any other optional properties to be specified. + * The stage of the ChangeDataCaptureDestination definition which contains all the minimum required properties + * for the resource to be created, but also allows for any other optional properties to be specified. */ interface WithCreate extends DefinitionStages.WithProperties { /** @@ -103,7 +112,7 @@ interface WithCreate extends DefinitionStages.WithProperties { * * @return the created resource. */ - HorizonDbFirewallRule create(); + ChangeDataCaptureDestination create(); /** * Executes the create request. @@ -111,11 +120,11 @@ interface WithCreate extends DefinitionStages.WithProperties { * @param context The context to associate with this operation. * @return the created resource. */ - HorizonDbFirewallRule create(Context context); + ChangeDataCaptureDestination create(Context context); } /** - * The stage of the HorizonDbFirewallRule definition allowing to specify properties. + * The stage of the ChangeDataCaptureDestination definition allowing to specify properties. */ interface WithProperties { /** @@ -124,19 +133,19 @@ interface WithProperties { * @param properties The resource-specific properties for this resource. * @return the next definition stage. */ - WithCreate withProperties(HorizonDbFirewallRuleProperties properties); + WithCreate withProperties(ChangeDataCaptureDestinationProperties properties); } } /** - * Begins update for the HorizonDbFirewallRule resource. + * Begins update for the ChangeDataCaptureDestination resource. * * @return the stage of resource update. */ - HorizonDbFirewallRule.Update update(); + ChangeDataCaptureDestination.Update update(); /** - * The template for HorizonDbFirewallRule update. + * The template for ChangeDataCaptureDestination update. */ interface Update extends UpdateStages.WithProperties { /** @@ -144,7 +153,7 @@ interface Update extends UpdateStages.WithProperties { * * @return the updated resource. */ - HorizonDbFirewallRule apply(); + ChangeDataCaptureDestination apply(); /** * Executes the update request. @@ -152,24 +161,24 @@ interface Update extends UpdateStages.WithProperties { * @param context The context to associate with this operation. * @return the updated resource. */ - HorizonDbFirewallRule apply(Context context); + ChangeDataCaptureDestination apply(Context context); } /** - * The HorizonDbFirewallRule update stages. + * The ChangeDataCaptureDestination update stages. */ interface UpdateStages { /** - * The stage of the HorizonDbFirewallRule update allowing to specify properties. + * The stage of the ChangeDataCaptureDestination update allowing to specify properties. */ interface WithProperties { /** - * Specifies the properties property: The resource-specific properties for this resource.. + * Specifies the properties property: The destination properties to update.. * - * @param properties The resource-specific properties for this resource. + * @param properties The destination properties to update. * @return the next definition stage. */ - Update withProperties(HorizonDbFirewallRuleProperties properties); + Update withProperties(ChangeDataCaptureDestinationPropertiesForPatchUpdate properties); } } @@ -178,7 +187,7 @@ interface WithProperties { * * @return the refreshed resource. */ - HorizonDbFirewallRule refresh(); + ChangeDataCaptureDestination refresh(); /** * Refreshes the resource to sync with Azure. @@ -186,5 +195,5 @@ interface WithProperties { * @param context The context to associate with this operation. * @return the refreshed resource. */ - HorizonDbFirewallRule refresh(Context context); + ChangeDataCaptureDestination refresh(Context context); } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestinationDetails.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestinationDetails.java new file mode 100644 index 0000000000000..45dc244f7e792 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestinationDetails.java @@ -0,0 +1,133 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.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; + +/** + * Destination-specific settings discriminated by destinationType. + */ +@Fluent +public class ChangeDataCaptureDestinationDetails implements JsonSerializable { + /* + * The destination family. + */ + private ChangeDataCaptureDestinationType destinationType + = ChangeDataCaptureDestinationType.fromString("ChangeDataCaptureDestinationDetails"); + + /* + * The protocol used to communicate with the destination. + */ + private ChangeDataCaptureProtocol protocol; + + /** + * Creates an instance of ChangeDataCaptureDestinationDetails class. + */ + public ChangeDataCaptureDestinationDetails() { + } + + /** + * Get the destinationType property: The destination family. + * + * @return the destinationType value. + */ + public ChangeDataCaptureDestinationType destinationType() { + return this.destinationType; + } + + /** + * Get the protocol property: The protocol used to communicate with the destination. + * + * @return the protocol value. + */ + public ChangeDataCaptureProtocol protocol() { + return this.protocol; + } + + /** + * Set the protocol property: The protocol used to communicate with the destination. + * + * @param protocol the protocol value to set. + * @return the ChangeDataCaptureDestinationDetails object itself. + */ + public ChangeDataCaptureDestinationDetails withProtocol(ChangeDataCaptureProtocol protocol) { + this.protocol = protocol; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("protocol", this.protocol == null ? null : this.protocol.toString()); + jsonWriter.writeStringField("destinationType", + this.destinationType == null ? null : this.destinationType.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ChangeDataCaptureDestinationDetails from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ChangeDataCaptureDestinationDetails 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 ChangeDataCaptureDestinationDetails. + */ + public static ChangeDataCaptureDestinationDetails fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String discriminatorValue = null; + try (JsonReader readerToUse = reader.bufferObject()) { + readerToUse.nextToken(); // Prepare for reading + while (readerToUse.nextToken() != JsonToken.END_OBJECT) { + String fieldName = readerToUse.getFieldName(); + readerToUse.nextToken(); + if ("destinationType".equals(fieldName)) { + discriminatorValue = readerToUse.getString(); + break; + } else { + readerToUse.skipChildren(); + } + } + // Use the discriminator value to determine which subtype should be deserialized. + if ("Fabric".equals(discriminatorValue)) { + return FabricDestinationDetails.fromJson(readerToUse.reset()); + } else { + return fromJsonKnownDiscriminator(readerToUse.reset()); + } + } + }); + } + + static ChangeDataCaptureDestinationDetails fromJsonKnownDiscriminator(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ChangeDataCaptureDestinationDetails deserializedChangeDataCaptureDestinationDetails + = new ChangeDataCaptureDestinationDetails(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("protocol".equals(fieldName)) { + deserializedChangeDataCaptureDestinationDetails.protocol + = ChangeDataCaptureProtocol.fromString(reader.getString()); + } else if ("destinationType".equals(fieldName)) { + deserializedChangeDataCaptureDestinationDetails.destinationType + = ChangeDataCaptureDestinationType.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedChangeDataCaptureDestinationDetails; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestinationEffectiveState.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestinationEffectiveState.java new file mode 100644 index 0000000000000..ad1ffea270d2a --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestinationEffectiveState.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.horizondb.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The effective state of a HorizonDB change data capture destination. + */ +public final class ChangeDataCaptureDestinationEffectiveState + extends ExpandableStringEnum { + /** + * The destination is waiting for a validated active identity assignment. + */ + public static final ChangeDataCaptureDestinationEffectiveState WAITING_FOR_IDENTITY + = fromString("WaitingForIdentity"); + + /** + * The destination is being enabled. + */ + public static final ChangeDataCaptureDestinationEffectiveState ENABLING = fromString("Enabling"); + + /** + * The destination is enabled. + */ + public static final ChangeDataCaptureDestinationEffectiveState ENABLED = fromString("Enabled"); + + /** + * The destination is being disabled. + */ + public static final ChangeDataCaptureDestinationEffectiveState DISABLING = fromString("Disabling"); + + /** + * The destination is disabled. + */ + public static final ChangeDataCaptureDestinationEffectiveState DISABLED = fromString("Disabled"); + + /** + * The destination is available with reduced functionality or impaired health. + */ + public static final ChangeDataCaptureDestinationEffectiveState DEGRADED = fromString("Degraded"); + + /** + * The destination is not operational because reconciliation failed. + */ + public static final ChangeDataCaptureDestinationEffectiveState FAILED = fromString("Failed"); + + /** + * Creates a new instance of ChangeDataCaptureDestinationEffectiveState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ChangeDataCaptureDestinationEffectiveState() { + } + + /** + * Creates or finds a ChangeDataCaptureDestinationEffectiveState from its string representation. + * + * @param name a name to look for. + * @return the corresponding ChangeDataCaptureDestinationEffectiveState. + */ + public static ChangeDataCaptureDestinationEffectiveState fromString(String name) { + return fromString(name, ChangeDataCaptureDestinationEffectiveState.class); + } + + /** + * Gets known ChangeDataCaptureDestinationEffectiveState values. + * + * @return known ChangeDataCaptureDestinationEffectiveState values. + */ + public static Collection values() { + return values(ChangeDataCaptureDestinationEffectiveState.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestinationForPatchUpdate.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestinationForPatchUpdate.java new file mode 100644 index 0000000000000..8411e097d9ffc --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestinationForPatchUpdate.java @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.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; + +/** + * A sparse update request for a change data capture destination. + */ +@Fluent +public final class ChangeDataCaptureDestinationForPatchUpdate + implements JsonSerializable { + /* + * The destination properties to update. + */ + private ChangeDataCaptureDestinationPropertiesForPatchUpdate properties; + + /** + * Creates an instance of ChangeDataCaptureDestinationForPatchUpdate class. + */ + public ChangeDataCaptureDestinationForPatchUpdate() { + } + + /** + * Get the properties property: The destination properties to update. + * + * @return the properties value. + */ + public ChangeDataCaptureDestinationPropertiesForPatchUpdate properties() { + return this.properties; + } + + /** + * Set the properties property: The destination properties to update. + * + * @param properties the properties value to set. + * @return the ChangeDataCaptureDestinationForPatchUpdate object itself. + */ + public ChangeDataCaptureDestinationForPatchUpdate + withProperties(ChangeDataCaptureDestinationPropertiesForPatchUpdate properties) { + this.properties = properties; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ChangeDataCaptureDestinationForPatchUpdate from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ChangeDataCaptureDestinationForPatchUpdate 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 ChangeDataCaptureDestinationForPatchUpdate. + */ + public static ChangeDataCaptureDestinationForPatchUpdate fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ChangeDataCaptureDestinationForPatchUpdate deserializedChangeDataCaptureDestinationForPatchUpdate + = new ChangeDataCaptureDestinationForPatchUpdate(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("properties".equals(fieldName)) { + deserializedChangeDataCaptureDestinationForPatchUpdate.properties + = ChangeDataCaptureDestinationPropertiesForPatchUpdate.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedChangeDataCaptureDestinationForPatchUpdate; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestinationProperties.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestinationProperties.java new file mode 100644 index 0000000000000..aec3920d02f42 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestinationProperties.java @@ -0,0 +1,207 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.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; + +/** + * The properties of a Microsoft Fabric change data capture destination. + */ +@Fluent +public final class ChangeDataCaptureDestinationProperties + implements JsonSerializable { + /* + * The immutable Microsoft Fabric destination settings. Resubmitting the same values is accepted; changing them + * requires deleting and recreating the destination. + */ + private ChangeDataCaptureDestinationDetails destination; + + /* + * The requested destination state. + */ + private ChangeDataCaptureDesiredState desiredState; + + /* + * The current effective destination state. + */ + private ChangeDataCaptureDestinationEffectiveState effectiveState; + + /* + * The provisioning state of the latest destination mutation. + */ + private ProvisioningState provisioningState; + + /* + * The resource ID of the currently active identity assignment, if one is active. + */ + private String activeIdentityAssignmentResourceId; + + /* + * The number of change data capture configurations that reference this destination. + */ + private int configurationCount; + + /* + * Customer-safe health information for the destination. + */ + private ChangeDataCaptureStatus status; + + /** + * Creates an instance of ChangeDataCaptureDestinationProperties class. + */ + public ChangeDataCaptureDestinationProperties() { + } + + /** + * Get the destination property: The immutable Microsoft Fabric destination settings. Resubmitting the same values + * is accepted; changing them requires deleting and recreating the destination. + * + * @return the destination value. + */ + public ChangeDataCaptureDestinationDetails destination() { + return this.destination; + } + + /** + * Set the destination property: The immutable Microsoft Fabric destination settings. Resubmitting the same values + * is accepted; changing them requires deleting and recreating the destination. + * + * @param destination the destination value to set. + * @return the ChangeDataCaptureDestinationProperties object itself. + */ + public ChangeDataCaptureDestinationProperties withDestination(ChangeDataCaptureDestinationDetails destination) { + this.destination = destination; + return this; + } + + /** + * Get the desiredState property: The requested destination state. + * + * @return the desiredState value. + */ + public ChangeDataCaptureDesiredState desiredState() { + return this.desiredState; + } + + /** + * Set the desiredState property: The requested destination state. + * + * @param desiredState the desiredState value to set. + * @return the ChangeDataCaptureDestinationProperties object itself. + */ + public ChangeDataCaptureDestinationProperties withDesiredState(ChangeDataCaptureDesiredState desiredState) { + this.desiredState = desiredState; + return this; + } + + /** + * Get the effectiveState property: The current effective destination state. + * + * @return the effectiveState value. + */ + public ChangeDataCaptureDestinationEffectiveState effectiveState() { + return this.effectiveState; + } + + /** + * Get the provisioningState property: The provisioning state of the latest destination mutation. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Get the activeIdentityAssignmentResourceId property: The resource ID of the currently active identity assignment, + * if one is active. + * + * @return the activeIdentityAssignmentResourceId value. + */ + public String activeIdentityAssignmentResourceId() { + return this.activeIdentityAssignmentResourceId; + } + + /** + * Get the configurationCount property: The number of change data capture configurations that reference this + * destination. + * + * @return the configurationCount value. + */ + public int configurationCount() { + return this.configurationCount; + } + + /** + * Get the status property: Customer-safe health information for the destination. + * + * @return the status value. + */ + public ChangeDataCaptureStatus status() { + return this.status; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("destination", this.destination); + jsonWriter.writeStringField("desiredState", this.desiredState == null ? null : this.desiredState.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ChangeDataCaptureDestinationProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ChangeDataCaptureDestinationProperties 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 ChangeDataCaptureDestinationProperties. + */ + public static ChangeDataCaptureDestinationProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ChangeDataCaptureDestinationProperties deserializedChangeDataCaptureDestinationProperties + = new ChangeDataCaptureDestinationProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("destination".equals(fieldName)) { + deserializedChangeDataCaptureDestinationProperties.destination + = ChangeDataCaptureDestinationDetails.fromJson(reader); + } else if ("desiredState".equals(fieldName)) { + deserializedChangeDataCaptureDestinationProperties.desiredState + = ChangeDataCaptureDesiredState.fromString(reader.getString()); + } else if ("effectiveState".equals(fieldName)) { + deserializedChangeDataCaptureDestinationProperties.effectiveState + = ChangeDataCaptureDestinationEffectiveState.fromString(reader.getString()); + } else if ("configurationCount".equals(fieldName)) { + deserializedChangeDataCaptureDestinationProperties.configurationCount = reader.getInt(); + } else if ("status".equals(fieldName)) { + deserializedChangeDataCaptureDestinationProperties.status + = ChangeDataCaptureStatus.fromJson(reader); + } else if ("provisioningState".equals(fieldName)) { + deserializedChangeDataCaptureDestinationProperties.provisioningState + = ProvisioningState.fromString(reader.getString()); + } else if ("activeIdentityAssignmentResourceId".equals(fieldName)) { + deserializedChangeDataCaptureDestinationProperties.activeIdentityAssignmentResourceId + = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedChangeDataCaptureDestinationProperties; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestinationPropertiesForPatchUpdate.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestinationPropertiesForPatchUpdate.java new file mode 100644 index 0000000000000..d6e109a44a3a0 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestinationPropertiesForPatchUpdate.java @@ -0,0 +1,90 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.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; + +/** + * Properties for updating a change data capture destination. Omitted properties preserve their current values. + */ +@Fluent +public final class ChangeDataCaptureDestinationPropertiesForPatchUpdate + implements JsonSerializable { + /* + * The requested destination state. + */ + private ChangeDataCaptureDesiredState desiredState; + + /** + * Creates an instance of ChangeDataCaptureDestinationPropertiesForPatchUpdate class. + */ + public ChangeDataCaptureDestinationPropertiesForPatchUpdate() { + } + + /** + * Get the desiredState property: The requested destination state. + * + * @return the desiredState value. + */ + public ChangeDataCaptureDesiredState desiredState() { + return this.desiredState; + } + + /** + * Set the desiredState property: The requested destination state. + * + * @param desiredState the desiredState value to set. + * @return the ChangeDataCaptureDestinationPropertiesForPatchUpdate object itself. + */ + public ChangeDataCaptureDestinationPropertiesForPatchUpdate + withDesiredState(ChangeDataCaptureDesiredState desiredState) { + this.desiredState = desiredState; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("desiredState", this.desiredState == null ? null : this.desiredState.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ChangeDataCaptureDestinationPropertiesForPatchUpdate from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ChangeDataCaptureDestinationPropertiesForPatchUpdate 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 ChangeDataCaptureDestinationPropertiesForPatchUpdate. + */ + public static ChangeDataCaptureDestinationPropertiesForPatchUpdate fromJson(JsonReader jsonReader) + throws IOException { + return jsonReader.readObject(reader -> { + ChangeDataCaptureDestinationPropertiesForPatchUpdate deserializedChangeDataCaptureDestinationPropertiesForPatchUpdate + = new ChangeDataCaptureDestinationPropertiesForPatchUpdate(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("desiredState".equals(fieldName)) { + deserializedChangeDataCaptureDestinationPropertiesForPatchUpdate.desiredState + = ChangeDataCaptureDesiredState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedChangeDataCaptureDestinationPropertiesForPatchUpdate; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestinationType.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestinationType.java new file mode 100644 index 0000000000000..009c8efe3f679 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestinationType.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.horizondb.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The destination type supported by this API version. + */ +public final class ChangeDataCaptureDestinationType extends ExpandableStringEnum { + /** + * A Microsoft Fabric destination. + */ + public static final ChangeDataCaptureDestinationType FABRIC = fromString("Fabric"); + + /** + * Creates a new instance of ChangeDataCaptureDestinationType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ChangeDataCaptureDestinationType() { + } + + /** + * Creates or finds a ChangeDataCaptureDestinationType from its string representation. + * + * @param name a name to look for. + * @return the corresponding ChangeDataCaptureDestinationType. + */ + public static ChangeDataCaptureDestinationType fromString(String name) { + return fromString(name, ChangeDataCaptureDestinationType.class); + } + + /** + * Gets known ChangeDataCaptureDestinationType values. + * + * @return known ChangeDataCaptureDestinationType values. + */ + public static Collection values() { + return values(ChangeDataCaptureDestinationType.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestinations.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestinations.java new file mode 100644 index 0000000000000..dea47f54c167b --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestinations.java @@ -0,0 +1,187 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of ChangeDataCaptureDestinations. + */ +public interface ChangeDataCaptureDestinations { + /** + * Gets a change data capture destination. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a change data capture destination along with {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String clusterName, + String destinationName, Context context); + + /** + * Gets a change data capture destination. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a change data capture destination. + */ + ChangeDataCaptureDestination get(String resourceGroupName, String clusterName, String destinationName); + + /** + * Deletes a change data capture destination after all referencing configurations and identity assignments have been + * removed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @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 delete(String resourceGroupName, String clusterName, String destinationName); + + /** + * Deletes a change data capture destination after all referencing configurations and identity assignments have been + * removed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @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 delete(String resourceGroupName, String clusterName, String destinationName, Context context); + + /** + * Lists change data capture destinations in a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ChangeDataCaptureDestination list operation as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String clusterName); + + /** + * Lists change data capture destinations in a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a ChangeDataCaptureDestination list operation as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String clusterName, Context context); + + /** + * Atomically activates a validated identity assignment for this destination. If-Match is evaluated against the + * destination entity tag. Activating the already-active assignment succeeds idempotently. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ifMatch The destination entity tag. The action proceeds only when this value matches the destination's + * current entity tag. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completed result of activating a change data capture destination identity. + */ + ActivateChangeDataCaptureIdentityResult activateIdentity(String resourceGroupName, String ifMatch, + String clusterName, String destinationName, ActivateChangeDataCaptureIdentityRequest body); + + /** + * Atomically activates a validated identity assignment for this destination. If-Match is evaluated against the + * destination entity tag. Activating the already-active assignment succeeds idempotently. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param ifMatch The destination entity tag. The action proceeds only when this value matches the destination's + * current entity tag. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the completed result of activating a change data capture destination identity. + */ + ActivateChangeDataCaptureIdentityResult activateIdentity(String resourceGroupName, String ifMatch, + String clusterName, String destinationName, ActivateChangeDataCaptureIdentityRequest body, Context context); + + /** + * Gets a change data capture destination. + * + * @param id the resource ID. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a change data capture destination along with {@link Response}. + */ + ChangeDataCaptureDestination getById(String id); + + /** + * Gets a change data capture destination. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a change data capture destination along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); + + /** + * Deletes a change data capture destination after all referencing configurations and identity assignments have been + * removed. + * + * @param id the resource ID. + * @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 deleteById(String id); + + /** + * Deletes a change data capture destination after all referencing configurations and identity assignments have been + * removed. + * + * @param id the resource ID. + * @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 deleteByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new ChangeDataCaptureDestination resource. + * + * @param name resource name. + * @return the first stage of the new ChangeDataCaptureDestination definition. + */ + ChangeDataCaptureDestination.DefinitionStages.Blank define(String name); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureEffectiveState.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureEffectiveState.java new file mode 100644 index 0000000000000..8b194424bb82a --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureEffectiveState.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.horizondb.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The effective state of a HorizonDB change data capture capability or configuration. + */ +public final class ChangeDataCaptureEffectiveState extends ExpandableStringEnum { + /** + * The resource is being enabled. + */ + public static final ChangeDataCaptureEffectiveState ENABLING = fromString("Enabling"); + + /** + * The resource is enabled. + */ + public static final ChangeDataCaptureEffectiveState ENABLED = fromString("Enabled"); + + /** + * The resource is being disabled. + */ + public static final ChangeDataCaptureEffectiveState DISABLING = fromString("Disabling"); + + /** + * The resource is disabled. + */ + public static final ChangeDataCaptureEffectiveState DISABLED = fromString("Disabled"); + + /** + * The resource is available with reduced functionality or impaired health. + */ + public static final ChangeDataCaptureEffectiveState DEGRADED = fromString("Degraded"); + + /** + * The resource is not operational because reconciliation failed. + */ + public static final ChangeDataCaptureEffectiveState FAILED = fromString("Failed"); + + /** + * Creates a new instance of ChangeDataCaptureEffectiveState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ChangeDataCaptureEffectiveState() { + } + + /** + * Creates or finds a ChangeDataCaptureEffectiveState from its string representation. + * + * @param name a name to look for. + * @return the corresponding ChangeDataCaptureEffectiveState. + */ + public static ChangeDataCaptureEffectiveState fromString(String name) { + return fromString(name, ChangeDataCaptureEffectiveState.class); + } + + /** + * Gets known ChangeDataCaptureEffectiveState values. + * + * @return known ChangeDataCaptureEffectiveState values. + */ + public static Collection values() { + return values(ChangeDataCaptureEffectiveState.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureEngineConfigurationState.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureEngineConfigurationState.java new file mode 100644 index 0000000000000..c17f9db9a7fa0 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureEngineConfigurationState.java @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The readiness of HorizonDB engine settings required for change data capture. + */ +public final class ChangeDataCaptureEngineConfigurationState + extends ExpandableStringEnum { + /** + * The required engine settings are ready. + */ + public static final ChangeDataCaptureEngineConfigurationState READY = fromString("Ready"); + + /** + * One or more required engine settings are not ready. + */ + public static final ChangeDataCaptureEngineConfigurationState NOT_READY = fromString("NotReady"); + + /** + * The service is reconciling required engine settings. + */ + public static final ChangeDataCaptureEngineConfigurationState RECONCILING = fromString("Reconciling"); + + /** + * Engine-setting reconciliation failed. + */ + public static final ChangeDataCaptureEngineConfigurationState FAILED = fromString("Failed"); + + /** + * Creates a new instance of ChangeDataCaptureEngineConfigurationState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ChangeDataCaptureEngineConfigurationState() { + } + + /** + * Creates or finds a ChangeDataCaptureEngineConfigurationState from its string representation. + * + * @param name a name to look for. + * @return the corresponding ChangeDataCaptureEngineConfigurationState. + */ + public static ChangeDataCaptureEngineConfigurationState fromString(String name) { + return fromString(name, ChangeDataCaptureEngineConfigurationState.class); + } + + /** + * Gets known ChangeDataCaptureEngineConfigurationState values. + * + * @return known ChangeDataCaptureEngineConfigurationState values. + */ + public static Collection values() { + return values(ChangeDataCaptureEngineConfigurationState.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureExtensionState.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureExtensionState.java new file mode 100644 index 0000000000000..3470310d55429 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureExtensionState.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.horizondb.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The lifecycle state of the HorizonDB change data capture extension. + */ +public final class ChangeDataCaptureExtensionState extends ExpandableStringEnum { + /** + * The extension is not installed. + */ + public static final ChangeDataCaptureExtensionState NOT_INSTALLED = fromString("NotInstalled"); + + /** + * The extension is being installed. + */ + public static final ChangeDataCaptureExtensionState INSTALLING = fromString("Installing"); + + /** + * The extension is ready. + */ + public static final ChangeDataCaptureExtensionState READY = fromString("Ready"); + + /** + * The extension is being upgraded. + */ + public static final ChangeDataCaptureExtensionState UPGRADING = fromString("Upgrading"); + + /** + * The extension is being removed. + */ + public static final ChangeDataCaptureExtensionState REMOVING = fromString("Removing"); + + /** + * The extension operation failed. + */ + public static final ChangeDataCaptureExtensionState FAILED = fromString("Failed"); + + /** + * Creates a new instance of ChangeDataCaptureExtensionState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ChangeDataCaptureExtensionState() { + } + + /** + * Creates or finds a ChangeDataCaptureExtensionState from its string representation. + * + * @param name a name to look for. + * @return the corresponding ChangeDataCaptureExtensionState. + */ + public static ChangeDataCaptureExtensionState fromString(String name) { + return fromString(name, ChangeDataCaptureExtensionState.class); + } + + /** + * Gets known ChangeDataCaptureExtensionState values. + * + * @return known ChangeDataCaptureExtensionState values. + */ + public static Collection values() { + return values(ChangeDataCaptureExtensionState.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureExtensionStatus.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureExtensionStatus.java new file mode 100644 index 0000000000000..0b9c442e4a155 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureExtensionStatus.java @@ -0,0 +1,108 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The installed HorizonDB change data capture extension and its current state. + */ +@Immutable +public final class ChangeDataCaptureExtensionStatus implements JsonSerializable { + /* + * The extension name. + */ + private String name; + + /* + * The installed extension version. + */ + private String version; + + /* + * The current extension lifecycle state. + */ + private ChangeDataCaptureExtensionState state; + + /** + * Creates an instance of ChangeDataCaptureExtensionStatus class. + */ + private ChangeDataCaptureExtensionStatus() { + } + + /** + * Get the name property: The extension name. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * Get the version property: The installed extension version. + * + * @return the version value. + */ + public String version() { + return this.version; + } + + /** + * Get the state property: The current extension lifecycle state. + * + * @return the state value. + */ + public ChangeDataCaptureExtensionState state() { + return this.state; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ChangeDataCaptureExtensionStatus from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ChangeDataCaptureExtensionStatus 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 ChangeDataCaptureExtensionStatus. + */ + public static ChangeDataCaptureExtensionStatus fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ChangeDataCaptureExtensionStatus deserializedChangeDataCaptureExtensionStatus + = new ChangeDataCaptureExtensionStatus(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + deserializedChangeDataCaptureExtensionStatus.name = reader.getString(); + } else if ("version".equals(fieldName)) { + deserializedChangeDataCaptureExtensionStatus.version = reader.getString(); + } else if ("state".equals(fieldName)) { + deserializedChangeDataCaptureExtensionStatus.state + = ChangeDataCaptureExtensionState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedChangeDataCaptureExtensionStatus; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureIdentityActivationState.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureIdentityActivationState.java new file mode 100644 index 0000000000000..4e443b0860462 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureIdentityActivationState.java @@ -0,0 +1,67 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The activation state of a change data capture identity assignment. + */ +public final class ChangeDataCaptureIdentityActivationState + extends ExpandableStringEnum { + /** + * The identity assignment is not active. + */ + public static final ChangeDataCaptureIdentityActivationState INACTIVE = fromString("Inactive"); + + /** + * The identity assignment is being activated. + */ + public static final ChangeDataCaptureIdentityActivationState ACTIVATING = fromString("Activating"); + + /** + * The identity assignment is active. + */ + public static final ChangeDataCaptureIdentityActivationState ACTIVE = fromString("Active"); + + /** + * The identity assignment is being deactivated. + */ + public static final ChangeDataCaptureIdentityActivationState DEACTIVATING = fromString("Deactivating"); + + /** + * The identity activation transition failed. + */ + public static final ChangeDataCaptureIdentityActivationState FAILED = fromString("Failed"); + + /** + * Creates a new instance of ChangeDataCaptureIdentityActivationState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ChangeDataCaptureIdentityActivationState() { + } + + /** + * Creates or finds a ChangeDataCaptureIdentityActivationState from its string representation. + * + * @param name a name to look for. + * @return the corresponding ChangeDataCaptureIdentityActivationState. + */ + public static ChangeDataCaptureIdentityActivationState fromString(String name) { + return fromString(name, ChangeDataCaptureIdentityActivationState.class); + } + + /** + * Gets known ChangeDataCaptureIdentityActivationState values. + * + * @return known ChangeDataCaptureIdentityActivationState values. + */ + public static Collection values() { + return values(ChangeDataCaptureIdentityActivationState.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureIdentityAssignmentProperties.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureIdentityAssignmentProperties.java new file mode 100644 index 0000000000000..5494d5699b9c1 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureIdentityAssignmentProperties.java @@ -0,0 +1,220 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.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; + +/** + * The properties of a change data capture identity assignment. + */ +@Fluent +public final class ChangeDataCaptureIdentityAssignmentProperties + implements JsonSerializable { + /* + * The immutable resource ID of the user-assigned managed identity selected for this destination. The ID must + * exactly match a key in the parent cluster's top-level identity.userAssignedIdentities dictionary; otherwise + * creation is rejected. Attaching the identity to the cluster does not grant destination access, so required role + * assignments must be configured separately. Resubmitting the same value is accepted; changing it requires deleting + * and recreating the assignment. + */ + private String identityResourceId; + + /* + * The current assignment lifecycle state. + */ + private ChangeDataCaptureIdentityAssignmentState effectiveState; + + /* + * The current activation state within the parent destination. + */ + private ChangeDataCaptureIdentityActivationState activationState; + + /* + * The Microsoft Entra principal ID resolved from the user-assigned managed identity, represented as an RFC 4122 + * GUID. + */ + private String principalId; + + /* + * The Microsoft Entra tenant ID resolved from the user-assigned managed identity, represented as an RFC 4122 GUID. + */ + private String tenantId; + + /* + * The provisioning state of the latest identity-assignment mutation. + */ + private ProvisioningState provisioningState; + + /* + * The latest validation result for this identity assignment. + */ + private IdentityValidationStatus validation; + + /* + * Customer-safe health information for the identity assignment. + */ + private ChangeDataCaptureStatus status; + + /** + * Creates an instance of ChangeDataCaptureIdentityAssignmentProperties class. + */ + public ChangeDataCaptureIdentityAssignmentProperties() { + } + + /** + * Get the identityResourceId property: The immutable resource ID of the user-assigned managed identity selected for + * this destination. The ID must exactly match a key in the parent cluster's top-level + * identity.userAssignedIdentities dictionary; otherwise creation is rejected. Attaching the identity to the cluster + * does not grant destination access, so required role assignments must be configured separately. Resubmitting the + * same value is accepted; changing it requires deleting and recreating the assignment. + * + * @return the identityResourceId value. + */ + public String identityResourceId() { + return this.identityResourceId; + } + + /** + * Set the identityResourceId property: The immutable resource ID of the user-assigned managed identity selected for + * this destination. The ID must exactly match a key in the parent cluster's top-level + * identity.userAssignedIdentities dictionary; otherwise creation is rejected. Attaching the identity to the cluster + * does not grant destination access, so required role assignments must be configured separately. Resubmitting the + * same value is accepted; changing it requires deleting and recreating the assignment. + * + * @param identityResourceId the identityResourceId value to set. + * @return the ChangeDataCaptureIdentityAssignmentProperties object itself. + */ + public ChangeDataCaptureIdentityAssignmentProperties withIdentityResourceId(String identityResourceId) { + this.identityResourceId = identityResourceId; + return this; + } + + /** + * Get the effectiveState property: The current assignment lifecycle state. + * + * @return the effectiveState value. + */ + public ChangeDataCaptureIdentityAssignmentState effectiveState() { + return this.effectiveState; + } + + /** + * Get the activationState property: The current activation state within the parent destination. + * + * @return the activationState value. + */ + public ChangeDataCaptureIdentityActivationState activationState() { + return this.activationState; + } + + /** + * Get the principalId property: The Microsoft Entra principal ID resolved from the user-assigned managed identity, + * represented as an RFC 4122 GUID. + * + * @return the principalId value. + */ + public String principalId() { + return this.principalId; + } + + /** + * Get the tenantId property: The Microsoft Entra tenant ID resolved from the user-assigned managed identity, + * represented as an RFC 4122 GUID. + * + * @return the tenantId value. + */ + public String tenantId() { + return this.tenantId; + } + + /** + * Get the provisioningState property: The provisioning state of the latest identity-assignment mutation. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Get the validation property: The latest validation result for this identity assignment. + * + * @return the validation value. + */ + public IdentityValidationStatus validation() { + return this.validation; + } + + /** + * Get the status property: Customer-safe health information for the identity assignment. + * + * @return the status value. + */ + public ChangeDataCaptureStatus status() { + return this.status; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("identityResourceId", this.identityResourceId); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ChangeDataCaptureIdentityAssignmentProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ChangeDataCaptureIdentityAssignmentProperties 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 ChangeDataCaptureIdentityAssignmentProperties. + */ + public static ChangeDataCaptureIdentityAssignmentProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ChangeDataCaptureIdentityAssignmentProperties deserializedChangeDataCaptureIdentityAssignmentProperties + = new ChangeDataCaptureIdentityAssignmentProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("identityResourceId".equals(fieldName)) { + deserializedChangeDataCaptureIdentityAssignmentProperties.identityResourceId = reader.getString(); + } else if ("effectiveState".equals(fieldName)) { + deserializedChangeDataCaptureIdentityAssignmentProperties.effectiveState + = ChangeDataCaptureIdentityAssignmentState.fromString(reader.getString()); + } else if ("activationState".equals(fieldName)) { + deserializedChangeDataCaptureIdentityAssignmentProperties.activationState + = ChangeDataCaptureIdentityActivationState.fromString(reader.getString()); + } else if ("principalId".equals(fieldName)) { + deserializedChangeDataCaptureIdentityAssignmentProperties.principalId = reader.getString(); + } else if ("tenantId".equals(fieldName)) { + deserializedChangeDataCaptureIdentityAssignmentProperties.tenantId = reader.getString(); + } else if ("validation".equals(fieldName)) { + deserializedChangeDataCaptureIdentityAssignmentProperties.validation + = IdentityValidationStatus.fromJson(reader); + } else if ("status".equals(fieldName)) { + deserializedChangeDataCaptureIdentityAssignmentProperties.status + = ChangeDataCaptureStatus.fromJson(reader); + } else if ("provisioningState".equals(fieldName)) { + deserializedChangeDataCaptureIdentityAssignmentProperties.provisioningState + = ProvisioningState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedChangeDataCaptureIdentityAssignmentProperties; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureIdentityAssignmentState.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureIdentityAssignmentState.java new file mode 100644 index 0000000000000..faf159b2f5356 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureIdentityAssignmentState.java @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The lifecycle state of a change data capture identity assignment. + */ +public final class ChangeDataCaptureIdentityAssignmentState + extends ExpandableStringEnum { + /** + * The identity is being assigned. + */ + public static final ChangeDataCaptureIdentityAssignmentState ASSIGNING = fromString("Assigning"); + + /** + * The identity is assigned. + */ + public static final ChangeDataCaptureIdentityAssignmentState ASSIGNED = fromString("Assigned"); + + /** + * The identity assignment is being removed. + */ + public static final ChangeDataCaptureIdentityAssignmentState REMOVING = fromString("Removing"); + + /** + * The identity assignment operation failed. + */ + public static final ChangeDataCaptureIdentityAssignmentState FAILED = fromString("Failed"); + + /** + * Creates a new instance of ChangeDataCaptureIdentityAssignmentState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ChangeDataCaptureIdentityAssignmentState() { + } + + /** + * Creates or finds a ChangeDataCaptureIdentityAssignmentState from its string representation. + * + * @param name a name to look for. + * @return the corresponding ChangeDataCaptureIdentityAssignmentState. + */ + public static ChangeDataCaptureIdentityAssignmentState fromString(String name) { + return fromString(name, ChangeDataCaptureIdentityAssignmentState.class); + } + + /** + * Gets known ChangeDataCaptureIdentityAssignmentState values. + * + * @return known ChangeDataCaptureIdentityAssignmentState values. + */ + public static Collection values() { + return values(ChangeDataCaptureIdentityAssignmentState.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureIdentityValidationState.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureIdentityValidationState.java new file mode 100644 index 0000000000000..9b18afd8c76d4 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureIdentityValidationState.java @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The validation state of a change data capture identity assignment. + */ +public final class ChangeDataCaptureIdentityValidationState + extends ExpandableStringEnum { + /** + * Identity validation has not started. + */ + public static final ChangeDataCaptureIdentityValidationState NOT_STARTED = fromString("NotStarted"); + + /** + * Identity validation is running. + */ + public static final ChangeDataCaptureIdentityValidationState RUNNING = fromString("Running"); + + /** + * Identity validation succeeded. + */ + public static final ChangeDataCaptureIdentityValidationState SUCCEEDED = fromString("Succeeded"); + + /** + * Identity validation failed. + */ + public static final ChangeDataCaptureIdentityValidationState FAILED = fromString("Failed"); + + /** + * Creates a new instance of ChangeDataCaptureIdentityValidationState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ChangeDataCaptureIdentityValidationState() { + } + + /** + * Creates or finds a ChangeDataCaptureIdentityValidationState from its string representation. + * + * @param name a name to look for. + * @return the corresponding ChangeDataCaptureIdentityValidationState. + */ + public static ChangeDataCaptureIdentityValidationState fromString(String name) { + return fromString(name, ChangeDataCaptureIdentityValidationState.class); + } + + /** + * Gets known ChangeDataCaptureIdentityValidationState values. + * + * @return known ChangeDataCaptureIdentityValidationState values. + */ + public static Collection values() { + return values(ChangeDataCaptureIdentityValidationState.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCapturePrerequisiteStatus.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCapturePrerequisiteStatus.java new file mode 100644 index 0000000000000..6bb996781cabf --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCapturePrerequisiteStatus.java @@ -0,0 +1,95 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The current readiness of prerequisites shared by change data capture configurations. + */ +@Immutable +public final class ChangeDataCapturePrerequisiteStatus + implements JsonSerializable { + /* + * The readiness of the required engine configuration. + */ + private ChangeDataCaptureEngineConfigurationState engineConfigurationState; + + /* + * The availability of the read-write endpoint required for engine mutations. + */ + private ChangeDataCaptureReadWriteEndpointState readWriteEndpointState; + + /** + * Creates an instance of ChangeDataCapturePrerequisiteStatus class. + */ + private ChangeDataCapturePrerequisiteStatus() { + } + + /** + * Get the engineConfigurationState property: The readiness of the required engine configuration. + * + * @return the engineConfigurationState value. + */ + public ChangeDataCaptureEngineConfigurationState engineConfigurationState() { + return this.engineConfigurationState; + } + + /** + * Get the readWriteEndpointState property: The availability of the read-write endpoint required for engine + * mutations. + * + * @return the readWriteEndpointState value. + */ + public ChangeDataCaptureReadWriteEndpointState readWriteEndpointState() { + return this.readWriteEndpointState; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ChangeDataCapturePrerequisiteStatus from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ChangeDataCapturePrerequisiteStatus 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 ChangeDataCapturePrerequisiteStatus. + */ + public static ChangeDataCapturePrerequisiteStatus fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ChangeDataCapturePrerequisiteStatus deserializedChangeDataCapturePrerequisiteStatus + = new ChangeDataCapturePrerequisiteStatus(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("engineConfigurationState".equals(fieldName)) { + deserializedChangeDataCapturePrerequisiteStatus.engineConfigurationState + = ChangeDataCaptureEngineConfigurationState.fromString(reader.getString()); + } else if ("readWriteEndpointState".equals(fieldName)) { + deserializedChangeDataCapturePrerequisiteStatus.readWriteEndpointState + = ChangeDataCaptureReadWriteEndpointState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedChangeDataCapturePrerequisiteStatus; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureProtocol.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureProtocol.java new file mode 100644 index 0000000000000..fb019fe6e3282 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureProtocol.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.horizondb.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The protocol used to communicate with a change data capture destination. + */ +public final class ChangeDataCaptureProtocol extends ExpandableStringEnum { + /** + * The destination's native protocol. + */ + public static final ChangeDataCaptureProtocol NATIVE = fromString("Native"); + + /** + * Creates a new instance of ChangeDataCaptureProtocol value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ChangeDataCaptureProtocol() { + } + + /** + * Creates or finds a ChangeDataCaptureProtocol from its string representation. + * + * @param name a name to look for. + * @return the corresponding ChangeDataCaptureProtocol. + */ + public static ChangeDataCaptureProtocol fromString(String name) { + return fromString(name, ChangeDataCaptureProtocol.class); + } + + /** + * Gets known ChangeDataCaptureProtocol values. + * + * @return known ChangeDataCaptureProtocol values. + */ + public static Collection values() { + return values(ChangeDataCaptureProtocol.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureReadWriteEndpointState.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureReadWriteEndpointState.java new file mode 100644 index 0000000000000..eaf40b4ee0c0e --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureReadWriteEndpointState.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The availability of a read-write endpoint for change data capture engine mutations. + */ +public final class ChangeDataCaptureReadWriteEndpointState + extends ExpandableStringEnum { + /** + * An eligible read-write endpoint is ready. + */ + public static final ChangeDataCaptureReadWriteEndpointState READY = fromString("Ready"); + + /** + * No eligible read-write endpoint is currently available. + */ + public static final ChangeDataCaptureReadWriteEndpointState UNAVAILABLE = fromString("Unavailable"); + + /** + * Creates a new instance of ChangeDataCaptureReadWriteEndpointState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ChangeDataCaptureReadWriteEndpointState() { + } + + /** + * Creates or finds a ChangeDataCaptureReadWriteEndpointState from its string representation. + * + * @param name a name to look for. + * @return the corresponding ChangeDataCaptureReadWriteEndpointState. + */ + public static ChangeDataCaptureReadWriteEndpointState fromString(String name) { + return fromString(name, ChangeDataCaptureReadWriteEndpointState.class); + } + + /** + * Gets known ChangeDataCaptureReadWriteEndpointState values. + * + * @return known ChangeDataCaptureReadWriteEndpointState values. + */ + public static Collection values() { + return values(ChangeDataCaptureReadWriteEndpointState.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureReplicationArchitecture.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureReplicationArchitecture.java new file mode 100644 index 0000000000000..dbc1592b7a1ff --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureReplicationArchitecture.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.horizondb.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The implementation architecture used to capture and publish changes. + */ +public final class ChangeDataCaptureReplicationArchitecture + extends ExpandableStringEnum { + /** + * Change capture runs with the HorizonDB compute layer. + */ + public static final ChangeDataCaptureReplicationArchitecture COMPUTE_BASED = fromString("ComputeBased"); + + /** + * Change capture runs with the HorizonDB storage layer. + */ + public static final ChangeDataCaptureReplicationArchitecture STORAGE_BASED = fromString("StorageBased"); + + /** + * Change capture uses both compute and storage components. + */ + public static final ChangeDataCaptureReplicationArchitecture HYBRID = fromString("Hybrid"); + + /** + * Creates a new instance of ChangeDataCaptureReplicationArchitecture value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ChangeDataCaptureReplicationArchitecture() { + } + + /** + * Creates or finds a ChangeDataCaptureReplicationArchitecture from its string representation. + * + * @param name a name to look for. + * @return the corresponding ChangeDataCaptureReplicationArchitecture. + */ + public static ChangeDataCaptureReplicationArchitecture fromString(String name) { + return fromString(name, ChangeDataCaptureReplicationArchitecture.class); + } + + /** + * Gets known ChangeDataCaptureReplicationArchitecture values. + * + * @return known ChangeDataCaptureReplicationArchitecture values. + */ + public static Collection values() { + return values(ChangeDataCaptureReplicationArchitecture.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureReplicationState.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureReplicationState.java new file mode 100644 index 0000000000000..3ebff4a887ff8 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureReplicationState.java @@ -0,0 +1,86 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The state of a destination-owned replication session. + */ +public final class ChangeDataCaptureReplicationState extends ExpandableStringEnum { + /** + * A destination session does not apply to the current resource state. + */ + public static final ChangeDataCaptureReplicationState NOT_APPLICABLE = fromString("NotApplicable"); + + /** + * No destination session is connected. + */ + public static final ChangeDataCaptureReplicationState NOT_CONNECTED = fromString("NotConnected"); + + /** + * A destination session is connecting. + */ + public static final ChangeDataCaptureReplicationState CONNECTING = fromString("Connecting"); + + /** + * A destination session is replicating changes. + */ + public static final ChangeDataCaptureReplicationState REPLICATING = fromString("Replicating"); + + /** + * A destination session is reconnecting after an interruption. + */ + public static final ChangeDataCaptureReplicationState RECONNECTING = fromString("Reconnecting"); + + /** + * The destination session is paused. + */ + public static final ChangeDataCaptureReplicationState PAUSED = fromString("Paused"); + + /** + * The destination session is stopping. + */ + public static final ChangeDataCaptureReplicationState STOPPING = fromString("Stopping"); + + /** + * The destination session is operating with impaired health. + */ + public static final ChangeDataCaptureReplicationState DEGRADED = fromString("Degraded"); + + /** + * The destination session failed. + */ + public static final ChangeDataCaptureReplicationState FAILED = fromString("Failed"); + + /** + * Creates a new instance of ChangeDataCaptureReplicationState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ChangeDataCaptureReplicationState() { + } + + /** + * Creates or finds a ChangeDataCaptureReplicationState from its string representation. + * + * @param name a name to look for. + * @return the corresponding ChangeDataCaptureReplicationState. + */ + public static ChangeDataCaptureReplicationState fromString(String name) { + return fromString(name, ChangeDataCaptureReplicationState.class); + } + + /** + * Gets known ChangeDataCaptureReplicationState values. + * + * @return known ChangeDataCaptureReplicationState values. + */ + public static Collection values() { + return values(ChangeDataCaptureReplicationState.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureReplicationStatus.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureReplicationStatus.java new file mode 100644 index 0000000000000..a1ba8248d6930 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureReplicationStatus.java @@ -0,0 +1,114 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.CoreUtils; +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.time.OffsetDateTime; + +/** + * The destination-owned replication-session status known to HorizonDB. + */ +@Immutable +public final class ChangeDataCaptureReplicationStatus implements JsonSerializable { + /* + * The current replication-session state. + */ + private ChangeDataCaptureReplicationState state; + + /* + * An opaque identifier of a destination-owned artifact, such as a Microsoft Fabric mirrored-database item. + * HorizonDB does not create, update, or delete the identified artifact. + */ + private String externalArtifactId; + + /* + * The date and time, in UTC, when a destination session most recently connected. + */ + private OffsetDateTime lastConnectedAtUtc; + + /** + * Creates an instance of ChangeDataCaptureReplicationStatus class. + */ + private ChangeDataCaptureReplicationStatus() { + } + + /** + * Get the state property: The current replication-session state. + * + * @return the state value. + */ + public ChangeDataCaptureReplicationState state() { + return this.state; + } + + /** + * Get the externalArtifactId property: An opaque identifier of a destination-owned artifact, such as a Microsoft + * Fabric mirrored-database item. HorizonDB does not create, update, or delete the identified artifact. + * + * @return the externalArtifactId value. + */ + public String externalArtifactId() { + return this.externalArtifactId; + } + + /** + * Get the lastConnectedAtUtc property: The date and time, in UTC, when a destination session most recently + * connected. + * + * @return the lastConnectedAtUtc value. + */ + public OffsetDateTime lastConnectedAtUtc() { + return this.lastConnectedAtUtc; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ChangeDataCaptureReplicationStatus from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ChangeDataCaptureReplicationStatus 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 ChangeDataCaptureReplicationStatus. + */ + public static ChangeDataCaptureReplicationStatus fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ChangeDataCaptureReplicationStatus deserializedChangeDataCaptureReplicationStatus + = new ChangeDataCaptureReplicationStatus(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("state".equals(fieldName)) { + deserializedChangeDataCaptureReplicationStatus.state + = ChangeDataCaptureReplicationState.fromString(reader.getString()); + } else if ("externalArtifactId".equals(fieldName)) { + deserializedChangeDataCaptureReplicationStatus.externalArtifactId = reader.getString(); + } else if ("lastConnectedAtUtc".equals(fieldName)) { + deserializedChangeDataCaptureReplicationStatus.lastConnectedAtUtc = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else { + reader.skipChildren(); + } + } + + return deserializedChangeDataCaptureReplicationStatus; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureStatus.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureStatus.java new file mode 100644 index 0000000000000..f9eaf3cd361c3 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureStatus.java @@ -0,0 +1,90 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Customer-safe health information for a HorizonDB change data capture resource. + */ +@Immutable +public final class ChangeDataCaptureStatus implements JsonSerializable { + /* + * A stable machine-readable status code. + */ + private String code; + + /* + * A localized customer-safe description of the current status. + */ + private String message; + + /** + * Creates an instance of ChangeDataCaptureStatus class. + */ + private ChangeDataCaptureStatus() { + } + + /** + * Get the code property: A stable machine-readable status code. + * + * @return the code value. + */ + public String code() { + return this.code; + } + + /** + * Get the message property: A localized customer-safe description of the current status. + * + * @return the message value. + */ + public String message() { + return this.message; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ChangeDataCaptureStatus from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ChangeDataCaptureStatus 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 ChangeDataCaptureStatus. + */ + public static ChangeDataCaptureStatus fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ChangeDataCaptureStatus deserializedChangeDataCaptureStatus = new ChangeDataCaptureStatus(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("code".equals(fieldName)) { + deserializedChangeDataCaptureStatus.code = reader.getString(); + } else if ("message".equals(fieldName)) { + deserializedChangeDataCaptureStatus.message = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedChangeDataCaptureStatus; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureTopologyBindingState.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureTopologyBindingState.java new file mode 100644 index 0000000000000..cf7cb854c2787 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureTopologyBindingState.java @@ -0,0 +1,67 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The relationship of a change data capture configuration to the current writer topology. + */ +public final class ChangeDataCaptureTopologyBindingState + extends ExpandableStringEnum { + /** + * The configuration belongs to the current active writer. + */ + public static final ChangeDataCaptureTopologyBindingState ACTIVE = fromString("Active"); + + /** + * The service is reconciling the configuration after a writer change. + */ + public static final ChangeDataCaptureTopologyBindingState RECONCILING = fromString("Reconciling"); + + /** + * The destination session must bind to a replacement configuration resource ID. + */ + public static final ChangeDataCaptureTopologyBindingState REBIND_REQUIRED = fromString("RebindRequired"); + + /** + * The configuration belongs to a former writer and has been replaced. + */ + public static final ChangeDataCaptureTopologyBindingState SUPERSEDED = fromString("Superseded"); + + /** + * Equivalent change data capture state could not be materialized without overwriting unrelated state. + */ + public static final ChangeDataCaptureTopologyBindingState CONFLICT = fromString("Conflict"); + + /** + * Creates a new instance of ChangeDataCaptureTopologyBindingState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ChangeDataCaptureTopologyBindingState() { + } + + /** + * Creates or finds a ChangeDataCaptureTopologyBindingState from its string representation. + * + * @param name a name to look for. + * @return the corresponding ChangeDataCaptureTopologyBindingState. + */ + public static ChangeDataCaptureTopologyBindingState fromString(String name) { + return fromString(name, ChangeDataCaptureTopologyBindingState.class); + } + + /** + * Gets known ChangeDataCaptureTopologyBindingState values. + * + * @return known ChangeDataCaptureTopologyBindingState values. + */ + public static Collection values() { + return values(ChangeDataCaptureTopologyBindingState.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureTopologyBindingStatus.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureTopologyBindingStatus.java new file mode 100644 index 0000000000000..1050ea5c61e18 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureTopologyBindingStatus.java @@ -0,0 +1,128 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The current writer-topology binding of a change data capture configuration. + */ +@Immutable +public final class ChangeDataCaptureTopologyBindingStatus + implements JsonSerializable { + /* + * The configuration's relationship to the current writer topology. + */ + private ChangeDataCaptureTopologyBindingState state; + + /* + * A monotonically increasing topology generation for this logical stream. + */ + private long generation; + + /* + * The Azure resource ID of the cluster that currently owns the active configuration projection. + */ + private String activeClusterResourceId; + + /* + * The replacement configuration resource ID when this projection has been superseded or requires rebinding. + */ + private String replacementConfigurationResourceId; + + /** + * Creates an instance of ChangeDataCaptureTopologyBindingStatus class. + */ + private ChangeDataCaptureTopologyBindingStatus() { + } + + /** + * Get the state property: The configuration's relationship to the current writer topology. + * + * @return the state value. + */ + public ChangeDataCaptureTopologyBindingState state() { + return this.state; + } + + /** + * Get the generation property: A monotonically increasing topology generation for this logical stream. + * + * @return the generation value. + */ + public long generation() { + return this.generation; + } + + /** + * Get the activeClusterResourceId property: The Azure resource ID of the cluster that currently owns the active + * configuration projection. + * + * @return the activeClusterResourceId value. + */ + public String activeClusterResourceId() { + return this.activeClusterResourceId; + } + + /** + * Get the replacementConfigurationResourceId property: The replacement configuration resource ID when this + * projection has been superseded or requires rebinding. + * + * @return the replacementConfigurationResourceId value. + */ + public String replacementConfigurationResourceId() { + return this.replacementConfigurationResourceId; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ChangeDataCaptureTopologyBindingStatus from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ChangeDataCaptureTopologyBindingStatus 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 ChangeDataCaptureTopologyBindingStatus. + */ + public static ChangeDataCaptureTopologyBindingStatus fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ChangeDataCaptureTopologyBindingStatus deserializedChangeDataCaptureTopologyBindingStatus + = new ChangeDataCaptureTopologyBindingStatus(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("state".equals(fieldName)) { + deserializedChangeDataCaptureTopologyBindingStatus.state + = ChangeDataCaptureTopologyBindingState.fromString(reader.getString()); + } else if ("generation".equals(fieldName)) { + deserializedChangeDataCaptureTopologyBindingStatus.generation = reader.getLong(); + } else if ("activeClusterResourceId".equals(fieldName)) { + deserializedChangeDataCaptureTopologyBindingStatus.activeClusterResourceId = reader.getString(); + } else if ("replacementConfigurationResourceId".equals(fieldName)) { + deserializedChangeDataCaptureTopologyBindingStatus.replacementConfigurationResourceId + = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedChangeDataCaptureTopologyBindingStatus; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureUsageProfile.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureUsageProfile.java new file mode 100644 index 0000000000000..cf85d58045fe6 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureUsageProfile.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.horizondb.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The reason that a change data capture configuration exists. + */ +public final class ChangeDataCaptureUsageProfile extends ExpandableStringEnum { + /** + * The configuration publishes database changes for Microsoft Fabric Mirroring. + */ + public static final ChangeDataCaptureUsageProfile MIRRORING = fromString("Mirroring"); + + /** + * Creates a new instance of ChangeDataCaptureUsageProfile value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ChangeDataCaptureUsageProfile() { + } + + /** + * Creates or finds a ChangeDataCaptureUsageProfile from its string representation. + * + * @param name a name to look for. + * @return the corresponding ChangeDataCaptureUsageProfile. + */ + public static ChangeDataCaptureUsageProfile fromString(String name) { + return fromString(name, ChangeDataCaptureUsageProfile.class); + } + + /** + * Gets known ChangeDataCaptureUsageProfile values. + * + * @return known ChangeDataCaptureUsageProfile values. + */ + public static Collection values() { + return values(ChangeDataCaptureUsageProfile.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbCluster.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Cluster.java similarity index 62% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbCluster.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Cluster.java index 437a4f41c75a9..282f004f318b2 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbCluster.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Cluster.java @@ -7,13 +7,13 @@ import com.azure.core.management.Region; import com.azure.core.management.SystemData; import com.azure.core.util.Context; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbClusterInner; +import com.azure.resourcemanager.horizondb.fluent.models.ClusterInner; import java.util.Map; /** - * An immutable client-side representation of HorizonDbCluster. + * An immutable client-side representation of Cluster. */ -public interface HorizonDbCluster { +public interface Cluster { /** * Gets the id property: Fully qualified resource Id for the resource. * @@ -54,14 +54,17 @@ public interface HorizonDbCluster { * * @return the properties value. */ - HorizonDbClusterProperties properties(); + ClusterProperties properties(); /** - * Gets the identity property: The managed service identities assigned to this resource. + * Gets the identity property: The managed service identities assigned to this resource. Omitting the entire + * identity property from PUT or PATCH preserves all current assignments. When provided, PUT replaces the + * user-assigned identity set and PATCH merges it; null PATCH dictionary entries remove individual identities. + * Setting type to None clears all assignments. * * @return the identity value. */ - ManagedServiceIdentity identity(); + HorizonDbClusterManagedServiceIdentity identity(); /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. @@ -92,31 +95,31 @@ public interface HorizonDbCluster { String resourceGroupName(); /** - * Gets the inner com.azure.resourcemanager.horizondb.fluent.models.HorizonDbClusterInner object. + * Gets the inner com.azure.resourcemanager.horizondb.fluent.models.ClusterInner object. * * @return the inner object. */ - HorizonDbClusterInner innerModel(); + ClusterInner innerModel(); /** - * The entirety of the HorizonDbCluster definition. + * The entirety of the Cluster definition. */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, DefinitionStages.WithResourceGroup, DefinitionStages.WithCreate { } /** - * The HorizonDbCluster definition stages. + * The Cluster definition stages. */ interface DefinitionStages { /** - * The first stage of the HorizonDbCluster definition. + * The first stage of the Cluster definition. */ interface Blank extends WithLocation { } /** - * The stage of the HorizonDbCluster definition allowing to specify location. + * The stage of the Cluster definition allowing to specify location. */ interface WithLocation { /** @@ -137,7 +140,7 @@ interface WithLocation { } /** - * The stage of the HorizonDbCluster definition allowing to specify parent resource. + * The stage of the Cluster definition allowing to specify parent resource. */ interface WithResourceGroup { /** @@ -150,8 +153,8 @@ interface WithResourceGroup { } /** - * The stage of the HorizonDbCluster definition which contains all the minimum required properties for the - * resource to be created, but also allows for any other optional properties to be specified. + * The stage of the Cluster definition which contains all the minimum required properties for the resource to be + * created, but also allows for any other optional properties to be specified. */ interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithProperties, DefinitionStages.WithIdentity { @@ -160,7 +163,7 @@ interface WithCreate * * @return the created resource. */ - HorizonDbCluster create(); + Cluster create(); /** * Executes the create request. @@ -168,11 +171,11 @@ interface WithCreate * @param context The context to associate with this operation. * @return the created resource. */ - HorizonDbCluster create(Context context); + Cluster create(Context context); } /** - * The stage of the HorizonDbCluster definition allowing to specify tags. + * The stage of the Cluster definition allowing to specify tags. */ interface WithTags { /** @@ -185,7 +188,7 @@ interface WithTags { } /** - * The stage of the HorizonDbCluster definition allowing to specify properties. + * The stage of the Cluster definition allowing to specify properties. */ interface WithProperties { /** @@ -194,32 +197,38 @@ interface WithProperties { * @param properties The resource-specific properties for this resource. * @return the next definition stage. */ - WithCreate withProperties(HorizonDbClusterProperties properties); + WithCreate withProperties(ClusterProperties properties); } /** - * The stage of the HorizonDbCluster definition allowing to specify identity. + * The stage of the Cluster definition allowing to specify identity. */ interface WithIdentity { /** - * Specifies the identity property: The managed service identities assigned to this resource.. + * Specifies the identity property: The managed service identities assigned to this resource. Omitting the + * entire identity property from PUT or PATCH preserves all current assignments. When provided, PUT replaces + * the user-assigned identity set and PATCH merges it; null PATCH dictionary entries remove individual + * identities. Setting type to None clears all assignments.. * - * @param identity The managed service identities assigned to this resource. + * @param identity The managed service identities assigned to this resource. Omitting the entire identity + * property from PUT or PATCH preserves all current assignments. When provided, PUT replaces the + * user-assigned identity set and PATCH merges it; null PATCH dictionary entries remove individual + * identities. Setting type to None clears all assignments. * @return the next definition stage. */ - WithCreate withIdentity(ManagedServiceIdentity identity); + WithCreate withIdentity(HorizonDbClusterManagedServiceIdentity identity); } } /** - * Begins update for the HorizonDbCluster resource. + * Begins update for the Cluster resource. * * @return the stage of resource update. */ - HorizonDbCluster.Update update(); + Cluster.Update update(); /** - * The template for HorizonDbCluster update. + * The template for Cluster update. */ interface Update extends UpdateStages.WithTags, UpdateStages.WithIdentity, UpdateStages.WithProperties { /** @@ -227,7 +236,7 @@ interface Update extends UpdateStages.WithTags, UpdateStages.WithIdentity, Updat * * @return the updated resource. */ - HorizonDbCluster apply(); + Cluster apply(); /** * Executes the update request. @@ -235,15 +244,15 @@ interface Update extends UpdateStages.WithTags, UpdateStages.WithIdentity, Updat * @param context The context to associate with this operation. * @return the updated resource. */ - HorizonDbCluster apply(Context context); + Cluster apply(Context context); } /** - * The HorizonDbCluster update stages. + * The Cluster update stages. */ interface UpdateStages { /** - * The stage of the HorizonDbCluster update allowing to specify tags. + * The stage of the Cluster update allowing to specify tags. */ interface WithTags { /** @@ -256,20 +265,26 @@ interface WithTags { } /** - * The stage of the HorizonDbCluster update allowing to specify identity. + * The stage of the Cluster update allowing to specify identity. */ interface WithIdentity { /** - * Specifies the identity property: The managed service identities assigned to this resource.. + * Specifies the identity property: The managed service identities assigned to this resource. Omitting the + * entire identity property from PUT or PATCH preserves all current assignments. When provided, PUT replaces + * the user-assigned identity set and PATCH merges it; null PATCH dictionary entries remove individual + * identities. Setting type to None clears all assignments.. * - * @param identity The managed service identities assigned to this resource. + * @param identity The managed service identities assigned to this resource. Omitting the entire identity + * property from PUT or PATCH preserves all current assignments. When provided, PUT replaces the + * user-assigned identity set and PATCH merges it; null PATCH dictionary entries remove individual + * identities. Setting type to None clears all assignments. * @return the next definition stage. */ - Update withIdentity(ManagedServiceIdentity identity); + Update withIdentity(HorizonDbClusterManagedServiceIdentity identity); } /** - * The stage of the HorizonDbCluster update allowing to specify properties. + * The stage of the Cluster update allowing to specify properties. */ interface WithProperties { /** @@ -278,7 +293,7 @@ interface WithProperties { * @param properties The properties that can be updated for a HorizonDB cluster. * @return the next definition stage. */ - Update withProperties(HorizonDbClusterPropertiesForPatchUpdate properties); + Update withProperties(ClusterPropertiesForPatchUpdate properties); } } @@ -287,7 +302,7 @@ interface WithProperties { * * @return the refreshed resource. */ - HorizonDbCluster refresh(); + Cluster refresh(); /** * Refreshes the resource to sync with Azure. @@ -295,59 +310,29 @@ interface WithProperties { * @param context The context to associate with this operation. * @return the refreshed resource. */ - HorizonDbCluster refresh(Context context); + Cluster refresh(Context context); /** - * Starts a stopped HorizonDB cluster. + * Triggers failover within the cluster's designated read-write pool. HorizonDB selects the replacement node using + * the same eligibility and node-selection rules as automatic failover. The request fails with 409 Conflict when the + * designated pool is not eligible for failover or another conflicting operation is in progress. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. */ - void start(); + Cluster failover(); /** - * Starts a stopped HorizonDB cluster. + * Triggers failover within the cluster's designated read-write pool. HorizonDB selects the replacement node using + * the same eligibility and node-selection rules as automatic failover. The request fails with 409 Conflict when the + * designated pool is not eligible for failover or another conflicting operation is in progress. * * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. */ - void start(Context context); - - /** - * Stops a running HorizonDB cluster. - * - * @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 stop(); - - /** - * Stops a running HorizonDB cluster. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void stop(Context context); - - /** - * Restarts a HorizonDB cluster. - * - * @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 restart(); - - /** - * Restarts a HorizonDB cluster. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void restart(Context context); + Cluster failover(Context context); } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ClusterCapability.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ClusterCapability.java new file mode 100644 index 0000000000000..1e704e26a5378 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ClusterCapability.java @@ -0,0 +1,115 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * The HorizonDB Cluster capabilities available in a location. + */ +@Immutable +public final class ClusterCapability implements JsonSerializable { + /* + * The PostgreSQL major version recommended for clients to select for HorizonDB Clusters in the region. This + * recommendation does not describe backend behavior when the PostgreSQL version is omitted from a request. + */ + private PostgreSqlCapabilityVersion recommendedPostgreSqlVersion; + + /* + * The PostgreSQL major versions supported by Clusters in the region. + */ + private List supportedPostgreSqlVersions; + + /* + * Additional Cluster features supported in the region. + */ + private List supportedFeatures; + + /** + * Creates an instance of ClusterCapability class. + */ + private ClusterCapability() { + } + + /** + * Get the recommendedPostgreSqlVersion property: The PostgreSQL major version recommended for clients to select for + * HorizonDB Clusters in the region. This recommendation does not describe backend behavior when the PostgreSQL + * version is omitted from a request. + * + * @return the recommendedPostgreSqlVersion value. + */ + public PostgreSqlCapabilityVersion recommendedPostgreSqlVersion() { + return this.recommendedPostgreSqlVersion; + } + + /** + * Get the supportedPostgreSqlVersions property: The PostgreSQL major versions supported by Clusters in the region. + * + * @return the supportedPostgreSqlVersions value. + */ + public List supportedPostgreSqlVersions() { + return this.supportedPostgreSqlVersions; + } + + /** + * Get the supportedFeatures property: Additional Cluster features supported in the region. + * + * @return the supportedFeatures value. + */ + public List supportedFeatures() { + return this.supportedFeatures; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterCapability from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterCapability 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 ClusterCapability. + */ + public static ClusterCapability fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterCapability deserializedClusterCapability = new ClusterCapability(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("recommendedPostgreSqlVersion".equals(fieldName)) { + deserializedClusterCapability.recommendedPostgreSqlVersion + = PostgreSqlCapabilityVersion.fromString(reader.getString()); + } else if ("supportedPostgreSqlVersions".equals(fieldName)) { + List supportedPostgreSqlVersions + = reader.readArray(reader1 -> PostgreSqlVersionCapability.fromJson(reader1)); + deserializedClusterCapability.supportedPostgreSqlVersions = supportedPostgreSqlVersions; + } else if ("supportedFeatures".equals(fieldName)) { + List supportedFeatures + = reader.readArray(reader1 -> ClusterFeatureCapability.fromJson(reader1)); + deserializedClusterCapability.supportedFeatures = supportedFeatures; + } else { + reader.skipChildren(); + } + } + + return deserializedClusterCapability; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ClusterCreateMode.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ClusterCreateMode.java new file mode 100644 index 0000000000000..8c8b3d0eb70aa --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ClusterCreateMode.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Controls how a HorizonDB cluster PUT request is processed. + */ +public final class ClusterCreateMode extends ExpandableStringEnum { + /** + * Process the request as a normal cluster creation. + */ + public static final ClusterCreateMode CREATE = fromString("Create"); + + /** + * Create the cluster from a point-in-time restore. + */ + public static final ClusterCreateMode POINT_IN_TIME_RESTORE = fromString("PointInTimeRestore"); + + /** + * Creates a new instance of ClusterCreateMode value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ClusterCreateMode() { + } + + /** + * Creates or finds a ClusterCreateMode from its string representation. + * + * @param name a name to look for. + * @return the corresponding ClusterCreateMode. + */ + public static ClusterCreateMode fromString(String name) { + return fromString(name, ClusterCreateMode.class); + } + + /** + * Gets known ClusterCreateMode values. + * + * @return known ClusterCreateMode values. + */ + public static Collection values() { + return values(ClusterCreateMode.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ClusterFeatureCapability.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ClusterFeatureCapability.java new file mode 100644 index 0000000000000..d0e108bb2616b --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ClusterFeatureCapability.java @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * A HorizonDB Cluster feature supported in a location. + */ +@Immutable +public final class ClusterFeatureCapability implements JsonSerializable { + /* + * The name of the Cluster feature. + */ + private String name; + + /** + * Creates an instance of ClusterFeatureCapability class. + */ + private ClusterFeatureCapability() { + } + + /** + * Get the name property: The name of the Cluster feature. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterFeatureCapability from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterFeatureCapability 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 ClusterFeatureCapability. + */ + public static ClusterFeatureCapability fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterFeatureCapability deserializedClusterFeatureCapability = new ClusterFeatureCapability(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + deserializedClusterFeatureCapability.name = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedClusterFeatureCapability; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterForPatchUpdate.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ClusterForPatchUpdate.java similarity index 54% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterForPatchUpdate.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ClusterForPatchUpdate.java index f9b0e352fd782..f1499c2017d13 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterForPatchUpdate.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ClusterForPatchUpdate.java @@ -16,26 +16,28 @@ * HorizonDB cluster for update operations. */ @Fluent -public final class HorizonDbClusterForPatchUpdate implements JsonSerializable { +public final class ClusterForPatchUpdate implements JsonSerializable { /* * Resource tags. */ private Map tags; /* - * The managed service identities assigned to this resource. + * The managed service identities assigned to this resource. Omitting the entire identity property from PUT or PATCH + * preserves all current assignments. When provided, PUT replaces the user-assigned identity set and PATCH merges + * it; null PATCH dictionary entries remove individual identities. Setting type to None clears all assignments. */ - private ManagedServiceIdentity identity; + private HorizonDbClusterManagedServiceIdentity identity; /* * The properties that can be updated for a HorizonDB cluster. */ - private HorizonDbClusterPropertiesForPatchUpdate properties; + private ClusterPropertiesForPatchUpdate properties; /** - * Creates an instance of HorizonDbClusterForPatchUpdate class. + * Creates an instance of ClusterForPatchUpdate class. */ - public HorizonDbClusterForPatchUpdate() { + public ClusterForPatchUpdate() { } /** @@ -51,29 +53,35 @@ public Map tags() { * Set the tags property: Resource tags. * * @param tags the tags value to set. - * @return the HorizonDbClusterForPatchUpdate object itself. + * @return the ClusterForPatchUpdate object itself. */ - public HorizonDbClusterForPatchUpdate withTags(Map tags) { + public ClusterForPatchUpdate withTags(Map tags) { this.tags = tags; return this; } /** - * Get the identity property: The managed service identities assigned to this resource. + * Get the identity property: The managed service identities assigned to this resource. Omitting the entire identity + * property from PUT or PATCH preserves all current assignments. When provided, PUT replaces the user-assigned + * identity set and PATCH merges it; null PATCH dictionary entries remove individual identities. Setting type to + * None clears all assignments. * * @return the identity value. */ - public ManagedServiceIdentity identity() { + public HorizonDbClusterManagedServiceIdentity identity() { return this.identity; } /** - * Set the identity property: The managed service identities assigned to this resource. + * Set the identity property: The managed service identities assigned to this resource. Omitting the entire identity + * property from PUT or PATCH preserves all current assignments. When provided, PUT replaces the user-assigned + * identity set and PATCH merges it; null PATCH dictionary entries remove individual identities. Setting type to + * None clears all assignments. * * @param identity the identity value to set. - * @return the HorizonDbClusterForPatchUpdate object itself. + * @return the ClusterForPatchUpdate object itself. */ - public HorizonDbClusterForPatchUpdate withIdentity(ManagedServiceIdentity identity) { + public ClusterForPatchUpdate withIdentity(HorizonDbClusterManagedServiceIdentity identity) { this.identity = identity; return this; } @@ -83,7 +91,7 @@ public HorizonDbClusterForPatchUpdate withIdentity(ManagedServiceIdentity identi * * @return the properties value. */ - public HorizonDbClusterPropertiesForPatchUpdate properties() { + public ClusterPropertiesForPatchUpdate properties() { return this.properties; } @@ -91,9 +99,9 @@ public HorizonDbClusterPropertiesForPatchUpdate properties() { * Set the properties property: The properties that can be updated for a HorizonDB cluster. * * @param properties the properties value to set. - * @return the HorizonDbClusterForPatchUpdate object itself. + * @return the ClusterForPatchUpdate object itself. */ - public HorizonDbClusterForPatchUpdate withProperties(HorizonDbClusterPropertiesForPatchUpdate properties) { + public ClusterForPatchUpdate withProperties(ClusterPropertiesForPatchUpdate properties) { this.properties = properties; return this; } @@ -111,35 +119,34 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { } /** - * Reads an instance of HorizonDbClusterForPatchUpdate from the JsonReader. + * Reads an instance of ClusterForPatchUpdate from the JsonReader. * * @param jsonReader The JsonReader being read. - * @return An instance of HorizonDbClusterForPatchUpdate 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 HorizonDbClusterForPatchUpdate. + * @return An instance of ClusterForPatchUpdate 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 ClusterForPatchUpdate. */ - public static HorizonDbClusterForPatchUpdate fromJson(JsonReader jsonReader) throws IOException { + public static ClusterForPatchUpdate fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { - HorizonDbClusterForPatchUpdate deserializedHorizonDbClusterForPatchUpdate - = new HorizonDbClusterForPatchUpdate(); + ClusterForPatchUpdate deserializedClusterForPatchUpdate = new ClusterForPatchUpdate(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); if ("tags".equals(fieldName)) { Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedHorizonDbClusterForPatchUpdate.tags = tags; + deserializedClusterForPatchUpdate.tags = tags; } else if ("identity".equals(fieldName)) { - deserializedHorizonDbClusterForPatchUpdate.identity = ManagedServiceIdentity.fromJson(reader); + deserializedClusterForPatchUpdate.identity + = HorizonDbClusterManagedServiceIdentity.fromJson(reader); } else if ("properties".equals(fieldName)) { - deserializedHorizonDbClusterForPatchUpdate.properties - = HorizonDbClusterPropertiesForPatchUpdate.fromJson(reader); + deserializedClusterForPatchUpdate.properties = ClusterPropertiesForPatchUpdate.fromJson(reader); } else { reader.skipChildren(); } } - return deserializedHorizonDbClusterForPatchUpdate; + return deserializedClusterForPatchUpdate; }); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ClusterProperties.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ClusterProperties.java new file mode 100644 index 0000000000000..02be7ff56c5e3 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ClusterProperties.java @@ -0,0 +1,442 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.CoreUtils; +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.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; + +/** + * Properties of a HorizonDB cluster. + */ +@Fluent +public final class ClusterProperties implements JsonSerializable { + /* + * The PostgreSQL major version used by the HorizonDB cluster. API version 2026-10-01-preview supports versions 17 + * and 18. For ordinary cluster creation, the version is supplied in the request and is immutable after creation. + * For point-in-time restore, the service obtains the version from the source backup metadata and the request must + * omit this property. This API version does not support in-place PostgreSQL major-version upgrades. + */ + private PostgreSqlVersion postgreSqlVersion; + + /* + * The mode used to create the cluster. When this property is omitted while creating a new cluster, the service + * records Create. PointInTimeRestore creates a new cluster from an available backup; pointInTimeUtc and + * creationSourceClusterResourceId are then required, postgreSqlVersion must be omitted because it is obtained from + * the backup metadata, and creationSourceClusterLocation is required when the source and target cluster locations + * differ. This property is immutable and is returned as creation provenance. On replacement, omission preserves the + * recorded value, resubmitting the same value is accepted, and changing it is rejected. + */ + private ClusterCreateMode creationMode; + + /* + * The requested point in time, in UTC. This property is required in every PointInTimeRestore request. For a + * same-location restore, the service restores the latest backup available at or before this value. For a + * cross-location restore, the service requires but ignores this value and restores the latest available backup; + * cross-location responses omit this property. This property must be absent for other creation modes or when + * creationMode is omitted and can only be specified during resource creation. + */ + private OffsetDateTime pointInTimeUtc; + + /* + * The Azure resource ID of the source HorizonDB cluster used by the selected creation mode. This property is + * required for PointInTimeRestore and other source-based creation modes, and must be absent when creationMode is + * Create or omitted. A source cluster does not need to have a pool to be restored, provided an available backup + * exists. This immutable creation-provenance value does not change after creation. + */ + private String creationSourceClusterResourceId; + + /* + * The Azure location of the source HorizonDB cluster used for point-in-time restore. This property is optional when + * the source and target cluster locations are the same. It is required when the source cluster location differs + * from the target cluster location and must identify the source cluster's location. This property must be absent + * for creation modes other than PointInTimeRestore or when creationMode is omitted. This immutable + * creation-provenance value does not change after creation. + */ + private String creationSourceClusterLocation; + + /* + * The network configuration for the cluster. When this object is omitted, the service defaults it to publicAccess + * Disabled. + */ + private Network network; + + /* + * The backup configuration for the cluster. + */ + private BackupProperties backup; + + /* + * The data encryption configuration for the cluster. When omitted during initial cluster creation, the service uses + * SystemManaged encryption. When supplied during initial cluster creation, type is required. For PUT updates of an + * existing cluster, type may be omitted; if provided, it must match the existing encryption type. The encryption + * type is selected at cluster creation; switching between SystemManaged and AzureKeyVault after creation is not + * supported. + */ + private HorizonDbClusterDataEncryption dataEncryption; + + /* + * Specifies whether AI Model Management is enabled for the cluster. + */ + private AiModelManagementStatus aiModelManagement; + + /* + * Current state of the cluster. + */ + private ClusterState state; + + /* + * The provisioning state of the cluster. + */ + private ProvisioningState provisioningState; + + /* + * The pool currently designated to host the cluster's read-write node. + */ + private ReadWritePoolProperties readWritePool; + + /** + * Creates an instance of ClusterProperties class. + */ + public ClusterProperties() { + } + + /** + * Get the postgreSqlVersion property: The PostgreSQL major version used by the HorizonDB cluster. API version + * 2026-10-01-preview supports versions 17 and 18. For ordinary cluster creation, the version is supplied in the + * request and is immutable after creation. For point-in-time restore, the service obtains the version from the + * source backup metadata and the request must omit this property. This API version does not support in-place + * PostgreSQL major-version upgrades. + * + * @return the postgreSqlVersion value. + */ + public PostgreSqlVersion postgreSqlVersion() { + return this.postgreSqlVersion; + } + + /** + * Set the postgreSqlVersion property: The PostgreSQL major version used by the HorizonDB cluster. API version + * 2026-10-01-preview supports versions 17 and 18. For ordinary cluster creation, the version is supplied in the + * request and is immutable after creation. For point-in-time restore, the service obtains the version from the + * source backup metadata and the request must omit this property. This API version does not support in-place + * PostgreSQL major-version upgrades. + * + * @param postgreSqlVersion the postgreSqlVersion value to set. + * @return the ClusterProperties object itself. + */ + public ClusterProperties withPostgreSqlVersion(PostgreSqlVersion postgreSqlVersion) { + this.postgreSqlVersion = postgreSqlVersion; + return this; + } + + /** + * Get the creationMode property: The mode used to create the cluster. When this property is omitted while creating + * a new cluster, the service records Create. PointInTimeRestore creates a new cluster from an available backup; + * pointInTimeUtc and creationSourceClusterResourceId are then required, postgreSqlVersion must be omitted because + * it is obtained from the backup metadata, and creationSourceClusterLocation is required when the source and target + * cluster locations differ. This property is immutable and is returned as creation provenance. On replacement, + * omission preserves the recorded value, resubmitting the same value is accepted, and changing it is rejected. + * + * @return the creationMode value. + */ + public ClusterCreateMode creationMode() { + return this.creationMode; + } + + /** + * Set the creationMode property: The mode used to create the cluster. When this property is omitted while creating + * a new cluster, the service records Create. PointInTimeRestore creates a new cluster from an available backup; + * pointInTimeUtc and creationSourceClusterResourceId are then required, postgreSqlVersion must be omitted because + * it is obtained from the backup metadata, and creationSourceClusterLocation is required when the source and target + * cluster locations differ. This property is immutable and is returned as creation provenance. On replacement, + * omission preserves the recorded value, resubmitting the same value is accepted, and changing it is rejected. + * + * @param creationMode the creationMode value to set. + * @return the ClusterProperties object itself. + */ + public ClusterProperties withCreationMode(ClusterCreateMode creationMode) { + this.creationMode = creationMode; + return this; + } + + /** + * Get the pointInTimeUtc property: The requested point in time, in UTC. This property is required in every + * PointInTimeRestore request. For a same-location restore, the service restores the latest backup available at or + * before this value. For a cross-location restore, the service requires but ignores this value and restores the + * latest available backup; cross-location responses omit this property. This property must be absent for other + * creation modes or when creationMode is omitted and can only be specified during resource creation. + * + * @return the pointInTimeUtc value. + */ + public OffsetDateTime pointInTimeUtc() { + return this.pointInTimeUtc; + } + + /** + * Set the pointInTimeUtc property: The requested point in time, in UTC. This property is required in every + * PointInTimeRestore request. For a same-location restore, the service restores the latest backup available at or + * before this value. For a cross-location restore, the service requires but ignores this value and restores the + * latest available backup; cross-location responses omit this property. This property must be absent for other + * creation modes or when creationMode is omitted and can only be specified during resource creation. + * + * @param pointInTimeUtc the pointInTimeUtc value to set. + * @return the ClusterProperties object itself. + */ + public ClusterProperties withPointInTimeUtc(OffsetDateTime pointInTimeUtc) { + this.pointInTimeUtc = pointInTimeUtc; + return this; + } + + /** + * Get the creationSourceClusterResourceId property: The Azure resource ID of the source HorizonDB cluster used by + * the selected creation mode. This property is required for PointInTimeRestore and other source-based creation + * modes, and must be absent when creationMode is Create or omitted. A source cluster does not need to have a pool + * to be restored, provided an available backup exists. This immutable creation-provenance value does not change + * after creation. + * + * @return the creationSourceClusterResourceId value. + */ + public String creationSourceClusterResourceId() { + return this.creationSourceClusterResourceId; + } + + /** + * Set the creationSourceClusterResourceId property: The Azure resource ID of the source HorizonDB cluster used by + * the selected creation mode. This property is required for PointInTimeRestore and other source-based creation + * modes, and must be absent when creationMode is Create or omitted. A source cluster does not need to have a pool + * to be restored, provided an available backup exists. This immutable creation-provenance value does not change + * after creation. + * + * @param creationSourceClusterResourceId the creationSourceClusterResourceId value to set. + * @return the ClusterProperties object itself. + */ + public ClusterProperties withCreationSourceClusterResourceId(String creationSourceClusterResourceId) { + this.creationSourceClusterResourceId = creationSourceClusterResourceId; + return this; + } + + /** + * Get the creationSourceClusterLocation property: The Azure location of the source HorizonDB cluster used for + * point-in-time restore. This property is optional when the source and target cluster locations are the same. It is + * required when the source cluster location differs from the target cluster location and must identify the source + * cluster's location. This property must be absent for creation modes other than PointInTimeRestore or when + * creationMode is omitted. This immutable creation-provenance value does not change after creation. + * + * @return the creationSourceClusterLocation value. + */ + public String creationSourceClusterLocation() { + return this.creationSourceClusterLocation; + } + + /** + * Set the creationSourceClusterLocation property: The Azure location of the source HorizonDB cluster used for + * point-in-time restore. This property is optional when the source and target cluster locations are the same. It is + * required when the source cluster location differs from the target cluster location and must identify the source + * cluster's location. This property must be absent for creation modes other than PointInTimeRestore or when + * creationMode is omitted. This immutable creation-provenance value does not change after creation. + * + * @param creationSourceClusterLocation the creationSourceClusterLocation value to set. + * @return the ClusterProperties object itself. + */ + public ClusterProperties withCreationSourceClusterLocation(String creationSourceClusterLocation) { + this.creationSourceClusterLocation = creationSourceClusterLocation; + return this; + } + + /** + * Get the network property: The network configuration for the cluster. When this object is omitted, the service + * defaults it to publicAccess Disabled. + * + * @return the network value. + */ + public Network network() { + return this.network; + } + + /** + * Set the network property: The network configuration for the cluster. When this object is omitted, the service + * defaults it to publicAccess Disabled. + * + * @param network the network value to set. + * @return the ClusterProperties object itself. + */ + public ClusterProperties withNetwork(Network network) { + this.network = network; + return this; + } + + /** + * Get the backup property: The backup configuration for the cluster. + * + * @return the backup value. + */ + public BackupProperties backup() { + return this.backup; + } + + /** + * Set the backup property: The backup configuration for the cluster. + * + * @param backup the backup value to set. + * @return the ClusterProperties object itself. + */ + public ClusterProperties withBackup(BackupProperties backup) { + this.backup = backup; + return this; + } + + /** + * Get the dataEncryption property: The data encryption configuration for the cluster. When omitted during initial + * cluster creation, the service uses SystemManaged encryption. When supplied during initial cluster creation, type + * is required. For PUT updates of an existing cluster, type may be omitted; if provided, it must match the existing + * encryption type. The encryption type is selected at cluster creation; switching between SystemManaged and + * AzureKeyVault after creation is not supported. + * + * @return the dataEncryption value. + */ + public HorizonDbClusterDataEncryption dataEncryption() { + return this.dataEncryption; + } + + /** + * Set the dataEncryption property: The data encryption configuration for the cluster. When omitted during initial + * cluster creation, the service uses SystemManaged encryption. When supplied during initial cluster creation, type + * is required. For PUT updates of an existing cluster, type may be omitted; if provided, it must match the existing + * encryption type. The encryption type is selected at cluster creation; switching between SystemManaged and + * AzureKeyVault after creation is not supported. + * + * @param dataEncryption the dataEncryption value to set. + * @return the ClusterProperties object itself. + */ + public ClusterProperties withDataEncryption(HorizonDbClusterDataEncryption dataEncryption) { + this.dataEncryption = dataEncryption; + return this; + } + + /** + * Get the aiModelManagement property: Specifies whether AI Model Management is enabled for the cluster. + * + * @return the aiModelManagement value. + */ + public AiModelManagementStatus aiModelManagement() { + return this.aiModelManagement; + } + + /** + * Set the aiModelManagement property: Specifies whether AI Model Management is enabled for the cluster. + * + * @param aiModelManagement the aiModelManagement value to set. + * @return the ClusterProperties object itself. + */ + public ClusterProperties withAiModelManagement(AiModelManagementStatus aiModelManagement) { + this.aiModelManagement = aiModelManagement; + return this; + } + + /** + * Get the state property: Current state of the cluster. + * + * @return the state value. + */ + public ClusterState state() { + return this.state; + } + + /** + * Get the provisioningState property: The provisioning state of the cluster. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Get the readWritePool property: The pool currently designated to host the cluster's read-write node. + * + * @return the readWritePool value. + */ + public ReadWritePoolProperties readWritePool() { + return this.readWritePool; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("postgreSqlVersion", + this.postgreSqlVersion == null ? null : this.postgreSqlVersion.toString()); + jsonWriter.writeStringField("creationMode", this.creationMode == null ? null : this.creationMode.toString()); + jsonWriter.writeStringField("pointInTimeUtc", + this.pointInTimeUtc == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.pointInTimeUtc)); + jsonWriter.writeStringField("creationSourceClusterResourceId", this.creationSourceClusterResourceId); + jsonWriter.writeStringField("creationSourceClusterLocation", this.creationSourceClusterLocation); + jsonWriter.writeJsonField("network", this.network); + jsonWriter.writeJsonField("backup", this.backup); + jsonWriter.writeJsonField("dataEncryption", this.dataEncryption); + jsonWriter.writeStringField("aiModelManagement", + this.aiModelManagement == null ? null : this.aiModelManagement.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterProperties 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 ClusterProperties. + */ + public static ClusterProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterProperties deserializedClusterProperties = new ClusterProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("state".equals(fieldName)) { + deserializedClusterProperties.state = ClusterState.fromString(reader.getString()); + } else if ("provisioningState".equals(fieldName)) { + deserializedClusterProperties.provisioningState = ProvisioningState.fromString(reader.getString()); + } else if ("readWritePool".equals(fieldName)) { + deserializedClusterProperties.readWritePool = ReadWritePoolProperties.fromJson(reader); + } else if ("postgreSqlVersion".equals(fieldName)) { + deserializedClusterProperties.postgreSqlVersion = PostgreSqlVersion.fromString(reader.getString()); + } else if ("creationMode".equals(fieldName)) { + deserializedClusterProperties.creationMode = ClusterCreateMode.fromString(reader.getString()); + } else if ("pointInTimeUtc".equals(fieldName)) { + deserializedClusterProperties.pointInTimeUtc = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("creationSourceClusterResourceId".equals(fieldName)) { + deserializedClusterProperties.creationSourceClusterResourceId = reader.getString(); + } else if ("creationSourceClusterLocation".equals(fieldName)) { + deserializedClusterProperties.creationSourceClusterLocation = reader.getString(); + } else if ("network".equals(fieldName)) { + deserializedClusterProperties.network = Network.fromJson(reader); + } else if ("backup".equals(fieldName)) { + deserializedClusterProperties.backup = BackupProperties.fromJson(reader); + } else if ("dataEncryption".equals(fieldName)) { + deserializedClusterProperties.dataEncryption = HorizonDbClusterDataEncryption.fromJson(reader); + } else if ("aiModelManagement".equals(fieldName)) { + deserializedClusterProperties.aiModelManagement + = AiModelManagementStatus.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedClusterProperties; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ClusterPropertiesForPatchUpdate.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ClusterPropertiesForPatchUpdate.java new file mode 100644 index 0000000000000..554dc615e3fd3 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ClusterPropertiesForPatchUpdate.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.horizondb.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; + +/** + * Properties of a HorizonDB cluster for update operations. + */ +@Fluent +public final class ClusterPropertiesForPatchUpdate implements JsonSerializable { + /* + * The network configuration to update for the cluster. + */ + private NetworkForPatchUpdate network; + + /* + * The backup configuration for the cluster. + */ + private BackupPropertiesForPatchUpdate backup; + + /* + * The data encryption configuration to update for the cluster. Omitted properties preserve their current values. + * Updates can modify settings within the existing encryption type, but switching between SystemManaged and + * AzureKeyVault after cluster creation is not supported. + */ + private HorizonDbClusterDataEncryptionForPatchUpdate dataEncryption; + + /* + * Specifies whether AI Model Management is enabled for the cluster. + */ + private AiModelManagementStatus aiModelManagement; + + /** + * Creates an instance of ClusterPropertiesForPatchUpdate class. + */ + public ClusterPropertiesForPatchUpdate() { + } + + /** + * Get the network property: The network configuration to update for the cluster. + * + * @return the network value. + */ + public NetworkForPatchUpdate network() { + return this.network; + } + + /** + * Set the network property: The network configuration to update for the cluster. + * + * @param network the network value to set. + * @return the ClusterPropertiesForPatchUpdate object itself. + */ + public ClusterPropertiesForPatchUpdate withNetwork(NetworkForPatchUpdate network) { + this.network = network; + return this; + } + + /** + * Get the backup property: The backup configuration for the cluster. + * + * @return the backup value. + */ + public BackupPropertiesForPatchUpdate backup() { + return this.backup; + } + + /** + * Set the backup property: The backup configuration for the cluster. + * + * @param backup the backup value to set. + * @return the ClusterPropertiesForPatchUpdate object itself. + */ + public ClusterPropertiesForPatchUpdate withBackup(BackupPropertiesForPatchUpdate backup) { + this.backup = backup; + return this; + } + + /** + * Get the dataEncryption property: The data encryption configuration to update for the cluster. Omitted properties + * preserve their current values. Updates can modify settings within the existing encryption type, but switching + * between SystemManaged and AzureKeyVault after cluster creation is not supported. + * + * @return the dataEncryption value. + */ + public HorizonDbClusterDataEncryptionForPatchUpdate dataEncryption() { + return this.dataEncryption; + } + + /** + * Set the dataEncryption property: The data encryption configuration to update for the cluster. Omitted properties + * preserve their current values. Updates can modify settings within the existing encryption type, but switching + * between SystemManaged and AzureKeyVault after cluster creation is not supported. + * + * @param dataEncryption the dataEncryption value to set. + * @return the ClusterPropertiesForPatchUpdate object itself. + */ + public ClusterPropertiesForPatchUpdate + withDataEncryption(HorizonDbClusterDataEncryptionForPatchUpdate dataEncryption) { + this.dataEncryption = dataEncryption; + return this; + } + + /** + * Get the aiModelManagement property: Specifies whether AI Model Management is enabled for the cluster. + * + * @return the aiModelManagement value. + */ + public AiModelManagementStatus aiModelManagement() { + return this.aiModelManagement; + } + + /** + * Set the aiModelManagement property: Specifies whether AI Model Management is enabled for the cluster. + * + * @param aiModelManagement the aiModelManagement value to set. + * @return the ClusterPropertiesForPatchUpdate object itself. + */ + public ClusterPropertiesForPatchUpdate withAiModelManagement(AiModelManagementStatus aiModelManagement) { + this.aiModelManagement = aiModelManagement; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("network", this.network); + jsonWriter.writeJsonField("backup", this.backup); + jsonWriter.writeJsonField("dataEncryption", this.dataEncryption); + jsonWriter.writeStringField("aiModelManagement", + this.aiModelManagement == null ? null : this.aiModelManagement.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterPropertiesForPatchUpdate from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterPropertiesForPatchUpdate 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 ClusterPropertiesForPatchUpdate. + */ + public static ClusterPropertiesForPatchUpdate fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterPropertiesForPatchUpdate deserializedClusterPropertiesForPatchUpdate + = new ClusterPropertiesForPatchUpdate(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("network".equals(fieldName)) { + deserializedClusterPropertiesForPatchUpdate.network = NetworkForPatchUpdate.fromJson(reader); + } else if ("backup".equals(fieldName)) { + deserializedClusterPropertiesForPatchUpdate.backup + = BackupPropertiesForPatchUpdate.fromJson(reader); + } else if ("dataEncryption".equals(fieldName)) { + deserializedClusterPropertiesForPatchUpdate.dataEncryption + = HorizonDbClusterDataEncryptionForPatchUpdate.fromJson(reader); + } else if ("aiModelManagement".equals(fieldName)) { + deserializedClusterPropertiesForPatchUpdate.aiModelManagement + = AiModelManagementStatus.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedClusterPropertiesForPatchUpdate; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ClusterState.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ClusterState.java new file mode 100644 index 0000000000000..32a64c3c5ed8c --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ClusterState.java @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Current state of a HorizonDB cluster. + */ +public final class ClusterState extends ExpandableStringEnum { + /** + * Is ready and operational. + */ + public static final ClusterState READY = fromString("Ready"); + + /** + * Is provisioning. + */ + public static final ClusterState PROVISIONING = fromString("Provisioning"); + + /** + * Is being deleted. + */ + public static final ClusterState DELETING = fromString("Deleting"); + + /** + * Is inaccessible. + */ + public static final ClusterState INACCESSIBLE = fromString("Inaccessible"); + + /** + * Is being updated. + */ + public static final ClusterState UPDATING = fromString("Updating"); + + /** + * Creates a new instance of ClusterState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ClusterState() { + } + + /** + * Creates or finds a ClusterState from its string representation. + * + * @param name a name to look for. + * @return the corresponding ClusterState. + */ + public static ClusterState fromString(String name) { + return fromString(name, ClusterState.class); + } + + /** + * Gets known ClusterState values. + * + * @return known ClusterState values. + */ + public static Collection values() { + return values(ClusterState.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusters.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Clusters.java similarity index 64% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusters.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Clusters.java index 7f2a6b1bfd34f..cc57c4a181784 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusters.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Clusters.java @@ -9,9 +9,9 @@ import com.azure.core.util.Context; /** - * Resource collection API of HorizonDbClusters. + * Resource collection API of Clusters. */ -public interface HorizonDbClusters { +public interface Clusters { /** * Gets information about a HorizonDB cluster. * @@ -23,8 +23,7 @@ public interface HorizonDbClusters { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return information about a HorizonDB cluster along with {@link Response}. */ - Response getByResourceGroupWithResponse(String resourceGroupName, String clusterName, - Context context); + Response getByResourceGroupWithResponse(String resourceGroupName, String clusterName, Context context); /** * Gets information about a HorizonDB cluster. @@ -36,10 +35,12 @@ Response getByResourceGroupWithResponse(String resourceGroupNa * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return information about a HorizonDB cluster. */ - HorizonDbCluster getByResourceGroup(String resourceGroupName, String clusterName); + Cluster getByResourceGroup(String resourceGroupName, String clusterName); /** - * Deletes a HorizonDB cluster. + * Deletes a HorizonDB cluster, its Cluster-scoped Endpoint, and all remaining child resources. For an accepted + * deletion, the long-running operation remains nonterminal until physical deletion completes and point GET returns + * 404 Not Found. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -50,7 +51,9 @@ Response getByResourceGroupWithResponse(String resourceGroupNa void deleteByResourceGroup(String resourceGroupName, String clusterName); /** - * Deletes a HorizonDB cluster. + * Deletes a HorizonDB cluster, its Cluster-scoped Endpoint, and all remaining child resources. For an accepted + * deletion, the long-running operation remains nonterminal until physical deletion completes and point GET returns + * 404 Not Found. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -68,9 +71,9 @@ Response getByResourceGroupWithResponse(String resourceGroupNa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbCluster list operation as paginated response with {@link PagedIterable}. + * @return the response of a Cluster list operation as paginated response with {@link PagedIterable}. */ - PagedIterable listByResourceGroup(String resourceGroupName); + PagedIterable listByResourceGroup(String resourceGroupName); /** * Lists all HorizonDB clusters in a resource group. @@ -80,18 +83,18 @@ Response getByResourceGroupWithResponse(String resourceGroupNa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbCluster list operation as paginated response with {@link PagedIterable}. + * @return the response of a Cluster list operation as paginated response with {@link PagedIterable}. */ - PagedIterable listByResourceGroup(String resourceGroupName, Context context); + PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** * Lists all HorizonDB clusters in a subscription. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbCluster list operation as paginated response with {@link PagedIterable}. + * @return the response of a Cluster list operation as paginated response with {@link PagedIterable}. */ - PagedIterable list(); + PagedIterable list(); /** * Lists all HorizonDB clusters in a subscription. @@ -100,23 +103,28 @@ Response getByResourceGroupWithResponse(String resourceGroupNa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbCluster list operation as paginated response with {@link PagedIterable}. + * @return the response of a Cluster list operation as paginated response with {@link PagedIterable}. */ - PagedIterable list(Context context); + PagedIterable list(Context context); /** - * Starts a stopped HorizonDB cluster. + * Triggers failover within the cluster's designated read-write pool. HorizonDB selects the replacement node using + * the same eligibility and node-selection rules as automatic failover. The request fails with 409 Conflict when the + * designated pool is not eligible for failover or another conflicting operation is in progress. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. */ - void start(String resourceGroupName, String clusterName); + Cluster failover(String resourceGroupName, String clusterName); /** - * Starts a stopped HorizonDB cluster. + * Triggers failover within the cluster's designated read-write pool. HorizonDB selects the replacement node using + * the same eligibility and node-selection rules as automatic failover. The request fails with 409 Conflict when the + * designated pool is not eligible for failover or another conflicting operation is in progress. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. @@ -124,54 +132,9 @@ Response getByResourceGroupWithResponse(String resourceGroupNa * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response. */ - void start(String resourceGroupName, String clusterName, Context context); - - /** - * Stops a running HorizonDB cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB 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. - */ - void stop(String resourceGroupName, String clusterName); - - /** - * Stops a running HorizonDB cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void stop(String resourceGroupName, String clusterName, Context context); - - /** - * Restarts a HorizonDB cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB 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. - */ - void restart(String resourceGroupName, String clusterName); - - /** - * Restarts a HorizonDB cluster. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - void restart(String resourceGroupName, String clusterName, Context context); + Cluster failover(String resourceGroupName, String clusterName, Context context); /** * Gets information about a HorizonDB cluster. @@ -182,7 +145,7 @@ Response getByResourceGroupWithResponse(String resourceGroupNa * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return information about a HorizonDB cluster along with {@link Response}. */ - HorizonDbCluster getById(String id); + Cluster getById(String id); /** * Gets information about a HorizonDB cluster. @@ -194,10 +157,12 @@ Response getByResourceGroupWithResponse(String resourceGroupNa * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return information about a HorizonDB cluster along with {@link Response}. */ - Response getByIdWithResponse(String id, Context context); + Response getByIdWithResponse(String id, Context context); /** - * Deletes a HorizonDB cluster. + * Deletes a HorizonDB cluster, its Cluster-scoped Endpoint, and all remaining child resources. For an accepted + * deletion, the long-running operation remains nonterminal until physical deletion completes and point GET returns + * 404 Not Found. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -207,7 +172,9 @@ Response getByResourceGroupWithResponse(String resourceGroupNa void deleteById(String id); /** - * Deletes a HorizonDB cluster. + * Deletes a HorizonDB cluster, its Cluster-scoped Endpoint, and all remaining child resources. For an accepted + * deletion, the long-running operation remains nonterminal until physical deletion completes and point GET returns + * 404 Not Found. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -218,10 +185,10 @@ Response getByResourceGroupWithResponse(String resourceGroupNa void deleteByIdWithResponse(String id, Context context); /** - * Begins definition for a new HorizonDbCluster resource. + * Begins definition for a new Cluster resource. * * @param name resource name. - * @return the first stage of the new HorizonDbCluster definition. + * @return the first stage of the new Cluster definition. */ - HorizonDbCluster.DefinitionStages.Blank define(String name); + Cluster.DefinitionStages.Blank define(String name); } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ComputeGenerationCapability.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ComputeGenerationCapability.java new file mode 100644 index 0000000000000..398a9c4d18824 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ComputeGenerationCapability.java @@ -0,0 +1,113 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * The capabilities of a HorizonDB compute generation. + */ +@Immutable +public final class ComputeGenerationCapability implements JsonSerializable { + /* + * The numeric compute generation used when configuring a HorizonDB pool. + */ + private int computeGeneration; + + /* + * The compute model type recommended for clients to select for this compute generation. This recommendation does + * not describe backend behavior when the compute model type is omitted from a request. + */ + private PoolComputeModelType recommendedComputeModelType; + + /* + * The compute models supported by the compute generation. + */ + private List supportedComputeModels; + + /** + * Creates an instance of ComputeGenerationCapability class. + */ + private ComputeGenerationCapability() { + } + + /** + * Get the computeGeneration property: The numeric compute generation used when configuring a HorizonDB pool. + * + * @return the computeGeneration value. + */ + public int computeGeneration() { + return this.computeGeneration; + } + + /** + * Get the recommendedComputeModelType property: The compute model type recommended for clients to select for this + * compute generation. This recommendation does not describe backend behavior when the compute model type is omitted + * from a request. + * + * @return the recommendedComputeModelType value. + */ + public PoolComputeModelType recommendedComputeModelType() { + return this.recommendedComputeModelType; + } + + /** + * Get the supportedComputeModels property: The compute models supported by the compute generation. + * + * @return the supportedComputeModels value. + */ + public List supportedComputeModels() { + return this.supportedComputeModels; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ComputeGenerationCapability from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ComputeGenerationCapability 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 ComputeGenerationCapability. + */ + public static ComputeGenerationCapability fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ComputeGenerationCapability deserializedComputeGenerationCapability = new ComputeGenerationCapability(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("computeGeneration".equals(fieldName)) { + deserializedComputeGenerationCapability.computeGeneration = reader.getInt(); + } else if ("recommendedComputeModelType".equals(fieldName)) { + deserializedComputeGenerationCapability.recommendedComputeModelType + = PoolComputeModelType.fromString(reader.getString()); + } else if ("supportedComputeModels".equals(fieldName)) { + List supportedComputeModels + = reader.readArray(reader1 -> ComputeModelCapability.fromJson(reader1)); + deserializedComputeGenerationCapability.supportedComputeModels = supportedComputeModels; + } else { + reader.skipChildren(); + } + } + + return deserializedComputeGenerationCapability; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ComputeModelCapability.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ComputeModelCapability.java new file mode 100644 index 0000000000000..dae5c6d3982f7 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ComputeModelCapability.java @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The capabilities of a HorizonDB compute model. + */ +@Immutable +public class ComputeModelCapability implements JsonSerializable { + /* + * The compute model represented by these capabilities. + */ + private PoolComputeModelType type = PoolComputeModelType.fromString("ComputeModelCapability"); + + /** + * Creates an instance of ComputeModelCapability class. + */ + protected ComputeModelCapability() { + } + + /** + * Get the type property: The compute model represented by these capabilities. + * + * @return the type value. + */ + public PoolComputeModelType type() { + return this.type; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ComputeModelCapability from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ComputeModelCapability 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 ComputeModelCapability. + */ + public static ComputeModelCapability fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String discriminatorValue = null; + try (JsonReader readerToUse = reader.bufferObject()) { + readerToUse.nextToken(); // Prepare for reading + while (readerToUse.nextToken() != JsonToken.END_OBJECT) { + String fieldName = readerToUse.getFieldName(); + readerToUse.nextToken(); + if ("type".equals(fieldName)) { + discriminatorValue = readerToUse.getString(); + break; + } else { + readerToUse.skipChildren(); + } + } + // Use the discriminator value to determine which subtype should be deserialized. + if ("Provisioned".equals(discriminatorValue)) { + return ProvisionedComputeModelCapability.fromJson(readerToUse.reset()); + } else { + return fromJsonKnownDiscriminator(readerToUse.reset()); + } + } + }); + } + + static ComputeModelCapability fromJsonKnownDiscriminator(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ComputeModelCapability deserializedComputeModelCapability = new ComputeModelCapability(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("type".equals(fieldName)) { + deserializedComputeModelCapability.type = PoolComputeModelType.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedComputeModelCapability; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ComputeProcessorCapability.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ComputeProcessorCapability.java new file mode 100644 index 0000000000000..603a5a4f31e1d --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ComputeProcessorCapability.java @@ -0,0 +1,93 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * The capabilities of a processor family supported by HorizonDB. + */ +@Immutable +public final class ComputeProcessorCapability implements JsonSerializable { + /* + * The name of the processor family. + */ + private ComputeProcessorType name; + + /* + * The compute generations supported by the processor family. + */ + private List supportedGenerations; + + /** + * Creates an instance of ComputeProcessorCapability class. + */ + private ComputeProcessorCapability() { + } + + /** + * Get the name property: The name of the processor family. + * + * @return the name value. + */ + public ComputeProcessorType name() { + return this.name; + } + + /** + * Get the supportedGenerations property: The compute generations supported by the processor family. + * + * @return the supportedGenerations value. + */ + public List supportedGenerations() { + return this.supportedGenerations; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ComputeProcessorCapability from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ComputeProcessorCapability 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 ComputeProcessorCapability. + */ + public static ComputeProcessorCapability fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ComputeProcessorCapability deserializedComputeProcessorCapability = new ComputeProcessorCapability(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + deserializedComputeProcessorCapability.name = ComputeProcessorType.fromString(reader.getString()); + } else if ("supportedGenerations".equals(fieldName)) { + List supportedGenerations + = reader.readArray(reader1 -> ComputeGenerationCapability.fromJson(reader1)); + deserializedComputeProcessorCapability.supportedGenerations = supportedGenerations; + } else { + reader.skipChildren(); + } + } + + return deserializedComputeProcessorCapability; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ComputeProcessorType.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ComputeProcessorType.java new file mode 100644 index 0000000000000..f6fae268982f6 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ComputeProcessorType.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The compute processor type. + */ +public final class ComputeProcessorType extends ExpandableStringEnum { + /** + * Intel processor. + */ + public static final ComputeProcessorType INTEL = fromString("Intel"); + + /** + * AMD processor. + */ + public static final ComputeProcessorType AMD = fromString("AMD"); + + /** + * Creates a new instance of ComputeProcessorType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ComputeProcessorType() { + } + + /** + * Creates or finds a ComputeProcessorType from its string representation. + * + * @param name a name to look for. + * @return the corresponding ComputeProcessorType. + */ + public static ComputeProcessorType fromString(String name) { + return fromString(name, ComputeProcessorType.class); + } + + /** + * Gets known ComputeProcessorType values. + * + * @return known ComputeProcessorType values. + */ + public static Collection values() { + return values(ComputeProcessorType.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ComputeSizeCapability.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ComputeSizeCapability.java new file mode 100644 index 0000000000000..f925f459f58cf --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ComputeSizeCapability.java @@ -0,0 +1,90 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * A vCore configuration supported by a HorizonDB processor generation. + */ +@Immutable +public final class ComputeSizeCapability implements JsonSerializable { + /* + * The number of vCores in the configuration. + */ + private int vCores; + + /* + * The memory in megabytes available for each vCore. + */ + private long memoryPerVCoreInMb; + + /** + * Creates an instance of ComputeSizeCapability class. + */ + private ComputeSizeCapability() { + } + + /** + * Get the vCores property: The number of vCores in the configuration. + * + * @return the vCores value. + */ + public int vCores() { + return this.vCores; + } + + /** + * Get the memoryPerVCoreInMb property: The memory in megabytes available for each vCore. + * + * @return the memoryPerVCoreInMb value. + */ + public long memoryPerVCoreInMb() { + return this.memoryPerVCoreInMb; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ComputeSizeCapability from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ComputeSizeCapability 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 ComputeSizeCapability. + */ + public static ComputeSizeCapability fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ComputeSizeCapability deserializedComputeSizeCapability = new ComputeSizeCapability(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("vCores".equals(fieldName)) { + deserializedComputeSizeCapability.vCores = reader.getInt(); + } else if ("memoryPerVCoreInMb".equals(fieldName)) { + deserializedComputeSizeCapability.memoryPerVCoreInMb = reader.getLong(); + } else { + reader.skipChildren(); + } + } + + return deserializedComputeSizeCapability; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/CreateModeCluster.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/CreateModeCluster.java deleted file mode 100644 index 7218314fad360..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/CreateModeCluster.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * The mode to create a new HorizonDB cluster. - */ -public final class CreateModeCluster extends ExpandableStringEnum { - /** - * Create a new cluster. - */ - public static final CreateModeCluster CREATE = fromString("Create"); - - /** - * Update an existing cluster. - */ - public static final CreateModeCluster UPDATE = fromString("Update"); - - /** - * Create cluster from point-in-time restore. - */ - public static final CreateModeCluster POINT_IN_TIME_RESTORE = fromString("PointInTimeRestore"); - - /** - * Creates a new instance of CreateModeCluster value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public CreateModeCluster() { - } - - /** - * Creates or finds a CreateModeCluster from its string representation. - * - * @param name a name to look for. - * @return the corresponding CreateModeCluster. - */ - public static CreateModeCluster fromString(String name) { - return fromString(name, CreateModeCluster.class); - } - - /** - * Gets known CreateModeCluster values. - * - * @return known CreateModeCluster values. - */ - public static Collection values() { - return values(CreateModeCluster.class); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/CreateModePool.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/CreateModePool.java deleted file mode 100644 index fd3d827060482..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/CreateModePool.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * The mode to create a new HorizonDB cluster. - */ -public final class CreateModePool extends ExpandableStringEnum { - /** - * Create a new pool. - */ - public static final CreateModePool CREATE = fromString("Create"); - - /** - * Update an existing pool. - */ - public static final CreateModePool UPDATE = fromString("Update"); - - /** - * Creates a new instance of CreateModePool value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public CreateModePool() { - } - - /** - * Creates or finds a CreateModePool from its string representation. - * - * @param name a name to look for. - * @return the corresponding CreateModePool. - */ - public static CreateModePool fromString(String name) { - return fromString(name, CreateModePool.class); - } - - /** - * Gets known CreateModePool values. - * - * @return known CreateModePool values. - */ - public static Collection values() { - return values(CreateModePool.class); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/DefaultParameterGroup.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/DefaultParameterGroup.java new file mode 100644 index 0000000000000..b1d40dd506dd1 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/DefaultParameterGroup.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.horizondb.fluent.models.DefaultParameterGroupInner; + +/** + * An immutable client-side representation of DefaultParameterGroup. + */ +public interface DefaultParameterGroup { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + DefaultParameterGroupProperties properties(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the inner com.azure.resourcemanager.horizondb.fluent.models.DefaultParameterGroupInner object. + * + * @return the inner object. + */ + DefaultParameterGroupInner innerModel(); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/DefaultParameterGroupProperties.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/DefaultParameterGroupProperties.java new file mode 100644 index 0000000000000..1c6e20c3f6cd4 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/DefaultParameterGroupProperties.java @@ -0,0 +1,133 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Properties of a default parameter group. + */ +@Immutable +public final class DefaultParameterGroupProperties implements JsonSerializable { + /* + * The provisioning state of the default parameter group. + */ + private ProvisioningState provisioningState; + + /* + * Engine-defined parameters in the default parameter group. Service and other non-engine entries are excluded. + */ + private List parameters; + + /* + * Description of the default parameter group. + */ + private String description; + + /* + * PostgreSQL version for which this default parameter group is valid. + */ + private PostgreSqlVersion postgreSqlVersion; + + /** + * Creates an instance of DefaultParameterGroupProperties class. + */ + private DefaultParameterGroupProperties() { + } + + /** + * Get the provisioningState property: The provisioning state of the default parameter group. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * Get the parameters property: Engine-defined parameters in the default parameter group. Service and other + * non-engine entries are excluded. + * + * @return the parameters value. + */ + public List parameters() { + return this.parameters; + } + + /** + * Get the description property: Description of the default parameter group. + * + * @return the description value. + */ + public String description() { + return this.description; + } + + /** + * Get the postgreSqlVersion property: PostgreSQL version for which this default parameter group is valid. + * + * @return the postgreSqlVersion value. + */ + public PostgreSqlVersion postgreSqlVersion() { + return this.postgreSqlVersion; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("parameters", this.parameters, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("postgreSqlVersion", + this.postgreSqlVersion == null ? null : this.postgreSqlVersion.toString()); + jsonWriter.writeStringField("description", this.description); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DefaultParameterGroupProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DefaultParameterGroupProperties 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 DefaultParameterGroupProperties. + */ + public static DefaultParameterGroupProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DefaultParameterGroupProperties deserializedDefaultParameterGroupProperties + = new DefaultParameterGroupProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("parameters".equals(fieldName)) { + List parameters + = reader.readArray(reader1 -> ParameterProperties.fromJson(reader1)); + deserializedDefaultParameterGroupProperties.parameters = parameters; + } else if ("postgreSqlVersion".equals(fieldName)) { + deserializedDefaultParameterGroupProperties.postgreSqlVersion + = PostgreSqlVersion.fromString(reader.getString()); + } else if ("provisioningState".equals(fieldName)) { + deserializedDefaultParameterGroupProperties.provisioningState + = ProvisioningState.fromString(reader.getString()); + } else if ("description".equals(fieldName)) { + deserializedDefaultParameterGroupProperties.description = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedDefaultParameterGroupProperties; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/DefaultParameterGroups.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/DefaultParameterGroups.java new file mode 100644 index 0000000000000..addd2bc6c869d --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/DefaultParameterGroups.java @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of DefaultParameterGroups. + */ +public interface DefaultParameterGroups { + /** + * Lists default parameter groups available for a subscription in a specific region. The response contains at most + * one default parameter group for each PostgreSQL version. + * + * @param location The name of the Azure region. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DefaultParameterGroup list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable listBySubscriptionAndRegion(String location); + + /** + * Lists default parameter groups available for a subscription in a specific region. The response contains at most + * one default parameter group for each PostgreSQL version. + * + * @param location The name of the Azure region. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a DefaultParameterGroup list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable listBySubscriptionAndRegion(String location, Context context); + + /** + * Gets a default parameter group available for a subscription in a specific region. Each PostgreSQL version has at + * most one default parameter group in a location. + * + * @param location The name of the Azure region. + * @param name The name of the DefaultParameterGroup. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a default parameter group available for a subscription in a specific region along with {@link Response}. + */ + Response getWithResponse(String location, String name, Context context); + + /** + * Gets a default parameter group available for a subscription in a specific region. Each PostgreSQL version has at + * most one default parameter group in a location. + * + * @param location The name of the Azure region. + * @param name The name of the DefaultParameterGroup. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a default parameter group available for a subscription in a specific region. + */ + DefaultParameterGroup get(String location, String name); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Endpoint.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Endpoint.java new file mode 100644 index 0000000000000..624cf9b651460 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Endpoint.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.horizondb.fluent.models.EndpointInner; + +/** + * An immutable client-side representation of Endpoint. + */ +public interface Endpoint { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + EndpointProperties properties(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the inner com.azure.resourcemanager.horizondb.fluent.models.EndpointInner object. + * + * @return the inner object. + */ + EndpointInner innerModel(); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/EndpointProperties.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/EndpointProperties.java new file mode 100644 index 0000000000000..7f409ba70edeb --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/EndpointProperties.java @@ -0,0 +1,141 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Properties of a service-generated HorizonDB endpoint. + */ +@Immutable +public final class EndpointProperties implements JsonSerializable { + /* + * The scope of the endpoint. Cluster-scoped Endpoints provide the cluster connection, and Pool-scoped Endpoints + * provide read-only connections to eligible nodes in one pool. + */ + private EndpointScope scope; + + /* + * The Azure resource ID of the Endpoint's lifecycle owner. For Cluster scope, this identifies the parent Cluster + * with which the Endpoint is created and deleted. For Pool scope, this identifies the Pool with which the Endpoint + * is created and deleted; the Pool must be a child of the Endpoint's parent Cluster. + */ + private String associatedResourceId; + + /* + * The service-generated fully qualified domain name of the endpoint. A Cluster-scoped Endpoint uses + * ...horizondb.azure.com. A Pool-scoped Endpoint uses + * ....horizondb.azure.com. + */ + private String fullyQualifiedDomainName; + + /* + * The routing role of the endpoint. A Cluster-scoped Endpoint normally has the ReadWrite role. Pool-scoped + * Endpoints have the ReadOnly role and route only to allocated nodes in the associated Pool that are not currently + * playing the read-write role. A Pool-scoped ReadOnly Endpoint has no routing destination unless at least one such + * node exists, including when the Pool is Stopped, has zero allocated nodes, or has only one allocated node and + * that node is playing the read-write role. + */ + private EndpointRole role; + + /** + * Creates an instance of EndpointProperties class. + */ + private EndpointProperties() { + } + + /** + * Get the scope property: The scope of the endpoint. Cluster-scoped Endpoints provide the cluster connection, and + * Pool-scoped Endpoints provide read-only connections to eligible nodes in one pool. + * + * @return the scope value. + */ + public EndpointScope scope() { + return this.scope; + } + + /** + * Get the associatedResourceId property: The Azure resource ID of the Endpoint's lifecycle owner. For Cluster + * scope, this identifies the parent Cluster with which the Endpoint is created and deleted. For Pool scope, this + * identifies the Pool with which the Endpoint is created and deleted; the Pool must be a child of the Endpoint's + * parent Cluster. + * + * @return the associatedResourceId value. + */ + public String associatedResourceId() { + return this.associatedResourceId; + } + + /** + * Get the fullyQualifiedDomainName property: The service-generated fully qualified domain name of the endpoint. A + * Cluster-scoped Endpoint uses <cluster>.<clusterid>.<region>.horizondb.azure.com. A Pool-scoped + * Endpoint uses <poolid>.<cluster>.<clusterid>.<region>.horizondb.azure.com. + * + * @return the fullyQualifiedDomainName value. + */ + public String fullyQualifiedDomainName() { + return this.fullyQualifiedDomainName; + } + + /** + * Get the role property: The routing role of the endpoint. A Cluster-scoped Endpoint normally has the ReadWrite + * role. Pool-scoped Endpoints have the ReadOnly role and route only to allocated nodes in the associated Pool that + * are not currently playing the read-write role. A Pool-scoped ReadOnly Endpoint has no routing destination unless + * at least one such node exists, including when the Pool is Stopped, has zero allocated nodes, or has only one + * allocated node and that node is playing the read-write role. + * + * @return the role value. + */ + public EndpointRole role() { + return this.role; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of EndpointProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of EndpointProperties 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 EndpointProperties. + */ + public static EndpointProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + EndpointProperties deserializedEndpointProperties = new EndpointProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("scope".equals(fieldName)) { + deserializedEndpointProperties.scope = EndpointScope.fromString(reader.getString()); + } else if ("associatedResourceId".equals(fieldName)) { + deserializedEndpointProperties.associatedResourceId = reader.getString(); + } else if ("fullyQualifiedDomainName".equals(fieldName)) { + deserializedEndpointProperties.fullyQualifiedDomainName = reader.getString(); + } else if ("role".equals(fieldName)) { + deserializedEndpointProperties.role = EndpointRole.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedEndpointProperties; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/EndpointRole.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/EndpointRole.java new file mode 100644 index 0000000000000..1fb0f70a4b037 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/EndpointRole.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Role of the endpoint. + */ +public final class EndpointRole extends ExpandableStringEnum { + /** + * The Endpoint accepts read-only traffic. This applies to Pool-scoped Endpoints and may apply to other endpoint + * scenarios introduced by later API versions. + */ + public static final EndpointRole READ_ONLY = fromString("ReadOnly"); + + /** + * The Cluster-scoped Endpoint accepts read and write traffic. + */ + public static final EndpointRole READ_WRITE = fromString("ReadWrite"); + + /** + * Creates a new instance of EndpointRole value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public EndpointRole() { + } + + /** + * Creates or finds a EndpointRole from its string representation. + * + * @param name a name to look for. + * @return the corresponding EndpointRole. + */ + public static EndpointRole fromString(String name) { + return fromString(name, EndpointRole.class); + } + + /** + * Gets known EndpointRole values. + * + * @return known EndpointRole values. + */ + public static Collection values() { + return values(EndpointRole.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/EndpointScope.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/EndpointScope.java new file mode 100644 index 0000000000000..11939d0e14501 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/EndpointScope.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The scope of a HorizonDB endpoint. + */ +public final class EndpointScope extends ExpandableStringEnum { + /** + * The Endpoint is associated with its parent Cluster. + */ + public static final EndpointScope CLUSTER = fromString("Cluster"); + + /** + * The Endpoint is associated with a Pool under its parent Cluster and has the ReadOnly role. + */ + public static final EndpointScope POOL = fromString("Pool"); + + /** + * Creates a new instance of EndpointScope value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public EndpointScope() { + } + + /** + * Creates or finds a EndpointScope from its string representation. + * + * @param name a name to look for. + * @return the corresponding EndpointScope. + */ + public static EndpointScope fromString(String name) { + return fromString(name, EndpointScope.class); + } + + /** + * Gets known EndpointScope values. + * + * @return known EndpointScope values. + */ + public static Collection values() { + return values(EndpointScope.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Endpoints.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Endpoints.java new file mode 100644 index 0000000000000..de4b38860f777 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Endpoints.java @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of Endpoints. + */ +public interface Endpoints { + /** + * Gets information about a service-generated HorizonDB Cluster- or Pool-scoped Endpoint. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param endpointName The platform-assigned name of the HorizonDB endpoint. A Cluster-scoped ReadWrite Endpoint has + * exactly the same name as its associated Cluster. A Pool-scoped Endpoint has exactly the same name as its + * associated Pool. + * @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 information about a service-generated HorizonDB Cluster- or Pool-scoped Endpoint along with + * {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String clusterName, String endpointName, + Context context); + + /** + * Gets information about a service-generated HorizonDB Cluster- or Pool-scoped Endpoint. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param endpointName The platform-assigned name of the HorizonDB endpoint. A Cluster-scoped ReadWrite Endpoint has + * exactly the same name as its associated Cluster. A Pool-scoped Endpoint has exactly the same name as its + * associated Pool. + * @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 information about a service-generated HorizonDB Cluster- or Pool-scoped Endpoint. + */ + Endpoint get(String resourceGroupName, String clusterName, String endpointName); + + /** + * Lists the service-generated Endpoints in a cluster. The collection contains the Cluster-scoped Endpoint named + * cluster and one Pool-scoped Endpoint for each pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Endpoint list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String clusterName); + + /** + * Lists the service-generated Endpoints in a cluster. The collection contains the Cluster-scoped Endpoint named + * cluster and one Pool-scoped Endpoint for each pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Endpoint list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String clusterName, Context context); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/FabricDestinationDetails.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/FabricDestinationDetails.java new file mode 100644 index 0000000000000..3c20cd9f90419 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/FabricDestinationDetails.java @@ -0,0 +1,122 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Settings for a Microsoft Fabric destination. + */ +@Fluent +public final class FabricDestinationDetails extends ChangeDataCaptureDestinationDetails { + /* + * The destination family. + */ + private ChangeDataCaptureDestinationType destinationType = ChangeDataCaptureDestinationType.FABRIC; + + /* + * Specifies the Microsoft Fabric native destination protocol. + */ + private final ChangeDataCaptureProtocol protocol = ChangeDataCaptureProtocol.NATIVE; + + /* + * The opaque identifier of the Microsoft Fabric workspace that owns the destination artifact. + */ + private String workspaceId; + + /** + * Creates an instance of FabricDestinationDetails class. + */ + public FabricDestinationDetails() { + } + + /** + * Get the destinationType property: The destination family. + * + * @return the destinationType value. + */ + @Override + public ChangeDataCaptureDestinationType destinationType() { + return this.destinationType; + } + + /** + * Get the protocol property: Specifies the Microsoft Fabric native destination protocol. + * + * @return the protocol value. + */ + public ChangeDataCaptureProtocol protocol() { + return this.protocol; + } + + /** + * Get the workspaceId property: The opaque identifier of the Microsoft Fabric workspace that owns the destination + * artifact. + * + * @return the workspaceId value. + */ + public String workspaceId() { + return this.workspaceId; + } + + /** + * Set the workspaceId property: The opaque identifier of the Microsoft Fabric workspace that owns the destination + * artifact. + * + * @param workspaceId the workspaceId value to set. + * @return the FabricDestinationDetails object itself. + */ + public FabricDestinationDetails withWorkspaceId(String workspaceId) { + this.workspaceId = workspaceId; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("protocol", this.protocol == null ? null : this.protocol.toString()); + jsonWriter.writeStringField("workspaceId", this.workspaceId); + jsonWriter.writeStringField("destinationType", + this.destinationType == null ? null : this.destinationType.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of FabricDestinationDetails from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of FabricDestinationDetails 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 FabricDestinationDetails. + */ + public static FabricDestinationDetails fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + FabricDestinationDetails deserializedFabricDestinationDetails = new FabricDestinationDetails(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("workspaceId".equals(fieldName)) { + deserializedFabricDestinationDetails.workspaceId = reader.getString(); + } else if ("destinationType".equals(fieldName)) { + deserializedFabricDestinationDetails.destinationType + = ChangeDataCaptureDestinationType.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedFabricDestinationDetails; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/FirewallRule.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/FirewallRule.java new file mode 100644 index 0000000000000..54cec5e55e1ed --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/FirewallRule.java @@ -0,0 +1,138 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.horizondb.fluent.models.FirewallRuleInner; + +/** + * An immutable client-side representation of FirewallRule. + */ +public interface FirewallRule { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + FirewallRuleProperties properties(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the inner com.azure.resourcemanager.horizondb.fluent.models.FirewallRuleInner object. + * + * @return the inner object. + */ + FirewallRuleInner innerModel(); + + /** + * The entirety of the FirewallRule definition. + */ + interface Definition + extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { + } + + /** + * The FirewallRule definition stages. + */ + interface DefinitionStages { + /** + * The first stage of the FirewallRule definition. + */ + interface Blank extends WithParentResource { + } + + /** + * The stage of the FirewallRule definition allowing to specify parent resource. + */ + interface WithParentResource { + /** + * Specifies resourceGroupName, clusterName, poolName. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @return the next definition stage. + */ + WithCreate withExistingPool(String resourceGroupName, String clusterName, String poolName); + } + + /** + * The stage of the FirewallRule definition which contains all the minimum required properties for the resource + * to be created, but also allows for any other optional properties to be specified. + */ + interface WithCreate extends DefinitionStages.WithProperties { + /** + * Executes the create request. + * + * @return the created resource. + */ + FirewallRule create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + FirewallRule create(Context context); + } + + /** + * The stage of the FirewallRule definition allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: The resource-specific properties for this resource.. + * + * @param properties The resource-specific properties for this resource. + * @return the next definition stage. + */ + WithCreate withProperties(FirewallRuleProperties properties); + } + } + + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + FirewallRule refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + FirewallRule refresh(Context context); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbFirewallRuleProperties.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/FirewallRuleProperties.java similarity index 57% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbFirewallRuleProperties.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/FirewallRuleProperties.java index fb9663944a977..2ff43b8d9b589 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbFirewallRuleProperties.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/FirewallRuleProperties.java @@ -15,19 +15,20 @@ * Properties of a HorizonDB firewall rule. */ @Fluent -public final class HorizonDbFirewallRuleProperties implements JsonSerializable { +public final class FirewallRuleProperties implements JsonSerializable { /* - * The start IP address of the firewall rule (IPv4). + * The start IPv4 address of the firewall rule in dotted-decimal notation. */ private String startIpAddress; /* - * The end IP address of the firewall rule (IPv4). + * The end IPv4 address of the firewall rule in dotted-decimal notation. This address must be numerically greater + * than or equal to startIpAddress. */ private String endIpAddress; /* - * The description of the HorizonDB firewall rule. + * The description of the HorizonDB firewall rule. The maximum length is 1024 characters. */ private String description; @@ -37,13 +38,13 @@ public final class HorizonDbFirewallRuleProperties implements JsonSerializable { - HorizonDbFirewallRuleProperties deserializedHorizonDbFirewallRuleProperties - = new HorizonDbFirewallRuleProperties(); + FirewallRuleProperties deserializedFirewallRuleProperties = new FirewallRuleProperties(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); if ("startIpAddress".equals(fieldName)) { - deserializedHorizonDbFirewallRuleProperties.startIpAddress = reader.getString(); + deserializedFirewallRuleProperties.startIpAddress = reader.getString(); } else if ("endIpAddress".equals(fieldName)) { - deserializedHorizonDbFirewallRuleProperties.endIpAddress = reader.getString(); + deserializedFirewallRuleProperties.endIpAddress = reader.getString(); } else if ("description".equals(fieldName)) { - deserializedHorizonDbFirewallRuleProperties.description = reader.getString(); + deserializedFirewallRuleProperties.description = reader.getString(); } else if ("provisioningState".equals(fieldName)) { - deserializedHorizonDbFirewallRuleProperties.provisioningState + deserializedFirewallRuleProperties.provisioningState = ProvisioningState.fromString(reader.getString()); } else { reader.skipChildren(); } } - return deserializedHorizonDbFirewallRuleProperties; + return deserializedFirewallRuleProperties; }); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbFirewallRules.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/FirewallRules.java similarity index 73% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbFirewallRules.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/FirewallRules.java index d96a2a27d75c2..cd192589ebe8a 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbFirewallRules.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/FirewallRules.java @@ -9,38 +9,38 @@ import com.azure.core.util.Context; /** - * Resource collection API of HorizonDbFirewallRules. + * Resource collection API of FirewallRules. */ -public interface HorizonDbFirewallRules { +public interface FirewallRules { /** - * Gets information about a HorizonDB firewall rule. + * Gets information about a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @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 information about a HorizonDB firewall rule along with {@link Response}. + * @return information about a HorizonDB pool firewall rule along with {@link Response}. */ - Response getWithResponse(String resourceGroupName, String clusterName, String poolName, + Response getWithResponse(String resourceGroupName, String clusterName, String poolName, String firewallRuleName, Context context); /** - * Gets information about a HorizonDB firewall rule. + * Gets information about a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @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 information about a HorizonDB firewall rule. + * @return information about a HorizonDB pool firewall rule. */ - HorizonDbFirewallRule get(String resourceGroupName, String clusterName, String poolName, String firewallRuleName); + FirewallRule get(String resourceGroupName, String clusterName, String poolName, String firewallRuleName); /** * Lists all HorizonDB firewall rules in a pool. @@ -51,9 +51,9 @@ Response getWithResponse(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbFirewallRule list operation as paginated response with {@link PagedIterable}. + * @return the response of a FirewallRule list operation as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceGroupName, String clusterName, String poolName); + PagedIterable list(String resourceGroupName, String clusterName, String poolName); /** * Lists all HorizonDB firewall rules in a pool. @@ -65,18 +65,17 @@ Response getWithResponse(String resourceGroupName, String * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbFirewallRule list operation as paginated response with {@link PagedIterable}. + * @return the response of a FirewallRule list operation as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceGroupName, String clusterName, String poolName, - Context context); + PagedIterable list(String resourceGroupName, String clusterName, String poolName, Context context); /** - * Deletes a HorizonDB firewall rule. + * Deletes a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @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. @@ -84,12 +83,12 @@ PagedIterable list(String resourceGroupName, String clust void delete(String resourceGroupName, String clusterName, String poolName, String firewallRuleName); /** - * Deletes a HorizonDB firewall rule. + * Deletes a HorizonDB pool firewall rule. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. - * @param firewallRuleName The name of the HorizonDB firewall rule. + * @param firewallRuleName The name of the HorizonDB pool firewall rule. * @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. @@ -99,30 +98,30 @@ void delete(String resourceGroupName, String clusterName, String poolName, Strin Context context); /** - * Gets information about a HorizonDB firewall rule. + * Gets information about a HorizonDB pool firewall rule. * * @param id the resource ID. * @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 information about a HorizonDB firewall rule along with {@link Response}. + * @return information about a HorizonDB pool firewall rule along with {@link Response}. */ - HorizonDbFirewallRule getById(String id); + FirewallRule getById(String id); /** - * Gets information about a HorizonDB firewall rule. + * Gets information about a HorizonDB pool firewall rule. * * @param id the resource ID. * @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 information about a HorizonDB firewall rule along with {@link Response}. + * @return information about a HorizonDB pool firewall rule along with {@link Response}. */ - Response getByIdWithResponse(String id, Context context); + Response getByIdWithResponse(String id, Context context); /** - * Deletes a HorizonDB firewall rule. + * Deletes a HorizonDB pool firewall rule. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -132,7 +131,7 @@ void delete(String resourceGroupName, String clusterName, String poolName, Strin void deleteById(String id); /** - * Deletes a HorizonDB firewall rule. + * Deletes a HorizonDB pool firewall rule. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -143,10 +142,10 @@ void delete(String resourceGroupName, String clusterName, String poolName, Strin void deleteByIdWithResponse(String id, Context context); /** - * Begins definition for a new HorizonDbFirewallRule resource. + * Begins definition for a new FirewallRule resource. * * @param name resource name. - * @return the first stage of the new HorizonDbFirewallRule definition. + * @return the first stage of the new FirewallRule definition. */ - HorizonDbFirewallRule.DefinitionStages.Blank define(String name); + FirewallRule.DefinitionStages.Blank define(String name); } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/GeoRedundancyState.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/GeoRedundancyState.java new file mode 100644 index 0000000000000..6271b10107b5d --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/GeoRedundancyState.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Indicates the geo-redundancy state. + */ +public final class GeoRedundancyState extends ExpandableStringEnum { + /** + * Geo-redundancy is enabled. This value is not supported when dataEncryption.type is AzureKeyVault. + */ + public static final GeoRedundancyState ENABLED = fromString("Enabled"); + + /** + * Geo-redundancy is disabled. + */ + public static final GeoRedundancyState DISABLED = fromString("Disabled"); + + /** + * Creates a new instance of GeoRedundancyState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public GeoRedundancyState() { + } + + /** + * Creates or finds a GeoRedundancyState from its string representation. + * + * @param name a name to look for. + * @return the corresponding GeoRedundancyState. + */ + public static GeoRedundancyState fromString(String name) { + return fromString(name, GeoRedundancyState.class); + } + + /** + * Gets known GeoRedundancyState values. + * + * @return known GeoRedundancyState values. + */ + public static Collection values() { + return values(GeoRedundancyState.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbAdministrator.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbAdministrator.java deleted file mode 100644 index a22ddc0656121..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbAdministrator.java +++ /dev/null @@ -1,189 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.models; - -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbAdministratorInner; - -/** - * An immutable client-side representation of HorizonDbAdministrator. - */ -public interface HorizonDbAdministrator { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the name property: The name of the resource. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The type of the resource. - * - * @return the type value. - */ - String type(); - - /** - * Gets the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - HorizonDbAdministratorProperties properties(); - - /** - * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - SystemData systemData(); - - /** - * Gets the name of the resource group. - * - * @return the name of the resource group. - */ - String resourceGroupName(); - - /** - * Gets the inner com.azure.resourcemanager.horizondb.fluent.models.HorizonDbAdministratorInner object. - * - * @return the inner object. - */ - HorizonDbAdministratorInner innerModel(); - - /** - * The entirety of the HorizonDbAdministrator definition. - */ - interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, - DefinitionStages.WithProperties, DefinitionStages.WithCreate { - } - - /** - * The HorizonDbAdministrator definition stages. - */ - interface DefinitionStages { - /** - * The first stage of the HorizonDbAdministrator definition. - */ - interface Blank extends WithParentResource { - } - - /** - * The stage of the HorizonDbAdministrator definition allowing to specify parent resource. - */ - interface WithParentResource { - /** - * Specifies resourceGroupName, clusterName. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @return the next definition stage. - */ - WithProperties withExistingCluster(String resourceGroupName, String clusterName); - } - - /** - * The stage of the HorizonDbAdministrator definition allowing to specify properties. - */ - interface WithProperties { - /** - * Specifies the properties property: The properties for adding a HorizonDB administrator.. - * - * @param properties The properties for adding a HorizonDB administrator. - * @return the next definition stage. - */ - WithCreate withProperties(HorizonDbAdministratorPropertiesForAdd properties); - } - - /** - * The stage of the HorizonDbAdministrator definition which contains all the minimum required properties for the - * resource to be created, but also allows for any other optional properties to be specified. - */ - interface WithCreate { - /** - * Executes the create request. - * - * @return the created resource. - */ - HorizonDbAdministrator create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - HorizonDbAdministrator create(Context context); - } - } - - /** - * Begins update for the HorizonDbAdministrator resource. - * - * @return the stage of resource update. - */ - HorizonDbAdministrator.Update update(); - - /** - * The template for HorizonDbAdministrator update. - */ - interface Update extends UpdateStages.WithProperties { - /** - * Executes the update request. - * - * @return the updated resource. - */ - HorizonDbAdministrator apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - HorizonDbAdministrator apply(Context context); - } - - /** - * The HorizonDbAdministrator update stages. - */ - interface UpdateStages { - /** - * The stage of the HorizonDbAdministrator update allowing to specify properties. - */ - interface WithProperties { - /** - * Specifies the properties property: The properties for adding a HorizonDB administrator.. - * - * @param properties The properties for adding a HorizonDB administrator. - * @return the next definition stage. - */ - Update withProperties(HorizonDbAdministratorPropertiesForAdd properties); - } - } - - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - HorizonDbAdministrator refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - HorizonDbAdministrator refresh(Context context); -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbAdministratorAdd.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbAdministratorAdd.java deleted file mode 100644 index 403af356389f6..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbAdministratorAdd.java +++ /dev/null @@ -1,87 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.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; - -/** - * The request body for adding a HorizonDB administrator. - */ -@Fluent -public final class HorizonDbAdministratorAdd implements JsonSerializable { - /* - * The properties for adding a HorizonDB administrator. - */ - private HorizonDbAdministratorPropertiesForAdd properties; - - /** - * Creates an instance of HorizonDbAdministratorAdd class. - */ - public HorizonDbAdministratorAdd() { - } - - /** - * Get the properties property: The properties for adding a HorizonDB administrator. - * - * @return the properties value. - */ - public HorizonDbAdministratorPropertiesForAdd properties() { - return this.properties; - } - - /** - * Set the properties property: The properties for adding a HorizonDB administrator. - * - * @param properties the properties value to set. - * @return the HorizonDbAdministratorAdd object itself. - */ - public HorizonDbAdministratorAdd withProperties(HorizonDbAdministratorPropertiesForAdd properties) { - this.properties = properties; - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("properties", this.properties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of HorizonDbAdministratorAdd from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of HorizonDbAdministratorAdd 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 HorizonDbAdministratorAdd. - */ - public static HorizonDbAdministratorAdd fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - HorizonDbAdministratorAdd deserializedHorizonDbAdministratorAdd = new HorizonDbAdministratorAdd(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("properties".equals(fieldName)) { - deserializedHorizonDbAdministratorAdd.properties - = HorizonDbAdministratorPropertiesForAdd.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedHorizonDbAdministratorAdd; - }); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbAdministratorProperties.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbAdministratorProperties.java deleted file mode 100644 index 6af1101ddeae8..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbAdministratorProperties.java +++ /dev/null @@ -1,150 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.models; - -import com.azure.core.annotation.Immutable; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Properties of a HorizonDB administrator. - */ -@Immutable -public final class HorizonDbAdministratorProperties implements JsonSerializable { - /* - * The display name or UPN of the Entra ID principal. For users, typically the User Principal Name (e.g., - * admin@contoso.com). For groups, the group display name. For service principals, the application display name. - */ - private String principalName; - - /* - * The type of the Entra ID principal. - */ - private PrincipalTypes principalType; - - /* - * The Entra ID object identifier of the principal (an RFC 4122 GUID). On PUT requests, this value comes from the - * URI path parameter. - */ - private String objectId; - - /* - * The Entra ID tenant identifier (an RFC 4122 GUID). If omitted, defaults to the tenant of the subscription. - */ - private String tenantId; - - /* - * The provisioning state of the administrator. - */ - private ProvisioningState provisioningState; - - /** - * Creates an instance of HorizonDbAdministratorProperties class. - */ - private HorizonDbAdministratorProperties() { - } - - /** - * Get the principalName property: The display name or UPN of the Entra ID principal. For users, typically the User - * Principal Name (e.g., admin@contoso.com). For groups, the group display name. For service principals, the - * application display name. - * - * @return the principalName value. - */ - public String principalName() { - return this.principalName; - } - - /** - * Get the principalType property: The type of the Entra ID principal. - * - * @return the principalType value. - */ - public PrincipalTypes principalType() { - return this.principalType; - } - - /** - * Get the objectId property: The Entra ID object identifier of the principal (an RFC 4122 GUID). On PUT requests, - * this value comes from the URI path parameter. - * - * @return the objectId value. - */ - public String objectId() { - return this.objectId; - } - - /** - * Get the tenantId property: The Entra ID tenant identifier (an RFC 4122 GUID). If omitted, defaults to the tenant - * of the subscription. - * - * @return the tenantId value. - */ - public String tenantId() { - return this.tenantId; - } - - /** - * Get the provisioningState property: The provisioning state of the administrator. - * - * @return the provisioningState value. - */ - public ProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("principalName", this.principalName); - jsonWriter.writeStringField("principalType", this.principalType == null ? null : this.principalType.toString()); - jsonWriter.writeStringField("tenantId", this.tenantId); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of HorizonDbAdministratorProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of HorizonDbAdministratorProperties 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 HorizonDbAdministratorProperties. - */ - public static HorizonDbAdministratorProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - HorizonDbAdministratorProperties deserializedHorizonDbAdministratorProperties - = new HorizonDbAdministratorProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("principalName".equals(fieldName)) { - deserializedHorizonDbAdministratorProperties.principalName = reader.getString(); - } else if ("principalType".equals(fieldName)) { - deserializedHorizonDbAdministratorProperties.principalType - = PrincipalTypes.fromString(reader.getString()); - } else if ("objectId".equals(fieldName)) { - deserializedHorizonDbAdministratorProperties.objectId = reader.getString(); - } else if ("tenantId".equals(fieldName)) { - deserializedHorizonDbAdministratorProperties.tenantId = reader.getString(); - } else if ("provisioningState".equals(fieldName)) { - deserializedHorizonDbAdministratorProperties.provisioningState - = ProvisioningState.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedHorizonDbAdministratorProperties; - }); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbAdministratorPropertiesForAdd.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbAdministratorPropertiesForAdd.java deleted file mode 100644 index d275288e61a41..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbAdministratorPropertiesForAdd.java +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.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; - -/** - * The properties for adding a HorizonDB administrator. - */ -@Fluent -public final class HorizonDbAdministratorPropertiesForAdd - implements JsonSerializable { - /* - * The display name or UPN of the Entra ID principal. For users, typically the User Principal Name (e.g., - * admin@contoso.com). For groups, the group display name. For service principals, the application display name. - */ - private String principalName; - - /* - * The type of the Entra ID principal. - */ - private PrincipalTypes principalType; - - /* - * The Entra ID tenant identifier (an RFC 4122 GUID). If omitted, defaults to the tenant of the subscription. - */ - private String tenantId; - - /** - * Creates an instance of HorizonDbAdministratorPropertiesForAdd class. - */ - public HorizonDbAdministratorPropertiesForAdd() { - } - - /** - * Get the principalName property: The display name or UPN of the Entra ID principal. For users, typically the User - * Principal Name (e.g., admin@contoso.com). For groups, the group display name. For service principals, the - * application display name. - * - * @return the principalName value. - */ - public String principalName() { - return this.principalName; - } - - /** - * Set the principalName property: The display name or UPN of the Entra ID principal. For users, typically the User - * Principal Name (e.g., admin@contoso.com). For groups, the group display name. For service principals, the - * application display name. - * - * @param principalName the principalName value to set. - * @return the HorizonDbAdministratorPropertiesForAdd object itself. - */ - public HorizonDbAdministratorPropertiesForAdd withPrincipalName(String principalName) { - this.principalName = principalName; - return this; - } - - /** - * Get the principalType property: The type of the Entra ID principal. - * - * @return the principalType value. - */ - public PrincipalTypes principalType() { - return this.principalType; - } - - /** - * Set the principalType property: The type of the Entra ID principal. - * - * @param principalType the principalType value to set. - * @return the HorizonDbAdministratorPropertiesForAdd object itself. - */ - public HorizonDbAdministratorPropertiesForAdd withPrincipalType(PrincipalTypes principalType) { - this.principalType = principalType; - return this; - } - - /** - * Get the tenantId property: The Entra ID tenant identifier (an RFC 4122 GUID). If omitted, defaults to the tenant - * of the subscription. - * - * @return the tenantId value. - */ - public String tenantId() { - return this.tenantId; - } - - /** - * Set the tenantId property: The Entra ID tenant identifier (an RFC 4122 GUID). If omitted, defaults to the tenant - * of the subscription. - * - * @param tenantId the tenantId value to set. - * @return the HorizonDbAdministratorPropertiesForAdd object itself. - */ - public HorizonDbAdministratorPropertiesForAdd withTenantId(String tenantId) { - this.tenantId = tenantId; - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("principalName", this.principalName); - jsonWriter.writeStringField("principalType", this.principalType == null ? null : this.principalType.toString()); - jsonWriter.writeStringField("tenantId", this.tenantId); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of HorizonDbAdministratorPropertiesForAdd from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of HorizonDbAdministratorPropertiesForAdd 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 HorizonDbAdministratorPropertiesForAdd. - */ - public static HorizonDbAdministratorPropertiesForAdd fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - HorizonDbAdministratorPropertiesForAdd deserializedHorizonDbAdministratorPropertiesForAdd - = new HorizonDbAdministratorPropertiesForAdd(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("principalName".equals(fieldName)) { - deserializedHorizonDbAdministratorPropertiesForAdd.principalName = reader.getString(); - } else if ("principalType".equals(fieldName)) { - deserializedHorizonDbAdministratorPropertiesForAdd.principalType - = PrincipalTypes.fromString(reader.getString()); - } else if ("tenantId".equals(fieldName)) { - deserializedHorizonDbAdministratorPropertiesForAdd.tenantId = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedHorizonDbAdministratorPropertiesForAdd; - }); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterAuthConfig.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterAuthConfig.java deleted file mode 100644 index 13a1757c69347..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterAuthConfig.java +++ /dev/null @@ -1,143 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.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; - -/** - * Authentication configuration for a HorizonDB cluster. - */ -@Fluent -public final class HorizonDbClusterAuthConfig implements JsonSerializable { - /* - * Indicates whether Microsoft Entra ID authentication is enabled or disabled. - */ - private AuthenticationState entraIdAuth; - - /* - * The Microsoft Entra tenant ID. - */ - private String tenantId; - - /* - * Indicates whether password authentication is enabled or disabled. - */ - private AuthenticationState passwordAuth; - - /** - * Creates an instance of HorizonDbClusterAuthConfig class. - */ - public HorizonDbClusterAuthConfig() { - } - - /** - * Get the entraIdAuth property: Indicates whether Microsoft Entra ID authentication is enabled or disabled. - * - * @return the entraIdAuth value. - */ - public AuthenticationState entraIdAuth() { - return this.entraIdAuth; - } - - /** - * Set the entraIdAuth property: Indicates whether Microsoft Entra ID authentication is enabled or disabled. - * - * @param entraIdAuth the entraIdAuth value to set. - * @return the HorizonDbClusterAuthConfig object itself. - */ - public HorizonDbClusterAuthConfig withEntraIdAuth(AuthenticationState entraIdAuth) { - this.entraIdAuth = entraIdAuth; - return this; - } - - /** - * Get the tenantId property: The Microsoft Entra tenant ID. - * - * @return the tenantId value. - */ - public String tenantId() { - return this.tenantId; - } - - /** - * Set the tenantId property: The Microsoft Entra tenant ID. - * - * @param tenantId the tenantId value to set. - * @return the HorizonDbClusterAuthConfig object itself. - */ - public HorizonDbClusterAuthConfig withTenantId(String tenantId) { - this.tenantId = tenantId; - return this; - } - - /** - * Get the passwordAuth property: Indicates whether password authentication is enabled or disabled. - * - * @return the passwordAuth value. - */ - public AuthenticationState passwordAuth() { - return this.passwordAuth; - } - - /** - * Set the passwordAuth property: Indicates whether password authentication is enabled or disabled. - * - * @param passwordAuth the passwordAuth value to set. - * @return the HorizonDbClusterAuthConfig object itself. - */ - public HorizonDbClusterAuthConfig withPasswordAuth(AuthenticationState passwordAuth) { - this.passwordAuth = passwordAuth; - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("entraIdAuth", this.entraIdAuth == null ? null : this.entraIdAuth.toString()); - jsonWriter.writeStringField("tenantId", this.tenantId); - jsonWriter.writeStringField("passwordAuth", this.passwordAuth == null ? null : this.passwordAuth.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of HorizonDbClusterAuthConfig from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of HorizonDbClusterAuthConfig 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 HorizonDbClusterAuthConfig. - */ - public static HorizonDbClusterAuthConfig fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - HorizonDbClusterAuthConfig deserializedHorizonDbClusterAuthConfig = new HorizonDbClusterAuthConfig(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("entraIdAuth".equals(fieldName)) { - deserializedHorizonDbClusterAuthConfig.entraIdAuth - = AuthenticationState.fromString(reader.getString()); - } else if ("tenantId".equals(fieldName)) { - deserializedHorizonDbClusterAuthConfig.tenantId = reader.getString(); - } else if ("passwordAuth".equals(fieldName)) { - deserializedHorizonDbClusterAuthConfig.passwordAuth - = AuthenticationState.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedHorizonDbClusterAuthConfig; - }); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterDataEncryption.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterDataEncryption.java new file mode 100644 index 0000000000000..782177e3a6b25 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterDataEncryption.java @@ -0,0 +1,222 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.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; + +/** + * The Cluster-level data encryption configuration. The encryption type is selected at cluster creation; switching + * between SystemManaged and AzureKeyVault after creation is not supported. For AzureKeyVault encryption, primaryKeyUri + * and primaryUserAssignedIdentityId are required, and backup.geoRedundancy must be Disabled. Both primaryKeyUri and + * primaryUserAssignedIdentityId can be provided during initial cluster creation. For updates to an existing cluster + * through PUT or PATCH, only one of these properties can change per request, and that update must complete before + * submitting a separate update to change the other property. Customer-managed key identities must also be assigned to + * the Cluster through its top-level identity property. Only versionless Azure Key Vault key URIs are supported; key + * version paths are rejected. For SystemManaged encryption, key and identity properties must be omitted. + */ +@Fluent +public final class HorizonDbClusterDataEncryption implements JsonSerializable { + /* + * The type of data encryption used by the cluster. When the data encryption configuration is supplied during + * initial cluster creation, this property is required. For PUT updates of an existing cluster, this property may be + * omitted; if provided, it must match the existing encryption type. This value is selected at cluster creation and + * cannot later be changed from SystemManaged to AzureKeyVault or from AzureKeyVault to SystemManaged. + */ + private HorizonDbClusterDataEncryptionType type; + + /* + * The versionless Azure Key Vault key URI used to encrypt the cluster's primary storage. Key version paths are not + * supported. During initial cluster creation, this property can be provided together with + * primaryUserAssignedIdentityId. For updates to an existing cluster through PUT or PATCH, this property and + * primaryUserAssignedIdentityId cannot both change in the same request; the first update must complete before + * submitting a separate update for the other property. + */ + private String primaryKeyUri; + + /* + * The Azure resource ID of the user-assigned managed identity used to access the primary encryption key. The + * identity must also be assigned to the Cluster through its top-level identity property. During initial cluster + * creation, this property can be provided together with primaryKeyUri. For updates to an existing cluster through + * PUT or PATCH, this property and primaryKeyUri cannot both change in the same request; the first update must + * complete before submitting a separate update for the other property. + */ + private String primaryUserAssignedIdentityId; + + /* + * The validation status of the primary encryption key. This property is returned for AzureKeyVault encryption and + * is absent for SystemManaged encryption. + */ + private HorizonDbClusterEncryptionKeyStatus primaryEncryptionKeyStatus; + + /* + * The current version of the primary encryption key used by the cluster. This property is returned for + * AzureKeyVault encryption and is absent for SystemManaged encryption. + */ + private String primaryEncryptionKeyCurrentVersion; + + /** + * Creates an instance of HorizonDbClusterDataEncryption class. + */ + public HorizonDbClusterDataEncryption() { + } + + /** + * Get the type property: The type of data encryption used by the cluster. When the data encryption configuration is + * supplied during initial cluster creation, this property is required. For PUT updates of an existing cluster, this + * property may be omitted; if provided, it must match the existing encryption type. This value is selected at + * cluster creation and cannot later be changed from SystemManaged to AzureKeyVault or from AzureKeyVault to + * SystemManaged. + * + * @return the type value. + */ + public HorizonDbClusterDataEncryptionType type() { + return this.type; + } + + /** + * Set the type property: The type of data encryption used by the cluster. When the data encryption configuration is + * supplied during initial cluster creation, this property is required. For PUT updates of an existing cluster, this + * property may be omitted; if provided, it must match the existing encryption type. This value is selected at + * cluster creation and cannot later be changed from SystemManaged to AzureKeyVault or from AzureKeyVault to + * SystemManaged. + * + * @param type the type value to set. + * @return the HorizonDbClusterDataEncryption object itself. + */ + public HorizonDbClusterDataEncryption withType(HorizonDbClusterDataEncryptionType type) { + this.type = type; + return this; + } + + /** + * Get the primaryKeyUri property: The versionless Azure Key Vault key URI used to encrypt the cluster's primary + * storage. Key version paths are not supported. During initial cluster creation, this property can be provided + * together with primaryUserAssignedIdentityId. For updates to an existing cluster through PUT or PATCH, this + * property and primaryUserAssignedIdentityId cannot both change in the same request; the first update must complete + * before submitting a separate update for the other property. + * + * @return the primaryKeyUri value. + */ + public String primaryKeyUri() { + return this.primaryKeyUri; + } + + /** + * Set the primaryKeyUri property: The versionless Azure Key Vault key URI used to encrypt the cluster's primary + * storage. Key version paths are not supported. During initial cluster creation, this property can be provided + * together with primaryUserAssignedIdentityId. For updates to an existing cluster through PUT or PATCH, this + * property and primaryUserAssignedIdentityId cannot both change in the same request; the first update must complete + * before submitting a separate update for the other property. + * + * @param primaryKeyUri the primaryKeyUri value to set. + * @return the HorizonDbClusterDataEncryption object itself. + */ + public HorizonDbClusterDataEncryption withPrimaryKeyUri(String primaryKeyUri) { + this.primaryKeyUri = primaryKeyUri; + return this; + } + + /** + * Get the primaryUserAssignedIdentityId property: The Azure resource ID of the user-assigned managed identity used + * to access the primary encryption key. The identity must also be assigned to the Cluster through its top-level + * identity property. During initial cluster creation, this property can be provided together with primaryKeyUri. + * For updates to an existing cluster through PUT or PATCH, this property and primaryKeyUri cannot both change in + * the same request; the first update must complete before submitting a separate update for the other property. + * + * @return the primaryUserAssignedIdentityId value. + */ + public String primaryUserAssignedIdentityId() { + return this.primaryUserAssignedIdentityId; + } + + /** + * Set the primaryUserAssignedIdentityId property: The Azure resource ID of the user-assigned managed identity used + * to access the primary encryption key. The identity must also be assigned to the Cluster through its top-level + * identity property. During initial cluster creation, this property can be provided together with primaryKeyUri. + * For updates to an existing cluster through PUT or PATCH, this property and primaryKeyUri cannot both change in + * the same request; the first update must complete before submitting a separate update for the other property. + * + * @param primaryUserAssignedIdentityId the primaryUserAssignedIdentityId value to set. + * @return the HorizonDbClusterDataEncryption object itself. + */ + public HorizonDbClusterDataEncryption withPrimaryUserAssignedIdentityId(String primaryUserAssignedIdentityId) { + this.primaryUserAssignedIdentityId = primaryUserAssignedIdentityId; + return this; + } + + /** + * Get the primaryEncryptionKeyStatus property: The validation status of the primary encryption key. This property + * is returned for AzureKeyVault encryption and is absent for SystemManaged encryption. + * + * @return the primaryEncryptionKeyStatus value. + */ + public HorizonDbClusterEncryptionKeyStatus primaryEncryptionKeyStatus() { + return this.primaryEncryptionKeyStatus; + } + + /** + * Get the primaryEncryptionKeyCurrentVersion property: The current version of the primary encryption key used by + * the cluster. This property is returned for AzureKeyVault encryption and is absent for SystemManaged encryption. + * + * @return the primaryEncryptionKeyCurrentVersion value. + */ + public String primaryEncryptionKeyCurrentVersion() { + return this.primaryEncryptionKeyCurrentVersion; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeStringField("primaryKeyUri", this.primaryKeyUri); + jsonWriter.writeStringField("primaryUserAssignedIdentityId", this.primaryUserAssignedIdentityId); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of HorizonDbClusterDataEncryption from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of HorizonDbClusterDataEncryption 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 HorizonDbClusterDataEncryption. + */ + public static HorizonDbClusterDataEncryption fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + HorizonDbClusterDataEncryption deserializedHorizonDbClusterDataEncryption + = new HorizonDbClusterDataEncryption(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("type".equals(fieldName)) { + deserializedHorizonDbClusterDataEncryption.type + = HorizonDbClusterDataEncryptionType.fromString(reader.getString()); + } else if ("primaryKeyUri".equals(fieldName)) { + deserializedHorizonDbClusterDataEncryption.primaryKeyUri = reader.getString(); + } else if ("primaryUserAssignedIdentityId".equals(fieldName)) { + deserializedHorizonDbClusterDataEncryption.primaryUserAssignedIdentityId = reader.getString(); + } else if ("primaryEncryptionKeyStatus".equals(fieldName)) { + deserializedHorizonDbClusterDataEncryption.primaryEncryptionKeyStatus + = HorizonDbClusterEncryptionKeyStatus.fromString(reader.getString()); + } else if ("primaryEncryptionKeyCurrentVersion".equals(fieldName)) { + deserializedHorizonDbClusterDataEncryption.primaryEncryptionKeyCurrentVersion = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedHorizonDbClusterDataEncryption; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterDataEncryptionForPatchUpdate.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterDataEncryptionForPatchUpdate.java new file mode 100644 index 0000000000000..977fea26919fb --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterDataEncryptionForPatchUpdate.java @@ -0,0 +1,172 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.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; + +/** + * Properties for sparsely updating Cluster-level data encryption. Omitted properties preserve their current values. + * Updates can modify settings within the existing encryption type, such as the primary Azure Key Vault key URI, but + * switching between SystemManaged and AzureKeyVault after cluster creation is not supported. AzureKeyVault encryption + * is not supported when backup.geoRedundancy is Enabled. An update can change only one of primaryKeyUri or + * primaryUserAssignedIdentityId; that update must complete before submitting a separate update to change the other + * property. + */ +@Fluent +public final class HorizonDbClusterDataEncryptionForPatchUpdate + implements JsonSerializable { + /* + * The existing data encryption type used by the cluster. PATCH is a sparse update, so this property may be omitted. + * If provided, it must match the existing encryption type. This value cannot be changed from SystemManaged to + * AzureKeyVault or from AzureKeyVault to SystemManaged after cluster creation. + */ + private HorizonDbClusterDataEncryptionType type; + + /* + * The versionless Azure Key Vault key URI used to encrypt the cluster's primary storage. Key version paths are not + * supported. This property and primaryUserAssignedIdentityId cannot both change in the same update; the first + * update must complete before submitting a separate update for the other property. + */ + private String primaryKeyUri; + + /* + * The Azure resource ID of the user-assigned managed identity used to access the primary encryption key. The + * identity must also be assigned to the Cluster through its top-level identity property. This property and + * primaryKeyUri cannot both change in the same update; the first update must complete before submitting a separate + * update for the other property. + */ + private String primaryUserAssignedIdentityId; + + /** + * Creates an instance of HorizonDbClusterDataEncryptionForPatchUpdate class. + */ + public HorizonDbClusterDataEncryptionForPatchUpdate() { + } + + /** + * Get the type property: The existing data encryption type used by the cluster. PATCH is a sparse update, so this + * property may be omitted. If provided, it must match the existing encryption type. This value cannot be changed + * from SystemManaged to AzureKeyVault or from AzureKeyVault to SystemManaged after cluster creation. + * + * @return the type value. + */ + public HorizonDbClusterDataEncryptionType type() { + return this.type; + } + + /** + * Set the type property: The existing data encryption type used by the cluster. PATCH is a sparse update, so this + * property may be omitted. If provided, it must match the existing encryption type. This value cannot be changed + * from SystemManaged to AzureKeyVault or from AzureKeyVault to SystemManaged after cluster creation. + * + * @param type the type value to set. + * @return the HorizonDbClusterDataEncryptionForPatchUpdate object itself. + */ + public HorizonDbClusterDataEncryptionForPatchUpdate withType(HorizonDbClusterDataEncryptionType type) { + this.type = type; + return this; + } + + /** + * Get the primaryKeyUri property: The versionless Azure Key Vault key URI used to encrypt the cluster's primary + * storage. Key version paths are not supported. This property and primaryUserAssignedIdentityId cannot both change + * in the same update; the first update must complete before submitting a separate update for the other property. + * + * @return the primaryKeyUri value. + */ + public String primaryKeyUri() { + return this.primaryKeyUri; + } + + /** + * Set the primaryKeyUri property: The versionless Azure Key Vault key URI used to encrypt the cluster's primary + * storage. Key version paths are not supported. This property and primaryUserAssignedIdentityId cannot both change + * in the same update; the first update must complete before submitting a separate update for the other property. + * + * @param primaryKeyUri the primaryKeyUri value to set. + * @return the HorizonDbClusterDataEncryptionForPatchUpdate object itself. + */ + public HorizonDbClusterDataEncryptionForPatchUpdate withPrimaryKeyUri(String primaryKeyUri) { + this.primaryKeyUri = primaryKeyUri; + return this; + } + + /** + * Get the primaryUserAssignedIdentityId property: The Azure resource ID of the user-assigned managed identity used + * to access the primary encryption key. The identity must also be assigned to the Cluster through its top-level + * identity property. This property and primaryKeyUri cannot both change in the same update; the first update must + * complete before submitting a separate update for the other property. + * + * @return the primaryUserAssignedIdentityId value. + */ + public String primaryUserAssignedIdentityId() { + return this.primaryUserAssignedIdentityId; + } + + /** + * Set the primaryUserAssignedIdentityId property: The Azure resource ID of the user-assigned managed identity used + * to access the primary encryption key. The identity must also be assigned to the Cluster through its top-level + * identity property. This property and primaryKeyUri cannot both change in the same update; the first update must + * complete before submitting a separate update for the other property. + * + * @param primaryUserAssignedIdentityId the primaryUserAssignedIdentityId value to set. + * @return the HorizonDbClusterDataEncryptionForPatchUpdate object itself. + */ + public HorizonDbClusterDataEncryptionForPatchUpdate + withPrimaryUserAssignedIdentityId(String primaryUserAssignedIdentityId) { + this.primaryUserAssignedIdentityId = primaryUserAssignedIdentityId; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeStringField("primaryKeyUri", this.primaryKeyUri); + jsonWriter.writeStringField("primaryUserAssignedIdentityId", this.primaryUserAssignedIdentityId); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of HorizonDbClusterDataEncryptionForPatchUpdate from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of HorizonDbClusterDataEncryptionForPatchUpdate 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 HorizonDbClusterDataEncryptionForPatchUpdate. + */ + public static HorizonDbClusterDataEncryptionForPatchUpdate fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + HorizonDbClusterDataEncryptionForPatchUpdate deserializedHorizonDbClusterDataEncryptionForPatchUpdate + = new HorizonDbClusterDataEncryptionForPatchUpdate(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("type".equals(fieldName)) { + deserializedHorizonDbClusterDataEncryptionForPatchUpdate.type + = HorizonDbClusterDataEncryptionType.fromString(reader.getString()); + } else if ("primaryKeyUri".equals(fieldName)) { + deserializedHorizonDbClusterDataEncryptionForPatchUpdate.primaryKeyUri = reader.getString(); + } else if ("primaryUserAssignedIdentityId".equals(fieldName)) { + deserializedHorizonDbClusterDataEncryptionForPatchUpdate.primaryUserAssignedIdentityId + = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedHorizonDbClusterDataEncryptionForPatchUpdate; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterDataEncryptionType.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterDataEncryptionType.java new file mode 100644 index 0000000000000..f2186486c3fee --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterDataEncryptionType.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The type of data encryption used by a HorizonDB cluster. The type is selected at cluster creation; switching between + * SystemManaged and AzureKeyVault after creation is not supported. + */ +public final class HorizonDbClusterDataEncryptionType extends ExpandableStringEnum { + /** + * Data encryption is managed by Azure using platform-managed keys. + */ + public static final HorizonDbClusterDataEncryptionType SYSTEM_MANAGED = fromString("SystemManaged"); + + /** + * Data encryption uses customer-managed keys stored in Azure Key Vault. + */ + public static final HorizonDbClusterDataEncryptionType AZURE_KEY_VAULT = fromString("AzureKeyVault"); + + /** + * Creates a new instance of HorizonDbClusterDataEncryptionType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public HorizonDbClusterDataEncryptionType() { + } + + /** + * Creates or finds a HorizonDbClusterDataEncryptionType from its string representation. + * + * @param name a name to look for. + * @return the corresponding HorizonDbClusterDataEncryptionType. + */ + public static HorizonDbClusterDataEncryptionType fromString(String name) { + return fromString(name, HorizonDbClusterDataEncryptionType.class); + } + + /** + * Gets known HorizonDbClusterDataEncryptionType values. + * + * @return known HorizonDbClusterDataEncryptionType values. + */ + public static Collection values() { + return values(HorizonDbClusterDataEncryptionType.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterEncryptionKeyStatus.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterEncryptionKeyStatus.java new file mode 100644 index 0000000000000..b0e33263d784d --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterEncryptionKeyStatus.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The validation status of a customer-managed encryption key used by a HorizonDB cluster. + */ +public final class HorizonDbClusterEncryptionKeyStatus + extends ExpandableStringEnum { + /** + * The encryption key is valid and accessible to the configured user-assigned managed identity. + */ + public static final HorizonDbClusterEncryptionKeyStatus VALID = fromString("Valid"); + + /** + * The encryption key is invalid or inaccessible to the configured user-assigned managed identity. + */ + public static final HorizonDbClusterEncryptionKeyStatus INVALID = fromString("Invalid"); + + /** + * Creates a new instance of HorizonDbClusterEncryptionKeyStatus value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public HorizonDbClusterEncryptionKeyStatus() { + } + + /** + * Creates or finds a HorizonDbClusterEncryptionKeyStatus from its string representation. + * + * @param name a name to look for. + * @return the corresponding HorizonDbClusterEncryptionKeyStatus. + */ + public static HorizonDbClusterEncryptionKeyStatus fromString(String name) { + return fromString(name, HorizonDbClusterEncryptionKeyStatus.class); + } + + /** + * Gets known HorizonDbClusterEncryptionKeyStatus values. + * + * @return known HorizonDbClusterEncryptionKeyStatus values. + */ + public static Collection values() { + return values(HorizonDbClusterEncryptionKeyStatus.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterIdentityType.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterIdentityType.java new file mode 100644 index 0000000000000..bdc1151d652e5 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterIdentityType.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The managed identity types supported by a HorizonDB cluster. + */ +public final class HorizonDbClusterIdentityType extends ExpandableStringEnum { + /** + * No managed identity is assigned. Setting type to None clears all managed identity assignments. + */ + public static final HorizonDbClusterIdentityType NONE = fromString("None"); + + /** + * User-assigned managed identities are assigned. + */ + public static final HorizonDbClusterIdentityType USER_ASSIGNED = fromString("UserAssigned"); + + /** + * Creates a new instance of HorizonDbClusterIdentityType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public HorizonDbClusterIdentityType() { + } + + /** + * Creates or finds a HorizonDbClusterIdentityType from its string representation. + * + * @param name a name to look for. + * @return the corresponding HorizonDbClusterIdentityType. + */ + public static HorizonDbClusterIdentityType fromString(String name) { + return fromString(name, HorizonDbClusterIdentityType.class); + } + + /** + * Gets known HorizonDbClusterIdentityType values. + * + * @return known HorizonDbClusterIdentityType values. + */ + public static Collection values() { + return values(HorizonDbClusterIdentityType.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterManagedServiceIdentity.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterManagedServiceIdentity.java new file mode 100644 index 0000000000000..f6fc7637110fd --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterManagedServiceIdentity.java @@ -0,0 +1,146 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.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; + +/** + * The user-assigned managed identities assigned to a HorizonDB cluster. Omitting the entire top-level identity property + * from PUT or PATCH preserves all current assignments. When userAssignedIdentities is supplied, PUT replaces the + * complete set and PATCH merges the supplied entries with the existing set; a null PATCH entry removes that individual + * identity. Setting type to None clears all assignments. Removing an identity referenced by a change data capture + * identity assignment is rejected until the referencing assignment is deleted. + */ +@Fluent +public final class HorizonDbClusterManagedServiceIdentity + implements JsonSerializable { + /* + * The managed identity type assigned to the cluster. Setting this property to None clears all managed identity + * assignments. + */ + private HorizonDbClusterIdentityType type; + + /* + * The user-assigned managed identities associated with the cluster. When supplied on PUT, this dictionary replaces + * the complete set of assignments. When supplied on PATCH, entries are merged with the existing set and a null + * value removes the corresponding identity. Each dictionary key must be the full Azure resource ID of a + * Microsoft.ManagedIdentity/userAssignedIdentities resource. Non-null request values can be empty objects; response + * values contain the service-populated clientId and principalId. Assigning an identity does not grant it access to + * destination resources; required role assignments must be configured separately. + */ + private Map userAssignedIdentities; + + /** + * Creates an instance of HorizonDbClusterManagedServiceIdentity class. + */ + public HorizonDbClusterManagedServiceIdentity() { + } + + /** + * Get the type property: The managed identity type assigned to the cluster. Setting this property to None clears + * all managed identity assignments. + * + * @return the type value. + */ + public HorizonDbClusterIdentityType type() { + return this.type; + } + + /** + * Set the type property: The managed identity type assigned to the cluster. Setting this property to None clears + * all managed identity assignments. + * + * @param type the type value to set. + * @return the HorizonDbClusterManagedServiceIdentity object itself. + */ + public HorizonDbClusterManagedServiceIdentity withType(HorizonDbClusterIdentityType type) { + this.type = type; + return this; + } + + /** + * Get the userAssignedIdentities property: The user-assigned managed identities associated with the cluster. When + * supplied on PUT, this dictionary replaces the complete set of assignments. When supplied on PATCH, entries are + * merged with the existing set and a null value removes the corresponding identity. Each dictionary key must be the + * full Azure resource ID of a Microsoft.ManagedIdentity/userAssignedIdentities resource. Non-null request values + * can be empty objects; response values contain the service-populated clientId and principalId. Assigning an + * identity does not grant it access to destination resources; required role assignments must be configured + * separately. + * + * @return the userAssignedIdentities value. + */ + public Map userAssignedIdentities() { + return this.userAssignedIdentities; + } + + /** + * Set the userAssignedIdentities property: The user-assigned managed identities associated with the cluster. When + * supplied on PUT, this dictionary replaces the complete set of assignments. When supplied on PATCH, entries are + * merged with the existing set and a null value removes the corresponding identity. Each dictionary key must be the + * full Azure resource ID of a Microsoft.ManagedIdentity/userAssignedIdentities resource. Non-null request values + * can be empty objects; response values contain the service-populated clientId and principalId. Assigning an + * identity does not grant it access to destination resources; required role assignments must be configured + * separately. + * + * @param userAssignedIdentities the userAssignedIdentities value to set. + * @return the HorizonDbClusterManagedServiceIdentity object itself. + */ + public HorizonDbClusterManagedServiceIdentity + withUserAssignedIdentities(Map userAssignedIdentities) { + this.userAssignedIdentities = userAssignedIdentities; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeMapField("userAssignedIdentities", this.userAssignedIdentities, + (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of HorizonDbClusterManagedServiceIdentity from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of HorizonDbClusterManagedServiceIdentity 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 HorizonDbClusterManagedServiceIdentity. + */ + public static HorizonDbClusterManagedServiceIdentity fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + HorizonDbClusterManagedServiceIdentity deserializedHorizonDbClusterManagedServiceIdentity + = new HorizonDbClusterManagedServiceIdentity(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("type".equals(fieldName)) { + deserializedHorizonDbClusterManagedServiceIdentity.type + = HorizonDbClusterIdentityType.fromString(reader.getString()); + } else if ("userAssignedIdentities".equals(fieldName)) { + Map userAssignedIdentities + = reader.readMap(reader1 -> UserAssignedIdentity.fromJson(reader1)); + deserializedHorizonDbClusterManagedServiceIdentity.userAssignedIdentities = userAssignedIdentities; + } else { + reader.skipChildren(); + } + } + + return deserializedHorizonDbClusterManagedServiceIdentity; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterMirroring.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterMirroring.java deleted file mode 100644 index 29807e1747eb2..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterMirroring.java +++ /dev/null @@ -1,118 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.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; - -/** - * Mirroring configuration for a HorizonDB cluster. - */ -@Fluent -public final class HorizonDbClusterMirroring implements JsonSerializable { - /* - * The names of the databases to mirror. - */ - private List databaseNames; - - /* - * The resource ID of the user-assigned managed identity used for mirroring. - */ - private String userAssignedIdentityId; - - /** - * Creates an instance of HorizonDbClusterMirroring class. - */ - public HorizonDbClusterMirroring() { - } - - /** - * Get the databaseNames property: The names of the databases to mirror. - * - * @return the databaseNames value. - */ - public List databaseNames() { - return this.databaseNames; - } - - /** - * Set the databaseNames property: The names of the databases to mirror. - * - * @param databaseNames the databaseNames value to set. - * @return the HorizonDbClusterMirroring object itself. - */ - public HorizonDbClusterMirroring withDatabaseNames(List databaseNames) { - this.databaseNames = databaseNames; - return this; - } - - /** - * Get the userAssignedIdentityId property: The resource ID of the user-assigned managed identity used for - * mirroring. - * - * @return the userAssignedIdentityId value. - */ - public String userAssignedIdentityId() { - return this.userAssignedIdentityId; - } - - /** - * Set the userAssignedIdentityId property: The resource ID of the user-assigned managed identity used for - * mirroring. - * - * @param userAssignedIdentityId the userAssignedIdentityId value to set. - * @return the HorizonDbClusterMirroring object itself. - */ - public HorizonDbClusterMirroring withUserAssignedIdentityId(String userAssignedIdentityId) { - this.userAssignedIdentityId = userAssignedIdentityId; - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("databaseNames", this.databaseNames, - (writer, element) -> writer.writeString(element)); - jsonWriter.writeStringField("userAssignedIdentityId", this.userAssignedIdentityId); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of HorizonDbClusterMirroring from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of HorizonDbClusterMirroring 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 HorizonDbClusterMirroring. - */ - public static HorizonDbClusterMirroring fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - HorizonDbClusterMirroring deserializedHorizonDbClusterMirroring = new HorizonDbClusterMirroring(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("databaseNames".equals(fieldName)) { - List databaseNames = reader.readArray(reader1 -> reader1.getString()); - deserializedHorizonDbClusterMirroring.databaseNames = databaseNames; - } else if ("userAssignedIdentityId".equals(fieldName)) { - deserializedHorizonDbClusterMirroring.userAssignedIdentityId = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedHorizonDbClusterMirroring; - }); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterParameterGroupConnectionProperties.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterParameterGroupConnectionProperties.java deleted file mode 100644 index 2ab88152e2138..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterParameterGroupConnectionProperties.java +++ /dev/null @@ -1,133 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.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; - -/** - * Connection information for HorizonDB parameter group. - */ -@Fluent -public final class HorizonDbClusterParameterGroupConnectionProperties - implements JsonSerializable { - /* - * The resource ID of the connected parameter group. - */ - private String id; - - /* - * Indication of if parameter group is applied on HorizonDB resource. - */ - private String syncStatus; - - /* - * Indicates whether the parameters should be applied immediately. - */ - private Boolean applyImmediately; - - /** - * Creates an instance of HorizonDbClusterParameterGroupConnectionProperties class. - */ - public HorizonDbClusterParameterGroupConnectionProperties() { - } - - /** - * Get the id property: The resource ID of the connected parameter group. - * - * @return the id value. - */ - public String id() { - return this.id; - } - - /** - * Set the id property: The resource ID of the connected parameter group. - * - * @param id the id value to set. - * @return the HorizonDbClusterParameterGroupConnectionProperties object itself. - */ - public HorizonDbClusterParameterGroupConnectionProperties withId(String id) { - this.id = id; - return this; - } - - /** - * Get the syncStatus property: Indication of if parameter group is applied on HorizonDB resource. - * - * @return the syncStatus value. - */ - public String syncStatus() { - return this.syncStatus; - } - - /** - * Get the applyImmediately property: Indicates whether the parameters should be applied immediately. - * - * @return the applyImmediately value. - */ - public Boolean applyImmediately() { - return this.applyImmediately; - } - - /** - * Set the applyImmediately property: Indicates whether the parameters should be applied immediately. - * - * @param applyImmediately the applyImmediately value to set. - * @return the HorizonDbClusterParameterGroupConnectionProperties object itself. - */ - public HorizonDbClusterParameterGroupConnectionProperties withApplyImmediately(Boolean applyImmediately) { - this.applyImmediately = applyImmediately; - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("id", this.id); - jsonWriter.writeBooleanField("applyImmediately", this.applyImmediately); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of HorizonDbClusterParameterGroupConnectionProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of HorizonDbClusterParameterGroupConnectionProperties 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 HorizonDbClusterParameterGroupConnectionProperties. - */ - public static HorizonDbClusterParameterGroupConnectionProperties fromJson(JsonReader jsonReader) - throws IOException { - return jsonReader.readObject(reader -> { - HorizonDbClusterParameterGroupConnectionProperties deserializedHorizonDbClusterParameterGroupConnectionProperties - = new HorizonDbClusterParameterGroupConnectionProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedHorizonDbClusterParameterGroupConnectionProperties.id = reader.getString(); - } else if ("syncStatus".equals(fieldName)) { - deserializedHorizonDbClusterParameterGroupConnectionProperties.syncStatus = reader.getString(); - } else if ("applyImmediately".equals(fieldName)) { - deserializedHorizonDbClusterParameterGroupConnectionProperties.applyImmediately - = reader.getNullable(JsonReader::getBoolean); - } else { - reader.skipChildren(); - } - } - - return deserializedHorizonDbClusterParameterGroupConnectionProperties; - }); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterProperties.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterProperties.java deleted file mode 100644 index 93c4bb0cc650b..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterProperties.java +++ /dev/null @@ -1,581 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.CoreUtils; -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.time.OffsetDateTime; -import java.time.format.DateTimeFormatter; - -/** - * Properties of a HorizonDB cluster. - */ -@Fluent -public final class HorizonDbClusterProperties implements JsonSerializable { - /* - * The administrator login name. - */ - private String administratorLogin; - - /* - * The administrator login password. - */ - private String administratorLoginPassword; - - /* - * The version of the HorizonDB cluster. - */ - private String version; - - /* - * The mode to create a new HorizonDB cluster. - */ - private CreateModeCluster createMode; - - /* - * Restore point creation time specifying the time to restore from. - */ - private OffsetDateTime pointInTimeUTC; - - /* - * The source cluster resource ID for restore or replica creation. - */ - private String sourceClusterResourceId; - - /* - * The pool name for restore or replica operations. - */ - private String poolName; - - /* - * Number of replicas. - */ - private Integer replicaCount; - - /* - * Number of vCores. - */ - private Integer vCores; - - /* - * The processor type for the HorizonDB cluster. - */ - private String processorType; - - /* - * The network related info. - */ - private Network network; - - /* - * Current state of the cluster. - */ - private State state; - - /* - * The fully qualified domain name of the cluster. - */ - private String fullyQualifiedDomainName; - - /* - * The fully qualified domain name used for readonly endpoint for the cluster. - */ - private String readonlyEndpoint; - - /* - * The provisioning state of the cluster. - */ - private ProvisioningState provisioningState; - - /* - * Defines how replicas are placed across availability zones. - */ - private ZonePlacementPolicy zonePlacementPolicy; - - /* - * Defines connection to a parameter group. - */ - private HorizonDbClusterParameterGroupConnectionProperties parameterGroup; - - /* - * Authentication configuration for the HorizonDB cluster. - */ - private HorizonDbClusterAuthConfig authConfig; - - /* - * The compute model for the cluster. - */ - private HorizonDbComputeModel computeModel; - - /* - * Mirroring configuration for the HorizonDB cluster. - */ - private HorizonDbClusterMirroring mirroring; - - /** - * Creates an instance of HorizonDbClusterProperties class. - */ - public HorizonDbClusterProperties() { - } - - /** - * Get the administratorLogin property: The administrator login name. - * - * @return the administratorLogin value. - */ - public String administratorLogin() { - return this.administratorLogin; - } - - /** - * Set the administratorLogin property: The administrator login name. - * - * @param administratorLogin the administratorLogin value to set. - * @return the HorizonDbClusterProperties object itself. - */ - public HorizonDbClusterProperties withAdministratorLogin(String administratorLogin) { - this.administratorLogin = administratorLogin; - return this; - } - - /** - * Get the administratorLoginPassword property: The administrator login password. - * - * @return the administratorLoginPassword value. - */ - public String administratorLoginPassword() { - return this.administratorLoginPassword; - } - - /** - * Set the administratorLoginPassword property: The administrator login password. - * - * @param administratorLoginPassword the administratorLoginPassword value to set. - * @return the HorizonDbClusterProperties object itself. - */ - public HorizonDbClusterProperties withAdministratorLoginPassword(String administratorLoginPassword) { - this.administratorLoginPassword = administratorLoginPassword; - return this; - } - - /** - * Get the version property: The version of the HorizonDB cluster. - * - * @return the version value. - */ - public String version() { - return this.version; - } - - /** - * Set the version property: The version of the HorizonDB cluster. - * - * @param version the version value to set. - * @return the HorizonDbClusterProperties object itself. - */ - public HorizonDbClusterProperties withVersion(String version) { - this.version = version; - return this; - } - - /** - * Get the createMode property: The mode to create a new HorizonDB cluster. - * - * @return the createMode value. - */ - public CreateModeCluster createMode() { - return this.createMode; - } - - /** - * Set the createMode property: The mode to create a new HorizonDB cluster. - * - * @param createMode the createMode value to set. - * @return the HorizonDbClusterProperties object itself. - */ - public HorizonDbClusterProperties withCreateMode(CreateModeCluster createMode) { - this.createMode = createMode; - return this; - } - - /** - * Get the pointInTimeUTC property: Restore point creation time specifying the time to restore from. - * - * @return the pointInTimeUTC value. - */ - public OffsetDateTime pointInTimeUTC() { - return this.pointInTimeUTC; - } - - /** - * Set the pointInTimeUTC property: Restore point creation time specifying the time to restore from. - * - * @param pointInTimeUTC the pointInTimeUTC value to set. - * @return the HorizonDbClusterProperties object itself. - */ - public HorizonDbClusterProperties withPointInTimeUTC(OffsetDateTime pointInTimeUTC) { - this.pointInTimeUTC = pointInTimeUTC; - return this; - } - - /** - * Get the sourceClusterResourceId property: The source cluster resource ID for restore or replica creation. - * - * @return the sourceClusterResourceId value. - */ - public String sourceClusterResourceId() { - return this.sourceClusterResourceId; - } - - /** - * Set the sourceClusterResourceId property: The source cluster resource ID for restore or replica creation. - * - * @param sourceClusterResourceId the sourceClusterResourceId value to set. - * @return the HorizonDbClusterProperties object itself. - */ - public HorizonDbClusterProperties withSourceClusterResourceId(String sourceClusterResourceId) { - this.sourceClusterResourceId = sourceClusterResourceId; - return this; - } - - /** - * Get the poolName property: The pool name for restore or replica operations. - * - * @return the poolName value. - */ - public String poolName() { - return this.poolName; - } - - /** - * Set the poolName property: The pool name for restore or replica operations. - * - * @param poolName the poolName value to set. - * @return the HorizonDbClusterProperties object itself. - */ - public HorizonDbClusterProperties withPoolName(String poolName) { - this.poolName = poolName; - return this; - } - - /** - * Get the replicaCount property: Number of replicas. - * - * @return the replicaCount value. - */ - public Integer replicaCount() { - return this.replicaCount; - } - - /** - * Set the replicaCount property: Number of replicas. - * - * @param replicaCount the replicaCount value to set. - * @return the HorizonDbClusterProperties object itself. - */ - public HorizonDbClusterProperties withReplicaCount(Integer replicaCount) { - this.replicaCount = replicaCount; - return this; - } - - /** - * Get the vCores property: Number of vCores. - * - * @return the vCores value. - */ - public Integer vCores() { - return this.vCores; - } - - /** - * Set the vCores property: Number of vCores. - * - * @param vCores the vCores value to set. - * @return the HorizonDbClusterProperties object itself. - */ - public HorizonDbClusterProperties withVCores(Integer vCores) { - this.vCores = vCores; - return this; - } - - /** - * Get the processorType property: The processor type for the HorizonDB cluster. - * - * @return the processorType value. - */ - public String processorType() { - return this.processorType; - } - - /** - * Set the processorType property: The processor type for the HorizonDB cluster. - * - * @param processorType the processorType value to set. - * @return the HorizonDbClusterProperties object itself. - */ - public HorizonDbClusterProperties withProcessorType(String processorType) { - this.processorType = processorType; - return this; - } - - /** - * Get the network property: The network related info. - * - * @return the network value. - */ - public Network network() { - return this.network; - } - - /** - * Set the network property: The network related info. - * - * @param network the network value to set. - * @return the HorizonDbClusterProperties object itself. - */ - public HorizonDbClusterProperties withNetwork(Network network) { - this.network = network; - return this; - } - - /** - * Get the state property: Current state of the cluster. - * - * @return the state value. - */ - public State state() { - return this.state; - } - - /** - * Get the fullyQualifiedDomainName property: The fully qualified domain name of the cluster. - * - * @return the fullyQualifiedDomainName value. - */ - public String fullyQualifiedDomainName() { - return this.fullyQualifiedDomainName; - } - - /** - * Get the readonlyEndpoint property: The fully qualified domain name used for readonly endpoint for the cluster. - * - * @return the readonlyEndpoint value. - */ - public String readonlyEndpoint() { - return this.readonlyEndpoint; - } - - /** - * Get the provisioningState property: The provisioning state of the cluster. - * - * @return the provisioningState value. - */ - public ProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Get the zonePlacementPolicy property: Defines how replicas are placed across availability zones. - * - * @return the zonePlacementPolicy value. - */ - public ZonePlacementPolicy zonePlacementPolicy() { - return this.zonePlacementPolicy; - } - - /** - * Set the zonePlacementPolicy property: Defines how replicas are placed across availability zones. - * - * @param zonePlacementPolicy the zonePlacementPolicy value to set. - * @return the HorizonDbClusterProperties object itself. - */ - public HorizonDbClusterProperties withZonePlacementPolicy(ZonePlacementPolicy zonePlacementPolicy) { - this.zonePlacementPolicy = zonePlacementPolicy; - return this; - } - - /** - * Get the parameterGroup property: Defines connection to a parameter group. - * - * @return the parameterGroup value. - */ - public HorizonDbClusterParameterGroupConnectionProperties parameterGroup() { - return this.parameterGroup; - } - - /** - * Set the parameterGroup property: Defines connection to a parameter group. - * - * @param parameterGroup the parameterGroup value to set. - * @return the HorizonDbClusterProperties object itself. - */ - public HorizonDbClusterProperties - withParameterGroup(HorizonDbClusterParameterGroupConnectionProperties parameterGroup) { - this.parameterGroup = parameterGroup; - return this; - } - - /** - * Get the authConfig property: Authentication configuration for the HorizonDB cluster. - * - * @return the authConfig value. - */ - public HorizonDbClusterAuthConfig authConfig() { - return this.authConfig; - } - - /** - * Set the authConfig property: Authentication configuration for the HorizonDB cluster. - * - * @param authConfig the authConfig value to set. - * @return the HorizonDbClusterProperties object itself. - */ - public HorizonDbClusterProperties withAuthConfig(HorizonDbClusterAuthConfig authConfig) { - this.authConfig = authConfig; - return this; - } - - /** - * Get the computeModel property: The compute model for the cluster. - * - * @return the computeModel value. - */ - public HorizonDbComputeModel computeModel() { - return this.computeModel; - } - - /** - * Set the computeModel property: The compute model for the cluster. - * - * @param computeModel the computeModel value to set. - * @return the HorizonDbClusterProperties object itself. - */ - public HorizonDbClusterProperties withComputeModel(HorizonDbComputeModel computeModel) { - this.computeModel = computeModel; - return this; - } - - /** - * Get the mirroring property: Mirroring configuration for the HorizonDB cluster. - * - * @return the mirroring value. - */ - public HorizonDbClusterMirroring mirroring() { - return this.mirroring; - } - - /** - * Set the mirroring property: Mirroring configuration for the HorizonDB cluster. - * - * @param mirroring the mirroring value to set. - * @return the HorizonDbClusterProperties object itself. - */ - public HorizonDbClusterProperties withMirroring(HorizonDbClusterMirroring mirroring) { - this.mirroring = mirroring; - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("administratorLogin", this.administratorLogin); - jsonWriter.writeStringField("administratorLoginPassword", this.administratorLoginPassword); - jsonWriter.writeStringField("version", this.version); - jsonWriter.writeStringField("createMode", this.createMode == null ? null : this.createMode.toString()); - jsonWriter.writeStringField("pointInTimeUTC", - this.pointInTimeUTC == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.pointInTimeUTC)); - jsonWriter.writeStringField("sourceClusterResourceId", this.sourceClusterResourceId); - jsonWriter.writeStringField("poolName", this.poolName); - jsonWriter.writeNumberField("replicaCount", this.replicaCount); - jsonWriter.writeNumberField("vCores", this.vCores); - jsonWriter.writeStringField("processorType", this.processorType); - jsonWriter.writeJsonField("network", this.network); - jsonWriter.writeStringField("zonePlacementPolicy", - this.zonePlacementPolicy == null ? null : this.zonePlacementPolicy.toString()); - jsonWriter.writeJsonField("parameterGroup", this.parameterGroup); - jsonWriter.writeJsonField("authConfig", this.authConfig); - jsonWriter.writeJsonField("computeModel", this.computeModel); - jsonWriter.writeJsonField("mirroring", this.mirroring); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of HorizonDbClusterProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of HorizonDbClusterProperties 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 HorizonDbClusterProperties. - */ - public static HorizonDbClusterProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - HorizonDbClusterProperties deserializedHorizonDbClusterProperties = new HorizonDbClusterProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("administratorLogin".equals(fieldName)) { - deserializedHorizonDbClusterProperties.administratorLogin = reader.getString(); - } else if ("administratorLoginPassword".equals(fieldName)) { - deserializedHorizonDbClusterProperties.administratorLoginPassword = reader.getString(); - } else if ("version".equals(fieldName)) { - deserializedHorizonDbClusterProperties.version = reader.getString(); - } else if ("createMode".equals(fieldName)) { - deserializedHorizonDbClusterProperties.createMode - = CreateModeCluster.fromString(reader.getString()); - } else if ("pointInTimeUTC".equals(fieldName)) { - deserializedHorizonDbClusterProperties.pointInTimeUTC = reader - .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); - } else if ("sourceClusterResourceId".equals(fieldName)) { - deserializedHorizonDbClusterProperties.sourceClusterResourceId = reader.getString(); - } else if ("poolName".equals(fieldName)) { - deserializedHorizonDbClusterProperties.poolName = reader.getString(); - } else if ("replicaCount".equals(fieldName)) { - deserializedHorizonDbClusterProperties.replicaCount = reader.getNullable(JsonReader::getInt); - } else if ("vCores".equals(fieldName)) { - deserializedHorizonDbClusterProperties.vCores = reader.getNullable(JsonReader::getInt); - } else if ("processorType".equals(fieldName)) { - deserializedHorizonDbClusterProperties.processorType = reader.getString(); - } else if ("network".equals(fieldName)) { - deserializedHorizonDbClusterProperties.network = Network.fromJson(reader); - } else if ("state".equals(fieldName)) { - deserializedHorizonDbClusterProperties.state = State.fromString(reader.getString()); - } else if ("fullyQualifiedDomainName".equals(fieldName)) { - deserializedHorizonDbClusterProperties.fullyQualifiedDomainName = reader.getString(); - } else if ("readonlyEndpoint".equals(fieldName)) { - deserializedHorizonDbClusterProperties.readonlyEndpoint = reader.getString(); - } else if ("provisioningState".equals(fieldName)) { - deserializedHorizonDbClusterProperties.provisioningState - = ProvisioningState.fromString(reader.getString()); - } else if ("zonePlacementPolicy".equals(fieldName)) { - deserializedHorizonDbClusterProperties.zonePlacementPolicy - = ZonePlacementPolicy.fromString(reader.getString()); - } else if ("parameterGroup".equals(fieldName)) { - deserializedHorizonDbClusterProperties.parameterGroup - = HorizonDbClusterParameterGroupConnectionProperties.fromJson(reader); - } else if ("authConfig".equals(fieldName)) { - deserializedHorizonDbClusterProperties.authConfig = HorizonDbClusterAuthConfig.fromJson(reader); - } else if ("computeModel".equals(fieldName)) { - deserializedHorizonDbClusterProperties.computeModel = HorizonDbComputeModel.fromJson(reader); - } else if ("mirroring".equals(fieldName)) { - deserializedHorizonDbClusterProperties.mirroring = HorizonDbClusterMirroring.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedHorizonDbClusterProperties; - }); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterPropertiesForPatchUpdate.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterPropertiesForPatchUpdate.java deleted file mode 100644 index 7c374898ee1c4..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterPropertiesForPatchUpdate.java +++ /dev/null @@ -1,234 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.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; - -/** - * Properties of a HorizonDB cluster for update operations. - */ -@Fluent -public final class HorizonDbClusterPropertiesForPatchUpdate - implements JsonSerializable { - /* - * The administrator login password. - */ - private String administratorLoginPassword; - - /* - * Number of vCores. - */ - private Integer vCores; - - /* - * Defines connection to a parameter group. - */ - private HorizonDbClusterParameterGroupConnectionProperties parameterGroup; - - /* - * Authentication configuration for the HorizonDB cluster. - */ - private HorizonDbClusterAuthConfig authConfig; - - /* - * The compute model for the cluster. - */ - private HorizonDbComputeModel computeModel; - - /* - * Mirroring configuration for the HorizonDB cluster. - */ - private HorizonDbClusterMirroring mirroring; - - /** - * Creates an instance of HorizonDbClusterPropertiesForPatchUpdate class. - */ - public HorizonDbClusterPropertiesForPatchUpdate() { - } - - /** - * Get the administratorLoginPassword property: The administrator login password. - * - * @return the administratorLoginPassword value. - */ - public String administratorLoginPassword() { - return this.administratorLoginPassword; - } - - /** - * Set the administratorLoginPassword property: The administrator login password. - * - * @param administratorLoginPassword the administratorLoginPassword value to set. - * @return the HorizonDbClusterPropertiesForPatchUpdate object itself. - */ - public HorizonDbClusterPropertiesForPatchUpdate withAdministratorLoginPassword(String administratorLoginPassword) { - this.administratorLoginPassword = administratorLoginPassword; - return this; - } - - /** - * Get the vCores property: Number of vCores. - * - * @return the vCores value. - */ - public Integer vCores() { - return this.vCores; - } - - /** - * Set the vCores property: Number of vCores. - * - * @param vCores the vCores value to set. - * @return the HorizonDbClusterPropertiesForPatchUpdate object itself. - */ - public HorizonDbClusterPropertiesForPatchUpdate withVCores(Integer vCores) { - this.vCores = vCores; - return this; - } - - /** - * Get the parameterGroup property: Defines connection to a parameter group. - * - * @return the parameterGroup value. - */ - public HorizonDbClusterParameterGroupConnectionProperties parameterGroup() { - return this.parameterGroup; - } - - /** - * Set the parameterGroup property: Defines connection to a parameter group. - * - * @param parameterGroup the parameterGroup value to set. - * @return the HorizonDbClusterPropertiesForPatchUpdate object itself. - */ - public HorizonDbClusterPropertiesForPatchUpdate - withParameterGroup(HorizonDbClusterParameterGroupConnectionProperties parameterGroup) { - this.parameterGroup = parameterGroup; - return this; - } - - /** - * Get the authConfig property: Authentication configuration for the HorizonDB cluster. - * - * @return the authConfig value. - */ - public HorizonDbClusterAuthConfig authConfig() { - return this.authConfig; - } - - /** - * Set the authConfig property: Authentication configuration for the HorizonDB cluster. - * - * @param authConfig the authConfig value to set. - * @return the HorizonDbClusterPropertiesForPatchUpdate object itself. - */ - public HorizonDbClusterPropertiesForPatchUpdate withAuthConfig(HorizonDbClusterAuthConfig authConfig) { - this.authConfig = authConfig; - return this; - } - - /** - * Get the computeModel property: The compute model for the cluster. - * - * @return the computeModel value. - */ - public HorizonDbComputeModel computeModel() { - return this.computeModel; - } - - /** - * Set the computeModel property: The compute model for the cluster. - * - * @param computeModel the computeModel value to set. - * @return the HorizonDbClusterPropertiesForPatchUpdate object itself. - */ - public HorizonDbClusterPropertiesForPatchUpdate withComputeModel(HorizonDbComputeModel computeModel) { - this.computeModel = computeModel; - return this; - } - - /** - * Get the mirroring property: Mirroring configuration for the HorizonDB cluster. - * - * @return the mirroring value. - */ - public HorizonDbClusterMirroring mirroring() { - return this.mirroring; - } - - /** - * Set the mirroring property: Mirroring configuration for the HorizonDB cluster. - * - * @param mirroring the mirroring value to set. - * @return the HorizonDbClusterPropertiesForPatchUpdate object itself. - */ - public HorizonDbClusterPropertiesForPatchUpdate withMirroring(HorizonDbClusterMirroring mirroring) { - this.mirroring = mirroring; - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("administratorLoginPassword", this.administratorLoginPassword); - jsonWriter.writeNumberField("vCores", this.vCores); - jsonWriter.writeJsonField("parameterGroup", this.parameterGroup); - jsonWriter.writeJsonField("authConfig", this.authConfig); - jsonWriter.writeJsonField("computeModel", this.computeModel); - jsonWriter.writeJsonField("mirroring", this.mirroring); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of HorizonDbClusterPropertiesForPatchUpdate from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of HorizonDbClusterPropertiesForPatchUpdate 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 HorizonDbClusterPropertiesForPatchUpdate. - */ - public static HorizonDbClusterPropertiesForPatchUpdate fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - HorizonDbClusterPropertiesForPatchUpdate deserializedHorizonDbClusterPropertiesForPatchUpdate - = new HorizonDbClusterPropertiesForPatchUpdate(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("administratorLoginPassword".equals(fieldName)) { - deserializedHorizonDbClusterPropertiesForPatchUpdate.administratorLoginPassword - = reader.getString(); - } else if ("vCores".equals(fieldName)) { - deserializedHorizonDbClusterPropertiesForPatchUpdate.vCores - = reader.getNullable(JsonReader::getInt); - } else if ("parameterGroup".equals(fieldName)) { - deserializedHorizonDbClusterPropertiesForPatchUpdate.parameterGroup - = HorizonDbClusterParameterGroupConnectionProperties.fromJson(reader); - } else if ("authConfig".equals(fieldName)) { - deserializedHorizonDbClusterPropertiesForPatchUpdate.authConfig - = HorizonDbClusterAuthConfig.fromJson(reader); - } else if ("computeModel".equals(fieldName)) { - deserializedHorizonDbClusterPropertiesForPatchUpdate.computeModel - = HorizonDbComputeModel.fromJson(reader); - } else if ("mirroring".equals(fieldName)) { - deserializedHorizonDbClusterPropertiesForPatchUpdate.mirroring - = HorizonDbClusterMirroring.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedHorizonDbClusterPropertiesForPatchUpdate; - }); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbComputeModel.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbComputeModel.java deleted file mode 100644 index 6ea0375bd2c2b..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbComputeModel.java +++ /dev/null @@ -1,169 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.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; - -/** - * The compute model for a HorizonDB cluster. - */ -@Fluent -public final class HorizonDbComputeModel implements JsonSerializable { - /* - * The compute model type. Supported values: 'Provisioned', 'Serverless'. - */ - private HorizonDbComputeModelType type; - - /* - * The fixed vCore count for Provisioned compute. - */ - private Integer vCores; - - /* - * The minimum vCores for Serverless compute. Defines the lower autoscaling bound. - */ - private Double minvCores; - - /* - * The maximum vCores for Serverless compute. Defines the upper autoscaling bound. - */ - private Double maxvCores; - - /** - * Creates an instance of HorizonDbComputeModel class. - */ - public HorizonDbComputeModel() { - } - - /** - * Get the type property: The compute model type. Supported values: 'Provisioned', 'Serverless'. - * - * @return the type value. - */ - public HorizonDbComputeModelType type() { - return this.type; - } - - /** - * Set the type property: The compute model type. Supported values: 'Provisioned', 'Serverless'. - * - * @param type the type value to set. - * @return the HorizonDbComputeModel object itself. - */ - public HorizonDbComputeModel withType(HorizonDbComputeModelType type) { - this.type = type; - return this; - } - - /** - * Get the vCores property: The fixed vCore count for Provisioned compute. - * - * @return the vCores value. - */ - public Integer vCores() { - return this.vCores; - } - - /** - * Set the vCores property: The fixed vCore count for Provisioned compute. - * - * @param vCores the vCores value to set. - * @return the HorizonDbComputeModel object itself. - */ - public HorizonDbComputeModel withVCores(Integer vCores) { - this.vCores = vCores; - return this; - } - - /** - * Get the minvCores property: The minimum vCores for Serverless compute. Defines the lower autoscaling bound. - * - * @return the minvCores value. - */ - public Double minvCores() { - return this.minvCores; - } - - /** - * Set the minvCores property: The minimum vCores for Serverless compute. Defines the lower autoscaling bound. - * - * @param minvCores the minvCores value to set. - * @return the HorizonDbComputeModel object itself. - */ - public HorizonDbComputeModel withMinvCores(Double minvCores) { - this.minvCores = minvCores; - return this; - } - - /** - * Get the maxvCores property: The maximum vCores for Serverless compute. Defines the upper autoscaling bound. - * - * @return the maxvCores value. - */ - public Double maxvCores() { - return this.maxvCores; - } - - /** - * Set the maxvCores property: The maximum vCores for Serverless compute. Defines the upper autoscaling bound. - * - * @param maxvCores the maxvCores value to set. - * @return the HorizonDbComputeModel object itself. - */ - public HorizonDbComputeModel withMaxvCores(Double maxvCores) { - this.maxvCores = maxvCores; - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); - jsonWriter.writeNumberField("vCores", this.vCores); - jsonWriter.writeNumberField("minvCores", this.minvCores); - jsonWriter.writeNumberField("maxvCores", this.maxvCores); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of HorizonDbComputeModel from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of HorizonDbComputeModel 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 HorizonDbComputeModel. - */ - public static HorizonDbComputeModel fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - HorizonDbComputeModel deserializedHorizonDbComputeModel = new HorizonDbComputeModel(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("type".equals(fieldName)) { - deserializedHorizonDbComputeModel.type = HorizonDbComputeModelType.fromString(reader.getString()); - } else if ("vCores".equals(fieldName)) { - deserializedHorizonDbComputeModel.vCores = reader.getNullable(JsonReader::getInt); - } else if ("minvCores".equals(fieldName)) { - deserializedHorizonDbComputeModel.minvCores = reader.getNullable(JsonReader::getDouble); - } else if ("maxvCores".equals(fieldName)) { - deserializedHorizonDbComputeModel.maxvCores = reader.getNullable(JsonReader::getDouble); - } else { - reader.skipChildren(); - } - } - - return deserializedHorizonDbComputeModel; - }); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbComputeModelType.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbComputeModelType.java deleted file mode 100644 index adbb8b198a852..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbComputeModelType.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * The compute model type. - */ -public final class HorizonDbComputeModelType extends ExpandableStringEnum { - /** - * Provisioned compute. - */ - public static final HorizonDbComputeModelType PROVISIONED = fromString("Provisioned"); - - /** - * Serverless compute. - */ - public static final HorizonDbComputeModelType SERVERLESS = fromString("Serverless"); - - /** - * Creates a new instance of HorizonDbComputeModelType value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public HorizonDbComputeModelType() { - } - - /** - * Creates or finds a HorizonDbComputeModelType from its string representation. - * - * @param name a name to look for. - * @return the corresponding HorizonDbComputeModelType. - */ - public static HorizonDbComputeModelType fromString(String name) { - return fromString(name, HorizonDbComputeModelType.class); - } - - /** - * Gets known HorizonDbComputeModelType values. - * - * @return known HorizonDbComputeModelType values. - */ - public static Collection values() { - return values(HorizonDbComputeModelType.class); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbParameterGroupConnectionProperties.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbParameterGroupConnectionProperties.java deleted file mode 100644 index 4f5f20f6392a6..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbParameterGroupConnectionProperties.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.models; - -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbParameterGroupConnectionPropertiesInner; - -/** - * An immutable client-side representation of HorizonDbParameterGroupConnectionProperties. - */ -public interface HorizonDbParameterGroupConnectionProperties { - /** - * Gets the name property: The name of the connected resource. - * - * @return the name value. - */ - String name(); - - /** - * Gets the id property: The resource ID of the connected resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the type property: The type of the resource. - * - * @return the type value. - */ - String type(); - - /** - * Gets the inner com.azure.resourcemanager.horizondb.fluent.models.HorizonDbParameterGroupConnectionPropertiesInner - * object. - * - * @return the inner object. - */ - HorizonDbParameterGroupConnectionPropertiesInner innerModel(); -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbParameterGroupProperties.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbParameterGroupProperties.java deleted file mode 100644 index bee15ff56e22d..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbParameterGroupProperties.java +++ /dev/null @@ -1,207 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.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; - -/** - * Properties of a HorizonDB parameter group. - */ -@Fluent -public final class HorizonDbParameterGroupProperties implements JsonSerializable { - /* - * Parameters in the parameter group. - */ - private List parameters; - - /* - * Description of the parameter group. - */ - private String description; - - /* - * PostgreSQL version for the parameter group. - */ - private Integer pgVersion; - - /* - * Current version of the parameter group. - */ - private Integer version; - - /* - * Indicates whether the parameters should be applied immediately. - */ - private Boolean applyImmediately; - - /* - * The provisioning state of the parameter group. - */ - private ProvisioningState provisioningState; - - /** - * Creates an instance of HorizonDbParameterGroupProperties class. - */ - public HorizonDbParameterGroupProperties() { - } - - /** - * Get the parameters property: Parameters in the parameter group. - * - * @return the parameters value. - */ - public List parameters() { - return this.parameters; - } - - /** - * Set the parameters property: Parameters in the parameter group. - * - * @param parameters the parameters value to set. - * @return the HorizonDbParameterGroupProperties object itself. - */ - public HorizonDbParameterGroupProperties withParameters(List parameters) { - this.parameters = parameters; - return this; - } - - /** - * Get the description property: Description of the parameter group. - * - * @return the description value. - */ - public String description() { - return this.description; - } - - /** - * Set the description property: Description of the parameter group. - * - * @param description the description value to set. - * @return the HorizonDbParameterGroupProperties object itself. - */ - public HorizonDbParameterGroupProperties withDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the pgVersion property: PostgreSQL version for the parameter group. - * - * @return the pgVersion value. - */ - public Integer pgVersion() { - return this.pgVersion; - } - - /** - * Set the pgVersion property: PostgreSQL version for the parameter group. - * - * @param pgVersion the pgVersion value to set. - * @return the HorizonDbParameterGroupProperties object itself. - */ - public HorizonDbParameterGroupProperties withPgVersion(Integer pgVersion) { - this.pgVersion = pgVersion; - return this; - } - - /** - * Get the version property: Current version of the parameter group. - * - * @return the version value. - */ - public Integer version() { - return this.version; - } - - /** - * Get the applyImmediately property: Indicates whether the parameters should be applied immediately. - * - * @return the applyImmediately value. - */ - public Boolean applyImmediately() { - return this.applyImmediately; - } - - /** - * Set the applyImmediately property: Indicates whether the parameters should be applied immediately. - * - * @param applyImmediately the applyImmediately value to set. - * @return the HorizonDbParameterGroupProperties object itself. - */ - public HorizonDbParameterGroupProperties withApplyImmediately(Boolean applyImmediately) { - this.applyImmediately = applyImmediately; - return this; - } - - /** - * Get the provisioningState property: The provisioning state of the parameter group. - * - * @return the provisioningState value. - */ - public ProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("parameters", this.parameters, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeStringField("description", this.description); - jsonWriter.writeNumberField("pgVersion", this.pgVersion); - jsonWriter.writeBooleanField("applyImmediately", this.applyImmediately); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of HorizonDbParameterGroupProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of HorizonDbParameterGroupProperties 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 HorizonDbParameterGroupProperties. - */ - public static HorizonDbParameterGroupProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - HorizonDbParameterGroupProperties deserializedHorizonDbParameterGroupProperties - = new HorizonDbParameterGroupProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("parameters".equals(fieldName)) { - List parameters - = reader.readArray(reader1 -> ParameterProperties.fromJson(reader1)); - deserializedHorizonDbParameterGroupProperties.parameters = parameters; - } else if ("description".equals(fieldName)) { - deserializedHorizonDbParameterGroupProperties.description = reader.getString(); - } else if ("pgVersion".equals(fieldName)) { - deserializedHorizonDbParameterGroupProperties.pgVersion = reader.getNullable(JsonReader::getInt); - } else if ("version".equals(fieldName)) { - deserializedHorizonDbParameterGroupProperties.version = reader.getNullable(JsonReader::getInt); - } else if ("applyImmediately".equals(fieldName)) { - deserializedHorizonDbParameterGroupProperties.applyImmediately - = reader.getNullable(JsonReader::getBoolean); - } else if ("provisioningState".equals(fieldName)) { - deserializedHorizonDbParameterGroupProperties.provisioningState - = ProvisioningState.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedHorizonDbParameterGroupProperties; - }); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbParameterGroupPropertiesForPatchUpdate.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbParameterGroupPropertiesForPatchUpdate.java deleted file mode 100644 index 86665fe7582ac..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbParameterGroupPropertiesForPatchUpdate.java +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.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; - -/** - * Properties of a HorizonDB parameter group for update operations. - */ -@Fluent -public final class HorizonDbParameterGroupPropertiesForPatchUpdate - implements JsonSerializable { - /* - * Parameters in the parameter group. - */ - private List parameters; - - /* - * Description of the parameter group. - */ - private String description; - - /* - * Indicates whether the parameters should be applied immediately. - */ - private Boolean applyImmediately; - - /** - * Creates an instance of HorizonDbParameterGroupPropertiesForPatchUpdate class. - */ - public HorizonDbParameterGroupPropertiesForPatchUpdate() { - } - - /** - * Get the parameters property: Parameters in the parameter group. - * - * @return the parameters value. - */ - public List parameters() { - return this.parameters; - } - - /** - * Set the parameters property: Parameters in the parameter group. - * - * @param parameters the parameters value to set. - * @return the HorizonDbParameterGroupPropertiesForPatchUpdate object itself. - */ - public HorizonDbParameterGroupPropertiesForPatchUpdate withParameters(List parameters) { - this.parameters = parameters; - return this; - } - - /** - * Get the description property: Description of the parameter group. - * - * @return the description value. - */ - public String description() { - return this.description; - } - - /** - * Set the description property: Description of the parameter group. - * - * @param description the description value to set. - * @return the HorizonDbParameterGroupPropertiesForPatchUpdate object itself. - */ - public HorizonDbParameterGroupPropertiesForPatchUpdate withDescription(String description) { - this.description = description; - return this; - } - - /** - * Get the applyImmediately property: Indicates whether the parameters should be applied immediately. - * - * @return the applyImmediately value. - */ - public Boolean applyImmediately() { - return this.applyImmediately; - } - - /** - * Set the applyImmediately property: Indicates whether the parameters should be applied immediately. - * - * @param applyImmediately the applyImmediately value to set. - * @return the HorizonDbParameterGroupPropertiesForPatchUpdate object itself. - */ - public HorizonDbParameterGroupPropertiesForPatchUpdate withApplyImmediately(Boolean applyImmediately) { - this.applyImmediately = applyImmediately; - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("parameters", this.parameters, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeStringField("description", this.description); - jsonWriter.writeBooleanField("applyImmediately", this.applyImmediately); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of HorizonDbParameterGroupPropertiesForPatchUpdate from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of HorizonDbParameterGroupPropertiesForPatchUpdate 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 HorizonDbParameterGroupPropertiesForPatchUpdate. - */ - public static HorizonDbParameterGroupPropertiesForPatchUpdate fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - HorizonDbParameterGroupPropertiesForPatchUpdate deserializedHorizonDbParameterGroupPropertiesForPatchUpdate - = new HorizonDbParameterGroupPropertiesForPatchUpdate(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("parameters".equals(fieldName)) { - List parameters - = reader.readArray(reader1 -> ParameterProperties.fromJson(reader1)); - deserializedHorizonDbParameterGroupPropertiesForPatchUpdate.parameters = parameters; - } else if ("description".equals(fieldName)) { - deserializedHorizonDbParameterGroupPropertiesForPatchUpdate.description = reader.getString(); - } else if ("applyImmediately".equals(fieldName)) { - deserializedHorizonDbParameterGroupPropertiesForPatchUpdate.applyImmediately - = reader.getNullable(JsonReader::getBoolean); - } else { - reader.skipChildren(); - } - } - - return deserializedHorizonDbParameterGroupPropertiesForPatchUpdate; - }); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbPoolProperties.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbPoolProperties.java deleted file mode 100644 index 193c2e4c610fa..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbPoolProperties.java +++ /dev/null @@ -1,155 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.models; - -import com.azure.core.annotation.Immutable; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Properties of a HorizonDB pool. - */ -@Immutable -public final class HorizonDbPoolProperties implements JsonSerializable { - /* - * The location of the HorizonDB pool. - */ - private String location; - - /* - * Current state of the pool. - */ - private State state; - - /* - * Number of replicas in the pool. - */ - private Integer replicaCount; - - /* - * The version of the HorizonDB pool. - */ - private String version; - - /* - * The create mode for the pool. - */ - private CreateModePool createMode; - - /* - * The provisioning state of the pool. - */ - private ProvisioningState provisioningState; - - /** - * Creates an instance of HorizonDbPoolProperties class. - */ - private HorizonDbPoolProperties() { - } - - /** - * Get the location property: The location of the HorizonDB pool. - * - * @return the location value. - */ - public String location() { - return this.location; - } - - /** - * Get the state property: Current state of the pool. - * - * @return the state value. - */ - public State state() { - return this.state; - } - - /** - * Get the replicaCount property: Number of replicas in the pool. - * - * @return the replicaCount value. - */ - public Integer replicaCount() { - return this.replicaCount; - } - - /** - * Get the version property: The version of the HorizonDB pool. - * - * @return the version value. - */ - public String version() { - return this.version; - } - - /** - * Get the createMode property: The create mode for the pool. - * - * @return the createMode value. - */ - public CreateModePool createMode() { - return this.createMode; - } - - /** - * Get the provisioningState property: The provisioning state of the pool. - * - * @return the provisioningState value. - */ - public ProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("location", this.location); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of HorizonDbPoolProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of HorizonDbPoolProperties 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 HorizonDbPoolProperties. - */ - public static HorizonDbPoolProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - HorizonDbPoolProperties deserializedHorizonDbPoolProperties = new HorizonDbPoolProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("location".equals(fieldName)) { - deserializedHorizonDbPoolProperties.location = reader.getString(); - } else if ("state".equals(fieldName)) { - deserializedHorizonDbPoolProperties.state = State.fromString(reader.getString()); - } else if ("replicaCount".equals(fieldName)) { - deserializedHorizonDbPoolProperties.replicaCount = reader.getNullable(JsonReader::getInt); - } else if ("version".equals(fieldName)) { - deserializedHorizonDbPoolProperties.version = reader.getString(); - } else if ("createMode".equals(fieldName)) { - deserializedHorizonDbPoolProperties.createMode = CreateModePool.fromString(reader.getString()); - } else if ("provisioningState".equals(fieldName)) { - deserializedHorizonDbPoolProperties.provisioningState - = ProvisioningState.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedHorizonDbPoolProperties; - }); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbReplicaProperties.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbReplicaProperties.java deleted file mode 100644 index 1b3b1ec15fb77..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbReplicaProperties.java +++ /dev/null @@ -1,162 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.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; - -/** - * Properties of a HorizonDB replica. - */ -@Fluent -public final class HorizonDbReplicaProperties implements JsonSerializable { - /* - * Role of the replica. - */ - private ReplicaRole role; - - /* - * Current status of the replica. - */ - private State status; - - /* - * The fully qualified domain name of the replica. - */ - private String fullyQualifiedDomainName; - - /* - * The availability zone of the replica. - */ - private String availabilityZone; - - /* - * The provisioning state of the replica. - */ - private ProvisioningState provisioningState; - - /** - * Creates an instance of HorizonDbReplicaProperties class. - */ - public HorizonDbReplicaProperties() { - } - - /** - * Get the role property: Role of the replica. - * - * @return the role value. - */ - public ReplicaRole role() { - return this.role; - } - - /** - * Set the role property: Role of the replica. - * - * @param role the role value to set. - * @return the HorizonDbReplicaProperties object itself. - */ - public HorizonDbReplicaProperties withRole(ReplicaRole role) { - this.role = role; - return this; - } - - /** - * Get the status property: Current status of the replica. - * - * @return the status value. - */ - public State status() { - return this.status; - } - - /** - * Get the fullyQualifiedDomainName property: The fully qualified domain name of the replica. - * - * @return the fullyQualifiedDomainName value. - */ - public String fullyQualifiedDomainName() { - return this.fullyQualifiedDomainName; - } - - /** - * Get the availabilityZone property: The availability zone of the replica. - * - * @return the availabilityZone value. - */ - public String availabilityZone() { - return this.availabilityZone; - } - - /** - * Set the availabilityZone property: The availability zone of the replica. - * - * @param availabilityZone the availabilityZone value to set. - * @return the HorizonDbReplicaProperties object itself. - */ - public HorizonDbReplicaProperties withAvailabilityZone(String availabilityZone) { - this.availabilityZone = availabilityZone; - return this; - } - - /** - * Get the provisioningState property: The provisioning state of the replica. - * - * @return the provisioningState value. - */ - public ProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("role", this.role == null ? null : this.role.toString()); - jsonWriter.writeStringField("availabilityZone", this.availabilityZone); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of HorizonDbReplicaProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of HorizonDbReplicaProperties 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 HorizonDbReplicaProperties. - */ - public static HorizonDbReplicaProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - HorizonDbReplicaProperties deserializedHorizonDbReplicaProperties = new HorizonDbReplicaProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("role".equals(fieldName)) { - deserializedHorizonDbReplicaProperties.role = ReplicaRole.fromString(reader.getString()); - } else if ("status".equals(fieldName)) { - deserializedHorizonDbReplicaProperties.status = State.fromString(reader.getString()); - } else if ("fullyQualifiedDomainName".equals(fieldName)) { - deserializedHorizonDbReplicaProperties.fullyQualifiedDomainName = reader.getString(); - } else if ("availabilityZone".equals(fieldName)) { - deserializedHorizonDbReplicaProperties.availabilityZone = reader.getString(); - } else if ("provisioningState".equals(fieldName)) { - deserializedHorizonDbReplicaProperties.provisioningState - = ProvisioningState.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedHorizonDbReplicaProperties; - }); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbReplicaPropertiesForPatchUpdate.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbReplicaPropertiesForPatchUpdate.java deleted file mode 100644 index 6fbdc3ef4a24e..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbReplicaPropertiesForPatchUpdate.java +++ /dev/null @@ -1,88 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.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; - -/** - * Properties of a HorizonDB replica for update operations. - */ -@Fluent -public final class HorizonDbReplicaPropertiesForPatchUpdate - implements JsonSerializable { - /* - * Role of the replica. - */ - private ReplicaRole role; - - /** - * Creates an instance of HorizonDbReplicaPropertiesForPatchUpdate class. - */ - public HorizonDbReplicaPropertiesForPatchUpdate() { - } - - /** - * Get the role property: Role of the replica. - * - * @return the role value. - */ - public ReplicaRole role() { - return this.role; - } - - /** - * Set the role property: Role of the replica. - * - * @param role the role value to set. - * @return the HorizonDbReplicaPropertiesForPatchUpdate object itself. - */ - public HorizonDbReplicaPropertiesForPatchUpdate withRole(ReplicaRole role) { - this.role = role; - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("role", this.role == null ? null : this.role.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of HorizonDbReplicaPropertiesForPatchUpdate from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of HorizonDbReplicaPropertiesForPatchUpdate 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 HorizonDbReplicaPropertiesForPatchUpdate. - */ - public static HorizonDbReplicaPropertiesForPatchUpdate fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - HorizonDbReplicaPropertiesForPatchUpdate deserializedHorizonDbReplicaPropertiesForPatchUpdate - = new HorizonDbReplicaPropertiesForPatchUpdate(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("role".equals(fieldName)) { - deserializedHorizonDbReplicaPropertiesForPatchUpdate.role - = ReplicaRole.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedHorizonDbReplicaPropertiesForPatchUpdate; - }); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/IdentityAssignment.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/IdentityAssignment.java new file mode 100644 index 0000000000000..bf8bf580db52c --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/IdentityAssignment.java @@ -0,0 +1,149 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.horizondb.fluent.models.IdentityAssignmentInner; + +/** + * An immutable client-side representation of IdentityAssignment. + */ +public interface IdentityAssignment { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + ChangeDataCaptureIdentityAssignmentProperties properties(); + + /** + * Gets the eTag property: If eTag is provided in the response body, it may also be provided as a header per the + * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. + * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), + * and If-Range (section 14.27) header fields. + * + * @return the eTag value. + */ + String eTag(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the inner com.azure.resourcemanager.horizondb.fluent.models.IdentityAssignmentInner object. + * + * @return the inner object. + */ + IdentityAssignmentInner innerModel(); + + /** + * The entirety of the IdentityAssignment definition. + */ + interface Definition + extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { + } + + /** + * The IdentityAssignment definition stages. + */ + interface DefinitionStages { + /** + * The first stage of the IdentityAssignment definition. + */ + interface Blank extends WithParentResource { + } + + /** + * The stage of the IdentityAssignment definition allowing to specify parent resource. + */ + interface WithParentResource { + /** + * Specifies resourceGroupName, clusterName, destinationName. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param destinationName The caller-selected name of the change data capture destination. + * @return the next definition stage. + */ + WithCreate withExistingChangeDataCaptureDestination(String resourceGroupName, String clusterName, + String destinationName); + } + + /** + * The stage of the IdentityAssignment definition which contains all the minimum required properties for the + * resource to be created, but also allows for any other optional properties to be specified. + */ + interface WithCreate extends DefinitionStages.WithProperties { + /** + * Executes the create request. + * + * @return the created resource. + */ + IdentityAssignment create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + IdentityAssignment create(Context context); + } + + /** + * The stage of the IdentityAssignment definition allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: The resource-specific properties for this resource.. + * + * @param properties The resource-specific properties for this resource. + * @return the next definition stage. + */ + WithCreate withProperties(ChangeDataCaptureIdentityAssignmentProperties properties); + } + } + + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + IdentityAssignment refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + IdentityAssignment refresh(Context context); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbReplicas.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/IdentityAssignments.java similarity index 62% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbReplicas.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/IdentityAssignments.java index 9b9819f769329..4d061503c1975 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbReplicas.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/IdentityAssignments.java @@ -9,119 +9,120 @@ import com.azure.core.util.Context; /** - * Resource collection API of HorizonDbReplicas. + * Resource collection API of IdentityAssignments. */ -public interface HorizonDbReplicas { +public interface IdentityAssignments { /** - * Gets information about a HorizonDB replica. + * Gets a change data capture identity assignment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. * @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 information about a HorizonDB replica along with {@link Response}. + * @return a change data capture identity assignment along with {@link Response}. */ - Response getWithResponse(String resourceGroupName, String clusterName, String poolName, - String replicaName, Context context); + Response getWithResponse(String resourceGroupName, String clusterName, String destinationName, + String assignmentName, Context context); /** - * Gets information about a HorizonDB replica. + * Gets a change data capture identity assignment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. * @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 information about a HorizonDB replica. + * @return a change data capture identity assignment. */ - HorizonDbReplica get(String resourceGroupName, String clusterName, String poolName, String replicaName); + IdentityAssignment get(String resourceGroupName, String clusterName, String destinationName, String assignmentName); /** - * Lists all HorizonDB replicas in a pool. + * Deletes an inactive change data capture identity assignment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbReplica list operation as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceGroupName, String clusterName, String poolName); + void delete(String resourceGroupName, String clusterName, String destinationName, String assignmentName); /** - * Lists all HorizonDB replicas in a pool. + * Deletes an inactive change data capture identity assignment. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. + * @param destinationName The caller-selected name of the change data capture destination. + * @param assignmentName The caller-selected name of the identity assignment. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbReplica list operation as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceGroupName, String clusterName, String poolName, + void delete(String resourceGroupName, String clusterName, String destinationName, String assignmentName, Context context); /** - * Deletes a HorizonDB replica. + * Lists identity assignments for a change data capture destination. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. + * @param destinationName The caller-selected name of the change data capture destination. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IdentityAssignment list operation as paginated response with {@link PagedIterable}. */ - void delete(String resourceGroupName, String clusterName, String poolName, String replicaName); + PagedIterable list(String resourceGroupName, String clusterName, String destinationName); /** - * Deletes a HorizonDB replica. + * Lists identity assignments for a change data capture destination. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. - * @param poolName The name of the HorizonDB pool. - * @param replicaName The name of the HorizonDB replica. + * @param destinationName The caller-selected name of the change data capture destination. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a IdentityAssignment list operation as paginated response with {@link PagedIterable}. */ - void delete(String resourceGroupName, String clusterName, String poolName, String replicaName, Context context); + PagedIterable list(String resourceGroupName, String clusterName, String destinationName, + Context context); /** - * Gets information about a HorizonDB replica. + * Gets a change data capture identity assignment. * * @param id the resource ID. * @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 information about a HorizonDB replica along with {@link Response}. + * @return a change data capture identity assignment along with {@link Response}. */ - HorizonDbReplica getById(String id); + IdentityAssignment getById(String id); /** - * Gets information about a HorizonDB replica. + * Gets a change data capture identity assignment. * * @param id the resource ID. * @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 information about a HorizonDB replica along with {@link Response}. + * @return a change data capture identity assignment along with {@link Response}. */ - Response getByIdWithResponse(String id, Context context); + Response getByIdWithResponse(String id, Context context); /** - * Deletes a HorizonDB replica. + * Deletes an inactive change data capture identity assignment. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -131,7 +132,7 @@ PagedIterable list(String resourceGroupName, String clusterNam void deleteById(String id); /** - * Deletes a HorizonDB replica. + * Deletes an inactive change data capture identity assignment. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -142,10 +143,10 @@ PagedIterable list(String resourceGroupName, String clusterNam void deleteByIdWithResponse(String id, Context context); /** - * Begins definition for a new HorizonDbReplica resource. + * Begins definition for a new IdentityAssignment resource. * * @param name resource name. - * @return the first stage of the new HorizonDbReplica definition. + * @return the first stage of the new IdentityAssignment definition. */ - HorizonDbReplica.DefinitionStages.Blank define(String name); + IdentityAssignment.DefinitionStages.Blank define(String name); } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/IdentityValidationStatus.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/IdentityValidationStatus.java new file mode 100644 index 0000000000000..530aa0a8acdaa --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/IdentityValidationStatus.java @@ -0,0 +1,111 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.management.exception.ManagementError; +import com.azure.core.util.CoreUtils; +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.time.OffsetDateTime; + +/** + * The current validation result for a change data capture identity assignment. + */ +@Immutable +public final class IdentityValidationStatus implements JsonSerializable { + /* + * The current validation state. + */ + private ChangeDataCaptureIdentityValidationState state; + + /* + * The date and time, in UTC, when validation most recently completed. + */ + private OffsetDateTime validatedAtUtc; + + /* + * The customer-safe validation error when validation failed. + */ + private ManagementError error; + + /** + * Creates an instance of IdentityValidationStatus class. + */ + private IdentityValidationStatus() { + } + + /** + * Get the state property: The current validation state. + * + * @return the state value. + */ + public ChangeDataCaptureIdentityValidationState state() { + return this.state; + } + + /** + * Get the validatedAtUtc property: The date and time, in UTC, when validation most recently completed. + * + * @return the validatedAtUtc value. + */ + public OffsetDateTime validatedAtUtc() { + return this.validatedAtUtc; + } + + /** + * Get the error property: The customer-safe validation error when validation failed. + * + * @return the error value. + */ + public ManagementError error() { + return this.error; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of IdentityValidationStatus from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of IdentityValidationStatus 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 IdentityValidationStatus. + */ + public static IdentityValidationStatus fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + IdentityValidationStatus deserializedIdentityValidationStatus = new IdentityValidationStatus(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("state".equals(fieldName)) { + deserializedIdentityValidationStatus.state + = ChangeDataCaptureIdentityValidationState.fromString(reader.getString()); + } else if ("validatedAtUtc".equals(fieldName)) { + deserializedIdentityValidationStatus.validatedAtUtc = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("error".equals(fieldName)) { + deserializedIdentityValidationStatus.error = ManagementError.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedIdentityValidationStatus; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogCaptureConfiguration.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogCaptureConfiguration.java new file mode 100644 index 0000000000000..9a68a757a12c0 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogCaptureConfiguration.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.horizondb.fluent.models.LogCaptureConfigurationInner; + +/** + * An immutable client-side representation of LogCaptureConfiguration. + */ +public interface LogCaptureConfiguration { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + LogCaptureConfigurationProperties properties(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the inner com.azure.resourcemanager.horizondb.fluent.models.LogCaptureConfigurationInner object. + * + * @return the inner object. + */ + LogCaptureConfigurationInner innerModel(); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogCaptureConfigurationForPatchUpdate.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogCaptureConfigurationForPatchUpdate.java new file mode 100644 index 0000000000000..a479da9e79e07 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogCaptureConfigurationForPatchUpdate.java @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.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; + +/** + * A sparse update request for a log capture configuration. + */ +@Fluent +public final class LogCaptureConfigurationForPatchUpdate + implements JsonSerializable { + /* + * The log capture properties to update. + */ + private LogCaptureConfigurationPropertiesForPatchUpdate properties; + + /** + * Creates an instance of LogCaptureConfigurationForPatchUpdate class. + */ + public LogCaptureConfigurationForPatchUpdate() { + } + + /** + * Get the properties property: The log capture properties to update. + * + * @return the properties value. + */ + public LogCaptureConfigurationPropertiesForPatchUpdate properties() { + return this.properties; + } + + /** + * Set the properties property: The log capture properties to update. + * + * @param properties the properties value to set. + * @return the LogCaptureConfigurationForPatchUpdate object itself. + */ + public LogCaptureConfigurationForPatchUpdate + withProperties(LogCaptureConfigurationPropertiesForPatchUpdate properties) { + this.properties = properties; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of LogCaptureConfigurationForPatchUpdate from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of LogCaptureConfigurationForPatchUpdate 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 LogCaptureConfigurationForPatchUpdate. + */ + public static LogCaptureConfigurationForPatchUpdate fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + LogCaptureConfigurationForPatchUpdate deserializedLogCaptureConfigurationForPatchUpdate + = new LogCaptureConfigurationForPatchUpdate(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("properties".equals(fieldName)) { + deserializedLogCaptureConfigurationForPatchUpdate.properties + = LogCaptureConfigurationPropertiesForPatchUpdate.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedLogCaptureConfigurationForPatchUpdate; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogCaptureConfigurationProperties.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogCaptureConfigurationProperties.java new file mode 100644 index 0000000000000..7ba49174708a0 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogCaptureConfigurationProperties.java @@ -0,0 +1,113 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The settings for capturing a specific type of HorizonDB log. + */ +@Immutable +public final class LogCaptureConfigurationProperties implements JsonSerializable { + /* + * Specifies whether HorizonDB captures this type of log. Disabling capture stops the production of new log files; + * existing files remain available until their retention period expires. + */ + private LogCaptureState state; + + /* + * The number of days captured log files are retained. + */ + private int retentionDays; + + /* + * The provisioning state of the log capture configuration. + */ + private ProvisioningState provisioningState; + + /** + * Creates an instance of LogCaptureConfigurationProperties class. + */ + private LogCaptureConfigurationProperties() { + } + + /** + * Get the state property: Specifies whether HorizonDB captures this type of log. Disabling capture stops the + * production of new log files; existing files remain available until their retention period expires. + * + * @return the state value. + */ + public LogCaptureState state() { + return this.state; + } + + /** + * Get the retentionDays property: The number of days captured log files are retained. + * + * @return the retentionDays value. + */ + public int retentionDays() { + return this.retentionDays; + } + + /** + * Get the provisioningState property: The provisioning state of the log capture configuration. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("state", this.state == null ? null : this.state.toString()); + jsonWriter.writeIntField("retentionDays", this.retentionDays); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of LogCaptureConfigurationProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of LogCaptureConfigurationProperties 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 LogCaptureConfigurationProperties. + */ + public static LogCaptureConfigurationProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + LogCaptureConfigurationProperties deserializedLogCaptureConfigurationProperties + = new LogCaptureConfigurationProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("state".equals(fieldName)) { + deserializedLogCaptureConfigurationProperties.state + = LogCaptureState.fromString(reader.getString()); + } else if ("retentionDays".equals(fieldName)) { + deserializedLogCaptureConfigurationProperties.retentionDays = reader.getInt(); + } else if ("provisioningState".equals(fieldName)) { + deserializedLogCaptureConfigurationProperties.provisioningState + = ProvisioningState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedLogCaptureConfigurationProperties; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogCaptureConfigurationPropertiesForPatchUpdate.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogCaptureConfigurationPropertiesForPatchUpdate.java new file mode 100644 index 0000000000000..42e4d799528af --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogCaptureConfigurationPropertiesForPatchUpdate.java @@ -0,0 +1,120 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.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; + +/** + * Properties for updating the log capture configuration. Omitted properties preserve their current values. + */ +@Fluent +public final class LogCaptureConfigurationPropertiesForPatchUpdate + implements JsonSerializable { + /* + * Specifies whether HorizonDB captures this type of log. Disabling capture stops the production of new log files; + * existing files remain available until their retention period expires. + */ + private LogCaptureState state; + + /* + * The number of days captured log files are retained. + */ + private Integer retentionDays; + + /** + * Creates an instance of LogCaptureConfigurationPropertiesForPatchUpdate class. + */ + public LogCaptureConfigurationPropertiesForPatchUpdate() { + } + + /** + * Get the state property: Specifies whether HorizonDB captures this type of log. Disabling capture stops the + * production of new log files; existing files remain available until their retention period expires. + * + * @return the state value. + */ + public LogCaptureState state() { + return this.state; + } + + /** + * Set the state property: Specifies whether HorizonDB captures this type of log. Disabling capture stops the + * production of new log files; existing files remain available until their retention period expires. + * + * @param state the state value to set. + * @return the LogCaptureConfigurationPropertiesForPatchUpdate object itself. + */ + public LogCaptureConfigurationPropertiesForPatchUpdate withState(LogCaptureState state) { + this.state = state; + return this; + } + + /** + * Get the retentionDays property: The number of days captured log files are retained. + * + * @return the retentionDays value. + */ + public Integer retentionDays() { + return this.retentionDays; + } + + /** + * Set the retentionDays property: The number of days captured log files are retained. + * + * @param retentionDays the retentionDays value to set. + * @return the LogCaptureConfigurationPropertiesForPatchUpdate object itself. + */ + public LogCaptureConfigurationPropertiesForPatchUpdate withRetentionDays(Integer retentionDays) { + this.retentionDays = retentionDays; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("state", this.state == null ? null : this.state.toString()); + jsonWriter.writeNumberField("retentionDays", this.retentionDays); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of LogCaptureConfigurationPropertiesForPatchUpdate from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of LogCaptureConfigurationPropertiesForPatchUpdate 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 LogCaptureConfigurationPropertiesForPatchUpdate. + */ + public static LogCaptureConfigurationPropertiesForPatchUpdate fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + LogCaptureConfigurationPropertiesForPatchUpdate deserializedLogCaptureConfigurationPropertiesForPatchUpdate + = new LogCaptureConfigurationPropertiesForPatchUpdate(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("state".equals(fieldName)) { + deserializedLogCaptureConfigurationPropertiesForPatchUpdate.state + = LogCaptureState.fromString(reader.getString()); + } else if ("retentionDays".equals(fieldName)) { + deserializedLogCaptureConfigurationPropertiesForPatchUpdate.retentionDays + = reader.getNullable(JsonReader::getInt); + } else { + reader.skipChildren(); + } + } + + return deserializedLogCaptureConfigurationPropertiesForPatchUpdate; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogCaptureConfigurations.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogCaptureConfigurations.java new file mode 100644 index 0000000000000..ce5a9380738ab --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogCaptureConfigurations.java @@ -0,0 +1,100 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of LogCaptureConfigurations. + */ +public interface LogCaptureConfigurations { + /** + * Gets a log capture configuration for a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logCaptureConfigurationName The name of the LogCaptureConfiguration. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a log capture configuration for a HorizonDB cluster along with {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String clusterName, + String logCaptureConfigurationName, Context context); + + /** + * Gets a log capture configuration for a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logCaptureConfigurationName The name of the LogCaptureConfiguration. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a log capture configuration for a HorizonDB cluster. + */ + LogCaptureConfiguration get(String resourceGroupName, String clusterName, String logCaptureConfigurationName); + + /** + * Updates a log capture configuration. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logCaptureConfigurationName The name of the LogCaptureConfiguration. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a predefined log capture configuration created by the service for a HorizonDB cluster. + */ + LogCaptureConfiguration update(String resourceGroupName, String clusterName, String logCaptureConfigurationName, + LogCaptureConfigurationForPatchUpdate properties); + + /** + * Updates a log capture configuration. Omitted properties preserve their current values. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logCaptureConfigurationName The name of the LogCaptureConfiguration. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a predefined log capture configuration created by the service for a HorizonDB cluster. + */ + LogCaptureConfiguration update(String resourceGroupName, String clusterName, String logCaptureConfigurationName, + LogCaptureConfigurationForPatchUpdate properties, Context context); + + /** + * Lists the log capture configurations for a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LogCaptureConfiguration list operation as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String clusterName); + + /** + * Lists the log capture configurations for a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LogCaptureConfiguration list operation as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String clusterName, Context context); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogCaptureState.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogCaptureState.java new file mode 100644 index 0000000000000..bbe2d193a68d3 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogCaptureState.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Specifies whether HorizonDB captures log files. + */ +public final class LogCaptureState extends ExpandableStringEnum { + /** + * Log capture is enabled. + */ + public static final LogCaptureState ENABLED = fromString("Enabled"); + + /** + * Log capture is disabled. + */ + public static final LogCaptureState DISABLED = fromString("Disabled"); + + /** + * Creates a new instance of LogCaptureState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public LogCaptureState() { + } + + /** + * Creates or finds a LogCaptureState from its string representation. + * + * @param name a name to look for. + * @return the corresponding LogCaptureState. + */ + public static LogCaptureState fromString(String name) { + return fromString(name, LogCaptureState.class); + } + + /** + * Gets known LogCaptureState values. + * + * @return known LogCaptureState values. + */ + public static Collection values() { + return values(LogCaptureState.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogFile.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogFile.java new file mode 100644 index 0000000000000..ebf19a75898d5 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogFile.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.horizondb.fluent.models.LogFileInner; + +/** + * An immutable client-side representation of LogFile. + */ +public interface LogFile { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + LogFileProperties properties(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the inner com.azure.resourcemanager.horizondb.fluent.models.LogFileInner object. + * + * @return the inner object. + */ + LogFileInner innerModel(); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogFileDownloadUrl.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogFileDownloadUrl.java new file mode 100644 index 0000000000000..95baca9aaa0d4 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogFileDownloadUrl.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.horizondb.models; + +import com.azure.resourcemanager.horizondb.fluent.models.LogFileDownloadUrlInner; +import java.time.OffsetDateTime; + +/** + * An immutable client-side representation of LogFileDownloadUrl. + */ +public interface LogFileDownloadUrl { + /** + * Gets the downloadUri property: A short-lived signed URL from which the original log file can be downloaded. + * + * @return the downloadUri value. + */ + String downloadUri(); + + /** + * Gets the expiresAtUtc property: The date and time when the signed download URL expires, in UTC. + * + * @return the expiresAtUtc value. + */ + OffsetDateTime expiresAtUtc(); + + /** + * Gets the inner com.azure.resourcemanager.horizondb.fluent.models.LogFileDownloadUrlInner object. + * + * @return the inner object. + */ + LogFileDownloadUrlInner innerModel(); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogFileProperties.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogFileProperties.java new file mode 100644 index 0000000000000..a2e4d4cbd37c4 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogFileProperties.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.horizondb.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.CoreUtils; +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.time.OffsetDateTime; + +/** + * Metadata for a service-generated HorizonDB log file. + */ +@Immutable +public final class LogFileProperties implements JsonSerializable { + /* + * The type of the captured log file. + */ + private LogFileType logType; + + /* + * The date and time when the log file was created, in UTC. + */ + private OffsetDateTime createdAtUtc; + + /* + * The date and time when the log file was last modified, in UTC. + */ + private OffsetDateTime lastModifiedAtUtc; + + /* + * The date and time when the log file expires according to its retention period, in UTC. + */ + private OffsetDateTime retentionExpiresAtUtc; + + /* + * Whether the platform can still append to or otherwise modify the log file. + */ + private boolean isMutable; + + /* + * The size of the log file in kilobytes, where one kilobyte is 1024 bytes. + */ + private long sizeInKilobytes; + + /* + * The name of the HorizonDB pool that the node generating the log file belongs to. + */ + private String pool; + + /* + * The node that generated the log file in the HorizonDB cluster. + */ + private String node; + + /* + * The role performed by the node that generated the log file. + */ + private NodeRole role; + + /** + * Creates an instance of LogFileProperties class. + */ + private LogFileProperties() { + } + + /** + * Get the logType property: The type of the captured log file. + * + * @return the logType value. + */ + public LogFileType logType() { + return this.logType; + } + + /** + * Get the createdAtUtc property: The date and time when the log file was created, in UTC. + * + * @return the createdAtUtc value. + */ + public OffsetDateTime createdAtUtc() { + return this.createdAtUtc; + } + + /** + * Get the lastModifiedAtUtc property: The date and time when the log file was last modified, in UTC. + * + * @return the lastModifiedAtUtc value. + */ + public OffsetDateTime lastModifiedAtUtc() { + return this.lastModifiedAtUtc; + } + + /** + * Get the retentionExpiresAtUtc property: The date and time when the log file expires according to its retention + * period, in UTC. + * + * @return the retentionExpiresAtUtc value. + */ + public OffsetDateTime retentionExpiresAtUtc() { + return this.retentionExpiresAtUtc; + } + + /** + * Get the isMutable property: Whether the platform can still append to or otherwise modify the log file. + * + * @return the isMutable value. + */ + public boolean isMutable() { + return this.isMutable; + } + + /** + * Get the sizeInKilobytes property: The size of the log file in kilobytes, where one kilobyte is 1024 bytes. + * + * @return the sizeInKilobytes value. + */ + public long sizeInKilobytes() { + return this.sizeInKilobytes; + } + + /** + * Get the pool property: The name of the HorizonDB pool that the node generating the log file belongs to. + * + * @return the pool value. + */ + public String pool() { + return this.pool; + } + + /** + * Get the node property: The node that generated the log file in the HorizonDB cluster. + * + * @return the node value. + */ + public String node() { + return this.node; + } + + /** + * Get the role property: The role performed by the node that generated the log file. + * + * @return the role value. + */ + public NodeRole role() { + return this.role; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of LogFileProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of LogFileProperties 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 LogFileProperties. + */ + public static LogFileProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + LogFileProperties deserializedLogFileProperties = new LogFileProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("logType".equals(fieldName)) { + deserializedLogFileProperties.logType = LogFileType.fromString(reader.getString()); + } else if ("createdAtUtc".equals(fieldName)) { + deserializedLogFileProperties.createdAtUtc = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("lastModifiedAtUtc".equals(fieldName)) { + deserializedLogFileProperties.lastModifiedAtUtc = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("retentionExpiresAtUtc".equals(fieldName)) { + deserializedLogFileProperties.retentionExpiresAtUtc = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("isMutable".equals(fieldName)) { + deserializedLogFileProperties.isMutable = reader.getBoolean(); + } else if ("sizeInKilobytes".equals(fieldName)) { + deserializedLogFileProperties.sizeInKilobytes = reader.getLong(); + } else if ("pool".equals(fieldName)) { + deserializedLogFileProperties.pool = reader.getString(); + } else if ("node".equals(fieldName)) { + deserializedLogFileProperties.node = reader.getString(); + } else if ("role".equals(fieldName)) { + deserializedLogFileProperties.role = NodeRole.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedLogFileProperties; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogFileType.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogFileType.java new file mode 100644 index 0000000000000..85625bc5f7868 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogFileType.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.horizondb.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The type of a captured HorizonDB log file. + */ +public final class LogFileType extends ExpandableStringEnum { + /** + * A PostgreSQL server log file. + */ + public static final LogFileType POSTGRE_SQL_SERVER = fromString("PostgreSqlServer"); + + /** + * Creates a new instance of LogFileType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public LogFileType() { + } + + /** + * Creates or finds a LogFileType from its string representation. + * + * @param name a name to look for. + * @return the corresponding LogFileType. + */ + public static LogFileType fromString(String name) { + return fromString(name, LogFileType.class); + } + + /** + * Gets known LogFileType values. + * + * @return known LogFileType values. + */ + public static Collection values() { + return values(LogFileType.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogFiles.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogFiles.java new file mode 100644 index 0000000000000..b0ef01c3e5cdc --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/LogFiles.java @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of LogFiles. + */ +public interface LogFiles { + /** + * Gets metadata for a captured HorizonDB log file. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logFileName The name of the LogFile. + * @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 metadata for a captured HorizonDB log file along with {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String clusterName, String logFileName, + Context context); + + /** + * Gets metadata for a captured HorizonDB log file. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logFileName The name of the LogFile. + * @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 metadata for a captured HorizonDB log file. + */ + LogFile get(String resourceGroupName, String clusterName, String logFileName); + + /** + * Lists captured log files for a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LogFile list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String clusterName); + + /** + * Lists captured log files for a HorizonDB cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a LogFile list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String clusterName, Context context); + + /** + * Gets a short-lived signed URL for downloading a captured log file. The signed URL is returned only by this action + * so routine resource GET and LIST responses do not expose bearer credentials. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logFileName The name of the LogFile. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a short-lived signed URL for downloading a captured log file along with {@link Response}. + */ + Response listDownloadUrlsWithResponse(String resourceGroupName, String clusterName, + String logFileName, Context context); + + /** + * Gets a short-lived signed URL for downloading a captured log file. The signed URL is returned only by this action + * so routine resource GET and LIST responses do not expose bearer credentials. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param logFileName The name of the LogFile. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a short-lived signed URL for downloading a captured log file. + */ + LogFileDownloadUrl listDownloadUrls(String resourceGroupName, String clusterName, String logFileName); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MaintenanceEvent.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MaintenanceEvent.java new file mode 100644 index 0000000000000..38cbd27ca43b7 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MaintenanceEvent.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.horizondb.fluent.models.MaintenanceEventInner; + +/** + * An immutable client-side representation of MaintenanceEvent. + */ +public interface MaintenanceEvent { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + MaintenanceEventProperties properties(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the inner com.azure.resourcemanager.horizondb.fluent.models.MaintenanceEventInner object. + * + * @return the inner object. + */ + MaintenanceEventInner innerModel(); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MaintenanceEventActionResponse.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MaintenanceEventActionResponse.java new file mode 100644 index 0000000000000..287ca1a829cd2 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MaintenanceEventActionResponse.java @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.resourcemanager.horizondb.fluent.models.MaintenanceEventActionResponseInner; +import java.time.OffsetDateTime; + +/** + * An immutable client-side representation of MaintenanceEventActionResponse. + */ +public interface MaintenanceEventActionResponse { + /** + * Gets the maintenanceEventId property: The maintenance event identifier. + * + * @return the maintenanceEventId value. + */ + String maintenanceEventId(); + + /** + * Gets the poolResourceId property: The full Azure resource ID of the HorizonDB pool. + * + * @return the poolResourceId value. + */ + String poolResourceId(); + + /** + * Gets the status property: The status of the maintenance event. + * + * @return the status value. + */ + MaintenanceEventStatus status(); + + /** + * Gets the plannedStartTimeUtc property: The planned start time of the maintenance event in UTC. + * + * @return the plannedStartTimeUtc value. + */ + OffsetDateTime plannedStartTimeUtc(); + + /** + * Gets the plannedEndTimeUtc property: The planned end time of the maintenance event in UTC. + * + * @return the plannedEndTimeUtc value. + */ + OffsetDateTime plannedEndTimeUtc(); + + /** + * Gets the appliedNow property: Indicates whether the maintenance event was requested to be applied immediately. + * The value is true for apply-now and false for reschedule. + * + * @return the appliedNow value. + */ + Boolean appliedNow(); + + /** + * Gets the lastUpdatedTimeUtc property: The time when this maintenance event record was last updated, in UTC. + * + * @return the lastUpdatedTimeUtc value. + */ + OffsetDateTime lastUpdatedTimeUtc(); + + /** + * Gets the inner com.azure.resourcemanager.horizondb.fluent.models.MaintenanceEventActionResponseInner object. + * + * @return the inner object. + */ + MaintenanceEventActionResponseInner innerModel(); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MaintenanceEventProperties.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MaintenanceEventProperties.java new file mode 100644 index 0000000000000..715d5a2fc36cb --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MaintenanceEventProperties.java @@ -0,0 +1,271 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.util.CoreUtils; +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.time.Duration; +import java.time.OffsetDateTime; + +/** + * Properties of a maintenance event resource. + */ +@Immutable +public final class MaintenanceEventProperties implements JsonSerializable { + /* + * A service-generated identifier for this maintenance event, assigned by the platform. The format is not + * contractual, and clients should not attempt to parse or construct this value. + */ + private String maintenanceEventId; + + /* + * The maintenance type. + */ + private MaintenanceType maintenanceType; + + /* + * The human-readable description of the maintenance event. + */ + private String description; + + /* + * The customer-facing status of the maintenance event. + */ + private MaintenanceEventStatus status; + + /* + * The scheduled start time of the maintenance event in UTC. + */ + private OffsetDateTime startTimeUtc; + + /* + * The scheduled end time of the maintenance event in UTC. + */ + private OffsetDateTime endTimeUtc; + + /* + * The estimated downtime as an ISO 8601 duration string, for example, 'PT60S' for 60 seconds. + */ + private Duration estimatedDowntime; + + /* + * Indicates whether the customer can reschedule this maintenance event. + */ + private boolean deferrable; + + /* + * The latest date and time to which this maintenance event can be postponed, in UTC. This property is present only + * when deferrable is true. + */ + private OffsetDateTime deferralDeadlineUtc; + + /* + * The scheduled start time before the most recent reschedule, in UTC. This property is absent if the event has + * never been rescheduled. + */ + private OffsetDateTime rescheduledFromUtc; + + /* + * The time when this maintenance event record was last updated, in UTC. + */ + private OffsetDateTime lastUpdatedTimeUtc; + + /* + * The initially scheduled start time before any reschedule, in UTC. This value equals startTimeUtc when the event + * has never been rescheduled. + */ + private OffsetDateTime originalStartTimeUtc; + + /** + * Creates an instance of MaintenanceEventProperties class. + */ + private MaintenanceEventProperties() { + } + + /** + * Get the maintenanceEventId property: A service-generated identifier for this maintenance event, assigned by the + * platform. The format is not contractual, and clients should not attempt to parse or construct this value. + * + * @return the maintenanceEventId value. + */ + public String maintenanceEventId() { + return this.maintenanceEventId; + } + + /** + * Get the maintenanceType property: The maintenance type. + * + * @return the maintenanceType value. + */ + public MaintenanceType maintenanceType() { + return this.maintenanceType; + } + + /** + * Get the description property: The human-readable description of the maintenance event. + * + * @return the description value. + */ + public String description() { + return this.description; + } + + /** + * Get the status property: The customer-facing status of the maintenance event. + * + * @return the status value. + */ + public MaintenanceEventStatus status() { + return this.status; + } + + /** + * Get the startTimeUtc property: The scheduled start time of the maintenance event in UTC. + * + * @return the startTimeUtc value. + */ + public OffsetDateTime startTimeUtc() { + return this.startTimeUtc; + } + + /** + * Get the endTimeUtc property: The scheduled end time of the maintenance event in UTC. + * + * @return the endTimeUtc value. + */ + public OffsetDateTime endTimeUtc() { + return this.endTimeUtc; + } + + /** + * Get the estimatedDowntime property: The estimated downtime as an ISO 8601 duration string, for example, 'PT60S' + * for 60 seconds. + * + * @return the estimatedDowntime value. + */ + public Duration estimatedDowntime() { + return this.estimatedDowntime; + } + + /** + * Get the deferrable property: Indicates whether the customer can reschedule this maintenance event. + * + * @return the deferrable value. + */ + public boolean deferrable() { + return this.deferrable; + } + + /** + * Get the deferralDeadlineUtc property: The latest date and time to which this maintenance event can be postponed, + * in UTC. This property is present only when deferrable is true. + * + * @return the deferralDeadlineUtc value. + */ + public OffsetDateTime deferralDeadlineUtc() { + return this.deferralDeadlineUtc; + } + + /** + * Get the rescheduledFromUtc property: The scheduled start time before the most recent reschedule, in UTC. This + * property is absent if the event has never been rescheduled. + * + * @return the rescheduledFromUtc value. + */ + public OffsetDateTime rescheduledFromUtc() { + return this.rescheduledFromUtc; + } + + /** + * Get the lastUpdatedTimeUtc property: The time when this maintenance event record was last updated, in UTC. + * + * @return the lastUpdatedTimeUtc value. + */ + public OffsetDateTime lastUpdatedTimeUtc() { + return this.lastUpdatedTimeUtc; + } + + /** + * Get the originalStartTimeUtc property: The initially scheduled start time before any reschedule, in UTC. This + * value equals startTimeUtc when the event has never been rescheduled. + * + * @return the originalStartTimeUtc value. + */ + public OffsetDateTime originalStartTimeUtc() { + return this.originalStartTimeUtc; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MaintenanceEventProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MaintenanceEventProperties 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 MaintenanceEventProperties. + */ + public static MaintenanceEventProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MaintenanceEventProperties deserializedMaintenanceEventProperties = new MaintenanceEventProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("maintenanceType".equals(fieldName)) { + deserializedMaintenanceEventProperties.maintenanceType + = MaintenanceType.fromString(reader.getString()); + } else if ("status".equals(fieldName)) { + deserializedMaintenanceEventProperties.status + = MaintenanceEventStatus.fromString(reader.getString()); + } else if ("startTimeUtc".equals(fieldName)) { + deserializedMaintenanceEventProperties.startTimeUtc = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("endTimeUtc".equals(fieldName)) { + deserializedMaintenanceEventProperties.endTimeUtc = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("deferrable".equals(fieldName)) { + deserializedMaintenanceEventProperties.deferrable = reader.getBoolean(); + } else if ("originalStartTimeUtc".equals(fieldName)) { + deserializedMaintenanceEventProperties.originalStartTimeUtc = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("maintenanceEventId".equals(fieldName)) { + deserializedMaintenanceEventProperties.maintenanceEventId = reader.getString(); + } else if ("description".equals(fieldName)) { + deserializedMaintenanceEventProperties.description = reader.getString(); + } else if ("estimatedDowntime".equals(fieldName)) { + deserializedMaintenanceEventProperties.estimatedDowntime + = reader.getNullable(nonNullReader -> Duration.parse(nonNullReader.getString())); + } else if ("deferralDeadlineUtc".equals(fieldName)) { + deserializedMaintenanceEventProperties.deferralDeadlineUtc = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("rescheduledFromUtc".equals(fieldName)) { + deserializedMaintenanceEventProperties.rescheduledFromUtc = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else if ("lastUpdatedTimeUtc".equals(fieldName)) { + deserializedMaintenanceEventProperties.lastUpdatedTimeUtc = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else { + reader.skipChildren(); + } + } + + return deserializedMaintenanceEventProperties; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MaintenanceEventRescheduleRequest.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MaintenanceEventRescheduleRequest.java new file mode 100644 index 0000000000000..335f2f9a42b86 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MaintenanceEventRescheduleRequest.java @@ -0,0 +1,94 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.CoreUtils; +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.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; + +/** + * Parameters for rescheduling a maintenance event. + */ +@Fluent +public final class MaintenanceEventRescheduleRequest implements JsonSerializable { + /* + * The new start time in RFC 3339 format. + */ + private OffsetDateTime postponeToDateTimeUtc; + + /** + * Creates an instance of MaintenanceEventRescheduleRequest class. + */ + public MaintenanceEventRescheduleRequest() { + } + + /** + * Get the postponeToDateTimeUtc property: The new start time in RFC 3339 format. + * + * @return the postponeToDateTimeUtc value. + */ + public OffsetDateTime postponeToDateTimeUtc() { + return this.postponeToDateTimeUtc; + } + + /** + * Set the postponeToDateTimeUtc property: The new start time in RFC 3339 format. + * + * @param postponeToDateTimeUtc the postponeToDateTimeUtc value to set. + * @return the MaintenanceEventRescheduleRequest object itself. + */ + public MaintenanceEventRescheduleRequest withPostponeToDateTimeUtc(OffsetDateTime postponeToDateTimeUtc) { + this.postponeToDateTimeUtc = postponeToDateTimeUtc; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("postponeToDateTimeUtc", + this.postponeToDateTimeUtc == null + ? null + : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.postponeToDateTimeUtc)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MaintenanceEventRescheduleRequest from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MaintenanceEventRescheduleRequest 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 MaintenanceEventRescheduleRequest. + */ + public static MaintenanceEventRescheduleRequest fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MaintenanceEventRescheduleRequest deserializedMaintenanceEventRescheduleRequest + = new MaintenanceEventRescheduleRequest(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("postponeToDateTimeUtc".equals(fieldName)) { + deserializedMaintenanceEventRescheduleRequest.postponeToDateTimeUtc = reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); + } else { + reader.skipChildren(); + } + } + + return deserializedMaintenanceEventRescheduleRequest; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MaintenanceEventStatus.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MaintenanceEventStatus.java new file mode 100644 index 0000000000000..7eb0c9711ebbe --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MaintenanceEventStatus.java @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The status of a maintenance event. + */ +public final class MaintenanceEventStatus extends ExpandableStringEnum { + /** + * The maintenance event is scheduled and has not yet started. + */ + public static final MaintenanceEventStatus PLANNED = fromString("Planned"); + + /** + * The maintenance event is currently in progress. + */ + public static final MaintenanceEventStatus IN_PROGRESS = fromString("InProgress"); + + /** + * The maintenance event completed successfully. + */ + public static final MaintenanceEventStatus COMPLETE = fromString("Complete"); + + /** + * The customer rescheduled the maintenance event. + */ + public static final MaintenanceEventStatus RESCHEDULED = fromString("Rescheduled"); + + /** + * The maintenance event was canceled, failed, or timed out. + */ + public static final MaintenanceEventStatus CANCELED = fromString("Canceled"); + + /** + * Creates a new instance of MaintenanceEventStatus value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public MaintenanceEventStatus() { + } + + /** + * Creates or finds a MaintenanceEventStatus from its string representation. + * + * @param name a name to look for. + * @return the corresponding MaintenanceEventStatus. + */ + public static MaintenanceEventStatus fromString(String name) { + return fromString(name, MaintenanceEventStatus.class); + } + + /** + * Gets known MaintenanceEventStatus values. + * + * @return known MaintenanceEventStatus values. + */ + public static Collection values() { + return values(MaintenanceEventStatus.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MaintenanceEvents.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MaintenanceEvents.java new file mode 100644 index 0000000000000..ecc8ff66fb285 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MaintenanceEvents.java @@ -0,0 +1,141 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of MaintenanceEvents. + */ +public interface MaintenanceEvents { + /** + * Gets information about a maintenance event for a HorizonDB pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @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 information about a maintenance event for a HorizonDB pool along with {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String clusterName, String poolName, + String maintenanceEventId, Context context); + + /** + * Gets information about a maintenance event for a HorizonDB pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @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 information about a maintenance event for a HorizonDB pool. + */ + MaintenanceEvent get(String resourceGroupName, String clusterName, String poolName, String maintenanceEventId); + + /** + * Lists maintenance events for a HorizonDB pool. Use the OData $filter query parameter to filter by + * properties/status with the eq and or operators. For example, properties/status eq 'Planned' or properties/status + * eq 'InProgress' returns upcoming events. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a MaintenanceEvent list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String clusterName, String poolName); + + /** + * Lists maintenance events for a HorizonDB pool. Use the OData $filter query parameter to filter by + * properties/status with the eq and or operators. For example, properties/status eq 'Planned' or properties/status + * eq 'InProgress' returns upcoming events. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param filter The OData filter expression to apply to the list operation. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a MaintenanceEvent list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String clusterName, String poolName, String filter, + Context context); + + /** + * Reschedules a maintenance event to a new date and time. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @param body The content of the action request. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response from a maintenance event reschedule or apply-now action. + */ + MaintenanceEventActionResponse reschedule(String resourceGroupName, String clusterName, String poolName, + String maintenanceEventId, MaintenanceEventRescheduleRequest body); + + /** + * Reschedules a maintenance event to a new date and time. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @param body The content of the action request. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response from a maintenance event reschedule or apply-now action. + */ + MaintenanceEventActionResponse reschedule(String resourceGroupName, String clusterName, String poolName, + String maintenanceEventId, MaintenanceEventRescheduleRequest body, Context context); + + /** + * Applies the maintenance event immediately. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response from a maintenance event reschedule or apply-now action. + */ + MaintenanceEventActionResponse applyNow(String resourceGroupName, String clusterName, String poolName, + String maintenanceEventId); + + /** + * Applies the maintenance event immediately. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @param maintenanceEventId The identifier of the maintenance event. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response from a maintenance event reschedule or apply-now action. + */ + MaintenanceEventActionResponse applyNow(String resourceGroupName, String clusterName, String poolName, + String maintenanceEventId, Context context); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MaintenanceType.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MaintenanceType.java new file mode 100644 index 0000000000000..426b54f1908c1 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MaintenanceType.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.horizondb.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The type of a maintenance event. + */ +public final class MaintenanceType extends ExpandableStringEnum { + /** + * A planned maintenance event. + */ + public static final MaintenanceType PLANNED_MAINTENANCE = fromString("PlannedMaintenance"); + + /** + * Creates a new instance of MaintenanceType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public MaintenanceType() { + } + + /** + * Creates or finds a MaintenanceType from its string representation. + * + * @param name a name to look for. + * @return the corresponding MaintenanceType. + */ + public static MaintenanceType fromString(String name) { + return fromString(name, MaintenanceType.class); + } + + /** + * Gets known MaintenanceType values. + * + * @return known MaintenanceType values. + */ + public static Collection values() { + return values(MaintenanceType.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ManagedServiceIdentity.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ManagedServiceIdentity.java deleted file mode 100644 index 47743d33059fa..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ManagedServiceIdentity.java +++ /dev/null @@ -1,154 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.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; - -/** - * Managed service identity (system assigned and/or user assigned identities). - */ -@Fluent -public final class ManagedServiceIdentity implements JsonSerializable { - /* - * The service principal ID of the system assigned identity. This property will only be provided for a system - * assigned identity. - */ - private String principalId; - - /* - * The tenant ID of the system assigned identity. This property will only be provided for a system assigned - * identity. - */ - private String tenantId; - - /* - * The type of managed identity assigned to this resource. - */ - private ManagedServiceIdentityType type; - - /* - * The identities assigned to this resource by the user. - */ - private Map userAssignedIdentities; - - /** - * Creates an instance of ManagedServiceIdentity class. - */ - public ManagedServiceIdentity() { - } - - /** - * Get the principalId property: The service principal ID of the system assigned identity. This property will only - * be provided for a system assigned identity. - * - * @return the principalId value. - */ - public String principalId() { - return this.principalId; - } - - /** - * Get the tenantId property: The tenant ID of the system assigned identity. This property will only be provided for - * a system assigned identity. - * - * @return the tenantId value. - */ - public String tenantId() { - return this.tenantId; - } - - /** - * Get the type property: The type of managed identity assigned to this resource. - * - * @return the type value. - */ - public ManagedServiceIdentityType type() { - return this.type; - } - - /** - * Set the type property: The type of managed identity assigned to this resource. - * - * @param type the type value to set. - * @return the ManagedServiceIdentity object itself. - */ - public ManagedServiceIdentity withType(ManagedServiceIdentityType type) { - this.type = type; - return this; - } - - /** - * Get the userAssignedIdentities property: The identities assigned to this resource by the user. - * - * @return the userAssignedIdentities value. - */ - public Map userAssignedIdentities() { - return this.userAssignedIdentities; - } - - /** - * Set the userAssignedIdentities property: The identities assigned to this resource by the user. - * - * @param userAssignedIdentities the userAssignedIdentities value to set. - * @return the ManagedServiceIdentity object itself. - */ - public ManagedServiceIdentity withUserAssignedIdentities(Map userAssignedIdentities) { - this.userAssignedIdentities = userAssignedIdentities; - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); - jsonWriter.writeMapField("userAssignedIdentities", this.userAssignedIdentities, - (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ManagedServiceIdentity from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ManagedServiceIdentity 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 ManagedServiceIdentity. - */ - public static ManagedServiceIdentity fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ManagedServiceIdentity deserializedManagedServiceIdentity = new ManagedServiceIdentity(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("type".equals(fieldName)) { - deserializedManagedServiceIdentity.type = ManagedServiceIdentityType.fromString(reader.getString()); - } else if ("principalId".equals(fieldName)) { - deserializedManagedServiceIdentity.principalId = reader.getString(); - } else if ("tenantId".equals(fieldName)) { - deserializedManagedServiceIdentity.tenantId = reader.getString(); - } else if ("userAssignedIdentities".equals(fieldName)) { - Map userAssignedIdentities - = reader.readMap(reader1 -> UserAssignedIdentity.fromJson(reader1)); - deserializedManagedServiceIdentity.userAssignedIdentities = userAssignedIdentities; - } else { - reader.skipChildren(); - } - } - - return deserializedManagedServiceIdentity; - }); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ManagedServiceIdentityType.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ManagedServiceIdentityType.java deleted file mode 100644 index 92a725b0a3116..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ManagedServiceIdentityType.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Type of managed service identity (where both SystemAssigned and UserAssigned types are allowed). - */ -public final class ManagedServiceIdentityType extends ExpandableStringEnum { - /** - * No managed identity. - */ - public static final ManagedServiceIdentityType NONE = fromString("None"); - - /** - * System assigned managed identity. - */ - public static final ManagedServiceIdentityType SYSTEM_ASSIGNED = fromString("SystemAssigned"); - - /** - * User assigned managed identity. - */ - public static final ManagedServiceIdentityType USER_ASSIGNED = fromString("UserAssigned"); - - /** - * System and user assigned managed identity. - */ - public static final ManagedServiceIdentityType SYSTEM_ASSIGNED_USER_ASSIGNED - = fromString("SystemAssigned,UserAssigned"); - - /** - * Creates a new instance of ManagedServiceIdentityType value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ManagedServiceIdentityType() { - } - - /** - * Creates or finds a ManagedServiceIdentityType from its string representation. - * - * @param name a name to look for. - * @return the corresponding ManagedServiceIdentityType. - */ - public static ManagedServiceIdentityType fromString(String name) { - return fromString(name, ManagedServiceIdentityType.class); - } - - /** - * Gets known ManagedServiceIdentityType values. - * - * @return known ManagedServiceIdentityType values. - */ - public static Collection values() { - return values(ManagedServiceIdentityType.class); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAdministrator.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAdministrator.java new file mode 100644 index 0000000000000..3c2261dfdbc42 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAdministrator.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.horizondb.models; + +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.horizondb.fluent.models.MicrosoftEntraAdministratorInner; + +/** + * An immutable client-side representation of MicrosoftEntraAdministrator. + */ +public interface MicrosoftEntraAdministrator { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + MicrosoftEntraAdministratorProperties properties(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the inner com.azure.resourcemanager.horizondb.fluent.models.MicrosoftEntraAdministratorInner object. + * + * @return the inner object. + */ + MicrosoftEntraAdministratorInner innerModel(); + + /** + * The entirety of the MicrosoftEntraAdministrator definition. + */ + interface Definition extends DefinitionStages.Blank, DefinitionStages.WithParentResource, + DefinitionStages.WithProperties, DefinitionStages.WithCreate { + } + + /** + * The MicrosoftEntraAdministrator definition stages. + */ + interface DefinitionStages { + /** + * The first stage of the MicrosoftEntraAdministrator definition. + */ + interface Blank extends WithParentResource { + } + + /** + * The stage of the MicrosoftEntraAdministrator definition allowing to specify parent resource. + */ + interface WithParentResource { + /** + * Specifies resourceGroupName, clusterName. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @return the next definition stage. + */ + WithProperties withExistingCluster(String resourceGroupName, String clusterName); + } + + /** + * The stage of the MicrosoftEntraAdministrator definition allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: The PostgreSQL role and Microsoft Entra principal mapping properties.. + * + * @param properties The PostgreSQL role and Microsoft Entra principal mapping properties. + * @return the next definition stage. + */ + WithCreate withProperties(MicrosoftEntraAdministratorPropertiesForAdd properties); + } + + /** + * The stage of the MicrosoftEntraAdministrator definition which contains all the minimum required properties + * for the resource to be created, but also allows for any other optional properties to be specified. + */ + interface WithCreate { + /** + * Executes the create request. + * + * @return the created resource. + */ + MicrosoftEntraAdministrator create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + MicrosoftEntraAdministrator create(Context context); + } + } + + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + MicrosoftEntraAdministrator refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + MicrosoftEntraAdministrator refresh(Context context); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbReplicaForPatchUpdate.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAdministratorAdd.java similarity index 51% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbReplicaForPatchUpdate.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAdministratorAdd.java index e6d26b868bd7f..49ef600198b7d 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbReplicaForPatchUpdate.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAdministratorAdd.java @@ -12,37 +12,38 @@ import java.io.IOException; /** - * HorizonDB replica for update operations. + * The request body for creating or updating a PostgreSQL role that is a member of azure_pg_admin and mapped to a + * Microsoft Entra principal. */ @Fluent -public final class HorizonDbReplicaForPatchUpdate implements JsonSerializable { +public final class MicrosoftEntraAdministratorAdd implements JsonSerializable { /* - * Properties of a HorizonDB replica for update operations. + * The PostgreSQL role and Microsoft Entra principal mapping properties. */ - private HorizonDbReplicaPropertiesForPatchUpdate properties; + private MicrosoftEntraAdministratorPropertiesForAdd properties; /** - * Creates an instance of HorizonDbReplicaForPatchUpdate class. + * Creates an instance of MicrosoftEntraAdministratorAdd class. */ - public HorizonDbReplicaForPatchUpdate() { + public MicrosoftEntraAdministratorAdd() { } /** - * Get the properties property: Properties of a HorizonDB replica for update operations. + * Get the properties property: The PostgreSQL role and Microsoft Entra principal mapping properties. * * @return the properties value. */ - public HorizonDbReplicaPropertiesForPatchUpdate properties() { + public MicrosoftEntraAdministratorPropertiesForAdd properties() { return this.properties; } /** - * Set the properties property: Properties of a HorizonDB replica for update operations. + * Set the properties property: The PostgreSQL role and Microsoft Entra principal mapping properties. * * @param properties the properties value to set. - * @return the HorizonDbReplicaForPatchUpdate object itself. + * @return the MicrosoftEntraAdministratorAdd object itself. */ - public HorizonDbReplicaForPatchUpdate withProperties(HorizonDbReplicaPropertiesForPatchUpdate properties) { + public MicrosoftEntraAdministratorAdd withProperties(MicrosoftEntraAdministratorPropertiesForAdd properties) { this.properties = properties; return this; } @@ -58,30 +59,31 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { } /** - * Reads an instance of HorizonDbReplicaForPatchUpdate from the JsonReader. + * Reads an instance of MicrosoftEntraAdministratorAdd from the JsonReader. * * @param jsonReader The JsonReader being read. - * @return An instance of HorizonDbReplicaForPatchUpdate if the JsonReader was pointing to an instance of it, or + * @return An instance of MicrosoftEntraAdministratorAdd 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 HorizonDbReplicaForPatchUpdate. + * @throws IllegalStateException If the deserialized JSON object was missing any required properties. + * @throws IOException If an error occurs while reading the MicrosoftEntraAdministratorAdd. */ - public static HorizonDbReplicaForPatchUpdate fromJson(JsonReader jsonReader) throws IOException { + public static MicrosoftEntraAdministratorAdd fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { - HorizonDbReplicaForPatchUpdate deserializedHorizonDbReplicaForPatchUpdate - = new HorizonDbReplicaForPatchUpdate(); + MicrosoftEntraAdministratorAdd deserializedMicrosoftEntraAdministratorAdd + = new MicrosoftEntraAdministratorAdd(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); if ("properties".equals(fieldName)) { - deserializedHorizonDbReplicaForPatchUpdate.properties - = HorizonDbReplicaPropertiesForPatchUpdate.fromJson(reader); + deserializedMicrosoftEntraAdministratorAdd.properties + = MicrosoftEntraAdministratorPropertiesForAdd.fromJson(reader); } else { reader.skipChildren(); } } - return deserializedHorizonDbReplicaForPatchUpdate; + return deserializedMicrosoftEntraAdministratorAdd; }); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAdministratorProperties.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAdministratorProperties.java new file mode 100644 index 0000000000000..1f7fc1e595ab4 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAdministratorProperties.java @@ -0,0 +1,154 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Properties of a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra principal. + */ +@Immutable +public final class MicrosoftEntraAdministratorProperties + implements JsonSerializable { + /* + * The display name or user principal name of the Microsoft Entra principal mapped to the PostgreSQL role. For + * users, this is typically the user principal name, such as admin@contoso.com. For groups, this is the group + * display name. For service principals, this is the application display name. + */ + private String principalName; + + /* + * The type of Microsoft Entra principal mapped to the PostgreSQL role. + */ + private PrincipalTypes principalType; + + /* + * The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented as an RFC 4122 + * GUID. On PUT requests, this value comes from the URI path parameter. + */ + private String objectId; + + /* + * The identifier of the Microsoft Entra tenant containing the mapped principal, represented as an RFC 4122 GUID. If + * omitted, this value defaults to the tenant of the subscription. + */ + private String tenantId; + + /* + * The provisioning state of the PostgreSQL role and Microsoft Entra principal mapping. + */ + private ProvisioningState provisioningState; + + /** + * Creates an instance of MicrosoftEntraAdministratorProperties class. + */ + private MicrosoftEntraAdministratorProperties() { + } + + /** + * Get the principalName property: The display name or user principal name of the Microsoft Entra principal mapped + * to the PostgreSQL role. For users, this is typically the user principal name, such as admin@contoso.com. For + * groups, this is the group display name. For service principals, this is the application display name. + * + * @return the principalName value. + */ + public String principalName() { + return this.principalName; + } + + /** + * Get the principalType property: The type of Microsoft Entra principal mapped to the PostgreSQL role. + * + * @return the principalType value. + */ + public PrincipalTypes principalType() { + return this.principalType; + } + + /** + * Get the objectId property: The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, + * represented as an RFC 4122 GUID. On PUT requests, this value comes from the URI path parameter. + * + * @return the objectId value. + */ + public String objectId() { + return this.objectId; + } + + /** + * Get the tenantId property: The identifier of the Microsoft Entra tenant containing the mapped principal, + * represented as an RFC 4122 GUID. If omitted, this value defaults to the tenant of the subscription. + * + * @return the tenantId value. + */ + public String tenantId() { + return this.tenantId; + } + + /** + * Get the provisioningState property: The provisioning state of the PostgreSQL role and Microsoft Entra principal + * mapping. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("principalName", this.principalName); + jsonWriter.writeStringField("principalType", this.principalType == null ? null : this.principalType.toString()); + jsonWriter.writeStringField("tenantId", this.tenantId); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MicrosoftEntraAdministratorProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MicrosoftEntraAdministratorProperties 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 MicrosoftEntraAdministratorProperties. + */ + public static MicrosoftEntraAdministratorProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MicrosoftEntraAdministratorProperties deserializedMicrosoftEntraAdministratorProperties + = new MicrosoftEntraAdministratorProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("principalName".equals(fieldName)) { + deserializedMicrosoftEntraAdministratorProperties.principalName = reader.getString(); + } else if ("principalType".equals(fieldName)) { + deserializedMicrosoftEntraAdministratorProperties.principalType + = PrincipalTypes.fromString(reader.getString()); + } else if ("objectId".equals(fieldName)) { + deserializedMicrosoftEntraAdministratorProperties.objectId = reader.getString(); + } else if ("tenantId".equals(fieldName)) { + deserializedMicrosoftEntraAdministratorProperties.tenantId = reader.getString(); + } else if ("provisioningState".equals(fieldName)) { + deserializedMicrosoftEntraAdministratorProperties.provisioningState + = ProvisioningState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedMicrosoftEntraAdministratorProperties; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAdministratorPropertiesForAdd.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAdministratorPropertiesForAdd.java new file mode 100644 index 0000000000000..4d8cd8a03bdb5 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAdministratorPropertiesForAdd.java @@ -0,0 +1,155 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.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; + +/** + * Properties for creating or updating a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft + * Entra principal. + */ +@Fluent +public final class MicrosoftEntraAdministratorPropertiesForAdd + implements JsonSerializable { + /* + * The display name or user principal name of the Microsoft Entra principal to map to the PostgreSQL role. For + * users, this is typically the user principal name, such as admin@contoso.com. For groups, this is the group + * display name. For service principals, this is the application display name. + */ + private String principalName; + + /* + * The type of Microsoft Entra principal to map to the PostgreSQL role. + */ + private PrincipalTypes principalType; + + /* + * The identifier of the Microsoft Entra tenant containing the principal to map, represented as an RFC 4122 GUID. If + * omitted, this value defaults to the tenant of the subscription. + */ + private String tenantId; + + /** + * Creates an instance of MicrosoftEntraAdministratorPropertiesForAdd class. + */ + public MicrosoftEntraAdministratorPropertiesForAdd() { + } + + /** + * Get the principalName property: The display name or user principal name of the Microsoft Entra principal to map + * to the PostgreSQL role. For users, this is typically the user principal name, such as admin@contoso.com. For + * groups, this is the group display name. For service principals, this is the application display name. + * + * @return the principalName value. + */ + public String principalName() { + return this.principalName; + } + + /** + * Set the principalName property: The display name or user principal name of the Microsoft Entra principal to map + * to the PostgreSQL role. For users, this is typically the user principal name, such as admin@contoso.com. For + * groups, this is the group display name. For service principals, this is the application display name. + * + * @param principalName the principalName value to set. + * @return the MicrosoftEntraAdministratorPropertiesForAdd object itself. + */ + public MicrosoftEntraAdministratorPropertiesForAdd withPrincipalName(String principalName) { + this.principalName = principalName; + return this; + } + + /** + * Get the principalType property: The type of Microsoft Entra principal to map to the PostgreSQL role. + * + * @return the principalType value. + */ + public PrincipalTypes principalType() { + return this.principalType; + } + + /** + * Set the principalType property: The type of Microsoft Entra principal to map to the PostgreSQL role. + * + * @param principalType the principalType value to set. + * @return the MicrosoftEntraAdministratorPropertiesForAdd object itself. + */ + public MicrosoftEntraAdministratorPropertiesForAdd withPrincipalType(PrincipalTypes principalType) { + this.principalType = principalType; + return this; + } + + /** + * Get the tenantId property: The identifier of the Microsoft Entra tenant containing the principal to map, + * represented as an RFC 4122 GUID. If omitted, this value defaults to the tenant of the subscription. + * + * @return the tenantId value. + */ + public String tenantId() { + return this.tenantId; + } + + /** + * Set the tenantId property: The identifier of the Microsoft Entra tenant containing the principal to map, + * represented as an RFC 4122 GUID. If omitted, this value defaults to the tenant of the subscription. + * + * @param tenantId the tenantId value to set. + * @return the MicrosoftEntraAdministratorPropertiesForAdd object itself. + */ + public MicrosoftEntraAdministratorPropertiesForAdd withTenantId(String tenantId) { + this.tenantId = tenantId; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("principalName", this.principalName); + jsonWriter.writeStringField("principalType", this.principalType == null ? null : this.principalType.toString()); + jsonWriter.writeStringField("tenantId", this.tenantId); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MicrosoftEntraAdministratorPropertiesForAdd from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MicrosoftEntraAdministratorPropertiesForAdd 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 MicrosoftEntraAdministratorPropertiesForAdd. + */ + public static MicrosoftEntraAdministratorPropertiesForAdd fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MicrosoftEntraAdministratorPropertiesForAdd deserializedMicrosoftEntraAdministratorPropertiesForAdd + = new MicrosoftEntraAdministratorPropertiesForAdd(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("principalName".equals(fieldName)) { + deserializedMicrosoftEntraAdministratorPropertiesForAdd.principalName = reader.getString(); + } else if ("principalType".equals(fieldName)) { + deserializedMicrosoftEntraAdministratorPropertiesForAdd.principalType + = PrincipalTypes.fromString(reader.getString()); + } else if ("tenantId".equals(fieldName)) { + deserializedMicrosoftEntraAdministratorPropertiesForAdd.tenantId = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedMicrosoftEntraAdministratorPropertiesForAdd; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAdministrators.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAdministrators.java new file mode 100644 index 0000000000000..f9d6c9a8ee16b --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAdministrators.java @@ -0,0 +1,160 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of MicrosoftEntraAdministrators. + */ +public interface MicrosoftEntraAdministrators { + /** + * Gets information about a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. + * @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 information about a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal along with {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String clusterName, String objectId, + Context context); + + /** + * Gets information about a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. + * @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 information about a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal. + */ + MicrosoftEntraAdministrator get(String resourceGroupName, String clusterName, String objectId); + + /** + * Deletes a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra principal. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. + * @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 delete(String resourceGroupName, String clusterName, String objectId); + + /** + * Deletes a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra principal. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param objectId The Microsoft Entra object identifier of the principal mapped to the PostgreSQL role, represented + * as an RFC 4122 GUID. + * @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 delete(String resourceGroupName, String clusterName, String objectId, Context context); + + /** + * Lists the PostgreSQL roles in a cluster that are members of azure_pg_admin and mapped to Microsoft Entra + * principals. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a MicrosoftEntraAdministrator list operation as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String clusterName); + + /** + * Lists the PostgreSQL roles in a cluster that are members of azure_pg_admin and mapped to Microsoft Entra + * principals. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a MicrosoftEntraAdministrator list operation as paginated response with + * {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String clusterName, Context context); + + /** + * Gets information about a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal. + * + * @param id the resource ID. + * @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 information about a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal along with {@link Response}. + */ + MicrosoftEntraAdministrator getById(String id); + + /** + * Gets information about a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal. + * + * @param id the resource ID. + * @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 information about a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra + * principal along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); + + /** + * Deletes a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra principal. + * + * @param id the resource ID. + * @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 deleteById(String id); + + /** + * Deletes a PostgreSQL role that is a member of azure_pg_admin and mapped to a Microsoft Entra principal. + * + * @param id the resource ID. + * @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 deleteByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new MicrosoftEntraAdministrator resource. + * + * @param name resource name. + * @return the first stage of the new MicrosoftEntraAdministrator definition. + */ + MicrosoftEntraAdministrator.DefinitionStages.Blank define(String name); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAuthentication.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAuthentication.java new file mode 100644 index 0000000000000..96a2531cb04e7 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAuthentication.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.horizondb.fluent.models.MicrosoftEntraAuthenticationInner; + +/** + * An immutable client-side representation of MicrosoftEntraAuthentication. + */ +public interface MicrosoftEntraAuthentication { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + MicrosoftEntraAuthenticationProperties properties(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the inner com.azure.resourcemanager.horizondb.fluent.models.MicrosoftEntraAuthenticationInner object. + * + * @return the inner object. + */ + MicrosoftEntraAuthenticationInner innerModel(); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAuthenticationForPatchUpdate.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAuthenticationForPatchUpdate.java new file mode 100644 index 0000000000000..8adc3f1f58b84 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAuthenticationForPatchUpdate.java @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.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; + +/** + * A sparse update request for Microsoft Entra authentication. + */ +@Fluent +public final class MicrosoftEntraAuthenticationForPatchUpdate + implements JsonSerializable { + /* + * The Microsoft Entra authentication properties to update. + */ + private MicrosoftEntraAuthenticationPropertiesForPatchUpdate properties; + + /** + * Creates an instance of MicrosoftEntraAuthenticationForPatchUpdate class. + */ + public MicrosoftEntraAuthenticationForPatchUpdate() { + } + + /** + * Get the properties property: The Microsoft Entra authentication properties to update. + * + * @return the properties value. + */ + public MicrosoftEntraAuthenticationPropertiesForPatchUpdate properties() { + return this.properties; + } + + /** + * Set the properties property: The Microsoft Entra authentication properties to update. + * + * @param properties the properties value to set. + * @return the MicrosoftEntraAuthenticationForPatchUpdate object itself. + */ + public MicrosoftEntraAuthenticationForPatchUpdate + withProperties(MicrosoftEntraAuthenticationPropertiesForPatchUpdate properties) { + this.properties = properties; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MicrosoftEntraAuthenticationForPatchUpdate from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MicrosoftEntraAuthenticationForPatchUpdate 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 MicrosoftEntraAuthenticationForPatchUpdate. + */ + public static MicrosoftEntraAuthenticationForPatchUpdate fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MicrosoftEntraAuthenticationForPatchUpdate deserializedMicrosoftEntraAuthenticationForPatchUpdate + = new MicrosoftEntraAuthenticationForPatchUpdate(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("properties".equals(fieldName)) { + deserializedMicrosoftEntraAuthenticationForPatchUpdate.properties + = MicrosoftEntraAuthenticationPropertiesForPatchUpdate.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedMicrosoftEntraAuthenticationForPatchUpdate; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAuthenticationProperties.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAuthenticationProperties.java new file mode 100644 index 0000000000000..5021c388547fa --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAuthenticationProperties.java @@ -0,0 +1,106 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.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; + +/** + * Properties of the service-created Microsoft Entra authentication method. + */ +@Fluent +public final class MicrosoftEntraAuthenticationProperties + implements JsonSerializable { + /* + * The state of Microsoft Entra authentication. + */ + private AuthenticationState state; + + /* + * The provisioning state of the Microsoft Entra authentication method. + */ + private ProvisioningState provisioningState; + + /** + * Creates an instance of MicrosoftEntraAuthenticationProperties class. + */ + public MicrosoftEntraAuthenticationProperties() { + } + + /** + * Get the state property: The state of Microsoft Entra authentication. + * + * @return the state value. + */ + public AuthenticationState state() { + return this.state; + } + + /** + * Set the state property: The state of Microsoft Entra authentication. + * + * @param state the state value to set. + * @return the MicrosoftEntraAuthenticationProperties object itself. + */ + public MicrosoftEntraAuthenticationProperties withState(AuthenticationState state) { + this.state = state; + return this; + } + + /** + * Get the provisioningState property: The provisioning state of the Microsoft Entra authentication method. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("state", this.state == null ? null : this.state.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MicrosoftEntraAuthenticationProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MicrosoftEntraAuthenticationProperties 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 MicrosoftEntraAuthenticationProperties. + */ + public static MicrosoftEntraAuthenticationProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + MicrosoftEntraAuthenticationProperties deserializedMicrosoftEntraAuthenticationProperties + = new MicrosoftEntraAuthenticationProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("state".equals(fieldName)) { + deserializedMicrosoftEntraAuthenticationProperties.state + = AuthenticationState.fromString(reader.getString()); + } else if ("provisioningState".equals(fieldName)) { + deserializedMicrosoftEntraAuthenticationProperties.provisioningState + = ProvisioningState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedMicrosoftEntraAuthenticationProperties; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAuthenticationPropertiesForPatchUpdate.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAuthenticationPropertiesForPatchUpdate.java new file mode 100644 index 0000000000000..6dadcd9cd31f7 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAuthenticationPropertiesForPatchUpdate.java @@ -0,0 +1,91 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.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; + +/** + * Properties for updating Microsoft Entra authentication. State Enabled enables the feature and State Disabled disables + * it. Disabling Microsoft Entra authentication does not remove or modify database roles or users previously created + * through the MicrosoftEntraAdministrators control-plane API or directly through pgaadauth extension functions. + */ +@Fluent +public final class MicrosoftEntraAuthenticationPropertiesForPatchUpdate + implements JsonSerializable { + /* + * The target Microsoft Entra authentication state. Omission preserves the current state. + */ + private AuthenticationState state; + + /** + * Creates an instance of MicrosoftEntraAuthenticationPropertiesForPatchUpdate class. + */ + public MicrosoftEntraAuthenticationPropertiesForPatchUpdate() { + } + + /** + * Get the state property: The target Microsoft Entra authentication state. Omission preserves the current state. + * + * @return the state value. + */ + public AuthenticationState state() { + return this.state; + } + + /** + * Set the state property: The target Microsoft Entra authentication state. Omission preserves the current state. + * + * @param state the state value to set. + * @return the MicrosoftEntraAuthenticationPropertiesForPatchUpdate object itself. + */ + public MicrosoftEntraAuthenticationPropertiesForPatchUpdate withState(AuthenticationState state) { + this.state = state; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("state", this.state == null ? null : this.state.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of MicrosoftEntraAuthenticationPropertiesForPatchUpdate from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of MicrosoftEntraAuthenticationPropertiesForPatchUpdate 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 MicrosoftEntraAuthenticationPropertiesForPatchUpdate. + */ + public static MicrosoftEntraAuthenticationPropertiesForPatchUpdate fromJson(JsonReader jsonReader) + throws IOException { + return jsonReader.readObject(reader -> { + MicrosoftEntraAuthenticationPropertiesForPatchUpdate deserializedMicrosoftEntraAuthenticationPropertiesForPatchUpdate + = new MicrosoftEntraAuthenticationPropertiesForPatchUpdate(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("state".equals(fieldName)) { + deserializedMicrosoftEntraAuthenticationPropertiesForPatchUpdate.state + = AuthenticationState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedMicrosoftEntraAuthenticationPropertiesForPatchUpdate; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAuthentications.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAuthentications.java new file mode 100644 index 0000000000000..5f15a07d769cf --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAuthentications.java @@ -0,0 +1,110 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; +import com.azure.resourcemanager.horizondb.fluent.models.MicrosoftEntraAuthenticationInner; + +/** + * Resource collection API of MicrosoftEntraAuthentications. + */ +public interface MicrosoftEntraAuthentications { + /** + * Gets the service-created Microsoft Entra authentication method. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created Microsoft Entra authentication method along with {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String clusterName, + Context context); + + /** + * Gets the service-created Microsoft Entra authentication method. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB 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 service-created Microsoft Entra authentication method. + */ + MicrosoftEntraAuthentication get(String resourceGroupName, String clusterName); + + /** + * Creates or replaces the service-created Microsoft Entra authentication method. State Enabled enables the feature + * and State Disabled disables it; no additional properties are required. Repeating the same request is idempotent. + * Disabling the feature does not remove or modify database roles or users previously created through the + * MicrosoftEntraAdministrators control-plane API or directly through pgaadauth extension functions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created Microsoft Entra authentication method for a HorizonDB cluster. + */ + MicrosoftEntraAuthentication createOrReplace(String resourceGroupName, String clusterName, + MicrosoftEntraAuthenticationInner resource); + + /** + * Creates or replaces the service-created Microsoft Entra authentication method. State Enabled enables the feature + * and State Disabled disables it; no additional properties are required. Repeating the same request is idempotent. + * Disabling the feature does not remove or modify database roles or users previously created through the + * MicrosoftEntraAdministrators control-plane API or directly through pgaadauth extension functions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created Microsoft Entra authentication method for a HorizonDB cluster. + */ + MicrosoftEntraAuthentication createOrReplace(String resourceGroupName, String clusterName, + MicrosoftEntraAuthenticationInner resource, Context context); + + /** + * Updates the service-created Microsoft Entra authentication method. State Enabled enables the feature and State + * Disabled disables it; no additional properties are required. Disabling the feature does not remove or modify + * database roles or users previously created through the MicrosoftEntraAdministrators control-plane API or directly + * through pgaadauth extension functions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created Microsoft Entra authentication method for a HorizonDB cluster. + */ + MicrosoftEntraAuthentication update(String resourceGroupName, String clusterName, + MicrosoftEntraAuthenticationForPatchUpdate properties); + + /** + * Updates the service-created Microsoft Entra authentication method. State Enabled enables the feature and State + * Disabled disables it; no additional properties are required. Disabling the feature does not remove or modify + * database roles or users previously created through the MicrosoftEntraAdministrators control-plane API or directly + * through pgaadauth extension functions. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created Microsoft Entra authentication method for a HorizonDB cluster. + */ + MicrosoftEntraAuthentication update(String resourceGroupName, String clusterName, + MicrosoftEntraAuthenticationForPatchUpdate properties, Context context); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Network.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Network.java index aa84d3a8a64c8..e6faf0f3ad485 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Network.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Network.java @@ -4,7 +4,7 @@ package com.azure.resourcemanager.horizondb.models; -import com.azure.core.annotation.Immutable; +import com.azure.core.annotation.Fluent; import com.azure.json.JsonReader; import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; @@ -14,12 +14,13 @@ /** * Network properties. */ -@Immutable +@Fluent public final class Network implements JsonSerializable { /* - * The flag indicating whether public ip is requested. + * Specifies whether public access is enabled for the cluster. The service defaults to Disabled when this property + * is omitted. */ - private PublicNetworkAccessState publicNetworkAccess; + private PublicNetworkAccessState publicAccess; /** * Creates an instance of Network class. @@ -28,12 +29,25 @@ public Network() { } /** - * Get the publicNetworkAccess property: The flag indicating whether public ip is requested. + * Get the publicAccess property: Specifies whether public access is enabled for the cluster. The service defaults + * to Disabled when this property is omitted. * - * @return the publicNetworkAccess value. + * @return the publicAccess value. */ - public PublicNetworkAccessState publicNetworkAccess() { - return this.publicNetworkAccess; + public PublicNetworkAccessState publicAccess() { + return this.publicAccess; + } + + /** + * Set the publicAccess property: Specifies whether public access is enabled for the cluster. The service defaults + * to Disabled when this property is omitted. + * + * @param publicAccess the publicAccess value to set. + * @return the Network object itself. + */ + public Network withPublicAccess(PublicNetworkAccessState publicAccess) { + this.publicAccess = publicAccess; + return this; } /** @@ -42,6 +56,7 @@ public PublicNetworkAccessState publicNetworkAccess() { @Override public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); + jsonWriter.writeStringField("publicAccess", this.publicAccess == null ? null : this.publicAccess.toString()); return jsonWriter.writeEndObject(); } @@ -60,8 +75,8 @@ public static Network fromJson(JsonReader jsonReader) throws IOException { String fieldName = reader.getFieldName(); reader.nextToken(); - if ("publicNetworkAccess".equals(fieldName)) { - deserializedNetwork.publicNetworkAccess = PublicNetworkAccessState.fromString(reader.getString()); + if ("publicAccess".equals(fieldName)) { + deserializedNetwork.publicAccess = PublicNetworkAccessState.fromString(reader.getString()); } else { reader.skipChildren(); } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/NetworkForPatchUpdate.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/NetworkForPatchUpdate.java new file mode 100644 index 0000000000000..92d4bd755ff07 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/NetworkForPatchUpdate.java @@ -0,0 +1,88 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.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; + +/** + * Network properties for updating a HorizonDB cluster. + */ +@Fluent +public final class NetworkForPatchUpdate implements JsonSerializable { + /* + * Specifies whether public access is enabled for the cluster. Omission preserves the current value. + */ + private PublicNetworkAccessState publicAccess; + + /** + * Creates an instance of NetworkForPatchUpdate class. + */ + public NetworkForPatchUpdate() { + } + + /** + * Get the publicAccess property: Specifies whether public access is enabled for the cluster. Omission preserves the + * current value. + * + * @return the publicAccess value. + */ + public PublicNetworkAccessState publicAccess() { + return this.publicAccess; + } + + /** + * Set the publicAccess property: Specifies whether public access is enabled for the cluster. Omission preserves the + * current value. + * + * @param publicAccess the publicAccess value to set. + * @return the NetworkForPatchUpdate object itself. + */ + public NetworkForPatchUpdate withPublicAccess(PublicNetworkAccessState publicAccess) { + this.publicAccess = publicAccess; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("publicAccess", this.publicAccess == null ? null : this.publicAccess.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of NetworkForPatchUpdate from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of NetworkForPatchUpdate 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 NetworkForPatchUpdate. + */ + public static NetworkForPatchUpdate fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + NetworkForPatchUpdate deserializedNetworkForPatchUpdate = new NetworkForPatchUpdate(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("publicAccess".equals(fieldName)) { + deserializedNetworkForPatchUpdate.publicAccess + = PublicNetworkAccessState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedNetworkForPatchUpdate; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Node.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Node.java new file mode 100644 index 0000000000000..b63c9ab3b9eaa --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Node.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.horizondb.fluent.models.NodeInner; + +/** + * An immutable client-side representation of Node. + */ +public interface Node { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + NodeProperties properties(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the inner com.azure.resourcemanager.horizondb.fluent.models.NodeInner object. + * + * @return the inner object. + */ + NodeInner innerModel(); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/NodeProperties.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/NodeProperties.java new file mode 100644 index 0000000000000..b55cf40f0fe3c --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/NodeProperties.java @@ -0,0 +1,90 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Properties of a service-managed HorizonDB node. + */ +@Immutable +public final class NodeProperties implements JsonSerializable { + /* + * The current role performed by the node within its pool. + */ + private NodeRole role; + + /* + * The availability zone in which the node is deployed. + */ + private String availabilityZone; + + /** + * Creates an instance of NodeProperties class. + */ + private NodeProperties() { + } + + /** + * Get the role property: The current role performed by the node within its pool. + * + * @return the role value. + */ + public NodeRole role() { + return this.role; + } + + /** + * Get the availabilityZone property: The availability zone in which the node is deployed. + * + * @return the availabilityZone value. + */ + public String availabilityZone() { + return this.availabilityZone; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of NodeProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of NodeProperties 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 NodeProperties. + */ + public static NodeProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + NodeProperties deserializedNodeProperties = new NodeProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("role".equals(fieldName)) { + deserializedNodeProperties.role = NodeRole.fromString(reader.getString()); + } else if ("availabilityZone".equals(fieldName)) { + deserializedNodeProperties.availabilityZone = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedNodeProperties; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/NodeRole.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/NodeRole.java new file mode 100644 index 0000000000000..a387c973282af --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/NodeRole.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.horizondb.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The role performed by a node within its HorizonDB pool. + */ +public final class NodeRole extends ExpandableStringEnum { + /** + * The node accepts read and write traffic for its cluster. + */ + public static final NodeRole READ_WRITE = fromString("ReadWrite"); + + /** + * The node accepts read-only traffic. + */ + public static final NodeRole READ_ONLY = fromString("ReadOnly"); + + /** + * The node is not currently assigned a read-write or read-only role. + */ + public static final NodeRole UNASSIGNED = fromString("Unassigned"); + + /** + * Creates a new instance of NodeRole value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public NodeRole() { + } + + /** + * Creates or finds a NodeRole from its string representation. + * + * @param name a name to look for. + * @return the corresponding NodeRole. + */ + public static NodeRole fromString(String name) { + return fromString(name, NodeRole.class); + } + + /** + * Gets known NodeRole values. + * + * @return known NodeRole values. + */ + public static Collection values() { + return values(NodeRole.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbPools.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Nodes.java similarity index 67% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbPools.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Nodes.java index d989762fc5159..bbd7547032e56 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbPools.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Nodes.java @@ -9,59 +9,63 @@ import com.azure.core.util.Context; /** - * Resource collection API of HorizonDbPools. + * Resource collection API of Nodes. */ -public interface HorizonDbPools { +public interface Nodes { /** - * Gets information about a HorizonDB pool. + * Gets a node allocated to a HorizonDB pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. + * @param nodeName The name of the Node. * @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 information about a HorizonDB pool along with {@link Response}. + * @return a node allocated to a HorizonDB pool along with {@link Response}. */ - Response getWithResponse(String resourceGroupName, String clusterName, String poolName, + Response getWithResponse(String resourceGroupName, String clusterName, String poolName, String nodeName, Context context); /** - * Gets information about a HorizonDB pool. + * Gets a node allocated to a HorizonDB pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param poolName The name of the HorizonDB pool. + * @param nodeName The name of the Node. * @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 information about a HorizonDB pool. + * @return a node allocated to a HorizonDB pool. */ - HorizonDbPool get(String resourceGroupName, String clusterName, String poolName); + Node get(String resourceGroupName, String clusterName, String poolName, String nodeName); /** - * Lists all HorizonDB pools in a cluster. + * Lists the nodes allocated to a HorizonDB pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbPool list operation as paginated response with {@link PagedIterable}. + * @return the response of a Node list operation as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceGroupName, String clusterName); + PagedIterable list(String resourceGroupName, String clusterName, String poolName); /** - * Lists all HorizonDB pools in a cluster. + * Lists the nodes allocated to a HorizonDB pool. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbPool list operation as paginated response with {@link PagedIterable}. + * @return the response of a Node list operation as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceGroupName, String clusterName, Context context); + PagedIterable list(String resourceGroupName, String clusterName, String poolName, Context context); } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ParameterApplyMethod.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ParameterApplyMethod.java new file mode 100644 index 0000000000000..e43d2ebe418d7 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ParameterApplyMethod.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Controls when dynamic parameter changes become effective. Static parameter changes always become effective only after + * a customer-initiated pool Restart. Stop followed by Start and scheduled maintenance do not apply pending parameter + * changes. + */ +public final class ParameterApplyMethod extends ExpandableStringEnum { + /** + * Apply dynamic parameter changes immediately. Static parameter changes remain pending until a customer-initiated + * pool Restart. + */ + public static final ParameterApplyMethod IMMEDIATE = fromString("Immediate"); + + /** + * Keep dynamic and static parameter changes pending until a customer-initiated pool Restart. Stop followed by Start + * and scheduled maintenance do not apply them. + */ + public static final ParameterApplyMethod PENDING_REBOOT = fromString("PendingReboot"); + + /** + * Creates a new instance of ParameterApplyMethod value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ParameterApplyMethod() { + } + + /** + * Creates or finds a ParameterApplyMethod from its string representation. + * + * @param name a name to look for. + * @return the corresponding ParameterApplyMethod. + */ + public static ParameterApplyMethod fromString(String name) { + return fromString(name, ParameterApplyMethod.class); + } + + /** + * Gets known ParameterApplyMethod values. + * + * @return known ParameterApplyMethod values. + */ + public static Collection values() { + return values(ParameterApplyMethod.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbParameterGroup.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ParameterGroup.java similarity index 75% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbParameterGroup.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ParameterGroup.java index 0b1c995f93de9..f02da85592754 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbParameterGroup.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ParameterGroup.java @@ -7,13 +7,13 @@ import com.azure.core.management.Region; import com.azure.core.management.SystemData; import com.azure.core.util.Context; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbParameterGroupInner; +import com.azure.resourcemanager.horizondb.fluent.models.ParameterGroupInner; import java.util.Map; /** - * An immutable client-side representation of HorizonDbParameterGroup. + * An immutable client-side representation of ParameterGroup. */ -public interface HorizonDbParameterGroup { +public interface ParameterGroup { /** * Gets the id property: Fully qualified resource Id for the resource. * @@ -54,7 +54,7 @@ public interface HorizonDbParameterGroup { * * @return the properties value. */ - HorizonDbParameterGroupProperties properties(); + ParameterGroupProperties properties(); /** * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. @@ -85,31 +85,31 @@ public interface HorizonDbParameterGroup { String resourceGroupName(); /** - * Gets the inner com.azure.resourcemanager.horizondb.fluent.models.HorizonDbParameterGroupInner object. + * Gets the inner com.azure.resourcemanager.horizondb.fluent.models.ParameterGroupInner object. * * @return the inner object. */ - HorizonDbParameterGroupInner innerModel(); + ParameterGroupInner innerModel(); /** - * The entirety of the HorizonDbParameterGroup definition. + * The entirety of the ParameterGroup definition. */ interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, DefinitionStages.WithResourceGroup, DefinitionStages.WithCreate { } /** - * The HorizonDbParameterGroup definition stages. + * The ParameterGroup definition stages. */ interface DefinitionStages { /** - * The first stage of the HorizonDbParameterGroup definition. + * The first stage of the ParameterGroup definition. */ interface Blank extends WithLocation { } /** - * The stage of the HorizonDbParameterGroup definition allowing to specify location. + * The stage of the ParameterGroup definition allowing to specify location. */ interface WithLocation { /** @@ -130,7 +130,7 @@ interface WithLocation { } /** - * The stage of the HorizonDbParameterGroup definition allowing to specify parent resource. + * The stage of the ParameterGroup definition allowing to specify parent resource. */ interface WithResourceGroup { /** @@ -143,8 +143,8 @@ interface WithResourceGroup { } /** - * The stage of the HorizonDbParameterGroup definition which contains all the minimum required properties for - * the resource to be created, but also allows for any other optional properties to be specified. + * The stage of the ParameterGroup definition which contains all the minimum required properties for the + * resource to be created, but also allows for any other optional properties to be specified. */ interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithProperties { /** @@ -152,7 +152,7 @@ interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithPro * * @return the created resource. */ - HorizonDbParameterGroup create(); + ParameterGroup create(); /** * Executes the create request. @@ -160,11 +160,11 @@ interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithPro * @param context The context to associate with this operation. * @return the created resource. */ - HorizonDbParameterGroup create(Context context); + ParameterGroup create(Context context); } /** - * The stage of the HorizonDbParameterGroup definition allowing to specify tags. + * The stage of the ParameterGroup definition allowing to specify tags. */ interface WithTags { /** @@ -177,7 +177,7 @@ interface WithTags { } /** - * The stage of the HorizonDbParameterGroup definition allowing to specify properties. + * The stage of the ParameterGroup definition allowing to specify properties. */ interface WithProperties { /** @@ -186,19 +186,19 @@ interface WithProperties { * @param properties The resource-specific properties for this resource. * @return the next definition stage. */ - WithCreate withProperties(HorizonDbParameterGroupProperties properties); + WithCreate withProperties(ParameterGroupProperties properties); } } /** - * Begins update for the HorizonDbParameterGroup resource. + * Begins update for the ParameterGroup resource. * * @return the stage of resource update. */ - HorizonDbParameterGroup.Update update(); + ParameterGroup.Update update(); /** - * The template for HorizonDbParameterGroup update. + * The template for ParameterGroup update. */ interface Update extends UpdateStages.WithTags, UpdateStages.WithProperties { /** @@ -206,7 +206,7 @@ interface Update extends UpdateStages.WithTags, UpdateStages.WithProperties { * * @return the updated resource. */ - HorizonDbParameterGroup apply(); + ParameterGroup apply(); /** * Executes the update request. @@ -214,15 +214,15 @@ interface Update extends UpdateStages.WithTags, UpdateStages.WithProperties { * @param context The context to associate with this operation. * @return the updated resource. */ - HorizonDbParameterGroup apply(Context context); + ParameterGroup apply(Context context); } /** - * The HorizonDbParameterGroup update stages. + * The ParameterGroup update stages. */ interface UpdateStages { /** - * The stage of the HorizonDbParameterGroup update allowing to specify tags. + * The stage of the ParameterGroup update allowing to specify tags. */ interface WithTags { /** @@ -235,7 +235,7 @@ interface WithTags { } /** - * The stage of the HorizonDbParameterGroup update allowing to specify properties. + * The stage of the ParameterGroup update allowing to specify properties. */ interface WithProperties { /** @@ -244,7 +244,7 @@ interface WithProperties { * @param properties The properties that can be updated for a HorizonDB parameter group. * @return the next definition stage. */ - Update withProperties(HorizonDbParameterGroupPropertiesForPatchUpdate properties); + Update withProperties(ParameterGroupPropertiesForPatchUpdate properties); } } @@ -253,7 +253,7 @@ interface WithProperties { * * @return the refreshed resource. */ - HorizonDbParameterGroup refresh(); + ParameterGroup refresh(); /** * Refreshes the resource to sync with Azure. @@ -261,5 +261,5 @@ interface WithProperties { * @param context The context to associate with this operation. * @return the refreshed resource. */ - HorizonDbParameterGroup refresh(Context context); + ParameterGroup refresh(Context context); } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ParameterGroupConnectionProperties.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ParameterGroupConnectionProperties.java new file mode 100644 index 0000000000000..8459ffc9a8937 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ParameterGroupConnectionProperties.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.resourcemanager.horizondb.fluent.models.ParameterGroupConnectionPropertiesInner; + +/** + * An immutable client-side representation of ParameterGroupConnectionProperties. + */ +public interface ParameterGroupConnectionProperties { + /** + * Gets the poolResourceId property: The Azure resource ID of the connected HorizonDB pool. + * + * @return the poolResourceId value. + */ + String poolResourceId(); + + /** + * Gets the inner com.azure.resourcemanager.horizondb.fluent.models.ParameterGroupConnectionPropertiesInner object. + * + * @return the inner object. + */ + ParameterGroupConnectionPropertiesInner innerModel(); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbParameterGroupForPatchUpdate.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ParameterGroupForPatchUpdate.java similarity index 60% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbParameterGroupForPatchUpdate.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ParameterGroupForPatchUpdate.java index 204d5bbf7603a..c025c5de97c94 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbParameterGroupForPatchUpdate.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ParameterGroupForPatchUpdate.java @@ -16,8 +16,7 @@ * HorizonDB parameter group for update operations. */ @Fluent -public final class HorizonDbParameterGroupForPatchUpdate - implements JsonSerializable { +public final class ParameterGroupForPatchUpdate implements JsonSerializable { /* * Resource tags. */ @@ -26,12 +25,12 @@ public final class HorizonDbParameterGroupForPatchUpdate /* * The properties that can be updated for a HorizonDB parameter group. */ - private HorizonDbParameterGroupPropertiesForPatchUpdate properties; + private ParameterGroupPropertiesForPatchUpdate properties; /** - * Creates an instance of HorizonDbParameterGroupForPatchUpdate class. + * Creates an instance of ParameterGroupForPatchUpdate class. */ - public HorizonDbParameterGroupForPatchUpdate() { + public ParameterGroupForPatchUpdate() { } /** @@ -47,9 +46,9 @@ public Map tags() { * Set the tags property: Resource tags. * * @param tags the tags value to set. - * @return the HorizonDbParameterGroupForPatchUpdate object itself. + * @return the ParameterGroupForPatchUpdate object itself. */ - public HorizonDbParameterGroupForPatchUpdate withTags(Map tags) { + public ParameterGroupForPatchUpdate withTags(Map tags) { this.tags = tags; return this; } @@ -59,7 +58,7 @@ public HorizonDbParameterGroupForPatchUpdate withTags(Map tags) * * @return the properties value. */ - public HorizonDbParameterGroupPropertiesForPatchUpdate properties() { + public ParameterGroupPropertiesForPatchUpdate properties() { return this.properties; } @@ -67,10 +66,9 @@ public HorizonDbParameterGroupPropertiesForPatchUpdate properties() { * Set the properties property: The properties that can be updated for a HorizonDB parameter group. * * @param properties the properties value to set. - * @return the HorizonDbParameterGroupForPatchUpdate object itself. + * @return the ParameterGroupForPatchUpdate object itself. */ - public HorizonDbParameterGroupForPatchUpdate - withProperties(HorizonDbParameterGroupPropertiesForPatchUpdate properties) { + public ParameterGroupForPatchUpdate withProperties(ParameterGroupPropertiesForPatchUpdate properties) { this.properties = properties; return this; } @@ -87,33 +85,32 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { } /** - * Reads an instance of HorizonDbParameterGroupForPatchUpdate from the JsonReader. + * Reads an instance of ParameterGroupForPatchUpdate from the JsonReader. * * @param jsonReader The JsonReader being read. - * @return An instance of HorizonDbParameterGroupForPatchUpdate 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 HorizonDbParameterGroupForPatchUpdate. + * @return An instance of ParameterGroupForPatchUpdate 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 ParameterGroupForPatchUpdate. */ - public static HorizonDbParameterGroupForPatchUpdate fromJson(JsonReader jsonReader) throws IOException { + public static ParameterGroupForPatchUpdate fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { - HorizonDbParameterGroupForPatchUpdate deserializedHorizonDbParameterGroupForPatchUpdate - = new HorizonDbParameterGroupForPatchUpdate(); + ParameterGroupForPatchUpdate deserializedParameterGroupForPatchUpdate = new ParameterGroupForPatchUpdate(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); if ("tags".equals(fieldName)) { Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedHorizonDbParameterGroupForPatchUpdate.tags = tags; + deserializedParameterGroupForPatchUpdate.tags = tags; } else if ("properties".equals(fieldName)) { - deserializedHorizonDbParameterGroupForPatchUpdate.properties - = HorizonDbParameterGroupPropertiesForPatchUpdate.fromJson(reader); + deserializedParameterGroupForPatchUpdate.properties + = ParameterGroupPropertiesForPatchUpdate.fromJson(reader); } else { reader.skipChildren(); } } - return deserializedHorizonDbParameterGroupForPatchUpdate; + return deserializedParameterGroupForPatchUpdate; }); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ParameterGroupProperties.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ParameterGroupProperties.java new file mode 100644 index 0000000000000..43f824cfb6661 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ParameterGroupProperties.java @@ -0,0 +1,173 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.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; + +/** + * Properties of a HorizonDB parameter group. + */ +@Fluent +public final class ParameterGroupProperties implements JsonSerializable { + /* + * Parameters in the parameter group. + */ + private List parameters; + + /* + * Description of the parameter group. The maximum length is 1024 characters. + */ + private String description; + + /* + * The PostgreSQL major version for the parameter group. This property is required during creation and is immutable + * thereafter. The service selects the unique location-scoped default parameter group for this version in the + * resource location. The DefaultParameterGroups APIs return at most one default parameter group for each PostgreSQL + * version in a location, so this selection is unambiguous. + */ + private PostgreSqlVersion postgreSqlVersion; + + /* + * The provisioning state of the parameter group. + */ + private ProvisioningState provisioningState; + + /** + * Creates an instance of ParameterGroupProperties class. + */ + public ParameterGroupProperties() { + } + + /** + * Get the parameters property: Parameters in the parameter group. + * + * @return the parameters value. + */ + public List parameters() { + return this.parameters; + } + + /** + * Set the parameters property: Parameters in the parameter group. + * + * @param parameters the parameters value to set. + * @return the ParameterGroupProperties object itself. + */ + public ParameterGroupProperties withParameters(List parameters) { + this.parameters = parameters; + return this; + } + + /** + * Get the description property: Description of the parameter group. The maximum length is 1024 characters. + * + * @return the description value. + */ + public String description() { + return this.description; + } + + /** + * Set the description property: Description of the parameter group. The maximum length is 1024 characters. + * + * @param description the description value to set. + * @return the ParameterGroupProperties object itself. + */ + public ParameterGroupProperties withDescription(String description) { + this.description = description; + return this; + } + + /** + * Get the postgreSqlVersion property: The PostgreSQL major version for the parameter group. This property is + * required during creation and is immutable thereafter. The service selects the unique location-scoped default + * parameter group for this version in the resource location. The DefaultParameterGroups APIs return at most one + * default parameter group for each PostgreSQL version in a location, so this selection is unambiguous. + * + * @return the postgreSqlVersion value. + */ + public PostgreSqlVersion postgreSqlVersion() { + return this.postgreSqlVersion; + } + + /** + * Set the postgreSqlVersion property: The PostgreSQL major version for the parameter group. This property is + * required during creation and is immutable thereafter. The service selects the unique location-scoped default + * parameter group for this version in the resource location. The DefaultParameterGroups APIs return at most one + * default parameter group for each PostgreSQL version in a location, so this selection is unambiguous. + * + * @param postgreSqlVersion the postgreSqlVersion value to set. + * @return the ParameterGroupProperties object itself. + */ + public ParameterGroupProperties withPostgreSqlVersion(PostgreSqlVersion postgreSqlVersion) { + this.postgreSqlVersion = postgreSqlVersion; + return this; + } + + /** + * Get the provisioningState property: The provisioning state of the parameter group. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("postgreSqlVersion", + this.postgreSqlVersion == null ? null : this.postgreSqlVersion.toString()); + jsonWriter.writeArrayField("parameters", this.parameters, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("description", this.description); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ParameterGroupProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ParameterGroupProperties 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 ParameterGroupProperties. + */ + public static ParameterGroupProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ParameterGroupProperties deserializedParameterGroupProperties = new ParameterGroupProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("postgreSqlVersion".equals(fieldName)) { + deserializedParameterGroupProperties.postgreSqlVersion + = PostgreSqlVersion.fromString(reader.getString()); + } else if ("parameters".equals(fieldName)) { + List parameters + = reader.readArray(reader1 -> ParameterProperties.fromJson(reader1)); + deserializedParameterGroupProperties.parameters = parameters; + } else if ("description".equals(fieldName)) { + deserializedParameterGroupProperties.description = reader.getString(); + } else if ("provisioningState".equals(fieldName)) { + deserializedParameterGroupProperties.provisioningState + = ProvisioningState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedParameterGroupProperties; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ParameterGroupPropertiesForPatchUpdate.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ParameterGroupPropertiesForPatchUpdate.java new file mode 100644 index 0000000000000..b11cbb7347fa6 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ParameterGroupPropertiesForPatchUpdate.java @@ -0,0 +1,118 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.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; + +/** + * Properties of a HorizonDB parameter group for update operations. + */ +@Fluent +public final class ParameterGroupPropertiesForPatchUpdate + implements JsonSerializable { + /* + * Parameters in the parameter group. + */ + private List parameters; + + /* + * Description of the parameter group. The maximum length is 1024 characters. + */ + private String description; + + /** + * Creates an instance of ParameterGroupPropertiesForPatchUpdate class. + */ + public ParameterGroupPropertiesForPatchUpdate() { + } + + /** + * Get the parameters property: Parameters in the parameter group. + * + * @return the parameters value. + */ + public List parameters() { + return this.parameters; + } + + /** + * Set the parameters property: Parameters in the parameter group. + * + * @param parameters the parameters value to set. + * @return the ParameterGroupPropertiesForPatchUpdate object itself. + */ + public ParameterGroupPropertiesForPatchUpdate withParameters(List parameters) { + this.parameters = parameters; + return this; + } + + /** + * Get the description property: Description of the parameter group. The maximum length is 1024 characters. + * + * @return the description value. + */ + public String description() { + return this.description; + } + + /** + * Set the description property: Description of the parameter group. The maximum length is 1024 characters. + * + * @param description the description value to set. + * @return the ParameterGroupPropertiesForPatchUpdate object itself. + */ + public ParameterGroupPropertiesForPatchUpdate withDescription(String description) { + this.description = description; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("parameters", this.parameters, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("description", this.description); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ParameterGroupPropertiesForPatchUpdate from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ParameterGroupPropertiesForPatchUpdate 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 ParameterGroupPropertiesForPatchUpdate. + */ + public static ParameterGroupPropertiesForPatchUpdate fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ParameterGroupPropertiesForPatchUpdate deserializedParameterGroupPropertiesForPatchUpdate + = new ParameterGroupPropertiesForPatchUpdate(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("parameters".equals(fieldName)) { + List parameters + = reader.readArray(reader1 -> ParameterProperties.fromJson(reader1)); + deserializedParameterGroupPropertiesForPatchUpdate.parameters = parameters; + } else if ("description".equals(fieldName)) { + deserializedParameterGroupPropertiesForPatchUpdate.description = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedParameterGroupPropertiesForPatchUpdate; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ParameterGroupSyncStatus.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ParameterGroupSyncStatus.java new file mode 100644 index 0000000000000..a2211728f829d --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ParameterGroupSyncStatus.java @@ -0,0 +1,62 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Indicates synchronization status between a HorizonDB resource and its parameter group. + */ +public final class ParameterGroupSyncStatus extends ExpandableStringEnum { + /** + * Parameter updates are currently being applied. + */ + public static final ParameterGroupSyncStatus APPLYING = fromString("Applying"); + + /** + * Parameter values are synchronized and up to date. + */ + public static final ParameterGroupSyncStatus IN_SYNC = fromString("InSync"); + + /** + * Applying parameter updates failed. + */ + public static final ParameterGroupSyncStatus FAILED_TO_APPLY = fromString("FailedToApply"); + + /** + * Parameter updates are pending and require a customer-initiated pool Restart to take effect. Stop followed by + * Start and scheduled maintenance preserve this status. + */ + public static final ParameterGroupSyncStatus PENDING_REBOOT = fromString("PendingReboot"); + + /** + * Creates a new instance of ParameterGroupSyncStatus value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ParameterGroupSyncStatus() { + } + + /** + * Creates or finds a ParameterGroupSyncStatus from its string representation. + * + * @param name a name to look for. + * @return the corresponding ParameterGroupSyncStatus. + */ + public static ParameterGroupSyncStatus fromString(String name) { + return fromString(name, ParameterGroupSyncStatus.class); + } + + /** + * Gets known ParameterGroupSyncStatus values. + * + * @return known ParameterGroupSyncStatus values. + */ + public static Collection values() { + return values(ParameterGroupSyncStatus.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbParameterGroups.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ParameterGroups.java similarity index 69% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbParameterGroups.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ParameterGroups.java index 62ad66e22e889..ffdee888852aa 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbParameterGroups.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ParameterGroups.java @@ -9,9 +9,9 @@ import com.azure.core.util.Context; /** - * Resource collection API of HorizonDbParameterGroups. + * Resource collection API of ParameterGroups. */ -public interface HorizonDbParameterGroups { +public interface ParameterGroups { /** * Gets information about a HorizonDB parameter group. * @@ -23,8 +23,8 @@ public interface HorizonDbParameterGroups { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return information about a HorizonDB parameter group along with {@link Response}. */ - Response getByResourceGroupWithResponse(String resourceGroupName, - String parameterGroupName, Context context); + Response getByResourceGroupWithResponse(String resourceGroupName, String parameterGroupName, + Context context); /** * Gets information about a HorizonDB parameter group. @@ -36,10 +36,11 @@ Response getByResourceGroupWithResponse(String resource * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return information about a HorizonDB parameter group. */ - HorizonDbParameterGroup getByResourceGroup(String resourceGroupName, String parameterGroupName); + ParameterGroup getByResourceGroup(String resourceGroupName, String parameterGroupName); /** - * Deletes a HorizonDB parameter group. + * Deletes a HorizonDB parameter group. Deletion fails with a conflict when the parameter group is associated with + * one or more pools. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -50,7 +51,8 @@ Response getByResourceGroupWithResponse(String resource void deleteByResourceGroup(String resourceGroupName, String parameterGroupName); /** - * Deletes a HorizonDB parameter group. + * Deletes a HorizonDB parameter group. Deletion fails with a conflict when the parameter group is associated with + * one or more pools. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param parameterGroupName The name of the HorizonDB parameter group. @@ -68,10 +70,9 @@ Response getByResourceGroupWithResponse(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbParameterGroup list operation as paginated response with - * {@link PagedIterable}. + * @return the response of a ParameterGroup list operation as paginated response with {@link PagedIterable}. */ - PagedIterable listByResourceGroup(String resourceGroupName); + PagedIterable listByResourceGroup(String resourceGroupName); /** * Lists all HorizonDB parameter groups in a resource group. @@ -81,20 +82,18 @@ Response getByResourceGroupWithResponse(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbParameterGroup list operation as paginated response with - * {@link PagedIterable}. + * @return the response of a ParameterGroup list operation as paginated response with {@link PagedIterable}. */ - PagedIterable listByResourceGroup(String resourceGroupName, Context context); + PagedIterable listByResourceGroup(String resourceGroupName, Context context); /** * Lists all HorizonDB parameter groups in a subscription. * * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbParameterGroup list operation as paginated response with - * {@link PagedIterable}. + * @return the response of a ParameterGroup list operation as paginated response with {@link PagedIterable}. */ - PagedIterable list(); + PagedIterable list(); /** * Lists all HorizonDB parameter groups in a subscription. @@ -103,10 +102,9 @@ Response getByResourceGroupWithResponse(String resource * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbParameterGroup list operation as paginated response with - * {@link PagedIterable}. + * @return the response of a ParameterGroup list operation as paginated response with {@link PagedIterable}. */ - PagedIterable list(Context context); + PagedIterable list(Context context); /** * Gets all connections to a parameter group. @@ -118,7 +116,7 @@ Response getByResourceGroupWithResponse(String resource * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all connections to a parameter group as paginated response with {@link PagedIterable}. */ - PagedIterable listConnections(String resourceGroupName, + PagedIterable listConnections(String resourceGroupName, String parameterGroupName); /** @@ -132,38 +130,9 @@ PagedIterable listConnections(Strin * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return all connections to a parameter group as paginated response with {@link PagedIterable}. */ - PagedIterable listConnections(String resourceGroupName, + PagedIterable listConnections(String resourceGroupName, String parameterGroupName, Context context); - /** - * Lists parameter groups filtered by version number. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameterGroupName The name of the HorizonDB parameter group. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbParameterGroup list operation as paginated response with - * {@link PagedIterable}. - */ - PagedIterable listVersions(String resourceGroupName, String parameterGroupName); - - /** - * Lists parameter groups filtered by version number. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param parameterGroupName The name of the HorizonDB parameter group. - * @param version The version number to filter by. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbParameterGroup list operation as paginated response with - * {@link PagedIterable}. - */ - PagedIterable listVersions(String resourceGroupName, String parameterGroupName, - Integer version, Context context); - /** * Gets information about a HorizonDB parameter group. * @@ -173,7 +142,7 @@ PagedIterable listVersions(String resourceGroupName, St * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return information about a HorizonDB parameter group along with {@link Response}. */ - HorizonDbParameterGroup getById(String id); + ParameterGroup getById(String id); /** * Gets information about a HorizonDB parameter group. @@ -185,10 +154,11 @@ PagedIterable listVersions(String resourceGroupName, St * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return information about a HorizonDB parameter group along with {@link Response}. */ - Response getByIdWithResponse(String id, Context context); + Response getByIdWithResponse(String id, Context context); /** - * Deletes a HorizonDB parameter group. + * Deletes a HorizonDB parameter group. Deletion fails with a conflict when the parameter group is associated with + * one or more pools. * * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. @@ -198,7 +168,8 @@ PagedIterable listVersions(String resourceGroupName, St void deleteById(String id); /** - * Deletes a HorizonDB parameter group. + * Deletes a HorizonDB parameter group. Deletion fails with a conflict when the parameter group is associated with + * one or more pools. * * @param id the resource ID. * @param context The context to associate with this operation. @@ -209,10 +180,10 @@ PagedIterable listVersions(String resourceGroupName, St void deleteByIdWithResponse(String id, Context context); /** - * Begins definition for a new HorizonDbParameterGroup resource. + * Begins definition for a new ParameterGroup resource. * * @param name resource name. - * @return the first stage of the new HorizonDbParameterGroup definition. + * @return the first stage of the new ParameterGroup definition. */ - HorizonDbParameterGroup.DefinitionStages.Blank define(String name); + ParameterGroup.DefinitionStages.Blank define(String name); } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ParameterProperties.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ParameterProperties.java index 148c100b28b16..edc8ac8320d29 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ParameterProperties.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ParameterProperties.java @@ -12,7 +12,7 @@ import java.io.IOException; /** - * Properties of a HorizonDB parameters. + * Properties of a HorizonDB parameter. */ @Fluent public final class ParameterProperties implements JsonSerializable { @@ -31,6 +31,17 @@ public final class ParameterProperties implements JsonSerializable { + /** + * The effective value is the system-defined default. + */ + public static final ParameterValueSource SYSTEM_DEFAULT = fromString("SystemDefault"); + + /** + * The effective value was explicitly supplied by the user, even when it equals the system-defined default value. + */ + public static final ParameterValueSource USER_OVERRIDE = fromString("UserOverride"); + + /** + * Creates a new instance of ParameterValueSource value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ParameterValueSource() { + } + + /** + * Creates or finds a ParameterValueSource from its string representation. + * + * @param name a name to look for. + * @return the corresponding ParameterValueSource. + */ + public static ParameterValueSource fromString(String name) { + return fromString(name, ParameterValueSource.class); + } + + /** + * Gets known ParameterValueSource values. + * + * @return known ParameterValueSource values. + */ + public static Collection values() { + return values(ParameterValueSource.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PasswordAuthentication.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PasswordAuthentication.java new file mode 100644 index 0000000000000..e436638d6b6f3 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PasswordAuthentication.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.management.SystemData; +import com.azure.resourcemanager.horizondb.fluent.models.PasswordAuthenticationInner; + +/** + * An immutable client-side representation of PasswordAuthentication. + */ +public interface PasswordAuthentication { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + PasswordAuthenticationProperties properties(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the inner com.azure.resourcemanager.horizondb.fluent.models.PasswordAuthenticationInner object. + * + * @return the inner object. + */ + PasswordAuthenticationInner innerModel(); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PasswordAuthenticationForPatchUpdate.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PasswordAuthenticationForPatchUpdate.java new file mode 100644 index 0000000000000..792aeb3b0d1b5 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PasswordAuthenticationForPatchUpdate.java @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.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; + +/** + * A sparse update request for PostgreSQL username-and-password authentication. + */ +@Fluent +public final class PasswordAuthenticationForPatchUpdate + implements JsonSerializable { + /* + * The PostgreSQL username-and-password authentication properties to update. + */ + private PasswordAuthenticationPropertiesForPatchUpdate properties; + + /** + * Creates an instance of PasswordAuthenticationForPatchUpdate class. + */ + public PasswordAuthenticationForPatchUpdate() { + } + + /** + * Get the properties property: The PostgreSQL username-and-password authentication properties to update. + * + * @return the properties value. + */ + public PasswordAuthenticationPropertiesForPatchUpdate properties() { + return this.properties; + } + + /** + * Set the properties property: The PostgreSQL username-and-password authentication properties to update. + * + * @param properties the properties value to set. + * @return the PasswordAuthenticationForPatchUpdate object itself. + */ + public PasswordAuthenticationForPatchUpdate + withProperties(PasswordAuthenticationPropertiesForPatchUpdate properties) { + this.properties = properties; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PasswordAuthenticationForPatchUpdate from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PasswordAuthenticationForPatchUpdate 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 PasswordAuthenticationForPatchUpdate. + */ + public static PasswordAuthenticationForPatchUpdate fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PasswordAuthenticationForPatchUpdate deserializedPasswordAuthenticationForPatchUpdate + = new PasswordAuthenticationForPatchUpdate(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("properties".equals(fieldName)) { + deserializedPasswordAuthenticationForPatchUpdate.properties + = PasswordAuthenticationPropertiesForPatchUpdate.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedPasswordAuthenticationForPatchUpdate; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PasswordAuthenticationProperties.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PasswordAuthenticationProperties.java new file mode 100644 index 0000000000000..0bd1b400468b6 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PasswordAuthenticationProperties.java @@ -0,0 +1,170 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.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; + +/** + * Properties of the service-created PostgreSQL username-and-password authentication method. + */ +@Fluent +public final class PasswordAuthenticationProperties implements JsonSerializable { + /* + * The state of PostgreSQL username-and-password authentication. + */ + private AuthenticationState state; + + /* + * The PostgreSQL administrator login name. This value is not returned in responses. After it is set, renaming is + * not supported. Setting the login requires password authentication state to be Enabled in the same request. + */ + private String administratorLogin; + + /* + * The PostgreSQL administrator password. Setting the password requires password authentication state to be Enabled + * in the same request. + */ + private String administratorLoginPassword; + + /* + * The provisioning state of the PostgreSQL username-and-password authentication method. + */ + private ProvisioningState provisioningState; + + /** + * Creates an instance of PasswordAuthenticationProperties class. + */ + public PasswordAuthenticationProperties() { + } + + /** + * Get the state property: The state of PostgreSQL username-and-password authentication. + * + * @return the state value. + */ + public AuthenticationState state() { + return this.state; + } + + /** + * Set the state property: The state of PostgreSQL username-and-password authentication. + * + * @param state the state value to set. + * @return the PasswordAuthenticationProperties object itself. + */ + public PasswordAuthenticationProperties withState(AuthenticationState state) { + this.state = state; + return this; + } + + /** + * Get the administratorLogin property: The PostgreSQL administrator login name. This value is not returned in + * responses. After it is set, renaming is not supported. Setting the login requires password authentication state + * to be Enabled in the same request. + * + * @return the administratorLogin value. + */ + public String administratorLogin() { + return this.administratorLogin; + } + + /** + * Set the administratorLogin property: The PostgreSQL administrator login name. This value is not returned in + * responses. After it is set, renaming is not supported. Setting the login requires password authentication state + * to be Enabled in the same request. + * + * @param administratorLogin the administratorLogin value to set. + * @return the PasswordAuthenticationProperties object itself. + */ + public PasswordAuthenticationProperties withAdministratorLogin(String administratorLogin) { + this.administratorLogin = administratorLogin; + return this; + } + + /** + * Get the administratorLoginPassword property: The PostgreSQL administrator password. Setting the password requires + * password authentication state to be Enabled in the same request. + * + * @return the administratorLoginPassword value. + */ + public String administratorLoginPassword() { + return this.administratorLoginPassword; + } + + /** + * Set the administratorLoginPassword property: The PostgreSQL administrator password. Setting the password requires + * password authentication state to be Enabled in the same request. + * + * @param administratorLoginPassword the administratorLoginPassword value to set. + * @return the PasswordAuthenticationProperties object itself. + */ + public PasswordAuthenticationProperties withAdministratorLoginPassword(String administratorLoginPassword) { + this.administratorLoginPassword = administratorLoginPassword; + return this; + } + + /** + * Get the provisioningState property: The provisioning state of the PostgreSQL username-and-password authentication + * method. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("state", this.state == null ? null : this.state.toString()); + jsonWriter.writeStringField("administratorLogin", this.administratorLogin); + jsonWriter.writeStringField("administratorLoginPassword", this.administratorLoginPassword); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PasswordAuthenticationProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PasswordAuthenticationProperties 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 PasswordAuthenticationProperties. + */ + public static PasswordAuthenticationProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PasswordAuthenticationProperties deserializedPasswordAuthenticationProperties + = new PasswordAuthenticationProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("state".equals(fieldName)) { + deserializedPasswordAuthenticationProperties.state + = AuthenticationState.fromString(reader.getString()); + } else if ("administratorLogin".equals(fieldName)) { + deserializedPasswordAuthenticationProperties.administratorLogin = reader.getString(); + } else if ("administratorLoginPassword".equals(fieldName)) { + deserializedPasswordAuthenticationProperties.administratorLoginPassword = reader.getString(); + } else if ("provisioningState".equals(fieldName)) { + deserializedPasswordAuthenticationProperties.provisioningState + = ProvisioningState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedPasswordAuthenticationProperties; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PasswordAuthenticationPropertiesForPatchUpdate.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PasswordAuthenticationPropertiesForPatchUpdate.java new file mode 100644 index 0000000000000..146563dde59ed --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PasswordAuthenticationPropertiesForPatchUpdate.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.horizondb.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; + +/** + * Properties for updating PostgreSQL username-and-password authentication. Omitted properties preserve their current + * values. This API version supports enabling or disabling the authentication method, and resetting its password. + * Supported changes can be combined. + */ +@Fluent +public final class PasswordAuthenticationPropertiesForPatchUpdate + implements JsonSerializable { + /* + * The target password-authentication state. Enabled can be combined with administratorLoginPassword to re-enable + * password authentication and reset the password for a cluster that already has an administrator. Disabling + * password authentication does not remove or modify existing database users or roles. Disabled cannot be combined + * with administratorLoginPassword. + */ + private AuthenticationState state; + + /* + * The PostgreSQL administrator password. Supplying this property resets the configured administrator's password. + * When password authentication is currently disabled for a cluster that already has an administrator, this property + * can be combined with state Enabled to re-enable password authentication and reset the password. + */ + private String administratorLoginPassword; + + /** + * Creates an instance of PasswordAuthenticationPropertiesForPatchUpdate class. + */ + public PasswordAuthenticationPropertiesForPatchUpdate() { + } + + /** + * Get the state property: The target password-authentication state. Enabled can be combined with + * administratorLoginPassword to re-enable password authentication and reset the password for a cluster that already + * has an administrator. Disabling password authentication does not remove or modify existing database users or + * roles. Disabled cannot be combined with administratorLoginPassword. + * + * @return the state value. + */ + public AuthenticationState state() { + return this.state; + } + + /** + * Set the state property: The target password-authentication state. Enabled can be combined with + * administratorLoginPassword to re-enable password authentication and reset the password for a cluster that already + * has an administrator. Disabling password authentication does not remove or modify existing database users or + * roles. Disabled cannot be combined with administratorLoginPassword. + * + * @param state the state value to set. + * @return the PasswordAuthenticationPropertiesForPatchUpdate object itself. + */ + public PasswordAuthenticationPropertiesForPatchUpdate withState(AuthenticationState state) { + this.state = state; + return this; + } + + /** + * Get the administratorLoginPassword property: The PostgreSQL administrator password. Supplying this property + * resets the configured administrator's password. When password authentication is currently disabled for a cluster + * that already has an administrator, this property can be combined with state Enabled to re-enable password + * authentication and reset the password. + * + * @return the administratorLoginPassword value. + */ + public String administratorLoginPassword() { + return this.administratorLoginPassword; + } + + /** + * Set the administratorLoginPassword property: The PostgreSQL administrator password. Supplying this property + * resets the configured administrator's password. When password authentication is currently disabled for a cluster + * that already has an administrator, this property can be combined with state Enabled to re-enable password + * authentication and reset the password. + * + * @param administratorLoginPassword the administratorLoginPassword value to set. + * @return the PasswordAuthenticationPropertiesForPatchUpdate object itself. + */ + public PasswordAuthenticationPropertiesForPatchUpdate + withAdministratorLoginPassword(String administratorLoginPassword) { + this.administratorLoginPassword = administratorLoginPassword; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("state", this.state == null ? null : this.state.toString()); + jsonWriter.writeStringField("administratorLoginPassword", this.administratorLoginPassword); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PasswordAuthenticationPropertiesForPatchUpdate from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PasswordAuthenticationPropertiesForPatchUpdate 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 PasswordAuthenticationPropertiesForPatchUpdate. + */ + public static PasswordAuthenticationPropertiesForPatchUpdate fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PasswordAuthenticationPropertiesForPatchUpdate deserializedPasswordAuthenticationPropertiesForPatchUpdate + = new PasswordAuthenticationPropertiesForPatchUpdate(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("state".equals(fieldName)) { + deserializedPasswordAuthenticationPropertiesForPatchUpdate.state + = AuthenticationState.fromString(reader.getString()); + } else if ("administratorLoginPassword".equals(fieldName)) { + deserializedPasswordAuthenticationPropertiesForPatchUpdate.administratorLoginPassword + = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedPasswordAuthenticationPropertiesForPatchUpdate; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PasswordAuthentications.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PasswordAuthentications.java new file mode 100644 index 0000000000000..2d71679e1d840 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PasswordAuthentications.java @@ -0,0 +1,107 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; +import com.azure.resourcemanager.horizondb.fluent.models.PasswordAuthenticationInner; + +/** + * Resource collection API of PasswordAuthentications. + */ +public interface PasswordAuthentications { + /** + * Gets the service-created PostgreSQL username-and-password authentication method. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created PostgreSQL username-and-password authentication method along with {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String clusterName, Context context); + + /** + * Gets the service-created PostgreSQL username-and-password authentication method. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB 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 service-created PostgreSQL username-and-password authentication method. + */ + PasswordAuthentication get(String resourceGroupName, String clusterName); + + /** + * Creates or replaces the service-created PostgreSQL username-and-password authentication method. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param resource Resource create parameters. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created PostgreSQL username-and-password authentication method for a HorizonDB cluster. + */ + PasswordAuthentication createOrReplace(String resourceGroupName, String clusterName, + PasswordAuthenticationInner resource); + + /** + * Creates or replaces the service-created PostgreSQL username-and-password authentication method. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created PostgreSQL username-and-password authentication method for a HorizonDB cluster. + */ + PasswordAuthentication createOrReplace(String resourceGroupName, String clusterName, + PasswordAuthenticationInner resource, Context context); + + /** + * Updates the service-created PostgreSQL username-and-password authentication method. The request is sparse and + * omitted properties preserve their current values. This API version supports enabling the method, disabling the + * method, and resetting its password. For a cluster that already has an administrator but currently has password + * authentication disabled, state Enabled and administratorLoginPassword can be supplied together to re-enable + * password authentication and reset the password. Disabling cannot include credentials and does not remove or + * modify existing database users or roles. Administrator rename is not supported in this API version. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param properties The resource properties to be updated. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created PostgreSQL username-and-password authentication method for a HorizonDB cluster. + */ + PasswordAuthentication update(String resourceGroupName, String clusterName, + PasswordAuthenticationForPatchUpdate properties); + + /** + * Updates the service-created PostgreSQL username-and-password authentication method. The request is sparse and + * omitted properties preserve their current values. This API version supports enabling the method, disabling the + * method, and resetting its password. For a cluster that already has an administrator but currently has password + * authentication disabled, state Enabled and administratorLoginPassword can be supplied together to re-enable + * password authentication and reset the password. Disabling cannot include credentials and does not remove or + * modify existing database users or roles. Administrator rename is not supported in this API version. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param properties The resource properties to be updated. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the service-created PostgreSQL username-and-password authentication method for a HorizonDB cluster. + */ + PasswordAuthentication update(String resourceGroupName, String clusterName, + PasswordAuthenticationForPatchUpdate properties, Context context); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Pool.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Pool.java new file mode 100644 index 0000000000000..df6bd7084287e --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Pool.java @@ -0,0 +1,323 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.management.SystemData; +import com.azure.core.util.Context; +import com.azure.resourcemanager.horizondb.fluent.models.PoolInner; +import java.util.Map; + +/** + * An immutable client-side representation of Pool. + */ +public interface Pool { + /** + * Gets the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + String id(); + + /** + * Gets the name property: The name of the resource. + * + * @return the name value. + */ + String name(); + + /** + * Gets the type property: The type of the resource. + * + * @return the type value. + */ + String type(); + + /** + * Gets the properties property: The resource-specific properties for this resource. + * + * @return the properties value. + */ + PoolProperties properties(); + + /** + * Gets the tags property: Resource tags. + * + * @return the tags value. + */ + Map tags(); + + /** + * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + SystemData systemData(); + + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + + /** + * Gets the inner com.azure.resourcemanager.horizondb.fluent.models.PoolInner object. + * + * @return the inner object. + */ + PoolInner innerModel(); + + /** + * The entirety of the Pool definition. + */ + interface Definition + extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { + } + + /** + * The Pool definition stages. + */ + interface DefinitionStages { + /** + * The first stage of the Pool definition. + */ + interface Blank extends WithParentResource { + } + + /** + * The stage of the Pool definition allowing to specify parent resource. + */ + interface WithParentResource { + /** + * Specifies resourceGroupName, clusterName. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @return the next definition stage. + */ + WithCreate withExistingCluster(String resourceGroupName, String clusterName); + } + + /** + * The stage of the Pool definition which contains all the minimum required properties for the resource to be + * created, but also allows for any other optional properties to be specified. + */ + interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithProperties { + /** + * Executes the create request. + * + * @return the created resource. + */ + Pool create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + Pool create(Context context); + } + + /** + * The stage of the Pool definition allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + WithCreate withTags(Map tags); + } + + /** + * The stage of the Pool definition allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: The resource-specific properties for this resource.. + * + * @param properties The resource-specific properties for this resource. + * @return the next definition stage. + */ + WithCreate withProperties(PoolProperties properties); + } + } + + /** + * Begins update for the Pool resource. + * + * @return the stage of resource update. + */ + Pool.Update update(); + + /** + * The template for Pool update. + */ + interface Update extends UpdateStages.WithTags, UpdateStages.WithProperties { + /** + * Executes the update request. + * + * @return the updated resource. + */ + Pool apply(); + + /** + * Executes the update request. + * + * @param context The context to associate with this operation. + * @return the updated resource. + */ + Pool apply(Context context); + } + + /** + * The Pool update stages. + */ + interface UpdateStages { + /** + * The stage of the Pool update allowing to specify tags. + */ + interface WithTags { + /** + * Specifies the tags property: Resource tags.. + * + * @param tags Resource tags. + * @return the next definition stage. + */ + Update withTags(Map tags); + } + + /** + * The stage of the Pool update allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: The properties that can be updated for a HorizonDB pool.. + * + * @param properties The properties that can be updated for a HorizonDB pool. + * @return the next definition stage. + */ + Update withProperties(PoolPropertiesForPatchUpdate properties); + } + } + + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + Pool refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + Pool refresh(Context context); + + /** + * Starts a stopped HorizonDB pool. Power operations are supported only at pool scope in this API version; there is + * no cluster-level start action. Start does not apply pending dynamic or static parameter changes; + * parameterGroup.syncStatus remains PendingReboot until a customer-initiated Restart. When the pool is already + * Ready, the operation succeeds as a true idempotent no-op and likewise leaves pending parameter changes pending. + * The operation is allowed when the pool has no allocated nodes. After the Pool is running, its Pool-scoped + * ReadOnly Endpoint routes only when at least one allocated node is not currently playing the read-write role. The + * request fails with 409 Conflict when another operation is in progress or the pool is in any other incompatible + * state. + * + * @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 represents the HorizonDB pool. + */ + Pool start(); + + /** + * Starts a stopped HorizonDB pool. Power operations are supported only at pool scope in this API version; there is + * no cluster-level start action. Start does not apply pending dynamic or static parameter changes; + * parameterGroup.syncStatus remains PendingReboot until a customer-initiated Restart. When the pool is already + * Ready, the operation succeeds as a true idempotent no-op and likewise leaves pending parameter changes pending. + * The operation is allowed when the pool has no allocated nodes. After the Pool is running, its Pool-scoped + * ReadOnly Endpoint routes only when at least one allocated node is not currently playing the read-write role. The + * request fails with 409 Conflict when another operation is in progress or the pool is in any other incompatible + * state. + * + * @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 represents the HorizonDB pool. + */ + Pool start(Context context); + + /** + * Stops a running HorizonDB pool and deallocates compute. Power operations are supported only at pool scope in this + * API version; there is no cluster-level stop action. Stop does not apply pending dynamic or static parameter + * changes; parameterGroup.syncStatus remains PendingReboot. A subsequent Start also preserves those pending + * changes. The operation succeeds as an idempotent no-op when the pool is already Stopped. It is allowed when the + * pool has no allocated nodes. The Pool-scoped ReadOnly Endpoint remains discoverable but has no routing + * destination while the Pool is Stopped. The request fails with 409 Conflict when another operation is in progress + * or the pool is in any other incompatible state. + * + * @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 represents the HorizonDB pool. + */ + Pool stop(); + + /** + * Stops a running HorizonDB pool and deallocates compute. Power operations are supported only at pool scope in this + * API version; there is no cluster-level stop action. Stop does not apply pending dynamic or static parameter + * changes; parameterGroup.syncStatus remains PendingReboot. A subsequent Start also preserves those pending + * changes. The operation succeeds as an idempotent no-op when the pool is already Stopped. It is allowed when the + * pool has no allocated nodes. The Pool-scoped ReadOnly Endpoint remains discoverable but has no routing + * destination while the Pool is Stopped. The request fails with 409 Conflict when another operation is in progress + * or the pool is in any other incompatible state. + * + * @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 represents the HorizonDB pool. + */ + Pool stop(Context context); + + /** + * Restarts the PostgreSQL container on all allocated nodes in a ready HorizonDB pool and applies pending dynamic + * and static parameter changes. This customer-initiated Restart is the only operation that applies static parameter + * changes or dynamic parameter changes requested with PendingReboot; Stop followed by Start and scheduled + * maintenance do not apply them. Power operations are supported only at pool scope in this API version; there is no + * cluster-level restart action. When the pool has no allocated nodes, the operation succeeds without restarting any + * nodes, pending changes are considered applied, parameterGroup.syncStatus becomes InSync, and the resulting + * configuration applies to nodes allocated later. The request fails with 409 Conflict when another operation is in + * progress or the pool is in any other incompatible state. + * + * @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 represents the HorizonDB pool. + */ + Pool restart(); + + /** + * Restarts the PostgreSQL container on all allocated nodes in a ready HorizonDB pool and applies pending dynamic + * and static parameter changes. This customer-initiated Restart is the only operation that applies static parameter + * changes or dynamic parameter changes requested with PendingReboot; Stop followed by Start and scheduled + * maintenance do not apply them. Power operations are supported only at pool scope in this API version; there is no + * cluster-level restart action. When the pool has no allocated nodes, the operation succeeds without restarting any + * nodes, pending changes are considered applied, parameterGroup.syncStatus becomes InSync, and the resulting + * configuration applies to nodes allocated later. The request fails with 409 Conflict when another operation is in + * progress or the pool is in any other incompatible state. + * + * @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 represents the HorizonDB pool. + */ + Pool restart(Context context); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolCapability.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolCapability.java new file mode 100644 index 0000000000000..77d720067c31f --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolCapability.java @@ -0,0 +1,117 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * The HorizonDB Pool capabilities available in a location. + */ +@Immutable +public final class PoolCapability implements JsonSerializable { + /* + * The compute processor recommended for clients to select for HorizonDB Pools in the region. This recommendation + * does not describe backend behavior when the compute processor is omitted from a request. + */ + private ComputeProcessorType recommendedComputeProcessor; + + /* + * The processor families and their compute capabilities supported by Pools in the region. + */ + private List supportedProcessors; + + /* + * Additional Pool features supported in the region independently of a processor, generation, or compute model. + */ + private List supportedFeatures; + + /** + * Creates an instance of PoolCapability class. + */ + private PoolCapability() { + } + + /** + * Get the recommendedComputeProcessor property: The compute processor recommended for clients to select for + * HorizonDB Pools in the region. This recommendation does not describe backend behavior when the compute processor + * is omitted from a request. + * + * @return the recommendedComputeProcessor value. + */ + public ComputeProcessorType recommendedComputeProcessor() { + return this.recommendedComputeProcessor; + } + + /** + * Get the supportedProcessors property: The processor families and their compute capabilities supported by Pools in + * the region. + * + * @return the supportedProcessors value. + */ + public List supportedProcessors() { + return this.supportedProcessors; + } + + /** + * Get the supportedFeatures property: Additional Pool features supported in the region independently of a + * processor, generation, or compute model. + * + * @return the supportedFeatures value. + */ + public List supportedFeatures() { + return this.supportedFeatures; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PoolCapability from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PoolCapability 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 PoolCapability. + */ + public static PoolCapability fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PoolCapability deserializedPoolCapability = new PoolCapability(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("recommendedComputeProcessor".equals(fieldName)) { + deserializedPoolCapability.recommendedComputeProcessor + = ComputeProcessorType.fromString(reader.getString()); + } else if ("supportedProcessors".equals(fieldName)) { + List supportedProcessors + = reader.readArray(reader1 -> ComputeProcessorCapability.fromJson(reader1)); + deserializedPoolCapability.supportedProcessors = supportedProcessors; + } else if ("supportedFeatures".equals(fieldName)) { + List supportedFeatures + = reader.readArray(reader1 -> PoolFeatureCapability.fromJson(reader1)); + deserializedPoolCapability.supportedFeatures = supportedFeatures; + } else { + reader.skipChildren(); + } + } + + return deserializedPoolCapability; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolComputeModel.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolComputeModel.java new file mode 100644 index 0000000000000..f58a62043eaf5 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolComputeModel.java @@ -0,0 +1,171 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.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; + +/** + * The compute model for a HorizonDB pool. + */ +@Fluent +public final class PoolComputeModel implements JsonSerializable { + /* + * The type of compute model. + */ + private PoolComputeModelType type; + + /* + * The processor type for the compute model. + */ + private ComputeProcessorType computeProcessor; + + /* + * The compute generation for the compute model. + */ + private int computeGeneration; + + /* + * The number of vCores. Allowed values are 1 through 192. + */ + private int vCores; + + /** + * Creates an instance of PoolComputeModel class. + */ + public PoolComputeModel() { + } + + /** + * Get the type property: The type of compute model. + * + * @return the type value. + */ + public PoolComputeModelType type() { + return this.type; + } + + /** + * Set the type property: The type of compute model. + * + * @param type the type value to set. + * @return the PoolComputeModel object itself. + */ + public PoolComputeModel withType(PoolComputeModelType type) { + this.type = type; + return this; + } + + /** + * Get the computeProcessor property: The processor type for the compute model. + * + * @return the computeProcessor value. + */ + public ComputeProcessorType computeProcessor() { + return this.computeProcessor; + } + + /** + * Set the computeProcessor property: The processor type for the compute model. + * + * @param computeProcessor the computeProcessor value to set. + * @return the PoolComputeModel object itself. + */ + public PoolComputeModel withComputeProcessor(ComputeProcessorType computeProcessor) { + this.computeProcessor = computeProcessor; + return this; + } + + /** + * Get the computeGeneration property: The compute generation for the compute model. + * + * @return the computeGeneration value. + */ + public int computeGeneration() { + return this.computeGeneration; + } + + /** + * Set the computeGeneration property: The compute generation for the compute model. + * + * @param computeGeneration the computeGeneration value to set. + * @return the PoolComputeModel object itself. + */ + public PoolComputeModel withComputeGeneration(int computeGeneration) { + this.computeGeneration = computeGeneration; + return this; + } + + /** + * Get the vCores property: The number of vCores. Allowed values are 1 through 192. + * + * @return the vCores value. + */ + public int vCores() { + return this.vCores; + } + + /** + * Set the vCores property: The number of vCores. Allowed values are 1 through 192. + * + * @param vCores the vCores value to set. + * @return the PoolComputeModel object itself. + */ + public PoolComputeModel withVCores(int vCores) { + this.vCores = vCores; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeStringField("computeProcessor", + this.computeProcessor == null ? null : this.computeProcessor.toString()); + jsonWriter.writeIntField("computeGeneration", this.computeGeneration); + jsonWriter.writeIntField("vCores", this.vCores); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PoolComputeModel from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PoolComputeModel 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 PoolComputeModel. + */ + public static PoolComputeModel fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PoolComputeModel deserializedPoolComputeModel = new PoolComputeModel(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("type".equals(fieldName)) { + deserializedPoolComputeModel.type = PoolComputeModelType.fromString(reader.getString()); + } else if ("computeProcessor".equals(fieldName)) { + deserializedPoolComputeModel.computeProcessor = ComputeProcessorType.fromString(reader.getString()); + } else if ("computeGeneration".equals(fieldName)) { + deserializedPoolComputeModel.computeGeneration = reader.getInt(); + } else if ("vCores".equals(fieldName)) { + deserializedPoolComputeModel.vCores = reader.getInt(); + } else { + reader.skipChildren(); + } + } + + return deserializedPoolComputeModel; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolComputeModelForPatchUpdate.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolComputeModelForPatchUpdate.java new file mode 100644 index 0000000000000..c4c22454588f9 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolComputeModelForPatchUpdate.java @@ -0,0 +1,191 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.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; + +/** + * The compute model properties of a HorizonDB pool that can be updated. The object is recursively mergeable: omitted + * properties preserve their current values. Properties that do not apply to the current or target compute model type + * are rejected. When type changes, the request must include the complete target compute model. Subtype-specific + * constraints are validated against the effective merged configuration; invalid requests are rejected without changing + * the resource. + */ +@Fluent +public final class PoolComputeModelForPatchUpdate implements JsonSerializable { + /* + * The compute model type. Omit this property to retain the current type. Resubmitting the current type succeeds as + * an idempotent no-op. To change the type, supply all common properties and all properties required by the target + * type. + */ + private PoolComputeModelType type; + + /* + * The processor type for the compute model. Omission preserves the current processor type. + */ + private ComputeProcessorType computeProcessor; + + /* + * The compute generation for the compute model. Omission preserves the current compute generation. + */ + private Integer computeGeneration; + + /* + * The number of provisioned vCores. Allowed values are 1 through 192. This property applies only to a Provisioned + * compute model. Omission preserves the current value. + */ + private Integer vCores; + + /** + * Creates an instance of PoolComputeModelForPatchUpdate class. + */ + public PoolComputeModelForPatchUpdate() { + } + + /** + * Get the type property: The compute model type. Omit this property to retain the current type. Resubmitting the + * current type succeeds as an idempotent no-op. To change the type, supply all common properties and all properties + * required by the target type. + * + * @return the type value. + */ + public PoolComputeModelType type() { + return this.type; + } + + /** + * Set the type property: The compute model type. Omit this property to retain the current type. Resubmitting the + * current type succeeds as an idempotent no-op. To change the type, supply all common properties and all properties + * required by the target type. + * + * @param type the type value to set. + * @return the PoolComputeModelForPatchUpdate object itself. + */ + public PoolComputeModelForPatchUpdate withType(PoolComputeModelType type) { + this.type = type; + return this; + } + + /** + * Get the computeProcessor property: The processor type for the compute model. Omission preserves the current + * processor type. + * + * @return the computeProcessor value. + */ + public ComputeProcessorType computeProcessor() { + return this.computeProcessor; + } + + /** + * Set the computeProcessor property: The processor type for the compute model. Omission preserves the current + * processor type. + * + * @param computeProcessor the computeProcessor value to set. + * @return the PoolComputeModelForPatchUpdate object itself. + */ + public PoolComputeModelForPatchUpdate withComputeProcessor(ComputeProcessorType computeProcessor) { + this.computeProcessor = computeProcessor; + return this; + } + + /** + * Get the computeGeneration property: The compute generation for the compute model. Omission preserves the current + * compute generation. + * + * @return the computeGeneration value. + */ + public Integer computeGeneration() { + return this.computeGeneration; + } + + /** + * Set the computeGeneration property: The compute generation for the compute model. Omission preserves the current + * compute generation. + * + * @param computeGeneration the computeGeneration value to set. + * @return the PoolComputeModelForPatchUpdate object itself. + */ + public PoolComputeModelForPatchUpdate withComputeGeneration(Integer computeGeneration) { + this.computeGeneration = computeGeneration; + return this; + } + + /** + * Get the vCores property: The number of provisioned vCores. Allowed values are 1 through 192. This property + * applies only to a Provisioned compute model. Omission preserves the current value. + * + * @return the vCores value. + */ + public Integer vCores() { + return this.vCores; + } + + /** + * Set the vCores property: The number of provisioned vCores. Allowed values are 1 through 192. This property + * applies only to a Provisioned compute model. Omission preserves the current value. + * + * @param vCores the vCores value to set. + * @return the PoolComputeModelForPatchUpdate object itself. + */ + public PoolComputeModelForPatchUpdate withVCores(Integer vCores) { + this.vCores = vCores; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + jsonWriter.writeStringField("computeProcessor", + this.computeProcessor == null ? null : this.computeProcessor.toString()); + jsonWriter.writeNumberField("computeGeneration", this.computeGeneration); + jsonWriter.writeNumberField("vCores", this.vCores); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PoolComputeModelForPatchUpdate from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PoolComputeModelForPatchUpdate 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 PoolComputeModelForPatchUpdate. + */ + public static PoolComputeModelForPatchUpdate fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PoolComputeModelForPatchUpdate deserializedPoolComputeModelForPatchUpdate + = new PoolComputeModelForPatchUpdate(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("type".equals(fieldName)) { + deserializedPoolComputeModelForPatchUpdate.type + = PoolComputeModelType.fromString(reader.getString()); + } else if ("computeProcessor".equals(fieldName)) { + deserializedPoolComputeModelForPatchUpdate.computeProcessor + = ComputeProcessorType.fromString(reader.getString()); + } else if ("computeGeneration".equals(fieldName)) { + deserializedPoolComputeModelForPatchUpdate.computeGeneration + = reader.getNullable(JsonReader::getInt); + } else if ("vCores".equals(fieldName)) { + deserializedPoolComputeModelForPatchUpdate.vCores = reader.getNullable(JsonReader::getInt); + } else { + reader.skipChildren(); + } + } + + return deserializedPoolComputeModelForPatchUpdate; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolComputeModelType.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolComputeModelType.java new file mode 100644 index 0000000000000..699f4910c96e7 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolComputeModelType.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.horizondb.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The compute model type. + */ +public final class PoolComputeModelType extends ExpandableStringEnum { + /** + * Provisioned compute model. + */ + public static final PoolComputeModelType PROVISIONED = fromString("Provisioned"); + + /** + * Creates a new instance of PoolComputeModelType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public PoolComputeModelType() { + } + + /** + * Creates or finds a PoolComputeModelType from its string representation. + * + * @param name a name to look for. + * @return the corresponding PoolComputeModelType. + */ + public static PoolComputeModelType fromString(String name) { + return fromString(name, PoolComputeModelType.class); + } + + /** + * Gets known PoolComputeModelType values. + * + * @return known PoolComputeModelType values. + */ + public static Collection values() { + return values(PoolComputeModelType.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolFeatureCapability.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolFeatureCapability.java new file mode 100644 index 0000000000000..8850f9f344836 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolFeatureCapability.java @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * A HorizonDB Pool feature supported in a location. + */ +@Immutable +public final class PoolFeatureCapability implements JsonSerializable { + /* + * The name of the Pool feature. + */ + private String name; + + /** + * Creates an instance of PoolFeatureCapability class. + */ + private PoolFeatureCapability() { + } + + /** + * Get the name property: The name of the Pool feature. + * + * @return the name value. + */ + public String name() { + return this.name; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PoolFeatureCapability from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PoolFeatureCapability 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 PoolFeatureCapability. + */ + public static PoolFeatureCapability fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PoolFeatureCapability deserializedPoolFeatureCapability = new PoolFeatureCapability(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + deserializedPoolFeatureCapability.name = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedPoolFeatureCapability; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolForPatchUpdate.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolForPatchUpdate.java new file mode 100644 index 0000000000000..e292a1c8cd4e7 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolForPatchUpdate.java @@ -0,0 +1,115 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.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; + +/** + * HorizonDB pool for update operations. + */ +@Fluent +public final class PoolForPatchUpdate implements JsonSerializable { + /* + * Resource tags. + */ + private Map tags; + + /* + * The properties that can be updated for a HorizonDB pool. + */ + private PoolPropertiesForPatchUpdate properties; + + /** + * Creates an instance of PoolForPatchUpdate class. + */ + public PoolForPatchUpdate() { + } + + /** + * Get the tags property: Resource tags. + * + * @return the tags value. + */ + public Map tags() { + return this.tags; + } + + /** + * Set the tags property: Resource tags. + * + * @param tags the tags value to set. + * @return the PoolForPatchUpdate object itself. + */ + public PoolForPatchUpdate withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get the properties property: The properties that can be updated for a HorizonDB pool. + * + * @return the properties value. + */ + public PoolPropertiesForPatchUpdate properties() { + return this.properties; + } + + /** + * Set the properties property: The properties that can be updated for a HorizonDB pool. + * + * @param properties the properties value to set. + * @return the PoolForPatchUpdate object itself. + */ + public PoolForPatchUpdate withProperties(PoolPropertiesForPatchUpdate properties) { + this.properties = properties; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + 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(); + } + + /** + * Reads an instance of PoolForPatchUpdate from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PoolForPatchUpdate 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 PoolForPatchUpdate. + */ + public static PoolForPatchUpdate fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PoolForPatchUpdate deserializedPoolForPatchUpdate = new PoolForPatchUpdate(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedPoolForPatchUpdate.tags = tags; + } else if ("properties".equals(fieldName)) { + deserializedPoolForPatchUpdate.properties = PoolPropertiesForPatchUpdate.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedPoolForPatchUpdate; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolHighAvailability.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolHighAvailability.java new file mode 100644 index 0000000000000..34df62ff27d3d --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolHighAvailability.java @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.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; + +/** + * The high-availability configuration for a HorizonDB pool. + */ +@Fluent +public final class PoolHighAvailability implements JsonSerializable { + /* + * The high-availability mode. Disabled is required when nodeCount is 1. AnyZone or ZoneRedundant is required when + * nodeCount is 2 through 16. + */ + private PoolHighAvailabilityMode mode; + + /** + * Creates an instance of PoolHighAvailability class. + */ + public PoolHighAvailability() { + } + + /** + * Get the mode property: The high-availability mode. Disabled is required when nodeCount is 1. AnyZone or + * ZoneRedundant is required when nodeCount is 2 through 16. + * + * @return the mode value. + */ + public PoolHighAvailabilityMode mode() { + return this.mode; + } + + /** + * Set the mode property: The high-availability mode. Disabled is required when nodeCount is 1. AnyZone or + * ZoneRedundant is required when nodeCount is 2 through 16. + * + * @param mode the mode value to set. + * @return the PoolHighAvailability object itself. + */ + public PoolHighAvailability withMode(PoolHighAvailabilityMode mode) { + this.mode = mode; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("mode", this.mode == null ? null : this.mode.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PoolHighAvailability from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PoolHighAvailability 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 PoolHighAvailability. + */ + public static PoolHighAvailability fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PoolHighAvailability deserializedPoolHighAvailability = new PoolHighAvailability(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("mode".equals(fieldName)) { + deserializedPoolHighAvailability.mode = PoolHighAvailabilityMode.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedPoolHighAvailability; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolHighAvailabilityMode.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolHighAvailabilityMode.java new file mode 100644 index 0000000000000..e96ec3525fbe6 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolHighAvailabilityMode.java @@ -0,0 +1,58 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The high-availability mode requested for a HorizonDB pool. + */ +public final class PoolHighAvailabilityMode extends ExpandableStringEnum { + /** + * High availability is disabled. This mode is valid only when nodeCount is 1. + */ + public static final PoolHighAvailabilityMode DISABLED = fromString("Disabled"); + + /** + * The service may allocate nodes in the same availability zone or across availability zones. This mode is valid + * only when nodeCount is 2 through 16. + */ + public static final PoolHighAvailabilityMode ANY_ZONE = fromString("AnyZone"); + + /** + * The service must allocate nodes across availability zones. This mode is valid only when nodeCount is 2 through + * 16. + */ + public static final PoolHighAvailabilityMode ZONE_REDUNDANT = fromString("ZoneRedundant"); + + /** + * Creates a new instance of PoolHighAvailabilityMode value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public PoolHighAvailabilityMode() { + } + + /** + * Creates or finds a PoolHighAvailabilityMode from its string representation. + * + * @param name a name to look for. + * @return the corresponding PoolHighAvailabilityMode. + */ + public static PoolHighAvailabilityMode fromString(String name) { + return fromString(name, PoolHighAvailabilityMode.class); + } + + /** + * Gets known PoolHighAvailabilityMode values. + * + * @return known PoolHighAvailabilityMode values. + */ + public static Collection values() { + return values(PoolHighAvailabilityMode.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolHighAvailabilityPatch.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolHighAvailabilityPatch.java new file mode 100644 index 0000000000000..76abe0609975e --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolHighAvailabilityPatch.java @@ -0,0 +1,89 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.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; + +/** + * The high-availability configuration for a HorizonDB pool update. + */ +@Fluent +public final class PoolHighAvailabilityPatch implements JsonSerializable { + /* + * The high-availability mode. Omission preserves the current mode before the service validates it with the + * effective nodeCount. + */ + private PoolHighAvailabilityMode mode; + + /** + * Creates an instance of PoolHighAvailabilityPatch class. + */ + public PoolHighAvailabilityPatch() { + } + + /** + * Get the mode property: The high-availability mode. Omission preserves the current mode before the service + * validates it with the effective nodeCount. + * + * @return the mode value. + */ + public PoolHighAvailabilityMode mode() { + return this.mode; + } + + /** + * Set the mode property: The high-availability mode. Omission preserves the current mode before the service + * validates it with the effective nodeCount. + * + * @param mode the mode value to set. + * @return the PoolHighAvailabilityPatch object itself. + */ + public PoolHighAvailabilityPatch withMode(PoolHighAvailabilityMode mode) { + this.mode = mode; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("mode", this.mode == null ? null : this.mode.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PoolHighAvailabilityPatch from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PoolHighAvailabilityPatch 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 PoolHighAvailabilityPatch. + */ + public static PoolHighAvailabilityPatch fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PoolHighAvailabilityPatch deserializedPoolHighAvailabilityPatch = new PoolHighAvailabilityPatch(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("mode".equals(fieldName)) { + deserializedPoolHighAvailabilityPatch.mode + = PoolHighAvailabilityMode.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedPoolHighAvailabilityPatch; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolParameterGroupReference.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolParameterGroupReference.java new file mode 100644 index 0000000000000..425058711503c --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolParameterGroupReference.java @@ -0,0 +1,152 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.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; + +/** + * A reference to the parameter group associated with a HorizonDB pool. The schema represents both default and + * customer-created parameter groups for create and update compatibility. In this API version, initial pool creation + * accepts only the corresponding default parameter group; PUT updates to an existing pool can associate either group + * type. + */ +@Fluent +public final class PoolParameterGroupReference implements JsonSerializable { + /* + * The Azure resource ID of the associated parameter group. Initial pool creation in this API version requires the + * corresponding Microsoft.HorizonDb/locations/parameterGroups resource. For an existing pool, PUT can specify + * either the corresponding default group or a customer-created Microsoft.HorizonDb/parameterGroups resource. + */ + private String parameterGroupResourceId; + + /* + * Determines when dynamic parameter changes from the associated parameter group become effective. Static parameter + * changes always require a customer-initiated pool Restart, regardless of this value. Stop followed by Start and + * scheduled maintenance do not apply pending parameter changes. + */ + private ParameterApplyMethod applyMethod; + + /* + * The synchronization status between the pool and its parameter group. PendingReboot changes remain pending across + * Stop, Start, and scheduled maintenance and become effective only after a customer-initiated Restart. + */ + private ParameterGroupSyncStatus syncStatus; + + /** + * Creates an instance of PoolParameterGroupReference class. + */ + public PoolParameterGroupReference() { + } + + /** + * Get the parameterGroupResourceId property: The Azure resource ID of the associated parameter group. Initial pool + * creation in this API version requires the corresponding Microsoft.HorizonDb/locations/parameterGroups resource. + * For an existing pool, PUT can specify either the corresponding default group or a customer-created + * Microsoft.HorizonDb/parameterGroups resource. + * + * @return the parameterGroupResourceId value. + */ + public String parameterGroupResourceId() { + return this.parameterGroupResourceId; + } + + /** + * Set the parameterGroupResourceId property: The Azure resource ID of the associated parameter group. Initial pool + * creation in this API version requires the corresponding Microsoft.HorizonDb/locations/parameterGroups resource. + * For an existing pool, PUT can specify either the corresponding default group or a customer-created + * Microsoft.HorizonDb/parameterGroups resource. + * + * @param parameterGroupResourceId the parameterGroupResourceId value to set. + * @return the PoolParameterGroupReference object itself. + */ + public PoolParameterGroupReference withParameterGroupResourceId(String parameterGroupResourceId) { + this.parameterGroupResourceId = parameterGroupResourceId; + return this; + } + + /** + * Get the applyMethod property: Determines when dynamic parameter changes from the associated parameter group + * become effective. Static parameter changes always require a customer-initiated pool Restart, regardless of this + * value. Stop followed by Start and scheduled maintenance do not apply pending parameter changes. + * + * @return the applyMethod value. + */ + public ParameterApplyMethod applyMethod() { + return this.applyMethod; + } + + /** + * Set the applyMethod property: Determines when dynamic parameter changes from the associated parameter group + * become effective. Static parameter changes always require a customer-initiated pool Restart, regardless of this + * value. Stop followed by Start and scheduled maintenance do not apply pending parameter changes. + * + * @param applyMethod the applyMethod value to set. + * @return the PoolParameterGroupReference object itself. + */ + public PoolParameterGroupReference withApplyMethod(ParameterApplyMethod applyMethod) { + this.applyMethod = applyMethod; + return this; + } + + /** + * Get the syncStatus property: The synchronization status between the pool and its parameter group. PendingReboot + * changes remain pending across Stop, Start, and scheduled maintenance and become effective only after a + * customer-initiated Restart. + * + * @return the syncStatus value. + */ + public ParameterGroupSyncStatus syncStatus() { + return this.syncStatus; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("parameterGroupResourceId", this.parameterGroupResourceId); + jsonWriter.writeStringField("applyMethod", this.applyMethod == null ? null : this.applyMethod.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PoolParameterGroupReference from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PoolParameterGroupReference 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 PoolParameterGroupReference. + */ + public static PoolParameterGroupReference fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PoolParameterGroupReference deserializedPoolParameterGroupReference = new PoolParameterGroupReference(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("parameterGroupResourceId".equals(fieldName)) { + deserializedPoolParameterGroupReference.parameterGroupResourceId = reader.getString(); + } else if ("applyMethod".equals(fieldName)) { + deserializedPoolParameterGroupReference.applyMethod + = ParameterApplyMethod.fromString(reader.getString()); + } else if ("syncStatus".equals(fieldName)) { + deserializedPoolParameterGroupReference.syncStatus + = ParameterGroupSyncStatus.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedPoolParameterGroupReference; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolParameterGroupReferenceForPatchUpdate.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolParameterGroupReferenceForPatchUpdate.java new file mode 100644 index 0000000000000..376b5c82df9f3 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolParameterGroupReferenceForPatchUpdate.java @@ -0,0 +1,126 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.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; + +/** + * A parameter group reference for updating an existing HorizonDB pool. The pool can switch in either direction between + * its corresponding default parameter group and a customer-created parameter group. + */ +@Fluent +public final class PoolParameterGroupReferenceForPatchUpdate + implements JsonSerializable { + /* + * The Azure resource ID of the corresponding default or customer-created parameter group to associate with the + * existing pool. + */ + private String parameterGroupResourceId; + + /* + * Determines when dynamic parameter changes from the associated parameter group become effective. Static parameter + * changes always require a customer-initiated pool Restart, regardless of this value. Stop followed by Start and + * scheduled maintenance do not apply pending parameter changes. + */ + private ParameterApplyMethod applyMethod; + + /** + * Creates an instance of PoolParameterGroupReferenceForPatchUpdate class. + */ + public PoolParameterGroupReferenceForPatchUpdate() { + } + + /** + * Get the parameterGroupResourceId property: The Azure resource ID of the corresponding default or customer-created + * parameter group to associate with the existing pool. + * + * @return the parameterGroupResourceId value. + */ + public String parameterGroupResourceId() { + return this.parameterGroupResourceId; + } + + /** + * Set the parameterGroupResourceId property: The Azure resource ID of the corresponding default or customer-created + * parameter group to associate with the existing pool. + * + * @param parameterGroupResourceId the parameterGroupResourceId value to set. + * @return the PoolParameterGroupReferenceForPatchUpdate object itself. + */ + public PoolParameterGroupReferenceForPatchUpdate withParameterGroupResourceId(String parameterGroupResourceId) { + this.parameterGroupResourceId = parameterGroupResourceId; + return this; + } + + /** + * Get the applyMethod property: Determines when dynamic parameter changes from the associated parameter group + * become effective. Static parameter changes always require a customer-initiated pool Restart, regardless of this + * value. Stop followed by Start and scheduled maintenance do not apply pending parameter changes. + * + * @return the applyMethod value. + */ + public ParameterApplyMethod applyMethod() { + return this.applyMethod; + } + + /** + * Set the applyMethod property: Determines when dynamic parameter changes from the associated parameter group + * become effective. Static parameter changes always require a customer-initiated pool Restart, regardless of this + * value. Stop followed by Start and scheduled maintenance do not apply pending parameter changes. + * + * @param applyMethod the applyMethod value to set. + * @return the PoolParameterGroupReferenceForPatchUpdate object itself. + */ + public PoolParameterGroupReferenceForPatchUpdate withApplyMethod(ParameterApplyMethod applyMethod) { + this.applyMethod = applyMethod; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("parameterGroupResourceId", this.parameterGroupResourceId); + jsonWriter.writeStringField("applyMethod", this.applyMethod == null ? null : this.applyMethod.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PoolParameterGroupReferenceForPatchUpdate from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PoolParameterGroupReferenceForPatchUpdate 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 PoolParameterGroupReferenceForPatchUpdate. + */ + public static PoolParameterGroupReferenceForPatchUpdate fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PoolParameterGroupReferenceForPatchUpdate deserializedPoolParameterGroupReferenceForPatchUpdate + = new PoolParameterGroupReferenceForPatchUpdate(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("parameterGroupResourceId".equals(fieldName)) { + deserializedPoolParameterGroupReferenceForPatchUpdate.parameterGroupResourceId = reader.getString(); + } else if ("applyMethod".equals(fieldName)) { + deserializedPoolParameterGroupReferenceForPatchUpdate.applyMethod + = ParameterApplyMethod.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedPoolParameterGroupReferenceForPatchUpdate; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolProperties.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolProperties.java new file mode 100644 index 0000000000000..4350e24d7ad8c --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolProperties.java @@ -0,0 +1,253 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.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; + +/** + * Properties of a HorizonDB pool. + */ +@Fluent +public final class PoolProperties implements JsonSerializable { + /* + * Current state of the pool. + */ + private PoolState state; + + /* + * The required compute model for the HorizonDB pool. + */ + private PoolComputeModel computeModel; + + /* + * The required number of nodes to allocate and assign to the pool. Allowed values are 1 through 16. To deallocate + * runtime compute without changing the configured node count, stop the pool. + */ + private int nodeCount; + + /* + * The required high-availability configuration for the pool. mode must be Disabled when nodeCount is 1, and must be + * AnyZone or ZoneRedundant when nodeCount is 2 through 16. + */ + private PoolHighAvailability highAvailability; + + /* + * The required parameter group associated with the pool. When creating a new pool in this API version, the caller + * must supply the corresponding default parameter group; customer-created parameter groups are not accepted during + * creation. For an existing pool, PUT or PATCH can associate either the corresponding default parameter group or a + * customer-created parameter group. The create-visible shape intentionally supports both resource ID forms so a + * future API version can allow customer-created parameter groups during creation without a breaking schema change. + */ + private PoolParameterGroupReference parameterGroup; + + /* + * The scheduled maintenance configuration for the pool. The properties available depend on the selected maintenance + * management type. + */ + private ScheduledMaintenanceProperties scheduledMaintenance; + + /* + * The provisioning state of the pool. + */ + private ProvisioningState provisioningState; + + /** + * Creates an instance of PoolProperties class. + */ + public PoolProperties() { + } + + /** + * Get the state property: Current state of the pool. + * + * @return the state value. + */ + public PoolState state() { + return this.state; + } + + /** + * Get the computeModel property: The required compute model for the HorizonDB pool. + * + * @return the computeModel value. + */ + public PoolComputeModel computeModel() { + return this.computeModel; + } + + /** + * Set the computeModel property: The required compute model for the HorizonDB pool. + * + * @param computeModel the computeModel value to set. + * @return the PoolProperties object itself. + */ + public PoolProperties withComputeModel(PoolComputeModel computeModel) { + this.computeModel = computeModel; + return this; + } + + /** + * Get the nodeCount property: The required number of nodes to allocate and assign to the pool. Allowed values are 1 + * through 16. To deallocate runtime compute without changing the configured node count, stop the pool. + * + * @return the nodeCount value. + */ + public int nodeCount() { + return this.nodeCount; + } + + /** + * Set the nodeCount property: The required number of nodes to allocate and assign to the pool. Allowed values are 1 + * through 16. To deallocate runtime compute without changing the configured node count, stop the pool. + * + * @param nodeCount the nodeCount value to set. + * @return the PoolProperties object itself. + */ + public PoolProperties withNodeCount(int nodeCount) { + this.nodeCount = nodeCount; + return this; + } + + /** + * Get the highAvailability property: The required high-availability configuration for the pool. mode must be + * Disabled when nodeCount is 1, and must be AnyZone or ZoneRedundant when nodeCount is 2 through 16. + * + * @return the highAvailability value. + */ + public PoolHighAvailability highAvailability() { + return this.highAvailability; + } + + /** + * Set the highAvailability property: The required high-availability configuration for the pool. mode must be + * Disabled when nodeCount is 1, and must be AnyZone or ZoneRedundant when nodeCount is 2 through 16. + * + * @param highAvailability the highAvailability value to set. + * @return the PoolProperties object itself. + */ + public PoolProperties withHighAvailability(PoolHighAvailability highAvailability) { + this.highAvailability = highAvailability; + return this; + } + + /** + * Get the parameterGroup property: The required parameter group associated with the pool. When creating a new pool + * in this API version, the caller must supply the corresponding default parameter group; customer-created parameter + * groups are not accepted during creation. For an existing pool, PUT or PATCH can associate either the + * corresponding default parameter group or a customer-created parameter group. The create-visible shape + * intentionally supports both resource ID forms so a future API version can allow customer-created parameter groups + * during creation without a breaking schema change. + * + * @return the parameterGroup value. + */ + public PoolParameterGroupReference parameterGroup() { + return this.parameterGroup; + } + + /** + * Set the parameterGroup property: The required parameter group associated with the pool. When creating a new pool + * in this API version, the caller must supply the corresponding default parameter group; customer-created parameter + * groups are not accepted during creation. For an existing pool, PUT or PATCH can associate either the + * corresponding default parameter group or a customer-created parameter group. The create-visible shape + * intentionally supports both resource ID forms so a future API version can allow customer-created parameter groups + * during creation without a breaking schema change. + * + * @param parameterGroup the parameterGroup value to set. + * @return the PoolProperties object itself. + */ + public PoolProperties withParameterGroup(PoolParameterGroupReference parameterGroup) { + this.parameterGroup = parameterGroup; + return this; + } + + /** + * Get the scheduledMaintenance property: The scheduled maintenance configuration for the pool. The properties + * available depend on the selected maintenance management type. + * + * @return the scheduledMaintenance value. + */ + public ScheduledMaintenanceProperties scheduledMaintenance() { + return this.scheduledMaintenance; + } + + /** + * Set the scheduledMaintenance property: The scheduled maintenance configuration for the pool. The properties + * available depend on the selected maintenance management type. + * + * @param scheduledMaintenance the scheduledMaintenance value to set. + * @return the PoolProperties object itself. + */ + public PoolProperties withScheduledMaintenance(ScheduledMaintenanceProperties scheduledMaintenance) { + this.scheduledMaintenance = scheduledMaintenance; + return this; + } + + /** + * Get the provisioningState property: The provisioning state of the pool. + * + * @return the provisioningState value. + */ + public ProvisioningState provisioningState() { + return this.provisioningState; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("computeModel", this.computeModel); + jsonWriter.writeIntField("nodeCount", this.nodeCount); + jsonWriter.writeJsonField("highAvailability", this.highAvailability); + jsonWriter.writeJsonField("parameterGroup", this.parameterGroup); + jsonWriter.writeJsonField("scheduledMaintenance", this.scheduledMaintenance); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PoolProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PoolProperties 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 PoolProperties. + */ + public static PoolProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PoolProperties deserializedPoolProperties = new PoolProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("computeModel".equals(fieldName)) { + deserializedPoolProperties.computeModel = PoolComputeModel.fromJson(reader); + } else if ("nodeCount".equals(fieldName)) { + deserializedPoolProperties.nodeCount = reader.getInt(); + } else if ("highAvailability".equals(fieldName)) { + deserializedPoolProperties.highAvailability = PoolHighAvailability.fromJson(reader); + } else if ("parameterGroup".equals(fieldName)) { + deserializedPoolProperties.parameterGroup = PoolParameterGroupReference.fromJson(reader); + } else if ("state".equals(fieldName)) { + deserializedPoolProperties.state = PoolState.fromString(reader.getString()); + } else if ("scheduledMaintenance".equals(fieldName)) { + deserializedPoolProperties.scheduledMaintenance = ScheduledMaintenanceProperties.fromJson(reader); + } else if ("provisioningState".equals(fieldName)) { + deserializedPoolProperties.provisioningState = ProvisioningState.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedPoolProperties; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolPropertiesForPatchUpdate.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolPropertiesForPatchUpdate.java new file mode 100644 index 0000000000000..c7bf4a0ac427a --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolPropertiesForPatchUpdate.java @@ -0,0 +1,230 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.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; + +/** + * Properties of a HorizonDB pool for update operations. + */ +@Fluent +public final class PoolPropertiesForPatchUpdate implements JsonSerializable { + /* + * The compute model properties to update. Omitted properties preserve their current values. To change the compute + * model type, supply the complete target compute model, including type, computeProcessor, computeGeneration, and + * all properties required by the target type. + */ + private PoolComputeModelForPatchUpdate computeModel; + + /* + * The number of nodes to allocate and assign to the pool. Allowed values are 1 through 16. Omission preserves the + * current configured value. To deallocate runtime compute without changing the configured node count, stop the + * pool. + */ + private Integer nodeCount; + + /* + * The high-availability configuration to update. Omission preserves the current mode. The service recursively + * merges omitted PATCH properties with the existing resource before validating the effective nodeCount and mode + * together. + */ + private PoolHighAvailabilityPatch highAvailability; + + /* + * The corresponding default or a customer-created parameter group to associate with the existing pool. Customers + * can switch in either direction between these group types. Omission preserves the current association. + */ + private PoolParameterGroupReferenceForPatchUpdate parameterGroup; + + /* + * The scheduled maintenance configuration to update for the pool. When supplied, the complete configuration for the + * selected maintenance management type is required. Omission preserves the current configuration. + */ + private ScheduledMaintenancePropertiesForPatchUpdate scheduledMaintenance; + + /** + * Creates an instance of PoolPropertiesForPatchUpdate class. + */ + public PoolPropertiesForPatchUpdate() { + } + + /** + * Get the computeModel property: The compute model properties to update. Omitted properties preserve their current + * values. To change the compute model type, supply the complete target compute model, including type, + * computeProcessor, computeGeneration, and all properties required by the target type. + * + * @return the computeModel value. + */ + public PoolComputeModelForPatchUpdate computeModel() { + return this.computeModel; + } + + /** + * Set the computeModel property: The compute model properties to update. Omitted properties preserve their current + * values. To change the compute model type, supply the complete target compute model, including type, + * computeProcessor, computeGeneration, and all properties required by the target type. + * + * @param computeModel the computeModel value to set. + * @return the PoolPropertiesForPatchUpdate object itself. + */ + public PoolPropertiesForPatchUpdate withComputeModel(PoolComputeModelForPatchUpdate computeModel) { + this.computeModel = computeModel; + return this; + } + + /** + * Get the nodeCount property: The number of nodes to allocate and assign to the pool. Allowed values are 1 through + * 16. Omission preserves the current configured value. To deallocate runtime compute without changing the + * configured node count, stop the pool. + * + * @return the nodeCount value. + */ + public Integer nodeCount() { + return this.nodeCount; + } + + /** + * Set the nodeCount property: The number of nodes to allocate and assign to the pool. Allowed values are 1 through + * 16. Omission preserves the current configured value. To deallocate runtime compute without changing the + * configured node count, stop the pool. + * + * @param nodeCount the nodeCount value to set. + * @return the PoolPropertiesForPatchUpdate object itself. + */ + public PoolPropertiesForPatchUpdate withNodeCount(Integer nodeCount) { + this.nodeCount = nodeCount; + return this; + } + + /** + * Get the highAvailability property: The high-availability configuration to update. Omission preserves the current + * mode. The service recursively merges omitted PATCH properties with the existing resource before validating the + * effective nodeCount and mode together. + * + * @return the highAvailability value. + */ + public PoolHighAvailabilityPatch highAvailability() { + return this.highAvailability; + } + + /** + * Set the highAvailability property: The high-availability configuration to update. Omission preserves the current + * mode. The service recursively merges omitted PATCH properties with the existing resource before validating the + * effective nodeCount and mode together. + * + * @param highAvailability the highAvailability value to set. + * @return the PoolPropertiesForPatchUpdate object itself. + */ + public PoolPropertiesForPatchUpdate withHighAvailability(PoolHighAvailabilityPatch highAvailability) { + this.highAvailability = highAvailability; + return this; + } + + /** + * Get the parameterGroup property: The corresponding default or a customer-created parameter group to associate + * with the existing pool. Customers can switch in either direction between these group types. Omission preserves + * the current association. + * + * @return the parameterGroup value. + */ + public PoolParameterGroupReferenceForPatchUpdate parameterGroup() { + return this.parameterGroup; + } + + /** + * Set the parameterGroup property: The corresponding default or a customer-created parameter group to associate + * with the existing pool. Customers can switch in either direction between these group types. Omission preserves + * the current association. + * + * @param parameterGroup the parameterGroup value to set. + * @return the PoolPropertiesForPatchUpdate object itself. + */ + public PoolPropertiesForPatchUpdate withParameterGroup(PoolParameterGroupReferenceForPatchUpdate parameterGroup) { + this.parameterGroup = parameterGroup; + return this; + } + + /** + * Get the scheduledMaintenance property: The scheduled maintenance configuration to update for the pool. When + * supplied, the complete configuration for the selected maintenance management type is required. Omission preserves + * the current configuration. + * + * @return the scheduledMaintenance value. + */ + public ScheduledMaintenancePropertiesForPatchUpdate scheduledMaintenance() { + return this.scheduledMaintenance; + } + + /** + * Set the scheduledMaintenance property: The scheduled maintenance configuration to update for the pool. When + * supplied, the complete configuration for the selected maintenance management type is required. Omission preserves + * the current configuration. + * + * @param scheduledMaintenance the scheduledMaintenance value to set. + * @return the PoolPropertiesForPatchUpdate object itself. + */ + public PoolPropertiesForPatchUpdate + withScheduledMaintenance(ScheduledMaintenancePropertiesForPatchUpdate scheduledMaintenance) { + this.scheduledMaintenance = scheduledMaintenance; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("computeModel", this.computeModel); + jsonWriter.writeNumberField("nodeCount", this.nodeCount); + jsonWriter.writeJsonField("highAvailability", this.highAvailability); + jsonWriter.writeJsonField("parameterGroup", this.parameterGroup); + jsonWriter.writeJsonField("scheduledMaintenance", this.scheduledMaintenance); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PoolPropertiesForPatchUpdate from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PoolPropertiesForPatchUpdate 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 PoolPropertiesForPatchUpdate. + */ + public static PoolPropertiesForPatchUpdate fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PoolPropertiesForPatchUpdate deserializedPoolPropertiesForPatchUpdate = new PoolPropertiesForPatchUpdate(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("computeModel".equals(fieldName)) { + deserializedPoolPropertiesForPatchUpdate.computeModel + = PoolComputeModelForPatchUpdate.fromJson(reader); + } else if ("nodeCount".equals(fieldName)) { + deserializedPoolPropertiesForPatchUpdate.nodeCount = reader.getNullable(JsonReader::getInt); + } else if ("highAvailability".equals(fieldName)) { + deserializedPoolPropertiesForPatchUpdate.highAvailability + = PoolHighAvailabilityPatch.fromJson(reader); + } else if ("parameterGroup".equals(fieldName)) { + deserializedPoolPropertiesForPatchUpdate.parameterGroup + = PoolParameterGroupReferenceForPatchUpdate.fromJson(reader); + } else if ("scheduledMaintenance".equals(fieldName)) { + deserializedPoolPropertiesForPatchUpdate.scheduledMaintenance + = ScheduledMaintenancePropertiesForPatchUpdate.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedPoolPropertiesForPatchUpdate; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolState.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolState.java new file mode 100644 index 0000000000000..1392496767707 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PoolState.java @@ -0,0 +1,86 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Current state of a HorizonDB pool. + */ +public final class PoolState extends ExpandableStringEnum { + /** + * Is ready and operational. + */ + public static final PoolState READY = fromString("Ready"); + + /** + * Is provisioning. + */ + public static final PoolState PROVISIONING = fromString("Provisioning"); + + /** + * Is being deleted. + */ + public static final PoolState DELETING = fromString("Deleting"); + + /** + * Is inaccessible. + */ + public static final PoolState INACCESSIBLE = fromString("Inaccessible"); + + /** + * Is being updated. + */ + public static final PoolState UPDATING = fromString("Updating"); + + /** + * Is starting up. + */ + public static final PoolState STARTING = fromString("Starting"); + + /** + * Is restarting. + */ + public static final PoolState RESTARTING = fromString("Restarting"); + + /** + * Is stopping. + */ + public static final PoolState STOPPING = fromString("Stopping"); + + /** + * Is stopped. + */ + public static final PoolState STOPPED = fromString("Stopped"); + + /** + * Creates a new instance of PoolState value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public PoolState() { + } + + /** + * Creates or finds a PoolState from its string representation. + * + * @param name a name to look for. + * @return the corresponding PoolState. + */ + public static PoolState fromString(String name) { + return fromString(name, PoolState.class); + } + + /** + * Gets known PoolState values. + * + * @return known PoolState values. + */ + public static Collection values() { + return values(PoolState.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Pools.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Pools.java new file mode 100644 index 0000000000000..97c3a70e2dbc0 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/Pools.java @@ -0,0 +1,292 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of Pools. + */ +public interface Pools { + /** + * Gets information about a HorizonDB pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 information about a HorizonDB pool along with {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String clusterName, String poolName, Context context); + + /** + * Gets information about a HorizonDB pool. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 information about a HorizonDB pool. + */ + Pool get(String resourceGroupName, String clusterName, String poolName); + + /** + * Deletes a HorizonDB pool together with the Pool-scoped Endpoint whose associatedResourceId identifies that Pool + * and all FirewallRule children of that Endpoint. The Endpoint cannot outlive or be deleted independently from its + * Pool. When this is the Cluster's last surviving Pool, the service also disconnects every existing private + * endpoint connection associated with the Cluster by setting its privateLinkServiceConnectionState.status to + * Rejected and providing a description that the last Pool was deleted. The HorizonDB private endpoint connection + * resources remain available for inspection and cleanup, and customer-owned Microsoft.Network/privateEndpoints + * resources are not deleted. The delete long-running operation completes only after all required private endpoint + * disconnections have completed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 delete(String resourceGroupName, String clusterName, String poolName); + + /** + * Deletes a HorizonDB pool together with the Pool-scoped Endpoint whose associatedResourceId identifies that Pool + * and all FirewallRule children of that Endpoint. The Endpoint cannot outlive or be deleted independently from its + * Pool. When this is the Cluster's last surviving Pool, the service also disconnects every existing private + * endpoint connection associated with the Cluster by setting its privateLinkServiceConnectionState.status to + * Rejected and providing a description that the last Pool was deleted. The HorizonDB private endpoint connection + * resources remain available for inspection and cleanup, and customer-owned Microsoft.Network/privateEndpoints + * resources are not deleted. The delete long-running operation completes only after all required private endpoint + * disconnections have completed. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 delete(String resourceGroupName, String clusterName, String poolName, Context context); + + /** + * Lists all HorizonDB pools in a cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Pool list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String clusterName); + + /** + * Lists all HorizonDB pools in a cluster. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response of a Pool list operation as paginated response with {@link PagedIterable}. + */ + PagedIterable list(String resourceGroupName, String clusterName, Context context); + + /** + * Starts a stopped HorizonDB pool. Power operations are supported only at pool scope in this API version; there is + * no cluster-level start action. Start does not apply pending dynamic or static parameter changes; + * parameterGroup.syncStatus remains PendingReboot until a customer-initiated Restart. When the pool is already + * Ready, the operation succeeds as a true idempotent no-op and likewise leaves pending parameter changes pending. + * The operation is allowed when the pool has no allocated nodes. After the Pool is running, its Pool-scoped + * ReadOnly Endpoint routes only when at least one allocated node is not currently playing the read-write role. The + * request fails with 409 Conflict when another operation is in progress or the pool is in any other incompatible + * state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool. + */ + Pool start(String resourceGroupName, String clusterName, String poolName); + + /** + * Starts a stopped HorizonDB pool. Power operations are supported only at pool scope in this API version; there is + * no cluster-level start action. Start does not apply pending dynamic or static parameter changes; + * parameterGroup.syncStatus remains PendingReboot until a customer-initiated Restart. When the pool is already + * Ready, the operation succeeds as a true idempotent no-op and likewise leaves pending parameter changes pending. + * The operation is allowed when the pool has no allocated nodes. After the Pool is running, its Pool-scoped + * ReadOnly Endpoint routes only when at least one allocated node is not currently playing the read-write role. The + * request fails with 409 Conflict when another operation is in progress or the pool is in any other incompatible + * state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool. + */ + Pool start(String resourceGroupName, String clusterName, String poolName, Context context); + + /** + * Stops a running HorizonDB pool and deallocates compute. Power operations are supported only at pool scope in this + * API version; there is no cluster-level stop action. Stop does not apply pending dynamic or static parameter + * changes; parameterGroup.syncStatus remains PendingReboot. A subsequent Start also preserves those pending + * changes. The operation succeeds as an idempotent no-op when the pool is already Stopped. It is allowed when the + * pool has no allocated nodes. The Pool-scoped ReadOnly Endpoint remains discoverable but has no routing + * destination while the Pool is Stopped. The request fails with 409 Conflict when another operation is in progress + * or the pool is in any other incompatible state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool. + */ + Pool stop(String resourceGroupName, String clusterName, String poolName); + + /** + * Stops a running HorizonDB pool and deallocates compute. Power operations are supported only at pool scope in this + * API version; there is no cluster-level stop action. Stop does not apply pending dynamic or static parameter + * changes; parameterGroup.syncStatus remains PendingReboot. A subsequent Start also preserves those pending + * changes. The operation succeeds as an idempotent no-op when the pool is already Stopped. It is allowed when the + * pool has no allocated nodes. The Pool-scoped ReadOnly Endpoint remains discoverable but has no routing + * destination while the Pool is Stopped. The request fails with 409 Conflict when another operation is in progress + * or the pool is in any other incompatible state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool. + */ + Pool stop(String resourceGroupName, String clusterName, String poolName, Context context); + + /** + * Restarts the PostgreSQL container on all allocated nodes in a ready HorizonDB pool and applies pending dynamic + * and static parameter changes. This customer-initiated Restart is the only operation that applies static parameter + * changes or dynamic parameter changes requested with PendingReboot; Stop followed by Start and scheduled + * maintenance do not apply them. Power operations are supported only at pool scope in this API version; there is no + * cluster-level restart action. When the pool has no allocated nodes, the operation succeeds without restarting any + * nodes, pending changes are considered applied, parameterGroup.syncStatus becomes InSync, and the resulting + * configuration applies to nodes allocated later. The request fails with 409 Conflict when another operation is in + * progress or the pool is in any other incompatible state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool. + */ + Pool restart(String resourceGroupName, String clusterName, String poolName); + + /** + * Restarts the PostgreSQL container on all allocated nodes in a ready HorizonDB pool and applies pending dynamic + * and static parameter changes. This customer-initiated Restart is the only operation that applies static parameter + * changes or dynamic parameter changes requested with PendingReboot; Stop followed by Start and scheduled + * maintenance do not apply them. Power operations are supported only at pool scope in this API version; there is no + * cluster-level restart action. When the pool has no allocated nodes, the operation succeeds without restarting any + * nodes, pending changes are considered applied, parameterGroup.syncStatus becomes InSync, and the resulting + * configuration applies to nodes allocated later. The request fails with 409 Conflict when another operation is in + * progress or the pool is in any other incompatible state. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @param poolName The name of the HorizonDB pool. + * @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 represents the HorizonDB pool. + */ + Pool restart(String resourceGroupName, String clusterName, String poolName, Context context); + + /** + * Gets information about a HorizonDB pool. + * + * @param id the resource ID. + * @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 information about a HorizonDB pool along with {@link Response}. + */ + Pool getById(String id); + + /** + * Gets information about a HorizonDB pool. + * + * @param id the resource ID. + * @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 information about a HorizonDB pool along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); + + /** + * Deletes a HorizonDB pool together with the Pool-scoped Endpoint whose associatedResourceId identifies that Pool + * and all FirewallRule children of that Endpoint. The Endpoint cannot outlive or be deleted independently from its + * Pool. When this is the Cluster's last surviving Pool, the service also disconnects every existing private + * endpoint connection associated with the Cluster by setting its privateLinkServiceConnectionState.status to + * Rejected and providing a description that the last Pool was deleted. The HorizonDB private endpoint connection + * resources remain available for inspection and cleanup, and customer-owned Microsoft.Network/privateEndpoints + * resources are not deleted. The delete long-running operation completes only after all required private endpoint + * disconnections have completed. + * + * @param id the resource ID. + * @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 deleteById(String id); + + /** + * Deletes a HorizonDB pool together with the Pool-scoped Endpoint whose associatedResourceId identifies that Pool + * and all FirewallRule children of that Endpoint. The Endpoint cannot outlive or be deleted independently from its + * Pool. When this is the Cluster's last surviving Pool, the service also disconnects every existing private + * endpoint connection associated with the Cluster by setting its privateLinkServiceConnectionState.status to + * Rejected and providing a description that the last Pool was deleted. The HorizonDB private endpoint connection + * resources remain available for inspection and cleanup, and customer-owned Microsoft.Network/privateEndpoints + * resources are not deleted. The delete long-running operation completes only after all required private endpoint + * disconnections have completed. + * + * @param id the resource ID. + * @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 deleteByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new Pool resource. + * + * @param name resource name. + * @return the first stage of the new Pool definition. + */ + Pool.DefinitionStages.Blank define(String name); +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PostgreSqlCapabilityVersion.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PostgreSqlCapabilityVersion.java new file mode 100644 index 0000000000000..8f2ab454042b3 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PostgreSqlCapabilityVersion.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * A PostgreSQL major version advertised by the HorizonDB capabilities API. + */ +public final class PostgreSqlCapabilityVersion extends ExpandableStringEnum { + /** + * PostgreSQL major version 17. + */ + public static final PostgreSqlCapabilityVersion V17 = fromString("17"); + + /** + * PostgreSQL major version 18. + */ + public static final PostgreSqlCapabilityVersion V18 = fromString("18"); + + /** + * Creates a new instance of PostgreSqlCapabilityVersion value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public PostgreSqlCapabilityVersion() { + } + + /** + * Creates or finds a PostgreSqlCapabilityVersion from its string representation. + * + * @param name a name to look for. + * @return the corresponding PostgreSqlCapabilityVersion. + */ + public static PostgreSqlCapabilityVersion fromString(String name) { + return fromString(name, PostgreSqlCapabilityVersion.class); + } + + /** + * Gets known PostgreSqlCapabilityVersion values. + * + * @return known PostgreSqlCapabilityVersion values. + */ + public static Collection values() { + return values(PostgreSqlCapabilityVersion.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PostgreSqlVersion.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PostgreSqlVersion.java new file mode 100644 index 0000000000000..2f5ea0327c4e0 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PostgreSqlVersion.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * A PostgreSQL major version supported by HorizonDB. API version 2026-10-01-preview accepts 17 and 18. Future API + * versions may add named values, and clients must tolerate unknown values returned by the service. + */ +public final class PostgreSqlVersion extends ExpandableStringEnum { + /** + * PostgreSQL major version 17. + */ + public static final PostgreSqlVersion V17 = fromString("17"); + + /** + * PostgreSQL major version 18. + */ + public static final PostgreSqlVersion V18 = fromString("18"); + + /** + * Creates a new instance of PostgreSqlVersion value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public PostgreSqlVersion() { + } + + /** + * Creates or finds a PostgreSqlVersion from its string representation. + * + * @param name a name to look for. + * @return the corresponding PostgreSqlVersion. + */ + public static PostgreSqlVersion fromString(String name) { + return fromString(name, PostgreSqlVersion.class); + } + + /** + * Gets known PostgreSqlVersion values. + * + * @return known PostgreSqlVersion values. + */ + public static Collection values() { + return values(PostgreSqlVersion.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PostgreSqlVersionCapability.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PostgreSqlVersionCapability.java new file mode 100644 index 0000000000000..4d76c6e4e24d2 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PostgreSqlVersionCapability.java @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * The capabilities of a PostgreSQL major version supported by HorizonDB. + */ +@Immutable +public final class PostgreSqlVersionCapability implements JsonSerializable { + /* + * The PostgreSQL major version. + */ + private PostgreSqlCapabilityVersion name; + + /* + * The PostgreSQL major versions to which this version can be upgraded in place. API version 2026-10-01-preview does + * not support in-place PostgreSQL major-version upgrades, so this array is always empty. + */ + private List supportedVersionsToUpgrade; + + /** + * Creates an instance of PostgreSqlVersionCapability class. + */ + private PostgreSqlVersionCapability() { + } + + /** + * Get the name property: The PostgreSQL major version. + * + * @return the name value. + */ + public PostgreSqlCapabilityVersion name() { + return this.name; + } + + /** + * Get the supportedVersionsToUpgrade property: The PostgreSQL major versions to which this version can be upgraded + * in place. API version 2026-10-01-preview does not support in-place PostgreSQL major-version upgrades, so this + * array is always empty. + * + * @return the supportedVersionsToUpgrade value. + */ + public List supportedVersionsToUpgrade() { + return this.supportedVersionsToUpgrade; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of PostgreSqlVersionCapability from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of PostgreSqlVersionCapability 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 PostgreSqlVersionCapability. + */ + public static PostgreSqlVersionCapability fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + PostgreSqlVersionCapability deserializedPostgreSqlVersionCapability = new PostgreSqlVersionCapability(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("name".equals(fieldName)) { + deserializedPostgreSqlVersionCapability.name + = PostgreSqlCapabilityVersion.fromString(reader.getString()); + } else if ("supportedVersionsToUpgrade".equals(fieldName)) { + List supportedVersionsToUpgrade + = reader.readArray(reader1 -> PostgreSqlCapabilityVersion.fromString(reader1.getString())); + deserializedPostgreSqlVersionCapability.supportedVersionsToUpgrade = supportedVersionsToUpgrade; + } else { + reader.skipChildren(); + } + } + + return deserializedPostgreSqlVersionCapability; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PrincipalTypes.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PrincipalTypes.java index b7583a8b87e93..81c99088e0ce2 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PrincipalTypes.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PrincipalTypes.java @@ -8,26 +8,26 @@ import java.util.Collection; /** - * The type of the Entra ID principal. + * The type of Microsoft Entra principal mapped to a PostgreSQL role. */ public final class PrincipalTypes extends ExpandableStringEnum { /** - * Unknown or unrecognized type (internal only, not accepted in requests). + * An unknown or unrecognized type. This value is for internal use and is not accepted in requests. */ public static final PrincipalTypes UNKNOWN = fromString("Unknown"); /** - * An Entra ID user account (UPN-based principal). + * A Microsoft Entra ID user account. */ public static final PrincipalTypes USER = fromString("User"); /** - * An Entra ID security group. All members of the group inherit admin privileges. + * A Microsoft Entra ID security group. All members of the group inherit administrator privileges. */ public static final PrincipalTypes GROUP = fromString("Group"); /** - * An Entra ID application / service principal (used for automated workloads). + * A Microsoft Entra ID application or service principal used for automated workloads. */ public static final PrincipalTypes SERVICE_PRINCIPAL = fromString("ServicePrincipal"); diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PrivateEndpointConnectionResource.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PrivateEndpointConnectionResource.java index 5a66a78fa15c7..c9de32d39d1b2 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PrivateEndpointConnectionResource.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PrivateEndpointConnectionResource.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.horizondb.models; import com.azure.core.management.SystemData; +import com.azure.core.util.Context; import com.azure.resourcemanager.horizondb.fluent.models.PrivateEndpointConnectionResourceInner; /** @@ -46,10 +47,143 @@ public interface PrivateEndpointConnectionResource { */ SystemData systemData(); + /** + * Gets the name of the resource group. + * + * @return the name of the resource group. + */ + String resourceGroupName(); + /** * Gets the inner com.azure.resourcemanager.horizondb.fluent.models.PrivateEndpointConnectionResourceInner object. * * @return the inner object. */ PrivateEndpointConnectionResourceInner innerModel(); + + /** + * The entirety of the PrivateEndpointConnectionResource definition. + */ + interface Definition + extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { + } + + /** + * The PrivateEndpointConnectionResource definition stages. + */ + interface DefinitionStages { + /** + * The first stage of the PrivateEndpointConnectionResource definition. + */ + interface Blank extends WithParentResource { + } + + /** + * The stage of the PrivateEndpointConnectionResource definition allowing to specify parent resource. + */ + interface WithParentResource { + /** + * Specifies resourceGroupName, clusterName. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param clusterName The name of the HorizonDB cluster. + * @return the next definition stage. + */ + WithCreate withExistingCluster(String resourceGroupName, String clusterName); + } + + /** + * The stage of the PrivateEndpointConnectionResource definition which contains all the minimum required + * properties for the resource to be created, but also allows for any other optional properties to be specified. + */ + interface WithCreate extends DefinitionStages.WithProperties { + /** + * Executes the create request. + * + * @return the created resource. + */ + PrivateEndpointConnectionResource create(); + + /** + * Executes the create request. + * + * @param context The context to associate with this operation. + * @return the created resource. + */ + PrivateEndpointConnectionResource create(Context context); + } + + /** + * The stage of the PrivateEndpointConnectionResource definition allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: The private endpoint connection properties. + * + * @param properties The private endpoint connection properties. + * @return the next definition stage. + */ + WithCreate withProperties(PrivateEndpointConnectionProperties properties); + } + } + + /** + * Begins update for the PrivateEndpointConnectionResource resource. + * + * @return the stage of resource update. + */ + PrivateEndpointConnectionResource.Update update(); + + /** + * The template for PrivateEndpointConnectionResource update. + */ + interface Update extends UpdateStages.WithProperties { + /** + * Executes the update request. + * + * @return the updated resource. + */ + PrivateEndpointConnectionResource apply(); + + /** + * Executes the update request. + * + * @param context The context to associate with this operation. + * @return the updated resource. + */ + PrivateEndpointConnectionResource apply(Context context); + } + + /** + * The PrivateEndpointConnectionResource update stages. + */ + interface UpdateStages { + /** + * The stage of the PrivateEndpointConnectionResource update allowing to specify properties. + */ + interface WithProperties { + /** + * Specifies the properties property: The private endpoint connection properties. + * + * @param properties The private endpoint connection properties. + * @return the next definition stage. + */ + Update withProperties(PrivateEndpointConnectionProperties properties); + } + } + + /** + * Refreshes the resource to sync with Azure. + * + * @return the refreshed resource. + */ + PrivateEndpointConnectionResource refresh(); + + /** + * Refreshes the resource to sync with Azure. + * + * @param context The context to associate with this operation. + * @return the refreshed resource. + */ + PrivateEndpointConnectionResource refresh(Context context); } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbPrivateEndpointConnections.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PrivateEndpointConnections.java similarity index 76% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbPrivateEndpointConnections.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PrivateEndpointConnections.java index 27fb84c6700cc..cea890ae00d66 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbPrivateEndpointConnections.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PrivateEndpointConnections.java @@ -7,12 +7,11 @@ import com.azure.core.http.rest.PagedIterable; import com.azure.core.http.rest.Response; import com.azure.core.util.Context; -import com.azure.resourcemanager.horizondb.fluent.models.PrivateEndpointConnectionResourceInner; /** - * Resource collection API of HorizonDbPrivateEndpointConnections. + * Resource collection API of PrivateEndpointConnections. */ -public interface HorizonDbPrivateEndpointConnections { +public interface PrivateEndpointConnections { /** * Gets a private endpoint connection. * @@ -73,62 +72,81 @@ PagedIterable list(String resourceGroupName, Context context); /** - * Approves or rejects a private endpoint connection. + * Deletes a private endpoint connection. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. - * @param resource Resource create parameters. - * @param context The context to associate with this operation. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a private endpoint connection resource along with {@link Response}. */ - Response updateStatusWithResponse(String resourceGroupName, String clusterName, - String privateEndpointConnectionName, PrivateEndpointConnectionResourceInner resource, Context context); + void delete(String resourceGroupName, String clusterName, String privateEndpointConnectionName); /** - * Approves or rejects a private endpoint connection. + * Deletes a private endpoint connection. * * @param resourceGroupName The name of the resource group. The name is case insensitive. * @param clusterName The name of the HorizonDB cluster. * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure * resource. - * @param resource Resource create parameters. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + */ + void delete(String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context); + + /** + * Gets a private endpoint connection. + * + * @param id the resource ID. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a private endpoint connection resource. + * @return a private endpoint connection along with {@link Response}. */ - PrivateEndpointConnectionResource updateStatus(String resourceGroupName, String clusterName, - String privateEndpointConnectionName, PrivateEndpointConnectionResourceInner resource); + PrivateEndpointConnectionResource getById(String id); + + /** + * Gets a private endpoint connection. + * + * @param id the resource ID. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a private endpoint connection along with {@link Response}. + */ + Response getByIdWithResponse(String id, Context context); /** * Deletes a private endpoint connection. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. + * @param id the resource ID. * @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 delete(String resourceGroupName, String clusterName, String privateEndpointConnectionName); + void deleteById(String id); /** * Deletes a private endpoint connection. * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param clusterName The name of the HorizonDB cluster. - * @param privateEndpointConnectionName The name of the private endpoint connection associated with the Azure - * resource. + * @param id the resource ID. * @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 delete(String resourceGroupName, String clusterName, String privateEndpointConnectionName, Context context); + void deleteByIdWithResponse(String id, Context context); + + /** + * Begins definition for a new PrivateEndpointConnectionResource resource. + * + * @param name resource name. + * @return the first stage of the new PrivateEndpointConnectionResource definition. + */ + PrivateEndpointConnectionResource.DefinitionStages.Blank define(String name); } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbPrivateLinkResource.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PrivateLinkResource.java similarity index 79% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbPrivateLinkResource.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PrivateLinkResource.java index e9cd45811e632..50256f30e51c1 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbPrivateLinkResource.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PrivateLinkResource.java @@ -5,12 +5,12 @@ package com.azure.resourcemanager.horizondb.models; import com.azure.core.management.SystemData; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbPrivateLinkResourceInner; +import com.azure.resourcemanager.horizondb.fluent.models.PrivateLinkResourceInner; /** - * An immutable client-side representation of HorizonDbPrivateLinkResource. + * An immutable client-side representation of PrivateLinkResource. */ -public interface HorizonDbPrivateLinkResource { +public interface PrivateLinkResource { /** * Gets the id property: Fully qualified resource Id for the resource. * @@ -47,9 +47,9 @@ public interface HorizonDbPrivateLinkResource { SystemData systemData(); /** - * Gets the inner com.azure.resourcemanager.horizondb.fluent.models.HorizonDbPrivateLinkResourceInner object. + * Gets the inner com.azure.resourcemanager.horizondb.fluent.models.PrivateLinkResourceInner object. * * @return the inner object. */ - HorizonDbPrivateLinkResourceInner innerModel(); + PrivateLinkResourceInner innerModel(); } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbPrivateLinkResources.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PrivateLinkResources.java similarity index 76% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbPrivateLinkResources.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PrivateLinkResources.java index d03aafa691329..87533141df826 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbPrivateLinkResources.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/PrivateLinkResources.java @@ -9,9 +9,9 @@ import com.azure.core.util.Context; /** - * Resource collection API of HorizonDbPrivateLinkResources. + * Resource collection API of PrivateLinkResources. */ -public interface HorizonDbPrivateLinkResources { +public interface PrivateLinkResources { /** * Gets a private link resource. * @@ -24,8 +24,8 @@ public interface HorizonDbPrivateLinkResources { * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a private link resource along with {@link Response}. */ - Response getWithResponse(String resourceGroupName, String clusterName, - String groupName, Context context); + Response getWithResponse(String resourceGroupName, String clusterName, String groupName, + Context context); /** * Gets a private link resource. @@ -38,7 +38,7 @@ Response getWithResponse(String resourceGroupName, * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. * @return a private link resource. */ - HorizonDbPrivateLinkResource get(String resourceGroupName, String clusterName, String groupName); + PrivateLinkResource get(String resourceGroupName, String clusterName, String groupName); /** * Lists private link resources in a HorizonDB cluster. @@ -48,10 +48,9 @@ Response getWithResponse(String resourceGroupName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbPrivateLinkResource list operation as paginated response with - * {@link PagedIterable}. + * @return the response of a PrivateLinkResource list operation as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceGroupName, String clusterName); + PagedIterable list(String resourceGroupName, String clusterName); /** * Lists private link resources in a HorizonDB cluster. @@ -62,8 +61,7 @@ Response getWithResponse(String resourceGroupName, * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a HorizonDbPrivateLinkResource list operation as paginated response with - * {@link PagedIterable}. + * @return the response of a PrivateLinkResource list operation as paginated response with {@link PagedIterable}. */ - PagedIterable list(String resourceGroupName, String clusterName, Context context); + PagedIterable list(String resourceGroupName, String clusterName, Context context); } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ProvisionedComputeModelCapability.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ProvisionedComputeModelCapability.java new file mode 100644 index 0000000000000..66ea8e9e8c884 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ProvisionedComputeModelCapability.java @@ -0,0 +1,114 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * The capabilities of the Provisioned compute model. + */ +@Immutable +public final class ProvisionedComputeModelCapability extends ComputeModelCapability { + /* + * The compute model represented by these capabilities. + */ + private PoolComputeModelType type = PoolComputeModelType.PROVISIONED; + + /* + * The provisioned vCore count recommended for clients to select. This recommendation does not describe backend + * behavior when vCores is omitted from a request. + */ + private int recommendedVCoreCount; + + /* + * The supported provisioned compute sizes. + */ + private List supportedComputeSizes; + + /** + * Creates an instance of ProvisionedComputeModelCapability class. + */ + private ProvisionedComputeModelCapability() { + } + + /** + * Get the type property: The compute model represented by these capabilities. + * + * @return the type value. + */ + @Override + public PoolComputeModelType type() { + return this.type; + } + + /** + * Get the recommendedVCoreCount property: The provisioned vCore count recommended for clients to select. This + * recommendation does not describe backend behavior when vCores is omitted from a request. + * + * @return the recommendedVCoreCount value. + */ + public int recommendedVCoreCount() { + return this.recommendedVCoreCount; + } + + /** + * Get the supportedComputeSizes property: The supported provisioned compute sizes. + * + * @return the supportedComputeSizes value. + */ + public List supportedComputeSizes() { + return this.supportedComputeSizes; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("type", this.type == null ? null : this.type.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ProvisionedComputeModelCapability from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ProvisionedComputeModelCapability 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 ProvisionedComputeModelCapability. + */ + public static ProvisionedComputeModelCapability fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ProvisionedComputeModelCapability deserializedProvisionedComputeModelCapability + = new ProvisionedComputeModelCapability(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("recommendedVCoreCount".equals(fieldName)) { + deserializedProvisionedComputeModelCapability.recommendedVCoreCount = reader.getInt(); + } else if ("supportedComputeSizes".equals(fieldName)) { + List supportedComputeSizes + = reader.readArray(reader1 -> ComputeSizeCapability.fromJson(reader1)); + deserializedProvisionedComputeModelCapability.supportedComputeSizes = supportedComputeSizes; + } else if ("type".equals(fieldName)) { + deserializedProvisionedComputeModelCapability.type + = PoolComputeModelType.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedProvisionedComputeModelCapability; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ProvisioningState.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ProvisioningState.java index 7e66431f729eb..dde224d713854 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ProvisioningState.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ProvisioningState.java @@ -12,27 +12,27 @@ */ public final class ProvisioningState extends ExpandableStringEnum { /** - * Provisioning completed successfully. + * Resource has been created. */ public static final ProvisioningState SUCCEEDED = fromString("Succeeded"); /** - * Provisioning failed. + * Resource creation failed. */ public static final ProvisioningState FAILED = fromString("Failed"); /** - * Provisioning was canceled. + * Resource creation was canceled. */ public static final ProvisioningState CANCELED = fromString("Canceled"); /** - * Provisioning is in progress. + * The HorizonDB resource operation is actively running. */ public static final ProvisioningState IN_PROGRESS = fromString("InProgress"); /** - * Provisioning is in progress. + * The HorizonDB resource is still provisioning. */ public static final ProvisioningState PROVISIONING = fromString("Provisioning"); diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ReadWritePoolProperties.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ReadWritePoolProperties.java new file mode 100644 index 0000000000000..5d55dc21bcf6b --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ReadWritePoolProperties.java @@ -0,0 +1,83 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The pool currently designated to host a HorizonDB cluster's read-write node. When a pool is created while the cluster + * currently has no pools, the service automatically designates the new pool as the read-write pool. This behavior also + * applies after all pools that existed earlier in the cluster's lifetime have been deleted. + */ +@Immutable +public final class ReadWritePoolProperties implements JsonSerializable { + /* + * The Azure resource ID of the pool designated to host the cluster's read-write node. The pool is a child resource + * of this cluster. When a pool is created while the cluster currently has no pools, the service automatically sets + * this property to the new pool's resource ID, including when all pools that existed earlier in the cluster's + * lifetime were deleted. This property is absent when no pool is designated, such as after clearReadWritePool + * succeeds. + */ + private String designatedPoolResourceId; + + /** + * Creates an instance of ReadWritePoolProperties class. + */ + private ReadWritePoolProperties() { + } + + /** + * Get the designatedPoolResourceId property: The Azure resource ID of the pool designated to host the cluster's + * read-write node. The pool is a child resource of this cluster. When a pool is created while the cluster currently + * has no pools, the service automatically sets this property to the new pool's resource ID, including when all + * pools that existed earlier in the cluster's lifetime were deleted. This property is absent when no pool is + * designated, such as after clearReadWritePool succeeds. + * + * @return the designatedPoolResourceId value. + */ + public String designatedPoolResourceId() { + return this.designatedPoolResourceId; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ReadWritePoolProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ReadWritePoolProperties 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 ReadWritePoolProperties. + */ + public static ReadWritePoolProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ReadWritePoolProperties deserializedReadWritePoolProperties = new ReadWritePoolProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("designatedPoolResourceId".equals(fieldName)) { + deserializedReadWritePoolProperties.designatedPoolResourceId = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedReadWritePoolProperties; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ReplicaRole.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ReplicaRole.java deleted file mode 100644 index 985dbca7d75af..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ReplicaRole.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Role of the replica. - */ -public final class ReplicaRole extends ExpandableStringEnum { - /** - * Read-only replica. - */ - public static final ReplicaRole READ = fromString("Read"); - - /** - * ReadWrite replica. - */ - public static final ReplicaRole READ_WRITE = fromString("ReadWrite"); - - /** - * Creates a new instance of ReplicaRole value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ReplicaRole() { - } - - /** - * Creates or finds a ReplicaRole from its string representation. - * - * @param name a name to look for. - * @return the corresponding ReplicaRole. - */ - public static ReplicaRole fromString(String name) { - return fromString(name, ReplicaRole.class); - } - - /** - * Gets known ReplicaRole values. - * - * @return known ReplicaRole values. - */ - public static Collection values() { - return values(ReplicaRole.class); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ScheduledMaintenanceManagementType.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ScheduledMaintenanceManagementType.java new file mode 100644 index 0000000000000..a031fbb694ffc --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ScheduledMaintenanceManagementType.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.horizondb.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Specifies who manages scheduled maintenance for a HorizonDB pool. + */ +public final class ScheduledMaintenanceManagementType extends ExpandableStringEnum { + /** + * Scheduled maintenance is managed by the system. + */ + public static final ScheduledMaintenanceManagementType SYSTEM = fromString("System"); + + /** + * Creates a new instance of ScheduledMaintenanceManagementType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ScheduledMaintenanceManagementType() { + } + + /** + * Creates or finds a ScheduledMaintenanceManagementType from its string representation. + * + * @param name a name to look for. + * @return the corresponding ScheduledMaintenanceManagementType. + */ + public static ScheduledMaintenanceManagementType fromString(String name) { + return fromString(name, ScheduledMaintenanceManagementType.class); + } + + /** + * Gets known ScheduledMaintenanceManagementType values. + * + * @return known ScheduledMaintenanceManagementType values. + */ + public static Collection values() { + return values(ScheduledMaintenanceManagementType.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ScheduledMaintenanceProperties.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ScheduledMaintenanceProperties.java new file mode 100644 index 0000000000000..3c5bbdb402157 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ScheduledMaintenanceProperties.java @@ -0,0 +1,104 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The scheduled maintenance configuration for a HorizonDB pool. + */ +@Immutable +public class ScheduledMaintenanceProperties implements JsonSerializable { + /* + * Specifies whether scheduled maintenance is managed by the system or by the user. + */ + private ScheduledMaintenanceManagementType maintenanceManagementType + = ScheduledMaintenanceManagementType.fromString("ScheduledMaintenanceProperties"); + + /** + * Creates an instance of ScheduledMaintenanceProperties class. + */ + public ScheduledMaintenanceProperties() { + } + + /** + * Get the maintenanceManagementType property: Specifies whether scheduled maintenance is managed by the system or + * by the user. + * + * @return the maintenanceManagementType value. + */ + public ScheduledMaintenanceManagementType maintenanceManagementType() { + return this.maintenanceManagementType; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("maintenanceManagementType", + this.maintenanceManagementType == null ? null : this.maintenanceManagementType.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ScheduledMaintenanceProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ScheduledMaintenanceProperties 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 ScheduledMaintenanceProperties. + */ + public static ScheduledMaintenanceProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String discriminatorValue = null; + try (JsonReader readerToUse = reader.bufferObject()) { + readerToUse.nextToken(); // Prepare for reading + while (readerToUse.nextToken() != JsonToken.END_OBJECT) { + String fieldName = readerToUse.getFieldName(); + readerToUse.nextToken(); + if ("maintenanceManagementType".equals(fieldName)) { + discriminatorValue = readerToUse.getString(); + break; + } else { + readerToUse.skipChildren(); + } + } + // Use the discriminator value to determine which subtype should be deserialized. + if ("System".equals(discriminatorValue)) { + return SystemScheduledMaintenanceProperties.fromJson(readerToUse.reset()); + } else { + return fromJsonKnownDiscriminator(readerToUse.reset()); + } + } + }); + } + + static ScheduledMaintenanceProperties fromJsonKnownDiscriminator(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ScheduledMaintenanceProperties deserializedScheduledMaintenanceProperties + = new ScheduledMaintenanceProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("maintenanceManagementType".equals(fieldName)) { + deserializedScheduledMaintenanceProperties.maintenanceManagementType + = ScheduledMaintenanceManagementType.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedScheduledMaintenanceProperties; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ScheduledMaintenancePropertiesForPatchUpdate.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ScheduledMaintenancePropertiesForPatchUpdate.java new file mode 100644 index 0000000000000..f6dac7b8d2034 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ScheduledMaintenancePropertiesForPatchUpdate.java @@ -0,0 +1,93 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.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; + +/** + * The scheduled maintenance configuration for a pool update operation. + */ +@Fluent +public final class ScheduledMaintenancePropertiesForPatchUpdate + implements JsonSerializable { + /* + * Specifies whether scheduled maintenance is managed by the system or by the user. When scheduledMaintenance is + * supplied, this property is required by the service. + */ + private ScheduledMaintenanceManagementType maintenanceManagementType; + + /** + * Creates an instance of ScheduledMaintenancePropertiesForPatchUpdate class. + */ + public ScheduledMaintenancePropertiesForPatchUpdate() { + } + + /** + * Get the maintenanceManagementType property: Specifies whether scheduled maintenance is managed by the system or + * by the user. When scheduledMaintenance is supplied, this property is required by the service. + * + * @return the maintenanceManagementType value. + */ + public ScheduledMaintenanceManagementType maintenanceManagementType() { + return this.maintenanceManagementType; + } + + /** + * Set the maintenanceManagementType property: Specifies whether scheduled maintenance is managed by the system or + * by the user. When scheduledMaintenance is supplied, this property is required by the service. + * + * @param maintenanceManagementType the maintenanceManagementType value to set. + * @return the ScheduledMaintenancePropertiesForPatchUpdate object itself. + */ + public ScheduledMaintenancePropertiesForPatchUpdate + withMaintenanceManagementType(ScheduledMaintenanceManagementType maintenanceManagementType) { + this.maintenanceManagementType = maintenanceManagementType; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("maintenanceManagementType", + this.maintenanceManagementType == null ? null : this.maintenanceManagementType.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ScheduledMaintenancePropertiesForPatchUpdate from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ScheduledMaintenancePropertiesForPatchUpdate 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 ScheduledMaintenancePropertiesForPatchUpdate. + */ + public static ScheduledMaintenancePropertiesForPatchUpdate fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ScheduledMaintenancePropertiesForPatchUpdate deserializedScheduledMaintenancePropertiesForPatchUpdate + = new ScheduledMaintenancePropertiesForPatchUpdate(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("maintenanceManagementType".equals(fieldName)) { + deserializedScheduledMaintenancePropertiesForPatchUpdate.maintenanceManagementType + = ScheduledMaintenanceManagementType.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedScheduledMaintenancePropertiesForPatchUpdate; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/State.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/State.java deleted file mode 100644 index 26f9d3c7bd386..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/State.java +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Current states. - */ -public final class State extends ExpandableStringEnum { - /** - * Is ready and operational. - */ - public static final State READY = fromString("Ready"); - - /** - * Is being dropped/deleted. - */ - public static final State DROPPING = fromString("Dropping"); - - /** - * Is disabled. - */ - public static final State DISABLED = fromString("Disabled"); - - /** - * Is starting up. - */ - public static final State STARTING = fromString("Starting"); - - /** - * Is stopping. - */ - public static final State STOPPING = fromString("Stopping"); - - /** - * Is stopped. - */ - public static final State STOPPED = fromString("Stopped"); - - /** - * Is being updated. - */ - public static final State UPDATING = fromString("Updating"); - - /** - * Is healthy. - */ - public static final State HEALTHY = fromString("Healthy"); - - /** - * Is succeeded. - */ - public static final State SUCCEEDED = fromString("Succeeded"); - - /** - * Is upgrading. - */ - public static final State UPGRADING = fromString("Upgrading"); - - /** - * Creates a new instance of State value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public State() { - } - - /** - * Creates or finds a State from its string representation. - * - * @param name a name to look for. - * @return the corresponding State. - */ - public static State fromString(String name) { - return fromString(name, State.class); - } - - /** - * Gets known State values. - * - * @return known State values. - */ - public static Collection values() { - return values(State.class); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/SystemScheduledMaintenanceProperties.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/SystemScheduledMaintenanceProperties.java new file mode 100644 index 0000000000000..ad96a8a81fdd3 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/SystemScheduledMaintenanceProperties.java @@ -0,0 +1,79 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * The system-managed scheduled maintenance configuration for a HorizonDB pool. User-managed schedule properties must be + * absent. + */ +@Immutable +public final class SystemScheduledMaintenanceProperties extends ScheduledMaintenanceProperties { + /* + * Specifies whether scheduled maintenance is managed by the system or by the user. + */ + private ScheduledMaintenanceManagementType maintenanceManagementType = ScheduledMaintenanceManagementType.SYSTEM; + + /** + * Creates an instance of SystemScheduledMaintenanceProperties class. + */ + public SystemScheduledMaintenanceProperties() { + } + + /** + * Get the maintenanceManagementType property: Specifies whether scheduled maintenance is managed by the system or + * by the user. + * + * @return the maintenanceManagementType value. + */ + @Override + public ScheduledMaintenanceManagementType maintenanceManagementType() { + return this.maintenanceManagementType; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("maintenanceManagementType", + this.maintenanceManagementType == null ? null : this.maintenanceManagementType.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SystemScheduledMaintenanceProperties from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SystemScheduledMaintenanceProperties 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 SystemScheduledMaintenanceProperties. + */ + public static SystemScheduledMaintenanceProperties fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SystemScheduledMaintenanceProperties deserializedSystemScheduledMaintenanceProperties + = new SystemScheduledMaintenanceProperties(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("maintenanceManagementType".equals(fieldName)) { + deserializedSystemScheduledMaintenanceProperties.maintenanceManagementType + = ScheduledMaintenanceManagementType.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedSystemScheduledMaintenanceProperties; + }); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ZonePlacementPolicy.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ZonePlacementPolicy.java deleted file mode 100644 index 0077b318d46e6..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/ZonePlacementPolicy.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * The zone redundancy option for the cluster. - */ -public final class ZonePlacementPolicy extends ExpandableStringEnum { - /** - * Enforce zonal redundancy. - */ - public static final ZonePlacementPolicy STRICT = fromString("Strict"); - - /** - * Best-effort placement (default). - */ - public static final ZonePlacementPolicy BEST_EFFORT = fromString("BestEffort"); - - /** - * Creates a new instance of ZonePlacementPolicy value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ZonePlacementPolicy() { - } - - /** - * Creates or finds a ZonePlacementPolicy from its string representation. - * - * @param name a name to look for. - * @return the corresponding ZonePlacementPolicy. - */ - public static ZonePlacementPolicy fromString(String name) { - return fromString(name, ZonePlacementPolicy.class); - } - - /** - * Gets known ZonePlacementPolicy values. - * - * @return known ZonePlacementPolicy values. - */ - public static Collection values() { - return values(ZonePlacementPolicy.class); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/package-info.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/package-info.java index 10439790181e4..573d5d382cbd0 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/package-info.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/models/package-info.java @@ -4,6 +4,6 @@ /** * Package containing the data models for HorizonDb. - * Azure Resource Provider API for managing HorizonDB clusters, pools, replicas, and firewall rules. + * Azure Resource Provider API for managing HorizonDB clusters, pools, endpoints, nodes, and firewall rules. */ package com.azure.resourcemanager.horizondb.models; diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/package-info.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/package-info.java index 4b894df01aafe..2e9cf574a74b0 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/package-info.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/java/com/azure/resourcemanager/horizondb/package-info.java @@ -4,6 +4,6 @@ /** * Package containing the classes for HorizonDb. - * Azure Resource Provider API for managing HorizonDB clusters, pools, replicas, and firewall rules. + * Azure Resource Provider API for managing HorizonDB clusters, pools, endpoints, nodes, and firewall rules. */ package com.azure.resourcemanager.horizondb; diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/resources/META-INF/azure-resourcemanager-horizondb_metadata.json b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/resources/META-INF/azure-resourcemanager-horizondb_metadata.json index a08bba0c1800a..4a98419571dee 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/resources/META-INF/azure-resourcemanager-horizondb_metadata.json +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/resources/META-INF/azure-resourcemanager-horizondb_metadata.json @@ -1 +1 @@ -{"flavor":"azure","apiVersions":{"Microsoft.HorizonDb":"2026-05-01-preview"},"crossLanguagePackageId":"Microsoft.HorizonDb","crossLanguageVersion":"e073010193f3","crossLanguageDefinitions":{"com.azure.resourcemanager.horizondb.fluent.HorizonDbAdministratorsClient":"Microsoft.HorizonDb.HorizonDbAdministrators","com.azure.resourcemanager.horizondb.fluent.HorizonDbAdministratorsClient.beginCreateOrUpdate":"Microsoft.HorizonDb.HorizonDbAdministrators.createOrUpdate","com.azure.resourcemanager.horizondb.fluent.HorizonDbAdministratorsClient.beginCreateOrUpdateAsync":"Microsoft.HorizonDb.HorizonDbAdministrators.createOrUpdate","com.azure.resourcemanager.horizondb.fluent.HorizonDbAdministratorsClient.beginDelete":"Microsoft.HorizonDb.HorizonDbAdministrators.delete","com.azure.resourcemanager.horizondb.fluent.HorizonDbAdministratorsClient.beginDeleteAsync":"Microsoft.HorizonDb.HorizonDbAdministrators.delete","com.azure.resourcemanager.horizondb.fluent.HorizonDbAdministratorsClient.createOrUpdate":"Microsoft.HorizonDb.HorizonDbAdministrators.createOrUpdate","com.azure.resourcemanager.horizondb.fluent.HorizonDbAdministratorsClient.createOrUpdateAsync":"Microsoft.HorizonDb.HorizonDbAdministrators.createOrUpdate","com.azure.resourcemanager.horizondb.fluent.HorizonDbAdministratorsClient.createOrUpdateWithResponseAsync":"Microsoft.HorizonDb.HorizonDbAdministrators.createOrUpdate","com.azure.resourcemanager.horizondb.fluent.HorizonDbAdministratorsClient.delete":"Microsoft.HorizonDb.HorizonDbAdministrators.delete","com.azure.resourcemanager.horizondb.fluent.HorizonDbAdministratorsClient.deleteAsync":"Microsoft.HorizonDb.HorizonDbAdministrators.delete","com.azure.resourcemanager.horizondb.fluent.HorizonDbAdministratorsClient.deleteWithResponseAsync":"Microsoft.HorizonDb.HorizonDbAdministrators.delete","com.azure.resourcemanager.horizondb.fluent.HorizonDbAdministratorsClient.get":"Microsoft.HorizonDb.HorizonDbAdministrators.get","com.azure.resourcemanager.horizondb.fluent.HorizonDbAdministratorsClient.getAsync":"Microsoft.HorizonDb.HorizonDbAdministrators.get","com.azure.resourcemanager.horizondb.fluent.HorizonDbAdministratorsClient.getWithResponse":"Microsoft.HorizonDb.HorizonDbAdministrators.get","com.azure.resourcemanager.horizondb.fluent.HorizonDbAdministratorsClient.getWithResponseAsync":"Microsoft.HorizonDb.HorizonDbAdministrators.get","com.azure.resourcemanager.horizondb.fluent.HorizonDbAdministratorsClient.list":"Microsoft.HorizonDb.HorizonDbAdministrators.list","com.azure.resourcemanager.horizondb.fluent.HorizonDbAdministratorsClient.listAsync":"Microsoft.HorizonDb.HorizonDbAdministrators.list","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient":"Microsoft.HorizonDb.HorizonDbClusters","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient.beginCreateOrUpdate":"Microsoft.HorizonDb.HorizonDbClusters.createOrUpdate","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient.beginCreateOrUpdateAsync":"Microsoft.HorizonDb.HorizonDbClusters.createOrUpdate","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient.beginDelete":"Microsoft.HorizonDb.HorizonDbClusters.delete","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient.beginDeleteAsync":"Microsoft.HorizonDb.HorizonDbClusters.delete","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient.beginRestart":"Microsoft.HorizonDb.HorizonDbClusters.restart","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient.beginRestartAsync":"Microsoft.HorizonDb.HorizonDbClusters.restart","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient.beginStart":"Microsoft.HorizonDb.HorizonDbClusters.start","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient.beginStartAsync":"Microsoft.HorizonDb.HorizonDbClusters.start","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient.beginStop":"Microsoft.HorizonDb.HorizonDbClusters.stop","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient.beginStopAsync":"Microsoft.HorizonDb.HorizonDbClusters.stop","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient.beginUpdate":"Microsoft.HorizonDb.HorizonDbClusters.update","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient.beginUpdateAsync":"Microsoft.HorizonDb.HorizonDbClusters.update","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient.createOrUpdate":"Microsoft.HorizonDb.HorizonDbClusters.createOrUpdate","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient.createOrUpdateAsync":"Microsoft.HorizonDb.HorizonDbClusters.createOrUpdate","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient.createOrUpdateWithResponseAsync":"Microsoft.HorizonDb.HorizonDbClusters.createOrUpdate","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient.delete":"Microsoft.HorizonDb.HorizonDbClusters.delete","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient.deleteAsync":"Microsoft.HorizonDb.HorizonDbClusters.delete","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient.deleteWithResponseAsync":"Microsoft.HorizonDb.HorizonDbClusters.delete","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient.getByResourceGroup":"Microsoft.HorizonDb.HorizonDbClusters.get","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient.getByResourceGroupAsync":"Microsoft.HorizonDb.HorizonDbClusters.get","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient.getByResourceGroupWithResponse":"Microsoft.HorizonDb.HorizonDbClusters.get","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient.getByResourceGroupWithResponseAsync":"Microsoft.HorizonDb.HorizonDbClusters.get","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient.list":"Microsoft.HorizonDb.HorizonDbClusters.listBySubscription","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient.listAsync":"Microsoft.HorizonDb.HorizonDbClusters.listBySubscription","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient.listByResourceGroup":"Microsoft.HorizonDb.HorizonDbClusters.listByResourceGroup","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient.listByResourceGroupAsync":"Microsoft.HorizonDb.HorizonDbClusters.listByResourceGroup","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient.restart":"Microsoft.HorizonDb.HorizonDbClusters.restart","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient.restartAsync":"Microsoft.HorizonDb.HorizonDbClusters.restart","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient.restartWithResponseAsync":"Microsoft.HorizonDb.HorizonDbClusters.restart","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient.start":"Microsoft.HorizonDb.HorizonDbClusters.start","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient.startAsync":"Microsoft.HorizonDb.HorizonDbClusters.start","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient.startWithResponseAsync":"Microsoft.HorizonDb.HorizonDbClusters.start","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient.stop":"Microsoft.HorizonDb.HorizonDbClusters.stop","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient.stopAsync":"Microsoft.HorizonDb.HorizonDbClusters.stop","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient.stopWithResponseAsync":"Microsoft.HorizonDb.HorizonDbClusters.stop","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient.update":"Microsoft.HorizonDb.HorizonDbClusters.update","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient.updateAsync":"Microsoft.HorizonDb.HorizonDbClusters.update","com.azure.resourcemanager.horizondb.fluent.HorizonDbClustersClient.updateWithResponseAsync":"Microsoft.HorizonDb.HorizonDbClusters.update","com.azure.resourcemanager.horizondb.fluent.HorizonDbFirewallRulesClient":"Microsoft.HorizonDb.HorizonDbFirewallRules","com.azure.resourcemanager.horizondb.fluent.HorizonDbFirewallRulesClient.beginCreateOrUpdate":"Microsoft.HorizonDb.HorizonDbFirewallRules.createOrUpdate","com.azure.resourcemanager.horizondb.fluent.HorizonDbFirewallRulesClient.beginCreateOrUpdateAsync":"Microsoft.HorizonDb.HorizonDbFirewallRules.createOrUpdate","com.azure.resourcemanager.horizondb.fluent.HorizonDbFirewallRulesClient.beginDelete":"Microsoft.HorizonDb.HorizonDbFirewallRules.delete","com.azure.resourcemanager.horizondb.fluent.HorizonDbFirewallRulesClient.beginDeleteAsync":"Microsoft.HorizonDb.HorizonDbFirewallRules.delete","com.azure.resourcemanager.horizondb.fluent.HorizonDbFirewallRulesClient.createOrUpdate":"Microsoft.HorizonDb.HorizonDbFirewallRules.createOrUpdate","com.azure.resourcemanager.horizondb.fluent.HorizonDbFirewallRulesClient.createOrUpdateAsync":"Microsoft.HorizonDb.HorizonDbFirewallRules.createOrUpdate","com.azure.resourcemanager.horizondb.fluent.HorizonDbFirewallRulesClient.createOrUpdateWithResponseAsync":"Microsoft.HorizonDb.HorizonDbFirewallRules.createOrUpdate","com.azure.resourcemanager.horizondb.fluent.HorizonDbFirewallRulesClient.delete":"Microsoft.HorizonDb.HorizonDbFirewallRules.delete","com.azure.resourcemanager.horizondb.fluent.HorizonDbFirewallRulesClient.deleteAsync":"Microsoft.HorizonDb.HorizonDbFirewallRules.delete","com.azure.resourcemanager.horizondb.fluent.HorizonDbFirewallRulesClient.deleteWithResponseAsync":"Microsoft.HorizonDb.HorizonDbFirewallRules.delete","com.azure.resourcemanager.horizondb.fluent.HorizonDbFirewallRulesClient.get":"Microsoft.HorizonDb.HorizonDbFirewallRules.get","com.azure.resourcemanager.horizondb.fluent.HorizonDbFirewallRulesClient.getAsync":"Microsoft.HorizonDb.HorizonDbFirewallRules.get","com.azure.resourcemanager.horizondb.fluent.HorizonDbFirewallRulesClient.getWithResponse":"Microsoft.HorizonDb.HorizonDbFirewallRules.get","com.azure.resourcemanager.horizondb.fluent.HorizonDbFirewallRulesClient.getWithResponseAsync":"Microsoft.HorizonDb.HorizonDbFirewallRules.get","com.azure.resourcemanager.horizondb.fluent.HorizonDbFirewallRulesClient.list":"Microsoft.HorizonDb.HorizonDbFirewallRules.list","com.azure.resourcemanager.horizondb.fluent.HorizonDbFirewallRulesClient.listAsync":"Microsoft.HorizonDb.HorizonDbFirewallRules.list","com.azure.resourcemanager.horizondb.fluent.HorizonDbManagementClient":"Microsoft.HorizonDb","com.azure.resourcemanager.horizondb.fluent.HorizonDbParameterGroupsClient":"Microsoft.HorizonDb.HorizonDbParameterGroups","com.azure.resourcemanager.horizondb.fluent.HorizonDbParameterGroupsClient.beginCreateOrUpdate":"Microsoft.HorizonDb.HorizonDbParameterGroups.createOrUpdate","com.azure.resourcemanager.horizondb.fluent.HorizonDbParameterGroupsClient.beginCreateOrUpdateAsync":"Microsoft.HorizonDb.HorizonDbParameterGroups.createOrUpdate","com.azure.resourcemanager.horizondb.fluent.HorizonDbParameterGroupsClient.beginDelete":"Microsoft.HorizonDb.HorizonDbParameterGroups.delete","com.azure.resourcemanager.horizondb.fluent.HorizonDbParameterGroupsClient.beginDeleteAsync":"Microsoft.HorizonDb.HorizonDbParameterGroups.delete","com.azure.resourcemanager.horizondb.fluent.HorizonDbParameterGroupsClient.beginUpdate":"Microsoft.HorizonDb.HorizonDbParameterGroups.update","com.azure.resourcemanager.horizondb.fluent.HorizonDbParameterGroupsClient.beginUpdateAsync":"Microsoft.HorizonDb.HorizonDbParameterGroups.update","com.azure.resourcemanager.horizondb.fluent.HorizonDbParameterGroupsClient.createOrUpdate":"Microsoft.HorizonDb.HorizonDbParameterGroups.createOrUpdate","com.azure.resourcemanager.horizondb.fluent.HorizonDbParameterGroupsClient.createOrUpdateAsync":"Microsoft.HorizonDb.HorizonDbParameterGroups.createOrUpdate","com.azure.resourcemanager.horizondb.fluent.HorizonDbParameterGroupsClient.createOrUpdateWithResponseAsync":"Microsoft.HorizonDb.HorizonDbParameterGroups.createOrUpdate","com.azure.resourcemanager.horizondb.fluent.HorizonDbParameterGroupsClient.delete":"Microsoft.HorizonDb.HorizonDbParameterGroups.delete","com.azure.resourcemanager.horizondb.fluent.HorizonDbParameterGroupsClient.deleteAsync":"Microsoft.HorizonDb.HorizonDbParameterGroups.delete","com.azure.resourcemanager.horizondb.fluent.HorizonDbParameterGroupsClient.deleteWithResponseAsync":"Microsoft.HorizonDb.HorizonDbParameterGroups.delete","com.azure.resourcemanager.horizondb.fluent.HorizonDbParameterGroupsClient.getByResourceGroup":"Microsoft.HorizonDb.HorizonDbParameterGroups.get","com.azure.resourcemanager.horizondb.fluent.HorizonDbParameterGroupsClient.getByResourceGroupAsync":"Microsoft.HorizonDb.HorizonDbParameterGroups.get","com.azure.resourcemanager.horizondb.fluent.HorizonDbParameterGroupsClient.getByResourceGroupWithResponse":"Microsoft.HorizonDb.HorizonDbParameterGroups.get","com.azure.resourcemanager.horizondb.fluent.HorizonDbParameterGroupsClient.getByResourceGroupWithResponseAsync":"Microsoft.HorizonDb.HorizonDbParameterGroups.get","com.azure.resourcemanager.horizondb.fluent.HorizonDbParameterGroupsClient.list":"Microsoft.HorizonDb.HorizonDbParameterGroups.listBySubscription","com.azure.resourcemanager.horizondb.fluent.HorizonDbParameterGroupsClient.listAsync":"Microsoft.HorizonDb.HorizonDbParameterGroups.listBySubscription","com.azure.resourcemanager.horizondb.fluent.HorizonDbParameterGroupsClient.listByResourceGroup":"Microsoft.HorizonDb.HorizonDbParameterGroups.listByResourceGroup","com.azure.resourcemanager.horizondb.fluent.HorizonDbParameterGroupsClient.listByResourceGroupAsync":"Microsoft.HorizonDb.HorizonDbParameterGroups.listByResourceGroup","com.azure.resourcemanager.horizondb.fluent.HorizonDbParameterGroupsClient.listConnections":"Microsoft.HorizonDb.HorizonDbParameterGroups.listConnections","com.azure.resourcemanager.horizondb.fluent.HorizonDbParameterGroupsClient.listConnectionsAsync":"Microsoft.HorizonDb.HorizonDbParameterGroups.listConnections","com.azure.resourcemanager.horizondb.fluent.HorizonDbParameterGroupsClient.listVersions":"Microsoft.HorizonDb.HorizonDbParameterGroups.listVersions","com.azure.resourcemanager.horizondb.fluent.HorizonDbParameterGroupsClient.listVersionsAsync":"Microsoft.HorizonDb.HorizonDbParameterGroups.listVersions","com.azure.resourcemanager.horizondb.fluent.HorizonDbParameterGroupsClient.update":"Microsoft.HorizonDb.HorizonDbParameterGroups.update","com.azure.resourcemanager.horizondb.fluent.HorizonDbParameterGroupsClient.updateAsync":"Microsoft.HorizonDb.HorizonDbParameterGroups.update","com.azure.resourcemanager.horizondb.fluent.HorizonDbParameterGroupsClient.updateWithResponseAsync":"Microsoft.HorizonDb.HorizonDbParameterGroups.update","com.azure.resourcemanager.horizondb.fluent.HorizonDbPoolsClient":"Microsoft.HorizonDb.HorizonDbPools","com.azure.resourcemanager.horizondb.fluent.HorizonDbPoolsClient.get":"Microsoft.HorizonDb.HorizonDbPools.get","com.azure.resourcemanager.horizondb.fluent.HorizonDbPoolsClient.getAsync":"Microsoft.HorizonDb.HorizonDbPools.get","com.azure.resourcemanager.horizondb.fluent.HorizonDbPoolsClient.getWithResponse":"Microsoft.HorizonDb.HorizonDbPools.get","com.azure.resourcemanager.horizondb.fluent.HorizonDbPoolsClient.getWithResponseAsync":"Microsoft.HorizonDb.HorizonDbPools.get","com.azure.resourcemanager.horizondb.fluent.HorizonDbPoolsClient.list":"Microsoft.HorizonDb.HorizonDbPools.list","com.azure.resourcemanager.horizondb.fluent.HorizonDbPoolsClient.listAsync":"Microsoft.HorizonDb.HorizonDbPools.list","com.azure.resourcemanager.horizondb.fluent.HorizonDbPrivateEndpointConnectionsClient":"Microsoft.HorizonDb.HorizonDbPrivateEndpointConnections","com.azure.resourcemanager.horizondb.fluent.HorizonDbPrivateEndpointConnectionsClient.beginDelete":"Microsoft.HorizonDb.HorizonDbPrivateEndpointConnections.delete","com.azure.resourcemanager.horizondb.fluent.HorizonDbPrivateEndpointConnectionsClient.beginDeleteAsync":"Microsoft.HorizonDb.HorizonDbPrivateEndpointConnections.delete","com.azure.resourcemanager.horizondb.fluent.HorizonDbPrivateEndpointConnectionsClient.delete":"Microsoft.HorizonDb.HorizonDbPrivateEndpointConnections.delete","com.azure.resourcemanager.horizondb.fluent.HorizonDbPrivateEndpointConnectionsClient.deleteAsync":"Microsoft.HorizonDb.HorizonDbPrivateEndpointConnections.delete","com.azure.resourcemanager.horizondb.fluent.HorizonDbPrivateEndpointConnectionsClient.deleteWithResponseAsync":"Microsoft.HorizonDb.HorizonDbPrivateEndpointConnections.delete","com.azure.resourcemanager.horizondb.fluent.HorizonDbPrivateEndpointConnectionsClient.get":"Microsoft.HorizonDb.HorizonDbPrivateEndpointConnections.get","com.azure.resourcemanager.horizondb.fluent.HorizonDbPrivateEndpointConnectionsClient.getAsync":"Microsoft.HorizonDb.HorizonDbPrivateEndpointConnections.get","com.azure.resourcemanager.horizondb.fluent.HorizonDbPrivateEndpointConnectionsClient.getWithResponse":"Microsoft.HorizonDb.HorizonDbPrivateEndpointConnections.get","com.azure.resourcemanager.horizondb.fluent.HorizonDbPrivateEndpointConnectionsClient.getWithResponseAsync":"Microsoft.HorizonDb.HorizonDbPrivateEndpointConnections.get","com.azure.resourcemanager.horizondb.fluent.HorizonDbPrivateEndpointConnectionsClient.list":"Microsoft.HorizonDb.HorizonDbPrivateEndpointConnections.list","com.azure.resourcemanager.horizondb.fluent.HorizonDbPrivateEndpointConnectionsClient.listAsync":"Microsoft.HorizonDb.HorizonDbPrivateEndpointConnections.list","com.azure.resourcemanager.horizondb.fluent.HorizonDbPrivateEndpointConnectionsClient.updateStatus":"Microsoft.HorizonDb.HorizonDbPrivateEndpointConnections.updateStatus","com.azure.resourcemanager.horizondb.fluent.HorizonDbPrivateEndpointConnectionsClient.updateStatusAsync":"Microsoft.HorizonDb.HorizonDbPrivateEndpointConnections.updateStatus","com.azure.resourcemanager.horizondb.fluent.HorizonDbPrivateEndpointConnectionsClient.updateStatusWithResponse":"Microsoft.HorizonDb.HorizonDbPrivateEndpointConnections.updateStatus","com.azure.resourcemanager.horizondb.fluent.HorizonDbPrivateEndpointConnectionsClient.updateStatusWithResponseAsync":"Microsoft.HorizonDb.HorizonDbPrivateEndpointConnections.updateStatus","com.azure.resourcemanager.horizondb.fluent.HorizonDbPrivateLinkResourcesClient":"Microsoft.HorizonDb.HorizonDbPrivateLinkResources","com.azure.resourcemanager.horizondb.fluent.HorizonDbPrivateLinkResourcesClient.get":"Microsoft.HorizonDb.HorizonDbPrivateLinkResources.get","com.azure.resourcemanager.horizondb.fluent.HorizonDbPrivateLinkResourcesClient.getAsync":"Microsoft.HorizonDb.HorizonDbPrivateLinkResources.get","com.azure.resourcemanager.horizondb.fluent.HorizonDbPrivateLinkResourcesClient.getWithResponse":"Microsoft.HorizonDb.HorizonDbPrivateLinkResources.get","com.azure.resourcemanager.horizondb.fluent.HorizonDbPrivateLinkResourcesClient.getWithResponseAsync":"Microsoft.HorizonDb.HorizonDbPrivateLinkResources.get","com.azure.resourcemanager.horizondb.fluent.HorizonDbPrivateLinkResourcesClient.list":"Microsoft.HorizonDb.HorizonDbPrivateLinkResources.list","com.azure.resourcemanager.horizondb.fluent.HorizonDbPrivateLinkResourcesClient.listAsync":"Microsoft.HorizonDb.HorizonDbPrivateLinkResources.list","com.azure.resourcemanager.horizondb.fluent.HorizonDbReplicasClient":"Microsoft.HorizonDb.HorizonDbReplicas","com.azure.resourcemanager.horizondb.fluent.HorizonDbReplicasClient.beginCreateOrUpdate":"Microsoft.HorizonDb.HorizonDbReplicas.createOrUpdate","com.azure.resourcemanager.horizondb.fluent.HorizonDbReplicasClient.beginCreateOrUpdateAsync":"Microsoft.HorizonDb.HorizonDbReplicas.createOrUpdate","com.azure.resourcemanager.horizondb.fluent.HorizonDbReplicasClient.beginDelete":"Microsoft.HorizonDb.HorizonDbReplicas.delete","com.azure.resourcemanager.horizondb.fluent.HorizonDbReplicasClient.beginDeleteAsync":"Microsoft.HorizonDb.HorizonDbReplicas.delete","com.azure.resourcemanager.horizondb.fluent.HorizonDbReplicasClient.beginUpdate":"Microsoft.HorizonDb.HorizonDbReplicas.update","com.azure.resourcemanager.horizondb.fluent.HorizonDbReplicasClient.beginUpdateAsync":"Microsoft.HorizonDb.HorizonDbReplicas.update","com.azure.resourcemanager.horizondb.fluent.HorizonDbReplicasClient.createOrUpdate":"Microsoft.HorizonDb.HorizonDbReplicas.createOrUpdate","com.azure.resourcemanager.horizondb.fluent.HorizonDbReplicasClient.createOrUpdateAsync":"Microsoft.HorizonDb.HorizonDbReplicas.createOrUpdate","com.azure.resourcemanager.horizondb.fluent.HorizonDbReplicasClient.createOrUpdateWithResponseAsync":"Microsoft.HorizonDb.HorizonDbReplicas.createOrUpdate","com.azure.resourcemanager.horizondb.fluent.HorizonDbReplicasClient.delete":"Microsoft.HorizonDb.HorizonDbReplicas.delete","com.azure.resourcemanager.horizondb.fluent.HorizonDbReplicasClient.deleteAsync":"Microsoft.HorizonDb.HorizonDbReplicas.delete","com.azure.resourcemanager.horizondb.fluent.HorizonDbReplicasClient.deleteWithResponseAsync":"Microsoft.HorizonDb.HorizonDbReplicas.delete","com.azure.resourcemanager.horizondb.fluent.HorizonDbReplicasClient.get":"Microsoft.HorizonDb.HorizonDbReplicas.get","com.azure.resourcemanager.horizondb.fluent.HorizonDbReplicasClient.getAsync":"Microsoft.HorizonDb.HorizonDbReplicas.get","com.azure.resourcemanager.horizondb.fluent.HorizonDbReplicasClient.getWithResponse":"Microsoft.HorizonDb.HorizonDbReplicas.get","com.azure.resourcemanager.horizondb.fluent.HorizonDbReplicasClient.getWithResponseAsync":"Microsoft.HorizonDb.HorizonDbReplicas.get","com.azure.resourcemanager.horizondb.fluent.HorizonDbReplicasClient.list":"Microsoft.HorizonDb.HorizonDbReplicas.list","com.azure.resourcemanager.horizondb.fluent.HorizonDbReplicasClient.listAsync":"Microsoft.HorizonDb.HorizonDbReplicas.list","com.azure.resourcemanager.horizondb.fluent.HorizonDbReplicasClient.update":"Microsoft.HorizonDb.HorizonDbReplicas.update","com.azure.resourcemanager.horizondb.fluent.HorizonDbReplicasClient.updateAsync":"Microsoft.HorizonDb.HorizonDbReplicas.update","com.azure.resourcemanager.horizondb.fluent.HorizonDbReplicasClient.updateWithResponseAsync":"Microsoft.HorizonDb.HorizonDbReplicas.update","com.azure.resourcemanager.horizondb.fluent.OperationsClient":"Microsoft.HorizonDb.Operations","com.azure.resourcemanager.horizondb.fluent.OperationsClient.list":"Azure.ResourceManager.Operations.list","com.azure.resourcemanager.horizondb.fluent.OperationsClient.listAsync":"Azure.ResourceManager.Operations.list","com.azure.resourcemanager.horizondb.fluent.models.HorizonDbAdministratorInner":"Microsoft.HorizonDb.HorizonDbAdministrator","com.azure.resourcemanager.horizondb.fluent.models.HorizonDbClusterInner":"Microsoft.HorizonDb.HorizonDbCluster","com.azure.resourcemanager.horizondb.fluent.models.HorizonDbFirewallRuleInner":"Microsoft.HorizonDb.HorizonDbFirewallRule","com.azure.resourcemanager.horizondb.fluent.models.HorizonDbParameterGroupConnectionPropertiesInner":"Microsoft.HorizonDb.HorizonDbParameterGroupConnectionProperties","com.azure.resourcemanager.horizondb.fluent.models.HorizonDbParameterGroupInner":"Microsoft.HorizonDb.HorizonDbParameterGroup","com.azure.resourcemanager.horizondb.fluent.models.HorizonDbPoolInner":"Microsoft.HorizonDb.HorizonDbPool","com.azure.resourcemanager.horizondb.fluent.models.HorizonDbPrivateLinkResourceInner":"Microsoft.HorizonDb.HorizonDbPrivateLinkResource","com.azure.resourcemanager.horizondb.fluent.models.HorizonDbReplicaInner":"Microsoft.HorizonDb.HorizonDbReplica","com.azure.resourcemanager.horizondb.fluent.models.OperationInner":"Azure.ResourceManager.CommonTypes.Operation","com.azure.resourcemanager.horizondb.fluent.models.PrivateEndpointConnectionResourceInner":"Azure.ResourceManager.PrivateEndpointConnectionResource","com.azure.resourcemanager.horizondb.implementation.HorizonDbManagementClientBuilder":"Microsoft.HorizonDb","com.azure.resourcemanager.horizondb.implementation.models.HorizonDbAdministratorListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.horizondb.implementation.models.HorizonDbClusterListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.horizondb.implementation.models.HorizonDbFirewallRuleListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.horizondb.implementation.models.HorizonDbParameterGroupConnectionPropertiesListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.horizondb.implementation.models.HorizonDbParameterGroupListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.horizondb.implementation.models.HorizonDbPoolListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.horizondb.implementation.models.HorizonDbPrivateLinkResourceListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.horizondb.implementation.models.HorizonDbReplicaListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.horizondb.implementation.models.OperationListResult":"Azure.ResourceManager.CommonTypes.OperationListResult","com.azure.resourcemanager.horizondb.implementation.models.PrivateEndpointConnectionResourceListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.horizondb.models.ActionType":"Azure.ResourceManager.CommonTypes.ActionType","com.azure.resourcemanager.horizondb.models.AuthenticationState":"Microsoft.HorizonDb.AuthenticationState","com.azure.resourcemanager.horizondb.models.CreateModeCluster":"Microsoft.HorizonDb.CreateModeCluster","com.azure.resourcemanager.horizondb.models.CreateModePool":"Microsoft.HorizonDb.CreateModePool","com.azure.resourcemanager.horizondb.models.HorizonDbAdministratorAdd":"Microsoft.HorizonDb.HorizonDbAdministratorAdd","com.azure.resourcemanager.horizondb.models.HorizonDbAdministratorProperties":"Microsoft.HorizonDb.HorizonDbAdministratorProperties","com.azure.resourcemanager.horizondb.models.HorizonDbAdministratorPropertiesForAdd":"Microsoft.HorizonDb.HorizonDbAdministratorPropertiesForAdd","com.azure.resourcemanager.horizondb.models.HorizonDbClusterAuthConfig":"Microsoft.HorizonDb.HorizonDbClusterAuthConfig","com.azure.resourcemanager.horizondb.models.HorizonDbClusterForPatchUpdate":"Microsoft.HorizonDb.HorizonDbClusterForPatchUpdate","com.azure.resourcemanager.horizondb.models.HorizonDbClusterMirroring":"Microsoft.HorizonDb.HorizonDbClusterMirroring","com.azure.resourcemanager.horizondb.models.HorizonDbClusterParameterGroupConnectionProperties":"Microsoft.HorizonDb.HorizonDbClusterParameterGroupConnectionProperties","com.azure.resourcemanager.horizondb.models.HorizonDbClusterProperties":"Microsoft.HorizonDb.HorizonDbClusterProperties","com.azure.resourcemanager.horizondb.models.HorizonDbClusterPropertiesForPatchUpdate":"Microsoft.HorizonDb.HorizonDbClusterPropertiesForPatchUpdate","com.azure.resourcemanager.horizondb.models.HorizonDbComputeModel":"Microsoft.HorizonDb.HorizonDbComputeModel","com.azure.resourcemanager.horizondb.models.HorizonDbComputeModelType":"Microsoft.HorizonDb.HorizonDbComputeModelType","com.azure.resourcemanager.horizondb.models.HorizonDbFirewallRuleProperties":"Microsoft.HorizonDb.HorizonDbFirewallRuleProperties","com.azure.resourcemanager.horizondb.models.HorizonDbParameterGroupForPatchUpdate":"Microsoft.HorizonDb.HorizonDbParameterGroupForPatchUpdate","com.azure.resourcemanager.horizondb.models.HorizonDbParameterGroupProperties":"Microsoft.HorizonDb.HorizonDbParameterGroupProperties","com.azure.resourcemanager.horizondb.models.HorizonDbParameterGroupPropertiesForPatchUpdate":"Microsoft.HorizonDb.HorizonDbParameterGroupPropertiesForPatchUpdate","com.azure.resourcemanager.horizondb.models.HorizonDbPoolProperties":"Microsoft.HorizonDb.HorizonDbPoolProperties","com.azure.resourcemanager.horizondb.models.HorizonDbReplicaForPatchUpdate":"Microsoft.HorizonDb.HorizonDbReplicaForPatchUpdate","com.azure.resourcemanager.horizondb.models.HorizonDbReplicaProperties":"Microsoft.HorizonDb.HorizonDbReplicaProperties","com.azure.resourcemanager.horizondb.models.HorizonDbReplicaPropertiesForPatchUpdate":"Microsoft.HorizonDb.HorizonDbReplicaPropertiesForPatchUpdate","com.azure.resourcemanager.horizondb.models.ManagedServiceIdentity":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentity","com.azure.resourcemanager.horizondb.models.ManagedServiceIdentityType":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType","com.azure.resourcemanager.horizondb.models.Network":"Microsoft.HorizonDb.Network","com.azure.resourcemanager.horizondb.models.OperationDisplay":"Azure.ResourceManager.CommonTypes.OperationDisplay","com.azure.resourcemanager.horizondb.models.Origin":"Azure.ResourceManager.CommonTypes.Origin","com.azure.resourcemanager.horizondb.models.ParameterProperties":"Microsoft.HorizonDb.ParameterProperties","com.azure.resourcemanager.horizondb.models.PrincipalTypes":"Microsoft.HorizonDb.PrincipalTypes","com.azure.resourcemanager.horizondb.models.PrivateEndpoint":"Azure.ResourceManager.CommonTypes.PrivateEndpoint","com.azure.resourcemanager.horizondb.models.PrivateEndpointConnectionProperties":"Azure.ResourceManager.CommonTypes.PrivateEndpointConnectionProperties","com.azure.resourcemanager.horizondb.models.PrivateEndpointConnectionProvisioningState":"Azure.ResourceManager.CommonTypes.PrivateEndpointConnectionProvisioningState","com.azure.resourcemanager.horizondb.models.PrivateEndpointServiceConnectionStatus":"Azure.ResourceManager.CommonTypes.PrivateEndpointServiceConnectionStatus","com.azure.resourcemanager.horizondb.models.PrivateLinkResourceProperties":"Azure.ResourceManager.CommonTypes.PrivateLinkResourceProperties","com.azure.resourcemanager.horizondb.models.PrivateLinkServiceConnectionState":"Azure.ResourceManager.CommonTypes.PrivateLinkServiceConnectionState","com.azure.resourcemanager.horizondb.models.ProvisioningState":"Microsoft.HorizonDb.ProvisioningState","com.azure.resourcemanager.horizondb.models.PublicNetworkAccessState":"Microsoft.HorizonDb.PublicNetworkAccessState","com.azure.resourcemanager.horizondb.models.ReplicaRole":"Microsoft.HorizonDb.ReplicaRole","com.azure.resourcemanager.horizondb.models.State":"Microsoft.HorizonDb.State","com.azure.resourcemanager.horizondb.models.UserAssignedIdentity":"Azure.ResourceManager.CommonTypes.UserAssignedIdentity","com.azure.resourcemanager.horizondb.models.ZonePlacementPolicy":"Microsoft.HorizonDb.ZonePlacementPolicy"},"generatedFiles":["src/main/java/com/azure/resourcemanager/horizondb/HorizonDbManager.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/HorizonDbAdministratorsClient.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/HorizonDbClustersClient.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/HorizonDbFirewallRulesClient.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/HorizonDbManagementClient.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/HorizonDbParameterGroupsClient.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/HorizonDbPoolsClient.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/HorizonDbPrivateEndpointConnectionsClient.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/HorizonDbPrivateLinkResourcesClient.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/HorizonDbReplicasClient.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/models/HorizonDbAdministratorInner.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/models/HorizonDbClusterInner.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/models/HorizonDbFirewallRuleInner.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/models/HorizonDbParameterGroupConnectionPropertiesInner.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/models/HorizonDbParameterGroupInner.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/models/HorizonDbPoolInner.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/models/HorizonDbPrivateLinkResourceInner.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/models/HorizonDbReplicaInner.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/models/PrivateEndpointConnectionResourceInner.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/package-info.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbAdministratorImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbAdministratorsClientImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbAdministratorsImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbClusterImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbClustersClientImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbClustersImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbFirewallRuleImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbFirewallRulesClientImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbFirewallRulesImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbManagementClientImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbParameterGroupConnectionPropertiesImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbParameterGroupImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbParameterGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbParameterGroupsImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbPoolImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbPoolsClientImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbPoolsImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbPrivateEndpointConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbPrivateEndpointConnectionsImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbPrivateLinkResourceImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbPrivateLinkResourcesClientImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbPrivateLinkResourcesImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbReplicaImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbReplicasClientImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbReplicasImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/OperationImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/PrivateEndpointConnectionResourceImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/models/HorizonDbAdministratorListResult.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/models/HorizonDbClusterListResult.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/models/HorizonDbFirewallRuleListResult.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/models/HorizonDbParameterGroupConnectionPropertiesListResult.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/models/HorizonDbParameterGroupListResult.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/models/HorizonDbPoolListResult.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/models/HorizonDbPrivateLinkResourceListResult.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/models/HorizonDbReplicaListResult.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/models/PrivateEndpointConnectionResourceListResult.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/package-info.java","src/main/java/com/azure/resourcemanager/horizondb/models/ActionType.java","src/main/java/com/azure/resourcemanager/horizondb/models/AuthenticationState.java","src/main/java/com/azure/resourcemanager/horizondb/models/CreateModeCluster.java","src/main/java/com/azure/resourcemanager/horizondb/models/CreateModePool.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbAdministrator.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbAdministratorAdd.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbAdministratorProperties.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbAdministratorPropertiesForAdd.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbAdministrators.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbCluster.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterAuthConfig.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterForPatchUpdate.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterMirroring.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterParameterGroupConnectionProperties.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterProperties.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterPropertiesForPatchUpdate.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusters.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbComputeModel.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbComputeModelType.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbFirewallRule.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbFirewallRuleProperties.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbFirewallRules.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbParameterGroup.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbParameterGroupConnectionProperties.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbParameterGroupForPatchUpdate.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbParameterGroupProperties.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbParameterGroupPropertiesForPatchUpdate.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbParameterGroups.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbPool.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbPoolProperties.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbPools.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbPrivateEndpointConnections.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbPrivateLinkResource.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbPrivateLinkResources.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbReplica.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbReplicaForPatchUpdate.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbReplicaProperties.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbReplicaPropertiesForPatchUpdate.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbReplicas.java","src/main/java/com/azure/resourcemanager/horizondb/models/ManagedServiceIdentity.java","src/main/java/com/azure/resourcemanager/horizondb/models/ManagedServiceIdentityType.java","src/main/java/com/azure/resourcemanager/horizondb/models/Network.java","src/main/java/com/azure/resourcemanager/horizondb/models/Operation.java","src/main/java/com/azure/resourcemanager/horizondb/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/horizondb/models/Operations.java","src/main/java/com/azure/resourcemanager/horizondb/models/Origin.java","src/main/java/com/azure/resourcemanager/horizondb/models/ParameterProperties.java","src/main/java/com/azure/resourcemanager/horizondb/models/PrincipalTypes.java","src/main/java/com/azure/resourcemanager/horizondb/models/PrivateEndpoint.java","src/main/java/com/azure/resourcemanager/horizondb/models/PrivateEndpointConnectionProperties.java","src/main/java/com/azure/resourcemanager/horizondb/models/PrivateEndpointConnectionProvisioningState.java","src/main/java/com/azure/resourcemanager/horizondb/models/PrivateEndpointConnectionResource.java","src/main/java/com/azure/resourcemanager/horizondb/models/PrivateEndpointServiceConnectionStatus.java","src/main/java/com/azure/resourcemanager/horizondb/models/PrivateLinkResourceProperties.java","src/main/java/com/azure/resourcemanager/horizondb/models/PrivateLinkServiceConnectionState.java","src/main/java/com/azure/resourcemanager/horizondb/models/ProvisioningState.java","src/main/java/com/azure/resourcemanager/horizondb/models/PublicNetworkAccessState.java","src/main/java/com/azure/resourcemanager/horizondb/models/ReplicaRole.java","src/main/java/com/azure/resourcemanager/horizondb/models/State.java","src/main/java/com/azure/resourcemanager/horizondb/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/horizondb/models/ZonePlacementPolicy.java","src/main/java/com/azure/resourcemanager/horizondb/models/package-info.java","src/main/java/com/azure/resourcemanager/horizondb/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file +{"flavor":"azure","apiVersions":{"Microsoft.HorizonDb":"2026-10-01-preview"},"crossLanguagePackageId":"Microsoft.HorizonDb","crossLanguageVersion":"e3143f0fdae1","crossLanguageDefinitions":{"com.azure.resourcemanager.horizondb.fluent.AuthenticationsClient":"Microsoft.HorizonDb.Authentications","com.azure.resourcemanager.horizondb.fluent.AuthenticationsClient.list":"Microsoft.HorizonDb.Authentications.list","com.azure.resourcemanager.horizondb.fluent.AuthenticationsClient.listAsync":"Microsoft.HorizonDb.Authentications.list","com.azure.resourcemanager.horizondb.fluent.CapabilitiesClient":"Microsoft.HorizonDb.Capabilities","com.azure.resourcemanager.horizondb.fluent.CapabilitiesClient.get":"Microsoft.HorizonDb.Capabilities.get","com.azure.resourcemanager.horizondb.fluent.CapabilitiesClient.getAsync":"Microsoft.HorizonDb.Capabilities.get","com.azure.resourcemanager.horizondb.fluent.CapabilitiesClient.getWithResponse":"Microsoft.HorizonDb.Capabilities.get","com.azure.resourcemanager.horizondb.fluent.CapabilitiesClient.getWithResponseAsync":"Microsoft.HorizonDb.Capabilities.get","com.azure.resourcemanager.horizondb.fluent.CapabilitiesClient.list":"Microsoft.HorizonDb.Capabilities.list","com.azure.resourcemanager.horizondb.fluent.CapabilitiesClient.listAsync":"Microsoft.HorizonDb.Capabilities.list","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureCapabilitiesClient":"Microsoft.HorizonDb.ChangeDataCaptureCapabilities","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureCapabilitiesClient.beginCreateOrReplace":"Microsoft.HorizonDb.ChangeDataCaptureCapabilities.createOrReplace","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureCapabilitiesClient.beginCreateOrReplaceAsync":"Microsoft.HorizonDb.ChangeDataCaptureCapabilities.createOrReplace","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureCapabilitiesClient.beginDelete":"Microsoft.HorizonDb.ChangeDataCaptureCapabilities.delete","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureCapabilitiesClient.beginDeleteAsync":"Microsoft.HorizonDb.ChangeDataCaptureCapabilities.delete","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureCapabilitiesClient.beginUpdate":"Microsoft.HorizonDb.ChangeDataCaptureCapabilities.update","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureCapabilitiesClient.beginUpdateAsync":"Microsoft.HorizonDb.ChangeDataCaptureCapabilities.update","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureCapabilitiesClient.createOrReplace":"Microsoft.HorizonDb.ChangeDataCaptureCapabilities.createOrReplace","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureCapabilitiesClient.createOrReplaceAsync":"Microsoft.HorizonDb.ChangeDataCaptureCapabilities.createOrReplace","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureCapabilitiesClient.createOrReplaceWithResponseAsync":"Microsoft.HorizonDb.ChangeDataCaptureCapabilities.createOrReplace","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureCapabilitiesClient.delete":"Microsoft.HorizonDb.ChangeDataCaptureCapabilities.delete","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureCapabilitiesClient.deleteAsync":"Microsoft.HorizonDb.ChangeDataCaptureCapabilities.delete","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureCapabilitiesClient.deleteWithResponseAsync":"Microsoft.HorizonDb.ChangeDataCaptureCapabilities.delete","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureCapabilitiesClient.get":"Microsoft.HorizonDb.ChangeDataCaptureCapabilities.get","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureCapabilitiesClient.getAsync":"Microsoft.HorizonDb.ChangeDataCaptureCapabilities.get","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureCapabilitiesClient.getWithResponse":"Microsoft.HorizonDb.ChangeDataCaptureCapabilities.get","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureCapabilitiesClient.getWithResponseAsync":"Microsoft.HorizonDb.ChangeDataCaptureCapabilities.get","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureCapabilitiesClient.list":"Microsoft.HorizonDb.ChangeDataCaptureCapabilities.list","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureCapabilitiesClient.listAsync":"Microsoft.HorizonDb.ChangeDataCaptureCapabilities.list","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureCapabilitiesClient.update":"Microsoft.HorizonDb.ChangeDataCaptureCapabilities.update","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureCapabilitiesClient.updateAsync":"Microsoft.HorizonDb.ChangeDataCaptureCapabilities.update","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureCapabilitiesClient.updateWithResponseAsync":"Microsoft.HorizonDb.ChangeDataCaptureCapabilities.update","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureConfigurationsClient":"Microsoft.HorizonDb.ChangeDataCaptureConfigurations","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureConfigurationsClient.beginCreateOrReplace":"Microsoft.HorizonDb.ChangeDataCaptureConfigurations.createOrReplace","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureConfigurationsClient.beginCreateOrReplaceAsync":"Microsoft.HorizonDb.ChangeDataCaptureConfigurations.createOrReplace","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureConfigurationsClient.beginDelete":"Microsoft.HorizonDb.ChangeDataCaptureConfigurations.delete","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureConfigurationsClient.beginDeleteAsync":"Microsoft.HorizonDb.ChangeDataCaptureConfigurations.delete","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureConfigurationsClient.beginUpdate":"Microsoft.HorizonDb.ChangeDataCaptureConfigurations.update","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureConfigurationsClient.beginUpdateAsync":"Microsoft.HorizonDb.ChangeDataCaptureConfigurations.update","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureConfigurationsClient.createOrReplace":"Microsoft.HorizonDb.ChangeDataCaptureConfigurations.createOrReplace","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureConfigurationsClient.createOrReplaceAsync":"Microsoft.HorizonDb.ChangeDataCaptureConfigurations.createOrReplace","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureConfigurationsClient.createOrReplaceWithResponseAsync":"Microsoft.HorizonDb.ChangeDataCaptureConfigurations.createOrReplace","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureConfigurationsClient.delete":"Microsoft.HorizonDb.ChangeDataCaptureConfigurations.delete","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureConfigurationsClient.deleteAsync":"Microsoft.HorizonDb.ChangeDataCaptureConfigurations.delete","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureConfigurationsClient.deleteWithResponseAsync":"Microsoft.HorizonDb.ChangeDataCaptureConfigurations.delete","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureConfigurationsClient.get":"Microsoft.HorizonDb.ChangeDataCaptureConfigurations.get","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureConfigurationsClient.getAsync":"Microsoft.HorizonDb.ChangeDataCaptureConfigurations.get","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureConfigurationsClient.getWithResponse":"Microsoft.HorizonDb.ChangeDataCaptureConfigurations.get","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureConfigurationsClient.getWithResponseAsync":"Microsoft.HorizonDb.ChangeDataCaptureConfigurations.get","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureConfigurationsClient.list":"Microsoft.HorizonDb.ChangeDataCaptureConfigurations.list","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureConfigurationsClient.listAsync":"Microsoft.HorizonDb.ChangeDataCaptureConfigurations.list","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureConfigurationsClient.update":"Microsoft.HorizonDb.ChangeDataCaptureConfigurations.update","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureConfigurationsClient.updateAsync":"Microsoft.HorizonDb.ChangeDataCaptureConfigurations.update","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureConfigurationsClient.updateWithResponseAsync":"Microsoft.HorizonDb.ChangeDataCaptureConfigurations.update","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureDestinationsClient":"Microsoft.HorizonDb.ChangeDataCaptureDestinations","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureDestinationsClient.activateIdentity":"Microsoft.HorizonDb.ChangeDataCaptureDestinations.activateIdentity","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureDestinationsClient.activateIdentityAsync":"Microsoft.HorizonDb.ChangeDataCaptureDestinations.activateIdentity","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureDestinationsClient.activateIdentityWithResponseAsync":"Microsoft.HorizonDb.ChangeDataCaptureDestinations.activateIdentity","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureDestinationsClient.beginActivateIdentity":"Microsoft.HorizonDb.ChangeDataCaptureDestinations.activateIdentity","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureDestinationsClient.beginActivateIdentityAsync":"Microsoft.HorizonDb.ChangeDataCaptureDestinations.activateIdentity","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureDestinationsClient.beginCreateOrReplace":"Microsoft.HorizonDb.ChangeDataCaptureDestinations.createOrReplace","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureDestinationsClient.beginCreateOrReplaceAsync":"Microsoft.HorizonDb.ChangeDataCaptureDestinations.createOrReplace","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureDestinationsClient.beginDelete":"Microsoft.HorizonDb.ChangeDataCaptureDestinations.delete","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureDestinationsClient.beginDeleteAsync":"Microsoft.HorizonDb.ChangeDataCaptureDestinations.delete","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureDestinationsClient.beginUpdate":"Microsoft.HorizonDb.ChangeDataCaptureDestinations.update","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureDestinationsClient.beginUpdateAsync":"Microsoft.HorizonDb.ChangeDataCaptureDestinations.update","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureDestinationsClient.createOrReplace":"Microsoft.HorizonDb.ChangeDataCaptureDestinations.createOrReplace","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureDestinationsClient.createOrReplaceAsync":"Microsoft.HorizonDb.ChangeDataCaptureDestinations.createOrReplace","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureDestinationsClient.createOrReplaceWithResponseAsync":"Microsoft.HorizonDb.ChangeDataCaptureDestinations.createOrReplace","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureDestinationsClient.delete":"Microsoft.HorizonDb.ChangeDataCaptureDestinations.delete","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureDestinationsClient.deleteAsync":"Microsoft.HorizonDb.ChangeDataCaptureDestinations.delete","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureDestinationsClient.deleteWithResponseAsync":"Microsoft.HorizonDb.ChangeDataCaptureDestinations.delete","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureDestinationsClient.get":"Microsoft.HorizonDb.ChangeDataCaptureDestinations.get","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureDestinationsClient.getAsync":"Microsoft.HorizonDb.ChangeDataCaptureDestinations.get","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureDestinationsClient.getWithResponse":"Microsoft.HorizonDb.ChangeDataCaptureDestinations.get","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureDestinationsClient.getWithResponseAsync":"Microsoft.HorizonDb.ChangeDataCaptureDestinations.get","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureDestinationsClient.list":"Microsoft.HorizonDb.ChangeDataCaptureDestinations.list","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureDestinationsClient.listAsync":"Microsoft.HorizonDb.ChangeDataCaptureDestinations.list","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureDestinationsClient.update":"Microsoft.HorizonDb.ChangeDataCaptureDestinations.update","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureDestinationsClient.updateAsync":"Microsoft.HorizonDb.ChangeDataCaptureDestinations.update","com.azure.resourcemanager.horizondb.fluent.ChangeDataCaptureDestinationsClient.updateWithResponseAsync":"Microsoft.HorizonDb.ChangeDataCaptureDestinations.update","com.azure.resourcemanager.horizondb.fluent.ClustersClient":"Microsoft.HorizonDb.Clusters","com.azure.resourcemanager.horizondb.fluent.ClustersClient.beginCreateOrReplace":"Microsoft.HorizonDb.Clusters.createOrReplace","com.azure.resourcemanager.horizondb.fluent.ClustersClient.beginCreateOrReplaceAsync":"Microsoft.HorizonDb.Clusters.createOrReplace","com.azure.resourcemanager.horizondb.fluent.ClustersClient.beginDelete":"Microsoft.HorizonDb.Clusters.delete","com.azure.resourcemanager.horizondb.fluent.ClustersClient.beginDeleteAsync":"Microsoft.HorizonDb.Clusters.delete","com.azure.resourcemanager.horizondb.fluent.ClustersClient.beginFailover":"Microsoft.HorizonDb.Clusters.failover","com.azure.resourcemanager.horizondb.fluent.ClustersClient.beginFailoverAsync":"Microsoft.HorizonDb.Clusters.failover","com.azure.resourcemanager.horizondb.fluent.ClustersClient.beginUpdate":"Microsoft.HorizonDb.Clusters.update","com.azure.resourcemanager.horizondb.fluent.ClustersClient.beginUpdateAsync":"Microsoft.HorizonDb.Clusters.update","com.azure.resourcemanager.horizondb.fluent.ClustersClient.createOrReplace":"Microsoft.HorizonDb.Clusters.createOrReplace","com.azure.resourcemanager.horizondb.fluent.ClustersClient.createOrReplaceAsync":"Microsoft.HorizonDb.Clusters.createOrReplace","com.azure.resourcemanager.horizondb.fluent.ClustersClient.createOrReplaceWithResponseAsync":"Microsoft.HorizonDb.Clusters.createOrReplace","com.azure.resourcemanager.horizondb.fluent.ClustersClient.delete":"Microsoft.HorizonDb.Clusters.delete","com.azure.resourcemanager.horizondb.fluent.ClustersClient.deleteAsync":"Microsoft.HorizonDb.Clusters.delete","com.azure.resourcemanager.horizondb.fluent.ClustersClient.deleteWithResponseAsync":"Microsoft.HorizonDb.Clusters.delete","com.azure.resourcemanager.horizondb.fluent.ClustersClient.failover":"Microsoft.HorizonDb.Clusters.failover","com.azure.resourcemanager.horizondb.fluent.ClustersClient.failoverAsync":"Microsoft.HorizonDb.Clusters.failover","com.azure.resourcemanager.horizondb.fluent.ClustersClient.failoverWithResponseAsync":"Microsoft.HorizonDb.Clusters.failover","com.azure.resourcemanager.horizondb.fluent.ClustersClient.getByResourceGroup":"Microsoft.HorizonDb.Clusters.get","com.azure.resourcemanager.horizondb.fluent.ClustersClient.getByResourceGroupAsync":"Microsoft.HorizonDb.Clusters.get","com.azure.resourcemanager.horizondb.fluent.ClustersClient.getByResourceGroupWithResponse":"Microsoft.HorizonDb.Clusters.get","com.azure.resourcemanager.horizondb.fluent.ClustersClient.getByResourceGroupWithResponseAsync":"Microsoft.HorizonDb.Clusters.get","com.azure.resourcemanager.horizondb.fluent.ClustersClient.list":"Microsoft.HorizonDb.Clusters.listBySubscription","com.azure.resourcemanager.horizondb.fluent.ClustersClient.listAsync":"Microsoft.HorizonDb.Clusters.listBySubscription","com.azure.resourcemanager.horizondb.fluent.ClustersClient.listByResourceGroup":"Microsoft.HorizonDb.Clusters.listByResourceGroup","com.azure.resourcemanager.horizondb.fluent.ClustersClient.listByResourceGroupAsync":"Microsoft.HorizonDb.Clusters.listByResourceGroup","com.azure.resourcemanager.horizondb.fluent.ClustersClient.update":"Microsoft.HorizonDb.Clusters.update","com.azure.resourcemanager.horizondb.fluent.ClustersClient.updateAsync":"Microsoft.HorizonDb.Clusters.update","com.azure.resourcemanager.horizondb.fluent.ClustersClient.updateWithResponseAsync":"Microsoft.HorizonDb.Clusters.update","com.azure.resourcemanager.horizondb.fluent.DefaultParameterGroupsClient":"Microsoft.HorizonDb.DefaultParameterGroups","com.azure.resourcemanager.horizondb.fluent.DefaultParameterGroupsClient.get":"Microsoft.HorizonDb.DefaultParameterGroups.get","com.azure.resourcemanager.horizondb.fluent.DefaultParameterGroupsClient.getAsync":"Microsoft.HorizonDb.DefaultParameterGroups.get","com.azure.resourcemanager.horizondb.fluent.DefaultParameterGroupsClient.getWithResponse":"Microsoft.HorizonDb.DefaultParameterGroups.get","com.azure.resourcemanager.horizondb.fluent.DefaultParameterGroupsClient.getWithResponseAsync":"Microsoft.HorizonDb.DefaultParameterGroups.get","com.azure.resourcemanager.horizondb.fluent.DefaultParameterGroupsClient.listBySubscriptionAndRegion":"Microsoft.HorizonDb.DefaultParameterGroups.listBySubscriptionAndRegion","com.azure.resourcemanager.horizondb.fluent.DefaultParameterGroupsClient.listBySubscriptionAndRegionAsync":"Microsoft.HorizonDb.DefaultParameterGroups.listBySubscriptionAndRegion","com.azure.resourcemanager.horizondb.fluent.EndpointsClient":"Microsoft.HorizonDb.Endpoints","com.azure.resourcemanager.horizondb.fluent.EndpointsClient.get":"Microsoft.HorizonDb.Endpoints.get","com.azure.resourcemanager.horizondb.fluent.EndpointsClient.getAsync":"Microsoft.HorizonDb.Endpoints.get","com.azure.resourcemanager.horizondb.fluent.EndpointsClient.getWithResponse":"Microsoft.HorizonDb.Endpoints.get","com.azure.resourcemanager.horizondb.fluent.EndpointsClient.getWithResponseAsync":"Microsoft.HorizonDb.Endpoints.get","com.azure.resourcemanager.horizondb.fluent.EndpointsClient.list":"Microsoft.HorizonDb.Endpoints.list","com.azure.resourcemanager.horizondb.fluent.EndpointsClient.listAsync":"Microsoft.HorizonDb.Endpoints.list","com.azure.resourcemanager.horizondb.fluent.FirewallRulesClient":"Microsoft.HorizonDb.FirewallRules","com.azure.resourcemanager.horizondb.fluent.FirewallRulesClient.beginCreateOrReplace":"Microsoft.HorizonDb.FirewallRules.createOrReplace","com.azure.resourcemanager.horizondb.fluent.FirewallRulesClient.beginCreateOrReplaceAsync":"Microsoft.HorizonDb.FirewallRules.createOrReplace","com.azure.resourcemanager.horizondb.fluent.FirewallRulesClient.beginDelete":"Microsoft.HorizonDb.FirewallRules.delete","com.azure.resourcemanager.horizondb.fluent.FirewallRulesClient.beginDeleteAsync":"Microsoft.HorizonDb.FirewallRules.delete","com.azure.resourcemanager.horizondb.fluent.FirewallRulesClient.createOrReplace":"Microsoft.HorizonDb.FirewallRules.createOrReplace","com.azure.resourcemanager.horizondb.fluent.FirewallRulesClient.createOrReplaceAsync":"Microsoft.HorizonDb.FirewallRules.createOrReplace","com.azure.resourcemanager.horizondb.fluent.FirewallRulesClient.createOrReplaceWithResponseAsync":"Microsoft.HorizonDb.FirewallRules.createOrReplace","com.azure.resourcemanager.horizondb.fluent.FirewallRulesClient.delete":"Microsoft.HorizonDb.FirewallRules.delete","com.azure.resourcemanager.horizondb.fluent.FirewallRulesClient.deleteAsync":"Microsoft.HorizonDb.FirewallRules.delete","com.azure.resourcemanager.horizondb.fluent.FirewallRulesClient.deleteWithResponseAsync":"Microsoft.HorizonDb.FirewallRules.delete","com.azure.resourcemanager.horizondb.fluent.FirewallRulesClient.get":"Microsoft.HorizonDb.FirewallRules.get","com.azure.resourcemanager.horizondb.fluent.FirewallRulesClient.getAsync":"Microsoft.HorizonDb.FirewallRules.get","com.azure.resourcemanager.horizondb.fluent.FirewallRulesClient.getWithResponse":"Microsoft.HorizonDb.FirewallRules.get","com.azure.resourcemanager.horizondb.fluent.FirewallRulesClient.getWithResponseAsync":"Microsoft.HorizonDb.FirewallRules.get","com.azure.resourcemanager.horizondb.fluent.FirewallRulesClient.list":"Microsoft.HorizonDb.FirewallRules.list","com.azure.resourcemanager.horizondb.fluent.FirewallRulesClient.listAsync":"Microsoft.HorizonDb.FirewallRules.list","com.azure.resourcemanager.horizondb.fluent.HorizonDbManagementClient":"Microsoft.HorizonDb","com.azure.resourcemanager.horizondb.fluent.IdentityAssignmentsClient":"Microsoft.HorizonDb.IdentityAssignments","com.azure.resourcemanager.horizondb.fluent.IdentityAssignmentsClient.beginCreateOrReplace":"Microsoft.HorizonDb.IdentityAssignments.createOrReplace","com.azure.resourcemanager.horizondb.fluent.IdentityAssignmentsClient.beginCreateOrReplaceAsync":"Microsoft.HorizonDb.IdentityAssignments.createOrReplace","com.azure.resourcemanager.horizondb.fluent.IdentityAssignmentsClient.beginDelete":"Microsoft.HorizonDb.IdentityAssignments.delete","com.azure.resourcemanager.horizondb.fluent.IdentityAssignmentsClient.beginDeleteAsync":"Microsoft.HorizonDb.IdentityAssignments.delete","com.azure.resourcemanager.horizondb.fluent.IdentityAssignmentsClient.createOrReplace":"Microsoft.HorizonDb.IdentityAssignments.createOrReplace","com.azure.resourcemanager.horizondb.fluent.IdentityAssignmentsClient.createOrReplaceAsync":"Microsoft.HorizonDb.IdentityAssignments.createOrReplace","com.azure.resourcemanager.horizondb.fluent.IdentityAssignmentsClient.createOrReplaceWithResponseAsync":"Microsoft.HorizonDb.IdentityAssignments.createOrReplace","com.azure.resourcemanager.horizondb.fluent.IdentityAssignmentsClient.delete":"Microsoft.HorizonDb.IdentityAssignments.delete","com.azure.resourcemanager.horizondb.fluent.IdentityAssignmentsClient.deleteAsync":"Microsoft.HorizonDb.IdentityAssignments.delete","com.azure.resourcemanager.horizondb.fluent.IdentityAssignmentsClient.deleteWithResponseAsync":"Microsoft.HorizonDb.IdentityAssignments.delete","com.azure.resourcemanager.horizondb.fluent.IdentityAssignmentsClient.get":"Microsoft.HorizonDb.IdentityAssignments.get","com.azure.resourcemanager.horizondb.fluent.IdentityAssignmentsClient.getAsync":"Microsoft.HorizonDb.IdentityAssignments.get","com.azure.resourcemanager.horizondb.fluent.IdentityAssignmentsClient.getWithResponse":"Microsoft.HorizonDb.IdentityAssignments.get","com.azure.resourcemanager.horizondb.fluent.IdentityAssignmentsClient.getWithResponseAsync":"Microsoft.HorizonDb.IdentityAssignments.get","com.azure.resourcemanager.horizondb.fluent.IdentityAssignmentsClient.list":"Microsoft.HorizonDb.IdentityAssignments.list","com.azure.resourcemanager.horizondb.fluent.IdentityAssignmentsClient.listAsync":"Microsoft.HorizonDb.IdentityAssignments.list","com.azure.resourcemanager.horizondb.fluent.LogCaptureConfigurationsClient":"Microsoft.HorizonDb.LogCaptureConfigurations","com.azure.resourcemanager.horizondb.fluent.LogCaptureConfigurationsClient.beginUpdate":"Microsoft.HorizonDb.LogCaptureConfigurations.update","com.azure.resourcemanager.horizondb.fluent.LogCaptureConfigurationsClient.beginUpdateAsync":"Microsoft.HorizonDb.LogCaptureConfigurations.update","com.azure.resourcemanager.horizondb.fluent.LogCaptureConfigurationsClient.get":"Microsoft.HorizonDb.LogCaptureConfigurations.get","com.azure.resourcemanager.horizondb.fluent.LogCaptureConfigurationsClient.getAsync":"Microsoft.HorizonDb.LogCaptureConfigurations.get","com.azure.resourcemanager.horizondb.fluent.LogCaptureConfigurationsClient.getWithResponse":"Microsoft.HorizonDb.LogCaptureConfigurations.get","com.azure.resourcemanager.horizondb.fluent.LogCaptureConfigurationsClient.getWithResponseAsync":"Microsoft.HorizonDb.LogCaptureConfigurations.get","com.azure.resourcemanager.horizondb.fluent.LogCaptureConfigurationsClient.list":"Microsoft.HorizonDb.LogCaptureConfigurations.list","com.azure.resourcemanager.horizondb.fluent.LogCaptureConfigurationsClient.listAsync":"Microsoft.HorizonDb.LogCaptureConfigurations.list","com.azure.resourcemanager.horizondb.fluent.LogCaptureConfigurationsClient.update":"Microsoft.HorizonDb.LogCaptureConfigurations.update","com.azure.resourcemanager.horizondb.fluent.LogCaptureConfigurationsClient.updateAsync":"Microsoft.HorizonDb.LogCaptureConfigurations.update","com.azure.resourcemanager.horizondb.fluent.LogCaptureConfigurationsClient.updateWithResponseAsync":"Microsoft.HorizonDb.LogCaptureConfigurations.update","com.azure.resourcemanager.horizondb.fluent.LogFilesClient":"Microsoft.HorizonDb.LogFiles","com.azure.resourcemanager.horizondb.fluent.LogFilesClient.get":"Microsoft.HorizonDb.LogFiles.get","com.azure.resourcemanager.horizondb.fluent.LogFilesClient.getAsync":"Microsoft.HorizonDb.LogFiles.get","com.azure.resourcemanager.horizondb.fluent.LogFilesClient.getWithResponse":"Microsoft.HorizonDb.LogFiles.get","com.azure.resourcemanager.horizondb.fluent.LogFilesClient.getWithResponseAsync":"Microsoft.HorizonDb.LogFiles.get","com.azure.resourcemanager.horizondb.fluent.LogFilesClient.list":"Microsoft.HorizonDb.LogFiles.list","com.azure.resourcemanager.horizondb.fluent.LogFilesClient.listAsync":"Microsoft.HorizonDb.LogFiles.list","com.azure.resourcemanager.horizondb.fluent.LogFilesClient.listDownloadUrls":"Microsoft.HorizonDb.LogFiles.listDownloadUrls","com.azure.resourcemanager.horizondb.fluent.LogFilesClient.listDownloadUrlsAsync":"Microsoft.HorizonDb.LogFiles.listDownloadUrls","com.azure.resourcemanager.horizondb.fluent.LogFilesClient.listDownloadUrlsWithResponse":"Microsoft.HorizonDb.LogFiles.listDownloadUrls","com.azure.resourcemanager.horizondb.fluent.LogFilesClient.listDownloadUrlsWithResponseAsync":"Microsoft.HorizonDb.LogFiles.listDownloadUrls","com.azure.resourcemanager.horizondb.fluent.MaintenanceEventsClient":"Microsoft.HorizonDb.MaintenanceEvents","com.azure.resourcemanager.horizondb.fluent.MaintenanceEventsClient.applyNow":"Microsoft.HorizonDb.MaintenanceEvents.applyNow","com.azure.resourcemanager.horizondb.fluent.MaintenanceEventsClient.applyNowAsync":"Microsoft.HorizonDb.MaintenanceEvents.applyNow","com.azure.resourcemanager.horizondb.fluent.MaintenanceEventsClient.applyNowWithResponseAsync":"Microsoft.HorizonDb.MaintenanceEvents.applyNow","com.azure.resourcemanager.horizondb.fluent.MaintenanceEventsClient.beginApplyNow":"Microsoft.HorizonDb.MaintenanceEvents.applyNow","com.azure.resourcemanager.horizondb.fluent.MaintenanceEventsClient.beginApplyNowAsync":"Microsoft.HorizonDb.MaintenanceEvents.applyNow","com.azure.resourcemanager.horizondb.fluent.MaintenanceEventsClient.beginReschedule":"Microsoft.HorizonDb.MaintenanceEvents.reschedule","com.azure.resourcemanager.horizondb.fluent.MaintenanceEventsClient.beginRescheduleAsync":"Microsoft.HorizonDb.MaintenanceEvents.reschedule","com.azure.resourcemanager.horizondb.fluent.MaintenanceEventsClient.get":"Microsoft.HorizonDb.MaintenanceEvents.get","com.azure.resourcemanager.horizondb.fluent.MaintenanceEventsClient.getAsync":"Microsoft.HorizonDb.MaintenanceEvents.get","com.azure.resourcemanager.horizondb.fluent.MaintenanceEventsClient.getWithResponse":"Microsoft.HorizonDb.MaintenanceEvents.get","com.azure.resourcemanager.horizondb.fluent.MaintenanceEventsClient.getWithResponseAsync":"Microsoft.HorizonDb.MaintenanceEvents.get","com.azure.resourcemanager.horizondb.fluent.MaintenanceEventsClient.list":"Microsoft.HorizonDb.MaintenanceEvents.list","com.azure.resourcemanager.horizondb.fluent.MaintenanceEventsClient.listAsync":"Microsoft.HorizonDb.MaintenanceEvents.list","com.azure.resourcemanager.horizondb.fluent.MaintenanceEventsClient.reschedule":"Microsoft.HorizonDb.MaintenanceEvents.reschedule","com.azure.resourcemanager.horizondb.fluent.MaintenanceEventsClient.rescheduleAsync":"Microsoft.HorizonDb.MaintenanceEvents.reschedule","com.azure.resourcemanager.horizondb.fluent.MaintenanceEventsClient.rescheduleWithResponseAsync":"Microsoft.HorizonDb.MaintenanceEvents.reschedule","com.azure.resourcemanager.horizondb.fluent.MicrosoftEntraAdministratorsClient":"Microsoft.HorizonDb.MicrosoftEntraAdministrators","com.azure.resourcemanager.horizondb.fluent.MicrosoftEntraAdministratorsClient.beginCreateOrReplace":"Microsoft.HorizonDb.MicrosoftEntraAdministrators.createOrReplace","com.azure.resourcemanager.horizondb.fluent.MicrosoftEntraAdministratorsClient.beginCreateOrReplaceAsync":"Microsoft.HorizonDb.MicrosoftEntraAdministrators.createOrReplace","com.azure.resourcemanager.horizondb.fluent.MicrosoftEntraAdministratorsClient.beginDelete":"Microsoft.HorizonDb.MicrosoftEntraAdministrators.delete","com.azure.resourcemanager.horizondb.fluent.MicrosoftEntraAdministratorsClient.beginDeleteAsync":"Microsoft.HorizonDb.MicrosoftEntraAdministrators.delete","com.azure.resourcemanager.horizondb.fluent.MicrosoftEntraAdministratorsClient.createOrReplace":"Microsoft.HorizonDb.MicrosoftEntraAdministrators.createOrReplace","com.azure.resourcemanager.horizondb.fluent.MicrosoftEntraAdministratorsClient.createOrReplaceAsync":"Microsoft.HorizonDb.MicrosoftEntraAdministrators.createOrReplace","com.azure.resourcemanager.horizondb.fluent.MicrosoftEntraAdministratorsClient.createOrReplaceWithResponseAsync":"Microsoft.HorizonDb.MicrosoftEntraAdministrators.createOrReplace","com.azure.resourcemanager.horizondb.fluent.MicrosoftEntraAdministratorsClient.delete":"Microsoft.HorizonDb.MicrosoftEntraAdministrators.delete","com.azure.resourcemanager.horizondb.fluent.MicrosoftEntraAdministratorsClient.deleteAsync":"Microsoft.HorizonDb.MicrosoftEntraAdministrators.delete","com.azure.resourcemanager.horizondb.fluent.MicrosoftEntraAdministratorsClient.deleteWithResponseAsync":"Microsoft.HorizonDb.MicrosoftEntraAdministrators.delete","com.azure.resourcemanager.horizondb.fluent.MicrosoftEntraAdministratorsClient.get":"Microsoft.HorizonDb.MicrosoftEntraAdministrators.get","com.azure.resourcemanager.horizondb.fluent.MicrosoftEntraAdministratorsClient.getAsync":"Microsoft.HorizonDb.MicrosoftEntraAdministrators.get","com.azure.resourcemanager.horizondb.fluent.MicrosoftEntraAdministratorsClient.getWithResponse":"Microsoft.HorizonDb.MicrosoftEntraAdministrators.get","com.azure.resourcemanager.horizondb.fluent.MicrosoftEntraAdministratorsClient.getWithResponseAsync":"Microsoft.HorizonDb.MicrosoftEntraAdministrators.get","com.azure.resourcemanager.horizondb.fluent.MicrosoftEntraAdministratorsClient.list":"Microsoft.HorizonDb.MicrosoftEntraAdministrators.list","com.azure.resourcemanager.horizondb.fluent.MicrosoftEntraAdministratorsClient.listAsync":"Microsoft.HorizonDb.MicrosoftEntraAdministrators.list","com.azure.resourcemanager.horizondb.fluent.MicrosoftEntraAuthenticationsClient":"Microsoft.HorizonDb.MicrosoftEntraAuthentications","com.azure.resourcemanager.horizondb.fluent.MicrosoftEntraAuthenticationsClient.beginCreateOrReplace":"Microsoft.HorizonDb.MicrosoftEntraAuthentications.createOrReplace","com.azure.resourcemanager.horizondb.fluent.MicrosoftEntraAuthenticationsClient.beginCreateOrReplaceAsync":"Microsoft.HorizonDb.MicrosoftEntraAuthentications.createOrReplace","com.azure.resourcemanager.horizondb.fluent.MicrosoftEntraAuthenticationsClient.beginUpdate":"Microsoft.HorizonDb.MicrosoftEntraAuthentications.update","com.azure.resourcemanager.horizondb.fluent.MicrosoftEntraAuthenticationsClient.beginUpdateAsync":"Microsoft.HorizonDb.MicrosoftEntraAuthentications.update","com.azure.resourcemanager.horizondb.fluent.MicrosoftEntraAuthenticationsClient.createOrReplace":"Microsoft.HorizonDb.MicrosoftEntraAuthentications.createOrReplace","com.azure.resourcemanager.horizondb.fluent.MicrosoftEntraAuthenticationsClient.createOrReplaceAsync":"Microsoft.HorizonDb.MicrosoftEntraAuthentications.createOrReplace","com.azure.resourcemanager.horizondb.fluent.MicrosoftEntraAuthenticationsClient.createOrReplaceWithResponseAsync":"Microsoft.HorizonDb.MicrosoftEntraAuthentications.createOrReplace","com.azure.resourcemanager.horizondb.fluent.MicrosoftEntraAuthenticationsClient.get":"Microsoft.HorizonDb.MicrosoftEntraAuthentications.get","com.azure.resourcemanager.horizondb.fluent.MicrosoftEntraAuthenticationsClient.getAsync":"Microsoft.HorizonDb.MicrosoftEntraAuthentications.get","com.azure.resourcemanager.horizondb.fluent.MicrosoftEntraAuthenticationsClient.getWithResponse":"Microsoft.HorizonDb.MicrosoftEntraAuthentications.get","com.azure.resourcemanager.horizondb.fluent.MicrosoftEntraAuthenticationsClient.getWithResponseAsync":"Microsoft.HorizonDb.MicrosoftEntraAuthentications.get","com.azure.resourcemanager.horizondb.fluent.MicrosoftEntraAuthenticationsClient.update":"Microsoft.HorizonDb.MicrosoftEntraAuthentications.update","com.azure.resourcemanager.horizondb.fluent.MicrosoftEntraAuthenticationsClient.updateAsync":"Microsoft.HorizonDb.MicrosoftEntraAuthentications.update","com.azure.resourcemanager.horizondb.fluent.MicrosoftEntraAuthenticationsClient.updateWithResponseAsync":"Microsoft.HorizonDb.MicrosoftEntraAuthentications.update","com.azure.resourcemanager.horizondb.fluent.NodesClient":"Microsoft.HorizonDb.Nodes","com.azure.resourcemanager.horizondb.fluent.NodesClient.get":"Microsoft.HorizonDb.Nodes.get","com.azure.resourcemanager.horizondb.fluent.NodesClient.getAsync":"Microsoft.HorizonDb.Nodes.get","com.azure.resourcemanager.horizondb.fluent.NodesClient.getWithResponse":"Microsoft.HorizonDb.Nodes.get","com.azure.resourcemanager.horizondb.fluent.NodesClient.getWithResponseAsync":"Microsoft.HorizonDb.Nodes.get","com.azure.resourcemanager.horizondb.fluent.NodesClient.list":"Microsoft.HorizonDb.Nodes.list","com.azure.resourcemanager.horizondb.fluent.NodesClient.listAsync":"Microsoft.HorizonDb.Nodes.list","com.azure.resourcemanager.horizondb.fluent.OperationsClient":"Microsoft.HorizonDb.Operations","com.azure.resourcemanager.horizondb.fluent.OperationsClient.list":"Azure.ResourceManager.Operations.list","com.azure.resourcemanager.horizondb.fluent.OperationsClient.listAsync":"Azure.ResourceManager.Operations.list","com.azure.resourcemanager.horizondb.fluent.ParameterGroupsClient":"Microsoft.HorizonDb.ParameterGroups","com.azure.resourcemanager.horizondb.fluent.ParameterGroupsClient.beginCreateOrReplace":"Microsoft.HorizonDb.ParameterGroups.createOrReplace","com.azure.resourcemanager.horizondb.fluent.ParameterGroupsClient.beginCreateOrReplaceAsync":"Microsoft.HorizonDb.ParameterGroups.createOrReplace","com.azure.resourcemanager.horizondb.fluent.ParameterGroupsClient.beginDelete":"Microsoft.HorizonDb.ParameterGroups.delete","com.azure.resourcemanager.horizondb.fluent.ParameterGroupsClient.beginDeleteAsync":"Microsoft.HorizonDb.ParameterGroups.delete","com.azure.resourcemanager.horizondb.fluent.ParameterGroupsClient.beginUpdate":"Microsoft.HorizonDb.ParameterGroups.update","com.azure.resourcemanager.horizondb.fluent.ParameterGroupsClient.beginUpdateAsync":"Microsoft.HorizonDb.ParameterGroups.update","com.azure.resourcemanager.horizondb.fluent.ParameterGroupsClient.createOrReplace":"Microsoft.HorizonDb.ParameterGroups.createOrReplace","com.azure.resourcemanager.horizondb.fluent.ParameterGroupsClient.createOrReplaceAsync":"Microsoft.HorizonDb.ParameterGroups.createOrReplace","com.azure.resourcemanager.horizondb.fluent.ParameterGroupsClient.createOrReplaceWithResponseAsync":"Microsoft.HorizonDb.ParameterGroups.createOrReplace","com.azure.resourcemanager.horizondb.fluent.ParameterGroupsClient.delete":"Microsoft.HorizonDb.ParameterGroups.delete","com.azure.resourcemanager.horizondb.fluent.ParameterGroupsClient.deleteAsync":"Microsoft.HorizonDb.ParameterGroups.delete","com.azure.resourcemanager.horizondb.fluent.ParameterGroupsClient.deleteWithResponseAsync":"Microsoft.HorizonDb.ParameterGroups.delete","com.azure.resourcemanager.horizondb.fluent.ParameterGroupsClient.getByResourceGroup":"Microsoft.HorizonDb.ParameterGroups.get","com.azure.resourcemanager.horizondb.fluent.ParameterGroupsClient.getByResourceGroupAsync":"Microsoft.HorizonDb.ParameterGroups.get","com.azure.resourcemanager.horizondb.fluent.ParameterGroupsClient.getByResourceGroupWithResponse":"Microsoft.HorizonDb.ParameterGroups.get","com.azure.resourcemanager.horizondb.fluent.ParameterGroupsClient.getByResourceGroupWithResponseAsync":"Microsoft.HorizonDb.ParameterGroups.get","com.azure.resourcemanager.horizondb.fluent.ParameterGroupsClient.list":"Microsoft.HorizonDb.ParameterGroups.listBySubscription","com.azure.resourcemanager.horizondb.fluent.ParameterGroupsClient.listAsync":"Microsoft.HorizonDb.ParameterGroups.listBySubscription","com.azure.resourcemanager.horizondb.fluent.ParameterGroupsClient.listByResourceGroup":"Microsoft.HorizonDb.ParameterGroups.listByResourceGroup","com.azure.resourcemanager.horizondb.fluent.ParameterGroupsClient.listByResourceGroupAsync":"Microsoft.HorizonDb.ParameterGroups.listByResourceGroup","com.azure.resourcemanager.horizondb.fluent.ParameterGroupsClient.listConnections":"Microsoft.HorizonDb.ParameterGroups.listConnections","com.azure.resourcemanager.horizondb.fluent.ParameterGroupsClient.listConnectionsAsync":"Microsoft.HorizonDb.ParameterGroups.listConnections","com.azure.resourcemanager.horizondb.fluent.ParameterGroupsClient.update":"Microsoft.HorizonDb.ParameterGroups.update","com.azure.resourcemanager.horizondb.fluent.ParameterGroupsClient.updateAsync":"Microsoft.HorizonDb.ParameterGroups.update","com.azure.resourcemanager.horizondb.fluent.ParameterGroupsClient.updateWithResponseAsync":"Microsoft.HorizonDb.ParameterGroups.update","com.azure.resourcemanager.horizondb.fluent.PasswordAuthenticationsClient":"Microsoft.HorizonDb.PasswordAuthentications","com.azure.resourcemanager.horizondb.fluent.PasswordAuthenticationsClient.beginCreateOrReplace":"Microsoft.HorizonDb.PasswordAuthentications.createOrReplace","com.azure.resourcemanager.horizondb.fluent.PasswordAuthenticationsClient.beginCreateOrReplaceAsync":"Microsoft.HorizonDb.PasswordAuthentications.createOrReplace","com.azure.resourcemanager.horizondb.fluent.PasswordAuthenticationsClient.beginUpdate":"Microsoft.HorizonDb.PasswordAuthentications.update","com.azure.resourcemanager.horizondb.fluent.PasswordAuthenticationsClient.beginUpdateAsync":"Microsoft.HorizonDb.PasswordAuthentications.update","com.azure.resourcemanager.horizondb.fluent.PasswordAuthenticationsClient.createOrReplace":"Microsoft.HorizonDb.PasswordAuthentications.createOrReplace","com.azure.resourcemanager.horizondb.fluent.PasswordAuthenticationsClient.createOrReplaceAsync":"Microsoft.HorizonDb.PasswordAuthentications.createOrReplace","com.azure.resourcemanager.horizondb.fluent.PasswordAuthenticationsClient.createOrReplaceWithResponseAsync":"Microsoft.HorizonDb.PasswordAuthentications.createOrReplace","com.azure.resourcemanager.horizondb.fluent.PasswordAuthenticationsClient.get":"Microsoft.HorizonDb.PasswordAuthentications.get","com.azure.resourcemanager.horizondb.fluent.PasswordAuthenticationsClient.getAsync":"Microsoft.HorizonDb.PasswordAuthentications.get","com.azure.resourcemanager.horizondb.fluent.PasswordAuthenticationsClient.getWithResponse":"Microsoft.HorizonDb.PasswordAuthentications.get","com.azure.resourcemanager.horizondb.fluent.PasswordAuthenticationsClient.getWithResponseAsync":"Microsoft.HorizonDb.PasswordAuthentications.get","com.azure.resourcemanager.horizondb.fluent.PasswordAuthenticationsClient.update":"Microsoft.HorizonDb.PasswordAuthentications.update","com.azure.resourcemanager.horizondb.fluent.PasswordAuthenticationsClient.updateAsync":"Microsoft.HorizonDb.PasswordAuthentications.update","com.azure.resourcemanager.horizondb.fluent.PasswordAuthenticationsClient.updateWithResponseAsync":"Microsoft.HorizonDb.PasswordAuthentications.update","com.azure.resourcemanager.horizondb.fluent.PoolsClient":"Microsoft.HorizonDb.Pools","com.azure.resourcemanager.horizondb.fluent.PoolsClient.beginCreateOrReplace":"Microsoft.HorizonDb.Pools.createOrReplace","com.azure.resourcemanager.horizondb.fluent.PoolsClient.beginCreateOrReplaceAsync":"Microsoft.HorizonDb.Pools.createOrReplace","com.azure.resourcemanager.horizondb.fluent.PoolsClient.beginDelete":"Microsoft.HorizonDb.Pools.delete","com.azure.resourcemanager.horizondb.fluent.PoolsClient.beginDeleteAsync":"Microsoft.HorizonDb.Pools.delete","com.azure.resourcemanager.horizondb.fluent.PoolsClient.beginRestart":"Microsoft.HorizonDb.Pools.restart","com.azure.resourcemanager.horizondb.fluent.PoolsClient.beginRestartAsync":"Microsoft.HorizonDb.Pools.restart","com.azure.resourcemanager.horizondb.fluent.PoolsClient.beginStart":"Microsoft.HorizonDb.Pools.start","com.azure.resourcemanager.horizondb.fluent.PoolsClient.beginStartAsync":"Microsoft.HorizonDb.Pools.start","com.azure.resourcemanager.horizondb.fluent.PoolsClient.beginStop":"Microsoft.HorizonDb.Pools.stop","com.azure.resourcemanager.horizondb.fluent.PoolsClient.beginStopAsync":"Microsoft.HorizonDb.Pools.stop","com.azure.resourcemanager.horizondb.fluent.PoolsClient.beginUpdate":"Microsoft.HorizonDb.Pools.update","com.azure.resourcemanager.horizondb.fluent.PoolsClient.beginUpdateAsync":"Microsoft.HorizonDb.Pools.update","com.azure.resourcemanager.horizondb.fluent.PoolsClient.createOrReplace":"Microsoft.HorizonDb.Pools.createOrReplace","com.azure.resourcemanager.horizondb.fluent.PoolsClient.createOrReplaceAsync":"Microsoft.HorizonDb.Pools.createOrReplace","com.azure.resourcemanager.horizondb.fluent.PoolsClient.createOrReplaceWithResponseAsync":"Microsoft.HorizonDb.Pools.createOrReplace","com.azure.resourcemanager.horizondb.fluent.PoolsClient.delete":"Microsoft.HorizonDb.Pools.delete","com.azure.resourcemanager.horizondb.fluent.PoolsClient.deleteAsync":"Microsoft.HorizonDb.Pools.delete","com.azure.resourcemanager.horizondb.fluent.PoolsClient.deleteWithResponseAsync":"Microsoft.HorizonDb.Pools.delete","com.azure.resourcemanager.horizondb.fluent.PoolsClient.get":"Microsoft.HorizonDb.Pools.get","com.azure.resourcemanager.horizondb.fluent.PoolsClient.getAsync":"Microsoft.HorizonDb.Pools.get","com.azure.resourcemanager.horizondb.fluent.PoolsClient.getWithResponse":"Microsoft.HorizonDb.Pools.get","com.azure.resourcemanager.horizondb.fluent.PoolsClient.getWithResponseAsync":"Microsoft.HorizonDb.Pools.get","com.azure.resourcemanager.horizondb.fluent.PoolsClient.list":"Microsoft.HorizonDb.Pools.list","com.azure.resourcemanager.horizondb.fluent.PoolsClient.listAsync":"Microsoft.HorizonDb.Pools.list","com.azure.resourcemanager.horizondb.fluent.PoolsClient.restart":"Microsoft.HorizonDb.Pools.restart","com.azure.resourcemanager.horizondb.fluent.PoolsClient.restartAsync":"Microsoft.HorizonDb.Pools.restart","com.azure.resourcemanager.horizondb.fluent.PoolsClient.restartWithResponseAsync":"Microsoft.HorizonDb.Pools.restart","com.azure.resourcemanager.horizondb.fluent.PoolsClient.start":"Microsoft.HorizonDb.Pools.start","com.azure.resourcemanager.horizondb.fluent.PoolsClient.startAsync":"Microsoft.HorizonDb.Pools.start","com.azure.resourcemanager.horizondb.fluent.PoolsClient.startWithResponseAsync":"Microsoft.HorizonDb.Pools.start","com.azure.resourcemanager.horizondb.fluent.PoolsClient.stop":"Microsoft.HorizonDb.Pools.stop","com.azure.resourcemanager.horizondb.fluent.PoolsClient.stopAsync":"Microsoft.HorizonDb.Pools.stop","com.azure.resourcemanager.horizondb.fluent.PoolsClient.stopWithResponseAsync":"Microsoft.HorizonDb.Pools.stop","com.azure.resourcemanager.horizondb.fluent.PoolsClient.update":"Microsoft.HorizonDb.Pools.update","com.azure.resourcemanager.horizondb.fluent.PoolsClient.updateAsync":"Microsoft.HorizonDb.Pools.update","com.azure.resourcemanager.horizondb.fluent.PoolsClient.updateWithResponseAsync":"Microsoft.HorizonDb.Pools.update","com.azure.resourcemanager.horizondb.fluent.PrivateEndpointConnectionsClient":"Microsoft.HorizonDb.PrivateEndpointConnections","com.azure.resourcemanager.horizondb.fluent.PrivateEndpointConnectionsClient.approveOrReject":"Microsoft.HorizonDb.PrivateEndpointConnections.approveOrReject","com.azure.resourcemanager.horizondb.fluent.PrivateEndpointConnectionsClient.approveOrRejectAsync":"Microsoft.HorizonDb.PrivateEndpointConnections.approveOrReject","com.azure.resourcemanager.horizondb.fluent.PrivateEndpointConnectionsClient.approveOrRejectWithResponseAsync":"Microsoft.HorizonDb.PrivateEndpointConnections.approveOrReject","com.azure.resourcemanager.horizondb.fluent.PrivateEndpointConnectionsClient.beginApproveOrReject":"Microsoft.HorizonDb.PrivateEndpointConnections.approveOrReject","com.azure.resourcemanager.horizondb.fluent.PrivateEndpointConnectionsClient.beginApproveOrRejectAsync":"Microsoft.HorizonDb.PrivateEndpointConnections.approveOrReject","com.azure.resourcemanager.horizondb.fluent.PrivateEndpointConnectionsClient.beginDelete":"Microsoft.HorizonDb.PrivateEndpointConnections.delete","com.azure.resourcemanager.horizondb.fluent.PrivateEndpointConnectionsClient.beginDeleteAsync":"Microsoft.HorizonDb.PrivateEndpointConnections.delete","com.azure.resourcemanager.horizondb.fluent.PrivateEndpointConnectionsClient.delete":"Microsoft.HorizonDb.PrivateEndpointConnections.delete","com.azure.resourcemanager.horizondb.fluent.PrivateEndpointConnectionsClient.deleteAsync":"Microsoft.HorizonDb.PrivateEndpointConnections.delete","com.azure.resourcemanager.horizondb.fluent.PrivateEndpointConnectionsClient.deleteWithResponseAsync":"Microsoft.HorizonDb.PrivateEndpointConnections.delete","com.azure.resourcemanager.horizondb.fluent.PrivateEndpointConnectionsClient.get":"Microsoft.HorizonDb.PrivateEndpointConnections.get","com.azure.resourcemanager.horizondb.fluent.PrivateEndpointConnectionsClient.getAsync":"Microsoft.HorizonDb.PrivateEndpointConnections.get","com.azure.resourcemanager.horizondb.fluent.PrivateEndpointConnectionsClient.getWithResponse":"Microsoft.HorizonDb.PrivateEndpointConnections.get","com.azure.resourcemanager.horizondb.fluent.PrivateEndpointConnectionsClient.getWithResponseAsync":"Microsoft.HorizonDb.PrivateEndpointConnections.get","com.azure.resourcemanager.horizondb.fluent.PrivateEndpointConnectionsClient.list":"Microsoft.HorizonDb.PrivateEndpointConnections.list","com.azure.resourcemanager.horizondb.fluent.PrivateEndpointConnectionsClient.listAsync":"Microsoft.HorizonDb.PrivateEndpointConnections.list","com.azure.resourcemanager.horizondb.fluent.PrivateLinkResourcesClient":"Microsoft.HorizonDb.PrivateLinkResources","com.azure.resourcemanager.horizondb.fluent.PrivateLinkResourcesClient.get":"Microsoft.HorizonDb.PrivateLinkResources.get","com.azure.resourcemanager.horizondb.fluent.PrivateLinkResourcesClient.getAsync":"Microsoft.HorizonDb.PrivateLinkResources.get","com.azure.resourcemanager.horizondb.fluent.PrivateLinkResourcesClient.getWithResponse":"Microsoft.HorizonDb.PrivateLinkResources.get","com.azure.resourcemanager.horizondb.fluent.PrivateLinkResourcesClient.getWithResponseAsync":"Microsoft.HorizonDb.PrivateLinkResources.get","com.azure.resourcemanager.horizondb.fluent.PrivateLinkResourcesClient.list":"Microsoft.HorizonDb.PrivateLinkResources.list","com.azure.resourcemanager.horizondb.fluent.PrivateLinkResourcesClient.listAsync":"Microsoft.HorizonDb.PrivateLinkResources.list","com.azure.resourcemanager.horizondb.fluent.models.ActivateChangeDataCaptureIdentityResultInner":"Microsoft.HorizonDb.ActivateChangeDataCaptureIdentityResult","com.azure.resourcemanager.horizondb.fluent.models.AuthenticationInner":"Microsoft.HorizonDb.Authentication","com.azure.resourcemanager.horizondb.fluent.models.CapabilityInner":"Microsoft.HorizonDb.Capability","com.azure.resourcemanager.horizondb.fluent.models.ChangeDataCaptureCapabilityInner":"Microsoft.HorizonDb.ChangeDataCaptureCapability","com.azure.resourcemanager.horizondb.fluent.models.ChangeDataCaptureConfigurationInner":"Microsoft.HorizonDb.ChangeDataCaptureConfiguration","com.azure.resourcemanager.horizondb.fluent.models.ChangeDataCaptureDestinationInner":"Microsoft.HorizonDb.ChangeDataCaptureDestination","com.azure.resourcemanager.horizondb.fluent.models.ClusterInner":"Microsoft.HorizonDb.Cluster","com.azure.resourcemanager.horizondb.fluent.models.DefaultParameterGroupInner":"Microsoft.HorizonDb.DefaultParameterGroup","com.azure.resourcemanager.horizondb.fluent.models.EndpointInner":"Microsoft.HorizonDb.Endpoint","com.azure.resourcemanager.horizondb.fluent.models.FirewallRuleInner":"Microsoft.HorizonDb.FirewallRule","com.azure.resourcemanager.horizondb.fluent.models.IdentityAssignmentInner":"Microsoft.HorizonDb.IdentityAssignment","com.azure.resourcemanager.horizondb.fluent.models.LogCaptureConfigurationInner":"Microsoft.HorizonDb.LogCaptureConfiguration","com.azure.resourcemanager.horizondb.fluent.models.LogFileDownloadUrlInner":"Microsoft.HorizonDb.LogFileDownloadUrl","com.azure.resourcemanager.horizondb.fluent.models.LogFileInner":"Microsoft.HorizonDb.LogFile","com.azure.resourcemanager.horizondb.fluent.models.MaintenanceEventActionResponseInner":"Microsoft.HorizonDb.MaintenanceEventActionResponse","com.azure.resourcemanager.horizondb.fluent.models.MaintenanceEventInner":"Microsoft.HorizonDb.MaintenanceEvent","com.azure.resourcemanager.horizondb.fluent.models.MicrosoftEntraAdministratorInner":"Microsoft.HorizonDb.MicrosoftEntraAdministrator","com.azure.resourcemanager.horizondb.fluent.models.MicrosoftEntraAuthenticationInner":"Microsoft.HorizonDb.MicrosoftEntraAuthentication","com.azure.resourcemanager.horizondb.fluent.models.NodeInner":"Microsoft.HorizonDb.Node","com.azure.resourcemanager.horizondb.fluent.models.OperationInner":"Azure.ResourceManager.CommonTypes.Operation","com.azure.resourcemanager.horizondb.fluent.models.ParameterGroupConnectionPropertiesInner":"Microsoft.HorizonDb.ParameterGroupConnectionProperties","com.azure.resourcemanager.horizondb.fluent.models.ParameterGroupInner":"Microsoft.HorizonDb.ParameterGroup","com.azure.resourcemanager.horizondb.fluent.models.PasswordAuthenticationInner":"Microsoft.HorizonDb.PasswordAuthentication","com.azure.resourcemanager.horizondb.fluent.models.PoolInner":"Microsoft.HorizonDb.Pool","com.azure.resourcemanager.horizondb.fluent.models.PrivateEndpointConnectionResourceInner":"Azure.ResourceManager.PrivateEndpointConnectionResource","com.azure.resourcemanager.horizondb.fluent.models.PrivateLinkResourceInner":"Microsoft.HorizonDb.PrivateLinkResource","com.azure.resourcemanager.horizondb.implementation.HorizonDbManagementClientBuilder":"Microsoft.HorizonDb","com.azure.resourcemanager.horizondb.implementation.models.AuthenticationListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.horizondb.implementation.models.CapabilityListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.horizondb.implementation.models.ChangeDataCaptureCapabilityListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.horizondb.implementation.models.ChangeDataCaptureConfigurationListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.horizondb.implementation.models.ChangeDataCaptureDestinationListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.horizondb.implementation.models.ClusterListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.horizondb.implementation.models.DefaultParameterGroupListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.horizondb.implementation.models.EndpointListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.horizondb.implementation.models.FirewallRuleListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.horizondb.implementation.models.IdentityAssignmentListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.horizondb.implementation.models.LogCaptureConfigurationListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.horizondb.implementation.models.LogFileListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.horizondb.implementation.models.MaintenanceEventListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.horizondb.implementation.models.MicrosoftEntraAdministratorListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.horizondb.implementation.models.NodeListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.horizondb.implementation.models.OperationListResult":"Azure.ResourceManager.CommonTypes.OperationListResult","com.azure.resourcemanager.horizondb.implementation.models.PagedParameterGroupConnectionProperties":"Microsoft.HorizonDb.PagedParameterGroupConnectionProperties","com.azure.resourcemanager.horizondb.implementation.models.ParameterGroupListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.horizondb.implementation.models.PoolListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.horizondb.implementation.models.PrivateEndpointConnectionResourceListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.horizondb.implementation.models.PrivateLinkResourceListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.horizondb.models.ActionType":"Azure.ResourceManager.CommonTypes.ActionType","com.azure.resourcemanager.horizondb.models.ActivateChangeDataCaptureIdentityRequest":"Microsoft.HorizonDb.ActivateChangeDataCaptureIdentityRequest","com.azure.resourcemanager.horizondb.models.AiModelManagementStatus":"Microsoft.HorizonDb.AiModelManagementStatus","com.azure.resourcemanager.horizondb.models.AuthenticationProperties":"Microsoft.HorizonDb.AuthenticationProperties","com.azure.resourcemanager.horizondb.models.AuthenticationState":"Microsoft.HorizonDb.AuthenticationState","com.azure.resourcemanager.horizondb.models.BackupProperties":"Microsoft.HorizonDb.BackupProperties","com.azure.resourcemanager.horizondb.models.BackupPropertiesForPatchUpdate":"Microsoft.HorizonDb.BackupPropertiesForPatchUpdate","com.azure.resourcemanager.horizondb.models.CapabilityProperties":"Microsoft.HorizonDb.CapabilityProperties","com.azure.resourcemanager.horizondb.models.ChangeDataCaptureCapabilityForPatchUpdate":"Microsoft.HorizonDb.ChangeDataCaptureCapabilityForPatchUpdate","com.azure.resourcemanager.horizondb.models.ChangeDataCaptureCapabilityProperties":"Microsoft.HorizonDb.ChangeDataCaptureCapabilityProperties","com.azure.resourcemanager.horizondb.models.ChangeDataCaptureCapabilityPropertiesForPatchUpdate":"Microsoft.HorizonDb.ChangeDataCaptureCapabilityPropertiesForPatchUpdate","com.azure.resourcemanager.horizondb.models.ChangeDataCaptureConfigurationForPatchUpdate":"Microsoft.HorizonDb.ChangeDataCaptureConfigurationForPatchUpdate","com.azure.resourcemanager.horizondb.models.ChangeDataCaptureConfigurationProperties":"Microsoft.HorizonDb.ChangeDataCaptureConfigurationProperties","com.azure.resourcemanager.horizondb.models.ChangeDataCaptureConfigurationPropertiesForPatchUpdate":"Microsoft.HorizonDb.ChangeDataCaptureConfigurationPropertiesForPatchUpdate","com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDesiredState":"Microsoft.HorizonDb.ChangeDataCaptureDesiredState","com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDestinationDetails":"Microsoft.HorizonDb.ChangeDataCaptureDestinationDetails","com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDestinationEffectiveState":"Microsoft.HorizonDb.ChangeDataCaptureDestinationEffectiveState","com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDestinationForPatchUpdate":"Microsoft.HorizonDb.ChangeDataCaptureDestinationForPatchUpdate","com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDestinationProperties":"Microsoft.HorizonDb.ChangeDataCaptureDestinationProperties","com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDestinationPropertiesForPatchUpdate":"Microsoft.HorizonDb.ChangeDataCaptureDestinationPropertiesForPatchUpdate","com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDestinationType":"Microsoft.HorizonDb.ChangeDataCaptureDestinationType","com.azure.resourcemanager.horizondb.models.ChangeDataCaptureEffectiveState":"Microsoft.HorizonDb.ChangeDataCaptureEffectiveState","com.azure.resourcemanager.horizondb.models.ChangeDataCaptureEngineConfigurationState":"Microsoft.HorizonDb.ChangeDataCaptureEngineConfigurationState","com.azure.resourcemanager.horizondb.models.ChangeDataCaptureExtensionState":"Microsoft.HorizonDb.ChangeDataCaptureExtensionState","com.azure.resourcemanager.horizondb.models.ChangeDataCaptureExtensionStatus":"Microsoft.HorizonDb.ChangeDataCaptureExtensionStatus","com.azure.resourcemanager.horizondb.models.ChangeDataCaptureIdentityActivationState":"Microsoft.HorizonDb.ChangeDataCaptureIdentityActivationState","com.azure.resourcemanager.horizondb.models.ChangeDataCaptureIdentityAssignmentProperties":"Microsoft.HorizonDb.ChangeDataCaptureIdentityAssignmentProperties","com.azure.resourcemanager.horizondb.models.ChangeDataCaptureIdentityAssignmentState":"Microsoft.HorizonDb.ChangeDataCaptureIdentityAssignmentState","com.azure.resourcemanager.horizondb.models.ChangeDataCaptureIdentityValidationState":"Microsoft.HorizonDb.ChangeDataCaptureIdentityValidationState","com.azure.resourcemanager.horizondb.models.ChangeDataCapturePrerequisiteStatus":"Microsoft.HorizonDb.ChangeDataCapturePrerequisiteStatus","com.azure.resourcemanager.horizondb.models.ChangeDataCaptureProtocol":"Microsoft.HorizonDb.ChangeDataCaptureProtocol","com.azure.resourcemanager.horizondb.models.ChangeDataCaptureReadWriteEndpointState":"Microsoft.HorizonDb.ChangeDataCaptureReadWriteEndpointState","com.azure.resourcemanager.horizondb.models.ChangeDataCaptureReplicationArchitecture":"Microsoft.HorizonDb.ChangeDataCaptureReplicationArchitecture","com.azure.resourcemanager.horizondb.models.ChangeDataCaptureReplicationState":"Microsoft.HorizonDb.ChangeDataCaptureReplicationState","com.azure.resourcemanager.horizondb.models.ChangeDataCaptureReplicationStatus":"Microsoft.HorizonDb.ChangeDataCaptureReplicationStatus","com.azure.resourcemanager.horizondb.models.ChangeDataCaptureStatus":"Microsoft.HorizonDb.ChangeDataCaptureStatus","com.azure.resourcemanager.horizondb.models.ChangeDataCaptureTopologyBindingState":"Microsoft.HorizonDb.ChangeDataCaptureTopologyBindingState","com.azure.resourcemanager.horizondb.models.ChangeDataCaptureTopologyBindingStatus":"Microsoft.HorizonDb.ChangeDataCaptureTopologyBindingStatus","com.azure.resourcemanager.horizondb.models.ChangeDataCaptureUsageProfile":"Microsoft.HorizonDb.ChangeDataCaptureUsageProfile","com.azure.resourcemanager.horizondb.models.ClusterCapability":"Microsoft.HorizonDb.ClusterCapability","com.azure.resourcemanager.horizondb.models.ClusterCreateMode":"Microsoft.HorizonDb.ClusterCreateMode","com.azure.resourcemanager.horizondb.models.ClusterFeatureCapability":"Microsoft.HorizonDb.ClusterFeatureCapability","com.azure.resourcemanager.horizondb.models.ClusterForPatchUpdate":"Microsoft.HorizonDb.ClusterForPatchUpdate","com.azure.resourcemanager.horizondb.models.ClusterProperties":"Microsoft.HorizonDb.ClusterProperties","com.azure.resourcemanager.horizondb.models.ClusterPropertiesForPatchUpdate":"Microsoft.HorizonDb.ClusterPropertiesForPatchUpdate","com.azure.resourcemanager.horizondb.models.ClusterState":"Microsoft.HorizonDb.ClusterState","com.azure.resourcemanager.horizondb.models.ComputeGenerationCapability":"Microsoft.HorizonDb.ComputeGenerationCapability","com.azure.resourcemanager.horizondb.models.ComputeModelCapability":"Microsoft.HorizonDb.ComputeModelCapability","com.azure.resourcemanager.horizondb.models.ComputeProcessorCapability":"Microsoft.HorizonDb.ComputeProcessorCapability","com.azure.resourcemanager.horizondb.models.ComputeProcessorType":"Microsoft.HorizonDb.ComputeProcessorType","com.azure.resourcemanager.horizondb.models.ComputeSizeCapability":"Microsoft.HorizonDb.ComputeSizeCapability","com.azure.resourcemanager.horizondb.models.DefaultParameterGroupProperties":"Microsoft.HorizonDb.DefaultParameterGroupProperties","com.azure.resourcemanager.horizondb.models.EndpointProperties":"Microsoft.HorizonDb.EndpointProperties","com.azure.resourcemanager.horizondb.models.EndpointRole":"Microsoft.HorizonDb.EndpointRole","com.azure.resourcemanager.horizondb.models.EndpointScope":"Microsoft.HorizonDb.EndpointScope","com.azure.resourcemanager.horizondb.models.FabricDestinationDetails":"Microsoft.HorizonDb.FabricDestinationDetails","com.azure.resourcemanager.horizondb.models.FirewallRuleProperties":"Microsoft.HorizonDb.FirewallRuleProperties","com.azure.resourcemanager.horizondb.models.GeoRedundancyState":"Microsoft.HorizonDb.GeoRedundancyState","com.azure.resourcemanager.horizondb.models.HorizonDbClusterDataEncryption":"Microsoft.HorizonDb.HorizonDbClusterDataEncryption","com.azure.resourcemanager.horizondb.models.HorizonDbClusterDataEncryptionForPatchUpdate":"Microsoft.HorizonDb.HorizonDbClusterDataEncryptionForPatchUpdate","com.azure.resourcemanager.horizondb.models.HorizonDbClusterDataEncryptionType":"Microsoft.HorizonDb.HorizonDbClusterDataEncryptionType","com.azure.resourcemanager.horizondb.models.HorizonDbClusterEncryptionKeyStatus":"Microsoft.HorizonDb.HorizonDbClusterEncryptionKeyStatus","com.azure.resourcemanager.horizondb.models.HorizonDbClusterIdentityType":"Microsoft.HorizonDb.HorizonDbClusterIdentityType","com.azure.resourcemanager.horizondb.models.HorizonDbClusterManagedServiceIdentity":"Microsoft.HorizonDb.HorizonDbClusterManagedServiceIdentity","com.azure.resourcemanager.horizondb.models.IdentityValidationStatus":"Microsoft.HorizonDb.IdentityValidationStatus","com.azure.resourcemanager.horizondb.models.LogCaptureConfigurationForPatchUpdate":"Microsoft.HorizonDb.LogCaptureConfigurationForPatchUpdate","com.azure.resourcemanager.horizondb.models.LogCaptureConfigurationProperties":"Microsoft.HorizonDb.LogCaptureConfigurationProperties","com.azure.resourcemanager.horizondb.models.LogCaptureConfigurationPropertiesForPatchUpdate":"Microsoft.HorizonDb.LogCaptureConfigurationPropertiesForPatchUpdate","com.azure.resourcemanager.horizondb.models.LogCaptureState":"Microsoft.HorizonDb.LogCaptureState","com.azure.resourcemanager.horizondb.models.LogFileProperties":"Microsoft.HorizonDb.LogFileProperties","com.azure.resourcemanager.horizondb.models.LogFileType":"Microsoft.HorizonDb.LogFileType","com.azure.resourcemanager.horizondb.models.MaintenanceEventProperties":"Microsoft.HorizonDb.MaintenanceEventProperties","com.azure.resourcemanager.horizondb.models.MaintenanceEventRescheduleRequest":"Microsoft.HorizonDb.MaintenanceEventRescheduleRequest","com.azure.resourcemanager.horizondb.models.MaintenanceEventStatus":"Microsoft.HorizonDb.MaintenanceEventStatus","com.azure.resourcemanager.horizondb.models.MaintenanceType":"Microsoft.HorizonDb.MaintenanceType","com.azure.resourcemanager.horizondb.models.MicrosoftEntraAdministratorAdd":"Microsoft.HorizonDb.MicrosoftEntraAdministratorAdd","com.azure.resourcemanager.horizondb.models.MicrosoftEntraAdministratorProperties":"Microsoft.HorizonDb.MicrosoftEntraAdministratorProperties","com.azure.resourcemanager.horizondb.models.MicrosoftEntraAdministratorPropertiesForAdd":"Microsoft.HorizonDb.MicrosoftEntraAdministratorPropertiesForAdd","com.azure.resourcemanager.horizondb.models.MicrosoftEntraAuthenticationForPatchUpdate":"Microsoft.HorizonDb.MicrosoftEntraAuthenticationForPatchUpdate","com.azure.resourcemanager.horizondb.models.MicrosoftEntraAuthenticationProperties":"Microsoft.HorizonDb.MicrosoftEntraAuthenticationProperties","com.azure.resourcemanager.horizondb.models.MicrosoftEntraAuthenticationPropertiesForPatchUpdate":"Microsoft.HorizonDb.MicrosoftEntraAuthenticationPropertiesForPatchUpdate","com.azure.resourcemanager.horizondb.models.Network":"Microsoft.HorizonDb.Network","com.azure.resourcemanager.horizondb.models.NetworkForPatchUpdate":"Microsoft.HorizonDb.NetworkForPatchUpdate","com.azure.resourcemanager.horizondb.models.NodeProperties":"Microsoft.HorizonDb.NodeProperties","com.azure.resourcemanager.horizondb.models.NodeRole":"Microsoft.HorizonDb.NodeRole","com.azure.resourcemanager.horizondb.models.OperationDisplay":"Azure.ResourceManager.CommonTypes.OperationDisplay","com.azure.resourcemanager.horizondb.models.Origin":"Azure.ResourceManager.CommonTypes.Origin","com.azure.resourcemanager.horizondb.models.ParameterApplyMethod":"Microsoft.HorizonDb.ParameterApplyMethod","com.azure.resourcemanager.horizondb.models.ParameterGroupForPatchUpdate":"Microsoft.HorizonDb.ParameterGroupForPatchUpdate","com.azure.resourcemanager.horizondb.models.ParameterGroupProperties":"Microsoft.HorizonDb.ParameterGroupProperties","com.azure.resourcemanager.horizondb.models.ParameterGroupPropertiesForPatchUpdate":"Microsoft.HorizonDb.ParameterGroupPropertiesForPatchUpdate","com.azure.resourcemanager.horizondb.models.ParameterGroupSyncStatus":"Microsoft.HorizonDb.ParameterGroupSyncStatus","com.azure.resourcemanager.horizondb.models.ParameterProperties":"Microsoft.HorizonDb.ParameterProperties","com.azure.resourcemanager.horizondb.models.ParameterValueSource":"Microsoft.HorizonDb.ParameterValueSource","com.azure.resourcemanager.horizondb.models.PasswordAuthenticationForPatchUpdate":"Microsoft.HorizonDb.PasswordAuthenticationForPatchUpdate","com.azure.resourcemanager.horizondb.models.PasswordAuthenticationProperties":"Microsoft.HorizonDb.PasswordAuthenticationProperties","com.azure.resourcemanager.horizondb.models.PasswordAuthenticationPropertiesForPatchUpdate":"Microsoft.HorizonDb.PasswordAuthenticationPropertiesForPatchUpdate","com.azure.resourcemanager.horizondb.models.PoolCapability":"Microsoft.HorizonDb.PoolCapability","com.azure.resourcemanager.horizondb.models.PoolComputeModel":"Microsoft.HorizonDb.PoolComputeModel","com.azure.resourcemanager.horizondb.models.PoolComputeModelForPatchUpdate":"Microsoft.HorizonDb.PoolComputeModelForPatchUpdate","com.azure.resourcemanager.horizondb.models.PoolComputeModelType":"Microsoft.HorizonDb.PoolComputeModelType","com.azure.resourcemanager.horizondb.models.PoolFeatureCapability":"Microsoft.HorizonDb.PoolFeatureCapability","com.azure.resourcemanager.horizondb.models.PoolForPatchUpdate":"Microsoft.HorizonDb.PoolForPatchUpdate","com.azure.resourcemanager.horizondb.models.PoolHighAvailability":"Microsoft.HorizonDb.PoolHighAvailability","com.azure.resourcemanager.horizondb.models.PoolHighAvailabilityMode":"Microsoft.HorizonDb.PoolHighAvailabilityMode","com.azure.resourcemanager.horizondb.models.PoolHighAvailabilityPatch":"Microsoft.HorizonDb.PoolHighAvailabilityPatch","com.azure.resourcemanager.horizondb.models.PoolParameterGroupReference":"Microsoft.HorizonDb.PoolParameterGroupReference","com.azure.resourcemanager.horizondb.models.PoolParameterGroupReferenceForPatchUpdate":"Microsoft.HorizonDb.PoolParameterGroupReferenceForPatchUpdate","com.azure.resourcemanager.horizondb.models.PoolProperties":"Microsoft.HorizonDb.PoolProperties","com.azure.resourcemanager.horizondb.models.PoolPropertiesForPatchUpdate":"Microsoft.HorizonDb.PoolPropertiesForPatchUpdate","com.azure.resourcemanager.horizondb.models.PoolState":"Microsoft.HorizonDb.PoolState","com.azure.resourcemanager.horizondb.models.PostgreSqlCapabilityVersion":"Microsoft.HorizonDb.PostgreSqlCapabilityVersion","com.azure.resourcemanager.horizondb.models.PostgreSqlVersion":"Microsoft.HorizonDb.PostgreSqlVersion","com.azure.resourcemanager.horizondb.models.PostgreSqlVersionCapability":"Microsoft.HorizonDb.PostgreSqlVersionCapability","com.azure.resourcemanager.horizondb.models.PrincipalTypes":"Microsoft.HorizonDb.PrincipalTypes","com.azure.resourcemanager.horizondb.models.PrivateEndpoint":"Azure.ResourceManager.CommonTypes.PrivateEndpoint","com.azure.resourcemanager.horizondb.models.PrivateEndpointConnectionProperties":"Azure.ResourceManager.CommonTypes.PrivateEndpointConnectionProperties","com.azure.resourcemanager.horizondb.models.PrivateEndpointConnectionProvisioningState":"Azure.ResourceManager.CommonTypes.PrivateEndpointConnectionProvisioningState","com.azure.resourcemanager.horizondb.models.PrivateEndpointServiceConnectionStatus":"Azure.ResourceManager.CommonTypes.PrivateEndpointServiceConnectionStatus","com.azure.resourcemanager.horizondb.models.PrivateLinkResourceProperties":"Azure.ResourceManager.CommonTypes.PrivateLinkResourceProperties","com.azure.resourcemanager.horizondb.models.PrivateLinkServiceConnectionState":"Azure.ResourceManager.CommonTypes.PrivateLinkServiceConnectionState","com.azure.resourcemanager.horizondb.models.ProvisionedComputeModelCapability":"Microsoft.HorizonDb.ProvisionedComputeModelCapability","com.azure.resourcemanager.horizondb.models.ProvisioningState":"Microsoft.HorizonDb.ProvisioningState","com.azure.resourcemanager.horizondb.models.PublicNetworkAccessState":"Microsoft.HorizonDb.PublicNetworkAccessState","com.azure.resourcemanager.horizondb.models.ReadWritePoolProperties":"Microsoft.HorizonDb.ReadWritePoolProperties","com.azure.resourcemanager.horizondb.models.ScheduledMaintenanceManagementType":"Microsoft.HorizonDb.ScheduledMaintenanceManagementType","com.azure.resourcemanager.horizondb.models.ScheduledMaintenanceProperties":"Microsoft.HorizonDb.ScheduledMaintenanceProperties","com.azure.resourcemanager.horizondb.models.ScheduledMaintenancePropertiesForPatchUpdate":"Microsoft.HorizonDb.ScheduledMaintenancePropertiesForPatchUpdate","com.azure.resourcemanager.horizondb.models.SystemScheduledMaintenanceProperties":"Microsoft.HorizonDb.SystemScheduledMaintenanceProperties","com.azure.resourcemanager.horizondb.models.UserAssignedIdentity":"Azure.ResourceManager.CommonTypes.UserAssignedIdentity"},"generatedFiles":["src/main/java/com/azure/resourcemanager/horizondb/HorizonDbManager.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/AuthenticationsClient.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/CapabilitiesClient.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/ChangeDataCaptureCapabilitiesClient.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/ChangeDataCaptureConfigurationsClient.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/ChangeDataCaptureDestinationsClient.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/ClustersClient.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/DefaultParameterGroupsClient.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/EndpointsClient.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/FirewallRulesClient.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/HorizonDbManagementClient.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/IdentityAssignmentsClient.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/LogCaptureConfigurationsClient.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/LogFilesClient.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/MaintenanceEventsClient.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/MicrosoftEntraAdministratorsClient.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/MicrosoftEntraAuthenticationsClient.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/NodesClient.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/ParameterGroupsClient.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/PasswordAuthenticationsClient.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/PoolsClient.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/PrivateEndpointConnectionsClient.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/PrivateLinkResourcesClient.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/models/ActivateChangeDataCaptureIdentityResultInner.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/models/AuthenticationInner.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/models/CapabilityInner.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/models/ChangeDataCaptureCapabilityInner.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/models/ChangeDataCaptureConfigurationInner.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/models/ChangeDataCaptureDestinationInner.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/models/ClusterInner.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/models/DefaultParameterGroupInner.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/models/EndpointInner.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/models/FirewallRuleInner.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/models/IdentityAssignmentInner.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/models/LogCaptureConfigurationInner.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/models/LogFileDownloadUrlInner.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/models/LogFileInner.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/models/MaintenanceEventActionResponseInner.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/models/MaintenanceEventInner.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/models/MicrosoftEntraAdministratorInner.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/models/MicrosoftEntraAuthenticationInner.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/models/NodeInner.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/models/ParameterGroupConnectionPropertiesInner.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/models/ParameterGroupInner.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/models/PasswordAuthenticationInner.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/models/PoolInner.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/models/PrivateEndpointConnectionResourceInner.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/models/PrivateLinkResourceInner.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/horizondb/fluent/package-info.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/ActivateChangeDataCaptureIdentityResultImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/AuthenticationImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/AuthenticationsClientImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/AuthenticationsImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/CapabilitiesClientImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/CapabilitiesImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/CapabilityImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureCapabilitiesClientImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureCapabilitiesImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureCapabilityImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureConfigurationImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureConfigurationsClientImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureConfigurationsImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureDestinationImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureDestinationsClientImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/ChangeDataCaptureDestinationsImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/ClusterImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/ClustersClientImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/ClustersImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/DefaultParameterGroupImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/DefaultParameterGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/DefaultParameterGroupsImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/EndpointImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/EndpointsClientImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/EndpointsImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/FirewallRuleImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/FirewallRulesClientImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/FirewallRulesImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/HorizonDbManagementClientImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/IdentityAssignmentImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/IdentityAssignmentsClientImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/IdentityAssignmentsImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/LogCaptureConfigurationImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/LogCaptureConfigurationsClientImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/LogCaptureConfigurationsImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/LogFileDownloadUrlImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/LogFileImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/LogFilesClientImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/LogFilesImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/MaintenanceEventActionResponseImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/MaintenanceEventImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/MaintenanceEventsClientImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/MaintenanceEventsImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/MicrosoftEntraAdministratorImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/MicrosoftEntraAdministratorsClientImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/MicrosoftEntraAdministratorsImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/MicrosoftEntraAuthenticationImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/MicrosoftEntraAuthenticationsClientImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/MicrosoftEntraAuthenticationsImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/NodeImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/NodesClientImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/NodesImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/OperationImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/ParameterGroupConnectionPropertiesImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/ParameterGroupImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/ParameterGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/ParameterGroupsImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/PasswordAuthenticationImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/PasswordAuthenticationsClientImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/PasswordAuthenticationsImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/PoolImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/PoolsClientImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/PoolsImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/PrivateEndpointConnectionResourceImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/PrivateEndpointConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/PrivateEndpointConnectionsImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/PrivateLinkResourceImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/PrivateLinkResourcesClientImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/PrivateLinkResourcesImpl.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/models/AuthenticationListResult.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/models/CapabilityListResult.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/models/ChangeDataCaptureCapabilityListResult.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/models/ChangeDataCaptureConfigurationListResult.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/models/ChangeDataCaptureDestinationListResult.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/models/ClusterListResult.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/models/DefaultParameterGroupListResult.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/models/EndpointListResult.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/models/FirewallRuleListResult.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/models/IdentityAssignmentListResult.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/models/LogCaptureConfigurationListResult.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/models/LogFileListResult.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/models/MaintenanceEventListResult.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/models/MicrosoftEntraAdministratorListResult.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/models/NodeListResult.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/models/PagedParameterGroupConnectionProperties.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/models/ParameterGroupListResult.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/models/PoolListResult.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/models/PrivateEndpointConnectionResourceListResult.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/models/PrivateLinkResourceListResult.java","src/main/java/com/azure/resourcemanager/horizondb/implementation/package-info.java","src/main/java/com/azure/resourcemanager/horizondb/models/ActionType.java","src/main/java/com/azure/resourcemanager/horizondb/models/ActivateChangeDataCaptureIdentityRequest.java","src/main/java/com/azure/resourcemanager/horizondb/models/ActivateChangeDataCaptureIdentityResult.java","src/main/java/com/azure/resourcemanager/horizondb/models/AiModelManagementStatus.java","src/main/java/com/azure/resourcemanager/horizondb/models/Authentication.java","src/main/java/com/azure/resourcemanager/horizondb/models/AuthenticationProperties.java","src/main/java/com/azure/resourcemanager/horizondb/models/AuthenticationState.java","src/main/java/com/azure/resourcemanager/horizondb/models/Authentications.java","src/main/java/com/azure/resourcemanager/horizondb/models/BackupProperties.java","src/main/java/com/azure/resourcemanager/horizondb/models/BackupPropertiesForPatchUpdate.java","src/main/java/com/azure/resourcemanager/horizondb/models/Capabilities.java","src/main/java/com/azure/resourcemanager/horizondb/models/Capability.java","src/main/java/com/azure/resourcemanager/horizondb/models/CapabilityProperties.java","src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureCapabilities.java","src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureCapability.java","src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureCapabilityForPatchUpdate.java","src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureCapabilityProperties.java","src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureCapabilityPropertiesForPatchUpdate.java","src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureConfiguration.java","src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureConfigurationForPatchUpdate.java","src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureConfigurationProperties.java","src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureConfigurationPropertiesForPatchUpdate.java","src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureConfigurations.java","src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDesiredState.java","src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestination.java","src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestinationDetails.java","src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestinationEffectiveState.java","src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestinationForPatchUpdate.java","src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestinationProperties.java","src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestinationPropertiesForPatchUpdate.java","src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestinationType.java","src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureDestinations.java","src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureEffectiveState.java","src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureEngineConfigurationState.java","src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureExtensionState.java","src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureExtensionStatus.java","src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureIdentityActivationState.java","src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureIdentityAssignmentProperties.java","src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureIdentityAssignmentState.java","src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureIdentityValidationState.java","src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCapturePrerequisiteStatus.java","src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureProtocol.java","src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureReadWriteEndpointState.java","src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureReplicationArchitecture.java","src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureReplicationState.java","src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureReplicationStatus.java","src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureStatus.java","src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureTopologyBindingState.java","src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureTopologyBindingStatus.java","src/main/java/com/azure/resourcemanager/horizondb/models/ChangeDataCaptureUsageProfile.java","src/main/java/com/azure/resourcemanager/horizondb/models/Cluster.java","src/main/java/com/azure/resourcemanager/horizondb/models/ClusterCapability.java","src/main/java/com/azure/resourcemanager/horizondb/models/ClusterCreateMode.java","src/main/java/com/azure/resourcemanager/horizondb/models/ClusterFeatureCapability.java","src/main/java/com/azure/resourcemanager/horizondb/models/ClusterForPatchUpdate.java","src/main/java/com/azure/resourcemanager/horizondb/models/ClusterProperties.java","src/main/java/com/azure/resourcemanager/horizondb/models/ClusterPropertiesForPatchUpdate.java","src/main/java/com/azure/resourcemanager/horizondb/models/ClusterState.java","src/main/java/com/azure/resourcemanager/horizondb/models/Clusters.java","src/main/java/com/azure/resourcemanager/horizondb/models/ComputeGenerationCapability.java","src/main/java/com/azure/resourcemanager/horizondb/models/ComputeModelCapability.java","src/main/java/com/azure/resourcemanager/horizondb/models/ComputeProcessorCapability.java","src/main/java/com/azure/resourcemanager/horizondb/models/ComputeProcessorType.java","src/main/java/com/azure/resourcemanager/horizondb/models/ComputeSizeCapability.java","src/main/java/com/azure/resourcemanager/horizondb/models/DefaultParameterGroup.java","src/main/java/com/azure/resourcemanager/horizondb/models/DefaultParameterGroupProperties.java","src/main/java/com/azure/resourcemanager/horizondb/models/DefaultParameterGroups.java","src/main/java/com/azure/resourcemanager/horizondb/models/Endpoint.java","src/main/java/com/azure/resourcemanager/horizondb/models/EndpointProperties.java","src/main/java/com/azure/resourcemanager/horizondb/models/EndpointRole.java","src/main/java/com/azure/resourcemanager/horizondb/models/EndpointScope.java","src/main/java/com/azure/resourcemanager/horizondb/models/Endpoints.java","src/main/java/com/azure/resourcemanager/horizondb/models/FabricDestinationDetails.java","src/main/java/com/azure/resourcemanager/horizondb/models/FirewallRule.java","src/main/java/com/azure/resourcemanager/horizondb/models/FirewallRuleProperties.java","src/main/java/com/azure/resourcemanager/horizondb/models/FirewallRules.java","src/main/java/com/azure/resourcemanager/horizondb/models/GeoRedundancyState.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterDataEncryption.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterDataEncryptionForPatchUpdate.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterDataEncryptionType.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterEncryptionKeyStatus.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterIdentityType.java","src/main/java/com/azure/resourcemanager/horizondb/models/HorizonDbClusterManagedServiceIdentity.java","src/main/java/com/azure/resourcemanager/horizondb/models/IdentityAssignment.java","src/main/java/com/azure/resourcemanager/horizondb/models/IdentityAssignments.java","src/main/java/com/azure/resourcemanager/horizondb/models/IdentityValidationStatus.java","src/main/java/com/azure/resourcemanager/horizondb/models/LogCaptureConfiguration.java","src/main/java/com/azure/resourcemanager/horizondb/models/LogCaptureConfigurationForPatchUpdate.java","src/main/java/com/azure/resourcemanager/horizondb/models/LogCaptureConfigurationProperties.java","src/main/java/com/azure/resourcemanager/horizondb/models/LogCaptureConfigurationPropertiesForPatchUpdate.java","src/main/java/com/azure/resourcemanager/horizondb/models/LogCaptureConfigurations.java","src/main/java/com/azure/resourcemanager/horizondb/models/LogCaptureState.java","src/main/java/com/azure/resourcemanager/horizondb/models/LogFile.java","src/main/java/com/azure/resourcemanager/horizondb/models/LogFileDownloadUrl.java","src/main/java/com/azure/resourcemanager/horizondb/models/LogFileProperties.java","src/main/java/com/azure/resourcemanager/horizondb/models/LogFileType.java","src/main/java/com/azure/resourcemanager/horizondb/models/LogFiles.java","src/main/java/com/azure/resourcemanager/horizondb/models/MaintenanceEvent.java","src/main/java/com/azure/resourcemanager/horizondb/models/MaintenanceEventActionResponse.java","src/main/java/com/azure/resourcemanager/horizondb/models/MaintenanceEventProperties.java","src/main/java/com/azure/resourcemanager/horizondb/models/MaintenanceEventRescheduleRequest.java","src/main/java/com/azure/resourcemanager/horizondb/models/MaintenanceEventStatus.java","src/main/java/com/azure/resourcemanager/horizondb/models/MaintenanceEvents.java","src/main/java/com/azure/resourcemanager/horizondb/models/MaintenanceType.java","src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAdministrator.java","src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAdministratorAdd.java","src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAdministratorProperties.java","src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAdministratorPropertiesForAdd.java","src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAdministrators.java","src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAuthentication.java","src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAuthenticationForPatchUpdate.java","src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAuthenticationProperties.java","src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAuthenticationPropertiesForPatchUpdate.java","src/main/java/com/azure/resourcemanager/horizondb/models/MicrosoftEntraAuthentications.java","src/main/java/com/azure/resourcemanager/horizondb/models/Network.java","src/main/java/com/azure/resourcemanager/horizondb/models/NetworkForPatchUpdate.java","src/main/java/com/azure/resourcemanager/horizondb/models/Node.java","src/main/java/com/azure/resourcemanager/horizondb/models/NodeProperties.java","src/main/java/com/azure/resourcemanager/horizondb/models/NodeRole.java","src/main/java/com/azure/resourcemanager/horizondb/models/Nodes.java","src/main/java/com/azure/resourcemanager/horizondb/models/Operation.java","src/main/java/com/azure/resourcemanager/horizondb/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/horizondb/models/Operations.java","src/main/java/com/azure/resourcemanager/horizondb/models/Origin.java","src/main/java/com/azure/resourcemanager/horizondb/models/ParameterApplyMethod.java","src/main/java/com/azure/resourcemanager/horizondb/models/ParameterGroup.java","src/main/java/com/azure/resourcemanager/horizondb/models/ParameterGroupConnectionProperties.java","src/main/java/com/azure/resourcemanager/horizondb/models/ParameterGroupForPatchUpdate.java","src/main/java/com/azure/resourcemanager/horizondb/models/ParameterGroupProperties.java","src/main/java/com/azure/resourcemanager/horizondb/models/ParameterGroupPropertiesForPatchUpdate.java","src/main/java/com/azure/resourcemanager/horizondb/models/ParameterGroupSyncStatus.java","src/main/java/com/azure/resourcemanager/horizondb/models/ParameterGroups.java","src/main/java/com/azure/resourcemanager/horizondb/models/ParameterProperties.java","src/main/java/com/azure/resourcemanager/horizondb/models/ParameterValueSource.java","src/main/java/com/azure/resourcemanager/horizondb/models/PasswordAuthentication.java","src/main/java/com/azure/resourcemanager/horizondb/models/PasswordAuthenticationForPatchUpdate.java","src/main/java/com/azure/resourcemanager/horizondb/models/PasswordAuthenticationProperties.java","src/main/java/com/azure/resourcemanager/horizondb/models/PasswordAuthenticationPropertiesForPatchUpdate.java","src/main/java/com/azure/resourcemanager/horizondb/models/PasswordAuthentications.java","src/main/java/com/azure/resourcemanager/horizondb/models/Pool.java","src/main/java/com/azure/resourcemanager/horizondb/models/PoolCapability.java","src/main/java/com/azure/resourcemanager/horizondb/models/PoolComputeModel.java","src/main/java/com/azure/resourcemanager/horizondb/models/PoolComputeModelForPatchUpdate.java","src/main/java/com/azure/resourcemanager/horizondb/models/PoolComputeModelType.java","src/main/java/com/azure/resourcemanager/horizondb/models/PoolFeatureCapability.java","src/main/java/com/azure/resourcemanager/horizondb/models/PoolForPatchUpdate.java","src/main/java/com/azure/resourcemanager/horizondb/models/PoolHighAvailability.java","src/main/java/com/azure/resourcemanager/horizondb/models/PoolHighAvailabilityMode.java","src/main/java/com/azure/resourcemanager/horizondb/models/PoolHighAvailabilityPatch.java","src/main/java/com/azure/resourcemanager/horizondb/models/PoolParameterGroupReference.java","src/main/java/com/azure/resourcemanager/horizondb/models/PoolParameterGroupReferenceForPatchUpdate.java","src/main/java/com/azure/resourcemanager/horizondb/models/PoolProperties.java","src/main/java/com/azure/resourcemanager/horizondb/models/PoolPropertiesForPatchUpdate.java","src/main/java/com/azure/resourcemanager/horizondb/models/PoolState.java","src/main/java/com/azure/resourcemanager/horizondb/models/Pools.java","src/main/java/com/azure/resourcemanager/horizondb/models/PostgreSqlCapabilityVersion.java","src/main/java/com/azure/resourcemanager/horizondb/models/PostgreSqlVersion.java","src/main/java/com/azure/resourcemanager/horizondb/models/PostgreSqlVersionCapability.java","src/main/java/com/azure/resourcemanager/horizondb/models/PrincipalTypes.java","src/main/java/com/azure/resourcemanager/horizondb/models/PrivateEndpoint.java","src/main/java/com/azure/resourcemanager/horizondb/models/PrivateEndpointConnectionProperties.java","src/main/java/com/azure/resourcemanager/horizondb/models/PrivateEndpointConnectionProvisioningState.java","src/main/java/com/azure/resourcemanager/horizondb/models/PrivateEndpointConnectionResource.java","src/main/java/com/azure/resourcemanager/horizondb/models/PrivateEndpointConnections.java","src/main/java/com/azure/resourcemanager/horizondb/models/PrivateEndpointServiceConnectionStatus.java","src/main/java/com/azure/resourcemanager/horizondb/models/PrivateLinkResource.java","src/main/java/com/azure/resourcemanager/horizondb/models/PrivateLinkResourceProperties.java","src/main/java/com/azure/resourcemanager/horizondb/models/PrivateLinkResources.java","src/main/java/com/azure/resourcemanager/horizondb/models/PrivateLinkServiceConnectionState.java","src/main/java/com/azure/resourcemanager/horizondb/models/ProvisionedComputeModelCapability.java","src/main/java/com/azure/resourcemanager/horizondb/models/ProvisioningState.java","src/main/java/com/azure/resourcemanager/horizondb/models/PublicNetworkAccessState.java","src/main/java/com/azure/resourcemanager/horizondb/models/ReadWritePoolProperties.java","src/main/java/com/azure/resourcemanager/horizondb/models/ScheduledMaintenanceManagementType.java","src/main/java/com/azure/resourcemanager/horizondb/models/ScheduledMaintenanceProperties.java","src/main/java/com/azure/resourcemanager/horizondb/models/ScheduledMaintenancePropertiesForPatchUpdate.java","src/main/java/com/azure/resourcemanager/horizondb/models/SystemScheduledMaintenanceProperties.java","src/main/java/com/azure/resourcemanager/horizondb/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/horizondb/models/package-info.java","src/main/java/com/azure/resourcemanager/horizondb/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-horizondb/proxy-config.json b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-horizondb/proxy-config.json index 6b2f0ad0eeef8..6015050adf88a 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-horizondb/proxy-config.json +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-horizondb/proxy-config.json @@ -1 +1 @@ -[["com.azure.resourcemanager.horizondb.implementation.HorizonDbAdministratorsClientImpl$HorizonDbAdministratorsService"],["com.azure.resourcemanager.horizondb.implementation.HorizonDbClustersClientImpl$HorizonDbClustersService"],["com.azure.resourcemanager.horizondb.implementation.HorizonDbFirewallRulesClientImpl$HorizonDbFirewallRulesService"],["com.azure.resourcemanager.horizondb.implementation.HorizonDbParameterGroupsClientImpl$HorizonDbParameterGroupsService"],["com.azure.resourcemanager.horizondb.implementation.HorizonDbPoolsClientImpl$HorizonDbPoolsService"],["com.azure.resourcemanager.horizondb.implementation.HorizonDbPrivateEndpointConnectionsClientImpl$HorizonDbPrivateEndpointConnectionsService"],["com.azure.resourcemanager.horizondb.implementation.HorizonDbPrivateLinkResourcesClientImpl$HorizonDbPrivateLinkResourcesService"],["com.azure.resourcemanager.horizondb.implementation.HorizonDbReplicasClientImpl$HorizonDbReplicasService"],["com.azure.resourcemanager.horizondb.implementation.OperationsClientImpl$OperationsService"]] \ No newline at end of file +[["com.azure.resourcemanager.horizondb.implementation.AuthenticationsClientImpl$AuthenticationsService"],["com.azure.resourcemanager.horizondb.implementation.CapabilitiesClientImpl$CapabilitiesService"],["com.azure.resourcemanager.horizondb.implementation.ChangeDataCaptureCapabilitiesClientImpl$ChangeDataCaptureCapabilitiesService"],["com.azure.resourcemanager.horizondb.implementation.ChangeDataCaptureConfigurationsClientImpl$ChangeDataCaptureConfigurationsService"],["com.azure.resourcemanager.horizondb.implementation.ChangeDataCaptureDestinationsClientImpl$ChangeDataCaptureDestinationsService"],["com.azure.resourcemanager.horizondb.implementation.ClustersClientImpl$ClustersService"],["com.azure.resourcemanager.horizondb.implementation.DefaultParameterGroupsClientImpl$DefaultParameterGroupsService"],["com.azure.resourcemanager.horizondb.implementation.EndpointsClientImpl$EndpointsService"],["com.azure.resourcemanager.horizondb.implementation.FirewallRulesClientImpl$FirewallRulesService"],["com.azure.resourcemanager.horizondb.implementation.IdentityAssignmentsClientImpl$IdentityAssignmentsService"],["com.azure.resourcemanager.horizondb.implementation.LogCaptureConfigurationsClientImpl$LogCaptureConfigurationsService"],["com.azure.resourcemanager.horizondb.implementation.LogFilesClientImpl$LogFilesService"],["com.azure.resourcemanager.horizondb.implementation.MaintenanceEventsClientImpl$MaintenanceEventsService"],["com.azure.resourcemanager.horizondb.implementation.MicrosoftEntraAdministratorsClientImpl$MicrosoftEntraAdministratorsService"],["com.azure.resourcemanager.horizondb.implementation.MicrosoftEntraAuthenticationsClientImpl$MicrosoftEntraAuthenticationsService"],["com.azure.resourcemanager.horizondb.implementation.NodesClientImpl$NodesService"],["com.azure.resourcemanager.horizondb.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.horizondb.implementation.ParameterGroupsClientImpl$ParameterGroupsService"],["com.azure.resourcemanager.horizondb.implementation.PasswordAuthenticationsClientImpl$PasswordAuthenticationsService"],["com.azure.resourcemanager.horizondb.implementation.PoolsClientImpl$PoolsService"],["com.azure.resourcemanager.horizondb.implementation.PrivateEndpointConnectionsClientImpl$PrivateEndpointConnectionsService"],["com.azure.resourcemanager.horizondb.implementation.PrivateLinkResourcesClientImpl$PrivateLinkResourcesService"]] \ No newline at end of file diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/AuthenticationsListSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/AuthenticationsListSamples.java new file mode 100644 index 0000000000000..a2e428de35a04 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/AuthenticationsListSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for Authentications List. + */ +public final class AuthenticationsListSamples { + /* + * x-ms-original-file: 2026-10-01-preview/Authentications_List.json + */ + /** + * Sample code: List the service-created authentication methods. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + listTheServiceCreatedAuthenticationMethods(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.authentications().list("example-resource-group", "example-cluster", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/CapabilitiesGetSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/CapabilitiesGetSamples.java new file mode 100644 index 0000000000000..f4e2794782714 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/CapabilitiesGetSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for Capabilities Get. + */ +public final class CapabilitiesGetSamples { + /* + * x-ms-original-file: 2026-10-01-preview/Capabilities_Get.json + */ + /** + * Sample code: Get HorizonDB capabilities by subscription and region. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + getHorizonDBCapabilitiesBySubscriptionAndRegion(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.capabilities().getWithResponse("eastus2", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/CapabilitiesListSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/CapabilitiesListSamples.java new file mode 100644 index 0000000000000..25c9e6feceacf --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/CapabilitiesListSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for Capabilities List. + */ +public final class CapabilitiesListSamples { + /* + * x-ms-original-file: 2026-10-01-preview/Capabilities_List.json + */ + /** + * Sample code: List HorizonDB capabilities by subscription and region. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + listHorizonDBCapabilitiesBySubscriptionAndRegion(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.capabilities().list("eastus2", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureCapabilitiesCreateOrReplaceSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureCapabilitiesCreateOrReplaceSamples.java new file mode 100644 index 0000000000000..18fc133034cf3 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureCapabilitiesCreateOrReplaceSamples.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.horizondb.generated; + +import com.azure.resourcemanager.horizondb.fluent.models.ChangeDataCaptureCapabilityInner; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureCapabilityProperties; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDesiredState; + +/** + * Samples for ChangeDataCaptureCapabilities CreateOrReplace. + */ +public final class ChangeDataCaptureCapabilitiesCreateOrReplaceSamples { + /* + * x-ms-original-file: 2026-10-01-preview/ChangeDataCaptureCapabilities_CreateOrReplace.json + */ + /** + * Sample code: Enable the cluster change data capture capability. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + enableTheClusterChangeDataCaptureCapability(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.changeDataCaptureCapabilities() + .createOrReplace("example-resource-group", "example-cluster", + new ChangeDataCaptureCapabilityInner().withProperties( + new ChangeDataCaptureCapabilityProperties().withDesiredState(ChangeDataCaptureDesiredState.ENABLED) + .withAutoUpgradeExtension(true)), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureCapabilitiesDeleteSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureCapabilitiesDeleteSamples.java new file mode 100644 index 0000000000000..6fab1c246b6f5 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureCapabilitiesDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for ChangeDataCaptureCapabilities Delete. + */ +public final class ChangeDataCaptureCapabilitiesDeleteSamples { + /* + * x-ms-original-file: 2026-10-01-preview/ChangeDataCaptureCapabilities_Delete.json + */ + /** + * Sample code: Delete the cluster change data capture capability. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + deleteTheClusterChangeDataCaptureCapability(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.changeDataCaptureCapabilities() + .delete("example-resource-group", "example-cluster", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureCapabilitiesGetSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureCapabilitiesGetSamples.java new file mode 100644 index 0000000000000..1613fc61661a5 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureCapabilitiesGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for ChangeDataCaptureCapabilities Get. + */ +public final class ChangeDataCaptureCapabilitiesGetSamples { + /* + * x-ms-original-file: 2026-10-01-preview/ChangeDataCaptureCapabilities_Get.json + */ + /** + * Sample code: Get the cluster change data capture capability. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + getTheClusterChangeDataCaptureCapability(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.changeDataCaptureCapabilities() + .getWithResponse("example-resource-group", "example-cluster", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureCapabilitiesListSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureCapabilitiesListSamples.java new file mode 100644 index 0000000000000..9de0cde6147af --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureCapabilitiesListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for ChangeDataCaptureCapabilities List. + */ +public final class ChangeDataCaptureCapabilitiesListSamples { + /* + * x-ms-original-file: 2026-10-01-preview/ChangeDataCaptureCapabilities_List.json + */ + /** + * Sample code: List the optional cluster change data capture capability. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void listTheOptionalClusterChangeDataCaptureCapability( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.changeDataCaptureCapabilities() + .list("example-resource-group", "example-cluster", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureCapabilitiesUpdateSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureCapabilitiesUpdateSamples.java new file mode 100644 index 0000000000000..87d3efc422c5e --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureCapabilitiesUpdateSamples.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureCapabilityForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureCapabilityPropertiesForPatchUpdate; + +/** + * Samples for ChangeDataCaptureCapabilities Update. + */ +public final class ChangeDataCaptureCapabilitiesUpdateSamples { + /* + * x-ms-original-file: 2026-10-01-preview/ChangeDataCaptureCapabilities_Update.json + */ + /** + * Sample code: Update the cluster change data capture capability. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + updateTheClusterChangeDataCaptureCapability(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.changeDataCaptureCapabilities() + .update("example-resource-group", "example-cluster", + new ChangeDataCaptureCapabilityForPatchUpdate().withProperties( + new ChangeDataCaptureCapabilityPropertiesForPatchUpdate().withAutoUpgradeExtension(false)), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureConfigurationsCreateOrReplaceSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureConfigurationsCreateOrReplaceSamples.java new file mode 100644 index 0000000000000..2058179a1069f --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureConfigurationsCreateOrReplaceSamples.java @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureConfigurationProperties; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDesiredState; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureUsageProfile; + +/** + * Samples for ChangeDataCaptureConfigurations CreateOrReplace. + */ +public final class ChangeDataCaptureConfigurationsCreateOrReplaceSamples { + /* + * x-ms-original-file: 2026-10-01-preview/ChangeDataCaptureConfigurations_CreateOrReplace.json + */ + /** + * Sample code: Enroll a database for Microsoft Fabric Mirroring. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + enrollADatabaseForMicrosoftFabricMirroring(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.changeDataCaptureConfigurations() + .define("sales-database") + .withExistingCluster("example-resource-group", "example-cluster") + .withProperties(new ChangeDataCaptureConfigurationProperties().withDatabaseName("sales") + .withUsageProfile(ChangeDataCaptureUsageProfile.MIRRORING) + .withDestinationResourceId( + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/example-cluster/changeDataCaptureDestinations/fabric-mirroring") + .withDesiredState(ChangeDataCaptureDesiredState.ENABLED)) + .create(); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureConfigurationsDeleteSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureConfigurationsDeleteSamples.java new file mode 100644 index 0000000000000..eb755d55b1ef6 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureConfigurationsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for ChangeDataCaptureConfigurations Delete. + */ +public final class ChangeDataCaptureConfigurationsDeleteSamples { + /* + * x-ms-original-file: 2026-10-01-preview/ChangeDataCaptureConfigurations_Delete.json + */ + /** + * Sample code: Delete a Microsoft Fabric Mirroring configuration. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + deleteAMicrosoftFabricMirroringConfiguration(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.changeDataCaptureConfigurations() + .delete("example-resource-group", "example-cluster", "sales-database", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureConfigurationsGetSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureConfigurationsGetSamples.java new file mode 100644 index 0000000000000..7883be251528e --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureConfigurationsGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for ChangeDataCaptureConfigurations Get. + */ +public final class ChangeDataCaptureConfigurationsGetSamples { + /* + * x-ms-original-file: 2026-10-01-preview/ChangeDataCaptureConfigurations_Get.json + */ + /** + * Sample code: Get a Microsoft Fabric Mirroring configuration. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + getAMicrosoftFabricMirroringConfiguration(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.changeDataCaptureConfigurations() + .getWithResponse("example-resource-group", "example-cluster", "sales-database", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureConfigurationsListSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureConfigurationsListSamples.java new file mode 100644 index 0000000000000..2b5fe73d926af --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureConfigurationsListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for ChangeDataCaptureConfigurations List. + */ +public final class ChangeDataCaptureConfigurationsListSamples { + /* + * x-ms-original-file: 2026-10-01-preview/ChangeDataCaptureConfigurations_List.json + */ + /** + * Sample code: List Microsoft Fabric Mirroring configurations. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + listMicrosoftFabricMirroringConfigurations(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.changeDataCaptureConfigurations() + .list("example-resource-group", "example-cluster", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureConfigurationsUpdateSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureConfigurationsUpdateSamples.java new file mode 100644 index 0000000000000..c69a62aba758a --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureConfigurationsUpdateSamples.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.horizondb.generated; + +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureConfiguration; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureConfigurationPropertiesForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDesiredState; + +/** + * Samples for ChangeDataCaptureConfigurations Update. + */ +public final class ChangeDataCaptureConfigurationsUpdateSamples { + /* + * x-ms-original-file: 2026-10-01-preview/ChangeDataCaptureConfigurations_Update.json + */ + /** + * Sample code: Disable a Microsoft Fabric Mirroring configuration. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + disableAMicrosoftFabricMirroringConfiguration(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + ChangeDataCaptureConfiguration resource = manager.changeDataCaptureConfigurations() + .getWithResponse("example-resource-group", "example-cluster", "sales-database", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withProperties(new ChangeDataCaptureConfigurationPropertiesForPatchUpdate() + .withDesiredState(ChangeDataCaptureDesiredState.DISABLED)) + .apply(); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationsActivateIdentitySamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationsActivateIdentitySamples.java new file mode 100644 index 0000000000000..5ea535f470231 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationsActivateIdentitySamples.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.resourcemanager.horizondb.models.ActivateChangeDataCaptureIdentityRequest; + +/** + * Samples for ChangeDataCaptureDestinations ActivateIdentity. + */ +public final class ChangeDataCaptureDestinationsActivateIdentitySamples { + /* + * x-ms-original-file: 2026-10-01-preview/ChangeDataCaptureDestinations_ActivateIdentity.json + */ + /** + * Sample code: Activate a validated identity assignment for a change data capture destination. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void activateAValidatedIdentityAssignmentForAChangeDataCaptureDestination( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.changeDataCaptureDestinations() + .activateIdentity("example-resource-group", "*", "example-cluster", "fabric-mirroring", + new ActivateChangeDataCaptureIdentityRequest().withIdentityAssignmentResourceId( + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/example-cluster/changeDataCaptureDestinations/fabric-mirroring/identityAssignments/fabric-writer") + .withDrainExistingSessions(true), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationsCreateOrReplaceSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationsCreateOrReplaceSamples.java new file mode 100644 index 0000000000000..414c8edad2f3d --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationsCreateOrReplaceSamples.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.horizondb.generated; + +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDesiredState; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDestinationProperties; +import com.azure.resourcemanager.horizondb.models.FabricDestinationDetails; + +/** + * Samples for ChangeDataCaptureDestinations CreateOrReplace. + */ +public final class ChangeDataCaptureDestinationsCreateOrReplaceSamples { + /* + * x-ms-original-file: 2026-10-01-preview/ChangeDataCaptureDestinations_CreateOrReplace.json + */ + /** + * Sample code: Create a Microsoft Fabric change data capture destination. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void createAMicrosoftFabricChangeDataCaptureDestination( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.changeDataCaptureDestinations() + .define("fabric-mirroring") + .withExistingCluster("example-resource-group", "example-cluster") + .withProperties(new ChangeDataCaptureDestinationProperties() + .withDestination(new FabricDestinationDetails().withWorkspaceId("aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee")) + .withDesiredState(ChangeDataCaptureDesiredState.ENABLED)) + .create(); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationsDeleteSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationsDeleteSamples.java new file mode 100644 index 0000000000000..5b16041cab7bd --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for ChangeDataCaptureDestinations Delete. + */ +public final class ChangeDataCaptureDestinationsDeleteSamples { + /* + * x-ms-original-file: 2026-10-01-preview/ChangeDataCaptureDestinations_Delete.json + */ + /** + * Sample code: Delete a Microsoft Fabric change data capture destination. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void deleteAMicrosoftFabricChangeDataCaptureDestination( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.changeDataCaptureDestinations() + .delete("example-resource-group", "example-cluster", "fabric-mirroring", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationsGetSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationsGetSamples.java new file mode 100644 index 0000000000000..d44a573c0b2c9 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationsGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for ChangeDataCaptureDestinations Get. + */ +public final class ChangeDataCaptureDestinationsGetSamples { + /* + * x-ms-original-file: 2026-10-01-preview/ChangeDataCaptureDestinations_Get.json + */ + /** + * Sample code: Get a Microsoft Fabric change data capture destination. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + getAMicrosoftFabricChangeDataCaptureDestination(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.changeDataCaptureDestinations() + .getWithResponse("example-resource-group", "example-cluster", "fabric-mirroring", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationsListSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationsListSamples.java new file mode 100644 index 0000000000000..f0d630f252e13 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationsListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for ChangeDataCaptureDestinations List. + */ +public final class ChangeDataCaptureDestinationsListSamples { + /* + * x-ms-original-file: 2026-10-01-preview/ChangeDataCaptureDestinations_List.json + */ + /** + * Sample code: List Microsoft Fabric change data capture destinations. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + listMicrosoftFabricChangeDataCaptureDestinations(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.changeDataCaptureDestinations() + .list("example-resource-group", "example-cluster", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationsUpdateSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationsUpdateSamples.java new file mode 100644 index 0000000000000..fa7a9cc6b1341 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationsUpdateSamples.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.horizondb.generated; + +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDesiredState; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDestination; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDestinationPropertiesForPatchUpdate; + +/** + * Samples for ChangeDataCaptureDestinations Update. + */ +public final class ChangeDataCaptureDestinationsUpdateSamples { + /* + * x-ms-original-file: 2026-10-01-preview/ChangeDataCaptureDestinations_Update.json + */ + /** + * Sample code: Disable a Microsoft Fabric change data capture destination. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void disableAMicrosoftFabricChangeDataCaptureDestination( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + ChangeDataCaptureDestination resource = manager.changeDataCaptureDestinations() + .getWithResponse("example-resource-group", "example-cluster", "fabric-mirroring", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withProperties(new ChangeDataCaptureDestinationPropertiesForPatchUpdate() + .withDesiredState(ChangeDataCaptureDesiredState.DISABLED)) + .apply(); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ClustersCreateOrReplaceSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ClustersCreateOrReplaceSamples.java new file mode 100644 index 0000000000000..7df3d6070c947 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ClustersCreateOrReplaceSamples.java @@ -0,0 +1,158 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.resourcemanager.horizondb.models.BackupProperties; +import com.azure.resourcemanager.horizondb.models.ClusterCreateMode; +import com.azure.resourcemanager.horizondb.models.ClusterProperties; +import com.azure.resourcemanager.horizondb.models.GeoRedundancyState; +import com.azure.resourcemanager.horizondb.models.HorizonDbClusterDataEncryption; +import com.azure.resourcemanager.horizondb.models.HorizonDbClusterDataEncryptionType; +import com.azure.resourcemanager.horizondb.models.HorizonDbClusterIdentityType; +import com.azure.resourcemanager.horizondb.models.HorizonDbClusterManagedServiceIdentity; +import com.azure.resourcemanager.horizondb.models.Network; +import com.azure.resourcemanager.horizondb.models.PostgreSqlVersion; +import com.azure.resourcemanager.horizondb.models.PublicNetworkAccessState; +import com.azure.resourcemanager.horizondb.models.UserAssignedIdentity; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for Clusters CreateOrReplace. + */ +public final class ClustersCreateOrReplaceSamples { + /* + * x-ms-original-file: 2026-10-01-preview/Clusters_CreateOrReplace.json + */ + /** + * Sample code: Create or replace a HorizonDB cluster. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void createOrReplaceAHorizonDBCluster(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.clusters() + .define("example-cluster") + .withRegion("eastus2") + .withExistingResourceGroup("example-resource-group") + .withTags(mapOf("environment", "production")) + .withProperties(new ClusterProperties().withPostgreSqlVersion(PostgreSqlVersion.V17) + .withNetwork(new Network().withPublicAccess(PublicNetworkAccessState.ENABLED)) + .withBackup(new BackupProperties().withGeoRedundancy(GeoRedundancyState.ENABLED).withRetentionDays(14))) + .withIdentity(new HorizonDbClusterManagedServiceIdentity() + .withType(HorizonDbClusterIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/identity-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/fabric-writer", + new UserAssignedIdentity()))) + .create(); + } + + /* + * x-ms-original-file: 2026-10-01-preview/Clusters_CreateOrReplaceMinimumDefaults.json + */ + /** + * Sample code: Create a PostgreSQL 18 HorizonDB cluster with minimum configuration and service defaults. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void createAPostgreSQL18HorizonDBClusterWithMinimumConfigurationAndServiceDefaults( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.clusters() + .define("minimum-defaults") + .withRegion("eastus2") + .withExistingResourceGroup("example-resource-group") + .withProperties(new ClusterProperties().withPostgreSqlVersion(PostgreSqlVersion.V18) + .withBackup(new BackupProperties().withGeoRedundancy(GeoRedundancyState.DISABLED))) + .create(); + } + + /* + * x-ms-original-file: 2026-10-01-preview/Clusters_CreateOrReplaceWithDataEncryption.json + */ + /** + * Sample code: Create a HorizonDB cluster with customer-managed key data encryption. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void createAHorizonDBClusterWithCustomerManagedKeyDataEncryption( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.clusters() + .define("example-cluster") + .withRegion("eastus2") + .withExistingResourceGroup("example-resource-group") + .withProperties(new ClusterProperties().withPostgreSqlVersion(PostgreSqlVersion.V17) + .withBackup(new BackupProperties().withGeoRedundancy(GeoRedundancyState.DISABLED).withRetentionDays(14)) + .withDataEncryption(new HorizonDbClusterDataEncryption() + .withType(HorizonDbClusterDataEncryptionType.AZURE_KEY_VAULT) + .withPrimaryKeyUri("fakeTokenPlaceholder") + .withPrimaryUserAssignedIdentityId( + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/identity-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/primary-encryption-identity"))) + .withIdentity(new HorizonDbClusterManagedServiceIdentity() + .withType(HorizonDbClusterIdentityType.USER_ASSIGNED) + .withUserAssignedIdentities(mapOf( + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/identity-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/primary-encryption-identity", + new UserAssignedIdentity()))) + .create(); + } + + /* + * x-ms-original-file: 2026-10-01-preview/Clusters_CreateOrReplacePointInTimeRestore.json + */ + /** + * Sample code: Restore a HorizonDB cluster to a point in time. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + restoreAHorizonDBClusterToAPointInTime(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.clusters() + .define("restored-cluster") + .withRegion("eastus2") + .withExistingResourceGroup("example-resource-group") + .withProperties(new ClusterProperties().withCreationMode(ClusterCreateMode.POINT_IN_TIME_RESTORE) + .withPointInTimeUtc(OffsetDateTime.parse("2026-07-27T12:00:00Z")) + .withCreationSourceClusterResourceId( + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/source-cluster") + .withNetwork(new Network().withPublicAccess(PublicNetworkAccessState.DISABLED)) + .withBackup(new BackupProperties().withGeoRedundancy(GeoRedundancyState.ENABLED).withRetentionDays(14))) + .create(); + } + + /* + * x-ms-original-file: 2026-10-01-preview/Clusters_CreateOrReplaceCrossRegionPointInTimeRestore.json + */ + /** + * Sample code: Restore a HorizonDB cluster across Azure regions from the latest available backup. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void restoreAHorizonDBClusterAcrossAzureRegionsFromTheLatestAvailableBackup( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.clusters() + .define("cross-region-restored-cluster") + .withRegion("westus2") + .withExistingResourceGroup("example-resource-group") + .withProperties(new ClusterProperties().withCreationMode(ClusterCreateMode.POINT_IN_TIME_RESTORE) + .withPointInTimeUtc(OffsetDateTime.parse("2026-07-27T12:00:00Z")) + .withCreationSourceClusterResourceId( + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/clusters/source-cluster") + .withCreationSourceClusterLocation("eastus2") + .withNetwork(new Network().withPublicAccess(PublicNetworkAccessState.DISABLED)) + .withBackup(new BackupProperties().withGeoRedundancy(GeoRedundancyState.ENABLED).withRetentionDays(14))) + .create(); + } + + // 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/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersDeleteSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ClustersDeleteSamples.java similarity index 63% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersDeleteSamples.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ClustersDeleteSamples.java index aa010266d84f4..fd3fe7a4ca6ba 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersDeleteSamples.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ClustersDeleteSamples.java @@ -5,11 +5,11 @@ package com.azure.resourcemanager.horizondb.generated; /** - * Samples for HorizonDbClusters Delete. + * Samples for Clusters Delete. */ -public final class HorizonDbClustersDeleteSamples { +public final class ClustersDeleteSamples { /* - * x-ms-original-file: 2026-05-01-preview/Clusters_Delete.json + * x-ms-original-file: 2026-10-01-preview/Clusters_Delete.json */ /** * Sample code: Delete a HorizonDB cluster. @@ -17,6 +17,6 @@ public final class HorizonDbClustersDeleteSamples { * @param manager Entry point to HorizonDbManager. */ public static void deleteAHorizonDBCluster(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbClusters().delete("exampleresourcegroup", "examplecluster", com.azure.core.util.Context.NONE); + manager.clusters().delete("example-resource-group", "example-cluster", com.azure.core.util.Context.NONE); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ClustersFailoverSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ClustersFailoverSamples.java new file mode 100644 index 0000000000000..2777dda72c384 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ClustersFailoverSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for Clusters Failover. + */ +public final class ClustersFailoverSamples { + /* + * x-ms-original-file: 2026-10-01-preview/Clusters_Failover.json + */ + /** + * Sample code: Trigger failover within a HorizonDB cluster. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + triggerFailoverWithinAHorizonDBCluster(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.clusters().failover("example-resource-group", "example-cluster", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ClustersGetByResourceGroupSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ClustersGetByResourceGroupSamples.java new file mode 100644 index 0000000000000..3086188263bfb --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ClustersGetByResourceGroupSamples.java @@ -0,0 +1,54 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for Clusters GetByResourceGroup. + */ +public final class ClustersGetByResourceGroupSamples { + /* + * x-ms-original-file: 2026-10-01-preview/Clusters_GetMinimumDefaults.json + */ + /** + * Sample code: Get a minimum HorizonDB cluster with materialized service defaults. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void getAMinimumHorizonDBClusterWithMaterializedServiceDefaults( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.clusters() + .getByResourceGroupWithResponse("example-resource-group", "minimum-defaults", + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-10-01-preview/Clusters_Get.json + */ + /** + * Sample code: Get a HorizonDB cluster. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void getAHorizonDBCluster(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.clusters() + .getByResourceGroupWithResponse("example-resource-group", "example-cluster", + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-10-01-preview/Clusters_GetAfterPoolCreationOnEmptyCluster.json + */ + /** + * Sample code: Get a cluster after pool creation while it had no existing pools. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void getAClusterAfterPoolCreationWhileItHadNoExistingPools( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.clusters() + .getByResourceGroupWithResponse("example-resource-group", "example-cluster", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersListByResourceGroupSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ClustersListByResourceGroupSamples.java similarity index 64% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersListByResourceGroupSamples.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ClustersListByResourceGroupSamples.java index ca1111d99564e..596af5978212b 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersListByResourceGroupSamples.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ClustersListByResourceGroupSamples.java @@ -5,11 +5,11 @@ package com.azure.resourcemanager.horizondb.generated; /** - * Samples for HorizonDbClusters ListByResourceGroup. + * Samples for Clusters ListByResourceGroup. */ -public final class HorizonDbClustersListByResourceGroupSamples { +public final class ClustersListByResourceGroupSamples { /* - * x-ms-original-file: 2026-05-01-preview/Clusters_ListByResourceGroup.json + * x-ms-original-file: 2026-10-01-preview/Clusters_ListByResourceGroup.json */ /** * Sample code: List HorizonDB clusters in a resource group. @@ -18,6 +18,6 @@ public final class HorizonDbClustersListByResourceGroupSamples { */ public static void listHorizonDBClustersInAResourceGroup(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbClusters().listByResourceGroup("exampleresourcegroup", com.azure.core.util.Context.NONE); + manager.clusters().listByResourceGroup("example-resource-group", com.azure.core.util.Context.NONE); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ClustersListSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ClustersListSamples.java new file mode 100644 index 0000000000000..5934f82fcb59e --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ClustersListSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for Clusters List. + */ +public final class ClustersListSamples { + /* + * x-ms-original-file: 2026-10-01-preview/Clusters_ListBySubscription.json + */ + /** + * Sample code: List HorizonDB clusters in a subscription. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + listHorizonDBClustersInASubscription(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.clusters().list(com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ClustersUpdateSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ClustersUpdateSamples.java new file mode 100644 index 0000000000000..c25e468892ecf --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ClustersUpdateSamples.java @@ -0,0 +1,72 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.resourcemanager.horizondb.models.BackupPropertiesForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.Cluster; +import com.azure.resourcemanager.horizondb.models.ClusterPropertiesForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.HorizonDbClusterDataEncryptionForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.NetworkForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.PublicNetworkAccessState; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for Clusters Update. + */ +public final class ClustersUpdateSamples { + /* + * x-ms-original-file: 2026-10-01-preview/Clusters_Update.json + */ + /** + * Sample code: Update a HorizonDB cluster. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void updateAHorizonDBCluster(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + Cluster resource = manager.clusters() + .getByResourceGroupWithResponse("example-resource-group", "example-cluster", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withTags(mapOf("environment", "production", "team", "data-platform")) + .withProperties(new ClusterPropertiesForPatchUpdate() + .withNetwork(new NetworkForPatchUpdate().withPublicAccess(PublicNetworkAccessState.DISABLED)) + .withBackup(new BackupPropertiesForPatchUpdate().withRetentionDays(21))) + .apply(); + } + + /* + * x-ms-original-file: 2026-10-01-preview/Clusters_UpdateDataEncryption.json + */ + /** + * Sample code: Rotate the customer-managed key used by a HorizonDB cluster. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void rotateTheCustomerManagedKeyUsedByAHorizonDBCluster( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + Cluster resource = manager.clusters() + .getByResourceGroupWithResponse("example-resource-group", "example-cluster", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withProperties(new ClusterPropertiesForPatchUpdate().withDataEncryption( + new HorizonDbClusterDataEncryptionForPatchUpdate().withPrimaryKeyUri("fakeTokenPlaceholder"))) + .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; + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/DefaultParameterGroupsGetSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/DefaultParameterGroupsGetSamples.java new file mode 100644 index 0000000000000..d47bf4fb887f5 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/DefaultParameterGroupsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for DefaultParameterGroups Get. + */ +public final class DefaultParameterGroupsGetSamples { + /* + * x-ms-original-file: 2026-10-01-preview/DefaultParameterGroups_Get.json + */ + /** + * Sample code: Get a default HorizonDB parameter group by subscription, location, and name. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void getADefaultHorizonDBParameterGroupBySubscriptionLocationAndName( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.defaultParameterGroups() + .getWithResponse("eastus2", "default-postgresql-17-provisioned", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/DefaultParameterGroupsListBySubscriptionAndRegionSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/DefaultParameterGroupsListBySubscriptionAndRegionSamples.java new file mode 100644 index 0000000000000..2aa1e63729822 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/DefaultParameterGroupsListBySubscriptionAndRegionSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for DefaultParameterGroups ListBySubscriptionAndRegion. + */ +public final class DefaultParameterGroupsListBySubscriptionAndRegionSamples { + /* + * x-ms-original-file: 2026-10-01-preview/DefaultParameterGroups_List.json + */ + /** + * Sample code: List default HorizonDB parameter groups by subscription and region. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void listDefaultHorizonDBParameterGroupsBySubscriptionAndRegion( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.defaultParameterGroups().listBySubscriptionAndRegion("eastus2", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/EndpointsGetSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/EndpointsGetSamples.java new file mode 100644 index 0000000000000..cd82b4b9be5df --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/EndpointsGetSamples.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for Endpoints Get. + */ +public final class EndpointsGetSamples { + /* + * x-ms-original-file: 2026-10-01-preview/Endpoints_GetReadOnly.json + */ + /** + * Sample code: Get a read-only HorizonDB pool endpoint. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void getAReadOnlyHorizonDBPoolEndpoint(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.endpoints() + .getWithResponse("example-resource-group", "example-cluster", "example-pool-01", + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-10-01-preview/Endpoints_Get.json + */ + /** + * Sample code: Get a HorizonDB endpoint. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void getAHorizonDBEndpoint(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.endpoints() + .getWithResponse("example-resource-group", "example-cluster", "example-cluster", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/EndpointsListSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/EndpointsListSamples.java new file mode 100644 index 0000000000000..60b205e2e5d56 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/EndpointsListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for Endpoints List. + */ +public final class EndpointsListSamples { + /* + * x-ms-original-file: 2026-10-01-preview/Endpoints_List.json + */ + /** + * Sample code: List HorizonDB endpoints in a cluster. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void listHorizonDBEndpointsInACluster(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.endpoints().list("example-resource-group", "example-cluster", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/FirewallRulesCreateOrReplaceSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/FirewallRulesCreateOrReplaceSamples.java new file mode 100644 index 0000000000000..085df09769d83 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/FirewallRulesCreateOrReplaceSamples.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.resourcemanager.horizondb.models.FirewallRuleProperties; + +/** + * Samples for FirewallRules CreateOrReplace. + */ +public final class FirewallRulesCreateOrReplaceSamples { + /* + * x-ms-original-file: 2026-10-01-preview/FirewallRules_CreateOrReplace.json + */ + /** + * Sample code: Create or replace a firewall rule on a HorizonDB pool. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + createOrReplaceAFirewallRuleOnAHorizonDBPool(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.firewallRules() + .define("example-firewall-rule-01") + .withExistingPool("example-resource-group", "example-cluster", "example-pool-01") + .withProperties(new FirewallRuleProperties().withStartIpAddress("10.0.0.1") + .withEndIpAddress("10.0.0.254") + .withDescription("Allow access from the corporate network")) + .create(); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/FirewallRulesDeleteSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/FirewallRulesDeleteSamples.java new file mode 100644 index 0000000000000..421996517b550 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/FirewallRulesDeleteSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for FirewallRules Delete. + */ +public final class FirewallRulesDeleteSamples { + /* + * x-ms-original-file: 2026-10-01-preview/FirewallRules_Delete.json + */ + /** + * Sample code: Delete a firewall rule from a HorizonDB pool. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + deleteAFirewallRuleFromAHorizonDBPool(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.firewallRules() + .delete("example-resource-group", "example-cluster", "example-pool-01", "example-firewall-rule-01", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/FirewallRulesGetSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/FirewallRulesGetSamples.java new file mode 100644 index 0000000000000..9a328c12af614 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/FirewallRulesGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for FirewallRules Get. + */ +public final class FirewallRulesGetSamples { + /* + * x-ms-original-file: 2026-10-01-preview/FirewallRules_Get.json + */ + /** + * Sample code: Get a firewall rule on a HorizonDB pool. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void getAFirewallRuleOnAHorizonDBPool(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.firewallRules() + .getWithResponse("example-resource-group", "example-cluster", "example-pool-01", "example-firewall-rule-01", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/FirewallRulesListSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/FirewallRulesListSamples.java new file mode 100644 index 0000000000000..6c5c0baafe7ef --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/FirewallRulesListSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for FirewallRules List. + */ +public final class FirewallRulesListSamples { + /* + * x-ms-original-file: 2026-10-01-preview/FirewallRules_List.json + */ + /** + * Sample code: List firewall rules in a HorizonDB pool. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void listFirewallRulesInAHorizonDBPool(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.firewallRules() + .list("example-resource-group", "example-cluster", "example-pool-01", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorsCreateOrUpdateSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorsCreateOrUpdateSamples.java deleted file mode 100644 index 41011b91a3883..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorsCreateOrUpdateSamples.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.resourcemanager.horizondb.models.HorizonDbAdministratorPropertiesForAdd; -import com.azure.resourcemanager.horizondb.models.PrincipalTypes; - -/** - * Samples for HorizonDbAdministrators CreateOrUpdate. - */ -public final class HorizonDbAdministratorsCreateOrUpdateSamples { - /* - * x-ms-original-file: 2026-05-01-preview/Administrators_CreateOrUpdate.json - */ - /** - * Sample code: Create or update a HorizonDB administrator. - * - * @param manager Entry point to HorizonDbManager. - */ - public static void - createOrUpdateAHorizonDBAdministrator(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbAdministrators() - .define("aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee") - .withExistingCluster("exampleresourcegroup", "examplecluster") - .withProperties(new HorizonDbAdministratorPropertiesForAdd().withPrincipalName("admin@contoso.com") - .withPrincipalType(PrincipalTypes.USER) - .withTenantId("11111111-2222-3333-4444-555555555555")) - .create(); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorsDeleteSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorsDeleteSamples.java deleted file mode 100644 index d65fd4070ac94..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorsDeleteSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -/** - * Samples for HorizonDbAdministrators Delete. - */ -public final class HorizonDbAdministratorsDeleteSamples { - /* - * x-ms-original-file: 2026-05-01-preview/Administrators_Delete.json - */ - /** - * Sample code: Delete a HorizonDB administrator. - * - * @param manager Entry point to HorizonDbManager. - */ - public static void deleteAHorizonDBAdministrator(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbAdministrators() - .delete("exampleresourcegroup", "examplecluster", "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorsGetSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorsGetSamples.java deleted file mode 100644 index dd2ab5ffce004..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorsGetSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -/** - * Samples for HorizonDbAdministrators Get. - */ -public final class HorizonDbAdministratorsGetSamples { - /* - * x-ms-original-file: 2026-05-01-preview/Administrators_Get.json - */ - /** - * Sample code: Get a HorizonDB administrator. - * - * @param manager Entry point to HorizonDbManager. - */ - public static void getAHorizonDBAdministrator(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbAdministrators() - .getWithResponse("exampleresourcegroup", "examplecluster", "aaaaaaaa-bbbb-cccc-dddd-eeeeeeeeeeee", - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorsListSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorsListSamples.java deleted file mode 100644 index 2395195dced77..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorsListSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -/** - * Samples for HorizonDbAdministrators List. - */ -public final class HorizonDbAdministratorsListSamples { - /* - * x-ms-original-file: 2026-05-01-preview/Administrators_List.json - */ - /** - * Sample code: List HorizonDB administrators in a cluster. - * - * @param manager Entry point to HorizonDbManager. - */ - public static void - listHorizonDBAdministratorsInACluster(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbAdministrators() - .list("exampleresourcegroup", "examplecluster", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersCreateOrUpdateSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersCreateOrUpdateSamples.java deleted file mode 100644 index 5a2f4a9de9993..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersCreateOrUpdateSamples.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.resourcemanager.horizondb.models.CreateModeCluster; -import com.azure.resourcemanager.horizondb.models.HorizonDbClusterProperties; -import com.azure.resourcemanager.horizondb.models.ZonePlacementPolicy; -import java.util.HashMap; -import java.util.Map; - -/** - * Samples for HorizonDbClusters CreateOrUpdate. - */ -public final class HorizonDbClustersCreateOrUpdateSamples { - /* - * x-ms-original-file: 2026-05-01-preview/Clusters_CreateOrUpdate.json - */ - /** - * Sample code: Create or update a HorizonDB cluster. - * - * @param manager Entry point to HorizonDbManager. - */ - public static void createOrUpdateAHorizonDBCluster(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbClusters() - .define("examplecluster") - .withRegion("westus2") - .withExistingResourceGroup("exampleresourcegroup") - .withTags(mapOf("env", "dev")) - .withProperties(new HorizonDbClusterProperties().withAdministratorLogin("exampleadministratorlogin") - .withAdministratorLoginPassword("fakeTokenPlaceholder") - .withVersion("17") - .withCreateMode(CreateModeCluster.CREATE) - .withReplicaCount(2) - .withVCores(4) - .withZonePlacementPolicy(ZonePlacementPolicy.BEST_EFFORT)) - .create(); - } - - // 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/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersGetByResourceGroupSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersGetByResourceGroupSamples.java deleted file mode 100644 index 09ae3adae0368..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersGetByResourceGroupSamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -/** - * Samples for HorizonDbClusters GetByResourceGroup. - */ -public final class HorizonDbClustersGetByResourceGroupSamples { - /* - * x-ms-original-file: 2026-05-01-preview/Clusters_Get.json - */ - /** - * Sample code: Get a HorizonDB cluster. - * - * @param manager Entry point to HorizonDbManager. - */ - public static void getAHorizonDBCluster(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbClusters() - .getByResourceGroupWithResponse("exampleresourcegroup", "examplecluster", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersListSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersListSamples.java deleted file mode 100644 index 4fe3758a8efbc..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersListSamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -/** - * Samples for HorizonDbClusters List. - */ -public final class HorizonDbClustersListSamples { - /* - * x-ms-original-file: 2026-05-01-preview/Clusters_ListBySubscription.json - */ - /** - * Sample code: List HorizonDB clusters by subscription. - * - * @param manager Entry point to HorizonDbManager. - */ - public static void - listHorizonDBClustersBySubscription(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbClusters().list(com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersRestartSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersRestartSamples.java deleted file mode 100644 index 992281ff2f725..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersRestartSamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -/** - * Samples for HorizonDbClusters Restart. - */ -public final class HorizonDbClustersRestartSamples { - /* - * x-ms-original-file: 2026-05-01-preview/Clusters_Restart.json - */ - /** - * Sample code: Restart a HorizonDB cluster. - * - * @param manager Entry point to HorizonDbManager. - */ - public static void restartAHorizonDBCluster(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbClusters().restart("exampleresourcegroup", "examplecluster", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersStartSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersStartSamples.java deleted file mode 100644 index 57f6389694e9b..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersStartSamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -/** - * Samples for HorizonDbClusters Start. - */ -public final class HorizonDbClustersStartSamples { - /* - * x-ms-original-file: 2026-05-01-preview/Clusters_Start.json - */ - /** - * Sample code: Start a HorizonDB cluster. - * - * @param manager Entry point to HorizonDbManager. - */ - public static void startAHorizonDBCluster(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbClusters().start("exampleresourcegroup", "examplecluster", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersStopSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersStopSamples.java deleted file mode 100644 index cfec45d899b31..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersStopSamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -/** - * Samples for HorizonDbClusters Stop. - */ -public final class HorizonDbClustersStopSamples { - /* - * x-ms-original-file: 2026-05-01-preview/Clusters_Stop.json - */ - /** - * Sample code: Stop a HorizonDB cluster. - * - * @param manager Entry point to HorizonDbManager. - */ - public static void stopAHorizonDBCluster(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbClusters().stop("exampleresourcegroup", "examplecluster", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersUpdateSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersUpdateSamples.java deleted file mode 100644 index f774a5af491bb..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersUpdateSamples.java +++ /dev/null @@ -1,47 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.resourcemanager.horizondb.models.HorizonDbCluster; -import com.azure.resourcemanager.horizondb.models.HorizonDbClusterPropertiesForPatchUpdate; -import java.util.HashMap; -import java.util.Map; - -/** - * Samples for HorizonDbClusters Update. - */ -public final class HorizonDbClustersUpdateSamples { - /* - * x-ms-original-file: 2026-05-01-preview/Clusters_Update.json - */ - /** - * Sample code: Update a HorizonDB cluster. - * - * @param manager Entry point to HorizonDbManager. - */ - public static void updateAHorizonDBCluster(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - HorizonDbCluster resource = manager.horizonDbClusters() - .getByResourceGroupWithResponse("exampleresourcegroup", "examplecluster", com.azure.core.util.Context.NONE) - .getValue(); - resource.update() - .withTags(mapOf("team", "updated-data-platform")) - .withProperties( - new HorizonDbClusterPropertiesForPatchUpdate().withAdministratorLoginPassword("fakeTokenPlaceholder") - .withVCores(8)) - .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; - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbFirewallRulesCreateOrUpdateSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbFirewallRulesCreateOrUpdateSamples.java deleted file mode 100644 index 067becde68390..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbFirewallRulesCreateOrUpdateSamples.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.resourcemanager.horizondb.models.HorizonDbFirewallRuleProperties; - -/** - * Samples for HorizonDbFirewallRules CreateOrUpdate. - */ -public final class HorizonDbFirewallRulesCreateOrUpdateSamples { - /* - * x-ms-original-file: 2026-05-01-preview/FirewallRules_CreateOrUpdate.json - */ - /** - * Sample code: Create or update a HorizonDB firewall rule. - * - * @param manager Entry point to HorizonDbManager. - */ - public static void - createOrUpdateAHorizonDBFirewallRule(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbFirewallRules() - .define("examplefirewallrule") - .withExistingPool("exampleresourcegroup", "examplecluster", "examplepool") - .withProperties(new HorizonDbFirewallRuleProperties().withStartIpAddress("10.0.0.1") - .withEndIpAddress("10.0.0.10") - .withDescription("Allow access from corporate network")) - .create(); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbFirewallRulesDeleteSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbFirewallRulesDeleteSamples.java deleted file mode 100644 index d99785a4ad47e..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbFirewallRulesDeleteSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -/** - * Samples for HorizonDbFirewallRules Delete. - */ -public final class HorizonDbFirewallRulesDeleteSamples { - /* - * x-ms-original-file: 2026-05-01-preview/FirewallRules_Delete.json - */ - /** - * Sample code: Delete a HorizonDB firewall rule. - * - * @param manager Entry point to HorizonDbManager. - */ - public static void deleteAHorizonDBFirewallRule(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbFirewallRules() - .delete("exampleresourcegroup", "examplecluster", "examplepool", "examplefirewallrule", - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbFirewallRulesGetSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbFirewallRulesGetSamples.java deleted file mode 100644 index c7c8b713cb00d..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbFirewallRulesGetSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -/** - * Samples for HorizonDbFirewallRules Get. - */ -public final class HorizonDbFirewallRulesGetSamples { - /* - * x-ms-original-file: 2026-05-01-preview/FirewallRules_Get.json - */ - /** - * Sample code: Get a HorizonDB firewall rule. - * - * @param manager Entry point to HorizonDbManager. - */ - public static void getAHorizonDBFirewallRule(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbFirewallRules() - .getWithResponse("exampleresourcegroup", "examplecluster", "examplepool", "examplefirewallrule", - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbFirewallRulesListSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbFirewallRulesListSamples.java deleted file mode 100644 index 070a1870b6055..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbFirewallRulesListSamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -/** - * Samples for HorizonDbFirewallRules List. - */ -public final class HorizonDbFirewallRulesListSamples { - /* - * x-ms-original-file: 2026-05-01-preview/FirewallRules_List.json - */ - /** - * Sample code: List HorizonDB firewall rules in a pool. - * - * @param manager Entry point to HorizonDbManager. - */ - public static void listHorizonDBFirewallRulesInAPool(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbFirewallRules() - .list("exampleresourcegroup", "examplecluster", "examplepool", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsCreateOrUpdateSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsCreateOrUpdateSamples.java deleted file mode 100644 index 2453b8e0c06c7..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsCreateOrUpdateSamples.java +++ /dev/null @@ -1,53 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.resourcemanager.horizondb.models.HorizonDbParameterGroupProperties; -import com.azure.resourcemanager.horizondb.models.ParameterProperties; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -/** - * Samples for HorizonDbParameterGroups CreateOrUpdate. - */ -public final class HorizonDbParameterGroupsCreateOrUpdateSamples { - /* - * x-ms-original-file: 2026-05-01-preview/ParameterGroups_CreateOrUpdate.json - */ - /** - * Sample code: Create or update a HorizonDB parameter group. - * - * @param manager Entry point to HorizonDbManager. - */ - public static void - createOrUpdateAHorizonDBParameterGroup(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbParameterGroups() - .define("exampleparametergroup") - .withRegion("westus2") - .withExistingResourceGroup("exampleresourcegroup") - .withTags(mapOf("env", "dev", "team", "data-platform")) - .withProperties(new HorizonDbParameterGroupProperties() - .withParameters(Arrays.asList(new ParameterProperties().withName("max_connections").withValue("200"), - new ParameterProperties().withName("log_min_error_statement").withValue("error"), - new ParameterProperties().withName("shared_buffers").withValue("2000"))) - .withDescription("Parameter group for high-throughput workloads") - .withPgVersion(17) - .withApplyImmediately(true)) - .create(); - } - - // 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/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsListConnectionsSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsListConnectionsSamples.java deleted file mode 100644 index 5533a315a444a..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsListConnectionsSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -/** - * Samples for HorizonDbParameterGroups ListConnections. - */ -public final class HorizonDbParameterGroupsListConnectionsSamples { - /* - * x-ms-original-file: 2026-05-01-preview/ParameterGroups_ListConnections.json - */ - /** - * Sample code: List connections for a HorizonDB parameter group. - * - * @param manager Entry point to HorizonDbManager. - */ - public static void - listConnectionsForAHorizonDBParameterGroup(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbParameterGroups() - .listConnections("exampleresourcegroup", "exampleparametergroup", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsListVersionsSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsListVersionsSamples.java deleted file mode 100644 index eebf1e3bbd4cf..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsListVersionsSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -/** - * Samples for HorizonDbParameterGroups ListVersions. - */ -public final class HorizonDbParameterGroupsListVersionsSamples { - /* - * x-ms-original-file: 2026-05-01-preview/ParameterGroups_ListVersions.json - */ - /** - * Sample code: List parameter groups filtered by version. - * - * @param manager Entry point to HorizonDbManager. - */ - public static void - listParameterGroupsFilteredByVersion(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbParameterGroups() - .listVersions("exampleresourcegroup", "exampleparametergroup", 22, com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsUpdateSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsUpdateSamples.java deleted file mode 100644 index 64509064aee19..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsUpdateSamples.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.resourcemanager.horizondb.models.HorizonDbParameterGroup; -import com.azure.resourcemanager.horizondb.models.HorizonDbParameterGroupPropertiesForPatchUpdate; -import com.azure.resourcemanager.horizondb.models.ParameterProperties; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -/** - * Samples for HorizonDbParameterGroups Update. - */ -public final class HorizonDbParameterGroupsUpdateSamples { - /* - * x-ms-original-file: 2026-05-01-preview/ParameterGroups_Update.json - */ - /** - * Sample code: Update a HorizonDB parameter group. - * - * @param manager Entry point to HorizonDbManager. - */ - public static void updateAHorizonDBParameterGroup(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - HorizonDbParameterGroup resource = manager.horizonDbParameterGroups() - .getByResourceGroupWithResponse("exampleresourcegroup", "exampleparametergroup", - com.azure.core.util.Context.NONE) - .getValue(); - resource.update() - .withTags(mapOf("team", "updated-data-platform")) - .withProperties(new HorizonDbParameterGroupPropertiesForPatchUpdate() - .withParameters(Arrays.asList(new ParameterProperties().withName("max_connections").withValue("300"), - new ParameterProperties().withName("log_min_error_statement").withValue("warning"))) - .withDescription("Updated parameter group for high-throughput workloads") - .withApplyImmediately(true)) - .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; - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateEndpointConnectionsGetSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateEndpointConnectionsGetSamples.java deleted file mode 100644 index fa7e2fd28fb60..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateEndpointConnectionsGetSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -/** - * Samples for HorizonDbPrivateEndpointConnections Get. - */ -public final class HorizonDbPrivateEndpointConnectionsGetSamples { - /* - * x-ms-original-file: 2026-05-01-preview/PrivateEndpointConnections_Get.json - */ - /** - * Sample code: Get a private endpoint connection. - * - * @param manager Entry point to HorizonDbManager. - */ - public static void getAPrivateEndpointConnection(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbPrivateEndpointConnections() - .getWithResponse("exampleresourcegroup", "examplecluster", - "exampleprivateendpointconnection.1fa229cd-bf3f-47f0-8c49-afb36723997e", - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateEndpointConnectionsListSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateEndpointConnectionsListSamples.java deleted file mode 100644 index 08055a1615c61..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateEndpointConnectionsListSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -/** - * Samples for HorizonDbPrivateEndpointConnections List. - */ -public final class HorizonDbPrivateEndpointConnectionsListSamples { - /* - * x-ms-original-file: 2026-05-01-preview/PrivateEndpointConnections_List.json - */ - /** - * Sample code: List all private endpoint connections on a cluster. - * - * @param manager Entry point to HorizonDbManager. - */ - public static void - listAllPrivateEndpointConnectionsOnACluster(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbPrivateEndpointConnections() - .list("exampleresourcegroup", "examplecluster", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateEndpointConnectionsUpdateStatusSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateEndpointConnectionsUpdateStatusSamples.java deleted file mode 100644 index cd9af4945752c..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateEndpointConnectionsUpdateStatusSamples.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.resourcemanager.horizondb.fluent.models.PrivateEndpointConnectionResourceInner; -import com.azure.resourcemanager.horizondb.models.PrivateEndpointConnectionProperties; -import com.azure.resourcemanager.horizondb.models.PrivateEndpointServiceConnectionStatus; -import com.azure.resourcemanager.horizondb.models.PrivateLinkServiceConnectionState; - -/** - * Samples for HorizonDbPrivateEndpointConnections UpdateStatus. - */ -public final class HorizonDbPrivateEndpointConnectionsUpdateStatusSamples { - /* - * x-ms-original-file: 2026-05-01-preview/PrivateEndpointConnections_UpdateStatus.json - */ - /** - * Sample code: Approve or reject a private endpoint connection. - * - * @param manager Entry point to HorizonDbManager. - */ - public static void - approveOrRejectAPrivateEndpointConnection(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbPrivateEndpointConnections() - .updateStatusWithResponse("exampleresourcegroup", "examplecluster", - "exampleprivateendpointconnection.1fa229cd-bf3f-47f0-8c49-afb36723997e", - new PrivateEndpointConnectionResourceInner().withProperties(new PrivateEndpointConnectionProperties() - .withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState() - .withStatus(PrivateEndpointServiceConnectionStatus.APPROVED) - .withDescription("Approved by johndoe@contoso.com"))), - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateLinkResourcesGetSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateLinkResourcesGetSamples.java deleted file mode 100644 index 94d9d0e15ef0f..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateLinkResourcesGetSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -/** - * Samples for HorizonDbPrivateLinkResources Get. - */ -public final class HorizonDbPrivateLinkResourcesGetSamples { - /* - * x-ms-original-file: 2026-05-01-preview/PrivateLinkResources_Get.json - */ - /** - * Sample code: Gets a private link resource for HorizonDB. - * - * @param manager Entry point to HorizonDbManager. - */ - public static void - getsAPrivateLinkResourceForHorizonDB(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbPrivateLinkResources() - .getWithResponse("exampleresourcegroup", "examplecluster", "default", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateLinkResourcesListSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateLinkResourcesListSamples.java deleted file mode 100644 index a3e266b08bccc..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateLinkResourcesListSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -/** - * Samples for HorizonDbPrivateLinkResources List. - */ -public final class HorizonDbPrivateLinkResourcesListSamples { - /* - * x-ms-original-file: 2026-05-01-preview/PrivateLinkResources_List.json - */ - /** - * Sample code: Gets private link resources for HorizonDB. - * - * @param manager Entry point to HorizonDbManager. - */ - public static void - getsPrivateLinkResourcesForHorizonDB(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbPrivateLinkResources() - .list("exampleresourcegroup", "examplecluster", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicasCreateOrUpdateSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicasCreateOrUpdateSamples.java deleted file mode 100644 index 2bcd14e412cdb..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicasCreateOrUpdateSamples.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.resourcemanager.horizondb.models.HorizonDbReplicaProperties; -import com.azure.resourcemanager.horizondb.models.ReplicaRole; - -/** - * Samples for HorizonDbReplicas CreateOrUpdate. - */ -public final class HorizonDbReplicasCreateOrUpdateSamples { - /* - * x-ms-original-file: 2026-05-01-preview/Replicas_CreateOrUpdate.json - */ - /** - * Sample code: Create or update a HorizonDB replica. - * - * @param manager Entry point to HorizonDbManager. - */ - public static void createOrUpdateAHorizonDBReplica(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbReplicas() - .define("examplereplica") - .withExistingPool("exampleresourcegroup", "examplecluster", "examplepool") - .withProperties(new HorizonDbReplicaProperties().withRole(ReplicaRole.READ).withAvailabilityZone("1")) - .create(); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicasDeleteSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicasDeleteSamples.java deleted file mode 100644 index b9cbf891332ab..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicasDeleteSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -/** - * Samples for HorizonDbReplicas Delete. - */ -public final class HorizonDbReplicasDeleteSamples { - /* - * x-ms-original-file: 2026-05-01-preview/Replicas_Delete.json - */ - /** - * Sample code: Delete a HorizonDB replica. - * - * @param manager Entry point to HorizonDbManager. - */ - public static void deleteAHorizonDBReplica(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbReplicas() - .delete("exampleresourcegroup", "examplecluster", "examplepool", "examplereplica", - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicasGetSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicasGetSamples.java deleted file mode 100644 index f451e2c2e33b6..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicasGetSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -/** - * Samples for HorizonDbReplicas Get. - */ -public final class HorizonDbReplicasGetSamples { - /* - * x-ms-original-file: 2026-05-01-preview/Replicas_Get.json - */ - /** - * Sample code: Get a HorizonDB replica. - * - * @param manager Entry point to HorizonDbManager. - */ - public static void getAHorizonDBReplica(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbReplicas() - .getWithResponse("exampleresourcegroup", "examplecluster", "examplepool", "examplereplica", - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicasListSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicasListSamples.java deleted file mode 100644 index 3ff06967b3983..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicasListSamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -/** - * Samples for HorizonDbReplicas List. - */ -public final class HorizonDbReplicasListSamples { - /* - * x-ms-original-file: 2026-05-01-preview/Replicas_List.json - */ - /** - * Sample code: List HorizonDB replicas in a pool. - * - * @param manager Entry point to HorizonDbManager. - */ - public static void listHorizonDBReplicasInAPool(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbReplicas() - .list("exampleresourcegroup", "examplecluster", "examplepool", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicasUpdateSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicasUpdateSamples.java deleted file mode 100644 index 08384d4d9f45e..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicasUpdateSamples.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.resourcemanager.horizondb.models.HorizonDbReplica; -import com.azure.resourcemanager.horizondb.models.HorizonDbReplicaPropertiesForPatchUpdate; -import com.azure.resourcemanager.horizondb.models.ReplicaRole; - -/** - * Samples for HorizonDbReplicas Update. - */ -public final class HorizonDbReplicasUpdateSamples { - /* - * x-ms-original-file: 2026-05-01-preview/Replicas_Update.json - */ - /** - * Sample code: Update a HorizonDB replica. - * - * @param manager Entry point to HorizonDbManager. - */ - public static void updateAHorizonDBReplica(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - HorizonDbReplica resource = manager.horizonDbReplicas() - .getWithResponse("exampleresourcegroup", "examplecluster", "examplepool", "examplereplica", - com.azure.core.util.Context.NONE) - .getValue(); - resource.update() - .withProperties(new HorizonDbReplicaPropertiesForPatchUpdate().withRole(ReplicaRole.READ_WRITE)) - .apply(); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/IdentityAssignmentsCreateOrReplaceSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/IdentityAssignmentsCreateOrReplaceSamples.java new file mode 100644 index 0000000000000..2c4e7f3b4d599 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/IdentityAssignmentsCreateOrReplaceSamples.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureIdentityAssignmentProperties; + +/** + * Samples for IdentityAssignments CreateOrReplace. + */ +public final class IdentityAssignmentsCreateOrReplaceSamples { + /* + * x-ms-original-file: 2026-10-01-preview/IdentityAssignments_CreateOrReplace.json + */ + /** + * Sample code: Create a change data capture identity assignment for a UAMI attached to the parent cluster. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void createAChangeDataCaptureIdentityAssignmentForAUAMIAttachedToTheParentCluster( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.identityAssignments() + .define("fabric-writer") + .withExistingChangeDataCaptureDestination("example-resource-group", "example-cluster", "fabric-mirroring") + .withProperties(new ChangeDataCaptureIdentityAssignmentProperties().withIdentityResourceId( + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/identity-resource-group/providers/Microsoft.ManagedIdentity/userAssignedIdentities/fabric-writer")) + .create(); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/IdentityAssignmentsDeleteSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/IdentityAssignmentsDeleteSamples.java new file mode 100644 index 0000000000000..4b4747ddfd539 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/IdentityAssignmentsDeleteSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for IdentityAssignments Delete. + */ +public final class IdentityAssignmentsDeleteSamples { + /* + * x-ms-original-file: 2026-10-01-preview/IdentityAssignments_Delete.json + */ + /** + * Sample code: Delete an inactive change data capture identity assignment. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void deleteAnInactiveChangeDataCaptureIdentityAssignment( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.identityAssignments() + .delete("example-resource-group", "example-cluster", "fabric-mirroring", "fabric-writer", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/IdentityAssignmentsGetSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/IdentityAssignmentsGetSamples.java new file mode 100644 index 0000000000000..645f6724c3b6d --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/IdentityAssignmentsGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for IdentityAssignments Get. + */ +public final class IdentityAssignmentsGetSamples { + /* + * x-ms-original-file: 2026-10-01-preview/IdentityAssignments_Get.json + */ + /** + * Sample code: Get a change data capture identity assignment. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + getAChangeDataCaptureIdentityAssignment(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.identityAssignments() + .getWithResponse("example-resource-group", "example-cluster", "fabric-mirroring", "fabric-writer", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/IdentityAssignmentsListSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/IdentityAssignmentsListSamples.java new file mode 100644 index 0000000000000..a112c00e9659a --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/IdentityAssignmentsListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for IdentityAssignments List. + */ +public final class IdentityAssignmentsListSamples { + /* + * x-ms-original-file: 2026-10-01-preview/IdentityAssignments_List.json + */ + /** + * Sample code: List change data capture identity assignments. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + listChangeDataCaptureIdentityAssignments(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.identityAssignments() + .list("example-resource-group", "example-cluster", "fabric-mirroring", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationsGetSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationsGetSamples.java new file mode 100644 index 0000000000000..2446caa3a7c93 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationsGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for LogCaptureConfigurations Get. + */ +public final class LogCaptureConfigurationsGetSamples { + /* + * x-ms-original-file: 2026-10-01-preview/LogCaptureConfigurations_Get.json + */ + /** + * Sample code: Get the PostgreSQL server log capture configuration. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + getThePostgreSQLServerLogCaptureConfiguration(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.logCaptureConfigurations() + .getWithResponse("example-resource-group", "example-cluster", "PostgreSqlServer", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationsListSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationsListSamples.java new file mode 100644 index 0000000000000..61058b672271a --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationsListSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for LogCaptureConfigurations List. + */ +public final class LogCaptureConfigurationsListSamples { + /* + * x-ms-original-file: 2026-10-01-preview/LogCaptureConfigurations_List.json + */ + /** + * Sample code: List log capture configurations. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void listLogCaptureConfigurations(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.logCaptureConfigurations() + .list("example-resource-group", "example-cluster", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationsUpdateSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationsUpdateSamples.java new file mode 100644 index 0000000000000..1c13b9a109b10 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationsUpdateSamples.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.resourcemanager.horizondb.models.LogCaptureConfigurationForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.LogCaptureConfigurationPropertiesForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.LogCaptureState; + +/** + * Samples for LogCaptureConfigurations Update. + */ +public final class LogCaptureConfigurationsUpdateSamples { + /* + * x-ms-original-file: 2026-10-01-preview/LogCaptureConfigurations_Update.json + */ + /** + * Sample code: Disable PostgreSQL server log capture. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void disablePostgreSQLServerLogCapture(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.logCaptureConfigurations() + .update("example-resource-group", "example-cluster", "PostgreSqlServer", + new LogCaptureConfigurationForPatchUpdate().withProperties( + new LogCaptureConfigurationPropertiesForPatchUpdate().withState(LogCaptureState.DISABLED)), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/LogFilesGetSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/LogFilesGetSamples.java new file mode 100644 index 0000000000000..b0c7d9d1b3be2 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/LogFilesGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for LogFiles Get. + */ +public final class LogFilesGetSamples { + /* + * x-ms-original-file: 2026-10-01-preview/LogFiles_Get.json + */ + /** + * Sample code: Get captured log file metadata. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void getCapturedLogFileMetadata(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.logFiles() + .getWithResponse("example-resource-group", "example-cluster", "11111111-1111-1111-1111-111111111111", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/LogFilesListDownloadUrlsSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/LogFilesListDownloadUrlsSamples.java new file mode 100644 index 0000000000000..a2a6070c3bb3b --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/LogFilesListDownloadUrlsSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for LogFiles ListDownloadUrls. + */ +public final class LogFilesListDownloadUrlsSamples { + /* + * x-ms-original-file: 2026-10-01-preview/LogFiles_ListDownloadUrls.json + */ + /** + * Sample code: List a signed URL for downloading a captured log file. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + listASignedURLForDownloadingACapturedLogFile(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.logFiles() + .listDownloadUrlsWithResponse("example-resource-group", "example-cluster", + "22222222-2222-2222-2222-222222222222", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/LogFilesListSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/LogFilesListSamples.java new file mode 100644 index 0000000000000..d0fd78a0b346b --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/LogFilesListSamples.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for LogFiles List. + */ +public final class LogFilesListSamples { + /* + * x-ms-original-file: 2026-10-01-preview/LogFiles_List.json + */ + /** + * Sample code: List captured log files. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void listCapturedLogFiles(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.logFiles().list("example-resource-group", "example-cluster", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventsApplyNowSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventsApplyNowSamples.java new file mode 100644 index 0000000000000..7ceb9d3f8272a --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventsApplyNowSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for MaintenanceEvents ApplyNow. + */ +public final class MaintenanceEventsApplyNowSamples { + /* + * x-ms-original-file: 2026-10-01-preview/MaintenanceEvents_ApplyNow.json + */ + /** + * Sample code: Apply a maintenance event immediately for a HorizonDB pool. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void applyAMaintenanceEventImmediatelyForAHorizonDBPool( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.maintenanceEvents() + .applyNow("example-resource-group", "example-cluster", "example-pool-01", "ABCD-123", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventsGetSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventsGetSamples.java new file mode 100644 index 0000000000000..792a18d1e2247 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventsGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for MaintenanceEvents Get. + */ +public final class MaintenanceEventsGetSamples { + /* + * x-ms-original-file: 2026-10-01-preview/MaintenanceEvents_Get.json + */ + /** + * Sample code: Get information about a maintenance event for a HorizonDB pool. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void getInformationAboutAMaintenanceEventForAHorizonDBPool( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.maintenanceEvents() + .getWithResponse("example-resource-group", "example-cluster", "example-pool-01", "ABCD-123", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventsListSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventsListSamples.java new file mode 100644 index 0000000000000..ac860cc44c3a5 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventsListSamples.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for MaintenanceEvents List. + */ +public final class MaintenanceEventsListSamples { + /* + * x-ms-original-file: 2026-10-01-preview/MaintenanceEvents_ListWithFilter.json + */ + /** + * Sample code: List upcoming maintenance events for a HorizonDB pool. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + listUpcomingMaintenanceEventsForAHorizonDBPool(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.maintenanceEvents() + .list("example-resource-group", "example-cluster", "example-pool-01", + "properties/status eq 'Planned' or properties/status eq 'InProgress'", + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-10-01-preview/MaintenanceEvents_List.json + */ + /** + * Sample code: List maintenance events for a HorizonDB pool. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + listMaintenanceEventsForAHorizonDBPool(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.maintenanceEvents() + .list("example-resource-group", "example-cluster", "example-pool-01", null, + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventsRescheduleSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventsRescheduleSamples.java new file mode 100644 index 0000000000000..91316247179c3 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventsRescheduleSamples.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.resourcemanager.horizondb.models.MaintenanceEventRescheduleRequest; +import java.time.OffsetDateTime; + +/** + * Samples for MaintenanceEvents Reschedule. + */ +public final class MaintenanceEventsRescheduleSamples { + /* + * x-ms-original-file: 2026-10-01-preview/MaintenanceEvents_Reschedule.json + */ + /** + * Sample code: Reschedule a maintenance event for a HorizonDB pool. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + rescheduleAMaintenanceEventForAHorizonDBPool(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.maintenanceEvents() + .reschedule("example-resource-group", "example-cluster", "example-pool-01", "ABCD-123", + new MaintenanceEventRescheduleRequest().withPostponeToDateTimeUtc( + OffsetDateTime.parse("2026-08-20T10:00:00Z")), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorsCreateOrReplaceSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorsCreateOrReplaceSamples.java new file mode 100644 index 0000000000000..0be3691e4789e --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorsCreateOrReplaceSamples.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.horizondb.generated; + +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAdministratorPropertiesForAdd; +import com.azure.resourcemanager.horizondb.models.PrincipalTypes; + +/** + * Samples for MicrosoftEntraAdministrators CreateOrReplace. + */ +public final class MicrosoftEntraAdministratorsCreateOrReplaceSamples { + /* + * x-ms-original-file: 2026-10-01-preview/MicrosoftEntraAdministrators_CreateOrReplace.json + */ + /** + * Sample code: Create or replace a Microsoft Entra administrator for a HorizonDB cluster. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void createOrReplaceAMicrosoftEntraAdministratorForAHorizonDBCluster( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.microsoftEntraAdministrators() + .define("11111111-1111-1111-1111-111111111111") + .withExistingCluster("example-resource-group", "example-cluster") + .withProperties(new MicrosoftEntraAdministratorPropertiesForAdd() + .withPrincipalName("database.administrators@contoso.com") + .withPrincipalType(PrincipalTypes.GROUP) + .withTenantId("22222222-2222-2222-2222-222222222222")) + .create(); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorsDeleteSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorsDeleteSamples.java new file mode 100644 index 0000000000000..b09fc14f987e7 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorsDeleteSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for MicrosoftEntraAdministrators Delete. + */ +public final class MicrosoftEntraAdministratorsDeleteSamples { + /* + * x-ms-original-file: 2026-10-01-preview/MicrosoftEntraAdministrators_Delete.json + */ + /** + * Sample code: Delete a Microsoft Entra administrator from a HorizonDB cluster. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void deleteAMicrosoftEntraAdministratorFromAHorizonDBCluster( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.microsoftEntraAdministrators() + .delete("example-resource-group", "example-cluster", "11111111-1111-1111-1111-111111111111", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorsGetSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorsGetSamples.java new file mode 100644 index 0000000000000..0863b399328f9 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorsGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for MicrosoftEntraAdministrators Get. + */ +public final class MicrosoftEntraAdministratorsGetSamples { + /* + * x-ms-original-file: 2026-10-01-preview/MicrosoftEntraAdministrators_Get.json + */ + /** + * Sample code: Get a Microsoft Entra administrator for a HorizonDB cluster. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void getAMicrosoftEntraAdministratorForAHorizonDBCluster( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.microsoftEntraAdministrators() + .getWithResponse("example-resource-group", "example-cluster", "11111111-1111-1111-1111-111111111111", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorsListSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorsListSamples.java new file mode 100644 index 0000000000000..f308fa641b9c9 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorsListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for MicrosoftEntraAdministrators List. + */ +public final class MicrosoftEntraAdministratorsListSamples { + /* + * x-ms-original-file: 2026-10-01-preview/MicrosoftEntraAdministrators_List.json + */ + /** + * Sample code: List Microsoft Entra administrators for a HorizonDB cluster. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void listMicrosoftEntraAdministratorsForAHorizonDBCluster( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.microsoftEntraAdministrators() + .list("example-resource-group", "example-cluster", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationsCreateOrReplaceSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationsCreateOrReplaceSamples.java new file mode 100644 index 0000000000000..118bae7e18467 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationsCreateOrReplaceSamples.java @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.resourcemanager.horizondb.fluent.models.MicrosoftEntraAuthenticationInner; +import com.azure.resourcemanager.horizondb.models.AuthenticationState; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAuthenticationProperties; + +/** + * Samples for MicrosoftEntraAuthentications CreateOrReplace. + */ +public final class MicrosoftEntraAuthenticationsCreateOrReplaceSamples { + /* + * x-ms-original-file: 2026-10-01-preview/MicrosoftEntraAuthentications_CreateOrReplaceDisabled.json + */ + /** + * Sample code: Disable Microsoft Entra authentication declaratively. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + disableMicrosoftEntraAuthenticationDeclaratively(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.microsoftEntraAuthentications() + .createOrReplace("example-resource-group", "example-cluster", + new MicrosoftEntraAuthenticationInner().withProperties( + new MicrosoftEntraAuthenticationProperties().withState(AuthenticationState.DISABLED)), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-10-01-preview/MicrosoftEntraAuthentications_CreateOrReplaceEnabled.json + */ + /** + * Sample code: Enable Microsoft Entra authentication declaratively. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + enableMicrosoftEntraAuthenticationDeclaratively(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.microsoftEntraAuthentications() + .createOrReplace("example-resource-group", "example-cluster", + new MicrosoftEntraAuthenticationInner().withProperties( + new MicrosoftEntraAuthenticationProperties().withState(AuthenticationState.ENABLED)), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationsGetSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationsGetSamples.java new file mode 100644 index 0000000000000..f0bcd51c31a80 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for MicrosoftEntraAuthentications Get. + */ +public final class MicrosoftEntraAuthenticationsGetSamples { + /* + * x-ms-original-file: 2026-10-01-preview/MicrosoftEntraAuthentications_Get.json + */ + /** + * Sample code: Get the Microsoft Entra authentication method. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + getTheMicrosoftEntraAuthenticationMethod(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.microsoftEntraAuthentications() + .getWithResponse("example-resource-group", "example-cluster", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationsUpdateSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationsUpdateSamples.java new file mode 100644 index 0000000000000..4f5fea54cae2f --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationsUpdateSamples.java @@ -0,0 +1,48 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.resourcemanager.horizondb.models.AuthenticationState; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAuthenticationForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAuthenticationPropertiesForPatchUpdate; + +/** + * Samples for MicrosoftEntraAuthentications Update. + */ +public final class MicrosoftEntraAuthenticationsUpdateSamples { + /* + * x-ms-original-file: 2026-10-01-preview/MicrosoftEntraAuthentications_Disable.json + */ + /** + * Sample code: Disable Microsoft Entra authentication without modifying existing database roles. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void disableMicrosoftEntraAuthenticationWithoutModifyingExistingDatabaseRoles( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.microsoftEntraAuthentications() + .update("example-resource-group", "example-cluster", + new MicrosoftEntraAuthenticationForPatchUpdate().withProperties( + new MicrosoftEntraAuthenticationPropertiesForPatchUpdate().withState(AuthenticationState.DISABLED)), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-10-01-preview/MicrosoftEntraAuthentications_Enable.json + */ + /** + * Sample code: Start enabling Microsoft Entra authentication. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + startEnablingMicrosoftEntraAuthentication(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.microsoftEntraAuthentications() + .update("example-resource-group", "example-cluster", + new MicrosoftEntraAuthenticationForPatchUpdate().withProperties( + new MicrosoftEntraAuthenticationPropertiesForPatchUpdate().withState(AuthenticationState.ENABLED)), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/NodesGetSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/NodesGetSamples.java new file mode 100644 index 0000000000000..7fa67e39a1da6 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/NodesGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for Nodes Get. + */ +public final class NodesGetSamples { + /* + * x-ms-original-file: 2026-10-01-preview/Nodes_Get.json + */ + /** + * Sample code: Get a HorizonDB node. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void getAHorizonDBNode(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.nodes() + .getWithResponse("example-resource-group", "example-cluster", "example-pool-01", "node-01", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/NodesListSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/NodesListSamples.java new file mode 100644 index 0000000000000..99afc4fdc0fa5 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/NodesListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for Nodes List. + */ +public final class NodesListSamples { + /* + * x-ms-original-file: 2026-10-01-preview/Nodes_List.json + */ + /** + * Sample code: List the nodes allocated to a HorizonDB pool. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + listTheNodesAllocatedToAHorizonDBPool(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.nodes() + .list("example-resource-group", "example-cluster", "example-pool-01", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/OperationsListSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/OperationsListSamples.java index 7bcc932d5678b..87e22eb484198 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/OperationsListSamples.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/OperationsListSamples.java @@ -9,15 +9,15 @@ */ public final class OperationsListSamples { /* - * x-ms-original-file: 2026-05-01-preview/Operations_List.json + * x-ms-original-file: 2026-10-01-preview/Operations_List.json */ /** - * Sample code: List operations for Microsoft.HorizonDB. + * Sample code: List operations for Microsoft.HorizonDb. * * @param manager Entry point to HorizonDbManager. */ public static void - listOperationsForMicrosoftHorizonDB(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + listOperationsForMicrosoftHorizonDb(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { manager.operations().list(com.azure.core.util.Context.NONE); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsCreateOrReplaceSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsCreateOrReplaceSamples.java new file mode 100644 index 0000000000000..6a5bd3983c929 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsCreateOrReplaceSamples.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.horizondb.generated; + +import com.azure.resourcemanager.horizondb.models.ParameterGroupProperties; +import com.azure.resourcemanager.horizondb.models.ParameterProperties; +import com.azure.resourcemanager.horizondb.models.PostgreSqlVersion; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for ParameterGroups CreateOrReplace. + */ +public final class ParameterGroupsCreateOrReplaceSamples { + /* + * x-ms-original-file: 2026-10-01-preview/ParameterGroups_CreateOrReplace.json + */ + /** + * Sample code: Create or replace a HorizonDB parameter group for a PostgreSQL version. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void createOrReplaceAHorizonDBParameterGroupForAPostgreSQLVersion( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.parameterGroups() + .define("production-parameters") + .withRegion("eastus2") + .withExistingResourceGroup("example-resource-group") + .withTags(mapOf("environment", "production")) + .withProperties(new ParameterGroupProperties() + .withParameters(Arrays.asList( + new ParameterProperties().withName("application_name").withValue("horizondb-production"), + new ParameterProperties().withName("autovacuum").withValue("off"), + new ParameterProperties().withName("wal_receiver_timeout").withValue("45000"), + new ParameterProperties().withName("work_mem").withValue("8192"), + new ParameterProperties().withName("xmlbinary").withValue("base64"))) + .withDescription("Parameters for production transactional workloads") + .withPostgreSqlVersion(PostgreSqlVersion.V17)) + .create(); + } + + // 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/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsDeleteSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsDeleteSamples.java similarity index 61% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsDeleteSamples.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsDeleteSamples.java index 3005a3a96db07..623da082cb8a1 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsDeleteSamples.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsDeleteSamples.java @@ -5,11 +5,11 @@ package com.azure.resourcemanager.horizondb.generated; /** - * Samples for HorizonDbParameterGroups Delete. + * Samples for ParameterGroups Delete. */ -public final class HorizonDbParameterGroupsDeleteSamples { +public final class ParameterGroupsDeleteSamples { /* - * x-ms-original-file: 2026-05-01-preview/ParameterGroups_Delete.json + * x-ms-original-file: 2026-10-01-preview/ParameterGroups_Delete.json */ /** * Sample code: Delete a HorizonDB parameter group. @@ -17,7 +17,7 @@ public final class HorizonDbParameterGroupsDeleteSamples { * @param manager Entry point to HorizonDbManager. */ public static void deleteAHorizonDBParameterGroup(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbParameterGroups() - .delete("exampleresourcegroup", "exampleparametergroup", com.azure.core.util.Context.NONE); + manager.parameterGroups() + .delete("example-resource-group", "production-parameters", com.azure.core.util.Context.NONE); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsGetByResourceGroupSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsGetByResourceGroupSamples.java similarity index 62% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsGetByResourceGroupSamples.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsGetByResourceGroupSamples.java index 9ed4eb3d20c91..d01742deaabeb 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsGetByResourceGroupSamples.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsGetByResourceGroupSamples.java @@ -5,11 +5,11 @@ package com.azure.resourcemanager.horizondb.generated; /** - * Samples for HorizonDbParameterGroups GetByResourceGroup. + * Samples for ParameterGroups GetByResourceGroup. */ -public final class HorizonDbParameterGroupsGetByResourceGroupSamples { +public final class ParameterGroupsGetByResourceGroupSamples { /* - * x-ms-original-file: 2026-05-01-preview/ParameterGroups_Get.json + * x-ms-original-file: 2026-10-01-preview/ParameterGroups_Get.json */ /** * Sample code: Get a HorizonDB parameter group. @@ -17,8 +17,8 @@ public final class HorizonDbParameterGroupsGetByResourceGroupSamples { * @param manager Entry point to HorizonDbManager. */ public static void getAHorizonDBParameterGroup(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbParameterGroups() - .getByResourceGroupWithResponse("exampleresourcegroup", "exampleparametergroup", + manager.parameterGroups() + .getByResourceGroupWithResponse("example-resource-group", "production-parameters", com.azure.core.util.Context.NONE); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsListByResourceGroupSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsListByResourceGroupSamples.java similarity index 62% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsListByResourceGroupSamples.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsListByResourceGroupSamples.java index 51664733d0e87..74983c656f972 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsListByResourceGroupSamples.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsListByResourceGroupSamples.java @@ -5,11 +5,11 @@ package com.azure.resourcemanager.horizondb.generated; /** - * Samples for HorizonDbParameterGroups ListByResourceGroup. + * Samples for ParameterGroups ListByResourceGroup. */ -public final class HorizonDbParameterGroupsListByResourceGroupSamples { +public final class ParameterGroupsListByResourceGroupSamples { /* - * x-ms-original-file: 2026-05-01-preview/ParameterGroups_ListByResourceGroup.json + * x-ms-original-file: 2026-10-01-preview/ParameterGroups_ListByResourceGroup.json */ /** * Sample code: List HorizonDB parameter groups in a resource group. @@ -18,7 +18,6 @@ public final class HorizonDbParameterGroupsListByResourceGroupSamples { */ public static void listHorizonDBParameterGroupsInAResourceGroup(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbParameterGroups() - .listByResourceGroup("exampleresourcegroup", com.azure.core.util.Context.NONE); + manager.parameterGroups().listByResourceGroup("example-resource-group", com.azure.core.util.Context.NONE); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsListConnectionsSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsListConnectionsSamples.java new file mode 100644 index 0000000000000..6c2586efd9051 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsListConnectionsSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for ParameterGroups ListConnections. + */ +public final class ParameterGroupsListConnectionsSamples { + /* + * x-ms-original-file: 2026-10-01-preview/ParameterGroups_ListConnections.json + */ + /** + * Sample code: List HorizonDB pools connected to a parameter group. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + listHorizonDBPoolsConnectedToAParameterGroup(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.parameterGroups() + .listConnections("example-resource-group", "production-parameters", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsListSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsListSamples.java similarity index 68% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsListSamples.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsListSamples.java index c087d57a39643..ca757d84d123c 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsListSamples.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsListSamples.java @@ -5,11 +5,11 @@ package com.azure.resourcemanager.horizondb.generated; /** - * Samples for HorizonDbParameterGroups List. + * Samples for ParameterGroups List. */ -public final class HorizonDbParameterGroupsListSamples { +public final class ParameterGroupsListSamples { /* - * x-ms-original-file: 2026-05-01-preview/ParameterGroups_ListBySubscription.json + * x-ms-original-file: 2026-10-01-preview/ParameterGroups_ListBySubscription.json */ /** * Sample code: List HorizonDB parameter groups in a subscription. @@ -18,6 +18,6 @@ public final class HorizonDbParameterGroupsListSamples { */ public static void listHorizonDBParameterGroupsInASubscription(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbParameterGroups().list(com.azure.core.util.Context.NONE); + manager.parameterGroups().list(com.azure.core.util.Context.NONE); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsUpdateSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsUpdateSamples.java new file mode 100644 index 0000000000000..b320ea80cb758 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsUpdateSamples.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.resourcemanager.horizondb.models.ParameterGroup; +import com.azure.resourcemanager.horizondb.models.ParameterGroupPropertiesForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.ParameterProperties; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; + +/** + * Samples for ParameterGroups Update. + */ +public final class ParameterGroupsUpdateSamples { + /* + * x-ms-original-file: 2026-10-01-preview/ParameterGroups_Update.json + */ + /** + * Sample code: Update a HorizonDB parameter group. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void updateAHorizonDBParameterGroup(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + ParameterGroup resource = manager.parameterGroups() + .getByResourceGroupWithResponse("example-resource-group", "production-parameters", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withTags(mapOf("environment", "production", "team", "data-platform")) + .withProperties(new ParameterGroupPropertiesForPatchUpdate() + .withParameters(Arrays.asList( + new ParameterProperties().withName("application_name").withValue("horizondb-production"), + new ParameterProperties().withName("autovacuum").withValue("off"), + new ParameterProperties().withName("wal_receiver_timeout").withValue("45000"), + new ParameterProperties().withName("work_mem").withValue("8192"), + new ParameterProperties().withName("xmlbinary").withValue("base64"))) + .withDescription("Updated parameters for production transactional workloads")) + .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; + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PasswordAuthenticationsCreateOrReplaceSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PasswordAuthenticationsCreateOrReplaceSamples.java new file mode 100644 index 0000000000000..f5bb9dfb0702d --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PasswordAuthenticationsCreateOrReplaceSamples.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.horizondb.generated; + +import com.azure.resourcemanager.horizondb.fluent.models.PasswordAuthenticationInner; +import com.azure.resourcemanager.horizondb.models.AuthenticationState; +import com.azure.resourcemanager.horizondb.models.PasswordAuthenticationProperties; + +/** + * Samples for PasswordAuthentications CreateOrReplace. + */ +public final class PasswordAuthenticationsCreateOrReplaceSamples { + /* + * x-ms-original-file: 2026-10-01-preview/PasswordAuthentications_CreateOrReplace.json + */ + /** + * Sample code: Enable password authentication and set the administrator login and password during initial setup. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void enablePasswordAuthenticationAndSetTheAdministratorLoginAndPasswordDuringInitialSetup( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.passwordAuthentications() + .createOrReplace("example-resource-group", "example-cluster", + new PasswordAuthenticationInner() + .withProperties(new PasswordAuthenticationProperties().withState(AuthenticationState.ENABLED) + .withAdministratorLogin("adminlogin1") + .withAdministratorLoginPassword("fakeTokenPlaceholder")), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PasswordAuthenticationsGetSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PasswordAuthenticationsGetSamples.java new file mode 100644 index 0000000000000..f463cba6c3326 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PasswordAuthenticationsGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for PasswordAuthentications Get. + */ +public final class PasswordAuthenticationsGetSamples { + /* + * x-ms-original-file: 2026-10-01-preview/PasswordAuthentications_Get.json + */ + /** + * Sample code: Get the password authentication method. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + getThePasswordAuthenticationMethod(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.passwordAuthentications() + .getWithResponse("example-resource-group", "example-cluster", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PasswordAuthenticationsUpdateSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PasswordAuthenticationsUpdateSamples.java new file mode 100644 index 0000000000000..5d120ea455a8b --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PasswordAuthenticationsUpdateSamples.java @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.resourcemanager.horizondb.models.AuthenticationState; +import com.azure.resourcemanager.horizondb.models.PasswordAuthenticationForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.PasswordAuthenticationPropertiesForPatchUpdate; + +/** + * Samples for PasswordAuthentications Update. + */ +public final class PasswordAuthenticationsUpdateSamples { + /* + * x-ms-original-file: 2026-10-01-preview/PasswordAuthentications_ResetPassword.json + */ + /** + * Sample code: Reset the sole PostgreSQL administrator role password. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + resetTheSolePostgreSQLAdministratorRolePassword(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.passwordAuthentications() + .update("example-resource-group", "example-cluster", + new PasswordAuthenticationForPatchUpdate() + .withProperties(new PasswordAuthenticationPropertiesForPatchUpdate() + .withAdministratorLoginPassword("fakeTokenPlaceholder")), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-10-01-preview/PasswordAuthentications_Enable.json + */ + /** + * Sample code: Enable password authentication and reset the existing administrator password. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void enablePasswordAuthenticationAndResetTheExistingAdministratorPassword( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.passwordAuthentications() + .update("example-resource-group", "example-cluster", + new PasswordAuthenticationForPatchUpdate().withProperties( + new PasswordAuthenticationPropertiesForPatchUpdate().withState(AuthenticationState.ENABLED) + .withAdministratorLoginPassword("fakeTokenPlaceholder")), + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-10-01-preview/PasswordAuthentications_Disable.json + */ + /** + * Sample code: Disable password authentication. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void disablePasswordAuthentication(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.passwordAuthentications() + .update("example-resource-group", "example-cluster", + new PasswordAuthenticationForPatchUpdate().withProperties( + new PasswordAuthenticationPropertiesForPatchUpdate().withState(AuthenticationState.DISABLED)), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PoolsCreateOrReplaceSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PoolsCreateOrReplaceSamples.java new file mode 100644 index 0000000000000..df64e708921db --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PoolsCreateOrReplaceSamples.java @@ -0,0 +1,47 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.resourcemanager.horizondb.models.ComputeProcessorType; +import com.azure.resourcemanager.horizondb.models.ParameterApplyMethod; +import com.azure.resourcemanager.horizondb.models.PoolComputeModel; +import com.azure.resourcemanager.horizondb.models.PoolComputeModelType; +import com.azure.resourcemanager.horizondb.models.PoolHighAvailability; +import com.azure.resourcemanager.horizondb.models.PoolHighAvailabilityMode; +import com.azure.resourcemanager.horizondb.models.PoolParameterGroupReference; +import com.azure.resourcemanager.horizondb.models.PoolProperties; +import com.azure.resourcemanager.horizondb.models.SystemScheduledMaintenanceProperties; + +/** + * Samples for Pools CreateOrReplace. + */ +public final class PoolsCreateOrReplaceSamples { + /* + * x-ms-original-file: 2026-10-01-preview/Pools_CreateOrReplace.json + */ + /** + * Sample code: Create a minimum provisioned HorizonDB pool. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + createAMinimumProvisionedHorizonDBPool(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.pools() + .define("example-pool-01") + .withExistingCluster("example-resource-group", "example-cluster") + .withProperties(new PoolProperties() + .withComputeModel(new PoolComputeModel().withType(PoolComputeModelType.PROVISIONED) + .withComputeProcessor(ComputeProcessorType.AMD) + .withComputeGeneration(3) + .withVCores(2)) + .withNodeCount(1) + .withHighAvailability(new PoolHighAvailability().withMode(PoolHighAvailabilityMode.DISABLED)) + .withParameterGroup(new PoolParameterGroupReference().withParameterGroupResourceId( + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.HorizonDb/locations/eastus2/parameterGroups/default-postgresql-17-provisioned") + .withApplyMethod(ParameterApplyMethod.IMMEDIATE)) + .withScheduledMaintenance(new SystemScheduledMaintenanceProperties())) + .create(); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PoolsDeleteSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PoolsDeleteSamples.java new file mode 100644 index 0000000000000..ca3bd6628140c --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PoolsDeleteSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for Pools Delete. + */ +public final class PoolsDeleteSamples { + /* + * x-ms-original-file: 2026-10-01-preview/Pools_Delete.json + */ + /** + * Sample code: Delete the last HorizonDB pool and disconnect private endpoint connections. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void deleteTheLastHorizonDBPoolAndDisconnectPrivateEndpointConnections( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.pools() + .delete("example-resource-group", "example-cluster", "example-pool-01", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPoolsGetSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PoolsGetSamples.java similarity index 61% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPoolsGetSamples.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PoolsGetSamples.java index 288b1153e02e5..d1ef913424a08 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPoolsGetSamples.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PoolsGetSamples.java @@ -5,11 +5,11 @@ package com.azure.resourcemanager.horizondb.generated; /** - * Samples for HorizonDbPools Get. + * Samples for Pools Get. */ -public final class HorizonDbPoolsGetSamples { +public final class PoolsGetSamples { /* - * x-ms-original-file: 2026-05-01-preview/Pools_Get.json + * x-ms-original-file: 2026-10-01-preview/Pools_Get.json */ /** * Sample code: Get a HorizonDB pool. @@ -17,7 +17,8 @@ public final class HorizonDbPoolsGetSamples { * @param manager Entry point to HorizonDbManager. */ public static void getAHorizonDBPool(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbPools() - .getWithResponse("exampleresourcegroup", "examplecluster", "examplepool", com.azure.core.util.Context.NONE); + manager.pools() + .getWithResponse("example-resource-group", "example-cluster", "example-pool-01", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPoolsListSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PoolsListSamples.java similarity index 65% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPoolsListSamples.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PoolsListSamples.java index 0431a533319fb..579094326d865 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPoolsListSamples.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PoolsListSamples.java @@ -5,11 +5,11 @@ package com.azure.resourcemanager.horizondb.generated; /** - * Samples for HorizonDbPools List. + * Samples for Pools List. */ -public final class HorizonDbPoolsListSamples { +public final class PoolsListSamples { /* - * x-ms-original-file: 2026-05-01-preview/Pools_List.json + * x-ms-original-file: 2026-10-01-preview/Pools_List.json */ /** * Sample code: List HorizonDB pools in a cluster. @@ -17,6 +17,6 @@ public final class HorizonDbPoolsListSamples { * @param manager Entry point to HorizonDbManager. */ public static void listHorizonDBPoolsInACluster(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbPools().list("exampleresourcegroup", "examplecluster", com.azure.core.util.Context.NONE); + manager.pools().list("example-resource-group", "example-cluster", com.azure.core.util.Context.NONE); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PoolsRestartSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PoolsRestartSamples.java new file mode 100644 index 0000000000000..8b6d8b425c3c5 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PoolsRestartSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for Pools Restart. + */ +public final class PoolsRestartSamples { + /* + * x-ms-original-file: 2026-10-01-preview/Pools_Restart.json + */ + /** + * Sample code: Restart a HorizonDB pool and apply pending parameter changes. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void restartAHorizonDBPoolAndApplyPendingParameterChanges( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.pools() + .restart("exampleresourcegroup", "examplecluster", "example-pool-01", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PoolsStartSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PoolsStartSamples.java new file mode 100644 index 0000000000000..81d4856e2b1ad --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PoolsStartSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for Pools Start. + */ +public final class PoolsStartSamples { + /* + * x-ms-original-file: 2026-10-01-preview/Pools_Start.json + */ + /** + * Sample code: Start a HorizonDB pool without applying pending parameter changes. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void startAHorizonDBPoolWithoutApplyingPendingParameterChanges( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.pools() + .start("exampleresourcegroup", "examplecluster", "example-pool-01", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PoolsStopSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PoolsStopSamples.java new file mode 100644 index 0000000000000..02ec33dd49b7e --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PoolsStopSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for Pools Stop. + */ +public final class PoolsStopSamples { + /* + * x-ms-original-file: 2026-10-01-preview/Pools_Stop.json + */ + /** + * Sample code: Stop and deallocate a HorizonDB pool without applying pending parameter changes. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void stopAndDeallocateAHorizonDBPoolWithoutApplyingPendingParameterChanges( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.pools() + .stop("exampleresourcegroup", "examplecluster", "example-pool-01", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PoolsUpdateSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PoolsUpdateSamples.java new file mode 100644 index 0000000000000..7939028622f4c --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PoolsUpdateSamples.java @@ -0,0 +1,128 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.resourcemanager.horizondb.models.ParameterApplyMethod; +import com.azure.resourcemanager.horizondb.models.Pool; +import com.azure.resourcemanager.horizondb.models.PoolComputeModelForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.PoolHighAvailabilityMode; +import com.azure.resourcemanager.horizondb.models.PoolHighAvailabilityPatch; +import com.azure.resourcemanager.horizondb.models.PoolParameterGroupReferenceForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.PoolPropertiesForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.ScheduledMaintenanceManagementType; +import com.azure.resourcemanager.horizondb.models.ScheduledMaintenancePropertiesForPatchUpdate; + +/** + * Samples for Pools Update. + */ +public final class PoolsUpdateSamples { + /* + * x-ms-original-file: 2026-10-01-preview/Pools_Update.json + */ + /** + * Sample code: Update a single HorizonDB pool compute property. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + updateASingleHorizonDBPoolComputeProperty(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + Pool resource = manager.pools() + .getWithResponse("example-resource-group", "example-cluster", "example-pool-01", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withProperties( + new PoolPropertiesForPatchUpdate().withComputeModel(new PoolComputeModelForPatchUpdate().withVCores(16)) + .withScheduledMaintenance(new ScheduledMaintenancePropertiesForPatchUpdate() + .withMaintenanceManagementType(ScheduledMaintenanceManagementType.SYSTEM))) + .apply(); + } + + /* + * x-ms-original-file: 2026-10-01-preview/Pools_UpdateParameterGroupDefault.json + */ + /** + * Sample code: Switch a HorizonDB pool back to its corresponding default parameter group. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void switchAHorizonDBPoolBackToItsCorrespondingDefaultParameterGroup( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + Pool resource = manager.pools() + .getWithResponse("example-resource-group", "example-cluster", "example-pool-01", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withProperties(new PoolPropertiesForPatchUpdate() + .withParameterGroup(new PoolParameterGroupReferenceForPatchUpdate().withParameterGroupResourceId( + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/providers/Microsoft.HorizonDb/locations/eastus2/parameterGroups/default-postgresql-17-provisioned") + .withApplyMethod(ParameterApplyMethod.IMMEDIATE))) + .apply(); + } + + /* + * x-ms-original-file: 2026-10-01-preview/Pools_UpdateParameterGroupImmediate.json + */ + /** + * Sample code: Associate a HorizonDB pool with a parameter group immediately. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void associateAHorizonDBPoolWithAParameterGroupImmediately( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + Pool resource = manager.pools() + .getWithResponse("example-resource-group", "example-cluster", "example-pool-01", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withProperties(new PoolPropertiesForPatchUpdate() + .withParameterGroup(new PoolParameterGroupReferenceForPatchUpdate().withParameterGroupResourceId( + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/parameterGroups/production-parameters") + .withApplyMethod(ParameterApplyMethod.IMMEDIATE))) + .apply(); + } + + /* + * x-ms-original-file: 2026-10-01-preview/Pools_UpdateParameterGroupPendingReboot.json + */ + /** + * Sample code: Associate a HorizonDB pool with a parameter group pending reboot. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void associateAHorizonDBPoolWithAParameterGroupPendingReboot( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + Pool resource = manager.pools() + .getWithResponse("example-resource-group", "example-cluster", "example-pool-01", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withProperties(new PoolPropertiesForPatchUpdate() + .withParameterGroup(new PoolParameterGroupReferenceForPatchUpdate().withParameterGroupResourceId( + "/subscriptions/ffffffff-ffff-ffff-ffff-ffffffffffff/resourceGroups/example-resource-group/providers/Microsoft.HorizonDb/parameterGroups/maintenance-window-parameters") + .withApplyMethod(ParameterApplyMethod.PENDING_REBOOT))) + .apply(); + } + + /* + * x-ms-original-file: 2026-10-01-preview/Pools_UpdateHighAvailabilityMode.json + */ + /** + * Sample code: Require zone-redundant placement for a HorizonDB pool. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + requireZoneRedundantPlacementForAHorizonDBPool(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + Pool resource = manager.pools() + .getWithResponse("example-resource-group", "example-cluster", "example-pool-01", + com.azure.core.util.Context.NONE) + .getValue(); + resource.update() + .withProperties(new PoolPropertiesForPatchUpdate().withHighAvailability( + new PoolHighAvailabilityPatch().withMode(PoolHighAvailabilityMode.ZONE_REDUNDANT))) + .apply(); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointConnectionsApproveOrRejectSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointConnectionsApproveOrRejectSamples.java new file mode 100644 index 0000000000000..b87fbfe5c255d --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointConnectionsApproveOrRejectSamples.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.horizondb.generated; + +import com.azure.resourcemanager.horizondb.models.PrivateEndpointConnectionProperties; +import com.azure.resourcemanager.horizondb.models.PrivateEndpointServiceConnectionStatus; +import com.azure.resourcemanager.horizondb.models.PrivateLinkServiceConnectionState; + +/** + * Samples for PrivateEndpointConnections ApproveOrReject. + */ +public final class PrivateEndpointConnectionsApproveOrRejectSamples { + /* + * x-ms-original-file: 2026-10-01-preview/PrivateEndpointConnections_ApproveOrReject.json + */ + /** + * Sample code: Approve or reject a private endpoint connection. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void + approveOrRejectAPrivateEndpointConnection(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.privateEndpointConnections() + .define("example-private-endpoint-connection") + .withExistingCluster("example-resource-group", "example-cluster") + .withProperties(new PrivateEndpointConnectionProperties().withPrivateLinkServiceConnectionState( + new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointServiceConnectionStatus.APPROVED) + .withDescription("Approved for the production database network"))) + .create(); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateEndpointConnectionsDeleteSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointConnectionsDeleteSamples.java similarity index 59% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateEndpointConnectionsDeleteSamples.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointConnectionsDeleteSamples.java index 65bdaace277b4..410176f0097ff 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateEndpointConnectionsDeleteSamples.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointConnectionsDeleteSamples.java @@ -5,11 +5,11 @@ package com.azure.resourcemanager.horizondb.generated; /** - * Samples for HorizonDbPrivateEndpointConnections Delete. + * Samples for PrivateEndpointConnections Delete. */ -public final class HorizonDbPrivateEndpointConnectionsDeleteSamples { +public final class PrivateEndpointConnectionsDeleteSamples { /* - * x-ms-original-file: 2026-05-01-preview/PrivateEndpointConnections_Delete.json + * x-ms-original-file: 2026-10-01-preview/PrivateEndpointConnections_Delete.json */ /** * Sample code: Delete a private endpoint connection. @@ -17,9 +17,8 @@ public final class HorizonDbPrivateEndpointConnectionsDeleteSamples { * @param manager Entry point to HorizonDbManager. */ public static void deleteAPrivateEndpointConnection(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { - manager.horizonDbPrivateEndpointConnections() - .delete("exampleresourcegroup", "examplecluster", - "exampleprivateendpointconnection.1fa229cd-bf3f-47f0-8c49-afb36723997e", + manager.privateEndpointConnections() + .delete("example-resource-group", "example-cluster", "example-private-endpoint-connection", com.azure.core.util.Context.NONE); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointConnectionsGetSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointConnectionsGetSamples.java new file mode 100644 index 0000000000000..ded55309e2dfe --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointConnectionsGetSamples.java @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for PrivateEndpointConnections Get. + */ +public final class PrivateEndpointConnectionsGetSamples { + /* + * x-ms-original-file: 2026-10-01-preview/PrivateEndpointConnections_GetDisconnectedAfterLastPoolDeletion.json + */ + /** + * Sample code: Get a private endpoint connection disconnected after the last pool was deleted. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void getAPrivateEndpointConnectionDisconnectedAfterTheLastPoolWasDeleted( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.privateEndpointConnections() + .getWithResponse("example-resource-group", "example-cluster", "example-private-endpoint-connection", + com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-10-01-preview/PrivateEndpointConnections_Get.json + */ + /** + * Sample code: Get a private endpoint connection. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void getAPrivateEndpointConnection(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.privateEndpointConnections() + .getWithResponse("example-resource-group", "example-cluster", "example-private-endpoint-connection", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointConnectionsListSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointConnectionsListSamples.java new file mode 100644 index 0000000000000..332e20d097d60 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointConnectionsListSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for PrivateEndpointConnections List. + */ +public final class PrivateEndpointConnectionsListSamples { + /* + * x-ms-original-file: 2026-10-01-preview/PrivateEndpointConnections_List.json + */ + /** + * Sample code: List private endpoint connections on a HorizonDB cluster. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void listPrivateEndpointConnectionsOnAHorizonDBCluster( + com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.privateEndpointConnections() + .list("example-resource-group", "example-cluster", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PrivateLinkResourcesGetSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PrivateLinkResourcesGetSamples.java new file mode 100644 index 0000000000000..1856918694b11 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PrivateLinkResourcesGetSamples.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for PrivateLinkResources Get. + */ +public final class PrivateLinkResourcesGetSamples { + /* + * x-ms-original-file: 2026-10-01-preview/PrivateLinkResources_Get.json + */ + /** + * Sample code: Get a HorizonDB private link resource. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void getAHorizonDBPrivateLinkResource(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.privateLinkResources() + .getWithResponse("example-resource-group", "example-cluster", "example-cluster", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PrivateLinkResourcesListSamples.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PrivateLinkResourcesListSamples.java new file mode 100644 index 0000000000000..e030d96effba7 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/samples/java/com/azure/resourcemanager/horizondb/generated/PrivateLinkResourcesListSamples.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +/** + * Samples for PrivateLinkResources List. + */ +public final class PrivateLinkResourcesListSamples { + /* + * x-ms-original-file: 2026-10-01-preview/PrivateLinkResources_List.json + */ + /** + * Sample code: List HorizonDB private link resources. + * + * @param manager Entry point to HorizonDbManager. + */ + public static void listHorizonDBPrivateLinkResources(com.azure.resourcemanager.horizondb.HorizonDbManager manager) { + manager.privateLinkResources() + .list("example-resource-group", "example-cluster", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ActivateChangeDataCaptureIdentityRequestTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ActivateChangeDataCaptureIdentityRequestTests.java new file mode 100644 index 0000000000000..6ac31474804ad --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ActivateChangeDataCaptureIdentityRequestTests.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.ActivateChangeDataCaptureIdentityRequest; +import org.junit.jupiter.api.Assertions; + +public final class ActivateChangeDataCaptureIdentityRequestTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ActivateChangeDataCaptureIdentityRequest model + = BinaryData.fromString("{\"identityAssignmentResourceId\":\"ayffim\",\"drainExistingSessions\":false}") + .toObject(ActivateChangeDataCaptureIdentityRequest.class); + Assertions.assertEquals("ayffim", model.identityAssignmentResourceId()); + Assertions.assertFalse(model.drainExistingSessions()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ActivateChangeDataCaptureIdentityRequest model + = new ActivateChangeDataCaptureIdentityRequest().withIdentityAssignmentResourceId("ayffim") + .withDrainExistingSessions(false); + model = BinaryData.fromObject(model).toObject(ActivateChangeDataCaptureIdentityRequest.class); + Assertions.assertEquals("ayffim", model.identityAssignmentResourceId()); + Assertions.assertFalse(model.drainExistingSessions()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ActivateChangeDataCaptureIdentityResultInnerTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ActivateChangeDataCaptureIdentityResultInnerTests.java new file mode 100644 index 0000000000000..47c9ef844962c --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ActivateChangeDataCaptureIdentityResultInnerTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.fluent.models.ActivateChangeDataCaptureIdentityResultInner; + +public final class ActivateChangeDataCaptureIdentityResultInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ActivateChangeDataCaptureIdentityResultInner model = BinaryData.fromString( + "{\"targetIdentityAssignmentResourceId\":\"tuzqogsexne\",\"previousIdentityAssignmentResourceId\":\"dnw\"}") + .toObject(ActivateChangeDataCaptureIdentityResultInner.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/AuthenticationInnerTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/AuthenticationInnerTests.java new file mode 100644 index 0000000000000..72c6dea2b8cbe --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/AuthenticationInnerTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.fluent.models.AuthenticationInner; + +public final class AuthenticationInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + AuthenticationInner model = BinaryData.fromString( + "{\"properties\":{\"state\":\"Enabled\",\"provisioningState\":\"Provisioning\"},\"id\":\"ik\",\"name\":\"wggxkallat\",\"type\":\"elwuipi\"}") + .toObject(AuthenticationInner.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/AuthenticationListResultTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/AuthenticationListResultTests.java new file mode 100644 index 0000000000000..ab810a9373fca --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/AuthenticationListResultTests.java @@ -0,0 +1,19 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.implementation.models.AuthenticationListResult; +import org.junit.jupiter.api.Assertions; + +public final class AuthenticationListResultTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + AuthenticationListResult model = BinaryData.fromString( + "{\"value\":[{\"properties\":{\"state\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"id\":\"ldtlwwr\",\"name\":\"kdmtncvokotll\",\"type\":\"d\"},{\"properties\":{\"state\":\"Enabled\",\"provisioningState\":\"Provisioning\"},\"id\":\"cogjltdtbn\",\"name\":\"hadoocrk\",\"type\":\"cikhnv\"}],\"nextLink\":\"mqg\"}") + .toObject(AuthenticationListResult.class); + Assertions.assertEquals("mqg", model.nextLink()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/AuthenticationPropertiesTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/AuthenticationPropertiesTests.java new file mode 100644 index 0000000000000..1b559556e98fc --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/AuthenticationPropertiesTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.AuthenticationProperties; + +public final class AuthenticationPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + AuthenticationProperties model + = BinaryData.fromString("{\"state\":\"Disabled\",\"provisioningState\":\"Canceled\"}") + .toObject(AuthenticationProperties.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersStartMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/AuthenticationsListMockTests.java similarity index 68% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersStartMockTests.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/AuthenticationsListMockTests.java index c5853e1cbebc7..765ee94de1a1e 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersStartMockTests.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/AuthenticationsListMockTests.java @@ -6,19 +6,22 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; +import com.azure.core.http.rest.PagedIterable; import com.azure.core.management.profile.AzureProfile; import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.horizondb.HorizonDbManager; +import com.azure.resourcemanager.horizondb.models.Authentication; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; -public final class HorizonDbClustersStartMockTests { +public final class AuthenticationsListMockTests { @Test - public void testStart() throws Exception { - String responseStr = "{}"; + public void testList() throws Exception { + String responseStr + = "{\"value\":[{\"properties\":{\"state\":\"Disabled\",\"provisioningState\":\"Succeeded\"},\"id\":\"reljeamur\",\"name\":\"zmlovuanash\",\"type\":\"xlpm\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -27,7 +30,8 @@ public void testStart() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.horizonDbClusters().start("podxunkb", "bxmubyynt", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.authentications().list("cvjtszcofiz", "htd", com.azure.core.util.Context.NONE); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/BackupPropertiesForPatchUpdateTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/BackupPropertiesForPatchUpdateTests.java new file mode 100644 index 0000000000000..81bd7ad7a84e0 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/BackupPropertiesForPatchUpdateTests.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.BackupPropertiesForPatchUpdate; +import org.junit.jupiter.api.Assertions; + +public final class BackupPropertiesForPatchUpdateTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + BackupPropertiesForPatchUpdate model + = BinaryData.fromString("{\"retentionDays\":361275746}").toObject(BackupPropertiesForPatchUpdate.class); + Assertions.assertEquals(361275746, model.retentionDays()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + BackupPropertiesForPatchUpdate model = new BackupPropertiesForPatchUpdate().withRetentionDays(361275746); + model = BinaryData.fromObject(model).toObject(BackupPropertiesForPatchUpdate.class); + Assertions.assertEquals(361275746, model.retentionDays()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/BackupPropertiesTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/BackupPropertiesTests.java new file mode 100644 index 0000000000000..deda016553a16 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/BackupPropertiesTests.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.BackupProperties; +import com.azure.resourcemanager.horizondb.models.GeoRedundancyState; +import org.junit.jupiter.api.Assertions; + +public final class BackupPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + BackupProperties model = BinaryData.fromString( + "{\"geoRedundancy\":\"Enabled\",\"retentionDays\":942645397,\"earliestRestorePointUtc\":\"2021-01-02T21:42:03Z\"}") + .toObject(BackupProperties.class); + Assertions.assertEquals(GeoRedundancyState.ENABLED, model.geoRedundancy()); + Assertions.assertEquals(942645397, model.retentionDays()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + BackupProperties model + = new BackupProperties().withGeoRedundancy(GeoRedundancyState.ENABLED).withRetentionDays(942645397); + model = BinaryData.fromObject(model).toObject(BackupProperties.class); + Assertions.assertEquals(GeoRedundancyState.ENABLED, model.geoRedundancy()); + Assertions.assertEquals(942645397, model.retentionDays()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/CapabilitiesGetWithResponseMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/CapabilitiesGetWithResponseMockTests.java new file mode 100644 index 0000000000000..a88c827a931a3 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/CapabilitiesGetWithResponseMockTests.java @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.horizondb.HorizonDbManager; +import com.azure.resourcemanager.horizondb.models.Capability; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class CapabilitiesGetWithResponseMockTests { + @Test + public void testGetWithResponse() throws Exception { + String responseStr + = "{\"properties\":{\"provisioningState\":\"Canceled\",\"clusterCapabilities\":{\"recommendedPostgreSqlVersion\":\"17\",\"supportedPostgreSqlVersions\":[{\"name\":\"18\",\"supportedVersionsToUpgrade\":[\"17\",\"18\",\"18\",\"17\"]},{\"name\":\"18\",\"supportedVersionsToUpgrade\":[\"18\",\"17\",\"18\"]},{\"name\":\"17\",\"supportedVersionsToUpgrade\":[\"17\"]},{\"name\":\"17\",\"supportedVersionsToUpgrade\":[\"17\"]}],\"supportedFeatures\":[{\"name\":\"fbn\"}]},\"poolCapabilities\":{\"recommendedComputeProcessor\":\"Intel\",\"supportedProcessors\":[{\"name\":\"AMD\",\"supportedGenerations\":[{\"computeGeneration\":171252991,\"recommendedComputeModelType\":\"Provisioned\",\"supportedComputeModels\":[]},{\"computeGeneration\":488471027,\"recommendedComputeModelType\":\"Provisioned\",\"supportedComputeModels\":[]}]},{\"name\":\"Intel\",\"supportedGenerations\":[{\"computeGeneration\":1116199441,\"recommendedComputeModelType\":\"Provisioned\",\"supportedComputeModels\":[]},{\"computeGeneration\":845127211,\"recommendedComputeModelType\":\"Provisioned\",\"supportedComputeModels\":[]},{\"computeGeneration\":1795332478,\"recommendedComputeModelType\":\"Provisioned\",\"supportedComputeModels\":[]},{\"computeGeneration\":1248182459,\"recommendedComputeModelType\":\"Provisioned\",\"supportedComputeModels\":[]}]},{\"name\":\"Intel\",\"supportedGenerations\":[{\"computeGeneration\":479082652,\"recommendedComputeModelType\":\"Provisioned\",\"supportedComputeModels\":[]}]}],\"supportedFeatures\":[{\"name\":\"ijejvegrhbpn\"},{\"name\":\"ixexcc\"},{\"name\":\"dreaxh\"},{\"name\":\"exdrrvqahqkg\"}]}},\"id\":\"pwijnhy\",\"name\":\"svfycxzbfv\",\"type\":\"owvrvmtgjqppyos\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + HorizonDbManager manager = HorizonDbManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + Capability response + = manager.capabilities().getWithResponse("vjayvblmhvkzu", com.azure.core.util.Context.NONE).getValue(); + + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/CapabilitiesListMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/CapabilitiesListMockTests.java new file mode 100644 index 0000000000000..37920cdf20f63 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/CapabilitiesListMockTests.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.horizondb.HorizonDbManager; +import com.azure.resourcemanager.horizondb.models.Capability; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class CapabilitiesListMockTests { + @Test + public void testList() throws Exception { + String responseStr + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"clusterCapabilities\":{\"recommendedPostgreSqlVersion\":\"18\",\"supportedPostgreSqlVersions\":[{\"name\":\"18\",\"supportedVersionsToUpgrade\":[\"17\"]},{\"name\":\"17\",\"supportedVersionsToUpgrade\":[\"18\",\"18\",\"18\"]},{\"name\":\"18\",\"supportedVersionsToUpgrade\":[\"17\",\"17\"]}],\"supportedFeatures\":[{\"name\":\"sgumhjglikkxwsl\"},{\"name\":\"lbqpvuzlmvfelf\"}]},\"poolCapabilities\":{\"recommendedComputeProcessor\":\"Intel\",\"supportedProcessors\":[{\"name\":\"AMD\",\"supportedGenerations\":[{\"computeGeneration\":957829467,\"recommendedComputeModelType\":\"Provisioned\",\"supportedComputeModels\":[]},{\"computeGeneration\":1827941579,\"recommendedComputeModelType\":\"Provisioned\",\"supportedComputeModels\":[]}]},{\"name\":\"AMD\",\"supportedGenerations\":[{\"computeGeneration\":1534218395,\"recommendedComputeModelType\":\"Provisioned\",\"supportedComputeModels\":[]},{\"computeGeneration\":879908926,\"recommendedComputeModelType\":\"Provisioned\",\"supportedComputeModels\":[]}]},{\"name\":\"Intel\",\"supportedGenerations\":[{\"computeGeneration\":1802725249,\"recommendedComputeModelType\":\"Provisioned\",\"supportedComputeModels\":[]}]},{\"name\":\"AMD\",\"supportedGenerations\":[{\"computeGeneration\":78326163,\"recommendedComputeModelType\":\"Provisioned\",\"supportedComputeModels\":[]},{\"computeGeneration\":2126528324,\"recommendedComputeModelType\":\"Provisioned\",\"supportedComputeModels\":[]},{\"computeGeneration\":490713776,\"recommendedComputeModelType\":\"Provisioned\",\"supportedComputeModels\":[]}]}],\"supportedFeatures\":[{\"name\":\"saz\"},{\"name\":\"jjoqkagf\"},{\"name\":\"sxtta\"}]}},\"id\":\"zxnfaaz\",\"name\":\"xdtnkdmkqjjlw\",\"type\":\"envrkpyouaibrebq\"}]}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + HorizonDbManager manager = HorizonDbManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + PagedIterable response + = manager.capabilities().list("ronzmyhgfip", com.azure.core.util.Context.NONE); + + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/CapabilityInnerTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/CapabilityInnerTests.java new file mode 100644 index 0000000000000..a5d56166e24d4 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/CapabilityInnerTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.fluent.models.CapabilityInner; + +public final class CapabilityInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + CapabilityInner model = BinaryData.fromString( + "{\"properties\":{\"provisioningState\":\"InProgress\",\"clusterCapabilities\":{\"recommendedPostgreSqlVersion\":\"17\",\"supportedPostgreSqlVersions\":[{\"name\":\"17\",\"supportedVersionsToUpgrade\":[\"18\"]},{\"name\":\"17\",\"supportedVersionsToUpgrade\":[\"18\",\"18\",\"18\"]},{\"name\":\"17\",\"supportedVersionsToUpgrade\":[\"18\",\"18\"]},{\"name\":\"17\",\"supportedVersionsToUpgrade\":[\"18\",\"18\",\"17\",\"17\"]}],\"supportedFeatures\":[{\"name\":\"hdbihan\"},{\"name\":\"fhfcb\"},{\"name\":\"y\"}]},\"poolCapabilities\":{\"recommendedComputeProcessor\":\"Intel\",\"supportedProcessors\":[{\"name\":\"AMD\",\"supportedGenerations\":[{\"computeGeneration\":901713267,\"recommendedComputeModelType\":\"Provisioned\",\"supportedComputeModels\":[]}]}],\"supportedFeatures\":[{\"name\":\"hab\"},{\"name\":\"fpikxwczb\"},{\"name\":\"scnpqxuhivy\"},{\"name\":\"n\"}]}},\"id\":\"b\",\"name\":\"br\",\"type\":\"xvd\"}") + .toObject(CapabilityInner.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/CapabilityListResultTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/CapabilityListResultTests.java new file mode 100644 index 0000000000000..c4b48b178b68d --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/CapabilityListResultTests.java @@ -0,0 +1,19 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.implementation.models.CapabilityListResult; +import org.junit.jupiter.api.Assertions; + +public final class CapabilityListResultTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + CapabilityListResult model = BinaryData.fromString( + "{\"value\":[{\"properties\":{\"provisioningState\":\"Canceled\",\"clusterCapabilities\":{\"recommendedPostgreSqlVersion\":\"18\",\"supportedPostgreSqlVersions\":[{\"name\":\"17\",\"supportedVersionsToUpgrade\":[]},{\"name\":\"18\",\"supportedVersionsToUpgrade\":[]},{\"name\":\"18\",\"supportedVersionsToUpgrade\":[]}],\"supportedFeatures\":[{\"name\":\"rgqjbpfzfsinzg\"}]},\"poolCapabilities\":{\"recommendedComputeProcessor\":\"Intel\",\"supportedProcessors\":[{\"name\":\"Intel\",\"supportedGenerations\":[]},{\"name\":\"AMD\",\"supportedGenerations\":[]},{\"name\":\"Intel\",\"supportedGenerations\":[]},{\"name\":\"Intel\",\"supportedGenerations\":[]}],\"supportedFeatures\":[{\"name\":\"xxjtfe\"},{\"name\":\"luwfzitonpeqfpjk\"},{\"name\":\"lxofpdvhpfxxypin\"}]}},\"id\":\"mayhuybbkpodepoo\",\"name\":\"inuvamiheogn\",\"type\":\"rxzxtheo\"},{\"properties\":{\"provisioningState\":\"Canceled\",\"clusterCapabilities\":{\"recommendedPostgreSqlVersion\":\"18\",\"supportedPostgreSqlVersions\":[{\"name\":\"18\",\"supportedVersionsToUpgrade\":[]}],\"supportedFeatures\":[{\"name\":\"cciqihnhungbwjz\"}]},\"poolCapabilities\":{\"recommendedComputeProcessor\":\"AMD\",\"supportedProcessors\":[{\"name\":\"AMD\",\"supportedGenerations\":[]},{\"name\":\"Intel\",\"supportedGenerations\":[]},{\"name\":\"AMD\",\"supportedGenerations\":[]},{\"name\":\"AMD\",\"supportedGenerations\":[]}],\"supportedFeatures\":[{\"name\":\"spemvtzfk\"}]}},\"id\":\"ubljofxqe\",\"name\":\"fjaeq\",\"type\":\"hqjbasvmsmj\"},{\"properties\":{\"provisioningState\":\"InProgress\",\"clusterCapabilities\":{\"recommendedPostgreSqlVersion\":\"18\",\"supportedPostgreSqlVersions\":[{\"name\":\"18\",\"supportedVersionsToUpgrade\":[]},{\"name\":\"17\",\"supportedVersionsToUpgrade\":[]},{\"name\":\"18\",\"supportedVersionsToUpgrade\":[]}],\"supportedFeatures\":[{\"name\":\"ybkzgcwr\"},{\"name\":\"clxxwrljdo\"},{\"name\":\"skcqvkocrcjd\"},{\"name\":\"wtnhxbnjbiksqr\"}]},\"poolCapabilities\":{\"recommendedComputeProcessor\":\"Intel\",\"supportedProcessors\":[{\"name\":\"AMD\",\"supportedGenerations\":[]},{\"name\":\"AMD\",\"supportedGenerations\":[]},{\"name\":\"AMD\",\"supportedGenerations\":[]},{\"name\":\"AMD\",\"supportedGenerations\":[]}],\"supportedFeatures\":[{\"name\":\"p\"},{\"name\":\"wnzlljfmppeeb\"},{\"name\":\"mgxsab\"}]}},\"id\":\"qduujitcjczdz\",\"name\":\"vndhkrwpdapp\",\"type\":\"sbdkvwr\"}],\"nextLink\":\"feusnhut\"}") + .toObject(CapabilityListResult.class); + Assertions.assertEquals("feusnhut", model.nextLink()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/CapabilityPropertiesTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/CapabilityPropertiesTests.java new file mode 100644 index 0000000000000..8847014d77c1d --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/CapabilityPropertiesTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.CapabilityProperties; + +public final class CapabilityPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + CapabilityProperties model = BinaryData.fromString( + "{\"provisioningState\":\"Failed\",\"clusterCapabilities\":{\"recommendedPostgreSqlVersion\":\"17\",\"supportedPostgreSqlVersions\":[{\"name\":\"18\",\"supportedVersionsToUpgrade\":[\"17\",\"17\"]}],\"supportedFeatures\":[{\"name\":\"k\"},{\"name\":\"gaudcc\"}]},\"poolCapabilities\":{\"recommendedComputeProcessor\":\"AMD\",\"supportedProcessors\":[{\"name\":\"Intel\",\"supportedGenerations\":[{\"computeGeneration\":2045600331,\"recommendedComputeModelType\":\"Provisioned\",\"supportedComputeModels\":[{\"type\":\"ComputeModelCapability\"},{\"type\":\"ComputeModelCapability\"}]}]}],\"supportedFeatures\":[{\"name\":\"j\"},{\"name\":\"kryhtnapczwlokj\"}]}}") + .toObject(CapabilityProperties.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureCapabilityForPatchUpdateTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureCapabilityForPatchUpdateTests.java new file mode 100644 index 0000000000000..a1326e4e4413e --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureCapabilityForPatchUpdateTests.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.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureCapabilityForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureCapabilityPropertiesForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDesiredState; +import org.junit.jupiter.api.Assertions; + +public final class ChangeDataCaptureCapabilityForPatchUpdateTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ChangeDataCaptureCapabilityForPatchUpdate model + = BinaryData.fromString("{\"properties\":{\"desiredState\":\"Disabled\",\"autoUpgradeExtension\":false}}") + .toObject(ChangeDataCaptureCapabilityForPatchUpdate.class); + Assertions.assertEquals(ChangeDataCaptureDesiredState.DISABLED, model.properties().desiredState()); + Assertions.assertFalse(model.properties().autoUpgradeExtension()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ChangeDataCaptureCapabilityForPatchUpdate model = new ChangeDataCaptureCapabilityForPatchUpdate() + .withProperties(new ChangeDataCaptureCapabilityPropertiesForPatchUpdate() + .withDesiredState(ChangeDataCaptureDesiredState.DISABLED) + .withAutoUpgradeExtension(false)); + model = BinaryData.fromObject(model).toObject(ChangeDataCaptureCapabilityForPatchUpdate.class); + Assertions.assertEquals(ChangeDataCaptureDesiredState.DISABLED, model.properties().desiredState()); + Assertions.assertFalse(model.properties().autoUpgradeExtension()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureCapabilityPropertiesForPatchUpdateTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureCapabilityPropertiesForPatchUpdateTests.java new file mode 100644 index 0000000000000..6ab4bfb8a8bb9 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureCapabilityPropertiesForPatchUpdateTests.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.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureCapabilityPropertiesForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDesiredState; +import org.junit.jupiter.api.Assertions; + +public final class ChangeDataCaptureCapabilityPropertiesForPatchUpdateTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ChangeDataCaptureCapabilityPropertiesForPatchUpdate model + = BinaryData.fromString("{\"desiredState\":\"Disabled\",\"autoUpgradeExtension\":true}") + .toObject(ChangeDataCaptureCapabilityPropertiesForPatchUpdate.class); + Assertions.assertEquals(ChangeDataCaptureDesiredState.DISABLED, model.desiredState()); + Assertions.assertTrue(model.autoUpgradeExtension()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ChangeDataCaptureCapabilityPropertiesForPatchUpdate model + = new ChangeDataCaptureCapabilityPropertiesForPatchUpdate() + .withDesiredState(ChangeDataCaptureDesiredState.DISABLED) + .withAutoUpgradeExtension(true); + model = BinaryData.fromObject(model).toObject(ChangeDataCaptureCapabilityPropertiesForPatchUpdate.class); + Assertions.assertEquals(ChangeDataCaptureDesiredState.DISABLED, model.desiredState()); + Assertions.assertTrue(model.autoUpgradeExtension()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureConfigurationForPatchUpdateTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureConfigurationForPatchUpdateTests.java new file mode 100644 index 0000000000000..a73925dafa4b3 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureConfigurationForPatchUpdateTests.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureConfigurationForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureConfigurationPropertiesForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDesiredState; +import org.junit.jupiter.api.Assertions; + +public final class ChangeDataCaptureConfigurationForPatchUpdateTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ChangeDataCaptureConfigurationForPatchUpdate model + = BinaryData.fromString("{\"properties\":{\"desiredState\":\"Enabled\"}}") + .toObject(ChangeDataCaptureConfigurationForPatchUpdate.class); + Assertions.assertEquals(ChangeDataCaptureDesiredState.ENABLED, model.properties().desiredState()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ChangeDataCaptureConfigurationForPatchUpdate model = new ChangeDataCaptureConfigurationForPatchUpdate() + .withProperties(new ChangeDataCaptureConfigurationPropertiesForPatchUpdate() + .withDesiredState(ChangeDataCaptureDesiredState.ENABLED)); + model = BinaryData.fromObject(model).toObject(ChangeDataCaptureConfigurationForPatchUpdate.class); + Assertions.assertEquals(ChangeDataCaptureDesiredState.ENABLED, model.properties().desiredState()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureConfigurationPropertiesForPatchUpdateTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureConfigurationPropertiesForPatchUpdateTests.java new file mode 100644 index 0000000000000..40735ada939d4 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureConfigurationPropertiesForPatchUpdateTests.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureConfigurationPropertiesForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDesiredState; +import org.junit.jupiter.api.Assertions; + +public final class ChangeDataCaptureConfigurationPropertiesForPatchUpdateTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ChangeDataCaptureConfigurationPropertiesForPatchUpdate model + = BinaryData.fromString("{\"desiredState\":\"Enabled\"}") + .toObject(ChangeDataCaptureConfigurationPropertiesForPatchUpdate.class); + Assertions.assertEquals(ChangeDataCaptureDesiredState.ENABLED, model.desiredState()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ChangeDataCaptureConfigurationPropertiesForPatchUpdate model + = new ChangeDataCaptureConfigurationPropertiesForPatchUpdate() + .withDesiredState(ChangeDataCaptureDesiredState.ENABLED); + model = BinaryData.fromObject(model).toObject(ChangeDataCaptureConfigurationPropertiesForPatchUpdate.class); + Assertions.assertEquals(ChangeDataCaptureDesiredState.ENABLED, model.desiredState()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationDetailsTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationDetailsTests.java new file mode 100644 index 0000000000000..134f1c5e6cf4b --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationDetailsTests.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDestinationDetails; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureProtocol; +import org.junit.jupiter.api.Assertions; + +public final class ChangeDataCaptureDestinationDetailsTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ChangeDataCaptureDestinationDetails model = BinaryData + .fromString("{\"destinationType\":\"ChangeDataCaptureDestinationDetails\",\"protocol\":\"Native\"}") + .toObject(ChangeDataCaptureDestinationDetails.class); + Assertions.assertEquals(ChangeDataCaptureProtocol.NATIVE, model.protocol()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ChangeDataCaptureDestinationDetails model + = new ChangeDataCaptureDestinationDetails().withProtocol(ChangeDataCaptureProtocol.NATIVE); + model = BinaryData.fromObject(model).toObject(ChangeDataCaptureDestinationDetails.class); + Assertions.assertEquals(ChangeDataCaptureProtocol.NATIVE, model.protocol()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationForPatchUpdateTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationForPatchUpdateTests.java new file mode 100644 index 0000000000000..267b13b2be8e1 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationForPatchUpdateTests.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDesiredState; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDestinationForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDestinationPropertiesForPatchUpdate; +import org.junit.jupiter.api.Assertions; + +public final class ChangeDataCaptureDestinationForPatchUpdateTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ChangeDataCaptureDestinationForPatchUpdate model + = BinaryData.fromString("{\"properties\":{\"desiredState\":\"Disabled\"}}") + .toObject(ChangeDataCaptureDestinationForPatchUpdate.class); + Assertions.assertEquals(ChangeDataCaptureDesiredState.DISABLED, model.properties().desiredState()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ChangeDataCaptureDestinationForPatchUpdate model = new ChangeDataCaptureDestinationForPatchUpdate() + .withProperties(new ChangeDataCaptureDestinationPropertiesForPatchUpdate() + .withDesiredState(ChangeDataCaptureDesiredState.DISABLED)); + model = BinaryData.fromObject(model).toObject(ChangeDataCaptureDestinationForPatchUpdate.class); + Assertions.assertEquals(ChangeDataCaptureDesiredState.DISABLED, model.properties().desiredState()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationPropertiesForPatchUpdateTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationPropertiesForPatchUpdateTests.java new file mode 100644 index 0000000000000..533a4bced4cda --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationPropertiesForPatchUpdateTests.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDesiredState; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureDestinationPropertiesForPatchUpdate; +import org.junit.jupiter.api.Assertions; + +public final class ChangeDataCaptureDestinationPropertiesForPatchUpdateTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ChangeDataCaptureDestinationPropertiesForPatchUpdate model + = BinaryData.fromString("{\"desiredState\":\"Enabled\"}") + .toObject(ChangeDataCaptureDestinationPropertiesForPatchUpdate.class); + Assertions.assertEquals(ChangeDataCaptureDesiredState.ENABLED, model.desiredState()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ChangeDataCaptureDestinationPropertiesForPatchUpdate model + = new ChangeDataCaptureDestinationPropertiesForPatchUpdate() + .withDesiredState(ChangeDataCaptureDesiredState.ENABLED); + model = BinaryData.fromObject(model).toObject(ChangeDataCaptureDestinationPropertiesForPatchUpdate.class); + Assertions.assertEquals(ChangeDataCaptureDesiredState.ENABLED, model.desiredState()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationsActivateIdentityMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationsActivateIdentityMockTests.java new file mode 100644 index 0000000000000..462ac049adfa9 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureDestinationsActivateIdentityMockTests.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.horizondb.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.horizondb.HorizonDbManager; +import com.azure.resourcemanager.horizondb.models.ActivateChangeDataCaptureIdentityRequest; +import com.azure.resourcemanager.horizondb.models.ActivateChangeDataCaptureIdentityResult; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class ChangeDataCaptureDestinationsActivateIdentityMockTests { + @Test + public void testActivateIdentity() throws Exception { + String responseStr + = "{\"targetIdentityAssignmentResourceId\":\"vhdbevwqqxey\",\"previousIdentityAssignmentResourceId\":\"onqzinkfkbgbzbow\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + HorizonDbManager manager = HorizonDbManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + ActivateChangeDataCaptureIdentityResult response = manager.changeDataCaptureDestinations() + .activateIdentity("bdb", "qgqqihedsvqwthmk", "ibcysihsgqc", "dhohsdtmcdzsuf", + new ActivateChangeDataCaptureIdentityRequest().withIdentityAssignmentResourceId("ohdxbzlmcmu") + .withDrainExistingSessions(false), + com.azure.core.util.Context.NONE); + + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureExtensionStatusTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureExtensionStatusTests.java new file mode 100644 index 0000000000000..be19c5a501dc7 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureExtensionStatusTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureExtensionStatus; + +public final class ChangeDataCaptureExtensionStatusTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ChangeDataCaptureExtensionStatus model + = BinaryData.fromString("{\"name\":\"itc\",\"version\":\"kfcktqum\",\"state\":\"Removing\"}") + .toObject(ChangeDataCaptureExtensionStatus.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCapturePrerequisiteStatusTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCapturePrerequisiteStatusTests.java new file mode 100644 index 0000000000000..b03cc3d1cce01 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCapturePrerequisiteStatusTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.ChangeDataCapturePrerequisiteStatus; + +public final class ChangeDataCapturePrerequisiteStatusTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ChangeDataCapturePrerequisiteStatus model + = BinaryData.fromString("{\"engineConfigurationState\":\"Failed\",\"readWriteEndpointState\":\"Ready\"}") + .toObject(ChangeDataCapturePrerequisiteStatus.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureReplicationStatusTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureReplicationStatusTests.java new file mode 100644 index 0000000000000..bda2544cefb71 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureReplicationStatusTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureReplicationStatus; + +public final class ChangeDataCaptureReplicationStatusTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ChangeDataCaptureReplicationStatus model = BinaryData.fromString( + "{\"state\":\"Connecting\",\"externalArtifactId\":\"udutnco\",\"lastConnectedAtUtc\":\"2021-10-18T10:35:02Z\"}") + .toObject(ChangeDataCaptureReplicationStatus.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureTopologyBindingStatusTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureTopologyBindingStatusTests.java new file mode 100644 index 0000000000000..84657d17f0f67 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ChangeDataCaptureTopologyBindingStatusTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.ChangeDataCaptureTopologyBindingStatus; + +public final class ChangeDataCaptureTopologyBindingStatusTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ChangeDataCaptureTopologyBindingStatus model = BinaryData.fromString( + "{\"state\":\"Active\",\"generation\":8357004354243931890,\"activeClusterResourceId\":\"tvcof\",\"replacementConfigurationResourceId\":\"f\"}") + .toObject(ChangeDataCaptureTopologyBindingStatus.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ClusterCapabilityTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ClusterCapabilityTests.java new file mode 100644 index 0000000000000..1fc10c55667ef --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ClusterCapabilityTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.ClusterCapability; + +public final class ClusterCapabilityTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ClusterCapability model = BinaryData.fromString( + "{\"recommendedPostgreSqlVersion\":\"18\",\"supportedPostgreSqlVersions\":[{\"name\":\"18\",\"supportedVersionsToUpgrade\":[\"17\",\"17\",\"18\"]},{\"name\":\"18\",\"supportedVersionsToUpgrade\":[\"18\",\"18\",\"17\",\"17\"]}],\"supportedFeatures\":[{\"name\":\"chgejspodm\"},{\"name\":\"ilzyd\"}]}") + .toObject(ClusterCapability.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ClusterFeatureCapabilityTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ClusterFeatureCapabilityTests.java new file mode 100644 index 0000000000000..0d5945d2e0b2d --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ClusterFeatureCapabilityTests.java @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.ClusterFeatureCapability; + +public final class ClusterFeatureCapabilityTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ClusterFeatureCapability model + = BinaryData.fromString("{\"name\":\"wyahuxinpmqnja\"}").toObject(ClusterFeatureCapability.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ComputeGenerationCapabilityTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ComputeGenerationCapabilityTests.java new file mode 100644 index 0000000000000..6793506762fcf --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ComputeGenerationCapabilityTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.ComputeGenerationCapability; + +public final class ComputeGenerationCapabilityTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ComputeGenerationCapability model = BinaryData.fromString( + "{\"computeGeneration\":491201544,\"recommendedComputeModelType\":\"Provisioned\",\"supportedComputeModels\":[{\"type\":\"ComputeModelCapability\"},{\"type\":\"ComputeModelCapability\"},{\"type\":\"ComputeModelCapability\"},{\"type\":\"ComputeModelCapability\"}]}") + .toObject(ComputeGenerationCapability.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ComputeModelCapabilityTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ComputeModelCapabilityTests.java new file mode 100644 index 0000000000000..d22e9d6d37699 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ComputeModelCapabilityTests.java @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.ComputeModelCapability; + +public final class ComputeModelCapabilityTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ComputeModelCapability model + = BinaryData.fromString("{\"type\":\"ComputeModelCapability\"}").toObject(ComputeModelCapability.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ComputeProcessorCapabilityTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ComputeProcessorCapabilityTests.java new file mode 100644 index 0000000000000..a3646709c3406 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ComputeProcessorCapabilityTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.ComputeProcessorCapability; + +public final class ComputeProcessorCapabilityTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ComputeProcessorCapability model = BinaryData.fromString( + "{\"name\":\"AMD\",\"supportedGenerations\":[{\"computeGeneration\":276706615,\"recommendedComputeModelType\":\"Provisioned\",\"supportedComputeModels\":[{\"type\":\"ComputeModelCapability\"},{\"type\":\"ComputeModelCapability\"}]},{\"computeGeneration\":1201536256,\"recommendedComputeModelType\":\"Provisioned\",\"supportedComputeModels\":[{\"type\":\"ComputeModelCapability\"},{\"type\":\"ComputeModelCapability\"},{\"type\":\"ComputeModelCapability\"}]},{\"computeGeneration\":1389039399,\"recommendedComputeModelType\":\"Provisioned\",\"supportedComputeModels\":[{\"type\":\"ComputeModelCapability\"},{\"type\":\"ComputeModelCapability\"}]}]}") + .toObject(ComputeProcessorCapability.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ComputeSizeCapabilityTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ComputeSizeCapabilityTests.java new file mode 100644 index 0000000000000..3fa2942b4a15e --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ComputeSizeCapabilityTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.ComputeSizeCapability; + +public final class ComputeSizeCapabilityTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ComputeSizeCapability model + = BinaryData.fromString("{\"vCores\":718519788,\"memoryPerVCoreInMb\":4715886813780668171}") + .toObject(ComputeSizeCapability.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/DefaultParameterGroupInnerTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/DefaultParameterGroupInnerTests.java new file mode 100644 index 0000000000000..d6f77be3d7a08 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/DefaultParameterGroupInnerTests.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.fluent.models.DefaultParameterGroupInner; +import com.azure.resourcemanager.horizondb.models.PostgreSqlVersion; +import org.junit.jupiter.api.Assertions; + +public final class DefaultParameterGroupInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + DefaultParameterGroupInner model = BinaryData.fromString( + "{\"properties\":{\"provisioningState\":\"Canceled\",\"parameters\":[{\"name\":\"vpbttd\",\"description\":\"orppxebmnzbtb\",\"value\":\"pglkf\",\"defaultValue\":\"hdneuelfph\",\"valueSource\":\"UserOverride\",\"dataType\":\"t\",\"allowedValues\":\"fikdowwqu\",\"isDynamic\":false,\"isReadOnly\":false,\"documentationLink\":\"lvithhqzonosgg\",\"unit\":\"c\"}],\"description\":\"fwdsj\",\"postgreSqlVersion\":\"17\"},\"id\":\"ljuti\",\"name\":\"swacffgdkzz\",\"type\":\"wkfvhqcrailvp\"}") + .toObject(DefaultParameterGroupInner.class); + Assertions.assertEquals("vpbttd", model.properties().parameters().get(0).name()); + Assertions.assertEquals("pglkf", model.properties().parameters().get(0).value()); + Assertions.assertEquals("fwdsj", model.properties().description()); + Assertions.assertEquals(PostgreSqlVersion.V17, model.properties().postgreSqlVersion()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/DefaultParameterGroupListResultTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/DefaultParameterGroupListResultTests.java new file mode 100644 index 0000000000000..07ca2ba25eb97 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/DefaultParameterGroupListResultTests.java @@ -0,0 +1,24 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.implementation.models.DefaultParameterGroupListResult; +import com.azure.resourcemanager.horizondb.models.PostgreSqlVersion; +import org.junit.jupiter.api.Assertions; + +public final class DefaultParameterGroupListResultTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + DefaultParameterGroupListResult model = BinaryData.fromString( + "{\"value\":[{\"properties\":{\"provisioningState\":\"Provisioning\",\"parameters\":[{\"name\":\"bxwyjsflhhcaa\",\"description\":\"jixisxyawjoyaqcs\",\"value\":\"jpkiidzyexznelix\",\"defaultValue\":\"rzt\",\"valueSource\":\"SystemDefault\",\"dataType\":\"bnxknalaulppg\",\"allowedValues\":\"tpnapnyiropuhpig\",\"isDynamic\":true,\"isReadOnly\":false,\"documentationLink\":\"qgitxmed\",\"unit\":\"c\"}],\"description\":\"ynqwwncwzzhxgk\",\"postgreSqlVersion\":\"17\"},\"id\":\"gucnapkte\",\"name\":\"ellwptfdy\",\"type\":\"pfqbuaceopzf\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"parameters\":[{\"name\":\"opppcqeq\",\"description\":\"lzdahzxctobgbkdm\",\"value\":\"zpostmgrcfbu\",\"defaultValue\":\"mfqjhhkxbp\",\"valueSource\":\"UserOverride\",\"dataType\":\"jhxxjyn\",\"allowedValues\":\"divkrt\",\"isDynamic\":false,\"isReadOnly\":false,\"documentationLink\":\"vszjfauvjfdxxi\",\"unit\":\"tvtc\"},{\"name\":\"qtdo\",\"description\":\"cbxvwvxyslqbh\",\"value\":\"xoblytkbl\",\"defaultValue\":\"ewwwfbkrvrnsv\",\"valueSource\":\"SystemDefault\",\"dataType\":\"ohxcrsbfova\",\"allowedValues\":\"ruvw\",\"isDynamic\":true,\"isReadOnly\":true,\"documentationLink\":\"ubcgjbirxb\",\"unit\":\"bsrfbj\"},{\"name\":\"twss\",\"description\":\"ftpvjzbexil\",\"value\":\"nfqqnvwp\",\"defaultValue\":\"taruoujmkcj\",\"valueSource\":\"UserOverride\",\"dataType\":\"tjrybnwjewgdr\",\"allowedValues\":\"rvnaenqpeh\",\"isDynamic\":false,\"isReadOnly\":false,\"documentationLink\":\"mifthnzdnd\",\"unit\":\"gnayqigynduh\"}],\"description\":\"hqlkthumaqo\",\"postgreSqlVersion\":\"18\"},\"id\":\"ycduier\",\"name\":\"gccymvaolpssl\",\"type\":\"lfmmdnbbglzpswi\"},{\"properties\":{\"provisioningState\":\"InProgress\",\"parameters\":[{\"name\":\"hzdxssadbzm\",\"description\":\"dfznudaodv\",\"value\":\"bncblylpstdbhhx\",\"defaultValue\":\"zdzucerscdntnevf\",\"valueSource\":\"UserOverride\",\"dataType\":\"ygtdsslswt\",\"allowedValues\":\"eriofzpyqs\",\"isDynamic\":false,\"isReadOnly\":false,\"documentationLink\":\"ets\",\"unit\":\"szhedplvw\"},{\"name\":\"ubmwmbesld\",\"description\":\"wwtppj\",\"value\":\"cxogaokonzm\",\"defaultValue\":\"ikvmkqzeqqk\",\"valueSource\":\"SystemDefault\",\"dataType\":\"zxmhhvhgu\",\"allowedValues\":\"odkwobd\",\"isDynamic\":true,\"isReadOnly\":true,\"documentationLink\":\"qdxbxwa\",\"unit\":\"ogqxndlkzgxhuri\"}],\"description\":\"bpodxunkbebxm\",\"postgreSqlVersion\":\"18\"},\"id\":\"yntwlrbq\",\"name\":\"koievseo\",\"type\":\"gqrlltmuwla\"}],\"nextLink\":\"zizxbmpgcj\"}") + .toObject(DefaultParameterGroupListResult.class); + Assertions.assertEquals("bxwyjsflhhcaa", model.value().get(0).properties().parameters().get(0).name()); + Assertions.assertEquals("jpkiidzyexznelix", model.value().get(0).properties().parameters().get(0).value()); + Assertions.assertEquals("ynqwwncwzzhxgk", model.value().get(0).properties().description()); + Assertions.assertEquals(PostgreSqlVersion.V17, model.value().get(0).properties().postgreSqlVersion()); + Assertions.assertEquals("zizxbmpgcj", model.nextLink()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/DefaultParameterGroupPropertiesTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/DefaultParameterGroupPropertiesTests.java new file mode 100644 index 0000000000000..3a254b0984543 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/DefaultParameterGroupPropertiesTests.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.DefaultParameterGroupProperties; +import com.azure.resourcemanager.horizondb.models.PostgreSqlVersion; +import org.junit.jupiter.api.Assertions; + +public final class DefaultParameterGroupPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + DefaultParameterGroupProperties model = BinaryData.fromString( + "{\"provisioningState\":\"Failed\",\"parameters\":[{\"name\":\"flrwd\",\"description\":\"dlxyjrxs\",\"value\":\"afcnih\",\"defaultValue\":\"qapnedgfbcv\",\"valueSource\":\"SystemDefault\",\"dataType\":\"vpk\",\"allowedValues\":\"dcvd\",\"isDynamic\":false,\"isReadOnly\":true,\"documentationLink\":\"sotbob\",\"unit\":\"opcjwvnhd\"},{\"name\":\"wmgxcxrsl\",\"description\":\"utwu\",\"value\":\"grpkhjwniyqs\",\"defaultValue\":\"i\",\"valueSource\":\"UserOverride\",\"dataType\":\"gk\",\"allowedValues\":\"lvmbmpaxmodfvuef\",\"isDynamic\":true,\"isReadOnly\":true,\"documentationLink\":\"vmwy\",\"unit\":\"fouyf\"},{\"name\":\"akcp\",\"description\":\"yzvqt\",\"value\":\"ubex\",\"defaultValue\":\"zksmondj\",\"valueSource\":\"UserOverride\",\"dataType\":\"vypomgkopkwho\",\"allowedValues\":\"pajqgxysm\",\"isDynamic\":false,\"isReadOnly\":false,\"documentationLink\":\"qvmkcxo\",\"unit\":\"pvhelxprg\"}],\"description\":\"atddc\",\"postgreSqlVersion\":\"18\"}") + .toObject(DefaultParameterGroupProperties.class); + Assertions.assertEquals("flrwd", model.parameters().get(0).name()); + Assertions.assertEquals("afcnih", model.parameters().get(0).value()); + Assertions.assertEquals("atddc", model.description()); + Assertions.assertEquals(PostgreSqlVersion.V18, model.postgreSqlVersion()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/DefaultParameterGroupsGetWithResponseMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/DefaultParameterGroupsGetWithResponseMockTests.java new file mode 100644 index 0000000000000..8b8aa54bdea47 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/DefaultParameterGroupsGetWithResponseMockTests.java @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.horizondb.HorizonDbManager; +import com.azure.resourcemanager.horizondb.models.DefaultParameterGroup; +import com.azure.resourcemanager.horizondb.models.PostgreSqlVersion; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class DefaultParameterGroupsGetWithResponseMockTests { + @Test + public void testGetWithResponse() throws Exception { + String responseStr + = "{\"properties\":{\"provisioningState\":\"Failed\",\"parameters\":[{\"name\":\"xtxsuwprtujw\",\"description\":\"wddji\",\"value\":\"bxv\",\"defaultValue\":\"itvtzeexavo\",\"valueSource\":\"UserOverride\",\"dataType\":\"lecdmdqbw\",\"allowedValues\":\"pqtgsfjac\",\"isDynamic\":true,\"isReadOnly\":true,\"documentationLink\":\"udbxv\",\"unit\":\"htnsi\"},{\"name\":\"dhzmmesckdlp\",\"description\":\"zrcxfailcfxwmdbo\",\"value\":\"fgsftufqob\",\"defaultValue\":\"lnacgcc\",\"valueSource\":\"SystemDefault\",\"dataType\":\"xkizvy\",\"allowedValues\":\"rzvul\",\"isDynamic\":true,\"isReadOnly\":true,\"documentationLink\":\"anokqgu\",\"unit\":\"jqnv\"},{\"name\":\"oylaxxul\",\"description\":\"isdos\",\"value\":\"b\",\"defaultValue\":\"vgjrwhr\",\"valueSource\":\"SystemDefault\",\"dataType\":\"ytdc\",\"allowedValues\":\"gc\",\"isDynamic\":false,\"isReadOnly\":false,\"documentationLink\":\"mbtmvpdvjdhttzae\",\"unit\":\"dxihc\"},{\"name\":\"phkmcrjdqnsdfz\",\"description\":\"gtgkylkdghr\",\"value\":\"uutlwxezwzhok\",\"defaultValue\":\"wnhhtqlgehgppip\",\"valueSource\":\"UserOverride\",\"dataType\":\"f\",\"allowedValues\":\"ajvgcxtxjcsheafi\",\"isDynamic\":true,\"isReadOnly\":true,\"documentationLink\":\"resmkssjhoiftxfk\",\"unit\":\"egprhptil\"}],\"description\":\"cbiqtgdqoh\",\"postgreSqlVersion\":\"17\"},\"id\":\"sldrizetpwbral\",\"name\":\"libph\",\"type\":\"qzmiza\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + HorizonDbManager manager = HorizonDbManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + DefaultParameterGroup response = manager.defaultParameterGroups() + .getWithResponse("ojbmxv", "vrefdeesv", com.azure.core.util.Context.NONE) + .getValue(); + + Assertions.assertEquals("xtxsuwprtujw", response.properties().parameters().get(0).name()); + Assertions.assertEquals("bxv", response.properties().parameters().get(0).value()); + Assertions.assertEquals("cbiqtgdqoh", response.properties().description()); + Assertions.assertEquals(PostgreSqlVersion.V17, response.properties().postgreSqlVersion()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/DefaultParameterGroupsListBySubscriptionAndRegionMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/DefaultParameterGroupsListBySubscriptionAndRegionMockTests.java new file mode 100644 index 0000000000000..c889f11c042c7 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/DefaultParameterGroupsListBySubscriptionAndRegionMockTests.java @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.horizondb.HorizonDbManager; +import com.azure.resourcemanager.horizondb.models.DefaultParameterGroup; +import com.azure.resourcemanager.horizondb.models.PostgreSqlVersion; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class DefaultParameterGroupsListBySubscriptionAndRegionMockTests { + @Test + public void testListBySubscriptionAndRegion() throws Exception { + String responseStr + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Provisioning\",\"parameters\":[{\"name\":\"hhvjhh\",\"description\":\"kzyb\",\"value\":\"jid\",\"defaultValue\":\"syxkyxvxevblb\",\"valueSource\":\"SystemDefault\",\"dataType\":\"ljlageuaulxu\",\"allowedValues\":\"mjbnk\",\"isDynamic\":false,\"isReadOnly\":true,\"documentationLink\":\"nlsvxeiz\",\"unit\":\"wklnsrmffeyc\"}],\"description\":\"ktp\",\"postgreSqlVersion\":\"18\"},\"id\":\"erteeammxqiekk\",\"name\":\"zddrt\",\"type\":\"g\"}]}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + HorizonDbManager manager = HorizonDbManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + PagedIterable response + = manager.defaultParameterGroups().listBySubscriptionAndRegion("pqg", com.azure.core.util.Context.NONE); + + Assertions.assertEquals("hhvjhh", response.iterator().next().properties().parameters().get(0).name()); + Assertions.assertEquals("jid", response.iterator().next().properties().parameters().get(0).value()); + Assertions.assertEquals("ktp", response.iterator().next().properties().description()); + Assertions.assertEquals(PostgreSqlVersion.V18, response.iterator().next().properties().postgreSqlVersion()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/EndpointInnerTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/EndpointInnerTests.java new file mode 100644 index 0000000000000..d0b2955417b77 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/EndpointInnerTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.fluent.models.EndpointInner; + +public final class EndpointInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + EndpointInner model = BinaryData.fromString( + "{\"properties\":{\"scope\":\"Cluster\",\"associatedResourceId\":\"ezkojvdcp\",\"fullyQualifiedDomainName\":\"foqouicybx\",\"role\":\"ReadWrite\"},\"id\":\"gszufoxciqopid\",\"name\":\"amcio\",\"type\":\"hkh\"}") + .toObject(EndpointInner.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/EndpointListResultTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/EndpointListResultTests.java new file mode 100644 index 0000000000000..d212d24c82651 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/EndpointListResultTests.java @@ -0,0 +1,19 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.implementation.models.EndpointListResult; +import org.junit.jupiter.api.Assertions; + +public final class EndpointListResultTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + EndpointListResult model = BinaryData.fromString( + "{\"value\":[{\"properties\":{\"scope\":\"Cluster\",\"associatedResourceId\":\"vexztvbtqgs\",\"fullyQualifiedDomainName\":\"ra\",\"role\":\"ReadWrite\"},\"id\":\"koowtl\",\"name\":\"nguxawqaldsy\",\"type\":\"uximerqfobw\"},{\"properties\":{\"scope\":\"Pool\",\"associatedResourceId\":\"kby\",\"fullyQualifiedDomainName\":\"utwpfhp\",\"role\":\"ReadWrite\"},\"id\":\"hrskdsnfd\",\"name\":\"doakgtdlmkkzevdl\",\"type\":\"ewpusdsttwvogvb\"}],\"nextLink\":\"jdcngqqm\"}") + .toObject(EndpointListResult.class); + Assertions.assertEquals("jdcngqqm", model.nextLink()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/EndpointPropertiesTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/EndpointPropertiesTests.java new file mode 100644 index 0000000000000..3d4814ddc4b28 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/EndpointPropertiesTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.EndpointProperties; + +public final class EndpointPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + EndpointProperties model = BinaryData.fromString( + "{\"scope\":\"Pool\",\"associatedResourceId\":\"xkhnzbonlwnto\",\"fullyQualifiedDomainName\":\"gokdwbwhks\",\"role\":\"ReadWrite\"}") + .toObject(EndpointProperties.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/EndpointsGetWithResponseMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/EndpointsGetWithResponseMockTests.java new file mode 100644 index 0000000000000..ae396ec9c21ca --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/EndpointsGetWithResponseMockTests.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.horizondb.HorizonDbManager; +import com.azure.resourcemanager.horizondb.models.Endpoint; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class EndpointsGetWithResponseMockTests { + @Test + public void testGetWithResponse() throws Exception { + String responseStr + = "{\"properties\":{\"scope\":\"Cluster\",\"associatedResourceId\":\"qigkx\",\"fullyQualifiedDomainName\":\"bsazgakg\",\"role\":\"ReadWrite\"},\"id\":\"rcmjdmspofapvuh\",\"name\":\"ylnio\",\"type\":\"rz\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + HorizonDbManager manager = HorizonDbManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + Endpoint response = manager.endpoints() + .getWithResponse("vxkdivqihebwtswb", "uwfmduragegizvc", "felisdjub", com.azure.core.util.Context.NONE) + .getValue(); + + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/EndpointsListMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/EndpointsListMockTests.java new file mode 100644 index 0000000000000..c6fd6d1f3d16e --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/EndpointsListMockTests.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.horizondb.HorizonDbManager; +import com.azure.resourcemanager.horizondb.models.Endpoint; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class EndpointsListMockTests { + @Test + public void testList() throws Exception { + String responseStr + = "{\"value\":[{\"properties\":{\"scope\":\"Cluster\",\"associatedResourceId\":\"twfans\",\"fullyQualifiedDomainName\":\"v\",\"role\":\"ReadWrite\"},\"id\":\"bmikost\",\"name\":\"z\",\"type\":\"kiwbuqnyoph\"}]}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + HorizonDbManager manager = HorizonDbManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + PagedIterable response + = manager.endpoints().list("bzjedmstk", "nlvxbcuii", com.azure.core.util.Context.NONE); + + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/FabricDestinationDetailsTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/FabricDestinationDetailsTests.java new file mode 100644 index 0000000000000..fcdfb534905e2 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/FabricDestinationDetailsTests.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.FabricDestinationDetails; +import org.junit.jupiter.api.Assertions; + +public final class FabricDestinationDetailsTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + FabricDestinationDetails model = BinaryData + .fromString("{\"destinationType\":\"Fabric\",\"workspaceId\":\"jhkycub\",\"protocol\":\"Native\"}") + .toObject(FabricDestinationDetails.class); + Assertions.assertEquals("jhkycub", model.workspaceId()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + FabricDestinationDetails model = new FabricDestinationDetails().withWorkspaceId("jhkycub"); + model = BinaryData.fromObject(model).toObject(FabricDestinationDetails.class); + Assertions.assertEquals("jhkycub", model.workspaceId()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/FirewallRuleInnerTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/FirewallRuleInnerTests.java new file mode 100644 index 0000000000000..6de11727710ad --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/FirewallRuleInnerTests.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.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.fluent.models.FirewallRuleInner; +import com.azure.resourcemanager.horizondb.models.FirewallRuleProperties; +import org.junit.jupiter.api.Assertions; + +public final class FirewallRuleInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + FirewallRuleInner model = BinaryData.fromString( + "{\"properties\":{\"startIpAddress\":\"hejjz\",\"endIpAddress\":\"v\",\"description\":\"dgwdslfhot\",\"provisioningState\":\"Succeeded\"},\"id\":\"npwlbjnpg\",\"name\":\"cftadeh\",\"type\":\"nltyfsoppusuesnz\"}") + .toObject(FirewallRuleInner.class); + Assertions.assertEquals("hejjz", model.properties().startIpAddress()); + Assertions.assertEquals("v", model.properties().endIpAddress()); + Assertions.assertEquals("dgwdslfhot", model.properties().description()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + FirewallRuleInner model + = new FirewallRuleInner().withProperties(new FirewallRuleProperties().withStartIpAddress("hejjz") + .withEndIpAddress("v") + .withDescription("dgwdslfhot")); + model = BinaryData.fromObject(model).toObject(FirewallRuleInner.class); + Assertions.assertEquals("hejjz", model.properties().startIpAddress()); + Assertions.assertEquals("v", model.properties().endIpAddress()); + Assertions.assertEquals("dgwdslfhot", model.properties().description()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/FirewallRuleListResultTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/FirewallRuleListResultTests.java new file mode 100644 index 0000000000000..50b2098b3f6f3 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/FirewallRuleListResultTests.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.implementation.models.FirewallRuleListResult; +import org.junit.jupiter.api.Assertions; + +public final class FirewallRuleListResultTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + FirewallRuleListResult model = BinaryData.fromString( + "{\"value\":[{\"properties\":{\"startIpAddress\":\"kcglhslaz\",\"endIpAddress\":\"dyggdtjixhbku\",\"description\":\"qweykhmenev\",\"provisioningState\":\"Provisioning\"},\"id\":\"fwhybcibvy\",\"name\":\"dcsi\",\"type\":\"ynnaam\"},{\"properties\":{\"startIpAddress\":\"ctehfiqscjey\",\"endIpAddress\":\"vhezrkgqhcj\",\"description\":\"fovgmkqsleyyvxy\",\"provisioningState\":\"Failed\"},\"id\":\"cattpngjcrcczsq\",\"name\":\"jh\",\"type\":\"mdajv\"},{\"properties\":{\"startIpAddress\":\"sounqecanoaeu\",\"endIpAddress\":\"fhyhltrpmopjmcma\",\"description\":\"okth\",\"provisioningState\":\"InProgress\"},\"id\":\"aodsfcpkv\",\"name\":\"odpuozmyzydag\",\"type\":\"uaxbezyiuokkt\"}],\"nextLink\":\"rdxwzywqsm\"}") + .toObject(FirewallRuleListResult.class); + Assertions.assertEquals("kcglhslaz", model.value().get(0).properties().startIpAddress()); + Assertions.assertEquals("dyggdtjixhbku", model.value().get(0).properties().endIpAddress()); + Assertions.assertEquals("qweykhmenev", model.value().get(0).properties().description()); + Assertions.assertEquals("rdxwzywqsm", model.nextLink()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/FirewallRulePropertiesTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/FirewallRulePropertiesTests.java new file mode 100644 index 0000000000000..3aa698b591da1 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/FirewallRulePropertiesTests.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.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.FirewallRuleProperties; +import org.junit.jupiter.api.Assertions; + +public final class FirewallRulePropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + FirewallRuleProperties model = BinaryData.fromString( + "{\"startIpAddress\":\"dejbavo\",\"endIpAddress\":\"xzdmohctb\",\"description\":\"udwxdndnvowguj\",\"provisioningState\":\"Provisioning\"}") + .toObject(FirewallRuleProperties.class); + Assertions.assertEquals("dejbavo", model.startIpAddress()); + Assertions.assertEquals("xzdmohctb", model.endIpAddress()); + Assertions.assertEquals("udwxdndnvowguj", model.description()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + FirewallRuleProperties model = new FirewallRuleProperties().withStartIpAddress("dejbavo") + .withEndIpAddress("xzdmohctb") + .withDescription("udwxdndnvowguj"); + model = BinaryData.fromObject(model).toObject(FirewallRuleProperties.class); + Assertions.assertEquals("dejbavo", model.startIpAddress()); + Assertions.assertEquals("xzdmohctb", model.endIpAddress()); + Assertions.assertEquals("udwxdndnvowguj", model.description()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicasCreateOrUpdateMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/FirewallRulesCreateOrReplaceMockTests.java similarity index 52% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicasCreateOrUpdateMockTests.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/FirewallRulesCreateOrReplaceMockTests.java index 693ff80a5f2ee..6fee4a2c102cb 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicasCreateOrUpdateMockTests.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/FirewallRulesCreateOrReplaceMockTests.java @@ -10,20 +10,19 @@ import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.horizondb.HorizonDbManager; -import com.azure.resourcemanager.horizondb.models.HorizonDbReplica; -import com.azure.resourcemanager.horizondb.models.HorizonDbReplicaProperties; -import com.azure.resourcemanager.horizondb.models.ReplicaRole; +import com.azure.resourcemanager.horizondb.models.FirewallRule; +import com.azure.resourcemanager.horizondb.models.FirewallRuleProperties; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; -public final class HorizonDbReplicasCreateOrUpdateMockTests { +public final class FirewallRulesCreateOrReplaceMockTests { @Test - public void testCreateOrUpdate() throws Exception { + public void testCreateOrReplace() throws Exception { String responseStr - = "{\"properties\":{\"role\":\"Read\",\"status\":\"Disabled\",\"fullyQualifiedDomainName\":\"zar\",\"availabilityZone\":\"lquuijfqkacewii\",\"provisioningState\":\"Succeeded\"},\"id\":\"bjibwwiftohq\",\"name\":\"vpuvks\",\"type\":\"plsaknynfsynljph\"}"; + = "{\"properties\":{\"startIpAddress\":\"iml\",\"endIpAddress\":\"oljxkcgx\",\"description\":\"xsffgcviz\",\"provisioningState\":\"Succeeded\"},\"id\":\"l\",\"name\":\"w\",\"type\":\"youpfgfbkj\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,14 +31,16 @@ public void testCreateOrUpdate() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - HorizonDbReplica response = manager.horizonDbReplicas() - .define("afnn") - .withExistingPool("qlpqwcciuq", "bdbutauvf", "tkuwhhmhykojo") - .withProperties( - new HorizonDbReplicaProperties().withRole(ReplicaRole.READ_WRITE).withAvailabilityZone("kcdyhbpk")) + FirewallRule response = manager.firewallRules() + .define("vcimpev") + .withExistingPool("qonmacj", "k", "izsh") + .withProperties(new FirewallRuleProperties().withStartIpAddress("mblrrilbywd") + .withEndIpAddress("smiccwrwfscj") + .withDescription("ynszquji")) .create(); - Assertions.assertEquals(ReplicaRole.READ, response.properties().role()); - Assertions.assertEquals("lquuijfqkacewii", response.properties().availabilityZone()); + Assertions.assertEquals("iml", response.properties().startIpAddress()); + Assertions.assertEquals("oljxkcgx", response.properties().endIpAddress()); + Assertions.assertEquals("xsffgcviz", response.properties().description()); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbFirewallRulesGetWithResponseMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/FirewallRulesGetWithResponseMockTests.java similarity index 62% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbFirewallRulesGetWithResponseMockTests.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/FirewallRulesGetWithResponseMockTests.java index 98f1ca2eda69b..5d1465874b56e 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbFirewallRulesGetWithResponseMockTests.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/FirewallRulesGetWithResponseMockTests.java @@ -10,18 +10,18 @@ import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.horizondb.HorizonDbManager; -import com.azure.resourcemanager.horizondb.models.HorizonDbFirewallRule; +import com.azure.resourcemanager.horizondb.models.FirewallRule; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; -public final class HorizonDbFirewallRulesGetWithResponseMockTests { +public final class FirewallRulesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"startIpAddress\":\"zrpzb\",\"endIpAddress\":\"hckqqzqioxiy\",\"description\":\"iizynkedyatrwyh\",\"provisioningState\":\"InProgress\"},\"id\":\"zyh\",\"name\":\"itsmypyyn\",\"type\":\"cdpu\"}"; + = "{\"properties\":{\"startIpAddress\":\"gdxpg\",\"endIpAddress\":\"qchiszep\",\"description\":\"bjcrxgibbdaxco\",\"provisioningState\":\"Canceled\"},\"id\":\"auorsukokw\",\"name\":\"qplhlvnu\",\"type\":\"epzl\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,12 +30,12 @@ public void testGetWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - HorizonDbFirewallRule response = manager.horizonDbFirewallRules() - .getWithResponse("op", "odlqiyntor", "ihleos", "swsrms", com.azure.core.util.Context.NONE) + FirewallRule response = manager.firewallRules() + .getWithResponse("sutujba", "pjuohminyfl", "orwmduvwpklv", "w", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("zrpzb", response.properties().startIpAddress()); - Assertions.assertEquals("hckqqzqioxiy", response.properties().endIpAddress()); - Assertions.assertEquals("iizynkedyatrwyh", response.properties().description()); + Assertions.assertEquals("gdxpg", response.properties().startIpAddress()); + Assertions.assertEquals("qchiszep", response.properties().endIpAddress()); + Assertions.assertEquals("bjcrxgibbdaxco", response.properties().description()); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbFirewallRulesListMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/FirewallRulesListMockTests.java similarity index 62% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbFirewallRulesListMockTests.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/FirewallRulesListMockTests.java index e4c5765a83be3..40f44c7012189 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbFirewallRulesListMockTests.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/FirewallRulesListMockTests.java @@ -11,18 +11,18 @@ import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.horizondb.HorizonDbManager; -import com.azure.resourcemanager.horizondb.models.HorizonDbFirewallRule; +import com.azure.resourcemanager.horizondb.models.FirewallRule; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; -public final class HorizonDbFirewallRulesListMockTests { +public final class FirewallRulesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"startIpAddress\":\"ok\",\"endIpAddress\":\"tllxdyhgsyocogj\",\"description\":\"dtbnnha\",\"provisioningState\":\"InProgress\"},\"id\":\"rkvcikhnvpa\",\"name\":\"qgxqquezikyw\",\"type\":\"gxk\"}]}"; + = "{\"value\":[{\"properties\":{\"startIpAddress\":\"jhhgdnhxmsi\",\"endIpAddress\":\"fomiloxgg\",\"description\":\"fi\",\"provisioningState\":\"Canceled\"},\"id\":\"euzaof\",\"name\":\"chvcyyysfgdo\",\"type\":\"cubiipuipw\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,11 +31,11 @@ public void testList() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response = manager.horizonDbFirewallRules() - .list("nzgmwznmabik", "sorgj", "xbldtlwwrlkdmtn", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.firewallRules().list("phwzsoldweyuqdu", "vmnnrw", "biorktal", com.azure.core.util.Context.NONE); - Assertions.assertEquals("ok", response.iterator().next().properties().startIpAddress()); - Assertions.assertEquals("tllxdyhgsyocogj", response.iterator().next().properties().endIpAddress()); - Assertions.assertEquals("dtbnnha", response.iterator().next().properties().description()); + Assertions.assertEquals("jhhgdnhxmsi", response.iterator().next().properties().startIpAddress()); + Assertions.assertEquals("fomiloxgg", response.iterator().next().properties().endIpAddress()); + Assertions.assertEquals("fi", response.iterator().next().properties().description()); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorAddTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorAddTests.java deleted file mode 100644 index 053107b4cb950..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorAddTests.java +++ /dev/null @@ -1,35 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.horizondb.models.HorizonDbAdministratorAdd; -import com.azure.resourcemanager.horizondb.models.HorizonDbAdministratorPropertiesForAdd; -import com.azure.resourcemanager.horizondb.models.PrincipalTypes; -import org.junit.jupiter.api.Assertions; - -public final class HorizonDbAdministratorAddTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HorizonDbAdministratorAdd model = BinaryData.fromString( - "{\"properties\":{\"principalName\":\"blmpewww\",\"principalType\":\"Group\",\"tenantId\":\"rvrnsvshqjohxc\"}}") - .toObject(HorizonDbAdministratorAdd.class); - Assertions.assertEquals("blmpewww", model.properties().principalName()); - Assertions.assertEquals(PrincipalTypes.GROUP, model.properties().principalType()); - Assertions.assertEquals("rvrnsvshqjohxc", model.properties().tenantId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HorizonDbAdministratorAdd model = new HorizonDbAdministratorAdd() - .withProperties(new HorizonDbAdministratorPropertiesForAdd().withPrincipalName("blmpewww") - .withPrincipalType(PrincipalTypes.GROUP) - .withTenantId("rvrnsvshqjohxc")); - model = BinaryData.fromObject(model).toObject(HorizonDbAdministratorAdd.class); - Assertions.assertEquals("blmpewww", model.properties().principalName()); - Assertions.assertEquals(PrincipalTypes.GROUP, model.properties().principalType()); - Assertions.assertEquals("rvrnsvshqjohxc", model.properties().tenantId()); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorInnerTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorInnerTests.java deleted file mode 100644 index 2881bed0612b4..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorInnerTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbAdministratorInner; -import com.azure.resourcemanager.horizondb.models.PrincipalTypes; -import org.junit.jupiter.api.Assertions; - -public final class HorizonDbAdministratorInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HorizonDbAdministratorInner model = BinaryData.fromString( - "{\"properties\":{\"principalName\":\"hzxct\",\"principalType\":\"ServicePrincipal\",\"objectId\":\"bkdmo\",\"tenantId\":\"postmgrcfbunrm\",\"provisioningState\":\"Canceled\"},\"id\":\"hkxbpv\",\"name\":\"ymjhxxjyngudivkr\",\"type\":\"swbxqz\"}") - .toObject(HorizonDbAdministratorInner.class); - Assertions.assertEquals("hzxct", model.properties().principalName()); - Assertions.assertEquals(PrincipalTypes.SERVICE_PRINCIPAL, model.properties().principalType()); - Assertions.assertEquals("postmgrcfbunrm", model.properties().tenantId()); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorListResultTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorListResultTests.java deleted file mode 100644 index a9683dbc190f7..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorListResultTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.horizondb.implementation.models.HorizonDbAdministratorListResult; -import com.azure.resourcemanager.horizondb.models.PrincipalTypes; -import org.junit.jupiter.api.Assertions; - -public final class HorizonDbAdministratorListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HorizonDbAdministratorListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"principalName\":\"qfsubcgjbirx\",\"principalType\":\"Group\",\"objectId\":\"bsrfbj\",\"tenantId\":\"twss\",\"provisioningState\":\"Succeeded\"},\"id\":\"pvjzbe\",\"name\":\"ilzznfqqnvwp\",\"type\":\"qtaruoujmkcjhwq\"},{\"properties\":{\"principalName\":\"jrybnwjewgdrjer\",\"principalType\":\"Group\",\"objectId\":\"enq\",\"tenantId\":\"hin\",\"provisioningState\":\"Succeeded\"},\"id\":\"mifthnzdnd\",\"name\":\"l\",\"type\":\"nayqi\"},{\"properties\":{\"principalName\":\"nduhavhqlkthum\",\"principalType\":\"User\",\"objectId\":\"lbg\",\"tenantId\":\"duiertgcc\",\"provisioningState\":\"Succeeded\"},\"id\":\"olpsslqlf\",\"name\":\"mdnbbglzpswiy\",\"type\":\"mcwyhzdxssadb\"},{\"properties\":{\"principalName\":\"nvdfznuda\",\"principalType\":\"ServicePrincipal\",\"objectId\":\"xzb\",\"tenantId\":\"blylpstdbh\",\"provisioningState\":\"Failed\"},\"id\":\"zdzucerscdntnevf\",\"name\":\"wjmy\",\"type\":\"tdss\"}],\"nextLink\":\"wtmwerio\"}") - .toObject(HorizonDbAdministratorListResult.class); - Assertions.assertEquals("qfsubcgjbirx", model.value().get(0).properties().principalName()); - Assertions.assertEquals(PrincipalTypes.GROUP, model.value().get(0).properties().principalType()); - Assertions.assertEquals("twss", model.value().get(0).properties().tenantId()); - Assertions.assertEquals("wtmwerio", model.nextLink()); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorPropertiesForAddTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorPropertiesForAddTests.java deleted file mode 100644 index 34fbcd4e10d2d..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorPropertiesForAddTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.horizondb.models.HorizonDbAdministratorPropertiesForAdd; -import com.azure.resourcemanager.horizondb.models.PrincipalTypes; -import org.junit.jupiter.api.Assertions; - -public final class HorizonDbAdministratorPropertiesForAddTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HorizonDbAdministratorPropertiesForAdd model = BinaryData - .fromString("{\"principalName\":\"sbfov\",\"principalType\":\"ServicePrincipal\",\"tenantId\":\"ruvw\"}") - .toObject(HorizonDbAdministratorPropertiesForAdd.class); - Assertions.assertEquals("sbfov", model.principalName()); - Assertions.assertEquals(PrincipalTypes.SERVICE_PRINCIPAL, model.principalType()); - Assertions.assertEquals("ruvw", model.tenantId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HorizonDbAdministratorPropertiesForAdd model - = new HorizonDbAdministratorPropertiesForAdd().withPrincipalName("sbfov") - .withPrincipalType(PrincipalTypes.SERVICE_PRINCIPAL) - .withTenantId("ruvw"); - model = BinaryData.fromObject(model).toObject(HorizonDbAdministratorPropertiesForAdd.class); - Assertions.assertEquals("sbfov", model.principalName()); - Assertions.assertEquals(PrincipalTypes.SERVICE_PRINCIPAL, model.principalType()); - Assertions.assertEquals("ruvw", model.tenantId()); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorPropertiesTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorPropertiesTests.java deleted file mode 100644 index 1fc4184139684..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorPropertiesTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.horizondb.models.HorizonDbAdministratorProperties; -import com.azure.resourcemanager.horizondb.models.PrincipalTypes; -import org.junit.jupiter.api.Assertions; - -public final class HorizonDbAdministratorPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HorizonDbAdministratorProperties model = BinaryData.fromString( - "{\"principalName\":\"szjfauvjfdxxivet\",\"principalType\":\"Unknown\",\"objectId\":\"qaqtdoqmcbxvwvxy\",\"tenantId\":\"qbhsfxobl\",\"provisioningState\":\"Canceled\"}") - .toObject(HorizonDbAdministratorProperties.class); - Assertions.assertEquals("szjfauvjfdxxivet", model.principalName()); - Assertions.assertEquals(PrincipalTypes.UNKNOWN, model.principalType()); - Assertions.assertEquals("qbhsfxobl", model.tenantId()); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClusterManagedServiceIdentityTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClusterManagedServiceIdentityTests.java new file mode 100644 index 0000000000000..8cead729307cc --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClusterManagedServiceIdentityTests.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.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.HorizonDbClusterIdentityType; +import com.azure.resourcemanager.horizondb.models.HorizonDbClusterManagedServiceIdentity; +import com.azure.resourcemanager.horizondb.models.UserAssignedIdentity; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; + +public final class HorizonDbClusterManagedServiceIdentityTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + HorizonDbClusterManagedServiceIdentity model = BinaryData.fromString( + "{\"type\":\"None\",\"userAssignedIdentities\":{\"ouf\":{\"principalId\":\"gakeqsr\",\"clientId\":\"bzqqedqytbciq\"},\"mutduqktaps\":{\"principalId\":\"mnkzsmod\",\"clientId\":\"lougpbkw\"},\"bbjfddgmbmbexp\":{\"principalId\":\"gcue\",\"clientId\":\"umkdosvqwhbmd\"},\"lgbquxig\":{\"principalId\":\"htqqrolfp\",\"clientId\":\"s\"}}}") + .toObject(HorizonDbClusterManagedServiceIdentity.class); + Assertions.assertEquals(HorizonDbClusterIdentityType.NONE, model.type()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + HorizonDbClusterManagedServiceIdentity model + = new HorizonDbClusterManagedServiceIdentity().withType(HorizonDbClusterIdentityType.NONE) + .withUserAssignedIdentities( + mapOf("ouf", new UserAssignedIdentity(), "mutduqktaps", new UserAssignedIdentity(), + "bbjfddgmbmbexp", new UserAssignedIdentity(), "lgbquxig", new UserAssignedIdentity())); + model = BinaryData.fromObject(model).toObject(HorizonDbClusterManagedServiceIdentity.class); + Assertions.assertEquals(HorizonDbClusterIdentityType.NONE, model.type()); + } + + // 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/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClusterMirroringTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClusterMirroringTests.java deleted file mode 100644 index 0eb4a873f4a3c..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClusterMirroringTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.horizondb.models.HorizonDbClusterMirroring; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class HorizonDbClusterMirroringTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HorizonDbClusterMirroring model = BinaryData.fromString( - "{\"databaseNames\":[\"nhsjcnyej\",\"kryhtnapczwlokj\",\"emkkvnipjox\",\"jnchgej\"],\"userAssignedIdentityId\":\"odmailzyd\"}") - .toObject(HorizonDbClusterMirroring.class); - Assertions.assertEquals("nhsjcnyej", model.databaseNames().get(0)); - Assertions.assertEquals("odmailzyd", model.userAssignedIdentityId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HorizonDbClusterMirroring model = new HorizonDbClusterMirroring() - .withDatabaseNames(Arrays.asList("nhsjcnyej", "kryhtnapczwlokj", "emkkvnipjox", "jnchgej")) - .withUserAssignedIdentityId("odmailzyd"); - model = BinaryData.fromObject(model).toObject(HorizonDbClusterMirroring.class); - Assertions.assertEquals("nhsjcnyej", model.databaseNames().get(0)); - Assertions.assertEquals("odmailzyd", model.userAssignedIdentityId()); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClusterParameterGroupConnectionPropertiesTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClusterParameterGroupConnectionPropertiesTests.java deleted file mode 100644 index a41271c68b5e3..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClusterParameterGroupConnectionPropertiesTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.horizondb.models.HorizonDbClusterParameterGroupConnectionProperties; -import org.junit.jupiter.api.Assertions; - -public final class HorizonDbClusterParameterGroupConnectionPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HorizonDbClusterParameterGroupConnectionProperties model - = BinaryData.fromString("{\"id\":\"abifpikxwczbys\",\"syncStatus\":\"pqxu\",\"applyImmediately\":false}") - .toObject(HorizonDbClusterParameterGroupConnectionProperties.class); - Assertions.assertEquals("abifpikxwczbys", model.id()); - Assertions.assertFalse(model.applyImmediately()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HorizonDbClusterParameterGroupConnectionProperties model - = new HorizonDbClusterParameterGroupConnectionProperties().withId("abifpikxwczbys") - .withApplyImmediately(false); - model = BinaryData.fromObject(model).toObject(HorizonDbClusterParameterGroupConnectionProperties.class); - Assertions.assertEquals("abifpikxwczbys", model.id()); - Assertions.assertFalse(model.applyImmediately()); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbComputeModelTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbComputeModelTests.java deleted file mode 100644 index 85826bb32c660..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbComputeModelTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.horizondb.models.HorizonDbComputeModel; -import com.azure.resourcemanager.horizondb.models.HorizonDbComputeModelType; -import org.junit.jupiter.api.Assertions; - -public final class HorizonDbComputeModelTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HorizonDbComputeModel model = BinaryData.fromString( - "{\"type\":\"Provisioned\",\"vCores\":7252116,\"minvCores\":32.048692632114616,\"maxvCores\":14.591114914034398}") - .toObject(HorizonDbComputeModel.class); - Assertions.assertEquals(HorizonDbComputeModelType.PROVISIONED, model.type()); - Assertions.assertEquals(7252116, model.vCores()); - Assertions.assertEquals(32.048692632114616D, model.minvCores()); - Assertions.assertEquals(14.591114914034398D, model.maxvCores()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HorizonDbComputeModel model = new HorizonDbComputeModel().withType(HorizonDbComputeModelType.PROVISIONED) - .withVCores(7252116) - .withMinvCores(32.048692632114616D) - .withMaxvCores(14.591114914034398D); - model = BinaryData.fromObject(model).toObject(HorizonDbComputeModel.class); - Assertions.assertEquals(HorizonDbComputeModelType.PROVISIONED, model.type()); - Assertions.assertEquals(7252116, model.vCores()); - Assertions.assertEquals(32.048692632114616D, model.minvCores()); - Assertions.assertEquals(14.591114914034398D, model.maxvCores()); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbFirewallRuleInnerTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbFirewallRuleInnerTests.java deleted file mode 100644 index 2b26260a03116..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbFirewallRuleInnerTests.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbFirewallRuleInner; -import com.azure.resourcemanager.horizondb.models.HorizonDbFirewallRuleProperties; -import org.junit.jupiter.api.Assertions; - -public final class HorizonDbFirewallRuleInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HorizonDbFirewallRuleInner model = BinaryData.fromString( - "{\"properties\":{\"startIpAddress\":\"jkcpr\",\"endIpAddress\":\"nwbxgjvtbvpyssz\",\"description\":\"rujqg\",\"provisioningState\":\"Canceled\"},\"id\":\"ouqfprwz\",\"name\":\"bngui\",\"type\":\"nwui\"}") - .toObject(HorizonDbFirewallRuleInner.class); - Assertions.assertEquals("jkcpr", model.properties().startIpAddress()); - Assertions.assertEquals("nwbxgjvtbvpyssz", model.properties().endIpAddress()); - Assertions.assertEquals("rujqg", model.properties().description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HorizonDbFirewallRuleInner model = new HorizonDbFirewallRuleInner() - .withProperties(new HorizonDbFirewallRuleProperties().withStartIpAddress("jkcpr") - .withEndIpAddress("nwbxgjvtbvpyssz") - .withDescription("rujqg")); - model = BinaryData.fromObject(model).toObject(HorizonDbFirewallRuleInner.class); - Assertions.assertEquals("jkcpr", model.properties().startIpAddress()); - Assertions.assertEquals("nwbxgjvtbvpyssz", model.properties().endIpAddress()); - Assertions.assertEquals("rujqg", model.properties().description()); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbFirewallRuleListResultTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbFirewallRuleListResultTests.java deleted file mode 100644 index dd5da57353e45..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbFirewallRuleListResultTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.horizondb.implementation.models.HorizonDbFirewallRuleListResult; -import org.junit.jupiter.api.Assertions; - -public final class HorizonDbFirewallRuleListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HorizonDbFirewallRuleListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"startIpAddress\":\"ymwisdkft\",\"endIpAddress\":\"wxmnteiwao\",\"description\":\"km\",\"provisioningState\":\"Succeeded\"},\"id\":\"mxdcufufsrp\",\"name\":\"mzidnsezcxtb\",\"type\":\"sgfyccsnew\"},{\"properties\":{\"startIpAddress\":\"wzjeiach\",\"endIpAddress\":\"oosflnr\",\"description\":\"fqpte\",\"provisioningState\":\"Failed\"},\"id\":\"vypyqrimzinpv\",\"name\":\"wjdk\",\"type\":\"rsoodqxhcrmnoh\"}],\"nextLink\":\"ckwhds\"}") - .toObject(HorizonDbFirewallRuleListResult.class); - Assertions.assertEquals("ymwisdkft", model.value().get(0).properties().startIpAddress()); - Assertions.assertEquals("wxmnteiwao", model.value().get(0).properties().endIpAddress()); - Assertions.assertEquals("km", model.value().get(0).properties().description()); - Assertions.assertEquals("ckwhds", model.nextLink()); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbFirewallRulePropertiesTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbFirewallRulePropertiesTests.java deleted file mode 100644 index a3acb599cb287..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbFirewallRulePropertiesTests.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.horizondb.models.HorizonDbFirewallRuleProperties; -import org.junit.jupiter.api.Assertions; - -public final class HorizonDbFirewallRulePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HorizonDbFirewallRuleProperties model = BinaryData.fromString( - "{\"startIpAddress\":\"gazxuf\",\"endIpAddress\":\"zuckyfi\",\"description\":\"fidfvzw\",\"provisioningState\":\"Provisioning\"}") - .toObject(HorizonDbFirewallRuleProperties.class); - Assertions.assertEquals("gazxuf", model.startIpAddress()); - Assertions.assertEquals("zuckyfi", model.endIpAddress()); - Assertions.assertEquals("fidfvzw", model.description()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HorizonDbFirewallRuleProperties model = new HorizonDbFirewallRuleProperties().withStartIpAddress("gazxuf") - .withEndIpAddress("zuckyfi") - .withDescription("fidfvzw"); - model = BinaryData.fromObject(model).toObject(HorizonDbFirewallRuleProperties.class); - Assertions.assertEquals("gazxuf", model.startIpAddress()); - Assertions.assertEquals("zuckyfi", model.endIpAddress()); - Assertions.assertEquals("fidfvzw", model.description()); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbFirewallRulesCreateOrUpdateMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbFirewallRulesCreateOrUpdateMockTests.java deleted file mode 100644 index e1290a409e06a..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbFirewallRulesCreateOrUpdateMockTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.horizondb.HorizonDbManager; -import com.azure.resourcemanager.horizondb.models.HorizonDbFirewallRule; -import com.azure.resourcemanager.horizondb.models.HorizonDbFirewallRuleProperties; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class HorizonDbFirewallRulesCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"properties\":{\"startIpAddress\":\"epxgyqagvr\",\"endIpAddress\":\"mnpkukghimdblxg\",\"description\":\"mfnjh\",\"provisioningState\":\"Succeeded\"},\"id\":\"mszkkfo\",\"name\":\"rey\",\"type\":\"kzikfjawneaivxwc\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - HorizonDbManager manager = HorizonDbManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - HorizonDbFirewallRule response = manager.horizonDbFirewallRules() - .define("v") - .withExistingPool("lla", "melwuipiccjz", "z") - .withProperties(new HorizonDbFirewallRuleProperties().withStartIpAddress("vc") - .withEndIpAddress("ayrhyrnx") - .withDescription("ueedndrdvs")) - .create(); - - Assertions.assertEquals("epxgyqagvr", response.properties().startIpAddress()); - Assertions.assertEquals("mnpkukghimdblxg", response.properties().endIpAddress()); - Assertions.assertEquals("mfnjh", response.properties().description()); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupConnectionPropertiesInnerTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupConnectionPropertiesInnerTests.java deleted file mode 100644 index 39f6f887cccd8..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupConnectionPropertiesInnerTests.java +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbParameterGroupConnectionPropertiesInner; - -public final class HorizonDbParameterGroupConnectionPropertiesInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HorizonDbParameterGroupConnectionPropertiesInner model - = BinaryData.fromString("{\"name\":\"fdygpfqbuaceopz\",\"id\":\"rhhuaopppcqeqx\",\"type\":\"z\"}") - .toObject(HorizonDbParameterGroupConnectionPropertiesInner.class); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupConnectionPropertiesListResultTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupConnectionPropertiesListResultTests.java deleted file mode 100644 index d2f6f666ed498..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupConnectionPropertiesListResultTests.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.horizondb.implementation.models.HorizonDbParameterGroupConnectionPropertiesListResult; -import org.junit.jupiter.api.Assertions; - -public final class HorizonDbParameterGroupConnectionPropertiesListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HorizonDbParameterGroupConnectionPropertiesListResult model = BinaryData.fromString( - "{\"value\":[{\"name\":\"o\",\"id\":\"bnxknalaulppg\",\"type\":\"tpnapnyiropuhpig\"},{\"name\":\"gylgqgitxmedjvcs\",\"id\":\"n\",\"type\":\"wncwzzhxgktrmg\"}],\"nextLink\":\"napkteoellw\"}") - .toObject(HorizonDbParameterGroupConnectionPropertiesListResult.class); - Assertions.assertEquals("napkteoellw", model.nextLink()); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupForPatchUpdateTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupForPatchUpdateTests.java deleted file mode 100644 index 4a4b02aa37af9..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupForPatchUpdateTests.java +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.horizondb.models.HorizonDbParameterGroupForPatchUpdate; -import com.azure.resourcemanager.horizondb.models.HorizonDbParameterGroupPropertiesForPatchUpdate; -import com.azure.resourcemanager.horizondb.models.ParameterProperties; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HorizonDbParameterGroupForPatchUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HorizonDbParameterGroupForPatchUpdate model = BinaryData.fromString( - "{\"tags\":{\"zrnkcqvyxlwh\":\"qftiy\",\"ryavwhheunmmqh\":\"lsicohoqqnwv\",\"noc\":\"yxzk\",\"uconuqszfkbey\":\"koklya\"},\"properties\":{\"parameters\":[{\"name\":\"jmwvvj\",\"description\":\"tcxsenhwlrs\",\"value\":\"rzpwvlqdqgbiq\",\"dataType\":\"ihkaetcktvfc\",\"allowedValues\":\"fsnkymuctq\",\"isDynamic\":true,\"isReadOnly\":false,\"documentationLink\":\"rjcxerfuwu\",\"unit\":\"txfvjrbirph\"},{\"name\":\"pcyvahfnljkyqx\",\"description\":\"uujqgidokgjljyo\",\"value\":\"vcltbgsncgh\",\"dataType\":\"esz\",\"allowedValues\":\"bijhtxfvgxbf\",\"isDynamic\":true,\"isReadOnly\":false,\"documentationLink\":\"mpvecxgodebfqk\",\"unit\":\"bmpukgriwflz\"},{\"name\":\"bxzpuzycisp\",\"description\":\"zahmgkbrpyydhibn\",\"value\":\"qkpikadrgvtqagnb\",\"dataType\":\"nhijggmebfsi\",\"allowedValues\":\"butr\",\"isDynamic\":false,\"isReadOnly\":true,\"documentationLink\":\"zmhjrunmp\",\"unit\":\"tdbhrbnla\"}],\"description\":\"xmyskp\",\"applyImmediately\":true}}") - .toObject(HorizonDbParameterGroupForPatchUpdate.class); - Assertions.assertEquals("qftiy", model.tags().get("zrnkcqvyxlwh")); - Assertions.assertEquals("jmwvvj", model.properties().parameters().get(0).name()); - Assertions.assertEquals("rzpwvlqdqgbiq", model.properties().parameters().get(0).value()); - Assertions.assertEquals("xmyskp", model.properties().description()); - Assertions.assertTrue(model.properties().applyImmediately()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HorizonDbParameterGroupForPatchUpdate model = new HorizonDbParameterGroupForPatchUpdate() - .withTags(mapOf("zrnkcqvyxlwh", "qftiy", "ryavwhheunmmqh", "lsicohoqqnwv", "noc", "yxzk", "uconuqszfkbey", - "koklya")) - .withProperties(new HorizonDbParameterGroupPropertiesForPatchUpdate() - .withParameters(Arrays.asList(new ParameterProperties().withName("jmwvvj").withValue("rzpwvlqdqgbiq"), - new ParameterProperties().withName("pcyvahfnljkyqx").withValue("vcltbgsncgh"), - new ParameterProperties().withName("bxzpuzycisp").withValue("qkpikadrgvtqagnb"))) - .withDescription("xmyskp") - .withApplyImmediately(true)); - model = BinaryData.fromObject(model).toObject(HorizonDbParameterGroupForPatchUpdate.class); - Assertions.assertEquals("qftiy", model.tags().get("zrnkcqvyxlwh")); - Assertions.assertEquals("jmwvvj", model.properties().parameters().get(0).name()); - Assertions.assertEquals("rzpwvlqdqgbiq", model.properties().parameters().get(0).value()); - Assertions.assertEquals("xmyskp", model.properties().description()); - Assertions.assertTrue(model.properties().applyImmediately()); - } - - // 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/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupInnerTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupInnerTests.java deleted file mode 100644 index 41e82a9520a21..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupInnerTests.java +++ /dev/null @@ -1,62 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbParameterGroupInner; -import com.azure.resourcemanager.horizondb.models.HorizonDbParameterGroupProperties; -import com.azure.resourcemanager.horizondb.models.ParameterProperties; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class HorizonDbParameterGroupInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HorizonDbParameterGroupInner model = BinaryData.fromString( - "{\"properties\":{\"parameters\":[{\"name\":\"qjpkcattpngjcrc\",\"description\":\"sqpjhvmdajvn\",\"value\":\"ounqecano\",\"dataType\":\"upfh\",\"allowedValues\":\"ltrpmopj\",\"isDynamic\":false,\"isReadOnly\":false,\"documentationLink\":\"okth\",\"unit\":\"iuaod\"}],\"description\":\"cpkvxodp\",\"pgVersion\":182574553,\"version\":1621494681,\"applyImmediately\":true,\"provisioningState\":\"Succeeded\"},\"location\":\"fuaxbe\",\"tags\":{\"wqsmbsur\":\"uokktwhrdxwz\"},\"id\":\"xim\",\"name\":\"ryocfsfksymdd\",\"type\":\"stkiiuxhqyud\"}") - .toObject(HorizonDbParameterGroupInner.class); - Assertions.assertEquals("fuaxbe", model.location()); - Assertions.assertEquals("uokktwhrdxwz", model.tags().get("wqsmbsur")); - Assertions.assertEquals("qjpkcattpngjcrc", model.properties().parameters().get(0).name()); - Assertions.assertEquals("ounqecano", model.properties().parameters().get(0).value()); - Assertions.assertEquals("cpkvxodp", model.properties().description()); - Assertions.assertEquals(182574553, model.properties().pgVersion()); - Assertions.assertTrue(model.properties().applyImmediately()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HorizonDbParameterGroupInner model = new HorizonDbParameterGroupInner().withLocation("fuaxbe") - .withTags(mapOf("wqsmbsur", "uokktwhrdxwz")) - .withProperties(new HorizonDbParameterGroupProperties() - .withParameters( - Arrays.asList(new ParameterProperties().withName("qjpkcattpngjcrc").withValue("ounqecano"))) - .withDescription("cpkvxodp") - .withPgVersion(182574553) - .withApplyImmediately(true)); - model = BinaryData.fromObject(model).toObject(HorizonDbParameterGroupInner.class); - Assertions.assertEquals("fuaxbe", model.location()); - Assertions.assertEquals("uokktwhrdxwz", model.tags().get("wqsmbsur")); - Assertions.assertEquals("qjpkcattpngjcrc", model.properties().parameters().get(0).name()); - Assertions.assertEquals("ounqecano", model.properties().parameters().get(0).value()); - Assertions.assertEquals("cpkvxodp", model.properties().description()); - Assertions.assertEquals(182574553, model.properties().pgVersion()); - Assertions.assertTrue(model.properties().applyImmediately()); - } - - // 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/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupListResultTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupListResultTests.java deleted file mode 100644 index 2c160c91d2d4c..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupListResultTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.horizondb.implementation.models.HorizonDbParameterGroupListResult; -import org.junit.jupiter.api.Assertions; - -public final class HorizonDbParameterGroupListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HorizonDbParameterGroupListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"parameters\":[{\"name\":\"ilovnot\",\"description\":\"jfcn\",\"value\":\"k\",\"dataType\":\"x\",\"allowedValues\":\"bttk\",\"isDynamic\":false,\"isReadOnly\":true,\"documentationLink\":\"vjtoqnermclfp\",\"unit\":\"hoxus\"}],\"description\":\"pabgyeps\",\"pgVersion\":1974668378,\"version\":300871013,\"applyImmediately\":true,\"provisioningState\":\"InProgress\"},\"location\":\"wpmueefj\",\"tags\":{\"onobglaocqx\":\"qkqujidsu\",\"yudxytlmoy\":\"ccm\"},\"id\":\"xv\",\"name\":\"fudwpznt\",\"type\":\"hdzhlrqj\"},{\"properties\":{\"parameters\":[{\"name\":\"rlhrxs\",\"description\":\"yvpycanuzbpzk\",\"value\":\"kuwbcrnwb\",\"dataType\":\"hhseyv\",\"allowedValues\":\"srtslhspkdeem\",\"isDynamic\":false,\"isReadOnly\":true,\"documentationLink\":\"gkvtmelmqkrhah\",\"unit\":\"juahaquhcdhmdual\"},{\"name\":\"xqpvfadmw\",\"description\":\"crgvxpvgom\",\"value\":\"fmisg\",\"dataType\":\"nbbelda\",\"allowedValues\":\"zbaliourqha\",\"isDynamic\":true,\"isReadOnly\":true,\"documentationLink\":\"hsfwxosowzxcug\",\"unit\":\"jooxdjebw\"},{\"name\":\"cwwfvovbvme\",\"description\":\"civyhzceuo\",\"value\":\"jrwjueiotwm\",\"dataType\":\"ytdxwit\",\"allowedValues\":\"rjaw\",\"isDynamic\":false,\"isReadOnly\":true,\"documentationLink\":\"ni\",\"unit\":\"x\"}],\"description\":\"kpycgklwndnhjd\",\"pgVersion\":1458194336,\"version\":1064169122,\"applyImmediately\":false,\"provisioningState\":\"Provisioning\"},\"location\":\"tdhxujznbmpowuwp\",\"tags\":{\"alupjm\":\"lve\",\"iplrbpbewtghfgb\":\"hfxobbcswsrtj\",\"wxzvlvqhjkb\":\"c\",\"iebwwaloayqcgwrt\":\"gibtnm\"},\"id\":\"j\",\"name\":\"zg\",\"type\":\"yzm\"},{\"properties\":{\"parameters\":[{\"name\":\"gmtsavjcbpwxqpsr\",\"description\":\"ftguv\",\"value\":\"uhprwmdyvxqt\",\"dataType\":\"riwwroy\",\"allowedValues\":\"exrmcqibycnojvk\",\"isDynamic\":false,\"isReadOnly\":true,\"documentationLink\":\"gzva\",\"unit\":\"pjyzhpv\"},{\"name\":\"zcjrvxdjzlmwlx\",\"description\":\"ug\",\"value\":\"zovawjvz\",\"dataType\":\"luthn\",\"allowedValues\":\"rnxipei\",\"isDynamic\":true,\"isReadOnly\":true,\"documentationLink\":\"e\",\"unit\":\"dultskz\"}],\"description\":\"tdzumveekgpw\",\"pgVersion\":311434030,\"version\":1290652027,\"applyImmediately\":false,\"provisioningState\":\"Failed\"},\"location\":\"yofd\",\"tags\":{\"ttouwaboekqvkel\":\"us\",\"xwyjsflhhc\":\"smv\",\"ixisxyawjoy\":\"aln\"},\"id\":\"qcslyjpkiid\",\"name\":\"yexz\",\"type\":\"eli\"}],\"nextLink\":\"nr\"}") - .toObject(HorizonDbParameterGroupListResult.class); - Assertions.assertEquals("wpmueefj", model.value().get(0).location()); - Assertions.assertEquals("qkqujidsu", model.value().get(0).tags().get("onobglaocqx")); - Assertions.assertEquals("ilovnot", model.value().get(0).properties().parameters().get(0).name()); - Assertions.assertEquals("k", model.value().get(0).properties().parameters().get(0).value()); - Assertions.assertEquals("pabgyeps", model.value().get(0).properties().description()); - Assertions.assertEquals(1974668378, model.value().get(0).properties().pgVersion()); - Assertions.assertTrue(model.value().get(0).properties().applyImmediately()); - Assertions.assertEquals("nr", model.nextLink()); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupPropertiesForPatchUpdateTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupPropertiesForPatchUpdateTests.java deleted file mode 100644 index 12cfe04317662..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupPropertiesForPatchUpdateTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.horizondb.models.HorizonDbParameterGroupPropertiesForPatchUpdate; -import com.azure.resourcemanager.horizondb.models.ParameterProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class HorizonDbParameterGroupPropertiesForPatchUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HorizonDbParameterGroupPropertiesForPatchUpdate model = BinaryData.fromString( - "{\"parameters\":[{\"name\":\"kcxywnyt\",\"description\":\"synlqidybyxczfc\",\"value\":\"aaxdbabphlwrq\",\"dataType\":\"ktsthsucocmny\",\"allowedValues\":\"zt\",\"isDynamic\":false,\"isReadOnly\":false,\"documentationLink\":\"qpuedckzywbiex\",\"unit\":\"eyueaxibxujwb\"},{\"name\":\"walm\",\"description\":\"yoxa\",\"value\":\"dkzjancuxrh\",\"dataType\":\"bavxbniwdjswzt\",\"allowedValues\":\"bpg\",\"isDynamic\":false,\"isReadOnly\":false,\"documentationLink\":\"pzxbz\",\"unit\":\"zabglcuhxwt\"},{\"name\":\"yqiklbbovplwzb\",\"description\":\"gy\",\"value\":\"uosvmkfssxqukk\",\"dataType\":\"l\",\"allowedValues\":\"gsxnkjzkdeslpv\",\"isDynamic\":false,\"isReadOnly\":false,\"documentationLink\":\"ighxpk\",\"unit\":\"zb\"},{\"name\":\"uebbaumnyqup\",\"description\":\"eojnabc\",\"value\":\"smtxpsieb\",\"dataType\":\"hvpesapskrdqm\",\"allowedValues\":\"jdhtldwkyzxu\",\"isDynamic\":false,\"isReadOnly\":true,\"documentationLink\":\"scwsv\",\"unit\":\"otogtwrupqs\"}],\"description\":\"nmic\",\"applyImmediately\":false}") - .toObject(HorizonDbParameterGroupPropertiesForPatchUpdate.class); - Assertions.assertEquals("kcxywnyt", model.parameters().get(0).name()); - Assertions.assertEquals("aaxdbabphlwrq", model.parameters().get(0).value()); - Assertions.assertEquals("nmic", model.description()); - Assertions.assertFalse(model.applyImmediately()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HorizonDbParameterGroupPropertiesForPatchUpdate model = new HorizonDbParameterGroupPropertiesForPatchUpdate() - .withParameters(Arrays.asList(new ParameterProperties().withName("kcxywnyt").withValue("aaxdbabphlwrq"), - new ParameterProperties().withName("walm").withValue("dkzjancuxrh"), - new ParameterProperties().withName("yqiklbbovplwzb").withValue("uosvmkfssxqukk"), - new ParameterProperties().withName("uebbaumnyqup").withValue("smtxpsieb"))) - .withDescription("nmic") - .withApplyImmediately(false); - model = BinaryData.fromObject(model).toObject(HorizonDbParameterGroupPropertiesForPatchUpdate.class); - Assertions.assertEquals("kcxywnyt", model.parameters().get(0).name()); - Assertions.assertEquals("aaxdbabphlwrq", model.parameters().get(0).value()); - Assertions.assertEquals("nmic", model.description()); - Assertions.assertFalse(model.applyImmediately()); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupPropertiesTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupPropertiesTests.java deleted file mode 100644 index ad1aa959c6c88..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupPropertiesTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.horizondb.models.HorizonDbParameterGroupProperties; -import com.azure.resourcemanager.horizondb.models.ParameterProperties; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class HorizonDbParameterGroupPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HorizonDbParameterGroupProperties model = BinaryData.fromString( - "{\"parameters\":[{\"name\":\"qn\",\"description\":\"oczvy\",\"value\":\"qrvkdv\",\"dataType\":\"llr\",\"allowedValues\":\"vdfwatkpn\",\"isDynamic\":true,\"isReadOnly\":false,\"documentationLink\":\"bczw\",\"unit\":\"uwiqzb\"},{\"name\":\"vsovmyokac\",\"description\":\"kwlhzdo\",\"value\":\"xjmflbvv\",\"dataType\":\"hrk\",\"allowedValues\":\"iwwzjuqk\",\"isDynamic\":false,\"isReadOnly\":true,\"documentationLink\":\"wkuofoskghsauu\",\"unit\":\"jmvxie\"},{\"name\":\"ugidyjrr\",\"description\":\"y\",\"value\":\"svexcsonpclhoco\",\"dataType\":\"lkevle\",\"allowedValues\":\"zfbuhf\",\"isDynamic\":true,\"isReadOnly\":false,\"documentationLink\":\"ffeii\",\"unit\":\"lvmezyvshxmzsbbz\"},{\"name\":\"gigr\",\"description\":\"burvjxxjnspy\",\"value\":\"tko\",\"dataType\":\"kouknvudwtiu\",\"allowedValues\":\"ldngkpoci\",\"isDynamic\":false,\"isReadOnly\":true,\"documentationLink\":\"egukgjnpiucg\",\"unit\":\"evqzntypmrbp\"}],\"description\":\"c\",\"pgVersion\":1616487247,\"version\":1971484471,\"applyImmediately\":false,\"provisioningState\":\"Failed\"}") - .toObject(HorizonDbParameterGroupProperties.class); - Assertions.assertEquals("qn", model.parameters().get(0).name()); - Assertions.assertEquals("qrvkdv", model.parameters().get(0).value()); - Assertions.assertEquals("c", model.description()); - Assertions.assertEquals(1616487247, model.pgVersion()); - Assertions.assertFalse(model.applyImmediately()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HorizonDbParameterGroupProperties model = new HorizonDbParameterGroupProperties() - .withParameters(Arrays.asList(new ParameterProperties().withName("qn").withValue("qrvkdv"), - new ParameterProperties().withName("vsovmyokac").withValue("xjmflbvv"), - new ParameterProperties().withName("ugidyjrr").withValue("svexcsonpclhoco"), - new ParameterProperties().withName("gigr").withValue("tko"))) - .withDescription("c") - .withPgVersion(1616487247) - .withApplyImmediately(false); - model = BinaryData.fromObject(model).toObject(HorizonDbParameterGroupProperties.class); - Assertions.assertEquals("qn", model.parameters().get(0).name()); - Assertions.assertEquals("qrvkdv", model.parameters().get(0).value()); - Assertions.assertEquals("c", model.description()); - Assertions.assertEquals(1616487247, model.pgVersion()); - Assertions.assertFalse(model.applyImmediately()); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsCreateOrUpdateMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsCreateOrUpdateMockTests.java deleted file mode 100644 index 9dac742682247..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsCreateOrUpdateMockTests.java +++ /dev/null @@ -1,71 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.horizondb.HorizonDbManager; -import com.azure.resourcemanager.horizondb.models.HorizonDbParameterGroup; -import com.azure.resourcemanager.horizondb.models.HorizonDbParameterGroupProperties; -import com.azure.resourcemanager.horizondb.models.ParameterProperties; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class HorizonDbParameterGroupsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"properties\":{\"parameters\":[{\"name\":\"ktgplcr\",\"description\":\"jxeznoigbrnjwmw\",\"value\":\"nbsazejjoqkag\",\"dataType\":\"sxtta\",\"allowedValues\":\"zxnfaaz\",\"isDynamic\":false,\"isReadOnly\":false,\"documentationLink\":\"dm\",\"unit\":\"j\"},{\"name\":\"wuenvr\",\"description\":\"yo\",\"value\":\"ibreb\",\"dataType\":\"aysjkixqtnqttez\",\"allowedValues\":\"fffiak\",\"isDynamic\":false,\"isReadOnly\":false,\"documentationLink\":\"tedltmmj\",\"unit\":\"yeozphvwauyqncy\"},{\"name\":\"p\",\"description\":\"ipmdscwx\",\"value\":\"pevzhfst\",\"dataType\":\"xhojuj\",\"allowedValues\":\"pelmcuvhixbjxyf\",\"isDynamic\":false,\"isReadOnly\":false,\"documentationLink\":\"ool\",\"unit\":\"tpkiwkkbnujry\"},{\"name\":\"tylbfpncurdoiw\",\"description\":\"thtywub\",\"value\":\"bihwqknfdnt\",\"dataType\":\"chrdgoihxumwcto\",\"allowedValues\":\"zj\",\"isDynamic\":false,\"isReadOnly\":false,\"documentationLink\":\"lwg\",\"unit\":\"tsbwtovvtgse\"}],\"description\":\"qfi\",\"pgVersion\":257068718,\"version\":1223110676,\"applyImmediately\":true,\"provisioningState\":\"Succeeded\"},\"location\":\"nepttwqmsni\",\"tags\":{\"k\":\"dmqnrojlpij\"},\"id\":\"xfrdd\",\"name\":\"c\",\"type\":\"atiz\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - HorizonDbManager manager = HorizonDbManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - HorizonDbParameterGroup response = manager.horizonDbParameterGroups() - .define("tmtdhtmdvypgik") - .withRegion("xzb") - .withExistingResourceGroup("fq") - .withTags(mapOf("ronzmyhgfip", "owvrvmtgjqppyos", "waekrrjreafxtsgu", "sxkm")) - .withProperties(new HorizonDbParameterGroupProperties() - .withParameters(Arrays.asList(new ParameterProperties().withName("w").withValue("oqrvqqaatjin"), - new ParameterProperties().withName("s").withValue("vwz"))) - .withDescription("vqahqkghtpwi") - .withPgVersion(205565987) - .withApplyImmediately(false)) - .create(); - - Assertions.assertEquals("nepttwqmsni", response.location()); - Assertions.assertEquals("dmqnrojlpij", response.tags().get("k")); - Assertions.assertEquals("ktgplcr", response.properties().parameters().get(0).name()); - Assertions.assertEquals("nbsazejjoqkag", response.properties().parameters().get(0).value()); - Assertions.assertEquals("qfi", response.properties().description()); - Assertions.assertEquals(257068718, response.properties().pgVersion()); - Assertions.assertTrue(response.properties().applyImmediately()); - } - - // 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/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsGetByResourceGroupWithResponseMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsGetByResourceGroupWithResponseMockTests.java deleted file mode 100644 index 4b3a9e97975d2..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsGetByResourceGroupWithResponseMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.horizondb.HorizonDbManager; -import com.azure.resourcemanager.horizondb.models.HorizonDbParameterGroup; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class HorizonDbParameterGroupsGetByResourceGroupWithResponseMockTests { - @Test - public void testGetByResourceGroupWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"parameters\":[{\"name\":\"ifrvtpu\",\"description\":\"jmqlgkfb\",\"value\":\"doaon\",\"dataType\":\"jcntuj\",\"allowedValues\":\"c\",\"isDynamic\":false,\"isReadOnly\":true,\"documentationLink\":\"waezkojvd\",\"unit\":\"zfoqouicybxar\"},{\"name\":\"szufoxciqopidoa\",\"description\":\"iodhkhazxkhnz\",\"value\":\"nlwntoe\",\"dataType\":\"kdwbwhkszz\",\"allowedValues\":\"rvexztvb\",\"isDynamic\":true,\"isReadOnly\":false,\"documentationLink\":\"aoyzkoow\",\"unit\":\"mnguxawqaldsyu\"}],\"description\":\"imerqfobwyznk\",\"pgVersion\":1383706321,\"version\":189482477,\"applyImmediately\":true,\"provisioningState\":\"Canceled\"},\"location\":\"a\",\"tags\":{\"kdsnfdsdoakgtdl\":\"r\",\"dlhewp\":\"kkze\",\"bbejdcngqqm\":\"sdsttwvog\"},\"id\":\"akufgmjz\",\"name\":\"wr\",\"type\":\"grtwae\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - HorizonDbManager manager = HorizonDbManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - HorizonDbParameterGroup response = manager.horizonDbParameterGroups() - .getByResourceGroupWithResponse("l", "wabm", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("a", response.location()); - Assertions.assertEquals("r", response.tags().get("kdsnfdsdoakgtdl")); - Assertions.assertEquals("ifrvtpu", response.properties().parameters().get(0).name()); - Assertions.assertEquals("doaon", response.properties().parameters().get(0).value()); - Assertions.assertEquals("imerqfobwyznk", response.properties().description()); - Assertions.assertEquals(1383706321, response.properties().pgVersion()); - Assertions.assertTrue(response.properties().applyImmediately()); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsListByResourceGroupMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsListByResourceGroupMockTests.java deleted file mode 100644 index f6e024780e24c..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsListByResourceGroupMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.horizondb.HorizonDbManager; -import com.azure.resourcemanager.horizondb.models.HorizonDbParameterGroup; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class HorizonDbParameterGroupsListByResourceGroupMockTests { - @Test - public void testListByResourceGroup() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"parameters\":[{\"name\":\"bminrfdwoyuhhzi\",\"description\":\"efozbhdms\",\"value\":\"mzqhoftrmaequi\",\"dataType\":\"xicslfao\",\"allowedValues\":\"piyylhalnswhccsp\",\"isDynamic\":true,\"isReadOnly\":true,\"documentationLink\":\"itqscywuggwoluhc\",\"unit\":\"wem\"},{\"name\":\"i\",\"description\":\"brgz\",\"value\":\"msweypqwdxggicc\",\"dataType\":\"xqhuexm\",\"allowedValues\":\"tlstvlzywem\",\"isDynamic\":true,\"isReadOnly\":true,\"documentationLink\":\"dtclusiypb\",\"unit\":\"gytguslfead\"},{\"name\":\"gq\",\"description\":\"yhejhzisxgfp\",\"value\":\"olppvksrpqvujz\",\"dataType\":\"ehtwdwrft\",\"allowedValues\":\"iby\",\"isDynamic\":false,\"isReadOnly\":true,\"documentationLink\":\"shfwpracstwity\",\"unit\":\"evxccedcp\"}],\"description\":\"dyodnwzxltj\",\"pgVersion\":424916927,\"version\":798686502,\"applyImmediately\":true,\"provisioningState\":\"Canceled\"},\"location\":\"xnavvwxq\",\"tags\":{\"vfgbvfvpdboda\":\"qunyowxwlmdjr\"},\"id\":\"izsjqlhkrr\",\"name\":\"bdeibqipqk\",\"type\":\"hvxndzwmkrefajpj\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - HorizonDbManager manager = HorizonDbManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response - = manager.horizonDbParameterGroups().listByResourceGroup("u", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("xnavvwxq", response.iterator().next().location()); - Assertions.assertEquals("qunyowxwlmdjr", response.iterator().next().tags().get("vfgbvfvpdboda")); - Assertions.assertEquals("bminrfdwoyuhhzi", response.iterator().next().properties().parameters().get(0).name()); - Assertions.assertEquals("mzqhoftrmaequi", response.iterator().next().properties().parameters().get(0).value()); - Assertions.assertEquals("dyodnwzxltj", response.iterator().next().properties().description()); - Assertions.assertEquals(424916927, response.iterator().next().properties().pgVersion()); - Assertions.assertTrue(response.iterator().next().properties().applyImmediately()); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsListMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsListMockTests.java deleted file mode 100644 index 74ec3fcc9681c..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsListMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.horizondb.HorizonDbManager; -import com.azure.resourcemanager.horizondb.models.HorizonDbParameterGroup; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class HorizonDbParameterGroupsListMockTests { - @Test - public void testList() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"parameters\":[{\"name\":\"nyhgbijtji\",\"description\":\"xzsjabib\",\"value\":\"stawfsdjpvkv\",\"dataType\":\"jxbkzbzkdvn\",\"allowedValues\":\"abudurgk\",\"isDynamic\":true,\"isReadOnly\":false,\"documentationLink\":\"hjjklff\",\"unit\":\"ouw\"},{\"name\":\"gzrf\",\"description\":\"eyebizikayuhql\",\"value\":\"bs\",\"dataType\":\"bqwrvtldgm\",\"allowedValues\":\"gvmpipaslthaqfx\",\"isDynamic\":true,\"isReadOnly\":false,\"documentationLink\":\"wbdsr\",\"unit\":\"pdrhne\"}],\"description\":\"owqkdwytisi\",\"pgVersion\":909535969,\"version\":1043585640,\"applyImmediately\":true,\"provisioningState\":\"Failed\"},\"location\":\"imejzanl\",\"tags\":{\"zonokixrjqci\":\"iavrm\"},\"id\":\"gzpfrla\",\"name\":\"szrnwo\",\"type\":\"indfpwpjyl\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - HorizonDbManager manager = HorizonDbManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response - = manager.horizonDbParameterGroups().list(com.azure.core.util.Context.NONE); - - Assertions.assertEquals("imejzanl", response.iterator().next().location()); - Assertions.assertEquals("iavrm", response.iterator().next().tags().get("zonokixrjqci")); - Assertions.assertEquals("nyhgbijtji", response.iterator().next().properties().parameters().get(0).name()); - Assertions.assertEquals("stawfsdjpvkv", response.iterator().next().properties().parameters().get(0).value()); - Assertions.assertEquals("owqkdwytisi", response.iterator().next().properties().description()); - Assertions.assertEquals(909535969, response.iterator().next().properties().pgVersion()); - Assertions.assertTrue(response.iterator().next().properties().applyImmediately()); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsListVersionsMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsListVersionsMockTests.java deleted file mode 100644 index 570de0c4fbef6..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsListVersionsMockTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.horizondb.HorizonDbManager; -import com.azure.resourcemanager.horizondb.models.HorizonDbParameterGroup; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class HorizonDbParameterGroupsListVersionsMockTests { - @Test - public void testListVersions() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"parameters\":[{\"name\":\"xsowu\",\"description\":\"uqhhahhxvrh\",\"value\":\"kwpjgwwspughftqs\",\"dataType\":\"qxujxukndxd\",\"allowedValues\":\"rjguufzdmsyqtf\",\"isDynamic\":true,\"isReadOnly\":true,\"documentationLink\":\"tzingamvpph\",\"unit\":\"zqzudph\"},{\"name\":\"mvdk\",\"description\":\"ynwcvtbv\",\"value\":\"yhmtnvyqiat\",\"dataType\":\"wp\",\"allowedValues\":\"p\",\"isDynamic\":true,\"isReadOnly\":false,\"documentationLink\":\"sgvvsccyajguq\",\"unit\":\"wygzlvdnkfxusem\"}],\"description\":\"zrmuhapfcqdps\",\"pgVersion\":399879139,\"version\":124988622,\"applyImmediately\":false,\"provisioningState\":\"Failed\"},\"location\":\"mgccelvezrypq\",\"tags\":{\"edkowepbqpcrfk\":\"eokerqwkyhkobopg\"},\"id\":\"wccsnjvcdwxlpqek\",\"name\":\"tn\",\"type\":\"htjsying\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - HorizonDbManager manager = HorizonDbManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response = manager.horizonDbParameterGroups() - .listVersions("hldvriii", "jnalghf", 1358973508, com.azure.core.util.Context.NONE); - - Assertions.assertEquals("mgccelvezrypq", response.iterator().next().location()); - Assertions.assertEquals("eokerqwkyhkobopg", response.iterator().next().tags().get("edkowepbqpcrfk")); - Assertions.assertEquals("xsowu", response.iterator().next().properties().parameters().get(0).name()); - Assertions.assertEquals("kwpjgwwspughftqs", - response.iterator().next().properties().parameters().get(0).value()); - Assertions.assertEquals("zrmuhapfcqdps", response.iterator().next().properties().description()); - Assertions.assertEquals(399879139, response.iterator().next().properties().pgVersion()); - Assertions.assertFalse(response.iterator().next().properties().applyImmediately()); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPoolInnerTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPoolInnerTests.java deleted file mode 100644 index 439468cd015fd..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPoolInnerTests.java +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbPoolInner; -import org.junit.jupiter.api.Assertions; - -public final class HorizonDbPoolInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HorizonDbPoolInner model = BinaryData.fromString( - "{\"properties\":{\"location\":\"podepoo\",\"state\":\"Ready\",\"replicaCount\":1290742637,\"version\":\"mihe\",\"createMode\":\"Update\",\"provisioningState\":\"InProgress\"},\"tags\":{\"o\":\"xth\",\"cciqihnhungbwjz\":\"usivye\",\"kufubljo\":\"nfygxgispemvtz\",\"v\":\"xqeofjaeqjhqjba\"},\"id\":\"mjqulngsn\",\"name\":\"nbybkzgcwrwcl\",\"type\":\"xwrljdouskcqvkoc\"}") - .toObject(HorizonDbPoolInner.class); - Assertions.assertEquals("podepoo", model.properties().location()); - Assertions.assertEquals("xth", model.tags().get("o")); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPoolListResultTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPoolListResultTests.java deleted file mode 100644 index 65559c95b41a8..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPoolListResultTests.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.horizondb.implementation.models.HorizonDbPoolListResult; -import org.junit.jupiter.api.Assertions; - -public final class HorizonDbPoolListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HorizonDbPoolListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"location\":\"ljfmppee\",\"state\":\"Dropping\",\"replicaCount\":168593557,\"version\":\"abkyqduujitcjcz\",\"createMode\":\"Create\",\"provisioningState\":\"Succeeded\"},\"tags\":{\"dsbdkvwrwjf\":\"krwpdap\"},\"id\":\"snhu\",\"name\":\"je\",\"type\":\"tmrldhugjzzdatq\"}],\"nextLink\":\"oc\"}") - .toObject(HorizonDbPoolListResult.class); - Assertions.assertEquals("ljfmppee", model.value().get(0).properties().location()); - Assertions.assertEquals("krwpdap", model.value().get(0).tags().get("dsbdkvwrwjf")); - Assertions.assertEquals("oc", model.nextLink()); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPoolPropertiesTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPoolPropertiesTests.java deleted file mode 100644 index 708388ce36c16..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPoolPropertiesTests.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.horizondb.models.HorizonDbPoolProperties; -import org.junit.jupiter.api.Assertions; - -public final class HorizonDbPoolPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HorizonDbPoolProperties model = BinaryData.fromString( - "{\"location\":\"jdkwtnhxbnjb\",\"state\":\"Disabled\",\"replicaCount\":588901049,\"version\":\"lssai\",\"createMode\":\"Create\",\"provisioningState\":\"Failed\"}") - .toObject(HorizonDbPoolProperties.class); - Assertions.assertEquals("jdkwtnhxbnjb", model.location()); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateLinkResourceInnerTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateLinkResourceInnerTests.java deleted file mode 100644 index 3673d8b0693f6..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateLinkResourceInnerTests.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbPrivateLinkResourceInner; -import org.junit.jupiter.api.Assertions; - -public final class HorizonDbPrivateLinkResourceInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HorizonDbPrivateLinkResourceInner model = BinaryData.fromString( - "{\"properties\":{\"groupId\":\"i\",\"requiredMembers\":[\"hzrvqd\"],\"requiredZoneNames\":[\"hjybigehoqfbo\"]},\"id\":\"kanyktzlcuiywg\",\"name\":\"ywgndrv\",\"type\":\"nhzgpphrcgyn\"}") - .toObject(HorizonDbPrivateLinkResourceInner.class); - Assertions.assertEquals("hjybigehoqfbo", model.properties().requiredZoneNames().get(0)); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateLinkResourceListResultTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateLinkResourceListResultTests.java deleted file mode 100644 index 46fb345f71268..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateLinkResourceListResultTests.java +++ /dev/null @@ -1,20 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.horizondb.implementation.models.HorizonDbPrivateLinkResourceListResult; -import org.junit.jupiter.api.Assertions; - -public final class HorizonDbPrivateLinkResourceListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HorizonDbPrivateLinkResourceListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"groupId\":\"wnfnbacf\",\"requiredMembers\":[\"l\",\"bxetqgtzxdpn\",\"bqqwxrj\",\"eallnwsubisnj\"],\"requiredZoneNames\":[\"mngnzscxaqw\"]},\"id\":\"chcbonqvpkvlrxnj\",\"name\":\"ase\",\"type\":\"pheoflokeyy\"},{\"properties\":{\"groupId\":\"jbdlwtgrhpdjpju\",\"requiredMembers\":[\"xazjpqyegual\",\"b\"],\"requiredZoneNames\":[\"e\",\"jzzvdud\"]},\"id\":\"dslfhotwmcy\",\"name\":\"pwlbjnpg\",\"type\":\"cftadeh\"},{\"properties\":{\"groupId\":\"tyfsoppusuesn\",\"requiredMembers\":[\"ej\",\"avo\"],\"requiredZoneNames\":[\"dmoh\",\"tbqvudw\",\"dndnvow\"]},\"id\":\"jjugwdkcglhslaz\",\"name\":\"dyggdtjixhbku\",\"type\":\"fqweykhmene\"},{\"properties\":{\"groupId\":\"exfwhy\",\"requiredMembers\":[\"bvyvdcsity\"],\"requiredZoneNames\":[\"amdecte\",\"f\"]},\"id\":\"scjeypv\",\"name\":\"ezrkgqhcjrefo\",\"type\":\"gm\"}],\"nextLink\":\"sle\"}") - .toObject(HorizonDbPrivateLinkResourceListResult.class); - Assertions.assertEquals("mngnzscxaqw", model.value().get(0).properties().requiredZoneNames().get(0)); - Assertions.assertEquals("sle", model.nextLink()); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicaForPatchUpdateTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicaForPatchUpdateTests.java deleted file mode 100644 index 09eaec68dfc27..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicaForPatchUpdateTests.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.horizondb.models.HorizonDbReplicaForPatchUpdate; -import com.azure.resourcemanager.horizondb.models.HorizonDbReplicaPropertiesForPatchUpdate; -import com.azure.resourcemanager.horizondb.models.ReplicaRole; -import org.junit.jupiter.api.Assertions; - -public final class HorizonDbReplicaForPatchUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HorizonDbReplicaForPatchUpdate model = BinaryData.fromString("{\"properties\":{\"role\":\"ReadWrite\"}}") - .toObject(HorizonDbReplicaForPatchUpdate.class); - Assertions.assertEquals(ReplicaRole.READ_WRITE, model.properties().role()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HorizonDbReplicaForPatchUpdate model = new HorizonDbReplicaForPatchUpdate() - .withProperties(new HorizonDbReplicaPropertiesForPatchUpdate().withRole(ReplicaRole.READ_WRITE)); - model = BinaryData.fromObject(model).toObject(HorizonDbReplicaForPatchUpdate.class); - Assertions.assertEquals(ReplicaRole.READ_WRITE, model.properties().role()); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicaInnerTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicaInnerTests.java deleted file mode 100644 index 7f03c81ce5ab0..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicaInnerTests.java +++ /dev/null @@ -1,31 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.horizondb.fluent.models.HorizonDbReplicaInner; -import com.azure.resourcemanager.horizondb.models.HorizonDbReplicaProperties; -import com.azure.resourcemanager.horizondb.models.ReplicaRole; -import org.junit.jupiter.api.Assertions; - -public final class HorizonDbReplicaInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HorizonDbReplicaInner model = BinaryData.fromString( - "{\"properties\":{\"role\":\"ReadWrite\",\"status\":\"Dropping\",\"fullyQualifiedDomainName\":\"phut\",\"availabilityZone\":\"ndv\",\"provisioningState\":\"Canceled\"},\"id\":\"wyiftyhxhur\",\"name\":\"k\",\"type\":\"tyxolniwpwc\"}") - .toObject(HorizonDbReplicaInner.class); - Assertions.assertEquals(ReplicaRole.READ_WRITE, model.properties().role()); - Assertions.assertEquals("ndv", model.properties().availabilityZone()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HorizonDbReplicaInner model = new HorizonDbReplicaInner().withProperties( - new HorizonDbReplicaProperties().withRole(ReplicaRole.READ_WRITE).withAvailabilityZone("ndv")); - model = BinaryData.fromObject(model).toObject(HorizonDbReplicaInner.class); - Assertions.assertEquals(ReplicaRole.READ_WRITE, model.properties().role()); - Assertions.assertEquals("ndv", model.properties().availabilityZone()); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicaListResultTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicaListResultTests.java deleted file mode 100644 index 5c9b9def2f480..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicaListResultTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.horizondb.implementation.models.HorizonDbReplicaListResult; -import com.azure.resourcemanager.horizondb.models.ReplicaRole; -import org.junit.jupiter.api.Assertions; - -public final class HorizonDbReplicaListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HorizonDbReplicaListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"role\":\"ReadWrite\",\"status\":\"Ready\",\"fullyQualifiedDomainName\":\"ejk\",\"availabilityZone\":\"ynqgoulzndlikwyq\",\"provisioningState\":\"Failed\"},\"id\":\"ibmadgakeqsrxy\",\"name\":\"zqqedq\",\"type\":\"tbciqfouflmm\"},{\"properties\":{\"role\":\"ReadWrite\",\"status\":\"Ready\",\"fullyQualifiedDomainName\":\"mglougpbkw\",\"availabilityZone\":\"utduqktapspwgcu\",\"provisioningState\":\"InProgress\"},\"id\":\"mkdo\",\"name\":\"vqwhbmdgbbjfd\",\"type\":\"gmbmbexppbh\"},{\"properties\":{\"role\":\"Read\",\"status\":\"Updating\",\"fullyQualifiedDomainName\":\"p\",\"availabilityZone\":\"s\",\"provisioningState\":\"Succeeded\"},\"id\":\"qux\",\"name\":\"gjyjgzjaoyfhrtxi\",\"type\":\"n\"}],\"nextLink\":\"kujysvlejuvfq\"}") - .toObject(HorizonDbReplicaListResult.class); - Assertions.assertEquals(ReplicaRole.READ_WRITE, model.value().get(0).properties().role()); - Assertions.assertEquals("ynqgoulzndlikwyq", model.value().get(0).properties().availabilityZone()); - Assertions.assertEquals("kujysvlejuvfq", model.nextLink()); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicaPropertiesForPatchUpdateTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicaPropertiesForPatchUpdateTests.java deleted file mode 100644 index a178deb9396fe..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicaPropertiesForPatchUpdateTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.horizondb.models.HorizonDbReplicaPropertiesForPatchUpdate; -import com.azure.resourcemanager.horizondb.models.ReplicaRole; -import org.junit.jupiter.api.Assertions; - -public final class HorizonDbReplicaPropertiesForPatchUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HorizonDbReplicaPropertiesForPatchUpdate model = BinaryData.fromString("{\"role\":\"ReadWrite\"}") - .toObject(HorizonDbReplicaPropertiesForPatchUpdate.class); - Assertions.assertEquals(ReplicaRole.READ_WRITE, model.role()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HorizonDbReplicaPropertiesForPatchUpdate model - = new HorizonDbReplicaPropertiesForPatchUpdate().withRole(ReplicaRole.READ_WRITE); - model = BinaryData.fromObject(model).toObject(HorizonDbReplicaPropertiesForPatchUpdate.class); - Assertions.assertEquals(ReplicaRole.READ_WRITE, model.role()); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicaPropertiesTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicaPropertiesTests.java deleted file mode 100644 index 2ffab056c1d1e..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicaPropertiesTests.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.horizondb.models.HorizonDbReplicaProperties; -import com.azure.resourcemanager.horizondb.models.ReplicaRole; -import org.junit.jupiter.api.Assertions; - -public final class HorizonDbReplicaPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - HorizonDbReplicaProperties model = BinaryData.fromString( - "{\"role\":\"ReadWrite\",\"status\":\"Dropping\",\"fullyQualifiedDomainName\":\"iawxklry\",\"availabilityZone\":\"wckbasyypnd\",\"provisioningState\":\"InProgress\"}") - .toObject(HorizonDbReplicaProperties.class); - Assertions.assertEquals(ReplicaRole.READ_WRITE, model.role()); - Assertions.assertEquals("wckbasyypnd", model.availabilityZone()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - HorizonDbReplicaProperties model - = new HorizonDbReplicaProperties().withRole(ReplicaRole.READ_WRITE).withAvailabilityZone("wckbasyypnd"); - model = BinaryData.fromObject(model).toObject(HorizonDbReplicaProperties.class); - Assertions.assertEquals(ReplicaRole.READ_WRITE, model.role()); - Assertions.assertEquals("wckbasyypnd", model.availabilityZone()); - } -} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationForPatchUpdateTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationForPatchUpdateTests.java new file mode 100644 index 0000000000000..79682f91148e3 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationForPatchUpdateTests.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.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.LogCaptureConfigurationForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.LogCaptureConfigurationPropertiesForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.LogCaptureState; +import org.junit.jupiter.api.Assertions; + +public final class LogCaptureConfigurationForPatchUpdateTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + LogCaptureConfigurationForPatchUpdate model + = BinaryData.fromString("{\"properties\":{\"state\":\"Disabled\",\"retentionDays\":1274938421}}") + .toObject(LogCaptureConfigurationForPatchUpdate.class); + Assertions.assertEquals(LogCaptureState.DISABLED, model.properties().state()); + Assertions.assertEquals(1274938421, model.properties().retentionDays()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + LogCaptureConfigurationForPatchUpdate model = new LogCaptureConfigurationForPatchUpdate() + .withProperties(new LogCaptureConfigurationPropertiesForPatchUpdate().withState(LogCaptureState.DISABLED) + .withRetentionDays(1274938421)); + model = BinaryData.fromObject(model).toObject(LogCaptureConfigurationForPatchUpdate.class); + Assertions.assertEquals(LogCaptureState.DISABLED, model.properties().state()); + Assertions.assertEquals(1274938421, model.properties().retentionDays()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationInnerTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationInnerTests.java new file mode 100644 index 0000000000000..ce953cd7c455f --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationInnerTests.java @@ -0,0 +1,21 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.fluent.models.LogCaptureConfigurationInner; +import com.azure.resourcemanager.horizondb.models.LogCaptureState; +import org.junit.jupiter.api.Assertions; + +public final class LogCaptureConfigurationInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + LogCaptureConfigurationInner model = BinaryData.fromString( + "{\"properties\":{\"state\":\"Disabled\",\"retentionDays\":979577305,\"provisioningState\":\"Succeeded\"},\"id\":\"wyt\",\"name\":\"sibircgpi\",\"type\":\"pzimejzanlfzxi\"}") + .toObject(LogCaptureConfigurationInner.class); + Assertions.assertEquals(LogCaptureState.DISABLED, model.properties().state()); + Assertions.assertEquals(979577305, model.properties().retentionDays()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationListResultTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationListResultTests.java new file mode 100644 index 0000000000000..d5aa48c16fc1b --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationListResultTests.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.implementation.models.LogCaptureConfigurationListResult; +import com.azure.resourcemanager.horizondb.models.LogCaptureState; +import org.junit.jupiter.api.Assertions; + +public final class LogCaptureConfigurationListResultTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + LogCaptureConfigurationListResult model = BinaryData.fromString( + "{\"value\":[{\"properties\":{\"state\":\"Enabled\",\"retentionDays\":749799353,\"provisioningState\":\"Failed\"},\"id\":\"frl\",\"name\":\"zszrnwoiindfpw\",\"type\":\"jylwbtlhflsj\"}],\"nextLink\":\"hszfjvfb\"}") + .toObject(LogCaptureConfigurationListResult.class); + Assertions.assertEquals(LogCaptureState.ENABLED, model.value().get(0).properties().state()); + Assertions.assertEquals(749799353, model.value().get(0).properties().retentionDays()); + Assertions.assertEquals("hszfjvfb", model.nextLink()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationPropertiesForPatchUpdateTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationPropertiesForPatchUpdateTests.java new file mode 100644 index 0000000000000..2ee99514f6896 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationPropertiesForPatchUpdateTests.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.LogCaptureConfigurationPropertiesForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.LogCaptureState; +import org.junit.jupiter.api.Assertions; + +public final class LogCaptureConfigurationPropertiesForPatchUpdateTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + LogCaptureConfigurationPropertiesForPatchUpdate model + = BinaryData.fromString("{\"state\":\"Disabled\",\"retentionDays\":485732763}") + .toObject(LogCaptureConfigurationPropertiesForPatchUpdate.class); + Assertions.assertEquals(LogCaptureState.DISABLED, model.state()); + Assertions.assertEquals(485732763, model.retentionDays()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + LogCaptureConfigurationPropertiesForPatchUpdate model + = new LogCaptureConfigurationPropertiesForPatchUpdate().withState(LogCaptureState.DISABLED) + .withRetentionDays(485732763); + model = BinaryData.fromObject(model).toObject(LogCaptureConfigurationPropertiesForPatchUpdate.class); + Assertions.assertEquals(LogCaptureState.DISABLED, model.state()); + Assertions.assertEquals(485732763, model.retentionDays()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationPropertiesTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationPropertiesTests.java new file mode 100644 index 0000000000000..9dcb953661887 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationPropertiesTests.java @@ -0,0 +1,21 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.LogCaptureConfigurationProperties; +import com.azure.resourcemanager.horizondb.models.LogCaptureState; +import org.junit.jupiter.api.Assertions; + +public final class LogCaptureConfigurationPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + LogCaptureConfigurationProperties model = BinaryData + .fromString("{\"state\":\"Enabled\",\"retentionDays\":1297052787,\"provisioningState\":\"InProgress\"}") + .toObject(LogCaptureConfigurationProperties.class); + Assertions.assertEquals(LogCaptureState.ENABLED, model.state()); + Assertions.assertEquals(1297052787, model.retentionDays()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPoolsGetWithResponseMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationsGetWithResponseMockTests.java similarity index 61% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPoolsGetWithResponseMockTests.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationsGetWithResponseMockTests.java index 63cb2f01482d1..fc3426d96f8fc 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPoolsGetWithResponseMockTests.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationsGetWithResponseMockTests.java @@ -10,18 +10,19 @@ import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.horizondb.HorizonDbManager; -import com.azure.resourcemanager.horizondb.models.HorizonDbPool; +import com.azure.resourcemanager.horizondb.models.LogCaptureConfiguration; +import com.azure.resourcemanager.horizondb.models.LogCaptureState; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; -public final class HorizonDbPoolsGetWithResponseMockTests { +public final class LogCaptureConfigurationsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"location\":\"xclvit\",\"state\":\"Stopped\",\"replicaCount\":176578322,\"version\":\"osggbhc\",\"createMode\":\"Create\",\"provisioningState\":\"InProgress\"},\"tags\":{\"aljutiiswac\":\"n\",\"fvhqc\":\"fgdkzzew\",\"lvpnpp\":\"a\",\"hdlxyjrxsagafcn\":\"uflrwd\"},\"id\":\"gwq\",\"name\":\"pnedgf\",\"type\":\"cvkcvqvpkeqdcv\"}"; + = "{\"properties\":{\"state\":\"Disabled\",\"retentionDays\":341362078,\"provisioningState\":\"InProgress\"},\"id\":\"mjxlyyzglgouw\",\"name\":\"lmjjyuo\",\"type\":\"qtobaxkjeyt\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,11 +31,11 @@ public void testGetWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - HorizonDbPool response = manager.horizonDbPools() - .getWithResponse("glkfg", "hdneuelfph", "dyhtozfikdowwquu", com.azure.core.util.Context.NONE) + LogCaptureConfiguration response = manager.logCaptureConfigurations() + .getWithResponse("znnbsoqeqalarvl", "gunbtgfebwlnbm", "yreeudz", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("xclvit", response.properties().location()); - Assertions.assertEquals("n", response.tags().get("aljutiiswac")); + Assertions.assertEquals(LogCaptureState.DISABLED, response.properties().state()); + Assertions.assertEquals(341362078, response.properties().retentionDays()); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPoolsListMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationsListMockTests.java similarity index 62% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPoolsListMockTests.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationsListMockTests.java index 2a64a1658553f..321f5d580eaa8 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPoolsListMockTests.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationsListMockTests.java @@ -11,18 +11,19 @@ import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.horizondb.HorizonDbManager; -import com.azure.resourcemanager.horizondb.models.HorizonDbPool; +import com.azure.resourcemanager.horizondb.models.LogCaptureConfiguration; +import com.azure.resourcemanager.horizondb.models.LogCaptureState; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; -public final class HorizonDbPoolsListMockTests { +public final class LogCaptureConfigurationsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"location\":\"cjwvn\",\"state\":\"Starting\",\"replicaCount\":3568430,\"version\":\"gx\",\"createMode\":\"Update\",\"provisioningState\":\"Succeeded\"},\"tags\":{\"egrpkhj\":\"utwu\",\"pdggkzzlvm\":\"niyqslui\"},\"id\":\"paxmodfvuefywsb\",\"name\":\"fvmwy\",\"type\":\"rfouyftaakcpw\"}]}"; + = "{\"value\":[{\"properties\":{\"state\":\"Enabled\",\"retentionDays\":351115849,\"provisioningState\":\"InProgress\"},\"id\":\"mpizru\",\"name\":\"n\",\"type\":\"qxpxiwfcngjsaa\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,10 +32,10 @@ public void testList() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response - = manager.horizonDbPools().list("rhvoods", "tbobz", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.logCaptureConfigurations().list("wey", "rdhlis", com.azure.core.util.Context.NONE); - Assertions.assertEquals("cjwvn", response.iterator().next().properties().location()); - Assertions.assertEquals("utwu", response.iterator().next().tags().get("egrpkhj")); + Assertions.assertEquals(LogCaptureState.ENABLED, response.iterator().next().properties().state()); + Assertions.assertEquals(351115849, response.iterator().next().properties().retentionDays()); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationsUpdateMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationsUpdateMockTests.java new file mode 100644 index 0000000000000..a6c20e036bb67 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogCaptureConfigurationsUpdateMockTests.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.horizondb.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.horizondb.HorizonDbManager; +import com.azure.resourcemanager.horizondb.models.LogCaptureConfiguration; +import com.azure.resourcemanager.horizondb.models.LogCaptureConfigurationForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.LogCaptureConfigurationPropertiesForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.LogCaptureState; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class LogCaptureConfigurationsUpdateMockTests { + @Test + public void testUpdate() throws Exception { + String responseStr + = "{\"properties\":{\"state\":\"Enabled\",\"retentionDays\":42255553,\"provisioningState\":\"Succeeded\"},\"id\":\"kdk\",\"name\":\"fmjnnawtqa\",\"type\":\"pxuckpggq\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + HorizonDbManager manager = HorizonDbManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + LogCaptureConfiguration response = manager.logCaptureConfigurations() + .update("nlb", "jkwrusnkq", "hsyrqunj", + new LogCaptureConfigurationForPatchUpdate().withProperties( + new LogCaptureConfigurationPropertiesForPatchUpdate().withState(LogCaptureState.ENABLED) + .withRetentionDays(2136418443)), + com.azure.core.util.Context.NONE); + + Assertions.assertEquals(LogCaptureState.ENABLED, response.properties().state()); + Assertions.assertEquals(42255553, response.properties().retentionDays()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogFileDownloadUrlInnerTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogFileDownloadUrlInnerTests.java new file mode 100644 index 0000000000000..32d91827e9c23 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogFileDownloadUrlInnerTests.java @@ -0,0 +1,21 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.fluent.models.LogFileDownloadUrlInner; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; + +public final class LogFileDownloadUrlInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + LogFileDownloadUrlInner model + = BinaryData.fromString("{\"downloadUri\":\"mdvy\",\"expiresAtUtc\":\"2021-08-05T12:13:03Z\"}") + .toObject(LogFileDownloadUrlInner.class); + Assertions.assertEquals("mdvy", model.downloadUri()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-05T12:13:03Z"), model.expiresAtUtc()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogFileInnerTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogFileInnerTests.java new file mode 100644 index 0000000000000..d52828200ad4c --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogFileInnerTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.fluent.models.LogFileInner; + +public final class LogFileInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + LogFileInner model = BinaryData.fromString( + "{\"properties\":{\"logType\":\"PostgreSqlServer\",\"createdAtUtc\":\"2021-05-01T16:56:13Z\",\"lastModifiedAtUtc\":\"2021-12-07T09:36:22Z\",\"retentionExpiresAtUtc\":\"2021-03-16T08:43:43Z\",\"isMutable\":false,\"sizeInKilobytes\":4038204930571080777,\"pool\":\"qmqhldvriii\",\"node\":\"jnalghf\",\"role\":\"ReadWrite\"},\"id\":\"vsexsowuelu\",\"name\":\"hhahhxvrhmzkwpjg\",\"type\":\"wspughftqsxhqx\"}") + .toObject(LogFileInner.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogFileListResultTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogFileListResultTests.java new file mode 100644 index 0000000000000..d9f0902983b82 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogFileListResultTests.java @@ -0,0 +1,19 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.implementation.models.LogFileListResult; +import org.junit.jupiter.api.Assertions; + +public final class LogFileListResultTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + LogFileListResult model = BinaryData.fromString( + "{\"value\":[{\"properties\":{\"logType\":\"PostgreSqlServer\",\"createdAtUtc\":\"2021-12-08T15:37:46Z\",\"lastModifiedAtUtc\":\"2021-10-18T15:07:25Z\",\"retentionExpiresAtUtc\":\"2021-04-12T06:16:52Z\",\"isMutable\":true,\"sizeInKilobytes\":8365308553932036978,\"pool\":\"amvdkfwynwcvtbv\",\"node\":\"ayhmtnvyqiatkz\",\"role\":\"Unassigned\"},\"id\":\"npwzcjaes\",\"name\":\"vvsccyajguq\",\"type\":\"hwyg\"},{\"properties\":{\"logType\":\"PostgreSqlServer\",\"createdAtUtc\":\"2021-04-09T16:47:47Z\",\"lastModifiedAtUtc\":\"2021-12-09T19:36:39Z\",\"retentionExpiresAtUtc\":\"2021-05-24T16:37:21Z\",\"isMutable\":true,\"sizeInKilobytes\":1554120819785667906,\"pool\":\"semdwzrmu\",\"node\":\"apfcqdpsq\",\"role\":\"ReadOnly\"},\"id\":\"psvuoymgc\",\"name\":\"elvezrypq\",\"type\":\"mfe\"},{\"properties\":{\"logType\":\"PostgreSqlServer\",\"createdAtUtc\":\"2021-08-09T08:39:34Z\",\"lastModifiedAtUtc\":\"2021-10-17T10:06:59Z\",\"retentionExpiresAtUtc\":\"2021-04-01T02:04:26Z\",\"isMutable\":true,\"sizeInKilobytes\":3587377329379767061,\"pool\":\"kobopgxed\",\"node\":\"owepbqpcrfkb\",\"role\":\"ReadWrite\"},\"id\":\"snjvcdwxlpqekftn\",\"name\":\"htjsying\",\"type\":\"fq\"}],\"nextLink\":\"mtdh\"}") + .toObject(LogFileListResult.class); + Assertions.assertEquals("mtdh", model.nextLink()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogFilePropertiesTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogFilePropertiesTests.java new file mode 100644 index 0000000000000..70b7cb80a46e8 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogFilePropertiesTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.LogFileProperties; + +public final class LogFilePropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + LogFileProperties model = BinaryData.fromString( + "{\"logType\":\"PostgreSqlServer\",\"createdAtUtc\":\"2021-01-21T16:10:27Z\",\"lastModifiedAtUtc\":\"2021-10-26T21:17:13Z\",\"retentionExpiresAtUtc\":\"2021-06-04T22:03:42Z\",\"isMutable\":true,\"sizeInKilobytes\":6381082417075979554,\"pool\":\"digrjguufzdmsyqt\",\"node\":\"ihwhbotzingamvpp\",\"role\":\"ReadWrite\"}") + .toObject(LogFileProperties.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogFilesGetWithResponseMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogFilesGetWithResponseMockTests.java new file mode 100644 index 0000000000000..b9662e8bd0414 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogFilesGetWithResponseMockTests.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.horizondb.HorizonDbManager; +import com.azure.resourcemanager.horizondb.models.LogFile; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class LogFilesGetWithResponseMockTests { + @Test + public void testGetWithResponse() throws Exception { + String responseStr + = "{\"properties\":{\"logType\":\"PostgreSqlServer\",\"createdAtUtc\":\"2021-06-08T12:29:12Z\",\"lastModifiedAtUtc\":\"2021-03-25T11:26:29Z\",\"retentionExpiresAtUtc\":\"2021-03-02T16:22:17Z\",\"isMutable\":false,\"sizeInKilobytes\":425600276705130335,\"pool\":\"lbyvictctbrxkjzw\",\"node\":\"gxffmshkwf\",\"role\":\"Unassigned\"},\"id\":\"ozxwopd\",\"name\":\"yd\",\"type\":\"izqaclnapxbiyg\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + HorizonDbManager manager = HorizonDbManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + LogFile response = manager.logFiles() + .getWithResponse("iixtmkzj", "kv", "irhgfgrwsdp", com.azure.core.util.Context.NONE) + .getValue(); + + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogFilesListDownloadUrlsWithResponseMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogFilesListDownloadUrlsWithResponseMockTests.java new file mode 100644 index 0000000000000..965484f3e4324 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogFilesListDownloadUrlsWithResponseMockTests.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.horizondb.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.horizondb.HorizonDbManager; +import com.azure.resourcemanager.horizondb.models.LogFileDownloadUrl; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class LogFilesListDownloadUrlsWithResponseMockTests { + @Test + public void testListDownloadUrlsWithResponse() throws Exception { + String responseStr = "{\"downloadUri\":\"huxy\",\"expiresAtUtc\":\"2021-03-25T12:19:33Z\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + HorizonDbManager manager = HorizonDbManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + LogFileDownloadUrl response = manager.logFiles() + .listDownloadUrlsWithResponse("rpddouifamo", "aziynknlqwzdv", "iwhxqszdtmaajq", + com.azure.core.util.Context.NONE) + .getValue(); + + Assertions.assertEquals("huxy", response.downloadUri()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-25T12:19:33Z"), response.expiresAtUtc()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogFilesListMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogFilesListMockTests.java new file mode 100644 index 0000000000000..7a1b883644281 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/LogFilesListMockTests.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.horizondb.HorizonDbManager; +import com.azure.resourcemanager.horizondb.models.LogFile; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class LogFilesListMockTests { + @Test + public void testList() throws Exception { + String responseStr + = "{\"value\":[{\"properties\":{\"logType\":\"PostgreSqlServer\",\"createdAtUtc\":\"2021-04-12T22:42:56Z\",\"lastModifiedAtUtc\":\"2021-07-13T11:30:30Z\",\"retentionExpiresAtUtc\":\"2021-10-26T11:31:47Z\",\"isMutable\":false,\"sizeInKilobytes\":8008907163889108924,\"pool\":\"iquvrehm\",\"node\":\"njhvsujztc\",\"role\":\"Unassigned\"},\"id\":\"qjtwhauu\",\"name\":\"fprnjl\",\"type\":\"tlxs\"}]}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + HorizonDbManager manager = HorizonDbManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + PagedIterable response + = manager.logFiles().list("ugjknf", "mfcttux", com.azure.core.util.Context.NONE); + + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventActionResponseInnerTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventActionResponseInnerTests.java new file mode 100644 index 0000000000000..b1f9040719c3d --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventActionResponseInnerTests.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.fluent.models.MaintenanceEventActionResponseInner; +import com.azure.resourcemanager.horizondb.models.MaintenanceEventStatus; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; + +public final class MaintenanceEventActionResponseInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + MaintenanceEventActionResponseInner model = BinaryData.fromString( + "{\"maintenanceEventId\":\"vvwxqi\",\"poolResourceId\":\"qunyowxwlmdjr\",\"status\":\"InProgress\",\"plannedStartTimeUtc\":\"2021-11-11T06:04:24Z\",\"plannedEndTimeUtc\":\"2021-11-13T18:34:35Z\",\"appliedNow\":false,\"lastUpdatedTimeUtc\":\"2021-07-21T07:28:03Z\"}") + .toObject(MaintenanceEventActionResponseInner.class); + Assertions.assertEquals("vvwxqi", model.maintenanceEventId()); + Assertions.assertEquals("qunyowxwlmdjr", model.poolResourceId()); + Assertions.assertEquals(MaintenanceEventStatus.IN_PROGRESS, model.status()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-11T06:04:24Z"), model.plannedStartTimeUtc()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-13T18:34:35Z"), model.plannedEndTimeUtc()); + Assertions.assertFalse(model.appliedNow()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-21T07:28:03Z"), model.lastUpdatedTimeUtc()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventInnerTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventInnerTests.java new file mode 100644 index 0000000000000..bc359a53297bb --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventInnerTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.fluent.models.MaintenanceEventInner; + +public final class MaintenanceEventInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + MaintenanceEventInner model = BinaryData.fromString( + "{\"properties\":{\"maintenanceEventId\":\"ufgmjzrwrdg\",\"maintenanceType\":\"PlannedMaintenance\",\"description\":\"aenuuz\",\"status\":\"Canceled\",\"startTimeUtc\":\"2021-07-21T23:33:14Z\",\"endTimeUtc\":\"2021-12-02T02:53:31Z\",\"estimatedDowntime\":\"PT79H24M26S\",\"deferrable\":false,\"deferralDeadlineUtc\":\"2021-08-21T09:11:53Z\",\"rescheduledFromUtc\":\"2021-06-23T20:23:29Z\",\"lastUpdatedTimeUtc\":\"2021-12-10T08:12:44Z\",\"originalStartTimeUtc\":\"2021-07-25T01:07:20Z\"},\"id\":\"hziuiefozbhdms\",\"name\":\"l\",\"type\":\"zqhof\"}") + .toObject(MaintenanceEventInner.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventListResultTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventListResultTests.java new file mode 100644 index 0000000000000..a2bc8629ce406 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventListResultTests.java @@ -0,0 +1,19 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.implementation.models.MaintenanceEventListResult; +import org.junit.jupiter.api.Assertions; + +public final class MaintenanceEventListResultTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + MaintenanceEventListResult model = BinaryData.fromString( + "{\"value\":[{\"properties\":{\"maintenanceEventId\":\"oluhczbwemh\",\"maintenanceType\":\"PlannedMaintenance\",\"description\":\"sbrgz\",\"status\":\"Complete\",\"startTimeUtc\":\"2021-06-14T04:59:44Z\",\"endTimeUtc\":\"2021-04-08T20:59:38Z\",\"estimatedDowntime\":\"PT143H14M24S\",\"deferrable\":true,\"deferralDeadlineUtc\":\"2021-05-03T02:40:47Z\",\"rescheduledFromUtc\":\"2021-08-15T00:09:16Z\",\"lastUpdatedTimeUtc\":\"2021-07-11T06:52:27Z\",\"originalStartTimeUtc\":\"2021-03-07T15:59:58Z\"},\"id\":\"cccnxqhuexmktt\",\"name\":\"stvlzywemhzrnc\",\"type\":\"dtclusiypb\"},{\"properties\":{\"maintenanceEventId\":\"ytguslf\",\"maintenanceType\":\"PlannedMaintenance\",\"description\":\"cy\",\"status\":\"Canceled\",\"startTimeUtc\":\"2021-03-01T03:16:18Z\",\"endTimeUtc\":\"2021-01-20T16:18:12Z\",\"estimatedDowntime\":\"PT54H3M34S\",\"deferrable\":false,\"deferralDeadlineUtc\":\"2021-05-08T07:59:13Z\",\"rescheduledFromUtc\":\"2021-10-20T10:25:57Z\",\"lastUpdatedTimeUtc\":\"2021-04-26T05:02:54Z\",\"originalStartTimeUtc\":\"2021-07-17T10:31:49Z\"},\"id\":\"pelol\",\"name\":\"pv\",\"type\":\"srp\"},{\"properties\":{\"maintenanceEventId\":\"jzraehtwdwrf\",\"maintenanceType\":\"PlannedMaintenance\",\"description\":\"iby\",\"status\":\"Planned\",\"startTimeUtc\":\"2021-07-06T15:36:40Z\",\"endTimeUtc\":\"2021-01-18T20:33:29Z\",\"estimatedDowntime\":\"PT66H16M31S\",\"deferrable\":true,\"deferralDeadlineUtc\":\"2021-05-15T13:33:35Z\",\"rescheduledFromUtc\":\"2021-04-24T14:19:46Z\",\"lastUpdatedTimeUtc\":\"2021-02-07T05:20:31Z\",\"originalStartTimeUtc\":\"2021-08-31T16:01:42Z\"},\"id\":\"twitykhev\",\"name\":\"c\",\"type\":\"edcpnmdyodnwzxl\"}],\"nextLink\":\"cvnhltiugc\"}") + .toObject(MaintenanceEventListResult.class); + Assertions.assertEquals("cvnhltiugc", model.nextLink()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventPropertiesTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventPropertiesTests.java new file mode 100644 index 0000000000000..fdc259de4ada1 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventPropertiesTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.MaintenanceEventProperties; + +public final class MaintenanceEventPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + MaintenanceEventProperties model = BinaryData.fromString( + "{\"maintenanceEventId\":\"maequiahxicslfa\",\"maintenanceType\":\"PlannedMaintenance\",\"description\":\"piyylhalnswhccsp\",\"status\":\"Complete\",\"startTimeUtc\":\"2021-06-09T09:48:38Z\",\"endTimeUtc\":\"2021-07-06T09:04:22Z\",\"estimatedDowntime\":\"PT4H27M37S\",\"deferrable\":true,\"deferralDeadlineUtc\":\"2021-10-11T23:36:13Z\",\"rescheduledFromUtc\":\"2021-03-03T20:12:56Z\",\"lastUpdatedTimeUtc\":\"2021-09-24T20:22:06Z\",\"originalStartTimeUtc\":\"2021-05-30T08:18:18Z\"}") + .toObject(MaintenanceEventProperties.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventRescheduleRequestTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventRescheduleRequestTests.java new file mode 100644 index 0000000000000..47fac17f16931 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventRescheduleRequestTests.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.MaintenanceEventRescheduleRequest; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; + +public final class MaintenanceEventRescheduleRequestTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + MaintenanceEventRescheduleRequest model + = BinaryData.fromString("{\"postponeToDateTimeUtc\":\"2021-05-15T14:48:31Z\"}") + .toObject(MaintenanceEventRescheduleRequest.class); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-15T14:48:31Z"), model.postponeToDateTimeUtc()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + MaintenanceEventRescheduleRequest model = new MaintenanceEventRescheduleRequest() + .withPostponeToDateTimeUtc(OffsetDateTime.parse("2021-05-15T14:48:31Z")); + model = BinaryData.fromObject(model).toObject(MaintenanceEventRescheduleRequest.class); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-15T14:48:31Z"), model.postponeToDateTimeUtc()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventsApplyNowMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventsApplyNowMockTests.java new file mode 100644 index 0000000000000..25c33876d67cb --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventsApplyNowMockTests.java @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.horizondb.HorizonDbManager; +import com.azure.resourcemanager.horizondb.models.MaintenanceEventActionResponse; +import com.azure.resourcemanager.horizondb.models.MaintenanceEventStatus; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class MaintenanceEventsApplyNowMockTests { + @Test + public void testApplyNow() throws Exception { + String responseStr + = "{\"maintenanceEventId\":\"z\",\"poolResourceId\":\"mwmxqhndvnoamld\",\"status\":\"Canceled\",\"plannedStartTimeUtc\":\"2021-03-10T06:15:10Z\",\"plannedEndTimeUtc\":\"2021-05-08T13:12:33Z\",\"appliedNow\":false,\"lastUpdatedTimeUtc\":\"2021-09-08T22:46:23Z\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + HorizonDbManager manager = HorizonDbManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + MaintenanceEventActionResponse response = manager.maintenanceEvents() + .applyNow("amikzebrqbsm", "wziqgfuhokzr", "swhvhczznvfbycj", "xjww", com.azure.core.util.Context.NONE); + + Assertions.assertEquals("z", response.maintenanceEventId()); + Assertions.assertEquals("mwmxqhndvnoamld", response.poolResourceId()); + Assertions.assertEquals(MaintenanceEventStatus.CANCELED, response.status()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-10T06:15:10Z"), response.plannedStartTimeUtc()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-08T13:12:33Z"), response.plannedEndTimeUtc()); + Assertions.assertFalse(response.appliedNow()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-08T22:46:23Z"), response.lastUpdatedTimeUtc()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicasGetWithResponseMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventsGetWithResponseMockTests.java similarity index 58% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicasGetWithResponseMockTests.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventsGetWithResponseMockTests.java index f9be421812ae8..e1f3c07bcd973 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicasGetWithResponseMockTests.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventsGetWithResponseMockTests.java @@ -10,19 +10,17 @@ import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.horizondb.HorizonDbManager; -import com.azure.resourcemanager.horizondb.models.HorizonDbReplica; -import com.azure.resourcemanager.horizondb.models.ReplicaRole; +import com.azure.resourcemanager.horizondb.models.MaintenanceEvent; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; -public final class HorizonDbReplicasGetWithResponseMockTests { +public final class MaintenanceEventsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"role\":\"Read\",\"status\":\"Stopped\",\"fullyQualifiedDomainName\":\"ajqgxy\",\"availabilityZone\":\"ocmbqfqvmkcxoza\",\"provisioningState\":\"Succeeded\"},\"id\":\"lxprglyatddckcbc\",\"name\":\"ejrjxgciqibrho\",\"type\":\"xsdqrhzoymibmrqy\"}"; + = "{\"properties\":{\"maintenanceEventId\":\"wetnpsihc\",\"maintenanceType\":\"PlannedMaintenance\",\"description\":\"zvaylptrsqqw\",\"status\":\"Planned\",\"startTimeUtc\":\"2021-10-08T01:02:03Z\",\"endTimeUtc\":\"2021-09-09T08:43:34Z\",\"estimatedDowntime\":\"PT8H54M32S\",\"deferrable\":false,\"deferralDeadlineUtc\":\"2021-10-02T19:03:46Z\",\"rescheduledFromUtc\":\"2021-11-26T04:41:12Z\",\"lastUpdatedTimeUtc\":\"2021-10-30T13:50:04Z\",\"originalStartTimeUtc\":\"2021-08-22T19:57:42Z\"},\"id\":\"ewzjkjexfd\",\"name\":\"qvhpsylkkshkbff\",\"type\":\"bmxzjrgywwpg\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,11 +29,9 @@ public void testGetWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - HorizonDbReplica response = manager.horizonDbReplicas() - .getWithResponse("yzvqt", "nubexk", "zksmondj", "quxvypomgkop", com.azure.core.util.Context.NONE) + MaintenanceEvent response = manager.maintenanceEvents() + .getWithResponse("fy", "sgcrpfbcunezzce", "elfwy", "wl", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(ReplicaRole.READ, response.properties().role()); - Assertions.assertEquals("ocmbqfqvmkcxoza", response.properties().availabilityZone()); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicasListMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventsListMockTests.java similarity index 58% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicasListMockTests.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventsListMockTests.java index 6fa0fa826a284..47f4c08abf8d5 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbReplicasListMockTests.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventsListMockTests.java @@ -11,19 +11,17 @@ import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.horizondb.HorizonDbManager; -import com.azure.resourcemanager.horizondb.models.HorizonDbReplica; -import com.azure.resourcemanager.horizondb.models.ReplicaRole; +import com.azure.resourcemanager.horizondb.models.MaintenanceEvent; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; -public final class HorizonDbReplicasListMockTests { +public final class MaintenanceEventsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"role\":\"Read\",\"status\":\"Dropping\",\"fullyQualifiedDomainName\":\"tg\",\"availabilityZone\":\"bwoenwashrt\",\"provisioningState\":\"Failed\"},\"id\":\"nqxwbp\",\"name\":\"kulpiujwaasi\",\"type\":\"qiiobyuqer\"}]}"; + = "{\"value\":[{\"properties\":{\"maintenanceEventId\":\"ixokffqyin\",\"maintenanceType\":\"PlannedMaintenance\",\"description\":\"epqw\",\"status\":\"Complete\",\"startTimeUtc\":\"2021-10-07T20:21:36Z\",\"endTimeUtc\":\"2021-02-20T14:01:25Z\",\"estimatedDowntime\":\"PT72H22M24S\",\"deferrable\":false,\"deferralDeadlineUtc\":\"2021-01-17T19:00:27Z\",\"rescheduledFromUtc\":\"2021-09-25T05:57:05Z\",\"lastUpdatedTimeUtc\":\"2021-03-23T03:25:57Z\",\"originalStartTimeUtc\":\"2021-11-30T03:41Z\"},\"id\":\"lfcldu\",\"name\":\"cb\",\"type\":\"rds\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,10 +30,8 @@ public void testList() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response - = manager.horizonDbReplicas().list("bahwfl", "szdtmhrkwof", "yvoqa", com.azure.core.util.Context.NONE); + PagedIterable response = manager.maintenanceEvents() + .list("xs", "ptfujgicgaaoept", "aqutdewemxswvruu", "zzjgehkfki", com.azure.core.util.Context.NONE); - Assertions.assertEquals(ReplicaRole.READ, response.iterator().next().properties().role()); - Assertions.assertEquals("bwoenwashrt", response.iterator().next().properties().availabilityZone()); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventsRescheduleMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventsRescheduleMockTests.java new file mode 100644 index 0000000000000..e5585206a044f --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MaintenanceEventsRescheduleMockTests.java @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.horizondb.HorizonDbManager; +import com.azure.resourcemanager.horizondb.models.MaintenanceEventActionResponse; +import com.azure.resourcemanager.horizondb.models.MaintenanceEventRescheduleRequest; +import com.azure.resourcemanager.horizondb.models.MaintenanceEventStatus; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class MaintenanceEventsRescheduleMockTests { + @Test + public void testReschedule() throws Exception { + String responseStr + = "{\"maintenanceEventId\":\"xqmul\",\"poolResourceId\":\"lxqzvn\",\"status\":\"Rescheduled\",\"plannedStartTimeUtc\":\"2021-10-17T21:55:15Z\",\"plannedEndTimeUtc\":\"2021-03-04T09:07:46Z\",\"appliedNow\":true,\"lastUpdatedTimeUtc\":\"2021-06-01T23:12:44Z\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + HorizonDbManager manager = HorizonDbManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + MaintenanceEventActionResponse response = manager.maintenanceEvents() + .reschedule( + "uwc", "b", "egstmninwjizci", "nghgshej", new MaintenanceEventRescheduleRequest() + .withPostponeToDateTimeUtc(OffsetDateTime.parse("2021-08-21T12:03:17Z")), + com.azure.core.util.Context.NONE); + + Assertions.assertEquals("xqmul", response.maintenanceEventId()); + Assertions.assertEquals("lxqzvn", response.poolResourceId()); + Assertions.assertEquals(MaintenanceEventStatus.RESCHEDULED, response.status()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-17T21:55:15Z"), response.plannedStartTimeUtc()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-04T09:07:46Z"), response.plannedEndTimeUtc()); + Assertions.assertTrue(response.appliedNow()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-01T23:12:44Z"), response.lastUpdatedTimeUtc()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ManagedServiceIdentityTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ManagedServiceIdentityTests.java deleted file mode 100644 index a544a58251ffb..0000000000000 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ManagedServiceIdentityTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.horizondb.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.horizondb.models.ManagedServiceIdentity; -import com.azure.resourcemanager.horizondb.models.ManagedServiceIdentityType; -import com.azure.resourcemanager.horizondb.models.UserAssignedIdentity; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ManagedServiceIdentityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ManagedServiceIdentity model = BinaryData.fromString( - "{\"principalId\":\"o\",\"tenantId\":\"yahux\",\"type\":\"SystemAssigned,UserAssigned\",\"userAssignedIdentities\":{\"mdvpjhulsu\":{\"principalId\":\"njaqwixjspro\",\"clientId\":\"cputegjvwmfdats\"},\"lwejdpv\":{\"principalId\":\"mkjozkrwf\",\"clientId\":\"iodjp\"}}}") - .toObject(ManagedServiceIdentity.class); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.type()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ManagedServiceIdentity model - = new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED) - .withUserAssignedIdentities( - mapOf("mdvpjhulsu", new UserAssignedIdentity(), "lwejdpv", new UserAssignedIdentity())); - model = BinaryData.fromObject(model).toObject(ManagedServiceIdentity.class); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED_USER_ASSIGNED, model.type()); - } - - // 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/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorAddTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorAddTests.java new file mode 100644 index 0000000000000..86f55ae8d941b --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorAddTests.java @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAdministratorAdd; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAdministratorPropertiesForAdd; +import com.azure.resourcemanager.horizondb.models.PrincipalTypes; +import org.junit.jupiter.api.Assertions; + +public final class MicrosoftEntraAdministratorAddTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + MicrosoftEntraAdministratorAdd model = BinaryData + .fromString( + "{\"properties\":{\"principalName\":\"pi\",\"principalType\":\"Unknown\",\"tenantId\":\"aasipqi\"}}") + .toObject(MicrosoftEntraAdministratorAdd.class); + Assertions.assertEquals("pi", model.properties().principalName()); + Assertions.assertEquals(PrincipalTypes.UNKNOWN, model.properties().principalType()); + Assertions.assertEquals("aasipqi", model.properties().tenantId()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + MicrosoftEntraAdministratorAdd model = new MicrosoftEntraAdministratorAdd() + .withProperties(new MicrosoftEntraAdministratorPropertiesForAdd().withPrincipalName("pi") + .withPrincipalType(PrincipalTypes.UNKNOWN) + .withTenantId("aasipqi")); + model = BinaryData.fromObject(model).toObject(MicrosoftEntraAdministratorAdd.class); + Assertions.assertEquals("pi", model.properties().principalName()); + Assertions.assertEquals(PrincipalTypes.UNKNOWN, model.properties().principalType()); + Assertions.assertEquals("aasipqi", model.properties().tenantId()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorInnerTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorInnerTests.java new file mode 100644 index 0000000000000..8a0a59efc6e48 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorInnerTests.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.fluent.models.MicrosoftEntraAdministratorInner; +import com.azure.resourcemanager.horizondb.models.PrincipalTypes; +import org.junit.jupiter.api.Assertions; + +public final class MicrosoftEntraAdministratorInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + MicrosoftEntraAdministratorInner model = BinaryData.fromString( + "{\"properties\":{\"principalName\":\"cuejrjxgci\",\"principalType\":\"Group\",\"objectId\":\"rhos\",\"tenantId\":\"dqrhzoymib\",\"provisioningState\":\"Failed\"},\"id\":\"ibahwflus\",\"name\":\"dtmhrkwofyyvoqa\",\"type\":\"piexpbtgiw\"}") + .toObject(MicrosoftEntraAdministratorInner.class); + Assertions.assertEquals("cuejrjxgci", model.properties().principalName()); + Assertions.assertEquals(PrincipalTypes.GROUP, model.properties().principalType()); + Assertions.assertEquals("dqrhzoymib", model.properties().tenantId()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorListResultTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorListResultTests.java new file mode 100644 index 0000000000000..d65a6678853a6 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorListResultTests.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.implementation.models.MicrosoftEntraAdministratorListResult; +import com.azure.resourcemanager.horizondb.models.PrincipalTypes; +import org.junit.jupiter.api.Assertions; + +public final class MicrosoftEntraAdministratorListResultTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + MicrosoftEntraAdministratorListResult model = BinaryData.fromString( + "{\"value\":[{\"properties\":{\"principalName\":\"iuqgbdbutauv\",\"principalType\":\"User\",\"objectId\":\"kuwhh\",\"tenantId\":\"ykojoxafnndlpic\",\"provisioningState\":\"Failed\"},\"id\":\"mkcdyhbpkkpwdre\",\"name\":\"novvqfovljxy\",\"type\":\"suwsyrsnds\"},{\"properties\":{\"principalName\":\"g\",\"principalType\":\"Group\",\"objectId\":\"vraeaeneq\",\"tenantId\":\"arrwlquu\",\"provisioningState\":\"InProgress\"},\"id\":\"kacewiipfp\",\"name\":\"bjibwwiftohq\",\"type\":\"vpuvks\"},{\"properties\":{\"principalName\":\"lsa\",\"principalType\":\"ServicePrincipal\",\"objectId\":\"n\",\"tenantId\":\"ynl\",\"provisioningState\":\"Failed\"},\"id\":\"op\",\"name\":\"odlqiyntor\",\"type\":\"ihleos\"},{\"properties\":{\"principalName\":\"w\",\"principalType\":\"ServicePrincipal\",\"objectId\":\"slyzrpzbchckqq\",\"tenantId\":\"ioxiysuiizyn\",\"provisioningState\":\"InProgress\"},\"id\":\"atrwyhqmibzyh\",\"name\":\"itsmypyyn\",\"type\":\"cdpu\"}],\"nextLink\":\"zgmwznmabikns\"}") + .toObject(MicrosoftEntraAdministratorListResult.class); + Assertions.assertEquals("iuqgbdbutauv", model.value().get(0).properties().principalName()); + Assertions.assertEquals(PrincipalTypes.USER, model.value().get(0).properties().principalType()); + Assertions.assertEquals("ykojoxafnndlpic", model.value().get(0).properties().tenantId()); + Assertions.assertEquals("zgmwznmabikns", model.nextLink()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorPropertiesForAddTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorPropertiesForAddTests.java new file mode 100644 index 0000000000000..54a5f662fd088 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorPropertiesForAddTests.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.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAdministratorPropertiesForAdd; +import com.azure.resourcemanager.horizondb.models.PrincipalTypes; +import org.junit.jupiter.api.Assertions; + +public final class MicrosoftEntraAdministratorPropertiesForAddTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + MicrosoftEntraAdministratorPropertiesForAdd model = BinaryData + .fromString("{\"principalName\":\"obyu\",\"principalType\":\"ServicePrincipal\",\"tenantId\":\"pqlpq\"}") + .toObject(MicrosoftEntraAdministratorPropertiesForAdd.class); + Assertions.assertEquals("obyu", model.principalName()); + Assertions.assertEquals(PrincipalTypes.SERVICE_PRINCIPAL, model.principalType()); + Assertions.assertEquals("pqlpq", model.tenantId()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + MicrosoftEntraAdministratorPropertiesForAdd model + = new MicrosoftEntraAdministratorPropertiesForAdd().withPrincipalName("obyu") + .withPrincipalType(PrincipalTypes.SERVICE_PRINCIPAL) + .withTenantId("pqlpq"); + model = BinaryData.fromObject(model).toObject(MicrosoftEntraAdministratorPropertiesForAdd.class); + Assertions.assertEquals("obyu", model.principalName()); + Assertions.assertEquals(PrincipalTypes.SERVICE_PRINCIPAL, model.principalType()); + Assertions.assertEquals("pqlpq", model.tenantId()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorPropertiesTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorPropertiesTests.java new file mode 100644 index 0000000000000..9b27db078d1db --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorPropertiesTests.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAdministratorProperties; +import com.azure.resourcemanager.horizondb.models.PrincipalTypes; +import org.junit.jupiter.api.Assertions; + +public final class MicrosoftEntraAdministratorPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + MicrosoftEntraAdministratorProperties model = BinaryData.fromString( + "{\"principalName\":\"wo\",\"principalType\":\"User\",\"objectId\":\"ashrt\",\"tenantId\":\"kcnqxwbpo\",\"provisioningState\":\"Failed\"}") + .toObject(MicrosoftEntraAdministratorProperties.class); + Assertions.assertEquals("wo", model.principalName()); + Assertions.assertEquals(PrincipalTypes.USER, model.principalType()); + Assertions.assertEquals("kcnqxwbpo", model.tenantId()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorsCreateOrUpdateMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorsCreateOrReplaceMockTests.java similarity index 50% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorsCreateOrUpdateMockTests.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorsCreateOrReplaceMockTests.java index 0d69daf568785..8af7807fb77b9 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorsCreateOrUpdateMockTests.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorsCreateOrReplaceMockTests.java @@ -10,8 +10,8 @@ import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.horizondb.HorizonDbManager; -import com.azure.resourcemanager.horizondb.models.HorizonDbAdministrator; -import com.azure.resourcemanager.horizondb.models.HorizonDbAdministratorPropertiesForAdd; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAdministrator; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAdministratorPropertiesForAdd; import com.azure.resourcemanager.horizondb.models.PrincipalTypes; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; @@ -19,11 +19,11 @@ import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; -public final class HorizonDbAdministratorsCreateOrUpdateMockTests { +public final class MicrosoftEntraAdministratorsCreateOrReplaceMockTests { @Test - public void testCreateOrUpdate() throws Exception { + public void testCreateOrReplace() throws Exception { String responseStr - = "{\"properties\":{\"principalName\":\"mvzzbtdcqvp\",\"principalType\":\"ServicePrincipal\",\"objectId\":\"ujviylwdshfs\",\"tenantId\":\"rbgyefry\",\"provisioningState\":\"Succeeded\"},\"id\":\"ojfmwnco\",\"name\":\"mrfhirctymox\",\"type\":\"ftpipiwyczu\"}"; + = "{\"properties\":{\"principalName\":\"jqfrddgamquh\",\"principalType\":\"Unknown\",\"objectId\":\"rsjuivfcdisyir\",\"tenantId\":\"zhczexrxzbujrtrh\",\"provisioningState\":\"Succeeded\"},\"id\":\"evkh\",\"name\":\"nlnzonzlrpi\",\"type\":\"yw\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,16 +32,16 @@ public void testCreateOrUpdate() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - HorizonDbAdministrator response = manager.horizonDbAdministrators() - .define("mv") - .withExistingCluster("fo", "jzhpjbibgjmfx") - .withProperties(new HorizonDbAdministratorPropertiesForAdd().withPrincipalName("cluyovwxnbkf") - .withPrincipalType(PrincipalTypes.SERVICE_PRINCIPAL) - .withTenantId("xscyhwzdgirujbz")) + MicrosoftEntraAdministrator response = manager.microsoftEntraAdministrators() + .define("znrtffyaqit") + .withExistingCluster("bu", "qwyxebeybpm") + .withProperties(new MicrosoftEntraAdministratorPropertiesForAdd().withPrincipalName("hheioqaqhvseuf") + .withPrincipalType(PrincipalTypes.USER) + .withTenantId("rxpdlcgqlsi")) .create(); - Assertions.assertEquals("mvzzbtdcqvp", response.properties().principalName()); - Assertions.assertEquals(PrincipalTypes.SERVICE_PRINCIPAL, response.properties().principalType()); - Assertions.assertEquals("rbgyefry", response.properties().tenantId()); + Assertions.assertEquals("jqfrddgamquh", response.properties().principalName()); + Assertions.assertEquals(PrincipalTypes.UNKNOWN, response.properties().principalType()); + Assertions.assertEquals("zhczexrxzbujrtrh", response.properties().tenantId()); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorsGetWithResponseMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorsGetWithResponseMockTests.java similarity index 60% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorsGetWithResponseMockTests.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorsGetWithResponseMockTests.java index 601ccf7f8e7ea..f3339899ae442 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorsGetWithResponseMockTests.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorsGetWithResponseMockTests.java @@ -10,7 +10,7 @@ import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.horizondb.HorizonDbManager; -import com.azure.resourcemanager.horizondb.models.HorizonDbAdministrator; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAdministrator; import com.azure.resourcemanager.horizondb.models.PrincipalTypes; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; @@ -18,11 +18,11 @@ import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; -public final class HorizonDbAdministratorsGetWithResponseMockTests { +public final class MicrosoftEntraAdministratorsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"principalName\":\"wesgogczh\",\"principalType\":\"Unknown\",\"objectId\":\"xkr\",\"tenantId\":\"nyhmossxkkgthr\",\"provisioningState\":\"Failed\"},\"id\":\"jbdhqxvc\",\"name\":\"gf\",\"type\":\"pdso\"}"; + = "{\"properties\":{\"principalName\":\"muoyxprimr\",\"principalType\":\"User\",\"objectId\":\"teecjmeislst\",\"tenantId\":\"sylwxdzaumweooh\",\"provisioningState\":\"Provisioning\"},\"id\":\"uzboyjathw\",\"name\":\"zolbaemwmdxmebw\",\"type\":\"scjpahlxv\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,12 +31,12 @@ public void testGetWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - HorizonDbAdministrator response = manager.horizonDbAdministrators() - .getWithResponse("ronasxift", "zq", "zh", com.azure.core.util.Context.NONE) + MicrosoftEntraAdministrator response = manager.microsoftEntraAdministrators() + .getWithResponse("a", "ankjpdnjzh", "joylh", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("wesgogczh", response.properties().principalName()); - Assertions.assertEquals(PrincipalTypes.UNKNOWN, response.properties().principalType()); - Assertions.assertEquals("nyhmossxkkgthr", response.properties().tenantId()); + Assertions.assertEquals("muoyxprimr", response.properties().principalName()); + Assertions.assertEquals(PrincipalTypes.USER, response.properties().principalType()); + Assertions.assertEquals("sylwxdzaumweooh", response.properties().tenantId()); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorsListMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorsListMockTests.java similarity index 61% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorsListMockTests.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorsListMockTests.java index 8ef3b5adf0c6d..d36d979d15b96 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbAdministratorsListMockTests.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAdministratorsListMockTests.java @@ -11,7 +11,7 @@ import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.horizondb.HorizonDbManager; -import com.azure.resourcemanager.horizondb.models.HorizonDbAdministrator; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAdministrator; import com.azure.resourcemanager.horizondb.models.PrincipalTypes; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; @@ -19,11 +19,11 @@ import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; -public final class HorizonDbAdministratorsListMockTests { +public final class MicrosoftEntraAdministratorsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"principalName\":\"bycnunvjsrtkf\",\"principalType\":\"ServicePrincipal\",\"objectId\":\"opqgikyzirtxdyux\",\"tenantId\":\"jntpsewgioilqu\",\"provisioningState\":\"Succeeded\"},\"id\":\"xtqmieoxor\",\"name\":\"gufhyaomtbg\",\"type\":\"havgrvk\"}]}"; + = "{\"value\":[{\"properties\":{\"principalName\":\"nmwmqtibx\",\"principalType\":\"User\",\"objectId\":\"ddtvqctt\",\"tenantId\":\"ijaeukm\",\"provisioningState\":\"Canceled\"},\"id\":\"ekpndzaapmudq\",\"name\":\"eqw\",\"type\":\"gp\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,12 +32,11 @@ public void testList() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response - = manager.horizonDbAdministrators().list("bshrnsvbuswd", "z", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.microsoftEntraAdministrators().list("a", "f", com.azure.core.util.Context.NONE); - Assertions.assertEquals("bycnunvjsrtkf", response.iterator().next().properties().principalName()); - Assertions.assertEquals(PrincipalTypes.SERVICE_PRINCIPAL, - response.iterator().next().properties().principalType()); - Assertions.assertEquals("jntpsewgioilqu", response.iterator().next().properties().tenantId()); + Assertions.assertEquals("nmwmqtibx", response.iterator().next().properties().principalName()); + Assertions.assertEquals(PrincipalTypes.USER, response.iterator().next().properties().principalType()); + Assertions.assertEquals("ijaeukm", response.iterator().next().properties().tenantId()); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationForPatchUpdateTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationForPatchUpdateTests.java new file mode 100644 index 0000000000000..ad5e9bc630a05 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationForPatchUpdateTests.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.AuthenticationState; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAuthenticationForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAuthenticationPropertiesForPatchUpdate; +import org.junit.jupiter.api.Assertions; + +public final class MicrosoftEntraAuthenticationForPatchUpdateTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + MicrosoftEntraAuthenticationForPatchUpdate model + = BinaryData.fromString("{\"properties\":{\"state\":\"Enabled\"}}") + .toObject(MicrosoftEntraAuthenticationForPatchUpdate.class); + Assertions.assertEquals(AuthenticationState.ENABLED, model.properties().state()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + MicrosoftEntraAuthenticationForPatchUpdate model + = new MicrosoftEntraAuthenticationForPatchUpdate().withProperties( + new MicrosoftEntraAuthenticationPropertiesForPatchUpdate().withState(AuthenticationState.ENABLED)); + model = BinaryData.fromObject(model).toObject(MicrosoftEntraAuthenticationForPatchUpdate.class); + Assertions.assertEquals(AuthenticationState.ENABLED, model.properties().state()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationInnerTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationInnerTests.java new file mode 100644 index 0000000000000..c08008c4bf830 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationInnerTests.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.fluent.models.MicrosoftEntraAuthenticationInner; +import com.azure.resourcemanager.horizondb.models.AuthenticationState; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAuthenticationProperties; +import org.junit.jupiter.api.Assertions; + +public final class MicrosoftEntraAuthenticationInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + MicrosoftEntraAuthenticationInner model = BinaryData.fromString( + "{\"properties\":{\"state\":\"Disabled\",\"provisioningState\":\"Succeeded\"},\"id\":\"dxepxgyq\",\"name\":\"gvr\",\"type\":\"mnpkukghimdblxg\"}") + .toObject(MicrosoftEntraAuthenticationInner.class); + Assertions.assertEquals(AuthenticationState.DISABLED, model.properties().state()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + MicrosoftEntraAuthenticationInner model = new MicrosoftEntraAuthenticationInner() + .withProperties(new MicrosoftEntraAuthenticationProperties().withState(AuthenticationState.DISABLED)); + model = BinaryData.fromObject(model).toObject(MicrosoftEntraAuthenticationInner.class); + Assertions.assertEquals(AuthenticationState.DISABLED, model.properties().state()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationPropertiesForPatchUpdateTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationPropertiesForPatchUpdateTests.java new file mode 100644 index 0000000000000..9f0b8bffc892f --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationPropertiesForPatchUpdateTests.java @@ -0,0 +1,27 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.AuthenticationState; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAuthenticationPropertiesForPatchUpdate; +import org.junit.jupiter.api.Assertions; + +public final class MicrosoftEntraAuthenticationPropertiesForPatchUpdateTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + MicrosoftEntraAuthenticationPropertiesForPatchUpdate model = BinaryData.fromString("{\"state\":\"Enabled\"}") + .toObject(MicrosoftEntraAuthenticationPropertiesForPatchUpdate.class); + Assertions.assertEquals(AuthenticationState.ENABLED, model.state()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + MicrosoftEntraAuthenticationPropertiesForPatchUpdate model + = new MicrosoftEntraAuthenticationPropertiesForPatchUpdate().withState(AuthenticationState.ENABLED); + model = BinaryData.fromObject(model).toObject(MicrosoftEntraAuthenticationPropertiesForPatchUpdate.class); + Assertions.assertEquals(AuthenticationState.ENABLED, model.state()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationPropertiesTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationPropertiesTests.java new file mode 100644 index 0000000000000..c032ca30c32e7 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationPropertiesTests.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.AuthenticationState; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAuthenticationProperties; +import org.junit.jupiter.api.Assertions; + +public final class MicrosoftEntraAuthenticationPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + MicrosoftEntraAuthenticationProperties model + = BinaryData.fromString("{\"state\":\"Disabled\",\"provisioningState\":\"Succeeded\"}") + .toObject(MicrosoftEntraAuthenticationProperties.class); + Assertions.assertEquals(AuthenticationState.DISABLED, model.state()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + MicrosoftEntraAuthenticationProperties model + = new MicrosoftEntraAuthenticationProperties().withState(AuthenticationState.DISABLED); + model = BinaryData.fromObject(model).toObject(MicrosoftEntraAuthenticationProperties.class); + Assertions.assertEquals(AuthenticationState.DISABLED, model.state()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationsCreateOrReplaceMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationsCreateOrReplaceMockTests.java new file mode 100644 index 0000000000000..68eb89f124852 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationsCreateOrReplaceMockTests.java @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.horizondb.HorizonDbManager; +import com.azure.resourcemanager.horizondb.fluent.models.MicrosoftEntraAuthenticationInner; +import com.azure.resourcemanager.horizondb.models.AuthenticationState; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAuthentication; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAuthenticationProperties; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class MicrosoftEntraAuthenticationsCreateOrReplaceMockTests { + @Test + public void testCreateOrReplace() throws Exception { + String responseStr + = "{\"properties\":{\"state\":\"Disabled\",\"provisioningState\":\"Succeeded\"},\"id\":\"texoqqpwc\",\"name\":\"yufmhruncuwmq\",\"type\":\"pkcdqzhlct\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + HorizonDbManager manager = HorizonDbManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + MicrosoftEntraAuthentication response = manager.microsoftEntraAuthentications() + .createOrReplace("q", "yb", + new MicrosoftEntraAuthenticationInner().withProperties( + new MicrosoftEntraAuthenticationProperties().withState(AuthenticationState.ENABLED)), + com.azure.core.util.Context.NONE); + + Assertions.assertEquals(AuthenticationState.DISABLED, response.properties().state()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateLinkResourcesGetWithResponseMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationsGetWithResponseMockTests.java similarity index 65% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateLinkResourcesGetWithResponseMockTests.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationsGetWithResponseMockTests.java index 1b3275cd14155..cb97464409f1f 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateLinkResourcesGetWithResponseMockTests.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationsGetWithResponseMockTests.java @@ -10,18 +10,19 @@ import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.horizondb.HorizonDbManager; -import com.azure.resourcemanager.horizondb.models.HorizonDbPrivateLinkResource; +import com.azure.resourcemanager.horizondb.models.AuthenticationState; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAuthentication; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; -public final class HorizonDbPrivateLinkResourcesGetWithResponseMockTests { +public final class MicrosoftEntraAuthenticationsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"groupId\":\"kwyfzqwhxxbuyqax\",\"requiredMembers\":[\"qztpp\"],\"requiredZoneNames\":[\"lxorjaltolmncws\"]},\"id\":\"qwcsdbnwdcfhuc\",\"name\":\"dpfuvg\",\"type\":\"sbjjc\"}"; + = "{\"properties\":{\"state\":\"Disabled\",\"provisioningState\":\"Provisioning\"},\"id\":\"nomdrkywuhpsv\",\"name\":\"uurutlwexxwlalni\",\"type\":\"xzsrzpge\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,10 +31,10 @@ public void testGetWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - HorizonDbPrivateLinkResource response = manager.horizonDbPrivateLinkResources() - .getWithResponse("nqicvinvkjjxdxrb", "ukzclewyhmlwpaz", "zpof", com.azure.core.util.Context.NONE) + MicrosoftEntraAuthentication response = manager.microsoftEntraAuthentications() + .getWithResponse("elawumu", "slzkwrrwoycqu", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("lxorjaltolmncws", response.properties().requiredZoneNames().get(0)); + Assertions.assertEquals(AuthenticationState.DISABLED, response.properties().state()); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationsUpdateMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationsUpdateMockTests.java new file mode 100644 index 0000000000000..866a5e128d658 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/MicrosoftEntraAuthenticationsUpdateMockTests.java @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.horizondb.HorizonDbManager; +import com.azure.resourcemanager.horizondb.models.AuthenticationState; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAuthentication; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAuthenticationForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.MicrosoftEntraAuthenticationPropertiesForPatchUpdate; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class MicrosoftEntraAuthenticationsUpdateMockTests { + @Test + public void testUpdate() throws Exception { + String responseStr + = "{\"properties\":{\"state\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"id\":\"egy\",\"name\":\"cw\",\"type\":\"oxjumvqqo\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + HorizonDbManager manager = HorizonDbManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + MicrosoftEntraAuthentication response + = manager.microsoftEntraAuthentications() + .update("dunqnd", "fpch", new MicrosoftEntraAuthenticationForPatchUpdate().withProperties( + new MicrosoftEntraAuthenticationPropertiesForPatchUpdate().withState(AuthenticationState.DISABLED)), + com.azure.core.util.Context.NONE); + + Assertions.assertEquals(AuthenticationState.ENABLED, response.properties().state()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/NetworkForPatchUpdateTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/NetworkForPatchUpdateTests.java new file mode 100644 index 0000000000000..5d5c32524bc45 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/NetworkForPatchUpdateTests.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.NetworkForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.PublicNetworkAccessState; +import org.junit.jupiter.api.Assertions; + +public final class NetworkForPatchUpdateTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + NetworkForPatchUpdate model + = BinaryData.fromString("{\"publicAccess\":\"Enabled\"}").toObject(NetworkForPatchUpdate.class); + Assertions.assertEquals(PublicNetworkAccessState.ENABLED, model.publicAccess()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + NetworkForPatchUpdate model = new NetworkForPatchUpdate().withPublicAccess(PublicNetworkAccessState.ENABLED); + model = BinaryData.fromObject(model).toObject(NetworkForPatchUpdate.class); + Assertions.assertEquals(PublicNetworkAccessState.ENABLED, model.publicAccess()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/NetworkTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/NetworkTests.java index 6dcfbe3747284..f20cd0c99247f 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/NetworkTests.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/NetworkTests.java @@ -6,16 +6,20 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.horizondb.models.Network; +import com.azure.resourcemanager.horizondb.models.PublicNetworkAccessState; +import org.junit.jupiter.api.Assertions; public final class NetworkTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - Network model = BinaryData.fromString("{\"publicNetworkAccess\":\"Disabled\"}").toObject(Network.class); + Network model = BinaryData.fromString("{\"publicAccess\":\"Enabled\"}").toObject(Network.class); + Assertions.assertEquals(PublicNetworkAccessState.ENABLED, model.publicAccess()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - Network model = new Network(); + Network model = new Network().withPublicAccess(PublicNetworkAccessState.ENABLED); model = BinaryData.fromObject(model).toObject(Network.class); + Assertions.assertEquals(PublicNetworkAccessState.ENABLED, model.publicAccess()); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/NodeInnerTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/NodeInnerTests.java new file mode 100644 index 0000000000000..0e0caa1a99f0f --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/NodeInnerTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.fluent.models.NodeInner; + +public final class NodeInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + NodeInner model = BinaryData.fromString( + "{\"properties\":{\"role\":\"ReadOnly\",\"availabilityZone\":\"acizsjqlhkrr\"},\"id\":\"deibqip\",\"name\":\"kghv\",\"type\":\"ndzwmkrefa\"}") + .toObject(NodeInner.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/NodeListResultTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/NodeListResultTests.java new file mode 100644 index 0000000000000..c59cd358219ad --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/NodeListResultTests.java @@ -0,0 +1,19 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.implementation.models.NodeListResult; +import org.junit.jupiter.api.Assertions; + +public final class NodeListResultTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + NodeListResult model = BinaryData.fromString( + "{\"value\":[{\"properties\":{\"role\":\"ReadWrite\",\"availabilityZone\":\"fxzsjabibsyst\"},\"id\":\"fsdjpvkvp\",\"name\":\"jxbkzbzkdvn\",\"type\":\"jabudurgkakmo\"},{\"properties\":{\"role\":\"ReadWrite\",\"availabilityZone\":\"jjklff\"},\"id\":\"ouw\",\"name\":\"lgzrfzeeyeb\",\"type\":\"zi\"},{\"properties\":{\"role\":\"Unassigned\",\"availabilityZone\":\"uhqlbjbsybbqwrvt\"},\"id\":\"gmfpgvmp\",\"name\":\"paslthaqfxssmwu\",\"type\":\"wbdsr\"}],\"nextLink\":\"pdrhne\"}") + .toObject(NodeListResult.class); + Assertions.assertEquals("pdrhne", model.nextLink()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/NodePropertiesTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/NodePropertiesTests.java new file mode 100644 index 0000000000000..656b2caf486e5 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/NodePropertiesTests.java @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.NodeProperties; + +public final class NodePropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + NodeProperties model = BinaryData.fromString("{\"role\":\"Unassigned\",\"availabilityZone\":\"jorwkqnyhgbij\"}") + .toObject(NodeProperties.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersRestartMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/NodesGetWithResponseMockTests.java similarity index 67% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersRestartMockTests.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/NodesGetWithResponseMockTests.java index 678470106d39c..6c8f69cbbc464 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersRestartMockTests.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/NodesGetWithResponseMockTests.java @@ -10,15 +10,17 @@ import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.horizondb.HorizonDbManager; +import com.azure.resourcemanager.horizondb.models.Node; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; -public final class HorizonDbClustersRestartMockTests { +public final class NodesGetWithResponseMockTests { @Test - public void testRestart() throws Exception { - String responseStr = "{}"; + public void testGetWithResponse() throws Exception { + String responseStr + = "{\"properties\":{\"role\":\"Unassigned\",\"availabilityZone\":\"pbswvefloccsrm\"},\"id\":\"ihmipgawtxxpk\",\"name\":\"jcxcjxgrytfmpcyc\",\"type\":\"lrmcaykg\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -27,7 +29,9 @@ public void testRestart() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.horizonDbClusters().restart("l", "tmuwlauwzi", com.azure.core.util.Context.NONE); + Node response = manager.nodes() + .getWithResponse("lzok", "coxpelnjeta", "ltsxoatf", "g", com.azure.core.util.Context.NONE) + .getValue(); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersStopMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/NodesListMockTests.java similarity index 67% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersStopMockTests.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/NodesListMockTests.java index 4790f76f876a9..d981a9251453a 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbClustersStopMockTests.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/NodesListMockTests.java @@ -6,19 +6,22 @@ import com.azure.core.credential.AccessToken; import com.azure.core.http.HttpClient; +import com.azure.core.http.rest.PagedIterable; import com.azure.core.management.profile.AzureProfile; import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.horizondb.HorizonDbManager; +import com.azure.resourcemanager.horizondb.models.Node; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; -public final class HorizonDbClustersStopMockTests { +public final class NodesListMockTests { @Test - public void testStop() throws Exception { - String responseStr = "{}"; + public void testList() throws Exception { + String responseStr + = "{\"value\":[{\"properties\":{\"role\":\"ReadOnly\",\"availabilityZone\":\"zvoamktc\"},\"id\":\"os\",\"name\":\"gbzahgxqdlyr\",\"type\":\"ltlaprltzkatbhj\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -27,7 +30,8 @@ public void testStop() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.horizonDbClusters().stop("lrb", "tkoievseotgq", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.nodes().list("noxuztrksx", "pndfcpfnznt", "jtwkjaos", com.azure.core.util.Context.NONE); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/OperationsListMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/OperationsListMockTests.java index 1147bab381964..c13ae8609c884 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/OperationsListMockTests.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/OperationsListMockTests.java @@ -21,7 +21,7 @@ public final class OperationsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"name\":\"pyqs\",\"isDataAction\":false,\"display\":{\"provider\":\"n\",\"resource\":\"shhszhedplvwiw\",\"operation\":\"mwmbes\",\"description\":\"nkww\"},\"origin\":\"user\",\"actionType\":\"Internal\"}]}"; + = "{\"value\":[{\"name\":\"kdgszywkbirr\",\"isDataAction\":false,\"display\":{\"provider\":\"hkjoqr\",\"resource\":\"qaatjinrv\",\"operation\":\"upmfiibfg\",\"description\":\"ioolvrwxkvtkkgll\"},\"origin\":\"system\",\"actionType\":\"Internal\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PagedParameterGroupConnectionPropertiesTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PagedParameterGroupConnectionPropertiesTests.java new file mode 100644 index 0000000000000..c4f43059e2efd --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PagedParameterGroupConnectionPropertiesTests.java @@ -0,0 +1,19 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.implementation.models.PagedParameterGroupConnectionProperties; +import org.junit.jupiter.api.Assertions; + +public final class PagedParameterGroupConnectionPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + PagedParameterGroupConnectionProperties model = BinaryData.fromString( + "{\"value\":[{\"poolResourceId\":\"tdzumveekgpw\"},{\"poolResourceId\":\"zuhkfpbsjyof\"},{\"poolResourceId\":\"xl\"}],\"nextLink\":\"sd\"}") + .toObject(PagedParameterGroupConnectionProperties.class); + Assertions.assertEquals("sd", model.nextLink()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupConnectionPropertiesInnerTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupConnectionPropertiesInnerTests.java new file mode 100644 index 0000000000000..ae96bfde1a66e --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupConnectionPropertiesInnerTests.java @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.fluent.models.ParameterGroupConnectionPropertiesInner; + +public final class ParameterGroupConnectionPropertiesInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ParameterGroupConnectionPropertiesInner model = BinaryData.fromString("{\"poolResourceId\":\"touwaboekqv\"}") + .toObject(ParameterGroupConnectionPropertiesInner.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupForPatchUpdateTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupForPatchUpdateTests.java new file mode 100644 index 0000000000000..480f925ad053c --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupForPatchUpdateTests.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.ParameterGroupForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.ParameterGroupPropertiesForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.ParameterProperties; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; + +public final class ParameterGroupForPatchUpdateTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ParameterGroupForPatchUpdate model = BinaryData.fromString( + "{\"tags\":{\"k\":\"fcnj\"},\"properties\":{\"parameters\":[{\"name\":\"bttk\",\"description\":\"ywpnvjt\",\"value\":\"nermcl\",\"defaultValue\":\"lphox\",\"valueSource\":\"SystemDefault\",\"dataType\":\"pabgyeps\",\"allowedValues\":\"tazqugxywpmueefj\",\"isDynamic\":false,\"isReadOnly\":true,\"documentationLink\":\"ujidsuyono\",\"unit\":\"laocqxtccmg\"}],\"description\":\"dxyt\"}}") + .toObject(ParameterGroupForPatchUpdate.class); + Assertions.assertEquals("fcnj", model.tags().get("k")); + Assertions.assertEquals("bttk", model.properties().parameters().get(0).name()); + Assertions.assertEquals("nermcl", model.properties().parameters().get(0).value()); + Assertions.assertEquals("dxyt", model.properties().description()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ParameterGroupForPatchUpdate model = new ParameterGroupForPatchUpdate().withTags(mapOf("k", "fcnj")) + .withProperties(new ParameterGroupPropertiesForPatchUpdate() + .withParameters(Arrays.asList(new ParameterProperties().withName("bttk").withValue("nermcl"))) + .withDescription("dxyt")); + model = BinaryData.fromObject(model).toObject(ParameterGroupForPatchUpdate.class); + Assertions.assertEquals("fcnj", model.tags().get("k")); + Assertions.assertEquals("bttk", model.properties().parameters().get(0).name()); + Assertions.assertEquals("nermcl", model.properties().parameters().get(0).value()); + Assertions.assertEquals("dxyt", model.properties().description()); + } + + // 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/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupInnerTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupInnerTests.java new file mode 100644 index 0000000000000..64838e27c16d5 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupInnerTests.java @@ -0,0 +1,60 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.fluent.models.ParameterGroupInner; +import com.azure.resourcemanager.horizondb.models.ParameterGroupProperties; +import com.azure.resourcemanager.horizondb.models.ParameterProperties; +import com.azure.resourcemanager.horizondb.models.PostgreSqlVersion; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; + +public final class ParameterGroupInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ParameterGroupInner model = BinaryData.fromString( + "{\"properties\":{\"parameters\":[{\"name\":\"krbm\",\"description\":\"kgriwflzlfbx\",\"value\":\"uzycispnqza\",\"defaultValue\":\"gkbrpyyd\",\"valueSource\":\"UserOverride\",\"dataType\":\"uqqkpik\",\"allowedValues\":\"rgvtqag\",\"isDynamic\":false,\"isReadOnly\":true,\"documentationLink\":\"ijggmebfsiar\",\"unit\":\"trcvpnazzmh\"},{\"name\":\"unmpxttd\",\"description\":\"rbnlankxmyskp\",\"value\":\"enbtkcxywny\",\"defaultValue\":\"rsyn\",\"valueSource\":\"UserOverride\",\"dataType\":\"ybyxc\",\"allowedValues\":\"clha\",\"isDynamic\":false,\"isReadOnly\":false,\"documentationLink\":\"p\",\"unit\":\"wrqlfktsthsuco\"}],\"description\":\"nyyazttbtwwrqpue\",\"postgreSqlVersion\":\"18\",\"provisioningState\":\"Succeeded\"},\"location\":\"wbiexzfey\",\"tags\":{\"zyoxaepdkzjan\":\"xibxujwbhqwalm\",\"hdwbavxbniwdjs\":\"ux\"},\"id\":\"zt\",\"name\":\"dbpgnxytxhp\",\"type\":\"xbzpfzab\"}") + .toObject(ParameterGroupInner.class); + Assertions.assertEquals("wbiexzfey", model.location()); + Assertions.assertEquals("xibxujwbhqwalm", model.tags().get("zyoxaepdkzjan")); + Assertions.assertEquals("krbm", model.properties().parameters().get(0).name()); + Assertions.assertEquals("uzycispnqza", model.properties().parameters().get(0).value()); + Assertions.assertEquals("nyyazttbtwwrqpue", model.properties().description()); + Assertions.assertEquals(PostgreSqlVersion.V18, model.properties().postgreSqlVersion()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ParameterGroupInner model = new ParameterGroupInner().withLocation("wbiexzfey") + .withTags(mapOf("zyoxaepdkzjan", "xibxujwbhqwalm", "hdwbavxbniwdjs", "ux")) + .withProperties(new ParameterGroupProperties() + .withParameters(Arrays.asList(new ParameterProperties().withName("krbm").withValue("uzycispnqza"), + new ParameterProperties().withName("unmpxttd").withValue("enbtkcxywny"))) + .withDescription("nyyazttbtwwrqpue") + .withPostgreSqlVersion(PostgreSqlVersion.V18)); + model = BinaryData.fromObject(model).toObject(ParameterGroupInner.class); + Assertions.assertEquals("wbiexzfey", model.location()); + Assertions.assertEquals("xibxujwbhqwalm", model.tags().get("zyoxaepdkzjan")); + Assertions.assertEquals("krbm", model.properties().parameters().get(0).name()); + Assertions.assertEquals("uzycispnqza", model.properties().parameters().get(0).value()); + Assertions.assertEquals("nyyazttbtwwrqpue", model.properties().description()); + Assertions.assertEquals(PostgreSqlVersion.V18, model.properties().postgreSqlVersion()); + } + + // 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/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupListResultTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupListResultTests.java new file mode 100644 index 0000000000000..527a275466a81 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupListResultTests.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.implementation.models.ParameterGroupListResult; +import com.azure.resourcemanager.horizondb.models.PostgreSqlVersion; +import org.junit.jupiter.api.Assertions; + +public final class ParameterGroupListResultTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ParameterGroupListResult model = BinaryData.fromString( + "{\"value\":[{\"properties\":{\"parameters\":[{\"name\":\"xzvlvqhjkbegib\",\"description\":\"mxiebw\",\"value\":\"loayqcgw\",\"defaultValue\":\"zjuzgwyz\",\"valueSource\":\"SystemDefault\",\"dataType\":\"ongmtsa\",\"allowedValues\":\"cbpwxqpsrknft\",\"isDynamic\":true,\"isReadOnly\":true,\"documentationLink\":\"hprwmdyv\",\"unit\":\"tayriwwroyqbex\"}],\"description\":\"cqibycnojv\",\"postgreSqlVersion\":\"18\",\"provisioningState\":\"Provisioning\"},\"location\":\"qsgzvahapj\",\"tags\":{\"lxkvu\":\"pvgqzcjrvxdjzlm\",\"n\":\"fhzovawjvzunluth\"},\"id\":\"rnxipei\",\"name\":\"pjzu\",\"type\":\"e\"}],\"nextLink\":\"dultskz\"}") + .toObject(ParameterGroupListResult.class); + Assertions.assertEquals("qsgzvahapj", model.value().get(0).location()); + Assertions.assertEquals("pvgqzcjrvxdjzlm", model.value().get(0).tags().get("lxkvu")); + Assertions.assertEquals("xzvlvqhjkbegib", model.value().get(0).properties().parameters().get(0).name()); + Assertions.assertEquals("loayqcgw", model.value().get(0).properties().parameters().get(0).value()); + Assertions.assertEquals("cqibycnojv", model.value().get(0).properties().description()); + Assertions.assertEquals(PostgreSqlVersion.V18, model.value().get(0).properties().postgreSqlVersion()); + Assertions.assertEquals("dultskz", model.nextLink()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupPropertiesForPatchUpdateTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupPropertiesForPatchUpdateTests.java new file mode 100644 index 0000000000000..cb7cce6a8b987 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupPropertiesForPatchUpdateTests.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.ParameterGroupPropertiesForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.ParameterProperties; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class ParameterGroupPropertiesForPatchUpdateTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ParameterGroupPropertiesForPatchUpdate model = BinaryData.fromString( + "{\"parameters\":[{\"name\":\"rxv\",\"description\":\"u\",\"value\":\"pz\",\"defaultValue\":\"xhdzhlrqjbhckf\",\"valueSource\":\"SystemDefault\",\"dataType\":\"xsbkyvpyca\",\"allowedValues\":\"z\",\"isDynamic\":false,\"isReadOnly\":false,\"documentationLink\":\"kuwbcrnwb\",\"unit\":\"hhseyv\"},{\"name\":\"srtslhspkdeem\",\"description\":\"fm\",\"value\":\"gkvtmelmqkrhah\",\"defaultValue\":\"juahaquhcdhmdual\",\"valueSource\":\"UserOverride\",\"dataType\":\"pvfadmwsrcr\",\"allowedValues\":\"xpvgo\",\"isDynamic\":false,\"isReadOnly\":false,\"documentationLink\":\"sgwbnbbeld\",\"unit\":\"k\"},{\"name\":\"ali\",\"description\":\"rqhakauha\",\"value\":\"sfwxosowzxc\",\"defaultValue\":\"i\",\"valueSource\":\"UserOverride\",\"dataType\":\"xdje\",\"allowedValues\":\"pucwwfvovbvme\",\"isDynamic\":true,\"isReadOnly\":true,\"documentationLink\":\"hzceuojgjrwjue\",\"unit\":\"twm\"},{\"name\":\"ytdxwit\",\"description\":\"rjaw\",\"value\":\"wgxhn\",\"defaultValue\":\"kxfbkpycgklwndn\",\"valueSource\":\"UserOverride\",\"dataType\":\"uwhvylwzbtdhxujz\",\"allowedValues\":\"mpowuwpr\",\"isDynamic\":false,\"isReadOnly\":true,\"documentationLink\":\"alupjm\",\"unit\":\"fxobbcsws\"}],\"description\":\"jriplrbpbewtghf\"}") + .toObject(ParameterGroupPropertiesForPatchUpdate.class); + Assertions.assertEquals("rxv", model.parameters().get(0).name()); + Assertions.assertEquals("pz", model.parameters().get(0).value()); + Assertions.assertEquals("jriplrbpbewtghf", model.description()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ParameterGroupPropertiesForPatchUpdate model + = new ParameterGroupPropertiesForPatchUpdate() + .withParameters(Arrays.asList(new ParameterProperties().withName("rxv").withValue("pz"), + new ParameterProperties().withName("srtslhspkdeem").withValue("gkvtmelmqkrhah"), + new ParameterProperties().withName("ali").withValue("sfwxosowzxc"), + new ParameterProperties().withName("ytdxwit").withValue("wgxhn"))) + .withDescription("jriplrbpbewtghf"); + model = BinaryData.fromObject(model).toObject(ParameterGroupPropertiesForPatchUpdate.class); + Assertions.assertEquals("rxv", model.parameters().get(0).name()); + Assertions.assertEquals("pz", model.parameters().get(0).value()); + Assertions.assertEquals("jriplrbpbewtghf", model.description()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupPropertiesTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupPropertiesTests.java new file mode 100644 index 0000000000000..00ea1ead2ca5d --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupPropertiesTests.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.ParameterGroupProperties; +import com.azure.resourcemanager.horizondb.models.ParameterProperties; +import com.azure.resourcemanager.horizondb.models.PostgreSqlVersion; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class ParameterGroupPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ParameterGroupProperties model = BinaryData.fromString( + "{\"parameters\":[{\"name\":\"hxw\",\"description\":\"tyq\",\"value\":\"lbbovplw\",\"defaultValue\":\"hvgyuguosvmk\",\"valueSource\":\"SystemDefault\",\"dataType\":\"qukkfp\",\"allowedValues\":\"mg\",\"isDynamic\":true,\"isReadOnly\":true,\"documentationLink\":\"kde\",\"unit\":\"pvlopwiyighxpkd\"}],\"description\":\"baiuebbaumny\",\"postgreSqlVersion\":\"18\",\"provisioningState\":\"Provisioning\"}") + .toObject(ParameterGroupProperties.class); + Assertions.assertEquals("hxw", model.parameters().get(0).name()); + Assertions.assertEquals("lbbovplw", model.parameters().get(0).value()); + Assertions.assertEquals("baiuebbaumny", model.description()); + Assertions.assertEquals(PostgreSqlVersion.V18, model.postgreSqlVersion()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ParameterGroupProperties model = new ParameterGroupProperties() + .withParameters(Arrays.asList(new ParameterProperties().withName("hxw").withValue("lbbovplw"))) + .withDescription("baiuebbaumny") + .withPostgreSqlVersion(PostgreSqlVersion.V18); + model = BinaryData.fromObject(model).toObject(ParameterGroupProperties.class); + Assertions.assertEquals("hxw", model.parameters().get(0).name()); + Assertions.assertEquals("lbbovplw", model.parameters().get(0).value()); + Assertions.assertEquals("baiuebbaumny", model.description()); + Assertions.assertEquals(PostgreSqlVersion.V18, model.postgreSqlVersion()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsCreateOrReplaceMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsCreateOrReplaceMockTests.java new file mode 100644 index 0000000000000..677511a53ece5 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsCreateOrReplaceMockTests.java @@ -0,0 +1,70 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.horizondb.HorizonDbManager; +import com.azure.resourcemanager.horizondb.models.ParameterGroup; +import com.azure.resourcemanager.horizondb.models.ParameterGroupProperties; +import com.azure.resourcemanager.horizondb.models.ParameterProperties; +import com.azure.resourcemanager.horizondb.models.PostgreSqlVersion; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class ParameterGroupsCreateOrReplaceMockTests { + @Test + public void testCreateOrReplace() throws Exception { + String responseStr + = "{\"properties\":{\"parameters\":[{\"name\":\"xykxhdj\",\"description\":\"immbcx\",\"value\":\"bcporxvxcjzhqizx\",\"defaultValue\":\"xtgqscjavftjuh\",\"valueSource\":\"UserOverride\",\"dataType\":\"k\",\"allowedValues\":\"gg\",\"isDynamic\":true,\"isReadOnly\":false,\"documentationLink\":\"ajc\",\"unit\":\"m\"},{\"name\":\"hfcf\",\"description\":\"rxgkne\",\"value\":\"yinzqodfvpgs\",\"defaultValue\":\"xgsg\",\"valueSource\":\"UserOverride\",\"dataType\":\"zdjtxvzflbqv\",\"allowedValues\":\"qvlgafcqusrdvetn\",\"isDynamic\":true,\"isReadOnly\":false,\"documentationLink\":\"nwlduycvuzhyrmew\",\"unit\":\"mvekdxukuqgsjj\"},{\"name\":\"n\",\"description\":\"gketwzhhzjhf\",\"value\":\"hvvmuvgpmun\",\"defaultValue\":\"sx\",\"valueSource\":\"UserOverride\",\"dataType\":\"buzjyih\",\"allowedValues\":\"sbhud\",\"isDynamic\":true,\"isReadOnly\":false,\"documentationLink\":\"emslynsqyrp\",\"unit\":\"obrltt\"},{\"name\":\"sjnygqdnfwqzdzgt\",\"description\":\"axhnfh\",\"value\":\"yvi\",\"defaultValue\":\"uwivkxoy\",\"valueSource\":\"SystemDefault\",\"dataType\":\"ixxrtikvcpw\",\"allowedValues\":\"clrcivtsox\",\"isDynamic\":false,\"isReadOnly\":true,\"documentationLink\":\"pmyyefrpmpdnqq\",\"unit\":\"awaoqvmmbnpqfrt\"}],\"description\":\"kzmegnitgvkxlz\",\"postgreSqlVersion\":\"18\",\"provisioningState\":\"Succeeded\"},\"location\":\"eg\",\"tags\":{\"oyqhlwig\":\"lzxwhcansy\",\"wasqvdaeyyg\":\"ivbkbxgomfaj\",\"zkgimsid\":\"xakjsqzhzb\"},\"id\":\"asi\",\"name\":\"ddyvvjskgfmo\",\"type\":\"wa\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + HorizonDbManager manager = HorizonDbManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + ParameterGroup response = manager.parameterGroups() + .define("brxjjsto") + .withRegion("thwwn") + .withExistingResourceGroup("hvv") + .withTags(mapOf("zswpchwa", "l")) + .withProperties(new ParameterGroupProperties() + .withParameters( + Arrays.asList(new ParameterProperties().withName("pkxztmoobkl").withValue("mpimaqxzhemjyh"))) + .withDescription("z") + .withPostgreSqlVersion(PostgreSqlVersion.V18)) + .create(); + + Assertions.assertEquals("eg", response.location()); + Assertions.assertEquals("lzxwhcansy", response.tags().get("oyqhlwig")); + Assertions.assertEquals("xykxhdj", response.properties().parameters().get(0).name()); + Assertions.assertEquals("bcporxvxcjzhqizx", response.properties().parameters().get(0).value()); + Assertions.assertEquals("kzmegnitgvkxlz", response.properties().description()); + Assertions.assertEquals(PostgreSqlVersion.V18, response.properties().postgreSqlVersion()); + } + + // 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/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsGetByResourceGroupWithResponseMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsGetByResourceGroupWithResponseMockTests.java new file mode 100644 index 0000000000000..1bcadc768b178 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsGetByResourceGroupWithResponseMockTests.java @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.horizondb.HorizonDbManager; +import com.azure.resourcemanager.horizondb.models.ParameterGroup; +import com.azure.resourcemanager.horizondb.models.PostgreSqlVersion; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class ParameterGroupsGetByResourceGroupWithResponseMockTests { + @Test + public void testGetByResourceGroupWithResponse() throws Exception { + String responseStr + = "{\"properties\":{\"parameters\":[{\"name\":\"vzm\",\"description\":\"t\",\"value\":\"dgxobfircl\",\"defaultValue\":\"kciayzri\",\"valueSource\":\"SystemDefault\",\"dataType\":\"awfvjlboxqvkjl\",\"allowedValues\":\"ho\",\"isDynamic\":true,\"isReadOnly\":false,\"documentationLink\":\"wdigumbnraauz\",\"unit\":\"tj\"},{\"name\":\"ysdzhez\",\"description\":\"vaiqyuvvf\",\"value\":\"kphhq\",\"defaultValue\":\"kvylauyavl\",\"valueSource\":\"UserOverride\",\"dataType\":\"csttijfybvpoekr\",\"allowedValues\":\"sgbdhuz\",\"isDynamic\":true,\"isReadOnly\":true,\"documentationLink\":\"kynscliqhzv\",\"unit\":\"nk\"}],\"description\":\"tkubotppn\",\"postgreSqlVersion\":\"17\",\"provisioningState\":\"InProgress\"},\"location\":\"hihfrbbcevqagtlt\",\"tags\":{\"vgtrdcnifmzzs\":\"fkqojpy\",\"g\":\"ymbrnysuxmpraf\"},\"id\":\"khocxvdfffwaf\",\"name\":\"roud\",\"type\":\"spave\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + HorizonDbManager manager = HorizonDbManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + ParameterGroup response = manager.parameterGroups() + .getByResourceGroupWithResponse("f", "gzuriglaecxndt", com.azure.core.util.Context.NONE) + .getValue(); + + Assertions.assertEquals("hihfrbbcevqagtlt", response.location()); + Assertions.assertEquals("fkqojpy", response.tags().get("vgtrdcnifmzzs")); + Assertions.assertEquals("vzm", response.properties().parameters().get(0).name()); + Assertions.assertEquals("dgxobfircl", response.properties().parameters().get(0).value()); + Assertions.assertEquals("tkubotppn", response.properties().description()); + Assertions.assertEquals(PostgreSqlVersion.V17, response.properties().postgreSqlVersion()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsListByResourceGroupMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsListByResourceGroupMockTests.java new file mode 100644 index 0000000000000..0bd1125a18024 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsListByResourceGroupMockTests.java @@ -0,0 +1,45 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.horizondb.HorizonDbManager; +import com.azure.resourcemanager.horizondb.models.ParameterGroup; +import com.azure.resourcemanager.horizondb.models.PostgreSqlVersion; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class ParameterGroupsListByResourceGroupMockTests { + @Test + public void testListByResourceGroup() throws Exception { + String responseStr + = "{\"value\":[{\"properties\":{\"parameters\":[{\"name\":\"oz\",\"description\":\"hcxgkmoyx\",\"value\":\"yuibhm\",\"defaultValue\":\"nbzydvfvfcj\",\"valueSource\":\"UserOverride\",\"dataType\":\"isrvhm\",\"allowedValues\":\"r\",\"isDynamic\":true,\"isReadOnly\":false,\"documentationLink\":\"cvwmzhwplefa\",\"unit\":\"xilcbtgnhnzey\"}],\"description\":\"tjj\",\"postgreSqlVersion\":\"17\",\"provisioningState\":\"Provisioning\"},\"location\":\"hycav\",\"tags\":{\"nlrariaawiuagy\":\"gxdbeesmie\",\"ojocqwogf\":\"wqfbylyrfgiagt\"},\"id\":\"zjvusfzldmo\",\"name\":\"uxylfsbtkadpy\",\"type\":\"own\"}]}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + HorizonDbManager manager = HorizonDbManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + PagedIterable response + = manager.parameterGroups().listByResourceGroup("hrv", com.azure.core.util.Context.NONE); + + Assertions.assertEquals("hycav", response.iterator().next().location()); + Assertions.assertEquals("gxdbeesmie", response.iterator().next().tags().get("nlrariaawiuagy")); + Assertions.assertEquals("oz", response.iterator().next().properties().parameters().get(0).name()); + Assertions.assertEquals("yuibhm", response.iterator().next().properties().parameters().get(0).value()); + Assertions.assertEquals("tjj", response.iterator().next().properties().description()); + Assertions.assertEquals(PostgreSqlVersion.V17, response.iterator().next().properties().postgreSqlVersion()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsListConnectionsMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsListConnectionsMockTests.java similarity index 72% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsListConnectionsMockTests.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsListConnectionsMockTests.java index e356578b97134..43368c353e553 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbParameterGroupsListConnectionsMockTests.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsListConnectionsMockTests.java @@ -11,16 +11,16 @@ import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.horizondb.HorizonDbManager; -import com.azure.resourcemanager.horizondb.models.HorizonDbParameterGroupConnectionProperties; +import com.azure.resourcemanager.horizondb.models.ParameterGroupConnectionProperties; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; -public final class HorizonDbParameterGroupsListConnectionsMockTests { +public final class ParameterGroupsListConnectionsMockTests { @Test public void testListConnections() throws Exception { - String responseStr = "{\"value\":[{\"name\":\"sj\",\"id\":\"hszfjvfb\",\"type\":\"feljagrqm\"}]}"; + String responseStr = "{\"value\":[{\"poolResourceId\":\"kkzjcjbtrga\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -29,8 +29,8 @@ public void testListConnections() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response - = manager.horizonDbParameterGroups().listConnections("bt", "h", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.parameterGroups().listConnections("lhvnhlab", "q", com.azure.core.util.Context.NONE); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsListMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsListMockTests.java new file mode 100644 index 0000000000000..a549afaa7f28f --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterGroupsListMockTests.java @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.horizondb.HorizonDbManager; +import com.azure.resourcemanager.horizondb.models.ParameterGroup; +import com.azure.resourcemanager.horizondb.models.PostgreSqlVersion; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class ParameterGroupsListMockTests { + @Test + public void testList() throws Exception { + String responseStr + = "{\"value\":[{\"properties\":{\"parameters\":[{\"name\":\"u\",\"description\":\"jqctojcmisofie\",\"value\":\"efojyqdhcupl\",\"defaultValue\":\"lcwkhihihlhz\",\"valueSource\":\"SystemDefault\",\"dataType\":\"zbsrgnowcj\",\"allowedValues\":\"gmvecactxmw\",\"isDynamic\":false,\"isReadOnly\":false,\"documentationLink\":\"cluqovekqvgqo\",\"unit\":\"ifzmpjwyivqi\"}],\"description\":\"xcvhrfs\",\"postgreSqlVersion\":\"18\",\"provisioningState\":\"InProgress\"},\"location\":\"rttikteusqc\",\"tags\":{\"qcuubgqibrta\":\"yklxubyjaffmmfbl\",\"lqxihhrmooiz\":\"metttwgd\"},\"id\":\"seypxiutcxapz\",\"name\":\"y\",\"type\":\"petogebjox\"}]}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + HorizonDbManager manager = HorizonDbManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + PagedIterable response = manager.parameterGroups().list(com.azure.core.util.Context.NONE); + + Assertions.assertEquals("rttikteusqc", response.iterator().next().location()); + Assertions.assertEquals("yklxubyjaffmmfbl", response.iterator().next().tags().get("qcuubgqibrta")); + Assertions.assertEquals("u", response.iterator().next().properties().parameters().get(0).name()); + Assertions.assertEquals("efojyqdhcupl", response.iterator().next().properties().parameters().get(0).value()); + Assertions.assertEquals("xcvhrfs", response.iterator().next().properties().description()); + Assertions.assertEquals(PostgreSqlVersion.V18, response.iterator().next().properties().postgreSqlVersion()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterPropertiesTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterPropertiesTests.java index 4e72ec0253edb..b279356df99e2 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterPropertiesTests.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ParameterPropertiesTests.java @@ -12,17 +12,17 @@ public final class ParameterPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ParameterProperties model = BinaryData.fromString( - "{\"name\":\"fyhxde\",\"description\":\"jzicwifsjt\",\"value\":\"zfbishcbkhaj\",\"dataType\":\"yeamdphagalpb\",\"allowedValues\":\"wgipwhono\",\"isDynamic\":true,\"isReadOnly\":true,\"documentationLink\":\"ankixzbinjeput\",\"unit\":\"rywn\"}") + "{\"name\":\"eojnabc\",\"description\":\"smtxpsieb\",\"value\":\"hvpesapskrdqm\",\"defaultValue\":\"jdhtldwkyzxu\",\"valueSource\":\"SystemDefault\",\"dataType\":\"cwscwsvlx\",\"allowedValues\":\"ogtwrupqsxvnmi\",\"isDynamic\":true,\"isReadOnly\":true,\"documentationLink\":\"o\",\"unit\":\"ilovnot\"}") .toObject(ParameterProperties.class); - Assertions.assertEquals("fyhxde", model.name()); - Assertions.assertEquals("zfbishcbkhaj", model.value()); + Assertions.assertEquals("eojnabc", model.name()); + Assertions.assertEquals("hvpesapskrdqm", model.value()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ParameterProperties model = new ParameterProperties().withName("fyhxde").withValue("zfbishcbkhaj"); + ParameterProperties model = new ParameterProperties().withName("eojnabc").withValue("hvpesapskrdqm"); model = BinaryData.fromObject(model).toObject(ParameterProperties.class); - Assertions.assertEquals("fyhxde", model.name()); - Assertions.assertEquals("zfbishcbkhaj", model.value()); + Assertions.assertEquals("eojnabc", model.name()); + Assertions.assertEquals("hvpesapskrdqm", model.value()); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolCapabilityTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolCapabilityTests.java new file mode 100644 index 0000000000000..e76334c1905ce --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolCapabilityTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.PoolCapability; + +public final class PoolCapabilityTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + PoolCapability model = BinaryData.fromString( + "{\"recommendedComputeProcessor\":\"AMD\",\"supportedProcessors\":[{\"name\":\"Intel\",\"supportedGenerations\":[{\"computeGeneration\":355528987,\"recommendedComputeModelType\":\"Provisioned\",\"supportedComputeModels\":[{\"type\":\"ComputeModelCapability\"}]},{\"computeGeneration\":1750576238,\"recommendedComputeModelType\":\"Provisioned\",\"supportedComputeModels\":[{\"type\":\"ComputeModelCapability\"},{\"type\":\"ComputeModelCapability\"}]},{\"computeGeneration\":1708707643,\"recommendedComputeModelType\":\"Provisioned\",\"supportedComputeModels\":[{\"type\":\"ComputeModelCapability\"},{\"type\":\"ComputeModelCapability\"},{\"type\":\"ComputeModelCapability\"},{\"type\":\"ComputeModelCapability\"}]}]},{\"name\":\"Intel\",\"supportedGenerations\":[{\"computeGeneration\":827593581,\"recommendedComputeModelType\":\"Provisioned\",\"supportedComputeModels\":[{\"type\":\"ComputeModelCapability\"}]}]},{\"name\":\"AMD\",\"supportedGenerations\":[{\"computeGeneration\":1508437812,\"recommendedComputeModelType\":\"Provisioned\",\"supportedComputeModels\":[{\"type\":\"ComputeModelCapability\"},{\"type\":\"ComputeModelCapability\"}]},{\"computeGeneration\":105374828,\"recommendedComputeModelType\":\"Provisioned\",\"supportedComputeModels\":[{\"type\":\"ComputeModelCapability\"}]},{\"computeGeneration\":344559573,\"recommendedComputeModelType\":\"Provisioned\",\"supportedComputeModels\":[{\"type\":\"ComputeModelCapability\"},{\"type\":\"ComputeModelCapability\"},{\"type\":\"ComputeModelCapability\"}]}]},{\"name\":\"AMD\",\"supportedGenerations\":[{\"computeGeneration\":2111308623,\"recommendedComputeModelType\":\"Provisioned\",\"supportedComputeModels\":[{\"type\":\"ComputeModelCapability\"},{\"type\":\"ComputeModelCapability\"},{\"type\":\"ComputeModelCapability\"},{\"type\":\"ComputeModelCapability\"}]},{\"computeGeneration\":994442510,\"recommendedComputeModelType\":\"Provisioned\",\"supportedComputeModels\":[{\"type\":\"ComputeModelCapability\"}]},{\"computeGeneration\":1961045961,\"recommendedComputeModelType\":\"Provisioned\",\"supportedComputeModels\":[{\"type\":\"ComputeModelCapability\"},{\"type\":\"ComputeModelCapability\"},{\"type\":\"ComputeModelCapability\"}]}]}],\"supportedFeatures\":[{\"name\":\"ozkrwfndiodjpslw\"},{\"name\":\"jdpvwryo\"},{\"name\":\"psoacctazakljl\"}]}") + .toObject(PoolCapability.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolComputeModelForPatchUpdateTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolComputeModelForPatchUpdateTests.java new file mode 100644 index 0000000000000..dd45d3c2427ff --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolComputeModelForPatchUpdateTests.java @@ -0,0 +1,38 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.ComputeProcessorType; +import com.azure.resourcemanager.horizondb.models.PoolComputeModelForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.PoolComputeModelType; +import org.junit.jupiter.api.Assertions; + +public final class PoolComputeModelForPatchUpdateTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + PoolComputeModelForPatchUpdate model = BinaryData.fromString( + "{\"type\":\"Provisioned\",\"computeProcessor\":\"AMD\",\"computeGeneration\":1604770276,\"vCores\":537336258}") + .toObject(PoolComputeModelForPatchUpdate.class); + Assertions.assertEquals(PoolComputeModelType.PROVISIONED, model.type()); + Assertions.assertEquals(ComputeProcessorType.AMD, model.computeProcessor()); + Assertions.assertEquals(1604770276, model.computeGeneration()); + Assertions.assertEquals(537336258, model.vCores()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + PoolComputeModelForPatchUpdate model + = new PoolComputeModelForPatchUpdate().withType(PoolComputeModelType.PROVISIONED) + .withComputeProcessor(ComputeProcessorType.AMD) + .withComputeGeneration(1604770276) + .withVCores(537336258); + model = BinaryData.fromObject(model).toObject(PoolComputeModelForPatchUpdate.class); + Assertions.assertEquals(PoolComputeModelType.PROVISIONED, model.type()); + Assertions.assertEquals(ComputeProcessorType.AMD, model.computeProcessor()); + Assertions.assertEquals(1604770276, model.computeGeneration()); + Assertions.assertEquals(537336258, model.vCores()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolComputeModelTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolComputeModelTests.java new file mode 100644 index 0000000000000..75320e3bf927c --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolComputeModelTests.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.ComputeProcessorType; +import com.azure.resourcemanager.horizondb.models.PoolComputeModel; +import com.azure.resourcemanager.horizondb.models.PoolComputeModelType; +import org.junit.jupiter.api.Assertions; + +public final class PoolComputeModelTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + PoolComputeModel model = BinaryData.fromString( + "{\"type\":\"Provisioned\",\"computeProcessor\":\"Intel\",\"computeGeneration\":1853852705,\"vCores\":812550328}") + .toObject(PoolComputeModel.class); + Assertions.assertEquals(PoolComputeModelType.PROVISIONED, model.type()); + Assertions.assertEquals(ComputeProcessorType.INTEL, model.computeProcessor()); + Assertions.assertEquals(1853852705, model.computeGeneration()); + Assertions.assertEquals(812550328, model.vCores()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + PoolComputeModel model = new PoolComputeModel().withType(PoolComputeModelType.PROVISIONED) + .withComputeProcessor(ComputeProcessorType.INTEL) + .withComputeGeneration(1853852705) + .withVCores(812550328); + model = BinaryData.fromObject(model).toObject(PoolComputeModel.class); + Assertions.assertEquals(PoolComputeModelType.PROVISIONED, model.type()); + Assertions.assertEquals(ComputeProcessorType.INTEL, model.computeProcessor()); + Assertions.assertEquals(1853852705, model.computeGeneration()); + Assertions.assertEquals(812550328, model.vCores()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolFeatureCapabilityTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolFeatureCapabilityTests.java new file mode 100644 index 0000000000000..027aa5f43b04a --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolFeatureCapabilityTests.java @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.PoolFeatureCapability; + +public final class PoolFeatureCapabilityTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + PoolFeatureCapability model + = BinaryData.fromString("{\"name\":\"hcrzevd\"}").toObject(PoolFeatureCapability.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolForPatchUpdateTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolForPatchUpdateTests.java new file mode 100644 index 0000000000000..c6c67aff02fd4 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolForPatchUpdateTests.java @@ -0,0 +1,83 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.ComputeProcessorType; +import com.azure.resourcemanager.horizondb.models.ParameterApplyMethod; +import com.azure.resourcemanager.horizondb.models.PoolComputeModelForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.PoolComputeModelType; +import com.azure.resourcemanager.horizondb.models.PoolForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.PoolHighAvailabilityMode; +import com.azure.resourcemanager.horizondb.models.PoolHighAvailabilityPatch; +import com.azure.resourcemanager.horizondb.models.PoolParameterGroupReferenceForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.PoolPropertiesForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.ScheduledMaintenanceManagementType; +import com.azure.resourcemanager.horizondb.models.ScheduledMaintenancePropertiesForPatchUpdate; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; + +public final class PoolForPatchUpdateTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + PoolForPatchUpdate model = BinaryData.fromString( + "{\"tags\":{\"kajionpim\":\"dxkqpx\",\"txgcpodgmaajr\":\"xg\",\"lwhijcoejctbzaq\":\"vdjwzrlovm\"},\"properties\":{\"computeModel\":{\"type\":\"Provisioned\",\"computeProcessor\":\"Intel\",\"computeGeneration\":1508721218,\"vCores\":544085929},\"nodeCount\":1619207085,\"highAvailability\":{\"mode\":\"AnyZone\"},\"parameterGroup\":{\"parameterGroupResourceId\":\"ppofmxaxcfjpgdd\",\"applyMethod\":\"Immediate\"},\"scheduledMaintenance\":{\"maintenanceManagementType\":\"System\"}}}") + .toObject(PoolForPatchUpdate.class); + Assertions.assertEquals("dxkqpx", model.tags().get("kajionpim")); + Assertions.assertEquals(PoolComputeModelType.PROVISIONED, model.properties().computeModel().type()); + Assertions.assertEquals(ComputeProcessorType.INTEL, model.properties().computeModel().computeProcessor()); + Assertions.assertEquals(1508721218, model.properties().computeModel().computeGeneration()); + Assertions.assertEquals(544085929, model.properties().computeModel().vCores()); + Assertions.assertEquals(1619207085, model.properties().nodeCount()); + Assertions.assertEquals(PoolHighAvailabilityMode.ANY_ZONE, model.properties().highAvailability().mode()); + Assertions.assertEquals("ppofmxaxcfjpgdd", model.properties().parameterGroup().parameterGroupResourceId()); + Assertions.assertEquals(ParameterApplyMethod.IMMEDIATE, model.properties().parameterGroup().applyMethod()); + Assertions.assertEquals(ScheduledMaintenanceManagementType.SYSTEM, + model.properties().scheduledMaintenance().maintenanceManagementType()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + PoolForPatchUpdate model = new PoolForPatchUpdate() + .withTags(mapOf("kajionpim", "dxkqpx", "txgcpodgmaajr", "xg", "lwhijcoejctbzaq", "vdjwzrlovm")) + .withProperties(new PoolPropertiesForPatchUpdate() + .withComputeModel(new PoolComputeModelForPatchUpdate().withType(PoolComputeModelType.PROVISIONED) + .withComputeProcessor(ComputeProcessorType.INTEL) + .withComputeGeneration(1508721218) + .withVCores(544085929)) + .withNodeCount(1619207085) + .withHighAvailability(new PoolHighAvailabilityPatch().withMode(PoolHighAvailabilityMode.ANY_ZONE)) + .withParameterGroup( + new PoolParameterGroupReferenceForPatchUpdate().withParameterGroupResourceId("ppofmxaxcfjpgdd") + .withApplyMethod(ParameterApplyMethod.IMMEDIATE)) + .withScheduledMaintenance(new ScheduledMaintenancePropertiesForPatchUpdate() + .withMaintenanceManagementType(ScheduledMaintenanceManagementType.SYSTEM))); + model = BinaryData.fromObject(model).toObject(PoolForPatchUpdate.class); + Assertions.assertEquals("dxkqpx", model.tags().get("kajionpim")); + Assertions.assertEquals(PoolComputeModelType.PROVISIONED, model.properties().computeModel().type()); + Assertions.assertEquals(ComputeProcessorType.INTEL, model.properties().computeModel().computeProcessor()); + Assertions.assertEquals(1508721218, model.properties().computeModel().computeGeneration()); + Assertions.assertEquals(544085929, model.properties().computeModel().vCores()); + Assertions.assertEquals(1619207085, model.properties().nodeCount()); + Assertions.assertEquals(PoolHighAvailabilityMode.ANY_ZONE, model.properties().highAvailability().mode()); + Assertions.assertEquals("ppofmxaxcfjpgdd", model.properties().parameterGroup().parameterGroupResourceId()); + Assertions.assertEquals(ParameterApplyMethod.IMMEDIATE, model.properties().parameterGroup().applyMethod()); + Assertions.assertEquals(ScheduledMaintenanceManagementType.SYSTEM, + model.properties().scheduledMaintenance().maintenanceManagementType()); + } + + // 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/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolHighAvailabilityPatchTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolHighAvailabilityPatchTests.java new file mode 100644 index 0000000000000..74f7af6835cb5 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolHighAvailabilityPatchTests.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.PoolHighAvailabilityMode; +import com.azure.resourcemanager.horizondb.models.PoolHighAvailabilityPatch; +import org.junit.jupiter.api.Assertions; + +public final class PoolHighAvailabilityPatchTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + PoolHighAvailabilityPatch model + = BinaryData.fromString("{\"mode\":\"AnyZone\"}").toObject(PoolHighAvailabilityPatch.class); + Assertions.assertEquals(PoolHighAvailabilityMode.ANY_ZONE, model.mode()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + PoolHighAvailabilityPatch model = new PoolHighAvailabilityPatch().withMode(PoolHighAvailabilityMode.ANY_ZONE); + model = BinaryData.fromObject(model).toObject(PoolHighAvailabilityPatch.class); + Assertions.assertEquals(PoolHighAvailabilityMode.ANY_ZONE, model.mode()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolHighAvailabilityTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolHighAvailabilityTests.java new file mode 100644 index 0000000000000..14a73d3141b18 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolHighAvailabilityTests.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.PoolHighAvailability; +import com.azure.resourcemanager.horizondb.models.PoolHighAvailabilityMode; +import org.junit.jupiter.api.Assertions; + +public final class PoolHighAvailabilityTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + PoolHighAvailability model + = BinaryData.fromString("{\"mode\":\"AnyZone\"}").toObject(PoolHighAvailability.class); + Assertions.assertEquals(PoolHighAvailabilityMode.ANY_ZONE, model.mode()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + PoolHighAvailability model = new PoolHighAvailability().withMode(PoolHighAvailabilityMode.ANY_ZONE); + model = BinaryData.fromObject(model).toObject(PoolHighAvailability.class); + Assertions.assertEquals(PoolHighAvailabilityMode.ANY_ZONE, model.mode()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolInnerTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolInnerTests.java new file mode 100644 index 0000000000000..ef25e73f6851a --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolInnerTests.java @@ -0,0 +1,76 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.fluent.models.PoolInner; +import com.azure.resourcemanager.horizondb.models.ComputeProcessorType; +import com.azure.resourcemanager.horizondb.models.ParameterApplyMethod; +import com.azure.resourcemanager.horizondb.models.PoolComputeModel; +import com.azure.resourcemanager.horizondb.models.PoolComputeModelType; +import com.azure.resourcemanager.horizondb.models.PoolHighAvailability; +import com.azure.resourcemanager.horizondb.models.PoolHighAvailabilityMode; +import com.azure.resourcemanager.horizondb.models.PoolParameterGroupReference; +import com.azure.resourcemanager.horizondb.models.PoolProperties; +import com.azure.resourcemanager.horizondb.models.ScheduledMaintenanceProperties; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; + +public final class PoolInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + PoolInner model = BinaryData.fromString( + "{\"properties\":{\"state\":\"Stopped\",\"computeModel\":{\"type\":\"Provisioned\",\"computeProcessor\":\"Intel\",\"computeGeneration\":614073164,\"vCores\":62079989},\"nodeCount\":1667085881,\"highAvailability\":{\"mode\":\"ZoneRedundant\"},\"parameterGroup\":{\"parameterGroupResourceId\":\"xsqwpgrjbznorc\",\"applyMethod\":\"Immediate\",\"syncStatus\":\"Applying\"},\"scheduledMaintenance\":{\"maintenanceManagementType\":\"ScheduledMaintenanceProperties\"},\"provisioningState\":\"Succeeded\"},\"tags\":{\"zafb\":\"abnmocpcyshu\",\"oq\":\"jjgpb\"},\"id\":\"mkljavb\",\"name\":\"idtqajzyu\",\"type\":\"pku\"}") + .toObject(PoolInner.class); + Assertions.assertEquals(PoolComputeModelType.PROVISIONED, model.properties().computeModel().type()); + Assertions.assertEquals(ComputeProcessorType.INTEL, model.properties().computeModel().computeProcessor()); + Assertions.assertEquals(614073164, model.properties().computeModel().computeGeneration()); + Assertions.assertEquals(62079989, model.properties().computeModel().vCores()); + Assertions.assertEquals(1667085881, model.properties().nodeCount()); + Assertions.assertEquals(PoolHighAvailabilityMode.ZONE_REDUNDANT, model.properties().highAvailability().mode()); + Assertions.assertEquals("xsqwpgrjbznorc", model.properties().parameterGroup().parameterGroupResourceId()); + Assertions.assertEquals(ParameterApplyMethod.IMMEDIATE, model.properties().parameterGroup().applyMethod()); + Assertions.assertEquals("abnmocpcyshu", model.tags().get("zafb")); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + PoolInner model = new PoolInner() + .withProperties(new PoolProperties() + .withComputeModel(new PoolComputeModel().withType(PoolComputeModelType.PROVISIONED) + .withComputeProcessor(ComputeProcessorType.INTEL) + .withComputeGeneration(614073164) + .withVCores(62079989)) + .withNodeCount(1667085881) + .withHighAvailability(new PoolHighAvailability().withMode(PoolHighAvailabilityMode.ZONE_REDUNDANT)) + .withParameterGroup(new PoolParameterGroupReference().withParameterGroupResourceId("xsqwpgrjbznorc") + .withApplyMethod(ParameterApplyMethod.IMMEDIATE)) + .withScheduledMaintenance(new ScheduledMaintenanceProperties())) + .withTags(mapOf("zafb", "abnmocpcyshu", "oq", "jjgpb")); + model = BinaryData.fromObject(model).toObject(PoolInner.class); + Assertions.assertEquals(PoolComputeModelType.PROVISIONED, model.properties().computeModel().type()); + Assertions.assertEquals(ComputeProcessorType.INTEL, model.properties().computeModel().computeProcessor()); + Assertions.assertEquals(614073164, model.properties().computeModel().computeGeneration()); + Assertions.assertEquals(62079989, model.properties().computeModel().vCores()); + Assertions.assertEquals(1667085881, model.properties().nodeCount()); + Assertions.assertEquals(PoolHighAvailabilityMode.ZONE_REDUNDANT, model.properties().highAvailability().mode()); + Assertions.assertEquals("xsqwpgrjbznorc", model.properties().parameterGroup().parameterGroupResourceId()); + Assertions.assertEquals(ParameterApplyMethod.IMMEDIATE, model.properties().parameterGroup().applyMethod()); + Assertions.assertEquals("abnmocpcyshu", model.tags().get("zafb")); + } + + // 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/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolListResultTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolListResultTests.java new file mode 100644 index 0000000000000..dd145f2ff3f0b --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolListResultTests.java @@ -0,0 +1,37 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.implementation.models.PoolListResult; +import com.azure.resourcemanager.horizondb.models.ComputeProcessorType; +import com.azure.resourcemanager.horizondb.models.ParameterApplyMethod; +import com.azure.resourcemanager.horizondb.models.PoolComputeModelType; +import com.azure.resourcemanager.horizondb.models.PoolHighAvailabilityMode; +import org.junit.jupiter.api.Assertions; + +public final class PoolListResultTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + PoolListResult model = BinaryData.fromString( + "{\"value\":[{\"properties\":{\"state\":\"Deleting\",\"computeModel\":{\"type\":\"Provisioned\",\"computeProcessor\":\"AMD\",\"computeGeneration\":920917148,\"vCores\":1516038621},\"nodeCount\":1222275240,\"highAvailability\":{\"mode\":\"AnyZone\"},\"parameterGroup\":{\"parameterGroupResourceId\":\"qciwqvhkhixuigdt\",\"applyMethod\":\"Immediate\",\"syncStatus\":\"FailedToApply\"},\"scheduledMaintenance\":{\"maintenanceManagementType\":\"ScheduledMaintenanceProperties\"},\"provisioningState\":\"InProgress\"},\"tags\":{\"w\":\"m\"},\"id\":\"m\",\"name\":\"uhrzayvvt\",\"type\":\"gvdfgiotkftutq\"},{\"properties\":{\"state\":\"Starting\",\"computeModel\":{\"type\":\"Provisioned\",\"computeProcessor\":\"AMD\",\"computeGeneration\":1915071310,\"vCores\":1542158785},\"nodeCount\":628151950,\"highAvailability\":{\"mode\":\"AnyZone\"},\"parameterGroup\":{\"parameterGroupResourceId\":\"gnxkrxdqmidtth\",\"applyMethod\":\"Immediate\",\"syncStatus\":\"PendingReboot\"},\"scheduledMaintenance\":{\"maintenanceManagementType\":\"ScheduledMaintenanceProperties\"},\"provisioningState\":\"InProgress\"},\"tags\":{\"oqfbowskanyk\":\"jybige\",\"nhzgpphrcgyn\":\"zlcuiywgqywgndrv\",\"fsxlzevgbmqjqa\":\"ocpecfvmmco\",\"pmivkwlzu\":\"c\"},\"id\":\"c\",\"name\":\"wnfnbacf\",\"type\":\"onlebxetqgtzxdpn\"},{\"properties\":{\"state\":\"Inaccessible\",\"computeModel\":{\"type\":\"Provisioned\",\"computeProcessor\":\"AMD\",\"computeGeneration\":2122264998,\"vCores\":588288126},\"nodeCount\":19464895,\"highAvailability\":{\"mode\":\"Disabled\"},\"parameterGroup\":{\"parameterGroupResourceId\":\"al\",\"applyMethod\":\"PendingReboot\",\"syncStatus\":\"Applying\"},\"scheduledMaintenance\":{\"maintenanceManagementType\":\"ScheduledMaintenanceProperties\"},\"provisioningState\":\"InProgress\"},\"tags\":{\"ochcbonqvpkvl\":\"jampmngnzscxaqw\",\"ase\":\"xnj\"},\"id\":\"heoflokeyyienjbd\",\"name\":\"wtgrhpdjpj\",\"type\":\"masxazjpqyegu\"}],\"nextLink\":\"hb\"}") + .toObject(PoolListResult.class); + Assertions.assertEquals(PoolComputeModelType.PROVISIONED, + model.value().get(0).properties().computeModel().type()); + Assertions.assertEquals(ComputeProcessorType.AMD, + model.value().get(0).properties().computeModel().computeProcessor()); + Assertions.assertEquals(920917148, model.value().get(0).properties().computeModel().computeGeneration()); + Assertions.assertEquals(1516038621, model.value().get(0).properties().computeModel().vCores()); + Assertions.assertEquals(1222275240, model.value().get(0).properties().nodeCount()); + Assertions.assertEquals(PoolHighAvailabilityMode.ANY_ZONE, + model.value().get(0).properties().highAvailability().mode()); + Assertions.assertEquals("qciwqvhkhixuigdt", + model.value().get(0).properties().parameterGroup().parameterGroupResourceId()); + Assertions.assertEquals(ParameterApplyMethod.IMMEDIATE, + model.value().get(0).properties().parameterGroup().applyMethod()); + Assertions.assertEquals("m", model.value().get(0).tags().get("w")); + Assertions.assertEquals("hb", model.nextLink()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolParameterGroupReferenceForPatchUpdateTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolParameterGroupReferenceForPatchUpdateTests.java new file mode 100644 index 0000000000000..0735ae26ef2b6 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolParameterGroupReferenceForPatchUpdateTests.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.ParameterApplyMethod; +import com.azure.resourcemanager.horizondb.models.PoolParameterGroupReferenceForPatchUpdate; +import org.junit.jupiter.api.Assertions; + +public final class PoolParameterGroupReferenceForPatchUpdateTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + PoolParameterGroupReferenceForPatchUpdate model + = BinaryData.fromString("{\"parameterGroupResourceId\":\"vuhrhcffcyddgl\",\"applyMethod\":\"Immediate\"}") + .toObject(PoolParameterGroupReferenceForPatchUpdate.class); + Assertions.assertEquals("vuhrhcffcyddgl", model.parameterGroupResourceId()); + Assertions.assertEquals(ParameterApplyMethod.IMMEDIATE, model.applyMethod()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + PoolParameterGroupReferenceForPatchUpdate model + = new PoolParameterGroupReferenceForPatchUpdate().withParameterGroupResourceId("vuhrhcffcyddgl") + .withApplyMethod(ParameterApplyMethod.IMMEDIATE); + model = BinaryData.fromObject(model).toObject(PoolParameterGroupReferenceForPatchUpdate.class); + Assertions.assertEquals("vuhrhcffcyddgl", model.parameterGroupResourceId()); + Assertions.assertEquals(ParameterApplyMethod.IMMEDIATE, model.applyMethod()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolParameterGroupReferenceTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolParameterGroupReferenceTests.java new file mode 100644 index 0000000000000..8d9ec0e95e0dc --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolParameterGroupReferenceTests.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.ParameterApplyMethod; +import com.azure.resourcemanager.horizondb.models.PoolParameterGroupReference; +import org.junit.jupiter.api.Assertions; + +public final class PoolParameterGroupReferenceTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + PoolParameterGroupReference model = BinaryData.fromString( + "{\"parameterGroupResourceId\":\"hhbcsglummajtjao\",\"applyMethod\":\"PendingReboot\",\"syncStatus\":\"PendingReboot\"}") + .toObject(PoolParameterGroupReference.class); + Assertions.assertEquals("hhbcsglummajtjao", model.parameterGroupResourceId()); + Assertions.assertEquals(ParameterApplyMethod.PENDING_REBOOT, model.applyMethod()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + PoolParameterGroupReference model + = new PoolParameterGroupReference().withParameterGroupResourceId("hhbcsglummajtjao") + .withApplyMethod(ParameterApplyMethod.PENDING_REBOOT); + model = BinaryData.fromObject(model).toObject(PoolParameterGroupReference.class); + Assertions.assertEquals("hhbcsglummajtjao", model.parameterGroupResourceId()); + Assertions.assertEquals(ParameterApplyMethod.PENDING_REBOOT, model.applyMethod()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolPropertiesForPatchUpdateTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolPropertiesForPatchUpdateTests.java new file mode 100644 index 0000000000000..8d93039127b3a --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolPropertiesForPatchUpdateTests.java @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.ComputeProcessorType; +import com.azure.resourcemanager.horizondb.models.ParameterApplyMethod; +import com.azure.resourcemanager.horizondb.models.PoolComputeModelForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.PoolComputeModelType; +import com.azure.resourcemanager.horizondb.models.PoolHighAvailabilityMode; +import com.azure.resourcemanager.horizondb.models.PoolHighAvailabilityPatch; +import com.azure.resourcemanager.horizondb.models.PoolParameterGroupReferenceForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.PoolPropertiesForPatchUpdate; +import com.azure.resourcemanager.horizondb.models.ScheduledMaintenanceManagementType; +import com.azure.resourcemanager.horizondb.models.ScheduledMaintenancePropertiesForPatchUpdate; +import org.junit.jupiter.api.Assertions; + +public final class PoolPropertiesForPatchUpdateTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + PoolPropertiesForPatchUpdate model = BinaryData.fromString( + "{\"computeModel\":{\"type\":\"Provisioned\",\"computeProcessor\":\"Intel\",\"computeGeneration\":805352848,\"vCores\":292042706},\"nodeCount\":2146697807,\"highAvailability\":{\"mode\":\"Disabled\"},\"parameterGroup\":{\"parameterGroupResourceId\":\"ojnxqbzvdd\",\"applyMethod\":\"PendingReboot\"},\"scheduledMaintenance\":{\"maintenanceManagementType\":\"System\"}}") + .toObject(PoolPropertiesForPatchUpdate.class); + Assertions.assertEquals(PoolComputeModelType.PROVISIONED, model.computeModel().type()); + Assertions.assertEquals(ComputeProcessorType.INTEL, model.computeModel().computeProcessor()); + Assertions.assertEquals(805352848, model.computeModel().computeGeneration()); + Assertions.assertEquals(292042706, model.computeModel().vCores()); + Assertions.assertEquals(2146697807, model.nodeCount()); + Assertions.assertEquals(PoolHighAvailabilityMode.DISABLED, model.highAvailability().mode()); + Assertions.assertEquals("ojnxqbzvdd", model.parameterGroup().parameterGroupResourceId()); + Assertions.assertEquals(ParameterApplyMethod.PENDING_REBOOT, model.parameterGroup().applyMethod()); + Assertions.assertEquals(ScheduledMaintenanceManagementType.SYSTEM, + model.scheduledMaintenance().maintenanceManagementType()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + PoolPropertiesForPatchUpdate model = new PoolPropertiesForPatchUpdate() + .withComputeModel(new PoolComputeModelForPatchUpdate().withType(PoolComputeModelType.PROVISIONED) + .withComputeProcessor(ComputeProcessorType.INTEL) + .withComputeGeneration(805352848) + .withVCores(292042706)) + .withNodeCount(2146697807) + .withHighAvailability(new PoolHighAvailabilityPatch().withMode(PoolHighAvailabilityMode.DISABLED)) + .withParameterGroup( + new PoolParameterGroupReferenceForPatchUpdate().withParameterGroupResourceId("ojnxqbzvdd") + .withApplyMethod(ParameterApplyMethod.PENDING_REBOOT)) + .withScheduledMaintenance(new ScheduledMaintenancePropertiesForPatchUpdate() + .withMaintenanceManagementType(ScheduledMaintenanceManagementType.SYSTEM)); + model = BinaryData.fromObject(model).toObject(PoolPropertiesForPatchUpdate.class); + Assertions.assertEquals(PoolComputeModelType.PROVISIONED, model.computeModel().type()); + Assertions.assertEquals(ComputeProcessorType.INTEL, model.computeModel().computeProcessor()); + Assertions.assertEquals(805352848, model.computeModel().computeGeneration()); + Assertions.assertEquals(292042706, model.computeModel().vCores()); + Assertions.assertEquals(2146697807, model.nodeCount()); + Assertions.assertEquals(PoolHighAvailabilityMode.DISABLED, model.highAvailability().mode()); + Assertions.assertEquals("ojnxqbzvdd", model.parameterGroup().parameterGroupResourceId()); + Assertions.assertEquals(ParameterApplyMethod.PENDING_REBOOT, model.parameterGroup().applyMethod()); + Assertions.assertEquals(ScheduledMaintenanceManagementType.SYSTEM, + model.scheduledMaintenance().maintenanceManagementType()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolPropertiesTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolPropertiesTests.java new file mode 100644 index 0000000000000..88674ae207bfa --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolPropertiesTests.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.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.ComputeProcessorType; +import com.azure.resourcemanager.horizondb.models.ParameterApplyMethod; +import com.azure.resourcemanager.horizondb.models.PoolComputeModel; +import com.azure.resourcemanager.horizondb.models.PoolComputeModelType; +import com.azure.resourcemanager.horizondb.models.PoolHighAvailability; +import com.azure.resourcemanager.horizondb.models.PoolHighAvailabilityMode; +import com.azure.resourcemanager.horizondb.models.PoolParameterGroupReference; +import com.azure.resourcemanager.horizondb.models.PoolProperties; +import com.azure.resourcemanager.horizondb.models.ScheduledMaintenanceProperties; +import org.junit.jupiter.api.Assertions; + +public final class PoolPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + PoolProperties model = BinaryData.fromString( + "{\"state\":\"Updating\",\"computeModel\":{\"type\":\"Provisioned\",\"computeProcessor\":\"Intel\",\"computeGeneration\":623997191,\"vCores\":1898258461},\"nodeCount\":1234306466,\"highAvailability\":{\"mode\":\"AnyZone\"},\"parameterGroup\":{\"parameterGroupResourceId\":\"hfepgzgqex\",\"applyMethod\":\"Immediate\",\"syncStatus\":\"Applying\"},\"scheduledMaintenance\":{\"maintenanceManagementType\":\"ScheduledMaintenanceProperties\"},\"provisioningState\":\"InProgress\"}") + .toObject(PoolProperties.class); + Assertions.assertEquals(PoolComputeModelType.PROVISIONED, model.computeModel().type()); + Assertions.assertEquals(ComputeProcessorType.INTEL, model.computeModel().computeProcessor()); + Assertions.assertEquals(623997191, model.computeModel().computeGeneration()); + Assertions.assertEquals(1898258461, model.computeModel().vCores()); + Assertions.assertEquals(1234306466, model.nodeCount()); + Assertions.assertEquals(PoolHighAvailabilityMode.ANY_ZONE, model.highAvailability().mode()); + Assertions.assertEquals("hfepgzgqex", model.parameterGroup().parameterGroupResourceId()); + Assertions.assertEquals(ParameterApplyMethod.IMMEDIATE, model.parameterGroup().applyMethod()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + PoolProperties model = new PoolProperties() + .withComputeModel(new PoolComputeModel().withType(PoolComputeModelType.PROVISIONED) + .withComputeProcessor(ComputeProcessorType.INTEL) + .withComputeGeneration(623997191) + .withVCores(1898258461)) + .withNodeCount(1234306466) + .withHighAvailability(new PoolHighAvailability().withMode(PoolHighAvailabilityMode.ANY_ZONE)) + .withParameterGroup(new PoolParameterGroupReference().withParameterGroupResourceId("hfepgzgqex") + .withApplyMethod(ParameterApplyMethod.IMMEDIATE)) + .withScheduledMaintenance(new ScheduledMaintenanceProperties()); + model = BinaryData.fromObject(model).toObject(PoolProperties.class); + Assertions.assertEquals(PoolComputeModelType.PROVISIONED, model.computeModel().type()); + Assertions.assertEquals(ComputeProcessorType.INTEL, model.computeModel().computeProcessor()); + Assertions.assertEquals(623997191, model.computeModel().computeGeneration()); + Assertions.assertEquals(1898258461, model.computeModel().vCores()); + Assertions.assertEquals(1234306466, model.nodeCount()); + Assertions.assertEquals(PoolHighAvailabilityMode.ANY_ZONE, model.highAvailability().mode()); + Assertions.assertEquals("hfepgzgqex", model.parameterGroup().parameterGroupResourceId()); + Assertions.assertEquals(ParameterApplyMethod.IMMEDIATE, model.parameterGroup().applyMethod()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolsCreateOrReplaceMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolsCreateOrReplaceMockTests.java new file mode 100644 index 0000000000000..b2bb9748a4ff9 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolsCreateOrReplaceMockTests.java @@ -0,0 +1,84 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.horizondb.HorizonDbManager; +import com.azure.resourcemanager.horizondb.models.ComputeProcessorType; +import com.azure.resourcemanager.horizondb.models.ParameterApplyMethod; +import com.azure.resourcemanager.horizondb.models.Pool; +import com.azure.resourcemanager.horizondb.models.PoolComputeModel; +import com.azure.resourcemanager.horizondb.models.PoolComputeModelType; +import com.azure.resourcemanager.horizondb.models.PoolHighAvailability; +import com.azure.resourcemanager.horizondb.models.PoolHighAvailabilityMode; +import com.azure.resourcemanager.horizondb.models.PoolParameterGroupReference; +import com.azure.resourcemanager.horizondb.models.PoolProperties; +import com.azure.resourcemanager.horizondb.models.ScheduledMaintenanceProperties; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class PoolsCreateOrReplaceMockTests { + @Test + public void testCreateOrReplace() throws Exception { + String responseStr + = "{\"properties\":{\"state\":\"Restarting\",\"computeModel\":{\"type\":\"Provisioned\",\"computeProcessor\":\"Intel\",\"computeGeneration\":1041320877,\"vCores\":1109693907},\"nodeCount\":851546423,\"highAvailability\":{\"mode\":\"ZoneRedundant\"},\"parameterGroup\":{\"parameterGroupResourceId\":\"jfutacoebj\",\"applyMethod\":\"PendingReboot\",\"syncStatus\":\"PendingReboot\"},\"scheduledMaintenance\":{\"maintenanceManagementType\":\"ScheduledMaintenanceProperties\"},\"provisioningState\":\"Succeeded\"},\"tags\":{\"kahzo\":\"wcpmguaadraufac\"},\"id\":\"jjziuxxpsh\",\"name\":\"eekulfgslqubkwd\",\"type\":\"enr\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + HorizonDbManager manager = HorizonDbManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + Pool response = manager.pools() + .define("dyg") + .withExistingCluster("fwsrtawcoezbrhu", "skh") + .withTags(mapOf("vyvnqqyb", "zf", "yjkqabqgzslesjcb", "ryeu")) + .withProperties(new PoolProperties() + .withComputeModel(new PoolComputeModel().withType(PoolComputeModelType.PROVISIONED) + .withComputeProcessor(ComputeProcessorType.AMD) + .withComputeGeneration(2146938073) + .withVCores(870237510)) + .withNodeCount(280222728) + .withHighAvailability(new PoolHighAvailability().withMode(PoolHighAvailabilityMode.DISABLED)) + .withParameterGroup(new PoolParameterGroupReference().withParameterGroupResourceId("vleo") + .withApplyMethod(ParameterApplyMethod.PENDING_REBOOT)) + .withScheduledMaintenance(new ScheduledMaintenanceProperties())) + .create(); + + Assertions.assertEquals(PoolComputeModelType.PROVISIONED, response.properties().computeModel().type()); + Assertions.assertEquals(ComputeProcessorType.INTEL, response.properties().computeModel().computeProcessor()); + Assertions.assertEquals(1041320877, response.properties().computeModel().computeGeneration()); + Assertions.assertEquals(1109693907, response.properties().computeModel().vCores()); + Assertions.assertEquals(851546423, response.properties().nodeCount()); + Assertions.assertEquals(PoolHighAvailabilityMode.ZONE_REDUNDANT, + response.properties().highAvailability().mode()); + Assertions.assertEquals("jfutacoebj", response.properties().parameterGroup().parameterGroupResourceId()); + Assertions.assertEquals(ParameterApplyMethod.PENDING_REBOOT, + response.properties().parameterGroup().applyMethod()); + Assertions.assertEquals("wcpmguaadraufac", response.tags().get("kahzo")); + } + + // 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/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolsGetWithResponseMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolsGetWithResponseMockTests.java new file mode 100644 index 0000000000000..0038311c9d65b --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolsGetWithResponseMockTests.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.horizondb.HorizonDbManager; +import com.azure.resourcemanager.horizondb.models.ComputeProcessorType; +import com.azure.resourcemanager.horizondb.models.ParameterApplyMethod; +import com.azure.resourcemanager.horizondb.models.Pool; +import com.azure.resourcemanager.horizondb.models.PoolComputeModelType; +import com.azure.resourcemanager.horizondb.models.PoolHighAvailabilityMode; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class PoolsGetWithResponseMockTests { + @Test + public void testGetWithResponse() throws Exception { + String responseStr + = "{\"properties\":{\"state\":\"Ready\",\"computeModel\":{\"type\":\"Provisioned\",\"computeProcessor\":\"Intel\",\"computeGeneration\":1937777224,\"vCores\":441101019},\"nodeCount\":1249979629,\"highAvailability\":{\"mode\":\"AnyZone\"},\"parameterGroup\":{\"parameterGroupResourceId\":\"pdso\",\"applyMethod\":\"PendingReboot\",\"syncStatus\":\"InSync\"},\"scheduledMaintenance\":{\"maintenanceManagementType\":\"ScheduledMaintenanceProperties\"},\"provisioningState\":\"Succeeded\"},\"tags\":{\"yybyc\":\"uswdv\",\"ikyzirtxdy\":\"unvjsrtkfawnopq\",\"ejnt\":\"x\"},\"id\":\"ewgioilqukrydxt\",\"name\":\"mieoxorgguf\",\"type\":\"yaomtb\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + HorizonDbManager manager = HorizonDbManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + Pool response = manager.pools() + .getWithResponse("gnyhmossxkkg", "h", "rghxjb", com.azure.core.util.Context.NONE) + .getValue(); + + Assertions.assertEquals(PoolComputeModelType.PROVISIONED, response.properties().computeModel().type()); + Assertions.assertEquals(ComputeProcessorType.INTEL, response.properties().computeModel().computeProcessor()); + Assertions.assertEquals(1937777224, response.properties().computeModel().computeGeneration()); + Assertions.assertEquals(441101019, response.properties().computeModel().vCores()); + Assertions.assertEquals(1249979629, response.properties().nodeCount()); + Assertions.assertEquals(PoolHighAvailabilityMode.ANY_ZONE, response.properties().highAvailability().mode()); + Assertions.assertEquals("pdso", response.properties().parameterGroup().parameterGroupResourceId()); + Assertions.assertEquals(ParameterApplyMethod.PENDING_REBOOT, + response.properties().parameterGroup().applyMethod()); + Assertions.assertEquals("uswdv", response.tags().get("yybyc")); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolsListMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolsListMockTests.java new file mode 100644 index 0000000000000..345a9b4c8f3ba --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolsListMockTests.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.http.rest.PagedIterable; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.horizondb.HorizonDbManager; +import com.azure.resourcemanager.horizondb.models.ComputeProcessorType; +import com.azure.resourcemanager.horizondb.models.ParameterApplyMethod; +import com.azure.resourcemanager.horizondb.models.Pool; +import com.azure.resourcemanager.horizondb.models.PoolComputeModelType; +import com.azure.resourcemanager.horizondb.models.PoolHighAvailabilityMode; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class PoolsListMockTests { + @Test + public void testList() throws Exception { + String responseStr + = "{\"value\":[{\"properties\":{\"state\":\"Stopping\",\"computeModel\":{\"type\":\"Provisioned\",\"computeProcessor\":\"AMD\",\"computeGeneration\":1758314943,\"vCores\":504672156},\"nodeCount\":1832898132,\"highAvailability\":{\"mode\":\"ZoneRedundant\"},\"parameterGroup\":{\"parameterGroupResourceId\":\"cluyovwxnbkf\",\"applyMethod\":\"PendingReboot\",\"syncStatus\":\"PendingReboot\"},\"scheduledMaintenance\":{\"maintenanceManagementType\":\"ScheduledMaintenanceProperties\"},\"provisioningState\":\"Failed\"},\"tags\":{\"zbomvzzbtdcqvpni\":\"zdgiruj\",\"n\":\"ujviylwdshfs\",\"rymsgaojfmw\":\"bgye\"},\"id\":\"otmrfhir\",\"name\":\"tymoxoftp\",\"type\":\"piwyczuhxacpqjl\"}]}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + HorizonDbManager manager = HorizonDbManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + PagedIterable response = manager.pools().list("hhavgrvkffovjz", "pjbi", com.azure.core.util.Context.NONE); + + Assertions.assertEquals(PoolComputeModelType.PROVISIONED, + response.iterator().next().properties().computeModel().type()); + Assertions.assertEquals(ComputeProcessorType.AMD, + response.iterator().next().properties().computeModel().computeProcessor()); + Assertions.assertEquals(1758314943, response.iterator().next().properties().computeModel().computeGeneration()); + Assertions.assertEquals(504672156, response.iterator().next().properties().computeModel().vCores()); + Assertions.assertEquals(1832898132, response.iterator().next().properties().nodeCount()); + Assertions.assertEquals(PoolHighAvailabilityMode.ZONE_REDUNDANT, + response.iterator().next().properties().highAvailability().mode()); + Assertions.assertEquals("cluyovwxnbkf", + response.iterator().next().properties().parameterGroup().parameterGroupResourceId()); + Assertions.assertEquals(ParameterApplyMethod.PENDING_REBOOT, + response.iterator().next().properties().parameterGroup().applyMethod()); + Assertions.assertEquals("zdgiruj", response.iterator().next().tags().get("zbomvzzbtdcqvpni")); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolsRestartMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolsRestartMockTests.java new file mode 100644 index 0000000000000..8f056b30507bf --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolsRestartMockTests.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.horizondb.HorizonDbManager; +import com.azure.resourcemanager.horizondb.models.ComputeProcessorType; +import com.azure.resourcemanager.horizondb.models.ParameterApplyMethod; +import com.azure.resourcemanager.horizondb.models.Pool; +import com.azure.resourcemanager.horizondb.models.PoolComputeModelType; +import com.azure.resourcemanager.horizondb.models.PoolHighAvailabilityMode; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class PoolsRestartMockTests { + @Test + public void testRestart() throws Exception { + String responseStr + = "{\"properties\":{\"state\":\"Restarting\",\"computeModel\":{\"type\":\"Provisioned\",\"computeProcessor\":\"Intel\",\"computeGeneration\":136056515,\"vCores\":1790769124},\"nodeCount\":1494813827,\"highAvailability\":{\"mode\":\"ZoneRedundant\"},\"parameterGroup\":{\"parameterGroupResourceId\":\"heyd\",\"applyMethod\":\"PendingReboot\",\"syncStatus\":\"PendingReboot\"},\"scheduledMaintenance\":{\"maintenanceManagementType\":\"ScheduledMaintenanceProperties\"},\"provisioningState\":\"Succeeded\"},\"tags\":{\"ltfnhtbaxkgx\":\"aehvbbxuri\",\"yklyhpluodpvruud\":\"wrck\",\"xeclzedqbcvhzlhp\":\"gzibthostgktstv\"},\"id\":\"dqkdlwwqfbu\",\"name\":\"lkxt\",\"type\":\"qjfsmlmbtxhw\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + HorizonDbManager manager = HorizonDbManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + Pool response = manager.pools().restart("knssxmojm", "vpkjpr", "kwcf", com.azure.core.util.Context.NONE); + + Assertions.assertEquals(PoolComputeModelType.PROVISIONED, response.properties().computeModel().type()); + Assertions.assertEquals(ComputeProcessorType.INTEL, response.properties().computeModel().computeProcessor()); + Assertions.assertEquals(136056515, response.properties().computeModel().computeGeneration()); + Assertions.assertEquals(1790769124, response.properties().computeModel().vCores()); + Assertions.assertEquals(1494813827, response.properties().nodeCount()); + Assertions.assertEquals(PoolHighAvailabilityMode.ZONE_REDUNDANT, + response.properties().highAvailability().mode()); + Assertions.assertEquals("heyd", response.properties().parameterGroup().parameterGroupResourceId()); + Assertions.assertEquals(ParameterApplyMethod.PENDING_REBOOT, + response.properties().parameterGroup().applyMethod()); + Assertions.assertEquals("aehvbbxuri", response.tags().get("ltfnhtbaxkgx")); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolsStartMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolsStartMockTests.java new file mode 100644 index 0000000000000..b325a867508ea --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolsStartMockTests.java @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.horizondb.HorizonDbManager; +import com.azure.resourcemanager.horizondb.models.ComputeProcessorType; +import com.azure.resourcemanager.horizondb.models.ParameterApplyMethod; +import com.azure.resourcemanager.horizondb.models.Pool; +import com.azure.resourcemanager.horizondb.models.PoolComputeModelType; +import com.azure.resourcemanager.horizondb.models.PoolHighAvailabilityMode; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class PoolsStartMockTests { + @Test + public void testStart() throws Exception { + String responseStr + = "{\"properties\":{\"state\":\"Updating\",\"computeModel\":{\"type\":\"Provisioned\",\"computeProcessor\":\"AMD\",\"computeGeneration\":1190049726,\"vCores\":856089944},\"nodeCount\":866301348,\"highAvailability\":{\"mode\":\"Disabled\"},\"parameterGroup\":{\"parameterGroupResourceId\":\"xurisjnhnyt\",\"applyMethod\":\"Immediate\",\"syncStatus\":\"FailedToApply\"},\"scheduledMaintenance\":{\"maintenanceManagementType\":\"ScheduledMaintenanceProperties\"},\"provisioningState\":\"Succeeded\"},\"tags\":{\"upauut\":\"rhublwpcesutrg\",\"qg\":\"woqhihe\",\"foimwkslircizjxv\":\"zpnfqntcypsxj\"},\"id\":\"fceacvlhvygd\",\"name\":\"ftumrtwnawjslbiw\",\"type\":\"ojgcyzt\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + HorizonDbManager manager = HorizonDbManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + Pool response = manager.pools().start("h", "yuspskas", "vlmfwdgzxulucv", com.azure.core.util.Context.NONE); + + Assertions.assertEquals(PoolComputeModelType.PROVISIONED, response.properties().computeModel().type()); + Assertions.assertEquals(ComputeProcessorType.AMD, response.properties().computeModel().computeProcessor()); + Assertions.assertEquals(1190049726, response.properties().computeModel().computeGeneration()); + Assertions.assertEquals(856089944, response.properties().computeModel().vCores()); + Assertions.assertEquals(866301348, response.properties().nodeCount()); + Assertions.assertEquals(PoolHighAvailabilityMode.DISABLED, response.properties().highAvailability().mode()); + Assertions.assertEquals("xurisjnhnyt", response.properties().parameterGroup().parameterGroupResourceId()); + Assertions.assertEquals(ParameterApplyMethod.IMMEDIATE, response.properties().parameterGroup().applyMethod()); + Assertions.assertEquals("rhublwpcesutrg", response.tags().get("upauut")); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolsStopMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolsStopMockTests.java new file mode 100644 index 0000000000000..435b5f9509830 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PoolsStopMockTests.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.horizondb.HorizonDbManager; +import com.azure.resourcemanager.horizondb.models.ComputeProcessorType; +import com.azure.resourcemanager.horizondb.models.ParameterApplyMethod; +import com.azure.resourcemanager.horizondb.models.Pool; +import com.azure.resourcemanager.horizondb.models.PoolComputeModelType; +import com.azure.resourcemanager.horizondb.models.PoolHighAvailabilityMode; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class PoolsStopMockTests { + @Test + public void testStop() throws Exception { + String responseStr + = "{\"properties\":{\"state\":\"Provisioning\",\"computeModel\":{\"type\":\"Provisioned\",\"computeProcessor\":\"AMD\",\"computeGeneration\":2009278020,\"vCores\":172604162},\"nodeCount\":741141390,\"highAvailability\":{\"mode\":\"ZoneRedundant\"},\"parameterGroup\":{\"parameterGroupResourceId\":\"dznx\",\"applyMethod\":\"PendingReboot\",\"syncStatus\":\"InSync\"},\"scheduledMaintenance\":{\"maintenanceManagementType\":\"ScheduledMaintenanceProperties\"},\"provisioningState\":\"Succeeded\"},\"tags\":{\"v\":\"volvtn\"},\"id\":\"zgemjdftuljlt\",\"name\":\"ucea\",\"type\":\"tmczuomejwcwwqi\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + HorizonDbManager manager = HorizonDbManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + Pool response + = manager.pools().stop("fmznba", "qphchqnrnrpxehuw", "ykqgaifmvik", com.azure.core.util.Context.NONE); + + Assertions.assertEquals(PoolComputeModelType.PROVISIONED, response.properties().computeModel().type()); + Assertions.assertEquals(ComputeProcessorType.AMD, response.properties().computeModel().computeProcessor()); + Assertions.assertEquals(2009278020, response.properties().computeModel().computeGeneration()); + Assertions.assertEquals(172604162, response.properties().computeModel().vCores()); + Assertions.assertEquals(741141390, response.properties().nodeCount()); + Assertions.assertEquals(PoolHighAvailabilityMode.ZONE_REDUNDANT, + response.properties().highAvailability().mode()); + Assertions.assertEquals("dznx", response.properties().parameterGroup().parameterGroupResourceId()); + Assertions.assertEquals(ParameterApplyMethod.PENDING_REBOOT, + response.properties().parameterGroup().applyMethod()); + Assertions.assertEquals("volvtn", response.tags().get("v")); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PostgreSqlVersionCapabilityTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PostgreSqlVersionCapabilityTests.java new file mode 100644 index 0000000000000..eb4b55eab6f42 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PostgreSqlVersionCapabilityTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.PostgreSqlVersionCapability; + +public final class PostgreSqlVersionCapabilityTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + PostgreSqlVersionCapability model + = BinaryData.fromString("{\"name\":\"17\",\"supportedVersionsToUpgrade\":[\"18\"]}") + .toObject(PostgreSqlVersionCapability.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointConnectionPropertiesTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointConnectionPropertiesTests.java index 6c834450f3f0f..0dd8c206d4fc7 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointConnectionPropertiesTests.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointConnectionPropertiesTests.java @@ -15,12 +15,12 @@ public final class PrivateEndpointConnectionPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateEndpointConnectionProperties model = BinaryData.fromString( - "{\"groupIds\":[\"l\",\"kudjkrlkhb\",\"hfepgzgqex\"],\"privateEndpoint\":{\"id\":\"c\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"aierhhb\",\"actionsRequired\":\"glu\"},\"provisioningState\":\"Succeeded\"}") + "{\"groupIds\":[\"kacspkw\",\"hzdobpxjmflbvvnc\"],\"privateEndpoint\":{\"id\":\"cciw\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"qkhr\",\"actionsRequired\":\"jiwkuofoskghsau\"},\"provisioningState\":\"Failed\"}") .toObject(PrivateEndpointConnectionProperties.class); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED, + Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("aierhhb", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("glu", model.privateLinkServiceConnectionState().actionsRequired()); + Assertions.assertEquals("qkhr", model.privateLinkServiceConnectionState().description()); + Assertions.assertEquals("jiwkuofoskghsau", model.privateLinkServiceConnectionState().actionsRequired()); } @org.junit.jupiter.api.Test @@ -28,13 +28,13 @@ public void testSerialize() throws Exception { PrivateEndpointConnectionProperties model = new PrivateEndpointConnectionProperties().withPrivateEndpoint(new PrivateEndpoint()) .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointServiceConnectionStatus.REJECTED) - .withDescription("aierhhb") - .withActionsRequired("glu")); + new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointServiceConnectionStatus.PENDING) + .withDescription("qkhr") + .withActionsRequired("jiwkuofoskghsau")); model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionProperties.class); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED, + Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("aierhhb", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("glu", model.privateLinkServiceConnectionState().actionsRequired()); + Assertions.assertEquals("qkhr", model.privateLinkServiceConnectionState().description()); + Assertions.assertEquals("jiwkuofoskghsau", model.privateLinkServiceConnectionState().actionsRequired()); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointConnectionResourceInnerTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointConnectionResourceInnerTests.java index 37276ed218614..97051a5576ee7 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointConnectionResourceInnerTests.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointConnectionResourceInnerTests.java @@ -16,12 +16,12 @@ public final class PrivateEndpointConnectionResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateEndpointConnectionResourceInner model = BinaryData.fromString( - "{\"properties\":{\"groupIds\":[\"yip\"],\"privateEndpoint\":{\"id\":\"qwpgrjbzn\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"xv\",\"actionsRequired\":\"byxqabn\"},\"provisioningState\":\"Succeeded\"},\"id\":\"cyshurzafbljjgp\",\"name\":\"toqcjmklja\",\"type\":\"bqidtqaj\"}") + "{\"properties\":{\"groupIds\":[\"exim\",\"ryocfsfksymdd\",\"stkiiuxhqyud\"],\"privateEndpoint\":{\"id\":\"rq\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"czvyifq\",\"actionsRequired\":\"kdvjsll\"},\"provisioningState\":\"Failed\"},\"id\":\"d\",\"name\":\"watkpnpulexxb\",\"type\":\"zwtruwiqzbqjvsov\"}") .toObject(PrivateEndpointConnectionResourceInner.class); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED, + Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, model.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("xv", model.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("byxqabn", model.properties().privateLinkServiceConnectionState().actionsRequired()); + Assertions.assertEquals("czvyifq", model.properties().privateLinkServiceConnectionState().description()); + Assertions.assertEquals("kdvjsll", model.properties().privateLinkServiceConnectionState().actionsRequired()); } @org.junit.jupiter.api.Test @@ -30,13 +30,13 @@ public void testSerialize() throws Exception { = new PrivateEndpointConnectionResourceInner() .withProperties(new PrivateEndpointConnectionProperties().withPrivateEndpoint(new PrivateEndpoint()) .withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState() - .withStatus(PrivateEndpointServiceConnectionStatus.REJECTED) - .withDescription("xv") - .withActionsRequired("byxqabn"))); + .withStatus(PrivateEndpointServiceConnectionStatus.PENDING) + .withDescription("czvyifq") + .withActionsRequired("kdvjsll"))); model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionResourceInner.class); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED, + Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, model.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("xv", model.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("byxqabn", model.properties().privateLinkServiceConnectionState().actionsRequired()); + Assertions.assertEquals("czvyifq", model.properties().privateLinkServiceConnectionState().description()); + Assertions.assertEquals("kdvjsll", model.properties().privateLinkServiceConnectionState().actionsRequired()); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointConnectionResourceListResultTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointConnectionResourceListResultTests.java index fd7bad93b39b8..192b52e61b671 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointConnectionResourceListResultTests.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointConnectionResourceListResultTests.java @@ -13,14 +13,14 @@ public final class PrivateEndpointConnectionResourceListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateEndpointConnectionResourceListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"groupIds\":[\"cp\"],\"privateEndpoint\":{\"id\":\"maajrmvdjwzrlo\"},\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"whijcoejctbza\",\"actionsRequired\":\"qsycbkbfkgu\"},\"provisioningState\":\"Creating\"},\"id\":\"xxppofm\",\"name\":\"axcfjpgddtocjjx\",\"type\":\"vpmouexhdzxib\"},{\"properties\":{\"groupIds\":[\"nxqbzvddn\",\"wndeicbtwnp\",\"aoqvuh\",\"hcffcyddglmjthjq\"],\"privateEndpoint\":{\"id\":\"yeicxmqciwqvhk\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"igdtopbob\",\"actionsRequired\":\"ghmewuam\"},\"provisioningState\":\"Failed\"},\"id\":\"z\",\"name\":\"yvvtpgvdfgio\",\"type\":\"kftutqxlngxlefg\"}],\"nextLink\":\"nxkrx\"}") + "{\"value\":[{\"properties\":{\"groupIds\":[\"onpc\",\"hocohslkev\",\"eggzfb\"],\"privateEndpoint\":{\"id\":\"mvfaxkffeiith\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"zy\",\"actionsRequired\":\"hxmzsbbzoggig\"},\"provisioningState\":\"Failed\"},\"id\":\"ur\",\"name\":\"jx\",\"type\":\"jnspydp\"}],\"nextLink\":\"oenkouknvudwti\"}") .toObject(PrivateEndpointConnectionResourceListResult.class); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED, + Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED, model.value().get(0).properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("whijcoejctbza", + Assertions.assertEquals("zy", model.value().get(0).properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("qsycbkbfkgu", + Assertions.assertEquals("hxmzsbbzoggig", model.value().get(0).properties().privateLinkServiceConnectionState().actionsRequired()); - Assertions.assertEquals("nxkrx", model.nextLink()); + Assertions.assertEquals("oenkouknvudwti", model.nextLink()); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateEndpointConnectionsUpdateStatusWithResponseMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointConnectionsApproveOrRejectMockTests.java similarity index 54% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateEndpointConnectionsUpdateStatusWithResponseMockTests.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointConnectionsApproveOrRejectMockTests.java index 82dc48c816196..20c2a344e6b3a 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateEndpointConnectionsUpdateStatusWithResponseMockTests.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointConnectionsApproveOrRejectMockTests.java @@ -10,7 +10,6 @@ import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.horizondb.HorizonDbManager; -import com.azure.resourcemanager.horizondb.fluent.models.PrivateEndpointConnectionResourceInner; import com.azure.resourcemanager.horizondb.models.PrivateEndpoint; import com.azure.resourcemanager.horizondb.models.PrivateEndpointConnectionProperties; import com.azure.resourcemanager.horizondb.models.PrivateEndpointConnectionResource; @@ -22,11 +21,11 @@ import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; -public final class HorizonDbPrivateEndpointConnectionsUpdateStatusWithResponseMockTests { +public final class PrivateEndpointConnectionsApproveOrRejectMockTests { @Test - public void testUpdateStatusWithResponse() throws Exception { + public void testApproveOrReject() throws Exception { String responseStr - = "{\"properties\":{\"groupIds\":[\"wnwxuqlcvyd\",\"patdooaojkniodko\",\"ebwnujhe\",\"msbvdkcrodtjinf\"],\"privateEndpoint\":{\"id\":\"fltkacjv\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"lfoakg\",\"actionsRequired\":\"fpagaowpulp\"},\"provisioningState\":\"Succeeded\"},\"id\":\"lsyxkqjnsjervt\",\"name\":\"agxsdszuemps\",\"type\":\"zkfzbeyv\"}"; + = "{\"properties\":{\"groupIds\":[\"i\",\"pfhoqcaaewdao\"],\"privateEndpoint\":{\"id\":\"vlp\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"zb\",\"actionsRequired\":\"sgeivsiy\"},\"provisioningState\":\"Succeeded\"},\"id\":\"ncj\",\"name\":\"xonbzoggculapz\",\"type\":\"y\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,21 +34,21 @@ public void testUpdateStatusWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PrivateEndpointConnectionResource response = manager.horizonDbPrivateEndpointConnections() - .updateStatusWithResponse("ayffim", "zrtuzq", "gsexne", - new PrivateEndpointConnectionResourceInner() - .withProperties(new PrivateEndpointConnectionProperties().withPrivateEndpoint(new PrivateEndpoint()) - .withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState() - .withStatus(PrivateEndpointServiceConnectionStatus.REJECTED) - .withDescription("qbrqubpaxhexiili") - .withActionsRequired("dtiirqt"))), - com.azure.core.util.Context.NONE) - .getValue(); + PrivateEndpointConnectionResource response + = manager.privateEndpointConnections() + .define("nobaiyhddviacegf") + .withExistingCluster("stcyohpfkyrkdbd", "iogsjkmnwq") + .withProperties(new PrivateEndpointConnectionProperties().withPrivateEndpoint(new PrivateEndpoint()) + .withPrivateLinkServiceConnectionState(new PrivateLinkServiceConnectionState() + .withStatus(PrivateEndpointServiceConnectionStatus.PENDING) + .withDescription("wsmystuluqypf") + .withActionsRequired("lerchpq"))) + .create(); Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED, response.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("lfoakg", response.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("fpagaowpulp", + Assertions.assertEquals("zb", response.properties().privateLinkServiceConnectionState().description()); + Assertions.assertEquals("sgeivsiy", response.properties().privateLinkServiceConnectionState().actionsRequired()); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateEndpointConnectionsGetWithResponseMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java similarity index 64% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateEndpointConnectionsGetWithResponseMockTests.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java index 81ee037cb1a6b..2d6bfcf8ed0a3 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateEndpointConnectionsGetWithResponseMockTests.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java @@ -18,11 +18,11 @@ import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; -public final class HorizonDbPrivateEndpointConnectionsGetWithResponseMockTests { +public final class PrivateEndpointConnectionsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"groupIds\":[\"pjrvxagl\"],\"privateEndpoint\":{\"id\":\"mjwosytx\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"kfcktqum\",\"actionsRequired\":\"kkezzikhlyfjhdgq\"},\"provisioningState\":\"Creating\"},\"id\":\"dunyg\",\"name\":\"eqidbqfatpx\",\"type\":\"lr\"}"; + = "{\"properties\":{\"groupIds\":[\"x\"],\"privateEndpoint\":{\"id\":\"xrxc\"},\"privateLinkServiceConnectionState\":{\"status\":\"Pending\",\"description\":\"savokqdzf\",\"actionsRequired\":\"zivj\"},\"provisioningState\":\"Failed\"},\"id\":\"ttbaj\",\"name\":\"katnwxyi\",\"type\":\"pidkqqfkuvscxkdm\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,14 +31,13 @@ public void testGetWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PrivateEndpointConnectionResource response = manager.horizonDbPrivateEndpointConnections() - .getWithResponse("elpcirelsfeaenwa", "fatkld", "xbjhwuaanozjosph", com.azure.core.util.Context.NONE) + PrivateEndpointConnectionResource response = manager.privateEndpointConnections() + .getWithResponse("bdyhgkfminsgowz", "ttsttktlahbqact", "tgzukxitmmqt", com.azure.core.util.Context.NONE) .getValue(); Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, response.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("kfcktqum", response.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("kkezzikhlyfjhdgq", - response.properties().privateLinkServiceConnectionState().actionsRequired()); + Assertions.assertEquals("savokqdzf", response.properties().privateLinkServiceConnectionState().description()); + Assertions.assertEquals("zivj", response.properties().privateLinkServiceConnectionState().actionsRequired()); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateEndpointConnectionsListMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointConnectionsListMockTests.java similarity index 74% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateEndpointConnectionsListMockTests.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointConnectionsListMockTests.java index 5742323033f7c..3b880b7590fe3 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateEndpointConnectionsListMockTests.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointConnectionsListMockTests.java @@ -19,11 +19,11 @@ import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; -public final class HorizonDbPrivateEndpointConnectionsListMockTests { +public final class PrivateEndpointConnectionsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"groupIds\":[\"x\",\"rw\",\"yc\"],\"privateEndpoint\":{\"id\":\"hp\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"ymareqnajxqugj\",\"actionsRequired\":\"ycubeddgs\"},\"provisioningState\":\"Deleting\"},\"id\":\"qmzqalkrmnjijpx\",\"name\":\"cqqudf\",\"type\":\"byxbaaabjy\"}]}"; + = "{\"value\":[{\"properties\":{\"groupIds\":[\"rb\",\"eoybfhjxakvvjgs\"],\"privateEndpoint\":{\"id\":\"dilmyww\"},\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"xnyed\",\"actionsRequired\":\"gyvudtjuewbc\"},\"provisioningState\":\"Creating\"},\"id\":\"uwhcjyxccybv\",\"name\":\"ayakkudzpx\",\"type\":\"wjplma\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,14 +32,14 @@ public void testList() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response = manager.horizonDbPrivateEndpointConnections() - .list("cyjmoadsuvarmy", "dmjsjqb", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.privateEndpointConnections().list("igovi", "rxkpmloazuruoc", com.azure.core.util.Context.NONE); Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.APPROVED, response.iterator().next().properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("ymareqnajxqugj", + Assertions.assertEquals("xnyed", response.iterator().next().properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("ycubeddgs", + Assertions.assertEquals("gyvudtjuewbc", response.iterator().next().properties().privateLinkServiceConnectionState().actionsRequired()); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointTests.java index 06e68d4df417f..552504af11693 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointTests.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateEndpointTests.java @@ -10,7 +10,7 @@ public final class PrivateEndpointTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - PrivateEndpoint model = BinaryData.fromString("{\"id\":\"tjaodxobnb\"}").toObject(PrivateEndpoint.class); + PrivateEndpoint model = BinaryData.fromString("{\"id\":\"mvxi\"}").toObject(PrivateEndpoint.class); } @org.junit.jupiter.api.Test diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateLinkResourceInnerTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateLinkResourceInnerTests.java new file mode 100644 index 0000000000000..a9d45fb84c5e6 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateLinkResourceInnerTests.java @@ -0,0 +1,19 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.fluent.models.PrivateLinkResourceInner; +import org.junit.jupiter.api.Assertions; + +public final class PrivateLinkResourceInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + PrivateLinkResourceInner model = BinaryData.fromString( + "{\"properties\":{\"groupId\":\"ldngkpoci\",\"requiredMembers\":[\"yxoegukgjnp\"],\"requiredZoneNames\":[\"gygev\",\"zntypmrb\"]},\"id\":\"zcdrqjsdpydnfyhx\",\"name\":\"eoejzic\",\"type\":\"ifsjttgzfbishcb\"}") + .toObject(PrivateLinkResourceInner.class); + Assertions.assertEquals("gygev", model.properties().requiredZoneNames().get(0)); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateLinkResourceListResultTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateLinkResourceListResultTests.java new file mode 100644 index 0000000000000..b16902663359a --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateLinkResourceListResultTests.java @@ -0,0 +1,20 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.implementation.models.PrivateLinkResourceListResult; +import org.junit.jupiter.api.Assertions; + +public final class PrivateLinkResourceListResultTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + PrivateLinkResourceListResult model = BinaryData.fromString( + "{\"value\":[{\"properties\":{\"groupId\":\"icohoqqnwvl\",\"requiredMembers\":[\"vwhheunmmqhgyx\",\"konocu\",\"oklyaxuconuq\"],\"requiredZoneNames\":[\"kbeype\",\"rmjmwvvjektc\"]},\"id\":\"enhwlrs\",\"name\":\"frzpwvlqdqgb\",\"type\":\"qylihkaetckt\"},{\"properties\":{\"groupId\":\"ivfsnk\",\"requiredMembers\":[\"ctq\",\"jf\",\"ebrjcxe\"],\"requiredZoneNames\":[\"wutttxfvjrbi\",\"phxepcyvahf\",\"ljkyqxjvuuj\",\"gidokgjljyoxgvcl\"]},\"id\":\"gsncghkjeszz\",\"name\":\"bijhtxfvgxbf\",\"type\":\"mxnehmp\"}],\"nextLink\":\"cxgod\"}") + .toObject(PrivateLinkResourceListResult.class); + Assertions.assertEquals("kbeype", model.value().get(0).properties().requiredZoneNames().get(0)); + Assertions.assertEquals("cxgod", model.nextLink()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateLinkResourcePropertiesTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateLinkResourcePropertiesTests.java index 4e58925fbb39d..634f3ae3c1072 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateLinkResourcePropertiesTests.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateLinkResourcePropertiesTests.java @@ -12,8 +12,8 @@ public final class PrivateLinkResourcePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateLinkResourceProperties model = BinaryData.fromString( - "{\"groupId\":\"cpecfvmmcoofs\",\"requiredMembers\":[\"evgbmqjq\",\"bcypmi\"],\"requiredZoneNames\":[\"lzu\"]}") + "{\"groupId\":\"ajdeyeamdphaga\",\"requiredMembers\":[\"uxwgipwho\",\"ow\"],\"requiredZoneNames\":[\"hwankixzbinjepu\",\"tmryw\",\"uzoqft\",\"yqzrnkcqvyxlw\"]}") .toObject(PrivateLinkResourceProperties.class); - Assertions.assertEquals("lzu", model.requiredZoneNames().get(0)); + Assertions.assertEquals("hwankixzbinjepu", model.requiredZoneNames().get(0)); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateLinkResourcesGetWithResponseMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateLinkResourcesGetWithResponseMockTests.java new file mode 100644 index 0000000000000..fde08697ea166 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateLinkResourcesGetWithResponseMockTests.java @@ -0,0 +1,39 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.horizondb.HorizonDbManager; +import com.azure.resourcemanager.horizondb.models.PrivateLinkResource; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class PrivateLinkResourcesGetWithResponseMockTests { + @Test + public void testGetWithResponse() throws Exception { + String responseStr + = "{\"properties\":{\"groupId\":\"of\",\"requiredMembers\":[\"vfcibyfmowux\",\"kjpvdwxf\",\"wiivwzjbhyzsx\"],\"requiredZoneNames\":[\"ambtrnegvm\",\"vuqeqvldspast\",\"bkkd\",\"flvestmjlxrrilo\"]},\"id\":\"peewchpxlkt\",\"name\":\"kuziycsle\",\"type\":\"ufuztcktyhjtq\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + HorizonDbManager manager = HorizonDbManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + PrivateLinkResource response = manager.privateLinkResources() + .getWithResponse("pgogtqxepny", "b", "uajlyj", com.azure.core.util.Context.NONE) + .getValue(); + + Assertions.assertEquals("ambtrnegvm", response.properties().requiredZoneNames().get(0)); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateLinkResourcesListMockTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateLinkResourcesListMockTests.java similarity index 65% rename from sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateLinkResourcesListMockTests.java rename to sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateLinkResourcesListMockTests.java index 1d95bfc4deb5e..4ee53f36043f1 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/HorizonDbPrivateLinkResourcesListMockTests.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateLinkResourcesListMockTests.java @@ -11,18 +11,18 @@ import com.azure.core.models.AzureCloud; import com.azure.core.test.http.MockHttpResponse; import com.azure.resourcemanager.horizondb.HorizonDbManager; -import com.azure.resourcemanager.horizondb.models.HorizonDbPrivateLinkResource; +import com.azure.resourcemanager.horizondb.models.PrivateLinkResource; import java.nio.charset.StandardCharsets; import java.time.OffsetDateTime; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; import reactor.core.publisher.Mono; -public final class HorizonDbPrivateLinkResourcesListMockTests { +public final class PrivateLinkResourcesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"groupId\":\"lxqtvcofudfl\",\"requiredMembers\":[\"jub\"],\"requiredZoneNames\":[\"nnqvsa\",\"nqntorudsgsahm\",\"yc\"]},\"id\":\"auwjuetaebu\",\"name\":\"u\",\"type\":\"dmovsm\"}]}"; + = "{\"value\":[{\"properties\":{\"groupId\":\"jvpglydzgk\",\"requiredMembers\":[\"eevt\",\"epr\"],\"requiredZoneNames\":[\"nwy\"]},\"id\":\"zdmovzv\",\"name\":\"va\",\"type\":\"wzqa\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,9 +31,9 @@ public void testList() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response - = manager.horizonDbPrivateLinkResources().list("nvxbvt", "udutnco", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.privateLinkResources().list("dcgzul", "mmrqz", com.azure.core.util.Context.NONE); - Assertions.assertEquals("nnqvsa", response.iterator().next().properties().requiredZoneNames().get(0)); + Assertions.assertEquals("nwy", response.iterator().next().properties().requiredZoneNames().get(0)); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateLinkServiceConnectionStateTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateLinkServiceConnectionStateTests.java index c54547b206293..87966a7422e6c 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateLinkServiceConnectionStateTests.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/PrivateLinkServiceConnectionStateTests.java @@ -13,22 +13,22 @@ public final class PrivateLinkServiceConnectionStateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateLinkServiceConnectionState model = BinaryData - .fromString("{\"status\":\"Pending\",\"description\":\"pxokajionp\",\"actionsRequired\":\"ex\"}") + .fromString("{\"status\":\"Rejected\",\"description\":\"gidyjrrf\",\"actionsRequired\":\"aos\"}") .toObject(PrivateLinkServiceConnectionState.class); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, model.status()); - Assertions.assertEquals("pxokajionp", model.description()); - Assertions.assertEquals("ex", model.actionsRequired()); + Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED, model.status()); + Assertions.assertEquals("gidyjrrf", model.description()); + Assertions.assertEquals("aos", model.actionsRequired()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { PrivateLinkServiceConnectionState model - = new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointServiceConnectionStatus.PENDING) - .withDescription("pxokajionp") - .withActionsRequired("ex"); + = new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointServiceConnectionStatus.REJECTED) + .withDescription("gidyjrrf") + .withActionsRequired("aos"); model = BinaryData.fromObject(model).toObject(PrivateLinkServiceConnectionState.class); - Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.PENDING, model.status()); - Assertions.assertEquals("pxokajionp", model.description()); - Assertions.assertEquals("ex", model.actionsRequired()); + Assertions.assertEquals(PrivateEndpointServiceConnectionStatus.REJECTED, model.status()); + Assertions.assertEquals("gidyjrrf", model.description()); + Assertions.assertEquals("aos", model.actionsRequired()); } } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ProvisionedComputeModelCapabilityTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ProvisionedComputeModelCapabilityTests.java new file mode 100644 index 0000000000000..cd2cd6c7e1efe --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ProvisionedComputeModelCapabilityTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.ProvisionedComputeModelCapability; + +public final class ProvisionedComputeModelCapabilityTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ProvisionedComputeModelCapability model = BinaryData.fromString( + "{\"type\":\"Provisioned\",\"recommendedVCoreCount\":962942512,\"supportedComputeSizes\":[{\"vCores\":1094512246,\"memoryPerVCoreInMb\":7486974753555951605},{\"vCores\":375105800,\"memoryPerVCoreInMb\":3819884003908031717},{\"vCores\":1602539584,\"memoryPerVCoreInMb\":93373909409037668}]}") + .toObject(ProvisionedComputeModelCapability.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ReadWritePoolPropertiesTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ReadWritePoolPropertiesTests.java new file mode 100644 index 0000000000000..9f0055e02f3f1 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ReadWritePoolPropertiesTests.java @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.ReadWritePoolProperties; + +public final class ReadWritePoolPropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ReadWritePoolProperties model = BinaryData.fromString("{\"designatedPoolResourceId\":\"yqkgfg\"}") + .toObject(ReadWritePoolProperties.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ScheduledMaintenancePropertiesForPatchUpdateTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ScheduledMaintenancePropertiesForPatchUpdateTests.java new file mode 100644 index 0000000000000..151cc28b6df7a --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ScheduledMaintenancePropertiesForPatchUpdateTests.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.ScheduledMaintenanceManagementType; +import com.azure.resourcemanager.horizondb.models.ScheduledMaintenancePropertiesForPatchUpdate; +import org.junit.jupiter.api.Assertions; + +public final class ScheduledMaintenancePropertiesForPatchUpdateTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ScheduledMaintenancePropertiesForPatchUpdate model + = BinaryData.fromString("{\"maintenanceManagementType\":\"System\"}") + .toObject(ScheduledMaintenancePropertiesForPatchUpdate.class); + Assertions.assertEquals(ScheduledMaintenanceManagementType.SYSTEM, model.maintenanceManagementType()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ScheduledMaintenancePropertiesForPatchUpdate model = new ScheduledMaintenancePropertiesForPatchUpdate() + .withMaintenanceManagementType(ScheduledMaintenanceManagementType.SYSTEM); + model = BinaryData.fromObject(model).toObject(ScheduledMaintenancePropertiesForPatchUpdate.class); + Assertions.assertEquals(ScheduledMaintenanceManagementType.SYSTEM, model.maintenanceManagementType()); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ScheduledMaintenancePropertiesTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ScheduledMaintenancePropertiesTests.java new file mode 100644 index 0000000000000..4122cc2ef3af5 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/ScheduledMaintenancePropertiesTests.java @@ -0,0 +1,23 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.ScheduledMaintenanceProperties; + +public final class ScheduledMaintenancePropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ScheduledMaintenanceProperties model + = BinaryData.fromString("{\"maintenanceManagementType\":\"ScheduledMaintenanceProperties\"}") + .toObject(ScheduledMaintenanceProperties.class); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ScheduledMaintenanceProperties model = new ScheduledMaintenanceProperties(); + model = BinaryData.fromObject(model).toObject(ScheduledMaintenanceProperties.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/SystemScheduledMaintenancePropertiesTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/SystemScheduledMaintenancePropertiesTests.java new file mode 100644 index 0000000000000..ba2838311a720 --- /dev/null +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/SystemScheduledMaintenancePropertiesTests.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.horizondb.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.horizondb.models.SystemScheduledMaintenanceProperties; + +public final class SystemScheduledMaintenancePropertiesTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + SystemScheduledMaintenanceProperties model = BinaryData.fromString("{\"maintenanceManagementType\":\"System\"}") + .toObject(SystemScheduledMaintenanceProperties.class); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + SystemScheduledMaintenanceProperties model = new SystemScheduledMaintenanceProperties(); + model = BinaryData.fromObject(model).toObject(SystemScheduledMaintenanceProperties.class); + } +} diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/UserAssignedIdentityTests.java b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/UserAssignedIdentityTests.java index dd4cd05e2e141..226f82dfa56b0 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/UserAssignedIdentityTests.java +++ b/sdk/horizondb/azure-resourcemanager-horizondb/src/test/java/com/azure/resourcemanager/horizondb/generated/UserAssignedIdentityTests.java @@ -10,7 +10,7 @@ public final class UserAssignedIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - UserAssignedIdentity model = BinaryData.fromString("{\"principalId\":\"yoqpsoaccta\",\"clientId\":\"kljla\"}") + UserAssignedIdentity model = BinaryData.fromString("{\"principalId\":\"jgzjaoyfhrtx\",\"clientId\":\"n\"}") .toObject(UserAssignedIdentity.class); } diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/tsp-location.yaml b/sdk/horizondb/azure-resourcemanager-horizondb/tsp-location.yaml index 99a86da7b0958..e206c7aa48829 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/tsp-location.yaml +++ b/sdk/horizondb/azure-resourcemanager-horizondb/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/horizondb/resource-manager/Microsoft.HorizonDb/HorizonDb -commit: f868cf045de6223d605ed9b7bf2a9ce2947c808f +commit: 90e63e5fe2c596e8bd807aad7dd9d62cee1746dd repo: Azure/azure-rest-api-specs additionalDirectories: From 6009424abb367a96d0770207adcdbaea8008b51f Mon Sep 17 00:00:00 2001 From: Josiah Vinson <88204686+jovinson-ms@users.noreply.github.com> Date: Wed, 21 Oct 2026 12:32:54 -0500 Subject: [PATCH 08/22] [healthdataaiservices] Bounded storage readiness retry in test-resources-post.ps1 (#50890) * [healthdataaiservices] Replace fixed sleep with bounded storage readiness retry in test-resources-post.ps1 - Retry container access and each blob upload with exponential backoff (5s->30s, 300s cap) instead of a fixed 30s sleep; fail with a clear propagation error on timeout. - Resolve the test data folder from $PSScriptRoot and upload files only. - test-resources.bicep: use supported DeID API version 2024-09-20 and set principalType: ServicePrincipal on the managed-identity storage role assignment to avoid PrincipalNotFound replication races. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 96e15f49-de4e-4065-b196-3029640dc21b * [healthdataaiservices] Keep 30s minimum propagation window for DeID managed identity Storage retries only observe the connected account's access, not the DeID service identity's, so preserve the previous 30s window (measured from the network rule update, upload time included) before tests start. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 96e15f49-de4e-4065-b196-3029640dc21b --------- Co-authored-by: Josiah Vinson Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 96e15f49-de4e-4065-b196-3029640dc21b --- .../test-resources-post.ps1 | 88 +++++++++++++++---- sdk/healthdataaiservices/test-resources.bicep | 4 +- 2 files changed, 74 insertions(+), 18 deletions(-) diff --git a/sdk/healthdataaiservices/test-resources-post.ps1 b/sdk/healthdataaiservices/test-resources-post.ps1 index 2c8db659640df..c7599a31c0098 100644 --- a/sdk/healthdataaiservices/test-resources-post.ps1 +++ b/sdk/healthdataaiservices/test-resources-post.ps1 @@ -1,11 +1,10 @@ # Copyright (c) Microsoft Corporation. All rights reserved. # Licensed under the MIT License. -# This script is used to set up SIP Configuration domains for Azure Communication Services SIP Routing SDK GA tests +# This script uploads test data to the storage container used by the Health Deidentification live tests. -# It is invoked by the https://github.com/Azure/azure-sdk-for-net/blob/main/eng/New-TestResources.ps1 -# script after the ARM template, defined in https://github.com/Azure/azure-sdk-for-net/blob/main/sdk/storage/test-resources.json, -# is finished being deployed. The ARM template is responsible for creating the Storage accounts needed for live tests. +# It is invoked by eng/common/TestResources/New-TestResources.ps1 after test-resources.bicep is deployed. +# The template creates the storage account, container, DeID service, and role assignments needed for live tests. param ( [hashtable] $DeploymentOutputs, @@ -21,8 +20,16 @@ $storageAccountName = $DeploymentOutputs['HEALTHDATAAISERVICES_STORAGE_ACCOUNT_N $containerName = $DeploymentOutputs['HEALTHDATAAISERVICES_STORAGE_CONTAINER_NAME'] $testMode = "live" -# Set the local folder path to upload -$localFolderPath = "src\test\resources\data" +# Resolve the test data folder relative to this script so it works from any working directory +$localFolderPath = Join-Path $PSScriptRoot "azure-health-deidentification\src\test\resources\data" + +# Upper bound on how long to wait for storage RBAC / network ACL changes to propagate +$storageReadinessTimeoutSeconds = 300 + +# Minimum time after the network rule update before tests may start. The retries below only prove the +# connected account's access; the DeID managed identity's access can't be observed here, so keep at +# least the previous fixed propagation window for it. +$deidIdentityMinimumWaitSeconds = 30 # Check if the connection string is present if ([string]::IsNullOrWhiteSpace($storageAccountName)) { @@ -30,6 +37,40 @@ if ([string]::IsNullOrWhiteSpace($storageAccountName)) { exit 1 } +# Retries $Action with exponential backoff until it succeeds or $TimeoutSeconds elapses. +# Role assignments and network rule changes made during deployment can take minutes to +# propagate, so early data-plane calls may fail with 403 AuthorizationFailure. +function Invoke-WithRetry { + param ( + [Parameter(Mandatory)] [scriptblock] $Action, + [Parameter(Mandatory)] [string] $Description, + [int] $TimeoutSeconds = $storageReadinessTimeoutSeconds, + [int] $InitialDelaySeconds = 5, + [int] $MaxDelaySeconds = 30 + ) + + $stopwatch = [System.Diagnostics.Stopwatch]::StartNew() + $delay = $InitialDelaySeconds + $attempt = 0 + while ($true) { + $attempt++ + try { + return & $Action + } catch { + $elapsed = [int]$stopwatch.Elapsed.TotalSeconds + if ($elapsed + $delay -gt $TimeoutSeconds) { + $message = "Timed out after $elapsed seconds and $attempt attempt(s) waiting to $Description. " + + "Storage role assignments or network rules may not have propagated. Last error: $($_.Exception.Message)" + throw $message + } + Write-Host "Attempt $attempt to $Description failed: $($_.Exception.Message)" + Write-Host "Retrying in $delay seconds (elapsed: $elapsed of $TimeoutSeconds seconds)." + Start-Sleep -Seconds $delay + $delay = [Math]::Min($delay * 2, $MaxDelaySeconds) + } + } +} + # Load the Azure Storage module Import-Module Az.Storage @@ -40,28 +81,41 @@ $storageContext = New-AzStorageContext -StorageAccountName $storageAccountName - $networkRuleSet = New-Object -TypeName Microsoft.Azure.Commands.Management.Storage.Models.PSNetworkRuleSet $networkRuleSet.DefaultAction = "Allow" Set-AzStorageAccount -ResourceGroupName $resourceGroup -Name $storageAccountName -NetworkRuleSet $networkRuleSet +$propagationStopwatch = [System.Diagnostics.Stopwatch]::StartNew() -# Sleep for 15 seconds to allow the network rule to take effect -Write-Host "[Fix] Temporary sleep to allow network rule to take effect." -Start-Sleep -Seconds 30 +# Wait until the container is reachable with the connected account instead of sleeping a fixed time +Invoke-WithRetry -Description "access container '$containerName' in storage account '$storageAccountName'" -Action { + Get-AzStorageContainer -Name $containerName -Context $storageContext -ErrorAction Stop +} -Get-AzStorageContainer -Name $containerName -Context $storageContext +$files = @(Get-ChildItem -Path $localFolderPath -Recurse -File -ErrorAction Stop) +if ($files.Count -eq 0) { + Write-Host "Error: No test data files found in '$localFolderPath'." + exit 1 +} # Upload the folder and its contents to the container # Gets last folder name + filename. example_patient_1/doctor_dictation.txt -Get-ChildItem -Path $localFolderPath -Recurse | ForEach-Object { - $relativePath = $_.FullName - $folderName = Split-Path -Path (Split-Path -Path $relativePath -Parent) -Leaf - $blobName = Split-Path -Path $relativePath -Leaf - $destinationBlob = $blobName -replace ":", "" +foreach ($file in $files) { + $folderName = Split-Path -Path $file.DirectoryName -Leaf + $destinationBlob = "$folderName/$($file.Name -replace ':', '')" - $destinationBlob = "$folderName/$destinationBlob" Write-Host "Uploading file '$destinationBlob'" - Set-AzStorageBlobContent -File $_.FullName -Container $containerName -Blob $destinationBlob -Context $storageContext -Force + # Container read access does not guarantee write access has propagated, so retry uploads too + Invoke-WithRetry -Description "upload blob '$destinationBlob'" -Action { + Set-AzStorageBlobContent -File $file.FullName -Container $containerName -Blob $destinationBlob ` + -Context $storageContext -Force -ErrorAction Stop + } | Out-Null } Write-Host "Folder '$localFolderPath' uploaded to container '$containerName' successfully." +$remainingWaitSeconds = $deidIdentityMinimumWaitSeconds - [int]$propagationStopwatch.Elapsed.TotalSeconds +if ($remainingWaitSeconds -gt 0) { + Write-Host "Waiting $remainingWaitSeconds more seconds for the DeID service identity's storage access to propagate." + Start-Sleep -Seconds $remainingWaitSeconds +} + $endpoint = $endpoint -replace '^https://', '' # Set environment variables [Environment]::SetEnvironmentVariable("DEID_SERVICE_ENDPOINT", $endpoint, 'User') diff --git a/sdk/healthdataaiservices/test-resources.bicep b/sdk/healthdataaiservices/test-resources.bicep index 248d745fdb147..950a47ecc5722 100644 --- a/sdk/healthdataaiservices/test-resources.bicep +++ b/sdk/healthdataaiservices/test-resources.bicep @@ -187,7 +187,7 @@ resource storageRoleAssignment 'Microsoft.Authorization/roleAssignments@2020-04- scope: storageAccount } -resource testDeidService 'microsoft.healthdataaiservices/deidservices@2024-02-28-preview' = { +resource testDeidService 'microsoft.healthdataaiservices/deidservices@2024-09-20' = { name: deidServiceName location: deidLocation identity: { @@ -200,6 +200,8 @@ resource storageMIRoleAssignment 'Microsoft.Authorization/roleAssignments@2020-0 properties: { roleDefinitionId: resourceId('Microsoft.Authorization/roleDefinitions', storageBlobDataContributor) principalId: testDeidService.identity.principalId + // Avoids PrincipalNotFound when the newly created managed identity hasn't replicated yet + principalType: 'ServicePrincipal' } scope: storageAccount } From 608ac0205780eedf4141b81b482a665c9f3cecd8 Mon Sep 17 00:00:00 2001 From: "azure-sdk-automation[bot]" <191533747+azure-sdk-automation[bot]@users.noreply.github.com> Date: Wed, 21 Oct 2026 11:30:28 -0700 Subject: [PATCH 09/22] Sync eng/common directory with azure-sdk-tools for PR 17315 (#50900) * Sync eng/common directory with azure-sdk-tools repository for Tools PR 17315 * Sync eng/common directory with azure-sdk-tools repository for Tools PR 17315 * Sync eng/common directory with azure-sdk-tools repository for Tools PR 17315 --------- Co-authored-by: azure-sdk --- .../pipelines/templates/jobs/eval-shard.yml | 3 - eng/common/scripts/eval/README.md | 33 ++++++++--- eng/common/scripts/eval/build-eval-summary.ts | 2 +- eng/common/scripts/eval/lib/shard-results.ts | 15 +++-- .../scripts/eval/publisher/CHANGELOG.md | 7 +++ .../eval/publisher/Publish-EvalResults.ps1 | 31 ++++++++-- .../scripts/eval/publisher/package.json | 2 +- .../eval/publisher/test/publisher.test.ts | 56 ++++++++++--------- .../scripts/eval/test/shard-results.test.ts | 45 ++++++++++++++- 9 files changed, 142 insertions(+), 52 deletions(-) diff --git a/eng/common/pipelines/templates/jobs/eval-shard.yml b/eng/common/pipelines/templates/jobs/eval-shard.yml index cb54e75584e89..569f7d4fdfe50 100644 --- a/eng/common/pipelines/templates/jobs/eval-shard.yml +++ b/eng/common/pipelines/templates/jobs/eval-shard.yml @@ -77,9 +77,6 @@ jobs: npmrcPath: $(Build.SourcesDirectory)/.npmrc registryUrl: https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-tools/npm/registry/ - - script: npm install --global npm@11.11.1 --userconfig $(Build.SourcesDirectory)/.npmrc - displayName: 'Use npm 11.11.1' - # Installs vally-cli + its pinned copilot-sdk executor into node_modules. - script: npm ci --userconfig $(Build.SourcesDirectory)/.npmrc displayName: 'Install Vally CLI + copilot-sdk (pinned)' diff --git a/eng/common/scripts/eval/README.md b/eng/common/scripts/eval/README.md index d760c556bbc7c..75d7beabb2687 100644 --- a/eng/common/scripts/eval/README.md +++ b/eng/common/scripts/eval/README.md @@ -17,13 +17,16 @@ templates. Shards now retain the newest invocation's raw JSONL, JUnit and a completion marker via [shard-results](lib/shard-results.ts), including failed evaluations. -Summary checks the full Prepare matrix and selects each expected shard's highest -attempt once for Markdown, the Tests tab and bundling. Missing, interrupted or +Summary checks the full Prepare matrix and selects the artifact matching each +shard's latest timeline attempt once for Markdown, the Tests tab and bundling. Missing, interrupted or corrupt results remain incomplete; later failed attempts never fall back to older successful artifacts. A separate step reads the current-build timeline with `System.AccessToken` and three bounded transient retries, saving the latest attempt evidence beside the summary. Rendering reads that file and needs no token or network. -Unverified or ambiguous attempts cannot authorize publication. The legacy JUnit-only +If that exact attempt has no artifact, older JUnit is not copied or counted. +Missing or invalid timeline evidence also excludes unverified diagnostics and blocks publication. +Matching latest-attempt JUnit remains available when its result data is incomplete. +The legacy JUnit-only summary remains supported. No historical build download or reconstruction is involved. The bundler accepts exactly one already-selected attempt per expected shard; it does not repeat Summary's selection or accept an ambiguous list of attempts. @@ -105,8 +108,11 @@ compressed-size cap is checked afterward. Full ZIP decoding remains in contract tests rather than reopening the archive in production. JSONL is decoded once and parsed directly as text, with byte limits on both source and serialized records. -Uploads use `--auth-mode login --overwrite false --if-none-match '*'` with the **same +Uploads use `--auth-mode login --overwrite false --if-none-match=*` with the **same saved ZIP**; Azure CLI owns transport retries, without another script/task retry loop. +The condition is one argument so Linux does not expand a standalone `*` into file names. +`--no-progress` keeps CLI progress out of captured command results. JSON is parsed +from stdout only; captured native stderr is never mixed into JSON or echoed. Request/socket timeouts and the task deadline bound execution. Existing archives must match metadata, owner, checksum and size. Changed content needs a new Summary attempt, not an overwrite. The publisher never deletes archives; the dashboard's separate identity stays read-only. @@ -140,14 +146,23 @@ With **Node 24.14.1+ and pnpm 12.6.0**, run `pnpm --ignore-workspace install --pm-on-fail=ignore --frozen-lockfile --prod --ignore-scripts` and `pnpm --ignore-workspace --pm-on-fail=ignore test` from `publisher`, then `node --experimental-strip-types --test` from this directory. -Publisher tests require **PowerShell 7.4+ and -Pester 5**; pipeline upload uses the agent's authenticated Azure CLI. The existing -common-tests PR pipeline runs all shared/archive Node tests and discovers the tagged -PowerShell suite under `eng/common-tests/eval`; failures fail the CI job. +These shared Node tests do not need Tools-owned CI files, PowerShell tests or +the consuming repository's redirect settings. A consumer-copy regression runs +them without Tools files or Git history, with absent and different redirect templates. + +In Tools, run `Invoke-Pester -Path eng/common-tests/eval/Publish-EvalResults.Tests.ps1 -CI` +from the repository root for the **PowerShell 7.4+ / Pester 5 / Azure CLI** tests. That Tools-only +suite also checks the Tools CI wiring and network policy. The existing common-tests +PR pipeline runs both the shared/archive Node tests and this tagged PowerShell suite; +failures fail the CI job. Other repositories do not need to copy this Tools test setup. +Pipeline upload uses the agent's authenticated Azure CLI. CI restores only the locked archive dependency, not the Vally evaluator. Regression coverage includes the actual HTTP cmdlet against loopback, invalid collision metadata, upload-before-notification ordering and publication without local status files. +One integration test also runs the real Azure CLI against a localhost-only Blob +fixture with synthetic credentials and an isolated CLI profile. It verifies one +successful upload does not trigger a fallback read. No production storage is used. Construction regressions exercise the exact entry/trial boundaries, aggregate expanded bytes, final compressed bytes, required inputs and UTF-8 JSONL limits. The loopback fixture selects the first Node application when CI has multiple Node @@ -159,6 +174,8 @@ separate from local checks and should use an already approved evaluation run. The task logs the stored Blob name and notification outcome. Failures include a bounded operation/error code, never raw Azure responses, tokens or result contents. +CLI failures include the exit code and a fixed known storage error code, when +available. If the fallback read also fails, the original upload code is retained. Token acquisition failures require checking the service connection; Blob 403 requires checking its data-role scope; network failures require checking approved egress. Preserve the original archive for conflicts, and diff --git a/eng/common/scripts/eval/build-eval-summary.ts b/eng/common/scripts/eval/build-eval-summary.ts index fb738b8f554a4..43f7ef682b414 100644 --- a/eng/common/scripts/eval/build-eval-summary.ts +++ b/eng/common/scripts/eval/build-eval-summary.ts @@ -375,7 +375,7 @@ async function main(argv) { jobAttempts = JSON.parse(fs.readFileSync(options.attemptsFile, "utf8")); } catch { - console.warn("##vso[task.logissue type=warning]Latest shard attempts could not be verified; Summary will retain diagnostics but refuse publication."); + console.warn("##vso[task.logissue type=warning]Latest shard attempts could not be verified; Summary will remain incomplete and refuse publication."); } } selection = selectSummaryResults({ resultsRoot: options.resultsRoot, diff --git a/eng/common/scripts/eval/lib/shard-results.ts b/eng/common/scripts/eval/lib/shard-results.ts index c38925562c4db..8160e51f221b2 100644 --- a/eng/common/scripts/eval/lib/shard-results.ts +++ b/eng/common/scripts/eval/lib/shard-results.ts @@ -184,6 +184,7 @@ export function selectSummaryResults({ resultsRoot, selectedRoot, expectedShards } emptyDirectory(selectedRoot); const expected = new Set(expectedShards); + const timeline = jobAttempts?.schemaVersion === 1 && jobAttempts.valid === true ? jobAttempts.attempts : null; const selected = new Map(); const seen = new Set(); for (const entry of fs.readdirSync(resultsRoot, { withFileTypes: true })) { @@ -195,8 +196,8 @@ export function selectSummaryResults({ resultsRoot, selectedRoot, expectedShards const identity = `${match[1]}:${attempt}`; if (seen.has(identity)) throw new Error(`Duplicate artifact attempt for ${match[1]}.`); seen.add(identity); - const previous = selected.get(match[1]); - if (!previous || previous.attempt < attempt) { + // Artifact availability cannot override the authoritative timeline attempt. + if (timeline?.[match[1]]?.attempt === attempt) { selected.set(match[1], { shard: match[1], attempt, directory: entry.name }); } } @@ -204,7 +205,10 @@ export function selectSummaryResults({ resultsRoot, selectedRoot, expectedShards for (const shard of expectedShards) { const selectedAttempt = selected.get(shard); if (!selectedAttempt) { - status.push({ shard, attempt: null, complete: false, reason: "No artifact was published." }); + const attempt = timeline?.[shard]?.attempt; + const verified = Number.isSafeInteger(attempt) && attempt > 0; + status.push({ shard, attempt: verified ? attempt : null, complete: false, + reason: verified ? "The latest timeline attempt has no matching artifact." : "The latest timeline attempt could not be verified." }); continue; } const directory = path.join(resultsRoot, selectedAttempt.directory); @@ -221,10 +225,9 @@ export function selectSummaryResults({ resultsRoot, selectedRoot, expectedShards } if (!complete && metadata.complete === false) reason = "The latest shard attempt did not produce a complete invocation."; } catch { /* Retain available JUnit below, but do not adopt an incomplete artifact for upload. */ } - if (jobAttempts?.valid !== true || jobAttempts.schemaVersion !== 1 || - jobAttempts.attempts?.[shard]?.attempt !== selectedAttempt.attempt || jobAttempts.attempts[shard].complete !== true) { + if (timeline[shard].complete !== true) { complete = false; - reason = "The latest timeline job attempt has no matching complete artifact, or its status could not be verified."; + reason = "The latest timeline job attempt is not complete."; } // The Tests tab and Markdown use the SAME selected attempts as the bundle. // Old-layout JUnit remains diagnostic; old artifacts are never upload-ready. diff --git a/eng/common/scripts/eval/publisher/CHANGELOG.md b/eng/common/scripts/eval/publisher/CHANGELOG.md index 60fbc50525a87..3bf724917e3a6 100644 --- a/eng/common/scripts/eval/publisher/CHANGELOG.md +++ b/eng/common/scripts/eval/publisher/CHANGELOG.md @@ -2,6 +2,13 @@ ## Unreleased +- Exclude older JUnit from summaries and selected test files when it does not match the latest verified timeline attempt; keep missing results incomplete. +- Keep shared publisher tests independent of Tools-only CI/Pester/redirect files, while retaining those checks in Tools and testing consumer copies. +- Pass the create-only wildcard as one `--if-none-match=*` argument so Linux cannot expand it into working-directory file names. +- Disable Azure CLI upload progress and parse only stdout so native stderr cannot corrupt a successful JSON result. +- Preserve safe upload/fallback exit codes and known storage error codes without logging CLI response bodies, tokens or request details. +- Exercise the actual Azure CLI against a localhost-only storage fixture, with a bounded startup deadline, synthetic parser diagnostics and no Azure credentials or model evaluations. +- Align entrypoint tests with the existing GitHub App migration instead of expecting the removed PAT variable group. - Retain one complete, latest-attempt evaluation archive per build in Blob storage. - Use authenticated Azure CLI publication instead of a custom Node Azure SDK transport. - Read the storage account from pipeline-owned configuration and keep publishing policy in YAML. diff --git a/eng/common/scripts/eval/publisher/Publish-EvalResults.ps1 b/eng/common/scripts/eval/publisher/Publish-EvalResults.ps1 index a68588d08c440..3964c687edf80 100644 --- a/eng/common/scripts/eval/publisher/Publish-EvalResults.ps1 +++ b/eng/common/scripts/eval/publisher/Publish-EvalResults.ps1 @@ -14,16 +14,33 @@ $ErrorActionPreference = 'Stop' function Invoke-AzJson([string[]] $Arguments) { # Capture all CLI output, especially tokens and errors; never echo raw Azure responses. $output = az @Arguments --only-show-errors --output json 2>&1 - if ($LASTEXITCODE -ne 0) { throw 'Azure CLI operation failed.' } + $exitCode = $LASTEXITCODE + if ($exitCode -ne 0) { + $code = 'cli_failed' + # Only fixed error codes may leave this boundary, never CLI messages or request data. + $match = [regex]::Match(($output -join "`n"), '(?:\(|ErrorCode:\s*)(AuthorizationPermissionMismatch|AuthorizationFailure|AuthenticationFailed|BlobNotFound|ContainerNotFound|BlobAlreadyExists|ConditionNotMet|InvalidAuthenticationInfo|InvalidHeaderValue|InvalidMetadata|ResourceNotFound)(?:\)|\s|$)') + if ($match.Success) { $code = $match.Groups[1].Value } + $failure = [InvalidOperationException]::new('Azure CLI operation failed.') + $failure.Data['CliFailure'] = "exit=$exitCode, code=$code" + throw $failure + } # ConvertFrom-Json auto-converts ISO strings into dates on some PowerShell versions. # Keep Blob metadata strings exact, including their required UTC Z suffix. - $document = [System.Text.Json.JsonDocument]::Parse($output -join "`n") + # Native stderr is captured as ErrorRecord objects; progress/warnings are not JSON. + $stdout = @($output | Where-Object { $_ -isnot [System.Management.Automation.ErrorRecord] }) -join "`n" + try { $document = [System.Text.Json.JsonDocument]::Parse($stdout) } + catch { + $failure = [InvalidOperationException]::new('Azure CLI returned invalid JSON.') + $failure.Data['CliFailure'] = 'exit=0, code=invalid_cli_json' + throw $failure + } try { return $document.RootElement.Clone() } finally { $document.Dispose() } } $operation = 'validate_inputs' $failureCode = 'invalid_bundle' $stored = $false +$uploadFailure = $null try { $BundlePath = [System.IO.Path]::GetFullPath($BundlePath) $archive = Get-Item -LiteralPath $BundlePath @@ -65,12 +82,14 @@ try { $failureCode = 'publication_failed' $duplicate = $false try { - # CLI owns transport retries. Never overwrite, rebuild the ZIP, or create a container. + # CLI owns transport retries. Keep the wildcard in one option=value argument + # so native argument expansion on Linux cannot turn it into local file names. Invoke-AzJson -Arguments (@('storage', 'blob', 'upload') + $storage + @('--file', $BundlePath, - '--type', 'block', '--overwrite', 'false', '--if-none-match', '*', '--content-type', 'application/zip', + '--type', 'block', '--overwrite', 'false', '--if-none-match=*', '--no-progress', '--content-type', 'application/zip', '--metadata', 'schema=1', "sha256=$hash", "publisher=$owner", "storedat=$storedAt", '--timeout', '30', '--socket-timeout', '30')) | Out-Null } catch { # Also covers a lost success response: adopt only the same already-stored archive. + $uploadFailure = $_.Exception.Data['CliFailure'] $operation = 'verify_existing_blob' $saved = Invoke-AzJson -Arguments (@('storage', 'blob', 'show') + $storage + @('--timeout', '30')) $failureCode = 'submission_conflict' @@ -130,6 +149,8 @@ try { if ($stored) { Write-Warning 'Archive stored; dashboard refresh failed. Reload/startup/daily reconciliation can recover it.' } else { - throw "Evaluation publication failed: $operation ($failureCode). No raw Azure response was logged." + $detail = @($(if ($uploadFailure) { "Upload: $uploadFailure." }), + $(if ($_.Exception.Data['CliFailure']) { "Current operation: $($_.Exception.Data['CliFailure'])." })) -join ' ' + throw "Evaluation publication failed: $operation ($failureCode). $detail No raw Azure response was logged." } } \ No newline at end of file diff --git a/eng/common/scripts/eval/publisher/package.json b/eng/common/scripts/eval/publisher/package.json index 0a5e158ddac69..2b06a64ec4c6f 100644 --- a/eng/common/scripts/eval/publisher/package.json +++ b/eng/common/scripts/eval/publisher/package.json @@ -9,7 +9,7 @@ "node": ">=24.14.1" }, "scripts": { - "test": "node --experimental-strip-types --test test/*.test.ts && pwsh -NoProfile -Command \"Invoke-Pester -Path ../../../../common-tests/eval/Publish-EvalResults.Tests.ps1 -CI\"" + "test": "node --experimental-strip-types --test test/*.test.ts" }, "dependencies": { "fflate": "0.8.3" diff --git a/eng/common/scripts/eval/publisher/test/publisher.test.ts b/eng/common/scripts/eval/publisher/test/publisher.test.ts index 1b6d2cba24368..8497bb00a4487 100644 --- a/eng/common/scripts/eval/publisher/test/publisher.test.ts +++ b/eng/common/scripts/eval/publisher/test/publisher.test.ts @@ -2,9 +2,9 @@ import assert from "node:assert/strict"; import { spawnSync } from "node:child_process"; import { randomBytes } from "node:crypto"; -import { mkdtemp, mkdir, readFile, rm, truncate, writeFile } from "node:fs/promises"; +import { cp, mkdtemp, mkdir, readFile, realpath, rm, truncate, writeFile } from "node:fs/promises"; import { tmpdir } from "node:os"; -import { join, resolve } from "node:path"; +import { join, resolve, sep } from "node:path"; import { pathToFileURL } from "node:url"; import { test } from "node:test"; import { runInNewContext } from "node:vm"; @@ -271,25 +271,32 @@ test("the archive package pins Node 24/pnpm and one portable SHA512-locked depen assert.doesNotMatch(lock, /https?:|tarball:|sha1-|packageManagerDependencies/); }); -test("PR CI runs every lightweight Node suite and discovers tagged publisher PowerShell tests", async () => { - const root = resolve(import.meta.dirname, "../../../../.."); - const ci = await readFile(join(root, "common-tests/ci.yml"), "utf8"); - assert.match(ci, /TargetDirectory: eng\/common-tests/); - assert.match(ci, /TargetTags: UnitTest,IntegrationTest/); - assert.match(ci, /CustomTestSteps:[\s\S]*config.Filter.Tag = @\('UnitTest', 'IntegrationTest'\)/); - assert.match(ci, /if \(\$result.FailedCount -gt 0\) \{ throw/); - assert.match(ci, /node --experimental-strip-types --test test\/\*\.test\.ts publisher\/test\/\*\.test\.ts/); - assert.match(ci, /version: 24\.x/); - assert.match(ci, /npm install --prefix.*pnpm@12\.6\.0/); - assert.match(ci, /pnpm\/bin\/pnpm\.mjs.*--dir publisher --ignore-workspace install --pm-on-fail=ignore --frozen-lockfile --prod --ignore-scripts/); - assert.match(ci, /NPM_CONFIG_USERCONFIG: \$\(Agent.TempDirectory\)\/eval-unit-tests\.npmrc/); - assert.doesNotMatch(ci, /vally eval|azureSubscription:|npm ci/); - const pester = await readFile(join(root, "common-tests/eval/Publish-EvalResults.Tests.ps1"), "utf8"); - assert.match(pester, /Describe 'Azure CLI evaluation publication' -Tag 'UnitTest'/); - assert.match(pester, /Microsoft.PowerShell.Utility\\Invoke-WebRequest/); - assert.match(pester, /server\.listen\(0,'127\.0\.0\.1'/); - const publisher = JSON.parse(await readFile(resolve(import.meta.dirname, "../package.json"), "utf8")); - assert.match(publisher.scripts.test, /common-tests\/eval\/Publish-EvalResults.Tests.ps1/); +test("shared publisher tests run without Tools-only files", async t => { + const f = await fixture(t), consumer = join(f.root, "consumer"), scripts = resolve(import.meta.dirname, "../.."); + const copiedScripts = join(consumer, "eng/common/scripts/eval"), publisher = join(copiedScripts, "publisher"); + await cp(scripts, copiedScripts, { recursive: true, filter: source => !source.split(sep).includes("node_modules") }); + await cp(resolve(scripts, "../../pipelines"), join(consumer, "eng/common/pipelines"), { recursive: true }); + // Copy only the already-restored archive dependency; no install, Git history or service is needed. + await cp(await realpath(resolve(import.meta.dirname, "../node_modules/fflate")), join(publisher, "node_modules/fflate"), { recursive: true }); + for (const path of [".git", "eng/common-tests/ci.yml", "eng/common-tests/eval/Publish-EvalResults.Tests.ps1"]) { + await assert.rejects(readFile(join(consumer, path)), { code: "ENOENT" }); + } + const command = JSON.parse(await readFile(join(publisher, "package.json"), "utf8")).scripts.test; + assert.equal(command, "node --experimental-strip-types --test test/*.test.ts"); + for (const mode of ["without a redirect template", "with a consumer-owned redirect template"]) await t.test(mode, async () => { + if (mode.startsWith("with a")) { + const redirect = join(consumer, "eng/pipelines/templates/stages/1es-redirect.yml"); + await mkdir(resolve(redirect, ".."), { recursive: true }); + await writeFile(redirect, "parameters:\n- name: UseOfficial\n type: boolean\n default: true\n"); + } + const environment = { ...process.env }; delete environment.NODE_TEST_CONTEXT; + const args = command.split(" ").slice(1); + // Exclude this copy-and-run regression itself, not any archive or pipeline checks. + args.splice(args.indexOf("--test") + 1, 0, "--test-skip-pattern=shared publisher tests run without Tools-only files"); + const child = spawnSync(process.execPath, args, { cwd: publisher, env: environment, encoding: "utf8", + timeout: 120_000, maxBuffer: 2 * 1024 * 1024 }); + assert.ifError(child.error); assert.equal(child.status, 0, child.stderr + child.stdout); + }); }); test("pipeline separates token-bearing attempt verification from rendering and uploads before the score gate", async () => { @@ -353,11 +360,8 @@ test("one checkbox gates trusted-run egress; owner configuration additionally ga for (const id of ["8255", "9999"]) assert.equal(evaluate(networkGate, { ...base, "System.DefinitionId": id }), true, "Definition IDs are archive identity, not shared policy"); }); -test("redirect retains Default Deny/CFS and shared publication defaults stay off", async () => { +test("shared publication defaults stay off", async () => { const root = resolve(import.meta.dirname, "../../../.."); - const redirect = await readFile(join(root, "../pipelines/templates/stages/1es-redirect.yml"), "utf8"); - assert.match(redirect, /networkIsolationPolicy: DefaultDeny, CFSClean, CFSClean2, CFSClean3, AzureStorage/); - assert.match(redirect, /parameters.AllowAzureStorage.*parameters.Use1ESOfficial.*System.TeamProject.*PullRequest.*refs\/pull\//); for (const path of ["templates/steps/eval-publish-results.yml", "templates/jobs/eval-summarize.yml", "templates/stages/archetype-eval.yml"]) { assert.match(await readFile(join(root, "pipelines", path), "utf8"), /name: publishDashboardResults\s+type: boolean\s+default: false/); } @@ -370,7 +374,7 @@ for (const tier of ["workflow", "skill", "live"]) test(`${tier} forwards only th assert.doesNotMatch(content, /eval-dashboard\.yml|EvalDashboardPublicationEnabled|System.DefinitionId|autoPublishDashboardResults|allowAzureStorageNetworkAccess/); const inputs = content.slice(content.indexOf("\nparameters:\n"), content.indexOf("\nvariables:\n")); assert.deepEqual([...inputs.matchAll(/- name: (\w+)/g)].map(match => match[1]), ["publishDashboardResults"]); - assert.match(content, /group: AzSDK_Eval_Variable_group/); assert.match(content, new RegExp(`TestType: ${tier === "live" ? "live" : "mock"}`)); + assert.doesNotMatch(content, /group: AzSDK_Eval_Variable_group/); assert.match(content, new RegExp(`TestType: ${tier === "live" ? "live" : "mock"}`)); if (tier === "live") { assert.match(content, /UseAzSdkAuthentication: true/); assert.match(content, /failOnFailedTests: true/); } if (tier === "skill") assert.match(content, /vallyRoot: \.github\/skills/); }); \ No newline at end of file diff --git a/eng/common/scripts/eval/test/shard-results.test.ts b/eng/common/scripts/eval/test/shard-results.test.ts index 38bca140a85aa..68fb908b085bd 100644 --- a/eng/common/scripts/eval/test/shard-results.test.ts +++ b/eng/common/scripts/eval/test/shard-results.test.ts @@ -273,6 +273,8 @@ test("attempt selection is numeric and includes the newest directory even when i const root = setup(t); artifact(root, "area_a", 9); fs.mkdirSync(path.join(root, "download", "eval-result-area_a-10")); + fs.writeFileSync(path.join(root, "job-attempts.json"), JSON.stringify({ schemaVersion: 1, valid: true, + attempts: { area_a: { attempt: 10, complete: true } } })); const { child, result, index } = runSummary(root, ["area_a"]); assert.equal(child.status, 1); assert.equal(result.shards[0].attempt, 10); @@ -308,7 +310,8 @@ test("bad completion metadata cannot hide available diagnostic JUnit", (t) => { const directory = path.join(root, `case-${index}`); const output = artifact(directory, "area_a", 1); fs.writeFileSync(path.join(output, "shard.json"), marker); - const selection = selectSummaryResults({ resultsRoot: path.join(directory, "download"), selectedRoot: path.join(directory, "selected"), expectedShards: ["area_a"] }); + const selection = selectSummaryResults({ resultsRoot: path.join(directory, "download"), selectedRoot: path.join(directory, "selected"), + expectedShards: ["area_a"], jobAttempts: readJson(path.join(directory, "job-attempts.json")) }); assert.equal(selection.complete, false); assert.deepEqual(fs.readdirSync(path.join(directory, "selected", "eval-result-area_a-1", "junit")), ["0.junit.xml"]); } @@ -337,6 +340,8 @@ test("legacy-layout JUnit is diagnostic only, and never causes fallback to an ol const latest = path.join(root, "download", "eval-result-area_a-2"); fs.mkdirSync(latest); fs.writeFileSync(path.join(latest, "eval-results.junit.xml"), ''); + fs.writeFileSync(path.join(root, "job-attempts.json"), JSON.stringify({ schemaVersion: 1, valid: true, + attempts: { area_a: { attempt: 2, complete: true } } })); const { child, result, index, markdown } = runSummary(root, ["area_a"]); assert.equal(child.status, 1); assert.equal(result.complete, false); @@ -389,7 +394,9 @@ test("summary cannot publish when timeline evidence is unavailable, invalid or c }); assert.equal(child.status, 1); assert.match(child.stdout, /EvalSummaryComplete\]false/); assert.equal(readJson(path.join(directory, "download", "shard-index.json")).complete, false); - assert.equal(readJson(path.join(directory, "summary", "eval-summary.json")).totals.scenarios, 1); + assert.equal(readJson(path.join(directory, "summary", "eval-summary.json")).totals.scenarios, 0); + assert.deepEqual(fs.readdirSync(path.join(directory, "selected")), []); + assert.deepEqual(readJson(path.join(directory, "download", "shard-index.json")).attempts, []); assert.match(fs.readFileSync(output, "utf8"), /timeline/); assert.equal(fs.existsSync(path.join(directory, "summary", "job-attempts.json")), false, "Rendering never fabricates timeline evidence"); } @@ -494,9 +501,43 @@ test("newer failed attempt with no artifact cannot adopt an older complete artif { schemaVersion: 1, valid: false, attempts: {} }].entries()) { const selected = selectSummaryResults({ resultsRoot: path.join(root, "download"), selectedRoot: path.join(root, `selection-${index}`), expectedShards: ["a"], jobAttempts }); assert.equal(selected.complete, false); assert.match(selected.status[0].reason, /timeline/); + const matchingAttempt = jobAttempts?.valid === true && jobAttempts.attempts.a?.attempt === 1; + assert.equal(selected.shardInput.attempts.length, matchingAttempt ? 1 : 0); + assert.equal(fs.existsSync(path.join(root, `selection-${index}`, "eval-result-a-1", "junit", "0.junit.xml")), matchingAttempt); } }); +test("missing latest results contribute no older JUnit to Markdown, counts or selected test files", t => { + const root = setup(t); artifact(root, "a", 1); + const evidence = { schemaVersion: 1, valid: true, attempts: { a: { attempt: 2, complete: true } } }; + fs.writeFileSync(path.join(root, "job-attempts.json"), JSON.stringify(evidence)); + const { child, markdown, result, index } = runSummary(root, ["a"]); + assert.equal(child.status, 1); + assert.match(child.stdout, /EvalSummaryComplete\]false/); + assert.equal(result.complete, false); assert.equal(index.complete, false); + assert.equal(result.shards[0].attempt, 2); assert.match(result.shards[0].reason, /no matching artifact/); + assert.deepEqual(result.totals, { scenarios: 0, failed: 0, skipped: 0 }); + assert.deepEqual(index.attempts, []); + assert.deepEqual(fs.readdirSync(path.join(root, "selected")), []); + assert.doesNotMatch(markdown, /source-a-1|results — PASSED/); + assert.match(markdown, /results — INCOMPLETE/); +}); + +test("only the timeline-matching attempt is selected, even when newer unverified artifacts exist", t => { + const root = setup(t); artifact(root, "a", 1); artifact(root, "a", 2, { failed: true }); artifact(root, "a", 3); + fs.writeFileSync(path.join(root, "job-attempts.json"), JSON.stringify({ schemaVersion: 1, valid: true, + attempts: { a: { attempt: 2, complete: true } } })); + const { child, markdown, result, index } = runSummary(root, ["a"]); + assert.equal(child.status, 0, child.stderr); + assert.equal(result.complete, true); assert.equal(index.complete, true); + assert.equal(result.shards[0].attempt, 2); + assert.deepEqual(result.totals, { scenarios: 1, failed: 1, skipped: 0 }); + assert.deepEqual(fs.readdirSync(path.join(root, "selected")), ["eval-result-a-2"]); + assert.deepEqual(index.attempts, [{ shard: "a", attempt: 2, directory: "eval-result-a-2" }]); + assert.match(markdown, /results — FAILED/); + assert.doesNotMatch(markdown, /source-a-1|source-a-3/); +}); + test("timeline reads retry transient failures only, with a fixed three-attempt budget", async () => { const waits = []; let calls = 0; const result = await readShardAttempts(timelineEnv, { wait: async value => waits.push(value), fetchImpl: async (url, options) => { From 34ae64375f735f494b4031af573c7c7e4b3caed5 Mon Sep 17 00:00:00 2001 From: "azure-sdk-automation[bot]" <191533747+azure-sdk-automation[bot]@users.noreply.github.com> Date: Wed, 21 Oct 2026 13:30:05 -0700 Subject: [PATCH 10/22] Sync .github/workflows directory with azure-sdk-tools for PR 17346 (#50906) * Remove unsafe PR-source build instructions from event processor workflow * Isolate Azure authentication to newly opened issue processing * Use least-privilege permissions per job --------- Co-authored-by: Chidozie Ononiwu --- .github/workflows/event-processor.yml | 68 +++++++++++++-------------- 1 file changed, 34 insertions(+), 34 deletions(-) diff --git a/.github/workflows/event-processor.yml b/.github/workflows/event-processor.yml index 16370e2edabb2..ab576a2a1c5b8 100644 --- a/.github/workflows/event-processor.yml +++ b/.github/workflows/event-processor.yml @@ -17,30 +17,24 @@ on: permissions: {} jobs: - # This event requires the Azure CLI to get the LABEL_SERVICE_API_KEY from the vault. - # Because the azure/login step adds time costly pre/post Az CLI commands to any every job - # it's used in, split this into its own job so only the event that needs the Az CLI pays - # the cost. + # Only newly opened issues need Azure login and secrets from Key Vault. event-handler-with-azure: + if: ${{ github.event_name == 'issues' && github.event.action == 'opened' }} permissions: issues: write - pull-requests: write # For OIDC auth id-token: write - contents: read name: Handle ${{ github.event_name }} ${{ github.event.action }} event with azure login runs-on: ubuntu-latest steps: - name: 'Az CLI login' uses: azure/login@7ddb5af1ef8758cf1353cf3b42f940aee27ba21c # v3.0.2 - if: ${{ github.event_name == 'issues' && github.event.action == 'opened' }} with: client-id: e4cb9fd5-0875-4ca1-bc43-56196f5dfb8f tenant-id: 72f988bf-86f1-41af-91ab-2d7cd011db47 allow-no-subscriptions: true - name: 'Run Azure CLI commands' - if: ${{ github.event_name == 'issues' && github.event.action == 'opened' }} run: | LABEL_SERVICE_API_KEY=$(az keyvault secret show \ --vault-name issue-labeler \ @@ -60,10 +54,6 @@ jobs: echo "::add-mask::$APP_CONFIG_ENDPOINT" echo "APP_CONFIG_ENDPOINT=$APP_CONFIG_ENDPOINT" >> "$GITHUB_ENV" - # To run github-event-processor built from source, for testing purposes, uncomment everything - # in between the Start/End-Build From Source comments and comment everything in between the - # Start/End-Install comments - # Start-Install - name: Install GitHub Event Processor run: > dotnet tool install @@ -72,28 +62,6 @@ jobs: --add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json --global shell: bash - # End-Install - - # Testing checkout of sources from the Azure/azure-sdk-tools repository - # The ref: is the SHA from the pull request in that repository or the - # refs/pull//merge for the latest on any given PR. If the repository - # is a fork eg. /azure-sdk-tools then the repository down below will - # need to point to that fork - # Start-Build - # - name: Checkout tools repo for GitHub Event Processor sources - # uses: actions/checkout@v3 - # with: - # repository: Azure/azure-sdk-tools - # path: azure-sdk-tools - # ref: /merge> or - - # - name: Build and install GitHubEventProcessor from sources - # run: | - # dotnet pack - # dotnet tool install --global --prerelease --add-source ../../../artifacts/packages/Debug Azure.Sdk.Tools.GitHubEventProcessor - # shell: bash - # working-directory: azure-sdk-tools/tools/github-event-processor/Azure.Sdk.Tools.GitHubEventProcessor - # End-Build - name: Process Action Event run: | @@ -112,3 +80,35 @@ jobs: with: name: event path: ${{ github.event_path }} + + event-handler: + if: ${{ !(github.event_name == 'issues' && github.event.action == 'opened') }} + permissions: + issues: write + # PR events can dismiss approvals after untrusted changes. + pull-requests: write + name: Handle ${{ github.event_name }} ${{ github.event.action }} event + runs-on: ubuntu-latest + steps: + - name: Install GitHub Event Processor + run: > + dotnet tool install + Azure.Sdk.Tools.GitHubEventProcessor + --version 1.0.0-dev.20260403.1 + --add-source https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-net/nuget/v3/index.json + --global + shell: bash + + - name: Process Action Event + run: | + github-event-processor ${{ github.event_name }} ${{ github.event_path }} + shell: bash + env: + GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} + + - name: Archive github event data + uses: actions/upload-artifact@043fb46d1a93c77aae656e7c1c64a875d1fc6a0a # v7.0.1 + if: always() + with: + name: event + path: ${{ github.event_path }} From b9f5979d6228ecaaa1fe02779261904880f23e27 Mon Sep 17 00:00:00 2001 From: Alan Zimmer <48699787+alzimmermsft@users.noreply.github.com> Date: Wed, 21 Oct 2026 16:54:38 -0400 Subject: [PATCH 11/22] Make timeout configuration handling consistent across HTTP stacks (#50885) * Make timeout configuration handling consistent across HTTP stacks * Retain previous behavior if libraries have version skew --- sdk/clientcore/core/CHANGELOG.md | 4 + .../http/client/JdkHttpClientBuilder.java | 6 +- .../core/implementation/utils/ImplUtils.java | 65 +++++++--- .../http/client/JdkHttpClientBuilder.java | 32 +++-- .../http/client/JdkHttpClientBuilderIT.java | 42 ++++++ .../implementation/utils/ImplUtilsTests.java | 60 +++++++++ sdk/clientcore/http-netty4/CHANGELOG.md | 2 + .../http/netty4/NettyHttpClientBuilder.java | 43 ++++-- .../netty4/NettyHttpClientBuilderTests.java | 40 ++++++ sdk/clientcore/http-okhttp3/CHANGELOG.md | 3 + .../http/okhttp3/OkHttpHttpClientBuilder.java | 61 ++------- .../okhttp3/OkHttpHttpClientBuilderTests.java | 29 +++-- .../CHANGELOG.md | 2 + .../jdk/httpclient/JdkHttpClientBuilder.java | 30 +++-- .../httpclient/JdkHttpClientBuilderTests.java | 33 +++++ sdk/core/azure-core-http-netty/CHANGELOG.md | 2 + .../netty/NettyAsyncHttpClientBuilder.java | 33 +++-- .../NettyAsyncHttpClientBuilderTests.java | 21 +++ sdk/core/azure-core-http-okhttp/CHANGELOG.md | 3 + .../okhttp/OkHttpAsyncHttpClientBuilder.java | 46 ++++--- .../OkHttpAsyncHttpClientBuilderTests.java | 50 +++++-- sdk/core/azure-core-http-vertx/CHANGELOG.md | 2 + .../http/vertx/VertxHttpClientBuilder.java | 32 +++-- .../vertx/VertxHttpClientBuilderTests.java | 35 +++++ sdk/core/azure-core/CHANGELOG.md | 4 + .../core/implementation/util/HttpUtils.java | 87 +++++++++---- .../java/com/azure/core/util/CoreUtils.java | 10 +- .../azure/core/util/HttpClientOptions.java | 25 ++-- .../implementation/util/HttpUtilsTests.java | 122 ++++++++++++++++++ .../core/util/HttpClientOptionsTests.java | 56 ++++++++ 30 files changed, 780 insertions(+), 200 deletions(-) diff --git a/sdk/clientcore/core/CHANGELOG.md b/sdk/clientcore/core/CHANGELOG.md index b9ad8f8eedc7e..12536540756dd 100644 --- a/sdk/clientcore/core/CHANGELOG.md +++ b/sdk/clientcore/core/CHANGELOG.md @@ -14,6 +14,10 @@ ### Bugs Fixed +- Fixed HTTP timeout resolution to prefer explicit builder values, then builder-specific configuration, then global + configuration, and finally SDK defaults. Global timeouts are resolved when needed rather than cached at class + initialization. Nonpositive JDK HTTP timeouts now disable the timeout, including the connection timeout. + ### Other Changes ## 1.0.0-beta.11 (2025-07-21) diff --git a/sdk/clientcore/core/src/main/java/io/clientcore/core/http/client/JdkHttpClientBuilder.java b/sdk/clientcore/core/src/main/java/io/clientcore/core/http/client/JdkHttpClientBuilder.java index b6a8cddb1abed..b9ea9b2b013f5 100644 --- a/sdk/clientcore/core/src/main/java/io/clientcore/core/http/client/JdkHttpClientBuilder.java +++ b/sdk/clientcore/core/src/main/java/io/clientcore/core/http/client/JdkHttpClientBuilder.java @@ -68,7 +68,7 @@ public JdkHttpClientBuilder executor(Executor executor) { * * * - * The default connection timeout is 10 seconds. + * The default connection timeout is 10 seconds. A duration less than or equal to zero disables this timeout. * * @param connectionTimeout the connection timeout * @return the updated {@link JdkHttpClientBuilder} object @@ -186,6 +186,10 @@ public JdkHttpClientBuilder setMaximumHttpVersion(HttpProtocolVersion httpVersio /** * Sets the configuration store that is used during construction of the HTTP client. + *

+ * Timeouts explicitly set on this builder take precedence over this store, then the global configuration store, + * then the default timeout. Missing timeout values fall back to the global store even when + * {@link Configuration#none()} is supplied. * * @param configuration The configuration store used to * @return The updated {@link JdkHttpClientBuilder} object. diff --git a/sdk/clientcore/core/src/main/java/io/clientcore/core/implementation/utils/ImplUtils.java b/sdk/clientcore/core/src/main/java/io/clientcore/core/implementation/utils/ImplUtils.java index 9b833cf747d3c..a6e1ef39a1ff5 100644 --- a/sdk/clientcore/core/src/main/java/io/clientcore/core/implementation/utils/ImplUtils.java +++ b/sdk/clientcore/core/src/main/java/io/clientcore/core/implementation/utils/ImplUtils.java @@ -42,22 +42,11 @@ public final class ImplUtils { private static final byte FF = (byte) 0xFF; private static final Pattern CHARSET_PATTERN = Pattern.compile("charset=(\\S+)\\b", Pattern.CASE_INSENSITIVE); - private static final Duration DEFAULT_HTTP_CONNECT_TIMEOUT; - private static final Duration DEFAULT_HTTP_WRITE_TIMEOUT; - private static final Duration DEFAULT_HTTP_RESPONSE_TIMEOUT; - private static final Duration DEFAULT_HTTP_READ_TIMEOUT; - - static { - Configuration configuration = Configuration.getGlobalConfiguration(); - DEFAULT_HTTP_CONNECT_TIMEOUT = getDefaultTimeoutFromEnvironment(configuration, - Configuration.REQUEST_CONNECT_TIMEOUT_IN_MS, Duration.ofSeconds(10), LOGGER); - DEFAULT_HTTP_WRITE_TIMEOUT = getDefaultTimeoutFromEnvironment(configuration, - Configuration.REQUEST_WRITE_TIMEOUT_IN_MS, Duration.ofSeconds(60), LOGGER); - DEFAULT_HTTP_RESPONSE_TIMEOUT = getDefaultTimeoutFromEnvironment(configuration, - Configuration.REQUEST_RESPONSE_TIMEOUT_IN_MS, Duration.ofSeconds(60), LOGGER); - DEFAULT_HTTP_READ_TIMEOUT = getDefaultTimeoutFromEnvironment(configuration, - Configuration.REQUEST_READ_TIMEOUT_IN_MS, Duration.ofSeconds(60), LOGGER); - } + private static final Duration MINIMUM_TIMEOUT = Duration.ofMillis(1); + private static final Duration DEFAULT_HTTP_CONNECT_TIMEOUT = Duration.ofSeconds(10); + private static final Duration DEFAULT_HTTP_WRITE_TIMEOUT = Duration.ofSeconds(60); + private static final Duration DEFAULT_HTTP_RESPONSE_TIMEOUT = Duration.ofSeconds(60); + private static final Duration DEFAULT_HTTP_READ_TIMEOUT = Duration.ofSeconds(60); private ImplUtils() { // Exists only to defeat instantiation. @@ -107,6 +96,50 @@ public static Duration getDefaultTimeoutFromEnvironment(Configuration configurat } } + /** + * Resolves a timeout from the explicit value, the builder's configuration, the global configuration, and finally + * the default, in that order. Missing, empty, or invalid configuration values fall back to the next source. + * + * @param configuredTimeout The explicitly configured timeout, or null. + * @param configuration The builder's configuration, or null to use the global configuration. + * @param timeoutPropertyName The timeout configuration property name. + * @param defaultTimeout The fallback timeout. + * @return The timeout to use. + */ + public static Duration getTimeout(Duration configuredTimeout, Configuration configuration, + String timeoutPropertyName, Duration defaultTimeout) { + if (configuredTimeout != null) { + return getTimeout(configuredTimeout, defaultTimeout); + } + + Configuration globalConfiguration = Configuration.getGlobalConfiguration(); + Duration timeout = (configuration == null || configuration == globalConfiguration) + ? null + : getDefaultTimeoutFromEnvironment(configuration, timeoutPropertyName, null, LOGGER); + + return timeout == null + ? getDefaultTimeoutFromEnvironment(globalConfiguration, timeoutPropertyName, defaultTimeout, LOGGER) + : timeout; + } + + /** + * Normalizes a timeout, using the default for null, zero for nonpositive values, and at least one millisecond for + * positive values. + * + * @param configuredTimeout The configured timeout. + * @param defaultTimeout The default timeout. + * @return The timeout to use. + */ + public static Duration getTimeout(Duration configuredTimeout, Duration defaultTimeout) { + if (configuredTimeout == null) { + return defaultTimeout; + } + if (configuredTimeout.isNegative() || configuredTimeout.isZero()) { + return Duration.ZERO; + } + return configuredTimeout.compareTo(MINIMUM_TIMEOUT) < 0 ? MINIMUM_TIMEOUT : configuredTimeout; + } + /** * Writes a {@link ByteBuffer} into an {@link OutputStream}. *

diff --git a/sdk/clientcore/core/src/main/java12/io/clientcore/core/http/client/JdkHttpClientBuilder.java b/sdk/clientcore/core/src/main/java12/io/clientcore/core/http/client/JdkHttpClientBuilder.java index 97a1cffd164c8..807cc9106f0f7 100644 --- a/sdk/clientcore/core/src/main/java12/io/clientcore/core/http/client/JdkHttpClientBuilder.java +++ b/sdk/clientcore/core/src/main/java12/io/clientcore/core/http/client/JdkHttpClientBuilder.java @@ -27,6 +27,8 @@ import java.util.Set; import java.util.concurrent.Executor; +import static io.clientcore.core.implementation.utils.ImplUtils.getTimeout; + /** * Builder to configure and build an instance of the JDK {@code HttpClient} introduced in Java 11. *

@@ -41,7 +43,6 @@ public class JdkHttpClientBuilder { private static final ClientLogger LOGGER = new ClientLogger(JdkHttpClientBuilder.class); - private static final Duration MINIMUM_TIMEOUT = Duration.ofMillis(1); private static final Duration DEFAULT_CONNECTION_TIMEOUT = ImplUtils.getDefaultHttpConnectTimeout(); private static final Duration DEFAULT_WRITE_TIMEOUT = ImplUtils.getDefaultHttpWriteTimeout(); private static final Duration DEFAULT_RESPONSE_TIMEOUT = ImplUtils.getDefaultHttpResponseTimeout(); @@ -105,7 +106,7 @@ public JdkHttpClientBuilder executor(Executor executor) { * * * - * The default connection timeout is 10 seconds. + * The default connection timeout is 10 seconds. A duration less than or equal to zero disables this timeout. * * @param connectionTimeout the connection timeout * @return the updated {@link JdkHttpClientBuilder} object @@ -242,6 +243,10 @@ public JdkHttpClientBuilder setMaximumHttpVersion(HttpProtocolVersion httpVersio /** * Sets the configuration store that is used during construction of the HTTP client. + *

+ * Timeouts explicitly set on this builder take precedence over this store, then the global configuration store, + * then the default timeout. Missing timeout values fall back to the global store even when + * {@link Configuration#none()} is supplied. * * @param configuration The configuration store used to * @return The updated {@link JdkHttpClientBuilder} object. @@ -259,11 +264,18 @@ public JdkHttpClientBuilder configuration(Configuration configuration) { public HttpClient build() { java.net.http.HttpClient.Builder httpClientBuilder = java.net.http.HttpClient.newBuilder(); - httpClientBuilder = httpClientBuilder.connectTimeout(getTimeout(connectionTimeout, DEFAULT_CONNECTION_TIMEOUT)); + Duration connectionTimeout = getTimeout(this.connectionTimeout, configuration, + Configuration.REQUEST_CONNECT_TIMEOUT_IN_MS, DEFAULT_CONNECTION_TIMEOUT); + if (!connectionTimeout.isZero()) { + httpClientBuilder.connectTimeout(connectionTimeout); + } - Duration writeTimeout = getTimeout(this.writeTimeout, DEFAULT_WRITE_TIMEOUT); - Duration responseTimeout = getTimeout(this.responseTimeout, DEFAULT_RESPONSE_TIMEOUT); - Duration readTimeout = getTimeout(this.readTimeout, DEFAULT_READ_TIMEOUT); + Duration writeTimeout = getTimeout(this.writeTimeout, configuration, Configuration.REQUEST_WRITE_TIMEOUT_IN_MS, + DEFAULT_WRITE_TIMEOUT); + Duration responseTimeout = getTimeout(this.responseTimeout, configuration, + Configuration.REQUEST_RESPONSE_TIMEOUT_IN_MS, DEFAULT_RESPONSE_TIMEOUT); + Duration readTimeout = getTimeout(this.readTimeout, configuration, Configuration.REQUEST_READ_TIMEOUT_IN_MS, + DEFAULT_READ_TIMEOUT); Configuration buildConfiguration = (configuration == null) ? Configuration.getGlobalConfiguration() : configuration; @@ -357,12 +369,4 @@ protected PasswordAuthentication getPasswordAuthentication() { return new PasswordAuthentication(this.userName, password.toCharArray()); } } - - private static Duration getTimeout(Duration configuredTimeout, Duration defaultTimeout) { - if (configuredTimeout == null) { - return defaultTimeout; - } - - return configuredTimeout.compareTo(MINIMUM_TIMEOUT) < 0 ? MINIMUM_TIMEOUT : configuredTimeout; - } } diff --git a/sdk/clientcore/core/src/test/java/io/clientcore/core/http/client/JdkHttpClientBuilderIT.java b/sdk/clientcore/core/src/test/java/io/clientcore/core/http/client/JdkHttpClientBuilderIT.java index 715dae89efe8f..73b0baec91413 100644 --- a/sdk/clientcore/core/src/test/java/io/clientcore/core/http/client/JdkHttpClientBuilderIT.java +++ b/sdk/clientcore/core/src/test/java/io/clientcore/core/http/client/JdkHttpClientBuilderIT.java @@ -15,10 +15,14 @@ import org.junit.jupiter.api.Test; import org.junit.jupiter.api.condition.DisabledForJreRange; import org.junit.jupiter.api.condition.JRE; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.ValueSource; import javax.servlet.ServletException; import java.io.IOException; import java.net.InetSocketAddress; +import java.time.Duration; +import java.util.Optional; import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertNotNull; @@ -100,6 +104,44 @@ public void buildWithHttpProxyFromEnvConfiguration() throws IOException { } } + @ParameterizedTest + @ValueSource(longs = { -1, 0, 123000 }) + public void configuredTimeoutsAndExplicitOverrides(long timeoutMillis) throws ReflectiveOperationException { + String value = Long.toString(timeoutMillis); + Configuration configuration + = Configuration.from(new TestConfigurationSource().put(Configuration.REQUEST_CONNECT_TIMEOUT_IN_MS, value) + .put(Configuration.REQUEST_READ_TIMEOUT_IN_MS, value) + .put(Configuration.REQUEST_WRITE_TIMEOUT_IN_MS, value) + .put(Configuration.REQUEST_RESPONSE_TIMEOUT_IN_MS, value)); + JdkHttpClientBuilder builder = new JdkHttpClientBuilder().configuration(configuration); + assertTimeouts(builder.build(), Math.max(0, timeoutMillis)); + assertTimeouts(builder.connectionTimeout(Duration.ofMillis(456000)) + .readTimeout(Duration.ofMillis(456000)) + .writeTimeout(Duration.ofMillis(456000)) + .responseTimeout(Duration.ofMillis(456000)) + .build(), 456000); + assertTimeouts(builder.connectionTimeout(Duration.ofNanos(-1)) + .readTimeout(Duration.ZERO) + .writeTimeout(Duration.ofNanos(-1)) + .responseTimeout(Duration.ZERO) + .build(), 0); + } + + private static void assertTimeouts(HttpClient client, long expected) throws ReflectiveOperationException { + java.lang.reflect.Field nativeClientField = client.getClass().getDeclaredField("jdkHttpClient"); + nativeClientField.setAccessible(true); + Object nativeClient = nativeClientField.get(client); + Object connectTimeout + = Class.forName("java.net.http.HttpClient").getMethod("connectTimeout").invoke(nativeClient); + assertEquals(expected == 0 ? Optional.empty() : Optional.of(Duration.ofMillis(expected)), connectTimeout); + for (String name : new String[] { "readTimeout", "writeTimeout", "responseTimeout" }) { + java.lang.reflect.Field field = client.getClass().getDeclaredField(name); + field.setAccessible(true); + assertEquals(expected == 0 && !"readTimeout".equals(name) ? null : Duration.ofMillis(expected), + field.get(client)); + } + } + @Test public void buildWithNullProxyAddress() { ProxyOptions mockPoxyOptions = new ProxyOptions(ProxyOptions.Type.HTTP, null); diff --git a/sdk/clientcore/core/src/test/java/io/clientcore/core/implementation/utils/ImplUtilsTests.java b/sdk/clientcore/core/src/test/java/io/clientcore/core/implementation/utils/ImplUtilsTests.java index 67417e0177464..6bec93cfdff2d 100644 --- a/sdk/clientcore/core/src/test/java/io/clientcore/core/implementation/utils/ImplUtilsTests.java +++ b/sdk/clientcore/core/src/test/java/io/clientcore/core/implementation/utils/ImplUtilsTests.java @@ -7,6 +7,8 @@ import io.clientcore.core.utils.CoreUtilsTests; import io.clientcore.core.utils.configuration.Configuration; import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.parallel.ResourceLock; +import org.junit.jupiter.api.parallel.Resources; import static org.junit.jupiter.api.Assertions.assertNull; import static org.junit.jupiter.api.Assertions.assertSame; import static org.junit.jupiter.api.Assertions.assertThrows; @@ -125,6 +127,64 @@ private static Stream getDefaultTimeoutFromEnvironmentSupplier() { Duration.ofMillis(10000), logger, Duration.ofMillis(42))); } + @ParameterizedTest + @MethodSource("timeoutPrecedenceSupplier") + @ResourceLock(Resources.SYSTEM_PROPERTIES) + public void timeoutPrecedence(Duration explicit, String local, String global, long expectedMillis) { + String property = "ImplUtilsTests.timeout"; + String previous = System.getProperty(property); + try { + System.setProperty(property, global == null ? "" : global); + Configuration configuration = local == null + ? Configuration.none() + : Configuration.from(new TestConfigurationSource().put(property, local)); + assertEquals(Duration.ofMillis(expectedMillis), + ImplUtils.getTimeout(explicit, configuration, property, Duration.ofSeconds(10))); + } finally { + if (previous == null) { + System.clearProperty(property); + } else { + System.setProperty(property, previous); + } + } + } + + private static Stream timeoutPrecedenceSupplier() { + return Stream.of(Arguments.of(Duration.ofSeconds(3), "2000", "1000", 3000), + Arguments.of(Duration.ZERO, "2000", "1000", 0), Arguments.of(Duration.ofNanos(-1), "2000", "1000", 0), + Arguments.of(Duration.ofNanos(1), "2000", "1000", 1), Arguments.of(null, "2000", "1000", 2000), + Arguments.of(null, "0", "1000", 0), Arguments.of(null, "-1", "1000", 0), + Arguments.of(null, null, "1000", 1000), Arguments.of(null, "", "1000", 1000), + Arguments.of(null, "invalid", "1000", 1000), Arguments.of(null, null, "0", 0), + Arguments.of(null, null, "-1", 0), Arguments.of(null, null, "invalid", 10000), + Arguments.of(null, null, null, 10000)); + } + + @Test + @ResourceLock(Resources.SYSTEM_PROPERTIES) + public void globalTimeoutIsResolvedOnEachCall() { + String property = "ImplUtilsTests.timeout"; + String previous = System.getProperty(property); + try { + for (String value : new String[] { "1000", "2000" }) { + System.setProperty(property, value); + for (Configuration configuration : new Configuration[] { + null, + Configuration.getGlobalConfiguration(), + Configuration.none() }) { + assertEquals(Duration.ofMillis(Long.parseLong(value)), + ImplUtils.getTimeout(null, configuration, property, Duration.ofSeconds(10))); + } + } + } finally { + if (previous == null) { + System.clearProperty(property); + } else { + System.setProperty(property, previous); + } + } + } + @Test public void parseNullQueryParameters() { assertFalse(new ImplUtils.QueryParameterIterator(null).hasNext()); diff --git a/sdk/clientcore/http-netty4/CHANGELOG.md b/sdk/clientcore/http-netty4/CHANGELOG.md index 83adb572ef0ac..dfe5ef4029400 100644 --- a/sdk/clientcore/http-netty4/CHANGELOG.md +++ b/sdk/clientcore/http-netty4/CHANGELOG.md @@ -8,6 +8,8 @@ ### Bugs Fixed +- Fixed timeout resolution to prefer explicit builder values, then builder-specific configuration, then global + configuration, and finally SDK defaults. - Fixed response and read timeouts not being enforced when the write timeout is disabled. ### Other Changes diff --git a/sdk/clientcore/http-netty4/src/main/java/io/clientcore/http/netty4/NettyHttpClientBuilder.java b/sdk/clientcore/http-netty4/src/main/java/io/clientcore/http/netty4/NettyHttpClientBuilder.java index ef38cddf23eeb..e2debf6570da5 100644 --- a/sdk/clientcore/http-netty4/src/main/java/io/clientcore/http/netty4/NettyHttpClientBuilder.java +++ b/sdk/clientcore/http-netty4/src/main/java/io/clientcore/http/netty4/NettyHttpClientBuilder.java @@ -35,6 +35,12 @@ import java.util.concurrent.ThreadFactory; import java.util.function.Consumer; +import static io.clientcore.core.implementation.utils.ImplUtils.getDefaultHttpConnectTimeout; +import static io.clientcore.core.implementation.utils.ImplUtils.getDefaultHttpReadTimeout; +import static io.clientcore.core.implementation.utils.ImplUtils.getDefaultHttpResponseTimeout; +import static io.clientcore.core.implementation.utils.ImplUtils.getDefaultHttpWriteTimeout; +import static io.clientcore.core.implementation.utils.ImplUtils.getTimeout; + /** * Builder for creating instances of NettyHttpClient. */ @@ -210,8 +216,9 @@ public NettyHttpClientBuilder sslContextModifier(Consumer ssl /** * Sets the configuration store that is used during construction of the HTTP client. *

- * The default configuration store is a clone of the {@link Configuration#getGlobalConfiguration() global - * configuration store}. + * The default configuration store is the {@link Configuration#getGlobalConfiguration() global configuration store}. + * Timeouts explicitly set on this builder take precedence over this store, then the global store, then the default + * timeout. Missing timeout values fall back to the global store even when {@link Configuration#none()} is supplied. * * @param configuration The configuration store. * @return The updated builder. @@ -223,6 +230,9 @@ public NettyHttpClientBuilder configuration(Configuration configuration) { /** * Sets the connection timeout. + *

+ * The default is 10 seconds. A duration less than or equal to zero disables the timeout. Positive durations less + * than one millisecond use one millisecond. * * @param connectTimeout The connection timeout. * @return The updated builder. @@ -234,6 +244,9 @@ public NettyHttpClientBuilder connectTimeout(Duration connectTimeout) { /** * Sets the read timeout. + *

+ * The default is 60 seconds. A duration less than or equal to zero disables the timeout. Positive durations less + * than one millisecond use one millisecond. * * @param readTimeout The read timeout. * @return The updated builder. @@ -245,6 +258,9 @@ public NettyHttpClientBuilder readTimeout(Duration readTimeout) { /** * Sets the response timeout. + *

+ * The default is 60 seconds. A duration less than or equal to zero disables the timeout. Positive durations less + * than one millisecond use one millisecond. * * @param responseTimeout The response timeout. * @return The updated builder. @@ -256,6 +272,9 @@ public NettyHttpClientBuilder responseTimeout(Duration responseTimeout) { /** * Sets the write timeout. + *

+ * The default is 60 seconds. A duration less than or equal to zero disables the timeout. Positive durations less + * than one millisecond use one millisecond. * * @param writeTimeout The write timeout. * @return The updated builder. @@ -407,7 +426,8 @@ public HttpClient build() { Bootstrap bootstrap = new Bootstrap().group(group) .channel(channelClass) - .option(ChannelOption.CONNECT_TIMEOUT_MILLIS, (int) getTimeoutMillis(connectTimeout, 10_000)); + .option(ChannelOption.CONNECT_TIMEOUT_MILLIS, (int) getTimeout(connectTimeout, configuration, + Configuration.REQUEST_CONNECT_TIMEOUT_IN_MS, getDefaultHttpConnectTimeout()).toMillis()); bootstrap.option(ChannelOption.ALLOCATOR, // If io.netty.allocator.type was configured, respect the configuration. Otherwise, fallback to the default // setting from Netty 4.1 which was the pooled allocator. In the future, this should be validated for if @@ -440,7 +460,12 @@ public HttpClient build() { return new NettyHttpClient(bootstrap, group, connectionPool, buildProxyOptions, new ChannelInitializationProxyHandler(buildProxyOptions), sslContextModifier, maximumHttpVersion, - getTimeoutMillis(readTimeout), getTimeoutMillis(responseTimeout), getTimeoutMillis(writeTimeout)); + getTimeout(readTimeout, configuration, Configuration.REQUEST_READ_TIMEOUT_IN_MS, + getDefaultHttpReadTimeout()).toMillis(), + getTimeout(responseTimeout, configuration, Configuration.REQUEST_RESPONSE_TIMEOUT_IN_MS, + getDefaultHttpResponseTimeout()).toMillis(), + getTimeout(writeTimeout, configuration, Configuration.REQUEST_WRITE_TIMEOUT_IN_MS, + getDefaultHttpWriteTimeout()).toMillis()); } static long getTimeoutMillis(Duration duration) { @@ -448,15 +473,7 @@ static long getTimeoutMillis(Duration duration) { } static long getTimeoutMillis(Duration duration, long defaultTimeout) { - if (duration == null) { - return defaultTimeout; - } - - if (duration.isNegative() || duration.isZero()) { - return 0; - } - - return Math.max(1, duration.toMillis()); + return getTimeout(duration, Duration.ofMillis(defaultTimeout)).toMillis(); } // For testing. diff --git a/sdk/clientcore/http-netty4/src/test/java/io/clientcore/http/netty4/NettyHttpClientBuilderTests.java b/sdk/clientcore/http-netty4/src/test/java/io/clientcore/http/netty4/NettyHttpClientBuilderTests.java index ac0e01e2f2add..7d57bdb5431d1 100644 --- a/sdk/clientcore/http-netty4/src/test/java/io/clientcore/http/netty4/NettyHttpClientBuilderTests.java +++ b/sdk/clientcore/http-netty4/src/test/java/io/clientcore/http/netty4/NettyHttpClientBuilderTests.java @@ -37,6 +37,7 @@ import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.MethodSource; +import org.junit.jupiter.params.provider.ValueSource; import java.io.IOException; import java.lang.invoke.MethodHandle; @@ -329,6 +330,45 @@ private static Stream getTimeoutMillisSupplier() { Arguments.of(Duration.ofNanos(1), TimeUnit.MILLISECONDS.toMillis(1))); } + @ParameterizedTest + @ValueSource(longs = { -1, 0, 123000 }) + public void configuredTimeoutsAndExplicitOverrides(long timeoutMillis) throws ReflectiveOperationException { + String value = Long.toString(timeoutMillis); + Configuration configuration + = Configuration.from(new TestConfigurationSource().put(Configuration.REQUEST_CONNECT_TIMEOUT_IN_MS, value) + .put(Configuration.REQUEST_READ_TIMEOUT_IN_MS, value) + .put(Configuration.REQUEST_WRITE_TIMEOUT_IN_MS, value) + .put(Configuration.REQUEST_RESPONSE_TIMEOUT_IN_MS, value)); + EventLoopGroup group = new MultiThreadIoEventLoopGroup(1, NioIoHandler.newFactory()); + try { + NettyHttpClientBuilder builder + = new NettyHttpClientBuilder().eventLoopGroup(group).configuration(configuration).connectionPoolSize(0); + assertTimeouts((NettyHttpClient) builder.build(), Math.max(0, timeoutMillis)); + assertTimeouts((NettyHttpClient) builder.connectTimeout(Duration.ofMillis(456000)) + .readTimeout(Duration.ofMillis(456000)) + .writeTimeout(Duration.ofMillis(456000)) + .responseTimeout(Duration.ofMillis(456000)) + .build(), 456000); + assertTimeouts((NettyHttpClient) builder.connectTimeout(Duration.ofNanos(-1)) + .readTimeout(Duration.ZERO) + .writeTimeout(Duration.ofNanos(-1)) + .responseTimeout(Duration.ZERO) + .build(), 0); + } finally { + group.shutdownGracefully(0, 5, TimeUnit.SECONDS).syncUninterruptibly(); + } + } + + private static void assertTimeouts(NettyHttpClient client, long expected) throws ReflectiveOperationException { + assertEquals((int) expected, + client.getBootstrap().config().options().get(ChannelOption.CONNECT_TIMEOUT_MILLIS)); + for (String name : new String[] { "readTimeoutMillis", "writeTimeoutMillis", "responseTimeoutMillis" }) { + Field field = NettyHttpClient.class.getDeclaredField(name); + field.setAccessible(true); + assertEquals(expected, field.getLong(client)); + } + } + @Test public void preservesAllocatorAndResolverDefaults() { NettyHttpClient client = (NettyHttpClient) new NettyHttpClientBuilder().build(); diff --git a/sdk/clientcore/http-okhttp3/CHANGELOG.md b/sdk/clientcore/http-okhttp3/CHANGELOG.md index 17f400f125a95..9cfa3d09d5bdc 100644 --- a/sdk/clientcore/http-okhttp3/CHANGELOG.md +++ b/sdk/clientcore/http-okhttp3/CHANGELOG.md @@ -8,6 +8,9 @@ ### Bugs Fixed +- Fixed timeout resolution to prefer explicit builder values, then builder-specific configuration, then global + configuration, and finally SDK defaults. Nonpositive call timeouts now disable the timeout instead of rejecting + negative values. - Prevented proxy authentication retries for HTTPS endpoint 407 responses while preserving CONNECT and cleartext HTTP proxy authentication. - Fixed configured default connection, read, and write timeouts being ignored when no explicit builder timeout is set. diff --git a/sdk/clientcore/http-okhttp3/src/main/java/io/clientcore/http/okhttp3/OkHttpHttpClientBuilder.java b/sdk/clientcore/http-okhttp3/src/main/java/io/clientcore/http/okhttp3/OkHttpHttpClientBuilder.java index 5258c944dfc9a..d16f9eb8c3405 100644 --- a/sdk/clientcore/http-okhttp3/src/main/java/io/clientcore/http/okhttp3/OkHttpHttpClientBuilder.java +++ b/sdk/clientcore/http-okhttp3/src/main/java/io/clientcore/http/okhttp3/OkHttpHttpClientBuilder.java @@ -7,7 +7,6 @@ import io.clientcore.core.http.client.HttpProtocolVersion; import io.clientcore.core.http.client.JdkHttpClientBuilder; import io.clientcore.core.http.models.ProxyOptions; -import io.clientcore.core.instrumentation.logging.ClientLogger; import io.clientcore.core.utils.ChallengeHandler; import io.clientcore.core.utils.configuration.Configuration; import io.clientcore.http.okhttp3.implementation.OkHttpProxySelector; @@ -28,14 +27,12 @@ import java.util.List; import java.util.Objects; -import static io.clientcore.core.implementation.utils.ImplUtils.getDefaultTimeoutFromEnvironment; +import static io.clientcore.core.implementation.utils.ImplUtils.getTimeout; /** * Builder class responsible for creating instances of {@link HttpClient} backed by OkHttp. */ public class OkHttpHttpClientBuilder { - private static final ClientLogger LOGGER = new ClientLogger(OkHttpHttpClientBuilder.class); - private static final Duration MINIMUM_TIMEOUT = Duration.ofMillis(1); private static final Duration DEFAULT_CONNECT_TIMEOUT = Duration.ofSeconds(10); private static final Duration DEFAULT_WRITE_TIMEOUT = Duration.ofSeconds(60); private static final Duration DEFAULT_READ_TIMEOUT = Duration.ofSeconds(60); @@ -91,8 +88,9 @@ public OkHttpHttpClientBuilder followRedirects(boolean followRedirects) { /** * Sets the configuration store that is used during construction of the HTTP client. *

- * The default configuration store is a clone of the {@link Configuration#getGlobalConfiguration() global - * configuration store}. + * The default configuration store is the {@link Configuration#getGlobalConfiguration() global configuration store}. + * Timeouts explicitly set on this builder take precedence over this store, then the global store, then the default + * timeout. Missing timeout values fall back to the global store even when {@link Configuration#none()} is supplied. * * @param configuration The configuration store. * @return The updated {@link OkHttpHttpClientBuilder} object. @@ -164,8 +162,9 @@ public OkHttpHttpClientBuilder connectionTimeout(Duration connectionTimeout) { * The call timeout spans the entire call: resolving DNS, connecting, writing the request body, * server processing, and reading the response body. *

- * Null or {@link Duration#ZERO} means no call timeout, otherwise values - * must be between 1 and {@link Integer#MAX_VALUE} when converted to milliseconds. + * Null leaves the underlying client's call timeout unchanged. A duration less than or equal to zero disables the + * call timeout. Positive values less than one millisecond use one millisecond and must not exceed + * {@link Integer#MAX_VALUE} when converted to milliseconds. *

* By default, call timeout is not enabled. * @@ -175,12 +174,7 @@ public OkHttpHttpClientBuilder connectionTimeout(Duration connectionTimeout) { */ public OkHttpHttpClientBuilder callTimeout(Duration callTimeout) { // callTimeout can be null - if (callTimeout != null && callTimeout.isNegative()) { - throw LOGGER.throwableAtError().log("'callTimeout' cannot be negative", IllegalArgumentException::new); - } - this.callTimeout = callTimeout; - return this; } @@ -341,18 +335,16 @@ public HttpClient build() { // Configure operation timeouts. httpClientBuilder - .connectTimeout(getTimeout(connectionTimeout, - getDefaultTimeoutFromEnvironment(buildConfiguration, Configuration.REQUEST_CONNECT_TIMEOUT_IN_MS, - DEFAULT_CONNECT_TIMEOUT, LOGGER))) - .writeTimeout(getTimeout(writeTimeout, - getDefaultTimeoutFromEnvironment(buildConfiguration, Configuration.REQUEST_WRITE_TIMEOUT_IN_MS, - DEFAULT_WRITE_TIMEOUT, LOGGER))) - .readTimeout(getTimeout(readTimeout, getDefaultTimeoutFromEnvironment(buildConfiguration, - Configuration.REQUEST_READ_TIMEOUT_IN_MS, DEFAULT_READ_TIMEOUT, LOGGER))); + .connectTimeout(getTimeout(connectionTimeout, configuration, Configuration.REQUEST_CONNECT_TIMEOUT_IN_MS, + DEFAULT_CONNECT_TIMEOUT)) + .writeTimeout(getTimeout(writeTimeout, configuration, Configuration.REQUEST_WRITE_TIMEOUT_IN_MS, + DEFAULT_WRITE_TIMEOUT)) + .readTimeout( + getTimeout(readTimeout, configuration, Configuration.REQUEST_READ_TIMEOUT_IN_MS, DEFAULT_READ_TIMEOUT)); if (callTimeout != null) { // Call timeout is disabled by default. - httpClientBuilder.callTimeout(callTimeout); + httpClientBuilder.callTimeout(getTimeout(callTimeout, Duration.ZERO)); } // If set use the configured connection pool. @@ -400,29 +392,4 @@ public HttpClient build() { return new OkHttpHttpClient(httpClientBuilder.build()); } - - /* - * Returns the timeout in milliseconds to use based on the passed Duration and default timeout. - * - * If the timeout is {@code null} the default timeout will be used. If the timeout is less than or equal to zero - * no timeout will be used. If the timeout is less than one millisecond a timeout of one millisecond will be used. - */ - static Duration getTimeout(Duration configuredTimeout, Duration defaultTimeout) { - // Timeout is null, use the default timeout. - if (configuredTimeout == null) { - return defaultTimeout; - } - - // Timeout is less than or equal to zero, return no timeout. - if (configuredTimeout.isZero() || configuredTimeout.isNegative()) { - return Duration.ZERO; - } - - // Return the maximum of the timeout period and the minimum allowed timeout period. - if (configuredTimeout.compareTo(MINIMUM_TIMEOUT) < 0) { - return MINIMUM_TIMEOUT; - } else { - return configuredTimeout; - } - } } diff --git a/sdk/clientcore/http-okhttp3/src/test/java/io/clientcore/http/okhttp3/OkHttpHttpClientBuilderTests.java b/sdk/clientcore/http-okhttp3/src/test/java/io/clientcore/http/okhttp3/OkHttpHttpClientBuilderTests.java index a705e4fc784ff..10237a2839e0b 100644 --- a/sdk/clientcore/http-okhttp3/src/test/java/io/clientcore/http/okhttp3/OkHttpHttpClientBuilderTests.java +++ b/sdk/clientcore/http-okhttp3/src/test/java/io/clientcore/http/okhttp3/OkHttpHttpClientBuilderTests.java @@ -30,6 +30,7 @@ import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.CsvSource; import org.junit.jupiter.params.provider.MethodSource; +import org.junit.jupiter.params.provider.ValueSource; import javax.servlet.ServletException; import java.io.IOException; @@ -292,13 +293,12 @@ public void buildWithCallTimeout() { } } - /** - * Tests building a client with negative callTimeout. - */ - @Test - public void throwsWithNegativeCallTimeout() { - assertThrows(IllegalArgumentException.class, - () -> new OkHttpHttpClientBuilder().callTimeout(Duration.ofSeconds(-1))); + @ParameterizedTest + @ValueSource(longs = { -1, 0 }) + public void nonpositiveCallTimeoutIsDisabled(long timeoutMillis) { + OkHttpHttpClient client + = (OkHttpHttpClient) new OkHttpHttpClientBuilder().callTimeout(Duration.ofMillis(timeoutMillis)).build(); + assertEquals(0, client.httpClient.callTimeoutMillis()); } /** @@ -338,17 +338,20 @@ public void configuredTimeoutsAreUsed(String connect, String read, String write, expectedWrite); } - @Test - public void explicitTimeoutsOverrideConfiguration() { + @ParameterizedTest + @ValueSource(longs = { -1, 0, 60000 }) + public void explicitTimeoutsOverrideConfiguration(long timeoutMillis) { Configuration configuration = Configuration .from(new TestConfigurationSource().put(Configuration.REQUEST_CONNECT_TIMEOUT_IN_MS, "123000") .put(Configuration.REQUEST_READ_TIMEOUT_IN_MS, "234000") .put(Configuration.REQUEST_WRITE_TIMEOUT_IN_MS, "345000")); - validateTimeouts(new OkHttpHttpClientBuilder().configuration(configuration) - .connectionTimeout(Duration.ofMillis(60001)) - .readTimeout(Duration.ofMillis(60002)) - .writeTimeout(Duration.ofMillis(60003)), 60001, 60002, 60003); + validateTimeouts( + new OkHttpHttpClientBuilder().configuration(configuration) + .connectionTimeout(Duration.ofMillis(timeoutMillis)) + .readTimeout(Duration.ofMillis(timeoutMillis)) + .writeTimeout(Duration.ofMillis(timeoutMillis)), + (int) Math.max(0, timeoutMillis), (int) Math.max(0, timeoutMillis), (int) Math.max(0, timeoutMillis)); } private static void validateTimeouts(OkHttpHttpClientBuilder builder, int connect, int read, int write) { diff --git a/sdk/core/azure-core-http-jdk-httpclient/CHANGELOG.md b/sdk/core/azure-core-http-jdk-httpclient/CHANGELOG.md index 35d0d59d5adeb..a4647a5ae345f 100644 --- a/sdk/core/azure-core-http-jdk-httpclient/CHANGELOG.md +++ b/sdk/core/azure-core-http-jdk-httpclient/CHANGELOG.md @@ -8,6 +8,8 @@ ### Bugs Fixed +- Fixed timeout resolution to prefer explicit builder values, then builder-specific configuration, then global + configuration, and finally SDK defaults. - Fixed client construction failing when the connection timeout is disabled. - Fixed per-call response timeout overrides incorrectly changing asynchronous response-body read timeouts. - Fixed response timeouts expiring during otherwise valid request-body uploads. diff --git a/sdk/core/azure-core-http-jdk-httpclient/src/main/java/com/azure/core/http/jdk/httpclient/JdkHttpClientBuilder.java b/sdk/core/azure-core-http-jdk-httpclient/src/main/java/com/azure/core/http/jdk/httpclient/JdkHttpClientBuilder.java index ef800264f7540..56109d8d9c86d 100644 --- a/sdk/core/azure-core-http-jdk-httpclient/src/main/java/com/azure/core/http/jdk/httpclient/JdkHttpClientBuilder.java +++ b/sdk/core/azure-core-http-jdk-httpclient/src/main/java/com/azure/core/http/jdk/httpclient/JdkHttpClientBuilder.java @@ -25,11 +25,15 @@ import java.util.Set; import java.util.concurrent.Executor; -import static com.azure.core.implementation.util.HttpUtils.getDefaultConnectTimeout; -import static com.azure.core.implementation.util.HttpUtils.getDefaultReadTimeout; -import static com.azure.core.implementation.util.HttpUtils.getDefaultResponseTimeout; -import static com.azure.core.implementation.util.HttpUtils.getDefaultWriteTimeout; +import static com.azure.core.implementation.util.HttpUtils.DEFAULT_CONNECT_TIMEOUT; +import static com.azure.core.implementation.util.HttpUtils.DEFAULT_READ_TIMEOUT; +import static com.azure.core.implementation.util.HttpUtils.DEFAULT_RESPONSE_TIMEOUT; +import static com.azure.core.implementation.util.HttpUtils.DEFAULT_WRITE_TIMEOUT; import static com.azure.core.implementation.util.HttpUtils.getTimeout; +import static com.azure.core.util.Configuration.PROPERTY_AZURE_REQUEST_CONNECT_TIMEOUT; +import static com.azure.core.util.Configuration.PROPERTY_AZURE_REQUEST_READ_TIMEOUT; +import static com.azure.core.util.Configuration.PROPERTY_AZURE_REQUEST_RESPONSE_TIMEOUT; +import static com.azure.core.util.Configuration.PROPERTY_AZURE_REQUEST_WRITE_TIMEOUT; /** * Builder to configure and build an instance of the azure-core {@link HttpClient} type using the JDK HttpClient APIs, @@ -218,8 +222,10 @@ public JdkHttpClientBuilder proxy(ProxyOptions proxyOptions) { /** * Sets the configuration store that is used during construction of the HTTP client. *

- * The default configuration store is a clone of the {@link Configuration#getGlobalConfiguration() global - * configuration store}, use {@link Configuration#NONE} to bypass using configuration settings during construction. + * The default configuration store is the {@link Configuration#getGlobalConfiguration() global configuration store}. + * Timeouts explicitly set on this builder take precedence over this store, then the global store, then the default + * timeout. Use {@link Configuration#NONE} to bypass other configuration settings during construction; unset + * timeouts still fall back to the global store. * * @param configuration The configuration store used to * @return The updated JdkHttpClientBuilder object. @@ -241,14 +247,18 @@ public HttpClient build() { // Azure JDK http client supports HTTP 1.1 by default. httpClientBuilder.version(java.net.http.HttpClient.Version.HTTP_1_1); - Duration connectionTimeout = getTimeout(this.connectionTimeout, getDefaultConnectTimeout()); + Duration connectionTimeout = getTimeout(this.connectionTimeout, configuration, + PROPERTY_AZURE_REQUEST_CONNECT_TIMEOUT, DEFAULT_CONNECT_TIMEOUT); if (!connectionTimeout.isZero()) { httpClientBuilder.connectTimeout(connectionTimeout); } - Duration writeTimeout = getTimeout(this.writeTimeout, getDefaultWriteTimeout()); - Duration responseTimeout = getTimeout(this.responseTimeout, getDefaultResponseTimeout()); - Duration readTimeout = getTimeout(this.readTimeout, getDefaultReadTimeout()); + Duration writeTimeout + = getTimeout(this.writeTimeout, configuration, PROPERTY_AZURE_REQUEST_WRITE_TIMEOUT, DEFAULT_WRITE_TIMEOUT); + Duration responseTimeout = getTimeout(this.responseTimeout, configuration, + PROPERTY_AZURE_REQUEST_RESPONSE_TIMEOUT, DEFAULT_RESPONSE_TIMEOUT); + Duration readTimeout + = getTimeout(this.readTimeout, configuration, PROPERTY_AZURE_REQUEST_READ_TIMEOUT, DEFAULT_READ_TIMEOUT); Configuration buildConfiguration = (configuration == null) ? Configuration.getGlobalConfiguration() : configuration; diff --git a/sdk/core/azure-core-http-jdk-httpclient/src/test/java/com/azure/core/http/jdk/httpclient/JdkHttpClientBuilderTests.java b/sdk/core/azure-core-http-jdk-httpclient/src/test/java/com/azure/core/http/jdk/httpclient/JdkHttpClientBuilderTests.java index db72428ce7283..0ed22a91fb38c 100644 --- a/sdk/core/azure-core-http-jdk-httpclient/src/test/java/com/azure/core/http/jdk/httpclient/JdkHttpClientBuilderTests.java +++ b/sdk/core/azure-core-http-jdk-httpclient/src/test/java/com/azure/core/http/jdk/httpclient/JdkHttpClientBuilderTests.java @@ -105,6 +105,39 @@ public void disabledConnectionTimeoutDoesNotThrow(long timeoutMillis) { assertFalse(nativeBuilder.build().connectTimeout().isPresent()); } + @ParameterizedTest + @ValueSource(longs = { -1, 0, 123000 }) + public void configuredTimeoutsAndExplicitOverrides(long timeoutMillis) throws ReflectiveOperationException { + String value = Long.toString(timeoutMillis); + Configuration configuration = new ConfigurationBuilder(EMPTY_SOURCE, + new TestConfigurationSource().put(Configuration.PROPERTY_AZURE_REQUEST_CONNECT_TIMEOUT, value) + .put(Configuration.PROPERTY_AZURE_REQUEST_READ_TIMEOUT, value) + .put(Configuration.PROPERTY_AZURE_REQUEST_WRITE_TIMEOUT, value) + .put(Configuration.PROPERTY_AZURE_REQUEST_RESPONSE_TIMEOUT, value), + EMPTY_SOURCE).build(); + java.net.http.HttpClient.Builder nativeBuilder = java.net.http.HttpClient.newBuilder(); + JdkHttpClientBuilder builder = new JdkHttpClientBuilder(nativeBuilder).configuration(configuration); + assertTimeouts((JdkHttpClient) builder.build(), Math.max(0, timeoutMillis)); + assertEquals(Duration.ofMillis(Math.max(0, timeoutMillis)), + nativeBuilder.build().connectTimeout().orElse(Duration.ZERO)); + + assertTimeouts((JdkHttpClient) builder.connectionTimeout(Duration.ofMillis(456000)) + .readTimeout(Duration.ofMillis(456000)) + .writeTimeout(Duration.ofMillis(456000)) + .responseTimeout(Duration.ofMillis(456000)) + .build(), 456000); + assertEquals(Duration.ofMillis(456000), nativeBuilder.build().connectTimeout().get()); + } + + private static void assertTimeouts(JdkHttpClient client, long expected) throws ReflectiveOperationException { + for (String name : new String[] { "readTimeout", "writeTimeout", "responseTimeout" }) { + java.lang.reflect.Field field = JdkHttpClient.class.getDeclaredField(name); + field.setAccessible(true); + assertEquals(expected == 0 && !"readTimeout".equals(name) ? null : Duration.ofMillis(expected), + field.get(client)); + } + } + /** * Tests building a client with a given {@code Executor}. */ diff --git a/sdk/core/azure-core-http-netty/CHANGELOG.md b/sdk/core/azure-core-http-netty/CHANGELOG.md index ea31e27717b7a..bb6dfa91f8014 100644 --- a/sdk/core/azure-core-http-netty/CHANGELOG.md +++ b/sdk/core/azure-core-http-netty/CHANGELOG.md @@ -11,6 +11,8 @@ ### Bugs Fixed +- Fixed timeout resolution to prefer explicit builder values, then builder-specific configuration, then global + configuration, and finally SDK defaults. - Preserved asynchronous file downloads when Netty uses scoped direct buffers on newer JDKs. - Declared the Netty transport dependency directly to prevent older transitive transports from being selected. - Fixed response and read timeouts not being enforced when the write timeout is disabled. diff --git a/sdk/core/azure-core-http-netty/src/main/java/com/azure/core/http/netty/NettyAsyncHttpClientBuilder.java b/sdk/core/azure-core-http-netty/src/main/java/com/azure/core/http/netty/NettyAsyncHttpClientBuilder.java index 2909fb0cd2926..48c8ff9506ed9 100644 --- a/sdk/core/azure-core-http-netty/src/main/java/com/azure/core/http/netty/NettyAsyncHttpClientBuilder.java +++ b/sdk/core/azure-core-http-netty/src/main/java/com/azure/core/http/netty/NettyAsyncHttpClientBuilder.java @@ -41,11 +41,15 @@ import java.util.concurrent.atomic.AtomicReference; import java.util.regex.Pattern; -import static com.azure.core.implementation.util.HttpUtils.getDefaultConnectTimeout; -import static com.azure.core.implementation.util.HttpUtils.getDefaultReadTimeout; -import static com.azure.core.implementation.util.HttpUtils.getDefaultResponseTimeout; -import static com.azure.core.implementation.util.HttpUtils.getDefaultWriteTimeout; +import static com.azure.core.implementation.util.HttpUtils.DEFAULT_CONNECT_TIMEOUT; +import static com.azure.core.implementation.util.HttpUtils.DEFAULT_READ_TIMEOUT; +import static com.azure.core.implementation.util.HttpUtils.DEFAULT_RESPONSE_TIMEOUT; +import static com.azure.core.implementation.util.HttpUtils.DEFAULT_WRITE_TIMEOUT; import static com.azure.core.implementation.util.HttpUtils.getTimeout; +import static com.azure.core.util.Configuration.PROPERTY_AZURE_REQUEST_CONNECT_TIMEOUT; +import static com.azure.core.util.Configuration.PROPERTY_AZURE_REQUEST_READ_TIMEOUT; +import static com.azure.core.util.Configuration.PROPERTY_AZURE_REQUEST_RESPONSE_TIMEOUT; +import static com.azure.core.util.Configuration.PROPERTY_AZURE_REQUEST_WRITE_TIMEOUT; /** *

@@ -219,15 +223,22 @@ public com.azure.core.http.HttpClient build() { setDefaultAddressResolverGroup = true; } - long writeTimeout = getTimeout(this.writeTimeout, getDefaultWriteTimeout()).toMillis(); - long responseTimeout = getTimeout(this.responseTimeout, getDefaultResponseTimeout()).toMillis(); - long readTimeout = getTimeout(this.readTimeout, getDefaultReadTimeout()).toMillis(); + long writeTimeout + = getTimeout(this.writeTimeout, configuration, PROPERTY_AZURE_REQUEST_WRITE_TIMEOUT, DEFAULT_WRITE_TIMEOUT) + .toMillis(); + long responseTimeout = getTimeout(this.responseTimeout, configuration, PROPERTY_AZURE_REQUEST_RESPONSE_TIMEOUT, + DEFAULT_RESPONSE_TIMEOUT).toMillis(); + long readTimeout + = getTimeout(this.readTimeout, configuration, PROPERTY_AZURE_REQUEST_READ_TIMEOUT, DEFAULT_READ_TIMEOUT) + .toMillis(); // Get the initial HttpResponseDecoderSpec and update it. // .httpResponseDecoder passes a new HttpResponseDecoderSpec and any existing configuration should be updated // instead of overwritten. HttpResponseDecoderSpec initialSpec = nettyHttpClient.configuration().decoder(); - long connectTimeoutMillis = getTimeout(connectTimeout, getDefaultConnectTimeout()).toMillis(); + long connectTimeoutMillis + = getTimeout(connectTimeout, configuration, PROPERTY_AZURE_REQUEST_CONNECT_TIMEOUT, DEFAULT_CONNECT_TIMEOUT) + .toMillis(); nettyHttpClient = nettyHttpClient.port(port) .option(ChannelOption.CONNECT_TIMEOUT_MILLIS, (int) connectTimeoutMillis) .httpResponseDecoder(httpResponseDecoderSpec -> { @@ -431,8 +442,10 @@ public NettyAsyncHttpClientBuilder eventLoopGroup(EventLoopGroup eventLoopGroup) /** * Sets the configuration store that is used during construction of the HTTP client. *

- * The default configuration store is a clone of the {@link Configuration#getGlobalConfiguration() global - * configuration store}, use {@link Configuration#NONE} to bypass using configuration settings during construction. + * The default configuration store is the {@link Configuration#getGlobalConfiguration() global configuration store}. + * Timeouts explicitly set on this builder take precedence over this store, then the global store, then the default + * timeout. Use {@link Configuration#NONE} to bypass other configuration settings during construction; unset + * timeouts still fall back to the global store. * * @param configuration The configuration store used to * @return The updated NettyAsyncHttpClientBuilder object. diff --git a/sdk/core/azure-core-http-netty/src/test/java/com/azure/core/http/netty/NettyAsyncHttpClientBuilderTests.java b/sdk/core/azure-core-http-netty/src/test/java/com/azure/core/http/netty/NettyAsyncHttpClientBuilderTests.java index e93d31a8978ce..e8709eaf9306f 100644 --- a/sdk/core/azure-core-http-netty/src/test/java/com/azure/core/http/netty/NettyAsyncHttpClientBuilderTests.java +++ b/sdk/core/azure-core-http-netty/src/test/java/com/azure/core/http/netty/NettyAsyncHttpClientBuilderTests.java @@ -34,6 +34,7 @@ import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.MethodSource; +import org.junit.jupiter.params.provider.ValueSource; import reactor.netty.http.client.HttpClient; import reactor.netty.http.client.HttpResponseDecoderSpec; import reactor.netty.resources.ConnectionProvider; @@ -590,6 +591,26 @@ private static Stream getTimeoutMillisSupplier() { Arguments.of(Duration.ofNanos(1), TimeUnit.MILLISECONDS.toMillis(1))); } + @ParameterizedTest + @ValueSource(longs = { -1, 0, 123000 }) + public void configuredConnectionTimeoutAndExplicitOverride(long timeoutMillis) { + Configuration configuration = new ConfigurationBuilder(EMPTY_SOURCE, new TestConfigurationSource() + .put(Configuration.PROPERTY_AZURE_REQUEST_CONNECT_TIMEOUT, Long.toString(timeoutMillis)), EMPTY_SOURCE) + .build(); + NettyAsyncHttpClientBuilder builder = new NettyAsyncHttpClientBuilder().configuration(configuration); + NettyAsyncHttpClient configured = (NettyAsyncHttpClient) builder.build(); + assertEquals((int) Math.max(0, timeoutMillis), + configured.nettyClient.configuration().options().get(ChannelOption.CONNECT_TIMEOUT_MILLIS)); + + NettyAsyncHttpClient overridden + = (NettyAsyncHttpClient) builder.connectTimeout(Duration.ofMillis(456000)).build(); + assertEquals(456000, + overridden.nettyClient.configuration().options().get(ChannelOption.CONNECT_TIMEOUT_MILLIS)); + + NettyAsyncHttpClient disabled = (NettyAsyncHttpClient) builder.connectTimeout(Duration.ofNanos(-1)).build(); + assertEquals(0, disabled.nettyClient.configuration().options().get(ChannelOption.CONNECT_TIMEOUT_MILLIS)); + } + @Test @SuppressWarnings("deprecation") // maxChunkSize is deprecated in a future version of Reactor Netty public void preconfiguredHttpResponseDecoderIsMaintained() { diff --git a/sdk/core/azure-core-http-okhttp/CHANGELOG.md b/sdk/core/azure-core-http-okhttp/CHANGELOG.md index 946cd55bb63b9..7bc8c2047e689 100644 --- a/sdk/core/azure-core-http-okhttp/CHANGELOG.md +++ b/sdk/core/azure-core-http-okhttp/CHANGELOG.md @@ -8,6 +8,9 @@ ### Bugs Fixed +- Fixed timeout resolution to prefer explicit builder values, then builder-specific configuration, then global + configuration, and finally SDK defaults. Nonpositive call timeouts now disable the timeout instead of rejecting + negative values. - Prevented proxy authentication retries for HTTPS endpoint 407 responses while preserving CONNECT and cleartext HTTP proxy authentication. - Fixed response timeouts remaining active while reading the response body after an `Expect: 100-continue` handshake. diff --git a/sdk/core/azure-core-http-okhttp/src/main/java/com/azure/core/http/okhttp/OkHttpAsyncHttpClientBuilder.java b/sdk/core/azure-core-http-okhttp/src/main/java/com/azure/core/http/okhttp/OkHttpAsyncHttpClientBuilder.java index 54ebb9a3737b0..dcf731f62a350 100644 --- a/sdk/core/azure-core-http-okhttp/src/main/java/com/azure/core/http/okhttp/OkHttpAsyncHttpClientBuilder.java +++ b/sdk/core/azure-core-http-okhttp/src/main/java/com/azure/core/http/okhttp/OkHttpAsyncHttpClientBuilder.java @@ -10,7 +10,6 @@ import com.azure.core.http.okhttp.implementation.ProxyAuthenticator; import com.azure.core.util.Configuration; import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; import okhttp3.ConnectionPool; import okhttp3.Dispatcher; import okhttp3.Interceptor; @@ -21,11 +20,15 @@ import java.util.List; import java.util.Objects; -import static com.azure.core.implementation.util.HttpUtils.getDefaultConnectTimeout; -import static com.azure.core.implementation.util.HttpUtils.getDefaultReadTimeout; -import static com.azure.core.implementation.util.HttpUtils.getDefaultResponseTimeout; -import static com.azure.core.implementation.util.HttpUtils.getDefaultWriteTimeout; +import static com.azure.core.implementation.util.HttpUtils.DEFAULT_CONNECT_TIMEOUT; +import static com.azure.core.implementation.util.HttpUtils.DEFAULT_READ_TIMEOUT; +import static com.azure.core.implementation.util.HttpUtils.DEFAULT_RESPONSE_TIMEOUT; +import static com.azure.core.implementation.util.HttpUtils.DEFAULT_WRITE_TIMEOUT; import static com.azure.core.implementation.util.HttpUtils.getTimeout; +import static com.azure.core.util.Configuration.PROPERTY_AZURE_REQUEST_CONNECT_TIMEOUT; +import static com.azure.core.util.Configuration.PROPERTY_AZURE_REQUEST_READ_TIMEOUT; +import static com.azure.core.util.Configuration.PROPERTY_AZURE_REQUEST_RESPONSE_TIMEOUT; +import static com.azure.core.util.Configuration.PROPERTY_AZURE_REQUEST_WRITE_TIMEOUT; /** * Builder class responsible for creating instances of {@link com.azure.core.http.HttpClient} backed by OkHttp. @@ -112,9 +115,6 @@ * @see OkHttpAsyncHttpClient */ public class OkHttpAsyncHttpClientBuilder { - - private static final ClientLogger LOGGER = new ClientLogger(OkHttpAsyncHttpClientBuilder.class); - private final okhttp3.OkHttpClient okHttpClient; private List networkInterceptors = new ArrayList<>(); @@ -263,8 +263,9 @@ public OkHttpAsyncHttpClientBuilder connectionTimeout(Duration connectionTimeout * The call timeout spans the entire call: resolving DNS, connecting, writing the request body, * server processing, and reading the response body. *

- * Null or {@link Duration#ZERO} means no call timeout, otherwise values - * must be between 1 and {@link Integer#MAX_VALUE} when converted to milliseconds. + * Null leaves the underlying client's call timeout unchanged. A duration less than or equal to zero disables the + * call timeout. Positive values less than one millisecond use one millisecond and must not exceed + * {@link Integer#MAX_VALUE} when converted to milliseconds. *

* By default, call timeout is not enabled. * @@ -274,9 +275,6 @@ public OkHttpAsyncHttpClientBuilder connectionTimeout(Duration connectionTimeout */ public OkHttpAsyncHttpClientBuilder callTimeout(Duration callTimeout) { // callTimeout can be null - if (callTimeout != null && callTimeout.isNegative()) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException("'callTimeout' cannot be negative")); - } this.callTimeout = callTimeout; return this; } @@ -322,8 +320,10 @@ public OkHttpAsyncHttpClientBuilder proxy(ProxyOptions proxyOptions) { /** * Sets the configuration store that is used during construction of the HTTP client. *

- * The default configuration store is a clone of the {@link Configuration#getGlobalConfiguration() global - * configuration store}, use {@link Configuration#NONE} to bypass using configuration settings during construction. + * The default configuration store is the {@link Configuration#getGlobalConfiguration() global configuration store}. + * Timeouts explicitly set on this builder take precedence over this store, then the global store, then the default + * timeout. Use {@link Configuration#NONE} to bypass other configuration settings during construction; unset + * timeouts still fall back to the global store. * * @param configuration The configuration store. * @return The updated OkHttpAsyncHttpClientBuilder object. @@ -363,13 +363,17 @@ public HttpClient build() { } // Configure operation timeouts. - httpClientBuilder.connectTimeout(getTimeout(connectionTimeout, getDefaultConnectTimeout())) - .writeTimeout(getTimeout(writeTimeout, getDefaultWriteTimeout())) - .readTimeout(getTimeout(readTimeout, getDefaultReadTimeout())); + httpClientBuilder + .connectTimeout(getTimeout(connectionTimeout, configuration, PROPERTY_AZURE_REQUEST_CONNECT_TIMEOUT, + DEFAULT_CONNECT_TIMEOUT)) + .writeTimeout( + getTimeout(writeTimeout, configuration, PROPERTY_AZURE_REQUEST_WRITE_TIMEOUT, DEFAULT_WRITE_TIMEOUT)) + .readTimeout( + getTimeout(readTimeout, configuration, PROPERTY_AZURE_REQUEST_READ_TIMEOUT, DEFAULT_READ_TIMEOUT)); if (callTimeout != null) { // Call timeout is disabled by default. - httpClientBuilder.callTimeout(callTimeout); + httpClientBuilder.callTimeout(getTimeout(callTimeout, Duration.ZERO)); } // If set use the configured connection pool. @@ -404,7 +408,7 @@ public HttpClient build() { // Set the followRedirects property. httpClientBuilder.followRedirects(this.followRedirects); - return new OkHttpAsyncHttpClient(httpClientBuilder.build(), - getTimeout(responseTimeout, getDefaultResponseTimeout())); + return new OkHttpAsyncHttpClient(httpClientBuilder.build(), getTimeout(responseTimeout, configuration, + PROPERTY_AZURE_REQUEST_RESPONSE_TIMEOUT, DEFAULT_RESPONSE_TIMEOUT)); } } diff --git a/sdk/core/azure-core-http-okhttp/src/test/java/com/azure/core/http/okhttp/OkHttpAsyncHttpClientBuilderTests.java b/sdk/core/azure-core-http-okhttp/src/test/java/com/azure/core/http/okhttp/OkHttpAsyncHttpClientBuilderTests.java index 79b98573d01f2..3d8890851bf6f 100644 --- a/sdk/core/azure-core-http-okhttp/src/test/java/com/azure/core/http/okhttp/OkHttpAsyncHttpClientBuilderTests.java +++ b/sdk/core/azure-core-http-okhttp/src/test/java/com/azure/core/http/okhttp/OkHttpAsyncHttpClientBuilderTests.java @@ -25,6 +25,7 @@ import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.Arguments; import org.junit.jupiter.params.provider.MethodSource; +import org.junit.jupiter.params.provider.ValueSource; import reactor.test.StepVerifier; import java.net.InetSocketAddress; @@ -231,14 +232,47 @@ public void buildWithCallTimeout() { .verifyComplete(); } - /** - * Tests building a client with negative callTimeout. - */ - @Test - public void throwsWithNegativeCallTimeout() { - assertThrows(IllegalArgumentException.class, () -> { - new OkHttpAsyncHttpClientBuilder().callTimeout(Duration.ofSeconds(-1)); - }); + @ParameterizedTest + @ValueSource(longs = { -1, 0 }) + public void nonpositiveCallTimeoutIsDisabled(long timeoutMillis) { + OkHttpAsyncHttpClient client + = (OkHttpAsyncHttpClient) new OkHttpAsyncHttpClientBuilder().callTimeout(Duration.ofMillis(timeoutMillis)) + .build(); + assertEquals(0, client.httpClient.callTimeoutMillis()); + } + + @ParameterizedTest + @ValueSource(longs = { -1, 0, 123000 }) + public void configuredTimeoutsAndExplicitOverrides(long timeoutMillis) throws ReflectiveOperationException { + String value = Long.toString(timeoutMillis); + Configuration configuration = new ConfigurationBuilder(EMPTY_SOURCE, + new TestConfigurationSource().put(Configuration.PROPERTY_AZURE_REQUEST_CONNECT_TIMEOUT, value) + .put(Configuration.PROPERTY_AZURE_REQUEST_READ_TIMEOUT, value) + .put(Configuration.PROPERTY_AZURE_REQUEST_WRITE_TIMEOUT, value) + .put(Configuration.PROPERTY_AZURE_REQUEST_RESPONSE_TIMEOUT, value), + EMPTY_SOURCE).build(); + OkHttpAsyncHttpClientBuilder builder = new OkHttpAsyncHttpClientBuilder().configuration(configuration); + assertTimeouts((OkHttpAsyncHttpClient) builder.build(), Math.max(0, timeoutMillis)); + assertTimeouts((OkHttpAsyncHttpClient) builder.connectionTimeout(Duration.ofMillis(456000)) + .readTimeout(Duration.ofMillis(456000)) + .writeTimeout(Duration.ofMillis(456000)) + .responseTimeout(Duration.ofMillis(456000)) + .build(), 456000); + assertTimeouts((OkHttpAsyncHttpClient) builder.connectionTimeout(Duration.ofNanos(-1)) + .readTimeout(Duration.ZERO) + .writeTimeout(Duration.ofNanos(-1)) + .responseTimeout(Duration.ZERO) + .build(), 0); + } + + private static void assertTimeouts(OkHttpAsyncHttpClient client, long expected) + throws ReflectiveOperationException { + assertEquals(expected, client.httpClient.connectTimeoutMillis()); + assertEquals(expected, client.httpClient.readTimeoutMillis()); + assertEquals(expected, client.httpClient.writeTimeoutMillis()); + java.lang.reflect.Field responseTimeout = OkHttpAsyncHttpClient.class.getDeclaredField("responseTimeout"); + responseTimeout.setAccessible(true); + assertEquals(Duration.ofMillis(expected), responseTimeout.get(client)); } /** diff --git a/sdk/core/azure-core-http-vertx/CHANGELOG.md b/sdk/core/azure-core-http-vertx/CHANGELOG.md index 1ef71277c5c73..8b1c8f775f0f5 100644 --- a/sdk/core/azure-core-http-vertx/CHANGELOG.md +++ b/sdk/core/azure-core-http-vertx/CHANGELOG.md @@ -10,6 +10,8 @@ ### Bugs Fixed +- Fixed timeout resolution to prefer explicit builder values, then builder-specific configuration, then global + configuration, and finally SDK defaults. - Fixed a bug where requests with a streaming body, such as `Flux` or `InputStream`, would never be sent when running with Vert.x 5.x. - Fixed response timeouts and request cancellation leaving HTTP exchanges active and occupying pooled connections, diff --git a/sdk/core/azure-core-http-vertx/src/main/java/com/azure/core/http/vertx/VertxHttpClientBuilder.java b/sdk/core/azure-core-http-vertx/src/main/java/com/azure/core/http/vertx/VertxHttpClientBuilder.java index ebebc5020a4dd..743a439eb74b0 100644 --- a/sdk/core/azure-core-http-vertx/src/main/java/com/azure/core/http/vertx/VertxHttpClientBuilder.java +++ b/sdk/core/azure-core-http-vertx/src/main/java/com/azure/core/http/vertx/VertxHttpClientBuilder.java @@ -24,11 +24,15 @@ import java.util.function.BiFunction; import java.util.regex.Pattern; -import static com.azure.core.implementation.util.HttpUtils.getDefaultConnectTimeout; -import static com.azure.core.implementation.util.HttpUtils.getDefaultReadTimeout; -import static com.azure.core.implementation.util.HttpUtils.getDefaultResponseTimeout; -import static com.azure.core.implementation.util.HttpUtils.getDefaultWriteTimeout; +import static com.azure.core.implementation.util.HttpUtils.DEFAULT_CONNECT_TIMEOUT; +import static com.azure.core.implementation.util.HttpUtils.DEFAULT_READ_TIMEOUT; +import static com.azure.core.implementation.util.HttpUtils.DEFAULT_RESPONSE_TIMEOUT; +import static com.azure.core.implementation.util.HttpUtils.DEFAULT_WRITE_TIMEOUT; import static com.azure.core.implementation.util.HttpUtils.getTimeout; +import static com.azure.core.util.Configuration.PROPERTY_AZURE_REQUEST_CONNECT_TIMEOUT; +import static com.azure.core.util.Configuration.PROPERTY_AZURE_REQUEST_READ_TIMEOUT; +import static com.azure.core.util.Configuration.PROPERTY_AZURE_REQUEST_RESPONSE_TIMEOUT; +import static com.azure.core.util.Configuration.PROPERTY_AZURE_REQUEST_WRITE_TIMEOUT; /** * Builds a {@link VertxHttpClient}. @@ -183,9 +187,10 @@ public VertxHttpClientBuilder proxy(ProxyOptions proxyOptions) { /** * Sets the configuration store that is used during construction of the HTTP client. *

- * The default configuration store is a clone of the - * {@link Configuration#getGlobalConfiguration() global configuration store}, use {@link Configuration#NONE} to - * bypass using configuration settings during construction. + * The default configuration store is the {@link Configuration#getGlobalConfiguration() global configuration store}. + * Timeouts explicitly set on this builder take precedence over this store, then the global store, then the default + * timeout. Use {@link Configuration#NONE} to bypass other configuration settings during construction; unset + * timeouts still fall back to the global store. * * @param configuration The configuration store. * @return The updated VertxHttpClientBuilder object. @@ -235,10 +240,13 @@ public HttpClient build() { HttpClientOptions buildOptions = this.httpClientOptions; Duration writeTimeout = Duration.ZERO; if (buildOptions == null) { - writeTimeout = getTimeout(this.writeTimeout, getDefaultWriteTimeout()); + writeTimeout = getTimeout(this.writeTimeout, configuration, PROPERTY_AZURE_REQUEST_WRITE_TIMEOUT, + DEFAULT_WRITE_TIMEOUT); buildOptions = new HttpClientOptions().setIdleTimeoutUnit(TimeUnit.MILLISECONDS) - .setConnectTimeout((int) getTimeout(this.connectTimeout, getDefaultConnectTimeout()).toMillis()) - .setReadIdleTimeout((int) getTimeout(this.readTimeout, getDefaultReadTimeout()).toMillis()); + .setConnectTimeout((int) getTimeout(this.connectTimeout, configuration, + PROPERTY_AZURE_REQUEST_CONNECT_TIMEOUT, DEFAULT_CONNECT_TIMEOUT).toMillis()) + .setReadIdleTimeout((int) getTimeout(this.readTimeout, configuration, + PROPERTY_AZURE_REQUEST_READ_TIMEOUT, DEFAULT_READ_TIMEOUT).toMillis()); // For now, set the max header size to 256 KB. Follow up to see if this should be configurable. buildOptions.setMaxHeaderSize(256 * 1024); @@ -288,8 +296,8 @@ public HttpClient build() { } io.vertx.core.http.HttpClient client = VERTX_HTTP_CLIENT_FACTORY.apply(configuredVertx, buildOptions); - return new VertxHttpClient(client, buildOptions, getTimeout(this.responseTimeout, getDefaultResponseTimeout()), - writeTimeout); + return new VertxHttpClient(client, buildOptions, getTimeout(this.responseTimeout, configuration, + PROPERTY_AZURE_REQUEST_RESPONSE_TIMEOUT, DEFAULT_RESPONSE_TIMEOUT), writeTimeout); } static Vertx getVertx(Iterator iterator) { diff --git a/sdk/core/azure-core-http-vertx/src/test/java/com/azure/core/http/vertx/VertxHttpClientBuilderTests.java b/sdk/core/azure-core-http-vertx/src/test/java/com/azure/core/http/vertx/VertxHttpClientBuilderTests.java index 18283e4f7d32c..97cb2116d31aa 100644 --- a/sdk/core/azure-core-http-vertx/src/test/java/com/azure/core/http/vertx/VertxHttpClientBuilderTests.java +++ b/sdk/core/azure-core-http-vertx/src/test/java/com/azure/core/http/vertx/VertxHttpClientBuilderTests.java @@ -18,6 +18,7 @@ import org.junit.jupiter.api.parallel.ExecutionMode; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.EnumSource; +import org.junit.jupiter.params.provider.ValueSource; import reactor.test.StepVerifier; import java.net.ConnectException; @@ -90,6 +91,40 @@ public void buildWithConnectionOptions() { assertEquals(0, httpClient.buildOptions.getWriteIdleTimeout()); } + @ParameterizedTest + @ValueSource(longs = { -1, 0, 123000 }) + public void configuredTimeoutsAndExplicitOverrides(long timeoutMillis) throws ReflectiveOperationException { + String value = Long.toString(timeoutMillis); + Configuration configuration = new ConfigurationBuilder(EMPTY_SOURCE, + new TestConfigurationSource().put(Configuration.PROPERTY_AZURE_REQUEST_CONNECT_TIMEOUT, value) + .put(Configuration.PROPERTY_AZURE_REQUEST_READ_TIMEOUT, value) + .put(Configuration.PROPERTY_AZURE_REQUEST_WRITE_TIMEOUT, value) + .put(Configuration.PROPERTY_AZURE_REQUEST_RESPONSE_TIMEOUT, value), + EMPTY_SOURCE).build(); + VertxHttpClientBuilder builder = new VertxHttpClientBuilder().configuration(configuration); + assertTimeouts((VertxHttpClient) builder.build(), Math.max(0, timeoutMillis)); + assertTimeouts((VertxHttpClient) builder.connectTimeout(Duration.ofMillis(456000)) + .readTimeout(Duration.ofMillis(456000)) + .writeTimeout(Duration.ofMillis(456000)) + .responseTimeout(Duration.ofMillis(456000)) + .build(), 456000); + assertTimeouts((VertxHttpClient) builder.connectTimeout(Duration.ofNanos(-1)) + .readTimeout(Duration.ZERO) + .writeTimeout(Duration.ofNanos(-1)) + .responseTimeout(Duration.ZERO) + .build(), 0); + } + + private static void assertTimeouts(VertxHttpClient client, long expected) throws ReflectiveOperationException { + assertEquals(expected, client.buildOptions.getConnectTimeout()); + assertEquals(expected, client.buildOptions.getReadIdleTimeout()); + for (String name : new String[] { "writeTimeout", "responseTimeout" }) { + java.lang.reflect.Field field = VertxHttpClient.class.getDeclaredField(name); + field.setAccessible(true); + assertEquals(Duration.ofMillis(expected), field.get(client)); + } + } + @ParameterizedTest @EnumSource(ProxyOptions.Type.class) public void buildWithAllProxyTypes(ProxyOptions.Type type) throws Exception { diff --git a/sdk/core/azure-core/CHANGELOG.md b/sdk/core/azure-core/CHANGELOG.md index 5af4c8c55b48f..d3473accd712c 100644 --- a/sdk/core/azure-core/CHANGELOG.md +++ b/sdk/core/azure-core/CHANGELOG.md @@ -8,6 +8,10 @@ ### Bugs Fixed +- Fixed HTTP timeout resolution, including `HttpClientOptions`, to prefer explicit values, then builder-specific + configuration, then global configuration, and finally SDK defaults. Global timeouts are resolved when needed rather + than cached at class initialization, and nonpositive timeout values disable the timeout. Global timeout settings + continue to apply when using older HTTP transport versions. - Fixed `AccessTokenCache` and `SimpleTokenCache` leaving concurrent callers waiting forever when the caller that was refreshing the token was cancelled, for example by a timeout. Waiting callers now retry the token acquisition when the refresh they waited on ends without a token, including when `SimpleTokenCache`'s token supplier completes empty. diff --git a/sdk/core/azure-core/src/main/java/com/azure/core/implementation/util/HttpUtils.java b/sdk/core/azure-core/src/main/java/com/azure/core/implementation/util/HttpUtils.java index 4c14fc3e57c1c..3c862fb258f18 100644 --- a/sdk/core/azure-core/src/main/java/com/azure/core/implementation/util/HttpUtils.java +++ b/sdk/core/azure-core/src/main/java/com/azure/core/implementation/util/HttpUtils.java @@ -24,22 +24,26 @@ public final class HttpUtils { private static final ClientLogger LOGGER = new ClientLogger(HttpUtils.class); private static final Duration MINIMUM_TIMEOUT = Duration.ofMillis(1); - private static final Duration DEFAULT_CONNECT_TIMEOUT; - private static final Duration DEFAULT_WRITE_TIMEOUT; - private static final Duration DEFAULT_RESPONSE_TIMEOUT; - private static final Duration DEFAULT_READ_TIMEOUT; - - static { - Configuration configuration = Configuration.getGlobalConfiguration(); - DEFAULT_CONNECT_TIMEOUT = getDefaultTimeoutFromEnvironment(configuration, - PROPERTY_AZURE_REQUEST_CONNECT_TIMEOUT, Duration.ofSeconds(10), LOGGER); - DEFAULT_WRITE_TIMEOUT = getDefaultTimeoutFromEnvironment(configuration, PROPERTY_AZURE_REQUEST_WRITE_TIMEOUT, - Duration.ofSeconds(60), LOGGER); - DEFAULT_RESPONSE_TIMEOUT = getDefaultTimeoutFromEnvironment(configuration, - PROPERTY_AZURE_REQUEST_RESPONSE_TIMEOUT, Duration.ofSeconds(60), LOGGER); - DEFAULT_READ_TIMEOUT = getDefaultTimeoutFromEnvironment(configuration, PROPERTY_AZURE_REQUEST_READ_TIMEOUT, - Duration.ofSeconds(60), LOGGER); - } + + /** + * The SDK fallback connect timeout, independent of global configuration. + */ + public static final Duration DEFAULT_CONNECT_TIMEOUT = Duration.ofSeconds(10); + + /** + * The SDK fallback write timeout, independent of global configuration. + */ + public static final Duration DEFAULT_WRITE_TIMEOUT = Duration.ofSeconds(60); + + /** + * The SDK fallback response timeout, independent of global configuration. + */ + public static final Duration DEFAULT_RESPONSE_TIMEOUT = Duration.ofSeconds(60); + + /** + * The SDK fallback read timeout, independent of global configuration. + */ + public static final Duration DEFAULT_READ_TIMEOUT = Duration.ofSeconds(60); /** * Context key used to indicate to an HttpClient implementation if it should eagerly read the response from the @@ -115,39 +119,74 @@ private static List splitHeaderValue(String value, char delimiter) { } /** - * Gets the default connect timeout. + * Gets the default connect timeout from the global configuration, falling back to {@link #DEFAULT_CONNECT_TIMEOUT} + * when the configured value is missing or invalid. The global configuration is resolved on each call. * * @return The default connect timeout. */ public static Duration getDefaultConnectTimeout() { - return DEFAULT_CONNECT_TIMEOUT; + return getDefaultTimeoutFromEnvironment(Configuration.getGlobalConfiguration(), + PROPERTY_AZURE_REQUEST_CONNECT_TIMEOUT, DEFAULT_CONNECT_TIMEOUT, LOGGER); } /** - * Gets the default write timeout. + * Gets the default write timeout from the global configuration, falling back to {@link #DEFAULT_WRITE_TIMEOUT} + * when the configured value is missing or invalid. The global configuration is resolved on each call. * * @return The default write timeout. */ public static Duration getDefaultWriteTimeout() { - return DEFAULT_WRITE_TIMEOUT; + return getDefaultTimeoutFromEnvironment(Configuration.getGlobalConfiguration(), + PROPERTY_AZURE_REQUEST_WRITE_TIMEOUT, DEFAULT_WRITE_TIMEOUT, LOGGER); } /** - * Gets the default response timeout. + * Gets the default response timeout from the global configuration, falling back to {@link #DEFAULT_RESPONSE_TIMEOUT} + * when the configured value is missing or invalid. The global configuration is resolved on each call. * * @return The default response timeout. */ public static Duration getDefaultResponseTimeout() { - return DEFAULT_RESPONSE_TIMEOUT; + return getDefaultTimeoutFromEnvironment(Configuration.getGlobalConfiguration(), + PROPERTY_AZURE_REQUEST_RESPONSE_TIMEOUT, DEFAULT_RESPONSE_TIMEOUT, LOGGER); } /** - * Gets the default read timeout. + * Gets the default read timeout from the global configuration, falling back to {@link #DEFAULT_READ_TIMEOUT} + * when the configured value is missing or invalid. The global configuration is resolved on each call. * * @return The default read timeout. */ public static Duration getDefaultReadTimeout() { - return DEFAULT_READ_TIMEOUT; + return getDefaultTimeoutFromEnvironment(Configuration.getGlobalConfiguration(), + PROPERTY_AZURE_REQUEST_READ_TIMEOUT, DEFAULT_READ_TIMEOUT, LOGGER); + } + + /** + * Resolves a timeout from the explicit value, the builder's configuration, the global configuration, and finally + * the default, in that order. Missing, empty, or invalid configuration values fall back to the next source. + * Nonpositive values disable the timeout; positive values less than one millisecond use one millisecond. + * + * @param configuredTimeout The explicitly configured timeout, or null. + * @param configuration The builder's configuration, or null to use the global configuration. + * @param timeoutPropertyName The timeout configuration property name. + * @param defaultTimeout The fallback timeout. + * @return The timeout to use. + */ + public static Duration getTimeout(Duration configuredTimeout, Configuration configuration, + String timeoutPropertyName, Duration defaultTimeout) { + if (configuredTimeout != null) { + return getTimeout(configuredTimeout, defaultTimeout); + } + + Configuration globalConfiguration = Configuration.getGlobalConfiguration(); + Duration timeout = (configuration == null || configuration == globalConfiguration) + ? null + : getDefaultTimeoutFromEnvironment(configuration, timeoutPropertyName, null, LOGGER); + + return timeout == null + ? getDefaultTimeoutFromEnvironment(globalConfiguration, timeoutPropertyName, defaultTimeout, LOGGER) + : timeout; } /** diff --git a/sdk/core/azure-core/src/main/java/com/azure/core/util/CoreUtils.java b/sdk/core/azure-core/src/main/java/com/azure/core/util/CoreUtils.java index 6da308dfbecfd..abcdab0913af5 100644 --- a/sdk/core/azure-core/src/main/java/com/azure/core/util/CoreUtils.java +++ b/sdk/core/azure-core/src/main/java/com/azure/core/util/CoreUtils.java @@ -304,14 +304,14 @@ public static HttpHeaders createHttpHeadersFromClientOptions(ClientOptions clien } /** - * Attempts to load an environment configured default timeout. + * Attempts to load a configured default timeout, checking explicit configuration before environment settings. *

* If the environment default timeout isn't configured, {@code defaultTimeout} will be returned. If the environment * default timeout is a string that isn't parseable by {@link Long#parseLong(String)}, {@code defaultTimeout} will * be returned. If the environment default timeout is less than 0, {@link Duration#ZERO} will be returned indicated * that there is no timeout period. * - * @param configuration The environment configurations. + * @param configuration The configuration store. * @param timeoutPropertyName The default timeout property name. * @param defaultTimeout The fallback timeout to be used. * @param logger A {@link ClientLogger} to log exceptions. @@ -319,7 +319,11 @@ public static HttpHeaders createHttpHeadersFromClientOptions(ClientOptions clien */ public static Duration getDefaultTimeoutFromEnvironment(Configuration configuration, String timeoutPropertyName, Duration defaultTimeout, ClientLogger logger) { - String environmentTimeout = configuration.get(timeoutPropertyName); + String environmentTimeout + = configuration.get(ConfigurationPropertyBuilder.ofString(timeoutPropertyName).shared(true).build()); + if (environmentTimeout == null) { + environmentTimeout = configuration.get(timeoutPropertyName); + } // Environment wasn't configured with the timeout property. if (CoreUtils.isNullOrEmpty(environmentTimeout)) { diff --git a/sdk/core/azure-core/src/main/java/com/azure/core/util/HttpClientOptions.java b/sdk/core/azure-core/src/main/java/com/azure/core/util/HttpClientOptions.java index 6d9a4e1bb2b66..d587f3a859669 100644 --- a/sdk/core/azure-core/src/main/java/com/azure/core/util/HttpClientOptions.java +++ b/sdk/core/azure-core/src/main/java/com/azure/core/util/HttpClientOptions.java @@ -11,11 +11,15 @@ import java.time.Duration; -import static com.azure.core.implementation.util.HttpUtils.getDefaultConnectTimeout; -import static com.azure.core.implementation.util.HttpUtils.getDefaultReadTimeout; -import static com.azure.core.implementation.util.HttpUtils.getDefaultResponseTimeout; -import static com.azure.core.implementation.util.HttpUtils.getDefaultWriteTimeout; +import static com.azure.core.implementation.util.HttpUtils.DEFAULT_CONNECT_TIMEOUT; +import static com.azure.core.implementation.util.HttpUtils.DEFAULT_READ_TIMEOUT; +import static com.azure.core.implementation.util.HttpUtils.DEFAULT_RESPONSE_TIMEOUT; +import static com.azure.core.implementation.util.HttpUtils.DEFAULT_WRITE_TIMEOUT; import static com.azure.core.implementation.util.HttpUtils.getTimeout; +import static com.azure.core.util.Configuration.PROPERTY_AZURE_REQUEST_CONNECT_TIMEOUT; +import static com.azure.core.util.Configuration.PROPERTY_AZURE_REQUEST_READ_TIMEOUT; +import static com.azure.core.util.Configuration.PROPERTY_AZURE_REQUEST_RESPONSE_TIMEOUT; +import static com.azure.core.util.Configuration.PROPERTY_AZURE_REQUEST_WRITE_TIMEOUT; /** * General configuration options for {@link HttpClient HttpClients}. @@ -80,6 +84,9 @@ public ProxyOptions getProxyOptions() { /** * Sets the configuration store that the {@link HttpClient} will use. + *

+ * Explicit timeout values take precedence over this store, then the global configuration store, then the default + * timeout. Missing timeout values fall back to the global store even when {@link Configuration#NONE} is supplied. * * @param configuration The configuration store to use. * @return The updated HttpClientOptions object. @@ -135,7 +142,8 @@ public HttpClientOptions setConnectTimeout(Duration connectTimeout) { * @return The connection timeout of a request to be sent. */ public Duration getConnectTimeout() { - return getTimeout(connectTimeout, getDefaultConnectTimeout()); + return getTimeout(connectTimeout, configuration, PROPERTY_AZURE_REQUEST_CONNECT_TIMEOUT, + DEFAULT_CONNECT_TIMEOUT); } /** @@ -177,7 +185,7 @@ public HttpClientOptions setWriteTimeout(Duration writeTimeout) { * @return The writing timeout of a request to be sent. */ public Duration getWriteTimeout() { - return getTimeout(writeTimeout, getDefaultWriteTimeout()); + return getTimeout(writeTimeout, configuration, PROPERTY_AZURE_REQUEST_WRITE_TIMEOUT, DEFAULT_WRITE_TIMEOUT); } /** @@ -238,7 +246,8 @@ public HttpClientOptions setResponseTimeout(Duration responseTimeout) { * @return The response timeout duration. */ public Duration getResponseTimeout() { - return getTimeout(responseTimeout, getDefaultResponseTimeout()); + return getTimeout(responseTimeout, configuration, PROPERTY_AZURE_REQUEST_RESPONSE_TIMEOUT, + DEFAULT_RESPONSE_TIMEOUT); } /** @@ -293,7 +302,7 @@ public HttpClientOptions setReadTimeout(Duration readTimeout) { * @return The read timeout duration. */ public Duration getReadTimeout() { - return getTimeout(readTimeout, getDefaultReadTimeout()); + return getTimeout(readTimeout, configuration, PROPERTY_AZURE_REQUEST_READ_TIMEOUT, DEFAULT_READ_TIMEOUT); } /** diff --git a/sdk/core/azure-core/src/test/java/com/azure/core/implementation/util/HttpUtilsTests.java b/sdk/core/azure-core/src/test/java/com/azure/core/implementation/util/HttpUtilsTests.java index 430a3772e8fe1..6bed94e57d46e 100644 --- a/sdk/core/azure-core/src/test/java/com/azure/core/implementation/util/HttpUtilsTests.java +++ b/sdk/core/azure-core/src/test/java/com/azure/core/implementation/util/HttpUtilsTests.java @@ -3,12 +3,134 @@ package com.azure.core.implementation.util; +import com.azure.core.util.Configuration; +import com.azure.core.util.ConfigurationBuilder; import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.parallel.Isolated; +import org.junit.jupiter.api.parallel.ResourceLock; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.Arguments; +import org.junit.jupiter.params.provider.MethodSource; +import java.time.Duration; +import java.util.Collections; +import java.util.function.Supplier; +import java.util.stream.Stream; + +import static com.azure.core.util.Configuration.PROPERTY_AZURE_REQUEST_CONNECT_TIMEOUT; +import static com.azure.core.util.Configuration.PROPERTY_AZURE_REQUEST_READ_TIMEOUT; +import static com.azure.core.util.Configuration.PROPERTY_AZURE_REQUEST_RESPONSE_TIMEOUT; +import static com.azure.core.util.Configuration.PROPERTY_AZURE_REQUEST_WRITE_TIMEOUT; +import static org.junit.jupiter.api.Assertions.assertEquals; import static org.junit.jupiter.api.Assertions.assertFalse; import static org.junit.jupiter.api.Assertions.assertTrue; +@Isolated("Modifies global HTTP timeout configuration") public class HttpUtilsTests { + private static final String TIMEOUT_PROPERTY = "HttpUtilsTests.timeout"; + + @ParameterizedTest + @MethodSource("legacyTimeoutSupplier") + @SuppressWarnings("deprecation") + public void legacyTimeoutGettersHonorGlobalConfiguration(String property, Supplier defaultTimeoutGetter, + Duration sdkDefault) { + Configuration global = Configuration.getGlobalConfiguration(); + String previous = global.get(property); + try { + for (long timeoutMillis : new long[] { 123000, 0, -1 }) { + global.put(property, Long.toString(timeoutMillis)); + assertEquals(Duration.ofMillis(Math.max(0, timeoutMillis)), + HttpUtils.getTimeout(null, defaultTimeoutGetter.get())); + assertEquals(Duration.ofSeconds(3), + HttpUtils.getTimeout(Duration.ofSeconds(3), defaultTimeoutGetter.get())); + assertEquals(Duration.ZERO, HttpUtils.getTimeout(Duration.ZERO, defaultTimeoutGetter.get())); + } + + for (String value : new String[] { "", "invalid" }) { + global.put(property, value); + assertEquals(sdkDefault, HttpUtils.getTimeout(null, defaultTimeoutGetter.get())); + } + } finally { + global.remove(property); + if (previous != null) { + global.put(property, previous); + } + } + } + + private static Stream legacyTimeoutSupplier() { + return Stream.of( + Arguments.of(PROPERTY_AZURE_REQUEST_CONNECT_TIMEOUT, + (Supplier) HttpUtils::getDefaultConnectTimeout, Duration.ofSeconds(10)), + Arguments.of(PROPERTY_AZURE_REQUEST_WRITE_TIMEOUT, (Supplier) HttpUtils::getDefaultWriteTimeout, + Duration.ofSeconds(60)), + Arguments.of(PROPERTY_AZURE_REQUEST_RESPONSE_TIMEOUT, + (Supplier) HttpUtils::getDefaultResponseTimeout, Duration.ofSeconds(60)), + Arguments.of(PROPERTY_AZURE_REQUEST_READ_TIMEOUT, (Supplier) HttpUtils::getDefaultReadTimeout, + Duration.ofSeconds(60))); + } + + @ParameterizedTest + @MethodSource("timeoutPrecedenceSupplier") + @ResourceLock(TIMEOUT_PROPERTY) + @SuppressWarnings("deprecation") + public void timeoutPrecedence(Duration explicit, String local, String global, long expectedMillis) { + Configuration globalConfiguration = Configuration.getGlobalConfiguration(); + String previous = globalConfiguration.get(TIMEOUT_PROPERTY); + try { + globalConfiguration.put(TIMEOUT_PROPERTY, global == null ? "" : global); + Configuration configuration = new ConfigurationBuilder(path -> Collections.emptyMap(), + path -> local == null ? Collections.emptyMap() : Collections.singletonMap(TIMEOUT_PROPERTY, local), + path -> Collections.emptyMap()).build(); + Configuration explicitConfiguration = new ConfigurationBuilder( + path -> local == null ? Collections.emptyMap() : Collections.singletonMap(TIMEOUT_PROPERTY, local), + path -> Collections.emptyMap(), path -> Collections.emptyMap()).build(); + + assertEquals(Duration.ofMillis(expectedMillis), + HttpUtils.getTimeout(explicit, configuration, TIMEOUT_PROPERTY, Duration.ofSeconds(10))); + assertEquals(Duration.ofMillis(expectedMillis), + HttpUtils.getTimeout(explicit, explicitConfiguration, TIMEOUT_PROPERTY, Duration.ofSeconds(10))); + } finally { + globalConfiguration.remove(TIMEOUT_PROPERTY); + if (previous != null) { + globalConfiguration.put(TIMEOUT_PROPERTY, previous); + } + } + } + + private static Stream timeoutPrecedenceSupplier() { + return Stream.of(Arguments.of(Duration.ofSeconds(3), "2000", "1000", 3000), + Arguments.of(Duration.ZERO, "2000", "1000", 0), Arguments.of(Duration.ofNanos(-1), "2000", "1000", 0), + Arguments.of(Duration.ofNanos(1), "2000", "1000", 1), Arguments.of(null, "2000", "1000", 2000), + Arguments.of(null, "0", "1000", 0), Arguments.of(null, "-1", "1000", 0), + Arguments.of(null, null, "1000", 1000), Arguments.of(null, "", "1000", 1000), + Arguments.of(null, "invalid", "1000", 1000), Arguments.of(null, null, "0", 0), + Arguments.of(null, null, "-1", 0), Arguments.of(null, null, "invalid", 10000), + Arguments.of(null, null, null, 10000)); + } + + @Test + @ResourceLock(TIMEOUT_PROPERTY) + @SuppressWarnings("deprecation") + public void globalTimeoutIsResolvedOnEachCall() { + Configuration global = Configuration.getGlobalConfiguration(); + String previous = global.get(TIMEOUT_PROPERTY); + try { + for (String value : new String[] { "1000", "2000" }) { + global.put(TIMEOUT_PROPERTY, value); + for (Configuration configuration : new Configuration[] { null, global, Configuration.NONE }) { + assertEquals(Duration.ofMillis(Long.parseLong(value)), + HttpUtils.getTimeout(null, configuration, TIMEOUT_PROPERTY, Duration.ofSeconds(10))); + } + } + } finally { + global.remove(TIMEOUT_PROPERTY); + if (previous != null) { + global.put(TIMEOUT_PROPERTY, previous); + } + } + } + @Test public void textEventStreamContentTypeRequiresSingleMediaType() { assertTrue(HttpUtils.isTextEventStreamContentType("Text/Event-Stream; charset=utf-8")); diff --git a/sdk/core/azure-core/src/test/java/com/azure/core/util/HttpClientOptionsTests.java b/sdk/core/azure-core/src/test/java/com/azure/core/util/HttpClientOptionsTests.java index 5803ab43f0c97..d7a4b0ef22129 100644 --- a/sdk/core/azure-core/src/test/java/com/azure/core/util/HttpClientOptionsTests.java +++ b/sdk/core/azure-core/src/test/java/com/azure/core/util/HttpClientOptionsTests.java @@ -9,6 +9,7 @@ import org.junit.jupiter.params.provider.MethodSource; import java.time.Duration; +import java.util.Collections; import java.util.function.BiFunction; import java.util.function.Function; import java.util.stream.Stream; @@ -40,6 +41,8 @@ public void negativeTimeoutDefaultsToInfiniteTimeout( assertEquals(Duration.ZERO, timeoutGetter.apply(httpClientOptions)); } + @ParameterizedTest + @MethodSource("timeoutSupplier") public void zeroTimeoutDefaultsToInfiniteTimeout( BiFunction timeoutSetter, Function timeoutGetter) { @@ -93,6 +96,59 @@ private static Stream timeoutSupplier() { Arguments.of(setConnectionIdleTimeout, getConnectionIdleTimeout)); } + @ParameterizedTest + @MethodSource("configuredTimeoutSupplier") + public void configurationTimeoutsAreUsedUnlessExplicitlyOverridden(String property, + BiFunction setter, + Function getter) { + Configuration configuration = new ConfigurationBuilder(path -> Collections.emptyMap(), + path -> Collections.singletonMap(property, "123000"), path -> Collections.emptyMap()).build(); + HttpClientOptions options = new HttpClientOptions().setConfiguration(configuration); + assertEquals(Duration.ofMillis(123000), getter.apply(options)); + + Duration[] explicitTimeouts + = { Duration.ZERO, Duration.ofNanos(-1), Duration.ofNanos(1), Duration.ofSeconds(3) }; + long[] expectedMillis = { 0, 0, 1, 3000 }; + for (int i = 0; i < explicitTimeouts.length; i++) { + setter.apply(options, explicitTimeouts[i]); + assertEquals(Duration.ofMillis(expectedMillis[i]), getter.apply(options)); + } + + setter.apply(options, null); + assertEquals(Duration.ofMillis(123000), getter.apply(options)); + } + + @Test + public void explicitConfigurationPropertiesAreUsed() { + Configuration configuration = new ConfigurationBuilder(path -> Collections.emptyMap(), + path -> Collections.emptyMap(), path -> Collections.emptyMap()) + .putProperty(Configuration.PROPERTY_AZURE_REQUEST_CONNECT_TIMEOUT, "123000") + .putProperty(Configuration.PROPERTY_AZURE_REQUEST_READ_TIMEOUT, "234000") + .putProperty(Configuration.PROPERTY_AZURE_REQUEST_WRITE_TIMEOUT, "345000") + .putProperty(Configuration.PROPERTY_AZURE_REQUEST_RESPONSE_TIMEOUT, "456000") + .build(); + HttpClientOptions options = new HttpClientOptions().setConfiguration(configuration); + assertEquals(Duration.ofMillis(123000), options.getConnectTimeout()); + assertEquals(Duration.ofMillis(234000), options.getReadTimeout()); + assertEquals(Duration.ofMillis(345000), options.getWriteTimeout()); + assertEquals(Duration.ofMillis(456000), options.getResponseTimeout()); + } + + private static Stream configuredTimeoutSupplier() { + BiFunction connect = HttpClientOptions::setConnectTimeout; + BiFunction write = HttpClientOptions::setWriteTimeout; + BiFunction response = HttpClientOptions::setResponseTimeout; + BiFunction read = HttpClientOptions::setReadTimeout; + Function getConnect = HttpClientOptions::getConnectTimeout; + Function getWrite = HttpClientOptions::getWriteTimeout; + Function getResponse = HttpClientOptions::getResponseTimeout; + Function getRead = HttpClientOptions::getReadTimeout; + return Stream.of(Arguments.of(Configuration.PROPERTY_AZURE_REQUEST_CONNECT_TIMEOUT, connect, getConnect), + Arguments.of(Configuration.PROPERTY_AZURE_REQUEST_WRITE_TIMEOUT, write, getWrite), + Arguments.of(Configuration.PROPERTY_AZURE_REQUEST_RESPONSE_TIMEOUT, response, getResponse), + Arguments.of(Configuration.PROPERTY_AZURE_REQUEST_READ_TIMEOUT, read, getRead)); + } + @Test public void nullMaximumConnectionPoolSizeRemainsNull() { HttpClientOptions httpClientOptions = new HttpClientOptions().setMaximumConnectionPoolSize(null); From 353db511e2caad32aac527fe917f5e22e8568f26 Mon Sep 17 00:00:00 2001 From: "azure-sdk-automation[bot]" <191533747+azure-sdk-automation[bot]@users.noreply.github.com> Date: Thu, 22 Oct 2026 08:19:03 +0800 Subject: [PATCH 12/22] [AutoPR azure-resourcemanager-netapp]-generated-from-SDK Generation - Java-6982796 (#50887) * Configurations: 'specification/netapp/resource-manager/Microsoft.NetApp/NetApp/tspconfig.yaml', API Version: 2026-08-01, SDK Release Type: stable, and CommitSHA: '52d43820f214975f29c5d263e0311210dd7e336b' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6979694 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * Configurations: 'specification/netapp/resource-manager/Microsoft.NetApp/NetApp/tspconfig.yaml', and CommitSHA: '2371f14ab26ab99500de46ac5c507476a8e0fc61' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6982796 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * Skip RevAPI for NetApp management SDK update Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 72f6b7d6-43ad-4705-a637-de46132aed99 --------- Co-authored-by: azure-sdk Co-authored-by: Nandakumar Siddavaram <123510087+nandakus2@users.noreply.github.com> Co-authored-by: Weidong Xu Copilot-Session: 72f6b7d6-43ad-4705-a637-de46132aed99 --- eng/versioning/version_client.txt | 2 +- .../azure-resourcemanager-netapp/CHANGELOG.md | 71 +- .../azure-resourcemanager-netapp/README.md | 4 +- .../azure-resourcemanager-netapp/SAMPLE.md | 1815 ++--------------- .../azure-resourcemanager-netapp/pom.xml | 4 +- .../netapp/NetAppFilesManager.java | 146 -- .../fluent/ActiveDirectoryConfigsClient.java | 272 --- .../netapp/fluent/ElasticAccountsClient.java | 269 --- .../fluent/ElasticBackupPoliciesClient.java | 269 --- .../fluent/ElasticBackupVaultsClient.java | 269 --- .../netapp/fluent/ElasticBackupsClient.java | 284 --- .../fluent/ElasticCapacityPoolsClient.java | 370 ---- .../fluent/ElasticSnapshotPoliciesClient.java | 301 --- .../netapp/fluent/ElasticSnapshotsClient.java | 229 --- .../netapp/fluent/ElasticVolumesClient.java | 355 ---- .../netapp/fluent/NetAppManagementClient.java | 63 - .../fluent/models/AccountProperties.java | 32 - .../fluent/models/AccountPropertiesPatch.java | 42 +- .../models/ActiveDirectoryConfigInner.java | 245 --- .../fluent/models/CapacityPoolInner.java | 8 +- ...sticResourceAvailabilityResponseInner.java | 129 -- .../fluent/models/ElasticAccountInner.java | 246 --- .../fluent/models/ElasticBackupInner.java | 166 -- .../models/ElasticBackupPolicyInner.java | 214 -- .../models/ElasticBackupVaultInner.java | 214 -- .../models/ElasticCapacityPoolInner.java | 244 --- .../fluent/models/ElasticSnapshotInner.java | 166 -- .../models/ElasticSnapshotPolicyInner.java | 215 -- .../fluent/models/ElasticVolumeInner.java | 244 --- .../fluent/models/NetAppAccountInner.java | 24 - .../fluent/models/PoolPatchProperties.java | 12 +- .../netapp/fluent/models/PoolProperties.java | 12 +- .../netapp/fluent/models/VolumeInner.java | 96 +- .../fluent/models/VolumePatchProperties.java | 22 +- .../fluent/models/VolumeProperties.java | 123 +- .../ActiveDirectoryConfigImpl.java | 204 -- .../ActiveDirectoryConfigsClientImpl.java | 1468 ------------- .../ActiveDirectoryConfigsImpl.java | 145 -- ...asticResourceAvailabilityResponseImpl.java | 42 - .../implementation/ElasticAccountImpl.java | 202 -- .../ElasticAccountsClientImpl.java | 1427 ------------- .../implementation/ElasticAccountsImpl.java | 142 -- .../implementation/ElasticBackupImpl.java | 135 -- .../ElasticBackupPoliciesClientImpl.java | 1323 ------------ .../ElasticBackupPoliciesImpl.java | 155 -- .../ElasticBackupPolicyImpl.java | 192 -- .../ElasticBackupVaultImpl.java | 186 -- .../ElasticBackupVaultsClientImpl.java | 1322 ------------ .../ElasticBackupVaultsImpl.java | 155 -- .../ElasticBackupsClientImpl.java | 1420 ------------- .../implementation/ElasticBackupsImpl.java | 179 -- .../ElasticCapacityPoolImpl.java | 232 --- .../ElasticCapacityPoolsClientImpl.java | 1761 ---------------- .../ElasticCapacityPoolsImpl.java | 201 -- .../implementation/ElasticSnapshotImpl.java | 142 -- .../ElasticSnapshotPoliciesClientImpl.java | 1635 --------------- .../ElasticSnapshotPoliciesImpl.java | 171 -- .../ElasticSnapshotPolicyImpl.java | 193 -- .../ElasticSnapshotsClientImpl.java | 1188 ----------- .../implementation/ElasticSnapshotsImpl.java | 201 -- .../implementation/ElasticVolumeImpl.java | 221 -- .../ElasticVolumesClientImpl.java | 1710 ---------------- .../implementation/ElasticVolumesImpl.java | 200 -- .../implementation/NetAppAccountImpl.java | 25 +- .../NetAppManagementClientImpl.java | 146 +- .../netapp/implementation/VolumeImpl.java | 30 - .../ActiveDirectoryConfigListResult.java | 115 -- .../models/ElasticAccountListResult.java | 113 - .../models/ElasticBackupListResult.java | 112 - .../models/ElasticBackupPolicyListResult.java | 115 -- .../models/ElasticBackupVaultListResult.java | 114 -- .../models/ElasticCapacityPoolListResult.java | 115 -- .../models/ElasticSnapshotListResult.java | 114 -- .../ElasticSnapshotPolicyListResult.java | 115 -- .../ElasticSnapshotPolicyVolumeList.java | 114 -- .../models/ElasticVolumeListResult.java | 112 - ...ption.java => AccountEncryptionPatch.java} | 54 +- .../netapp/models/ActiveDirectoryConfig.java | 309 --- .../ActiveDirectoryConfigProperties.java | 421 ---- .../models/ActiveDirectoryConfigUpdate.java | 158 -- ...ActiveDirectoryConfigUpdateProperties.java | 370 ---- .../netapp/models/ActiveDirectoryConfigs.java | 158 -- .../netapp/models/CapacityPool.java | 20 +- .../netapp/models/CapacityPoolPatch.java | 8 +- .../netapp/models/CertificateAkvDetails.java | 36 - .../netapp/models/ChangeZoneRequest.java | 101 - ...heckElasticResourceAvailabilityReason.java | 52 - ...ckElasticResourceAvailabilityResponse.java | 45 - ...heckElasticResourceAvailabilityStatus.java | 52 - ...sticVolumeFilePathAvailabilityRequest.java | 108 - .../netapp/models/CredentialsAkvDetails.java | 36 - .../netapp/models/DayOfWeek.java | 76 - .../netapp/models/ElasticAccount.java | 309 --- .../models/ElasticAccountProperties.java | 113 - .../netapp/models/ElasticAccountUpdate.java | 157 -- .../ElasticAccountUpdateProperties.java | 97 - .../netapp/models/ElasticAccounts.java | 158 -- .../netapp/models/ElasticBackup.java | 191 -- .../netapp/models/ElasticBackupPolicies.java | 145 -- .../netapp/models/ElasticBackupPolicy.java | 276 --- .../models/ElasticBackupPolicyProperties.java | 216 -- .../models/ElasticBackupPolicyState.java | 51 - .../models/ElasticBackupPolicyUpdate.java | 127 -- .../ElasticBackupPolicyUpdateProperties.java | 183 -- .../models/ElasticBackupProperties.java | 342 ---- .../netapp/models/ElasticBackupType.java | 51 - .../netapp/models/ElasticBackupVault.java | 263 --- .../models/ElasticBackupVaultProperties.java | 82 - .../models/ElasticBackupVaultUpdate.java | 95 - .../netapp/models/ElasticBackupVaults.java | 145 -- .../netapp/models/ElasticBackups.java | 152 -- .../netapp/models/ElasticCapacityPool.java | 347 ---- .../models/ElasticCapacityPoolProperties.java | 305 --- .../models/ElasticCapacityPoolUpdate.java | 127 -- .../ElasticCapacityPoolUpdateProperties.java | 165 -- .../netapp/models/ElasticCapacityPools.java | 208 -- .../ElasticEncryptionConfiguration.java | 143 -- .../netapp/models/ElasticExportPolicy.java | 99 - .../models/ElasticExportPolicyRule.java | 250 --- .../netapp/models/ElasticKeyVaultStatus.java | 66 - .../models/ElasticMountTargetProperties.java | 97 - .../netapp/models/ElasticNfsv3Access.java | 51 - .../netapp/models/ElasticNfsv4Access.java | 51 - .../ElasticPoolEncryptionKeySource.java | 51 - .../netapp/models/ElasticProtocolType.java | 56 - .../ElasticResourceAvailabilityStatus.java | 51 - .../netapp/models/ElasticRootAccess.java | 51 - .../netapp/models/ElasticServiceLevel.java | 46 - .../netapp/models/ElasticSmbEncryption.java | 51 - .../models/ElasticSmbPatchProperties.java | 97 - .../netapp/models/ElasticSmbProperties.java | 97 - .../netapp/models/ElasticSnapshot.java | 192 -- .../models/ElasticSnapshotPolicies.java | 174 -- .../netapp/models/ElasticSnapshotPolicy.java | 276 --- .../ElasticSnapshotPolicyDailySchedule.java | 151 -- .../ElasticSnapshotPolicyHourlySchedule.java | 124 -- .../ElasticSnapshotPolicyMonthlySchedule.java | 184 -- .../ElasticSnapshotPolicyProperties.java | 242 --- .../models/ElasticSnapshotPolicyUpdate.java | 127 -- ...ElasticSnapshotPolicyUpdateProperties.java | 229 --- .../ElasticSnapshotPolicyWeeklySchedule.java | 185 -- .../models/ElasticSnapshotProperties.java | 82 - .../netapp/models/ElasticSnapshots.java | 160 -- .../netapp/models/ElasticUnixAccessRule.java | 56 - .../netapp/models/ElasticVolume.java | 322 --- .../models/ElasticVolumeBackupProperties.java | 152 -- ...icVolumeDataProtectionPatchProperties.java | 131 -- ...ElasticVolumeDataProtectionProperties.java | 131 -- .../ElasticVolumePolicyEnforcement.java | 51 - .../models/ElasticVolumeProperties.java | 431 ---- .../models/ElasticVolumeRestorationState.java | 56 - .../netapp/models/ElasticVolumeRevert.java | 93 - .../ElasticVolumeSnapshotProperties.java | 94 - .../netapp/models/ElasticVolumeUpdate.java | 126 -- .../models/ElasticVolumeUpdateProperties.java | 228 --- .../netapp/models/ElasticVolumes.java | 184 -- ...tity.java => EncryptionIdentityPatch.java} | 53 +- .../netapp/models/EntraIdAkvConfig.java | 167 -- .../netapp/models/EntraIdAkvConfigPatch.java | 151 -- .../netapp/models/EntraIdConfig.java | 208 -- .../netapp/models/EntraIdConfigPatch.java | 192 -- ...ties.java => KeyVaultPropertiesPatch.java} | 56 +- .../netapp/models/LargeVolumeType.java | 56 - .../netapp/models/NetAppAccount.java | 42 +- .../netapp/models/NetAppAccountPatch.java | 27 +- .../netapp/models/PolicyStatus.java | 51 - .../netapp/models/ProvisioningState.java | 25 +- .../netapp/models/SecretPassword.java | 129 -- .../netapp/models/SecretPasswordIdentity.java | 115 -- .../SecretPasswordKeyVaultProperties.java | 136 -- .../netapp/models/SmbSettings.java | 12 +- .../models/SnapshotDirectoryVisibility.java | 52 - .../netapp/models/SnapshotUsage.java | 51 - .../resourcemanager/netapp/models/Volume.java | 121 +- .../models/VolumeGroupVolumeProperties.java | 93 +- .../netapp/models/VolumePatch.java | 16 +- .../netapp/models/VolumeSize.java | 51 - ...azure-resourcemanager-netapp_metadata.json | 2 +- .../proxy-config.json | 2 +- .../AccountsChangeKeyVaultSamples.java | 2 +- .../AccountsCreateOrUpdateSamples.java | 6 +- .../generated/AccountsDeleteSamples.java | 2 +- .../AccountsGetByResourceGroupSamples.java | 2 +- ...tsGetChangeKeyVaultInformationSamples.java | 2 +- .../AccountsListByResourceGroupSamples.java | 2 +- .../netapp/generated/AccountsListSamples.java | 2 +- ...ccountsRefreshLdapBindPasswordSamples.java | 2 +- .../AccountsRenewCredentialsSamples.java | 2 +- .../AccountsTransitionToCmkSamples.java | 2 +- .../generated/AccountsUpdateSamples.java | 2 +- ...DirectoryConfigsCreateOrUpdateSamples.java | 70 - .../ActiveDirectoryConfigsDeleteSamples.java | 22 - ...ctoryConfigsGetByResourceGroupSamples.java | 23 - ...toryConfigsListByResourceGroupSamples.java | 23 - .../ActiveDirectoryConfigsListSamples.java | 23 - .../ActiveDirectoryConfigsUpdateSamples.java | 30 - .../BackupPoliciesCreateSamples.java | 2 +- .../BackupPoliciesDeleteSamples.java | 2 +- .../generated/BackupPoliciesGetSamples.java | 2 +- .../generated/BackupPoliciesListSamples.java | 2 +- .../BackupPoliciesUpdateSamples.java | 2 +- .../BackupVaultsCreateOrUpdateSamples.java | 2 +- .../generated/BackupVaultsDeleteSamples.java | 2 +- .../generated/BackupVaultsGetSamples.java | 2 +- ...ackupVaultsListByNetAppAccountSamples.java | 2 +- .../generated/BackupVaultsUpdateSamples.java | 2 +- .../generated/BackupsCreateSamples.java | 2 +- .../generated/BackupsDeleteSamples.java | 2 +- .../BackupsGetLatestStatusSamples.java | 2 +- .../netapp/generated/BackupsGetSamples.java | 2 +- ...psGetVolumeLatestRestoreStatusSamples.java | 2 +- .../generated/BackupsListByVaultSamples.java | 2 +- ...kupsUnderAccountMigrateBackupsSamples.java | 2 +- ...psUnderBackupVaultRestoreFilesSamples.java | 2 +- ...ckupsUnderVolumeMigrateBackupsSamples.java | 2 +- .../generated/BackupsUpdateSamples.java | 2 +- .../BucketsCreateOrUpdateSamples.java | 21 +- .../generated/BucketsDeleteSamples.java | 2 +- .../BucketsGenerateAkvCredentialsSamples.java | 2 +- .../BucketsGenerateCredentialsSamples.java | 2 +- .../netapp/generated/BucketsGetSamples.java | 2 +- .../netapp/generated/BucketsListSamples.java | 2 +- .../BucketsRefreshCertificateSamples.java | 2 +- .../generated/BucketsUpdateSamples.java | 21 +- .../CachesCreateOrUpdateSamples.java | 2 +- .../netapp/generated/CachesDeleteSamples.java | 2 +- .../netapp/generated/CachesGetSamples.java | 2 +- .../CachesListPeeringPassphrasesSamples.java | 2 +- .../netapp/generated/CachesListSamples.java | 2 +- .../generated/CachesPoolChangeSamples.java | 2 +- .../CachesResetSmbPasswordSamples.java | 2 +- .../netapp/generated/CachesUpdateSamples.java | 2 +- .../ElasticAccountsCreateOrUpdateSamples.java | 44 - .../ElasticAccountsDeleteSamples.java | 22 - ...sticAccountsGetByResourceGroupSamples.java | 22 - ...ticAccountsListByResourceGroupSamples.java | 22 - .../generated/ElasticAccountsListSamples.java | 22 - .../ElasticAccountsUpdateSamples.java | 41 - ...icBackupPoliciesCreateOrUpdateSamples.java | 34 - .../ElasticBackupPoliciesDeleteSamples.java | 23 - .../ElasticBackupPoliciesGetSamples.java | 23 - ...upPoliciesListByElasticAccountSamples.java | 23 - .../ElasticBackupPoliciesUpdateSamples.java | 34 - ...sticBackupVaultsCreateOrUpdateSamples.java | 26 - .../ElasticBackupVaultsDeleteSamples.java | 23 - .../ElasticBackupVaultsGetSamples.java | 23 - ...ckupVaultsListByElasticAccountSamples.java | 23 - .../ElasticBackupVaultsUpdateSamples.java | 41 - .../ElasticBackupsCreateOrUpdateSamples.java | 34 - .../ElasticBackupsDeleteSamples.java | 23 - .../generated/ElasticBackupsGetSamples.java | 23 - .../ElasticBackupsListByVaultSamples.java | 22 - .../ElasticBackupsUpdateSamples.java | 27 - ...ElasticCapacityPoolsChangeZoneSamples.java | 26 - ...heckVolumeFilePathAvailabilitySamples.java | 28 - ...ticCapacityPoolsCreateOrUpdateSamples.java | 66 - .../ElasticCapacityPoolsDeleteSamples.java | 22 - .../ElasticCapacityPoolsGetSamples.java | 22 - ...acityPoolsListByElasticAccountSamples.java | 23 - .../ElasticCapacityPoolsUpdateSamples.java | 32 - ...SnapshotPoliciesCreateOrUpdateSamples.java | 49 - .../ElasticSnapshotPoliciesDeleteSamples.java | 23 - .../ElasticSnapshotPoliciesGetSamples.java | 23 - ...otPoliciesListByElasticAccountSamples.java | 23 - ...shotPoliciesListElasticVolumesSamples.java | 24 - .../ElasticSnapshotPoliciesUpdateSamples.java | 49 - ...ElasticSnapshotsCreateOrUpdateSamples.java | 25 - .../ElasticSnapshotsDeleteSamples.java | 23 - .../generated/ElasticSnapshotsGetSamples.java | 23 - ...icSnapshotsListByElasticVolumeSamples.java | 24 - .../ElasticVolumesCreateOrUpdateSamples.java | 58 - .../ElasticVolumesDeleteSamples.java | 22 - .../generated/ElasticVolumesGetSamples.java | 23 - ...lasticVolumesListByElasticPoolSamples.java | 22 - .../ElasticVolumesRevertSamples.java | 27 - .../ElasticVolumesUpdateSamples.java | 49 - ...ourceCheckFilePathAvailabilitySamples.java | 2 +- ...pResourceCheckNameAvailabilitySamples.java | 2 +- ...ResourceCheckQuotaAvailabilitySamples.java | 2 +- ...ResourceQueryNetworkSiblingSetSamples.java | 2 +- .../NetAppResourceQueryRegionInfoSamples.java | 2 +- ...pResourceQuotaLimitsAccountGetSamples.java | 2 +- ...ResourceQuotaLimitsAccountListSamples.java | 2 +- .../NetAppResourceQuotaLimitsGetSamples.java | 2 +- .../NetAppResourceQuotaLimitsListSamples.java | 2 +- .../NetAppResourceRegionInfosGetSamples.java | 2 +- .../NetAppResourceRegionInfosListSamples.java | 2 +- ...esourceUpdateNetworkSiblingSetSamples.java | 2 +- .../NetAppResourceUsagesGetSamples.java | 2 +- .../NetAppResourceUsagesListSamples.java | 2 +- .../generated/OperationsListSamples.java | 2 +- .../generated/PoolsCreateOrUpdateSamples.java | 4 +- .../netapp/generated/PoolsDeleteSamples.java | 2 +- .../netapp/generated/PoolsGetSamples.java | 4 +- .../netapp/generated/PoolsListSamples.java | 2 +- .../netapp/generated/PoolsUpdateSamples.java | 4 +- ...RansomwareReportsClearSuspectsSamples.java | 2 +- .../RansomwareReportsGetSamples.java | 2 +- .../RansomwareReportsListSamples.java | 2 +- .../SnapshotPoliciesCreateSamples.java | 2 +- .../SnapshotPoliciesDeleteSamples.java | 2 +- .../generated/SnapshotPoliciesGetSamples.java | 2 +- .../SnapshotPoliciesListSamples.java | 2 +- .../SnapshotPoliciesListVolumesSamples.java | 2 +- .../SnapshotPoliciesUpdateSamples.java | 2 +- .../generated/SnapshotsCreateSamples.java | 2 +- .../generated/SnapshotsDeleteSamples.java | 2 +- .../netapp/generated/SnapshotsGetSamples.java | 2 +- .../generated/SnapshotsListSamples.java | 2 +- .../SnapshotsRestoreFilesSamples.java | 2 +- .../generated/SubvolumesCreateSamples.java | 2 +- .../generated/SubvolumesDeleteSamples.java | 2 +- .../SubvolumesGetMetadataSamples.java | 2 +- .../generated/SubvolumesGetSamples.java | 2 +- .../SubvolumesListByVolumeSamples.java | 2 +- .../generated/SubvolumesUpdateSamples.java | 2 +- .../generated/VolumeGroupsCreateSamples.java | 8 +- .../generated/VolumeGroupsDeleteSamples.java | 2 +- .../generated/VolumeGroupsGetSamples.java | 8 +- ...olumeGroupsListByNetAppAccountSamples.java | 6 +- .../VolumeQuotaRulesCreateSamples.java | 2 +- .../VolumeQuotaRulesDeleteSamples.java | 2 +- .../generated/VolumeQuotaRulesGetSamples.java | 2 +- .../VolumeQuotaRulesListByVolumeSamples.java | 2 +- .../VolumeQuotaRulesUpdateSamples.java | 2 +- ...esAuthorizeExternalReplicationSamples.java | 2 +- .../VolumesAuthorizeReplicationSamples.java | 2 +- .../VolumesBreakFileLocksSamples.java | 2 +- .../VolumesBreakReplicationSamples.java | 2 +- .../VolumesCreateOrUpdateSamples.java | 2 +- .../VolumesDeleteReplicationSamples.java | 2 +- .../generated/VolumesDeleteSamples.java | 2 +- ...mesFinalizeExternalReplicationSamples.java | 2 +- .../VolumesFinalizeRelocationSamples.java | 2 +- .../netapp/generated/VolumesGetSamples.java | 4 +- ...sListGetGroupIdListForLdapUserSamples.java | 2 +- .../VolumesListQuotaReportSamples.java | 2 +- .../VolumesListReplicationsSamples.java | 2 +- .../netapp/generated/VolumesListSamples.java | 4 +- .../VolumesPeerExternalClusterSamples.java | 2 +- ...umesPerformReplicationTransferSamples.java | 2 +- .../generated/VolumesPoolChangeSamples.java | 2 +- ...olumesPopulateAvailabilityZoneSamples.java | 2 +- ...VolumesReInitializeReplicationSamples.java | 2 +- .../VolumesReestablishReplicationSamples.java | 2 +- .../generated/VolumesRelocateSamples.java | 2 +- .../VolumesReplicationStatusSamples.java | 2 +- .../VolumesResetCifsPasswordSamples.java | 2 +- .../VolumesResyncReplicationSamples.java | 2 +- .../VolumesRevertRelocationSamples.java | 2 +- .../generated/VolumesRevertSamples.java | 2 +- .../VolumesSplitCloneFromParentSamples.java | 2 +- .../generated/VolumesUpdateSamples.java | 2 +- .../AccountsRenewCredentialsMockTests.java | 2 +- .../BackupPoliciesCreateMockTests.java | 30 +- .../BackupPoliciesDeleteMockTests.java | 2 +- ...ackupPoliciesGetWithResponseMockTests.java | 14 +- .../BackupPoliciesListMockTests.java | 14 +- .../generated/BackupRestoreFilesTests.java | 23 +- .../BackupVaultsCreateOrUpdateMockTests.java | 15 +- .../BackupVaultsGetWithResponseMockTests.java | 8 +- ...kupVaultsListByNetAppAccountMockTests.java | 8 +- .../generated/BackupsCreateMockTests.java | 18 +- ...sGetLatestStatusWithResponseMockTests.java | 4 +- ...estRestoreStatusWithResponseMockTests.java | 5 +- .../BackupsGetWithResponseMockTests.java | 10 +- .../BackupsListByVaultMockTests.java | 12 +- .../BackupsMigrationRequestTests.java | 8 +- ...eringPassphrasesWithResponseMockTests.java | 10 +- .../generated/CapacityPoolInnerTests.java | 38 +- .../generated/CapacityPoolListTests.java | 16 +- .../generated/CapacityPoolPatchTests.java | 38 +- .../generated/ChangeZoneRequestTests.java | 24 - .../CheckAvailabilityResponseInnerTests.java | 4 +- ...esourceAvailabilityResponseInnerTests.java | 23 - ...olumeFilePathAvailabilityRequestTests.java | 26 - .../generated/ElasticBackupInnerTests.java | 38 - .../ElasticBackupListResultTests.java | 24 - ...BackupPoliciesCreateOrUpdateMockTests.java | 68 - ...ackupPoliciesGetWithResponseMockTests.java | 45 - ...PoliciesListByElasticAccountMockTests.java | 46 - .../ElasticBackupPolicyInnerTests.java | 57 - .../ElasticBackupPolicyListResultTests.java | 26 - .../ElasticBackupPolicyPropertiesTests.java | 36 - ...sticBackupPolicyUpdatePropertiesTests.java | 37 - .../ElasticBackupPolicyUpdateTests.java | 55 - .../ElasticBackupPropertiesTests.java | 36 - .../ElasticBackupVaultInnerTests.java | 45 - .../ElasticBackupVaultListResultTests.java | 21 - .../ElasticBackupVaultPropertiesTests.java | 22 - .../ElasticBackupVaultUpdateTests.java | 40 - ...icBackupVaultsCreateOrUpdateMockTests.java | 59 - ...cBackupVaultsGetWithResponseMockTests.java | 40 - ...upVaultsListByElasticAccountMockTests.java | 40 - ...ElasticBackupsCreateOrUpdateMockTests.java | 49 - ...lasticBackupsGetWithResponseMockTests.java | 43 - .../ElasticBackupsListByVaultMockTests.java | 44 - ...PathAvailabilityWithResponseMockTests.java | 45 - .../ElasticEncryptionIdentityTests.java | 29 - .../ElasticExportPolicyRuleTests.java | 46 - .../generated/ElasticExportPolicyTests.java | 48 - .../ElasticMountTargetPropertiesTests.java | 17 - .../ElasticSmbPatchPropertiesTests.java | 27 - .../generated/ElasticSmbPropertiesTests.java | 26 - .../generated/ElasticSnapshotInnerTests.java | 24 - .../ElasticSnapshotListResultTests.java | 19 - ...apshotPoliciesCreateOrUpdateMockTests.java | 95 - ...pshotPoliciesGetWithResponseMockTests.java | 56 - ...PoliciesListByElasticAccountMockTests.java | 59 - ...otPoliciesListElasticVolumesMockTests.java | 79 - ...asticSnapshotPolicyDailyScheduleTests.java | 33 - ...sticSnapshotPolicyHourlyScheduleTests.java | 29 - .../ElasticSnapshotPolicyInnerTests.java | 94 - .../ElasticSnapshotPolicyListResultTests.java | 37 - ...ticSnapshotPolicyMonthlyScheduleTests.java | 37 - .../ElasticSnapshotPolicyPropertiesTests.java | 73 - ...icSnapshotPolicyUpdatePropertiesTests.java | 73 - .../ElasticSnapshotPolicyUpdateTests.java | 91 - .../ElasticSnapshotPolicyVolumeListTests.java | 43 - ...sticSnapshotPolicyWeeklyScheduleTests.java | 38 - .../ElasticSnapshotPropertiesTests.java | 22 - ...asticSnapshotsCreateOrUpdateMockTests.java | 40 - ...sticSnapshotsGetWithResponseMockTests.java | 38 - ...SnapshotsListByElasticVolumeMockTests.java | 38 - .../ElasticVolumeBackupPropertiesTests.java | 33 - ...umeDataProtectionPatchPropertiesTests.java | 39 - ...icVolumeDataProtectionPropertiesTests.java | 39 - .../generated/ElasticVolumeInnerTests.java | 147 -- .../ElasticVolumeListResultTests.java | 43 - .../ElasticVolumePropertiesTests.java | 94 - .../generated/ElasticVolumeRevertTests.java | 25 - .../ElasticVolumeSnapshotPropertiesTests.java | 27 - .../ElasticVolumeUpdatePropertiesTests.java | 86 - .../generated/ElasticVolumeUpdateTests.java | 134 -- ...ElasticVolumesCreateOrUpdateMockTests.java | 139 -- ...lasticVolumesGetWithResponseMockTests.java | 75 - ...sticVolumesListByElasticPoolMockTests.java | 79 - .../ElasticVolumesRevertMockTests.java | 75 - .../EncryptionIdentityPatchTests.java | 29 + .../generated/EncryptionIdentityTests.java | 12 +- .../EncryptionTransitionRequestTests.java | 14 +- .../FilePathAvailabilityRequestTests.java | 23 +- .../KeyVaultPrivateEndpointTests.java | 12 +- .../generated/LdapSearchScopeOptTests.java | 23 +- .../ManagedServiceIdentityTests.java | 5 +- ...imitsAccountsGetWithResponseMockTests.java | 4 +- ...ourceQuotaLimitsAccountsListMockTests.java | 4 +- ...ceQuotaLimitsGetWithResponseMockTests.java | 4 +- ...etAppResourceQuotaLimitsListMockTests.java | 4 +- ...ceRegionInfosGetWithResponseMockTests.java | 9 +- ...etAppResourceRegionInfosListMockTests.java | 10 +- ...esourceUsagesGetWithResponseMockTests.java | 4 +- .../NetAppResourceUsagesListMockTests.java | 4 +- ...PathAvailabilityWithResponseMockTests.java | 16 +- ...NameAvailabilityWithResponseMockTests.java | 14 +- ...uotaAvailabilityWithResponseMockTests.java | 20 +- ...etworkSiblingSetWithResponseMockTests.java | 16 +- ...sQueryRegionInfoWithResponseMockTests.java | 13 +- ...urcesUpdateNetworkSiblingSetMockTests.java | 20 +- .../NetworkSiblingSetInnerTests.java | 12 +- .../netapp/generated/NicInfoTests.java | 8 +- .../generated/OperationsListMockTests.java | 46 +- .../generated/PoolPatchPropertiesTests.java | 20 +- .../netapp/generated/PoolPropertiesTests.java | 26 +- .../PoolsCreateOrUpdateMockTests.java | 30 +- .../PoolsGetWithResponseMockTests.java | 14 +- .../netapp/generated/PoolsListMockTests.java | 16 +- .../QueryNetworkSiblingSetRequestTests.java | 12 +- .../QuotaAvailabilityRequestTests.java | 25 +- ...omwareReportsGetWithResponseMockTests.java | 4 +- .../RansomwareReportsListMockTests.java | 4 +- ...InfoAvailabilityZoneMappingsItemTests.java | 6 +- .../generated/RegionInfoInnerTests.java | 6 +- .../RegionInfoResourceInnerTests.java | 8 +- .../generated/RegionInfosListTests.java | 11 +- .../ResourceNameAvailabilityRequestTests.java | 20 +- .../SecretPasswordIdentityTests.java | 26 - ...otPoliciesCreateWithResponseMockTests.java | 84 +- .../SnapshotPoliciesDeleteMockTests.java | 2 +- ...pshotPoliciesGetWithResponseMockTests.java | 44 +- .../SnapshotPoliciesListMockTests.java | 44 +- .../generated/SnapshotsDeleteMockTests.java | 3 +- .../SnapshotsGetWithResponseMockTests.java | 6 +- .../generated/SnapshotsListMockTests.java | 8 +- .../SnapshotsRestoreFilesMockTests.java | 6 +- .../generated/SubvolumeInfoInnerTests.java | 19 +- .../generated/SubvolumeModelInnerTests.java | 22 +- .../SubvolumeModelPropertiesTests.java | 22 +- .../generated/SubvolumePatchParamsTests.java | 12 +- .../generated/SubvolumePatchRequestTests.java | 13 +- .../generated/SubvolumePropertiesTests.java | 19 +- .../generated/SubvolumesCreateMockTests.java | 18 +- .../generated/SubvolumesDeleteMockTests.java | 3 +- .../SubvolumesGetMetadataMockTests.java | 23 +- .../SubvolumesGetWithResponseMockTests.java | 10 +- .../SubvolumesListByVolumeMockTests.java | 10 +- .../netapp/generated/SubvolumesListTests.java | 10 +- .../UpdateNetworkSiblingSetRequestTests.java | 27 +- .../netapp/generated/UsageNameTests.java | 8 +- .../generated/UsagePropertiesTests.java | 2 +- .../generated/UsageResultInnerTests.java | 2 +- .../generated/UsagesListResultTests.java | 4 +- .../generated/UserAssignedIdentityTests.java | 2 +- .../VolumeGroupsDeleteMockTests.java | 2 +- .../generated/VolumeQuotaRuleInnerTests.java | 2 +- .../VolumeQuotaRulesCreateMockTests.java | 26 +- .../VolumeQuotaRulesDeleteMockTests.java | 3 +- ...umeQuotaRulesGetWithResponseMockTests.java | 14 +- ...VolumeQuotaRulesListByVolumeMockTests.java | 14 +- .../generated/VolumeQuotaRulesListTests.java | 2 +- .../VolumeQuotaRulesPropertiesTests.java | 2 +- ...AuthorizeExternalReplicationMockTests.java | 6 +- .../VolumesAuthorizeReplicationMockTests.java | 4 +- .../VolumesBreakFileLocksMockTests.java | 4 +- .../VolumesBreakReplicationMockTests.java | 2 +- .../VolumesDeleteReplicationMockTests.java | 3 +- .../VolumesFinalizeRelocationMockTests.java | 2 +- ...istGetGroupIdListForLdapUserMockTests.java | 8 +- .../VolumesListQuotaReportMockTests.java | 20 +- .../VolumesListReplicationsMockTests.java | 12 +- .../VolumesPeerExternalClusterMockTests.java | 12 +- .../generated/VolumesPoolChangeMockTests.java | 4 +- ...lumesReInitializeReplicationMockTests.java | 3 +- ...eplicationStatusWithResponseMockTests.java | 10 +- .../VolumesResyncReplicationMockTests.java | 3 +- .../generated/VolumesRevertMockTests.java | 4 +- .../VolumesRevertRelocationMockTests.java | 3 +- .../tsp-location.yaml | 2 +- 528 files changed, 1285 insertions(+), 43785 deletions(-) delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ActiveDirectoryConfigsClient.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticAccountsClient.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticBackupPoliciesClient.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticBackupVaultsClient.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticBackupsClient.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticCapacityPoolsClient.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticSnapshotPoliciesClient.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticSnapshotsClient.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticVolumesClient.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ActiveDirectoryConfigInner.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CheckElasticResourceAvailabilityResponseInner.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticAccountInner.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticBackupInner.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticBackupPolicyInner.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticBackupVaultInner.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticCapacityPoolInner.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticSnapshotInner.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticSnapshotPolicyInner.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticVolumeInner.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ActiveDirectoryConfigImpl.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ActiveDirectoryConfigsClientImpl.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ActiveDirectoryConfigsImpl.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CheckElasticResourceAvailabilityResponseImpl.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticAccountImpl.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticAccountsClientImpl.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticAccountsImpl.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupImpl.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupPoliciesClientImpl.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupPoliciesImpl.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupPolicyImpl.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupVaultImpl.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupVaultsClientImpl.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupVaultsImpl.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupsClientImpl.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupsImpl.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticCapacityPoolImpl.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticCapacityPoolsClientImpl.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticCapacityPoolsImpl.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotImpl.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotPoliciesClientImpl.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotPoliciesImpl.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotPolicyImpl.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotsClientImpl.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotsImpl.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticVolumeImpl.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticVolumesClientImpl.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticVolumesImpl.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ActiveDirectoryConfigListResult.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticAccountListResult.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticBackupListResult.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticBackupPolicyListResult.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticBackupVaultListResult.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticCapacityPoolListResult.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticSnapshotListResult.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticSnapshotPolicyListResult.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticSnapshotPolicyVolumeList.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticVolumeListResult.java rename sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/{ElasticEncryption.java => AccountEncryptionPatch.java} (66%) delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfig.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfigProperties.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfigUpdate.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfigUpdateProperties.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfigs.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ChangeZoneRequest.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckElasticResourceAvailabilityReason.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckElasticResourceAvailabilityResponse.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckElasticResourceAvailabilityStatus.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckElasticVolumeFilePathAvailabilityRequest.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/DayOfWeek.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccount.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccountProperties.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccountUpdate.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccountUpdateProperties.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccounts.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackup.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicies.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicy.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicyProperties.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicyState.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicyUpdate.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicyUpdateProperties.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupProperties.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupType.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupVault.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupVaultProperties.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupVaultUpdate.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupVaults.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackups.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPool.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPoolProperties.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPoolUpdate.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPoolUpdateProperties.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPools.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticEncryptionConfiguration.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticExportPolicy.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticExportPolicyRule.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticKeyVaultStatus.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticMountTargetProperties.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticNfsv3Access.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticNfsv4Access.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticPoolEncryptionKeySource.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticProtocolType.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticResourceAvailabilityStatus.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticRootAccess.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticServiceLevel.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSmbEncryption.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSmbPatchProperties.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSmbProperties.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshot.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicies.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicy.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyDailySchedule.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyHourlySchedule.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyMonthlySchedule.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyProperties.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyUpdate.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyUpdateProperties.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyWeeklySchedule.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotProperties.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshots.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticUnixAccessRule.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolume.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeBackupProperties.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeDataProtectionPatchProperties.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeDataProtectionProperties.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumePolicyEnforcement.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeProperties.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeRestorationState.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeRevert.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeSnapshotProperties.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeUpdate.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeUpdateProperties.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumes.java rename sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/{ElasticEncryptionIdentity.java => EncryptionIdentityPatch.java} (64%) delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EntraIdAkvConfig.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EntraIdAkvConfigPatch.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EntraIdConfig.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EntraIdConfigPatch.java rename sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/{ElasticKeyVaultProperties.java => KeyVaultPropertiesPatch.java} (62%) delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LargeVolumeType.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PolicyStatus.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SecretPassword.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SecretPasswordIdentity.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SecretPasswordKeyVaultProperties.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotDirectoryVisibility.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotUsage.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeSize.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsCreateOrUpdateSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsDeleteSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsGetByResourceGroupSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsListByResourceGroupSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsListSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsUpdateSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsCreateOrUpdateSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsDeleteSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsGetByResourceGroupSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsListByResourceGroupSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsListSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsUpdateSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesCreateOrUpdateSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesDeleteSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesGetSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesListByElasticAccountSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesUpdateSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsCreateOrUpdateSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsDeleteSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsGetSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsListByElasticAccountSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsUpdateSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsCreateOrUpdateSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsDeleteSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsGetSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsListByVaultSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsUpdateSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsChangeZoneSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsCheckVolumeFilePathAvailabilitySamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsCreateOrUpdateSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsDeleteSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsGetSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsListByElasticAccountSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsUpdateSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesCreateOrUpdateSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesDeleteSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesGetSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesListByElasticAccountSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesListElasticVolumesSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesUpdateSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsCreateOrUpdateSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsDeleteSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsGetSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsListByElasticVolumeSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesCreateOrUpdateSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesDeleteSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesGetSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesListByElasticPoolSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesRevertSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesUpdateSamples.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ChangeZoneRequestTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CheckElasticResourceAvailabilityResponseInnerTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CheckElasticVolumeFilePathAvailabilityRequestTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupInnerTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupListResultTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesCreateOrUpdateMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesGetWithResponseMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesListByElasticAccountMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPolicyInnerTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPolicyListResultTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPolicyPropertiesTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPolicyUpdatePropertiesTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPolicyUpdateTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPropertiesTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultInnerTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultListResultTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultPropertiesTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultUpdateTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsCreateOrUpdateMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsGetWithResponseMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsListByElasticAccountMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsCreateOrUpdateMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsGetWithResponseMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsListByVaultMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsCheckVolumeFilePathAvailabilityWithResponseMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticEncryptionIdentityTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticExportPolicyRuleTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticExportPolicyTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticMountTargetPropertiesTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSmbPatchPropertiesTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSmbPropertiesTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotInnerTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotListResultTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesCreateOrUpdateMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesGetWithResponseMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesListByElasticAccountMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesListElasticVolumesMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyDailyScheduleTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyHourlyScheduleTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyInnerTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyListResultTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyMonthlyScheduleTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyPropertiesTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyUpdatePropertiesTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyUpdateTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyVolumeListTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyWeeklyScheduleTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPropertiesTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsCreateOrUpdateMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsGetWithResponseMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsListByElasticVolumeMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeBackupPropertiesTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeDataProtectionPatchPropertiesTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeDataProtectionPropertiesTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeInnerTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeListResultTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumePropertiesTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeRevertTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeSnapshotPropertiesTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeUpdatePropertiesTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeUpdateTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesCreateOrUpdateMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesGetWithResponseMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesListByElasticPoolMockTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesRevertMockTests.java create mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionIdentityPatchTests.java delete mode 100644 sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SecretPasswordIdentityTests.java diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 30b09c7db8b43..7ff5a0d7737f4 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -302,7 +302,7 @@ com.azure.resourcemanager:azure-resourcemanager-healthbot;1.2.0;1.3.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-confluent;1.2.0;1.3.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-digitaltwins;1.3.0;1.4.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-discovery;1.0.0-beta.1;1.0.0-beta.2 -com.azure.resourcemanager:azure-resourcemanager-netapp;2.4.0;2.5.0-beta.3 +com.azure.resourcemanager:azure-resourcemanager-netapp;2.4.0;2.5.0 com.azure.resourcemanager:azure-resourcemanager-storagecache;1.3.0;1.4.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-redisenterprise;2.1.0;2.2.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-hybridkubernetes;1.0.0;1.1.0-beta.2 diff --git a/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md b/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md index 7b9717a4c99ba..8e1eaac466d11 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md +++ b/sdk/netapp/azure-resourcemanager-netapp/CHANGELOG.md @@ -1,14 +1,77 @@ # Release History -## 2.5.0-beta.3 (Unreleased) +## 2.5.0 (2026-10-21) -### Features Added +- Azure Resource Manager NetAppFiles client library for Java. This package contains Microsoft Azure SDK for NetAppFiles Management SDK. Microsoft NetApp Files Azure Resource Provider specification. Package api-version 2026-08-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Breaking Changes -### Bugs Fixed +#### `models.NetAppAccountPatch` was modified -### Other Changes +* `models.AccountEncryption encryption()` -> `models.AccountEncryptionPatch encryption()` +* `multiAdStatus()` was removed +* `provisioningState()` was removed +* `type()` was removed +* `id()` was removed +* `name()` was removed +* `withLocation(java.lang.String)` was removed +* `location()` was removed +* `withEncryption(models.AccountEncryption)` was removed +* `disableShowmount()` was removed + +#### `models.NetAppAccount$Update` was modified + +* `withEncryption(models.AccountEncryption)` was removed + +### Features Added + +* `models.LdapConfiguration` was added + +* `models.AccountEncryptionPatch` was added + +* `models.EncryptionIdentityPatch` was added + +* `models.KeyVaultPropertiesPatch` was added + +* `models.BindPasswordAkvConfigPatch` was added + +* `models.BindPasswordAkvConfig` was added + +* `models.LdapConfigurationPatch` was added + +* `models.BindAuthenticationLevel` was added + +* `models.SecureLdapType` was added + +#### `models.NetAppAccount$Definition` was modified + +* `withLdapConfiguration(models.LdapConfiguration)` was added + +#### `models.ProvisioningState` was modified + +* `CANCELED` was added + +#### `models.NetAppAccountPatch` was modified + +* `withEncryption(models.AccountEncryptionPatch)` was added +* `ldapConfiguration()` was added +* `withLdapConfiguration(models.LdapConfigurationPatch)` was added + +#### `models.NetAppAccount$Update` was modified + +* `withEncryption(models.AccountEncryptionPatch)` was added +* `withLdapConfiguration(models.LdapConfigurationPatch)` was added + +#### `models.Accounts` was modified + +* `refreshLdapBindPassword(java.lang.String,java.lang.String,com.azure.core.util.Context)` was added +* `refreshLdapBindPassword(java.lang.String,java.lang.String)` was added + +#### `models.NetAppAccount` was modified + +* `ldapConfiguration()` was added +* `refreshLdapBindPassword()` was added +* `refreshLdapBindPassword(com.azure.core.util.Context)` was added ## 2.5.0-beta.2 (2026-08-26) diff --git a/sdk/netapp/azure-resourcemanager-netapp/README.md b/sdk/netapp/azure-resourcemanager-netapp/README.md index 6ddf725d9f721..4332be9f98ee2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/README.md +++ b/sdk/netapp/azure-resourcemanager-netapp/README.md @@ -2,7 +2,7 @@ Azure Resource Manager NetAppFiles client library for Java. -This package contains Microsoft Azure SDK for NetAppFiles Management SDK. Microsoft NetApp Files Azure Resource Provider specification. Package api-version 2026-06-15-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 NetAppFiles Management SDK. Microsoft NetApp Files Azure Resource Provider specification. Package api-version 2026-08-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## We'd love to hear your feedback @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-netapp - 2.5.0-beta.2 + 2.5.0 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md b/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md index aa82840d8d794..423c6111380c0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md +++ b/sdk/netapp/azure-resourcemanager-netapp/SAMPLE.md @@ -15,15 +15,6 @@ - [TransitionToCmk](#accounts_transitiontocmk) - [Update](#accounts_update) -## ActiveDirectoryConfigs - -- [CreateOrUpdate](#activedirectoryconfigs_createorupdate) -- [Delete](#activedirectoryconfigs_delete) -- [GetByResourceGroup](#activedirectoryconfigs_getbyresourcegroup) -- [List](#activedirectoryconfigs_list) -- [ListByResourceGroup](#activedirectoryconfigs_listbyresourcegroup) -- [Update](#activedirectoryconfigs_update) - ## BackupPolicies - [Create](#backuppolicies_create) @@ -84,74 +75,6 @@ - [ResetSmbPassword](#caches_resetsmbpassword) - [Update](#caches_update) -## ElasticAccounts - -- [CreateOrUpdate](#elasticaccounts_createorupdate) -- [Delete](#elasticaccounts_delete) -- [GetByResourceGroup](#elasticaccounts_getbyresourcegroup) -- [List](#elasticaccounts_list) -- [ListByResourceGroup](#elasticaccounts_listbyresourcegroup) -- [Update](#elasticaccounts_update) - -## ElasticBackupPolicies - -- [CreateOrUpdate](#elasticbackuppolicies_createorupdate) -- [Delete](#elasticbackuppolicies_delete) -- [Get](#elasticbackuppolicies_get) -- [ListByElasticAccount](#elasticbackuppolicies_listbyelasticaccount) -- [Update](#elasticbackuppolicies_update) - -## ElasticBackupVaults - -- [CreateOrUpdate](#elasticbackupvaults_createorupdate) -- [Delete](#elasticbackupvaults_delete) -- [Get](#elasticbackupvaults_get) -- [ListByElasticAccount](#elasticbackupvaults_listbyelasticaccount) -- [Update](#elasticbackupvaults_update) - -## ElasticBackups - -- [CreateOrUpdate](#elasticbackups_createorupdate) -- [Delete](#elasticbackups_delete) -- [Get](#elasticbackups_get) -- [ListByVault](#elasticbackups_listbyvault) -- [Update](#elasticbackups_update) - -## ElasticCapacityPools - -- [ChangeZone](#elasticcapacitypools_changezone) -- [CheckVolumeFilePathAvailability](#elasticcapacitypools_checkvolumefilepathavailability) -- [CreateOrUpdate](#elasticcapacitypools_createorupdate) -- [Delete](#elasticcapacitypools_delete) -- [Get](#elasticcapacitypools_get) -- [ListByElasticAccount](#elasticcapacitypools_listbyelasticaccount) -- [Update](#elasticcapacitypools_update) - -## ElasticSnapshotPolicies - -- [CreateOrUpdate](#elasticsnapshotpolicies_createorupdate) -- [Delete](#elasticsnapshotpolicies_delete) -- [Get](#elasticsnapshotpolicies_get) -- [ListByElasticAccount](#elasticsnapshotpolicies_listbyelasticaccount) -- [ListElasticVolumes](#elasticsnapshotpolicies_listelasticvolumes) -- [Update](#elasticsnapshotpolicies_update) - -## ElasticSnapshots - -- [CreateOrUpdate](#elasticsnapshots_createorupdate) -- [Delete](#elasticsnapshots_delete) -- [Get](#elasticsnapshots_get) -- [ListByElasticVolume](#elasticsnapshots_listbyelasticvolume) - -## ElasticVolumes - -- [CreateOrUpdate](#elasticvolumes_createorupdate) -- [Delete](#elasticvolumes_delete) -- [Get](#elasticvolumes_get) -- [ListByElasticPool](#elasticvolumes_listbyelasticpool) -- [Revert](#elasticvolumes_revert) -- [Update](#elasticvolumes_update) - ## NetAppResource - [CheckFilePathAvailability](#netappresource_checkfilepathavailability) @@ -282,7 +205,7 @@ import java.util.Arrays; */ public final class AccountsChangeKeyVaultSamples { /* - * x-ms-original-file: 2026-06-15-preview/Accounts_ChangeKeyVault.json + * x-ms-original-file: 2026-08-01/Accounts_ChangeKeyVault.json */ /** * Sample code: Accounts_ChangeKeyVault. @@ -318,7 +241,7 @@ import java.util.Arrays; */ public final class AccountsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-06-15-preview/Accounts_CreateOrUpdate.json + * x-ms-original-file: 2026-08-01/Accounts_CreateOrUpdate.json */ /** * Sample code: Accounts_CreateOrUpdate. @@ -330,7 +253,7 @@ public final class AccountsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2026-06-15-preview/Accounts_CreateOrUpdateAD.json + * x-ms-original-file: 2026-08-01/Accounts_CreateOrUpdateAD.json */ /** * Sample code: Accounts_CreateOrUpdateWithActiveDirectory. @@ -357,7 +280,7 @@ public final class AccountsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2026-06-15-preview/Accounts_CreateOrUpdateLdapConfig.json + * x-ms-original-file: 2026-08-01/Accounts_CreateOrUpdateLdapConfig.json */ /** * Sample code: Accounts_CreateOrUpdateLdapConfig. @@ -397,7 +320,7 @@ public final class AccountsCreateOrUpdateSamples { */ public final class AccountsDeleteSamples { /* - * x-ms-original-file: 2026-06-15-preview/Accounts_Delete.json + * x-ms-original-file: 2026-08-01/Accounts_Delete.json */ /** * Sample code: Accounts_Delete. @@ -418,7 +341,7 @@ public final class AccountsDeleteSamples { */ public final class AccountsGetByResourceGroupSamples { /* - * x-ms-original-file: 2026-06-15-preview/Accounts_Get.json + * x-ms-original-file: 2026-08-01/Accounts_Get.json */ /** * Sample code: Accounts_Get. @@ -439,7 +362,7 @@ public final class AccountsGetByResourceGroupSamples { */ public final class AccountsGetChangeKeyVaultInformationSamples { /* - * x-ms-original-file: 2026-06-15-preview/Accounts_GetChangeKeyVaultInformation.json + * x-ms-original-file: 2026-08-01/Accounts_GetChangeKeyVaultInformation.json */ /** * Sample code: Accounts_GetChangeKeyVaultInformation. @@ -461,7 +384,7 @@ public final class AccountsGetChangeKeyVaultInformationSamples { */ public final class AccountsListSamples { /* - * x-ms-original-file: 2026-06-15-preview/Accounts_ListBySubscription.json + * x-ms-original-file: 2026-08-01/Accounts_ListBySubscription.json */ /** * Sample code: Accounts_ListBySubscription. @@ -482,7 +405,7 @@ public final class AccountsListSamples { */ public final class AccountsListByResourceGroupSamples { /* - * x-ms-original-file: 2026-06-15-preview/Accounts_List.json + * x-ms-original-file: 2026-08-01/Accounts_List.json */ /** * Sample code: Accounts_List. @@ -503,7 +426,7 @@ public final class AccountsListByResourceGroupSamples { */ public final class AccountsRefreshLdapBindPasswordSamples { /* - * x-ms-original-file: 2026-06-15-preview/Accounts_RefreshLdapBindPassword.json + * x-ms-original-file: 2026-08-01/Accounts_RefreshLdapBindPassword.json */ /** * Sample code: NetAppAccounts_RefreshLdapBindPassword. @@ -525,7 +448,7 @@ public final class AccountsRefreshLdapBindPasswordSamples { */ public final class AccountsRenewCredentialsSamples { /* - * x-ms-original-file: 2026-06-15-preview/Accounts_RenewCredentials.json + * x-ms-original-file: 2026-08-01/Accounts_RenewCredentials.json */ /** * Sample code: Accounts_RenewCredentials. @@ -548,7 +471,7 @@ import com.azure.resourcemanager.netapp.models.EncryptionTransitionRequest; */ public final class AccountsTransitionToCmkSamples { /* - * x-ms-original-file: 2026-06-15-preview/Accounts_TransitionEncryptionKey.json + * x-ms-original-file: 2026-08-01/Accounts_TransitionEncryptionKey.json */ /** * Sample code: Accounts_MigrateEncryptionKey. @@ -578,7 +501,7 @@ import java.util.Map; */ public final class AccountsUpdateSamples { /* - * x-ms-original-file: 2026-06-15-preview/Accounts_Update.json + * x-ms-original-file: 2026-08-01/Accounts_Update.json */ /** * Sample code: Accounts_Update. @@ -606,191 +529,6 @@ public final class AccountsUpdateSamples { } ``` -### ActiveDirectoryConfigs_CreateOrUpdate - -```java -import com.azure.resourcemanager.netapp.models.ActiveDirectoryConfigProperties; -import com.azure.resourcemanager.netapp.models.ManagedServiceIdentity; -import com.azure.resourcemanager.netapp.models.ManagedServiceIdentityType; -import com.azure.resourcemanager.netapp.models.SecretPassword; -import com.azure.resourcemanager.netapp.models.SecretPasswordIdentity; -import com.azure.resourcemanager.netapp.models.SecretPasswordKeyVaultProperties; -import com.azure.resourcemanager.netapp.models.UserAssignedIdentity; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -/** - * Samples for ActiveDirectoryConfigs CreateOrUpdate. - */ -public final class ActiveDirectoryConfigsCreateOrUpdateSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ActiveDirectoryConfigs_CreateOrUpdate.json - */ - /** - * Sample code: ActiveDirectoryConfigs_CreateOrUpdate. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void - activeDirectoryConfigsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.activeDirectoryConfigs() - .define("adconfig1") - .withRegion("eastus") - .withExistingResourceGroup("myRG") - .withTags(mapOf("ac-tag1", "activeDirectoryConfig1")) - .withProperties(new ActiveDirectoryConfigProperties().withUserName("admin1") - .withDns(Arrays.asList("10.10.10.4", "10.10.10.5")) - .withSmbServerName("smbServer") - .withOrganizationalUnit("OU=Computers,DC=corp,DC=contoso,DC=com") - .withSite("Default-First-Site-Name") - .withBackupOperators(Arrays.asList("backupOp1")) - .withAdministrators(Arrays.asList("admin1")) - .withSecurityOperators(Arrays.asList("secOp1")) - .withDomain("example.net") - .withSecretPassword(new SecretPassword() - .withKeyVaultProperties( - new SecretPasswordKeyVaultProperties().withKeyVaultUri("fakeTokenPlaceholder") - .withSecretName("fakeTokenPlaceholder")) - .withIdentity(new SecretPasswordIdentity().withUserAssignedIdentity( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userAssignedIdentity1")))) - .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED) - .withUserAssignedIdentities(mapOf( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userAssignedIdentity1", - new UserAssignedIdentity()))) - .create(); - } - - // 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; - } -} -``` - -### ActiveDirectoryConfigs_Delete - -```java -/** - * Samples for ActiveDirectoryConfigs Delete. - */ -public final class ActiveDirectoryConfigsDeleteSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ActiveDirectoryConfigs_Delete.json - */ - /** - * Sample code: ActiveDirectoryConfigs_Delete. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void activeDirectoryConfigsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.activeDirectoryConfigs().delete("myRG", "adconfig1", com.azure.core.util.Context.NONE); - } -} -``` - -### ActiveDirectoryConfigs_GetByResourceGroup - -```java -/** - * Samples for ActiveDirectoryConfigs GetByResourceGroup. - */ -public final class ActiveDirectoryConfigsGetByResourceGroupSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ActiveDirectoryConfigs_Get.json - */ - /** - * Sample code: ActiveDirectoryConfigs_Get. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void activeDirectoryConfigsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.activeDirectoryConfigs() - .getByResourceGroupWithResponse("myRG", "adconfig1", com.azure.core.util.Context.NONE); - } -} -``` - -### ActiveDirectoryConfigs_List - -```java -/** - * Samples for ActiveDirectoryConfigs List. - */ -public final class ActiveDirectoryConfigsListSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ActiveDirectoryConfigs_ListBySubscription.json - */ - /** - * Sample code: ActiveDirectoryConfigs_ListBySubscription. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void - activeDirectoryConfigsListBySubscription(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.activeDirectoryConfigs().list(com.azure.core.util.Context.NONE); - } -} -``` - -### ActiveDirectoryConfigs_ListByResourceGroup - -```java -/** - * Samples for ActiveDirectoryConfigs ListByResourceGroup. - */ -public final class ActiveDirectoryConfigsListByResourceGroupSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ActiveDirectoryConfigs_ListByResourceGroup.json - */ - /** - * Sample code: ActiveDirectoryConfigs_ListByResourceGroup. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void - activeDirectoryConfigsListByResourceGroup(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.activeDirectoryConfigs().listByResourceGroup("myRG", com.azure.core.util.Context.NONE); - } -} -``` - -### ActiveDirectoryConfigs_Update - -```java -import com.azure.resourcemanager.netapp.models.ActiveDirectoryConfig; -import com.azure.resourcemanager.netapp.models.ActiveDirectoryConfigUpdateProperties; - -/** - * Samples for ActiveDirectoryConfigs Update. - */ -public final class ActiveDirectoryConfigsUpdateSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ActiveDirectoryConfigs_Update.json - */ - /** - * Sample code: ActiveDirectoryConfigs_Update. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void activeDirectoryConfigsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - ActiveDirectoryConfig resource = manager.activeDirectoryConfigs() - .getByResourceGroupWithResponse("myRG", "adconfig1", com.azure.core.util.Context.NONE) - .getValue(); - resource.update() - .withProperties(new ActiveDirectoryConfigUpdateProperties().withSmbServerName("smbServer2")) - .apply(); - } -} -``` - ### BackupPolicies_Create ```java @@ -799,7 +537,7 @@ public final class ActiveDirectoryConfigsUpdateSamples { */ public final class BackupPoliciesCreateSamples { /* - * x-ms-original-file: 2026-06-15-preview/BackupPolicies_Create.json + * x-ms-original-file: 2026-08-01/BackupPolicies_Create.json */ /** * Sample code: BackupPolicies_Create. @@ -828,7 +566,7 @@ public final class BackupPoliciesCreateSamples { */ public final class BackupPoliciesDeleteSamples { /* - * x-ms-original-file: 2026-06-15-preview/BackupPolicies_Delete.json + * x-ms-original-file: 2026-08-01/BackupPolicies_Delete.json */ /** * Sample code: BackupPolicies_Delete. @@ -850,7 +588,7 @@ public final class BackupPoliciesDeleteSamples { */ public final class BackupPoliciesGetSamples { /* - * x-ms-original-file: 2026-06-15-preview/BackupPolicies_Get.json + * x-ms-original-file: 2026-08-01/BackupPolicies_Get.json */ /** * Sample code: BackupPolicies_Get. @@ -872,7 +610,7 @@ public final class BackupPoliciesGetSamples { */ public final class BackupPoliciesListSamples { /* - * x-ms-original-file: 2026-06-15-preview/BackupPolicies_List.json + * x-ms-original-file: 2026-08-01/BackupPolicies_List.json */ /** * Sample code: BackupPolicies_List. @@ -895,7 +633,7 @@ import com.azure.resourcemanager.netapp.models.BackupPolicy; */ public final class BackupPoliciesUpdateSamples { /* - * x-ms-original-file: 2026-06-15-preview/BackupPolicies_Update.json + * x-ms-original-file: 2026-08-01/BackupPolicies_Update.json */ /** * Sample code: BackupPolicies_Update. @@ -924,7 +662,7 @@ public final class BackupPoliciesUpdateSamples { */ public final class BackupVaultsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-06-15-preview/BackupVaults_Create.json + * x-ms-original-file: 2026-08-01/BackupVaults_Create.json */ /** * Sample code: BackupVault_CreateOrUpdate. @@ -949,7 +687,7 @@ public final class BackupVaultsCreateOrUpdateSamples { */ public final class BackupVaultsDeleteSamples { /* - * x-ms-original-file: 2026-06-15-preview/BackupVaults_Delete.json + * x-ms-original-file: 2026-08-01/BackupVaults_Delete.json */ /** * Sample code: BackupVaults_Delete. @@ -970,7 +708,7 @@ public final class BackupVaultsDeleteSamples { */ public final class BackupVaultsGetSamples { /* - * x-ms-original-file: 2026-06-15-preview/BackupVaults_Get.json + * x-ms-original-file: 2026-08-01/BackupVaults_Get.json */ /** * Sample code: BackupVaults_Get. @@ -991,7 +729,7 @@ public final class BackupVaultsGetSamples { */ public final class BackupVaultsListByNetAppAccountSamples { /* - * x-ms-original-file: 2026-06-15-preview/BackupVaults_List.json + * x-ms-original-file: 2026-08-01/BackupVaults_List.json */ /** * Sample code: BackupVaults_List. @@ -1016,7 +754,7 @@ import java.util.Map; */ public final class BackupVaultsUpdateSamples { /* - * x-ms-original-file: 2026-06-15-preview/BackupVaults_Update.json + * x-ms-original-file: 2026-08-01/BackupVaults_Update.json */ /** * Sample code: BackupVaults_Update. @@ -1052,7 +790,7 @@ public final class BackupVaultsUpdateSamples { */ public final class BackupsCreateSamples { /* - * x-ms-original-file: 2026-06-15-preview/BackupsUnderBackupVault_Create.json + * x-ms-original-file: 2026-08-01/BackupsUnderBackupVault_Create.json */ /** * Sample code: BackupsUnderBackupVault_Create. @@ -1079,7 +817,7 @@ public final class BackupsCreateSamples { */ public final class BackupsDeleteSamples { /* - * x-ms-original-file: 2026-06-15-preview/BackupsUnderBackupVault_Delete.json + * x-ms-original-file: 2026-08-01/BackupsUnderBackupVault_Delete.json */ /** * Sample code: BackupsUnderBackupVault_Delete. @@ -1101,7 +839,7 @@ public final class BackupsDeleteSamples { */ public final class BackupsGetSamples { /* - * x-ms-original-file: 2026-06-15-preview/BackupsUnderBackupVault_Get.json + * x-ms-original-file: 2026-08-01/BackupsUnderBackupVault_Get.json */ /** * Sample code: BackupsUnderBackupVault_Get. @@ -1123,7 +861,7 @@ public final class BackupsGetSamples { */ public final class BackupsGetLatestStatusSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_LatestBackupStatus.json + * x-ms-original-file: 2026-08-01/Volumes_LatestBackupStatus.json */ /** * Sample code: Volumes_BackupStatus. @@ -1145,7 +883,7 @@ public final class BackupsGetLatestStatusSamples { */ public final class BackupsGetVolumeLatestRestoreStatusSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_LatestRestoreStatus.json + * x-ms-original-file: 2026-08-01/Volumes_LatestRestoreStatus.json */ /** * Sample code: Volumes_RestoreStatus. @@ -1168,7 +906,7 @@ public final class BackupsGetVolumeLatestRestoreStatusSamples { */ public final class BackupsListByVaultSamples { /* - * x-ms-original-file: 2026-06-15-preview/Backups_ListByVault.json + * x-ms-original-file: 2026-08-01/Backups_ListByVault.json */ /** * Sample code: Backups_ListByVault. @@ -1191,7 +929,7 @@ import com.azure.resourcemanager.netapp.models.Backup; */ public final class BackupsUpdateSamples { /* - * x-ms-original-file: 2026-06-15-preview/BackupsUnderBackupVault_Update.json + * x-ms-original-file: 2026-08-01/BackupsUnderBackupVault_Update.json */ /** * Sample code: BackupsUnderBackupVault_Update. @@ -1217,7 +955,7 @@ import com.azure.resourcemanager.netapp.models.BackupsMigrationRequest; */ public final class BackupsUnderAccountMigrateBackupsSamples { /* - * x-ms-original-file: 2026-06-15-preview/BackupsUnderAccount_Migrate.json + * x-ms-original-file: 2026-08-01/BackupsUnderAccount_Migrate.json */ /** * Sample code: BackupsUnderAccount_Migrate. @@ -1244,7 +982,7 @@ import java.util.Arrays; */ public final class BackupsUnderBackupVaultRestoreFilesSamples { /* - * x-ms-original-file: 2026-06-15-preview/BackupsUnderBackupVault_SingleFileRestore.json + * x-ms-original-file: 2026-08-01/BackupsUnderBackupVault_SingleFileRestore.json */ /** * Sample code: Backups_SingleFileRestore. @@ -1272,7 +1010,7 @@ import com.azure.resourcemanager.netapp.models.BackupsMigrationRequest; */ public final class BackupsUnderVolumeMigrateBackupsSamples { /* - * x-ms-original-file: 2026-06-15-preview/BackupsUnderVolume_Migrate.json + * x-ms-original-file: 2026-08-01/BackupsUnderVolume_Migrate.json */ /** * Sample code: BackupsUnderVolume_Migrate. @@ -1305,7 +1043,7 @@ import com.azure.resourcemanager.netapp.models.OnCertificateConflictAction; */ public final class BucketsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-06-15-preview/Buckets_CreateOrUpdate.json + * x-ms-original-file: 2026-08-01/Buckets_CreateOrUpdate.json */ /** * Sample code: Buckets_CreateOrUpdate. @@ -1326,7 +1064,7 @@ public final class BucketsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2026-06-15-preview/Buckets_CreateOrUpdateWithAkv.json + * x-ms-original-file: 2026-08-01/Buckets_CreateOrUpdateWithAkv.json */ /** * Sample code: Buckets_CreateOrUpdateWithAkv. @@ -1342,16 +1080,13 @@ public final class BucketsCreateOrUpdateSamples { .withServer(new BucketServerProperties().withFqdn("fullyqualified.domainname.com") .withOnCertificateConflictAction(OnCertificateConflictAction.FAIL)) .withPermissions(BucketPermissions.READ_ONLY) - .withAkvDetails(new AzureKeyVaultDetails().withCertificateAkvDetails(new CertificateAkvDetails() - .withCertificateKeyVaultUri("fakeTokenPlaceholder") - .withCertificateName("my-certificate") - .withUserAssignedIdentity( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1")) - .withCredentialsAkvDetails(new CredentialsAkvDetails() - .withCredentialsKeyVaultUri("fakeTokenPlaceholder") - .withSecretName("fakeTokenPlaceholder") - .withUserAssignedIdentity( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"))) + .withAkvDetails(new AzureKeyVaultDetails() + .withCertificateAkvDetails( + new CertificateAkvDetails().withCertificateKeyVaultUri("fakeTokenPlaceholder") + .withCertificateName("my-certificate")) + .withCredentialsAkvDetails( + new CredentialsAkvDetails().withCredentialsKeyVaultUri("fakeTokenPlaceholder") + .withSecretName("fakeTokenPlaceholder"))) .create(); } } @@ -1365,7 +1100,7 @@ public final class BucketsCreateOrUpdateSamples { */ public final class BucketsDeleteSamples { /* - * x-ms-original-file: 2026-06-15-preview/Buckets_Delete.json + * x-ms-original-file: 2026-08-01/Buckets_Delete.json */ /** * Sample code: Buckets_Delete. @@ -1388,7 +1123,7 @@ import com.azure.resourcemanager.netapp.models.BucketCredentialsExpiry; */ public final class BucketsGenerateAkvCredentialsSamples { /* - * x-ms-original-file: 2026-06-15-preview/Buckets_GenerateAkvCredentials.json + * x-ms-original-file: 2026-08-01/Buckets_GenerateAkvCredentials.json */ /** * Sample code: Buckets_GenerateAkvCredentials. @@ -1413,7 +1148,7 @@ import com.azure.resourcemanager.netapp.models.BucketCredentialsExpiry; */ public final class BucketsGenerateCredentialsSamples { /* - * x-ms-original-file: 2026-06-15-preview/Buckets_GenerateCredentials.json + * x-ms-original-file: 2026-08-01/Buckets_GenerateCredentials.json */ /** * Sample code: Buckets_GenerateCredentials. @@ -1436,7 +1171,7 @@ public final class BucketsGenerateCredentialsSamples { */ public final class BucketsGetSamples { /* - * x-ms-original-file: 2026-06-15-preview/Buckets_Get.json + * x-ms-original-file: 2026-08-01/Buckets_Get.json */ /** * Sample code: Buckets_Get. @@ -1458,7 +1193,7 @@ public final class BucketsGetSamples { */ public final class BucketsListSamples { /* - * x-ms-original-file: 2026-06-15-preview/Buckets_List.json + * x-ms-original-file: 2026-08-01/Buckets_List.json */ /** * Sample code: Buckets_List. @@ -1479,7 +1214,7 @@ public final class BucketsListSamples { */ public final class BucketsRefreshCertificateSamples { /* - * x-ms-original-file: 2026-06-15-preview/Buckets_RefreshCertificate.json + * x-ms-original-file: 2026-08-01/Buckets_RefreshCertificate.json */ /** * Sample code: Buckets_RefreshCertificate. @@ -1509,7 +1244,7 @@ import com.azure.resourcemanager.netapp.models.OnCertificateConflictAction; */ public final class BucketsUpdateSamples { /* - * x-ms-original-file: 2026-06-15-preview/Buckets_Update.json + * x-ms-original-file: 2026-08-01/Buckets_Update.json */ /** * Sample code: Buckets_Update. @@ -1529,7 +1264,7 @@ public final class BucketsUpdateSamples { } /* - * x-ms-original-file: 2026-06-15-preview/Buckets_UpdateWithAkv.json + * x-ms-original-file: 2026-08-01/Buckets_UpdateWithAkv.json */ /** * Sample code: Buckets_UpdateWithAkv. @@ -1544,16 +1279,13 @@ public final class BucketsUpdateSamples { .withServer(new BucketServerPatchProperties().withFqdn("fullyqualified.domainname.com") .withOnCertificateConflictAction(OnCertificateConflictAction.FAIL)) .withPermissions(BucketPatchPermissions.READ_ONLY) - .withAkvDetails(new AzureKeyVaultDetails().withCertificateAkvDetails(new CertificateAkvDetails() - .withCertificateKeyVaultUri("fakeTokenPlaceholder") - .withCertificateName("my-certificate") - .withUserAssignedIdentity( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1")) - .withCredentialsAkvDetails(new CredentialsAkvDetails() - .withCredentialsKeyVaultUri("fakeTokenPlaceholder") - .withSecretName("fakeTokenPlaceholder") - .withUserAssignedIdentity( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"))) + .withAkvDetails(new AzureKeyVaultDetails() + .withCertificateAkvDetails( + new CertificateAkvDetails().withCertificateKeyVaultUri("fakeTokenPlaceholder") + .withCertificateName("my-certificate")) + .withCredentialsAkvDetails( + new CredentialsAkvDetails().withCredentialsKeyVaultUri("fakeTokenPlaceholder") + .withSecretName("fakeTokenPlaceholder"))) .apply(); } } @@ -1574,7 +1306,7 @@ import java.util.Arrays; */ public final class CachesCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-06-15-preview/Caches_CreateOrUpdate.json + * x-ms-original-file: 2026-08-01/Caches_CreateOrUpdate.json */ /** * Sample code: Caches_CreateOrUpdate. @@ -1612,7 +1344,7 @@ public final class CachesCreateOrUpdateSamples { */ public final class CachesDeleteSamples { /* - * x-ms-original-file: 2026-06-15-preview/Caches_Delete.json + * x-ms-original-file: 2026-08-01/Caches_Delete.json */ /** * Sample code: Caches_Delete. @@ -1633,7 +1365,7 @@ public final class CachesDeleteSamples { */ public final class CachesGetSamples { /* - * x-ms-original-file: 2026-06-15-preview/Caches_Get.json + * x-ms-original-file: 2026-08-01/Caches_Get.json */ /** * Sample code: Caches_Get. @@ -1654,7 +1386,7 @@ public final class CachesGetSamples { */ public final class CachesListSamples { /* - * x-ms-original-file: 2026-06-15-preview/Caches_List.json + * x-ms-original-file: 2026-08-01/Caches_List.json */ /** * Sample code: Caches_List. @@ -1675,7 +1407,7 @@ public final class CachesListSamples { */ public final class CachesListPeeringPassphrasesSamples { /* - * x-ms-original-file: 2026-06-15-preview/Caches_ListPeeringPassphrases.json + * x-ms-original-file: 2026-08-01/Caches_ListPeeringPassphrases.json */ /** * Sample code: Caches_ListPeeringPassphrases. @@ -1700,7 +1432,7 @@ import com.azure.resourcemanager.netapp.models.PoolChangeRequest; */ public final class CachesPoolChangeSamples { /* - * x-ms-original-file: 2026-06-15-preview/Caches_PoolChange.json + * x-ms-original-file: 2026-08-01/Caches_PoolChange.json */ /** * Sample code: Caches_PoolChange. @@ -1724,7 +1456,7 @@ public final class CachesPoolChangeSamples { */ public final class CachesResetSmbPasswordSamples { /* - * x-ms-original-file: 2026-06-15-preview/Caches_ResetSmbPassword.json + * x-ms-original-file: 2026-08-01/Caches_ResetSmbPassword.json */ /** * Sample code: Caches_ResetSmbPassword. @@ -1749,7 +1481,7 @@ import com.azure.resourcemanager.netapp.models.CacheUpdateProperties; */ public final class CachesUpdateSamples { /* - * x-ms-original-file: 2026-06-15-preview/Caches_Update.json + * x-ms-original-file: 2026-08-01/Caches_Update.json */ /** * Sample code: Caches_Update. @@ -1765,1243 +1497,6 @@ public final class CachesUpdateSamples { } ``` -### ElasticAccounts_CreateOrUpdate - -```java -import com.azure.resourcemanager.netapp.models.ElasticAccountProperties; -import java.util.HashMap; -import java.util.Map; - -/** - * Samples for ElasticAccounts CreateOrUpdate. - */ -public final class ElasticAccountsCreateOrUpdateSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticAccounts_CreateOrUpdate.json - */ - /** - * Sample code: ElasticAccounts_CreateOrUpdate. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticAccountsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticAccounts() - .define("account1") - .withRegion("eastus") - .withExistingResourceGroup("myRG") - .withTags(mapOf("ac-tag1", "account1")) - .withProperties(new ElasticAccountProperties()) - .create(); - } - - // 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; - } -} -``` - -### ElasticAccounts_Delete - -```java -/** - * Samples for ElasticAccounts Delete. - */ -public final class ElasticAccountsDeleteSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticAccounts_Delete.json - */ - /** - * Sample code: ElasticAccounts_Delete. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticAccountsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticAccounts().delete("myRG", "account1", com.azure.core.util.Context.NONE); - } -} -``` - -### ElasticAccounts_GetByResourceGroup - -```java -/** - * Samples for ElasticAccounts GetByResourceGroup. - */ -public final class ElasticAccountsGetByResourceGroupSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticAccounts_Get.json - */ - /** - * Sample code: ElasticAccounts_Get. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticAccountsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticAccounts().getByResourceGroupWithResponse("myRG", "account1", com.azure.core.util.Context.NONE); - } -} -``` - -### ElasticAccounts_List - -```java -/** - * Samples for ElasticAccounts List. - */ -public final class ElasticAccountsListSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticAccounts_ListBySubscription.json - */ - /** - * Sample code: ElasticAccounts_ListBySubscription. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticAccountsListBySubscription(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticAccounts().list(com.azure.core.util.Context.NONE); - } -} -``` - -### ElasticAccounts_ListByResourceGroup - -```java -/** - * Samples for ElasticAccounts ListByResourceGroup. - */ -public final class ElasticAccountsListByResourceGroupSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticAccounts_ListByResourceGroup.json - */ - /** - * Sample code: ElasticAccounts_ListByResourceGroup. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticAccountsListByResourceGroup(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticAccounts().listByResourceGroup("myRG", com.azure.core.util.Context.NONE); - } -} -``` - -### ElasticAccounts_Update - -```java -import com.azure.resourcemanager.netapp.models.ElasticAccount; -import java.util.HashMap; -import java.util.Map; - -/** - * Samples for ElasticAccounts Update. - */ -public final class ElasticAccountsUpdateSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticAccounts_Update.json - */ - /** - * Sample code: ElasticAccounts_Update. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticAccountsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - ElasticAccount resource = manager.elasticAccounts() - .getByResourceGroupWithResponse("myRG", "account1", com.azure.core.util.Context.NONE) - .getValue(); - resource.update().withTags(mapOf("Tag1", "Value1")).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; - } -} -``` - -### ElasticBackupPolicies_CreateOrUpdate - -```java -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyProperties; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyState; - -/** - * Samples for ElasticBackupPolicies CreateOrUpdate. - */ -public final class ElasticBackupPoliciesCreateOrUpdateSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticBackupPolicies_CreateOrUpdate.json - */ - /** - * Sample code: ElasticBackupPolicies_CreateOrUpdate. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void - elasticBackupPoliciesCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticBackupPolicies() - .define("backupPolicyName") - .withRegion("westus") - .withExistingElasticAccount("myRG", "account1") - .withProperties(new ElasticBackupPolicyProperties().withDailyBackupsToKeep(10) - .withWeeklyBackupsToKeep(10) - .withMonthlyBackupsToKeep(10) - .withPolicyState(ElasticBackupPolicyState.ENABLED)) - .create(); - } -} -``` - -### ElasticBackupPolicies_Delete - -```java -/** - * Samples for ElasticBackupPolicies Delete. - */ -public final class ElasticBackupPoliciesDeleteSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticBackupPolicies_Delete.json - */ - /** - * Sample code: ElasticBackupPolicies_Delete. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticBackupPoliciesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticBackupPolicies() - .delete("resourceGroup", "accountName", "backupPolicyName", com.azure.core.util.Context.NONE); - } -} -``` - -### ElasticBackupPolicies_Get - -```java -/** - * Samples for ElasticBackupPolicies Get. - */ -public final class ElasticBackupPoliciesGetSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticBackupPolicies_Get.json - */ - /** - * Sample code: ElasticBackupPolicies_Get. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticBackupPoliciesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticBackupPolicies() - .getWithResponse("myRG", "account1", "backupPolicyName", com.azure.core.util.Context.NONE); - } -} -``` - -### ElasticBackupPolicies_ListByElasticAccount - -```java -/** - * Samples for ElasticBackupPolicies ListByElasticAccount. - */ -public final class ElasticBackupPoliciesListByElasticAccountSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticBackupPolicies_List.json - */ - /** - * Sample code: ElasticBackupPolicies_ListByElasticAccount. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void - elasticBackupPoliciesListByElasticAccount(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticBackupPolicies().listByElasticAccount("myRG", "account1", com.azure.core.util.Context.NONE); - } -} -``` - -### ElasticBackupPolicies_Update - -```java -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicy; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyState; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyUpdateProperties; - -/** - * Samples for ElasticBackupPolicies Update. - */ -public final class ElasticBackupPoliciesUpdateSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticBackupPolicies_Update.json - */ - /** - * Sample code: ElasticBackupPolicies_Update. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticBackupPoliciesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - ElasticBackupPolicy resource = manager.elasticBackupPolicies() - .getWithResponse("myRG", "account1", "backupPolicyName", com.azure.core.util.Context.NONE) - .getValue(); - resource.update() - .withProperties(new ElasticBackupPolicyUpdateProperties().withDailyBackupsToKeep(5) - .withWeeklyBackupsToKeep(10) - .withMonthlyBackupsToKeep(10) - .withPolicyState(ElasticBackupPolicyState.ENABLED)) - .apply(); - } -} -``` - -### ElasticBackupVaults_CreateOrUpdate - -```java -/** - * Samples for ElasticBackupVaults CreateOrUpdate. - */ -public final class ElasticBackupVaultsCreateOrUpdateSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticBackupVaults_Create.json - */ - /** - * Sample code: ElasticBackupVaults_CreateOrUpdate. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticBackupVaultsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticBackupVaults() - .define("backupVault1") - .withRegion("eastus") - .withExistingElasticAccount("myRG", "account1") - .create(); - } -} -``` - -### ElasticBackupVaults_Delete - -```java -/** - * Samples for ElasticBackupVaults Delete. - */ -public final class ElasticBackupVaultsDeleteSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticBackupVaults_Delete.json - */ - /** - * Sample code: ElasticBackupVaults_Delete. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticBackupVaultsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticBackupVaults() - .delete("resourceGroup", "account1", "backupVault1", com.azure.core.util.Context.NONE); - } -} -``` - -### ElasticBackupVaults_Get - -```java -/** - * Samples for ElasticBackupVaults Get. - */ -public final class ElasticBackupVaultsGetSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticBackupVaults_Get.json - */ - /** - * Sample code: ElasticBackupVaults_Get. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticBackupVaultsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticBackupVaults() - .getWithResponse("myRG", "account1", "backupVault1", com.azure.core.util.Context.NONE); - } -} -``` - -### ElasticBackupVaults_ListByElasticAccount - -```java -/** - * Samples for ElasticBackupVaults ListByElasticAccount. - */ -public final class ElasticBackupVaultsListByElasticAccountSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticBackupVaults_ListByElasticAccount.json - */ - /** - * Sample code: ElasticBackupVaults_ListByElasticAccount. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void - elasticBackupVaultsListByElasticAccount(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticBackupVaults().listByElasticAccount("myRG", "account1", com.azure.core.util.Context.NONE); - } -} -``` - -### ElasticBackupVaults_Update - -```java -import com.azure.resourcemanager.netapp.models.ElasticBackupVault; -import java.util.HashMap; -import java.util.Map; - -/** - * Samples for ElasticBackupVaults Update. - */ -public final class ElasticBackupVaultsUpdateSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticBackupVaults_Update.json - */ - /** - * Sample code: ElasticBackupVaults_Update. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticBackupVaultsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - ElasticBackupVault resource = manager.elasticBackupVaults() - .getWithResponse("myRG", "account1", "backupVault1", com.azure.core.util.Context.NONE) - .getValue(); - resource.update().withTags(mapOf("Tag1", "Value1")).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; - } -} -``` - -### ElasticBackups_CreateOrUpdate - -```java -import com.azure.resourcemanager.netapp.models.ElasticBackupProperties; -import com.azure.resourcemanager.netapp.models.SnapshotUsage; - -/** - * Samples for ElasticBackups CreateOrUpdate. - */ -public final class ElasticBackupsCreateOrUpdateSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticBackups_CreateOrUpdate.json - */ - /** - * Sample code: ElasticBackups_CreateOrUpdate. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticBackupsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticBackups() - .define("backup1") - .withExistingElasticBackupVault("myRG", "account1", "backupVault1") - .withProperties(new ElasticBackupProperties().withLabel("myLabel") - .withElasticVolumeResourceId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/elasticAccounts/account1/elasticCapacityPools/pool1/elasticVolumes/volume1") - .withSnapshotUsage(SnapshotUsage.USE_EXISTING_SNAPSHOT) - .withElasticSnapshotResourceId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/elasticAccounts/account1/elasticCapacityPools/pool1/elasticVolumes/volume1/elasticSnapshots/snap1")) - .create(); - } -} -``` - -### ElasticBackups_Delete - -```java -/** - * Samples for ElasticBackups Delete. - */ -public final class ElasticBackupsDeleteSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticBackups_Delete.json - */ - /** - * Sample code: ElasticBackups_Delete. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticBackupsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticBackups() - .delete("resourceGroup", "account1", "backupVault1", "backup1", com.azure.core.util.Context.NONE); - } -} -``` - -### ElasticBackups_Get - -```java -/** - * Samples for ElasticBackups Get. - */ -public final class ElasticBackupsGetSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticBackups_Get.json - */ - /** - * Sample code: ElasticBackups_Get. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticBackupsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticBackups() - .getWithResponse("myRG", "account1", "backupVault1", "backup1", com.azure.core.util.Context.NONE); - } -} -``` - -### ElasticBackups_ListByVault - -```java -/** - * Samples for ElasticBackups ListByVault. - */ -public final class ElasticBackupsListByVaultSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticBackups_ListByVault.json - */ - /** - * Sample code: ElasticBackups_ListByVault. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticBackupsListByVault(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticBackups().listByVault("myRG", "account1", "backupVault1", com.azure.core.util.Context.NONE); - } -} -``` - -### ElasticBackups_Update - -```java -import com.azure.resourcemanager.netapp.models.ElasticBackup; - -/** - * Samples for ElasticBackups Update. - */ -public final class ElasticBackupsUpdateSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticBackups_Update.json - */ - /** - * Sample code: ElasticBackups_Update. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticBackupsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - ElasticBackup resource = manager.elasticBackups() - .getWithResponse("myRG", "account1", "backupVault1", "backup1", com.azure.core.util.Context.NONE) - .getValue(); - resource.update().apply(); - } -} -``` - -### ElasticCapacityPools_ChangeZone - -```java -import com.azure.resourcemanager.netapp.models.ChangeZoneRequest; - -/** - * Samples for ElasticCapacityPools ChangeZone. - */ -public final class ElasticCapacityPoolsChangeZoneSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticCapacityPools_ChangeZone.json - */ - /** - * Sample code: ElasticCapacityPools_ChangeZone. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticCapacityPoolsChangeZone(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticCapacityPools() - .changeZone("myRG", "account1", "pool1", new ChangeZoneRequest().withNewZone("3"), - com.azure.core.util.Context.NONE); - } -} -``` - -### ElasticCapacityPools_CheckVolumeFilePathAvailability - -```java -import com.azure.resourcemanager.netapp.models.CheckElasticVolumeFilePathAvailabilityRequest; - -/** - * Samples for ElasticCapacityPools CheckVolumeFilePathAvailability. - */ -public final class ElasticCapacityPoolsCheckVolumeFilePathAvailabilitySamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticCapacityPools_CheckVolumeFilePathAvailability.json - */ - /** - * Sample code: ElasticCapacityPools_CheckVolumeFilePathAvailability. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticCapacityPoolsCheckVolumeFilePathAvailability( - com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticCapacityPools() - .checkVolumeFilePathAvailabilityWithResponse("myRG", "account1", "pool1", - new CheckElasticVolumeFilePathAvailabilityRequest().withFilePath("my-exact-filepath"), - com.azure.core.util.Context.NONE); - } -} -``` - -### ElasticCapacityPools_CreateOrUpdate - -```java -import com.azure.resourcemanager.netapp.models.ElasticCapacityPoolProperties; -import com.azure.resourcemanager.netapp.models.ElasticEncryptionConfiguration; -import com.azure.resourcemanager.netapp.models.ElasticPoolEncryptionKeySource; -import com.azure.resourcemanager.netapp.models.ElasticServiceLevel; -import java.util.Arrays; - -/** - * Samples for ElasticCapacityPools CreateOrUpdate. - */ -public final class ElasticCapacityPoolsCreateOrUpdateSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticCapacityPools_CreateOrUpdateCMK.json - */ - /** - * Sample code: ElasticCapacityPools_CreateOrUpdateCMK. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void - elasticCapacityPoolsCreateOrUpdateCMK(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticCapacityPools() - .define("pool1") - .withRegion("eastus") - .withExistingElasticAccount("myRG", "account1") - .withProperties(new ElasticCapacityPoolProperties().withSize(4398046511104L) - .withServiceLevel(ElasticServiceLevel.ZONE_REDUNDANT) - .withEncryption(new ElasticEncryptionConfiguration() - .withElasticPoolEncryptionKeySource(ElasticPoolEncryptionKeySource.NET_APP) - .withKeyVaultPrivateEndpointResourceId("fakeTokenPlaceholder")) - .withSubnetResourceId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") - .withActiveDirectoryConfigResourceId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/activeDirectoryConfigs/activeDirectoryConfig1")) - .withZones(Arrays.asList("1", "2", "3")) - .create(); - } - - /* - * x-ms-original-file: 2026-06-15-preview/ElasticCapacityPools_CreateOrUpdate.json - */ - /** - * Sample code: ElasticCapacityPools_CreateOrUpdate. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticCapacityPoolsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticCapacityPools() - .define("pool1") - .withRegion("eastus") - .withExistingElasticAccount("myRG", "account1") - .withProperties(new ElasticCapacityPoolProperties().withSize(4398046511104L) - .withServiceLevel(ElasticServiceLevel.ZONE_REDUNDANT) - .withSubnetResourceId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") - .withActiveDirectoryConfigResourceId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/activeDirectoryConfigs/activeDirectoryConfig1")) - .withZones(Arrays.asList("1", "2", "3")) - .create(); - } -} -``` - -### ElasticCapacityPools_Delete - -```java -/** - * Samples for ElasticCapacityPools Delete. - */ -public final class ElasticCapacityPoolsDeleteSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticCapacityPools_Delete.json - */ - /** - * Sample code: ElasticCapacityPools_Delete. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticCapacityPoolsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticCapacityPools().delete("myRG", "account1", "pool1", com.azure.core.util.Context.NONE); - } -} -``` - -### ElasticCapacityPools_Get - -```java -/** - * Samples for ElasticCapacityPools Get. - */ -public final class ElasticCapacityPoolsGetSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticCapacityPools_Get.json - */ - /** - * Sample code: ElasticCapacityPools_Get. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticCapacityPoolsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticCapacityPools().getWithResponse("myRG", "account1", "pool1", com.azure.core.util.Context.NONE); - } -} -``` - -### ElasticCapacityPools_ListByElasticAccount - -```java -/** - * Samples for ElasticCapacityPools ListByElasticAccount. - */ -public final class ElasticCapacityPoolsListByElasticAccountSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticCapacityPools_ListByElasticAccount.json - */ - /** - * Sample code: ElasticCapacityPools_ListByElasticAccount. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void - elasticCapacityPoolsListByElasticAccount(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticCapacityPools().listByElasticAccount("myRG", "account1", com.azure.core.util.Context.NONE); - } -} -``` - -### ElasticCapacityPools_Update - -```java -import com.azure.resourcemanager.netapp.models.ElasticCapacityPool; -import com.azure.resourcemanager.netapp.models.ElasticCapacityPoolUpdateProperties; - -/** - * Samples for ElasticCapacityPools Update. - */ -public final class ElasticCapacityPoolsUpdateSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticCapacityPools_Update.json - */ - /** - * Sample code: ElasticCapacityPools_Update. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticCapacityPoolsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - ElasticCapacityPool resource = manager.elasticCapacityPools() - .getWithResponse("myRG", "account1", "pool1", com.azure.core.util.Context.NONE) - .getValue(); - resource.update() - .withProperties(new ElasticCapacityPoolUpdateProperties().withSize(4398046511104L) - .withActiveDirectoryConfigResourceId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/activeDirectoryConfigs/activeDirectoryConfig1")) - .apply(); - } -} -``` - -### ElasticSnapshotPolicies_CreateOrUpdate - -```java -import com.azure.resourcemanager.netapp.models.DayOfWeek; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyDailySchedule; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyHourlySchedule; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyMonthlySchedule; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyProperties; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyWeeklySchedule; -import com.azure.resourcemanager.netapp.models.PolicyStatus; -import java.util.Arrays; - -/** - * Samples for ElasticSnapshotPolicies CreateOrUpdate. - */ -public final class ElasticSnapshotPoliciesCreateOrUpdateSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticSnapshotPolicies_CreateOrUpdate.json - */ - /** - * Sample code: ElasticSnapshotPolicies_CreateOrUpdate. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void - elasticSnapshotPoliciesCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticSnapshotPolicies() - .define("snapshotPolicyName") - .withRegion("eastus") - .withExistingElasticAccount("myRG", "account1") - .withProperties(new ElasticSnapshotPolicyProperties() - .withHourlySchedule(new ElasticSnapshotPolicyHourlySchedule().withSnapshotsToKeep(2).withMinute(50)) - .withDailySchedule( - new ElasticSnapshotPolicyDailySchedule().withSnapshotsToKeep(4).withHour(14).withMinute(30)) - .withWeeklySchedule(new ElasticSnapshotPolicyWeeklySchedule().withSnapshotsToKeep(3) - .withDays(Arrays.asList(DayOfWeek.WEDNESDAY)) - .withHour(14) - .withMinute(45)) - .withMonthlySchedule(new ElasticSnapshotPolicyMonthlySchedule().withSnapshotsToKeep(5) - .withDaysOfMonth(Arrays.asList(10, 11, 12)) - .withHour(14) - .withMinute(15)) - .withPolicyStatus(PolicyStatus.ENABLED)) - .create(); - } -} -``` - -### ElasticSnapshotPolicies_Delete - -```java -/** - * Samples for ElasticSnapshotPolicies Delete. - */ -public final class ElasticSnapshotPoliciesDeleteSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticSnapshotPolicies_Delete.json - */ - /** - * Sample code: ElasticSnapshotPolicies_Delete. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticSnapshotPoliciesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticSnapshotPolicies() - .delete("resourceGroup", "accountName", "snapshotPolicyName", com.azure.core.util.Context.NONE); - } -} -``` - -### ElasticSnapshotPolicies_Get - -```java -/** - * Samples for ElasticSnapshotPolicies Get. - */ -public final class ElasticSnapshotPoliciesGetSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticSnapshotPolicies_Get.json - */ - /** - * Sample code: ElasticSnapshotPolicies_Get. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticSnapshotPoliciesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticSnapshotPolicies() - .getWithResponse("myRG", "account1", "snapshotPolicyName", com.azure.core.util.Context.NONE); - } -} -``` - -### ElasticSnapshotPolicies_ListByElasticAccount - -```java -/** - * Samples for ElasticSnapshotPolicies ListByElasticAccount. - */ -public final class ElasticSnapshotPoliciesListByElasticAccountSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticSnapshotPolicies_ListByElasticAccount.json - */ - /** - * Sample code: ElasticSnapshotPolicies_ListByElasticAccount. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void - elasticSnapshotPoliciesListByElasticAccount(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticSnapshotPolicies().listByElasticAccount("myRG", "account1", com.azure.core.util.Context.NONE); - } -} -``` - -### ElasticSnapshotPolicies_ListElasticVolumes - -```java -/** - * Samples for ElasticSnapshotPolicies ListElasticVolumes. - */ -public final class ElasticSnapshotPoliciesListElasticVolumesSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticSnapshotPolicies_ListElasticVolumes.json - */ - /** - * Sample code: ElasticSnapshotPolicies_ListElasticVolumes. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void - elasticSnapshotPoliciesListElasticVolumes(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticSnapshotPolicies() - .listElasticVolumes("myRG", "account1", "snapshotPolicyName", com.azure.core.util.Context.NONE); - } -} -``` - -### ElasticSnapshotPolicies_Update - -```java -import com.azure.resourcemanager.netapp.models.DayOfWeek; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicy; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyDailySchedule; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyHourlySchedule; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyMonthlySchedule; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyUpdateProperties; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyWeeklySchedule; -import com.azure.resourcemanager.netapp.models.PolicyStatus; -import java.util.Arrays; - -/** - * Samples for ElasticSnapshotPolicies Update. - */ -public final class ElasticSnapshotPoliciesUpdateSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticSnapshotPolicies_Update.json - */ - /** - * Sample code: ElasticSnapshotPolicies_Update. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticSnapshotPoliciesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - ElasticSnapshotPolicy resource = manager.elasticSnapshotPolicies() - .getWithResponse("myRG", "account1", "snapshotPolicyName", com.azure.core.util.Context.NONE) - .getValue(); - resource.update() - .withProperties(new ElasticSnapshotPolicyUpdateProperties() - .withHourlySchedule(new ElasticSnapshotPolicyHourlySchedule().withSnapshotsToKeep(2).withMinute(50)) - .withDailySchedule( - new ElasticSnapshotPolicyDailySchedule().withSnapshotsToKeep(4).withHour(14).withMinute(30)) - .withWeeklySchedule(new ElasticSnapshotPolicyWeeklySchedule().withSnapshotsToKeep(3) - .withDays(Arrays.asList(DayOfWeek.WEDNESDAY)) - .withHour(14) - .withMinute(45)) - .withMonthlySchedule(new ElasticSnapshotPolicyMonthlySchedule().withSnapshotsToKeep(5) - .withDaysOfMonth(Arrays.asList(10, 11, 12)) - .withHour(14) - .withMinute(15)) - .withPolicyStatus(PolicyStatus.ENABLED)) - .apply(); - } -} -``` - -### ElasticSnapshots_CreateOrUpdate - -```java -/** - * Samples for ElasticSnapshots CreateOrUpdate. - */ -public final class ElasticSnapshotsCreateOrUpdateSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticSnapshots_CreateOrUpdate.json - */ - /** - * Sample code: ElasticSnapshots_CreateOrUpdate. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticSnapshotsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticSnapshots() - .define("snapshot1") - .withExistingElasticVolume("myRG", "account1", "pool1", "volume1") - .create(); - } -} -``` - -### ElasticSnapshots_Delete - -```java -/** - * Samples for ElasticSnapshots Delete. - */ -public final class ElasticSnapshotsDeleteSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticSnapshots_Delete.json - */ - /** - * Sample code: ElasticSnapshots_Delete. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticSnapshotsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticSnapshots() - .delete("myRG", "account1", "pool1", "volume1", "snapshot1", com.azure.core.util.Context.NONE); - } -} -``` - -### ElasticSnapshots_Get - -```java -/** - * Samples for ElasticSnapshots Get. - */ -public final class ElasticSnapshotsGetSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticSnapshots_Get.json - */ - /** - * Sample code: ElasticSnapshots_Get. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticSnapshotsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticSnapshots() - .getWithResponse("myRG", "account1", "pool1", "volume1", "snapshot1", com.azure.core.util.Context.NONE); - } -} -``` - -### ElasticSnapshots_ListByElasticVolume - -```java -/** - * Samples for ElasticSnapshots ListByElasticVolume. - */ -public final class ElasticSnapshotsListByElasticVolumeSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticSnapshots_ListByElasticVolume.json - */ - /** - * Sample code: ElasticSnapshots_ListByElasticVolume. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void - elasticSnapshotsListByElasticVolume(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticSnapshots() - .listByElasticVolume("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE); - } -} -``` - -### ElasticVolumes_CreateOrUpdate - -```java -import com.azure.resourcemanager.netapp.models.ElasticExportPolicy; -import com.azure.resourcemanager.netapp.models.ElasticExportPolicyRule; -import com.azure.resourcemanager.netapp.models.ElasticNfsv3Access; -import com.azure.resourcemanager.netapp.models.ElasticNfsv4Access; -import com.azure.resourcemanager.netapp.models.ElasticProtocolType; -import com.azure.resourcemanager.netapp.models.ElasticRootAccess; -import com.azure.resourcemanager.netapp.models.ElasticUnixAccessRule; -import com.azure.resourcemanager.netapp.models.ElasticVolumeBackupProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumeDataProtectionProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumePolicyEnforcement; -import com.azure.resourcemanager.netapp.models.ElasticVolumeProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumeSnapshotProperties; -import java.util.Arrays; - -/** - * Samples for ElasticVolumes CreateOrUpdate. - */ -public final class ElasticVolumesCreateOrUpdateSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticVolumes_CreateOrUpdate.json - */ - /** - * Sample code: ElasticVolumes_CreateOrUpdate. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticVolumesCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticVolumes() - .define("volume1") - .withRegion("eastus") - .withExistingElasticCapacityPool("myRG", "account1", "pool1") - .withProperties(new ElasticVolumeProperties().withFilePath("my-unique-file-path") - .withSize(107374182400L) - .withExportPolicy( - new ElasticExportPolicy().withRules(Arrays.asList(new ElasticExportPolicyRule().withRuleIndex(1) - .withUnixAccessRule(ElasticUnixAccessRule.READ_ONLY) - .withNfsv3(ElasticNfsv3Access.ENABLED) - .withNfsv4(ElasticNfsv4Access.DISABLED) - .withAllowedClients(Arrays.asList("0.0.0.0/0")) - .withRootAccess(ElasticRootAccess.DISABLED)))) - .withProtocolTypes(Arrays.asList(ElasticProtocolType.NFSV3)) - .withDataProtection(new ElasticVolumeDataProtectionProperties() - .withSnapshot(new ElasticVolumeSnapshotProperties().withSnapshotPolicyResourceId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/elasticAccounts/account1/elasticSnapshotPolicies/policy1")) - .withBackup(new ElasticVolumeBackupProperties().withElasticBackupPolicyResourceId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/elasticAccounts/account1/elasticBackupPolicies/elasticBackupPolicy1") - .withPolicyEnforcement(ElasticVolumePolicyEnforcement.ENFORCED) - .withElasticBackupVaultResourceId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/elasticAccounts/account1/elasticBackupVaults/elasticBackupVault1")))) - .create(); - } -} -``` - -### ElasticVolumes_Delete - -```java -/** - * Samples for ElasticVolumes Delete. - */ -public final class ElasticVolumesDeleteSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticVolumes_Delete.json - */ - /** - * Sample code: ElasticVolumes_Delete. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticVolumesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticVolumes().delete("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE); - } -} -``` - -### ElasticVolumes_Get - -```java -/** - * Samples for ElasticVolumes Get. - */ -public final class ElasticVolumesGetSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticVolumes_Get.json - */ - /** - * Sample code: ElasticVolumes_Get. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticVolumesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticVolumes() - .getWithResponse("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE); - } -} -``` - -### ElasticVolumes_ListByElasticPool - -```java -/** - * Samples for ElasticVolumes ListByElasticPool. - */ -public final class ElasticVolumesListByElasticPoolSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticVolumes_ListByElasticPool.json - */ - /** - * Sample code: ElasticVolumes_ListByElasticPool. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticVolumesListByElasticPool(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticVolumes().listByElasticPool("myRG", "account1", "pool1", com.azure.core.util.Context.NONE); - } -} -``` - -### ElasticVolumes_Revert - -```java -import com.azure.resourcemanager.netapp.models.ElasticVolumeRevert; - -/** - * Samples for ElasticVolumes Revert. - */ -public final class ElasticVolumesRevertSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticVolumes_Revert.json - */ - /** - * Sample code: ElasticVolumes_Revert. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticVolumesRevert(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticVolumes() - .revert("myRG", "account1", "pool1", "volume1", new ElasticVolumeRevert().withSnapshotResourceId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/elasticAccounts/account1/elasticCapacityPools/pool1/elasticVolumes/volume1/elasticSnapshots/snapshot1"), - com.azure.core.util.Context.NONE); - } -} -``` - -### ElasticVolumes_Update - -```java -import com.azure.resourcemanager.netapp.models.ElasticExportPolicy; -import com.azure.resourcemanager.netapp.models.ElasticExportPolicyRule; -import com.azure.resourcemanager.netapp.models.ElasticNfsv3Access; -import com.azure.resourcemanager.netapp.models.ElasticNfsv4Access; -import com.azure.resourcemanager.netapp.models.ElasticRootAccess; -import com.azure.resourcemanager.netapp.models.ElasticUnixAccessRule; -import com.azure.resourcemanager.netapp.models.ElasticVolume; -import com.azure.resourcemanager.netapp.models.ElasticVolumeDataProtectionPatchProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumeSnapshotProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumeUpdateProperties; -import java.util.Arrays; - -/** - * Samples for ElasticVolumes Update. - */ -public final class ElasticVolumesUpdateSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticVolumes_Update.json - */ - /** - * Sample code: ElasticVolumes_Update. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticVolumesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - ElasticVolume resource = manager.elasticVolumes() - .getWithResponse("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE) - .getValue(); - resource.update() - .withProperties(new ElasticVolumeUpdateProperties() - .withExportPolicy( - new ElasticExportPolicy().withRules(Arrays.asList(new ElasticExportPolicyRule().withRuleIndex(1) - .withUnixAccessRule(ElasticUnixAccessRule.READ_ONLY) - .withNfsv3(ElasticNfsv3Access.ENABLED) - .withNfsv4(ElasticNfsv4Access.DISABLED) - .withAllowedClients(Arrays.asList("0.0.0.0/0")) - .withRootAccess(ElasticRootAccess.DISABLED)))) - .withDataProtection(new ElasticVolumeDataProtectionPatchProperties() - .withSnapshot(new ElasticVolumeSnapshotProperties().withSnapshotPolicyResourceId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/elasticAccounts/account1/elasticSnapshotPolicies/policy1")))) - .apply(); - } -} -``` - ### NetAppResource_CheckFilePathAvailability ```java @@ -3012,7 +1507,7 @@ import com.azure.resourcemanager.netapp.models.FilePathAvailabilityRequest; */ public final class NetAppResourceCheckFilePathAvailabilitySamples { /* - * x-ms-original-file: 2026-06-15-preview/CheckFilePathAvailability.json + * x-ms-original-file: 2026-08-01/CheckFilePathAvailability.json */ /** * Sample code: CheckFilePathAvailability. @@ -3041,7 +1536,7 @@ import com.azure.resourcemanager.netapp.models.ResourceNameAvailabilityRequest; */ public final class NetAppResourceCheckNameAvailabilitySamples { /* - * x-ms-original-file: 2026-06-15-preview/CheckNameAvailability.json + * x-ms-original-file: 2026-08-01/CheckNameAvailability.json */ /** * Sample code: CheckNameAvailability. @@ -3070,7 +1565,7 @@ import com.azure.resourcemanager.netapp.models.QuotaAvailabilityRequest; */ public final class NetAppResourceCheckQuotaAvailabilitySamples { /* - * x-ms-original-file: 2026-06-15-preview/CheckQuotaAvailability.json + * x-ms-original-file: 2026-08-01/CheckQuotaAvailability.json */ /** * Sample code: CheckQuotaAvailability. @@ -3098,7 +1593,7 @@ import com.azure.resourcemanager.netapp.models.QueryNetworkSiblingSetRequest; */ public final class NetAppResourceQueryNetworkSiblingSetSamples { /* - * x-ms-original-file: 2026-06-15-preview/NetworkSiblingSet_Query.json + * x-ms-original-file: 2026-08-01/NetworkSiblingSet_Query.json */ /** * Sample code: NetworkSiblingSet_Query. @@ -3124,7 +1619,7 @@ public final class NetAppResourceQueryNetworkSiblingSetSamples { */ public final class NetAppResourceQueryRegionInfoSamples { /* - * x-ms-original-file: 2026-06-15-preview/RegionInfo.json + * x-ms-original-file: 2026-08-01/RegionInfo.json */ /** * Sample code: RegionInfo_Query. @@ -3148,7 +1643,7 @@ import com.azure.resourcemanager.netapp.models.UpdateNetworkSiblingSetRequest; */ public final class NetAppResourceUpdateNetworkSiblingSetSamples { /* - * x-ms-original-file: 2026-06-15-preview/NetworkSiblingSet_Update.json + * x-ms-original-file: 2026-08-01/NetworkSiblingSet_Update.json */ /** * Sample code: NetworkFeatures_Update. @@ -3175,7 +1670,7 @@ public final class NetAppResourceUpdateNetworkSiblingSetSamples { */ public final class NetAppResourceQuotaLimitsGetSamples { /* - * x-ms-original-file: 2026-06-15-preview/NetAppResourceQuotaLimits_Get.json + * x-ms-original-file: 2026-08-01/NetAppResourceQuotaLimits_Get.json */ /** * Sample code: QuotaLimits. @@ -3197,7 +1692,7 @@ public final class NetAppResourceQuotaLimitsGetSamples { */ public final class NetAppResourceQuotaLimitsListSamples { /* - * x-ms-original-file: 2026-06-15-preview/NetAppResourceQuotaLimits_List.json + * x-ms-original-file: 2026-08-01/NetAppResourceQuotaLimits_List.json */ /** * Sample code: QuotaLimits. @@ -3218,7 +1713,7 @@ public final class NetAppResourceQuotaLimitsListSamples { */ public final class NetAppResourceQuotaLimitsAccountGetSamples { /* - * x-ms-original-file: 2026-06-15-preview/NetAppResourceQuotaLimitsAccount_Get.json + * x-ms-original-file: 2026-08-01/NetAppResourceQuotaLimitsAccount_Get.json */ /** * Sample code: QuotaLimits. @@ -3240,7 +1735,7 @@ public final class NetAppResourceQuotaLimitsAccountGetSamples { */ public final class NetAppResourceQuotaLimitsAccountListSamples { /* - * x-ms-original-file: 2026-06-15-preview/NetAppResourceQuotaLimitsAccount_List.json + * x-ms-original-file: 2026-08-01/NetAppResourceQuotaLimitsAccount_List.json */ /** * Sample code: QuotaLimits. @@ -3261,7 +1756,7 @@ public final class NetAppResourceQuotaLimitsAccountListSamples { */ public final class NetAppResourceRegionInfosGetSamples { /* - * x-ms-original-file: 2026-06-15-preview/RegionInfos_Get.json + * x-ms-original-file: 2026-08-01/RegionInfos_Get.json */ /** * Sample code: RegionInfos_Get. @@ -3282,7 +1777,7 @@ public final class NetAppResourceRegionInfosGetSamples { */ public final class NetAppResourceRegionInfosListSamples { /* - * x-ms-original-file: 2026-06-15-preview/RegionInfos_List.json + * x-ms-original-file: 2026-08-01/RegionInfos_List.json */ /** * Sample code: RegionInfos_List. @@ -3303,7 +1798,7 @@ public final class NetAppResourceRegionInfosListSamples { */ public final class NetAppResourceUsagesGetSamples { /* - * x-ms-original-file: 2026-06-15-preview/Usages_Get.json + * x-ms-original-file: 2026-08-01/Usages_Get.json */ /** * Sample code: Usages_Get. @@ -3325,7 +1820,7 @@ public final class NetAppResourceUsagesGetSamples { */ public final class NetAppResourceUsagesListSamples { /* - * x-ms-original-file: 2026-06-15-preview/Usages_List.json + * x-ms-original-file: 2026-08-01/Usages_List.json */ /** * Sample code: Usages_List. @@ -3346,7 +1841,7 @@ public final class NetAppResourceUsagesListSamples { */ public final class OperationsListSamples { /* - * x-ms-original-file: 2026-06-15-preview/OperationList.json + * x-ms-original-file: 2026-08-01/OperationList.json */ /** * Sample code: OperationList. @@ -3370,7 +1865,7 @@ import com.azure.resourcemanager.netapp.models.ServiceLevel; */ public final class PoolsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-06-15-preview/Pools_CreateOrUpdate.json + * x-ms-original-file: 2026-08-01/Pools_CreateOrUpdate.json */ /** * Sample code: Pools_CreateOrUpdate. @@ -3389,7 +1884,7 @@ public final class PoolsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2026-06-15-preview/Pools_CreateOrUpdate_CustomThroughput.json + * x-ms-original-file: 2026-08-01/Pools_CreateOrUpdate_CustomThroughput.json */ /** * Sample code: Pools_CreateOrUpdate_CustomThroughput. @@ -3419,7 +1914,7 @@ public final class PoolsCreateOrUpdateSamples { */ public final class PoolsDeleteSamples { /* - * x-ms-original-file: 2026-06-15-preview/Pools_Delete.json + * x-ms-original-file: 2026-08-01/Pools_Delete.json */ /** * Sample code: Pools_Delete. @@ -3440,7 +1935,7 @@ public final class PoolsDeleteSamples { */ public final class PoolsGetSamples { /* - * x-ms-original-file: 2026-06-15-preview/Pools_Get_CustomThroughput.json + * x-ms-original-file: 2026-08-01/Pools_Get_CustomThroughput.json */ /** * Sample code: Pools_Get_CustomThroughput. @@ -3452,7 +1947,7 @@ public final class PoolsGetSamples { } /* - * x-ms-original-file: 2026-06-15-preview/Pools_Get.json + * x-ms-original-file: 2026-08-01/Pools_Get.json */ /** * Sample code: Pools_Get. @@ -3473,7 +1968,7 @@ public final class PoolsGetSamples { */ public final class PoolsListSamples { /* - * x-ms-original-file: 2026-06-15-preview/Pools_List.json + * x-ms-original-file: 2026-08-01/Pools_List.json */ /** * Sample code: Pools_List. @@ -3496,7 +1991,7 @@ import com.azure.resourcemanager.netapp.models.CapacityPool; */ public final class PoolsUpdateSamples { /* - * x-ms-original-file: 2026-06-15-preview/Pools_Update.json + * x-ms-original-file: 2026-08-01/Pools_Update.json */ /** * Sample code: Pools_Update. @@ -3510,7 +2005,7 @@ public final class PoolsUpdateSamples { } /* - * x-ms-original-file: 2026-06-15-preview/Pools_Update_CustomThroughput.json + * x-ms-original-file: 2026-08-01/Pools_Update_CustomThroughput.json */ /** * Sample code: Pools_Update_CustomThroughput. @@ -3538,7 +2033,7 @@ import java.util.Arrays; */ public final class RansomwareReportsClearSuspectsSamples { /* - * x-ms-original-file: 2026-06-15-preview/RansomwareReports_ClearSuspects.json + * x-ms-original-file: 2026-08-01/RansomwareReports_ClearSuspects.json */ /** * Sample code: RansomwareReports_ClearSuspects. @@ -3563,7 +2058,7 @@ public final class RansomwareReportsClearSuspectsSamples { */ public final class RansomwareReportsGetSamples { /* - * x-ms-original-file: 2026-06-15-preview/RansomwareReports_Get.json + * x-ms-original-file: 2026-08-01/RansomwareReports_Get.json */ /** * Sample code: RansomwareReports_Get. @@ -3586,7 +2081,7 @@ public final class RansomwareReportsGetSamples { */ public final class RansomwareReportsListSamples { /* - * x-ms-original-file: 2026-06-15-preview/RansomwareReports_List.json + * x-ms-original-file: 2026-08-01/RansomwareReports_List.json */ /** * Sample code: RansomwareReports_List. @@ -3612,7 +2107,7 @@ import com.azure.resourcemanager.netapp.models.WeeklySchedule; */ public final class SnapshotPoliciesCreateSamples { /* - * x-ms-original-file: 2026-06-15-preview/SnapshotPolicies_Create.json + * x-ms-original-file: 2026-08-01/SnapshotPolicies_Create.json */ /** * Sample code: SnapshotPolicies_Create. @@ -3644,7 +2139,7 @@ public final class SnapshotPoliciesCreateSamples { */ public final class SnapshotPoliciesDeleteSamples { /* - * x-ms-original-file: 2026-06-15-preview/SnapshotPolicies_Delete.json + * x-ms-original-file: 2026-08-01/SnapshotPolicies_Delete.json */ /** * Sample code: SnapshotPolicies_Delete. @@ -3666,7 +2161,7 @@ public final class SnapshotPoliciesDeleteSamples { */ public final class SnapshotPoliciesGetSamples { /* - * x-ms-original-file: 2026-06-15-preview/SnapshotPolicies_Get.json + * x-ms-original-file: 2026-08-01/SnapshotPolicies_Get.json */ /** * Sample code: SnapshotPolicies_Get. @@ -3688,7 +2183,7 @@ public final class SnapshotPoliciesGetSamples { */ public final class SnapshotPoliciesListSamples { /* - * x-ms-original-file: 2026-06-15-preview/SnapshotPolicies_List.json + * x-ms-original-file: 2026-08-01/SnapshotPolicies_List.json */ /** * Sample code: SnapshotPolicies_List. @@ -3709,7 +2204,7 @@ public final class SnapshotPoliciesListSamples { */ public final class SnapshotPoliciesListVolumesSamples { /* - * x-ms-original-file: 2026-06-15-preview/SnapshotPolicies_ListVolumes.json + * x-ms-original-file: 2026-08-01/SnapshotPolicies_ListVolumes.json */ /** * Sample code: SnapshotPolicies_ListVolumes. @@ -3737,7 +2232,7 @@ import com.azure.resourcemanager.netapp.models.WeeklySchedule; */ public final class SnapshotPoliciesUpdateSamples { /* - * x-ms-original-file: 2026-06-15-preview/SnapshotPolicies_Update.json + * x-ms-original-file: 2026-08-01/SnapshotPolicies_Update.json */ /** * Sample code: SnapshotPolicies_Update. @@ -3769,7 +2264,7 @@ public final class SnapshotPoliciesUpdateSamples { */ public final class SnapshotsCreateSamples { /* - * x-ms-original-file: 2026-06-15-preview/Snapshots_Create.json + * x-ms-original-file: 2026-08-01/Snapshots_Create.json */ /** * Sample code: Snapshots_Create. @@ -3794,7 +2289,7 @@ public final class SnapshotsCreateSamples { */ public final class SnapshotsDeleteSamples { /* - * x-ms-original-file: 2026-06-15-preview/Snapshots_Delete.json + * x-ms-original-file: 2026-08-01/Snapshots_Delete.json */ /** * Sample code: Snapshots_Delete. @@ -3816,7 +2311,7 @@ public final class SnapshotsDeleteSamples { */ public final class SnapshotsGetSamples { /* - * x-ms-original-file: 2026-06-15-preview/Snapshots_Get.json + * x-ms-original-file: 2026-08-01/Snapshots_Get.json */ /** * Sample code: Snapshots_Get. @@ -3838,7 +2333,7 @@ public final class SnapshotsGetSamples { */ public final class SnapshotsListSamples { /* - * x-ms-original-file: 2026-06-15-preview/Snapshots_List.json + * x-ms-original-file: 2026-08-01/Snapshots_List.json */ /** * Sample code: Snapshots_List. @@ -3862,7 +2357,7 @@ import java.util.Arrays; */ public final class SnapshotsRestoreFilesSamples { /* - * x-ms-original-file: 2026-06-15-preview/Snapshots_SingleFileRestore.json + * x-ms-original-file: 2026-08-01/Snapshots_SingleFileRestore.json */ /** * Sample code: Snapshots_SingleFileRestore. @@ -3886,7 +2381,7 @@ public final class SnapshotsRestoreFilesSamples { */ public final class SubvolumesCreateSamples { /* - * x-ms-original-file: 2026-06-15-preview/Subvolumes_Create.json + * x-ms-original-file: 2026-08-01/Subvolumes_Create.json */ /** * Sample code: Subvolumes_Create. @@ -3911,7 +2406,7 @@ public final class SubvolumesCreateSamples { */ public final class SubvolumesDeleteSamples { /* - * x-ms-original-file: 2026-06-15-preview/Subvolumes_Delete.json + * x-ms-original-file: 2026-08-01/Subvolumes_Delete.json */ /** * Sample code: Subvolumes_Delete. @@ -3933,7 +2428,7 @@ public final class SubvolumesDeleteSamples { */ public final class SubvolumesGetSamples { /* - * x-ms-original-file: 2026-06-15-preview/Subvolumes_Get.json + * x-ms-original-file: 2026-08-01/Subvolumes_Get.json */ /** * Sample code: Subvolumes_Get. @@ -3955,7 +2450,7 @@ public final class SubvolumesGetSamples { */ public final class SubvolumesGetMetadataSamples { /* - * x-ms-original-file: 2026-06-15-preview/Subvolumes_Metadata.json + * x-ms-original-file: 2026-08-01/Subvolumes_Metadata.json */ /** * Sample code: Subvolumes_Metadata. @@ -3977,7 +2472,7 @@ public final class SubvolumesGetMetadataSamples { */ public final class SubvolumesListByVolumeSamples { /* - * x-ms-original-file: 2026-06-15-preview/Subvolumes_List.json + * x-ms-original-file: 2026-08-01/Subvolumes_List.json */ /** * Sample code: Subvolumes_List. @@ -4000,7 +2495,7 @@ import com.azure.resourcemanager.netapp.models.SubvolumeInfo; */ public final class SubvolumesUpdateSamples { /* - * x-ms-original-file: 2026-06-15-preview/Subvolumes_Update.json + * x-ms-original-file: 2026-08-01/Subvolumes_Update.json */ /** * Sample code: Subvolumes_Update. @@ -4035,7 +2530,7 @@ import java.util.Arrays; */ public final class VolumeGroupsCreateSamples { /* - * x-ms-original-file: 2026-06-15-preview/VolumeGroups_Create_SapHana.json + * x-ms-original-file: 2026-08-01/VolumeGroups_Create_SapHana.json */ /** * Sample code: VolumeGroups_Create_SapHana. @@ -4195,7 +2690,7 @@ public final class VolumeGroupsCreateSamples { } /* - * x-ms-original-file: 2026-06-15-preview/VolumeGroups_Create_Oracle.json + * x-ms-original-file: 2026-08-01/VolumeGroups_Create_Oracle.json */ /** * Sample code: VolumeGroups_Create_Oracle. @@ -4539,7 +3034,7 @@ public final class VolumeGroupsCreateSamples { } /* - * x-ms-original-file: 2026-06-15-preview/VolumeGroups_Create_Custom.json + * x-ms-original-file: 2026-08-01/VolumeGroups_Create_Custom.json */ /** * Sample code: VolumeGroups_Create_Custom. @@ -4883,7 +3378,7 @@ public final class VolumeGroupsCreateSamples { } /* - * x-ms-original-file: 2026-06-15-preview/VolumeGroups_Create_Custom_SMB.json + * x-ms-original-file: 2026-08-01/VolumeGroups_Create_Custom_SMB.json */ /** * Sample code: VolumeGroups_Create_Custom_SMB. @@ -5115,7 +3610,7 @@ public final class VolumeGroupsCreateSamples { */ public final class VolumeGroupsDeleteSamples { /* - * x-ms-original-file: 2026-06-15-preview/VolumeGroups_Delete.json + * x-ms-original-file: 2026-08-01/VolumeGroups_Delete.json */ /** * Sample code: VolumeGroups_Delete. @@ -5136,7 +3631,7 @@ public final class VolumeGroupsDeleteSamples { */ public final class VolumeGroupsGetSamples { /* - * x-ms-original-file: 2026-06-15-preview/VolumeGroups_Get_Custom.json + * x-ms-original-file: 2026-08-01/VolumeGroups_Get_Custom.json */ /** * Sample code: VolumeGroups_Get_Custom. @@ -5148,7 +3643,7 @@ public final class VolumeGroupsGetSamples { } /* - * x-ms-original-file: 2026-06-15-preview/VolumeGroups_Get_SapHana.json + * x-ms-original-file: 2026-08-01/VolumeGroups_Get_SapHana.json */ /** * Sample code: VolumeGroups_Get_SapHana. @@ -5160,7 +3655,7 @@ public final class VolumeGroupsGetSamples { } /* - * x-ms-original-file: 2026-06-15-preview/VolumeGroups_Get_Custom_SMB.json + * x-ms-original-file: 2026-08-01/VolumeGroups_Get_Custom_SMB.json */ /** * Sample code: VolumeGroups_Get_Custom_SMB. @@ -5172,7 +3667,7 @@ public final class VolumeGroupsGetSamples { } /* - * x-ms-original-file: 2026-06-15-preview/VolumeGroups_Get_Oracle.json + * x-ms-original-file: 2026-08-01/VolumeGroups_Get_Oracle.json */ /** * Sample code: VolumeGroups_Get_Oracle. @@ -5193,7 +3688,7 @@ public final class VolumeGroupsGetSamples { */ public final class VolumeGroupsListByNetAppAccountSamples { /* - * x-ms-original-file: 2026-06-15-preview/VolumeGroups_List_Custom.json + * x-ms-original-file: 2026-08-01/VolumeGroups_List_Custom.json */ /** * Sample code: VolumeGroups_List_Custom. @@ -5205,7 +3700,7 @@ public final class VolumeGroupsListByNetAppAccountSamples { } /* - * x-ms-original-file: 2026-06-15-preview/VolumeGroups_List_Oracle.json + * x-ms-original-file: 2026-08-01/VolumeGroups_List_Oracle.json */ /** * Sample code: VolumeGroups_List_Oracle. @@ -5217,7 +3712,7 @@ public final class VolumeGroupsListByNetAppAccountSamples { } /* - * x-ms-original-file: 2026-06-15-preview/VolumeGroups_List_SapHana.json + * x-ms-original-file: 2026-08-01/VolumeGroups_List_SapHana.json */ /** * Sample code: VolumeGroups_List_SapHana. @@ -5240,7 +3735,7 @@ import com.azure.resourcemanager.netapp.models.QuotaType; */ public final class VolumeQuotaRulesCreateSamples { /* - * x-ms-original-file: 2026-06-15-preview/VolumeQuotaRules_Create.json + * x-ms-original-file: 2026-08-01/VolumeQuotaRules_Create.json */ /** * Sample code: VolumeQuotaRules_Create. @@ -5268,7 +3763,7 @@ public final class VolumeQuotaRulesCreateSamples { */ public final class VolumeQuotaRulesDeleteSamples { /* - * x-ms-original-file: 2026-06-15-preview/VolumeQuotaRules_Delete.json + * x-ms-original-file: 2026-08-01/VolumeQuotaRules_Delete.json */ /** * Sample code: VolumeQuotaRules_Delete. @@ -5290,7 +3785,7 @@ public final class VolumeQuotaRulesDeleteSamples { */ public final class VolumeQuotaRulesGetSamples { /* - * x-ms-original-file: 2026-06-15-preview/VolumeQuotaRules_Get.json + * x-ms-original-file: 2026-08-01/VolumeQuotaRules_Get.json */ /** * Sample code: VolumeQuotaRules_Get. @@ -5313,7 +3808,7 @@ public final class VolumeQuotaRulesGetSamples { */ public final class VolumeQuotaRulesListByVolumeSamples { /* - * x-ms-original-file: 2026-06-15-preview/VolumeQuotaRules_List.json + * x-ms-original-file: 2026-08-01/VolumeQuotaRules_List.json */ /** * Sample code: VolumeQuotaRules_List. @@ -5337,7 +3832,7 @@ import com.azure.resourcemanager.netapp.models.VolumeQuotaRule; */ public final class VolumeQuotaRulesUpdateSamples { /* - * x-ms-original-file: 2026-06-15-preview/VolumeQuotaRules_Update.json + * x-ms-original-file: 2026-08-01/VolumeQuotaRules_Update.json */ /** * Sample code: VolumeQuotaRules_Update. @@ -5362,7 +3857,7 @@ public final class VolumeQuotaRulesUpdateSamples { */ public final class VolumesAuthorizeExternalReplicationSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_AuthorizeExternalReplication.json + * x-ms-original-file: 2026-08-01/Volumes_AuthorizeExternalReplication.json */ /** * Sample code: Volumes_AuthorizeExternalReplication. @@ -5387,7 +3882,7 @@ import com.azure.resourcemanager.netapp.models.AuthorizeRequest; */ public final class VolumesAuthorizeReplicationSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_AuthorizeReplication.json + * x-ms-original-file: 2026-08-01/Volumes_AuthorizeReplication.json */ /** * Sample code: Volumes_AuthorizeReplication. @@ -5414,7 +3909,7 @@ import com.azure.resourcemanager.netapp.models.BreakFileLocksRequest; */ public final class VolumesBreakFileLocksSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_BreakFileLocks.json + * x-ms-original-file: 2026-08-01/Volumes_BreakFileLocks.json */ /** * Sample code: Volumes_BreakFileLocks. @@ -5440,7 +3935,7 @@ import com.azure.resourcemanager.netapp.models.BreakReplicationRequest; */ public final class VolumesBreakReplicationSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_BreakReplication.json + * x-ms-original-file: 2026-08-01/Volumes_BreakReplication.json */ /** * Sample code: Volumes_BreakReplication. @@ -5465,7 +3960,7 @@ import com.azure.resourcemanager.netapp.models.ServiceLevel; */ public final class VolumesCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_CreateOrUpdate.json + * x-ms-original-file: 2026-08-01/Volumes_CreateOrUpdate.json */ /** * Sample code: Volumes_CreateOrUpdate. @@ -5495,7 +3990,7 @@ public final class VolumesCreateOrUpdateSamples { */ public final class VolumesDeleteSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_Delete.json + * x-ms-original-file: 2026-08-01/Volumes_Delete.json */ /** * Sample code: Volumes_Delete. @@ -5516,7 +4011,7 @@ public final class VolumesDeleteSamples { */ public final class VolumesDeleteReplicationSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_DeleteReplication.json + * x-ms-original-file: 2026-08-01/Volumes_DeleteReplication.json */ /** * Sample code: Volumes_DeleteReplication. @@ -5537,7 +4032,7 @@ public final class VolumesDeleteReplicationSamples { */ public final class VolumesFinalizeExternalReplicationSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_FinalizeExternalReplication.json + * x-ms-original-file: 2026-08-01/Volumes_FinalizeExternalReplication.json */ /** * Sample code: Volumes_FinalizeExternalReplication. @@ -5559,7 +4054,7 @@ public final class VolumesFinalizeExternalReplicationSamples { */ public final class VolumesFinalizeRelocationSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_FinalizeRelocation.json + * x-ms-original-file: 2026-08-01/Volumes_FinalizeRelocation.json */ /** * Sample code: Volumes_FinalizeRelocation. @@ -5580,7 +4075,7 @@ public final class VolumesFinalizeRelocationSamples { */ public final class VolumesGetSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_ExtraLargeVolumes_Get.json + * x-ms-original-file: 2026-08-01/Volumes_ExtraLargeVolumes_Get.json */ /** * Sample code: Volumes_ExtralargeVolumeGet. @@ -5592,7 +4087,7 @@ public final class VolumesGetSamples { } /* - * x-ms-original-file: 2026-06-15-preview/Volumes_Get.json + * x-ms-original-file: 2026-08-01/Volumes_Get.json */ /** * Sample code: Volumes_Get. @@ -5613,7 +4108,7 @@ public final class VolumesGetSamples { */ public final class VolumesListSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_ExtraLargeVolumes_List.json + * x-ms-original-file: 2026-08-01/Volumes_ExtraLargeVolumes_List.json */ /** * Sample code: Volumes_ExtralargeVolumeList. @@ -5625,7 +4120,7 @@ public final class VolumesListSamples { } /* - * x-ms-original-file: 2026-06-15-preview/Volumes_List.json + * x-ms-original-file: 2026-08-01/Volumes_List.json */ /** * Sample code: Volumes_List. @@ -5648,7 +4143,7 @@ import com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserRequest; */ public final class VolumesListGetGroupIdListForLdapUserSamples { /* - * x-ms-original-file: 2026-06-15-preview/GroupIdListForLDAPUser.json + * x-ms-original-file: 2026-08-01/GroupIdListForLDAPUser.json */ /** * Sample code: GetGroupIdListForUser. @@ -5672,7 +4167,7 @@ public final class VolumesListGetGroupIdListForLdapUserSamples { */ public final class VolumesListQuotaReportSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_ListQuotaReport.json + * x-ms-original-file: 2026-08-01/Volumes_ListQuotaReport.json */ /** * Sample code: ListQuotaReport. @@ -5697,7 +4192,7 @@ import com.azure.resourcemanager.netapp.models.ListReplicationsRequest; */ public final class VolumesListReplicationsSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_ListReplications.json + * x-ms-original-file: 2026-08-01/Volumes_ListReplications.json */ /** * Sample code: Volumes_ListReplications. @@ -5723,7 +4218,7 @@ import java.util.Arrays; */ public final class VolumesPeerExternalClusterSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_PeerExternalCluster.json + * x-ms-original-file: 2026-08-01/Volumes_PeerExternalCluster.json */ /** * Sample code: Volumes_PeerExternalCluster. @@ -5748,7 +4243,7 @@ public final class VolumesPeerExternalClusterSamples { */ public final class VolumesPerformReplicationTransferSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_PerformReplicationTransfer.json + * x-ms-original-file: 2026-08-01/Volumes_PerformReplicationTransfer.json */ /** * Sample code: Volumes_PerformReplicationTransfer. @@ -5772,7 +4267,7 @@ import com.azure.resourcemanager.netapp.models.PoolChangeRequest; */ public final class VolumesPoolChangeSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_PoolChange.json + * x-ms-original-file: 2026-08-01/Volumes_PoolChange.json */ /** * Sample code: Volumes_PoolChange. @@ -5796,7 +4291,7 @@ public final class VolumesPoolChangeSamples { */ public final class VolumesPopulateAvailabilityZoneSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_PopulateAvailabilityZones.json + * x-ms-original-file: 2026-08-01/Volumes_PopulateAvailabilityZones.json */ /** * Sample code: Volumes_PopulateAvailabilityZones. @@ -5818,7 +4313,7 @@ public final class VolumesPopulateAvailabilityZoneSamples { */ public final class VolumesReInitializeReplicationSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_ReInitializeReplication.json + * x-ms-original-file: 2026-08-01/Volumes_ReInitializeReplication.json */ /** * Sample code: Volumes_ReInitializeReplication. @@ -5842,7 +4337,7 @@ import com.azure.resourcemanager.netapp.models.ReestablishReplicationRequest; */ public final class VolumesReestablishReplicationSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_ReestablishReplication.json + * x-ms-original-file: 2026-08-01/Volumes_ReestablishReplication.json */ /** * Sample code: Volumes_ReestablishReplication. @@ -5869,7 +4364,7 @@ import com.azure.resourcemanager.netapp.models.RelocateVolumeRequest; */ public final class VolumesRelocateSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_Relocate.json + * x-ms-original-file: 2026-08-01/Volumes_Relocate.json */ /** * Sample code: Volumes_Relocate. @@ -5892,7 +4387,7 @@ public final class VolumesRelocateSamples { */ public final class VolumesReplicationStatusSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_ReplicationStatus.json + * x-ms-original-file: 2026-08-01/Volumes_ReplicationStatus.json */ /** * Sample code: Volumes_ReplicationStatus. @@ -5914,7 +4409,7 @@ public final class VolumesReplicationStatusSamples { */ public final class VolumesResetCifsPasswordSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_ResetCifsPassword.json + * x-ms-original-file: 2026-08-01/Volumes_ResetCifsPassword.json */ /** * Sample code: Volumes_ResetCifsPassword. @@ -5935,7 +4430,7 @@ public final class VolumesResetCifsPasswordSamples { */ public final class VolumesResyncReplicationSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_ResyncReplication.json + * x-ms-original-file: 2026-08-01/Volumes_ResyncReplication.json */ /** * Sample code: Volumes_ResyncReplication. @@ -5958,7 +4453,7 @@ import com.azure.resourcemanager.netapp.models.VolumeRevert; */ public final class VolumesRevertSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_Revert.json + * x-ms-original-file: 2026-08-01/Volumes_Revert.json */ /** * Sample code: Volumes_Revert. @@ -5982,7 +4477,7 @@ public final class VolumesRevertSamples { */ public final class VolumesRevertRelocationSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_RevertRelocation.json + * x-ms-original-file: 2026-08-01/Volumes_RevertRelocation.json */ /** * Sample code: Volumes_RevertRelocation. @@ -6003,7 +4498,7 @@ public final class VolumesRevertRelocationSamples { */ public final class VolumesSplitCloneFromParentSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_SplitClone.json + * x-ms-original-file: 2026-08-01/Volumes_SplitClone.json */ /** * Sample code: Volumes_SplitClone. @@ -6027,7 +4522,7 @@ import com.azure.resourcemanager.netapp.models.Volume; */ public final class VolumesUpdateSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_Update.json + * x-ms-original-file: 2026-08-01/Volumes_Update.json */ /** * Sample code: Volumes_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/pom.xml b/sdk/netapp/azure-resourcemanager-netapp/pom.xml index 28e9602fac095..f7fb3d7929eeb 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/pom.xml +++ b/sdk/netapp/azure-resourcemanager-netapp/pom.xml @@ -14,11 +14,11 @@ com.azure.resourcemanager azure-resourcemanager-netapp - 2.5.0-beta.3 + 2.5.0 jar Microsoft Azure SDK for NetAppFiles Management - This package contains Microsoft Azure SDK for NetAppFiles Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft NetApp Files Azure Resource Provider specification. Package api-version 2026-06-15-preview. + This package contains Microsoft Azure SDK for NetAppFiles Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Microsoft NetApp Files Azure Resource Provider specification. Package api-version 2026-08-01. https://github.com/Azure/azure-sdk-for-java diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java index c9dd2c1cdbd6a..cded158586b5c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java @@ -26,7 +26,6 @@ import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.netapp.fluent.NetAppManagementClient; import com.azure.resourcemanager.netapp.implementation.AccountsImpl; -import com.azure.resourcemanager.netapp.implementation.ActiveDirectoryConfigsImpl; import com.azure.resourcemanager.netapp.implementation.BackupPoliciesImpl; import com.azure.resourcemanager.netapp.implementation.BackupVaultsImpl; import com.azure.resourcemanager.netapp.implementation.BackupsImpl; @@ -35,14 +34,6 @@ import com.azure.resourcemanager.netapp.implementation.BackupsUnderVolumesImpl; import com.azure.resourcemanager.netapp.implementation.BucketsImpl; import com.azure.resourcemanager.netapp.implementation.CachesImpl; -import com.azure.resourcemanager.netapp.implementation.ElasticAccountsImpl; -import com.azure.resourcemanager.netapp.implementation.ElasticBackupPoliciesImpl; -import com.azure.resourcemanager.netapp.implementation.ElasticBackupVaultsImpl; -import com.azure.resourcemanager.netapp.implementation.ElasticBackupsImpl; -import com.azure.resourcemanager.netapp.implementation.ElasticCapacityPoolsImpl; -import com.azure.resourcemanager.netapp.implementation.ElasticSnapshotPoliciesImpl; -import com.azure.resourcemanager.netapp.implementation.ElasticSnapshotsImpl; -import com.azure.resourcemanager.netapp.implementation.ElasticVolumesImpl; import com.azure.resourcemanager.netapp.implementation.NetAppManagementClientBuilder; import com.azure.resourcemanager.netapp.implementation.NetAppResourceQuotaLimitsAccountsImpl; import com.azure.resourcemanager.netapp.implementation.NetAppResourceQuotaLimitsImpl; @@ -59,7 +50,6 @@ import com.azure.resourcemanager.netapp.implementation.VolumeQuotaRulesImpl; import com.azure.resourcemanager.netapp.implementation.VolumesImpl; import com.azure.resourcemanager.netapp.models.Accounts; -import com.azure.resourcemanager.netapp.models.ActiveDirectoryConfigs; import com.azure.resourcemanager.netapp.models.BackupPolicies; import com.azure.resourcemanager.netapp.models.BackupVaults; import com.azure.resourcemanager.netapp.models.Backups; @@ -68,14 +58,6 @@ import com.azure.resourcemanager.netapp.models.BackupsUnderVolumes; import com.azure.resourcemanager.netapp.models.Buckets; import com.azure.resourcemanager.netapp.models.Caches; -import com.azure.resourcemanager.netapp.models.ElasticAccounts; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicies; -import com.azure.resourcemanager.netapp.models.ElasticBackupVaults; -import com.azure.resourcemanager.netapp.models.ElasticBackups; -import com.azure.resourcemanager.netapp.models.ElasticCapacityPools; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicies; -import com.azure.resourcemanager.netapp.models.ElasticSnapshots; -import com.azure.resourcemanager.netapp.models.ElasticVolumes; import com.azure.resourcemanager.netapp.models.NetAppResourceQuotaLimits; import com.azure.resourcemanager.netapp.models.NetAppResourceQuotaLimitsAccounts; import com.azure.resourcemanager.netapp.models.NetAppResourceRegionInfos; @@ -129,24 +111,6 @@ public final class NetAppFilesManager { private Caches caches; - private ElasticAccounts elasticAccounts; - - private ElasticCapacityPools elasticCapacityPools; - - private ElasticVolumes elasticVolumes; - - private ElasticSnapshots elasticSnapshots; - - private ElasticSnapshotPolicies elasticSnapshotPolicies; - - private ElasticBackupVaults elasticBackupVaults; - - private ElasticBackupPolicies elasticBackupPolicies; - - private ElasticBackups elasticBackups; - - private ActiveDirectoryConfigs activeDirectoryConfigs; - private NetAppResourceQuotaLimits netAppResourceQuotaLimits; private NetAppResourceRegionInfos netAppResourceRegionInfos; @@ -539,116 +503,6 @@ public Caches caches() { return caches; } - /** - * Gets the resource collection API of ElasticAccounts. It manages ElasticAccount. - * - * @return Resource collection API of ElasticAccounts. - */ - public ElasticAccounts elasticAccounts() { - if (this.elasticAccounts == null) { - this.elasticAccounts = new ElasticAccountsImpl(clientObject.getElasticAccounts(), this); - } - return elasticAccounts; - } - - /** - * Gets the resource collection API of ElasticCapacityPools. It manages ElasticCapacityPool. - * - * @return Resource collection API of ElasticCapacityPools. - */ - public ElasticCapacityPools elasticCapacityPools() { - if (this.elasticCapacityPools == null) { - this.elasticCapacityPools = new ElasticCapacityPoolsImpl(clientObject.getElasticCapacityPools(), this); - } - return elasticCapacityPools; - } - - /** - * Gets the resource collection API of ElasticVolumes. It manages ElasticVolume. - * - * @return Resource collection API of ElasticVolumes. - */ - public ElasticVolumes elasticVolumes() { - if (this.elasticVolumes == null) { - this.elasticVolumes = new ElasticVolumesImpl(clientObject.getElasticVolumes(), this); - } - return elasticVolumes; - } - - /** - * Gets the resource collection API of ElasticSnapshots. It manages ElasticSnapshot. - * - * @return Resource collection API of ElasticSnapshots. - */ - public ElasticSnapshots elasticSnapshots() { - if (this.elasticSnapshots == null) { - this.elasticSnapshots = new ElasticSnapshotsImpl(clientObject.getElasticSnapshots(), this); - } - return elasticSnapshots; - } - - /** - * Gets the resource collection API of ElasticSnapshotPolicies. It manages ElasticSnapshotPolicy. - * - * @return Resource collection API of ElasticSnapshotPolicies. - */ - public ElasticSnapshotPolicies elasticSnapshotPolicies() { - if (this.elasticSnapshotPolicies == null) { - this.elasticSnapshotPolicies - = new ElasticSnapshotPoliciesImpl(clientObject.getElasticSnapshotPolicies(), this); - } - return elasticSnapshotPolicies; - } - - /** - * Gets the resource collection API of ElasticBackupVaults. It manages ElasticBackupVault. - * - * @return Resource collection API of ElasticBackupVaults. - */ - public ElasticBackupVaults elasticBackupVaults() { - if (this.elasticBackupVaults == null) { - this.elasticBackupVaults = new ElasticBackupVaultsImpl(clientObject.getElasticBackupVaults(), this); - } - return elasticBackupVaults; - } - - /** - * Gets the resource collection API of ElasticBackupPolicies. It manages ElasticBackupPolicy. - * - * @return Resource collection API of ElasticBackupPolicies. - */ - public ElasticBackupPolicies elasticBackupPolicies() { - if (this.elasticBackupPolicies == null) { - this.elasticBackupPolicies = new ElasticBackupPoliciesImpl(clientObject.getElasticBackupPolicies(), this); - } - return elasticBackupPolicies; - } - - /** - * Gets the resource collection API of ElasticBackups. It manages ElasticBackup. - * - * @return Resource collection API of ElasticBackups. - */ - public ElasticBackups elasticBackups() { - if (this.elasticBackups == null) { - this.elasticBackups = new ElasticBackupsImpl(clientObject.getElasticBackups(), this); - } - return elasticBackups; - } - - /** - * Gets the resource collection API of ActiveDirectoryConfigs. It manages ActiveDirectoryConfig. - * - * @return Resource collection API of ActiveDirectoryConfigs. - */ - public ActiveDirectoryConfigs activeDirectoryConfigs() { - if (this.activeDirectoryConfigs == null) { - this.activeDirectoryConfigs - = new ActiveDirectoryConfigsImpl(clientObject.getActiveDirectoryConfigs(), this); - } - return activeDirectoryConfigs; - } - /** * Gets the resource collection API of NetAppResourceQuotaLimits. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ActiveDirectoryConfigsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ActiveDirectoryConfigsClient.java deleted file mode 100644 index ab9def2b09538..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ActiveDirectoryConfigsClient.java +++ /dev/null @@ -1,272 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.netapp.fluent.models.ActiveDirectoryConfigInner; -import com.azure.resourcemanager.netapp.models.ActiveDirectoryConfigUpdate; - -/** - * An instance of this class provides access to all the operations defined in ActiveDirectoryConfigsClient. - */ -public interface ActiveDirectoryConfigsClient { - /** - * Get the details of the specified active directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @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 details of the specified active directory configuration along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse(String resourceGroupName, - String activeDirectoryConfigName, Context context); - - /** - * Get the details of the specified active directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @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 details of the specified active directory configuration. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ActiveDirectoryConfigInner getByResourceGroup(String resourceGroupName, String activeDirectoryConfigName); - - /** - * Create or update the specified active directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @param body Resource create parameters. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of active Directory Configuration resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ActiveDirectoryConfigInner> beginCreateOrUpdate( - String resourceGroupName, String activeDirectoryConfigName, ActiveDirectoryConfigInner body); - - /** - * Create or update the specified active directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @param body Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of active Directory Configuration resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ActiveDirectoryConfigInner> beginCreateOrUpdate( - String resourceGroupName, String activeDirectoryConfigName, ActiveDirectoryConfigInner body, Context context); - - /** - * Create or update the specified active directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @param body Resource create parameters. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return active Directory Configuration resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ActiveDirectoryConfigInner createOrUpdate(String resourceGroupName, String activeDirectoryConfigName, - ActiveDirectoryConfigInner body); - - /** - * Create or update the specified active directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @param body Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return active Directory Configuration resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ActiveDirectoryConfigInner createOrUpdate(String resourceGroupName, String activeDirectoryConfigName, - ActiveDirectoryConfigInner body, Context context); - - /** - * Patch the specified active directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of active Directory Configuration resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ActiveDirectoryConfigInner> beginUpdate(String resourceGroupName, - String activeDirectoryConfigName, ActiveDirectoryConfigUpdate body); - - /** - * Patch the specified active directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of active Directory Configuration resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ActiveDirectoryConfigInner> beginUpdate(String resourceGroupName, - String activeDirectoryConfigName, ActiveDirectoryConfigUpdate body, Context context); - - /** - * Patch the specified active directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return active Directory Configuration resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ActiveDirectoryConfigInner update(String resourceGroupName, String activeDirectoryConfigName, - ActiveDirectoryConfigUpdate body); - - /** - * Patch the specified active directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return active Directory Configuration resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ActiveDirectoryConfigInner update(String resourceGroupName, String activeDirectoryConfigName, - ActiveDirectoryConfigUpdate body, Context context); - - /** - * Delete the specified Active Directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String activeDirectoryConfigName); - - /** - * Delete the specified Active Directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String activeDirectoryConfigName, - Context context); - - /** - * Delete the specified Active Directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String activeDirectoryConfigName); - - /** - * Delete the specified Active Directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String activeDirectoryConfigName, Context context); - - /** - * List all active directory configurations within the resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ActiveDirectoryConfig list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName); - - /** - * List all active directory configurations within the resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ActiveDirectoryConfig list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName, Context context); - - /** - * List all active directory configurations within the subscription. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ActiveDirectoryConfig list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); - - /** - * List all active directory configurations within the subscription. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ActiveDirectoryConfig list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticAccountsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticAccountsClient.java deleted file mode 100644 index 1b42177183dbc..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticAccountsClient.java +++ /dev/null @@ -1,269 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.netapp.fluent.models.ElasticAccountInner; -import com.azure.resourcemanager.netapp.models.ElasticAccountUpdate; - -/** - * An instance of this class provides access to all the operations defined in ElasticAccountsClient. - */ -public interface ElasticAccountsClient { - /** - * Get the NetApp Elastic Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 NetApp Elastic Account along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getByResourceGroupWithResponse(String resourceGroupName, String accountName, - Context context); - - /** - * Get the NetApp Elastic Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 NetApp Elastic Account. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticAccountInner getByResourceGroup(String resourceGroupName, String accountName); - - /** - * Create or update the specified NetApp Elastic Account within the resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param body Resource create parameters. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp elastic account resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ElasticAccountInner> beginCreateOrUpdate(String resourceGroupName, - String accountName, ElasticAccountInner body); - - /** - * Create or update the specified NetApp Elastic Account within the resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param body Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp elastic account resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ElasticAccountInner> beginCreateOrUpdate(String resourceGroupName, - String accountName, ElasticAccountInner body, Context context); - - /** - * Create or update the specified NetApp Elastic Account within the resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param body Resource create parameters. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp elastic account resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticAccountInner createOrUpdate(String resourceGroupName, String accountName, ElasticAccountInner body); - - /** - * Create or update the specified NetApp Elastic Account within the resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param body Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp elastic account resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticAccountInner createOrUpdate(String resourceGroupName, String accountName, ElasticAccountInner body, - Context context); - - /** - * Patch the specified NetApp Elastic Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp elastic account resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ElasticAccountInner> beginUpdate(String resourceGroupName, - String accountName, ElasticAccountUpdate body); - - /** - * Patch the specified NetApp Elastic Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp elastic account resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ElasticAccountInner> beginUpdate(String resourceGroupName, - String accountName, ElasticAccountUpdate body, Context context); - - /** - * Patch the specified NetApp Elastic Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp elastic account resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticAccountInner update(String resourceGroupName, String accountName, ElasticAccountUpdate body); - - /** - * Patch the specified NetApp Elastic Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp elastic account resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticAccountInner update(String resourceGroupName, String accountName, ElasticAccountUpdate body, - Context context); - - /** - * Delete the specified NetApp elastic account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String accountName); - - /** - * Delete the specified NetApp elastic account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, Context context); - - /** - * Delete the specified NetApp elastic account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName); - - /** - * Delete the specified NetApp elastic account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, Context context); - - /** - * List and describe all NetApp elastic accounts in the resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ElasticAccount list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName); - - /** - * List and describe all NetApp elastic accounts in the resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ElasticAccount list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByResourceGroup(String resourceGroupName, Context context); - - /** - * List and describe all NetApp elastic accounts in the subscription. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ElasticAccount list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(); - - /** - * List and describe all NetApp elastic accounts in the subscription. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ElasticAccount list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable list(Context context); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticBackupPoliciesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticBackupPoliciesClient.java deleted file mode 100644 index 12f8ec5cce35b..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticBackupPoliciesClient.java +++ /dev/null @@ -1,269 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.netapp.fluent.models.ElasticBackupPolicyInner; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyUpdate; - -/** - * An instance of this class provides access to all the operations defined in ElasticBackupPoliciesClient. - */ -public interface ElasticBackupPoliciesClient { - /** - * Get the Elastic Backup Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @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 Elastic Backup Policy along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String accountName, - String backupPolicyName, Context context); - - /** - * Get the Elastic Backup Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @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 Elastic Backup Policy. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticBackupPolicyInner get(String resourceGroupName, String accountName, String backupPolicyName); - - /** - * Create or update the specified Elastic Backup Policy in the NetApp account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @param body Resource create parameters. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp Elastic Backup Policy resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ElasticBackupPolicyInner> beginCreateOrUpdate( - String resourceGroupName, String accountName, String backupPolicyName, ElasticBackupPolicyInner body); - - /** - * Create or update the specified Elastic Backup Policy in the NetApp account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @param body Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp Elastic Backup Policy resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ElasticBackupPolicyInner> beginCreateOrUpdate( - String resourceGroupName, String accountName, String backupPolicyName, ElasticBackupPolicyInner body, - Context context); - - /** - * Create or update the specified Elastic Backup Policy in the NetApp account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @param body Resource create parameters. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Backup Policy resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticBackupPolicyInner createOrUpdate(String resourceGroupName, String accountName, String backupPolicyName, - ElasticBackupPolicyInner body); - - /** - * Create or update the specified Elastic Backup Policy in the NetApp account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @param body Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Backup Policy resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticBackupPolicyInner createOrUpdate(String resourceGroupName, String accountName, String backupPolicyName, - ElasticBackupPolicyInner body, Context context); - - /** - * Patch the specified NetApp Elastic Backup Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp Elastic Backup Policy resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ElasticBackupPolicyInner> beginUpdate(String resourceGroupName, - String accountName, String backupPolicyName, ElasticBackupPolicyUpdate body); - - /** - * Patch the specified NetApp Elastic Backup Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp Elastic Backup Policy resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ElasticBackupPolicyInner> beginUpdate(String resourceGroupName, - String accountName, String backupPolicyName, ElasticBackupPolicyUpdate body, Context context); - - /** - * Patch the specified NetApp Elastic Backup Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Backup Policy resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticBackupPolicyInner update(String resourceGroupName, String accountName, String backupPolicyName, - ElasticBackupPolicyUpdate body); - - /** - * Patch the specified NetApp Elastic Backup Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Backup Policy resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticBackupPolicyInner update(String resourceGroupName, String accountName, String backupPolicyName, - ElasticBackupPolicyUpdate body, Context context); - - /** - * Delete the specified Elastic Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, - String backupPolicyName); - - /** - * Delete the specified Elastic Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, - String backupPolicyName, Context context); - - /** - * Delete the specified Elastic Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, String backupPolicyName); - - /** - * Delete the specified Elastic Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, String backupPolicyName, Context context); - - /** - * List and describe all Elastic Backup Policies in the elastic account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ElasticBackupPolicy list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByElasticAccount(String resourceGroupName, String accountName); - - /** - * List and describe all Elastic Backup Policies in the elastic account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ElasticBackupPolicy list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByElasticAccount(String resourceGroupName, String accountName, - Context context); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticBackupVaultsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticBackupVaultsClient.java deleted file mode 100644 index 7f9dfbb74b56c..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticBackupVaultsClient.java +++ /dev/null @@ -1,269 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.netapp.fluent.models.ElasticBackupVaultInner; -import com.azure.resourcemanager.netapp.models.ElasticBackupVaultUpdate; - -/** - * An instance of this class provides access to all the operations defined in ElasticBackupVaultsClient. - */ -public interface ElasticBackupVaultsClient { - /** - * Get the Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @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 Elastic Backup Vault along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String accountName, - String backupVaultName, Context context); - - /** - * Get the Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @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 Elastic Backup Vault. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticBackupVaultInner get(String resourceGroupName, String accountName, String backupVaultName); - - /** - * Create or update the specified Elastic Backup Vault in the Elastic NetApp account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param body Resource create parameters. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp elastic backup vault resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ElasticBackupVaultInner> beginCreateOrUpdate( - String resourceGroupName, String accountName, String backupVaultName, ElasticBackupVaultInner body); - - /** - * Create or update the specified Elastic Backup Vault in the Elastic NetApp account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param body Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp elastic backup vault resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ElasticBackupVaultInner> beginCreateOrUpdate( - String resourceGroupName, String accountName, String backupVaultName, ElasticBackupVaultInner body, - Context context); - - /** - * Create or update the specified Elastic Backup Vault in the Elastic NetApp account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param body Resource create parameters. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp elastic backup vault resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticBackupVaultInner createOrUpdate(String resourceGroupName, String accountName, String backupVaultName, - ElasticBackupVaultInner body); - - /** - * Create or update the specified Elastic Backup Vault in the Elastic NetApp account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param body Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp elastic backup vault resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticBackupVaultInner createOrUpdate(String resourceGroupName, String accountName, String backupVaultName, - ElasticBackupVaultInner body, Context context); - - /** - * Patch the specified NetApp Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp elastic backup vault resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ElasticBackupVaultInner> beginUpdate(String resourceGroupName, - String accountName, String backupVaultName, ElasticBackupVaultUpdate body); - - /** - * Patch the specified NetApp Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp elastic backup vault resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ElasticBackupVaultInner> beginUpdate(String resourceGroupName, - String accountName, String backupVaultName, ElasticBackupVaultUpdate body, Context context); - - /** - * Patch the specified NetApp Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp elastic backup vault resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticBackupVaultInner update(String resourceGroupName, String accountName, String backupVaultName, - ElasticBackupVaultUpdate body); - - /** - * Patch the specified NetApp Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp elastic backup vault resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticBackupVaultInner update(String resourceGroupName, String accountName, String backupVaultName, - ElasticBackupVaultUpdate body, Context context); - - /** - * Delete the specified Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, - String backupVaultName); - - /** - * Delete the specified Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String backupVaultName, - Context context); - - /** - * Delete the specified Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, String backupVaultName); - - /** - * Delete the specified Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, String backupVaultName, Context context); - - /** - * List and describe all Elastic Backup Vaults in the elastic account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ElasticBackupVault list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByElasticAccount(String resourceGroupName, String accountName); - - /** - * List and describe all Elastic Backup Vaults in the elastic account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ElasticBackupVault list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByElasticAccount(String resourceGroupName, String accountName, - Context context); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticBackupsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticBackupsClient.java deleted file mode 100644 index ea1cbfc596b46..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticBackupsClient.java +++ /dev/null @@ -1,284 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.netapp.fluent.models.ElasticBackupInner; - -/** - * An instance of this class provides access to all the operations defined in ElasticBackupsClient. - */ -public interface ElasticBackupsClient { - /** - * Get the specified Elastic Backup under Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @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 specified Elastic Backup under Elastic Backup Vault along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String accountName, String backupVaultName, - String backupName, Context context); - - /** - * Get the specified Elastic Backup under Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @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 specified Elastic Backup under Elastic Backup Vault. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticBackupInner get(String resourceGroupName, String accountName, String backupVaultName, String backupName); - - /** - * Create an elastic backup under the elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @param body Resource create parameters. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp Elastic Backup under an elastic Backup Vault. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ElasticBackupInner> beginCreateOrUpdate(String resourceGroupName, - String accountName, String backupVaultName, String backupName, ElasticBackupInner body); - - /** - * Create an elastic backup under the elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @param body Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp Elastic Backup under an elastic Backup Vault. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ElasticBackupInner> beginCreateOrUpdate(String resourceGroupName, - String accountName, String backupVaultName, String backupName, ElasticBackupInner body, Context context); - - /** - * Create an elastic backup under the elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @param body Resource create parameters. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Backup under an elastic Backup Vault. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticBackupInner createOrUpdate(String resourceGroupName, String accountName, String backupVaultName, - String backupName, ElasticBackupInner body); - - /** - * Create an elastic backup under the elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @param body Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Backup under an elastic Backup Vault. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticBackupInner createOrUpdate(String resourceGroupName, String accountName, String backupVaultName, - String backupName, ElasticBackupInner body, Context context); - - /** - * Patch an elastic Backup under the Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp Elastic Backup under an elastic Backup Vault. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ElasticBackupInner> beginUpdate(String resourceGroupName, - String accountName, String backupVaultName, String backupName, ElasticBackupInner body); - - /** - * Patch an elastic Backup under the Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp Elastic Backup under an elastic Backup Vault. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ElasticBackupInner> beginUpdate(String resourceGroupName, - String accountName, String backupVaultName, String backupName, ElasticBackupInner body, Context context); - - /** - * Patch an elastic Backup under the Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Backup under an elastic Backup Vault. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticBackupInner update(String resourceGroupName, String accountName, String backupVaultName, String backupName, - ElasticBackupInner body); - - /** - * Patch an elastic Backup under the Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Backup under an elastic Backup Vault. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticBackupInner update(String resourceGroupName, String accountName, String backupVaultName, String backupName, - ElasticBackupInner body, Context context); - - /** - * Delete a ElasticBackup. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String backupVaultName, - String backupName); - - /** - * Delete a ElasticBackup. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String backupVaultName, - String backupName, Context context); - - /** - * Delete a ElasticBackup. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, String backupVaultName, String backupName); - - /** - * Delete a ElasticBackup. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, String backupVaultName, String backupName, - Context context); - - /** - * List all elastic backups Under an elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ElasticBackup list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByVault(String resourceGroupName, String accountName, String backupVaultName); - - /** - * List all elastic backups Under an elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ElasticBackup list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByVault(String resourceGroupName, String accountName, String backupVaultName, - Context context); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticCapacityPoolsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticCapacityPoolsClient.java deleted file mode 100644 index bdf6643876d8f..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticCapacityPoolsClient.java +++ /dev/null @@ -1,370 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.netapp.fluent.models.CheckElasticResourceAvailabilityResponseInner; -import com.azure.resourcemanager.netapp.fluent.models.ElasticCapacityPoolInner; -import com.azure.resourcemanager.netapp.models.ChangeZoneRequest; -import com.azure.resourcemanager.netapp.models.CheckElasticVolumeFilePathAvailabilityRequest; -import com.azure.resourcemanager.netapp.models.ElasticCapacityPoolUpdate; - -/** - * An instance of this class provides access to all the operations defined in ElasticCapacityPoolsClient. - */ -public interface ElasticCapacityPoolsClient { - /** - * Get the NetApp Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @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 NetApp Elastic Capacity Pool along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String accountName, String poolName, - Context context); - - /** - * Get the NetApp Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @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 NetApp Elastic Capacity Pool. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticCapacityPoolInner get(String resourceGroupName, String accountName, String poolName); - - /** - * Create or update the specified NetApp Elastic Capacity Pool within the resource group and NetApp Elastic Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body Resource create parameters. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp Elastic Capacity Pool resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ElasticCapacityPoolInner> beginCreateOrUpdate( - String resourceGroupName, String accountName, String poolName, ElasticCapacityPoolInner body); - - /** - * Create or update the specified NetApp Elastic Capacity Pool within the resource group and NetApp Elastic Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp Elastic Capacity Pool resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ElasticCapacityPoolInner> beginCreateOrUpdate( - String resourceGroupName, String accountName, String poolName, ElasticCapacityPoolInner body, Context context); - - /** - * Create or update the specified NetApp Elastic Capacity Pool within the resource group and NetApp Elastic Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body Resource create parameters. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Capacity Pool resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticCapacityPoolInner createOrUpdate(String resourceGroupName, String accountName, String poolName, - ElasticCapacityPoolInner body); - - /** - * Create or update the specified NetApp Elastic Capacity Pool within the resource group and NetApp Elastic Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Capacity Pool resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticCapacityPoolInner createOrUpdate(String resourceGroupName, String accountName, String poolName, - ElasticCapacityPoolInner body, Context context); - - /** - * Patch the specified NetApp Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp Elastic Capacity Pool resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ElasticCapacityPoolInner> beginUpdate(String resourceGroupName, - String accountName, String poolName, ElasticCapacityPoolUpdate body); - - /** - * Patch the specified NetApp Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp Elastic Capacity Pool resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ElasticCapacityPoolInner> beginUpdate(String resourceGroupName, - String accountName, String poolName, ElasticCapacityPoolUpdate body, Context context); - - /** - * Patch the specified NetApp Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Capacity Pool resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticCapacityPoolInner update(String resourceGroupName, String accountName, String poolName, - ElasticCapacityPoolUpdate body); - - /** - * Patch the specified NetApp Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Capacity Pool resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticCapacityPoolInner update(String resourceGroupName, String accountName, String poolName, - ElasticCapacityPoolUpdate body, Context context); - - /** - * Delete the specified NetApp Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName); - - /** - * Delete the specified NetApp Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, - Context context); - - /** - * Delete the specified NetApp Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, String poolName); - - /** - * Delete the specified NetApp Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, String poolName, Context context); - - /** - * List and describe all NetApp Elastic Capacity Pools in the Elastic NetApp Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ElasticCapacityPool list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByElasticAccount(String resourceGroupName, String accountName); - - /** - * List and describe all NetApp Elastic Capacity Pools in the Elastic NetApp Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ElasticCapacityPool list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByElasticAccount(String resourceGroupName, String accountName, - Context context); - - /** - * Moves pool to another zone. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body The content of the action request. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp Elastic Capacity Pool resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ElasticCapacityPoolInner> beginChangeZone(String resourceGroupName, - String accountName, String poolName, ChangeZoneRequest body); - - /** - * Moves pool to another zone. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body The content of the action request. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp Elastic Capacity Pool resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ElasticCapacityPoolInner> beginChangeZone(String resourceGroupName, - String accountName, String poolName, ChangeZoneRequest body, Context context); - - /** - * Moves pool to another zone. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body The content of the action request. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Capacity Pool resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticCapacityPoolInner changeZone(String resourceGroupName, String accountName, String poolName, - ChangeZoneRequest body); - - /** - * Moves pool to another zone. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body The content of the action request. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Capacity Pool resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticCapacityPoolInner changeZone(String resourceGroupName, String accountName, String poolName, - ChangeZoneRequest body, Context context); - - /** - * Check if an Elastic Volume file path is available within the given Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body The content of the action request. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information regarding availability of a resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response checkVolumeFilePathAvailabilityWithResponse( - String resourceGroupName, String accountName, String poolName, - CheckElasticVolumeFilePathAvailabilityRequest body, Context context); - - /** - * Check if an Elastic Volume file path is available within the given Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body The content of the action request. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information regarding availability of a resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - CheckElasticResourceAvailabilityResponseInner checkVolumeFilePathAvailability(String resourceGroupName, - String accountName, String poolName, CheckElasticVolumeFilePathAvailabilityRequest body); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticSnapshotPoliciesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticSnapshotPoliciesClient.java deleted file mode 100644 index 062bc0b19bb4b..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticSnapshotPoliciesClient.java +++ /dev/null @@ -1,301 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.netapp.fluent.models.ElasticSnapshotPolicyInner; -import com.azure.resourcemanager.netapp.fluent.models.ElasticVolumeInner; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyUpdate; - -/** - * An instance of this class provides access to all the operations defined in ElasticSnapshotPoliciesClient. - */ -public interface ElasticSnapshotPoliciesClient { - /** - * Get a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a ElasticSnapshotPolicy along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String accountName, - String snapshotPolicyName, Context context); - - /** - * Get a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a ElasticSnapshotPolicy. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticSnapshotPolicyInner get(String resourceGroupName, String accountName, String snapshotPolicyName); - - /** - * Create a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @param body Resource create parameters. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp Elastic Snapshot Policy under an Elastic Account. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ElasticSnapshotPolicyInner> beginCreateOrUpdate( - String resourceGroupName, String accountName, String snapshotPolicyName, ElasticSnapshotPolicyInner body); - - /** - * Create a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @param body Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp Elastic Snapshot Policy under an Elastic Account. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ElasticSnapshotPolicyInner> beginCreateOrUpdate( - String resourceGroupName, String accountName, String snapshotPolicyName, ElasticSnapshotPolicyInner body, - Context context); - - /** - * Create a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @param body Resource create parameters. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Snapshot Policy under an Elastic Account. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticSnapshotPolicyInner createOrUpdate(String resourceGroupName, String accountName, String snapshotPolicyName, - ElasticSnapshotPolicyInner body); - - /** - * Create a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @param body Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Snapshot Policy under an Elastic Account. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticSnapshotPolicyInner createOrUpdate(String resourceGroupName, String accountName, String snapshotPolicyName, - ElasticSnapshotPolicyInner body, Context context); - - /** - * Update a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp Elastic Snapshot Policy under an Elastic Account. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ElasticSnapshotPolicyInner> beginUpdate(String resourceGroupName, - String accountName, String snapshotPolicyName, ElasticSnapshotPolicyUpdate body); - - /** - * Update a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp Elastic Snapshot Policy under an Elastic Account. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ElasticSnapshotPolicyInner> beginUpdate(String resourceGroupName, - String accountName, String snapshotPolicyName, ElasticSnapshotPolicyUpdate body, Context context); - - /** - * Update a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Snapshot Policy under an Elastic Account. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticSnapshotPolicyInner update(String resourceGroupName, String accountName, String snapshotPolicyName, - ElasticSnapshotPolicyUpdate body); - - /** - * Update a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Snapshot Policy under an Elastic Account. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticSnapshotPolicyInner update(String resourceGroupName, String accountName, String snapshotPolicyName, - ElasticSnapshotPolicyUpdate body, Context context); - - /** - * Delete a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, - String snapshotPolicyName); - - /** - * Delete a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, - String snapshotPolicyName, Context context); - - /** - * Delete a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, String snapshotPolicyName); - - /** - * Delete a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, String snapshotPolicyName, Context context); - - /** - * List ElasticSnapshotPolicy resources by ElasticAccount. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ElasticSnapshotPolicy list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByElasticAccount(String resourceGroupName, String accountName); - - /** - * List ElasticSnapshotPolicy resources by ElasticAccount. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ElasticSnapshotPolicy list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByElasticAccount(String resourceGroupName, String accountName, - Context context); - - /** - * Get elastic volumes associated with Elastic Snapshot Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @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 elastic volumes associated with Elastic Snapshot Policy as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listElasticVolumes(String resourceGroupName, String accountName, - String snapshotPolicyName); - - /** - * Get elastic volumes associated with Elastic Snapshot Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @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 elastic volumes associated with Elastic Snapshot Policy as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listElasticVolumes(String resourceGroupName, String accountName, - String snapshotPolicyName, Context context); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticSnapshotsClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticSnapshotsClient.java deleted file mode 100644 index b2021a544dba8..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticSnapshotsClient.java +++ /dev/null @@ -1,229 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.netapp.fluent.models.ElasticSnapshotInner; - -/** - * An instance of this class provides access to all the operations defined in ElasticSnapshotsClient. - */ -public interface ElasticSnapshotsClient { - /** - * Get a ElasticSnapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param snapshotName The name of the ElasticSnapshot. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a ElasticSnapshot along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName, String snapshotName, Context context); - - /** - * Get a ElasticSnapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param snapshotName The name of the ElasticSnapshot. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a ElasticSnapshot. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticSnapshotInner get(String resourceGroupName, String accountName, String poolName, String volumeName, - String snapshotName); - - /** - * Create a ElasticSnapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param snapshotName The name of the ElasticSnapshot. - * @param body Resource create parameters. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp Elastic Snapshot under an Elastic Volume. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ElasticSnapshotInner> beginCreateOrUpdate(String resourceGroupName, - String accountName, String poolName, String volumeName, String snapshotName, ElasticSnapshotInner body); - - /** - * Create a ElasticSnapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param snapshotName The name of the ElasticSnapshot. - * @param body Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp Elastic Snapshot under an Elastic Volume. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ElasticSnapshotInner> beginCreateOrUpdate(String resourceGroupName, - String accountName, String poolName, String volumeName, String snapshotName, ElasticSnapshotInner body, - Context context); - - /** - * Create a ElasticSnapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param snapshotName The name of the ElasticSnapshot. - * @param body Resource create parameters. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Snapshot under an Elastic Volume. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticSnapshotInner createOrUpdate(String resourceGroupName, String accountName, String poolName, - String volumeName, String snapshotName, ElasticSnapshotInner body); - - /** - * Create a ElasticSnapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param snapshotName The name of the ElasticSnapshot. - * @param body Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Snapshot under an Elastic Volume. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticSnapshotInner createOrUpdate(String resourceGroupName, String accountName, String poolName, - String volumeName, String snapshotName, ElasticSnapshotInner body, Context context); - - /** - * Delete a ElasticSnapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param snapshotName The name of the ElasticSnapshot. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, - String volumeName, String snapshotName); - - /** - * Delete a ElasticSnapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param snapshotName The name of the ElasticSnapshot. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, - String volumeName, String snapshotName, Context context); - - /** - * Delete a ElasticSnapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param snapshotName The name of the ElasticSnapshot. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName); - - /** - * Delete a ElasticSnapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param snapshotName The name of the ElasticSnapshot. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName, - Context context); - - /** - * List ElasticSnapshot resources by ElasticVolume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ElasticSnapshot list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByElasticVolume(String resourceGroupName, String accountName, - String poolName, String volumeName); - - /** - * List ElasticSnapshot resources by ElasticVolume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ElasticSnapshot list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByElasticVolume(String resourceGroupName, String accountName, - String poolName, String volumeName, Context context); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticVolumesClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticVolumesClient.java deleted file mode 100644 index b273fd6e03d07..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticVolumesClient.java +++ /dev/null @@ -1,355 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.fluent; - -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.Context; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.netapp.fluent.models.ElasticVolumeInner; -import com.azure.resourcemanager.netapp.models.ElasticVolumeRevert; -import com.azure.resourcemanager.netapp.models.ElasticVolumeUpdate; - -/** - * An instance of this class provides access to all the operations defined in ElasticVolumesClient. - */ -public interface ElasticVolumesClient { - /** - * Get the details of the specified volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @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 details of the specified volume along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - Response getWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName, Context context); - - /** - * Get the details of the specified volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @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 details of the specified volume. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticVolumeInner get(String resourceGroupName, String accountName, String poolName, String volumeName); - - /** - * Create or update the specified volume within the capacity pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body Resource create parameters. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp Elastic Volume resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ElasticVolumeInner> beginCreateOrUpdate(String resourceGroupName, - String accountName, String poolName, String volumeName, ElasticVolumeInner body); - - /** - * Create or update the specified volume within the capacity pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp Elastic Volume resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ElasticVolumeInner> beginCreateOrUpdate(String resourceGroupName, - String accountName, String poolName, String volumeName, ElasticVolumeInner body, Context context); - - /** - * Create or update the specified volume within the capacity pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body Resource create parameters. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Volume resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticVolumeInner createOrUpdate(String resourceGroupName, String accountName, String poolName, String volumeName, - ElasticVolumeInner body); - - /** - * Create or update the specified volume within the capacity pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body Resource create parameters. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Volume resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticVolumeInner createOrUpdate(String resourceGroupName, String accountName, String poolName, String volumeName, - ElasticVolumeInner body, Context context); - - /** - * Patch the specified elastic volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp Elastic Volume resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ElasticVolumeInner> beginUpdate(String resourceGroupName, - String accountName, String poolName, String volumeName, ElasticVolumeUpdate body); - - /** - * Patch the specified elastic volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp Elastic Volume resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ElasticVolumeInner> beginUpdate(String resourceGroupName, - String accountName, String poolName, String volumeName, ElasticVolumeUpdate body, Context context); - - /** - * Patch the specified elastic volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Volume resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticVolumeInner update(String resourceGroupName, String accountName, String poolName, String volumeName, - ElasticVolumeUpdate body); - - /** - * Patch the specified elastic volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Volume resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticVolumeInner update(String resourceGroupName, String accountName, String poolName, String volumeName, - ElasticVolumeUpdate body, Context context); - - /** - * Delete the specified Elastic Volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, - String volumeName); - - /** - * Delete the specified Elastic Volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of long-running operation. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, Void> beginDelete(String resourceGroupName, String accountName, String poolName, - String volumeName, Context context); - - /** - * Delete the specified Elastic Volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, String poolName, String volumeName); - - /** - * Delete the specified Elastic Volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - void delete(String resourceGroupName, String accountName, String poolName, String volumeName, Context context); - - /** - * List all Elastic Volumes within the Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ElasticVolume list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByElasticPool(String resourceGroupName, String accountName, String poolName); - - /** - * List all Elastic Volumes within the Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ElasticVolume list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - PagedIterable listByElasticPool(String resourceGroupName, String accountName, String poolName, - Context context); - - /** - * Revert an Elastic Volume to the snapshot specified in the body. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body The content of the action request. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp Elastic Volume resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ElasticVolumeInner> beginRevert(String resourceGroupName, - String accountName, String poolName, String volumeName, ElasticVolumeRevert body); - - /** - * Revert an Elastic Volume to the snapshot specified in the body. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body The content of the action request. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp Elastic Volume resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - SyncPoller, ElasticVolumeInner> beginRevert(String resourceGroupName, - String accountName, String poolName, String volumeName, ElasticVolumeRevert body, Context context); - - /** - * Revert an Elastic Volume to the snapshot specified in the body. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body The content of the action request. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Volume resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticVolumeInner revert(String resourceGroupName, String accountName, String poolName, String volumeName, - ElasticVolumeRevert body); - - /** - * Revert an Elastic Volume to the snapshot specified in the body. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body The content of the action request. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Volume resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - ElasticVolumeInner revert(String resourceGroupName, String accountName, String poolName, String volumeName, - ElasticVolumeRevert body, Context context); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppManagementClient.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppManagementClient.java index 57bd68b86eace..39883afaff97c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppManagementClient.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppManagementClient.java @@ -137,69 +137,6 @@ public interface NetAppManagementClient { */ CachesClient getCaches(); - /** - * Gets the ElasticAccountsClient object to access its operations. - * - * @return the ElasticAccountsClient object. - */ - ElasticAccountsClient getElasticAccounts(); - - /** - * Gets the ElasticCapacityPoolsClient object to access its operations. - * - * @return the ElasticCapacityPoolsClient object. - */ - ElasticCapacityPoolsClient getElasticCapacityPools(); - - /** - * Gets the ElasticVolumesClient object to access its operations. - * - * @return the ElasticVolumesClient object. - */ - ElasticVolumesClient getElasticVolumes(); - - /** - * Gets the ElasticSnapshotsClient object to access its operations. - * - * @return the ElasticSnapshotsClient object. - */ - ElasticSnapshotsClient getElasticSnapshots(); - - /** - * Gets the ElasticSnapshotPoliciesClient object to access its operations. - * - * @return the ElasticSnapshotPoliciesClient object. - */ - ElasticSnapshotPoliciesClient getElasticSnapshotPolicies(); - - /** - * Gets the ElasticBackupVaultsClient object to access its operations. - * - * @return the ElasticBackupVaultsClient object. - */ - ElasticBackupVaultsClient getElasticBackupVaults(); - - /** - * Gets the ElasticBackupPoliciesClient object to access its operations. - * - * @return the ElasticBackupPoliciesClient object. - */ - ElasticBackupPoliciesClient getElasticBackupPolicies(); - - /** - * Gets the ElasticBackupsClient object to access its operations. - * - * @return the ElasticBackupsClient object. - */ - ElasticBackupsClient getElasticBackups(); - - /** - * Gets the ActiveDirectoryConfigsClient object to access its operations. - * - * @return the ActiveDirectoryConfigsClient object. - */ - ActiveDirectoryConfigsClient getActiveDirectoryConfigs(); - /** * Gets the NetAppResourceQuotaLimitsClient object to access its operations. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java index 27e42ab8104f9..3f77b6afdc9e0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java @@ -11,7 +11,6 @@ import com.azure.json.JsonWriter; import com.azure.resourcemanager.netapp.models.AccountEncryption; import com.azure.resourcemanager.netapp.models.ActiveDirectory; -import com.azure.resourcemanager.netapp.models.EntraIdConfig; import com.azure.resourcemanager.netapp.models.LdapConfiguration; import com.azure.resourcemanager.netapp.models.MultiAdStatus; import java.io.IOException; @@ -32,11 +31,6 @@ public final class AccountProperties implements JsonSerializable activeDirectories; - /* - * Entra ID configuration for the account. - */ - private EntraIdConfig entraIdConfig; - /* * Encryption settings */ @@ -98,26 +92,6 @@ public AccountProperties withActiveDirectories(List activeDirec return this; } - /** - * Get the entraIdConfig property: Entra ID configuration for the account. - * - * @return the entraIdConfig value. - */ - public EntraIdConfig entraIdConfig() { - return this.entraIdConfig; - } - - /** - * Set the entraIdConfig property: Entra ID configuration for the account. - * - * @param entraIdConfig the entraIdConfig value to set. - * @return the AccountProperties object itself. - */ - public AccountProperties withEntraIdConfig(EntraIdConfig entraIdConfig) { - this.entraIdConfig = entraIdConfig; - return this; - } - /** * Get the encryption property: Encryption settings. * @@ -208,9 +182,6 @@ public void validate() { if (activeDirectories() != null) { activeDirectories().forEach(e -> e.validate()); } - if (entraIdConfig() != null) { - entraIdConfig().validate(); - } if (encryption() != null) { encryption().validate(); } @@ -227,7 +198,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeArrayField("activeDirectories", this.activeDirectories, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeJsonField("entraIdConfig", this.entraIdConfig); jsonWriter.writeJsonField("encryption", this.encryption); jsonWriter.writeStringField("nfsV4IDDomain", this.nfsV4IdDomain); jsonWriter.writeJsonField("ldapConfiguration", this.ldapConfiguration); @@ -255,8 +225,6 @@ public static AccountProperties fromJson(JsonReader jsonReader) throws IOExcepti List activeDirectories = reader.readArray(reader1 -> ActiveDirectory.fromJson(reader1)); deserializedAccountProperties.activeDirectories = activeDirectories; - } else if ("entraIdConfig".equals(fieldName)) { - deserializedAccountProperties.entraIdConfig = EntraIdConfig.fromJson(reader); } else if ("encryption".equals(fieldName)) { deserializedAccountProperties.encryption = AccountEncryption.fromJson(reader); } else if ("disableShowmount".equals(fieldName)) { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountPropertiesPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountPropertiesPatch.java index fa5e77c84b13a..52ff7241c93ba 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountPropertiesPatch.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountPropertiesPatch.java @@ -9,9 +9,8 @@ import com.azure.json.JsonSerializable; import com.azure.json.JsonToken; import com.azure.json.JsonWriter; -import com.azure.resourcemanager.netapp.models.AccountEncryption; +import com.azure.resourcemanager.netapp.models.AccountEncryptionPatch; import com.azure.resourcemanager.netapp.models.ActiveDirectory; -import com.azure.resourcemanager.netapp.models.EntraIdConfigPatch; import com.azure.resourcemanager.netapp.models.LdapConfigurationPatch; import java.io.IOException; import java.util.List; @@ -29,7 +28,7 @@ public final class AccountPropertiesPatch implements JsonSerializable active * * @return the encryption value. */ - public AccountEncryption encryption() { + public AccountEncryptionPatch encryption() { return this.encryption; } @@ -88,7 +82,7 @@ public AccountEncryption encryption() { * @param encryption the encryption value to set. * @return the AccountPropertiesPatch object itself. */ - public AccountPropertiesPatch withEncryption(AccountEncryption encryption) { + public AccountPropertiesPatch withEncryption(AccountEncryptionPatch encryption) { this.encryption = encryption; return this; } @@ -115,26 +109,6 @@ public AccountPropertiesPatch withNfsV4IdDomain(String nfsV4IdDomain) { return this; } - /** - * Get the entraIdConfig property: Entra ID configuration for the account. - * - * @return the entraIdConfig value. - */ - public EntraIdConfigPatch entraIdConfig() { - return this.entraIdConfig; - } - - /** - * Set the entraIdConfig property: Entra ID configuration for the account. - * - * @param entraIdConfig the entraIdConfig value to set. - * @return the AccountPropertiesPatch object itself. - */ - public AccountPropertiesPatch withEntraIdConfig(EntraIdConfigPatch entraIdConfig) { - this.entraIdConfig = entraIdConfig; - return this; - } - /** * Get the ldapConfiguration property: LDAP Configuration for the account. * @@ -167,9 +141,6 @@ public void validate() { if (encryption() != null) { encryption().validate(); } - if (entraIdConfig() != null) { - entraIdConfig().validate(); - } if (ldapConfiguration() != null) { ldapConfiguration().validate(); } @@ -185,7 +156,6 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { (writer, element) -> writer.writeJson(element)); jsonWriter.writeJsonField("encryption", this.encryption); jsonWriter.writeStringField("nfsV4IDDomain", this.nfsV4IdDomain); - jsonWriter.writeJsonField("entraIdConfig", this.entraIdConfig); jsonWriter.writeJsonField("ldapConfiguration", this.ldapConfiguration); return jsonWriter.writeEndObject(); } @@ -210,11 +180,9 @@ public static AccountPropertiesPatch fromJson(JsonReader jsonReader) throws IOEx = reader.readArray(reader1 -> ActiveDirectory.fromJson(reader1)); deserializedAccountPropertiesPatch.activeDirectories = activeDirectories; } else if ("encryption".equals(fieldName)) { - deserializedAccountPropertiesPatch.encryption = AccountEncryption.fromJson(reader); + deserializedAccountPropertiesPatch.encryption = AccountEncryptionPatch.fromJson(reader); } else if ("nfsV4IDDomain".equals(fieldName)) { deserializedAccountPropertiesPatch.nfsV4IdDomain = reader.getString(); - } else if ("entraIdConfig".equals(fieldName)) { - deserializedAccountPropertiesPatch.entraIdConfig = EntraIdConfigPatch.fromJson(reader); } else if ("ldapConfiguration".equals(fieldName)) { deserializedAccountPropertiesPatch.ldapConfiguration = LdapConfigurationPatch.fromJson(reader); } else { diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ActiveDirectoryConfigInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ActiveDirectoryConfigInner.java deleted file mode 100644 index fdbfdf2c2060a..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ActiveDirectoryConfigInner.java +++ /dev/null @@ -1,245 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.Resource; -import com.azure.core.management.SystemData; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.netapp.models.ActiveDirectoryConfigProperties; -import com.azure.resourcemanager.netapp.models.ManagedServiceIdentity; -import java.io.IOException; -import java.util.Map; - -/** - * Active Directory Configuration resource. - */ -@Fluent -public final class ActiveDirectoryConfigInner extends Resource { - /* - * The resource-specific properties for this resource. - */ - private ActiveDirectoryConfigProperties properties; - - /* - * "If etag is provided in the response body, it may also be provided as a header per the normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section 14.27) header fields." - * ) - */ - private String etag; - - /* - * The managed service identities assigned to this resource. - */ - private ManagedServiceIdentity identity; - - /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - */ - private SystemData systemData; - - /* - * The type of the resource. - */ - private String type; - - /* - * The name of the resource. - */ - private String name; - - /* - * Fully qualified resource Id for the resource. - */ - private String id; - - /** - * Creates an instance of ActiveDirectoryConfigInner class. - */ - public ActiveDirectoryConfigInner() { - } - - /** - * Get the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - public ActiveDirectoryConfigProperties properties() { - return this.properties; - } - - /** - * Set the properties property: The resource-specific properties for this resource. - * - * @param properties the properties value to set. - * @return the ActiveDirectoryConfigInner object itself. - */ - public ActiveDirectoryConfigInner withProperties(ActiveDirectoryConfigProperties properties) { - this.properties = properties; - return this; - } - - /** - * Get the etag property: "If etag is provided in the response body, it may also be provided as a header per the - * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. - * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), - * and If-Range (section 14.27) header fields."). - * - * @return the etag value. - */ - public String etag() { - return this.etag; - } - - /** - * Get the identity property: The managed service identities assigned to this resource. - * - * @return the identity value. - */ - public ManagedServiceIdentity identity() { - return this.identity; - } - - /** - * Set the identity property: The managed service identities assigned to this resource. - * - * @param identity the identity value to set. - * @return the ActiveDirectoryConfigInner object itself. - */ - public ActiveDirectoryConfigInner withIdentity(ManagedServiceIdentity identity) { - this.identity = identity; - return this; - } - - /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - public SystemData systemData() { - return this.systemData; - } - - /** - * Get the type property: The type of the resource. - * - * @return the type value. - */ - @Override - public String type() { - return this.type; - } - - /** - * Get the name property: The name of the resource. - * - * @return the name value. - */ - @Override - public String name() { - return this.name; - } - - /** - * Get the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - @Override - public String id() { - return this.id; - } - - /** - * {@inheritDoc} - */ - @Override - public ActiveDirectoryConfigInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public ActiveDirectoryConfigInner withTags(Map tags) { - super.withTags(tags); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (properties() != null) { - properties().validate(); - } - if (identity() != null) { - identity().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("location", location()); - jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); - jsonWriter.writeJsonField("properties", this.properties); - jsonWriter.writeJsonField("identity", this.identity); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ActiveDirectoryConfigInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ActiveDirectoryConfigInner 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 ActiveDirectoryConfigInner. - */ - public static ActiveDirectoryConfigInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ActiveDirectoryConfigInner deserializedActiveDirectoryConfigInner = new ActiveDirectoryConfigInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedActiveDirectoryConfigInner.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedActiveDirectoryConfigInner.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedActiveDirectoryConfigInner.type = reader.getString(); - } else if ("location".equals(fieldName)) { - deserializedActiveDirectoryConfigInner.withLocation(reader.getString()); - } else if ("tags".equals(fieldName)) { - Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedActiveDirectoryConfigInner.withTags(tags); - } else if ("properties".equals(fieldName)) { - deserializedActiveDirectoryConfigInner.properties - = ActiveDirectoryConfigProperties.fromJson(reader); - } else if ("etag".equals(fieldName)) { - deserializedActiveDirectoryConfigInner.etag = reader.getString(); - } else if ("identity".equals(fieldName)) { - deserializedActiveDirectoryConfigInner.identity = ManagedServiceIdentity.fromJson(reader); - } else if ("systemData".equals(fieldName)) { - deserializedActiveDirectoryConfigInner.systemData = SystemData.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedActiveDirectoryConfigInner; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CapacityPoolInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CapacityPoolInner.java index 254bfbbada50b..4ec65b42aeb2f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CapacityPoolInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CapacityPoolInner.java @@ -147,8 +147,8 @@ public String poolId() { } /** - * Get the size property: Provisioned size of the pool (in bytes). Allowed values are 512GiB (549755813888 bytes) or - * in 1TiB chunks (value must be multiple of 1099511627776). + * Get the size property: Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be + * multiple of 1099511627776). * * @return the size value. */ @@ -157,8 +157,8 @@ public long size() { } /** - * Set the size property: Provisioned size of the pool (in bytes). Allowed values are 512GiB (549755813888 bytes) or - * in 1TiB chunks (value must be multiple of 1099511627776). + * Set the size property: Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be + * multiple of 1099511627776). * * @param size the size value to set. * @return the CapacityPoolInner object itself. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CheckElasticResourceAvailabilityResponseInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CheckElasticResourceAvailabilityResponseInner.java deleted file mode 100644 index e510e0cead5c1..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/CheckElasticResourceAvailabilityResponseInner.java +++ /dev/null @@ -1,129 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.fluent.models; - -import com.azure.core.annotation.Immutable; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.netapp.models.CheckElasticResourceAvailabilityReason; -import com.azure.resourcemanager.netapp.models.CheckElasticResourceAvailabilityStatus; -import java.io.IOException; - -/** - * Information regarding availability of a resource. - */ -@Immutable -public final class CheckElasticResourceAvailabilityResponseInner - implements JsonSerializable { - /* - * True indicates name is valid and available. False indicates the name is invalid, unavailable, or both. - */ - private CheckElasticResourceAvailabilityStatus isAvailable; - - /* - * Invalid indicates the name provided does not match Azure NetApp Files naming requirements. AlreadyExists - * indicates that the name is already in use and is therefore unavailable. - */ - private CheckElasticResourceAvailabilityReason reason; - - /* - * If reason == invalid, provide the user with the reason why the given name is invalid, and provide the resource - * naming requirements so that the user can select a valid name. If reason == AlreadyExists, explain that resource - * name is already in use, and direct them to select a different name. - */ - private String message; - - /** - * Creates an instance of CheckElasticResourceAvailabilityResponseInner class. - */ - private CheckElasticResourceAvailabilityResponseInner() { - } - - /** - * Get the isAvailable property: True indicates name is valid and available. False indicates the name is invalid, - * unavailable, or both. - * - * @return the isAvailable value. - */ - public CheckElasticResourceAvailabilityStatus isAvailable() { - return this.isAvailable; - } - - /** - * Get the reason property: Invalid indicates the name provided does not match Azure NetApp Files naming - * requirements. AlreadyExists indicates that the name is already in use and is therefore unavailable. - * - * @return the reason value. - */ - public CheckElasticResourceAvailabilityReason reason() { - return this.reason; - } - - /** - * Get the message property: If reason == invalid, provide the user with the reason why the given name is invalid, - * and provide the resource naming requirements so that the user can select a valid name. If reason == - * AlreadyExists, explain that resource name is already in use, and direct them to select a different name. - * - * @return the message value. - */ - public String message() { - return this.message; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("isAvailable", this.isAvailable == null ? null : this.isAvailable.toString()); - jsonWriter.writeStringField("reason", this.reason == null ? null : this.reason.toString()); - jsonWriter.writeStringField("message", this.message); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of CheckElasticResourceAvailabilityResponseInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of CheckElasticResourceAvailabilityResponseInner 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 CheckElasticResourceAvailabilityResponseInner. - */ - public static CheckElasticResourceAvailabilityResponseInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - CheckElasticResourceAvailabilityResponseInner deserializedCheckElasticResourceAvailabilityResponseInner - = new CheckElasticResourceAvailabilityResponseInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("isAvailable".equals(fieldName)) { - deserializedCheckElasticResourceAvailabilityResponseInner.isAvailable - = CheckElasticResourceAvailabilityStatus.fromString(reader.getString()); - } else if ("reason".equals(fieldName)) { - deserializedCheckElasticResourceAvailabilityResponseInner.reason - = CheckElasticResourceAvailabilityReason.fromString(reader.getString()); - } else if ("message".equals(fieldName)) { - deserializedCheckElasticResourceAvailabilityResponseInner.message = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedCheckElasticResourceAvailabilityResponseInner; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticAccountInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticAccountInner.java deleted file mode 100644 index fec53001fe1a0..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticAccountInner.java +++ /dev/null @@ -1,246 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.Resource; -import com.azure.core.management.SystemData; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.netapp.models.ElasticAccountProperties; -import com.azure.resourcemanager.netapp.models.ManagedServiceIdentity; -import java.io.IOException; -import java.util.Map; - -/** - * NetApp elastic account resource. - */ -@Fluent -public final class ElasticAccountInner extends Resource { - /* - * The resource-specific properties for this resource. - */ - private ElasticAccountProperties properties; - - /* - * If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. - * Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity - * tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section - * 14.27) header fields. - */ - private String eTag; - - /* - * The managed service identities assigned to this resource. - */ - private ManagedServiceIdentity identity; - - /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - */ - private SystemData systemData; - - /* - * The type of the resource. - */ - private String type; - - /* - * The name of the resource. - */ - private String name; - - /* - * Fully qualified resource Id for the resource. - */ - private String id; - - /** - * Creates an instance of ElasticAccountInner class. - */ - public ElasticAccountInner() { - } - - /** - * Get the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - public ElasticAccountProperties properties() { - return this.properties; - } - - /** - * Set the properties property: The resource-specific properties for this resource. - * - * @param properties the properties value to set. - * @return the ElasticAccountInner object itself. - */ - public ElasticAccountInner withProperties(ElasticAccountProperties properties) { - this.properties = properties; - return this; - } - - /** - * Get the eTag property: If eTag is provided in the response body, it may also be provided as a header per the - * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. - * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), - * and If-Range (section 14.27) header fields. - * - * @return the eTag value. - */ - public String eTag() { - return this.eTag; - } - - /** - * Get the identity property: The managed service identities assigned to this resource. - * - * @return the identity value. - */ - public ManagedServiceIdentity identity() { - return this.identity; - } - - /** - * Set the identity property: The managed service identities assigned to this resource. - * - * @param identity the identity value to set. - * @return the ElasticAccountInner object itself. - */ - public ElasticAccountInner withIdentity(ManagedServiceIdentity identity) { - this.identity = identity; - return this; - } - - /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - public SystemData systemData() { - return this.systemData; - } - - /** - * Get the type property: The type of the resource. - * - * @return the type value. - */ - @Override - public String type() { - return this.type; - } - - /** - * Get the name property: The name of the resource. - * - * @return the name value. - */ - @Override - public String name() { - return this.name; - } - - /** - * Get the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - @Override - public String id() { - return this.id; - } - - /** - * {@inheritDoc} - */ - @Override - public ElasticAccountInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public ElasticAccountInner withTags(Map tags) { - super.withTags(tags); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (properties() != null) { - properties().validate(); - } - if (identity() != null) { - identity().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("location", location()); - jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); - jsonWriter.writeJsonField("properties", this.properties); - jsonWriter.writeJsonField("identity", this.identity); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticAccountInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticAccountInner 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 ElasticAccountInner. - */ - public static ElasticAccountInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticAccountInner deserializedElasticAccountInner = new ElasticAccountInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedElasticAccountInner.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedElasticAccountInner.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedElasticAccountInner.type = reader.getString(); - } else if ("location".equals(fieldName)) { - deserializedElasticAccountInner.withLocation(reader.getString()); - } else if ("tags".equals(fieldName)) { - Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedElasticAccountInner.withTags(tags); - } else if ("properties".equals(fieldName)) { - deserializedElasticAccountInner.properties = ElasticAccountProperties.fromJson(reader); - } else if ("eTag".equals(fieldName)) { - deserializedElasticAccountInner.eTag = reader.getString(); - } else if ("identity".equals(fieldName)) { - deserializedElasticAccountInner.identity = ManagedServiceIdentity.fromJson(reader); - } else if ("systemData".equals(fieldName)) { - deserializedElasticAccountInner.systemData = SystemData.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticAccountInner; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticBackupInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticBackupInner.java deleted file mode 100644 index 355c759d9ec70..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticBackupInner.java +++ /dev/null @@ -1,166 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.ProxyResource; -import com.azure.core.management.SystemData; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.netapp.models.ElasticBackupProperties; -import java.io.IOException; - -/** - * NetApp Elastic Backup under an elastic Backup Vault. - */ -@Fluent -public final class ElasticBackupInner extends ProxyResource { - /* - * The resource-specific properties for this resource. - */ - private ElasticBackupProperties properties; - - /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - */ - private SystemData systemData; - - /* - * The type of the resource. - */ - private String type; - - /* - * The name of the resource. - */ - private String name; - - /* - * Fully qualified resource Id for the resource. - */ - private String id; - - /** - * Creates an instance of ElasticBackupInner class. - */ - public ElasticBackupInner() { - } - - /** - * Get the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - public ElasticBackupProperties properties() { - return this.properties; - } - - /** - * Set the properties property: The resource-specific properties for this resource. - * - * @param properties the properties value to set. - * @return the ElasticBackupInner object itself. - */ - public ElasticBackupInner withProperties(ElasticBackupProperties properties) { - this.properties = properties; - return this; - } - - /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - public SystemData systemData() { - return this.systemData; - } - - /** - * Get the type property: The type of the resource. - * - * @return the type value. - */ - @Override - public String type() { - return this.type; - } - - /** - * Get the name property: The name of the resource. - * - * @return the name value. - */ - @Override - public String name() { - return this.name; - } - - /** - * Get the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - @Override - public String id() { - return this.id; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (properties() != null) { - properties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("properties", this.properties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticBackupInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticBackupInner 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 ElasticBackupInner. - */ - public static ElasticBackupInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticBackupInner deserializedElasticBackupInner = new ElasticBackupInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedElasticBackupInner.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedElasticBackupInner.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedElasticBackupInner.type = reader.getString(); - } else if ("properties".equals(fieldName)) { - deserializedElasticBackupInner.properties = ElasticBackupProperties.fromJson(reader); - } else if ("systemData".equals(fieldName)) { - deserializedElasticBackupInner.systemData = SystemData.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticBackupInner; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticBackupPolicyInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticBackupPolicyInner.java deleted file mode 100644 index 46c2fe6bfa0d5..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticBackupPolicyInner.java +++ /dev/null @@ -1,214 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.Resource; -import com.azure.core.management.SystemData; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyProperties; -import java.io.IOException; -import java.util.Map; - -/** - * NetApp Elastic Backup Policy resource. - */ -@Fluent -public final class ElasticBackupPolicyInner extends Resource { - /* - * The resource-specific properties for this resource. - */ - private ElasticBackupPolicyProperties properties; - - /* - * If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. - * Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity - * tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section - * 14.27) header fields. - */ - private String eTag; - - /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - */ - private SystemData systemData; - - /* - * The type of the resource. - */ - private String type; - - /* - * The name of the resource. - */ - private String name; - - /* - * Fully qualified resource Id for the resource. - */ - private String id; - - /** - * Creates an instance of ElasticBackupPolicyInner class. - */ - public ElasticBackupPolicyInner() { - } - - /** - * Get the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - public ElasticBackupPolicyProperties properties() { - return this.properties; - } - - /** - * Set the properties property: The resource-specific properties for this resource. - * - * @param properties the properties value to set. - * @return the ElasticBackupPolicyInner object itself. - */ - public ElasticBackupPolicyInner withProperties(ElasticBackupPolicyProperties properties) { - this.properties = properties; - return this; - } - - /** - * Get the eTag property: If eTag is provided in the response body, it may also be provided as a header per the - * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. - * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), - * and If-Range (section 14.27) header fields. - * - * @return the eTag value. - */ - public String eTag() { - return this.eTag; - } - - /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - public SystemData systemData() { - return this.systemData; - } - - /** - * Get the type property: The type of the resource. - * - * @return the type value. - */ - @Override - public String type() { - return this.type; - } - - /** - * Get the name property: The name of the resource. - * - * @return the name value. - */ - @Override - public String name() { - return this.name; - } - - /** - * Get the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - @Override - public String id() { - return this.id; - } - - /** - * {@inheritDoc} - */ - @Override - public ElasticBackupPolicyInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public ElasticBackupPolicyInner withTags(Map tags) { - super.withTags(tags); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (properties() != null) { - properties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("location", location()); - jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); - jsonWriter.writeJsonField("properties", this.properties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticBackupPolicyInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticBackupPolicyInner 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 ElasticBackupPolicyInner. - */ - public static ElasticBackupPolicyInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticBackupPolicyInner deserializedElasticBackupPolicyInner = new ElasticBackupPolicyInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedElasticBackupPolicyInner.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedElasticBackupPolicyInner.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedElasticBackupPolicyInner.type = reader.getString(); - } else if ("location".equals(fieldName)) { - deserializedElasticBackupPolicyInner.withLocation(reader.getString()); - } else if ("tags".equals(fieldName)) { - Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedElasticBackupPolicyInner.withTags(tags); - } else if ("properties".equals(fieldName)) { - deserializedElasticBackupPolicyInner.properties = ElasticBackupPolicyProperties.fromJson(reader); - } else if ("eTag".equals(fieldName)) { - deserializedElasticBackupPolicyInner.eTag = reader.getString(); - } else if ("systemData".equals(fieldName)) { - deserializedElasticBackupPolicyInner.systemData = SystemData.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticBackupPolicyInner; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticBackupVaultInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticBackupVaultInner.java deleted file mode 100644 index 578bd49e28cd4..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticBackupVaultInner.java +++ /dev/null @@ -1,214 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.Resource; -import com.azure.core.management.SystemData; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.netapp.models.ElasticBackupVaultProperties; -import java.io.IOException; -import java.util.Map; - -/** - * NetApp elastic backup vault resource. - */ -@Fluent -public final class ElasticBackupVaultInner extends Resource { - /* - * The resource-specific properties for this resource. - */ - private ElasticBackupVaultProperties properties; - - /* - * If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. - * Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity - * tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section - * 14.27) header fields. - */ - private String eTag; - - /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - */ - private SystemData systemData; - - /* - * The type of the resource. - */ - private String type; - - /* - * The name of the resource. - */ - private String name; - - /* - * Fully qualified resource Id for the resource. - */ - private String id; - - /** - * Creates an instance of ElasticBackupVaultInner class. - */ - public ElasticBackupVaultInner() { - } - - /** - * Get the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - public ElasticBackupVaultProperties properties() { - return this.properties; - } - - /** - * Set the properties property: The resource-specific properties for this resource. - * - * @param properties the properties value to set. - * @return the ElasticBackupVaultInner object itself. - */ - public ElasticBackupVaultInner withProperties(ElasticBackupVaultProperties properties) { - this.properties = properties; - return this; - } - - /** - * Get the eTag property: If eTag is provided in the response body, it may also be provided as a header per the - * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. - * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), - * and If-Range (section 14.27) header fields. - * - * @return the eTag value. - */ - public String eTag() { - return this.eTag; - } - - /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - public SystemData systemData() { - return this.systemData; - } - - /** - * Get the type property: The type of the resource. - * - * @return the type value. - */ - @Override - public String type() { - return this.type; - } - - /** - * Get the name property: The name of the resource. - * - * @return the name value. - */ - @Override - public String name() { - return this.name; - } - - /** - * Get the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - @Override - public String id() { - return this.id; - } - - /** - * {@inheritDoc} - */ - @Override - public ElasticBackupVaultInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public ElasticBackupVaultInner withTags(Map tags) { - super.withTags(tags); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (properties() != null) { - properties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("location", location()); - jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); - jsonWriter.writeJsonField("properties", this.properties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticBackupVaultInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticBackupVaultInner 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 ElasticBackupVaultInner. - */ - public static ElasticBackupVaultInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticBackupVaultInner deserializedElasticBackupVaultInner = new ElasticBackupVaultInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedElasticBackupVaultInner.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedElasticBackupVaultInner.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedElasticBackupVaultInner.type = reader.getString(); - } else if ("location".equals(fieldName)) { - deserializedElasticBackupVaultInner.withLocation(reader.getString()); - } else if ("tags".equals(fieldName)) { - Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedElasticBackupVaultInner.withTags(tags); - } else if ("properties".equals(fieldName)) { - deserializedElasticBackupVaultInner.properties = ElasticBackupVaultProperties.fromJson(reader); - } else if ("eTag".equals(fieldName)) { - deserializedElasticBackupVaultInner.eTag = reader.getString(); - } else if ("systemData".equals(fieldName)) { - deserializedElasticBackupVaultInner.systemData = SystemData.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticBackupVaultInner; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticCapacityPoolInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticCapacityPoolInner.java deleted file mode 100644 index 9440f6af3ca57..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticCapacityPoolInner.java +++ /dev/null @@ -1,244 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.Resource; -import com.azure.core.management.SystemData; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.netapp.models.ElasticCapacityPoolProperties; -import java.io.IOException; -import java.util.List; -import java.util.Map; - -/** - * NetApp Elastic Capacity Pool resource. - */ -@Fluent -public final class ElasticCapacityPoolInner extends Resource { - /* - * The resource-specific properties for this resource. - */ - private ElasticCapacityPoolProperties properties; - - /* - * If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. - * Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity - * tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section - * 14.27) header fields. - */ - private String eTag; - - /* - * The availability zones. - */ - private List zones; - - /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - */ - private SystemData systemData; - - /* - * The type of the resource. - */ - private String type; - - /* - * The name of the resource. - */ - private String name; - - /* - * Fully qualified resource Id for the resource. - */ - private String id; - - /** - * Creates an instance of ElasticCapacityPoolInner class. - */ - public ElasticCapacityPoolInner() { - } - - /** - * Get the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - public ElasticCapacityPoolProperties properties() { - return this.properties; - } - - /** - * Set the properties property: The resource-specific properties for this resource. - * - * @param properties the properties value to set. - * @return the ElasticCapacityPoolInner object itself. - */ - public ElasticCapacityPoolInner withProperties(ElasticCapacityPoolProperties properties) { - this.properties = properties; - return this; - } - - /** - * Get the eTag property: If eTag is provided in the response body, it may also be provided as a header per the - * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. - * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), - * and If-Range (section 14.27) header fields. - * - * @return the eTag value. - */ - public String eTag() { - return this.eTag; - } - - /** - * Get the zones property: The availability zones. - * - * @return the zones value. - */ - public List zones() { - return this.zones; - } - - /** - * Set the zones property: The availability zones. - * - * @param zones the zones value to set. - * @return the ElasticCapacityPoolInner object itself. - */ - public ElasticCapacityPoolInner withZones(List zones) { - this.zones = zones; - return this; - } - - /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - public SystemData systemData() { - return this.systemData; - } - - /** - * Get the type property: The type of the resource. - * - * @return the type value. - */ - @Override - public String type() { - return this.type; - } - - /** - * Get the name property: The name of the resource. - * - * @return the name value. - */ - @Override - public String name() { - return this.name; - } - - /** - * Get the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - @Override - public String id() { - return this.id; - } - - /** - * {@inheritDoc} - */ - @Override - public ElasticCapacityPoolInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public ElasticCapacityPoolInner withTags(Map tags) { - super.withTags(tags); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (properties() != null) { - properties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("location", location()); - jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); - jsonWriter.writeJsonField("properties", this.properties); - jsonWriter.writeArrayField("zones", this.zones, (writer, element) -> writer.writeString(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticCapacityPoolInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticCapacityPoolInner 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 ElasticCapacityPoolInner. - */ - public static ElasticCapacityPoolInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticCapacityPoolInner deserializedElasticCapacityPoolInner = new ElasticCapacityPoolInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedElasticCapacityPoolInner.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedElasticCapacityPoolInner.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedElasticCapacityPoolInner.type = reader.getString(); - } else if ("location".equals(fieldName)) { - deserializedElasticCapacityPoolInner.withLocation(reader.getString()); - } else if ("tags".equals(fieldName)) { - Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedElasticCapacityPoolInner.withTags(tags); - } else if ("properties".equals(fieldName)) { - deserializedElasticCapacityPoolInner.properties = ElasticCapacityPoolProperties.fromJson(reader); - } else if ("eTag".equals(fieldName)) { - deserializedElasticCapacityPoolInner.eTag = reader.getString(); - } else if ("zones".equals(fieldName)) { - List zones = reader.readArray(reader1 -> reader1.getString()); - deserializedElasticCapacityPoolInner.zones = zones; - } else if ("systemData".equals(fieldName)) { - deserializedElasticCapacityPoolInner.systemData = SystemData.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticCapacityPoolInner; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticSnapshotInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticSnapshotInner.java deleted file mode 100644 index 0e81120fbefd6..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticSnapshotInner.java +++ /dev/null @@ -1,166 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.ProxyResource; -import com.azure.core.management.SystemData; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotProperties; -import java.io.IOException; - -/** - * NetApp Elastic Snapshot under an Elastic Volume. - */ -@Fluent -public final class ElasticSnapshotInner extends ProxyResource { - /* - * The resource-specific properties for this resource. - */ - private ElasticSnapshotProperties properties; - - /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - */ - private SystemData systemData; - - /* - * The type of the resource. - */ - private String type; - - /* - * The name of the resource. - */ - private String name; - - /* - * Fully qualified resource Id for the resource. - */ - private String id; - - /** - * Creates an instance of ElasticSnapshotInner class. - */ - public ElasticSnapshotInner() { - } - - /** - * Get the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - public ElasticSnapshotProperties properties() { - return this.properties; - } - - /** - * Set the properties property: The resource-specific properties for this resource. - * - * @param properties the properties value to set. - * @return the ElasticSnapshotInner object itself. - */ - public ElasticSnapshotInner withProperties(ElasticSnapshotProperties properties) { - this.properties = properties; - return this; - } - - /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - public SystemData systemData() { - return this.systemData; - } - - /** - * Get the type property: The type of the resource. - * - * @return the type value. - */ - @Override - public String type() { - return this.type; - } - - /** - * Get the name property: The name of the resource. - * - * @return the name value. - */ - @Override - public String name() { - return this.name; - } - - /** - * Get the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - @Override - public String id() { - return this.id; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (properties() != null) { - properties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("properties", this.properties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticSnapshotInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticSnapshotInner 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 ElasticSnapshotInner. - */ - public static ElasticSnapshotInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticSnapshotInner deserializedElasticSnapshotInner = new ElasticSnapshotInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedElasticSnapshotInner.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedElasticSnapshotInner.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedElasticSnapshotInner.type = reader.getString(); - } else if ("properties".equals(fieldName)) { - deserializedElasticSnapshotInner.properties = ElasticSnapshotProperties.fromJson(reader); - } else if ("systemData".equals(fieldName)) { - deserializedElasticSnapshotInner.systemData = SystemData.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticSnapshotInner; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticSnapshotPolicyInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticSnapshotPolicyInner.java deleted file mode 100644 index 2aa9cb9185f20..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticSnapshotPolicyInner.java +++ /dev/null @@ -1,215 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.Resource; -import com.azure.core.management.SystemData; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyProperties; -import java.io.IOException; -import java.util.Map; - -/** - * NetApp Elastic Snapshot Policy under an Elastic Account. - */ -@Fluent -public final class ElasticSnapshotPolicyInner extends Resource { - /* - * The resource-specific properties for this resource. - */ - private ElasticSnapshotPolicyProperties properties; - - /* - * If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. - * Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity - * tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section - * 14.27) header fields. - */ - private String eTag; - - /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - */ - private SystemData systemData; - - /* - * The type of the resource. - */ - private String type; - - /* - * The name of the resource. - */ - private String name; - - /* - * Fully qualified resource Id for the resource. - */ - private String id; - - /** - * Creates an instance of ElasticSnapshotPolicyInner class. - */ - public ElasticSnapshotPolicyInner() { - } - - /** - * Get the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - public ElasticSnapshotPolicyProperties properties() { - return this.properties; - } - - /** - * Set the properties property: The resource-specific properties for this resource. - * - * @param properties the properties value to set. - * @return the ElasticSnapshotPolicyInner object itself. - */ - public ElasticSnapshotPolicyInner withProperties(ElasticSnapshotPolicyProperties properties) { - this.properties = properties; - return this; - } - - /** - * Get the eTag property: If eTag is provided in the response body, it may also be provided as a header per the - * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. - * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), - * and If-Range (section 14.27) header fields. - * - * @return the eTag value. - */ - public String eTag() { - return this.eTag; - } - - /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - public SystemData systemData() { - return this.systemData; - } - - /** - * Get the type property: The type of the resource. - * - * @return the type value. - */ - @Override - public String type() { - return this.type; - } - - /** - * Get the name property: The name of the resource. - * - * @return the name value. - */ - @Override - public String name() { - return this.name; - } - - /** - * Get the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - @Override - public String id() { - return this.id; - } - - /** - * {@inheritDoc} - */ - @Override - public ElasticSnapshotPolicyInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public ElasticSnapshotPolicyInner withTags(Map tags) { - super.withTags(tags); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (properties() != null) { - properties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("location", location()); - jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); - jsonWriter.writeJsonField("properties", this.properties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticSnapshotPolicyInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticSnapshotPolicyInner 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 ElasticSnapshotPolicyInner. - */ - public static ElasticSnapshotPolicyInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticSnapshotPolicyInner deserializedElasticSnapshotPolicyInner = new ElasticSnapshotPolicyInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedElasticSnapshotPolicyInner.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedElasticSnapshotPolicyInner.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedElasticSnapshotPolicyInner.type = reader.getString(); - } else if ("location".equals(fieldName)) { - deserializedElasticSnapshotPolicyInner.withLocation(reader.getString()); - } else if ("tags".equals(fieldName)) { - Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedElasticSnapshotPolicyInner.withTags(tags); - } else if ("properties".equals(fieldName)) { - deserializedElasticSnapshotPolicyInner.properties - = ElasticSnapshotPolicyProperties.fromJson(reader); - } else if ("eTag".equals(fieldName)) { - deserializedElasticSnapshotPolicyInner.eTag = reader.getString(); - } else if ("systemData".equals(fieldName)) { - deserializedElasticSnapshotPolicyInner.systemData = SystemData.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticSnapshotPolicyInner; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticVolumeInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticVolumeInner.java deleted file mode 100644 index 53b43ec7950f7..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticVolumeInner.java +++ /dev/null @@ -1,244 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.fluent.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.management.Resource; -import com.azure.core.management.SystemData; -import com.azure.json.JsonReader; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.netapp.models.ElasticVolumeProperties; -import java.io.IOException; -import java.util.List; -import java.util.Map; - -/** - * NetApp Elastic Volume resource. - */ -@Fluent -public final class ElasticVolumeInner extends Resource { - /* - * The resource-specific properties for this resource. - */ - private ElasticVolumeProperties properties; - - /* - * If eTag is provided in the response body, it may also be provided as a header per the normal etag convention. - * Entity tags are used for comparing two or more entities from the same requested resource. HTTP/1.1 uses entity - * tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), and If-Range (section - * 14.27) header fields. - */ - private String eTag; - - /* - * The availability zones. - */ - private List zones; - - /* - * Azure Resource Manager metadata containing createdBy and modifiedBy information. - */ - private SystemData systemData; - - /* - * The type of the resource. - */ - private String type; - - /* - * The name of the resource. - */ - private String name; - - /* - * Fully qualified resource Id for the resource. - */ - private String id; - - /** - * Creates an instance of ElasticVolumeInner class. - */ - public ElasticVolumeInner() { - } - - /** - * Get the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - public ElasticVolumeProperties properties() { - return this.properties; - } - - /** - * Set the properties property: The resource-specific properties for this resource. - * - * @param properties the properties value to set. - * @return the ElasticVolumeInner object itself. - */ - public ElasticVolumeInner withProperties(ElasticVolumeProperties properties) { - this.properties = properties; - return this; - } - - /** - * Get the eTag property: If eTag is provided in the response body, it may also be provided as a header per the - * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. - * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), - * and If-Range (section 14.27) header fields. - * - * @return the eTag value. - */ - public String eTag() { - return this.eTag; - } - - /** - * Get the zones property: The availability zones. - * - * @return the zones value. - */ - public List zones() { - return this.zones; - } - - /** - * Set the zones property: The availability zones. - * - * @param zones the zones value to set. - * @return the ElasticVolumeInner object itself. - */ - public ElasticVolumeInner withZones(List zones) { - this.zones = zones; - return this; - } - - /** - * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - public SystemData systemData() { - return this.systemData; - } - - /** - * Get the type property: The type of the resource. - * - * @return the type value. - */ - @Override - public String type() { - return this.type; - } - - /** - * Get the name property: The name of the resource. - * - * @return the name value. - */ - @Override - public String name() { - return this.name; - } - - /** - * Get the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - @Override - public String id() { - return this.id; - } - - /** - * {@inheritDoc} - */ - @Override - public ElasticVolumeInner withLocation(String location) { - super.withLocation(location); - return this; - } - - /** - * {@inheritDoc} - */ - @Override - public ElasticVolumeInner withTags(Map tags) { - super.withTags(tags); - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (properties() != null) { - properties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("location", location()); - jsonWriter.writeMapField("tags", tags(), (writer, element) -> writer.writeString(element)); - jsonWriter.writeJsonField("properties", this.properties); - jsonWriter.writeArrayField("zones", this.zones, (writer, element) -> writer.writeString(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticVolumeInner from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticVolumeInner 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 ElasticVolumeInner. - */ - public static ElasticVolumeInner fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticVolumeInner deserializedElasticVolumeInner = new ElasticVolumeInner(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("id".equals(fieldName)) { - deserializedElasticVolumeInner.id = reader.getString(); - } else if ("name".equals(fieldName)) { - deserializedElasticVolumeInner.name = reader.getString(); - } else if ("type".equals(fieldName)) { - deserializedElasticVolumeInner.type = reader.getString(); - } else if ("location".equals(fieldName)) { - deserializedElasticVolumeInner.withLocation(reader.getString()); - } else if ("tags".equals(fieldName)) { - Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedElasticVolumeInner.withTags(tags); - } else if ("properties".equals(fieldName)) { - deserializedElasticVolumeInner.properties = ElasticVolumeProperties.fromJson(reader); - } else if ("eTag".equals(fieldName)) { - deserializedElasticVolumeInner.eTag = reader.getString(); - } else if ("zones".equals(fieldName)) { - List zones = reader.readArray(reader1 -> reader1.getString()); - deserializedElasticVolumeInner.zones = zones; - } else if ("systemData".equals(fieldName)) { - deserializedElasticVolumeInner.systemData = SystemData.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticVolumeInner; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetAppAccountInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetAppAccountInner.java index c55ef862ec674..fa4ebd7949dc8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetAppAccountInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetAppAccountInner.java @@ -12,7 +12,6 @@ import com.azure.json.JsonWriter; import com.azure.resourcemanager.netapp.models.AccountEncryption; import com.azure.resourcemanager.netapp.models.ActiveDirectory; -import com.azure.resourcemanager.netapp.models.EntraIdConfig; import com.azure.resourcemanager.netapp.models.LdapConfiguration; import com.azure.resourcemanager.netapp.models.ManagedServiceIdentity; import com.azure.resourcemanager.netapp.models.MultiAdStatus; @@ -197,29 +196,6 @@ public NetAppAccountInner withActiveDirectories(List activeDire return this; } - /** - * Get the entraIdConfig property: Entra ID configuration for the account. - * - * @return the entraIdConfig value. - */ - public EntraIdConfig entraIdConfig() { - return this.innerProperties() == null ? null : this.innerProperties().entraIdConfig(); - } - - /** - * Set the entraIdConfig property: Entra ID configuration for the account. - * - * @param entraIdConfig the entraIdConfig value to set. - * @return the NetAppAccountInner object itself. - */ - public NetAppAccountInner withEntraIdConfig(EntraIdConfig entraIdConfig) { - if (this.innerProperties() == null) { - this.innerProperties = new AccountProperties(); - } - this.innerProperties().withEntraIdConfig(entraIdConfig); - return this; - } - /** * Get the encryption property: Encryption settings. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java index f381063299987..a7f3357ea72ae 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java @@ -18,8 +18,8 @@ @Fluent public final class PoolPatchProperties implements JsonSerializable { /* - * Provisioned size of the pool (in bytes). Allowed values are 512GiB (549755813888 bytes) or in 1TiB chunks (value - * must be multiple of 1099511627776). + * Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiple of + * 1099511627776). */ private Long size; @@ -46,8 +46,8 @@ public PoolPatchProperties() { } /** - * Get the size property: Provisioned size of the pool (in bytes). Allowed values are 512GiB (549755813888 bytes) or - * in 1TiB chunks (value must be multiple of 1099511627776). + * Get the size property: Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be + * multiple of 1099511627776). * * @return the size value. */ @@ -56,8 +56,8 @@ public Long size() { } /** - * Set the size property: Provisioned size of the pool (in bytes). Allowed values are 512GiB (549755813888 bytes) or - * in 1TiB chunks (value must be multiple of 1099511627776). + * Set the size property: Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be + * multiple of 1099511627776). * * @param size the size value to set. * @return the PoolPatchProperties object itself. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolProperties.java index f9c2741a0671d..25b7c2934f0f8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolProperties.java @@ -26,8 +26,8 @@ public final class PoolProperties implements JsonSerializable { private String poolId; /* - * Provisioned size of the pool (in bytes). Allowed values are 512GiB (549755813888 bytes) or in 1TiB chunks (value - * must be multiple of 1099511627776). + * Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be multiple of + * 1099511627776). */ private long size; @@ -89,8 +89,8 @@ public String poolId() { } /** - * Get the size property: Provisioned size of the pool (in bytes). Allowed values are 512GiB (549755813888 bytes) or - * in 1TiB chunks (value must be multiple of 1099511627776). + * Get the size property: Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be + * multiple of 1099511627776). * * @return the size value. */ @@ -99,8 +99,8 @@ public long size() { } /** - * Set the size property: Provisioned size of the pool (in bytes). Allowed values are 512GiB (549755813888 bytes) or - * in 1TiB chunks (value must be multiple of 1099511627776). + * Set the size property: Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be + * multiple of 1099511627776). * * @param size the size value to set. * @return the PoolProperties object itself. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeInner.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeInner.java index 636c849e8237b..dca3ce31427c0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeInner.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeInner.java @@ -19,8 +19,6 @@ import com.azure.resourcemanager.netapp.models.EnableSubvolumes; import com.azure.resourcemanager.netapp.models.EncryptionKeySource; import com.azure.resourcemanager.netapp.models.FileAccessLogs; -import com.azure.resourcemanager.netapp.models.LargeVolumeType; -import com.azure.resourcemanager.netapp.models.LdapServerType; import com.azure.resourcemanager.netapp.models.MountTargetProperties; import com.azure.resourcemanager.netapp.models.NetworkFeatures; import com.azure.resourcemanager.netapp.models.PlacementKeyValuePairs; @@ -28,7 +26,6 @@ import com.azure.resourcemanager.netapp.models.ServiceLevel; import com.azure.resourcemanager.netapp.models.SmbAccessBasedEnumeration; import com.azure.resourcemanager.netapp.models.SmbNonBrowsable; -import com.azure.resourcemanager.netapp.models.VolumeLanguage; import com.azure.resourcemanager.netapp.models.VolumePropertiesDataProtection; import com.azure.resourcemanager.netapp.models.VolumePropertiesExportPolicy; import com.azure.resourcemanager.netapp.models.VolumeStorageToNetworkProximity; @@ -238,11 +235,9 @@ public VolumeInner withServiceLevel(ServiceLevel serviceLevel) { /** * Get the usageThreshold property: Maximum storage quota allowed for a file system in bytes. This is a soft quota - * used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. - * For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB - * to 2400TiB. - * For extra large volumes, valid values are in the range 2400GiB to 7200TiB. Values expressed in bytes as multiples - * of 1 GiB. + * used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, + * valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values + * expressed in bytes as multiples of 1 GiB. * * @return the usageThreshold value. */ @@ -252,11 +247,9 @@ public long usageThreshold() { /** * Set the usageThreshold property: Maximum storage quota allowed for a file system in bytes. This is a soft quota - * used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. - * For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB - * to 2400TiB. - * For extra large volumes, valid values are in the range 2400GiB to 7200TiB. Values expressed in bytes as multiples - * of 1 GiB. + * used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, + * valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values + * expressed in bytes as multiples of 1 GiB. * * @param usageThreshold the usageThreshold value to set. * @return the VolumeInner object itself. @@ -874,29 +867,6 @@ public VolumeInner withLdapEnabled(Boolean ldapEnabled) { return this; } - /** - * Get the ldapServerType property: Specifies the type of LDAP server for a given NFS volume. - * - * @return the ldapServerType value. - */ - public LdapServerType ldapServerType() { - return this.innerProperties() == null ? null : this.innerProperties().ldapServerType(); - } - - /** - * Set the ldapServerType property: Specifies the type of LDAP server for a given NFS volume. - * - * @param ldapServerType the ldapServerType value to set. - * @return the VolumeInner object itself. - */ - public VolumeInner withLdapServerType(LdapServerType ldapServerType) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties().withLdapServerType(ldapServerType); - return this; - } - /** * Get the coolAccess property: Specifies whether Cool Access(tiering) is enabled for the volume. * @@ -1358,37 +1328,6 @@ public VolumeInner withIsLargeVolume(Boolean isLargeVolume) { return this; } - /** - * Get the largeVolumeType property: Specifies the type of the Large Volume. When set to 'LargeVolume', the large - * volume is created with standard configuration. - * If it is set to 'ExtraLargeVolume7Dot2PiB', the extra large volume is created with higher capacity limit 7.2PiB - * with cool access enabled, - * delivering higher capacity limit with lower costs. - * - * @return the largeVolumeType value. - */ - public LargeVolumeType largeVolumeType() { - return this.innerProperties() == null ? null : this.innerProperties().largeVolumeType(); - } - - /** - * Set the largeVolumeType property: Specifies the type of the Large Volume. When set to 'LargeVolume', the large - * volume is created with standard configuration. - * If it is set to 'ExtraLargeVolume7Dot2PiB', the extra large volume is created with higher capacity limit 7.2PiB - * with cool access enabled, - * delivering higher capacity limit with lower costs. - * - * @param largeVolumeType the largeVolumeType value to set. - * @return the VolumeInner object itself. - */ - public VolumeInner withLargeVolumeType(LargeVolumeType largeVolumeType) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties().withLargeVolumeType(largeVolumeType); - return this; - } - /** * Get the originatingResourceId property: Id of the snapshot or backup that the volume is restored from. * @@ -1407,29 +1346,6 @@ public Long inheritedSizeInBytes() { return this.innerProperties() == null ? null : this.innerProperties().inheritedSizeInBytes(); } - /** - * Get the language property: Language supported for volume. - * - * @return the language value. - */ - public VolumeLanguage language() { - return this.innerProperties() == null ? null : this.innerProperties().language(); - } - - /** - * Set the language property: Language supported for volume. - * - * @param language the language value to set. - * @return the VolumeInner object itself. - */ - public VolumeInner withLanguage(VolumeLanguage language) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties().withLanguage(language); - return this; - } - /** * Get the breakthroughMode property: Specifies whether the volume operates in Breakthrough Mode. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumePatchProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumePatchProperties.java index d2c970f6fa934..ad12e728cbfe0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumePatchProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumePatchProperties.java @@ -31,10 +31,8 @@ public final class VolumePatchProperties implements JsonSerializable tags() { - Map inner = this.innerModel().tags(); - if (inner != null) { - return Collections.unmodifiableMap(inner); - } else { - return Collections.emptyMap(); - } - } - - public ActiveDirectoryConfigProperties properties() { - return this.innerModel().properties(); - } - - public String etag() { - return this.innerModel().etag(); - } - - public ManagedServiceIdentity identity() { - return this.innerModel().identity(); - } - - public SystemData systemData() { - return this.innerModel().systemData(); - } - - public Region region() { - return Region.fromName(this.regionName()); - } - - public String regionName() { - return this.location(); - } - - public String resourceGroupName() { - return resourceGroupName; - } - - public ActiveDirectoryConfigInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { - return this.serviceManager; - } - - private String resourceGroupName; - - private String activeDirectoryConfigName; - - private ActiveDirectoryConfigUpdate updateBody; - - public ActiveDirectoryConfigImpl withExistingResourceGroup(String resourceGroupName) { - this.resourceGroupName = resourceGroupName; - return this; - } - - public ActiveDirectoryConfig create() { - this.innerObject = serviceManager.serviceClient() - .getActiveDirectoryConfigs() - .createOrUpdate(resourceGroupName, activeDirectoryConfigName, this.innerModel(), Context.NONE); - return this; - } - - public ActiveDirectoryConfig create(Context context) { - this.innerObject = serviceManager.serviceClient() - .getActiveDirectoryConfigs() - .createOrUpdate(resourceGroupName, activeDirectoryConfigName, this.innerModel(), context); - return this; - } - - ActiveDirectoryConfigImpl(String name, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerObject = new ActiveDirectoryConfigInner(); - this.serviceManager = serviceManager; - this.activeDirectoryConfigName = name; - } - - public ActiveDirectoryConfigImpl update() { - this.updateBody = new ActiveDirectoryConfigUpdate(); - return this; - } - - public ActiveDirectoryConfig apply() { - this.innerObject = serviceManager.serviceClient() - .getActiveDirectoryConfigs() - .update(resourceGroupName, activeDirectoryConfigName, updateBody, Context.NONE); - return this; - } - - public ActiveDirectoryConfig apply(Context context) { - this.innerObject = serviceManager.serviceClient() - .getActiveDirectoryConfigs() - .update(resourceGroupName, activeDirectoryConfigName, updateBody, context); - return this; - } - - ActiveDirectoryConfigImpl(ActiveDirectoryConfigInner innerObject, - com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.activeDirectoryConfigName - = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "activeDirectoryConfigs"); - } - - public ActiveDirectoryConfig refresh() { - this.innerObject = serviceManager.serviceClient() - .getActiveDirectoryConfigs() - .getByResourceGroupWithResponse(resourceGroupName, activeDirectoryConfigName, Context.NONE) - .getValue(); - return this; - } - - public ActiveDirectoryConfig refresh(Context context) { - this.innerObject = serviceManager.serviceClient() - .getActiveDirectoryConfigs() - .getByResourceGroupWithResponse(resourceGroupName, activeDirectoryConfigName, context) - .getValue(); - return this; - } - - public ActiveDirectoryConfigImpl withRegion(Region location) { - this.innerModel().withLocation(location.toString()); - return this; - } - - public ActiveDirectoryConfigImpl withRegion(String location) { - this.innerModel().withLocation(location); - return this; - } - - public ActiveDirectoryConfigImpl withTags(Map tags) { - if (isInCreateMode()) { - this.innerModel().withTags(tags); - return this; - } else { - this.updateBody.withTags(tags); - return this; - } - } - - public ActiveDirectoryConfigImpl withProperties(ActiveDirectoryConfigProperties properties) { - this.innerModel().withProperties(properties); - return this; - } - - public ActiveDirectoryConfigImpl withIdentity(ManagedServiceIdentity identity) { - if (isInCreateMode()) { - this.innerModel().withIdentity(identity); - return this; - } else { - this.updateBody.withIdentity(identity); - return this; - } - } - - public ActiveDirectoryConfigImpl withProperties(ActiveDirectoryConfigUpdateProperties properties) { - this.updateBody.withProperties(properties); - return this; - } - - private boolean isInCreateMode() { - return this.innerModel() == null || this.innerModel().id() == null; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ActiveDirectoryConfigsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ActiveDirectoryConfigsClientImpl.java deleted file mode 100644 index 0b1642b1e1788..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ActiveDirectoryConfigsClientImpl.java +++ /dev/null @@ -1,1468 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.Delete; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.Patch; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.BinaryData; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; -import com.azure.core.util.polling.PollerFlux; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.netapp.fluent.ActiveDirectoryConfigsClient; -import com.azure.resourcemanager.netapp.fluent.models.ActiveDirectoryConfigInner; -import com.azure.resourcemanager.netapp.implementation.models.ActiveDirectoryConfigListResult; -import com.azure.resourcemanager.netapp.models.ActiveDirectoryConfigUpdate; -import java.nio.ByteBuffer; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in ActiveDirectoryConfigsClient. - */ -public final class ActiveDirectoryConfigsClientImpl implements ActiveDirectoryConfigsClient { - /** - * The proxy service used to perform REST calls. - */ - private final ActiveDirectoryConfigsService service; - - /** - * The service client containing this operation class. - */ - private final NetAppManagementClientImpl client; - - /** - * Initializes an instance of ActiveDirectoryConfigsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - ActiveDirectoryConfigsClientImpl(NetAppManagementClientImpl client) { - this.service = RestProxy.create(ActiveDirectoryConfigsService.class, client.getHttpPipeline(), - client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for NetAppManagementClientActiveDirectoryConfigs to be used by the proxy - * service to perform REST calls. - */ - @Host("{endpoint}") - @ServiceInterface(name = "NetAppManagementClientActiveDirectoryConfigs") - public interface ActiveDirectoryConfigsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/activeDirectoryConfigs/{activeDirectoryConfigName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("activeDirectoryConfigName") String activeDirectoryConfigName, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/activeDirectoryConfigs/{activeDirectoryConfigName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getByResourceGroupSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("activeDirectoryConfigName") String activeDirectoryConfigName, - @HeaderParam("Accept") String accept, Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/activeDirectoryConfigs/{activeDirectoryConfigName}") - @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("activeDirectoryConfigName") String activeDirectoryConfigName, - @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") ActiveDirectoryConfigInner body, Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/activeDirectoryConfigs/{activeDirectoryConfigName}") - @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("activeDirectoryConfigName") String activeDirectoryConfigName, - @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") ActiveDirectoryConfigInner body, Context context); - - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/activeDirectoryConfigs/{activeDirectoryConfigName}") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("activeDirectoryConfigName") String activeDirectoryConfigName, - @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") ActiveDirectoryConfigUpdate body, Context context); - - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/activeDirectoryConfigs/{activeDirectoryConfigName}") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response updateSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("activeDirectoryConfigName") String activeDirectoryConfigName, - @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") ActiveDirectoryConfigUpdate body, Context context); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/activeDirectoryConfigs/{activeDirectoryConfigName}") - @ExpectedResponses({ 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("activeDirectoryConfigName") String activeDirectoryConfigName, Context context); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/activeDirectoryConfigs/{activeDirectoryConfigName}") - @ExpectedResponses({ 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, - @PathParam("activeDirectoryConfigName") String activeDirectoryConfigName, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/activeDirectoryConfigs") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/activeDirectoryConfigs") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByResourceGroupSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/activeDirectoryConfigs") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/activeDirectoryConfigs") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroupNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByResourceGroupNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listBySubscriptionNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listBySubscriptionNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, Context context); - } - - /** - * Get the details of the specified active directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @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 details of the specified active directory configuration along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String activeDirectoryConfigName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (activeDirectoryConfigName == null) { - return Mono.error( - new IllegalArgumentException("Parameter activeDirectoryConfigName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, activeDirectoryConfigName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the details of the specified active directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @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 details of the specified active directory configuration on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getByResourceGroupAsync(String resourceGroupName, - String activeDirectoryConfigName) { - return getByResourceGroupWithResponseAsync(resourceGroupName, activeDirectoryConfigName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Get the details of the specified active directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @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 details of the specified active directory configuration along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse(String resourceGroupName, - String activeDirectoryConfigName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (activeDirectoryConfigName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter activeDirectoryConfigName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getByResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, activeDirectoryConfigName, accept, context); - } - - /** - * Get the details of the specified active directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @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 details of the specified active directory configuration. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ActiveDirectoryConfigInner getByResourceGroup(String resourceGroupName, String activeDirectoryConfigName) { - return getByResourceGroupWithResponse(resourceGroupName, activeDirectoryConfigName, Context.NONE).getValue(); - } - - /** - * Create or update the specified active directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @param body Resource create parameters. - * @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 active Directory Configuration resource along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String activeDirectoryConfigName, ActiveDirectoryConfigInner body) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (activeDirectoryConfigName == null) { - return Mono.error( - new IllegalArgumentException("Parameter activeDirectoryConfigName is required and cannot be null.")); - } - if (body == null) { - return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, activeDirectoryConfigName, contentType, accept, - body, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Create or update the specified active directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @param body Resource create parameters. - * @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 active Directory Configuration resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String activeDirectoryConfigName, - ActiveDirectoryConfigInner body) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (activeDirectoryConfigName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter activeDirectoryConfigName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, activeDirectoryConfigName, contentType, accept, body, - Context.NONE); - } - - /** - * Create or update the specified active directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @param body Resource create parameters. - * @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 active Directory Configuration resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String activeDirectoryConfigName, - ActiveDirectoryConfigInner body, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (activeDirectoryConfigName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter activeDirectoryConfigName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, activeDirectoryConfigName, contentType, accept, body, - context); - } - - /** - * Create or update the specified active directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @param body Resource create parameters. - * @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 active Directory Configuration resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ActiveDirectoryConfigInner> beginCreateOrUpdateAsync( - String resourceGroupName, String activeDirectoryConfigName, ActiveDirectoryConfigInner body) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, activeDirectoryConfigName, body); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), ActiveDirectoryConfigInner.class, ActiveDirectoryConfigInner.class, - this.client.getContext()); - } - - /** - * Create or update the specified active directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @param body Resource create parameters. - * @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 active Directory Configuration resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ActiveDirectoryConfigInner> beginCreateOrUpdate( - String resourceGroupName, String activeDirectoryConfigName, ActiveDirectoryConfigInner body) { - Response response = createOrUpdateWithResponse(resourceGroupName, activeDirectoryConfigName, body); - return this.client.getLroResult(response, - ActiveDirectoryConfigInner.class, ActiveDirectoryConfigInner.class, Context.NONE); - } - - /** - * Create or update the specified active directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @param body Resource create parameters. - * @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 active Directory Configuration resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ActiveDirectoryConfigInner> beginCreateOrUpdate( - String resourceGroupName, String activeDirectoryConfigName, ActiveDirectoryConfigInner body, Context context) { - Response response - = createOrUpdateWithResponse(resourceGroupName, activeDirectoryConfigName, body, context); - return this.client.getLroResult(response, - ActiveDirectoryConfigInner.class, ActiveDirectoryConfigInner.class, context); - } - - /** - * Create or update the specified active directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @param body Resource create parameters. - * @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 active Directory Configuration resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, - String activeDirectoryConfigName, ActiveDirectoryConfigInner body) { - return beginCreateOrUpdateAsync(resourceGroupName, activeDirectoryConfigName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Create or update the specified active directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @param body Resource create parameters. - * @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 active Directory Configuration resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ActiveDirectoryConfigInner createOrUpdate(String resourceGroupName, String activeDirectoryConfigName, - ActiveDirectoryConfigInner body) { - return beginCreateOrUpdate(resourceGroupName, activeDirectoryConfigName, body).getFinalResult(); - } - - /** - * Create or update the specified active directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @param body Resource create parameters. - * @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 active Directory Configuration resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ActiveDirectoryConfigInner createOrUpdate(String resourceGroupName, String activeDirectoryConfigName, - ActiveDirectoryConfigInner body, Context context) { - return beginCreateOrUpdate(resourceGroupName, activeDirectoryConfigName, body, context).getFinalResult(); - } - - /** - * Patch the specified active directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return active Directory Configuration resource along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceGroupName, - String activeDirectoryConfigName, ActiveDirectoryConfigUpdate body) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (activeDirectoryConfigName == null) { - return Mono.error( - new IllegalArgumentException("Parameter activeDirectoryConfigName is required and cannot be null.")); - } - if (body == null) { - return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, activeDirectoryConfigName, contentType, accept, - body, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Patch the specified active directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return active Directory Configuration resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String activeDirectoryConfigName, - ActiveDirectoryConfigUpdate body) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (activeDirectoryConfigName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter activeDirectoryConfigName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, activeDirectoryConfigName, contentType, accept, body, - Context.NONE); - } - - /** - * Patch the specified active directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return active Directory Configuration resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String activeDirectoryConfigName, - ActiveDirectoryConfigUpdate body, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (activeDirectoryConfigName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter activeDirectoryConfigName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, activeDirectoryConfigName, contentType, accept, body, - context); - } - - /** - * Patch the specified active directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of active Directory Configuration resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ActiveDirectoryConfigInner> - beginUpdateAsync(String resourceGroupName, String activeDirectoryConfigName, ActiveDirectoryConfigUpdate body) { - Mono>> mono - = updateWithResponseAsync(resourceGroupName, activeDirectoryConfigName, body); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), ActiveDirectoryConfigInner.class, ActiveDirectoryConfigInner.class, - this.client.getContext()); - } - - /** - * Patch the specified active directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of active Directory Configuration resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ActiveDirectoryConfigInner> - beginUpdate(String resourceGroupName, String activeDirectoryConfigName, ActiveDirectoryConfigUpdate body) { - Response response = updateWithResponse(resourceGroupName, activeDirectoryConfigName, body); - return this.client.getLroResult(response, - ActiveDirectoryConfigInner.class, ActiveDirectoryConfigInner.class, Context.NONE); - } - - /** - * Patch the specified active directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of active Directory Configuration resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ActiveDirectoryConfigInner> beginUpdate( - String resourceGroupName, String activeDirectoryConfigName, ActiveDirectoryConfigUpdate body, Context context) { - Response response = updateWithResponse(resourceGroupName, activeDirectoryConfigName, body, context); - return this.client.getLroResult(response, - ActiveDirectoryConfigInner.class, ActiveDirectoryConfigInner.class, context); - } - - /** - * Patch the specified active directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return active Directory Configuration resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String activeDirectoryConfigName, - ActiveDirectoryConfigUpdate body) { - return beginUpdateAsync(resourceGroupName, activeDirectoryConfigName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Patch the specified active directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return active Directory Configuration resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ActiveDirectoryConfigInner update(String resourceGroupName, String activeDirectoryConfigName, - ActiveDirectoryConfigUpdate body) { - return beginUpdate(resourceGroupName, activeDirectoryConfigName, body).getFinalResult(); - } - - /** - * Patch the specified active directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return active Directory Configuration resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ActiveDirectoryConfigInner update(String resourceGroupName, String activeDirectoryConfigName, - ActiveDirectoryConfigUpdate body, Context context) { - return beginUpdate(resourceGroupName, activeDirectoryConfigName, body, context).getFinalResult(); - } - - /** - * Delete the specified Active Directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @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>> deleteWithResponseAsync(String resourceGroupName, - String activeDirectoryConfigName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (activeDirectoryConfigName == null) { - return Mono.error( - new IllegalArgumentException("Parameter activeDirectoryConfigName is required and cannot be null.")); - } - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, activeDirectoryConfigName, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Delete the specified Active Directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @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 deleteWithResponse(String resourceGroupName, String activeDirectoryConfigName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (activeDirectoryConfigName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter activeDirectoryConfigName is required and cannot be null.")); - } - return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, activeDirectoryConfigName, Context.NONE); - } - - /** - * Delete the specified Active Directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @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 deleteWithResponse(String resourceGroupName, String activeDirectoryConfigName, - Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (activeDirectoryConfigName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter activeDirectoryConfigName is required and cannot be null.")); - } - return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, activeDirectoryConfigName, context); - } - - /** - * Delete the specified Active Directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @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> beginDeleteAsync(String resourceGroupName, - String activeDirectoryConfigName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, activeDirectoryConfigName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Delete the specified Active Directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @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> beginDelete(String resourceGroupName, String activeDirectoryConfigName) { - Response response = deleteWithResponse(resourceGroupName, activeDirectoryConfigName); - return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); - } - - /** - * Delete the specified Active Directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @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> beginDelete(String resourceGroupName, String activeDirectoryConfigName, - Context context) { - Response response = deleteWithResponse(resourceGroupName, activeDirectoryConfigName, context); - return this.client.getLroResult(response, Void.class, Void.class, context); - } - - /** - * Delete the specified Active Directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @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 deleteAsync(String resourceGroupName, String activeDirectoryConfigName) { - return beginDeleteAsync(resourceGroupName, activeDirectoryConfigName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Delete the specified Active Directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @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 delete(String resourceGroupName, String activeDirectoryConfigName) { - beginDelete(resourceGroupName, activeDirectoryConfigName).getFinalResult(); - } - - /** - * Delete the specified Active Directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @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 delete(String resourceGroupName, String activeDirectoryConfigName, Context context) { - beginDelete(resourceGroupName, activeDirectoryConfigName, context).getFinalResult(); - } - - /** - * List all active directory configurations within the resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @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 of a ActiveDirectoryConfig list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByResourceGroupSinglePageAsync(String resourceGroupName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * List all active directory configurations within the resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @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 of a ActiveDirectoryConfig list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), - nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); - } - - /** - * List all active directory configurations within the resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @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 of a ActiveDirectoryConfig list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByResourceGroupSinglePage(String resourceGroupName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res = service.listByResourceGroupSync(this.client.getEndpoint(), - this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * List all active directory configurations within the resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ActiveDirectoryConfig list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByResourceGroupSinglePage(String resourceGroupName, - Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res = service.listByResourceGroupSync(this.client.getEndpoint(), - this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * List all active directory configurations within the resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @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 of a ActiveDirectoryConfig list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName) { - return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName), - nextLink -> listByResourceGroupNextSinglePage(nextLink)); - } - - /** - * List all active directory configurations within the resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ActiveDirectoryConfig list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName, context), - nextLink -> listByResourceGroupNextSinglePage(nextLink, context)); - } - - /** - * List all active directory configurations within the subscription. - * - * @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 of a ActiveDirectoryConfig list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * List all active directory configurations within the subscription. - * - * @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 of a ActiveDirectoryConfig list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), - nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); - } - - /** - * List all active directory configurations within the subscription. - * - * @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 of a ActiveDirectoryConfig list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage() { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res = service.listSync(this.client.getEndpoint(), - this.client.getApiVersion(), this.client.getSubscriptionId(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * List all active directory configurations within the subscription. - * - * @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 of a ActiveDirectoryConfig list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res = service.listSync(this.client.getEndpoint(), - this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * List all active directory configurations within the subscription. - * - * @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 of a ActiveDirectoryConfig list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(() -> listSinglePage(), nextLink -> listBySubscriptionNextSinglePage(nextLink)); - } - - /** - * List all active directory configurations within the subscription. - * - * @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 of a ActiveDirectoryConfig list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(() -> listSinglePage(context), - nextLink -> listBySubscriptionNextSinglePage(nextLink, context)); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 of a ActiveDirectoryConfig list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 of a ActiveDirectoryConfig list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByResourceGroupNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 of a ActiveDirectoryConfig list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByResourceGroupNextSinglePage(String nextLink, - Context context) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 of a ActiveDirectoryConfig list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 of a ActiveDirectoryConfig list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listBySubscriptionNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 of a ActiveDirectoryConfig list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listBySubscriptionNextSinglePage(String nextLink, - Context context) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - private static final ClientLogger LOGGER = new ClientLogger(ActiveDirectoryConfigsClientImpl.class); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ActiveDirectoryConfigsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ActiveDirectoryConfigsImpl.java deleted file mode 100644 index 57f4f5033f339..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ActiveDirectoryConfigsImpl.java +++ /dev/null @@ -1,145 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.netapp.fluent.ActiveDirectoryConfigsClient; -import com.azure.resourcemanager.netapp.fluent.models.ActiveDirectoryConfigInner; -import com.azure.resourcemanager.netapp.models.ActiveDirectoryConfig; -import com.azure.resourcemanager.netapp.models.ActiveDirectoryConfigs; - -public final class ActiveDirectoryConfigsImpl implements ActiveDirectoryConfigs { - private static final ClientLogger LOGGER = new ClientLogger(ActiveDirectoryConfigsImpl.class); - - private final ActiveDirectoryConfigsClient innerClient; - - private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - - public ActiveDirectoryConfigsImpl(ActiveDirectoryConfigsClient innerClient, - com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public Response getByResourceGroupWithResponse(String resourceGroupName, - String activeDirectoryConfigName, Context context) { - Response inner = this.serviceClient() - .getByResourceGroupWithResponse(resourceGroupName, activeDirectoryConfigName, context); - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new ActiveDirectoryConfigImpl(inner.getValue(), this.manager())); - } - - public ActiveDirectoryConfig getByResourceGroup(String resourceGroupName, String activeDirectoryConfigName) { - ActiveDirectoryConfigInner inner - = this.serviceClient().getByResourceGroup(resourceGroupName, activeDirectoryConfigName); - if (inner != null) { - return new ActiveDirectoryConfigImpl(inner, this.manager()); - } else { - return null; - } - } - - public void deleteByResourceGroup(String resourceGroupName, String activeDirectoryConfigName) { - this.serviceClient().delete(resourceGroupName, activeDirectoryConfigName); - } - - public void delete(String resourceGroupName, String activeDirectoryConfigName, Context context) { - this.serviceClient().delete(resourceGroupName, activeDirectoryConfigName, context); - } - - public PagedIterable listByResourceGroup(String resourceGroupName) { - PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ActiveDirectoryConfigImpl(inner1, this.manager())); - } - - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - PagedIterable inner - = this.serviceClient().listByResourceGroup(resourceGroupName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ActiveDirectoryConfigImpl(inner1, this.manager())); - } - - public PagedIterable list() { - PagedIterable inner = this.serviceClient().list(); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ActiveDirectoryConfigImpl(inner1, this.manager())); - } - - public PagedIterable list(Context context) { - PagedIterable inner = this.serviceClient().list(context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ActiveDirectoryConfigImpl(inner1, this.manager())); - } - - public ActiveDirectoryConfig getById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String activeDirectoryConfigName = ResourceManagerUtils.getValueFromIdByName(id, "activeDirectoryConfigs"); - if (activeDirectoryConfigName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException(String - .format("The resource ID '%s' is not valid. Missing path segment 'activeDirectoryConfigs'.", id))); - } - return this.getByResourceGroupWithResponse(resourceGroupName, activeDirectoryConfigName, Context.NONE) - .getValue(); - } - - public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String activeDirectoryConfigName = ResourceManagerUtils.getValueFromIdByName(id, "activeDirectoryConfigs"); - if (activeDirectoryConfigName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException(String - .format("The resource ID '%s' is not valid. Missing path segment 'activeDirectoryConfigs'.", id))); - } - return this.getByResourceGroupWithResponse(resourceGroupName, activeDirectoryConfigName, context); - } - - public void deleteById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String activeDirectoryConfigName = ResourceManagerUtils.getValueFromIdByName(id, "activeDirectoryConfigs"); - if (activeDirectoryConfigName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException(String - .format("The resource ID '%s' is not valid. Missing path segment 'activeDirectoryConfigs'.", id))); - } - this.delete(resourceGroupName, activeDirectoryConfigName, Context.NONE); - } - - public void deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String activeDirectoryConfigName = ResourceManagerUtils.getValueFromIdByName(id, "activeDirectoryConfigs"); - if (activeDirectoryConfigName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException(String - .format("The resource ID '%s' is not valid. Missing path segment 'activeDirectoryConfigs'.", id))); - } - this.delete(resourceGroupName, activeDirectoryConfigName, context); - } - - private ActiveDirectoryConfigsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { - return this.serviceManager; - } - - public ActiveDirectoryConfigImpl define(String name) { - return new ActiveDirectoryConfigImpl(name, this.manager()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CheckElasticResourceAvailabilityResponseImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CheckElasticResourceAvailabilityResponseImpl.java deleted file mode 100644 index 2b7bfcf990834..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/CheckElasticResourceAvailabilityResponseImpl.java +++ /dev/null @@ -1,42 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.implementation; - -import com.azure.resourcemanager.netapp.fluent.models.CheckElasticResourceAvailabilityResponseInner; -import com.azure.resourcemanager.netapp.models.CheckElasticResourceAvailabilityReason; -import com.azure.resourcemanager.netapp.models.CheckElasticResourceAvailabilityResponse; -import com.azure.resourcemanager.netapp.models.CheckElasticResourceAvailabilityStatus; - -public final class CheckElasticResourceAvailabilityResponseImpl implements CheckElasticResourceAvailabilityResponse { - private CheckElasticResourceAvailabilityResponseInner innerObject; - - private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - - CheckElasticResourceAvailabilityResponseImpl(CheckElasticResourceAvailabilityResponseInner innerObject, - com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - } - - public CheckElasticResourceAvailabilityStatus isAvailable() { - return this.innerModel().isAvailable(); - } - - public CheckElasticResourceAvailabilityReason reason() { - return this.innerModel().reason(); - } - - public String message() { - return this.innerModel().message(); - } - - public CheckElasticResourceAvailabilityResponseInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { - return this.serviceManager; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticAccountImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticAccountImpl.java deleted file mode 100644 index 11bd2660a1ff0..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticAccountImpl.java +++ /dev/null @@ -1,202 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.implementation; - -import com.azure.core.management.Region; -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.fluent.models.ElasticAccountInner; -import com.azure.resourcemanager.netapp.models.ElasticAccount; -import com.azure.resourcemanager.netapp.models.ElasticAccountProperties; -import com.azure.resourcemanager.netapp.models.ElasticAccountUpdate; -import com.azure.resourcemanager.netapp.models.ElasticAccountUpdateProperties; -import com.azure.resourcemanager.netapp.models.ManagedServiceIdentity; -import java.util.Collections; -import java.util.Map; - -public final class ElasticAccountImpl implements ElasticAccount, ElasticAccount.Definition, ElasticAccount.Update { - private ElasticAccountInner innerObject; - - private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - - public String id() { - return this.innerModel().id(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public String location() { - return this.innerModel().location(); - } - - public Map tags() { - Map inner = this.innerModel().tags(); - if (inner != null) { - return Collections.unmodifiableMap(inner); - } else { - return Collections.emptyMap(); - } - } - - public ElasticAccountProperties properties() { - return this.innerModel().properties(); - } - - public String eTag() { - return this.innerModel().eTag(); - } - - public ManagedServiceIdentity identity() { - return this.innerModel().identity(); - } - - public SystemData systemData() { - return this.innerModel().systemData(); - } - - public Region region() { - return Region.fromName(this.regionName()); - } - - public String regionName() { - return this.location(); - } - - public String resourceGroupName() { - return resourceGroupName; - } - - public ElasticAccountInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { - return this.serviceManager; - } - - private String resourceGroupName; - - private String accountName; - - private ElasticAccountUpdate updateBody; - - public ElasticAccountImpl withExistingResourceGroup(String resourceGroupName) { - this.resourceGroupName = resourceGroupName; - return this; - } - - public ElasticAccount create() { - this.innerObject = serviceManager.serviceClient() - .getElasticAccounts() - .createOrUpdate(resourceGroupName, accountName, this.innerModel(), Context.NONE); - return this; - } - - public ElasticAccount create(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticAccounts() - .createOrUpdate(resourceGroupName, accountName, this.innerModel(), context); - return this; - } - - ElasticAccountImpl(String name, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerObject = new ElasticAccountInner(); - this.serviceManager = serviceManager; - this.accountName = name; - } - - public ElasticAccountImpl update() { - this.updateBody = new ElasticAccountUpdate(); - return this; - } - - public ElasticAccount apply() { - this.innerObject = serviceManager.serviceClient() - .getElasticAccounts() - .update(resourceGroupName, accountName, updateBody, Context.NONE); - return this; - } - - public ElasticAccount apply(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticAccounts() - .update(resourceGroupName, accountName, updateBody, context); - return this; - } - - ElasticAccountImpl(ElasticAccountInner innerObject, - com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.accountName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "elasticAccounts"); - } - - public ElasticAccount refresh() { - this.innerObject = serviceManager.serviceClient() - .getElasticAccounts() - .getByResourceGroupWithResponse(resourceGroupName, accountName, Context.NONE) - .getValue(); - return this; - } - - public ElasticAccount refresh(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticAccounts() - .getByResourceGroupWithResponse(resourceGroupName, accountName, context) - .getValue(); - return this; - } - - public ElasticAccountImpl withRegion(Region location) { - this.innerModel().withLocation(location.toString()); - return this; - } - - public ElasticAccountImpl withRegion(String location) { - this.innerModel().withLocation(location); - return this; - } - - public ElasticAccountImpl withTags(Map tags) { - if (isInCreateMode()) { - this.innerModel().withTags(tags); - return this; - } else { - this.updateBody.withTags(tags); - return this; - } - } - - public ElasticAccountImpl withProperties(ElasticAccountProperties properties) { - this.innerModel().withProperties(properties); - return this; - } - - public ElasticAccountImpl withIdentity(ManagedServiceIdentity identity) { - if (isInCreateMode()) { - this.innerModel().withIdentity(identity); - return this; - } else { - this.updateBody.withIdentity(identity); - return this; - } - } - - public ElasticAccountImpl withProperties(ElasticAccountUpdateProperties properties) { - this.updateBody.withProperties(properties); - return this; - } - - private boolean isInCreateMode() { - return this.innerModel() == null || this.innerModel().id() == null; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticAccountsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticAccountsClientImpl.java deleted file mode 100644 index 1f3905cf94b35..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticAccountsClientImpl.java +++ /dev/null @@ -1,1427 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.Delete; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.Patch; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.BinaryData; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; -import com.azure.core.util.polling.PollerFlux; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.netapp.fluent.ElasticAccountsClient; -import com.azure.resourcemanager.netapp.fluent.models.ElasticAccountInner; -import com.azure.resourcemanager.netapp.implementation.models.ElasticAccountListResult; -import com.azure.resourcemanager.netapp.models.ElasticAccountUpdate; -import java.nio.ByteBuffer; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in ElasticAccountsClient. - */ -public final class ElasticAccountsClientImpl implements ElasticAccountsClient { - /** - * The proxy service used to perform REST calls. - */ - private final ElasticAccountsService service; - - /** - * The service client containing this operation class. - */ - private final NetAppManagementClientImpl client; - - /** - * Initializes an instance of ElasticAccountsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - ElasticAccountsClientImpl(NetAppManagementClientImpl client) { - this.service - = RestProxy.create(ElasticAccountsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for NetAppManagementClientElasticAccounts to be used by the proxy service - * to perform REST calls. - */ - @Host("{endpoint}") - @ServiceInterface(name = "NetAppManagementClientElasticAccounts") - public interface ElasticAccountsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> getByResourceGroup(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getByResourceGroupSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @HeaderParam("Accept") String accept, Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}") - @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") ElasticAccountInner body, Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}") - @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") ElasticAccountInner body, Context context); - - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") ElasticAccountUpdate body, Context context); - - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response updateSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") ElasticAccountUpdate body, Context context); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}") - @ExpectedResponses({ 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - Context context); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}") - @ExpectedResponses({ 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroup(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByResourceGroupSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/elasticAccounts") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> list(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/providers/Microsoft.NetApp/elasticAccounts") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByResourceGroupNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByResourceGroupNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listBySubscriptionNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listBySubscriptionNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, Context context); - } - - /** - * Get the NetApp Elastic Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 NetApp Elastic Account along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getByResourceGroupWithResponseAsync(String resourceGroupName, - String accountName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.getByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the NetApp Elastic Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 NetApp Elastic Account on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getByResourceGroupAsync(String resourceGroupName, String accountName) { - return getByResourceGroupWithResponseAsync(resourceGroupName, accountName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Get the NetApp Elastic Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 NetApp Elastic Account along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getByResourceGroupWithResponse(String resourceGroupName, String accountName, - Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getByResourceGroupSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, accept, context); - } - - /** - * Get the NetApp Elastic Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 NetApp Elastic Account. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticAccountInner getByResourceGroup(String resourceGroupName, String accountName) { - return getByResourceGroupWithResponse(resourceGroupName, accountName, Context.NONE).getValue(); - } - - /** - * Create or update the specified NetApp Elastic Account within the resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param body Resource create parameters. - * @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 netApp elastic account resource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String accountName, ElasticAccountInner body) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (body == null) { - return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, contentType, accept, body, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Create or update the specified NetApp Elastic Account within the resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param body Resource create parameters. - * @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 netApp elastic account resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, - ElasticAccountInner body) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, contentType, accept, body, Context.NONE); - } - - /** - * Create or update the specified NetApp Elastic Account within the resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param body Resource create parameters. - * @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 netApp elastic account resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, - ElasticAccountInner body, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, contentType, accept, body, context); - } - - /** - * Create or update the specified NetApp Elastic Account within the resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param body Resource create parameters. - * @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 netApp elastic account resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ElasticAccountInner> - beginCreateOrUpdateAsync(String resourceGroupName, String accountName, ElasticAccountInner body) { - Mono>> mono = createOrUpdateWithResponseAsync(resourceGroupName, accountName, body); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - ElasticAccountInner.class, ElasticAccountInner.class, this.client.getContext()); - } - - /** - * Create or update the specified NetApp Elastic Account within the resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param body Resource create parameters. - * @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 netApp elastic account resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ElasticAccountInner> - beginCreateOrUpdate(String resourceGroupName, String accountName, ElasticAccountInner body) { - Response response = createOrUpdateWithResponse(resourceGroupName, accountName, body); - return this.client.getLroResult(response, ElasticAccountInner.class, - ElasticAccountInner.class, Context.NONE); - } - - /** - * Create or update the specified NetApp Elastic Account within the resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param body Resource create parameters. - * @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 netApp elastic account resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ElasticAccountInner> - beginCreateOrUpdate(String resourceGroupName, String accountName, ElasticAccountInner body, Context context) { - Response response = createOrUpdateWithResponse(resourceGroupName, accountName, body, context); - return this.client.getLroResult(response, ElasticAccountInner.class, - ElasticAccountInner.class, context); - } - - /** - * Create or update the specified NetApp Elastic Account within the resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param body Resource create parameters. - * @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 netApp elastic account resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String accountName, - ElasticAccountInner body) { - return beginCreateOrUpdateAsync(resourceGroupName, accountName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Create or update the specified NetApp Elastic Account within the resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param body Resource create parameters. - * @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 netApp elastic account resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticAccountInner createOrUpdate(String resourceGroupName, String accountName, ElasticAccountInner body) { - return beginCreateOrUpdate(resourceGroupName, accountName, body).getFinalResult(); - } - - /** - * Create or update the specified NetApp Elastic Account within the resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param body Resource create parameters. - * @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 netApp elastic account resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticAccountInner createOrUpdate(String resourceGroupName, String accountName, ElasticAccountInner body, - Context context) { - return beginCreateOrUpdate(resourceGroupName, accountName, body, context).getFinalResult(); - } - - /** - * Patch the specified NetApp Elastic Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp elastic account resource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, - ElasticAccountUpdate body) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (body == null) { - return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, contentType, accept, body, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Patch the specified NetApp Elastic Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp elastic account resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String accountName, - ElasticAccountUpdate body) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, contentType, accept, body, Context.NONE); - } - - /** - * Patch the specified NetApp Elastic Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp elastic account resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String accountName, - ElasticAccountUpdate body, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, contentType, accept, body, context); - } - - /** - * Patch the specified NetApp Elastic Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of netApp elastic account resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ElasticAccountInner> beginUpdateAsync(String resourceGroupName, - String accountName, ElasticAccountUpdate body) { - Mono>> mono = updateWithResponseAsync(resourceGroupName, accountName, body); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - ElasticAccountInner.class, ElasticAccountInner.class, this.client.getContext()); - } - - /** - * Patch the specified NetApp Elastic Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp elastic account resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ElasticAccountInner> beginUpdate(String resourceGroupName, - String accountName, ElasticAccountUpdate body) { - Response response = updateWithResponse(resourceGroupName, accountName, body); - return this.client.getLroResult(response, ElasticAccountInner.class, - ElasticAccountInner.class, Context.NONE); - } - - /** - * Patch the specified NetApp Elastic Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp elastic account resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ElasticAccountInner> beginUpdate(String resourceGroupName, - String accountName, ElasticAccountUpdate body, Context context) { - Response response = updateWithResponse(resourceGroupName, accountName, body, context); - return this.client.getLroResult(response, ElasticAccountInner.class, - ElasticAccountInner.class, context); - } - - /** - * Patch the specified NetApp Elastic Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp elastic account resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String accountName, - ElasticAccountUpdate body) { - return beginUpdateAsync(resourceGroupName, accountName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Patch the specified NetApp Elastic Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp elastic account resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticAccountInner update(String resourceGroupName, String accountName, ElasticAccountUpdate body) { - return beginUpdate(resourceGroupName, accountName, body).getFinalResult(); - } - - /** - * Patch the specified NetApp Elastic Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp elastic account resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticAccountInner update(String resourceGroupName, String accountName, ElasticAccountUpdate body, - Context context) { - return beginUpdate(resourceGroupName, accountName, body, context).getFinalResult(); - } - - /** - * Delete the specified NetApp elastic account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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>> deleteWithResponseAsync(String resourceGroupName, String accountName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Delete the specified NetApp elastic account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 deleteWithResponse(String resourceGroupName, String accountName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, Context.NONE); - } - - /** - * Delete the specified NetApp elastic account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 deleteWithResponse(String resourceGroupName, String accountName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, context); - } - - /** - * Delete the specified NetApp elastic account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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> beginDeleteAsync(String resourceGroupName, String accountName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, accountName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Delete the specified NetApp elastic account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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> beginDelete(String resourceGroupName, String accountName) { - Response response = deleteWithResponse(resourceGroupName, accountName); - return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); - } - - /** - * Delete the specified NetApp elastic account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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> beginDelete(String resourceGroupName, String accountName, - Context context) { - Response response = deleteWithResponse(resourceGroupName, accountName, context); - return this.client.getLroResult(response, Void.class, Void.class, context); - } - - /** - * Delete the specified NetApp elastic account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 deleteAsync(String resourceGroupName, String accountName) { - return beginDeleteAsync(resourceGroupName, accountName).last().flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Delete the specified NetApp elastic account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 delete(String resourceGroupName, String accountName) { - beginDelete(resourceGroupName, accountName).getFinalResult(); - } - - /** - * Delete the specified NetApp elastic account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 delete(String resourceGroupName, String accountName, Context context) { - beginDelete(resourceGroupName, accountName, context).getFinalResult(); - } - - /** - * List and describe all NetApp elastic accounts in the resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @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 of a ElasticAccount list operation along with {@link PagedResponse} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupSinglePageAsync(String resourceGroupName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByResourceGroup(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * List and describe all NetApp elastic accounts in the resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @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 of a ElasticAccount list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByResourceGroupAsync(String resourceGroupName) { - return new PagedFlux<>(() -> listByResourceGroupSinglePageAsync(resourceGroupName), - nextLink -> listByResourceGroupNextSinglePageAsync(nextLink)); - } - - /** - * List and describe all NetApp elastic accounts in the resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @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 of a ElasticAccount list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByResourceGroupSinglePage(String resourceGroupName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res = service.listByResourceGroupSync(this.client.getEndpoint(), - this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * List and describe all NetApp elastic accounts in the resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ElasticAccount list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByResourceGroupSinglePage(String resourceGroupName, - Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res = service.listByResourceGroupSync(this.client.getEndpoint(), - this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * List and describe all NetApp elastic accounts in the resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @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 of a ElasticAccount list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName) { - return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName), - nextLink -> listByResourceGroupNextSinglePage(nextLink)); - } - - /** - * List and describe all NetApp elastic accounts in the resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ElasticAccount list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - return new PagedIterable<>(() -> listByResourceGroupSinglePage(resourceGroupName, context), - nextLink -> listByResourceGroupNextSinglePage(nextLink, context)); - } - - /** - * List and describe all NetApp elastic accounts in the subscription. - * - * @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 of a ElasticAccount list operation along with {@link PagedResponse} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listSinglePageAsync() { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.list(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * List and describe all NetApp elastic accounts in the subscription. - * - * @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 of a ElasticAccount list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listAsync() { - return new PagedFlux<>(() -> listSinglePageAsync(), - nextLink -> listBySubscriptionNextSinglePageAsync(nextLink)); - } - - /** - * List and describe all NetApp elastic accounts in the subscription. - * - * @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 of a ElasticAccount list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage() { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res = service.listSync(this.client.getEndpoint(), - this.client.getApiVersion(), this.client.getSubscriptionId(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * List and describe all NetApp elastic accounts in the subscription. - * - * @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 of a ElasticAccount list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listSinglePage(Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res = service.listSync(this.client.getEndpoint(), - this.client.getApiVersion(), this.client.getSubscriptionId(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * List and describe all NetApp elastic accounts in the subscription. - * - * @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 of a ElasticAccount list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list() { - return new PagedIterable<>(() -> listSinglePage(), nextLink -> listBySubscriptionNextSinglePage(nextLink)); - } - - /** - * List and describe all NetApp elastic accounts in the subscription. - * - * @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 of a ElasticAccount list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable list(Context context) { - return new PagedIterable<>(() -> listSinglePage(context), - nextLink -> listBySubscriptionNextSinglePage(nextLink, context)); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 of a ElasticAccount list operation along with {@link PagedResponse} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByResourceGroupNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.listByResourceGroupNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 of a ElasticAccount list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByResourceGroupNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 of a ElasticAccount list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByResourceGroupNextSinglePage(String nextLink, Context context) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByResourceGroupNextSync(nextLink, this.client.getEndpoint(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 of a ElasticAccount list operation along with {@link PagedResponse} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listBySubscriptionNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.listBySubscriptionNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 of a ElasticAccount list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listBySubscriptionNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 of a ElasticAccount list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listBySubscriptionNextSinglePage(String nextLink, Context context) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listBySubscriptionNextSync(nextLink, this.client.getEndpoint(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - private static final ClientLogger LOGGER = new ClientLogger(ElasticAccountsClientImpl.class); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticAccountsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticAccountsImpl.java deleted file mode 100644 index 2a12b6a8e0087..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticAccountsImpl.java +++ /dev/null @@ -1,142 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.netapp.fluent.ElasticAccountsClient; -import com.azure.resourcemanager.netapp.fluent.models.ElasticAccountInner; -import com.azure.resourcemanager.netapp.models.ElasticAccount; -import com.azure.resourcemanager.netapp.models.ElasticAccounts; - -public final class ElasticAccountsImpl implements ElasticAccounts { - private static final ClientLogger LOGGER = new ClientLogger(ElasticAccountsImpl.class); - - private final ElasticAccountsClient innerClient; - - private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - - public ElasticAccountsImpl(ElasticAccountsClient innerClient, - com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public Response getByResourceGroupWithResponse(String resourceGroupName, String accountName, - Context context) { - Response inner - = this.serviceClient().getByResourceGroupWithResponse(resourceGroupName, accountName, context); - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new ElasticAccountImpl(inner.getValue(), this.manager())); - } - - public ElasticAccount getByResourceGroup(String resourceGroupName, String accountName) { - ElasticAccountInner inner = this.serviceClient().getByResourceGroup(resourceGroupName, accountName); - if (inner != null) { - return new ElasticAccountImpl(inner, this.manager()); - } else { - return null; - } - } - - public void deleteByResourceGroup(String resourceGroupName, String accountName) { - this.serviceClient().delete(resourceGroupName, accountName); - } - - public void delete(String resourceGroupName, String accountName, Context context) { - this.serviceClient().delete(resourceGroupName, accountName, context); - } - - public PagedIterable listByResourceGroup(String resourceGroupName) { - PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticAccountImpl(inner1, this.manager())); - } - - public PagedIterable listByResourceGroup(String resourceGroupName, Context context) { - PagedIterable inner = this.serviceClient().listByResourceGroup(resourceGroupName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticAccountImpl(inner1, this.manager())); - } - - public PagedIterable list() { - PagedIterable inner = this.serviceClient().list(); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticAccountImpl(inner1, this.manager())); - } - - public PagedIterable list(Context context) { - PagedIterable inner = this.serviceClient().list(context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticAccountImpl(inner1, this.manager())); - } - - public ElasticAccount getById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - return this.getByResourceGroupWithResponse(resourceGroupName, accountName, Context.NONE).getValue(); - } - - public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - return this.getByResourceGroupWithResponse(resourceGroupName, accountName, context); - } - - public void deleteById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - this.delete(resourceGroupName, accountName, Context.NONE); - } - - public void deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - this.delete(resourceGroupName, accountName, context); - } - - private ElasticAccountsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { - return this.serviceManager; - } - - public ElasticAccountImpl define(String name) { - return new ElasticAccountImpl(name, this.manager()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupImpl.java deleted file mode 100644 index d5c1bbf4ab112..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupImpl.java +++ /dev/null @@ -1,135 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.implementation; - -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.fluent.models.ElasticBackupInner; -import com.azure.resourcemanager.netapp.models.ElasticBackup; -import com.azure.resourcemanager.netapp.models.ElasticBackupProperties; - -public final class ElasticBackupImpl implements ElasticBackup, ElasticBackup.Definition, ElasticBackup.Update { - private ElasticBackupInner innerObject; - - private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - - public String id() { - return this.innerModel().id(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public ElasticBackupProperties properties() { - return this.innerModel().properties(); - } - - public SystemData systemData() { - return this.innerModel().systemData(); - } - - public String resourceGroupName() { - return resourceGroupName; - } - - public ElasticBackupInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { - return this.serviceManager; - } - - private String resourceGroupName; - - private String accountName; - - private String backupVaultName; - - private String backupName; - - public ElasticBackupImpl withExistingElasticBackupVault(String resourceGroupName, String accountName, - String backupVaultName) { - this.resourceGroupName = resourceGroupName; - this.accountName = accountName; - this.backupVaultName = backupVaultName; - return this; - } - - public ElasticBackup create() { - this.innerObject = serviceManager.serviceClient() - .getElasticBackups() - .createOrUpdate(resourceGroupName, accountName, backupVaultName, backupName, this.innerModel(), - Context.NONE); - return this; - } - - public ElasticBackup create(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticBackups() - .createOrUpdate(resourceGroupName, accountName, backupVaultName, backupName, this.innerModel(), context); - return this; - } - - ElasticBackupImpl(String name, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerObject = new ElasticBackupInner(); - this.serviceManager = serviceManager; - this.backupName = name; - } - - public ElasticBackupImpl update() { - return this; - } - - public ElasticBackup apply() { - this.innerObject = serviceManager.serviceClient() - .getElasticBackups() - .update(resourceGroupName, accountName, backupVaultName, backupName, this.innerModel(), Context.NONE); - return this; - } - - public ElasticBackup apply(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticBackups() - .update(resourceGroupName, accountName, backupVaultName, backupName, this.innerModel(), context); - return this; - } - - ElasticBackupImpl(ElasticBackupInner innerObject, - com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.accountName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "elasticAccounts"); - this.backupVaultName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "elasticBackupVaults"); - this.backupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "elasticBackups"); - } - - public ElasticBackup refresh() { - this.innerObject = serviceManager.serviceClient() - .getElasticBackups() - .getWithResponse(resourceGroupName, accountName, backupVaultName, backupName, Context.NONE) - .getValue(); - return this; - } - - public ElasticBackup refresh(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticBackups() - .getWithResponse(resourceGroupName, accountName, backupVaultName, backupName, context) - .getValue(); - return this; - } - - public ElasticBackupImpl withProperties(ElasticBackupProperties properties) { - this.innerModel().withProperties(properties); - return this; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupPoliciesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupPoliciesClientImpl.java deleted file mode 100644 index 9570804a8999a..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupPoliciesClientImpl.java +++ /dev/null @@ -1,1323 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.Delete; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.Patch; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.BinaryData; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; -import com.azure.core.util.polling.PollerFlux; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.netapp.fluent.ElasticBackupPoliciesClient; -import com.azure.resourcemanager.netapp.fluent.models.ElasticBackupPolicyInner; -import com.azure.resourcemanager.netapp.implementation.models.ElasticBackupPolicyListResult; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyUpdate; -import java.nio.ByteBuffer; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in ElasticBackupPoliciesClient. - */ -public final class ElasticBackupPoliciesClientImpl implements ElasticBackupPoliciesClient { - /** - * The proxy service used to perform REST calls. - */ - private final ElasticBackupPoliciesService service; - - /** - * The service client containing this operation class. - */ - private final NetAppManagementClientImpl client; - - /** - * Initializes an instance of ElasticBackupPoliciesClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - ElasticBackupPoliciesClientImpl(NetAppManagementClientImpl client) { - this.service = RestProxy.create(ElasticBackupPoliciesService.class, client.getHttpPipeline(), - client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for NetAppManagementClientElasticBackupPolicies to be used by the proxy - * service to perform REST calls. - */ - @Host("{endpoint}") - @ServiceInterface(name = "NetAppManagementClientElasticBackupPolicies") - public interface ElasticBackupPoliciesService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupPolicies/{backupPolicyName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupPolicyName") String backupPolicyName, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupPolicies/{backupPolicyName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupPolicyName") String backupPolicyName, @HeaderParam("Accept") String accept, - Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupPolicies/{backupPolicyName}") - @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupPolicyName") String backupPolicyName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ElasticBackupPolicyInner body, - Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupPolicies/{backupPolicyName}") - @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupPolicyName") String backupPolicyName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ElasticBackupPolicyInner body, - Context context); - - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupPolicies/{backupPolicyName}") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupPolicyName") String backupPolicyName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ElasticBackupPolicyUpdate body, - Context context); - - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupPolicies/{backupPolicyName}") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response updateSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupPolicyName") String backupPolicyName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ElasticBackupPolicyUpdate body, - Context context); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupPolicies/{backupPolicyName}") - @ExpectedResponses({ 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupPolicyName") String backupPolicyName, Context context); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupPolicies/{backupPolicyName}") - @ExpectedResponses({ 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupPolicyName") String backupPolicyName, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupPolicies") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByElasticAccount(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupPolicies") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByElasticAccountSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByElasticAccountNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByElasticAccountNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, Context context); - } - - /** - * Get the Elastic Backup Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @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 Elastic Backup Policy along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String accountName, - String backupPolicyName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupPolicyName == null) { - return Mono - .error(new IllegalArgumentException("Parameter backupPolicyName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupPolicyName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the Elastic Backup Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @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 Elastic Backup Policy on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String accountName, - String backupPolicyName) { - return getWithResponseAsync(resourceGroupName, accountName, backupPolicyName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Get the Elastic Backup Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @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 Elastic Backup Policy along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String accountName, - String backupPolicyName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupPolicyName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupPolicyName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, accountName, backupPolicyName, accept, context); - } - - /** - * Get the Elastic Backup Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @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 Elastic Backup Policy. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticBackupPolicyInner get(String resourceGroupName, String accountName, String backupPolicyName) { - return getWithResponse(resourceGroupName, accountName, backupPolicyName, Context.NONE).getValue(); - } - - /** - * Create or update the specified Elastic Backup Policy in the NetApp account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @param body Resource create parameters. - * @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 netApp Elastic Backup Policy resource along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String accountName, String backupPolicyName, ElasticBackupPolicyInner body) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupPolicyName == null) { - return Mono - .error(new IllegalArgumentException("Parameter backupPolicyName is required and cannot be null.")); - } - if (body == null) { - return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupPolicyName, contentType, accept, - body, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Create or update the specified Elastic Backup Policy in the NetApp account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @param body Resource create parameters. - * @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 netApp Elastic Backup Policy resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, - String backupPolicyName, ElasticBackupPolicyInner body) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupPolicyName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupPolicyName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupPolicyName, contentType, accept, - body, Context.NONE); - } - - /** - * Create or update the specified Elastic Backup Policy in the NetApp account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @param body Resource create parameters. - * @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 netApp Elastic Backup Policy resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, - String backupPolicyName, ElasticBackupPolicyInner body, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupPolicyName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupPolicyName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupPolicyName, contentType, accept, - body, context); - } - - /** - * Create or update the specified Elastic Backup Policy in the NetApp account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @param body Resource create parameters. - * @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 netApp Elastic Backup Policy resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ElasticBackupPolicyInner> beginCreateOrUpdateAsync( - String resourceGroupName, String accountName, String backupPolicyName, ElasticBackupPolicyInner body) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, accountName, backupPolicyName, body); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), ElasticBackupPolicyInner.class, ElasticBackupPolicyInner.class, - this.client.getContext()); - } - - /** - * Create or update the specified Elastic Backup Policy in the NetApp account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @param body Resource create parameters. - * @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 netApp Elastic Backup Policy resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ElasticBackupPolicyInner> beginCreateOrUpdate( - String resourceGroupName, String accountName, String backupPolicyName, ElasticBackupPolicyInner body) { - Response response - = createOrUpdateWithResponse(resourceGroupName, accountName, backupPolicyName, body); - return this.client.getLroResult(response, - ElasticBackupPolicyInner.class, ElasticBackupPolicyInner.class, Context.NONE); - } - - /** - * Create or update the specified Elastic Backup Policy in the NetApp account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @param body Resource create parameters. - * @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 netApp Elastic Backup Policy resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ElasticBackupPolicyInner> beginCreateOrUpdate( - String resourceGroupName, String accountName, String backupPolicyName, ElasticBackupPolicyInner body, - Context context) { - Response response - = createOrUpdateWithResponse(resourceGroupName, accountName, backupPolicyName, body, context); - return this.client.getLroResult(response, - ElasticBackupPolicyInner.class, ElasticBackupPolicyInner.class, context); - } - - /** - * Create or update the specified Elastic Backup Policy in the NetApp account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @param body Resource create parameters. - * @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 netApp Elastic Backup Policy resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String accountName, - String backupPolicyName, ElasticBackupPolicyInner body) { - return beginCreateOrUpdateAsync(resourceGroupName, accountName, backupPolicyName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Create or update the specified Elastic Backup Policy in the NetApp account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @param body Resource create parameters. - * @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 netApp Elastic Backup Policy resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticBackupPolicyInner createOrUpdate(String resourceGroupName, String accountName, - String backupPolicyName, ElasticBackupPolicyInner body) { - return beginCreateOrUpdate(resourceGroupName, accountName, backupPolicyName, body).getFinalResult(); - } - - /** - * Create or update the specified Elastic Backup Policy in the NetApp account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @param body Resource create parameters. - * @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 netApp Elastic Backup Policy resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticBackupPolicyInner createOrUpdate(String resourceGroupName, String accountName, - String backupPolicyName, ElasticBackupPolicyInner body, Context context) { - return beginCreateOrUpdate(resourceGroupName, accountName, backupPolicyName, body, context).getFinalResult(); - } - - /** - * Patch the specified NetApp Elastic Backup Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Backup Policy resource along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, - String backupPolicyName, ElasticBackupPolicyUpdate body) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupPolicyName == null) { - return Mono - .error(new IllegalArgumentException("Parameter backupPolicyName is required and cannot be null.")); - } - if (body == null) { - return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupPolicyName, contentType, accept, - body, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Patch the specified NetApp Elastic Backup Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Backup Policy resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String accountName, - String backupPolicyName, ElasticBackupPolicyUpdate body) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupPolicyName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupPolicyName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupPolicyName, contentType, accept, - body, Context.NONE); - } - - /** - * Patch the specified NetApp Elastic Backup Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Backup Policy resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String accountName, - String backupPolicyName, ElasticBackupPolicyUpdate body, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupPolicyName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupPolicyName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupPolicyName, contentType, accept, - body, context); - } - - /** - * Patch the specified NetApp Elastic Backup Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of netApp Elastic Backup Policy resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ElasticBackupPolicyInner> beginUpdateAsync( - String resourceGroupName, String accountName, String backupPolicyName, ElasticBackupPolicyUpdate body) { - Mono>> mono - = updateWithResponseAsync(resourceGroupName, accountName, backupPolicyName, body); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), ElasticBackupPolicyInner.class, ElasticBackupPolicyInner.class, - this.client.getContext()); - } - - /** - * Patch the specified NetApp Elastic Backup Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp Elastic Backup Policy resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ElasticBackupPolicyInner> beginUpdate( - String resourceGroupName, String accountName, String backupPolicyName, ElasticBackupPolicyUpdate body) { - Response response = updateWithResponse(resourceGroupName, accountName, backupPolicyName, body); - return this.client.getLroResult(response, - ElasticBackupPolicyInner.class, ElasticBackupPolicyInner.class, Context.NONE); - } - - /** - * Patch the specified NetApp Elastic Backup Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp Elastic Backup Policy resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ElasticBackupPolicyInner> beginUpdate( - String resourceGroupName, String accountName, String backupPolicyName, ElasticBackupPolicyUpdate body, - Context context) { - Response response - = updateWithResponse(resourceGroupName, accountName, backupPolicyName, body, context); - return this.client.getLroResult(response, - ElasticBackupPolicyInner.class, ElasticBackupPolicyInner.class, context); - } - - /** - * Patch the specified NetApp Elastic Backup Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Backup Policy resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String accountName, - String backupPolicyName, ElasticBackupPolicyUpdate body) { - return beginUpdateAsync(resourceGroupName, accountName, backupPolicyName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Patch the specified NetApp Elastic Backup Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Backup Policy resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticBackupPolicyInner update(String resourceGroupName, String accountName, String backupPolicyName, - ElasticBackupPolicyUpdate body) { - return beginUpdate(resourceGroupName, accountName, backupPolicyName, body).getFinalResult(); - } - - /** - * Patch the specified NetApp Elastic Backup Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Backup Policy resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticBackupPolicyInner update(String resourceGroupName, String accountName, String backupPolicyName, - ElasticBackupPolicyUpdate body, Context context) { - return beginUpdate(resourceGroupName, accountName, backupPolicyName, body, context).getFinalResult(); - } - - /** - * Delete the specified Elastic Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @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>> deleteWithResponseAsync(String resourceGroupName, String accountName, - String backupPolicyName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupPolicyName == null) { - return Mono - .error(new IllegalArgumentException("Parameter backupPolicyName is required and cannot be null.")); - } - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupPolicyName, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Delete the specified Elastic Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @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 deleteWithResponse(String resourceGroupName, String accountName, - String backupPolicyName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupPolicyName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupPolicyName is required and cannot be null.")); - } - return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupPolicyName, Context.NONE); - } - - /** - * Delete the specified Elastic Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @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 deleteWithResponse(String resourceGroupName, String accountName, - String backupPolicyName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupPolicyName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupPolicyName is required and cannot be null.")); - } - return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupPolicyName, context); - } - - /** - * Delete the specified Elastic Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @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> beginDeleteAsync(String resourceGroupName, String accountName, - String backupPolicyName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, accountName, backupPolicyName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Delete the specified Elastic Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @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> beginDelete(String resourceGroupName, String accountName, - String backupPolicyName) { - Response response = deleteWithResponse(resourceGroupName, accountName, backupPolicyName); - return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); - } - - /** - * Delete the specified Elastic Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @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> beginDelete(String resourceGroupName, String accountName, - String backupPolicyName, Context context) { - Response response = deleteWithResponse(resourceGroupName, accountName, backupPolicyName, context); - return this.client.getLroResult(response, Void.class, Void.class, context); - } - - /** - * Delete the specified Elastic Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @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 deleteAsync(String resourceGroupName, String accountName, String backupPolicyName) { - return beginDeleteAsync(resourceGroupName, accountName, backupPolicyName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Delete the specified Elastic Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @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 delete(String resourceGroupName, String accountName, String backupPolicyName) { - beginDelete(resourceGroupName, accountName, backupPolicyName).getFinalResult(); - } - - /** - * Delete the specified Elastic Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @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 delete(String resourceGroupName, String accountName, String backupPolicyName, Context context) { - beginDelete(resourceGroupName, accountName, backupPolicyName, context).getFinalResult(); - } - - /** - * List and describe all Elastic Backup Policies in the elastic account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 of a ElasticBackupPolicy list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByElasticAccountSinglePageAsync(String resourceGroupName, - String accountName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByElasticAccount(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * List and describe all Elastic Backup Policies in the elastic account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 of a ElasticBackupPolicy list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByElasticAccountAsync(String resourceGroupName, - String accountName) { - return new PagedFlux<>(() -> listByElasticAccountSinglePageAsync(resourceGroupName, accountName), - nextLink -> listByElasticAccountNextSinglePageAsync(nextLink)); - } - - /** - * List and describe all Elastic Backup Policies in the elastic account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 of a ElasticBackupPolicy list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticAccountSinglePage(String resourceGroupName, - String accountName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByElasticAccountSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * List and describe all Elastic Backup Policies in the elastic account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 of a ElasticBackupPolicy list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticAccountSinglePage(String resourceGroupName, - String accountName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByElasticAccountSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * List and describe all Elastic Backup Policies in the elastic account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 of a ElasticBackupPolicy list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByElasticAccount(String resourceGroupName, String accountName) { - return new PagedIterable<>(() -> listByElasticAccountSinglePage(resourceGroupName, accountName), - nextLink -> listByElasticAccountNextSinglePage(nextLink)); - } - - /** - * List and describe all Elastic Backup Policies in the elastic account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 of a ElasticBackupPolicy list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByElasticAccount(String resourceGroupName, String accountName, - Context context) { - return new PagedIterable<>(() -> listByElasticAccountSinglePage(resourceGroupName, accountName, context), - nextLink -> listByElasticAccountNextSinglePage(nextLink, context)); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 of a ElasticBackupPolicy list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByElasticAccountNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.listByElasticAccountNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 of a ElasticBackupPolicy list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticAccountNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByElasticAccountNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 of a ElasticBackupPolicy list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticAccountNextSinglePage(String nextLink, - Context context) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByElasticAccountNextSync(nextLink, this.client.getEndpoint(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - private static final ClientLogger LOGGER = new ClientLogger(ElasticBackupPoliciesClientImpl.class); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupPoliciesImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupPoliciesImpl.java deleted file mode 100644 index 4899e3583e0e1..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupPoliciesImpl.java +++ /dev/null @@ -1,155 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.netapp.fluent.ElasticBackupPoliciesClient; -import com.azure.resourcemanager.netapp.fluent.models.ElasticBackupPolicyInner; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicies; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicy; - -public final class ElasticBackupPoliciesImpl implements ElasticBackupPolicies { - private static final ClientLogger LOGGER = new ClientLogger(ElasticBackupPoliciesImpl.class); - - private final ElasticBackupPoliciesClient innerClient; - - private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - - public ElasticBackupPoliciesImpl(ElasticBackupPoliciesClient innerClient, - com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public Response getWithResponse(String resourceGroupName, String accountName, - String backupPolicyName, Context context) { - Response inner - = this.serviceClient().getWithResponse(resourceGroupName, accountName, backupPolicyName, context); - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new ElasticBackupPolicyImpl(inner.getValue(), this.manager())); - } - - public ElasticBackupPolicy get(String resourceGroupName, String accountName, String backupPolicyName) { - ElasticBackupPolicyInner inner = this.serviceClient().get(resourceGroupName, accountName, backupPolicyName); - if (inner != null) { - return new ElasticBackupPolicyImpl(inner, this.manager()); - } else { - return null; - } - } - - public void delete(String resourceGroupName, String accountName, String backupPolicyName) { - this.serviceClient().delete(resourceGroupName, accountName, backupPolicyName); - } - - public void delete(String resourceGroupName, String accountName, String backupPolicyName, Context context) { - this.serviceClient().delete(resourceGroupName, accountName, backupPolicyName, context); - } - - public PagedIterable listByElasticAccount(String resourceGroupName, String accountName) { - PagedIterable inner - = this.serviceClient().listByElasticAccount(resourceGroupName, accountName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticBackupPolicyImpl(inner1, this.manager())); - } - - public PagedIterable listByElasticAccount(String resourceGroupName, String accountName, - Context context) { - PagedIterable inner - = this.serviceClient().listByElasticAccount(resourceGroupName, accountName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticBackupPolicyImpl(inner1, this.manager())); - } - - public ElasticBackupPolicy getById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String backupPolicyName = ResourceManagerUtils.getValueFromIdByName(id, "elasticBackupPolicies"); - if (backupPolicyName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticBackupPolicies'.", id))); - } - return this.getWithResponse(resourceGroupName, accountName, backupPolicyName, Context.NONE).getValue(); - } - - public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String backupPolicyName = ResourceManagerUtils.getValueFromIdByName(id, "elasticBackupPolicies"); - if (backupPolicyName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticBackupPolicies'.", id))); - } - return this.getWithResponse(resourceGroupName, accountName, backupPolicyName, context); - } - - public void deleteById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String backupPolicyName = ResourceManagerUtils.getValueFromIdByName(id, "elasticBackupPolicies"); - if (backupPolicyName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticBackupPolicies'.", id))); - } - this.delete(resourceGroupName, accountName, backupPolicyName, Context.NONE); - } - - public void deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String backupPolicyName = ResourceManagerUtils.getValueFromIdByName(id, "elasticBackupPolicies"); - if (backupPolicyName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticBackupPolicies'.", id))); - } - this.delete(resourceGroupName, accountName, backupPolicyName, context); - } - - private ElasticBackupPoliciesClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { - return this.serviceManager; - } - - public ElasticBackupPolicyImpl define(String name) { - return new ElasticBackupPolicyImpl(name, this.manager()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupPolicyImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupPolicyImpl.java deleted file mode 100644 index b5f1b87e2aded..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupPolicyImpl.java +++ /dev/null @@ -1,192 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.implementation; - -import com.azure.core.management.Region; -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.fluent.models.ElasticBackupPolicyInner; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicy; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyProperties; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyUpdate; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyUpdateProperties; -import java.util.Collections; -import java.util.Map; - -public final class ElasticBackupPolicyImpl - implements ElasticBackupPolicy, ElasticBackupPolicy.Definition, ElasticBackupPolicy.Update { - private ElasticBackupPolicyInner innerObject; - - private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - - public String id() { - return this.innerModel().id(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public String location() { - return this.innerModel().location(); - } - - public Map tags() { - Map inner = this.innerModel().tags(); - if (inner != null) { - return Collections.unmodifiableMap(inner); - } else { - return Collections.emptyMap(); - } - } - - public ElasticBackupPolicyProperties properties() { - return this.innerModel().properties(); - } - - public String eTag() { - return this.innerModel().eTag(); - } - - public SystemData systemData() { - return this.innerModel().systemData(); - } - - public Region region() { - return Region.fromName(this.regionName()); - } - - public String regionName() { - return this.location(); - } - - public String resourceGroupName() { - return resourceGroupName; - } - - public ElasticBackupPolicyInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { - return this.serviceManager; - } - - private String resourceGroupName; - - private String accountName; - - private String backupPolicyName; - - private ElasticBackupPolicyUpdate updateBody; - - public ElasticBackupPolicyImpl withExistingElasticAccount(String resourceGroupName, String accountName) { - this.resourceGroupName = resourceGroupName; - this.accountName = accountName; - return this; - } - - public ElasticBackupPolicy create() { - this.innerObject = serviceManager.serviceClient() - .getElasticBackupPolicies() - .createOrUpdate(resourceGroupName, accountName, backupPolicyName, this.innerModel(), Context.NONE); - return this; - } - - public ElasticBackupPolicy create(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticBackupPolicies() - .createOrUpdate(resourceGroupName, accountName, backupPolicyName, this.innerModel(), context); - return this; - } - - ElasticBackupPolicyImpl(String name, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerObject = new ElasticBackupPolicyInner(); - this.serviceManager = serviceManager; - this.backupPolicyName = name; - } - - public ElasticBackupPolicyImpl update() { - this.updateBody = new ElasticBackupPolicyUpdate(); - return this; - } - - public ElasticBackupPolicy apply() { - this.innerObject = serviceManager.serviceClient() - .getElasticBackupPolicies() - .update(resourceGroupName, accountName, backupPolicyName, updateBody, Context.NONE); - return this; - } - - public ElasticBackupPolicy apply(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticBackupPolicies() - .update(resourceGroupName, accountName, backupPolicyName, updateBody, context); - return this; - } - - ElasticBackupPolicyImpl(ElasticBackupPolicyInner innerObject, - com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.accountName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "elasticAccounts"); - this.backupPolicyName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "elasticBackupPolicies"); - } - - public ElasticBackupPolicy refresh() { - this.innerObject = serviceManager.serviceClient() - .getElasticBackupPolicies() - .getWithResponse(resourceGroupName, accountName, backupPolicyName, Context.NONE) - .getValue(); - return this; - } - - public ElasticBackupPolicy refresh(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticBackupPolicies() - .getWithResponse(resourceGroupName, accountName, backupPolicyName, context) - .getValue(); - return this; - } - - public ElasticBackupPolicyImpl withRegion(Region location) { - this.innerModel().withLocation(location.toString()); - return this; - } - - public ElasticBackupPolicyImpl withRegion(String location) { - this.innerModel().withLocation(location); - return this; - } - - public ElasticBackupPolicyImpl withTags(Map tags) { - if (isInCreateMode()) { - this.innerModel().withTags(tags); - return this; - } else { - this.updateBody.withTags(tags); - return this; - } - } - - public ElasticBackupPolicyImpl withProperties(ElasticBackupPolicyProperties properties) { - this.innerModel().withProperties(properties); - return this; - } - - public ElasticBackupPolicyImpl withProperties(ElasticBackupPolicyUpdateProperties properties) { - this.updateBody.withProperties(properties); - return this; - } - - private boolean isInCreateMode() { - return this.innerModel() == null || this.innerModel().id() == null; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupVaultImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupVaultImpl.java deleted file mode 100644 index 13bcd05c95f67..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupVaultImpl.java +++ /dev/null @@ -1,186 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.implementation; - -import com.azure.core.management.Region; -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.fluent.models.ElasticBackupVaultInner; -import com.azure.resourcemanager.netapp.models.ElasticBackupVault; -import com.azure.resourcemanager.netapp.models.ElasticBackupVaultProperties; -import com.azure.resourcemanager.netapp.models.ElasticBackupVaultUpdate; -import java.util.Collections; -import java.util.Map; - -public final class ElasticBackupVaultImpl - implements ElasticBackupVault, ElasticBackupVault.Definition, ElasticBackupVault.Update { - private ElasticBackupVaultInner innerObject; - - private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - - public String id() { - return this.innerModel().id(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public String location() { - return this.innerModel().location(); - } - - public Map tags() { - Map inner = this.innerModel().tags(); - if (inner != null) { - return Collections.unmodifiableMap(inner); - } else { - return Collections.emptyMap(); - } - } - - public ElasticBackupVaultProperties properties() { - return this.innerModel().properties(); - } - - public String eTag() { - return this.innerModel().eTag(); - } - - public SystemData systemData() { - return this.innerModel().systemData(); - } - - public Region region() { - return Region.fromName(this.regionName()); - } - - public String regionName() { - return this.location(); - } - - public String resourceGroupName() { - return resourceGroupName; - } - - public ElasticBackupVaultInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { - return this.serviceManager; - } - - private String resourceGroupName; - - private String accountName; - - private String backupVaultName; - - private ElasticBackupVaultUpdate updateBody; - - public ElasticBackupVaultImpl withExistingElasticAccount(String resourceGroupName, String accountName) { - this.resourceGroupName = resourceGroupName; - this.accountName = accountName; - return this; - } - - public ElasticBackupVault create() { - this.innerObject = serviceManager.serviceClient() - .getElasticBackupVaults() - .createOrUpdate(resourceGroupName, accountName, backupVaultName, this.innerModel(), Context.NONE); - return this; - } - - public ElasticBackupVault create(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticBackupVaults() - .createOrUpdate(resourceGroupName, accountName, backupVaultName, this.innerModel(), context); - return this; - } - - ElasticBackupVaultImpl(String name, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerObject = new ElasticBackupVaultInner(); - this.serviceManager = serviceManager; - this.backupVaultName = name; - } - - public ElasticBackupVaultImpl update() { - this.updateBody = new ElasticBackupVaultUpdate(); - return this; - } - - public ElasticBackupVault apply() { - this.innerObject = serviceManager.serviceClient() - .getElasticBackupVaults() - .update(resourceGroupName, accountName, backupVaultName, updateBody, Context.NONE); - return this; - } - - public ElasticBackupVault apply(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticBackupVaults() - .update(resourceGroupName, accountName, backupVaultName, updateBody, context); - return this; - } - - ElasticBackupVaultImpl(ElasticBackupVaultInner innerObject, - com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.accountName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "elasticAccounts"); - this.backupVaultName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "elasticBackupVaults"); - } - - public ElasticBackupVault refresh() { - this.innerObject = serviceManager.serviceClient() - .getElasticBackupVaults() - .getWithResponse(resourceGroupName, accountName, backupVaultName, Context.NONE) - .getValue(); - return this; - } - - public ElasticBackupVault refresh(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticBackupVaults() - .getWithResponse(resourceGroupName, accountName, backupVaultName, context) - .getValue(); - return this; - } - - public ElasticBackupVaultImpl withRegion(Region location) { - this.innerModel().withLocation(location.toString()); - return this; - } - - public ElasticBackupVaultImpl withRegion(String location) { - this.innerModel().withLocation(location); - return this; - } - - public ElasticBackupVaultImpl withTags(Map tags) { - if (isInCreateMode()) { - this.innerModel().withTags(tags); - return this; - } else { - this.updateBody.withTags(tags); - return this; - } - } - - public ElasticBackupVaultImpl withProperties(ElasticBackupVaultProperties properties) { - this.innerModel().withProperties(properties); - return this; - } - - private boolean isInCreateMode() { - return this.innerModel() == null || this.innerModel().id() == null; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupVaultsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupVaultsClientImpl.java deleted file mode 100644 index 40825ed76062c..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupVaultsClientImpl.java +++ /dev/null @@ -1,1322 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.Delete; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.Patch; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.BinaryData; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; -import com.azure.core.util.polling.PollerFlux; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.netapp.fluent.ElasticBackupVaultsClient; -import com.azure.resourcemanager.netapp.fluent.models.ElasticBackupVaultInner; -import com.azure.resourcemanager.netapp.implementation.models.ElasticBackupVaultListResult; -import com.azure.resourcemanager.netapp.models.ElasticBackupVaultUpdate; -import java.nio.ByteBuffer; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in ElasticBackupVaultsClient. - */ -public final class ElasticBackupVaultsClientImpl implements ElasticBackupVaultsClient { - /** - * The proxy service used to perform REST calls. - */ - private final ElasticBackupVaultsService service; - - /** - * The service client containing this operation class. - */ - private final NetAppManagementClientImpl client; - - /** - * Initializes an instance of ElasticBackupVaultsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - ElasticBackupVaultsClientImpl(NetAppManagementClientImpl client) { - this.service = RestProxy.create(ElasticBackupVaultsService.class, client.getHttpPipeline(), - client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for NetAppManagementClientElasticBackupVaults to be used by the proxy - * service to perform REST calls. - */ - @Host("{endpoint}") - @ServiceInterface(name = "NetAppManagementClientElasticBackupVaults") - public interface ElasticBackupVaultsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults/{backupVaultName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults/{backupVaultName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @HeaderParam("Accept") String accept, - Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults/{backupVaultName}") - @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ElasticBackupVaultInner body, - Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults/{backupVaultName}") - @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ElasticBackupVaultInner body, - Context context); - - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults/{backupVaultName}") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ElasticBackupVaultUpdate body, - Context context); - - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults/{backupVaultName}") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response updateSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ElasticBackupVaultUpdate body, - Context context); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults/{backupVaultName}") - @ExpectedResponses({ 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, Context context); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults/{backupVaultName}") - @ExpectedResponses({ 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByElasticAccount(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByElasticAccountSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByElasticAccountNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByElasticAccountNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, Context context); - } - - /** - * Get the Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @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 Elastic Backup Vault along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String accountName, - String backupVaultName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - return Mono - .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @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 Elastic Backup Vault on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String accountName, - String backupVaultName) { - return getWithResponseAsync(resourceGroupName, accountName, backupVaultName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Get the Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @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 Elastic Backup Vault along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String accountName, - String backupVaultName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, accountName, backupVaultName, accept, context); - } - - /** - * Get the Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @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 Elastic Backup Vault. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticBackupVaultInner get(String resourceGroupName, String accountName, String backupVaultName) { - return getWithResponse(resourceGroupName, accountName, backupVaultName, Context.NONE).getValue(); - } - - /** - * Create or update the specified Elastic Backup Vault in the Elastic NetApp account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param body Resource create parameters. - * @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 netApp elastic backup vault resource along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String accountName, String backupVaultName, ElasticBackupVaultInner body) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - return Mono - .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - if (body == null) { - return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, contentType, accept, - body, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Create or update the specified Elastic Backup Vault in the Elastic NetApp account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param body Resource create parameters. - * @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 netApp elastic backup vault resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, - String backupVaultName, ElasticBackupVaultInner body) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, contentType, accept, body, - Context.NONE); - } - - /** - * Create or update the specified Elastic Backup Vault in the Elastic NetApp account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param body Resource create parameters. - * @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 netApp elastic backup vault resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, - String backupVaultName, ElasticBackupVaultInner body, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, contentType, accept, body, - context); - } - - /** - * Create or update the specified Elastic Backup Vault in the Elastic NetApp account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param body Resource create parameters. - * @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 netApp elastic backup vault resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ElasticBackupVaultInner> beginCreateOrUpdateAsync( - String resourceGroupName, String accountName, String backupVaultName, ElasticBackupVaultInner body) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, accountName, backupVaultName, body); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), ElasticBackupVaultInner.class, ElasticBackupVaultInner.class, - this.client.getContext()); - } - - /** - * Create or update the specified Elastic Backup Vault in the Elastic NetApp account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param body Resource create parameters. - * @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 netApp elastic backup vault resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ElasticBackupVaultInner> beginCreateOrUpdate( - String resourceGroupName, String accountName, String backupVaultName, ElasticBackupVaultInner body) { - Response response - = createOrUpdateWithResponse(resourceGroupName, accountName, backupVaultName, body); - return this.client.getLroResult(response, - ElasticBackupVaultInner.class, ElasticBackupVaultInner.class, Context.NONE); - } - - /** - * Create or update the specified Elastic Backup Vault in the Elastic NetApp account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param body Resource create parameters. - * @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 netApp elastic backup vault resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ElasticBackupVaultInner> beginCreateOrUpdate( - String resourceGroupName, String accountName, String backupVaultName, ElasticBackupVaultInner body, - Context context) { - Response response - = createOrUpdateWithResponse(resourceGroupName, accountName, backupVaultName, body, context); - return this.client.getLroResult(response, - ElasticBackupVaultInner.class, ElasticBackupVaultInner.class, context); - } - - /** - * Create or update the specified Elastic Backup Vault in the Elastic NetApp account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param body Resource create parameters. - * @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 netApp elastic backup vault resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String accountName, - String backupVaultName, ElasticBackupVaultInner body) { - return beginCreateOrUpdateAsync(resourceGroupName, accountName, backupVaultName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Create or update the specified Elastic Backup Vault in the Elastic NetApp account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param body Resource create parameters. - * @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 netApp elastic backup vault resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticBackupVaultInner createOrUpdate(String resourceGroupName, String accountName, String backupVaultName, - ElasticBackupVaultInner body) { - return beginCreateOrUpdate(resourceGroupName, accountName, backupVaultName, body).getFinalResult(); - } - - /** - * Create or update the specified Elastic Backup Vault in the Elastic NetApp account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param body Resource create parameters. - * @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 netApp elastic backup vault resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticBackupVaultInner createOrUpdate(String resourceGroupName, String accountName, String backupVaultName, - ElasticBackupVaultInner body, Context context) { - return beginCreateOrUpdate(resourceGroupName, accountName, backupVaultName, body, context).getFinalResult(); - } - - /** - * Patch the specified NetApp Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp elastic backup vault resource along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, - String backupVaultName, ElasticBackupVaultUpdate body) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - return Mono - .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - if (body == null) { - return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, contentType, accept, - body, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Patch the specified NetApp Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp elastic backup vault resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String accountName, - String backupVaultName, ElasticBackupVaultUpdate body) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, contentType, accept, body, - Context.NONE); - } - - /** - * Patch the specified NetApp Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp elastic backup vault resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String accountName, - String backupVaultName, ElasticBackupVaultUpdate body, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, contentType, accept, body, - context); - } - - /** - * Patch the specified NetApp Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of netApp elastic backup vault resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ElasticBackupVaultInner> beginUpdateAsync( - String resourceGroupName, String accountName, String backupVaultName, ElasticBackupVaultUpdate body) { - Mono>> mono - = updateWithResponseAsync(resourceGroupName, accountName, backupVaultName, body); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), ElasticBackupVaultInner.class, ElasticBackupVaultInner.class, - this.client.getContext()); - } - - /** - * Patch the specified NetApp Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp elastic backup vault resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ElasticBackupVaultInner> beginUpdate( - String resourceGroupName, String accountName, String backupVaultName, ElasticBackupVaultUpdate body) { - Response response = updateWithResponse(resourceGroupName, accountName, backupVaultName, body); - return this.client.getLroResult(response, - ElasticBackupVaultInner.class, ElasticBackupVaultInner.class, Context.NONE); - } - - /** - * Patch the specified NetApp Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp elastic backup vault resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ElasticBackupVaultInner> beginUpdate( - String resourceGroupName, String accountName, String backupVaultName, ElasticBackupVaultUpdate body, - Context context) { - Response response - = updateWithResponse(resourceGroupName, accountName, backupVaultName, body, context); - return this.client.getLroResult(response, - ElasticBackupVaultInner.class, ElasticBackupVaultInner.class, context); - } - - /** - * Patch the specified NetApp Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp elastic backup vault resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String accountName, - String backupVaultName, ElasticBackupVaultUpdate body) { - return beginUpdateAsync(resourceGroupName, accountName, backupVaultName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Patch the specified NetApp Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp elastic backup vault resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticBackupVaultInner update(String resourceGroupName, String accountName, String backupVaultName, - ElasticBackupVaultUpdate body) { - return beginUpdate(resourceGroupName, accountName, backupVaultName, body).getFinalResult(); - } - - /** - * Patch the specified NetApp Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp elastic backup vault resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticBackupVaultInner update(String resourceGroupName, String accountName, String backupVaultName, - ElasticBackupVaultUpdate body, Context context) { - return beginUpdate(resourceGroupName, accountName, backupVaultName, body, context).getFinalResult(); - } - - /** - * Delete the specified Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @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>> deleteWithResponseAsync(String resourceGroupName, String accountName, - String backupVaultName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - return Mono - .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Delete the specified Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @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 deleteWithResponse(String resourceGroupName, String accountName, - String backupVaultName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, Context.NONE); - } - - /** - * Delete the specified Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @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 deleteWithResponse(String resourceGroupName, String accountName, - String backupVaultName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, context); - } - - /** - * Delete the specified Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @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> beginDeleteAsync(String resourceGroupName, String accountName, - String backupVaultName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, accountName, backupVaultName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Delete the specified Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @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> beginDelete(String resourceGroupName, String accountName, - String backupVaultName) { - Response response = deleteWithResponse(resourceGroupName, accountName, backupVaultName); - return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); - } - - /** - * Delete the specified Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @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> beginDelete(String resourceGroupName, String accountName, - String backupVaultName, Context context) { - Response response = deleteWithResponse(resourceGroupName, accountName, backupVaultName, context); - return this.client.getLroResult(response, Void.class, Void.class, context); - } - - /** - * Delete the specified Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @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 deleteAsync(String resourceGroupName, String accountName, String backupVaultName) { - return beginDeleteAsync(resourceGroupName, accountName, backupVaultName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Delete the specified Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @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 delete(String resourceGroupName, String accountName, String backupVaultName) { - beginDelete(resourceGroupName, accountName, backupVaultName).getFinalResult(); - } - - /** - * Delete the specified Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @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 delete(String resourceGroupName, String accountName, String backupVaultName, Context context) { - beginDelete(resourceGroupName, accountName, backupVaultName, context).getFinalResult(); - } - - /** - * List and describe all Elastic Backup Vaults in the elastic account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 of a ElasticBackupVault list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByElasticAccountSinglePageAsync(String resourceGroupName, - String accountName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByElasticAccount(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * List and describe all Elastic Backup Vaults in the elastic account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 of a ElasticBackupVault list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByElasticAccountAsync(String resourceGroupName, String accountName) { - return new PagedFlux<>(() -> listByElasticAccountSinglePageAsync(resourceGroupName, accountName), - nextLink -> listByElasticAccountNextSinglePageAsync(nextLink)); - } - - /** - * List and describe all Elastic Backup Vaults in the elastic account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 of a ElasticBackupVault list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticAccountSinglePage(String resourceGroupName, - String accountName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByElasticAccountSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * List and describe all Elastic Backup Vaults in the elastic account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 of a ElasticBackupVault list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticAccountSinglePage(String resourceGroupName, - String accountName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByElasticAccountSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * List and describe all Elastic Backup Vaults in the elastic account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 of a ElasticBackupVault list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByElasticAccount(String resourceGroupName, String accountName) { - return new PagedIterable<>(() -> listByElasticAccountSinglePage(resourceGroupName, accountName), - nextLink -> listByElasticAccountNextSinglePage(nextLink)); - } - - /** - * List and describe all Elastic Backup Vaults in the elastic account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 of a ElasticBackupVault list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByElasticAccount(String resourceGroupName, String accountName, - Context context) { - return new PagedIterable<>(() -> listByElasticAccountSinglePage(resourceGroupName, accountName, context), - nextLink -> listByElasticAccountNextSinglePage(nextLink, context)); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 of a ElasticBackupVault list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByElasticAccountNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.listByElasticAccountNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 of a ElasticBackupVault list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticAccountNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByElasticAccountNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 of a ElasticBackupVault list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticAccountNextSinglePage(String nextLink, - Context context) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByElasticAccountNextSync(nextLink, this.client.getEndpoint(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - private static final ClientLogger LOGGER = new ClientLogger(ElasticBackupVaultsClientImpl.class); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupVaultsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupVaultsImpl.java deleted file mode 100644 index 827e6c61a5718..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupVaultsImpl.java +++ /dev/null @@ -1,155 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.netapp.fluent.ElasticBackupVaultsClient; -import com.azure.resourcemanager.netapp.fluent.models.ElasticBackupVaultInner; -import com.azure.resourcemanager.netapp.models.ElasticBackupVault; -import com.azure.resourcemanager.netapp.models.ElasticBackupVaults; - -public final class ElasticBackupVaultsImpl implements ElasticBackupVaults { - private static final ClientLogger LOGGER = new ClientLogger(ElasticBackupVaultsImpl.class); - - private final ElasticBackupVaultsClient innerClient; - - private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - - public ElasticBackupVaultsImpl(ElasticBackupVaultsClient innerClient, - com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public Response getWithResponse(String resourceGroupName, String accountName, - String backupVaultName, Context context) { - Response inner - = this.serviceClient().getWithResponse(resourceGroupName, accountName, backupVaultName, context); - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new ElasticBackupVaultImpl(inner.getValue(), this.manager())); - } - - public ElasticBackupVault get(String resourceGroupName, String accountName, String backupVaultName) { - ElasticBackupVaultInner inner = this.serviceClient().get(resourceGroupName, accountName, backupVaultName); - if (inner != null) { - return new ElasticBackupVaultImpl(inner, this.manager()); - } else { - return null; - } - } - - public void delete(String resourceGroupName, String accountName, String backupVaultName) { - this.serviceClient().delete(resourceGroupName, accountName, backupVaultName); - } - - public void delete(String resourceGroupName, String accountName, String backupVaultName, Context context) { - this.serviceClient().delete(resourceGroupName, accountName, backupVaultName, context); - } - - public PagedIterable listByElasticAccount(String resourceGroupName, String accountName) { - PagedIterable inner - = this.serviceClient().listByElasticAccount(resourceGroupName, accountName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticBackupVaultImpl(inner1, this.manager())); - } - - public PagedIterable listByElasticAccount(String resourceGroupName, String accountName, - Context context) { - PagedIterable inner - = this.serviceClient().listByElasticAccount(resourceGroupName, accountName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticBackupVaultImpl(inner1, this.manager())); - } - - public ElasticBackupVault getById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String backupVaultName = ResourceManagerUtils.getValueFromIdByName(id, "elasticBackupVaults"); - if (backupVaultName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticBackupVaults'.", id))); - } - return this.getWithResponse(resourceGroupName, accountName, backupVaultName, Context.NONE).getValue(); - } - - public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String backupVaultName = ResourceManagerUtils.getValueFromIdByName(id, "elasticBackupVaults"); - if (backupVaultName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticBackupVaults'.", id))); - } - return this.getWithResponse(resourceGroupName, accountName, backupVaultName, context); - } - - public void deleteById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String backupVaultName = ResourceManagerUtils.getValueFromIdByName(id, "elasticBackupVaults"); - if (backupVaultName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticBackupVaults'.", id))); - } - this.delete(resourceGroupName, accountName, backupVaultName, Context.NONE); - } - - public void deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String backupVaultName = ResourceManagerUtils.getValueFromIdByName(id, "elasticBackupVaults"); - if (backupVaultName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticBackupVaults'.", id))); - } - this.delete(resourceGroupName, accountName, backupVaultName, context); - } - - private ElasticBackupVaultsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { - return this.serviceManager; - } - - public ElasticBackupVaultImpl define(String name) { - return new ElasticBackupVaultImpl(name, this.manager()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupsClientImpl.java deleted file mode 100644 index d048173279a67..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupsClientImpl.java +++ /dev/null @@ -1,1420 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.Delete; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.Patch; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.BinaryData; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; -import com.azure.core.util.polling.PollerFlux; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.netapp.fluent.ElasticBackupsClient; -import com.azure.resourcemanager.netapp.fluent.models.ElasticBackupInner; -import com.azure.resourcemanager.netapp.implementation.models.ElasticBackupListResult; -import java.nio.ByteBuffer; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in ElasticBackupsClient. - */ -public final class ElasticBackupsClientImpl implements ElasticBackupsClient { - /** - * The proxy service used to perform REST calls. - */ - private final ElasticBackupsService service; - - /** - * The service client containing this operation class. - */ - private final NetAppManagementClientImpl client; - - /** - * Initializes an instance of ElasticBackupsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - ElasticBackupsClientImpl(NetAppManagementClientImpl client) { - this.service - = RestProxy.create(ElasticBackupsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for NetAppManagementClientElasticBackups to be used by the proxy service - * to perform REST calls. - */ - @Host("{endpoint}") - @ServiceInterface(name = "NetAppManagementClientElasticBackups") - public interface ElasticBackupsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults/{backupVaultName}/elasticBackups/{backupName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @PathParam("backupName") String backupName, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults/{backupVaultName}/elasticBackups/{backupName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @PathParam("backupName") String backupName, - @HeaderParam("Accept") String accept, Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults/{backupVaultName}/elasticBackups/{backupName}") - @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @PathParam("backupName") String backupName, - @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") ElasticBackupInner body, Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults/{backupVaultName}/elasticBackups/{backupName}") - @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @PathParam("backupName") String backupName, - @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") ElasticBackupInner body, Context context); - - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults/{backupVaultName}/elasticBackups/{backupName}") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @PathParam("backupName") String backupName, - @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") ElasticBackupInner body, Context context); - - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults/{backupVaultName}/elasticBackups/{backupName}") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response updateSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @PathParam("backupName") String backupName, - @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") ElasticBackupInner body, Context context); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults/{backupVaultName}/elasticBackups/{backupName}") - @ExpectedResponses({ 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @PathParam("backupName") String backupName, - Context context); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults/{backupVaultName}/elasticBackups/{backupName}") - @ExpectedResponses({ 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @PathParam("backupName") String backupName, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults/{backupVaultName}/elasticBackups") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByVault(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticBackupVaults/{backupVaultName}/elasticBackups") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByVaultSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("backupVaultName") String backupVaultName, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByVaultNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByVaultNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, Context context); - } - - /** - * Get the specified Elastic Backup under Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @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 specified Elastic Backup under Elastic Backup Vault along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String accountName, - String backupVaultName, String backupName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - return Mono - .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - if (backupName == null) { - return Mono.error(new IllegalArgumentException("Parameter backupName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, backupName, accept, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the specified Elastic Backup under Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @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 specified Elastic Backup under Elastic Backup Vault on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String accountName, String backupVaultName, - String backupName) { - return getWithResponseAsync(resourceGroupName, accountName, backupVaultName, backupName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Get the specified Elastic Backup under Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @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 specified Elastic Backup under Elastic Backup Vault along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String accountName, - String backupVaultName, String backupName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - if (backupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, accountName, backupVaultName, backupName, accept, context); - } - - /** - * Get the specified Elastic Backup under Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @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 specified Elastic Backup under Elastic Backup Vault. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticBackupInner get(String resourceGroupName, String accountName, String backupVaultName, - String backupName) { - return getWithResponse(resourceGroupName, accountName, backupVaultName, backupName, Context.NONE).getValue(); - } - - /** - * Create an elastic backup under the elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @param body Resource create parameters. - * @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 netApp Elastic Backup under an elastic Backup Vault along with {@link Response} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String accountName, String backupVaultName, String backupName, ElasticBackupInner body) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - return Mono - .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - if (backupName == null) { - return Mono.error(new IllegalArgumentException("Parameter backupName is required and cannot be null.")); - } - if (body == null) { - return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, backupName, - contentType, accept, body, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Create an elastic backup under the elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @param body Resource create parameters. - * @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 netApp Elastic Backup under an elastic Backup Vault along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, - String backupVaultName, String backupName, ElasticBackupInner body) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - if (backupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, backupName, contentType, - accept, body, Context.NONE); - } - - /** - * Create an elastic backup under the elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @param body Resource create parameters. - * @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 netApp Elastic Backup under an elastic Backup Vault along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, - String backupVaultName, String backupName, ElasticBackupInner body, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - if (backupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, backupName, contentType, - accept, body, context); - } - - /** - * Create an elastic backup under the elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @param body Resource create parameters. - * @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 netApp Elastic Backup under an elastic Backup Vault. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ElasticBackupInner> beginCreateOrUpdateAsync( - String resourceGroupName, String accountName, String backupVaultName, String backupName, - ElasticBackupInner body) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, accountName, backupVaultName, backupName, body); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - ElasticBackupInner.class, ElasticBackupInner.class, this.client.getContext()); - } - - /** - * Create an elastic backup under the elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @param body Resource create parameters. - * @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 netApp Elastic Backup under an elastic Backup Vault. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ElasticBackupInner> beginCreateOrUpdate(String resourceGroupName, - String accountName, String backupVaultName, String backupName, ElasticBackupInner body) { - Response response - = createOrUpdateWithResponse(resourceGroupName, accountName, backupVaultName, backupName, body); - return this.client.getLroResult(response, ElasticBackupInner.class, - ElasticBackupInner.class, Context.NONE); - } - - /** - * Create an elastic backup under the elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @param body Resource create parameters. - * @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 netApp Elastic Backup under an elastic Backup Vault. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ElasticBackupInner> beginCreateOrUpdate(String resourceGroupName, - String accountName, String backupVaultName, String backupName, ElasticBackupInner body, Context context) { - Response response - = createOrUpdateWithResponse(resourceGroupName, accountName, backupVaultName, backupName, body, context); - return this.client.getLroResult(response, ElasticBackupInner.class, - ElasticBackupInner.class, context); - } - - /** - * Create an elastic backup under the elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @param body Resource create parameters. - * @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 netApp Elastic Backup under an elastic Backup Vault on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String accountName, - String backupVaultName, String backupName, ElasticBackupInner body) { - return beginCreateOrUpdateAsync(resourceGroupName, accountName, backupVaultName, backupName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Create an elastic backup under the elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @param body Resource create parameters. - * @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 netApp Elastic Backup under an elastic Backup Vault. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticBackupInner createOrUpdate(String resourceGroupName, String accountName, String backupVaultName, - String backupName, ElasticBackupInner body) { - return beginCreateOrUpdate(resourceGroupName, accountName, backupVaultName, backupName, body).getFinalResult(); - } - - /** - * Create an elastic backup under the elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @param body Resource create parameters. - * @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 netApp Elastic Backup under an elastic Backup Vault. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticBackupInner createOrUpdate(String resourceGroupName, String accountName, String backupVaultName, - String backupName, ElasticBackupInner body, Context context) { - return beginCreateOrUpdate(resourceGroupName, accountName, backupVaultName, backupName, body, context) - .getFinalResult(); - } - - /** - * Patch an elastic Backup under the Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Backup under an elastic Backup Vault along with {@link Response} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, - String backupVaultName, String backupName, ElasticBackupInner body) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - return Mono - .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - if (backupName == null) { - return Mono.error(new IllegalArgumentException("Parameter backupName is required and cannot be null.")); - } - if (body == null) { - return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, backupName, - contentType, accept, body, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Patch an elastic Backup under the Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Backup under an elastic Backup Vault along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String accountName, - String backupVaultName, String backupName, ElasticBackupInner body) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - if (backupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, backupName, contentType, - accept, body, Context.NONE); - } - - /** - * Patch an elastic Backup under the Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Backup under an elastic Backup Vault along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String accountName, - String backupVaultName, String backupName, ElasticBackupInner body, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - if (backupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, backupName, contentType, - accept, body, context); - } - - /** - * Patch an elastic Backup under the Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of netApp Elastic Backup under an elastic Backup Vault. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ElasticBackupInner> beginUpdateAsync(String resourceGroupName, - String accountName, String backupVaultName, String backupName, ElasticBackupInner body) { - Mono>> mono - = updateWithResponseAsync(resourceGroupName, accountName, backupVaultName, backupName, body); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - ElasticBackupInner.class, ElasticBackupInner.class, this.client.getContext()); - } - - /** - * Patch an elastic Backup under the Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp Elastic Backup under an elastic Backup Vault. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ElasticBackupInner> beginUpdate(String resourceGroupName, - String accountName, String backupVaultName, String backupName, ElasticBackupInner body) { - Response response - = updateWithResponse(resourceGroupName, accountName, backupVaultName, backupName, body); - return this.client.getLroResult(response, ElasticBackupInner.class, - ElasticBackupInner.class, Context.NONE); - } - - /** - * Patch an elastic Backup under the Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp Elastic Backup under an elastic Backup Vault. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ElasticBackupInner> beginUpdate(String resourceGroupName, - String accountName, String backupVaultName, String backupName, ElasticBackupInner body, Context context) { - Response response - = updateWithResponse(resourceGroupName, accountName, backupVaultName, backupName, body, context); - return this.client.getLroResult(response, ElasticBackupInner.class, - ElasticBackupInner.class, context); - } - - /** - * Patch an elastic Backup under the Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Backup under an elastic Backup Vault on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String accountName, String backupVaultName, - String backupName, ElasticBackupInner body) { - return beginUpdateAsync(resourceGroupName, accountName, backupVaultName, backupName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Patch an elastic Backup under the Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Backup under an elastic Backup Vault. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticBackupInner update(String resourceGroupName, String accountName, String backupVaultName, - String backupName, ElasticBackupInner body) { - return beginUpdate(resourceGroupName, accountName, backupVaultName, backupName, body).getFinalResult(); - } - - /** - * Patch an elastic Backup under the Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Backup under an elastic Backup Vault. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticBackupInner update(String resourceGroupName, String accountName, String backupVaultName, - String backupName, ElasticBackupInner body, Context context) { - return beginUpdate(resourceGroupName, accountName, backupVaultName, backupName, body, context).getFinalResult(); - } - - /** - * Delete a ElasticBackup. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @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>> deleteWithResponseAsync(String resourceGroupName, String accountName, - String backupVaultName, String backupName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - return Mono - .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - if (backupName == null) { - return Mono.error(new IllegalArgumentException("Parameter backupName is required and cannot be null.")); - } - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, backupName, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Delete a ElasticBackup. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @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 deleteWithResponse(String resourceGroupName, String accountName, - String backupVaultName, String backupName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - if (backupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupName is required and cannot be null.")); - } - return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, backupName, Context.NONE); - } - - /** - * Delete a ElasticBackup. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @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 deleteWithResponse(String resourceGroupName, String accountName, - String backupVaultName, String backupName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - if (backupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupName is required and cannot be null.")); - } - return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, backupName, context); - } - - /** - * Delete a ElasticBackup. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @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> beginDeleteAsync(String resourceGroupName, String accountName, - String backupVaultName, String backupName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, accountName, backupVaultName, backupName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Delete a ElasticBackup. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @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> beginDelete(String resourceGroupName, String accountName, - String backupVaultName, String backupName) { - Response response = deleteWithResponse(resourceGroupName, accountName, backupVaultName, backupName); - return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); - } - - /** - * Delete a ElasticBackup. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @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> beginDelete(String resourceGroupName, String accountName, - String backupVaultName, String backupName, Context context) { - Response response - = deleteWithResponse(resourceGroupName, accountName, backupVaultName, backupName, context); - return this.client.getLroResult(response, Void.class, Void.class, context); - } - - /** - * Delete a ElasticBackup. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @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 deleteAsync(String resourceGroupName, String accountName, String backupVaultName, - String backupName) { - return beginDeleteAsync(resourceGroupName, accountName, backupVaultName, backupName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Delete a ElasticBackup. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @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 delete(String resourceGroupName, String accountName, String backupVaultName, String backupName) { - beginDelete(resourceGroupName, accountName, backupVaultName, backupName).getFinalResult(); - } - - /** - * Delete a ElasticBackup. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @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 delete(String resourceGroupName, String accountName, String backupVaultName, String backupName, - Context context) { - beginDelete(resourceGroupName, accountName, backupVaultName, backupName, context).getFinalResult(); - } - - /** - * List all elastic backups Under an elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @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 of a ElasticBackup list operation along with {@link PagedResponse} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByVaultSinglePageAsync(String resourceGroupName, - String accountName, String backupVaultName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - return Mono - .error(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByVault(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * List all elastic backups Under an elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @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 of a ElasticBackup list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByVaultAsync(String resourceGroupName, String accountName, - String backupVaultName) { - return new PagedFlux<>(() -> listByVaultSinglePageAsync(resourceGroupName, accountName, backupVaultName), - nextLink -> listByVaultNextSinglePageAsync(nextLink)); - } - - /** - * List all elastic backups Under an elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @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 of a ElasticBackup list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByVaultSinglePage(String resourceGroupName, String accountName, - String backupVaultName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByVaultSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * List all elastic backups Under an elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @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 of a ElasticBackup list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByVaultSinglePage(String resourceGroupName, String accountName, - String backupVaultName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (backupVaultName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter backupVaultName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByVaultSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, backupVaultName, accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * List all elastic backups Under an elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @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 of a ElasticBackup list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByVault(String resourceGroupName, String accountName, - String backupVaultName) { - return new PagedIterable<>(() -> listByVaultSinglePage(resourceGroupName, accountName, backupVaultName), - nextLink -> listByVaultNextSinglePage(nextLink)); - } - - /** - * List all elastic backups Under an elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @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 of a ElasticBackup list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByVault(String resourceGroupName, String accountName, - String backupVaultName, Context context) { - return new PagedIterable<>( - () -> listByVaultSinglePage(resourceGroupName, accountName, backupVaultName, context), - nextLink -> listByVaultNextSinglePage(nextLink, context)); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 of a ElasticBackup list operation along with {@link PagedResponse} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByVaultNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByVaultNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 of a ElasticBackup list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByVaultNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByVaultNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 of a ElasticBackup list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByVaultNextSinglePage(String nextLink, Context context) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByVaultNextSync(nextLink, this.client.getEndpoint(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - private static final ClientLogger LOGGER = new ClientLogger(ElasticBackupsClientImpl.class); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupsImpl.java deleted file mode 100644 index 3f110c1e6b844..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupsImpl.java +++ /dev/null @@ -1,179 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.netapp.fluent.ElasticBackupsClient; -import com.azure.resourcemanager.netapp.fluent.models.ElasticBackupInner; -import com.azure.resourcemanager.netapp.models.ElasticBackup; -import com.azure.resourcemanager.netapp.models.ElasticBackups; - -public final class ElasticBackupsImpl implements ElasticBackups { - private static final ClientLogger LOGGER = new ClientLogger(ElasticBackupsImpl.class); - - private final ElasticBackupsClient innerClient; - - private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - - public ElasticBackupsImpl(ElasticBackupsClient innerClient, - com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public Response getWithResponse(String resourceGroupName, String accountName, String backupVaultName, - String backupName, Context context) { - Response inner = this.serviceClient() - .getWithResponse(resourceGroupName, accountName, backupVaultName, backupName, context); - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new ElasticBackupImpl(inner.getValue(), this.manager())); - } - - public ElasticBackup get(String resourceGroupName, String accountName, String backupVaultName, String backupName) { - ElasticBackupInner inner - = this.serviceClient().get(resourceGroupName, accountName, backupVaultName, backupName); - if (inner != null) { - return new ElasticBackupImpl(inner, this.manager()); - } else { - return null; - } - } - - public void delete(String resourceGroupName, String accountName, String backupVaultName, String backupName) { - this.serviceClient().delete(resourceGroupName, accountName, backupVaultName, backupName); - } - - public void delete(String resourceGroupName, String accountName, String backupVaultName, String backupName, - Context context) { - this.serviceClient().delete(resourceGroupName, accountName, backupVaultName, backupName, context); - } - - public PagedIterable listByVault(String resourceGroupName, String accountName, - String backupVaultName) { - PagedIterable inner - = this.serviceClient().listByVault(resourceGroupName, accountName, backupVaultName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticBackupImpl(inner1, this.manager())); - } - - public PagedIterable listByVault(String resourceGroupName, String accountName, - String backupVaultName, Context context) { - PagedIterable inner - = this.serviceClient().listByVault(resourceGroupName, accountName, backupVaultName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticBackupImpl(inner1, this.manager())); - } - - public ElasticBackup getById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String backupVaultName = ResourceManagerUtils.getValueFromIdByName(id, "elasticBackupVaults"); - if (backupVaultName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticBackupVaults'.", id))); - } - String backupName = ResourceManagerUtils.getValueFromIdByName(id, "elasticBackups"); - if (backupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticBackups'.", id))); - } - return this.getWithResponse(resourceGroupName, accountName, backupVaultName, backupName, Context.NONE) - .getValue(); - } - - public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String backupVaultName = ResourceManagerUtils.getValueFromIdByName(id, "elasticBackupVaults"); - if (backupVaultName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticBackupVaults'.", id))); - } - String backupName = ResourceManagerUtils.getValueFromIdByName(id, "elasticBackups"); - if (backupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticBackups'.", id))); - } - return this.getWithResponse(resourceGroupName, accountName, backupVaultName, backupName, context); - } - - public void deleteById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String backupVaultName = ResourceManagerUtils.getValueFromIdByName(id, "elasticBackupVaults"); - if (backupVaultName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticBackupVaults'.", id))); - } - String backupName = ResourceManagerUtils.getValueFromIdByName(id, "elasticBackups"); - if (backupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticBackups'.", id))); - } - this.delete(resourceGroupName, accountName, backupVaultName, backupName, Context.NONE); - } - - public void deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String backupVaultName = ResourceManagerUtils.getValueFromIdByName(id, "elasticBackupVaults"); - if (backupVaultName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticBackupVaults'.", id))); - } - String backupName = ResourceManagerUtils.getValueFromIdByName(id, "elasticBackups"); - if (backupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticBackups'.", id))); - } - this.delete(resourceGroupName, accountName, backupVaultName, backupName, context); - } - - private ElasticBackupsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { - return this.serviceManager; - } - - public ElasticBackupImpl define(String name) { - return new ElasticBackupImpl(name, this.manager()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticCapacityPoolImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticCapacityPoolImpl.java deleted file mode 100644 index af68ba51b1c6e..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticCapacityPoolImpl.java +++ /dev/null @@ -1,232 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.implementation; - -import com.azure.core.http.rest.Response; -import com.azure.core.management.Region; -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.fluent.models.ElasticCapacityPoolInner; -import com.azure.resourcemanager.netapp.models.ChangeZoneRequest; -import com.azure.resourcemanager.netapp.models.CheckElasticResourceAvailabilityResponse; -import com.azure.resourcemanager.netapp.models.CheckElasticVolumeFilePathAvailabilityRequest; -import com.azure.resourcemanager.netapp.models.ElasticCapacityPool; -import com.azure.resourcemanager.netapp.models.ElasticCapacityPoolProperties; -import com.azure.resourcemanager.netapp.models.ElasticCapacityPoolUpdate; -import com.azure.resourcemanager.netapp.models.ElasticCapacityPoolUpdateProperties; -import java.util.Collections; -import java.util.List; -import java.util.Map; - -public final class ElasticCapacityPoolImpl - implements ElasticCapacityPool, ElasticCapacityPool.Definition, ElasticCapacityPool.Update { - private ElasticCapacityPoolInner innerObject; - - private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - - public String id() { - return this.innerModel().id(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public String location() { - return this.innerModel().location(); - } - - public Map tags() { - Map inner = this.innerModel().tags(); - if (inner != null) { - return Collections.unmodifiableMap(inner); - } else { - return Collections.emptyMap(); - } - } - - public ElasticCapacityPoolProperties properties() { - return this.innerModel().properties(); - } - - public String eTag() { - return this.innerModel().eTag(); - } - - public List zones() { - List inner = this.innerModel().zones(); - if (inner != null) { - return Collections.unmodifiableList(inner); - } else { - return Collections.emptyList(); - } - } - - public SystemData systemData() { - return this.innerModel().systemData(); - } - - public Region region() { - return Region.fromName(this.regionName()); - } - - public String regionName() { - return this.location(); - } - - public String resourceGroupName() { - return resourceGroupName; - } - - public ElasticCapacityPoolInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { - return this.serviceManager; - } - - private String resourceGroupName; - - private String accountName; - - private String poolName; - - private ElasticCapacityPoolUpdate updateBody; - - public ElasticCapacityPoolImpl withExistingElasticAccount(String resourceGroupName, String accountName) { - this.resourceGroupName = resourceGroupName; - this.accountName = accountName; - return this; - } - - public ElasticCapacityPool create() { - this.innerObject = serviceManager.serviceClient() - .getElasticCapacityPools() - .createOrUpdate(resourceGroupName, accountName, poolName, this.innerModel(), Context.NONE); - return this; - } - - public ElasticCapacityPool create(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticCapacityPools() - .createOrUpdate(resourceGroupName, accountName, poolName, this.innerModel(), context); - return this; - } - - ElasticCapacityPoolImpl(String name, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerObject = new ElasticCapacityPoolInner(); - this.serviceManager = serviceManager; - this.poolName = name; - } - - public ElasticCapacityPoolImpl update() { - this.updateBody = new ElasticCapacityPoolUpdate(); - return this; - } - - public ElasticCapacityPool apply() { - this.innerObject = serviceManager.serviceClient() - .getElasticCapacityPools() - .update(resourceGroupName, accountName, poolName, updateBody, Context.NONE); - return this; - } - - public ElasticCapacityPool apply(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticCapacityPools() - .update(resourceGroupName, accountName, poolName, updateBody, context); - return this; - } - - ElasticCapacityPoolImpl(ElasticCapacityPoolInner innerObject, - com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.accountName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "elasticAccounts"); - this.poolName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "elasticCapacityPools"); - } - - public ElasticCapacityPool refresh() { - this.innerObject = serviceManager.serviceClient() - .getElasticCapacityPools() - .getWithResponse(resourceGroupName, accountName, poolName, Context.NONE) - .getValue(); - return this; - } - - public ElasticCapacityPool refresh(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticCapacityPools() - .getWithResponse(resourceGroupName, accountName, poolName, context) - .getValue(); - return this; - } - - public ElasticCapacityPool changeZone(ChangeZoneRequest body) { - return serviceManager.elasticCapacityPools().changeZone(resourceGroupName, accountName, poolName, body); - } - - public ElasticCapacityPool changeZone(ChangeZoneRequest body, Context context) { - return serviceManager.elasticCapacityPools() - .changeZone(resourceGroupName, accountName, poolName, body, context); - } - - public Response checkVolumeFilePathAvailabilityWithResponse( - CheckElasticVolumeFilePathAvailabilityRequest body, Context context) { - return serviceManager.elasticCapacityPools() - .checkVolumeFilePathAvailabilityWithResponse(resourceGroupName, accountName, poolName, body, context); - } - - public CheckElasticResourceAvailabilityResponse - checkVolumeFilePathAvailability(CheckElasticVolumeFilePathAvailabilityRequest body) { - return serviceManager.elasticCapacityPools() - .checkVolumeFilePathAvailability(resourceGroupName, accountName, poolName, body); - } - - public ElasticCapacityPoolImpl withRegion(Region location) { - this.innerModel().withLocation(location.toString()); - return this; - } - - public ElasticCapacityPoolImpl withRegion(String location) { - this.innerModel().withLocation(location); - return this; - } - - public ElasticCapacityPoolImpl withTags(Map tags) { - if (isInCreateMode()) { - this.innerModel().withTags(tags); - return this; - } else { - this.updateBody.withTags(tags); - return this; - } - } - - public ElasticCapacityPoolImpl withProperties(ElasticCapacityPoolProperties properties) { - this.innerModel().withProperties(properties); - return this; - } - - public ElasticCapacityPoolImpl withZones(List zones) { - this.innerModel().withZones(zones); - return this; - } - - public ElasticCapacityPoolImpl withProperties(ElasticCapacityPoolUpdateProperties properties) { - this.updateBody.withProperties(properties); - return this; - } - - private boolean isInCreateMode() { - return this.innerModel() == null || this.innerModel().id() == null; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticCapacityPoolsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticCapacityPoolsClientImpl.java deleted file mode 100644 index 6db9b1dff33b0..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticCapacityPoolsClientImpl.java +++ /dev/null @@ -1,1761 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.Delete; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.Patch; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Post; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.BinaryData; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; -import com.azure.core.util.polling.PollerFlux; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.netapp.fluent.ElasticCapacityPoolsClient; -import com.azure.resourcemanager.netapp.fluent.models.CheckElasticResourceAvailabilityResponseInner; -import com.azure.resourcemanager.netapp.fluent.models.ElasticCapacityPoolInner; -import com.azure.resourcemanager.netapp.implementation.models.ElasticCapacityPoolListResult; -import com.azure.resourcemanager.netapp.models.ChangeZoneRequest; -import com.azure.resourcemanager.netapp.models.CheckElasticVolumeFilePathAvailabilityRequest; -import com.azure.resourcemanager.netapp.models.ElasticCapacityPoolUpdate; -import java.nio.ByteBuffer; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in ElasticCapacityPoolsClient. - */ -public final class ElasticCapacityPoolsClientImpl implements ElasticCapacityPoolsClient { - /** - * The proxy service used to perform REST calls. - */ - private final ElasticCapacityPoolsService service; - - /** - * The service client containing this operation class. - */ - private final NetAppManagementClientImpl client; - - /** - * Initializes an instance of ElasticCapacityPoolsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - ElasticCapacityPoolsClientImpl(NetAppManagementClientImpl client) { - this.service = RestProxy.create(ElasticCapacityPoolsService.class, client.getHttpPipeline(), - client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for NetAppManagementClientElasticCapacityPools to be used by the proxy - * service to perform REST calls. - */ - @Host("{endpoint}") - @ServiceInterface(name = "NetAppManagementClientElasticCapacityPools") - public interface ElasticCapacityPoolsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @HeaderParam("Accept") String accept, Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}") - @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ElasticCapacityPoolInner body, - Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}") - @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ElasticCapacityPoolInner body, - Context context); - - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ElasticCapacityPoolUpdate body, - Context context); - - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response updateSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ElasticCapacityPoolUpdate body, - Context context); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}") - @ExpectedResponses({ 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, Context context); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}") - @ExpectedResponses({ 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByElasticAccount(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByElasticAccountSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @HeaderParam("Accept") String accept, Context context); - - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/changeZone") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> changeZone(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ChangeZoneRequest body, - Context context); - - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/changeZone") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response changeZoneSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ChangeZoneRequest body, - Context context); - - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/checkVolumeFilePathAvailability") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> checkVolumeFilePathAvailability( - @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, - @BodyParam("application/json") CheckElasticVolumeFilePathAvailabilityRequest body, Context context); - - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/checkVolumeFilePathAvailability") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response checkVolumeFilePathAvailabilitySync( - @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, - @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, - @BodyParam("application/json") CheckElasticVolumeFilePathAvailabilityRequest body, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByElasticAccountNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByElasticAccountNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, Context context); - } - - /** - * Get the NetApp Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @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 NetApp Elastic Capacity Pool along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String accountName, - String poolName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the NetApp Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @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 NetApp Elastic Capacity Pool on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String accountName, String poolName) { - return getWithResponseAsync(resourceGroupName, accountName, poolName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Get the NetApp Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @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 NetApp Elastic Capacity Pool along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String accountName, - String poolName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, accept, context); - } - - /** - * Get the NetApp Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @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 NetApp Elastic Capacity Pool. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticCapacityPoolInner get(String resourceGroupName, String accountName, String poolName) { - return getWithResponse(resourceGroupName, accountName, poolName, Context.NONE).getValue(); - } - - /** - * Create or update the specified NetApp Elastic Capacity Pool within the resource group and NetApp Elastic Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body Resource create parameters. - * @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 netApp Elastic Capacity Pool resource along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String accountName, String poolName, ElasticCapacityPoolInner body) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (body == null) { - return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, contentType, accept, body, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Create or update the specified NetApp Elastic Capacity Pool within the resource group and NetApp Elastic Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body Resource create parameters. - * @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 netApp Elastic Capacity Pool resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, - String poolName, ElasticCapacityPoolInner body) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, contentType, accept, body, - Context.NONE); - } - - /** - * Create or update the specified NetApp Elastic Capacity Pool within the resource group and NetApp Elastic Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body Resource create parameters. - * @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 netApp Elastic Capacity Pool resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, - String poolName, ElasticCapacityPoolInner body, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, contentType, accept, body, - context); - } - - /** - * Create or update the specified NetApp Elastic Capacity Pool within the resource group and NetApp Elastic Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body Resource create parameters. - * @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 netApp Elastic Capacity Pool resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ElasticCapacityPoolInner> beginCreateOrUpdateAsync( - String resourceGroupName, String accountName, String poolName, ElasticCapacityPoolInner body) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, accountName, poolName, body); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), ElasticCapacityPoolInner.class, ElasticCapacityPoolInner.class, - this.client.getContext()); - } - - /** - * Create or update the specified NetApp Elastic Capacity Pool within the resource group and NetApp Elastic Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body Resource create parameters. - * @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 netApp Elastic Capacity Pool resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ElasticCapacityPoolInner> beginCreateOrUpdate( - String resourceGroupName, String accountName, String poolName, ElasticCapacityPoolInner body) { - Response response = createOrUpdateWithResponse(resourceGroupName, accountName, poolName, body); - return this.client.getLroResult(response, - ElasticCapacityPoolInner.class, ElasticCapacityPoolInner.class, Context.NONE); - } - - /** - * Create or update the specified NetApp Elastic Capacity Pool within the resource group and NetApp Elastic Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body Resource create parameters. - * @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 netApp Elastic Capacity Pool resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ElasticCapacityPoolInner> beginCreateOrUpdate( - String resourceGroupName, String accountName, String poolName, ElasticCapacityPoolInner body, Context context) { - Response response - = createOrUpdateWithResponse(resourceGroupName, accountName, poolName, body, context); - return this.client.getLroResult(response, - ElasticCapacityPoolInner.class, ElasticCapacityPoolInner.class, context); - } - - /** - * Create or update the specified NetApp Elastic Capacity Pool within the resource group and NetApp Elastic Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body Resource create parameters. - * @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 netApp Elastic Capacity Pool resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String accountName, - String poolName, ElasticCapacityPoolInner body) { - return beginCreateOrUpdateAsync(resourceGroupName, accountName, poolName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Create or update the specified NetApp Elastic Capacity Pool within the resource group and NetApp Elastic Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body Resource create parameters. - * @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 netApp Elastic Capacity Pool resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticCapacityPoolInner createOrUpdate(String resourceGroupName, String accountName, String poolName, - ElasticCapacityPoolInner body) { - return beginCreateOrUpdate(resourceGroupName, accountName, poolName, body).getFinalResult(); - } - - /** - * Create or update the specified NetApp Elastic Capacity Pool within the resource group and NetApp Elastic Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body Resource create parameters. - * @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 netApp Elastic Capacity Pool resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticCapacityPoolInner createOrUpdate(String resourceGroupName, String accountName, String poolName, - ElasticCapacityPoolInner body, Context context) { - return beginCreateOrUpdate(resourceGroupName, accountName, poolName, body, context).getFinalResult(); - } - - /** - * Patch the specified NetApp Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Capacity Pool resource along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, - String poolName, ElasticCapacityPoolUpdate body) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (body == null) { - return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, contentType, accept, body, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Patch the specified NetApp Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Capacity Pool resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String accountName, String poolName, - ElasticCapacityPoolUpdate body) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, contentType, accept, body, - Context.NONE); - } - - /** - * Patch the specified NetApp Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Capacity Pool resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String accountName, String poolName, - ElasticCapacityPoolUpdate body, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, contentType, accept, body, - context); - } - - /** - * Patch the specified NetApp Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of netApp Elastic Capacity Pool resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ElasticCapacityPoolInner> beginUpdateAsync( - String resourceGroupName, String accountName, String poolName, ElasticCapacityPoolUpdate body) { - Mono>> mono = updateWithResponseAsync(resourceGroupName, accountName, poolName, body); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), ElasticCapacityPoolInner.class, ElasticCapacityPoolInner.class, - this.client.getContext()); - } - - /** - * Patch the specified NetApp Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp Elastic Capacity Pool resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ElasticCapacityPoolInner> - beginUpdate(String resourceGroupName, String accountName, String poolName, ElasticCapacityPoolUpdate body) { - Response response = updateWithResponse(resourceGroupName, accountName, poolName, body); - return this.client.getLroResult(response, - ElasticCapacityPoolInner.class, ElasticCapacityPoolInner.class, Context.NONE); - } - - /** - * Patch the specified NetApp Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp Elastic Capacity Pool resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ElasticCapacityPoolInner> beginUpdate( - String resourceGroupName, String accountName, String poolName, ElasticCapacityPoolUpdate body, - Context context) { - Response response = updateWithResponse(resourceGroupName, accountName, poolName, body, context); - return this.client.getLroResult(response, - ElasticCapacityPoolInner.class, ElasticCapacityPoolInner.class, context); - } - - /** - * Patch the specified NetApp Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Capacity Pool resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String accountName, String poolName, - ElasticCapacityPoolUpdate body) { - return beginUpdateAsync(resourceGroupName, accountName, poolName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Patch the specified NetApp Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Capacity Pool resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticCapacityPoolInner update(String resourceGroupName, String accountName, String poolName, - ElasticCapacityPoolUpdate body) { - return beginUpdate(resourceGroupName, accountName, poolName, body).getFinalResult(); - } - - /** - * Patch the specified NetApp Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Capacity Pool resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticCapacityPoolInner update(String resourceGroupName, String accountName, String poolName, - ElasticCapacityPoolUpdate body, Context context) { - return beginUpdate(resourceGroupName, accountName, poolName, body, context).getFinalResult(); - } - - /** - * Delete the specified NetApp Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @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>> deleteWithResponseAsync(String resourceGroupName, String accountName, - String poolName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Delete the specified NetApp Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @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 deleteWithResponse(String resourceGroupName, String accountName, String poolName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, Context.NONE); - } - - /** - * Delete the specified NetApp Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @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 deleteWithResponse(String resourceGroupName, String accountName, String poolName, - Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, context); - } - - /** - * Delete the specified NetApp Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @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> beginDeleteAsync(String resourceGroupName, String accountName, - String poolName) { - Mono>> mono = deleteWithResponseAsync(resourceGroupName, accountName, poolName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Delete the specified NetApp Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @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> beginDelete(String resourceGroupName, String accountName, - String poolName) { - Response response = deleteWithResponse(resourceGroupName, accountName, poolName); - return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); - } - - /** - * Delete the specified NetApp Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @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> beginDelete(String resourceGroupName, String accountName, String poolName, - Context context) { - Response response = deleteWithResponse(resourceGroupName, accountName, poolName, context); - return this.client.getLroResult(response, Void.class, Void.class, context); - } - - /** - * Delete the specified NetApp Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @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 deleteAsync(String resourceGroupName, String accountName, String poolName) { - return beginDeleteAsync(resourceGroupName, accountName, poolName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Delete the specified NetApp Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @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 delete(String resourceGroupName, String accountName, String poolName) { - beginDelete(resourceGroupName, accountName, poolName).getFinalResult(); - } - - /** - * Delete the specified NetApp Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @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 delete(String resourceGroupName, String accountName, String poolName, Context context) { - beginDelete(resourceGroupName, accountName, poolName, context).getFinalResult(); - } - - /** - * List and describe all NetApp Elastic Capacity Pools in the Elastic NetApp Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 of a ElasticCapacityPool list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByElasticAccountSinglePageAsync(String resourceGroupName, - String accountName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByElasticAccount(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * List and describe all NetApp Elastic Capacity Pools in the Elastic NetApp Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 of a ElasticCapacityPool list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByElasticAccountAsync(String resourceGroupName, - String accountName) { - return new PagedFlux<>(() -> listByElasticAccountSinglePageAsync(resourceGroupName, accountName), - nextLink -> listByElasticAccountNextSinglePageAsync(nextLink)); - } - - /** - * List and describe all NetApp Elastic Capacity Pools in the Elastic NetApp Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 of a ElasticCapacityPool list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticAccountSinglePage(String resourceGroupName, - String accountName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByElasticAccountSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * List and describe all NetApp Elastic Capacity Pools in the Elastic NetApp Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 of a ElasticCapacityPool list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticAccountSinglePage(String resourceGroupName, - String accountName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByElasticAccountSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * List and describe all NetApp Elastic Capacity Pools in the Elastic NetApp Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 of a ElasticCapacityPool list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByElasticAccount(String resourceGroupName, String accountName) { - return new PagedIterable<>(() -> listByElasticAccountSinglePage(resourceGroupName, accountName), - nextLink -> listByElasticAccountNextSinglePage(nextLink)); - } - - /** - * List and describe all NetApp Elastic Capacity Pools in the Elastic NetApp Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 of a ElasticCapacityPool list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByElasticAccount(String resourceGroupName, String accountName, - Context context) { - return new PagedIterable<>(() -> listByElasticAccountSinglePage(resourceGroupName, accountName, context), - nextLink -> listByElasticAccountNextSinglePage(nextLink, context)); - } - - /** - * Moves pool to another zone. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body The content of the action request. - * @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 netApp Elastic Capacity Pool resource along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> changeZoneWithResponseAsync(String resourceGroupName, String accountName, - String poolName, ChangeZoneRequest body) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (body == null) { - return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.changeZone(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, contentType, accept, body, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Moves pool to another zone. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body The content of the action request. - * @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 netApp Elastic Capacity Pool resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response changeZoneWithResponse(String resourceGroupName, String accountName, String poolName, - ChangeZoneRequest body) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.changeZoneSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, contentType, accept, body, - Context.NONE); - } - - /** - * Moves pool to another zone. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body The content of the action request. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Capacity Pool resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response changeZoneWithResponse(String resourceGroupName, String accountName, String poolName, - ChangeZoneRequest body, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.changeZoneSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, contentType, accept, body, - context); - } - - /** - * Moves pool to another zone. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body The content of the action request. - * @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 netApp Elastic Capacity Pool resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ElasticCapacityPoolInner> - beginChangeZoneAsync(String resourceGroupName, String accountName, String poolName, ChangeZoneRequest body) { - Mono>> mono - = changeZoneWithResponseAsync(resourceGroupName, accountName, poolName, body); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), ElasticCapacityPoolInner.class, ElasticCapacityPoolInner.class, - this.client.getContext()); - } - - /** - * Moves pool to another zone. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body The content of the action request. - * @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 netApp Elastic Capacity Pool resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ElasticCapacityPoolInner> - beginChangeZone(String resourceGroupName, String accountName, String poolName, ChangeZoneRequest body) { - Response response = changeZoneWithResponse(resourceGroupName, accountName, poolName, body); - return this.client.getLroResult(response, - ElasticCapacityPoolInner.class, ElasticCapacityPoolInner.class, Context.NONE); - } - - /** - * Moves pool to another zone. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body The content of the action request. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws 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 netApp Elastic Capacity Pool resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ElasticCapacityPoolInner> beginChangeZone( - String resourceGroupName, String accountName, String poolName, ChangeZoneRequest body, Context context) { - Response response = changeZoneWithResponse(resourceGroupName, accountName, poolName, body, context); - return this.client.getLroResult(response, - ElasticCapacityPoolInner.class, ElasticCapacityPoolInner.class, context); - } - - /** - * Moves pool to another zone. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body The content of the action request. - * @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 netApp Elastic Capacity Pool resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono changeZoneAsync(String resourceGroupName, String accountName, - String poolName, ChangeZoneRequest body) { - return beginChangeZoneAsync(resourceGroupName, accountName, poolName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Moves pool to another zone. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body The content of the action request. - * @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 netApp Elastic Capacity Pool resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticCapacityPoolInner changeZone(String resourceGroupName, String accountName, String poolName, - ChangeZoneRequest body) { - return beginChangeZone(resourceGroupName, accountName, poolName, body).getFinalResult(); - } - - /** - * Moves pool to another zone. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body The content of the action request. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Capacity Pool resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticCapacityPoolInner changeZone(String resourceGroupName, String accountName, String poolName, - ChangeZoneRequest body, Context context) { - return beginChangeZone(resourceGroupName, accountName, poolName, body, context).getFinalResult(); - } - - /** - * Check if an Elastic Volume file path is available within the given Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body The content of the action request. - * @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 information regarding availability of a resource along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - checkVolumeFilePathAvailabilityWithResponseAsync(String resourceGroupName, String accountName, String poolName, - CheckElasticVolumeFilePathAvailabilityRequest body) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (body == null) { - return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.checkVolumeFilePathAvailability(this.client.getEndpoint(), - this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, - contentType, accept, body, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Check if an Elastic Volume file path is available within the given Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body The content of the action request. - * @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 information regarding availability of a resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono checkVolumeFilePathAvailabilityAsync( - String resourceGroupName, String accountName, String poolName, - CheckElasticVolumeFilePathAvailabilityRequest body) { - return checkVolumeFilePathAvailabilityWithResponseAsync(resourceGroupName, accountName, poolName, body) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Check if an Elastic Volume file path is available within the given Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body The content of the action request. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information regarding availability of a resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response checkVolumeFilePathAvailabilityWithResponse( - String resourceGroupName, String accountName, String poolName, - CheckElasticVolumeFilePathAvailabilityRequest body, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.checkVolumeFilePathAvailabilitySync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, contentType, accept, body, - context); - } - - /** - * Check if an Elastic Volume file path is available within the given Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body The content of the action request. - * @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 information regarding availability of a resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public CheckElasticResourceAvailabilityResponseInner checkVolumeFilePathAvailability(String resourceGroupName, - String accountName, String poolName, CheckElasticVolumeFilePathAvailabilityRequest body) { - return checkVolumeFilePathAvailabilityWithResponse(resourceGroupName, accountName, poolName, body, Context.NONE) - .getValue(); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 of a ElasticCapacityPool list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByElasticAccountNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.listByElasticAccountNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 of a ElasticCapacityPool list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticAccountNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByElasticAccountNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 of a ElasticCapacityPool list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticAccountNextSinglePage(String nextLink, - Context context) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByElasticAccountNextSync(nextLink, this.client.getEndpoint(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - private static final ClientLogger LOGGER = new ClientLogger(ElasticCapacityPoolsClientImpl.class); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticCapacityPoolsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticCapacityPoolsImpl.java deleted file mode 100644 index 9234248ba2eef..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticCapacityPoolsImpl.java +++ /dev/null @@ -1,201 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.netapp.fluent.ElasticCapacityPoolsClient; -import com.azure.resourcemanager.netapp.fluent.models.CheckElasticResourceAvailabilityResponseInner; -import com.azure.resourcemanager.netapp.fluent.models.ElasticCapacityPoolInner; -import com.azure.resourcemanager.netapp.models.ChangeZoneRequest; -import com.azure.resourcemanager.netapp.models.CheckElasticResourceAvailabilityResponse; -import com.azure.resourcemanager.netapp.models.CheckElasticVolumeFilePathAvailabilityRequest; -import com.azure.resourcemanager.netapp.models.ElasticCapacityPool; -import com.azure.resourcemanager.netapp.models.ElasticCapacityPools; - -public final class ElasticCapacityPoolsImpl implements ElasticCapacityPools { - private static final ClientLogger LOGGER = new ClientLogger(ElasticCapacityPoolsImpl.class); - - private final ElasticCapacityPoolsClient innerClient; - - private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - - public ElasticCapacityPoolsImpl(ElasticCapacityPoolsClient innerClient, - com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public Response getWithResponse(String resourceGroupName, String accountName, String poolName, - Context context) { - Response inner - = this.serviceClient().getWithResponse(resourceGroupName, accountName, poolName, context); - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new ElasticCapacityPoolImpl(inner.getValue(), this.manager())); - } - - public ElasticCapacityPool get(String resourceGroupName, String accountName, String poolName) { - ElasticCapacityPoolInner inner = this.serviceClient().get(resourceGroupName, accountName, poolName); - if (inner != null) { - return new ElasticCapacityPoolImpl(inner, this.manager()); - } else { - return null; - } - } - - public void delete(String resourceGroupName, String accountName, String poolName) { - this.serviceClient().delete(resourceGroupName, accountName, poolName); - } - - public void delete(String resourceGroupName, String accountName, String poolName, Context context) { - this.serviceClient().delete(resourceGroupName, accountName, poolName, context); - } - - public PagedIterable listByElasticAccount(String resourceGroupName, String accountName) { - PagedIterable inner - = this.serviceClient().listByElasticAccount(resourceGroupName, accountName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticCapacityPoolImpl(inner1, this.manager())); - } - - public PagedIterable listByElasticAccount(String resourceGroupName, String accountName, - Context context) { - PagedIterable inner - = this.serviceClient().listByElasticAccount(resourceGroupName, accountName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticCapacityPoolImpl(inner1, this.manager())); - } - - public ElasticCapacityPool changeZone(String resourceGroupName, String accountName, String poolName, - ChangeZoneRequest body) { - ElasticCapacityPoolInner inner - = this.serviceClient().changeZone(resourceGroupName, accountName, poolName, body); - if (inner != null) { - return new ElasticCapacityPoolImpl(inner, this.manager()); - } else { - return null; - } - } - - public ElasticCapacityPool changeZone(String resourceGroupName, String accountName, String poolName, - ChangeZoneRequest body, Context context) { - ElasticCapacityPoolInner inner - = this.serviceClient().changeZone(resourceGroupName, accountName, poolName, body, context); - if (inner != null) { - return new ElasticCapacityPoolImpl(inner, this.manager()); - } else { - return null; - } - } - - public Response checkVolumeFilePathAvailabilityWithResponse( - String resourceGroupName, String accountName, String poolName, - CheckElasticVolumeFilePathAvailabilityRequest body, Context context) { - Response inner = this.serviceClient() - .checkVolumeFilePathAvailabilityWithResponse(resourceGroupName, accountName, poolName, body, context); - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new CheckElasticResourceAvailabilityResponseImpl(inner.getValue(), this.manager())); - } - - public CheckElasticResourceAvailabilityResponse checkVolumeFilePathAvailability(String resourceGroupName, - String accountName, String poolName, CheckElasticVolumeFilePathAvailabilityRequest body) { - CheckElasticResourceAvailabilityResponseInner inner - = this.serviceClient().checkVolumeFilePathAvailability(resourceGroupName, accountName, poolName, body); - if (inner != null) { - return new CheckElasticResourceAvailabilityResponseImpl(inner, this.manager()); - } else { - return null; - } - } - - public ElasticCapacityPool getById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String poolName = ResourceManagerUtils.getValueFromIdByName(id, "elasticCapacityPools"); - if (poolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticCapacityPools'.", id))); - } - return this.getWithResponse(resourceGroupName, accountName, poolName, Context.NONE).getValue(); - } - - public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String poolName = ResourceManagerUtils.getValueFromIdByName(id, "elasticCapacityPools"); - if (poolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticCapacityPools'.", id))); - } - return this.getWithResponse(resourceGroupName, accountName, poolName, context); - } - - public void deleteById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String poolName = ResourceManagerUtils.getValueFromIdByName(id, "elasticCapacityPools"); - if (poolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticCapacityPools'.", id))); - } - this.delete(resourceGroupName, accountName, poolName, Context.NONE); - } - - public void deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String poolName = ResourceManagerUtils.getValueFromIdByName(id, "elasticCapacityPools"); - if (poolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticCapacityPools'.", id))); - } - this.delete(resourceGroupName, accountName, poolName, context); - } - - private ElasticCapacityPoolsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { - return this.serviceManager; - } - - public ElasticCapacityPoolImpl define(String name) { - return new ElasticCapacityPoolImpl(name, this.manager()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotImpl.java deleted file mode 100644 index 7196cc3e5579b..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotImpl.java +++ /dev/null @@ -1,142 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.implementation; - -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.fluent.models.ElasticSnapshotInner; -import com.azure.resourcemanager.netapp.models.ElasticSnapshot; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotProperties; - -public final class ElasticSnapshotImpl implements ElasticSnapshot, ElasticSnapshot.Definition, ElasticSnapshot.Update { - private ElasticSnapshotInner innerObject; - - private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - - public String id() { - return this.innerModel().id(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public ElasticSnapshotProperties properties() { - return this.innerModel().properties(); - } - - public SystemData systemData() { - return this.innerModel().systemData(); - } - - public String resourceGroupName() { - return resourceGroupName; - } - - public ElasticSnapshotInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { - return this.serviceManager; - } - - private String resourceGroupName; - - private String accountName; - - private String poolName; - - private String volumeName; - - private String snapshotName; - - public ElasticSnapshotImpl withExistingElasticVolume(String resourceGroupName, String accountName, String poolName, - String volumeName) { - this.resourceGroupName = resourceGroupName; - this.accountName = accountName; - this.poolName = poolName; - this.volumeName = volumeName; - return this; - } - - public ElasticSnapshot create() { - this.innerObject = serviceManager.serviceClient() - .getElasticSnapshots() - .createOrUpdate(resourceGroupName, accountName, poolName, volumeName, snapshotName, this.innerModel(), - Context.NONE); - return this; - } - - public ElasticSnapshot create(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticSnapshots() - .createOrUpdate(resourceGroupName, accountName, poolName, volumeName, snapshotName, this.innerModel(), - context); - return this; - } - - ElasticSnapshotImpl(String name, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerObject = new ElasticSnapshotInner(); - this.serviceManager = serviceManager; - this.snapshotName = name; - } - - public ElasticSnapshotImpl update() { - return this; - } - - public ElasticSnapshot apply() { - this.innerObject = serviceManager.serviceClient() - .getElasticSnapshots() - .createOrUpdate(resourceGroupName, accountName, poolName, volumeName, snapshotName, this.innerModel(), - Context.NONE); - return this; - } - - public ElasticSnapshot apply(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticSnapshots() - .createOrUpdate(resourceGroupName, accountName, poolName, volumeName, snapshotName, this.innerModel(), - context); - return this; - } - - ElasticSnapshotImpl(ElasticSnapshotInner innerObject, - com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.accountName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "elasticAccounts"); - this.poolName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "elasticCapacityPools"); - this.volumeName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "elasticVolumes"); - this.snapshotName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "elasticSnapshots"); - } - - public ElasticSnapshot refresh() { - this.innerObject = serviceManager.serviceClient() - .getElasticSnapshots() - .getWithResponse(resourceGroupName, accountName, poolName, volumeName, snapshotName, Context.NONE) - .getValue(); - return this; - } - - public ElasticSnapshot refresh(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticSnapshots() - .getWithResponse(resourceGroupName, accountName, poolName, volumeName, snapshotName, context) - .getValue(); - return this; - } - - public ElasticSnapshotImpl withProperties(ElasticSnapshotProperties properties) { - this.innerModel().withProperties(properties); - return this; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotPoliciesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotPoliciesClientImpl.java deleted file mode 100644 index e98b44912b669..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotPoliciesClientImpl.java +++ /dev/null @@ -1,1635 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.Delete; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.Patch; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.BinaryData; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; -import com.azure.core.util.polling.PollerFlux; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.netapp.fluent.ElasticSnapshotPoliciesClient; -import com.azure.resourcemanager.netapp.fluent.models.ElasticSnapshotPolicyInner; -import com.azure.resourcemanager.netapp.fluent.models.ElasticVolumeInner; -import com.azure.resourcemanager.netapp.implementation.models.ElasticSnapshotPolicyListResult; -import com.azure.resourcemanager.netapp.implementation.models.ElasticSnapshotPolicyVolumeList; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyUpdate; -import java.nio.ByteBuffer; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in ElasticSnapshotPoliciesClient. - */ -public final class ElasticSnapshotPoliciesClientImpl implements ElasticSnapshotPoliciesClient { - /** - * The proxy service used to perform REST calls. - */ - private final ElasticSnapshotPoliciesService service; - - /** - * The service client containing this operation class. - */ - private final NetAppManagementClientImpl client; - - /** - * Initializes an instance of ElasticSnapshotPoliciesClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - ElasticSnapshotPoliciesClientImpl(NetAppManagementClientImpl client) { - this.service = RestProxy.create(ElasticSnapshotPoliciesService.class, client.getHttpPipeline(), - client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for NetAppManagementClientElasticSnapshotPolicies to be used by the proxy - * service to perform REST calls. - */ - @Host("{endpoint}") - @ServiceInterface(name = "NetAppManagementClientElasticSnapshotPolicies") - public interface ElasticSnapshotPoliciesService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticSnapshotPolicies/{snapshotPolicyName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("snapshotPolicyName") String snapshotPolicyName, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticSnapshotPolicies/{snapshotPolicyName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("snapshotPolicyName") String snapshotPolicyName, @HeaderParam("Accept") String accept, - Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticSnapshotPolicies/{snapshotPolicyName}") - @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("snapshotPolicyName") String snapshotPolicyName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ElasticSnapshotPolicyInner body, - Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticSnapshotPolicies/{snapshotPolicyName}") - @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("snapshotPolicyName") String snapshotPolicyName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ElasticSnapshotPolicyInner body, - Context context); - - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticSnapshotPolicies/{snapshotPolicyName}") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("snapshotPolicyName") String snapshotPolicyName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ElasticSnapshotPolicyUpdate body, - Context context); - - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticSnapshotPolicies/{snapshotPolicyName}") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response updateSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("snapshotPolicyName") String snapshotPolicyName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ElasticSnapshotPolicyUpdate body, - Context context); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticSnapshotPolicies/{snapshotPolicyName}") - @ExpectedResponses({ 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("snapshotPolicyName") String snapshotPolicyName, Context context); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticSnapshotPolicies/{snapshotPolicyName}") - @ExpectedResponses({ 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("snapshotPolicyName") String snapshotPolicyName, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticSnapshotPolicies") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByElasticAccount(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticSnapshotPolicies") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByElasticAccountSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticSnapshotPolicies/{snapshotPolicyName}/elasticvolumes") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listElasticVolumes(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("snapshotPolicyName") String snapshotPolicyName, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticSnapshotPolicies/{snapshotPolicyName}/elasticvolumes") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listElasticVolumesSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("snapshotPolicyName") String snapshotPolicyName, @HeaderParam("Accept") String accept, - Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByElasticAccountNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByElasticAccountNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listElasticVolumesNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listElasticVolumesNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, Context context); - } - - /** - * Get a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @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 ElasticSnapshotPolicy along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, - String accountName, String snapshotPolicyName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (snapshotPolicyName == null) { - return Mono - .error(new IllegalArgumentException("Parameter snapshotPolicyName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, snapshotPolicyName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @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 ElasticSnapshotPolicy on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String accountName, - String snapshotPolicyName) { - return getWithResponseAsync(resourceGroupName, accountName, snapshotPolicyName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Get a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @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 a ElasticSnapshotPolicy along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String accountName, - String snapshotPolicyName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (snapshotPolicyName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter snapshotPolicyName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, accountName, snapshotPolicyName, accept, context); - } - - /** - * Get a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @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 ElasticSnapshotPolicy. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticSnapshotPolicyInner get(String resourceGroupName, String accountName, String snapshotPolicyName) { - return getWithResponse(resourceGroupName, accountName, snapshotPolicyName, Context.NONE).getValue(); - } - - /** - * Create a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @param body Resource create parameters. - * @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 netApp Elastic Snapshot Policy under an Elastic Account along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String accountName, String snapshotPolicyName, ElasticSnapshotPolicyInner body) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (snapshotPolicyName == null) { - return Mono - .error(new IllegalArgumentException("Parameter snapshotPolicyName is required and cannot be null.")); - } - if (body == null) { - return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, snapshotPolicyName, contentType, - accept, body, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Create a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @param body Resource create parameters. - * @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 netApp Elastic Snapshot Policy under an Elastic Account along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, - String snapshotPolicyName, ElasticSnapshotPolicyInner body) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (snapshotPolicyName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter snapshotPolicyName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, snapshotPolicyName, contentType, accept, - body, Context.NONE); - } - - /** - * Create a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @param body Resource create parameters. - * @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 netApp Elastic Snapshot Policy under an Elastic Account along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, - String snapshotPolicyName, ElasticSnapshotPolicyInner body, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (snapshotPolicyName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter snapshotPolicyName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, snapshotPolicyName, contentType, accept, - body, context); - } - - /** - * Create a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @param body Resource create parameters. - * @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 netApp Elastic Snapshot Policy under an Elastic Account. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ElasticSnapshotPolicyInner> beginCreateOrUpdateAsync( - String resourceGroupName, String accountName, String snapshotPolicyName, ElasticSnapshotPolicyInner body) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, accountName, snapshotPolicyName, body); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), ElasticSnapshotPolicyInner.class, ElasticSnapshotPolicyInner.class, - this.client.getContext()); - } - - /** - * Create a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @param body Resource create parameters. - * @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 netApp Elastic Snapshot Policy under an Elastic Account. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ElasticSnapshotPolicyInner> beginCreateOrUpdate( - String resourceGroupName, String accountName, String snapshotPolicyName, ElasticSnapshotPolicyInner body) { - Response response - = createOrUpdateWithResponse(resourceGroupName, accountName, snapshotPolicyName, body); - return this.client.getLroResult(response, - ElasticSnapshotPolicyInner.class, ElasticSnapshotPolicyInner.class, Context.NONE); - } - - /** - * Create a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @param body Resource create parameters. - * @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 netApp Elastic Snapshot Policy under an Elastic Account. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ElasticSnapshotPolicyInner> beginCreateOrUpdate( - String resourceGroupName, String accountName, String snapshotPolicyName, ElasticSnapshotPolicyInner body, - Context context) { - Response response - = createOrUpdateWithResponse(resourceGroupName, accountName, snapshotPolicyName, body, context); - return this.client.getLroResult(response, - ElasticSnapshotPolicyInner.class, ElasticSnapshotPolicyInner.class, context); - } - - /** - * Create a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @param body Resource create parameters. - * @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 netApp Elastic Snapshot Policy under an Elastic Account on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String accountName, - String snapshotPolicyName, ElasticSnapshotPolicyInner body) { - return beginCreateOrUpdateAsync(resourceGroupName, accountName, snapshotPolicyName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Create a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @param body Resource create parameters. - * @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 netApp Elastic Snapshot Policy under an Elastic Account. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticSnapshotPolicyInner createOrUpdate(String resourceGroupName, String accountName, - String snapshotPolicyName, ElasticSnapshotPolicyInner body) { - return beginCreateOrUpdate(resourceGroupName, accountName, snapshotPolicyName, body).getFinalResult(); - } - - /** - * Create a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @param body Resource create parameters. - * @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 netApp Elastic Snapshot Policy under an Elastic Account. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticSnapshotPolicyInner createOrUpdate(String resourceGroupName, String accountName, - String snapshotPolicyName, ElasticSnapshotPolicyInner body, Context context) { - return beginCreateOrUpdate(resourceGroupName, accountName, snapshotPolicyName, body, context).getFinalResult(); - } - - /** - * Update a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Snapshot Policy under an Elastic Account along with {@link Response} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, - String snapshotPolicyName, ElasticSnapshotPolicyUpdate body) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (snapshotPolicyName == null) { - return Mono - .error(new IllegalArgumentException("Parameter snapshotPolicyName is required and cannot be null.")); - } - if (body == null) { - return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, snapshotPolicyName, contentType, - accept, body, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Update a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Snapshot Policy under an Elastic Account along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String accountName, - String snapshotPolicyName, ElasticSnapshotPolicyUpdate body) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (snapshotPolicyName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter snapshotPolicyName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, snapshotPolicyName, contentType, accept, - body, Context.NONE); - } - - /** - * Update a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Snapshot Policy under an Elastic Account along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String accountName, - String snapshotPolicyName, ElasticSnapshotPolicyUpdate body, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (snapshotPolicyName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter snapshotPolicyName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, snapshotPolicyName, contentType, accept, - body, context); - } - - /** - * Update a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of netApp Elastic Snapshot Policy under an Elastic Account. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ElasticSnapshotPolicyInner> beginUpdateAsync( - String resourceGroupName, String accountName, String snapshotPolicyName, ElasticSnapshotPolicyUpdate body) { - Mono>> mono - = updateWithResponseAsync(resourceGroupName, accountName, snapshotPolicyName, body); - return this.client.getLroResult(mono, - this.client.getHttpPipeline(), ElasticSnapshotPolicyInner.class, ElasticSnapshotPolicyInner.class, - this.client.getContext()); - } - - /** - * Update a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp Elastic Snapshot Policy under an Elastic Account. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ElasticSnapshotPolicyInner> beginUpdate( - String resourceGroupName, String accountName, String snapshotPolicyName, ElasticSnapshotPolicyUpdate body) { - Response response = updateWithResponse(resourceGroupName, accountName, snapshotPolicyName, body); - return this.client.getLroResult(response, - ElasticSnapshotPolicyInner.class, ElasticSnapshotPolicyInner.class, Context.NONE); - } - - /** - * Update a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp Elastic Snapshot Policy under an Elastic Account. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ElasticSnapshotPolicyInner> beginUpdate( - String resourceGroupName, String accountName, String snapshotPolicyName, ElasticSnapshotPolicyUpdate body, - Context context) { - Response response - = updateWithResponse(resourceGroupName, accountName, snapshotPolicyName, body, context); - return this.client.getLroResult(response, - ElasticSnapshotPolicyInner.class, ElasticSnapshotPolicyInner.class, context); - } - - /** - * Update a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Snapshot Policy under an Elastic Account on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String accountName, - String snapshotPolicyName, ElasticSnapshotPolicyUpdate body) { - return beginUpdateAsync(resourceGroupName, accountName, snapshotPolicyName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Update a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Snapshot Policy under an Elastic Account. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticSnapshotPolicyInner update(String resourceGroupName, String accountName, String snapshotPolicyName, - ElasticSnapshotPolicyUpdate body) { - return beginUpdate(resourceGroupName, accountName, snapshotPolicyName, body).getFinalResult(); - } - - /** - * Update a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Snapshot Policy under an Elastic Account. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticSnapshotPolicyInner update(String resourceGroupName, String accountName, String snapshotPolicyName, - ElasticSnapshotPolicyUpdate body, Context context) { - return beginUpdate(resourceGroupName, accountName, snapshotPolicyName, body, context).getFinalResult(); - } - - /** - * Delete a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @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>> deleteWithResponseAsync(String resourceGroupName, String accountName, - String snapshotPolicyName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (snapshotPolicyName == null) { - return Mono - .error(new IllegalArgumentException("Parameter snapshotPolicyName is required and cannot be null.")); - } - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, snapshotPolicyName, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Delete a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @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 deleteWithResponse(String resourceGroupName, String accountName, - String snapshotPolicyName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (snapshotPolicyName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter snapshotPolicyName is required and cannot be null.")); - } - return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, snapshotPolicyName, Context.NONE); - } - - /** - * Delete a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @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 deleteWithResponse(String resourceGroupName, String accountName, - String snapshotPolicyName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (snapshotPolicyName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter snapshotPolicyName is required and cannot be null.")); - } - return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, snapshotPolicyName, context); - } - - /** - * Delete a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @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> beginDeleteAsync(String resourceGroupName, String accountName, - String snapshotPolicyName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, accountName, snapshotPolicyName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Delete a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @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> beginDelete(String resourceGroupName, String accountName, - String snapshotPolicyName) { - Response response = deleteWithResponse(resourceGroupName, accountName, snapshotPolicyName); - return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); - } - - /** - * Delete a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @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> beginDelete(String resourceGroupName, String accountName, - String snapshotPolicyName, Context context) { - Response response = deleteWithResponse(resourceGroupName, accountName, snapshotPolicyName, context); - return this.client.getLroResult(response, Void.class, Void.class, context); - } - - /** - * Delete a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @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 deleteAsync(String resourceGroupName, String accountName, String snapshotPolicyName) { - return beginDeleteAsync(resourceGroupName, accountName, snapshotPolicyName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Delete a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @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 delete(String resourceGroupName, String accountName, String snapshotPolicyName) { - beginDelete(resourceGroupName, accountName, snapshotPolicyName).getFinalResult(); - } - - /** - * Delete a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @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 delete(String resourceGroupName, String accountName, String snapshotPolicyName, Context context) { - beginDelete(resourceGroupName, accountName, snapshotPolicyName, context).getFinalResult(); - } - - /** - * List ElasticSnapshotPolicy resources by ElasticAccount. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 of a ElasticSnapshotPolicy list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> - listByElasticAccountSinglePageAsync(String resourceGroupName, String accountName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByElasticAccount(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * List ElasticSnapshotPolicy resources by ElasticAccount. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 of a ElasticSnapshotPolicy list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByElasticAccountAsync(String resourceGroupName, - String accountName) { - return new PagedFlux<>(() -> listByElasticAccountSinglePageAsync(resourceGroupName, accountName), - nextLink -> listByElasticAccountNextSinglePageAsync(nextLink)); - } - - /** - * List ElasticSnapshotPolicy resources by ElasticAccount. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 of a ElasticSnapshotPolicy list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticAccountSinglePage(String resourceGroupName, - String accountName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByElasticAccountSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * List ElasticSnapshotPolicy resources by ElasticAccount. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 of a ElasticSnapshotPolicy list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticAccountSinglePage(String resourceGroupName, - String accountName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByElasticAccountSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * List ElasticSnapshotPolicy resources by ElasticAccount. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 of a ElasticSnapshotPolicy list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByElasticAccount(String resourceGroupName, - String accountName) { - return new PagedIterable<>(() -> listByElasticAccountSinglePage(resourceGroupName, accountName), - nextLink -> listByElasticAccountNextSinglePage(nextLink)); - } - - /** - * List ElasticSnapshotPolicy resources by ElasticAccount. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 of a ElasticSnapshotPolicy list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByElasticAccount(String resourceGroupName, String accountName, - Context context) { - return new PagedIterable<>(() -> listByElasticAccountSinglePage(resourceGroupName, accountName, context), - nextLink -> listByElasticAccountNextSinglePage(nextLink, context)); - } - - /** - * Get elastic volumes associated with Elastic Snapshot Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @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 elastic volumes associated with Elastic Snapshot Policy along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listElasticVolumesSinglePageAsync(String resourceGroupName, - String accountName, String snapshotPolicyName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (snapshotPolicyName == null) { - return Mono - .error(new IllegalArgumentException("Parameter snapshotPolicyName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listElasticVolumes(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, snapshotPolicyName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get elastic volumes associated with Elastic Snapshot Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @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 elastic volumes associated with Elastic Snapshot Policy as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listElasticVolumesAsync(String resourceGroupName, String accountName, - String snapshotPolicyName) { - return new PagedFlux<>( - () -> listElasticVolumesSinglePageAsync(resourceGroupName, accountName, snapshotPolicyName), - nextLink -> listElasticVolumesNextSinglePageAsync(nextLink)); - } - - /** - * Get elastic volumes associated with Elastic Snapshot Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @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 elastic volumes associated with Elastic Snapshot Policy along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listElasticVolumesSinglePage(String resourceGroupName, String accountName, - String snapshotPolicyName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (snapshotPolicyName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter snapshotPolicyName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res = service.listElasticVolumesSync(this.client.getEndpoint(), - this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accountName, - snapshotPolicyName, accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * Get elastic volumes associated with Elastic Snapshot Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @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 elastic volumes associated with Elastic Snapshot Policy along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listElasticVolumesSinglePage(String resourceGroupName, String accountName, - String snapshotPolicyName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (snapshotPolicyName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter snapshotPolicyName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listElasticVolumesSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, snapshotPolicyName, accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * Get elastic volumes associated with Elastic Snapshot Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @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 elastic volumes associated with Elastic Snapshot Policy as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listElasticVolumes(String resourceGroupName, String accountName, - String snapshotPolicyName) { - return new PagedIterable<>( - () -> listElasticVolumesSinglePage(resourceGroupName, accountName, snapshotPolicyName), - nextLink -> listElasticVolumesNextSinglePage(nextLink)); - } - - /** - * Get elastic volumes associated with Elastic Snapshot Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @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 elastic volumes associated with Elastic Snapshot Policy as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listElasticVolumes(String resourceGroupName, String accountName, - String snapshotPolicyName, Context context) { - return new PagedIterable<>( - () -> listElasticVolumesSinglePage(resourceGroupName, accountName, snapshotPolicyName, context), - nextLink -> listElasticVolumesNextSinglePage(nextLink, context)); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 of a ElasticSnapshotPolicy list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByElasticAccountNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.listByElasticAccountNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 of a ElasticSnapshotPolicy list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticAccountNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByElasticAccountNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 of a ElasticSnapshotPolicy list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticAccountNextSinglePage(String nextLink, - Context context) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByElasticAccountNextSync(nextLink, this.client.getEndpoint(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 elastic volumes associated with Elastic Snapshot Policy along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listElasticVolumesNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.listElasticVolumesNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 elastic volumes associated with Elastic Snapshot Policy along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listElasticVolumesNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listElasticVolumesNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 elastic volumes associated with Elastic Snapshot Policy along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listElasticVolumesNextSinglePage(String nextLink, Context context) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listElasticVolumesNextSync(nextLink, this.client.getEndpoint(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - private static final ClientLogger LOGGER = new ClientLogger(ElasticSnapshotPoliciesClientImpl.class); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotPoliciesImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotPoliciesImpl.java deleted file mode 100644 index 1e0054cf27886..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotPoliciesImpl.java +++ /dev/null @@ -1,171 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.netapp.fluent.ElasticSnapshotPoliciesClient; -import com.azure.resourcemanager.netapp.fluent.models.ElasticSnapshotPolicyInner; -import com.azure.resourcemanager.netapp.fluent.models.ElasticVolumeInner; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicies; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicy; -import com.azure.resourcemanager.netapp.models.ElasticVolume; - -public final class ElasticSnapshotPoliciesImpl implements ElasticSnapshotPolicies { - private static final ClientLogger LOGGER = new ClientLogger(ElasticSnapshotPoliciesImpl.class); - - private final ElasticSnapshotPoliciesClient innerClient; - - private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - - public ElasticSnapshotPoliciesImpl(ElasticSnapshotPoliciesClient innerClient, - com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public Response getWithResponse(String resourceGroupName, String accountName, - String snapshotPolicyName, Context context) { - Response inner - = this.serviceClient().getWithResponse(resourceGroupName, accountName, snapshotPolicyName, context); - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new ElasticSnapshotPolicyImpl(inner.getValue(), this.manager())); - } - - public ElasticSnapshotPolicy get(String resourceGroupName, String accountName, String snapshotPolicyName) { - ElasticSnapshotPolicyInner inner = this.serviceClient().get(resourceGroupName, accountName, snapshotPolicyName); - if (inner != null) { - return new ElasticSnapshotPolicyImpl(inner, this.manager()); - } else { - return null; - } - } - - public void delete(String resourceGroupName, String accountName, String snapshotPolicyName) { - this.serviceClient().delete(resourceGroupName, accountName, snapshotPolicyName); - } - - public void delete(String resourceGroupName, String accountName, String snapshotPolicyName, Context context) { - this.serviceClient().delete(resourceGroupName, accountName, snapshotPolicyName, context); - } - - public PagedIterable listByElasticAccount(String resourceGroupName, String accountName) { - PagedIterable inner - = this.serviceClient().listByElasticAccount(resourceGroupName, accountName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticSnapshotPolicyImpl(inner1, this.manager())); - } - - public PagedIterable listByElasticAccount(String resourceGroupName, String accountName, - Context context) { - PagedIterable inner - = this.serviceClient().listByElasticAccount(resourceGroupName, accountName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticSnapshotPolicyImpl(inner1, this.manager())); - } - - public PagedIterable listElasticVolumes(String resourceGroupName, String accountName, - String snapshotPolicyName) { - PagedIterable inner - = this.serviceClient().listElasticVolumes(resourceGroupName, accountName, snapshotPolicyName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticVolumeImpl(inner1, this.manager())); - } - - public PagedIterable listElasticVolumes(String resourceGroupName, String accountName, - String snapshotPolicyName, Context context) { - PagedIterable inner - = this.serviceClient().listElasticVolumes(resourceGroupName, accountName, snapshotPolicyName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticVolumeImpl(inner1, this.manager())); - } - - public ElasticSnapshotPolicy getById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String snapshotPolicyName = ResourceManagerUtils.getValueFromIdByName(id, "elasticSnapshotPolicies"); - if (snapshotPolicyName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException(String - .format("The resource ID '%s' is not valid. Missing path segment 'elasticSnapshotPolicies'.", id))); - } - return this.getWithResponse(resourceGroupName, accountName, snapshotPolicyName, Context.NONE).getValue(); - } - - public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String snapshotPolicyName = ResourceManagerUtils.getValueFromIdByName(id, "elasticSnapshotPolicies"); - if (snapshotPolicyName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException(String - .format("The resource ID '%s' is not valid. Missing path segment 'elasticSnapshotPolicies'.", id))); - } - return this.getWithResponse(resourceGroupName, accountName, snapshotPolicyName, context); - } - - public void deleteById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String snapshotPolicyName = ResourceManagerUtils.getValueFromIdByName(id, "elasticSnapshotPolicies"); - if (snapshotPolicyName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException(String - .format("The resource ID '%s' is not valid. Missing path segment 'elasticSnapshotPolicies'.", id))); - } - this.delete(resourceGroupName, accountName, snapshotPolicyName, Context.NONE); - } - - public void deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String snapshotPolicyName = ResourceManagerUtils.getValueFromIdByName(id, "elasticSnapshotPolicies"); - if (snapshotPolicyName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException(String - .format("The resource ID '%s' is not valid. Missing path segment 'elasticSnapshotPolicies'.", id))); - } - this.delete(resourceGroupName, accountName, snapshotPolicyName, context); - } - - private ElasticSnapshotPoliciesClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { - return this.serviceManager; - } - - public ElasticSnapshotPolicyImpl define(String name) { - return new ElasticSnapshotPolicyImpl(name, this.manager()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotPolicyImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotPolicyImpl.java deleted file mode 100644 index c0f1db8361fdd..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotPolicyImpl.java +++ /dev/null @@ -1,193 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.implementation; - -import com.azure.core.management.Region; -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.fluent.models.ElasticSnapshotPolicyInner; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicy; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyProperties; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyUpdate; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyUpdateProperties; -import java.util.Collections; -import java.util.Map; - -public final class ElasticSnapshotPolicyImpl - implements ElasticSnapshotPolicy, ElasticSnapshotPolicy.Definition, ElasticSnapshotPolicy.Update { - private ElasticSnapshotPolicyInner innerObject; - - private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - - public String id() { - return this.innerModel().id(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public String location() { - return this.innerModel().location(); - } - - public Map tags() { - Map inner = this.innerModel().tags(); - if (inner != null) { - return Collections.unmodifiableMap(inner); - } else { - return Collections.emptyMap(); - } - } - - public ElasticSnapshotPolicyProperties properties() { - return this.innerModel().properties(); - } - - public String eTag() { - return this.innerModel().eTag(); - } - - public SystemData systemData() { - return this.innerModel().systemData(); - } - - public Region region() { - return Region.fromName(this.regionName()); - } - - public String regionName() { - return this.location(); - } - - public String resourceGroupName() { - return resourceGroupName; - } - - public ElasticSnapshotPolicyInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { - return this.serviceManager; - } - - private String resourceGroupName; - - private String accountName; - - private String snapshotPolicyName; - - private ElasticSnapshotPolicyUpdate updateBody; - - public ElasticSnapshotPolicyImpl withExistingElasticAccount(String resourceGroupName, String accountName) { - this.resourceGroupName = resourceGroupName; - this.accountName = accountName; - return this; - } - - public ElasticSnapshotPolicy create() { - this.innerObject = serviceManager.serviceClient() - .getElasticSnapshotPolicies() - .createOrUpdate(resourceGroupName, accountName, snapshotPolicyName, this.innerModel(), Context.NONE); - return this; - } - - public ElasticSnapshotPolicy create(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticSnapshotPolicies() - .createOrUpdate(resourceGroupName, accountName, snapshotPolicyName, this.innerModel(), context); - return this; - } - - ElasticSnapshotPolicyImpl(String name, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerObject = new ElasticSnapshotPolicyInner(); - this.serviceManager = serviceManager; - this.snapshotPolicyName = name; - } - - public ElasticSnapshotPolicyImpl update() { - this.updateBody = new ElasticSnapshotPolicyUpdate(); - return this; - } - - public ElasticSnapshotPolicy apply() { - this.innerObject = serviceManager.serviceClient() - .getElasticSnapshotPolicies() - .update(resourceGroupName, accountName, snapshotPolicyName, updateBody, Context.NONE); - return this; - } - - public ElasticSnapshotPolicy apply(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticSnapshotPolicies() - .update(resourceGroupName, accountName, snapshotPolicyName, updateBody, context); - return this; - } - - ElasticSnapshotPolicyImpl(ElasticSnapshotPolicyInner innerObject, - com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.accountName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "elasticAccounts"); - this.snapshotPolicyName - = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "elasticSnapshotPolicies"); - } - - public ElasticSnapshotPolicy refresh() { - this.innerObject = serviceManager.serviceClient() - .getElasticSnapshotPolicies() - .getWithResponse(resourceGroupName, accountName, snapshotPolicyName, Context.NONE) - .getValue(); - return this; - } - - public ElasticSnapshotPolicy refresh(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticSnapshotPolicies() - .getWithResponse(resourceGroupName, accountName, snapshotPolicyName, context) - .getValue(); - return this; - } - - public ElasticSnapshotPolicyImpl withRegion(Region location) { - this.innerModel().withLocation(location.toString()); - return this; - } - - public ElasticSnapshotPolicyImpl withRegion(String location) { - this.innerModel().withLocation(location); - return this; - } - - public ElasticSnapshotPolicyImpl withTags(Map tags) { - if (isInCreateMode()) { - this.innerModel().withTags(tags); - return this; - } else { - this.updateBody.withTags(tags); - return this; - } - } - - public ElasticSnapshotPolicyImpl withProperties(ElasticSnapshotPolicyProperties properties) { - this.innerModel().withProperties(properties); - return this; - } - - public ElasticSnapshotPolicyImpl withProperties(ElasticSnapshotPolicyUpdateProperties properties) { - this.updateBody.withProperties(properties); - return this; - } - - private boolean isInCreateMode() { - return this.innerModel() == null || this.innerModel().id() == null; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotsClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotsClientImpl.java deleted file mode 100644 index 95ea6dc5374f9..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotsClientImpl.java +++ /dev/null @@ -1,1188 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.Delete; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.BinaryData; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; -import com.azure.core.util.polling.PollerFlux; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.netapp.fluent.ElasticSnapshotsClient; -import com.azure.resourcemanager.netapp.fluent.models.ElasticSnapshotInner; -import com.azure.resourcemanager.netapp.implementation.models.ElasticSnapshotListResult; -import java.nio.ByteBuffer; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in ElasticSnapshotsClient. - */ -public final class ElasticSnapshotsClientImpl implements ElasticSnapshotsClient { - /** - * The proxy service used to perform REST calls. - */ - private final ElasticSnapshotsService service; - - /** - * The service client containing this operation class. - */ - private final NetAppManagementClientImpl client; - - /** - * Initializes an instance of ElasticSnapshotsClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - ElasticSnapshotsClientImpl(NetAppManagementClientImpl client) { - this.service - = RestProxy.create(ElasticSnapshotsService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for NetAppManagementClientElasticSnapshots to be used by the proxy - * service to perform REST calls. - */ - @Host("{endpoint}") - @ServiceInterface(name = "NetAppManagementClientElasticSnapshots") - public interface ElasticSnapshotsService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes/{volumeName}/elasticSnapshots/{snapshotName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("snapshotName") String snapshotName, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes/{volumeName}/elasticSnapshots/{snapshotName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("snapshotName") String snapshotName, @HeaderParam("Accept") String accept, Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes/{volumeName}/elasticSnapshots/{snapshotName}") - @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("snapshotName") String snapshotName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ElasticSnapshotInner body, - Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes/{volumeName}/elasticSnapshots/{snapshotName}") - @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("snapshotName") String snapshotName, @HeaderParam("Content-Type") String contentType, - @HeaderParam("Accept") String accept, @BodyParam("application/json") ElasticSnapshotInner body, - Context context); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes/{volumeName}/elasticSnapshots/{snapshotName}") - @ExpectedResponses({ 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("snapshotName") String snapshotName, Context context); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes/{volumeName}/elasticSnapshots/{snapshotName}") - @ExpectedResponses({ 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @PathParam("snapshotName") String snapshotName, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes/{volumeName}/elasticSnapshots") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByElasticVolume(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes/{volumeName}/elasticSnapshots") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByElasticVolumeSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByElasticVolumeNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByElasticVolumeNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, Context context); - } - - /** - * Get a ElasticSnapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param snapshotName The name of the ElasticSnapshot. - * @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 ElasticSnapshot along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String accountName, - String poolName, String volumeName, String snapshotName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (snapshotName == null) { - return Mono.error(new IllegalArgumentException("Parameter snapshotName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, snapshotName, - accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get a ElasticSnapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param snapshotName The name of the ElasticSnapshot. - * @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 ElasticSnapshot on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String accountName, String poolName, - String volumeName, String snapshotName) { - return getWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Get a ElasticSnapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param snapshotName The name of the ElasticSnapshot. - * @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 a ElasticSnapshot along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName, String snapshotName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (snapshotName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter snapshotName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, snapshotName, accept, context); - } - - /** - * Get a ElasticSnapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param snapshotName The name of the ElasticSnapshot. - * @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 ElasticSnapshot. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticSnapshotInner get(String resourceGroupName, String accountName, String poolName, String volumeName, - String snapshotName) { - return getWithResponse(resourceGroupName, accountName, poolName, volumeName, snapshotName, Context.NONE) - .getValue(); - } - - /** - * Create a ElasticSnapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param snapshotName The name of the ElasticSnapshot. - * @param body Resource create parameters. - * @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 netApp Elastic Snapshot under an Elastic Volume along with {@link Response} on successful completion of - * {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String accountName, String poolName, String volumeName, String snapshotName, ElasticSnapshotInner body) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (snapshotName == null) { - return Mono.error(new IllegalArgumentException("Parameter snapshotName is required and cannot be null.")); - } - if (body == null) { - return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, snapshotName, - contentType, accept, body, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Create a ElasticSnapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param snapshotName The name of the ElasticSnapshot. - * @param body Resource create parameters. - * @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 netApp Elastic Snapshot under an Elastic Volume along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, - String poolName, String volumeName, String snapshotName, ElasticSnapshotInner body) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (snapshotName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter snapshotName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, snapshotName, - contentType, accept, body, Context.NONE); - } - - /** - * Create a ElasticSnapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param snapshotName The name of the ElasticSnapshot. - * @param body Resource create parameters. - * @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 netApp Elastic Snapshot under an Elastic Volume along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, - String poolName, String volumeName, String snapshotName, ElasticSnapshotInner body, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (snapshotName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter snapshotName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, snapshotName, - contentType, accept, body, context); - } - - /** - * Create a ElasticSnapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param snapshotName The name of the ElasticSnapshot. - * @param body Resource create parameters. - * @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 netApp Elastic Snapshot under an Elastic Volume. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ElasticSnapshotInner> beginCreateOrUpdateAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName, - ElasticSnapshotInner body) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - ElasticSnapshotInner.class, ElasticSnapshotInner.class, this.client.getContext()); - } - - /** - * Create a ElasticSnapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param snapshotName The name of the ElasticSnapshot. - * @param body Resource create parameters. - * @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 netApp Elastic Snapshot under an Elastic Volume. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ElasticSnapshotInner> beginCreateOrUpdate( - String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName, - ElasticSnapshotInner body) { - Response response - = createOrUpdateWithResponse(resourceGroupName, accountName, poolName, volumeName, snapshotName, body); - return this.client.getLroResult(response, - ElasticSnapshotInner.class, ElasticSnapshotInner.class, Context.NONE); - } - - /** - * Create a ElasticSnapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param snapshotName The name of the ElasticSnapshot. - * @param body Resource create parameters. - * @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 netApp Elastic Snapshot under an Elastic Volume. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ElasticSnapshotInner> beginCreateOrUpdate( - String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName, - ElasticSnapshotInner body, Context context) { - Response response = createOrUpdateWithResponse(resourceGroupName, accountName, poolName, volumeName, - snapshotName, body, context); - return this.client.getLroResult(response, - ElasticSnapshotInner.class, ElasticSnapshotInner.class, context); - } - - /** - * Create a ElasticSnapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param snapshotName The name of the ElasticSnapshot. - * @param body Resource create parameters. - * @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 netApp Elastic Snapshot under an Elastic Volume on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String accountName, - String poolName, String volumeName, String snapshotName, ElasticSnapshotInner body) { - return beginCreateOrUpdateAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Create a ElasticSnapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param snapshotName The name of the ElasticSnapshot. - * @param body Resource create parameters. - * @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 netApp Elastic Snapshot under an Elastic Volume. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticSnapshotInner createOrUpdate(String resourceGroupName, String accountName, String poolName, - String volumeName, String snapshotName, ElasticSnapshotInner body) { - return beginCreateOrUpdate(resourceGroupName, accountName, poolName, volumeName, snapshotName, body) - .getFinalResult(); - } - - /** - * Create a ElasticSnapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param snapshotName The name of the ElasticSnapshot. - * @param body Resource create parameters. - * @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 netApp Elastic Snapshot under an Elastic Volume. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticSnapshotInner createOrUpdate(String resourceGroupName, String accountName, String poolName, - String volumeName, String snapshotName, ElasticSnapshotInner body, Context context) { - return beginCreateOrUpdate(resourceGroupName, accountName, poolName, volumeName, snapshotName, body, context) - .getFinalResult(); - } - - /** - * Delete a ElasticSnapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param snapshotName The name of the ElasticSnapshot. - * @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>> deleteWithResponseAsync(String resourceGroupName, String accountName, - String poolName, String volumeName, String snapshotName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (snapshotName == null) { - return Mono.error(new IllegalArgumentException("Parameter snapshotName is required and cannot be null.")); - } - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, snapshotName, - context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Delete a ElasticSnapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param snapshotName The name of the ElasticSnapshot. - * @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 deleteWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName, String snapshotName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (snapshotName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter snapshotName is required and cannot be null.")); - } - return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, snapshotName, - Context.NONE); - } - - /** - * Delete a ElasticSnapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param snapshotName The name of the ElasticSnapshot. - * @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 deleteWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName, String snapshotName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (snapshotName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter snapshotName is required and cannot be null.")); - } - return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, snapshotName, - context); - } - - /** - * Delete a ElasticSnapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param snapshotName The name of the ElasticSnapshot. - * @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> beginDeleteAsync(String resourceGroupName, String accountName, - String poolName, String volumeName, String snapshotName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Delete a ElasticSnapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param snapshotName The name of the ElasticSnapshot. - * @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> beginDelete(String resourceGroupName, String accountName, String poolName, - String volumeName, String snapshotName) { - Response response - = deleteWithResponse(resourceGroupName, accountName, poolName, volumeName, snapshotName); - return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); - } - - /** - * Delete a ElasticSnapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param snapshotName The name of the ElasticSnapshot. - * @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> beginDelete(String resourceGroupName, String accountName, String poolName, - String volumeName, String snapshotName, Context context) { - Response response - = deleteWithResponse(resourceGroupName, accountName, poolName, volumeName, snapshotName, context); - return this.client.getLroResult(response, Void.class, Void.class, context); - } - - /** - * Delete a ElasticSnapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param snapshotName The name of the ElasticSnapshot. - * @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 deleteAsync(String resourceGroupName, String accountName, String poolName, String volumeName, - String snapshotName) { - return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName, snapshotName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Delete a ElasticSnapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param snapshotName The name of the ElasticSnapshot. - * @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 delete(String resourceGroupName, String accountName, String poolName, String volumeName, - String snapshotName) { - beginDelete(resourceGroupName, accountName, poolName, volumeName, snapshotName).getFinalResult(); - } - - /** - * Delete a ElasticSnapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param snapshotName The name of the ElasticSnapshot. - * @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 delete(String resourceGroupName, String accountName, String poolName, String volumeName, - String snapshotName, Context context) { - beginDelete(resourceGroupName, accountName, poolName, volumeName, snapshotName, context).getFinalResult(); - } - - /** - * List ElasticSnapshot resources by ElasticVolume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @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 of a ElasticSnapshot list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByElasticVolumeSinglePageAsync(String resourceGroupName, - String accountName, String poolName, String volumeName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByElasticVolume(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * List ElasticSnapshot resources by ElasticVolume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @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 of a ElasticSnapshot list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByElasticVolumeAsync(String resourceGroupName, String accountName, - String poolName, String volumeName) { - return new PagedFlux<>( - () -> listByElasticVolumeSinglePageAsync(resourceGroupName, accountName, poolName, volumeName), - nextLink -> listByElasticVolumeNextSinglePageAsync(nextLink)); - } - - /** - * List ElasticSnapshot resources by ElasticVolume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @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 of a ElasticSnapshot list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticVolumeSinglePage(String resourceGroupName, - String accountName, String poolName, String volumeName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res = service.listByElasticVolumeSync(this.client.getEndpoint(), - this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, - volumeName, accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * List ElasticSnapshot resources by ElasticVolume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @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 of a ElasticSnapshot list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticVolumeSinglePage(String resourceGroupName, - String accountName, String poolName, String volumeName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByElasticVolumeSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * List ElasticSnapshot resources by ElasticVolume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @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 of a ElasticSnapshot list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByElasticVolume(String resourceGroupName, String accountName, - String poolName, String volumeName) { - return new PagedIterable<>( - () -> listByElasticVolumeSinglePage(resourceGroupName, accountName, poolName, volumeName), - nextLink -> listByElasticVolumeNextSinglePage(nextLink)); - } - - /** - * List ElasticSnapshot resources by ElasticVolume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @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 of a ElasticSnapshot list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByElasticVolume(String resourceGroupName, String accountName, - String poolName, String volumeName, Context context) { - return new PagedIterable<>( - () -> listByElasticVolumeSinglePage(resourceGroupName, accountName, poolName, volumeName, context), - nextLink -> listByElasticVolumeNextSinglePage(nextLink, context)); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 of a ElasticSnapshot list operation along with {@link PagedResponse} on successful - * completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByElasticVolumeNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext( - context -> service.listByElasticVolumeNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 of a ElasticSnapshot list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticVolumeNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByElasticVolumeNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 of a ElasticSnapshot list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticVolumeNextSinglePage(String nextLink, Context context) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByElasticVolumeNextSync(nextLink, this.client.getEndpoint(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - private static final ClientLogger LOGGER = new ClientLogger(ElasticSnapshotsClientImpl.class); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotsImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotsImpl.java deleted file mode 100644 index de5a2418aa00d..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotsImpl.java +++ /dev/null @@ -1,201 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.netapp.fluent.ElasticSnapshotsClient; -import com.azure.resourcemanager.netapp.fluent.models.ElasticSnapshotInner; -import com.azure.resourcemanager.netapp.models.ElasticSnapshot; -import com.azure.resourcemanager.netapp.models.ElasticSnapshots; - -public final class ElasticSnapshotsImpl implements ElasticSnapshots { - private static final ClientLogger LOGGER = new ClientLogger(ElasticSnapshotsImpl.class); - - private final ElasticSnapshotsClient innerClient; - - private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - - public ElasticSnapshotsImpl(ElasticSnapshotsClient innerClient, - com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public Response getWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName, String snapshotName, Context context) { - Response inner = this.serviceClient() - .getWithResponse(resourceGroupName, accountName, poolName, volumeName, snapshotName, context); - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new ElasticSnapshotImpl(inner.getValue(), this.manager())); - } - - public ElasticSnapshot get(String resourceGroupName, String accountName, String poolName, String volumeName, - String snapshotName) { - ElasticSnapshotInner inner - = this.serviceClient().get(resourceGroupName, accountName, poolName, volumeName, snapshotName); - if (inner != null) { - return new ElasticSnapshotImpl(inner, this.manager()); - } else { - return null; - } - } - - public void delete(String resourceGroupName, String accountName, String poolName, String volumeName, - String snapshotName) { - this.serviceClient().delete(resourceGroupName, accountName, poolName, volumeName, snapshotName); - } - - public void delete(String resourceGroupName, String accountName, String poolName, String volumeName, - String snapshotName, Context context) { - this.serviceClient().delete(resourceGroupName, accountName, poolName, volumeName, snapshotName, context); - } - - public PagedIterable listByElasticVolume(String resourceGroupName, String accountName, - String poolName, String volumeName) { - PagedIterable inner - = this.serviceClient().listByElasticVolume(resourceGroupName, accountName, poolName, volumeName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticSnapshotImpl(inner1, this.manager())); - } - - public PagedIterable listByElasticVolume(String resourceGroupName, String accountName, - String poolName, String volumeName, Context context) { - PagedIterable inner - = this.serviceClient().listByElasticVolume(resourceGroupName, accountName, poolName, volumeName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticSnapshotImpl(inner1, this.manager())); - } - - public ElasticSnapshot getById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String poolName = ResourceManagerUtils.getValueFromIdByName(id, "elasticCapacityPools"); - if (poolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticCapacityPools'.", id))); - } - String volumeName = ResourceManagerUtils.getValueFromIdByName(id, "elasticVolumes"); - if (volumeName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticVolumes'.", id))); - } - String snapshotName = ResourceManagerUtils.getValueFromIdByName(id, "elasticSnapshots"); - if (snapshotName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticSnapshots'.", id))); - } - return this.getWithResponse(resourceGroupName, accountName, poolName, volumeName, snapshotName, Context.NONE) - .getValue(); - } - - public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String poolName = ResourceManagerUtils.getValueFromIdByName(id, "elasticCapacityPools"); - if (poolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticCapacityPools'.", id))); - } - String volumeName = ResourceManagerUtils.getValueFromIdByName(id, "elasticVolumes"); - if (volumeName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticVolumes'.", id))); - } - String snapshotName = ResourceManagerUtils.getValueFromIdByName(id, "elasticSnapshots"); - if (snapshotName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticSnapshots'.", id))); - } - return this.getWithResponse(resourceGroupName, accountName, poolName, volumeName, snapshotName, context); - } - - public void deleteById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String poolName = ResourceManagerUtils.getValueFromIdByName(id, "elasticCapacityPools"); - if (poolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticCapacityPools'.", id))); - } - String volumeName = ResourceManagerUtils.getValueFromIdByName(id, "elasticVolumes"); - if (volumeName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticVolumes'.", id))); - } - String snapshotName = ResourceManagerUtils.getValueFromIdByName(id, "elasticSnapshots"); - if (snapshotName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticSnapshots'.", id))); - } - this.delete(resourceGroupName, accountName, poolName, volumeName, snapshotName, Context.NONE); - } - - public void deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String poolName = ResourceManagerUtils.getValueFromIdByName(id, "elasticCapacityPools"); - if (poolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticCapacityPools'.", id))); - } - String volumeName = ResourceManagerUtils.getValueFromIdByName(id, "elasticVolumes"); - if (volumeName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticVolumes'.", id))); - } - String snapshotName = ResourceManagerUtils.getValueFromIdByName(id, "elasticSnapshots"); - if (snapshotName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticSnapshots'.", id))); - } - this.delete(resourceGroupName, accountName, poolName, volumeName, snapshotName, context); - } - - private ElasticSnapshotsClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { - return this.serviceManager; - } - - public ElasticSnapshotImpl define(String name) { - return new ElasticSnapshotImpl(name, this.manager()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticVolumeImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticVolumeImpl.java deleted file mode 100644 index adb207a1a2229..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticVolumeImpl.java +++ /dev/null @@ -1,221 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.implementation; - -import com.azure.core.management.Region; -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.fluent.models.ElasticVolumeInner; -import com.azure.resourcemanager.netapp.models.ElasticVolume; -import com.azure.resourcemanager.netapp.models.ElasticVolumeProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumeRevert; -import com.azure.resourcemanager.netapp.models.ElasticVolumeUpdate; -import com.azure.resourcemanager.netapp.models.ElasticVolumeUpdateProperties; -import java.util.Collections; -import java.util.List; -import java.util.Map; - -public final class ElasticVolumeImpl implements ElasticVolume, ElasticVolume.Definition, ElasticVolume.Update { - private ElasticVolumeInner innerObject; - - private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - - public String id() { - return this.innerModel().id(); - } - - public String name() { - return this.innerModel().name(); - } - - public String type() { - return this.innerModel().type(); - } - - public String location() { - return this.innerModel().location(); - } - - public Map tags() { - Map inner = this.innerModel().tags(); - if (inner != null) { - return Collections.unmodifiableMap(inner); - } else { - return Collections.emptyMap(); - } - } - - public ElasticVolumeProperties properties() { - return this.innerModel().properties(); - } - - public String eTag() { - return this.innerModel().eTag(); - } - - public List zones() { - List inner = this.innerModel().zones(); - if (inner != null) { - return Collections.unmodifiableList(inner); - } else { - return Collections.emptyList(); - } - } - - public SystemData systemData() { - return this.innerModel().systemData(); - } - - public Region region() { - return Region.fromName(this.regionName()); - } - - public String regionName() { - return this.location(); - } - - public String resourceGroupName() { - return resourceGroupName; - } - - public ElasticVolumeInner innerModel() { - return this.innerObject; - } - - private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { - return this.serviceManager; - } - - private String resourceGroupName; - - private String accountName; - - private String poolName; - - private String volumeName; - - private ElasticVolumeUpdate updateBody; - - public ElasticVolumeImpl withExistingElasticCapacityPool(String resourceGroupName, String accountName, - String poolName) { - this.resourceGroupName = resourceGroupName; - this.accountName = accountName; - this.poolName = poolName; - return this; - } - - public ElasticVolume create() { - this.innerObject = serviceManager.serviceClient() - .getElasticVolumes() - .createOrUpdate(resourceGroupName, accountName, poolName, volumeName, this.innerModel(), Context.NONE); - return this; - } - - public ElasticVolume create(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticVolumes() - .createOrUpdate(resourceGroupName, accountName, poolName, volumeName, this.innerModel(), context); - return this; - } - - ElasticVolumeImpl(String name, com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerObject = new ElasticVolumeInner(); - this.serviceManager = serviceManager; - this.volumeName = name; - } - - public ElasticVolumeImpl update() { - this.updateBody = new ElasticVolumeUpdate(); - return this; - } - - public ElasticVolume apply() { - this.innerObject = serviceManager.serviceClient() - .getElasticVolumes() - .update(resourceGroupName, accountName, poolName, volumeName, updateBody, Context.NONE); - return this; - } - - public ElasticVolume apply(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticVolumes() - .update(resourceGroupName, accountName, poolName, volumeName, updateBody, context); - return this; - } - - ElasticVolumeImpl(ElasticVolumeInner innerObject, - com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerObject = innerObject; - this.serviceManager = serviceManager; - this.resourceGroupName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "resourceGroups"); - this.accountName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "elasticAccounts"); - this.poolName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "elasticCapacityPools"); - this.volumeName = ResourceManagerUtils.getValueFromIdByName(innerObject.id(), "elasticVolumes"); - } - - public ElasticVolume refresh() { - this.innerObject = serviceManager.serviceClient() - .getElasticVolumes() - .getWithResponse(resourceGroupName, accountName, poolName, volumeName, Context.NONE) - .getValue(); - return this; - } - - public ElasticVolume refresh(Context context) { - this.innerObject = serviceManager.serviceClient() - .getElasticVolumes() - .getWithResponse(resourceGroupName, accountName, poolName, volumeName, context) - .getValue(); - return this; - } - - public ElasticVolume revert(ElasticVolumeRevert body) { - return serviceManager.elasticVolumes().revert(resourceGroupName, accountName, poolName, volumeName, body); - } - - public ElasticVolume revert(ElasticVolumeRevert body, Context context) { - return serviceManager.elasticVolumes() - .revert(resourceGroupName, accountName, poolName, volumeName, body, context); - } - - public ElasticVolumeImpl withRegion(Region location) { - this.innerModel().withLocation(location.toString()); - return this; - } - - public ElasticVolumeImpl withRegion(String location) { - this.innerModel().withLocation(location); - return this; - } - - public ElasticVolumeImpl withTags(Map tags) { - if (isInCreateMode()) { - this.innerModel().withTags(tags); - return this; - } else { - this.updateBody.withTags(tags); - return this; - } - } - - public ElasticVolumeImpl withProperties(ElasticVolumeProperties properties) { - this.innerModel().withProperties(properties); - return this; - } - - public ElasticVolumeImpl withZones(List zones) { - this.innerModel().withZones(zones); - return this; - } - - public ElasticVolumeImpl withProperties(ElasticVolumeUpdateProperties properties) { - this.updateBody.withProperties(properties); - return this; - } - - private boolean isInCreateMode() { - return this.innerModel() == null || this.innerModel().id() == null; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticVolumesClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticVolumesClientImpl.java deleted file mode 100644 index 1070e6438b54e..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticVolumesClientImpl.java +++ /dev/null @@ -1,1710 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.implementation; - -import com.azure.core.annotation.BodyParam; -import com.azure.core.annotation.Delete; -import com.azure.core.annotation.ExpectedResponses; -import com.azure.core.annotation.Get; -import com.azure.core.annotation.HeaderParam; -import com.azure.core.annotation.Headers; -import com.azure.core.annotation.Host; -import com.azure.core.annotation.HostParam; -import com.azure.core.annotation.Patch; -import com.azure.core.annotation.PathParam; -import com.azure.core.annotation.Post; -import com.azure.core.annotation.Put; -import com.azure.core.annotation.QueryParam; -import com.azure.core.annotation.ReturnType; -import com.azure.core.annotation.ServiceInterface; -import com.azure.core.annotation.ServiceMethod; -import com.azure.core.annotation.UnexpectedResponseExceptionType; -import com.azure.core.http.rest.PagedFlux; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.PagedResponse; -import com.azure.core.http.rest.PagedResponseBase; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.RestProxy; -import com.azure.core.management.exception.ManagementException; -import com.azure.core.management.polling.PollResult; -import com.azure.core.util.BinaryData; -import com.azure.core.util.Context; -import com.azure.core.util.FluxUtil; -import com.azure.core.util.logging.ClientLogger; -import com.azure.core.util.polling.PollerFlux; -import com.azure.core.util.polling.SyncPoller; -import com.azure.resourcemanager.netapp.fluent.ElasticVolumesClient; -import com.azure.resourcemanager.netapp.fluent.models.ElasticVolumeInner; -import com.azure.resourcemanager.netapp.implementation.models.ElasticVolumeListResult; -import com.azure.resourcemanager.netapp.models.ElasticVolumeRevert; -import com.azure.resourcemanager.netapp.models.ElasticVolumeUpdate; -import java.nio.ByteBuffer; -import reactor.core.publisher.Flux; -import reactor.core.publisher.Mono; - -/** - * An instance of this class provides access to all the operations defined in ElasticVolumesClient. - */ -public final class ElasticVolumesClientImpl implements ElasticVolumesClient { - /** - * The proxy service used to perform REST calls. - */ - private final ElasticVolumesService service; - - /** - * The service client containing this operation class. - */ - private final NetAppManagementClientImpl client; - - /** - * Initializes an instance of ElasticVolumesClientImpl. - * - * @param client the instance of the service client containing this operation class. - */ - ElasticVolumesClientImpl(NetAppManagementClientImpl client) { - this.service - = RestProxy.create(ElasticVolumesService.class, client.getHttpPipeline(), client.getSerializerAdapter()); - this.client = client; - } - - /** - * The interface defining all the services for NetAppManagementClientElasticVolumes to be used by the proxy service - * to perform REST calls. - */ - @Host("{endpoint}") - @ServiceInterface(name = "NetAppManagementClientElasticVolumes") - public interface ElasticVolumesService { - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes/{volumeName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> get(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes/{volumeName}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response getSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @HeaderParam("Accept") String accept, Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes/{volumeName}") - @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> createOrUpdate(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") ElasticVolumeInner body, Context context); - - @Put("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes/{volumeName}") - @ExpectedResponses({ 200, 201 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response createOrUpdateSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") ElasticVolumeInner body, Context context); - - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes/{volumeName}") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> update(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") ElasticVolumeUpdate body, Context context); - - @Patch("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes/{volumeName}") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response updateSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") ElasticVolumeUpdate body, Context context); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes/{volumeName}") - @ExpectedResponses({ 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> delete(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, Context context); - - @Headers({ "Accept: application/json;q=0.9", "Content-Type: application/json" }) - @Delete("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes/{volumeName}") - @ExpectedResponses({ 202, 204 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response deleteSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByElasticPool(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByElasticPoolSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @HeaderParam("Accept") String accept, Context context); - - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes/{volumeName}/revert") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono>> revert(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") ElasticVolumeRevert body, Context context); - - @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.NetApp/elasticAccounts/{accountName}/elasticCapacityPools/{poolName}/elasticVolumes/{volumeName}/revert") - @ExpectedResponses({ 200, 202 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response revertSync(@HostParam("endpoint") String endpoint, - @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, - @PathParam("resourceGroupName") String resourceGroupName, @PathParam("accountName") String accountName, - @PathParam("poolName") String poolName, @PathParam("volumeName") String volumeName, - @HeaderParam("Content-Type") String contentType, @HeaderParam("Accept") String accept, - @BodyParam("application/json") ElasticVolumeRevert body, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Mono> listByElasticPoolNext( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, Context context); - - @Headers({ "Content-Type: application/json" }) - @Get("{nextLink}") - @ExpectedResponses({ 200 }) - @UnexpectedResponseExceptionType(ManagementException.class) - Response listByElasticPoolNextSync( - @PathParam(value = "nextLink", encoded = true) String nextLink, @HostParam("endpoint") String endpoint, - @HeaderParam("Accept") String accept, Context context); - } - - /** - * Get the details of the specified volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @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 details of the specified volume along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> getWithResponseAsync(String resourceGroupName, String accountName, - String poolName, String volumeName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, accept, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the details of the specified volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @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 details of the specified volume on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono getAsync(String resourceGroupName, String accountName, String poolName, - String volumeName) { - return getWithResponseAsync(resourceGroupName, accountName, poolName, volumeName) - .flatMap(res -> Mono.justOrEmpty(res.getValue())); - } - - /** - * Get the details of the specified volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @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 details of the specified volume along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public Response getWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - final String accept = "application/json"; - return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), - resourceGroupName, accountName, poolName, volumeName, accept, context); - } - - /** - * Get the details of the specified volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @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 details of the specified volume. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticVolumeInner get(String resourceGroupName, String accountName, String poolName, String volumeName) { - return getWithResponse(resourceGroupName, accountName, poolName, volumeName, Context.NONE).getValue(); - } - - /** - * Create or update the specified volume within the capacity pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body Resource create parameters. - * @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 netApp Elastic Volume resource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> createOrUpdateWithResponseAsync(String resourceGroupName, - String accountName, String poolName, String volumeName, ElasticVolumeInner body) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (body == null) { - return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.createOrUpdate(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, contentType, - accept, body, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Create or update the specified volume within the capacity pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body Resource create parameters. - * @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 netApp Elastic Volume resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, - String poolName, String volumeName, ElasticVolumeInner body) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, contentType, accept, - body, Context.NONE); - } - - /** - * Create or update the specified volume within the capacity pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body Resource create parameters. - * @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 netApp Elastic Volume resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response createOrUpdateWithResponse(String resourceGroupName, String accountName, - String poolName, String volumeName, ElasticVolumeInner body, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.createOrUpdateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, contentType, accept, - body, context); - } - - /** - * Create or update the specified volume within the capacity pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body Resource create parameters. - * @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 netApp Elastic Volume resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ElasticVolumeInner> beginCreateOrUpdateAsync( - String resourceGroupName, String accountName, String poolName, String volumeName, ElasticVolumeInner body) { - Mono>> mono - = createOrUpdateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - ElasticVolumeInner.class, ElasticVolumeInner.class, this.client.getContext()); - } - - /** - * Create or update the specified volume within the capacity pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body Resource create parameters. - * @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 netApp Elastic Volume resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ElasticVolumeInner> beginCreateOrUpdate(String resourceGroupName, - String accountName, String poolName, String volumeName, ElasticVolumeInner body) { - Response response - = createOrUpdateWithResponse(resourceGroupName, accountName, poolName, volumeName, body); - return this.client.getLroResult(response, ElasticVolumeInner.class, - ElasticVolumeInner.class, Context.NONE); - } - - /** - * Create or update the specified volume within the capacity pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body Resource create parameters. - * @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 netApp Elastic Volume resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ElasticVolumeInner> beginCreateOrUpdate(String resourceGroupName, - String accountName, String poolName, String volumeName, ElasticVolumeInner body, Context context) { - Response response - = createOrUpdateWithResponse(resourceGroupName, accountName, poolName, volumeName, body, context); - return this.client.getLroResult(response, ElasticVolumeInner.class, - ElasticVolumeInner.class, context); - } - - /** - * Create or update the specified volume within the capacity pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body Resource create parameters. - * @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 netApp Elastic Volume resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono createOrUpdateAsync(String resourceGroupName, String accountName, String poolName, - String volumeName, ElasticVolumeInner body) { - return beginCreateOrUpdateAsync(resourceGroupName, accountName, poolName, volumeName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Create or update the specified volume within the capacity pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body Resource create parameters. - * @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 netApp Elastic Volume resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticVolumeInner createOrUpdate(String resourceGroupName, String accountName, String poolName, - String volumeName, ElasticVolumeInner body) { - return beginCreateOrUpdate(resourceGroupName, accountName, poolName, volumeName, body).getFinalResult(); - } - - /** - * Create or update the specified volume within the capacity pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body Resource create parameters. - * @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 netApp Elastic Volume resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticVolumeInner createOrUpdate(String resourceGroupName, String accountName, String poolName, - String volumeName, ElasticVolumeInner body, Context context) { - return beginCreateOrUpdate(resourceGroupName, accountName, poolName, volumeName, body, context) - .getFinalResult(); - } - - /** - * Patch the specified elastic volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Volume resource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> updateWithResponseAsync(String resourceGroupName, String accountName, - String poolName, String volumeName, ElasticVolumeUpdate body) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (body == null) { - return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.update(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, contentType, - accept, body, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Patch the specified elastic volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Volume resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName, ElasticVolumeUpdate body) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, contentType, accept, - body, Context.NONE); - } - - /** - * Patch the specified elastic volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Volume resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response updateWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName, ElasticVolumeUpdate body, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.updateSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, contentType, accept, - body, context); - } - - /** - * Patch the specified elastic volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link PollerFlux} for polling of netApp Elastic Volume resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ElasticVolumeInner> beginUpdateAsync(String resourceGroupName, - String accountName, String poolName, String volumeName, ElasticVolumeUpdate body) { - Mono>> mono - = updateWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - ElasticVolumeInner.class, ElasticVolumeInner.class, this.client.getContext()); - } - - /** - * Patch the specified elastic volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp Elastic Volume resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ElasticVolumeInner> beginUpdate(String resourceGroupName, - String accountName, String poolName, String volumeName, ElasticVolumeUpdate body) { - Response response = updateWithResponse(resourceGroupName, accountName, poolName, volumeName, body); - return this.client.getLroResult(response, ElasticVolumeInner.class, - ElasticVolumeInner.class, Context.NONE); - } - - /** - * Patch the specified elastic volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the {@link SyncPoller} for polling of netApp Elastic Volume resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ElasticVolumeInner> beginUpdate(String resourceGroupName, - String accountName, String poolName, String volumeName, ElasticVolumeUpdate body, Context context) { - Response response - = updateWithResponse(resourceGroupName, accountName, poolName, volumeName, body, context); - return this.client.getLroResult(response, ElasticVolumeInner.class, - ElasticVolumeInner.class, context); - } - - /** - * Patch the specified elastic volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Volume resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono updateAsync(String resourceGroupName, String accountName, String poolName, - String volumeName, ElasticVolumeUpdate body) { - return beginUpdateAsync(resourceGroupName, accountName, poolName, volumeName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Patch the specified elastic volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body The resource properties to be updated. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Volume resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticVolumeInner update(String resourceGroupName, String accountName, String poolName, String volumeName, - ElasticVolumeUpdate body) { - return beginUpdate(resourceGroupName, accountName, poolName, volumeName, body).getFinalResult(); - } - - /** - * Patch the specified elastic volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body The resource properties to be updated. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Volume resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticVolumeInner update(String resourceGroupName, String accountName, String poolName, String volumeName, - ElasticVolumeUpdate body, Context context) { - return beginUpdate(resourceGroupName, accountName, poolName, volumeName, body, context).getFinalResult(); - } - - /** - * Delete the specified Elastic Volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @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>> deleteWithResponseAsync(String resourceGroupName, String accountName, - String poolName, String volumeName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - return FluxUtil - .withContext(context -> service.delete(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Delete the specified Elastic Volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @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 deleteWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, Context.NONE); - } - - /** - * Delete the specified Elastic Volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @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 deleteWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - return service.deleteSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, context); - } - - /** - * Delete the specified Elastic Volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @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> beginDeleteAsync(String resourceGroupName, String accountName, - String poolName, String volumeName) { - Mono>> mono - = deleteWithResponseAsync(resourceGroupName, accountName, poolName, volumeName); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), Void.class, Void.class, - this.client.getContext()); - } - - /** - * Delete the specified Elastic Volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @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> beginDelete(String resourceGroupName, String accountName, String poolName, - String volumeName) { - Response response = deleteWithResponse(resourceGroupName, accountName, poolName, volumeName); - return this.client.getLroResult(response, Void.class, Void.class, Context.NONE); - } - - /** - * Delete the specified Elastic Volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @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> beginDelete(String resourceGroupName, String accountName, String poolName, - String volumeName, Context context) { - Response response - = deleteWithResponse(resourceGroupName, accountName, poolName, volumeName, context); - return this.client.getLroResult(response, Void.class, Void.class, context); - } - - /** - * Delete the specified Elastic Volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @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 deleteAsync(String resourceGroupName, String accountName, String poolName, String volumeName) { - return beginDeleteAsync(resourceGroupName, accountName, poolName, volumeName).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Delete the specified Elastic Volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @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 delete(String resourceGroupName, String accountName, String poolName, String volumeName) { - beginDelete(resourceGroupName, accountName, poolName, volumeName).getFinalResult(); - } - - /** - * Delete the specified Elastic Volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @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 delete(String resourceGroupName, String accountName, String poolName, String volumeName, - Context context) { - beginDelete(resourceGroupName, accountName, poolName, volumeName, context).getFinalResult(); - } - - /** - * List all Elastic Volumes within the Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @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 of a ElasticVolume list operation along with {@link PagedResponse} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByElasticPoolSinglePageAsync(String resourceGroupName, - String accountName, String poolName) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByElasticPool(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * List all Elastic Volumes within the Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @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 of a ElasticVolume list operation as paginated response with {@link PagedFlux}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - private PagedFlux listByElasticPoolAsync(String resourceGroupName, String accountName, - String poolName) { - return new PagedFlux<>(() -> listByElasticPoolSinglePageAsync(resourceGroupName, accountName, poolName), - nextLink -> listByElasticPoolNextSinglePageAsync(nextLink)); - } - - /** - * List all Elastic Volumes within the Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @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 of a ElasticVolume list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticPoolSinglePage(String resourceGroupName, String accountName, - String poolName) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByElasticPoolSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * List all Elastic Volumes within the Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @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 of a ElasticVolume list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticPoolSinglePage(String resourceGroupName, String accountName, - String poolName, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByElasticPoolSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * List all Elastic Volumes within the Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @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 of a ElasticVolume list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByElasticPool(String resourceGroupName, String accountName, - String poolName) { - return new PagedIterable<>(() -> listByElasticPoolSinglePage(resourceGroupName, accountName, poolName), - nextLink -> listByElasticPoolNextSinglePage(nextLink)); - } - - /** - * List all Elastic Volumes within the Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @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 of a ElasticVolume list operation as paginated response with {@link PagedIterable}. - */ - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listByElasticPool(String resourceGroupName, String accountName, - String poolName, Context context) { - return new PagedIterable<>(() -> listByElasticPoolSinglePage(resourceGroupName, accountName, poolName, context), - nextLink -> listByElasticPoolNextSinglePage(nextLink, context)); - } - - /** - * Revert an Elastic Volume to the snapshot specified in the body. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body The content of the action request. - * @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 netApp Elastic Volume resource along with {@link Response} on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono>> revertWithResponseAsync(String resourceGroupName, String accountName, - String poolName, String volumeName, ElasticVolumeRevert body) { - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - return Mono.error(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - return Mono - .error(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - return Mono.error(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - return Mono.error(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - return Mono.error(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (body == null) { - return Mono.error(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.revert(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, contentType, - accept, body, context)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Revert an Elastic Volume to the snapshot specified in the body. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body The content of the action request. - * @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 netApp Elastic Volume resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response revertWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName, ElasticVolumeRevert body) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.revertSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, contentType, accept, - body, Context.NONE); - } - - /** - * Revert an Elastic Volume to the snapshot specified in the body. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body The content of the action request. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Volume resource along with {@link Response}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Response revertWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName, ElasticVolumeRevert body, Context context) { - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - if (this.client.getSubscriptionId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getSubscriptionId() is required and cannot be null.")); - } - if (resourceGroupName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter resourceGroupName is required and cannot be null.")); - } - if (accountName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter accountName is required and cannot be null.")); - } - if (poolName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter poolName is required and cannot be null.")); - } - if (volumeName == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter volumeName is required and cannot be null.")); - } - if (body == null) { - throw LOGGER.atError().log(new IllegalArgumentException("Parameter body is required and cannot be null.")); - } else { - body.validate(); - } - final String contentType = "application/json"; - final String accept = "application/json"; - return service.revertSync(this.client.getEndpoint(), this.client.getApiVersion(), - this.client.getSubscriptionId(), resourceGroupName, accountName, poolName, volumeName, contentType, accept, - body, context); - } - - /** - * Revert an Elastic Volume to the snapshot specified in the body. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body The content of the action request. - * @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 netApp Elastic Volume resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - private PollerFlux, ElasticVolumeInner> beginRevertAsync(String resourceGroupName, - String accountName, String poolName, String volumeName, ElasticVolumeRevert body) { - Mono>> mono - = revertWithResponseAsync(resourceGroupName, accountName, poolName, volumeName, body); - return this.client.getLroResult(mono, this.client.getHttpPipeline(), - ElasticVolumeInner.class, ElasticVolumeInner.class, this.client.getContext()); - } - - /** - * Revert an Elastic Volume to the snapshot specified in the body. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body The content of the action request. - * @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 netApp Elastic Volume resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ElasticVolumeInner> beginRevert(String resourceGroupName, - String accountName, String poolName, String volumeName, ElasticVolumeRevert body) { - Response response = revertWithResponse(resourceGroupName, accountName, poolName, volumeName, body); - return this.client.getLroResult(response, ElasticVolumeInner.class, - ElasticVolumeInner.class, Context.NONE); - } - - /** - * Revert an Elastic Volume to the snapshot specified in the body. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body The content of the action request. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws 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 netApp Elastic Volume resource. - */ - @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) - public SyncPoller, ElasticVolumeInner> beginRevert(String resourceGroupName, - String accountName, String poolName, String volumeName, ElasticVolumeRevert body, Context context) { - Response response - = revertWithResponse(resourceGroupName, accountName, poolName, volumeName, body, context); - return this.client.getLroResult(response, ElasticVolumeInner.class, - ElasticVolumeInner.class, context); - } - - /** - * Revert an Elastic Volume to the snapshot specified in the body. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body The content of the action request. - * @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 netApp Elastic Volume resource on successful completion of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono revertAsync(String resourceGroupName, String accountName, String poolName, - String volumeName, ElasticVolumeRevert body) { - return beginRevertAsync(resourceGroupName, accountName, poolName, volumeName, body).last() - .flatMap(this.client::getLroFinalResultOrError); - } - - /** - * Revert an Elastic Volume to the snapshot specified in the body. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body The content of the action request. - * @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 netApp Elastic Volume resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticVolumeInner revert(String resourceGroupName, String accountName, String poolName, String volumeName, - ElasticVolumeRevert body) { - return beginRevert(resourceGroupName, accountName, poolName, volumeName, body).getFinalResult(); - } - - /** - * Revert an Elastic Volume to the snapshot specified in the body. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body The content of the action request. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Volume resource. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - public ElasticVolumeInner revert(String resourceGroupName, String accountName, String poolName, String volumeName, - ElasticVolumeRevert body, Context context) { - return beginRevert(resourceGroupName, accountName, poolName, volumeName, body, context).getFinalResult(); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 of a ElasticVolume list operation along with {@link PagedResponse} on successful completion - * of {@link Mono}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private Mono> listByElasticPoolNextSinglePageAsync(String nextLink) { - if (nextLink == null) { - return Mono.error(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - return Mono.error( - new IllegalArgumentException("Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - return FluxUtil - .withContext(context -> service.listByElasticPoolNext(nextLink, this.client.getEndpoint(), accept, context)) - .>map(res -> new PagedResponseBase<>(res.getRequest(), - res.getStatusCode(), res.getHeaders(), res.getValue().value(), res.getValue().nextLink(), null)) - .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 of a ElasticVolume list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticPoolNextSinglePage(String nextLink) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByElasticPoolNextSync(nextLink, this.client.getEndpoint(), accept, Context.NONE); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - /** - * Get the next page of items. - * - * @param nextLink The URL to get the next list of items. - * @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 of a ElasticVolume list operation along with {@link PagedResponse}. - */ - @ServiceMethod(returns = ReturnType.SINGLE) - private PagedResponse listByElasticPoolNextSinglePage(String nextLink, Context context) { - if (nextLink == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Parameter nextLink is required and cannot be null.")); - } - if (this.client.getEndpoint() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Parameter this.client.getEndpoint() is required and cannot be null.")); - } - final String accept = "application/json"; - Response res - = service.listByElasticPoolNextSync(nextLink, this.client.getEndpoint(), accept, context); - return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), res.getValue().value(), - res.getValue().nextLink(), null); - } - - private static final ClientLogger LOGGER = new ClientLogger(ElasticVolumesClientImpl.class); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticVolumesImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticVolumesImpl.java deleted file mode 100644 index 7bb4bbf1f4fe0..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticVolumesImpl.java +++ /dev/null @@ -1,200 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.implementation; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.http.rest.SimpleResponse; -import com.azure.core.util.Context; -import com.azure.core.util.logging.ClientLogger; -import com.azure.resourcemanager.netapp.fluent.ElasticVolumesClient; -import com.azure.resourcemanager.netapp.fluent.models.ElasticVolumeInner; -import com.azure.resourcemanager.netapp.models.ElasticVolume; -import com.azure.resourcemanager.netapp.models.ElasticVolumeRevert; -import com.azure.resourcemanager.netapp.models.ElasticVolumes; - -public final class ElasticVolumesImpl implements ElasticVolumes { - private static final ClientLogger LOGGER = new ClientLogger(ElasticVolumesImpl.class); - - private final ElasticVolumesClient innerClient; - - private final com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager; - - public ElasticVolumesImpl(ElasticVolumesClient innerClient, - com.azure.resourcemanager.netapp.NetAppFilesManager serviceManager) { - this.innerClient = innerClient; - this.serviceManager = serviceManager; - } - - public Response getWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName, Context context) { - Response inner - = this.serviceClient().getWithResponse(resourceGroupName, accountName, poolName, volumeName, context); - return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), - new ElasticVolumeImpl(inner.getValue(), this.manager())); - } - - public ElasticVolume get(String resourceGroupName, String accountName, String poolName, String volumeName) { - ElasticVolumeInner inner = this.serviceClient().get(resourceGroupName, accountName, poolName, volumeName); - if (inner != null) { - return new ElasticVolumeImpl(inner, this.manager()); - } else { - return null; - } - } - - public void delete(String resourceGroupName, String accountName, String poolName, String volumeName) { - this.serviceClient().delete(resourceGroupName, accountName, poolName, volumeName); - } - - public void delete(String resourceGroupName, String accountName, String poolName, String volumeName, - Context context) { - this.serviceClient().delete(resourceGroupName, accountName, poolName, volumeName, context); - } - - public PagedIterable listByElasticPool(String resourceGroupName, String accountName, - String poolName) { - PagedIterable inner - = this.serviceClient().listByElasticPool(resourceGroupName, accountName, poolName); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticVolumeImpl(inner1, this.manager())); - } - - public PagedIterable listByElasticPool(String resourceGroupName, String accountName, String poolName, - Context context) { - PagedIterable inner - = this.serviceClient().listByElasticPool(resourceGroupName, accountName, poolName, context); - return ResourceManagerUtils.mapPage(inner, inner1 -> new ElasticVolumeImpl(inner1, this.manager())); - } - - public ElasticVolume revert(String resourceGroupName, String accountName, String poolName, String volumeName, - ElasticVolumeRevert body) { - ElasticVolumeInner inner - = this.serviceClient().revert(resourceGroupName, accountName, poolName, volumeName, body); - if (inner != null) { - return new ElasticVolumeImpl(inner, this.manager()); - } else { - return null; - } - } - - public ElasticVolume revert(String resourceGroupName, String accountName, String poolName, String volumeName, - ElasticVolumeRevert body, Context context) { - ElasticVolumeInner inner - = this.serviceClient().revert(resourceGroupName, accountName, poolName, volumeName, body, context); - if (inner != null) { - return new ElasticVolumeImpl(inner, this.manager()); - } else { - return null; - } - } - - public ElasticVolume getById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String poolName = ResourceManagerUtils.getValueFromIdByName(id, "elasticCapacityPools"); - if (poolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticCapacityPools'.", id))); - } - String volumeName = ResourceManagerUtils.getValueFromIdByName(id, "elasticVolumes"); - if (volumeName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticVolumes'.", id))); - } - return this.getWithResponse(resourceGroupName, accountName, poolName, volumeName, Context.NONE).getValue(); - } - - public Response getByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String poolName = ResourceManagerUtils.getValueFromIdByName(id, "elasticCapacityPools"); - if (poolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticCapacityPools'.", id))); - } - String volumeName = ResourceManagerUtils.getValueFromIdByName(id, "elasticVolumes"); - if (volumeName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticVolumes'.", id))); - } - return this.getWithResponse(resourceGroupName, accountName, poolName, volumeName, context); - } - - public void deleteById(String id) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String poolName = ResourceManagerUtils.getValueFromIdByName(id, "elasticCapacityPools"); - if (poolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticCapacityPools'.", id))); - } - String volumeName = ResourceManagerUtils.getValueFromIdByName(id, "elasticVolumes"); - if (volumeName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticVolumes'.", id))); - } - this.delete(resourceGroupName, accountName, poolName, volumeName, Context.NONE); - } - - public void deleteByIdWithResponse(String id, Context context) { - String resourceGroupName = ResourceManagerUtils.getValueFromIdByName(id, "resourceGroups"); - if (resourceGroupName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'resourceGroups'.", id))); - } - String accountName = ResourceManagerUtils.getValueFromIdByName(id, "elasticAccounts"); - if (accountName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticAccounts'.", id))); - } - String poolName = ResourceManagerUtils.getValueFromIdByName(id, "elasticCapacityPools"); - if (poolName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticCapacityPools'.", id))); - } - String volumeName = ResourceManagerUtils.getValueFromIdByName(id, "elasticVolumes"); - if (volumeName == null) { - throw LOGGER.logExceptionAsError(new IllegalArgumentException( - String.format("The resource ID '%s' is not valid. Missing path segment 'elasticVolumes'.", id))); - } - this.delete(resourceGroupName, accountName, poolName, volumeName, context); - } - - private ElasticVolumesClient serviceClient() { - return this.innerClient; - } - - private com.azure.resourcemanager.netapp.NetAppFilesManager manager() { - return this.serviceManager; - } - - public ElasticVolumeImpl define(String name) { - return new ElasticVolumeImpl(name, this.manager()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppAccountImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppAccountImpl.java index d8a9b6646b30f..6b3e284b11155 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppAccountImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppAccountImpl.java @@ -9,11 +9,10 @@ import com.azure.core.util.Context; import com.azure.resourcemanager.netapp.fluent.models.NetAppAccountInner; import com.azure.resourcemanager.netapp.models.AccountEncryption; +import com.azure.resourcemanager.netapp.models.AccountEncryptionPatch; import com.azure.resourcemanager.netapp.models.ActiveDirectory; import com.azure.resourcemanager.netapp.models.ChangeKeyVault; import com.azure.resourcemanager.netapp.models.EncryptionTransitionRequest; -import com.azure.resourcemanager.netapp.models.EntraIdConfig; -import com.azure.resourcemanager.netapp.models.EntraIdConfigPatch; import com.azure.resourcemanager.netapp.models.GetKeyVaultStatusResponse; import com.azure.resourcemanager.netapp.models.LdapConfiguration; import com.azure.resourcemanager.netapp.models.LdapConfigurationPatch; @@ -80,10 +79,6 @@ public List activeDirectories() { } } - public EntraIdConfig entraIdConfig() { - return this.innerModel().entraIdConfig(); - } - public AccountEncryption encryption() { return this.innerModel().encryption(); } @@ -277,19 +272,9 @@ public NetAppAccountImpl withActiveDirectories(List activeDirec } } - public NetAppAccountImpl withEntraIdConfig(EntraIdConfig entraIdConfig) { - this.innerModel().withEntraIdConfig(entraIdConfig); - return this; - } - public NetAppAccountImpl withEncryption(AccountEncryption encryption) { - if (isInCreateMode()) { - this.innerModel().withEncryption(encryption); - return this; - } else { - this.updateBody.withEncryption(encryption); - return this; - } + this.innerModel().withEncryption(encryption); + return this; } public NetAppAccountImpl withNfsV4IdDomain(String nfsV4IdDomain) { @@ -307,8 +292,8 @@ public NetAppAccountImpl withLdapConfiguration(LdapConfiguration ldapConfigurati return this; } - public NetAppAccountImpl withEntraIdConfig(EntraIdConfigPatch entraIdConfig) { - this.updateBody.withEntraIdConfig(entraIdConfig); + public NetAppAccountImpl withEncryption(AccountEncryptionPatch encryption) { + this.updateBody.withEncryption(encryption); return this; } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientImpl.java index 383ea49a30d2d..eebcb8427cc8c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientImpl.java @@ -27,7 +27,6 @@ import com.azure.core.util.serializer.SerializerAdapter; import com.azure.core.util.serializer.SerializerEncoding; import com.azure.resourcemanager.netapp.fluent.AccountsClient; -import com.azure.resourcemanager.netapp.fluent.ActiveDirectoryConfigsClient; import com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient; import com.azure.resourcemanager.netapp.fluent.BackupVaultsClient; import com.azure.resourcemanager.netapp.fluent.BackupsClient; @@ -36,14 +35,6 @@ import com.azure.resourcemanager.netapp.fluent.BackupsUnderVolumesClient; import com.azure.resourcemanager.netapp.fluent.BucketsClient; import com.azure.resourcemanager.netapp.fluent.CachesClient; -import com.azure.resourcemanager.netapp.fluent.ElasticAccountsClient; -import com.azure.resourcemanager.netapp.fluent.ElasticBackupPoliciesClient; -import com.azure.resourcemanager.netapp.fluent.ElasticBackupVaultsClient; -import com.azure.resourcemanager.netapp.fluent.ElasticBackupsClient; -import com.azure.resourcemanager.netapp.fluent.ElasticCapacityPoolsClient; -import com.azure.resourcemanager.netapp.fluent.ElasticSnapshotPoliciesClient; -import com.azure.resourcemanager.netapp.fluent.ElasticSnapshotsClient; -import com.azure.resourcemanager.netapp.fluent.ElasticVolumesClient; import com.azure.resourcemanager.netapp.fluent.NetAppManagementClient; import com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsAccountsClient; import com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsClient; @@ -339,132 +330,6 @@ public CachesClient getCaches() { return this.caches; } - /** - * The ElasticAccountsClient object to access its operations. - */ - private final ElasticAccountsClient elasticAccounts; - - /** - * Gets the ElasticAccountsClient object to access its operations. - * - * @return the ElasticAccountsClient object. - */ - public ElasticAccountsClient getElasticAccounts() { - return this.elasticAccounts; - } - - /** - * The ElasticCapacityPoolsClient object to access its operations. - */ - private final ElasticCapacityPoolsClient elasticCapacityPools; - - /** - * Gets the ElasticCapacityPoolsClient object to access its operations. - * - * @return the ElasticCapacityPoolsClient object. - */ - public ElasticCapacityPoolsClient getElasticCapacityPools() { - return this.elasticCapacityPools; - } - - /** - * The ElasticVolumesClient object to access its operations. - */ - private final ElasticVolumesClient elasticVolumes; - - /** - * Gets the ElasticVolumesClient object to access its operations. - * - * @return the ElasticVolumesClient object. - */ - public ElasticVolumesClient getElasticVolumes() { - return this.elasticVolumes; - } - - /** - * The ElasticSnapshotsClient object to access its operations. - */ - private final ElasticSnapshotsClient elasticSnapshots; - - /** - * Gets the ElasticSnapshotsClient object to access its operations. - * - * @return the ElasticSnapshotsClient object. - */ - public ElasticSnapshotsClient getElasticSnapshots() { - return this.elasticSnapshots; - } - - /** - * The ElasticSnapshotPoliciesClient object to access its operations. - */ - private final ElasticSnapshotPoliciesClient elasticSnapshotPolicies; - - /** - * Gets the ElasticSnapshotPoliciesClient object to access its operations. - * - * @return the ElasticSnapshotPoliciesClient object. - */ - public ElasticSnapshotPoliciesClient getElasticSnapshotPolicies() { - return this.elasticSnapshotPolicies; - } - - /** - * The ElasticBackupVaultsClient object to access its operations. - */ - private final ElasticBackupVaultsClient elasticBackupVaults; - - /** - * Gets the ElasticBackupVaultsClient object to access its operations. - * - * @return the ElasticBackupVaultsClient object. - */ - public ElasticBackupVaultsClient getElasticBackupVaults() { - return this.elasticBackupVaults; - } - - /** - * The ElasticBackupPoliciesClient object to access its operations. - */ - private final ElasticBackupPoliciesClient elasticBackupPolicies; - - /** - * Gets the ElasticBackupPoliciesClient object to access its operations. - * - * @return the ElasticBackupPoliciesClient object. - */ - public ElasticBackupPoliciesClient getElasticBackupPolicies() { - return this.elasticBackupPolicies; - } - - /** - * The ElasticBackupsClient object to access its operations. - */ - private final ElasticBackupsClient elasticBackups; - - /** - * Gets the ElasticBackupsClient object to access its operations. - * - * @return the ElasticBackupsClient object. - */ - public ElasticBackupsClient getElasticBackups() { - return this.elasticBackups; - } - - /** - * The ActiveDirectoryConfigsClient object to access its operations. - */ - private final ActiveDirectoryConfigsClient activeDirectoryConfigs; - - /** - * Gets the ActiveDirectoryConfigsClient object to access its operations. - * - * @return the ActiveDirectoryConfigsClient object. - */ - public ActiveDirectoryConfigsClient getActiveDirectoryConfigs() { - return this.activeDirectoryConfigs; - } - /** * The NetAppResourceQuotaLimitsClient object to access its operations. */ @@ -622,7 +487,7 @@ public NetAppResourceUsagesClient getNetAppResourceUsages() { this.defaultPollInterval = defaultPollInterval; this.endpoint = endpoint; this.subscriptionId = subscriptionId; - this.apiVersion = "2026-06-15-preview"; + this.apiVersion = "2026-08-01"; this.operations = new OperationsClientImpl(this); this.netAppResourceQuotaLimitsAccounts = new NetAppResourceQuotaLimitsAccountsClientImpl(this); this.volumeGroups = new VolumeGroupsClientImpl(this); @@ -636,15 +501,6 @@ public NetAppResourceUsagesClient getNetAppResourceUsages() { this.backupVaults = new BackupVaultsClientImpl(this); this.buckets = new BucketsClientImpl(this); this.caches = new CachesClientImpl(this); - this.elasticAccounts = new ElasticAccountsClientImpl(this); - this.elasticCapacityPools = new ElasticCapacityPoolsClientImpl(this); - this.elasticVolumes = new ElasticVolumesClientImpl(this); - this.elasticSnapshots = new ElasticSnapshotsClientImpl(this); - this.elasticSnapshotPolicies = new ElasticSnapshotPoliciesClientImpl(this); - this.elasticBackupVaults = new ElasticBackupVaultsClientImpl(this); - this.elasticBackupPolicies = new ElasticBackupPoliciesClientImpl(this); - this.elasticBackups = new ElasticBackupsClientImpl(this); - this.activeDirectoryConfigs = new ActiveDirectoryConfigsClientImpl(this); this.netAppResourceQuotaLimits = new NetAppResourceQuotaLimitsClientImpl(this); this.netAppResourceRegionInfos = new NetAppResourceRegionInfosClientImpl(this); this.accounts = new AccountsClientImpl(this); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeImpl.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeImpl.java index 24a3e1e152a84..3d7b5ddb758e7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeImpl.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeImpl.java @@ -23,8 +23,6 @@ import com.azure.resourcemanager.netapp.models.FileAccessLogs; import com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserRequest; import com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserResponse; -import com.azure.resourcemanager.netapp.models.LargeVolumeType; -import com.azure.resourcemanager.netapp.models.LdapServerType; import com.azure.resourcemanager.netapp.models.ListQuotaReportResult; import com.azure.resourcemanager.netapp.models.ListReplicationsRequest; import com.azure.resourcemanager.netapp.models.MountTargetProperties; @@ -42,7 +40,6 @@ import com.azure.resourcemanager.netapp.models.SmbNonBrowsable; import com.azure.resourcemanager.netapp.models.SvmPeerCommandResponse; import com.azure.resourcemanager.netapp.models.Volume; -import com.azure.resourcemanager.netapp.models.VolumeLanguage; import com.azure.resourcemanager.netapp.models.VolumePatch; import com.azure.resourcemanager.netapp.models.VolumePatchPropertiesDataProtection; import com.azure.resourcemanager.netapp.models.VolumePatchPropertiesExportPolicy; @@ -243,10 +240,6 @@ public Boolean ldapEnabled() { return this.innerModel().ldapEnabled(); } - public LdapServerType ldapServerType() { - return this.innerModel().ldapServerType(); - } - public Boolean coolAccess() { return this.innerModel().coolAccess(); } @@ -349,10 +342,6 @@ public Boolean isLargeVolume() { return this.innerModel().isLargeVolume(); } - public LargeVolumeType largeVolumeType() { - return this.innerModel().largeVolumeType(); - } - public String originatingResourceId() { return this.innerModel().originatingResourceId(); } @@ -361,10 +350,6 @@ public Long inheritedSizeInBytes() { return this.innerModel().inheritedSizeInBytes(); } - public VolumeLanguage language() { - return this.innerModel().language(); - } - public BreakthroughMode breakthroughMode() { return this.innerModel().breakthroughMode(); } @@ -837,11 +822,6 @@ public VolumeImpl withLdapEnabled(Boolean ldapEnabled) { return this; } - public VolumeImpl withLdapServerType(LdapServerType ldapServerType) { - this.innerModel().withLdapServerType(ldapServerType); - return this; - } - public VolumeImpl withCoolAccess(Boolean coolAccess) { if (isInCreateMode()) { this.innerModel().withCoolAccess(coolAccess); @@ -957,16 +937,6 @@ public VolumeImpl withIsLargeVolume(Boolean isLargeVolume) { return this; } - public VolumeImpl withLargeVolumeType(LargeVolumeType largeVolumeType) { - this.innerModel().withLargeVolumeType(largeVolumeType); - return this; - } - - public VolumeImpl withLanguage(VolumeLanguage language) { - this.innerModel().withLanguage(language); - return this; - } - public VolumeImpl withBreakthroughMode(BreakthroughMode breakthroughMode) { this.innerModel().withBreakthroughMode(breakthroughMode); return this; diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ActiveDirectoryConfigListResult.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ActiveDirectoryConfigListResult.java deleted file mode 100644 index c4156bf746f6c..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ActiveDirectoryConfigListResult.java +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.implementation.models; - -import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.netapp.fluent.models.ActiveDirectoryConfigInner; -import java.io.IOException; -import java.util.List; - -/** - * The response of a ActiveDirectoryConfig list operation. - */ -@Immutable -public final class ActiveDirectoryConfigListResult implements JsonSerializable { - /* - * The ActiveDirectoryConfig items on this page - */ - private List value; - - /* - * The link to the next page of items - */ - private String nextLink; - - /** - * Creates an instance of ActiveDirectoryConfigListResult class. - */ - private ActiveDirectoryConfigListResult() { - } - - /** - * Get the value property: The ActiveDirectoryConfig items on this page. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Get the nextLink property: The link to the next page of items. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property value in model ActiveDirectoryConfigListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ActiveDirectoryConfigListResult.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeStringField("nextLink", this.nextLink); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ActiveDirectoryConfigListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ActiveDirectoryConfigListResult 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 ActiveDirectoryConfigListResult. - */ - public static ActiveDirectoryConfigListResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ActiveDirectoryConfigListResult deserializedActiveDirectoryConfigListResult - = new ActiveDirectoryConfigListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> ActiveDirectoryConfigInner.fromJson(reader1)); - deserializedActiveDirectoryConfigListResult.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedActiveDirectoryConfigListResult.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedActiveDirectoryConfigListResult; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticAccountListResult.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticAccountListResult.java deleted file mode 100644 index 39dc1ba7e3414..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticAccountListResult.java +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.implementation.models; - -import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.netapp.fluent.models.ElasticAccountInner; -import java.io.IOException; -import java.util.List; - -/** - * The response of a ElasticAccount list operation. - */ -@Immutable -public final class ElasticAccountListResult implements JsonSerializable { - /* - * The ElasticAccount items on this page - */ - private List value; - - /* - * The link to the next page of items - */ - private String nextLink; - - /** - * Creates an instance of ElasticAccountListResult class. - */ - private ElasticAccountListResult() { - } - - /** - * Get the value property: The ElasticAccount items on this page. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Get the nextLink property: The link to the next page of items. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property value in model ElasticAccountListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ElasticAccountListResult.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeStringField("nextLink", this.nextLink); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticAccountListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticAccountListResult 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 ElasticAccountListResult. - */ - public static ElasticAccountListResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticAccountListResult deserializedElasticAccountListResult = new ElasticAccountListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> ElasticAccountInner.fromJson(reader1)); - deserializedElasticAccountListResult.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedElasticAccountListResult.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticAccountListResult; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticBackupListResult.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticBackupListResult.java deleted file mode 100644 index 0667488f7b956..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticBackupListResult.java +++ /dev/null @@ -1,112 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.implementation.models; - -import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.netapp.fluent.models.ElasticBackupInner; -import java.io.IOException; -import java.util.List; - -/** - * The response of a ElasticBackup list operation. - */ -@Immutable -public final class ElasticBackupListResult implements JsonSerializable { - /* - * The ElasticBackup items on this page - */ - private List value; - - /* - * The link to the next page of items - */ - private String nextLink; - - /** - * Creates an instance of ElasticBackupListResult class. - */ - private ElasticBackupListResult() { - } - - /** - * Get the value property: The ElasticBackup items on this page. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Get the nextLink property: The link to the next page of items. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property value in model ElasticBackupListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ElasticBackupListResult.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeStringField("nextLink", this.nextLink); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticBackupListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticBackupListResult 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 ElasticBackupListResult. - */ - public static ElasticBackupListResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticBackupListResult deserializedElasticBackupListResult = new ElasticBackupListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value = reader.readArray(reader1 -> ElasticBackupInner.fromJson(reader1)); - deserializedElasticBackupListResult.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedElasticBackupListResult.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticBackupListResult; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticBackupPolicyListResult.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticBackupPolicyListResult.java deleted file mode 100644 index aaaed85dae68d..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticBackupPolicyListResult.java +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.implementation.models; - -import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.netapp.fluent.models.ElasticBackupPolicyInner; -import java.io.IOException; -import java.util.List; - -/** - * The response of a ElasticBackupPolicy list operation. - */ -@Immutable -public final class ElasticBackupPolicyListResult implements JsonSerializable { - /* - * The ElasticBackupPolicy items on this page - */ - private List value; - - /* - * The link to the next page of items - */ - private String nextLink; - - /** - * Creates an instance of ElasticBackupPolicyListResult class. - */ - private ElasticBackupPolicyListResult() { - } - - /** - * Get the value property: The ElasticBackupPolicy items on this page. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Get the nextLink property: The link to the next page of items. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property value in model ElasticBackupPolicyListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ElasticBackupPolicyListResult.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeStringField("nextLink", this.nextLink); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticBackupPolicyListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticBackupPolicyListResult 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 ElasticBackupPolicyListResult. - */ - public static ElasticBackupPolicyListResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticBackupPolicyListResult deserializedElasticBackupPolicyListResult - = new ElasticBackupPolicyListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> ElasticBackupPolicyInner.fromJson(reader1)); - deserializedElasticBackupPolicyListResult.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedElasticBackupPolicyListResult.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticBackupPolicyListResult; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticBackupVaultListResult.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticBackupVaultListResult.java deleted file mode 100644 index a81d1b7f1925c..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticBackupVaultListResult.java +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.implementation.models; - -import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.netapp.fluent.models.ElasticBackupVaultInner; -import java.io.IOException; -import java.util.List; - -/** - * The response of a ElasticBackupVault list operation. - */ -@Immutable -public final class ElasticBackupVaultListResult implements JsonSerializable { - /* - * The ElasticBackupVault items on this page - */ - private List value; - - /* - * The link to the next page of items - */ - private String nextLink; - - /** - * Creates an instance of ElasticBackupVaultListResult class. - */ - private ElasticBackupVaultListResult() { - } - - /** - * Get the value property: The ElasticBackupVault items on this page. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Get the nextLink property: The link to the next page of items. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property value in model ElasticBackupVaultListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ElasticBackupVaultListResult.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeStringField("nextLink", this.nextLink); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticBackupVaultListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticBackupVaultListResult 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 ElasticBackupVaultListResult. - */ - public static ElasticBackupVaultListResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticBackupVaultListResult deserializedElasticBackupVaultListResult = new ElasticBackupVaultListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> ElasticBackupVaultInner.fromJson(reader1)); - deserializedElasticBackupVaultListResult.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedElasticBackupVaultListResult.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticBackupVaultListResult; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticCapacityPoolListResult.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticCapacityPoolListResult.java deleted file mode 100644 index 9eccce4ead039..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticCapacityPoolListResult.java +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.implementation.models; - -import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.netapp.fluent.models.ElasticCapacityPoolInner; -import java.io.IOException; -import java.util.List; - -/** - * The response of a ElasticCapacityPool list operation. - */ -@Immutable -public final class ElasticCapacityPoolListResult implements JsonSerializable { - /* - * The ElasticCapacityPool items on this page - */ - private List value; - - /* - * The link to the next page of items - */ - private String nextLink; - - /** - * Creates an instance of ElasticCapacityPoolListResult class. - */ - private ElasticCapacityPoolListResult() { - } - - /** - * Get the value property: The ElasticCapacityPool items on this page. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Get the nextLink property: The link to the next page of items. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property value in model ElasticCapacityPoolListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ElasticCapacityPoolListResult.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeStringField("nextLink", this.nextLink); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticCapacityPoolListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticCapacityPoolListResult 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 ElasticCapacityPoolListResult. - */ - public static ElasticCapacityPoolListResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticCapacityPoolListResult deserializedElasticCapacityPoolListResult - = new ElasticCapacityPoolListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> ElasticCapacityPoolInner.fromJson(reader1)); - deserializedElasticCapacityPoolListResult.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedElasticCapacityPoolListResult.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticCapacityPoolListResult; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticSnapshotListResult.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticSnapshotListResult.java deleted file mode 100644 index c8fbd65c62040..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticSnapshotListResult.java +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.implementation.models; - -import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.netapp.fluent.models.ElasticSnapshotInner; -import java.io.IOException; -import java.util.List; - -/** - * The response of a ElasticSnapshot list operation. - */ -@Immutable -public final class ElasticSnapshotListResult implements JsonSerializable { - /* - * The ElasticSnapshot items on this page - */ - private List value; - - /* - * The link to the next page of items - */ - private String nextLink; - - /** - * Creates an instance of ElasticSnapshotListResult class. - */ - private ElasticSnapshotListResult() { - } - - /** - * Get the value property: The ElasticSnapshot items on this page. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Get the nextLink property: The link to the next page of items. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log( - new IllegalArgumentException("Missing required property value in model ElasticSnapshotListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ElasticSnapshotListResult.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeStringField("nextLink", this.nextLink); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticSnapshotListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticSnapshotListResult 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 ElasticSnapshotListResult. - */ - public static ElasticSnapshotListResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticSnapshotListResult deserializedElasticSnapshotListResult = new ElasticSnapshotListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> ElasticSnapshotInner.fromJson(reader1)); - deserializedElasticSnapshotListResult.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedElasticSnapshotListResult.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticSnapshotListResult; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticSnapshotPolicyListResult.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticSnapshotPolicyListResult.java deleted file mode 100644 index b67a4f4bcf8c8..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticSnapshotPolicyListResult.java +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.implementation.models; - -import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.netapp.fluent.models.ElasticSnapshotPolicyInner; -import java.io.IOException; -import java.util.List; - -/** - * The response of a ElasticSnapshotPolicy list operation. - */ -@Immutable -public final class ElasticSnapshotPolicyListResult implements JsonSerializable { - /* - * The ElasticSnapshotPolicy items on this page - */ - private List value; - - /* - * The link to the next page of items - */ - private String nextLink; - - /** - * Creates an instance of ElasticSnapshotPolicyListResult class. - */ - private ElasticSnapshotPolicyListResult() { - } - - /** - * Get the value property: The ElasticSnapshotPolicy items on this page. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Get the nextLink property: The link to the next page of items. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property value in model ElasticSnapshotPolicyListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ElasticSnapshotPolicyListResult.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeStringField("nextLink", this.nextLink); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticSnapshotPolicyListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticSnapshotPolicyListResult 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 ElasticSnapshotPolicyListResult. - */ - public static ElasticSnapshotPolicyListResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticSnapshotPolicyListResult deserializedElasticSnapshotPolicyListResult - = new ElasticSnapshotPolicyListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value - = reader.readArray(reader1 -> ElasticSnapshotPolicyInner.fromJson(reader1)); - deserializedElasticSnapshotPolicyListResult.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedElasticSnapshotPolicyListResult.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticSnapshotPolicyListResult; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticSnapshotPolicyVolumeList.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticSnapshotPolicyVolumeList.java deleted file mode 100644 index e14266cfa95ee..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticSnapshotPolicyVolumeList.java +++ /dev/null @@ -1,114 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.implementation.models; - -import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.netapp.fluent.models.ElasticVolumeInner; -import java.io.IOException; -import java.util.List; - -/** - * Elastic Volumes associated with Elastic Snapshot Policy. - */ -@Immutable -public final class ElasticSnapshotPolicyVolumeList implements JsonSerializable { - /* - * The ElasticVolume items on this page - */ - private List value; - - /* - * The link to the next page of items - */ - private String nextLink; - - /** - * Creates an instance of ElasticSnapshotPolicyVolumeList class. - */ - private ElasticSnapshotPolicyVolumeList() { - } - - /** - * Get the value property: The ElasticVolume items on this page. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Get the nextLink property: The link to the next page of items. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property value in model ElasticSnapshotPolicyVolumeList")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ElasticSnapshotPolicyVolumeList.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeStringField("nextLink", this.nextLink); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticSnapshotPolicyVolumeList from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticSnapshotPolicyVolumeList 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 ElasticSnapshotPolicyVolumeList. - */ - public static ElasticSnapshotPolicyVolumeList fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticSnapshotPolicyVolumeList deserializedElasticSnapshotPolicyVolumeList - = new ElasticSnapshotPolicyVolumeList(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value = reader.readArray(reader1 -> ElasticVolumeInner.fromJson(reader1)); - deserializedElasticSnapshotPolicyVolumeList.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedElasticSnapshotPolicyVolumeList.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticSnapshotPolicyVolumeList; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticVolumeListResult.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticVolumeListResult.java deleted file mode 100644 index 9ef3accbd8b3b..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticVolumeListResult.java +++ /dev/null @@ -1,112 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.implementation.models; - -import com.azure.core.annotation.Immutable; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import com.azure.resourcemanager.netapp.fluent.models.ElasticVolumeInner; -import java.io.IOException; -import java.util.List; - -/** - * The response of a ElasticVolume list operation. - */ -@Immutable -public final class ElasticVolumeListResult implements JsonSerializable { - /* - * The ElasticVolume items on this page - */ - private List value; - - /* - * The link to the next page of items - */ - private String nextLink; - - /** - * Creates an instance of ElasticVolumeListResult class. - */ - private ElasticVolumeListResult() { - } - - /** - * Get the value property: The ElasticVolume items on this page. - * - * @return the value value. - */ - public List value() { - return this.value; - } - - /** - * Get the nextLink property: The link to the next page of items. - * - * @return the nextLink value. - */ - public String nextLink() { - return this.nextLink; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (value() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property value in model ElasticVolumeListResult")); - } else { - value().forEach(e -> e.validate()); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ElasticVolumeListResult.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); - jsonWriter.writeStringField("nextLink", this.nextLink); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticVolumeListResult from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticVolumeListResult 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 ElasticVolumeListResult. - */ - public static ElasticVolumeListResult fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticVolumeListResult deserializedElasticVolumeListResult = new ElasticVolumeListResult(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("value".equals(fieldName)) { - List value = reader.readArray(reader1 -> ElasticVolumeInner.fromJson(reader1)); - deserializedElasticVolumeListResult.value = value; - } else if ("nextLink".equals(fieldName)) { - deserializedElasticVolumeListResult.nextLink = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticVolumeListResult; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticEncryption.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AccountEncryptionPatch.java similarity index 66% rename from sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticEncryption.java rename to sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AccountEncryptionPatch.java index e4340a9c9b29a..1e1cb6c7c88e1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticEncryption.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/AccountEncryptionPatch.java @@ -12,29 +12,29 @@ import java.io.IOException; /** - * Encryption settings. + * Encryption settings for PATCH operations (no default values). */ @Fluent -public final class ElasticEncryption implements JsonSerializable { +public final class AccountEncryptionPatch implements JsonSerializable { /* * The encryption keySource (provider). Possible values (case-insensitive): Microsoft.NetApp, Microsoft.KeyVault */ private KeySource keySource; /* - * Properties provided by KeyVault. Applicable if keySource is 'Microsoft.KeyVault'. + * Properties provided by KeVault. Applicable if keySource is 'Microsoft.KeyVault'. */ - private ElasticKeyVaultProperties keyVaultProperties; + private KeyVaultPropertiesPatch keyVaultProperties; /* * Identity used to authenticate to KeyVault. Applicable if keySource is 'Microsoft.KeyVault'. */ - private ElasticEncryptionIdentity identity; + private EncryptionIdentityPatch identity; /** - * Creates an instance of ElasticEncryption class. + * Creates an instance of AccountEncryptionPatch class. */ - public ElasticEncryption() { + public AccountEncryptionPatch() { } /** @@ -52,31 +52,31 @@ public KeySource keySource() { * Microsoft.NetApp, Microsoft.KeyVault. * * @param keySource the keySource value to set. - * @return the ElasticEncryption object itself. + * @return the AccountEncryptionPatch object itself. */ - public ElasticEncryption withKeySource(KeySource keySource) { + public AccountEncryptionPatch withKeySource(KeySource keySource) { this.keySource = keySource; return this; } /** - * Get the keyVaultProperties property: Properties provided by KeyVault. Applicable if keySource is + * Get the keyVaultProperties property: Properties provided by KeVault. Applicable if keySource is * 'Microsoft.KeyVault'. * * @return the keyVaultProperties value. */ - public ElasticKeyVaultProperties keyVaultProperties() { + public KeyVaultPropertiesPatch keyVaultProperties() { return this.keyVaultProperties; } /** - * Set the keyVaultProperties property: Properties provided by KeyVault. Applicable if keySource is + * Set the keyVaultProperties property: Properties provided by KeVault. Applicable if keySource is * 'Microsoft.KeyVault'. * * @param keyVaultProperties the keyVaultProperties value to set. - * @return the ElasticEncryption object itself. + * @return the AccountEncryptionPatch object itself. */ - public ElasticEncryption withKeyVaultProperties(ElasticKeyVaultProperties keyVaultProperties) { + public AccountEncryptionPatch withKeyVaultProperties(KeyVaultPropertiesPatch keyVaultProperties) { this.keyVaultProperties = keyVaultProperties; return this; } @@ -87,7 +87,7 @@ public ElasticEncryption withKeyVaultProperties(ElasticKeyVaultProperties keyVau * * @return the identity value. */ - public ElasticEncryptionIdentity identity() { + public EncryptionIdentityPatch identity() { return this.identity; } @@ -96,9 +96,9 @@ public ElasticEncryptionIdentity identity() { * 'Microsoft.KeyVault'. * * @param identity the identity value to set. - * @return the ElasticEncryption object itself. + * @return the AccountEncryptionPatch object itself. */ - public ElasticEncryption withIdentity(ElasticEncryptionIdentity identity) { + public AccountEncryptionPatch withIdentity(EncryptionIdentityPatch identity) { this.identity = identity; return this; } @@ -130,32 +130,32 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { } /** - * Reads an instance of ElasticEncryption from the JsonReader. + * Reads an instance of AccountEncryptionPatch from the JsonReader. * * @param jsonReader The JsonReader being read. - * @return An instance of ElasticEncryption 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 ElasticEncryption. + * @return An instance of AccountEncryptionPatch 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 AccountEncryptionPatch. */ - public static ElasticEncryption fromJson(JsonReader jsonReader) throws IOException { + public static AccountEncryptionPatch fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { - ElasticEncryption deserializedElasticEncryption = new ElasticEncryption(); + AccountEncryptionPatch deserializedAccountEncryptionPatch = new AccountEncryptionPatch(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); if ("keySource".equals(fieldName)) { - deserializedElasticEncryption.keySource = KeySource.fromString(reader.getString()); + deserializedAccountEncryptionPatch.keySource = KeySource.fromString(reader.getString()); } else if ("keyVaultProperties".equals(fieldName)) { - deserializedElasticEncryption.keyVaultProperties = ElasticKeyVaultProperties.fromJson(reader); + deserializedAccountEncryptionPatch.keyVaultProperties = KeyVaultPropertiesPatch.fromJson(reader); } else if ("identity".equals(fieldName)) { - deserializedElasticEncryption.identity = ElasticEncryptionIdentity.fromJson(reader); + deserializedAccountEncryptionPatch.identity = EncryptionIdentityPatch.fromJson(reader); } else { reader.skipChildren(); } } - return deserializedElasticEncryption; + return deserializedAccountEncryptionPatch; }); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfig.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfig.java deleted file mode 100644 index f791224f4e969..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfig.java +++ /dev/null @@ -1,309 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.management.Region; -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.fluent.models.ActiveDirectoryConfigInner; -import java.util.Map; - -/** - * An immutable client-side representation of ActiveDirectoryConfig. - */ -public interface ActiveDirectoryConfig { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the name property: The name of the resource. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The type of the resource. - * - * @return the type value. - */ - String type(); - - /** - * Gets the location property: The geo-location where the resource lives. - * - * @return the location value. - */ - String location(); - - /** - * Gets the tags property: Resource tags. - * - * @return the tags value. - */ - Map tags(); - - /** - * Gets the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - ActiveDirectoryConfigProperties properties(); - - /** - * Gets the etag property: "If etag is provided in the response body, it may also be provided as a header per the - * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. - * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), - * and If-Range (section 14.27) header fields."). - * - * @return the etag value. - */ - String etag(); - - /** - * Gets the identity property: The managed service identities assigned to this resource. - * - * @return the identity value. - */ - ManagedServiceIdentity identity(); - - /** - * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - SystemData systemData(); - - /** - * Gets the region of the resource. - * - * @return the region of the resource. - */ - Region region(); - - /** - * Gets the name of the resource region. - * - * @return the name of the resource region. - */ - String regionName(); - - /** - * Gets the name of the resource group. - * - * @return the name of the resource group. - */ - String resourceGroupName(); - - /** - * Gets the inner com.azure.resourcemanager.netapp.fluent.models.ActiveDirectoryConfigInner object. - * - * @return the inner object. - */ - ActiveDirectoryConfigInner innerModel(); - - /** - * The entirety of the ActiveDirectoryConfig definition. - */ - interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, - DefinitionStages.WithResourceGroup, DefinitionStages.WithCreate { - } - - /** - * The ActiveDirectoryConfig definition stages. - */ - interface DefinitionStages { - /** - * The first stage of the ActiveDirectoryConfig definition. - */ - interface Blank extends WithLocation { - } - - /** - * The stage of the ActiveDirectoryConfig definition allowing to specify location. - */ - interface WithLocation { - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithResourceGroup withRegion(Region location); - - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithResourceGroup withRegion(String location); - } - - /** - * The stage of the ActiveDirectoryConfig definition allowing to specify parent resource. - */ - interface WithResourceGroup { - /** - * Specifies resourceGroupName. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @return the next definition stage. - */ - WithCreate withExistingResourceGroup(String resourceGroupName); - } - - /** - * The stage of the ActiveDirectoryConfig definition which contains all the minimum required properties for the - * resource to be created, but also allows for any other optional properties to be specified. - */ - interface WithCreate - extends DefinitionStages.WithTags, DefinitionStages.WithProperties, DefinitionStages.WithIdentity { - /** - * Executes the create request. - * - * @return the created resource. - */ - ActiveDirectoryConfig create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - ActiveDirectoryConfig create(Context context); - } - - /** - * The stage of the ActiveDirectoryConfig definition allowing to specify tags. - */ - interface WithTags { - /** - * Specifies the tags property: Resource tags.. - * - * @param tags Resource tags. - * @return the next definition stage. - */ - WithCreate withTags(Map tags); - } - - /** - * The stage of the ActiveDirectoryConfig definition allowing to specify properties. - */ - interface WithProperties { - /** - * Specifies the properties property: The resource-specific properties for this resource.. - * - * @param properties The resource-specific properties for this resource. - * @return the next definition stage. - */ - WithCreate withProperties(ActiveDirectoryConfigProperties properties); - } - - /** - * The stage of the ActiveDirectoryConfig definition allowing to specify identity. - */ - interface WithIdentity { - /** - * Specifies the identity property: The managed service identities assigned to this resource.. - * - * @param identity The managed service identities assigned to this resource. - * @return the next definition stage. - */ - WithCreate withIdentity(ManagedServiceIdentity identity); - } - } - - /** - * Begins update for the ActiveDirectoryConfig resource. - * - * @return the stage of resource update. - */ - ActiveDirectoryConfig.Update update(); - - /** - * The template for ActiveDirectoryConfig update. - */ - interface Update extends UpdateStages.WithTags, UpdateStages.WithIdentity, UpdateStages.WithProperties { - /** - * Executes the update request. - * - * @return the updated resource. - */ - ActiveDirectoryConfig apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - ActiveDirectoryConfig apply(Context context); - } - - /** - * The ActiveDirectoryConfig update stages. - */ - interface UpdateStages { - /** - * The stage of the ActiveDirectoryConfig update allowing to specify tags. - */ - interface WithTags { - /** - * Specifies the tags property: Resource tags.. - * - * @param tags Resource tags. - * @return the next definition stage. - */ - Update withTags(Map tags); - } - - /** - * The stage of the ActiveDirectoryConfig update allowing to specify identity. - */ - interface WithIdentity { - /** - * Specifies the identity property: The managed service identities assigned to this resource.. - * - * @param identity The managed service identities assigned to this resource. - * @return the next definition stage. - */ - Update withIdentity(ManagedServiceIdentity identity); - } - - /** - * The stage of the ActiveDirectoryConfig update allowing to specify properties. - */ - interface WithProperties { - /** - * Specifies the properties property: The resource-specific properties for this resource.. - * - * @param properties The resource-specific properties for this resource. - * @return the next definition stage. - */ - Update withProperties(ActiveDirectoryConfigUpdateProperties properties); - } - } - - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - ActiveDirectoryConfig refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - ActiveDirectoryConfig refresh(Context context); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfigProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfigProperties.java deleted file mode 100644 index 5d427b5196c1d..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfigProperties.java +++ /dev/null @@ -1,421 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.util.List; - -/** - * Active Directory Configuration properties. - */ -@Fluent -public final class ActiveDirectoryConfigProperties implements JsonSerializable { - /* - * A domain user account with permission to create machine accounts - */ - private String userName; - - /* - * An array of DNS server IP addresses(IPv4 only) for the Active Directory - */ - private List dns; - - /* - * NetBIOS name of the SMB server. This name will be registered as a computer account in the AD and used to mount - * volumes - */ - private String smbServerName; - - /* - * The Organizational Unit (OU) within the Windows Active Directory - */ - private String organizationalUnit; - - /* - * The Active Directory site the service will limit Domain Controller discovery to - */ - private String site; - - /* - * Users to be added to the Built-in Backup Operator active directory group. A list of unique usernames without - * domain specifier - */ - private List backupOperators; - - /* - * Users to be added to the Built-in Administrators active directory group. A list of unique usernames without - * domain specifier - */ - private List administrators; - - /* - * Domain Users in the Active directory to be given SecurityPrivilege privilege (Needed for SMB Continuously - * available shares for SQL). A list of unique usernames without domain specifier - */ - private List securityOperators; - - /* - * Status of the Active Directory - */ - private ActiveDirectoryStatus activeDirectoryStatus; - - /* - * Azure lifecycle management. - */ - private ProvisioningState provisioningState; - - /* - * Name of the Active Directory domain - */ - private String domain; - - /* - * Access password from Azure KeyVault Secrets to connect Active Directory - */ - private SecretPassword secretPassword; - - /** - * Creates an instance of ActiveDirectoryConfigProperties class. - */ - public ActiveDirectoryConfigProperties() { - } - - /** - * Get the userName property: A domain user account with permission to create machine accounts. - * - * @return the userName value. - */ - public String userName() { - return this.userName; - } - - /** - * Set the userName property: A domain user account with permission to create machine accounts. - * - * @param userName the userName value to set. - * @return the ActiveDirectoryConfigProperties object itself. - */ - public ActiveDirectoryConfigProperties withUserName(String userName) { - this.userName = userName; - return this; - } - - /** - * Get the dns property: An array of DNS server IP addresses(IPv4 only) for the Active Directory. - * - * @return the dns value. - */ - public List dns() { - return this.dns; - } - - /** - * Set the dns property: An array of DNS server IP addresses(IPv4 only) for the Active Directory. - * - * @param dns the dns value to set. - * @return the ActiveDirectoryConfigProperties object itself. - */ - public ActiveDirectoryConfigProperties withDns(List dns) { - this.dns = dns; - return this; - } - - /** - * Get the smbServerName property: NetBIOS name of the SMB server. This name will be registered as a computer - * account in the AD and used to mount volumes. - * - * @return the smbServerName value. - */ - public String smbServerName() { - return this.smbServerName; - } - - /** - * Set the smbServerName property: NetBIOS name of the SMB server. This name will be registered as a computer - * account in the AD and used to mount volumes. - * - * @param smbServerName the smbServerName value to set. - * @return the ActiveDirectoryConfigProperties object itself. - */ - public ActiveDirectoryConfigProperties withSmbServerName(String smbServerName) { - this.smbServerName = smbServerName; - return this; - } - - /** - * Get the organizationalUnit property: The Organizational Unit (OU) within the Windows Active Directory. - * - * @return the organizationalUnit value. - */ - public String organizationalUnit() { - return this.organizationalUnit; - } - - /** - * Set the organizationalUnit property: The Organizational Unit (OU) within the Windows Active Directory. - * - * @param organizationalUnit the organizationalUnit value to set. - * @return the ActiveDirectoryConfigProperties object itself. - */ - public ActiveDirectoryConfigProperties withOrganizationalUnit(String organizationalUnit) { - this.organizationalUnit = organizationalUnit; - return this; - } - - /** - * Get the site property: The Active Directory site the service will limit Domain Controller discovery to. - * - * @return the site value. - */ - public String site() { - return this.site; - } - - /** - * Set the site property: The Active Directory site the service will limit Domain Controller discovery to. - * - * @param site the site value to set. - * @return the ActiveDirectoryConfigProperties object itself. - */ - public ActiveDirectoryConfigProperties withSite(String site) { - this.site = site; - return this; - } - - /** - * Get the backupOperators property: Users to be added to the Built-in Backup Operator active directory group. A - * list of unique usernames without domain specifier. - * - * @return the backupOperators value. - */ - public List backupOperators() { - return this.backupOperators; - } - - /** - * Set the backupOperators property: Users to be added to the Built-in Backup Operator active directory group. A - * list of unique usernames without domain specifier. - * - * @param backupOperators the backupOperators value to set. - * @return the ActiveDirectoryConfigProperties object itself. - */ - public ActiveDirectoryConfigProperties withBackupOperators(List backupOperators) { - this.backupOperators = backupOperators; - return this; - } - - /** - * Get the administrators property: Users to be added to the Built-in Administrators active directory group. A list - * of unique usernames without domain specifier. - * - * @return the administrators value. - */ - public List administrators() { - return this.administrators; - } - - /** - * Set the administrators property: Users to be added to the Built-in Administrators active directory group. A list - * of unique usernames without domain specifier. - * - * @param administrators the administrators value to set. - * @return the ActiveDirectoryConfigProperties object itself. - */ - public ActiveDirectoryConfigProperties withAdministrators(List administrators) { - this.administrators = administrators; - return this; - } - - /** - * Get the securityOperators property: Domain Users in the Active directory to be given SecurityPrivilege privilege - * (Needed for SMB Continuously available shares for SQL). A list of unique usernames without domain specifier. - * - * @return the securityOperators value. - */ - public List securityOperators() { - return this.securityOperators; - } - - /** - * Set the securityOperators property: Domain Users in the Active directory to be given SecurityPrivilege privilege - * (Needed for SMB Continuously available shares for SQL). A list of unique usernames without domain specifier. - * - * @param securityOperators the securityOperators value to set. - * @return the ActiveDirectoryConfigProperties object itself. - */ - public ActiveDirectoryConfigProperties withSecurityOperators(List securityOperators) { - this.securityOperators = securityOperators; - return this; - } - - /** - * Get the activeDirectoryStatus property: Status of the Active Directory. - * - * @return the activeDirectoryStatus value. - */ - public ActiveDirectoryStatus activeDirectoryStatus() { - return this.activeDirectoryStatus; - } - - /** - * Get the provisioningState property: Azure lifecycle management. - * - * @return the provisioningState value. - */ - public ProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Get the domain property: Name of the Active Directory domain. - * - * @return the domain value. - */ - public String domain() { - return this.domain; - } - - /** - * Set the domain property: Name of the Active Directory domain. - * - * @param domain the domain value to set. - * @return the ActiveDirectoryConfigProperties object itself. - */ - public ActiveDirectoryConfigProperties withDomain(String domain) { - this.domain = domain; - return this; - } - - /** - * Get the secretPassword property: Access password from Azure KeyVault Secrets to connect Active Directory. - * - * @return the secretPassword value. - */ - public SecretPassword secretPassword() { - return this.secretPassword; - } - - /** - * Set the secretPassword property: Access password from Azure KeyVault Secrets to connect Active Directory. - * - * @param secretPassword the secretPassword value to set. - * @return the ActiveDirectoryConfigProperties object itself. - */ - public ActiveDirectoryConfigProperties withSecretPassword(SecretPassword secretPassword) { - this.secretPassword = secretPassword; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (site() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property site in model ActiveDirectoryConfigProperties")); - } - if (domain() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property domain in model ActiveDirectoryConfigProperties")); - } - if (secretPassword() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property secretPassword in model ActiveDirectoryConfigProperties")); - } else { - secretPassword().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ActiveDirectoryConfigProperties.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("site", this.site); - jsonWriter.writeStringField("domain", this.domain); - jsonWriter.writeJsonField("secretPassword", this.secretPassword); - jsonWriter.writeStringField("userName", this.userName); - jsonWriter.writeArrayField("dns", this.dns, (writer, element) -> writer.writeString(element)); - jsonWriter.writeStringField("smbServerName", this.smbServerName); - jsonWriter.writeStringField("organizationalUnit", this.organizationalUnit); - jsonWriter.writeArrayField("backupOperators", this.backupOperators, - (writer, element) -> writer.writeString(element)); - jsonWriter.writeArrayField("administrators", this.administrators, - (writer, element) -> writer.writeString(element)); - jsonWriter.writeArrayField("securityOperators", this.securityOperators, - (writer, element) -> writer.writeString(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ActiveDirectoryConfigProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ActiveDirectoryConfigProperties 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 ActiveDirectoryConfigProperties. - */ - public static ActiveDirectoryConfigProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ActiveDirectoryConfigProperties deserializedActiveDirectoryConfigProperties - = new ActiveDirectoryConfigProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("site".equals(fieldName)) { - deserializedActiveDirectoryConfigProperties.site = reader.getString(); - } else if ("domain".equals(fieldName)) { - deserializedActiveDirectoryConfigProperties.domain = reader.getString(); - } else if ("secretPassword".equals(fieldName)) { - deserializedActiveDirectoryConfigProperties.secretPassword = SecretPassword.fromJson(reader); - } else if ("userName".equals(fieldName)) { - deserializedActiveDirectoryConfigProperties.userName = reader.getString(); - } else if ("dns".equals(fieldName)) { - List dns = reader.readArray(reader1 -> reader1.getString()); - deserializedActiveDirectoryConfigProperties.dns = dns; - } else if ("smbServerName".equals(fieldName)) { - deserializedActiveDirectoryConfigProperties.smbServerName = reader.getString(); - } else if ("organizationalUnit".equals(fieldName)) { - deserializedActiveDirectoryConfigProperties.organizationalUnit = reader.getString(); - } else if ("backupOperators".equals(fieldName)) { - List backupOperators = reader.readArray(reader1 -> reader1.getString()); - deserializedActiveDirectoryConfigProperties.backupOperators = backupOperators; - } else if ("administrators".equals(fieldName)) { - List administrators = reader.readArray(reader1 -> reader1.getString()); - deserializedActiveDirectoryConfigProperties.administrators = administrators; - } else if ("securityOperators".equals(fieldName)) { - List securityOperators = reader.readArray(reader1 -> reader1.getString()); - deserializedActiveDirectoryConfigProperties.securityOperators = securityOperators; - } else if ("activeDirectoryStatus".equals(fieldName)) { - deserializedActiveDirectoryConfigProperties.activeDirectoryStatus - = ActiveDirectoryStatus.fromString(reader.getString()); - } else if ("provisioningState".equals(fieldName)) { - deserializedActiveDirectoryConfigProperties.provisioningState - = ProvisioningState.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedActiveDirectoryConfigProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfigUpdate.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfigUpdate.java deleted file mode 100644 index bbd3b59567000..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfigUpdate.java +++ /dev/null @@ -1,158 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.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; - -/** - * The type used for update operations of the ActiveDirectoryConfig. - */ -@Fluent -public final class ActiveDirectoryConfigUpdate implements JsonSerializable { - /* - * The managed service identities assigned to this resource. - */ - private ManagedServiceIdentity identity; - - /* - * Resource tags. - */ - private Map tags; - - /* - * The resource-specific properties for this resource. - */ - private ActiveDirectoryConfigUpdateProperties properties; - - /** - * Creates an instance of ActiveDirectoryConfigUpdate class. - */ - public ActiveDirectoryConfigUpdate() { - } - - /** - * Get the identity property: The managed service identities assigned to this resource. - * - * @return the identity value. - */ - public ManagedServiceIdentity identity() { - return this.identity; - } - - /** - * Set the identity property: The managed service identities assigned to this resource. - * - * @param identity the identity value to set. - * @return the ActiveDirectoryConfigUpdate object itself. - */ - public ActiveDirectoryConfigUpdate withIdentity(ManagedServiceIdentity identity) { - this.identity = identity; - return this; - } - - /** - * Get the tags property: Resource tags. - * - * @return the tags value. - */ - public Map tags() { - return this.tags; - } - - /** - * Set the tags property: Resource tags. - * - * @param tags the tags value to set. - * @return the ActiveDirectoryConfigUpdate object itself. - */ - public ActiveDirectoryConfigUpdate withTags(Map tags) { - this.tags = tags; - return this; - } - - /** - * Get the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - public ActiveDirectoryConfigUpdateProperties properties() { - return this.properties; - } - - /** - * Set the properties property: The resource-specific properties for this resource. - * - * @param properties the properties value to set. - * @return the ActiveDirectoryConfigUpdate object itself. - */ - public ActiveDirectoryConfigUpdate withProperties(ActiveDirectoryConfigUpdateProperties properties) { - this.properties = properties; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (identity() != null) { - identity().validate(); - } - if (properties() != null) { - properties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("identity", this.identity); - jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); - jsonWriter.writeJsonField("properties", this.properties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ActiveDirectoryConfigUpdate from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ActiveDirectoryConfigUpdate 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 ActiveDirectoryConfigUpdate. - */ - public static ActiveDirectoryConfigUpdate fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ActiveDirectoryConfigUpdate deserializedActiveDirectoryConfigUpdate = new ActiveDirectoryConfigUpdate(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("identity".equals(fieldName)) { - deserializedActiveDirectoryConfigUpdate.identity = ManagedServiceIdentity.fromJson(reader); - } else if ("tags".equals(fieldName)) { - Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedActiveDirectoryConfigUpdate.tags = tags; - } else if ("properties".equals(fieldName)) { - deserializedActiveDirectoryConfigUpdate.properties - = ActiveDirectoryConfigUpdateProperties.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedActiveDirectoryConfigUpdate; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfigUpdateProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfigUpdateProperties.java deleted file mode 100644 index bcf5c74329a32..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfigUpdateProperties.java +++ /dev/null @@ -1,370 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.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; - -/** - * The updatable properties of the ActiveDirectoryConfig. - */ -@Fluent -public final class ActiveDirectoryConfigUpdateProperties - implements JsonSerializable { - /* - * A domain user account with permission to create machine accounts - */ - private String userName; - - /* - * An array of DNS server IP addresses(IPv4 only) for the Active Directory - */ - private List dns; - - /* - * NetBIOS name of the SMB server. This name will be registered as a computer account in the AD and used to mount - * volumes - */ - private String smbServerName; - - /* - * The Organizational Unit (OU) within the Windows Active Directory - */ - private String organizationalUnit; - - /* - * The Active Directory site the service will limit Domain Controller discovery to - */ - private String site; - - /* - * Users to be added to the Built-in Backup Operator active directory group. A list of unique usernames without - * domain specifier - */ - private List backupOperators; - - /* - * Users to be added to the Built-in Administrators active directory group. A list of unique usernames without - * domain specifier - */ - private List administrators; - - /* - * Domain Users in the Active directory to be given SecurityPrivilege privilege (Needed for SMB Continuously - * available shares for SQL). A list of unique usernames without domain specifier - */ - private List securityOperators; - - /* - * Name of the Active Directory domain - */ - private String domain; - - /* - * Access password from Azure KeyVault Secrets to connect Active Directory - */ - private SecretPassword secretPassword; - - /** - * Creates an instance of ActiveDirectoryConfigUpdateProperties class. - */ - public ActiveDirectoryConfigUpdateProperties() { - } - - /** - * Get the userName property: A domain user account with permission to create machine accounts. - * - * @return the userName value. - */ - public String userName() { - return this.userName; - } - - /** - * Set the userName property: A domain user account with permission to create machine accounts. - * - * @param userName the userName value to set. - * @return the ActiveDirectoryConfigUpdateProperties object itself. - */ - public ActiveDirectoryConfigUpdateProperties withUserName(String userName) { - this.userName = userName; - return this; - } - - /** - * Get the dns property: An array of DNS server IP addresses(IPv4 only) for the Active Directory. - * - * @return the dns value. - */ - public List dns() { - return this.dns; - } - - /** - * Set the dns property: An array of DNS server IP addresses(IPv4 only) for the Active Directory. - * - * @param dns the dns value to set. - * @return the ActiveDirectoryConfigUpdateProperties object itself. - */ - public ActiveDirectoryConfigUpdateProperties withDns(List dns) { - this.dns = dns; - return this; - } - - /** - * Get the smbServerName property: NetBIOS name of the SMB server. This name will be registered as a computer - * account in the AD and used to mount volumes. - * - * @return the smbServerName value. - */ - public String smbServerName() { - return this.smbServerName; - } - - /** - * Set the smbServerName property: NetBIOS name of the SMB server. This name will be registered as a computer - * account in the AD and used to mount volumes. - * - * @param smbServerName the smbServerName value to set. - * @return the ActiveDirectoryConfigUpdateProperties object itself. - */ - public ActiveDirectoryConfigUpdateProperties withSmbServerName(String smbServerName) { - this.smbServerName = smbServerName; - return this; - } - - /** - * Get the organizationalUnit property: The Organizational Unit (OU) within the Windows Active Directory. - * - * @return the organizationalUnit value. - */ - public String organizationalUnit() { - return this.organizationalUnit; - } - - /** - * Set the organizationalUnit property: The Organizational Unit (OU) within the Windows Active Directory. - * - * @param organizationalUnit the organizationalUnit value to set. - * @return the ActiveDirectoryConfigUpdateProperties object itself. - */ - public ActiveDirectoryConfigUpdateProperties withOrganizationalUnit(String organizationalUnit) { - this.organizationalUnit = organizationalUnit; - return this; - } - - /** - * Get the site property: The Active Directory site the service will limit Domain Controller discovery to. - * - * @return the site value. - */ - public String site() { - return this.site; - } - - /** - * Set the site property: The Active Directory site the service will limit Domain Controller discovery to. - * - * @param site the site value to set. - * @return the ActiveDirectoryConfigUpdateProperties object itself. - */ - public ActiveDirectoryConfigUpdateProperties withSite(String site) { - this.site = site; - return this; - } - - /** - * Get the backupOperators property: Users to be added to the Built-in Backup Operator active directory group. A - * list of unique usernames without domain specifier. - * - * @return the backupOperators value. - */ - public List backupOperators() { - return this.backupOperators; - } - - /** - * Set the backupOperators property: Users to be added to the Built-in Backup Operator active directory group. A - * list of unique usernames without domain specifier. - * - * @param backupOperators the backupOperators value to set. - * @return the ActiveDirectoryConfigUpdateProperties object itself. - */ - public ActiveDirectoryConfigUpdateProperties withBackupOperators(List backupOperators) { - this.backupOperators = backupOperators; - return this; - } - - /** - * Get the administrators property: Users to be added to the Built-in Administrators active directory group. A list - * of unique usernames without domain specifier. - * - * @return the administrators value. - */ - public List administrators() { - return this.administrators; - } - - /** - * Set the administrators property: Users to be added to the Built-in Administrators active directory group. A list - * of unique usernames without domain specifier. - * - * @param administrators the administrators value to set. - * @return the ActiveDirectoryConfigUpdateProperties object itself. - */ - public ActiveDirectoryConfigUpdateProperties withAdministrators(List administrators) { - this.administrators = administrators; - return this; - } - - /** - * Get the securityOperators property: Domain Users in the Active directory to be given SecurityPrivilege privilege - * (Needed for SMB Continuously available shares for SQL). A list of unique usernames without domain specifier. - * - * @return the securityOperators value. - */ - public List securityOperators() { - return this.securityOperators; - } - - /** - * Set the securityOperators property: Domain Users in the Active directory to be given SecurityPrivilege privilege - * (Needed for SMB Continuously available shares for SQL). A list of unique usernames without domain specifier. - * - * @param securityOperators the securityOperators value to set. - * @return the ActiveDirectoryConfigUpdateProperties object itself. - */ - public ActiveDirectoryConfigUpdateProperties withSecurityOperators(List securityOperators) { - this.securityOperators = securityOperators; - return this; - } - - /** - * Get the domain property: Name of the Active Directory domain. - * - * @return the domain value. - */ - public String domain() { - return this.domain; - } - - /** - * Set the domain property: Name of the Active Directory domain. - * - * @param domain the domain value to set. - * @return the ActiveDirectoryConfigUpdateProperties object itself. - */ - public ActiveDirectoryConfigUpdateProperties withDomain(String domain) { - this.domain = domain; - return this; - } - - /** - * Get the secretPassword property: Access password from Azure KeyVault Secrets to connect Active Directory. - * - * @return the secretPassword value. - */ - public SecretPassword secretPassword() { - return this.secretPassword; - } - - /** - * Set the secretPassword property: Access password from Azure KeyVault Secrets to connect Active Directory. - * - * @param secretPassword the secretPassword value to set. - * @return the ActiveDirectoryConfigUpdateProperties object itself. - */ - public ActiveDirectoryConfigUpdateProperties withSecretPassword(SecretPassword secretPassword) { - this.secretPassword = secretPassword; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (secretPassword() != null) { - secretPassword().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("userName", this.userName); - jsonWriter.writeArrayField("dns", this.dns, (writer, element) -> writer.writeString(element)); - jsonWriter.writeStringField("smbServerName", this.smbServerName); - jsonWriter.writeStringField("organizationalUnit", this.organizationalUnit); - jsonWriter.writeStringField("site", this.site); - jsonWriter.writeArrayField("backupOperators", this.backupOperators, - (writer, element) -> writer.writeString(element)); - jsonWriter.writeArrayField("administrators", this.administrators, - (writer, element) -> writer.writeString(element)); - jsonWriter.writeArrayField("securityOperators", this.securityOperators, - (writer, element) -> writer.writeString(element)); - jsonWriter.writeStringField("domain", this.domain); - jsonWriter.writeJsonField("secretPassword", this.secretPassword); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ActiveDirectoryConfigUpdateProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ActiveDirectoryConfigUpdateProperties 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 ActiveDirectoryConfigUpdateProperties. - */ - public static ActiveDirectoryConfigUpdateProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ActiveDirectoryConfigUpdateProperties deserializedActiveDirectoryConfigUpdateProperties - = new ActiveDirectoryConfigUpdateProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("userName".equals(fieldName)) { - deserializedActiveDirectoryConfigUpdateProperties.userName = reader.getString(); - } else if ("dns".equals(fieldName)) { - List dns = reader.readArray(reader1 -> reader1.getString()); - deserializedActiveDirectoryConfigUpdateProperties.dns = dns; - } else if ("smbServerName".equals(fieldName)) { - deserializedActiveDirectoryConfigUpdateProperties.smbServerName = reader.getString(); - } else if ("organizationalUnit".equals(fieldName)) { - deserializedActiveDirectoryConfigUpdateProperties.organizationalUnit = reader.getString(); - } else if ("site".equals(fieldName)) { - deserializedActiveDirectoryConfigUpdateProperties.site = reader.getString(); - } else if ("backupOperators".equals(fieldName)) { - List backupOperators = reader.readArray(reader1 -> reader1.getString()); - deserializedActiveDirectoryConfigUpdateProperties.backupOperators = backupOperators; - } else if ("administrators".equals(fieldName)) { - List administrators = reader.readArray(reader1 -> reader1.getString()); - deserializedActiveDirectoryConfigUpdateProperties.administrators = administrators; - } else if ("securityOperators".equals(fieldName)) { - List securityOperators = reader.readArray(reader1 -> reader1.getString()); - deserializedActiveDirectoryConfigUpdateProperties.securityOperators = securityOperators; - } else if ("domain".equals(fieldName)) { - deserializedActiveDirectoryConfigUpdateProperties.domain = reader.getString(); - } else if ("secretPassword".equals(fieldName)) { - deserializedActiveDirectoryConfigUpdateProperties.secretPassword = SecretPassword.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedActiveDirectoryConfigUpdateProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfigs.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfigs.java deleted file mode 100644 index 512c71a48c3a8..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfigs.java +++ /dev/null @@ -1,158 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** - * Resource collection API of ActiveDirectoryConfigs. - */ -public interface ActiveDirectoryConfigs { - /** - * Get the details of the specified active directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @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 details of the specified active directory configuration along with {@link Response}. - */ - Response getByResourceGroupWithResponse(String resourceGroupName, - String activeDirectoryConfigName, Context context); - - /** - * Get the details of the specified active directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @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 details of the specified active directory configuration. - */ - ActiveDirectoryConfig getByResourceGroup(String resourceGroupName, String activeDirectoryConfigName); - - /** - * Delete the specified Active Directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @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 deleteByResourceGroup(String resourceGroupName, String activeDirectoryConfigName); - - /** - * Delete the specified Active Directory configuration. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param activeDirectoryConfigName The name of the ActiveDirectoryConfig. - * @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 delete(String resourceGroupName, String activeDirectoryConfigName, Context context); - - /** - * List all active directory configurations within the resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ActiveDirectoryConfig list operation as paginated response with {@link PagedIterable}. - */ - PagedIterable listByResourceGroup(String resourceGroupName); - - /** - * List all active directory configurations within the resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ActiveDirectoryConfig list operation as paginated response with {@link PagedIterable}. - */ - PagedIterable listByResourceGroup(String resourceGroupName, Context context); - - /** - * List all active directory configurations within the subscription. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ActiveDirectoryConfig list operation as paginated response with {@link PagedIterable}. - */ - PagedIterable list(); - - /** - * List all active directory configurations within the subscription. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ActiveDirectoryConfig list operation as paginated response with {@link PagedIterable}. - */ - PagedIterable list(Context context); - - /** - * Get the details of the specified active directory configuration. - * - * @param id the resource ID. - * @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 details of the specified active directory configuration along with {@link Response}. - */ - ActiveDirectoryConfig getById(String id); - - /** - * Get the details of the specified active directory configuration. - * - * @param id the resource ID. - * @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 details of the specified active directory configuration along with {@link Response}. - */ - Response getByIdWithResponse(String id, Context context); - - /** - * Delete the specified Active Directory configuration. - * - * @param id the resource ID. - * @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 deleteById(String id); - - /** - * Delete the specified Active Directory configuration. - * - * @param id the resource ID. - * @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 deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new ActiveDirectoryConfig resource. - * - * @param name resource name. - * @return the first stage of the new ActiveDirectoryConfig definition. - */ - ActiveDirectoryConfig.DefinitionStages.Blank define(String name); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPool.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPool.java index abe1b1ed9488f..cb345a4eb4958 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPool.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPool.java @@ -74,8 +74,8 @@ public interface CapacityPool { String poolId(); /** - * Gets the size property: Provisioned size of the pool (in bytes). Allowed values are 512GiB (549755813888 bytes) - * or in 1TiB chunks (value must be multiple of 1099511627776). + * Gets the size property: Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be + * multiple of 1099511627776). * * @return the size value. */ @@ -225,11 +225,11 @@ interface WithParentResource { */ interface WithSize { /** - * Specifies the size property: Provisioned size of the pool (in bytes). Allowed values are 512GiB - * (549755813888 bytes) or in 1TiB chunks (value must be multiple of 1099511627776).. + * Specifies the size property: Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks + * (value must be multiple of 1099511627776).. * - * @param size Provisioned size of the pool (in bytes). Allowed values are 512GiB (549755813888 bytes) or in - * 1TiB chunks (value must be multiple of 1099511627776). + * @param size Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be + * multiple of 1099511627776). * @return the next definition stage. */ WithServiceLevel withSize(long size); @@ -390,11 +390,11 @@ interface WithTags { */ interface WithSize { /** - * Specifies the size property: Provisioned size of the pool (in bytes). Allowed values are 512GiB - * (549755813888 bytes) or in 1TiB chunks (value must be multiple of 1099511627776).. + * Specifies the size property: Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks + * (value must be multiple of 1099511627776).. * - * @param size Provisioned size of the pool (in bytes). Allowed values are 512GiB (549755813888 bytes) or in - * 1TiB chunks (value must be multiple of 1099511627776). + * @param size Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be + * multiple of 1099511627776). * @return the next definition stage. */ Update withSize(Long size); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolPatch.java index 8dad9c50f96b2..fee779b57f66d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolPatch.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolPatch.java @@ -131,8 +131,8 @@ private PoolPatchProperties innerProperties() { } /** - * Get the size property: Provisioned size of the pool (in bytes). Allowed values are 512GiB (549755813888 bytes) or - * in 1TiB chunks (value must be multiple of 1099511627776). + * Get the size property: Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be + * multiple of 1099511627776). * * @return the size value. */ @@ -141,8 +141,8 @@ public Long size() { } /** - * Set the size property: Provisioned size of the pool (in bytes). Allowed values are 512GiB (549755813888 bytes) or - * in 1TiB chunks (value must be multiple of 1099511627776). + * Set the size property: Provisioned size of the pool (in bytes). Allowed values are in 1TiB chunks (value must be + * multiple of 1099511627776). * * @param size the size value to set. * @return the CapacityPoolPatch object itself. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CertificateAkvDetails.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CertificateAkvDetails.java index 32b16041a945b..5b72460c559e1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CertificateAkvDetails.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CertificateAkvDetails.java @@ -26,13 +26,6 @@ public final class CertificateAkvDetails implements JsonSerializable { - /* - * Availability zone to move Zone Redundant elastic capacity pool to - */ - private String newZone; - - /** - * Creates an instance of ChangeZoneRequest class. - */ - public ChangeZoneRequest() { - } - - /** - * Get the newZone property: Availability zone to move Zone Redundant elastic capacity pool to. - * - * @return the newZone value. - */ - public String newZone() { - return this.newZone; - } - - /** - * Set the newZone property: Availability zone to move Zone Redundant elastic capacity pool to. - * - * @param newZone the newZone value to set. - * @return the ChangeZoneRequest object itself. - */ - public ChangeZoneRequest withNewZone(String newZone) { - this.newZone = newZone; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (newZone() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property newZone in model ChangeZoneRequest")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ChangeZoneRequest.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("newZone", this.newZone); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ChangeZoneRequest from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ChangeZoneRequest 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 ChangeZoneRequest. - */ - public static ChangeZoneRequest fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ChangeZoneRequest deserializedChangeZoneRequest = new ChangeZoneRequest(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("newZone".equals(fieldName)) { - deserializedChangeZoneRequest.newZone = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedChangeZoneRequest; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckElasticResourceAvailabilityReason.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckElasticResourceAvailabilityReason.java deleted file mode 100644 index 3b1409dad2b9d..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckElasticResourceAvailabilityReason.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Availability reason. - */ -public final class CheckElasticResourceAvailabilityReason - extends ExpandableStringEnum { - /** - * Value indicating the name provided does not match Azure NetApp Files naming requirements. - */ - public static final CheckElasticResourceAvailabilityReason INVALID = fromString("Invalid"); - - /** - * Value indicating the name is already in use and is therefore unavailable. - */ - public static final CheckElasticResourceAvailabilityReason ALREADY_EXISTS = fromString("AlreadyExists"); - - /** - * Creates a new instance of CheckElasticResourceAvailabilityReason value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public CheckElasticResourceAvailabilityReason() { - } - - /** - * Creates or finds a CheckElasticResourceAvailabilityReason from its string representation. - * - * @param name a name to look for. - * @return the corresponding CheckElasticResourceAvailabilityReason. - */ - public static CheckElasticResourceAvailabilityReason fromString(String name) { - return fromString(name, CheckElasticResourceAvailabilityReason.class); - } - - /** - * Gets known CheckElasticResourceAvailabilityReason values. - * - * @return known CheckElasticResourceAvailabilityReason values. - */ - public static Collection values() { - return values(CheckElasticResourceAvailabilityReason.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckElasticResourceAvailabilityResponse.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckElasticResourceAvailabilityResponse.java deleted file mode 100644 index 5af7e272e2e4f..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckElasticResourceAvailabilityResponse.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.resourcemanager.netapp.fluent.models.CheckElasticResourceAvailabilityResponseInner; - -/** - * An immutable client-side representation of CheckElasticResourceAvailabilityResponse. - */ -public interface CheckElasticResourceAvailabilityResponse { - /** - * Gets the isAvailable property: True indicates name is valid and available. False indicates the name is invalid, - * unavailable, or both. - * - * @return the isAvailable value. - */ - CheckElasticResourceAvailabilityStatus isAvailable(); - - /** - * Gets the reason property: Invalid indicates the name provided does not match Azure NetApp Files naming - * requirements. AlreadyExists indicates that the name is already in use and is therefore unavailable. - * - * @return the reason value. - */ - CheckElasticResourceAvailabilityReason reason(); - - /** - * Gets the message property: If reason == invalid, provide the user with the reason why the given name is invalid, - * and provide the resource naming requirements so that the user can select a valid name. If reason == - * AlreadyExists, explain that resource name is already in use, and direct them to select a different name. - * - * @return the message value. - */ - String message(); - - /** - * Gets the inner com.azure.resourcemanager.netapp.fluent.models.CheckElasticResourceAvailabilityResponseInner - * object. - * - * @return the inner object. - */ - CheckElasticResourceAvailabilityResponseInner innerModel(); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckElasticResourceAvailabilityStatus.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckElasticResourceAvailabilityStatus.java deleted file mode 100644 index 166f957b4018a..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckElasticResourceAvailabilityStatus.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Availability status. - */ -public final class CheckElasticResourceAvailabilityStatus - extends ExpandableStringEnum { - /** - * Value indicating the name is valid and available. - */ - public static final CheckElasticResourceAvailabilityStatus TRUE = fromString("True"); - - /** - * Value indicating the the name is invalid, unavailable, or both. - */ - public static final CheckElasticResourceAvailabilityStatus FALSE = fromString("False"); - - /** - * Creates a new instance of CheckElasticResourceAvailabilityStatus value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public CheckElasticResourceAvailabilityStatus() { - } - - /** - * Creates or finds a CheckElasticResourceAvailabilityStatus from its string representation. - * - * @param name a name to look for. - * @return the corresponding CheckElasticResourceAvailabilityStatus. - */ - public static CheckElasticResourceAvailabilityStatus fromString(String name) { - return fromString(name, CheckElasticResourceAvailabilityStatus.class); - } - - /** - * Gets known CheckElasticResourceAvailabilityStatus values. - * - * @return known CheckElasticResourceAvailabilityStatus values. - */ - public static Collection values() { - return values(CheckElasticResourceAvailabilityStatus.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckElasticVolumeFilePathAvailabilityRequest.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckElasticVolumeFilePathAvailabilityRequest.java deleted file mode 100644 index b12b14137a726..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CheckElasticVolumeFilePathAvailabilityRequest.java +++ /dev/null @@ -1,108 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * File path availability request content - availability is based on the elastic volume filePath within the given - * elastic capacityPool. - */ -@Fluent -public final class CheckElasticVolumeFilePathAvailabilityRequest - implements JsonSerializable { - /* - * A unique file path for the volume. Used when creating mount targets. This needs to be unique within the elastic - * capacity pool. - */ - private String filePath; - - /** - * Creates an instance of CheckElasticVolumeFilePathAvailabilityRequest class. - */ - public CheckElasticVolumeFilePathAvailabilityRequest() { - } - - /** - * Get the filePath property: A unique file path for the volume. Used when creating mount targets. This needs to be - * unique within the elastic capacity pool. - * - * @return the filePath value. - */ - public String filePath() { - return this.filePath; - } - - /** - * Set the filePath property: A unique file path for the volume. Used when creating mount targets. This needs to be - * unique within the elastic capacity pool. - * - * @param filePath the filePath value to set. - * @return the CheckElasticVolumeFilePathAvailabilityRequest object itself. - */ - public CheckElasticVolumeFilePathAvailabilityRequest withFilePath(String filePath) { - this.filePath = filePath; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (filePath() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property filePath in model CheckElasticVolumeFilePathAvailabilityRequest")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(CheckElasticVolumeFilePathAvailabilityRequest.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("filePath", this.filePath); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of CheckElasticVolumeFilePathAvailabilityRequest from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of CheckElasticVolumeFilePathAvailabilityRequest 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 CheckElasticVolumeFilePathAvailabilityRequest. - */ - public static CheckElasticVolumeFilePathAvailabilityRequest fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - CheckElasticVolumeFilePathAvailabilityRequest deserializedCheckElasticVolumeFilePathAvailabilityRequest - = new CheckElasticVolumeFilePathAvailabilityRequest(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("filePath".equals(fieldName)) { - deserializedCheckElasticVolumeFilePathAvailabilityRequest.filePath = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedCheckElasticVolumeFilePathAvailabilityRequest; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CredentialsAkvDetails.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CredentialsAkvDetails.java index 4366a60c1e51c..98b4c8cedd84b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CredentialsAkvDetails.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/CredentialsAkvDetails.java @@ -31,13 +31,6 @@ public final class CredentialsAkvDetails implements JsonSerializable { - /** - * Take a snapshot each Sunday. - */ - public static final DayOfWeek SUNDAY = fromString("Sunday"); - - /** - * Take a snapshot each Monday. - */ - public static final DayOfWeek MONDAY = fromString("Monday"); - - /** - * Take a snapshot each Tuesday. - */ - public static final DayOfWeek TUESDAY = fromString("Tuesday"); - - /** - * Take a snapshot each Wednesday. - */ - public static final DayOfWeek WEDNESDAY = fromString("Wednesday"); - - /** - * Take a snapshot each Thursday. - */ - public static final DayOfWeek THURSDAY = fromString("Thursday"); - - /** - * Take a snapshot each Friday. - */ - public static final DayOfWeek FRIDAY = fromString("Friday"); - - /** - * Take a snapshot each Saturday. - */ - public static final DayOfWeek SATURDAY = fromString("Saturday"); - - /** - * Creates a new instance of DayOfWeek value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public DayOfWeek() { - } - - /** - * Creates or finds a DayOfWeek from its string representation. - * - * @param name a name to look for. - * @return the corresponding DayOfWeek. - */ - public static DayOfWeek fromString(String name) { - return fromString(name, DayOfWeek.class); - } - - /** - * Gets known DayOfWeek values. - * - * @return known DayOfWeek values. - */ - public static Collection values() { - return values(DayOfWeek.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccount.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccount.java deleted file mode 100644 index 74a275dbed061..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccount.java +++ /dev/null @@ -1,309 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.management.Region; -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.fluent.models.ElasticAccountInner; -import java.util.Map; - -/** - * An immutable client-side representation of ElasticAccount. - */ -public interface ElasticAccount { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the name property: The name of the resource. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The type of the resource. - * - * @return the type value. - */ - String type(); - - /** - * Gets the location property: The geo-location where the resource lives. - * - * @return the location value. - */ - String location(); - - /** - * Gets the tags property: Resource tags. - * - * @return the tags value. - */ - Map tags(); - - /** - * Gets the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - ElasticAccountProperties properties(); - - /** - * Gets the eTag property: If eTag is provided in the response body, it may also be provided as a header per the - * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. - * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), - * and If-Range (section 14.27) header fields. - * - * @return the eTag value. - */ - String eTag(); - - /** - * Gets the identity property: The managed service identities assigned to this resource. - * - * @return the identity value. - */ - ManagedServiceIdentity identity(); - - /** - * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - SystemData systemData(); - - /** - * Gets the region of the resource. - * - * @return the region of the resource. - */ - Region region(); - - /** - * Gets the name of the resource region. - * - * @return the name of the resource region. - */ - String regionName(); - - /** - * Gets the name of the resource group. - * - * @return the name of the resource group. - */ - String resourceGroupName(); - - /** - * Gets the inner com.azure.resourcemanager.netapp.fluent.models.ElasticAccountInner object. - * - * @return the inner object. - */ - ElasticAccountInner innerModel(); - - /** - * The entirety of the ElasticAccount definition. - */ - interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, - DefinitionStages.WithResourceGroup, DefinitionStages.WithCreate { - } - - /** - * The ElasticAccount definition stages. - */ - interface DefinitionStages { - /** - * The first stage of the ElasticAccount definition. - */ - interface Blank extends WithLocation { - } - - /** - * The stage of the ElasticAccount definition allowing to specify location. - */ - interface WithLocation { - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithResourceGroup withRegion(Region location); - - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithResourceGroup withRegion(String location); - } - - /** - * The stage of the ElasticAccount definition allowing to specify parent resource. - */ - interface WithResourceGroup { - /** - * Specifies resourceGroupName. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @return the next definition stage. - */ - WithCreate withExistingResourceGroup(String resourceGroupName); - } - - /** - * The stage of the ElasticAccount definition which contains all the minimum required properties for the - * resource to be created, but also allows for any other optional properties to be specified. - */ - interface WithCreate - extends DefinitionStages.WithTags, DefinitionStages.WithProperties, DefinitionStages.WithIdentity { - /** - * Executes the create request. - * - * @return the created resource. - */ - ElasticAccount create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - ElasticAccount create(Context context); - } - - /** - * The stage of the ElasticAccount definition allowing to specify tags. - */ - interface WithTags { - /** - * Specifies the tags property: Resource tags.. - * - * @param tags Resource tags. - * @return the next definition stage. - */ - WithCreate withTags(Map tags); - } - - /** - * The stage of the ElasticAccount definition allowing to specify properties. - */ - interface WithProperties { - /** - * Specifies the properties property: The resource-specific properties for this resource.. - * - * @param properties The resource-specific properties for this resource. - * @return the next definition stage. - */ - WithCreate withProperties(ElasticAccountProperties properties); - } - - /** - * The stage of the ElasticAccount definition allowing to specify identity. - */ - interface WithIdentity { - /** - * Specifies the identity property: The managed service identities assigned to this resource.. - * - * @param identity The managed service identities assigned to this resource. - * @return the next definition stage. - */ - WithCreate withIdentity(ManagedServiceIdentity identity); - } - } - - /** - * Begins update for the ElasticAccount resource. - * - * @return the stage of resource update. - */ - ElasticAccount.Update update(); - - /** - * The template for ElasticAccount update. - */ - interface Update extends UpdateStages.WithTags, UpdateStages.WithIdentity, UpdateStages.WithProperties { - /** - * Executes the update request. - * - * @return the updated resource. - */ - ElasticAccount apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - ElasticAccount apply(Context context); - } - - /** - * The ElasticAccount update stages. - */ - interface UpdateStages { - /** - * The stage of the ElasticAccount update allowing to specify tags. - */ - interface WithTags { - /** - * Specifies the tags property: Resource tags.. - * - * @param tags Resource tags. - * @return the next definition stage. - */ - Update withTags(Map tags); - } - - /** - * The stage of the ElasticAccount update allowing to specify identity. - */ - interface WithIdentity { - /** - * Specifies the identity property: The managed service identities assigned to this resource.. - * - * @param identity The managed service identities assigned to this resource. - * @return the next definition stage. - */ - Update withIdentity(ManagedServiceIdentity identity); - } - - /** - * The stage of the ElasticAccount update allowing to specify properties. - */ - interface WithProperties { - /** - * Specifies the properties property: The resource-specific properties for this resource.. - * - * @param properties The resource-specific properties for this resource. - * @return the next definition stage. - */ - Update withProperties(ElasticAccountUpdateProperties properties); - } - } - - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - ElasticAccount refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - ElasticAccount refresh(Context context); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccountProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccountProperties.java deleted file mode 100644 index ba88af2cec9b8..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccountProperties.java +++ /dev/null @@ -1,113 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.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; - -/** - * NetApp elastic account properties. - */ -@Fluent -public final class ElasticAccountProperties implements JsonSerializable { - /* - * Azure lifecycle management. - */ - private ProvisioningState provisioningState; - - /* - * Encryption settings - */ - private ElasticEncryption encryption; - - /** - * Creates an instance of ElasticAccountProperties class. - */ - public ElasticAccountProperties() { - } - - /** - * Get the provisioningState property: Azure lifecycle management. - * - * @return the provisioningState value. - */ - public ProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Get the encryption property: Encryption settings. - * - * @return the encryption value. - */ - public ElasticEncryption encryption() { - return this.encryption; - } - - /** - * Set the encryption property: Encryption settings. - * - * @param encryption the encryption value to set. - * @return the ElasticAccountProperties object itself. - */ - public ElasticAccountProperties withEncryption(ElasticEncryption encryption) { - this.encryption = encryption; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (encryption() != null) { - encryption().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("encryption", this.encryption); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticAccountProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticAccountProperties 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 ElasticAccountProperties. - */ - public static ElasticAccountProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticAccountProperties deserializedElasticAccountProperties = new ElasticAccountProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("provisioningState".equals(fieldName)) { - deserializedElasticAccountProperties.provisioningState - = ProvisioningState.fromString(reader.getString()); - } else if ("encryption".equals(fieldName)) { - deserializedElasticAccountProperties.encryption = ElasticEncryption.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticAccountProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccountUpdate.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccountUpdate.java deleted file mode 100644 index 73c6fe0da659e..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccountUpdate.java +++ /dev/null @@ -1,157 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.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; - -/** - * The type used for update operations of the ElasticAccount. - */ -@Fluent -public final class ElasticAccountUpdate implements JsonSerializable { - /* - * The managed service identities assigned to this resource. - */ - private ManagedServiceIdentity identity; - - /* - * Resource tags. - */ - private Map tags; - - /* - * The resource-specific properties for this resource. - */ - private ElasticAccountUpdateProperties properties; - - /** - * Creates an instance of ElasticAccountUpdate class. - */ - public ElasticAccountUpdate() { - } - - /** - * Get the identity property: The managed service identities assigned to this resource. - * - * @return the identity value. - */ - public ManagedServiceIdentity identity() { - return this.identity; - } - - /** - * Set the identity property: The managed service identities assigned to this resource. - * - * @param identity the identity value to set. - * @return the ElasticAccountUpdate object itself. - */ - public ElasticAccountUpdate withIdentity(ManagedServiceIdentity identity) { - this.identity = identity; - return this; - } - - /** - * Get the tags property: Resource tags. - * - * @return the tags value. - */ - public Map tags() { - return this.tags; - } - - /** - * Set the tags property: Resource tags. - * - * @param tags the tags value to set. - * @return the ElasticAccountUpdate object itself. - */ - public ElasticAccountUpdate withTags(Map tags) { - this.tags = tags; - return this; - } - - /** - * Get the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - public ElasticAccountUpdateProperties properties() { - return this.properties; - } - - /** - * Set the properties property: The resource-specific properties for this resource. - * - * @param properties the properties value to set. - * @return the ElasticAccountUpdate object itself. - */ - public ElasticAccountUpdate withProperties(ElasticAccountUpdateProperties properties) { - this.properties = properties; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (identity() != null) { - identity().validate(); - } - if (properties() != null) { - properties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("identity", this.identity); - jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); - jsonWriter.writeJsonField("properties", this.properties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticAccountUpdate from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticAccountUpdate 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 ElasticAccountUpdate. - */ - public static ElasticAccountUpdate fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticAccountUpdate deserializedElasticAccountUpdate = new ElasticAccountUpdate(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("identity".equals(fieldName)) { - deserializedElasticAccountUpdate.identity = ManagedServiceIdentity.fromJson(reader); - } else if ("tags".equals(fieldName)) { - Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedElasticAccountUpdate.tags = tags; - } else if ("properties".equals(fieldName)) { - deserializedElasticAccountUpdate.properties = ElasticAccountUpdateProperties.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticAccountUpdate; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccountUpdateProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccountUpdateProperties.java deleted file mode 100644 index 10032af751448..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccountUpdateProperties.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.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; - -/** - * The updatable properties of the ElasticAccount. - */ -@Fluent -public final class ElasticAccountUpdateProperties implements JsonSerializable { - /* - * Encryption settings - */ - private ElasticEncryption encryption; - - /** - * Creates an instance of ElasticAccountUpdateProperties class. - */ - public ElasticAccountUpdateProperties() { - } - - /** - * Get the encryption property: Encryption settings. - * - * @return the encryption value. - */ - public ElasticEncryption encryption() { - return this.encryption; - } - - /** - * Set the encryption property: Encryption settings. - * - * @param encryption the encryption value to set. - * @return the ElasticAccountUpdateProperties object itself. - */ - public ElasticAccountUpdateProperties withEncryption(ElasticEncryption encryption) { - this.encryption = encryption; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (encryption() != null) { - encryption().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("encryption", this.encryption); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticAccountUpdateProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticAccountUpdateProperties 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 ElasticAccountUpdateProperties. - */ - public static ElasticAccountUpdateProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticAccountUpdateProperties deserializedElasticAccountUpdateProperties - = new ElasticAccountUpdateProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("encryption".equals(fieldName)) { - deserializedElasticAccountUpdateProperties.encryption = ElasticEncryption.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticAccountUpdateProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccounts.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccounts.java deleted file mode 100644 index d0a352417a676..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccounts.java +++ /dev/null @@ -1,158 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** - * Resource collection API of ElasticAccounts. - */ -public interface ElasticAccounts { - /** - * Get the NetApp Elastic Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 NetApp Elastic Account along with {@link Response}. - */ - Response getByResourceGroupWithResponse(String resourceGroupName, String accountName, - Context context); - - /** - * Get the NetApp Elastic Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 NetApp Elastic Account. - */ - ElasticAccount getByResourceGroup(String resourceGroupName, String accountName); - - /** - * Delete the specified NetApp elastic account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 deleteByResourceGroup(String resourceGroupName, String accountName); - - /** - * Delete the specified NetApp elastic account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @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 delete(String resourceGroupName, String accountName, Context context); - - /** - * List and describe all NetApp elastic accounts in the resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ElasticAccount list operation as paginated response with {@link PagedIterable}. - */ - PagedIterable listByResourceGroup(String resourceGroupName); - - /** - * List and describe all NetApp elastic accounts in the resource group. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ElasticAccount list operation as paginated response with {@link PagedIterable}. - */ - PagedIterable listByResourceGroup(String resourceGroupName, Context context); - - /** - * List and describe all NetApp elastic accounts in the subscription. - * - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ElasticAccount list operation as paginated response with {@link PagedIterable}. - */ - PagedIterable list(); - - /** - * List and describe all NetApp elastic accounts in the subscription. - * - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ElasticAccount list operation as paginated response with {@link PagedIterable}. - */ - PagedIterable list(Context context); - - /** - * Get the NetApp Elastic Account. - * - * @param id the resource ID. - * @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 NetApp Elastic Account along with {@link Response}. - */ - ElasticAccount getById(String id); - - /** - * Get the NetApp Elastic Account. - * - * @param id the resource ID. - * @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 NetApp Elastic Account along with {@link Response}. - */ - Response getByIdWithResponse(String id, Context context); - - /** - * Delete the specified NetApp elastic account. - * - * @param id the resource ID. - * @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 deleteById(String id); - - /** - * Delete the specified NetApp elastic account. - * - * @param id the resource ID. - * @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 deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new ElasticAccount resource. - * - * @param name resource name. - * @return the first stage of the new ElasticAccount definition. - */ - ElasticAccount.DefinitionStages.Blank define(String name); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackup.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackup.java deleted file mode 100644 index 5d92beb9983b3..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackup.java +++ /dev/null @@ -1,191 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.fluent.models.ElasticBackupInner; - -/** - * An immutable client-side representation of ElasticBackup. - */ -public interface ElasticBackup { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the name property: The name of the resource. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The type of the resource. - * - * @return the type value. - */ - String type(); - - /** - * Gets the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - ElasticBackupProperties properties(); - - /** - * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - SystemData systemData(); - - /** - * Gets the name of the resource group. - * - * @return the name of the resource group. - */ - String resourceGroupName(); - - /** - * Gets the inner com.azure.resourcemanager.netapp.fluent.models.ElasticBackupInner object. - * - * @return the inner object. - */ - ElasticBackupInner innerModel(); - - /** - * The entirety of the ElasticBackup definition. - */ - interface Definition - extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { - } - - /** - * The ElasticBackup definition stages. - */ - interface DefinitionStages { - /** - * The first stage of the ElasticBackup definition. - */ - interface Blank extends WithParentResource { - } - - /** - * The stage of the ElasticBackup definition allowing to specify parent resource. - */ - interface WithParentResource { - /** - * Specifies resourceGroupName, accountName, backupVaultName. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @return the next definition stage. - */ - WithCreate withExistingElasticBackupVault(String resourceGroupName, String accountName, - String backupVaultName); - } - - /** - * The stage of the ElasticBackup definition which contains all the minimum required properties for the resource - * to be created, but also allows for any other optional properties to be specified. - */ - interface WithCreate extends DefinitionStages.WithProperties { - /** - * Executes the create request. - * - * @return the created resource. - */ - ElasticBackup create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - ElasticBackup create(Context context); - } - - /** - * The stage of the ElasticBackup definition allowing to specify properties. - */ - interface WithProperties { - /** - * Specifies the properties property: The resource-specific properties for this resource.. - * - * @param properties The resource-specific properties for this resource. - * @return the next definition stage. - */ - WithCreate withProperties(ElasticBackupProperties properties); - } - } - - /** - * Begins update for the ElasticBackup resource. - * - * @return the stage of resource update. - */ - ElasticBackup.Update update(); - - /** - * The template for ElasticBackup update. - */ - interface Update extends UpdateStages.WithProperties { - /** - * Executes the update request. - * - * @return the updated resource. - */ - ElasticBackup apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - ElasticBackup apply(Context context); - } - - /** - * The ElasticBackup update stages. - */ - interface UpdateStages { - /** - * The stage of the ElasticBackup update allowing to specify properties. - */ - interface WithProperties { - /** - * Specifies the properties property: The resource-specific properties for this resource.. - * - * @param properties The resource-specific properties for this resource. - * @return the next definition stage. - */ - Update withProperties(ElasticBackupProperties properties); - } - } - - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - ElasticBackup refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - ElasticBackup refresh(Context context); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicies.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicies.java deleted file mode 100644 index 75cece14fea6c..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicies.java +++ /dev/null @@ -1,145 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** - * Resource collection API of ElasticBackupPolicies. - */ -public interface ElasticBackupPolicies { - /** - * Get the Elastic Backup Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @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 Elastic Backup Policy along with {@link Response}. - */ - Response getWithResponse(String resourceGroupName, String accountName, String backupPolicyName, - Context context); - - /** - * Get the Elastic Backup Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @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 Elastic Backup Policy. - */ - ElasticBackupPolicy get(String resourceGroupName, String accountName, String backupPolicyName); - - /** - * Delete the specified Elastic Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @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 delete(String resourceGroupName, String accountName, String backupPolicyName); - - /** - * Delete the specified Elastic Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupPolicyName The name of the ElasticBackupPolicy. - * @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 delete(String resourceGroupName, String accountName, String backupPolicyName, Context context); - - /** - * List and describe all Elastic Backup Policies in the elastic account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ElasticBackupPolicy list operation as paginated response with {@link PagedIterable}. - */ - PagedIterable listByElasticAccount(String resourceGroupName, String accountName); - - /** - * List and describe all Elastic Backup Policies in the elastic account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ElasticBackupPolicy list operation as paginated response with {@link PagedIterable}. - */ - PagedIterable listByElasticAccount(String resourceGroupName, String accountName, - Context context); - - /** - * Get the Elastic Backup Policy. - * - * @param id the resource ID. - * @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 Elastic Backup Policy along with {@link Response}. - */ - ElasticBackupPolicy getById(String id); - - /** - * Get the Elastic Backup Policy. - * - * @param id the resource ID. - * @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 Elastic Backup Policy along with {@link Response}. - */ - Response getByIdWithResponse(String id, Context context); - - /** - * Delete the specified Elastic Policy. - * - * @param id the resource ID. - * @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 deleteById(String id); - - /** - * Delete the specified Elastic Policy. - * - * @param id the resource ID. - * @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 deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new ElasticBackupPolicy resource. - * - * @param name resource name. - * @return the first stage of the new ElasticBackupPolicy definition. - */ - ElasticBackupPolicy.DefinitionStages.Blank define(String name); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicy.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicy.java deleted file mode 100644 index c05d1474cc2a2..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicy.java +++ /dev/null @@ -1,276 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.management.Region; -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.fluent.models.ElasticBackupPolicyInner; -import java.util.Map; - -/** - * An immutable client-side representation of ElasticBackupPolicy. - */ -public interface ElasticBackupPolicy { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the name property: The name of the resource. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The type of the resource. - * - * @return the type value. - */ - String type(); - - /** - * Gets the location property: The geo-location where the resource lives. - * - * @return the location value. - */ - String location(); - - /** - * Gets the tags property: Resource tags. - * - * @return the tags value. - */ - Map tags(); - - /** - * Gets the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - ElasticBackupPolicyProperties properties(); - - /** - * Gets the eTag property: If eTag is provided in the response body, it may also be provided as a header per the - * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. - * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), - * and If-Range (section 14.27) header fields. - * - * @return the eTag value. - */ - String eTag(); - - /** - * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - SystemData systemData(); - - /** - * Gets the region of the resource. - * - * @return the region of the resource. - */ - Region region(); - - /** - * Gets the name of the resource region. - * - * @return the name of the resource region. - */ - String regionName(); - - /** - * Gets the name of the resource group. - * - * @return the name of the resource group. - */ - String resourceGroupName(); - - /** - * Gets the inner com.azure.resourcemanager.netapp.fluent.models.ElasticBackupPolicyInner object. - * - * @return the inner object. - */ - ElasticBackupPolicyInner innerModel(); - - /** - * The entirety of the ElasticBackupPolicy definition. - */ - interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, - DefinitionStages.WithParentResource, DefinitionStages.WithCreate { - } - - /** - * The ElasticBackupPolicy definition stages. - */ - interface DefinitionStages { - /** - * The first stage of the ElasticBackupPolicy definition. - */ - interface Blank extends WithLocation { - } - - /** - * The stage of the ElasticBackupPolicy definition allowing to specify location. - */ - interface WithLocation { - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithParentResource withRegion(Region location); - - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithParentResource withRegion(String location); - } - - /** - * The stage of the ElasticBackupPolicy definition allowing to specify parent resource. - */ - interface WithParentResource { - /** - * Specifies resourceGroupName, accountName. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @return the next definition stage. - */ - WithCreate withExistingElasticAccount(String resourceGroupName, String accountName); - } - - /** - * The stage of the ElasticBackupPolicy definition which contains all the minimum required properties for the - * resource to be created, but also allows for any other optional properties to be specified. - */ - interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithProperties { - /** - * Executes the create request. - * - * @return the created resource. - */ - ElasticBackupPolicy create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - ElasticBackupPolicy create(Context context); - } - - /** - * The stage of the ElasticBackupPolicy definition allowing to specify tags. - */ - interface WithTags { - /** - * Specifies the tags property: Resource tags.. - * - * @param tags Resource tags. - * @return the next definition stage. - */ - WithCreate withTags(Map tags); - } - - /** - * The stage of the ElasticBackupPolicy definition allowing to specify properties. - */ - interface WithProperties { - /** - * Specifies the properties property: The resource-specific properties for this resource.. - * - * @param properties The resource-specific properties for this resource. - * @return the next definition stage. - */ - WithCreate withProperties(ElasticBackupPolicyProperties properties); - } - } - - /** - * Begins update for the ElasticBackupPolicy resource. - * - * @return the stage of resource update. - */ - ElasticBackupPolicy.Update update(); - - /** - * The template for ElasticBackupPolicy update. - */ - interface Update extends UpdateStages.WithTags, UpdateStages.WithProperties { - /** - * Executes the update request. - * - * @return the updated resource. - */ - ElasticBackupPolicy apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - ElasticBackupPolicy apply(Context context); - } - - /** - * The ElasticBackupPolicy update stages. - */ - interface UpdateStages { - /** - * The stage of the ElasticBackupPolicy update allowing to specify tags. - */ - interface WithTags { - /** - * Specifies the tags property: Resource tags.. - * - * @param tags Resource tags. - * @return the next definition stage. - */ - Update withTags(Map tags); - } - - /** - * The stage of the ElasticBackupPolicy update allowing to specify properties. - */ - interface WithProperties { - /** - * Specifies the properties property: The resource-specific properties for this resource.. - * - * @param properties The resource-specific properties for this resource. - * @return the next definition stage. - */ - Update withProperties(ElasticBackupPolicyUpdateProperties properties); - } - } - - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - ElasticBackupPolicy refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - ElasticBackupPolicy refresh(Context context); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicyProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicyProperties.java deleted file mode 100644 index a829e3c742914..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicyProperties.java +++ /dev/null @@ -1,216 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.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; - -/** - * Elastic Backup Policy properties. - */ -@Fluent -public final class ElasticBackupPolicyProperties implements JsonSerializable { - /* - * Azure lifecycle management. - */ - private ProvisioningState provisioningState; - - /* - * Daily backups count to keep - */ - private Integer dailyBackupsToKeep; - - /* - * Weekly backups count to keep - */ - private Integer weeklyBackupsToKeep; - - /* - * Monthly backups count to keep - */ - private Integer monthlyBackupsToKeep; - - /* - * The number of volumes currently using this Backup Policy. - */ - private Integer assignedVolumesCount; - - /* - * The property to identify whether Backup Policy is enabled or not - */ - private ElasticBackupPolicyState policyState; - - /** - * Creates an instance of ElasticBackupPolicyProperties class. - */ - public ElasticBackupPolicyProperties() { - } - - /** - * Get the provisioningState property: Azure lifecycle management. - * - * @return the provisioningState value. - */ - public ProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Get the dailyBackupsToKeep property: Daily backups count to keep. - * - * @return the dailyBackupsToKeep value. - */ - public Integer dailyBackupsToKeep() { - return this.dailyBackupsToKeep; - } - - /** - * Set the dailyBackupsToKeep property: Daily backups count to keep. - * - * @param dailyBackupsToKeep the dailyBackupsToKeep value to set. - * @return the ElasticBackupPolicyProperties object itself. - */ - public ElasticBackupPolicyProperties withDailyBackupsToKeep(Integer dailyBackupsToKeep) { - this.dailyBackupsToKeep = dailyBackupsToKeep; - return this; - } - - /** - * Get the weeklyBackupsToKeep property: Weekly backups count to keep. - * - * @return the weeklyBackupsToKeep value. - */ - public Integer weeklyBackupsToKeep() { - return this.weeklyBackupsToKeep; - } - - /** - * Set the weeklyBackupsToKeep property: Weekly backups count to keep. - * - * @param weeklyBackupsToKeep the weeklyBackupsToKeep value to set. - * @return the ElasticBackupPolicyProperties object itself. - */ - public ElasticBackupPolicyProperties withWeeklyBackupsToKeep(Integer weeklyBackupsToKeep) { - this.weeklyBackupsToKeep = weeklyBackupsToKeep; - return this; - } - - /** - * Get the monthlyBackupsToKeep property: Monthly backups count to keep. - * - * @return the monthlyBackupsToKeep value. - */ - public Integer monthlyBackupsToKeep() { - return this.monthlyBackupsToKeep; - } - - /** - * Set the monthlyBackupsToKeep property: Monthly backups count to keep. - * - * @param monthlyBackupsToKeep the monthlyBackupsToKeep value to set. - * @return the ElasticBackupPolicyProperties object itself. - */ - public ElasticBackupPolicyProperties withMonthlyBackupsToKeep(Integer monthlyBackupsToKeep) { - this.monthlyBackupsToKeep = monthlyBackupsToKeep; - return this; - } - - /** - * Get the assignedVolumesCount property: The number of volumes currently using this Backup Policy. - * - * @return the assignedVolumesCount value. - */ - public Integer assignedVolumesCount() { - return this.assignedVolumesCount; - } - - /** - * Get the policyState property: The property to identify whether Backup Policy is enabled or not. - * - * @return the policyState value. - */ - public ElasticBackupPolicyState policyState() { - return this.policyState; - } - - /** - * Set the policyState property: The property to identify whether Backup Policy is enabled or not. - * - * @param policyState the policyState value to set. - * @return the ElasticBackupPolicyProperties object itself. - */ - public ElasticBackupPolicyProperties withPolicyState(ElasticBackupPolicyState policyState) { - this.policyState = policyState; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeNumberField("dailyBackupsToKeep", this.dailyBackupsToKeep); - jsonWriter.writeNumberField("weeklyBackupsToKeep", this.weeklyBackupsToKeep); - jsonWriter.writeNumberField("monthlyBackupsToKeep", this.monthlyBackupsToKeep); - jsonWriter.writeStringField("policyState", this.policyState == null ? null : this.policyState.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticBackupPolicyProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticBackupPolicyProperties 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 ElasticBackupPolicyProperties. - */ - public static ElasticBackupPolicyProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticBackupPolicyProperties deserializedElasticBackupPolicyProperties - = new ElasticBackupPolicyProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("provisioningState".equals(fieldName)) { - deserializedElasticBackupPolicyProperties.provisioningState - = ProvisioningState.fromString(reader.getString()); - } else if ("dailyBackupsToKeep".equals(fieldName)) { - deserializedElasticBackupPolicyProperties.dailyBackupsToKeep - = reader.getNullable(JsonReader::getInt); - } else if ("weeklyBackupsToKeep".equals(fieldName)) { - deserializedElasticBackupPolicyProperties.weeklyBackupsToKeep - = reader.getNullable(JsonReader::getInt); - } else if ("monthlyBackupsToKeep".equals(fieldName)) { - deserializedElasticBackupPolicyProperties.monthlyBackupsToKeep - = reader.getNullable(JsonReader::getInt); - } else if ("assignedVolumesCount".equals(fieldName)) { - deserializedElasticBackupPolicyProperties.assignedVolumesCount - = reader.getNullable(JsonReader::getInt); - } else if ("policyState".equals(fieldName)) { - deserializedElasticBackupPolicyProperties.policyState - = ElasticBackupPolicyState.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticBackupPolicyProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicyState.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicyState.java deleted file mode 100644 index 6b507c88adf5b..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicyState.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Elastic Backup Policy state. - */ -public final class ElasticBackupPolicyState extends ExpandableStringEnum { - /** - * Value indicating the policy is enabled. - */ - public static final ElasticBackupPolicyState ENABLED = fromString("Enabled"); - - /** - * Value indicating the policy is disabled. - */ - public static final ElasticBackupPolicyState DISABLED = fromString("Disabled"); - - /** - * Creates a new instance of ElasticBackupPolicyState value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ElasticBackupPolicyState() { - } - - /** - * Creates or finds a ElasticBackupPolicyState from its string representation. - * - * @param name a name to look for. - * @return the corresponding ElasticBackupPolicyState. - */ - public static ElasticBackupPolicyState fromString(String name) { - return fromString(name, ElasticBackupPolicyState.class); - } - - /** - * Gets known ElasticBackupPolicyState values. - * - * @return known ElasticBackupPolicyState values. - */ - public static Collection values() { - return values(ElasticBackupPolicyState.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicyUpdate.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicyUpdate.java deleted file mode 100644 index 97c446acbc60e..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicyUpdate.java +++ /dev/null @@ -1,127 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.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; - -/** - * The type used for update operations of the ElasticBackupPolicy. - */ -@Fluent -public final class ElasticBackupPolicyUpdate implements JsonSerializable { - /* - * Resource tags. - */ - private Map tags; - - /* - * The resource-specific properties for this resource. - */ - private ElasticBackupPolicyUpdateProperties properties; - - /** - * Creates an instance of ElasticBackupPolicyUpdate class. - */ - public ElasticBackupPolicyUpdate() { - } - - /** - * Get the tags property: Resource tags. - * - * @return the tags value. - */ - public Map tags() { - return this.tags; - } - - /** - * Set the tags property: Resource tags. - * - * @param tags the tags value to set. - * @return the ElasticBackupPolicyUpdate object itself. - */ - public ElasticBackupPolicyUpdate withTags(Map tags) { - this.tags = tags; - return this; - } - - /** - * Get the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - public ElasticBackupPolicyUpdateProperties properties() { - return this.properties; - } - - /** - * Set the properties property: The resource-specific properties for this resource. - * - * @param properties the properties value to set. - * @return the ElasticBackupPolicyUpdate object itself. - */ - public ElasticBackupPolicyUpdate withProperties(ElasticBackupPolicyUpdateProperties properties) { - this.properties = properties; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (properties() != null) { - properties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - 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(); - } - - /** - * Reads an instance of ElasticBackupPolicyUpdate from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticBackupPolicyUpdate 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 ElasticBackupPolicyUpdate. - */ - public static ElasticBackupPolicyUpdate fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticBackupPolicyUpdate deserializedElasticBackupPolicyUpdate = new ElasticBackupPolicyUpdate(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("tags".equals(fieldName)) { - Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedElasticBackupPolicyUpdate.tags = tags; - } else if ("properties".equals(fieldName)) { - deserializedElasticBackupPolicyUpdate.properties - = ElasticBackupPolicyUpdateProperties.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticBackupPolicyUpdate; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicyUpdateProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicyUpdateProperties.java deleted file mode 100644 index feb77d0173c41..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicyUpdateProperties.java +++ /dev/null @@ -1,183 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.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; - -/** - * The updatable properties of the ElasticBackupPolicy. - */ -@Fluent -public final class ElasticBackupPolicyUpdateProperties - implements JsonSerializable { - /* - * Daily backups count to keep - */ - private Integer dailyBackupsToKeep; - - /* - * Weekly backups count to keep - */ - private Integer weeklyBackupsToKeep; - - /* - * Monthly backups count to keep - */ - private Integer monthlyBackupsToKeep; - - /* - * The property to identify whether Backup Policy is enabled or not - */ - private ElasticBackupPolicyState policyState; - - /** - * Creates an instance of ElasticBackupPolicyUpdateProperties class. - */ - public ElasticBackupPolicyUpdateProperties() { - } - - /** - * Get the dailyBackupsToKeep property: Daily backups count to keep. - * - * @return the dailyBackupsToKeep value. - */ - public Integer dailyBackupsToKeep() { - return this.dailyBackupsToKeep; - } - - /** - * Set the dailyBackupsToKeep property: Daily backups count to keep. - * - * @param dailyBackupsToKeep the dailyBackupsToKeep value to set. - * @return the ElasticBackupPolicyUpdateProperties object itself. - */ - public ElasticBackupPolicyUpdateProperties withDailyBackupsToKeep(Integer dailyBackupsToKeep) { - this.dailyBackupsToKeep = dailyBackupsToKeep; - return this; - } - - /** - * Get the weeklyBackupsToKeep property: Weekly backups count to keep. - * - * @return the weeklyBackupsToKeep value. - */ - public Integer weeklyBackupsToKeep() { - return this.weeklyBackupsToKeep; - } - - /** - * Set the weeklyBackupsToKeep property: Weekly backups count to keep. - * - * @param weeklyBackupsToKeep the weeklyBackupsToKeep value to set. - * @return the ElasticBackupPolicyUpdateProperties object itself. - */ - public ElasticBackupPolicyUpdateProperties withWeeklyBackupsToKeep(Integer weeklyBackupsToKeep) { - this.weeklyBackupsToKeep = weeklyBackupsToKeep; - return this; - } - - /** - * Get the monthlyBackupsToKeep property: Monthly backups count to keep. - * - * @return the monthlyBackupsToKeep value. - */ - public Integer monthlyBackupsToKeep() { - return this.monthlyBackupsToKeep; - } - - /** - * Set the monthlyBackupsToKeep property: Monthly backups count to keep. - * - * @param monthlyBackupsToKeep the monthlyBackupsToKeep value to set. - * @return the ElasticBackupPolicyUpdateProperties object itself. - */ - public ElasticBackupPolicyUpdateProperties withMonthlyBackupsToKeep(Integer monthlyBackupsToKeep) { - this.monthlyBackupsToKeep = monthlyBackupsToKeep; - return this; - } - - /** - * Get the policyState property: The property to identify whether Backup Policy is enabled or not. - * - * @return the policyState value. - */ - public ElasticBackupPolicyState policyState() { - return this.policyState; - } - - /** - * Set the policyState property: The property to identify whether Backup Policy is enabled or not. - * - * @param policyState the policyState value to set. - * @return the ElasticBackupPolicyUpdateProperties object itself. - */ - public ElasticBackupPolicyUpdateProperties withPolicyState(ElasticBackupPolicyState policyState) { - this.policyState = policyState; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeNumberField("dailyBackupsToKeep", this.dailyBackupsToKeep); - jsonWriter.writeNumberField("weeklyBackupsToKeep", this.weeklyBackupsToKeep); - jsonWriter.writeNumberField("monthlyBackupsToKeep", this.monthlyBackupsToKeep); - jsonWriter.writeStringField("policyState", this.policyState == null ? null : this.policyState.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticBackupPolicyUpdateProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticBackupPolicyUpdateProperties 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 ElasticBackupPolicyUpdateProperties. - */ - public static ElasticBackupPolicyUpdateProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticBackupPolicyUpdateProperties deserializedElasticBackupPolicyUpdateProperties - = new ElasticBackupPolicyUpdateProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("dailyBackupsToKeep".equals(fieldName)) { - deserializedElasticBackupPolicyUpdateProperties.dailyBackupsToKeep - = reader.getNullable(JsonReader::getInt); - } else if ("weeklyBackupsToKeep".equals(fieldName)) { - deserializedElasticBackupPolicyUpdateProperties.weeklyBackupsToKeep - = reader.getNullable(JsonReader::getInt); - } else if ("monthlyBackupsToKeep".equals(fieldName)) { - deserializedElasticBackupPolicyUpdateProperties.monthlyBackupsToKeep - = reader.getNullable(JsonReader::getInt); - } else if ("policyState".equals(fieldName)) { - deserializedElasticBackupPolicyUpdateProperties.policyState - = ElasticBackupPolicyState.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticBackupPolicyUpdateProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupProperties.java deleted file mode 100644 index f494ee77a458f..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupProperties.java +++ /dev/null @@ -1,342 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.CoreUtils; -import com.azure.core.util.logging.ClientLogger; -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.time.OffsetDateTime; - -/** - * Elastic Backup properties. - */ -@Fluent -public final class ElasticBackupProperties implements JsonSerializable { - /* - * The creation date of the backup - */ - private OffsetDateTime creationDate; - - /* - * The snapshot creation date of the backup - */ - private OffsetDateTime snapshotCreationDate; - - /* - * The completion date of the backup - */ - private OffsetDateTime completionDate; - - /* - * Azure lifecycle management. - */ - private ProvisioningState provisioningState; - - /* - * Size of backup in bytes - */ - private Long size; - - /* - * Label for backup - */ - private String label; - - /* - * Type of backup Manual or Scheduled - */ - private ElasticBackupType backupType; - - /* - * Failure reason - */ - private String failureReason; - - /* - * ResourceId used to identify the Elastic Volume - */ - private String elasticVolumeResourceId; - - /* - * Manual backup using an already existing snapshot. This will always be CreateNewSnapshot for scheduled backups and - * UseExistingSnapshot/CreateNewSnapshot for manual backups - */ - private SnapshotUsage snapshotUsage; - - /* - * ResourceId used to identify the elastic snapshot resource. This is required when an existing snapshot needs to be - * used for creating a manual backup - */ - private String elasticSnapshotResourceId; - - /* - * ResourceId used to identify the elastic backup policy - */ - private String elasticBackupPolicyResourceId; - - /* - * Specifies if the backup is for a large volume. - */ - private VolumeSize volumeSize; - - /** - * Creates an instance of ElasticBackupProperties class. - */ - public ElasticBackupProperties() { - } - - /** - * Get the creationDate property: The creation date of the backup. - * - * @return the creationDate value. - */ - public OffsetDateTime creationDate() { - return this.creationDate; - } - - /** - * Get the snapshotCreationDate property: The snapshot creation date of the backup. - * - * @return the snapshotCreationDate value. - */ - public OffsetDateTime snapshotCreationDate() { - return this.snapshotCreationDate; - } - - /** - * Get the completionDate property: The completion date of the backup. - * - * @return the completionDate value. - */ - public OffsetDateTime completionDate() { - return this.completionDate; - } - - /** - * Get the provisioningState property: Azure lifecycle management. - * - * @return the provisioningState value. - */ - public ProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Get the size property: Size of backup in bytes. - * - * @return the size value. - */ - public Long size() { - return this.size; - } - - /** - * Get the label property: Label for backup. - * - * @return the label value. - */ - public String label() { - return this.label; - } - - /** - * Set the label property: Label for backup. - * - * @param label the label value to set. - * @return the ElasticBackupProperties object itself. - */ - public ElasticBackupProperties withLabel(String label) { - this.label = label; - return this; - } - - /** - * Get the backupType property: Type of backup Manual or Scheduled. - * - * @return the backupType value. - */ - public ElasticBackupType backupType() { - return this.backupType; - } - - /** - * Get the failureReason property: Failure reason. - * - * @return the failureReason value. - */ - public String failureReason() { - return this.failureReason; - } - - /** - * Get the elasticVolumeResourceId property: ResourceId used to identify the Elastic Volume. - * - * @return the elasticVolumeResourceId value. - */ - public String elasticVolumeResourceId() { - return this.elasticVolumeResourceId; - } - - /** - * Set the elasticVolumeResourceId property: ResourceId used to identify the Elastic Volume. - * - * @param elasticVolumeResourceId the elasticVolumeResourceId value to set. - * @return the ElasticBackupProperties object itself. - */ - public ElasticBackupProperties withElasticVolumeResourceId(String elasticVolumeResourceId) { - this.elasticVolumeResourceId = elasticVolumeResourceId; - return this; - } - - /** - * Get the snapshotUsage property: Manual backup using an already existing snapshot. This will always be - * CreateNewSnapshot for scheduled backups and UseExistingSnapshot/CreateNewSnapshot for manual backups. - * - * @return the snapshotUsage value. - */ - public SnapshotUsage snapshotUsage() { - return this.snapshotUsage; - } - - /** - * Set the snapshotUsage property: Manual backup using an already existing snapshot. This will always be - * CreateNewSnapshot for scheduled backups and UseExistingSnapshot/CreateNewSnapshot for manual backups. - * - * @param snapshotUsage the snapshotUsage value to set. - * @return the ElasticBackupProperties object itself. - */ - public ElasticBackupProperties withSnapshotUsage(SnapshotUsage snapshotUsage) { - this.snapshotUsage = snapshotUsage; - return this; - } - - /** - * Get the elasticSnapshotResourceId property: ResourceId used to identify the elastic snapshot resource. This is - * required when an existing snapshot needs to be used for creating a manual backup. - * - * @return the elasticSnapshotResourceId value. - */ - public String elasticSnapshotResourceId() { - return this.elasticSnapshotResourceId; - } - - /** - * Set the elasticSnapshotResourceId property: ResourceId used to identify the elastic snapshot resource. This is - * required when an existing snapshot needs to be used for creating a manual backup. - * - * @param elasticSnapshotResourceId the elasticSnapshotResourceId value to set. - * @return the ElasticBackupProperties object itself. - */ - public ElasticBackupProperties withElasticSnapshotResourceId(String elasticSnapshotResourceId) { - this.elasticSnapshotResourceId = elasticSnapshotResourceId; - return this; - } - - /** - * Get the elasticBackupPolicyResourceId property: ResourceId used to identify the elastic backup policy. - * - * @return the elasticBackupPolicyResourceId value. - */ - public String elasticBackupPolicyResourceId() { - return this.elasticBackupPolicyResourceId; - } - - /** - * Get the volumeSize property: Specifies if the backup is for a large volume. - * - * @return the volumeSize value. - */ - public VolumeSize volumeSize() { - return this.volumeSize; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (elasticVolumeResourceId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property elasticVolumeResourceId in model ElasticBackupProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ElasticBackupProperties.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("elasticVolumeResourceId", this.elasticVolumeResourceId); - jsonWriter.writeStringField("label", this.label); - jsonWriter.writeStringField("snapshotUsage", this.snapshotUsage == null ? null : this.snapshotUsage.toString()); - jsonWriter.writeStringField("elasticSnapshotResourceId", this.elasticSnapshotResourceId); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticBackupProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticBackupProperties 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 ElasticBackupProperties. - */ - public static ElasticBackupProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticBackupProperties deserializedElasticBackupProperties = new ElasticBackupProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("elasticVolumeResourceId".equals(fieldName)) { - deserializedElasticBackupProperties.elasticVolumeResourceId = reader.getString(); - } else if ("creationDate".equals(fieldName)) { - deserializedElasticBackupProperties.creationDate = reader - .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); - } else if ("snapshotCreationDate".equals(fieldName)) { - deserializedElasticBackupProperties.snapshotCreationDate = reader - .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); - } else if ("completionDate".equals(fieldName)) { - deserializedElasticBackupProperties.completionDate = reader - .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString())); - } else if ("provisioningState".equals(fieldName)) { - deserializedElasticBackupProperties.provisioningState - = ProvisioningState.fromString(reader.getString()); - } else if ("size".equals(fieldName)) { - deserializedElasticBackupProperties.size = reader.getNullable(JsonReader::getLong); - } else if ("label".equals(fieldName)) { - deserializedElasticBackupProperties.label = reader.getString(); - } else if ("backupType".equals(fieldName)) { - deserializedElasticBackupProperties.backupType = ElasticBackupType.fromString(reader.getString()); - } else if ("failureReason".equals(fieldName)) { - deserializedElasticBackupProperties.failureReason = reader.getString(); - } else if ("snapshotUsage".equals(fieldName)) { - deserializedElasticBackupProperties.snapshotUsage = SnapshotUsage.fromString(reader.getString()); - } else if ("elasticSnapshotResourceId".equals(fieldName)) { - deserializedElasticBackupProperties.elasticSnapshotResourceId = reader.getString(); - } else if ("elasticBackupPolicyResourceId".equals(fieldName)) { - deserializedElasticBackupProperties.elasticBackupPolicyResourceId = reader.getString(); - } else if ("volumeSize".equals(fieldName)) { - deserializedElasticBackupProperties.volumeSize = VolumeSize.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticBackupProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupType.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupType.java deleted file mode 100644 index 76dece2d90fec..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupType.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Type of backup. - */ -public final class ElasticBackupType extends ExpandableStringEnum { - /** - * Manual backup type. - */ - public static final ElasticBackupType MANUAL = fromString("Manual"); - - /** - * Scheduled backup type. - */ - public static final ElasticBackupType SCHEDULED = fromString("Scheduled"); - - /** - * Creates a new instance of ElasticBackupType value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ElasticBackupType() { - } - - /** - * Creates or finds a ElasticBackupType from its string representation. - * - * @param name a name to look for. - * @return the corresponding ElasticBackupType. - */ - public static ElasticBackupType fromString(String name) { - return fromString(name, ElasticBackupType.class); - } - - /** - * Gets known ElasticBackupType values. - * - * @return known ElasticBackupType values. - */ - public static Collection values() { - return values(ElasticBackupType.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupVault.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupVault.java deleted file mode 100644 index 7eb3253c88b5e..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupVault.java +++ /dev/null @@ -1,263 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.management.Region; -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.fluent.models.ElasticBackupVaultInner; -import java.util.Map; - -/** - * An immutable client-side representation of ElasticBackupVault. - */ -public interface ElasticBackupVault { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the name property: The name of the resource. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The type of the resource. - * - * @return the type value. - */ - String type(); - - /** - * Gets the location property: The geo-location where the resource lives. - * - * @return the location value. - */ - String location(); - - /** - * Gets the tags property: Resource tags. - * - * @return the tags value. - */ - Map tags(); - - /** - * Gets the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - ElasticBackupVaultProperties properties(); - - /** - * Gets the eTag property: If eTag is provided in the response body, it may also be provided as a header per the - * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. - * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), - * and If-Range (section 14.27) header fields. - * - * @return the eTag value. - */ - String eTag(); - - /** - * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - SystemData systemData(); - - /** - * Gets the region of the resource. - * - * @return the region of the resource. - */ - Region region(); - - /** - * Gets the name of the resource region. - * - * @return the name of the resource region. - */ - String regionName(); - - /** - * Gets the name of the resource group. - * - * @return the name of the resource group. - */ - String resourceGroupName(); - - /** - * Gets the inner com.azure.resourcemanager.netapp.fluent.models.ElasticBackupVaultInner object. - * - * @return the inner object. - */ - ElasticBackupVaultInner innerModel(); - - /** - * The entirety of the ElasticBackupVault definition. - */ - interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, - DefinitionStages.WithParentResource, DefinitionStages.WithCreate { - } - - /** - * The ElasticBackupVault definition stages. - */ - interface DefinitionStages { - /** - * The first stage of the ElasticBackupVault definition. - */ - interface Blank extends WithLocation { - } - - /** - * The stage of the ElasticBackupVault definition allowing to specify location. - */ - interface WithLocation { - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithParentResource withRegion(Region location); - - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithParentResource withRegion(String location); - } - - /** - * The stage of the ElasticBackupVault definition allowing to specify parent resource. - */ - interface WithParentResource { - /** - * Specifies resourceGroupName, accountName. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @return the next definition stage. - */ - WithCreate withExistingElasticAccount(String resourceGroupName, String accountName); - } - - /** - * The stage of the ElasticBackupVault definition which contains all the minimum required properties for the - * resource to be created, but also allows for any other optional properties to be specified. - */ - interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithProperties { - /** - * Executes the create request. - * - * @return the created resource. - */ - ElasticBackupVault create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - ElasticBackupVault create(Context context); - } - - /** - * The stage of the ElasticBackupVault definition allowing to specify tags. - */ - interface WithTags { - /** - * Specifies the tags property: Resource tags.. - * - * @param tags Resource tags. - * @return the next definition stage. - */ - WithCreate withTags(Map tags); - } - - /** - * The stage of the ElasticBackupVault definition allowing to specify properties. - */ - interface WithProperties { - /** - * Specifies the properties property: The resource-specific properties for this resource.. - * - * @param properties The resource-specific properties for this resource. - * @return the next definition stage. - */ - WithCreate withProperties(ElasticBackupVaultProperties properties); - } - } - - /** - * Begins update for the ElasticBackupVault resource. - * - * @return the stage of resource update. - */ - ElasticBackupVault.Update update(); - - /** - * The template for ElasticBackupVault update. - */ - interface Update extends UpdateStages.WithTags { - /** - * Executes the update request. - * - * @return the updated resource. - */ - ElasticBackupVault apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - ElasticBackupVault apply(Context context); - } - - /** - * The ElasticBackupVault update stages. - */ - interface UpdateStages { - /** - * The stage of the ElasticBackupVault update allowing to specify tags. - */ - interface WithTags { - /** - * Specifies the tags property: Resource tags.. - * - * @param tags Resource tags. - * @return the next definition stage. - */ - Update withTags(Map tags); - } - } - - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - ElasticBackupVault refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - ElasticBackupVault refresh(Context context); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupVaultProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupVaultProperties.java deleted file mode 100644 index 8e5406661ee98..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupVaultProperties.java +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.annotation.Immutable; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Elastic Backup Vault properties. - */ -@Immutable -public final class ElasticBackupVaultProperties implements JsonSerializable { - /* - * Azure lifecycle management. - */ - private ProvisioningState provisioningState; - - /** - * Creates an instance of ElasticBackupVaultProperties class. - */ - public ElasticBackupVaultProperties() { - } - - /** - * Get the provisioningState property: Azure lifecycle management. - * - * @return the provisioningState value. - */ - public ProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticBackupVaultProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticBackupVaultProperties 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 ElasticBackupVaultProperties. - */ - public static ElasticBackupVaultProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticBackupVaultProperties deserializedElasticBackupVaultProperties = new ElasticBackupVaultProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("provisioningState".equals(fieldName)) { - deserializedElasticBackupVaultProperties.provisioningState - = ProvisioningState.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticBackupVaultProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupVaultUpdate.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupVaultUpdate.java deleted file mode 100644 index 2b73e7208cf0d..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupVaultUpdate.java +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.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; - -/** - * The type used for update operations of the ElasticBackupVault. - */ -@Fluent -public final class ElasticBackupVaultUpdate implements JsonSerializable { - /* - * Resource tags. - */ - private Map tags; - - /** - * Creates an instance of ElasticBackupVaultUpdate class. - */ - public ElasticBackupVaultUpdate() { - } - - /** - * Get the tags property: Resource tags. - * - * @return the tags value. - */ - public Map tags() { - return this.tags; - } - - /** - * Set the tags property: Resource tags. - * - * @param tags the tags value to set. - * @return the ElasticBackupVaultUpdate object itself. - */ - public ElasticBackupVaultUpdate withTags(Map tags) { - this.tags = tags; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticBackupVaultUpdate from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticBackupVaultUpdate 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 ElasticBackupVaultUpdate. - */ - public static ElasticBackupVaultUpdate fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticBackupVaultUpdate deserializedElasticBackupVaultUpdate = new ElasticBackupVaultUpdate(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("tags".equals(fieldName)) { - Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedElasticBackupVaultUpdate.tags = tags; - } else { - reader.skipChildren(); - } - } - - return deserializedElasticBackupVaultUpdate; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupVaults.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupVaults.java deleted file mode 100644 index 9f6b3c4225499..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupVaults.java +++ /dev/null @@ -1,145 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** - * Resource collection API of ElasticBackupVaults. - */ -public interface ElasticBackupVaults { - /** - * Get the Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @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 Elastic Backup Vault along with {@link Response}. - */ - Response getWithResponse(String resourceGroupName, String accountName, String backupVaultName, - Context context); - - /** - * Get the Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @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 Elastic Backup Vault. - */ - ElasticBackupVault get(String resourceGroupName, String accountName, String backupVaultName); - - /** - * Delete the specified Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @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 delete(String resourceGroupName, String accountName, String backupVaultName); - - /** - * Delete the specified Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @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 delete(String resourceGroupName, String accountName, String backupVaultName, Context context); - - /** - * List and describe all Elastic Backup Vaults in the elastic account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ElasticBackupVault list operation as paginated response with {@link PagedIterable}. - */ - PagedIterable listByElasticAccount(String resourceGroupName, String accountName); - - /** - * List and describe all Elastic Backup Vaults in the elastic account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ElasticBackupVault list operation as paginated response with {@link PagedIterable}. - */ - PagedIterable listByElasticAccount(String resourceGroupName, String accountName, - Context context); - - /** - * Get the Elastic Backup Vault. - * - * @param id the resource ID. - * @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 Elastic Backup Vault along with {@link Response}. - */ - ElasticBackupVault getById(String id); - - /** - * Get the Elastic Backup Vault. - * - * @param id the resource ID. - * @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 Elastic Backup Vault along with {@link Response}. - */ - Response getByIdWithResponse(String id, Context context); - - /** - * Delete the specified Elastic Backup Vault. - * - * @param id the resource ID. - * @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 deleteById(String id); - - /** - * Delete the specified Elastic Backup Vault. - * - * @param id the resource ID. - * @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 deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new ElasticBackupVault resource. - * - * @param name resource name. - * @return the first stage of the new ElasticBackupVault definition. - */ - ElasticBackupVault.DefinitionStages.Blank define(String name); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackups.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackups.java deleted file mode 100644 index e158b9e65f00d..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackups.java +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** - * Resource collection API of ElasticBackups. - */ -public interface ElasticBackups { - /** - * Get the specified Elastic Backup under Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @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 specified Elastic Backup under Elastic Backup Vault along with {@link Response}. - */ - Response getWithResponse(String resourceGroupName, String accountName, String backupVaultName, - String backupName, Context context); - - /** - * Get the specified Elastic Backup under Elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @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 specified Elastic Backup under Elastic Backup Vault. - */ - ElasticBackup get(String resourceGroupName, String accountName, String backupVaultName, String backupName); - - /** - * Delete a ElasticBackup. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @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 delete(String resourceGroupName, String accountName, String backupVaultName, String backupName); - - /** - * Delete a ElasticBackup. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param backupName The name of the ElasticBackup. - * @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 delete(String resourceGroupName, String accountName, String backupVaultName, String backupName, - Context context); - - /** - * List all elastic backups Under an elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ElasticBackup list operation as paginated response with {@link PagedIterable}. - */ - PagedIterable listByVault(String resourceGroupName, String accountName, String backupVaultName); - - /** - * List all elastic backups Under an elastic Backup Vault. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param backupVaultName The name of the ElasticBackupVault. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ElasticBackup list operation as paginated response with {@link PagedIterable}. - */ - PagedIterable listByVault(String resourceGroupName, String accountName, String backupVaultName, - Context context); - - /** - * Get the specified Elastic Backup under Elastic Backup Vault. - * - * @param id the resource ID. - * @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 specified Elastic Backup under Elastic Backup Vault along with {@link Response}. - */ - ElasticBackup getById(String id); - - /** - * Get the specified Elastic Backup under Elastic Backup Vault. - * - * @param id the resource ID. - * @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 specified Elastic Backup under Elastic Backup Vault along with {@link Response}. - */ - Response getByIdWithResponse(String id, Context context); - - /** - * Delete a ElasticBackup. - * - * @param id the resource ID. - * @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 deleteById(String id); - - /** - * Delete a ElasticBackup. - * - * @param id the resource ID. - * @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 deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new ElasticBackup resource. - * - * @param name resource name. - * @return the first stage of the new ElasticBackup definition. - */ - ElasticBackup.DefinitionStages.Blank define(String name); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPool.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPool.java deleted file mode 100644 index fc6b3baa90255..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPool.java +++ /dev/null @@ -1,347 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.http.rest.Response; -import com.azure.core.management.Region; -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.fluent.models.ElasticCapacityPoolInner; -import java.util.List; -import java.util.Map; - -/** - * An immutable client-side representation of ElasticCapacityPool. - */ -public interface ElasticCapacityPool { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the name property: The name of the resource. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The type of the resource. - * - * @return the type value. - */ - String type(); - - /** - * Gets the location property: The geo-location where the resource lives. - * - * @return the location value. - */ - String location(); - - /** - * Gets the tags property: Resource tags. - * - * @return the tags value. - */ - Map tags(); - - /** - * Gets the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - ElasticCapacityPoolProperties properties(); - - /** - * Gets the eTag property: If eTag is provided in the response body, it may also be provided as a header per the - * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. - * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), - * and If-Range (section 14.27) header fields. - * - * @return the eTag value. - */ - String eTag(); - - /** - * Gets the zones property: The availability zones. - * - * @return the zones value. - */ - List zones(); - - /** - * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - SystemData systemData(); - - /** - * Gets the region of the resource. - * - * @return the region of the resource. - */ - Region region(); - - /** - * Gets the name of the resource region. - * - * @return the name of the resource region. - */ - String regionName(); - - /** - * Gets the name of the resource group. - * - * @return the name of the resource group. - */ - String resourceGroupName(); - - /** - * Gets the inner com.azure.resourcemanager.netapp.fluent.models.ElasticCapacityPoolInner object. - * - * @return the inner object. - */ - ElasticCapacityPoolInner innerModel(); - - /** - * The entirety of the ElasticCapacityPool definition. - */ - interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, - DefinitionStages.WithParentResource, DefinitionStages.WithCreate { - } - - /** - * The ElasticCapacityPool definition stages. - */ - interface DefinitionStages { - /** - * The first stage of the ElasticCapacityPool definition. - */ - interface Blank extends WithLocation { - } - - /** - * The stage of the ElasticCapacityPool definition allowing to specify location. - */ - interface WithLocation { - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithParentResource withRegion(Region location); - - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithParentResource withRegion(String location); - } - - /** - * The stage of the ElasticCapacityPool definition allowing to specify parent resource. - */ - interface WithParentResource { - /** - * Specifies resourceGroupName, accountName. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @return the next definition stage. - */ - WithCreate withExistingElasticAccount(String resourceGroupName, String accountName); - } - - /** - * The stage of the ElasticCapacityPool definition which contains all the minimum required properties for the - * resource to be created, but also allows for any other optional properties to be specified. - */ - interface WithCreate - extends DefinitionStages.WithTags, DefinitionStages.WithProperties, DefinitionStages.WithZones { - /** - * Executes the create request. - * - * @return the created resource. - */ - ElasticCapacityPool create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - ElasticCapacityPool create(Context context); - } - - /** - * The stage of the ElasticCapacityPool definition allowing to specify tags. - */ - interface WithTags { - /** - * Specifies the tags property: Resource tags.. - * - * @param tags Resource tags. - * @return the next definition stage. - */ - WithCreate withTags(Map tags); - } - - /** - * The stage of the ElasticCapacityPool definition allowing to specify properties. - */ - interface WithProperties { - /** - * Specifies the properties property: The resource-specific properties for this resource.. - * - * @param properties The resource-specific properties for this resource. - * @return the next definition stage. - */ - WithCreate withProperties(ElasticCapacityPoolProperties properties); - } - - /** - * The stage of the ElasticCapacityPool definition allowing to specify zones. - */ - interface WithZones { - /** - * Specifies the zones property: The availability zones.. - * - * @param zones The availability zones. - * @return the next definition stage. - */ - WithCreate withZones(List zones); - } - } - - /** - * Begins update for the ElasticCapacityPool resource. - * - * @return the stage of resource update. - */ - ElasticCapacityPool.Update update(); - - /** - * The template for ElasticCapacityPool update. - */ - interface Update extends UpdateStages.WithTags, UpdateStages.WithProperties { - /** - * Executes the update request. - * - * @return the updated resource. - */ - ElasticCapacityPool apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - ElasticCapacityPool apply(Context context); - } - - /** - * The ElasticCapacityPool update stages. - */ - interface UpdateStages { - /** - * The stage of the ElasticCapacityPool update allowing to specify tags. - */ - interface WithTags { - /** - * Specifies the tags property: Resource tags.. - * - * @param tags Resource tags. - * @return the next definition stage. - */ - Update withTags(Map tags); - } - - /** - * The stage of the ElasticCapacityPool update allowing to specify properties. - */ - interface WithProperties { - /** - * Specifies the properties property: The resource-specific properties for this resource.. - * - * @param properties The resource-specific properties for this resource. - * @return the next definition stage. - */ - Update withProperties(ElasticCapacityPoolUpdateProperties properties); - } - } - - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - ElasticCapacityPool refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - ElasticCapacityPool refresh(Context context); - - /** - * Moves pool to another zone. - * - * @param body The content of the action request. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Capacity Pool resource. - */ - ElasticCapacityPool changeZone(ChangeZoneRequest body); - - /** - * Moves pool to another zone. - * - * @param body The content of the action request. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Capacity Pool resource. - */ - ElasticCapacityPool changeZone(ChangeZoneRequest body, Context context); - - /** - * Check if an Elastic Volume file path is available within the given Elastic Capacity Pool. - * - * @param body The content of the action request. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information regarding availability of a resource along with {@link Response}. - */ - Response checkVolumeFilePathAvailabilityWithResponse( - CheckElasticVolumeFilePathAvailabilityRequest body, Context context); - - /** - * Check if an Elastic Volume file path is available within the given Elastic Capacity Pool. - * - * @param body The content of the action request. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information regarding availability of a resource. - */ - CheckElasticResourceAvailabilityResponse - checkVolumeFilePathAvailability(CheckElasticVolumeFilePathAvailabilityRequest body); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPoolProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPoolProperties.java deleted file mode 100644 index 4f03b65a3831f..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPoolProperties.java +++ /dev/null @@ -1,305 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Elastic capacity pool properties. - */ -@Fluent -public final class ElasticCapacityPoolProperties implements JsonSerializable { - /* - * Provisioned size of the pool (in bytes). For zoneRedundant service level pool, value must be in the range 1TiB to - * 16TiB or 1TiB to 128TiB for supported region. Values expressed in bytes as multiples of 1TiB till 16TiB and in - * multiples of 8TiB from 24TiB to 128TiB. Pool size can't be shrunk once it is created. - */ - private long size; - - /* - * The service level of the elastic capacity pool - */ - private ElasticServiceLevel serviceLevel; - - /* - * Azure lifecycle management. - */ - private ProvisioningState provisioningState; - - /* - * Encryption settings - */ - private ElasticEncryptionConfiguration encryption; - - /* - * Total throughput of the pool in MiB/s - */ - private Double totalThroughputMibps; - - /* - * The Azure Resource URI for a delegated subnet. Must have the delegation Microsoft.NetApp/elasticVolumes, this is - * used by all the volumes within the pool - */ - private String subnetResourceId; - - /* - * Indicates the current zone of the pool. This can be changed for zoneRedundant service level pool with the - * changeZone action - */ - private String currentZone; - - /* - * Current availability status of the resource. - */ - private ElasticResourceAvailabilityStatus availabilityStatus; - - /* - * The Azure Resource URI for an Active Directory configuration. This is used by all the SMB volumes within the pool - */ - private String activeDirectoryConfigResourceId; - - /** - * Creates an instance of ElasticCapacityPoolProperties class. - */ - public ElasticCapacityPoolProperties() { - } - - /** - * Get the size property: Provisioned size of the pool (in bytes). For zoneRedundant service level pool, value must - * be in the range 1TiB to 16TiB or 1TiB to 128TiB for supported region. Values expressed in bytes as multiples of - * 1TiB till 16TiB and in multiples of 8TiB from 24TiB to 128TiB. Pool size can't be shrunk once it is created. - * - * @return the size value. - */ - public long size() { - return this.size; - } - - /** - * Set the size property: Provisioned size of the pool (in bytes). For zoneRedundant service level pool, value must - * be in the range 1TiB to 16TiB or 1TiB to 128TiB for supported region. Values expressed in bytes as multiples of - * 1TiB till 16TiB and in multiples of 8TiB from 24TiB to 128TiB. Pool size can't be shrunk once it is created. - * - * @param size the size value to set. - * @return the ElasticCapacityPoolProperties object itself. - */ - public ElasticCapacityPoolProperties withSize(long size) { - this.size = size; - return this; - } - - /** - * Get the serviceLevel property: The service level of the elastic capacity pool. - * - * @return the serviceLevel value. - */ - public ElasticServiceLevel serviceLevel() { - return this.serviceLevel; - } - - /** - * Set the serviceLevel property: The service level of the elastic capacity pool. - * - * @param serviceLevel the serviceLevel value to set. - * @return the ElasticCapacityPoolProperties object itself. - */ - public ElasticCapacityPoolProperties withServiceLevel(ElasticServiceLevel serviceLevel) { - this.serviceLevel = serviceLevel; - return this; - } - - /** - * Get the provisioningState property: Azure lifecycle management. - * - * @return the provisioningState value. - */ - public ProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Get the encryption property: Encryption settings. - * - * @return the encryption value. - */ - public ElasticEncryptionConfiguration encryption() { - return this.encryption; - } - - /** - * Set the encryption property: Encryption settings. - * - * @param encryption the encryption value to set. - * @return the ElasticCapacityPoolProperties object itself. - */ - public ElasticCapacityPoolProperties withEncryption(ElasticEncryptionConfiguration encryption) { - this.encryption = encryption; - return this; - } - - /** - * Get the totalThroughputMibps property: Total throughput of the pool in MiB/s. - * - * @return the totalThroughputMibps value. - */ - public Double totalThroughputMibps() { - return this.totalThroughputMibps; - } - - /** - * Get the subnetResourceId property: The Azure Resource URI for a delegated subnet. Must have the delegation - * Microsoft.NetApp/elasticVolumes, this is used by all the volumes within the pool. - * - * @return the subnetResourceId value. - */ - public String subnetResourceId() { - return this.subnetResourceId; - } - - /** - * Set the subnetResourceId property: The Azure Resource URI for a delegated subnet. Must have the delegation - * Microsoft.NetApp/elasticVolumes, this is used by all the volumes within the pool. - * - * @param subnetResourceId the subnetResourceId value to set. - * @return the ElasticCapacityPoolProperties object itself. - */ - public ElasticCapacityPoolProperties withSubnetResourceId(String subnetResourceId) { - this.subnetResourceId = subnetResourceId; - return this; - } - - /** - * Get the currentZone property: Indicates the current zone of the pool. This can be changed for zoneRedundant - * service level pool with the changeZone action. - * - * @return the currentZone value. - */ - public String currentZone() { - return this.currentZone; - } - - /** - * Get the availabilityStatus property: Current availability status of the resource. - * - * @return the availabilityStatus value. - */ - public ElasticResourceAvailabilityStatus availabilityStatus() { - return this.availabilityStatus; - } - - /** - * Get the activeDirectoryConfigResourceId property: The Azure Resource URI for an Active Directory configuration. - * This is used by all the SMB volumes within the pool. - * - * @return the activeDirectoryConfigResourceId value. - */ - public String activeDirectoryConfigResourceId() { - return this.activeDirectoryConfigResourceId; - } - - /** - * Set the activeDirectoryConfigResourceId property: The Azure Resource URI for an Active Directory configuration. - * This is used by all the SMB volumes within the pool. - * - * @param activeDirectoryConfigResourceId the activeDirectoryConfigResourceId value to set. - * @return the ElasticCapacityPoolProperties object itself. - */ - public ElasticCapacityPoolProperties withActiveDirectoryConfigResourceId(String activeDirectoryConfigResourceId) { - this.activeDirectoryConfigResourceId = activeDirectoryConfigResourceId; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (serviceLevel() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property serviceLevel in model ElasticCapacityPoolProperties")); - } - if (encryption() != null) { - encryption().validate(); - } - if (subnetResourceId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property subnetResourceId in model ElasticCapacityPoolProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ElasticCapacityPoolProperties.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeLongField("size", this.size); - jsonWriter.writeStringField("serviceLevel", this.serviceLevel == null ? null : this.serviceLevel.toString()); - jsonWriter.writeStringField("subnetResourceId", this.subnetResourceId); - jsonWriter.writeJsonField("encryption", this.encryption); - jsonWriter.writeStringField("activeDirectoryConfigResourceId", this.activeDirectoryConfigResourceId); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticCapacityPoolProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticCapacityPoolProperties 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 ElasticCapacityPoolProperties. - */ - public static ElasticCapacityPoolProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticCapacityPoolProperties deserializedElasticCapacityPoolProperties - = new ElasticCapacityPoolProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("size".equals(fieldName)) { - deserializedElasticCapacityPoolProperties.size = reader.getLong(); - } else if ("serviceLevel".equals(fieldName)) { - deserializedElasticCapacityPoolProperties.serviceLevel - = ElasticServiceLevel.fromString(reader.getString()); - } else if ("subnetResourceId".equals(fieldName)) { - deserializedElasticCapacityPoolProperties.subnetResourceId = reader.getString(); - } else if ("provisioningState".equals(fieldName)) { - deserializedElasticCapacityPoolProperties.provisioningState - = ProvisioningState.fromString(reader.getString()); - } else if ("encryption".equals(fieldName)) { - deserializedElasticCapacityPoolProperties.encryption - = ElasticEncryptionConfiguration.fromJson(reader); - } else if ("totalThroughputMibps".equals(fieldName)) { - deserializedElasticCapacityPoolProperties.totalThroughputMibps - = reader.getNullable(JsonReader::getDouble); - } else if ("currentZone".equals(fieldName)) { - deserializedElasticCapacityPoolProperties.currentZone = reader.getString(); - } else if ("availabilityStatus".equals(fieldName)) { - deserializedElasticCapacityPoolProperties.availabilityStatus - = ElasticResourceAvailabilityStatus.fromString(reader.getString()); - } else if ("activeDirectoryConfigResourceId".equals(fieldName)) { - deserializedElasticCapacityPoolProperties.activeDirectoryConfigResourceId = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticCapacityPoolProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPoolUpdate.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPoolUpdate.java deleted file mode 100644 index c0edc78dae907..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPoolUpdate.java +++ /dev/null @@ -1,127 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.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; - -/** - * The type used for update operations of the ElasticCapacityPool. - */ -@Fluent -public final class ElasticCapacityPoolUpdate implements JsonSerializable { - /* - * Resource tags. - */ - private Map tags; - - /* - * The resource-specific properties for this resource. - */ - private ElasticCapacityPoolUpdateProperties properties; - - /** - * Creates an instance of ElasticCapacityPoolUpdate class. - */ - public ElasticCapacityPoolUpdate() { - } - - /** - * Get the tags property: Resource tags. - * - * @return the tags value. - */ - public Map tags() { - return this.tags; - } - - /** - * Set the tags property: Resource tags. - * - * @param tags the tags value to set. - * @return the ElasticCapacityPoolUpdate object itself. - */ - public ElasticCapacityPoolUpdate withTags(Map tags) { - this.tags = tags; - return this; - } - - /** - * Get the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - public ElasticCapacityPoolUpdateProperties properties() { - return this.properties; - } - - /** - * Set the properties property: The resource-specific properties for this resource. - * - * @param properties the properties value to set. - * @return the ElasticCapacityPoolUpdate object itself. - */ - public ElasticCapacityPoolUpdate withProperties(ElasticCapacityPoolUpdateProperties properties) { - this.properties = properties; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (properties() != null) { - properties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - 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(); - } - - /** - * Reads an instance of ElasticCapacityPoolUpdate from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticCapacityPoolUpdate 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 ElasticCapacityPoolUpdate. - */ - public static ElasticCapacityPoolUpdate fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticCapacityPoolUpdate deserializedElasticCapacityPoolUpdate = new ElasticCapacityPoolUpdate(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("tags".equals(fieldName)) { - Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedElasticCapacityPoolUpdate.tags = tags; - } else if ("properties".equals(fieldName)) { - deserializedElasticCapacityPoolUpdate.properties - = ElasticCapacityPoolUpdateProperties.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticCapacityPoolUpdate; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPoolUpdateProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPoolUpdateProperties.java deleted file mode 100644 index b88a394b7bafe..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPoolUpdateProperties.java +++ /dev/null @@ -1,165 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.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; - -/** - * The updatable properties of the ElasticCapacityPool. - */ -@Fluent -public final class ElasticCapacityPoolUpdateProperties - implements JsonSerializable { - /* - * Provisioned size of the pool (in bytes). For zoneRedundant service level pool, value must be in the range 1TiB to - * 16TiB or 1TiB to 128TiB for supported region. Values expressed in bytes as multiples of 1TiB till 16TiB and in - * multiples of 8TiB from 24TiB to 128TiB. Pool size can't be shrunk once it is created. - */ - private Long size; - - /* - * Encryption settings - */ - private ElasticEncryptionConfiguration encryption; - - /* - * The Azure Resource URI for an Active Directory configuration. This is used by all the SMB volumes within the pool - */ - private String activeDirectoryConfigResourceId; - - /** - * Creates an instance of ElasticCapacityPoolUpdateProperties class. - */ - public ElasticCapacityPoolUpdateProperties() { - } - - /** - * Get the size property: Provisioned size of the pool (in bytes). For zoneRedundant service level pool, value must - * be in the range 1TiB to 16TiB or 1TiB to 128TiB for supported region. Values expressed in bytes as multiples of - * 1TiB till 16TiB and in multiples of 8TiB from 24TiB to 128TiB. Pool size can't be shrunk once it is created. - * - * @return the size value. - */ - public Long size() { - return this.size; - } - - /** - * Set the size property: Provisioned size of the pool (in bytes). For zoneRedundant service level pool, value must - * be in the range 1TiB to 16TiB or 1TiB to 128TiB for supported region. Values expressed in bytes as multiples of - * 1TiB till 16TiB and in multiples of 8TiB from 24TiB to 128TiB. Pool size can't be shrunk once it is created. - * - * @param size the size value to set. - * @return the ElasticCapacityPoolUpdateProperties object itself. - */ - public ElasticCapacityPoolUpdateProperties withSize(Long size) { - this.size = size; - return this; - } - - /** - * Get the encryption property: Encryption settings. - * - * @return the encryption value. - */ - public ElasticEncryptionConfiguration encryption() { - return this.encryption; - } - - /** - * Set the encryption property: Encryption settings. - * - * @param encryption the encryption value to set. - * @return the ElasticCapacityPoolUpdateProperties object itself. - */ - public ElasticCapacityPoolUpdateProperties withEncryption(ElasticEncryptionConfiguration encryption) { - this.encryption = encryption; - return this; - } - - /** - * Get the activeDirectoryConfigResourceId property: The Azure Resource URI for an Active Directory configuration. - * This is used by all the SMB volumes within the pool. - * - * @return the activeDirectoryConfigResourceId value. - */ - public String activeDirectoryConfigResourceId() { - return this.activeDirectoryConfigResourceId; - } - - /** - * Set the activeDirectoryConfigResourceId property: The Azure Resource URI for an Active Directory configuration. - * This is used by all the SMB volumes within the pool. - * - * @param activeDirectoryConfigResourceId the activeDirectoryConfigResourceId value to set. - * @return the ElasticCapacityPoolUpdateProperties object itself. - */ - public ElasticCapacityPoolUpdateProperties - withActiveDirectoryConfigResourceId(String activeDirectoryConfigResourceId) { - this.activeDirectoryConfigResourceId = activeDirectoryConfigResourceId; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (encryption() != null) { - encryption().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeNumberField("size", this.size); - jsonWriter.writeJsonField("encryption", this.encryption); - jsonWriter.writeStringField("activeDirectoryConfigResourceId", this.activeDirectoryConfigResourceId); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticCapacityPoolUpdateProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticCapacityPoolUpdateProperties 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 ElasticCapacityPoolUpdateProperties. - */ - public static ElasticCapacityPoolUpdateProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticCapacityPoolUpdateProperties deserializedElasticCapacityPoolUpdateProperties - = new ElasticCapacityPoolUpdateProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("size".equals(fieldName)) { - deserializedElasticCapacityPoolUpdateProperties.size = reader.getNullable(JsonReader::getLong); - } else if ("encryption".equals(fieldName)) { - deserializedElasticCapacityPoolUpdateProperties.encryption - = ElasticEncryptionConfiguration.fromJson(reader); - } else if ("activeDirectoryConfigResourceId".equals(fieldName)) { - deserializedElasticCapacityPoolUpdateProperties.activeDirectoryConfigResourceId - = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticCapacityPoolUpdateProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPools.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPools.java deleted file mode 100644 index 712d1fc12fac4..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPools.java +++ /dev/null @@ -1,208 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** - * Resource collection API of ElasticCapacityPools. - */ -public interface ElasticCapacityPools { - /** - * Get the NetApp Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @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 NetApp Elastic Capacity Pool along with {@link Response}. - */ - Response getWithResponse(String resourceGroupName, String accountName, String poolName, - Context context); - - /** - * Get the NetApp Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @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 NetApp Elastic Capacity Pool. - */ - ElasticCapacityPool get(String resourceGroupName, String accountName, String poolName); - - /** - * Delete the specified NetApp Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @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 delete(String resourceGroupName, String accountName, String poolName); - - /** - * Delete the specified NetApp Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @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 delete(String resourceGroupName, String accountName, String poolName, Context context); - - /** - * List and describe all NetApp Elastic Capacity Pools in the Elastic NetApp Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ElasticCapacityPool list operation as paginated response with {@link PagedIterable}. - */ - PagedIterable listByElasticAccount(String resourceGroupName, String accountName); - - /** - * List and describe all NetApp Elastic Capacity Pools in the Elastic NetApp Account. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ElasticCapacityPool list operation as paginated response with {@link PagedIterable}. - */ - PagedIterable listByElasticAccount(String resourceGroupName, String accountName, - Context context); - - /** - * Moves pool to another zone. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body The content of the action request. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Capacity Pool resource. - */ - ElasticCapacityPool changeZone(String resourceGroupName, String accountName, String poolName, - ChangeZoneRequest body); - - /** - * Moves pool to another zone. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body The content of the action request. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Capacity Pool resource. - */ - ElasticCapacityPool changeZone(String resourceGroupName, String accountName, String poolName, - ChangeZoneRequest body, Context context); - - /** - * Check if an Elastic Volume file path is available within the given Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body The content of the action request. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information regarding availability of a resource along with {@link Response}. - */ - Response checkVolumeFilePathAvailabilityWithResponse( - String resourceGroupName, String accountName, String poolName, - CheckElasticVolumeFilePathAvailabilityRequest body, Context context); - - /** - * Check if an Elastic Volume file path is available within the given Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param body The content of the action request. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return information regarding availability of a resource. - */ - CheckElasticResourceAvailabilityResponse checkVolumeFilePathAvailability(String resourceGroupName, - String accountName, String poolName, CheckElasticVolumeFilePathAvailabilityRequest body); - - /** - * Get the NetApp Elastic Capacity Pool. - * - * @param id the resource ID. - * @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 NetApp Elastic Capacity Pool along with {@link Response}. - */ - ElasticCapacityPool getById(String id); - - /** - * Get the NetApp Elastic Capacity Pool. - * - * @param id the resource ID. - * @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 NetApp Elastic Capacity Pool along with {@link Response}. - */ - Response getByIdWithResponse(String id, Context context); - - /** - * Delete the specified NetApp Elastic Capacity Pool. - * - * @param id the resource ID. - * @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 deleteById(String id); - - /** - * Delete the specified NetApp Elastic Capacity Pool. - * - * @param id the resource ID. - * @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 deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new ElasticCapacityPool resource. - * - * @param name resource name. - * @return the first stage of the new ElasticCapacityPool definition. - */ - ElasticCapacityPool.DefinitionStages.Blank define(String name); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticEncryptionConfiguration.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticEncryptionConfiguration.java deleted file mode 100644 index 75a5ab4ad93f8..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticEncryptionConfiguration.java +++ /dev/null @@ -1,143 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * CMK Encryption Configuration. - */ -@Fluent -public final class ElasticEncryptionConfiguration implements JsonSerializable { - /* - * Pool Encryption Key Source. - */ - private ElasticPoolEncryptionKeySource elasticPoolEncryptionKeySource; - - /* - * The resource ID of private endpoint for KeyVault. It must reside in the same VNET as the volume. Only applicable - * if encryptionKeySource = 'Microsoft.KeyVault'. - */ - private String keyVaultPrivateEndpointResourceId; - - /** - * Creates an instance of ElasticEncryptionConfiguration class. - */ - public ElasticEncryptionConfiguration() { - } - - /** - * Get the elasticPoolEncryptionKeySource property: Pool Encryption Key Source. - * - * @return the elasticPoolEncryptionKeySource value. - */ - public ElasticPoolEncryptionKeySource elasticPoolEncryptionKeySource() { - return this.elasticPoolEncryptionKeySource; - } - - /** - * Set the elasticPoolEncryptionKeySource property: Pool Encryption Key Source. - * - * @param elasticPoolEncryptionKeySource the elasticPoolEncryptionKeySource value to set. - * @return the ElasticEncryptionConfiguration object itself. - */ - public ElasticEncryptionConfiguration - withElasticPoolEncryptionKeySource(ElasticPoolEncryptionKeySource elasticPoolEncryptionKeySource) { - this.elasticPoolEncryptionKeySource = elasticPoolEncryptionKeySource; - return this; - } - - /** - * Get the keyVaultPrivateEndpointResourceId property: The resource ID of private endpoint for KeyVault. It must - * reside in the same VNET as the volume. Only applicable if encryptionKeySource = 'Microsoft.KeyVault'. - * - * @return the keyVaultPrivateEndpointResourceId value. - */ - public String keyVaultPrivateEndpointResourceId() { - return this.keyVaultPrivateEndpointResourceId; - } - - /** - * Set the keyVaultPrivateEndpointResourceId property: The resource ID of private endpoint for KeyVault. It must - * reside in the same VNET as the volume. Only applicable if encryptionKeySource = 'Microsoft.KeyVault'. - * - * @param keyVaultPrivateEndpointResourceId the keyVaultPrivateEndpointResourceId value to set. - * @return the ElasticEncryptionConfiguration object itself. - */ - public ElasticEncryptionConfiguration - withKeyVaultPrivateEndpointResourceId(String keyVaultPrivateEndpointResourceId) { - this.keyVaultPrivateEndpointResourceId = keyVaultPrivateEndpointResourceId; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (elasticPoolEncryptionKeySource() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property elasticPoolEncryptionKeySource in model ElasticEncryptionConfiguration")); - } - if (keyVaultPrivateEndpointResourceId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property keyVaultPrivateEndpointResourceId in model ElasticEncryptionConfiguration")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ElasticEncryptionConfiguration.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("elasticPoolEncryptionKeySource", - this.elasticPoolEncryptionKeySource == null ? null : this.elasticPoolEncryptionKeySource.toString()); - jsonWriter.writeStringField("keyVaultPrivateEndpointResourceId", this.keyVaultPrivateEndpointResourceId); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticEncryptionConfiguration from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticEncryptionConfiguration 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 ElasticEncryptionConfiguration. - */ - public static ElasticEncryptionConfiguration fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticEncryptionConfiguration deserializedElasticEncryptionConfiguration - = new ElasticEncryptionConfiguration(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("elasticPoolEncryptionKeySource".equals(fieldName)) { - deserializedElasticEncryptionConfiguration.elasticPoolEncryptionKeySource - = ElasticPoolEncryptionKeySource.fromString(reader.getString()); - } else if ("keyVaultPrivateEndpointResourceId".equals(fieldName)) { - deserializedElasticEncryptionConfiguration.keyVaultPrivateEndpointResourceId = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticEncryptionConfiguration; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticExportPolicy.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticExportPolicy.java deleted file mode 100644 index 86e47d8087201..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticExportPolicy.java +++ /dev/null @@ -1,99 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.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; - -/** - * Set of export policy rules. - */ -@Fluent -public final class ElasticExportPolicy implements JsonSerializable { - /* - * Export policy rule - */ - private List rules; - - /** - * Creates an instance of ElasticExportPolicy class. - */ - public ElasticExportPolicy() { - } - - /** - * Get the rules property: Export policy rule. - * - * @return the rules value. - */ - public List rules() { - return this.rules; - } - - /** - * Set the rules property: Export policy rule. - * - * @param rules the rules value to set. - * @return the ElasticExportPolicy object itself. - */ - public ElasticExportPolicy withRules(List rules) { - this.rules = rules; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (rules() != null) { - rules().forEach(e -> e.validate()); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeArrayField("rules", this.rules, (writer, element) -> writer.writeJson(element)); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticExportPolicy from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticExportPolicy 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 ElasticExportPolicy. - */ - public static ElasticExportPolicy fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticExportPolicy deserializedElasticExportPolicy = new ElasticExportPolicy(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("rules".equals(fieldName)) { - List rules - = reader.readArray(reader1 -> ElasticExportPolicyRule.fromJson(reader1)); - deserializedElasticExportPolicy.rules = rules; - } else { - reader.skipChildren(); - } - } - - return deserializedElasticExportPolicy; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticExportPolicyRule.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticExportPolicyRule.java deleted file mode 100644 index 32b4063961f9d..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticExportPolicyRule.java +++ /dev/null @@ -1,250 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.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; - -/** - * Elastic Volume Export Policy Rule. - */ -@Fluent -public final class ElasticExportPolicyRule implements JsonSerializable { - /* - * Controls the priority of the export policy rule. When connecting to the volume the rule with the lowest index - * that applies to the connecting client is used - */ - private Integer ruleIndex; - - /* - * Specifies the Unix file access level for the volume. It encompasses both read-only and read-write permissions. - * Additionally, NoAccess can be set to block all access to the volume - */ - private ElasticUnixAccessRule unixAccessRule; - - /* - * Allows clients to access the volume with the NFSv3 protocol. Enable only for NFSv3 type volumes - */ - private ElasticNfsv3Access nfsv3; - - /* - * Allows clients to access the volume with at least NFSv4.1 protocol. - */ - private ElasticNfsv4Access nfsv4; - - /* - * Client ingress specification for the export policy as list of IPv4 CIDRs, IPv4 host addresses and host names. - */ - private List allowedClients; - - /* - * Indicates whether root access to the volume is granted to clients affected by this rule - */ - private ElasticRootAccess rootAccess; - - /** - * Creates an instance of ElasticExportPolicyRule class. - */ - public ElasticExportPolicyRule() { - } - - /** - * Get the ruleIndex property: Controls the priority of the export policy rule. When connecting to the volume the - * rule with the lowest index that applies to the connecting client is used. - * - * @return the ruleIndex value. - */ - public Integer ruleIndex() { - return this.ruleIndex; - } - - /** - * Set the ruleIndex property: Controls the priority of the export policy rule. When connecting to the volume the - * rule with the lowest index that applies to the connecting client is used. - * - * @param ruleIndex the ruleIndex value to set. - * @return the ElasticExportPolicyRule object itself. - */ - public ElasticExportPolicyRule withRuleIndex(Integer ruleIndex) { - this.ruleIndex = ruleIndex; - return this; - } - - /** - * Get the unixAccessRule property: Specifies the Unix file access level for the volume. It encompasses both - * read-only and read-write permissions. Additionally, NoAccess can be set to block all access to the volume. - * - * @return the unixAccessRule value. - */ - public ElasticUnixAccessRule unixAccessRule() { - return this.unixAccessRule; - } - - /** - * Set the unixAccessRule property: Specifies the Unix file access level for the volume. It encompasses both - * read-only and read-write permissions. Additionally, NoAccess can be set to block all access to the volume. - * - * @param unixAccessRule the unixAccessRule value to set. - * @return the ElasticExportPolicyRule object itself. - */ - public ElasticExportPolicyRule withUnixAccessRule(ElasticUnixAccessRule unixAccessRule) { - this.unixAccessRule = unixAccessRule; - return this; - } - - /** - * Get the nfsv3 property: Allows clients to access the volume with the NFSv3 protocol. Enable only for NFSv3 type - * volumes. - * - * @return the nfsv3 value. - */ - public ElasticNfsv3Access nfsv3() { - return this.nfsv3; - } - - /** - * Set the nfsv3 property: Allows clients to access the volume with the NFSv3 protocol. Enable only for NFSv3 type - * volumes. - * - * @param nfsv3 the nfsv3 value to set. - * @return the ElasticExportPolicyRule object itself. - */ - public ElasticExportPolicyRule withNfsv3(ElasticNfsv3Access nfsv3) { - this.nfsv3 = nfsv3; - return this; - } - - /** - * Get the nfsv4 property: Allows clients to access the volume with at least NFSv4.1 protocol. - * - * @return the nfsv4 value. - */ - public ElasticNfsv4Access nfsv4() { - return this.nfsv4; - } - - /** - * Set the nfsv4 property: Allows clients to access the volume with at least NFSv4.1 protocol. - * - * @param nfsv4 the nfsv4 value to set. - * @return the ElasticExportPolicyRule object itself. - */ - public ElasticExportPolicyRule withNfsv4(ElasticNfsv4Access nfsv4) { - this.nfsv4 = nfsv4; - return this; - } - - /** - * Get the allowedClients property: Client ingress specification for the export policy as list of IPv4 CIDRs, IPv4 - * host addresses and host names. - * - * @return the allowedClients value. - */ - public List allowedClients() { - return this.allowedClients; - } - - /** - * Set the allowedClients property: Client ingress specification for the export policy as list of IPv4 CIDRs, IPv4 - * host addresses and host names. - * - * @param allowedClients the allowedClients value to set. - * @return the ElasticExportPolicyRule object itself. - */ - public ElasticExportPolicyRule withAllowedClients(List allowedClients) { - this.allowedClients = allowedClients; - return this; - } - - /** - * Get the rootAccess property: Indicates whether root access to the volume is granted to clients affected by this - * rule. - * - * @return the rootAccess value. - */ - public ElasticRootAccess rootAccess() { - return this.rootAccess; - } - - /** - * Set the rootAccess property: Indicates whether root access to the volume is granted to clients affected by this - * rule. - * - * @param rootAccess the rootAccess value to set. - * @return the ElasticExportPolicyRule object itself. - */ - public ElasticExportPolicyRule withRootAccess(ElasticRootAccess rootAccess) { - this.rootAccess = rootAccess; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeNumberField("ruleIndex", this.ruleIndex); - jsonWriter.writeStringField("unixAccessRule", - this.unixAccessRule == null ? null : this.unixAccessRule.toString()); - jsonWriter.writeStringField("nfsv3", this.nfsv3 == null ? null : this.nfsv3.toString()); - jsonWriter.writeStringField("nfsv4", this.nfsv4 == null ? null : this.nfsv4.toString()); - jsonWriter.writeArrayField("allowedClients", this.allowedClients, - (writer, element) -> writer.writeString(element)); - jsonWriter.writeStringField("rootAccess", this.rootAccess == null ? null : this.rootAccess.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticExportPolicyRule from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticExportPolicyRule 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 ElasticExportPolicyRule. - */ - public static ElasticExportPolicyRule fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticExportPolicyRule deserializedElasticExportPolicyRule = new ElasticExportPolicyRule(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("ruleIndex".equals(fieldName)) { - deserializedElasticExportPolicyRule.ruleIndex = reader.getNullable(JsonReader::getInt); - } else if ("unixAccessRule".equals(fieldName)) { - deserializedElasticExportPolicyRule.unixAccessRule - = ElasticUnixAccessRule.fromString(reader.getString()); - } else if ("nfsv3".equals(fieldName)) { - deserializedElasticExportPolicyRule.nfsv3 = ElasticNfsv3Access.fromString(reader.getString()); - } else if ("nfsv4".equals(fieldName)) { - deserializedElasticExportPolicyRule.nfsv4 = ElasticNfsv4Access.fromString(reader.getString()); - } else if ("allowedClients".equals(fieldName)) { - List allowedClients = reader.readArray(reader1 -> reader1.getString()); - deserializedElasticExportPolicyRule.allowedClients = allowedClients; - } else if ("rootAccess".equals(fieldName)) { - deserializedElasticExportPolicyRule.rootAccess = ElasticRootAccess.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticExportPolicyRule; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticKeyVaultStatus.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticKeyVaultStatus.java deleted file mode 100644 index b03bf923133d0..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticKeyVaultStatus.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * KeyVault status. - */ -public final class ElasticKeyVaultStatus extends ExpandableStringEnum { - /** - * KeyVault connection created but not in use. - */ - public static final ElasticKeyVaultStatus CREATED = fromString("Created"); - - /** - * KeyVault connection in use by SMB Volume. - */ - public static final ElasticKeyVaultStatus IN_USE = fromString("InUse"); - - /** - * KeyVault connection Deleted. - */ - public static final ElasticKeyVaultStatus DELETED = fromString("Deleted"); - - /** - * Error with the KeyVault connection. - */ - public static final ElasticKeyVaultStatus ERROR = fromString("Error"); - - /** - * KeyVault connection Updating. - */ - public static final ElasticKeyVaultStatus UPDATING = fromString("Updating"); - - /** - * Creates a new instance of ElasticKeyVaultStatus value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ElasticKeyVaultStatus() { - } - - /** - * Creates or finds a ElasticKeyVaultStatus from its string representation. - * - * @param name a name to look for. - * @return the corresponding ElasticKeyVaultStatus. - */ - public static ElasticKeyVaultStatus fromString(String name) { - return fromString(name, ElasticKeyVaultStatus.class); - } - - /** - * Gets known ElasticKeyVaultStatus values. - * - * @return known ElasticKeyVaultStatus values. - */ - public static Collection values() { - return values(ElasticKeyVaultStatus.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticMountTargetProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticMountTargetProperties.java deleted file mode 100644 index 8cd6c9a184f11..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticMountTargetProperties.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.annotation.Immutable; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Contains all the information needed to mount an elastic volume. - */ -@Immutable -public final class ElasticMountTargetProperties implements JsonSerializable { - /* - * The mount target's IPv4 address, used to mount the volume - */ - private String ipAddress; - - /* - * The SMB server's Fully Qualified Domain Name, FQDN - */ - private String smbServerFqdn; - - /** - * Creates an instance of ElasticMountTargetProperties class. - */ - private ElasticMountTargetProperties() { - } - - /** - * Get the ipAddress property: The mount target's IPv4 address, used to mount the volume. - * - * @return the ipAddress value. - */ - public String ipAddress() { - return this.ipAddress; - } - - /** - * Get the smbServerFqdn property: The SMB server's Fully Qualified Domain Name, FQDN. - * - * @return the smbServerFqdn value. - */ - public String smbServerFqdn() { - return this.smbServerFqdn; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticMountTargetProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticMountTargetProperties 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 ElasticMountTargetProperties. - */ - public static ElasticMountTargetProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticMountTargetProperties deserializedElasticMountTargetProperties = new ElasticMountTargetProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("ipAddress".equals(fieldName)) { - deserializedElasticMountTargetProperties.ipAddress = reader.getString(); - } else if ("smbServerFqdn".equals(fieldName)) { - deserializedElasticMountTargetProperties.smbServerFqdn = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticMountTargetProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticNfsv3Access.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticNfsv3Access.java deleted file mode 100644 index 5869cd66b457c..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticNfsv3Access.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * NFSv3 access. - */ -public final class ElasticNfsv3Access extends ExpandableStringEnum { - /** - * Clients can connect to the volume using the NFSv3 protocol. - */ - public static final ElasticNfsv3Access ENABLED = fromString("Enabled"); - - /** - * Clients can't connect to the volume using the NFSv3 protocol. - */ - public static final ElasticNfsv3Access DISABLED = fromString("Disabled"); - - /** - * Creates a new instance of ElasticNfsv3Access value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ElasticNfsv3Access() { - } - - /** - * Creates or finds a ElasticNfsv3Access from its string representation. - * - * @param name a name to look for. - * @return the corresponding ElasticNfsv3Access. - */ - public static ElasticNfsv3Access fromString(String name) { - return fromString(name, ElasticNfsv3Access.class); - } - - /** - * Gets known ElasticNfsv3Access values. - * - * @return known ElasticNfsv3Access values. - */ - public static Collection values() { - return values(ElasticNfsv3Access.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticNfsv4Access.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticNfsv4Access.java deleted file mode 100644 index 189fde0509d6d..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticNfsv4Access.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * NFSv4 access. - */ -public final class ElasticNfsv4Access extends ExpandableStringEnum { - /** - * Clients can connect to the volume using the NFSv4 protocol. - */ - public static final ElasticNfsv4Access ENABLED = fromString("Enabled"); - - /** - * Clients can't connect to the volume using the NFSv4 protocol. - */ - public static final ElasticNfsv4Access DISABLED = fromString("Disabled"); - - /** - * Creates a new instance of ElasticNfsv4Access value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ElasticNfsv4Access() { - } - - /** - * Creates or finds a ElasticNfsv4Access from its string representation. - * - * @param name a name to look for. - * @return the corresponding ElasticNfsv4Access. - */ - public static ElasticNfsv4Access fromString(String name) { - return fromString(name, ElasticNfsv4Access.class); - } - - /** - * Gets known ElasticNfsv4Access values. - * - * @return known ElasticNfsv4Access values. - */ - public static Collection values() { - return values(ElasticNfsv4Access.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticPoolEncryptionKeySource.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticPoolEncryptionKeySource.java deleted file mode 100644 index aa4cc4f721a70..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticPoolEncryptionKeySource.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Pool Encryption Key Source. - */ -public final class ElasticPoolEncryptionKeySource extends ExpandableStringEnum { - /** - * Represents the encryption key source of Elastic pool is Microsoft.NetApp. - */ - public static final ElasticPoolEncryptionKeySource NET_APP = fromString("NetApp"); - - /** - * Represents the encryption key source of Elastic pool is Microsoft.KeyVault. - */ - public static final ElasticPoolEncryptionKeySource KEY_VAULT = fromString("KeyVault"); - - /** - * Creates a new instance of ElasticPoolEncryptionKeySource value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ElasticPoolEncryptionKeySource() { - } - - /** - * Creates or finds a ElasticPoolEncryptionKeySource from its string representation. - * - * @param name a name to look for. - * @return the corresponding ElasticPoolEncryptionKeySource. - */ - public static ElasticPoolEncryptionKeySource fromString(String name) { - return fromString(name, ElasticPoolEncryptionKeySource.class); - } - - /** - * Gets known ElasticPoolEncryptionKeySource values. - * - * @return known ElasticPoolEncryptionKeySource values. - */ - public static Collection values() { - return values(ElasticPoolEncryptionKeySource.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticProtocolType.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticProtocolType.java deleted file mode 100644 index d6a30768d5f2a..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticProtocolType.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Protocol types for elastic volume. - */ -public final class ElasticProtocolType extends ExpandableStringEnum { - /** - * NFSv3 protocol type. - */ - public static final ElasticProtocolType NFSV3 = fromString("NFSv3"); - - /** - * NFSv4 protocol type. - */ - public static final ElasticProtocolType NFSV4 = fromString("NFSv4"); - - /** - * SMB/CIFS protocol type. - */ - public static final ElasticProtocolType SMB = fromString("SMB"); - - /** - * Creates a new instance of ElasticProtocolType value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ElasticProtocolType() { - } - - /** - * Creates or finds a ElasticProtocolType from its string representation. - * - * @param name a name to look for. - * @return the corresponding ElasticProtocolType. - */ - public static ElasticProtocolType fromString(String name) { - return fromString(name, ElasticProtocolType.class); - } - - /** - * Gets known ElasticProtocolType values. - * - * @return known ElasticProtocolType values. - */ - public static Collection values() { - return values(ElasticProtocolType.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticResourceAvailabilityStatus.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticResourceAvailabilityStatus.java deleted file mode 100644 index 438fe0bd73b96..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticResourceAvailabilityStatus.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Current availability status of the resource. - */ -public final class ElasticResourceAvailabilityStatus extends ExpandableStringEnum { - /** - * The resource is currently Online and accessible. - */ - public static final ElasticResourceAvailabilityStatus ONLINE = fromString("Online"); - - /** - * The resource is currently Offline and not accessible. - */ - public static final ElasticResourceAvailabilityStatus OFFLINE = fromString("Offline"); - - /** - * Creates a new instance of ElasticResourceAvailabilityStatus value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ElasticResourceAvailabilityStatus() { - } - - /** - * Creates or finds a ElasticResourceAvailabilityStatus from its string representation. - * - * @param name a name to look for. - * @return the corresponding ElasticResourceAvailabilityStatus. - */ - public static ElasticResourceAvailabilityStatus fromString(String name) { - return fromString(name, ElasticResourceAvailabilityStatus.class); - } - - /** - * Gets known ElasticResourceAvailabilityStatus values. - * - * @return known ElasticResourceAvailabilityStatus values. - */ - public static Collection values() { - return values(ElasticResourceAvailabilityStatus.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticRootAccess.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticRootAccess.java deleted file mode 100644 index 72aeb2eb784d4..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticRootAccess.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Root access. - */ -public final class ElasticRootAccess extends ExpandableStringEnum { - /** - * Root user access is enabled for clients affected by this rule. - */ - public static final ElasticRootAccess ENABLED = fromString("Enabled"); - - /** - * Root user access is disabled for clients affected by this rule. - */ - public static final ElasticRootAccess DISABLED = fromString("Disabled"); - - /** - * Creates a new instance of ElasticRootAccess value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ElasticRootAccess() { - } - - /** - * Creates or finds a ElasticRootAccess from its string representation. - * - * @param name a name to look for. - * @return the corresponding ElasticRootAccess. - */ - public static ElasticRootAccess fromString(String name) { - return fromString(name, ElasticRootAccess.class); - } - - /** - * Gets known ElasticRootAccess values. - * - * @return known ElasticRootAccess values. - */ - public static Collection values() { - return values(ElasticRootAccess.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticServiceLevel.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticServiceLevel.java deleted file mode 100644 index d7eba1c8da06a..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticServiceLevel.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Service level for elastic capacity pool. - */ -public final class ElasticServiceLevel extends ExpandableStringEnum { - /** - * Zone redundant storage service level. - */ - public static final ElasticServiceLevel ZONE_REDUNDANT = fromString("ZoneRedundant"); - - /** - * Creates a new instance of ElasticServiceLevel value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ElasticServiceLevel() { - } - - /** - * Creates or finds a ElasticServiceLevel from its string representation. - * - * @param name a name to look for. - * @return the corresponding ElasticServiceLevel. - */ - public static ElasticServiceLevel fromString(String name) { - return fromString(name, ElasticServiceLevel.class); - } - - /** - * Gets known ElasticServiceLevel values. - * - * @return known ElasticServiceLevel values. - */ - public static Collection values() { - return values(ElasticServiceLevel.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSmbEncryption.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSmbEncryption.java deleted file mode 100644 index 8595a9bd48196..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSmbEncryption.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * SMB encryption. - */ -public final class ElasticSmbEncryption extends ExpandableStringEnum { - /** - * Value indicating the SMB encryption is enabled. - */ - public static final ElasticSmbEncryption ENABLED = fromString("Enabled"); - - /** - * Value indicating the SMB encryption is disabled. - */ - public static final ElasticSmbEncryption DISABLED = fromString("Disabled"); - - /** - * Creates a new instance of ElasticSmbEncryption value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ElasticSmbEncryption() { - } - - /** - * Creates or finds a ElasticSmbEncryption from its string representation. - * - * @param name a name to look for. - * @return the corresponding ElasticSmbEncryption. - */ - public static ElasticSmbEncryption fromString(String name) { - return fromString(name, ElasticSmbEncryption.class); - } - - /** - * Gets known ElasticSmbEncryption values. - * - * @return known ElasticSmbEncryption values. - */ - public static Collection values() { - return values(ElasticSmbEncryption.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSmbPatchProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSmbPatchProperties.java deleted file mode 100644 index 7766dfc4442cf..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSmbPatchProperties.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.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; - -/** - * SMB Patch Properties. - */ -@Fluent -public final class ElasticSmbPatchProperties implements JsonSerializable { - /* - * Used to enable or disable encryption for in-flight SMB data volume. This flag can be modified during Elastic - * volume update operation as well. Only applicable for SMB protocol Elastic volumes. - */ - private ElasticSmbEncryption smbEncryption; - - /** - * Creates an instance of ElasticSmbPatchProperties class. - */ - public ElasticSmbPatchProperties() { - } - - /** - * Get the smbEncryption property: Used to enable or disable encryption for in-flight SMB data volume. This flag can - * be modified during Elastic volume update operation as well. Only applicable for SMB protocol Elastic volumes. - * - * @return the smbEncryption value. - */ - public ElasticSmbEncryption smbEncryption() { - return this.smbEncryption; - } - - /** - * Set the smbEncryption property: Used to enable or disable encryption for in-flight SMB data volume. This flag can - * be modified during Elastic volume update operation as well. Only applicable for SMB protocol Elastic volumes. - * - * @param smbEncryption the smbEncryption value to set. - * @return the ElasticSmbPatchProperties object itself. - */ - public ElasticSmbPatchProperties withSmbEncryption(ElasticSmbEncryption smbEncryption) { - this.smbEncryption = smbEncryption; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("smbEncryption", this.smbEncryption == null ? null : this.smbEncryption.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticSmbPatchProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticSmbPatchProperties 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 ElasticSmbPatchProperties. - */ - public static ElasticSmbPatchProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticSmbPatchProperties deserializedElasticSmbPatchProperties = new ElasticSmbPatchProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("smbEncryption".equals(fieldName)) { - deserializedElasticSmbPatchProperties.smbEncryption - = ElasticSmbEncryption.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticSmbPatchProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSmbProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSmbProperties.java deleted file mode 100644 index ce54c98ff0ed0..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSmbProperties.java +++ /dev/null @@ -1,97 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.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; - -/** - * SMB Properties. - */ -@Fluent -public final class ElasticSmbProperties implements JsonSerializable { - /* - * Used to enable or disable encryption for in-flight SMB data volume. This flag can be modified during Elastic - * volume update operation as well. Only applicable for SMB protocol Elastic volumes. - */ - private ElasticSmbEncryption smbEncryption; - - /** - * Creates an instance of ElasticSmbProperties class. - */ - public ElasticSmbProperties() { - } - - /** - * Get the smbEncryption property: Used to enable or disable encryption for in-flight SMB data volume. This flag can - * be modified during Elastic volume update operation as well. Only applicable for SMB protocol Elastic volumes. - * - * @return the smbEncryption value. - */ - public ElasticSmbEncryption smbEncryption() { - return this.smbEncryption; - } - - /** - * Set the smbEncryption property: Used to enable or disable encryption for in-flight SMB data volume. This flag can - * be modified during Elastic volume update operation as well. Only applicable for SMB protocol Elastic volumes. - * - * @param smbEncryption the smbEncryption value to set. - * @return the ElasticSmbProperties object itself. - */ - public ElasticSmbProperties withSmbEncryption(ElasticSmbEncryption smbEncryption) { - this.smbEncryption = smbEncryption; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("smbEncryption", this.smbEncryption == null ? null : this.smbEncryption.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticSmbProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticSmbProperties 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 ElasticSmbProperties. - */ - public static ElasticSmbProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticSmbProperties deserializedElasticSmbProperties = new ElasticSmbProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("smbEncryption".equals(fieldName)) { - deserializedElasticSmbProperties.smbEncryption - = ElasticSmbEncryption.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticSmbProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshot.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshot.java deleted file mode 100644 index 9e1816bc2354d..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshot.java +++ /dev/null @@ -1,192 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.fluent.models.ElasticSnapshotInner; - -/** - * An immutable client-side representation of ElasticSnapshot. - */ -public interface ElasticSnapshot { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the name property: The name of the resource. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The type of the resource. - * - * @return the type value. - */ - String type(); - - /** - * Gets the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - ElasticSnapshotProperties properties(); - - /** - * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - SystemData systemData(); - - /** - * Gets the name of the resource group. - * - * @return the name of the resource group. - */ - String resourceGroupName(); - - /** - * Gets the inner com.azure.resourcemanager.netapp.fluent.models.ElasticSnapshotInner object. - * - * @return the inner object. - */ - ElasticSnapshotInner innerModel(); - - /** - * The entirety of the ElasticSnapshot definition. - */ - interface Definition - extends DefinitionStages.Blank, DefinitionStages.WithParentResource, DefinitionStages.WithCreate { - } - - /** - * The ElasticSnapshot definition stages. - */ - interface DefinitionStages { - /** - * The first stage of the ElasticSnapshot definition. - */ - interface Blank extends WithParentResource { - } - - /** - * The stage of the ElasticSnapshot definition allowing to specify parent resource. - */ - interface WithParentResource { - /** - * Specifies resourceGroupName, accountName, poolName, volumeName. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @return the next definition stage. - */ - WithCreate withExistingElasticVolume(String resourceGroupName, String accountName, String poolName, - String volumeName); - } - - /** - * The stage of the ElasticSnapshot definition which contains all the minimum required properties for the - * resource to be created, but also allows for any other optional properties to be specified. - */ - interface WithCreate extends DefinitionStages.WithProperties { - /** - * Executes the create request. - * - * @return the created resource. - */ - ElasticSnapshot create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - ElasticSnapshot create(Context context); - } - - /** - * The stage of the ElasticSnapshot definition allowing to specify properties. - */ - interface WithProperties { - /** - * Specifies the properties property: The resource-specific properties for this resource.. - * - * @param properties The resource-specific properties for this resource. - * @return the next definition stage. - */ - WithCreate withProperties(ElasticSnapshotProperties properties); - } - } - - /** - * Begins update for the ElasticSnapshot resource. - * - * @return the stage of resource update. - */ - ElasticSnapshot.Update update(); - - /** - * The template for ElasticSnapshot update. - */ - interface Update extends UpdateStages.WithProperties { - /** - * Executes the update request. - * - * @return the updated resource. - */ - ElasticSnapshot apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - ElasticSnapshot apply(Context context); - } - - /** - * The ElasticSnapshot update stages. - */ - interface UpdateStages { - /** - * The stage of the ElasticSnapshot update allowing to specify properties. - */ - interface WithProperties { - /** - * Specifies the properties property: The resource-specific properties for this resource.. - * - * @param properties The resource-specific properties for this resource. - * @return the next definition stage. - */ - Update withProperties(ElasticSnapshotProperties properties); - } - } - - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - ElasticSnapshot refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - ElasticSnapshot refresh(Context context); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicies.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicies.java deleted file mode 100644 index 75aed519de083..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicies.java +++ /dev/null @@ -1,174 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** - * Resource collection API of ElasticSnapshotPolicies. - */ -public interface ElasticSnapshotPolicies { - /** - * Get a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a ElasticSnapshotPolicy along with {@link Response}. - */ - Response getWithResponse(String resourceGroupName, String accountName, - String snapshotPolicyName, Context context); - - /** - * Get a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a ElasticSnapshotPolicy. - */ - ElasticSnapshotPolicy get(String resourceGroupName, String accountName, String snapshotPolicyName); - - /** - * Delete a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @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 delete(String resourceGroupName, String accountName, String snapshotPolicyName); - - /** - * Delete a ElasticSnapshotPolicy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @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 delete(String resourceGroupName, String accountName, String snapshotPolicyName, Context context); - - /** - * List ElasticSnapshotPolicy resources by ElasticAccount. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ElasticSnapshotPolicy list operation as paginated response with {@link PagedIterable}. - */ - PagedIterable listByElasticAccount(String resourceGroupName, String accountName); - - /** - * List ElasticSnapshotPolicy resources by ElasticAccount. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ElasticSnapshotPolicy list operation as paginated response with {@link PagedIterable}. - */ - PagedIterable listByElasticAccount(String resourceGroupName, String accountName, - Context context); - - /** - * Get elastic volumes associated with Elastic Snapshot Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @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 elastic volumes associated with Elastic Snapshot Policy as paginated response with {@link PagedIterable}. - */ - PagedIterable listElasticVolumes(String resourceGroupName, String accountName, - String snapshotPolicyName); - - /** - * Get elastic volumes associated with Elastic Snapshot Policy. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param snapshotPolicyName The name of the ElasticSnapshotPolicy. - * @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 elastic volumes associated with Elastic Snapshot Policy as paginated response with {@link PagedIterable}. - */ - PagedIterable listElasticVolumes(String resourceGroupName, String accountName, - String snapshotPolicyName, Context context); - - /** - * Get a ElasticSnapshotPolicy. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a ElasticSnapshotPolicy along with {@link Response}. - */ - ElasticSnapshotPolicy getById(String id); - - /** - * Get a ElasticSnapshotPolicy. - * - * @param id the resource ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a ElasticSnapshotPolicy along with {@link Response}. - */ - Response getByIdWithResponse(String id, Context context); - - /** - * Delete a ElasticSnapshotPolicy. - * - * @param id the resource ID. - * @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 deleteById(String id); - - /** - * Delete a ElasticSnapshotPolicy. - * - * @param id the resource ID. - * @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 deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new ElasticSnapshotPolicy resource. - * - * @param name resource name. - * @return the first stage of the new ElasticSnapshotPolicy definition. - */ - ElasticSnapshotPolicy.DefinitionStages.Blank define(String name); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicy.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicy.java deleted file mode 100644 index a0a76305002dc..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicy.java +++ /dev/null @@ -1,276 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.management.Region; -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.fluent.models.ElasticSnapshotPolicyInner; -import java.util.Map; - -/** - * An immutable client-side representation of ElasticSnapshotPolicy. - */ -public interface ElasticSnapshotPolicy { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the name property: The name of the resource. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The type of the resource. - * - * @return the type value. - */ - String type(); - - /** - * Gets the location property: The geo-location where the resource lives. - * - * @return the location value. - */ - String location(); - - /** - * Gets the tags property: Resource tags. - * - * @return the tags value. - */ - Map tags(); - - /** - * Gets the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - ElasticSnapshotPolicyProperties properties(); - - /** - * Gets the eTag property: If eTag is provided in the response body, it may also be provided as a header per the - * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. - * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), - * and If-Range (section 14.27) header fields. - * - * @return the eTag value. - */ - String eTag(); - - /** - * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - SystemData systemData(); - - /** - * Gets the region of the resource. - * - * @return the region of the resource. - */ - Region region(); - - /** - * Gets the name of the resource region. - * - * @return the name of the resource region. - */ - String regionName(); - - /** - * Gets the name of the resource group. - * - * @return the name of the resource group. - */ - String resourceGroupName(); - - /** - * Gets the inner com.azure.resourcemanager.netapp.fluent.models.ElasticSnapshotPolicyInner object. - * - * @return the inner object. - */ - ElasticSnapshotPolicyInner innerModel(); - - /** - * The entirety of the ElasticSnapshotPolicy definition. - */ - interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, - DefinitionStages.WithParentResource, DefinitionStages.WithCreate { - } - - /** - * The ElasticSnapshotPolicy definition stages. - */ - interface DefinitionStages { - /** - * The first stage of the ElasticSnapshotPolicy definition. - */ - interface Blank extends WithLocation { - } - - /** - * The stage of the ElasticSnapshotPolicy definition allowing to specify location. - */ - interface WithLocation { - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithParentResource withRegion(Region location); - - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithParentResource withRegion(String location); - } - - /** - * The stage of the ElasticSnapshotPolicy definition allowing to specify parent resource. - */ - interface WithParentResource { - /** - * Specifies resourceGroupName, accountName. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @return the next definition stage. - */ - WithCreate withExistingElasticAccount(String resourceGroupName, String accountName); - } - - /** - * The stage of the ElasticSnapshotPolicy definition which contains all the minimum required properties for the - * resource to be created, but also allows for any other optional properties to be specified. - */ - interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithProperties { - /** - * Executes the create request. - * - * @return the created resource. - */ - ElasticSnapshotPolicy create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - ElasticSnapshotPolicy create(Context context); - } - - /** - * The stage of the ElasticSnapshotPolicy definition allowing to specify tags. - */ - interface WithTags { - /** - * Specifies the tags property: Resource tags.. - * - * @param tags Resource tags. - * @return the next definition stage. - */ - WithCreate withTags(Map tags); - } - - /** - * The stage of the ElasticSnapshotPolicy definition allowing to specify properties. - */ - interface WithProperties { - /** - * Specifies the properties property: The resource-specific properties for this resource.. - * - * @param properties The resource-specific properties for this resource. - * @return the next definition stage. - */ - WithCreate withProperties(ElasticSnapshotPolicyProperties properties); - } - } - - /** - * Begins update for the ElasticSnapshotPolicy resource. - * - * @return the stage of resource update. - */ - ElasticSnapshotPolicy.Update update(); - - /** - * The template for ElasticSnapshotPolicy update. - */ - interface Update extends UpdateStages.WithTags, UpdateStages.WithProperties { - /** - * Executes the update request. - * - * @return the updated resource. - */ - ElasticSnapshotPolicy apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - ElasticSnapshotPolicy apply(Context context); - } - - /** - * The ElasticSnapshotPolicy update stages. - */ - interface UpdateStages { - /** - * The stage of the ElasticSnapshotPolicy update allowing to specify tags. - */ - interface WithTags { - /** - * Specifies the tags property: Resource tags.. - * - * @param tags Resource tags. - * @return the next definition stage. - */ - Update withTags(Map tags); - } - - /** - * The stage of the ElasticSnapshotPolicy update allowing to specify properties. - */ - interface WithProperties { - /** - * Specifies the properties property: The resource-specific properties for this resource.. - * - * @param properties The resource-specific properties for this resource. - * @return the next definition stage. - */ - Update withProperties(ElasticSnapshotPolicyUpdateProperties properties); - } - } - - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - ElasticSnapshotPolicy refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - ElasticSnapshotPolicy refresh(Context context); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyDailySchedule.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyDailySchedule.java deleted file mode 100644 index d21f63d3ca155..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyDailySchedule.java +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.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; - -/** - * Daily Schedule properties used to create NetApp snapshot policy. - */ -@Fluent -public final class ElasticSnapshotPolicyDailySchedule implements JsonSerializable { - /* - * Daily snapshot count to keep - */ - private Integer snapshotsToKeep; - - /* - * Indicates which hour in UTC timezone a snapshot should be taken - */ - private Integer hour; - - /* - * Indicates which minute snapshot should be taken - */ - private Integer minute; - - /** - * Creates an instance of ElasticSnapshotPolicyDailySchedule class. - */ - public ElasticSnapshotPolicyDailySchedule() { - } - - /** - * Get the snapshotsToKeep property: Daily snapshot count to keep. - * - * @return the snapshotsToKeep value. - */ - public Integer snapshotsToKeep() { - return this.snapshotsToKeep; - } - - /** - * Set the snapshotsToKeep property: Daily snapshot count to keep. - * - * @param snapshotsToKeep the snapshotsToKeep value to set. - * @return the ElasticSnapshotPolicyDailySchedule object itself. - */ - public ElasticSnapshotPolicyDailySchedule withSnapshotsToKeep(Integer snapshotsToKeep) { - this.snapshotsToKeep = snapshotsToKeep; - return this; - } - - /** - * Get the hour property: Indicates which hour in UTC timezone a snapshot should be taken. - * - * @return the hour value. - */ - public Integer hour() { - return this.hour; - } - - /** - * Set the hour property: Indicates which hour in UTC timezone a snapshot should be taken. - * - * @param hour the hour value to set. - * @return the ElasticSnapshotPolicyDailySchedule object itself. - */ - public ElasticSnapshotPolicyDailySchedule withHour(Integer hour) { - this.hour = hour; - return this; - } - - /** - * Get the minute property: Indicates which minute snapshot should be taken. - * - * @return the minute value. - */ - public Integer minute() { - return this.minute; - } - - /** - * Set the minute property: Indicates which minute snapshot should be taken. - * - * @param minute the minute value to set. - * @return the ElasticSnapshotPolicyDailySchedule object itself. - */ - public ElasticSnapshotPolicyDailySchedule withMinute(Integer minute) { - this.minute = minute; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeNumberField("snapshotsToKeep", this.snapshotsToKeep); - jsonWriter.writeNumberField("hour", this.hour); - jsonWriter.writeNumberField("minute", this.minute); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticSnapshotPolicyDailySchedule from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticSnapshotPolicyDailySchedule 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 ElasticSnapshotPolicyDailySchedule. - */ - public static ElasticSnapshotPolicyDailySchedule fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticSnapshotPolicyDailySchedule deserializedElasticSnapshotPolicyDailySchedule - = new ElasticSnapshotPolicyDailySchedule(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("snapshotsToKeep".equals(fieldName)) { - deserializedElasticSnapshotPolicyDailySchedule.snapshotsToKeep - = reader.getNullable(JsonReader::getInt); - } else if ("hour".equals(fieldName)) { - deserializedElasticSnapshotPolicyDailySchedule.hour = reader.getNullable(JsonReader::getInt); - } else if ("minute".equals(fieldName)) { - deserializedElasticSnapshotPolicyDailySchedule.minute = reader.getNullable(JsonReader::getInt); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticSnapshotPolicyDailySchedule; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyHourlySchedule.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyHourlySchedule.java deleted file mode 100644 index bdec028a79b54..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyHourlySchedule.java +++ /dev/null @@ -1,124 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.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; - -/** - * Hourly Schedule properties used to create NetApp snapshot policy. - */ -@Fluent -public final class ElasticSnapshotPolicyHourlySchedule - implements JsonSerializable { - /* - * Hourly snapshot count to keep - */ - private Integer snapshotsToKeep; - - /* - * Indicates which minute snapshot should be taken - */ - private Integer minute; - - /** - * Creates an instance of ElasticSnapshotPolicyHourlySchedule class. - */ - public ElasticSnapshotPolicyHourlySchedule() { - } - - /** - * Get the snapshotsToKeep property: Hourly snapshot count to keep. - * - * @return the snapshotsToKeep value. - */ - public Integer snapshotsToKeep() { - return this.snapshotsToKeep; - } - - /** - * Set the snapshotsToKeep property: Hourly snapshot count to keep. - * - * @param snapshotsToKeep the snapshotsToKeep value to set. - * @return the ElasticSnapshotPolicyHourlySchedule object itself. - */ - public ElasticSnapshotPolicyHourlySchedule withSnapshotsToKeep(Integer snapshotsToKeep) { - this.snapshotsToKeep = snapshotsToKeep; - return this; - } - - /** - * Get the minute property: Indicates which minute snapshot should be taken. - * - * @return the minute value. - */ - public Integer minute() { - return this.minute; - } - - /** - * Set the minute property: Indicates which minute snapshot should be taken. - * - * @param minute the minute value to set. - * @return the ElasticSnapshotPolicyHourlySchedule object itself. - */ - public ElasticSnapshotPolicyHourlySchedule withMinute(Integer minute) { - this.minute = minute; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeNumberField("snapshotsToKeep", this.snapshotsToKeep); - jsonWriter.writeNumberField("minute", this.minute); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticSnapshotPolicyHourlySchedule from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticSnapshotPolicyHourlySchedule 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 ElasticSnapshotPolicyHourlySchedule. - */ - public static ElasticSnapshotPolicyHourlySchedule fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticSnapshotPolicyHourlySchedule deserializedElasticSnapshotPolicyHourlySchedule - = new ElasticSnapshotPolicyHourlySchedule(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("snapshotsToKeep".equals(fieldName)) { - deserializedElasticSnapshotPolicyHourlySchedule.snapshotsToKeep - = reader.getNullable(JsonReader::getInt); - } else if ("minute".equals(fieldName)) { - deserializedElasticSnapshotPolicyHourlySchedule.minute = reader.getNullable(JsonReader::getInt); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticSnapshotPolicyHourlySchedule; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyMonthlySchedule.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyMonthlySchedule.java deleted file mode 100644 index 1cbac2277d200..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyMonthlySchedule.java +++ /dev/null @@ -1,184 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.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; - -/** - * Monthly Schedule properties used to create NetApp snapshot policy. - */ -@Fluent -public final class ElasticSnapshotPolicyMonthlySchedule - implements JsonSerializable { - /* - * Monthly snapshot count to keep - */ - private Integer snapshotsToKeep; - - /* - * Indicates which days of the month snapshot (1-31) should be taken, accepts a list of integers - */ - private List daysOfMonth; - - /* - * Indicates which hour in UTC timezone a snapshot should be taken - */ - private Integer hour; - - /* - * Indicates which minute snapshot should be taken - */ - private Integer minute; - - /** - * Creates an instance of ElasticSnapshotPolicyMonthlySchedule class. - */ - public ElasticSnapshotPolicyMonthlySchedule() { - } - - /** - * Get the snapshotsToKeep property: Monthly snapshot count to keep. - * - * @return the snapshotsToKeep value. - */ - public Integer snapshotsToKeep() { - return this.snapshotsToKeep; - } - - /** - * Set the snapshotsToKeep property: Monthly snapshot count to keep. - * - * @param snapshotsToKeep the snapshotsToKeep value to set. - * @return the ElasticSnapshotPolicyMonthlySchedule object itself. - */ - public ElasticSnapshotPolicyMonthlySchedule withSnapshotsToKeep(Integer snapshotsToKeep) { - this.snapshotsToKeep = snapshotsToKeep; - return this; - } - - /** - * Get the daysOfMonth property: Indicates which days of the month snapshot (1-31) should be taken, accepts a list - * of integers. - * - * @return the daysOfMonth value. - */ - public List daysOfMonth() { - return this.daysOfMonth; - } - - /** - * Set the daysOfMonth property: Indicates which days of the month snapshot (1-31) should be taken, accepts a list - * of integers. - * - * @param daysOfMonth the daysOfMonth value to set. - * @return the ElasticSnapshotPolicyMonthlySchedule object itself. - */ - public ElasticSnapshotPolicyMonthlySchedule withDaysOfMonth(List daysOfMonth) { - this.daysOfMonth = daysOfMonth; - return this; - } - - /** - * Get the hour property: Indicates which hour in UTC timezone a snapshot should be taken. - * - * @return the hour value. - */ - public Integer hour() { - return this.hour; - } - - /** - * Set the hour property: Indicates which hour in UTC timezone a snapshot should be taken. - * - * @param hour the hour value to set. - * @return the ElasticSnapshotPolicyMonthlySchedule object itself. - */ - public ElasticSnapshotPolicyMonthlySchedule withHour(Integer hour) { - this.hour = hour; - return this; - } - - /** - * Get the minute property: Indicates which minute snapshot should be taken. - * - * @return the minute value. - */ - public Integer minute() { - return this.minute; - } - - /** - * Set the minute property: Indicates which minute snapshot should be taken. - * - * @param minute the minute value to set. - * @return the ElasticSnapshotPolicyMonthlySchedule object itself. - */ - public ElasticSnapshotPolicyMonthlySchedule withMinute(Integer minute) { - this.minute = minute; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeNumberField("snapshotsToKeep", this.snapshotsToKeep); - jsonWriter.writeArrayField("daysOfMonth", this.daysOfMonth, (writer, element) -> writer.writeInt(element)); - jsonWriter.writeNumberField("hour", this.hour); - jsonWriter.writeNumberField("minute", this.minute); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticSnapshotPolicyMonthlySchedule from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticSnapshotPolicyMonthlySchedule 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 ElasticSnapshotPolicyMonthlySchedule. - */ - public static ElasticSnapshotPolicyMonthlySchedule fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticSnapshotPolicyMonthlySchedule deserializedElasticSnapshotPolicyMonthlySchedule - = new ElasticSnapshotPolicyMonthlySchedule(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("snapshotsToKeep".equals(fieldName)) { - deserializedElasticSnapshotPolicyMonthlySchedule.snapshotsToKeep - = reader.getNullable(JsonReader::getInt); - } else if ("daysOfMonth".equals(fieldName)) { - List daysOfMonth = reader.readArray(reader1 -> reader1.getInt()); - deserializedElasticSnapshotPolicyMonthlySchedule.daysOfMonth = daysOfMonth; - } else if ("hour".equals(fieldName)) { - deserializedElasticSnapshotPolicyMonthlySchedule.hour = reader.getNullable(JsonReader::getInt); - } else if ("minute".equals(fieldName)) { - deserializedElasticSnapshotPolicyMonthlySchedule.minute = reader.getNullable(JsonReader::getInt); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticSnapshotPolicyMonthlySchedule; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyProperties.java deleted file mode 100644 index e606a93f9402b..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyProperties.java +++ /dev/null @@ -1,242 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.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; - -/** - * Elastic Snapshot policy properties. - */ -@Fluent -public final class ElasticSnapshotPolicyProperties implements JsonSerializable { - /* - * Schedule for hourly snapshots - */ - private ElasticSnapshotPolicyHourlySchedule hourlySchedule; - - /* - * Schedule for daily snapshots - */ - private ElasticSnapshotPolicyDailySchedule dailySchedule; - - /* - * Schedule for weekly snapshots - */ - private ElasticSnapshotPolicyWeeklySchedule weeklySchedule; - - /* - * Schedule for monthly snapshots - */ - private ElasticSnapshotPolicyMonthlySchedule monthlySchedule; - - /* - * Configures if the snapshot policy is enabled on the volumes connected to the policy. - */ - private PolicyStatus policyStatus; - - /* - * Azure lifecycle management. - */ - private ProvisioningState provisioningState; - - /** - * Creates an instance of ElasticSnapshotPolicyProperties class. - */ - public ElasticSnapshotPolicyProperties() { - } - - /** - * Get the hourlySchedule property: Schedule for hourly snapshots. - * - * @return the hourlySchedule value. - */ - public ElasticSnapshotPolicyHourlySchedule hourlySchedule() { - return this.hourlySchedule; - } - - /** - * Set the hourlySchedule property: Schedule for hourly snapshots. - * - * @param hourlySchedule the hourlySchedule value to set. - * @return the ElasticSnapshotPolicyProperties object itself. - */ - public ElasticSnapshotPolicyProperties withHourlySchedule(ElasticSnapshotPolicyHourlySchedule hourlySchedule) { - this.hourlySchedule = hourlySchedule; - return this; - } - - /** - * Get the dailySchedule property: Schedule for daily snapshots. - * - * @return the dailySchedule value. - */ - public ElasticSnapshotPolicyDailySchedule dailySchedule() { - return this.dailySchedule; - } - - /** - * Set the dailySchedule property: Schedule for daily snapshots. - * - * @param dailySchedule the dailySchedule value to set. - * @return the ElasticSnapshotPolicyProperties object itself. - */ - public ElasticSnapshotPolicyProperties withDailySchedule(ElasticSnapshotPolicyDailySchedule dailySchedule) { - this.dailySchedule = dailySchedule; - return this; - } - - /** - * Get the weeklySchedule property: Schedule for weekly snapshots. - * - * @return the weeklySchedule value. - */ - public ElasticSnapshotPolicyWeeklySchedule weeklySchedule() { - return this.weeklySchedule; - } - - /** - * Set the weeklySchedule property: Schedule for weekly snapshots. - * - * @param weeklySchedule the weeklySchedule value to set. - * @return the ElasticSnapshotPolicyProperties object itself. - */ - public ElasticSnapshotPolicyProperties withWeeklySchedule(ElasticSnapshotPolicyWeeklySchedule weeklySchedule) { - this.weeklySchedule = weeklySchedule; - return this; - } - - /** - * Get the monthlySchedule property: Schedule for monthly snapshots. - * - * @return the monthlySchedule value. - */ - public ElasticSnapshotPolicyMonthlySchedule monthlySchedule() { - return this.monthlySchedule; - } - - /** - * Set the monthlySchedule property: Schedule for monthly snapshots. - * - * @param monthlySchedule the monthlySchedule value to set. - * @return the ElasticSnapshotPolicyProperties object itself. - */ - public ElasticSnapshotPolicyProperties withMonthlySchedule(ElasticSnapshotPolicyMonthlySchedule monthlySchedule) { - this.monthlySchedule = monthlySchedule; - return this; - } - - /** - * Get the policyStatus property: Configures if the snapshot policy is enabled on the volumes connected to the - * policy. - * - * @return the policyStatus value. - */ - public PolicyStatus policyStatus() { - return this.policyStatus; - } - - /** - * Set the policyStatus property: Configures if the snapshot policy is enabled on the volumes connected to the - * policy. - * - * @param policyStatus the policyStatus value to set. - * @return the ElasticSnapshotPolicyProperties object itself. - */ - public ElasticSnapshotPolicyProperties withPolicyStatus(PolicyStatus policyStatus) { - this.policyStatus = policyStatus; - return this; - } - - /** - * Get the provisioningState property: Azure lifecycle management. - * - * @return the provisioningState value. - */ - public ProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (hourlySchedule() != null) { - hourlySchedule().validate(); - } - if (dailySchedule() != null) { - dailySchedule().validate(); - } - if (weeklySchedule() != null) { - weeklySchedule().validate(); - } - if (monthlySchedule() != null) { - monthlySchedule().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("hourlySchedule", this.hourlySchedule); - jsonWriter.writeJsonField("dailySchedule", this.dailySchedule); - jsonWriter.writeJsonField("weeklySchedule", this.weeklySchedule); - jsonWriter.writeJsonField("monthlySchedule", this.monthlySchedule); - jsonWriter.writeStringField("policyStatus", this.policyStatus == null ? null : this.policyStatus.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticSnapshotPolicyProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticSnapshotPolicyProperties 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 ElasticSnapshotPolicyProperties. - */ - public static ElasticSnapshotPolicyProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticSnapshotPolicyProperties deserializedElasticSnapshotPolicyProperties - = new ElasticSnapshotPolicyProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("hourlySchedule".equals(fieldName)) { - deserializedElasticSnapshotPolicyProperties.hourlySchedule - = ElasticSnapshotPolicyHourlySchedule.fromJson(reader); - } else if ("dailySchedule".equals(fieldName)) { - deserializedElasticSnapshotPolicyProperties.dailySchedule - = ElasticSnapshotPolicyDailySchedule.fromJson(reader); - } else if ("weeklySchedule".equals(fieldName)) { - deserializedElasticSnapshotPolicyProperties.weeklySchedule - = ElasticSnapshotPolicyWeeklySchedule.fromJson(reader); - } else if ("monthlySchedule".equals(fieldName)) { - deserializedElasticSnapshotPolicyProperties.monthlySchedule - = ElasticSnapshotPolicyMonthlySchedule.fromJson(reader); - } else if ("policyStatus".equals(fieldName)) { - deserializedElasticSnapshotPolicyProperties.policyStatus - = PolicyStatus.fromString(reader.getString()); - } else if ("provisioningState".equals(fieldName)) { - deserializedElasticSnapshotPolicyProperties.provisioningState - = ProvisioningState.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticSnapshotPolicyProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyUpdate.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyUpdate.java deleted file mode 100644 index c9224f647b392..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyUpdate.java +++ /dev/null @@ -1,127 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.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; - -/** - * The type used for update operations of the ElasticSnapshotPolicy. - */ -@Fluent -public final class ElasticSnapshotPolicyUpdate implements JsonSerializable { - /* - * Resource tags. - */ - private Map tags; - - /* - * The resource-specific properties for this resource. - */ - private ElasticSnapshotPolicyUpdateProperties properties; - - /** - * Creates an instance of ElasticSnapshotPolicyUpdate class. - */ - public ElasticSnapshotPolicyUpdate() { - } - - /** - * Get the tags property: Resource tags. - * - * @return the tags value. - */ - public Map tags() { - return this.tags; - } - - /** - * Set the tags property: Resource tags. - * - * @param tags the tags value to set. - * @return the ElasticSnapshotPolicyUpdate object itself. - */ - public ElasticSnapshotPolicyUpdate withTags(Map tags) { - this.tags = tags; - return this; - } - - /** - * Get the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - public ElasticSnapshotPolicyUpdateProperties properties() { - return this.properties; - } - - /** - * Set the properties property: The resource-specific properties for this resource. - * - * @param properties the properties value to set. - * @return the ElasticSnapshotPolicyUpdate object itself. - */ - public ElasticSnapshotPolicyUpdate withProperties(ElasticSnapshotPolicyUpdateProperties properties) { - this.properties = properties; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (properties() != null) { - properties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - 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(); - } - - /** - * Reads an instance of ElasticSnapshotPolicyUpdate from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticSnapshotPolicyUpdate 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 ElasticSnapshotPolicyUpdate. - */ - public static ElasticSnapshotPolicyUpdate fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticSnapshotPolicyUpdate deserializedElasticSnapshotPolicyUpdate = new ElasticSnapshotPolicyUpdate(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("tags".equals(fieldName)) { - Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedElasticSnapshotPolicyUpdate.tags = tags; - } else if ("properties".equals(fieldName)) { - deserializedElasticSnapshotPolicyUpdate.properties - = ElasticSnapshotPolicyUpdateProperties.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticSnapshotPolicyUpdate; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyUpdateProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyUpdateProperties.java deleted file mode 100644 index aeb1d8a2d1a3b..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyUpdateProperties.java +++ /dev/null @@ -1,229 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.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; - -/** - * The updatable properties of the ElasticSnapshotPolicy. - */ -@Fluent -public final class ElasticSnapshotPolicyUpdateProperties - implements JsonSerializable { - /* - * Schedule for hourly snapshots - */ - private ElasticSnapshotPolicyHourlySchedule hourlySchedule; - - /* - * Schedule for daily snapshots - */ - private ElasticSnapshotPolicyDailySchedule dailySchedule; - - /* - * Schedule for weekly snapshots - */ - private ElasticSnapshotPolicyWeeklySchedule weeklySchedule; - - /* - * Schedule for monthly snapshots - */ - private ElasticSnapshotPolicyMonthlySchedule monthlySchedule; - - /* - * Configures if the snapshot policy is enabled on the volumes connected to the policy. - */ - private PolicyStatus policyStatus; - - /** - * Creates an instance of ElasticSnapshotPolicyUpdateProperties class. - */ - public ElasticSnapshotPolicyUpdateProperties() { - } - - /** - * Get the hourlySchedule property: Schedule for hourly snapshots. - * - * @return the hourlySchedule value. - */ - public ElasticSnapshotPolicyHourlySchedule hourlySchedule() { - return this.hourlySchedule; - } - - /** - * Set the hourlySchedule property: Schedule for hourly snapshots. - * - * @param hourlySchedule the hourlySchedule value to set. - * @return the ElasticSnapshotPolicyUpdateProperties object itself. - */ - public ElasticSnapshotPolicyUpdateProperties - withHourlySchedule(ElasticSnapshotPolicyHourlySchedule hourlySchedule) { - this.hourlySchedule = hourlySchedule; - return this; - } - - /** - * Get the dailySchedule property: Schedule for daily snapshots. - * - * @return the dailySchedule value. - */ - public ElasticSnapshotPolicyDailySchedule dailySchedule() { - return this.dailySchedule; - } - - /** - * Set the dailySchedule property: Schedule for daily snapshots. - * - * @param dailySchedule the dailySchedule value to set. - * @return the ElasticSnapshotPolicyUpdateProperties object itself. - */ - public ElasticSnapshotPolicyUpdateProperties withDailySchedule(ElasticSnapshotPolicyDailySchedule dailySchedule) { - this.dailySchedule = dailySchedule; - return this; - } - - /** - * Get the weeklySchedule property: Schedule for weekly snapshots. - * - * @return the weeklySchedule value. - */ - public ElasticSnapshotPolicyWeeklySchedule weeklySchedule() { - return this.weeklySchedule; - } - - /** - * Set the weeklySchedule property: Schedule for weekly snapshots. - * - * @param weeklySchedule the weeklySchedule value to set. - * @return the ElasticSnapshotPolicyUpdateProperties object itself. - */ - public ElasticSnapshotPolicyUpdateProperties - withWeeklySchedule(ElasticSnapshotPolicyWeeklySchedule weeklySchedule) { - this.weeklySchedule = weeklySchedule; - return this; - } - - /** - * Get the monthlySchedule property: Schedule for monthly snapshots. - * - * @return the monthlySchedule value. - */ - public ElasticSnapshotPolicyMonthlySchedule monthlySchedule() { - return this.monthlySchedule; - } - - /** - * Set the monthlySchedule property: Schedule for monthly snapshots. - * - * @param monthlySchedule the monthlySchedule value to set. - * @return the ElasticSnapshotPolicyUpdateProperties object itself. - */ - public ElasticSnapshotPolicyUpdateProperties - withMonthlySchedule(ElasticSnapshotPolicyMonthlySchedule monthlySchedule) { - this.monthlySchedule = monthlySchedule; - return this; - } - - /** - * Get the policyStatus property: Configures if the snapshot policy is enabled on the volumes connected to the - * policy. - * - * @return the policyStatus value. - */ - public PolicyStatus policyStatus() { - return this.policyStatus; - } - - /** - * Set the policyStatus property: Configures if the snapshot policy is enabled on the volumes connected to the - * policy. - * - * @param policyStatus the policyStatus value to set. - * @return the ElasticSnapshotPolicyUpdateProperties object itself. - */ - public ElasticSnapshotPolicyUpdateProperties withPolicyStatus(PolicyStatus policyStatus) { - this.policyStatus = policyStatus; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (hourlySchedule() != null) { - hourlySchedule().validate(); - } - if (dailySchedule() != null) { - dailySchedule().validate(); - } - if (weeklySchedule() != null) { - weeklySchedule().validate(); - } - if (monthlySchedule() != null) { - monthlySchedule().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("hourlySchedule", this.hourlySchedule); - jsonWriter.writeJsonField("dailySchedule", this.dailySchedule); - jsonWriter.writeJsonField("weeklySchedule", this.weeklySchedule); - jsonWriter.writeJsonField("monthlySchedule", this.monthlySchedule); - jsonWriter.writeStringField("policyStatus", this.policyStatus == null ? null : this.policyStatus.toString()); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticSnapshotPolicyUpdateProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticSnapshotPolicyUpdateProperties 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 ElasticSnapshotPolicyUpdateProperties. - */ - public static ElasticSnapshotPolicyUpdateProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticSnapshotPolicyUpdateProperties deserializedElasticSnapshotPolicyUpdateProperties - = new ElasticSnapshotPolicyUpdateProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("hourlySchedule".equals(fieldName)) { - deserializedElasticSnapshotPolicyUpdateProperties.hourlySchedule - = ElasticSnapshotPolicyHourlySchedule.fromJson(reader); - } else if ("dailySchedule".equals(fieldName)) { - deserializedElasticSnapshotPolicyUpdateProperties.dailySchedule - = ElasticSnapshotPolicyDailySchedule.fromJson(reader); - } else if ("weeklySchedule".equals(fieldName)) { - deserializedElasticSnapshotPolicyUpdateProperties.weeklySchedule - = ElasticSnapshotPolicyWeeklySchedule.fromJson(reader); - } else if ("monthlySchedule".equals(fieldName)) { - deserializedElasticSnapshotPolicyUpdateProperties.monthlySchedule - = ElasticSnapshotPolicyMonthlySchedule.fromJson(reader); - } else if ("policyStatus".equals(fieldName)) { - deserializedElasticSnapshotPolicyUpdateProperties.policyStatus - = PolicyStatus.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticSnapshotPolicyUpdateProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyWeeklySchedule.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyWeeklySchedule.java deleted file mode 100644 index 62a9b5ad9ac88..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyWeeklySchedule.java +++ /dev/null @@ -1,185 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.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; - -/** - * Weekly Schedule properties used to create NetApp snapshot policy. - */ -@Fluent -public final class ElasticSnapshotPolicyWeeklySchedule - implements JsonSerializable { - /* - * Weekly snapshot count to keep - */ - private Integer snapshotsToKeep; - - /* - * Indicates which weekday(s) snapshot(s) should be taken, accepts a list of week day names in english - */ - private List days; - - /* - * Indicates which hour in UTC timezone a snapshot should be taken - */ - private Integer hour; - - /* - * Indicates which minute snapshot should be taken - */ - private Integer minute; - - /** - * Creates an instance of ElasticSnapshotPolicyWeeklySchedule class. - */ - public ElasticSnapshotPolicyWeeklySchedule() { - } - - /** - * Get the snapshotsToKeep property: Weekly snapshot count to keep. - * - * @return the snapshotsToKeep value. - */ - public Integer snapshotsToKeep() { - return this.snapshotsToKeep; - } - - /** - * Set the snapshotsToKeep property: Weekly snapshot count to keep. - * - * @param snapshotsToKeep the snapshotsToKeep value to set. - * @return the ElasticSnapshotPolicyWeeklySchedule object itself. - */ - public ElasticSnapshotPolicyWeeklySchedule withSnapshotsToKeep(Integer snapshotsToKeep) { - this.snapshotsToKeep = snapshotsToKeep; - return this; - } - - /** - * Get the days property: Indicates which weekday(s) snapshot(s) should be taken, accepts a list of week day names - * in english. - * - * @return the days value. - */ - public List days() { - return this.days; - } - - /** - * Set the days property: Indicates which weekday(s) snapshot(s) should be taken, accepts a list of week day names - * in english. - * - * @param days the days value to set. - * @return the ElasticSnapshotPolicyWeeklySchedule object itself. - */ - public ElasticSnapshotPolicyWeeklySchedule withDays(List days) { - this.days = days; - return this; - } - - /** - * Get the hour property: Indicates which hour in UTC timezone a snapshot should be taken. - * - * @return the hour value. - */ - public Integer hour() { - return this.hour; - } - - /** - * Set the hour property: Indicates which hour in UTC timezone a snapshot should be taken. - * - * @param hour the hour value to set. - * @return the ElasticSnapshotPolicyWeeklySchedule object itself. - */ - public ElasticSnapshotPolicyWeeklySchedule withHour(Integer hour) { - this.hour = hour; - return this; - } - - /** - * Get the minute property: Indicates which minute snapshot should be taken. - * - * @return the minute value. - */ - public Integer minute() { - return this.minute; - } - - /** - * Set the minute property: Indicates which minute snapshot should be taken. - * - * @param minute the minute value to set. - * @return the ElasticSnapshotPolicyWeeklySchedule object itself. - */ - public ElasticSnapshotPolicyWeeklySchedule withMinute(Integer minute) { - this.minute = minute; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeNumberField("snapshotsToKeep", this.snapshotsToKeep); - jsonWriter.writeArrayField("days", this.days, - (writer, element) -> writer.writeString(element == null ? null : element.toString())); - jsonWriter.writeNumberField("hour", this.hour); - jsonWriter.writeNumberField("minute", this.minute); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticSnapshotPolicyWeeklySchedule from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticSnapshotPolicyWeeklySchedule 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 ElasticSnapshotPolicyWeeklySchedule. - */ - public static ElasticSnapshotPolicyWeeklySchedule fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticSnapshotPolicyWeeklySchedule deserializedElasticSnapshotPolicyWeeklySchedule - = new ElasticSnapshotPolicyWeeklySchedule(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("snapshotsToKeep".equals(fieldName)) { - deserializedElasticSnapshotPolicyWeeklySchedule.snapshotsToKeep - = reader.getNullable(JsonReader::getInt); - } else if ("days".equals(fieldName)) { - List days = reader.readArray(reader1 -> DayOfWeek.fromString(reader1.getString())); - deserializedElasticSnapshotPolicyWeeklySchedule.days = days; - } else if ("hour".equals(fieldName)) { - deserializedElasticSnapshotPolicyWeeklySchedule.hour = reader.getNullable(JsonReader::getInt); - } else if ("minute".equals(fieldName)) { - deserializedElasticSnapshotPolicyWeeklySchedule.minute = reader.getNullable(JsonReader::getInt); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticSnapshotPolicyWeeklySchedule; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotProperties.java deleted file mode 100644 index 92a3c2587f964..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotProperties.java +++ /dev/null @@ -1,82 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.annotation.Immutable; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Elastic Snapshot properties. - */ -@Immutable -public final class ElasticSnapshotProperties implements JsonSerializable { - /* - * Azure lifecycle management. - */ - private ProvisioningState provisioningState; - - /** - * Creates an instance of ElasticSnapshotProperties class. - */ - public ElasticSnapshotProperties() { - } - - /** - * Get the provisioningState property: Azure lifecycle management. - * - * @return the provisioningState value. - */ - public ProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticSnapshotProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticSnapshotProperties 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 ElasticSnapshotProperties. - */ - public static ElasticSnapshotProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticSnapshotProperties deserializedElasticSnapshotProperties = new ElasticSnapshotProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("provisioningState".equals(fieldName)) { - deserializedElasticSnapshotProperties.provisioningState - = ProvisioningState.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticSnapshotProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshots.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshots.java deleted file mode 100644 index aa698ce37da13..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshots.java +++ /dev/null @@ -1,160 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** - * Resource collection API of ElasticSnapshots. - */ -public interface ElasticSnapshots { - /** - * Get a ElasticSnapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param snapshotName The name of the ElasticSnapshot. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a ElasticSnapshot along with {@link Response}. - */ - Response getWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName, String snapshotName, Context context); - - /** - * Get a ElasticSnapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param snapshotName The name of the ElasticSnapshot. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a ElasticSnapshot. - */ - ElasticSnapshot get(String resourceGroupName, String accountName, String poolName, String volumeName, - String snapshotName); - - /** - * Delete a ElasticSnapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param snapshotName The name of the ElasticSnapshot. - * @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 delete(String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName); - - /** - * Delete a ElasticSnapshot. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param snapshotName The name of the ElasticSnapshot. - * @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 delete(String resourceGroupName, String accountName, String poolName, String volumeName, String snapshotName, - Context context); - - /** - * List ElasticSnapshot resources by ElasticVolume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ElasticSnapshot list operation as paginated response with {@link PagedIterable}. - */ - PagedIterable listByElasticVolume(String resourceGroupName, String accountName, String poolName, - String volumeName); - - /** - * List ElasticSnapshot resources by ElasticVolume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ElasticSnapshot list operation as paginated response with {@link PagedIterable}. - */ - PagedIterable listByElasticVolume(String resourceGroupName, String accountName, String poolName, - String volumeName, Context context); - - /** - * Get a ElasticSnapshot. - * - * @param id the resource ID. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a ElasticSnapshot along with {@link Response}. - */ - ElasticSnapshot getById(String id); - - /** - * Get a ElasticSnapshot. - * - * @param id the resource ID. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a ElasticSnapshot along with {@link Response}. - */ - Response getByIdWithResponse(String id, Context context); - - /** - * Delete a ElasticSnapshot. - * - * @param id the resource ID. - * @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 deleteById(String id); - - /** - * Delete a ElasticSnapshot. - * - * @param id the resource ID. - * @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 deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new ElasticSnapshot resource. - * - * @param name resource name. - * @return the first stage of the new ElasticSnapshot definition. - */ - ElasticSnapshot.DefinitionStages.Blank define(String name); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticUnixAccessRule.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticUnixAccessRule.java deleted file mode 100644 index 659566146864d..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticUnixAccessRule.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Unix access rule. - */ -public final class ElasticUnixAccessRule extends ExpandableStringEnum { - /** - * Clients connecting with this rule will only have read access to the volume. - */ - public static final ElasticUnixAccessRule READ_ONLY = fromString("ReadOnly"); - - /** - * Clients connecting with this rule will have full read and write access to the volume. - */ - public static final ElasticUnixAccessRule READ_WRITE = fromString("ReadWrite"); - - /** - * Clients connecting with this rule will have no access to the volume. - */ - public static final ElasticUnixAccessRule NO_ACCESS = fromString("NoAccess"); - - /** - * Creates a new instance of ElasticUnixAccessRule value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ElasticUnixAccessRule() { - } - - /** - * Creates or finds a ElasticUnixAccessRule from its string representation. - * - * @param name a name to look for. - * @return the corresponding ElasticUnixAccessRule. - */ - public static ElasticUnixAccessRule fromString(String name) { - return fromString(name, ElasticUnixAccessRule.class); - } - - /** - * Gets known ElasticUnixAccessRule values. - * - * @return known ElasticUnixAccessRule values. - */ - public static Collection values() { - return values(ElasticUnixAccessRule.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolume.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolume.java deleted file mode 100644 index 554beba8f26a4..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolume.java +++ /dev/null @@ -1,322 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.management.Region; -import com.azure.core.management.SystemData; -import com.azure.core.util.Context; -import com.azure.resourcemanager.netapp.fluent.models.ElasticVolumeInner; -import java.util.List; -import java.util.Map; - -/** - * An immutable client-side representation of ElasticVolume. - */ -public interface ElasticVolume { - /** - * Gets the id property: Fully qualified resource Id for the resource. - * - * @return the id value. - */ - String id(); - - /** - * Gets the name property: The name of the resource. - * - * @return the name value. - */ - String name(); - - /** - * Gets the type property: The type of the resource. - * - * @return the type value. - */ - String type(); - - /** - * Gets the location property: The geo-location where the resource lives. - * - * @return the location value. - */ - String location(); - - /** - * Gets the tags property: Resource tags. - * - * @return the tags value. - */ - Map tags(); - - /** - * Gets the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - ElasticVolumeProperties properties(); - - /** - * Gets the eTag property: If eTag is provided in the response body, it may also be provided as a header per the - * normal etag convention. Entity tags are used for comparing two or more entities from the same requested resource. - * HTTP/1.1 uses entity tags in the etag (section 14.19), If-Match (section 14.24), If-None-Match (section 14.26), - * and If-Range (section 14.27) header fields. - * - * @return the eTag value. - */ - String eTag(); - - /** - * Gets the zones property: The availability zones. - * - * @return the zones value. - */ - List zones(); - - /** - * Gets the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. - * - * @return the systemData value. - */ - SystemData systemData(); - - /** - * Gets the region of the resource. - * - * @return the region of the resource. - */ - Region region(); - - /** - * Gets the name of the resource region. - * - * @return the name of the resource region. - */ - String regionName(); - - /** - * Gets the name of the resource group. - * - * @return the name of the resource group. - */ - String resourceGroupName(); - - /** - * Gets the inner com.azure.resourcemanager.netapp.fluent.models.ElasticVolumeInner object. - * - * @return the inner object. - */ - ElasticVolumeInner innerModel(); - - /** - * The entirety of the ElasticVolume definition. - */ - interface Definition extends DefinitionStages.Blank, DefinitionStages.WithLocation, - DefinitionStages.WithParentResource, DefinitionStages.WithCreate { - } - - /** - * The ElasticVolume definition stages. - */ - interface DefinitionStages { - /** - * The first stage of the ElasticVolume definition. - */ - interface Blank extends WithLocation { - } - - /** - * The stage of the ElasticVolume definition allowing to specify location. - */ - interface WithLocation { - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithParentResource withRegion(Region location); - - /** - * Specifies the region for the resource. - * - * @param location The geo-location where the resource lives. - * @return the next definition stage. - */ - WithParentResource withRegion(String location); - } - - /** - * The stage of the ElasticVolume definition allowing to specify parent resource. - */ - interface WithParentResource { - /** - * Specifies resourceGroupName, accountName, poolName. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @return the next definition stage. - */ - WithCreate withExistingElasticCapacityPool(String resourceGroupName, String accountName, String poolName); - } - - /** - * The stage of the ElasticVolume definition which contains all the minimum required properties for the resource - * to be created, but also allows for any other optional properties to be specified. - */ - interface WithCreate - extends DefinitionStages.WithTags, DefinitionStages.WithProperties, DefinitionStages.WithZones { - /** - * Executes the create request. - * - * @return the created resource. - */ - ElasticVolume create(); - - /** - * Executes the create request. - * - * @param context The context to associate with this operation. - * @return the created resource. - */ - ElasticVolume create(Context context); - } - - /** - * The stage of the ElasticVolume definition allowing to specify tags. - */ - interface WithTags { - /** - * Specifies the tags property: Resource tags.. - * - * @param tags Resource tags. - * @return the next definition stage. - */ - WithCreate withTags(Map tags); - } - - /** - * The stage of the ElasticVolume definition allowing to specify properties. - */ - interface WithProperties { - /** - * Specifies the properties property: The resource-specific properties for this resource.. - * - * @param properties The resource-specific properties for this resource. - * @return the next definition stage. - */ - WithCreate withProperties(ElasticVolumeProperties properties); - } - - /** - * The stage of the ElasticVolume definition allowing to specify zones. - */ - interface WithZones { - /** - * Specifies the zones property: The availability zones.. - * - * @param zones The availability zones. - * @return the next definition stage. - */ - WithCreate withZones(List zones); - } - } - - /** - * Begins update for the ElasticVolume resource. - * - * @return the stage of resource update. - */ - ElasticVolume.Update update(); - - /** - * The template for ElasticVolume update. - */ - interface Update extends UpdateStages.WithTags, UpdateStages.WithProperties { - /** - * Executes the update request. - * - * @return the updated resource. - */ - ElasticVolume apply(); - - /** - * Executes the update request. - * - * @param context The context to associate with this operation. - * @return the updated resource. - */ - ElasticVolume apply(Context context); - } - - /** - * The ElasticVolume update stages. - */ - interface UpdateStages { - /** - * The stage of the ElasticVolume update allowing to specify tags. - */ - interface WithTags { - /** - * Specifies the tags property: Resource tags.. - * - * @param tags Resource tags. - * @return the next definition stage. - */ - Update withTags(Map tags); - } - - /** - * The stage of the ElasticVolume update allowing to specify properties. - */ - interface WithProperties { - /** - * Specifies the properties property: The resource-specific properties for this resource.. - * - * @param properties The resource-specific properties for this resource. - * @return the next definition stage. - */ - Update withProperties(ElasticVolumeUpdateProperties properties); - } - } - - /** - * Refreshes the resource to sync with Azure. - * - * @return the refreshed resource. - */ - ElasticVolume refresh(); - - /** - * Refreshes the resource to sync with Azure. - * - * @param context The context to associate with this operation. - * @return the refreshed resource. - */ - ElasticVolume refresh(Context context); - - /** - * Revert an Elastic Volume to the snapshot specified in the body. - * - * @param body The content of the action request. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Volume resource. - */ - ElasticVolume revert(ElasticVolumeRevert body); - - /** - * Revert an Elastic Volume to the snapshot specified in the body. - * - * @param body The content of the action request. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Volume resource. - */ - ElasticVolume revert(ElasticVolumeRevert body, Context context); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeBackupProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeBackupProperties.java deleted file mode 100644 index 0ad6d3a993ded..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeBackupProperties.java +++ /dev/null @@ -1,152 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.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; - -/** - * Elastic Volume Backup Properties. - */ -@Fluent -public final class ElasticVolumeBackupProperties implements JsonSerializable { - /* - * ResourceId used to identify Elastic Backup Policy - */ - private String elasticBackupPolicyResourceId; - - /* - * The property to decide policy is enforced or not on the volume - */ - private ElasticVolumePolicyEnforcement policyEnforcement; - - /* - * ResourceId used to identify Elastic Backup Vault - */ - private String elasticBackupVaultResourceId; - - /** - * Creates an instance of ElasticVolumeBackupProperties class. - */ - public ElasticVolumeBackupProperties() { - } - - /** - * Get the elasticBackupPolicyResourceId property: ResourceId used to identify Elastic Backup Policy. - * - * @return the elasticBackupPolicyResourceId value. - */ - public String elasticBackupPolicyResourceId() { - return this.elasticBackupPolicyResourceId; - } - - /** - * Set the elasticBackupPolicyResourceId property: ResourceId used to identify Elastic Backup Policy. - * - * @param elasticBackupPolicyResourceId the elasticBackupPolicyResourceId value to set. - * @return the ElasticVolumeBackupProperties object itself. - */ - public ElasticVolumeBackupProperties withElasticBackupPolicyResourceId(String elasticBackupPolicyResourceId) { - this.elasticBackupPolicyResourceId = elasticBackupPolicyResourceId; - return this; - } - - /** - * Get the policyEnforcement property: The property to decide policy is enforced or not on the volume. - * - * @return the policyEnforcement value. - */ - public ElasticVolumePolicyEnforcement policyEnforcement() { - return this.policyEnforcement; - } - - /** - * Set the policyEnforcement property: The property to decide policy is enforced or not on the volume. - * - * @param policyEnforcement the policyEnforcement value to set. - * @return the ElasticVolumeBackupProperties object itself. - */ - public ElasticVolumeBackupProperties withPolicyEnforcement(ElasticVolumePolicyEnforcement policyEnforcement) { - this.policyEnforcement = policyEnforcement; - return this; - } - - /** - * Get the elasticBackupVaultResourceId property: ResourceId used to identify Elastic Backup Vault. - * - * @return the elasticBackupVaultResourceId value. - */ - public String elasticBackupVaultResourceId() { - return this.elasticBackupVaultResourceId; - } - - /** - * Set the elasticBackupVaultResourceId property: ResourceId used to identify Elastic Backup Vault. - * - * @param elasticBackupVaultResourceId the elasticBackupVaultResourceId value to set. - * @return the ElasticVolumeBackupProperties object itself. - */ - public ElasticVolumeBackupProperties withElasticBackupVaultResourceId(String elasticBackupVaultResourceId) { - this.elasticBackupVaultResourceId = elasticBackupVaultResourceId; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("elasticBackupPolicyResourceId", this.elasticBackupPolicyResourceId); - jsonWriter.writeStringField("policyEnforcement", - this.policyEnforcement == null ? null : this.policyEnforcement.toString()); - jsonWriter.writeStringField("elasticBackupVaultResourceId", this.elasticBackupVaultResourceId); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticVolumeBackupProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticVolumeBackupProperties 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 ElasticVolumeBackupProperties. - */ - public static ElasticVolumeBackupProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticVolumeBackupProperties deserializedElasticVolumeBackupProperties - = new ElasticVolumeBackupProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("elasticBackupPolicyResourceId".equals(fieldName)) { - deserializedElasticVolumeBackupProperties.elasticBackupPolicyResourceId = reader.getString(); - } else if ("policyEnforcement".equals(fieldName)) { - deserializedElasticVolumeBackupProperties.policyEnforcement - = ElasticVolumePolicyEnforcement.fromString(reader.getString()); - } else if ("elasticBackupVaultResourceId".equals(fieldName)) { - deserializedElasticVolumeBackupProperties.elasticBackupVaultResourceId = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticVolumeBackupProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeDataProtectionPatchProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeDataProtectionPatchProperties.java deleted file mode 100644 index 5bef7dd86892e..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeDataProtectionPatchProperties.java +++ /dev/null @@ -1,131 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.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; - -/** - * Data protection configuration option for updating the volume, including snapshot policies and backup. - */ -@Fluent -public final class ElasticVolumeDataProtectionPatchProperties - implements JsonSerializable { - /* - * Used to apply a snapshot policy to a volume. - */ - private ElasticVolumeSnapshotProperties snapshot; - - /* - * Used to configure backups on an elastic volume. - */ - private ElasticVolumeBackupProperties backup; - - /** - * Creates an instance of ElasticVolumeDataProtectionPatchProperties class. - */ - public ElasticVolumeDataProtectionPatchProperties() { - } - - /** - * Get the snapshot property: Used to apply a snapshot policy to a volume. - * - * @return the snapshot value. - */ - public ElasticVolumeSnapshotProperties snapshot() { - return this.snapshot; - } - - /** - * Set the snapshot property: Used to apply a snapshot policy to a volume. - * - * @param snapshot the snapshot value to set. - * @return the ElasticVolumeDataProtectionPatchProperties object itself. - */ - public ElasticVolumeDataProtectionPatchProperties withSnapshot(ElasticVolumeSnapshotProperties snapshot) { - this.snapshot = snapshot; - return this; - } - - /** - * Get the backup property: Used to configure backups on an elastic volume. - * - * @return the backup value. - */ - public ElasticVolumeBackupProperties backup() { - return this.backup; - } - - /** - * Set the backup property: Used to configure backups on an elastic volume. - * - * @param backup the backup value to set. - * @return the ElasticVolumeDataProtectionPatchProperties object itself. - */ - public ElasticVolumeDataProtectionPatchProperties withBackup(ElasticVolumeBackupProperties backup) { - this.backup = backup; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (snapshot() != null) { - snapshot().validate(); - } - if (backup() != null) { - backup().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("snapshot", this.snapshot); - jsonWriter.writeJsonField("backup", this.backup); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticVolumeDataProtectionPatchProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticVolumeDataProtectionPatchProperties 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 ElasticVolumeDataProtectionPatchProperties. - */ - public static ElasticVolumeDataProtectionPatchProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticVolumeDataProtectionPatchProperties deserializedElasticVolumeDataProtectionPatchProperties - = new ElasticVolumeDataProtectionPatchProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("snapshot".equals(fieldName)) { - deserializedElasticVolumeDataProtectionPatchProperties.snapshot - = ElasticVolumeSnapshotProperties.fromJson(reader); - } else if ("backup".equals(fieldName)) { - deserializedElasticVolumeDataProtectionPatchProperties.backup - = ElasticVolumeBackupProperties.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticVolumeDataProtectionPatchProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeDataProtectionProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeDataProtectionProperties.java deleted file mode 100644 index 1275a92577bca..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeDataProtectionProperties.java +++ /dev/null @@ -1,131 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.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; - -/** - * Data protection configuration option for the volume, including snapshot policies and backup. - */ -@Fluent -public final class ElasticVolumeDataProtectionProperties - implements JsonSerializable { - /* - * Used to apply a snapshot policy to a volume. - */ - private ElasticVolumeSnapshotProperties snapshot; - - /* - * Used to configure backups on an elastic volume. - */ - private ElasticVolumeBackupProperties backup; - - /** - * Creates an instance of ElasticVolumeDataProtectionProperties class. - */ - public ElasticVolumeDataProtectionProperties() { - } - - /** - * Get the snapshot property: Used to apply a snapshot policy to a volume. - * - * @return the snapshot value. - */ - public ElasticVolumeSnapshotProperties snapshot() { - return this.snapshot; - } - - /** - * Set the snapshot property: Used to apply a snapshot policy to a volume. - * - * @param snapshot the snapshot value to set. - * @return the ElasticVolumeDataProtectionProperties object itself. - */ - public ElasticVolumeDataProtectionProperties withSnapshot(ElasticVolumeSnapshotProperties snapshot) { - this.snapshot = snapshot; - return this; - } - - /** - * Get the backup property: Used to configure backups on an elastic volume. - * - * @return the backup value. - */ - public ElasticVolumeBackupProperties backup() { - return this.backup; - } - - /** - * Set the backup property: Used to configure backups on an elastic volume. - * - * @param backup the backup value to set. - * @return the ElasticVolumeDataProtectionProperties object itself. - */ - public ElasticVolumeDataProtectionProperties withBackup(ElasticVolumeBackupProperties backup) { - this.backup = backup; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (snapshot() != null) { - snapshot().validate(); - } - if (backup() != null) { - backup().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("snapshot", this.snapshot); - jsonWriter.writeJsonField("backup", this.backup); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticVolumeDataProtectionProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticVolumeDataProtectionProperties 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 ElasticVolumeDataProtectionProperties. - */ - public static ElasticVolumeDataProtectionProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticVolumeDataProtectionProperties deserializedElasticVolumeDataProtectionProperties - = new ElasticVolumeDataProtectionProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("snapshot".equals(fieldName)) { - deserializedElasticVolumeDataProtectionProperties.snapshot - = ElasticVolumeSnapshotProperties.fromJson(reader); - } else if ("backup".equals(fieldName)) { - deserializedElasticVolumeDataProtectionProperties.backup - = ElasticVolumeBackupProperties.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticVolumeDataProtectionProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumePolicyEnforcement.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumePolicyEnforcement.java deleted file mode 100644 index 6a1bb984ee919..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumePolicyEnforcement.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Policy enforcement. - */ -public final class ElasticVolumePolicyEnforcement extends ExpandableStringEnum { - /** - * Value indicating the policy is enforced on the volume. - */ - public static final ElasticVolumePolicyEnforcement ENFORCED = fromString("Enforced"); - - /** - * Value indicating the policy is not enforced on the volume. - */ - public static final ElasticVolumePolicyEnforcement NOT_ENFORCED = fromString("NotEnforced"); - - /** - * Creates a new instance of ElasticVolumePolicyEnforcement value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ElasticVolumePolicyEnforcement() { - } - - /** - * Creates or finds a ElasticVolumePolicyEnforcement from its string representation. - * - * @param name a name to look for. - * @return the corresponding ElasticVolumePolicyEnforcement. - */ - public static ElasticVolumePolicyEnforcement fromString(String name) { - return fromString(name, ElasticVolumePolicyEnforcement.class); - } - - /** - * Gets known ElasticVolumePolicyEnforcement values. - * - * @return known ElasticVolumePolicyEnforcement values. - */ - public static Collection values() { - return values(ElasticVolumePolicyEnforcement.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeProperties.java deleted file mode 100644 index d4c03bb13886c..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeProperties.java +++ /dev/null @@ -1,431 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; -import java.util.List; - -/** - * Elastic Volume properties. - */ -@Fluent -public final class ElasticVolumeProperties implements JsonSerializable { - /* - * A unique file path for the volume. Used when creating mount targets. This needs to be unique within the elastic - * capacity pool. - */ - private String filePath; - - /* - * Maximum size allowed for a volume in bytes. Valid values are in the range 1GiB to 16TiB. Values expressed in - * bytes as multiples of 1 GiB. - */ - private long size; - - /* - * Set of export policy rules - */ - private ElasticExportPolicy exportPolicy; - - /* - * Set of support protocol types for the elastic volume - */ - private List protocolTypes; - - /* - * Azure lifecycle management. - */ - private ProvisioningState provisioningState; - - /* - * Current availability status of the resource. - */ - private ElasticResourceAvailabilityStatus availabilityStatus; - - /* - * Resource identifier used to identify the Elastic Snapshot. - */ - private String snapshotResourceId; - - /* - * List of mount targets that can be used to mount this volume - */ - private List mountTargets; - - /* - * Data protection configuration option for the volume, including snapshot policies and backup. - */ - private ElasticVolumeDataProtectionProperties dataProtection; - - /* - * Controls the visibility of the volume's read-only snapshot directory, which provides access to each of the - * volume's snapshots. - */ - private SnapshotDirectoryVisibility snapshotDirectoryVisibility; - - /* - * SMB Properties - */ - private ElasticSmbProperties smbProperties; - - /* - * Resource identifier used to identify the Elastic Backup. - */ - private String backupResourceId; - - /* - * The current state of the restoration process. - */ - private ElasticVolumeRestorationState restorationState; - - /** - * Creates an instance of ElasticVolumeProperties class. - */ - public ElasticVolumeProperties() { - } - - /** - * Get the filePath property: A unique file path for the volume. Used when creating mount targets. This needs to be - * unique within the elastic capacity pool. - * - * @return the filePath value. - */ - public String filePath() { - return this.filePath; - } - - /** - * Set the filePath property: A unique file path for the volume. Used when creating mount targets. This needs to be - * unique within the elastic capacity pool. - * - * @param filePath the filePath value to set. - * @return the ElasticVolumeProperties object itself. - */ - public ElasticVolumeProperties withFilePath(String filePath) { - this.filePath = filePath; - return this; - } - - /** - * Get the size property: Maximum size allowed for a volume in bytes. Valid values are in the range 1GiB to 16TiB. - * Values expressed in bytes as multiples of 1 GiB. - * - * @return the size value. - */ - public long size() { - return this.size; - } - - /** - * Set the size property: Maximum size allowed for a volume in bytes. Valid values are in the range 1GiB to 16TiB. - * Values expressed in bytes as multiples of 1 GiB. - * - * @param size the size value to set. - * @return the ElasticVolumeProperties object itself. - */ - public ElasticVolumeProperties withSize(long size) { - this.size = size; - return this; - } - - /** - * Get the exportPolicy property: Set of export policy rules. - * - * @return the exportPolicy value. - */ - public ElasticExportPolicy exportPolicy() { - return this.exportPolicy; - } - - /** - * Set the exportPolicy property: Set of export policy rules. - * - * @param exportPolicy the exportPolicy value to set. - * @return the ElasticVolumeProperties object itself. - */ - public ElasticVolumeProperties withExportPolicy(ElasticExportPolicy exportPolicy) { - this.exportPolicy = exportPolicy; - return this; - } - - /** - * Get the protocolTypes property: Set of support protocol types for the elastic volume. - * - * @return the protocolTypes value. - */ - public List protocolTypes() { - return this.protocolTypes; - } - - /** - * Set the protocolTypes property: Set of support protocol types for the elastic volume. - * - * @param protocolTypes the protocolTypes value to set. - * @return the ElasticVolumeProperties object itself. - */ - public ElasticVolumeProperties withProtocolTypes(List protocolTypes) { - this.protocolTypes = protocolTypes; - return this; - } - - /** - * Get the provisioningState property: Azure lifecycle management. - * - * @return the provisioningState value. - */ - public ProvisioningState provisioningState() { - return this.provisioningState; - } - - /** - * Get the availabilityStatus property: Current availability status of the resource. - * - * @return the availabilityStatus value. - */ - public ElasticResourceAvailabilityStatus availabilityStatus() { - return this.availabilityStatus; - } - - /** - * Get the snapshotResourceId property: Resource identifier used to identify the Elastic Snapshot. - * - * @return the snapshotResourceId value. - */ - public String snapshotResourceId() { - return this.snapshotResourceId; - } - - /** - * Set the snapshotResourceId property: Resource identifier used to identify the Elastic Snapshot. - * - * @param snapshotResourceId the snapshotResourceId value to set. - * @return the ElasticVolumeProperties object itself. - */ - public ElasticVolumeProperties withSnapshotResourceId(String snapshotResourceId) { - this.snapshotResourceId = snapshotResourceId; - return this; - } - - /** - * Get the mountTargets property: List of mount targets that can be used to mount this volume. - * - * @return the mountTargets value. - */ - public List mountTargets() { - return this.mountTargets; - } - - /** - * Get the dataProtection property: Data protection configuration option for the volume, including snapshot policies - * and backup. - * - * @return the dataProtection value. - */ - public ElasticVolumeDataProtectionProperties dataProtection() { - return this.dataProtection; - } - - /** - * Set the dataProtection property: Data protection configuration option for the volume, including snapshot policies - * and backup. - * - * @param dataProtection the dataProtection value to set. - * @return the ElasticVolumeProperties object itself. - */ - public ElasticVolumeProperties withDataProtection(ElasticVolumeDataProtectionProperties dataProtection) { - this.dataProtection = dataProtection; - return this; - } - - /** - * Get the snapshotDirectoryVisibility property: Controls the visibility of the volume's read-only snapshot - * directory, which provides access to each of the volume's snapshots. - * - * @return the snapshotDirectoryVisibility value. - */ - public SnapshotDirectoryVisibility snapshotDirectoryVisibility() { - return this.snapshotDirectoryVisibility; - } - - /** - * Set the snapshotDirectoryVisibility property: Controls the visibility of the volume's read-only snapshot - * directory, which provides access to each of the volume's snapshots. - * - * @param snapshotDirectoryVisibility the snapshotDirectoryVisibility value to set. - * @return the ElasticVolumeProperties object itself. - */ - public ElasticVolumeProperties - withSnapshotDirectoryVisibility(SnapshotDirectoryVisibility snapshotDirectoryVisibility) { - this.snapshotDirectoryVisibility = snapshotDirectoryVisibility; - return this; - } - - /** - * Get the smbProperties property: SMB Properties. - * - * @return the smbProperties value. - */ - public ElasticSmbProperties smbProperties() { - return this.smbProperties; - } - - /** - * Set the smbProperties property: SMB Properties. - * - * @param smbProperties the smbProperties value to set. - * @return the ElasticVolumeProperties object itself. - */ - public ElasticVolumeProperties withSmbProperties(ElasticSmbProperties smbProperties) { - this.smbProperties = smbProperties; - return this; - } - - /** - * Get the backupResourceId property: Resource identifier used to identify the Elastic Backup. - * - * @return the backupResourceId value. - */ - public String backupResourceId() { - return this.backupResourceId; - } - - /** - * Set the backupResourceId property: Resource identifier used to identify the Elastic Backup. - * - * @param backupResourceId the backupResourceId value to set. - * @return the ElasticVolumeProperties object itself. - */ - public ElasticVolumeProperties withBackupResourceId(String backupResourceId) { - this.backupResourceId = backupResourceId; - return this; - } - - /** - * Get the restorationState property: The current state of the restoration process. - * - * @return the restorationState value. - */ - public ElasticVolumeRestorationState restorationState() { - return this.restorationState; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (filePath() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property filePath in model ElasticVolumeProperties")); - } - if (exportPolicy() != null) { - exportPolicy().validate(); - } - if (protocolTypes() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property protocolTypes in model ElasticVolumeProperties")); - } - if (mountTargets() != null) { - mountTargets().forEach(e -> e.validate()); - } - if (dataProtection() != null) { - dataProtection().validate(); - } - if (smbProperties() != null) { - smbProperties().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(ElasticVolumeProperties.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("filePath", this.filePath); - jsonWriter.writeLongField("size", this.size); - jsonWriter.writeArrayField("protocolTypes", this.protocolTypes, - (writer, element) -> writer.writeString(element == null ? null : element.toString())); - jsonWriter.writeJsonField("exportPolicy", this.exportPolicy); - jsonWriter.writeStringField("snapshotResourceId", this.snapshotResourceId); - jsonWriter.writeJsonField("dataProtection", this.dataProtection); - jsonWriter.writeStringField("snapshotDirectoryVisibility", - this.snapshotDirectoryVisibility == null ? null : this.snapshotDirectoryVisibility.toString()); - jsonWriter.writeJsonField("smbProperties", this.smbProperties); - jsonWriter.writeStringField("backupResourceId", this.backupResourceId); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticVolumeProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticVolumeProperties 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 ElasticVolumeProperties. - */ - public static ElasticVolumeProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticVolumeProperties deserializedElasticVolumeProperties = new ElasticVolumeProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("filePath".equals(fieldName)) { - deserializedElasticVolumeProperties.filePath = reader.getString(); - } else if ("size".equals(fieldName)) { - deserializedElasticVolumeProperties.size = reader.getLong(); - } else if ("protocolTypes".equals(fieldName)) { - List protocolTypes - = reader.readArray(reader1 -> ElasticProtocolType.fromString(reader1.getString())); - deserializedElasticVolumeProperties.protocolTypes = protocolTypes; - } else if ("exportPolicy".equals(fieldName)) { - deserializedElasticVolumeProperties.exportPolicy = ElasticExportPolicy.fromJson(reader); - } else if ("provisioningState".equals(fieldName)) { - deserializedElasticVolumeProperties.provisioningState - = ProvisioningState.fromString(reader.getString()); - } else if ("availabilityStatus".equals(fieldName)) { - deserializedElasticVolumeProperties.availabilityStatus - = ElasticResourceAvailabilityStatus.fromString(reader.getString()); - } else if ("snapshotResourceId".equals(fieldName)) { - deserializedElasticVolumeProperties.snapshotResourceId = reader.getString(); - } else if ("mountTargets".equals(fieldName)) { - List mountTargets - = reader.readArray(reader1 -> ElasticMountTargetProperties.fromJson(reader1)); - deserializedElasticVolumeProperties.mountTargets = mountTargets; - } else if ("dataProtection".equals(fieldName)) { - deserializedElasticVolumeProperties.dataProtection - = ElasticVolumeDataProtectionProperties.fromJson(reader); - } else if ("snapshotDirectoryVisibility".equals(fieldName)) { - deserializedElasticVolumeProperties.snapshotDirectoryVisibility - = SnapshotDirectoryVisibility.fromString(reader.getString()); - } else if ("smbProperties".equals(fieldName)) { - deserializedElasticVolumeProperties.smbProperties = ElasticSmbProperties.fromJson(reader); - } else if ("backupResourceId".equals(fieldName)) { - deserializedElasticVolumeProperties.backupResourceId = reader.getString(); - } else if ("restorationState".equals(fieldName)) { - deserializedElasticVolumeProperties.restorationState - = ElasticVolumeRestorationState.fromString(reader.getString()); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticVolumeProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeRestorationState.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeRestorationState.java deleted file mode 100644 index b6ff08208f5c6..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeRestorationState.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * The current state of the restoration process. - */ -public final class ElasticVolumeRestorationState extends ExpandableStringEnum { - /** - * Value indicating that the volume is currently restoring. - */ - public static final ElasticVolumeRestorationState RESTORING = fromString("Restoring"); - - /** - * Value indicating that the volume is restored. - */ - public static final ElasticVolumeRestorationState RESTORED = fromString("Restored"); - - /** - * Value indicating that the volume restore has failed. - */ - public static final ElasticVolumeRestorationState FAILED = fromString("Failed"); - - /** - * Creates a new instance of ElasticVolumeRestorationState value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public ElasticVolumeRestorationState() { - } - - /** - * Creates or finds a ElasticVolumeRestorationState from its string representation. - * - * @param name a name to look for. - * @return the corresponding ElasticVolumeRestorationState. - */ - public static ElasticVolumeRestorationState fromString(String name) { - return fromString(name, ElasticVolumeRestorationState.class); - } - - /** - * Gets known ElasticVolumeRestorationState values. - * - * @return known ElasticVolumeRestorationState values. - */ - public static Collection values() { - return values(ElasticVolumeRestorationState.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeRevert.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeRevert.java deleted file mode 100644 index 1f1ec4a9d78e6..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeRevert.java +++ /dev/null @@ -1,93 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.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; - -/** - * Reverts the elastic volume to the specified snapshot. - */ -@Fluent -public final class ElasticVolumeRevert implements JsonSerializable { - /* - * Resource identifier used to identify the Elastic Snapshot. - */ - private String snapshotResourceId; - - /** - * Creates an instance of ElasticVolumeRevert class. - */ - public ElasticVolumeRevert() { - } - - /** - * Get the snapshotResourceId property: Resource identifier used to identify the Elastic Snapshot. - * - * @return the snapshotResourceId value. - */ - public String snapshotResourceId() { - return this.snapshotResourceId; - } - - /** - * Set the snapshotResourceId property: Resource identifier used to identify the Elastic Snapshot. - * - * @param snapshotResourceId the snapshotResourceId value to set. - * @return the ElasticVolumeRevert object itself. - */ - public ElasticVolumeRevert withSnapshotResourceId(String snapshotResourceId) { - this.snapshotResourceId = snapshotResourceId; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("snapshotResourceId", this.snapshotResourceId); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticVolumeRevert from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticVolumeRevert 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 ElasticVolumeRevert. - */ - public static ElasticVolumeRevert fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticVolumeRevert deserializedElasticVolumeRevert = new ElasticVolumeRevert(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("snapshotResourceId".equals(fieldName)) { - deserializedElasticVolumeRevert.snapshotResourceId = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticVolumeRevert; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeSnapshotProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeSnapshotProperties.java deleted file mode 100644 index 204f7885a30ca..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeSnapshotProperties.java +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.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; - -/** - * Elastic Volume Snapshot Properties. - */ -@Fluent -public final class ElasticVolumeSnapshotProperties implements JsonSerializable { - /* - * Snapshot Policy ResourceId - */ - private String snapshotPolicyResourceId; - - /** - * Creates an instance of ElasticVolumeSnapshotProperties class. - */ - public ElasticVolumeSnapshotProperties() { - } - - /** - * Get the snapshotPolicyResourceId property: Snapshot Policy ResourceId. - * - * @return the snapshotPolicyResourceId value. - */ - public String snapshotPolicyResourceId() { - return this.snapshotPolicyResourceId; - } - - /** - * Set the snapshotPolicyResourceId property: Snapshot Policy ResourceId. - * - * @param snapshotPolicyResourceId the snapshotPolicyResourceId value to set. - * @return the ElasticVolumeSnapshotProperties object itself. - */ - public ElasticVolumeSnapshotProperties withSnapshotPolicyResourceId(String snapshotPolicyResourceId) { - this.snapshotPolicyResourceId = snapshotPolicyResourceId; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("snapshotPolicyResourceId", this.snapshotPolicyResourceId); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticVolumeSnapshotProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticVolumeSnapshotProperties 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 ElasticVolumeSnapshotProperties. - */ - public static ElasticVolumeSnapshotProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticVolumeSnapshotProperties deserializedElasticVolumeSnapshotProperties - = new ElasticVolumeSnapshotProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("snapshotPolicyResourceId".equals(fieldName)) { - deserializedElasticVolumeSnapshotProperties.snapshotPolicyResourceId = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticVolumeSnapshotProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeUpdate.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeUpdate.java deleted file mode 100644 index 047910d442013..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeUpdate.java +++ /dev/null @@ -1,126 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.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; - -/** - * The type used for update operations of the ElasticVolume. - */ -@Fluent -public final class ElasticVolumeUpdate implements JsonSerializable { - /* - * Resource tags. - */ - private Map tags; - - /* - * The resource-specific properties for this resource. - */ - private ElasticVolumeUpdateProperties properties; - - /** - * Creates an instance of ElasticVolumeUpdate class. - */ - public ElasticVolumeUpdate() { - } - - /** - * Get the tags property: Resource tags. - * - * @return the tags value. - */ - public Map tags() { - return this.tags; - } - - /** - * Set the tags property: Resource tags. - * - * @param tags the tags value to set. - * @return the ElasticVolumeUpdate object itself. - */ - public ElasticVolumeUpdate withTags(Map tags) { - this.tags = tags; - return this; - } - - /** - * Get the properties property: The resource-specific properties for this resource. - * - * @return the properties value. - */ - public ElasticVolumeUpdateProperties properties() { - return this.properties; - } - - /** - * Set the properties property: The resource-specific properties for this resource. - * - * @param properties the properties value to set. - * @return the ElasticVolumeUpdate object itself. - */ - public ElasticVolumeUpdate withProperties(ElasticVolumeUpdateProperties properties) { - this.properties = properties; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (properties() != null) { - properties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - 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(); - } - - /** - * Reads an instance of ElasticVolumeUpdate from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticVolumeUpdate 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 ElasticVolumeUpdate. - */ - public static ElasticVolumeUpdate fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticVolumeUpdate deserializedElasticVolumeUpdate = new ElasticVolumeUpdate(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("tags".equals(fieldName)) { - Map tags = reader.readMap(reader1 -> reader1.getString()); - deserializedElasticVolumeUpdate.tags = tags; - } else if ("properties".equals(fieldName)) { - deserializedElasticVolumeUpdate.properties = ElasticVolumeUpdateProperties.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticVolumeUpdate; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeUpdateProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeUpdateProperties.java deleted file mode 100644 index 49adf76f4df00..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeUpdateProperties.java +++ /dev/null @@ -1,228 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.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; - -/** - * The updatable properties of the ElasticVolume. - */ -@Fluent -public final class ElasticVolumeUpdateProperties implements JsonSerializable { - /* - * Maximum size allowed for a volume in bytes. Valid values are in the range 1GiB to 16TiB. Values expressed in - * bytes as multiples of 1 GiB. - */ - private Long size; - - /* - * Set of export policy rules - */ - private ElasticExportPolicy exportPolicy; - - /* - * Data protection configuration option for the volume, including snapshot policies and backup. - */ - private ElasticVolumeDataProtectionPatchProperties dataProtection; - - /* - * Controls the visibility of the volume's read-only snapshot directory, which provides access to each of the - * volume's snapshots. - */ - private SnapshotDirectoryVisibility snapshotDirectoryVisibility; - - /* - * SMB Properties - */ - private ElasticSmbPatchProperties smbProperties; - - /** - * Creates an instance of ElasticVolumeUpdateProperties class. - */ - public ElasticVolumeUpdateProperties() { - } - - /** - * Get the size property: Maximum size allowed for a volume in bytes. Valid values are in the range 1GiB to 16TiB. - * Values expressed in bytes as multiples of 1 GiB. - * - * @return the size value. - */ - public Long size() { - return this.size; - } - - /** - * Set the size property: Maximum size allowed for a volume in bytes. Valid values are in the range 1GiB to 16TiB. - * Values expressed in bytes as multiples of 1 GiB. - * - * @param size the size value to set. - * @return the ElasticVolumeUpdateProperties object itself. - */ - public ElasticVolumeUpdateProperties withSize(Long size) { - this.size = size; - return this; - } - - /** - * Get the exportPolicy property: Set of export policy rules. - * - * @return the exportPolicy value. - */ - public ElasticExportPolicy exportPolicy() { - return this.exportPolicy; - } - - /** - * Set the exportPolicy property: Set of export policy rules. - * - * @param exportPolicy the exportPolicy value to set. - * @return the ElasticVolumeUpdateProperties object itself. - */ - public ElasticVolumeUpdateProperties withExportPolicy(ElasticExportPolicy exportPolicy) { - this.exportPolicy = exportPolicy; - return this; - } - - /** - * Get the dataProtection property: Data protection configuration option for the volume, including snapshot policies - * and backup. - * - * @return the dataProtection value. - */ - public ElasticVolumeDataProtectionPatchProperties dataProtection() { - return this.dataProtection; - } - - /** - * Set the dataProtection property: Data protection configuration option for the volume, including snapshot policies - * and backup. - * - * @param dataProtection the dataProtection value to set. - * @return the ElasticVolumeUpdateProperties object itself. - */ - public ElasticVolumeUpdateProperties withDataProtection(ElasticVolumeDataProtectionPatchProperties dataProtection) { - this.dataProtection = dataProtection; - return this; - } - - /** - * Get the snapshotDirectoryVisibility property: Controls the visibility of the volume's read-only snapshot - * directory, which provides access to each of the volume's snapshots. - * - * @return the snapshotDirectoryVisibility value. - */ - public SnapshotDirectoryVisibility snapshotDirectoryVisibility() { - return this.snapshotDirectoryVisibility; - } - - /** - * Set the snapshotDirectoryVisibility property: Controls the visibility of the volume's read-only snapshot - * directory, which provides access to each of the volume's snapshots. - * - * @param snapshotDirectoryVisibility the snapshotDirectoryVisibility value to set. - * @return the ElasticVolumeUpdateProperties object itself. - */ - public ElasticVolumeUpdateProperties - withSnapshotDirectoryVisibility(SnapshotDirectoryVisibility snapshotDirectoryVisibility) { - this.snapshotDirectoryVisibility = snapshotDirectoryVisibility; - return this; - } - - /** - * Get the smbProperties property: SMB Properties. - * - * @return the smbProperties value. - */ - public ElasticSmbPatchProperties smbProperties() { - return this.smbProperties; - } - - /** - * Set the smbProperties property: SMB Properties. - * - * @param smbProperties the smbProperties value to set. - * @return the ElasticVolumeUpdateProperties object itself. - */ - public ElasticVolumeUpdateProperties withSmbProperties(ElasticSmbPatchProperties smbProperties) { - this.smbProperties = smbProperties; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (exportPolicy() != null) { - exportPolicy().validate(); - } - if (dataProtection() != null) { - dataProtection().validate(); - } - if (smbProperties() != null) { - smbProperties().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeNumberField("size", this.size); - jsonWriter.writeJsonField("exportPolicy", this.exportPolicy); - jsonWriter.writeJsonField("dataProtection", this.dataProtection); - jsonWriter.writeStringField("snapshotDirectoryVisibility", - this.snapshotDirectoryVisibility == null ? null : this.snapshotDirectoryVisibility.toString()); - jsonWriter.writeJsonField("smbProperties", this.smbProperties); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of ElasticVolumeUpdateProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of ElasticVolumeUpdateProperties 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 ElasticVolumeUpdateProperties. - */ - public static ElasticVolumeUpdateProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - ElasticVolumeUpdateProperties deserializedElasticVolumeUpdateProperties - = new ElasticVolumeUpdateProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("size".equals(fieldName)) { - deserializedElasticVolumeUpdateProperties.size = reader.getNullable(JsonReader::getLong); - } else if ("exportPolicy".equals(fieldName)) { - deserializedElasticVolumeUpdateProperties.exportPolicy = ElasticExportPolicy.fromJson(reader); - } else if ("dataProtection".equals(fieldName)) { - deserializedElasticVolumeUpdateProperties.dataProtection - = ElasticVolumeDataProtectionPatchProperties.fromJson(reader); - } else if ("snapshotDirectoryVisibility".equals(fieldName)) { - deserializedElasticVolumeUpdateProperties.snapshotDirectoryVisibility - = SnapshotDirectoryVisibility.fromString(reader.getString()); - } else if ("smbProperties".equals(fieldName)) { - deserializedElasticVolumeUpdateProperties.smbProperties - = ElasticSmbPatchProperties.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedElasticVolumeUpdateProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumes.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumes.java deleted file mode 100644 index 4d419b26fff65..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumes.java +++ /dev/null @@ -1,184 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.http.rest.Response; -import com.azure.core.util.Context; - -/** - * Resource collection API of ElasticVolumes. - */ -public interface ElasticVolumes { - /** - * Get the details of the specified volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @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 details of the specified volume along with {@link Response}. - */ - Response getWithResponse(String resourceGroupName, String accountName, String poolName, - String volumeName, Context context); - - /** - * Get the details of the specified volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @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 details of the specified volume. - */ - ElasticVolume get(String resourceGroupName, String accountName, String poolName, String volumeName); - - /** - * Delete the specified Elastic Volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @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 delete(String resourceGroupName, String accountName, String poolName, String volumeName); - - /** - * Delete the specified Elastic Volume. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @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 delete(String resourceGroupName, String accountName, String poolName, String volumeName, Context context); - - /** - * List all Elastic Volumes within the Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ElasticVolume list operation as paginated response with {@link PagedIterable}. - */ - PagedIterable listByElasticPool(String resourceGroupName, String accountName, String poolName); - - /** - * List all Elastic Volumes within the Elastic Capacity Pool. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response of a ElasticVolume list operation as paginated response with {@link PagedIterable}. - */ - PagedIterable listByElasticPool(String resourceGroupName, String accountName, String poolName, - Context context); - - /** - * Revert an Elastic Volume to the snapshot specified in the body. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body The content of the action request. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Volume resource. - */ - ElasticVolume revert(String resourceGroupName, String accountName, String poolName, String volumeName, - ElasticVolumeRevert body); - - /** - * Revert an Elastic Volume to the snapshot specified in the body. - * - * @param resourceGroupName The name of the resource group. The name is case insensitive. - * @param accountName The name of the ElasticAccount. - * @param poolName The name of the ElasticCapacityPool. - * @param volumeName The name of the ElasticVolume. - * @param body The content of the action request. - * @param context The context to associate with this operation. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return netApp Elastic Volume resource. - */ - ElasticVolume revert(String resourceGroupName, String accountName, String poolName, String volumeName, - ElasticVolumeRevert body, Context context); - - /** - * Get the details of the specified volume. - * - * @param id the resource ID. - * @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 details of the specified volume along with {@link Response}. - */ - ElasticVolume getById(String id); - - /** - * Get the details of the specified volume. - * - * @param id the resource ID. - * @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 details of the specified volume along with {@link Response}. - */ - Response getByIdWithResponse(String id, Context context); - - /** - * Delete the specified Elastic Volume. - * - * @param id the resource ID. - * @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 deleteById(String id); - - /** - * Delete the specified Elastic Volume. - * - * @param id the resource ID. - * @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 deleteByIdWithResponse(String id, Context context); - - /** - * Begins definition for a new ElasticVolume resource. - * - * @param name resource name. - * @return the first stage of the new ElasticVolume definition. - */ - ElasticVolume.DefinitionStages.Blank define(String name); -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticEncryptionIdentity.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EncryptionIdentityPatch.java similarity index 64% rename from sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticEncryptionIdentity.java rename to sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EncryptionIdentityPatch.java index f351a7dc8d798..5c3467c6d0e81 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticEncryptionIdentity.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EncryptionIdentityPatch.java @@ -12,15 +12,10 @@ import java.io.IOException; /** - * Identity used to authenticate with key vault. + * Identity used to authenticate with key vault for PATCH operations. */ @Fluent -public final class ElasticEncryptionIdentity implements JsonSerializable { - /* - * The principal ID (object ID) of the identity used to authenticate with key vault. Read-only. - */ - private String principalId; - +public final class EncryptionIdentityPatch implements JsonSerializable { /* * The ARM resource identifier of the user assigned identity used to authenticate with key vault. Applicable if * identity.type has 'UserAssigned'. It should match key of identity.userAssignedIdentities. @@ -33,19 +28,9 @@ public final class ElasticEncryptionIdentity implements JsonSerializable { - ElasticEncryptionIdentity deserializedElasticEncryptionIdentity = new ElasticEncryptionIdentity(); + EncryptionIdentityPatch deserializedEncryptionIdentityPatch = new EncryptionIdentityPatch(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); - if ("principalId".equals(fieldName)) { - deserializedElasticEncryptionIdentity.principalId = reader.getString(); - } else if ("userAssignedIdentity".equals(fieldName)) { - deserializedElasticEncryptionIdentity.userAssignedIdentity = reader.getString(); + if ("userAssignedIdentity".equals(fieldName)) { + deserializedEncryptionIdentityPatch.userAssignedIdentity = reader.getString(); } else if ("federatedClientId".equals(fieldName)) { - deserializedElasticEncryptionIdentity.federatedClientId = reader.getString(); + deserializedEncryptionIdentityPatch.federatedClientId = reader.getString(); } else { reader.skipChildren(); } } - return deserializedElasticEncryptionIdentity; + return deserializedEncryptionIdentityPatch; }); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EntraIdAkvConfig.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EntraIdAkvConfig.java deleted file mode 100644 index 3c165fdacb654..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EntraIdAkvConfig.java +++ /dev/null @@ -1,167 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Using AKV config, certificate will be fetched, which will contain private key & public certificate, that - * correspond to the public certificate which is uploaded on the application created by customer. This will be used - * further for authentication. - */ -@Fluent -public final class EntraIdAkvConfig implements JsonSerializable { - /* - * The Azure Key Vault URI where the Entra ID credentials are stored. - */ - private String azureKeyVaultUri; - - /* - * The name of the certificate in Azure Key Vault. - */ - private String certificateName; - - /* - * The ARM resource identifier of the user assigned identity used to authenticate with key vault. - */ - private String userAssignedIdentity; - - /** - * Creates an instance of EntraIdAkvConfig class. - */ - public EntraIdAkvConfig() { - } - - /** - * Get the azureKeyVaultUri property: The Azure Key Vault URI where the Entra ID credentials are stored. - * - * @return the azureKeyVaultUri value. - */ - public String azureKeyVaultUri() { - return this.azureKeyVaultUri; - } - - /** - * Set the azureKeyVaultUri property: The Azure Key Vault URI where the Entra ID credentials are stored. - * - * @param azureKeyVaultUri the azureKeyVaultUri value to set. - * @return the EntraIdAkvConfig object itself. - */ - public EntraIdAkvConfig withAzureKeyVaultUri(String azureKeyVaultUri) { - this.azureKeyVaultUri = azureKeyVaultUri; - return this; - } - - /** - * Get the certificateName property: The name of the certificate in Azure Key Vault. - * - * @return the certificateName value. - */ - public String certificateName() { - return this.certificateName; - } - - /** - * Set the certificateName property: The name of the certificate in Azure Key Vault. - * - * @param certificateName the certificateName value to set. - * @return the EntraIdAkvConfig object itself. - */ - public EntraIdAkvConfig withCertificateName(String certificateName) { - this.certificateName = certificateName; - return this; - } - - /** - * Get the userAssignedIdentity property: The ARM resource identifier of the user assigned identity used to - * authenticate with key vault. - * - * @return the userAssignedIdentity value. - */ - public String userAssignedIdentity() { - return this.userAssignedIdentity; - } - - /** - * Set the userAssignedIdentity property: The ARM resource identifier of the user assigned identity used to - * authenticate with key vault. - * - * @param userAssignedIdentity the userAssignedIdentity value to set. - * @return the EntraIdAkvConfig object itself. - */ - public EntraIdAkvConfig withUserAssignedIdentity(String userAssignedIdentity) { - this.userAssignedIdentity = userAssignedIdentity; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (azureKeyVaultUri() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property azureKeyVaultUri in model EntraIdAkvConfig")); - } - if (certificateName() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property certificateName in model EntraIdAkvConfig")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(EntraIdAkvConfig.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("azureKeyVaultUri", this.azureKeyVaultUri); - jsonWriter.writeStringField("certificateName", this.certificateName); - jsonWriter.writeStringField("userAssignedIdentity", this.userAssignedIdentity); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of EntraIdAkvConfig from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of EntraIdAkvConfig 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 EntraIdAkvConfig. - */ - public static EntraIdAkvConfig fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - EntraIdAkvConfig deserializedEntraIdAkvConfig = new EntraIdAkvConfig(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("azureKeyVaultUri".equals(fieldName)) { - deserializedEntraIdAkvConfig.azureKeyVaultUri = reader.getString(); - } else if ("certificateName".equals(fieldName)) { - deserializedEntraIdAkvConfig.certificateName = reader.getString(); - } else if ("userAssignedIdentity".equals(fieldName)) { - deserializedEntraIdAkvConfig.userAssignedIdentity = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedEntraIdAkvConfig; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EntraIdAkvConfigPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EntraIdAkvConfigPatch.java deleted file mode 100644 index 2689c7d165b90..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EntraIdAkvConfigPatch.java +++ /dev/null @@ -1,151 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.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; - -/** - * Entra ID Patch configuration for the account. - */ -@Fluent -public final class EntraIdAkvConfigPatch implements JsonSerializable { - /* - * The Azure Key Vault URI where the Entra ID credentials are stored. - */ - private String azureKeyVaultUri; - - /* - * The name of the certificate in Azure Key Vault. - */ - private String certificateName; - - /* - * The ARM resource identifier of the user assigned identity used to authenticate with key vault. - */ - private String userAssignedIdentity; - - /** - * Creates an instance of EntraIdAkvConfigPatch class. - */ - public EntraIdAkvConfigPatch() { - } - - /** - * Get the azureKeyVaultUri property: The Azure Key Vault URI where the Entra ID credentials are stored. - * - * @return the azureKeyVaultUri value. - */ - public String azureKeyVaultUri() { - return this.azureKeyVaultUri; - } - - /** - * Set the azureKeyVaultUri property: The Azure Key Vault URI where the Entra ID credentials are stored. - * - * @param azureKeyVaultUri the azureKeyVaultUri value to set. - * @return the EntraIdAkvConfigPatch object itself. - */ - public EntraIdAkvConfigPatch withAzureKeyVaultUri(String azureKeyVaultUri) { - this.azureKeyVaultUri = azureKeyVaultUri; - return this; - } - - /** - * Get the certificateName property: The name of the certificate in Azure Key Vault. - * - * @return the certificateName value. - */ - public String certificateName() { - return this.certificateName; - } - - /** - * Set the certificateName property: The name of the certificate in Azure Key Vault. - * - * @param certificateName the certificateName value to set. - * @return the EntraIdAkvConfigPatch object itself. - */ - public EntraIdAkvConfigPatch withCertificateName(String certificateName) { - this.certificateName = certificateName; - return this; - } - - /** - * Get the userAssignedIdentity property: The ARM resource identifier of the user assigned identity used to - * authenticate with key vault. - * - * @return the userAssignedIdentity value. - */ - public String userAssignedIdentity() { - return this.userAssignedIdentity; - } - - /** - * Set the userAssignedIdentity property: The ARM resource identifier of the user assigned identity used to - * authenticate with key vault. - * - * @param userAssignedIdentity the userAssignedIdentity value to set. - * @return the EntraIdAkvConfigPatch object itself. - */ - public EntraIdAkvConfigPatch withUserAssignedIdentity(String userAssignedIdentity) { - this.userAssignedIdentity = userAssignedIdentity; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("azureKeyVaultUri", this.azureKeyVaultUri); - jsonWriter.writeStringField("certificateName", this.certificateName); - jsonWriter.writeStringField("userAssignedIdentity", this.userAssignedIdentity); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of EntraIdAkvConfigPatch from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of EntraIdAkvConfigPatch 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 EntraIdAkvConfigPatch. - */ - public static EntraIdAkvConfigPatch fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - EntraIdAkvConfigPatch deserializedEntraIdAkvConfigPatch = new EntraIdAkvConfigPatch(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("azureKeyVaultUri".equals(fieldName)) { - deserializedEntraIdAkvConfigPatch.azureKeyVaultUri = reader.getString(); - } else if ("certificateName".equals(fieldName)) { - deserializedEntraIdAkvConfigPatch.certificateName = reader.getString(); - } else if ("userAssignedIdentity".equals(fieldName)) { - deserializedEntraIdAkvConfigPatch.userAssignedIdentity = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedEntraIdAkvConfigPatch; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EntraIdConfig.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EntraIdConfig.java deleted file mode 100644 index 71777b63ff486..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EntraIdConfig.java +++ /dev/null @@ -1,208 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Entra ID configuration for the account. - */ -@Fluent -public final class EntraIdConfig implements JsonSerializable { - /* - * ApplicationId of the app created by customer to provide authentication and required API permissions for Microsoft - * Graph endpoint. - */ - private String applicationId; - - /* - * Domain of the Active directory synced to Entra ID for hybrid identities. - */ - private String domain; - - /* - * Using ServerNamePrefix, FQDN (Fully Qualified Domain Name) will be generated for SMB share, using this FQDN, SMB - * Share will be mounted on Entra Joined VM. - */ - private String serverNamePrefix; - - /* - * Using AKV config, certificate will be fetched, which will contain private key & public certificate, that - * correspond to the public certificate which is uploaded on the application created by customer. This will be used - * further for authentication. - */ - private EntraIdAkvConfig entraIdAkvConfig; - - /** - * Creates an instance of EntraIdConfig class. - */ - public EntraIdConfig() { - } - - /** - * Get the applicationId property: ApplicationId of the app created by customer to provide authentication and - * required API permissions for Microsoft Graph endpoint. - * - * @return the applicationId value. - */ - public String applicationId() { - return this.applicationId; - } - - /** - * Set the applicationId property: ApplicationId of the app created by customer to provide authentication and - * required API permissions for Microsoft Graph endpoint. - * - * @param applicationId the applicationId value to set. - * @return the EntraIdConfig object itself. - */ - public EntraIdConfig withApplicationId(String applicationId) { - this.applicationId = applicationId; - return this; - } - - /** - * Get the domain property: Domain of the Active directory synced to Entra ID for hybrid identities. - * - * @return the domain value. - */ - public String domain() { - return this.domain; - } - - /** - * Set the domain property: Domain of the Active directory synced to Entra ID for hybrid identities. - * - * @param domain the domain value to set. - * @return the EntraIdConfig object itself. - */ - public EntraIdConfig withDomain(String domain) { - this.domain = domain; - return this; - } - - /** - * Get the serverNamePrefix property: Using ServerNamePrefix, FQDN (Fully Qualified Domain Name) will be generated - * for SMB share, using this FQDN, SMB Share will be mounted on Entra Joined VM. - * - * @return the serverNamePrefix value. - */ - public String serverNamePrefix() { - return this.serverNamePrefix; - } - - /** - * Set the serverNamePrefix property: Using ServerNamePrefix, FQDN (Fully Qualified Domain Name) will be generated - * for SMB share, using this FQDN, SMB Share will be mounted on Entra Joined VM. - * - * @param serverNamePrefix the serverNamePrefix value to set. - * @return the EntraIdConfig object itself. - */ - public EntraIdConfig withServerNamePrefix(String serverNamePrefix) { - this.serverNamePrefix = serverNamePrefix; - return this; - } - - /** - * Get the entraIdAkvConfig property: Using AKV config, certificate will be fetched, which will contain private key - * & public certificate, that correspond to the public certificate which is uploaded on the application created - * by customer. This will be used further for authentication. - * - * @return the entraIdAkvConfig value. - */ - public EntraIdAkvConfig entraIdAkvConfig() { - return this.entraIdAkvConfig; - } - - /** - * Set the entraIdAkvConfig property: Using AKV config, certificate will be fetched, which will contain private key - * & public certificate, that correspond to the public certificate which is uploaded on the application created - * by customer. This will be used further for authentication. - * - * @param entraIdAkvConfig the entraIdAkvConfig value to set. - * @return the EntraIdConfig object itself. - */ - public EntraIdConfig withEntraIdAkvConfig(EntraIdAkvConfig entraIdAkvConfig) { - this.entraIdAkvConfig = entraIdAkvConfig; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (applicationId() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property applicationId in model EntraIdConfig")); - } - if (domain() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property domain in model EntraIdConfig")); - } - if (serverNamePrefix() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException("Missing required property serverNamePrefix in model EntraIdConfig")); - } - if (entraIdAkvConfig() != null) { - entraIdAkvConfig().validate(); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(EntraIdConfig.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("applicationId", this.applicationId); - jsonWriter.writeStringField("domain", this.domain); - jsonWriter.writeStringField("serverNamePrefix", this.serverNamePrefix); - jsonWriter.writeJsonField("entraIdAkvConfig", this.entraIdAkvConfig); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of EntraIdConfig from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of EntraIdConfig 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 EntraIdConfig. - */ - public static EntraIdConfig fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - EntraIdConfig deserializedEntraIdConfig = new EntraIdConfig(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("applicationId".equals(fieldName)) { - deserializedEntraIdConfig.applicationId = reader.getString(); - } else if ("domain".equals(fieldName)) { - deserializedEntraIdConfig.domain = reader.getString(); - } else if ("serverNamePrefix".equals(fieldName)) { - deserializedEntraIdConfig.serverNamePrefix = reader.getString(); - } else if ("entraIdAkvConfig".equals(fieldName)) { - deserializedEntraIdConfig.entraIdAkvConfig = EntraIdAkvConfig.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedEntraIdConfig; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EntraIdConfigPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EntraIdConfigPatch.java deleted file mode 100644 index 675657764f7d4..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/EntraIdConfigPatch.java +++ /dev/null @@ -1,192 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.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; - -/** - * Entra ID Patch configuration for the account. - */ -@Fluent -public final class EntraIdConfigPatch implements JsonSerializable { - /* - * ApplicationId of the app created by customer to provide authentication and required API permissions for Microsoft - * Graph endpoint. - */ - private String applicationId; - - /* - * Domain of the Active directory synced to Entra ID for hybrid identities. - */ - private String domain; - - /* - * Using ServerNamePrefix, FQDN (Fully Qualified Domain Name) will be generated for SMB share, using this FQDN, SMB - * Share will be mounted on Entra Joined VM. - */ - private String serverNamePrefix; - - /* - * Using AKV config, certificate will be fetched, which will contain private key & public certificate, that - * correspond to the public certificate which is uploaded on the application created by customer. This will be used - * further for authentication. - */ - private EntraIdAkvConfigPatch entraIdAkvConfig; - - /** - * Creates an instance of EntraIdConfigPatch class. - */ - public EntraIdConfigPatch() { - } - - /** - * Get the applicationId property: ApplicationId of the app created by customer to provide authentication and - * required API permissions for Microsoft Graph endpoint. - * - * @return the applicationId value. - */ - public String applicationId() { - return this.applicationId; - } - - /** - * Set the applicationId property: ApplicationId of the app created by customer to provide authentication and - * required API permissions for Microsoft Graph endpoint. - * - * @param applicationId the applicationId value to set. - * @return the EntraIdConfigPatch object itself. - */ - public EntraIdConfigPatch withApplicationId(String applicationId) { - this.applicationId = applicationId; - return this; - } - - /** - * Get the domain property: Domain of the Active directory synced to Entra ID for hybrid identities. - * - * @return the domain value. - */ - public String domain() { - return this.domain; - } - - /** - * Set the domain property: Domain of the Active directory synced to Entra ID for hybrid identities. - * - * @param domain the domain value to set. - * @return the EntraIdConfigPatch object itself. - */ - public EntraIdConfigPatch withDomain(String domain) { - this.domain = domain; - return this; - } - - /** - * Get the serverNamePrefix property: Using ServerNamePrefix, FQDN (Fully Qualified Domain Name) will be generated - * for SMB share, using this FQDN, SMB Share will be mounted on Entra Joined VM. - * - * @return the serverNamePrefix value. - */ - public String serverNamePrefix() { - return this.serverNamePrefix; - } - - /** - * Set the serverNamePrefix property: Using ServerNamePrefix, FQDN (Fully Qualified Domain Name) will be generated - * for SMB share, using this FQDN, SMB Share will be mounted on Entra Joined VM. - * - * @param serverNamePrefix the serverNamePrefix value to set. - * @return the EntraIdConfigPatch object itself. - */ - public EntraIdConfigPatch withServerNamePrefix(String serverNamePrefix) { - this.serverNamePrefix = serverNamePrefix; - return this; - } - - /** - * Get the entraIdAkvConfig property: Using AKV config, certificate will be fetched, which will contain private key - * & public certificate, that correspond to the public certificate which is uploaded on the application created - * by customer. This will be used further for authentication. - * - * @return the entraIdAkvConfig value. - */ - public EntraIdAkvConfigPatch entraIdAkvConfig() { - return this.entraIdAkvConfig; - } - - /** - * Set the entraIdAkvConfig property: Using AKV config, certificate will be fetched, which will contain private key - * & public certificate, that correspond to the public certificate which is uploaded on the application created - * by customer. This will be used further for authentication. - * - * @param entraIdAkvConfig the entraIdAkvConfig value to set. - * @return the EntraIdConfigPatch object itself. - */ - public EntraIdConfigPatch withEntraIdAkvConfig(EntraIdAkvConfigPatch entraIdAkvConfig) { - this.entraIdAkvConfig = entraIdAkvConfig; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (entraIdAkvConfig() != null) { - entraIdAkvConfig().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("applicationId", this.applicationId); - jsonWriter.writeStringField("domain", this.domain); - jsonWriter.writeStringField("serverNamePrefix", this.serverNamePrefix); - jsonWriter.writeJsonField("entraIdAkvConfig", this.entraIdAkvConfig); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of EntraIdConfigPatch from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of EntraIdConfigPatch 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 EntraIdConfigPatch. - */ - public static EntraIdConfigPatch fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - EntraIdConfigPatch deserializedEntraIdConfigPatch = new EntraIdConfigPatch(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("applicationId".equals(fieldName)) { - deserializedEntraIdConfigPatch.applicationId = reader.getString(); - } else if ("domain".equals(fieldName)) { - deserializedEntraIdConfigPatch.domain = reader.getString(); - } else if ("serverNamePrefix".equals(fieldName)) { - deserializedEntraIdConfigPatch.serverNamePrefix = reader.getString(); - } else if ("entraIdAkvConfig".equals(fieldName)) { - deserializedEntraIdConfigPatch.entraIdAkvConfig = EntraIdAkvConfigPatch.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedEntraIdConfigPatch; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticKeyVaultProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultPropertiesPatch.java similarity index 62% rename from sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticKeyVaultProperties.java rename to sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultPropertiesPatch.java index e0b7f1ab7fcff..3284d6b1d554f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ElasticKeyVaultProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultPropertiesPatch.java @@ -12,10 +12,10 @@ import java.io.IOException; /** - * Properties of key vault. + * Properties of key vault for PATCH operations (no required properties). */ @Fluent -public final class ElasticKeyVaultProperties implements JsonSerializable { +public final class KeyVaultPropertiesPatch implements JsonSerializable { /* * The Uri of KeyVault. */ @@ -31,15 +31,10 @@ public final class ElasticKeyVaultProperties implements JsonSerializable { - ElasticKeyVaultProperties deserializedElasticKeyVaultProperties = new ElasticKeyVaultProperties(); + KeyVaultPropertiesPatch deserializedKeyVaultPropertiesPatch = new KeyVaultPropertiesPatch(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); if ("keyVaultUri".equals(fieldName)) { - deserializedElasticKeyVaultProperties.keyVaultUri = reader.getString(); + deserializedKeyVaultPropertiesPatch.keyVaultUri = reader.getString(); } else if ("keyName".equals(fieldName)) { - deserializedElasticKeyVaultProperties.keyName = reader.getString(); + deserializedKeyVaultPropertiesPatch.keyName = reader.getString(); } else if ("keyVaultResourceId".equals(fieldName)) { - deserializedElasticKeyVaultProperties.keyVaultResourceId = reader.getString(); - } else if ("status".equals(fieldName)) { - deserializedElasticKeyVaultProperties.status = ElasticKeyVaultStatus.fromString(reader.getString()); + deserializedKeyVaultPropertiesPatch.keyVaultResourceId = reader.getString(); } else { reader.skipChildren(); } } - return deserializedElasticKeyVaultProperties; + return deserializedKeyVaultPropertiesPatch; }); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LargeVolumeType.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LargeVolumeType.java deleted file mode 100644 index 7f151ae470b75..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/LargeVolumeType.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Specifies the type of the Large Volume. When set to 'LargeVolume', the large volume is created with standard - * configuration. - * If it is set to 'ExtraLargeVolume7Dot2PiB', the extra large volume is created with higher capacity limit 7.2PiB with - * cool access enabled, - * delivering higher capacity limit with lower costs. - */ -public final class LargeVolumeType extends ExpandableStringEnum { - /** - * The large volume is created with standard configuration that provides standard performance and throughput. - */ - public static final LargeVolumeType LARGE_VOLUME = fromString("LargeVolume"); - - /** - * The extra large volume is created with higher volume capacity limit 7.2PiB with cool access enabled, delivering - * higher capacity limit with lower costs. - */ - public static final LargeVolumeType EXTRA_LARGE_VOLUME7DOT2PIB = fromString("PremExtraLargeVolume7Dot2PiB"); - - /** - * Creates a new instance of LargeVolumeType value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public LargeVolumeType() { - } - - /** - * Creates or finds a LargeVolumeType from its string representation. - * - * @param name a name to look for. - * @return the corresponding LargeVolumeType. - */ - public static LargeVolumeType fromString(String name) { - return fromString(name, LargeVolumeType.class); - } - - /** - * Gets known LargeVolumeType values. - * - * @return known LargeVolumeType values. - */ - public static Collection values() { - return values(LargeVolumeType.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccount.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccount.java index f409eec124299..ba1b8b5356059 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccount.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccount.java @@ -88,13 +88,6 @@ public interface NetAppAccount { */ List activeDirectories(); - /** - * Gets the entraIdConfig property: Entra ID configuration for the account. - * - * @return the entraIdConfig value. - */ - EntraIdConfig entraIdConfig(); - /** * Gets the encryption property: Encryption settings. * @@ -216,8 +209,8 @@ interface WithResourceGroup { * to be created, but also allows for any other optional properties to be specified. */ interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithIdentity, - DefinitionStages.WithActiveDirectories, DefinitionStages.WithEntraIdConfig, DefinitionStages.WithEncryption, - DefinitionStages.WithNfsV4IdDomain, DefinitionStages.WithLdapConfiguration { + DefinitionStages.WithActiveDirectories, DefinitionStages.WithEncryption, DefinitionStages.WithNfsV4IdDomain, + DefinitionStages.WithLdapConfiguration { /** * Executes the create request. * @@ -273,19 +266,6 @@ interface WithActiveDirectories { WithCreate withActiveDirectories(List activeDirectories); } - /** - * The stage of the NetAppAccount definition allowing to specify entraIdConfig. - */ - interface WithEntraIdConfig { - /** - * Specifies the entraIdConfig property: Entra ID configuration for the account.. - * - * @param entraIdConfig Entra ID configuration for the account. - * @return the next definition stage. - */ - WithCreate withEntraIdConfig(EntraIdConfig entraIdConfig); - } - /** * The stage of the NetAppAccount definition allowing to specify encryption. */ @@ -339,8 +319,7 @@ interface WithLdapConfiguration { * The template for NetAppAccount update. */ interface Update extends UpdateStages.WithTags, UpdateStages.WithIdentity, UpdateStages.WithActiveDirectories, - UpdateStages.WithEncryption, UpdateStages.WithNfsV4IdDomain, UpdateStages.WithEntraIdConfig, - UpdateStages.WithLdapConfiguration { + UpdateStages.WithEncryption, UpdateStages.WithNfsV4IdDomain, UpdateStages.WithLdapConfiguration { /** * Executes the update request. * @@ -410,7 +389,7 @@ interface WithEncryption { * @param encryption Encryption settings. * @return the next definition stage. */ - Update withEncryption(AccountEncryption encryption); + Update withEncryption(AccountEncryptionPatch encryption); } /** @@ -428,19 +407,6 @@ interface WithNfsV4IdDomain { Update withNfsV4IdDomain(String nfsV4IdDomain); } - /** - * The stage of the NetAppAccount update allowing to specify entraIdConfig. - */ - interface WithEntraIdConfig { - /** - * Specifies the entraIdConfig property: Entra ID configuration for the account.. - * - * @param entraIdConfig Entra ID configuration for the account. - * @return the next definition stage. - */ - Update withEntraIdConfig(EntraIdConfigPatch entraIdConfig); - } - /** * The stage of the NetAppAccount update allowing to specify ldapConfiguration. */ diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountPatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountPatch.java index 1e6523ddda74d..e7b63fa6ca9ee 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountPatch.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountPatch.java @@ -117,7 +117,7 @@ public NetAppAccountPatch withActiveDirectories(List activeDire * * @return the encryption value. */ - public AccountEncryption encryption() { + public AccountEncryptionPatch encryption() { return this.innerProperties() == null ? null : this.innerProperties().encryption(); } @@ -127,7 +127,7 @@ public AccountEncryption encryption() { * @param encryption the encryption value to set. * @return the NetAppAccountPatch object itself. */ - public NetAppAccountPatch withEncryption(AccountEncryption encryption) { + public NetAppAccountPatch withEncryption(AccountEncryptionPatch encryption) { if (this.innerProperties() == null) { this.innerProperties = new AccountPropertiesPatch(); } @@ -160,29 +160,6 @@ public NetAppAccountPatch withNfsV4IdDomain(String nfsV4IdDomain) { return this; } - /** - * Get the entraIdConfig property: Entra ID configuration for the account. - * - * @return the entraIdConfig value. - */ - public EntraIdConfigPatch entraIdConfig() { - return this.innerProperties() == null ? null : this.innerProperties().entraIdConfig(); - } - - /** - * Set the entraIdConfig property: Entra ID configuration for the account. - * - * @param entraIdConfig the entraIdConfig value to set. - * @return the NetAppAccountPatch object itself. - */ - public NetAppAccountPatch withEntraIdConfig(EntraIdConfigPatch entraIdConfig) { - if (this.innerProperties() == null) { - this.innerProperties = new AccountPropertiesPatch(); - } - this.innerProperties().withEntraIdConfig(entraIdConfig); - return this; - } - /** * Get the ldapConfiguration property: LDAP Configuration for the account. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PolicyStatus.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PolicyStatus.java deleted file mode 100644 index f787817200bd2..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/PolicyStatus.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Policy status. - */ -public final class PolicyStatus extends ExpandableStringEnum { - /** - * Value indicating the policy is enabled. - */ - public static final PolicyStatus ENABLED = fromString("Enabled"); - - /** - * Value indicating the policy is disabled. - */ - public static final PolicyStatus DISABLED = fromString("Disabled"); - - /** - * Creates a new instance of PolicyStatus value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public PolicyStatus() { - } - - /** - * Creates or finds a PolicyStatus from its string representation. - * - * @param name a name to look for. - * @return the corresponding PolicyStatus. - */ - public static PolicyStatus fromString(String name) { - return fromString(name, PolicyStatus.class); - } - - /** - * Gets known PolicyStatus values. - * - * @return known PolicyStatus values. - */ - public static Collection values() { - return values(PolicyStatus.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ProvisioningState.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ProvisioningState.java index 072549967b2b1..4dc0d37ac02b0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ProvisioningState.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/ProvisioningState.java @@ -11,6 +11,21 @@ * Gets the status of the VolumeQuotaRule at the time the operation was called. */ public final class ProvisioningState extends ExpandableStringEnum { + /** + * Resource has been created. + */ + public static final ProvisioningState SUCCEEDED = fromString("Succeeded"); + + /** + * Resource creation failed. + */ + public static final ProvisioningState FAILED = fromString("Failed"); + + /** + * Resource creation was canceled. + */ + public static final ProvisioningState CANCELED = fromString("Canceled"); + /** * Resource has been Accepted. */ @@ -41,16 +56,6 @@ public final class ProvisioningState extends ExpandableStringEnum { - /* - * Properties provided by KeyVault. - */ - private SecretPasswordKeyVaultProperties keyVaultProperties; - - /* - * Identity used to authenticate to KeyVault. Applicable if keySource is 'Microsoft.KeyVault'. - */ - private SecretPasswordIdentity identity; - - /** - * Creates an instance of SecretPassword class. - */ - public SecretPassword() { - } - - /** - * Get the keyVaultProperties property: Properties provided by KeyVault. - * - * @return the keyVaultProperties value. - */ - public SecretPasswordKeyVaultProperties keyVaultProperties() { - return this.keyVaultProperties; - } - - /** - * Set the keyVaultProperties property: Properties provided by KeyVault. - * - * @param keyVaultProperties the keyVaultProperties value to set. - * @return the SecretPassword object itself. - */ - public SecretPassword withKeyVaultProperties(SecretPasswordKeyVaultProperties keyVaultProperties) { - this.keyVaultProperties = keyVaultProperties; - return this; - } - - /** - * Get the identity property: Identity used to authenticate to KeyVault. Applicable if keySource is - * 'Microsoft.KeyVault'. - * - * @return the identity value. - */ - public SecretPasswordIdentity identity() { - return this.identity; - } - - /** - * Set the identity property: Identity used to authenticate to KeyVault. Applicable if keySource is - * 'Microsoft.KeyVault'. - * - * @param identity the identity value to set. - * @return the SecretPassword object itself. - */ - public SecretPassword withIdentity(SecretPasswordIdentity identity) { - this.identity = identity; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (keyVaultProperties() != null) { - keyVaultProperties().validate(); - } - if (identity() != null) { - identity().validate(); - } - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeJsonField("keyVaultProperties", this.keyVaultProperties); - jsonWriter.writeJsonField("identity", this.identity); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of SecretPassword from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of SecretPassword 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 SecretPassword. - */ - public static SecretPassword fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - SecretPassword deserializedSecretPassword = new SecretPassword(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("keyVaultProperties".equals(fieldName)) { - deserializedSecretPassword.keyVaultProperties = SecretPasswordKeyVaultProperties.fromJson(reader); - } else if ("identity".equals(fieldName)) { - deserializedSecretPassword.identity = SecretPasswordIdentity.fromJson(reader); - } else { - reader.skipChildren(); - } - } - - return deserializedSecretPassword; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SecretPasswordIdentity.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SecretPasswordIdentity.java deleted file mode 100644 index 142d0abf11dd3..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SecretPasswordIdentity.java +++ /dev/null @@ -1,115 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.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; - -/** - * Identity used to authenticate with key vault. - */ -@Fluent -public final class SecretPasswordIdentity implements JsonSerializable { - /* - * The principal ID (object ID) of the identity used to authenticate with key vault. Read-only. - */ - private String principalId; - - /* - * The Azure resource identifier of the user assigned identity used to authenticate with key vault. Applicable if - * identity.type has 'UserAssigned'. It should match key of identity.userAssignedIdentities. - */ - private String userAssignedIdentity; - - /** - * Creates an instance of SecretPasswordIdentity class. - */ - public SecretPasswordIdentity() { - } - - /** - * Get the principalId property: The principal ID (object ID) of the identity used to authenticate with key vault. - * Read-only. - * - * @return the principalId value. - */ - public String principalId() { - return this.principalId; - } - - /** - * Get the userAssignedIdentity property: The Azure resource identifier of the user assigned identity used to - * authenticate with key vault. Applicable if identity.type has 'UserAssigned'. It should match key of - * identity.userAssignedIdentities. - * - * @return the userAssignedIdentity value. - */ - public String userAssignedIdentity() { - return this.userAssignedIdentity; - } - - /** - * Set the userAssignedIdentity property: The Azure resource identifier of the user assigned identity used to - * authenticate with key vault. Applicable if identity.type has 'UserAssigned'. It should match key of - * identity.userAssignedIdentities. - * - * @param userAssignedIdentity the userAssignedIdentity value to set. - * @return the SecretPasswordIdentity object itself. - */ - public SecretPasswordIdentity withUserAssignedIdentity(String userAssignedIdentity) { - this.userAssignedIdentity = userAssignedIdentity; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - } - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("userAssignedIdentity", this.userAssignedIdentity); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of SecretPasswordIdentity from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of SecretPasswordIdentity 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 SecretPasswordIdentity. - */ - public static SecretPasswordIdentity fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - SecretPasswordIdentity deserializedSecretPasswordIdentity = new SecretPasswordIdentity(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("principalId".equals(fieldName)) { - deserializedSecretPasswordIdentity.principalId = reader.getString(); - } else if ("userAssignedIdentity".equals(fieldName)) { - deserializedSecretPasswordIdentity.userAssignedIdentity = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedSecretPasswordIdentity; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SecretPasswordKeyVaultProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SecretPasswordKeyVaultProperties.java deleted file mode 100644 index d61ec62ff020e..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SecretPasswordKeyVaultProperties.java +++ /dev/null @@ -1,136 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.annotation.Fluent; -import com.azure.core.util.logging.ClientLogger; -import com.azure.json.JsonReader; -import com.azure.json.JsonSerializable; -import com.azure.json.JsonToken; -import com.azure.json.JsonWriter; -import java.io.IOException; - -/** - * Properties of key vault to get the secrets for password. - */ -@Fluent -public final class SecretPasswordKeyVaultProperties implements JsonSerializable { - /* - * The Uri of KeyVault. - */ - private String keyVaultUri; - - /* - * The name of KeyVault password secret. - */ - private String secretName; - - /** - * Creates an instance of SecretPasswordKeyVaultProperties class. - */ - public SecretPasswordKeyVaultProperties() { - } - - /** - * Get the keyVaultUri property: The Uri of KeyVault. - * - * @return the keyVaultUri value. - */ - public String keyVaultUri() { - return this.keyVaultUri; - } - - /** - * Set the keyVaultUri property: The Uri of KeyVault. - * - * @param keyVaultUri the keyVaultUri value to set. - * @return the SecretPasswordKeyVaultProperties object itself. - */ - public SecretPasswordKeyVaultProperties withKeyVaultUri(String keyVaultUri) { - this.keyVaultUri = keyVaultUri; - return this; - } - - /** - * Get the secretName property: The name of KeyVault password secret. - * - * @return the secretName value. - */ - public String secretName() { - return this.secretName; - } - - /** - * Set the secretName property: The name of KeyVault password secret. - * - * @param secretName the secretName value to set. - * @return the SecretPasswordKeyVaultProperties object itself. - */ - public SecretPasswordKeyVaultProperties withSecretName(String secretName) { - this.secretName = secretName; - return this; - } - - /** - * Validates the instance. - * - * @throws IllegalArgumentException thrown if the instance is not valid. - */ - public void validate() { - if (keyVaultUri() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property keyVaultUri in model SecretPasswordKeyVaultProperties")); - } - if (secretName() == null) { - throw LOGGER.atError() - .log(new IllegalArgumentException( - "Missing required property secretName in model SecretPasswordKeyVaultProperties")); - } - } - - private static final ClientLogger LOGGER = new ClientLogger(SecretPasswordKeyVaultProperties.class); - - /** - * {@inheritDoc} - */ - @Override - public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { - jsonWriter.writeStartObject(); - jsonWriter.writeStringField("keyVaultUri", this.keyVaultUri); - jsonWriter.writeStringField("secretName", this.secretName); - return jsonWriter.writeEndObject(); - } - - /** - * Reads an instance of SecretPasswordKeyVaultProperties from the JsonReader. - * - * @param jsonReader The JsonReader being read. - * @return An instance of SecretPasswordKeyVaultProperties 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 SecretPasswordKeyVaultProperties. - */ - public static SecretPasswordKeyVaultProperties fromJson(JsonReader jsonReader) throws IOException { - return jsonReader.readObject(reader -> { - SecretPasswordKeyVaultProperties deserializedSecretPasswordKeyVaultProperties - = new SecretPasswordKeyVaultProperties(); - while (reader.nextToken() != JsonToken.END_OBJECT) { - String fieldName = reader.getFieldName(); - reader.nextToken(); - - if ("keyVaultUri".equals(fieldName)) { - deserializedSecretPasswordKeyVaultProperties.keyVaultUri = reader.getString(); - } else if ("secretName".equals(fieldName)) { - deserializedSecretPasswordKeyVaultProperties.secretName = reader.getString(); - } else { - reader.skipChildren(); - } - } - - return deserializedSecretPasswordKeyVaultProperties; - }); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SmbSettings.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SmbSettings.java index 5ef73df4e6fbe..46563886c8329 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SmbSettings.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SmbSettings.java @@ -22,12 +22,12 @@ public final class SmbSettings implements JsonSerializable { private SmbEncryptionState smbEncryption; /* - * Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol volume + * Enables access-based enumeration share property for SMB Shares. Only applicable for SMB/DualProtocol cache */ private SmbAccessBasedEnumeration smbAccessBasedEnumeration; /* - * Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol volume + * Enables non-browsable property for SMB Shares. Only applicable for SMB/DualProtocol cache */ private SmbNonBrowsable smbNonBrowsable; @@ -61,7 +61,7 @@ public SmbSettings withSmbEncryption(SmbEncryptionState smbEncryption) { /** * Get the smbAccessBasedEnumeration property: Enables access-based enumeration share property for SMB Shares. Only - * applicable for SMB/DualProtocol volume. + * applicable for SMB/DualProtocol cache. * * @return the smbAccessBasedEnumeration value. */ @@ -71,7 +71,7 @@ public SmbAccessBasedEnumeration smbAccessBasedEnumeration() { /** * Set the smbAccessBasedEnumeration property: Enables access-based enumeration share property for SMB Shares. Only - * applicable for SMB/DualProtocol volume. + * applicable for SMB/DualProtocol cache. * * @param smbAccessBasedEnumeration the smbAccessBasedEnumeration value to set. * @return the SmbSettings object itself. @@ -83,7 +83,7 @@ public SmbSettings withSmbAccessBasedEnumeration(SmbAccessBasedEnumeration smbAc /** * Get the smbNonBrowsable property: Enables non-browsable property for SMB Shares. Only applicable for - * SMB/DualProtocol volume. + * SMB/DualProtocol cache. * * @return the smbNonBrowsable value. */ @@ -93,7 +93,7 @@ public SmbNonBrowsable smbNonBrowsable() { /** * Set the smbNonBrowsable property: Enables non-browsable property for SMB Shares. Only applicable for - * SMB/DualProtocol volume. + * SMB/DualProtocol cache. * * @param smbNonBrowsable the smbNonBrowsable value to set. * @return the SmbSettings object itself. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotDirectoryVisibility.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotDirectoryVisibility.java deleted file mode 100644 index ea3a485321dbb..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotDirectoryVisibility.java +++ /dev/null @@ -1,52 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Controls the visibility of the Elastic Volume's read-only snapshot directory, which provides access to each of the - * volume's snapshots. - */ -public final class SnapshotDirectoryVisibility extends ExpandableStringEnum { - /** - * Value indicating the read-only snapshot directory is not visible. - */ - public static final SnapshotDirectoryVisibility HIDDEN = fromString("Hidden"); - - /** - * Value indicating the read-only snapshot directory is visible. - */ - public static final SnapshotDirectoryVisibility VISIBLE = fromString("Visible"); - - /** - * Creates a new instance of SnapshotDirectoryVisibility value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public SnapshotDirectoryVisibility() { - } - - /** - * Creates or finds a SnapshotDirectoryVisibility from its string representation. - * - * @param name a name to look for. - * @return the corresponding SnapshotDirectoryVisibility. - */ - public static SnapshotDirectoryVisibility fromString(String name) { - return fromString(name, SnapshotDirectoryVisibility.class); - } - - /** - * Gets known SnapshotDirectoryVisibility values. - * - * @return known SnapshotDirectoryVisibility values. - */ - public static Collection values() { - return values(SnapshotDirectoryVisibility.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotUsage.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotUsage.java deleted file mode 100644 index 54786c233ec7a..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/SnapshotUsage.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Snapshot usage for backup. - */ -public final class SnapshotUsage extends ExpandableStringEnum { - /** - * Value indicating an existing snapshot is used. - */ - public static final SnapshotUsage USE_EXISTING_SNAPSHOT = fromString("UseExistingSnapshot"); - - /** - * Value indicating a new snapshot is created. - */ - public static final SnapshotUsage CREATE_NEW_SNAPSHOT = fromString("CreateNewSnapshot"); - - /** - * Creates a new instance of SnapshotUsage value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public SnapshotUsage() { - } - - /** - * Creates or finds a SnapshotUsage from its string representation. - * - * @param name a name to look for. - * @return the corresponding SnapshotUsage. - */ - public static SnapshotUsage fromString(String name) { - return fromString(name, SnapshotUsage.class); - } - - /** - * Gets known SnapshotUsage values. - * - * @return known SnapshotUsage values. - */ - public static Collection values() { - return values(SnapshotUsage.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Volume.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Volume.java index 1d342c02f6d20..6223c64289031 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Volume.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/Volume.java @@ -98,11 +98,9 @@ public interface Volume { /** * Gets the usageThreshold property: Maximum storage quota allowed for a file system in bytes. This is a soft quota - * used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. - * For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB - * to 2400TiB. - * For extra large volumes, valid values are in the range 2400GiB to 7200TiB. Values expressed in bytes as multiples - * of 1 GiB. + * used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, + * valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values + * expressed in bytes as multiples of 1 GiB. * * @return the usageThreshold value. */ @@ -335,13 +333,6 @@ public interface Volume { */ Boolean ldapEnabled(); - /** - * Gets the ldapServerType property: Specifies the type of LDAP server for a given NFS volume. - * - * @return the ldapServerType value. - */ - LdapServerType ldapServerType(); - /** * Gets the coolAccess property: Specifies whether Cool Access(tiering) is enabled for the volume. * @@ -529,17 +520,6 @@ public interface Volume { */ Boolean isLargeVolume(); - /** - * Gets the largeVolumeType property: Specifies the type of the Large Volume. When set to 'LargeVolume', the large - * volume is created with standard configuration. - * If it is set to 'ExtraLargeVolume7Dot2PiB', the extra large volume is created with higher capacity limit 7.2PiB - * with cool access enabled, - * delivering higher capacity limit with lower costs. - * - * @return the largeVolumeType value. - */ - LargeVolumeType largeVolumeType(); - /** * Gets the originatingResourceId property: Id of the snapshot or backup that the volume is restored from. * @@ -554,13 +534,6 @@ public interface Volume { */ Long inheritedSizeInBytes(); - /** - * Gets the language property: Language supported for volume. - * - * @return the language value. - */ - VolumeLanguage language(); - /** * Gets the breakthroughMode property: Specifies whether the volume operates in Breakthrough Mode. * @@ -672,16 +645,12 @@ interface WithUsageThreshold { * Specifies the usageThreshold property: Maximum storage quota allowed for a file system in bytes. This is * a soft quota used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. * For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to - * 2400GiB to 2400TiB. - * For extra large volumes, valid values are in the range 2400GiB to 7200TiB. Values expressed in bytes as - * multiples of 1 GiB.. + * 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB.. * * @param usageThreshold Maximum storage quota allowed for a file system in bytes. This is a soft quota used - * for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. - * For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to - * 2400GiB to 2400TiB. - * For extra large volumes, valid values are in the range 2400GiB to 7200TiB. Values expressed in bytes as - * multiples of 1 GiB. + * for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, + * valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. + * Values expressed in bytes as multiples of 1 GiB. * @return the next definition stage. */ WithSubnetId withUsageThreshold(long usageThreshold); @@ -716,15 +685,14 @@ interface WithCreate extends DefinitionStages.WithTags, DefinitionStages.WithZon DefinitionStages.WithSmbAccessBasedEnumeration, DefinitionStages.WithSmbNonBrowsable, DefinitionStages.WithSmbContinuouslyAvailable, DefinitionStages.WithThroughputMibps, DefinitionStages.WithEncryptionKeySource, DefinitionStages.WithKeyVaultPrivateEndpointResourceId, - DefinitionStages.WithLdapEnabled, DefinitionStages.WithLdapServerType, DefinitionStages.WithCoolAccess, - DefinitionStages.WithCoolnessPeriod, DefinitionStages.WithCoolAccessRetrievalPolicy, - DefinitionStages.WithCoolAccessTieringPolicy, DefinitionStages.WithUnixPermissions, - DefinitionStages.WithAvsDataStore, DefinitionStages.WithIsDefaultQuotaEnabled, - DefinitionStages.WithDefaultUserQuotaInKiBs, DefinitionStages.WithDefaultGroupQuotaInKiBs, - DefinitionStages.WithCapacityPoolResourceId, DefinitionStages.WithProximityPlacementGroup, - DefinitionStages.WithVolumeSpecName, DefinitionStages.WithPlacementRules, - DefinitionStages.WithEnableSubvolumes, DefinitionStages.WithIsLargeVolume, - DefinitionStages.WithLargeVolumeType, DefinitionStages.WithLanguage, DefinitionStages.WithBreakthroughMode { + DefinitionStages.WithLdapEnabled, DefinitionStages.WithCoolAccess, DefinitionStages.WithCoolnessPeriod, + DefinitionStages.WithCoolAccessRetrievalPolicy, DefinitionStages.WithCoolAccessTieringPolicy, + DefinitionStages.WithUnixPermissions, DefinitionStages.WithAvsDataStore, + DefinitionStages.WithIsDefaultQuotaEnabled, DefinitionStages.WithDefaultUserQuotaInKiBs, + DefinitionStages.WithDefaultGroupQuotaInKiBs, DefinitionStages.WithCapacityPoolResourceId, + DefinitionStages.WithProximityPlacementGroup, DefinitionStages.WithVolumeSpecName, + DefinitionStages.WithPlacementRules, DefinitionStages.WithEnableSubvolumes, + DefinitionStages.WithIsLargeVolume, DefinitionStages.WithBreakthroughMode { /** * Executes the create request. * @@ -1082,19 +1050,6 @@ interface WithLdapEnabled { WithCreate withLdapEnabled(Boolean ldapEnabled); } - /** - * The stage of the Volume definition allowing to specify ldapServerType. - */ - interface WithLdapServerType { - /** - * Specifies the ldapServerType property: Specifies the type of LDAP server for a given NFS volume.. - * - * @param ldapServerType Specifies the type of LDAP server for a given NFS volume. - * @return the next definition stage. - */ - WithCreate withLdapServerType(LdapServerType ldapServerType); - } - /** * The stage of the Volume definition allowing to specify coolAccess. */ @@ -1334,40 +1289,6 @@ interface WithIsLargeVolume { WithCreate withIsLargeVolume(Boolean isLargeVolume); } - /** - * The stage of the Volume definition allowing to specify largeVolumeType. - */ - interface WithLargeVolumeType { - /** - * Specifies the largeVolumeType property: Specifies the type of the Large Volume. When set to - * 'LargeVolume', the large volume is created with standard configuration. - * If it is set to 'ExtraLargeVolume7Dot2PiB', the extra large volume is created with higher capacity limit - * 7.2PiB with cool access enabled, - * delivering higher capacity limit with lower costs.. - * - * @param largeVolumeType Specifies the type of the Large Volume. When set to 'LargeVolume', the large - * volume is created with standard configuration. - * If it is set to 'ExtraLargeVolume7Dot2PiB', the extra large volume is created with higher capacity limit - * 7.2PiB with cool access enabled, - * delivering higher capacity limit with lower costs. - * @return the next definition stage. - */ - WithCreate withLargeVolumeType(LargeVolumeType largeVolumeType); - } - - /** - * The stage of the Volume definition allowing to specify language. - */ - interface WithLanguage { - /** - * Specifies the language property: Language supported for volume.. - * - * @param language Language supported for volume. - * @return the next definition stage. - */ - WithCreate withLanguage(VolumeLanguage language); - } - /** * The stage of the Volume definition allowing to specify breakthroughMode. */ @@ -1454,16 +1375,12 @@ interface WithUsageThreshold { * Specifies the usageThreshold property: Maximum storage quota allowed for a file system in bytes. This is * a soft quota used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. * For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to - * 2400GiB to 2400TiB. - * For extra large volumes, valid values are in the range 2400GiB to 7200TiB. Values expressed in bytes as - * multiples of 1 GiB.. + * 2400GiB to 2400TiB. Values expressed in bytes as multiples of 1 GiB.. * * @param usageThreshold Maximum storage quota allowed for a file system in bytes. This is a soft quota used - * for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. - * For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to - * 2400GiB to 2400TiB. - * For extra large volumes, valid values are in the range 2400GiB to 7200TiB. Values expressed in bytes as - * multiples of 1 GiB. + * for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, + * valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. + * Values expressed in bytes as multiples of 1 GiB. * @return the next definition stage. */ Update withUsageThreshold(Long usageThreshold); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupVolumeProperties.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupVolumeProperties.java index a5ed2bb898627..a28b0a81ef763 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupVolumeProperties.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupVolumeProperties.java @@ -200,11 +200,9 @@ public VolumeGroupVolumeProperties withServiceLevel(ServiceLevel serviceLevel) { /** * Get the usageThreshold property: Maximum storage quota allowed for a file system in bytes. This is a soft quota - * used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. - * For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB - * to 2400TiB. - * For extra large volumes, valid values are in the range 2400GiB to 7200TiB. Values expressed in bytes as multiples - * of 1 GiB. + * used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, + * valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values + * expressed in bytes as multiples of 1 GiB. * * @return the usageThreshold value. */ @@ -214,11 +212,9 @@ public long usageThreshold() { /** * Set the usageThreshold property: Maximum storage quota allowed for a file system in bytes. This is a soft quota - * used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. - * For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB - * to 2400TiB. - * For extra large volumes, valid values are in the range 2400GiB to 7200TiB. Values expressed in bytes as multiples - * of 1 GiB. + * used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, + * valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values + * expressed in bytes as multiples of 1 GiB. * * @param usageThreshold the usageThreshold value to set. * @return the VolumeGroupVolumeProperties object itself. @@ -837,29 +833,6 @@ public VolumeGroupVolumeProperties withLdapEnabled(Boolean ldapEnabled) { return this; } - /** - * Get the ldapServerType property: Specifies the type of LDAP server for a given NFS volume. - * - * @return the ldapServerType value. - */ - public LdapServerType ldapServerType() { - return this.innerProperties() == null ? null : this.innerProperties().ldapServerType(); - } - - /** - * Set the ldapServerType property: Specifies the type of LDAP server for a given NFS volume. - * - * @param ldapServerType the ldapServerType value to set. - * @return the VolumeGroupVolumeProperties object itself. - */ - public VolumeGroupVolumeProperties withLdapServerType(LdapServerType ldapServerType) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties().withLdapServerType(ldapServerType); - return this; - } - /** * Get the coolAccess property: Specifies whether Cool Access(tiering) is enabled for the volume. * @@ -1322,37 +1295,6 @@ public VolumeGroupVolumeProperties withIsLargeVolume(Boolean isLargeVolume) { return this; } - /** - * Get the largeVolumeType property: Specifies the type of the Large Volume. When set to 'LargeVolume', the large - * volume is created with standard configuration. - * If it is set to 'ExtraLargeVolume7Dot2PiB', the extra large volume is created with higher capacity limit 7.2PiB - * with cool access enabled, - * delivering higher capacity limit with lower costs. - * - * @return the largeVolumeType value. - */ - public LargeVolumeType largeVolumeType() { - return this.innerProperties() == null ? null : this.innerProperties().largeVolumeType(); - } - - /** - * Set the largeVolumeType property: Specifies the type of the Large Volume. When set to 'LargeVolume', the large - * volume is created with standard configuration. - * If it is set to 'ExtraLargeVolume7Dot2PiB', the extra large volume is created with higher capacity limit 7.2PiB - * with cool access enabled, - * delivering higher capacity limit with lower costs. - * - * @param largeVolumeType the largeVolumeType value to set. - * @return the VolumeGroupVolumeProperties object itself. - */ - public VolumeGroupVolumeProperties withLargeVolumeType(LargeVolumeType largeVolumeType) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties().withLargeVolumeType(largeVolumeType); - return this; - } - /** * Get the originatingResourceId property: Id of the snapshot or backup that the volume is restored from. * @@ -1371,29 +1313,6 @@ public Long inheritedSizeInBytes() { return this.innerProperties() == null ? null : this.innerProperties().inheritedSizeInBytes(); } - /** - * Get the language property: Language supported for volume. - * - * @return the language value. - */ - public VolumeLanguage language() { - return this.innerProperties() == null ? null : this.innerProperties().language(); - } - - /** - * Set the language property: Language supported for volume. - * - * @param language the language value to set. - * @return the VolumeGroupVolumeProperties object itself. - */ - public VolumeGroupVolumeProperties withLanguage(VolumeLanguage language) { - if (this.innerProperties() == null) { - this.innerProperties = new VolumeProperties(); - } - this.innerProperties().withLanguage(language); - return this; - } - /** * Get the breakthroughMode property: Specifies whether the volume operates in Breakthrough Mode. * diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatch.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatch.java index e253df7b2595a..35246dc1818ba 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatch.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumePatch.java @@ -156,11 +156,9 @@ public VolumePatch withServiceLevel(ServiceLevel serviceLevel) { /** * Get the usageThreshold property: Maximum storage quota allowed for a file system in bytes. This is a soft quota - * used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. - * For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB - * to 2400TiB. - * For extra large volumes, valid values are in the range 2400GiB to 7200TiB. Values expressed in bytes as multiples - * of 1 GiB. + * used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, + * valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values + * expressed in bytes as multiples of 1 GiB. * * @return the usageThreshold value. */ @@ -170,11 +168,9 @@ public Long usageThreshold() { /** * Set the usageThreshold property: Maximum storage quota allowed for a file system in bytes. This is a soft quota - * used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. - * For large volumes, valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB - * to 2400TiB. - * For extra large volumes, valid values are in the range 2400GiB to 7200TiB. Values expressed in bytes as multiples - * of 1 GiB. + * used for alerting only. For regular volumes, valid values are in the range 50GiB to 100TiB. For large volumes, + * valid values are in the range 100TiB to 500TiB, and on an exceptional basis, from to 2400GiB to 2400TiB. Values + * expressed in bytes as multiples of 1 GiB. * * @param usageThreshold the usageThreshold value to set. * @return the VolumePatch object itself. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeSize.java b/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeSize.java deleted file mode 100644 index be50c34ba00da..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/java/com/azure/resourcemanager/netapp/models/VolumeSize.java +++ /dev/null @@ -1,51 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.models; - -import com.azure.core.util.ExpandableStringEnum; -import java.util.Collection; - -/** - * Volume size for backup. - */ -public final class VolumeSize extends ExpandableStringEnum { - /** - * Value indicating backup is for a large volume. - */ - public static final VolumeSize LARGE = fromString("Large"); - - /** - * Value indicating backup is not for a large volume. - */ - public static final VolumeSize REGULAR = fromString("Regular"); - - /** - * Creates a new instance of VolumeSize value. - * - * @deprecated Use the {@link #fromString(String)} factory method. - */ - @Deprecated - public VolumeSize() { - } - - /** - * Creates or finds a VolumeSize from its string representation. - * - * @param name a name to look for. - * @return the corresponding VolumeSize. - */ - public static VolumeSize fromString(String name) { - return fromString(name, VolumeSize.class); - } - - /** - * Gets known VolumeSize values. - * - * @return known VolumeSize values. - */ - public static Collection values() { - return values(VolumeSize.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/resources/META-INF/azure-resourcemanager-netapp_metadata.json b/sdk/netapp/azure-resourcemanager-netapp/src/main/resources/META-INF/azure-resourcemanager-netapp_metadata.json index 4b607c3fb89d1..e24706a21dbc0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/resources/META-INF/azure-resourcemanager-netapp_metadata.json +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/resources/META-INF/azure-resourcemanager-netapp_metadata.json @@ -1 +1 @@ -{"flavor":"azure","apiVersions":{"Microsoft.NetApp":"2026-06-15-preview"},"crossLanguagePackageId":"Microsoft.NetApp","crossLanguageVersion":"d250abc99948","crossLanguageDefinitions":{"com.azure.resourcemanager.netapp.fluent.AccountsClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.AccountsClient.beginChangeKeyVault":"Microsoft.NetApp.NetAppAccounts.changeKeyVault","com.azure.resourcemanager.netapp.fluent.AccountsClient.beginCreateOrUpdate":"Microsoft.NetApp.NetAppAccounts.createOrUpdate","com.azure.resourcemanager.netapp.fluent.AccountsClient.beginDelete":"Microsoft.NetApp.NetAppAccounts.delete","com.azure.resourcemanager.netapp.fluent.AccountsClient.beginGetChangeKeyVaultInformation":"Microsoft.NetApp.NetAppAccounts.getChangeKeyVaultInformation","com.azure.resourcemanager.netapp.fluent.AccountsClient.beginRefreshLdapBindPassword":"Microsoft.NetApp.NetAppAccounts.refreshLdapBindPassword","com.azure.resourcemanager.netapp.fluent.AccountsClient.beginRenewCredentials":"Microsoft.NetApp.NetAppAccounts.renewCredentials","com.azure.resourcemanager.netapp.fluent.AccountsClient.beginTransitionToCmk":"Microsoft.NetApp.NetAppAccounts.transitionToCmk","com.azure.resourcemanager.netapp.fluent.AccountsClient.beginUpdate":"Microsoft.NetApp.NetAppAccounts.update","com.azure.resourcemanager.netapp.fluent.AccountsClient.changeKeyVault":"Microsoft.NetApp.NetAppAccounts.changeKeyVault","com.azure.resourcemanager.netapp.fluent.AccountsClient.createOrUpdate":"Microsoft.NetApp.NetAppAccounts.createOrUpdate","com.azure.resourcemanager.netapp.fluent.AccountsClient.delete":"Microsoft.NetApp.NetAppAccounts.delete","com.azure.resourcemanager.netapp.fluent.AccountsClient.getByResourceGroup":"Microsoft.NetApp.NetAppAccounts.get","com.azure.resourcemanager.netapp.fluent.AccountsClient.getByResourceGroupWithResponse":"Microsoft.NetApp.NetAppAccounts.get","com.azure.resourcemanager.netapp.fluent.AccountsClient.getChangeKeyVaultInformation":"Microsoft.NetApp.NetAppAccounts.getChangeKeyVaultInformation","com.azure.resourcemanager.netapp.fluent.AccountsClient.list":"Microsoft.NetApp.NetAppAccounts.listBySubscription","com.azure.resourcemanager.netapp.fluent.AccountsClient.listByResourceGroup":"Microsoft.NetApp.NetAppAccounts.list","com.azure.resourcemanager.netapp.fluent.AccountsClient.refreshLdapBindPassword":"Microsoft.NetApp.NetAppAccounts.refreshLdapBindPassword","com.azure.resourcemanager.netapp.fluent.AccountsClient.renewCredentials":"Microsoft.NetApp.NetAppAccounts.renewCredentials","com.azure.resourcemanager.netapp.fluent.AccountsClient.transitionToCmk":"Microsoft.NetApp.NetAppAccounts.transitionToCmk","com.azure.resourcemanager.netapp.fluent.AccountsClient.update":"Microsoft.NetApp.NetAppAccounts.update","com.azure.resourcemanager.netapp.fluent.ActiveDirectoryConfigsClient":"Microsoft.NetApp.ActiveDirectoryConfigs","com.azure.resourcemanager.netapp.fluent.ActiveDirectoryConfigsClient.beginCreateOrUpdate":"Microsoft.NetApp.ActiveDirectoryConfigs.createOrUpdate","com.azure.resourcemanager.netapp.fluent.ActiveDirectoryConfigsClient.beginDelete":"Microsoft.NetApp.ActiveDirectoryConfigs.delete","com.azure.resourcemanager.netapp.fluent.ActiveDirectoryConfigsClient.beginUpdate":"Microsoft.NetApp.ActiveDirectoryConfigs.update","com.azure.resourcemanager.netapp.fluent.ActiveDirectoryConfigsClient.createOrUpdate":"Microsoft.NetApp.ActiveDirectoryConfigs.createOrUpdate","com.azure.resourcemanager.netapp.fluent.ActiveDirectoryConfigsClient.delete":"Microsoft.NetApp.ActiveDirectoryConfigs.delete","com.azure.resourcemanager.netapp.fluent.ActiveDirectoryConfigsClient.getByResourceGroup":"Microsoft.NetApp.ActiveDirectoryConfigs.get","com.azure.resourcemanager.netapp.fluent.ActiveDirectoryConfigsClient.getByResourceGroupWithResponse":"Microsoft.NetApp.ActiveDirectoryConfigs.get","com.azure.resourcemanager.netapp.fluent.ActiveDirectoryConfigsClient.list":"Microsoft.NetApp.ActiveDirectoryConfigs.listBySubscription","com.azure.resourcemanager.netapp.fluent.ActiveDirectoryConfigsClient.listByResourceGroup":"Microsoft.NetApp.ActiveDirectoryConfigs.listByResourceGroup","com.azure.resourcemanager.netapp.fluent.ActiveDirectoryConfigsClient.update":"Microsoft.NetApp.ActiveDirectoryConfigs.update","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient":"Microsoft.NetApp.BackupPolicies","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.beginCreate":"Microsoft.NetApp.BackupPolicies.create","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.beginDelete":"Microsoft.NetApp.BackupPolicies.delete","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.beginUpdate":"Microsoft.NetApp.BackupPolicies.update","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.create":"Microsoft.NetApp.BackupPolicies.create","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.delete":"Microsoft.NetApp.BackupPolicies.delete","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.get":"Microsoft.NetApp.BackupPolicies.get","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.getWithResponse":"Microsoft.NetApp.BackupPolicies.get","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.list":"Microsoft.NetApp.BackupPolicies.list","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.update":"Microsoft.NetApp.BackupPolicies.update","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient":"Microsoft.NetApp.BackupVaults","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.beginCreateOrUpdate":"Microsoft.NetApp.BackupVaults.createOrUpdate","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.beginDelete":"Microsoft.NetApp.BackupVaults.delete","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.beginUpdate":"Microsoft.NetApp.BackupVaults.update","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.createOrUpdate":"Microsoft.NetApp.BackupVaults.createOrUpdate","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.delete":"Microsoft.NetApp.BackupVaults.delete","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.get":"Microsoft.NetApp.BackupVaults.get","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.getWithResponse":"Microsoft.NetApp.BackupVaults.get","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.listByNetAppAccount":"Microsoft.NetApp.BackupVaults.listByNetAppAccount","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.update":"Microsoft.NetApp.BackupVaults.update","com.azure.resourcemanager.netapp.fluent.BackupsClient":"Microsoft.NetApp.Backups","com.azure.resourcemanager.netapp.fluent.BackupsClient.beginCreate":"Microsoft.NetApp.Backups.create","com.azure.resourcemanager.netapp.fluent.BackupsClient.beginDelete":"Microsoft.NetApp.Backups.delete","com.azure.resourcemanager.netapp.fluent.BackupsClient.beginUpdate":"Microsoft.NetApp.Backups.update","com.azure.resourcemanager.netapp.fluent.BackupsClient.create":"Microsoft.NetApp.Backups.create","com.azure.resourcemanager.netapp.fluent.BackupsClient.delete":"Microsoft.NetApp.Backups.delete","com.azure.resourcemanager.netapp.fluent.BackupsClient.get":"Microsoft.NetApp.Backups.get","com.azure.resourcemanager.netapp.fluent.BackupsClient.getLatestStatus":"Microsoft.NetApp.Volumes.getLatestStatus","com.azure.resourcemanager.netapp.fluent.BackupsClient.getLatestStatusWithResponse":"Microsoft.NetApp.Volumes.getLatestStatus","com.azure.resourcemanager.netapp.fluent.BackupsClient.getVolumeLatestRestoreStatus":"Microsoft.NetApp.Volumes.getVolumeLatestRestoreStatus","com.azure.resourcemanager.netapp.fluent.BackupsClient.getVolumeLatestRestoreStatusWithResponse":"Microsoft.NetApp.Volumes.getVolumeLatestRestoreStatus","com.azure.resourcemanager.netapp.fluent.BackupsClient.getWithResponse":"Microsoft.NetApp.Backups.get","com.azure.resourcemanager.netapp.fluent.BackupsClient.listByVault":"Microsoft.NetApp.Backups.listByVault","com.azure.resourcemanager.netapp.fluent.BackupsClient.update":"Microsoft.NetApp.Backups.update","com.azure.resourcemanager.netapp.fluent.BackupsUnderAccountsClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.BackupsUnderAccountsClient.beginMigrateBackups":"Microsoft.NetApp.NetAppAccounts.migrateBackups","com.azure.resourcemanager.netapp.fluent.BackupsUnderAccountsClient.migrateBackups":"Microsoft.NetApp.NetAppAccounts.migrateBackups","com.azure.resourcemanager.netapp.fluent.BackupsUnderBackupVaultsClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.BackupsUnderBackupVaultsClient.beginRestoreFiles":"Microsoft.NetApp.Backups.restoreFiles","com.azure.resourcemanager.netapp.fluent.BackupsUnderBackupVaultsClient.restoreFiles":"Microsoft.NetApp.Backups.restoreFiles","com.azure.resourcemanager.netapp.fluent.BackupsUnderVolumesClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.BackupsUnderVolumesClient.beginMigrateBackups":"Microsoft.NetApp.Volumes.migrateBackups","com.azure.resourcemanager.netapp.fluent.BackupsUnderVolumesClient.migrateBackups":"Microsoft.NetApp.Volumes.migrateBackups","com.azure.resourcemanager.netapp.fluent.BucketsClient":"Microsoft.NetApp.Buckets","com.azure.resourcemanager.netapp.fluent.BucketsClient.beginCreateOrUpdate":"Microsoft.NetApp.Buckets.createOrUpdate","com.azure.resourcemanager.netapp.fluent.BucketsClient.beginDelete":"Microsoft.NetApp.Buckets.delete","com.azure.resourcemanager.netapp.fluent.BucketsClient.beginGenerateAkvCredentials":"Microsoft.NetApp.Buckets.generateAkvCredentials","com.azure.resourcemanager.netapp.fluent.BucketsClient.beginRefreshCertificate":"Microsoft.NetApp.Buckets.refreshCertificate","com.azure.resourcemanager.netapp.fluent.BucketsClient.beginUpdate":"Microsoft.NetApp.Buckets.update","com.azure.resourcemanager.netapp.fluent.BucketsClient.createOrUpdate":"Microsoft.NetApp.Buckets.createOrUpdate","com.azure.resourcemanager.netapp.fluent.BucketsClient.delete":"Microsoft.NetApp.Buckets.delete","com.azure.resourcemanager.netapp.fluent.BucketsClient.generateAkvCredentials":"Microsoft.NetApp.Buckets.generateAkvCredentials","com.azure.resourcemanager.netapp.fluent.BucketsClient.generateCredentials":"Microsoft.NetApp.Buckets.generateCredentials","com.azure.resourcemanager.netapp.fluent.BucketsClient.generateCredentialsWithResponse":"Microsoft.NetApp.Buckets.generateCredentials","com.azure.resourcemanager.netapp.fluent.BucketsClient.get":"Microsoft.NetApp.Buckets.get","com.azure.resourcemanager.netapp.fluent.BucketsClient.getWithResponse":"Microsoft.NetApp.Buckets.get","com.azure.resourcemanager.netapp.fluent.BucketsClient.list":"Microsoft.NetApp.Buckets.list","com.azure.resourcemanager.netapp.fluent.BucketsClient.refreshCertificate":"Microsoft.NetApp.Buckets.refreshCertificate","com.azure.resourcemanager.netapp.fluent.BucketsClient.update":"Microsoft.NetApp.Buckets.update","com.azure.resourcemanager.netapp.fluent.CachesClient":"Microsoft.NetApp.Caches","com.azure.resourcemanager.netapp.fluent.CachesClient.beginCreateOrUpdate":"Microsoft.NetApp.Caches.createOrUpdate","com.azure.resourcemanager.netapp.fluent.CachesClient.beginDelete":"Microsoft.NetApp.Caches.delete","com.azure.resourcemanager.netapp.fluent.CachesClient.beginPoolChange":"Microsoft.NetApp.Caches.poolChange","com.azure.resourcemanager.netapp.fluent.CachesClient.beginResetSmbPassword":"Microsoft.NetApp.Caches.resetSmbPassword","com.azure.resourcemanager.netapp.fluent.CachesClient.beginUpdate":"Microsoft.NetApp.Caches.update","com.azure.resourcemanager.netapp.fluent.CachesClient.createOrUpdate":"Microsoft.NetApp.Caches.createOrUpdate","com.azure.resourcemanager.netapp.fluent.CachesClient.delete":"Microsoft.NetApp.Caches.delete","com.azure.resourcemanager.netapp.fluent.CachesClient.get":"Microsoft.NetApp.Caches.get","com.azure.resourcemanager.netapp.fluent.CachesClient.getWithResponse":"Microsoft.NetApp.Caches.get","com.azure.resourcemanager.netapp.fluent.CachesClient.list":"Microsoft.NetApp.Caches.list","com.azure.resourcemanager.netapp.fluent.CachesClient.listPeeringPassphrases":"Microsoft.NetApp.Caches.listPeeringPassphrases","com.azure.resourcemanager.netapp.fluent.CachesClient.listPeeringPassphrasesWithResponse":"Microsoft.NetApp.Caches.listPeeringPassphrases","com.azure.resourcemanager.netapp.fluent.CachesClient.poolChange":"Microsoft.NetApp.Caches.poolChange","com.azure.resourcemanager.netapp.fluent.CachesClient.resetSmbPassword":"Microsoft.NetApp.Caches.resetSmbPassword","com.azure.resourcemanager.netapp.fluent.CachesClient.update":"Microsoft.NetApp.Caches.update","com.azure.resourcemanager.netapp.fluent.ElasticAccountsClient":"Microsoft.NetApp.ElasticAccounts","com.azure.resourcemanager.netapp.fluent.ElasticAccountsClient.beginCreateOrUpdate":"Microsoft.NetApp.ElasticAccounts.createOrUpdate","com.azure.resourcemanager.netapp.fluent.ElasticAccountsClient.beginDelete":"Microsoft.NetApp.ElasticAccounts.delete","com.azure.resourcemanager.netapp.fluent.ElasticAccountsClient.beginUpdate":"Microsoft.NetApp.ElasticAccounts.update","com.azure.resourcemanager.netapp.fluent.ElasticAccountsClient.createOrUpdate":"Microsoft.NetApp.ElasticAccounts.createOrUpdate","com.azure.resourcemanager.netapp.fluent.ElasticAccountsClient.delete":"Microsoft.NetApp.ElasticAccounts.delete","com.azure.resourcemanager.netapp.fluent.ElasticAccountsClient.getByResourceGroup":"Microsoft.NetApp.ElasticAccounts.get","com.azure.resourcemanager.netapp.fluent.ElasticAccountsClient.getByResourceGroupWithResponse":"Microsoft.NetApp.ElasticAccounts.get","com.azure.resourcemanager.netapp.fluent.ElasticAccountsClient.list":"Microsoft.NetApp.ElasticAccounts.listBySubscription","com.azure.resourcemanager.netapp.fluent.ElasticAccountsClient.listByResourceGroup":"Microsoft.NetApp.ElasticAccounts.listByResourceGroup","com.azure.resourcemanager.netapp.fluent.ElasticAccountsClient.update":"Microsoft.NetApp.ElasticAccounts.update","com.azure.resourcemanager.netapp.fluent.ElasticBackupPoliciesClient":"Microsoft.NetApp.ElasticBackupPolicies","com.azure.resourcemanager.netapp.fluent.ElasticBackupPoliciesClient.beginCreateOrUpdate":"Microsoft.NetApp.ElasticBackupPolicies.createOrUpdate","com.azure.resourcemanager.netapp.fluent.ElasticBackupPoliciesClient.beginDelete":"Microsoft.NetApp.ElasticBackupPolicies.delete","com.azure.resourcemanager.netapp.fluent.ElasticBackupPoliciesClient.beginUpdate":"Microsoft.NetApp.ElasticBackupPolicies.update","com.azure.resourcemanager.netapp.fluent.ElasticBackupPoliciesClient.createOrUpdate":"Microsoft.NetApp.ElasticBackupPolicies.createOrUpdate","com.azure.resourcemanager.netapp.fluent.ElasticBackupPoliciesClient.delete":"Microsoft.NetApp.ElasticBackupPolicies.delete","com.azure.resourcemanager.netapp.fluent.ElasticBackupPoliciesClient.get":"Microsoft.NetApp.ElasticBackupPolicies.get","com.azure.resourcemanager.netapp.fluent.ElasticBackupPoliciesClient.getWithResponse":"Microsoft.NetApp.ElasticBackupPolicies.get","com.azure.resourcemanager.netapp.fluent.ElasticBackupPoliciesClient.listByElasticAccount":"Microsoft.NetApp.ElasticBackupPolicies.listByElasticAccount","com.azure.resourcemanager.netapp.fluent.ElasticBackupPoliciesClient.update":"Microsoft.NetApp.ElasticBackupPolicies.update","com.azure.resourcemanager.netapp.fluent.ElasticBackupVaultsClient":"Microsoft.NetApp.ElasticBackupVaults","com.azure.resourcemanager.netapp.fluent.ElasticBackupVaultsClient.beginCreateOrUpdate":"Microsoft.NetApp.ElasticBackupVaults.createOrUpdate","com.azure.resourcemanager.netapp.fluent.ElasticBackupVaultsClient.beginDelete":"Microsoft.NetApp.ElasticBackupVaults.delete","com.azure.resourcemanager.netapp.fluent.ElasticBackupVaultsClient.beginUpdate":"Microsoft.NetApp.ElasticBackupVaults.update","com.azure.resourcemanager.netapp.fluent.ElasticBackupVaultsClient.createOrUpdate":"Microsoft.NetApp.ElasticBackupVaults.createOrUpdate","com.azure.resourcemanager.netapp.fluent.ElasticBackupVaultsClient.delete":"Microsoft.NetApp.ElasticBackupVaults.delete","com.azure.resourcemanager.netapp.fluent.ElasticBackupVaultsClient.get":"Microsoft.NetApp.ElasticBackupVaults.get","com.azure.resourcemanager.netapp.fluent.ElasticBackupVaultsClient.getWithResponse":"Microsoft.NetApp.ElasticBackupVaults.get","com.azure.resourcemanager.netapp.fluent.ElasticBackupVaultsClient.listByElasticAccount":"Microsoft.NetApp.ElasticBackupVaults.listByElasticAccount","com.azure.resourcemanager.netapp.fluent.ElasticBackupVaultsClient.update":"Microsoft.NetApp.ElasticBackupVaults.update","com.azure.resourcemanager.netapp.fluent.ElasticBackupsClient":"Microsoft.NetApp.ElasticBackups","com.azure.resourcemanager.netapp.fluent.ElasticBackupsClient.beginCreateOrUpdate":"Microsoft.NetApp.ElasticBackups.createOrUpdate","com.azure.resourcemanager.netapp.fluent.ElasticBackupsClient.beginDelete":"Microsoft.NetApp.ElasticBackups.delete","com.azure.resourcemanager.netapp.fluent.ElasticBackupsClient.beginUpdate":"Microsoft.NetApp.ElasticBackups.update","com.azure.resourcemanager.netapp.fluent.ElasticBackupsClient.createOrUpdate":"Microsoft.NetApp.ElasticBackups.createOrUpdate","com.azure.resourcemanager.netapp.fluent.ElasticBackupsClient.delete":"Microsoft.NetApp.ElasticBackups.delete","com.azure.resourcemanager.netapp.fluent.ElasticBackupsClient.get":"Microsoft.NetApp.ElasticBackups.get","com.azure.resourcemanager.netapp.fluent.ElasticBackupsClient.getWithResponse":"Microsoft.NetApp.ElasticBackups.get","com.azure.resourcemanager.netapp.fluent.ElasticBackupsClient.listByVault":"Microsoft.NetApp.ElasticBackups.listByVault","com.azure.resourcemanager.netapp.fluent.ElasticBackupsClient.update":"Microsoft.NetApp.ElasticBackups.update","com.azure.resourcemanager.netapp.fluent.ElasticCapacityPoolsClient":"Microsoft.NetApp.ElasticCapacityPools","com.azure.resourcemanager.netapp.fluent.ElasticCapacityPoolsClient.beginChangeZone":"Microsoft.NetApp.ElasticCapacityPools.changeZone","com.azure.resourcemanager.netapp.fluent.ElasticCapacityPoolsClient.beginCreateOrUpdate":"Microsoft.NetApp.ElasticCapacityPools.createOrUpdate","com.azure.resourcemanager.netapp.fluent.ElasticCapacityPoolsClient.beginDelete":"Microsoft.NetApp.ElasticCapacityPools.delete","com.azure.resourcemanager.netapp.fluent.ElasticCapacityPoolsClient.beginUpdate":"Microsoft.NetApp.ElasticCapacityPools.update","com.azure.resourcemanager.netapp.fluent.ElasticCapacityPoolsClient.changeZone":"Microsoft.NetApp.ElasticCapacityPools.changeZone","com.azure.resourcemanager.netapp.fluent.ElasticCapacityPoolsClient.checkVolumeFilePathAvailability":"Microsoft.NetApp.ElasticCapacityPools.checkVolumeFilePathAvailability","com.azure.resourcemanager.netapp.fluent.ElasticCapacityPoolsClient.checkVolumeFilePathAvailabilityWithResponse":"Microsoft.NetApp.ElasticCapacityPools.checkVolumeFilePathAvailability","com.azure.resourcemanager.netapp.fluent.ElasticCapacityPoolsClient.createOrUpdate":"Microsoft.NetApp.ElasticCapacityPools.createOrUpdate","com.azure.resourcemanager.netapp.fluent.ElasticCapacityPoolsClient.delete":"Microsoft.NetApp.ElasticCapacityPools.delete","com.azure.resourcemanager.netapp.fluent.ElasticCapacityPoolsClient.get":"Microsoft.NetApp.ElasticCapacityPools.get","com.azure.resourcemanager.netapp.fluent.ElasticCapacityPoolsClient.getWithResponse":"Microsoft.NetApp.ElasticCapacityPools.get","com.azure.resourcemanager.netapp.fluent.ElasticCapacityPoolsClient.listByElasticAccount":"Microsoft.NetApp.ElasticCapacityPools.listByElasticAccount","com.azure.resourcemanager.netapp.fluent.ElasticCapacityPoolsClient.update":"Microsoft.NetApp.ElasticCapacityPools.update","com.azure.resourcemanager.netapp.fluent.ElasticSnapshotPoliciesClient":"Microsoft.NetApp.ElasticSnapshotPolicies","com.azure.resourcemanager.netapp.fluent.ElasticSnapshotPoliciesClient.beginCreateOrUpdate":"Microsoft.NetApp.ElasticSnapshotPolicies.createOrUpdate","com.azure.resourcemanager.netapp.fluent.ElasticSnapshotPoliciesClient.beginDelete":"Microsoft.NetApp.ElasticSnapshotPolicies.delete","com.azure.resourcemanager.netapp.fluent.ElasticSnapshotPoliciesClient.beginUpdate":"Microsoft.NetApp.ElasticSnapshotPolicies.update","com.azure.resourcemanager.netapp.fluent.ElasticSnapshotPoliciesClient.createOrUpdate":"Microsoft.NetApp.ElasticSnapshotPolicies.createOrUpdate","com.azure.resourcemanager.netapp.fluent.ElasticSnapshotPoliciesClient.delete":"Microsoft.NetApp.ElasticSnapshotPolicies.delete","com.azure.resourcemanager.netapp.fluent.ElasticSnapshotPoliciesClient.get":"Microsoft.NetApp.ElasticSnapshotPolicies.get","com.azure.resourcemanager.netapp.fluent.ElasticSnapshotPoliciesClient.getWithResponse":"Microsoft.NetApp.ElasticSnapshotPolicies.get","com.azure.resourcemanager.netapp.fluent.ElasticSnapshotPoliciesClient.listByElasticAccount":"Microsoft.NetApp.ElasticSnapshotPolicies.listByElasticAccount","com.azure.resourcemanager.netapp.fluent.ElasticSnapshotPoliciesClient.listElasticVolumes":"Microsoft.NetApp.ElasticSnapshotPolicies.listElasticVolumes","com.azure.resourcemanager.netapp.fluent.ElasticSnapshotPoliciesClient.update":"Microsoft.NetApp.ElasticSnapshotPolicies.update","com.azure.resourcemanager.netapp.fluent.ElasticSnapshotsClient":"Microsoft.NetApp.ElasticSnapshots","com.azure.resourcemanager.netapp.fluent.ElasticSnapshotsClient.beginCreateOrUpdate":"Microsoft.NetApp.ElasticSnapshots.createOrUpdate","com.azure.resourcemanager.netapp.fluent.ElasticSnapshotsClient.beginDelete":"Microsoft.NetApp.ElasticSnapshots.delete","com.azure.resourcemanager.netapp.fluent.ElasticSnapshotsClient.createOrUpdate":"Microsoft.NetApp.ElasticSnapshots.createOrUpdate","com.azure.resourcemanager.netapp.fluent.ElasticSnapshotsClient.delete":"Microsoft.NetApp.ElasticSnapshots.delete","com.azure.resourcemanager.netapp.fluent.ElasticSnapshotsClient.get":"Microsoft.NetApp.ElasticSnapshots.get","com.azure.resourcemanager.netapp.fluent.ElasticSnapshotsClient.getWithResponse":"Microsoft.NetApp.ElasticSnapshots.get","com.azure.resourcemanager.netapp.fluent.ElasticSnapshotsClient.listByElasticVolume":"Microsoft.NetApp.ElasticSnapshots.listByElasticVolume","com.azure.resourcemanager.netapp.fluent.ElasticVolumesClient":"Microsoft.NetApp.ElasticVolumes","com.azure.resourcemanager.netapp.fluent.ElasticVolumesClient.beginCreateOrUpdate":"Microsoft.NetApp.ElasticVolumes.createOrUpdate","com.azure.resourcemanager.netapp.fluent.ElasticVolumesClient.beginDelete":"Microsoft.NetApp.ElasticVolumes.delete","com.azure.resourcemanager.netapp.fluent.ElasticVolumesClient.beginRevert":"Microsoft.NetApp.ElasticVolumes.revert","com.azure.resourcemanager.netapp.fluent.ElasticVolumesClient.beginUpdate":"Microsoft.NetApp.ElasticVolumes.update","com.azure.resourcemanager.netapp.fluent.ElasticVolumesClient.createOrUpdate":"Microsoft.NetApp.ElasticVolumes.createOrUpdate","com.azure.resourcemanager.netapp.fluent.ElasticVolumesClient.delete":"Microsoft.NetApp.ElasticVolumes.delete","com.azure.resourcemanager.netapp.fluent.ElasticVolumesClient.get":"Microsoft.NetApp.ElasticVolumes.get","com.azure.resourcemanager.netapp.fluent.ElasticVolumesClient.getWithResponse":"Microsoft.NetApp.ElasticVolumes.get","com.azure.resourcemanager.netapp.fluent.ElasticVolumesClient.listByElasticPool":"Microsoft.NetApp.ElasticVolumes.listByElasticPool","com.azure.resourcemanager.netapp.fluent.ElasticVolumesClient.revert":"Microsoft.NetApp.ElasticVolumes.revert","com.azure.resourcemanager.netapp.fluent.ElasticVolumesClient.update":"Microsoft.NetApp.ElasticVolumes.update","com.azure.resourcemanager.netapp.fluent.NetAppManagementClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsAccountsClient":"Microsoft.NetApp.NetAppResourceQuotaLimitsAccount","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsAccountsClient.get":"Microsoft.NetApp.NetAppResourceQuotaLimitsAccount.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsAccountsClient.getWithResponse":"Microsoft.NetApp.NetAppResourceQuotaLimitsAccount.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsAccountsClient.list":"Microsoft.NetApp.NetAppResourceQuotaLimitsAccount.list","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsClient.get":"Microsoft.NetApp.SubscriptionQuotaItems.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsClient.getWithResponse":"Microsoft.NetApp.SubscriptionQuotaItems.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsClient.list":"Microsoft.NetApp.SubscriptionQuotaItems.list","com.azure.resourcemanager.netapp.fluent.NetAppResourceRegionInfosClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.NetAppResourceRegionInfosClient.get":"Microsoft.NetApp.RegionInfoResources.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceRegionInfosClient.getWithResponse":"Microsoft.NetApp.RegionInfoResources.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceRegionInfosClient.list":"Microsoft.NetApp.RegionInfoResources.list","com.azure.resourcemanager.netapp.fluent.NetAppResourceUsagesClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.NetAppResourceUsagesClient.get":"Microsoft.NetApp.NetAppResourceUsagesOperationGroup.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceUsagesClient.getWithResponse":"Microsoft.NetApp.NetAppResourceUsagesOperationGroup.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceUsagesClient.list":"Microsoft.NetApp.NetAppResourceUsagesOperationGroup.list","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.beginUpdateNetworkSiblingSet":"Microsoft.NetApp.NetAppResourceOperationGroup.updateNetworkSiblingSet","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.checkFilePathAvailability":"Microsoft.NetApp.NetAppResourceOperationGroup.checkFilePathAvailability","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.checkFilePathAvailabilityWithResponse":"Microsoft.NetApp.NetAppResourceOperationGroup.checkFilePathAvailability","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.checkNameAvailability":"Microsoft.NetApp.NetAppResourceOperationGroup.checkNameAvailability","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.checkNameAvailabilityWithResponse":"Microsoft.NetApp.NetAppResourceOperationGroup.checkNameAvailability","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.checkQuotaAvailability":"Microsoft.NetApp.NetAppResourceOperationGroup.checkQuotaAvailability","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.checkQuotaAvailabilityWithResponse":"Microsoft.NetApp.NetAppResourceOperationGroup.checkQuotaAvailability","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.queryNetworkSiblingSet":"Microsoft.NetApp.NetAppResourceOperationGroup.queryNetworkSiblingSet","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.queryNetworkSiblingSetWithResponse":"Microsoft.NetApp.NetAppResourceOperationGroup.queryNetworkSiblingSet","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.queryRegionInfo":"Microsoft.NetApp.NetAppResourceOperationGroup.queryRegionInfo","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.queryRegionInfoWithResponse":"Microsoft.NetApp.NetAppResourceOperationGroup.queryRegionInfo","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.updateNetworkSiblingSet":"Microsoft.NetApp.NetAppResourceOperationGroup.updateNetworkSiblingSet","com.azure.resourcemanager.netapp.fluent.OperationsClient":"Microsoft.NetApp.Operations","com.azure.resourcemanager.netapp.fluent.OperationsClient.list":"Azure.ResourceManager.Legacy.Operations.list","com.azure.resourcemanager.netapp.fluent.PoolsClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.PoolsClient.beginCreateOrUpdate":"Microsoft.NetApp.CapacityPools.createOrUpdate","com.azure.resourcemanager.netapp.fluent.PoolsClient.beginDelete":"Microsoft.NetApp.CapacityPools.delete","com.azure.resourcemanager.netapp.fluent.PoolsClient.beginUpdate":"Microsoft.NetApp.CapacityPools.update","com.azure.resourcemanager.netapp.fluent.PoolsClient.createOrUpdate":"Microsoft.NetApp.CapacityPools.createOrUpdate","com.azure.resourcemanager.netapp.fluent.PoolsClient.delete":"Microsoft.NetApp.CapacityPools.delete","com.azure.resourcemanager.netapp.fluent.PoolsClient.get":"Microsoft.NetApp.CapacityPools.get","com.azure.resourcemanager.netapp.fluent.PoolsClient.getWithResponse":"Microsoft.NetApp.CapacityPools.get","com.azure.resourcemanager.netapp.fluent.PoolsClient.list":"Microsoft.NetApp.CapacityPools.list","com.azure.resourcemanager.netapp.fluent.PoolsClient.update":"Microsoft.NetApp.CapacityPools.update","com.azure.resourcemanager.netapp.fluent.RansomwareReportsClient":"Microsoft.NetApp.RansomwareReports","com.azure.resourcemanager.netapp.fluent.RansomwareReportsClient.beginClearSuspects":"Microsoft.NetApp.RansomwareReports.clearSuspects","com.azure.resourcemanager.netapp.fluent.RansomwareReportsClient.clearSuspects":"Microsoft.NetApp.RansomwareReports.clearSuspects","com.azure.resourcemanager.netapp.fluent.RansomwareReportsClient.get":"Microsoft.NetApp.RansomwareReports.get","com.azure.resourcemanager.netapp.fluent.RansomwareReportsClient.getWithResponse":"Microsoft.NetApp.RansomwareReports.get","com.azure.resourcemanager.netapp.fluent.RansomwareReportsClient.list":"Microsoft.NetApp.RansomwareReports.list","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient":"Microsoft.NetApp.SnapshotPolicies","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.beginDelete":"Microsoft.NetApp.SnapshotPolicies.delete","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.beginUpdate":"Microsoft.NetApp.SnapshotPolicies.update","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.create":"Microsoft.NetApp.SnapshotPolicies.create","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.createWithResponse":"Microsoft.NetApp.SnapshotPolicies.create","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.delete":"Microsoft.NetApp.SnapshotPolicies.delete","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.get":"Microsoft.NetApp.SnapshotPolicies.get","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.getWithResponse":"Microsoft.NetApp.SnapshotPolicies.get","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.list":"Microsoft.NetApp.SnapshotPolicies.list","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.listVolumes":"Microsoft.NetApp.SnapshotPolicies.listVolumes","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.listVolumesWithResponse":"Microsoft.NetApp.SnapshotPolicies.listVolumes","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.update":"Microsoft.NetApp.SnapshotPolicies.update","com.azure.resourcemanager.netapp.fluent.SnapshotsClient":"Microsoft.NetApp.Snapshots","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.beginCreate":"Microsoft.NetApp.Snapshots.create","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.beginDelete":"Microsoft.NetApp.Snapshots.delete","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.beginRestoreFiles":"Microsoft.NetApp.Snapshots.restoreFiles","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.create":"Microsoft.NetApp.Snapshots.create","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.delete":"Microsoft.NetApp.Snapshots.delete","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.get":"Microsoft.NetApp.Snapshots.get","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.getWithResponse":"Microsoft.NetApp.Snapshots.get","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.list":"Microsoft.NetApp.Snapshots.list","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.restoreFiles":"Microsoft.NetApp.Snapshots.restoreFiles","com.azure.resourcemanager.netapp.fluent.SubvolumesClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.beginCreate":"Microsoft.NetApp.SubvolumeInfos.create","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.beginDelete":"Microsoft.NetApp.SubvolumeInfos.delete","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.beginGetMetadata":"Microsoft.NetApp.SubvolumeInfos.getMetadata","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.beginUpdate":"Microsoft.NetApp.SubvolumeInfos.update","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.create":"Microsoft.NetApp.SubvolumeInfos.create","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.delete":"Microsoft.NetApp.SubvolumeInfos.delete","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.get":"Microsoft.NetApp.SubvolumeInfos.get","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.getMetadata":"Microsoft.NetApp.SubvolumeInfos.getMetadata","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.getWithResponse":"Microsoft.NetApp.SubvolumeInfos.get","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.listByVolume":"Microsoft.NetApp.SubvolumeInfos.listByVolume","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.update":"Microsoft.NetApp.SubvolumeInfos.update","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient":"Microsoft.NetApp.VolumeGroups","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.beginCreate":"Microsoft.NetApp.VolumeGroups.create","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.beginDelete":"Microsoft.NetApp.VolumeGroups.delete","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.create":"Microsoft.NetApp.VolumeGroups.create","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.delete":"Microsoft.NetApp.VolumeGroups.delete","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.get":"Microsoft.NetApp.VolumeGroups.get","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.getWithResponse":"Microsoft.NetApp.VolumeGroups.get","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.listByNetAppAccount":"Microsoft.NetApp.NetAppAccounts.listByNetAppAccount","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient":"Microsoft.NetApp.VolumeQuotaRules","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.beginCreate":"Microsoft.NetApp.VolumeQuotaRules.create","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.beginDelete":"Microsoft.NetApp.VolumeQuotaRules.delete","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.beginUpdate":"Microsoft.NetApp.VolumeQuotaRules.update","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.create":"Microsoft.NetApp.VolumeQuotaRules.create","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.delete":"Microsoft.NetApp.VolumeQuotaRules.delete","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.get":"Microsoft.NetApp.VolumeQuotaRules.get","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.getWithResponse":"Microsoft.NetApp.VolumeQuotaRules.get","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.listByVolume":"Microsoft.NetApp.VolumeQuotaRules.listByVolume","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.update":"Microsoft.NetApp.VolumeQuotaRules.update","com.azure.resourcemanager.netapp.fluent.VolumesClient":"Microsoft.NetApp.Volumes","com.azure.resourcemanager.netapp.fluent.VolumesClient.authorizeExternalReplication":"Microsoft.NetApp.Volumes.authorizeExternalReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.authorizeReplication":"Microsoft.NetApp.Volumes.authorizeReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginAuthorizeExternalReplication":"Microsoft.NetApp.Volumes.authorizeExternalReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginAuthorizeReplication":"Microsoft.NetApp.Volumes.authorizeReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginBreakFileLocks":"Microsoft.NetApp.Volumes.breakFileLocks","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginBreakReplication":"Microsoft.NetApp.Volumes.breakReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginCreateOrUpdate":"Microsoft.NetApp.Volumes.createOrUpdate","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginDelete":"Microsoft.NetApp.Volumes.delete","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginDeleteReplication":"Microsoft.NetApp.Volumes.deleteReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginFinalizeExternalReplication":"Microsoft.NetApp.Volumes.finalizeExternalReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginFinalizeRelocation":"Microsoft.NetApp.Volumes.finalizeRelocation","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginListGetGroupIdListForLdapUser":"Microsoft.NetApp.Volumes.listGetGroupIdListForLdapUser","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginListQuotaReport":"Microsoft.NetApp.Volumes.listQuotaReport","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginPeerExternalCluster":"Microsoft.NetApp.Volumes.peerExternalCluster","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginPerformReplicationTransfer":"Microsoft.NetApp.Volumes.performReplicationTransfer","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginPoolChange":"Microsoft.NetApp.Volumes.poolChange","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginPopulateAvailabilityZone":"Microsoft.NetApp.Volumes.populateAvailabilityZone","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginReInitializeReplication":"Microsoft.NetApp.Volumes.reInitializeReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginReestablishReplication":"Microsoft.NetApp.Volumes.reestablishReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginRelocate":"Microsoft.NetApp.Volumes.relocate","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginResetCifsPassword":"Microsoft.NetApp.Volumes.resetCifsPassword","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginResyncReplication":"Microsoft.NetApp.Volumes.resyncReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginRevert":"Microsoft.NetApp.Volumes.revert","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginRevertRelocation":"Microsoft.NetApp.Volumes.revertRelocation","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginSplitCloneFromParent":"Microsoft.NetApp.Volumes.splitCloneFromParent","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginUpdate":"Microsoft.NetApp.Volumes.update","com.azure.resourcemanager.netapp.fluent.VolumesClient.breakFileLocks":"Microsoft.NetApp.Volumes.breakFileLocks","com.azure.resourcemanager.netapp.fluent.VolumesClient.breakReplication":"Microsoft.NetApp.Volumes.breakReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.createOrUpdate":"Microsoft.NetApp.Volumes.createOrUpdate","com.azure.resourcemanager.netapp.fluent.VolumesClient.delete":"Microsoft.NetApp.Volumes.delete","com.azure.resourcemanager.netapp.fluent.VolumesClient.deleteReplication":"Microsoft.NetApp.Volumes.deleteReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.finalizeExternalReplication":"Microsoft.NetApp.Volumes.finalizeExternalReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.finalizeRelocation":"Microsoft.NetApp.Volumes.finalizeRelocation","com.azure.resourcemanager.netapp.fluent.VolumesClient.get":"Microsoft.NetApp.Volumes.get","com.azure.resourcemanager.netapp.fluent.VolumesClient.getWithResponse":"Microsoft.NetApp.Volumes.get","com.azure.resourcemanager.netapp.fluent.VolumesClient.list":"Microsoft.NetApp.Volumes.list","com.azure.resourcemanager.netapp.fluent.VolumesClient.listGetGroupIdListForLdapUser":"Microsoft.NetApp.Volumes.listGetGroupIdListForLdapUser","com.azure.resourcemanager.netapp.fluent.VolumesClient.listQuotaReport":"Microsoft.NetApp.Volumes.listQuotaReport","com.azure.resourcemanager.netapp.fluent.VolumesClient.listReplications":"Microsoft.NetApp.Volumes.listReplications","com.azure.resourcemanager.netapp.fluent.VolumesClient.peerExternalCluster":"Microsoft.NetApp.Volumes.peerExternalCluster","com.azure.resourcemanager.netapp.fluent.VolumesClient.performReplicationTransfer":"Microsoft.NetApp.Volumes.performReplicationTransfer","com.azure.resourcemanager.netapp.fluent.VolumesClient.poolChange":"Microsoft.NetApp.Volumes.poolChange","com.azure.resourcemanager.netapp.fluent.VolumesClient.populateAvailabilityZone":"Microsoft.NetApp.Volumes.populateAvailabilityZone","com.azure.resourcemanager.netapp.fluent.VolumesClient.reInitializeReplication":"Microsoft.NetApp.Volumes.reInitializeReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.reestablishReplication":"Microsoft.NetApp.Volumes.reestablishReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.relocate":"Microsoft.NetApp.Volumes.relocate","com.azure.resourcemanager.netapp.fluent.VolumesClient.replicationStatus":"Microsoft.NetApp.Volumes.replicationStatus","com.azure.resourcemanager.netapp.fluent.VolumesClient.replicationStatusWithResponse":"Microsoft.NetApp.Volumes.replicationStatus","com.azure.resourcemanager.netapp.fluent.VolumesClient.resetCifsPassword":"Microsoft.NetApp.Volumes.resetCifsPassword","com.azure.resourcemanager.netapp.fluent.VolumesClient.resyncReplication":"Microsoft.NetApp.Volumes.resyncReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.revert":"Microsoft.NetApp.Volumes.revert","com.azure.resourcemanager.netapp.fluent.VolumesClient.revertRelocation":"Microsoft.NetApp.Volumes.revertRelocation","com.azure.resourcemanager.netapp.fluent.VolumesClient.splitCloneFromParent":"Microsoft.NetApp.Volumes.splitCloneFromParent","com.azure.resourcemanager.netapp.fluent.VolumesClient.update":"Microsoft.NetApp.Volumes.update","com.azure.resourcemanager.netapp.fluent.models.AccountProperties":"Microsoft.NetApp.AccountProperties","com.azure.resourcemanager.netapp.fluent.models.AccountPropertiesPatch":"Microsoft.NetApp.AccountPropertiesPatch","com.azure.resourcemanager.netapp.fluent.models.ActiveDirectoryConfigInner":"Microsoft.NetApp.ActiveDirectoryConfig","com.azure.resourcemanager.netapp.fluent.models.BackupInner":"Microsoft.NetApp.Backup","com.azure.resourcemanager.netapp.fluent.models.BackupPatchProperties":"Microsoft.NetApp.BackupPatchProperties","com.azure.resourcemanager.netapp.fluent.models.BackupPolicyInner":"Microsoft.NetApp.BackupPolicy","com.azure.resourcemanager.netapp.fluent.models.BackupPolicyProperties":"Microsoft.NetApp.BackupPolicyProperties","com.azure.resourcemanager.netapp.fluent.models.BackupProperties":"Microsoft.NetApp.BackupProperties","com.azure.resourcemanager.netapp.fluent.models.BackupStatusInner":"Microsoft.NetApp.BackupStatus","com.azure.resourcemanager.netapp.fluent.models.BackupVaultInner":"Microsoft.NetApp.BackupVault","com.azure.resourcemanager.netapp.fluent.models.BackupVaultProperties":"Microsoft.NetApp.BackupVaultProperties","com.azure.resourcemanager.netapp.fluent.models.BucketGenerateCredentialsInner":"Microsoft.NetApp.BucketGenerateCredentials","com.azure.resourcemanager.netapp.fluent.models.BucketInner":"Microsoft.NetApp.Bucket","com.azure.resourcemanager.netapp.fluent.models.BucketPatchProperties":"Microsoft.NetApp.BucketPatchProperties","com.azure.resourcemanager.netapp.fluent.models.BucketProperties":"Microsoft.NetApp.BucketProperties","com.azure.resourcemanager.netapp.fluent.models.CacheInner":"Microsoft.NetApp.Cache","com.azure.resourcemanager.netapp.fluent.models.CapacityPoolInner":"Microsoft.NetApp.CapacityPool","com.azure.resourcemanager.netapp.fluent.models.CheckAvailabilityResponseInner":"Microsoft.NetApp.CheckAvailabilityResponse","com.azure.resourcemanager.netapp.fluent.models.CheckElasticResourceAvailabilityResponseInner":"Microsoft.NetApp.CheckElasticResourceAvailabilityResponse","com.azure.resourcemanager.netapp.fluent.models.ClusterPeerCommandResponseInner":"Microsoft.NetApp.ClusterPeerCommandResponse","com.azure.resourcemanager.netapp.fluent.models.ElasticAccountInner":"Microsoft.NetApp.ElasticAccount","com.azure.resourcemanager.netapp.fluent.models.ElasticBackupInner":"Microsoft.NetApp.ElasticBackup","com.azure.resourcemanager.netapp.fluent.models.ElasticBackupPolicyInner":"Microsoft.NetApp.ElasticBackupPolicy","com.azure.resourcemanager.netapp.fluent.models.ElasticBackupVaultInner":"Microsoft.NetApp.ElasticBackupVault","com.azure.resourcemanager.netapp.fluent.models.ElasticCapacityPoolInner":"Microsoft.NetApp.ElasticCapacityPool","com.azure.resourcemanager.netapp.fluent.models.ElasticSnapshotInner":"Microsoft.NetApp.ElasticSnapshot","com.azure.resourcemanager.netapp.fluent.models.ElasticSnapshotPolicyInner":"Microsoft.NetApp.ElasticSnapshotPolicy","com.azure.resourcemanager.netapp.fluent.models.ElasticVolumeInner":"Microsoft.NetApp.ElasticVolume","com.azure.resourcemanager.netapp.fluent.models.GetGroupIdListForLdapUserResponseInner":"Microsoft.NetApp.GetGroupIdListForLdapUserResponse","com.azure.resourcemanager.netapp.fluent.models.GetKeyVaultStatusResponseInner":"Microsoft.NetApp.GetKeyVaultStatusResponse","com.azure.resourcemanager.netapp.fluent.models.GetKeyVaultStatusResponseProperties":"Microsoft.NetApp.GetKeyVaultStatusResponseProperties","com.azure.resourcemanager.netapp.fluent.models.ListQuotaReportResultInner":"Microsoft.NetApp.ListQuotaReportResult","com.azure.resourcemanager.netapp.fluent.models.NetAppAccountInner":"Microsoft.NetApp.NetAppAccount","com.azure.resourcemanager.netapp.fluent.models.NetworkSiblingSetInner":"Microsoft.NetApp.NetworkSiblingSet","com.azure.resourcemanager.netapp.fluent.models.OperationInner":"Microsoft.NetApp.Operation","com.azure.resourcemanager.netapp.fluent.models.OperationProperties":"Microsoft.NetApp.OperationProperties","com.azure.resourcemanager.netapp.fluent.models.PeeringPassphrasesInner":"Microsoft.NetApp.PeeringPassphrases","com.azure.resourcemanager.netapp.fluent.models.PoolPatchProperties":"Microsoft.NetApp.PoolPatchProperties","com.azure.resourcemanager.netapp.fluent.models.PoolProperties":"Microsoft.NetApp.PoolProperties","com.azure.resourcemanager.netapp.fluent.models.QuotaItemProperties":"Microsoft.NetApp.QuotaItemProperties","com.azure.resourcemanager.netapp.fluent.models.RansomwareReportInner":"Microsoft.NetApp.RansomwareReport","com.azure.resourcemanager.netapp.fluent.models.RegionInfoInner":"Microsoft.NetApp.RegionInfo","com.azure.resourcemanager.netapp.fluent.models.RegionInfoResourceInner":"Microsoft.NetApp.RegionInfoResource","com.azure.resourcemanager.netapp.fluent.models.ReplicationInner":"Microsoft.NetApp.Replication","com.azure.resourcemanager.netapp.fluent.models.ReplicationStatusInner":"Microsoft.NetApp.ReplicationStatus","com.azure.resourcemanager.netapp.fluent.models.RestoreStatusInner":"Microsoft.NetApp.RestoreStatus","com.azure.resourcemanager.netapp.fluent.models.SnapshotInner":"Microsoft.NetApp.Snapshot","com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyInner":"Microsoft.NetApp.SnapshotPolicy","com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyProperties":"Microsoft.NetApp.SnapshotPolicyProperties","com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyVolumeListInner":"Microsoft.NetApp.SnapshotPolicyVolumeList","com.azure.resourcemanager.netapp.fluent.models.SnapshotProperties":"Microsoft.NetApp.SnapshotProperties","com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner":"Microsoft.NetApp.QuotaItem","com.azure.resourcemanager.netapp.fluent.models.SubvolumeInfoInner":"Microsoft.NetApp.SubvolumeInfo","com.azure.resourcemanager.netapp.fluent.models.SubvolumeModelInner":"Microsoft.NetApp.SubvolumeModel","com.azure.resourcemanager.netapp.fluent.models.SubvolumeModelProperties":"Microsoft.NetApp.SubvolumeModelProperties","com.azure.resourcemanager.netapp.fluent.models.SubvolumePatchParams":"Microsoft.NetApp.SubvolumePatchParams","com.azure.resourcemanager.netapp.fluent.models.SubvolumeProperties":"Microsoft.NetApp.SubvolumeProperties","com.azure.resourcemanager.netapp.fluent.models.SvmPeerCommandResponseInner":"Microsoft.NetApp.SvmPeerCommandResponse","com.azure.resourcemanager.netapp.fluent.models.UsageProperties":"Microsoft.NetApp.UsageProperties","com.azure.resourcemanager.netapp.fluent.models.UsageResultInner":"Microsoft.NetApp.UsageResult","com.azure.resourcemanager.netapp.fluent.models.VolumeGroupDetailsInner":"Microsoft.NetApp.VolumeGroupDetails","com.azure.resourcemanager.netapp.fluent.models.VolumeGroupInner":"Microsoft.NetApp.VolumeGroup","com.azure.resourcemanager.netapp.fluent.models.VolumeGroupListProperties":"Microsoft.NetApp.VolumeGroupListProperties","com.azure.resourcemanager.netapp.fluent.models.VolumeGroupProperties":"Microsoft.NetApp.VolumeGroupProperties","com.azure.resourcemanager.netapp.fluent.models.VolumeInner":"Microsoft.NetApp.Volume","com.azure.resourcemanager.netapp.fluent.models.VolumePatchProperties":"Microsoft.NetApp.VolumePatchProperties","com.azure.resourcemanager.netapp.fluent.models.VolumeProperties":"Microsoft.NetApp.VolumeProperties","com.azure.resourcemanager.netapp.fluent.models.VolumeQuotaRuleInner":"Microsoft.NetApp.VolumeQuotaRule","com.azure.resourcemanager.netapp.fluent.models.VolumeQuotaRulesProperties":"Microsoft.NetApp.VolumeQuotaRulesProperties","com.azure.resourcemanager.netapp.implementation.NetAppManagementClientBuilder":"Microsoft.NetApp","com.azure.resourcemanager.netapp.implementation.models.ActiveDirectoryConfigListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.netapp.implementation.models.BackupPoliciesList":"Microsoft.NetApp.BackupPoliciesList","com.azure.resourcemanager.netapp.implementation.models.BackupVaultsList":"Microsoft.NetApp.BackupVaultsList","com.azure.resourcemanager.netapp.implementation.models.BackupsList":"Microsoft.NetApp.BackupsList","com.azure.resourcemanager.netapp.implementation.models.BucketList":"Microsoft.NetApp.BucketList","com.azure.resourcemanager.netapp.implementation.models.CacheList":"Microsoft.NetApp.CacheList","com.azure.resourcemanager.netapp.implementation.models.CapacityPoolList":"Microsoft.NetApp.CapacityPoolList","com.azure.resourcemanager.netapp.implementation.models.ElasticAccountListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.netapp.implementation.models.ElasticBackupListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.netapp.implementation.models.ElasticBackupPolicyListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.netapp.implementation.models.ElasticBackupVaultListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.netapp.implementation.models.ElasticCapacityPoolListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.netapp.implementation.models.ElasticSnapshotListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.netapp.implementation.models.ElasticSnapshotPolicyListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.netapp.implementation.models.ElasticSnapshotPolicyVolumeList":"Microsoft.NetApp.ElasticSnapshotPolicyVolumeList","com.azure.resourcemanager.netapp.implementation.models.ElasticVolumeListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.netapp.implementation.models.ListReplications":"Microsoft.NetApp.ListReplications","com.azure.resourcemanager.netapp.implementation.models.NetAppAccountList":"Microsoft.NetApp.NetAppAccountList","com.azure.resourcemanager.netapp.implementation.models.OperationListResult":"Microsoft.NetApp.OperationListResult","com.azure.resourcemanager.netapp.implementation.models.QuotaItemList":"Microsoft.NetApp.QuotaItemList","com.azure.resourcemanager.netapp.implementation.models.RansomwareReportsList":"Microsoft.NetApp.RansomwareReportsList","com.azure.resourcemanager.netapp.implementation.models.RegionInfosList":"Microsoft.NetApp.RegionInfosList","com.azure.resourcemanager.netapp.implementation.models.SnapshotPoliciesList":"Microsoft.NetApp.SnapshotPoliciesList","com.azure.resourcemanager.netapp.implementation.models.SnapshotsList":"Microsoft.NetApp.SnapshotsList","com.azure.resourcemanager.netapp.implementation.models.SubvolumesList":"Microsoft.NetApp.SubvolumesList","com.azure.resourcemanager.netapp.implementation.models.UsagesListResult":"Microsoft.NetApp.UsagesListResult","com.azure.resourcemanager.netapp.implementation.models.VolumeGroupList":"Microsoft.NetApp.VolumeGroupList","com.azure.resourcemanager.netapp.implementation.models.VolumeList":"Microsoft.NetApp.VolumeList","com.azure.resourcemanager.netapp.implementation.models.VolumeQuotaRulesList":"Microsoft.NetApp.VolumeQuotaRulesList","com.azure.resourcemanager.netapp.models.AcceptGrowCapacityPoolForShortTermCloneSplit":"Microsoft.NetApp.AcceptGrowCapacityPoolForShortTermCloneSplit","com.azure.resourcemanager.netapp.models.AccountEncryption":"Microsoft.NetApp.AccountEncryption","com.azure.resourcemanager.netapp.models.ActiveDirectory":"Microsoft.NetApp.ActiveDirectory","com.azure.resourcemanager.netapp.models.ActiveDirectoryConfigProperties":"Microsoft.NetApp.ActiveDirectoryConfigProperties","com.azure.resourcemanager.netapp.models.ActiveDirectoryConfigUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.netapp.models.ActiveDirectoryConfigUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.netapp.models.ActiveDirectoryStatus":"Microsoft.NetApp.ActiveDirectoryStatus","com.azure.resourcemanager.netapp.models.ActualRansomwareProtectionState":"Microsoft.NetApp.ActualRansomwareProtectionState","com.azure.resourcemanager.netapp.models.ApplicationType":"Microsoft.NetApp.ApplicationType","com.azure.resourcemanager.netapp.models.AuthorizeRequest":"Microsoft.NetApp.AuthorizeRequest","com.azure.resourcemanager.netapp.models.AvsDataStore":"Microsoft.NetApp.AvsDataStore","com.azure.resourcemanager.netapp.models.AzureKeyVaultDetails":"Microsoft.NetApp.AzureKeyVaultDetails","com.azure.resourcemanager.netapp.models.BackupPatch":"Microsoft.NetApp.BackupPatch","com.azure.resourcemanager.netapp.models.BackupPolicyPatch":"Microsoft.NetApp.BackupPolicyPatch","com.azure.resourcemanager.netapp.models.BackupRestoreFiles":"Microsoft.NetApp.BackupRestoreFiles","com.azure.resourcemanager.netapp.models.BackupType":"Microsoft.NetApp.BackupType","com.azure.resourcemanager.netapp.models.BackupVaultPatch":"Microsoft.NetApp.BackupVaultPatch","com.azure.resourcemanager.netapp.models.BackupsMigrationRequest":"Microsoft.NetApp.BackupsMigrationRequest","com.azure.resourcemanager.netapp.models.BindAuthenticationLevel":"Microsoft.NetApp.BindAuthenticationLevel","com.azure.resourcemanager.netapp.models.BindPasswordAkvConfig":"Microsoft.NetApp.BindPasswordAkvConfig","com.azure.resourcemanager.netapp.models.BindPasswordAkvConfigPatch":"Microsoft.NetApp.BindPasswordAkvConfigPatch","com.azure.resourcemanager.netapp.models.BreakFileLocksRequest":"Microsoft.NetApp.BreakFileLocksRequest","com.azure.resourcemanager.netapp.models.BreakReplicationRequest":"Microsoft.NetApp.BreakReplicationRequest","com.azure.resourcemanager.netapp.models.BreakthroughMode":"Microsoft.NetApp.BreakthroughMode","com.azure.resourcemanager.netapp.models.BucketCredentialsExpiry":"Microsoft.NetApp.BucketCredentialsExpiry","com.azure.resourcemanager.netapp.models.BucketPatch":"Microsoft.NetApp.BucketPatch","com.azure.resourcemanager.netapp.models.BucketPatchPermissions":"Microsoft.NetApp.BucketPatchPermissions","com.azure.resourcemanager.netapp.models.BucketPermissions":"Microsoft.NetApp.BucketPermissions","com.azure.resourcemanager.netapp.models.BucketServerPatchProperties":"Microsoft.NetApp.BucketServerPatchProperties","com.azure.resourcemanager.netapp.models.BucketServerProperties":"Microsoft.NetApp.BucketServerProperties","com.azure.resourcemanager.netapp.models.CacheFileAccessLogs":"Microsoft.NetApp.CacheFileAccessLogs","com.azure.resourcemanager.netapp.models.CacheLifeCycleState":"Microsoft.NetApp.CacheLifeCycleState","com.azure.resourcemanager.netapp.models.CacheMountTargetProperties":"Microsoft.NetApp.CacheMountTargetProperties","com.azure.resourcemanager.netapp.models.CacheProperties":"Microsoft.NetApp.CacheProperties","com.azure.resourcemanager.netapp.models.CachePropertiesExportPolicy":"Microsoft.NetApp.CachePropertiesExportPolicy","com.azure.resourcemanager.netapp.models.CacheProvisioningState":"Microsoft.NetApp.CacheProvisioningState","com.azure.resourcemanager.netapp.models.CacheUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.netapp.models.CacheUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.netapp.models.CapacityPoolPatch":"Microsoft.NetApp.CapacityPoolPatch","com.azure.resourcemanager.netapp.models.CertificateAkvDetails":"Microsoft.NetApp.CertificateAkvDetails","com.azure.resourcemanager.netapp.models.ChangeKeyVault":"Microsoft.NetApp.ChangeKeyVault","com.azure.resourcemanager.netapp.models.ChangeZoneRequest":"Microsoft.NetApp.ChangeZoneRequest","com.azure.resourcemanager.netapp.models.CheckElasticResourceAvailabilityReason":"Microsoft.NetApp.CheckElasticResourceAvailabilityReason","com.azure.resourcemanager.netapp.models.CheckElasticResourceAvailabilityStatus":"Microsoft.NetApp.CheckElasticResourceAvailabilityStatus","com.azure.resourcemanager.netapp.models.CheckElasticVolumeFilePathAvailabilityRequest":"Microsoft.NetApp.CheckElasticVolumeFilePathAvailabilityRequest","com.azure.resourcemanager.netapp.models.CheckNameResourceTypes":"Microsoft.NetApp.CheckNameResourceTypes","com.azure.resourcemanager.netapp.models.CheckQuotaNameResourceTypes":"Microsoft.NetApp.CheckQuotaNameResourceTypes","com.azure.resourcemanager.netapp.models.ChownMode":"Microsoft.NetApp.ChownMode","com.azure.resourcemanager.netapp.models.CifsChangeNotifyState":"Microsoft.NetApp.CifsChangeNotifyState","com.azure.resourcemanager.netapp.models.CifsUser":"Microsoft.NetApp.CifsUser","com.azure.resourcemanager.netapp.models.ClusterPeerCommandResponseProperties":"Microsoft.NetApp.ClusterPeerCommandResponseProperties","com.azure.resourcemanager.netapp.models.CoolAccessRetrievalPolicy":"Microsoft.NetApp.CoolAccessRetrievalPolicy","com.azure.resourcemanager.netapp.models.CoolAccessTieringPolicy":"Microsoft.NetApp.CoolAccessTieringPolicy","com.azure.resourcemanager.netapp.models.CredentialsAkvDetails":"Microsoft.NetApp.CredentialsAkvDetails","com.azure.resourcemanager.netapp.models.CredentialsStatus":"Microsoft.NetApp.CredentialsStatus","com.azure.resourcemanager.netapp.models.DailySchedule":"Microsoft.NetApp.DailySchedule","com.azure.resourcemanager.netapp.models.DayOfWeek":"Microsoft.NetApp.DayOfWeek","com.azure.resourcemanager.netapp.models.DesiredRansomwareProtectionState":"Microsoft.NetApp.DesiredRansomwareProtectionState","com.azure.resourcemanager.netapp.models.DestinationReplication":"Microsoft.NetApp.DestinationReplication","com.azure.resourcemanager.netapp.models.Dimension":"Microsoft.NetApp.Dimension","com.azure.resourcemanager.netapp.models.ElasticAccountProperties":"Microsoft.NetApp.ElasticAccountProperties","com.azure.resourcemanager.netapp.models.ElasticAccountUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.netapp.models.ElasticAccountUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.netapp.models.ElasticBackupPolicyProperties":"Microsoft.NetApp.ElasticBackupPolicyProperties","com.azure.resourcemanager.netapp.models.ElasticBackupPolicyState":"Microsoft.NetApp.ElasticBackupPolicyState","com.azure.resourcemanager.netapp.models.ElasticBackupPolicyUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.netapp.models.ElasticBackupPolicyUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.netapp.models.ElasticBackupProperties":"Microsoft.NetApp.ElasticBackupProperties","com.azure.resourcemanager.netapp.models.ElasticBackupType":"Microsoft.NetApp.ElasticBackupType","com.azure.resourcemanager.netapp.models.ElasticBackupVaultProperties":"Microsoft.NetApp.ElasticBackupVaultProperties","com.azure.resourcemanager.netapp.models.ElasticBackupVaultUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.netapp.models.ElasticCapacityPoolProperties":"Microsoft.NetApp.ElasticCapacityPoolProperties","com.azure.resourcemanager.netapp.models.ElasticCapacityPoolUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.netapp.models.ElasticCapacityPoolUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.netapp.models.ElasticEncryption":"Microsoft.NetApp.ElasticEncryption","com.azure.resourcemanager.netapp.models.ElasticEncryptionConfiguration":"Microsoft.NetApp.ElasticEncryptionConfiguration","com.azure.resourcemanager.netapp.models.ElasticEncryptionIdentity":"Microsoft.NetApp.ElasticEncryptionIdentity","com.azure.resourcemanager.netapp.models.ElasticExportPolicy":"Microsoft.NetApp.ElasticExportPolicy","com.azure.resourcemanager.netapp.models.ElasticExportPolicyRule":"Microsoft.NetApp.ElasticExportPolicyRule","com.azure.resourcemanager.netapp.models.ElasticKeyVaultProperties":"Microsoft.NetApp.ElasticKeyVaultProperties","com.azure.resourcemanager.netapp.models.ElasticKeyVaultStatus":"Microsoft.NetApp.ElasticKeyVaultStatus","com.azure.resourcemanager.netapp.models.ElasticMountTargetProperties":"Microsoft.NetApp.ElasticMountTargetProperties","com.azure.resourcemanager.netapp.models.ElasticNfsv3Access":"Microsoft.NetApp.ElasticNfsv3Access","com.azure.resourcemanager.netapp.models.ElasticNfsv4Access":"Microsoft.NetApp.ElasticNfsv4Access","com.azure.resourcemanager.netapp.models.ElasticPoolEncryptionKeySource":"Microsoft.NetApp.ElasticPoolEncryptionKeySource","com.azure.resourcemanager.netapp.models.ElasticProtocolType":"Microsoft.NetApp.ElasticProtocolType","com.azure.resourcemanager.netapp.models.ElasticResourceAvailabilityStatus":"Microsoft.NetApp.ElasticResourceAvailabilityStatus","com.azure.resourcemanager.netapp.models.ElasticRootAccess":"Microsoft.NetApp.ElasticRootAccess","com.azure.resourcemanager.netapp.models.ElasticServiceLevel":"Microsoft.NetApp.ElasticServiceLevel","com.azure.resourcemanager.netapp.models.ElasticSmbEncryption":"Microsoft.NetApp.ElasticSmbEncryption","com.azure.resourcemanager.netapp.models.ElasticSmbPatchProperties":"Microsoft.NetApp.ElasticSmbPatchProperties","com.azure.resourcemanager.netapp.models.ElasticSmbProperties":"Microsoft.NetApp.ElasticSmbProperties","com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyDailySchedule":"Microsoft.NetApp.ElasticSnapshotPolicyDailySchedule","com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyHourlySchedule":"Microsoft.NetApp.ElasticSnapshotPolicyHourlySchedule","com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyMonthlySchedule":"Microsoft.NetApp.ElasticSnapshotPolicyMonthlySchedule","com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyProperties":"Microsoft.NetApp.ElasticSnapshotPolicyProperties","com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyWeeklySchedule":"Microsoft.NetApp.ElasticSnapshotPolicyWeeklySchedule","com.azure.resourcemanager.netapp.models.ElasticSnapshotProperties":"Microsoft.NetApp.ElasticSnapshotProperties","com.azure.resourcemanager.netapp.models.ElasticUnixAccessRule":"Microsoft.NetApp.ElasticUnixAccessRule","com.azure.resourcemanager.netapp.models.ElasticVolumeBackupProperties":"Microsoft.NetApp.ElasticVolumeBackupProperties","com.azure.resourcemanager.netapp.models.ElasticVolumeDataProtectionPatchProperties":"Microsoft.NetApp.ElasticVolumeDataProtectionPatchProperties","com.azure.resourcemanager.netapp.models.ElasticVolumeDataProtectionProperties":"Microsoft.NetApp.ElasticVolumeDataProtectionProperties","com.azure.resourcemanager.netapp.models.ElasticVolumePolicyEnforcement":"Microsoft.NetApp.ElasticVolumePolicyEnforcement","com.azure.resourcemanager.netapp.models.ElasticVolumeProperties":"Microsoft.NetApp.ElasticVolumeProperties","com.azure.resourcemanager.netapp.models.ElasticVolumeRestorationState":"Microsoft.NetApp.ElasticVolumeRestorationState","com.azure.resourcemanager.netapp.models.ElasticVolumeRevert":"Microsoft.NetApp.ElasticVolumeRevert","com.azure.resourcemanager.netapp.models.ElasticVolumeSnapshotProperties":"Microsoft.NetApp.ElasticVolumeSnapshotProperties","com.azure.resourcemanager.netapp.models.ElasticVolumeUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.netapp.models.ElasticVolumeUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.netapp.models.EnableSubvolumes":"Microsoft.NetApp.EnableSubvolumes","com.azure.resourcemanager.netapp.models.EnableWriteBackState":"Microsoft.NetApp.EnableWriteBackState","com.azure.resourcemanager.netapp.models.EncryptionIdentity":"Microsoft.NetApp.EncryptionIdentity","com.azure.resourcemanager.netapp.models.EncryptionKeySource":"Microsoft.NetApp.EncryptionKeySource","com.azure.resourcemanager.netapp.models.EncryptionState":"Microsoft.NetApp.EncryptionState","com.azure.resourcemanager.netapp.models.EncryptionTransitionRequest":"Microsoft.NetApp.EncryptionTransitionRequest","com.azure.resourcemanager.netapp.models.EncryptionType":"Microsoft.NetApp.EncryptionType","com.azure.resourcemanager.netapp.models.EndpointType":"Microsoft.NetApp.EndpointType","com.azure.resourcemanager.netapp.models.EntraIdAkvConfig":"Microsoft.NetApp.EntraIdAkvConfig","com.azure.resourcemanager.netapp.models.EntraIdAkvConfigPatch":"Microsoft.NetApp.EntraIdAkvConfigPatch","com.azure.resourcemanager.netapp.models.EntraIdConfig":"Microsoft.NetApp.EntraIdConfig","com.azure.resourcemanager.netapp.models.EntraIdConfigPatch":"Microsoft.NetApp.EntraIdConfigPatch","com.azure.resourcemanager.netapp.models.Exclude":"Microsoft.NetApp.Exclude","com.azure.resourcemanager.netapp.models.ExportPolicyRule":"Microsoft.NetApp.ExportPolicyRule","com.azure.resourcemanager.netapp.models.ExternalReplicationSetupStatus":"Microsoft.NetApp.ExternalReplicationSetupStatus","com.azure.resourcemanager.netapp.models.FileAccessLogs":"Microsoft.NetApp.FileAccessLogs","com.azure.resourcemanager.netapp.models.FilePathAvailabilityRequest":"Microsoft.NetApp.FilePathAvailabilityRequest","com.azure.resourcemanager.netapp.models.FileSystemUser":"Microsoft.NetApp.FileSystemUser","com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserRequest":"Microsoft.NetApp.GetGroupIdListForLdapUserRequest","com.azure.resourcemanager.netapp.models.GlobalFileLockingState":"Microsoft.NetApp.GlobalFileLockingState","com.azure.resourcemanager.netapp.models.HourlySchedule":"Microsoft.NetApp.HourlySchedule","com.azure.resourcemanager.netapp.models.InAvailabilityReasonType":"Microsoft.NetApp.InAvailabilityReasonType","com.azure.resourcemanager.netapp.models.KerberosState":"Microsoft.NetApp.KerberosState","com.azure.resourcemanager.netapp.models.KeySource":"Microsoft.NetApp.KeySource","com.azure.resourcemanager.netapp.models.KeyVaultPrivateEndpoint":"Microsoft.NetApp.KeyVaultPrivateEndpoint","com.azure.resourcemanager.netapp.models.KeyVaultProperties":"Microsoft.NetApp.KeyVaultProperties","com.azure.resourcemanager.netapp.models.KeyVaultStatus":"Microsoft.NetApp.KeyVaultStatus","com.azure.resourcemanager.netapp.models.LargeVolumeType":"Microsoft.NetApp.LargeVolumeType","com.azure.resourcemanager.netapp.models.LdapConfiguration":"Microsoft.NetApp.LdapConfiguration","com.azure.resourcemanager.netapp.models.LdapConfigurationPatch":"Microsoft.NetApp.LdapConfigurationPatch","com.azure.resourcemanager.netapp.models.LdapSearchScopeOpt":"Microsoft.NetApp.LdapSearchScopeOpt","com.azure.resourcemanager.netapp.models.LdapServerType":"Microsoft.NetApp.LdapServerType","com.azure.resourcemanager.netapp.models.LdapState":"Microsoft.NetApp.LdapState","com.azure.resourcemanager.netapp.models.ListQuotaReportResponse":"Microsoft.NetApp.ListQuotaReportResponse","com.azure.resourcemanager.netapp.models.ListReplicationsRequest":"Microsoft.NetApp.ListReplicationsRequest","com.azure.resourcemanager.netapp.models.LogSpecification":"Microsoft.NetApp.LogSpecification","com.azure.resourcemanager.netapp.models.ManagedServiceIdentity":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentity","com.azure.resourcemanager.netapp.models.ManagedServiceIdentityType":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType","com.azure.resourcemanager.netapp.models.MetricAggregationType":"Microsoft.NetApp.MetricAggregationType","com.azure.resourcemanager.netapp.models.MetricSpecification":"Microsoft.NetApp.MetricSpecification","com.azure.resourcemanager.netapp.models.MirrorState":"Microsoft.NetApp.MirrorState","com.azure.resourcemanager.netapp.models.MonthlySchedule":"Microsoft.NetApp.MonthlySchedule","com.azure.resourcemanager.netapp.models.MountTargetProperties":"Microsoft.NetApp.MountTargetProperties","com.azure.resourcemanager.netapp.models.MultiAdStatus":"Microsoft.NetApp.MultiAdStatus","com.azure.resourcemanager.netapp.models.NetAppAccountPatch":"Microsoft.NetApp.NetAppAccountPatch","com.azure.resourcemanager.netapp.models.NetworkFeatures":"Microsoft.NetApp.NetworkFeatures","com.azure.resourcemanager.netapp.models.NetworkSiblingSetProvisioningState":"Microsoft.NetApp.NetworkSiblingSetProvisioningState","com.azure.resourcemanager.netapp.models.NfsUser":"Microsoft.NetApp.NfsUser","com.azure.resourcemanager.netapp.models.NicInfo":"Microsoft.NetApp.NicInfo","com.azure.resourcemanager.netapp.models.OnCertificateConflictAction":"Microsoft.NetApp.OnCertificateConflictAction","com.azure.resourcemanager.netapp.models.OperationDisplay":"Microsoft.NetApp.OperationDisplay","com.azure.resourcemanager.netapp.models.OriginClusterInformation":"Microsoft.NetApp.OriginClusterInformation","com.azure.resourcemanager.netapp.models.PeerClusterForVolumeMigrationRequest":"Microsoft.NetApp.PeerClusterForVolumeMigrationRequest","com.azure.resourcemanager.netapp.models.PlacementKeyValuePairs":"Microsoft.NetApp.PlacementKeyValuePairs","com.azure.resourcemanager.netapp.models.PolicyStatus":"Microsoft.NetApp.PolicyStatus","com.azure.resourcemanager.netapp.models.PoolChangeRequest":"Microsoft.NetApp.PoolChangeRequest","com.azure.resourcemanager.netapp.models.ProtocolTypes":"Microsoft.NetApp.ProtocolTypes","com.azure.resourcemanager.netapp.models.ProvisioningState":"Microsoft.NetApp.NetAppProvisioningState","com.azure.resourcemanager.netapp.models.QosType":"Microsoft.NetApp.QosType","com.azure.resourcemanager.netapp.models.QueryNetworkSiblingSetRequest":"Microsoft.NetApp.QueryNetworkSiblingSetRequest","com.azure.resourcemanager.netapp.models.QuotaAvailabilityRequest":"Microsoft.NetApp.QuotaAvailabilityRequest","com.azure.resourcemanager.netapp.models.QuotaReport":"Microsoft.NetApp.QuotaReport","com.azure.resourcemanager.netapp.models.QuotaReportFilterRequest":"Microsoft.NetApp.QuotaReportFilterRequest","com.azure.resourcemanager.netapp.models.QuotaType":"Microsoft.NetApp.QuotaType","com.azure.resourcemanager.netapp.models.RansomwareProtectionPatchSettings":"Microsoft.NetApp.RansomwareProtectionPatchSettings","com.azure.resourcemanager.netapp.models.RansomwareProtectionSettings":"Microsoft.NetApp.RansomwareProtectionSettings","com.azure.resourcemanager.netapp.models.RansomwareReportProperties":"Microsoft.NetApp.RansomwareReportProperties","com.azure.resourcemanager.netapp.models.RansomwareReportSeverity":"Microsoft.NetApp.RansomwareReportSeverity","com.azure.resourcemanager.netapp.models.RansomwareReportState":"Microsoft.NetApp.RansomwareReportState","com.azure.resourcemanager.netapp.models.RansomwareSuspectResolution":"Microsoft.NetApp.RansomwareSuspectResolution","com.azure.resourcemanager.netapp.models.RansomwareSuspects":"Microsoft.NetApp.RansomwareSuspects","com.azure.resourcemanager.netapp.models.RansomwareSuspectsClearRequest":"Microsoft.NetApp.RansomwareSuspectsClearRequest","com.azure.resourcemanager.netapp.models.ReestablishReplicationRequest":"Microsoft.NetApp.ReestablishReplicationRequest","com.azure.resourcemanager.netapp.models.RegionInfoAvailabilityZoneMappingsItem":"Microsoft.NetApp.RegionInfoAvailabilityZoneMappingsItem","com.azure.resourcemanager.netapp.models.RegionStorageToNetworkProximity":"Microsoft.NetApp.RegionStorageToNetworkProximity","com.azure.resourcemanager.netapp.models.RelocateVolumeRequest":"Microsoft.NetApp.RelocateVolumeRequest","com.azure.resourcemanager.netapp.models.RemotePath":"Microsoft.NetApp.RemotePath","com.azure.resourcemanager.netapp.models.ReplicationMirrorState":"Microsoft.NetApp.ReplicationMirrorState","com.azure.resourcemanager.netapp.models.ReplicationObject":"Microsoft.NetApp.ReplicationObject","com.azure.resourcemanager.netapp.models.ReplicationSchedule":"Microsoft.NetApp.ReplicationSchedule","com.azure.resourcemanager.netapp.models.ReplicationType":"Microsoft.NetApp.ReplicationType","com.azure.resourcemanager.netapp.models.ResourceNameAvailabilityRequest":"Microsoft.NetApp.ResourceNameAvailabilityRequest","com.azure.resourcemanager.netapp.models.SecretPassword":"Microsoft.NetApp.SecretPassword","com.azure.resourcemanager.netapp.models.SecretPasswordIdentity":"Microsoft.NetApp.SecretPasswordIdentity","com.azure.resourcemanager.netapp.models.SecretPasswordKeyVaultProperties":"Microsoft.NetApp.SecretPasswordKeyVaultProperties","com.azure.resourcemanager.netapp.models.SecureLdapType":"Microsoft.NetApp.SecureLdapType","com.azure.resourcemanager.netapp.models.SecurityStyle":"Microsoft.NetApp.SecurityStyle","com.azure.resourcemanager.netapp.models.ServiceLevel":"Microsoft.NetApp.ServiceLevel","com.azure.resourcemanager.netapp.models.ServiceSpecification":"Microsoft.NetApp.ServiceSpecification","com.azure.resourcemanager.netapp.models.SmbAccessBasedEnumeration":"Microsoft.NetApp.SmbAccessBasedEnumeration","com.azure.resourcemanager.netapp.models.SmbEncryptionState":"Microsoft.NetApp.SmbEncryptionState","com.azure.resourcemanager.netapp.models.SmbNonBrowsable":"Microsoft.NetApp.SmbNonBrowsable","com.azure.resourcemanager.netapp.models.SmbSettings":"Microsoft.NetApp.SmbSettings","com.azure.resourcemanager.netapp.models.SnapshotDirectoryVisibility":"Microsoft.NetApp.SnapshotDirectoryVisibility","com.azure.resourcemanager.netapp.models.SnapshotPolicyPatch":"Microsoft.NetApp.SnapshotPolicyPatch","com.azure.resourcemanager.netapp.models.SnapshotRestoreFiles":"Microsoft.NetApp.SnapshotRestoreFiles","com.azure.resourcemanager.netapp.models.SnapshotUsage":"Microsoft.NetApp.SnapshotUsage","com.azure.resourcemanager.netapp.models.SubvolumePatchRequest":"Microsoft.NetApp.SubvolumePatchRequest","com.azure.resourcemanager.netapp.models.SuspectFile":"Microsoft.NetApp.SuspectFile","com.azure.resourcemanager.netapp.models.SvmPeerCommandResponseProperties":"Microsoft.NetApp.SvmPeerCommandResponseProperties","com.azure.resourcemanager.netapp.models.UpdateNetworkSiblingSetRequest":"Microsoft.NetApp.UpdateNetworkSiblingSetRequest","com.azure.resourcemanager.netapp.models.UsageName":"Microsoft.NetApp.UsageName","com.azure.resourcemanager.netapp.models.UserAssignedIdentity":"Azure.ResourceManager.CommonTypes.UserAssignedIdentity","com.azure.resourcemanager.netapp.models.VolumeBackupProperties":"Microsoft.NetApp.VolumeBackupProperties","com.azure.resourcemanager.netapp.models.VolumeBackupRelationshipStatus":"Microsoft.NetApp.VolumeBackupRelationshipStatus","com.azure.resourcemanager.netapp.models.VolumeBackups":"Microsoft.NetApp.VolumeBackups","com.azure.resourcemanager.netapp.models.VolumeGroupMetadata":"Microsoft.NetApp.VolumeGroupMetaData","com.azure.resourcemanager.netapp.models.VolumeGroupVolumeProperties":"Microsoft.NetApp.VolumeGroupVolumeProperties","com.azure.resourcemanager.netapp.models.VolumeLanguage":"Microsoft.NetApp.VolumeLanguage","com.azure.resourcemanager.netapp.models.VolumePatch":"Microsoft.NetApp.VolumePatch","com.azure.resourcemanager.netapp.models.VolumePatchPropertiesDataProtection":"Microsoft.NetApp.VolumePatchPropertiesDataProtection","com.azure.resourcemanager.netapp.models.VolumePatchPropertiesExportPolicy":"Microsoft.NetApp.VolumePatchPropertiesExportPolicy","com.azure.resourcemanager.netapp.models.VolumePropertiesDataProtection":"Microsoft.NetApp.VolumePropertiesDataProtection","com.azure.resourcemanager.netapp.models.VolumePropertiesExportPolicy":"Microsoft.NetApp.VolumePropertiesExportPolicy","com.azure.resourcemanager.netapp.models.VolumeQuotaRulePatch":"Microsoft.NetApp.VolumeQuotaRulePatch","com.azure.resourcemanager.netapp.models.VolumeRelocationProperties":"Microsoft.NetApp.VolumeRelocationProperties","com.azure.resourcemanager.netapp.models.VolumeReplicationRelationshipStatus":"Microsoft.NetApp.VolumeReplicationRelationshipStatus","com.azure.resourcemanager.netapp.models.VolumeRestoreRelationshipStatus":"Microsoft.NetApp.VolumeRestoreRelationshipStatus","com.azure.resourcemanager.netapp.models.VolumeRevert":"Microsoft.NetApp.VolumeRevert","com.azure.resourcemanager.netapp.models.VolumeSize":"Microsoft.NetApp.VolumeSize","com.azure.resourcemanager.netapp.models.VolumeSnapshotProperties":"Microsoft.NetApp.VolumeSnapshotProperties","com.azure.resourcemanager.netapp.models.VolumeStorageToNetworkProximity":"Microsoft.NetApp.VolumeStorageToNetworkProximity","com.azure.resourcemanager.netapp.models.WeeklySchedule":"Microsoft.NetApp.WeeklySchedule"},"generatedFiles":["src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java","src/main/java/com/azure/resourcemanager/netapp/fluent/AccountsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/ActiveDirectoryConfigsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/BackupPoliciesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/BackupVaultsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsUnderAccountsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsUnderBackupVaultsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsUnderVolumesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/BucketsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/CachesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticAccountsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticBackupPoliciesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticBackupVaultsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticBackupsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticCapacityPoolsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticSnapshotPoliciesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticSnapshotsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/ElasticVolumesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppManagementClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsAccountsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceRegionInfosClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceUsagesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourcesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/PoolsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/RansomwareReportsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotPoliciesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/SubvolumesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeGroupsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeQuotaRulesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/VolumesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountPropertiesPatch.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/ActiveDirectoryConfigInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPatchProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupStatusInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupVaultInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupVaultProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketGenerateCredentialsInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketPatchProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/CacheInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/CapacityPoolInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/CheckAvailabilityResponseInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/CheckElasticResourceAvailabilityResponseInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/ClusterPeerCommandResponseInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticAccountInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticBackupInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticBackupPolicyInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticBackupVaultInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticCapacityPoolInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticSnapshotInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticSnapshotPolicyInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/ElasticVolumeInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/GetGroupIdListForLdapUserResponseInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/GetKeyVaultStatusResponseInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/GetKeyVaultStatusResponseProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/ListQuotaReportResultInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetAppAccountInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetworkSiblingSetInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/PeeringPassphrasesInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/QuotaItemProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/RansomwareReportInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/RegionInfoInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/RegionInfoResourceInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationStatusInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/RestoreStatusInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyVolumeListInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeInfoInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumePatchParams.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SvmPeerCommandResponseInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/UsageProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/UsageResultInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupDetailsInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupListProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumePatchProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeQuotaRuleInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeQuotaRulesProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/netapp/fluent/package-info.java","src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ActiveDirectoryConfigImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ActiveDirectoryConfigsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ActiveDirectoryConfigsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPolicyImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupStatusImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupVaultImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupVaultsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupVaultsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderAccountsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderAccountsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderBackupVaultsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderBackupVaultsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderVolumesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderVolumesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BucketGenerateCredentialsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BucketImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BucketsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BucketsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/CacheImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/CachesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/CachesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/CapacityPoolImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/CheckAvailabilityResponseImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/CheckElasticResourceAvailabilityResponseImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ClusterPeerCommandResponseImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticAccountImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticAccountsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticAccountsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupPoliciesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupPoliciesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupPolicyImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupVaultImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupVaultsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupVaultsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticBackupsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticCapacityPoolImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticCapacityPoolsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticCapacityPoolsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotPoliciesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotPoliciesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotPolicyImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticSnapshotsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticVolumeImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticVolumesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ElasticVolumesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/GetGroupIdListForLdapUserResponseImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/GetKeyVaultStatusResponseImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ListQuotaReportResultImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppAccountImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsAccountsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsAccountsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceRegionInfosClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceRegionInfosImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceUsagesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceUsagesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetworkSiblingSetImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/OperationImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/PeeringPassphrasesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/RansomwareReportImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/RansomwareReportsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/RansomwareReportsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/RegionInfoImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/RegionInfoResourceImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ReplicationImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ReplicationStatusImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/netapp/implementation/RestoreStatusImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPolicyImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPolicyVolumeListImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SubscriptionQuotaItemImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumeInfoImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumeModelImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SvmPeerCommandResponseImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/UsageResultImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupDetailsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRuleImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRulesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRulesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/ActiveDirectoryConfigListResult.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/BackupPoliciesList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/BackupVaultsList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/BackupsList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/BucketList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/CacheList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/CapacityPoolList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticAccountListResult.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticBackupListResult.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticBackupPolicyListResult.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticBackupVaultListResult.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticCapacityPoolListResult.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticSnapshotListResult.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticSnapshotPolicyListResult.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticSnapshotPolicyVolumeList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/ElasticVolumeListResult.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/ListReplications.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/NetAppAccountList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/QuotaItemList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/RansomwareReportsList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/RegionInfosList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/SnapshotPoliciesList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/SnapshotsList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/SubvolumesList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/UsagesListResult.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/VolumeGroupList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/VolumeList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/VolumeQuotaRulesList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/package-info.java","src/main/java/com/azure/resourcemanager/netapp/models/AcceptGrowCapacityPoolForShortTermCloneSplit.java","src/main/java/com/azure/resourcemanager/netapp/models/AccountEncryption.java","src/main/java/com/azure/resourcemanager/netapp/models/Accounts.java","src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectory.java","src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfig.java","src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfigProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfigUpdate.java","src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfigUpdateProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryConfigs.java","src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/ActualRansomwareProtectionState.java","src/main/java/com/azure/resourcemanager/netapp/models/ApplicationType.java","src/main/java/com/azure/resourcemanager/netapp/models/AuthorizeRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/AvsDataStore.java","src/main/java/com/azure/resourcemanager/netapp/models/AzureKeyVaultDetails.java","src/main/java/com/azure/resourcemanager/netapp/models/Backup.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicies.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicyPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupRestoreFiles.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupType.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupVault.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupVaultPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupVaults.java","src/main/java/com/azure/resourcemanager/netapp/models/Backups.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupsMigrationRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupsUnderAccounts.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupsUnderBackupVaults.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupsUnderVolumes.java","src/main/java/com/azure/resourcemanager/netapp/models/BindAuthenticationLevel.java","src/main/java/com/azure/resourcemanager/netapp/models/BindPasswordAkvConfig.java","src/main/java/com/azure/resourcemanager/netapp/models/BindPasswordAkvConfigPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/BreakFileLocksRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/BreakReplicationRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/BreakthroughMode.java","src/main/java/com/azure/resourcemanager/netapp/models/Bucket.java","src/main/java/com/azure/resourcemanager/netapp/models/BucketCredentialsExpiry.java","src/main/java/com/azure/resourcemanager/netapp/models/BucketGenerateCredentials.java","src/main/java/com/azure/resourcemanager/netapp/models/BucketPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/BucketPatchPermissions.java","src/main/java/com/azure/resourcemanager/netapp/models/BucketPermissions.java","src/main/java/com/azure/resourcemanager/netapp/models/BucketServerPatchProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/BucketServerProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/Buckets.java","src/main/java/com/azure/resourcemanager/netapp/models/Cache.java","src/main/java/com/azure/resourcemanager/netapp/models/CacheFileAccessLogs.java","src/main/java/com/azure/resourcemanager/netapp/models/CacheLifeCycleState.java","src/main/java/com/azure/resourcemanager/netapp/models/CacheMountTargetProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/CacheProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/CachePropertiesExportPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/CacheProvisioningState.java","src/main/java/com/azure/resourcemanager/netapp/models/CacheUpdate.java","src/main/java/com/azure/resourcemanager/netapp/models/CacheUpdateProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/Caches.java","src/main/java/com/azure/resourcemanager/netapp/models/CapacityPool.java","src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/CertificateAkvDetails.java","src/main/java/com/azure/resourcemanager/netapp/models/ChangeKeyVault.java","src/main/java/com/azure/resourcemanager/netapp/models/ChangeZoneRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/CheckAvailabilityResponse.java","src/main/java/com/azure/resourcemanager/netapp/models/CheckElasticResourceAvailabilityReason.java","src/main/java/com/azure/resourcemanager/netapp/models/CheckElasticResourceAvailabilityResponse.java","src/main/java/com/azure/resourcemanager/netapp/models/CheckElasticResourceAvailabilityStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/CheckElasticVolumeFilePathAvailabilityRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/CheckNameResourceTypes.java","src/main/java/com/azure/resourcemanager/netapp/models/CheckQuotaNameResourceTypes.java","src/main/java/com/azure/resourcemanager/netapp/models/ChownMode.java","src/main/java/com/azure/resourcemanager/netapp/models/CifsChangeNotifyState.java","src/main/java/com/azure/resourcemanager/netapp/models/CifsUser.java","src/main/java/com/azure/resourcemanager/netapp/models/ClusterPeerCommandResponse.java","src/main/java/com/azure/resourcemanager/netapp/models/ClusterPeerCommandResponseProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/CoolAccessRetrievalPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/CoolAccessTieringPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/CredentialsAkvDetails.java","src/main/java/com/azure/resourcemanager/netapp/models/CredentialsStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/DailySchedule.java","src/main/java/com/azure/resourcemanager/netapp/models/DayOfWeek.java","src/main/java/com/azure/resourcemanager/netapp/models/DesiredRansomwareProtectionState.java","src/main/java/com/azure/resourcemanager/netapp/models/DestinationReplication.java","src/main/java/com/azure/resourcemanager/netapp/models/Dimension.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccount.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccountProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccountUpdate.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccountUpdateProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticAccounts.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackup.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicies.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicyProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicyState.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicyUpdate.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupPolicyUpdateProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupType.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupVault.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupVaultProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupVaultUpdate.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackupVaults.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticBackups.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPool.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPoolProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPoolUpdate.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPoolUpdateProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticCapacityPools.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticEncryption.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticEncryptionConfiguration.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticEncryptionIdentity.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticExportPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticExportPolicyRule.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticKeyVaultProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticKeyVaultStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticMountTargetProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticNfsv3Access.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticNfsv4Access.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticPoolEncryptionKeySource.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticProtocolType.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticResourceAvailabilityStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticRootAccess.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticServiceLevel.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticSmbEncryption.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticSmbPatchProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticSmbProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshot.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicies.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyDailySchedule.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyHourlySchedule.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyMonthlySchedule.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyUpdate.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyUpdateProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotPolicyWeeklySchedule.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshotProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticSnapshots.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticUnixAccessRule.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolume.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeBackupProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeDataProtectionPatchProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeDataProtectionProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumePolicyEnforcement.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeRestorationState.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeRevert.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeSnapshotProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeUpdate.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumeUpdateProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/ElasticVolumes.java","src/main/java/com/azure/resourcemanager/netapp/models/EnableSubvolumes.java","src/main/java/com/azure/resourcemanager/netapp/models/EnableWriteBackState.java","src/main/java/com/azure/resourcemanager/netapp/models/EncryptionIdentity.java","src/main/java/com/azure/resourcemanager/netapp/models/EncryptionKeySource.java","src/main/java/com/azure/resourcemanager/netapp/models/EncryptionState.java","src/main/java/com/azure/resourcemanager/netapp/models/EncryptionTransitionRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/EncryptionType.java","src/main/java/com/azure/resourcemanager/netapp/models/EndpointType.java","src/main/java/com/azure/resourcemanager/netapp/models/EntraIdAkvConfig.java","src/main/java/com/azure/resourcemanager/netapp/models/EntraIdAkvConfigPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/EntraIdConfig.java","src/main/java/com/azure/resourcemanager/netapp/models/EntraIdConfigPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/Exclude.java","src/main/java/com/azure/resourcemanager/netapp/models/ExportPolicyRule.java","src/main/java/com/azure/resourcemanager/netapp/models/ExternalReplicationSetupStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/FileAccessLogs.java","src/main/java/com/azure/resourcemanager/netapp/models/FilePathAvailabilityRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/FileSystemUser.java","src/main/java/com/azure/resourcemanager/netapp/models/GetGroupIdListForLdapUserRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/GetGroupIdListForLdapUserResponse.java","src/main/java/com/azure/resourcemanager/netapp/models/GetKeyVaultStatusResponse.java","src/main/java/com/azure/resourcemanager/netapp/models/GlobalFileLockingState.java","src/main/java/com/azure/resourcemanager/netapp/models/HourlySchedule.java","src/main/java/com/azure/resourcemanager/netapp/models/InAvailabilityReasonType.java","src/main/java/com/azure/resourcemanager/netapp/models/KerberosState.java","src/main/java/com/azure/resourcemanager/netapp/models/KeySource.java","src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultPrivateEndpoint.java","src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/LargeVolumeType.java","src/main/java/com/azure/resourcemanager/netapp/models/LdapConfiguration.java","src/main/java/com/azure/resourcemanager/netapp/models/LdapConfigurationPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/LdapSearchScopeOpt.java","src/main/java/com/azure/resourcemanager/netapp/models/LdapServerType.java","src/main/java/com/azure/resourcemanager/netapp/models/LdapState.java","src/main/java/com/azure/resourcemanager/netapp/models/ListQuotaReportResponse.java","src/main/java/com/azure/resourcemanager/netapp/models/ListQuotaReportResult.java","src/main/java/com/azure/resourcemanager/netapp/models/ListReplicationsRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/LogSpecification.java","src/main/java/com/azure/resourcemanager/netapp/models/ManagedServiceIdentity.java","src/main/java/com/azure/resourcemanager/netapp/models/ManagedServiceIdentityType.java","src/main/java/com/azure/resourcemanager/netapp/models/MetricAggregationType.java","src/main/java/com/azure/resourcemanager/netapp/models/MetricSpecification.java","src/main/java/com/azure/resourcemanager/netapp/models/MirrorState.java","src/main/java/com/azure/resourcemanager/netapp/models/MonthlySchedule.java","src/main/java/com/azure/resourcemanager/netapp/models/MountTargetProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/MultiAdStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccount.java","src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceQuotaLimits.java","src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceQuotaLimitsAccounts.java","src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceRegionInfos.java","src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceUsages.java","src/main/java/com/azure/resourcemanager/netapp/models/NetAppResources.java","src/main/java/com/azure/resourcemanager/netapp/models/NetworkFeatures.java","src/main/java/com/azure/resourcemanager/netapp/models/NetworkSiblingSet.java","src/main/java/com/azure/resourcemanager/netapp/models/NetworkSiblingSetProvisioningState.java","src/main/java/com/azure/resourcemanager/netapp/models/NfsUser.java","src/main/java/com/azure/resourcemanager/netapp/models/NicInfo.java","src/main/java/com/azure/resourcemanager/netapp/models/OnCertificateConflictAction.java","src/main/java/com/azure/resourcemanager/netapp/models/Operation.java","src/main/java/com/azure/resourcemanager/netapp/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/netapp/models/Operations.java","src/main/java/com/azure/resourcemanager/netapp/models/OriginClusterInformation.java","src/main/java/com/azure/resourcemanager/netapp/models/PeerClusterForVolumeMigrationRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/PeeringPassphrases.java","src/main/java/com/azure/resourcemanager/netapp/models/PlacementKeyValuePairs.java","src/main/java/com/azure/resourcemanager/netapp/models/PolicyStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/PoolChangeRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/Pools.java","src/main/java/com/azure/resourcemanager/netapp/models/ProtocolTypes.java","src/main/java/com/azure/resourcemanager/netapp/models/ProvisioningState.java","src/main/java/com/azure/resourcemanager/netapp/models/QosType.java","src/main/java/com/azure/resourcemanager/netapp/models/QueryNetworkSiblingSetRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/QuotaAvailabilityRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/QuotaReport.java","src/main/java/com/azure/resourcemanager/netapp/models/QuotaReportFilterRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/QuotaType.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareProtectionPatchSettings.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareProtectionSettings.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareReport.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareReportProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareReportSeverity.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareReportState.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareReports.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareSuspectResolution.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareSuspects.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareSuspectsClearRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/ReestablishReplicationRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/RegionInfo.java","src/main/java/com/azure/resourcemanager/netapp/models/RegionInfoAvailabilityZoneMappingsItem.java","src/main/java/com/azure/resourcemanager/netapp/models/RegionInfoResource.java","src/main/java/com/azure/resourcemanager/netapp/models/RegionStorageToNetworkProximity.java","src/main/java/com/azure/resourcemanager/netapp/models/RelocateVolumeRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/RemotePath.java","src/main/java/com/azure/resourcemanager/netapp/models/Replication.java","src/main/java/com/azure/resourcemanager/netapp/models/ReplicationMirrorState.java","src/main/java/com/azure/resourcemanager/netapp/models/ReplicationObject.java","src/main/java/com/azure/resourcemanager/netapp/models/ReplicationSchedule.java","src/main/java/com/azure/resourcemanager/netapp/models/ReplicationStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/ReplicationType.java","src/main/java/com/azure/resourcemanager/netapp/models/ResourceNameAvailabilityRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/RestoreStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/SecretPassword.java","src/main/java/com/azure/resourcemanager/netapp/models/SecretPasswordIdentity.java","src/main/java/com/azure/resourcemanager/netapp/models/SecretPasswordKeyVaultProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/SecureLdapType.java","src/main/java/com/azure/resourcemanager/netapp/models/SecurityStyle.java","src/main/java/com/azure/resourcemanager/netapp/models/ServiceLevel.java","src/main/java/com/azure/resourcemanager/netapp/models/ServiceSpecification.java","src/main/java/com/azure/resourcemanager/netapp/models/SmbAccessBasedEnumeration.java","src/main/java/com/azure/resourcemanager/netapp/models/SmbEncryptionState.java","src/main/java/com/azure/resourcemanager/netapp/models/SmbNonBrowsable.java","src/main/java/com/azure/resourcemanager/netapp/models/SmbSettings.java","src/main/java/com/azure/resourcemanager/netapp/models/Snapshot.java","src/main/java/com/azure/resourcemanager/netapp/models/SnapshotDirectoryVisibility.java","src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicies.java","src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyVolumeList.java","src/main/java/com/azure/resourcemanager/netapp/models/SnapshotRestoreFiles.java","src/main/java/com/azure/resourcemanager/netapp/models/SnapshotUsage.java","src/main/java/com/azure/resourcemanager/netapp/models/Snapshots.java","src/main/java/com/azure/resourcemanager/netapp/models/SubscriptionQuotaItem.java","src/main/java/com/azure/resourcemanager/netapp/models/SubvolumeInfo.java","src/main/java/com/azure/resourcemanager/netapp/models/SubvolumeModel.java","src/main/java/com/azure/resourcemanager/netapp/models/SubvolumePatchRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/Subvolumes.java","src/main/java/com/azure/resourcemanager/netapp/models/SuspectFile.java","src/main/java/com/azure/resourcemanager/netapp/models/SvmPeerCommandResponse.java","src/main/java/com/azure/resourcemanager/netapp/models/SvmPeerCommandResponseProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/UpdateNetworkSiblingSetRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/UsageName.java","src/main/java/com/azure/resourcemanager/netapp/models/UsageResult.java","src/main/java/com/azure/resourcemanager/netapp/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/netapp/models/Volume.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackupProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackupRelationshipStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackups.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroup.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupDetails.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupMetadata.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupVolumeProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroups.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeLanguage.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumePatch.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesDataProtection.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesExportPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesDataProtection.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesExportPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRule.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRulePatch.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRules.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeRelocationProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeReplicationRelationshipStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeRestoreRelationshipStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeRevert.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeSize.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeSnapshotProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeStorageToNetworkProximity.java","src/main/java/com/azure/resourcemanager/netapp/models/Volumes.java","src/main/java/com/azure/resourcemanager/netapp/models/WeeklySchedule.java","src/main/java/com/azure/resourcemanager/netapp/models/package-info.java","src/main/java/com/azure/resourcemanager/netapp/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file +{"flavor":"azure","apiVersions":{"Microsoft.NetApp":"2026-08-01"},"crossLanguagePackageId":"Microsoft.NetApp","crossLanguageVersion":"364a2f7b75ab","crossLanguageDefinitions":{"com.azure.resourcemanager.netapp.fluent.AccountsClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.AccountsClient.beginChangeKeyVault":"Microsoft.NetApp.NetAppAccounts.changeKeyVault","com.azure.resourcemanager.netapp.fluent.AccountsClient.beginCreateOrUpdate":"Microsoft.NetApp.NetAppAccounts.createOrUpdate","com.azure.resourcemanager.netapp.fluent.AccountsClient.beginDelete":"Microsoft.NetApp.NetAppAccounts.delete","com.azure.resourcemanager.netapp.fluent.AccountsClient.beginGetChangeKeyVaultInformation":"Microsoft.NetApp.NetAppAccounts.getChangeKeyVaultInformation","com.azure.resourcemanager.netapp.fluent.AccountsClient.beginRefreshLdapBindPassword":"Microsoft.NetApp.NetAppAccounts.refreshLdapBindPassword","com.azure.resourcemanager.netapp.fluent.AccountsClient.beginRenewCredentials":"Microsoft.NetApp.NetAppAccounts.renewCredentials","com.azure.resourcemanager.netapp.fluent.AccountsClient.beginTransitionToCmk":"Microsoft.NetApp.NetAppAccounts.transitionToCmk","com.azure.resourcemanager.netapp.fluent.AccountsClient.beginUpdate":"Microsoft.NetApp.NetAppAccounts.update","com.azure.resourcemanager.netapp.fluent.AccountsClient.changeKeyVault":"Microsoft.NetApp.NetAppAccounts.changeKeyVault","com.azure.resourcemanager.netapp.fluent.AccountsClient.createOrUpdate":"Microsoft.NetApp.NetAppAccounts.createOrUpdate","com.azure.resourcemanager.netapp.fluent.AccountsClient.delete":"Microsoft.NetApp.NetAppAccounts.delete","com.azure.resourcemanager.netapp.fluent.AccountsClient.getByResourceGroup":"Microsoft.NetApp.NetAppAccounts.get","com.azure.resourcemanager.netapp.fluent.AccountsClient.getByResourceGroupWithResponse":"Microsoft.NetApp.NetAppAccounts.get","com.azure.resourcemanager.netapp.fluent.AccountsClient.getChangeKeyVaultInformation":"Microsoft.NetApp.NetAppAccounts.getChangeKeyVaultInformation","com.azure.resourcemanager.netapp.fluent.AccountsClient.list":"Microsoft.NetApp.NetAppAccounts.listBySubscription","com.azure.resourcemanager.netapp.fluent.AccountsClient.listByResourceGroup":"Microsoft.NetApp.NetAppAccounts.list","com.azure.resourcemanager.netapp.fluent.AccountsClient.refreshLdapBindPassword":"Microsoft.NetApp.NetAppAccounts.refreshLdapBindPassword","com.azure.resourcemanager.netapp.fluent.AccountsClient.renewCredentials":"Microsoft.NetApp.NetAppAccounts.renewCredentials","com.azure.resourcemanager.netapp.fluent.AccountsClient.transitionToCmk":"Microsoft.NetApp.NetAppAccounts.transitionToCmk","com.azure.resourcemanager.netapp.fluent.AccountsClient.update":"Microsoft.NetApp.NetAppAccounts.update","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient":"Microsoft.NetApp.BackupPolicies","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.beginCreate":"Microsoft.NetApp.BackupPolicies.create","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.beginDelete":"Microsoft.NetApp.BackupPolicies.delete","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.beginUpdate":"Microsoft.NetApp.BackupPolicies.update","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.create":"Microsoft.NetApp.BackupPolicies.create","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.delete":"Microsoft.NetApp.BackupPolicies.delete","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.get":"Microsoft.NetApp.BackupPolicies.get","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.getWithResponse":"Microsoft.NetApp.BackupPolicies.get","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.list":"Microsoft.NetApp.BackupPolicies.list","com.azure.resourcemanager.netapp.fluent.BackupPoliciesClient.update":"Microsoft.NetApp.BackupPolicies.update","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient":"Microsoft.NetApp.BackupVaults","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.beginCreateOrUpdate":"Microsoft.NetApp.BackupVaults.createOrUpdate","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.beginDelete":"Microsoft.NetApp.BackupVaults.delete","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.beginUpdate":"Microsoft.NetApp.BackupVaults.update","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.createOrUpdate":"Microsoft.NetApp.BackupVaults.createOrUpdate","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.delete":"Microsoft.NetApp.BackupVaults.delete","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.get":"Microsoft.NetApp.BackupVaults.get","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.getWithResponse":"Microsoft.NetApp.BackupVaults.get","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.listByNetAppAccount":"Microsoft.NetApp.BackupVaults.listByNetAppAccount","com.azure.resourcemanager.netapp.fluent.BackupVaultsClient.update":"Microsoft.NetApp.BackupVaults.update","com.azure.resourcemanager.netapp.fluent.BackupsClient":"Microsoft.NetApp.Backups","com.azure.resourcemanager.netapp.fluent.BackupsClient.beginCreate":"Microsoft.NetApp.Backups.create","com.azure.resourcemanager.netapp.fluent.BackupsClient.beginDelete":"Microsoft.NetApp.Backups.delete","com.azure.resourcemanager.netapp.fluent.BackupsClient.beginUpdate":"Microsoft.NetApp.Backups.update","com.azure.resourcemanager.netapp.fluent.BackupsClient.create":"Microsoft.NetApp.Backups.create","com.azure.resourcemanager.netapp.fluent.BackupsClient.delete":"Microsoft.NetApp.Backups.delete","com.azure.resourcemanager.netapp.fluent.BackupsClient.get":"Microsoft.NetApp.Backups.get","com.azure.resourcemanager.netapp.fluent.BackupsClient.getLatestStatus":"Microsoft.NetApp.Volumes.getLatestStatus","com.azure.resourcemanager.netapp.fluent.BackupsClient.getLatestStatusWithResponse":"Microsoft.NetApp.Volumes.getLatestStatus","com.azure.resourcemanager.netapp.fluent.BackupsClient.getVolumeLatestRestoreStatus":"Microsoft.NetApp.Volumes.getVolumeLatestRestoreStatus","com.azure.resourcemanager.netapp.fluent.BackupsClient.getVolumeLatestRestoreStatusWithResponse":"Microsoft.NetApp.Volumes.getVolumeLatestRestoreStatus","com.azure.resourcemanager.netapp.fluent.BackupsClient.getWithResponse":"Microsoft.NetApp.Backups.get","com.azure.resourcemanager.netapp.fluent.BackupsClient.listByVault":"Microsoft.NetApp.Backups.listByVault","com.azure.resourcemanager.netapp.fluent.BackupsClient.update":"Microsoft.NetApp.Backups.update","com.azure.resourcemanager.netapp.fluent.BackupsUnderAccountsClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.BackupsUnderAccountsClient.beginMigrateBackups":"Microsoft.NetApp.NetAppAccounts.migrateBackups","com.azure.resourcemanager.netapp.fluent.BackupsUnderAccountsClient.migrateBackups":"Microsoft.NetApp.NetAppAccounts.migrateBackups","com.azure.resourcemanager.netapp.fluent.BackupsUnderBackupVaultsClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.BackupsUnderBackupVaultsClient.beginRestoreFiles":"Microsoft.NetApp.Backups.restoreFiles","com.azure.resourcemanager.netapp.fluent.BackupsUnderBackupVaultsClient.restoreFiles":"Microsoft.NetApp.Backups.restoreFiles","com.azure.resourcemanager.netapp.fluent.BackupsUnderVolumesClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.BackupsUnderVolumesClient.beginMigrateBackups":"Microsoft.NetApp.Volumes.migrateBackups","com.azure.resourcemanager.netapp.fluent.BackupsUnderVolumesClient.migrateBackups":"Microsoft.NetApp.Volumes.migrateBackups","com.azure.resourcemanager.netapp.fluent.BucketsClient":"Microsoft.NetApp.Buckets","com.azure.resourcemanager.netapp.fluent.BucketsClient.beginCreateOrUpdate":"Microsoft.NetApp.Buckets.createOrUpdate","com.azure.resourcemanager.netapp.fluent.BucketsClient.beginDelete":"Microsoft.NetApp.Buckets.delete","com.azure.resourcemanager.netapp.fluent.BucketsClient.beginGenerateAkvCredentials":"Microsoft.NetApp.Buckets.generateAkvCredentials","com.azure.resourcemanager.netapp.fluent.BucketsClient.beginRefreshCertificate":"Microsoft.NetApp.Buckets.refreshCertificate","com.azure.resourcemanager.netapp.fluent.BucketsClient.beginUpdate":"Microsoft.NetApp.Buckets.update","com.azure.resourcemanager.netapp.fluent.BucketsClient.createOrUpdate":"Microsoft.NetApp.Buckets.createOrUpdate","com.azure.resourcemanager.netapp.fluent.BucketsClient.delete":"Microsoft.NetApp.Buckets.delete","com.azure.resourcemanager.netapp.fluent.BucketsClient.generateAkvCredentials":"Microsoft.NetApp.Buckets.generateAkvCredentials","com.azure.resourcemanager.netapp.fluent.BucketsClient.generateCredentials":"Microsoft.NetApp.Buckets.generateCredentials","com.azure.resourcemanager.netapp.fluent.BucketsClient.generateCredentialsWithResponse":"Microsoft.NetApp.Buckets.generateCredentials","com.azure.resourcemanager.netapp.fluent.BucketsClient.get":"Microsoft.NetApp.Buckets.get","com.azure.resourcemanager.netapp.fluent.BucketsClient.getWithResponse":"Microsoft.NetApp.Buckets.get","com.azure.resourcemanager.netapp.fluent.BucketsClient.list":"Microsoft.NetApp.Buckets.list","com.azure.resourcemanager.netapp.fluent.BucketsClient.refreshCertificate":"Microsoft.NetApp.Buckets.refreshCertificate","com.azure.resourcemanager.netapp.fluent.BucketsClient.update":"Microsoft.NetApp.Buckets.update","com.azure.resourcemanager.netapp.fluent.CachesClient":"Microsoft.NetApp.Caches","com.azure.resourcemanager.netapp.fluent.CachesClient.beginCreateOrUpdate":"Microsoft.NetApp.Caches.createOrUpdate","com.azure.resourcemanager.netapp.fluent.CachesClient.beginDelete":"Microsoft.NetApp.Caches.delete","com.azure.resourcemanager.netapp.fluent.CachesClient.beginPoolChange":"Microsoft.NetApp.Caches.poolChange","com.azure.resourcemanager.netapp.fluent.CachesClient.beginResetSmbPassword":"Microsoft.NetApp.Caches.resetSmbPassword","com.azure.resourcemanager.netapp.fluent.CachesClient.beginUpdate":"Microsoft.NetApp.Caches.update","com.azure.resourcemanager.netapp.fluent.CachesClient.createOrUpdate":"Microsoft.NetApp.Caches.createOrUpdate","com.azure.resourcemanager.netapp.fluent.CachesClient.delete":"Microsoft.NetApp.Caches.delete","com.azure.resourcemanager.netapp.fluent.CachesClient.get":"Microsoft.NetApp.Caches.get","com.azure.resourcemanager.netapp.fluent.CachesClient.getWithResponse":"Microsoft.NetApp.Caches.get","com.azure.resourcemanager.netapp.fluent.CachesClient.list":"Microsoft.NetApp.Caches.list","com.azure.resourcemanager.netapp.fluent.CachesClient.listPeeringPassphrases":"Microsoft.NetApp.Caches.listPeeringPassphrases","com.azure.resourcemanager.netapp.fluent.CachesClient.listPeeringPassphrasesWithResponse":"Microsoft.NetApp.Caches.listPeeringPassphrases","com.azure.resourcemanager.netapp.fluent.CachesClient.poolChange":"Microsoft.NetApp.Caches.poolChange","com.azure.resourcemanager.netapp.fluent.CachesClient.resetSmbPassword":"Microsoft.NetApp.Caches.resetSmbPassword","com.azure.resourcemanager.netapp.fluent.CachesClient.update":"Microsoft.NetApp.Caches.update","com.azure.resourcemanager.netapp.fluent.NetAppManagementClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsAccountsClient":"Microsoft.NetApp.NetAppResourceQuotaLimitsAccount","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsAccountsClient.get":"Microsoft.NetApp.NetAppResourceQuotaLimitsAccount.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsAccountsClient.getWithResponse":"Microsoft.NetApp.NetAppResourceQuotaLimitsAccount.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsAccountsClient.list":"Microsoft.NetApp.NetAppResourceQuotaLimitsAccount.list","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsClient.get":"Microsoft.NetApp.SubscriptionQuotaItems.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsClient.getWithResponse":"Microsoft.NetApp.SubscriptionQuotaItems.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceQuotaLimitsClient.list":"Microsoft.NetApp.SubscriptionQuotaItems.list","com.azure.resourcemanager.netapp.fluent.NetAppResourceRegionInfosClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.NetAppResourceRegionInfosClient.get":"Microsoft.NetApp.RegionInfoResources.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceRegionInfosClient.getWithResponse":"Microsoft.NetApp.RegionInfoResources.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceRegionInfosClient.list":"Microsoft.NetApp.RegionInfoResources.list","com.azure.resourcemanager.netapp.fluent.NetAppResourceUsagesClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.NetAppResourceUsagesClient.get":"Microsoft.NetApp.NetAppResourceUsagesOperationGroup.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceUsagesClient.getWithResponse":"Microsoft.NetApp.NetAppResourceUsagesOperationGroup.get","com.azure.resourcemanager.netapp.fluent.NetAppResourceUsagesClient.list":"Microsoft.NetApp.NetAppResourceUsagesOperationGroup.list","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.beginUpdateNetworkSiblingSet":"Microsoft.NetApp.NetAppResourceOperationGroup.updateNetworkSiblingSet","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.checkFilePathAvailability":"Microsoft.NetApp.NetAppResourceOperationGroup.checkFilePathAvailability","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.checkFilePathAvailabilityWithResponse":"Microsoft.NetApp.NetAppResourceOperationGroup.checkFilePathAvailability","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.checkNameAvailability":"Microsoft.NetApp.NetAppResourceOperationGroup.checkNameAvailability","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.checkNameAvailabilityWithResponse":"Microsoft.NetApp.NetAppResourceOperationGroup.checkNameAvailability","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.checkQuotaAvailability":"Microsoft.NetApp.NetAppResourceOperationGroup.checkQuotaAvailability","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.checkQuotaAvailabilityWithResponse":"Microsoft.NetApp.NetAppResourceOperationGroup.checkQuotaAvailability","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.queryNetworkSiblingSet":"Microsoft.NetApp.NetAppResourceOperationGroup.queryNetworkSiblingSet","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.queryNetworkSiblingSetWithResponse":"Microsoft.NetApp.NetAppResourceOperationGroup.queryNetworkSiblingSet","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.queryRegionInfo":"Microsoft.NetApp.NetAppResourceOperationGroup.queryRegionInfo","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.queryRegionInfoWithResponse":"Microsoft.NetApp.NetAppResourceOperationGroup.queryRegionInfo","com.azure.resourcemanager.netapp.fluent.NetAppResourcesClient.updateNetworkSiblingSet":"Microsoft.NetApp.NetAppResourceOperationGroup.updateNetworkSiblingSet","com.azure.resourcemanager.netapp.fluent.OperationsClient":"Microsoft.NetApp.Operations","com.azure.resourcemanager.netapp.fluent.OperationsClient.list":"Azure.ResourceManager.Legacy.Operations.list","com.azure.resourcemanager.netapp.fluent.PoolsClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.PoolsClient.beginCreateOrUpdate":"Microsoft.NetApp.CapacityPools.createOrUpdate","com.azure.resourcemanager.netapp.fluent.PoolsClient.beginDelete":"Microsoft.NetApp.CapacityPools.delete","com.azure.resourcemanager.netapp.fluent.PoolsClient.beginUpdate":"Microsoft.NetApp.CapacityPools.update","com.azure.resourcemanager.netapp.fluent.PoolsClient.createOrUpdate":"Microsoft.NetApp.CapacityPools.createOrUpdate","com.azure.resourcemanager.netapp.fluent.PoolsClient.delete":"Microsoft.NetApp.CapacityPools.delete","com.azure.resourcemanager.netapp.fluent.PoolsClient.get":"Microsoft.NetApp.CapacityPools.get","com.azure.resourcemanager.netapp.fluent.PoolsClient.getWithResponse":"Microsoft.NetApp.CapacityPools.get","com.azure.resourcemanager.netapp.fluent.PoolsClient.list":"Microsoft.NetApp.CapacityPools.list","com.azure.resourcemanager.netapp.fluent.PoolsClient.update":"Microsoft.NetApp.CapacityPools.update","com.azure.resourcemanager.netapp.fluent.RansomwareReportsClient":"Microsoft.NetApp.RansomwareReports","com.azure.resourcemanager.netapp.fluent.RansomwareReportsClient.beginClearSuspects":"Microsoft.NetApp.RansomwareReports.clearSuspects","com.azure.resourcemanager.netapp.fluent.RansomwareReportsClient.clearSuspects":"Microsoft.NetApp.RansomwareReports.clearSuspects","com.azure.resourcemanager.netapp.fluent.RansomwareReportsClient.get":"Microsoft.NetApp.RansomwareReports.get","com.azure.resourcemanager.netapp.fluent.RansomwareReportsClient.getWithResponse":"Microsoft.NetApp.RansomwareReports.get","com.azure.resourcemanager.netapp.fluent.RansomwareReportsClient.list":"Microsoft.NetApp.RansomwareReports.list","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient":"Microsoft.NetApp.SnapshotPolicies","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.beginDelete":"Microsoft.NetApp.SnapshotPolicies.delete","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.beginUpdate":"Microsoft.NetApp.SnapshotPolicies.update","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.create":"Microsoft.NetApp.SnapshotPolicies.create","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.createWithResponse":"Microsoft.NetApp.SnapshotPolicies.create","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.delete":"Microsoft.NetApp.SnapshotPolicies.delete","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.get":"Microsoft.NetApp.SnapshotPolicies.get","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.getWithResponse":"Microsoft.NetApp.SnapshotPolicies.get","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.list":"Microsoft.NetApp.SnapshotPolicies.list","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.listVolumes":"Microsoft.NetApp.SnapshotPolicies.listVolumes","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.listVolumesWithResponse":"Microsoft.NetApp.SnapshotPolicies.listVolumes","com.azure.resourcemanager.netapp.fluent.SnapshotPoliciesClient.update":"Microsoft.NetApp.SnapshotPolicies.update","com.azure.resourcemanager.netapp.fluent.SnapshotsClient":"Microsoft.NetApp.Snapshots","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.beginCreate":"Microsoft.NetApp.Snapshots.create","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.beginDelete":"Microsoft.NetApp.Snapshots.delete","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.beginRestoreFiles":"Microsoft.NetApp.Snapshots.restoreFiles","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.create":"Microsoft.NetApp.Snapshots.create","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.delete":"Microsoft.NetApp.Snapshots.delete","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.get":"Microsoft.NetApp.Snapshots.get","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.getWithResponse":"Microsoft.NetApp.Snapshots.get","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.list":"Microsoft.NetApp.Snapshots.list","com.azure.resourcemanager.netapp.fluent.SnapshotsClient.restoreFiles":"Microsoft.NetApp.Snapshots.restoreFiles","com.azure.resourcemanager.netapp.fluent.SubvolumesClient":"Microsoft.NetApp","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.beginCreate":"Microsoft.NetApp.SubvolumeInfos.create","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.beginDelete":"Microsoft.NetApp.SubvolumeInfos.delete","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.beginGetMetadata":"Microsoft.NetApp.SubvolumeInfos.getMetadata","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.beginUpdate":"Microsoft.NetApp.SubvolumeInfos.update","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.create":"Microsoft.NetApp.SubvolumeInfos.create","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.delete":"Microsoft.NetApp.SubvolumeInfos.delete","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.get":"Microsoft.NetApp.SubvolumeInfos.get","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.getMetadata":"Microsoft.NetApp.SubvolumeInfos.getMetadata","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.getWithResponse":"Microsoft.NetApp.SubvolumeInfos.get","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.listByVolume":"Microsoft.NetApp.SubvolumeInfos.listByVolume","com.azure.resourcemanager.netapp.fluent.SubvolumesClient.update":"Microsoft.NetApp.SubvolumeInfos.update","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient":"Microsoft.NetApp.VolumeGroups","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.beginCreate":"Microsoft.NetApp.VolumeGroups.create","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.beginDelete":"Microsoft.NetApp.VolumeGroups.delete","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.create":"Microsoft.NetApp.VolumeGroups.create","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.delete":"Microsoft.NetApp.VolumeGroups.delete","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.get":"Microsoft.NetApp.VolumeGroups.get","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.getWithResponse":"Microsoft.NetApp.VolumeGroups.get","com.azure.resourcemanager.netapp.fluent.VolumeGroupsClient.listByNetAppAccount":"Microsoft.NetApp.NetAppAccounts.listByNetAppAccount","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient":"Microsoft.NetApp.VolumeQuotaRules","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.beginCreate":"Microsoft.NetApp.VolumeQuotaRules.create","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.beginDelete":"Microsoft.NetApp.VolumeQuotaRules.delete","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.beginUpdate":"Microsoft.NetApp.VolumeQuotaRules.update","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.create":"Microsoft.NetApp.VolumeQuotaRules.create","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.delete":"Microsoft.NetApp.VolumeQuotaRules.delete","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.get":"Microsoft.NetApp.VolumeQuotaRules.get","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.getWithResponse":"Microsoft.NetApp.VolumeQuotaRules.get","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.listByVolume":"Microsoft.NetApp.VolumeQuotaRules.listByVolume","com.azure.resourcemanager.netapp.fluent.VolumeQuotaRulesClient.update":"Microsoft.NetApp.VolumeQuotaRules.update","com.azure.resourcemanager.netapp.fluent.VolumesClient":"Microsoft.NetApp.Volumes","com.azure.resourcemanager.netapp.fluent.VolumesClient.authorizeExternalReplication":"Microsoft.NetApp.Volumes.authorizeExternalReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.authorizeReplication":"Microsoft.NetApp.Volumes.authorizeReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginAuthorizeExternalReplication":"Microsoft.NetApp.Volumes.authorizeExternalReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginAuthorizeReplication":"Microsoft.NetApp.Volumes.authorizeReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginBreakFileLocks":"Microsoft.NetApp.Volumes.breakFileLocks","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginBreakReplication":"Microsoft.NetApp.Volumes.breakReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginCreateOrUpdate":"Microsoft.NetApp.Volumes.createOrUpdate","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginDelete":"Microsoft.NetApp.Volumes.delete","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginDeleteReplication":"Microsoft.NetApp.Volumes.deleteReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginFinalizeExternalReplication":"Microsoft.NetApp.Volumes.finalizeExternalReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginFinalizeRelocation":"Microsoft.NetApp.Volumes.finalizeRelocation","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginListGetGroupIdListForLdapUser":"Microsoft.NetApp.Volumes.listGetGroupIdListForLdapUser","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginListQuotaReport":"Microsoft.NetApp.Volumes.listQuotaReport","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginPeerExternalCluster":"Microsoft.NetApp.Volumes.peerExternalCluster","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginPerformReplicationTransfer":"Microsoft.NetApp.Volumes.performReplicationTransfer","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginPoolChange":"Microsoft.NetApp.Volumes.poolChange","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginPopulateAvailabilityZone":"Microsoft.NetApp.Volumes.populateAvailabilityZone","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginReInitializeReplication":"Microsoft.NetApp.Volumes.reInitializeReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginReestablishReplication":"Microsoft.NetApp.Volumes.reestablishReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginRelocate":"Microsoft.NetApp.Volumes.relocate","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginResetCifsPassword":"Microsoft.NetApp.Volumes.resetCifsPassword","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginResyncReplication":"Microsoft.NetApp.Volumes.resyncReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginRevert":"Microsoft.NetApp.Volumes.revert","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginRevertRelocation":"Microsoft.NetApp.Volumes.revertRelocation","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginSplitCloneFromParent":"Microsoft.NetApp.Volumes.splitCloneFromParent","com.azure.resourcemanager.netapp.fluent.VolumesClient.beginUpdate":"Microsoft.NetApp.Volumes.update","com.azure.resourcemanager.netapp.fluent.VolumesClient.breakFileLocks":"Microsoft.NetApp.Volumes.breakFileLocks","com.azure.resourcemanager.netapp.fluent.VolumesClient.breakReplication":"Microsoft.NetApp.Volumes.breakReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.createOrUpdate":"Microsoft.NetApp.Volumes.createOrUpdate","com.azure.resourcemanager.netapp.fluent.VolumesClient.delete":"Microsoft.NetApp.Volumes.delete","com.azure.resourcemanager.netapp.fluent.VolumesClient.deleteReplication":"Microsoft.NetApp.Volumes.deleteReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.finalizeExternalReplication":"Microsoft.NetApp.Volumes.finalizeExternalReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.finalizeRelocation":"Microsoft.NetApp.Volumes.finalizeRelocation","com.azure.resourcemanager.netapp.fluent.VolumesClient.get":"Microsoft.NetApp.Volumes.get","com.azure.resourcemanager.netapp.fluent.VolumesClient.getWithResponse":"Microsoft.NetApp.Volumes.get","com.azure.resourcemanager.netapp.fluent.VolumesClient.list":"Microsoft.NetApp.Volumes.list","com.azure.resourcemanager.netapp.fluent.VolumesClient.listGetGroupIdListForLdapUser":"Microsoft.NetApp.Volumes.listGetGroupIdListForLdapUser","com.azure.resourcemanager.netapp.fluent.VolumesClient.listQuotaReport":"Microsoft.NetApp.Volumes.listQuotaReport","com.azure.resourcemanager.netapp.fluent.VolumesClient.listReplications":"Microsoft.NetApp.Volumes.listReplications","com.azure.resourcemanager.netapp.fluent.VolumesClient.peerExternalCluster":"Microsoft.NetApp.Volumes.peerExternalCluster","com.azure.resourcemanager.netapp.fluent.VolumesClient.performReplicationTransfer":"Microsoft.NetApp.Volumes.performReplicationTransfer","com.azure.resourcemanager.netapp.fluent.VolumesClient.poolChange":"Microsoft.NetApp.Volumes.poolChange","com.azure.resourcemanager.netapp.fluent.VolumesClient.populateAvailabilityZone":"Microsoft.NetApp.Volumes.populateAvailabilityZone","com.azure.resourcemanager.netapp.fluent.VolumesClient.reInitializeReplication":"Microsoft.NetApp.Volumes.reInitializeReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.reestablishReplication":"Microsoft.NetApp.Volumes.reestablishReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.relocate":"Microsoft.NetApp.Volumes.relocate","com.azure.resourcemanager.netapp.fluent.VolumesClient.replicationStatus":"Microsoft.NetApp.Volumes.replicationStatus","com.azure.resourcemanager.netapp.fluent.VolumesClient.replicationStatusWithResponse":"Microsoft.NetApp.Volumes.replicationStatus","com.azure.resourcemanager.netapp.fluent.VolumesClient.resetCifsPassword":"Microsoft.NetApp.Volumes.resetCifsPassword","com.azure.resourcemanager.netapp.fluent.VolumesClient.resyncReplication":"Microsoft.NetApp.Volumes.resyncReplication","com.azure.resourcemanager.netapp.fluent.VolumesClient.revert":"Microsoft.NetApp.Volumes.revert","com.azure.resourcemanager.netapp.fluent.VolumesClient.revertRelocation":"Microsoft.NetApp.Volumes.revertRelocation","com.azure.resourcemanager.netapp.fluent.VolumesClient.splitCloneFromParent":"Microsoft.NetApp.Volumes.splitCloneFromParent","com.azure.resourcemanager.netapp.fluent.VolumesClient.update":"Microsoft.NetApp.Volumes.update","com.azure.resourcemanager.netapp.fluent.models.AccountProperties":"Microsoft.NetApp.AccountProperties","com.azure.resourcemanager.netapp.fluent.models.AccountPropertiesPatch":"Microsoft.NetApp.AccountPropertiesPatch","com.azure.resourcemanager.netapp.fluent.models.BackupInner":"Microsoft.NetApp.Backup","com.azure.resourcemanager.netapp.fluent.models.BackupPatchProperties":"Microsoft.NetApp.BackupPatchProperties","com.azure.resourcemanager.netapp.fluent.models.BackupPolicyInner":"Microsoft.NetApp.BackupPolicy","com.azure.resourcemanager.netapp.fluent.models.BackupPolicyProperties":"Microsoft.NetApp.BackupPolicyProperties","com.azure.resourcemanager.netapp.fluent.models.BackupProperties":"Microsoft.NetApp.BackupProperties","com.azure.resourcemanager.netapp.fluent.models.BackupStatusInner":"Microsoft.NetApp.BackupStatus","com.azure.resourcemanager.netapp.fluent.models.BackupVaultInner":"Microsoft.NetApp.BackupVault","com.azure.resourcemanager.netapp.fluent.models.BackupVaultProperties":"Microsoft.NetApp.BackupVaultProperties","com.azure.resourcemanager.netapp.fluent.models.BucketGenerateCredentialsInner":"Microsoft.NetApp.BucketGenerateCredentials","com.azure.resourcemanager.netapp.fluent.models.BucketInner":"Microsoft.NetApp.Bucket","com.azure.resourcemanager.netapp.fluent.models.BucketPatchProperties":"Microsoft.NetApp.BucketPatchProperties","com.azure.resourcemanager.netapp.fluent.models.BucketProperties":"Microsoft.NetApp.BucketProperties","com.azure.resourcemanager.netapp.fluent.models.CacheInner":"Microsoft.NetApp.Cache","com.azure.resourcemanager.netapp.fluent.models.CapacityPoolInner":"Microsoft.NetApp.CapacityPool","com.azure.resourcemanager.netapp.fluent.models.CheckAvailabilityResponseInner":"Microsoft.NetApp.CheckAvailabilityResponse","com.azure.resourcemanager.netapp.fluent.models.ClusterPeerCommandResponseInner":"Microsoft.NetApp.ClusterPeerCommandResponse","com.azure.resourcemanager.netapp.fluent.models.GetGroupIdListForLdapUserResponseInner":"Microsoft.NetApp.GetGroupIdListForLdapUserResponse","com.azure.resourcemanager.netapp.fluent.models.GetKeyVaultStatusResponseInner":"Microsoft.NetApp.GetKeyVaultStatusResponse","com.azure.resourcemanager.netapp.fluent.models.GetKeyVaultStatusResponseProperties":"Microsoft.NetApp.GetKeyVaultStatusResponseProperties","com.azure.resourcemanager.netapp.fluent.models.ListQuotaReportResultInner":"Microsoft.NetApp.ListQuotaReportResult","com.azure.resourcemanager.netapp.fluent.models.NetAppAccountInner":"Microsoft.NetApp.NetAppAccount","com.azure.resourcemanager.netapp.fluent.models.NetworkSiblingSetInner":"Microsoft.NetApp.NetworkSiblingSet","com.azure.resourcemanager.netapp.fluent.models.OperationInner":"Microsoft.NetApp.Operation","com.azure.resourcemanager.netapp.fluent.models.OperationProperties":"Microsoft.NetApp.OperationProperties","com.azure.resourcemanager.netapp.fluent.models.PeeringPassphrasesInner":"Microsoft.NetApp.PeeringPassphrases","com.azure.resourcemanager.netapp.fluent.models.PoolPatchProperties":"Microsoft.NetApp.PoolPatchProperties","com.azure.resourcemanager.netapp.fluent.models.PoolProperties":"Microsoft.NetApp.PoolProperties","com.azure.resourcemanager.netapp.fluent.models.QuotaItemProperties":"Microsoft.NetApp.QuotaItemProperties","com.azure.resourcemanager.netapp.fluent.models.RansomwareReportInner":"Microsoft.NetApp.RansomwareReport","com.azure.resourcemanager.netapp.fluent.models.RegionInfoInner":"Microsoft.NetApp.RegionInfo","com.azure.resourcemanager.netapp.fluent.models.RegionInfoResourceInner":"Microsoft.NetApp.RegionInfoResource","com.azure.resourcemanager.netapp.fluent.models.ReplicationInner":"Microsoft.NetApp.Replication","com.azure.resourcemanager.netapp.fluent.models.ReplicationStatusInner":"Microsoft.NetApp.ReplicationStatus","com.azure.resourcemanager.netapp.fluent.models.RestoreStatusInner":"Microsoft.NetApp.RestoreStatus","com.azure.resourcemanager.netapp.fluent.models.SnapshotInner":"Microsoft.NetApp.Snapshot","com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyInner":"Microsoft.NetApp.SnapshotPolicy","com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyProperties":"Microsoft.NetApp.SnapshotPolicyProperties","com.azure.resourcemanager.netapp.fluent.models.SnapshotPolicyVolumeListInner":"Microsoft.NetApp.SnapshotPolicyVolumeList","com.azure.resourcemanager.netapp.fluent.models.SnapshotProperties":"Microsoft.NetApp.SnapshotProperties","com.azure.resourcemanager.netapp.fluent.models.SubscriptionQuotaItemInner":"Microsoft.NetApp.QuotaItem","com.azure.resourcemanager.netapp.fluent.models.SubvolumeInfoInner":"Microsoft.NetApp.SubvolumeInfo","com.azure.resourcemanager.netapp.fluent.models.SubvolumeModelInner":"Microsoft.NetApp.SubvolumeModel","com.azure.resourcemanager.netapp.fluent.models.SubvolumeModelProperties":"Microsoft.NetApp.SubvolumeModelProperties","com.azure.resourcemanager.netapp.fluent.models.SubvolumePatchParams":"Microsoft.NetApp.SubvolumePatchParams","com.azure.resourcemanager.netapp.fluent.models.SubvolumeProperties":"Microsoft.NetApp.SubvolumeProperties","com.azure.resourcemanager.netapp.fluent.models.SvmPeerCommandResponseInner":"Microsoft.NetApp.SvmPeerCommandResponse","com.azure.resourcemanager.netapp.fluent.models.UsageProperties":"Microsoft.NetApp.UsageProperties","com.azure.resourcemanager.netapp.fluent.models.UsageResultInner":"Microsoft.NetApp.UsageResult","com.azure.resourcemanager.netapp.fluent.models.VolumeGroupDetailsInner":"Microsoft.NetApp.VolumeGroupDetails","com.azure.resourcemanager.netapp.fluent.models.VolumeGroupInner":"Microsoft.NetApp.VolumeGroup","com.azure.resourcemanager.netapp.fluent.models.VolumeGroupListProperties":"Microsoft.NetApp.VolumeGroupListProperties","com.azure.resourcemanager.netapp.fluent.models.VolumeGroupProperties":"Microsoft.NetApp.VolumeGroupProperties","com.azure.resourcemanager.netapp.fluent.models.VolumeInner":"Microsoft.NetApp.Volume","com.azure.resourcemanager.netapp.fluent.models.VolumePatchProperties":"Microsoft.NetApp.VolumePatchProperties","com.azure.resourcemanager.netapp.fluent.models.VolumeProperties":"Microsoft.NetApp.VolumeProperties","com.azure.resourcemanager.netapp.fluent.models.VolumeQuotaRuleInner":"Microsoft.NetApp.VolumeQuotaRule","com.azure.resourcemanager.netapp.fluent.models.VolumeQuotaRulesProperties":"Microsoft.NetApp.VolumeQuotaRulesProperties","com.azure.resourcemanager.netapp.implementation.NetAppManagementClientBuilder":"Microsoft.NetApp","com.azure.resourcemanager.netapp.implementation.models.BackupPoliciesList":"Microsoft.NetApp.BackupPoliciesList","com.azure.resourcemanager.netapp.implementation.models.BackupVaultsList":"Microsoft.NetApp.BackupVaultsList","com.azure.resourcemanager.netapp.implementation.models.BackupsList":"Microsoft.NetApp.BackupsList","com.azure.resourcemanager.netapp.implementation.models.BucketList":"Microsoft.NetApp.BucketList","com.azure.resourcemanager.netapp.implementation.models.CacheList":"Microsoft.NetApp.CacheList","com.azure.resourcemanager.netapp.implementation.models.CapacityPoolList":"Microsoft.NetApp.CapacityPoolList","com.azure.resourcemanager.netapp.implementation.models.ListReplications":"Microsoft.NetApp.ListReplications","com.azure.resourcemanager.netapp.implementation.models.NetAppAccountList":"Microsoft.NetApp.NetAppAccountList","com.azure.resourcemanager.netapp.implementation.models.OperationListResult":"Microsoft.NetApp.OperationListResult","com.azure.resourcemanager.netapp.implementation.models.QuotaItemList":"Microsoft.NetApp.QuotaItemList","com.azure.resourcemanager.netapp.implementation.models.RansomwareReportsList":"Microsoft.NetApp.RansomwareReportsList","com.azure.resourcemanager.netapp.implementation.models.RegionInfosList":"Microsoft.NetApp.RegionInfosList","com.azure.resourcemanager.netapp.implementation.models.SnapshotPoliciesList":"Microsoft.NetApp.SnapshotPoliciesList","com.azure.resourcemanager.netapp.implementation.models.SnapshotsList":"Microsoft.NetApp.SnapshotsList","com.azure.resourcemanager.netapp.implementation.models.SubvolumesList":"Microsoft.NetApp.SubvolumesList","com.azure.resourcemanager.netapp.implementation.models.UsagesListResult":"Microsoft.NetApp.UsagesListResult","com.azure.resourcemanager.netapp.implementation.models.VolumeGroupList":"Microsoft.NetApp.VolumeGroupList","com.azure.resourcemanager.netapp.implementation.models.VolumeList":"Microsoft.NetApp.VolumeList","com.azure.resourcemanager.netapp.implementation.models.VolumeQuotaRulesList":"Microsoft.NetApp.VolumeQuotaRulesList","com.azure.resourcemanager.netapp.models.AcceptGrowCapacityPoolForShortTermCloneSplit":"Microsoft.NetApp.AcceptGrowCapacityPoolForShortTermCloneSplit","com.azure.resourcemanager.netapp.models.AccountEncryption":"Microsoft.NetApp.AccountEncryption","com.azure.resourcemanager.netapp.models.AccountEncryptionPatch":"Microsoft.NetApp.AccountEncryptionPatch","com.azure.resourcemanager.netapp.models.ActiveDirectory":"Microsoft.NetApp.ActiveDirectory","com.azure.resourcemanager.netapp.models.ActiveDirectoryStatus":"Microsoft.NetApp.ActiveDirectoryStatus","com.azure.resourcemanager.netapp.models.ActualRansomwareProtectionState":"Microsoft.NetApp.ActualRansomwareProtectionState","com.azure.resourcemanager.netapp.models.ApplicationType":"Microsoft.NetApp.ApplicationType","com.azure.resourcemanager.netapp.models.AuthorizeRequest":"Microsoft.NetApp.AuthorizeRequest","com.azure.resourcemanager.netapp.models.AvsDataStore":"Microsoft.NetApp.AvsDataStore","com.azure.resourcemanager.netapp.models.AzureKeyVaultDetails":"Microsoft.NetApp.AzureKeyVaultDetails","com.azure.resourcemanager.netapp.models.BackupPatch":"Microsoft.NetApp.BackupPatch","com.azure.resourcemanager.netapp.models.BackupPolicyPatch":"Microsoft.NetApp.BackupPolicyPatch","com.azure.resourcemanager.netapp.models.BackupRestoreFiles":"Microsoft.NetApp.BackupRestoreFiles","com.azure.resourcemanager.netapp.models.BackupType":"Microsoft.NetApp.BackupType","com.azure.resourcemanager.netapp.models.BackupVaultPatch":"Microsoft.NetApp.BackupVaultPatch","com.azure.resourcemanager.netapp.models.BackupsMigrationRequest":"Microsoft.NetApp.BackupsMigrationRequest","com.azure.resourcemanager.netapp.models.BindAuthenticationLevel":"Microsoft.NetApp.BindAuthenticationLevel","com.azure.resourcemanager.netapp.models.BindPasswordAkvConfig":"Microsoft.NetApp.BindPasswordAkvConfig","com.azure.resourcemanager.netapp.models.BindPasswordAkvConfigPatch":"Microsoft.NetApp.BindPasswordAkvConfigPatch","com.azure.resourcemanager.netapp.models.BreakFileLocksRequest":"Microsoft.NetApp.BreakFileLocksRequest","com.azure.resourcemanager.netapp.models.BreakReplicationRequest":"Microsoft.NetApp.BreakReplicationRequest","com.azure.resourcemanager.netapp.models.BreakthroughMode":"Microsoft.NetApp.BreakthroughMode","com.azure.resourcemanager.netapp.models.BucketCredentialsExpiry":"Microsoft.NetApp.BucketCredentialsExpiry","com.azure.resourcemanager.netapp.models.BucketPatch":"Microsoft.NetApp.BucketPatch","com.azure.resourcemanager.netapp.models.BucketPatchPermissions":"Microsoft.NetApp.BucketPatchPermissions","com.azure.resourcemanager.netapp.models.BucketPermissions":"Microsoft.NetApp.BucketPermissions","com.azure.resourcemanager.netapp.models.BucketServerPatchProperties":"Microsoft.NetApp.BucketServerPatchProperties","com.azure.resourcemanager.netapp.models.BucketServerProperties":"Microsoft.NetApp.BucketServerProperties","com.azure.resourcemanager.netapp.models.CacheFileAccessLogs":"Microsoft.NetApp.CacheFileAccessLogs","com.azure.resourcemanager.netapp.models.CacheLifeCycleState":"Microsoft.NetApp.CacheLifeCycleState","com.azure.resourcemanager.netapp.models.CacheMountTargetProperties":"Microsoft.NetApp.CacheMountTargetProperties","com.azure.resourcemanager.netapp.models.CacheProperties":"Microsoft.NetApp.CacheProperties","com.azure.resourcemanager.netapp.models.CachePropertiesExportPolicy":"Microsoft.NetApp.CachePropertiesExportPolicy","com.azure.resourcemanager.netapp.models.CacheProvisioningState":"Microsoft.NetApp.CacheProvisioningState","com.azure.resourcemanager.netapp.models.CacheUpdate":"Azure.ResourceManager.Foundations.ResourceUpdateModel","com.azure.resourcemanager.netapp.models.CacheUpdateProperties":"Azure.ResourceManager.Foundations.ResourceUpdateModelProperties","com.azure.resourcemanager.netapp.models.CapacityPoolPatch":"Microsoft.NetApp.CapacityPoolPatch","com.azure.resourcemanager.netapp.models.CertificateAkvDetails":"Microsoft.NetApp.CertificateAkvDetails","com.azure.resourcemanager.netapp.models.ChangeKeyVault":"Microsoft.NetApp.ChangeKeyVault","com.azure.resourcemanager.netapp.models.CheckNameResourceTypes":"Microsoft.NetApp.CheckNameResourceTypes","com.azure.resourcemanager.netapp.models.CheckQuotaNameResourceTypes":"Microsoft.NetApp.CheckQuotaNameResourceTypes","com.azure.resourcemanager.netapp.models.ChownMode":"Microsoft.NetApp.ChownMode","com.azure.resourcemanager.netapp.models.CifsChangeNotifyState":"Microsoft.NetApp.CifsChangeNotifyState","com.azure.resourcemanager.netapp.models.CifsUser":"Microsoft.NetApp.CifsUser","com.azure.resourcemanager.netapp.models.ClusterPeerCommandResponseProperties":"Microsoft.NetApp.ClusterPeerCommandResponseProperties","com.azure.resourcemanager.netapp.models.CoolAccessRetrievalPolicy":"Microsoft.NetApp.CoolAccessRetrievalPolicy","com.azure.resourcemanager.netapp.models.CoolAccessTieringPolicy":"Microsoft.NetApp.CoolAccessTieringPolicy","com.azure.resourcemanager.netapp.models.CredentialsAkvDetails":"Microsoft.NetApp.CredentialsAkvDetails","com.azure.resourcemanager.netapp.models.CredentialsStatus":"Microsoft.NetApp.CredentialsStatus","com.azure.resourcemanager.netapp.models.DailySchedule":"Microsoft.NetApp.DailySchedule","com.azure.resourcemanager.netapp.models.DesiredRansomwareProtectionState":"Microsoft.NetApp.DesiredRansomwareProtectionState","com.azure.resourcemanager.netapp.models.DestinationReplication":"Microsoft.NetApp.DestinationReplication","com.azure.resourcemanager.netapp.models.Dimension":"Microsoft.NetApp.Dimension","com.azure.resourcemanager.netapp.models.EnableSubvolumes":"Microsoft.NetApp.EnableSubvolumes","com.azure.resourcemanager.netapp.models.EnableWriteBackState":"Microsoft.NetApp.EnableWriteBackState","com.azure.resourcemanager.netapp.models.EncryptionIdentity":"Microsoft.NetApp.EncryptionIdentity","com.azure.resourcemanager.netapp.models.EncryptionIdentityPatch":"Microsoft.NetApp.EncryptionIdentityPatch","com.azure.resourcemanager.netapp.models.EncryptionKeySource":"Microsoft.NetApp.EncryptionKeySource","com.azure.resourcemanager.netapp.models.EncryptionState":"Microsoft.NetApp.EncryptionState","com.azure.resourcemanager.netapp.models.EncryptionTransitionRequest":"Microsoft.NetApp.EncryptionTransitionRequest","com.azure.resourcemanager.netapp.models.EncryptionType":"Microsoft.NetApp.EncryptionType","com.azure.resourcemanager.netapp.models.EndpointType":"Microsoft.NetApp.EndpointType","com.azure.resourcemanager.netapp.models.Exclude":"Microsoft.NetApp.Exclude","com.azure.resourcemanager.netapp.models.ExportPolicyRule":"Microsoft.NetApp.ExportPolicyRule","com.azure.resourcemanager.netapp.models.ExternalReplicationSetupStatus":"Microsoft.NetApp.ExternalReplicationSetupStatus","com.azure.resourcemanager.netapp.models.FileAccessLogs":"Microsoft.NetApp.FileAccessLogs","com.azure.resourcemanager.netapp.models.FilePathAvailabilityRequest":"Microsoft.NetApp.FilePathAvailabilityRequest","com.azure.resourcemanager.netapp.models.FileSystemUser":"Microsoft.NetApp.FileSystemUser","com.azure.resourcemanager.netapp.models.GetGroupIdListForLdapUserRequest":"Microsoft.NetApp.GetGroupIdListForLdapUserRequest","com.azure.resourcemanager.netapp.models.GlobalFileLockingState":"Microsoft.NetApp.GlobalFileLockingState","com.azure.resourcemanager.netapp.models.HourlySchedule":"Microsoft.NetApp.HourlySchedule","com.azure.resourcemanager.netapp.models.InAvailabilityReasonType":"Microsoft.NetApp.InAvailabilityReasonType","com.azure.resourcemanager.netapp.models.KerberosState":"Microsoft.NetApp.KerberosState","com.azure.resourcemanager.netapp.models.KeySource":"Microsoft.NetApp.KeySource","com.azure.resourcemanager.netapp.models.KeyVaultPrivateEndpoint":"Microsoft.NetApp.KeyVaultPrivateEndpoint","com.azure.resourcemanager.netapp.models.KeyVaultProperties":"Microsoft.NetApp.KeyVaultProperties","com.azure.resourcemanager.netapp.models.KeyVaultPropertiesPatch":"Microsoft.NetApp.KeyVaultPropertiesPatch","com.azure.resourcemanager.netapp.models.KeyVaultStatus":"Microsoft.NetApp.KeyVaultStatus","com.azure.resourcemanager.netapp.models.LdapConfiguration":"Microsoft.NetApp.LdapConfiguration","com.azure.resourcemanager.netapp.models.LdapConfigurationPatch":"Microsoft.NetApp.LdapConfigurationPatch","com.azure.resourcemanager.netapp.models.LdapSearchScopeOpt":"Microsoft.NetApp.LdapSearchScopeOpt","com.azure.resourcemanager.netapp.models.LdapServerType":"Microsoft.NetApp.LdapServerType","com.azure.resourcemanager.netapp.models.LdapState":"Microsoft.NetApp.LdapState","com.azure.resourcemanager.netapp.models.ListQuotaReportResponse":"Microsoft.NetApp.ListQuotaReportResponse","com.azure.resourcemanager.netapp.models.ListReplicationsRequest":"Microsoft.NetApp.ListReplicationsRequest","com.azure.resourcemanager.netapp.models.LogSpecification":"Microsoft.NetApp.LogSpecification","com.azure.resourcemanager.netapp.models.ManagedServiceIdentity":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentity","com.azure.resourcemanager.netapp.models.ManagedServiceIdentityType":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType","com.azure.resourcemanager.netapp.models.MetricAggregationType":"Microsoft.NetApp.MetricAggregationType","com.azure.resourcemanager.netapp.models.MetricSpecification":"Microsoft.NetApp.MetricSpecification","com.azure.resourcemanager.netapp.models.MirrorState":"Microsoft.NetApp.MirrorState","com.azure.resourcemanager.netapp.models.MonthlySchedule":"Microsoft.NetApp.MonthlySchedule","com.azure.resourcemanager.netapp.models.MountTargetProperties":"Microsoft.NetApp.MountTargetProperties","com.azure.resourcemanager.netapp.models.MultiAdStatus":"Microsoft.NetApp.MultiAdStatus","com.azure.resourcemanager.netapp.models.NetAppAccountPatch":"Microsoft.NetApp.NetAppAccountPatch","com.azure.resourcemanager.netapp.models.NetworkFeatures":"Microsoft.NetApp.NetworkFeatures","com.azure.resourcemanager.netapp.models.NetworkSiblingSetProvisioningState":"Microsoft.NetApp.NetworkSiblingSetProvisioningState","com.azure.resourcemanager.netapp.models.NfsUser":"Microsoft.NetApp.NfsUser","com.azure.resourcemanager.netapp.models.NicInfo":"Microsoft.NetApp.NicInfo","com.azure.resourcemanager.netapp.models.OnCertificateConflictAction":"Microsoft.NetApp.OnCertificateConflictAction","com.azure.resourcemanager.netapp.models.OperationDisplay":"Microsoft.NetApp.OperationDisplay","com.azure.resourcemanager.netapp.models.OriginClusterInformation":"Microsoft.NetApp.OriginClusterInformation","com.azure.resourcemanager.netapp.models.PeerClusterForVolumeMigrationRequest":"Microsoft.NetApp.PeerClusterForVolumeMigrationRequest","com.azure.resourcemanager.netapp.models.PlacementKeyValuePairs":"Microsoft.NetApp.PlacementKeyValuePairs","com.azure.resourcemanager.netapp.models.PoolChangeRequest":"Microsoft.NetApp.PoolChangeRequest","com.azure.resourcemanager.netapp.models.ProtocolTypes":"Microsoft.NetApp.ProtocolTypes","com.azure.resourcemanager.netapp.models.ProvisioningState":"Microsoft.NetApp.NetAppProvisioningState","com.azure.resourcemanager.netapp.models.QosType":"Microsoft.NetApp.QosType","com.azure.resourcemanager.netapp.models.QueryNetworkSiblingSetRequest":"Microsoft.NetApp.QueryNetworkSiblingSetRequest","com.azure.resourcemanager.netapp.models.QuotaAvailabilityRequest":"Microsoft.NetApp.QuotaAvailabilityRequest","com.azure.resourcemanager.netapp.models.QuotaReport":"Microsoft.NetApp.QuotaReport","com.azure.resourcemanager.netapp.models.QuotaReportFilterRequest":"Microsoft.NetApp.QuotaReportFilterRequest","com.azure.resourcemanager.netapp.models.QuotaType":"Microsoft.NetApp.QuotaType","com.azure.resourcemanager.netapp.models.RansomwareProtectionPatchSettings":"Microsoft.NetApp.RansomwareProtectionPatchSettings","com.azure.resourcemanager.netapp.models.RansomwareProtectionSettings":"Microsoft.NetApp.RansomwareProtectionSettings","com.azure.resourcemanager.netapp.models.RansomwareReportProperties":"Microsoft.NetApp.RansomwareReportProperties","com.azure.resourcemanager.netapp.models.RansomwareReportSeverity":"Microsoft.NetApp.RansomwareReportSeverity","com.azure.resourcemanager.netapp.models.RansomwareReportState":"Microsoft.NetApp.RansomwareReportState","com.azure.resourcemanager.netapp.models.RansomwareSuspectResolution":"Microsoft.NetApp.RansomwareSuspectResolution","com.azure.resourcemanager.netapp.models.RansomwareSuspects":"Microsoft.NetApp.RansomwareSuspects","com.azure.resourcemanager.netapp.models.RansomwareSuspectsClearRequest":"Microsoft.NetApp.RansomwareSuspectsClearRequest","com.azure.resourcemanager.netapp.models.ReestablishReplicationRequest":"Microsoft.NetApp.ReestablishReplicationRequest","com.azure.resourcemanager.netapp.models.RegionInfoAvailabilityZoneMappingsItem":"Microsoft.NetApp.RegionInfoAvailabilityZoneMappingsItem","com.azure.resourcemanager.netapp.models.RegionStorageToNetworkProximity":"Microsoft.NetApp.RegionStorageToNetworkProximity","com.azure.resourcemanager.netapp.models.RelocateVolumeRequest":"Microsoft.NetApp.RelocateVolumeRequest","com.azure.resourcemanager.netapp.models.RemotePath":"Microsoft.NetApp.RemotePath","com.azure.resourcemanager.netapp.models.ReplicationMirrorState":"Microsoft.NetApp.ReplicationMirrorState","com.azure.resourcemanager.netapp.models.ReplicationObject":"Microsoft.NetApp.ReplicationObject","com.azure.resourcemanager.netapp.models.ReplicationSchedule":"Microsoft.NetApp.ReplicationSchedule","com.azure.resourcemanager.netapp.models.ReplicationType":"Microsoft.NetApp.ReplicationType","com.azure.resourcemanager.netapp.models.ResourceNameAvailabilityRequest":"Microsoft.NetApp.ResourceNameAvailabilityRequest","com.azure.resourcemanager.netapp.models.SecureLdapType":"Microsoft.NetApp.SecureLdapType","com.azure.resourcemanager.netapp.models.SecurityStyle":"Microsoft.NetApp.SecurityStyle","com.azure.resourcemanager.netapp.models.ServiceLevel":"Microsoft.NetApp.ServiceLevel","com.azure.resourcemanager.netapp.models.ServiceSpecification":"Microsoft.NetApp.ServiceSpecification","com.azure.resourcemanager.netapp.models.SmbAccessBasedEnumeration":"Microsoft.NetApp.SmbAccessBasedEnumeration","com.azure.resourcemanager.netapp.models.SmbEncryptionState":"Microsoft.NetApp.SmbEncryptionState","com.azure.resourcemanager.netapp.models.SmbNonBrowsable":"Microsoft.NetApp.SmbNonBrowsable","com.azure.resourcemanager.netapp.models.SmbSettings":"Microsoft.NetApp.SmbSettings","com.azure.resourcemanager.netapp.models.SnapshotPolicyPatch":"Microsoft.NetApp.SnapshotPolicyPatch","com.azure.resourcemanager.netapp.models.SnapshotRestoreFiles":"Microsoft.NetApp.SnapshotRestoreFiles","com.azure.resourcemanager.netapp.models.SubvolumePatchRequest":"Microsoft.NetApp.SubvolumePatchRequest","com.azure.resourcemanager.netapp.models.SuspectFile":"Microsoft.NetApp.SuspectFile","com.azure.resourcemanager.netapp.models.SvmPeerCommandResponseProperties":"Microsoft.NetApp.SvmPeerCommandResponseProperties","com.azure.resourcemanager.netapp.models.UpdateNetworkSiblingSetRequest":"Microsoft.NetApp.UpdateNetworkSiblingSetRequest","com.azure.resourcemanager.netapp.models.UsageName":"Microsoft.NetApp.UsageName","com.azure.resourcemanager.netapp.models.UserAssignedIdentity":"Azure.ResourceManager.CommonTypes.UserAssignedIdentity","com.azure.resourcemanager.netapp.models.VolumeBackupProperties":"Microsoft.NetApp.VolumeBackupProperties","com.azure.resourcemanager.netapp.models.VolumeBackupRelationshipStatus":"Microsoft.NetApp.VolumeBackupRelationshipStatus","com.azure.resourcemanager.netapp.models.VolumeBackups":"Microsoft.NetApp.VolumeBackups","com.azure.resourcemanager.netapp.models.VolumeGroupMetadata":"Microsoft.NetApp.VolumeGroupMetaData","com.azure.resourcemanager.netapp.models.VolumeGroupVolumeProperties":"Microsoft.NetApp.VolumeGroupVolumeProperties","com.azure.resourcemanager.netapp.models.VolumeLanguage":"Microsoft.NetApp.VolumeLanguage","com.azure.resourcemanager.netapp.models.VolumePatch":"Microsoft.NetApp.VolumePatch","com.azure.resourcemanager.netapp.models.VolumePatchPropertiesDataProtection":"Microsoft.NetApp.VolumePatchPropertiesDataProtection","com.azure.resourcemanager.netapp.models.VolumePatchPropertiesExportPolicy":"Microsoft.NetApp.VolumePatchPropertiesExportPolicy","com.azure.resourcemanager.netapp.models.VolumePropertiesDataProtection":"Microsoft.NetApp.VolumePropertiesDataProtection","com.azure.resourcemanager.netapp.models.VolumePropertiesExportPolicy":"Microsoft.NetApp.VolumePropertiesExportPolicy","com.azure.resourcemanager.netapp.models.VolumeQuotaRulePatch":"Microsoft.NetApp.VolumeQuotaRulePatch","com.azure.resourcemanager.netapp.models.VolumeRelocationProperties":"Microsoft.NetApp.VolumeRelocationProperties","com.azure.resourcemanager.netapp.models.VolumeReplicationRelationshipStatus":"Microsoft.NetApp.VolumeReplicationRelationshipStatus","com.azure.resourcemanager.netapp.models.VolumeRestoreRelationshipStatus":"Microsoft.NetApp.VolumeRestoreRelationshipStatus","com.azure.resourcemanager.netapp.models.VolumeRevert":"Microsoft.NetApp.VolumeRevert","com.azure.resourcemanager.netapp.models.VolumeSnapshotProperties":"Microsoft.NetApp.VolumeSnapshotProperties","com.azure.resourcemanager.netapp.models.VolumeStorageToNetworkProximity":"Microsoft.NetApp.VolumeStorageToNetworkProximity","com.azure.resourcemanager.netapp.models.WeeklySchedule":"Microsoft.NetApp.WeeklySchedule"},"generatedFiles":["src/main/java/com/azure/resourcemanager/netapp/NetAppFilesManager.java","src/main/java/com/azure/resourcemanager/netapp/fluent/AccountsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/BackupPoliciesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/BackupVaultsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsUnderAccountsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsUnderBackupVaultsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/BackupsUnderVolumesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/BucketsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/CachesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppManagementClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsAccountsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceQuotaLimitsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceRegionInfosClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourceUsagesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/NetAppResourcesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/PoolsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/RansomwareReportsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotPoliciesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/SnapshotsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/SubvolumesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeGroupsClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/VolumeQuotaRulesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/VolumesClient.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/AccountPropertiesPatch.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPatchProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupPolicyProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupStatusInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupVaultInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BackupVaultProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketGenerateCredentialsInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketPatchProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/BucketProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/CacheInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/CapacityPoolInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/CheckAvailabilityResponseInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/ClusterPeerCommandResponseInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/GetGroupIdListForLdapUserResponseInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/GetKeyVaultStatusResponseInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/GetKeyVaultStatusResponseProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/ListQuotaReportResultInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetAppAccountInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/NetworkSiblingSetInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/OperationProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/PeeringPassphrasesInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolPatchProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/PoolProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/QuotaItemProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/RansomwareReportInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/RegionInfoInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/RegionInfoResourceInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/ReplicationStatusInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/RestoreStatusInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotPolicyVolumeListInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SnapshotProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubscriptionQuotaItemInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeInfoInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeModelProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumePatchParams.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SubvolumeProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/SvmPeerCommandResponseInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/UsageProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/UsageResultInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupDetailsInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupListProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeGroupProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumePatchProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeQuotaRuleInner.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/VolumeQuotaRulesProperties.java","src/main/java/com/azure/resourcemanager/netapp/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/netapp/fluent/package-info.java","src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/AccountsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPoliciesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupPolicyImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupStatusImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupVaultImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupVaultsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupVaultsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderAccountsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderAccountsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderBackupVaultsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderBackupVaultsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderVolumesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BackupsUnderVolumesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BucketGenerateCredentialsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BucketImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BucketsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/BucketsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/CacheImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/CachesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/CachesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/CapacityPoolImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/CheckAvailabilityResponseImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ClusterPeerCommandResponseImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/GetGroupIdListForLdapUserResponseImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/GetKeyVaultStatusResponseImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ListQuotaReportResultImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppAccountImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppManagementClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsAccountsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsAccountsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceQuotaLimitsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceRegionInfosClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceRegionInfosImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceUsagesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourceUsagesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetAppResourcesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/NetworkSiblingSetImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/OperationImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/PeeringPassphrasesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/PoolsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/RansomwareReportImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/RansomwareReportsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/RansomwareReportsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/RegionInfoImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/RegionInfoResourceImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ReplicationImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ReplicationStatusImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/netapp/implementation/RestoreStatusImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPoliciesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPolicyImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotPolicyVolumeListImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SnapshotsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SubscriptionQuotaItemImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumeInfoImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumeModelImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SubvolumesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/SvmPeerCommandResponseImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/UsageResultImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupDetailsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeGroupsImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRuleImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRulesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumeQuotaRulesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesClientImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/VolumesImpl.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/BackupPoliciesList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/BackupVaultsList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/BackupsList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/BucketList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/CacheList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/CapacityPoolList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/ListReplications.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/NetAppAccountList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/QuotaItemList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/RansomwareReportsList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/RegionInfosList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/SnapshotPoliciesList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/SnapshotsList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/SubvolumesList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/UsagesListResult.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/VolumeGroupList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/VolumeList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/models/VolumeQuotaRulesList.java","src/main/java/com/azure/resourcemanager/netapp/implementation/package-info.java","src/main/java/com/azure/resourcemanager/netapp/models/AcceptGrowCapacityPoolForShortTermCloneSplit.java","src/main/java/com/azure/resourcemanager/netapp/models/AccountEncryption.java","src/main/java/com/azure/resourcemanager/netapp/models/AccountEncryptionPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/Accounts.java","src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectory.java","src/main/java/com/azure/resourcemanager/netapp/models/ActiveDirectoryStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/ActualRansomwareProtectionState.java","src/main/java/com/azure/resourcemanager/netapp/models/ApplicationType.java","src/main/java/com/azure/resourcemanager/netapp/models/AuthorizeRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/AvsDataStore.java","src/main/java/com/azure/resourcemanager/netapp/models/AzureKeyVaultDetails.java","src/main/java/com/azure/resourcemanager/netapp/models/Backup.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicies.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupPolicyPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupRestoreFiles.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupType.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupVault.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupVaultPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupVaults.java","src/main/java/com/azure/resourcemanager/netapp/models/Backups.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupsMigrationRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupsUnderAccounts.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupsUnderBackupVaults.java","src/main/java/com/azure/resourcemanager/netapp/models/BackupsUnderVolumes.java","src/main/java/com/azure/resourcemanager/netapp/models/BindAuthenticationLevel.java","src/main/java/com/azure/resourcemanager/netapp/models/BindPasswordAkvConfig.java","src/main/java/com/azure/resourcemanager/netapp/models/BindPasswordAkvConfigPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/BreakFileLocksRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/BreakReplicationRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/BreakthroughMode.java","src/main/java/com/azure/resourcemanager/netapp/models/Bucket.java","src/main/java/com/azure/resourcemanager/netapp/models/BucketCredentialsExpiry.java","src/main/java/com/azure/resourcemanager/netapp/models/BucketGenerateCredentials.java","src/main/java/com/azure/resourcemanager/netapp/models/BucketPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/BucketPatchPermissions.java","src/main/java/com/azure/resourcemanager/netapp/models/BucketPermissions.java","src/main/java/com/azure/resourcemanager/netapp/models/BucketServerPatchProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/BucketServerProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/Buckets.java","src/main/java/com/azure/resourcemanager/netapp/models/Cache.java","src/main/java/com/azure/resourcemanager/netapp/models/CacheFileAccessLogs.java","src/main/java/com/azure/resourcemanager/netapp/models/CacheLifeCycleState.java","src/main/java/com/azure/resourcemanager/netapp/models/CacheMountTargetProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/CacheProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/CachePropertiesExportPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/CacheProvisioningState.java","src/main/java/com/azure/resourcemanager/netapp/models/CacheUpdate.java","src/main/java/com/azure/resourcemanager/netapp/models/CacheUpdateProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/Caches.java","src/main/java/com/azure/resourcemanager/netapp/models/CapacityPool.java","src/main/java/com/azure/resourcemanager/netapp/models/CapacityPoolPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/CertificateAkvDetails.java","src/main/java/com/azure/resourcemanager/netapp/models/ChangeKeyVault.java","src/main/java/com/azure/resourcemanager/netapp/models/CheckAvailabilityResponse.java","src/main/java/com/azure/resourcemanager/netapp/models/CheckNameResourceTypes.java","src/main/java/com/azure/resourcemanager/netapp/models/CheckQuotaNameResourceTypes.java","src/main/java/com/azure/resourcemanager/netapp/models/ChownMode.java","src/main/java/com/azure/resourcemanager/netapp/models/CifsChangeNotifyState.java","src/main/java/com/azure/resourcemanager/netapp/models/CifsUser.java","src/main/java/com/azure/resourcemanager/netapp/models/ClusterPeerCommandResponse.java","src/main/java/com/azure/resourcemanager/netapp/models/ClusterPeerCommandResponseProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/CoolAccessRetrievalPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/CoolAccessTieringPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/CredentialsAkvDetails.java","src/main/java/com/azure/resourcemanager/netapp/models/CredentialsStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/DailySchedule.java","src/main/java/com/azure/resourcemanager/netapp/models/DesiredRansomwareProtectionState.java","src/main/java/com/azure/resourcemanager/netapp/models/DestinationReplication.java","src/main/java/com/azure/resourcemanager/netapp/models/Dimension.java","src/main/java/com/azure/resourcemanager/netapp/models/EnableSubvolumes.java","src/main/java/com/azure/resourcemanager/netapp/models/EnableWriteBackState.java","src/main/java/com/azure/resourcemanager/netapp/models/EncryptionIdentity.java","src/main/java/com/azure/resourcemanager/netapp/models/EncryptionIdentityPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/EncryptionKeySource.java","src/main/java/com/azure/resourcemanager/netapp/models/EncryptionState.java","src/main/java/com/azure/resourcemanager/netapp/models/EncryptionTransitionRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/EncryptionType.java","src/main/java/com/azure/resourcemanager/netapp/models/EndpointType.java","src/main/java/com/azure/resourcemanager/netapp/models/Exclude.java","src/main/java/com/azure/resourcemanager/netapp/models/ExportPolicyRule.java","src/main/java/com/azure/resourcemanager/netapp/models/ExternalReplicationSetupStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/FileAccessLogs.java","src/main/java/com/azure/resourcemanager/netapp/models/FilePathAvailabilityRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/FileSystemUser.java","src/main/java/com/azure/resourcemanager/netapp/models/GetGroupIdListForLdapUserRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/GetGroupIdListForLdapUserResponse.java","src/main/java/com/azure/resourcemanager/netapp/models/GetKeyVaultStatusResponse.java","src/main/java/com/azure/resourcemanager/netapp/models/GlobalFileLockingState.java","src/main/java/com/azure/resourcemanager/netapp/models/HourlySchedule.java","src/main/java/com/azure/resourcemanager/netapp/models/InAvailabilityReasonType.java","src/main/java/com/azure/resourcemanager/netapp/models/KerberosState.java","src/main/java/com/azure/resourcemanager/netapp/models/KeySource.java","src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultPrivateEndpoint.java","src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultPropertiesPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/KeyVaultStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/LdapConfiguration.java","src/main/java/com/azure/resourcemanager/netapp/models/LdapConfigurationPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/LdapSearchScopeOpt.java","src/main/java/com/azure/resourcemanager/netapp/models/LdapServerType.java","src/main/java/com/azure/resourcemanager/netapp/models/LdapState.java","src/main/java/com/azure/resourcemanager/netapp/models/ListQuotaReportResponse.java","src/main/java/com/azure/resourcemanager/netapp/models/ListQuotaReportResult.java","src/main/java/com/azure/resourcemanager/netapp/models/ListReplicationsRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/LogSpecification.java","src/main/java/com/azure/resourcemanager/netapp/models/ManagedServiceIdentity.java","src/main/java/com/azure/resourcemanager/netapp/models/ManagedServiceIdentityType.java","src/main/java/com/azure/resourcemanager/netapp/models/MetricAggregationType.java","src/main/java/com/azure/resourcemanager/netapp/models/MetricSpecification.java","src/main/java/com/azure/resourcemanager/netapp/models/MirrorState.java","src/main/java/com/azure/resourcemanager/netapp/models/MonthlySchedule.java","src/main/java/com/azure/resourcemanager/netapp/models/MountTargetProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/MultiAdStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccount.java","src/main/java/com/azure/resourcemanager/netapp/models/NetAppAccountPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceQuotaLimits.java","src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceQuotaLimitsAccounts.java","src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceRegionInfos.java","src/main/java/com/azure/resourcemanager/netapp/models/NetAppResourceUsages.java","src/main/java/com/azure/resourcemanager/netapp/models/NetAppResources.java","src/main/java/com/azure/resourcemanager/netapp/models/NetworkFeatures.java","src/main/java/com/azure/resourcemanager/netapp/models/NetworkSiblingSet.java","src/main/java/com/azure/resourcemanager/netapp/models/NetworkSiblingSetProvisioningState.java","src/main/java/com/azure/resourcemanager/netapp/models/NfsUser.java","src/main/java/com/azure/resourcemanager/netapp/models/NicInfo.java","src/main/java/com/azure/resourcemanager/netapp/models/OnCertificateConflictAction.java","src/main/java/com/azure/resourcemanager/netapp/models/Operation.java","src/main/java/com/azure/resourcemanager/netapp/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/netapp/models/Operations.java","src/main/java/com/azure/resourcemanager/netapp/models/OriginClusterInformation.java","src/main/java/com/azure/resourcemanager/netapp/models/PeerClusterForVolumeMigrationRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/PeeringPassphrases.java","src/main/java/com/azure/resourcemanager/netapp/models/PlacementKeyValuePairs.java","src/main/java/com/azure/resourcemanager/netapp/models/PoolChangeRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/Pools.java","src/main/java/com/azure/resourcemanager/netapp/models/ProtocolTypes.java","src/main/java/com/azure/resourcemanager/netapp/models/ProvisioningState.java","src/main/java/com/azure/resourcemanager/netapp/models/QosType.java","src/main/java/com/azure/resourcemanager/netapp/models/QueryNetworkSiblingSetRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/QuotaAvailabilityRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/QuotaReport.java","src/main/java/com/azure/resourcemanager/netapp/models/QuotaReportFilterRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/QuotaType.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareProtectionPatchSettings.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareProtectionSettings.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareReport.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareReportProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareReportSeverity.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareReportState.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareReports.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareSuspectResolution.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareSuspects.java","src/main/java/com/azure/resourcemanager/netapp/models/RansomwareSuspectsClearRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/ReestablishReplicationRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/RegionInfo.java","src/main/java/com/azure/resourcemanager/netapp/models/RegionInfoAvailabilityZoneMappingsItem.java","src/main/java/com/azure/resourcemanager/netapp/models/RegionInfoResource.java","src/main/java/com/azure/resourcemanager/netapp/models/RegionStorageToNetworkProximity.java","src/main/java/com/azure/resourcemanager/netapp/models/RelocateVolumeRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/RemotePath.java","src/main/java/com/azure/resourcemanager/netapp/models/Replication.java","src/main/java/com/azure/resourcemanager/netapp/models/ReplicationMirrorState.java","src/main/java/com/azure/resourcemanager/netapp/models/ReplicationObject.java","src/main/java/com/azure/resourcemanager/netapp/models/ReplicationSchedule.java","src/main/java/com/azure/resourcemanager/netapp/models/ReplicationStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/ReplicationType.java","src/main/java/com/azure/resourcemanager/netapp/models/ResourceNameAvailabilityRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/RestoreStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/SecureLdapType.java","src/main/java/com/azure/resourcemanager/netapp/models/SecurityStyle.java","src/main/java/com/azure/resourcemanager/netapp/models/ServiceLevel.java","src/main/java/com/azure/resourcemanager/netapp/models/ServiceSpecification.java","src/main/java/com/azure/resourcemanager/netapp/models/SmbAccessBasedEnumeration.java","src/main/java/com/azure/resourcemanager/netapp/models/SmbEncryptionState.java","src/main/java/com/azure/resourcemanager/netapp/models/SmbNonBrowsable.java","src/main/java/com/azure/resourcemanager/netapp/models/SmbSettings.java","src/main/java/com/azure/resourcemanager/netapp/models/Snapshot.java","src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicies.java","src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyPatch.java","src/main/java/com/azure/resourcemanager/netapp/models/SnapshotPolicyVolumeList.java","src/main/java/com/azure/resourcemanager/netapp/models/SnapshotRestoreFiles.java","src/main/java/com/azure/resourcemanager/netapp/models/Snapshots.java","src/main/java/com/azure/resourcemanager/netapp/models/SubscriptionQuotaItem.java","src/main/java/com/azure/resourcemanager/netapp/models/SubvolumeInfo.java","src/main/java/com/azure/resourcemanager/netapp/models/SubvolumeModel.java","src/main/java/com/azure/resourcemanager/netapp/models/SubvolumePatchRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/Subvolumes.java","src/main/java/com/azure/resourcemanager/netapp/models/SuspectFile.java","src/main/java/com/azure/resourcemanager/netapp/models/SvmPeerCommandResponse.java","src/main/java/com/azure/resourcemanager/netapp/models/SvmPeerCommandResponseProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/UpdateNetworkSiblingSetRequest.java","src/main/java/com/azure/resourcemanager/netapp/models/UsageName.java","src/main/java/com/azure/resourcemanager/netapp/models/UsageResult.java","src/main/java/com/azure/resourcemanager/netapp/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/netapp/models/Volume.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackupProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackupRelationshipStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeBackups.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroup.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupDetails.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupMetadata.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroupVolumeProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeGroups.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeLanguage.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumePatch.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesDataProtection.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumePatchPropertiesExportPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesDataProtection.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumePropertiesExportPolicy.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRule.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRulePatch.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeQuotaRules.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeRelocationProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeReplicationRelationshipStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeRestoreRelationshipStatus.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeRevert.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeSnapshotProperties.java","src/main/java/com/azure/resourcemanager/netapp/models/VolumeStorageToNetworkProximity.java","src/main/java/com/azure/resourcemanager/netapp/models/Volumes.java","src/main/java/com/azure/resourcemanager/netapp/models/WeeklySchedule.java","src/main/java/com/azure/resourcemanager/netapp/models/package-info.java","src/main/java/com/azure/resourcemanager/netapp/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-netapp/proxy-config.json b/sdk/netapp/azure-resourcemanager-netapp/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-netapp/proxy-config.json index fdbabe6bdacea..c411aa3bf0d70 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-netapp/proxy-config.json +++ b/sdk/netapp/azure-resourcemanager-netapp/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-netapp/proxy-config.json @@ -1 +1 @@ -[["com.azure.resourcemanager.netapp.implementation.AccountsClientImpl$AccountsService"],["com.azure.resourcemanager.netapp.implementation.ActiveDirectoryConfigsClientImpl$ActiveDirectoryConfigsService"],["com.azure.resourcemanager.netapp.implementation.BackupPoliciesClientImpl$BackupPoliciesService"],["com.azure.resourcemanager.netapp.implementation.BackupVaultsClientImpl$BackupVaultsService"],["com.azure.resourcemanager.netapp.implementation.BackupsClientImpl$BackupsService"],["com.azure.resourcemanager.netapp.implementation.BackupsUnderAccountsClientImpl$BackupsUnderAccountsService"],["com.azure.resourcemanager.netapp.implementation.BackupsUnderBackupVaultsClientImpl$BackupsUnderBackupVaultsService"],["com.azure.resourcemanager.netapp.implementation.BackupsUnderVolumesClientImpl$BackupsUnderVolumesService"],["com.azure.resourcemanager.netapp.implementation.BucketsClientImpl$BucketsService"],["com.azure.resourcemanager.netapp.implementation.CachesClientImpl$CachesService"],["com.azure.resourcemanager.netapp.implementation.ElasticAccountsClientImpl$ElasticAccountsService"],["com.azure.resourcemanager.netapp.implementation.ElasticBackupPoliciesClientImpl$ElasticBackupPoliciesService"],["com.azure.resourcemanager.netapp.implementation.ElasticBackupVaultsClientImpl$ElasticBackupVaultsService"],["com.azure.resourcemanager.netapp.implementation.ElasticBackupsClientImpl$ElasticBackupsService"],["com.azure.resourcemanager.netapp.implementation.ElasticCapacityPoolsClientImpl$ElasticCapacityPoolsService"],["com.azure.resourcemanager.netapp.implementation.ElasticSnapshotPoliciesClientImpl$ElasticSnapshotPoliciesService"],["com.azure.resourcemanager.netapp.implementation.ElasticSnapshotsClientImpl$ElasticSnapshotsService"],["com.azure.resourcemanager.netapp.implementation.ElasticVolumesClientImpl$ElasticVolumesService"],["com.azure.resourcemanager.netapp.implementation.NetAppResourceQuotaLimitsAccountsClientImpl$NetAppResourceQuotaLimitsAccountsService"],["com.azure.resourcemanager.netapp.implementation.NetAppResourceQuotaLimitsClientImpl$NetAppResourceQuotaLimitsService"],["com.azure.resourcemanager.netapp.implementation.NetAppResourceRegionInfosClientImpl$NetAppResourceRegionInfosService"],["com.azure.resourcemanager.netapp.implementation.NetAppResourceUsagesClientImpl$NetAppResourceUsagesService"],["com.azure.resourcemanager.netapp.implementation.NetAppResourcesClientImpl$NetAppResourcesService"],["com.azure.resourcemanager.netapp.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.netapp.implementation.PoolsClientImpl$PoolsService"],["com.azure.resourcemanager.netapp.implementation.RansomwareReportsClientImpl$RansomwareReportsService"],["com.azure.resourcemanager.netapp.implementation.SnapshotPoliciesClientImpl$SnapshotPoliciesService"],["com.azure.resourcemanager.netapp.implementation.SnapshotsClientImpl$SnapshotsService"],["com.azure.resourcemanager.netapp.implementation.SubvolumesClientImpl$SubvolumesService"],["com.azure.resourcemanager.netapp.implementation.VolumeGroupsClientImpl$VolumeGroupsService"],["com.azure.resourcemanager.netapp.implementation.VolumeQuotaRulesClientImpl$VolumeQuotaRulesService"],["com.azure.resourcemanager.netapp.implementation.VolumesClientImpl$VolumesService"]] \ No newline at end of file +[["com.azure.resourcemanager.netapp.implementation.AccountsClientImpl$AccountsService"],["com.azure.resourcemanager.netapp.implementation.BackupPoliciesClientImpl$BackupPoliciesService"],["com.azure.resourcemanager.netapp.implementation.BackupVaultsClientImpl$BackupVaultsService"],["com.azure.resourcemanager.netapp.implementation.BackupsClientImpl$BackupsService"],["com.azure.resourcemanager.netapp.implementation.BackupsUnderAccountsClientImpl$BackupsUnderAccountsService"],["com.azure.resourcemanager.netapp.implementation.BackupsUnderBackupVaultsClientImpl$BackupsUnderBackupVaultsService"],["com.azure.resourcemanager.netapp.implementation.BackupsUnderVolumesClientImpl$BackupsUnderVolumesService"],["com.azure.resourcemanager.netapp.implementation.BucketsClientImpl$BucketsService"],["com.azure.resourcemanager.netapp.implementation.CachesClientImpl$CachesService"],["com.azure.resourcemanager.netapp.implementation.NetAppResourceQuotaLimitsAccountsClientImpl$NetAppResourceQuotaLimitsAccountsService"],["com.azure.resourcemanager.netapp.implementation.NetAppResourceQuotaLimitsClientImpl$NetAppResourceQuotaLimitsService"],["com.azure.resourcemanager.netapp.implementation.NetAppResourceRegionInfosClientImpl$NetAppResourceRegionInfosService"],["com.azure.resourcemanager.netapp.implementation.NetAppResourceUsagesClientImpl$NetAppResourceUsagesService"],["com.azure.resourcemanager.netapp.implementation.NetAppResourcesClientImpl$NetAppResourcesService"],["com.azure.resourcemanager.netapp.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.netapp.implementation.PoolsClientImpl$PoolsService"],["com.azure.resourcemanager.netapp.implementation.RansomwareReportsClientImpl$RansomwareReportsService"],["com.azure.resourcemanager.netapp.implementation.SnapshotPoliciesClientImpl$SnapshotPoliciesService"],["com.azure.resourcemanager.netapp.implementation.SnapshotsClientImpl$SnapshotsService"],["com.azure.resourcemanager.netapp.implementation.SubvolumesClientImpl$SubvolumesService"],["com.azure.resourcemanager.netapp.implementation.VolumeGroupsClientImpl$VolumeGroupsService"],["com.azure.resourcemanager.netapp.implementation.VolumeQuotaRulesClientImpl$VolumeQuotaRulesService"],["com.azure.resourcemanager.netapp.implementation.VolumesClientImpl$VolumesService"]] \ No newline at end of file diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsChangeKeyVaultSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsChangeKeyVaultSamples.java index 78e7f4b6aa5c4..bf2b4a6a6a0f1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsChangeKeyVaultSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsChangeKeyVaultSamples.java @@ -13,7 +13,7 @@ */ public final class AccountsChangeKeyVaultSamples { /* - * x-ms-original-file: 2026-06-15-preview/Accounts_ChangeKeyVault.json + * x-ms-original-file: 2026-08-01/Accounts_ChangeKeyVault.json */ /** * Sample code: Accounts_ChangeKeyVault. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsCreateOrUpdateSamples.java index 17adf67ced8d9..4c829d0dcc119 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsCreateOrUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsCreateOrUpdateSamples.java @@ -16,7 +16,7 @@ */ public final class AccountsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-06-15-preview/Accounts_CreateOrUpdate.json + * x-ms-original-file: 2026-08-01/Accounts_CreateOrUpdate.json */ /** * Sample code: Accounts_CreateOrUpdate. @@ -28,7 +28,7 @@ public static void accountsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAp } /* - * x-ms-original-file: 2026-06-15-preview/Accounts_CreateOrUpdateAD.json + * x-ms-original-file: 2026-08-01/Accounts_CreateOrUpdateAD.json */ /** * Sample code: Accounts_CreateOrUpdateWithActiveDirectory. @@ -55,7 +55,7 @@ public static void accountsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAp } /* - * x-ms-original-file: 2026-06-15-preview/Accounts_CreateOrUpdateLdapConfig.json + * x-ms-original-file: 2026-08-01/Accounts_CreateOrUpdateLdapConfig.json */ /** * Sample code: Accounts_CreateOrUpdateLdapConfig. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsDeleteSamples.java index e97a417053142..60b6147910814 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class AccountsDeleteSamples { /* - * x-ms-original-file: 2026-06-15-preview/Accounts_Delete.json + * x-ms-original-file: 2026-08-01/Accounts_Delete.json */ /** * Sample code: Accounts_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsGetByResourceGroupSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsGetByResourceGroupSamples.java index ad1e8557c0419..384b5af9afe76 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsGetByResourceGroupSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class AccountsGetByResourceGroupSamples { /* - * x-ms-original-file: 2026-06-15-preview/Accounts_Get.json + * x-ms-original-file: 2026-08-01/Accounts_Get.json */ /** * Sample code: Accounts_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsGetChangeKeyVaultInformationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsGetChangeKeyVaultInformationSamples.java index bc8e5ac94a80a..86cfd7bf8009f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsGetChangeKeyVaultInformationSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsGetChangeKeyVaultInformationSamples.java @@ -9,7 +9,7 @@ */ public final class AccountsGetChangeKeyVaultInformationSamples { /* - * x-ms-original-file: 2026-06-15-preview/Accounts_GetChangeKeyVaultInformation.json + * x-ms-original-file: 2026-08-01/Accounts_GetChangeKeyVaultInformation.json */ /** * Sample code: Accounts_GetChangeKeyVaultInformation. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsListByResourceGroupSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsListByResourceGroupSamples.java index 2e801128d4843..12ccc67a7621b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsListByResourceGroupSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class AccountsListByResourceGroupSamples { /* - * x-ms-original-file: 2026-06-15-preview/Accounts_List.json + * x-ms-original-file: 2026-08-01/Accounts_List.json */ /** * Sample code: Accounts_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsListSamples.java index ccf9de19dd80b..d3454da5f3813 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsListSamples.java @@ -9,7 +9,7 @@ */ public final class AccountsListSamples { /* - * x-ms-original-file: 2026-06-15-preview/Accounts_ListBySubscription.json + * x-ms-original-file: 2026-08-01/Accounts_ListBySubscription.json */ /** * Sample code: Accounts_ListBySubscription. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsRefreshLdapBindPasswordSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsRefreshLdapBindPasswordSamples.java index 717ee3d905915..282c846eeaaf2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsRefreshLdapBindPasswordSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsRefreshLdapBindPasswordSamples.java @@ -9,7 +9,7 @@ */ public final class AccountsRefreshLdapBindPasswordSamples { /* - * x-ms-original-file: 2026-06-15-preview/Accounts_RefreshLdapBindPassword.json + * x-ms-original-file: 2026-08-01/Accounts_RefreshLdapBindPassword.json */ /** * Sample code: NetAppAccounts_RefreshLdapBindPassword. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsRenewCredentialsSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsRenewCredentialsSamples.java index fe6f91db03dca..db9948d15e5cf 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsRenewCredentialsSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsRenewCredentialsSamples.java @@ -9,7 +9,7 @@ */ public final class AccountsRenewCredentialsSamples { /* - * x-ms-original-file: 2026-06-15-preview/Accounts_RenewCredentials.json + * x-ms-original-file: 2026-08-01/Accounts_RenewCredentials.json */ /** * Sample code: Accounts_RenewCredentials. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsTransitionToCmkSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsTransitionToCmkSamples.java index 26d9488f29f59..b60959a769cd2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsTransitionToCmkSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsTransitionToCmkSamples.java @@ -11,7 +11,7 @@ */ public final class AccountsTransitionToCmkSamples { /* - * x-ms-original-file: 2026-06-15-preview/Accounts_TransitionEncryptionKey.json + * x-ms-original-file: 2026-08-01/Accounts_TransitionEncryptionKey.json */ /** * Sample code: Accounts_MigrateEncryptionKey. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsUpdateSamples.java index d31d3aa4885ac..c84054f44e937 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/AccountsUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class AccountsUpdateSamples { /* - * x-ms-original-file: 2026-06-15-preview/Accounts_Update.json + * x-ms-original-file: 2026-08-01/Accounts_Update.json */ /** * Sample code: Accounts_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsCreateOrUpdateSamples.java deleted file mode 100644 index b730377830031..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsCreateOrUpdateSamples.java +++ /dev/null @@ -1,70 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.resourcemanager.netapp.models.ActiveDirectoryConfigProperties; -import com.azure.resourcemanager.netapp.models.ManagedServiceIdentity; -import com.azure.resourcemanager.netapp.models.ManagedServiceIdentityType; -import com.azure.resourcemanager.netapp.models.SecretPassword; -import com.azure.resourcemanager.netapp.models.SecretPasswordIdentity; -import com.azure.resourcemanager.netapp.models.SecretPasswordKeyVaultProperties; -import com.azure.resourcemanager.netapp.models.UserAssignedIdentity; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; - -/** - * Samples for ActiveDirectoryConfigs CreateOrUpdate. - */ -public final class ActiveDirectoryConfigsCreateOrUpdateSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ActiveDirectoryConfigs_CreateOrUpdate.json - */ - /** - * Sample code: ActiveDirectoryConfigs_CreateOrUpdate. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void - activeDirectoryConfigsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.activeDirectoryConfigs() - .define("adconfig1") - .withRegion("eastus") - .withExistingResourceGroup("myRG") - .withTags(mapOf("ac-tag1", "activeDirectoryConfig1")) - .withProperties(new ActiveDirectoryConfigProperties().withUserName("admin1") - .withDns(Arrays.asList("10.10.10.4", "10.10.10.5")) - .withSmbServerName("smbServer") - .withOrganizationalUnit("OU=Computers,DC=corp,DC=contoso,DC=com") - .withSite("Default-First-Site-Name") - .withBackupOperators(Arrays.asList("backupOp1")) - .withAdministrators(Arrays.asList("admin1")) - .withSecurityOperators(Arrays.asList("secOp1")) - .withDomain("example.net") - .withSecretPassword(new SecretPassword() - .withKeyVaultProperties( - new SecretPasswordKeyVaultProperties().withKeyVaultUri("fakeTokenPlaceholder") - .withSecretName("fakeTokenPlaceholder")) - .withIdentity(new SecretPasswordIdentity().withUserAssignedIdentity( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userAssignedIdentity1")))) - .withIdentity(new ManagedServiceIdentity().withType(ManagedServiceIdentityType.USER_ASSIGNED) - .withUserAssignedIdentities(mapOf( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/userAssignedIdentity1", - new UserAssignedIdentity()))) - .create(); - } - - // 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/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsDeleteSamples.java deleted file mode 100644 index 1e01979c6509c..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsDeleteSamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -/** - * Samples for ActiveDirectoryConfigs Delete. - */ -public final class ActiveDirectoryConfigsDeleteSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ActiveDirectoryConfigs_Delete.json - */ - /** - * Sample code: ActiveDirectoryConfigs_Delete. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void activeDirectoryConfigsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.activeDirectoryConfigs().delete("myRG", "adconfig1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsGetByResourceGroupSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsGetByResourceGroupSamples.java deleted file mode 100644 index 233dc21dea237..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsGetByResourceGroupSamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -/** - * Samples for ActiveDirectoryConfigs GetByResourceGroup. - */ -public final class ActiveDirectoryConfigsGetByResourceGroupSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ActiveDirectoryConfigs_Get.json - */ - /** - * Sample code: ActiveDirectoryConfigs_Get. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void activeDirectoryConfigsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.activeDirectoryConfigs() - .getByResourceGroupWithResponse("myRG", "adconfig1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsListByResourceGroupSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsListByResourceGroupSamples.java deleted file mode 100644 index 7d8d37bba2462..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsListByResourceGroupSamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -/** - * Samples for ActiveDirectoryConfigs ListByResourceGroup. - */ -public final class ActiveDirectoryConfigsListByResourceGroupSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ActiveDirectoryConfigs_ListByResourceGroup.json - */ - /** - * Sample code: ActiveDirectoryConfigs_ListByResourceGroup. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void - activeDirectoryConfigsListByResourceGroup(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.activeDirectoryConfigs().listByResourceGroup("myRG", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsListSamples.java deleted file mode 100644 index ccf1a90f5edd4..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsListSamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -/** - * Samples for ActiveDirectoryConfigs List. - */ -public final class ActiveDirectoryConfigsListSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ActiveDirectoryConfigs_ListBySubscription.json - */ - /** - * Sample code: ActiveDirectoryConfigs_ListBySubscription. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void - activeDirectoryConfigsListBySubscription(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.activeDirectoryConfigs().list(com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsUpdateSamples.java deleted file mode 100644 index 131c6cecc6799..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ActiveDirectoryConfigsUpdateSamples.java +++ /dev/null @@ -1,30 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.resourcemanager.netapp.models.ActiveDirectoryConfig; -import com.azure.resourcemanager.netapp.models.ActiveDirectoryConfigUpdateProperties; - -/** - * Samples for ActiveDirectoryConfigs Update. - */ -public final class ActiveDirectoryConfigsUpdateSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ActiveDirectoryConfigs_Update.json - */ - /** - * Sample code: ActiveDirectoryConfigs_Update. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void activeDirectoryConfigsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - ActiveDirectoryConfig resource = manager.activeDirectoryConfigs() - .getByResourceGroupWithResponse("myRG", "adconfig1", com.azure.core.util.Context.NONE) - .getValue(); - resource.update() - .withProperties(new ActiveDirectoryConfigUpdateProperties().withSmbServerName("smbServer2")) - .apply(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesCreateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesCreateSamples.java index c9a361f1385fd..9b52db8aa9f0f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesCreateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesCreateSamples.java @@ -9,7 +9,7 @@ */ public final class BackupPoliciesCreateSamples { /* - * x-ms-original-file: 2026-06-15-preview/BackupPolicies_Create.json + * x-ms-original-file: 2026-08-01/BackupPolicies_Create.json */ /** * Sample code: BackupPolicies_Create. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteSamples.java index 36d362c378dc5..e8efe9003d771 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class BackupPoliciesDeleteSamples { /* - * x-ms-original-file: 2026-06-15-preview/BackupPolicies_Delete.json + * x-ms-original-file: 2026-08-01/BackupPolicies_Delete.json */ /** * Sample code: BackupPolicies_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetSamples.java index 3cacf994b02b3..a98965ac3b2fd 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetSamples.java @@ -9,7 +9,7 @@ */ public final class BackupPoliciesGetSamples { /* - * x-ms-original-file: 2026-06-15-preview/BackupPolicies_Get.json + * x-ms-original-file: 2026-08-01/BackupPolicies_Get.json */ /** * Sample code: BackupPolicies_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListSamples.java index 87519c1059f00..d758edcee66db 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListSamples.java @@ -9,7 +9,7 @@ */ public final class BackupPoliciesListSamples { /* - * x-ms-original-file: 2026-06-15-preview/BackupPolicies_List.json + * x-ms-original-file: 2026-08-01/BackupPolicies_List.json */ /** * Sample code: BackupPolicies_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesUpdateSamples.java index 52402a936a231..8fe5d417ee58f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class BackupPoliciesUpdateSamples { /* - * x-ms-original-file: 2026-06-15-preview/BackupPolicies_Update.json + * x-ms-original-file: 2026-08-01/BackupPolicies_Update.json */ /** * Sample code: BackupPolicies_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsCreateOrUpdateSamples.java index 9b2885d72f612..8c2e4fc6007a4 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsCreateOrUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsCreateOrUpdateSamples.java @@ -9,7 +9,7 @@ */ public final class BackupVaultsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-06-15-preview/BackupVaults_Create.json + * x-ms-original-file: 2026-08-01/BackupVaults_Create.json */ /** * Sample code: BackupVault_CreateOrUpdate. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsDeleteSamples.java index ef83b96a2fc2e..4a20f2ddc8ac8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class BackupVaultsDeleteSamples { /* - * x-ms-original-file: 2026-06-15-preview/BackupVaults_Delete.json + * x-ms-original-file: 2026-08-01/BackupVaults_Delete.json */ /** * Sample code: BackupVaults_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsGetSamples.java index 25debd84dddcb..08fd57e7c30a1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsGetSamples.java @@ -9,7 +9,7 @@ */ public final class BackupVaultsGetSamples { /* - * x-ms-original-file: 2026-06-15-preview/BackupVaults_Get.json + * x-ms-original-file: 2026-08-01/BackupVaults_Get.json */ /** * Sample code: BackupVaults_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListByNetAppAccountSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListByNetAppAccountSamples.java index 042fb31e88de1..e5f26b92ce70b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListByNetAppAccountSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListByNetAppAccountSamples.java @@ -9,7 +9,7 @@ */ public final class BackupVaultsListByNetAppAccountSamples { /* - * x-ms-original-file: 2026-06-15-preview/BackupVaults_List.json + * x-ms-original-file: 2026-08-01/BackupVaults_List.json */ /** * Sample code: BackupVaults_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsUpdateSamples.java index 3e048f1ba117d..53df0b9258a4a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupVaultsUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class BackupVaultsUpdateSamples { /* - * x-ms-original-file: 2026-06-15-preview/BackupVaults_Update.json + * x-ms-original-file: 2026-08-01/BackupVaults_Update.json */ /** * Sample code: BackupVaults_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsCreateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsCreateSamples.java index f8ee1ed93c63c..41076dec2ed2c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsCreateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsCreateSamples.java @@ -9,7 +9,7 @@ */ public final class BackupsCreateSamples { /* - * x-ms-original-file: 2026-06-15-preview/BackupsUnderBackupVault_Create.json + * x-ms-original-file: 2026-08-01/BackupsUnderBackupVault_Create.json */ /** * Sample code: BackupsUnderBackupVault_Create. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsDeleteSamples.java index d361e681f004f..9faa89572fdc5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class BackupsDeleteSamples { /* - * x-ms-original-file: 2026-06-15-preview/BackupsUnderBackupVault_Delete.json + * x-ms-original-file: 2026-08-01/BackupsUnderBackupVault_Delete.json */ /** * Sample code: BackupsUnderBackupVault_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetLatestStatusSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetLatestStatusSamples.java index 9ccf07c8d2426..619fbfe7c84b0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetLatestStatusSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetLatestStatusSamples.java @@ -9,7 +9,7 @@ */ public final class BackupsGetLatestStatusSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_LatestBackupStatus.json + * x-ms-original-file: 2026-08-01/Volumes_LatestBackupStatus.json */ /** * Sample code: Volumes_BackupStatus. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetSamples.java index 01588de96e464..8b33783434a24 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetSamples.java @@ -9,7 +9,7 @@ */ public final class BackupsGetSamples { /* - * x-ms-original-file: 2026-06-15-preview/BackupsUnderBackupVault_Get.json + * x-ms-original-file: 2026-08-01/BackupsUnderBackupVault_Get.json */ /** * Sample code: BackupsUnderBackupVault_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeLatestRestoreStatusSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeLatestRestoreStatusSamples.java index 8f09046f98a7d..f5bb58314d593 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeLatestRestoreStatusSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeLatestRestoreStatusSamples.java @@ -9,7 +9,7 @@ */ public final class BackupsGetVolumeLatestRestoreStatusSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_LatestRestoreStatus.json + * x-ms-original-file: 2026-08-01/Volumes_LatestRestoreStatus.json */ /** * Sample code: Volumes_RestoreStatus. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsListByVaultSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsListByVaultSamples.java index 79c34ccba6d7d..46601ff871ca9 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsListByVaultSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsListByVaultSamples.java @@ -9,7 +9,7 @@ */ public final class BackupsListByVaultSamples { /* - * x-ms-original-file: 2026-06-15-preview/Backups_ListByVault.json + * x-ms-original-file: 2026-08-01/Backups_ListByVault.json */ /** * Sample code: Backups_ListByVault. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderAccountMigrateBackupsSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderAccountMigrateBackupsSamples.java index 122ccaf09976e..64a00565141be 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderAccountMigrateBackupsSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderAccountMigrateBackupsSamples.java @@ -11,7 +11,7 @@ */ public final class BackupsUnderAccountMigrateBackupsSamples { /* - * x-ms-original-file: 2026-06-15-preview/BackupsUnderAccount_Migrate.json + * x-ms-original-file: 2026-08-01/BackupsUnderAccount_Migrate.json */ /** * Sample code: BackupsUnderAccount_Migrate. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderBackupVaultRestoreFilesSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderBackupVaultRestoreFilesSamples.java index b001cb9005860..7d234b83d0497 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderBackupVaultRestoreFilesSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderBackupVaultRestoreFilesSamples.java @@ -12,7 +12,7 @@ */ public final class BackupsUnderBackupVaultRestoreFilesSamples { /* - * x-ms-original-file: 2026-06-15-preview/BackupsUnderBackupVault_SingleFileRestore.json + * x-ms-original-file: 2026-08-01/BackupsUnderBackupVault_SingleFileRestore.json */ /** * Sample code: Backups_SingleFileRestore. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderVolumeMigrateBackupsSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderVolumeMigrateBackupsSamples.java index 739fb568e2443..018760064ae29 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderVolumeMigrateBackupsSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUnderVolumeMigrateBackupsSamples.java @@ -11,7 +11,7 @@ */ public final class BackupsUnderVolumeMigrateBackupsSamples { /* - * x-ms-original-file: 2026-06-15-preview/BackupsUnderVolume_Migrate.json + * x-ms-original-file: 2026-08-01/BackupsUnderVolume_Migrate.json */ /** * Sample code: BackupsUnderVolume_Migrate. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUpdateSamples.java index ba275c1c0cf58..fe6806a17bc18 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BackupsUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class BackupsUpdateSamples { /* - * x-ms-original-file: 2026-06-15-preview/BackupsUnderBackupVault_Update.json + * x-ms-original-file: 2026-08-01/BackupsUnderBackupVault_Update.json */ /** * Sample code: BackupsUnderBackupVault_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsCreateOrUpdateSamples.java index 82fc71c4db3a0..6d502de0f1c6e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsCreateOrUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsCreateOrUpdateSamples.java @@ -18,7 +18,7 @@ */ public final class BucketsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-06-15-preview/Buckets_CreateOrUpdate.json + * x-ms-original-file: 2026-08-01/Buckets_CreateOrUpdate.json */ /** * Sample code: Buckets_CreateOrUpdate. @@ -39,7 +39,7 @@ public static void bucketsCreateOrUpdate(com.azure.resourcemanager.netapp.NetApp } /* - * x-ms-original-file: 2026-06-15-preview/Buckets_CreateOrUpdateWithAkv.json + * x-ms-original-file: 2026-08-01/Buckets_CreateOrUpdateWithAkv.json */ /** * Sample code: Buckets_CreateOrUpdateWithAkv. @@ -55,16 +55,13 @@ public static void bucketsCreateOrUpdateWithAkv(com.azure.resourcemanager.netapp .withServer(new BucketServerProperties().withFqdn("fullyqualified.domainname.com") .withOnCertificateConflictAction(OnCertificateConflictAction.FAIL)) .withPermissions(BucketPermissions.READ_ONLY) - .withAkvDetails(new AzureKeyVaultDetails().withCertificateAkvDetails(new CertificateAkvDetails() - .withCertificateKeyVaultUri("fakeTokenPlaceholder") - .withCertificateName("my-certificate") - .withUserAssignedIdentity( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1")) - .withCredentialsAkvDetails(new CredentialsAkvDetails() - .withCredentialsKeyVaultUri("fakeTokenPlaceholder") - .withSecretName("fakeTokenPlaceholder") - .withUserAssignedIdentity( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"))) + .withAkvDetails(new AzureKeyVaultDetails() + .withCertificateAkvDetails( + new CertificateAkvDetails().withCertificateKeyVaultUri("fakeTokenPlaceholder") + .withCertificateName("my-certificate")) + .withCredentialsAkvDetails( + new CredentialsAkvDetails().withCredentialsKeyVaultUri("fakeTokenPlaceholder") + .withSecretName("fakeTokenPlaceholder"))) .create(); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsDeleteSamples.java index a920fe5cb73b2..578297b705cfd 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class BucketsDeleteSamples { /* - * x-ms-original-file: 2026-06-15-preview/Buckets_Delete.json + * x-ms-original-file: 2026-08-01/Buckets_Delete.json */ /** * Sample code: Buckets_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsGenerateAkvCredentialsSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsGenerateAkvCredentialsSamples.java index 9a82f155abbab..6224da9c53d9a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsGenerateAkvCredentialsSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsGenerateAkvCredentialsSamples.java @@ -11,7 +11,7 @@ */ public final class BucketsGenerateAkvCredentialsSamples { /* - * x-ms-original-file: 2026-06-15-preview/Buckets_GenerateAkvCredentials.json + * x-ms-original-file: 2026-08-01/Buckets_GenerateAkvCredentials.json */ /** * Sample code: Buckets_GenerateAkvCredentials. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsGenerateCredentialsSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsGenerateCredentialsSamples.java index 9fa2efdac2666..31ff401719838 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsGenerateCredentialsSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsGenerateCredentialsSamples.java @@ -11,7 +11,7 @@ */ public final class BucketsGenerateCredentialsSamples { /* - * x-ms-original-file: 2026-06-15-preview/Buckets_GenerateCredentials.json + * x-ms-original-file: 2026-08-01/Buckets_GenerateCredentials.json */ /** * Sample code: Buckets_GenerateCredentials. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsGetSamples.java index b99e522521a39..54ab0e22fb58c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsGetSamples.java @@ -9,7 +9,7 @@ */ public final class BucketsGetSamples { /* - * x-ms-original-file: 2026-06-15-preview/Buckets_Get.json + * x-ms-original-file: 2026-08-01/Buckets_Get.json */ /** * Sample code: Buckets_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsListSamples.java index 786344fb1bc49..a79bbac4c46f3 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsListSamples.java @@ -9,7 +9,7 @@ */ public final class BucketsListSamples { /* - * x-ms-original-file: 2026-06-15-preview/Buckets_List.json + * x-ms-original-file: 2026-08-01/Buckets_List.json */ /** * Sample code: Buckets_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsRefreshCertificateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsRefreshCertificateSamples.java index 8403bd549c347..bc13ec13c5532 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsRefreshCertificateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsRefreshCertificateSamples.java @@ -9,7 +9,7 @@ */ public final class BucketsRefreshCertificateSamples { /* - * x-ms-original-file: 2026-06-15-preview/Buckets_RefreshCertificate.json + * x-ms-original-file: 2026-08-01/Buckets_RefreshCertificate.json */ /** * Sample code: Buckets_RefreshCertificate. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsUpdateSamples.java index edea56624db54..8481787756cfb 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/BucketsUpdateSamples.java @@ -17,7 +17,7 @@ */ public final class BucketsUpdateSamples { /* - * x-ms-original-file: 2026-06-15-preview/Buckets_Update.json + * x-ms-original-file: 2026-08-01/Buckets_Update.json */ /** * Sample code: Buckets_Update. @@ -37,7 +37,7 @@ public static void bucketsUpdate(com.azure.resourcemanager.netapp.NetAppFilesMan } /* - * x-ms-original-file: 2026-06-15-preview/Buckets_UpdateWithAkv.json + * x-ms-original-file: 2026-08-01/Buckets_UpdateWithAkv.json */ /** * Sample code: Buckets_UpdateWithAkv. @@ -52,16 +52,13 @@ public static void bucketsUpdateWithAkv(com.azure.resourcemanager.netapp.NetAppF .withServer(new BucketServerPatchProperties().withFqdn("fullyqualified.domainname.com") .withOnCertificateConflictAction(OnCertificateConflictAction.FAIL)) .withPermissions(BucketPatchPermissions.READ_ONLY) - .withAkvDetails(new AzureKeyVaultDetails().withCertificateAkvDetails(new CertificateAkvDetails() - .withCertificateKeyVaultUri("fakeTokenPlaceholder") - .withCertificateName("my-certificate") - .withUserAssignedIdentity( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1")) - .withCredentialsAkvDetails(new CredentialsAkvDetails() - .withCredentialsKeyVaultUri("fakeTokenPlaceholder") - .withSecretName("fakeTokenPlaceholder") - .withUserAssignedIdentity( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.ManagedIdentity/userAssignedIdentities/identity1"))) + .withAkvDetails(new AzureKeyVaultDetails() + .withCertificateAkvDetails( + new CertificateAkvDetails().withCertificateKeyVaultUri("fakeTokenPlaceholder") + .withCertificateName("my-certificate")) + .withCredentialsAkvDetails( + new CredentialsAkvDetails().withCredentialsKeyVaultUri("fakeTokenPlaceholder") + .withSecretName("fakeTokenPlaceholder"))) .apply(); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesCreateOrUpdateSamples.java index d53881611ac3a..243b89447e6f3 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesCreateOrUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesCreateOrUpdateSamples.java @@ -16,7 +16,7 @@ */ public final class CachesCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-06-15-preview/Caches_CreateOrUpdate.json + * x-ms-original-file: 2026-08-01/Caches_CreateOrUpdate.json */ /** * Sample code: Caches_CreateOrUpdate. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesDeleteSamples.java index 0328b4cf17613..b8b77fd7280cf 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class CachesDeleteSamples { /* - * x-ms-original-file: 2026-06-15-preview/Caches_Delete.json + * x-ms-original-file: 2026-08-01/Caches_Delete.json */ /** * Sample code: Caches_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesGetSamples.java index 32af73bb4bfcb..14a1ebf89612f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesGetSamples.java @@ -9,7 +9,7 @@ */ public final class CachesGetSamples { /* - * x-ms-original-file: 2026-06-15-preview/Caches_Get.json + * x-ms-original-file: 2026-08-01/Caches_Get.json */ /** * Sample code: Caches_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesListPeeringPassphrasesSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesListPeeringPassphrasesSamples.java index e6b2b8f76b70a..b481114974329 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesListPeeringPassphrasesSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesListPeeringPassphrasesSamples.java @@ -9,7 +9,7 @@ */ public final class CachesListPeeringPassphrasesSamples { /* - * x-ms-original-file: 2026-06-15-preview/Caches_ListPeeringPassphrases.json + * x-ms-original-file: 2026-08-01/Caches_ListPeeringPassphrases.json */ /** * Sample code: Caches_ListPeeringPassphrases. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesListSamples.java index ea5a1f22909b0..a9d7ca7f45de7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesListSamples.java @@ -9,7 +9,7 @@ */ public final class CachesListSamples { /* - * x-ms-original-file: 2026-06-15-preview/Caches_List.json + * x-ms-original-file: 2026-08-01/Caches_List.json */ /** * Sample code: Caches_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesPoolChangeSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesPoolChangeSamples.java index 8ce702abc3bfd..1e89c479f9554 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesPoolChangeSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesPoolChangeSamples.java @@ -11,7 +11,7 @@ */ public final class CachesPoolChangeSamples { /* - * x-ms-original-file: 2026-06-15-preview/Caches_PoolChange.json + * x-ms-original-file: 2026-08-01/Caches_PoolChange.json */ /** * Sample code: Caches_PoolChange. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesResetSmbPasswordSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesResetSmbPasswordSamples.java index a73de5c401ea7..84b296d594065 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesResetSmbPasswordSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesResetSmbPasswordSamples.java @@ -9,7 +9,7 @@ */ public final class CachesResetSmbPasswordSamples { /* - * x-ms-original-file: 2026-06-15-preview/Caches_ResetSmbPassword.json + * x-ms-original-file: 2026-08-01/Caches_ResetSmbPassword.json */ /** * Sample code: Caches_ResetSmbPassword. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesUpdateSamples.java index 0dad7c384af8f..5ef50b60e0261 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/CachesUpdateSamples.java @@ -12,7 +12,7 @@ */ public final class CachesUpdateSamples { /* - * x-ms-original-file: 2026-06-15-preview/Caches_Update.json + * x-ms-original-file: 2026-08-01/Caches_Update.json */ /** * Sample code: Caches_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsCreateOrUpdateSamples.java deleted file mode 100644 index 061356000aa38..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsCreateOrUpdateSamples.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.resourcemanager.netapp.models.ElasticAccountProperties; -import java.util.HashMap; -import java.util.Map; - -/** - * Samples for ElasticAccounts CreateOrUpdate. - */ -public final class ElasticAccountsCreateOrUpdateSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticAccounts_CreateOrUpdate.json - */ - /** - * Sample code: ElasticAccounts_CreateOrUpdate. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticAccountsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticAccounts() - .define("account1") - .withRegion("eastus") - .withExistingResourceGroup("myRG") - .withTags(mapOf("ac-tag1", "account1")) - .withProperties(new ElasticAccountProperties()) - .create(); - } - - // 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/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsDeleteSamples.java deleted file mode 100644 index 3a5a883d0106a..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsDeleteSamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -/** - * Samples for ElasticAccounts Delete. - */ -public final class ElasticAccountsDeleteSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticAccounts_Delete.json - */ - /** - * Sample code: ElasticAccounts_Delete. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticAccountsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticAccounts().delete("myRG", "account1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsGetByResourceGroupSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsGetByResourceGroupSamples.java deleted file mode 100644 index 84b0e5004da94..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsGetByResourceGroupSamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -/** - * Samples for ElasticAccounts GetByResourceGroup. - */ -public final class ElasticAccountsGetByResourceGroupSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticAccounts_Get.json - */ - /** - * Sample code: ElasticAccounts_Get. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticAccountsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticAccounts().getByResourceGroupWithResponse("myRG", "account1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsListByResourceGroupSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsListByResourceGroupSamples.java deleted file mode 100644 index 36f1502093a41..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsListByResourceGroupSamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -/** - * Samples for ElasticAccounts ListByResourceGroup. - */ -public final class ElasticAccountsListByResourceGroupSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticAccounts_ListByResourceGroup.json - */ - /** - * Sample code: ElasticAccounts_ListByResourceGroup. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticAccountsListByResourceGroup(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticAccounts().listByResourceGroup("myRG", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsListSamples.java deleted file mode 100644 index b12bb9ac32f87..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsListSamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -/** - * Samples for ElasticAccounts List. - */ -public final class ElasticAccountsListSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticAccounts_ListBySubscription.json - */ - /** - * Sample code: ElasticAccounts_ListBySubscription. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticAccountsListBySubscription(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticAccounts().list(com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsUpdateSamples.java deleted file mode 100644 index 52803825576e6..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticAccountsUpdateSamples.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.resourcemanager.netapp.models.ElasticAccount; -import java.util.HashMap; -import java.util.Map; - -/** - * Samples for ElasticAccounts Update. - */ -public final class ElasticAccountsUpdateSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticAccounts_Update.json - */ - /** - * Sample code: ElasticAccounts_Update. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticAccountsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - ElasticAccount resource = manager.elasticAccounts() - .getByResourceGroupWithResponse("myRG", "account1", com.azure.core.util.Context.NONE) - .getValue(); - resource.update().withTags(mapOf("Tag1", "Value1")).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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesCreateOrUpdateSamples.java deleted file mode 100644 index 4d9c6c6fe34ad..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesCreateOrUpdateSamples.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyProperties; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyState; - -/** - * Samples for ElasticBackupPolicies CreateOrUpdate. - */ -public final class ElasticBackupPoliciesCreateOrUpdateSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticBackupPolicies_CreateOrUpdate.json - */ - /** - * Sample code: ElasticBackupPolicies_CreateOrUpdate. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void - elasticBackupPoliciesCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticBackupPolicies() - .define("backupPolicyName") - .withRegion("westus") - .withExistingElasticAccount("myRG", "account1") - .withProperties(new ElasticBackupPolicyProperties().withDailyBackupsToKeep(10) - .withWeeklyBackupsToKeep(10) - .withMonthlyBackupsToKeep(10) - .withPolicyState(ElasticBackupPolicyState.ENABLED)) - .create(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesDeleteSamples.java deleted file mode 100644 index 36eeb7e2697a3..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesDeleteSamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -/** - * Samples for ElasticBackupPolicies Delete. - */ -public final class ElasticBackupPoliciesDeleteSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticBackupPolicies_Delete.json - */ - /** - * Sample code: ElasticBackupPolicies_Delete. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticBackupPoliciesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticBackupPolicies() - .delete("resourceGroup", "accountName", "backupPolicyName", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesGetSamples.java deleted file mode 100644 index 24765c20ccb1c..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesGetSamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -/** - * Samples for ElasticBackupPolicies Get. - */ -public final class ElasticBackupPoliciesGetSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticBackupPolicies_Get.json - */ - /** - * Sample code: ElasticBackupPolicies_Get. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticBackupPoliciesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticBackupPolicies() - .getWithResponse("myRG", "account1", "backupPolicyName", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesListByElasticAccountSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesListByElasticAccountSamples.java deleted file mode 100644 index f63cc6a9eb8f0..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesListByElasticAccountSamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -/** - * Samples for ElasticBackupPolicies ListByElasticAccount. - */ -public final class ElasticBackupPoliciesListByElasticAccountSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticBackupPolicies_List.json - */ - /** - * Sample code: ElasticBackupPolicies_ListByElasticAccount. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void - elasticBackupPoliciesListByElasticAccount(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticBackupPolicies().listByElasticAccount("myRG", "account1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesUpdateSamples.java deleted file mode 100644 index 3b023cfd1fb82..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesUpdateSamples.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicy; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyState; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyUpdateProperties; - -/** - * Samples for ElasticBackupPolicies Update. - */ -public final class ElasticBackupPoliciesUpdateSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticBackupPolicies_Update.json - */ - /** - * Sample code: ElasticBackupPolicies_Update. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticBackupPoliciesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - ElasticBackupPolicy resource = manager.elasticBackupPolicies() - .getWithResponse("myRG", "account1", "backupPolicyName", com.azure.core.util.Context.NONE) - .getValue(); - resource.update() - .withProperties(new ElasticBackupPolicyUpdateProperties().withDailyBackupsToKeep(5) - .withWeeklyBackupsToKeep(10) - .withMonthlyBackupsToKeep(10) - .withPolicyState(ElasticBackupPolicyState.ENABLED)) - .apply(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsCreateOrUpdateSamples.java deleted file mode 100644 index 0ea0941a717c8..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsCreateOrUpdateSamples.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -/** - * Samples for ElasticBackupVaults CreateOrUpdate. - */ -public final class ElasticBackupVaultsCreateOrUpdateSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticBackupVaults_Create.json - */ - /** - * Sample code: ElasticBackupVaults_CreateOrUpdate. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticBackupVaultsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticBackupVaults() - .define("backupVault1") - .withRegion("eastus") - .withExistingElasticAccount("myRG", "account1") - .create(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsDeleteSamples.java deleted file mode 100644 index 4ec1870dc7b58..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsDeleteSamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -/** - * Samples for ElasticBackupVaults Delete. - */ -public final class ElasticBackupVaultsDeleteSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticBackupVaults_Delete.json - */ - /** - * Sample code: ElasticBackupVaults_Delete. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticBackupVaultsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticBackupVaults() - .delete("resourceGroup", "account1", "backupVault1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsGetSamples.java deleted file mode 100644 index 37eaa6ef52ce5..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsGetSamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -/** - * Samples for ElasticBackupVaults Get. - */ -public final class ElasticBackupVaultsGetSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticBackupVaults_Get.json - */ - /** - * Sample code: ElasticBackupVaults_Get. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticBackupVaultsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticBackupVaults() - .getWithResponse("myRG", "account1", "backupVault1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsListByElasticAccountSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsListByElasticAccountSamples.java deleted file mode 100644 index 46350aa2c535a..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsListByElasticAccountSamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -/** - * Samples for ElasticBackupVaults ListByElasticAccount. - */ -public final class ElasticBackupVaultsListByElasticAccountSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticBackupVaults_ListByElasticAccount.json - */ - /** - * Sample code: ElasticBackupVaults_ListByElasticAccount. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void - elasticBackupVaultsListByElasticAccount(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticBackupVaults().listByElasticAccount("myRG", "account1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsUpdateSamples.java deleted file mode 100644 index d2d16b783ae85..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsUpdateSamples.java +++ /dev/null @@ -1,41 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.resourcemanager.netapp.models.ElasticBackupVault; -import java.util.HashMap; -import java.util.Map; - -/** - * Samples for ElasticBackupVaults Update. - */ -public final class ElasticBackupVaultsUpdateSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticBackupVaults_Update.json - */ - /** - * Sample code: ElasticBackupVaults_Update. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticBackupVaultsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - ElasticBackupVault resource = manager.elasticBackupVaults() - .getWithResponse("myRG", "account1", "backupVault1", com.azure.core.util.Context.NONE) - .getValue(); - resource.update().withTags(mapOf("Tag1", "Value1")).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; - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsCreateOrUpdateSamples.java deleted file mode 100644 index f2abf7a3d3f80..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsCreateOrUpdateSamples.java +++ /dev/null @@ -1,34 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.resourcemanager.netapp.models.ElasticBackupProperties; -import com.azure.resourcemanager.netapp.models.SnapshotUsage; - -/** - * Samples for ElasticBackups CreateOrUpdate. - */ -public final class ElasticBackupsCreateOrUpdateSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticBackups_CreateOrUpdate.json - */ - /** - * Sample code: ElasticBackups_CreateOrUpdate. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticBackupsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticBackups() - .define("backup1") - .withExistingElasticBackupVault("myRG", "account1", "backupVault1") - .withProperties(new ElasticBackupProperties().withLabel("myLabel") - .withElasticVolumeResourceId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/elasticAccounts/account1/elasticCapacityPools/pool1/elasticVolumes/volume1") - .withSnapshotUsage(SnapshotUsage.USE_EXISTING_SNAPSHOT) - .withElasticSnapshotResourceId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/elasticAccounts/account1/elasticCapacityPools/pool1/elasticVolumes/volume1/elasticSnapshots/snap1")) - .create(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsDeleteSamples.java deleted file mode 100644 index 1d2a9b18c12e9..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsDeleteSamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -/** - * Samples for ElasticBackups Delete. - */ -public final class ElasticBackupsDeleteSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticBackups_Delete.json - */ - /** - * Sample code: ElasticBackups_Delete. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticBackupsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticBackups() - .delete("resourceGroup", "account1", "backupVault1", "backup1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsGetSamples.java deleted file mode 100644 index dbf9f54690784..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsGetSamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -/** - * Samples for ElasticBackups Get. - */ -public final class ElasticBackupsGetSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticBackups_Get.json - */ - /** - * Sample code: ElasticBackups_Get. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticBackupsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticBackups() - .getWithResponse("myRG", "account1", "backupVault1", "backup1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsListByVaultSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsListByVaultSamples.java deleted file mode 100644 index 39aec64bec2ad..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsListByVaultSamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -/** - * Samples for ElasticBackups ListByVault. - */ -public final class ElasticBackupsListByVaultSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticBackups_ListByVault.json - */ - /** - * Sample code: ElasticBackups_ListByVault. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticBackupsListByVault(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticBackups().listByVault("myRG", "account1", "backupVault1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsUpdateSamples.java deleted file mode 100644 index 122298feab8b8..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsUpdateSamples.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.resourcemanager.netapp.models.ElasticBackup; - -/** - * Samples for ElasticBackups Update. - */ -public final class ElasticBackupsUpdateSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticBackups_Update.json - */ - /** - * Sample code: ElasticBackups_Update. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticBackupsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - ElasticBackup resource = manager.elasticBackups() - .getWithResponse("myRG", "account1", "backupVault1", "backup1", com.azure.core.util.Context.NONE) - .getValue(); - resource.update().apply(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsChangeZoneSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsChangeZoneSamples.java deleted file mode 100644 index 8eb19e28e1aa5..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsChangeZoneSamples.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.resourcemanager.netapp.models.ChangeZoneRequest; - -/** - * Samples for ElasticCapacityPools ChangeZone. - */ -public final class ElasticCapacityPoolsChangeZoneSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticCapacityPools_ChangeZone.json - */ - /** - * Sample code: ElasticCapacityPools_ChangeZone. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticCapacityPoolsChangeZone(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticCapacityPools() - .changeZone("myRG", "account1", "pool1", new ChangeZoneRequest().withNewZone("3"), - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsCheckVolumeFilePathAvailabilitySamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsCheckVolumeFilePathAvailabilitySamples.java deleted file mode 100644 index d899b80147e06..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsCheckVolumeFilePathAvailabilitySamples.java +++ /dev/null @@ -1,28 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.resourcemanager.netapp.models.CheckElasticVolumeFilePathAvailabilityRequest; - -/** - * Samples for ElasticCapacityPools CheckVolumeFilePathAvailability. - */ -public final class ElasticCapacityPoolsCheckVolumeFilePathAvailabilitySamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticCapacityPools_CheckVolumeFilePathAvailability.json - */ - /** - * Sample code: ElasticCapacityPools_CheckVolumeFilePathAvailability. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticCapacityPoolsCheckVolumeFilePathAvailability( - com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticCapacityPools() - .checkVolumeFilePathAvailabilityWithResponse("myRG", "account1", "pool1", - new CheckElasticVolumeFilePathAvailabilityRequest().withFilePath("my-exact-filepath"), - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsCreateOrUpdateSamples.java deleted file mode 100644 index b3f2aca6f405a..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsCreateOrUpdateSamples.java +++ /dev/null @@ -1,66 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.resourcemanager.netapp.models.ElasticCapacityPoolProperties; -import com.azure.resourcemanager.netapp.models.ElasticEncryptionConfiguration; -import com.azure.resourcemanager.netapp.models.ElasticPoolEncryptionKeySource; -import com.azure.resourcemanager.netapp.models.ElasticServiceLevel; -import java.util.Arrays; - -/** - * Samples for ElasticCapacityPools CreateOrUpdate. - */ -public final class ElasticCapacityPoolsCreateOrUpdateSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticCapacityPools_CreateOrUpdateCMK.json - */ - /** - * Sample code: ElasticCapacityPools_CreateOrUpdateCMK. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void - elasticCapacityPoolsCreateOrUpdateCMK(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticCapacityPools() - .define("pool1") - .withRegion("eastus") - .withExistingElasticAccount("myRG", "account1") - .withProperties(new ElasticCapacityPoolProperties().withSize(4398046511104L) - .withServiceLevel(ElasticServiceLevel.ZONE_REDUNDANT) - .withEncryption(new ElasticEncryptionConfiguration() - .withElasticPoolEncryptionKeySource(ElasticPoolEncryptionKeySource.NET_APP) - .withKeyVaultPrivateEndpointResourceId("fakeTokenPlaceholder")) - .withSubnetResourceId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") - .withActiveDirectoryConfigResourceId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/activeDirectoryConfigs/activeDirectoryConfig1")) - .withZones(Arrays.asList("1", "2", "3")) - .create(); - } - - /* - * x-ms-original-file: 2026-06-15-preview/ElasticCapacityPools_CreateOrUpdate.json - */ - /** - * Sample code: ElasticCapacityPools_CreateOrUpdate. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticCapacityPoolsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticCapacityPools() - .define("pool1") - .withRegion("eastus") - .withExistingElasticAccount("myRG", "account1") - .withProperties(new ElasticCapacityPoolProperties().withSize(4398046511104L) - .withServiceLevel(ElasticServiceLevel.ZONE_REDUNDANT) - .withSubnetResourceId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRP/providers/Microsoft.Network/virtualNetworks/testvnet3/subnets/testsubnet3") - .withActiveDirectoryConfigResourceId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/activeDirectoryConfigs/activeDirectoryConfig1")) - .withZones(Arrays.asList("1", "2", "3")) - .create(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsDeleteSamples.java deleted file mode 100644 index 78f5f3f05dbaa..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsDeleteSamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -/** - * Samples for ElasticCapacityPools Delete. - */ -public final class ElasticCapacityPoolsDeleteSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticCapacityPools_Delete.json - */ - /** - * Sample code: ElasticCapacityPools_Delete. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticCapacityPoolsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticCapacityPools().delete("myRG", "account1", "pool1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsGetSamples.java deleted file mode 100644 index 2e483a8dcef1d..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsGetSamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -/** - * Samples for ElasticCapacityPools Get. - */ -public final class ElasticCapacityPoolsGetSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticCapacityPools_Get.json - */ - /** - * Sample code: ElasticCapacityPools_Get. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticCapacityPoolsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticCapacityPools().getWithResponse("myRG", "account1", "pool1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsListByElasticAccountSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsListByElasticAccountSamples.java deleted file mode 100644 index fbbe0eabbe279..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsListByElasticAccountSamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -/** - * Samples for ElasticCapacityPools ListByElasticAccount. - */ -public final class ElasticCapacityPoolsListByElasticAccountSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticCapacityPools_ListByElasticAccount.json - */ - /** - * Sample code: ElasticCapacityPools_ListByElasticAccount. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void - elasticCapacityPoolsListByElasticAccount(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticCapacityPools().listByElasticAccount("myRG", "account1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsUpdateSamples.java deleted file mode 100644 index 2a04e2a8e9d33..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsUpdateSamples.java +++ /dev/null @@ -1,32 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.resourcemanager.netapp.models.ElasticCapacityPool; -import com.azure.resourcemanager.netapp.models.ElasticCapacityPoolUpdateProperties; - -/** - * Samples for ElasticCapacityPools Update. - */ -public final class ElasticCapacityPoolsUpdateSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticCapacityPools_Update.json - */ - /** - * Sample code: ElasticCapacityPools_Update. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticCapacityPoolsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - ElasticCapacityPool resource = manager.elasticCapacityPools() - .getWithResponse("myRG", "account1", "pool1", com.azure.core.util.Context.NONE) - .getValue(); - resource.update() - .withProperties(new ElasticCapacityPoolUpdateProperties().withSize(4398046511104L) - .withActiveDirectoryConfigResourceId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/activeDirectoryConfigs/activeDirectoryConfig1")) - .apply(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesCreateOrUpdateSamples.java deleted file mode 100644 index 5b75c2b3f512b..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesCreateOrUpdateSamples.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.resourcemanager.netapp.models.DayOfWeek; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyDailySchedule; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyHourlySchedule; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyMonthlySchedule; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyProperties; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyWeeklySchedule; -import com.azure.resourcemanager.netapp.models.PolicyStatus; -import java.util.Arrays; - -/** - * Samples for ElasticSnapshotPolicies CreateOrUpdate. - */ -public final class ElasticSnapshotPoliciesCreateOrUpdateSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticSnapshotPolicies_CreateOrUpdate.json - */ - /** - * Sample code: ElasticSnapshotPolicies_CreateOrUpdate. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void - elasticSnapshotPoliciesCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticSnapshotPolicies() - .define("snapshotPolicyName") - .withRegion("eastus") - .withExistingElasticAccount("myRG", "account1") - .withProperties(new ElasticSnapshotPolicyProperties() - .withHourlySchedule(new ElasticSnapshotPolicyHourlySchedule().withSnapshotsToKeep(2).withMinute(50)) - .withDailySchedule( - new ElasticSnapshotPolicyDailySchedule().withSnapshotsToKeep(4).withHour(14).withMinute(30)) - .withWeeklySchedule(new ElasticSnapshotPolicyWeeklySchedule().withSnapshotsToKeep(3) - .withDays(Arrays.asList(DayOfWeek.WEDNESDAY)) - .withHour(14) - .withMinute(45)) - .withMonthlySchedule(new ElasticSnapshotPolicyMonthlySchedule().withSnapshotsToKeep(5) - .withDaysOfMonth(Arrays.asList(10, 11, 12)) - .withHour(14) - .withMinute(15)) - .withPolicyStatus(PolicyStatus.ENABLED)) - .create(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesDeleteSamples.java deleted file mode 100644 index 393ec87235b3b..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesDeleteSamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -/** - * Samples for ElasticSnapshotPolicies Delete. - */ -public final class ElasticSnapshotPoliciesDeleteSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticSnapshotPolicies_Delete.json - */ - /** - * Sample code: ElasticSnapshotPolicies_Delete. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticSnapshotPoliciesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticSnapshotPolicies() - .delete("resourceGroup", "accountName", "snapshotPolicyName", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesGetSamples.java deleted file mode 100644 index e8aaf92f6551b..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesGetSamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -/** - * Samples for ElasticSnapshotPolicies Get. - */ -public final class ElasticSnapshotPoliciesGetSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticSnapshotPolicies_Get.json - */ - /** - * Sample code: ElasticSnapshotPolicies_Get. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticSnapshotPoliciesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticSnapshotPolicies() - .getWithResponse("myRG", "account1", "snapshotPolicyName", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesListByElasticAccountSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesListByElasticAccountSamples.java deleted file mode 100644 index 73cc77dee6ce4..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesListByElasticAccountSamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -/** - * Samples for ElasticSnapshotPolicies ListByElasticAccount. - */ -public final class ElasticSnapshotPoliciesListByElasticAccountSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticSnapshotPolicies_ListByElasticAccount.json - */ - /** - * Sample code: ElasticSnapshotPolicies_ListByElasticAccount. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void - elasticSnapshotPoliciesListByElasticAccount(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticSnapshotPolicies().listByElasticAccount("myRG", "account1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesListElasticVolumesSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesListElasticVolumesSamples.java deleted file mode 100644 index 6ea9f242991bb..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesListElasticVolumesSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -/** - * Samples for ElasticSnapshotPolicies ListElasticVolumes. - */ -public final class ElasticSnapshotPoliciesListElasticVolumesSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticSnapshotPolicies_ListElasticVolumes.json - */ - /** - * Sample code: ElasticSnapshotPolicies_ListElasticVolumes. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void - elasticSnapshotPoliciesListElasticVolumes(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticSnapshotPolicies() - .listElasticVolumes("myRG", "account1", "snapshotPolicyName", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesUpdateSamples.java deleted file mode 100644 index 113d2ffc52ecf..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesUpdateSamples.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.resourcemanager.netapp.models.DayOfWeek; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicy; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyDailySchedule; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyHourlySchedule; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyMonthlySchedule; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyUpdateProperties; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyWeeklySchedule; -import com.azure.resourcemanager.netapp.models.PolicyStatus; -import java.util.Arrays; - -/** - * Samples for ElasticSnapshotPolicies Update. - */ -public final class ElasticSnapshotPoliciesUpdateSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticSnapshotPolicies_Update.json - */ - /** - * Sample code: ElasticSnapshotPolicies_Update. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticSnapshotPoliciesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - ElasticSnapshotPolicy resource = manager.elasticSnapshotPolicies() - .getWithResponse("myRG", "account1", "snapshotPolicyName", com.azure.core.util.Context.NONE) - .getValue(); - resource.update() - .withProperties(new ElasticSnapshotPolicyUpdateProperties() - .withHourlySchedule(new ElasticSnapshotPolicyHourlySchedule().withSnapshotsToKeep(2).withMinute(50)) - .withDailySchedule( - new ElasticSnapshotPolicyDailySchedule().withSnapshotsToKeep(4).withHour(14).withMinute(30)) - .withWeeklySchedule(new ElasticSnapshotPolicyWeeklySchedule().withSnapshotsToKeep(3) - .withDays(Arrays.asList(DayOfWeek.WEDNESDAY)) - .withHour(14) - .withMinute(45)) - .withMonthlySchedule(new ElasticSnapshotPolicyMonthlySchedule().withSnapshotsToKeep(5) - .withDaysOfMonth(Arrays.asList(10, 11, 12)) - .withHour(14) - .withMinute(15)) - .withPolicyStatus(PolicyStatus.ENABLED)) - .apply(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsCreateOrUpdateSamples.java deleted file mode 100644 index d7cff0eac3c0a..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsCreateOrUpdateSamples.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -/** - * Samples for ElasticSnapshots CreateOrUpdate. - */ -public final class ElasticSnapshotsCreateOrUpdateSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticSnapshots_CreateOrUpdate.json - */ - /** - * Sample code: ElasticSnapshots_CreateOrUpdate. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticSnapshotsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticSnapshots() - .define("snapshot1") - .withExistingElasticVolume("myRG", "account1", "pool1", "volume1") - .create(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsDeleteSamples.java deleted file mode 100644 index 9676095d958ca..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsDeleteSamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -/** - * Samples for ElasticSnapshots Delete. - */ -public final class ElasticSnapshotsDeleteSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticSnapshots_Delete.json - */ - /** - * Sample code: ElasticSnapshots_Delete. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticSnapshotsDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticSnapshots() - .delete("myRG", "account1", "pool1", "volume1", "snapshot1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsGetSamples.java deleted file mode 100644 index 960d7cec319fe..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsGetSamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -/** - * Samples for ElasticSnapshots Get. - */ -public final class ElasticSnapshotsGetSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticSnapshots_Get.json - */ - /** - * Sample code: ElasticSnapshots_Get. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticSnapshotsGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticSnapshots() - .getWithResponse("myRG", "account1", "pool1", "volume1", "snapshot1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsListByElasticVolumeSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsListByElasticVolumeSamples.java deleted file mode 100644 index 993ee1c61fb3c..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsListByElasticVolumeSamples.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -/** - * Samples for ElasticSnapshots ListByElasticVolume. - */ -public final class ElasticSnapshotsListByElasticVolumeSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticSnapshots_ListByElasticVolume.json - */ - /** - * Sample code: ElasticSnapshots_ListByElasticVolume. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void - elasticSnapshotsListByElasticVolume(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticSnapshots() - .listByElasticVolume("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesCreateOrUpdateSamples.java deleted file mode 100644 index dac8cd8a00b77..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesCreateOrUpdateSamples.java +++ /dev/null @@ -1,58 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.resourcemanager.netapp.models.ElasticExportPolicy; -import com.azure.resourcemanager.netapp.models.ElasticExportPolicyRule; -import com.azure.resourcemanager.netapp.models.ElasticNfsv3Access; -import com.azure.resourcemanager.netapp.models.ElasticNfsv4Access; -import com.azure.resourcemanager.netapp.models.ElasticProtocolType; -import com.azure.resourcemanager.netapp.models.ElasticRootAccess; -import com.azure.resourcemanager.netapp.models.ElasticUnixAccessRule; -import com.azure.resourcemanager.netapp.models.ElasticVolumeBackupProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumeDataProtectionProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumePolicyEnforcement; -import com.azure.resourcemanager.netapp.models.ElasticVolumeProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumeSnapshotProperties; -import java.util.Arrays; - -/** - * Samples for ElasticVolumes CreateOrUpdate. - */ -public final class ElasticVolumesCreateOrUpdateSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticVolumes_CreateOrUpdate.json - */ - /** - * Sample code: ElasticVolumes_CreateOrUpdate. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticVolumesCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticVolumes() - .define("volume1") - .withRegion("eastus") - .withExistingElasticCapacityPool("myRG", "account1", "pool1") - .withProperties(new ElasticVolumeProperties().withFilePath("my-unique-file-path") - .withSize(107374182400L) - .withExportPolicy( - new ElasticExportPolicy().withRules(Arrays.asList(new ElasticExportPolicyRule().withRuleIndex(1) - .withUnixAccessRule(ElasticUnixAccessRule.READ_ONLY) - .withNfsv3(ElasticNfsv3Access.ENABLED) - .withNfsv4(ElasticNfsv4Access.DISABLED) - .withAllowedClients(Arrays.asList("0.0.0.0/0")) - .withRootAccess(ElasticRootAccess.DISABLED)))) - .withProtocolTypes(Arrays.asList(ElasticProtocolType.NFSV3)) - .withDataProtection(new ElasticVolumeDataProtectionProperties() - .withSnapshot(new ElasticVolumeSnapshotProperties().withSnapshotPolicyResourceId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/elasticAccounts/account1/elasticSnapshotPolicies/policy1")) - .withBackup(new ElasticVolumeBackupProperties().withElasticBackupPolicyResourceId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/elasticAccounts/account1/elasticBackupPolicies/elasticBackupPolicy1") - .withPolicyEnforcement(ElasticVolumePolicyEnforcement.ENFORCED) - .withElasticBackupVaultResourceId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/elasticAccounts/account1/elasticBackupVaults/elasticBackupVault1")))) - .create(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesDeleteSamples.java deleted file mode 100644 index b55a07b08cfd5..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesDeleteSamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -/** - * Samples for ElasticVolumes Delete. - */ -public final class ElasticVolumesDeleteSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticVolumes_Delete.json - */ - /** - * Sample code: ElasticVolumes_Delete. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticVolumesDelete(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticVolumes().delete("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesGetSamples.java deleted file mode 100644 index c3bb5e4fb1b6d..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesGetSamples.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -/** - * Samples for ElasticVolumes Get. - */ -public final class ElasticVolumesGetSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticVolumes_Get.json - */ - /** - * Sample code: ElasticVolumes_Get. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticVolumesGet(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticVolumes() - .getWithResponse("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesListByElasticPoolSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesListByElasticPoolSamples.java deleted file mode 100644 index a627ed9e2d0ba..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesListByElasticPoolSamples.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -/** - * Samples for ElasticVolumes ListByElasticPool. - */ -public final class ElasticVolumesListByElasticPoolSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticVolumes_ListByElasticPool.json - */ - /** - * Sample code: ElasticVolumes_ListByElasticPool. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticVolumesListByElasticPool(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticVolumes().listByElasticPool("myRG", "account1", "pool1", com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesRevertSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesRevertSamples.java deleted file mode 100644 index 245ac85b7a117..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesRevertSamples.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.resourcemanager.netapp.models.ElasticVolumeRevert; - -/** - * Samples for ElasticVolumes Revert. - */ -public final class ElasticVolumesRevertSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticVolumes_Revert.json - */ - /** - * Sample code: ElasticVolumes_Revert. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticVolumesRevert(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - manager.elasticVolumes() - .revert("myRG", "account1", "pool1", "volume1", new ElasticVolumeRevert().withSnapshotResourceId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/elasticAccounts/account1/elasticCapacityPools/pool1/elasticVolumes/volume1/elasticSnapshots/snapshot1"), - com.azure.core.util.Context.NONE); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesUpdateSamples.java deleted file mode 100644 index 47d4e91250feb..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesUpdateSamples.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.resourcemanager.netapp.models.ElasticExportPolicy; -import com.azure.resourcemanager.netapp.models.ElasticExportPolicyRule; -import com.azure.resourcemanager.netapp.models.ElasticNfsv3Access; -import com.azure.resourcemanager.netapp.models.ElasticNfsv4Access; -import com.azure.resourcemanager.netapp.models.ElasticRootAccess; -import com.azure.resourcemanager.netapp.models.ElasticUnixAccessRule; -import com.azure.resourcemanager.netapp.models.ElasticVolume; -import com.azure.resourcemanager.netapp.models.ElasticVolumeDataProtectionPatchProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumeSnapshotProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumeUpdateProperties; -import java.util.Arrays; - -/** - * Samples for ElasticVolumes Update. - */ -public final class ElasticVolumesUpdateSamples { - /* - * x-ms-original-file: 2026-06-15-preview/ElasticVolumes_Update.json - */ - /** - * Sample code: ElasticVolumes_Update. - * - * @param manager Entry point to NetAppFilesManager. - */ - public static void elasticVolumesUpdate(com.azure.resourcemanager.netapp.NetAppFilesManager manager) { - ElasticVolume resource = manager.elasticVolumes() - .getWithResponse("myRG", "account1", "pool1", "volume1", com.azure.core.util.Context.NONE) - .getValue(); - resource.update() - .withProperties(new ElasticVolumeUpdateProperties() - .withExportPolicy( - new ElasticExportPolicy().withRules(Arrays.asList(new ElasticExportPolicyRule().withRuleIndex(1) - .withUnixAccessRule(ElasticUnixAccessRule.READ_ONLY) - .withNfsv3(ElasticNfsv3Access.ENABLED) - .withNfsv4(ElasticNfsv4Access.DISABLED) - .withAllowedClients(Arrays.asList("0.0.0.0/0")) - .withRootAccess(ElasticRootAccess.DISABLED)))) - .withDataProtection(new ElasticVolumeDataProtectionPatchProperties() - .withSnapshot(new ElasticVolumeSnapshotProperties().withSnapshotPolicyResourceId( - "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/myRG/providers/Microsoft.NetApp/elasticAccounts/account1/elasticSnapshotPolicies/policy1")))) - .apply(); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckFilePathAvailabilitySamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckFilePathAvailabilitySamples.java index 3a6717b8c0c6f..dca13b817baff 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckFilePathAvailabilitySamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckFilePathAvailabilitySamples.java @@ -11,7 +11,7 @@ */ public final class NetAppResourceCheckFilePathAvailabilitySamples { /* - * x-ms-original-file: 2026-06-15-preview/CheckFilePathAvailability.json + * x-ms-original-file: 2026-08-01/CheckFilePathAvailability.json */ /** * Sample code: CheckFilePathAvailability. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckNameAvailabilitySamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckNameAvailabilitySamples.java index e6eea84a642d6..da508e6b88211 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckNameAvailabilitySamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckNameAvailabilitySamples.java @@ -12,7 +12,7 @@ */ public final class NetAppResourceCheckNameAvailabilitySamples { /* - * x-ms-original-file: 2026-06-15-preview/CheckNameAvailability.json + * x-ms-original-file: 2026-08-01/CheckNameAvailability.json */ /** * Sample code: CheckNameAvailability. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckQuotaAvailabilitySamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckQuotaAvailabilitySamples.java index 608df5b3e87de..2d344f186c7a0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckQuotaAvailabilitySamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceCheckQuotaAvailabilitySamples.java @@ -12,7 +12,7 @@ */ public final class NetAppResourceCheckQuotaAvailabilitySamples { /* - * x-ms-original-file: 2026-06-15-preview/CheckQuotaAvailability.json + * x-ms-original-file: 2026-08-01/CheckQuotaAvailability.json */ /** * Sample code: CheckQuotaAvailability. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQueryNetworkSiblingSetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQueryNetworkSiblingSetSamples.java index 70a1f42500a2c..02bcbbb81936c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQueryNetworkSiblingSetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQueryNetworkSiblingSetSamples.java @@ -11,7 +11,7 @@ */ public final class NetAppResourceQueryNetworkSiblingSetSamples { /* - * x-ms-original-file: 2026-06-15-preview/NetworkSiblingSet_Query.json + * x-ms-original-file: 2026-08-01/NetworkSiblingSet_Query.json */ /** * Sample code: NetworkSiblingSet_Query. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQueryRegionInfoSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQueryRegionInfoSamples.java index 2aa0fc278ab89..43a1b03d4b216 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQueryRegionInfoSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQueryRegionInfoSamples.java @@ -9,7 +9,7 @@ */ public final class NetAppResourceQueryRegionInfoSamples { /* - * x-ms-original-file: 2026-06-15-preview/RegionInfo.json + * x-ms-original-file: 2026-08-01/RegionInfo.json */ /** * Sample code: RegionInfo_Query. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountGetSamples.java index bec8af93d2818..ad649cd4bbcdb 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountGetSamples.java @@ -9,7 +9,7 @@ */ public final class NetAppResourceQuotaLimitsAccountGetSamples { /* - * x-ms-original-file: 2026-06-15-preview/NetAppResourceQuotaLimitsAccount_Get.json + * x-ms-original-file: 2026-08-01/NetAppResourceQuotaLimitsAccount_Get.json */ /** * Sample code: QuotaLimits. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountListSamples.java index 3169fe19eb5c1..b75d935ad88ff 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountListSamples.java @@ -9,7 +9,7 @@ */ public final class NetAppResourceQuotaLimitsAccountListSamples { /* - * x-ms-original-file: 2026-06-15-preview/NetAppResourceQuotaLimitsAccount_List.json + * x-ms-original-file: 2026-08-01/NetAppResourceQuotaLimitsAccount_List.json */ /** * Sample code: QuotaLimits. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsGetSamples.java index 1a7ed65698279..91eca5df3a1e0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsGetSamples.java @@ -9,7 +9,7 @@ */ public final class NetAppResourceQuotaLimitsGetSamples { /* - * x-ms-original-file: 2026-06-15-preview/NetAppResourceQuotaLimits_Get.json + * x-ms-original-file: 2026-08-01/NetAppResourceQuotaLimits_Get.json */ /** * Sample code: QuotaLimits. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListSamples.java index 0f4ebeaecd536..28138736f25c7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListSamples.java @@ -9,7 +9,7 @@ */ public final class NetAppResourceQuotaLimitsListSamples { /* - * x-ms-original-file: 2026-06-15-preview/NetAppResourceQuotaLimits_List.json + * x-ms-original-file: 2026-08-01/NetAppResourceQuotaLimits_List.json */ /** * Sample code: QuotaLimits. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosGetSamples.java index f76f7350c244d..264181bddc9b5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosGetSamples.java @@ -9,7 +9,7 @@ */ public final class NetAppResourceRegionInfosGetSamples { /* - * x-ms-original-file: 2026-06-15-preview/RegionInfos_Get.json + * x-ms-original-file: 2026-08-01/RegionInfos_Get.json */ /** * Sample code: RegionInfos_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosListSamples.java index 6b3aa0b976feb..281d0f70c2a39 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosListSamples.java @@ -9,7 +9,7 @@ */ public final class NetAppResourceRegionInfosListSamples { /* - * x-ms-original-file: 2026-06-15-preview/RegionInfos_List.json + * x-ms-original-file: 2026-08-01/RegionInfos_List.json */ /** * Sample code: RegionInfos_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUpdateNetworkSiblingSetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUpdateNetworkSiblingSetSamples.java index e2c7042695ffb..f6f99de0aed78 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUpdateNetworkSiblingSetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUpdateNetworkSiblingSetSamples.java @@ -12,7 +12,7 @@ */ public final class NetAppResourceUpdateNetworkSiblingSetSamples { /* - * x-ms-original-file: 2026-06-15-preview/NetworkSiblingSet_Update.json + * x-ms-original-file: 2026-08-01/NetworkSiblingSet_Update.json */ /** * Sample code: NetworkFeatures_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesGetSamples.java index f5f59870b6570..8a0c36cf6df3a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesGetSamples.java @@ -9,7 +9,7 @@ */ public final class NetAppResourceUsagesGetSamples { /* - * x-ms-original-file: 2026-06-15-preview/Usages_Get.json + * x-ms-original-file: 2026-08-01/Usages_Get.json */ /** * Sample code: Usages_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesListSamples.java index 6ec4af1465efd..3d310b0f9ba12 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesListSamples.java @@ -9,7 +9,7 @@ */ public final class NetAppResourceUsagesListSamples { /* - * x-ms-original-file: 2026-06-15-preview/Usages_List.json + * x-ms-original-file: 2026-08-01/Usages_List.json */ /** * Sample code: Usages_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/OperationsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/OperationsListSamples.java index fe25ca8568819..d64d5fcdece4e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/OperationsListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/OperationsListSamples.java @@ -9,7 +9,7 @@ */ public final class OperationsListSamples { /* - * x-ms-original-file: 2026-06-15-preview/OperationList.json + * x-ms-original-file: 2026-08-01/OperationList.json */ /** * Sample code: OperationList. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsCreateOrUpdateSamples.java index 90ad957a07d2f..329aedba7a52a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsCreateOrUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsCreateOrUpdateSamples.java @@ -12,7 +12,7 @@ */ public final class PoolsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-06-15-preview/Pools_CreateOrUpdate.json + * x-ms-original-file: 2026-08-01/Pools_CreateOrUpdate.json */ /** * Sample code: Pools_CreateOrUpdate. @@ -31,7 +31,7 @@ public static void poolsCreateOrUpdate(com.azure.resourcemanager.netapp.NetAppFi } /* - * x-ms-original-file: 2026-06-15-preview/Pools_CreateOrUpdate_CustomThroughput.json + * x-ms-original-file: 2026-08-01/Pools_CreateOrUpdate_CustomThroughput.json */ /** * Sample code: Pools_CreateOrUpdate_CustomThroughput. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsDeleteSamples.java index 70b2fc7fa97a4..36ad9a17832e8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class PoolsDeleteSamples { /* - * x-ms-original-file: 2026-06-15-preview/Pools_Delete.json + * x-ms-original-file: 2026-08-01/Pools_Delete.json */ /** * Sample code: Pools_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsGetSamples.java index 48fcfbc742649..bb33431bf7015 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsGetSamples.java @@ -9,7 +9,7 @@ */ public final class PoolsGetSamples { /* - * x-ms-original-file: 2026-06-15-preview/Pools_Get_CustomThroughput.json + * x-ms-original-file: 2026-08-01/Pools_Get_CustomThroughput.json */ /** * Sample code: Pools_Get_CustomThroughput. @@ -21,7 +21,7 @@ public static void poolsGetCustomThroughput(com.azure.resourcemanager.netapp.Net } /* - * x-ms-original-file: 2026-06-15-preview/Pools_Get.json + * x-ms-original-file: 2026-08-01/Pools_Get.json */ /** * Sample code: Pools_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsListSamples.java index 21518ba6e35bf..7c4a29dead3a8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsListSamples.java @@ -9,7 +9,7 @@ */ public final class PoolsListSamples { /* - * x-ms-original-file: 2026-06-15-preview/Pools_List.json + * x-ms-original-file: 2026-08-01/Pools_List.json */ /** * Sample code: Pools_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsUpdateSamples.java index 297fc65d3ae02..78c800a6846d0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/PoolsUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class PoolsUpdateSamples { /* - * x-ms-original-file: 2026-06-15-preview/Pools_Update.json + * x-ms-original-file: 2026-08-01/Pools_Update.json */ /** * Sample code: Pools_Update. @@ -25,7 +25,7 @@ public static void poolsUpdate(com.azure.resourcemanager.netapp.NetAppFilesManag } /* - * x-ms-original-file: 2026-06-15-preview/Pools_Update_CustomThroughput.json + * x-ms-original-file: 2026-08-01/Pools_Update_CustomThroughput.json */ /** * Sample code: Pools_Update_CustomThroughput. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsClearSuspectsSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsClearSuspectsSamples.java index 4b0e51437e158..460c9c9f50268 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsClearSuspectsSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsClearSuspectsSamples.java @@ -13,7 +13,7 @@ */ public final class RansomwareReportsClearSuspectsSamples { /* - * x-ms-original-file: 2026-06-15-preview/RansomwareReports_ClearSuspects.json + * x-ms-original-file: 2026-08-01/RansomwareReports_ClearSuspects.json */ /** * Sample code: RansomwareReports_ClearSuspects. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsGetSamples.java index be897ff2a1ac4..da06d2823f807 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsGetSamples.java @@ -9,7 +9,7 @@ */ public final class RansomwareReportsGetSamples { /* - * x-ms-original-file: 2026-06-15-preview/RansomwareReports_Get.json + * x-ms-original-file: 2026-08-01/RansomwareReports_Get.json */ /** * Sample code: RansomwareReports_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsListSamples.java index f315306162f72..0fa8c62d25874 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsListSamples.java @@ -9,7 +9,7 @@ */ public final class RansomwareReportsListSamples { /* - * x-ms-original-file: 2026-06-15-preview/RansomwareReports_List.json + * x-ms-original-file: 2026-08-01/RansomwareReports_List.json */ /** * Sample code: RansomwareReports_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateSamples.java index 6c653a2b8d08d..e494c985b4b03 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateSamples.java @@ -14,7 +14,7 @@ */ public final class SnapshotPoliciesCreateSamples { /* - * x-ms-original-file: 2026-06-15-preview/SnapshotPolicies_Create.json + * x-ms-original-file: 2026-08-01/SnapshotPolicies_Create.json */ /** * Sample code: SnapshotPolicies_Create. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteSamples.java index c903e8ce754d4..7ac042334dcfa 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class SnapshotPoliciesDeleteSamples { /* - * x-ms-original-file: 2026-06-15-preview/SnapshotPolicies_Delete.json + * x-ms-original-file: 2026-08-01/SnapshotPolicies_Delete.json */ /** * Sample code: SnapshotPolicies_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetSamples.java index 5ec0c59a487b1..9cfd2b56cd9ca 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetSamples.java @@ -9,7 +9,7 @@ */ public final class SnapshotPoliciesGetSamples { /* - * x-ms-original-file: 2026-06-15-preview/SnapshotPolicies_Get.json + * x-ms-original-file: 2026-08-01/SnapshotPolicies_Get.json */ /** * Sample code: SnapshotPolicies_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListSamples.java index cb7f2302b4d23..160d49499ab27 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListSamples.java @@ -9,7 +9,7 @@ */ public final class SnapshotPoliciesListSamples { /* - * x-ms-original-file: 2026-06-15-preview/SnapshotPolicies_List.json + * x-ms-original-file: 2026-08-01/SnapshotPolicies_List.json */ /** * Sample code: SnapshotPolicies_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListVolumesSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListVolumesSamples.java index 604b216699d54..05ebfa532df74 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListVolumesSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListVolumesSamples.java @@ -9,7 +9,7 @@ */ public final class SnapshotPoliciesListVolumesSamples { /* - * x-ms-original-file: 2026-06-15-preview/SnapshotPolicies_ListVolumes.json + * x-ms-original-file: 2026-08-01/SnapshotPolicies_ListVolumes.json */ /** * Sample code: SnapshotPolicies_ListVolumes. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesUpdateSamples.java index da4c5f5698334..9f19268ed95da 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesUpdateSamples.java @@ -15,7 +15,7 @@ */ public final class SnapshotPoliciesUpdateSamples { /* - * x-ms-original-file: 2026-06-15-preview/SnapshotPolicies_Update.json + * x-ms-original-file: 2026-08-01/SnapshotPolicies_Update.json */ /** * Sample code: SnapshotPolicies_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsCreateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsCreateSamples.java index 535675d4e1c6d..f7de613b30fd8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsCreateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsCreateSamples.java @@ -9,7 +9,7 @@ */ public final class SnapshotsCreateSamples { /* - * x-ms-original-file: 2026-06-15-preview/Snapshots_Create.json + * x-ms-original-file: 2026-08-01/Snapshots_Create.json */ /** * Sample code: Snapshots_Create. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteSamples.java index f57f63f2817b5..91609f80353fd 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class SnapshotsDeleteSamples { /* - * x-ms-original-file: 2026-06-15-preview/Snapshots_Delete.json + * x-ms-original-file: 2026-08-01/Snapshots_Delete.json */ /** * Sample code: Snapshots_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsGetSamples.java index 8ad553c5df230..b77488a8c5ca1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsGetSamples.java @@ -9,7 +9,7 @@ */ public final class SnapshotsGetSamples { /* - * x-ms-original-file: 2026-06-15-preview/Snapshots_Get.json + * x-ms-original-file: 2026-08-01/Snapshots_Get.json */ /** * Sample code: Snapshots_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsListSamples.java index f68ba7717da13..4624aeadc3450 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsListSamples.java @@ -9,7 +9,7 @@ */ public final class SnapshotsListSamples { /* - * x-ms-original-file: 2026-06-15-preview/Snapshots_List.json + * x-ms-original-file: 2026-08-01/Snapshots_List.json */ /** * Sample code: Snapshots_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesSamples.java index 578a9354e67d0..04b557b8dad9f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesSamples.java @@ -12,7 +12,7 @@ */ public final class SnapshotsRestoreFilesSamples { /* - * x-ms-original-file: 2026-06-15-preview/Snapshots_SingleFileRestore.json + * x-ms-original-file: 2026-08-01/Snapshots_SingleFileRestore.json */ /** * Sample code: Snapshots_SingleFileRestore. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesCreateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesCreateSamples.java index c14e2f16e5c85..f7fa76a153e9b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesCreateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesCreateSamples.java @@ -9,7 +9,7 @@ */ public final class SubvolumesCreateSamples { /* - * x-ms-original-file: 2026-06-15-preview/Subvolumes_Create.json + * x-ms-original-file: 2026-08-01/Subvolumes_Create.json */ /** * Sample code: Subvolumes_Create. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteSamples.java index cf84eb7a79389..7799a1b81e064 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class SubvolumesDeleteSamples { /* - * x-ms-original-file: 2026-06-15-preview/Subvolumes_Delete.json + * x-ms-original-file: 2026-08-01/Subvolumes_Delete.json */ /** * Sample code: Subvolumes_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataSamples.java index 7c4bb7d9ba379..90f265431103c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataSamples.java @@ -9,7 +9,7 @@ */ public final class SubvolumesGetMetadataSamples { /* - * x-ms-original-file: 2026-06-15-preview/Subvolumes_Metadata.json + * x-ms-original-file: 2026-08-01/Subvolumes_Metadata.json */ /** * Sample code: Subvolumes_Metadata. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetSamples.java index 07638a2626551..ba1611b6152cb 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetSamples.java @@ -9,7 +9,7 @@ */ public final class SubvolumesGetSamples { /* - * x-ms-original-file: 2026-06-15-preview/Subvolumes_Get.json + * x-ms-original-file: 2026-08-01/Subvolumes_Get.json */ /** * Sample code: Subvolumes_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeSamples.java index 194711fce31c5..1194b34ed24d8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeSamples.java @@ -9,7 +9,7 @@ */ public final class SubvolumesListByVolumeSamples { /* - * x-ms-original-file: 2026-06-15-preview/Subvolumes_List.json + * x-ms-original-file: 2026-08-01/Subvolumes_List.json */ /** * Sample code: Subvolumes_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesUpdateSamples.java index 62e2dd02fda7f..75fd9bb010d76 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/SubvolumesUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class SubvolumesUpdateSamples { /* - * x-ms-original-file: 2026-06-15-preview/Subvolumes_Update.json + * x-ms-original-file: 2026-08-01/Subvolumes_Update.json */ /** * Sample code: Subvolumes_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsCreateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsCreateSamples.java index cc17d16a5e2b8..d4131cc7b49aa 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsCreateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsCreateSamples.java @@ -20,7 +20,7 @@ */ public final class VolumeGroupsCreateSamples { /* - * x-ms-original-file: 2026-06-15-preview/VolumeGroups_Create_SapHana.json + * x-ms-original-file: 2026-08-01/VolumeGroups_Create_SapHana.json */ /** * Sample code: VolumeGroups_Create_SapHana. @@ -180,7 +180,7 @@ public static void volumeGroupsCreateSapHana(com.azure.resourcemanager.netapp.Ne } /* - * x-ms-original-file: 2026-06-15-preview/VolumeGroups_Create_Oracle.json + * x-ms-original-file: 2026-08-01/VolumeGroups_Create_Oracle.json */ /** * Sample code: VolumeGroups_Create_Oracle. @@ -524,7 +524,7 @@ public static void volumeGroupsCreateOracle(com.azure.resourcemanager.netapp.Net } /* - * x-ms-original-file: 2026-06-15-preview/VolumeGroups_Create_Custom.json + * x-ms-original-file: 2026-08-01/VolumeGroups_Create_Custom.json */ /** * Sample code: VolumeGroups_Create_Custom. @@ -868,7 +868,7 @@ public static void volumeGroupsCreateCustom(com.azure.resourcemanager.netapp.Net } /* - * x-ms-original-file: 2026-06-15-preview/VolumeGroups_Create_Custom_SMB.json + * x-ms-original-file: 2026-08-01/VolumeGroups_Create_Custom_SMB.json */ /** * Sample code: VolumeGroups_Create_Custom_SMB. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteSamples.java index cb7bca4fb8e51..1ff8d59cadb9b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class VolumeGroupsDeleteSamples { /* - * x-ms-original-file: 2026-06-15-preview/VolumeGroups_Delete.json + * x-ms-original-file: 2026-08-01/VolumeGroups_Delete.json */ /** * Sample code: VolumeGroups_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsGetSamples.java index 6762354ad09f6..9fa54dedf55d7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsGetSamples.java @@ -9,7 +9,7 @@ */ public final class VolumeGroupsGetSamples { /* - * x-ms-original-file: 2026-06-15-preview/VolumeGroups_Get_Custom.json + * x-ms-original-file: 2026-08-01/VolumeGroups_Get_Custom.json */ /** * Sample code: VolumeGroups_Get_Custom. @@ -21,7 +21,7 @@ public static void volumeGroupsGetCustom(com.azure.resourcemanager.netapp.NetApp } /* - * x-ms-original-file: 2026-06-15-preview/VolumeGroups_Get_SapHana.json + * x-ms-original-file: 2026-08-01/VolumeGroups_Get_SapHana.json */ /** * Sample code: VolumeGroups_Get_SapHana. @@ -33,7 +33,7 @@ public static void volumeGroupsGetSapHana(com.azure.resourcemanager.netapp.NetAp } /* - * x-ms-original-file: 2026-06-15-preview/VolumeGroups_Get_Custom_SMB.json + * x-ms-original-file: 2026-08-01/VolumeGroups_Get_Custom_SMB.json */ /** * Sample code: VolumeGroups_Get_Custom_SMB. @@ -45,7 +45,7 @@ public static void volumeGroupsGetCustomSMB(com.azure.resourcemanager.netapp.Net } /* - * x-ms-original-file: 2026-06-15-preview/VolumeGroups_Get_Oracle.json + * x-ms-original-file: 2026-08-01/VolumeGroups_Get_Oracle.json */ /** * Sample code: VolumeGroups_Get_Oracle. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsListByNetAppAccountSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsListByNetAppAccountSamples.java index 7834dc34e84e8..0a19abc83cb58 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsListByNetAppAccountSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsListByNetAppAccountSamples.java @@ -9,7 +9,7 @@ */ public final class VolumeGroupsListByNetAppAccountSamples { /* - * x-ms-original-file: 2026-06-15-preview/VolumeGroups_List_Custom.json + * x-ms-original-file: 2026-08-01/VolumeGroups_List_Custom.json */ /** * Sample code: VolumeGroups_List_Custom. @@ -21,7 +21,7 @@ public static void volumeGroupsListCustom(com.azure.resourcemanager.netapp.NetAp } /* - * x-ms-original-file: 2026-06-15-preview/VolumeGroups_List_Oracle.json + * x-ms-original-file: 2026-08-01/VolumeGroups_List_Oracle.json */ /** * Sample code: VolumeGroups_List_Oracle. @@ -33,7 +33,7 @@ public static void volumeGroupsListOracle(com.azure.resourcemanager.netapp.NetAp } /* - * x-ms-original-file: 2026-06-15-preview/VolumeGroups_List_SapHana.json + * x-ms-original-file: 2026-08-01/VolumeGroups_List_SapHana.json */ /** * Sample code: VolumeGroups_List_SapHana. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesCreateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesCreateSamples.java index 8cc9ecba9aa3c..e1ef4aea4c69b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesCreateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesCreateSamples.java @@ -11,7 +11,7 @@ */ public final class VolumeQuotaRulesCreateSamples { /* - * x-ms-original-file: 2026-06-15-preview/VolumeQuotaRules_Create.json + * x-ms-original-file: 2026-08-01/VolumeQuotaRules_Create.json */ /** * Sample code: VolumeQuotaRules_Create. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesDeleteSamples.java index 7d439ebbe0637..01ebb63604fd0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class VolumeQuotaRulesDeleteSamples { /* - * x-ms-original-file: 2026-06-15-preview/VolumeQuotaRules_Delete.json + * x-ms-original-file: 2026-08-01/VolumeQuotaRules_Delete.json */ /** * Sample code: VolumeQuotaRules_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesGetSamples.java index 8adf1621c5905..a848a3df49da6 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesGetSamples.java @@ -9,7 +9,7 @@ */ public final class VolumeQuotaRulesGetSamples { /* - * x-ms-original-file: 2026-06-15-preview/VolumeQuotaRules_Get.json + * x-ms-original-file: 2026-08-01/VolumeQuotaRules_Get.json */ /** * Sample code: VolumeQuotaRules_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListByVolumeSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListByVolumeSamples.java index d2dc58aed0ebf..0b25fb7fd9126 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListByVolumeSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListByVolumeSamples.java @@ -9,7 +9,7 @@ */ public final class VolumeQuotaRulesListByVolumeSamples { /* - * x-ms-original-file: 2026-06-15-preview/VolumeQuotaRules_List.json + * x-ms-original-file: 2026-08-01/VolumeQuotaRules_List.json */ /** * Sample code: VolumeQuotaRules_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesUpdateSamples.java index d9033aef9a6ee..e24e876b64eee 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class VolumeQuotaRulesUpdateSamples { /* - * x-ms-original-file: 2026-06-15-preview/VolumeQuotaRules_Update.json + * x-ms-original-file: 2026-08-01/VolumeQuotaRules_Update.json */ /** * Sample code: VolumeQuotaRules_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeExternalReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeExternalReplicationSamples.java index 12a966cdd788a..e0cec09d30985 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeExternalReplicationSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeExternalReplicationSamples.java @@ -9,7 +9,7 @@ */ public final class VolumesAuthorizeExternalReplicationSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_AuthorizeExternalReplication.json + * x-ms-original-file: 2026-08-01/Volumes_AuthorizeExternalReplication.json */ /** * Sample code: Volumes_AuthorizeExternalReplication. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeReplicationSamples.java index f71e632ba702c..b97ab55c4c7d5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeReplicationSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeReplicationSamples.java @@ -11,7 +11,7 @@ */ public final class VolumesAuthorizeReplicationSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_AuthorizeReplication.json + * x-ms-original-file: 2026-08-01/Volumes_AuthorizeReplication.json */ /** * Sample code: Volumes_AuthorizeReplication. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesBreakFileLocksSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesBreakFileLocksSamples.java index 7773430b6bbd1..6349dd026deca 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesBreakFileLocksSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesBreakFileLocksSamples.java @@ -11,7 +11,7 @@ */ public final class VolumesBreakFileLocksSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_BreakFileLocks.json + * x-ms-original-file: 2026-08-01/Volumes_BreakFileLocks.json */ /** * Sample code: Volumes_BreakFileLocks. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationSamples.java index 11877e3ddaf37..f14a1a8d7aa93 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationSamples.java @@ -11,7 +11,7 @@ */ public final class VolumesBreakReplicationSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_BreakReplication.json + * x-ms-original-file: 2026-08-01/Volumes_BreakReplication.json */ /** * Sample code: Volumes_BreakReplication. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesCreateOrUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesCreateOrUpdateSamples.java index b5fc1c1effa6f..0b37a2e544068 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesCreateOrUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesCreateOrUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class VolumesCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_CreateOrUpdate.json + * x-ms-original-file: 2026-08-01/Volumes_CreateOrUpdate.json */ /** * Sample code: Volumes_CreateOrUpdate. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationSamples.java index 230cf495edc98..21211108b875d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationSamples.java @@ -9,7 +9,7 @@ */ public final class VolumesDeleteReplicationSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_DeleteReplication.json + * x-ms-original-file: 2026-08-01/Volumes_DeleteReplication.json */ /** * Sample code: Volumes_DeleteReplication. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteSamples.java index 5a6bf176c2473..a431b55dfb323 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class VolumesDeleteSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_Delete.json + * x-ms-original-file: 2026-08-01/Volumes_Delete.json */ /** * Sample code: Volumes_Delete. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeExternalReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeExternalReplicationSamples.java index 914d277ed9348..7941f3c4c660a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeExternalReplicationSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeExternalReplicationSamples.java @@ -9,7 +9,7 @@ */ public final class VolumesFinalizeExternalReplicationSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_FinalizeExternalReplication.json + * x-ms-original-file: 2026-08-01/Volumes_FinalizeExternalReplication.json */ /** * Sample code: Volumes_FinalizeExternalReplication. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeRelocationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeRelocationSamples.java index 6ab01f61a12ad..05afcfc28136e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeRelocationSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeRelocationSamples.java @@ -9,7 +9,7 @@ */ public final class VolumesFinalizeRelocationSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_FinalizeRelocation.json + * x-ms-original-file: 2026-08-01/Volumes_FinalizeRelocation.json */ /** * Sample code: Volumes_FinalizeRelocation. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesGetSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesGetSamples.java index dd301ea22ab9e..8b0d54d79c6c9 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesGetSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesGetSamples.java @@ -9,7 +9,7 @@ */ public final class VolumesGetSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_ExtraLargeVolumes_Get.json + * x-ms-original-file: 2026-08-01/Volumes_ExtraLargeVolumes_Get.json */ /** * Sample code: Volumes_ExtralargeVolumeGet. @@ -21,7 +21,7 @@ public static void volumesExtralargeVolumeGet(com.azure.resourcemanager.netapp.N } /* - * x-ms-original-file: 2026-06-15-preview/Volumes_Get.json + * x-ms-original-file: 2026-08-01/Volumes_Get.json */ /** * Sample code: Volumes_Get. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListGetGroupIdListForLdapUserSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListGetGroupIdListForLdapUserSamples.java index 463c8564a176c..3d2330cf39e47 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListGetGroupIdListForLdapUserSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListGetGroupIdListForLdapUserSamples.java @@ -11,7 +11,7 @@ */ public final class VolumesListGetGroupIdListForLdapUserSamples { /* - * x-ms-original-file: 2026-06-15-preview/GroupIdListForLDAPUser.json + * x-ms-original-file: 2026-08-01/GroupIdListForLDAPUser.json */ /** * Sample code: GetGroupIdListForUser. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListQuotaReportSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListQuotaReportSamples.java index 75f2e56f6c40d..c28d2ad606c17 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListQuotaReportSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListQuotaReportSamples.java @@ -9,7 +9,7 @@ */ public final class VolumesListQuotaReportSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_ListQuotaReport.json + * x-ms-original-file: 2026-08-01/Volumes_ListQuotaReport.json */ /** * Sample code: ListQuotaReport. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListReplicationsSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListReplicationsSamples.java index 2b72ae3354367..e3d8d0e8b6aba 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListReplicationsSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListReplicationsSamples.java @@ -12,7 +12,7 @@ */ public final class VolumesListReplicationsSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_ListReplications.json + * x-ms-original-file: 2026-08-01/Volumes_ListReplications.json */ /** * Sample code: Volumes_ListReplications. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListSamples.java index 0cebb8775d5f9..7a81737a738e5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesListSamples.java @@ -9,7 +9,7 @@ */ public final class VolumesListSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_ExtraLargeVolumes_List.json + * x-ms-original-file: 2026-08-01/Volumes_ExtraLargeVolumes_List.json */ /** * Sample code: Volumes_ExtralargeVolumeList. @@ -21,7 +21,7 @@ public static void volumesExtralargeVolumeList(com.azure.resourcemanager.netapp. } /* - * x-ms-original-file: 2026-06-15-preview/Volumes_List.json + * x-ms-original-file: 2026-08-01/Volumes_List.json */ /** * Sample code: Volumes_List. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPeerExternalClusterSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPeerExternalClusterSamples.java index d74eaf6cb1156..8172cad91eee1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPeerExternalClusterSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPeerExternalClusterSamples.java @@ -12,7 +12,7 @@ */ public final class VolumesPeerExternalClusterSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_PeerExternalCluster.json + * x-ms-original-file: 2026-08-01/Volumes_PeerExternalCluster.json */ /** * Sample code: Volumes_PeerExternalCluster. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPerformReplicationTransferSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPerformReplicationTransferSamples.java index 16aae7ff8f29b..860a38fae6dfa 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPerformReplicationTransferSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPerformReplicationTransferSamples.java @@ -9,7 +9,7 @@ */ public final class VolumesPerformReplicationTransferSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_PerformReplicationTransfer.json + * x-ms-original-file: 2026-08-01/Volumes_PerformReplicationTransfer.json */ /** * Sample code: Volumes_PerformReplicationTransfer. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPoolChangeSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPoolChangeSamples.java index 36d356647ab3e..51d42c8b76053 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPoolChangeSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPoolChangeSamples.java @@ -11,7 +11,7 @@ */ public final class VolumesPoolChangeSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_PoolChange.json + * x-ms-original-file: 2026-08-01/Volumes_PoolChange.json */ /** * Sample code: Volumes_PoolChange. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPopulateAvailabilityZoneSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPopulateAvailabilityZoneSamples.java index 5fd1428978a5d..bab8ed4c8867a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPopulateAvailabilityZoneSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesPopulateAvailabilityZoneSamples.java @@ -9,7 +9,7 @@ */ public final class VolumesPopulateAvailabilityZoneSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_PopulateAvailabilityZones.json + * x-ms-original-file: 2026-08-01/Volumes_PopulateAvailabilityZones.json */ /** * Sample code: Volumes_PopulateAvailabilityZones. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationSamples.java index f352e3a98942b..fcbc971599cff 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationSamples.java @@ -9,7 +9,7 @@ */ public final class VolumesReInitializeReplicationSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_ReInitializeReplication.json + * x-ms-original-file: 2026-08-01/Volumes_ReInitializeReplication.json */ /** * Sample code: Volumes_ReInitializeReplication. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReestablishReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReestablishReplicationSamples.java index fcae564cd1559..5c43c066e2099 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReestablishReplicationSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReestablishReplicationSamples.java @@ -11,7 +11,7 @@ */ public final class VolumesReestablishReplicationSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_ReestablishReplication.json + * x-ms-original-file: 2026-08-01/Volumes_ReestablishReplication.json */ /** * Sample code: Volumes_ReestablishReplication. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRelocateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRelocateSamples.java index 5a5f25cbabd79..9d64171faffa8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRelocateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRelocateSamples.java @@ -11,7 +11,7 @@ */ public final class VolumesRelocateSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_Relocate.json + * x-ms-original-file: 2026-08-01/Volumes_Relocate.json */ /** * Sample code: Volumes_Relocate. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusSamples.java index 7ed45a63220dc..c159f0f1de93a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusSamples.java @@ -9,7 +9,7 @@ */ public final class VolumesReplicationStatusSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_ReplicationStatus.json + * x-ms-original-file: 2026-08-01/Volumes_ReplicationStatus.json */ /** * Sample code: Volumes_ReplicationStatus. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesResetCifsPasswordSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesResetCifsPasswordSamples.java index 1c549531fb013..1ca24a7e44638 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesResetCifsPasswordSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesResetCifsPasswordSamples.java @@ -9,7 +9,7 @@ */ public final class VolumesResetCifsPasswordSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_ResetCifsPassword.json + * x-ms-original-file: 2026-08-01/Volumes_ResetCifsPassword.json */ /** * Sample code: Volumes_ResetCifsPassword. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationSamples.java index 3a9c242288fcd..38e93e22f8b81 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationSamples.java @@ -9,7 +9,7 @@ */ public final class VolumesResyncReplicationSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_ResyncReplication.json + * x-ms-original-file: 2026-08-01/Volumes_ResyncReplication.json */ /** * Sample code: Volumes_ResyncReplication. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRevertRelocationSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRevertRelocationSamples.java index 426726604d104..52bbe87780998 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRevertRelocationSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRevertRelocationSamples.java @@ -9,7 +9,7 @@ */ public final class VolumesRevertRelocationSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_RevertRelocation.json + * x-ms-original-file: 2026-08-01/Volumes_RevertRelocation.json */ /** * Sample code: Volumes_RevertRelocation. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRevertSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRevertSamples.java index 596f5cae8bdf4..e4c6f0fb78b1a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRevertSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesRevertSamples.java @@ -11,7 +11,7 @@ */ public final class VolumesRevertSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_Revert.json + * x-ms-original-file: 2026-08-01/Volumes_Revert.json */ /** * Sample code: Volumes_Revert. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesSplitCloneFromParentSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesSplitCloneFromParentSamples.java index 252ef48ea2a9c..001069aec52c8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesSplitCloneFromParentSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesSplitCloneFromParentSamples.java @@ -9,7 +9,7 @@ */ public final class VolumesSplitCloneFromParentSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_SplitClone.json + * x-ms-original-file: 2026-08-01/Volumes_SplitClone.json */ /** * Sample code: Volumes_SplitClone. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesUpdateSamples.java b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesUpdateSamples.java index 7e56bdb2bc1f8..70382993db198 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesUpdateSamples.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/samples/java/com/azure/resourcemanager/netapp/generated/VolumesUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class VolumesUpdateSamples { /* - * x-ms-original-file: 2026-06-15-preview/Volumes_Update.json + * x-ms-original-file: 2026-08-01/Volumes_Update.json */ /** * Sample code: Volumes_Update. diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AccountsRenewCredentialsMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AccountsRenewCredentialsMockTests.java index 6fe93453f9115..7641a9a562bc2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AccountsRenewCredentialsMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/AccountsRenewCredentialsMockTests.java @@ -27,7 +27,7 @@ public void testRenewCredentials() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.accounts().renewCredentials("rmvzti", "cwviqllukhk", com.azure.core.util.Context.NONE); + manager.accounts().renewCredentials("alwcjgckbb", "ccgzpraoxnyu", com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesCreateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesCreateMockTests.java index b6468e0ef3dfe..fbc03d719d14e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesCreateMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesCreateMockTests.java @@ -23,7 +23,7 @@ public final class BackupPoliciesCreateMockTests { @Test public void testCreate() throws Exception { String responseStr - = "{\"properties\":{\"backupPolicyId\":\"qqzlgcndhz\",\"provisioningState\":\"Succeeded\",\"dailyBackupsToKeep\":63585688,\"weeklyBackupsToKeep\":2141593626,\"monthlyBackupsToKeep\":1409559335,\"volumesAssigned\":678517721,\"enabled\":false,\"volumeBackups\":[{\"volumeName\":\"pphefsbzx\",\"volumeResourceId\":\"zxomeikjclwz\",\"backupsCount\":1246929376,\"policyEnabled\":true},{\"volumeName\":\"fsuqtaazyqbxy\",\"volumeResourceId\":\"yfp\",\"backupsCount\":495775469,\"policyEnabled\":false},{\"volumeName\":\"zxlhdjzqdcadwv\",\"volumeResourceId\":\"ozjiihj\",\"backupsCount\":912203649,\"policyEnabled\":false}]},\"etag\":\"zo\",\"location\":\"nxwdvwnjkg\",\"tags\":{\"uyvpirf\":\"mxaursqftibtyi\"},\"id\":\"jpnqnoowsbeden\",\"name\":\"exkxbhx\",\"type\":\"ucnulgmnh\"}"; + = "{\"properties\":{\"backupPolicyId\":\"fdv\",\"provisioningState\":\"Succeeded\",\"dailyBackupsToKeep\":74462923,\"weeklyBackupsToKeep\":1859021657,\"monthlyBackupsToKeep\":749394932,\"volumesAssigned\":1524186089,\"enabled\":true,\"volumeBackups\":[{\"volumeName\":\"qswankltytmhdr\",\"volumeResourceId\":\"nnhdrl\",\"backupsCount\":750712079,\"policyEnabled\":true}]},\"etag\":\"gguxhemlwyw\",\"location\":\"eczgfb\",\"tags\":{\"rlsmdesqplpvmjc\":\"lelssxblycsxzujk\",\"vteo\":\"oewbid\"},\"id\":\"xvgpiude\",\"name\":\"gfsxzec\",\"type\":\"axwk\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,22 +33,22 @@ public void testCreate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); BackupPolicy response = manager.backupPolicies() - .define("uoqujlyeg") - .withRegion("yrsrziuctixgb") - .withExistingNetAppAccount("vop", "m") - .withTags(mapOf("apezkiswqjmdghs", "ifrevk")) - .withDailyBackupsToKeep(1010516946) - .withWeeklyBackupsToKeep(2054195365) - .withMonthlyBackupsToKeep(1755687285) - .withEnabled(true) + .define("mskwhqjjysl") + .withRegion("hpwpgddeimawzovg") + .withExistingNetAppAccount("plkeuachtomflryt", "wfpfmdgycx") + .withTags(mapOf("sqowxwc", "muikjcjcaztbws")) + .withDailyBackupsToKeep(1899940193) + .withWeeklyBackupsToKeep(1592039992) + .withMonthlyBackupsToKeep(1628656253) + .withEnabled(false) .create(); - Assertions.assertEquals("nxwdvwnjkg", response.location()); - Assertions.assertEquals("mxaursqftibtyi", response.tags().get("uyvpirf")); - Assertions.assertEquals(63585688, response.dailyBackupsToKeep()); - Assertions.assertEquals(2141593626, response.weeklyBackupsToKeep()); - Assertions.assertEquals(1409559335, response.monthlyBackupsToKeep()); - Assertions.assertFalse(response.enabled()); + Assertions.assertEquals("eczgfb", response.location()); + Assertions.assertEquals("lelssxblycsxzujk", response.tags().get("rlsmdesqplpvmjc")); + Assertions.assertEquals(74462923, response.dailyBackupsToKeep()); + Assertions.assertEquals(1859021657, response.weeklyBackupsToKeep()); + Assertions.assertEquals(749394932, response.monthlyBackupsToKeep()); + Assertions.assertTrue(response.enabled()); } // Use "Map.of" if available diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteMockTests.java index fb2b6f3c916b4..5ca19db097441 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesDeleteMockTests.java @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.backupPolicies().delete("zknxkv", "cxetyvkunmignoh", "k", com.azure.core.util.Context.NONE); + manager.backupPolicies().delete("lawjmjsmwrok", "dxfzzzwyjaf", "tlhguynuchl", com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetWithResponseMockTests.java index c62d0901fab8b..4e5cc7aac29ec 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class BackupPoliciesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"backupPolicyId\":\"dltb\",\"provisioningState\":\"tqjfgxxsaet\",\"dailyBackupsToKeep\":1767785914,\"weeklyBackupsToKeep\":44057145,\"monthlyBackupsToKeep\":662744658,\"volumesAssigned\":137079065,\"enabled\":true,\"volumeBackups\":[{\"volumeName\":\"lzdcduwjoedxng\",\"volumeResourceId\":\"aifpaurwwgil\",\"backupsCount\":797770967,\"policyEnabled\":false},{\"volumeName\":\"dmkxwxdcvjwcy\",\"volumeResourceId\":\"akeciqchx\",\"backupsCount\":1959579923,\"policyEnabled\":true}]},\"etag\":\"siw\",\"location\":\"m\",\"tags\":{\"grpxncakiqaondjr\":\"hzzwvywrgyngy\",\"ykglt\":\"clamgglvlmfejdoq\",\"tlgflwfgz\":\"gxhqfgqkayejs\"},\"id\":\"iucijjcea\",\"name\":\"lijjjrtvam\",\"type\":\"a\"}"; + = "{\"properties\":{\"backupPolicyId\":\"tc\",\"provisioningState\":\"hplrvkmjcwmjvlg\",\"dailyBackupsToKeep\":2110078268,\"weeklyBackupsToKeep\":1459066733,\"monthlyBackupsToKeep\":1646632385,\"volumesAssigned\":1713547860,\"enabled\":true,\"volumeBackups\":[{\"volumeName\":\"jpsfxsfu\",\"volumeResourceId\":\"lvt\",\"backupsCount\":629434147,\"policyEnabled\":false}]},\"etag\":\"idqlvhu\",\"location\":\"veo\",\"tags\":{\"z\":\"rvjfnmjmvlw\",\"lfojuidjp\":\"iblkujr\",\"ovvtzejetjkln\":\"uyjucejikzo\",\"k\":\"ikyju\"},\"id\":\"bqzolxr\",\"name\":\"vhqjwtrhtgvg\",\"type\":\"pcrrk\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,14 +31,14 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); BackupPolicy response = manager.backupPolicies() - .getWithResponse("ulhmzyq", "hdvafjrqpjiyrqjc", "gaxwmzwdfkbnrzo", com.azure.core.util.Context.NONE) + .getWithResponse("ulbmoichdlp", "fpubntnbatz", "iqsowsaaelc", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("m", response.location()); - Assertions.assertEquals("hzzwvywrgyngy", response.tags().get("grpxncakiqaondjr")); - Assertions.assertEquals(1767785914, response.dailyBackupsToKeep()); - Assertions.assertEquals(44057145, response.weeklyBackupsToKeep()); - Assertions.assertEquals(662744658, response.monthlyBackupsToKeep()); + Assertions.assertEquals("veo", response.location()); + Assertions.assertEquals("rvjfnmjmvlw", response.tags().get("z")); + Assertions.assertEquals(2110078268, response.dailyBackupsToKeep()); + Assertions.assertEquals(1459066733, response.weeklyBackupsToKeep()); + Assertions.assertEquals(1646632385, response.monthlyBackupsToKeep()); Assertions.assertTrue(response.enabled()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListMockTests.java index 7c1e55e6a5ba4..23e642c19a421 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupPoliciesListMockTests.java @@ -22,7 +22,7 @@ public final class BackupPoliciesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"backupPolicyId\":\"fcfxzirzzihvwy\",\"provisioningState\":\"suvjslcz\",\"dailyBackupsToKeep\":692238773,\"weeklyBackupsToKeep\":1630031536,\"monthlyBackupsToKeep\":1226572199,\"volumesAssigned\":1584534846,\"enabled\":false,\"volumeBackups\":[{\"volumeName\":\"mvxad\",\"volumeResourceId\":\"cfrgnawbabgfbkt\",\"backupsCount\":1269868671,\"policyEnabled\":false},{\"volumeName\":\"l\",\"volumeResourceId\":\"yq\",\"backupsCount\":988633110,\"policyEnabled\":false},{\"volumeName\":\"owoxqmj\",\"volumeResourceId\":\"jcx\",\"backupsCount\":442050176,\"policyEnabled\":true}]},\"etag\":\"lusrv\",\"location\":\"simjceagbjqvlsu\",\"tags\":{\"shxgonoy\":\"z\"},\"id\":\"fq\",\"name\":\"puby\",\"type\":\"nclkfkeeb\"}]}"; + = "{\"value\":[{\"properties\":{\"backupPolicyId\":\"pafolp\",\"provisioningState\":\"wamxqzrag\",\"dailyBackupsToKeep\":1193102156,\"weeklyBackupsToKeep\":1656670838,\"monthlyBackupsToKeep\":1755800422,\"volumesAssigned\":737806246,\"enabled\":false,\"volumeBackups\":[{\"volumeName\":\"ejchcsrlz\",\"volumeResourceId\":\"mzlanru\",\"backupsCount\":1305520535,\"policyEnabled\":true}]},\"etag\":\"hcnzqt\",\"location\":\"hmqrhvthlaiwdc\",\"tags\":{\"gydlhqv\":\"lzzhzdtxet\",\"pxy\":\"n\",\"klbyulidwcw\":\"afiqgeaarbgjekg\",\"hj\":\"mzegjon\"},\"id\":\"rwgdnqzbrfks\",\"name\":\"zhzmtksjci\",\"type\":\"digsxcdgl\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,13 +32,13 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.backupPolicies().list("gqogjwpindedva", "bxbhmedeilbj", com.azure.core.util.Context.NONE); + = manager.backupPolicies().list("mltx", "whmozusgzvlnsnnj", com.azure.core.util.Context.NONE); - Assertions.assertEquals("simjceagbjqvlsu", response.iterator().next().location()); - Assertions.assertEquals("z", response.iterator().next().tags().get("shxgonoy")); - Assertions.assertEquals(692238773, response.iterator().next().dailyBackupsToKeep()); - Assertions.assertEquals(1630031536, response.iterator().next().weeklyBackupsToKeep()); - Assertions.assertEquals(1226572199, response.iterator().next().monthlyBackupsToKeep()); + Assertions.assertEquals("hmqrhvthlaiwdc", response.iterator().next().location()); + Assertions.assertEquals("lzzhzdtxet", response.iterator().next().tags().get("gydlhqv")); + Assertions.assertEquals(1193102156, response.iterator().next().dailyBackupsToKeep()); + Assertions.assertEquals(1656670838, response.iterator().next().weeklyBackupsToKeep()); + Assertions.assertEquals(1755800422, response.iterator().next().monthlyBackupsToKeep()); Assertions.assertFalse(response.iterator().next().enabled()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupRestoreFilesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupRestoreFilesTests.java index eba091f86a483..7ff7950164e32 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupRestoreFilesTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupRestoreFilesTests.java @@ -12,23 +12,22 @@ public final class BackupRestoreFilesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - BackupRestoreFiles model = BinaryData - .fromString( - "{\"fileList\":[\"wggahttzlswvaj\",\"fu\"],\"restoreFilePath\":\"x\",\"destinationVolumeId\":\"oqza\"}") + BackupRestoreFiles model = BinaryData.fromString( + "{\"fileList\":[\"dlpagzrcxfail\",\"f\"],\"restoreFilePath\":\"m\",\"destinationVolumeId\":\"boxdfgsftufq\"}") .toObject(BackupRestoreFiles.class); - Assertions.assertEquals("wggahttzlswvaj", model.fileList().get(0)); - Assertions.assertEquals("x", model.restoreFilePath()); - Assertions.assertEquals("oqza", model.destinationVolumeId()); + Assertions.assertEquals("dlpagzrcxfail", model.fileList().get(0)); + Assertions.assertEquals("m", model.restoreFilePath()); + Assertions.assertEquals("boxdfgsftufq", model.destinationVolumeId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - BackupRestoreFiles model = new BackupRestoreFiles().withFileList(Arrays.asList("wggahttzlswvaj", "fu")) - .withRestoreFilePath("x") - .withDestinationVolumeId("oqza"); + BackupRestoreFiles model = new BackupRestoreFiles().withFileList(Arrays.asList("dlpagzrcxfail", "f")) + .withRestoreFilePath("m") + .withDestinationVolumeId("boxdfgsftufq"); model = BinaryData.fromObject(model).toObject(BackupRestoreFiles.class); - Assertions.assertEquals("wggahttzlswvaj", model.fileList().get(0)); - Assertions.assertEquals("x", model.restoreFilePath()); - Assertions.assertEquals("oqza", model.destinationVolumeId()); + Assertions.assertEquals("dlpagzrcxfail", model.fileList().get(0)); + Assertions.assertEquals("m", model.restoreFilePath()); + Assertions.assertEquals("boxdfgsftufq", model.destinationVolumeId()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsCreateOrUpdateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsCreateOrUpdateMockTests.java index 4a34d90bb0e64..69355b004680a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsCreateOrUpdateMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsCreateOrUpdateMockTests.java @@ -23,7 +23,7 @@ public final class BackupVaultsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\"},\"location\":\"xtminklogxsvtzar\",\"tags\":{\"wzzoslpk\":\"qnsqktcmb\",\"emqbmfuvqarwzxuq\":\"btglwkzpgajsqj\"},\"id\":\"ebluimmbwx\",\"name\":\"fgtdmbvx\",\"type\":\"kraokq\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\"},\"location\":\"v\",\"tags\":{\"wzfgbrttuiaclkie\":\"knbnxwcdommpvfq\",\"hiqfyuttdiy\":\"hajlfn\",\"vnwsw\":\"b\",\"cvogygzyvne\":\"txkyctwwgzwxjlm\"},\"id\":\"zaifghtmoqqtlff\",\"name\":\"zbkr\",\"type\":\"jjjavfqnvhnq\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,14 +33,15 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); BackupVault response = manager.backupVaults() - .define("hpcnabxzfsn") - .withRegion("wncknr") - .withExistingNetAppAccount("xv", "nzdpvoco") - .withTags(mapOf("yrth", "jlskzptjxulweu", "hokamvfej", "qlehmcgcjeinu", "abzfivf", "qnttmbq")) + .define("lexwhcbjp") + .withRegion("uuuercta") + .withExistingNetAppAccount("gaqi", "irpiwrqofulopmj") + .withTags(mapOf("uczkgofxyfsruc", "intqpbrlcyr", "qnrmvvfko", "crrpcjttbstvje", "wwexymzvlazipbh", + "mlghktuidvrmazlp")) .create(); - Assertions.assertEquals("xtminklogxsvtzar", response.location()); - Assertions.assertEquals("qnsqktcmb", response.tags().get("wzzoslpk")); + Assertions.assertEquals("v", response.location()); + Assertions.assertEquals("knbnxwcdommpvfq", response.tags().get("wzfgbrttuiaclkie")); } // Use "Map.of" if available diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsGetWithResponseMockTests.java index 62a9c7c62bd15..fd5a4ec5f1374 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsGetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class BackupVaultsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"shajqf\"},\"location\":\"peexpgeumilhwuit\",\"tags\":{\"ofninbdbz\":\"xyio\",\"bprt\":\"xcwqqrsmpc\",\"ivmfogdrtbf\":\"gavbzbcyk\",\"awvifdxke\":\"mkrftsjcwjjxsgm\"},\"id\":\"if\",\"name\":\"ocjxw\",\"type\":\"loozrvt\"}"; + = "{\"properties\":{\"provisioningState\":\"qwoyxqvapco\"},\"location\":\"oucqpqojx\",\"tags\":{\"tzqdd\":\"rzdcgdzbenribcaw\",\"mzwcjjncqt\":\"jwfljhznamtua\"},\"id\":\"z\",\"name\":\"izvg\",\"type\":\"gat\"}"; 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)); BackupVault response = manager.backupVaults() - .getWithResponse("mtvtvegwqiukvzwy", "wtthaokgksk", "i", com.azure.core.util.Context.NONE) + .getWithResponse("jklinh", "dptysprqs", "nzxojpslsvjgpli", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("peexpgeumilhwuit", response.location()); - Assertions.assertEquals("xyio", response.tags().get("ofninbdbz")); + Assertions.assertEquals("oucqpqojx", response.location()); + Assertions.assertEquals("rzdcgdzbenribcaw", response.tags().get("tzqdd")); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListByNetAppAccountMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListByNetAppAccountMockTests.java index ae99068697d17..7778a557167f5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListByNetAppAccountMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupVaultsListByNetAppAccountMockTests.java @@ -22,7 +22,7 @@ public final class BackupVaultsListByNetAppAccountMockTests { @Test public void testListByNetAppAccount() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"gjgvr\"},\"location\":\"vpygglp\",\"tags\":{\"yarvsxzqbglcjk\":\"dcueljtiahxmfq\",\"btl\":\"yspthzod\",\"kfmkmfdjxyxgbk\":\"jtgblios\"},\"id\":\"qvjcteoe\",\"name\":\"l\",\"type\":\"slskkz\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"qfutlxjo\"},\"location\":\"asunwqrjzfrgq\",\"tags\":{\"ryxameblydyvkfkm\":\"hcmbuocnjrohmbp\",\"pyapucygvoav\":\"ocxnehvsmtodl\"},\"id\":\"unssxlghieegjl\",\"name\":\"vvpa\",\"type\":\"eksgbuxantuygd\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,9 +32,9 @@ public void testListByNetAppAccount() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.backupVaults().listByNetAppAccount("vcmuf", "nlcpxxviry", com.azure.core.util.Context.NONE); + = manager.backupVaults().listByNetAppAccount("uuvbx", "grebwggahttzlsw", com.azure.core.util.Context.NONE); - Assertions.assertEquals("vpygglp", response.iterator().next().location()); - Assertions.assertEquals("dcueljtiahxmfq", response.iterator().next().tags().get("yarvsxzqbglcjk")); + Assertions.assertEquals("asunwqrjzfrgq", response.iterator().next().location()); + Assertions.assertEquals("hcmbuocnjrohmbp", response.iterator().next().tags().get("ryxameblydyvkfkm")); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsCreateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsCreateMockTests.java index 262cfaa2c8a6a..4a727a1d2af6b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsCreateMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsCreateMockTests.java @@ -21,7 +21,7 @@ public final class BackupsCreateMockTests { @Test public void testCreate() throws Exception { String responseStr - = "{\"properties\":{\"backupId\":\"il\",\"creationDate\":\"2021-03-16T04:57:46Z\",\"snapshotCreationDate\":\"2021-11-10T20:56:07Z\",\"completionDate\":\"2021-08-21T08:40:36Z\",\"provisioningState\":\"Succeeded\",\"size\":7544525737640444485,\"label\":\"mgzvyfi\",\"backupType\":\"Scheduled\",\"failureReason\":\"uqnwsithu\",\"volumeResourceId\":\"olyahluqwqulsut\",\"useExistingSnapshot\":true,\"snapshotName\":\"xykfhyq\",\"backupPolicyResourceId\":\"vqqugdrftbcv\",\"isLargeVolume\":true},\"id\":\"uquowtljvfwhr\",\"name\":\"agk\",\"type\":\"yxvrqtvbczsul\"}"; + = "{\"properties\":{\"backupId\":\"osrxuzvoa\",\"creationDate\":\"2021-10-04T14:47:32Z\",\"snapshotCreationDate\":\"2021-02-04T13:38:44Z\",\"completionDate\":\"2021-07-28T08:13:36Z\",\"provisioningState\":\"Succeeded\",\"size\":1815580557383790776,\"label\":\"ltzkatbhjmznnb\",\"backupType\":\"Manual\",\"failureReason\":\"qalarvlagunbtg\",\"volumeResourceId\":\"ebwlnbmhyreeudzq\",\"useExistingSnapshot\":true,\"snapshotName\":\"dqmjxly\",\"backupPolicyResourceId\":\"glgou\",\"isLargeVolume\":false},\"id\":\"jjyuojqtobax\",\"name\":\"j\",\"type\":\"ytunlbfjkwr\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,17 +31,17 @@ public void testCreate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Backup response = manager.backups() - .define("az") - .withExistingBackupVault("jbx", "jybvit", "qkj") - .withVolumeResourceId("wxh") - .withLabel("izvoaiknaqlnuwi") + .define("pelnjetag") + .withExistingBackupVault("mxqhndvnoamldse", "aohdjh", "flzokxco") + .withVolumeResourceId("cjxgrytf") + .withLabel("occsr") .withUseExistingSnapshot(false) - .withSnapshotName("tl") + .withSnapshotName("cil") .create(); - Assertions.assertEquals("mgzvyfi", response.label()); - Assertions.assertEquals("olyahluqwqulsut", response.volumeResourceId()); + Assertions.assertEquals("ltzkatbhjmznnb", response.label()); + Assertions.assertEquals("ebwlnbmhyreeudzq", response.volumeResourceId()); Assertions.assertTrue(response.useExistingSnapshot()); - Assertions.assertEquals("xykfhyq", response.snapshotName()); + Assertions.assertEquals("dqmjxly", response.snapshotName()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetLatestStatusWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetLatestStatusWithResponseMockTests.java index 5b3ac07177fc4..389f4d001c1f0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetLatestStatusWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetLatestStatusWithResponseMockTests.java @@ -20,7 +20,7 @@ public final class BackupsGetLatestStatusWithResponseMockTests { @Test public void testGetLatestStatusWithResponse() throws Exception { String responseStr - = "{\"healthy\":true,\"relationshipStatus\":\"Idle\",\"mirrorState\":\"Uninitialized\",\"unhealthyReason\":\"bsfledynojpziu\",\"errorMessage\":\"bzkkd\",\"lastTransferSize\":2422586058764089090,\"lastTransferType\":\"ycljselpkpbaf\",\"totalTransferBytes\":2658808406766162563,\"transferProgressBytes\":2279051532558520266}"; + = "{\"healthy\":true,\"relationshipStatus\":\"Transferring\",\"mirrorState\":\"Broken\",\"unhealthyReason\":\"fclduccbirdsv\",\"errorMessage\":\"cobiegstmninwjiz\",\"lastTransferSize\":8132569337795273227,\"lastTransferType\":\"hgshe\",\"totalTransferBytes\":3640297226126313490,\"transferProgressBytes\":1841698857513805001}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,7 @@ public void testGetLatestStatusWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); BackupStatus response = manager.backups() - .getLatestStatusWithResponse("y", "suhbrnn", "jxsqwjhqkbiwetp", "zycyqiqyhg", + .getLatestStatusWithResponse("gehkfkimrtixokff", "yinljqe", "qwhix", "onsts", com.azure.core.util.Context.NONE) .getValue(); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeLatestRestoreStatusWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeLatestRestoreStatusWithResponseMockTests.java index ce47d10fb4610..0d8d8f444e906 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeLatestRestoreStatusWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetVolumeLatestRestoreStatusWithResponseMockTests.java @@ -20,7 +20,7 @@ public final class BackupsGetVolumeLatestRestoreStatusWithResponseMockTests { @Test public void testGetVolumeLatestRestoreStatusWithResponse() throws Exception { String responseStr - = "{\"healthy\":true,\"relationshipStatus\":\"Unknown\",\"mirrorState\":\"Mirrored\",\"unhealthyReason\":\"hvhfnracw\",\"errorMessage\":\"qigtuujwouhdaws\",\"totalTransferBytes\":1782956154841144799}"; + = "{\"healthy\":false,\"relationshipStatus\":\"Unknown\",\"mirrorState\":\"Uninitialized\",\"unhealthyReason\":\"vhczznvfby\",\"errorMessage\":\"sxjwwixz\",\"totalTransferBytes\":7126665347296916840}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,7 +30,8 @@ public void testGetVolumeLatestRestoreStatusWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RestoreStatus response = manager.backups() - .getVolumeLatestRestoreStatusWithResponse("lc", "bevxrhyzd", "wrso", "pl", com.azure.core.util.Context.NONE) + .getVolumeLatestRestoreStatusWithResponse("uluxl", "qzvnersbycucr", "namikzebrqbsms", "ziqgfuh", + com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetWithResponseMockTests.java index 3ceda73fc2900..73968ff4e44ac 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class BackupsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"backupId\":\"zatvfuzka\",\"creationDate\":\"2021-04-12T15:01:43Z\",\"snapshotCreationDate\":\"2021-03-25T16:42:15Z\",\"completionDate\":\"2021-09-01T14:42:15Z\",\"provisioningState\":\"wigsyeipqdsm\",\"size\":3167223347313894716,\"label\":\"gdgkki\",\"backupType\":\"Manual\",\"failureReason\":\"kcsmk\",\"volumeResourceId\":\"hwtbbaedorvvm\",\"useExistingSnapshot\":false,\"snapshotName\":\"ygbdgwumgxdgdhpa\",\"backupPolicyResourceId\":\"dexjddvjs\",\"isLargeVolume\":true},\"id\":\"tm\",\"name\":\"wllcolsr\",\"type\":\"xaptefhexcgjok\"}"; + = "{\"properties\":{\"backupId\":\"bwvqvxkdi\",\"creationDate\":\"2020-12-27T09:18:38Z\",\"snapshotCreationDate\":\"2021-09-02T01:31:57Z\",\"completionDate\":\"2021-09-07T08:36:27Z\",\"provisioningState\":\"swbzuwfmdurage\",\"size\":8212495412619748670,\"label\":\"jfelisdjubggbqig\",\"backupType\":\"Manual\",\"failureReason\":\"sazgakgacyrcmj\",\"volumeResourceId\":\"mspofapvuhryl\",\"useExistingSnapshot\":false,\"snapshotName\":\"rz\",\"backupPolicyResourceId\":\"zjedmstkvnlv\",\"isLargeVolume\":false},\"id\":\"iiznktwfan\",\"name\":\"nv\",\"type\":\"dibmikostbzbkiwb\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,12 +31,12 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); Backup response = manager.backups() - .getWithResponse("emxhzzy", "ev", "sxivzrrryvei", "ipsk", com.azure.core.util.Context.NONE) + .getWithResponse("tmwwi", "h", "hfqpofv", "bcblemb", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("gdgkki", response.label()); - Assertions.assertEquals("hwtbbaedorvvm", response.volumeResourceId()); + Assertions.assertEquals("jfelisdjubggbqig", response.label()); + Assertions.assertEquals("mspofapvuhryl", response.volumeResourceId()); Assertions.assertFalse(response.useExistingSnapshot()); - Assertions.assertEquals("ygbdgwumgxdgdhpa", response.snapshotName()); + Assertions.assertEquals("rz", response.snapshotName()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsListByVaultMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsListByVaultMockTests.java index 271dc5be6f694..7fa0c682d0826 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsListByVaultMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsListByVaultMockTests.java @@ -22,7 +22,7 @@ public final class BackupsListByVaultMockTests { @Test public void testListByVault() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"backupId\":\"nwqjwgokn\",\"creationDate\":\"2021-01-25T17:46:24Z\",\"snapshotCreationDate\":\"2021-03-31T15:58:55Z\",\"completionDate\":\"2021-06-22T17:36:36Z\",\"provisioningState\":\"b\",\"size\":9183686445747419798,\"label\":\"jbzten\",\"backupType\":\"Manual\",\"failureReason\":\"yk\",\"volumeResourceId\":\"tjknsxfwushcdp\",\"useExistingSnapshot\":false,\"snapshotName\":\"qrmgjfbpkuw\",\"backupPolicyResourceId\":\"oiojfizfavkjzwfb\",\"isLargeVolume\":false},\"id\":\"kmmfzsbf\",\"name\":\"xrzxmdewsrsxkrp\",\"type\":\"bjazejwwviy\"}]}"; + = "{\"value\":[{\"properties\":{\"backupId\":\"ihclafzv\",\"creationDate\":\"2021-01-20T16:23:38Z\",\"snapshotCreationDate\":\"2021-10-22T09:32:37Z\",\"completionDate\":\"2021-01-02T03:46:41Z\",\"provisioningState\":\"qwztcmwqkc\",\"size\":2655209326818772123,\"label\":\"xfe\",\"backupType\":\"Manual\",\"failureReason\":\"jexfdeqvhp\",\"volumeResourceId\":\"ylkkshkbffmbm\",\"useExistingSnapshot\":true,\"snapshotName\":\"gywwpgjxs\",\"backupPolicyResourceId\":\"tf\",\"isLargeVolume\":true},\"id\":\"cg\",\"name\":\"aoepttaqutdew\",\"type\":\"mxswvruunzz\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,11 +32,11 @@ public void testListByVault() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.backups() - .listByVault("ljnhvlqj", "ek", "eeksnbksdqhjvyk", "xeslkhhustcpoqm", com.azure.core.util.Context.NONE); + .listByVault("qnyophzfyls", "crpfbcunez", "cez", "lfwyfwlwxjwetn", com.azure.core.util.Context.NONE); - Assertions.assertEquals("jbzten", response.iterator().next().label()); - Assertions.assertEquals("tjknsxfwushcdp", response.iterator().next().volumeResourceId()); - Assertions.assertFalse(response.iterator().next().useExistingSnapshot()); - Assertions.assertEquals("qrmgjfbpkuw", response.iterator().next().snapshotName()); + Assertions.assertEquals("xfe", response.iterator().next().label()); + Assertions.assertEquals("ylkkshkbffmbm", response.iterator().next().volumeResourceId()); + Assertions.assertTrue(response.iterator().next().useExistingSnapshot()); + Assertions.assertEquals("gywwpgjxs", response.iterator().next().snapshotName()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsMigrationRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsMigrationRequestTests.java index 9f88131c06882..431562bbff512 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsMigrationRequestTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/BackupsMigrationRequestTests.java @@ -12,14 +12,14 @@ public final class BackupsMigrationRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BackupsMigrationRequest model - = BinaryData.fromString("{\"backupVaultId\":\"fypiv\"}").toObject(BackupsMigrationRequest.class); - Assertions.assertEquals("fypiv", model.backupVaultId()); + = BinaryData.fromString("{\"backupVaultId\":\"clrcivtsox\"}").toObject(BackupsMigrationRequest.class); + Assertions.assertEquals("clrcivtsox", model.backupVaultId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - BackupsMigrationRequest model = new BackupsMigrationRequest().withBackupVaultId("fypiv"); + BackupsMigrationRequest model = new BackupsMigrationRequest().withBackupVaultId("clrcivtsox"); model = BinaryData.fromObject(model).toObject(BackupsMigrationRequest.class); - Assertions.assertEquals("fypiv", model.backupVaultId()); + Assertions.assertEquals("clrcivtsox", model.backupVaultId()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CachesListPeeringPassphrasesWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CachesListPeeringPassphrasesWithResponseMockTests.java index e355546cc6550..6bb7cd4f63d88 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CachesListPeeringPassphrasesWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CachesListPeeringPassphrasesWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class CachesListPeeringPassphrasesWithResponseMockTests { @Test public void testListPeeringPassphrasesWithResponse() throws Exception { String responseStr - = "{\"clusterPeeringCommand\":\"pglaoh\",\"clusterPeeringPassphrase\":\"qk\",\"vserverPeeringCommand\":\"jtnqjil\",\"criticalWarning\":\"wkdcwmqs\"}"; + = "{\"clusterPeeringCommand\":\"txptlghw\",\"clusterPeeringPassphrase\":\"homewjjstliu\",\"vserverPeeringCommand\":\"qawmoaianc\",\"criticalWarning\":\"vodrrslblxydkxr\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,12 +31,12 @@ public void testListPeeringPassphrasesWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PeeringPassphrases response = manager.caches() - .listPeeringPassphrasesWithResponse("mjpddnyxf", "uvrzmzqmzjqrb", "pv", "mdyfoebojtj", + .listPeeringPassphrasesWithResponse("ukyrdnqodxahh", "hqfaqnvz", "qgyi", "emchgavsczuej", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("pglaoh", response.clusterPeeringCommand()); - Assertions.assertEquals("qk", response.clusterPeeringPassphrase()); - Assertions.assertEquals("jtnqjil", response.vserverPeeringCommand()); + Assertions.assertEquals("txptlghw", response.clusterPeeringCommand()); + Assertions.assertEquals("homewjjstliu", response.clusterPeeringPassphrase()); + Assertions.assertEquals("qawmoaianc", response.vserverPeeringCommand()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolInnerTests.java index 2616358d6f9d7..fed12742b06a2 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolInnerTests.java @@ -17,37 +17,37 @@ public final class CapacityPoolInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CapacityPoolInner model = BinaryData.fromString( - "{\"properties\":{\"poolId\":\"bbjpmcubkmif\",\"size\":2658943647965790619,\"serviceLevel\":\"Premium\",\"provisioningState\":\"bvphavpm\",\"totalThroughputMibps\":45.600914,\"utilizedThroughputMibps\":64.13514,\"customThroughputMibps\":1770022216,\"qosType\":\"Manual\",\"coolAccess\":true,\"encryptionType\":\"Double\"},\"etag\":\"tefjoknssqyzq\",\"location\":\"ik\",\"tags\":{\"qmrjg\":\"db\",\"mjpb\":\"ihfqlggwfiwzc\",\"pgxh\":\"ephmgtvljvrcmyfq\"},\"id\":\"pomyqwcabvnuile\",\"name\":\"yaswlpaugmr\",\"type\":\"fjlrxwtoauk\"}") + "{\"properties\":{\"poolId\":\"kenx\",\"size\":116533809200901624,\"serviceLevel\":\"Premium\",\"provisioningState\":\"frpmpdnqqskaw\",\"totalThroughputMibps\":36.359818,\"utilizedThroughputMibps\":68.465164,\"customThroughputMibps\":1075343777,\"qosType\":\"Manual\",\"coolAccess\":false,\"encryptionType\":\"Single\"},\"etag\":\"lkzmegnitgvkxl\",\"location\":\"qdrfegcealzxwhc\",\"tags\":{\"qhlwigdivbkbxgo\":\"ymo\",\"vdaeyyguxakjsq\":\"fajuwas\"},\"id\":\"hzbezkgi\",\"name\":\"sidxasicdd\",\"type\":\"vvjskgfmocwahp\"}") .toObject(CapacityPoolInner.class); - Assertions.assertEquals("ik", model.location()); - Assertions.assertEquals("db", model.tags().get("qmrjg")); - Assertions.assertEquals(2658943647965790619L, model.size()); + Assertions.assertEquals("qdrfegcealzxwhc", model.location()); + Assertions.assertEquals("ymo", model.tags().get("qhlwigdivbkbxgo")); + Assertions.assertEquals(116533809200901624L, model.size()); Assertions.assertEquals(ServiceLevel.PREMIUM, model.serviceLevel()); - Assertions.assertEquals(1770022216, model.customThroughputMibps()); + Assertions.assertEquals(1075343777, model.customThroughputMibps()); Assertions.assertEquals(QosType.MANUAL, model.qosType()); - Assertions.assertTrue(model.coolAccess()); - Assertions.assertEquals(EncryptionType.DOUBLE, model.encryptionType()); + Assertions.assertFalse(model.coolAccess()); + Assertions.assertEquals(EncryptionType.SINGLE, model.encryptionType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CapacityPoolInner model = new CapacityPoolInner().withLocation("ik") - .withTags(mapOf("qmrjg", "db", "mjpb", "ihfqlggwfiwzc", "pgxh", "ephmgtvljvrcmyfq")) - .withSize(2658943647965790619L) + CapacityPoolInner model = new CapacityPoolInner().withLocation("qdrfegcealzxwhc") + .withTags(mapOf("qhlwigdivbkbxgo", "ymo", "vdaeyyguxakjsq", "fajuwas")) + .withSize(116533809200901624L) .withServiceLevel(ServiceLevel.PREMIUM) - .withCustomThroughputMibps(1770022216) + .withCustomThroughputMibps(1075343777) .withQosType(QosType.MANUAL) - .withCoolAccess(true) - .withEncryptionType(EncryptionType.DOUBLE); + .withCoolAccess(false) + .withEncryptionType(EncryptionType.SINGLE); model = BinaryData.fromObject(model).toObject(CapacityPoolInner.class); - Assertions.assertEquals("ik", model.location()); - Assertions.assertEquals("db", model.tags().get("qmrjg")); - Assertions.assertEquals(2658943647965790619L, model.size()); + Assertions.assertEquals("qdrfegcealzxwhc", model.location()); + Assertions.assertEquals("ymo", model.tags().get("qhlwigdivbkbxgo")); + Assertions.assertEquals(116533809200901624L, model.size()); Assertions.assertEquals(ServiceLevel.PREMIUM, model.serviceLevel()); - Assertions.assertEquals(1770022216, model.customThroughputMibps()); + Assertions.assertEquals(1075343777, model.customThroughputMibps()); Assertions.assertEquals(QosType.MANUAL, model.qosType()); - Assertions.assertTrue(model.coolAccess()); - Assertions.assertEquals(EncryptionType.DOUBLE, model.encryptionType()); + Assertions.assertFalse(model.coolAccess()); + Assertions.assertEquals(EncryptionType.SINGLE, model.encryptionType()); } // Use "Map.of" if available diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolListTests.java index 7427015faa292..3e037befbb310 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolListTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolListTests.java @@ -15,16 +15,16 @@ public final class CapacityPoolListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CapacityPoolList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"poolId\":\"jjkhvyomaclu\",\"size\":2509004453325276291,\"serviceLevel\":\"Standard\",\"provisioningState\":\"mhrpqpdfw\",\"totalThroughputMibps\":9.116411,\"utilizedThroughputMibps\":44.33386,\"customThroughputMibps\":785692524,\"qosType\":\"Auto\",\"coolAccess\":true,\"encryptionType\":\"Single\"},\"etag\":\"fmcsypobkd\",\"location\":\"rdzsylollgtrczzy\",\"tags\":{\"defxrdc\":\"zjijpvuaurkihcir\"},\"id\":\"xnbkkj\",\"name\":\"nurnnq\",\"type\":\"nqbpi\"},{\"properties\":{\"poolId\":\"qltgrd\",\"size\":9009223800330831633,\"serviceLevel\":\"Ultra\",\"provisioningState\":\"rxvbfihwuh\",\"totalThroughputMibps\":95.03055,\"utilizedThroughputMibps\":20.380814,\"customThroughputMibps\":2067540968,\"qosType\":\"Manual\",\"coolAccess\":false,\"encryptionType\":\"Single\"},\"etag\":\"iowxi\",\"location\":\"p\",\"tags\":{\"bsbqqqag\":\"qagnepzwakl\",\"rrczezkhhltnj\":\"wrxaomzisg\",\"oyueayfbpcmsp\":\"dhqoawj\"},\"id\":\"byrrueqth\",\"name\":\"mg\",\"type\":\"mbscbbx\"},{\"properties\":{\"poolId\":\"dhxiidlopedbwd\",\"size\":3583879341611087717,\"serviceLevel\":\"StandardZRS\",\"provisioningState\":\"bxubmdna\",\"totalThroughputMibps\":60.302387,\"utilizedThroughputMibps\":39.57759,\"customThroughputMibps\":106627491,\"qosType\":\"Manual\",\"coolAccess\":true,\"encryptionType\":\"Double\"},\"etag\":\"cigeleohdbvqvw\",\"location\":\"jopwbeonrlkwz\",\"tags\":{\"xcptsoqfyiaseqc\":\"bxcea\"},\"id\":\"krtt\",\"name\":\"razisg\",\"type\":\"kiuemv\"},{\"properties\":{\"poolId\":\"bwzohmnrxxbs\",\"size\":6739218786805159474,\"serviceLevel\":\"Ultra\",\"provisioningState\":\"nhmdptysprqs\",\"totalThroughputMibps\":54.778225,\"utilizedThroughputMibps\":91.27877,\"customThroughputMibps\":1747064559,\"qosType\":\"Manual\",\"coolAccess\":false,\"encryptionType\":\"Single\"},\"etag\":\"liufiqwoyxq\",\"location\":\"pcohhoucqpqojx\",\"tags\":{\"tzqdd\":\"rzdcgdzbenribcaw\",\"mzwcjjncqt\":\"jwfljhznamtua\"},\"id\":\"z\",\"name\":\"izvg\",\"type\":\"gat\"}],\"nextLink\":\"uvbxngr\"}") + "{\"value\":[{\"properties\":{\"poolId\":\"esvecuijpx\",\"size\":1397812267932318523,\"serviceLevel\":\"Flexible\",\"provisioningState\":\"prtujwsawdd\",\"totalThroughputMibps\":53.828697,\"utilizedThroughputMibps\":16.49437,\"customThroughputMibps\":695573054,\"qosType\":\"Manual\",\"coolAccess\":true,\"encryptionType\":\"Single\"},\"etag\":\"eexavo\",\"location\":\"fglecdmdqbwp\",\"tags\":{\"b\":\"tgsfja\"},\"id\":\"lhhxudbxvodhtnsi\",\"name\":\"ud\",\"type\":\"z\"}],\"nextLink\":\"es\"}") .toObject(CapacityPoolList.class); - Assertions.assertEquals("rdzsylollgtrczzy", model.value().get(0).location()); - Assertions.assertEquals("zjijpvuaurkihcir", model.value().get(0).tags().get("defxrdc")); - Assertions.assertEquals(2509004453325276291L, model.value().get(0).size()); - Assertions.assertEquals(ServiceLevel.STANDARD, model.value().get(0).serviceLevel()); - Assertions.assertEquals(785692524, model.value().get(0).customThroughputMibps()); - Assertions.assertEquals(QosType.AUTO, model.value().get(0).qosType()); + Assertions.assertEquals("fglecdmdqbwp", model.value().get(0).location()); + Assertions.assertEquals("tgsfja", model.value().get(0).tags().get("b")); + Assertions.assertEquals(1397812267932318523L, model.value().get(0).size()); + Assertions.assertEquals(ServiceLevel.FLEXIBLE, model.value().get(0).serviceLevel()); + Assertions.assertEquals(695573054, model.value().get(0).customThroughputMibps()); + Assertions.assertEquals(QosType.MANUAL, model.value().get(0).qosType()); Assertions.assertTrue(model.value().get(0).coolAccess()); Assertions.assertEquals(EncryptionType.SINGLE, model.value().get(0).encryptionType()); - Assertions.assertEquals("uvbxngr", model.nextLink()); + Assertions.assertEquals("es", model.nextLink()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolPatchTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolPatchTests.java index 03a3659c9ad7e..9cf003352eb78 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolPatchTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CapacityPoolPatchTests.java @@ -15,31 +15,31 @@ public final class CapacityPoolPatchTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CapacityPoolPatch model = BinaryData.fromString( - "{\"location\":\"yeew\",\"id\":\"iqbps\",\"name\":\"omguamlj\",\"type\":\"rgmsplzga\",\"tags\":{\"pqanxrjkix\":\"shhvnewgnxky\",\"yghs\":\"wbtaoyp\"},\"properties\":{\"size\":4157830624762350361,\"qosType\":\"Manual\",\"coolAccess\":true,\"customThroughputMibps\":1324330930}}") + "{\"location\":\"xvxevblbjednljla\",\"id\":\"uaulxunsm\",\"name\":\"nkppxynen\",\"type\":\"vxei\",\"tags\":{\"ckt\":\"wklnsrmffeyc\",\"kk\":\"iymerteeammxqi\"},\"properties\":{\"size\":8717628857251043275,\"qosType\":\"Auto\",\"coolAccess\":false,\"customThroughputMibps\":221974172}}") .toObject(CapacityPoolPatch.class); - Assertions.assertEquals("yeew", model.location()); - Assertions.assertEquals("shhvnewgnxky", model.tags().get("pqanxrjkix")); - Assertions.assertEquals(4157830624762350361L, model.size()); - Assertions.assertEquals(QosType.MANUAL, model.qosType()); - Assertions.assertTrue(model.coolAccess()); - Assertions.assertEquals(1324330930, model.customThroughputMibps()); + Assertions.assertEquals("xvxevblbjednljla", model.location()); + Assertions.assertEquals("wklnsrmffeyc", model.tags().get("ckt")); + Assertions.assertEquals(8717628857251043275L, model.size()); + Assertions.assertEquals(QosType.AUTO, model.qosType()); + Assertions.assertFalse(model.coolAccess()); + Assertions.assertEquals(221974172, model.customThroughputMibps()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - CapacityPoolPatch model = new CapacityPoolPatch().withLocation("yeew") - .withTags(mapOf("pqanxrjkix", "shhvnewgnxky", "yghs", "wbtaoyp")) - .withSize(4157830624762350361L) - .withQosType(QosType.MANUAL) - .withCoolAccess(true) - .withCustomThroughputMibps(1324330930); + CapacityPoolPatch model = new CapacityPoolPatch().withLocation("xvxevblbjednljla") + .withTags(mapOf("ckt", "wklnsrmffeyc", "kk", "iymerteeammxqi")) + .withSize(8717628857251043275L) + .withQosType(QosType.AUTO) + .withCoolAccess(false) + .withCustomThroughputMibps(221974172); model = BinaryData.fromObject(model).toObject(CapacityPoolPatch.class); - Assertions.assertEquals("yeew", model.location()); - Assertions.assertEquals("shhvnewgnxky", model.tags().get("pqanxrjkix")); - Assertions.assertEquals(4157830624762350361L, model.size()); - Assertions.assertEquals(QosType.MANUAL, model.qosType()); - Assertions.assertTrue(model.coolAccess()); - Assertions.assertEquals(1324330930, model.customThroughputMibps()); + Assertions.assertEquals("xvxevblbjednljla", model.location()); + Assertions.assertEquals("wklnsrmffeyc", model.tags().get("ckt")); + Assertions.assertEquals(8717628857251043275L, model.size()); + Assertions.assertEquals(QosType.AUTO, model.qosType()); + Assertions.assertFalse(model.coolAccess()); + Assertions.assertEquals(221974172, model.customThroughputMibps()); } // Use "Map.of" if available diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ChangeZoneRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ChangeZoneRequestTests.java deleted file mode 100644 index aed5f728d1b19..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ChangeZoneRequestTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ChangeZoneRequest; -import org.junit.jupiter.api.Assertions; - -public final class ChangeZoneRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ChangeZoneRequest model = BinaryData.fromString("{\"newZone\":\"gtltdhlf\"}").toObject(ChangeZoneRequest.class); - Assertions.assertEquals("gtltdhlf", model.newZone()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ChangeZoneRequest model = new ChangeZoneRequest().withNewZone("gtltdhlf"); - model = BinaryData.fromObject(model).toObject(ChangeZoneRequest.class); - Assertions.assertEquals("gtltdhlf", model.newZone()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CheckAvailabilityResponseInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CheckAvailabilityResponseInnerTests.java index 3707bed325409..3d43a82ee75cf 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CheckAvailabilityResponseInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CheckAvailabilityResponseInnerTests.java @@ -13,10 +13,10 @@ public final class CheckAvailabilityResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { CheckAvailabilityResponseInner model - = BinaryData.fromString("{\"isAvailable\":false,\"reason\":\"Invalid\",\"message\":\"fehuwaoaguhi\"}") + = BinaryData.fromString("{\"isAvailable\":false,\"reason\":\"Invalid\",\"message\":\"ujrtrhqvwr\"}") .toObject(CheckAvailabilityResponseInner.class); Assertions.assertFalse(model.isAvailable()); Assertions.assertEquals(InAvailabilityReasonType.INVALID, model.reason()); - Assertions.assertEquals("fehuwaoaguhi", model.message()); + Assertions.assertEquals("ujrtrhqvwr", model.message()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CheckElasticResourceAvailabilityResponseInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CheckElasticResourceAvailabilityResponseInnerTests.java deleted file mode 100644 index 30756b8c1756d..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CheckElasticResourceAvailabilityResponseInnerTests.java +++ /dev/null @@ -1,23 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.CheckElasticResourceAvailabilityResponseInner; -import com.azure.resourcemanager.netapp.models.CheckElasticResourceAvailabilityReason; -import com.azure.resourcemanager.netapp.models.CheckElasticResourceAvailabilityStatus; -import org.junit.jupiter.api.Assertions; - -public final class CheckElasticResourceAvailabilityResponseInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CheckElasticResourceAvailabilityResponseInner model - = BinaryData.fromString("{\"isAvailable\":\"True\",\"reason\":\"AlreadyExists\",\"message\":\"cnifm\"}") - .toObject(CheckElasticResourceAvailabilityResponseInner.class); - Assertions.assertEquals(CheckElasticResourceAvailabilityStatus.TRUE, model.isAvailable()); - Assertions.assertEquals(CheckElasticResourceAvailabilityReason.ALREADY_EXISTS, model.reason()); - Assertions.assertEquals("cnifm", model.message()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CheckElasticVolumeFilePathAvailabilityRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CheckElasticVolumeFilePathAvailabilityRequestTests.java deleted file mode 100644 index cbab45af775da..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/CheckElasticVolumeFilePathAvailabilityRequestTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.CheckElasticVolumeFilePathAvailabilityRequest; -import org.junit.jupiter.api.Assertions; - -public final class CheckElasticVolumeFilePathAvailabilityRequestTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - CheckElasticVolumeFilePathAvailabilityRequest model = BinaryData.fromString("{\"filePath\":\"qojpy\"}") - .toObject(CheckElasticVolumeFilePathAvailabilityRequest.class); - Assertions.assertEquals("qojpy", model.filePath()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - CheckElasticVolumeFilePathAvailabilityRequest model - = new CheckElasticVolumeFilePathAvailabilityRequest().withFilePath("qojpy"); - model = BinaryData.fromObject(model).toObject(CheckElasticVolumeFilePathAvailabilityRequest.class); - Assertions.assertEquals("qojpy", model.filePath()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupInnerTests.java deleted file mode 100644 index 93e0395a54853..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupInnerTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.ElasticBackupInner; -import com.azure.resourcemanager.netapp.models.ElasticBackupProperties; -import com.azure.resourcemanager.netapp.models.SnapshotUsage; -import org.junit.jupiter.api.Assertions; - -public final class ElasticBackupInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticBackupInner model = BinaryData.fromString( - "{\"properties\":{\"creationDate\":\"2021-03-12T20:12:26Z\",\"snapshotCreationDate\":\"2021-09-16T21:13:37Z\",\"completionDate\":\"2021-05-10T03:21:21Z\",\"provisioningState\":\"Updating\",\"size\":8704016164056262603,\"label\":\"nulaiywzejywhsl\",\"backupType\":\"Scheduled\",\"failureReason\":\"pllndnp\",\"elasticVolumeResourceId\":\"wrpqafgfugsnnf\",\"snapshotUsage\":\"UseExistingSnapshot\",\"elasticSnapshotResourceId\":\"efy\",\"elasticBackupPolicyResourceId\":\"coc\",\"volumeSize\":\"Large\"},\"id\":\"tixr\",\"name\":\"vzuyturmlmu\",\"type\":\"wolba\"}") - .toObject(ElasticBackupInner.class); - Assertions.assertEquals("nulaiywzejywhsl", model.properties().label()); - Assertions.assertEquals("wrpqafgfugsnnf", model.properties().elasticVolumeResourceId()); - Assertions.assertEquals(SnapshotUsage.USE_EXISTING_SNAPSHOT, model.properties().snapshotUsage()); - Assertions.assertEquals("efy", model.properties().elasticSnapshotResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticBackupInner model - = new ElasticBackupInner().withProperties(new ElasticBackupProperties().withLabel("nulaiywzejywhsl") - .withElasticVolumeResourceId("wrpqafgfugsnnf") - .withSnapshotUsage(SnapshotUsage.USE_EXISTING_SNAPSHOT) - .withElasticSnapshotResourceId("efy")); - model = BinaryData.fromObject(model).toObject(ElasticBackupInner.class); - Assertions.assertEquals("nulaiywzejywhsl", model.properties().label()); - Assertions.assertEquals("wrpqafgfugsnnf", model.properties().elasticVolumeResourceId()); - Assertions.assertEquals(SnapshotUsage.USE_EXISTING_SNAPSHOT, model.properties().snapshotUsage()); - Assertions.assertEquals("efy", model.properties().elasticSnapshotResourceId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupListResultTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupListResultTests.java deleted file mode 100644 index 7827c1da38408..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupListResultTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.implementation.models.ElasticBackupListResult; -import com.azure.resourcemanager.netapp.models.SnapshotUsage; -import org.junit.jupiter.api.Assertions; - -public final class ElasticBackupListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticBackupListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"creationDate\":\"2021-03-05T12:08:12Z\",\"snapshotCreationDate\":\"2021-02-03T20:51:35Z\",\"completionDate\":\"2021-07-14T10:52:31Z\",\"provisioningState\":\"Succeeded\",\"size\":2153193005537260833,\"label\":\"s\",\"backupType\":\"Manual\",\"failureReason\":\"sfuughtuqfecjx\",\"elasticVolumeResourceId\":\"ygtuhx\",\"snapshotUsage\":\"CreateNewSnapshot\",\"elasticSnapshotResourceId\":\"uewmrswnjlxuzrhw\",\"elasticBackupPolicyResourceId\":\"sxjb\",\"volumeSize\":\"Regular\"},\"id\":\"gpdohzj\",\"name\":\"atucoigebxncn\",\"type\":\"fepbnwgfmxjgc\"},{\"properties\":{\"creationDate\":\"2021-09-03T22:46:11Z\",\"snapshotCreationDate\":\"2021-05-02T03:25:22Z\",\"completionDate\":\"2021-05-07T12:13:37Z\",\"provisioningState\":\"Moving\",\"size\":900706865834950533,\"label\":\"aquflqbctqha\",\"backupType\":\"Manual\",\"failureReason\":\"wdkqzeqy\",\"elasticVolumeResourceId\":\"leziunjxdfzant\",\"snapshotUsage\":\"CreateNewSnapshot\",\"elasticSnapshotResourceId\":\"gyamlbnseqacjjv\",\"elasticBackupPolicyResourceId\":\"lguooqjagmd\",\"volumeSize\":\"Regular\"},\"id\":\"eiookjbsah\",\"name\":\"tdtpdelqacslmo\",\"type\":\"oebn\"}],\"nextLink\":\"o\"}") - .toObject(ElasticBackupListResult.class); - Assertions.assertEquals("s", model.value().get(0).properties().label()); - Assertions.assertEquals("ygtuhx", model.value().get(0).properties().elasticVolumeResourceId()); - Assertions.assertEquals(SnapshotUsage.CREATE_NEW_SNAPSHOT, model.value().get(0).properties().snapshotUsage()); - Assertions.assertEquals("uewmrswnjlxuzrhw", model.value().get(0).properties().elasticSnapshotResourceId()); - Assertions.assertEquals("o", model.nextLink()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesCreateOrUpdateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesCreateOrUpdateMockTests.java deleted file mode 100644 index 7c5de1a49b9d0..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesCreateOrUpdateMockTests.java +++ /dev/null @@ -1,68 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicy; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyProperties; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyState; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticBackupPoliciesCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"dailyBackupsToKeep\":1745458220,\"weeklyBackupsToKeep\":359733741,\"monthlyBackupsToKeep\":1950441788,\"assignedVolumesCount\":1818762005,\"policyState\":\"Enabled\"},\"eTag\":\"ajbk\",\"location\":\"lcyizyddcvxo\",\"tags\":{\"ydesqlvgec\":\"vfsxx\",\"mxsdobygoog\":\"wgoljtzx\",\"j\":\"qa\"},\"id\":\"vaz\",\"name\":\"jfucsaodjnosdkv\",\"type\":\"bfas\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - ElasticBackupPolicy response = manager.elasticBackupPolicies() - .define("wpsyxjij") - .withRegion("cefeygzqpj") - .withExistingElasticAccount("ywjzebecuvlbefvw", "ljkxpylrwoxz") - .withTags(mapOf("ybdjnxumentq", "fmn", "towlhlsycoyb", "ntwhymxymulwiv", "j", "jasqubf", "htfxcpupuki", - "ywhjqwmchq")) - .withProperties(new ElasticBackupPolicyProperties().withDailyBackupsToKeep(1965093458) - .withWeeklyBackupsToKeep(1290877670) - .withMonthlyBackupsToKeep(1998855152) - .withPolicyState(ElasticBackupPolicyState.DISABLED)) - .create(); - - Assertions.assertEquals("lcyizyddcvxo", response.location()); - Assertions.assertEquals("vfsxx", response.tags().get("ydesqlvgec")); - Assertions.assertEquals(1745458220, response.properties().dailyBackupsToKeep()); - Assertions.assertEquals(359733741, response.properties().weeklyBackupsToKeep()); - Assertions.assertEquals(1950441788, response.properties().monthlyBackupsToKeep()); - Assertions.assertEquals(ElasticBackupPolicyState.ENABLED, response.properties().policyState()); - } - - // 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/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesGetWithResponseMockTests.java deleted file mode 100644 index c89bf0d8c3fda..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesGetWithResponseMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicy; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyState; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticBackupPoliciesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"provisioningState\":\"Moving\",\"dailyBackupsToKeep\":833282883,\"weeklyBackupsToKeep\":1088510786,\"monthlyBackupsToKeep\":967504624,\"assignedVolumesCount\":1579537521,\"policyState\":\"Enabled\"},\"eTag\":\"vlrrskapbxwieexu\",\"location\":\"derltfokyksyim\",\"tags\":{\"rsejegprkj\":\"grvkcxzznnuif\",\"jmwvvbtuqkxxi\":\"uw\",\"ekotjgxi\":\"wgxql\",\"by\":\"qfkyfhiwvjaqu\"},\"id\":\"nvskpaj\",\"name\":\"mgeu\",\"type\":\"exmj\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - ElasticBackupPolicy response = manager.elasticBackupPolicies() - .getWithResponse("xslwhd", "cvhtbbzjhfvh", "wzbxpc", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("derltfokyksyim", response.location()); - Assertions.assertEquals("grvkcxzznnuif", response.tags().get("rsejegprkj")); - Assertions.assertEquals(833282883, response.properties().dailyBackupsToKeep()); - Assertions.assertEquals(1088510786, response.properties().weeklyBackupsToKeep()); - Assertions.assertEquals(967504624, response.properties().monthlyBackupsToKeep()); - Assertions.assertEquals(ElasticBackupPolicyState.ENABLED, response.properties().policyState()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesListByElasticAccountMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesListByElasticAccountMockTests.java deleted file mode 100644 index 70c816ed38bdb..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPoliciesListByElasticAccountMockTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicy; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyState; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticBackupPoliciesListByElasticAccountMockTests { - @Test - public void testListByElasticAccount() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Creating\",\"dailyBackupsToKeep\":775523901,\"weeklyBackupsToKeep\":2123818408,\"monthlyBackupsToKeep\":1056872967,\"assignedVolumesCount\":2066006644,\"policyState\":\"Enabled\"},\"eTag\":\"m\",\"location\":\"ahlfxlmuifmuadj\",\"tags\":{\"skiioshjgczetybn\":\"n\"},\"id\":\"gztlcgc\",\"name\":\"j\",\"type\":\"hfjv\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response = manager.elasticBackupPolicies() - .listByElasticAccount("xcbccwkqmt", "apeqiscrpil", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("ahlfxlmuifmuadj", response.iterator().next().location()); - Assertions.assertEquals("n", response.iterator().next().tags().get("skiioshjgczetybn")); - Assertions.assertEquals(775523901, response.iterator().next().properties().dailyBackupsToKeep()); - Assertions.assertEquals(2123818408, response.iterator().next().properties().weeklyBackupsToKeep()); - Assertions.assertEquals(1056872967, response.iterator().next().properties().monthlyBackupsToKeep()); - Assertions.assertEquals(ElasticBackupPolicyState.ENABLED, - response.iterator().next().properties().policyState()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPolicyInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPolicyInnerTests.java deleted file mode 100644 index ee2554e2df5ab..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPolicyInnerTests.java +++ /dev/null @@ -1,57 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.ElasticBackupPolicyInner; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyProperties; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyState; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ElasticBackupPolicyInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticBackupPolicyInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Creating\",\"dailyBackupsToKeep\":417013973,\"weeklyBackupsToKeep\":438034725,\"monthlyBackupsToKeep\":187127133,\"assignedVolumesCount\":1432603704,\"policyState\":\"Enabled\"},\"eTag\":\"kyjpmspbps\",\"location\":\"fppyogtieyujtvcz\",\"tags\":{\"xvglnkvxlxp\":\"yxrxmunj\"},\"id\":\"glqivbgkcv\",\"name\":\"hpzvuqdflvoniyp\",\"type\":\"pubcpzgpxtivhjk\"}") - .toObject(ElasticBackupPolicyInner.class); - Assertions.assertEquals("fppyogtieyujtvcz", model.location()); - Assertions.assertEquals("yxrxmunj", model.tags().get("xvglnkvxlxp")); - Assertions.assertEquals(417013973, model.properties().dailyBackupsToKeep()); - Assertions.assertEquals(438034725, model.properties().weeklyBackupsToKeep()); - Assertions.assertEquals(187127133, model.properties().monthlyBackupsToKeep()); - Assertions.assertEquals(ElasticBackupPolicyState.ENABLED, model.properties().policyState()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticBackupPolicyInner model = new ElasticBackupPolicyInner().withLocation("fppyogtieyujtvcz") - .withTags(mapOf("xvglnkvxlxp", "yxrxmunj")) - .withProperties(new ElasticBackupPolicyProperties().withDailyBackupsToKeep(417013973) - .withWeeklyBackupsToKeep(438034725) - .withMonthlyBackupsToKeep(187127133) - .withPolicyState(ElasticBackupPolicyState.ENABLED)); - model = BinaryData.fromObject(model).toObject(ElasticBackupPolicyInner.class); - Assertions.assertEquals("fppyogtieyujtvcz", model.location()); - Assertions.assertEquals("yxrxmunj", model.tags().get("xvglnkvxlxp")); - Assertions.assertEquals(417013973, model.properties().dailyBackupsToKeep()); - Assertions.assertEquals(438034725, model.properties().weeklyBackupsToKeep()); - Assertions.assertEquals(187127133, model.properties().monthlyBackupsToKeep()); - Assertions.assertEquals(ElasticBackupPolicyState.ENABLED, model.properties().policyState()); - } - - // 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/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPolicyListResultTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPolicyListResultTests.java deleted file mode 100644 index e972079d2dab9..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPolicyListResultTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.implementation.models.ElasticBackupPolicyListResult; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyState; -import org.junit.jupiter.api.Assertions; - -public final class ElasticBackupPolicyListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticBackupPolicyListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Accepted\",\"dailyBackupsToKeep\":1409620818,\"weeklyBackupsToKeep\":1972611629,\"monthlyBackupsToKeep\":13695929,\"assignedVolumesCount\":91533505,\"policyState\":\"Disabled\"},\"eTag\":\"cbfrm\",\"location\":\"dths\",\"tags\":{\"xousxauzl\":\"vriibakclacjfr\",\"wohqfzizvu\":\"vsg\",\"vmribiat\":\"mmkjsvthnwpztek\"},\"id\":\"gplucfotangcfhny\",\"name\":\"zcugswvxwlmzqw\",\"type\":\"vtxnjmxmcuqud\"},{\"properties\":{\"provisioningState\":\"Patching\",\"dailyBackupsToKeep\":21303775,\"weeklyBackupsToKeep\":1115734201,\"monthlyBackupsToKeep\":1944925015,\"assignedVolumesCount\":1087876109,\"policyState\":\"Disabled\"},\"eTag\":\"buiyji\",\"location\":\"zphdugneiknp\",\"tags\":{\"ipq\":\"gjiuqhibto\",\"tvqylkmqpzoyhlfb\":\"jedmurrxxgewp\"},\"id\":\"gwgcl\",\"name\":\"xoe\",\"type\":\"qinjipnwjf\"},{\"properties\":{\"provisioningState\":\"Updating\",\"dailyBackupsToKeep\":1724104669,\"weeklyBackupsToKeep\":1462565656,\"monthlyBackupsToKeep\":1454671377,\"assignedVolumesCount\":295372470,\"policyState\":\"Enabled\"},\"eTag\":\"foiyjwpfilk\",\"location\":\"kholvd\",\"tags\":{\"iukyefchnmna\":\"iauogphuartv\",\"xffi\":\"mnxhkxjqirwrweo\",\"rsnewmozqvbubqma\":\"hx\"},\"id\":\"hsycxhxzgaz\",\"name\":\"taboidvmf\",\"type\":\"hppubowsepdfgkmt\"}],\"nextLink\":\"erngbtcjuahokqto\"}") - .toObject(ElasticBackupPolicyListResult.class); - Assertions.assertEquals("dths", model.value().get(0).location()); - Assertions.assertEquals("vriibakclacjfr", model.value().get(0).tags().get("xousxauzl")); - Assertions.assertEquals(1409620818, model.value().get(0).properties().dailyBackupsToKeep()); - Assertions.assertEquals(1972611629, model.value().get(0).properties().weeklyBackupsToKeep()); - Assertions.assertEquals(13695929, model.value().get(0).properties().monthlyBackupsToKeep()); - Assertions.assertEquals(ElasticBackupPolicyState.DISABLED, model.value().get(0).properties().policyState()); - Assertions.assertEquals("erngbtcjuahokqto", model.nextLink()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPolicyPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPolicyPropertiesTests.java deleted file mode 100644 index 95b0fc84787a5..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPolicyPropertiesTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyProperties; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyState; -import org.junit.jupiter.api.Assertions; - -public final class ElasticBackupPolicyPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticBackupPolicyProperties model = BinaryData.fromString( - "{\"provisioningState\":\"Succeeded\",\"dailyBackupsToKeep\":1003924316,\"weeklyBackupsToKeep\":1404757265,\"monthlyBackupsToKeep\":1339436767,\"assignedVolumesCount\":134630925,\"policyState\":\"Enabled\"}") - .toObject(ElasticBackupPolicyProperties.class); - Assertions.assertEquals(1003924316, model.dailyBackupsToKeep()); - Assertions.assertEquals(1404757265, model.weeklyBackupsToKeep()); - Assertions.assertEquals(1339436767, model.monthlyBackupsToKeep()); - Assertions.assertEquals(ElasticBackupPolicyState.ENABLED, model.policyState()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticBackupPolicyProperties model = new ElasticBackupPolicyProperties().withDailyBackupsToKeep(1003924316) - .withWeeklyBackupsToKeep(1404757265) - .withMonthlyBackupsToKeep(1339436767) - .withPolicyState(ElasticBackupPolicyState.ENABLED); - model = BinaryData.fromObject(model).toObject(ElasticBackupPolicyProperties.class); - Assertions.assertEquals(1003924316, model.dailyBackupsToKeep()); - Assertions.assertEquals(1404757265, model.weeklyBackupsToKeep()); - Assertions.assertEquals(1339436767, model.monthlyBackupsToKeep()); - Assertions.assertEquals(ElasticBackupPolicyState.ENABLED, model.policyState()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPolicyUpdatePropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPolicyUpdatePropertiesTests.java deleted file mode 100644 index 6da1b08481c3a..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPolicyUpdatePropertiesTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyState; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyUpdateProperties; -import org.junit.jupiter.api.Assertions; - -public final class ElasticBackupPolicyUpdatePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticBackupPolicyUpdateProperties model = BinaryData.fromString( - "{\"dailyBackupsToKeep\":1438070602,\"weeklyBackupsToKeep\":1334509935,\"monthlyBackupsToKeep\":1857867991,\"policyState\":\"Enabled\"}") - .toObject(ElasticBackupPolicyUpdateProperties.class); - Assertions.assertEquals(1438070602, model.dailyBackupsToKeep()); - Assertions.assertEquals(1334509935, model.weeklyBackupsToKeep()); - Assertions.assertEquals(1857867991, model.monthlyBackupsToKeep()); - Assertions.assertEquals(ElasticBackupPolicyState.ENABLED, model.policyState()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticBackupPolicyUpdateProperties model - = new ElasticBackupPolicyUpdateProperties().withDailyBackupsToKeep(1438070602) - .withWeeklyBackupsToKeep(1334509935) - .withMonthlyBackupsToKeep(1857867991) - .withPolicyState(ElasticBackupPolicyState.ENABLED); - model = BinaryData.fromObject(model).toObject(ElasticBackupPolicyUpdateProperties.class); - Assertions.assertEquals(1438070602, model.dailyBackupsToKeep()); - Assertions.assertEquals(1334509935, model.weeklyBackupsToKeep()); - Assertions.assertEquals(1857867991, model.monthlyBackupsToKeep()); - Assertions.assertEquals(ElasticBackupPolicyState.ENABLED, model.policyState()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPolicyUpdateTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPolicyUpdateTests.java deleted file mode 100644 index 35016b4991247..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPolicyUpdateTests.java +++ /dev/null @@ -1,55 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyState; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyUpdate; -import com.azure.resourcemanager.netapp.models.ElasticBackupPolicyUpdateProperties; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ElasticBackupPolicyUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticBackupPolicyUpdate model = BinaryData.fromString( - "{\"tags\":{\"gpikqmh\":\"ov\",\"jrmzvupor\":\"ao\",\"qpswokmvkhlggdhb\":\"zdfuydzvkfvxcnqm\",\"zu\":\"mzqkz\"},\"properties\":{\"dailyBackupsToKeep\":1115368168,\"weeklyBackupsToKeep\":1977172976,\"monthlyBackupsToKeep\":556178422,\"policyState\":\"Enabled\"}}") - .toObject(ElasticBackupPolicyUpdate.class); - Assertions.assertEquals("ov", model.tags().get("gpikqmh")); - Assertions.assertEquals(1115368168, model.properties().dailyBackupsToKeep()); - Assertions.assertEquals(1977172976, model.properties().weeklyBackupsToKeep()); - Assertions.assertEquals(556178422, model.properties().monthlyBackupsToKeep()); - Assertions.assertEquals(ElasticBackupPolicyState.ENABLED, model.properties().policyState()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticBackupPolicyUpdate model = new ElasticBackupPolicyUpdate() - .withTags(mapOf("gpikqmh", "ov", "jrmzvupor", "ao", "qpswokmvkhlggdhb", "zdfuydzvkfvxcnqm", "zu", "mzqkz")) - .withProperties(new ElasticBackupPolicyUpdateProperties().withDailyBackupsToKeep(1115368168) - .withWeeklyBackupsToKeep(1977172976) - .withMonthlyBackupsToKeep(556178422) - .withPolicyState(ElasticBackupPolicyState.ENABLED)); - model = BinaryData.fromObject(model).toObject(ElasticBackupPolicyUpdate.class); - Assertions.assertEquals("ov", model.tags().get("gpikqmh")); - Assertions.assertEquals(1115368168, model.properties().dailyBackupsToKeep()); - Assertions.assertEquals(1977172976, model.properties().weeklyBackupsToKeep()); - Assertions.assertEquals(556178422, model.properties().monthlyBackupsToKeep()); - Assertions.assertEquals(ElasticBackupPolicyState.ENABLED, model.properties().policyState()); - } - - // 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/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPropertiesTests.java deleted file mode 100644 index 3e0174fb09d45..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupPropertiesTests.java +++ /dev/null @@ -1,36 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticBackupProperties; -import com.azure.resourcemanager.netapp.models.SnapshotUsage; -import org.junit.jupiter.api.Assertions; - -public final class ElasticBackupPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticBackupProperties model = BinaryData.fromString( - "{\"creationDate\":\"2021-07-06T06:01Z\",\"snapshotCreationDate\":\"2021-04-01T11:02:42Z\",\"completionDate\":\"2021-07-21T06:19:54Z\",\"provisioningState\":\"Failed\",\"size\":7439641289820148849,\"label\":\"pngajin\",\"backupType\":\"Manual\",\"failureReason\":\"awrtmjfjmyccxlz\",\"elasticVolumeResourceId\":\"coxovn\",\"snapshotUsage\":\"CreateNewSnapshot\",\"elasticSnapshotResourceId\":\"nlusfnrd\",\"elasticBackupPolicyResourceId\":\"xtxrdcqtjvidt\",\"volumeSize\":\"Large\"}") - .toObject(ElasticBackupProperties.class); - Assertions.assertEquals("pngajin", model.label()); - Assertions.assertEquals("coxovn", model.elasticVolumeResourceId()); - Assertions.assertEquals(SnapshotUsage.CREATE_NEW_SNAPSHOT, model.snapshotUsage()); - Assertions.assertEquals("nlusfnrd", model.elasticSnapshotResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticBackupProperties model = new ElasticBackupProperties().withLabel("pngajin") - .withElasticVolumeResourceId("coxovn") - .withSnapshotUsage(SnapshotUsage.CREATE_NEW_SNAPSHOT) - .withElasticSnapshotResourceId("nlusfnrd"); - model = BinaryData.fromObject(model).toObject(ElasticBackupProperties.class); - Assertions.assertEquals("pngajin", model.label()); - Assertions.assertEquals("coxovn", model.elasticVolumeResourceId()); - Assertions.assertEquals(SnapshotUsage.CREATE_NEW_SNAPSHOT, model.snapshotUsage()); - Assertions.assertEquals("nlusfnrd", model.elasticSnapshotResourceId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultInnerTests.java deleted file mode 100644 index 5ebcc5cd35ddb..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultInnerTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.ElasticBackupVaultInner; -import com.azure.resourcemanager.netapp.models.ElasticBackupVaultProperties; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ElasticBackupVaultInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticBackupVaultInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Deleting\"},\"eTag\":\"eudzqavbpd\",\"location\":\"jxlyyzglgouwtlm\",\"tags\":{\"baxk\":\"uojqt\",\"lbfjkwr\":\"eytu\",\"hsyrqunj\":\"snkq\"},\"id\":\"hdenxaulk\",\"name\":\"akdkifmjnnawtqab\",\"type\":\"xuckpggqoweyir\"}") - .toObject(ElasticBackupVaultInner.class); - Assertions.assertEquals("jxlyyzglgouwtlm", model.location()); - Assertions.assertEquals("uojqt", model.tags().get("baxk")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticBackupVaultInner model = new ElasticBackupVaultInner().withLocation("jxlyyzglgouwtlm") - .withTags(mapOf("baxk", "uojqt", "lbfjkwr", "eytu", "hsyrqunj", "snkq")) - .withProperties(new ElasticBackupVaultProperties()); - model = BinaryData.fromObject(model).toObject(ElasticBackupVaultInner.class); - Assertions.assertEquals("jxlyyzglgouwtlm", model.location()); - Assertions.assertEquals("uojqt", model.tags().get("baxk")); - } - - // 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/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultListResultTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultListResultTests.java deleted file mode 100644 index 50f42189c6295..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultListResultTests.java +++ /dev/null @@ -1,21 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.implementation.models.ElasticBackupVaultListResult; -import org.junit.jupiter.api.Assertions; - -public final class ElasticBackupVaultListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticBackupVaultListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\"},\"eTag\":\"kzjv\",\"location\":\"iirhgfgrwsd\",\"tags\":{\"bglbyvict\":\"atzv\"},\"id\":\"tbrxkjz\",\"name\":\"rgxffmshkw\",\"type\":\"bkgozxwopdbydpi\"},{\"properties\":{\"provisioningState\":\"Succeeded\"},\"eTag\":\"napxbiygnug\",\"location\":\"nfsm\",\"tags\":{\"iquvrehm\":\"tuxuuyilflq\",\"ytqj\":\"njhvsujztc\",\"auunfprnjletlx\":\"w\",\"ddoui\":\"mr\"},\"id\":\"amowaziynknlqwzd\",\"name\":\"piwhxqs\",\"type\":\"dtmaa\"}],\"nextLink\":\"uhuxylrjvmtyg\"}") - .toObject(ElasticBackupVaultListResult.class); - Assertions.assertEquals("iirhgfgrwsd", model.value().get(0).location()); - Assertions.assertEquals("atzv", model.value().get(0).tags().get("bglbyvict")); - Assertions.assertEquals("uhuxylrjvmtyg", model.nextLink()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultPropertiesTests.java deleted file mode 100644 index 45a54f96ef10f..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultPropertiesTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticBackupVaultProperties; - -public final class ElasticBackupVaultPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticBackupVaultProperties model = BinaryData.fromString("{\"provisioningState\":\"Creating\"}") - .toObject(ElasticBackupVaultProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticBackupVaultProperties model = new ElasticBackupVaultProperties(); - model = BinaryData.fromObject(model).toObject(ElasticBackupVaultProperties.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultUpdateTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultUpdateTests.java deleted file mode 100644 index bc7809e30e787..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultUpdateTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticBackupVaultUpdate; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ElasticBackupVaultUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticBackupVaultUpdate model = BinaryData.fromString("{\"tags\":{\"qxpxiwfcngjsaa\":\"ngwflqqmpizruwn\"}}") - .toObject(ElasticBackupVaultUpdate.class); - Assertions.assertEquals("ngwflqqmpizruwn", model.tags().get("qxpxiwfcngjsaa")); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticBackupVaultUpdate model - = new ElasticBackupVaultUpdate().withTags(mapOf("qxpxiwfcngjsaa", "ngwflqqmpizruwn")); - model = BinaryData.fromObject(model).toObject(ElasticBackupVaultUpdate.class); - Assertions.assertEquals("ngwflqqmpizruwn", model.tags().get("qxpxiwfcngjsaa")); - } - - // 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/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsCreateOrUpdateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsCreateOrUpdateMockTests.java deleted file mode 100644 index 98894d4fd44ab..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsCreateOrUpdateMockTests.java +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.ElasticBackupVault; -import com.azure.resourcemanager.netapp.models.ElasticBackupVaultProperties; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticBackupVaultsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\"},\"eTag\":\"aombwiinjdl\",\"location\":\"ktl\",\"tags\":{\"kgfcfdruws\":\"wavvqxuajgcqwuly\",\"clhuulriqbyokv\":\"kxx\",\"fyhcdjw\":\"gbzsxebrslt\",\"agttpufpb\":\"uoard\"},\"id\":\"g\",\"name\":\"rholhujbfwxi\",\"type\":\"lkysolsyjp\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - ElasticBackupVault response = manager.elasticBackupVaults() - .define("ixv") - .withRegion("qvzfj") - .withExistingElasticAccount("alapdlndbe", "qb") - .withTags(mapOf("mphfkyezolgjzm", "ugzfeuzjl")) - .withProperties(new ElasticBackupVaultProperties()) - .create(); - - Assertions.assertEquals("ktl", response.location()); - Assertions.assertEquals("wavvqxuajgcqwuly", response.tags().get("kgfcfdruws")); - } - - // 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/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsGetWithResponseMockTests.java deleted file mode 100644 index 45bd768fe3438..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsGetWithResponseMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.ElasticBackupVault; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticBackupVaultsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"provisioningState\":\"Moving\"},\"eTag\":\"cf\",\"location\":\"tga\",\"tags\":{\"aokctgkp\":\"qejg\",\"ixrhl\":\"gkqzkcyzmffngdyf\"},\"id\":\"qvhoej\",\"name\":\"oiutgwrmkahpq\",\"type\":\"azyntacihncogm\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - ElasticBackupVault response = manager.elasticBackupVaults() - .getWithResponse("razwzlpzbt", "uykykipfsd", "epfnoc", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("tga", response.location()); - Assertions.assertEquals("qejg", response.tags().get("aokctgkp")); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsListByElasticAccountMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsListByElasticAccountMockTests.java deleted file mode 100644 index 10ce2e1037eb4..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupVaultsListByElasticAccountMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.ElasticBackupVault; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticBackupVaultsListByElasticAccountMockTests { - @Test - public void testListByElasticAccount() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Accepted\"},\"eTag\":\"eaqgrvgpomxpupd\",\"location\":\"dfj\",\"tags\":{\"py\":\"socwiqbuout\",\"zvdajfwnncf\":\"gleofjsbgbw\",\"jjrlhiqlwix\":\"aciq\"},\"id\":\"tbouguxtnd\",\"name\":\"pg\",\"type\":\"ttbas\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response - = manager.elasticBackupVaults().listByElasticAccount("pnmliq", "v", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("dfj", response.iterator().next().location()); - Assertions.assertEquals("socwiqbuout", response.iterator().next().tags().get("py")); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsCreateOrUpdateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsCreateOrUpdateMockTests.java deleted file mode 100644 index e32f8ca10a058..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsCreateOrUpdateMockTests.java +++ /dev/null @@ -1,49 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.ElasticBackup; -import com.azure.resourcemanager.netapp.models.ElasticBackupProperties; -import com.azure.resourcemanager.netapp.models.SnapshotUsage; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticBackupsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"properties\":{\"creationDate\":\"2021-07-23T02:32:47Z\",\"snapshotCreationDate\":\"2021-04-04T12:40:34Z\",\"completionDate\":\"2020-12-31T02:30:57Z\",\"provisioningState\":\"Succeeded\",\"size\":4835897365917994795,\"label\":\"ygxvha\",\"backupType\":\"Manual\",\"failureReason\":\"cxq\",\"elasticVolumeResourceId\":\"whscozawmv\",\"snapshotUsage\":\"UseExistingSnapshot\",\"elasticSnapshotResourceId\":\"pknpwirfljfewxq\",\"elasticBackupPolicyResourceId\":\"oxudnmckap\",\"volumeSize\":\"Large\"},\"id\":\"qiijgenc\",\"name\":\"g\",\"type\":\"oqueqihkkyowltj\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - ElasticBackup response = manager.elasticBackups() - .define("qfqqdlcvmyolc") - .withExistingElasticBackupVault("dmdlgyqixokw", "jawh", "ag") - .withProperties(new ElasticBackupProperties().withLabel("dnzyzawatuwqko") - .withElasticVolumeResourceId("msn") - .withSnapshotUsage(SnapshotUsage.CREATE_NEW_SNAPSHOT) - .withElasticSnapshotResourceId("maanea")) - .create(); - - Assertions.assertEquals("ygxvha", response.properties().label()); - Assertions.assertEquals("whscozawmv", response.properties().elasticVolumeResourceId()); - Assertions.assertEquals(SnapshotUsage.USE_EXISTING_SNAPSHOT, response.properties().snapshotUsage()); - Assertions.assertEquals("pknpwirfljfewxq", response.properties().elasticSnapshotResourceId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsGetWithResponseMockTests.java deleted file mode 100644 index 4159cf803c55e..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsGetWithResponseMockTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.ElasticBackup; -import com.azure.resourcemanager.netapp.models.SnapshotUsage; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticBackupsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"creationDate\":\"2021-05-23T11:53:18Z\",\"snapshotCreationDate\":\"2021-04-22T18:10:53Z\",\"completionDate\":\"2021-02-26T23:50:28Z\",\"provisioningState\":\"Accepted\",\"size\":5435334654274462675,\"label\":\"uhznwhvuldbk\",\"backupType\":\"Manual\",\"failureReason\":\"kj\",\"elasticVolumeResourceId\":\"gawgazmxjqi\",\"snapshotUsage\":\"UseExistingSnapshot\",\"elasticSnapshotResourceId\":\"jsbcml\",\"elasticBackupPolicyResourceId\":\"ahz\",\"volumeSize\":\"Regular\"},\"id\":\"oolkolirhhm\",\"name\":\"jusuzgfjzc\",\"type\":\"aaxoialahfxwcc\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - ElasticBackup response = manager.elasticBackups() - .getWithResponse("matrnzpducd", "akt", "jktzboimyfpq", "owkppnwyytf", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("uhznwhvuldbk", response.properties().label()); - Assertions.assertEquals("gawgazmxjqi", response.properties().elasticVolumeResourceId()); - Assertions.assertEquals(SnapshotUsage.USE_EXISTING_SNAPSHOT, response.properties().snapshotUsage()); - Assertions.assertEquals("jsbcml", response.properties().elasticSnapshotResourceId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsListByVaultMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsListByVaultMockTests.java deleted file mode 100644 index c6a93d50dfd4b..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticBackupsListByVaultMockTests.java +++ /dev/null @@ -1,44 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.ElasticBackup; -import com.azure.resourcemanager.netapp.models.SnapshotUsage; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticBackupsListByVaultMockTests { - @Test - public void testListByVault() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"creationDate\":\"2021-05-26T18:48:04Z\",\"snapshotCreationDate\":\"2021-07-13T10:24:08Z\",\"completionDate\":\"2020-12-23T19:05:54Z\",\"provisioningState\":\"Failed\",\"size\":1108455514030548539,\"label\":\"nkgzukwdr\",\"backupType\":\"Manual\",\"failureReason\":\"thfceyjncj\",\"elasticVolumeResourceId\":\"lfuyfjbpfiddhlr\",\"snapshotUsage\":\"UseExistingSnapshot\",\"elasticSnapshotResourceId\":\"qyjmqrfuioc\",\"elasticBackupPolicyResourceId\":\"el\",\"volumeSize\":\"Regular\"},\"id\":\"azrhxudd\",\"name\":\"mdtff\",\"type\":\"sjmrkkhm\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response - = manager.elasticBackups().listByVault("kdxkuk", "kczynuhhoqeqsh", "vl", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("nkgzukwdr", response.iterator().next().properties().label()); - Assertions.assertEquals("lfuyfjbpfiddhlr", response.iterator().next().properties().elasticVolumeResourceId()); - Assertions.assertEquals(SnapshotUsage.USE_EXISTING_SNAPSHOT, - response.iterator().next().properties().snapshotUsage()); - Assertions.assertEquals("qyjmqrfuioc", response.iterator().next().properties().elasticSnapshotResourceId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsCheckVolumeFilePathAvailabilityWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsCheckVolumeFilePathAvailabilityWithResponseMockTests.java deleted file mode 100644 index c1679e8d8302d..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticCapacityPoolsCheckVolumeFilePathAvailabilityWithResponseMockTests.java +++ /dev/null @@ -1,45 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.CheckElasticResourceAvailabilityReason; -import com.azure.resourcemanager.netapp.models.CheckElasticResourceAvailabilityResponse; -import com.azure.resourcemanager.netapp.models.CheckElasticResourceAvailabilityStatus; -import com.azure.resourcemanager.netapp.models.CheckElasticVolumeFilePathAvailabilityRequest; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticCapacityPoolsCheckVolumeFilePathAvailabilityWithResponseMockTests { - @Test - public void testCheckVolumeFilePathAvailabilityWithResponse() throws Exception { - String responseStr = "{\"isAvailable\":\"True\",\"reason\":\"Invalid\",\"message\":\"flecominxojjl\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - CheckElasticResourceAvailabilityResponse response = manager.elasticCapacityPools() - .checkVolumeFilePathAvailabilityWithResponse("bdl", "zgdyrcvuqbs", "zlrqhbjnqogdx", - new CheckElasticVolumeFilePathAvailabilityRequest().withFilePath("bsfp"), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals(CheckElasticResourceAvailabilityStatus.TRUE, response.isAvailable()); - Assertions.assertEquals(CheckElasticResourceAvailabilityReason.INVALID, response.reason()); - Assertions.assertEquals("flecominxojjl", response.message()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticEncryptionIdentityTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticEncryptionIdentityTests.java deleted file mode 100644 index 2a311691414a2..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticEncryptionIdentityTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticEncryptionIdentity; -import org.junit.jupiter.api.Assertions; - -public final class ElasticEncryptionIdentityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticEncryptionIdentity model = BinaryData - .fromString("{\"principalId\":\"zqadf\",\"userAssignedIdentity\":\"z\",\"federatedClientId\":\"iglaecx\"}") - .toObject(ElasticEncryptionIdentity.class); - Assertions.assertEquals("z", model.userAssignedIdentity()); - Assertions.assertEquals("iglaecx", model.federatedClientId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticEncryptionIdentity model - = new ElasticEncryptionIdentity().withUserAssignedIdentity("z").withFederatedClientId("iglaecx"); - model = BinaryData.fromObject(model).toObject(ElasticEncryptionIdentity.class); - Assertions.assertEquals("z", model.userAssignedIdentity()); - Assertions.assertEquals("iglaecx", model.federatedClientId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticExportPolicyRuleTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticExportPolicyRuleTests.java deleted file mode 100644 index fbc4ad97d067b..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticExportPolicyRuleTests.java +++ /dev/null @@ -1,46 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticExportPolicyRule; -import com.azure.resourcemanager.netapp.models.ElasticNfsv3Access; -import com.azure.resourcemanager.netapp.models.ElasticNfsv4Access; -import com.azure.resourcemanager.netapp.models.ElasticRootAccess; -import com.azure.resourcemanager.netapp.models.ElasticUnixAccessRule; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ElasticExportPolicyRuleTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticExportPolicyRule model = BinaryData.fromString( - "{\"ruleIndex\":307378678,\"unixAccessRule\":\"NoAccess\",\"nfsv3\":\"Enabled\",\"nfsv4\":\"Disabled\",\"allowedClients\":[\"hfbousnfepgfew\",\"twly\"],\"rootAccess\":\"Disabled\"}") - .toObject(ElasticExportPolicyRule.class); - Assertions.assertEquals(307378678, model.ruleIndex()); - Assertions.assertEquals(ElasticUnixAccessRule.NO_ACCESS, model.unixAccessRule()); - Assertions.assertEquals(ElasticNfsv3Access.ENABLED, model.nfsv3()); - Assertions.assertEquals(ElasticNfsv4Access.DISABLED, model.nfsv4()); - Assertions.assertEquals("hfbousnfepgfew", model.allowedClients().get(0)); - Assertions.assertEquals(ElasticRootAccess.DISABLED, model.rootAccess()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticExportPolicyRule model = new ElasticExportPolicyRule().withRuleIndex(307378678) - .withUnixAccessRule(ElasticUnixAccessRule.NO_ACCESS) - .withNfsv3(ElasticNfsv3Access.ENABLED) - .withNfsv4(ElasticNfsv4Access.DISABLED) - .withAllowedClients(Arrays.asList("hfbousnfepgfew", "twly")) - .withRootAccess(ElasticRootAccess.DISABLED); - model = BinaryData.fromObject(model).toObject(ElasticExportPolicyRule.class); - Assertions.assertEquals(307378678, model.ruleIndex()); - Assertions.assertEquals(ElasticUnixAccessRule.NO_ACCESS, model.unixAccessRule()); - Assertions.assertEquals(ElasticNfsv3Access.ENABLED, model.nfsv3()); - Assertions.assertEquals(ElasticNfsv4Access.DISABLED, model.nfsv4()); - Assertions.assertEquals("hfbousnfepgfew", model.allowedClients().get(0)); - Assertions.assertEquals(ElasticRootAccess.DISABLED, model.rootAccess()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticExportPolicyTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticExportPolicyTests.java deleted file mode 100644 index 78551545c1aea..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticExportPolicyTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticExportPolicy; -import com.azure.resourcemanager.netapp.models.ElasticExportPolicyRule; -import com.azure.resourcemanager.netapp.models.ElasticNfsv3Access; -import com.azure.resourcemanager.netapp.models.ElasticNfsv4Access; -import com.azure.resourcemanager.netapp.models.ElasticRootAccess; -import com.azure.resourcemanager.netapp.models.ElasticUnixAccessRule; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ElasticExportPolicyTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticExportPolicy model = BinaryData.fromString( - "{\"rules\":[{\"ruleIndex\":2060151419,\"unixAccessRule\":\"NoAccess\",\"nfsv3\":\"Enabled\",\"nfsv4\":\"Enabled\",\"allowedClients\":[\"oaimlnw\",\"aaomylweazu\",\"cse\",\"hwwn\"],\"rootAccess\":\"Enabled\"}]}") - .toObject(ElasticExportPolicy.class); - Assertions.assertEquals(2060151419, model.rules().get(0).ruleIndex()); - Assertions.assertEquals(ElasticUnixAccessRule.NO_ACCESS, model.rules().get(0).unixAccessRule()); - Assertions.assertEquals(ElasticNfsv3Access.ENABLED, model.rules().get(0).nfsv3()); - Assertions.assertEquals(ElasticNfsv4Access.ENABLED, model.rules().get(0).nfsv4()); - Assertions.assertEquals("oaimlnw", model.rules().get(0).allowedClients().get(0)); - Assertions.assertEquals(ElasticRootAccess.ENABLED, model.rules().get(0).rootAccess()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticExportPolicy model - = new ElasticExportPolicy().withRules(Arrays.asList(new ElasticExportPolicyRule().withRuleIndex(2060151419) - .withUnixAccessRule(ElasticUnixAccessRule.NO_ACCESS) - .withNfsv3(ElasticNfsv3Access.ENABLED) - .withNfsv4(ElasticNfsv4Access.ENABLED) - .withAllowedClients(Arrays.asList("oaimlnw", "aaomylweazu", "cse", "hwwn")) - .withRootAccess(ElasticRootAccess.ENABLED))); - model = BinaryData.fromObject(model).toObject(ElasticExportPolicy.class); - Assertions.assertEquals(2060151419, model.rules().get(0).ruleIndex()); - Assertions.assertEquals(ElasticUnixAccessRule.NO_ACCESS, model.rules().get(0).unixAccessRule()); - Assertions.assertEquals(ElasticNfsv3Access.ENABLED, model.rules().get(0).nfsv3()); - Assertions.assertEquals(ElasticNfsv4Access.ENABLED, model.rules().get(0).nfsv4()); - Assertions.assertEquals("oaimlnw", model.rules().get(0).allowedClients().get(0)); - Assertions.assertEquals(ElasticRootAccess.ENABLED, model.rules().get(0).rootAccess()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticMountTargetPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticMountTargetPropertiesTests.java deleted file mode 100644 index a1def875f06c3..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticMountTargetPropertiesTests.java +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticMountTargetProperties; - -public final class ElasticMountTargetPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticMountTargetProperties model - = BinaryData.fromString("{\"ipAddress\":\"xykxhdj\",\"smbServerFqdn\":\"immbcx\"}") - .toObject(ElasticMountTargetProperties.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSmbPatchPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSmbPatchPropertiesTests.java deleted file mode 100644 index 830a6943d91f5..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSmbPatchPropertiesTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticSmbEncryption; -import com.azure.resourcemanager.netapp.models.ElasticSmbPatchProperties; -import org.junit.jupiter.api.Assertions; - -public final class ElasticSmbPatchPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticSmbPatchProperties model - = BinaryData.fromString("{\"smbEncryption\":\"Disabled\"}").toObject(ElasticSmbPatchProperties.class); - Assertions.assertEquals(ElasticSmbEncryption.DISABLED, model.smbEncryption()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticSmbPatchProperties model - = new ElasticSmbPatchProperties().withSmbEncryption(ElasticSmbEncryption.DISABLED); - model = BinaryData.fromObject(model).toObject(ElasticSmbPatchProperties.class); - Assertions.assertEquals(ElasticSmbEncryption.DISABLED, model.smbEncryption()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSmbPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSmbPropertiesTests.java deleted file mode 100644 index d5aad72609b48..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSmbPropertiesTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticSmbEncryption; -import com.azure.resourcemanager.netapp.models.ElasticSmbProperties; -import org.junit.jupiter.api.Assertions; - -public final class ElasticSmbPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticSmbProperties model - = BinaryData.fromString("{\"smbEncryption\":\"Disabled\"}").toObject(ElasticSmbProperties.class); - Assertions.assertEquals(ElasticSmbEncryption.DISABLED, model.smbEncryption()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticSmbProperties model = new ElasticSmbProperties().withSmbEncryption(ElasticSmbEncryption.DISABLED); - model = BinaryData.fromObject(model).toObject(ElasticSmbProperties.class); - Assertions.assertEquals(ElasticSmbEncryption.DISABLED, model.smbEncryption()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotInnerTests.java deleted file mode 100644 index fc97fedc3dc84..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotInnerTests.java +++ /dev/null @@ -1,24 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.ElasticSnapshotInner; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotProperties; - -public final class ElasticSnapshotInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticSnapshotInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Succeeded\"},\"id\":\"eyzihgrky\",\"name\":\"i\",\"type\":\"absnmfpp\"}") - .toObject(ElasticSnapshotInner.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticSnapshotInner model = new ElasticSnapshotInner().withProperties(new ElasticSnapshotProperties()); - model = BinaryData.fromObject(model).toObject(ElasticSnapshotInner.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotListResultTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotListResultTests.java deleted file mode 100644 index 704a856e588c7..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotListResultTests.java +++ /dev/null @@ -1,19 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.implementation.models.ElasticSnapshotListResult; -import org.junit.jupiter.api.Assertions; - -public final class ElasticSnapshotListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticSnapshotListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Moving\"},\"id\":\"yhsgz\",\"name\":\"czbgomfgbeg\",\"type\":\"qgleohibetnluank\"}],\"nextLink\":\"fxeeebtijvacvbm\"}") - .toObject(ElasticSnapshotListResult.class); - Assertions.assertEquals("fxeeebtijvacvbm", model.nextLink()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesCreateOrUpdateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesCreateOrUpdateMockTests.java deleted file mode 100644 index cd99711292ebe..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesCreateOrUpdateMockTests.java +++ /dev/null @@ -1,95 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.DayOfWeek; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicy; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyDailySchedule; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyHourlySchedule; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyMonthlySchedule; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyProperties; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyWeeklySchedule; -import com.azure.resourcemanager.netapp.models.PolicyStatus; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticSnapshotPoliciesCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1504490636,\"minute\":604993754},\"dailySchedule\":{\"snapshotsToKeep\":20698732,\"hour\":921325580,\"minute\":1742146388},\"weeklySchedule\":{\"snapshotsToKeep\":212226572,\"days\":[\"Wednesday\"],\"hour\":284068421,\"minute\":1026580150},\"monthlySchedule\":{\"snapshotsToKeep\":1127791368,\"daysOfMonth\":[720846419,981924301,841837065],\"hour\":1820498592,\"minute\":274775952},\"policyStatus\":\"Disabled\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"mlccmetjscz\",\"location\":\"fqbqnasd\",\"tags\":{\"vdgxly\":\"nzsieuscplh\"},\"id\":\"kxitds\",\"name\":\"ezsvkolrupjov\",\"type\":\"ozsaye\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - ElasticSnapshotPolicy response = manager.elasticSnapshotPolicies() - .define("w") - .withRegion("soohutxlcsklte") - .withExistingElasticAccount("vdpwwobtdphti", "sffofwanmhksca") - .withTags(mapOf("lfb", "ggg", "srtmdylperpiltt", "rdcgu", "resrgvtshuvft", "zgczfcmfpfbode", - "muqkevzgjypanhx", "ai")) - .withProperties(new ElasticSnapshotPolicyProperties() - .withHourlySchedule( - new ElasticSnapshotPolicyHourlySchedule().withSnapshotsToKeep(1334343181).withMinute(40629246)) - .withDailySchedule(new ElasticSnapshotPolicyDailySchedule().withSnapshotsToKeep(1322828589) - .withHour(261934076) - .withMinute(2136673139)) - .withWeeklySchedule(new ElasticSnapshotPolicyWeeklySchedule().withSnapshotsToKeep(1769252552) - .withDays(Arrays.asList(DayOfWeek.MONDAY, DayOfWeek.MONDAY, DayOfWeek.WEDNESDAY, DayOfWeek.MONDAY)) - .withHour(790516190) - .withMinute(178671705)) - .withMonthlySchedule(new ElasticSnapshotPolicyMonthlySchedule().withSnapshotsToKeep(1072563089) - .withDaysOfMonth(Arrays.asList(1896404054)) - .withHour(1333249965) - .withMinute(1738351440)) - .withPolicyStatus(PolicyStatus.ENABLED)) - .create(); - - Assertions.assertEquals("fqbqnasd", response.location()); - Assertions.assertEquals("nzsieuscplh", response.tags().get("vdgxly")); - Assertions.assertEquals(1504490636, response.properties().hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(604993754, response.properties().hourlySchedule().minute()); - Assertions.assertEquals(20698732, response.properties().dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(921325580, response.properties().dailySchedule().hour()); - Assertions.assertEquals(1742146388, response.properties().dailySchedule().minute()); - Assertions.assertEquals(212226572, response.properties().weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals(DayOfWeek.WEDNESDAY, response.properties().weeklySchedule().days().get(0)); - Assertions.assertEquals(284068421, response.properties().weeklySchedule().hour()); - Assertions.assertEquals(1026580150, response.properties().weeklySchedule().minute()); - Assertions.assertEquals(1127791368, response.properties().monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals(720846419, response.properties().monthlySchedule().daysOfMonth().get(0)); - Assertions.assertEquals(1820498592, response.properties().monthlySchedule().hour()); - Assertions.assertEquals(274775952, response.properties().monthlySchedule().minute()); - Assertions.assertEquals(PolicyStatus.DISABLED, response.properties().policyStatus()); - } - - // 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/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesGetWithResponseMockTests.java deleted file mode 100644 index a8e03966408b8..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesGetWithResponseMockTests.java +++ /dev/null @@ -1,56 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.DayOfWeek; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicy; -import com.azure.resourcemanager.netapp.models.PolicyStatus; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticSnapshotPoliciesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":157710243,\"minute\":510414299},\"dailySchedule\":{\"snapshotsToKeep\":1490724435,\"hour\":861438766,\"minute\":740083660},\"weeklySchedule\":{\"snapshotsToKeep\":1329042658,\"days\":[\"Wednesday\",\"Thursday\",\"Tuesday\"],\"hour\":886562524,\"minute\":1757022788},\"monthlySchedule\":{\"snapshotsToKeep\":1940675746,\"daysOfMonth\":[216422946],\"hour\":574077072,\"minute\":2140503117},\"policyStatus\":\"Disabled\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"kb\",\"location\":\"mmgmqf\",\"tags\":{\"quxweyslandkd\":\"gvqcpdwj\",\"nquoxsotireimse\":\"djhunhghcgawnr\"},\"id\":\"bfsx\",\"name\":\"tcyilbvz\",\"type\":\"mxcjzlquzexokjx\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - ElasticSnapshotPolicy response = manager.elasticSnapshotPolicies() - .getWithResponse("uairaabmdlqjb", "dp", "ixlhupm", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("mmgmqf", response.location()); - Assertions.assertEquals("gvqcpdwj", response.tags().get("quxweyslandkd")); - Assertions.assertEquals(157710243, response.properties().hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(510414299, response.properties().hourlySchedule().minute()); - Assertions.assertEquals(1490724435, response.properties().dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(861438766, response.properties().dailySchedule().hour()); - Assertions.assertEquals(740083660, response.properties().dailySchedule().minute()); - Assertions.assertEquals(1329042658, response.properties().weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals(DayOfWeek.WEDNESDAY, response.properties().weeklySchedule().days().get(0)); - Assertions.assertEquals(886562524, response.properties().weeklySchedule().hour()); - Assertions.assertEquals(1757022788, response.properties().weeklySchedule().minute()); - Assertions.assertEquals(1940675746, response.properties().monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals(216422946, response.properties().monthlySchedule().daysOfMonth().get(0)); - Assertions.assertEquals(574077072, response.properties().monthlySchedule().hour()); - Assertions.assertEquals(2140503117, response.properties().monthlySchedule().minute()); - Assertions.assertEquals(PolicyStatus.DISABLED, response.properties().policyStatus()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesListByElasticAccountMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesListByElasticAccountMockTests.java deleted file mode 100644 index 61f61bc9018bd..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesListByElasticAccountMockTests.java +++ /dev/null @@ -1,59 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.DayOfWeek; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicy; -import com.azure.resourcemanager.netapp.models.PolicyStatus; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticSnapshotPoliciesListByElasticAccountMockTests { - @Test - public void testListByElasticAccount() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":387760911,\"minute\":669479528},\"dailySchedule\":{\"snapshotsToKeep\":1450032317,\"hour\":2139767173,\"minute\":316800252},\"weeklySchedule\":{\"snapshotsToKeep\":1300353346,\"days\":[\"Saturday\"],\"hour\":1532369371,\"minute\":888546688},\"monthlySchedule\":{\"snapshotsToKeep\":1019863501,\"daysOfMonth\":[1215780287,801948793,1859885382],\"hour\":1595592389,\"minute\":1288755704},\"policyStatus\":\"Enabled\",\"provisioningState\":\"Succeeded\"},\"eTag\":\"dt\",\"location\":\"qnacyheq\",\"tags\":{\"cjubkhjozfymcwm\":\"qq\",\"ipsejbsvsia\":\"upyvqyvliq\"},\"id\":\"eswhd\",\"name\":\"zydisnuep\",\"type\":\"wyj\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response = manager.elasticSnapshotPolicies() - .listByElasticAccount("bjvbzinzab", "mvoglj", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("qnacyheq", response.iterator().next().location()); - Assertions.assertEquals("qq", response.iterator().next().tags().get("cjubkhjozfymcwm")); - Assertions.assertEquals(387760911, response.iterator().next().properties().hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(669479528, response.iterator().next().properties().hourlySchedule().minute()); - Assertions.assertEquals(1450032317, response.iterator().next().properties().dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(2139767173, response.iterator().next().properties().dailySchedule().hour()); - Assertions.assertEquals(316800252, response.iterator().next().properties().dailySchedule().minute()); - Assertions.assertEquals(1300353346, response.iterator().next().properties().weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals(DayOfWeek.SATURDAY, - response.iterator().next().properties().weeklySchedule().days().get(0)); - Assertions.assertEquals(1532369371, response.iterator().next().properties().weeklySchedule().hour()); - Assertions.assertEquals(888546688, response.iterator().next().properties().weeklySchedule().minute()); - Assertions.assertEquals(1019863501, - response.iterator().next().properties().monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1215780287, - response.iterator().next().properties().monthlySchedule().daysOfMonth().get(0)); - Assertions.assertEquals(1595592389, response.iterator().next().properties().monthlySchedule().hour()); - Assertions.assertEquals(1288755704, response.iterator().next().properties().monthlySchedule().minute()); - Assertions.assertEquals(PolicyStatus.ENABLED, response.iterator().next().properties().policyStatus()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesListElasticVolumesMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesListElasticVolumesMockTests.java deleted file mode 100644 index 5eb8e5f625881..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPoliciesListElasticVolumesMockTests.java +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.ElasticNfsv3Access; -import com.azure.resourcemanager.netapp.models.ElasticNfsv4Access; -import com.azure.resourcemanager.netapp.models.ElasticProtocolType; -import com.azure.resourcemanager.netapp.models.ElasticRootAccess; -import com.azure.resourcemanager.netapp.models.ElasticSmbEncryption; -import com.azure.resourcemanager.netapp.models.ElasticUnixAccessRule; -import com.azure.resourcemanager.netapp.models.ElasticVolume; -import com.azure.resourcemanager.netapp.models.ElasticVolumePolicyEnforcement; -import com.azure.resourcemanager.netapp.models.SnapshotDirectoryVisibility; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticSnapshotPoliciesListElasticVolumesMockTests { - @Test - public void testListElasticVolumes() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"filePath\":\"hweebiph\",\"size\":1724186784361546665,\"exportPolicy\":{\"rules\":[{\"ruleIndex\":19135096,\"unixAccessRule\":\"ReadOnly\",\"nfsv3\":\"Disabled\",\"nfsv4\":\"Enabled\",\"allowedClients\":[\"dhzybsp\",\"jhfrzgdkkagv\",\"ukhsusmmorf\",\"zhwilzzh\"],\"rootAccess\":\"Disabled\"},{\"ruleIndex\":807191945,\"unixAccessRule\":\"ReadWrite\",\"nfsv3\":\"Enabled\",\"nfsv4\":\"Enabled\",\"allowedClients\":[\"yttlrcxiv\",\"bkut\",\"umltwjflu\"],\"rootAccess\":\"Enabled\"},{\"ruleIndex\":1341986183,\"unixAccessRule\":\"NoAccess\",\"nfsv3\":\"Disabled\",\"nfsv4\":\"Enabled\",\"allowedClients\":[\"y\"],\"rootAccess\":\"Disabled\"},{\"ruleIndex\":1981330264,\"unixAccessRule\":\"ReadWrite\",\"nfsv3\":\"Enabled\",\"nfsv4\":\"Disabled\",\"allowedClients\":[\"gouarhwvixqq\",\"gljkybsj\"],\"rootAccess\":\"Enabled\"}]},\"protocolTypes\":[\"SMB\"],\"provisioningState\":\"Accepted\",\"availabilityStatus\":\"Offline\",\"snapshotResourceId\":\"bctbhp\",\"mountTargets\":[{\"ipAddress\":\"cvrdnyeitaneqady\",\"smbServerFqdn\":\"jahwriuomzczf\"}],\"dataProtection\":{\"snapshot\":{\"snapshotPolicyResourceId\":\"evsaa\"},\"backup\":{\"elasticBackupPolicyResourceId\":\"p\",\"policyEnforcement\":\"Enforced\",\"elasticBackupVaultResourceId\":\"khfjqebglcxkx\"}},\"snapshotDirectoryVisibility\":\"Visible\",\"smbProperties\":{\"smbEncryption\":\"Enabled\"},\"backupResourceId\":\"ygysemtme\",\"restorationState\":\"Failed\"},\"eTag\":\"vpinkzpatqt\",\"zones\":[\"wxspvckojaz\",\"bgspf\",\"esubzpvpv\"],\"location\":\"lyt\",\"tags\":{\"lbmuos\":\"qseusrfjbdxzfxnx\",\"zlwhbwzjnufzrfgm\":\"kjmdihdcyy\"},\"id\":\"qgnnbz\",\"name\":\"tftedz\",\"type\":\"ubjtvgjsxmtyjjv\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response = manager.elasticSnapshotPolicies() - .listElasticVolumes("nldpxottd", "i", "ocqibz", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("lyt", response.iterator().next().location()); - Assertions.assertEquals("qseusrfjbdxzfxnx", response.iterator().next().tags().get("lbmuos")); - Assertions.assertEquals("hweebiph", response.iterator().next().properties().filePath()); - Assertions.assertEquals(1724186784361546665L, response.iterator().next().properties().size()); - Assertions.assertEquals(19135096, - response.iterator().next().properties().exportPolicy().rules().get(0).ruleIndex()); - Assertions.assertEquals(ElasticUnixAccessRule.READ_ONLY, - response.iterator().next().properties().exportPolicy().rules().get(0).unixAccessRule()); - Assertions.assertEquals(ElasticNfsv3Access.DISABLED, - response.iterator().next().properties().exportPolicy().rules().get(0).nfsv3()); - Assertions.assertEquals(ElasticNfsv4Access.ENABLED, - response.iterator().next().properties().exportPolicy().rules().get(0).nfsv4()); - Assertions.assertEquals("dhzybsp", - response.iterator().next().properties().exportPolicy().rules().get(0).allowedClients().get(0)); - Assertions.assertEquals(ElasticRootAccess.DISABLED, - response.iterator().next().properties().exportPolicy().rules().get(0).rootAccess()); - Assertions.assertEquals(ElasticProtocolType.SMB, - response.iterator().next().properties().protocolTypes().get(0)); - Assertions.assertEquals("bctbhp", response.iterator().next().properties().snapshotResourceId()); - Assertions.assertEquals("evsaa", - response.iterator().next().properties().dataProtection().snapshot().snapshotPolicyResourceId()); - Assertions.assertEquals("p", - response.iterator().next().properties().dataProtection().backup().elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.ENFORCED, - response.iterator().next().properties().dataProtection().backup().policyEnforcement()); - Assertions.assertEquals("khfjqebglcxkx", - response.iterator().next().properties().dataProtection().backup().elasticBackupVaultResourceId()); - Assertions.assertEquals(SnapshotDirectoryVisibility.VISIBLE, - response.iterator().next().properties().snapshotDirectoryVisibility()); - Assertions.assertEquals(ElasticSmbEncryption.ENABLED, - response.iterator().next().properties().smbProperties().smbEncryption()); - Assertions.assertEquals("ygysemtme", response.iterator().next().properties().backupResourceId()); - Assertions.assertEquals("wxspvckojaz", response.iterator().next().zones().get(0)); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyDailyScheduleTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyDailyScheduleTests.java deleted file mode 100644 index 3f1b6e8ec2e64..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyDailyScheduleTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyDailySchedule; -import org.junit.jupiter.api.Assertions; - -public final class ElasticSnapshotPolicyDailyScheduleTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticSnapshotPolicyDailySchedule model - = BinaryData.fromString("{\"snapshotsToKeep\":195751887,\"hour\":351038276,\"minute\":1244387227}") - .toObject(ElasticSnapshotPolicyDailySchedule.class); - Assertions.assertEquals(195751887, model.snapshotsToKeep()); - Assertions.assertEquals(351038276, model.hour()); - Assertions.assertEquals(1244387227, model.minute()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticSnapshotPolicyDailySchedule model - = new ElasticSnapshotPolicyDailySchedule().withSnapshotsToKeep(195751887) - .withHour(351038276) - .withMinute(1244387227); - model = BinaryData.fromObject(model).toObject(ElasticSnapshotPolicyDailySchedule.class); - Assertions.assertEquals(195751887, model.snapshotsToKeep()); - Assertions.assertEquals(351038276, model.hour()); - Assertions.assertEquals(1244387227, model.minute()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyHourlyScheduleTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyHourlyScheduleTests.java deleted file mode 100644 index 786a7777dd9f7..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyHourlyScheduleTests.java +++ /dev/null @@ -1,29 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyHourlySchedule; -import org.junit.jupiter.api.Assertions; - -public final class ElasticSnapshotPolicyHourlyScheduleTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticSnapshotPolicyHourlySchedule model - = BinaryData.fromString("{\"snapshotsToKeep\":1679181375,\"minute\":284348485}") - .toObject(ElasticSnapshotPolicyHourlySchedule.class); - Assertions.assertEquals(1679181375, model.snapshotsToKeep()); - Assertions.assertEquals(284348485, model.minute()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticSnapshotPolicyHourlySchedule model - = new ElasticSnapshotPolicyHourlySchedule().withSnapshotsToKeep(1679181375).withMinute(284348485); - model = BinaryData.fromObject(model).toObject(ElasticSnapshotPolicyHourlySchedule.class); - Assertions.assertEquals(1679181375, model.snapshotsToKeep()); - Assertions.assertEquals(284348485, model.minute()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyInnerTests.java deleted file mode 100644 index d9cbbed7f6cdb..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyInnerTests.java +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.ElasticSnapshotPolicyInner; -import com.azure.resourcemanager.netapp.models.DayOfWeek; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyDailySchedule; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyHourlySchedule; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyMonthlySchedule; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyProperties; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyWeeklySchedule; -import com.azure.resourcemanager.netapp.models.PolicyStatus; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ElasticSnapshotPolicyInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticSnapshotPolicyInner model = BinaryData.fromString( - "{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":32108213,\"minute\":1374420811},\"dailySchedule\":{\"snapshotsToKeep\":2093325150,\"hour\":99469711,\"minute\":799727678},\"weeklySchedule\":{\"snapshotsToKeep\":648300753,\"days\":[\"Tuesday\"],\"hour\":1432643181,\"minute\":1322140273},\"monthlySchedule\":{\"snapshotsToKeep\":1175028140,\"daysOfMonth\":[1859068640,1682333045,517079921],\"hour\":955736847,\"minute\":543934665},\"policyStatus\":\"Enabled\",\"provisioningState\":\"Accepted\"},\"eTag\":\"fgvxirpghriypoqe\",\"location\":\"lqhykprlpyz\",\"tags\":{\"smexiitdf\":\"iq\",\"nustgnljh\":\"xtyasiibmiyb\"},\"id\":\"mgixhcmavmqfou\",\"name\":\"or\",\"type\":\"cgyypro\"}") - .toObject(ElasticSnapshotPolicyInner.class); - Assertions.assertEquals("lqhykprlpyz", model.location()); - Assertions.assertEquals("iq", model.tags().get("smexiitdf")); - Assertions.assertEquals(32108213, model.properties().hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1374420811, model.properties().hourlySchedule().minute()); - Assertions.assertEquals(2093325150, model.properties().dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(99469711, model.properties().dailySchedule().hour()); - Assertions.assertEquals(799727678, model.properties().dailySchedule().minute()); - Assertions.assertEquals(648300753, model.properties().weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals(DayOfWeek.TUESDAY, model.properties().weeklySchedule().days().get(0)); - Assertions.assertEquals(1432643181, model.properties().weeklySchedule().hour()); - Assertions.assertEquals(1322140273, model.properties().weeklySchedule().minute()); - Assertions.assertEquals(1175028140, model.properties().monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1859068640, model.properties().monthlySchedule().daysOfMonth().get(0)); - Assertions.assertEquals(955736847, model.properties().monthlySchedule().hour()); - Assertions.assertEquals(543934665, model.properties().monthlySchedule().minute()); - Assertions.assertEquals(PolicyStatus.ENABLED, model.properties().policyStatus()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticSnapshotPolicyInner model = new ElasticSnapshotPolicyInner().withLocation("lqhykprlpyz") - .withTags(mapOf("smexiitdf", "iq", "nustgnljh", "xtyasiibmiyb")) - .withProperties(new ElasticSnapshotPolicyProperties() - .withHourlySchedule( - new ElasticSnapshotPolicyHourlySchedule().withSnapshotsToKeep(32108213).withMinute(1374420811)) - .withDailySchedule(new ElasticSnapshotPolicyDailySchedule().withSnapshotsToKeep(2093325150) - .withHour(99469711) - .withMinute(799727678)) - .withWeeklySchedule(new ElasticSnapshotPolicyWeeklySchedule().withSnapshotsToKeep(648300753) - .withDays(Arrays.asList(DayOfWeek.TUESDAY)) - .withHour(1432643181) - .withMinute(1322140273)) - .withMonthlySchedule(new ElasticSnapshotPolicyMonthlySchedule().withSnapshotsToKeep(1175028140) - .withDaysOfMonth(Arrays.asList(1859068640, 1682333045, 517079921)) - .withHour(955736847) - .withMinute(543934665)) - .withPolicyStatus(PolicyStatus.ENABLED)); - model = BinaryData.fromObject(model).toObject(ElasticSnapshotPolicyInner.class); - Assertions.assertEquals("lqhykprlpyz", model.location()); - Assertions.assertEquals("iq", model.tags().get("smexiitdf")); - Assertions.assertEquals(32108213, model.properties().hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1374420811, model.properties().hourlySchedule().minute()); - Assertions.assertEquals(2093325150, model.properties().dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(99469711, model.properties().dailySchedule().hour()); - Assertions.assertEquals(799727678, model.properties().dailySchedule().minute()); - Assertions.assertEquals(648300753, model.properties().weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals(DayOfWeek.TUESDAY, model.properties().weeklySchedule().days().get(0)); - Assertions.assertEquals(1432643181, model.properties().weeklySchedule().hour()); - Assertions.assertEquals(1322140273, model.properties().weeklySchedule().minute()); - Assertions.assertEquals(1175028140, model.properties().monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1859068640, model.properties().monthlySchedule().daysOfMonth().get(0)); - Assertions.assertEquals(955736847, model.properties().monthlySchedule().hour()); - Assertions.assertEquals(543934665, model.properties().monthlySchedule().minute()); - Assertions.assertEquals(PolicyStatus.ENABLED, model.properties().policyStatus()); - } - - // 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/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyListResultTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyListResultTests.java deleted file mode 100644 index 4204c4bbc0558..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyListResultTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.implementation.models.ElasticSnapshotPolicyListResult; -import com.azure.resourcemanager.netapp.models.DayOfWeek; -import com.azure.resourcemanager.netapp.models.PolicyStatus; -import org.junit.jupiter.api.Assertions; - -public final class ElasticSnapshotPolicyListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticSnapshotPolicyListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1401279651,\"minute\":1236103657},\"dailySchedule\":{\"snapshotsToKeep\":512397755,\"hour\":204772746,\"minute\":1829804009},\"weeklySchedule\":{\"snapshotsToKeep\":488183187,\"days\":[\"Saturday\"],\"hour\":2056787,\"minute\":1402000127},\"monthlySchedule\":{\"snapshotsToKeep\":405825776,\"daysOfMonth\":[1320824273,765217570,51098214,429988434],\"hour\":2064090558,\"minute\":202407711},\"policyStatus\":\"Disabled\",\"provisioningState\":\"Updating\"},\"eTag\":\"pnodawopqhe\",\"location\":\"ptmcgsbostzelnd\",\"tags\":{\"neqvcwwyyurmo\":\"utmzlbiojlvfhrbb\",\"rsnm\":\"hppr\"},\"id\":\"k\",\"name\":\"yzejnhlbk\",\"type\":\"bzpcpiljhahzvec\"},{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":771946842,\"minute\":320038857},\"dailySchedule\":{\"snapshotsToKeep\":1717475306,\"hour\":36238226,\"minute\":1944558428},\"weeklySchedule\":{\"snapshotsToKeep\":848413713,\"days\":[\"Sunday\",\"Tuesday\",\"Thursday\",\"Saturday\"],\"hour\":47628840,\"minute\":659521357},\"monthlySchedule\":{\"snapshotsToKeep\":407191024,\"daysOfMonth\":[1895381601],\"hour\":53099782,\"minute\":334650465},\"policyStatus\":\"Disabled\",\"provisioningState\":\"Failed\"},\"eTag\":\"xap\",\"location\":\"og\",\"tags\":{\"pud\":\"o\",\"yawbzasqbu\":\"dabtqwp\",\"oguyaip\":\"ljgkyex\",\"waz\":\"dsdaultxijjumf\"},\"id\":\"nqnm\",\"name\":\"jng\",\"type\":\"qdqx\"}],\"nextLink\":\"jw\"}") - .toObject(ElasticSnapshotPolicyListResult.class); - Assertions.assertEquals("ptmcgsbostzelnd", model.value().get(0).location()); - Assertions.assertEquals("utmzlbiojlvfhrbb", model.value().get(0).tags().get("neqvcwwyyurmo")); - Assertions.assertEquals(1401279651, model.value().get(0).properties().hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1236103657, model.value().get(0).properties().hourlySchedule().minute()); - Assertions.assertEquals(512397755, model.value().get(0).properties().dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(204772746, model.value().get(0).properties().dailySchedule().hour()); - Assertions.assertEquals(1829804009, model.value().get(0).properties().dailySchedule().minute()); - Assertions.assertEquals(488183187, model.value().get(0).properties().weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals(DayOfWeek.SATURDAY, model.value().get(0).properties().weeklySchedule().days().get(0)); - Assertions.assertEquals(2056787, model.value().get(0).properties().weeklySchedule().hour()); - Assertions.assertEquals(1402000127, model.value().get(0).properties().weeklySchedule().minute()); - Assertions.assertEquals(405825776, model.value().get(0).properties().monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1320824273, model.value().get(0).properties().monthlySchedule().daysOfMonth().get(0)); - Assertions.assertEquals(2064090558, model.value().get(0).properties().monthlySchedule().hour()); - Assertions.assertEquals(202407711, model.value().get(0).properties().monthlySchedule().minute()); - Assertions.assertEquals(PolicyStatus.DISABLED, model.value().get(0).properties().policyStatus()); - Assertions.assertEquals("jw", model.nextLink()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyMonthlyScheduleTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyMonthlyScheduleTests.java deleted file mode 100644 index 2e72c1e1e42d4..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyMonthlyScheduleTests.java +++ /dev/null @@ -1,37 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyMonthlySchedule; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ElasticSnapshotPolicyMonthlyScheduleTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticSnapshotPolicyMonthlySchedule model = BinaryData.fromString( - "{\"snapshotsToKeep\":1023774420,\"daysOfMonth\":[1410759489,975407039,952311189],\"hour\":2048724944,\"minute\":1770973346}") - .toObject(ElasticSnapshotPolicyMonthlySchedule.class); - Assertions.assertEquals(1023774420, model.snapshotsToKeep()); - Assertions.assertEquals(1410759489, model.daysOfMonth().get(0)); - Assertions.assertEquals(2048724944, model.hour()); - Assertions.assertEquals(1770973346, model.minute()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticSnapshotPolicyMonthlySchedule model - = new ElasticSnapshotPolicyMonthlySchedule().withSnapshotsToKeep(1023774420) - .withDaysOfMonth(Arrays.asList(1410759489, 975407039, 952311189)) - .withHour(2048724944) - .withMinute(1770973346); - model = BinaryData.fromObject(model).toObject(ElasticSnapshotPolicyMonthlySchedule.class); - Assertions.assertEquals(1023774420, model.snapshotsToKeep()); - Assertions.assertEquals(1410759489, model.daysOfMonth().get(0)); - Assertions.assertEquals(2048724944, model.hour()); - Assertions.assertEquals(1770973346, model.minute()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyPropertiesTests.java deleted file mode 100644 index e083c825e24c2..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyPropertiesTests.java +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.DayOfWeek; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyDailySchedule; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyHourlySchedule; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyMonthlySchedule; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyProperties; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyWeeklySchedule; -import com.azure.resourcemanager.netapp.models.PolicyStatus; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ElasticSnapshotPolicyPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticSnapshotPolicyProperties model = BinaryData.fromString( - "{\"hourlySchedule\":{\"snapshotsToKeep\":495460912,\"minute\":677853893},\"dailySchedule\":{\"snapshotsToKeep\":2095396733,\"hour\":384308231,\"minute\":2095603265},\"weeklySchedule\":{\"snapshotsToKeep\":1106032172,\"days\":[\"Friday\"],\"hour\":90361491,\"minute\":519028408},\"monthlySchedule\":{\"snapshotsToKeep\":1220118900,\"daysOfMonth\":[1074216267,1138245525],\"hour\":1503356934,\"minute\":1649651263},\"policyStatus\":\"Enabled\",\"provisioningState\":\"Updating\"}") - .toObject(ElasticSnapshotPolicyProperties.class); - Assertions.assertEquals(495460912, model.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(677853893, model.hourlySchedule().minute()); - Assertions.assertEquals(2095396733, model.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(384308231, model.dailySchedule().hour()); - Assertions.assertEquals(2095603265, model.dailySchedule().minute()); - Assertions.assertEquals(1106032172, model.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals(DayOfWeek.FRIDAY, model.weeklySchedule().days().get(0)); - Assertions.assertEquals(90361491, model.weeklySchedule().hour()); - Assertions.assertEquals(519028408, model.weeklySchedule().minute()); - Assertions.assertEquals(1220118900, model.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1074216267, model.monthlySchedule().daysOfMonth().get(0)); - Assertions.assertEquals(1503356934, model.monthlySchedule().hour()); - Assertions.assertEquals(1649651263, model.monthlySchedule().minute()); - Assertions.assertEquals(PolicyStatus.ENABLED, model.policyStatus()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticSnapshotPolicyProperties model = new ElasticSnapshotPolicyProperties() - .withHourlySchedule( - new ElasticSnapshotPolicyHourlySchedule().withSnapshotsToKeep(495460912).withMinute(677853893)) - .withDailySchedule(new ElasticSnapshotPolicyDailySchedule().withSnapshotsToKeep(2095396733) - .withHour(384308231) - .withMinute(2095603265)) - .withWeeklySchedule(new ElasticSnapshotPolicyWeeklySchedule().withSnapshotsToKeep(1106032172) - .withDays(Arrays.asList(DayOfWeek.FRIDAY)) - .withHour(90361491) - .withMinute(519028408)) - .withMonthlySchedule(new ElasticSnapshotPolicyMonthlySchedule().withSnapshotsToKeep(1220118900) - .withDaysOfMonth(Arrays.asList(1074216267, 1138245525)) - .withHour(1503356934) - .withMinute(1649651263)) - .withPolicyStatus(PolicyStatus.ENABLED); - model = BinaryData.fromObject(model).toObject(ElasticSnapshotPolicyProperties.class); - Assertions.assertEquals(495460912, model.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(677853893, model.hourlySchedule().minute()); - Assertions.assertEquals(2095396733, model.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(384308231, model.dailySchedule().hour()); - Assertions.assertEquals(2095603265, model.dailySchedule().minute()); - Assertions.assertEquals(1106032172, model.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals(DayOfWeek.FRIDAY, model.weeklySchedule().days().get(0)); - Assertions.assertEquals(90361491, model.weeklySchedule().hour()); - Assertions.assertEquals(519028408, model.weeklySchedule().minute()); - Assertions.assertEquals(1220118900, model.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1074216267, model.monthlySchedule().daysOfMonth().get(0)); - Assertions.assertEquals(1503356934, model.monthlySchedule().hour()); - Assertions.assertEquals(1649651263, model.monthlySchedule().minute()); - Assertions.assertEquals(PolicyStatus.ENABLED, model.policyStatus()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyUpdatePropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyUpdatePropertiesTests.java deleted file mode 100644 index ddf86434c1240..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyUpdatePropertiesTests.java +++ /dev/null @@ -1,73 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.DayOfWeek; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyDailySchedule; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyHourlySchedule; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyMonthlySchedule; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyUpdateProperties; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyWeeklySchedule; -import com.azure.resourcemanager.netapp.models.PolicyStatus; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ElasticSnapshotPolicyUpdatePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticSnapshotPolicyUpdateProperties model = BinaryData.fromString( - "{\"hourlySchedule\":{\"snapshotsToKeep\":524378384,\"minute\":297502436},\"dailySchedule\":{\"snapshotsToKeep\":55870102,\"hour\":76576423,\"minute\":2010398263},\"weeklySchedule\":{\"snapshotsToKeep\":1582753325,\"days\":[\"Thursday\",\"Monday\",\"Friday\"],\"hour\":1298991349,\"minute\":815140204},\"monthlySchedule\":{\"snapshotsToKeep\":1971838421,\"daysOfMonth\":[250653832,1423111949,1084063720],\"hour\":1276136416,\"minute\":1965691709},\"policyStatus\":\"Disabled\"}") - .toObject(ElasticSnapshotPolicyUpdateProperties.class); - Assertions.assertEquals(524378384, model.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(297502436, model.hourlySchedule().minute()); - Assertions.assertEquals(55870102, model.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(76576423, model.dailySchedule().hour()); - Assertions.assertEquals(2010398263, model.dailySchedule().minute()); - Assertions.assertEquals(1582753325, model.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals(DayOfWeek.THURSDAY, model.weeklySchedule().days().get(0)); - Assertions.assertEquals(1298991349, model.weeklySchedule().hour()); - Assertions.assertEquals(815140204, model.weeklySchedule().minute()); - Assertions.assertEquals(1971838421, model.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals(250653832, model.monthlySchedule().daysOfMonth().get(0)); - Assertions.assertEquals(1276136416, model.monthlySchedule().hour()); - Assertions.assertEquals(1965691709, model.monthlySchedule().minute()); - Assertions.assertEquals(PolicyStatus.DISABLED, model.policyStatus()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticSnapshotPolicyUpdateProperties model = new ElasticSnapshotPolicyUpdateProperties() - .withHourlySchedule( - new ElasticSnapshotPolicyHourlySchedule().withSnapshotsToKeep(524378384).withMinute(297502436)) - .withDailySchedule(new ElasticSnapshotPolicyDailySchedule().withSnapshotsToKeep(55870102) - .withHour(76576423) - .withMinute(2010398263)) - .withWeeklySchedule(new ElasticSnapshotPolicyWeeklySchedule().withSnapshotsToKeep(1582753325) - .withDays(Arrays.asList(DayOfWeek.THURSDAY, DayOfWeek.MONDAY, DayOfWeek.FRIDAY)) - .withHour(1298991349) - .withMinute(815140204)) - .withMonthlySchedule(new ElasticSnapshotPolicyMonthlySchedule().withSnapshotsToKeep(1971838421) - .withDaysOfMonth(Arrays.asList(250653832, 1423111949, 1084063720)) - .withHour(1276136416) - .withMinute(1965691709)) - .withPolicyStatus(PolicyStatus.DISABLED); - model = BinaryData.fromObject(model).toObject(ElasticSnapshotPolicyUpdateProperties.class); - Assertions.assertEquals(524378384, model.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(297502436, model.hourlySchedule().minute()); - Assertions.assertEquals(55870102, model.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(76576423, model.dailySchedule().hour()); - Assertions.assertEquals(2010398263, model.dailySchedule().minute()); - Assertions.assertEquals(1582753325, model.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals(DayOfWeek.THURSDAY, model.weeklySchedule().days().get(0)); - Assertions.assertEquals(1298991349, model.weeklySchedule().hour()); - Assertions.assertEquals(815140204, model.weeklySchedule().minute()); - Assertions.assertEquals(1971838421, model.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals(250653832, model.monthlySchedule().daysOfMonth().get(0)); - Assertions.assertEquals(1276136416, model.monthlySchedule().hour()); - Assertions.assertEquals(1965691709, model.monthlySchedule().minute()); - Assertions.assertEquals(PolicyStatus.DISABLED, model.policyStatus()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyUpdateTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyUpdateTests.java deleted file mode 100644 index e28a25eb3ab6a..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyUpdateTests.java +++ /dev/null @@ -1,91 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.DayOfWeek; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyDailySchedule; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyHourlySchedule; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyMonthlySchedule; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyUpdate; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyUpdateProperties; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyWeeklySchedule; -import com.azure.resourcemanager.netapp.models.PolicyStatus; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ElasticSnapshotPolicyUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticSnapshotPolicyUpdate model = BinaryData.fromString( - "{\"tags\":{\"ihsgq\":\"yibcy\"},\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1889253771,\"minute\":1916069806},\"dailySchedule\":{\"snapshotsToKeep\":1436394090,\"hour\":1603035621,\"minute\":1235671059},\"weeklySchedule\":{\"snapshotsToKeep\":1084867898,\"days\":[\"Thursday\",\"Wednesday\"],\"hour\":1206774170,\"minute\":1817960219},\"monthlySchedule\":{\"snapshotsToKeep\":1679543424,\"daysOfMonth\":[879403543,923687836,1828890303,1303035802],\"hour\":1202963506,\"minute\":111762942},\"policyStatus\":\"Enabled\"}}") - .toObject(ElasticSnapshotPolicyUpdate.class); - Assertions.assertEquals("yibcy", model.tags().get("ihsgq")); - Assertions.assertEquals(1889253771, model.properties().hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1916069806, model.properties().hourlySchedule().minute()); - Assertions.assertEquals(1436394090, model.properties().dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(1603035621, model.properties().dailySchedule().hour()); - Assertions.assertEquals(1235671059, model.properties().dailySchedule().minute()); - Assertions.assertEquals(1084867898, model.properties().weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals(DayOfWeek.THURSDAY, model.properties().weeklySchedule().days().get(0)); - Assertions.assertEquals(1206774170, model.properties().weeklySchedule().hour()); - Assertions.assertEquals(1817960219, model.properties().weeklySchedule().minute()); - Assertions.assertEquals(1679543424, model.properties().monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals(879403543, model.properties().monthlySchedule().daysOfMonth().get(0)); - Assertions.assertEquals(1202963506, model.properties().monthlySchedule().hour()); - Assertions.assertEquals(111762942, model.properties().monthlySchedule().minute()); - Assertions.assertEquals(PolicyStatus.ENABLED, model.properties().policyStatus()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticSnapshotPolicyUpdate model = new ElasticSnapshotPolicyUpdate().withTags(mapOf("ihsgq", "yibcy")) - .withProperties(new ElasticSnapshotPolicyUpdateProperties() - .withHourlySchedule( - new ElasticSnapshotPolicyHourlySchedule().withSnapshotsToKeep(1889253771).withMinute(1916069806)) - .withDailySchedule(new ElasticSnapshotPolicyDailySchedule().withSnapshotsToKeep(1436394090) - .withHour(1603035621) - .withMinute(1235671059)) - .withWeeklySchedule(new ElasticSnapshotPolicyWeeklySchedule().withSnapshotsToKeep(1084867898) - .withDays(Arrays.asList(DayOfWeek.THURSDAY, DayOfWeek.WEDNESDAY)) - .withHour(1206774170) - .withMinute(1817960219)) - .withMonthlySchedule(new ElasticSnapshotPolicyMonthlySchedule().withSnapshotsToKeep(1679543424) - .withDaysOfMonth(Arrays.asList(879403543, 923687836, 1828890303, 1303035802)) - .withHour(1202963506) - .withMinute(111762942)) - .withPolicyStatus(PolicyStatus.ENABLED)); - model = BinaryData.fromObject(model).toObject(ElasticSnapshotPolicyUpdate.class); - Assertions.assertEquals("yibcy", model.tags().get("ihsgq")); - Assertions.assertEquals(1889253771, model.properties().hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1916069806, model.properties().hourlySchedule().minute()); - Assertions.assertEquals(1436394090, model.properties().dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(1603035621, model.properties().dailySchedule().hour()); - Assertions.assertEquals(1235671059, model.properties().dailySchedule().minute()); - Assertions.assertEquals(1084867898, model.properties().weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals(DayOfWeek.THURSDAY, model.properties().weeklySchedule().days().get(0)); - Assertions.assertEquals(1206774170, model.properties().weeklySchedule().hour()); - Assertions.assertEquals(1817960219, model.properties().weeklySchedule().minute()); - Assertions.assertEquals(1679543424, model.properties().monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals(879403543, model.properties().monthlySchedule().daysOfMonth().get(0)); - Assertions.assertEquals(1202963506, model.properties().monthlySchedule().hour()); - Assertions.assertEquals(111762942, model.properties().monthlySchedule().minute()); - Assertions.assertEquals(PolicyStatus.ENABLED, model.properties().policyStatus()); - } - - // 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/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyVolumeListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyVolumeListTests.java deleted file mode 100644 index b3f5552246dcd..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyVolumeListTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.implementation.models.ElasticSnapshotPolicyVolumeList; -import com.azure.resourcemanager.netapp.models.ElasticProtocolType; -import com.azure.resourcemanager.netapp.models.ElasticSmbEncryption; -import com.azure.resourcemanager.netapp.models.ElasticVolumePolicyEnforcement; -import com.azure.resourcemanager.netapp.models.SnapshotDirectoryVisibility; -import org.junit.jupiter.api.Assertions; - -public final class ElasticSnapshotPolicyVolumeListTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticSnapshotPolicyVolumeList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"filePath\":\"fusfzsvtuikzhajq\",\"size\":3788300585704298114,\"exportPolicy\":{\"rules\":[{},{},{}]},\"protocolTypes\":[\"SMB\"],\"provisioningState\":\"Deleting\",\"availabilityStatus\":\"Online\",\"snapshotResourceId\":\"nqnzrd\",\"mountTargets\":[{\"ipAddress\":\"wxznptgoei\",\"smbServerFqdn\":\"b\"}],\"dataProtection\":{\"snapshot\":{\"snapshotPolicyResourceId\":\"hv\"},\"backup\":{\"elasticBackupPolicyResourceId\":\"kvntjlrigjkskyri\",\"policyEnforcement\":\"NotEnforced\",\"elasticBackupVaultResourceId\":\"idsxwaabzmifry\"}},\"snapshotDirectoryVisibility\":\"Visible\",\"smbProperties\":{\"smbEncryption\":\"Enabled\"},\"backupResourceId\":\"ri\",\"restorationState\":\"Failed\"},\"eTag\":\"bgopxlhslnel\",\"zones\":[\"ixynllxecwcrojp\",\"slhcawjutifd\",\"fmvigorqjbttzh\",\"aglkafhon\"],\"location\":\"ujeickp\",\"tags\":{\"pmxelnwcltyje\":\"p\",\"mlfmkqs\":\"ex\"},\"id\":\"azuawx\",\"name\":\"z\",\"type\":\"puamwabzxr\"},{\"properties\":{\"filePath\":\"cush\",\"size\":4071060705023044970,\"exportPolicy\":{\"rules\":[{}]},\"protocolTypes\":[\"SMB\",\"SMB\",\"NFSv4\",\"NFSv4\"],\"provisioningState\":\"Failed\",\"availabilityStatus\":\"Offline\",\"snapshotResourceId\":\"gzwywak\",\"mountTargets\":[{\"ipAddress\":\"nsmjbl\",\"smbServerFqdn\":\"jhlnymzotqyryu\"},{\"ipAddress\":\"bmqqvxmvw\",\"smbServerFqdn\":\"tayx\"}],\"dataProtection\":{\"snapshot\":{\"snapshotPolicyResourceId\":\"peujlzqn\"},\"backup\":{\"elasticBackupPolicyResourceId\":\"sqltnzo\",\"policyEnforcement\":\"NotEnforced\",\"elasticBackupVaultResourceId\":\"xgnxfyqonmpqoxwd\"}},\"snapshotDirectoryVisibility\":\"Hidden\",\"smbProperties\":{\"smbEncryption\":\"Disabled\"},\"backupResourceId\":\"xeiiq\",\"restorationState\":\"Restored\"},\"eTag\":\"tmwwi\",\"zones\":[\"hfqpofv\",\"bcblemb\",\"kbwvqvxkdiv\"],\"location\":\"heb\",\"tags\":{\"izvcjfe\":\"wbzuwfmdurage\",\"ggbqi\":\"isdju\",\"m\":\"kxkbsazgakgacyr\",\"pv\":\"dmspof\"},\"id\":\"hryl\",\"name\":\"iofrzgbzjedmstk\",\"type\":\"nlvxbcuii\"},{\"properties\":{\"filePath\":\"ktwfa\",\"size\":250383910704724497,\"exportPolicy\":{\"rules\":[{},{},{},{}]},\"protocolTypes\":[\"SMB\",\"SMB\",\"SMB\"],\"provisioningState\":\"Deleting\",\"availabilityStatus\":\"Offline\",\"snapshotResourceId\":\"z\",\"mountTargets\":[{\"ipAddress\":\"buqny\",\"smbServerFqdn\":\"hzfylsgcrpfbc\"},{\"ipAddress\":\"ezzcez\",\"smbServerFqdn\":\"fwyfwlwxjwet\"}],\"dataProtection\":{\"snapshot\":{\"snapshotPolicyResourceId\":\"hclafzvaylptrs\"},\"backup\":{\"elasticBackupPolicyResourceId\":\"ztcmwq\",\"policyEnforcement\":\"NotEnforced\",\"elasticBackupVaultResourceId\":\"xwaxfewzjkj\"}},\"snapshotDirectoryVisibility\":\"Visible\",\"smbProperties\":{\"smbEncryption\":\"Disabled\"},\"backupResourceId\":\"hpsylkksh\",\"restorationState\":\"Restored\"},\"eTag\":\"mbmxzjrgywwpgj\",\"zones\":[\"ptfujgicgaaoept\",\"aqutdewemxswvruu\"],\"location\":\"zjgehkfkim\",\"tags\":{\"jqepqwhi\":\"xokffqyin\",\"fclduccbirdsv\":\"monstshiyxgve\",\"stmninwjizcilng\":\"wcobie\"},\"id\":\"gshejjtbxqmulux\",\"name\":\"xqzv\",\"type\":\"ers\"},{\"properties\":{\"filePath\":\"cucrwnamikze\",\"size\":1725483024927981139,\"exportPolicy\":{\"rules\":[{},{}]},\"protocolTypes\":[\"SMB\",\"SMB\"],\"provisioningState\":\"Deleting\",\"availabilityStatus\":\"Online\",\"snapshotResourceId\":\"hokzrusw\",\"mountTargets\":[{\"ipAddress\":\"zznvfbyc\",\"smbServerFqdn\":\"xjww\"},{\"ipAddress\":\"z\",\"smbServerFqdn\":\"mwmxqhndvnoamld\"}],\"dataProtection\":{\"snapshot\":{\"snapshotPolicyResourceId\":\"ohdjhhflzok\"},\"backup\":{\"elasticBackupPolicyResourceId\":\"xpelnjetagltsx\",\"policyEnforcement\":\"Enforced\",\"elasticBackupVaultResourceId\":\"tgzpnpb\"}},\"snapshotDirectoryVisibility\":\"Visible\",\"smbProperties\":{\"smbEncryption\":\"Disabled\"},\"backupResourceId\":\"ccsrmozihmipgaw\",\"restorationState\":\"Failed\"},\"eTag\":\"ky\",\"zones\":[\"cjxgrytf\",\"pcycilrmcaykg\",\"noxuztrksx\",\"pndfcpfnznt\"],\"location\":\"twk\",\"tags\":{\"tcqiosmg\":\"srxuzvoam\",\"xqdlyrtltlapr\":\"zah\",\"atbhjmznn\":\"tz\"},\"id\":\"s\",\"name\":\"qeqala\",\"type\":\"vlagun\"}],\"nextLink\":\"gfebwlnb\"}") - .toObject(ElasticSnapshotPolicyVolumeList.class); - Assertions.assertEquals("ujeickp", model.value().get(0).location()); - Assertions.assertEquals("p", model.value().get(0).tags().get("pmxelnwcltyje")); - Assertions.assertEquals("fusfzsvtuikzhajq", model.value().get(0).properties().filePath()); - Assertions.assertEquals(3788300585704298114L, model.value().get(0).properties().size()); - Assertions.assertEquals(ElasticProtocolType.SMB, model.value().get(0).properties().protocolTypes().get(0)); - Assertions.assertEquals("nqnzrd", model.value().get(0).properties().snapshotResourceId()); - Assertions.assertEquals("hv", - model.value().get(0).properties().dataProtection().snapshot().snapshotPolicyResourceId()); - Assertions.assertEquals("kvntjlrigjkskyri", - model.value().get(0).properties().dataProtection().backup().elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.NOT_ENFORCED, - model.value().get(0).properties().dataProtection().backup().policyEnforcement()); - Assertions.assertEquals("idsxwaabzmifry", - model.value().get(0).properties().dataProtection().backup().elasticBackupVaultResourceId()); - Assertions.assertEquals(SnapshotDirectoryVisibility.VISIBLE, - model.value().get(0).properties().snapshotDirectoryVisibility()); - Assertions.assertEquals(ElasticSmbEncryption.ENABLED, - model.value().get(0).properties().smbProperties().smbEncryption()); - Assertions.assertEquals("ri", model.value().get(0).properties().backupResourceId()); - Assertions.assertEquals("ixynllxecwcrojp", model.value().get(0).zones().get(0)); - Assertions.assertEquals("gfebwlnb", model.nextLink()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyWeeklyScheduleTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyWeeklyScheduleTests.java deleted file mode 100644 index 51982e378a8f8..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPolicyWeeklyScheduleTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.DayOfWeek; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotPolicyWeeklySchedule; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ElasticSnapshotPolicyWeeklyScheduleTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticSnapshotPolicyWeeklySchedule model = BinaryData.fromString( - "{\"snapshotsToKeep\":1964877049,\"days\":[\"Saturday\",\"Thursday\",\"Saturday\"],\"hour\":2096051855,\"minute\":1486108612}") - .toObject(ElasticSnapshotPolicyWeeklySchedule.class); - Assertions.assertEquals(1964877049, model.snapshotsToKeep()); - Assertions.assertEquals(DayOfWeek.SATURDAY, model.days().get(0)); - Assertions.assertEquals(2096051855, model.hour()); - Assertions.assertEquals(1486108612, model.minute()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticSnapshotPolicyWeeklySchedule model - = new ElasticSnapshotPolicyWeeklySchedule().withSnapshotsToKeep(1964877049) - .withDays(Arrays.asList(DayOfWeek.SATURDAY, DayOfWeek.THURSDAY, DayOfWeek.SATURDAY)) - .withHour(2096051855) - .withMinute(1486108612); - model = BinaryData.fromObject(model).toObject(ElasticSnapshotPolicyWeeklySchedule.class); - Assertions.assertEquals(1964877049, model.snapshotsToKeep()); - Assertions.assertEquals(DayOfWeek.SATURDAY, model.days().get(0)); - Assertions.assertEquals(2096051855, model.hour()); - Assertions.assertEquals(1486108612, model.minute()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPropertiesTests.java deleted file mode 100644 index d502127a3fb21..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotPropertiesTests.java +++ /dev/null @@ -1,22 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotProperties; - -public final class ElasticSnapshotPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticSnapshotProperties model - = BinaryData.fromString("{\"provisioningState\":\"Creating\"}").toObject(ElasticSnapshotProperties.class); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticSnapshotProperties model = new ElasticSnapshotProperties(); - model = BinaryData.fromObject(model).toObject(ElasticSnapshotProperties.class); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsCreateOrUpdateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsCreateOrUpdateMockTests.java deleted file mode 100644 index 4fe5b65f3c75b..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsCreateOrUpdateMockTests.java +++ /dev/null @@ -1,40 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.ElasticSnapshot; -import com.azure.resourcemanager.netapp.models.ElasticSnapshotProperties; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticSnapshotsCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\"},\"id\":\"cbi\",\"name\":\"wcdgzsez\",\"type\":\"uxk\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - ElasticSnapshot response = manager.elasticSnapshots() - .define("xjoezlqxrkdknko") - .withExistingElasticVolume("pjhgejkb", "hhdau", "ghoox", "exbkhx") - .withProperties(new ElasticSnapshotProperties()) - .create(); - - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsGetWithResponseMockTests.java deleted file mode 100644 index 137631e27e4cb..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsGetWithResponseMockTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.ElasticSnapshot; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticSnapshotsGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"provisioningState\":\"Patching\"},\"id\":\"ulwempdc\",\"name\":\"frhjulrsulwzp\",\"type\":\"lusnawmhhgzotfr\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - ElasticSnapshot response = manager.elasticSnapshots() - .getWithResponse("ufgjblcdr", "yfcemftz", "yykyalu", "ekdfqnhttwd", "wrczfjjnnuxxrk", - com.azure.core.util.Context.NONE) - .getValue(); - - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsListByElasticVolumeMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsListByElasticVolumeMockTests.java deleted file mode 100644 index 58c8fa7f030f3..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticSnapshotsListByElasticVolumeMockTests.java +++ /dev/null @@ -1,38 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.ElasticSnapshot; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticSnapshotsListByElasticVolumeMockTests { - @Test - public void testListByElasticVolume() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\"},\"id\":\"zikgqabooh\",\"name\":\"bmsgycqsxrmdv\",\"type\":\"wuyqaeo\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response = manager.elasticSnapshots() - .listByElasticVolume("yrgkoekv", "wxxyxhighctx", "xmolpcqydeyk", "skiczd", - com.azure.core.util.Context.NONE); - - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeBackupPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeBackupPropertiesTests.java deleted file mode 100644 index 852f7bc206729..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeBackupPropertiesTests.java +++ /dev/null @@ -1,33 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticVolumeBackupProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumePolicyEnforcement; -import org.junit.jupiter.api.Assertions; - -public final class ElasticVolumeBackupPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticVolumeBackupProperties model = BinaryData.fromString( - "{\"elasticBackupPolicyResourceId\":\"r\",\"policyEnforcement\":\"Enforced\",\"elasticBackupVaultResourceId\":\"vmmghfcfiwrxgk\"}") - .toObject(ElasticVolumeBackupProperties.class); - Assertions.assertEquals("r", model.elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.ENFORCED, model.policyEnforcement()); - Assertions.assertEquals("vmmghfcfiwrxgk", model.elasticBackupVaultResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticVolumeBackupProperties model = new ElasticVolumeBackupProperties().withElasticBackupPolicyResourceId("r") - .withPolicyEnforcement(ElasticVolumePolicyEnforcement.ENFORCED) - .withElasticBackupVaultResourceId("vmmghfcfiwrxgk"); - model = BinaryData.fromObject(model).toObject(ElasticVolumeBackupProperties.class); - Assertions.assertEquals("r", model.elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.ENFORCED, model.policyEnforcement()); - Assertions.assertEquals("vmmghfcfiwrxgk", model.elasticBackupVaultResourceId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeDataProtectionPatchPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeDataProtectionPatchPropertiesTests.java deleted file mode 100644 index 9ac1640c8b8eb..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeDataProtectionPatchPropertiesTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticVolumeBackupProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumeDataProtectionPatchProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumePolicyEnforcement; -import com.azure.resourcemanager.netapp.models.ElasticVolumeSnapshotProperties; -import org.junit.jupiter.api.Assertions; - -public final class ElasticVolumeDataProtectionPatchPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticVolumeDataProtectionPatchProperties model = BinaryData.fromString( - "{\"snapshot\":{\"snapshotPolicyResourceId\":\"ppxynenls\"},\"backup\":{\"elasticBackupPolicyResourceId\":\"izzgwkln\",\"policyEnforcement\":\"NotEnforced\",\"elasticBackupVaultResourceId\":\"feycxcktp\"}}") - .toObject(ElasticVolumeDataProtectionPatchProperties.class); - Assertions.assertEquals("ppxynenls", model.snapshot().snapshotPolicyResourceId()); - Assertions.assertEquals("izzgwkln", model.backup().elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.NOT_ENFORCED, model.backup().policyEnforcement()); - Assertions.assertEquals("feycxcktp", model.backup().elasticBackupVaultResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticVolumeDataProtectionPatchProperties model = new ElasticVolumeDataProtectionPatchProperties() - .withSnapshot(new ElasticVolumeSnapshotProperties().withSnapshotPolicyResourceId("ppxynenls")) - .withBackup(new ElasticVolumeBackupProperties().withElasticBackupPolicyResourceId("izzgwkln") - .withPolicyEnforcement(ElasticVolumePolicyEnforcement.NOT_ENFORCED) - .withElasticBackupVaultResourceId("feycxcktp")); - model = BinaryData.fromObject(model).toObject(ElasticVolumeDataProtectionPatchProperties.class); - Assertions.assertEquals("ppxynenls", model.snapshot().snapshotPolicyResourceId()); - Assertions.assertEquals("izzgwkln", model.backup().elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.NOT_ENFORCED, model.backup().policyEnforcement()); - Assertions.assertEquals("feycxcktp", model.backup().elasticBackupVaultResourceId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeDataProtectionPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeDataProtectionPropertiesTests.java deleted file mode 100644 index 68aeaea2e06b0..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeDataProtectionPropertiesTests.java +++ /dev/null @@ -1,39 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticVolumeBackupProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumeDataProtectionProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumePolicyEnforcement; -import com.azure.resourcemanager.netapp.models.ElasticVolumeSnapshotProperties; -import org.junit.jupiter.api.Assertions; - -public final class ElasticVolumeDataProtectionPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticVolumeDataProtectionProperties model = BinaryData.fromString( - "{\"snapshot\":{\"snapshotPolicyResourceId\":\"cporxvxcjz\"},\"backup\":{\"elasticBackupPolicyResourceId\":\"zxfpxtgqsc\",\"policyEnforcement\":\"Enforced\",\"elasticBackupVaultResourceId\":\"t\"}}") - .toObject(ElasticVolumeDataProtectionProperties.class); - Assertions.assertEquals("cporxvxcjz", model.snapshot().snapshotPolicyResourceId()); - Assertions.assertEquals("zxfpxtgqsc", model.backup().elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.ENFORCED, model.backup().policyEnforcement()); - Assertions.assertEquals("t", model.backup().elasticBackupVaultResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticVolumeDataProtectionProperties model = new ElasticVolumeDataProtectionProperties() - .withSnapshot(new ElasticVolumeSnapshotProperties().withSnapshotPolicyResourceId("cporxvxcjz")) - .withBackup(new ElasticVolumeBackupProperties().withElasticBackupPolicyResourceId("zxfpxtgqsc") - .withPolicyEnforcement(ElasticVolumePolicyEnforcement.ENFORCED) - .withElasticBackupVaultResourceId("t")); - model = BinaryData.fromObject(model).toObject(ElasticVolumeDataProtectionProperties.class); - Assertions.assertEquals("cporxvxcjz", model.snapshot().snapshotPolicyResourceId()); - Assertions.assertEquals("zxfpxtgqsc", model.backup().elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.ENFORCED, model.backup().policyEnforcement()); - Assertions.assertEquals("t", model.backup().elasticBackupVaultResourceId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeInnerTests.java deleted file mode 100644 index 0bb9e59a84907..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeInnerTests.java +++ /dev/null @@ -1,147 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.fluent.models.ElasticVolumeInner; -import com.azure.resourcemanager.netapp.models.ElasticExportPolicy; -import com.azure.resourcemanager.netapp.models.ElasticExportPolicyRule; -import com.azure.resourcemanager.netapp.models.ElasticNfsv3Access; -import com.azure.resourcemanager.netapp.models.ElasticNfsv4Access; -import com.azure.resourcemanager.netapp.models.ElasticProtocolType; -import com.azure.resourcemanager.netapp.models.ElasticRootAccess; -import com.azure.resourcemanager.netapp.models.ElasticSmbEncryption; -import com.azure.resourcemanager.netapp.models.ElasticSmbProperties; -import com.azure.resourcemanager.netapp.models.ElasticUnixAccessRule; -import com.azure.resourcemanager.netapp.models.ElasticVolumeBackupProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumeDataProtectionProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumePolicyEnforcement; -import com.azure.resourcemanager.netapp.models.ElasticVolumeProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumeSnapshotProperties; -import com.azure.resourcemanager.netapp.models.SnapshotDirectoryVisibility; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ElasticVolumeInnerTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticVolumeInner model = BinaryData.fromString( - "{\"properties\":{\"filePath\":\"sdymbrn\",\"size\":8491416597848790528,\"exportPolicy\":{\"rules\":[{\"ruleIndex\":214541271,\"unixAccessRule\":\"ReadWrite\",\"nfsv3\":\"Enabled\",\"nfsv4\":\"Disabled\",\"allowedClients\":[\"xvd\",\"ffwafq\",\"oudaspavehhrvk\",\"unzo\"],\"rootAccess\":\"Disabled\"},{\"ruleIndex\":1288828831,\"unixAccessRule\":\"NoAccess\",\"nfsv3\":\"Enabled\",\"nfsv4\":\"Disabled\",\"allowedClients\":[\"dyuib\",\"mfdn\",\"zydvfvf\",\"jnaeois\"],\"rootAccess\":\"Disabled\"},{\"ruleIndex\":1029711720,\"unixAccessRule\":\"ReadWrite\",\"nfsv3\":\"Disabled\",\"nfsv4\":\"Disabled\",\"allowedClients\":[\"cvwmzhwplefa\",\"vxilcbt\",\"nhnzeyqxt\"],\"rootAccess\":\"Disabled\"}]},\"protocolTypes\":[\"NFSv4\",\"NFSv3\"],\"provisioningState\":\"Patching\",\"availabilityStatus\":\"Offline\",\"snapshotResourceId\":\"vodggxdbee\",\"mountTargets\":[{\"ipAddress\":\"knlrariaawiuagy\",\"smbServerFqdn\":\"qfby\"},{\"ipAddress\":\"rfgi\",\"smbServerFqdn\":\"tcojocqwo\"}],\"dataProtection\":{\"snapshot\":{\"snapshotPolicyResourceId\":\"jvusfzldmozux\"},\"backup\":{\"elasticBackupPolicyResourceId\":\"sbtkadpysownbtgk\",\"policyEnforcement\":\"NotEnforced\",\"elasticBackupVaultResourceId\":\"jqctojcmisofie\"}},\"snapshotDirectoryVisibility\":\"Visible\",\"smbProperties\":{\"smbEncryption\":\"Enabled\"},\"backupResourceId\":\"qdhcu\",\"restorationState\":\"Restored\"},\"eTag\":\"lcwkhihihlhz\",\"zones\":[\"tzbsrgnowcjhf\"],\"location\":\"vecactx\",\"tags\":{\"ovekqvgqouwi\":\"teyowclu\",\"ikf\":\"zmpjwyiv\"},\"id\":\"cvhrfsp\",\"name\":\"uagrttikteusqc\",\"type\":\"kvyklxubyjaffmm\"}") - .toObject(ElasticVolumeInner.class); - Assertions.assertEquals("vecactx", model.location()); - Assertions.assertEquals("teyowclu", model.tags().get("ovekqvgqouwi")); - Assertions.assertEquals("sdymbrn", model.properties().filePath()); - Assertions.assertEquals(8491416597848790528L, model.properties().size()); - Assertions.assertEquals(214541271, model.properties().exportPolicy().rules().get(0).ruleIndex()); - Assertions.assertEquals(ElasticUnixAccessRule.READ_WRITE, - model.properties().exportPolicy().rules().get(0).unixAccessRule()); - Assertions.assertEquals(ElasticNfsv3Access.ENABLED, model.properties().exportPolicy().rules().get(0).nfsv3()); - Assertions.assertEquals(ElasticNfsv4Access.DISABLED, model.properties().exportPolicy().rules().get(0).nfsv4()); - Assertions.assertEquals("xvd", model.properties().exportPolicy().rules().get(0).allowedClients().get(0)); - Assertions.assertEquals(ElasticRootAccess.DISABLED, - model.properties().exportPolicy().rules().get(0).rootAccess()); - Assertions.assertEquals(ElasticProtocolType.NFSV4, model.properties().protocolTypes().get(0)); - Assertions.assertEquals("vodggxdbee", model.properties().snapshotResourceId()); - Assertions.assertEquals("jvusfzldmozux", - model.properties().dataProtection().snapshot().snapshotPolicyResourceId()); - Assertions.assertEquals("sbtkadpysownbtgk", - model.properties().dataProtection().backup().elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.NOT_ENFORCED, - model.properties().dataProtection().backup().policyEnforcement()); - Assertions.assertEquals("jqctojcmisofie", - model.properties().dataProtection().backup().elasticBackupVaultResourceId()); - Assertions.assertEquals(SnapshotDirectoryVisibility.VISIBLE, model.properties().snapshotDirectoryVisibility()); - Assertions.assertEquals(ElasticSmbEncryption.ENABLED, model.properties().smbProperties().smbEncryption()); - Assertions.assertEquals("qdhcu", model.properties().backupResourceId()); - Assertions.assertEquals("tzbsrgnowcjhf", model.zones().get(0)); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticVolumeInner model - = new ElasticVolumeInner().withLocation("vecactx") - .withTags(mapOf("ovekqvgqouwi", "teyowclu", "ikf", "zmpjwyiv")) - .withProperties( - new ElasticVolumeProperties().withFilePath("sdymbrn") - .withSize(8491416597848790528L) - .withExportPolicy( - new ElasticExportPolicy() - .withRules( - Arrays.asList( - new ElasticExportPolicyRule().withRuleIndex(214541271) - .withUnixAccessRule(ElasticUnixAccessRule.READ_WRITE) - .withNfsv3(ElasticNfsv3Access.ENABLED) - .withNfsv4(ElasticNfsv4Access.DISABLED) - .withAllowedClients( - Arrays.asList("xvd", "ffwafq", "oudaspavehhrvk", "unzo")) - .withRootAccess(ElasticRootAccess.DISABLED), - new ElasticExportPolicyRule().withRuleIndex(1288828831) - .withUnixAccessRule(ElasticUnixAccessRule.NO_ACCESS) - .withNfsv3(ElasticNfsv3Access.ENABLED) - .withNfsv4(ElasticNfsv4Access.DISABLED) - .withAllowedClients(Arrays.asList("dyuib", "mfdn", "zydvfvf", "jnaeois")) - .withRootAccess(ElasticRootAccess.DISABLED), - new ElasticExportPolicyRule().withRuleIndex(1029711720) - .withUnixAccessRule(ElasticUnixAccessRule.READ_WRITE) - .withNfsv3(ElasticNfsv3Access.DISABLED) - .withNfsv4(ElasticNfsv4Access.DISABLED) - .withAllowedClients(Arrays.asList("cvwmzhwplefa", "vxilcbt", "nhnzeyqxt")) - .withRootAccess(ElasticRootAccess.DISABLED)))) - .withProtocolTypes(Arrays.asList(ElasticProtocolType.NFSV4, ElasticProtocolType.NFSV3)) - .withSnapshotResourceId("vodggxdbee") - .withDataProtection(new ElasticVolumeDataProtectionProperties() - .withSnapshot( - new ElasticVolumeSnapshotProperties().withSnapshotPolicyResourceId("jvusfzldmozux")) - .withBackup(new ElasticVolumeBackupProperties() - .withElasticBackupPolicyResourceId("sbtkadpysownbtgk") - .withPolicyEnforcement(ElasticVolumePolicyEnforcement.NOT_ENFORCED) - .withElasticBackupVaultResourceId("jqctojcmisofie"))) - .withSnapshotDirectoryVisibility(SnapshotDirectoryVisibility.VISIBLE) - .withSmbProperties(new ElasticSmbProperties().withSmbEncryption(ElasticSmbEncryption.ENABLED)) - .withBackupResourceId("qdhcu")) - .withZones(Arrays.asList("tzbsrgnowcjhf")); - model = BinaryData.fromObject(model).toObject(ElasticVolumeInner.class); - Assertions.assertEquals("vecactx", model.location()); - Assertions.assertEquals("teyowclu", model.tags().get("ovekqvgqouwi")); - Assertions.assertEquals("sdymbrn", model.properties().filePath()); - Assertions.assertEquals(8491416597848790528L, model.properties().size()); - Assertions.assertEquals(214541271, model.properties().exportPolicy().rules().get(0).ruleIndex()); - Assertions.assertEquals(ElasticUnixAccessRule.READ_WRITE, - model.properties().exportPolicy().rules().get(0).unixAccessRule()); - Assertions.assertEquals(ElasticNfsv3Access.ENABLED, model.properties().exportPolicy().rules().get(0).nfsv3()); - Assertions.assertEquals(ElasticNfsv4Access.DISABLED, model.properties().exportPolicy().rules().get(0).nfsv4()); - Assertions.assertEquals("xvd", model.properties().exportPolicy().rules().get(0).allowedClients().get(0)); - Assertions.assertEquals(ElasticRootAccess.DISABLED, - model.properties().exportPolicy().rules().get(0).rootAccess()); - Assertions.assertEquals(ElasticProtocolType.NFSV4, model.properties().protocolTypes().get(0)); - Assertions.assertEquals("vodggxdbee", model.properties().snapshotResourceId()); - Assertions.assertEquals("jvusfzldmozux", - model.properties().dataProtection().snapshot().snapshotPolicyResourceId()); - Assertions.assertEquals("sbtkadpysownbtgk", - model.properties().dataProtection().backup().elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.NOT_ENFORCED, - model.properties().dataProtection().backup().policyEnforcement()); - Assertions.assertEquals("jqctojcmisofie", - model.properties().dataProtection().backup().elasticBackupVaultResourceId()); - Assertions.assertEquals(SnapshotDirectoryVisibility.VISIBLE, model.properties().snapshotDirectoryVisibility()); - Assertions.assertEquals(ElasticSmbEncryption.ENABLED, model.properties().smbProperties().smbEncryption()); - Assertions.assertEquals("qdhcu", model.properties().backupResourceId()); - Assertions.assertEquals("tzbsrgnowcjhf", model.zones().get(0)); - } - - // 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/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeListResultTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeListResultTests.java deleted file mode 100644 index 05b5dd1c71579..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeListResultTests.java +++ /dev/null @@ -1,43 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.implementation.models.ElasticVolumeListResult; -import com.azure.resourcemanager.netapp.models.ElasticProtocolType; -import com.azure.resourcemanager.netapp.models.ElasticSmbEncryption; -import com.azure.resourcemanager.netapp.models.ElasticVolumePolicyEnforcement; -import com.azure.resourcemanager.netapp.models.SnapshotDirectoryVisibility; -import org.junit.jupiter.api.Assertions; - -public final class ElasticVolumeListResultTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticVolumeListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"filePath\":\"teeammxqiekkkzd\",\"size\":8657211280309706558,\"exportPolicy\":{\"rules\":[{}]},\"protocolTypes\":[\"SMB\",\"NFSv3\"],\"provisioningState\":\"Accepted\",\"availabilityStatus\":\"Online\",\"snapshotResourceId\":\"refdee\",\"mountTargets\":[{\"ipAddress\":\"uij\",\"smbServerFqdn\":\"txsu\"},{\"ipAddress\":\"rtujwsawddjibab\",\"smbServerFqdn\":\"ititvtzeexavoxt\"},{\"ipAddress\":\"lecdmdqbw\",\"smbServerFqdn\":\"pqtgsfjac\"}],\"dataProtection\":{\"snapshot\":{\"snapshotPolicyResourceId\":\"hxudbxvodht\"},\"backup\":{\"elasticBackupPolicyResourceId\":\"rudhzmmesckdl\",\"policyEnforcement\":\"NotEnforced\",\"elasticBackupVaultResourceId\":\"rcxfailcfxwmdb\"}},\"snapshotDirectoryVisibility\":\"Visible\",\"smbProperties\":{\"smbEncryption\":\"Disabled\"},\"backupResourceId\":\"tufqobrjlnacgc\",\"restorationState\":\"Restored\"},\"eTag\":\"hxkizvytnrzv\",\"zones\":[\"r\",\"aeranokqgukkjqnv\",\"roylaxxu\",\"cdisd\"],\"location\":\"fj\",\"tags\":{\"vyc\":\"vgjrwhr\",\"c\":\"t\",\"btmvpdvjdhttza\":\"xgccknfnw\"},\"id\":\"fedxihchrphkm\",\"name\":\"rjdqnsdfzp\",\"type\":\"gtgkylkdghr\"},{\"properties\":{\"filePath\":\"uutlwxezwzhok\",\"size\":8527101122757684159,\"exportPolicy\":{\"rules\":[{},{},{}]},\"protocolTypes\":[\"NFSv4\",\"NFSv4\",\"NFSv4\"],\"provisioningState\":\"Failed\",\"availabilityStatus\":\"Offline\",\"snapshotResourceId\":\"ipifhpfeoajvg\",\"mountTargets\":[{\"ipAddress\":\"jcsheafid\",\"smbServerFqdn\":\"ugsresmkssjhoi\"},{\"ipAddress\":\"xfkfwegprhptill\",\"smbServerFqdn\":\"biqtgdq\"},{\"ipAddress\":\"mcwsldrizetpwb\",\"smbServerFqdn\":\"lllibph\"},{\"ipAddress\":\"zmizakakan\",\"smbServerFqdn\":\"p\"}],\"dataProtection\":{\"snapshot\":{\"snapshotPolicyResourceId\":\"ha\"},\"backup\":{\"elasticBackupPolicyResourceId\":\"lhjlmuoyxprimr\",\"policyEnforcement\":\"Enforced\",\"elasticBackupVaultResourceId\":\"eecjmeis\"}},\"snapshotDirectoryVisibility\":\"Hidden\",\"smbProperties\":{\"smbEncryption\":\"Disabled\"},\"backupResourceId\":\"lwxdzaum\",\"restorationState\":\"Failed\"},\"eTag\":\"hguuf\",\"zones\":[\"oyjathwtzol\",\"a\",\"mwmdxmebwjscjpa\"],\"location\":\"xveabf\",\"tags\":{\"ijddtvqc\":\"mwmqtibx\",\"jaeukmrsieekpn\":\"tad\",\"pibudqwyxebeybpm\":\"zaapmudqmeqwi\"},\"id\":\"znrtffyaqit\",\"name\":\"hheioqaqhvseuf\",\"type\":\"qyrxp\"},{\"properties\":{\"filePath\":\"cgq\",\"size\":3611057572336675908,\"exportPolicy\":{\"rules\":[{},{},{}]},\"protocolTypes\":[\"SMB\",\"NFSv4\"],\"provisioningState\":\"Failed\",\"availabilityStatus\":\"Online\",\"snapshotResourceId\":\"quhiosrsjuivf\",\"mountTargets\":[{\"ipAddress\":\"yirnxzhcz\",\"smbServerFqdn\":\"rxzbujr\"}],\"dataProtection\":{\"snapshot\":{\"snapshotPolicyResourceId\":\"vwrevkhgnlnzon\"},\"backup\":{\"elasticBackupPolicyResourceId\":\"piqywnc\",\"policyEnforcement\":\"NotEnforced\",\"elasticBackupVaultResourceId\":\"z\"}},\"snapshotDirectoryVisibility\":\"Visible\",\"smbProperties\":{\"smbEncryption\":\"Enabled\"},\"backupResourceId\":\"tdhgbjkvrelj\",\"restorationState\":\"Restoring\"},\"eTag\":\"rvzmlovuana\",\"zones\":[\"xlpm\",\"erbdk\",\"lvidizozs\"],\"location\":\"ccxjm\",\"tags\":{\"uqj\":\"dgnwncypuuwwlt\",\"if\":\"tzenk\",\"xcudchxgsr\":\"zhmkdasvflyh\",\"lvizb\":\"oldforobw\"},\"id\":\"hfovvacqpbtu\",\"name\":\"dxe\",\"type\":\"zab\"},{\"properties\":{\"filePath\":\"l\",\"size\":741706840028604356,\"exportPolicy\":{\"rules\":[{},{}]},\"protocolTypes\":[\"SMB\",\"SMB\",\"NFSv3\",\"NFSv3\"],\"provisioningState\":\"Moving\",\"availabilityStatus\":\"Online\",\"snapshotResourceId\":\"cqucwyhahnom\",\"mountTargets\":[{\"ipAddress\":\"wuhpsvfuur\",\"smbServerFqdn\":\"lwexxwl\"},{\"ipAddress\":\"niexzsrzpgepq\",\"smbServerFqdn\":\"bb\"},{\"ipAddress\":\"pgdakchzyvli\",\"smbServerFqdn\":\"nrkcxkj\"}],\"dataProtection\":{\"snapshot\":{\"snapshotPolicyResourceId\":\"mysu\"},\"backup\":{\"elasticBackupPolicyResourceId\":\"qrntv\",\"policyEnforcement\":\"Enforced\",\"elasticBackupVaultResourceId\":\"psttexoq\"}},\"snapshotDirectoryVisibility\":\"Visible\",\"smbProperties\":{\"smbEncryption\":\"Disabled\"},\"backupResourceId\":\"fmhruncuwm\",\"restorationState\":\"Restoring\"},\"eTag\":\"cdqzhlctddu\",\"zones\":[\"dyfpchrqbnj\"],\"location\":\"cgegydcwbo\",\"tags\":{\"raiouaubrjtl\":\"mvqqolih\"},\"id\":\"qxfuojrngif\",\"name\":\"rzpasccbiuimzdly\",\"type\":\"dfqwmkyoq\"}],\"nextLink\":\"dvruzslzojhpctf\"}") - .toObject(ElasticVolumeListResult.class); - Assertions.assertEquals("fj", model.value().get(0).location()); - Assertions.assertEquals("vgjrwhr", model.value().get(0).tags().get("vyc")); - Assertions.assertEquals("teeammxqiekkkzd", model.value().get(0).properties().filePath()); - Assertions.assertEquals(8657211280309706558L, model.value().get(0).properties().size()); - Assertions.assertEquals(ElasticProtocolType.SMB, model.value().get(0).properties().protocolTypes().get(0)); - Assertions.assertEquals("refdee", model.value().get(0).properties().snapshotResourceId()); - Assertions.assertEquals("hxudbxvodht", - model.value().get(0).properties().dataProtection().snapshot().snapshotPolicyResourceId()); - Assertions.assertEquals("rudhzmmesckdl", - model.value().get(0).properties().dataProtection().backup().elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.NOT_ENFORCED, - model.value().get(0).properties().dataProtection().backup().policyEnforcement()); - Assertions.assertEquals("rcxfailcfxwmdb", - model.value().get(0).properties().dataProtection().backup().elasticBackupVaultResourceId()); - Assertions.assertEquals(SnapshotDirectoryVisibility.VISIBLE, - model.value().get(0).properties().snapshotDirectoryVisibility()); - Assertions.assertEquals(ElasticSmbEncryption.DISABLED, - model.value().get(0).properties().smbProperties().smbEncryption()); - Assertions.assertEquals("tufqobrjlnacgc", model.value().get(0).properties().backupResourceId()); - Assertions.assertEquals("r", model.value().get(0).zones().get(0)); - Assertions.assertEquals("dvruzslzojhpctf", model.nextLink()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumePropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumePropertiesTests.java deleted file mode 100644 index dce018d0407cf..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumePropertiesTests.java +++ /dev/null @@ -1,94 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticExportPolicy; -import com.azure.resourcemanager.netapp.models.ElasticExportPolicyRule; -import com.azure.resourcemanager.netapp.models.ElasticNfsv3Access; -import com.azure.resourcemanager.netapp.models.ElasticNfsv4Access; -import com.azure.resourcemanager.netapp.models.ElasticProtocolType; -import com.azure.resourcemanager.netapp.models.ElasticRootAccess; -import com.azure.resourcemanager.netapp.models.ElasticSmbEncryption; -import com.azure.resourcemanager.netapp.models.ElasticSmbProperties; -import com.azure.resourcemanager.netapp.models.ElasticUnixAccessRule; -import com.azure.resourcemanager.netapp.models.ElasticVolumeBackupProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumeDataProtectionProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumePolicyEnforcement; -import com.azure.resourcemanager.netapp.models.ElasticVolumeProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumeSnapshotProperties; -import com.azure.resourcemanager.netapp.models.SnapshotDirectoryVisibility; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ElasticVolumePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticVolumeProperties model = BinaryData.fromString( - "{\"filePath\":\"bl\",\"size\":3886221221388785508,\"exportPolicy\":{\"rules\":[{\"ruleIndex\":193875748,\"unixAccessRule\":\"ReadOnly\",\"nfsv3\":\"Enabled\",\"nfsv4\":\"Disabled\",\"allowedClients\":[\"tttwgdslqxih\",\"rmooizqse\",\"pxiutc\",\"apzhyrpetoge\"],\"rootAccess\":\"Enabled\"}]},\"protocolTypes\":[\"NFSv3\",\"SMB\",\"NFSv3\",\"SMB\"],\"provisioningState\":\"Patching\",\"availabilityStatus\":\"Offline\",\"snapshotResourceId\":\"rqnkkzjcjbtr\",\"mountTargets\":[{\"ipAddress\":\"vvib\",\"smbServerFqdn\":\"jj\"},{\"ipAddress\":\"oqbeitpkxzt\",\"smbServerFqdn\":\"ob\"}],\"dataProtection\":{\"snapshot\":{\"snapshotPolicyResourceId\":\"idgfc\"},\"backup\":{\"elasticBackupPolicyResourceId\":\"pimaqxzhemjyh\",\"policyEnforcement\":\"Enforced\",\"elasticBackupVaultResourceId\":\"swtwkozzwc\"}},\"snapshotDirectoryVisibility\":\"Hidden\",\"smbProperties\":{\"smbEncryption\":\"Enabled\"},\"backupResourceId\":\"fajnjwltlwtjjguk\",\"restorationState\":\"Restoring\"}") - .toObject(ElasticVolumeProperties.class); - Assertions.assertEquals("bl", model.filePath()); - Assertions.assertEquals(3886221221388785508L, model.size()); - Assertions.assertEquals(193875748, model.exportPolicy().rules().get(0).ruleIndex()); - Assertions.assertEquals(ElasticUnixAccessRule.READ_ONLY, model.exportPolicy().rules().get(0).unixAccessRule()); - Assertions.assertEquals(ElasticNfsv3Access.ENABLED, model.exportPolicy().rules().get(0).nfsv3()); - Assertions.assertEquals(ElasticNfsv4Access.DISABLED, model.exportPolicy().rules().get(0).nfsv4()); - Assertions.assertEquals("tttwgdslqxih", model.exportPolicy().rules().get(0).allowedClients().get(0)); - Assertions.assertEquals(ElasticRootAccess.ENABLED, model.exportPolicy().rules().get(0).rootAccess()); - Assertions.assertEquals(ElasticProtocolType.NFSV3, model.protocolTypes().get(0)); - Assertions.assertEquals("rqnkkzjcjbtr", model.snapshotResourceId()); - Assertions.assertEquals("idgfc", model.dataProtection().snapshot().snapshotPolicyResourceId()); - Assertions.assertEquals("pimaqxzhemjyh", model.dataProtection().backup().elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.ENFORCED, - model.dataProtection().backup().policyEnforcement()); - Assertions.assertEquals("swtwkozzwc", model.dataProtection().backup().elasticBackupVaultResourceId()); - Assertions.assertEquals(SnapshotDirectoryVisibility.HIDDEN, model.snapshotDirectoryVisibility()); - Assertions.assertEquals(ElasticSmbEncryption.ENABLED, model.smbProperties().smbEncryption()); - Assertions.assertEquals("fajnjwltlwtjjguk", model.backupResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticVolumeProperties model = new ElasticVolumeProperties().withFilePath("bl") - .withSize(3886221221388785508L) - .withExportPolicy( - new ElasticExportPolicy().withRules(Arrays.asList(new ElasticExportPolicyRule().withRuleIndex(193875748) - .withUnixAccessRule(ElasticUnixAccessRule.READ_ONLY) - .withNfsv3(ElasticNfsv3Access.ENABLED) - .withNfsv4(ElasticNfsv4Access.DISABLED) - .withAllowedClients(Arrays.asList("tttwgdslqxih", "rmooizqse", "pxiutc", "apzhyrpetoge")) - .withRootAccess(ElasticRootAccess.ENABLED)))) - .withProtocolTypes(Arrays.asList(ElasticProtocolType.NFSV3, ElasticProtocolType.SMB, - ElasticProtocolType.NFSV3, ElasticProtocolType.SMB)) - .withSnapshotResourceId("rqnkkzjcjbtr") - .withDataProtection(new ElasticVolumeDataProtectionProperties() - .withSnapshot(new ElasticVolumeSnapshotProperties().withSnapshotPolicyResourceId("idgfc")) - .withBackup(new ElasticVolumeBackupProperties().withElasticBackupPolicyResourceId("pimaqxzhemjyh") - .withPolicyEnforcement(ElasticVolumePolicyEnforcement.ENFORCED) - .withElasticBackupVaultResourceId("swtwkozzwc"))) - .withSnapshotDirectoryVisibility(SnapshotDirectoryVisibility.HIDDEN) - .withSmbProperties(new ElasticSmbProperties().withSmbEncryption(ElasticSmbEncryption.ENABLED)) - .withBackupResourceId("fajnjwltlwtjjguk"); - model = BinaryData.fromObject(model).toObject(ElasticVolumeProperties.class); - Assertions.assertEquals("bl", model.filePath()); - Assertions.assertEquals(3886221221388785508L, model.size()); - Assertions.assertEquals(193875748, model.exportPolicy().rules().get(0).ruleIndex()); - Assertions.assertEquals(ElasticUnixAccessRule.READ_ONLY, model.exportPolicy().rules().get(0).unixAccessRule()); - Assertions.assertEquals(ElasticNfsv3Access.ENABLED, model.exportPolicy().rules().get(0).nfsv3()); - Assertions.assertEquals(ElasticNfsv4Access.DISABLED, model.exportPolicy().rules().get(0).nfsv4()); - Assertions.assertEquals("tttwgdslqxih", model.exportPolicy().rules().get(0).allowedClients().get(0)); - Assertions.assertEquals(ElasticRootAccess.ENABLED, model.exportPolicy().rules().get(0).rootAccess()); - Assertions.assertEquals(ElasticProtocolType.NFSV3, model.protocolTypes().get(0)); - Assertions.assertEquals("rqnkkzjcjbtr", model.snapshotResourceId()); - Assertions.assertEquals("idgfc", model.dataProtection().snapshot().snapshotPolicyResourceId()); - Assertions.assertEquals("pimaqxzhemjyh", model.dataProtection().backup().elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.ENFORCED, - model.dataProtection().backup().policyEnforcement()); - Assertions.assertEquals("swtwkozzwc", model.dataProtection().backup().elasticBackupVaultResourceId()); - Assertions.assertEquals(SnapshotDirectoryVisibility.HIDDEN, model.snapshotDirectoryVisibility()); - Assertions.assertEquals(ElasticSmbEncryption.ENABLED, model.smbProperties().smbEncryption()); - Assertions.assertEquals("fajnjwltlwtjjguk", model.backupResourceId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeRevertTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeRevertTests.java deleted file mode 100644 index 8fdabb3d79d31..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeRevertTests.java +++ /dev/null @@ -1,25 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticVolumeRevert; -import org.junit.jupiter.api.Assertions; - -public final class ElasticVolumeRevertTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticVolumeRevert model - = BinaryData.fromString("{\"snapshotResourceId\":\"dxotng\"}").toObject(ElasticVolumeRevert.class); - Assertions.assertEquals("dxotng", model.snapshotResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticVolumeRevert model = new ElasticVolumeRevert().withSnapshotResourceId("dxotng"); - model = BinaryData.fromObject(model).toObject(ElasticVolumeRevert.class); - Assertions.assertEquals("dxotng", model.snapshotResourceId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeSnapshotPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeSnapshotPropertiesTests.java deleted file mode 100644 index 29fbbf58ca6ff..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeSnapshotPropertiesTests.java +++ /dev/null @@ -1,27 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticVolumeSnapshotProperties; -import org.junit.jupiter.api.Assertions; - -public final class ElasticVolumeSnapshotPropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticVolumeSnapshotProperties model - = BinaryData.fromString("{\"snapshotPolicyResourceId\":\"hdqazkmtgguwp\"}") - .toObject(ElasticVolumeSnapshotProperties.class); - Assertions.assertEquals("hdqazkmtgguwp", model.snapshotPolicyResourceId()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticVolumeSnapshotProperties model - = new ElasticVolumeSnapshotProperties().withSnapshotPolicyResourceId("hdqazkmtgguwp"); - model = BinaryData.fromObject(model).toObject(ElasticVolumeSnapshotProperties.class); - Assertions.assertEquals("hdqazkmtgguwp", model.snapshotPolicyResourceId()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeUpdatePropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeUpdatePropertiesTests.java deleted file mode 100644 index 7e1e9908222d8..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeUpdatePropertiesTests.java +++ /dev/null @@ -1,86 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticExportPolicy; -import com.azure.resourcemanager.netapp.models.ElasticExportPolicyRule; -import com.azure.resourcemanager.netapp.models.ElasticNfsv3Access; -import com.azure.resourcemanager.netapp.models.ElasticNfsv4Access; -import com.azure.resourcemanager.netapp.models.ElasticRootAccess; -import com.azure.resourcemanager.netapp.models.ElasticSmbEncryption; -import com.azure.resourcemanager.netapp.models.ElasticSmbPatchProperties; -import com.azure.resourcemanager.netapp.models.ElasticUnixAccessRule; -import com.azure.resourcemanager.netapp.models.ElasticVolumeBackupProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumeDataProtectionPatchProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumePolicyEnforcement; -import com.azure.resourcemanager.netapp.models.ElasticVolumeSnapshotProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumeUpdateProperties; -import com.azure.resourcemanager.netapp.models.SnapshotDirectoryVisibility; -import java.util.Arrays; -import org.junit.jupiter.api.Assertions; - -public final class ElasticVolumeUpdatePropertiesTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticVolumeUpdateProperties model = BinaryData.fromString( - "{\"size\":5321233656835013647,\"exportPolicy\":{\"rules\":[{\"ruleIndex\":1800110701,\"unixAccessRule\":\"NoAccess\",\"nfsv3\":\"Disabled\",\"nfsv4\":\"Enabled\",\"allowedClients\":[\"bkbxgomfa\",\"uwasqvd\",\"e\"],\"rootAccess\":\"Enabled\"},{\"ruleIndex\":534805612,\"unixAccessRule\":\"NoAccess\",\"nfsv3\":\"Disabled\",\"nfsv4\":\"Disabled\",\"allowedClients\":[\"bezkgimsidxasic\",\"dyvvjskgfmocwahp\",\"gat\",\"eaahhvjhhn\"],\"rootAccess\":\"Enabled\"}]},\"dataProtection\":{\"snapshot\":{\"snapshotPolicyResourceId\":\"jjidjk\"},\"backup\":{\"elasticBackupPolicyResourceId\":\"kyxvxevblbjedn\",\"policyEnforcement\":\"NotEnforced\",\"elasticBackupVaultResourceId\":\"geuaulx\"}},\"snapshotDirectoryVisibility\":\"Visible\",\"smbProperties\":{\"smbEncryption\":\"Enabled\"}}") - .toObject(ElasticVolumeUpdateProperties.class); - Assertions.assertEquals(5321233656835013647L, model.size()); - Assertions.assertEquals(1800110701, model.exportPolicy().rules().get(0).ruleIndex()); - Assertions.assertEquals(ElasticUnixAccessRule.NO_ACCESS, model.exportPolicy().rules().get(0).unixAccessRule()); - Assertions.assertEquals(ElasticNfsv3Access.DISABLED, model.exportPolicy().rules().get(0).nfsv3()); - Assertions.assertEquals(ElasticNfsv4Access.ENABLED, model.exportPolicy().rules().get(0).nfsv4()); - Assertions.assertEquals("bkbxgomfa", model.exportPolicy().rules().get(0).allowedClients().get(0)); - Assertions.assertEquals(ElasticRootAccess.ENABLED, model.exportPolicy().rules().get(0).rootAccess()); - Assertions.assertEquals("jjidjk", model.dataProtection().snapshot().snapshotPolicyResourceId()); - Assertions.assertEquals("kyxvxevblbjedn", model.dataProtection().backup().elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.NOT_ENFORCED, - model.dataProtection().backup().policyEnforcement()); - Assertions.assertEquals("geuaulx", model.dataProtection().backup().elasticBackupVaultResourceId()); - Assertions.assertEquals(SnapshotDirectoryVisibility.VISIBLE, model.snapshotDirectoryVisibility()); - Assertions.assertEquals(ElasticSmbEncryption.ENABLED, model.smbProperties().smbEncryption()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticVolumeUpdateProperties model = new ElasticVolumeUpdateProperties().withSize(5321233656835013647L) - .withExportPolicy(new ElasticExportPolicy().withRules(Arrays.asList( - new ElasticExportPolicyRule().withRuleIndex(1800110701) - .withUnixAccessRule(ElasticUnixAccessRule.NO_ACCESS) - .withNfsv3(ElasticNfsv3Access.DISABLED) - .withNfsv4(ElasticNfsv4Access.ENABLED) - .withAllowedClients(Arrays.asList("bkbxgomfa", "uwasqvd", "e")) - .withRootAccess(ElasticRootAccess.ENABLED), - new ElasticExportPolicyRule().withRuleIndex(534805612) - .withUnixAccessRule(ElasticUnixAccessRule.NO_ACCESS) - .withNfsv3(ElasticNfsv3Access.DISABLED) - .withNfsv4(ElasticNfsv4Access.DISABLED) - .withAllowedClients(Arrays.asList("bezkgimsidxasic", "dyvvjskgfmocwahp", "gat", "eaahhvjhhn")) - .withRootAccess(ElasticRootAccess.ENABLED)))) - .withDataProtection(new ElasticVolumeDataProtectionPatchProperties() - .withSnapshot(new ElasticVolumeSnapshotProperties().withSnapshotPolicyResourceId("jjidjk")) - .withBackup(new ElasticVolumeBackupProperties().withElasticBackupPolicyResourceId("kyxvxevblbjedn") - .withPolicyEnforcement(ElasticVolumePolicyEnforcement.NOT_ENFORCED) - .withElasticBackupVaultResourceId("geuaulx"))) - .withSnapshotDirectoryVisibility(SnapshotDirectoryVisibility.VISIBLE) - .withSmbProperties(new ElasticSmbPatchProperties().withSmbEncryption(ElasticSmbEncryption.ENABLED)); - model = BinaryData.fromObject(model).toObject(ElasticVolumeUpdateProperties.class); - Assertions.assertEquals(5321233656835013647L, model.size()); - Assertions.assertEquals(1800110701, model.exportPolicy().rules().get(0).ruleIndex()); - Assertions.assertEquals(ElasticUnixAccessRule.NO_ACCESS, model.exportPolicy().rules().get(0).unixAccessRule()); - Assertions.assertEquals(ElasticNfsv3Access.DISABLED, model.exportPolicy().rules().get(0).nfsv3()); - Assertions.assertEquals(ElasticNfsv4Access.ENABLED, model.exportPolicy().rules().get(0).nfsv4()); - Assertions.assertEquals("bkbxgomfa", model.exportPolicy().rules().get(0).allowedClients().get(0)); - Assertions.assertEquals(ElasticRootAccess.ENABLED, model.exportPolicy().rules().get(0).rootAccess()); - Assertions.assertEquals("jjidjk", model.dataProtection().snapshot().snapshotPolicyResourceId()); - Assertions.assertEquals("kyxvxevblbjedn", model.dataProtection().backup().elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.NOT_ENFORCED, - model.dataProtection().backup().policyEnforcement()); - Assertions.assertEquals("geuaulx", model.dataProtection().backup().elasticBackupVaultResourceId()); - Assertions.assertEquals(SnapshotDirectoryVisibility.VISIBLE, model.snapshotDirectoryVisibility()); - Assertions.assertEquals(ElasticSmbEncryption.ENABLED, model.smbProperties().smbEncryption()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeUpdateTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeUpdateTests.java deleted file mode 100644 index 41060487bb254..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumeUpdateTests.java +++ /dev/null @@ -1,134 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.ElasticExportPolicy; -import com.azure.resourcemanager.netapp.models.ElasticExportPolicyRule; -import com.azure.resourcemanager.netapp.models.ElasticNfsv3Access; -import com.azure.resourcemanager.netapp.models.ElasticNfsv4Access; -import com.azure.resourcemanager.netapp.models.ElasticRootAccess; -import com.azure.resourcemanager.netapp.models.ElasticSmbEncryption; -import com.azure.resourcemanager.netapp.models.ElasticSmbPatchProperties; -import com.azure.resourcemanager.netapp.models.ElasticUnixAccessRule; -import com.azure.resourcemanager.netapp.models.ElasticVolumeBackupProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumeDataProtectionPatchProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumePolicyEnforcement; -import com.azure.resourcemanager.netapp.models.ElasticVolumeSnapshotProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumeUpdate; -import com.azure.resourcemanager.netapp.models.ElasticVolumeUpdateProperties; -import com.azure.resourcemanager.netapp.models.SnapshotDirectoryVisibility; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; - -public final class ElasticVolumeUpdateTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ElasticVolumeUpdate model = BinaryData.fromString( - "{\"tags\":{\"oxgsgbpfgzdjtx\":\"inzqodfvpgs\",\"qvlgafcqusrdvetn\":\"zflbqvg\",\"uzhyrmewipmvekdx\":\"sdtutnwlduyc\"},\"properties\":{\"size\":8567067499815632576,\"exportPolicy\":{\"rules\":[{\"ruleIndex\":228868871,\"unixAccessRule\":\"ReadOnly\",\"nfsv3\":\"Disabled\",\"nfsv4\":\"Enabled\",\"allowedClients\":[\"zhhzjhfjmhvvmu\",\"gpmuneqsxvmhfbuz\",\"yihsasbhudypohyu\",\"ms\"],\"rootAccess\":\"Disabled\"},{\"ruleIndex\":968834448,\"unixAccessRule\":\"NoAccess\",\"nfsv3\":\"Disabled\",\"nfsv4\":\"Enabled\",\"allowedClients\":[\"lttymsjn\",\"gqdnfwqzd\",\"gtilax\",\"nfhqlyvijouwivk\"],\"rootAccess\":\"Disabled\"},{\"ruleIndex\":490725767,\"unixAccessRule\":\"ReadWrite\",\"nfsv3\":\"Enabled\",\"nfsv4\":\"Disabled\",\"allowedClients\":[\"kvcpwpgclr\",\"ivtsoxfrkenxpm\"],\"rootAccess\":\"Enabled\"},{\"ruleIndex\":892788506,\"unixAccessRule\":\"ReadOnly\",\"nfsv3\":\"Disabled\",\"nfsv4\":\"Enabled\",\"allowedClients\":[\"ka\",\"ao\",\"vmm\"],\"rootAccess\":\"Disabled\"}]},\"dataProtection\":{\"snapshot\":{\"snapshotPolicyResourceId\":\"tqlkz\"},\"backup\":{\"elasticBackupPolicyResourceId\":\"nitgvkxlz\",\"policyEnforcement\":\"Enforced\",\"elasticBackupVaultResourceId\":\"fegcea\"}},\"snapshotDirectoryVisibility\":\"Hidden\",\"smbProperties\":{\"smbEncryption\":\"Disabled\"}}}") - .toObject(ElasticVolumeUpdate.class); - Assertions.assertEquals("inzqodfvpgs", model.tags().get("oxgsgbpfgzdjtx")); - Assertions.assertEquals(8567067499815632576L, model.properties().size()); - Assertions.assertEquals(228868871, model.properties().exportPolicy().rules().get(0).ruleIndex()); - Assertions.assertEquals(ElasticUnixAccessRule.READ_ONLY, - model.properties().exportPolicy().rules().get(0).unixAccessRule()); - Assertions.assertEquals(ElasticNfsv3Access.DISABLED, model.properties().exportPolicy().rules().get(0).nfsv3()); - Assertions.assertEquals(ElasticNfsv4Access.ENABLED, model.properties().exportPolicy().rules().get(0).nfsv4()); - Assertions.assertEquals("zhhzjhfjmhvvmu", - model.properties().exportPolicy().rules().get(0).allowedClients().get(0)); - Assertions.assertEquals(ElasticRootAccess.DISABLED, - model.properties().exportPolicy().rules().get(0).rootAccess()); - Assertions.assertEquals("tqlkz", model.properties().dataProtection().snapshot().snapshotPolicyResourceId()); - Assertions.assertEquals("nitgvkxlz", - model.properties().dataProtection().backup().elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.ENFORCED, - model.properties().dataProtection().backup().policyEnforcement()); - Assertions.assertEquals("fegcea", model.properties().dataProtection().backup().elasticBackupVaultResourceId()); - Assertions.assertEquals(SnapshotDirectoryVisibility.HIDDEN, model.properties().snapshotDirectoryVisibility()); - Assertions.assertEquals(ElasticSmbEncryption.DISABLED, model.properties().smbProperties().smbEncryption()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - ElasticVolumeUpdate model - = new ElasticVolumeUpdate() - .withTags(mapOf("oxgsgbpfgzdjtx", "inzqodfvpgs", "qvlgafcqusrdvetn", "zflbqvg", "uzhyrmewipmvekdx", - "sdtutnwlduyc")) - .withProperties( - new ElasticVolumeUpdateProperties().withSize(8567067499815632576L) - .withExportPolicy( - new ElasticExportPolicy() - .withRules(Arrays.asList( - new ElasticExportPolicyRule().withRuleIndex(228868871) - .withUnixAccessRule(ElasticUnixAccessRule.READ_ONLY) - .withNfsv3(ElasticNfsv3Access.DISABLED) - .withNfsv4(ElasticNfsv4Access.ENABLED) - .withAllowedClients(Arrays.asList("zhhzjhfjmhvvmu", "gpmuneqsxvmhfbuz", - "yihsasbhudypohyu", "ms")) - .withRootAccess(ElasticRootAccess.DISABLED), - new ElasticExportPolicyRule().withRuleIndex(968834448) - .withUnixAccessRule(ElasticUnixAccessRule.NO_ACCESS) - .withNfsv3(ElasticNfsv3Access.DISABLED) - .withNfsv4(ElasticNfsv4Access.ENABLED) - .withAllowedClients( - Arrays.asList("lttymsjn", "gqdnfwqzd", "gtilax", "nfhqlyvijouwivk")) - .withRootAccess(ElasticRootAccess.DISABLED), - new ElasticExportPolicyRule().withRuleIndex(490725767) - .withUnixAccessRule(ElasticUnixAccessRule.READ_WRITE) - .withNfsv3(ElasticNfsv3Access.ENABLED) - .withNfsv4(ElasticNfsv4Access.DISABLED) - .withAllowedClients(Arrays.asList("kvcpwpgclr", "ivtsoxfrkenxpm")) - .withRootAccess(ElasticRootAccess.ENABLED), - new ElasticExportPolicyRule().withRuleIndex(892788506) - .withUnixAccessRule(ElasticUnixAccessRule.READ_ONLY) - .withNfsv3(ElasticNfsv3Access.DISABLED) - .withNfsv4(ElasticNfsv4Access.ENABLED) - .withAllowedClients(Arrays.asList("ka", "ao", "vmm")) - .withRootAccess(ElasticRootAccess.DISABLED)))) - .withDataProtection(new ElasticVolumeDataProtectionPatchProperties() - .withSnapshot(new ElasticVolumeSnapshotProperties().withSnapshotPolicyResourceId("tqlkz")) - .withBackup( - new ElasticVolumeBackupProperties().withElasticBackupPolicyResourceId("nitgvkxlz") - .withPolicyEnforcement(ElasticVolumePolicyEnforcement.ENFORCED) - .withElasticBackupVaultResourceId("fegcea"))) - .withSnapshotDirectoryVisibility(SnapshotDirectoryVisibility.HIDDEN) - .withSmbProperties( - new ElasticSmbPatchProperties().withSmbEncryption(ElasticSmbEncryption.DISABLED))); - model = BinaryData.fromObject(model).toObject(ElasticVolumeUpdate.class); - Assertions.assertEquals("inzqodfvpgs", model.tags().get("oxgsgbpfgzdjtx")); - Assertions.assertEquals(8567067499815632576L, model.properties().size()); - Assertions.assertEquals(228868871, model.properties().exportPolicy().rules().get(0).ruleIndex()); - Assertions.assertEquals(ElasticUnixAccessRule.READ_ONLY, - model.properties().exportPolicy().rules().get(0).unixAccessRule()); - Assertions.assertEquals(ElasticNfsv3Access.DISABLED, model.properties().exportPolicy().rules().get(0).nfsv3()); - Assertions.assertEquals(ElasticNfsv4Access.ENABLED, model.properties().exportPolicy().rules().get(0).nfsv4()); - Assertions.assertEquals("zhhzjhfjmhvvmu", - model.properties().exportPolicy().rules().get(0).allowedClients().get(0)); - Assertions.assertEquals(ElasticRootAccess.DISABLED, - model.properties().exportPolicy().rules().get(0).rootAccess()); - Assertions.assertEquals("tqlkz", model.properties().dataProtection().snapshot().snapshotPolicyResourceId()); - Assertions.assertEquals("nitgvkxlz", - model.properties().dataProtection().backup().elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.ENFORCED, - model.properties().dataProtection().backup().policyEnforcement()); - Assertions.assertEquals("fegcea", model.properties().dataProtection().backup().elasticBackupVaultResourceId()); - Assertions.assertEquals(SnapshotDirectoryVisibility.HIDDEN, model.properties().snapshotDirectoryVisibility()); - Assertions.assertEquals(ElasticSmbEncryption.DISABLED, model.properties().smbProperties().smbEncryption()); - } - - // 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/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesCreateOrUpdateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesCreateOrUpdateMockTests.java deleted file mode 100644 index 82e6e0fb87382..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesCreateOrUpdateMockTests.java +++ /dev/null @@ -1,139 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.ElasticExportPolicy; -import com.azure.resourcemanager.netapp.models.ElasticExportPolicyRule; -import com.azure.resourcemanager.netapp.models.ElasticNfsv3Access; -import com.azure.resourcemanager.netapp.models.ElasticNfsv4Access; -import com.azure.resourcemanager.netapp.models.ElasticProtocolType; -import com.azure.resourcemanager.netapp.models.ElasticRootAccess; -import com.azure.resourcemanager.netapp.models.ElasticSmbEncryption; -import com.azure.resourcemanager.netapp.models.ElasticSmbProperties; -import com.azure.resourcemanager.netapp.models.ElasticUnixAccessRule; -import com.azure.resourcemanager.netapp.models.ElasticVolume; -import com.azure.resourcemanager.netapp.models.ElasticVolumeBackupProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumeDataProtectionProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumePolicyEnforcement; -import com.azure.resourcemanager.netapp.models.ElasticVolumeProperties; -import com.azure.resourcemanager.netapp.models.ElasticVolumeSnapshotProperties; -import com.azure.resourcemanager.netapp.models.SnapshotDirectoryVisibility; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import java.util.Arrays; -import java.util.HashMap; -import java.util.Map; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticVolumesCreateOrUpdateMockTests { - @Test - public void testCreateOrUpdate() throws Exception { - String responseStr - = "{\"properties\":{\"filePath\":\"jehhci\",\"size\":7932807147497347629,\"exportPolicy\":{\"rules\":[{\"ruleIndex\":614061983,\"unixAccessRule\":\"ReadWrite\",\"nfsv3\":\"Enabled\",\"nfsv4\":\"Enabled\",\"allowedClients\":[\"tfpwpqbyejuw\",\"qwdqi\"],\"rootAccess\":\"Enabled\"}]},\"protocolTypes\":[\"SMB\"],\"provisioningState\":\"Succeeded\",\"availabilityStatus\":\"Offline\",\"snapshotResourceId\":\"lujkhn\",\"mountTargets\":[{\"ipAddress\":\"nkfm\",\"smbServerFqdn\":\"cqtwmlmhjnqtq\"},{\"ipAddress\":\"hj\",\"smbServerFqdn\":\"vragpokddx\"},{\"ipAddress\":\"hhkvguavtptbk\",\"smbServerFqdn\":\"kqynspgbvo\"},{\"ipAddress\":\"bkkwvdxae\",\"smbServerFqdn\":\"okmyr\"}],\"dataProtection\":{\"snapshot\":{\"snapshotPolicyResourceId\":\"lzbnobrqlpbcjt\"},\"backup\":{\"elasticBackupPolicyResourceId\":\"uyudivbxnhsq\",\"policyEnforcement\":\"NotEnforced\",\"elasticBackupVaultResourceId\":\"nqelwgdhuru\"}},\"snapshotDirectoryVisibility\":\"Visible\",\"smbProperties\":{\"smbEncryption\":\"Disabled\"},\"backupResourceId\":\"gatmoljiy\",\"restorationState\":\"Restored\"},\"eTag\":\"nmzvf\",\"zones\":[\"erzztrkn\",\"j\",\"lugdybnhrxlelf\",\"hkeizcp\"],\"location\":\"tdmiwjekptyca\",\"tags\":{\"mhsurlgwqkpmm\":\"jzcqymlcfnz\",\"wiubmomsgvv\":\"pstauol\",\"hewjjmajnkdflqio\":\"hvvlrl\",\"xjoshohtotryegpk\":\"swaeqkzfz\"},\"id\":\"xrmexznlw\",\"name\":\"bfokxkhu\",\"type\":\"ze\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - ElasticVolume response - = manager.elasticVolumes() - .define("jotvmrxkhl") - .withRegion("i") - .withExistingElasticCapacityPool("ekaj", "lyzgsnor", "jgmn") - .withTags(mapOf("bym", "dvatdavuqm", "mvpsimioyo", "fobjlquvjezcj", "clibbfqpsp", "glkmiqwnnr", - "exzgpmnmabedd", "ladydgnhautwu")) - .withProperties( - new ElasticVolumeProperties().withFilePath("vvjbhvhdiqayf") - .withSize(8301836892382370169L) - .withExportPolicy( - new ElasticExportPolicy() - .withRules(Arrays.asList( - new ElasticExportPolicyRule().withRuleIndex(92268889) - .withUnixAccessRule(ElasticUnixAccessRule.NO_ACCESS) - .withNfsv3(ElasticNfsv3Access.ENABLED) - .withNfsv4(ElasticNfsv4Access.DISABLED) - .withAllowedClients( - Arrays.asList("yibdrqrswhbuu", "pyrowtj", "xztfwfqchvczevj")) - .withRootAccess(ElasticRootAccess.ENABLED), - new ElasticExportPolicyRule().withRuleIndex(608828807) - .withUnixAccessRule(ElasticUnixAccessRule.READ_ONLY) - .withNfsv3(ElasticNfsv3Access.ENABLED) - .withNfsv4(ElasticNfsv4Access.DISABLED) - .withAllowedClients(Arrays.asList("pemhzcgkrepdqhqy", "wqwemvxqabckmze")) - .withRootAccess(ElasticRootAccess.ENABLED), - new ElasticExportPolicyRule().withRuleIndex(1218068854) - .withUnixAccessRule(ElasticUnixAccessRule.READ_ONLY) - .withNfsv3(ElasticNfsv3Access.DISABLED) - .withNfsv4(ElasticNfsv4Access.DISABLED) - .withAllowedClients(Arrays.asList("lpuzjpcee")) - .withRootAccess(ElasticRootAccess.DISABLED)))) - .withProtocolTypes(Arrays.asList(ElasticProtocolType.NFSV3)) - .withSnapshotResourceId("axyxzlbciphm") - .withDataProtection(new ElasticVolumeDataProtectionProperties() - .withSnapshot(new ElasticVolumeSnapshotProperties().withSnapshotPolicyResourceId("ixx")) - .withBackup(new ElasticVolumeBackupProperties().withElasticBackupPolicyResourceId("zk") - .withPolicyEnforcement(ElasticVolumePolicyEnforcement.NOT_ENFORCED) - .withElasticBackupVaultResourceId("wpiwxeiicrmpep"))) - .withSnapshotDirectoryVisibility(SnapshotDirectoryVisibility.HIDDEN) - .withSmbProperties(new ElasticSmbProperties().withSmbEncryption(ElasticSmbEncryption.ENABLED)) - .withBackupResourceId("ijvs")) - .withZones(Arrays.asList("asekwefcvoinw", "qartwy")) - .create(); - - Assertions.assertEquals("tdmiwjekptyca", response.location()); - Assertions.assertEquals("jzcqymlcfnz", response.tags().get("mhsurlgwqkpmm")); - Assertions.assertEquals("jehhci", response.properties().filePath()); - Assertions.assertEquals(7932807147497347629L, response.properties().size()); - Assertions.assertEquals(614061983, response.properties().exportPolicy().rules().get(0).ruleIndex()); - Assertions.assertEquals(ElasticUnixAccessRule.READ_WRITE, - response.properties().exportPolicy().rules().get(0).unixAccessRule()); - Assertions.assertEquals(ElasticNfsv3Access.ENABLED, - response.properties().exportPolicy().rules().get(0).nfsv3()); - Assertions.assertEquals(ElasticNfsv4Access.ENABLED, - response.properties().exportPolicy().rules().get(0).nfsv4()); - Assertions.assertEquals("tfpwpqbyejuw", - response.properties().exportPolicy().rules().get(0).allowedClients().get(0)); - Assertions.assertEquals(ElasticRootAccess.ENABLED, - response.properties().exportPolicy().rules().get(0).rootAccess()); - Assertions.assertEquals(ElasticProtocolType.SMB, response.properties().protocolTypes().get(0)); - Assertions.assertEquals("lujkhn", response.properties().snapshotResourceId()); - Assertions.assertEquals("lzbnobrqlpbcjt", - response.properties().dataProtection().snapshot().snapshotPolicyResourceId()); - Assertions.assertEquals("uyudivbxnhsq", - response.properties().dataProtection().backup().elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.NOT_ENFORCED, - response.properties().dataProtection().backup().policyEnforcement()); - Assertions.assertEquals("nqelwgdhuru", - response.properties().dataProtection().backup().elasticBackupVaultResourceId()); - Assertions.assertEquals(SnapshotDirectoryVisibility.VISIBLE, - response.properties().snapshotDirectoryVisibility()); - Assertions.assertEquals(ElasticSmbEncryption.DISABLED, response.properties().smbProperties().smbEncryption()); - Assertions.assertEquals("gatmoljiy", response.properties().backupResourceId()); - Assertions.assertEquals("erzztrkn", response.zones().get(0)); - } - - // 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/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesGetWithResponseMockTests.java deleted file mode 100644 index 75234679a6ad7..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesGetWithResponseMockTests.java +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.ElasticNfsv3Access; -import com.azure.resourcemanager.netapp.models.ElasticNfsv4Access; -import com.azure.resourcemanager.netapp.models.ElasticProtocolType; -import com.azure.resourcemanager.netapp.models.ElasticRootAccess; -import com.azure.resourcemanager.netapp.models.ElasticSmbEncryption; -import com.azure.resourcemanager.netapp.models.ElasticUnixAccessRule; -import com.azure.resourcemanager.netapp.models.ElasticVolume; -import com.azure.resourcemanager.netapp.models.ElasticVolumePolicyEnforcement; -import com.azure.resourcemanager.netapp.models.SnapshotDirectoryVisibility; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticVolumesGetWithResponseMockTests { - @Test - public void testGetWithResponse() throws Exception { - String responseStr - = "{\"properties\":{\"filePath\":\"fiijrykwlefksxqc\",\"size\":6075281185802035336,\"exportPolicy\":{\"rules\":[{\"ruleIndex\":144245024,\"unixAccessRule\":\"ReadOnly\",\"nfsv3\":\"Disabled\",\"nfsv4\":\"Disabled\",\"allowedClients\":[\"q\",\"aiossscyvaifp\"],\"rootAccess\":\"Disabled\"},{\"ruleIndex\":838955449,\"unixAccessRule\":\"ReadOnly\",\"nfsv3\":\"Enabled\",\"nfsv4\":\"Enabled\",\"allowedClients\":[\"x\",\"jdhsoy\",\"hpvtyqftteh\"],\"rootAccess\":\"Disabled\"},{\"ruleIndex\":1172847496,\"unixAccessRule\":\"ReadWrite\",\"nfsv3\":\"Disabled\",\"nfsv4\":\"Disabled\",\"allowedClients\":[\"shxcdedsuenygnxc\"],\"rootAccess\":\"Enabled\"}]},\"protocolTypes\":[\"NFSv3\"],\"provisioningState\":\"Moving\",\"availabilityStatus\":\"Online\",\"snapshotResourceId\":\"rf\",\"mountTargets\":[{\"ipAddress\":\"lr\",\"smbServerFqdn\":\"myltrwntfmtbg\"},{\"ipAddress\":\"dxwnazkurrd\",\"smbServerFqdn\":\"yzjwhsetwwjwzzq\"}],\"dataProtection\":{\"snapshot\":{\"snapshotPolicyResourceId\":\"uukykcyqh\"},\"backup\":{\"elasticBackupPolicyResourceId\":\"zzdcykeys\",\"policyEnforcement\":\"NotEnforced\",\"elasticBackupVaultResourceId\":\"opazdazgbs\"}},\"snapshotDirectoryVisibility\":\"Hidden\",\"smbProperties\":{\"smbEncryption\":\"Enabled\"},\"backupResourceId\":\"fut\",\"restorationState\":\"Failed\"},\"eTag\":\"ozglq\",\"zones\":[\"nlzclctz\"],\"location\":\"owmnd\",\"tags\":{\"wkudrbcpf\":\"dwzqauxzanhmkvfr\"},\"id\":\"xudqyemebunaucmc\",\"name\":\"rtneemmja\",\"type\":\"wcgxefnohait\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - ElasticVolume response = manager.elasticVolumes() - .getWithResponse("wwxwjyofgw", "nkbtlwljss", "ctsnldkpwol", "isubxbteog", com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("owmnd", response.location()); - Assertions.assertEquals("dwzqauxzanhmkvfr", response.tags().get("wkudrbcpf")); - Assertions.assertEquals("fiijrykwlefksxqc", response.properties().filePath()); - Assertions.assertEquals(6075281185802035336L, response.properties().size()); - Assertions.assertEquals(144245024, response.properties().exportPolicy().rules().get(0).ruleIndex()); - Assertions.assertEquals(ElasticUnixAccessRule.READ_ONLY, - response.properties().exportPolicy().rules().get(0).unixAccessRule()); - Assertions.assertEquals(ElasticNfsv3Access.DISABLED, - response.properties().exportPolicy().rules().get(0).nfsv3()); - Assertions.assertEquals(ElasticNfsv4Access.DISABLED, - response.properties().exportPolicy().rules().get(0).nfsv4()); - Assertions.assertEquals("q", response.properties().exportPolicy().rules().get(0).allowedClients().get(0)); - Assertions.assertEquals(ElasticRootAccess.DISABLED, - response.properties().exportPolicy().rules().get(0).rootAccess()); - Assertions.assertEquals(ElasticProtocolType.NFSV3, response.properties().protocolTypes().get(0)); - Assertions.assertEquals("rf", response.properties().snapshotResourceId()); - Assertions.assertEquals("uukykcyqh", - response.properties().dataProtection().snapshot().snapshotPolicyResourceId()); - Assertions.assertEquals("zzdcykeys", - response.properties().dataProtection().backup().elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.NOT_ENFORCED, - response.properties().dataProtection().backup().policyEnforcement()); - Assertions.assertEquals("opazdazgbs", - response.properties().dataProtection().backup().elasticBackupVaultResourceId()); - Assertions.assertEquals(SnapshotDirectoryVisibility.HIDDEN, - response.properties().snapshotDirectoryVisibility()); - Assertions.assertEquals(ElasticSmbEncryption.ENABLED, response.properties().smbProperties().smbEncryption()); - Assertions.assertEquals("fut", response.properties().backupResourceId()); - Assertions.assertEquals("nlzclctz", response.zones().get(0)); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesListByElasticPoolMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesListByElasticPoolMockTests.java deleted file mode 100644 index 4abf3b8a72a37..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesListByElasticPoolMockTests.java +++ /dev/null @@ -1,79 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.http.rest.PagedIterable; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.ElasticNfsv3Access; -import com.azure.resourcemanager.netapp.models.ElasticNfsv4Access; -import com.azure.resourcemanager.netapp.models.ElasticProtocolType; -import com.azure.resourcemanager.netapp.models.ElasticRootAccess; -import com.azure.resourcemanager.netapp.models.ElasticSmbEncryption; -import com.azure.resourcemanager.netapp.models.ElasticUnixAccessRule; -import com.azure.resourcemanager.netapp.models.ElasticVolume; -import com.azure.resourcemanager.netapp.models.ElasticVolumePolicyEnforcement; -import com.azure.resourcemanager.netapp.models.SnapshotDirectoryVisibility; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticVolumesListByElasticPoolMockTests { - @Test - public void testListByElasticPool() throws Exception { - String responseStr - = "{\"value\":[{\"properties\":{\"filePath\":\"raudsvhlcdcul\",\"size\":7103232548689363972,\"exportPolicy\":{\"rules\":[{\"ruleIndex\":1371553792,\"unixAccessRule\":\"ReadWrite\",\"nfsv3\":\"Enabled\",\"nfsv4\":\"Disabled\",\"allowedClients\":[\"gyshqrdgrtwmewj\",\"lp\"],\"rootAccess\":\"Enabled\"},{\"ruleIndex\":1886973151,\"unixAccessRule\":\"ReadWrite\",\"nfsv3\":\"Disabled\",\"nfsv4\":\"Disabled\",\"allowedClients\":[\"rzrr\",\"nsyby\",\"polwzrghsrlei\",\"kfscjfncjwv\"],\"rootAccess\":\"Disabled\"},{\"ruleIndex\":1509328014,\"unixAccessRule\":\"ReadOnly\",\"nfsv3\":\"Disabled\",\"nfsv4\":\"Disabled\",\"allowedClients\":[\"reuptrk\"],\"rootAccess\":\"Enabled\"},{\"ruleIndex\":1008629589,\"unixAccessRule\":\"ReadOnly\",\"nfsv3\":\"Enabled\",\"nfsv4\":\"Enabled\",\"allowedClients\":[\"vaghmpy\"],\"rootAccess\":\"Disabled\"}]},\"protocolTypes\":[\"NFSv3\",\"SMB\",\"SMB\"],\"provisioningState\":\"Patching\",\"availabilityStatus\":\"Online\",\"snapshotResourceId\":\"cvbxqlapsnss\",\"mountTargets\":[{\"ipAddress\":\"pavidnievwffc\",\"smbServerFqdn\":\"yezslpu\"},{\"ipAddress\":\"cbdsvalpnptwtrk\",\"smbServerFqdn\":\"pazwug\"},{\"ipAddress\":\"qvn\",\"smbServerFqdn\":\"bfe\"}],\"dataProtection\":{\"snapshot\":{\"snapshotPolicyResourceId\":\"iuhzzgqlmfa\"},\"backup\":{\"elasticBackupPolicyResourceId\":\"giudjpxpq\",\"policyEnforcement\":\"Enforced\",\"elasticBackupVaultResourceId\":\"hnmhkrezsdsux\"}},\"snapshotDirectoryVisibility\":\"Hidden\",\"smbProperties\":{\"smbEncryption\":\"Disabled\"},\"backupResourceId\":\"uxsp\",\"restorationState\":\"Restored\"},\"eTag\":\"m\",\"zones\":[\"okmikpa\",\"fbmjxuvji\"],\"location\":\"dvhaxdvw\",\"tags\":{\"etatlakf\":\"hpphthdklm\",\"vtooxrpo\":\"oixwgiksb\",\"chgjtnhtukfacih\":\"wp\",\"bnuvwcg\":\"bfntumeezbxvq\"},\"id\":\"sgomtmjz\",\"name\":\"xuqgovsxpwwztj\",\"type\":\"mkkhtgfredml\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - PagedIterable response = manager.elasticVolumes() - .listByElasticPool("anizerwgudasmxub", "fbngfcocef", "priylfmp", com.azure.core.util.Context.NONE); - - Assertions.assertEquals("dvhaxdvw", response.iterator().next().location()); - Assertions.assertEquals("hpphthdklm", response.iterator().next().tags().get("etatlakf")); - Assertions.assertEquals("raudsvhlcdcul", response.iterator().next().properties().filePath()); - Assertions.assertEquals(7103232548689363972L, response.iterator().next().properties().size()); - Assertions.assertEquals(1371553792, - response.iterator().next().properties().exportPolicy().rules().get(0).ruleIndex()); - Assertions.assertEquals(ElasticUnixAccessRule.READ_WRITE, - response.iterator().next().properties().exportPolicy().rules().get(0).unixAccessRule()); - Assertions.assertEquals(ElasticNfsv3Access.ENABLED, - response.iterator().next().properties().exportPolicy().rules().get(0).nfsv3()); - Assertions.assertEquals(ElasticNfsv4Access.DISABLED, - response.iterator().next().properties().exportPolicy().rules().get(0).nfsv4()); - Assertions.assertEquals("gyshqrdgrtwmewj", - response.iterator().next().properties().exportPolicy().rules().get(0).allowedClients().get(0)); - Assertions.assertEquals(ElasticRootAccess.ENABLED, - response.iterator().next().properties().exportPolicy().rules().get(0).rootAccess()); - Assertions.assertEquals(ElasticProtocolType.NFSV3, - response.iterator().next().properties().protocolTypes().get(0)); - Assertions.assertEquals("cvbxqlapsnss", response.iterator().next().properties().snapshotResourceId()); - Assertions.assertEquals("iuhzzgqlmfa", - response.iterator().next().properties().dataProtection().snapshot().snapshotPolicyResourceId()); - Assertions.assertEquals("giudjpxpq", - response.iterator().next().properties().dataProtection().backup().elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.ENFORCED, - response.iterator().next().properties().dataProtection().backup().policyEnforcement()); - Assertions.assertEquals("hnmhkrezsdsux", - response.iterator().next().properties().dataProtection().backup().elasticBackupVaultResourceId()); - Assertions.assertEquals(SnapshotDirectoryVisibility.HIDDEN, - response.iterator().next().properties().snapshotDirectoryVisibility()); - Assertions.assertEquals(ElasticSmbEncryption.DISABLED, - response.iterator().next().properties().smbProperties().smbEncryption()); - Assertions.assertEquals("uxsp", response.iterator().next().properties().backupResourceId()); - Assertions.assertEquals("okmikpa", response.iterator().next().zones().get(0)); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesRevertMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesRevertMockTests.java deleted file mode 100644 index a0c752d07c8c3..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ElasticVolumesRevertMockTests.java +++ /dev/null @@ -1,75 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.netapp.NetAppFilesManager; -import com.azure.resourcemanager.netapp.models.ElasticNfsv3Access; -import com.azure.resourcemanager.netapp.models.ElasticNfsv4Access; -import com.azure.resourcemanager.netapp.models.ElasticProtocolType; -import com.azure.resourcemanager.netapp.models.ElasticRootAccess; -import com.azure.resourcemanager.netapp.models.ElasticSmbEncryption; -import com.azure.resourcemanager.netapp.models.ElasticUnixAccessRule; -import com.azure.resourcemanager.netapp.models.ElasticVolume; -import com.azure.resourcemanager.netapp.models.ElasticVolumePolicyEnforcement; -import com.azure.resourcemanager.netapp.models.ElasticVolumeRevert; -import com.azure.resourcemanager.netapp.models.SnapshotDirectoryVisibility; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ElasticVolumesRevertMockTests { - @Test - public void testRevert() throws Exception { - String responseStr - = "{\"properties\":{\"filePath\":\"vcebxeetqujxcxxq\",\"size\":4290239630152162906,\"exportPolicy\":{\"rules\":[{\"ruleIndex\":937589961,\"unixAccessRule\":\"ReadWrite\",\"nfsv3\":\"Disabled\",\"nfsv4\":\"Disabled\",\"allowedClients\":[\"mrvvxwj\",\"ngz\",\"ehqqrsilcchs\"],\"rootAccess\":\"Enabled\"},{\"ruleIndex\":470051968,\"unixAccessRule\":\"NoAccess\",\"nfsv3\":\"Enabled\",\"nfsv4\":\"Enabled\",\"allowedClients\":[\"gv\",\"ojrulfuctejrt\",\"cfjzhxl\"],\"rootAccess\":\"Enabled\"},{\"ruleIndex\":77627949,\"unixAccessRule\":\"ReadWrite\",\"nfsv3\":\"Disabled\",\"nfsv4\":\"Disabled\",\"allowedClients\":[\"qmtzzb\",\"qrztrxal\",\"rdhabsr\"],\"rootAccess\":\"Enabled\"},{\"ruleIndex\":1111086602,\"unixAccessRule\":\"NoAccess\",\"nfsv3\":\"Enabled\",\"nfsv4\":\"Enabled\",\"allowedClients\":[\"kvyanxkvvc\",\"ems\"],\"rootAccess\":\"Enabled\"}]},\"protocolTypes\":[\"SMB\",\"SMB\",\"NFSv4\"],\"provisioningState\":\"Succeeded\",\"availabilityStatus\":\"Offline\",\"snapshotResourceId\":\"mlivrjjxnwx\",\"mountTargets\":[{\"ipAddress\":\"ojxl\",\"smbServerFqdn\":\"z\"},{\"ipAddress\":\"pgfquwzpwiibelwc\",\"smbServerFqdn\":\"wkwbpjx\"}],\"dataProtection\":{\"snapshot\":{\"snapshotPolicyResourceId\":\"busqtbxxniuisdz\"},\"backup\":{\"elasticBackupPolicyResourceId\":\"d\",\"policyEnforcement\":\"NotEnforced\",\"elasticBackupVaultResourceId\":\"gsecnadbuwqrgx\"}},\"snapshotDirectoryVisibility\":\"Visible\",\"smbProperties\":{\"smbEncryption\":\"Disabled\"},\"backupResourceId\":\"nezoellnkki\",\"restorationState\":\"Failed\"},\"eTag\":\"tumxpymdj\",\"zones\":[\"xroq\",\"qpilrgu\",\"canlduwzorxs\",\"mxaqklxym\"],\"location\":\"qvfqepdxc\",\"tags\":{\"jbowcpj\":\"ubwyv\",\"gixexkydfbwlj\":\"du\",\"tcvbiiftk\":\"vhuerkjddvrglieg\"},\"id\":\"dwgdn\",\"name\":\"efgmwdhcebuv\",\"type\":\"zldbglzoutbaaqg\"}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - NetAppFilesManager manager = NetAppFilesManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - ElasticVolume response = manager.elasticVolumes() - .revert("cgrllc", "na", "vjowazhpabac", "mlyotg", - new ElasticVolumeRevert().withSnapshotResourceId("sxnsrqorcge"), com.azure.core.util.Context.NONE); - - Assertions.assertEquals("qvfqepdxc", response.location()); - Assertions.assertEquals("ubwyv", response.tags().get("jbowcpj")); - Assertions.assertEquals("vcebxeetqujxcxxq", response.properties().filePath()); - Assertions.assertEquals(4290239630152162906L, response.properties().size()); - Assertions.assertEquals(937589961, response.properties().exportPolicy().rules().get(0).ruleIndex()); - Assertions.assertEquals(ElasticUnixAccessRule.READ_WRITE, - response.properties().exportPolicy().rules().get(0).unixAccessRule()); - Assertions.assertEquals(ElasticNfsv3Access.DISABLED, - response.properties().exportPolicy().rules().get(0).nfsv3()); - Assertions.assertEquals(ElasticNfsv4Access.DISABLED, - response.properties().exportPolicy().rules().get(0).nfsv4()); - Assertions.assertEquals("mrvvxwj", response.properties().exportPolicy().rules().get(0).allowedClients().get(0)); - Assertions.assertEquals(ElasticRootAccess.ENABLED, - response.properties().exportPolicy().rules().get(0).rootAccess()); - Assertions.assertEquals(ElasticProtocolType.SMB, response.properties().protocolTypes().get(0)); - Assertions.assertEquals("mlivrjjxnwx", response.properties().snapshotResourceId()); - Assertions.assertEquals("busqtbxxniuisdz", - response.properties().dataProtection().snapshot().snapshotPolicyResourceId()); - Assertions.assertEquals("d", response.properties().dataProtection().backup().elasticBackupPolicyResourceId()); - Assertions.assertEquals(ElasticVolumePolicyEnforcement.NOT_ENFORCED, - response.properties().dataProtection().backup().policyEnforcement()); - Assertions.assertEquals("gsecnadbuwqrgx", - response.properties().dataProtection().backup().elasticBackupVaultResourceId()); - Assertions.assertEquals(SnapshotDirectoryVisibility.VISIBLE, - response.properties().snapshotDirectoryVisibility()); - Assertions.assertEquals(ElasticSmbEncryption.DISABLED, response.properties().smbProperties().smbEncryption()); - Assertions.assertEquals("nezoellnkki", response.properties().backupResourceId()); - Assertions.assertEquals("xroq", response.zones().get(0)); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionIdentityPatchTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionIdentityPatchTests.java new file mode 100644 index 0000000000000..55aed52a4042c --- /dev/null +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionIdentityPatchTests.java @@ -0,0 +1,29 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.netapp.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.netapp.models.EncryptionIdentityPatch; +import org.junit.jupiter.api.Assertions; + +public final class EncryptionIdentityPatchTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + EncryptionIdentityPatch model + = BinaryData.fromString("{\"userAssignedIdentity\":\"pgfewetwlyx\",\"federatedClientId\":\"cxy\"}") + .toObject(EncryptionIdentityPatch.class); + Assertions.assertEquals("pgfewetwlyx", model.userAssignedIdentity()); + Assertions.assertEquals("cxy", model.federatedClientId()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + EncryptionIdentityPatch model + = new EncryptionIdentityPatch().withUserAssignedIdentity("pgfewetwlyx").withFederatedClientId("cxy"); + model = BinaryData.fromObject(model).toObject(EncryptionIdentityPatch.class); + Assertions.assertEquals("pgfewetwlyx", model.userAssignedIdentity()); + Assertions.assertEquals("cxy", model.federatedClientId()); + } +} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionIdentityTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionIdentityTests.java index 6e17b1bdc9c0a..e053514b1b746 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionIdentityTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionIdentityTests.java @@ -12,18 +12,18 @@ public final class EncryptionIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { EncryptionIdentity model = BinaryData.fromString( - "{\"principalId\":\"gdphtvdula\",\"userAssignedIdentity\":\"lejchcsr\",\"federatedClientId\":\"knmzlanrupdwvnp\"}") + "{\"principalId\":\"fgmvecactxmwo\",\"userAssignedIdentity\":\"yowc\",\"federatedClientId\":\"qovekqvgqou\"}") .toObject(EncryptionIdentity.class); - Assertions.assertEquals("lejchcsr", model.userAssignedIdentity()); - Assertions.assertEquals("knmzlanrupdwvnp", model.federatedClientId()); + Assertions.assertEquals("yowc", model.userAssignedIdentity()); + Assertions.assertEquals("qovekqvgqou", model.federatedClientId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { EncryptionIdentity model - = new EncryptionIdentity().withUserAssignedIdentity("lejchcsr").withFederatedClientId("knmzlanrupdwvnp"); + = new EncryptionIdentity().withUserAssignedIdentity("yowc").withFederatedClientId("qovekqvgqou"); model = BinaryData.fromObject(model).toObject(EncryptionIdentity.class); - Assertions.assertEquals("lejchcsr", model.userAssignedIdentity()); - Assertions.assertEquals("knmzlanrupdwvnp", model.federatedClientId()); + Assertions.assertEquals("yowc", model.userAssignedIdentity()); + Assertions.assertEquals("qovekqvgqou", model.federatedClientId()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionTransitionRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionTransitionRequestTests.java index 80e15d1ab29e8..ebb12e52ec79c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionTransitionRequestTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/EncryptionTransitionRequestTests.java @@ -12,18 +12,18 @@ public final class EncryptionTransitionRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { EncryptionTransitionRequest model - = BinaryData.fromString("{\"virtualNetworkId\":\"cgxuugqkctotiowl\",\"privateEndpointId\":\"teqdptj\"}") + = BinaryData.fromString("{\"virtualNetworkId\":\"rpfoobr\",\"privateEndpointId\":\"ttymsjny\"}") .toObject(EncryptionTransitionRequest.class); - Assertions.assertEquals("cgxuugqkctotiowl", model.virtualNetworkId()); - Assertions.assertEquals("teqdptj", model.privateEndpointId()); + Assertions.assertEquals("rpfoobr", model.virtualNetworkId()); + Assertions.assertEquals("ttymsjny", model.privateEndpointId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - EncryptionTransitionRequest model = new EncryptionTransitionRequest().withVirtualNetworkId("cgxuugqkctotiowl") - .withPrivateEndpointId("teqdptj"); + EncryptionTransitionRequest model + = new EncryptionTransitionRequest().withVirtualNetworkId("rpfoobr").withPrivateEndpointId("ttymsjny"); model = BinaryData.fromObject(model).toObject(EncryptionTransitionRequest.class); - Assertions.assertEquals("cgxuugqkctotiowl", model.virtualNetworkId()); - Assertions.assertEquals("teqdptj", model.privateEndpointId()); + Assertions.assertEquals("rpfoobr", model.virtualNetworkId()); + Assertions.assertEquals("ttymsjny", model.privateEndpointId()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/FilePathAvailabilityRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/FilePathAvailabilityRequestTests.java index 746f980f67adb..ed726e39d88a8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/FilePathAvailabilityRequestTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/FilePathAvailabilityRequestTests.java @@ -11,22 +11,21 @@ public final class FilePathAvailabilityRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - FilePathAvailabilityRequest model = BinaryData - .fromString("{\"name\":\"qllizstac\",\"subnetId\":\"jvhrweft\",\"availabilityZone\":\"qejpmvssehaepwa\"}") - .toObject(FilePathAvailabilityRequest.class); - Assertions.assertEquals("qllizstac", model.name()); - Assertions.assertEquals("jvhrweft", model.subnetId()); - Assertions.assertEquals("qejpmvssehaepwa", model.availabilityZone()); + FilePathAvailabilityRequest model + = BinaryData.fromString("{\"name\":\"vk\",\"subnetId\":\"gnl\",\"availabilityZone\":\"onzlr\"}") + .toObject(FilePathAvailabilityRequest.class); + Assertions.assertEquals("vk", model.name()); + Assertions.assertEquals("gnl", model.subnetId()); + Assertions.assertEquals("onzlr", model.availabilityZone()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - FilePathAvailabilityRequest model = new FilePathAvailabilityRequest().withName("qllizstac") - .withSubnetId("jvhrweft") - .withAvailabilityZone("qejpmvssehaepwa"); + FilePathAvailabilityRequest model + = new FilePathAvailabilityRequest().withName("vk").withSubnetId("gnl").withAvailabilityZone("onzlr"); model = BinaryData.fromObject(model).toObject(FilePathAvailabilityRequest.class); - Assertions.assertEquals("qllizstac", model.name()); - Assertions.assertEquals("jvhrweft", model.subnetId()); - Assertions.assertEquals("qejpmvssehaepwa", model.availabilityZone()); + Assertions.assertEquals("vk", model.name()); + Assertions.assertEquals("gnl", model.subnetId()); + Assertions.assertEquals("onzlr", model.availabilityZone()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/KeyVaultPrivateEndpointTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/KeyVaultPrivateEndpointTests.java index aae44610bece2..86209d8304940 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/KeyVaultPrivateEndpointTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/KeyVaultPrivateEndpointTests.java @@ -12,18 +12,18 @@ public final class KeyVaultPrivateEndpointTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { KeyVaultPrivateEndpoint model - = BinaryData.fromString("{\"virtualNetworkId\":\"gygqwah\",\"privateEndpointId\":\"ulwgniiprglvawuw\"}") + = BinaryData.fromString("{\"virtualNetworkId\":\"iv\",\"privateEndpointId\":\"oyzunbixxr\"}") .toObject(KeyVaultPrivateEndpoint.class); - Assertions.assertEquals("gygqwah", model.virtualNetworkId()); - Assertions.assertEquals("ulwgniiprglvawuw", model.privateEndpointId()); + Assertions.assertEquals("iv", model.virtualNetworkId()); + Assertions.assertEquals("oyzunbixxr", model.privateEndpointId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { KeyVaultPrivateEndpoint model - = new KeyVaultPrivateEndpoint().withVirtualNetworkId("gygqwah").withPrivateEndpointId("ulwgniiprglvawuw"); + = new KeyVaultPrivateEndpoint().withVirtualNetworkId("iv").withPrivateEndpointId("oyzunbixxr"); model = BinaryData.fromObject(model).toObject(KeyVaultPrivateEndpoint.class); - Assertions.assertEquals("gygqwah", model.virtualNetworkId()); - Assertions.assertEquals("ulwgniiprglvawuw", model.privateEndpointId()); + Assertions.assertEquals("iv", model.virtualNetworkId()); + Assertions.assertEquals("oyzunbixxr", model.privateEndpointId()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LdapSearchScopeOptTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LdapSearchScopeOptTests.java index a54e0734b4615..a1255021b2433 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LdapSearchScopeOptTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/LdapSearchScopeOptTests.java @@ -11,21 +11,22 @@ public final class LdapSearchScopeOptTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - LdapSearchScopeOpt model - = BinaryData.fromString("{\"userDN\":\"o\",\"groupDN\":\"rzvh\",\"groupMembershipFilter\":\"wtrhtgv\"}") - .toObject(LdapSearchScopeOpt.class); - Assertions.assertEquals("o", model.userDN()); - Assertions.assertEquals("rzvh", model.groupDN()); - Assertions.assertEquals("wtrhtgv", model.groupMembershipFilter()); + LdapSearchScopeOpt model = BinaryData + .fromString("{\"userDN\":\"efojyqdhcupl\",\"groupDN\":\"lcwkhihihlhz\",\"groupMembershipFilter\":\"qtz\"}") + .toObject(LdapSearchScopeOpt.class); + Assertions.assertEquals("efojyqdhcupl", model.userDN()); + Assertions.assertEquals("lcwkhihihlhz", model.groupDN()); + Assertions.assertEquals("qtz", model.groupMembershipFilter()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - LdapSearchScopeOpt model - = new LdapSearchScopeOpt().withUserDN("o").withGroupDN("rzvh").withGroupMembershipFilter("wtrhtgv"); + LdapSearchScopeOpt model = new LdapSearchScopeOpt().withUserDN("efojyqdhcupl") + .withGroupDN("lcwkhihihlhz") + .withGroupMembershipFilter("qtz"); model = BinaryData.fromObject(model).toObject(LdapSearchScopeOpt.class); - Assertions.assertEquals("o", model.userDN()); - Assertions.assertEquals("rzvh", model.groupDN()); - Assertions.assertEquals("wtrhtgv", model.groupMembershipFilter()); + Assertions.assertEquals("efojyqdhcupl", model.userDN()); + Assertions.assertEquals("lcwkhihihlhz", model.groupDN()); + Assertions.assertEquals("qtz", model.groupMembershipFilter()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ManagedServiceIdentityTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ManagedServiceIdentityTests.java index 9436745a7b10f..e02a24426ad98 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ManagedServiceIdentityTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ManagedServiceIdentityTests.java @@ -16,7 +16,7 @@ public final class ManagedServiceIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedServiceIdentity model = BinaryData.fromString( - "{\"principalId\":\"8970915d-93a4-4d36-8408-8984125a0b66\",\"tenantId\":\"a905b271-ebf8-4079-a451-f04df5bd0431\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"vzm\":{\"principalId\":\"4c105231-8a4a-42a1-9de7-9f913cd0fc72\",\"clientId\":\"a0781fd7-9e6a-43e9-81b5-427d69bbee20\"},\"mldgxobfirc\":{\"principalId\":\"1faf574f-7fd2-4e36-b604-a0b0ee0793aa\",\"clientId\":\"7e828da5-c08e-49d6-868b-799fb35eeeb4\"}}}") + "{\"principalId\":\"71f242b3-cf12-477c-9dfd-74438191e5aa\",\"tenantId\":\"fa67d6cf-56f8-4218-bf02-a08d95473259\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"kxzt\":{\"principalId\":\"7f304550-0f42-4faf-a22b-fd6c3ed7290b\",\"clientId\":\"46940037-bf1f-4237-8748-186047a29fe6\"}}}") .toObject(ManagedServiceIdentity.class); Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.type()); } @@ -24,8 +24,7 @@ public void testDeserialize() throws Exception { @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ManagedServiceIdentity model = new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED) - .withUserAssignedIdentities( - mapOf("vzm", new UserAssignedIdentity(), "mldgxobfirc", new UserAssignedIdentity())); + .withUserAssignedIdentities(mapOf("kxzt", new UserAssignedIdentity())); model = BinaryData.fromObject(model).toObject(ManagedServiceIdentity.class); Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.type()); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountsGetWithResponseMockTests.java index b4ef3cca97835..ccc3609fd20bf 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountsGetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountsGetWithResponseMockTests.java @@ -20,7 +20,7 @@ public final class NetAppResourceQuotaLimitsAccountsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"current\":744353660,\"default\":696598342,\"usage\":574396825},\"id\":\"gkzz\",\"name\":\"taf\",\"type\":\"bzf\"}"; + = "{\"properties\":{\"current\":1547881382,\"default\":1316408271,\"usage\":234206278},\"id\":\"qnzrd\",\"name\":\"sovwxznptgoeiyb\",\"type\":\"abpfhvfs\"}"; 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)); SubscriptionQuotaItem response = manager.netAppResourceQuotaLimitsAccounts() - .getWithResponse("bajbuscgduusi", "ycblevpmcl", "jy", com.azure.core.util.Context.NONE) + .getWithResponse("bjwgnyfus", "zsvtuikzhajqgl", "fh", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountsListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountsListMockTests.java index fa2bf6e2fce21..18ef95a985780 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountsListMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsAccountsListMockTests.java @@ -21,7 +21,7 @@ public final class NetAppResourceQuotaLimitsAccountsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"current\":1020817609,\"default\":1016385722,\"usage\":1910515292},\"id\":\"gcgqyhleseyqrhvy\",\"name\":\"ldotjvdkwisws\",\"type\":\"ukjtasbvwispkxk\"}]}"; + = "{\"value\":[{\"properties\":{\"current\":1611438793,\"default\":664139919,\"usage\":300950097},\"id\":\"ygznmmaxrizk\",\"name\":\"obgop\",\"type\":\"lhslnelxieixyn\"}]}"; 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.netAppResourceQuotaLimitsAccounts() - .list("ovwmbjlzqsczpgvd", "napfdqwowftpt", com.azure.core.util.Context.NONE); + .list("kvntjlrigjkskyri", "ovzidsx", com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsGetWithResponseMockTests.java index af490d1600e1b..72615939b70c6 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsGetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsGetWithResponseMockTests.java @@ -20,7 +20,7 @@ public final class NetAppResourceQuotaLimitsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"current\":673882978,\"default\":2044693694,\"usage\":976682569},\"id\":\"kpdj\",\"name\":\"aq\",\"type\":\"smqaz\"}"; + = "{\"properties\":{\"current\":78336255,\"default\":1039817424,\"usage\":1292998556},\"id\":\"vx\",\"name\":\"cwxhmpej\",\"type\":\"lkexaonwivkcqh\"}"; 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)); SubscriptionQuotaItem response = manager.netAppResourceQuotaLimits() - .getWithResponse("p", "lnfyzav", com.azure.core.util.Context.NONE) + .getWithResponse("noakiz", "oaiknaqlnuwig", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListMockTests.java index 9ac326099d11c..deec0b65ef72f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceQuotaLimitsListMockTests.java @@ -21,7 +21,7 @@ public final class NetAppResourceQuotaLimitsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"current\":1280647764,\"default\":874017143,\"usage\":1889355326},\"id\":\"vcpxtzhigqqbtimp\",\"name\":\"jbl\",\"type\":\"rnsihqhudsmus\"}]}"; + = "{\"value\":[{\"properties\":{\"current\":48936837,\"default\":1452730884,\"usage\":1658282432},\"id\":\"jubyqjfkakfq\",\"name\":\"rke\",\"type\":\"yildudxjascow\"}]}"; 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.netAppResourceQuotaLimits().list("dgonjhxshthmgp", com.azure.core.util.Context.NONE); + = manager.netAppResourceQuotaLimits().list("xhxknlc", com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosGetWithResponseMockTests.java index d2756f55eb15a..d53553db55017 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosGetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosGetWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class NetAppResourceRegionInfosGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"storageToNetworkProximity\":\"T1AndAcrossT2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"z\",\"isAvailable\":false},{\"availabilityZone\":\"ixyxvqbanosjt\",\"isAvailable\":false}]},\"id\":\"bgmgm\",\"name\":\"dorgmynltw\",\"type\":\"p\"}"; + = "{\"properties\":{\"storageToNetworkProximity\":\"T1AndT2AndAcrossT2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"hlkks\",\"isAvailable\":false},{\"availabilityZone\":\"vyfijdkzuqnw\",\"isAvailable\":true},{\"availabilityZone\":\"uqoly\",\"isAvailable\":false}]},\"id\":\"qwqul\",\"name\":\"utrjbhxyk\",\"type\":\"hyqezvqq\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,10 +32,11 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RegionInfoResource response - = manager.netAppResourceRegionInfos().getWithResponse("aawja", com.azure.core.util.Context.NONE).getValue(); + = manager.netAppResourceRegionInfos().getWithResponse("f", com.azure.core.util.Context.NONE).getValue(); - Assertions.assertEquals(RegionStorageToNetworkProximity.T1AND_ACROSS_T2, response.storageToNetworkProximity()); - Assertions.assertEquals("z", response.availabilityZoneMappings().get(0).availabilityZone()); + Assertions.assertEquals(RegionStorageToNetworkProximity.T1AND_T2AND_ACROSS_T2, + response.storageToNetworkProximity()); + Assertions.assertEquals("hlkks", response.availabilityZoneMappings().get(0).availabilityZone()); Assertions.assertFalse(response.availabilityZoneMappings().get(0).isAvailable()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosListMockTests.java index 92eccadb0fd71..b43734a92feb9 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosListMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceRegionInfosListMockTests.java @@ -23,7 +23,7 @@ public final class NetAppResourceRegionInfosListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"storageToNetworkProximity\":\"T1AndT2AndAcrossT2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"lkpzwbhnrecchd\",\"isAvailable\":true},{\"availabilityZone\":\"uhkahm\",\"isAvailable\":true},{\"availabilityZone\":\"iuc\",\"isAvailable\":true},{\"availabilityZone\":\"wmjpjbweunxcqrr\",\"isAvailable\":true}]},\"id\":\"oihppi\",\"name\":\"bxv\",\"type\":\"nzuz\"}]}"; + = "{\"value\":[{\"properties\":{\"storageToNetworkProximity\":\"Default\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"exreu\",\"isAvailable\":false},{\"availabilityZone\":\"tljvfwhreagkhyx\",\"isAvailable\":false},{\"availabilityZone\":\"vbczsulmdg\",\"isAvailable\":false}]},\"id\":\"pjpfseykgs\",\"name\":\"ngpszngafpg\",\"type\":\"lkvec\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,12 +33,12 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.netAppResourceRegionInfos().list("tmfoeajogsyxwet", com.azure.core.util.Context.NONE); + = manager.netAppResourceRegionInfos().list("g", com.azure.core.util.Context.NONE); - Assertions.assertEquals(RegionStorageToNetworkProximity.T1AND_T2AND_ACROSS_T2, + Assertions.assertEquals(RegionStorageToNetworkProximity.DEFAULT, response.iterator().next().storageToNetworkProximity()); - Assertions.assertEquals("lkpzwbhnrecchd", + Assertions.assertEquals("exreu", response.iterator().next().availabilityZoneMappings().get(0).availabilityZone()); - Assertions.assertTrue(response.iterator().next().availabilityZoneMappings().get(0).isAvailable()); + Assertions.assertFalse(response.iterator().next().availabilityZoneMappings().get(0).isAvailable()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesGetWithResponseMockTests.java index d5916d605af2c..aa82fcea0436b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesGetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesGetWithResponseMockTests.java @@ -20,7 +20,7 @@ public final class NetAppResourceUsagesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"id\":\"cwgzwllxzl\",\"name\":{\"value\":\"ix\",\"localizedValue\":\"fculzjrmhpfyw\"},\"properties\":{\"currentValue\":981129054,\"limit\":1738803308,\"unit\":\"fzxsoxinunjlzkd\"}}"; + = "{\"id\":\"z\",\"name\":{\"value\":\"t\",\"localizedValue\":\"plvukaobrlbpg\"},\"properties\":{\"currentValue\":1893797286,\"limit\":2049519824,\"unit\":\"hjhgem\"}}"; 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)); UsageResult response = manager.netAppResourceUsages() - .getWithResponse("qmr", "jparnpvgrszrbwt", com.azure.core.util.Context.NONE) + .getWithResponse("dbckyo", "kxkxhnegk", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesListMockTests.java index 056c1cb131c9d..b52a2a7bda710 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesListMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourceUsagesListMockTests.java @@ -21,7 +21,7 @@ public final class NetAppResourceUsagesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"id\":\"objopnou\",\"name\":{\"value\":\"ezkqxsalu\",\"localizedValue\":\"igfcvcewbwqhd\"},\"properties\":{\"currentValue\":1088502083,\"limit\":1754087557,\"unit\":\"rncmazdfsqxh\"}}]}"; + = "{\"value\":[{\"id\":\"gxnoqrxtdis\",\"name\":{\"value\":\"vhdl\",\"localizedValue\":\"did\"},\"properties\":{\"currentValue\":1268524253,\"limit\":1804089287,\"unit\":\"tjfdoesxxhmw\"}}]}"; 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.netAppResourceUsages().list("hrptyodlhkfktltd", com.azure.core.util.Context.NONE); + = manager.netAppResourceUsages().list("vxhmtfhocnxzcmj", com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckFilePathAvailabilityWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckFilePathAvailabilityWithResponseMockTests.java index 8d5d8adb063ce..fe317b529ec2f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckFilePathAvailabilityWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckFilePathAvailabilityWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class NetAppResourcesCheckFilePathAvailabilityWithResponseMockTests { @Test public void testCheckFilePathAvailabilityWithResponse() throws Exception { - String responseStr = "{\"isAvailable\":true,\"reason\":\"AlreadyExists\",\"message\":\"kzx\"}"; + String responseStr = "{\"isAvailable\":false,\"reason\":\"Invalid\",\"message\":\"mehllizhceu\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,15 +32,15 @@ public void testCheckFilePathAvailabilityWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CheckAvailabilityResponse response = manager.netAppResources() - .checkFilePathAvailabilityWithResponse("lblfxlupibaqzizx", - new FilePathAvailabilityRequest().withName("pzweghlwwbo") - .withSubnetId("vgfklqiyndveqe") - .withAvailabilityZone("b"), + .checkFilePathAvailabilityWithResponse("ygzmxieqvdsmak", + new FilePathAvailabilityRequest().withName("ixqcahyhxalybxaw") + .withSubnetId("ijpodtblxpkkwj") + .withAvailabilityZone("odqhyk"), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertTrue(response.isAvailable()); - Assertions.assertEquals(InAvailabilityReasonType.ALREADY_EXISTS, response.reason()); - Assertions.assertEquals("kzx", response.message()); + Assertions.assertFalse(response.isAvailable()); + Assertions.assertEquals(InAvailabilityReasonType.INVALID, response.reason()); + Assertions.assertEquals("mehllizhceu", response.message()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckNameAvailabilityWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckNameAvailabilityWithResponseMockTests.java index 0994045e44132..095224fa592e9 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckNameAvailabilityWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckNameAvailabilityWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class NetAppResourcesCheckNameAvailabilityWithResponseMockTests { @Test public void testCheckNameAvailabilityWithResponse() throws Exception { - String responseStr = "{\"isAvailable\":true,\"reason\":\"Invalid\",\"message\":\"ldxonckb\"}"; + String responseStr = "{\"isAvailable\":true,\"reason\":\"AlreadyExists\",\"message\":\"skieca\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,15 +33,15 @@ public void testCheckNameAvailabilityWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CheckAvailabilityResponse response = manager.netAppResources() - .checkNameAvailabilityWithResponse("tpjfojiunrlshxuk", - new ResourceNameAvailabilityRequest().withName("sykdtoi") - .withType(CheckNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS) - .withResourceGroup("ancdrc"), + .checkNameAvailabilityWithResponse("ufanray", + new ResourceNameAvailabilityRequest().withName("fueqfrojs") + .withType(CheckNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES) + .withResourceGroup("grhydk"), com.azure.core.util.Context.NONE) .getValue(); Assertions.assertTrue(response.isAvailable()); - Assertions.assertEquals(InAvailabilityReasonType.INVALID, response.reason()); - Assertions.assertEquals("ldxonckb", response.message()); + Assertions.assertEquals(InAvailabilityReasonType.ALREADY_EXISTS, response.reason()); + Assertions.assertEquals("skieca", response.message()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckQuotaAvailabilityWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckQuotaAvailabilityWithResponseMockTests.java index 13ef210fdde8f..6a7522cdb665c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckQuotaAvailabilityWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesCheckQuotaAvailabilityWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class NetAppResourcesCheckQuotaAvailabilityWithResponseMockTests { @Test public void testCheckQuotaAvailabilityWithResponse() throws Exception { - String responseStr = "{\"isAvailable\":true,\"reason\":\"Invalid\",\"message\":\"xolousdv\"}"; + String responseStr = "{\"isAvailable\":false,\"reason\":\"Invalid\",\"message\":\"swzsnuyemlowuo\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,16 +32,16 @@ public void testCheckQuotaAvailabilityWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - CheckAvailabilityResponse response = manager.netAppResources() - .checkQuotaAvailabilityWithResponse("gtznsvlrdsmovp", - new QuotaAvailabilityRequest().withName("myndnox") - .withType(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES) - .withResourceGroup("nrqa"), - com.azure.core.util.Context.NONE) - .getValue(); + CheckAvailabilityResponse response + = manager.netAppResources() + .checkQuotaAvailabilityWithResponse("oqodkadpp", new QuotaAvailabilityRequest().withName("ibngqladyw") + .withType( + CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES_SNAPSHOTS) + .withResourceGroup("whydt"), com.azure.core.util.Context.NONE) + .getValue(); - Assertions.assertTrue(response.isAvailable()); + Assertions.assertFalse(response.isAvailable()); Assertions.assertEquals(InAvailabilityReasonType.INVALID, response.reason()); - Assertions.assertEquals("xolousdv", response.message()); + Assertions.assertEquals("swzsnuyemlowuo", response.message()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryNetworkSiblingSetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryNetworkSiblingSetWithResponseMockTests.java index 4d0dbcbf5b977..32e5d14f8a2b3 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryNetworkSiblingSetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryNetworkSiblingSetWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class NetAppResourcesQueryNetworkSiblingSetWithResponseMockTests { @Test public void testQueryNetworkSiblingSetWithResponse() throws Exception { String responseStr - = "{\"networkSiblingSetId\":\"urbti\",\"subnetId\":\"pdyarikeejdpd\",\"networkSiblingSetStateId\":\"twmmkfqbriqu\",\"networkFeatures\":\"Standard_Basic\",\"provisioningState\":\"Canceled\",\"nicInfoList\":[{\"ipAddress\":\"qkvyhzokpoyuohu\",\"volumeResourceIds\":[\"na\",\"jphmpoejnglpws\"]},{\"ipAddress\":\"axj\",\"volumeResourceIds\":[\"xpez\",\"oio\"]}]}"; + = "{\"networkSiblingSetId\":\"fqz\",\"subnetId\":\"fnjyix\",\"networkSiblingSetStateId\":\"fratqxmbjroumzz\",\"networkFeatures\":\"Basic\",\"provisioningState\":\"Canceled\",\"nicInfoList\":[{\"ipAddress\":\"uzgfxonjtpusl\",\"volumeResourceIds\":[\"pvti\",\"tzbpdbollgry\",\"qiuasigrows\",\"c\"]},{\"ipAddress\":\"quygdjboqgrmtq\",\"volumeResourceIds\":[\"evadrmmwiu\",\"wvcmj\",\"kxiidisczskoswo\"]},{\"ipAddress\":\"qazu\",\"volumeResourceIds\":[\"xzkrrcoi\",\"sbamnppcc\"]},{\"ipAddress\":\"u\",\"volumeResourceIds\":[\"sbezaxyfukzxuizh\",\"hnepkpeti\",\"rx\"]}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,15 +33,15 @@ public void testQueryNetworkSiblingSetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); NetworkSiblingSet response = manager.netAppResources() - .queryNetworkSiblingSetWithResponse("ulgyctsdbtqgku", - new QueryNetworkSiblingSetRequest().withNetworkSiblingSetId("dsooxr").withSubnetId("w"), + .queryNetworkSiblingSetWithResponse("fmvlihcvjdrqc", + new QueryNetworkSiblingSetRequest().withNetworkSiblingSetId("jidhftu").withSubnetId("vhdxlwyo"), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("urbti", response.networkSiblingSetId()); - Assertions.assertEquals("pdyarikeejdpd", response.subnetId()); - Assertions.assertEquals("twmmkfqbriqu", response.networkSiblingSetStateId()); - Assertions.assertEquals(NetworkFeatures.STANDARD_BASIC, response.networkFeatures()); - Assertions.assertEquals("na", response.nicInfoList().get(0).volumeResourceIds().get(0)); + Assertions.assertEquals("fqz", response.networkSiblingSetId()); + Assertions.assertEquals("fnjyix", response.subnetId()); + Assertions.assertEquals("fratqxmbjroumzz", response.networkSiblingSetStateId()); + Assertions.assertEquals(NetworkFeatures.BASIC, response.networkFeatures()); + Assertions.assertEquals("pvti", response.nicInfoList().get(0).volumeResourceIds().get(0)); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryRegionInfoWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryRegionInfoWithResponseMockTests.java index 4b92ea909366f..c172a60641249 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryRegionInfoWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesQueryRegionInfoWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class NetAppResourcesQueryRegionInfoWithResponseMockTests { @Test public void testQueryRegionInfoWithResponse() throws Exception { String responseStr - = "{\"storageToNetworkProximity\":\"T2AndAcrossT2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"zjdrp\",\"isAvailable\":false}]}"; + = "{\"storageToNetworkProximity\":\"AcrossT2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"kzkltrfowt\",\"isAvailable\":true}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,11 +31,12 @@ public void testQueryRegionInfoWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - RegionInfo response - = manager.netAppResources().queryRegionInfoWithResponse("g", com.azure.core.util.Context.NONE).getValue(); + RegionInfo response = manager.netAppResources() + .queryRegionInfoWithResponse("hlxlnwyrmou", com.azure.core.util.Context.NONE) + .getValue(); - Assertions.assertEquals(RegionStorageToNetworkProximity.T2AND_ACROSS_T2, response.storageToNetworkProximity()); - Assertions.assertEquals("zjdrp", response.availabilityZoneMappings().get(0).availabilityZone()); - Assertions.assertFalse(response.availabilityZoneMappings().get(0).isAvailable()); + Assertions.assertEquals(RegionStorageToNetworkProximity.ACROSS_T2, response.storageToNetworkProximity()); + Assertions.assertEquals("kzkltrfowt", response.availabilityZoneMappings().get(0).availabilityZone()); + Assertions.assertTrue(response.availabilityZoneMappings().get(0).isAvailable()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesUpdateNetworkSiblingSetMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesUpdateNetworkSiblingSetMockTests.java index dfc24cb9908d6..13335cbc4689a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesUpdateNetworkSiblingSetMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetAppResourcesUpdateNetworkSiblingSetMockTests.java @@ -23,7 +23,7 @@ public final class NetAppResourcesUpdateNetworkSiblingSetMockTests { @Test public void testUpdateNetworkSiblingSet() throws Exception { String responseStr - = "{\"networkSiblingSetId\":\"xzuisamona\",\"subnetId\":\"izexroqsqj\",\"networkSiblingSetStateId\":\"rmthsplwst\",\"networkFeatures\":\"Standard\",\"provisioningState\":\"Failed\",\"nicInfoList\":[{\"ipAddress\":\"paniceo\",\"volumeResourceIds\":[\"zwhsxyrujmt\",\"kesliky\",\"hzixyqhfnkvy\",\"qqqdseipnquwz\"]}]}"; + = "{\"networkSiblingSetId\":\"kiofkbt\",\"subnetId\":\"hklbnldpvcbh\",\"networkSiblingSetStateId\":\"zyqu\",\"networkFeatures\":\"Standard\",\"provisioningState\":\"Succeeded\",\"nicInfoList\":[{\"ipAddress\":\"pbrruyu\",\"volumeResourceIds\":[\"vlm\",\"jwcolbm\",\"lbnwtpcpahp\",\"z\"]}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,17 +33,17 @@ public void testUpdateNetworkSiblingSet() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); NetworkSiblingSet response = manager.netAppResources() - .updateNetworkSiblingSet("jrmfqzwqd", - new UpdateNetworkSiblingSetRequest().withNetworkSiblingSetId("xkeedcnwmy") - .withSubnetId("xfqzkvemyzd") - .withNetworkSiblingSetStateId("czaqpqifdbmpt") - .withNetworkFeatures(NetworkFeatures.BASIC_STANDARD), + .updateNetworkSiblingSet("iubxdukec", + new UpdateNetworkSiblingSetRequest().withNetworkSiblingSetId("xdazv") + .withSubnetId("hctmmkosz") + .withNetworkSiblingSetStateId("dblnsntrp") + .withNetworkFeatures(NetworkFeatures.STANDARD), com.azure.core.util.Context.NONE); - Assertions.assertEquals("xzuisamona", response.networkSiblingSetId()); - Assertions.assertEquals("izexroqsqj", response.subnetId()); - Assertions.assertEquals("rmthsplwst", response.networkSiblingSetStateId()); + Assertions.assertEquals("kiofkbt", response.networkSiblingSetId()); + Assertions.assertEquals("hklbnldpvcbh", response.subnetId()); + Assertions.assertEquals("zyqu", response.networkSiblingSetStateId()); Assertions.assertEquals(NetworkFeatures.STANDARD, response.networkFeatures()); - Assertions.assertEquals("zwhsxyrujmt", response.nicInfoList().get(0).volumeResourceIds().get(0)); + Assertions.assertEquals("vlm", response.nicInfoList().get(0).volumeResourceIds().get(0)); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetworkSiblingSetInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetworkSiblingSetInnerTests.java index 8142ff82c9d2c..ee6c5660a24be 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetworkSiblingSetInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NetworkSiblingSetInnerTests.java @@ -13,12 +13,12 @@ public final class NetworkSiblingSetInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NetworkSiblingSetInner model = BinaryData.fromString( - "{\"networkSiblingSetId\":\"djfbocyv\",\"subnetId\":\"ulrtywikdmh\",\"networkSiblingSetStateId\":\"kuflgbh\",\"networkFeatures\":\"Basic_Standard\",\"provisioningState\":\"Failed\",\"nicInfoList\":[{\"ipAddress\":\"mxu\",\"volumeResourceIds\":[\"ryjqgdkf\",\"ozo\",\"oqbvjhvefgwbmqj\"]},{\"ipAddress\":\"ntasfaymxbu\",\"volumeResourceIds\":[\"ealbmqkyo\",\"wyvf\",\"mbtsuahxsg\"]},{\"ipAddress\":\"cmmzrrs\",\"volumeResourceIds\":[\"i\",\"sd\"]},{\"ipAddress\":\"pxqwo\",\"volumeResourceIds\":[\"fjxcjrmmuabwibv\",\"ogjo\",\"mcyefoyzbam\",\"in\"]}]}") + "{\"networkSiblingSetId\":\"mlovuanashcxl\",\"subnetId\":\"jerbdkelvidizozs\",\"networkSiblingSetStateId\":\"ccxjm\",\"networkFeatures\":\"Standard_Basic\",\"provisioningState\":\"Updating\",\"nicInfoList\":[{\"ipAddress\":\"cypuuwwlt\",\"volumeResourceIds\":[\"jctzenkei\",\"zzhmkd\",\"svflyhbxcudch\"]}]}") .toObject(NetworkSiblingSetInner.class); - Assertions.assertEquals("djfbocyv", model.networkSiblingSetId()); - Assertions.assertEquals("ulrtywikdmh", model.subnetId()); - Assertions.assertEquals("kuflgbh", model.networkSiblingSetStateId()); - Assertions.assertEquals(NetworkFeatures.BASIC_STANDARD, model.networkFeatures()); - Assertions.assertEquals("ryjqgdkf", model.nicInfoList().get(0).volumeResourceIds().get(0)); + Assertions.assertEquals("mlovuanashcxl", model.networkSiblingSetId()); + Assertions.assertEquals("jerbdkelvidizozs", model.subnetId()); + Assertions.assertEquals("ccxjm", model.networkSiblingSetStateId()); + Assertions.assertEquals(NetworkFeatures.STANDARD_BASIC, model.networkFeatures()); + Assertions.assertEquals("jctzenkei", model.nicInfoList().get(0).volumeResourceIds().get(0)); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NicInfoTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NicInfoTests.java index 4ff2b7b7e3ece..29979eaf98733 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NicInfoTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/NicInfoTests.java @@ -11,9 +11,9 @@ public final class NicInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - NicInfo model - = BinaryData.fromString("{\"ipAddress\":\"fvfkak\",\"volumeResourceIds\":[\"dt\",\"evboclzhzjknyuxg\"]}") - .toObject(NicInfo.class); - Assertions.assertEquals("dt", model.volumeResourceIds().get(0)); + NicInfo model = BinaryData + .fromString("{\"ipAddress\":\"srboldforobw\",\"volumeResourceIds\":[\"izbfhfovvacq\",\"btuodxeszabbel\"]}") + .toObject(NicInfo.class); + Assertions.assertEquals("izbfhfovvacq", model.volumeResourceIds().get(0)); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationsListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationsListMockTests.java index 79fb5d4ffc7ee..ebe8d7681c8a1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationsListMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/OperationsListMockTests.java @@ -23,7 +23,7 @@ public final class OperationsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"name\":\"uabzoghkt\",\"display\":{\"provider\":\"czhcoeocnh\",\"resource\":\"rottjzcfyjzptw\",\"operation\":\"ohapqinfsz\",\"description\":\"glqdhm\"},\"origin\":\"zralcxpjbyyps\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{\"name\":\"nkyhf\",\"displayName\":\"vsqxfxjelgcmpzqj\",\"displayDescription\":\"hqxu\",\"unit\":\"vcacoyv\",\"supportedAggregationTypes\":[\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"sjsz\",\"bscm\",\"lzijiufehgmvflnw\"],\"internalMetricName\":\"qkxrerl\",\"enableRegionalMdmAccount\":false,\"sourceMdmAccount\":\"yl\",\"sourceMdmNamespace\":\"wxzut\",\"dimensions\":[{},{},{}],\"aggregationType\":\"whghmup\",\"fillGapWithZero\":true,\"category\":\"tcdxabbujftaben\",\"resourceIdDimensionNameOverride\":\"klqpx\",\"isInternal\":false},{\"name\":\"feddwwnlza\",\"displayName\":\"xud\",\"displayDescription\":\"hgookrtalvnbwgpb\",\"unit\":\"eluclvdjj\",\"supportedAggregationTypes\":[\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"odxahhxhqf\"],\"internalMetricName\":\"nvzoqgyipemch\",\"enableRegionalMdmAccount\":false,\"sourceMdmAccount\":\"czuejdtxptl\",\"sourceMdmNamespace\":\"wzhomewjjstl\",\"dimensions\":[{},{}],\"aggregationType\":\"awmo\",\"fillGapWithZero\":false,\"category\":\"cz\",\"resourceIdDimensionNameOverride\":\"odrrslblxyd\",\"isInternal\":false}],\"logSpecifications\":[{\"name\":\"bxiwkgfbqljn\",\"displayName\":\"hychocokuleh\"},{\"name\":\"qlrqffaweyurk\",\"displayName\":\"y\"},{\"name\":\"xra\",\"displayName\":\"uqd\"},{\"name\":\"xmrgchbapxkiy\",\"displayName\":\"j\"}]}}}]}"; + = "{\"value\":[{\"name\":\"bsnmfpph\",\"display\":{\"provider\":\"evy\",\"resource\":\"hsgz\",\"operation\":\"zbgomfgbeg\",\"description\":\"gleohi\"},\"origin\":\"tnluankrr\",\"properties\":{\"serviceSpecification\":{\"metricSpecifications\":[{\"name\":\"tijv\",\"displayName\":\"vbmqzbqq\",\"displayDescription\":\"aj\",\"unit\":\"wxacevehj\",\"supportedAggregationTypes\":[\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"gaoql\",\"faey\"],\"internalMetricName\":\"nm\",\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"irpghriypoqeyh\",\"sourceMdmNamespace\":\"h\",\"dimensions\":[{},{}],\"aggregationType\":\"lpyznuciqdsmexi\",\"fillGapWithZero\":false,\"category\":\"uxtyasiibmi\",\"resourceIdDimensionNameOverride\":\"nnust\",\"isInternal\":true},{\"name\":\"hnmgixhcm\",\"displayName\":\"mqfoudorh\",\"displayDescription\":\"yyprotwyp\",\"unit\":\"d\",\"supportedAggregationTypes\":[\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"mjkavlgorbmft\",\"mdtzfjltfvnzc\",\"jtotpvopvpbd\",\"zq\"],\"internalMetricName\":\"q\",\"enableRegionalMdmAccount\":true,\"sourceMdmAccount\":\"svqwthmkyibc\",\"sourceMdmNamespace\":\"ihsgq\",\"dimensions\":[{},{},{},{}],\"aggregationType\":\"ohsdtmcd\",\"fillGapWithZero\":true,\"category\":\"cohdx\",\"resourceIdDimensionNameOverride\":\"lm\",\"isInternal\":true},{\"name\":\"pcvhdbevwqqxeys\",\"displayName\":\"nqzi\",\"displayDescription\":\"fkbg\",\"unit\":\"bowxe\",\"supportedAggregationTypes\":[\"Average\"],\"supportedTimeGrainTypes\":[\"ygvkzqkjj\",\"okbzef\",\"zrxcczurt\"],\"internalMetricName\":\"ipqxbkwvzgnzv\",\"enableRegionalMdmAccount\":false,\"sourceMdmAccount\":\"d\",\"sourceMdmNamespace\":\"zmqpnodawopqhewj\",\"dimensions\":[{},{},{},{}],\"aggregationType\":\"gsbos\",\"fillGapWithZero\":false,\"category\":\"ndlatutmzlbi\",\"resourceIdDimensionNameOverride\":\"lvfhrbbp\",\"isInternal\":false},{\"name\":\"cwwyyur\",\"displayName\":\"chpp\",\"displayDescription\":\"rsnm\",\"unit\":\"ayzejnhlbkpbz\",\"supportedAggregationTypes\":[\"Average\",\"Average\",\"Average\"],\"supportedTimeGrainTypes\":[\"hzvechndbnwieho\"],\"internalMetricName\":\"wjwiuub\",\"enableRegionalMdmAccount\":false,\"sourceMdmAccount\":\"sfapaqtferrq\",\"sourceMdmNamespace\":\"x\",\"dimensions\":[{},{},{},{}],\"aggregationType\":\"xap\",\"fillGapWithZero\":false,\"category\":\"qqnobpudcd\",\"resourceIdDimensionNameOverride\":\"tqwpwya\",\"isInternal\":true}],\"logSpecifications\":[{\"name\":\"bucljgkyexaogu\",\"displayName\":\"i\"},{\"name\":\"dsdaultxijjumf\",\"displayName\":\"azlnqnmcjngzqdqx\"}]}}}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,19 +34,19 @@ public void testList() throws Exception { PagedIterable response = manager.operations().list(com.azure.core.util.Context.NONE); - Assertions.assertEquals("uabzoghkt", response.iterator().next().name()); - Assertions.assertEquals("czhcoeocnh", response.iterator().next().display().provider()); - Assertions.assertEquals("rottjzcfyjzptw", response.iterator().next().display().resource()); - Assertions.assertEquals("ohapqinfsz", response.iterator().next().display().operation()); - Assertions.assertEquals("glqdhm", response.iterator().next().display().description()); - Assertions.assertEquals("zralcxpjbyyps", response.iterator().next().origin()); - Assertions.assertEquals("nkyhf", + Assertions.assertEquals("bsnmfpph", response.iterator().next().name()); + Assertions.assertEquals("evy", response.iterator().next().display().provider()); + Assertions.assertEquals("hsgz", response.iterator().next().display().resource()); + Assertions.assertEquals("zbgomfgbeg", response.iterator().next().display().operation()); + Assertions.assertEquals("gleohi", response.iterator().next().display().description()); + Assertions.assertEquals("tnluankrr", response.iterator().next().origin()); + Assertions.assertEquals("tijv", response.iterator().next().serviceSpecification().metricSpecifications().get(0).name()); - Assertions.assertEquals("vsqxfxjelgcmpzqj", + Assertions.assertEquals("vbmqzbqq", response.iterator().next().serviceSpecification().metricSpecifications().get(0).displayName()); - Assertions.assertEquals("hqxu", + Assertions.assertEquals("aj", response.iterator().next().serviceSpecification().metricSpecifications().get(0).displayDescription()); - Assertions.assertEquals("vcacoyv", + Assertions.assertEquals("wxacevehj", response.iterator().next().serviceSpecification().metricSpecifications().get(0).unit()); Assertions.assertEquals(MetricAggregationType.AVERAGE, response.iterator() @@ -56,7 +56,7 @@ public void testList() throws Exception { .get(0) .supportedAggregationTypes() .get(0)); - Assertions.assertEquals("sjsz", + Assertions.assertEquals("gaoql", response.iterator() .next() .serviceSpecification() @@ -64,21 +64,21 @@ public void testList() throws Exception { .get(0) .supportedTimeGrainTypes() .get(0)); - Assertions.assertEquals("qkxrerl", + Assertions.assertEquals("nm", response.iterator().next().serviceSpecification().metricSpecifications().get(0).internalMetricName()); - Assertions.assertFalse( + Assertions.assertTrue( response.iterator().next().serviceSpecification().metricSpecifications().get(0).enableRegionalMdmAccount()); - Assertions.assertEquals("yl", + Assertions.assertEquals("irpghriypoqeyh", response.iterator().next().serviceSpecification().metricSpecifications().get(0).sourceMdmAccount()); - Assertions.assertEquals("wxzut", + Assertions.assertEquals("h", response.iterator().next().serviceSpecification().metricSpecifications().get(0).sourceMdmNamespace()); - Assertions.assertEquals("whghmup", + Assertions.assertEquals("lpyznuciqdsmexi", response.iterator().next().serviceSpecification().metricSpecifications().get(0).aggregationType()); - Assertions.assertTrue( + Assertions.assertFalse( response.iterator().next().serviceSpecification().metricSpecifications().get(0).fillGapWithZero()); - Assertions.assertEquals("tcdxabbujftaben", + Assertions.assertEquals("uxtyasiibmi", response.iterator().next().serviceSpecification().metricSpecifications().get(0).category()); - Assertions.assertEquals("klqpx", + Assertions.assertEquals("nnust", response.iterator() .next() .serviceSpecification() @@ -86,10 +86,10 @@ public void testList() throws Exception { .get(0) .resourceIdDimensionNameOverride()); Assertions - .assertFalse(response.iterator().next().serviceSpecification().metricSpecifications().get(0).isInternal()); - Assertions.assertEquals("bxiwkgfbqljn", + .assertTrue(response.iterator().next().serviceSpecification().metricSpecifications().get(0).isInternal()); + Assertions.assertEquals("bucljgkyexaogu", response.iterator().next().serviceSpecification().logSpecifications().get(0).name()); - Assertions.assertEquals("hychocokuleh", + Assertions.assertEquals("i", response.iterator().next().serviceSpecification().logSpecifications().get(0).displayName()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPatchPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPatchPropertiesTests.java index a260374b9fc21..61b6bde4f3b2a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPatchPropertiesTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPatchPropertiesTests.java @@ -13,24 +13,24 @@ public final class PoolPatchPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PoolPatchProperties model = BinaryData.fromString( - "{\"size\":5471317492687247558,\"qosType\":\"Manual\",\"coolAccess\":false,\"customThroughputMibps\":629645371}") + "{\"size\":3326683287722087129,\"qosType\":\"Auto\",\"coolAccess\":false,\"customThroughputMibps\":1699732408}") .toObject(PoolPatchProperties.class); - Assertions.assertEquals(5471317492687247558L, model.size()); - Assertions.assertEquals(QosType.MANUAL, model.qosType()); + Assertions.assertEquals(3326683287722087129L, model.size()); + Assertions.assertEquals(QosType.AUTO, model.qosType()); Assertions.assertFalse(model.coolAccess()); - Assertions.assertEquals(629645371, model.customThroughputMibps()); + Assertions.assertEquals(1699732408, model.customThroughputMibps()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - PoolPatchProperties model = new PoolPatchProperties().withSize(5471317492687247558L) - .withQosType(QosType.MANUAL) + PoolPatchProperties model = new PoolPatchProperties().withSize(3326683287722087129L) + .withQosType(QosType.AUTO) .withCoolAccess(false) - .withCustomThroughputMibps(629645371); + .withCustomThroughputMibps(1699732408); model = BinaryData.fromObject(model).toObject(PoolPatchProperties.class); - Assertions.assertEquals(5471317492687247558L, model.size()); - Assertions.assertEquals(QosType.MANUAL, model.qosType()); + Assertions.assertEquals(3326683287722087129L, model.size()); + Assertions.assertEquals(QosType.AUTO, model.qosType()); Assertions.assertFalse(model.coolAccess()); - Assertions.assertEquals(629645371, model.customThroughputMibps()); + Assertions.assertEquals(1699732408, model.customThroughputMibps()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPropertiesTests.java index 2a31fb54419fc..382423a03cab6 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPropertiesTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolPropertiesTests.java @@ -15,30 +15,30 @@ public final class PoolPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PoolProperties model = BinaryData.fromString( - "{\"poolId\":\"kvci\",\"size\":9199588347838706768,\"serviceLevel\":\"Premium\",\"provisioningState\":\"a\",\"totalThroughputMibps\":12.081653,\"utilizedThroughputMibps\":37.256683,\"customThroughputMibps\":2101312168,\"qosType\":\"Manual\",\"coolAccess\":false,\"encryptionType\":\"Single\"}") + "{\"poolId\":\"atjeaahh\",\"size\":4114436598788665667,\"serviceLevel\":\"Flexible\",\"provisioningState\":\"akz\",\"totalThroughputMibps\":70.257355,\"utilizedThroughputMibps\":12.795037,\"customThroughputMibps\":371006756,\"qosType\":\"Manual\",\"coolAccess\":false,\"encryptionType\":\"Double\"}") .toObject(PoolProperties.class); - Assertions.assertEquals(9199588347838706768L, model.size()); - Assertions.assertEquals(ServiceLevel.PREMIUM, model.serviceLevel()); - Assertions.assertEquals(2101312168, model.customThroughputMibps()); + Assertions.assertEquals(4114436598788665667L, model.size()); + Assertions.assertEquals(ServiceLevel.FLEXIBLE, model.serviceLevel()); + Assertions.assertEquals(371006756, model.customThroughputMibps()); Assertions.assertEquals(QosType.MANUAL, model.qosType()); Assertions.assertFalse(model.coolAccess()); - Assertions.assertEquals(EncryptionType.SINGLE, model.encryptionType()); + Assertions.assertEquals(EncryptionType.DOUBLE, model.encryptionType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - PoolProperties model = new PoolProperties().withSize(9199588347838706768L) - .withServiceLevel(ServiceLevel.PREMIUM) - .withCustomThroughputMibps(2101312168) + PoolProperties model = new PoolProperties().withSize(4114436598788665667L) + .withServiceLevel(ServiceLevel.FLEXIBLE) + .withCustomThroughputMibps(371006756) .withQosType(QosType.MANUAL) .withCoolAccess(false) - .withEncryptionType(EncryptionType.SINGLE); + .withEncryptionType(EncryptionType.DOUBLE); model = BinaryData.fromObject(model).toObject(PoolProperties.class); - Assertions.assertEquals(9199588347838706768L, model.size()); - Assertions.assertEquals(ServiceLevel.PREMIUM, model.serviceLevel()); - Assertions.assertEquals(2101312168, model.customThroughputMibps()); + Assertions.assertEquals(4114436598788665667L, model.size()); + Assertions.assertEquals(ServiceLevel.FLEXIBLE, model.serviceLevel()); + Assertions.assertEquals(371006756, model.customThroughputMibps()); Assertions.assertEquals(QosType.MANUAL, model.qosType()); Assertions.assertFalse(model.coolAccess()); - Assertions.assertEquals(EncryptionType.SINGLE, model.encryptionType()); + Assertions.assertEquals(EncryptionType.DOUBLE, model.encryptionType()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsCreateOrUpdateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsCreateOrUpdateMockTests.java index 3a49a9c71cca1..582e06571fc11 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsCreateOrUpdateMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsCreateOrUpdateMockTests.java @@ -26,7 +26,7 @@ public final class PoolsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"poolId\":\"o\",\"size\":8071229481274885991,\"serviceLevel\":\"StandardZRS\",\"provisioningState\":\"Succeeded\",\"totalThroughputMibps\":73.394104,\"utilizedThroughputMibps\":3.2387316,\"customThroughputMibps\":1331358631,\"qosType\":\"Manual\",\"coolAccess\":false,\"encryptionType\":\"Double\"},\"etag\":\"c\",\"location\":\"tfshksnyzm\",\"tags\":{\"iqdktwtkvih\":\"mwbwmbnlslce\",\"nguuzhwvla\":\"pfliwo\",\"mhjhaus\":\"p\",\"ekymffztsilscvqs\":\"b\"},\"id\":\"eiihfymko\",\"name\":\"ihyeseu\",\"type\":\"gcigzh\"}"; + = "{\"properties\":{\"poolId\":\"pkevmylt\",\"size\":3505428811532271860,\"serviceLevel\":\"Premium\",\"provisioningState\":\"Succeeded\",\"totalThroughputMibps\":93.264755,\"utilizedThroughputMibps\":36.27896,\"customThroughputMibps\":99692229,\"qosType\":\"Manual\",\"coolAccess\":true,\"encryptionType\":\"Single\"},\"etag\":\"kqma\",\"location\":\"xvpif\",\"tags\":{\"yzeyuubeid\":\"ify\",\"gygvfltgvdiho\":\"zlfytoit\",\"ucpcunnuzdqumoen\":\"nkrxwetwkdrcy\",\"kaa\":\"dnaienhqhskndnel\"},\"id\":\"lknwfoanniyop\",\"name\":\"txiv\",\"type\":\"nrlyxnuc\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -36,26 +36,26 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CapacityPool response = manager.pools() - .define("ukz") - .withRegion("nbmxlx") - .withExistingNetAppAccount("fogxhcxnw", "tpfdzxcouzfwofwa") - .withSize(620879348129715569L) + .define("udqll") + .withRegion("yyshtuwgmevua") + .withExistingNetAppAccount("pmil", "pnwy") + .withSize(4681666947852693156L) .withServiceLevel(ServiceLevel.STANDARD_ZRS) - .withTags(mapOf("cahfsgbjmlreesr", "ygeqzusito", "lisolntfxxc", "wsszvlc")) - .withCustomThroughputMibps(1835090723) + .withTags(mapOf("qipxgzdyimsf", "zyifrkgwltx", "vk", "yorpr")) + .withCustomThroughputMibps(2108853731) .withQosType(QosType.MANUAL) .withCoolAccess(false) - .withEncryptionType(EncryptionType.SINGLE) + .withEncryptionType(EncryptionType.DOUBLE) .create(); - Assertions.assertEquals("tfshksnyzm", response.location()); - Assertions.assertEquals("mwbwmbnlslce", response.tags().get("iqdktwtkvih")); - Assertions.assertEquals(8071229481274885991L, response.size()); - Assertions.assertEquals(ServiceLevel.STANDARD_ZRS, response.serviceLevel()); - Assertions.assertEquals(1331358631, response.customThroughputMibps()); + Assertions.assertEquals("xvpif", response.location()); + Assertions.assertEquals("ify", response.tags().get("yzeyuubeid")); + Assertions.assertEquals(3505428811532271860L, response.size()); + Assertions.assertEquals(ServiceLevel.PREMIUM, response.serviceLevel()); + Assertions.assertEquals(99692229, response.customThroughputMibps()); Assertions.assertEquals(QosType.MANUAL, response.qosType()); - Assertions.assertFalse(response.coolAccess()); - Assertions.assertEquals(EncryptionType.DOUBLE, response.encryptionType()); + Assertions.assertTrue(response.coolAccess()); + Assertions.assertEquals(EncryptionType.SINGLE, response.encryptionType()); } // Use "Map.of" if available diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsGetWithResponseMockTests.java index 9b872dff5a6af..37be9e73038e7 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsGetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsGetWithResponseMockTests.java @@ -24,7 +24,7 @@ public final class PoolsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"poolId\":\"wp\",\"size\":7512439687114953197,\"serviceLevel\":\"Premium\",\"provisioningState\":\"doejtighsxjpyt\",\"totalThroughputMibps\":89.21339,\"utilizedThroughputMibps\":74.41519,\"customThroughputMibps\":1624416011,\"qosType\":\"Auto\",\"coolAccess\":true,\"encryptionType\":\"Double\"},\"etag\":\"h\",\"location\":\"hjnhjiot\",\"tags\":{\"cypxbbfetw\":\"bbcngkeg\",\"oxpdxq\":\"lyr\",\"wnk\":\"frolq\",\"jew\":\"u\"},\"id\":\"ahwkxjjm\",\"name\":\"tnlmsoodtmvecdhd\",\"type\":\"swcrptveaj\"}"; + = "{\"properties\":{\"poolId\":\"v\",\"size\":2472472449262308145,\"serviceLevel\":\"Premium\",\"provisioningState\":\"aqylkjztji\",\"totalThroughputMibps\":20.662773,\"utilizedThroughputMibps\":17.443895,\"customThroughputMibps\":864325945,\"qosType\":\"Manual\",\"coolAccess\":true,\"encryptionType\":\"Double\"},\"etag\":\"zc\",\"location\":\"ltkrl\",\"tags\":{\"zhomp\":\"tbdrvcqgue\",\"ckyeclcdigpta\":\"eqdurelyujlfyoum\",\"utgjcyz\":\"brzmqxucycijoclx\"},\"id\":\"zjd\",\"name\":\"r\",\"type\":\"jb\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,15 +34,15 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); CapacityPool response = manager.pools() - .getWithResponse("pqcckqiawzlz", "laslgacizux", "r", com.azure.core.util.Context.NONE) + .getWithResponse("d", "bdweade", "zmwntopagt", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("hjnhjiot", response.location()); - Assertions.assertEquals("bbcngkeg", response.tags().get("cypxbbfetw")); - Assertions.assertEquals(7512439687114953197L, response.size()); + Assertions.assertEquals("ltkrl", response.location()); + Assertions.assertEquals("tbdrvcqgue", response.tags().get("zhomp")); + Assertions.assertEquals(2472472449262308145L, response.size()); Assertions.assertEquals(ServiceLevel.PREMIUM, response.serviceLevel()); - Assertions.assertEquals(1624416011, response.customThroughputMibps()); - Assertions.assertEquals(QosType.AUTO, response.qosType()); + Assertions.assertEquals(864325945, response.customThroughputMibps()); + Assertions.assertEquals(QosType.MANUAL, response.qosType()); Assertions.assertTrue(response.coolAccess()); Assertions.assertEquals(EncryptionType.DOUBLE, response.encryptionType()); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsListMockTests.java index bc7f93ab82eae..3790055795d97 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsListMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/PoolsListMockTests.java @@ -25,7 +25,7 @@ public final class PoolsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"poolId\":\"uqhrlmcskykp\",\"size\":974985627504326928,\"serviceLevel\":\"Standard\",\"provisioningState\":\"xcn\",\"totalThroughputMibps\":95.44534,\"utilizedThroughputMibps\":50.744553,\"customThroughputMibps\":2119515808,\"qosType\":\"Auto\",\"coolAccess\":true,\"encryptionType\":\"Single\"},\"etag\":\"pjprdpwr\",\"location\":\"fpcfjf\",\"tags\":{\"yep\":\"gzawk\",\"xkzrn\":\"yamnnidmdiawp\",\"gwqpsqazih\":\"mkctdhuo\",\"ztibniyntsxjmfm\":\"odvqgcnbhcbmj\"},\"id\":\"ftvhkmoogj\",\"name\":\"hskb\",\"type\":\"gmjgrul\"}]}"; + = "{\"value\":[{\"properties\":{\"poolId\":\"uatbwbqamteuliy\",\"size\":5798834273726815282,\"serviceLevel\":\"Flexible\",\"provisioningState\":\"vmwfauxxep\",\"totalThroughputMibps\":51.94188,\"utilizedThroughputMibps\":47.916176,\"customThroughputMibps\":684125583,\"qosType\":\"Manual\",\"coolAccess\":true,\"encryptionType\":\"Single\"},\"etag\":\"jqpkzfbo\",\"location\":\"jmcsmyqwixvcpwn\",\"tags\":{\"qtamtyvsknxrw\":\"wzwofalickduo\",\"xn\":\"awnvsbcfhza\",\"zgyufutrwp\":\"hycvdimwrzre\"},\"id\":\"eryekzkdhmeottaw\",\"name\":\"yos\",\"type\":\"wwhnhjtfvpn\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,14 +35,14 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.pools().list("zxvlgsrgkrfizrp", "wlp", com.azure.core.util.Context.NONE); + = manager.pools().list("xjeaoqaqbzgyh", "w", com.azure.core.util.Context.NONE); - Assertions.assertEquals("fpcfjf", response.iterator().next().location()); - Assertions.assertEquals("gzawk", response.iterator().next().tags().get("yep")); - Assertions.assertEquals(974985627504326928L, response.iterator().next().size()); - Assertions.assertEquals(ServiceLevel.STANDARD, response.iterator().next().serviceLevel()); - Assertions.assertEquals(2119515808, response.iterator().next().customThroughputMibps()); - Assertions.assertEquals(QosType.AUTO, response.iterator().next().qosType()); + Assertions.assertEquals("jmcsmyqwixvcpwn", response.iterator().next().location()); + Assertions.assertEquals("wzwofalickduo", response.iterator().next().tags().get("qtamtyvsknxrw")); + Assertions.assertEquals(5798834273726815282L, response.iterator().next().size()); + Assertions.assertEquals(ServiceLevel.FLEXIBLE, response.iterator().next().serviceLevel()); + Assertions.assertEquals(684125583, response.iterator().next().customThroughputMibps()); + Assertions.assertEquals(QosType.MANUAL, response.iterator().next().qosType()); Assertions.assertTrue(response.iterator().next().coolAccess()); Assertions.assertEquals(EncryptionType.SINGLE, response.iterator().next().encryptionType()); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QueryNetworkSiblingSetRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QueryNetworkSiblingSetRequestTests.java index 2f11070fde380..86be1ba7b7e3c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QueryNetworkSiblingSetRequestTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QueryNetworkSiblingSetRequestTests.java @@ -12,18 +12,18 @@ public final class QueryNetworkSiblingSetRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { QueryNetworkSiblingSetRequest model - = BinaryData.fromString("{\"networkSiblingSetId\":\"y\",\"subnetId\":\"es\"}") + = BinaryData.fromString("{\"networkSiblingSetId\":\"htd\",\"subnetId\":\"gbjkvreljeamur\"}") .toObject(QueryNetworkSiblingSetRequest.class); - Assertions.assertEquals("y", model.networkSiblingSetId()); - Assertions.assertEquals("es", model.subnetId()); + Assertions.assertEquals("htd", model.networkSiblingSetId()); + Assertions.assertEquals("gbjkvreljeamur", model.subnetId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { QueryNetworkSiblingSetRequest model - = new QueryNetworkSiblingSetRequest().withNetworkSiblingSetId("y").withSubnetId("es"); + = new QueryNetworkSiblingSetRequest().withNetworkSiblingSetId("htd").withSubnetId("gbjkvreljeamur"); model = BinaryData.fromObject(model).toObject(QueryNetworkSiblingSetRequest.class); - Assertions.assertEquals("y", model.networkSiblingSetId()); - Assertions.assertEquals("es", model.subnetId()); + Assertions.assertEquals("htd", model.networkSiblingSetId()); + Assertions.assertEquals("gbjkvreljeamur", model.subnetId()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaAvailabilityRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaAvailabilityRequestTests.java index 1e33b6772d967..433adaf508734 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaAvailabilityRequestTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/QuotaAvailabilityRequestTests.java @@ -12,24 +12,23 @@ public final class QuotaAvailabilityRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - QuotaAvailabilityRequest model = BinaryData.fromString( - "{\"name\":\"cxtczhupeukn\",\"type\":\"Microsoft.NetApp/netAppAccounts/backupVaults/backups\",\"resourceGroup\":\"d\"}") + QuotaAvailabilityRequest model = BinaryData + .fromString( + "{\"name\":\"i\",\"type\":\"Microsoft.NetApp/netAppAccounts\",\"resourceGroup\":\"wncvjtszcofiz\"}") .toObject(QuotaAvailabilityRequest.class); - Assertions.assertEquals("cxtczhupeukn", model.name()); - Assertions.assertEquals(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_BACKUP_VAULTS_BACKUPS, - model.type()); - Assertions.assertEquals("d", model.resourceGroup()); + Assertions.assertEquals("i", model.name()); + Assertions.assertEquals(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS, model.type()); + Assertions.assertEquals("wncvjtszcofiz", model.resourceGroup()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - QuotaAvailabilityRequest model = new QuotaAvailabilityRequest().withName("cxtczhupeukn") - .withType(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_BACKUP_VAULTS_BACKUPS) - .withResourceGroup("d"); + QuotaAvailabilityRequest model = new QuotaAvailabilityRequest().withName("i") + .withType(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS) + .withResourceGroup("wncvjtszcofiz"); model = BinaryData.fromObject(model).toObject(QuotaAvailabilityRequest.class); - Assertions.assertEquals("cxtczhupeukn", model.name()); - Assertions.assertEquals(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_BACKUP_VAULTS_BACKUPS, - model.type()); - Assertions.assertEquals("d", model.resourceGroup()); + Assertions.assertEquals("i", model.name()); + Assertions.assertEquals(CheckQuotaNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS, model.type()); + Assertions.assertEquals("wncvjtszcofiz", model.resourceGroup()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsGetWithResponseMockTests.java index 9fdfaf213916d..645ad862c25bf 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsGetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsGetWithResponseMockTests.java @@ -20,7 +20,7 @@ public final class RansomwareReportsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"eventTime\":\"2021-09-06T02:38:41Z\",\"state\":\"Resolved\",\"severity\":\"Low\",\"clearedCount\":468777733,\"reportedCount\":1623615828,\"suspects\":[{\"extension\":\"jxeiy\",\"resolution\":\"PotentialThreat\",\"fileCount\":216127976,\"suspectFiles\":[{},{}]},{\"extension\":\"exh\",\"resolution\":\"FalsePositive\",\"fileCount\":1400683190,\"suspectFiles\":[{},{},{},{}]},{\"extension\":\"kbrup\",\"resolution\":\"FalsePositive\",\"fileCount\":1391296754,\"suspectFiles\":[{}]}],\"provisioningState\":\"zacvu\"},\"id\":\"pjpbibnzpp\",\"name\":\"epifexleqirccjc\",\"type\":\"ykcgxvrpjlvcz\"}"; + = "{\"properties\":{\"eventTime\":\"2021-02-13T10:27:06Z\",\"state\":\"Resolved\",\"severity\":\"High\",\"clearedCount\":523480750,\"reportedCount\":851231708,\"suspects\":[{\"extension\":\"sbq\",\"resolution\":\"FalsePositive\",\"fileCount\":1059203016,\"suspectFiles\":[{},{},{},{}]}],\"provisioningState\":\"ao\"},\"id\":\"isglrrc\",\"name\":\"ezkhhltnjadhqo\",\"type\":\"wjqo\"}"; 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)); RansomwareReport response = manager.ransomwareReports() - .getWithResponse("slojfkqidnqt", "qxjhqxcsqhtkbtnq", "rngl", "mbiipsnawwlqk", "nxhhl", + .getWithResponse("xqltgrd", "gypxrxvbfihwuhvc", "a", "s", "bxrblmliowxihspn", com.azure.core.util.Context.NONE) .getValue(); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsListMockTests.java index a55ea4e497755..a99185a5a4445 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsListMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RansomwareReportsListMockTests.java @@ -21,7 +21,7 @@ public final class RansomwareReportsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"eventTime\":\"2021-03-25T11:59:34Z\",\"state\":\"Active\",\"severity\":\"Low\",\"clearedCount\":665890978,\"reportedCount\":72207954,\"suspects\":[{\"extension\":\"jts\",\"resolution\":\"FalsePositive\",\"fileCount\":120239759,\"suspectFiles\":[{}]},{\"extension\":\"zarpzeqacdldt\",\"resolution\":\"FalsePositive\",\"fileCount\":1809146245,\"suspectFiles\":[{},{},{},{}]}],\"provisioningState\":\"pc\"},\"id\":\"hnuqndaizu\",\"name\":\"fkhuytu\",\"type\":\"zx\"}]}"; + = "{\"value\":[{\"properties\":{\"eventTime\":\"2021-09-30T11:14:47Z\",\"state\":\"Active\",\"severity\":\"Moderate\",\"clearedCount\":896412004,\"reportedCount\":834436934,\"suspects\":[{\"extension\":\"bxubmdna\",\"resolution\":\"FalsePositive\",\"fileCount\":1699844776,\"suspectFiles\":[{}]},{\"extension\":\"jelaqacigele\",\"resolution\":\"PotentialThreat\",\"fileCount\":883742006,\"suspectFiles\":[{},{}]},{\"extension\":\"z\",\"resolution\":\"FalsePositive\",\"fileCount\":1120950278,\"suspectFiles\":[{},{},{},{}]},{\"extension\":\"nrlkwzdqy\",\"resolution\":\"PotentialThreat\",\"fileCount\":1893687260,\"suspectFiles\":[{},{},{},{}]}],\"provisioningState\":\"ptsoqfyiase\"},\"id\":\"hkrttzrazis\",\"name\":\"ykiue\",\"type\":\"vanbwzohmnrxxbs\"}]}"; 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.ransomwareReports() - .list("odacpunettepdjxq", "skoynuiylpc", "aewse", "vesk", com.azure.core.util.Context.NONE); + .list("ueayfbpcmsplb", "rrueqthwmg", "mbscbbx", "gdhxi", com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoAvailabilityZoneMappingsItemTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoAvailabilityZoneMappingsItemTests.java index 2a3d39d37244d..72c1ed9d88d76 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoAvailabilityZoneMappingsItemTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoAvailabilityZoneMappingsItemTests.java @@ -12,9 +12,9 @@ public final class RegionInfoAvailabilityZoneMappingsItemTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RegionInfoAvailabilityZoneMappingsItem model - = BinaryData.fromString("{\"availabilityZone\":\"iqakydiwfbr\",\"isAvailable\":true}") + = BinaryData.fromString("{\"availabilityZone\":\"mdy\",\"isAvailable\":false}") .toObject(RegionInfoAvailabilityZoneMappingsItem.class); - Assertions.assertEquals("iqakydiwfbr", model.availabilityZone()); - Assertions.assertTrue(model.isAvailable()); + Assertions.assertEquals("mdy", model.availabilityZone()); + Assertions.assertFalse(model.isAvailable()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoInnerTests.java index 3554d4062917e..d46cc6ff3cf8f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoInnerTests.java @@ -13,11 +13,11 @@ public final class RegionInfoInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RegionInfoInner model = BinaryData.fromString( - "{\"storageToNetworkProximity\":\"T1AndT2AndAcrossT2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"lmbkzu\",\"isAvailable\":true},{\"availabilityZone\":\"rfih\",\"isAvailable\":true},{\"availabilityZone\":\"wlpxuzzjg\",\"isAvailable\":true},{\"availabilityZone\":\"qyhqo\",\"isAvailable\":true}]}") + "{\"storageToNetworkProximity\":\"T1AndT2AndAcrossT2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"awfvjlboxqvkjl\",\"isAvailable\":false}]}") .toObject(RegionInfoInner.class); Assertions.assertEquals(RegionStorageToNetworkProximity.T1AND_T2AND_ACROSS_T2, model.storageToNetworkProximity()); - Assertions.assertEquals("lmbkzu", model.availabilityZoneMappings().get(0).availabilityZone()); - Assertions.assertTrue(model.availabilityZoneMappings().get(0).isAvailable()); + Assertions.assertEquals("awfvjlboxqvkjl", model.availabilityZoneMappings().get(0).availabilityZone()); + Assertions.assertFalse(model.availabilityZoneMappings().get(0).isAvailable()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoResourceInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoResourceInnerTests.java index c92c0fc4cf194..e2e8260d93090 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoResourceInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfoResourceInnerTests.java @@ -13,10 +13,10 @@ public final class RegionInfoResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RegionInfoResourceInner model = BinaryData.fromString( - "{\"properties\":{\"storageToNetworkProximity\":\"T2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"hhmemhooclutnp\",\"isAvailable\":false}]},\"id\":\"czj\",\"name\":\"mmyky\",\"type\":\"jxsglhsr\"}") + "{\"properties\":{\"storageToNetworkProximity\":\"T1AndT2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"zdmovzv\",\"isAvailable\":true},{\"availabilityZone\":\"wzqa\",\"isAvailable\":false},{\"availabilityZone\":\"z\",\"isAvailable\":false},{\"availabilityZone\":\"laecxndticok\",\"isAvailable\":true}]},\"id\":\"lqtmldgxob\",\"name\":\"irclnpk\",\"type\":\"iayz\"}") .toObject(RegionInfoResourceInner.class); - Assertions.assertEquals(RegionStorageToNetworkProximity.T2, model.storageToNetworkProximity()); - Assertions.assertEquals("hhmemhooclutnp", model.availabilityZoneMappings().get(0).availabilityZone()); - Assertions.assertFalse(model.availabilityZoneMappings().get(0).isAvailable()); + Assertions.assertEquals(RegionStorageToNetworkProximity.T1AND_T2, model.storageToNetworkProximity()); + Assertions.assertEquals("zdmovzv", model.availabilityZoneMappings().get(0).availabilityZone()); + Assertions.assertTrue(model.availabilityZoneMappings().get(0).isAvailable()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfosListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfosListTests.java index bca550b25502b..b41d1f466b4a5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfosListTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/RegionInfosListTests.java @@ -13,11 +13,12 @@ public final class RegionInfosListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RegionInfosList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"storageToNetworkProximity\":\"T2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"spodaqax\",\"isAvailable\":false},{\"availabilityZone\":\"etgbebjfulb\",\"isAvailable\":false}]},\"id\":\"h\",\"name\":\"lpnfpubntnb\",\"type\":\"tzviqsowsaaelcat\"}],\"nextLink\":\"ju\"}") + "{\"value\":[{\"properties\":{\"storageToNetworkProximity\":\"T1AndT2AndAcrossT2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"nraauzz\",\"isAvailable\":true},{\"availabilityZone\":\"zysdzh\",\"isAvailable\":true},{\"availabilityZone\":\"vaiqyuvvf\",\"isAvailable\":false}]},\"id\":\"hhqyi\",\"name\":\"vyl\",\"type\":\"uyav\"},{\"properties\":{\"storageToNetworkProximity\":\"T2AndAcrossT2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"ttijfybvpoekrs\",\"isAvailable\":true},{\"availabilityZone\":\"dhuzqgnjdgk\",\"isAvailable\":false},{\"availabilityZone\":\"liqhzvhx\",\"isAvailable\":false},{\"availabilityZone\":\"tkubotppn\",\"isAvailable\":false}]},\"id\":\"xhihfrbbcevqagtl\",\"name\":\"dhlfkqojpykvgt\",\"type\":\"dcnifmz\"},{\"properties\":{\"storageToNetworkProximity\":\"T2AndAcrossT2\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"nysuxmprafwgckh\",\"isAvailable\":false}]},\"id\":\"d\",\"name\":\"ffwafq\",\"type\":\"oudaspavehhrvk\"},{\"properties\":{\"storageToNetworkProximity\":\"T1\",\"availabilityZoneMappings\":[{\"availabilityZone\":\"dhcxgkmoy\",\"isAvailable\":false},{\"availabilityZone\":\"uibhmfdnbzydvfv\",\"isAvailable\":false}]},\"id\":\"aeoisrvh\",\"name\":\"gorf\",\"type\":\"ukiscvwmzhw\"}],\"nextLink\":\"efaxvxilc\"}") .toObject(RegionInfosList.class); - Assertions.assertEquals(RegionStorageToNetworkProximity.T2, model.value().get(0).storageToNetworkProximity()); - Assertions.assertEquals("spodaqax", model.value().get(0).availabilityZoneMappings().get(0).availabilityZone()); - Assertions.assertFalse(model.value().get(0).availabilityZoneMappings().get(0).isAvailable()); - Assertions.assertEquals("ju", model.nextLink()); + Assertions.assertEquals(RegionStorageToNetworkProximity.T1AND_T2AND_ACROSS_T2, + model.value().get(0).storageToNetworkProximity()); + Assertions.assertEquals("nraauzz", model.value().get(0).availabilityZoneMappings().get(0).availabilityZone()); + Assertions.assertTrue(model.value().get(0).availabilityZoneMappings().get(0).isAvailable()); + Assertions.assertEquals("efaxvxilc", model.nextLink()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ResourceNameAvailabilityRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ResourceNameAvailabilityRequestTests.java index 2ad665f824e0b..9e858aa97bab8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ResourceNameAvailabilityRequestTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/ResourceNameAvailabilityRequestTests.java @@ -13,23 +13,23 @@ public final class ResourceNameAvailabilityRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ResourceNameAvailabilityRequest model = BinaryData.fromString( - "{\"name\":\"eukdqkkyih\",\"type\":\"Microsoft.NetApp/netAppAccounts/capacityPools/volumes/backups\",\"resourceGroup\":\"geqmgqzgwldoych\"}") + "{\"name\":\"vfcdisyirn\",\"type\":\"Microsoft.NetApp/netAppAccounts/capacityPools/volumes/snapshots\",\"resourceGroup\":\"hcz\"}") .toObject(ResourceNameAvailabilityRequest.class); - Assertions.assertEquals("eukdqkkyih", model.name()); + Assertions.assertEquals("vfcdisyirn", model.name()); Assertions.assertEquals( - CheckNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES_BACKUPS, model.type()); - Assertions.assertEquals("geqmgqzgwldoych", model.resourceGroup()); + CheckNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES_SNAPSHOTS, model.type()); + Assertions.assertEquals("hcz", model.resourceGroup()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ResourceNameAvailabilityRequest model = new ResourceNameAvailabilityRequest().withName("eukdqkkyih") - .withType(CheckNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES_BACKUPS) - .withResourceGroup("geqmgqzgwldoych"); + ResourceNameAvailabilityRequest model = new ResourceNameAvailabilityRequest().withName("vfcdisyirn") + .withType(CheckNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES_SNAPSHOTS) + .withResourceGroup("hcz"); model = BinaryData.fromObject(model).toObject(ResourceNameAvailabilityRequest.class); - Assertions.assertEquals("eukdqkkyih", model.name()); + Assertions.assertEquals("vfcdisyirn", model.name()); Assertions.assertEquals( - CheckNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES_BACKUPS, model.type()); - Assertions.assertEquals("geqmgqzgwldoych", model.resourceGroup()); + CheckNameResourceTypes.MICROSOFT_NET_APP_NET_APP_ACCOUNTS_CAPACITY_POOLS_VOLUMES_SNAPSHOTS, model.type()); + Assertions.assertEquals("hcz", model.resourceGroup()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SecretPasswordIdentityTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SecretPasswordIdentityTests.java deleted file mode 100644 index 37a8ae59f2fda..0000000000000 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SecretPasswordIdentityTests.java +++ /dev/null @@ -1,26 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.netapp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.netapp.models.SecretPasswordIdentity; -import org.junit.jupiter.api.Assertions; - -public final class SecretPasswordIdentityTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - SecretPasswordIdentity model - = BinaryData.fromString("{\"principalId\":\"mgbro\",\"userAssignedIdentity\":\"ddbhf\"}") - .toObject(SecretPasswordIdentity.class); - Assertions.assertEquals("ddbhf", model.userAssignedIdentity()); - } - - @org.junit.jupiter.api.Test - public void testSerialize() throws Exception { - SecretPasswordIdentity model = new SecretPasswordIdentity().withUserAssignedIdentity("ddbhf"); - model = BinaryData.fromObject(model).toObject(SecretPasswordIdentity.class); - Assertions.assertEquals("ddbhf", model.userAssignedIdentity()); - } -} diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateWithResponseMockTests.java index 71050b88b11ea..9442c1e98e046 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesCreateWithResponseMockTests.java @@ -27,7 +27,7 @@ public final class SnapshotPoliciesCreateWithResponseMockTests { @Test public void testCreateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1307416132,\"minute\":502016456,\"usedBytes\":2249768152395320200},\"dailySchedule\":{\"snapshotsToKeep\":1494940608,\"hour\":739569323,\"minute\":620372560,\"usedBytes\":2479410922633634980},\"weeklySchedule\":{\"snapshotsToKeep\":188437158,\"day\":\"cqchygtvxbyjane\",\"hour\":335583733,\"minute\":50999710,\"usedBytes\":4754103751291181786},\"monthlySchedule\":{\"snapshotsToKeep\":288031007,\"daysOfMonth\":\"i\",\"hour\":1008631704,\"minute\":787959181,\"usedBytes\":8769158516932053208},\"enabled\":true,\"provisioningState\":\"xuwsai\"},\"etag\":\"c\",\"location\":\"osbz\",\"tags\":{\"bcknjolgj\":\"gcv\"},\"id\":\"yxpvelszerqze\",\"name\":\"xoqeintxwalj\",\"type\":\"lzoblqwaafr\"}"; + = "{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1472660607,\"minute\":704144060,\"usedBytes\":9052954868996953096},\"dailySchedule\":{\"snapshotsToKeep\":385345133,\"hour\":592038420,\"minute\":1472348146,\"usedBytes\":3780645351268640414},\"weeklySchedule\":{\"snapshotsToKeep\":1091959996,\"day\":\"vv\",\"hour\":56804817,\"minute\":1687110835,\"usedBytes\":8523532171145377338},\"monthlySchedule\":{\"snapshotsToKeep\":1314772316,\"daysOfMonth\":\"rbfdpyflubhvjg\",\"hour\":688527355,\"minute\":1255688673,\"usedBytes\":6423285310105847926},\"enabled\":true,\"provisioningState\":\"memhooclutnpq\"},\"etag\":\"mczjkm\",\"location\":\"kyujxsglhsrrr\",\"tags\":{\"rfih\":\"ylmbkzudni\",\"nrefqyh\":\"tjewlpxuzzj\",\"ydiw\":\"otoihiqa\",\"hcspo\":\"brkwpzdqt\"},\"id\":\"aqa\",\"name\":\"sipi\",\"type\":\"tgbebj\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -37,49 +37,49 @@ public void testCreateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SnapshotPolicy response = manager.snapshotPolicies() - .define("kxkxhnegk") - .withRegion("lbvgjc") - .withExistingNetAppAccount("xhmw", "dbckyo") - .withTags(mapOf("fqb", "kgjiiytssikizbc")) - .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(1800387551) - .withMinute(55296959) - .withUsedBytes(1946098635867179641L)) - .withDailySchedule(new DailySchedule().withSnapshotsToKeep(1365496443) - .withHour(1602665053) - .withMinute(954240404) - .withUsedBytes(4133242532639521406L)) - .withWeeklySchedule(new WeeklySchedule().withSnapshotsToKeep(644011427) - .withDay("nbagnchj") - .withHour(6203641) - .withMinute(1680532748) - .withUsedBytes(7018289497090091145L)) - .withMonthlySchedule(new MonthlySchedule().withSnapshotsToKeep(502420669) - .withDaysOfMonth("lhjym") - .withHour(1348277844) - .withMinute(1550603008) - .withUsedBytes(1367412311842191581L)) - .withEnabled(true) + .define("rsrrmoucsofldp") + .withRegion("esyds") + .withExistingNetAppAccount("clgsc", "orim") + .withTags(mapOf("ecb", "fo")) + .withHourlySchedule(new HourlySchedule().withSnapshotsToKeep(1885056673) + .withMinute(853519534) + .withUsedBytes(3873403818939961012L)) + .withDailySchedule(new DailySchedule().withSnapshotsToKeep(1173256477) + .withHour(270239439) + .withMinute(1768939163) + .withUsedBytes(7159272851975255119L)) + .withWeeklySchedule(new WeeklySchedule().withSnapshotsToKeep(453041096) + .withDay("bsxtkcudfbsfarfs") + .withHour(1371865849) + .withMinute(1864601179) + .withUsedBytes(2835617475342020386L)) + .withMonthlySchedule(new MonthlySchedule().withSnapshotsToKeep(979302562) + .withDaysOfMonth("gf") + .withHour(1009446634) + .withMinute(970859098) + .withUsedBytes(5976000115786695513L)) + .withEnabled(false) .create(); - Assertions.assertEquals("osbz", response.location()); - Assertions.assertEquals("gcv", response.tags().get("bcknjolgj")); - Assertions.assertEquals(1307416132, response.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(502016456, response.hourlySchedule().minute()); - Assertions.assertEquals(2249768152395320200L, response.hourlySchedule().usedBytes()); - Assertions.assertEquals(1494940608, response.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(739569323, response.dailySchedule().hour()); - Assertions.assertEquals(620372560, response.dailySchedule().minute()); - Assertions.assertEquals(2479410922633634980L, response.dailySchedule().usedBytes()); - Assertions.assertEquals(188437158, response.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("cqchygtvxbyjane", response.weeklySchedule().day()); - Assertions.assertEquals(335583733, response.weeklySchedule().hour()); - Assertions.assertEquals(50999710, response.weeklySchedule().minute()); - Assertions.assertEquals(4754103751291181786L, response.weeklySchedule().usedBytes()); - Assertions.assertEquals(288031007, response.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("i", response.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(1008631704, response.monthlySchedule().hour()); - Assertions.assertEquals(787959181, response.monthlySchedule().minute()); - Assertions.assertEquals(8769158516932053208L, response.monthlySchedule().usedBytes()); + Assertions.assertEquals("kyujxsglhsrrr", response.location()); + Assertions.assertEquals("ylmbkzudni", response.tags().get("rfih")); + Assertions.assertEquals(1472660607, response.hourlySchedule().snapshotsToKeep()); + Assertions.assertEquals(704144060, response.hourlySchedule().minute()); + Assertions.assertEquals(9052954868996953096L, response.hourlySchedule().usedBytes()); + Assertions.assertEquals(385345133, response.dailySchedule().snapshotsToKeep()); + Assertions.assertEquals(592038420, response.dailySchedule().hour()); + Assertions.assertEquals(1472348146, response.dailySchedule().minute()); + Assertions.assertEquals(3780645351268640414L, response.dailySchedule().usedBytes()); + Assertions.assertEquals(1091959996, response.weeklySchedule().snapshotsToKeep()); + Assertions.assertEquals("vv", response.weeklySchedule().day()); + Assertions.assertEquals(56804817, response.weeklySchedule().hour()); + Assertions.assertEquals(1687110835, response.weeklySchedule().minute()); + Assertions.assertEquals(8523532171145377338L, response.weeklySchedule().usedBytes()); + Assertions.assertEquals(1314772316, response.monthlySchedule().snapshotsToKeep()); + Assertions.assertEquals("rbfdpyflubhvjg", response.monthlySchedule().daysOfMonth()); + Assertions.assertEquals(688527355, response.monthlySchedule().hour()); + Assertions.assertEquals(1255688673, response.monthlySchedule().minute()); + Assertions.assertEquals(6423285310105847926L, response.monthlySchedule().usedBytes()); Assertions.assertTrue(response.enabled()); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteMockTests.java index bd352e7648cd6..741b0bc42b0d1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesDeleteMockTests.java @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.snapshotPolicies().delete("owsocnequygdjbo", "grmtqjk", "evadrmmwiu", com.azure.core.util.Context.NONE); + manager.snapshotPolicies().delete("voxczytpr", "nwvroevytlyokrr", "o", com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetWithResponseMockTests.java index b4a2d010ba72e..feb2dedda5757 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class SnapshotPoliciesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":989850966,\"minute\":764559146,\"usedBytes\":3106144557754641608},\"dailySchedule\":{\"snapshotsToKeep\":1809831138,\"hour\":600524229,\"minute\":898887355,\"usedBytes\":856204828754570877},\"weeklySchedule\":{\"snapshotsToKeep\":1281785865,\"day\":\"kadppyibngq\",\"hour\":26947233,\"minute\":79055053,\"usedBytes\":1875475596417761370},\"monthlySchedule\":{\"snapshotsToKeep\":1165370308,\"daysOfMonth\":\"luvvad\",\"hour\":584085416,\"minute\":303655572,\"usedBytes\":6174165917369038352},\"enabled\":true,\"provisioningState\":\"wuowhlxlnwy\"},\"etag\":\"ouvblgmo\",\"location\":\"kltrfow\",\"tags\":{\"dhftukvhdxlwy\":\"rfmvlihcvjdrqcrj\",\"njyixh\":\"jbfqzdk\",\"valqjrhuzgfxo\":\"fratqxmbjroumzz\"},\"id\":\"jtpusllywpvtiotz\",\"name\":\"pdbollg\",\"type\":\"yfqiuasig\"}"; + = "{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1557864687,\"minute\":1683628579,\"usedBytes\":8682401111601182304},\"dailySchedule\":{\"snapshotsToKeep\":48133569,\"hour\":113101666,\"minute\":204216617,\"usedBytes\":294105782539047029},\"weeklySchedule\":{\"snapshotsToKeep\":899609401,\"day\":\"rhrljyoogwxhn\",\"hour\":595356327,\"minute\":188519413,\"usedBytes\":4498449621335160642},\"monthlySchedule\":{\"snapshotsToKeep\":452225212,\"daysOfMonth\":\"fqkfuarenl\",\"hour\":1102967023,\"minute\":1757158898,\"usedBytes\":5063142546295596094},\"enabled\":false,\"provisioningState\":\"vvkyfedevjboslcq\"},\"etag\":\"p\",\"location\":\"khminqcymc\",\"tags\":{\"nvudbchaqdtvqecr\":\"nbdxxewun\"},\"id\":\"ct\",\"name\":\"xxdtddmflh\",\"type\":\"ytxzvtznapxbanno\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,28 +31,28 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SnapshotPolicy response = manager.snapshotPolicies() - .getWithResponse("klixqcahyhxaly", "xawoijpodtblxp", "kwjdjodqhy", com.azure.core.util.Context.NONE) + .getWithResponse("ro", "xddbhfhpfpaz", "zoyw", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("kltrfow", response.location()); - Assertions.assertEquals("rfmvlihcvjdrqcrj", response.tags().get("dhftukvhdxlwy")); - Assertions.assertEquals(989850966, response.hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(764559146, response.hourlySchedule().minute()); - Assertions.assertEquals(3106144557754641608L, response.hourlySchedule().usedBytes()); - Assertions.assertEquals(1809831138, response.dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(600524229, response.dailySchedule().hour()); - Assertions.assertEquals(898887355, response.dailySchedule().minute()); - Assertions.assertEquals(856204828754570877L, response.dailySchedule().usedBytes()); - Assertions.assertEquals(1281785865, response.weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("kadppyibngq", response.weeklySchedule().day()); - Assertions.assertEquals(26947233, response.weeklySchedule().hour()); - Assertions.assertEquals(79055053, response.weeklySchedule().minute()); - Assertions.assertEquals(1875475596417761370L, response.weeklySchedule().usedBytes()); - Assertions.assertEquals(1165370308, response.monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("luvvad", response.monthlySchedule().daysOfMonth()); - Assertions.assertEquals(584085416, response.monthlySchedule().hour()); - Assertions.assertEquals(303655572, response.monthlySchedule().minute()); - Assertions.assertEquals(6174165917369038352L, response.monthlySchedule().usedBytes()); - Assertions.assertTrue(response.enabled()); + Assertions.assertEquals("khminqcymc", response.location()); + Assertions.assertEquals("nbdxxewun", response.tags().get("nvudbchaqdtvqecr")); + Assertions.assertEquals(1557864687, response.hourlySchedule().snapshotsToKeep()); + Assertions.assertEquals(1683628579, response.hourlySchedule().minute()); + Assertions.assertEquals(8682401111601182304L, response.hourlySchedule().usedBytes()); + Assertions.assertEquals(48133569, response.dailySchedule().snapshotsToKeep()); + Assertions.assertEquals(113101666, response.dailySchedule().hour()); + Assertions.assertEquals(204216617, response.dailySchedule().minute()); + Assertions.assertEquals(294105782539047029L, response.dailySchedule().usedBytes()); + Assertions.assertEquals(899609401, response.weeklySchedule().snapshotsToKeep()); + Assertions.assertEquals("rhrljyoogwxhn", response.weeklySchedule().day()); + Assertions.assertEquals(595356327, response.weeklySchedule().hour()); + Assertions.assertEquals(188519413, response.weeklySchedule().minute()); + Assertions.assertEquals(4498449621335160642L, response.weeklySchedule().usedBytes()); + Assertions.assertEquals(452225212, response.monthlySchedule().snapshotsToKeep()); + Assertions.assertEquals("fqkfuarenl", response.monthlySchedule().daysOfMonth()); + Assertions.assertEquals(1102967023, response.monthlySchedule().hour()); + Assertions.assertEquals(1757158898, response.monthlySchedule().minute()); + Assertions.assertEquals(5063142546295596094L, response.monthlySchedule().usedBytes()); + Assertions.assertFalse(response.enabled()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListMockTests.java index a3a2d91d91810..292e315062b71 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotPoliciesListMockTests.java @@ -22,7 +22,7 @@ public final class SnapshotPoliciesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1551206965,\"minute\":1049623274,\"usedBytes\":1558850688915356045},\"dailySchedule\":{\"snapshotsToKeep\":1585264538,\"hour\":1470824559,\"minute\":1202604969,\"usedBytes\":1218440597443022768},\"weeklySchedule\":{\"snapshotsToKeep\":996698069,\"day\":\"ppc\",\"hour\":1588619588,\"minute\":2061950840,\"usedBytes\":1281520358620814891},\"monthlySchedule\":{\"snapshotsToKeep\":861229573,\"daysOfMonth\":\"xyfukzxuizhyhn\",\"hour\":215122655,\"minute\":1942019203,\"usedBytes\":6858877587731651412},\"enabled\":true,\"provisioningState\":\"iubxdukec\"},\"etag\":\"dazvdhctm\",\"location\":\"os\",\"tags\":{\"ofkbtf\":\"blnsntrpcaqk\",\"ezyquw\":\"hklbnldpvcbh\",\"brruyuuatv\":\"sqxutr\"},\"id\":\"mbjwcolbmxlb\",\"name\":\"w\",\"type\":\"pcpahprzrvxhmtf\"}]}"; + = "{\"value\":[{\"properties\":{\"hourlySchedule\":{\"snapshotsToKeep\":1481067716,\"minute\":2064585856,\"usedBytes\":1984929575959856707},\"dailySchedule\":{\"snapshotsToKeep\":1612379087,\"hour\":1939182119,\"minute\":315314299,\"usedBytes\":1085790183971993416},\"weeklySchedule\":{\"snapshotsToKeep\":265709427,\"day\":\"dtfgxqbawpcbb\",\"hour\":646542935,\"minute\":1480013268,\"usedBytes\":4845601652796313398},\"monthlySchedule\":{\"snapshotsToKeep\":1733382957,\"daysOfMonth\":\"yuicdhzbdy\",\"hour\":1911202456,\"minute\":1783408160,\"usedBytes\":4716573374509509666},\"enabled\":false,\"provisioningState\":\"mhmwffpl\"},\"etag\":\"u\",\"location\":\"pckc\",\"tags\":{\"oxoyyukp\":\"vwe\"},\"id\":\"aimmoiroqb\",\"name\":\"shbraga\",\"type\":\"yyrmfsvbp\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,27 +32,27 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.snapshotPolicies().list("wvcmj", "kxiidisczskoswo", com.azure.core.util.Context.NONE); + = manager.snapshotPolicies().list("uxvnsasbcrymodi", "rxklobdxnazpmk", com.azure.core.util.Context.NONE); - Assertions.assertEquals("os", response.iterator().next().location()); - Assertions.assertEquals("blnsntrpcaqk", response.iterator().next().tags().get("ofkbtf")); - Assertions.assertEquals(1551206965, response.iterator().next().hourlySchedule().snapshotsToKeep()); - Assertions.assertEquals(1049623274, response.iterator().next().hourlySchedule().minute()); - Assertions.assertEquals(1558850688915356045L, response.iterator().next().hourlySchedule().usedBytes()); - Assertions.assertEquals(1585264538, response.iterator().next().dailySchedule().snapshotsToKeep()); - Assertions.assertEquals(1470824559, response.iterator().next().dailySchedule().hour()); - Assertions.assertEquals(1202604969, response.iterator().next().dailySchedule().minute()); - Assertions.assertEquals(1218440597443022768L, response.iterator().next().dailySchedule().usedBytes()); - Assertions.assertEquals(996698069, response.iterator().next().weeklySchedule().snapshotsToKeep()); - Assertions.assertEquals("ppc", response.iterator().next().weeklySchedule().day()); - Assertions.assertEquals(1588619588, response.iterator().next().weeklySchedule().hour()); - Assertions.assertEquals(2061950840, response.iterator().next().weeklySchedule().minute()); - Assertions.assertEquals(1281520358620814891L, response.iterator().next().weeklySchedule().usedBytes()); - Assertions.assertEquals(861229573, response.iterator().next().monthlySchedule().snapshotsToKeep()); - Assertions.assertEquals("xyfukzxuizhyhn", response.iterator().next().monthlySchedule().daysOfMonth()); - Assertions.assertEquals(215122655, response.iterator().next().monthlySchedule().hour()); - Assertions.assertEquals(1942019203, response.iterator().next().monthlySchedule().minute()); - Assertions.assertEquals(6858877587731651412L, response.iterator().next().monthlySchedule().usedBytes()); - Assertions.assertTrue(response.iterator().next().enabled()); + Assertions.assertEquals("pckc", response.iterator().next().location()); + Assertions.assertEquals("vwe", response.iterator().next().tags().get("oxoyyukp")); + Assertions.assertEquals(1481067716, response.iterator().next().hourlySchedule().snapshotsToKeep()); + Assertions.assertEquals(2064585856, response.iterator().next().hourlySchedule().minute()); + Assertions.assertEquals(1984929575959856707L, response.iterator().next().hourlySchedule().usedBytes()); + Assertions.assertEquals(1612379087, response.iterator().next().dailySchedule().snapshotsToKeep()); + Assertions.assertEquals(1939182119, response.iterator().next().dailySchedule().hour()); + Assertions.assertEquals(315314299, response.iterator().next().dailySchedule().minute()); + Assertions.assertEquals(1085790183971993416L, response.iterator().next().dailySchedule().usedBytes()); + Assertions.assertEquals(265709427, response.iterator().next().weeklySchedule().snapshotsToKeep()); + Assertions.assertEquals("dtfgxqbawpcbb", response.iterator().next().weeklySchedule().day()); + Assertions.assertEquals(646542935, response.iterator().next().weeklySchedule().hour()); + Assertions.assertEquals(1480013268, response.iterator().next().weeklySchedule().minute()); + Assertions.assertEquals(4845601652796313398L, response.iterator().next().weeklySchedule().usedBytes()); + Assertions.assertEquals(1733382957, response.iterator().next().monthlySchedule().snapshotsToKeep()); + Assertions.assertEquals("yuicdhzbdy", response.iterator().next().monthlySchedule().daysOfMonth()); + Assertions.assertEquals(1911202456, response.iterator().next().monthlySchedule().hour()); + Assertions.assertEquals(1783408160, response.iterator().next().monthlySchedule().minute()); + Assertions.assertEquals(4716573374509509666L, response.iterator().next().monthlySchedule().usedBytes()); + Assertions.assertFalse(response.iterator().next().enabled()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteMockTests.java index 04ffc5384c5c5..2c621b839bf42 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsDeleteMockTests.java @@ -28,7 +28,8 @@ public void testDelete() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.snapshots() - .delete("ygspnbonhpczykm", "tp", "wxqcsehchkhufmpq", "mqyjgy", "zulo", com.azure.core.util.Context.NONE); + .delete("wkpqhjpenuygbq", "qqekewvnqvcdlgu", "ucmfdj", "nlaxpunjqikcz", "vitac", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsGetWithResponseMockTests.java index d09c7b127b2d4..3e12c5aea7b04 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsGetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class SnapshotsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"snapshotId\":\"mvqdbpbhfckdvez\",\"created\":\"2021-09-07T23:55:15Z\",\"provisioningState\":\"sbzhd\"},\"location\":\"ub\",\"id\":\"qfblhkalehpa\",\"name\":\"awugiqjti\",\"type\":\"gqgdminictteajoh\"}"; + = "{\"properties\":{\"snapshotId\":\"ktsysidfvclglxn\",\"created\":\"2021-09-07T01:07:02Z\",\"provisioningState\":\"tkbu\"},\"location\":\"qogsfikayian\",\"id\":\"arujt\",\"name\":\"iqxf\",\"type\":\"yjqtt\"}"; 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)); Snapshot response = manager.snapshots() - .getWithResponse("kvcuartrhunl", "iryky", "ndzfqivjreuyk", "bmnwa", "ltbxoeeonqlnfw", + .getWithResponse("razftxejwabmdujt", "vcopex", "m", "urbuhhlkyqltq", "rogtuwkf", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("ub", response.location()); + Assertions.assertEquals("qogsfikayian", response.location()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsListMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsListMockTests.java index 35471c5424d3c..336b265940a95 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsListMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsListMockTests.java @@ -22,7 +22,7 @@ public final class SnapshotsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"snapshotId\":\"ruqnm\",\"created\":\"2021-01-17T11:03:49Z\",\"provisioningState\":\"zcvjytiqswbqerz\"},\"location\":\"xiytxtdgukvl\",\"id\":\"ktg\",\"name\":\"styoua\",\"type\":\"bewreswmowegmmut\"}]}"; + = "{\"value\":[{\"properties\":{\"snapshotId\":\"u\",\"created\":\"2021-03-03T11:10:41Z\",\"provisioningState\":\"hrszi\"},\"location\":\"oyuelyetn\",\"id\":\"bf\",\"name\":\"yggagflnlgmt\",\"type\":\"wahzjmucftbyr\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,9 +31,9 @@ public void testList() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response = manager.snapshots() - .list("saeuzanhsfnhsenw", "hpzfngqj", "lidftujwjj", "fwbeqrkuorh", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.snapshots().list("xmfcsserxhtv", "oxhlw", "tsjgqrsx", "p", com.azure.core.util.Context.NONE); - Assertions.assertEquals("xiytxtdgukvl", response.iterator().next().location()); + Assertions.assertEquals("oyuelyetn", response.iterator().next().location()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesMockTests.java index a3d6f05529368..1156fc639f75f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SnapshotsRestoreFilesMockTests.java @@ -30,9 +30,9 @@ public void testRestoreFiles() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.snapshots() - .restoreFiles("yxey", "uqi", "ijiitns", "xlzdesygrijwa", "ufanray", - new SnapshotRestoreFiles().withFilePaths(Arrays.asList("ueqfrojsyd", "rhydkygywez", "kiecafygzm")) - .withDestinationPath("eqvdsm"), + .restoreFiles("lrohkpig", "fusuckzmkwklsno", "axmqeqal", "hjnhgwydyynfsvk", "gbv", + new SnapshotRestoreFiles().withFilePaths(Arrays.asList("anarfdlpukhpyrne")) + .withDestinationPath("jcpeogkhnmg"), com.azure.core.util.Context.NONE); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeInfoInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeInfoInnerTests.java index edb5556caed5c..c4ae76f7dfef8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeInfoInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeInfoInnerTests.java @@ -12,21 +12,20 @@ public final class SubvolumeInfoInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SubvolumeInfoInner model = BinaryData.fromString( - "{\"properties\":{\"path\":\"wqrjzfrg\",\"size\":1666719420079000960,\"parentPath\":\"cmbuocnjrohmbpy\",\"provisioningState\":\"xameblydyvkfkm\"},\"id\":\"cxneh\",\"name\":\"sm\",\"type\":\"odlfpyapucygvo\"}") + "{\"properties\":{\"path\":\"jln\",\"size\":7832118523787674776,\"parentPath\":\"kknhxkizvytnrzv\",\"provisioningState\":\"jraaeranokqguk\"},\"id\":\"qnvb\",\"name\":\"oylaxxul\",\"type\":\"disdosfjbjsvgj\"}") .toObject(SubvolumeInfoInner.class); - Assertions.assertEquals("wqrjzfrg", model.path()); - Assertions.assertEquals(1666719420079000960L, model.size()); - Assertions.assertEquals("cmbuocnjrohmbpy", model.parentPath()); + Assertions.assertEquals("jln", model.path()); + Assertions.assertEquals(7832118523787674776L, model.size()); + Assertions.assertEquals("kknhxkizvytnrzv", model.parentPath()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SubvolumeInfoInner model = new SubvolumeInfoInner().withPath("wqrjzfrg") - .withSize(1666719420079000960L) - .withParentPath("cmbuocnjrohmbpy"); + SubvolumeInfoInner model + = new SubvolumeInfoInner().withPath("jln").withSize(7832118523787674776L).withParentPath("kknhxkizvytnrzv"); model = BinaryData.fromObject(model).toObject(SubvolumeInfoInner.class); - Assertions.assertEquals("wqrjzfrg", model.path()); - Assertions.assertEquals(1666719420079000960L, model.size()); - Assertions.assertEquals("cmbuocnjrohmbpy", model.parentPath()); + Assertions.assertEquals("jln", model.path()); + Assertions.assertEquals(7832118523787674776L, model.size()); + Assertions.assertEquals("kknhxkizvytnrzv", model.parentPath()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelInnerTests.java index 7e737e101bc7a..e6b5ea10c6629 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelInnerTests.java @@ -13,17 +13,17 @@ public final class SubvolumeModelInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SubvolumeModelInner model = BinaryData.fromString( - "{\"id\":\"hnqoewdo\",\"name\":\"yetesy\",\"type\":\"idbz\",\"properties\":{\"path\":\"qtfbovn\",\"parentPath\":\"kbwetnj\",\"size\":414149895474460575,\"bytesUsed\":481993562254393755,\"permissions\":\"yaupia\",\"creationTimeStamp\":\"2021-05-17T09:46:40Z\",\"accessedTimeStamp\":\"2021-05-25T16:57:05Z\",\"modifiedTimeStamp\":\"2021-06-06T10:39:05Z\",\"changedTimeStamp\":\"2021-04-15T00:07Z\",\"provisioningState\":\"oohtuovmaonurjtu\"}}") + "{\"id\":\"xveabf\",\"name\":\"nmwmqtibx\",\"type\":\"jddtvqct\",\"properties\":{\"path\":\"ijaeukm\",\"parentPath\":\"ieekpndzaa\",\"size\":7283307395522118208,\"bytesUsed\":6361487186249709697,\"permissions\":\"wig\",\"creationTimeStamp\":\"2021-01-11T14:04:16Z\",\"accessedTimeStamp\":\"2021-03-01T10:31:46Z\",\"modifiedTimeStamp\":\"2021-02-22T09:02:50Z\",\"changedTimeStamp\":\"2021-08-03T00:24:18Z\",\"provisioningState\":\"beybpmzznrtffyaq\"}}") .toObject(SubvolumeModelInner.class); - Assertions.assertEquals("qtfbovn", model.path()); - Assertions.assertEquals("kbwetnj", model.parentPath()); - Assertions.assertEquals(414149895474460575L, model.size()); - Assertions.assertEquals(481993562254393755L, model.bytesUsed()); - Assertions.assertEquals("yaupia", model.permissions()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-17T09:46:40Z"), model.creationTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-25T16:57:05Z"), model.accessedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-06T10:39:05Z"), model.modifiedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-15T00:07Z"), model.changedTimestamp()); - Assertions.assertEquals("oohtuovmaonurjtu", model.provisioningState()); + Assertions.assertEquals("ijaeukm", model.path()); + Assertions.assertEquals("ieekpndzaa", model.parentPath()); + Assertions.assertEquals(7283307395522118208L, model.size()); + Assertions.assertEquals(6361487186249709697L, model.bytesUsed()); + Assertions.assertEquals("wig", model.permissions()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-11T14:04:16Z"), model.creationTimestamp()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-01T10:31:46Z"), model.accessedTimestamp()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-22T09:02:50Z"), model.modifiedTimestamp()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-03T00:24:18Z"), model.changedTimestamp()); + Assertions.assertEquals("beybpmzznrtffyaq", model.provisioningState()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelPropertiesTests.java index 030a8cead6be6..85728f16b2377 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelPropertiesTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumeModelPropertiesTests.java @@ -13,17 +13,17 @@ public final class SubvolumeModelPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SubvolumeModelProperties model = BinaryData.fromString( - "{\"path\":\"hihpvecmsl\",\"parentPath\":\"bl\",\"size\":4107932783596576706,\"bytesUsed\":1585961727789938930,\"permissions\":\"uscv\",\"creationTimeStamp\":\"2021-04-23T08:33:59Z\",\"accessedTimeStamp\":\"2021-11-05T21:32:10Z\",\"modifiedTimeStamp\":\"2021-07-21T09:04:04Z\",\"changedTimeStamp\":\"2021-01-10T07:14Z\",\"provisioningState\":\"upbezqccydrt\"}") + "{\"path\":\"mhh\",\"parentPath\":\"oqaqhvseufuq\",\"size\":3020354173137847735,\"bytesUsed\":1938884126679882706,\"permissions\":\"qlsismjqfrddg\",\"creationTimeStamp\":\"2021-11-04T14:38:26Z\",\"accessedTimeStamp\":\"2021-07-22T03:14:28Z\",\"modifiedTimeStamp\":\"2021-11-01T12:33:10Z\",\"changedTimeStamp\":\"2021-02-24T16:08:22Z\",\"provisioningState\":\"ju\"}") .toObject(SubvolumeModelProperties.class); - Assertions.assertEquals("hihpvecmsl", model.path()); - Assertions.assertEquals("bl", model.parentPath()); - Assertions.assertEquals(4107932783596576706L, model.size()); - Assertions.assertEquals(1585961727789938930L, model.bytesUsed()); - Assertions.assertEquals("uscv", model.permissions()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-23T08:33:59Z"), model.creationTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-05T21:32:10Z"), model.accessedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-21T09:04:04Z"), model.modifiedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-10T07:14Z"), model.changedTimestamp()); - Assertions.assertEquals("upbezqccydrt", model.provisioningState()); + Assertions.assertEquals("mhh", model.path()); + Assertions.assertEquals("oqaqhvseufuq", model.parentPath()); + Assertions.assertEquals(3020354173137847735L, model.size()); + Assertions.assertEquals(1938884126679882706L, model.bytesUsed()); + Assertions.assertEquals("qlsismjqfrddg", model.permissions()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-04T14:38:26Z"), model.creationTimestamp()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-22T03:14:28Z"), model.accessedTimestamp()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-01T12:33:10Z"), model.modifiedTimestamp()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-24T16:08:22Z"), model.changedTimestamp()); + Assertions.assertEquals("ju", model.provisioningState()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchParamsTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchParamsTests.java index 144f6d30752e0..c0c29bbbc4255 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchParamsTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchParamsTests.java @@ -11,17 +11,17 @@ public final class SubvolumePatchParamsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - SubvolumePatchParams model = BinaryData.fromString("{\"size\":2977902627336186951,\"path\":\"wrq\"}") + SubvolumePatchParams model = BinaryData.fromString("{\"size\":2282885407091220390,\"path\":\"bg\"}") .toObject(SubvolumePatchParams.class); - Assertions.assertEquals(2977902627336186951L, model.size()); - Assertions.assertEquals("wrq", model.path()); + Assertions.assertEquals(2282885407091220390L, model.size()); + Assertions.assertEquals("bg", model.path()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SubvolumePatchParams model = new SubvolumePatchParams().withSize(2977902627336186951L).withPath("wrq"); + SubvolumePatchParams model = new SubvolumePatchParams().withSize(2282885407091220390L).withPath("bg"); model = BinaryData.fromObject(model).toObject(SubvolumePatchParams.class); - Assertions.assertEquals(2977902627336186951L, model.size()); - Assertions.assertEquals("wrq", model.path()); + Assertions.assertEquals(2282885407091220390L, model.size()); + Assertions.assertEquals("bg", model.path()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchRequestTests.java index 1e9f83dc517d7..245237c0cfc6d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchRequestTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePatchRequestTests.java @@ -12,17 +12,18 @@ public final class SubvolumePatchRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SubvolumePatchRequest model - = BinaryData.fromString("{\"properties\":{\"size\":4146991315597354665,\"path\":\"gaqi\"}}") + = BinaryData.fromString("{\"properties\":{\"size\":4806267712213844002,\"path\":\"hchrphkmcrjdqn\"}}") .toObject(SubvolumePatchRequest.class); - Assertions.assertEquals(4146991315597354665L, model.size()); - Assertions.assertEquals("gaqi", model.path()); + Assertions.assertEquals(4806267712213844002L, model.size()); + Assertions.assertEquals("hchrphkmcrjdqn", model.path()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SubvolumePatchRequest model = new SubvolumePatchRequest().withSize(4146991315597354665L).withPath("gaqi"); + SubvolumePatchRequest model + = new SubvolumePatchRequest().withSize(4806267712213844002L).withPath("hchrphkmcrjdqn"); model = BinaryData.fromObject(model).toObject(SubvolumePatchRequest.class); - Assertions.assertEquals(4146991315597354665L, model.size()); - Assertions.assertEquals("gaqi", model.path()); + Assertions.assertEquals(4806267712213844002L, model.size()); + Assertions.assertEquals("hchrphkmcrjdqn", model.path()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePropertiesTests.java index ca6bd43fbaf0d..273d572013cc0 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePropertiesTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumePropertiesTests.java @@ -12,20 +12,21 @@ public final class SubvolumePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SubvolumeProperties model = BinaryData.fromString( - "{\"path\":\"yunssx\",\"size\":1482317786623412562,\"parentPath\":\"egjlgvvpa\",\"provisioningState\":\"ksgbuxan\"}") + "{\"path\":\"hryvy\",\"size\":303966764138451179,\"parentPath\":\"lxgccknfnwmbtm\",\"provisioningState\":\"dvjdhttza\"}") .toObject(SubvolumeProperties.class); - Assertions.assertEquals("yunssx", model.path()); - Assertions.assertEquals(1482317786623412562L, model.size()); - Assertions.assertEquals("egjlgvvpa", model.parentPath()); + Assertions.assertEquals("hryvy", model.path()); + Assertions.assertEquals(303966764138451179L, model.size()); + Assertions.assertEquals("lxgccknfnwmbtm", model.parentPath()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SubvolumeProperties model - = new SubvolumeProperties().withPath("yunssx").withSize(1482317786623412562L).withParentPath("egjlgvvpa"); + SubvolumeProperties model = new SubvolumeProperties().withPath("hryvy") + .withSize(303966764138451179L) + .withParentPath("lxgccknfnwmbtm"); model = BinaryData.fromObject(model).toObject(SubvolumeProperties.class); - Assertions.assertEquals("yunssx", model.path()); - Assertions.assertEquals(1482317786623412562L, model.size()); - Assertions.assertEquals("egjlgvvpa", model.parentPath()); + Assertions.assertEquals("hryvy", model.path()); + Assertions.assertEquals(303966764138451179L, model.size()); + Assertions.assertEquals("lxgccknfnwmbtm", model.parentPath()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesCreateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesCreateMockTests.java index 7cedd7132d8df..eb99abf1e144b 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesCreateMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesCreateMockTests.java @@ -21,7 +21,7 @@ public final class SubvolumesCreateMockTests { @Test public void testCreate() throws Exception { String responseStr - = "{\"properties\":{\"path\":\"u\",\"size\":6203935542583974311,\"parentPath\":\"ucaonz\",\"provisioningState\":\"Succeeded\"},\"id\":\"idackzidgzwdyd\",\"name\":\"misvpztd\",\"type\":\"vykpxkqe\"}"; + = "{\"properties\":{\"path\":\"kvlbpktgdstyoua\",\"size\":5294070244867656096,\"parentPath\":\"esw\",\"provisioningState\":\"Succeeded\"},\"id\":\"uteyxeyguq\",\"name\":\"gijiitnspxlzd\",\"type\":\"sygrijwa\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,15 +31,15 @@ public void testCreate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SubvolumeInfo response = manager.subvolumes() - .define("uxzshxz") - .withExistingVolume("rdlhvdvmiphbe", "eqjzm", "kdclacroczf", "unerke") - .withPath("zuzudlevzskejc") - .withSize(8528415594543995470L) - .withParentPath("qkstyecupyui") + .define("clid") + .withExistingVolume("qumq", "jgydzul", "dsaeuzanhsfnh", "enwphpzfngq") + .withPath("jwjj") + .withSize(971806524293082500L) + .withParentPath("qrkuor") .create(); - Assertions.assertEquals("u", response.path()); - Assertions.assertEquals(6203935542583974311L, response.size()); - Assertions.assertEquals("ucaonz", response.parentPath()); + Assertions.assertEquals("kvlbpktgdstyoua", response.path()); + Assertions.assertEquals(5294070244867656096L, response.size()); + Assertions.assertEquals("esw", response.parentPath()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteMockTests.java index 7ced540ff7d10..81b9fb32f00f8 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesDeleteMockTests.java @@ -27,7 +27,8 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.subvolumes().delete("hbssdpjeyo", "xdede", "f", "wh", "gxsur", com.azure.core.util.Context.NONE); + manager.subvolumes() + .delete("u", "maxljalfihcj", "obcancdexxqcw", "a", "fgvaknokzwj", com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataMockTests.java index 67e4cdc9bc50b..79efd701b6db4 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetMetadataMockTests.java @@ -21,7 +21,7 @@ public final class SubvolumesGetMetadataMockTests { @Test public void testGetMetadata() throws Exception { String responseStr - = "{\"id\":\"z\",\"name\":\"karkptg\",\"type\":\"gruatsyiysjqheni\",\"properties\":{\"path\":\"qnguba\",\"parentPath\":\"jdeayscse\",\"size\":4057533547407936195,\"bytesUsed\":7375386011539248813,\"permissions\":\"mnvkvmu\",\"creationTimeStamp\":\"2021-07-20T14:16:13Z\",\"accessedTimeStamp\":\"2021-03-16T07:04:09Z\",\"modifiedTimeStamp\":\"2021-11-18T17:59:20Z\",\"changedTimeStamp\":\"2021-08-13T07:06:40Z\",\"provisioningState\":\"Succeeded\"}}"; + = "{\"id\":\"bpbhfckdvezcrcss\",\"name\":\"hddubbnqfbl\",\"type\":\"alehpav\",\"properties\":{\"path\":\"giqjtiogq\",\"parentPath\":\"minict\",\"size\":2122953188568413933,\"bytesUsed\":2129922320838456618,\"permissions\":\"gspnbonhpczykm\",\"creationTimeStamp\":\"2021-05-22T20:01:11Z\",\"accessedTimeStamp\":\"2021-09-13T07:20:13Z\",\"modifiedTimeStamp\":\"2021-10-08T19:32:51Z\",\"changedTimeStamp\":\"2020-12-29T11:11:48Z\",\"provisioningState\":\"Succeeded\"}}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,18 +31,17 @@ public void testGetMetadata() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SubvolumeModel response = manager.subvolumes() - .getMetadata("gira", "wly", "xchpqvctsfa", "uhwwsknstvz", "zhasupmlppdpgzvz", - com.azure.core.util.Context.NONE); + .getMetadata("uykbbmn", "aglt", "xoe", "onql", "fwmyymv", com.azure.core.util.Context.NONE); - Assertions.assertEquals("qnguba", response.path()); - Assertions.assertEquals("jdeayscse", response.parentPath()); - Assertions.assertEquals(4057533547407936195L, response.size()); - Assertions.assertEquals(7375386011539248813L, response.bytesUsed()); - Assertions.assertEquals("mnvkvmu", response.permissions()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-20T14:16:13Z"), response.creationTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-16T07:04:09Z"), response.accessedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-18T17:59:20Z"), response.modifiedTimestamp()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-13T07:06:40Z"), response.changedTimestamp()); + Assertions.assertEquals("giqjtiogq", response.path()); + Assertions.assertEquals("minict", response.parentPath()); + Assertions.assertEquals(2122953188568413933L, response.size()); + Assertions.assertEquals(2129922320838456618L, response.bytesUsed()); + Assertions.assertEquals("gspnbonhpczykm", response.permissions()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-22T20:01:11Z"), response.creationTimestamp()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-13T07:20:13Z"), response.accessedTimestamp()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-08T19:32:51Z"), response.modifiedTimestamp()); + Assertions.assertEquals(OffsetDateTime.parse("2020-12-29T11:11:48Z"), response.changedTimestamp()); Assertions.assertEquals("Succeeded", response.provisioningState()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetWithResponseMockTests.java index bf14f315ff439..95c357d71daec 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class SubvolumesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"path\":\"tfgfic\",\"size\":2002416946820305929,\"parentPath\":\"zpacz\",\"provisioningState\":\"hbcakznhokhoit\"},\"id\":\"rjsdmmazdnck\",\"name\":\"dbjp\",\"type\":\"lhzqpxzbawkikcdg\"}"; + = "{\"properties\":{\"path\":\"it\",\"size\":4058109521871769098,\"parentPath\":\"b\",\"provisioningState\":\"cdb\"},\"id\":\"fzndscxmxeatkd\",\"name\":\"mwnrdj\",\"type\":\"ibqbnaomhjrm\"}"; 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)); SubvolumeInfo response = manager.subvolumes() - .getWithResponse("gsmgb", "mt", "wrqbebjnfv", "glab", "vkbiw", com.azure.core.util.Context.NONE) + .getWithResponse("ephblkwqpatvbqs", "tcjb", "tvivuzqym", "uo", "o", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("tfgfic", response.path()); - Assertions.assertEquals(2002416946820305929L, response.size()); - Assertions.assertEquals("zpacz", response.parentPath()); + Assertions.assertEquals("it", response.path()); + Assertions.assertEquals(4058109521871769098L, response.size()); + Assertions.assertEquals("b", response.parentPath()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeMockTests.java index 6b27909d70329..8a480fe81fc3a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListByVolumeMockTests.java @@ -22,7 +22,7 @@ public final class SubvolumesListByVolumeMockTests { @Test public void testListByVolume() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"path\":\"j\",\"size\":8352133416733109960,\"parentPath\":\"qq\",\"provisioningState\":\"dydkghpcvrwqir\"},\"id\":\"ktyhhmvfxl\",\"name\":\"pjajodmkrrwe\",\"type\":\"gqvqokqluj\"}]}"; + = "{\"value\":[{\"properties\":{\"path\":\"pqvyb\",\"size\":7615541920567165904,\"parentPath\":\"x\",\"provisioningState\":\"kcvtl\"},\"id\":\"seskvcuar\",\"name\":\"rhunlp\",\"type\":\"rykycndzfqivjr\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,10 +32,10 @@ public void testListByVolume() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.subvolumes() - .listByVolume("jqrshz", "bgullc", "iqqzjkoxdupn", "mglrouigdm", com.azure.core.util.Context.NONE); + .listByVolume("zrltixldzyyf", "tpq", "ixymmpujivyql", "juvsmbmslzoyovw", com.azure.core.util.Context.NONE); - Assertions.assertEquals("j", response.iterator().next().path()); - Assertions.assertEquals(8352133416733109960L, response.iterator().next().size()); - Assertions.assertEquals("qq", response.iterator().next().parentPath()); + Assertions.assertEquals("pqvyb", response.iterator().next().path()); + Assertions.assertEquals(7615541920567165904L, response.iterator().next().size()); + Assertions.assertEquals("x", response.iterator().next().parentPath()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListTests.java index 3aaccd2a06080..972038eabdcc5 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/SubvolumesListTests.java @@ -12,11 +12,11 @@ public final class SubvolumesListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SubvolumesList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"path\":\"o\",\"size\":5418910644713750258,\"parentPath\":\"exwhcb\",\"provisioningState\":\"ibkeph\"},\"id\":\"uerct\",\"name\":\"toyint\",\"type\":\"pbrlcyrduczkgofx\"},{\"properties\":{\"path\":\"rucvcrrpcjttbs\",\"size\":4563205659323966935,\"parentPath\":\"qnrmvvfko\",\"provisioningState\":\"lghktuidvrm\"},\"id\":\"lpdwwexymzvlazi\",\"name\":\"bhpwvqsgnyy\",\"type\":\"uzivensrpmeyyvp\"},{\"properties\":{\"path\":\"tlbijpzg\",\"size\":5511629518307035405,\"parentPath\":\"hfvolmknb\",\"provisioningState\":\"wcdommpvfqaw\"},\"id\":\"gbrt\",\"name\":\"uiaclkiexhajlfn\",\"type\":\"hiqfyuttdiy\"},{\"properties\":{\"path\":\"vnwsw\",\"size\":2940513427697721295,\"parentPath\":\"ctwwgzw\",\"provisioningState\":\"l\"},\"id\":\"cvogygzyvne\",\"name\":\"zaifghtmoqqtlff\",\"type\":\"zbkr\"}],\"nextLink\":\"jjavfq\"}") + "{\"value\":[{\"properties\":{\"path\":\"lkdghr\",\"size\":4652163287873378004,\"parentPath\":\"lwxezwzhokvbwnh\",\"provisioningState\":\"qlgehg\"},\"id\":\"ipifhpfeoajvg\",\"name\":\"xtxj\",\"type\":\"sheafid\"},{\"properties\":{\"path\":\"gsresmkssj\",\"size\":7013131157216511761,\"parentPath\":\"xfkfwegprhptill\",\"provisioningState\":\"biqtgdq\"},\"id\":\"mcwsldrizetpwb\",\"name\":\"a\",\"type\":\"llibphbqzmizak\"},{\"properties\":{\"path\":\"nkjpdnjzha\",\"size\":6459322743109308428,\"parentPath\":\"jlmuoyxprimrsopt\",\"provisioningState\":\"cjmeislstvasy\"},\"id\":\"xdza\",\"name\":\"mweoohgu\",\"type\":\"fuzboyjathwtzolb\"}],\"nextLink\":\"mwmdxmebwjscjpa\"}") .toObject(SubvolumesList.class); - Assertions.assertEquals("o", model.value().get(0).path()); - Assertions.assertEquals(5418910644713750258L, model.value().get(0).size()); - Assertions.assertEquals("exwhcb", model.value().get(0).parentPath()); - Assertions.assertEquals("jjavfq", model.nextLink()); + Assertions.assertEquals("lkdghr", model.value().get(0).path()); + Assertions.assertEquals(4652163287873378004L, model.value().get(0).size()); + Assertions.assertEquals("lwxezwzhokvbwnh", model.value().get(0).parentPath()); + Assertions.assertEquals("mwmdxmebwjscjpa", model.nextLink()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UpdateNetworkSiblingSetRequestTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UpdateNetworkSiblingSetRequestTests.java index 82705040095af..d263fc3ff1e15 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UpdateNetworkSiblingSetRequestTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UpdateNetworkSiblingSetRequestTests.java @@ -13,25 +13,24 @@ public final class UpdateNetworkSiblingSetRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UpdateNetworkSiblingSetRequest model = BinaryData.fromString( - "{\"networkSiblingSetId\":\"ttxpnrupza\",\"subnetId\":\"mrdixtreki\",\"networkSiblingSetStateId\":\"swyskbruffg\",\"networkFeatures\":\"Standard_Basic\"}") + "{\"networkSiblingSetId\":\"wumuaslzk\",\"subnetId\":\"rrwoycqucwyhahn\",\"networkSiblingSetStateId\":\"mdr\",\"networkFeatures\":\"Basic_Standard\"}") .toObject(UpdateNetworkSiblingSetRequest.class); - Assertions.assertEquals("ttxpnrupza", model.networkSiblingSetId()); - Assertions.assertEquals("mrdixtreki", model.subnetId()); - Assertions.assertEquals("swyskbruffg", model.networkSiblingSetStateId()); - Assertions.assertEquals(NetworkFeatures.STANDARD_BASIC, model.networkFeatures()); + Assertions.assertEquals("wumuaslzk", model.networkSiblingSetId()); + Assertions.assertEquals("rrwoycqucwyhahn", model.subnetId()); + Assertions.assertEquals("mdr", model.networkSiblingSetStateId()); + Assertions.assertEquals(NetworkFeatures.BASIC_STANDARD, model.networkFeatures()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - UpdateNetworkSiblingSetRequest model - = new UpdateNetworkSiblingSetRequest().withNetworkSiblingSetId("ttxpnrupza") - .withSubnetId("mrdixtreki") - .withNetworkSiblingSetStateId("swyskbruffg") - .withNetworkFeatures(NetworkFeatures.STANDARD_BASIC); + UpdateNetworkSiblingSetRequest model = new UpdateNetworkSiblingSetRequest().withNetworkSiblingSetId("wumuaslzk") + .withSubnetId("rrwoycqucwyhahn") + .withNetworkSiblingSetStateId("mdr") + .withNetworkFeatures(NetworkFeatures.BASIC_STANDARD); model = BinaryData.fromObject(model).toObject(UpdateNetworkSiblingSetRequest.class); - Assertions.assertEquals("ttxpnrupza", model.networkSiblingSetId()); - Assertions.assertEquals("mrdixtreki", model.subnetId()); - Assertions.assertEquals("swyskbruffg", model.networkSiblingSetStateId()); - Assertions.assertEquals(NetworkFeatures.STANDARD_BASIC, model.networkFeatures()); + Assertions.assertEquals("wumuaslzk", model.networkSiblingSetId()); + Assertions.assertEquals("rrwoycqucwyhahn", model.subnetId()); + Assertions.assertEquals("mdr", model.networkSiblingSetStateId()); + Assertions.assertEquals(NetworkFeatures.BASIC_STANDARD, model.networkFeatures()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsageNameTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsageNameTests.java index 80045f2ca3f5d..27f21dc8f197a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsageNameTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsageNameTests.java @@ -11,9 +11,9 @@ public final class UsageNameTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - UsageName model = BinaryData.fromString("{\"value\":\"jymrhbg\",\"localizedValue\":\"ozkyewnfnzh\"}") - .toObject(UsageName.class); - Assertions.assertEquals("jymrhbg", model.value()); - Assertions.assertEquals("ozkyewnfnzh", model.localizedValue()); + UsageName model + = BinaryData.fromString("{\"value\":\"fnmdxotn\",\"localizedValue\":\"dgug\"}").toObject(UsageName.class); + Assertions.assertEquals("fnmdxotn", model.value()); + Assertions.assertEquals("dgug", model.localizedValue()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsagePropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsagePropertiesTests.java index 286e355f33ffc..b40432041c06a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsagePropertiesTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsagePropertiesTests.java @@ -11,7 +11,7 @@ public final class UsagePropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UsageProperties model - = BinaryData.fromString("{\"currentValue\":506406018,\"limit\":1781850881,\"unit\":\"ffjkutycyarnroo\"}") + = BinaryData.fromString("{\"currentValue\":2136201648,\"limit\":1242659668,\"unit\":\"rkyui\"}") .toObject(UsageProperties.class); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsageResultInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsageResultInnerTests.java index 408aeb4bb3409..db891a3b8b1f6 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsageResultInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsageResultInnerTests.java @@ -11,7 +11,7 @@ public final class UsageResultInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UsageResultInner model = BinaryData.fromString( - "{\"id\":\"giycwkdtaawxwfek\",\"name\":{\"value\":\"rrqmbzmqk\",\"localizedValue\":\"tbnxwbjsid\"},\"properties\":{\"currentValue\":390044418,\"limit\":610011466,\"unit\":\"sokdgoge\"}}") + "{\"id\":\"flrzpas\",\"name\":{\"value\":\"i\",\"localizedValue\":\"mzdlyjdfqwmkyo\"},\"properties\":{\"currentValue\":1748884059,\"limit\":2092771919,\"unit\":\"zslzojhp\"}}") .toObject(UsageResultInner.class); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsagesListResultTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsagesListResultTests.java index b0c339614d25c..879906d0b2fe4 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsagesListResultTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UsagesListResultTests.java @@ -12,8 +12,8 @@ public final class UsagesListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UsagesListResult model = BinaryData.fromString( - "{\"value\":[{\"id\":\"kutvlxhrpqhv\",\"name\":{\"value\":\"couqehb\",\"localizedValue\":\"cdsziryrand\"},\"properties\":{\"currentValue\":1463540135,\"limit\":2029728354,\"unit\":\"oormkfqlwxldyka\"}},{\"id\":\"ygaolnjpnnb\",\"name\":{\"value\":\"sibjgs\",\"localizedValue\":\"xxahmrnadzyqegxy\"},\"properties\":{\"currentValue\":1088320198,\"limit\":739994606,\"unit\":\"hwbjijkgqxnhmbk\"}}],\"nextLink\":\"njaujvaan\"}") + "{\"value\":[{\"id\":\"hpsvfu\",\"name\":{\"value\":\"tlwexxwlalniexz\",\"localizedValue\":\"zpgepqty\"},\"properties\":{\"currentValue\":1567146664,\"limit\":1790855590,\"unit\":\"akchzyvlixqnrk\"}},{\"id\":\"kjibnxmysuxswqrn\",\"name\":{\"value\":\"wijpsttexoqqpwc\",\"localizedValue\":\"ufmhrunc\"},\"properties\":{\"currentValue\":1162689425,\"limit\":432418961,\"unit\":\"cdqzhlctddu\"}},{\"id\":\"ndy\",\"name\":{\"value\":\"hrqbnjjrcg\",\"localizedValue\":\"ydcwboxjumv\"},\"properties\":{\"currentValue\":1101777200,\"limit\":843913557,\"unit\":\"raiouaubrjtl\"}}],\"nextLink\":\"xfuojrn\"}") .toObject(UsagesListResult.class); - Assertions.assertEquals("njaujvaan", model.nextLink()); + Assertions.assertEquals("xfuojrn", model.nextLink()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UserAssignedIdentityTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UserAssignedIdentityTests.java index 5a98c6790d968..db91733c8a808 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UserAssignedIdentityTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/UserAssignedIdentityTests.java @@ -11,7 +11,7 @@ public final class UserAssignedIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UserAssignedIdentity model = BinaryData.fromString( - "{\"principalId\":\"4c854283-0f78-43af-8303-fb071243ad33\",\"clientId\":\"83f04277-55dc-4608-a754-6cf94f0eef0e\"}") + "{\"principalId\":\"d3b48d88-e9fd-4d8d-b188-194f2288fb59\",\"clientId\":\"1a97fb2e-5ffa-4e43-923d-e7d1aa83e213\"}") .toObject(UserAssignedIdentity.class); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteMockTests.java index 6d5f63f2dfb6d..3c370dff7227c 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeGroupsDeleteMockTests.java @@ -27,7 +27,7 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.volumeGroups().delete("dljdjuskb", "req", "n", com.azure.core.util.Context.NONE); + manager.volumeGroups().delete("tzxpuamwabzxrv", "cush", "phai", com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRuleInnerTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRuleInnerTests.java index 69664201d548f..2323e040a665d 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRuleInnerTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRuleInnerTests.java @@ -15,7 +15,7 @@ public final class VolumeQuotaRuleInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VolumeQuotaRuleInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Deleting\",\"quotaSizeInKiBs\":7851173611055432996,\"quotaType\":\"DefaultUserQuota\",\"quotaTarget\":\"ty\"},\"location\":\"evxccedcp\",\"tags\":{\"vnhltiugcx\":\"yodnwzxltj\",\"y\":\"avvwxqi\",\"djrkvfgbvfvpd\":\"unyowxwl\"},\"id\":\"odacizs\",\"name\":\"q\",\"type\":\"hkr\"}") + "{\"properties\":{\"provisioningState\":\"Patching\",\"quotaSizeInKiBs\":7851173611055432996,\"quotaType\":\"DefaultUserQuota\",\"quotaTarget\":\"ty\"},\"location\":\"evxccedcp\",\"tags\":{\"vnhltiugcx\":\"yodnwzxltj\",\"y\":\"avvwxqi\",\"djrkvfgbvfvpd\":\"unyowxwl\"},\"id\":\"odacizs\",\"name\":\"q\",\"type\":\"hkr\"}") .toObject(VolumeQuotaRuleInner.class); Assertions.assertEquals("evxccedcp", model.location()); Assertions.assertEquals("yodnwzxltj", model.tags().get("vnhltiugcx")); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesCreateMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesCreateMockTests.java index 12b2a61b97fd0..2ee6d795bbba1 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesCreateMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesCreateMockTests.java @@ -24,7 +24,7 @@ public final class VolumeQuotaRulesCreateMockTests { @Test public void testCreate() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"quotaSizeInKiBs\":6021657881113967063,\"quotaType\":\"IndividualGroupQuota\",\"quotaTarget\":\"vuagntetaout\"},\"location\":\"dc\",\"tags\":{\"hmtybkcgsuthhll\":\"spfefyihduyeuyld\",\"jrr\":\"mwynefxexlfciatx\",\"ajfoxc\":\"kmdskjhhxd\"},\"id\":\"scv\",\"name\":\"lxlhuavkrm\",\"type\":\"kmyjmkxett\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"quotaSizeInKiBs\":7604143524646488762,\"quotaType\":\"IndividualUserQuota\",\"quotaTarget\":\"csypobkdqzrdzsyl\"},\"location\":\"lgtrczzy\",\"tags\":{\"defxrdc\":\"zjijpvuaurkihcir\"},\"id\":\"xnbkkj\",\"name\":\"nurnnq\",\"type\":\"nqbpi\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,20 +34,20 @@ public void testCreate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); VolumeQuotaRule response = manager.volumeQuotaRules() - .define("n") - .withRegion("kft") - .withExistingVolume("gfyrtogmhmjpjsc", "fp", "qwtygevgwmseharx", "fv") - .withTags(mapOf("ym", "twmykyut")) - .withQuotaSizeInKiBs(4987593817947718819L) - .withQuotaType(QuotaType.DEFAULT_USER_QUOTA) - .withQuotaTarget("vwjhrsidqpxlbt") + .define("gmsplzgaufcshhv") + .withRegion("xrjkixtwb") + .withExistingVolume("uivedwcgyeewxeiq", "psmgo", "guamlj", "l") + .withTags(mapOf("lhkgmnsghp", "ypnyghshxc", "ac", "ycphdrwjjkhvyo")) + .withQuotaSizeInKiBs(4375872771324072302L) + .withQuotaType(QuotaType.INDIVIDUAL_GROUP_QUOTA) + .withQuotaTarget("q") .create(); - Assertions.assertEquals("dc", response.location()); - Assertions.assertEquals("spfefyihduyeuyld", response.tags().get("hmtybkcgsuthhll")); - Assertions.assertEquals(6021657881113967063L, response.quotaSizeInKiBs()); - Assertions.assertEquals(QuotaType.INDIVIDUAL_GROUP_QUOTA, response.quotaType()); - Assertions.assertEquals("vuagntetaout", response.quotaTarget()); + Assertions.assertEquals("lgtrczzy", response.location()); + Assertions.assertEquals("zjijpvuaurkihcir", response.tags().get("defxrdc")); + Assertions.assertEquals(7604143524646488762L, response.quotaSizeInKiBs()); + Assertions.assertEquals(QuotaType.INDIVIDUAL_USER_QUOTA, response.quotaType()); + Assertions.assertEquals("csypobkdqzrdzsyl", response.quotaTarget()); } // Use "Map.of" if available diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesDeleteMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesDeleteMockTests.java index 885f4e94c9473..9b7119e46c7fc 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesDeleteMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesDeleteMockTests.java @@ -27,7 +27,8 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.volumeQuotaRules().delete("rra", "eek", "s", "eh", "gdda", com.azure.core.util.Context.NONE); + manager.volumeQuotaRules() + .delete("hoi", "lwgniiprglvawu", "z", "ufypiv", "sbbjpmcu", com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesGetWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesGetWithResponseMockTests.java index c2a1ae01af076..f49dbf66eb94f 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesGetWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesGetWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class VolumeQuotaRulesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Moving\",\"quotaSizeInKiBs\":7582580137587684684,\"quotaType\":\"DefaultGroupQuota\",\"quotaTarget\":\"telexhv\"},\"location\":\"b\",\"tags\":{\"zqocarku\":\"o\",\"nx\":\"lbcnndt\",\"llhdyzm\":\"wqy\",\"nxakckyw\":\"ckze\"},\"id\":\"mxgaabjkdtfohfao\",\"name\":\"zvkiwrsiwdy\",\"type\":\"quryk\"}"; + = "{\"properties\":{\"provisioningState\":\"Accepted\",\"quotaSizeInKiBs\":4378456940205498641,\"quotaType\":\"IndividualUserQuota\",\"quotaTarget\":\"xhikkflrmymyin\"},\"location\":\"lhrisw\",\"tags\":{\"ctotiowlx\":\"iiiovgqcgxuugq\"},\"id\":\"e\",\"name\":\"dptjgwdtgukranb\",\"type\":\"wphqlkccuzgygqw\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,14 +32,14 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); VolumeQuotaRule response = manager.volumeQuotaRules() - .getWithResponse("evdyz", "fajs", "kskmqozzkivyhjrl", "izjixlq", "hefkwabsolronqq", + .getWithResponse("fykhvuhxepmru", "znabaobns", "ujdjltymkmvg", "ihywartspph", "ixkykxd", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("b", response.location()); - Assertions.assertEquals("o", response.tags().get("zqocarku")); - Assertions.assertEquals(7582580137587684684L, response.quotaSizeInKiBs()); - Assertions.assertEquals(QuotaType.DEFAULT_GROUP_QUOTA, response.quotaType()); - Assertions.assertEquals("telexhv", response.quotaTarget()); + Assertions.assertEquals("lhrisw", response.location()); + Assertions.assertEquals("iiiovgqcgxuugq", response.tags().get("ctotiowlx")); + Assertions.assertEquals(4378456940205498641L, response.quotaSizeInKiBs()); + Assertions.assertEquals(QuotaType.INDIVIDUAL_USER_QUOTA, response.quotaType()); + Assertions.assertEquals("xhikkflrmymyin", response.quotaTarget()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListByVolumeMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListByVolumeMockTests.java index 77cdd3fbf653c..b09f8040f9687 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListByVolumeMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListByVolumeMockTests.java @@ -23,7 +23,7 @@ public final class VolumeQuotaRulesListByVolumeMockTests { @Test public void testListByVolume() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"quotaSizeInKiBs\":7951820081459146243,\"quotaType\":\"IndividualUserQuota\",\"quotaTarget\":\"epl\"},\"location\":\"qjn\",\"tags\":{\"vmywhsbrcarycsjj\":\"ygleexa\",\"dmkrrb\":\"yvoaqajuvehzp\",\"ubefgybpmfbfunu\":\"mpfu\"},\"id\":\"mpzkrvfyifkd\",\"name\":\"chlzvfi\",\"type\":\"tnkjjwgcwnphb\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"quotaSizeInKiBs\":2272430712766624779,\"quotaType\":\"DefaultGroupQuota\",\"quotaTarget\":\"rjgeih\"},\"location\":\"lg\",\"tags\":{\"gt\":\"iwzcxmjpbyeph\",\"myqwcab\":\"ljvrcmyfqipgxhnp\",\"aswlp\":\"nuilee\",\"lrxw\":\"ugmrmf\"},\"id\":\"oauk\",\"name\":\"fkvcisi\",\"type\":\"moaedsxj\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,12 +33,12 @@ public void testListByVolume() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.volumeQuotaRules() - .listByVolume("bcbgydlqidywmhm", "tyrilkfbnrqqxvz", "pbnfnqtx", "to", com.azure.core.util.Context.NONE); + .listByVolume("kmifoxxkub", "phavpmhbrb", "gvgovpbbttefjo", "nssqyzqed", com.azure.core.util.Context.NONE); - Assertions.assertEquals("qjn", response.iterator().next().location()); - Assertions.assertEquals("ygleexa", response.iterator().next().tags().get("vmywhsbrcarycsjj")); - Assertions.assertEquals(7951820081459146243L, response.iterator().next().quotaSizeInKiBs()); - Assertions.assertEquals(QuotaType.INDIVIDUAL_USER_QUOTA, response.iterator().next().quotaType()); - Assertions.assertEquals("epl", response.iterator().next().quotaTarget()); + Assertions.assertEquals("lg", response.iterator().next().location()); + Assertions.assertEquals("iwzcxmjpbyeph", response.iterator().next().tags().get("gt")); + Assertions.assertEquals(2272430712766624779L, response.iterator().next().quotaSizeInKiBs()); + Assertions.assertEquals(QuotaType.DEFAULT_GROUP_QUOTA, response.iterator().next().quotaType()); + Assertions.assertEquals("rjgeih", response.iterator().next().quotaTarget()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListTests.java index a86a98e5b676a..4a07b4a8ded6e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesListTests.java @@ -13,7 +13,7 @@ public final class VolumeQuotaRulesListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VolumeQuotaRulesList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"quotaSizeInKiBs\":3361403308892839308,\"quotaType\":\"IndividualUserQuota\",\"quotaTarget\":\"lbjbsyb\"},\"location\":\"wrv\",\"tags\":{\"paslthaqfxssmwu\":\"gmfpgvmp\",\"zpdrhneu\":\"wbdsr\",\"ircgpikpz\":\"owqkdwytisi\",\"rmbzo\":\"mejzanlfzxia\"},\"id\":\"okixrjqcir\",\"name\":\"zpfrla\",\"type\":\"szrnwo\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"quotaSizeInKiBs\":2655439268574784215,\"quotaType\":\"IndividualUserQuota\",\"quotaTarget\":\"lwbtlhf\"},\"location\":\"jcdh\",\"tags\":{\"rqmq\":\"jvfbgofelja\",\"tvsexsowuel\":\"ldvriiiojnalghfk\",\"wws\":\"qhhahhxvrhmzkwpj\",\"qxujxukndxd\":\"ughftqsx\"},\"id\":\"grjguufzd\",\"name\":\"syqtfi\",\"type\":\"whbotzingamv\"},{\"properties\":{\"provisioningState\":\"Accepted\",\"quotaSizeInKiBs\":7578366703491273982,\"quotaType\":\"IndividualGroupQuota\",\"quotaTarget\":\"phqamvdkfwynwcvt\"},\"location\":\"kayh\",\"tags\":{\"kzwpcnpw\":\"vyqia\"},\"id\":\"cjaesgvvs\",\"name\":\"cyajguqf\",\"type\":\"wygzlvdnkfxusem\"}],\"nextLink\":\"zrmuhapfcqdps\"}") + "{\"value\":[{\"properties\":{\"provisioningState\":\"Deleting\",\"quotaSizeInKiBs\":3361403308892839308,\"quotaType\":\"IndividualUserQuota\",\"quotaTarget\":\"lbjbsyb\"},\"location\":\"wrv\",\"tags\":{\"paslthaqfxssmwu\":\"gmfpgvmp\",\"zpdrhneu\":\"wbdsr\",\"ircgpikpz\":\"owqkdwytisi\",\"rmbzo\":\"mejzanlfzxia\"},\"id\":\"okixrjqcir\",\"name\":\"zpfrla\",\"type\":\"szrnwo\"},{\"properties\":{\"provisioningState\":\"Succeeded\",\"quotaSizeInKiBs\":2655439268574784215,\"quotaType\":\"IndividualUserQuota\",\"quotaTarget\":\"lwbtlhf\"},\"location\":\"jcdh\",\"tags\":{\"rqmq\":\"jvfbgofelja\",\"tvsexsowuel\":\"ldvriiiojnalghfk\",\"wws\":\"qhhahhxvrhmzkwpj\",\"qxujxukndxd\":\"ughftqsx\"},\"id\":\"grjguufzd\",\"name\":\"syqtfi\",\"type\":\"whbotzingamv\"},{\"properties\":{\"provisioningState\":\"Updating\",\"quotaSizeInKiBs\":7578366703491273982,\"quotaType\":\"IndividualGroupQuota\",\"quotaTarget\":\"phqamvdkfwynwcvt\"},\"location\":\"kayh\",\"tags\":{\"kzwpcnpw\":\"vyqia\"},\"id\":\"cjaesgvvs\",\"name\":\"cyajguqf\",\"type\":\"wygzlvdnkfxusem\"}],\"nextLink\":\"zrmuhapfcqdps\"}") .toObject(VolumeQuotaRulesList.class); Assertions.assertEquals("wrv", model.value().get(0).location()); Assertions.assertEquals("gmfpgvmp", model.value().get(0).tags().get("paslthaqfxssmwu")); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesPropertiesTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesPropertiesTests.java index a12fa398810ae..42ba40a1733c3 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesPropertiesTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumeQuotaRulesPropertiesTests.java @@ -13,7 +13,7 @@ public final class VolumeQuotaRulesPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VolumeQuotaRulesProperties model = BinaryData.fromString( - "{\"provisioningState\":\"Deleting\",\"quotaSizeInKiBs\":4257608581453488752,\"quotaType\":\"IndividualUserQuota\",\"quotaTarget\":\"p\"}") + "{\"provisioningState\":\"Moving\",\"quotaSizeInKiBs\":4257608581453488752,\"quotaType\":\"IndividualUserQuota\",\"quotaTarget\":\"p\"}") .toObject(VolumeQuotaRulesProperties.class); Assertions.assertEquals(4257608581453488752L, model.quotaSizeInKiBs()); Assertions.assertEquals(QuotaType.INDIVIDUAL_USER_QUOTA, model.quotaType()); diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeExternalReplicationMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeExternalReplicationMockTests.java index aa3380d4e80d4..5dcf4aab916cc 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeExternalReplicationMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeExternalReplicationMockTests.java @@ -20,7 +20,7 @@ public final class VolumesAuthorizeExternalReplicationMockTests { @Test public void testAuthorizeExternalReplication() throws Exception { - String responseStr = "{\"properties\":{\"svmPeeringCommand\":\"upxvpifd\"}}"; + String responseStr = "{\"properties\":{\"svmPeeringCommand\":\"tefypococtfjgti\"}}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,9 +30,9 @@ public void testAuthorizeExternalReplication() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); SvmPeerCommandResponse response = manager.volumes() - .authorizeExternalReplication("yltjcrspxklu", "cclfgxannn", "ytzpo", "ewxigpxvk", + .authorizeExternalReplication("ofshfphwpnulaiyw", "e", "ywhslwkojpllndnp", "wrpqafgfugsnnf", com.azure.core.util.Context.NONE); - Assertions.assertEquals("upxvpifd", response.properties().svmPeeringCommand()); + Assertions.assertEquals("tefypococtfjgti", response.properties().svmPeeringCommand()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeReplicationMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeReplicationMockTests.java index 9a5075fce3423..96d461799d15e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeReplicationMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesAuthorizeReplicationMockTests.java @@ -29,8 +29,8 @@ public void testAuthorizeReplication() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.volumes() - .authorizeReplication("w", "yos", "wwhnhjtfvpn", "pmil", - new AuthorizeRequest().withRemoteVolumeResourceId("nwynudq"), com.azure.core.util.Context.NONE); + .authorizeReplication("pkt", "qylkmqpzoyhlf", "cgwgcloxoebqinji", "nwjfu", + new AuthorizeRequest().withRemoteVolumeResourceId("lafcbahh"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakFileLocksMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakFileLocksMockTests.java index 0733c89ec720f..a24333d4fa36e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakFileLocksMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakFileLocksMockTests.java @@ -29,8 +29,8 @@ public void testBreakFileLocks() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.volumes() - .breakFileLocks("i", "byl", "ui", "vxva", - new BreakFileLocksRequest().withClientIp("crkdlbn").withConfirmRunningDisruptiveOperation(false), + .breakFileLocks("df", "pyogtieyuj", "vczkcnyxrxmunjd", "vg", + new BreakFileLocksRequest().withClientIp("kvxlxpa").withConfirmRunningDisruptiveOperation(true), com.azure.core.util.Context.NONE); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationMockTests.java index 099c92d3eb873..843d725cbbf50 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesBreakReplicationMockTests.java @@ -29,7 +29,7 @@ public void testBreakReplication() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.volumes() - .breakReplication("mxitpfinzcpd", "tkrlgjmtbd", "vcqguefzh", "mpheqdur", + .breakReplication("uydzvk", "vxcnqmxqps", "okmvkhlggd", "bemzqkzszuwi", new BreakReplicationRequest().withForceBreakReplication(true), com.azure.core.util.Context.NONE); } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationMockTests.java index 908416766e9ec..8d92e0a2d0d5e 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesDeleteReplicationMockTests.java @@ -27,8 +27,7 @@ public void testDeleteReplication() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.volumes() - .deleteReplication("imwrzregzgyufu", "rw", "weryekzk", "hmeott", com.azure.core.util.Context.NONE); + manager.volumes().deleteReplication("gox", "jiuqhibtozi", "qw", "edmurrxxge", com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeRelocationMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeRelocationMockTests.java index a1064834c9c09..ae09453d41e52 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeRelocationMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesFinalizeRelocationMockTests.java @@ -28,7 +28,7 @@ public void testFinalizeRelocation() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.volumes() - .finalizeRelocation("ephblkwqpatvbqs", "tcjb", "tvivuzqym", "uo", com.azure.core.util.Context.NONE); + .finalizeRelocation("tjvidt", "gepuslvyjtc", "uwkasiz", "esfuught", com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListGetGroupIdListForLdapUserMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListGetGroupIdListForLdapUserMockTests.java index d052585d60ba5..13385e5008500 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListGetGroupIdListForLdapUserMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListGetGroupIdListForLdapUserMockTests.java @@ -21,7 +21,7 @@ public final class VolumesListGetGroupIdListForLdapUserMockTests { @Test public void testListGetGroupIdListForLdapUser() throws Exception { - String responseStr = "{\"groupIdsForLdapUser\":[\"pag\",\"tmvmmagoaqylkjz\",\"jiuazjc\"]}"; + String responseStr = "{\"groupIdsForLdapUser\":[\"mhha\",\"wjrmzvuporqzd\"]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,9 +31,9 @@ public void testListGetGroupIdListForLdapUser() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); GetGroupIdListForLdapUserResponse response = manager.volumes() - .listGetGroupIdListForLdapUser("vhcs", "hzlwxaea", "vurex", "ndsbdw", - new GetGroupIdListForLdapUserRequest().withUsername("aderzmw"), com.azure.core.util.Context.NONE); + .listGetGroupIdListForLdapUser("ivbgkcv", "hpzvuqdflvoniyp", "pubcpzgpxtivhjk", "idibgqjxgpn", + new GetGroupIdListForLdapUserRequest().withUsername("hgovfgp"), com.azure.core.util.Context.NONE); - Assertions.assertEquals("pag", response.groupIdsForLdapUser().get(0)); + Assertions.assertEquals("mhha", response.groupIdsForLdapUser().get(0)); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListQuotaReportMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListQuotaReportMockTests.java index d1691e8ed390d..44624fccb3f7a 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListQuotaReportMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListQuotaReportMockTests.java @@ -23,7 +23,7 @@ public final class VolumesListQuotaReportMockTests { @Test public void testListQuotaReport() throws Exception { String responseStr - = "{\"properties\":{\"quotaReportRecords\":[{\"quotaType\":\"DefaultGroupQuota\",\"quotaTarget\":\"yfytpq\",\"quotaLimitUsedInKiBs\":360408231688431351,\"quotaLimitTotalInKiBs\":450241632705489744,\"percentageUsed\":61.497177,\"isDerivedQuota\":true}]}}"; + = "{\"properties\":{\"quotaReportRecords\":[{\"quotaType\":\"DefaultUserQuota\",\"quotaTarget\":\"tdysnaquflq\",\"quotaLimitUsedInKiBs\":916252434412250119,\"quotaLimitTotalInKiBs\":2375561114046069968,\"percentageUsed\":39.401108,\"isDerivedQuota\":false},{\"quotaType\":\"IndividualGroupQuota\",\"quotaTarget\":\"zeqyjleziun\",\"quotaLimitUsedInKiBs\":3532081676281641207,\"quotaLimitTotalInKiBs\":7427972208909281693,\"percentageUsed\":67.25863,\"isDerivedQuota\":true},{\"quotaType\":\"IndividualGroupQuota\",\"quotaTarget\":\"amlbnseqacjjvpil\",\"quotaLimitUsedInKiBs\":8003115860813519069,\"quotaLimitTotalInKiBs\":6303016777741328727,\"percentageUsed\":5.943304,\"isDerivedQuota\":true}]}}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,20 +33,20 @@ public void testListQuotaReport() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ListQuotaReportResult response = manager.volumes() - .listQuotaReport("bmwnrdjyibqb", "aomhjrmkuhmaxl", "alfihcjmobcancd", "xxqcwgaxf", + .listQuotaReport("dohzjq", "tu", "o", "gebx", new QuotaReportFilterRequest().withQuotaType(QuotaType.INDIVIDUAL_USER_QUOTA) - .withQuotaTarget("nokzwjjz") - .withUsageThresholdPercentage(1354484922), + .withQuotaTarget("fepbnwgfmxjgc") + .withUsageThresholdPercentage(1926103431), com.azure.core.util.Context.NONE); - Assertions.assertEquals(QuotaType.DEFAULT_GROUP_QUOTA, + Assertions.assertEquals(QuotaType.DEFAULT_USER_QUOTA, response.properties().quotaReportRecords().get(0).quotaType()); - Assertions.assertEquals("yfytpq", response.properties().quotaReportRecords().get(0).quotaTarget()); - Assertions.assertEquals(360408231688431351L, + Assertions.assertEquals("tdysnaquflq", response.properties().quotaReportRecords().get(0).quotaTarget()); + Assertions.assertEquals(916252434412250119L, response.properties().quotaReportRecords().get(0).quotaLimitUsedInKiBs()); - Assertions.assertEquals(450241632705489744L, + Assertions.assertEquals(2375561114046069968L, response.properties().quotaReportRecords().get(0).quotaLimitTotalInKiBs()); - Assertions.assertEquals(61.497177F, response.properties().quotaReportRecords().get(0).percentageUsed()); - Assertions.assertTrue(response.properties().quotaReportRecords().get(0).isDerivedQuota()); + Assertions.assertEquals(39.401108F, response.properties().quotaReportRecords().get(0).percentageUsed()); + Assertions.assertFalse(response.properties().quotaReportRecords().get(0).isDerivedQuota()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListReplicationsMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListReplicationsMockTests.java index 0e6784b9d57f7..dfe3ad4c48eff 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListReplicationsMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesListReplicationsMockTests.java @@ -26,7 +26,7 @@ public final class VolumesListReplicationsMockTests { @Test public void testListReplications() throws Exception { String responseStr - = "{\"value\":[{\"replicationId\":\"iyslpkcvmwfaux\",\"endpointType\":\"dst\",\"replicationSchedule\":\"hourly\",\"remoteVolumeResourceId\":\"bormcqmiciijqpkz\",\"remoteVolumeRegion\":\"ojxjmcsmyqwix\",\"mirrorState\":\"Broken\",\"replicationCreationTime\":\"2021-07-14T19:56:52Z\",\"replicationDeletionTime\":\"2021-05-18T13:07:44Z\"}]}"; + = "{\"value\":[{\"replicationId\":\"hnykz\",\"endpointType\":\"dst\",\"replicationSchedule\":\"_10minutely\",\"remoteVolumeResourceId\":\"x\",\"remoteVolumeRegion\":\"mzqwmvtxnjmxmcu\",\"mirrorState\":\"Broken\",\"replicationCreationTime\":\"2021-02-28T12:20:49Z\",\"replicationDeletionTime\":\"2021-11-16T20:15:57Z\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -36,12 +36,12 @@ public void testListReplications() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.volumes() - .listReplications("yh", "w", "v", "atbwbqam", new ListReplicationsRequest().withExclude(Exclude.DELETED), - com.azure.core.util.Context.NONE); + .listReplications("mk", "svth", "wpztekovmribia", "tgplucfota", + new ListReplicationsRequest().withExclude(Exclude.NONE), com.azure.core.util.Context.NONE); Assertions.assertEquals(EndpointType.DST, response.iterator().next().endpointType()); - Assertions.assertEquals(ReplicationSchedule.HOURLY, response.iterator().next().replicationSchedule()); - Assertions.assertEquals("bormcqmiciijqpkz", response.iterator().next().remoteVolumeResourceId()); - Assertions.assertEquals("ojxjmcsmyqwix", response.iterator().next().remoteVolumeRegion()); + Assertions.assertEquals(ReplicationSchedule.ONE_ZEROMINUTELY, response.iterator().next().replicationSchedule()); + Assertions.assertEquals("x", response.iterator().next().remoteVolumeResourceId()); + Assertions.assertEquals("mzqwmvtxnjmxmcu", response.iterator().next().remoteVolumeRegion()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesPeerExternalClusterMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesPeerExternalClusterMockTests.java index 3aaab1d22756f..e99210a0c1348 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesPeerExternalClusterMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesPeerExternalClusterMockTests.java @@ -22,8 +22,7 @@ public final class VolumesPeerExternalClusterMockTests { @Test public void testPeerExternalCluster() throws Exception { - String responseStr - = "{\"properties\":{\"clusterPeeringCommand\":\"eslabnsmjkwynq\",\"passphrase\":\"ekqsykvwjtqpkev\"}}"; + String responseStr = "{\"properties\":{\"clusterPeeringCommand\":\"uahokq\",\"passphrase\":\"bkau\"}}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,11 +32,12 @@ public void testPeerExternalCluster() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ClusterPeerCommandResponse response = manager.volumes() - .peerExternalCluster("dsajrednwyysh", "uwg", "evuafpwzyifrk", "wltxeqipxgzdyims", - new PeerClusterForVolumeMigrationRequest().withPeerIpAddresses(Arrays.asList("yorpr", "vk")), + .peerExternalCluster("ahmnxhkxjqirw", "weooxffifhxwrs", "ewmozqvbu", "qmamhsycxhxzga", + new PeerClusterForVolumeMigrationRequest().withPeerIpAddresses( + Arrays.asList("taboidvmf", "hppubowsepdfgkmt", "herngb")), com.azure.core.util.Context.NONE); - Assertions.assertEquals("eslabnsmjkwynq", response.properties().clusterPeeringCommand()); - Assertions.assertEquals("ekqsykvwjtqpkev", response.properties().passphrase()); + Assertions.assertEquals("uahokq", response.properties().clusterPeeringCommand()); + Assertions.assertEquals("bkau", response.properties().passphrase()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesPoolChangeMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesPoolChangeMockTests.java index 54464d57d37d3..c09a7b122a026 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesPoolChangeMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesPoolChangeMockTests.java @@ -29,8 +29,8 @@ public void testPoolChange() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.volumes() - .poolChange("aifyzyzeyuubeids", "l", "ytoithgygvfl", "gvdihoynkrxwetwk", - new PoolChangeRequest().withNewPoolResourceId("rcyrucpcunnu"), com.azure.core.util.Context.NONE); + .poolChange("rjvzuyt", "rmlmuowo", "bauiropi", "nszonwpngaj", + new PoolChangeRequest().withNewPoolResourceId("n"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationMockTests.java index fa0f3f034450b..c2418c71a5f35 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReInitializeReplicationMockTests.java @@ -28,7 +28,8 @@ public void testReInitializeReplication() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.volumes() - .reInitializeReplication("l", "sauzpjlx", "ehuxiqhzlraym", "zxlskihmxr", com.azure.core.util.Context.NONE); + .reInitializeReplication("zpofoiyjwpfilk", "kkholvdndvia", "ogphuartvtiu", "yefchnm", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusWithResponseMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusWithResponseMockTests.java index 1a588b63c7672..92dd45a8e2731 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusWithResponseMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesReplicationStatusWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class VolumesReplicationStatusWithResponseMockTests { @Test public void testReplicationStatusWithResponse() throws Exception { String responseStr - = "{\"healthy\":true,\"relationshipStatus\":\"Transferring\",\"mirrorState\":\"Mirrored\",\"totalProgress\":\"oqa\",\"errorMessage\":\"z\"}"; + = "{\"healthy\":true,\"relationshipStatus\":\"Transferring\",\"mirrorState\":\"Uninitialized\",\"totalProgress\":\"xauzlwvsgmwohqfz\",\"errorMessage\":\"vux\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,14 +33,14 @@ public void testReplicationStatusWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ReplicationStatus response = manager.volumes() - .replicationStatusWithResponse("ujlfyoumpcky", "clcdigptajbrzmq", "ucycijo", "lxiutgjcyzyzjdnr", + .replicationStatusWithResponse("lxxhljfp", "picrmnzhrgmqgjsx", "pqcbfrmbodthsq", "gvriibakclac", com.azure.core.util.Context.NONE) .getValue(); Assertions.assertTrue(response.healthy()); Assertions.assertEquals(VolumeReplicationRelationshipStatus.TRANSFERRING, response.relationshipStatus()); - Assertions.assertEquals(MirrorState.MIRRORED, response.mirrorState()); - Assertions.assertEquals("oqa", response.totalProgress()); - Assertions.assertEquals("z", response.errorMessage()); + Assertions.assertEquals(MirrorState.UNINITIALIZED, response.mirrorState()); + Assertions.assertEquals("xauzlwvsgmwohqfz", response.totalProgress()); + Assertions.assertEquals("vux", response.errorMessage()); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationMockTests.java index df67da5a0bfd0..9745721df15de 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesResyncReplicationMockTests.java @@ -28,8 +28,7 @@ public void testResyncReplication() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.volumes() - .resyncReplication("ywzwofalickd", "oiqtamtyvskn", "rwzawnvs", "cfhzagxnvhycv", - com.azure.core.util.Context.NONE); + .resyncReplication("lxynpdkvgf", "buiyji", "uzphdugnei", "n", com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertMockTests.java index 74d9d7b239a33..d6b727d5d6cb9 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertMockTests.java @@ -29,8 +29,8 @@ public void testRevert() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.volumes() - .revert("jmlbemyejiriux", "gthortudaw", "pjfe", "qerpptcbgqnzm", - new VolumeRevert().withSnapshotId("iilialwc"), com.azure.core.util.Context.NONE); + .revert("oiquvrehmrnjhvs", "jztczytqj", "w", "auunfprnjletlx", + new VolumeRevert().withSnapshotId("rpddouifamo"), com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertRelocationMockTests.java b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertRelocationMockTests.java index d852875dc6608..71f71d49071cf 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertRelocationMockTests.java +++ b/sdk/netapp/azure-resourcemanager-netapp/src/test/java/com/azure/resourcemanager/netapp/generated/VolumesRevertRelocationMockTests.java @@ -28,7 +28,8 @@ public void testRevertRelocation() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.volumes() - .revertRelocation("o", "tgitsqhzvbrzc", "banf", "ndscxmxeatk", com.azure.core.util.Context.NONE); + .revertRelocation("qfecjxeygtuhx", "ic", "uewmrswnjlxuzrhw", "usxjbaqehg", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/netapp/azure-resourcemanager-netapp/tsp-location.yaml b/sdk/netapp/azure-resourcemanager-netapp/tsp-location.yaml index f6c1047ff7036..3ccb9ec4bec04 100644 --- a/sdk/netapp/azure-resourcemanager-netapp/tsp-location.yaml +++ b/sdk/netapp/azure-resourcemanager-netapp/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/netapp/resource-manager/Microsoft.NetApp/NetApp -commit: 7b37a9458cffc3977f2c84f487fcb3ccc429f8a7 +commit: 2371f14ab26ab99500de46ac5c507476a8e0fc61 repo: Azure/azure-rest-api-specs additionalDirectories: From 3e6d49f26581f06f3a0e1c43279edf6a3b91e2ef Mon Sep 17 00:00:00 2001 From: "azure-sdk-automation[bot]" <191533747+azure-sdk-automation[bot]@users.noreply.github.com> Date: Thu, 22 Oct 2026 09:51:20 +0800 Subject: [PATCH 13/22] Increment package versions for horizondb auto-releases (#50902) Co-authored-by: azure-sdk --- eng/versioning/version_client.txt | 2 +- .../azure-resourcemanager-horizondb/CHANGELOG.md | 10 ++++++++++ sdk/horizondb/azure-resourcemanager-horizondb/pom.xml | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 7ff5a0d7737f4..64027c5d22703 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -503,7 +503,7 @@ com.azure.resourcemanager:azure-resourcemanager-computebulkactions;1.0.0-beta.1; com.azure.resourcemanager:azure-resourcemanager-artifactsigning;1.0.0;1.1.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-appnetwork;1.0.0-beta.2;1.0.0-beta.3 com.azure.resourcemanager:azure-resourcemanager-servicegroups;1.0.0;1.1.0-beta.1 -com.azure.resourcemanager:azure-resourcemanager-horizondb;1.0.0-beta.2;1.0.0-beta.3 +com.azure.resourcemanager:azure-resourcemanager-horizondb;1.0.0-beta.3;1.0.0-beta.4 com.azure.resourcemanager:azure-resourcemanager-relationships;1.0.0;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-fileshares;1.0.0-beta.1;1.0.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-monitor-slis;1.0.0-beta.2;1.0.0-beta.3 diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/CHANGELOG.md b/sdk/horizondb/azure-resourcemanager-horizondb/CHANGELOG.md index d23a8932cd175..5732dc46fb337 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/CHANGELOG.md +++ b/sdk/horizondb/azure-resourcemanager-horizondb/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.0.0-beta.4 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.0.0-beta.3 (2026-10-15) - Azure Resource Manager HorizonDb client library for Java. This package contains Microsoft Azure SDK for HorizonDb Management SDK. Azure Resource Provider API for managing HorizonDB clusters, pools, endpoints, nodes, and firewall rules. Package api-version 2026-10-01-preview. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). diff --git a/sdk/horizondb/azure-resourcemanager-horizondb/pom.xml b/sdk/horizondb/azure-resourcemanager-horizondb/pom.xml index 480c45f012b16..2f0b189fd449c 100644 --- a/sdk/horizondb/azure-resourcemanager-horizondb/pom.xml +++ b/sdk/horizondb/azure-resourcemanager-horizondb/pom.xml @@ -14,7 +14,7 @@ com.azure.resourcemanager azure-resourcemanager-horizondb - 1.0.0-beta.3 + 1.0.0-beta.4 jar Microsoft Azure SDK for HorizonDb Management From db177b14bff83b171b21996ff9090c0d88fbe436 Mon Sep 17 00:00:00 2001 From: Weidong Xu Date: Thu, 22 Oct 2026 14:00:04 +0800 Subject: [PATCH 14/22] Align Projects with beta Azure Core (#50913) Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 77b6f517-0b1b-4b31-95a4-aa8a8372628e --- sdk/ai/azure-ai-projects/pom.xml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/sdk/ai/azure-ai-projects/pom.xml b/sdk/ai/azure-ai-projects/pom.xml index 9b511a093b9ee..6b043001ef5fc 100644 --- a/sdk/ai/azure-ai-projects/pom.xml +++ b/sdk/ai/azure-ai-projects/pom.xml @@ -58,7 +58,7 @@ Code generated by Microsoft (R) TypeSpec Code Generator. com.azure azure-core - 1.60.0 + 1.61.0-beta.1 com.azure From 792dd61198b8d7afefd8ee7f81acf9f66fd6ddad Mon Sep 17 00:00:00 2001 From: "azure-sdk-automation[bot]" <191533747+azure-sdk-automation[bot]@users.noreply.github.com> Date: Thu, 22 Oct 2026 14:57:51 +0800 Subject: [PATCH 15/22] [skip ci] [Automation] Generate SDK based on TypeSpec 0.48.3 (#50897) * [Automation] Generate SDK based on TypeSpec 0.48.3 * [Automation] Regenerate AI SDKs from updated specs Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 77b6f517-0b1b-4b31-95a4-aa8a8372628e * Disable paging tests pending re-recording Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 77b6f517-0b1b-4b31-95a4-aa8a8372628e * Honor has_more when paging Foundry results Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 77b6f517-0b1b-4b31-95a4-aa8a8372628e * Restore conversation paging overloads Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 77b6f517-0b1b-4b31-95a4-aa8a8372628e * Regenerate Foundry AI clients after merge Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 77b6f517-0b1b-4b31-95a4-aa8a8372628e * Re-enable optimization paging tests The has_more paging customization now stops these recordings before an unnecessary second-page request. Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 77b6f517-0b1b-4b31-95a4-aa8a8372628e --------- Co-authored-by: azure-sdk Co-authored-by: Weidong Xu Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 77b6f517-0b1b-4b31-95a4-aa8a8372628e --- eng/emitter-package-lock.json | 156 +-- eng/emitter-package.json | 4 +- .../src/main/java/AgentsCustomizations.java | 29 + .../azure/ai/agents/AgentsAsyncClient.java | 934 +++++++++--------- .../com/azure/ai/agents/AgentsClient.java | 605 ++++++------ .../agents/BetaMemoryStoresAsyncClient.java | 129 ++- .../ai/agents/BetaMemoryStoresClient.java | 94 +- ...taVoiceAgentsConversationsAsyncClient.java | 618 ++++++------ .../BetaVoiceAgentsConversationsClient.java | 392 ++++---- .../BetaVoiceAgentsTelephonyAsyncClient.java | 312 +++--- .../BetaVoiceAgentsTelephonyClient.java | 232 +++-- .../azure/ai/agents/ToolboxesAsyncClient.java | 252 +++-- .../com/azure/ai/agents/ToolboxesClient.java | 178 ++-- .../implementation/AgentsClientImpl.java | 28 +- .../ai/agents/implementation/AgentsImpl.java | 450 ++++++++- .../agents/implementation/BetaAgentsImpl.java | 15 +- .../implementation/BetaMemoryStoresImpl.java | 293 ++++-- .../BetaVoiceAgentsConversationsImpl.java | 445 +++++++-- .../BetaVoiceAgentsTelephoniesImpl.java | 283 ++++-- .../implementation/JsonMergePatchHelper.java | 17 +- .../MultipartFormDataHelper.java | 11 +- .../agents/implementation/PollingUtils.java | 12 +- .../agents/implementation/ToolboxesImpl.java | 225 +++-- .../META-INF/azure-ai-agents_metadata.json | 2 +- .../ai/agents/MemoryStoresAsyncTests.java | 2 + .../azure/ai/agents/MemoryStoresTests.java | 2 + sdk/ai/azure-ai-agents/tsp-location.yaml | 2 +- .../src/main/java/ProjectsCustomizations.java | 30 + .../BetaAgentInsightMonitorsAsyncClient.java | 394 ++++---- .../BetaAgentInsightMonitorsClient.java | 283 +++--- .../ai/projects/BetaSkillsAsyncClient.java | 250 +++-- .../azure/ai/projects/BetaSkillsClient.java | 178 ++-- .../ai/projects/DatasetsAsyncClient.java | 125 ++- .../com/azure/ai/projects/DatasetsClient.java | 89 +- .../ai/projects/EvaluatorsAsyncClient.java | 133 ++- .../azure/ai/projects/EvaluatorsClient.java | 95 +- .../implementation/AIProjectClientImpl.java | 46 +- .../BetaAgentInsightMonitorsImpl.java | 275 +++++- .../BetaEvaluationTaxonomiesImpl.java | 70 +- .../implementation/BetaEvaluatorsImpl.java | 27 +- .../implementation/BetaInsightsImpl.java | 54 +- .../implementation/BetaModelsImpl.java | 114 +-- .../implementation/BetaRedTeamsImpl.java | 54 +- .../implementation/BetaRoutinesImpl.java | 110 ++- .../implementation/BetaSchedulesImpl.java | 98 +- .../implementation/BetaSkillsImpl.java | 241 +++-- .../implementation/ConnectionsImpl.java | 58 +- .../projects/implementation/DatasetsImpl.java | 239 +++-- .../implementation/DeploymentsImpl.java | 46 +- .../implementation/EvaluationRulesImpl.java | 62 +- .../implementation/EvaluatorsImpl.java | 227 +++-- .../projects/implementation/IndexesImpl.java | 86 +- .../implementation/JsonMergePatchHelper.java | 10 +- .../MultipartFormDataHelper.java | 11 +- .../OperationLocationPollingStrategy.java | 6 +- .../projects/implementation/PollingUtils.java | 12 +- .../SyncOperationLocationPollingStrategy.java | 7 +- .../META-INF/azure-ai-projects_metadata.json | 2 +- sdk/ai/azure-ai-projects/tsp-location.yaml | 2 +- .../models/HostedAgentDeployment.java | 19 +- .../models/ManagedAgentDeployment.java | 19 +- .../models/EdgeActionVersionProperties.java | 16 +- .../models/FhirR4Condition.java | 76 +- .../models/FhirR4Observation.java | 76 +- .../models/FhirR4ResearchStudy.java | 76 +- .../models/AzureWorkloadSqlRecoveryPoint.java | 9 +- .../models/InquiryInfo.java | 14 +- .../models/StatefulServiceProperties.java | 18 +- .../models/StatelessServiceProperties.java | 18 +- .../models/StatefulServiceProperties.java | 18 +- .../models/StatelessServiceProperties.java | 18 +- 71 files changed, 5596 insertions(+), 3937 deletions(-) diff --git a/eng/emitter-package-lock.json b/eng/emitter-package-lock.json index d43622c924479..bafa9daccf9e9 100644 --- a/eng/emitter-package-lock.json +++ b/eng/emitter-package-lock.json @@ -5,11 +5,11 @@ "packages": { "": { "dependencies": { - "@azure-tools/typespec-java": "0.48.1" + "@azure-tools/typespec-java": "0.48.3" }, "devDependencies": { "@azure-tools/openai-typespec": "1.29.0", - "@azure-tools/typespec-autorest": "0.73.0", + "@azure-tools/typespec-autorest": "0.73.1", "@azure-tools/typespec-azure-core": "0.73.0", "@azure-tools/typespec-azure-portal-core": "0.73.0", "@azure-tools/typespec-azure-resource-manager": "0.73.0", @@ -89,12 +89,12 @@ } }, "node_modules/@azure-tools/typespec-autorest": { - "version": "0.73.0", - "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/@azure-tools/typespec-autorest/-/typespec-autorest-0.73.0.tgz", - "integrity": "sha512-SvctS7ALld55xASlCNZ23KJJ2pfpSGIcnEhUzykS2p7QEMe9I2zCSNReQg/TklSVHsl303iO7LI6RoUqtQ/oOw==", + "version": "0.73.1", + "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/@azure-tools/typespec-autorest/-/typespec-autorest-0.73.1.tgz", + "integrity": "sha512-CsHcF0tZC2JcNYJ6RqaSxISLDx4V4UtNufgPi1MGG0GePPNm4WcWMaQWyDlfvCgkVYXfFIdTgphRR3ZO6JzIfg==", "license": "MIT", "dependencies": { - "@azure-tools/typespec-azure-examples": "^0.2.0", + "@azure-tools/typespec-azure-examples": "^0.2.1", "yaml": "^2.9.0" }, "engines": { @@ -132,9 +132,9 @@ } }, "node_modules/@azure-tools/typespec-azure-examples": { - "version": "0.2.0", - "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/@azure-tools/typespec-azure-examples/-/typespec-azure-examples-0.2.0.tgz", - "integrity": "sha512-omv0wP/9+v3PEGy1lP/TD49hblBRc2PsCyaFekquwrIjCFP0ZNYyFD1tnxIWZkJBn2b+7zoc86I2t/aYj8LFpA==", + "version": "0.2.1", + "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/@azure-tools/typespec-azure-examples/-/typespec-azure-examples-0.2.1.tgz", + "integrity": "sha512-AAwLMg0/5KH8tj05sVKEAhqVBHZ0ccRTZ+zTMzCEgphRkrIx+yCjil+0U4WsKWws+H6bAcTELft9SOtNKSyatA==", "license": "MIT", "dependencies": { "ajv": "^8.20.0", @@ -225,9 +225,9 @@ } }, "node_modules/@azure-tools/typespec-java": { - "version": "0.48.1", - "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/@azure-tools/typespec-java/-/typespec-java-0.48.1.tgz", - "integrity": "sha512-L+ZOYQF1L2EjGbXDUxz3A8jpLxvRk32dvCCr1qbNFS1JetTvigYIjLcDWpNdnkRkrOhIvXx99m0GeDijut3EHg==", + "version": "0.48.3", + "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/@azure-tools/typespec-java/-/typespec-java-0.48.3.tgz", + "integrity": "sha512-dxA0sXcjI8XjqU6UtHlSPSKmjTQhKbJ5n8pydb7A4r4SV4hD5z0ZVIfS0W9OATfPb6o1WLGPcy4qgbDbowH4ow==", "license": "MIT", "dependencies": { "@autorest/codemodel": "~4.20.1", @@ -238,7 +238,7 @@ "node": ">=22.0.0" }, "peerDependencies": { - "@azure-tools/typespec-autorest": "^0.73.0", + "@azure-tools/typespec-autorest": "^0.73.1", "@azure-tools/typespec-azure-core": "^0.73.0", "@azure-tools/typespec-azure-resource-manager": "^0.73.0", "@azure-tools/typespec-azure-rulesets": "^0.73.0", @@ -470,14 +470,14 @@ } }, "node_modules/@scalar/json-schema-validator": { - "version": "0.1.10", - "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/@scalar/json-schema-validator/-/json-schema-validator-0.1.10.tgz", - "integrity": "sha512-y9+MMUV3n1QGJXCRPZJuYk2PPRqHU9vEDyMffq4FVVjnQoEWzlgV55qXkZ5mMDBB5tpHHI3/dBflrjlYiRa8Rg==", + "version": "0.1.12", + "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/@scalar/json-schema-validator/-/json-schema-validator-0.1.12.tgz", + "integrity": "sha512-DjRUAFiMpq+ME1pD/xCUs317I1ve7ZKz2jLJ3ff/KY9tqlBOyEmY67ns3aQs+erBDPV/v68j8d9vkZPvy5iKEQ==", "dev": true, "license": "MIT", "dependencies": { - "@scalar/helpers": "0.16.1", - "@scalar/types": "0.23.0", + "@scalar/helpers": "0.16.3", + "@scalar/types": "0.23.2", "ajv": "^8.20.0", "ajv-draft-04": "^1.0.0", "ajv-formats": "^3.0.1", @@ -488,9 +488,9 @@ } }, "node_modules/@scalar/json-schema-validator/node_modules/@scalar/helpers": { - "version": "0.16.1", - "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/@scalar/helpers/-/helpers-0.16.1.tgz", - "integrity": "sha512-XhEnvri3Y9p6CdByMh+TqHfxS5Tz6iVMioq40empHq+/5wfOpxqj/cu3F2SDLtAYbseck03UTtJGcRcby8Y+TQ==", + "version": "0.16.3", + "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/@scalar/helpers/-/helpers-0.16.3.tgz", + "integrity": "sha512-He0CySU4Iv4DwyVF40EoVpvPneRQ1zqC/g1eBfR2i2G9RE/BEq/F5AiUrjIkbtTPjSbIiIL1AXMkXvBvgHVdsA==", "dev": true, "license": "MIT", "engines": { @@ -498,13 +498,13 @@ } }, "node_modules/@scalar/json-schema-validator/node_modules/@scalar/types": { - "version": "0.23.0", - "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/@scalar/types/-/types-0.23.0.tgz", - "integrity": "sha512-j/px3Lp52x2NU3pG2vkFZUDZ3XwdYrNtPxxzhHyNBrpAuFzWoLPkMECRZqngmWEyUz/ZaSjYb1Yg/VF/ogDPSA==", + "version": "0.23.2", + "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/@scalar/types/-/types-0.23.2.tgz", + "integrity": "sha512-sya+RIpIODwcvem7SYRnPB0OdVZtQ15mSpVdPwB5qltYry7xgyp9skdc3PuxTDbyEmLuZ4ZmkSVybpaFMICZiQ==", "dev": true, "license": "MIT", "dependencies": { - "@scalar/helpers": "0.16.1", + "@scalar/helpers": "0.16.3", "nanoid": "^5.1.6", "type-fest": "^5.8.0", "zod": "^4.4.3" @@ -514,18 +514,18 @@ } }, "node_modules/@scalar/openapi-parser": { - "version": "0.29.11", - "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/@scalar/openapi-parser/-/openapi-parser-0.29.11.tgz", - "integrity": "sha512-Ck4+ccs4JwVIM/0sCmVt/wsqbK2DIulVSoGq6/B3NFuzDHVHEWJvXNbkF4bADeCFxpf+4JXyZff6l1dVUQFJrA==", + "version": "0.29.13", + "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/@scalar/openapi-parser/-/openapi-parser-0.29.13.tgz", + "integrity": "sha512-k/4nft8xKVSP5pk7n9G8QxQ4wc+UwmtrAMQ8eCPKh5r2v8lvS3AXv2bHiBowMBnJnhua5hyomFzaaGs0LmB9yg==", "dev": true, "license": "MIT", "dependencies": { - "@scalar/helpers": "0.16.1", - "@scalar/json-magic": "0.15.5", - "@scalar/openapi-types": "0.9.7", - "@scalar/openapi-upgrader": "0.4.2", - "@scalar/openapi-validator": "0.1.10", - "@scalar/types": "0.23.0", + "@scalar/helpers": "0.16.3", + "@scalar/json-magic": "0.15.7", + "@scalar/openapi-types": "0.9.8", + "@scalar/openapi-upgrader": "0.4.4", + "@scalar/openapi-validator": "0.1.12", + "@scalar/types": "0.23.2", "yaml": "^2.9.0" }, "engines": { @@ -533,9 +533,9 @@ } }, "node_modules/@scalar/openapi-parser/node_modules/@scalar/helpers": { - "version": "0.16.1", - "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/@scalar/helpers/-/helpers-0.16.1.tgz", - "integrity": "sha512-XhEnvri3Y9p6CdByMh+TqHfxS5Tz6iVMioq40empHq+/5wfOpxqj/cu3F2SDLtAYbseck03UTtJGcRcby8Y+TQ==", + "version": "0.16.3", + "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/@scalar/helpers/-/helpers-0.16.3.tgz", + "integrity": "sha512-He0CySU4Iv4DwyVF40EoVpvPneRQ1zqC/g1eBfR2i2G9RE/BEq/F5AiUrjIkbtTPjSbIiIL1AXMkXvBvgHVdsA==", "dev": true, "license": "MIT", "engines": { @@ -543,13 +543,13 @@ } }, "node_modules/@scalar/openapi-parser/node_modules/@scalar/json-magic": { - "version": "0.15.5", - "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/@scalar/json-magic/-/json-magic-0.15.5.tgz", - "integrity": "sha512-y9bFapzGuhdnTRgRxSwL12InnJgp+mkCKBawVd8efBWRBRsHAR6uofau6dUbnKM7v43gUqKB2Sxi/dlMpTrLpw==", + "version": "0.15.7", + "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/@scalar/json-magic/-/json-magic-0.15.7.tgz", + "integrity": "sha512-Vnu9wFHzuqpsx1DR6ePTsXgcBFnpRTEBH8HZAS1Nj7h7HfOsxaJtV5ig7pdLlLTK9bcJI+aZLndDZud5gysKFA==", "dev": true, "license": "MIT", "dependencies": { - "@scalar/helpers": "0.16.1", + "@scalar/helpers": "0.16.3", "pathe": "^2.0.3", "undici": "7.29.1", "yaml": "^2.9.0" @@ -559,13 +559,13 @@ } }, "node_modules/@scalar/openapi-parser/node_modules/@scalar/types": { - "version": "0.23.0", - "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/@scalar/types/-/types-0.23.0.tgz", - "integrity": "sha512-j/px3Lp52x2NU3pG2vkFZUDZ3XwdYrNtPxxzhHyNBrpAuFzWoLPkMECRZqngmWEyUz/ZaSjYb1Yg/VF/ogDPSA==", + "version": "0.23.2", + "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/@scalar/types/-/types-0.23.2.tgz", + "integrity": "sha512-sya+RIpIODwcvem7SYRnPB0OdVZtQ15mSpVdPwB5qltYry7xgyp9skdc3PuxTDbyEmLuZ4ZmkSVybpaFMICZiQ==", "dev": true, "license": "MIT", "dependencies": { - "@scalar/helpers": "0.16.1", + "@scalar/helpers": "0.16.3", "nanoid": "^5.1.6", "type-fest": "^5.8.0", "zod": "^4.4.3" @@ -585,9 +585,9 @@ } }, "node_modules/@scalar/openapi-types": { - "version": "0.9.7", - "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/@scalar/openapi-types/-/openapi-types-0.9.7.tgz", - "integrity": "sha512-UVSgxRxcTaIbTZGtNRdQJHZC60uyYi29zfDqQVp0lxx07BNczIHbf9jycgI/+W3Uxxod+yUUt7hzxnKllOHE0w==", + "version": "0.9.8", + "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/@scalar/openapi-types/-/openapi-types-0.9.8.tgz", + "integrity": "sha512-pGcpkZObsGBC7nRKYte+6gstoe0C4hp7B2UWQYjg5To1wE68s3OHVvin+muL3tn3ZAoahXeJAkn1+aEcMi802w==", "dev": true, "license": "MIT", "engines": { @@ -595,23 +595,23 @@ } }, "node_modules/@scalar/openapi-upgrader": { - "version": "0.4.2", - "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/@scalar/openapi-upgrader/-/openapi-upgrader-0.4.2.tgz", - "integrity": "sha512-upaA06r5ilkwl4bphiBCUiGI4hFLVRKhHNY8UIrWhL0y2XkaECB60GsnUvIFRRhlNbAcyZvBC3+0TKVCt+R7IA==", + "version": "0.4.4", + "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/@scalar/openapi-upgrader/-/openapi-upgrader-0.4.4.tgz", + "integrity": "sha512-Agio5QlKUsJfMVe6nwkxjoQxI2o1lzBJYbPeHg+RKt5uAzU/zLI+h4xxPgwNaY2B9Ji5ekHGWmVkwsPnRBXl8g==", "dev": true, "license": "MIT", "dependencies": { - "@scalar/helpers": "0.16.1", - "@scalar/openapi-types": "0.9.7" + "@scalar/helpers": "0.16.3", + "@scalar/openapi-types": "0.9.8" }, "engines": { "node": ">=22" } }, "node_modules/@scalar/openapi-upgrader/node_modules/@scalar/helpers": { - "version": "0.16.1", - "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/@scalar/helpers/-/helpers-0.16.1.tgz", - "integrity": "sha512-XhEnvri3Y9p6CdByMh+TqHfxS5Tz6iVMioq40empHq+/5wfOpxqj/cu3F2SDLtAYbseck03UTtJGcRcby8Y+TQ==", + "version": "0.16.3", + "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/@scalar/helpers/-/helpers-0.16.3.tgz", + "integrity": "sha512-He0CySU4Iv4DwyVF40EoVpvPneRQ1zqC/g1eBfR2i2G9RE/BEq/F5AiUrjIkbtTPjSbIiIL1AXMkXvBvgHVdsA==", "dev": true, "license": "MIT", "engines": { @@ -619,15 +619,15 @@ } }, "node_modules/@scalar/openapi-validator": { - "version": "0.1.10", - "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/@scalar/openapi-validator/-/openapi-validator-0.1.10.tgz", - "integrity": "sha512-Td897dijaKFzjrBvFeC6J782IZPhUOnnolzQ5fnc1GWP/PCucjnTTrf6wM24kDpFd+JJHwBg04iuoNk/v/metw==", + "version": "0.1.12", + "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/@scalar/openapi-validator/-/openapi-validator-0.1.12.tgz", + "integrity": "sha512-ZQ08rgGeQO+ikgASM09r0qRqg3H0qlGeeSKYz0mCf2TLwNGveQSGmWuMwF0hafNMmjvtsakob4XaMdWwhUpaxQ==", "dev": true, "license": "MIT", "dependencies": { - "@scalar/helpers": "0.16.1", - "@scalar/json-schema-validator": "0.1.10", - "@scalar/types": "0.23.0", + "@scalar/helpers": "0.16.3", + "@scalar/json-schema-validator": "0.1.12", + "@scalar/types": "0.23.2", "yaml": "^2.9.0" }, "engines": { @@ -635,9 +635,9 @@ } }, "node_modules/@scalar/openapi-validator/node_modules/@scalar/helpers": { - "version": "0.16.1", - "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/@scalar/helpers/-/helpers-0.16.1.tgz", - "integrity": "sha512-XhEnvri3Y9p6CdByMh+TqHfxS5Tz6iVMioq40empHq+/5wfOpxqj/cu3F2SDLtAYbseck03UTtJGcRcby8Y+TQ==", + "version": "0.16.3", + "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/@scalar/helpers/-/helpers-0.16.3.tgz", + "integrity": "sha512-He0CySU4Iv4DwyVF40EoVpvPneRQ1zqC/g1eBfR2i2G9RE/BEq/F5AiUrjIkbtTPjSbIiIL1AXMkXvBvgHVdsA==", "dev": true, "license": "MIT", "engines": { @@ -645,13 +645,13 @@ } }, "node_modules/@scalar/openapi-validator/node_modules/@scalar/types": { - "version": "0.23.0", - "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/@scalar/types/-/types-0.23.0.tgz", - "integrity": "sha512-j/px3Lp52x2NU3pG2vkFZUDZ3XwdYrNtPxxzhHyNBrpAuFzWoLPkMECRZqngmWEyUz/ZaSjYb1Yg/VF/ogDPSA==", + "version": "0.23.2", + "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/@scalar/types/-/types-0.23.2.tgz", + "integrity": "sha512-sya+RIpIODwcvem7SYRnPB0OdVZtQ15mSpVdPwB5qltYry7xgyp9skdc3PuxTDbyEmLuZ4ZmkSVybpaFMICZiQ==", "dev": true, "license": "MIT", "dependencies": { - "@scalar/helpers": "0.16.1", + "@scalar/helpers": "0.16.3", "nanoid": "^5.1.6", "type-fest": "^5.8.0", "zod": "^4.4.3" @@ -1257,9 +1257,9 @@ } }, "node_modules/prettier": { - "version": "3.9.9", - "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/prettier/-/prettier-3.9.9.tgz", - "integrity": "sha512-Z/CJHIkdujO/OtN7nXUii0Rf3VT5SRuhjBA82Xvu2XhBUgX3nhP67T0LHceBdQLex7OOFGTox+Q5Yg8Jk2Qivg==", + "version": "3.9.10", + "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/prettier/-/prettier-3.9.10.tgz", + "integrity": "sha512-skGHTH1Yb9QvaTC4hWnRTzEYtCpApF0UMBPz+t/0ZPzP8ihefo/btKd+QA7pUE0fEwA1SbS/NmhyEcstdXOIdA==", "license": "MIT", "bin": { "prettier": "bin/prettier.cjs" @@ -1387,9 +1387,9 @@ } }, "node_modules/temporal-polyfill": { - "version": "1.0.5", - "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/temporal-polyfill/-/temporal-polyfill-1.0.5.tgz", - "integrity": "sha512-+H/mmY74i6wXCMcjIhGuSnODcyZnc4eois2myhOyX0UqRAKNXQY5m9iB1en5jQ/n4SXtjLXo1ElBI5bmn8tZwQ==", + "version": "1.0.6", + "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/temporal-polyfill/-/temporal-polyfill-1.0.6.tgz", + "integrity": "sha512-tYyEry1HLGUDbm2356W3iYD0OZdo7rlP7h98Zr/EnjqLZQwTAfcBDUvJnJbfA15v/vQad57hJZScG5O0W2oKEA==", "license": "MIT", "dependencies": { "temporal-spec": "1.0.1", @@ -1571,9 +1571,9 @@ } }, "node_modules/zod": { - "version": "4.6.5", - "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/zod/-/zod-4.6.5.tgz", - "integrity": "sha512-v5l/aFXZQeai4awLbOpSoHecE9UiMrnfx75tEXLjNonXVARxQ5mOeipTjROUchszUNCqnE+hqAMujRsRHsut2Q==", + "version": "4.6.7", + "resolved": "https://pkgs.dev.azure.com/azure-sdk/public/_packaging/azure-sdk-for-js/npm/registry/zod/-/zod-4.6.7.tgz", + "integrity": "sha512-g8W2D2kU6a8untc053fX1uVBKzM7yqAxW/3zwk83+6RyF2+SKOuV+c0wBDhUwzV1PaGapmZH+rmcUzPf+3CGwg==", "dev": true, "license": "MIT", "funding": { diff --git a/eng/emitter-package.json b/eng/emitter-package.json index 8da421becdd0b..2421faeed67e9 100644 --- a/eng/emitter-package.json +++ b/eng/emitter-package.json @@ -1,10 +1,10 @@ { "main": "dist/src/index.js", "dependencies": { - "@azure-tools/typespec-java": "0.48.1" + "@azure-tools/typespec-java": "0.48.3" }, "devDependencies": { - "@azure-tools/typespec-autorest": "0.73.0", + "@azure-tools/typespec-autorest": "0.73.1", "@azure-tools/typespec-azure-core": "0.73.0", "@azure-tools/typespec-azure-resource-manager": "0.73.0", "@azure-tools/typespec-azure-rulesets": "0.73.0", diff --git a/sdk/ai/azure-ai-agents/customizations/src/main/java/AgentsCustomizations.java b/sdk/ai/azure-ai-agents/customizations/src/main/java/AgentsCustomizations.java index 4f39c023f045e..d95b7fe39e88e 100644 --- a/sdk/ai/azure-ai-agents/customizations/src/main/java/AgentsCustomizations.java +++ b/sdk/ai/azure-ai-agents/customizations/src/main/java/AgentsCustomizations.java @@ -37,6 +37,7 @@ public void customize(LibraryCustomization libraryCustomization, Logger logger) renameImageGenToolSize(libraryCustomization, logger); modifyPollingStrategies(libraryCustomization, logger); customizeOptimizationPollingStrategies(libraryCustomization, logger); + stopPagingWhenHasMoreIsFalse(libraryCustomization, logger); internalizeUnusedVoiceAgentFunctionToolType(libraryCustomization, logger); protectPolymorphicBaseConstructors(libraryCustomization); makeRealtimeMessageDiscriminatorsFinal(libraryCustomization); @@ -45,6 +46,34 @@ public void customize(LibraryCustomization libraryCustomization, Logger logger) annotateBetaFields(libraryCustomization, loadBetaAnnotations(logger), logger); } + private void stopPagingWhenHasMoreIsFalse(LibraryCustomization customization, Logger logger) { + int[] customizedMethods = new int[1]; + customization.getPackage("com.azure.ai.agents.implementation").listClasses().forEach(classCustomization -> + classCustomization.customizeAst(ast -> ast.getClassByName(classCustomization.getClassName()) + .ifPresent(clazz -> clazz.getMethodsByName("getNextLink").forEach(method -> { + method.setBody(StaticJavaParser.parseBlock("{\n" + + " try {\n" + + " Object value = binaryData.toObject(Map.class);\n" + + " if (Boolean.FALSE.equals(((Map) value).get(\"has_more\"))) {\n" + + " return null;\n" + + " }\n" + + " for (String segment : path) {\n" + + " value = ((Map) value).get(segment);\n" + + " }\n" + + " return (String) value;\n" + + " } catch (RuntimeException e) {\n" + + " return null;\n" + + " }\n" + + "}")); + customizedMethods[0]++; + })))); + + if (customizedMethods[0] == 0) { + throw new IllegalStateException("No generated getNextLink methods were found."); + } + logger.info("Customized {} paging continuation methods to honor has_more.", customizedMethods[0]); + } + private static final String MODELS_PACKAGE = "com.azure.ai.agents.models"; private static final String UNION_MARKER = "AI Tooling: union type"; diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/AgentsAsyncClient.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/AgentsAsyncClient.java index dc725a93db444..746b9d3e10f82 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/AgentsAsyncClient.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/AgentsAsyncClient.java @@ -525,7 +525,7 @@ public Mono getAgent(String agentName) { public PagedFlux listAgents() { // Generated convenience method for listAgents RequestOptions requestOptions = new RequestOptions(); - PagedFlux pagedFluxResponse = listAgents(requestOptions); + PagedFlux pagedFluxResponse = serviceClient.listAgentsAsync(null, requestOptions); return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { Flux> flux; if (pageSizeParam == null) { @@ -566,7 +566,7 @@ public PagedFlux listAgents() { public PagedFlux listAgentVersions(String agentName) { // Generated convenience method for listAgentVersions RequestOptions requestOptions = new RequestOptions(); - PagedFlux pagedFluxResponse = listAgentVersions(agentName, requestOptions); + PagedFlux pagedFluxResponse = serviceClient.listAgentVersionsAsync(null, agentName, requestOptions); return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { Flux> flux; if (pageSizeParam == null) { @@ -1724,73 +1724,6 @@ public Mono getAgentVersionDetails(String agentName, String .map(protocolMethodData -> protocolMethodData.toObject(AgentVersionDetails.class)); } - /** - * List agents - * - * Returns a paged collection of agent resources. - * - * @param kind Filter agents by kind. If not provided, all agents are returned. - * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the - * default is 20. - * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` - * for descending order. - * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include after=obj_foo in order to fetch the next page of the list. - * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include before=obj_foo in order to fetch the previous page of the list. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAgents(AgentKind kind, Integer limit, PageOrder order, String after, - String before) { - // Generated convenience method for listAgents - RequestOptions requestOptions = new RequestOptions(); - if (kind != null) { - requestOptions.addQueryParam("kind", kind.toString(), false); - } - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - PagedFlux pagedFluxResponse = listAgents(requestOptions); - return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { - Flux> flux; - if (pageSizeParam == null) { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage().take(1) - : pagedFluxResponse.byPage(continuationTokenParam).take(1); - } else { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage(pageSizeParam).take(1) - : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); - } - return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), - pagedResponse.getStatusCode(), pagedResponse.getHeaders(), - pagedResponse.getValue() - .stream() - .map(protocolMethodData -> protocolMethodData.toObject(AgentDetails.class)) - .collect(Collectors.toList()), - pagedResponse.getContinuationToken(), null)); - }); - } - /** * List agents * @@ -2071,7 +2004,7 @@ public PagedFlux listAgentConversations(RequestOptions requestOption public PagedFlux listAgentConversations() { // Generated convenience method for listAgentConversations RequestOptions requestOptions = new RequestOptions(); - PagedFlux pagedFluxResponse = listAgentConversations(requestOptions); + PagedFlux pagedFluxResponse = serviceClient.listAgentConversationsAsync(null, requestOptions); return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { Flux> flux; if (pageSizeParam == null) { @@ -2391,9 +2324,6 @@ public PagedFlux listAgentConversations(Integer limit, PageOrder o if (order != null) { requestOptions.addQueryParam("order", order.toString(), false); } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } if (before != null) { requestOptions.addQueryParam("before", before, false); } @@ -2406,7 +2336,7 @@ public PagedFlux listAgentConversations(Integer limit, PageOrder o if (userIdentity != null) { requestOptions.setHeader(HttpHeaderName.fromString("x-ms-user-identity"), userIdentity); } - PagedFlux pagedFluxResponse = listAgentConversations(requestOptions); + PagedFlux pagedFluxResponse = serviceClient.listAgentConversationsAsync(after, requestOptions); return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { Flux> flux; if (pageSizeParam == null) { @@ -3813,7 +3743,7 @@ public Mono stopSession(String agentName, String sessionId) { public PagedFlux listSessions(String agentName) { // Generated convenience method for listSessions RequestOptions requestOptions = new RequestOptions(); - PagedFlux pagedFluxResponse = listSessions(agentName, requestOptions); + PagedFlux pagedFluxResponse = serviceClient.listSessionsAsync(null, agentName, requestOptions); return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { Flux> flux; if (pageSizeParam == null) { @@ -3912,7 +3842,8 @@ public Mono downloadSessionFile(String agentName, String sessionId, public PagedFlux listSessionFiles(String agentName, String sessionId) { // Generated convenience method for listSessionFiles RequestOptions requestOptions = new RequestOptions(); - PagedFlux pagedFluxResponse = listSessionFiles(agentName, sessionId, requestOptions); + PagedFlux pagedFluxResponse + = serviceClient.listSessionFilesAsync(null, agentName, sessionId, requestOptions); return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { Flux> flux; if (pageSizeParam == null) { @@ -4114,144 +4045,6 @@ public Mono createSession(String agentName, VersionIndicat .map(protocolMethodData -> protocolMethodData.toObject(AgentSessionResource.class)); } - /** - * List sessions for an agent - * - * Returns a paged collection of sessions associated with the specified agent endpoint. - * - * @param agentName The name of the agent. - * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the - * default is 20. - * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` - * for descending order. - * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include after=obj_foo in order to fetch the next page of the list. - * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include before=obj_foo in order to fetch the previous page of the list. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listSessions(String agentName, Integer limit, PageOrder order, String after, - String before) { - // Generated convenience method for listSessions - RequestOptions requestOptions = new RequestOptions(); - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - PagedFlux pagedFluxResponse = listSessions(agentName, requestOptions); - return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { - Flux> flux; - if (pageSizeParam == null) { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage().take(1) - : pagedFluxResponse.byPage(continuationTokenParam).take(1); - } else { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage(pageSizeParam).take(1) - : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); - } - return flux - .map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), - pagedResponse.getStatusCode(), pagedResponse.getHeaders(), - pagedResponse.getValue() - .stream() - .map(protocolMethodData -> protocolMethodData.toObject(AgentSessionResource.class)) - .collect(Collectors.toList()), - pagedResponse.getContinuationToken(), null)); - }); - } - - /** - * List session files - * - * Returns files and directories at the specified path in the session sandbox. - * The response includes only the immediate children of the target directory and defaults to the session home - * directory when no path is supplied. - * - * @param agentName The name of the agent. - * @param sessionId The session ID. - * @param path The directory path to list, relative to the session home directory. Defaults to the home directory if - * not provided. - * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the - * default is 20. - * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` - * for descending order. - * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include after=obj_foo in order to fetch the next page of the list. - * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include before=obj_foo in order to fetch the previous page of the list. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the paginated response with {@link PagedFlux}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listSessionFiles(String agentName, String sessionId, String path, - Integer limit, PageOrder order, String after, String before) { - // Generated convenience method for listSessionFiles - RequestOptions requestOptions = new RequestOptions(); - if (path != null) { - requestOptions.addQueryParam("path", path, false); - } - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - PagedFlux pagedFluxResponse = listSessionFiles(agentName, sessionId, requestOptions); - return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { - Flux> flux; - if (pageSizeParam == null) { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage().take(1) - : pagedFluxResponse.byPage(continuationTokenParam).take(1); - } else { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage(pageSizeParam).take(1) - : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); - } - return flux - .map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), - pagedResponse.getStatusCode(), pagedResponse.getHeaders(), - pagedResponse.getValue() - .stream() - .map(protocolMethodData -> protocolMethodData.toObject(SessionDirectoryEntry.class)) - .collect(Collectors.toList()), - pagedResponse.getContinuationToken(), null)); - }); - } - /** * Delete a session file * @@ -4283,124 +4076,54 @@ public Mono deleteSessionFile(String agentName, String sessionId, String p } /** - * List agent versions + * Publish an agent to Microsoft 365 * - * Returns a paged collection of versions for the specified agent. - * - * @param agentName The name of the agent to retrieve versions for. - * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the - * default is 20. - * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` - * for descending order. - * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include after=obj_foo in order to fetch the next page of the list. - * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include before=obj_foo in order to fetch the previous page of the list. - * @param includeDrafts (Preview) Whether to include draft versions in the listing. The service defaults to `false` - * if a value is not specified by the caller (only non-draft versions are returned). - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAgentVersions(String agentName, Integer limit, PageOrder order, - String after, String before, Boolean includeDrafts) { - // Generated convenience method for listAgentVersions - RequestOptions requestOptions = new RequestOptions(); - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - if (includeDrafts != null) { - requestOptions.addQueryParam("include_drafts", String.valueOf(includeDrafts), false); - } - PagedFlux pagedFluxResponse = listAgentVersions(agentName, requestOptions); - return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { - Flux> flux; - if (pageSizeParam == null) { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage().take(1) - : pagedFluxResponse.byPage(continuationTokenParam).take(1); - } else { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage(pageSizeParam).take(1) - : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); - } - return flux - .map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), - pagedResponse.getStatusCode(), pagedResponse.getHeaders(), - pagedResponse.getValue() - .stream() - .map(protocolMethodData -> protocolMethodData.toObject(AgentVersionDetails.class)) - .collect(Collectors.toList()), - pagedResponse.getContinuationToken(), null)); - }); - } - - /** - * Publish an agent to Microsoft 365 - * - * Publishes a Foundry agent to Microsoft 365 / Microsoft Teams and returns the published title and - * Teams app ids. - *

Request Body Schema

- * - *
-     * {@code
-     * {
-     *     agentDisplayName: String (Optional)
-     *     botServiceArmId: String (Optional)
-     *     publishAsAutopilot: Boolean (Optional)
-     *     accessBoundaries (Optional): [
-     *         String(read.1on1.developers/read.1on1.manager/read.1on1.allowlisted/read.1on1.tenant/write.1on1.developers/write.1on1.manager/write.1on1.allowlisted/write.1on1.tenant/read.group.developers/read.group.allowlisted/read.group.manager-invited/read.group.manager-present/read.group.tenant/write.group.developers/write.group.allowlisted/write.group.manager-invited/write.group.manager-present/write.group.tenant) (Optional)
-     *     ]
-     *     optionalPermissionScopes (Optional): [
-     *          (Optional){
-     *             resourceAppId: String (Required)
-     *             scopes (Required): [
-     *                 String (Required)
-     *             ]
-     *         }
-     *     ]
-     *     publishScope: String(Personal/Shared/Tenant) (Required)
-     *     canRespondWithoutMention: Boolean (Optional)
-     *     appVersion: String (Optional)
-     *     shortDescription: String (Optional)
-     *     fullDescription: String (Optional)
-     *     developerName: String (Optional)
-     *     developerWebsiteUrl: String (Optional)
-     *     privacyUrl: String (Optional)
-     *     termsOfUseUrl: String (Optional)
-     *     colorIconBase64: String (Optional)
-     *     outlineIconBase64: String (Optional)
-     * }
-     * }
-     * 
- * - *

Response Body Schema

- * - *
-     * {@code
-     * {
-     *     titleId: String (Optional)
-     *     teamsAppId: String (Optional)
-     * }
-     * }
-     * 
+ * Publishes a Foundry agent to Microsoft 365 / Microsoft Teams and returns the published title and + * Teams app ids. + *

Request Body Schema

+ * + *
+     * {@code
+     * {
+     *     agentDisplayName: String (Optional)
+     *     botServiceArmId: String (Optional)
+     *     publishAsAutopilot: Boolean (Optional)
+     *     accessBoundaries (Optional): [
+     *         String(read.1on1.developers/read.1on1.manager/read.1on1.allowlisted/read.1on1.tenant/write.1on1.developers/write.1on1.manager/write.1on1.allowlisted/write.1on1.tenant/read.group.developers/read.group.allowlisted/read.group.manager-invited/read.group.manager-present/read.group.tenant/write.group.developers/write.group.allowlisted/write.group.manager-invited/write.group.manager-present/write.group.tenant) (Optional)
+     *     ]
+     *     optionalPermissionScopes (Optional): [
+     *          (Optional){
+     *             resourceAppId: String (Required)
+     *             scopes (Required): [
+     *                 String (Required)
+     *             ]
+     *         }
+     *     ]
+     *     publishScope: String(Personal/Shared/Tenant) (Required)
+     *     canRespondWithoutMention: Boolean (Optional)
+     *     appVersion: String (Optional)
+     *     shortDescription: String (Optional)
+     *     fullDescription: String (Optional)
+     *     developerName: String (Optional)
+     *     developerWebsiteUrl: String (Optional)
+     *     privacyUrl: String (Optional)
+     *     termsOfUseUrl: String (Optional)
+     *     colorIconBase64: String (Optional)
+     *     outlineIconBase64: String (Optional)
+     * }
+     * }
+     * 
+ * + *

Response Body Schema

+ * + *
+     * {@code
+     * {
+     *     titleId: String (Optional)
+     *     teamsAppId: String (Optional)
+     * }
+     * }
+     * 
* * @param agentName The name of the agent to publish. * @param publishAgentToMicrosoft365Request The publishAgentToMicrosoft365Request parameter. @@ -5717,78 +5440,6 @@ public Mono getOptimizationJob(String jobId) { .map(protocolMethodData -> protocolMethodData.toObject(AgentOptimizationJob.class)); } - /** - * List agent optimization jobs - * - * Lists optimization jobs with cursor pagination and optional status or agent name filters. - * - * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the - * default is 20. - * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` - * for descending order. - * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include after=obj_foo in order to fetch the next page of the list. - * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include before=obj_foo in order to fetch the previous page of the list. - * @param status Filter to jobs in this lifecycle state. - * @param agentName Filter to jobs targeting this agent name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listOptimizationJobs(Integer limit, PageOrder order, String after, - String before, JobStatus status, String agentName) { - // Generated convenience method for listOptimizationJobs - RequestOptions requestOptions = new RequestOptions(); - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - if (status != null) { - requestOptions.addQueryParam("status", status.toString(), false); - } - if (agentName != null) { - requestOptions.addQueryParam("agent_name", agentName, false); - } - PagedFlux pagedFluxResponse = listOptimizationJobs(requestOptions); - return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { - Flux> flux; - if (pageSizeParam == null) { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage().take(1) - : pagedFluxResponse.byPage(continuationTokenParam).take(1); - } else { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage(pageSizeParam).take(1) - : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); - } - return flux - .map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), - pagedResponse.getStatusCode(), pagedResponse.getHeaders(), - pagedResponse.getValue() - .stream() - .map(protocolMethodData -> protocolMethodData.toObject(AgentOptimizationJob.class)) - .collect(Collectors.toList()), - pagedResponse.getContinuationToken(), null)); - }); - } - /** * List agent optimization jobs * @@ -5806,7 +5457,7 @@ public PagedFlux listOptimizationJobs(Integer limit, PageO public PagedFlux listOptimizationJobs() { // Generated convenience method for listOptimizationJobs RequestOptions requestOptions = new RequestOptions(); - PagedFlux pagedFluxResponse = listOptimizationJobs(requestOptions); + PagedFlux pagedFluxResponse = serviceClient.listOptimizationJobsAsync(null, requestOptions); return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { Flux> flux; if (pageSizeParam == null) { @@ -6218,76 +5869,6 @@ public Mono estimateOptimizationJob(AgentOptimi .map(protocolMethodData -> protocolMethodData.toObject(AgentOptimizationEstimateResult.class)); } - /** - * List candidates for an agent optimization job - * - * Lists candidates for the given optimization job with cursor pagination, including the original baseline and - * generated candidates. Each `output.mutations` item identifies a changed attribute by `type`; mutation `value` - * fields are omitted unless the client passes `expand=mutations`. - * - * @param jobId The ID of the parent optimization job. - * @param expand Comma-separated list of expand keys. Pass `mutations` to populate mutation `value` fields; omit to - * receive mutation items containing only `type`. Additional expand keys may be added in future previews. - * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the - * default is 20. - * @param order Sort order by the candidate `started_at` timestamp. - * @param after Candidate-ID cursor identifying the last item from the previous page. - * @param before Candidate-ID cursor identifying the first item from the following page. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listOptimizationCandidates(String jobId, - List expand, Integer limit, PageOrder order, String after, String before) { - // Generated convenience method for listOptimizationCandidates - RequestOptions requestOptions = new RequestOptions(); - if (expand != null) { - requestOptions.addQueryParam("expand", - expand.stream() - .map(paramItemValue -> Objects.toString(paramItemValue, "")) - .collect(Collectors.joining(",")), - false); - } - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - PagedFlux pagedFluxResponse = listOptimizationCandidates(jobId, requestOptions); - return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { - Flux> flux; - if (pageSizeParam == null) { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage().take(1) - : pagedFluxResponse.byPage(continuationTokenParam).take(1); - } else { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage(pageSizeParam).take(1) - : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); - } - return flux.map(pagedResponse -> new PagedResponseBase( - pagedResponse.getRequest(), pagedResponse.getStatusCode(), pagedResponse.getHeaders(), - pagedResponse.getValue() - .stream() - .map(protocolMethodData -> protocolMethodData.toObject(AgentOptimizationCandidate.class)) - .collect(Collectors.toList()), - pagedResponse.getContinuationToken(), null)); - }); - } - /** * List candidates for an agent optimization job * @@ -6309,7 +5890,8 @@ public PagedFlux listOptimizationCandidates(String j public PagedFlux listOptimizationCandidates(String jobId) { // Generated convenience method for listOptimizationCandidates RequestOptions requestOptions = new RequestOptions(); - PagedFlux pagedFluxResponse = listOptimizationCandidates(jobId, requestOptions); + PagedFlux pagedFluxResponse + = serviceClient.listOptimizationCandidatesAsync(null, jobId, requestOptions); return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { Flux> flux; if (pageSizeParam == null) { @@ -6382,4 +5964,406 @@ public Mono promoteOptimizationCandidate(String jobI return promoteOptimizationCandidateWithResponse(jobId, candidateId, requestOptions).flatMap(FluxUtil::toMono) .map(protocolMethodData -> protocolMethodData.toObject(AgentOptimizationCandidate.class)); } + + /** + * List agents + * + * Returns a paged collection of agent resources. + * + * @param kind Filter agents by kind. If not provided, all agents are returned. + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAgents(AgentKind kind, Integer limit, PageOrder order, String after, + String before) { + // Generated convenience method for listAgents + RequestOptions requestOptions = new RequestOptions(); + if (kind != null) { + requestOptions.addQueryParam("kind", kind.toString(), false); + } + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + PagedFlux pagedFluxResponse = serviceClient.listAgentsAsync(after, requestOptions); + return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { + Flux> flux; + if (pageSizeParam == null) { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage().take(1) + : pagedFluxResponse.byPage(continuationTokenParam).take(1); + } else { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage(pageSizeParam).take(1) + : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); + } + return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), + pagedResponse.getStatusCode(), pagedResponse.getHeaders(), + pagedResponse.getValue() + .stream() + .map(protocolMethodData -> protocolMethodData.toObject(AgentDetails.class)) + .collect(Collectors.toList()), + pagedResponse.getContinuationToken(), null)); + }); + } + + /** + * List agent versions + * + * Returns a paged collection of versions for the specified agent. + * + * @param agentName The name of the agent to retrieve versions for. + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @param includeDrafts (Preview) Whether to include draft versions in the listing. The service defaults to `false` + * if a value is not specified by the caller (only non-draft versions are returned). + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAgentVersions(String agentName, Integer limit, PageOrder order, + String after, String before, Boolean includeDrafts) { + // Generated convenience method for listAgentVersions + RequestOptions requestOptions = new RequestOptions(); + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + if (includeDrafts != null) { + requestOptions.addQueryParam("include_drafts", String.valueOf(includeDrafts), false); + } + PagedFlux pagedFluxResponse + = serviceClient.listAgentVersionsAsync(after, agentName, requestOptions); + return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { + Flux> flux; + if (pageSizeParam == null) { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage().take(1) + : pagedFluxResponse.byPage(continuationTokenParam).take(1); + } else { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage(pageSizeParam).take(1) + : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); + } + return flux + .map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), + pagedResponse.getStatusCode(), pagedResponse.getHeaders(), + pagedResponse.getValue() + .stream() + .map(protocolMethodData -> protocolMethodData.toObject(AgentVersionDetails.class)) + .collect(Collectors.toList()), + pagedResponse.getContinuationToken(), null)); + }); + } + + /** + * List sessions for an agent + * + * Returns a paged collection of sessions associated with the specified agent endpoint. + * + * @param agentName The name of the agent. + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listSessions(String agentName, Integer limit, PageOrder order, String after, + String before) { + // Generated convenience method for listSessions + RequestOptions requestOptions = new RequestOptions(); + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + PagedFlux pagedFluxResponse = serviceClient.listSessionsAsync(after, agentName, requestOptions); + return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { + Flux> flux; + if (pageSizeParam == null) { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage().take(1) + : pagedFluxResponse.byPage(continuationTokenParam).take(1); + } else { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage(pageSizeParam).take(1) + : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); + } + return flux + .map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), + pagedResponse.getStatusCode(), pagedResponse.getHeaders(), + pagedResponse.getValue() + .stream() + .map(protocolMethodData -> protocolMethodData.toObject(AgentSessionResource.class)) + .collect(Collectors.toList()), + pagedResponse.getContinuationToken(), null)); + }); + } + + /** + * List session files + * + * Returns files and directories at the specified path in the session sandbox. + * The response includes only the immediate children of the target directory and defaults to the session home + * directory when no path is supplied. + * + * @param agentName The name of the agent. + * @param sessionId The session ID. + * @param path The directory path to list, relative to the session home directory. Defaults to the home directory if + * not provided. + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the paginated response with {@link PagedFlux}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listSessionFiles(String agentName, String sessionId, String path, + Integer limit, PageOrder order, String after, String before) { + // Generated convenience method for listSessionFiles + RequestOptions requestOptions = new RequestOptions(); + if (path != null) { + requestOptions.addQueryParam("path", path, false); + } + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + PagedFlux pagedFluxResponse + = serviceClient.listSessionFilesAsync(after, agentName, sessionId, requestOptions); + return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { + Flux> flux; + if (pageSizeParam == null) { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage().take(1) + : pagedFluxResponse.byPage(continuationTokenParam).take(1); + } else { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage(pageSizeParam).take(1) + : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); + } + return flux + .map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), + pagedResponse.getStatusCode(), pagedResponse.getHeaders(), + pagedResponse.getValue() + .stream() + .map(protocolMethodData -> protocolMethodData.toObject(SessionDirectoryEntry.class)) + .collect(Collectors.toList()), + pagedResponse.getContinuationToken(), null)); + }); + } + + /** + * List agent optimization jobs + * + * Lists optimization jobs with cursor pagination and optional status or agent name filters. + * + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @param status Filter to jobs in this lifecycle state. + * @param agentName Filter to jobs targeting this agent name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listOptimizationJobs(Integer limit, PageOrder order, String after, + String before, JobStatus status, String agentName) { + // Generated convenience method for listOptimizationJobs + RequestOptions requestOptions = new RequestOptions(); + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + if (status != null) { + requestOptions.addQueryParam("status", status.toString(), false); + } + if (agentName != null) { + requestOptions.addQueryParam("agent_name", agentName, false); + } + PagedFlux pagedFluxResponse = serviceClient.listOptimizationJobsAsync(after, requestOptions); + return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { + Flux> flux; + if (pageSizeParam == null) { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage().take(1) + : pagedFluxResponse.byPage(continuationTokenParam).take(1); + } else { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage(pageSizeParam).take(1) + : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); + } + return flux + .map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), + pagedResponse.getStatusCode(), pagedResponse.getHeaders(), + pagedResponse.getValue() + .stream() + .map(protocolMethodData -> protocolMethodData.toObject(AgentOptimizationJob.class)) + .collect(Collectors.toList()), + pagedResponse.getContinuationToken(), null)); + }); + } + + /** + * List candidates for an agent optimization job + * + * Lists candidates for the given optimization job with cursor pagination, including the original baseline and + * generated candidates. Each `output.mutations` item identifies a changed attribute by `type`; mutation `value` + * fields are omitted unless the client passes `expand=mutations`. + * + * @param jobId The ID of the parent optimization job. + * @param expand Comma-separated list of expand keys. Pass `mutations` to populate mutation `value` fields; omit to + * receive mutation items containing only `type`. Additional expand keys may be added in future previews. + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the candidate `started_at` timestamp. + * @param after Candidate-ID cursor identifying the last item from the previous page. + * @param before Candidate-ID cursor identifying the first item from the following page. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listOptimizationCandidates(String jobId, + List expand, Integer limit, PageOrder order, String after, String before) { + // Generated convenience method for listOptimizationCandidates + RequestOptions requestOptions = new RequestOptions(); + if (expand != null) { + requestOptions.addQueryParam("expand", + expand.stream() + .map(paramItemValue -> Objects.toString(paramItemValue, "")) + .collect(Collectors.joining(",")), + false); + } + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + PagedFlux pagedFluxResponse + = serviceClient.listOptimizationCandidatesAsync(after, jobId, requestOptions); + return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { + Flux> flux; + if (pageSizeParam == null) { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage().take(1) + : pagedFluxResponse.byPage(continuationTokenParam).take(1); + } else { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage(pageSizeParam).take(1) + : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); + } + return flux.map(pagedResponse -> new PagedResponseBase( + pagedResponse.getRequest(), pagedResponse.getStatusCode(), pagedResponse.getHeaders(), + pagedResponse.getValue() + .stream() + .map(protocolMethodData -> protocolMethodData.toObject(AgentOptimizationCandidate.class)) + .collect(Collectors.toList()), + pagedResponse.getContinuationToken(), null)); + }); + } } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/AgentsClient.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/AgentsClient.java index bf66e9e5f533b..2e6ef0799592d 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/AgentsClient.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/AgentsClient.java @@ -518,7 +518,7 @@ public AgentDetails getAgent(String agentName) { public PagedIterable listAgents() { // Generated convenience method for listAgents RequestOptions requestOptions = new RequestOptions(); - return serviceClient.listAgents(requestOptions) + return serviceClient.listAgents(null, requestOptions) .mapPage(bodyItemValue -> bodyItemValue.toObject(AgentDetails.class)); } @@ -541,7 +541,7 @@ public PagedIterable listAgents() { public PagedIterable listAgentVersions(String agentName) { // Generated convenience method for listAgentVersions RequestOptions requestOptions = new RequestOptions(); - return serviceClient.listAgentVersions(agentName, requestOptions) + return serviceClient.listAgentVersions(null, agentName, requestOptions) .mapPage(bodyItemValue -> bodyItemValue.toObject(AgentVersionDetails.class)); } @@ -1670,55 +1670,6 @@ public AgentVersionDetails getAgentVersionDetails(String agentName, String agent .toObject(AgentVersionDetails.class); } - /** - * List agents - * - * Returns a paged collection of agent resources. - * - * @param kind Filter agents by kind. If not provided, all agents are returned. - * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the - * default is 20. - * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` - * for descending order. - * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include after=obj_foo in order to fetch the next page of the list. - * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include before=obj_foo in order to fetch the previous page of the list. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listAgents(AgentKind kind, Integer limit, PageOrder order, String after, - String before) { - // Generated convenience method for listAgents - RequestOptions requestOptions = new RequestOptions(); - if (kind != null) { - requestOptions.addQueryParam("kind", kind.toString(), false); - } - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - return serviceClient.listAgents(requestOptions) - .mapPage(bodyItemValue -> bodyItemValue.toObject(AgentDetails.class)); - } - /** * List agents * @@ -1998,7 +1949,7 @@ public PagedIterable listAgentConversations(RequestOptions requestOp public PagedIterable listAgentConversations() { // Generated convenience method for listAgentConversations RequestOptions requestOptions = new RequestOptions(); - return serviceClient.listAgentConversations(requestOptions) + return serviceClient.listAgentConversations(null, requestOptions) .mapPage(bodyItemValue -> bodyItemValue.toObject(Conversation.class)); } @@ -2292,9 +2243,6 @@ public PagedIterable listAgentConversations(Integer limit, PageOrd if (order != null) { requestOptions.addQueryParam("order", order.toString(), false); } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } if (before != null) { requestOptions.addQueryParam("before", before, false); } @@ -2307,7 +2255,7 @@ public PagedIterable listAgentConversations(Integer limit, PageOrd if (userIdentity != null) { requestOptions.setHeader(HttpHeaderName.fromString("x-ms-user-identity"), userIdentity); } - return serviceClient.listAgentConversations(requestOptions) + return serviceClient.listAgentConversations(after, requestOptions) .mapPage(bodyItemValue -> bodyItemValue.toObject(Conversation.class)); } @@ -3678,7 +3626,7 @@ public void stopSession(String agentName, String sessionId) { public PagedIterable listSessions(String agentName) { // Generated convenience method for listSessions RequestOptions requestOptions = new RequestOptions(); - return serviceClient.listSessions(agentName, requestOptions) + return serviceClient.listSessions(null, agentName, requestOptions) .mapPage(bodyItemValue -> bodyItemValue.toObject(AgentSessionResource.class)); } @@ -3757,7 +3705,7 @@ public BinaryData downloadSessionFile(String agentName, String sessionId, String public PagedIterable listSessionFiles(String agentName, String sessionId) { // Generated convenience method for listSessionFiles RequestOptions requestOptions = new RequestOptions(); - return serviceClient.listSessionFiles(agentName, sessionId, requestOptions) + return serviceClient.listSessionFiles(null, agentName, sessionId, requestOptions) .mapPage(bodyItemValue -> bodyItemValue.toObject(SessionDirectoryEntry.class)); } @@ -3937,106 +3885,6 @@ public AgentSessionResource createSession(String agentName, VersionIndicator ver .toObject(AgentSessionResource.class); } - /** - * List sessions for an agent - * - * Returns a paged collection of sessions associated with the specified agent endpoint. - * - * @param agentName The name of the agent. - * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the - * default is 20. - * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` - * for descending order. - * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include after=obj_foo in order to fetch the next page of the list. - * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include before=obj_foo in order to fetch the previous page of the list. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listSessions(String agentName, Integer limit, PageOrder order, - String after, String before) { - // Generated convenience method for listSessions - RequestOptions requestOptions = new RequestOptions(); - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - return serviceClient.listSessions(agentName, requestOptions) - .mapPage(bodyItemValue -> bodyItemValue.toObject(AgentSessionResource.class)); - } - - /** - * List session files - * - * Returns files and directories at the specified path in the session sandbox. - * The response includes only the immediate children of the target directory and defaults to the session home - * directory when no path is supplied. - * - * @param agentName The name of the agent. - * @param sessionId The session ID. - * @param path The directory path to list, relative to the session home directory. Defaults to the home directory if - * not provided. - * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the - * default is 20. - * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` - * for descending order. - * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include after=obj_foo in order to fetch the next page of the list. - * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include before=obj_foo in order to fetch the previous page of the list. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the paginated response with {@link PagedIterable}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listSessionFiles(String agentName, String sessionId, String path, - Integer limit, PageOrder order, String after, String before) { - // Generated convenience method for listSessionFiles - RequestOptions requestOptions = new RequestOptions(); - if (path != null) { - requestOptions.addQueryParam("path", path, false); - } - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - return serviceClient.listSessionFiles(agentName, sessionId, requestOptions) - .mapPage(bodyItemValue -> bodyItemValue.toObject(SessionDirectoryEntry.class)); - } - /** * Delete a session file * @@ -4066,57 +3914,6 @@ public void deleteSessionFile(String agentName, String sessionId, String path, B deleteSessionFileWithResponse(agentName, sessionId, path, requestOptions).getValue(); } - /** - * List agent versions - * - * Returns a paged collection of versions for the specified agent. - * - * @param agentName The name of the agent to retrieve versions for. - * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the - * default is 20. - * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` - * for descending order. - * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include after=obj_foo in order to fetch the next page of the list. - * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include before=obj_foo in order to fetch the previous page of the list. - * @param includeDrafts (Preview) Whether to include draft versions in the listing. The service defaults to `false` - * if a value is not specified by the caller (only non-draft versions are returned). - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listAgentVersions(String agentName, Integer limit, PageOrder order, - String after, String before, Boolean includeDrafts) { - // Generated convenience method for listAgentVersions - RequestOptions requestOptions = new RequestOptions(); - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - if (includeDrafts != null) { - requestOptions.addQueryParam("include_drafts", String.valueOf(includeDrafts), false); - } - return serviceClient.listAgentVersions(agentName, requestOptions) - .mapPage(bodyItemValue -> bodyItemValue.toObject(AgentVersionDetails.class)); - } - /** * Publish an agent to Microsoft 365 * @@ -5478,59 +5275,6 @@ public AgentOptimizationJob getOptimizationJob(String jobId) { return getOptimizationJobWithResponse(jobId, requestOptions).getValue().toObject(AgentOptimizationJob.class); } - /** - * List agent optimization jobs - * - * Lists optimization jobs with cursor pagination and optional status or agent name filters. - * - * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the - * default is 20. - * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` - * for descending order. - * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include after=obj_foo in order to fetch the next page of the list. - * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include before=obj_foo in order to fetch the previous page of the list. - * @param status Filter to jobs in this lifecycle state. - * @param agentName Filter to jobs targeting this agent name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listOptimizationJobs(Integer limit, PageOrder order, String after, - String before, JobStatus status, String agentName) { - // Generated convenience method for listOptimizationJobs - RequestOptions requestOptions = new RequestOptions(); - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - if (status != null) { - requestOptions.addQueryParam("status", status.toString(), false); - } - if (agentName != null) { - requestOptions.addQueryParam("agent_name", agentName, false); - } - return serviceClient.listOptimizationJobs(requestOptions) - .mapPage(bodyItemValue -> bodyItemValue.toObject(AgentOptimizationJob.class)); - } - /** * List agent optimization jobs * @@ -5548,7 +5292,7 @@ public PagedIterable listOptimizationJobs(Integer limit, P public PagedIterable listOptimizationJobs() { // Generated convenience method for listOptimizationJobs RequestOptions requestOptions = new RequestOptions(); - return serviceClient.listOptimizationJobs(requestOptions) + return serviceClient.listOptimizationJobs(null, requestOptions) .mapPage(bodyItemValue -> bodyItemValue.toObject(AgentOptimizationJob.class)); } @@ -5943,13 +5687,6 @@ public AgentOptimizationEstimateResult estimateOptimizationJob(AgentOptimization * fields are omitted unless the client passes `expand=mutations`. * * @param jobId The ID of the parent optimization job. - * @param expand Comma-separated list of expand keys. Pass `mutations` to populate mutation `value` fields; omit to - * receive mutation items containing only `type`. Additional expand keys may be added in future previews. - * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the - * default is 20. - * @param order Sort order by the candidate `started_at` timestamp. - * @param after Candidate-ID cursor identifying the last item from the previous page. - * @param before Candidate-ID cursor identifying the first item from the following page. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -5960,16 +5697,97 @@ public AgentOptimizationEstimateResult estimateOptimizationJob(AgentOptimization */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listOptimizationCandidates(String jobId, - List expand, Integer limit, PageOrder order, String after, String before) { + public PagedIterable listOptimizationCandidates(String jobId) { // Generated convenience method for listOptimizationCandidates RequestOptions requestOptions = new RequestOptions(); - if (expand != null) { - requestOptions.addQueryParam("expand", - expand.stream() - .map(paramItemValue -> Objects.toString(paramItemValue, "")) - .collect(Collectors.joining(",")), - false); + return serviceClient.listOptimizationCandidates(null, jobId, requestOptions) + .mapPage(bodyItemValue -> bodyItemValue.toObject(AgentOptimizationCandidate.class)); + } + + /** + * Get a candidate for an agent optimization job + * + * Retrieves a single candidate. Mutation values are always included. + * + * @param jobId The ID of the parent optimization job. + * @param candidateId The candidate identifier. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a candidate for an agent optimization job + * + * Retrieves a single candidate. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public AgentOptimizationCandidate getOptimizationCandidate(String jobId, String candidateId) { + // Generated convenience method for getOptimizationCandidateWithResponse + RequestOptions requestOptions = new RequestOptions(); + return getOptimizationCandidateWithResponse(jobId, candidateId, requestOptions).getValue() + .toObject(AgentOptimizationCandidate.class); + } + + /** + * Promote a candidate for an agent optimization job + * + * Promotes a candidate to the Foundry agent stored in the parent job's target configuration. Promotion is + * unavailable when the job omitted target_configuration. Prompt-agent promotion creates a new agent version. + * Hosted-agent promotion currently records promotion metadata without deploying a new hosted-agent version. + * + * @param jobId The ID of the parent optimization job. + * @param candidateId The candidate identifier. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return a candidate generated by an optimization job. + */ + @Generated + @ServiceMethod(returns = ReturnType.SINGLE) + public AgentOptimizationCandidate promoteOptimizationCandidate(String jobId, String candidateId) { + // Generated convenience method for promoteOptimizationCandidateWithResponse + RequestOptions requestOptions = new RequestOptions(); + return promoteOptimizationCandidateWithResponse(jobId, candidateId, requestOptions).getValue() + .toObject(AgentOptimizationCandidate.class); + } + + /** + * List agents + * + * Returns a paged collection of agent resources. + * + * @param kind Filter agents by kind. If not provided, all agents are returned. + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listAgents(AgentKind kind, Integer limit, PageOrder order, String after, + String before) { + // Generated convenience method for listAgents + RequestOptions requestOptions = new RequestOptions(); + if (kind != null) { + requestOptions.addQueryParam("kind", kind.toString(), false); } if (limit != null) { requestOptions.addQueryParam("limit", String.valueOf(limit), false); @@ -5977,24 +5795,77 @@ public PagedIterable listOptimizationCandidates(Stri if (order != null) { requestOptions.addQueryParam("order", order.toString(), false); } - if (after != null) { - requestOptions.addQueryParam("after", after, false); + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + return serviceClient.listAgents(after, requestOptions) + .mapPage(bodyItemValue -> bodyItemValue.toObject(AgentDetails.class)); + } + + /** + * List agent versions + * + * Returns a paged collection of versions for the specified agent. + * + * @param agentName The name of the agent to retrieve versions for. + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @param includeDrafts (Preview) Whether to include draft versions in the listing. The service defaults to `false` + * if a value is not specified by the caller (only non-draft versions are returned). + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listAgentVersions(String agentName, Integer limit, PageOrder order, + String after, String before, Boolean includeDrafts) { + // Generated convenience method for listAgentVersions + RequestOptions requestOptions = new RequestOptions(); + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); } if (before != null) { requestOptions.addQueryParam("before", before, false); } - return serviceClient.listOptimizationCandidates(jobId, requestOptions) - .mapPage(bodyItemValue -> bodyItemValue.toObject(AgentOptimizationCandidate.class)); + if (includeDrafts != null) { + requestOptions.addQueryParam("include_drafts", String.valueOf(includeDrafts), false); + } + return serviceClient.listAgentVersions(after, agentName, requestOptions) + .mapPage(bodyItemValue -> bodyItemValue.toObject(AgentVersionDetails.class)); } /** - * List candidates for an agent optimization job + * List sessions for an agent * - * Lists candidates for the given optimization job with cursor pagination, including the original baseline and - * generated candidates. Each `output.mutations` item identifies a changed attribute by `type`; mutation `value` - * fields are omitted unless the client passes `expand=mutations`. + * Returns a paged collection of sessions associated with the specified agent endpoint. * - * @param jobId The ID of the parent optimization job. + * @param agentName The name of the agent. + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -6005,62 +5876,170 @@ public PagedIterable listOptimizationCandidates(Stri */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listOptimizationCandidates(String jobId) { - // Generated convenience method for listOptimizationCandidates + public PagedIterable listSessions(String agentName, Integer limit, PageOrder order, + String after, String before) { + // Generated convenience method for listSessions RequestOptions requestOptions = new RequestOptions(); - return serviceClient.listOptimizationCandidates(jobId, requestOptions) - .mapPage(bodyItemValue -> bodyItemValue.toObject(AgentOptimizationCandidate.class)); + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + return serviceClient.listSessions(after, agentName, requestOptions) + .mapPage(bodyItemValue -> bodyItemValue.toObject(AgentSessionResource.class)); } /** - * Get a candidate for an agent optimization job + * List session files * - * Retrieves a single candidate. Mutation values are always included. + * Returns files and directories at the specified path in the session sandbox. + * The response includes only the immediate children of the target directory and defaults to the session home + * directory when no path is supplied. * - * @param jobId The ID of the parent optimization job. - * @param candidateId The candidate identifier. + * @param agentName The name of the agent. + * @param sessionId The session ID. + * @param path The directory path to list, relative to the session home directory. Defaults to the home directory if + * not provided. + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a candidate for an agent optimization job + * @return the paginated response with {@link PagedIterable}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listSessionFiles(String agentName, String sessionId, String path, + Integer limit, PageOrder order, String after, String before) { + // Generated convenience method for listSessionFiles + RequestOptions requestOptions = new RequestOptions(); + if (path != null) { + requestOptions.addQueryParam("path", path, false); + } + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + return serviceClient.listSessionFiles(after, agentName, sessionId, requestOptions) + .mapPage(bodyItemValue -> bodyItemValue.toObject(SessionDirectoryEntry.class)); + } + + /** + * List agent optimization jobs * - * Retrieves a single candidate. + * Lists optimization jobs with cursor pagination and optional status or agent name filters. + * + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @param status Filter to jobs in this lifecycle state. + * @param agentName Filter to jobs targeting this agent name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. */ @Generated - @ServiceMethod(returns = ReturnType.SINGLE) - public AgentOptimizationCandidate getOptimizationCandidate(String jobId, String candidateId) { - // Generated convenience method for getOptimizationCandidateWithResponse + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listOptimizationJobs(Integer limit, PageOrder order, String after, + String before, JobStatus status, String agentName) { + // Generated convenience method for listOptimizationJobs RequestOptions requestOptions = new RequestOptions(); - return getOptimizationCandidateWithResponse(jobId, candidateId, requestOptions).getValue() - .toObject(AgentOptimizationCandidate.class); + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + if (status != null) { + requestOptions.addQueryParam("status", status.toString(), false); + } + if (agentName != null) { + requestOptions.addQueryParam("agent_name", agentName, false); + } + return serviceClient.listOptimizationJobs(after, requestOptions) + .mapPage(bodyItemValue -> bodyItemValue.toObject(AgentOptimizationJob.class)); } /** - * Promote a candidate for an agent optimization job + * List candidates for an agent optimization job * - * Promotes a candidate to the Foundry agent stored in the parent job's target configuration. Promotion is - * unavailable when the job omitted target_configuration. Prompt-agent promotion creates a new agent version. - * Hosted-agent promotion currently records promotion metadata without deploying a new hosted-agent version. + * Lists candidates for the given optimization job with cursor pagination, including the original baseline and + * generated candidates. Each `output.mutations` item identifies a changed attribute by `type`; mutation `value` + * fields are omitted unless the client passes `expand=mutations`. * * @param jobId The ID of the parent optimization job. - * @param candidateId The candidate identifier. + * @param expand Comma-separated list of expand keys. Pass `mutations` to populate mutation `value` fields; omit to + * receive mutation items containing only `type`. Additional expand keys may be added in future previews. + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the candidate `started_at` timestamp. + * @param after Candidate-ID cursor identifying the last item from the previous page. + * @param before Candidate-ID cursor identifying the first item from the following page. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a candidate generated by an optimization job. + * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. */ @Generated - @ServiceMethod(returns = ReturnType.SINGLE) - public AgentOptimizationCandidate promoteOptimizationCandidate(String jobId, String candidateId) { - // Generated convenience method for promoteOptimizationCandidateWithResponse + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listOptimizationCandidates(String jobId, + List expand, Integer limit, PageOrder order, String after, String before) { + // Generated convenience method for listOptimizationCandidates RequestOptions requestOptions = new RequestOptions(); - return promoteOptimizationCandidateWithResponse(jobId, candidateId, requestOptions).getValue() - .toObject(AgentOptimizationCandidate.class); + if (expand != null) { + requestOptions.addQueryParam("expand", + expand.stream() + .map(paramItemValue -> Objects.toString(paramItemValue, "")) + .collect(Collectors.joining(",")), + false); + } + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + return serviceClient.listOptimizationCandidates(after, jobId, requestOptions) + .mapPage(bodyItemValue -> bodyItemValue.toObject(AgentOptimizationCandidate.class)); } } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaMemoryStoresAsyncClient.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaMemoryStoresAsyncClient.java index 82f0af1330e09..7bd4a603dcd48 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaMemoryStoresAsyncClient.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaMemoryStoresAsyncClient.java @@ -1255,68 +1255,6 @@ public Mono getMemoryStore(String name) { .map(protocolMethodData -> protocolMethodData.toObject(MemoryStoreDetails.class)); } - /** - * List memory stores - * - * Returns the memory stores available to the caller. - * - * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the - * default is 20. - * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` - * for descending order. - * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include after=obj_foo in order to fetch the next page of the list. - * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include before=obj_foo in order to fetch the previous page of the list. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listMemoryStores(Integer limit, PageOrder order, String after, String before) { - // Generated convenience method for listMemoryStores - RequestOptions requestOptions = new RequestOptions(); - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - PagedFlux pagedFluxResponse = listMemoryStores(requestOptions); - return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { - Flux> flux; - if (pageSizeParam == null) { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage().take(1) - : pagedFluxResponse.byPage(continuationTokenParam).take(1); - } else { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage(pageSizeParam).take(1) - : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); - } - return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), - pagedResponse.getStatusCode(), pagedResponse.getHeaders(), - pagedResponse.getValue() - .stream() - .map(protocolMethodData -> protocolMethodData.toObject(MemoryStoreDetails.class)) - .collect(Collectors.toList()), - pagedResponse.getContinuationToken(), null)); - }); - } - /** * List memory stores * @@ -1334,7 +1272,7 @@ public PagedFlux listMemoryStores(Integer limit, PageOrder o public PagedFlux listMemoryStores() { // Generated convenience method for listMemoryStores RequestOptions requestOptions = new RequestOptions(); - PagedFlux pagedFluxResponse = listMemoryStores(requestOptions); + PagedFlux pagedFluxResponse = serviceClient.listMemoryStoresAsync(null, requestOptions); return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { Flux> flux; if (pageSizeParam == null) { @@ -1648,13 +1586,11 @@ public PagedFlux listMemories(ListMemoriesOptions options) { if (order != null) { requestOptions.addQueryParam("order", order.toString(), false); } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } if (before != null) { requestOptions.addQueryParam("before", before, false); } - PagedFlux pagedFluxResponse = listMemories(name, listMemoriesRequest, requestOptions); + PagedFlux pagedFluxResponse + = serviceClient.listMemoriesAsync(after, name, listMemoriesRequest, requestOptions); return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { Flux> flux; if (pageSizeParam == null) { @@ -1675,4 +1611,63 @@ public PagedFlux listMemories(ListMemoriesOptions options) { pagedResponse.getContinuationToken(), null)); }); } + + /** + * List memory stores + * + * Returns the memory stores available to the caller. + * + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listMemoryStores(Integer limit, PageOrder order, String after, String before) { + // Generated convenience method for listMemoryStores + RequestOptions requestOptions = new RequestOptions(); + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + PagedFlux pagedFluxResponse = serviceClient.listMemoryStoresAsync(after, requestOptions); + return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { + Flux> flux; + if (pageSizeParam == null) { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage().take(1) + : pagedFluxResponse.byPage(continuationTokenParam).take(1); + } else { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage(pageSizeParam).take(1) + : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); + } + return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), + pagedResponse.getStatusCode(), pagedResponse.getHeaders(), + pagedResponse.getValue() + .stream() + .map(protocolMethodData -> protocolMethodData.toObject(MemoryStoreDetails.class)) + .collect(Collectors.toList()), + pagedResponse.getContinuationToken(), null)); + }); + } } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaMemoryStoresClient.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaMemoryStoresClient.java index 27b94cf081cb1..31c79754c7dff 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaMemoryStoresClient.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaMemoryStoresClient.java @@ -1164,51 +1164,6 @@ public MemoryStoreDetails getMemoryStore(String name) { return getMemoryStoreWithResponse(name, requestOptions).getValue().toObject(MemoryStoreDetails.class); } - /** - * List memory stores - * - * Returns the memory stores available to the caller. - * - * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the - * default is 20. - * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` - * for descending order. - * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include after=obj_foo in order to fetch the next page of the list. - * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include before=obj_foo in order to fetch the previous page of the list. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listMemoryStores(Integer limit, PageOrder order, String after, - String before) { - // Generated convenience method for listMemoryStores - RequestOptions requestOptions = new RequestOptions(); - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - return serviceClient.listMemoryStores(requestOptions) - .mapPage(bodyItemValue -> bodyItemValue.toObject(MemoryStoreDetails.class)); - } - /** * List memory stores * @@ -1226,7 +1181,7 @@ public PagedIterable listMemoryStores(Integer limit, PageOrd public PagedIterable listMemoryStores() { // Generated convenience method for listMemoryStores RequestOptions requestOptions = new RequestOptions(); - return serviceClient.listMemoryStores(requestOptions) + return serviceClient.listMemoryStores(null, requestOptions) .mapPage(bodyItemValue -> bodyItemValue.toObject(MemoryStoreDetails.class)); } @@ -1588,13 +1543,52 @@ public PagedIterable listMemories(ListMemoriesOptions options) { if (order != null) { requestOptions.addQueryParam("order", order.toString(), false); } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } if (before != null) { requestOptions.addQueryParam("before", before, false); } - return serviceClient.listMemories(name, listMemoriesRequest, requestOptions) + return serviceClient.listMemories(after, name, listMemoriesRequest, requestOptions) .mapPage(bodyItemValue -> bodyItemValue.toObject(MemoryItem.class)); } + + /** + * List memory stores + * + * Returns the memory stores available to the caller. + * + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listMemoryStores(Integer limit, PageOrder order, String after, + String before) { + // Generated convenience method for listMemoryStores + RequestOptions requestOptions = new RequestOptions(); + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + return serviceClient.listMemoryStores(after, requestOptions) + .mapPage(bodyItemValue -> bodyItemValue.toObject(MemoryStoreDetails.class)); + } } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaVoiceAgentsConversationsAsyncClient.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaVoiceAgentsConversationsAsyncClient.java index a228b9e689843..7a9d10710e2f8 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaVoiceAgentsConversationsAsyncClient.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaVoiceAgentsConversationsAsyncClient.java @@ -863,72 +863,6 @@ public Mono> downloadAgentConversationAudioWithResponse(Str requestOptions); } - /** - * List voice agent conversations - * - * Returns the conversations persisted for the specified voice agent endpoint. - * Conversations are present when the session's effective `store` setting is `true`, whether inherited from the - * agent definition or enabled by the WebSocket session override. - * - * @param agentName The name of the agent. - * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the - * default is 20. - * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` - * for descending order. - * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include after=obj_foo in order to fetch the next page of the list. - * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include before=obj_foo in order to fetch the previous page of the list. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAgentConversations(String agentName, Integer limit, PageOrder order, - String after, String before) { - // Generated convenience method for listAgentConversations - RequestOptions requestOptions = new RequestOptions(); - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - PagedFlux pagedFluxResponse = listAgentConversations(agentName, requestOptions); - return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { - Flux> flux; - if (pageSizeParam == null) { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage().take(1) - : pagedFluxResponse.byPage(continuationTokenParam).take(1); - } else { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage(pageSizeParam).take(1) - : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); - } - return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), - pagedResponse.getStatusCode(), pagedResponse.getHeaders(), - pagedResponse.getValue() - .stream() - .map(protocolMethodData -> protocolMethodData.toObject(VoiceConversation.class)) - .collect(Collectors.toList()), - pagedResponse.getContinuationToken(), null)); - }); - } - /** * List voice agent conversations * @@ -950,7 +884,8 @@ public PagedFlux listAgentConversations(String agentName, Int public PagedFlux listAgentConversations(String agentName) { // Generated convenience method for listAgentConversations RequestOptions requestOptions = new RequestOptions(); - PagedFlux pagedFluxResponse = listAgentConversations(agentName, requestOptions); + PagedFlux pagedFluxResponse + = serviceClient.listAgentConversationsAsync(null, agentName, requestOptions); return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { Flux> flux; if (pageSizeParam == null) { @@ -1025,74 +960,6 @@ public Mono deleteAgentConversation(String agentName, String conversationI return deleteAgentConversationWithResponse(agentName, conversationId, requestOptions).flatMap(FluxUtil::toMono); } - /** - * List responses in a voice agent conversation - * - * Returns a paged collection of the responses (model inference turns) recorded for the specified - * conversation. The per-response `output` projection may be omitted here; use the response-items route - * for the canonical paged output. Returns `404` when the conversation was not persisted (`store = false`). - * - * @param agentName The name of the agent. - * @param conversationId The id of the conversation whose responses are listed. - * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the - * default is 20. - * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` - * for descending order. - * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include after=obj_foo in order to fetch the next page of the list. - * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include before=obj_foo in order to fetch the previous page of the list. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAgentConversationResponses(String agentName, String conversationId, - Integer limit, PageOrder order, String after, String before) { - // Generated convenience method for listAgentConversationResponses - RequestOptions requestOptions = new RequestOptions(); - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - PagedFlux pagedFluxResponse - = listAgentConversationResponses(agentName, conversationId, requestOptions); - return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { - Flux> flux; - if (pageSizeParam == null) { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage().take(1) - : pagedFluxResponse.byPage(continuationTokenParam).take(1); - } else { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage(pageSizeParam).take(1) - : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); - } - return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), - pagedResponse.getStatusCode(), pagedResponse.getHeaders(), - pagedResponse.getValue() - .stream() - .map(protocolMethodData -> protocolMethodData.toObject(VoiceResponse.class)) - .collect(Collectors.toList()), - pagedResponse.getContinuationToken(), null)); - }); - } - /** * List responses in a voice agent conversation * @@ -1116,7 +983,7 @@ public PagedFlux listAgentConversationResponses(String agentName, // Generated convenience method for listAgentConversationResponses RequestOptions requestOptions = new RequestOptions(); PagedFlux pagedFluxResponse - = listAgentConversationResponses(agentName, conversationId, requestOptions); + = serviceClient.listAgentConversationResponsesAsync(null, agentName, conversationId, requestOptions); return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { Flux> flux; if (pageSizeParam == null) { @@ -1180,16 +1047,6 @@ public Mono getAgentConversationResponse(String agentName, String * @param agentName The name of the agent. * @param conversationId The id of the conversation that contains the response. * @param responseId The id of the response whose output items are listed. - * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the - * default is 20. - * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` - * for descending order. - * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include after=obj_foo in order to fetch the next page of the list. - * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include before=obj_foo in order to fetch the previous page of the list. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -1201,23 +1058,11 @@ public Mono getAgentConversationResponse(String agentName, String @Generated @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAgentConversationResponseItems(String agentName, - String conversationId, String responseId, Integer limit, PageOrder order, String after, String before) { + String conversationId, String responseId) { // Generated convenience method for listAgentConversationResponseItems RequestOptions requestOptions = new RequestOptions(); - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - PagedFlux pagedFluxResponse - = listAgentConversationResponseItems(agentName, conversationId, responseId, requestOptions); + PagedFlux pagedFluxResponse = serviceClient.listAgentConversationResponseItemsAsync(null, agentName, + conversationId, responseId, requestOptions); return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { Flux> flux; if (pageSizeParam == null) { @@ -1241,16 +1086,14 @@ public PagedFlux listAgentConversationResponseItems(St } /** - * List items produced by a voice agent conversation response + * List items in a voice agent conversation * - * Returns a paged collection of the output items produced by a specific response (the response's output - * projection). For the complete ordered conversation history — including user input and client-created - * tool outputs — use the conversation items route instead. Returns `404` when the conversation or - * response was not persisted (`store = false`). + * Returns a paged collection of items — the complete ordered conversation history, including user input, + * assistant output, and client-created tool outputs (transcripts + tool events). Returns `404` when the + * conversation was not persisted (`store = false`). * * @param agentName The name of the agent. - * @param conversationId The id of the conversation that contains the response. - * @param responseId The id of the response whose output items are listed. + * @param conversationId The id of the conversation whose items are listed. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -1261,12 +1104,11 @@ public PagedFlux listAgentConversationResponseItems(St */ @Generated @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAgentConversationResponseItems(String agentName, - String conversationId, String responseId) { - // Generated convenience method for listAgentConversationResponseItems + public PagedFlux listAgentConversationItems(String agentName, String conversationId) { + // Generated convenience method for listAgentConversationItems RequestOptions requestOptions = new RequestOptions(); PagedFlux pagedFluxResponse - = listAgentConversationResponseItems(agentName, conversationId, responseId, requestOptions); + = serviceClient.listAgentConversationItemsAsync(null, agentName, conversationId, requestOptions); return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { Flux> flux; if (pageSizeParam == null) { @@ -1290,165 +1132,52 @@ public PagedFlux listAgentConversationResponseItems(St } /** - * List items in a voice agent conversation + * Get a voice agent conversation item * - * Returns a paged collection of items — the complete ordered conversation history, including user input, - * assistant output, and client-created tool outputs (transcripts + tool events). Returns `404` when the - * conversation was not persisted (`store = false`). + * Retrieves a single item from the specified conversation by its id, including its transcript. An + * `input_audio`/`output_audio` content part indicates that audio is available for the item; the canonical per-item + * audio metadata is the `/items/{item_id}/audio` resource, and the bytes are streamed by + * `/items/{item_id}/audio/content`. Returns `404` when the conversation or item was not persisted + * (`store = false`). * * @param agentName The name of the agent. - * @param conversationId The id of the conversation whose items are listed. - * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the - * default is 20. - * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` - * for descending order. - * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include after=obj_foo in order to fetch the next page of the list. - * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @param conversationId The id of the conversation that contains the item. + * @param itemId The id of the conversation item to retrieve. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. + * @return a voice agent conversation item + * + * Retrieves a single item from the specified conversation by its id, including its transcript on successful + * completion of {@link Mono}. */ @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAgentConversationItems(String agentName, String conversationId, - Integer limit, PageOrder order, String after, String before) { - // Generated convenience method for listAgentConversationItems + @ServiceMethod(returns = ReturnType.SINGLE) + public Mono getAgentConversationItem(String agentName, String conversationId, + String itemId) { + // Generated convenience method for getAgentConversationItemWithResponse RequestOptions requestOptions = new RequestOptions(); - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - PagedFlux pagedFluxResponse = listAgentConversationItems(agentName, conversationId, requestOptions); - return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { - Flux> flux; - if (pageSizeParam == null) { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage().take(1) - : pagedFluxResponse.byPage(continuationTokenParam).take(1); - } else { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage(pageSizeParam).take(1) - : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); - } - return flux - .map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), - pagedResponse.getStatusCode(), pagedResponse.getHeaders(), - pagedResponse.getValue() - .stream() - .map(protocolMethodData -> protocolMethodData.toObject(RealtimeConversationItem.class)) - .collect(Collectors.toList()), - pagedResponse.getContinuationToken(), null)); - }); + return getAgentConversationItemWithResponse(agentName, conversationId, itemId, requestOptions) + .flatMap(FluxUtil::toMono) + .map(protocolMethodData -> protocolMethodData.toObject(RealtimeConversationItem.class)); } /** - * List items in a voice agent conversation + * Get a voice agent conversation item's audio metadata * - * Returns a paged collection of items — the complete ordered conversation history, including user input, - * assistant output, and client-created tool outputs (transcripts + tool events). Returns `404` when the - * conversation was not persisted (`store = false`). + * Returns metadata for a single conversation item's audio segment, including the common playback facts + * (role, format/codec, sample rate, channels, offset, duration) for both Foundry-managed and + * bring-your-own-storage (BYOS) recordings; for BYOS the response additionally includes `blob_uri`, the URI + * of the recording in the customer's own storage (no SAS) that the customer downloads with their own credentials. + * Requires the conversation to have persisted audio (`store = true`); returns `404` when the conversation, + * item, or its audio was not persisted. * * @param agentName The name of the agent. - * @param conversationId The id of the conversation whose items are listed. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAgentConversationItems(String agentName, String conversationId) { - // Generated convenience method for listAgentConversationItems - RequestOptions requestOptions = new RequestOptions(); - PagedFlux pagedFluxResponse = listAgentConversationItems(agentName, conversationId, requestOptions); - return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { - Flux> flux; - if (pageSizeParam == null) { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage().take(1) - : pagedFluxResponse.byPage(continuationTokenParam).take(1); - } else { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage(pageSizeParam).take(1) - : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); - } - return flux - .map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), - pagedResponse.getStatusCode(), pagedResponse.getHeaders(), - pagedResponse.getValue() - .stream() - .map(protocolMethodData -> protocolMethodData.toObject(RealtimeConversationItem.class)) - .collect(Collectors.toList()), - pagedResponse.getContinuationToken(), null)); - }); - } - - /** - * Get a voice agent conversation item - * - * Retrieves a single item from the specified conversation by its id, including its transcript. An - * `input_audio`/`output_audio` content part indicates that audio is available for the item; the canonical per-item - * audio metadata is the `/items/{item_id}/audio` resource, and the bytes are streamed by - * `/items/{item_id}/audio/content`. Returns `404` when the conversation or item was not persisted - * (`store = false`). - * - * @param agentName The name of the agent. - * @param conversationId The id of the conversation that contains the item. - * @param itemId The id of the conversation item to retrieve. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return a voice agent conversation item - * - * Retrieves a single item from the specified conversation by its id, including its transcript on successful - * completion of {@link Mono}. - */ - @Generated - @ServiceMethod(returns = ReturnType.SINGLE) - public Mono getAgentConversationItem(String agentName, String conversationId, - String itemId) { - // Generated convenience method for getAgentConversationItemWithResponse - RequestOptions requestOptions = new RequestOptions(); - return getAgentConversationItemWithResponse(agentName, conversationId, itemId, requestOptions) - .flatMap(FluxUtil::toMono) - .map(protocolMethodData -> protocolMethodData.toObject(RealtimeConversationItem.class)); - } - - /** - * Get a voice agent conversation item's audio metadata - * - * Returns metadata for a single conversation item's audio segment, including the common playback facts - * (role, format/codec, sample rate, channels, offset, duration) for both Foundry-managed and - * bring-your-own-storage (BYOS) recordings; for BYOS the response additionally includes `blob_uri`, the URI - * of the recording in the customer's own storage (no SAS) that the customer downloads with their own credentials. - * Requires the conversation to have persisted audio (`store = true`); returns `404` when the conversation, - * item, or its audio was not persisted. - * - * @param agentName The name of the agent. - * @param conversationId The id of the conversation that contains the item. - * @param itemId The id of the conversation item whose audio metadata is retrieved. + * @param conversationId The id of the conversation that contains the item. + * @param itemId The id of the conversation item whose audio metadata is retrieved. * @throws IllegalArgumentException thrown if parameters fail the validation. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -1634,4 +1363,267 @@ public Mono downloadAgentConversationAudio(String agentName, String return downloadAgentConversationAudioWithResponse(agentName, conversationId, requestOptions) .flatMap(FluxUtil::toMono); } + + /** + * List voice agent conversations + * + * Returns the conversations persisted for the specified voice agent endpoint. + * Conversations are present when the session's effective `store` setting is `true`, whether inherited from the + * agent definition or enabled by the WebSocket session override. + * + * @param agentName The name of the agent. + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAgentConversations(String agentName, Integer limit, PageOrder order, + String after, String before) { + // Generated convenience method for listAgentConversations + RequestOptions requestOptions = new RequestOptions(); + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + PagedFlux pagedFluxResponse + = serviceClient.listAgentConversationsAsync(after, agentName, requestOptions); + return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { + Flux> flux; + if (pageSizeParam == null) { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage().take(1) + : pagedFluxResponse.byPage(continuationTokenParam).take(1); + } else { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage(pageSizeParam).take(1) + : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); + } + return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), + pagedResponse.getStatusCode(), pagedResponse.getHeaders(), + pagedResponse.getValue() + .stream() + .map(protocolMethodData -> protocolMethodData.toObject(VoiceConversation.class)) + .collect(Collectors.toList()), + pagedResponse.getContinuationToken(), null)); + }); + } + + /** + * List responses in a voice agent conversation + * + * Returns a paged collection of the responses (model inference turns) recorded for the specified + * conversation. The per-response `output` projection may be omitted here; use the response-items route + * for the canonical paged output. Returns `404` when the conversation was not persisted (`store = false`). + * + * @param agentName The name of the agent. + * @param conversationId The id of the conversation whose responses are listed. + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAgentConversationResponses(String agentName, String conversationId, + Integer limit, PageOrder order, String after, String before) { + // Generated convenience method for listAgentConversationResponses + RequestOptions requestOptions = new RequestOptions(); + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + PagedFlux pagedFluxResponse + = serviceClient.listAgentConversationResponsesAsync(after, agentName, conversationId, requestOptions); + return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { + Flux> flux; + if (pageSizeParam == null) { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage().take(1) + : pagedFluxResponse.byPage(continuationTokenParam).take(1); + } else { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage(pageSizeParam).take(1) + : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); + } + return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), + pagedResponse.getStatusCode(), pagedResponse.getHeaders(), + pagedResponse.getValue() + .stream() + .map(protocolMethodData -> protocolMethodData.toObject(VoiceResponse.class)) + .collect(Collectors.toList()), + pagedResponse.getContinuationToken(), null)); + }); + } + + /** + * List items produced by a voice agent conversation response + * + * Returns a paged collection of the output items produced by a specific response (the response's output + * projection). For the complete ordered conversation history — including user input and client-created + * tool outputs — use the conversation items route instead. Returns `404` when the conversation or + * response was not persisted (`store = false`). + * + * @param agentName The name of the agent. + * @param conversationId The id of the conversation that contains the response. + * @param responseId The id of the response whose output items are listed. + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAgentConversationResponseItems(String agentName, + String conversationId, String responseId, Integer limit, PageOrder order, String after, String before) { + // Generated convenience method for listAgentConversationResponseItems + RequestOptions requestOptions = new RequestOptions(); + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + PagedFlux pagedFluxResponse = serviceClient.listAgentConversationResponseItemsAsync(after, + agentName, conversationId, responseId, requestOptions); + return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { + Flux> flux; + if (pageSizeParam == null) { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage().take(1) + : pagedFluxResponse.byPage(continuationTokenParam).take(1); + } else { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage(pageSizeParam).take(1) + : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); + } + return flux + .map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), + pagedResponse.getStatusCode(), pagedResponse.getHeaders(), + pagedResponse.getValue() + .stream() + .map(protocolMethodData -> protocolMethodData.toObject(RealtimeConversationItem.class)) + .collect(Collectors.toList()), + pagedResponse.getContinuationToken(), null)); + }); + } + + /** + * List items in a voice agent conversation + * + * Returns a paged collection of items — the complete ordered conversation history, including user input, + * assistant output, and client-created tool outputs (transcripts + tool events). Returns `404` when the + * conversation was not persisted (`store = false`). + * + * @param agentName The name of the agent. + * @param conversationId The id of the conversation whose items are listed. + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAgentConversationItems(String agentName, String conversationId, + Integer limit, PageOrder order, String after, String before) { + // Generated convenience method for listAgentConversationItems + RequestOptions requestOptions = new RequestOptions(); + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + PagedFlux pagedFluxResponse + = serviceClient.listAgentConversationItemsAsync(after, agentName, conversationId, requestOptions); + return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { + Flux> flux; + if (pageSizeParam == null) { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage().take(1) + : pagedFluxResponse.byPage(continuationTokenParam).take(1); + } else { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage(pageSizeParam).take(1) + : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); + } + return flux + .map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), + pagedResponse.getStatusCode(), pagedResponse.getHeaders(), + pagedResponse.getValue() + .stream() + .map(protocolMethodData -> protocolMethodData.toObject(RealtimeConversationItem.class)) + .collect(Collectors.toList()), + pagedResponse.getContinuationToken(), null)); + }); + } } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaVoiceAgentsConversationsClient.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaVoiceAgentsConversationsClient.java index a493a8498035d..76ae262a98335 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaVoiceAgentsConversationsClient.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaVoiceAgentsConversationsClient.java @@ -855,54 +855,6 @@ public Response downloadAgentConversationAudioWithResponse(String ag return this.serviceClient.downloadAgentConversationAudioWithResponse(agentName, conversationId, requestOptions); } - /** - * List voice agent conversations - * - * Returns the conversations persisted for the specified voice agent endpoint. - * Conversations are present when the session's effective `store` setting is `true`, whether inherited from the - * agent definition or enabled by the WebSocket session override. - * - * @param agentName The name of the agent. - * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the - * default is 20. - * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` - * for descending order. - * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include after=obj_foo in order to fetch the next page of the list. - * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include before=obj_foo in order to fetch the previous page of the list. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listAgentConversations(String agentName, Integer limit, PageOrder order, - String after, String before) { - // Generated convenience method for listAgentConversations - RequestOptions requestOptions = new RequestOptions(); - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - return serviceClient.listAgentConversations(agentName, requestOptions) - .mapPage(bodyItemValue -> bodyItemValue.toObject(VoiceConversation.class)); - } - /** * List voice agent conversations * @@ -924,7 +876,7 @@ public PagedIterable listAgentConversations(String agentName, public PagedIterable listAgentConversations(String agentName) { // Generated convenience method for listAgentConversations RequestOptions requestOptions = new RequestOptions(); - return serviceClient.listAgentConversations(agentName, requestOptions) + return serviceClient.listAgentConversations(null, agentName, requestOptions) .mapPage(bodyItemValue -> bodyItemValue.toObject(VoiceConversation.class)); } @@ -979,55 +931,6 @@ public void deleteAgentConversation(String agentName, String conversationId) { deleteAgentConversationWithResponse(agentName, conversationId, requestOptions).getValue(); } - /** - * List responses in a voice agent conversation - * - * Returns a paged collection of the responses (model inference turns) recorded for the specified - * conversation. The per-response `output` projection may be omitted here; use the response-items route - * for the canonical paged output. Returns `404` when the conversation was not persisted (`store = false`). - * - * @param agentName The name of the agent. - * @param conversationId The id of the conversation whose responses are listed. - * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the - * default is 20. - * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` - * for descending order. - * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include after=obj_foo in order to fetch the next page of the list. - * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include before=obj_foo in order to fetch the previous page of the list. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listAgentConversationResponses(String agentName, String conversationId, - Integer limit, PageOrder order, String after, String before) { - // Generated convenience method for listAgentConversationResponses - RequestOptions requestOptions = new RequestOptions(); - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - return serviceClient.listAgentConversationResponses(agentName, conversationId, requestOptions) - .mapPage(bodyItemValue -> bodyItemValue.toObject(VoiceResponse.class)); - } - /** * List responses in a voice agent conversation * @@ -1050,7 +953,7 @@ public PagedIterable listAgentConversationResponses(String agentN public PagedIterable listAgentConversationResponses(String agentName, String conversationId) { // Generated convenience method for listAgentConversationResponses RequestOptions requestOptions = new RequestOptions(); - return serviceClient.listAgentConversationResponses(agentName, conversationId, requestOptions) + return serviceClient.listAgentConversationResponses(null, agentName, conversationId, requestOptions) .mapPage(bodyItemValue -> bodyItemValue.toObject(VoiceResponse.class)); } @@ -1084,57 +987,6 @@ public VoiceResponse getAgentConversationResponse(String agentName, String conve .toObject(VoiceResponse.class); } - /** - * List items produced by a voice agent conversation response - * - * Returns a paged collection of the output items produced by a specific response (the response's output - * projection). For the complete ordered conversation history — including user input and client-created - * tool outputs — use the conversation items route instead. Returns `404` when the conversation or - * response was not persisted (`store = false`). - * - * @param agentName The name of the agent. - * @param conversationId The id of the conversation that contains the response. - * @param responseId The id of the response whose output items are listed. - * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the - * default is 20. - * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` - * for descending order. - * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include after=obj_foo in order to fetch the next page of the list. - * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include before=obj_foo in order to fetch the previous page of the list. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listAgentConversationResponseItems(String agentName, - String conversationId, String responseId, Integer limit, PageOrder order, String after, String before) { - // Generated convenience method for listAgentConversationResponseItems - RequestOptions requestOptions = new RequestOptions(); - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - return serviceClient.listAgentConversationResponseItems(agentName, conversationId, responseId, requestOptions) - .mapPage(bodyItemValue -> bodyItemValue.toObject(RealtimeConversationItem.class)); - } - /** * List items produced by a voice agent conversation response * @@ -1160,56 +1012,8 @@ public PagedIterable listAgentConversationResponseItem String conversationId, String responseId) { // Generated convenience method for listAgentConversationResponseItems RequestOptions requestOptions = new RequestOptions(); - return serviceClient.listAgentConversationResponseItems(agentName, conversationId, responseId, requestOptions) - .mapPage(bodyItemValue -> bodyItemValue.toObject(RealtimeConversationItem.class)); - } - - /** - * List items in a voice agent conversation - * - * Returns a paged collection of items — the complete ordered conversation history, including user input, - * assistant output, and client-created tool outputs (transcripts + tool events). Returns `404` when the - * conversation was not persisted (`store = false`). - * - * @param agentName The name of the agent. - * @param conversationId The id of the conversation whose items are listed. - * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the - * default is 20. - * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` - * for descending order. - * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include after=obj_foo in order to fetch the next page of the list. - * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include before=obj_foo in order to fetch the previous page of the list. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listAgentConversationItems(String agentName, String conversationId, - Integer limit, PageOrder order, String after, String before) { - // Generated convenience method for listAgentConversationItems - RequestOptions requestOptions = new RequestOptions(); - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - return serviceClient.listAgentConversationItems(agentName, conversationId, requestOptions) + return serviceClient + .listAgentConversationResponseItems(null, agentName, conversationId, responseId, requestOptions) .mapPage(bodyItemValue -> bodyItemValue.toObject(RealtimeConversationItem.class)); } @@ -1235,7 +1039,7 @@ public PagedIterable listAgentConversationItems(String public PagedIterable listAgentConversationItems(String agentName, String conversationId) { // Generated convenience method for listAgentConversationItems RequestOptions requestOptions = new RequestOptions(); - return serviceClient.listAgentConversationItems(agentName, conversationId, requestOptions) + return serviceClient.listAgentConversationItems(null, agentName, conversationId, requestOptions) .mapPage(bodyItemValue -> bodyItemValue.toObject(RealtimeConversationItem.class)); } @@ -1465,4 +1269,190 @@ public BinaryData downloadAgentConversationAudio(String agentName, String conver RequestOptions requestOptions = new RequestOptions(); return downloadAgentConversationAudioWithResponse(agentName, conversationId, requestOptions).getValue(); } + + /** + * List voice agent conversations + * + * Returns the conversations persisted for the specified voice agent endpoint. + * Conversations are present when the session's effective `store` setting is `true`, whether inherited from the + * agent definition or enabled by the WebSocket session override. + * + * @param agentName The name of the agent. + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listAgentConversations(String agentName, Integer limit, PageOrder order, + String after, String before) { + // Generated convenience method for listAgentConversations + RequestOptions requestOptions = new RequestOptions(); + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + return serviceClient.listAgentConversations(after, agentName, requestOptions) + .mapPage(bodyItemValue -> bodyItemValue.toObject(VoiceConversation.class)); + } + + /** + * List responses in a voice agent conversation + * + * Returns a paged collection of the responses (model inference turns) recorded for the specified + * conversation. The per-response `output` projection may be omitted here; use the response-items route + * for the canonical paged output. Returns `404` when the conversation was not persisted (`store = false`). + * + * @param agentName The name of the agent. + * @param conversationId The id of the conversation whose responses are listed. + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listAgentConversationResponses(String agentName, String conversationId, + Integer limit, PageOrder order, String after, String before) { + // Generated convenience method for listAgentConversationResponses + RequestOptions requestOptions = new RequestOptions(); + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + return serviceClient.listAgentConversationResponses(after, agentName, conversationId, requestOptions) + .mapPage(bodyItemValue -> bodyItemValue.toObject(VoiceResponse.class)); + } + + /** + * List items produced by a voice agent conversation response + * + * Returns a paged collection of the output items produced by a specific response (the response's output + * projection). For the complete ordered conversation history — including user input and client-created + * tool outputs — use the conversation items route instead. Returns `404` when the conversation or + * response was not persisted (`store = false`). + * + * @param agentName The name of the agent. + * @param conversationId The id of the conversation that contains the response. + * @param responseId The id of the response whose output items are listed. + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listAgentConversationResponseItems(String agentName, + String conversationId, String responseId, Integer limit, PageOrder order, String after, String before) { + // Generated convenience method for listAgentConversationResponseItems + RequestOptions requestOptions = new RequestOptions(); + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + return serviceClient + .listAgentConversationResponseItems(after, agentName, conversationId, responseId, requestOptions) + .mapPage(bodyItemValue -> bodyItemValue.toObject(RealtimeConversationItem.class)); + } + + /** + * List items in a voice agent conversation + * + * Returns a paged collection of items — the complete ordered conversation history, including user input, + * assistant output, and client-created tool outputs (transcripts + tool events). Returns `404` when the + * conversation was not persisted (`store = false`). + * + * @param agentName The name of the agent. + * @param conversationId The id of the conversation whose items are listed. + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listAgentConversationItems(String agentName, String conversationId, + Integer limit, PageOrder order, String after, String before) { + // Generated convenience method for listAgentConversationItems + RequestOptions requestOptions = new RequestOptions(); + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + return serviceClient.listAgentConversationItems(after, agentName, conversationId, requestOptions) + .mapPage(bodyItemValue -> bodyItemValue.toObject(RealtimeConversationItem.class)); + } } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaVoiceAgentsTelephonyAsyncClient.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaVoiceAgentsTelephonyAsyncClient.java index 3d0420573ad6b..0c950ad76f670 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaVoiceAgentsTelephonyAsyncClient.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaVoiceAgentsTelephonyAsyncClient.java @@ -1026,79 +1026,6 @@ public Mono> cancelTelephonyCallJobWithResponse(String agen requestOptions); } - /** - * List agent telephony bindings - * - * Returns the telephony bindings owned by the voice agent named in the path. - * - * @param agentName The name of the voice agent whose bindings are listed. - * @param provider Filters bindings by provider. - * @param status Filters bindings by lifecycle status. - * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the - * default is 20. - * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` - * for descending order. - * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include after=obj_foo in order to fetch the next page of the list. - * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include before=obj_foo in order to fetch the previous page of the list. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listTelephonyBindings(String agentName, TelephonyProvider provider, - TelephonyBindingStatus status, Integer limit, PageOrder order, String after, String before) { - // Generated convenience method for listTelephonyBindings - RequestOptions requestOptions = new RequestOptions(); - if (provider != null) { - requestOptions.addQueryParam("provider", provider.toString(), false); - } - if (status != null) { - requestOptions.addQueryParam("status", status.toString(), false); - } - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - PagedFlux pagedFluxResponse = listTelephonyBindings(agentName, requestOptions); - return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { - Flux> flux; - if (pageSizeParam == null) { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage().take(1) - : pagedFluxResponse.byPage(continuationTokenParam).take(1); - } else { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage(pageSizeParam).take(1) - : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); - } - return flux - .map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), - pagedResponse.getStatusCode(), pagedResponse.getHeaders(), - pagedResponse.getValue() - .stream() - .map(protocolMethodData -> protocolMethodData.toObject(TelephonyBindingListItem.class)) - .collect(Collectors.toList()), - pagedResponse.getContinuationToken(), null)); - }); - } - /** * List agent telephony bindings * @@ -1118,7 +1045,8 @@ public PagedFlux listTelephonyBindings(String agentNam public PagedFlux listTelephonyBindings(String agentName) { // Generated convenience method for listTelephonyBindings RequestOptions requestOptions = new RequestOptions(); - PagedFlux pagedFluxResponse = listTelephonyBindings(agentName, requestOptions); + PagedFlux pagedFluxResponse + = serviceClient.listTelephonyBindingsAsync(null, agentName, requestOptions); return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { Flux> flux; if (pageSizeParam == null) { @@ -1194,88 +1122,6 @@ public Mono deleteTelephonyBinding(String agentName, String bindingId, Str .flatMap(FluxUtil::toMono); } - /** - * List agent telephony calls - * - * Returns the durable inbound call history for the voice agent named in the path. - * - * @param agentName The name of the voice agent whose calls are listed. - * @param provider Filters calls by provider. - * @param status Filters calls by lifecycle status. - * @param startedAfter Includes calls that started at or after this Unix timestamp in seconds. - * @param startedBefore Includes calls that started at or before this Unix timestamp in seconds. - * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the - * default is 20. - * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` - * for descending order. - * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include after=obj_foo in order to fetch the next page of the list. - * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include before=obj_foo in order to fetch the previous page of the list. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listTelephonyCalls(String agentName, TelephonyProvider provider, - TelephonyCallStatus status, OffsetDateTime startedAfter, OffsetDateTime startedBefore, Integer limit, - PageOrder order, String after, String before) { - // Generated convenience method for listTelephonyCalls - RequestOptions requestOptions = new RequestOptions(); - if (provider != null) { - requestOptions.addQueryParam("provider", provider.toString(), false); - } - if (status != null) { - requestOptions.addQueryParam("status", status.toString(), false); - } - if (startedAfter != null) { - requestOptions.addQueryParam("started_after", String.valueOf(startedAfter.toEpochSecond()), false); - } - if (startedBefore != null) { - requestOptions.addQueryParam("started_before", String.valueOf(startedBefore.toEpochSecond()), false); - } - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - PagedFlux pagedFluxResponse = listTelephonyCalls(agentName, requestOptions); - return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { - Flux> flux; - if (pageSizeParam == null) { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage().take(1) - : pagedFluxResponse.byPage(continuationTokenParam).take(1); - } else { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage(pageSizeParam).take(1) - : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); - } - return flux - .map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), - pagedResponse.getStatusCode(), pagedResponse.getHeaders(), - pagedResponse.getValue() - .stream() - .map(protocolMethodData -> protocolMethodData.toObject(TelephonyCallSummary.class)) - .collect(Collectors.toList()), - pagedResponse.getContinuationToken(), null)); - }); - } - /** * List agent telephony calls * @@ -1295,7 +1141,8 @@ public PagedFlux listTelephonyCalls(String agentName, Tele public PagedFlux listTelephonyCalls(String agentName) { // Generated convenience method for listTelephonyCalls RequestOptions requestOptions = new RequestOptions(); - PagedFlux pagedFluxResponse = listTelephonyCalls(agentName, requestOptions); + PagedFlux pagedFluxResponse + = serviceClient.listTelephonyCallsAsync(null, agentName, requestOptions); return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { Flux> flux; if (pageSizeParam == null) { @@ -1598,4 +1445,155 @@ public Mono createTelephonyCallJob(String agentName, String id requestOptions).flatMap(FluxUtil::toMono) .map(protocolMethodData -> protocolMethodData.toObject(TelephonyCallJob.class)); } + + /** + * List agent telephony bindings + * + * Returns the telephony bindings owned by the voice agent named in the path. + * + * @param agentName The name of the voice agent whose bindings are listed. + * @param provider Filters bindings by provider. + * @param status Filters bindings by lifecycle status. + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listTelephonyBindings(String agentName, TelephonyProvider provider, + TelephonyBindingStatus status, Integer limit, PageOrder order, String after, String before) { + // Generated convenience method for listTelephonyBindings + RequestOptions requestOptions = new RequestOptions(); + if (provider != null) { + requestOptions.addQueryParam("provider", provider.toString(), false); + } + if (status != null) { + requestOptions.addQueryParam("status", status.toString(), false); + } + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + PagedFlux pagedFluxResponse + = serviceClient.listTelephonyBindingsAsync(after, agentName, requestOptions); + return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { + Flux> flux; + if (pageSizeParam == null) { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage().take(1) + : pagedFluxResponse.byPage(continuationTokenParam).take(1); + } else { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage(pageSizeParam).take(1) + : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); + } + return flux + .map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), + pagedResponse.getStatusCode(), pagedResponse.getHeaders(), + pagedResponse.getValue() + .stream() + .map(protocolMethodData -> protocolMethodData.toObject(TelephonyBindingListItem.class)) + .collect(Collectors.toList()), + pagedResponse.getContinuationToken(), null)); + }); + } + + /** + * List agent telephony calls + * + * Returns the durable inbound call history for the voice agent named in the path. + * + * @param agentName The name of the voice agent whose calls are listed. + * @param provider Filters calls by provider. + * @param status Filters calls by lifecycle status. + * @param startedAfter Includes calls that started at or after this Unix timestamp in seconds. + * @param startedBefore Includes calls that started at or before this Unix timestamp in seconds. + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listTelephonyCalls(String agentName, TelephonyProvider provider, + TelephonyCallStatus status, OffsetDateTime startedAfter, OffsetDateTime startedBefore, Integer limit, + PageOrder order, String after, String before) { + // Generated convenience method for listTelephonyCalls + RequestOptions requestOptions = new RequestOptions(); + if (provider != null) { + requestOptions.addQueryParam("provider", provider.toString(), false); + } + if (status != null) { + requestOptions.addQueryParam("status", status.toString(), false); + } + if (startedAfter != null) { + requestOptions.addQueryParam("started_after", String.valueOf(startedAfter.toEpochSecond()), false); + } + if (startedBefore != null) { + requestOptions.addQueryParam("started_before", String.valueOf(startedBefore.toEpochSecond()), false); + } + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + PagedFlux pagedFluxResponse + = serviceClient.listTelephonyCallsAsync(after, agentName, requestOptions); + return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { + Flux> flux; + if (pageSizeParam == null) { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage().take(1) + : pagedFluxResponse.byPage(continuationTokenParam).take(1); + } else { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage(pageSizeParam).take(1) + : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); + } + return flux + .map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), + pagedResponse.getStatusCode(), pagedResponse.getHeaders(), + pagedResponse.getValue() + .stream() + .map(protocolMethodData -> protocolMethodData.toObject(TelephonyCallSummary.class)) + .collect(Collectors.toList()), + pagedResponse.getContinuationToken(), null)); + }); + } } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaVoiceAgentsTelephonyClient.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaVoiceAgentsTelephonyClient.java index 42bafcfc46341..efbc4085f0809 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaVoiceAgentsTelephonyClient.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/BetaVoiceAgentsTelephonyClient.java @@ -1006,60 +1006,6 @@ public Response cancelTelephonyCallJobWithResponse(String agentName, return this.serviceClient.cancelTelephonyCallJobWithResponse(agentName, callJobId, ifMatch, requestOptions); } - /** - * List agent telephony bindings - * - * Returns the telephony bindings owned by the voice agent named in the path. - * - * @param agentName The name of the voice agent whose bindings are listed. - * @param provider Filters bindings by provider. - * @param status Filters bindings by lifecycle status. - * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the - * default is 20. - * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` - * for descending order. - * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include after=obj_foo in order to fetch the next page of the list. - * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include before=obj_foo in order to fetch the previous page of the list. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listTelephonyBindings(String agentName, TelephonyProvider provider, - TelephonyBindingStatus status, Integer limit, PageOrder order, String after, String before) { - // Generated convenience method for listTelephonyBindings - RequestOptions requestOptions = new RequestOptions(); - if (provider != null) { - requestOptions.addQueryParam("provider", provider.toString(), false); - } - if (status != null) { - requestOptions.addQueryParam("status", status.toString(), false); - } - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - return serviceClient.listTelephonyBindings(agentName, requestOptions) - .mapPage(bodyItemValue -> bodyItemValue.toObject(TelephonyBindingListItem.class)); - } - /** * List agent telephony bindings * @@ -1079,7 +1025,7 @@ public PagedIterable listTelephonyBindings(String agen public PagedIterable listTelephonyBindings(String agentName) { // Generated convenience method for listTelephonyBindings RequestOptions requestOptions = new RequestOptions(); - return serviceClient.listTelephonyBindings(agentName, requestOptions) + return serviceClient.listTelephonyBindings(null, agentName, requestOptions) .mapPage(bodyItemValue -> bodyItemValue.toObject(TelephonyBindingListItem.class)); } @@ -1133,69 +1079,6 @@ public void deleteTelephonyBinding(String agentName, String bindingId, String if deleteTelephonyBindingWithResponse(agentName, bindingId, ifMatch, requestOptions).getValue(); } - /** - * List agent telephony calls - * - * Returns the durable inbound call history for the voice agent named in the path. - * - * @param agentName The name of the voice agent whose calls are listed. - * @param provider Filters calls by provider. - * @param status Filters calls by lifecycle status. - * @param startedAfter Includes calls that started at or after this Unix timestamp in seconds. - * @param startedBefore Includes calls that started at or before this Unix timestamp in seconds. - * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the - * default is 20. - * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` - * for descending order. - * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include after=obj_foo in order to fetch the next page of the list. - * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include before=obj_foo in order to fetch the previous page of the list. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listTelephonyCalls(String agentName, TelephonyProvider provider, - TelephonyCallStatus status, OffsetDateTime startedAfter, OffsetDateTime startedBefore, Integer limit, - PageOrder order, String after, String before) { - // Generated convenience method for listTelephonyCalls - RequestOptions requestOptions = new RequestOptions(); - if (provider != null) { - requestOptions.addQueryParam("provider", provider.toString(), false); - } - if (status != null) { - requestOptions.addQueryParam("status", status.toString(), false); - } - if (startedAfter != null) { - requestOptions.addQueryParam("started_after", String.valueOf(startedAfter.toEpochSecond()), false); - } - if (startedBefore != null) { - requestOptions.addQueryParam("started_before", String.valueOf(startedBefore.toEpochSecond()), false); - } - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - return serviceClient.listTelephonyCalls(agentName, requestOptions) - .mapPage(bodyItemValue -> bodyItemValue.toObject(TelephonyCallSummary.class)); - } - /** * List agent telephony calls * @@ -1215,7 +1098,7 @@ public PagedIterable listTelephonyCalls(String agentName, public PagedIterable listTelephonyCalls(String agentName) { // Generated convenience method for listTelephonyCalls RequestOptions requestOptions = new RequestOptions(); - return serviceClient.listTelephonyCalls(agentName, requestOptions) + return serviceClient.listTelephonyCalls(null, agentName, requestOptions) .mapPage(bodyItemValue -> bodyItemValue.toObject(TelephonyCallSummary.class)); } @@ -1491,4 +1374,115 @@ public TelephonyCallJob createTelephonyCallJob(String agentName, String idempote return createTelephonyCallJobWithResponse(agentName, idempotencyKey, BinaryData.fromObject(body), requestOptions).getValue().toObject(TelephonyCallJob.class); } + + /** + * List agent telephony bindings + * + * Returns the telephony bindings owned by the voice agent named in the path. + * + * @param agentName The name of the voice agent whose bindings are listed. + * @param provider Filters bindings by provider. + * @param status Filters bindings by lifecycle status. + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listTelephonyBindings(String agentName, TelephonyProvider provider, + TelephonyBindingStatus status, Integer limit, PageOrder order, String after, String before) { + // Generated convenience method for listTelephonyBindings + RequestOptions requestOptions = new RequestOptions(); + if (provider != null) { + requestOptions.addQueryParam("provider", provider.toString(), false); + } + if (status != null) { + requestOptions.addQueryParam("status", status.toString(), false); + } + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + return serviceClient.listTelephonyBindings(after, agentName, requestOptions) + .mapPage(bodyItemValue -> bodyItemValue.toObject(TelephonyBindingListItem.class)); + } + + /** + * List agent telephony calls + * + * Returns the durable inbound call history for the voice agent named in the path. + * + * @param agentName The name of the voice agent whose calls are listed. + * @param provider Filters calls by provider. + * @param status Filters calls by lifecycle status. + * @param startedAfter Includes calls that started at or after this Unix timestamp in seconds. + * @param startedBefore Includes calls that started at or before this Unix timestamp in seconds. + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listTelephonyCalls(String agentName, TelephonyProvider provider, + TelephonyCallStatus status, OffsetDateTime startedAfter, OffsetDateTime startedBefore, Integer limit, + PageOrder order, String after, String before) { + // Generated convenience method for listTelephonyCalls + RequestOptions requestOptions = new RequestOptions(); + if (provider != null) { + requestOptions.addQueryParam("provider", provider.toString(), false); + } + if (status != null) { + requestOptions.addQueryParam("status", status.toString(), false); + } + if (startedAfter != null) { + requestOptions.addQueryParam("started_after", String.valueOf(startedAfter.toEpochSecond()), false); + } + if (startedBefore != null) { + requestOptions.addQueryParam("started_before", String.valueOf(startedBefore.toEpochSecond()), false); + } + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + return serviceClient.listTelephonyCalls(after, agentName, requestOptions) + .mapPage(bodyItemValue -> bodyItemValue.toObject(TelephonyCallSummary.class)); + } } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/ToolboxesAsyncClient.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/ToolboxesAsyncClient.java index 286f0498fcbf8..05a258e738c76 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/ToolboxesAsyncClient.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/ToolboxesAsyncClient.java @@ -764,68 +764,6 @@ public Mono getToolbox(String name) { .map(protocolMethodData -> protocolMethodData.toObject(ToolboxDetails.class)); } - /** - * List toolboxes - * - * Returns the toolboxes available in the current project. - * - * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the - * default is 20. - * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` - * for descending order. - * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include after=obj_foo in order to fetch the next page of the list. - * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include before=obj_foo in order to fetch the previous page of the list. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listToolboxes(Integer limit, PageOrder order, String after, String before) { - // Generated convenience method for listToolboxes - RequestOptions requestOptions = new RequestOptions(); - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - PagedFlux pagedFluxResponse = listToolboxes(requestOptions); - return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { - Flux> flux; - if (pageSizeParam == null) { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage().take(1) - : pagedFluxResponse.byPage(continuationTokenParam).take(1); - } else { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage(pageSizeParam).take(1) - : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); - } - return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), - pagedResponse.getStatusCode(), pagedResponse.getHeaders(), - pagedResponse.getValue() - .stream() - .map(protocolMethodData -> protocolMethodData.toObject(ToolboxDetails.class)) - .collect(Collectors.toList()), - pagedResponse.getContinuationToken(), null)); - }); - } - /** * List toolboxes * @@ -843,7 +781,7 @@ public PagedFlux listToolboxes(Integer limit, PageOrder order, S public PagedFlux listToolboxes() { // Generated convenience method for listToolboxes RequestOptions requestOptions = new RequestOptions(); - PagedFlux pagedFluxResponse = listToolboxes(requestOptions); + PagedFlux pagedFluxResponse = serviceClient.listToolboxesAsync(null, requestOptions); return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { Flux> flux; if (pageSizeParam == null) { @@ -865,71 +803,6 @@ public PagedFlux listToolboxes() { }); } - /** - * List toolbox versions - * - * Returns the available versions for the specified toolbox. - * - * @param name The name of the toolbox to list versions for. - * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the - * default is 20. - * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` - * for descending order. - * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include after=obj_foo in order to fetch the next page of the list. - * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include before=obj_foo in order to fetch the previous page of the list. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listToolboxVersions(String name, Integer limit, PageOrder order, - String after, String before) { - // Generated convenience method for listToolboxVersions - RequestOptions requestOptions = new RequestOptions(); - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - PagedFlux pagedFluxResponse = listToolboxVersions(name, requestOptions); - return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { - Flux> flux; - if (pageSizeParam == null) { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage().take(1) - : pagedFluxResponse.byPage(continuationTokenParam).take(1); - } else { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage(pageSizeParam).take(1) - : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); - } - return flux - .map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), - pagedResponse.getStatusCode(), pagedResponse.getHeaders(), - pagedResponse.getValue() - .stream() - .map(protocolMethodData -> protocolMethodData.toObject(ToolboxVersionDetails.class)) - .collect(Collectors.toList()), - pagedResponse.getContinuationToken(), null)); - }); - } - /** * List toolbox versions * @@ -949,7 +822,7 @@ public PagedFlux listToolboxVersions(String name, Integer public PagedFlux listToolboxVersions(String name) { // Generated convenience method for listToolboxVersions RequestOptions requestOptions = new RequestOptions(); - PagedFlux pagedFluxResponse = listToolboxVersions(name, requestOptions); + PagedFlux pagedFluxResponse = serviceClient.listToolboxVersionsAsync(null, name, requestOptions); return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { Flux> flux; if (pageSizeParam == null) { @@ -1135,4 +1008,125 @@ public Mono invokeLatestToolboxMcp(String name, String contentType, RequestOptions requestOptions = new RequestOptions(); return invokeLatestToolboxMcpWithResponse(name, contentType, request, requestOptions).flatMap(FluxUtil::toMono); } + + /** + * List toolboxes + * + * Returns the toolboxes available in the current project. + * + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listToolboxes(Integer limit, PageOrder order, String after, String before) { + // Generated convenience method for listToolboxes + RequestOptions requestOptions = new RequestOptions(); + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + PagedFlux pagedFluxResponse = serviceClient.listToolboxesAsync(after, requestOptions); + return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { + Flux> flux; + if (pageSizeParam == null) { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage().take(1) + : pagedFluxResponse.byPage(continuationTokenParam).take(1); + } else { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage(pageSizeParam).take(1) + : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); + } + return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), + pagedResponse.getStatusCode(), pagedResponse.getHeaders(), + pagedResponse.getValue() + .stream() + .map(protocolMethodData -> protocolMethodData.toObject(ToolboxDetails.class)) + .collect(Collectors.toList()), + pagedResponse.getContinuationToken(), null)); + }); + } + + /** + * List toolbox versions + * + * Returns the available versions for the specified toolbox. + * + * @param name The name of the toolbox to list versions for. + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listToolboxVersions(String name, Integer limit, PageOrder order, + String after, String before) { + // Generated convenience method for listToolboxVersions + RequestOptions requestOptions = new RequestOptions(); + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + PagedFlux pagedFluxResponse = serviceClient.listToolboxVersionsAsync(after, name, requestOptions); + return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { + Flux> flux; + if (pageSizeParam == null) { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage().take(1) + : pagedFluxResponse.byPage(continuationTokenParam).take(1); + } else { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage(pageSizeParam).take(1) + : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); + } + return flux + .map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), + pagedResponse.getStatusCode(), pagedResponse.getHeaders(), + pagedResponse.getValue() + .stream() + .map(protocolMethodData -> protocolMethodData.toObject(ToolboxVersionDetails.class)) + .collect(Collectors.toList()), + pagedResponse.getContinuationToken(), null)); + }); + } } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/ToolboxesClient.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/ToolboxesClient.java index 9fc79bef14582..7b3a5b6f8f3e4 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/ToolboxesClient.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/ToolboxesClient.java @@ -751,50 +751,6 @@ public ToolboxDetails getToolbox(String name) { return getToolboxWithResponse(name, requestOptions).getValue().toObject(ToolboxDetails.class); } - /** - * List toolboxes - * - * Returns the toolboxes available in the current project. - * - * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the - * default is 20. - * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` - * for descending order. - * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include after=obj_foo in order to fetch the next page of the list. - * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include before=obj_foo in order to fetch the previous page of the list. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listToolboxes(Integer limit, PageOrder order, String after, String before) { - // Generated convenience method for listToolboxes - RequestOptions requestOptions = new RequestOptions(); - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - return serviceClient.listToolboxes(requestOptions) - .mapPage(bodyItemValue -> bodyItemValue.toObject(ToolboxDetails.class)); - } - /** * List toolboxes * @@ -812,56 +768,10 @@ public PagedIterable listToolboxes(Integer limit, PageOrder orde public PagedIterable listToolboxes() { // Generated convenience method for listToolboxes RequestOptions requestOptions = new RequestOptions(); - return serviceClient.listToolboxes(requestOptions) + return serviceClient.listToolboxes(null, requestOptions) .mapPage(bodyItemValue -> bodyItemValue.toObject(ToolboxDetails.class)); } - /** - * List toolbox versions - * - * Returns the available versions for the specified toolbox. - * - * @param name The name of the toolbox to list versions for. - * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the - * default is 20. - * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` - * for descending order. - * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include after=obj_foo in order to fetch the next page of the list. - * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include before=obj_foo in order to fetch the previous page of the list. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listToolboxVersions(String name, Integer limit, PageOrder order, - String after, String before) { - // Generated convenience method for listToolboxVersions - RequestOptions requestOptions = new RequestOptions(); - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - return serviceClient.listToolboxVersions(name, requestOptions) - .mapPage(bodyItemValue -> bodyItemValue.toObject(ToolboxVersionDetails.class)); - } - /** * List toolbox versions * @@ -881,7 +791,7 @@ public PagedIterable listToolboxVersions(String name, Int public PagedIterable listToolboxVersions(String name) { // Generated convenience method for listToolboxVersions RequestOptions requestOptions = new RequestOptions(); - return serviceClient.listToolboxVersions(name, requestOptions) + return serviceClient.listToolboxVersions(null, name, requestOptions) .mapPage(bodyItemValue -> bodyItemValue.toObject(ToolboxVersionDetails.class)); } @@ -1046,4 +956,88 @@ public BinaryData invokeLatestToolboxMcp(String name, String contentType, Binary RequestOptions requestOptions = new RequestOptions(); return invokeLatestToolboxMcpWithResponse(name, contentType, request, requestOptions).getValue(); } + + /** + * List toolboxes + * + * Returns the toolboxes available in the current project. + * + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listToolboxes(Integer limit, PageOrder order, String after, String before) { + // Generated convenience method for listToolboxes + RequestOptions requestOptions = new RequestOptions(); + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + return serviceClient.listToolboxes(after, requestOptions) + .mapPage(bodyItemValue -> bodyItemValue.toObject(ToolboxDetails.class)); + } + + /** + * List toolbox versions + * + * Returns the available versions for the specified toolbox. + * + * @param name The name of the toolbox to list versions for. + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listToolboxVersions(String name, Integer limit, PageOrder order, + String after, String before) { + // Generated convenience method for listToolboxVersions + RequestOptions requestOptions = new RequestOptions(); + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + return serviceClient.listToolboxVersions(after, name, requestOptions) + .mapPage(bodyItemValue -> bodyItemValue.toObject(ToolboxVersionDetails.class)); + } } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/AgentsClientImpl.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/AgentsClientImpl.java index bc8ba850e5fe0..4af5042801ecc 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/AgentsClientImpl.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/AgentsClientImpl.java @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) TypeSpec Code Generator. - package com.azure.ai.agents.implementation; import com.azure.ai.agents.AgentsServiceVersion; @@ -16,6 +15,7 @@ * Initializes a new instance of the AgentsClient type. */ public final class AgentsClientImpl { + /** * Foundry Project endpoint in the form * "https://{ai-services-account-name}.services.ai.azure.com/api/projects/{project-name}". @@ -31,7 +31,7 @@ public final class AgentsClientImpl { * If you only have one Project in your Foundry Hub, or to target the default Project * in your Hub, use the form * "https://{ai-services-account-name}.services.ai.azure.com/api/projects/_project". - * + * * @return the endpoint value. */ public String getEndpoint() { @@ -45,7 +45,7 @@ public String getEndpoint() { /** * Gets Service version. - * + * * @return the serviceVersion value. */ public AgentsServiceVersion getServiceVersion() { @@ -59,7 +59,7 @@ public AgentsServiceVersion getServiceVersion() { /** * Gets The HTTP pipeline to send requests through. - * + * * @return the httpPipeline value. */ public HttpPipeline getHttpPipeline() { @@ -73,7 +73,7 @@ public HttpPipeline getHttpPipeline() { /** * Gets The serializer to serialize an object into a string. - * + * * @return the serializerAdapter value. */ public SerializerAdapter getSerializerAdapter() { @@ -87,7 +87,7 @@ public SerializerAdapter getSerializerAdapter() { /** * Gets the BetaVoiceAgentsConversationsImpl object to access its operations. - * + * * @return the BetaVoiceAgentsConversationsImpl object. */ public BetaVoiceAgentsConversationsImpl getBetaVoiceAgentsConversations() { @@ -101,7 +101,7 @@ public BetaVoiceAgentsConversationsImpl getBetaVoiceAgentsConversations() { /** * Gets the BetaVoiceAgentsTelephoniesImpl object to access its operations. - * + * * @return the BetaVoiceAgentsTelephoniesImpl object. */ public BetaVoiceAgentsTelephoniesImpl getBetaVoiceAgentsTelephonies() { @@ -115,7 +115,7 @@ public BetaVoiceAgentsTelephoniesImpl getBetaVoiceAgentsTelephonies() { /** * Gets the BetaMemoryStoresImpl object to access its operations. - * + * * @return the BetaMemoryStoresImpl object. */ public BetaMemoryStoresImpl getBetaMemoryStores() { @@ -129,7 +129,7 @@ public BetaMemoryStoresImpl getBetaMemoryStores() { /** * Gets the BetaAgentsImpl object to access its operations. - * + * * @return the BetaAgentsImpl object. */ public BetaAgentsImpl getBetaAgents() { @@ -143,7 +143,7 @@ public BetaAgentsImpl getBetaAgents() { /** * Gets the AgentsImpl object to access its operations. - * + * * @return the AgentsImpl object. */ public AgentsImpl getAgents() { @@ -157,7 +157,7 @@ public AgentsImpl getAgents() { /** * Gets the ToolboxesImpl object to access its operations. - * + * * @return the ToolboxesImpl object. */ public ToolboxesImpl getToolboxes() { @@ -166,7 +166,7 @@ public ToolboxesImpl getToolboxes() { /** * Initializes an instance of AgentsClient client. - * + * * @param endpoint Foundry Project endpoint in the form * "https://{ai-services-account-name}.services.ai.azure.com/api/projects/{project-name}". * If you only have one Project in your Foundry Hub, or to target the default Project @@ -181,7 +181,7 @@ public AgentsClientImpl(String endpoint, AgentsServiceVersion serviceVersion) { /** * Initializes an instance of AgentsClient client. - * + * * @param httpPipeline The HTTP pipeline to send requests through. * @param endpoint Foundry Project endpoint in the form * "https://{ai-services-account-name}.services.ai.azure.com/api/projects/{project-name}". @@ -196,7 +196,7 @@ public AgentsClientImpl(HttpPipeline httpPipeline, String endpoint, AgentsServic /** * Initializes an instance of AgentsClient client. - * + * * @param httpPipeline The HTTP pipeline to send requests through. * @param serializerAdapter The serializer to serialize an object into a string. * @param endpoint Foundry Project endpoint in the form diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/AgentsImpl.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/AgentsImpl.java index 3a818cf07068f..0b349181c888a 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/AgentsImpl.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/AgentsImpl.java @@ -36,6 +36,7 @@ import com.azure.core.util.BinaryData; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; +import com.azure.core.util.UrlBuilder; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.PollingStrategyOptions; import com.azure.core.util.polling.SyncPoller; @@ -3590,7 +3591,7 @@ private Mono> listAgentsSinglePageAsync(RequestOptions .withContext(context -> service.listAgents(this.client.getEndpoint(), this.client.getServiceVersion().getVersion(), accept, requestOptions, context)) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null)); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null)); } /** @@ -3746,7 +3747,34 @@ private Mono> listAgentsSinglePageAsync(RequestOptions */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAgentsAsync(RequestOptions requestOptions) { - return new PagedFlux<>(() -> listAgentsSinglePageAsync(requestOptions)); + return listAgentsAsync(null, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAgentsAsync(String initialContinuationToken, RequestOptions requestOptions) { + return new PagedFlux<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listAgentsSinglePageAsync(requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listAgentsSinglePageAsync(requestOptionsLocal); + }); } /** @@ -3906,7 +3934,7 @@ private PagedResponse listAgentsSinglePage(RequestOptions requestOpt Response res = service.listAgentsSync(this.client.getEndpoint(), this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null); } /** @@ -4062,7 +4090,34 @@ private PagedResponse listAgentsSinglePage(RequestOptions requestOpt */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listAgents(RequestOptions requestOptions) { - return new PagedIterable<>(() -> listAgentsSinglePage(requestOptions)); + return listAgents(null, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listAgents(String initialContinuationToken, RequestOptions requestOptions) { + return new PagedIterable<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listAgentsSinglePage(requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listAgentsSinglePage(requestOptionsLocal); + }); } /** @@ -4837,7 +4892,7 @@ private Mono> listAgentVersionsSinglePageAsync(String .withContext(context -> service.listAgentVersions(this.client.getEndpoint(), agentName, this.client.getServiceVersion().getVersion(), accept, requestOptions, context)) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null)); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null)); } /** @@ -4930,7 +4985,35 @@ private Mono> listAgentVersionsSinglePageAsync(String */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAgentVersionsAsync(String agentName, RequestOptions requestOptions) { - return new PagedFlux<>(() -> listAgentVersionsSinglePageAsync(agentName, requestOptions)); + return listAgentVersionsAsync(null, agentName, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAgentVersionsAsync(String initialContinuationToken, String agentName, + RequestOptions requestOptions) { + return new PagedFlux<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listAgentVersionsSinglePageAsync(agentName, requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listAgentVersionsSinglePageAsync(agentName, requestOptionsLocal); + }); } /** @@ -5027,7 +5110,7 @@ private PagedResponse listAgentVersionsSinglePage(String agentName, Response res = service.listAgentVersionsSync(this.client.getEndpoint(), agentName, this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null); } /** @@ -5120,7 +5203,35 @@ private PagedResponse listAgentVersionsSinglePage(String agentName, */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listAgentVersions(String agentName, RequestOptions requestOptions) { - return new PagedIterable<>(() -> listAgentVersionsSinglePage(agentName, requestOptions)); + return listAgentVersions(null, agentName, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listAgentVersions(String initialContinuationToken, String agentName, + RequestOptions requestOptions) { + return new PagedIterable<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listAgentVersionsSinglePage(agentName, requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listAgentVersionsSinglePage(agentName, requestOptionsLocal); + }); } /** @@ -6225,7 +6336,7 @@ private Mono> listSessionsSinglePageAsync(String agent .withContext(context -> service.listSessions(this.client.getEndpoint(), agentName, this.client.getServiceVersion().getVersion(), accept, requestOptions, context)) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null)); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null)); } /** @@ -6280,7 +6391,35 @@ private Mono> listSessionsSinglePageAsync(String agent */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listSessionsAsync(String agentName, RequestOptions requestOptions) { - return new PagedFlux<>(() -> listSessionsSinglePageAsync(agentName, requestOptions)); + return listSessionsAsync(null, agentName, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listSessionsAsync(String initialContinuationToken, String agentName, + RequestOptions requestOptions) { + return new PagedFlux<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listSessionsSinglePageAsync(agentName, requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listSessionsSinglePageAsync(agentName, requestOptionsLocal); + }); } /** @@ -6339,7 +6478,7 @@ private PagedResponse listSessionsSinglePage(String agentName, Reque Response res = service.listSessionsSync(this.client.getEndpoint(), agentName, this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null); } /** @@ -6394,7 +6533,35 @@ private PagedResponse listSessionsSinglePage(String agentName, Reque */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listSessions(String agentName, RequestOptions requestOptions) { - return new PagedIterable<>(() -> listSessionsSinglePage(agentName, requestOptions)); + return listSessions(null, agentName, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listSessions(String initialContinuationToken, String agentName, + RequestOptions requestOptions) { + return new PagedIterable<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listSessionsSinglePage(agentName, requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listSessionsSinglePage(agentName, requestOptionsLocal); + }); } /** @@ -6731,7 +6898,7 @@ private Mono> listSessionFilesSinglePageAsync(String a .withContext(context -> service.listSessionFiles(this.client.getEndpoint(), agentName, sessionId, this.client.getServiceVersion().getVersion(), accept, requestOptions, context)) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "entries"), null, null)); + getValues(res.getValue(), "entries"), getNextLink(res.getValue(), "last_id"), null)); } /** @@ -6787,7 +6954,35 @@ private Mono> listSessionFilesSinglePageAsync(String a @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listSessionFilesAsync(String agentName, String sessionId, RequestOptions requestOptions) { - return new PagedFlux<>(() -> listSessionFilesSinglePageAsync(agentName, sessionId, requestOptions)); + return listSessionFilesAsync(null, agentName, sessionId, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listSessionFilesAsync(String initialContinuationToken, String agentName, + String sessionId, RequestOptions requestOptions) { + return new PagedFlux<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listSessionFilesSinglePageAsync(agentName, sessionId, requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listSessionFilesSinglePageAsync(agentName, sessionId, requestOptionsLocal); + }); } /** @@ -6847,7 +7042,7 @@ private PagedResponse listSessionFilesSinglePage(String agentName, S Response res = service.listSessionFilesSync(this.client.getEndpoint(), agentName, sessionId, this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "entries"), null, null); + getValues(res.getValue(), "entries"), getNextLink(res.getValue(), "last_id"), null); } /** @@ -6903,7 +7098,35 @@ private PagedResponse listSessionFilesSinglePage(String agentName, S @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listSessionFiles(String agentName, String sessionId, RequestOptions requestOptions) { - return new PagedIterable<>(() -> listSessionFilesSinglePage(agentName, sessionId, requestOptions)); + return listSessionFiles(null, agentName, sessionId, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listSessionFiles(String initialContinuationToken, String agentName, + String sessionId, RequestOptions requestOptions) { + return new PagedIterable<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listSessionFilesSinglePage(agentName, sessionId, requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listSessionFilesSinglePage(agentName, sessionId, requestOptionsLocal); + }); } /** @@ -9219,7 +9442,7 @@ private Mono> listOptimizationJobsSinglePageAsync(Requ .withContext(context -> service.listOptimizationJobs(this.client.getEndpoint(), this.client.getServiceVersion().getVersion(), accept, requestOptions, context)) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null)); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null)); } /** @@ -9344,7 +9567,35 @@ private Mono> listOptimizationJobsSinglePageAsync(Requ */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listOptimizationJobsAsync(RequestOptions requestOptions) { - return new PagedFlux<>(() -> listOptimizationJobsSinglePageAsync(requestOptions)); + return listOptimizationJobsAsync(null, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listOptimizationJobsAsync(String initialContinuationToken, + RequestOptions requestOptions) { + return new PagedFlux<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listOptimizationJobsSinglePageAsync(requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listOptimizationJobsSinglePageAsync(requestOptionsLocal); + }); } /** @@ -9473,7 +9724,7 @@ private PagedResponse listOptimizationJobsSinglePage(RequestOptions Response res = service.listOptimizationJobsSync(this.client.getEndpoint(), this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null); } /** @@ -9598,7 +9849,35 @@ private PagedResponse listOptimizationJobsSinglePage(RequestOptions */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listOptimizationJobs(RequestOptions requestOptions) { - return new PagedIterable<>(() -> listOptimizationJobsSinglePage(requestOptions)); + return listOptimizationJobs(null, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listOptimizationJobs(String initialContinuationToken, + RequestOptions requestOptions) { + return new PagedIterable<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listOptimizationJobsSinglePage(requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listOptimizationJobsSinglePage(requestOptionsLocal); + }); } /** @@ -9928,7 +10207,7 @@ private Mono> listOptimizationCandidatesSinglePageAsyn .withContext(context -> service.listOptimizationCandidates(this.client.getEndpoint(), jobId, this.client.getServiceVersion().getVersion(), accept, requestOptions, context)) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null)); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null)); } /** @@ -10000,7 +10279,35 @@ private Mono> listOptimizationCandidatesSinglePageAsyn */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listOptimizationCandidatesAsync(String jobId, RequestOptions requestOptions) { - return new PagedFlux<>(() -> listOptimizationCandidatesSinglePageAsync(jobId, requestOptions)); + return listOptimizationCandidatesAsync(null, jobId, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listOptimizationCandidatesAsync(String initialContinuationToken, String jobId, + RequestOptions requestOptions) { + return new PagedFlux<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listOptimizationCandidatesSinglePageAsync(jobId, requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listOptimizationCandidatesSinglePageAsync(jobId, requestOptionsLocal); + }); } /** @@ -10077,7 +10384,7 @@ private PagedResponse listOptimizationCandidatesSinglePage(String jo Response res = service.listOptimizationCandidatesSync(this.client.getEndpoint(), jobId, this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null); } /** @@ -10149,7 +10456,35 @@ private PagedResponse listOptimizationCandidatesSinglePage(String jo */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listOptimizationCandidates(String jobId, RequestOptions requestOptions) { - return new PagedIterable<>(() -> listOptimizationCandidatesSinglePage(jobId, requestOptions)); + return listOptimizationCandidates(null, jobId, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listOptimizationCandidates(String initialContinuationToken, String jobId, + RequestOptions requestOptions) { + return new PagedIterable<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listOptimizationCandidatesSinglePage(jobId, requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listOptimizationCandidatesSinglePage(jobId, requestOptionsLocal); + }); } /** @@ -10452,7 +10787,7 @@ private Mono> listAgentConversationsSinglePageAsync(Re .withContext( context -> service.listAgentConversations(this.client.getEndpoint(), accept, requestOptions, context)) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null)); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null)); } /** @@ -10516,7 +10851,35 @@ private Mono> listAgentConversationsSinglePageAsync(Re */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAgentConversationsAsync(RequestOptions requestOptions) { - return new PagedFlux<>(() -> listAgentConversationsSinglePageAsync(requestOptions)); + return listAgentConversationsAsync(null, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAgentConversationsAsync(String initialContinuationToken, + RequestOptions requestOptions) { + return new PagedFlux<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listAgentConversationsSinglePageAsync(requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listAgentConversationsSinglePageAsync(requestOptionsLocal); + }); } /** @@ -10584,7 +10947,7 @@ private PagedResponse listAgentConversationsSinglePage(RequestOption Response res = service.listAgentConversationsSync(this.client.getEndpoint(), accept, requestOptions, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null); } /** @@ -10648,7 +11011,35 @@ private PagedResponse listAgentConversationsSinglePage(RequestOption */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listAgentConversations(RequestOptions requestOptions) { - return new PagedIterable<>(() -> listAgentConversationsSinglePage(requestOptions)); + return listAgentConversations(null, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listAgentConversations(String initialContinuationToken, + RequestOptions requestOptions) { + return new PagedIterable<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listAgentConversationsSinglePage(requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listAgentConversationsSinglePage(requestOptionsLocal); + }); } private List getValues(BinaryData binaryData, String... path) { @@ -10667,6 +11058,9 @@ private List getValues(BinaryData binaryData, String... path) { private String getNextLink(BinaryData binaryData, String... path) { try { Object value = binaryData.toObject(Map.class); + if (Boolean.FALSE.equals(((Map) value).get("has_more"))) { + return null; + } for (String segment : path) { value = ((Map) value).get(segment); } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/BetaAgentsImpl.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/BetaAgentsImpl.java index d95b6e1ca2565..3724b0e634b89 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/BetaAgentsImpl.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/BetaAgentsImpl.java @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) TypeSpec Code Generator. - package com.azure.ai.agents.implementation; import com.azure.ai.agents.AgentsServiceVersion; @@ -32,6 +31,7 @@ * An instance of this class provides access to all the operations defined in BetaAgents. */ public final class BetaAgentsImpl { + /** * The proxy service used to perform REST calls. */ @@ -44,7 +44,7 @@ public final class BetaAgentsImpl { /** * Initializes an instance of BetaAgentsImpl. - * + * * @param client the instance of the service client containing this operation class. */ BetaAgentsImpl(AgentsClientImpl client) { @@ -55,7 +55,7 @@ public final class BetaAgentsImpl { /** * Gets Service version. - * + * * @return the serviceVersion value. */ public AgentsServiceVersion getServiceVersion() { @@ -69,6 +69,7 @@ public AgentsServiceVersion getServiceVersion() { @Host("{endpoint}") @ServiceInterface(name = "AgentsClientBetaAgents") public interface BetaAgentsService { + @Post("/agents:generate") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @@ -94,7 +95,7 @@ Response createAgentFromPromptSync(@HostParam("endpoint") String end /** * Generate an agent - * + * * Generates and creates an agent from kind-specific high-level inputs. * The generated definition remains fully editable through the standard agent versioning operations. *

Request Body Schema

@@ -222,7 +223,7 @@ Response createAgentFromPromptSync(@HostParam("endpoint") String end * } * } * - * + * * @param body The kind-specific inputs for generating and creating an agent. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -242,7 +243,7 @@ public Mono> createAgentFromPromptWithResponseAsync(BinaryD /** * Generate an agent - * + * * Generates and creates an agent from kind-specific high-level inputs. * The generated definition remains fully editable through the standard agent versioning operations. *

Request Body Schema

@@ -370,7 +371,7 @@ public Mono> createAgentFromPromptWithResponseAsync(BinaryD * } * } * - * + * * @param body The kind-specific inputs for generating and creating an agent. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/BetaMemoryStoresImpl.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/BetaMemoryStoresImpl.java index 62f5d6dd90cc8..2d7f218f719b9 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/BetaMemoryStoresImpl.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/BetaMemoryStoresImpl.java @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) TypeSpec Code Generator. - package com.azure.ai.agents.implementation; import com.azure.ai.agents.AgentsServiceVersion; @@ -35,6 +34,7 @@ import com.azure.core.util.BinaryData; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; +import com.azure.core.util.UrlBuilder; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.PollingStrategyOptions; import com.azure.core.util.polling.SyncPoller; @@ -49,6 +49,7 @@ * An instance of this class provides access to all the operations defined in BetaMemoryStores. */ public final class BetaMemoryStoresImpl { + /** * The proxy service used to perform REST calls. */ @@ -61,7 +62,7 @@ public final class BetaMemoryStoresImpl { /** * Initializes an instance of BetaMemoryStoresImpl. - * + * * @param client the instance of the service client containing this operation class. */ BetaMemoryStoresImpl(AgentsClientImpl client) { @@ -72,7 +73,7 @@ public final class BetaMemoryStoresImpl { /** * Gets Service version. - * + * * @return the serviceVersion value. */ public AgentsServiceVersion getServiceVersion() { @@ -86,6 +87,7 @@ public AgentsServiceVersion getServiceVersion() { @Host("{endpoint}") @ServiceInterface(name = "AgentsClientBetaMemoryStores") public interface BetaMemoryStoresService { + @Post("/memory_stores") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @@ -398,7 +400,7 @@ Response internalDeleteMemorySync(@HostParam("endpoint") String endp /** * Create a memory store - * + * * Creates a memory store resource with the provided configuration. *

Request Body Schema

* @@ -437,7 +439,7 @@ Response internalDeleteMemorySync(@HostParam("endpoint") String endp * } * } * - * + * * @param createMemoryStoreRequest The createMemoryStoreRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -459,7 +461,7 @@ public Mono> createMemoryStoreWithResponseAsync(BinaryData /** * Create a memory store - * + * * Creates a memory store resource with the provided configuration. *

Request Body Schema

* @@ -498,7 +500,7 @@ public Mono> createMemoryStoreWithResponseAsync(BinaryData * } * } * - * + * * @param createMemoryStoreRequest The createMemoryStoreRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -518,7 +520,7 @@ public Response createMemoryStoreWithResponse(BinaryData createMemor /** * Update a memory store - * + * * Updates the specified memory store with the supplied configuration changes. *

Request Body Schema

* @@ -553,7 +555,7 @@ public Response createMemoryStoreWithResponse(BinaryData createMemor * } * } * - * + * * @param name The name of the memory store to update. * @param updateMemoryStoreRequest The updateMemoryStoreRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -576,7 +578,7 @@ public Mono> updateMemoryStoreWithResponseAsync(String name /** * Update a memory store - * + * * Updates the specified memory store with the supplied configuration changes. *

Request Body Schema

* @@ -611,7 +613,7 @@ public Mono> updateMemoryStoreWithResponseAsync(String name * } * } * - * + * * @param name The name of the memory store to update. * @param updateMemoryStoreRequest The updateMemoryStoreRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -633,7 +635,7 @@ public Response updateMemoryStoreWithResponse(String name, BinaryDat /** * Get a memory store - * + * * Retrieves the specified memory store and its current configuration. *

Response Body Schema

* @@ -655,7 +657,7 @@ public Response updateMemoryStoreWithResponse(String name, BinaryDat * } * } * - * + * * @param name The name of the memory store to retrieve. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -663,7 +665,7 @@ public Response updateMemoryStoreWithResponse(String name, BinaryDat * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a memory store - * + * * Retrieves the specified memory store and its current configuration along with {@link Response} on successful * completion of {@link Mono}. */ @@ -676,7 +678,7 @@ public Mono> getMemoryStoreWithResponseAsync(String name, R /** * Get a memory store - * + * * Retrieves the specified memory store and its current configuration. *

Response Body Schema

* @@ -698,7 +700,7 @@ public Mono> getMemoryStoreWithResponseAsync(String name, R * } * } * - * + * * @param name The name of the memory store to retrieve. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -706,7 +708,7 @@ public Mono> getMemoryStoreWithResponseAsync(String name, R * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a memory store - * + * * Retrieves the specified memory store and its current configuration along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -718,7 +720,7 @@ public Response getMemoryStoreWithResponse(String name, RequestOptio /** * List memory stores - * + * * Returns the memory stores available to the caller. *

Query Parameters

* @@ -760,7 +762,7 @@ public Response getMemoryStoreWithResponse(String name, RequestOptio * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -776,12 +778,12 @@ private Mono> listMemoryStoresSinglePageAsync(RequestO .withContext(context -> service.listMemoryStores(this.client.getEndpoint(), this.client.getServiceVersion().getVersion(), accept, requestOptions, context)) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null)); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null)); } /** * List memory stores - * + * * Returns the memory stores available to the caller. *

Query Parameters

*
@@ -823,7 +825,7 @@ private Mono> listMemoryStoresSinglePageAsync(RequestO * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -833,12 +835,39 @@ private Mono> listMemoryStoresSinglePageAsync(RequestO */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listMemoryStoresAsync(RequestOptions requestOptions) { - return new PagedFlux<>(() -> listMemoryStoresSinglePageAsync(requestOptions)); + return listMemoryStoresAsync(null, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listMemoryStoresAsync(String initialContinuationToken, RequestOptions requestOptions) { + return new PagedFlux<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listMemoryStoresSinglePageAsync(requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listMemoryStoresSinglePageAsync(requestOptionsLocal); + }); } /** * List memory stores - * + * * Returns the memory stores available to the caller. *

Query Parameters

*
@@ -880,7 +909,7 @@ public PagedFlux listMemoryStoresAsync(RequestOptions requestOptions * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -894,12 +923,12 @@ private PagedResponse listMemoryStoresSinglePage(RequestOptions requ Response res = service.listMemoryStoresSync(this.client.getEndpoint(), this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null); } /** * List memory stores - * + * * Returns the memory stores available to the caller. *

Query Parameters

*
@@ -941,7 +970,7 @@ private PagedResponse listMemoryStoresSinglePage(RequestOptions requ * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -951,12 +980,39 @@ private PagedResponse listMemoryStoresSinglePage(RequestOptions requ */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listMemoryStores(RequestOptions requestOptions) { - return new PagedIterable<>(() -> listMemoryStoresSinglePage(requestOptions)); + return listMemoryStores(null, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listMemoryStores(String initialContinuationToken, RequestOptions requestOptions) { + return new PagedIterable<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listMemoryStoresSinglePage(requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listMemoryStoresSinglePage(requestOptionsLocal); + }); } /** * Delete a memory store - * + * * Deletes the specified memory store. *

Response Body Schema

* @@ -969,7 +1025,7 @@ public PagedIterable listMemoryStores(RequestOptions requestOptions) * } * } * - * + * * @param name The name of the memory store to delete. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -988,7 +1044,7 @@ public Mono> internalDeleteMemoryStoreWithResponseAsync(Str /** * Delete a memory store - * + * * Deletes the specified memory store. *

Response Body Schema

* @@ -1001,7 +1057,7 @@ public Mono> internalDeleteMemoryStoreWithResponseAsync(Str * } * } * - * + * * @param name The name of the memory store to delete. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1019,7 +1075,7 @@ public Response internalDeleteMemoryStoreWithResponse(String name, R /** * Search memories - * + * * Searches the specified memory store for memories relevant to the provided conversation context. *

Request Body Schema

* @@ -1071,7 +1127,7 @@ public Response internalDeleteMemoryStoreWithResponse(String name, R * } * } * - * + * * @param name The name of the memory store to search. * @param searchMemoriesRequest The searchMemoriesRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1093,7 +1149,7 @@ public Mono> internalSearchMemoriesWithResponseAsync(String /** * Search memories - * + * * Searches the specified memory store for memories relevant to the provided conversation context. *

Request Body Schema

* @@ -1145,7 +1201,7 @@ public Mono> internalSearchMemoriesWithResponseAsync(String * } * } * - * + * * @param name The name of the memory store to search. * @param searchMemoriesRequest The searchMemoriesRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1167,7 +1223,7 @@ public Response internalSearchMemoriesWithResponse(String name, Bina /** * Update memories - * + * * Starts an update that writes conversation memories into the specified memory store. * The operation returns a long-running status location for polling the update result. *

Request Body Schema

@@ -1245,7 +1301,7 @@ public Response internalSearchMemoriesWithResponse(String name, Bina * } * } * - * + * * @param name The name of the memory store to update. * @param updateMemoriesRequest The updateMemoriesRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1268,7 +1324,7 @@ private Mono> internalUpdateMemoriesWithResponseAsync(Strin /** * Update memories - * + * * Starts an update that writes conversation memories into the specified memory store. * The operation returns a long-running status location for polling the update result. *

Request Body Schema

@@ -1346,7 +1402,7 @@ private Mono> internalUpdateMemoriesWithResponseAsync(Strin * } * } * - * + * * @param name The name of the memory store to update. * @param updateMemoriesRequest The updateMemoriesRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1368,7 +1424,7 @@ private Response internalUpdateMemoriesWithResponse(String name, Bin /** * Update memories - * + * * Starts an update that writes conversation memories into the specified memory store. * The operation returns a long-running status location for polling the update result. *

Request Body Schema

@@ -1446,7 +1502,7 @@ private Response internalUpdateMemoriesWithResponse(String name, Bin * } * } * - * + * * @param name The name of the memory store to update. * @param updateMemoriesRequest The updateMemoriesRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1476,7 +1532,7 @@ private Response internalUpdateMemoriesWithResponse(String name, Bin /** * Update memories - * + * * Starts an update that writes conversation memories into the specified memory store. * The operation returns a long-running status location for polling the update result. *

Request Body Schema

@@ -1554,7 +1610,7 @@ private Response internalUpdateMemoriesWithResponse(String name, Bin * } * } * - * + * * @param name The name of the memory store to update. * @param updateMemoriesRequest The updateMemoriesRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1583,7 +1639,7 @@ public SyncPoller b /** * Update memories - * + * * Starts an update that writes conversation memories into the specified memory store. * The operation returns a long-running status location for polling the update result. *

Request Body Schema

@@ -1661,7 +1717,7 @@ public SyncPoller b * } * } * - * + * * @param name The name of the memory store to update. * @param updateMemoriesRequest The updateMemoriesRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1689,7 +1745,7 @@ public PollerFlux beginInternalUpdateMemoriesAsync(Strin /** * Update memories - * + * * Starts an update that writes conversation memories into the specified memory store. * The operation returns a long-running status location for polling the update result. *

Request Body Schema

@@ -1767,7 +1823,7 @@ public PollerFlux beginInternalUpdateMemoriesAsync(Strin * } * } * - * + * * @param name The name of the memory store to update. * @param updateMemoriesRequest The updateMemoriesRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1795,7 +1851,7 @@ public SyncPoller beginInternalUpdateMemories(String nam /** * Get an update result - * + * * Retrieves the status and result of a memory store update operation. *

Response Body Schema

* @@ -1857,7 +1913,7 @@ public SyncPoller beginInternalUpdateMemories(String nam * } * } * - * + * * @param name The name of the memory store. * @param updateId The ID of the memory update operation. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1866,7 +1922,7 @@ public SyncPoller beginInternalUpdateMemories(String nam * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return an update result - * + * * Retrieves the status and result of a memory store update operation along with {@link Response} on successful * completion of {@link Mono}. */ @@ -1880,7 +1936,7 @@ public Mono> getUpdateResultWithResponseAsync(String name, /** * Get an update result - * + * * Retrieves the status and result of a memory store update operation. *

Response Body Schema

* @@ -1942,7 +1998,7 @@ public Mono> getUpdateResultWithResponseAsync(String name, * } * } * - * + * * @param name The name of the memory store. * @param updateId The ID of the memory update operation. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1951,7 +2007,7 @@ public Mono> getUpdateResultWithResponseAsync(String name, * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return an update result - * + * * Retrieves the status and result of a memory store update operation along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1964,7 +2020,7 @@ public Response getUpdateResultWithResponse(String name, String upda /** * Delete memories by scope - * + * * Deletes all memories in the specified memory store that are associated with the provided scope. *

Request Body Schema

* @@ -1988,7 +2044,7 @@ public Response getUpdateResultWithResponse(String name, String upda * } * } * - * + * * @param name The name of the memory store. * @param deleteScopeRequest The deleteScopeRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2011,7 +2067,7 @@ public Mono> internalDeleteScopeWithResponseAsync(String na /** * Delete memories by scope - * + * * Deletes all memories in the specified memory store that are associated with the provided scope. *

Request Body Schema

* @@ -2035,7 +2091,7 @@ public Mono> internalDeleteScopeWithResponseAsync(String na * } * } * - * + * * @param name The name of the memory store. * @param deleteScopeRequest The deleteScopeRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2057,7 +2113,7 @@ public Response internalDeleteScopeWithResponse(String name, BinaryD /** * Create a memory item - * + * * Creates a memory item in the specified memory store. *

Request Body Schema

* @@ -2084,7 +2140,7 @@ public Response internalDeleteScopeWithResponse(String name, BinaryD * } * } * - * + * * @param name The name of the memory store. * @param createMemoryRequest The createMemoryRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2107,7 +2163,7 @@ public Mono> createMemoryWithResponseAsync(String name, Bin /** * Create a memory item - * + * * Creates a memory item in the specified memory store. *

Request Body Schema

* @@ -2134,7 +2190,7 @@ public Mono> createMemoryWithResponseAsync(String name, Bin * } * } * - * + * * @param name The name of the memory store. * @param createMemoryRequest The createMemoryRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2156,7 +2212,7 @@ public Response createMemoryWithResponse(String name, BinaryData cre /** * Update a memory item - * + * * Updates the specified memory item in the memory store. *

Request Body Schema

* @@ -2181,7 +2237,7 @@ public Response createMemoryWithResponse(String name, BinaryData cre * } * } * - * + * * @param name The name of the memory store. * @param memoryId The ID of the memory item to update. * @param updateMemoryRequest The updateMemoryRequest parameter. @@ -2205,7 +2261,7 @@ public Mono> updateMemoryWithResponseAsync(String name, Str /** * Update a memory item - * + * * Updates the specified memory item in the memory store. *

Request Body Schema

* @@ -2230,7 +2286,7 @@ public Mono> updateMemoryWithResponseAsync(String name, Str * } * } * - * + * * @param name The name of the memory store. * @param memoryId The ID of the memory item to update. * @param updateMemoryRequest The updateMemoryRequest parameter. @@ -2254,7 +2310,7 @@ public Response updateMemoryWithResponse(String name, String memoryI /** * Get a memory item - * + * * Retrieves the specified memory item from the memory store. *

Response Body Schema

* @@ -2269,7 +2325,7 @@ public Response updateMemoryWithResponse(String name, String memoryI * } * } * - * + * * @param name The name of the memory store. * @param memoryId The ID of the memory item to retrieve. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2278,7 +2334,7 @@ public Response updateMemoryWithResponse(String name, String memoryI * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a memory item - * + * * Retrieves the specified memory item from the memory store along with {@link Response} on successful completion of * {@link Mono}. */ @@ -2292,7 +2348,7 @@ public Mono> getMemoryWithResponseAsync(String name, String /** * Get a memory item - * + * * Retrieves the specified memory item from the memory store. *

Response Body Schema

* @@ -2307,7 +2363,7 @@ public Mono> getMemoryWithResponseAsync(String name, String * } * } * - * + * * @param name The name of the memory store. * @param memoryId The ID of the memory item to retrieve. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2316,7 +2372,7 @@ public Mono> getMemoryWithResponseAsync(String name, String * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a memory item - * + * * Retrieves the specified memory item from the memory store along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -2328,7 +2384,7 @@ public Response getMemoryWithResponse(String name, String memoryId, /** * List memory items - * + * * Returns memory items from the specified memory store. *

Query Parameters

*
@@ -2375,7 +2431,7 @@ public Response getMemoryWithResponse(String name, String memoryId, * } * } * - * + * * @param name The name of the memory store. * @param listMemoriesRequest The listMemoriesRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2394,12 +2450,12 @@ private Mono> listMemoriesSinglePageAsync(String name, .withContext(context -> service.listMemories(this.client.getEndpoint(), name, this.client.getServiceVersion().getVersion(), accept, listMemoriesRequest, requestOptions, context)) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null)); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null)); } /** * List memory items - * + * * Returns memory items from the specified memory store. *

Query Parameters

*
@@ -2446,7 +2502,7 @@ private Mono> listMemoriesSinglePageAsync(String name, * } * } * - * + * * @param name The name of the memory store. * @param listMemoriesRequest The listMemoriesRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2459,12 +2515,40 @@ private Mono> listMemoriesSinglePageAsync(String name, @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listMemoriesAsync(String name, BinaryData listMemoriesRequest, RequestOptions requestOptions) { - return new PagedFlux<>(() -> listMemoriesSinglePageAsync(name, listMemoriesRequest, requestOptions)); + return listMemoriesAsync(null, name, listMemoriesRequest, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listMemoriesAsync(String initialContinuationToken, String name, + BinaryData listMemoriesRequest, RequestOptions requestOptions) { + return new PagedFlux<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listMemoriesSinglePageAsync(name, listMemoriesRequest, requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listMemoriesSinglePageAsync(name, listMemoriesRequest, requestOptionsLocal); + }); } /** * List memory items - * + * * Returns memory items from the specified memory store. *

Query Parameters

*
@@ -2511,7 +2595,7 @@ public PagedFlux listMemoriesAsync(String name, BinaryData listMemor * } * } * - * + * * @param name The name of the memory store. * @param listMemoriesRequest The listMemoriesRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2528,12 +2612,12 @@ private PagedResponse listMemoriesSinglePage(String name, BinaryData Response res = service.listMemoriesSync(this.client.getEndpoint(), name, this.client.getServiceVersion().getVersion(), accept, listMemoriesRequest, requestOptions, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null); } /** * List memory items - * + * * Returns memory items from the specified memory store. *

Query Parameters

*
@@ -2580,7 +2664,7 @@ private PagedResponse listMemoriesSinglePage(String name, BinaryData * } * } * - * + * * @param name The name of the memory store. * @param listMemoriesRequest The listMemoriesRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2593,12 +2677,40 @@ private PagedResponse listMemoriesSinglePage(String name, BinaryData @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listMemories(String name, BinaryData listMemoriesRequest, RequestOptions requestOptions) { - return new PagedIterable<>(() -> listMemoriesSinglePage(name, listMemoriesRequest, requestOptions)); + return listMemories(null, name, listMemoriesRequest, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listMemories(String initialContinuationToken, String name, + BinaryData listMemoriesRequest, RequestOptions requestOptions) { + return new PagedIterable<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listMemoriesSinglePage(name, listMemoriesRequest, requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listMemoriesSinglePage(name, listMemoriesRequest, requestOptionsLocal); + }); } /** * Delete a memory item - * + * * Deletes the specified memory item from the memory store. *

Response Body Schema

* @@ -2611,7 +2723,7 @@ public PagedIterable listMemories(String name, BinaryData listMemori * } * } * - * + * * @param name The name of the memory store. * @param memoryId The ID of the memory item to delete. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2632,7 +2744,7 @@ public Mono> internalDeleteMemoryWithResponseAsync(String n /** * Delete a memory item - * + * * Deletes the specified memory item from the memory store. *

Response Body Schema

* @@ -2645,7 +2757,7 @@ public Mono> internalDeleteMemoryWithResponseAsync(String n * } * } * - * + * * @param name The name of the memory store. * @param memoryId The ID of the memory item to delete. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2679,6 +2791,9 @@ private List getValues(BinaryData binaryData, String... path) { private String getNextLink(BinaryData binaryData, String... path) { try { Object value = binaryData.toObject(Map.class); + if (Boolean.FALSE.equals(((Map) value).get("has_more"))) { + return null; + } for (String segment : path) { value = ((Map) value).get(segment); } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/BetaVoiceAgentsConversationsImpl.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/BetaVoiceAgentsConversationsImpl.java index 81566299913c3..c97b8c8e88488 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/BetaVoiceAgentsConversationsImpl.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/BetaVoiceAgentsConversationsImpl.java @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) TypeSpec Code Generator. - package com.azure.ai.agents.implementation; import com.azure.ai.agents.AgentsServiceVersion; @@ -31,6 +30,7 @@ import com.azure.core.util.BinaryData; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; +import com.azure.core.util.UrlBuilder; import java.util.List; import java.util.Map; import java.util.stream.Collectors; @@ -40,6 +40,7 @@ * An instance of this class provides access to all the operations defined in BetaVoiceAgentsConversations. */ public final class BetaVoiceAgentsConversationsImpl { + /** * The proxy service used to perform REST calls. */ @@ -52,7 +53,7 @@ public final class BetaVoiceAgentsConversationsImpl { /** * Initializes an instance of BetaVoiceAgentsConversationsImpl. - * + * * @param client the instance of the service client containing this operation class. */ BetaVoiceAgentsConversationsImpl(AgentsClientImpl client) { @@ -63,7 +64,7 @@ public final class BetaVoiceAgentsConversationsImpl { /** * Gets Service version. - * + * * @return the serviceVersion value. */ public AgentsServiceVersion getServiceVersion() { @@ -77,6 +78,7 @@ public AgentsServiceVersion getServiceVersion() { @Host("{endpoint}") @ServiceInterface(name = "AgentsClientBetaVoiceAgentsConversations") public interface BetaVoiceAgentsConversationsService { + @Get("/agents/{agent_name}/endpoint/protocols/voice/conversations") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @@ -384,7 +386,7 @@ Response downloadAgentConversationAudioSync(@HostParam("endpoint") S /** * List voice agent conversations - * + * * Returns the conversations persisted for the specified voice agent endpoint. * Conversations are present when the session's effective `store` setting is `true`, whether inherited from the * agent definition or enabled by the WebSocket session override. @@ -466,7 +468,7 @@ Response downloadAgentConversationAudioSync(@HostParam("endpoint") S * } * } * - * + * * @param agentName The name of the agent. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -484,12 +486,12 @@ private Mono> listAgentConversationsSinglePageAsync(St .withContext(context -> service.listAgentConversations(this.client.getEndpoint(), agentName, this.client.getServiceVersion().getVersion(), accept, requestOptions, context)) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null)); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null)); } /** * List voice agent conversations - * + * * Returns the conversations persisted for the specified voice agent endpoint. * Conversations are present when the session's effective `store` setting is `true`, whether inherited from the * agent definition or enabled by the WebSocket session override. @@ -571,7 +573,7 @@ private Mono> listAgentConversationsSinglePageAsync(St * } * } * - * + * * @param agentName The name of the agent. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -582,12 +584,40 @@ private Mono> listAgentConversationsSinglePageAsync(St */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAgentConversationsAsync(String agentName, RequestOptions requestOptions) { - return new PagedFlux<>(() -> listAgentConversationsSinglePageAsync(agentName, requestOptions)); + return listAgentConversationsAsync(null, agentName, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAgentConversationsAsync(String initialContinuationToken, String agentName, + RequestOptions requestOptions) { + return new PagedFlux<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listAgentConversationsSinglePageAsync(agentName, requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listAgentConversationsSinglePageAsync(agentName, requestOptionsLocal); + }); } /** * List voice agent conversations - * + * * Returns the conversations persisted for the specified voice agent endpoint. * Conversations are present when the session's effective `store` setting is `true`, whether inherited from the * agent definition or enabled by the WebSocket session override. @@ -669,7 +699,7 @@ public PagedFlux listAgentConversationsAsync(String agentName, Reque * } * } * - * + * * @param agentName The name of the agent. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -685,12 +715,12 @@ private PagedResponse listAgentConversationsSinglePage(String agentN Response res = service.listAgentConversationsSync(this.client.getEndpoint(), agentName, this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null); } /** * List voice agent conversations - * + * * Returns the conversations persisted for the specified voice agent endpoint. * Conversations are present when the session's effective `store` setting is `true`, whether inherited from the * agent definition or enabled by the WebSocket session override. @@ -772,7 +802,7 @@ private PagedResponse listAgentConversationsSinglePage(String agentN * } * } * - * + * * @param agentName The name of the agent. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -783,12 +813,40 @@ private PagedResponse listAgentConversationsSinglePage(String agentN */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listAgentConversations(String agentName, RequestOptions requestOptions) { - return new PagedIterable<>(() -> listAgentConversationsSinglePage(agentName, requestOptions)); + return listAgentConversations(null, agentName, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listAgentConversations(String initialContinuationToken, String agentName, + RequestOptions requestOptions) { + return new PagedIterable<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listAgentConversationsSinglePage(agentName, requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listAgentConversationsSinglePage(agentName, requestOptionsLocal); + }); } /** * Get a voice agent conversation - * + * * Retrieves a single conversation recorded for the specified voice agent endpoint by its id. * Returns `404` when the conversation was not persisted (`store = false`) or does not exist. *

Response Body Schema

@@ -849,7 +907,7 @@ public PagedIterable listAgentConversations(String agentName, Reques * } * } * - * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation to retrieve. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -858,7 +916,7 @@ public PagedIterable listAgentConversations(String agentName, Reques * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a voice agent conversation - * + * * Retrieves a single conversation recorded for the specified voice agent endpoint by its id. * Returns `404` when the conversation was not persisted (`store = false`) or does not exist along with * {@link Response} on successful completion of {@link Mono}. @@ -873,7 +931,7 @@ public Mono> getAgentConversationWithResponseAsync(String a /** * Get a voice agent conversation - * + * * Retrieves a single conversation recorded for the specified voice agent endpoint by its id. * Returns `404` when the conversation was not persisted (`store = false`) or does not exist. *

Response Body Schema

@@ -934,7 +992,7 @@ public Mono> getAgentConversationWithResponseAsync(String a * } * } * - * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation to retrieve. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -943,7 +1001,7 @@ public Mono> getAgentConversationWithResponseAsync(String a * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a voice agent conversation - * + * * Retrieves a single conversation recorded for the specified voice agent endpoint by its id. * Returns `404` when the conversation was not persisted (`store = false`) or does not exist along with * {@link Response}. @@ -958,10 +1016,10 @@ public Response getAgentConversationWithResponse(String agentName, S /** * Delete a voice agent conversation - * + * * Deletes a conversation and all of its stored data — responses, items, and any audio (cascade). This is * the customer's explicit data-deletion control for voice conversations. - * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation to delete. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -980,10 +1038,10 @@ public Mono> deleteAgentConversationWithResponseAsync(String agen /** * Delete a voice agent conversation - * + * * Deletes a conversation and all of its stored data — responses, items, and any audio (cascade). This is * the customer's explicit data-deletion control for voice conversations. - * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation to delete. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1002,7 +1060,7 @@ public Response deleteAgentConversationWithResponse(String agentName, Stri /** * List responses in a voice agent conversation - * + * * Returns a paged collection of the responses (model inference turns) recorded for the specified * conversation. The per-response `output` projection may be omitted here; use the response-items route * for the canonical paged output. Returns `404` when the conversation was not persisted (`store = false`). @@ -1093,7 +1151,7 @@ public Response deleteAgentConversationWithResponse(String agentName, Stri * } * } * - * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation whose responses are listed. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1112,12 +1170,12 @@ private Mono> listAgentConversationResponsesSinglePage .withContext(context -> service.listAgentConversationResponses(this.client.getEndpoint(), agentName, conversationId, this.client.getServiceVersion().getVersion(), accept, requestOptions, context)) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null)); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null)); } /** * List responses in a voice agent conversation - * + * * Returns a paged collection of the responses (model inference turns) recorded for the specified * conversation. The per-response `output` projection may be omitted here; use the response-items route * for the canonical paged output. Returns `404` when the conversation was not persisted (`store = false`). @@ -1208,7 +1266,7 @@ private Mono> listAgentConversationResponsesSinglePage * } * } * - * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation whose responses are listed. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1221,13 +1279,40 @@ private Mono> listAgentConversationResponsesSinglePage @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAgentConversationResponsesAsync(String agentName, String conversationId, RequestOptions requestOptions) { - return new PagedFlux<>( - () -> listAgentConversationResponsesSinglePageAsync(agentName, conversationId, requestOptions)); + return listAgentConversationResponsesAsync(null, agentName, conversationId, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAgentConversationResponsesAsync(String initialContinuationToken, String agentName, + String conversationId, RequestOptions requestOptions) { + return new PagedFlux<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listAgentConversationResponsesSinglePageAsync(agentName, conversationId, requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listAgentConversationResponsesSinglePageAsync(agentName, conversationId, requestOptionsLocal); + }); } /** * List responses in a voice agent conversation - * + * * Returns a paged collection of the responses (model inference turns) recorded for the specified * conversation. The per-response `output` projection may be omitted here; use the response-items route * for the canonical paged output. Returns `404` when the conversation was not persisted (`store = false`). @@ -1318,7 +1403,7 @@ public PagedFlux listAgentConversationResponsesAsync(String agentNam * } * } * - * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation whose responses are listed. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1335,12 +1420,12 @@ private PagedResponse listAgentConversationResponsesSinglePage(Strin Response res = service.listAgentConversationResponsesSync(this.client.getEndpoint(), agentName, conversationId, this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null); } /** * List responses in a voice agent conversation - * + * * Returns a paged collection of the responses (model inference turns) recorded for the specified * conversation. The per-response `output` projection may be omitted here; use the response-items route * for the canonical paged output. Returns `404` when the conversation was not persisted (`store = false`). @@ -1431,7 +1516,7 @@ private PagedResponse listAgentConversationResponsesSinglePage(Strin * } * } * - * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation whose responses are listed. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1444,13 +1529,40 @@ private PagedResponse listAgentConversationResponsesSinglePage(Strin @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listAgentConversationResponses(String agentName, String conversationId, RequestOptions requestOptions) { - return new PagedIterable<>( - () -> listAgentConversationResponsesSinglePage(agentName, conversationId, requestOptions)); + return listAgentConversationResponses(null, agentName, conversationId, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listAgentConversationResponses(String initialContinuationToken, String agentName, + String conversationId, RequestOptions requestOptions) { + return new PagedIterable<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listAgentConversationResponsesSinglePage(agentName, conversationId, requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listAgentConversationResponsesSinglePage(agentName, conversationId, requestOptionsLocal); + }); } /** * Get a voice agent conversation response - * + * * Retrieves a single response from the specified conversation by its id, including its `output` items, * `usage`, and status. Returns `404` when the conversation or response was not persisted (`store = false`). *

Response Body Schema

@@ -1520,7 +1632,7 @@ public PagedIterable listAgentConversationResponses(String agentName * } * } * - * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation that contains the response. * @param responseId The id of the response to retrieve. @@ -1530,7 +1642,7 @@ public PagedIterable listAgentConversationResponses(String agentName * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a voice agent conversation response - * + * * Retrieves a single response from the specified conversation by its id, including its `output` items, * `usage`, and status along with {@link Response} on successful completion of {@link Mono}. */ @@ -1545,7 +1657,7 @@ public Mono> getAgentConversationResponseWithResponseAsync( /** * Get a voice agent conversation response - * + * * Retrieves a single response from the specified conversation by its id, including its `output` items, * `usage`, and status. Returns `404` when the conversation or response was not persisted (`store = false`). *

Response Body Schema

@@ -1615,7 +1727,7 @@ public Mono> getAgentConversationResponseWithResponseAsync( * } * } * - * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation that contains the response. * @param responseId The id of the response to retrieve. @@ -1625,7 +1737,7 @@ public Mono> getAgentConversationResponseWithResponseAsync( * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a voice agent conversation response - * + * * Retrieves a single response from the specified conversation by its id, including its `output` items, * `usage`, and status along with {@link Response}. */ @@ -1639,7 +1751,7 @@ public Response getAgentConversationResponseWithResponse(String agen /** * List items produced by a voice agent conversation response - * + * * Returns a paged collection of the output items produced by a specific response (the response's output * projection). For the complete ordered conversation history — including user input and client-created * tool outputs — use the conversation items route instead. Returns `404` when the conversation or @@ -1673,7 +1785,7 @@ public Response getAgentConversationResponseWithResponse(String agen * } * } * - * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation that contains the response. * @param responseId The id of the response whose output items are listed. @@ -1694,12 +1806,12 @@ private Mono> listAgentConversationResponseItemsSingle conversationId, responseId, this.client.getServiceVersion().getVersion(), accept, requestOptions, context)) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null)); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null)); } /** * List items produced by a voice agent conversation response - * + * * Returns a paged collection of the output items produced by a specific response (the response's output * projection). For the complete ordered conversation history — including user input and client-created * tool outputs — use the conversation items route instead. Returns `404` when the conversation or @@ -1733,7 +1845,7 @@ private Mono> listAgentConversationResponseItemsSingle * } * } * - * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation that contains the response. * @param responseId The id of the response whose output items are listed. @@ -1747,13 +1859,42 @@ private Mono> listAgentConversationResponseItemsSingle @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAgentConversationResponseItemsAsync(String agentName, String conversationId, String responseId, RequestOptions requestOptions) { - return new PagedFlux<>(() -> listAgentConversationResponseItemsSinglePageAsync(agentName, conversationId, - responseId, requestOptions)); + return listAgentConversationResponseItemsAsync(null, agentName, conversationId, responseId, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAgentConversationResponseItemsAsync(String initialContinuationToken, + String agentName, String conversationId, String responseId, RequestOptions requestOptions) { + return new PagedFlux<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listAgentConversationResponseItemsSinglePageAsync(agentName, conversationId, responseId, + requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listAgentConversationResponseItemsSinglePageAsync(agentName, conversationId, responseId, + requestOptionsLocal); + }); } /** * List items produced by a voice agent conversation response - * + * * Returns a paged collection of the output items produced by a specific response (the response's output * projection). For the complete ordered conversation history — including user input and client-created * tool outputs — use the conversation items route instead. Returns `404` when the conversation or @@ -1787,7 +1928,7 @@ public PagedFlux listAgentConversationResponseItemsAsync(String agen * } * } * - * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation that contains the response. * @param responseId The id of the response whose output items are listed. @@ -1806,12 +1947,12 @@ private PagedResponse listAgentConversationResponseItemsSinglePage(S = service.listAgentConversationResponseItemsSync(this.client.getEndpoint(), agentName, conversationId, responseId, this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null); } /** * List items produced by a voice agent conversation response - * + * * Returns a paged collection of the output items produced by a specific response (the response's output * projection). For the complete ordered conversation history — including user input and client-created * tool outputs — use the conversation items route instead. Returns `404` when the conversation or @@ -1845,7 +1986,7 @@ private PagedResponse listAgentConversationResponseItemsSinglePage(S * } * } * - * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation that contains the response. * @param responseId The id of the response whose output items are listed. @@ -1859,13 +2000,42 @@ private PagedResponse listAgentConversationResponseItemsSinglePage(S @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listAgentConversationResponseItems(String agentName, String conversationId, String responseId, RequestOptions requestOptions) { - return new PagedIterable<>( - () -> listAgentConversationResponseItemsSinglePage(agentName, conversationId, responseId, requestOptions)); + return listAgentConversationResponseItems(null, agentName, conversationId, responseId, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listAgentConversationResponseItems(String initialContinuationToken, + String agentName, String conversationId, String responseId, RequestOptions requestOptions) { + return new PagedIterable<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listAgentConversationResponseItemsSinglePage(agentName, conversationId, responseId, + requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listAgentConversationResponseItemsSinglePage(agentName, conversationId, responseId, + requestOptionsLocal); + }); } /** * List items in a voice agent conversation - * + * * Returns a paged collection of items — the complete ordered conversation history, including user input, * assistant output, and client-created tool outputs (transcripts + tool events). Returns `404` when the * conversation was not persisted (`store = false`). @@ -1898,7 +2068,7 @@ public PagedIterable listAgentConversationResponseItems(String agent * } * } * - * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation whose items are listed. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1917,12 +2087,12 @@ private Mono> listAgentConversationItemsSinglePageAsyn .withContext(context -> service.listAgentConversationItems(this.client.getEndpoint(), agentName, conversationId, this.client.getServiceVersion().getVersion(), accept, requestOptions, context)) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null)); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null)); } /** * List items in a voice agent conversation - * + * * Returns a paged collection of items — the complete ordered conversation history, including user input, * assistant output, and client-created tool outputs (transcripts + tool events). Returns `404` when the * conversation was not persisted (`store = false`). @@ -1955,7 +2125,7 @@ private Mono> listAgentConversationItemsSinglePageAsyn * } * } * - * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation whose items are listed. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1968,13 +2138,40 @@ private Mono> listAgentConversationItemsSinglePageAsyn @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAgentConversationItemsAsync(String agentName, String conversationId, RequestOptions requestOptions) { - return new PagedFlux<>( - () -> listAgentConversationItemsSinglePageAsync(agentName, conversationId, requestOptions)); + return listAgentConversationItemsAsync(null, agentName, conversationId, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAgentConversationItemsAsync(String initialContinuationToken, String agentName, + String conversationId, RequestOptions requestOptions) { + return new PagedFlux<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listAgentConversationItemsSinglePageAsync(agentName, conversationId, requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listAgentConversationItemsSinglePageAsync(agentName, conversationId, requestOptionsLocal); + }); } /** * List items in a voice agent conversation - * + * * Returns a paged collection of items — the complete ordered conversation history, including user input, * assistant output, and client-created tool outputs (transcripts + tool events). Returns `404` when the * conversation was not persisted (`store = false`). @@ -2007,7 +2204,7 @@ public PagedFlux listAgentConversationItemsAsync(String agentName, S * } * } * - * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation whose items are listed. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2024,12 +2221,12 @@ private PagedResponse listAgentConversationItemsSinglePage(String ag Response res = service.listAgentConversationItemsSync(this.client.getEndpoint(), agentName, conversationId, this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null); } /** * List items in a voice agent conversation - * + * * Returns a paged collection of items — the complete ordered conversation history, including user input, * assistant output, and client-created tool outputs (transcripts + tool events). Returns `404` when the * conversation was not persisted (`store = false`). @@ -2062,7 +2259,7 @@ private PagedResponse listAgentConversationItemsSinglePage(String ag * } * } * - * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation whose items are listed. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2075,13 +2272,40 @@ private PagedResponse listAgentConversationItemsSinglePage(String ag @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listAgentConversationItems(String agentName, String conversationId, RequestOptions requestOptions) { - return new PagedIterable<>( - () -> listAgentConversationItemsSinglePage(agentName, conversationId, requestOptions)); + return listAgentConversationItems(null, agentName, conversationId, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listAgentConversationItems(String initialContinuationToken, String agentName, + String conversationId, RequestOptions requestOptions) { + return new PagedIterable<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listAgentConversationItemsSinglePage(agentName, conversationId, requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listAgentConversationItemsSinglePage(agentName, conversationId, requestOptionsLocal); + }); } /** * Get a voice agent conversation item - * + * * Retrieves a single item from the specified conversation by its id, including its transcript. An * `input_audio`/`output_audio` content part indicates that audio is available for the item; the canonical per-item * audio metadata is the `/items/{item_id}/audio` resource, and the bytes are streamed by @@ -2096,7 +2320,7 @@ public PagedIterable listAgentConversationItems(String agentName, St * } * } * - * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation that contains the item. * @param itemId The id of the conversation item to retrieve. @@ -2106,7 +2330,7 @@ public PagedIterable listAgentConversationItems(String agentName, St * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a voice agent conversation item - * + * * Retrieves a single item from the specified conversation by its id, including its transcript along with * {@link Response} on successful completion of {@link Mono}. */ @@ -2120,7 +2344,7 @@ public Mono> getAgentConversationItemWithResponseAsync(Stri /** * Get a voice agent conversation item - * + * * Retrieves a single item from the specified conversation by its id, including its transcript. An * `input_audio`/`output_audio` content part indicates that audio is available for the item; the canonical per-item * audio metadata is the `/items/{item_id}/audio` resource, and the bytes are streamed by @@ -2135,7 +2359,7 @@ public Mono> getAgentConversationItemWithResponseAsync(Stri * } * } * - * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation that contains the item. * @param itemId The id of the conversation item to retrieve. @@ -2145,7 +2369,7 @@ public Mono> getAgentConversationItemWithResponseAsync(Stri * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a voice agent conversation item - * + * * Retrieves a single item from the specified conversation by its id, including its transcript along with * {@link Response}. */ @@ -2159,7 +2383,7 @@ public Response getAgentConversationItemWithResponse(String agentNam /** * Get a voice agent conversation item's audio metadata - * + * * Returns metadata for a single conversation item's audio segment, including the common playback facts * (role, format/codec, sample rate, channels, offset, duration) for both Foundry-managed and * bring-your-own-storage (BYOS) recordings; for BYOS the response additionally includes `blob_uri`, the URI @@ -2184,7 +2408,7 @@ public Response getAgentConversationItemWithResponse(String agentNam * } * } * - * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation that contains the item. * @param itemId The id of the conversation item whose audio metadata is retrieved. @@ -2194,7 +2418,7 @@ public Response getAgentConversationItemWithResponse(String agentNam * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a voice agent conversation item's audio metadata - * + * * Returns metadata for a single conversation item's audio segment, including the common playback facts * (role, format/codec, sample rate, channels, offset, duration) for both Foundry-managed and * bring-your-own-storage (BYOS) recordings; for BYOS the response additionally includes `blob_uri`, the URI @@ -2213,7 +2437,7 @@ public Mono> getAgentConversationAudioItemWithResponseAsync /** * Get a voice agent conversation item's audio metadata - * + * * Returns metadata for a single conversation item's audio segment, including the common playback facts * (role, format/codec, sample rate, channels, offset, duration) for both Foundry-managed and * bring-your-own-storage (BYOS) recordings; for BYOS the response additionally includes `blob_uri`, the URI @@ -2238,7 +2462,7 @@ public Mono> getAgentConversationAudioItemWithResponseAsync * } * } * - * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation that contains the item. * @param itemId The id of the conversation item whose audio metadata is retrieved. @@ -2248,7 +2472,7 @@ public Mono> getAgentConversationAudioItemWithResponseAsync * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a voice agent conversation item's audio metadata - * + * * Returns metadata for a single conversation item's audio segment, including the common playback facts * (role, format/codec, sample rate, channels, offset, duration) for both Foundry-managed and * bring-your-own-storage (BYOS) recordings; for BYOS the response additionally includes `blob_uri`, the URI @@ -2266,7 +2490,7 @@ public Response getAgentConversationAudioItemWithResponse(String age /** * Stream a voice agent conversation item's audio - * + * * Streams a single conversation item's audio as a WAV (`audio/wav`) byte stream through the service (no SAS * URL). This route serves Foundry-managed storage only. For bring-your-own-storage (BYOS) recordings the * bytes are not proxied — the caller must download directly from customer storage using the `blob_uri` @@ -2279,7 +2503,7 @@ public Response getAgentConversationAudioItemWithResponse(String age * BinaryData * } * - * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation that contains the item. * @param itemId The id of the conversation item whose audio is streamed. @@ -2301,7 +2525,7 @@ public Mono> downloadAgentConversationAudioItemWithResponse /** * Stream a voice agent conversation item's audio - * + * * Streams a single conversation item's audio as a WAV (`audio/wav`) byte stream through the service (no SAS * URL). This route serves Foundry-managed storage only. For bring-your-own-storage (BYOS) recordings the * bytes are not proxied — the caller must download directly from customer storage using the `blob_uri` @@ -2314,7 +2538,7 @@ public Mono> downloadAgentConversationAudioItemWithResponse * BinaryData * } * - * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation that contains the item. * @param itemId The id of the conversation item whose audio is streamed. @@ -2335,7 +2559,7 @@ public Response downloadAgentConversationAudioItemWithResponse(Strin /** * Get a voice agent conversation item's generated audio metadata - * + * * Returns metadata for a conversation item's generated audio. This subordinate artifact is separate from the * canonical heard-audio segment and exists only when playback was interrupted and the service rendered more audio * than the listener heard, including when the response ends as cancelled. Returns `404` when the conversation or @@ -2358,7 +2582,7 @@ public Response downloadAgentConversationAudioItemWithResponse(Strin * } * } * - * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation that contains the item. * @param itemId The id of the conversation item whose generated audio metadata is retrieved. @@ -2368,7 +2592,7 @@ public Response downloadAgentConversationAudioItemWithResponse(Strin * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a voice agent conversation item's generated audio metadata - * + * * Returns metadata for a conversation item's generated audio along with {@link Response} on successful completion * of {@link Mono}. */ @@ -2383,7 +2607,7 @@ public Mono> getAgentConversationGeneratedAudioItemWithResp /** * Get a voice agent conversation item's generated audio metadata - * + * * Returns metadata for a conversation item's generated audio. This subordinate artifact is separate from the * canonical heard-audio segment and exists only when playback was interrupted and the service rendered more audio * than the listener heard, including when the response ends as cancelled. Returns `404` when the conversation or @@ -2406,7 +2630,7 @@ public Mono> getAgentConversationGeneratedAudioItemWithResp * } * } * - * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation that contains the item. * @param itemId The id of the conversation item whose generated audio metadata is retrieved. @@ -2416,7 +2640,7 @@ public Mono> getAgentConversationGeneratedAudioItemWithResp * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a voice agent conversation item's generated audio metadata - * + * * Returns metadata for a conversation item's generated audio along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -2429,7 +2653,7 @@ public Response getAgentConversationGeneratedAudioItemWithResponse(S /** * Stream a voice agent conversation item's generated audio - * + * * Streams a conversation item's generated audio as a WAV (`audio/wav`) byte stream through the service. This * subordinate artifact exists only when playback was interrupted and the service rendered more audio than the * listener heard, including when the response ends as cancelled. This route serves Foundry-managed storage only. @@ -2443,7 +2667,7 @@ public Response getAgentConversationGeneratedAudioItemWithResponse(S * BinaryData * } * - * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation that contains the item. * @param itemId The id of the conversation item whose generated audio is streamed. @@ -2465,7 +2689,7 @@ public Mono> downloadAgentConversationGeneratedAudioItemWit /** * Stream a voice agent conversation item's generated audio - * + * * Streams a conversation item's generated audio as a WAV (`audio/wav`) byte stream through the service. This * subordinate artifact exists only when playback was interrupted and the service rendered more audio than the * listener heard, including when the response ends as cancelled. This route serves Foundry-managed storage only. @@ -2479,7 +2703,7 @@ public Mono> downloadAgentConversationGeneratedAudioItemWit * BinaryData * } * - * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation that contains the item. * @param itemId The id of the conversation item whose generated audio is streamed. @@ -2500,7 +2724,7 @@ public Response downloadAgentConversationGeneratedAudioItemWithRespo /** * Get a voice agent conversation's merged recording metadata - * + * * Returns metadata for the whole-call merged stereo recording (user audio on the left channel, agent audio * on the right). The common metadata (format, sample rate, channels, channel layout, duration) is returned * for both Foundry-managed and bring-your-own-storage (BYOS) recordings; for BYOS the response additionally @@ -2529,7 +2753,7 @@ public Response downloadAgentConversationGeneratedAudioItemWithRespo * } * } * - * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation whose merged recording metadata is retrieved. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2538,7 +2762,7 @@ public Response downloadAgentConversationGeneratedAudioItemWithRespo * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a voice agent conversation's merged recording metadata - * + * * Returns metadata for the whole-call merged stereo recording (user audio on the left channel, agent audio * on the right) along with {@link Response} on successful completion of {@link Mono}. */ @@ -2552,7 +2776,7 @@ public Mono> getAgentConversationAudioWithResponseAsync(Str /** * Get a voice agent conversation's merged recording metadata - * + * * Returns metadata for the whole-call merged stereo recording (user audio on the left channel, agent audio * on the right). The common metadata (format, sample rate, channels, channel layout, duration) is returned * for both Foundry-managed and bring-your-own-storage (BYOS) recordings; for BYOS the response additionally @@ -2581,7 +2805,7 @@ public Mono> getAgentConversationAudioWithResponseAsync(Str * } * } * - * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation whose merged recording metadata is retrieved. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2590,7 +2814,7 @@ public Mono> getAgentConversationAudioWithResponseAsync(Str * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a voice agent conversation's merged recording metadata - * + * * Returns metadata for the whole-call merged stereo recording (user audio on the left channel, agent audio * on the right) along with {@link Response}. */ @@ -2604,7 +2828,7 @@ public Response getAgentConversationAudioWithResponse(String agentNa /** * Stream a voice agent conversation's merged recording - * + * * Streams the whole-call merged stereo recording as a WAV (`audio/wav`) byte stream through the service * (no SAS URL). This route serves Foundry-managed storage only. For bring-your-own-storage (BYOS) * recordings the bytes are not proxied — the caller must download directly from customer storage using the @@ -2621,7 +2845,7 @@ public Response getAgentConversationAudioWithResponse(String agentNa * BinaryData * } * - * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation whose merged recording is streamed. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2641,7 +2865,7 @@ public Mono> downloadAgentConversationAudioWithResponseAsyn /** * Stream a voice agent conversation's merged recording - * + * * Streams the whole-call merged stereo recording as a WAV (`audio/wav`) byte stream through the service * (no SAS URL). This route serves Foundry-managed storage only. For bring-your-own-storage (BYOS) * recordings the bytes are not proxied — the caller must download directly from customer storage using the @@ -2658,7 +2882,7 @@ public Mono> downloadAgentConversationAudioWithResponseAsyn * BinaryData * } * - * + * * @param agentName The name of the agent. * @param conversationId The id of the conversation whose merged recording is streamed. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2692,6 +2916,9 @@ private List getValues(BinaryData binaryData, String... path) { private String getNextLink(BinaryData binaryData, String... path) { try { Object value = binaryData.toObject(Map.class); + if (Boolean.FALSE.equals(((Map) value).get("has_more"))) { + return null; + } for (String segment : path) { value = ((Map) value).get(segment); } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/BetaVoiceAgentsTelephoniesImpl.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/BetaVoiceAgentsTelephoniesImpl.java index 30569d01843bd..6ffe4ff7bba04 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/BetaVoiceAgentsTelephoniesImpl.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/BetaVoiceAgentsTelephoniesImpl.java @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) TypeSpec Code Generator. - package com.azure.ai.agents.implementation; import com.azure.ai.agents.AgentsServiceVersion; @@ -38,6 +37,7 @@ import com.azure.core.util.CoreUtils; import com.azure.core.util.DateTimeRfc1123; import com.azure.core.util.FluxUtil; +import com.azure.core.util.UrlBuilder; import java.time.OffsetDateTime; import java.util.List; import java.util.Map; @@ -48,6 +48,7 @@ * An instance of this class provides access to all the operations defined in BetaVoiceAgentsTelephonies. */ public final class BetaVoiceAgentsTelephoniesImpl { + /** * The proxy service used to perform REST calls. */ @@ -60,7 +61,7 @@ public final class BetaVoiceAgentsTelephoniesImpl { /** * Initializes an instance of BetaVoiceAgentsTelephoniesImpl. - * + * * @param client the instance of the service client containing this operation class. */ BetaVoiceAgentsTelephoniesImpl(AgentsClientImpl client) { @@ -71,7 +72,7 @@ public final class BetaVoiceAgentsTelephoniesImpl { /** * Gets Service version. - * + * * @return the serviceVersion value. */ public AgentsServiceVersion getServiceVersion() { @@ -85,6 +86,7 @@ public AgentsServiceVersion getServiceVersion() { @Host("{endpoint}") @ServiceInterface(name = "AgentsClientBetaVoiceAgentsTelephonies") public interface BetaVoiceAgentsTelephoniesService { + @Post("/agents/{agent_name}/telephony/bindings") @ExpectedResponses({ 201 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @@ -402,7 +404,7 @@ Response cancelTelephonyCallJobSync(@HostParam("endpoint") String en /** * Create an agent telephony binding - * + * * Creates a telephony binding for the voice agent named in the path. *

Header Parameters

*
@@ -447,7 +449,7 @@ Response cancelTelephonyCallJobSync(@HostParam("endpoint") String en * *
ETagStringThe entity tag to send in the `If-Match` header when updating or deleting the * binding.
- * + * * @param agentName The name of the voice agent that owns the binding. * @param telephonyBinding The provider-specific binding to create. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -484,7 +486,7 @@ public Mono> createTelephonyBindingWithResponseAsync(String /** * Create an agent telephony binding - * + * * Creates a telephony binding for the voice agent named in the path. *

Header Parameters

* @@ -529,7 +531,7 @@ public Mono> createTelephonyBindingWithResponseAsync(String * *
ETagStringThe entity tag to send in the `If-Match` header when updating or deleting the * binding.
- * + * * @param agentName The name of the voice agent that owns the binding. * @param telephonyBinding The provider-specific binding to create. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -565,7 +567,7 @@ public Response createTelephonyBindingWithResponse(String agentName, /** * List agent telephony bindings - * + * * Returns the telephony bindings owned by the voice agent named in the path. *

Query Parameters

* @@ -606,7 +608,7 @@ public Response createTelephonyBindingWithResponse(String agentName, * } * } * - * + * * @param agentName The name of the voice agent whose bindings are listed. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -624,12 +626,12 @@ private Mono> listTelephonyBindingsSinglePageAsync(Str .withContext(context -> service.listTelephonyBindings(this.client.getEndpoint(), agentName, this.client.getServiceVersion().getVersion(), accept, requestOptions, context)) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null)); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null)); } /** * List agent telephony bindings - * + * * Returns the telephony bindings owned by the voice agent named in the path. *

Query Parameters

*
@@ -670,7 +672,7 @@ private Mono> listTelephonyBindingsSinglePageAsync(Str * } * } * - * + * * @param agentName The name of the voice agent whose bindings are listed. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -681,12 +683,40 @@ private Mono> listTelephonyBindingsSinglePageAsync(Str */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listTelephonyBindingsAsync(String agentName, RequestOptions requestOptions) { - return new PagedFlux<>(() -> listTelephonyBindingsSinglePageAsync(agentName, requestOptions)); + return listTelephonyBindingsAsync(null, agentName, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listTelephonyBindingsAsync(String initialContinuationToken, String agentName, + RequestOptions requestOptions) { + return new PagedFlux<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listTelephonyBindingsSinglePageAsync(agentName, requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listTelephonyBindingsSinglePageAsync(agentName, requestOptionsLocal); + }); } /** * List agent telephony bindings - * + * * Returns the telephony bindings owned by the voice agent named in the path. *

Query Parameters

*
@@ -727,7 +757,7 @@ public PagedFlux listTelephonyBindingsAsync(String agentName, Reques * } * } * - * + * * @param agentName The name of the voice agent whose bindings are listed. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -742,12 +772,12 @@ private PagedResponse listTelephonyBindingsSinglePage(String agentNa Response res = service.listTelephonyBindingsSync(this.client.getEndpoint(), agentName, this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null); } /** * List agent telephony bindings - * + * * Returns the telephony bindings owned by the voice agent named in the path. *

Query Parameters

*
@@ -788,7 +818,7 @@ private PagedResponse listTelephonyBindingsSinglePage(String agentNa * } * } * - * + * * @param agentName The name of the voice agent whose bindings are listed. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -799,12 +829,40 @@ private PagedResponse listTelephonyBindingsSinglePage(String agentNa */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listTelephonyBindings(String agentName, RequestOptions requestOptions) { - return new PagedIterable<>(() -> listTelephonyBindingsSinglePage(agentName, requestOptions)); + return listTelephonyBindings(null, agentName, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listTelephonyBindings(String initialContinuationToken, String agentName, + RequestOptions requestOptions) { + return new PagedIterable<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listTelephonyBindingsSinglePage(agentName, requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listTelephonyBindingsSinglePage(agentName, requestOptionsLocal); + }); } /** * Get an agent telephony binding - * + * * Retrieves a telephony binding owned by the voice agent named in the path. *

Response Body Schema

* @@ -828,7 +886,7 @@ public PagedIterable listTelephonyBindings(String agentName, Request *
*
ETagStringThe entity tag to send in the `If-Match` header when updating or deleting the * binding.
- * + * * @param agentName The name of the voice agent that owns the binding. * @param bindingId The service-generated binding identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -837,7 +895,7 @@ public PagedIterable listTelephonyBindings(String agentName, Request * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return an agent telephony binding - * + * * Retrieves a telephony binding owned by the voice agent named in the path along with {@link Response} on * successful completion of {@link Mono}. */ @@ -851,7 +909,7 @@ public Mono> getTelephonyBindingWithResponseAsync(String ag /** * Get an agent telephony binding - * + * * Retrieves a telephony binding owned by the voice agent named in the path. *

Response Body Schema

* @@ -875,7 +933,7 @@ public Mono> getTelephonyBindingWithResponseAsync(String ag * ETagStringThe entity tag to send in the `If-Match` header when updating or deleting the * binding. * - * + * * @param agentName The name of the voice agent that owns the binding. * @param bindingId The service-generated binding identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -884,7 +942,7 @@ public Mono> getTelephonyBindingWithResponseAsync(String ag * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return an agent telephony binding - * + * * Retrieves a telephony binding owned by the voice agent named in the path along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -897,7 +955,7 @@ public Response getTelephonyBindingWithResponse(String agentName, St /** * Update an agent telephony binding - * + * * Updates a telephony binding owned by the voice agent named in the path. *

Request Body Schema

* @@ -934,7 +992,7 @@ public Response getTelephonyBindingWithResponse(String agentName, St * ETagStringThe entity tag to send in the `If-Match` header when updating or deleting the * binding. * - * + * * @param agentName The name of the voice agent that owns the binding. * @param bindingId The service-generated binding identifier. * @param ifMatch The entity tag returned by the latest read. The request fails if the resource changed since that @@ -960,7 +1018,7 @@ public Mono> updateTelephonyBindingWithResponseAsync(String /** * Update an agent telephony binding - * + * * Updates a telephony binding owned by the voice agent named in the path. *

Request Body Schema

* @@ -997,7 +1055,7 @@ public Mono> updateTelephonyBindingWithResponseAsync(String * ETagStringThe entity tag to send in the `If-Match` header when updating or deleting the * binding. * - * + * * @param agentName The name of the voice agent that owns the binding. * @param bindingId The service-generated binding identifier. * @param ifMatch The entity tag returned by the latest read. The request fails if the resource changed since that @@ -1021,9 +1079,9 @@ public Response updateTelephonyBindingWithResponse(String agentName, /** * Delete an agent telephony binding - * + * * Deletes a telephony binding owned by the voice agent named in the path. - * + * * @param agentName The name of the voice agent that owns the binding. * @param bindingId The service-generated binding identifier. * @param ifMatch The entity tag returned by the latest read. The request fails if the resource changed since that @@ -1044,9 +1102,9 @@ public Mono> deleteTelephonyBindingWithResponseAsync(String agent /** * Delete an agent telephony binding - * + * * Deletes a telephony binding owned by the voice agent named in the path. - * + * * @param agentName The name of the voice agent that owns the binding. * @param bindingId The service-generated binding identifier. * @param ifMatch The entity tag returned by the latest read. The request fails if the resource changed since that @@ -1067,7 +1125,7 @@ public Response deleteTelephonyBindingWithResponse(String agentName, Strin /** * List agent telephony calls - * + * * Returns the durable inbound call history for the voice agent named in the path. *

Query Parameters

* @@ -1122,7 +1180,7 @@ public Response deleteTelephonyBindingWithResponse(String agentName, Strin * } * } * - * + * * @param agentName The name of the voice agent whose calls are listed. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1140,12 +1198,12 @@ private Mono> listTelephonyCallsSinglePageAsync(String .withContext(context -> service.listTelephonyCalls(this.client.getEndpoint(), agentName, this.client.getServiceVersion().getVersion(), accept, requestOptions, context)) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null)); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null)); } /** * List agent telephony calls - * + * * Returns the durable inbound call history for the voice agent named in the path. *

Query Parameters

*
@@ -1200,7 +1258,7 @@ private Mono> listTelephonyCallsSinglePageAsync(String * } * } * - * + * * @param agentName The name of the voice agent whose calls are listed. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1211,12 +1269,40 @@ private Mono> listTelephonyCallsSinglePageAsync(String */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listTelephonyCallsAsync(String agentName, RequestOptions requestOptions) { - return new PagedFlux<>(() -> listTelephonyCallsSinglePageAsync(agentName, requestOptions)); + return listTelephonyCallsAsync(null, agentName, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listTelephonyCallsAsync(String initialContinuationToken, String agentName, + RequestOptions requestOptions) { + return new PagedFlux<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listTelephonyCallsSinglePageAsync(agentName, requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listTelephonyCallsSinglePageAsync(agentName, requestOptionsLocal); + }); } /** * List agent telephony calls - * + * * Returns the durable inbound call history for the voice agent named in the path. *

Query Parameters

*
@@ -1271,7 +1357,7 @@ public PagedFlux listTelephonyCallsAsync(String agentName, RequestOp * } * } * - * + * * @param agentName The name of the voice agent whose calls are listed. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1286,12 +1372,12 @@ private PagedResponse listTelephonyCallsSinglePage(String agentName, Response res = service.listTelephonyCallsSync(this.client.getEndpoint(), agentName, this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null); } /** * List agent telephony calls - * + * * Returns the durable inbound call history for the voice agent named in the path. *

Query Parameters

*
@@ -1346,7 +1432,7 @@ private PagedResponse listTelephonyCallsSinglePage(String agentName, * } * } * - * + * * @param agentName The name of the voice agent whose calls are listed. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1357,12 +1443,40 @@ private PagedResponse listTelephonyCallsSinglePage(String agentName, */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listTelephonyCalls(String agentName, RequestOptions requestOptions) { - return new PagedIterable<>(() -> listTelephonyCallsSinglePage(agentName, requestOptions)); + return listTelephonyCalls(null, agentName, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listTelephonyCalls(String initialContinuationToken, String agentName, + RequestOptions requestOptions) { + return new PagedIterable<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listTelephonyCallsSinglePage(agentName, requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listTelephonyCallsSinglePage(agentName, requestOptionsLocal); + }); } /** * Get an agent telephony call - * + * * Retrieves a durable inbound call record owned by the voice agent named in the path. *

Response Body Schema

* @@ -1427,7 +1541,7 @@ public PagedIterable listTelephonyCalls(String agentName, RequestOpt * } * } * - * + * * @param agentName The name of the voice agent that owns the call record. * @param callId The service-generated call identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1436,7 +1550,7 @@ public PagedIterable listTelephonyCalls(String agentName, RequestOpt * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return an agent telephony call - * + * * Retrieves a durable inbound call record owned by the voice agent named in the path along with {@link Response} on * successful completion of {@link Mono}. */ @@ -1450,7 +1564,7 @@ public Mono> getTelephonyCallWithResponseAsync(String agent /** * Get an agent telephony call - * + * * Retrieves a durable inbound call record owned by the voice agent named in the path. *

Response Body Schema

* @@ -1515,7 +1629,7 @@ public Mono> getTelephonyCallWithResponseAsync(String agent * } * } * - * + * * @param agentName The name of the voice agent that owns the call record. * @param callId The service-generated call identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1524,7 +1638,7 @@ public Mono> getTelephonyCallWithResponseAsync(String agent * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return an agent telephony call - * + * * Retrieves a durable inbound call record owned by the voice agent named in the path along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1537,7 +1651,7 @@ public Response getTelephonyCallWithResponse(String agentName, Strin /** * Transfer an active agent telephony call - * + * * Transfers an active inbound call to a configured target for the voice agent named in the path. *

Request Body Schema

* @@ -1612,7 +1726,7 @@ public Response getTelephonyCallWithResponse(String agentName, Strin * } * } * - * + * * @param agentName The name of the voice agent that owns the active call. * @param callId The service-generated call identifier. * @param transferTelephonyCallRequest The transferTelephonyCallRequest parameter. @@ -1636,7 +1750,7 @@ public Mono> transferTelephonyCallWithResponseAsync(String /** * Transfer an active agent telephony call - * + * * Transfers an active inbound call to a configured target for the voice agent named in the path. *

Request Body Schema

* @@ -1711,7 +1825,7 @@ public Mono> transferTelephonyCallWithResponseAsync(String * } * } * - * + * * @param agentName The name of the voice agent that owns the active call. * @param callId The service-generated call identifier. * @param transferTelephonyCallRequest The transferTelephonyCallRequest parameter. @@ -1734,7 +1848,7 @@ public Response transferTelephonyCallWithResponse(String agentName, /** * End an active agent telephony call - * + * * Ends an active inbound call owned by the voice agent named in the path. *

Response Body Schema

* @@ -1799,7 +1913,7 @@ public Response transferTelephonyCallWithResponse(String agentName, * } * } * - * + * * @param agentName The name of the voice agent that owns the active call. * @param callId The service-generated call identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1820,7 +1934,7 @@ public Mono> endTelephonyCallWithResponseAsync(String agent /** * End an active agent telephony call - * + * * Ends an active inbound call owned by the voice agent named in the path. *

Response Body Schema

* @@ -1885,7 +1999,7 @@ public Mono> endTelephonyCallWithResponseAsync(String agent * } * } * - * + * * @param agentName The name of the voice agent that owns the active call. * @param callId The service-generated call identifier. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1905,7 +2019,7 @@ public Response endTelephonyCallWithResponse(String agentName, Strin /** * Get agent telephony transfer targets - * + * * Returns all transfer targets configured for the voice agent named in the path. *

Response Body Schema

* @@ -1932,7 +2046,7 @@ public Response endTelephonyCallWithResponse(String agentName, Strin *
*
ETagStringThe entity tag to send in the `If-Match` header when replacing the transfer * targets.
- * + * * @param agentName The name of the voice agent whose transfer targets are retrieved. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1940,7 +2054,7 @@ public Response endTelephonyCallWithResponse(String agentName, Strin * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return agent telephony transfer targets - * + * * Returns all transfer targets configured for the voice agent named in the path along with {@link Response} on * successful completion of {@link Mono}. */ @@ -1954,7 +2068,7 @@ public Mono> getTelephonyTransferTargetsWithResponseAsync(S /** * Get agent telephony transfer targets - * + * * Returns all transfer targets configured for the voice agent named in the path. *

Response Body Schema

* @@ -1981,7 +2095,7 @@ public Mono> getTelephonyTransferTargetsWithResponseAsync(S * ETagStringThe entity tag to send in the `If-Match` header when replacing the transfer * targets. * - * + * * @param agentName The name of the voice agent whose transfer targets are retrieved. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1989,7 +2103,7 @@ public Mono> getTelephonyTransferTargetsWithResponseAsync(S * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return agent telephony transfer targets - * + * * Returns all transfer targets configured for the voice agent named in the path along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -2002,7 +2116,7 @@ public Response getTelephonyTransferTargetsWithResponse(String agent /** * Replace agent telephony transfer targets - * + * * Replaces all transfer targets configured for the voice agent named in the path. *

Request Body Schema

* @@ -2047,7 +2161,7 @@ public Response getTelephonyTransferTargetsWithResponse(String agent * ETagStringThe entity tag to send in the `If-Match` header when replacing the transfer * targets. * - * + * * @param agentName The name of the voice agent whose transfer targets are replaced. * @param ifMatch The entity tag returned by the latest read. The request fails if the resource changed since that * read. @@ -2072,7 +2186,7 @@ public Mono> replaceTelephonyTransferTargetsWithResponseAsy /** * Replace agent telephony transfer targets - * + * * Replaces all transfer targets configured for the voice agent named in the path. *

Request Body Schema

* @@ -2117,7 +2231,7 @@ public Mono> replaceTelephonyTransferTargetsWithResponseAsy * ETagStringThe entity tag to send in the `If-Match` header when replacing the transfer * targets. * - * + * * @param agentName The name of the voice agent whose transfer targets are replaced. * @param ifMatch The entity tag returned by the latest read. The request fails if the resource changed since that * read. @@ -2141,7 +2255,7 @@ public Response replaceTelephonyTransferTargetsWithResponse(String a /** * Create an outbound telephony call job - * + * * Creates one durable direct outbound call job. The latest agent definition is resolved when each attempt executes. *

Request Body Schema

* @@ -2221,7 +2335,7 @@ public Response replaceTelephonyTransferTargetsWithResponse(String a * LocationStringThe Location response header. * Retry-AfterDurationThe Retry-After response header. * - * + * * @param agentName The name of the voice agent that executes the call. * @param idempotencyKey A customer-generated idempotency key. Reusing it with an equivalent request returns the * same call job. @@ -2246,7 +2360,7 @@ public Mono> createTelephonyCallJobWithResponseAsync(String /** * Create an outbound telephony call job - * + * * Creates one durable direct outbound call job. The latest agent definition is resolved when each attempt executes. *

Request Body Schema

* @@ -2326,7 +2440,7 @@ public Mono> createTelephonyCallJobWithResponseAsync(String * LocationStringThe Location response header. * Retry-AfterDurationThe Retry-After response header. * - * + * * @param agentName The name of the voice agent that executes the call. * @param idempotencyKey A customer-generated idempotency key. Reusing it with an equivalent request returns the * same call job. @@ -2349,7 +2463,7 @@ public Response createTelephonyCallJobWithResponse(String agentName, /** * Get an outbound telephony call job - * + * * Retrieves a durable direct or campaign-created outbound call job. *

Response Body Schema

* @@ -2400,7 +2514,7 @@ public Response createTelephonyCallJobWithResponse(String agentName, * NameTypeDescription * ETagStringThe ETag response header. * - * + * * @param agentName The agentName parameter. * @param callJobId The callJobId parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2409,7 +2523,7 @@ public Response createTelephonyCallJobWithResponse(String agentName, * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return an outbound telephony call job - * + * * Retrieves a durable direct or campaign-created outbound call job along with {@link Response} on successful * completion of {@link Mono}. */ @@ -2423,7 +2537,7 @@ public Mono> getTelephonyCallJobWithResponseAsync(String ag /** * Get an outbound telephony call job - * + * * Retrieves a durable direct or campaign-created outbound call job. *

Response Body Schema

* @@ -2474,7 +2588,7 @@ public Mono> getTelephonyCallJobWithResponseAsync(String ag * NameTypeDescription * ETagStringThe ETag response header. * - * + * * @param agentName The agentName parameter. * @param callJobId The callJobId parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2483,7 +2597,7 @@ public Mono> getTelephonyCallJobWithResponseAsync(String ag * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return an outbound telephony call job - * + * * Retrieves a durable direct or campaign-created outbound call job along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -2496,7 +2610,7 @@ public Response getTelephonyCallJobWithResponse(String agentName, St /** * Cancel an outbound telephony call job - * + * * Requests cancellation of a durable outbound call job. A connected call is allowed to finish. *

Response Body Schema

* @@ -2549,7 +2663,7 @@ public Response getTelephonyCallJobWithResponse(String agentName, St * LocationStringThe Location response header. * Retry-AfterDurationThe Retry-After response header. * - * + * * @param agentName The agentName parameter. * @param callJobId The callJobId parameter. * @param ifMatch The entity tag returned by the latest read. The request fails if the resource changed since that @@ -2572,7 +2686,7 @@ public Mono> cancelTelephonyCallJobWithResponseAsync(String /** * Cancel an outbound telephony call job - * + * * Requests cancellation of a durable outbound call job. A connected call is allowed to finish. *

Response Body Schema

* @@ -2625,7 +2739,7 @@ public Mono> cancelTelephonyCallJobWithResponseAsync(String * LocationStringThe Location response header. * Retry-AfterDurationThe Retry-After response header. * - * + * * @param agentName The agentName parameter. * @param callJobId The callJobId parameter. * @param ifMatch The entity tag returned by the latest read. The request fails if the resource changed since that @@ -2661,6 +2775,9 @@ private List getValues(BinaryData binaryData, String... path) { private String getNextLink(BinaryData binaryData, String... path) { try { Object value = binaryData.toObject(Map.class); + if (Boolean.FALSE.equals(((Map) value).get("has_more"))) { + return null; + } for (String segment : path) { value = ((Map) value).get(segment); } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/JsonMergePatchHelper.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/JsonMergePatchHelper.java index 20e8f116440e2..2573c6dd01027 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/JsonMergePatchHelper.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/JsonMergePatchHelper.java @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) TypeSpec Code Generator. - package com.azure.ai.agents.implementation; import com.azure.ai.agents.models.A2AProtocolConfiguration; @@ -24,9 +23,11 @@ * This is the Helper class to enable json merge patch serialization for a model. */ public class JsonMergePatchHelper { + private static UpdateTelephonyBindingInputAccessor updateTelephonyBindingInputAccessor; public interface UpdateTelephonyBindingInputAccessor { + UpdateTelephonyBindingInput prepareModelForJsonMergePatch( UpdateTelephonyBindingInput updateTelephonyBindingInput, boolean jsonMergePatchEnabled); @@ -44,6 +45,7 @@ public static UpdateTelephonyBindingInputAccessor getUpdateTelephonyBindingInput private static AgentEndpointConfigAccessor agentEndpointConfigAccessor; public interface AgentEndpointConfigAccessor { + AgentEndpointConfig prepareModelForJsonMergePatch(AgentEndpointConfig agentEndpointConfig, boolean jsonMergePatchEnabled); @@ -61,6 +63,7 @@ public static AgentEndpointConfigAccessor getAgentEndpointConfigAccessor() { private static VersionSelectorAccessor versionSelectorAccessor; public interface VersionSelectorAccessor { + VersionSelector prepareModelForJsonMergePatch(VersionSelector versionSelector, boolean jsonMergePatchEnabled); boolean isJsonMergePatch(VersionSelector versionSelector); @@ -77,6 +80,7 @@ public static VersionSelectorAccessor getVersionSelectorAccessor() { private static VersionSelectionRuleAccessor versionSelectionRuleAccessor; public interface VersionSelectionRuleAccessor { + VersionSelectionRule prepareModelForJsonMergePatch(VersionSelectionRule versionSelectionRule, boolean jsonMergePatchEnabled); @@ -96,6 +100,7 @@ public static VersionSelectionRuleAccessor getVersionSelectionRuleAccessor() { private static ProtocolConfigurationAccessor protocolConfigurationAccessor; public interface ProtocolConfigurationAccessor { + ProtocolConfiguration prepareModelForJsonMergePatch(ProtocolConfiguration protocolConfiguration, boolean jsonMergePatchEnabled); @@ -113,6 +118,7 @@ public static ProtocolConfigurationAccessor getProtocolConfigurationAccessor() { private static ActivityProtocolConfigurationAccessor activityProtocolConfigurationAccessor; public interface ActivityProtocolConfigurationAccessor { + ActivityProtocolConfiguration prepareModelForJsonMergePatch( ActivityProtocolConfiguration activityProtocolConfiguration, boolean jsonMergePatchEnabled); @@ -130,6 +136,7 @@ public static ActivityProtocolConfigurationAccessor getActivityProtocolConfigura private static ResponsesProtocolConfigurationAccessor responsesProtocolConfigurationAccessor; public interface ResponsesProtocolConfigurationAccessor { + ResponsesProtocolConfiguration prepareModelForJsonMergePatch( ResponsesProtocolConfiguration responsesProtocolConfiguration, boolean jsonMergePatchEnabled); @@ -147,6 +154,7 @@ public static ResponsesProtocolConfigurationAccessor getResponsesProtocolConfigu private static A2AProtocolConfigurationAccessor a2AProtocolConfigurationAccessor; public interface A2AProtocolConfigurationAccessor { + A2AProtocolConfiguration prepareModelForJsonMergePatch(A2AProtocolConfiguration a2AProtocolConfiguration, boolean jsonMergePatchEnabled); @@ -164,6 +172,7 @@ public static A2AProtocolConfigurationAccessor getA2AProtocolConfigurationAccess private static McpProtocolConfigurationAccessor mcpProtocolConfigurationAccessor; public interface McpProtocolConfigurationAccessor { + McpProtocolConfiguration prepareModelForJsonMergePatch(McpProtocolConfiguration mcpProtocolConfiguration, boolean jsonMergePatchEnabled); @@ -181,6 +190,7 @@ public static McpProtocolConfigurationAccessor getMcpProtocolConfigurationAccess private static InvocationsProtocolConfigurationAccessor invocationsProtocolConfigurationAccessor; public interface InvocationsProtocolConfigurationAccessor { + InvocationsProtocolConfiguration prepareModelForJsonMergePatch( InvocationsProtocolConfiguration invocationsProtocolConfiguration, boolean jsonMergePatchEnabled); @@ -198,6 +208,7 @@ public static InvocationsProtocolConfigurationAccessor getInvocationsProtocolCon private static InvocationsWsProtocolConfigurationAccessor invocationsWsProtocolConfigurationAccessor; public interface InvocationsWsProtocolConfigurationAccessor { + InvocationsWsProtocolConfiguration prepareModelForJsonMergePatch( InvocationsWsProtocolConfiguration invocationsWsProtocolConfiguration, boolean jsonMergePatchEnabled); @@ -216,6 +227,7 @@ public static InvocationsWsProtocolConfigurationAccessor getInvocationsWsProtoco private static AgentEndpointAuthorizationSchemeAccessor agentEndpointAuthorizationSchemeAccessor; public interface AgentEndpointAuthorizationSchemeAccessor { + AgentEndpointAuthorizationScheme prepareModelForJsonMergePatch( AgentEndpointAuthorizationScheme agentEndpointAuthorizationScheme, boolean jsonMergePatchEnabled); @@ -233,6 +245,7 @@ public static AgentEndpointAuthorizationSchemeAccessor getAgentEndpointAuthoriza private static AgentCardAccessor agentCardAccessor; public interface AgentCardAccessor { + AgentCard prepareModelForJsonMergePatch(AgentCard agentCard, boolean jsonMergePatchEnabled); boolean isJsonMergePatch(AgentCard agentCard); @@ -249,6 +262,7 @@ public static AgentCardAccessor getAgentCardAccessor() { private static AgentCardSkillAccessor agentCardSkillAccessor; public interface AgentCardSkillAccessor { + AgentCardSkill prepareModelForJsonMergePatch(AgentCardSkill agentCardSkill, boolean jsonMergePatchEnabled); boolean isJsonMergePatch(AgentCardSkill agentCardSkill); @@ -265,6 +279,7 @@ public static AgentCardSkillAccessor getAgentCardSkillAccessor() { private static UpdateAgentDetailsOptionsAccessor updateAgentDetailsOptionsAccessor; public interface UpdateAgentDetailsOptionsAccessor { + UpdateAgentDetailsOptions prepareModelForJsonMergePatch(UpdateAgentDetailsOptions updateAgentDetailsOptions, boolean jsonMergePatchEnabled); diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/MultipartFormDataHelper.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/MultipartFormDataHelper.java index 5684c4aecd490..a5db75c35050c 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/MultipartFormDataHelper.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/MultipartFormDataHelper.java @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) TypeSpec Code Generator. - package com.azure.ai.agents.implementation; import com.azure.core.http.HttpHeaderName; @@ -17,8 +16,8 @@ import java.util.UUID; // DO NOT modify this helper class - public final class MultipartFormDataHelper { + /** * Line separator for the multipart HTTP request. */ @@ -47,9 +46,11 @@ public final class MultipartFormDataHelper { private final Charset encoderCharset = StandardCharsets.UTF_8; private InputStream requestDataStream = new ByteArrayInputStream(new byte[0]); + private long requestLength = 0; private RequestOptions requestOptions; + private BinaryData requestBody; /** @@ -167,12 +168,9 @@ public MultipartFormDataHelper serializeFileFields(String fieldName, List> POST_POLL_RESULT_TYPE_REFERENCE @@ -34,7 +32,9 @@ final class PollingUtils { public static final HttpHeaderName OPERATION_LOCATION_HEADER = HttpHeaderName.fromString("Operation-Location"); public static final String HTTP_METHOD = "httpMethod"; + public static final String REQUEST_URL = "requestURL"; + public static final String POLL_RESPONSE_BODY = "pollResponseBody"; private static final String FORWARD_SLASH = "/"; @@ -47,7 +47,6 @@ public static String getAbsolutePath(String path, String endpoint, ClientLogger throw logger.logExceptionAsError(new IllegalArgumentException( "Relative path requires endpoint to be non-null and non-empty to create an absolute path.")); } - if (endpoint.endsWith(FORWARD_SLASH) && path.startsWith(FORWARD_SLASH)) { return endpoint + path.substring(1); } else if (!endpoint.endsWith(FORWARD_SLASH) && !path.startsWith(FORWARD_SLASH)) { @@ -92,6 +91,7 @@ public static Mono deserializeResponse(BinaryData binaryData, ObjectSeria } private static final HttpHeaderName RETRY_AFTER_MS_HEADER = HttpHeaderName.fromString("retry-after-ms"); + private static final HttpHeaderName X_MS_RETRY_AFTER_MS_HEADER = HttpHeaderName.fromString("x-ms-retry-after-ms"); public static Duration getRetryAfterFromHeaders(HttpHeaders headers, Supplier nowSupplier) { @@ -100,18 +100,15 @@ public static Duration getRetryAfterFromHeaders(HttpHeaders headers, Supplier tryGetDelayMillis(s)); if (retryDelay != null) { return retryDelay; } - // Found 'Retry-After' header. First, attempt to resolve it as a Duration of seconds. If that fails, then // attempt to resolve it as an HTTP date (RFC1123). retryDelay = tryGetRetryDelay(headers, HttpHeaderName.RETRY_AFTER, headerValue -> tryParseLongOrDateTime(headerValue, nowSupplier)); - // Either the retry delay will have been found or it'll be null, null indicates no retry after. return retryDelay; } @@ -119,7 +116,6 @@ public static Duration getRetryAfterFromHeaders(HttpHeaders headers, Supplier delayParser) { String headerValue = headers.getValue(headerName); - return CoreUtils.isNullOrEmpty(headerValue) ? null : delayParser.apply(headerValue); } @@ -127,12 +123,10 @@ private static Duration tryParseLongOrDateTime(String value, Supplier= 0) ? Duration.ofSeconds(delaySeconds) : null; } diff --git a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/ToolboxesImpl.java b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/ToolboxesImpl.java index 04c69d5247998..8c7eac807374a 100644 --- a/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/ToolboxesImpl.java +++ b/sdk/ai/azure-ai-agents/src/main/java/com/azure/ai/agents/implementation/ToolboxesImpl.java @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) TypeSpec Code Generator. - package com.azure.ai.agents.implementation; import com.azure.ai.agents.AgentsServiceVersion; @@ -34,6 +33,7 @@ import com.azure.core.util.BinaryData; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; +import com.azure.core.util.UrlBuilder; import java.util.List; import java.util.Map; import java.util.stream.Collectors; @@ -43,6 +43,7 @@ * An instance of this class provides access to all the operations defined in Toolboxes. */ public final class ToolboxesImpl { + /** * The proxy service used to perform REST calls. */ @@ -55,7 +56,7 @@ public final class ToolboxesImpl { /** * Initializes an instance of ToolboxesImpl. - * + * * @param client the instance of the service client containing this operation class. */ ToolboxesImpl(AgentsClientImpl client) { @@ -66,7 +67,7 @@ public final class ToolboxesImpl { /** * Gets Service version. - * + * * @return the serviceVersion value. */ public AgentsServiceVersion getServiceVersion() { @@ -80,6 +81,7 @@ public AgentsServiceVersion getServiceVersion() { @Host("{endpoint}") @ServiceInterface(name = "AgentsClientToolboxes") public interface ToolboxesService { + @Post("/toolboxes/{name}/versions") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @@ -271,7 +273,7 @@ Response deleteToolboxVersionSync(@HostParam("endpoint") String endpoint, /** * Create a new version of a toolbox - * + * * Creates a new toolbox version, provisioning the toolbox itself if it does not already exist. *

Request Body Schema

* @@ -382,7 +384,7 @@ Response deleteToolboxVersionSync(@HostParam("endpoint") String endpoint, * } * } * - * + * * @param name The name of the toolbox. If the toolbox does not exist, it will be created. * @param createToolboxVersionRequest The createToolboxVersionRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -404,7 +406,7 @@ public Mono> createToolboxVersionWithResponseAsync(String n /** * Create a new version of a toolbox - * + * * Creates a new toolbox version, provisioning the toolbox itself if it does not already exist. *

Request Body Schema

* @@ -515,7 +517,7 @@ public Mono> createToolboxVersionWithResponseAsync(String n * } * } * - * + * * @param name The name of the toolbox. If the toolbox does not exist, it will be created. * @param createToolboxVersionRequest The createToolboxVersionRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -537,7 +539,7 @@ public Response createToolboxVersionWithResponse(String name, Binary /** * Retrieve a toolbox - * + * * Retrieves the specified toolbox and its current configuration. *

Response Body Schema

* @@ -603,7 +605,7 @@ public Response createToolboxVersionWithResponse(String name, Binary * } * } * - * + * * @param name The name of the toolbox to retrieve. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -622,7 +624,7 @@ public Mono> getToolboxWithResponseAsync(String name, Reque /** * Retrieve a toolbox - * + * * Retrieves the specified toolbox and its current configuration. *

Response Body Schema

* @@ -688,7 +690,7 @@ public Mono> getToolboxWithResponseAsync(String name, Reque * } * } * - * + * * @param name The name of the toolbox to retrieve. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -706,7 +708,7 @@ public Response getToolboxWithResponse(String name, RequestOptions r /** * List toolboxes - * + * * Returns the toolboxes available in the current project. *

Query Parameters

* @@ -792,7 +794,7 @@ public Response getToolboxWithResponse(String name, RequestOptions r * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -808,12 +810,12 @@ private Mono> listToolboxesSinglePageAsync(RequestOpti .withContext(context -> service.listToolboxes(this.client.getEndpoint(), this.client.getServiceVersion().getVersion(), accept, requestOptions, context)) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null)); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null)); } /** * List toolboxes - * + * * Returns the toolboxes available in the current project. *

Query Parameters

*
@@ -899,7 +901,7 @@ private Mono> listToolboxesSinglePageAsync(RequestOpti * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -909,12 +911,39 @@ private Mono> listToolboxesSinglePageAsync(RequestOpti */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listToolboxesAsync(RequestOptions requestOptions) { - return new PagedFlux<>(() -> listToolboxesSinglePageAsync(requestOptions)); + return listToolboxesAsync(null, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listToolboxesAsync(String initialContinuationToken, RequestOptions requestOptions) { + return new PagedFlux<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listToolboxesSinglePageAsync(requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listToolboxesSinglePageAsync(requestOptionsLocal); + }); } /** * List toolboxes - * + * * Returns the toolboxes available in the current project. *

Query Parameters

*
@@ -1000,7 +1029,7 @@ public PagedFlux listToolboxesAsync(RequestOptions requestOptions) { * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -1014,12 +1043,12 @@ private PagedResponse listToolboxesSinglePage(RequestOptions request Response res = service.listToolboxesSync(this.client.getEndpoint(), this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null); } /** * List toolboxes - * + * * Returns the toolboxes available in the current project. *

Query Parameters

*
@@ -1105,7 +1134,7 @@ private PagedResponse listToolboxesSinglePage(RequestOptions request * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -1115,12 +1144,39 @@ private PagedResponse listToolboxesSinglePage(RequestOptions request */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listToolboxes(RequestOptions requestOptions) { - return new PagedIterable<>(() -> listToolboxesSinglePage(requestOptions)); + return listToolboxes(null, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listToolboxes(String initialContinuationToken, RequestOptions requestOptions) { + return new PagedIterable<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listToolboxesSinglePage(requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listToolboxesSinglePage(requestOptionsLocal); + }); } /** * List toolbox versions - * + * * Returns the available versions for the specified toolbox. *

Query Parameters

*
@@ -1198,7 +1254,7 @@ public PagedIterable listToolboxes(RequestOptions requestOptions) { * } * } * - * + * * @param name The name of the toolbox to list versions for. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1216,12 +1272,12 @@ private Mono> listToolboxVersionsSinglePageAsync(Strin .withContext(context -> service.listToolboxVersions(this.client.getEndpoint(), name, this.client.getServiceVersion().getVersion(), accept, requestOptions, context)) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null)); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null)); } /** * List toolbox versions - * + * * Returns the available versions for the specified toolbox. *

Query Parameters

*
@@ -1299,7 +1355,7 @@ private Mono> listToolboxVersionsSinglePageAsync(Strin * } * } * - * + * * @param name The name of the toolbox to list versions for. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1310,12 +1366,40 @@ private Mono> listToolboxVersionsSinglePageAsync(Strin */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listToolboxVersionsAsync(String name, RequestOptions requestOptions) { - return new PagedFlux<>(() -> listToolboxVersionsSinglePageAsync(name, requestOptions)); + return listToolboxVersionsAsync(null, name, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listToolboxVersionsAsync(String initialContinuationToken, String name, + RequestOptions requestOptions) { + return new PagedFlux<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listToolboxVersionsSinglePageAsync(name, requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listToolboxVersionsSinglePageAsync(name, requestOptionsLocal); + }); } /** * List toolbox versions - * + * * Returns the available versions for the specified toolbox. *

Query Parameters

*
@@ -1393,7 +1477,7 @@ public PagedFlux listToolboxVersionsAsync(String name, RequestOption * } * } * - * + * * @param name The name of the toolbox to list versions for. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1408,12 +1492,12 @@ private PagedResponse listToolboxVersionsSinglePage(String name, Req Response res = service.listToolboxVersionsSync(this.client.getEndpoint(), name, this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null); } /** * List toolbox versions - * + * * Returns the available versions for the specified toolbox. *

Query Parameters

*
@@ -1491,7 +1575,7 @@ private PagedResponse listToolboxVersionsSinglePage(String name, Req * } * } * - * + * * @param name The name of the toolbox to list versions for. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1502,12 +1586,40 @@ private PagedResponse listToolboxVersionsSinglePage(String name, Req */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listToolboxVersions(String name, RequestOptions requestOptions) { - return new PagedIterable<>(() -> listToolboxVersionsSinglePage(name, requestOptions)); + return listToolboxVersions(null, name, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listToolboxVersions(String initialContinuationToken, String name, + RequestOptions requestOptions) { + return new PagedIterable<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listToolboxVersionsSinglePage(name, requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listToolboxVersionsSinglePage(name, requestOptionsLocal); + }); } /** * Retrieve a specific version of a toolbox - * + * * Retrieves the specified version of a toolbox by name and version identifier. *

Response Body Schema

* @@ -1565,7 +1677,7 @@ public PagedIterable listToolboxVersions(String name, RequestOptions * } * } * - * + * * @param name The name of the toolbox. * @param version The version identifier to retrieve. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1585,7 +1697,7 @@ public Mono> getToolboxVersionWithResponseAsync(String name /** * Retrieve a specific version of a toolbox - * + * * Retrieves the specified version of a toolbox by name and version identifier. *

Response Body Schema

* @@ -1643,7 +1755,7 @@ public Mono> getToolboxVersionWithResponseAsync(String name * } * } * - * + * * @param name The name of the toolbox. * @param version The version identifier to retrieve. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1663,7 +1775,7 @@ public Response getToolboxVersionWithResponse(String name, String ve /** * Invoke the latest toolbox version through MCP - * + * * Invokes the latest version of the specified toolbox through its MCP endpoint. *

Request Body Schema

* @@ -1687,7 +1799,7 @@ public Response getToolboxVersionWithResponse(String name, String ve *
* *
NameTypeDescription
content-typeStringThe content type of the MCP response body.
- * + * * @param name The name of the toolbox. * @param contentType The content type of the MCP request body. * @param request The MCP request body. @@ -1708,7 +1820,7 @@ public Mono> invokeLatestToolboxMcpWithResponseAsync(String /** * Invoke the latest toolbox version through MCP - * + * * Invokes the latest version of the specified toolbox through its MCP endpoint. *

Request Body Schema

* @@ -1732,7 +1844,7 @@ public Mono> invokeLatestToolboxMcpWithResponseAsync(String * NameTypeDescription * content-typeStringThe content type of the MCP response body. * - * + * * @param name The name of the toolbox. * @param contentType The content type of the MCP request body. * @param request The MCP request body. @@ -1753,7 +1865,7 @@ public Response invokeLatestToolboxMcpWithResponse(String name, Stri /** * Update a toolbox to point to a specific version - * + * * Updates the toolbox's default version pointer to the specified version. *

Request Body Schema

* @@ -1829,7 +1941,7 @@ public Response invokeLatestToolboxMcpWithResponse(String name, Stri * } * } * - * + * * @param name The name of the toolbox to update. * @param updateToolboxRequest The updateToolboxRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1852,7 +1964,7 @@ public Mono> updateToolboxWithResponseAsync(String name, Bi /** * Update a toolbox to point to a specific version - * + * * Updates the toolbox's default version pointer to the specified version. *

Request Body Schema

* @@ -1928,7 +2040,7 @@ public Mono> updateToolboxWithResponseAsync(String name, Bi * } * } * - * + * * @param name The name of the toolbox to update. * @param updateToolboxRequest The updateToolboxRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1949,9 +2061,9 @@ public Response updateToolboxWithResponse(String name, BinaryData up /** * Delete a toolbox - * + * * Removes the specified toolbox along with all of its versions. - * + * * @param name The name of the toolbox to delete. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1968,9 +2080,9 @@ public Mono> deleteToolboxWithResponseAsync(String name, RequestO /** * Delete a toolbox - * + * * Removes the specified toolbox along with all of its versions. - * + * * @param name The name of the toolbox to delete. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1987,9 +2099,9 @@ public Response deleteToolboxWithResponse(String name, RequestOptions requ /** * Delete a specific version of a toolbox - * + * * Removes the specified version of a toolbox. - * + * * @param name The name of the toolbox. * @param version The version identifier to delete. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2008,9 +2120,9 @@ public Mono> deleteToolboxVersionWithResponseAsync(String name, S /** * Delete a specific version of a toolbox - * + * * Removes the specified version of a toolbox. - * + * * @param name The name of the toolbox. * @param version The version identifier to delete. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2042,6 +2154,9 @@ private List getValues(BinaryData binaryData, String... path) { private String getNextLink(BinaryData binaryData, String... path) { try { Object value = binaryData.toObject(Map.class); + if (Boolean.FALSE.equals(((Map) value).get("has_more"))) { + return null; + } for (String segment : path) { value = ((Map) value).get(segment); } diff --git a/sdk/ai/azure-ai-agents/src/main/resources/META-INF/azure-ai-agents_metadata.json b/sdk/ai/azure-ai-agents/src/main/resources/META-INF/azure-ai-agents_metadata.json index e5bc8f3e252ff..d91bb28bf154c 100644 --- a/sdk/ai/azure-ai-agents/src/main/resources/META-INF/azure-ai-agents_metadata.json +++ b/sdk/ai/azure-ai-agents/src/main/resources/META-INF/azure-ai-agents_metadata.json @@ -1 +1 @@ -{"flavor":"azure","apiVersions":{"Azure.AI.Projects":"v1"},"crossLanguagePackageId":"Azure.AI.Projects","crossLanguageVersion":"565304b4346a","crossLanguageDefinitions":{"com.azure.ai.agents.AgentsAsyncClient":"Azure.AI.Projects.Agents","com.azure.ai.agents.AgentsAsyncClient.beginCreateOptimizationJob":"Azure.AI.Projects.AgentOptimizationJobs.create","com.azure.ai.agents.AgentsAsyncClient.beginCreateOptimizationJobWithModel":"Azure.AI.Projects.AgentOptimizationJobs.create","com.azure.ai.agents.AgentsAsyncClient.cancelOptimizationJob":"Azure.AI.Projects.AgentOptimizationJobs.cancel","com.azure.ai.agents.AgentsAsyncClient.cancelOptimizationJobWithResponse":"Azure.AI.Projects.AgentOptimizationJobs.cancel","com.azure.ai.agents.AgentsAsyncClient.createAgent":"Azure.AI.Projects.Agents.createAgent","com.azure.ai.agents.AgentsAsyncClient.createAgentFromCode":"Azure.AI.Projects.Agents.createAgentFromCode","com.azure.ai.agents.AgentsAsyncClient.createAgentFromCodeWithResponseInternal":"Azure.AI.Projects.Agents.createAgentFromCode","com.azure.ai.agents.AgentsAsyncClient.createAgentFromManifest":"Azure.AI.Projects.Agents.createAgentFromManifest","com.azure.ai.agents.AgentsAsyncClient.createAgentFromManifestWithResponse":"Azure.AI.Projects.Agents.createAgentFromManifest","com.azure.ai.agents.AgentsAsyncClient.createAgentVersion":"Azure.AI.Projects.Agents.createAgentVersion","com.azure.ai.agents.AgentsAsyncClient.createAgentVersionFromCode":"Azure.AI.Projects.Agents.createAgentVersionFromCode","com.azure.ai.agents.AgentsAsyncClient.createAgentVersionFromCodeWithResponseInternal":"Azure.AI.Projects.Agents.createAgentVersionFromCode","com.azure.ai.agents.AgentsAsyncClient.createAgentVersionFromManifest":"Azure.AI.Projects.Agents.createAgentVersionFromManifest","com.azure.ai.agents.AgentsAsyncClient.createAgentVersionFromManifestWithResponse":"Azure.AI.Projects.Agents.createAgentVersionFromManifest","com.azure.ai.agents.AgentsAsyncClient.createAgentVersionWithResponse":"Azure.AI.Projects.Agents.createAgentVersion","com.azure.ai.agents.AgentsAsyncClient.createAgentWithResponse":"Azure.AI.Projects.Agents.createAgent","com.azure.ai.agents.AgentsAsyncClient.createSession":"Azure.AI.Projects.Agents.createSession","com.azure.ai.agents.AgentsAsyncClient.createSessionWithResponse":"Azure.AI.Projects.Agents.createSession","com.azure.ai.agents.AgentsAsyncClient.deleteOptimizationJob":"Azure.AI.Projects.AgentOptimizationJobs.delete","com.azure.ai.agents.AgentsAsyncClient.deleteOptimizationJobWithResponse":"Azure.AI.Projects.AgentOptimizationJobs.delete","com.azure.ai.agents.AgentsAsyncClient.deleteSession":"Azure.AI.Projects.Agents.deleteSession","com.azure.ai.agents.AgentsAsyncClient.deleteSessionFile":"Azure.AI.Projects.AgentSessionFiles.deleteSessionFile","com.azure.ai.agents.AgentsAsyncClient.deleteSessionFileWithResponse":"Azure.AI.Projects.AgentSessionFiles.deleteSessionFile","com.azure.ai.agents.AgentsAsyncClient.deleteSessionWithResponse":"Azure.AI.Projects.Agents.deleteSession","com.azure.ai.agents.AgentsAsyncClient.disableAgent":"Azure.AI.Projects.Agents.disableAgent","com.azure.ai.agents.AgentsAsyncClient.disableAgentWithResponse":"Azure.AI.Projects.Agents.disableAgent","com.azure.ai.agents.AgentsAsyncClient.downloadAgentCode":"Azure.AI.Projects.Agents.downloadAgentCode","com.azure.ai.agents.AgentsAsyncClient.downloadAgentCodeWithResponse":"Azure.AI.Projects.Agents.downloadAgentCode","com.azure.ai.agents.AgentsAsyncClient.downloadSessionFile":"Azure.AI.Projects.AgentSessionFiles.downloadSessionFile","com.azure.ai.agents.AgentsAsyncClient.downloadSessionFileWithResponse":"Azure.AI.Projects.AgentSessionFiles.downloadSessionFile","com.azure.ai.agents.AgentsAsyncClient.enableAgent":"Azure.AI.Projects.Agents.enableAgent","com.azure.ai.agents.AgentsAsyncClient.enableAgentWithResponse":"Azure.AI.Projects.Agents.enableAgent","com.azure.ai.agents.AgentsAsyncClient.estimateOptimizationJob":"Azure.AI.Projects.AgentOptimizationJobs.estimate","com.azure.ai.agents.AgentsAsyncClient.estimateOptimizationJobWithResponse":"Azure.AI.Projects.AgentOptimizationJobs.estimate","com.azure.ai.agents.AgentsAsyncClient.getAgent":"Azure.AI.Projects.Agents.getAgent","com.azure.ai.agents.AgentsAsyncClient.getAgentVersionDetails":"Azure.AI.Projects.Agents.getAgentVersion","com.azure.ai.agents.AgentsAsyncClient.getAgentVersionDetailsWithResponse":"Azure.AI.Projects.Agents.getAgentVersion","com.azure.ai.agents.AgentsAsyncClient.getAgentWithResponse":"Azure.AI.Projects.Agents.getAgent","com.azure.ai.agents.AgentsAsyncClient.getMicrosoft365AppPackage":"Azure.AI.Projects.Microsoft365Publishing.getMicrosoft365AppPackage","com.azure.ai.agents.AgentsAsyncClient.getMicrosoft365AppPackageWithResponse":"Azure.AI.Projects.Microsoft365Publishing.getMicrosoft365AppPackage","com.azure.ai.agents.AgentsAsyncClient.getMicrosoft365PublishDefaults":"Azure.AI.Projects.Microsoft365Publishing.getMicrosoft365PublishDefaults","com.azure.ai.agents.AgentsAsyncClient.getMicrosoft365PublishDefaultsWithResponse":"Azure.AI.Projects.Microsoft365Publishing.getMicrosoft365PublishDefaults","com.azure.ai.agents.AgentsAsyncClient.getOptimizationCandidate":"Azure.AI.Projects.AgentOptimizationJobCandidates.getCandidate","com.azure.ai.agents.AgentsAsyncClient.getOptimizationCandidateWithResponse":"Azure.AI.Projects.AgentOptimizationJobCandidates.getCandidate","com.azure.ai.agents.AgentsAsyncClient.getOptimizationJob":"Azure.AI.Projects.AgentOptimizationJobs.get","com.azure.ai.agents.AgentsAsyncClient.getOptimizationJobWithResponse":"Azure.AI.Projects.AgentOptimizationJobs.get","com.azure.ai.agents.AgentsAsyncClient.getSession":"Azure.AI.Projects.Agents.getSession","com.azure.ai.agents.AgentsAsyncClient.getSessionWithResponse":"Azure.AI.Projects.Agents.getSession","com.azure.ai.agents.AgentsAsyncClient.listAgentConversations":"Azure.AI.Projects.Conversations.listConversations","com.azure.ai.agents.AgentsAsyncClient.listAgentVersions":"Azure.AI.Projects.Agents.listAgentVersions","com.azure.ai.agents.AgentsAsyncClient.listAgents":"Azure.AI.Projects.Agents.listAgents","com.azure.ai.agents.AgentsAsyncClient.listOptimizationCandidates":"Azure.AI.Projects.AgentOptimizationJobCandidates.listCandidates","com.azure.ai.agents.AgentsAsyncClient.listOptimizationJobs":"Azure.AI.Projects.AgentOptimizationJobs.list","com.azure.ai.agents.AgentsAsyncClient.listSessionFiles":"Azure.AI.Projects.AgentSessionFiles.listSessionFiles","com.azure.ai.agents.AgentsAsyncClient.listSessions":"Azure.AI.Projects.Agents.listSessions","com.azure.ai.agents.AgentsAsyncClient.promoteOptimizationCandidate":"Azure.AI.Projects.AgentOptimizationJobCandidates.promoteCandidate","com.azure.ai.agents.AgentsAsyncClient.promoteOptimizationCandidateWithResponse":"Azure.AI.Projects.AgentOptimizationJobCandidates.promoteCandidate","com.azure.ai.agents.AgentsAsyncClient.publishAgentToMicrosoft365":"Azure.AI.Projects.Microsoft365Publishing.publishAgentToMicrosoft365","com.azure.ai.agents.AgentsAsyncClient.publishAgentToMicrosoft365WithResponse":"Azure.AI.Projects.Microsoft365Publishing.publishAgentToMicrosoft365","com.azure.ai.agents.AgentsAsyncClient.stopSession":"Azure.AI.Projects.Agents.stopSession","com.azure.ai.agents.AgentsAsyncClient.stopSessionWithResponse":"Azure.AI.Projects.Agents.stopSession","com.azure.ai.agents.AgentsAsyncClient.updateAgent":"Azure.AI.Projects.Agents.updateAgent","com.azure.ai.agents.AgentsAsyncClient.updateAgentDetails":"Azure.AI.Projects.Agents.patchAgentObject","com.azure.ai.agents.AgentsAsyncClient.updateAgentDetailsWithResponse":"Azure.AI.Projects.Agents.patchAgentObject","com.azure.ai.agents.AgentsAsyncClient.updateAgentFromCode":"Azure.AI.Projects.Agents.updateAgentFromCode","com.azure.ai.agents.AgentsAsyncClient.updateAgentFromCodeWithResponseInternal":"Azure.AI.Projects.Agents.updateAgentFromCode","com.azure.ai.agents.AgentsAsyncClient.updateAgentFromManifest":"Azure.AI.Projects.Agents.updateAgentFromManifest","com.azure.ai.agents.AgentsAsyncClient.updateAgentFromManifestWithResponse":"Azure.AI.Projects.Agents.updateAgentFromManifest","com.azure.ai.agents.AgentsAsyncClient.updateAgentWithResponse":"Azure.AI.Projects.Agents.updateAgent","com.azure.ai.agents.AgentsAsyncClient.uploadSessionFile":"Azure.AI.Projects.AgentSessionFiles.uploadSessionFile","com.azure.ai.agents.AgentsAsyncClient.uploadSessionFileWithResponse":"Azure.AI.Projects.AgentSessionFiles.uploadSessionFile","com.azure.ai.agents.AgentsClient":"Azure.AI.Projects.Agents","com.azure.ai.agents.AgentsClient.beginCreateOptimizationJob":"Azure.AI.Projects.AgentOptimizationJobs.create","com.azure.ai.agents.AgentsClient.beginCreateOptimizationJobWithModel":"Azure.AI.Projects.AgentOptimizationJobs.create","com.azure.ai.agents.AgentsClient.cancelOptimizationJob":"Azure.AI.Projects.AgentOptimizationJobs.cancel","com.azure.ai.agents.AgentsClient.cancelOptimizationJobWithResponse":"Azure.AI.Projects.AgentOptimizationJobs.cancel","com.azure.ai.agents.AgentsClient.createAgent":"Azure.AI.Projects.Agents.createAgent","com.azure.ai.agents.AgentsClient.createAgentFromCode":"Azure.AI.Projects.Agents.createAgentFromCode","com.azure.ai.agents.AgentsClient.createAgentFromCodeWithResponseInternal":"Azure.AI.Projects.Agents.createAgentFromCode","com.azure.ai.agents.AgentsClient.createAgentFromManifest":"Azure.AI.Projects.Agents.createAgentFromManifest","com.azure.ai.agents.AgentsClient.createAgentFromManifestWithResponse":"Azure.AI.Projects.Agents.createAgentFromManifest","com.azure.ai.agents.AgentsClient.createAgentVersion":"Azure.AI.Projects.Agents.createAgentVersion","com.azure.ai.agents.AgentsClient.createAgentVersionFromCode":"Azure.AI.Projects.Agents.createAgentVersionFromCode","com.azure.ai.agents.AgentsClient.createAgentVersionFromCodeWithResponseInternal":"Azure.AI.Projects.Agents.createAgentVersionFromCode","com.azure.ai.agents.AgentsClient.createAgentVersionFromManifest":"Azure.AI.Projects.Agents.createAgentVersionFromManifest","com.azure.ai.agents.AgentsClient.createAgentVersionFromManifestWithResponse":"Azure.AI.Projects.Agents.createAgentVersionFromManifest","com.azure.ai.agents.AgentsClient.createAgentVersionWithResponse":"Azure.AI.Projects.Agents.createAgentVersion","com.azure.ai.agents.AgentsClient.createAgentWithResponse":"Azure.AI.Projects.Agents.createAgent","com.azure.ai.agents.AgentsClient.createSession":"Azure.AI.Projects.Agents.createSession","com.azure.ai.agents.AgentsClient.createSessionWithResponse":"Azure.AI.Projects.Agents.createSession","com.azure.ai.agents.AgentsClient.deleteOptimizationJob":"Azure.AI.Projects.AgentOptimizationJobs.delete","com.azure.ai.agents.AgentsClient.deleteOptimizationJobWithResponse":"Azure.AI.Projects.AgentOptimizationJobs.delete","com.azure.ai.agents.AgentsClient.deleteSession":"Azure.AI.Projects.Agents.deleteSession","com.azure.ai.agents.AgentsClient.deleteSessionFile":"Azure.AI.Projects.AgentSessionFiles.deleteSessionFile","com.azure.ai.agents.AgentsClient.deleteSessionFileWithResponse":"Azure.AI.Projects.AgentSessionFiles.deleteSessionFile","com.azure.ai.agents.AgentsClient.deleteSessionWithResponse":"Azure.AI.Projects.Agents.deleteSession","com.azure.ai.agents.AgentsClient.disableAgent":"Azure.AI.Projects.Agents.disableAgent","com.azure.ai.agents.AgentsClient.disableAgentWithResponse":"Azure.AI.Projects.Agents.disableAgent","com.azure.ai.agents.AgentsClient.downloadAgentCode":"Azure.AI.Projects.Agents.downloadAgentCode","com.azure.ai.agents.AgentsClient.downloadAgentCodeWithResponse":"Azure.AI.Projects.Agents.downloadAgentCode","com.azure.ai.agents.AgentsClient.downloadSessionFile":"Azure.AI.Projects.AgentSessionFiles.downloadSessionFile","com.azure.ai.agents.AgentsClient.downloadSessionFileWithResponse":"Azure.AI.Projects.AgentSessionFiles.downloadSessionFile","com.azure.ai.agents.AgentsClient.enableAgent":"Azure.AI.Projects.Agents.enableAgent","com.azure.ai.agents.AgentsClient.enableAgentWithResponse":"Azure.AI.Projects.Agents.enableAgent","com.azure.ai.agents.AgentsClient.estimateOptimizationJob":"Azure.AI.Projects.AgentOptimizationJobs.estimate","com.azure.ai.agents.AgentsClient.estimateOptimizationJobWithResponse":"Azure.AI.Projects.AgentOptimizationJobs.estimate","com.azure.ai.agents.AgentsClient.getAgent":"Azure.AI.Projects.Agents.getAgent","com.azure.ai.agents.AgentsClient.getAgentVersionDetails":"Azure.AI.Projects.Agents.getAgentVersion","com.azure.ai.agents.AgentsClient.getAgentVersionDetailsWithResponse":"Azure.AI.Projects.Agents.getAgentVersion","com.azure.ai.agents.AgentsClient.getAgentWithResponse":"Azure.AI.Projects.Agents.getAgent","com.azure.ai.agents.AgentsClient.getMicrosoft365AppPackage":"Azure.AI.Projects.Microsoft365Publishing.getMicrosoft365AppPackage","com.azure.ai.agents.AgentsClient.getMicrosoft365AppPackageWithResponse":"Azure.AI.Projects.Microsoft365Publishing.getMicrosoft365AppPackage","com.azure.ai.agents.AgentsClient.getMicrosoft365PublishDefaults":"Azure.AI.Projects.Microsoft365Publishing.getMicrosoft365PublishDefaults","com.azure.ai.agents.AgentsClient.getMicrosoft365PublishDefaultsWithResponse":"Azure.AI.Projects.Microsoft365Publishing.getMicrosoft365PublishDefaults","com.azure.ai.agents.AgentsClient.getOptimizationCandidate":"Azure.AI.Projects.AgentOptimizationJobCandidates.getCandidate","com.azure.ai.agents.AgentsClient.getOptimizationCandidateWithResponse":"Azure.AI.Projects.AgentOptimizationJobCandidates.getCandidate","com.azure.ai.agents.AgentsClient.getOptimizationJob":"Azure.AI.Projects.AgentOptimizationJobs.get","com.azure.ai.agents.AgentsClient.getOptimizationJobWithResponse":"Azure.AI.Projects.AgentOptimizationJobs.get","com.azure.ai.agents.AgentsClient.getSession":"Azure.AI.Projects.Agents.getSession","com.azure.ai.agents.AgentsClient.getSessionWithResponse":"Azure.AI.Projects.Agents.getSession","com.azure.ai.agents.AgentsClient.listAgentConversations":"Azure.AI.Projects.Conversations.listConversations","com.azure.ai.agents.AgentsClient.listAgentVersions":"Azure.AI.Projects.Agents.listAgentVersions","com.azure.ai.agents.AgentsClient.listAgents":"Azure.AI.Projects.Agents.listAgents","com.azure.ai.agents.AgentsClient.listOptimizationCandidates":"Azure.AI.Projects.AgentOptimizationJobCandidates.listCandidates","com.azure.ai.agents.AgentsClient.listOptimizationJobs":"Azure.AI.Projects.AgentOptimizationJobs.list","com.azure.ai.agents.AgentsClient.listSessionFiles":"Azure.AI.Projects.AgentSessionFiles.listSessionFiles","com.azure.ai.agents.AgentsClient.listSessions":"Azure.AI.Projects.Agents.listSessions","com.azure.ai.agents.AgentsClient.promoteOptimizationCandidate":"Azure.AI.Projects.AgentOptimizationJobCandidates.promoteCandidate","com.azure.ai.agents.AgentsClient.promoteOptimizationCandidateWithResponse":"Azure.AI.Projects.AgentOptimizationJobCandidates.promoteCandidate","com.azure.ai.agents.AgentsClient.publishAgentToMicrosoft365":"Azure.AI.Projects.Microsoft365Publishing.publishAgentToMicrosoft365","com.azure.ai.agents.AgentsClient.publishAgentToMicrosoft365WithResponse":"Azure.AI.Projects.Microsoft365Publishing.publishAgentToMicrosoft365","com.azure.ai.agents.AgentsClient.stopSession":"Azure.AI.Projects.Agents.stopSession","com.azure.ai.agents.AgentsClient.stopSessionWithResponse":"Azure.AI.Projects.Agents.stopSession","com.azure.ai.agents.AgentsClient.updateAgent":"Azure.AI.Projects.Agents.updateAgent","com.azure.ai.agents.AgentsClient.updateAgentDetails":"Azure.AI.Projects.Agents.patchAgentObject","com.azure.ai.agents.AgentsClient.updateAgentDetailsWithResponse":"Azure.AI.Projects.Agents.patchAgentObject","com.azure.ai.agents.AgentsClient.updateAgentFromCode":"Azure.AI.Projects.Agents.updateAgentFromCode","com.azure.ai.agents.AgentsClient.updateAgentFromCodeWithResponseInternal":"Azure.AI.Projects.Agents.updateAgentFromCode","com.azure.ai.agents.AgentsClient.updateAgentFromManifest":"Azure.AI.Projects.Agents.updateAgentFromManifest","com.azure.ai.agents.AgentsClient.updateAgentFromManifestWithResponse":"Azure.AI.Projects.Agents.updateAgentFromManifest","com.azure.ai.agents.AgentsClient.updateAgentWithResponse":"Azure.AI.Projects.Agents.updateAgent","com.azure.ai.agents.AgentsClient.uploadSessionFile":"Azure.AI.Projects.AgentSessionFiles.uploadSessionFile","com.azure.ai.agents.AgentsClient.uploadSessionFileWithResponse":"Azure.AI.Projects.AgentSessionFiles.uploadSessionFile","com.azure.ai.agents.AgentsClientBuilder":"Azure.AI.Projects","com.azure.ai.agents.BetaAgentsAsyncClient":"Azure.AI.Projects.Beta.Agents","com.azure.ai.agents.BetaAgentsAsyncClient.createAgentFromPrompt":"Azure.AI.Projects.Agents.generateAgent","com.azure.ai.agents.BetaAgentsAsyncClient.createAgentFromPromptWithResponse":"Azure.AI.Projects.Agents.generateAgent","com.azure.ai.agents.BetaAgentsClient":"Azure.AI.Projects.Beta.Agents","com.azure.ai.agents.BetaAgentsClient.createAgentFromPrompt":"Azure.AI.Projects.Agents.generateAgent","com.azure.ai.agents.BetaAgentsClient.createAgentFromPromptWithResponse":"Azure.AI.Projects.Agents.generateAgent","com.azure.ai.agents.BetaMemoryStoresAsyncClient":"Azure.AI.Projects.Beta.MemoryStores","com.azure.ai.agents.BetaMemoryStoresAsyncClient.beginInternalUpdateMemories":"Azure.AI.Projects.MemoryStores.updateMemories","com.azure.ai.agents.BetaMemoryStoresAsyncClient.beginInternalUpdateMemoriesWithModel":"Azure.AI.Projects.MemoryStores.updateMemories","com.azure.ai.agents.BetaMemoryStoresAsyncClient.createMemory":"Azure.AI.Projects.MemoryStores.createMemory","com.azure.ai.agents.BetaMemoryStoresAsyncClient.createMemoryStore":"Azure.AI.Projects.MemoryStores.createMemoryStore","com.azure.ai.agents.BetaMemoryStoresAsyncClient.createMemoryStoreWithResponse":"Azure.AI.Projects.MemoryStores.createMemoryStore","com.azure.ai.agents.BetaMemoryStoresAsyncClient.createMemoryWithResponse":"Azure.AI.Projects.MemoryStores.createMemory","com.azure.ai.agents.BetaMemoryStoresAsyncClient.getMemory":"Azure.AI.Projects.MemoryStores.getMemory","com.azure.ai.agents.BetaMemoryStoresAsyncClient.getMemoryStore":"Azure.AI.Projects.MemoryStores.getMemoryStore","com.azure.ai.agents.BetaMemoryStoresAsyncClient.getMemoryStoreWithResponse":"Azure.AI.Projects.MemoryStores.getMemoryStore","com.azure.ai.agents.BetaMemoryStoresAsyncClient.getMemoryWithResponse":"Azure.AI.Projects.MemoryStores.getMemory","com.azure.ai.agents.BetaMemoryStoresAsyncClient.getUpdateResult":"Azure.AI.Projects.MemoryStores.getUpdateResult","com.azure.ai.agents.BetaMemoryStoresAsyncClient.getUpdateResultWithResponse":"Azure.AI.Projects.MemoryStores.getUpdateResult","com.azure.ai.agents.BetaMemoryStoresAsyncClient.internalSearchMemories":"Azure.AI.Projects.MemoryStores.searchMemories","com.azure.ai.agents.BetaMemoryStoresAsyncClient.internalSearchMemoriesWithResponse":"Azure.AI.Projects.MemoryStores.searchMemories","com.azure.ai.agents.BetaMemoryStoresAsyncClient.listMemories":"Azure.AI.Projects.MemoryStores.listMemories","com.azure.ai.agents.BetaMemoryStoresAsyncClient.listMemoryStores":"Azure.AI.Projects.MemoryStores.listMemoryStores","com.azure.ai.agents.BetaMemoryStoresAsyncClient.updateMemory":"Azure.AI.Projects.MemoryStores.updateMemory","com.azure.ai.agents.BetaMemoryStoresAsyncClient.updateMemoryStore":"Azure.AI.Projects.MemoryStores.updateMemoryStore","com.azure.ai.agents.BetaMemoryStoresAsyncClient.updateMemoryStoreWithResponse":"Azure.AI.Projects.MemoryStores.updateMemoryStore","com.azure.ai.agents.BetaMemoryStoresAsyncClient.updateMemoryWithResponse":"Azure.AI.Projects.MemoryStores.updateMemory","com.azure.ai.agents.BetaMemoryStoresClient":"Azure.AI.Projects.Beta.MemoryStores","com.azure.ai.agents.BetaMemoryStoresClient.beginInternalUpdateMemories":"Azure.AI.Projects.MemoryStores.updateMemories","com.azure.ai.agents.BetaMemoryStoresClient.beginInternalUpdateMemoriesWithModel":"Azure.AI.Projects.MemoryStores.updateMemories","com.azure.ai.agents.BetaMemoryStoresClient.createMemory":"Azure.AI.Projects.MemoryStores.createMemory","com.azure.ai.agents.BetaMemoryStoresClient.createMemoryStore":"Azure.AI.Projects.MemoryStores.createMemoryStore","com.azure.ai.agents.BetaMemoryStoresClient.createMemoryStoreWithResponse":"Azure.AI.Projects.MemoryStores.createMemoryStore","com.azure.ai.agents.BetaMemoryStoresClient.createMemoryWithResponse":"Azure.AI.Projects.MemoryStores.createMemory","com.azure.ai.agents.BetaMemoryStoresClient.getMemory":"Azure.AI.Projects.MemoryStores.getMemory","com.azure.ai.agents.BetaMemoryStoresClient.getMemoryStore":"Azure.AI.Projects.MemoryStores.getMemoryStore","com.azure.ai.agents.BetaMemoryStoresClient.getMemoryStoreWithResponse":"Azure.AI.Projects.MemoryStores.getMemoryStore","com.azure.ai.agents.BetaMemoryStoresClient.getMemoryWithResponse":"Azure.AI.Projects.MemoryStores.getMemory","com.azure.ai.agents.BetaMemoryStoresClient.getUpdateResult":"Azure.AI.Projects.MemoryStores.getUpdateResult","com.azure.ai.agents.BetaMemoryStoresClient.getUpdateResultWithResponse":"Azure.AI.Projects.MemoryStores.getUpdateResult","com.azure.ai.agents.BetaMemoryStoresClient.internalSearchMemories":"Azure.AI.Projects.MemoryStores.searchMemories","com.azure.ai.agents.BetaMemoryStoresClient.internalSearchMemoriesWithResponse":"Azure.AI.Projects.MemoryStores.searchMemories","com.azure.ai.agents.BetaMemoryStoresClient.listMemories":"Azure.AI.Projects.MemoryStores.listMemories","com.azure.ai.agents.BetaMemoryStoresClient.listMemoryStores":"Azure.AI.Projects.MemoryStores.listMemoryStores","com.azure.ai.agents.BetaMemoryStoresClient.updateMemory":"Azure.AI.Projects.MemoryStores.updateMemory","com.azure.ai.agents.BetaMemoryStoresClient.updateMemoryStore":"Azure.AI.Projects.MemoryStores.updateMemoryStore","com.azure.ai.agents.BetaMemoryStoresClient.updateMemoryStoreWithResponse":"Azure.AI.Projects.MemoryStores.updateMemoryStore","com.azure.ai.agents.BetaMemoryStoresClient.updateMemoryWithResponse":"Azure.AI.Projects.MemoryStores.updateMemory","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient":"Azure.AI.Projects.Beta.VoiceAgents.Conversations","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.deleteAgentConversation":"Azure.AI.Projects.AgentEndpointConversations.deleteAgentConversation","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.deleteAgentConversationWithResponse":"Azure.AI.Projects.AgentEndpointConversations.deleteAgentConversation","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.downloadAgentConversationAudio":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationAudioContent","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.downloadAgentConversationAudioItem":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationAudioItemContent","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.downloadAgentConversationAudioItemWithResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationAudioItemContent","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.downloadAgentConversationAudioWithResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationAudioContent","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.downloadAgentConversationGeneratedAudioItem":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationGeneratedAudioItemContent","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.downloadAgentConversationGeneratedAudioItemWithResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationGeneratedAudioItemContent","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.getAgentConversation":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversation","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.getAgentConversationAudio":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationAudio","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.getAgentConversationAudioItem":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationAudioItem","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.getAgentConversationAudioItemWithResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationAudioItem","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.getAgentConversationAudioWithResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationAudio","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.getAgentConversationGeneratedAudioItem":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationGeneratedAudioItem","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.getAgentConversationGeneratedAudioItemWithResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationGeneratedAudioItem","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.getAgentConversationItem":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationItem","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.getAgentConversationItemWithResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationItem","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.getAgentConversationResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationResponse","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.getAgentConversationResponseWithResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationResponse","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.getAgentConversationWithResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversation","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.listAgentConversationItems":"Azure.AI.Projects.AgentEndpointConversations.listAgentConversationItems","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.listAgentConversationResponseItems":"Azure.AI.Projects.AgentEndpointConversations.listAgentConversationResponseItems","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.listAgentConversationResponses":"Azure.AI.Projects.AgentEndpointConversations.listAgentConversationResponses","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.listAgentConversations":"Azure.AI.Projects.AgentEndpointConversations.listAgentConversations","com.azure.ai.agents.BetaVoiceAgentsConversationsClient":"Azure.AI.Projects.Beta.VoiceAgents.Conversations","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.deleteAgentConversation":"Azure.AI.Projects.AgentEndpointConversations.deleteAgentConversation","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.deleteAgentConversationWithResponse":"Azure.AI.Projects.AgentEndpointConversations.deleteAgentConversation","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.downloadAgentConversationAudio":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationAudioContent","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.downloadAgentConversationAudioItem":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationAudioItemContent","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.downloadAgentConversationAudioItemWithResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationAudioItemContent","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.downloadAgentConversationAudioWithResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationAudioContent","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.downloadAgentConversationGeneratedAudioItem":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationGeneratedAudioItemContent","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.downloadAgentConversationGeneratedAudioItemWithResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationGeneratedAudioItemContent","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.getAgentConversation":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversation","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.getAgentConversationAudio":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationAudio","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.getAgentConversationAudioItem":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationAudioItem","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.getAgentConversationAudioItemWithResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationAudioItem","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.getAgentConversationAudioWithResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationAudio","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.getAgentConversationGeneratedAudioItem":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationGeneratedAudioItem","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.getAgentConversationGeneratedAudioItemWithResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationGeneratedAudioItem","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.getAgentConversationItem":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationItem","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.getAgentConversationItemWithResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationItem","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.getAgentConversationResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationResponse","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.getAgentConversationResponseWithResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationResponse","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.getAgentConversationWithResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversation","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.listAgentConversationItems":"Azure.AI.Projects.AgentEndpointConversations.listAgentConversationItems","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.listAgentConversationResponseItems":"Azure.AI.Projects.AgentEndpointConversations.listAgentConversationResponseItems","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.listAgentConversationResponses":"Azure.AI.Projects.AgentEndpointConversations.listAgentConversationResponses","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.listAgentConversations":"Azure.AI.Projects.AgentEndpointConversations.listAgentConversations","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient":"Azure.AI.Projects.Beta.VoiceAgents.Telephony","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.cancelTelephonyCallJob":"Azure.AI.Projects.AgentTelephony.cancelTelephonyCallJob","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.cancelTelephonyCallJobWithResponse":"Azure.AI.Projects.AgentTelephony.cancelTelephonyCallJob","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.createTelephonyBinding":"Azure.AI.Projects.AgentTelephony.createTelephonyBinding","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.createTelephonyBindingWithResponse":"Azure.AI.Projects.AgentTelephony.createTelephonyBinding","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.createTelephonyCallJob":"Azure.AI.Projects.AgentTelephony.createTelephonyCallJob","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.createTelephonyCallJobWithResponse":"Azure.AI.Projects.AgentTelephony.createTelephonyCallJob","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.deleteTelephonyBinding":"Azure.AI.Projects.AgentTelephony.deleteTelephonyBinding","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.deleteTelephonyBindingWithResponse":"Azure.AI.Projects.AgentTelephony.deleteTelephonyBinding","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.endTelephonyCall":"Azure.AI.Projects.AgentTelephony.endTelephonyCall","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.endTelephonyCallWithResponse":"Azure.AI.Projects.AgentTelephony.endTelephonyCall","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.getTelephonyBinding":"Azure.AI.Projects.AgentTelephony.getTelephonyBinding","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.getTelephonyBindingWithResponse":"Azure.AI.Projects.AgentTelephony.getTelephonyBinding","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.getTelephonyCall":"Azure.AI.Projects.AgentTelephony.getTelephonyCall","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.getTelephonyCallJob":"Azure.AI.Projects.AgentTelephony.getTelephonyCallJob","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.getTelephonyCallJobWithResponse":"Azure.AI.Projects.AgentTelephony.getTelephonyCallJob","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.getTelephonyCallWithResponse":"Azure.AI.Projects.AgentTelephony.getTelephonyCall","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.getTelephonyTransferTargets":"Azure.AI.Projects.AgentTelephony.getTelephonyTransferTargets","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.getTelephonyTransferTargetsWithResponse":"Azure.AI.Projects.AgentTelephony.getTelephonyTransferTargets","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.listTelephonyBindings":"Azure.AI.Projects.AgentTelephony.listTelephonyBindings","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.listTelephonyCalls":"Azure.AI.Projects.AgentTelephony.listTelephonyCalls","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.replaceTelephonyTransferTargets":"Azure.AI.Projects.AgentTelephony.replaceTelephonyTransferTargets","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.replaceTelephonyTransferTargetsWithResponse":"Azure.AI.Projects.AgentTelephony.replaceTelephonyTransferTargets","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.transferTelephonyCall":"Azure.AI.Projects.AgentTelephony.transferTelephonyCall","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.transferTelephonyCallWithResponse":"Azure.AI.Projects.AgentTelephony.transferTelephonyCall","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.updateTelephonyBinding":"Azure.AI.Projects.AgentTelephony.updateTelephonyBinding","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.updateTelephonyBindingWithResponse":"Azure.AI.Projects.AgentTelephony.updateTelephonyBinding","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient":"Azure.AI.Projects.Beta.VoiceAgents.Telephony","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.cancelTelephonyCallJob":"Azure.AI.Projects.AgentTelephony.cancelTelephonyCallJob","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.cancelTelephonyCallJobWithResponse":"Azure.AI.Projects.AgentTelephony.cancelTelephonyCallJob","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.createTelephonyBinding":"Azure.AI.Projects.AgentTelephony.createTelephonyBinding","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.createTelephonyBindingWithResponse":"Azure.AI.Projects.AgentTelephony.createTelephonyBinding","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.createTelephonyCallJob":"Azure.AI.Projects.AgentTelephony.createTelephonyCallJob","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.createTelephonyCallJobWithResponse":"Azure.AI.Projects.AgentTelephony.createTelephonyCallJob","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.deleteTelephonyBinding":"Azure.AI.Projects.AgentTelephony.deleteTelephonyBinding","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.deleteTelephonyBindingWithResponse":"Azure.AI.Projects.AgentTelephony.deleteTelephonyBinding","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.endTelephonyCall":"Azure.AI.Projects.AgentTelephony.endTelephonyCall","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.endTelephonyCallWithResponse":"Azure.AI.Projects.AgentTelephony.endTelephonyCall","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.getTelephonyBinding":"Azure.AI.Projects.AgentTelephony.getTelephonyBinding","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.getTelephonyBindingWithResponse":"Azure.AI.Projects.AgentTelephony.getTelephonyBinding","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.getTelephonyCall":"Azure.AI.Projects.AgentTelephony.getTelephonyCall","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.getTelephonyCallJob":"Azure.AI.Projects.AgentTelephony.getTelephonyCallJob","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.getTelephonyCallJobWithResponse":"Azure.AI.Projects.AgentTelephony.getTelephonyCallJob","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.getTelephonyCallWithResponse":"Azure.AI.Projects.AgentTelephony.getTelephonyCall","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.getTelephonyTransferTargets":"Azure.AI.Projects.AgentTelephony.getTelephonyTransferTargets","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.getTelephonyTransferTargetsWithResponse":"Azure.AI.Projects.AgentTelephony.getTelephonyTransferTargets","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.listTelephonyBindings":"Azure.AI.Projects.AgentTelephony.listTelephonyBindings","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.listTelephonyCalls":"Azure.AI.Projects.AgentTelephony.listTelephonyCalls","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.replaceTelephonyTransferTargets":"Azure.AI.Projects.AgentTelephony.replaceTelephonyTransferTargets","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.replaceTelephonyTransferTargetsWithResponse":"Azure.AI.Projects.AgentTelephony.replaceTelephonyTransferTargets","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.transferTelephonyCall":"Azure.AI.Projects.AgentTelephony.transferTelephonyCall","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.transferTelephonyCallWithResponse":"Azure.AI.Projects.AgentTelephony.transferTelephonyCall","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.updateTelephonyBinding":"Azure.AI.Projects.AgentTelephony.updateTelephonyBinding","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.updateTelephonyBindingWithResponse":"Azure.AI.Projects.AgentTelephony.updateTelephonyBinding","com.azure.ai.agents.ToolboxesAsyncClient":"Azure.AI.Projects.Toolboxes","com.azure.ai.agents.ToolboxesAsyncClient.createToolboxVersion":"Azure.AI.Projects.Toolboxes.createToolboxVersion","com.azure.ai.agents.ToolboxesAsyncClient.createToolboxVersionWithResponse":"Azure.AI.Projects.Toolboxes.createToolboxVersion","com.azure.ai.agents.ToolboxesAsyncClient.deleteToolbox":"Azure.AI.Projects.Toolboxes.deleteToolbox","com.azure.ai.agents.ToolboxesAsyncClient.deleteToolboxVersion":"Azure.AI.Projects.Toolboxes.deleteToolboxVersion","com.azure.ai.agents.ToolboxesAsyncClient.deleteToolboxVersionWithResponse":"Azure.AI.Projects.Toolboxes.deleteToolboxVersion","com.azure.ai.agents.ToolboxesAsyncClient.deleteToolboxWithResponse":"Azure.AI.Projects.Toolboxes.deleteToolbox","com.azure.ai.agents.ToolboxesAsyncClient.getToolbox":"Azure.AI.Projects.Toolboxes.getToolbox","com.azure.ai.agents.ToolboxesAsyncClient.getToolboxVersion":"Azure.AI.Projects.Toolboxes.getToolboxVersion","com.azure.ai.agents.ToolboxesAsyncClient.getToolboxVersionWithResponse":"Azure.AI.Projects.Toolboxes.getToolboxVersion","com.azure.ai.agents.ToolboxesAsyncClient.getToolboxWithResponse":"Azure.AI.Projects.Toolboxes.getToolbox","com.azure.ai.agents.ToolboxesAsyncClient.invokeLatestToolboxMcp":"Azure.AI.Projects.Toolboxes.invokeLatestToolboxMcp","com.azure.ai.agents.ToolboxesAsyncClient.invokeLatestToolboxMcpWithResponse":"Azure.AI.Projects.Toolboxes.invokeLatestToolboxMcp","com.azure.ai.agents.ToolboxesAsyncClient.listToolboxVersions":"Azure.AI.Projects.Toolboxes.listToolboxVersions","com.azure.ai.agents.ToolboxesAsyncClient.listToolboxes":"Azure.AI.Projects.Toolboxes.listToolboxes","com.azure.ai.agents.ToolboxesAsyncClient.updateToolbox":"Azure.AI.Projects.Toolboxes.updateToolbox","com.azure.ai.agents.ToolboxesAsyncClient.updateToolboxWithResponse":"Azure.AI.Projects.Toolboxes.updateToolbox","com.azure.ai.agents.ToolboxesClient":"Azure.AI.Projects.Toolboxes","com.azure.ai.agents.ToolboxesClient.createToolboxVersion":"Azure.AI.Projects.Toolboxes.createToolboxVersion","com.azure.ai.agents.ToolboxesClient.createToolboxVersionWithResponse":"Azure.AI.Projects.Toolboxes.createToolboxVersion","com.azure.ai.agents.ToolboxesClient.deleteToolbox":"Azure.AI.Projects.Toolboxes.deleteToolbox","com.azure.ai.agents.ToolboxesClient.deleteToolboxVersion":"Azure.AI.Projects.Toolboxes.deleteToolboxVersion","com.azure.ai.agents.ToolboxesClient.deleteToolboxVersionWithResponse":"Azure.AI.Projects.Toolboxes.deleteToolboxVersion","com.azure.ai.agents.ToolboxesClient.deleteToolboxWithResponse":"Azure.AI.Projects.Toolboxes.deleteToolbox","com.azure.ai.agents.ToolboxesClient.getToolbox":"Azure.AI.Projects.Toolboxes.getToolbox","com.azure.ai.agents.ToolboxesClient.getToolboxVersion":"Azure.AI.Projects.Toolboxes.getToolboxVersion","com.azure.ai.agents.ToolboxesClient.getToolboxVersionWithResponse":"Azure.AI.Projects.Toolboxes.getToolboxVersion","com.azure.ai.agents.ToolboxesClient.getToolboxWithResponse":"Azure.AI.Projects.Toolboxes.getToolbox","com.azure.ai.agents.ToolboxesClient.invokeLatestToolboxMcp":"Azure.AI.Projects.Toolboxes.invokeLatestToolboxMcp","com.azure.ai.agents.ToolboxesClient.invokeLatestToolboxMcpWithResponse":"Azure.AI.Projects.Toolboxes.invokeLatestToolboxMcp","com.azure.ai.agents.ToolboxesClient.listToolboxVersions":"Azure.AI.Projects.Toolboxes.listToolboxVersions","com.azure.ai.agents.ToolboxesClient.listToolboxes":"Azure.AI.Projects.Toolboxes.listToolboxes","com.azure.ai.agents.ToolboxesClient.updateToolbox":"Azure.AI.Projects.Toolboxes.updateToolbox","com.azure.ai.agents.ToolboxesClient.updateToolboxWithResponse":"Azure.AI.Projects.Toolboxes.updateToolbox","com.azure.ai.agents.implementation.models.AgentDefinitionOptInKeys":"Azure.AI.Projects.AgentDefinitionOptInKeys","com.azure.ai.agents.implementation.models.CreateAgentFromCodeContent":"Azure.AI.Projects.CreateAgentFromCodeContent","com.azure.ai.agents.implementation.models.CreateAgentFromManifestRequest":"Azure.AI.Projects.createAgentFromManifest.Request.anonymous","com.azure.ai.agents.implementation.models.CreateAgentOptions":null,"com.azure.ai.agents.implementation.models.CreateAgentRequest":"Azure.AI.Projects.createAgent.Request.anonymous","com.azure.ai.agents.implementation.models.CreateAgentVersionFromManifestRequest":"Azure.AI.Projects.createAgentVersionFromManifest.Request.anonymous","com.azure.ai.agents.implementation.models.CreateAgentVersionRequest":"Azure.AI.Projects.createAgentVersion.Request.anonymous","com.azure.ai.agents.implementation.models.CreateMemoryRequest":"Azure.AI.Projects.createMemory.Request.anonymous","com.azure.ai.agents.implementation.models.CreateMemoryStoreRequest":"Azure.AI.Projects.createMemoryStore.Request.anonymous","com.azure.ai.agents.implementation.models.CreateSessionRequest":"Azure.AI.Projects.createSession.Request.anonymous","com.azure.ai.agents.implementation.models.CreateToolboxVersionRequest":"Azure.AI.Projects.createToolboxVersion.Request.anonymous","com.azure.ai.agents.implementation.models.FoundryFeaturesOptInKeys":"Azure.AI.Projects.FoundryFeaturesOptInKeys","com.azure.ai.agents.implementation.models.GetMicrosoft365AppPackageRequest":"Azure.AI.Projects.getMicrosoft365AppPackage.Request.anonymous","com.azure.ai.agents.implementation.models.ListMemoriesRequest":"Azure.AI.Projects.listMemories.Request.anonymous","com.azure.ai.agents.implementation.models.PublishAgentToMicrosoft365Request":"Azure.AI.Projects.publishAgentToMicrosoft365.Request.anonymous","com.azure.ai.agents.implementation.models.ReplaceTelephonyTransferTargetsRequest":"Azure.AI.Projects.replaceTelephonyTransferTargets.Request.anonymous","com.azure.ai.agents.implementation.models.SearchMemoriesRequest":"Azure.AI.Projects.searchMemories.Request.anonymous","com.azure.ai.agents.implementation.models.TransferTelephonyCallRequest":"Azure.AI.Projects.transferTelephonyCall.Request.anonymous","com.azure.ai.agents.implementation.models.UpdateAgentFromManifestRequest":"Azure.AI.Projects.updateAgentFromManifest.Request.anonymous","com.azure.ai.agents.implementation.models.UpdateAgentRequest":"Azure.AI.Projects.updateAgent.Request.anonymous","com.azure.ai.agents.implementation.models.UpdateMemoriesRequest":"Azure.AI.Projects.updateMemories.Request.anonymous","com.azure.ai.agents.implementation.models.UpdateMemoryRequest":"Azure.AI.Projects.updateMemory.Request.anonymous","com.azure.ai.agents.implementation.models.UpdateMemoryStoreRequest":"Azure.AI.Projects.updateMemoryStore.Request.anonymous","com.azure.ai.agents.implementation.models.UpdateToolboxInput":"Azure.AI.Projects.UpdateToolboxRequest","com.azure.ai.agents.implementation.models.UpdateToolboxRequest":"Azure.AI.Projects.updateToolbox.Request.anonymous","com.azure.ai.agents.models.A2APreviewTool":"Azure.AI.Projects.A2APreviewTool","com.azure.ai.agents.models.A2APreviewToolboxTool":"Azure.AI.Projects.A2APreviewToolboxTool","com.azure.ai.agents.models.A2AProtocolConfiguration":"Azure.AI.Projects.A2AProtocolConfiguration","com.azure.ai.agents.models.A2AProtocolVersion":"Azure.AI.Projects.A2AProtocolVersion","com.azure.ai.agents.models.A2ATool":"Azure.AI.Projects.A2ATool","com.azure.ai.agents.models.A2AToolCall":"Azure.AI.Projects.A2AToolCall","com.azure.ai.agents.models.A2AToolCallOutput":"Azure.AI.Projects.A2AToolCallOutput","com.azure.ai.agents.models.A2AToolboxTool":"Azure.AI.Projects.A2AToolboxTool","com.azure.ai.agents.models.AISearchIndexResource":"Azure.AI.Projects.AISearchIndexResource","com.azure.ai.agents.models.ActivityProtocolAccessBoundary":"Azure.AI.Projects.ActivityProtocolAccessBoundary","com.azure.ai.agents.models.ActivityProtocolConfiguration":"Azure.AI.Projects.ActivityProtocolConfiguration","com.azure.ai.agents.models.AgentBlueprintReference":"Azure.AI.Projects.AgentBlueprintReference","com.azure.ai.agents.models.AgentBlueprintReferenceType":"Azure.AI.Projects.AgentBlueprintReferenceType","com.azure.ai.agents.models.AgentCard":"Azure.AI.Projects.AgentCard","com.azure.ai.agents.models.AgentCardSkill":"Azure.AI.Projects.AgentCardSkill","com.azure.ai.agents.models.AgentDefinition":"Azure.AI.Projects.AgentDefinition","com.azure.ai.agents.models.AgentDetails":"Azure.AI.Projects.AgentObject","com.azure.ai.agents.models.AgentDetailsVersions":"Azure.AI.Projects.AgentObject.versions.anonymous","com.azure.ai.agents.models.AgentEndpointAuthorizationScheme":"Azure.AI.Projects.AgentEndpointAuthorizationScheme","com.azure.ai.agents.models.AgentEndpointAuthorizationSchemeType":"Azure.AI.Projects.AgentEndpointAuthorizationSchemeType","com.azure.ai.agents.models.AgentEndpointConfig":"Azure.AI.Projects.AgentEndpointConfig","com.azure.ai.agents.models.AgentEndpointProtocol":"Azure.AI.Projects.AgentEndpointProtocol","com.azure.ai.agents.models.AgentHarness":"Azure.AI.Projects.AgentHarness","com.azure.ai.agents.models.AgentIdentity":"Azure.AI.Projects.AgentIdentity","com.azure.ai.agents.models.AgentIdentityStatus":"Azure.AI.Projects.AgentIdentityStatus","com.azure.ai.agents.models.AgentKind":"Azure.AI.Projects.AgentKind","com.azure.ai.agents.models.AgentObjectType":"Azure.AI.Projects.AgentObjectType","com.azure.ai.agents.models.AgentOptimizationAgentCandidateOutput":"Azure.AI.Projects.AgentOptimizationAgentCandidateOutput","com.azure.ai.agents.models.AgentOptimizationBaselineAgentConfiguration":"Azure.AI.Projects.AgentOptimizationBaselineAgentConfiguration","com.azure.ai.agents.models.AgentOptimizationCandidate":"Azure.AI.Projects.AgentOptimizationCandidate","com.azure.ai.agents.models.AgentOptimizationCandidateEvaluation":"Azure.AI.Projects.AgentOptimizationCandidateEvaluation","com.azure.ai.agents.models.AgentOptimizationCandidateExpand":"Azure.AI.Projects.AgentOptimizationCandidateExpand","com.azure.ai.agents.models.AgentOptimizationCandidateOutput":"Azure.AI.Projects.AgentOptimizationCandidateOutput","com.azure.ai.agents.models.AgentOptimizationCandidatePromotionInfo":"Azure.AI.Projects.AgentOptimizationCandidatePromotionInfo","com.azure.ai.agents.models.AgentOptimizationCandidateSearchConfiguration":"Azure.AI.Projects.AgentOptimizationCandidateSearchConfiguration","com.azure.ai.agents.models.AgentOptimizationCandidateStatus":"Azure.AI.Projects.AgentOptimizationCandidateStatus","com.azure.ai.agents.models.AgentOptimizationConfiguration":"Azure.AI.Projects.AgentOptimizationConfiguration","com.azure.ai.agents.models.AgentOptimizationConfigurationBase":"Azure.AI.Projects.AgentOptimizationConfigurationBase","com.azure.ai.agents.models.AgentOptimizationConfigurationType":"Azure.AI.Projects.AgentOptimizationConfigurationType","com.azure.ai.agents.models.AgentOptimizationCostEstimate":"Azure.AI.Projects.AgentOptimizationCostEstimate","com.azure.ai.agents.models.AgentOptimizationDataSourceType":"Azure.AI.Projects.AgentOptimizationDataSourceType","com.azure.ai.agents.models.AgentOptimizationEstimateBand":"Azure.AI.Projects.AgentOptimizationEstimateBand","com.azure.ai.agents.models.AgentOptimizationEstimateInputs":"Azure.AI.Projects.AgentOptimizationEstimateInputs","com.azure.ai.agents.models.AgentOptimizationEstimateResult":"Azure.AI.Projects.AgentOptimizationEstimateResult","com.azure.ai.agents.models.AgentOptimizationEvaluationConfiguration":"Azure.AI.Projects.AgentOptimizationEvaluationConfiguration","com.azure.ai.agents.models.AgentOptimizationEvaluationSet":"Azure.AI.Projects.AgentOptimizationEvaluationSet","com.azure.ai.agents.models.AgentOptimizationEvaluationSetType":"Azure.AI.Projects.AgentOptimizationEvaluationSetType","com.azure.ai.agents.models.AgentOptimizationEvaluatorReference":"Azure.AI.Projects.AgentOptimizationEvaluator","com.azure.ai.agents.models.AgentOptimizationFoundryAgentTargetConfiguration":"Azure.AI.Projects.AgentOptimizationFoundryAgentTargetConfiguration","com.azure.ai.agents.models.AgentOptimizationGoal":"Azure.AI.Projects.AgentOptimizationGoal","com.azure.ai.agents.models.AgentOptimizationInstructionsMutation":"Azure.AI.Projects.AgentOptimizationInstructionsMutation","com.azure.ai.agents.models.AgentOptimizationJob":"Azure.AI.Projects.AgentOptimizationJob","com.azure.ai.agents.models.AgentOptimizationJobLatency":"Azure.AI.Projects.AgentOptimizationJobLatency","com.azure.ai.agents.models.AgentOptimizationJobResult":"Azure.AI.Projects.AgentOptimizationJobResult","com.azure.ai.agents.models.AgentOptimizationJobTokenUsage":"Azure.AI.Projects.AgentOptimizationJobTokenUsage","com.azure.ai.agents.models.AgentOptimizationModelConfiguration":"Azure.AI.Projects.AgentOptimizationModelConfiguration","com.azure.ai.agents.models.AgentOptimizationModelMutation":"Azure.AI.Projects.AgentOptimizationModelMutation","com.azure.ai.agents.models.AgentOptimizationMutation":"Azure.AI.Projects.AgentOptimizationMutation","com.azure.ai.agents.models.AgentOptimizationPromptCandidateOutput":"Azure.AI.Projects.AgentOptimizationPromptCandidateOutput","com.azure.ai.agents.models.AgentOptimizationResultCandidateSummary":"Azure.AI.Projects.AgentOptimizationResultCandidateSummary","com.azure.ai.agents.models.AgentOptimizationSkill":"Azure.AI.Projects.AgentOptimizationSkill","com.azure.ai.agents.models.AgentOptimizationSkillsMutation":"Azure.AI.Projects.AgentOptimizationSkillsMutation","com.azure.ai.agents.models.AgentOptimizationSpace":"Azure.AI.Projects.AgentOptimizationSpace","com.azure.ai.agents.models.AgentOptimizationStage":"Azure.AI.Projects.AgentOptimizationStage","com.azure.ai.agents.models.AgentOptimizationStageEstimate":"Azure.AI.Projects.AgentOptimizationStageEstimate","com.azure.ai.agents.models.AgentOptimizationTargetCompletionDataSource":"Azure.AI.Projects.AgentOptimizationTargetCompletionDataSource","com.azure.ai.agents.models.AgentOptimizationTargetCompletionDatasetReferenceDataSource":"Azure.AI.Projects.AgentOptimizationTargetCompletionDatasetReferenceDataSource","com.azure.ai.agents.models.AgentOptimizationTargetCompletionEvaluationSet":"Azure.AI.Projects.AgentOptimizationTargetCompletionEvaluationSet","com.azure.ai.agents.models.AgentOptimizationTargetCompletionInlineDataSource":"Azure.AI.Projects.AgentOptimizationTargetCompletionInlineDataSource","com.azure.ai.agents.models.AgentOptimizationTargetCompletionTestCase":"Azure.AI.Projects.AgentOptimizationTargetCompletionTestCase","com.azure.ai.agents.models.AgentOptimizationTargetConfiguration":"Azure.AI.Projects.AgentOptimizationTargetConfiguration","com.azure.ai.agents.models.AgentOptimizationTargetConfigurationType":"Azure.AI.Projects.AgentOptimizationTargetConfigurationType","com.azure.ai.agents.models.AgentOptimizationTerminationReason":"Azure.AI.Projects.AgentOptimizationTerminationReason","com.azure.ai.agents.models.AgentOptimizationToolsMutation":"Azure.AI.Projects.AgentOptimizationToolsMutation","com.azure.ai.agents.models.AgentOptimizationUserConversationSimulationDataSource":"Azure.AI.Projects.AgentOptimizationUserConversationSimulationDataSource","com.azure.ai.agents.models.AgentOptimizationUserConversationSimulationDatasetReferenceDataSource":"Azure.AI.Projects.AgentOptimizationUserConversationSimulationDatasetReferenceDataSource","com.azure.ai.agents.models.AgentOptimizationUserConversationSimulationEvaluationSet":"Azure.AI.Projects.AgentOptimizationUserConversationSimulationEvaluationSet","com.azure.ai.agents.models.AgentOptimizationUserConversationSimulationInlineDataSource":"Azure.AI.Projects.AgentOptimizationUserConversationSimulationInlineDataSource","com.azure.ai.agents.models.AgentReference":"Azure.AI.Projects.AgentReference","com.azure.ai.agents.models.AgentSessionResource":"Azure.AI.Projects.AgentSessionResource","com.azure.ai.agents.models.AgentSessionStatus":"Azure.AI.Projects.AgentSessionStatus","com.azure.ai.agents.models.AgentState":"Azure.AI.Projects.AgentState","com.azure.ai.agents.models.AgentStateSource":"Azure.AI.Projects.AgentStateSource","com.azure.ai.agents.models.AgentVersionDetails":"Azure.AI.Projects.AgentVersionObject","com.azure.ai.agents.models.AgentVersionStatus":"Azure.AI.Projects.AgentVersionStatus","com.azure.ai.agents.models.ApiError":"OpenAI.Error","com.azure.ai.agents.models.ApplyPatchToolParameter":"OpenAI.ApplyPatchToolParam","com.azure.ai.agents.models.ApproximateLocation":"OpenAI.ApproximateLocation","com.azure.ai.agents.models.AudioTranscription":"OpenAI.AudioTranscription","com.azure.ai.agents.models.AudioTranscriptionModel":"OpenAI.AudioTranscription.model.anonymous","com.azure.ai.agents.models.AutoCodeInterpreterToolParameter":"OpenAI.AutoCodeInterpreterToolParam","com.azure.ai.agents.models.AzureAISearchQueryType":"Azure.AI.Projects.AzureAISearchQueryType","com.azure.ai.agents.models.AzureAISearchTool":"Azure.AI.Projects.AzureAISearchTool","com.azure.ai.agents.models.AzureAISearchToolCall":"Azure.AI.Projects.AzureAISearchToolCall","com.azure.ai.agents.models.AzureAISearchToolCallOutput":"Azure.AI.Projects.AzureAISearchToolCallOutput","com.azure.ai.agents.models.AzureAISearchToolResource":"Azure.AI.Projects.AzureAISearchToolResource","com.azure.ai.agents.models.AzureAISearchToolboxTool":"Azure.AI.Projects.AzureAISearchToolboxTool","com.azure.ai.agents.models.AzureCreateResponseDetails":"Azure.AI.Projects.AzureCreateResponseDetails","com.azure.ai.agents.models.AzureCreateResponseOptions":"Azure.AI.Projects.AzureCreateResponseOptions","com.azure.ai.agents.models.AzureFunctionBinding":"Azure.AI.Projects.AzureFunctionBinding","com.azure.ai.agents.models.AzureFunctionDefinition":"Azure.AI.Projects.AzureFunctionDefinition","com.azure.ai.agents.models.AzureFunctionDefinitionDetails":"Azure.AI.Projects.AzureFunctionDefinition.function.anonymous","com.azure.ai.agents.models.AzureFunctionStorageQueue":"Azure.AI.Projects.AzureFunctionStorageQueue","com.azure.ai.agents.models.AzureFunctionTool":"Azure.AI.Projects.AzureFunctionTool","com.azure.ai.agents.models.AzureFunctionToolCall":"Azure.AI.Projects.AzureFunctionToolCall","com.azure.ai.agents.models.AzureFunctionToolCallOutput":"Azure.AI.Projects.AzureFunctionToolCallOutput","com.azure.ai.agents.models.AzureUserSecurityContext":"Azure.AI.Projects.AzureUserSecurityContext","com.azure.ai.agents.models.BingCustomSearchConfiguration":"Azure.AI.Projects.BingCustomSearchConfiguration","com.azure.ai.agents.models.BingCustomSearchPreviewTool":"Azure.AI.Projects.BingCustomSearchPreviewTool","com.azure.ai.agents.models.BingCustomSearchToolCall":"Azure.AI.Projects.BingCustomSearchToolCall","com.azure.ai.agents.models.BingCustomSearchToolCallOutput":"Azure.AI.Projects.BingCustomSearchToolCallOutput","com.azure.ai.agents.models.BingCustomSearchToolParameters":"Azure.AI.Projects.BingCustomSearchToolParameters","com.azure.ai.agents.models.BingGroundingSearchConfiguration":"Azure.AI.Projects.BingGroundingSearchConfiguration","com.azure.ai.agents.models.BingGroundingSearchToolParameters":"Azure.AI.Projects.BingGroundingSearchToolParameters","com.azure.ai.agents.models.BingGroundingTool":"Azure.AI.Projects.BingGroundingTool","com.azure.ai.agents.models.BingGroundingToolCall":"Azure.AI.Projects.BingGroundingToolCall","com.azure.ai.agents.models.BingGroundingToolCallOutput":"Azure.AI.Projects.BingGroundingToolCallOutput","com.azure.ai.agents.models.BotServiceAuthorizationScheme":"Azure.AI.Projects.BotServiceAuthorizationScheme","com.azure.ai.agents.models.BotServiceRbacAuthorizationScheme":"Azure.AI.Projects.BotServiceRbacAuthorizationScheme","com.azure.ai.agents.models.BotServiceTenantAuthorizationScheme":"Azure.AI.Projects.BotServiceTenantAuthorizationScheme","com.azure.ai.agents.models.BrowserAutomationPreviewTool":"Azure.AI.Projects.BrowserAutomationPreviewTool","com.azure.ai.agents.models.BrowserAutomationPreviewToolboxTool":"Azure.AI.Projects.BrowserAutomationPreviewToolboxTool","com.azure.ai.agents.models.BrowserAutomationTool":"Azure.AI.Projects.BrowserAutomationTool","com.azure.ai.agents.models.BrowserAutomationToolCall":"Azure.AI.Projects.BrowserAutomationToolCall","com.azure.ai.agents.models.BrowserAutomationToolCallOutput":"Azure.AI.Projects.BrowserAutomationToolCallOutput","com.azure.ai.agents.models.BrowserAutomationToolConnectionParameters":"Azure.AI.Projects.BrowserAutomationToolConnectionParameters","com.azure.ai.agents.models.BrowserAutomationToolParameters":"Azure.AI.Projects.BrowserAutomationToolParameters","com.azure.ai.agents.models.BrowserAutomationToolboxTool":"Azure.AI.Projects.BrowserAutomationToolboxTool","com.azure.ai.agents.models.CallableToolAllowedCaller":"OpenAI.CallableToolAllowedCaller","com.azure.ai.agents.models.CaptureStructuredOutputsTool":"Azure.AI.Projects.CaptureStructuredOutputsTool","com.azure.ai.agents.models.ChatSummaryMemoryItem":"Azure.AI.Projects.ChatSummaryMemoryItem","com.azure.ai.agents.models.CodeConfiguration":"Azure.AI.Projects.CodeConfiguration","com.azure.ai.agents.models.CodeDependencyResolution":"Azure.AI.Projects.CodeDependencyResolution","com.azure.ai.agents.models.CodeFileDetails":null,"com.azure.ai.agents.models.CodeInterpreterTool":"OpenAI.CodeInterpreterTool","com.azure.ai.agents.models.CodeInterpreterToolboxTool":"Azure.AI.Projects.CodeInterpreterToolboxTool","com.azure.ai.agents.models.ComputerEnvironment":"ComputerEnvironmentExpandable","com.azure.ai.agents.models.ComputerTool":"OpenAI.ComputerTool","com.azure.ai.agents.models.ComputerUsePreviewTool":"OpenAI.ComputerUsePreviewTool","com.azure.ai.agents.models.ContainerAutoParameter":"OpenAI.ContainerAutoParam","com.azure.ai.agents.models.ContainerConfiguration":"Azure.AI.Projects.ContainerConfiguration","com.azure.ai.agents.models.ContainerMemoryLimit":"ContainerMemoryLimitExpandable","com.azure.ai.agents.models.ContainerNetworkPolicyAllowlistParameter":"OpenAI.ContainerNetworkPolicyAllowlistParam","com.azure.ai.agents.models.ContainerNetworkPolicyDisabledParameter":"OpenAI.ContainerNetworkPolicyDisabledParam","com.azure.ai.agents.models.ContainerNetworkPolicyDomainSecretParameter":"OpenAI.ContainerNetworkPolicyDomainSecretParam","com.azure.ai.agents.models.ContainerNetworkPolicyParamType":"OpenAI.ContainerNetworkPolicyParamType","com.azure.ai.agents.models.ContainerNetworkPolicyParameter":"OpenAI.ContainerNetworkPolicyParam","com.azure.ai.agents.models.ContainerSkill":"OpenAI.ContainerSkill","com.azure.ai.agents.models.ContainerSkillType":"OpenAI.ContainerSkillType","com.azure.ai.agents.models.CreateAgentVersionFromCodeContent":"Azure.AI.Projects.CreateAgentVersionFromCodeContent","com.azure.ai.agents.models.CreateAgentVersionFromCodeMetadata":"Azure.AI.Projects.CreateAgentVersionFromCodeMetadata","com.azure.ai.agents.models.CreateAgentVersionInput":"Azure.AI.Projects.CreateAgentVersionRequest","com.azure.ai.agents.models.CreateAgentVersionOptions":null,"com.azure.ai.agents.models.CreateTeamsPhoneExtensionTelephonyBindingInput":"Azure.AI.Projects.CreateTeamsPhoneExtensionTelephonyBindingRequest","com.azure.ai.agents.models.CreateTelephonyBindingInput":"Azure.AI.Projects.CreateTelephonyBindingRequest","com.azure.ai.agents.models.CreateTelephonyCallJobInput":"Azure.AI.Projects.CreateTelephonyCallJobRequest","com.azure.ai.agents.models.CreateTwilioTelephonyBindingInput":"Azure.AI.Projects.CreateTwilioTelephonyBindingRequest","com.azure.ai.agents.models.CustomGrammarFormatParameter":"OpenAI.CustomGrammarFormatParam","com.azure.ai.agents.models.CustomTextFormatParameter":"OpenAI.CustomTextFormatParam","com.azure.ai.agents.models.CustomToolParamFormat":"OpenAI.CustomToolParamFormat","com.azure.ai.agents.models.CustomToolParamFormatType":"OpenAI.CustomToolParamFormatType","com.azure.ai.agents.models.CustomToolParameter":"OpenAI.CustomToolParam","com.azure.ai.agents.models.DigitalWorkerType":"Azure.AI.Projects.DigitalWorkerType","com.azure.ai.agents.models.EntraAuthorizationScheme":"Azure.AI.Projects.EntraAuthorizationScheme","com.azure.ai.agents.models.EvaluationAzureStandardVoiceModelConfiguration":"Azure.AI.Projects.EvaluationAzureStandardVoiceModelConfiguration","com.azure.ai.agents.models.EvaluationModelConfiguration":"Azure.AI.Projects.EvaluationModelConfiguration","com.azure.ai.agents.models.EvaluationVoiceModelConfiguration":"Azure.AI.Projects.EvaluationVoiceModelConfiguration","com.azure.ai.agents.models.ExternalAgentDefinition":"Azure.AI.Projects.ExternalAgentDefinition","com.azure.ai.agents.models.FabricDataAgentToolCall":"Azure.AI.Projects.FabricDataAgentToolCall","com.azure.ai.agents.models.FabricDataAgentToolCallOutput":"Azure.AI.Projects.FabricDataAgentToolCallOutput","com.azure.ai.agents.models.FabricDataAgentToolParameters":"Azure.AI.Projects.FabricDataAgentToolParameters","com.azure.ai.agents.models.FabricIqPreviewTool":"Azure.AI.Projects.FabricIQPreviewTool","com.azure.ai.agents.models.FabricIqPreviewToolboxTool":"Azure.AI.Projects.FabricIQPreviewToolboxTool","com.azure.ai.agents.models.FileSearchTool":"OpenAI.FileSearchTool","com.azure.ai.agents.models.FileSearchToolboxTool":"Azure.AI.Projects.FileSearchToolboxTool","com.azure.ai.agents.models.FixedRatioVersionSelectionRule":"Azure.AI.Projects.FixedRatioVersionSelectionRule","com.azure.ai.agents.models.FunctionShellToolParamEnvironment":"OpenAI.FunctionShellToolParamEnvironment","com.azure.ai.agents.models.FunctionShellToolParamEnvironmentType":"OpenAI.FunctionShellToolParamEnvironmentType","com.azure.ai.agents.models.FunctionShellToolParameter":"OpenAI.FunctionShellToolParam","com.azure.ai.agents.models.FunctionShellToolParameterEnvironmentContainerReferenceParameter":"OpenAI.FunctionShellToolParamEnvironmentContainerReferenceParam","com.azure.ai.agents.models.FunctionShellToolParameterEnvironmentLocalEnvironmentParameter":"OpenAI.FunctionShellToolParamEnvironmentLocalEnvironmentParam","com.azure.ai.agents.models.FunctionTool":"OpenAI.FunctionTool","com.azure.ai.agents.models.GetMicrosoft365AppPackageOptions":null,"com.azure.ai.agents.models.GitHubCopilotBuiltInTool":"Azure.AI.Projects.GitHubCopilotBuiltInTool","com.azure.ai.agents.models.GitHubCopilotHarness":"Azure.AI.Projects.GitHubCopilotHarness","com.azure.ai.agents.models.GitHubCopilotToolsetConfig":"Azure.AI.Projects.GitHubCopilotToolsetConfig","com.azure.ai.agents.models.GitHubCopilotToolsetDefaultConfig":"Azure.AI.Projects.GitHubCopilotToolsetDefaultConfig","com.azure.ai.agents.models.GitHubCopilotToolsetPreview":"Azure.AI.Projects.GitHubCopilotToolsetPreview","com.azure.ai.agents.models.GrammarSyntax":"GrammarSyntaxExpandable","com.azure.ai.agents.models.HeaderTelemetryEndpointAuth":"Azure.AI.Projects.HeaderTelemetryEndpointAuth","com.azure.ai.agents.models.HostedAgentDefinition":"Azure.AI.Projects.HostedAgentDefinition","com.azure.ai.agents.models.HybridSearchOptions":"OpenAI.HybridSearchOptions","com.azure.ai.agents.models.ImageGenActionEnum":"ImageGenActionEnumExpandable","com.azure.ai.agents.models.ImageGenTool":"OpenAI.ImageGenTool","com.azure.ai.agents.models.ImageGenToolBackground":"ImageGenToolBackgroundExpandable","com.azure.ai.agents.models.ImageGenToolInputImageMask":"OpenAI.ImageGenToolInputImageMask","com.azure.ai.agents.models.ImageGenToolModel":"OpenAI.ImageGenTool.model.anonymous","com.azure.ai.agents.models.ImageGenToolModeration":"ImageGenToolModerationExpandable","com.azure.ai.agents.models.ImageGenToolOutputFormat":"ImageGenToolOutputFormatExpandable","com.azure.ai.agents.models.ImageGenToolQuality":"ImageGenToolQualityExpandable","com.azure.ai.agents.models.ImageGenToolSize":"ImageGenToolSizeExpandable","com.azure.ai.agents.models.IncludeEnum":"OpenAI.IncludeEnum","com.azure.ai.agents.models.InlineSkillParameter":"OpenAI.InlineSkillParam","com.azure.ai.agents.models.InlineSkillSourceParameter":"OpenAI.InlineSkillSourceParam","com.azure.ai.agents.models.InputFidelity":"InputFidelityExpandable","com.azure.ai.agents.models.InvocationsProtocolConfiguration":"Azure.AI.Projects.InvocationsProtocolConfiguration","com.azure.ai.agents.models.InvocationsWsProtocolConfiguration":"Azure.AI.Projects.InvocationsWsProtocolConfiguration","com.azure.ai.agents.models.JobStatus":"Azure.AI.Projects.JobStatus","com.azure.ai.agents.models.ListMemoriesOptions":null,"com.azure.ai.agents.models.LocalShellToolParameter":"OpenAI.LocalShellToolParam","com.azure.ai.agents.models.LocalSkillParameter":"OpenAI.LocalSkillParam","com.azure.ai.agents.models.ManagedAgentIdentityBlueprintReference":"Azure.AI.Projects.ManagedAgentIdentityBlueprintReference","com.azure.ai.agents.models.McpListToolsTool":"OpenAI.MCPListToolsTool","com.azure.ai.agents.models.McpListToolsToolAnnotations":"OpenAI.MCPListToolsToolAnnotations","com.azure.ai.agents.models.McpListToolsToolInputSchema":"OpenAI.MCPListToolsToolInputSchema","com.azure.ai.agents.models.McpProtocolConfiguration":"Azure.AI.Projects.McpProtocolConfiguration","com.azure.ai.agents.models.McpTool":"OpenAI.MCPTool","com.azure.ai.agents.models.McpToolConnectorId":"McpToolConnectorIdExpandable","com.azure.ai.agents.models.McpToolFilter":"OpenAI.MCPToolFilter","com.azure.ai.agents.models.McpToolRequireApproval":"OpenAI.MCPToolRequireApproval","com.azure.ai.agents.models.McpToolboxTool":"Azure.AI.Projects.MCPToolboxTool","com.azure.ai.agents.models.MemoryCommandToolCall":"Azure.AI.Projects.MemoryCommandToolCall","com.azure.ai.agents.models.MemoryCommandToolCallOutput":"Azure.AI.Projects.MemoryCommandToolCallOutput","com.azure.ai.agents.models.MemoryItem":"Azure.AI.Projects.MemoryItem","com.azure.ai.agents.models.MemoryItemKind":"Azure.AI.Projects.MemoryItemKind","com.azure.ai.agents.models.MemoryOperation":"Azure.AI.Projects.MemoryOperation","com.azure.ai.agents.models.MemoryOperationKind":"Azure.AI.Projects.MemoryOperationKind","com.azure.ai.agents.models.MemorySearchItem":"Azure.AI.Projects.MemorySearchItem","com.azure.ai.agents.models.MemorySearchOptions":"Azure.AI.Projects.MemorySearchOptions","com.azure.ai.agents.models.MemorySearchPreviewTool":"Azure.AI.Projects.MemorySearchPreviewTool","com.azure.ai.agents.models.MemorySearchToolCall":"Azure.AI.Projects.MemorySearchToolCall","com.azure.ai.agents.models.MemoryStoreDefaultDefinition":"Azure.AI.Projects.MemoryStoreDefaultDefinition","com.azure.ai.agents.models.MemoryStoreDefaultOptions":"Azure.AI.Projects.MemoryStoreDefaultOptions","com.azure.ai.agents.models.MemoryStoreDefinition":"Azure.AI.Projects.MemoryStoreDefinition","com.azure.ai.agents.models.MemoryStoreDetails":"Azure.AI.Projects.MemoryStoreObject","com.azure.ai.agents.models.MemoryStoreKind":"Azure.AI.Projects.MemoryStoreKind","com.azure.ai.agents.models.MemoryStoreObjectType":"Azure.AI.Projects.MemoryStoreObjectType","com.azure.ai.agents.models.MemoryStoreOperationUsage":"Azure.AI.Projects.MemoryStoreOperationUsage","com.azure.ai.agents.models.MemoryStoreSearchResponse":"Azure.AI.Projects.MemoryStoreSearchResponse","com.azure.ai.agents.models.MemoryStoreUpdateCompletedResult":"Azure.AI.Projects.MemoryStoreUpdateCompletedResult","com.azure.ai.agents.models.MemoryStoreUpdateResponse":"Azure.AI.Projects.MemoryStoreUpdateResponse","com.azure.ai.agents.models.MemoryStoreUpdateStatus":"Azure.AI.Projects.MemoryStoreUpdateStatus","com.azure.ai.agents.models.Microsoft365PermissionScopes":"Azure.AI.Projects.Microsoft365PermissionScopes","com.azure.ai.agents.models.Microsoft365PublishDefaults":"Azure.AI.Projects.Microsoft365PublishDefaults","com.azure.ai.agents.models.Microsoft365PublishResult":"Azure.AI.Projects.Microsoft365PublishResponse","com.azure.ai.agents.models.Microsoft365PublishScope":"Azure.AI.Projects.Microsoft365PublishScope","com.azure.ai.agents.models.MicrosoftFabricPreviewTool":"Azure.AI.Projects.MicrosoftFabricPreviewTool","com.azure.ai.agents.models.ModelRouterAttempt":"Azure.AI.Projects.ModelRouterAttempt","com.azure.ai.agents.models.ModelRouterAttemptError":"Azure.AI.Projects.ModelRouterAttemptError","com.azure.ai.agents.models.ModelRouterAttemptResult":"Azure.AI.Projects.ModelRouterAttemptResult","com.azure.ai.agents.models.ModelRouterDetails":"Azure.AI.Projects.ModelRouterDetails","com.azure.ai.agents.models.ModelRouterMode":"Azure.AI.Projects.ModelRouterMode","com.azure.ai.agents.models.ModelSamplingParameters":"Azure.AI.Projects.ModelSamplingParams","com.azure.ai.agents.models.ModelSelectionDetails":"Azure.AI.Projects.ModelSelectionDetails","com.azure.ai.agents.models.NamespaceTool":"OpenAI.NamespaceToolParam","com.azure.ai.agents.models.OpenApiAnonymousAuthDetails":"Azure.AI.Projects.OpenApiAnonymousAuthDetails","com.azure.ai.agents.models.OpenApiAuthDetails":"Azure.AI.Projects.OpenApiAuthDetails","com.azure.ai.agents.models.OpenApiAuthType":"Azure.AI.Projects.OpenApiAuthType","com.azure.ai.agents.models.OpenApiFunctionDefinition":"Azure.AI.Projects.OpenApiFunctionDefinition","com.azure.ai.agents.models.OpenApiFunctionDefinitionFunction":"Azure.AI.Projects.OpenApiFunctionDefinition.function.anonymous","com.azure.ai.agents.models.OpenApiManagedAuthDetails":"Azure.AI.Projects.OpenApiManagedAuthDetails","com.azure.ai.agents.models.OpenApiManagedSecurityScheme":"Azure.AI.Projects.OpenApiManagedSecurityScheme","com.azure.ai.agents.models.OpenApiProjectConnectionAuthDetails":"Azure.AI.Projects.OpenApiProjectConnectionAuthDetails","com.azure.ai.agents.models.OpenApiProjectConnectionSecurityScheme":"Azure.AI.Projects.OpenApiProjectConnectionSecurityScheme","com.azure.ai.agents.models.OpenApiTool":"Azure.AI.Projects.OpenApiTool","com.azure.ai.agents.models.OpenApiToolCall":"Azure.AI.Projects.OpenApiToolCall","com.azure.ai.agents.models.OpenApiToolCallOutput":"Azure.AI.Projects.OpenApiToolCallOutput","com.azure.ai.agents.models.OpenApiToolboxTool":"Azure.AI.Projects.OpenApiToolboxTool","com.azure.ai.agents.models.OptimizationContext":"Azure.AI.Projects.OptimizationContext","com.azure.ai.agents.models.OptimizationContextType":"Azure.AI.Projects.OptimizationContextType","com.azure.ai.agents.models.OtlpTelemetryEndpoint":"Azure.AI.Projects.OtlpTelemetryEndpoint","com.azure.ai.agents.models.PageOrder":"Azure.AI.Projects.PageOrder","com.azure.ai.agents.models.ProceduralMemoryItem":"Azure.AI.Projects.ProceduralMemoryItem","com.azure.ai.agents.models.ProgrammaticToolCallingParameter":"OpenAI.ProgrammaticToolCallingParam","com.azure.ai.agents.models.PromptAgentDefinition":"Azure.AI.Projects.PromptAgentDefinition","com.azure.ai.agents.models.PromptAgentDefinitionTextOptions":"Azure.AI.Projects.PromptAgentDefinitionTextOptions","com.azure.ai.agents.models.PromptOptimizationConfiguration":"Azure.AI.Projects.PromptOptimizationConfiguration","com.azure.ai.agents.models.ProtocolConfiguration":"Azure.AI.Projects.ProtocolConfiguration","com.azure.ai.agents.models.ProtocolVersionRecord":"Azure.AI.Projects.ProtocolVersionRecord","com.azure.ai.agents.models.PstnTelephonyTransferDestination":"Azure.AI.Projects.PSTNTelephonyTransferDestination","com.azure.ai.agents.models.PublishAgentToMicrosoft365Options":null,"com.azure.ai.agents.models.PublishApprovalStatus":"Azure.AI.Projects.PublishApprovalStatus","com.azure.ai.agents.models.RaiConfig":"Azure.AI.Projects.RaiConfig","com.azure.ai.agents.models.RaiInvocationContentType":"Azure.AI.Projects.RaiInvocationContentType","com.azure.ai.agents.models.RaiInvocationModeration":"Azure.AI.Projects.RaiInvocationModeration","com.azure.ai.agents.models.RaiInvocationResponseMode":"Azure.AI.Projects.RaiInvocationMode","com.azure.ai.agents.models.RaiSseTextSelector":"Azure.AI.Projects.RaiSseTextSelector","com.azure.ai.agents.models.RankerVersionType":"RankerVersionTypeExpandable","com.azure.ai.agents.models.RankingOptions":"OpenAI.RankingOptions","com.azure.ai.agents.models.RealtimeAudioFormat":"OpenAI.RealtimeAudioFormats","com.azure.ai.agents.models.RealtimeAudioFormatType":"OpenAI.RealtimeAudioFormatsType","com.azure.ai.agents.models.RealtimeClientEvent":"OpenAI.RealtimeClientEvent","com.azure.ai.agents.models.RealtimeClientEventType":"OpenAI.RealtimeClientEventType","com.azure.ai.agents.models.RealtimeConversationCreatedEvent":"OpenAI.RealtimeServerEventConversationCreated","com.azure.ai.agents.models.RealtimeConversationItem":"OpenAI.RealtimeConversationItem","com.azure.ai.agents.models.RealtimeConversationItemAddedEvent":"OpenAI.RealtimeServerEventConversationItemAdded","com.azure.ai.agents.models.RealtimeConversationItemAssistantMessage":"OpenAI.RealtimeConversationItemMessageAssistant","com.azure.ai.agents.models.RealtimeConversationItemCreateEvent":"OpenAI.RealtimeClientEventConversationItemCreate","com.azure.ai.agents.models.RealtimeConversationItemCreatedEvent":"OpenAI.RealtimeServerEventConversationItemCreated","com.azure.ai.agents.models.RealtimeConversationItemDeleteEvent":"OpenAI.RealtimeClientEventConversationItemDelete","com.azure.ai.agents.models.RealtimeConversationItemDeletedEvent":"OpenAI.RealtimeServerEventConversationItemDeleted","com.azure.ai.agents.models.RealtimeConversationItemDoneEvent":"OpenAI.RealtimeServerEventConversationItemDone","com.azure.ai.agents.models.RealtimeConversationItemFunctionCall":"OpenAI.RealtimeConversationItemFunctionCall","com.azure.ai.agents.models.RealtimeConversationItemFunctionCallOutput":"OpenAI.RealtimeConversationItemFunctionCallOutput","com.azure.ai.agents.models.RealtimeConversationItemInputAudioTranscriptionCompletedEvent":"OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted","com.azure.ai.agents.models.RealtimeConversationItemInputAudioTranscriptionDeltaEvent":"OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta","com.azure.ai.agents.models.RealtimeConversationItemInputAudioTranscriptionFailedEvent":"OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed","com.azure.ai.agents.models.RealtimeConversationItemInputAudioTranscriptionSegmentEvent":"OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment","com.azure.ai.agents.models.RealtimeConversationItemMessage":"OpenAI.RealtimeConversationItemMessage","com.azure.ai.agents.models.RealtimeConversationItemMessageType":"OpenAI.RealtimeConversationItemMessageType","com.azure.ai.agents.models.RealtimeConversationItemObjectType":"RealtimeConversationItemObject","com.azure.ai.agents.models.RealtimeConversationItemRetrieveEvent":"OpenAI.RealtimeClientEventConversationItemRetrieve","com.azure.ai.agents.models.RealtimeConversationItemRetrievedEvent":"OpenAI.RealtimeServerEventConversationItemRetrieved","com.azure.ai.agents.models.RealtimeConversationItemSystemMessage":"OpenAI.RealtimeConversationItemMessageSystem","com.azure.ai.agents.models.RealtimeConversationItemTruncateEvent":"OpenAI.RealtimeClientEventConversationItemTruncate","com.azure.ai.agents.models.RealtimeConversationItemTruncatedEvent":"OpenAI.RealtimeServerEventConversationItemTruncated","com.azure.ai.agents.models.RealtimeConversationItemType":"OpenAI.RealtimeConversationItemType","com.azure.ai.agents.models.RealtimeConversationItemUserMessage":"OpenAI.RealtimeConversationItemMessageUser","com.azure.ai.agents.models.RealtimeErrorEvent":"OpenAI.RealtimeServerEventRealtimeServerEventError","com.azure.ai.agents.models.RealtimeInputAudioBufferAppendEvent":"OpenAI.RealtimeClientEventInputAudioBufferAppend","com.azure.ai.agents.models.RealtimeInputAudioBufferClearEvent":"OpenAI.RealtimeClientEventInputAudioBufferClear","com.azure.ai.agents.models.RealtimeInputAudioBufferClearedEvent":"OpenAI.RealtimeServerEventInputAudioBufferCleared","com.azure.ai.agents.models.RealtimeInputAudioBufferCommitEvent":"OpenAI.RealtimeClientEventInputAudioBufferCommit","com.azure.ai.agents.models.RealtimeInputAudioBufferCommittedEvent":"OpenAI.RealtimeServerEventInputAudioBufferCommitted","com.azure.ai.agents.models.RealtimeInputAudioBufferDtmfReceivedEvent":"OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceived","com.azure.ai.agents.models.RealtimeInputAudioBufferSpeechStartedEvent":"OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted","com.azure.ai.agents.models.RealtimeInputAudioBufferSpeechStoppedEvent":"OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped","com.azure.ai.agents.models.RealtimeInputAudioBufferTimeoutTriggeredEvent":"OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered","com.azure.ai.agents.models.RealtimeMcpApprovalInput":"OpenAI.RealtimeMCPApprovalRequest","com.azure.ai.agents.models.RealtimeMcpApprovalOutput":"OpenAI.RealtimeMCPApprovalResponse","com.azure.ai.agents.models.RealtimeMcpError":"OpenAI.RealtimeMCPError","com.azure.ai.agents.models.RealtimeMcpErrorType":"OpenAI.RealtimeMcpErrorType","com.azure.ai.agents.models.RealtimeMcpHttpError":"OpenAI.RealtimeMCPHTTPError","com.azure.ai.agents.models.RealtimeMcpListTools":"OpenAI.RealtimeMCPListTools","com.azure.ai.agents.models.RealtimeMcpListToolsCompletedEvent":"OpenAI.RealtimeServerEventMCPListToolsCompleted","com.azure.ai.agents.models.RealtimeMcpListToolsFailedEvent":"OpenAI.RealtimeServerEventMCPListToolsFailed","com.azure.ai.agents.models.RealtimeMcpListToolsInProgressEvent":"OpenAI.RealtimeServerEventMCPListToolsInProgress","com.azure.ai.agents.models.RealtimeMcpProtocolError":"OpenAI.RealtimeMCPProtocolError","com.azure.ai.agents.models.RealtimeMcpToolCall":"OpenAI.RealtimeMCPToolCall","com.azure.ai.agents.models.RealtimeMcpToolExecutionError":"OpenAI.RealtimeMCPToolExecutionError","com.azure.ai.agents.models.RealtimeOutputAudioBufferClearEvent":"OpenAI.RealtimeClientEventOutputAudioBufferClear","com.azure.ai.agents.models.RealtimeOutputAudioBufferClearedEvent":"OpenAI.RealtimeServerEventOutputAudioBufferCleared","com.azure.ai.agents.models.RealtimeOutputAudioBufferStartedEvent":"OpenAI.RealtimeServerEventOutputAudioBufferStarted","com.azure.ai.agents.models.RealtimeOutputAudioBufferStoppedEvent":"OpenAI.RealtimeServerEventOutputAudioBufferStopped","com.azure.ai.agents.models.RealtimePcmAudioFormat":"OpenAI.RealtimeAudioFormatsAudioPcm","com.azure.ai.agents.models.RealtimePcmaAudioFormat":"OpenAI.RealtimeAudioFormatsAudioPcma","com.azure.ai.agents.models.RealtimePcmuAudioFormat":"OpenAI.RealtimeAudioFormatsAudioPcmu","com.azure.ai.agents.models.RealtimeRateLimitsUpdatedEvent":"OpenAI.RealtimeServerEventRateLimitsUpdated","com.azure.ai.agents.models.RealtimeResponseAudioDeltaEvent":"OpenAI.RealtimeServerEventResponseAudioDelta","com.azure.ai.agents.models.RealtimeResponseAudioDoneEvent":"OpenAI.RealtimeServerEventResponseAudioDone","com.azure.ai.agents.models.RealtimeResponseAudioTranscriptDeltaEvent":"OpenAI.RealtimeServerEventResponseAudioTranscriptDelta","com.azure.ai.agents.models.RealtimeResponseAudioTranscriptDoneEvent":"OpenAI.RealtimeServerEventResponseAudioTranscriptDone","com.azure.ai.agents.models.RealtimeResponseCancelEvent":"OpenAI.RealtimeClientEventResponseCancel","com.azure.ai.agents.models.RealtimeResponseContentPart":"OpenAI.RealtimeServerEventResponseContentPartDonePart","com.azure.ai.agents.models.RealtimeResponseContentPartAddedEvent":"OpenAI.RealtimeServerEventResponseContentPartAdded","com.azure.ai.agents.models.RealtimeResponseContentPartDoneEvent":"OpenAI.RealtimeServerEventResponseContentPartDone","com.azure.ai.agents.models.RealtimeResponseCreateEvent":"OpenAI.RealtimeClientEventResponseCreate","com.azure.ai.agents.models.RealtimeResponseCreatedEvent":"OpenAI.RealtimeServerEventResponseCreated","com.azure.ai.agents.models.RealtimeResponseDoneEvent":"OpenAI.RealtimeServerEventResponseDone","com.azure.ai.agents.models.RealtimeResponseFunctionCallArgumentsDeltaEvent":"OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta","com.azure.ai.agents.models.RealtimeResponseFunctionCallArgumentsDoneEvent":"OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone","com.azure.ai.agents.models.RealtimeResponseMcpCallArgumentsDeltaEvent":"OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta","com.azure.ai.agents.models.RealtimeResponseMcpCallArgumentsDoneEvent":"OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone","com.azure.ai.agents.models.RealtimeResponseMcpCallCompletedEvent":"OpenAI.RealtimeServerEventResponseMCPCallCompleted","com.azure.ai.agents.models.RealtimeResponseMcpCallFailedEvent":"OpenAI.RealtimeServerEventResponseMCPCallFailed","com.azure.ai.agents.models.RealtimeResponseMcpCallInProgressEvent":"OpenAI.RealtimeServerEventResponseMCPCallInProgress","com.azure.ai.agents.models.RealtimeResponseOutputItemAddedEvent":"OpenAI.RealtimeServerEventResponseOutputItemAdded","com.azure.ai.agents.models.RealtimeResponseOutputItemDoneEvent":"OpenAI.RealtimeServerEventResponseOutputItemDone","com.azure.ai.agents.models.RealtimeResponseTextDeltaEvent":"OpenAI.RealtimeServerEventResponseTextDelta","com.azure.ai.agents.models.RealtimeResponseTextDoneEvent":"OpenAI.RealtimeServerEventResponseTextDone","com.azure.ai.agents.models.RealtimeSemanticVadTurnDetection":"OpenAI.RealtimeTurnDetectionSemanticVad","com.azure.ai.agents.models.RealtimeServerEvent":"OpenAI.RealtimeServerEvent","com.azure.ai.agents.models.RealtimeServerEventType":"OpenAI.RealtimeServerEventType","com.azure.ai.agents.models.RealtimeServerVadTurnDetection":"OpenAI.RealtimeTurnDetectionServerVad","com.azure.ai.agents.models.RealtimeSessionAudioConfiguration":"OpenAI.RealtimeSessionCreateRequestGAAudio","com.azure.ai.agents.models.RealtimeSessionAudioInput":"OpenAI.RealtimeSessionCreateRequestGAAudioInput","com.azure.ai.agents.models.RealtimeSessionAudioOutput":"OpenAI.RealtimeSessionCreateRequestGAAudioOutput","com.azure.ai.agents.models.RealtimeSessionConfiguration":"OpenAI.RealtimeSessionCreateRequestGA","com.azure.ai.agents.models.RealtimeSessionConfigurationBase":"OpenAI.RealtimeSessionCreateRequestUnion","com.azure.ai.agents.models.RealtimeSessionCreateRequestGAAudioOutputVoice":"OpenAI.RealtimeSessionCreateRequestGAAudioOutput.voice.anonymous","com.azure.ai.agents.models.RealtimeSessionCreatedEvent":"OpenAI.RealtimeServerEventSessionCreated","com.azure.ai.agents.models.RealtimeSessionTracingConfiguration":"OpenAI.RealtimeSessionCreateRequestGATracing","com.azure.ai.agents.models.RealtimeSessionType":"OpenAI.RealtimeSessionCreateRequestUnionType","com.azure.ai.agents.models.RealtimeSessionUpdateEvent":"OpenAI.RealtimeClientEventSessionUpdate","com.azure.ai.agents.models.RealtimeSessionUpdatedEvent":"OpenAI.RealtimeServerEventSessionUpdated","com.azure.ai.agents.models.RealtimeTranscriptionSessionAudioConfiguration":"OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudio","com.azure.ai.agents.models.RealtimeTranscriptionSessionAudioInput":"OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInput","com.azure.ai.agents.models.RealtimeTranscriptionSessionConfiguration":"OpenAI.RealtimeTranscriptionSessionCreateRequestGA","com.azure.ai.agents.models.RealtimeTurnDetection":"OpenAI.RealtimeTurnDetection","com.azure.ai.agents.models.RealtimeTurnDetectionType":"OpenAI.RealtimeTurnDetectionType","com.azure.ai.agents.models.ReminderPreviewToolboxTool":"Azure.AI.Projects.ReminderPreviewToolboxTool","com.azure.ai.agents.models.ResponseFormatJsonSchemaInner":"OpenAI.ResponseFormatJsonSchemaSchema","com.azure.ai.agents.models.ResponseUsageInputTokensDetails":"OpenAI.ResponseUsageInputTokensDetails","com.azure.ai.agents.models.ResponseUsageOutputTokensDetails":"OpenAI.ResponseUsageOutputTokensDetails","com.azure.ai.agents.models.ResponsesProtocolConfiguration":"Azure.AI.Projects.ResponsesProtocolConfiguration","com.azure.ai.agents.models.RoutingConfiguration":"Azure.AI.Projects.RoutingConfiguration","com.azure.ai.agents.models.RoutingTraceEntry":"Azure.AI.Projects.RoutingTraceEntry","com.azure.ai.agents.models.SearchContentType":"OpenAI.SearchContentType","com.azure.ai.agents.models.SearchContextSize":"SearchContextSizeExpandable","com.azure.ai.agents.models.SessionAffinityConfiguration":"Azure.AI.Projects.SessionAffinityConfiguration","com.azure.ai.agents.models.SessionAffinityDecision":"Azure.AI.Projects.SessionAffinityDecision","com.azure.ai.agents.models.SessionAffinityDetails":"Azure.AI.Projects.SessionAffinityDetails","com.azure.ai.agents.models.SessionAffinityMode":"Azure.AI.Projects.SessionAffinityMode","com.azure.ai.agents.models.SessionAffinityRequestMode":"Azure.AI.Projects.SessionAffinityRequestMode","com.azure.ai.agents.models.SessionAffinitySource":"Azure.AI.Projects.SessionAffinitySource","com.azure.ai.agents.models.SessionConfiguration":"Azure.AI.Projects.SessionConfiguration","com.azure.ai.agents.models.SessionDirectoryEntry":"Azure.AI.Projects.SessionDirectoryEntry","com.azure.ai.agents.models.SessionFileWriteResult":"Azure.AI.Projects.SessionFileWriteResponse","com.azure.ai.agents.models.SessionLogEvent":"Azure.AI.Projects.SessionLogEvent","com.azure.ai.agents.models.SessionLogEventType":"Azure.AI.Projects.SessionLogEventType","com.azure.ai.agents.models.SharepointGroundingToolCall":"Azure.AI.Projects.SharepointGroundingToolCall","com.azure.ai.agents.models.SharepointGroundingToolCallOutput":"Azure.AI.Projects.SharepointGroundingToolCallOutput","com.azure.ai.agents.models.SharepointGroundingToolParameters":"Azure.AI.Projects.SharepointGroundingToolParameters","com.azure.ai.agents.models.SharepointPreviewTool":"Azure.AI.Projects.SharepointPreviewTool","com.azure.ai.agents.models.ShellToolboxTool":"Azure.AI.Projects.ShellToolboxTool","com.azure.ai.agents.models.SipTelephonyTransferDestination":"Azure.AI.Projects.SipTelephonyTransferDestination","com.azure.ai.agents.models.SkillReference":"Azure.AI.Projects.SkillReference","com.azure.ai.agents.models.SkillReferenceParameter":"OpenAI.SkillReferenceParam","com.azure.ai.agents.models.SteeringPromptOptimizationContext":"Azure.AI.Projects.SteeringPromptOptimizationContext","com.azure.ai.agents.models.StructuredInputDefinition":"Azure.AI.Projects.StructuredInputDefinition","com.azure.ai.agents.models.StructuredOutputDefinition":"Azure.AI.Projects.StructuredOutputDefinition","com.azure.ai.agents.models.TargetAttribute":"Azure.AI.Projects.TargetAttribute","com.azure.ai.agents.models.TeamsPhoneExtensionTelephonyBinding":"Azure.AI.Projects.TeamsPhoneExtensionTelephonyBinding","com.azure.ai.agents.models.TeamsPhoneExtensionTelephonyBindingListItem":"Azure.AI.Projects.TeamsPhoneExtensionTelephonyBindingListItem","com.azure.ai.agents.models.TeamsTelephonyTransferDestination":"Azure.AI.Projects.TeamsTelephonyTransferDestination","com.azure.ai.agents.models.TelemetryConfig":"Azure.AI.Projects.TelemetryConfig","com.azure.ai.agents.models.TelemetryDataKind":"Azure.AI.Projects.TelemetryDataKind","com.azure.ai.agents.models.TelemetryEndpoint":"Azure.AI.Projects.TelemetryEndpoint","com.azure.ai.agents.models.TelemetryEndpointAuth":"Azure.AI.Projects.TelemetryEndpointAuth","com.azure.ai.agents.models.TelemetryEndpointAuthType":"Azure.AI.Projects.TelemetryEndpointAuthType","com.azure.ai.agents.models.TelemetryEndpointKind":"Azure.AI.Projects.TelemetryEndpointKind","com.azure.ai.agents.models.TelemetryTransportProtocol":"Azure.AI.Projects.TelemetryTransportProtocol","com.azure.ai.agents.models.TelephonyBinding":"Azure.AI.Projects.TelephonyBinding","com.azure.ai.agents.models.TelephonyBindingListItem":"Azure.AI.Projects.TelephonyBindingListItem","com.azure.ai.agents.models.TelephonyBindingStatus":"Azure.AI.Projects.TelephonyBindingStatus","com.azure.ai.agents.models.TelephonyCallDurationBasis":"Azure.AI.Projects.TelephonyCallDurationBasis","com.azure.ai.agents.models.TelephonyCallEndReason":"Azure.AI.Projects.TelephonyCallEndReason","com.azure.ai.agents.models.TelephonyCallJob":"Azure.AI.Projects.TelephonyCallJob","com.azure.ai.agents.models.TelephonyCallJobCancellation":"Azure.AI.Projects.TelephonyCallJobCancellation","com.azure.ai.agents.models.TelephonyCallJobSchedule":"Azure.AI.Projects.TelephonyCallJobSchedule","com.azure.ai.agents.models.TelephonyCallJobStatus":"Azure.AI.Projects.TelephonyCallJobStatus","com.azure.ai.agents.models.TelephonyCallJobTerminalReason":"Azure.AI.Projects.TelephonyCallJobTerminalReason","com.azure.ai.agents.models.TelephonyCallLifecycleEvent":"Azure.AI.Projects.TelephonyCallLifecycleEvent","com.azure.ai.agents.models.TelephonyCallLifecycleEventName":"Azure.AI.Projects.TelephonyCallLifecycleEventName","com.azure.ai.agents.models.TelephonyCallLifecycleEventOutcome":"Azure.AI.Projects.TelephonyCallLifecycleEventOutcome","com.azure.ai.agents.models.TelephonyCallLifecycleEventReason":"Azure.AI.Projects.TelephonyCallLifecycleEventReason","com.azure.ai.agents.models.TelephonyCallLifecycleEventSource":"Azure.AI.Projects.TelephonyCallLifecycleEventSource","com.azure.ai.agents.models.TelephonyCallPhase":"Azure.AI.Projects.TelephonyCallPhase","com.azure.ai.agents.models.TelephonyCallRecord":"Azure.AI.Projects.TelephonyCallRecord","com.azure.ai.agents.models.TelephonyCallStatus":"Azure.AI.Projects.TelephonyCallStatus","com.azure.ai.agents.models.TelephonyCallSummary":"Azure.AI.Projects.TelephonyCallSummary","com.azure.ai.agents.models.TelephonyCallTimestampSource":"Azure.AI.Projects.TelephonyCallTimestampSource","com.azure.ai.agents.models.TelephonyCallTiming":"Azure.AI.Projects.TelephonyCallTiming","com.azure.ai.agents.models.TelephonyCallTrace":"Azure.AI.Projects.TelephonyCallTrace","com.azure.ai.agents.models.TelephonyCallTraceMode":"Azure.AI.Projects.TelephonyCallTraceMode","com.azure.ai.agents.models.TelephonyCallTraceStatus":"Azure.AI.Projects.TelephonyCallTraceStatus","com.azure.ai.agents.models.TelephonyOutboundDestination":"Azure.AI.Projects.TelephonyOutboundDestination","com.azure.ai.agents.models.TelephonyOutboundDestinationType":"Azure.AI.Projects.TelephonyOutboundDestinationType","com.azure.ai.agents.models.TelephonyOutboundFixedIntervalRetryPolicy":"Azure.AI.Projects.TelephonyOutboundFixedIntervalRetryPolicy","com.azure.ai.agents.models.TelephonyOutboundRetryPolicy":"Azure.AI.Projects.TelephonyOutboundRetryPolicy","com.azure.ai.agents.models.TelephonyOutboundRetryPolicyType":"Azure.AI.Projects.TelephonyOutboundRetryPolicyType","com.azure.ai.agents.models.TelephonyProvider":"Azure.AI.Projects.TelephonyProvider","com.azure.ai.agents.models.TelephonyTransferDestination":"Azure.AI.Projects.TelephonyTransferDestination","com.azure.ai.agents.models.TelephonyTransferDestinationKind":"Azure.AI.Projects.TelephonyTransferDestinationKind","com.azure.ai.agents.models.TelephonyTransferTarget":"Azure.AI.Projects.TelephonyTransferTarget","com.azure.ai.agents.models.TelephonyTransferTargets":"Azure.AI.Projects.TelephonyTransferTargets","com.azure.ai.agents.models.TextResponseFormatConfiguration":"OpenAI.TextResponseFormatConfiguration","com.azure.ai.agents.models.TextResponseFormatConfigurationResponseFormatJsonObject":"OpenAI.TextResponseFormatConfigurationResponseFormatJsonObject","com.azure.ai.agents.models.TextResponseFormatConfigurationResponseFormatText":"OpenAI.TextResponseFormatConfigurationResponseFormatText","com.azure.ai.agents.models.TextResponseFormatConfigurationType":"OpenAI.TextResponseFormatConfigurationType","com.azure.ai.agents.models.TextResponseFormatJsonSchema":"OpenAI.TextResponseFormatJsonSchema","com.azure.ai.agents.models.Tool":"OpenAI.Tool","com.azure.ai.agents.models.ToolCallStatus":"Azure.AI.Projects.ToolCallStatus","com.azure.ai.agents.models.ToolConfig":"Azure.AI.Projects.ToolConfig","com.azure.ai.agents.models.ToolProjectConnection":"Azure.AI.Projects.ToolProjectConnection","com.azure.ai.agents.models.ToolSearchExecutionType":"OpenAI.ToolSearchExecutionType","com.azure.ai.agents.models.ToolSearchTool":"OpenAI.ToolSearchToolParam","com.azure.ai.agents.models.ToolSearchToolboxTool":"Azure.AI.Projects.ToolSearchToolboxTool","com.azure.ai.agents.models.ToolType":"OpenAI.ToolType","com.azure.ai.agents.models.ToolboxDetails":"Azure.AI.Projects.ToolboxObject","com.azure.ai.agents.models.ToolboxPolicies":"Azure.AI.Projects.ToolboxPolicies","com.azure.ai.agents.models.ToolboxSearchPreviewToolboxTool":"Azure.AI.Projects.ToolboxSearchPreviewToolboxTool","com.azure.ai.agents.models.ToolboxShellContainerAutoEnvironment":"Azure.AI.Projects.ToolboxShellContainerAutoEnvironment","com.azure.ai.agents.models.ToolboxShellContainerReferenceEnvironment":"Azure.AI.Projects.ToolboxShellContainerReferenceEnvironment","com.azure.ai.agents.models.ToolboxShellEnvironment":"Azure.AI.Projects.ToolboxShellEnvironment","com.azure.ai.agents.models.ToolboxShellNetworkPolicy":"Azure.AI.Projects.ToolboxShellNetworkPolicy","com.azure.ai.agents.models.ToolboxShellNetworkPolicyDisabled":"Azure.AI.Projects.ToolboxShellNetworkPolicyDisabled","com.azure.ai.agents.models.ToolboxSkill":"Azure.AI.Projects.ToolboxSkill","com.azure.ai.agents.models.ToolboxSkillReference":"Azure.AI.Projects.ToolboxSkillReference","com.azure.ai.agents.models.ToolboxTool":"Azure.AI.Projects.ToolboxTool","com.azure.ai.agents.models.ToolboxToolType":"Azure.AI.Projects.ToolboxToolType","com.azure.ai.agents.models.ToolboxVersionDetails":"Azure.AI.Projects.ToolboxVersionObject","com.azure.ai.agents.models.ToolboxVersions":"Azure.AI.Projects.ToolboxVersions","com.azure.ai.agents.models.TranscriptTextInputTokenDetails":"OpenAI.TranscriptTextUsageTokensInputTokenDetails","com.azure.ai.agents.models.TranscriptTextUsage":"OpenAI.CreateTranscriptionResponseJsonUsage","com.azure.ai.agents.models.TranscriptTextUsageDuration":"OpenAI.TranscriptTextUsageDuration","com.azure.ai.agents.models.TranscriptTextUsageTokens":"OpenAI.TranscriptTextUsageTokens","com.azure.ai.agents.models.TranscriptTextUsageType":"OpenAI.CreateTranscriptionResponseJsonUsageType","com.azure.ai.agents.models.TranscriptionLanguage":"OpenAI.TranscriptionLanguage","com.azure.ai.agents.models.TwilioTelephonyBinding":"Azure.AI.Projects.TwilioTelephonyBinding","com.azure.ai.agents.models.TwilioTelephonyBindingListItem":"Azure.AI.Projects.TwilioTelephonyBindingListItem","com.azure.ai.agents.models.UpdateAgentDetailsOptions":"Azure.AI.Projects.patchAgentObject.Request.anonymous","com.azure.ai.agents.models.UpdateTelephonyBindingInput":"Azure.AI.Projects.UpdateTelephonyBindingRequest","com.azure.ai.agents.models.UserConversationSimulationAudioEffect":"Azure.AI.Projects.UserConversationSimulationAudioEffect","com.azure.ai.agents.models.UserConversationSimulationAudioEffectsConfiguration":"Azure.AI.Projects.UserConversationSimulationAudioEffectsConfiguration","com.azure.ai.agents.models.UserConversationSimulationConfiguration":"Azure.AI.Projects.UserConversationSimulationConfiguration","com.azure.ai.agents.models.UserConversationSimulationDefaultInterruptionConfiguration":"Azure.AI.Projects.UserConversationSimulationDefaultInterruptionConfiguration","com.azure.ai.agents.models.UserConversationSimulationInterruptionConfiguration":"Azure.AI.Projects.UserConversationSimulationInterruptionConfiguration","com.azure.ai.agents.models.UserConversationSimulationTestCase":"Azure.AI.Projects.UserConversationSimulationTestCase","com.azure.ai.agents.models.UserConversationSimulationUserBehaviorConfiguration":"Azure.AI.Projects.UserConversationSimulationUserBehaviorConfiguration","com.azure.ai.agents.models.UserProfileMemoryItem":"Azure.AI.Projects.UserProfileMemoryItem","com.azure.ai.agents.models.VersionIndicator":"Azure.AI.Projects.VersionIndicator","com.azure.ai.agents.models.VersionIndicatorType":"Azure.AI.Projects.VersionIndicatorType","com.azure.ai.agents.models.VersionRefIndicator":"Azure.AI.Projects.VersionRefIndicator","com.azure.ai.agents.models.VersionSelectionRule":"Azure.AI.Projects.VersionSelectionRule","com.azure.ai.agents.models.VersionSelector":"Azure.AI.Projects.VersionSelector","com.azure.ai.agents.models.VersionSelectorType":"Azure.AI.Projects.VersionSelectorType","com.azure.ai.agents.models.VoiceAgentAnimationConfiguration":"Azure.AI.Projects.VoiceAgentAnimationConfig","com.azure.ai.agents.models.VoiceAgentAnimationOutputType":"Azure.AI.Projects.VoiceAgentAnimationOutputType","com.azure.ai.agents.models.VoiceAgentAudioConfiguration":"Azure.AI.Projects.VoiceAgentAudioConfig","com.azure.ai.agents.models.VoiceAgentAudioInputConfiguration":"Azure.AI.Projects.VoiceAgentAudioInputConfig","com.azure.ai.agents.models.VoiceAgentAudioOutputConfiguration":"Azure.AI.Projects.VoiceAgentAudioOutputConfig","com.azure.ai.agents.models.VoiceAgentAudioTimestampType":"Azure.AI.Projects.VoiceAgentAudioTimestampType","com.azure.ai.agents.models.VoiceAgentAvatarConfiguration":"Azure.AI.Projects.VoiceAgentAvatarConfig","com.azure.ai.agents.models.VoiceAgentAvatarIceServer":"Azure.AI.Projects.VoiceAgentAvatarIceServer","com.azure.ai.agents.models.VoiceAgentAvatarOutputProtocol":"Azure.AI.Projects.VoiceAgentAvatarOutputProtocol","com.azure.ai.agents.models.VoiceAgentAvatarScene":"Azure.AI.Projects.VoiceAgentAvatarScene","com.azure.ai.agents.models.VoiceAgentAvatarType":"Azure.AI.Projects.VoiceAgentAvatarType","com.azure.ai.agents.models.VoiceAgentAvatarVideoBackground":"Azure.AI.Projects.VoiceAgentAvatarVideoBackground","com.azure.ai.agents.models.VoiceAgentAvatarVideoCrop":"Azure.AI.Projects.VoiceAgentAvatarVideoCrop","com.azure.ai.agents.models.VoiceAgentAvatarVideoParameters":"Azure.AI.Projects.VoiceAgentAvatarVideoParams","com.azure.ai.agents.models.VoiceAgentAvatarVideoResolution":"Azure.AI.Projects.VoiceAgentAvatarVideoResolution","com.azure.ai.agents.models.VoiceAgentAzureSemanticVadEnglishTurnDetection":"Azure.AI.Projects.VoiceAgentAzureSemanticVadEnTurnDetection","com.azure.ai.agents.models.VoiceAgentAzureSemanticVadMultilingualTurnDetection":"Azure.AI.Projects.VoiceAgentAzureSemanticVadMultilingualTurnDetection","com.azure.ai.agents.models.VoiceAgentAzureSemanticVadTurnDetection":"Azure.AI.Projects.VoiceAgentAzureSemanticVadTurnDetection","com.azure.ai.agents.models.VoiceAgentDefinition":"Azure.AI.Projects.VoiceAgentDefinition","com.azure.ai.agents.models.VoiceAgentEchoCancellation":"Azure.AI.Projects.VoiceAgentEchoCancellation","com.azure.ai.agents.models.VoiceAgentEchoCancellationReferenceSource":"Azure.AI.Projects.VoiceAgentEchoCancellationReferenceSource","com.azure.ai.agents.models.VoiceAgentEndConversationSystemTool":"Azure.AI.Projects.VoiceAgentEndConversationSystemTool","com.azure.ai.agents.models.VoiceAgentEndOfUtteranceDetection":"Azure.AI.Projects.VoiceAgentEndOfUtteranceDetection","com.azure.ai.agents.models.VoiceAgentEndOfUtteranceDetectionModel":"Azure.AI.Projects.VoiceAgentEndOfUtteranceDetectionModel","com.azure.ai.agents.models.VoiceAgentEndOfUtteranceThresholdLevel":"Azure.AI.Projects.VoiceAgentEndOfUtteranceThresholdLevel","com.azure.ai.agents.models.VoiceAgentFunctionTool":"Azure.AI.Projects.VoiceAgentFunctionTool","com.azure.ai.agents.models.VoiceAgentFunctionToolType1":null,"com.azure.ai.agents.models.VoiceAgentGreetingConfiguration":"Azure.AI.Projects.VoiceAgentGreetingConfig","com.azure.ai.agents.models.VoiceAgentInputTranscription":"Azure.AI.Projects.VoiceAgentInputTranscription","com.azure.ai.agents.models.VoiceAgentInputTranscriptionModel":"Azure.AI.Projects.VoiceAgentInputTranscriptionModel","com.azure.ai.agents.models.VoiceAgentInterimResponseConfiguration":"Azure.AI.Projects.VoiceAgentInterimResponseConfig","com.azure.ai.agents.models.VoiceAgentInterimResponseTrigger":"Azure.AI.Projects.VoiceAgentInterimResponseTrigger","com.azure.ai.agents.models.VoiceAgentLlmGeneratedGreetingConfiguration":"Azure.AI.Projects.VoiceAgentLlmGeneratedGreetingConfig","com.azure.ai.agents.models.VoiceAgentLlmInterimResponseConfiguration":"Azure.AI.Projects.VoiceAgentLlmInterimResponseConfig","com.azure.ai.agents.models.VoiceAgentMcpTool":"Azure.AI.Projects.VoiceAgentMcpTool","com.azure.ai.agents.models.VoiceAgentNoiseReduction":"Azure.AI.Projects.VoiceAgentNoiseReduction","com.azure.ai.agents.models.VoiceAgentNoiseReductionType":"Azure.AI.Projects.VoiceAgentNoiseReductionType","com.azure.ai.agents.models.VoiceAgentRealtimeResponse":"Azure.AI.Projects.VoiceAgentRealtimeResponse","com.azure.ai.agents.models.VoiceAgentRealtimeResponseBase":"Azure.AI.Projects.VoiceAgentRealtimeResponseBase","com.azure.ai.agents.models.VoiceAgentResponseAnimationBlendshapeDeltaEvent":"Azure.AI.Projects.VoiceAgentServerEventResponseAnimationBlendshapesDelta","com.azure.ai.agents.models.VoiceAgentResponseAnimationBlendshapeDoneEvent":"Azure.AI.Projects.VoiceAgentServerEventResponseAnimationBlendshapesDone","com.azure.ai.agents.models.VoiceAgentResponseAnimationVisemeDeltaEvent":"Azure.AI.Projects.VoiceAgentServerEventResponseAnimationVisemeDelta","com.azure.ai.agents.models.VoiceAgentResponseAnimationVisemeDoneEvent":"Azure.AI.Projects.VoiceAgentServerEventResponseAnimationVisemeDone","com.azure.ai.agents.models.VoiceAgentResponseAudioConfig":"TypeSpec.PickProperties","com.azure.ai.agents.models.VoiceAgentResponseAudioTimestampDeltaEvent":"Azure.AI.Projects.VoiceAgentServerEventResponseAudioTimestampDelta","com.azure.ai.agents.models.VoiceAgentResponseAudioTimestampDoneEvent":"Azure.AI.Projects.VoiceAgentServerEventResponseAudioTimestampDone","com.azure.ai.agents.models.VoiceAgentResponseCreateOptions":"Azure.AI.Projects.VoiceAgentResponseCreateParams","com.azure.ai.agents.models.VoiceAgentResponseVideoDeltaEvent":"Azure.AI.Projects.VoiceAgentServerEventResponseVideoDelta","com.azure.ai.agents.models.VoiceAgentRtcCallErrorDetails":"Azure.AI.Projects.VoiceAgentRtcCallErrorDetails","com.azure.ai.agents.models.VoiceAgentRtcCallErrorEvent":"Azure.AI.Projects.VoiceAgentServerEventRtcCallError","com.azure.ai.agents.models.VoiceAgentRtcCallSdpCreateEvent":"Azure.AI.Projects.VoiceAgentClientEventRtcCallSdpCreate","com.azure.ai.agents.models.VoiceAgentRtcCallSdpCreatedEvent":"Azure.AI.Projects.VoiceAgentServerEventRtcCallSdpCreated","com.azure.ai.agents.models.VoiceAgentSemanticVadTurnDetection":"Azure.AI.Projects.VoiceAgentSemanticVadTurnDetection","com.azure.ai.agents.models.VoiceAgentServerVadTurnDetection":"Azure.AI.Projects.VoiceAgentServerVadTurnDetection","com.azure.ai.agents.models.VoiceAgentSessionAvatarConfiguration":"Azure.AI.Projects.VoiceAgentSessionAvatarConfig","com.azure.ai.agents.models.VoiceAgentSessionAvatarConnectEvent":"Azure.AI.Projects.VoiceAgentClientEventSessionAvatarConnect","com.azure.ai.agents.models.VoiceAgentSessionAvatarConnectingEvent":"Azure.AI.Projects.VoiceAgentServerEventSessionAvatarConnecting","com.azure.ai.agents.models.VoiceAgentSessionAvatarSwitchToIdleEvent":"Azure.AI.Projects.VoiceAgentServerEventSessionAvatarSwitchToIdle","com.azure.ai.agents.models.VoiceAgentSessionAvatarSwitchToSpeakingEvent":"Azure.AI.Projects.VoiceAgentServerEventSessionAvatarSwitchToSpeaking","com.azure.ai.agents.models.VoiceAgentSessionIncludeOption":"Azure.AI.Projects.VoiceAgentSessionIncludeOption","com.azure.ai.agents.models.VoiceAgentSessionResponseConfiguration":"Azure.AI.Projects.VoiceAgentSessionResponseConfig","com.azure.ai.agents.models.VoiceAgentSessionSubagentAbortedEvent":"Azure.AI.Projects.VoiceAgentServerEventSessionSubagentAborted","com.azure.ai.agents.models.VoiceAgentSessionSubagentCompletedEvent":"Azure.AI.Projects.VoiceAgentServerEventSessionSubagentCompleted","com.azure.ai.agents.models.VoiceAgentSessionSubagentStartedEvent":"Azure.AI.Projects.VoiceAgentServerEventSessionSubagentStarted","com.azure.ai.agents.models.VoiceAgentSessionUpdateConfiguration":"Azure.AI.Projects.VoiceAgentSessionUpdateConfig","com.azure.ai.agents.models.VoiceAgentStaticInterimResponseConfiguration":"Azure.AI.Projects.VoiceAgentStaticInterimResponseConfig","com.azure.ai.agents.models.VoiceAgentSubagent":"Azure.AI.Projects.VoiceAgentSubagent","com.azure.ai.agents.models.VoiceAgentSubagentAbortReason":"Azure.AI.Projects.VoiceAgentSubagentAbortReason","com.azure.ai.agents.models.VoiceAgentSubagentConfiguration":"Azure.AI.Projects.VoiceAgentSubagentConfig","com.azure.ai.agents.models.VoiceAgentSubagentResponsePolicy":"Azure.AI.Projects.VoiceAgentSubagentResponsePolicy","com.azure.ai.agents.models.VoiceAgentSystemTool":"Azure.AI.Projects.VoiceAgentSystemTool","com.azure.ai.agents.models.VoiceAgentSystemToolName":"Azure.AI.Projects.VoiceAgentSystemToolName","com.azure.ai.agents.models.VoiceAgentTemplateGreetingConfiguration":"Azure.AI.Projects.VoiceAgentTemplateGreetingConfig","com.azure.ai.agents.models.VoiceAgentTool":"Azure.AI.Projects.VoiceAgentTool","com.azure.ai.agents.models.VoiceAgentToolResponseScheduling":"Azure.AI.Projects.VoiceAgentToolResponseScheduling","com.azure.ai.agents.models.VoiceAgentToolboxTool":"Azure.AI.Projects.VoiceAgentToolboxTool","com.azure.ai.agents.models.VoiceAgentTranscriptionPhrase":"Azure.AI.Projects.VoiceAgentTranscriptionPhrase","com.azure.ai.agents.models.VoiceAgentTranscriptionWord":"Azure.AI.Projects.VoiceAgentTranscriptionWord","com.azure.ai.agents.models.VoiceAgentTransport":"Azure.AI.Projects.VoiceAgentTransport","com.azure.ai.agents.models.VoiceAgentTurnDetectionConfiguration":"Azure.AI.Projects.VoiceAgentTurnDetectionConfig","com.azure.ai.agents.models.VoiceAgentTurnDetectionType":"Azure.AI.Projects.VoiceAgentTurnDetectionType","com.azure.ai.agents.models.VoiceAgentWarningDetails":"Azure.AI.Projects.VoiceAgentServerEventWarningDetails","com.azure.ai.agents.models.VoiceAgentWarningEvent":"Azure.AI.Projects.VoiceAgentServerEventWarning","com.azure.ai.agents.models.VoiceAudioCodec":"Azure.AI.Projects.VoiceAudioCodec","com.azure.ai.agents.models.VoiceAudioContainerFormat":"Azure.AI.Projects.VoiceAudioContainerFormat","com.azure.ai.agents.models.VoiceAudioItem":"Azure.AI.Projects.VoiceAudioItem","com.azure.ai.agents.models.VoiceAudioRole":"Azure.AI.Projects.VoiceAudioRole","com.azure.ai.agents.models.VoiceConversation":"Azure.AI.Projects.VoiceConversation","com.azure.ai.agents.models.VoiceConversationEngine":"Azure.AI.Projects.VoiceConversationEngine","com.azure.ai.agents.models.VoiceConversationStatus":"Azure.AI.Projects.VoiceConversationStatus","com.azure.ai.agents.models.VoiceGeneratedAudioItem":"Azure.AI.Projects.VoiceGeneratedAudioItem","com.azure.ai.agents.models.VoiceHostedAgentConversationEngine":"Azure.AI.Projects.VoiceHostedAgentConversationEngine","com.azure.ai.agents.models.VoiceIds":"OpenAI.VoiceIdsShared","com.azure.ai.agents.models.VoiceModelType":"Azure.AI.Projects.VoiceModelType","com.azure.ai.agents.models.VoiceOutputModality":"Azure.AI.Projects.VoiceOutputModality","com.azure.ai.agents.models.VoiceRecording":"Azure.AI.Projects.VoiceRecording","com.azure.ai.agents.models.VoiceRecordingChannelLayout":"Azure.AI.Projects.VoiceRecordingChannelLayout","com.azure.ai.agents.models.VoiceResponse":"Azure.AI.Projects.VoiceResponse","com.azure.ai.agents.models.VoiceResponseAudio":"Azure.AI.Projects.VoiceResponseAudio","com.azure.ai.agents.models.VoiceResponseAudioOutput":"Azure.AI.Projects.VoiceResponseAudioOutput","com.azure.ai.agents.models.VoiceResponseBase":"Azure.AI.Projects.VoiceResponseBase","com.azure.ai.agents.models.VoiceResponseBaseObject":null,"com.azure.ai.agents.models.VoiceType":"Azure.AI.Projects.VoiceType","com.azure.ai.agents.models.WebIqPreviewTool":"Azure.AI.Projects.WebIQPreviewTool","com.azure.ai.agents.models.WebIqPreviewToolboxTool":"Azure.AI.Projects.WebIQPreviewToolboxTool","com.azure.ai.agents.models.WebSearchApproximateLocation":"OpenAI.WebSearchApproximateLocation","com.azure.ai.agents.models.WebSearchConfiguration":"Azure.AI.Projects.WebSearchConfiguration","com.azure.ai.agents.models.WebSearchPreviewTool":"OpenAI.WebSearchPreviewTool","com.azure.ai.agents.models.WebSearchTool":"OpenAI.WebSearchTool","com.azure.ai.agents.models.WebSearchToolFilters":"OpenAI.WebSearchToolFilters","com.azure.ai.agents.models.WebSearchToolSearchContextSize":"WebSearchToolSearchContextSizeExpandable","com.azure.ai.agents.models.WebSearchToolboxTool":"Azure.AI.Projects.WebSearchToolboxTool","com.azure.ai.agents.models.WorkIqPreviewTool":"Azure.AI.Projects.WorkIQPreviewTool","com.azure.ai.agents.models.WorkIqPreviewToolboxTool":"Azure.AI.Projects.WorkIQPreviewToolboxTool","com.azure.ai.agents.models.WorkflowAgentDefinition":"Azure.AI.Projects.WorkflowAgentDefinition"},"generatedFiles":["src/main/java/com/azure/ai/agents/AgentsAsyncClient.java","src/main/java/com/azure/ai/agents/AgentsClient.java","src/main/java/com/azure/ai/agents/AgentsClientBuilder.java","src/main/java/com/azure/ai/agents/AgentsServiceVersion.java","src/main/java/com/azure/ai/agents/BetaAgentsAsyncClient.java","src/main/java/com/azure/ai/agents/BetaAgentsClient.java","src/main/java/com/azure/ai/agents/BetaMemoryStoresAsyncClient.java","src/main/java/com/azure/ai/agents/BetaMemoryStoresClient.java","src/main/java/com/azure/ai/agents/BetaVoiceAgentsConversationsAsyncClient.java","src/main/java/com/azure/ai/agents/BetaVoiceAgentsConversationsClient.java","src/main/java/com/azure/ai/agents/BetaVoiceAgentsTelephonyAsyncClient.java","src/main/java/com/azure/ai/agents/BetaVoiceAgentsTelephonyClient.java","src/main/java/com/azure/ai/agents/ToolboxesAsyncClient.java","src/main/java/com/azure/ai/agents/ToolboxesClient.java","src/main/java/com/azure/ai/agents/implementation/AgentsClientImpl.java","src/main/java/com/azure/ai/agents/implementation/AgentsImpl.java","src/main/java/com/azure/ai/agents/implementation/BetaAgentsImpl.java","src/main/java/com/azure/ai/agents/implementation/BetaMemoryStoresImpl.java","src/main/java/com/azure/ai/agents/implementation/BetaVoiceAgentsConversationsImpl.java","src/main/java/com/azure/ai/agents/implementation/BetaVoiceAgentsTelephoniesImpl.java","src/main/java/com/azure/ai/agents/implementation/JsonMergePatchHelper.java","src/main/java/com/azure/ai/agents/implementation/MultipartFormDataHelper.java","src/main/java/com/azure/ai/agents/implementation/OperationLocationPollingStrategy.java","src/main/java/com/azure/ai/agents/implementation/PollingUtils.java","src/main/java/com/azure/ai/agents/implementation/SyncOperationLocationPollingStrategy.java","src/main/java/com/azure/ai/agents/implementation/ToolboxesImpl.java","src/main/java/com/azure/ai/agents/implementation/models/AgentDefinitionOptInKeys.java","src/main/java/com/azure/ai/agents/implementation/models/CreateAgentFromCodeContent.java","src/main/java/com/azure/ai/agents/implementation/models/CreateAgentFromManifestRequest.java","src/main/java/com/azure/ai/agents/implementation/models/CreateAgentOptions.java","src/main/java/com/azure/ai/agents/implementation/models/CreateAgentRequest.java","src/main/java/com/azure/ai/agents/implementation/models/CreateAgentVersionFromManifestRequest.java","src/main/java/com/azure/ai/agents/implementation/models/CreateAgentVersionRequest.java","src/main/java/com/azure/ai/agents/implementation/models/CreateMemoryRequest.java","src/main/java/com/azure/ai/agents/implementation/models/CreateMemoryStoreRequest.java","src/main/java/com/azure/ai/agents/implementation/models/CreateSessionRequest.java","src/main/java/com/azure/ai/agents/implementation/models/CreateToolboxVersionRequest.java","src/main/java/com/azure/ai/agents/implementation/models/FoundryFeaturesOptInKeys.java","src/main/java/com/azure/ai/agents/implementation/models/GetMicrosoft365AppPackageRequest.java","src/main/java/com/azure/ai/agents/implementation/models/ListMemoriesRequest.java","src/main/java/com/azure/ai/agents/implementation/models/PublishAgentToMicrosoft365Request.java","src/main/java/com/azure/ai/agents/implementation/models/ReplaceTelephonyTransferTargetsRequest.java","src/main/java/com/azure/ai/agents/implementation/models/SearchMemoriesRequest.java","src/main/java/com/azure/ai/agents/implementation/models/TransferTelephonyCallRequest.java","src/main/java/com/azure/ai/agents/implementation/models/UpdateAgentFromManifestRequest.java","src/main/java/com/azure/ai/agents/implementation/models/UpdateAgentRequest.java","src/main/java/com/azure/ai/agents/implementation/models/UpdateMemoriesRequest.java","src/main/java/com/azure/ai/agents/implementation/models/UpdateMemoryRequest.java","src/main/java/com/azure/ai/agents/implementation/models/UpdateMemoryStoreRequest.java","src/main/java/com/azure/ai/agents/implementation/models/UpdateToolboxInput.java","src/main/java/com/azure/ai/agents/implementation/models/UpdateToolboxRequest.java","src/main/java/com/azure/ai/agents/implementation/models/package-info.java","src/main/java/com/azure/ai/agents/implementation/package-info.java","src/main/java/com/azure/ai/agents/models/A2APreviewTool.java","src/main/java/com/azure/ai/agents/models/A2APreviewToolboxTool.java","src/main/java/com/azure/ai/agents/models/A2AProtocolConfiguration.java","src/main/java/com/azure/ai/agents/models/A2AProtocolVersion.java","src/main/java/com/azure/ai/agents/models/A2ATool.java","src/main/java/com/azure/ai/agents/models/A2AToolCall.java","src/main/java/com/azure/ai/agents/models/A2AToolCallOutput.java","src/main/java/com/azure/ai/agents/models/A2AToolboxTool.java","src/main/java/com/azure/ai/agents/models/AISearchIndexResource.java","src/main/java/com/azure/ai/agents/models/ActivityProtocolAccessBoundary.java","src/main/java/com/azure/ai/agents/models/ActivityProtocolConfiguration.java","src/main/java/com/azure/ai/agents/models/AgentBlueprintReference.java","src/main/java/com/azure/ai/agents/models/AgentBlueprintReferenceType.java","src/main/java/com/azure/ai/agents/models/AgentCard.java","src/main/java/com/azure/ai/agents/models/AgentCardSkill.java","src/main/java/com/azure/ai/agents/models/AgentDefinition.java","src/main/java/com/azure/ai/agents/models/AgentDetails.java","src/main/java/com/azure/ai/agents/models/AgentDetailsVersions.java","src/main/java/com/azure/ai/agents/models/AgentEndpointAuthorizationScheme.java","src/main/java/com/azure/ai/agents/models/AgentEndpointAuthorizationSchemeType.java","src/main/java/com/azure/ai/agents/models/AgentEndpointConfig.java","src/main/java/com/azure/ai/agents/models/AgentEndpointProtocol.java","src/main/java/com/azure/ai/agents/models/AgentHarness.java","src/main/java/com/azure/ai/agents/models/AgentIdentity.java","src/main/java/com/azure/ai/agents/models/AgentIdentityStatus.java","src/main/java/com/azure/ai/agents/models/AgentKind.java","src/main/java/com/azure/ai/agents/models/AgentObjectType.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationAgentCandidateOutput.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationBaselineAgentConfiguration.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationCandidate.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationCandidateEvaluation.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationCandidateExpand.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationCandidateOutput.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationCandidatePromotionInfo.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationCandidateSearchConfiguration.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationCandidateStatus.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationConfiguration.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationConfigurationBase.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationConfigurationType.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationCostEstimate.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationDataSourceType.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationEstimateBand.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationEstimateInputs.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationEstimateResult.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationEvaluationConfiguration.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationEvaluationSet.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationEvaluationSetType.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationEvaluatorReference.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationFoundryAgentTargetConfiguration.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationGoal.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationInstructionsMutation.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationJob.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationJobLatency.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationJobResult.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationJobTokenUsage.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationModelConfiguration.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationModelMutation.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationMutation.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationPromptCandidateOutput.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationResultCandidateSummary.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationSkill.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationSkillsMutation.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationSpace.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationStage.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationStageEstimate.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationTargetCompletionDataSource.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationTargetCompletionDatasetReferenceDataSource.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationTargetCompletionEvaluationSet.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationTargetCompletionInlineDataSource.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationTargetCompletionTestCase.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationTargetConfiguration.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationTargetConfigurationType.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationTerminationReason.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationToolsMutation.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationUserConversationSimulationDataSource.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationUserConversationSimulationDatasetReferenceDataSource.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationUserConversationSimulationEvaluationSet.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationUserConversationSimulationInlineDataSource.java","src/main/java/com/azure/ai/agents/models/AgentReference.java","src/main/java/com/azure/ai/agents/models/AgentSessionResource.java","src/main/java/com/azure/ai/agents/models/AgentSessionStatus.java","src/main/java/com/azure/ai/agents/models/AgentState.java","src/main/java/com/azure/ai/agents/models/AgentStateSource.java","src/main/java/com/azure/ai/agents/models/AgentVersionDetails.java","src/main/java/com/azure/ai/agents/models/AgentVersionStatus.java","src/main/java/com/azure/ai/agents/models/ApiError.java","src/main/java/com/azure/ai/agents/models/ApplyPatchToolParameter.java","src/main/java/com/azure/ai/agents/models/ApproximateLocation.java","src/main/java/com/azure/ai/agents/models/AudioTranscription.java","src/main/java/com/azure/ai/agents/models/AudioTranscriptionModel.java","src/main/java/com/azure/ai/agents/models/AutoCodeInterpreterToolParameter.java","src/main/java/com/azure/ai/agents/models/AzureAISearchQueryType.java","src/main/java/com/azure/ai/agents/models/AzureAISearchTool.java","src/main/java/com/azure/ai/agents/models/AzureAISearchToolCall.java","src/main/java/com/azure/ai/agents/models/AzureAISearchToolCallOutput.java","src/main/java/com/azure/ai/agents/models/AzureAISearchToolResource.java","src/main/java/com/azure/ai/agents/models/AzureAISearchToolboxTool.java","src/main/java/com/azure/ai/agents/models/AzureCreateResponseDetails.java","src/main/java/com/azure/ai/agents/models/AzureCreateResponseOptions.java","src/main/java/com/azure/ai/agents/models/AzureFunctionBinding.java","src/main/java/com/azure/ai/agents/models/AzureFunctionDefinition.java","src/main/java/com/azure/ai/agents/models/AzureFunctionDefinitionDetails.java","src/main/java/com/azure/ai/agents/models/AzureFunctionStorageQueue.java","src/main/java/com/azure/ai/agents/models/AzureFunctionTool.java","src/main/java/com/azure/ai/agents/models/AzureFunctionToolCall.java","src/main/java/com/azure/ai/agents/models/AzureFunctionToolCallOutput.java","src/main/java/com/azure/ai/agents/models/AzureUserSecurityContext.java","src/main/java/com/azure/ai/agents/models/BingCustomSearchConfiguration.java","src/main/java/com/azure/ai/agents/models/BingCustomSearchPreviewTool.java","src/main/java/com/azure/ai/agents/models/BingCustomSearchToolCall.java","src/main/java/com/azure/ai/agents/models/BingCustomSearchToolCallOutput.java","src/main/java/com/azure/ai/agents/models/BingCustomSearchToolParameters.java","src/main/java/com/azure/ai/agents/models/BingGroundingSearchConfiguration.java","src/main/java/com/azure/ai/agents/models/BingGroundingSearchToolParameters.java","src/main/java/com/azure/ai/agents/models/BingGroundingTool.java","src/main/java/com/azure/ai/agents/models/BingGroundingToolCall.java","src/main/java/com/azure/ai/agents/models/BingGroundingToolCallOutput.java","src/main/java/com/azure/ai/agents/models/BotServiceAuthorizationScheme.java","src/main/java/com/azure/ai/agents/models/BotServiceRbacAuthorizationScheme.java","src/main/java/com/azure/ai/agents/models/BotServiceTenantAuthorizationScheme.java","src/main/java/com/azure/ai/agents/models/BrowserAutomationPreviewTool.java","src/main/java/com/azure/ai/agents/models/BrowserAutomationPreviewToolboxTool.java","src/main/java/com/azure/ai/agents/models/BrowserAutomationTool.java","src/main/java/com/azure/ai/agents/models/BrowserAutomationToolCall.java","src/main/java/com/azure/ai/agents/models/BrowserAutomationToolCallOutput.java","src/main/java/com/azure/ai/agents/models/BrowserAutomationToolConnectionParameters.java","src/main/java/com/azure/ai/agents/models/BrowserAutomationToolParameters.java","src/main/java/com/azure/ai/agents/models/BrowserAutomationToolboxTool.java","src/main/java/com/azure/ai/agents/models/CallableToolAllowedCaller.java","src/main/java/com/azure/ai/agents/models/CaptureStructuredOutputsTool.java","src/main/java/com/azure/ai/agents/models/ChatSummaryMemoryItem.java","src/main/java/com/azure/ai/agents/models/CodeConfiguration.java","src/main/java/com/azure/ai/agents/models/CodeDependencyResolution.java","src/main/java/com/azure/ai/agents/models/CodeFileDetails.java","src/main/java/com/azure/ai/agents/models/CodeInterpreterTool.java","src/main/java/com/azure/ai/agents/models/CodeInterpreterToolboxTool.java","src/main/java/com/azure/ai/agents/models/ComputerEnvironment.java","src/main/java/com/azure/ai/agents/models/ComputerTool.java","src/main/java/com/azure/ai/agents/models/ComputerUsePreviewTool.java","src/main/java/com/azure/ai/agents/models/ContainerAutoParameter.java","src/main/java/com/azure/ai/agents/models/ContainerConfiguration.java","src/main/java/com/azure/ai/agents/models/ContainerMemoryLimit.java","src/main/java/com/azure/ai/agents/models/ContainerNetworkPolicyAllowlistParameter.java","src/main/java/com/azure/ai/agents/models/ContainerNetworkPolicyDisabledParameter.java","src/main/java/com/azure/ai/agents/models/ContainerNetworkPolicyDomainSecretParameter.java","src/main/java/com/azure/ai/agents/models/ContainerNetworkPolicyParamType.java","src/main/java/com/azure/ai/agents/models/ContainerNetworkPolicyParameter.java","src/main/java/com/azure/ai/agents/models/ContainerSkill.java","src/main/java/com/azure/ai/agents/models/ContainerSkillType.java","src/main/java/com/azure/ai/agents/models/CreateAgentVersionFromCodeContent.java","src/main/java/com/azure/ai/agents/models/CreateAgentVersionFromCodeMetadata.java","src/main/java/com/azure/ai/agents/models/CreateAgentVersionInput.java","src/main/java/com/azure/ai/agents/models/CreateAgentVersionOptions.java","src/main/java/com/azure/ai/agents/models/CreateTeamsPhoneExtensionTelephonyBindingInput.java","src/main/java/com/azure/ai/agents/models/CreateTelephonyBindingInput.java","src/main/java/com/azure/ai/agents/models/CreateTelephonyCallJobInput.java","src/main/java/com/azure/ai/agents/models/CreateTwilioTelephonyBindingInput.java","src/main/java/com/azure/ai/agents/models/CustomGrammarFormatParameter.java","src/main/java/com/azure/ai/agents/models/CustomTextFormatParameter.java","src/main/java/com/azure/ai/agents/models/CustomToolParamFormat.java","src/main/java/com/azure/ai/agents/models/CustomToolParamFormatType.java","src/main/java/com/azure/ai/agents/models/CustomToolParameter.java","src/main/java/com/azure/ai/agents/models/DigitalWorkerType.java","src/main/java/com/azure/ai/agents/models/EntraAuthorizationScheme.java","src/main/java/com/azure/ai/agents/models/EvaluationAzureStandardVoiceModelConfiguration.java","src/main/java/com/azure/ai/agents/models/EvaluationModelConfiguration.java","src/main/java/com/azure/ai/agents/models/EvaluationVoiceModelConfiguration.java","src/main/java/com/azure/ai/agents/models/ExternalAgentDefinition.java","src/main/java/com/azure/ai/agents/models/FabricDataAgentToolCall.java","src/main/java/com/azure/ai/agents/models/FabricDataAgentToolCallOutput.java","src/main/java/com/azure/ai/agents/models/FabricDataAgentToolParameters.java","src/main/java/com/azure/ai/agents/models/FabricIqPreviewTool.java","src/main/java/com/azure/ai/agents/models/FabricIqPreviewToolboxTool.java","src/main/java/com/azure/ai/agents/models/FileSearchTool.java","src/main/java/com/azure/ai/agents/models/FileSearchToolboxTool.java","src/main/java/com/azure/ai/agents/models/FixedRatioVersionSelectionRule.java","src/main/java/com/azure/ai/agents/models/FunctionShellToolParamEnvironment.java","src/main/java/com/azure/ai/agents/models/FunctionShellToolParamEnvironmentType.java","src/main/java/com/azure/ai/agents/models/FunctionShellToolParameter.java","src/main/java/com/azure/ai/agents/models/FunctionShellToolParameterEnvironmentContainerReferenceParameter.java","src/main/java/com/azure/ai/agents/models/FunctionShellToolParameterEnvironmentLocalEnvironmentParameter.java","src/main/java/com/azure/ai/agents/models/FunctionTool.java","src/main/java/com/azure/ai/agents/models/GetMicrosoft365AppPackageOptions.java","src/main/java/com/azure/ai/agents/models/GitHubCopilotBuiltInTool.java","src/main/java/com/azure/ai/agents/models/GitHubCopilotHarness.java","src/main/java/com/azure/ai/agents/models/GitHubCopilotToolsetConfig.java","src/main/java/com/azure/ai/agents/models/GitHubCopilotToolsetDefaultConfig.java","src/main/java/com/azure/ai/agents/models/GitHubCopilotToolsetPreview.java","src/main/java/com/azure/ai/agents/models/GrammarSyntax.java","src/main/java/com/azure/ai/agents/models/HeaderTelemetryEndpointAuth.java","src/main/java/com/azure/ai/agents/models/HostedAgentDefinition.java","src/main/java/com/azure/ai/agents/models/HybridSearchOptions.java","src/main/java/com/azure/ai/agents/models/ImageGenActionEnum.java","src/main/java/com/azure/ai/agents/models/ImageGenTool.java","src/main/java/com/azure/ai/agents/models/ImageGenToolBackground.java","src/main/java/com/azure/ai/agents/models/ImageGenToolInputImageMask.java","src/main/java/com/azure/ai/agents/models/ImageGenToolModel.java","src/main/java/com/azure/ai/agents/models/ImageGenToolModeration.java","src/main/java/com/azure/ai/agents/models/ImageGenToolOutputFormat.java","src/main/java/com/azure/ai/agents/models/ImageGenToolQuality.java","src/main/java/com/azure/ai/agents/models/ImageGenToolSize.java","src/main/java/com/azure/ai/agents/models/IncludeEnum.java","src/main/java/com/azure/ai/agents/models/InlineSkillParameter.java","src/main/java/com/azure/ai/agents/models/InlineSkillSourceParameter.java","src/main/java/com/azure/ai/agents/models/InputFidelity.java","src/main/java/com/azure/ai/agents/models/InvocationsProtocolConfiguration.java","src/main/java/com/azure/ai/agents/models/InvocationsWsProtocolConfiguration.java","src/main/java/com/azure/ai/agents/models/JobStatus.java","src/main/java/com/azure/ai/agents/models/ListMemoriesOptions.java","src/main/java/com/azure/ai/agents/models/LocalShellToolParameter.java","src/main/java/com/azure/ai/agents/models/LocalSkillParameter.java","src/main/java/com/azure/ai/agents/models/ManagedAgentIdentityBlueprintReference.java","src/main/java/com/azure/ai/agents/models/McpListToolsTool.java","src/main/java/com/azure/ai/agents/models/McpListToolsToolAnnotations.java","src/main/java/com/azure/ai/agents/models/McpListToolsToolInputSchema.java","src/main/java/com/azure/ai/agents/models/McpProtocolConfiguration.java","src/main/java/com/azure/ai/agents/models/McpTool.java","src/main/java/com/azure/ai/agents/models/McpToolConnectorId.java","src/main/java/com/azure/ai/agents/models/McpToolFilter.java","src/main/java/com/azure/ai/agents/models/McpToolRequireApproval.java","src/main/java/com/azure/ai/agents/models/McpToolboxTool.java","src/main/java/com/azure/ai/agents/models/MemoryCommandToolCall.java","src/main/java/com/azure/ai/agents/models/MemoryCommandToolCallOutput.java","src/main/java/com/azure/ai/agents/models/MemoryItem.java","src/main/java/com/azure/ai/agents/models/MemoryItemKind.java","src/main/java/com/azure/ai/agents/models/MemoryOperation.java","src/main/java/com/azure/ai/agents/models/MemoryOperationKind.java","src/main/java/com/azure/ai/agents/models/MemorySearchItem.java","src/main/java/com/azure/ai/agents/models/MemorySearchOptions.java","src/main/java/com/azure/ai/agents/models/MemorySearchPreviewTool.java","src/main/java/com/azure/ai/agents/models/MemorySearchToolCall.java","src/main/java/com/azure/ai/agents/models/MemoryStoreDefaultDefinition.java","src/main/java/com/azure/ai/agents/models/MemoryStoreDefaultOptions.java","src/main/java/com/azure/ai/agents/models/MemoryStoreDefinition.java","src/main/java/com/azure/ai/agents/models/MemoryStoreDetails.java","src/main/java/com/azure/ai/agents/models/MemoryStoreKind.java","src/main/java/com/azure/ai/agents/models/MemoryStoreObjectType.java","src/main/java/com/azure/ai/agents/models/MemoryStoreOperationUsage.java","src/main/java/com/azure/ai/agents/models/MemoryStoreSearchResponse.java","src/main/java/com/azure/ai/agents/models/MemoryStoreUpdateCompletedResult.java","src/main/java/com/azure/ai/agents/models/MemoryStoreUpdateResponse.java","src/main/java/com/azure/ai/agents/models/MemoryStoreUpdateStatus.java","src/main/java/com/azure/ai/agents/models/Microsoft365PermissionScopes.java","src/main/java/com/azure/ai/agents/models/Microsoft365PublishDefaults.java","src/main/java/com/azure/ai/agents/models/Microsoft365PublishResult.java","src/main/java/com/azure/ai/agents/models/Microsoft365PublishScope.java","src/main/java/com/azure/ai/agents/models/MicrosoftFabricPreviewTool.java","src/main/java/com/azure/ai/agents/models/ModelRouterAttempt.java","src/main/java/com/azure/ai/agents/models/ModelRouterAttemptError.java","src/main/java/com/azure/ai/agents/models/ModelRouterAttemptResult.java","src/main/java/com/azure/ai/agents/models/ModelRouterDetails.java","src/main/java/com/azure/ai/agents/models/ModelRouterMode.java","src/main/java/com/azure/ai/agents/models/ModelSamplingParameters.java","src/main/java/com/azure/ai/agents/models/ModelSelectionDetails.java","src/main/java/com/azure/ai/agents/models/NamespaceTool.java","src/main/java/com/azure/ai/agents/models/OpenApiAnonymousAuthDetails.java","src/main/java/com/azure/ai/agents/models/OpenApiAuthDetails.java","src/main/java/com/azure/ai/agents/models/OpenApiAuthType.java","src/main/java/com/azure/ai/agents/models/OpenApiFunctionDefinition.java","src/main/java/com/azure/ai/agents/models/OpenApiFunctionDefinitionFunction.java","src/main/java/com/azure/ai/agents/models/OpenApiManagedAuthDetails.java","src/main/java/com/azure/ai/agents/models/OpenApiManagedSecurityScheme.java","src/main/java/com/azure/ai/agents/models/OpenApiProjectConnectionAuthDetails.java","src/main/java/com/azure/ai/agents/models/OpenApiProjectConnectionSecurityScheme.java","src/main/java/com/azure/ai/agents/models/OpenApiTool.java","src/main/java/com/azure/ai/agents/models/OpenApiToolCall.java","src/main/java/com/azure/ai/agents/models/OpenApiToolCallOutput.java","src/main/java/com/azure/ai/agents/models/OpenApiToolboxTool.java","src/main/java/com/azure/ai/agents/models/OptimizationContext.java","src/main/java/com/azure/ai/agents/models/OptimizationContextType.java","src/main/java/com/azure/ai/agents/models/OtlpTelemetryEndpoint.java","src/main/java/com/azure/ai/agents/models/PageOrder.java","src/main/java/com/azure/ai/agents/models/ProceduralMemoryItem.java","src/main/java/com/azure/ai/agents/models/ProgrammaticToolCallingParameter.java","src/main/java/com/azure/ai/agents/models/PromptAgentDefinition.java","src/main/java/com/azure/ai/agents/models/PromptAgentDefinitionTextOptions.java","src/main/java/com/azure/ai/agents/models/PromptOptimizationConfiguration.java","src/main/java/com/azure/ai/agents/models/ProtocolConfiguration.java","src/main/java/com/azure/ai/agents/models/ProtocolVersionRecord.java","src/main/java/com/azure/ai/agents/models/PstnTelephonyTransferDestination.java","src/main/java/com/azure/ai/agents/models/PublishAgentToMicrosoft365Options.java","src/main/java/com/azure/ai/agents/models/PublishApprovalStatus.java","src/main/java/com/azure/ai/agents/models/RaiConfig.java","src/main/java/com/azure/ai/agents/models/RaiInvocationContentType.java","src/main/java/com/azure/ai/agents/models/RaiInvocationModeration.java","src/main/java/com/azure/ai/agents/models/RaiInvocationResponseMode.java","src/main/java/com/azure/ai/agents/models/RaiSseTextSelector.java","src/main/java/com/azure/ai/agents/models/RankerVersionType.java","src/main/java/com/azure/ai/agents/models/RankingOptions.java","src/main/java/com/azure/ai/agents/models/RealtimeAudioFormat.java","src/main/java/com/azure/ai/agents/models/RealtimeAudioFormatType.java","src/main/java/com/azure/ai/agents/models/RealtimeClientEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeClientEventType.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationCreatedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItem.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemAddedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemAssistantMessage.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemCreateEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemCreatedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemDeleteEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemDeletedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemDoneEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemFunctionCall.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemFunctionCallOutput.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemInputAudioTranscriptionCompletedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemInputAudioTranscriptionDeltaEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemInputAudioTranscriptionFailedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemInputAudioTranscriptionSegmentEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemMessage.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemMessageType.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemObjectType.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemRetrieveEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemRetrievedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemSystemMessage.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemTruncateEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemTruncatedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemType.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemUserMessage.java","src/main/java/com/azure/ai/agents/models/RealtimeErrorEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeInputAudioBufferAppendEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeInputAudioBufferClearEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeInputAudioBufferClearedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeInputAudioBufferCommitEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeInputAudioBufferCommittedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeInputAudioBufferDtmfReceivedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeInputAudioBufferSpeechStartedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeInputAudioBufferSpeechStoppedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeInputAudioBufferTimeoutTriggeredEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeMcpApprovalInput.java","src/main/java/com/azure/ai/agents/models/RealtimeMcpApprovalOutput.java","src/main/java/com/azure/ai/agents/models/RealtimeMcpError.java","src/main/java/com/azure/ai/agents/models/RealtimeMcpErrorType.java","src/main/java/com/azure/ai/agents/models/RealtimeMcpHttpError.java","src/main/java/com/azure/ai/agents/models/RealtimeMcpListTools.java","src/main/java/com/azure/ai/agents/models/RealtimeMcpListToolsCompletedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeMcpListToolsFailedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeMcpListToolsInProgressEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeMcpProtocolError.java","src/main/java/com/azure/ai/agents/models/RealtimeMcpToolCall.java","src/main/java/com/azure/ai/agents/models/RealtimeMcpToolExecutionError.java","src/main/java/com/azure/ai/agents/models/RealtimeOutputAudioBufferClearEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeOutputAudioBufferClearedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeOutputAudioBufferStartedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeOutputAudioBufferStoppedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimePcmAudioFormat.java","src/main/java/com/azure/ai/agents/models/RealtimePcmaAudioFormat.java","src/main/java/com/azure/ai/agents/models/RealtimePcmuAudioFormat.java","src/main/java/com/azure/ai/agents/models/RealtimeRateLimitsUpdatedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseAudioDeltaEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseAudioDoneEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseAudioTranscriptDeltaEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseAudioTranscriptDoneEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseCancelEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseContentPart.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseContentPartAddedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseContentPartDoneEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseCreateEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseCreatedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseDoneEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseFunctionCallArgumentsDeltaEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseFunctionCallArgumentsDoneEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseMcpCallArgumentsDeltaEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseMcpCallArgumentsDoneEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseMcpCallCompletedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseMcpCallFailedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseMcpCallInProgressEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseOutputItemAddedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseOutputItemDoneEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseTextDeltaEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseTextDoneEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeSemanticVadTurnDetection.java","src/main/java/com/azure/ai/agents/models/RealtimeServerEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeServerEventType.java","src/main/java/com/azure/ai/agents/models/RealtimeServerVadTurnDetection.java","src/main/java/com/azure/ai/agents/models/RealtimeSessionAudioConfiguration.java","src/main/java/com/azure/ai/agents/models/RealtimeSessionAudioInput.java","src/main/java/com/azure/ai/agents/models/RealtimeSessionAudioOutput.java","src/main/java/com/azure/ai/agents/models/RealtimeSessionConfiguration.java","src/main/java/com/azure/ai/agents/models/RealtimeSessionConfigurationBase.java","src/main/java/com/azure/ai/agents/models/RealtimeSessionCreateRequestGAAudioOutputVoice.java","src/main/java/com/azure/ai/agents/models/RealtimeSessionCreatedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeSessionTracingConfiguration.java","src/main/java/com/azure/ai/agents/models/RealtimeSessionType.java","src/main/java/com/azure/ai/agents/models/RealtimeSessionUpdateEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeSessionUpdatedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeTranscriptionSessionAudioConfiguration.java","src/main/java/com/azure/ai/agents/models/RealtimeTranscriptionSessionAudioInput.java","src/main/java/com/azure/ai/agents/models/RealtimeTranscriptionSessionConfiguration.java","src/main/java/com/azure/ai/agents/models/RealtimeTurnDetection.java","src/main/java/com/azure/ai/agents/models/RealtimeTurnDetectionType.java","src/main/java/com/azure/ai/agents/models/ReminderPreviewToolboxTool.java","src/main/java/com/azure/ai/agents/models/ResponseFormatJsonSchemaInner.java","src/main/java/com/azure/ai/agents/models/ResponseUsageInputTokensDetails.java","src/main/java/com/azure/ai/agents/models/ResponseUsageOutputTokensDetails.java","src/main/java/com/azure/ai/agents/models/ResponsesProtocolConfiguration.java","src/main/java/com/azure/ai/agents/models/RoutingConfiguration.java","src/main/java/com/azure/ai/agents/models/RoutingTraceEntry.java","src/main/java/com/azure/ai/agents/models/SearchContentType.java","src/main/java/com/azure/ai/agents/models/SearchContextSize.java","src/main/java/com/azure/ai/agents/models/SessionAffinityConfiguration.java","src/main/java/com/azure/ai/agents/models/SessionAffinityDecision.java","src/main/java/com/azure/ai/agents/models/SessionAffinityDetails.java","src/main/java/com/azure/ai/agents/models/SessionAffinityMode.java","src/main/java/com/azure/ai/agents/models/SessionAffinityRequestMode.java","src/main/java/com/azure/ai/agents/models/SessionAffinitySource.java","src/main/java/com/azure/ai/agents/models/SessionConfiguration.java","src/main/java/com/azure/ai/agents/models/SessionDirectoryEntry.java","src/main/java/com/azure/ai/agents/models/SessionFileWriteResult.java","src/main/java/com/azure/ai/agents/models/SessionLogEvent.java","src/main/java/com/azure/ai/agents/models/SessionLogEventType.java","src/main/java/com/azure/ai/agents/models/SharepointGroundingToolCall.java","src/main/java/com/azure/ai/agents/models/SharepointGroundingToolCallOutput.java","src/main/java/com/azure/ai/agents/models/SharepointGroundingToolParameters.java","src/main/java/com/azure/ai/agents/models/SharepointPreviewTool.java","src/main/java/com/azure/ai/agents/models/ShellToolboxTool.java","src/main/java/com/azure/ai/agents/models/SipTelephonyTransferDestination.java","src/main/java/com/azure/ai/agents/models/SkillReference.java","src/main/java/com/azure/ai/agents/models/SkillReferenceParameter.java","src/main/java/com/azure/ai/agents/models/SteeringPromptOptimizationContext.java","src/main/java/com/azure/ai/agents/models/StructuredInputDefinition.java","src/main/java/com/azure/ai/agents/models/StructuredOutputDefinition.java","src/main/java/com/azure/ai/agents/models/TargetAttribute.java","src/main/java/com/azure/ai/agents/models/TeamsPhoneExtensionTelephonyBinding.java","src/main/java/com/azure/ai/agents/models/TeamsPhoneExtensionTelephonyBindingListItem.java","src/main/java/com/azure/ai/agents/models/TeamsTelephonyTransferDestination.java","src/main/java/com/azure/ai/agents/models/TelemetryConfig.java","src/main/java/com/azure/ai/agents/models/TelemetryDataKind.java","src/main/java/com/azure/ai/agents/models/TelemetryEndpoint.java","src/main/java/com/azure/ai/agents/models/TelemetryEndpointAuth.java","src/main/java/com/azure/ai/agents/models/TelemetryEndpointAuthType.java","src/main/java/com/azure/ai/agents/models/TelemetryEndpointKind.java","src/main/java/com/azure/ai/agents/models/TelemetryTransportProtocol.java","src/main/java/com/azure/ai/agents/models/TelephonyBinding.java","src/main/java/com/azure/ai/agents/models/TelephonyBindingListItem.java","src/main/java/com/azure/ai/agents/models/TelephonyBindingStatus.java","src/main/java/com/azure/ai/agents/models/TelephonyCallDurationBasis.java","src/main/java/com/azure/ai/agents/models/TelephonyCallEndReason.java","src/main/java/com/azure/ai/agents/models/TelephonyCallJob.java","src/main/java/com/azure/ai/agents/models/TelephonyCallJobCancellation.java","src/main/java/com/azure/ai/agents/models/TelephonyCallJobSchedule.java","src/main/java/com/azure/ai/agents/models/TelephonyCallJobStatus.java","src/main/java/com/azure/ai/agents/models/TelephonyCallJobTerminalReason.java","src/main/java/com/azure/ai/agents/models/TelephonyCallLifecycleEvent.java","src/main/java/com/azure/ai/agents/models/TelephonyCallLifecycleEventName.java","src/main/java/com/azure/ai/agents/models/TelephonyCallLifecycleEventOutcome.java","src/main/java/com/azure/ai/agents/models/TelephonyCallLifecycleEventReason.java","src/main/java/com/azure/ai/agents/models/TelephonyCallLifecycleEventSource.java","src/main/java/com/azure/ai/agents/models/TelephonyCallPhase.java","src/main/java/com/azure/ai/agents/models/TelephonyCallRecord.java","src/main/java/com/azure/ai/agents/models/TelephonyCallStatus.java","src/main/java/com/azure/ai/agents/models/TelephonyCallSummary.java","src/main/java/com/azure/ai/agents/models/TelephonyCallTimestampSource.java","src/main/java/com/azure/ai/agents/models/TelephonyCallTiming.java","src/main/java/com/azure/ai/agents/models/TelephonyCallTrace.java","src/main/java/com/azure/ai/agents/models/TelephonyCallTraceMode.java","src/main/java/com/azure/ai/agents/models/TelephonyCallTraceStatus.java","src/main/java/com/azure/ai/agents/models/TelephonyOutboundDestination.java","src/main/java/com/azure/ai/agents/models/TelephonyOutboundDestinationType.java","src/main/java/com/azure/ai/agents/models/TelephonyOutboundFixedIntervalRetryPolicy.java","src/main/java/com/azure/ai/agents/models/TelephonyOutboundRetryPolicy.java","src/main/java/com/azure/ai/agents/models/TelephonyOutboundRetryPolicyType.java","src/main/java/com/azure/ai/agents/models/TelephonyProvider.java","src/main/java/com/azure/ai/agents/models/TelephonyTransferDestination.java","src/main/java/com/azure/ai/agents/models/TelephonyTransferDestinationKind.java","src/main/java/com/azure/ai/agents/models/TelephonyTransferTarget.java","src/main/java/com/azure/ai/agents/models/TelephonyTransferTargets.java","src/main/java/com/azure/ai/agents/models/TextResponseFormatConfiguration.java","src/main/java/com/azure/ai/agents/models/TextResponseFormatConfigurationResponseFormatJsonObject.java","src/main/java/com/azure/ai/agents/models/TextResponseFormatConfigurationResponseFormatText.java","src/main/java/com/azure/ai/agents/models/TextResponseFormatConfigurationType.java","src/main/java/com/azure/ai/agents/models/TextResponseFormatJsonSchema.java","src/main/java/com/azure/ai/agents/models/Tool.java","src/main/java/com/azure/ai/agents/models/ToolCallStatus.java","src/main/java/com/azure/ai/agents/models/ToolConfig.java","src/main/java/com/azure/ai/agents/models/ToolProjectConnection.java","src/main/java/com/azure/ai/agents/models/ToolSearchExecutionType.java","src/main/java/com/azure/ai/agents/models/ToolSearchTool.java","src/main/java/com/azure/ai/agents/models/ToolSearchToolboxTool.java","src/main/java/com/azure/ai/agents/models/ToolType.java","src/main/java/com/azure/ai/agents/models/ToolboxDetails.java","src/main/java/com/azure/ai/agents/models/ToolboxPolicies.java","src/main/java/com/azure/ai/agents/models/ToolboxSearchPreviewToolboxTool.java","src/main/java/com/azure/ai/agents/models/ToolboxShellContainerAutoEnvironment.java","src/main/java/com/azure/ai/agents/models/ToolboxShellContainerReferenceEnvironment.java","src/main/java/com/azure/ai/agents/models/ToolboxShellEnvironment.java","src/main/java/com/azure/ai/agents/models/ToolboxShellNetworkPolicy.java","src/main/java/com/azure/ai/agents/models/ToolboxShellNetworkPolicyDisabled.java","src/main/java/com/azure/ai/agents/models/ToolboxSkill.java","src/main/java/com/azure/ai/agents/models/ToolboxSkillReference.java","src/main/java/com/azure/ai/agents/models/ToolboxTool.java","src/main/java/com/azure/ai/agents/models/ToolboxToolType.java","src/main/java/com/azure/ai/agents/models/ToolboxVersionDetails.java","src/main/java/com/azure/ai/agents/models/ToolboxVersions.java","src/main/java/com/azure/ai/agents/models/TranscriptTextInputTokenDetails.java","src/main/java/com/azure/ai/agents/models/TranscriptTextUsage.java","src/main/java/com/azure/ai/agents/models/TranscriptTextUsageDuration.java","src/main/java/com/azure/ai/agents/models/TranscriptTextUsageTokens.java","src/main/java/com/azure/ai/agents/models/TranscriptTextUsageType.java","src/main/java/com/azure/ai/agents/models/TranscriptionLanguage.java","src/main/java/com/azure/ai/agents/models/TwilioTelephonyBinding.java","src/main/java/com/azure/ai/agents/models/TwilioTelephonyBindingListItem.java","src/main/java/com/azure/ai/agents/models/UpdateAgentDetailsOptions.java","src/main/java/com/azure/ai/agents/models/UpdateTelephonyBindingInput.java","src/main/java/com/azure/ai/agents/models/UserConversationSimulationAudioEffect.java","src/main/java/com/azure/ai/agents/models/UserConversationSimulationAudioEffectsConfiguration.java","src/main/java/com/azure/ai/agents/models/UserConversationSimulationConfiguration.java","src/main/java/com/azure/ai/agents/models/UserConversationSimulationDefaultInterruptionConfiguration.java","src/main/java/com/azure/ai/agents/models/UserConversationSimulationInterruptionConfiguration.java","src/main/java/com/azure/ai/agents/models/UserConversationSimulationTestCase.java","src/main/java/com/azure/ai/agents/models/UserConversationSimulationUserBehaviorConfiguration.java","src/main/java/com/azure/ai/agents/models/UserProfileMemoryItem.java","src/main/java/com/azure/ai/agents/models/VersionIndicator.java","src/main/java/com/azure/ai/agents/models/VersionIndicatorType.java","src/main/java/com/azure/ai/agents/models/VersionRefIndicator.java","src/main/java/com/azure/ai/agents/models/VersionSelectionRule.java","src/main/java/com/azure/ai/agents/models/VersionSelector.java","src/main/java/com/azure/ai/agents/models/VersionSelectorType.java","src/main/java/com/azure/ai/agents/models/VoiceAgentAnimationConfiguration.java","src/main/java/com/azure/ai/agents/models/VoiceAgentAnimationOutputType.java","src/main/java/com/azure/ai/agents/models/VoiceAgentAudioConfiguration.java","src/main/java/com/azure/ai/agents/models/VoiceAgentAudioInputConfiguration.java","src/main/java/com/azure/ai/agents/models/VoiceAgentAudioOutputConfiguration.java","src/main/java/com/azure/ai/agents/models/VoiceAgentAudioTimestampType.java","src/main/java/com/azure/ai/agents/models/VoiceAgentAvatarConfiguration.java","src/main/java/com/azure/ai/agents/models/VoiceAgentAvatarIceServer.java","src/main/java/com/azure/ai/agents/models/VoiceAgentAvatarOutputProtocol.java","src/main/java/com/azure/ai/agents/models/VoiceAgentAvatarScene.java","src/main/java/com/azure/ai/agents/models/VoiceAgentAvatarType.java","src/main/java/com/azure/ai/agents/models/VoiceAgentAvatarVideoBackground.java","src/main/java/com/azure/ai/agents/models/VoiceAgentAvatarVideoCrop.java","src/main/java/com/azure/ai/agents/models/VoiceAgentAvatarVideoParameters.java","src/main/java/com/azure/ai/agents/models/VoiceAgentAvatarVideoResolution.java","src/main/java/com/azure/ai/agents/models/VoiceAgentAzureSemanticVadEnglishTurnDetection.java","src/main/java/com/azure/ai/agents/models/VoiceAgentAzureSemanticVadMultilingualTurnDetection.java","src/main/java/com/azure/ai/agents/models/VoiceAgentAzureSemanticVadTurnDetection.java","src/main/java/com/azure/ai/agents/models/VoiceAgentDefinition.java","src/main/java/com/azure/ai/agents/models/VoiceAgentEchoCancellation.java","src/main/java/com/azure/ai/agents/models/VoiceAgentEchoCancellationReferenceSource.java","src/main/java/com/azure/ai/agents/models/VoiceAgentEndConversationSystemTool.java","src/main/java/com/azure/ai/agents/models/VoiceAgentEndOfUtteranceDetection.java","src/main/java/com/azure/ai/agents/models/VoiceAgentEndOfUtteranceDetectionModel.java","src/main/java/com/azure/ai/agents/models/VoiceAgentEndOfUtteranceThresholdLevel.java","src/main/java/com/azure/ai/agents/models/VoiceAgentFunctionTool.java","src/main/java/com/azure/ai/agents/models/VoiceAgentFunctionToolType1.java","src/main/java/com/azure/ai/agents/models/VoiceAgentGreetingConfiguration.java","src/main/java/com/azure/ai/agents/models/VoiceAgentInputTranscription.java","src/main/java/com/azure/ai/agents/models/VoiceAgentInputTranscriptionModel.java","src/main/java/com/azure/ai/agents/models/VoiceAgentInterimResponseConfiguration.java","src/main/java/com/azure/ai/agents/models/VoiceAgentInterimResponseTrigger.java","src/main/java/com/azure/ai/agents/models/VoiceAgentLlmGeneratedGreetingConfiguration.java","src/main/java/com/azure/ai/agents/models/VoiceAgentLlmInterimResponseConfiguration.java","src/main/java/com/azure/ai/agents/models/VoiceAgentMcpTool.java","src/main/java/com/azure/ai/agents/models/VoiceAgentNoiseReduction.java","src/main/java/com/azure/ai/agents/models/VoiceAgentNoiseReductionType.java","src/main/java/com/azure/ai/agents/models/VoiceAgentRealtimeResponse.java","src/main/java/com/azure/ai/agents/models/VoiceAgentRealtimeResponseBase.java","src/main/java/com/azure/ai/agents/models/VoiceAgentResponseAnimationBlendshapeDeltaEvent.java","src/main/java/com/azure/ai/agents/models/VoiceAgentResponseAnimationBlendshapeDoneEvent.java","src/main/java/com/azure/ai/agents/models/VoiceAgentResponseAnimationVisemeDeltaEvent.java","src/main/java/com/azure/ai/agents/models/VoiceAgentResponseAnimationVisemeDoneEvent.java","src/main/java/com/azure/ai/agents/models/VoiceAgentResponseAudioConfig.java","src/main/java/com/azure/ai/agents/models/VoiceAgentResponseAudioTimestampDeltaEvent.java","src/main/java/com/azure/ai/agents/models/VoiceAgentResponseAudioTimestampDoneEvent.java","src/main/java/com/azure/ai/agents/models/VoiceAgentResponseCreateOptions.java","src/main/java/com/azure/ai/agents/models/VoiceAgentResponseVideoDeltaEvent.java","src/main/java/com/azure/ai/agents/models/VoiceAgentRtcCallErrorDetails.java","src/main/java/com/azure/ai/agents/models/VoiceAgentRtcCallErrorEvent.java","src/main/java/com/azure/ai/agents/models/VoiceAgentRtcCallSdpCreateEvent.java","src/main/java/com/azure/ai/agents/models/VoiceAgentRtcCallSdpCreatedEvent.java","src/main/java/com/azure/ai/agents/models/VoiceAgentSemanticVadTurnDetection.java","src/main/java/com/azure/ai/agents/models/VoiceAgentServerVadTurnDetection.java","src/main/java/com/azure/ai/agents/models/VoiceAgentSessionAvatarConfiguration.java","src/main/java/com/azure/ai/agents/models/VoiceAgentSessionAvatarConnectEvent.java","src/main/java/com/azure/ai/agents/models/VoiceAgentSessionAvatarConnectingEvent.java","src/main/java/com/azure/ai/agents/models/VoiceAgentSessionAvatarSwitchToIdleEvent.java","src/main/java/com/azure/ai/agents/models/VoiceAgentSessionAvatarSwitchToSpeakingEvent.java","src/main/java/com/azure/ai/agents/models/VoiceAgentSessionIncludeOption.java","src/main/java/com/azure/ai/agents/models/VoiceAgentSessionResponseConfiguration.java","src/main/java/com/azure/ai/agents/models/VoiceAgentSessionSubagentAbortedEvent.java","src/main/java/com/azure/ai/agents/models/VoiceAgentSessionSubagentCompletedEvent.java","src/main/java/com/azure/ai/agents/models/VoiceAgentSessionSubagentStartedEvent.java","src/main/java/com/azure/ai/agents/models/VoiceAgentSessionUpdateConfiguration.java","src/main/java/com/azure/ai/agents/models/VoiceAgentStaticInterimResponseConfiguration.java","src/main/java/com/azure/ai/agents/models/VoiceAgentSubagent.java","src/main/java/com/azure/ai/agents/models/VoiceAgentSubagentAbortReason.java","src/main/java/com/azure/ai/agents/models/VoiceAgentSubagentConfiguration.java","src/main/java/com/azure/ai/agents/models/VoiceAgentSubagentResponsePolicy.java","src/main/java/com/azure/ai/agents/models/VoiceAgentSystemTool.java","src/main/java/com/azure/ai/agents/models/VoiceAgentSystemToolName.java","src/main/java/com/azure/ai/agents/models/VoiceAgentTemplateGreetingConfiguration.java","src/main/java/com/azure/ai/agents/models/VoiceAgentTool.java","src/main/java/com/azure/ai/agents/models/VoiceAgentToolResponseScheduling.java","src/main/java/com/azure/ai/agents/models/VoiceAgentToolboxTool.java","src/main/java/com/azure/ai/agents/models/VoiceAgentTranscriptionPhrase.java","src/main/java/com/azure/ai/agents/models/VoiceAgentTranscriptionWord.java","src/main/java/com/azure/ai/agents/models/VoiceAgentTransport.java","src/main/java/com/azure/ai/agents/models/VoiceAgentTurnDetectionConfiguration.java","src/main/java/com/azure/ai/agents/models/VoiceAgentTurnDetectionType.java","src/main/java/com/azure/ai/agents/models/VoiceAgentWarningDetails.java","src/main/java/com/azure/ai/agents/models/VoiceAgentWarningEvent.java","src/main/java/com/azure/ai/agents/models/VoiceAudioCodec.java","src/main/java/com/azure/ai/agents/models/VoiceAudioContainerFormat.java","src/main/java/com/azure/ai/agents/models/VoiceAudioItem.java","src/main/java/com/azure/ai/agents/models/VoiceAudioRole.java","src/main/java/com/azure/ai/agents/models/VoiceConversation.java","src/main/java/com/azure/ai/agents/models/VoiceConversationEngine.java","src/main/java/com/azure/ai/agents/models/VoiceConversationStatus.java","src/main/java/com/azure/ai/agents/models/VoiceGeneratedAudioItem.java","src/main/java/com/azure/ai/agents/models/VoiceHostedAgentConversationEngine.java","src/main/java/com/azure/ai/agents/models/VoiceIds.java","src/main/java/com/azure/ai/agents/models/VoiceModelType.java","src/main/java/com/azure/ai/agents/models/VoiceOutputModality.java","src/main/java/com/azure/ai/agents/models/VoiceRecording.java","src/main/java/com/azure/ai/agents/models/VoiceRecordingChannelLayout.java","src/main/java/com/azure/ai/agents/models/VoiceResponse.java","src/main/java/com/azure/ai/agents/models/VoiceResponseAudio.java","src/main/java/com/azure/ai/agents/models/VoiceResponseAudioOutput.java","src/main/java/com/azure/ai/agents/models/VoiceResponseBase.java","src/main/java/com/azure/ai/agents/models/VoiceResponseBaseObject.java","src/main/java/com/azure/ai/agents/models/VoiceType.java","src/main/java/com/azure/ai/agents/models/WebIqPreviewTool.java","src/main/java/com/azure/ai/agents/models/WebIqPreviewToolboxTool.java","src/main/java/com/azure/ai/agents/models/WebSearchApproximateLocation.java","src/main/java/com/azure/ai/agents/models/WebSearchConfiguration.java","src/main/java/com/azure/ai/agents/models/WebSearchPreviewTool.java","src/main/java/com/azure/ai/agents/models/WebSearchTool.java","src/main/java/com/azure/ai/agents/models/WebSearchToolFilters.java","src/main/java/com/azure/ai/agents/models/WebSearchToolSearchContextSize.java","src/main/java/com/azure/ai/agents/models/WebSearchToolboxTool.java","src/main/java/com/azure/ai/agents/models/WorkIqPreviewTool.java","src/main/java/com/azure/ai/agents/models/WorkIqPreviewToolboxTool.java","src/main/java/com/azure/ai/agents/models/WorkflowAgentDefinition.java","src/main/java/com/azure/ai/agents/models/package-info.java","src/main/java/com/azure/ai/agents/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file +{"flavor":"azure","apiVersions":{"Azure.AI.Projects":"v1"},"crossLanguagePackageId":"Azure.AI.Projects","crossLanguageVersion":"fa226901522e","crossLanguageDefinitions":{"com.azure.ai.agents.AgentsAsyncClient":"Azure.AI.Projects.Agents","com.azure.ai.agents.AgentsAsyncClient.beginCreateOptimizationJob":"Azure.AI.Projects.AgentOptimizationJobs.create","com.azure.ai.agents.AgentsAsyncClient.beginCreateOptimizationJobWithModel":"Azure.AI.Projects.AgentOptimizationJobs.create","com.azure.ai.agents.AgentsAsyncClient.cancelOptimizationJob":"Azure.AI.Projects.AgentOptimizationJobs.cancel","com.azure.ai.agents.AgentsAsyncClient.cancelOptimizationJobWithResponse":"Azure.AI.Projects.AgentOptimizationJobs.cancel","com.azure.ai.agents.AgentsAsyncClient.createAgent":"Azure.AI.Projects.Agents.createAgent","com.azure.ai.agents.AgentsAsyncClient.createAgentFromCode":"Azure.AI.Projects.Agents.createAgentFromCode","com.azure.ai.agents.AgentsAsyncClient.createAgentFromCodeWithResponseInternal":"Azure.AI.Projects.Agents.createAgentFromCode","com.azure.ai.agents.AgentsAsyncClient.createAgentFromManifest":"Azure.AI.Projects.Agents.createAgentFromManifest","com.azure.ai.agents.AgentsAsyncClient.createAgentFromManifestWithResponse":"Azure.AI.Projects.Agents.createAgentFromManifest","com.azure.ai.agents.AgentsAsyncClient.createAgentVersion":"Azure.AI.Projects.Agents.createAgentVersion","com.azure.ai.agents.AgentsAsyncClient.createAgentVersionFromCode":"Azure.AI.Projects.Agents.createAgentVersionFromCode","com.azure.ai.agents.AgentsAsyncClient.createAgentVersionFromCodeWithResponseInternal":"Azure.AI.Projects.Agents.createAgentVersionFromCode","com.azure.ai.agents.AgentsAsyncClient.createAgentVersionFromManifest":"Azure.AI.Projects.Agents.createAgentVersionFromManifest","com.azure.ai.agents.AgentsAsyncClient.createAgentVersionFromManifestWithResponse":"Azure.AI.Projects.Agents.createAgentVersionFromManifest","com.azure.ai.agents.AgentsAsyncClient.createAgentVersionWithResponse":"Azure.AI.Projects.Agents.createAgentVersion","com.azure.ai.agents.AgentsAsyncClient.createAgentWithResponse":"Azure.AI.Projects.Agents.createAgent","com.azure.ai.agents.AgentsAsyncClient.createSession":"Azure.AI.Projects.Agents.createSession","com.azure.ai.agents.AgentsAsyncClient.createSessionWithResponse":"Azure.AI.Projects.Agents.createSession","com.azure.ai.agents.AgentsAsyncClient.deleteOptimizationJob":"Azure.AI.Projects.AgentOptimizationJobs.delete","com.azure.ai.agents.AgentsAsyncClient.deleteOptimizationJobWithResponse":"Azure.AI.Projects.AgentOptimizationJobs.delete","com.azure.ai.agents.AgentsAsyncClient.deleteSession":"Azure.AI.Projects.Agents.deleteSession","com.azure.ai.agents.AgentsAsyncClient.deleteSessionFile":"Azure.AI.Projects.AgentSessionFiles.deleteSessionFile","com.azure.ai.agents.AgentsAsyncClient.deleteSessionFileWithResponse":"Azure.AI.Projects.AgentSessionFiles.deleteSessionFile","com.azure.ai.agents.AgentsAsyncClient.deleteSessionWithResponse":"Azure.AI.Projects.Agents.deleteSession","com.azure.ai.agents.AgentsAsyncClient.disableAgent":"Azure.AI.Projects.Agents.disableAgent","com.azure.ai.agents.AgentsAsyncClient.disableAgentWithResponse":"Azure.AI.Projects.Agents.disableAgent","com.azure.ai.agents.AgentsAsyncClient.downloadAgentCode":"Azure.AI.Projects.Agents.downloadAgentCode","com.azure.ai.agents.AgentsAsyncClient.downloadAgentCodeWithResponse":"Azure.AI.Projects.Agents.downloadAgentCode","com.azure.ai.agents.AgentsAsyncClient.downloadSessionFile":"Azure.AI.Projects.AgentSessionFiles.downloadSessionFile","com.azure.ai.agents.AgentsAsyncClient.downloadSessionFileWithResponse":"Azure.AI.Projects.AgentSessionFiles.downloadSessionFile","com.azure.ai.agents.AgentsAsyncClient.enableAgent":"Azure.AI.Projects.Agents.enableAgent","com.azure.ai.agents.AgentsAsyncClient.enableAgentWithResponse":"Azure.AI.Projects.Agents.enableAgent","com.azure.ai.agents.AgentsAsyncClient.estimateOptimizationJob":"Azure.AI.Projects.AgentOptimizationJobs.estimate","com.azure.ai.agents.AgentsAsyncClient.estimateOptimizationJobWithResponse":"Azure.AI.Projects.AgentOptimizationJobs.estimate","com.azure.ai.agents.AgentsAsyncClient.getAgent":"Azure.AI.Projects.Agents.getAgent","com.azure.ai.agents.AgentsAsyncClient.getAgentVersionDetails":"Azure.AI.Projects.Agents.getAgentVersion","com.azure.ai.agents.AgentsAsyncClient.getAgentVersionDetailsWithResponse":"Azure.AI.Projects.Agents.getAgentVersion","com.azure.ai.agents.AgentsAsyncClient.getAgentWithResponse":"Azure.AI.Projects.Agents.getAgent","com.azure.ai.agents.AgentsAsyncClient.getMicrosoft365AppPackage":"Azure.AI.Projects.Microsoft365Publishing.getMicrosoft365AppPackage","com.azure.ai.agents.AgentsAsyncClient.getMicrosoft365AppPackageWithResponse":"Azure.AI.Projects.Microsoft365Publishing.getMicrosoft365AppPackage","com.azure.ai.agents.AgentsAsyncClient.getMicrosoft365PublishDefaults":"Azure.AI.Projects.Microsoft365Publishing.getMicrosoft365PublishDefaults","com.azure.ai.agents.AgentsAsyncClient.getMicrosoft365PublishDefaultsWithResponse":"Azure.AI.Projects.Microsoft365Publishing.getMicrosoft365PublishDefaults","com.azure.ai.agents.AgentsAsyncClient.getOptimizationCandidate":"Azure.AI.Projects.AgentOptimizationJobCandidates.getCandidate","com.azure.ai.agents.AgentsAsyncClient.getOptimizationCandidateWithResponse":"Azure.AI.Projects.AgentOptimizationJobCandidates.getCandidate","com.azure.ai.agents.AgentsAsyncClient.getOptimizationJob":"Azure.AI.Projects.AgentOptimizationJobs.get","com.azure.ai.agents.AgentsAsyncClient.getOptimizationJobWithResponse":"Azure.AI.Projects.AgentOptimizationJobs.get","com.azure.ai.agents.AgentsAsyncClient.getSession":"Azure.AI.Projects.Agents.getSession","com.azure.ai.agents.AgentsAsyncClient.getSessionWithResponse":"Azure.AI.Projects.Agents.getSession","com.azure.ai.agents.AgentsAsyncClient.listAgentConversations":"Azure.AI.Projects.Conversations.listConversations","com.azure.ai.agents.AgentsAsyncClient.listAgentVersions":"Azure.AI.Projects.Agents.listAgentVersions","com.azure.ai.agents.AgentsAsyncClient.listAgents":"Azure.AI.Projects.Agents.listAgents","com.azure.ai.agents.AgentsAsyncClient.listOptimizationCandidates":"Azure.AI.Projects.AgentOptimizationJobCandidates.listCandidates","com.azure.ai.agents.AgentsAsyncClient.listOptimizationJobs":"Azure.AI.Projects.AgentOptimizationJobs.list","com.azure.ai.agents.AgentsAsyncClient.listSessionFiles":"Azure.AI.Projects.AgentSessionFiles.listSessionFiles","com.azure.ai.agents.AgentsAsyncClient.listSessions":"Azure.AI.Projects.Agents.listSessions","com.azure.ai.agents.AgentsAsyncClient.promoteOptimizationCandidate":"Azure.AI.Projects.AgentOptimizationJobCandidates.promoteCandidate","com.azure.ai.agents.AgentsAsyncClient.promoteOptimizationCandidateWithResponse":"Azure.AI.Projects.AgentOptimizationJobCandidates.promoteCandidate","com.azure.ai.agents.AgentsAsyncClient.publishAgentToMicrosoft365":"Azure.AI.Projects.Microsoft365Publishing.publishAgentToMicrosoft365","com.azure.ai.agents.AgentsAsyncClient.publishAgentToMicrosoft365WithResponse":"Azure.AI.Projects.Microsoft365Publishing.publishAgentToMicrosoft365","com.azure.ai.agents.AgentsAsyncClient.stopSession":"Azure.AI.Projects.Agents.stopSession","com.azure.ai.agents.AgentsAsyncClient.stopSessionWithResponse":"Azure.AI.Projects.Agents.stopSession","com.azure.ai.agents.AgentsAsyncClient.updateAgent":"Azure.AI.Projects.Agents.updateAgent","com.azure.ai.agents.AgentsAsyncClient.updateAgentDetails":"Azure.AI.Projects.Agents.patchAgentObject","com.azure.ai.agents.AgentsAsyncClient.updateAgentDetailsWithResponse":"Azure.AI.Projects.Agents.patchAgentObject","com.azure.ai.agents.AgentsAsyncClient.updateAgentFromCode":"Azure.AI.Projects.Agents.updateAgentFromCode","com.azure.ai.agents.AgentsAsyncClient.updateAgentFromCodeWithResponseInternal":"Azure.AI.Projects.Agents.updateAgentFromCode","com.azure.ai.agents.AgentsAsyncClient.updateAgentFromManifest":"Azure.AI.Projects.Agents.updateAgentFromManifest","com.azure.ai.agents.AgentsAsyncClient.updateAgentFromManifestWithResponse":"Azure.AI.Projects.Agents.updateAgentFromManifest","com.azure.ai.agents.AgentsAsyncClient.updateAgentWithResponse":"Azure.AI.Projects.Agents.updateAgent","com.azure.ai.agents.AgentsAsyncClient.uploadSessionFile":"Azure.AI.Projects.AgentSessionFiles.uploadSessionFile","com.azure.ai.agents.AgentsAsyncClient.uploadSessionFileWithResponse":"Azure.AI.Projects.AgentSessionFiles.uploadSessionFile","com.azure.ai.agents.AgentsClient":"Azure.AI.Projects.Agents","com.azure.ai.agents.AgentsClient.beginCreateOptimizationJob":"Azure.AI.Projects.AgentOptimizationJobs.create","com.azure.ai.agents.AgentsClient.beginCreateOptimizationJobWithModel":"Azure.AI.Projects.AgentOptimizationJobs.create","com.azure.ai.agents.AgentsClient.cancelOptimizationJob":"Azure.AI.Projects.AgentOptimizationJobs.cancel","com.azure.ai.agents.AgentsClient.cancelOptimizationJobWithResponse":"Azure.AI.Projects.AgentOptimizationJobs.cancel","com.azure.ai.agents.AgentsClient.createAgent":"Azure.AI.Projects.Agents.createAgent","com.azure.ai.agents.AgentsClient.createAgentFromCode":"Azure.AI.Projects.Agents.createAgentFromCode","com.azure.ai.agents.AgentsClient.createAgentFromCodeWithResponseInternal":"Azure.AI.Projects.Agents.createAgentFromCode","com.azure.ai.agents.AgentsClient.createAgentFromManifest":"Azure.AI.Projects.Agents.createAgentFromManifest","com.azure.ai.agents.AgentsClient.createAgentFromManifestWithResponse":"Azure.AI.Projects.Agents.createAgentFromManifest","com.azure.ai.agents.AgentsClient.createAgentVersion":"Azure.AI.Projects.Agents.createAgentVersion","com.azure.ai.agents.AgentsClient.createAgentVersionFromCode":"Azure.AI.Projects.Agents.createAgentVersionFromCode","com.azure.ai.agents.AgentsClient.createAgentVersionFromCodeWithResponseInternal":"Azure.AI.Projects.Agents.createAgentVersionFromCode","com.azure.ai.agents.AgentsClient.createAgentVersionFromManifest":"Azure.AI.Projects.Agents.createAgentVersionFromManifest","com.azure.ai.agents.AgentsClient.createAgentVersionFromManifestWithResponse":"Azure.AI.Projects.Agents.createAgentVersionFromManifest","com.azure.ai.agents.AgentsClient.createAgentVersionWithResponse":"Azure.AI.Projects.Agents.createAgentVersion","com.azure.ai.agents.AgentsClient.createAgentWithResponse":"Azure.AI.Projects.Agents.createAgent","com.azure.ai.agents.AgentsClient.createSession":"Azure.AI.Projects.Agents.createSession","com.azure.ai.agents.AgentsClient.createSessionWithResponse":"Azure.AI.Projects.Agents.createSession","com.azure.ai.agents.AgentsClient.deleteOptimizationJob":"Azure.AI.Projects.AgentOptimizationJobs.delete","com.azure.ai.agents.AgentsClient.deleteOptimizationJobWithResponse":"Azure.AI.Projects.AgentOptimizationJobs.delete","com.azure.ai.agents.AgentsClient.deleteSession":"Azure.AI.Projects.Agents.deleteSession","com.azure.ai.agents.AgentsClient.deleteSessionFile":"Azure.AI.Projects.AgentSessionFiles.deleteSessionFile","com.azure.ai.agents.AgentsClient.deleteSessionFileWithResponse":"Azure.AI.Projects.AgentSessionFiles.deleteSessionFile","com.azure.ai.agents.AgentsClient.deleteSessionWithResponse":"Azure.AI.Projects.Agents.deleteSession","com.azure.ai.agents.AgentsClient.disableAgent":"Azure.AI.Projects.Agents.disableAgent","com.azure.ai.agents.AgentsClient.disableAgentWithResponse":"Azure.AI.Projects.Agents.disableAgent","com.azure.ai.agents.AgentsClient.downloadAgentCode":"Azure.AI.Projects.Agents.downloadAgentCode","com.azure.ai.agents.AgentsClient.downloadAgentCodeWithResponse":"Azure.AI.Projects.Agents.downloadAgentCode","com.azure.ai.agents.AgentsClient.downloadSessionFile":"Azure.AI.Projects.AgentSessionFiles.downloadSessionFile","com.azure.ai.agents.AgentsClient.downloadSessionFileWithResponse":"Azure.AI.Projects.AgentSessionFiles.downloadSessionFile","com.azure.ai.agents.AgentsClient.enableAgent":"Azure.AI.Projects.Agents.enableAgent","com.azure.ai.agents.AgentsClient.enableAgentWithResponse":"Azure.AI.Projects.Agents.enableAgent","com.azure.ai.agents.AgentsClient.estimateOptimizationJob":"Azure.AI.Projects.AgentOptimizationJobs.estimate","com.azure.ai.agents.AgentsClient.estimateOptimizationJobWithResponse":"Azure.AI.Projects.AgentOptimizationJobs.estimate","com.azure.ai.agents.AgentsClient.getAgent":"Azure.AI.Projects.Agents.getAgent","com.azure.ai.agents.AgentsClient.getAgentVersionDetails":"Azure.AI.Projects.Agents.getAgentVersion","com.azure.ai.agents.AgentsClient.getAgentVersionDetailsWithResponse":"Azure.AI.Projects.Agents.getAgentVersion","com.azure.ai.agents.AgentsClient.getAgentWithResponse":"Azure.AI.Projects.Agents.getAgent","com.azure.ai.agents.AgentsClient.getMicrosoft365AppPackage":"Azure.AI.Projects.Microsoft365Publishing.getMicrosoft365AppPackage","com.azure.ai.agents.AgentsClient.getMicrosoft365AppPackageWithResponse":"Azure.AI.Projects.Microsoft365Publishing.getMicrosoft365AppPackage","com.azure.ai.agents.AgentsClient.getMicrosoft365PublishDefaults":"Azure.AI.Projects.Microsoft365Publishing.getMicrosoft365PublishDefaults","com.azure.ai.agents.AgentsClient.getMicrosoft365PublishDefaultsWithResponse":"Azure.AI.Projects.Microsoft365Publishing.getMicrosoft365PublishDefaults","com.azure.ai.agents.AgentsClient.getOptimizationCandidate":"Azure.AI.Projects.AgentOptimizationJobCandidates.getCandidate","com.azure.ai.agents.AgentsClient.getOptimizationCandidateWithResponse":"Azure.AI.Projects.AgentOptimizationJobCandidates.getCandidate","com.azure.ai.agents.AgentsClient.getOptimizationJob":"Azure.AI.Projects.AgentOptimizationJobs.get","com.azure.ai.agents.AgentsClient.getOptimizationJobWithResponse":"Azure.AI.Projects.AgentOptimizationJobs.get","com.azure.ai.agents.AgentsClient.getSession":"Azure.AI.Projects.Agents.getSession","com.azure.ai.agents.AgentsClient.getSessionWithResponse":"Azure.AI.Projects.Agents.getSession","com.azure.ai.agents.AgentsClient.listAgentConversations":"Azure.AI.Projects.Conversations.listConversations","com.azure.ai.agents.AgentsClient.listAgentVersions":"Azure.AI.Projects.Agents.listAgentVersions","com.azure.ai.agents.AgentsClient.listAgents":"Azure.AI.Projects.Agents.listAgents","com.azure.ai.agents.AgentsClient.listOptimizationCandidates":"Azure.AI.Projects.AgentOptimizationJobCandidates.listCandidates","com.azure.ai.agents.AgentsClient.listOptimizationJobs":"Azure.AI.Projects.AgentOptimizationJobs.list","com.azure.ai.agents.AgentsClient.listSessionFiles":"Azure.AI.Projects.AgentSessionFiles.listSessionFiles","com.azure.ai.agents.AgentsClient.listSessions":"Azure.AI.Projects.Agents.listSessions","com.azure.ai.agents.AgentsClient.promoteOptimizationCandidate":"Azure.AI.Projects.AgentOptimizationJobCandidates.promoteCandidate","com.azure.ai.agents.AgentsClient.promoteOptimizationCandidateWithResponse":"Azure.AI.Projects.AgentOptimizationJobCandidates.promoteCandidate","com.azure.ai.agents.AgentsClient.publishAgentToMicrosoft365":"Azure.AI.Projects.Microsoft365Publishing.publishAgentToMicrosoft365","com.azure.ai.agents.AgentsClient.publishAgentToMicrosoft365WithResponse":"Azure.AI.Projects.Microsoft365Publishing.publishAgentToMicrosoft365","com.azure.ai.agents.AgentsClient.stopSession":"Azure.AI.Projects.Agents.stopSession","com.azure.ai.agents.AgentsClient.stopSessionWithResponse":"Azure.AI.Projects.Agents.stopSession","com.azure.ai.agents.AgentsClient.updateAgent":"Azure.AI.Projects.Agents.updateAgent","com.azure.ai.agents.AgentsClient.updateAgentDetails":"Azure.AI.Projects.Agents.patchAgentObject","com.azure.ai.agents.AgentsClient.updateAgentDetailsWithResponse":"Azure.AI.Projects.Agents.patchAgentObject","com.azure.ai.agents.AgentsClient.updateAgentFromCode":"Azure.AI.Projects.Agents.updateAgentFromCode","com.azure.ai.agents.AgentsClient.updateAgentFromCodeWithResponseInternal":"Azure.AI.Projects.Agents.updateAgentFromCode","com.azure.ai.agents.AgentsClient.updateAgentFromManifest":"Azure.AI.Projects.Agents.updateAgentFromManifest","com.azure.ai.agents.AgentsClient.updateAgentFromManifestWithResponse":"Azure.AI.Projects.Agents.updateAgentFromManifest","com.azure.ai.agents.AgentsClient.updateAgentWithResponse":"Azure.AI.Projects.Agents.updateAgent","com.azure.ai.agents.AgentsClient.uploadSessionFile":"Azure.AI.Projects.AgentSessionFiles.uploadSessionFile","com.azure.ai.agents.AgentsClient.uploadSessionFileWithResponse":"Azure.AI.Projects.AgentSessionFiles.uploadSessionFile","com.azure.ai.agents.AgentsClientBuilder":"Azure.AI.Projects","com.azure.ai.agents.BetaAgentsAsyncClient":"Azure.AI.Projects.Beta.Agents","com.azure.ai.agents.BetaAgentsAsyncClient.createAgentFromPrompt":"Azure.AI.Projects.Agents.generateAgent","com.azure.ai.agents.BetaAgentsAsyncClient.createAgentFromPromptWithResponse":"Azure.AI.Projects.Agents.generateAgent","com.azure.ai.agents.BetaAgentsClient":"Azure.AI.Projects.Beta.Agents","com.azure.ai.agents.BetaAgentsClient.createAgentFromPrompt":"Azure.AI.Projects.Agents.generateAgent","com.azure.ai.agents.BetaAgentsClient.createAgentFromPromptWithResponse":"Azure.AI.Projects.Agents.generateAgent","com.azure.ai.agents.BetaMemoryStoresAsyncClient":"Azure.AI.Projects.Beta.MemoryStores","com.azure.ai.agents.BetaMemoryStoresAsyncClient.beginInternalUpdateMemories":"Azure.AI.Projects.MemoryStores.updateMemories","com.azure.ai.agents.BetaMemoryStoresAsyncClient.beginInternalUpdateMemoriesWithModel":"Azure.AI.Projects.MemoryStores.updateMemories","com.azure.ai.agents.BetaMemoryStoresAsyncClient.createMemory":"Azure.AI.Projects.MemoryStores.createMemory","com.azure.ai.agents.BetaMemoryStoresAsyncClient.createMemoryStore":"Azure.AI.Projects.MemoryStores.createMemoryStore","com.azure.ai.agents.BetaMemoryStoresAsyncClient.createMemoryStoreWithResponse":"Azure.AI.Projects.MemoryStores.createMemoryStore","com.azure.ai.agents.BetaMemoryStoresAsyncClient.createMemoryWithResponse":"Azure.AI.Projects.MemoryStores.createMemory","com.azure.ai.agents.BetaMemoryStoresAsyncClient.getMemory":"Azure.AI.Projects.MemoryStores.getMemory","com.azure.ai.agents.BetaMemoryStoresAsyncClient.getMemoryStore":"Azure.AI.Projects.MemoryStores.getMemoryStore","com.azure.ai.agents.BetaMemoryStoresAsyncClient.getMemoryStoreWithResponse":"Azure.AI.Projects.MemoryStores.getMemoryStore","com.azure.ai.agents.BetaMemoryStoresAsyncClient.getMemoryWithResponse":"Azure.AI.Projects.MemoryStores.getMemory","com.azure.ai.agents.BetaMemoryStoresAsyncClient.getUpdateResult":"Azure.AI.Projects.MemoryStores.getUpdateResult","com.azure.ai.agents.BetaMemoryStoresAsyncClient.getUpdateResultWithResponse":"Azure.AI.Projects.MemoryStores.getUpdateResult","com.azure.ai.agents.BetaMemoryStoresAsyncClient.internalSearchMemories":"Azure.AI.Projects.MemoryStores.searchMemories","com.azure.ai.agents.BetaMemoryStoresAsyncClient.internalSearchMemoriesWithResponse":"Azure.AI.Projects.MemoryStores.searchMemories","com.azure.ai.agents.BetaMemoryStoresAsyncClient.listMemories":"Azure.AI.Projects.MemoryStores.listMemories","com.azure.ai.agents.BetaMemoryStoresAsyncClient.listMemoryStores":"Azure.AI.Projects.MemoryStores.listMemoryStores","com.azure.ai.agents.BetaMemoryStoresAsyncClient.updateMemory":"Azure.AI.Projects.MemoryStores.updateMemory","com.azure.ai.agents.BetaMemoryStoresAsyncClient.updateMemoryStore":"Azure.AI.Projects.MemoryStores.updateMemoryStore","com.azure.ai.agents.BetaMemoryStoresAsyncClient.updateMemoryStoreWithResponse":"Azure.AI.Projects.MemoryStores.updateMemoryStore","com.azure.ai.agents.BetaMemoryStoresAsyncClient.updateMemoryWithResponse":"Azure.AI.Projects.MemoryStores.updateMemory","com.azure.ai.agents.BetaMemoryStoresClient":"Azure.AI.Projects.Beta.MemoryStores","com.azure.ai.agents.BetaMemoryStoresClient.beginInternalUpdateMemories":"Azure.AI.Projects.MemoryStores.updateMemories","com.azure.ai.agents.BetaMemoryStoresClient.beginInternalUpdateMemoriesWithModel":"Azure.AI.Projects.MemoryStores.updateMemories","com.azure.ai.agents.BetaMemoryStoresClient.createMemory":"Azure.AI.Projects.MemoryStores.createMemory","com.azure.ai.agents.BetaMemoryStoresClient.createMemoryStore":"Azure.AI.Projects.MemoryStores.createMemoryStore","com.azure.ai.agents.BetaMemoryStoresClient.createMemoryStoreWithResponse":"Azure.AI.Projects.MemoryStores.createMemoryStore","com.azure.ai.agents.BetaMemoryStoresClient.createMemoryWithResponse":"Azure.AI.Projects.MemoryStores.createMemory","com.azure.ai.agents.BetaMemoryStoresClient.getMemory":"Azure.AI.Projects.MemoryStores.getMemory","com.azure.ai.agents.BetaMemoryStoresClient.getMemoryStore":"Azure.AI.Projects.MemoryStores.getMemoryStore","com.azure.ai.agents.BetaMemoryStoresClient.getMemoryStoreWithResponse":"Azure.AI.Projects.MemoryStores.getMemoryStore","com.azure.ai.agents.BetaMemoryStoresClient.getMemoryWithResponse":"Azure.AI.Projects.MemoryStores.getMemory","com.azure.ai.agents.BetaMemoryStoresClient.getUpdateResult":"Azure.AI.Projects.MemoryStores.getUpdateResult","com.azure.ai.agents.BetaMemoryStoresClient.getUpdateResultWithResponse":"Azure.AI.Projects.MemoryStores.getUpdateResult","com.azure.ai.agents.BetaMemoryStoresClient.internalSearchMemories":"Azure.AI.Projects.MemoryStores.searchMemories","com.azure.ai.agents.BetaMemoryStoresClient.internalSearchMemoriesWithResponse":"Azure.AI.Projects.MemoryStores.searchMemories","com.azure.ai.agents.BetaMemoryStoresClient.listMemories":"Azure.AI.Projects.MemoryStores.listMemories","com.azure.ai.agents.BetaMemoryStoresClient.listMemoryStores":"Azure.AI.Projects.MemoryStores.listMemoryStores","com.azure.ai.agents.BetaMemoryStoresClient.updateMemory":"Azure.AI.Projects.MemoryStores.updateMemory","com.azure.ai.agents.BetaMemoryStoresClient.updateMemoryStore":"Azure.AI.Projects.MemoryStores.updateMemoryStore","com.azure.ai.agents.BetaMemoryStoresClient.updateMemoryStoreWithResponse":"Azure.AI.Projects.MemoryStores.updateMemoryStore","com.azure.ai.agents.BetaMemoryStoresClient.updateMemoryWithResponse":"Azure.AI.Projects.MemoryStores.updateMemory","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient":"Azure.AI.Projects.Beta.VoiceAgents.Conversations","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.deleteAgentConversation":"Azure.AI.Projects.AgentEndpointConversations.deleteAgentConversation","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.deleteAgentConversationWithResponse":"Azure.AI.Projects.AgentEndpointConversations.deleteAgentConversation","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.downloadAgentConversationAudio":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationAudioContent","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.downloadAgentConversationAudioItem":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationAudioItemContent","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.downloadAgentConversationAudioItemWithResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationAudioItemContent","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.downloadAgentConversationAudioWithResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationAudioContent","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.downloadAgentConversationGeneratedAudioItem":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationGeneratedAudioItemContent","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.downloadAgentConversationGeneratedAudioItemWithResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationGeneratedAudioItemContent","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.getAgentConversation":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversation","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.getAgentConversationAudio":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationAudio","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.getAgentConversationAudioItem":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationAudioItem","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.getAgentConversationAudioItemWithResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationAudioItem","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.getAgentConversationAudioWithResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationAudio","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.getAgentConversationGeneratedAudioItem":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationGeneratedAudioItem","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.getAgentConversationGeneratedAudioItemWithResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationGeneratedAudioItem","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.getAgentConversationItem":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationItem","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.getAgentConversationItemWithResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationItem","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.getAgentConversationResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationResponse","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.getAgentConversationResponseWithResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationResponse","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.getAgentConversationWithResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversation","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.listAgentConversationItems":"Azure.AI.Projects.AgentEndpointConversations.listAgentConversationItems","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.listAgentConversationResponseItems":"Azure.AI.Projects.AgentEndpointConversations.listAgentConversationResponseItems","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.listAgentConversationResponses":"Azure.AI.Projects.AgentEndpointConversations.listAgentConversationResponses","com.azure.ai.agents.BetaVoiceAgentsConversationsAsyncClient.listAgentConversations":"Azure.AI.Projects.AgentEndpointConversations.listAgentConversations","com.azure.ai.agents.BetaVoiceAgentsConversationsClient":"Azure.AI.Projects.Beta.VoiceAgents.Conversations","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.deleteAgentConversation":"Azure.AI.Projects.AgentEndpointConversations.deleteAgentConversation","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.deleteAgentConversationWithResponse":"Azure.AI.Projects.AgentEndpointConversations.deleteAgentConversation","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.downloadAgentConversationAudio":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationAudioContent","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.downloadAgentConversationAudioItem":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationAudioItemContent","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.downloadAgentConversationAudioItemWithResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationAudioItemContent","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.downloadAgentConversationAudioWithResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationAudioContent","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.downloadAgentConversationGeneratedAudioItem":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationGeneratedAudioItemContent","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.downloadAgentConversationGeneratedAudioItemWithResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationGeneratedAudioItemContent","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.getAgentConversation":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversation","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.getAgentConversationAudio":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationAudio","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.getAgentConversationAudioItem":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationAudioItem","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.getAgentConversationAudioItemWithResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationAudioItem","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.getAgentConversationAudioWithResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationAudio","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.getAgentConversationGeneratedAudioItem":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationGeneratedAudioItem","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.getAgentConversationGeneratedAudioItemWithResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationGeneratedAudioItem","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.getAgentConversationItem":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationItem","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.getAgentConversationItemWithResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationItem","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.getAgentConversationResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationResponse","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.getAgentConversationResponseWithResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversationResponse","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.getAgentConversationWithResponse":"Azure.AI.Projects.AgentEndpointConversations.getAgentConversation","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.listAgentConversationItems":"Azure.AI.Projects.AgentEndpointConversations.listAgentConversationItems","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.listAgentConversationResponseItems":"Azure.AI.Projects.AgentEndpointConversations.listAgentConversationResponseItems","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.listAgentConversationResponses":"Azure.AI.Projects.AgentEndpointConversations.listAgentConversationResponses","com.azure.ai.agents.BetaVoiceAgentsConversationsClient.listAgentConversations":"Azure.AI.Projects.AgentEndpointConversations.listAgentConversations","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient":"Azure.AI.Projects.Beta.VoiceAgents.Telephony","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.cancelTelephonyCallJob":"Azure.AI.Projects.AgentTelephony.cancelTelephonyCallJob","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.cancelTelephonyCallJobWithResponse":"Azure.AI.Projects.AgentTelephony.cancelTelephonyCallJob","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.createTelephonyBinding":"Azure.AI.Projects.AgentTelephony.createTelephonyBinding","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.createTelephonyBindingWithResponse":"Azure.AI.Projects.AgentTelephony.createTelephonyBinding","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.createTelephonyCallJob":"Azure.AI.Projects.AgentTelephony.createTelephonyCallJob","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.createTelephonyCallJobWithResponse":"Azure.AI.Projects.AgentTelephony.createTelephonyCallJob","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.deleteTelephonyBinding":"Azure.AI.Projects.AgentTelephony.deleteTelephonyBinding","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.deleteTelephonyBindingWithResponse":"Azure.AI.Projects.AgentTelephony.deleteTelephonyBinding","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.endTelephonyCall":"Azure.AI.Projects.AgentTelephony.endTelephonyCall","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.endTelephonyCallWithResponse":"Azure.AI.Projects.AgentTelephony.endTelephonyCall","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.getTelephonyBinding":"Azure.AI.Projects.AgentTelephony.getTelephonyBinding","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.getTelephonyBindingWithResponse":"Azure.AI.Projects.AgentTelephony.getTelephonyBinding","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.getTelephonyCall":"Azure.AI.Projects.AgentTelephony.getTelephonyCall","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.getTelephonyCallJob":"Azure.AI.Projects.AgentTelephony.getTelephonyCallJob","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.getTelephonyCallJobWithResponse":"Azure.AI.Projects.AgentTelephony.getTelephonyCallJob","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.getTelephonyCallWithResponse":"Azure.AI.Projects.AgentTelephony.getTelephonyCall","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.getTelephonyTransferTargets":"Azure.AI.Projects.AgentTelephony.getTelephonyTransferTargets","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.getTelephonyTransferTargetsWithResponse":"Azure.AI.Projects.AgentTelephony.getTelephonyTransferTargets","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.listTelephonyBindings":"Azure.AI.Projects.AgentTelephony.listTelephonyBindings","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.listTelephonyCalls":"Azure.AI.Projects.AgentTelephony.listTelephonyCalls","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.replaceTelephonyTransferTargets":"Azure.AI.Projects.AgentTelephony.replaceTelephonyTransferTargets","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.replaceTelephonyTransferTargetsWithResponse":"Azure.AI.Projects.AgentTelephony.replaceTelephonyTransferTargets","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.transferTelephonyCall":"Azure.AI.Projects.AgentTelephony.transferTelephonyCall","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.transferTelephonyCallWithResponse":"Azure.AI.Projects.AgentTelephony.transferTelephonyCall","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.updateTelephonyBinding":"Azure.AI.Projects.AgentTelephony.updateTelephonyBinding","com.azure.ai.agents.BetaVoiceAgentsTelephonyAsyncClient.updateTelephonyBindingWithResponse":"Azure.AI.Projects.AgentTelephony.updateTelephonyBinding","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient":"Azure.AI.Projects.Beta.VoiceAgents.Telephony","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.cancelTelephonyCallJob":"Azure.AI.Projects.AgentTelephony.cancelTelephonyCallJob","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.cancelTelephonyCallJobWithResponse":"Azure.AI.Projects.AgentTelephony.cancelTelephonyCallJob","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.createTelephonyBinding":"Azure.AI.Projects.AgentTelephony.createTelephonyBinding","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.createTelephonyBindingWithResponse":"Azure.AI.Projects.AgentTelephony.createTelephonyBinding","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.createTelephonyCallJob":"Azure.AI.Projects.AgentTelephony.createTelephonyCallJob","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.createTelephonyCallJobWithResponse":"Azure.AI.Projects.AgentTelephony.createTelephonyCallJob","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.deleteTelephonyBinding":"Azure.AI.Projects.AgentTelephony.deleteTelephonyBinding","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.deleteTelephonyBindingWithResponse":"Azure.AI.Projects.AgentTelephony.deleteTelephonyBinding","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.endTelephonyCall":"Azure.AI.Projects.AgentTelephony.endTelephonyCall","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.endTelephonyCallWithResponse":"Azure.AI.Projects.AgentTelephony.endTelephonyCall","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.getTelephonyBinding":"Azure.AI.Projects.AgentTelephony.getTelephonyBinding","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.getTelephonyBindingWithResponse":"Azure.AI.Projects.AgentTelephony.getTelephonyBinding","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.getTelephonyCall":"Azure.AI.Projects.AgentTelephony.getTelephonyCall","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.getTelephonyCallJob":"Azure.AI.Projects.AgentTelephony.getTelephonyCallJob","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.getTelephonyCallJobWithResponse":"Azure.AI.Projects.AgentTelephony.getTelephonyCallJob","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.getTelephonyCallWithResponse":"Azure.AI.Projects.AgentTelephony.getTelephonyCall","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.getTelephonyTransferTargets":"Azure.AI.Projects.AgentTelephony.getTelephonyTransferTargets","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.getTelephonyTransferTargetsWithResponse":"Azure.AI.Projects.AgentTelephony.getTelephonyTransferTargets","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.listTelephonyBindings":"Azure.AI.Projects.AgentTelephony.listTelephonyBindings","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.listTelephonyCalls":"Azure.AI.Projects.AgentTelephony.listTelephonyCalls","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.replaceTelephonyTransferTargets":"Azure.AI.Projects.AgentTelephony.replaceTelephonyTransferTargets","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.replaceTelephonyTransferTargetsWithResponse":"Azure.AI.Projects.AgentTelephony.replaceTelephonyTransferTargets","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.transferTelephonyCall":"Azure.AI.Projects.AgentTelephony.transferTelephonyCall","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.transferTelephonyCallWithResponse":"Azure.AI.Projects.AgentTelephony.transferTelephonyCall","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.updateTelephonyBinding":"Azure.AI.Projects.AgentTelephony.updateTelephonyBinding","com.azure.ai.agents.BetaVoiceAgentsTelephonyClient.updateTelephonyBindingWithResponse":"Azure.AI.Projects.AgentTelephony.updateTelephonyBinding","com.azure.ai.agents.ToolboxesAsyncClient":"Azure.AI.Projects.Toolboxes","com.azure.ai.agents.ToolboxesAsyncClient.createToolboxVersion":"Azure.AI.Projects.Toolboxes.createToolboxVersion","com.azure.ai.agents.ToolboxesAsyncClient.createToolboxVersionWithResponse":"Azure.AI.Projects.Toolboxes.createToolboxVersion","com.azure.ai.agents.ToolboxesAsyncClient.deleteToolbox":"Azure.AI.Projects.Toolboxes.deleteToolbox","com.azure.ai.agents.ToolboxesAsyncClient.deleteToolboxVersion":"Azure.AI.Projects.Toolboxes.deleteToolboxVersion","com.azure.ai.agents.ToolboxesAsyncClient.deleteToolboxVersionWithResponse":"Azure.AI.Projects.Toolboxes.deleteToolboxVersion","com.azure.ai.agents.ToolboxesAsyncClient.deleteToolboxWithResponse":"Azure.AI.Projects.Toolboxes.deleteToolbox","com.azure.ai.agents.ToolboxesAsyncClient.getToolbox":"Azure.AI.Projects.Toolboxes.getToolbox","com.azure.ai.agents.ToolboxesAsyncClient.getToolboxVersion":"Azure.AI.Projects.Toolboxes.getToolboxVersion","com.azure.ai.agents.ToolboxesAsyncClient.getToolboxVersionWithResponse":"Azure.AI.Projects.Toolboxes.getToolboxVersion","com.azure.ai.agents.ToolboxesAsyncClient.getToolboxWithResponse":"Azure.AI.Projects.Toolboxes.getToolbox","com.azure.ai.agents.ToolboxesAsyncClient.invokeLatestToolboxMcp":"Azure.AI.Projects.Toolboxes.invokeLatestToolboxMcp","com.azure.ai.agents.ToolboxesAsyncClient.invokeLatestToolboxMcpWithResponse":"Azure.AI.Projects.Toolboxes.invokeLatestToolboxMcp","com.azure.ai.agents.ToolboxesAsyncClient.listToolboxVersions":"Azure.AI.Projects.Toolboxes.listToolboxVersions","com.azure.ai.agents.ToolboxesAsyncClient.listToolboxes":"Azure.AI.Projects.Toolboxes.listToolboxes","com.azure.ai.agents.ToolboxesAsyncClient.updateToolbox":"Azure.AI.Projects.Toolboxes.updateToolbox","com.azure.ai.agents.ToolboxesAsyncClient.updateToolboxWithResponse":"Azure.AI.Projects.Toolboxes.updateToolbox","com.azure.ai.agents.ToolboxesClient":"Azure.AI.Projects.Toolboxes","com.azure.ai.agents.ToolboxesClient.createToolboxVersion":"Azure.AI.Projects.Toolboxes.createToolboxVersion","com.azure.ai.agents.ToolboxesClient.createToolboxVersionWithResponse":"Azure.AI.Projects.Toolboxes.createToolboxVersion","com.azure.ai.agents.ToolboxesClient.deleteToolbox":"Azure.AI.Projects.Toolboxes.deleteToolbox","com.azure.ai.agents.ToolboxesClient.deleteToolboxVersion":"Azure.AI.Projects.Toolboxes.deleteToolboxVersion","com.azure.ai.agents.ToolboxesClient.deleteToolboxVersionWithResponse":"Azure.AI.Projects.Toolboxes.deleteToolboxVersion","com.azure.ai.agents.ToolboxesClient.deleteToolboxWithResponse":"Azure.AI.Projects.Toolboxes.deleteToolbox","com.azure.ai.agents.ToolboxesClient.getToolbox":"Azure.AI.Projects.Toolboxes.getToolbox","com.azure.ai.agents.ToolboxesClient.getToolboxVersion":"Azure.AI.Projects.Toolboxes.getToolboxVersion","com.azure.ai.agents.ToolboxesClient.getToolboxVersionWithResponse":"Azure.AI.Projects.Toolboxes.getToolboxVersion","com.azure.ai.agents.ToolboxesClient.getToolboxWithResponse":"Azure.AI.Projects.Toolboxes.getToolbox","com.azure.ai.agents.ToolboxesClient.invokeLatestToolboxMcp":"Azure.AI.Projects.Toolboxes.invokeLatestToolboxMcp","com.azure.ai.agents.ToolboxesClient.invokeLatestToolboxMcpWithResponse":"Azure.AI.Projects.Toolboxes.invokeLatestToolboxMcp","com.azure.ai.agents.ToolboxesClient.listToolboxVersions":"Azure.AI.Projects.Toolboxes.listToolboxVersions","com.azure.ai.agents.ToolboxesClient.listToolboxes":"Azure.AI.Projects.Toolboxes.listToolboxes","com.azure.ai.agents.ToolboxesClient.updateToolbox":"Azure.AI.Projects.Toolboxes.updateToolbox","com.azure.ai.agents.ToolboxesClient.updateToolboxWithResponse":"Azure.AI.Projects.Toolboxes.updateToolbox","com.azure.ai.agents.implementation.models.AgentDefinitionOptInKeys":"Azure.AI.Projects.AgentDefinitionOptInKeys","com.azure.ai.agents.implementation.models.CreateAgentFromCodeContent":"Azure.AI.Projects.CreateAgentFromCodeContent","com.azure.ai.agents.implementation.models.CreateAgentFromManifestRequest":"Azure.AI.Projects.createAgentFromManifest.Request.anonymous","com.azure.ai.agents.implementation.models.CreateAgentOptions":null,"com.azure.ai.agents.implementation.models.CreateAgentRequest":"Azure.AI.Projects.createAgent.Request.anonymous","com.azure.ai.agents.implementation.models.CreateAgentVersionFromManifestRequest":"Azure.AI.Projects.createAgentVersionFromManifest.Request.anonymous","com.azure.ai.agents.implementation.models.CreateAgentVersionRequest":"Azure.AI.Projects.createAgentVersion.Request.anonymous","com.azure.ai.agents.implementation.models.CreateMemoryRequest":"Azure.AI.Projects.createMemory.Request.anonymous","com.azure.ai.agents.implementation.models.CreateMemoryStoreRequest":"Azure.AI.Projects.createMemoryStore.Request.anonymous","com.azure.ai.agents.implementation.models.CreateSessionRequest":"Azure.AI.Projects.createSession.Request.anonymous","com.azure.ai.agents.implementation.models.CreateToolboxVersionRequest":"Azure.AI.Projects.createToolboxVersion.Request.anonymous","com.azure.ai.agents.implementation.models.FoundryFeaturesOptInKeys":"Azure.AI.Projects.FoundryFeaturesOptInKeys","com.azure.ai.agents.implementation.models.GetMicrosoft365AppPackageRequest":"Azure.AI.Projects.getMicrosoft365AppPackage.Request.anonymous","com.azure.ai.agents.implementation.models.ListMemoriesRequest":"Azure.AI.Projects.listMemories.Request.anonymous","com.azure.ai.agents.implementation.models.PublishAgentToMicrosoft365Request":"Azure.AI.Projects.publishAgentToMicrosoft365.Request.anonymous","com.azure.ai.agents.implementation.models.ReplaceTelephonyTransferTargetsRequest":"Azure.AI.Projects.replaceTelephonyTransferTargets.Request.anonymous","com.azure.ai.agents.implementation.models.SearchMemoriesRequest":"Azure.AI.Projects.searchMemories.Request.anonymous","com.azure.ai.agents.implementation.models.TransferTelephonyCallRequest":"Azure.AI.Projects.transferTelephonyCall.Request.anonymous","com.azure.ai.agents.implementation.models.UpdateAgentFromManifestRequest":"Azure.AI.Projects.updateAgentFromManifest.Request.anonymous","com.azure.ai.agents.implementation.models.UpdateAgentRequest":"Azure.AI.Projects.updateAgent.Request.anonymous","com.azure.ai.agents.implementation.models.UpdateMemoriesRequest":"Azure.AI.Projects.updateMemories.Request.anonymous","com.azure.ai.agents.implementation.models.UpdateMemoryRequest":"Azure.AI.Projects.updateMemory.Request.anonymous","com.azure.ai.agents.implementation.models.UpdateMemoryStoreRequest":"Azure.AI.Projects.updateMemoryStore.Request.anonymous","com.azure.ai.agents.implementation.models.UpdateToolboxInput":"Azure.AI.Projects.UpdateToolboxRequest","com.azure.ai.agents.implementation.models.UpdateToolboxRequest":"Azure.AI.Projects.updateToolbox.Request.anonymous","com.azure.ai.agents.models.A2APreviewTool":"Azure.AI.Projects.A2APreviewTool","com.azure.ai.agents.models.A2APreviewToolboxTool":"Azure.AI.Projects.A2APreviewToolboxTool","com.azure.ai.agents.models.A2AProtocolConfiguration":"Azure.AI.Projects.A2AProtocolConfiguration","com.azure.ai.agents.models.A2AProtocolVersion":"Azure.AI.Projects.A2AProtocolVersion","com.azure.ai.agents.models.A2ATool":"Azure.AI.Projects.A2ATool","com.azure.ai.agents.models.A2AToolCall":"Azure.AI.Projects.A2AToolCall","com.azure.ai.agents.models.A2AToolCallOutput":"Azure.AI.Projects.A2AToolCallOutput","com.azure.ai.agents.models.A2AToolboxTool":"Azure.AI.Projects.A2AToolboxTool","com.azure.ai.agents.models.AISearchIndexResource":"Azure.AI.Projects.AISearchIndexResource","com.azure.ai.agents.models.ActivityProtocolAccessBoundary":"Azure.AI.Projects.ActivityProtocolAccessBoundary","com.azure.ai.agents.models.ActivityProtocolConfiguration":"Azure.AI.Projects.ActivityProtocolConfiguration","com.azure.ai.agents.models.AgentBlueprintReference":"Azure.AI.Projects.AgentBlueprintReference","com.azure.ai.agents.models.AgentBlueprintReferenceType":"Azure.AI.Projects.AgentBlueprintReferenceType","com.azure.ai.agents.models.AgentCard":"Azure.AI.Projects.AgentCard","com.azure.ai.agents.models.AgentCardSkill":"Azure.AI.Projects.AgentCardSkill","com.azure.ai.agents.models.AgentDefinition":"Azure.AI.Projects.AgentDefinition","com.azure.ai.agents.models.AgentDetails":"Azure.AI.Projects.AgentObject","com.azure.ai.agents.models.AgentDetailsVersions":"Azure.AI.Projects.AgentObject.versions.anonymous","com.azure.ai.agents.models.AgentEndpointAuthorizationScheme":"Azure.AI.Projects.AgentEndpointAuthorizationScheme","com.azure.ai.agents.models.AgentEndpointAuthorizationSchemeType":"Azure.AI.Projects.AgentEndpointAuthorizationSchemeType","com.azure.ai.agents.models.AgentEndpointConfig":"Azure.AI.Projects.AgentEndpointConfig","com.azure.ai.agents.models.AgentEndpointProtocol":"Azure.AI.Projects.AgentEndpointProtocol","com.azure.ai.agents.models.AgentHarness":"Azure.AI.Projects.AgentHarness","com.azure.ai.agents.models.AgentIdentity":"Azure.AI.Projects.AgentIdentity","com.azure.ai.agents.models.AgentIdentityStatus":"Azure.AI.Projects.AgentIdentityStatus","com.azure.ai.agents.models.AgentKind":"Azure.AI.Projects.AgentKind","com.azure.ai.agents.models.AgentObjectType":"Azure.AI.Projects.AgentObjectType","com.azure.ai.agents.models.AgentOptimizationAgentCandidateOutput":"Azure.AI.Projects.AgentOptimizationAgentCandidateOutput","com.azure.ai.agents.models.AgentOptimizationBaselineAgentConfiguration":"Azure.AI.Projects.AgentOptimizationBaselineAgentConfiguration","com.azure.ai.agents.models.AgentOptimizationCandidate":"Azure.AI.Projects.AgentOptimizationCandidate","com.azure.ai.agents.models.AgentOptimizationCandidateEvaluation":"Azure.AI.Projects.AgentOptimizationCandidateEvaluation","com.azure.ai.agents.models.AgentOptimizationCandidateExpand":"Azure.AI.Projects.AgentOptimizationCandidateExpand","com.azure.ai.agents.models.AgentOptimizationCandidateOutput":"Azure.AI.Projects.AgentOptimizationCandidateOutput","com.azure.ai.agents.models.AgentOptimizationCandidatePromotionInfo":"Azure.AI.Projects.AgentOptimizationCandidatePromotionInfo","com.azure.ai.agents.models.AgentOptimizationCandidateSearchConfiguration":"Azure.AI.Projects.AgentOptimizationCandidateSearchConfiguration","com.azure.ai.agents.models.AgentOptimizationCandidateStatus":"Azure.AI.Projects.AgentOptimizationCandidateStatus","com.azure.ai.agents.models.AgentOptimizationConfiguration":"Azure.AI.Projects.AgentOptimizationConfiguration","com.azure.ai.agents.models.AgentOptimizationConfigurationBase":"Azure.AI.Projects.AgentOptimizationConfigurationBase","com.azure.ai.agents.models.AgentOptimizationConfigurationType":"Azure.AI.Projects.AgentOptimizationConfigurationType","com.azure.ai.agents.models.AgentOptimizationCostEstimate":"Azure.AI.Projects.AgentOptimizationCostEstimate","com.azure.ai.agents.models.AgentOptimizationDataSourceType":"Azure.AI.Projects.AgentOptimizationDataSourceType","com.azure.ai.agents.models.AgentOptimizationEstimateBand":"Azure.AI.Projects.AgentOptimizationEstimateBand","com.azure.ai.agents.models.AgentOptimizationEstimateInputs":"Azure.AI.Projects.AgentOptimizationEstimateInputs","com.azure.ai.agents.models.AgentOptimizationEstimateResult":"Azure.AI.Projects.AgentOptimizationEstimateResult","com.azure.ai.agents.models.AgentOptimizationEvaluationConfiguration":"Azure.AI.Projects.AgentOptimizationEvaluationConfiguration","com.azure.ai.agents.models.AgentOptimizationEvaluationSet":"Azure.AI.Projects.AgentOptimizationEvaluationSet","com.azure.ai.agents.models.AgentOptimizationEvaluationSetType":"Azure.AI.Projects.AgentOptimizationEvaluationSetType","com.azure.ai.agents.models.AgentOptimizationEvaluatorReference":"Azure.AI.Projects.AgentOptimizationEvaluator","com.azure.ai.agents.models.AgentOptimizationFoundryAgentTargetConfiguration":"Azure.AI.Projects.AgentOptimizationFoundryAgentTargetConfiguration","com.azure.ai.agents.models.AgentOptimizationGoal":"Azure.AI.Projects.AgentOptimizationGoal","com.azure.ai.agents.models.AgentOptimizationInstructionsMutation":"Azure.AI.Projects.AgentOptimizationInstructionsMutation","com.azure.ai.agents.models.AgentOptimizationJob":"Azure.AI.Projects.AgentOptimizationJob","com.azure.ai.agents.models.AgentOptimizationJobLatency":"Azure.AI.Projects.AgentOptimizationJobLatency","com.azure.ai.agents.models.AgentOptimizationJobResult":"Azure.AI.Projects.AgentOptimizationJobResult","com.azure.ai.agents.models.AgentOptimizationJobTokenUsage":"Azure.AI.Projects.AgentOptimizationJobTokenUsage","com.azure.ai.agents.models.AgentOptimizationModelConfiguration":"Azure.AI.Projects.AgentOptimizationModelConfiguration","com.azure.ai.agents.models.AgentOptimizationModelMutation":"Azure.AI.Projects.AgentOptimizationModelMutation","com.azure.ai.agents.models.AgentOptimizationMutation":"Azure.AI.Projects.AgentOptimizationMutation","com.azure.ai.agents.models.AgentOptimizationPromptCandidateOutput":"Azure.AI.Projects.AgentOptimizationPromptCandidateOutput","com.azure.ai.agents.models.AgentOptimizationResultCandidateSummary":"Azure.AI.Projects.AgentOptimizationResultCandidateSummary","com.azure.ai.agents.models.AgentOptimizationSkill":"Azure.AI.Projects.AgentOptimizationSkill","com.azure.ai.agents.models.AgentOptimizationSkillsMutation":"Azure.AI.Projects.AgentOptimizationSkillsMutation","com.azure.ai.agents.models.AgentOptimizationSpace":"Azure.AI.Projects.AgentOptimizationSpace","com.azure.ai.agents.models.AgentOptimizationStage":"Azure.AI.Projects.AgentOptimizationStage","com.azure.ai.agents.models.AgentOptimizationStageEstimate":"Azure.AI.Projects.AgentOptimizationStageEstimate","com.azure.ai.agents.models.AgentOptimizationTargetCompletionDataSource":"Azure.AI.Projects.AgentOptimizationTargetCompletionDataSource","com.azure.ai.agents.models.AgentOptimizationTargetCompletionDatasetReferenceDataSource":"Azure.AI.Projects.AgentOptimizationTargetCompletionDatasetReferenceDataSource","com.azure.ai.agents.models.AgentOptimizationTargetCompletionEvaluationSet":"Azure.AI.Projects.AgentOptimizationTargetCompletionEvaluationSet","com.azure.ai.agents.models.AgentOptimizationTargetCompletionInlineDataSource":"Azure.AI.Projects.AgentOptimizationTargetCompletionInlineDataSource","com.azure.ai.agents.models.AgentOptimizationTargetCompletionTestCase":"Azure.AI.Projects.AgentOptimizationTargetCompletionTestCase","com.azure.ai.agents.models.AgentOptimizationTargetConfiguration":"Azure.AI.Projects.AgentOptimizationTargetConfiguration","com.azure.ai.agents.models.AgentOptimizationTargetConfigurationType":"Azure.AI.Projects.AgentOptimizationTargetConfigurationType","com.azure.ai.agents.models.AgentOptimizationTerminationReason":"Azure.AI.Projects.AgentOptimizationTerminationReason","com.azure.ai.agents.models.AgentOptimizationToolsMutation":"Azure.AI.Projects.AgentOptimizationToolsMutation","com.azure.ai.agents.models.AgentOptimizationUserConversationSimulationDataSource":"Azure.AI.Projects.AgentOptimizationUserConversationSimulationDataSource","com.azure.ai.agents.models.AgentOptimizationUserConversationSimulationDatasetReferenceDataSource":"Azure.AI.Projects.AgentOptimizationUserConversationSimulationDatasetReferenceDataSource","com.azure.ai.agents.models.AgentOptimizationUserConversationSimulationEvaluationSet":"Azure.AI.Projects.AgentOptimizationUserConversationSimulationEvaluationSet","com.azure.ai.agents.models.AgentOptimizationUserConversationSimulationInlineDataSource":"Azure.AI.Projects.AgentOptimizationUserConversationSimulationInlineDataSource","com.azure.ai.agents.models.AgentReference":"Azure.AI.Projects.AgentReference","com.azure.ai.agents.models.AgentSessionResource":"Azure.AI.Projects.AgentSessionResource","com.azure.ai.agents.models.AgentSessionStatus":"Azure.AI.Projects.AgentSessionStatus","com.azure.ai.agents.models.AgentState":"Azure.AI.Projects.AgentState","com.azure.ai.agents.models.AgentStateSource":"Azure.AI.Projects.AgentStateSource","com.azure.ai.agents.models.AgentVersionDetails":"Azure.AI.Projects.AgentVersionObject","com.azure.ai.agents.models.AgentVersionStatus":"Azure.AI.Projects.AgentVersionStatus","com.azure.ai.agents.models.ApiError":"OpenAI.Error","com.azure.ai.agents.models.ApplyPatchToolParameter":"OpenAI.ApplyPatchToolParam","com.azure.ai.agents.models.ApproximateLocation":"OpenAI.ApproximateLocation","com.azure.ai.agents.models.AudioTranscription":"OpenAI.AudioTranscription","com.azure.ai.agents.models.AudioTranscriptionModel":"OpenAI.AudioTranscription.model.anonymous","com.azure.ai.agents.models.AutoCodeInterpreterToolParameter":"OpenAI.AutoCodeInterpreterToolParam","com.azure.ai.agents.models.AzureAISearchQueryType":"Azure.AI.Projects.AzureAISearchQueryType","com.azure.ai.agents.models.AzureAISearchTool":"Azure.AI.Projects.AzureAISearchTool","com.azure.ai.agents.models.AzureAISearchToolCall":"Azure.AI.Projects.AzureAISearchToolCall","com.azure.ai.agents.models.AzureAISearchToolCallOutput":"Azure.AI.Projects.AzureAISearchToolCallOutput","com.azure.ai.agents.models.AzureAISearchToolResource":"Azure.AI.Projects.AzureAISearchToolResource","com.azure.ai.agents.models.AzureAISearchToolboxTool":"Azure.AI.Projects.AzureAISearchToolboxTool","com.azure.ai.agents.models.AzureCreateResponseDetails":"Azure.AI.Projects.AzureCreateResponseDetails","com.azure.ai.agents.models.AzureCreateResponseOptions":"Azure.AI.Projects.AzureCreateResponseOptions","com.azure.ai.agents.models.AzureFunctionBinding":"Azure.AI.Projects.AzureFunctionBinding","com.azure.ai.agents.models.AzureFunctionDefinition":"Azure.AI.Projects.AzureFunctionDefinition","com.azure.ai.agents.models.AzureFunctionDefinitionDetails":"Azure.AI.Projects.AzureFunctionDefinition.function.anonymous","com.azure.ai.agents.models.AzureFunctionStorageQueue":"Azure.AI.Projects.AzureFunctionStorageQueue","com.azure.ai.agents.models.AzureFunctionTool":"Azure.AI.Projects.AzureFunctionTool","com.azure.ai.agents.models.AzureFunctionToolCall":"Azure.AI.Projects.AzureFunctionToolCall","com.azure.ai.agents.models.AzureFunctionToolCallOutput":"Azure.AI.Projects.AzureFunctionToolCallOutput","com.azure.ai.agents.models.AzureUserSecurityContext":"Azure.AI.Projects.AzureUserSecurityContext","com.azure.ai.agents.models.BingCustomSearchConfiguration":"Azure.AI.Projects.BingCustomSearchConfiguration","com.azure.ai.agents.models.BingCustomSearchPreviewTool":"Azure.AI.Projects.BingCustomSearchPreviewTool","com.azure.ai.agents.models.BingCustomSearchToolCall":"Azure.AI.Projects.BingCustomSearchToolCall","com.azure.ai.agents.models.BingCustomSearchToolCallOutput":"Azure.AI.Projects.BingCustomSearchToolCallOutput","com.azure.ai.agents.models.BingCustomSearchToolParameters":"Azure.AI.Projects.BingCustomSearchToolParameters","com.azure.ai.agents.models.BingGroundingSearchConfiguration":"Azure.AI.Projects.BingGroundingSearchConfiguration","com.azure.ai.agents.models.BingGroundingSearchToolParameters":"Azure.AI.Projects.BingGroundingSearchToolParameters","com.azure.ai.agents.models.BingGroundingTool":"Azure.AI.Projects.BingGroundingTool","com.azure.ai.agents.models.BingGroundingToolCall":"Azure.AI.Projects.BingGroundingToolCall","com.azure.ai.agents.models.BingGroundingToolCallOutput":"Azure.AI.Projects.BingGroundingToolCallOutput","com.azure.ai.agents.models.BotServiceAuthorizationScheme":"Azure.AI.Projects.BotServiceAuthorizationScheme","com.azure.ai.agents.models.BotServiceRbacAuthorizationScheme":"Azure.AI.Projects.BotServiceRbacAuthorizationScheme","com.azure.ai.agents.models.BotServiceTenantAuthorizationScheme":"Azure.AI.Projects.BotServiceTenantAuthorizationScheme","com.azure.ai.agents.models.BrowserAutomationPreviewTool":"Azure.AI.Projects.BrowserAutomationPreviewTool","com.azure.ai.agents.models.BrowserAutomationPreviewToolboxTool":"Azure.AI.Projects.BrowserAutomationPreviewToolboxTool","com.azure.ai.agents.models.BrowserAutomationTool":"Azure.AI.Projects.BrowserAutomationTool","com.azure.ai.agents.models.BrowserAutomationToolCall":"Azure.AI.Projects.BrowserAutomationToolCall","com.azure.ai.agents.models.BrowserAutomationToolCallOutput":"Azure.AI.Projects.BrowserAutomationToolCallOutput","com.azure.ai.agents.models.BrowserAutomationToolConnectionParameters":"Azure.AI.Projects.BrowserAutomationToolConnectionParameters","com.azure.ai.agents.models.BrowserAutomationToolParameters":"Azure.AI.Projects.BrowserAutomationToolParameters","com.azure.ai.agents.models.BrowserAutomationToolboxTool":"Azure.AI.Projects.BrowserAutomationToolboxTool","com.azure.ai.agents.models.CallableToolAllowedCaller":"OpenAI.CallableToolAllowedCaller","com.azure.ai.agents.models.CaptureStructuredOutputsTool":"Azure.AI.Projects.CaptureStructuredOutputsTool","com.azure.ai.agents.models.ChatSummaryMemoryItem":"Azure.AI.Projects.ChatSummaryMemoryItem","com.azure.ai.agents.models.CodeConfiguration":"Azure.AI.Projects.CodeConfiguration","com.azure.ai.agents.models.CodeDependencyResolution":"Azure.AI.Projects.CodeDependencyResolution","com.azure.ai.agents.models.CodeFileDetails":null,"com.azure.ai.agents.models.CodeInterpreterTool":"OpenAI.CodeInterpreterTool","com.azure.ai.agents.models.CodeInterpreterToolboxTool":"Azure.AI.Projects.CodeInterpreterToolboxTool","com.azure.ai.agents.models.ComputerEnvironment":"ComputerEnvironmentExpandable","com.azure.ai.agents.models.ComputerTool":"OpenAI.ComputerTool","com.azure.ai.agents.models.ComputerUsePreviewTool":"OpenAI.ComputerUsePreviewTool","com.azure.ai.agents.models.ContainerAutoParameter":"OpenAI.ContainerAutoParam","com.azure.ai.agents.models.ContainerConfiguration":"Azure.AI.Projects.ContainerConfiguration","com.azure.ai.agents.models.ContainerMemoryLimit":"ContainerMemoryLimitExpandable","com.azure.ai.agents.models.ContainerNetworkPolicyAllowlistParameter":"OpenAI.ContainerNetworkPolicyAllowlistParam","com.azure.ai.agents.models.ContainerNetworkPolicyDisabledParameter":"OpenAI.ContainerNetworkPolicyDisabledParam","com.azure.ai.agents.models.ContainerNetworkPolicyDomainSecretParameter":"OpenAI.ContainerNetworkPolicyDomainSecretParam","com.azure.ai.agents.models.ContainerNetworkPolicyParamType":"OpenAI.ContainerNetworkPolicyParamType","com.azure.ai.agents.models.ContainerNetworkPolicyParameter":"OpenAI.ContainerNetworkPolicyParam","com.azure.ai.agents.models.ContainerSkill":"OpenAI.ContainerSkill","com.azure.ai.agents.models.ContainerSkillType":"OpenAI.ContainerSkillType","com.azure.ai.agents.models.CreateAgentVersionFromCodeContent":"Azure.AI.Projects.CreateAgentVersionFromCodeContent","com.azure.ai.agents.models.CreateAgentVersionFromCodeMetadata":"Azure.AI.Projects.CreateAgentVersionFromCodeMetadata","com.azure.ai.agents.models.CreateAgentVersionInput":"Azure.AI.Projects.CreateAgentVersionRequest","com.azure.ai.agents.models.CreateAgentVersionOptions":null,"com.azure.ai.agents.models.CreateTeamsPhoneExtensionTelephonyBindingInput":"Azure.AI.Projects.CreateTeamsPhoneExtensionTelephonyBindingRequest","com.azure.ai.agents.models.CreateTelephonyBindingInput":"Azure.AI.Projects.CreateTelephonyBindingRequest","com.azure.ai.agents.models.CreateTelephonyCallJobInput":"Azure.AI.Projects.CreateTelephonyCallJobRequest","com.azure.ai.agents.models.CreateTwilioTelephonyBindingInput":"Azure.AI.Projects.CreateTwilioTelephonyBindingRequest","com.azure.ai.agents.models.CustomGrammarFormatParameter":"OpenAI.CustomGrammarFormatParam","com.azure.ai.agents.models.CustomTextFormatParameter":"OpenAI.CustomTextFormatParam","com.azure.ai.agents.models.CustomToolParamFormat":"OpenAI.CustomToolParamFormat","com.azure.ai.agents.models.CustomToolParamFormatType":"OpenAI.CustomToolParamFormatType","com.azure.ai.agents.models.CustomToolParameter":"OpenAI.CustomToolParam","com.azure.ai.agents.models.DigitalWorkerType":"Azure.AI.Projects.DigitalWorkerType","com.azure.ai.agents.models.EntraAuthorizationScheme":"Azure.AI.Projects.EntraAuthorizationScheme","com.azure.ai.agents.models.EvaluationAzureStandardVoiceModelConfiguration":"Azure.AI.Projects.EvaluationAzureStandardVoiceModelConfiguration","com.azure.ai.agents.models.EvaluationModelConfiguration":"Azure.AI.Projects.EvaluationModelConfiguration","com.azure.ai.agents.models.EvaluationVoiceModelConfiguration":"Azure.AI.Projects.EvaluationVoiceModelConfiguration","com.azure.ai.agents.models.ExternalAgentDefinition":"Azure.AI.Projects.ExternalAgentDefinition","com.azure.ai.agents.models.FabricDataAgentToolCall":"Azure.AI.Projects.FabricDataAgentToolCall","com.azure.ai.agents.models.FabricDataAgentToolCallOutput":"Azure.AI.Projects.FabricDataAgentToolCallOutput","com.azure.ai.agents.models.FabricDataAgentToolParameters":"Azure.AI.Projects.FabricDataAgentToolParameters","com.azure.ai.agents.models.FabricIqPreviewTool":"Azure.AI.Projects.FabricIQPreviewTool","com.azure.ai.agents.models.FabricIqPreviewToolboxTool":"Azure.AI.Projects.FabricIQPreviewToolboxTool","com.azure.ai.agents.models.FileSearchTool":"OpenAI.FileSearchTool","com.azure.ai.agents.models.FileSearchToolboxTool":"Azure.AI.Projects.FileSearchToolboxTool","com.azure.ai.agents.models.FixedRatioVersionSelectionRule":"Azure.AI.Projects.FixedRatioVersionSelectionRule","com.azure.ai.agents.models.FunctionShellToolParamEnvironment":"OpenAI.FunctionShellToolParamEnvironment","com.azure.ai.agents.models.FunctionShellToolParamEnvironmentType":"OpenAI.FunctionShellToolParamEnvironmentType","com.azure.ai.agents.models.FunctionShellToolParameter":"OpenAI.FunctionShellToolParam","com.azure.ai.agents.models.FunctionShellToolParameterEnvironmentContainerReferenceParameter":"OpenAI.FunctionShellToolParamEnvironmentContainerReferenceParam","com.azure.ai.agents.models.FunctionShellToolParameterEnvironmentLocalEnvironmentParameter":"OpenAI.FunctionShellToolParamEnvironmentLocalEnvironmentParam","com.azure.ai.agents.models.FunctionTool":"OpenAI.FunctionTool","com.azure.ai.agents.models.GetMicrosoft365AppPackageOptions":null,"com.azure.ai.agents.models.GitHubCopilotBuiltInTool":"Azure.AI.Projects.GitHubCopilotBuiltInTool","com.azure.ai.agents.models.GitHubCopilotHarness":"Azure.AI.Projects.GitHubCopilotHarness","com.azure.ai.agents.models.GitHubCopilotToolsetConfig":"Azure.AI.Projects.GitHubCopilotToolsetConfig","com.azure.ai.agents.models.GitHubCopilotToolsetDefaultConfig":"Azure.AI.Projects.GitHubCopilotToolsetDefaultConfig","com.azure.ai.agents.models.GitHubCopilotToolsetPreview":"Azure.AI.Projects.GitHubCopilotToolsetPreview","com.azure.ai.agents.models.GrammarSyntax":"GrammarSyntaxExpandable","com.azure.ai.agents.models.HeaderTelemetryEndpointAuth":"Azure.AI.Projects.HeaderTelemetryEndpointAuth","com.azure.ai.agents.models.HostedAgentDefinition":"Azure.AI.Projects.HostedAgentDefinition","com.azure.ai.agents.models.HybridSearchOptions":"OpenAI.HybridSearchOptions","com.azure.ai.agents.models.ImageGenActionEnum":"ImageGenActionEnumExpandable","com.azure.ai.agents.models.ImageGenTool":"OpenAI.ImageGenTool","com.azure.ai.agents.models.ImageGenToolBackground":"ImageGenToolBackgroundExpandable","com.azure.ai.agents.models.ImageGenToolInputImageMask":"OpenAI.ImageGenToolInputImageMask","com.azure.ai.agents.models.ImageGenToolModel":"OpenAI.ImageGenTool.model.anonymous","com.azure.ai.agents.models.ImageGenToolModeration":"ImageGenToolModerationExpandable","com.azure.ai.agents.models.ImageGenToolOutputFormat":"ImageGenToolOutputFormatExpandable","com.azure.ai.agents.models.ImageGenToolQuality":"ImageGenToolQualityExpandable","com.azure.ai.agents.models.ImageGenToolSize":"ImageGenToolSizeExpandable","com.azure.ai.agents.models.IncludeEnum":"OpenAI.IncludeEnum","com.azure.ai.agents.models.InlineSkillParameter":"OpenAI.InlineSkillParam","com.azure.ai.agents.models.InlineSkillSourceParameter":"OpenAI.InlineSkillSourceParam","com.azure.ai.agents.models.InputFidelity":"InputFidelityExpandable","com.azure.ai.agents.models.InvocationsProtocolConfiguration":"Azure.AI.Projects.InvocationsProtocolConfiguration","com.azure.ai.agents.models.InvocationsWsProtocolConfiguration":"Azure.AI.Projects.InvocationsWsProtocolConfiguration","com.azure.ai.agents.models.JobStatus":"Azure.AI.Projects.JobStatus","com.azure.ai.agents.models.ListMemoriesOptions":null,"com.azure.ai.agents.models.LocalShellToolParameter":"OpenAI.LocalShellToolParam","com.azure.ai.agents.models.LocalSkillParameter":"OpenAI.LocalSkillParam","com.azure.ai.agents.models.ManagedAgentIdentityBlueprintReference":"Azure.AI.Projects.ManagedAgentIdentityBlueprintReference","com.azure.ai.agents.models.McpListToolsTool":"OpenAI.MCPListToolsTool","com.azure.ai.agents.models.McpListToolsToolAnnotations":"OpenAI.MCPListToolsToolAnnotations","com.azure.ai.agents.models.McpListToolsToolInputSchema":"OpenAI.MCPListToolsToolInputSchema","com.azure.ai.agents.models.McpProtocolConfiguration":"Azure.AI.Projects.McpProtocolConfiguration","com.azure.ai.agents.models.McpTool":"OpenAI.MCPTool","com.azure.ai.agents.models.McpToolConnectorId":"McpToolConnectorIdExpandable","com.azure.ai.agents.models.McpToolFilter":"OpenAI.MCPToolFilter","com.azure.ai.agents.models.McpToolRequireApproval":"OpenAI.MCPToolRequireApproval","com.azure.ai.agents.models.McpToolboxTool":"Azure.AI.Projects.MCPToolboxTool","com.azure.ai.agents.models.MemoryCommandToolCall":"Azure.AI.Projects.MemoryCommandToolCall","com.azure.ai.agents.models.MemoryCommandToolCallOutput":"Azure.AI.Projects.MemoryCommandToolCallOutput","com.azure.ai.agents.models.MemoryItem":"Azure.AI.Projects.MemoryItem","com.azure.ai.agents.models.MemoryItemKind":"Azure.AI.Projects.MemoryItemKind","com.azure.ai.agents.models.MemoryOperation":"Azure.AI.Projects.MemoryOperation","com.azure.ai.agents.models.MemoryOperationKind":"Azure.AI.Projects.MemoryOperationKind","com.azure.ai.agents.models.MemorySearchItem":"Azure.AI.Projects.MemorySearchItem","com.azure.ai.agents.models.MemorySearchOptions":"Azure.AI.Projects.MemorySearchOptions","com.azure.ai.agents.models.MemorySearchPreviewTool":"Azure.AI.Projects.MemorySearchPreviewTool","com.azure.ai.agents.models.MemorySearchToolCall":"Azure.AI.Projects.MemorySearchToolCall","com.azure.ai.agents.models.MemoryStoreDefaultDefinition":"Azure.AI.Projects.MemoryStoreDefaultDefinition","com.azure.ai.agents.models.MemoryStoreDefaultOptions":"Azure.AI.Projects.MemoryStoreDefaultOptions","com.azure.ai.agents.models.MemoryStoreDefinition":"Azure.AI.Projects.MemoryStoreDefinition","com.azure.ai.agents.models.MemoryStoreDetails":"Azure.AI.Projects.MemoryStoreObject","com.azure.ai.agents.models.MemoryStoreKind":"Azure.AI.Projects.MemoryStoreKind","com.azure.ai.agents.models.MemoryStoreObjectType":"Azure.AI.Projects.MemoryStoreObjectType","com.azure.ai.agents.models.MemoryStoreOperationUsage":"Azure.AI.Projects.MemoryStoreOperationUsage","com.azure.ai.agents.models.MemoryStoreSearchResponse":"Azure.AI.Projects.MemoryStoreSearchResponse","com.azure.ai.agents.models.MemoryStoreUpdateCompletedResult":"Azure.AI.Projects.MemoryStoreUpdateCompletedResult","com.azure.ai.agents.models.MemoryStoreUpdateResponse":"Azure.AI.Projects.MemoryStoreUpdateResponse","com.azure.ai.agents.models.MemoryStoreUpdateStatus":"Azure.AI.Projects.MemoryStoreUpdateStatus","com.azure.ai.agents.models.Microsoft365PermissionScopes":"Azure.AI.Projects.Microsoft365PermissionScopes","com.azure.ai.agents.models.Microsoft365PublishDefaults":"Azure.AI.Projects.Microsoft365PublishDefaults","com.azure.ai.agents.models.Microsoft365PublishResult":"Azure.AI.Projects.Microsoft365PublishResponse","com.azure.ai.agents.models.Microsoft365PublishScope":"Azure.AI.Projects.Microsoft365PublishScope","com.azure.ai.agents.models.MicrosoftFabricPreviewTool":"Azure.AI.Projects.MicrosoftFabricPreviewTool","com.azure.ai.agents.models.ModelRouterAttempt":"Azure.AI.Projects.ModelRouterAttempt","com.azure.ai.agents.models.ModelRouterAttemptError":"Azure.AI.Projects.ModelRouterAttemptError","com.azure.ai.agents.models.ModelRouterAttemptResult":"Azure.AI.Projects.ModelRouterAttemptResult","com.azure.ai.agents.models.ModelRouterDetails":"Azure.AI.Projects.ModelRouterDetails","com.azure.ai.agents.models.ModelRouterMode":"Azure.AI.Projects.ModelRouterMode","com.azure.ai.agents.models.ModelSamplingParameters":"Azure.AI.Projects.ModelSamplingParams","com.azure.ai.agents.models.ModelSelectionDetails":"Azure.AI.Projects.ModelSelectionDetails","com.azure.ai.agents.models.NamespaceTool":"OpenAI.NamespaceToolParam","com.azure.ai.agents.models.OpenApiAnonymousAuthDetails":"Azure.AI.Projects.OpenApiAnonymousAuthDetails","com.azure.ai.agents.models.OpenApiAuthDetails":"Azure.AI.Projects.OpenApiAuthDetails","com.azure.ai.agents.models.OpenApiAuthType":"Azure.AI.Projects.OpenApiAuthType","com.azure.ai.agents.models.OpenApiFunctionDefinition":"Azure.AI.Projects.OpenApiFunctionDefinition","com.azure.ai.agents.models.OpenApiFunctionDefinitionFunction":"Azure.AI.Projects.OpenApiFunctionDefinition.function.anonymous","com.azure.ai.agents.models.OpenApiManagedAuthDetails":"Azure.AI.Projects.OpenApiManagedAuthDetails","com.azure.ai.agents.models.OpenApiManagedSecurityScheme":"Azure.AI.Projects.OpenApiManagedSecurityScheme","com.azure.ai.agents.models.OpenApiProjectConnectionAuthDetails":"Azure.AI.Projects.OpenApiProjectConnectionAuthDetails","com.azure.ai.agents.models.OpenApiProjectConnectionSecurityScheme":"Azure.AI.Projects.OpenApiProjectConnectionSecurityScheme","com.azure.ai.agents.models.OpenApiTool":"Azure.AI.Projects.OpenApiTool","com.azure.ai.agents.models.OpenApiToolCall":"Azure.AI.Projects.OpenApiToolCall","com.azure.ai.agents.models.OpenApiToolCallOutput":"Azure.AI.Projects.OpenApiToolCallOutput","com.azure.ai.agents.models.OpenApiToolboxTool":"Azure.AI.Projects.OpenApiToolboxTool","com.azure.ai.agents.models.OptimizationContext":"Azure.AI.Projects.OptimizationContext","com.azure.ai.agents.models.OptimizationContextType":"Azure.AI.Projects.OptimizationContextType","com.azure.ai.agents.models.OtlpTelemetryEndpoint":"Azure.AI.Projects.OtlpTelemetryEndpoint","com.azure.ai.agents.models.PageOrder":"Azure.AI.Projects.PageOrder","com.azure.ai.agents.models.ProceduralMemoryItem":"Azure.AI.Projects.ProceduralMemoryItem","com.azure.ai.agents.models.ProgrammaticToolCallingParameter":"OpenAI.ProgrammaticToolCallingParam","com.azure.ai.agents.models.PromptAgentDefinition":"Azure.AI.Projects.PromptAgentDefinition","com.azure.ai.agents.models.PromptAgentDefinitionTextOptions":"Azure.AI.Projects.PromptAgentDefinitionTextOptions","com.azure.ai.agents.models.PromptOptimizationConfiguration":"Azure.AI.Projects.PromptOptimizationConfiguration","com.azure.ai.agents.models.ProtocolConfiguration":"Azure.AI.Projects.ProtocolConfiguration","com.azure.ai.agents.models.ProtocolVersionRecord":"Azure.AI.Projects.ProtocolVersionRecord","com.azure.ai.agents.models.PstnTelephonyTransferDestination":"Azure.AI.Projects.PSTNTelephonyTransferDestination","com.azure.ai.agents.models.PublishAgentToMicrosoft365Options":null,"com.azure.ai.agents.models.PublishApprovalStatus":"Azure.AI.Projects.PublishApprovalStatus","com.azure.ai.agents.models.RaiConfig":"Azure.AI.Projects.RaiConfig","com.azure.ai.agents.models.RaiInvocationContentType":"Azure.AI.Projects.RaiInvocationContentType","com.azure.ai.agents.models.RaiInvocationModeration":"Azure.AI.Projects.RaiInvocationModeration","com.azure.ai.agents.models.RaiInvocationResponseMode":"Azure.AI.Projects.RaiInvocationMode","com.azure.ai.agents.models.RaiSseTextSelector":"Azure.AI.Projects.RaiSseTextSelector","com.azure.ai.agents.models.RankerVersionType":"RankerVersionTypeExpandable","com.azure.ai.agents.models.RankingOptions":"OpenAI.RankingOptions","com.azure.ai.agents.models.RealtimeAudioFormat":"OpenAI.RealtimeAudioFormats","com.azure.ai.agents.models.RealtimeAudioFormatType":"OpenAI.RealtimeAudioFormatsType","com.azure.ai.agents.models.RealtimeClientEvent":"OpenAI.RealtimeClientEvent","com.azure.ai.agents.models.RealtimeClientEventType":"OpenAI.RealtimeClientEventType","com.azure.ai.agents.models.RealtimeConversationCreatedEvent":"OpenAI.RealtimeServerEventConversationCreated","com.azure.ai.agents.models.RealtimeConversationItem":"OpenAI.RealtimeConversationItem","com.azure.ai.agents.models.RealtimeConversationItemAddedEvent":"OpenAI.RealtimeServerEventConversationItemAdded","com.azure.ai.agents.models.RealtimeConversationItemAssistantMessage":"OpenAI.RealtimeConversationItemMessageAssistant","com.azure.ai.agents.models.RealtimeConversationItemCreateEvent":"OpenAI.RealtimeClientEventConversationItemCreate","com.azure.ai.agents.models.RealtimeConversationItemCreatedEvent":"OpenAI.RealtimeServerEventConversationItemCreated","com.azure.ai.agents.models.RealtimeConversationItemDeleteEvent":"OpenAI.RealtimeClientEventConversationItemDelete","com.azure.ai.agents.models.RealtimeConversationItemDeletedEvent":"OpenAI.RealtimeServerEventConversationItemDeleted","com.azure.ai.agents.models.RealtimeConversationItemDoneEvent":"OpenAI.RealtimeServerEventConversationItemDone","com.azure.ai.agents.models.RealtimeConversationItemFunctionCall":"OpenAI.RealtimeConversationItemFunctionCall","com.azure.ai.agents.models.RealtimeConversationItemFunctionCallOutput":"OpenAI.RealtimeConversationItemFunctionCallOutput","com.azure.ai.agents.models.RealtimeConversationItemInputAudioTranscriptionCompletedEvent":"OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionCompleted","com.azure.ai.agents.models.RealtimeConversationItemInputAudioTranscriptionDeltaEvent":"OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionDelta","com.azure.ai.agents.models.RealtimeConversationItemInputAudioTranscriptionFailedEvent":"OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionFailed","com.azure.ai.agents.models.RealtimeConversationItemInputAudioTranscriptionSegmentEvent":"OpenAI.RealtimeServerEventConversationItemInputAudioTranscriptionSegment","com.azure.ai.agents.models.RealtimeConversationItemMessage":"OpenAI.RealtimeConversationItemMessage","com.azure.ai.agents.models.RealtimeConversationItemMessageType":"OpenAI.RealtimeConversationItemMessageType","com.azure.ai.agents.models.RealtimeConversationItemObjectType":"RealtimeConversationItemObject","com.azure.ai.agents.models.RealtimeConversationItemRetrieveEvent":"OpenAI.RealtimeClientEventConversationItemRetrieve","com.azure.ai.agents.models.RealtimeConversationItemRetrievedEvent":"OpenAI.RealtimeServerEventConversationItemRetrieved","com.azure.ai.agents.models.RealtimeConversationItemSystemMessage":"OpenAI.RealtimeConversationItemMessageSystem","com.azure.ai.agents.models.RealtimeConversationItemTruncateEvent":"OpenAI.RealtimeClientEventConversationItemTruncate","com.azure.ai.agents.models.RealtimeConversationItemTruncatedEvent":"OpenAI.RealtimeServerEventConversationItemTruncated","com.azure.ai.agents.models.RealtimeConversationItemType":"OpenAI.RealtimeConversationItemType","com.azure.ai.agents.models.RealtimeConversationItemUserMessage":"OpenAI.RealtimeConversationItemMessageUser","com.azure.ai.agents.models.RealtimeErrorEvent":"OpenAI.RealtimeServerEventRealtimeServerEventError","com.azure.ai.agents.models.RealtimeInputAudioBufferAppendEvent":"OpenAI.RealtimeClientEventInputAudioBufferAppend","com.azure.ai.agents.models.RealtimeInputAudioBufferClearEvent":"OpenAI.RealtimeClientEventInputAudioBufferClear","com.azure.ai.agents.models.RealtimeInputAudioBufferClearedEvent":"OpenAI.RealtimeServerEventInputAudioBufferCleared","com.azure.ai.agents.models.RealtimeInputAudioBufferCommitEvent":"OpenAI.RealtimeClientEventInputAudioBufferCommit","com.azure.ai.agents.models.RealtimeInputAudioBufferCommittedEvent":"OpenAI.RealtimeServerEventInputAudioBufferCommitted","com.azure.ai.agents.models.RealtimeInputAudioBufferDtmfReceivedEvent":"OpenAI.RealtimeServerEventInputAudioBufferDtmfEventReceived","com.azure.ai.agents.models.RealtimeInputAudioBufferSpeechStartedEvent":"OpenAI.RealtimeServerEventInputAudioBufferSpeechStarted","com.azure.ai.agents.models.RealtimeInputAudioBufferSpeechStoppedEvent":"OpenAI.RealtimeServerEventInputAudioBufferSpeechStopped","com.azure.ai.agents.models.RealtimeInputAudioBufferTimeoutTriggeredEvent":"OpenAI.RealtimeServerEventInputAudioBufferTimeoutTriggered","com.azure.ai.agents.models.RealtimeMcpApprovalInput":"OpenAI.RealtimeMCPApprovalRequest","com.azure.ai.agents.models.RealtimeMcpApprovalOutput":"OpenAI.RealtimeMCPApprovalResponse","com.azure.ai.agents.models.RealtimeMcpError":"OpenAI.RealtimeMCPError","com.azure.ai.agents.models.RealtimeMcpErrorType":"OpenAI.RealtimeMcpErrorType","com.azure.ai.agents.models.RealtimeMcpHttpError":"OpenAI.RealtimeMCPHTTPError","com.azure.ai.agents.models.RealtimeMcpListTools":"OpenAI.RealtimeMCPListTools","com.azure.ai.agents.models.RealtimeMcpListToolsCompletedEvent":"OpenAI.RealtimeServerEventMCPListToolsCompleted","com.azure.ai.agents.models.RealtimeMcpListToolsFailedEvent":"OpenAI.RealtimeServerEventMCPListToolsFailed","com.azure.ai.agents.models.RealtimeMcpListToolsInProgressEvent":"OpenAI.RealtimeServerEventMCPListToolsInProgress","com.azure.ai.agents.models.RealtimeMcpProtocolError":"OpenAI.RealtimeMCPProtocolError","com.azure.ai.agents.models.RealtimeMcpToolCall":"OpenAI.RealtimeMCPToolCall","com.azure.ai.agents.models.RealtimeMcpToolExecutionError":"OpenAI.RealtimeMCPToolExecutionError","com.azure.ai.agents.models.RealtimeOutputAudioBufferClearEvent":"OpenAI.RealtimeClientEventOutputAudioBufferClear","com.azure.ai.agents.models.RealtimeOutputAudioBufferClearedEvent":"OpenAI.RealtimeServerEventOutputAudioBufferCleared","com.azure.ai.agents.models.RealtimeOutputAudioBufferStartedEvent":"OpenAI.RealtimeServerEventOutputAudioBufferStarted","com.azure.ai.agents.models.RealtimeOutputAudioBufferStoppedEvent":"OpenAI.RealtimeServerEventOutputAudioBufferStopped","com.azure.ai.agents.models.RealtimePcmAudioFormat":"OpenAI.RealtimeAudioFormatsAudioPcm","com.azure.ai.agents.models.RealtimePcmaAudioFormat":"OpenAI.RealtimeAudioFormatsAudioPcma","com.azure.ai.agents.models.RealtimePcmuAudioFormat":"OpenAI.RealtimeAudioFormatsAudioPcmu","com.azure.ai.agents.models.RealtimeRateLimitsUpdatedEvent":"OpenAI.RealtimeServerEventRateLimitsUpdated","com.azure.ai.agents.models.RealtimeResponseAudioDeltaEvent":"OpenAI.RealtimeServerEventResponseAudioDelta","com.azure.ai.agents.models.RealtimeResponseAudioDoneEvent":"OpenAI.RealtimeServerEventResponseAudioDone","com.azure.ai.agents.models.RealtimeResponseAudioTranscriptDeltaEvent":"OpenAI.RealtimeServerEventResponseAudioTranscriptDelta","com.azure.ai.agents.models.RealtimeResponseAudioTranscriptDoneEvent":"OpenAI.RealtimeServerEventResponseAudioTranscriptDone","com.azure.ai.agents.models.RealtimeResponseCancelEvent":"OpenAI.RealtimeClientEventResponseCancel","com.azure.ai.agents.models.RealtimeResponseContentPart":"OpenAI.RealtimeServerEventResponseContentPartDonePart","com.azure.ai.agents.models.RealtimeResponseContentPartAddedEvent":"OpenAI.RealtimeServerEventResponseContentPartAdded","com.azure.ai.agents.models.RealtimeResponseContentPartDoneEvent":"OpenAI.RealtimeServerEventResponseContentPartDone","com.azure.ai.agents.models.RealtimeResponseCreateEvent":"OpenAI.RealtimeClientEventResponseCreate","com.azure.ai.agents.models.RealtimeResponseCreatedEvent":"OpenAI.RealtimeServerEventResponseCreated","com.azure.ai.agents.models.RealtimeResponseDoneEvent":"OpenAI.RealtimeServerEventResponseDone","com.azure.ai.agents.models.RealtimeResponseFunctionCallArgumentsDeltaEvent":"OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDelta","com.azure.ai.agents.models.RealtimeResponseFunctionCallArgumentsDoneEvent":"OpenAI.RealtimeServerEventResponseFunctionCallArgumentsDone","com.azure.ai.agents.models.RealtimeResponseMcpCallArgumentsDeltaEvent":"OpenAI.RealtimeServerEventResponseMCPCallArgumentsDelta","com.azure.ai.agents.models.RealtimeResponseMcpCallArgumentsDoneEvent":"OpenAI.RealtimeServerEventResponseMCPCallArgumentsDone","com.azure.ai.agents.models.RealtimeResponseMcpCallCompletedEvent":"OpenAI.RealtimeServerEventResponseMCPCallCompleted","com.azure.ai.agents.models.RealtimeResponseMcpCallFailedEvent":"OpenAI.RealtimeServerEventResponseMCPCallFailed","com.azure.ai.agents.models.RealtimeResponseMcpCallInProgressEvent":"OpenAI.RealtimeServerEventResponseMCPCallInProgress","com.azure.ai.agents.models.RealtimeResponseOutputItemAddedEvent":"OpenAI.RealtimeServerEventResponseOutputItemAdded","com.azure.ai.agents.models.RealtimeResponseOutputItemDoneEvent":"OpenAI.RealtimeServerEventResponseOutputItemDone","com.azure.ai.agents.models.RealtimeResponseTextDeltaEvent":"OpenAI.RealtimeServerEventResponseTextDelta","com.azure.ai.agents.models.RealtimeResponseTextDoneEvent":"OpenAI.RealtimeServerEventResponseTextDone","com.azure.ai.agents.models.RealtimeSemanticVadTurnDetection":"OpenAI.RealtimeTurnDetectionSemanticVad","com.azure.ai.agents.models.RealtimeServerEvent":"OpenAI.RealtimeServerEvent","com.azure.ai.agents.models.RealtimeServerEventType":"OpenAI.RealtimeServerEventType","com.azure.ai.agents.models.RealtimeServerVadTurnDetection":"OpenAI.RealtimeTurnDetectionServerVad","com.azure.ai.agents.models.RealtimeSessionAudioConfiguration":"OpenAI.RealtimeSessionCreateRequestGAAudio","com.azure.ai.agents.models.RealtimeSessionAudioInput":"OpenAI.RealtimeSessionCreateRequestGAAudioInput","com.azure.ai.agents.models.RealtimeSessionAudioOutput":"OpenAI.RealtimeSessionCreateRequestGAAudioOutput","com.azure.ai.agents.models.RealtimeSessionConfiguration":"OpenAI.RealtimeSessionCreateRequestGA","com.azure.ai.agents.models.RealtimeSessionConfigurationBase":"OpenAI.RealtimeSessionCreateRequestUnion","com.azure.ai.agents.models.RealtimeSessionCreateRequestGAAudioOutputVoice":"OpenAI.RealtimeSessionCreateRequestGAAudioOutput.voice.anonymous","com.azure.ai.agents.models.RealtimeSessionCreatedEvent":"OpenAI.RealtimeServerEventSessionCreated","com.azure.ai.agents.models.RealtimeSessionTracingConfiguration":"OpenAI.RealtimeSessionCreateRequestGATracing","com.azure.ai.agents.models.RealtimeSessionType":"OpenAI.RealtimeSessionCreateRequestUnionType","com.azure.ai.agents.models.RealtimeSessionUpdateEvent":"OpenAI.RealtimeClientEventSessionUpdate","com.azure.ai.agents.models.RealtimeSessionUpdatedEvent":"OpenAI.RealtimeServerEventSessionUpdated","com.azure.ai.agents.models.RealtimeTranscriptionSessionAudioConfiguration":"OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudio","com.azure.ai.agents.models.RealtimeTranscriptionSessionAudioInput":"OpenAI.RealtimeTranscriptionSessionCreateRequestGAAudioInput","com.azure.ai.agents.models.RealtimeTranscriptionSessionConfiguration":"OpenAI.RealtimeTranscriptionSessionCreateRequestGA","com.azure.ai.agents.models.RealtimeTurnDetection":"OpenAI.RealtimeTurnDetection","com.azure.ai.agents.models.RealtimeTurnDetectionType":"OpenAI.RealtimeTurnDetectionType","com.azure.ai.agents.models.ReminderPreviewToolboxTool":"Azure.AI.Projects.ReminderPreviewToolboxTool","com.azure.ai.agents.models.ResponseFormatJsonSchemaInner":"OpenAI.ResponseFormatJsonSchemaSchema","com.azure.ai.agents.models.ResponseUsageInputTokensDetails":"OpenAI.ResponseUsageInputTokensDetails","com.azure.ai.agents.models.ResponseUsageOutputTokensDetails":"OpenAI.ResponseUsageOutputTokensDetails","com.azure.ai.agents.models.ResponsesProtocolConfiguration":"Azure.AI.Projects.ResponsesProtocolConfiguration","com.azure.ai.agents.models.RoutingConfiguration":"Azure.AI.Projects.RoutingConfiguration","com.azure.ai.agents.models.RoutingTraceEntry":"Azure.AI.Projects.RoutingTraceEntry","com.azure.ai.agents.models.SearchContentType":"OpenAI.SearchContentType","com.azure.ai.agents.models.SearchContextSize":"SearchContextSizeExpandable","com.azure.ai.agents.models.SessionAffinityConfiguration":"Azure.AI.Projects.SessionAffinityConfiguration","com.azure.ai.agents.models.SessionAffinityDecision":"Azure.AI.Projects.SessionAffinityDecision","com.azure.ai.agents.models.SessionAffinityDetails":"Azure.AI.Projects.SessionAffinityDetails","com.azure.ai.agents.models.SessionAffinityMode":"Azure.AI.Projects.SessionAffinityMode","com.azure.ai.agents.models.SessionAffinityRequestMode":"Azure.AI.Projects.SessionAffinityRequestMode","com.azure.ai.agents.models.SessionAffinitySource":"Azure.AI.Projects.SessionAffinitySource","com.azure.ai.agents.models.SessionConfiguration":"Azure.AI.Projects.SessionConfiguration","com.azure.ai.agents.models.SessionDirectoryEntry":"Azure.AI.Projects.SessionDirectoryEntry","com.azure.ai.agents.models.SessionFileWriteResult":"Azure.AI.Projects.SessionFileWriteResponse","com.azure.ai.agents.models.SessionLogEvent":"Azure.AI.Projects.SessionLogEvent","com.azure.ai.agents.models.SessionLogEventType":"Azure.AI.Projects.SessionLogEventType","com.azure.ai.agents.models.SharepointGroundingToolCall":"Azure.AI.Projects.SharepointGroundingToolCall","com.azure.ai.agents.models.SharepointGroundingToolCallOutput":"Azure.AI.Projects.SharepointGroundingToolCallOutput","com.azure.ai.agents.models.SharepointGroundingToolParameters":"Azure.AI.Projects.SharepointGroundingToolParameters","com.azure.ai.agents.models.SharepointPreviewTool":"Azure.AI.Projects.SharepointPreviewTool","com.azure.ai.agents.models.ShellToolboxTool":"Azure.AI.Projects.ShellToolboxTool","com.azure.ai.agents.models.SipTelephonyTransferDestination":"Azure.AI.Projects.SipTelephonyTransferDestination","com.azure.ai.agents.models.SkillReference":"Azure.AI.Projects.SkillReference","com.azure.ai.agents.models.SkillReferenceParameter":"OpenAI.SkillReferenceParam","com.azure.ai.agents.models.SteeringPromptOptimizationContext":"Azure.AI.Projects.SteeringPromptOptimizationContext","com.azure.ai.agents.models.StructuredInputDefinition":"Azure.AI.Projects.StructuredInputDefinition","com.azure.ai.agents.models.StructuredOutputDefinition":"Azure.AI.Projects.StructuredOutputDefinition","com.azure.ai.agents.models.TargetAttribute":"Azure.AI.Projects.TargetAttribute","com.azure.ai.agents.models.TeamsPhoneExtensionTelephonyBinding":"Azure.AI.Projects.TeamsPhoneExtensionTelephonyBinding","com.azure.ai.agents.models.TeamsPhoneExtensionTelephonyBindingListItem":"Azure.AI.Projects.TeamsPhoneExtensionTelephonyBindingListItem","com.azure.ai.agents.models.TeamsTelephonyTransferDestination":"Azure.AI.Projects.TeamsTelephonyTransferDestination","com.azure.ai.agents.models.TelemetryConfig":"Azure.AI.Projects.TelemetryConfig","com.azure.ai.agents.models.TelemetryDataKind":"Azure.AI.Projects.TelemetryDataKind","com.azure.ai.agents.models.TelemetryEndpoint":"Azure.AI.Projects.TelemetryEndpoint","com.azure.ai.agents.models.TelemetryEndpointAuth":"Azure.AI.Projects.TelemetryEndpointAuth","com.azure.ai.agents.models.TelemetryEndpointAuthType":"Azure.AI.Projects.TelemetryEndpointAuthType","com.azure.ai.agents.models.TelemetryEndpointKind":"Azure.AI.Projects.TelemetryEndpointKind","com.azure.ai.agents.models.TelemetryTransportProtocol":"Azure.AI.Projects.TelemetryTransportProtocol","com.azure.ai.agents.models.TelephonyBinding":"Azure.AI.Projects.TelephonyBinding","com.azure.ai.agents.models.TelephonyBindingListItem":"Azure.AI.Projects.TelephonyBindingListItem","com.azure.ai.agents.models.TelephonyBindingStatus":"Azure.AI.Projects.TelephonyBindingStatus","com.azure.ai.agents.models.TelephonyCallDurationBasis":"Azure.AI.Projects.TelephonyCallDurationBasis","com.azure.ai.agents.models.TelephonyCallEndReason":"Azure.AI.Projects.TelephonyCallEndReason","com.azure.ai.agents.models.TelephonyCallJob":"Azure.AI.Projects.TelephonyCallJob","com.azure.ai.agents.models.TelephonyCallJobCancellation":"Azure.AI.Projects.TelephonyCallJobCancellation","com.azure.ai.agents.models.TelephonyCallJobSchedule":"Azure.AI.Projects.TelephonyCallJobSchedule","com.azure.ai.agents.models.TelephonyCallJobStatus":"Azure.AI.Projects.TelephonyCallJobStatus","com.azure.ai.agents.models.TelephonyCallJobTerminalReason":"Azure.AI.Projects.TelephonyCallJobTerminalReason","com.azure.ai.agents.models.TelephonyCallLifecycleEvent":"Azure.AI.Projects.TelephonyCallLifecycleEvent","com.azure.ai.agents.models.TelephonyCallLifecycleEventName":"Azure.AI.Projects.TelephonyCallLifecycleEventName","com.azure.ai.agents.models.TelephonyCallLifecycleEventOutcome":"Azure.AI.Projects.TelephonyCallLifecycleEventOutcome","com.azure.ai.agents.models.TelephonyCallLifecycleEventReason":"Azure.AI.Projects.TelephonyCallLifecycleEventReason","com.azure.ai.agents.models.TelephonyCallLifecycleEventSource":"Azure.AI.Projects.TelephonyCallLifecycleEventSource","com.azure.ai.agents.models.TelephonyCallPhase":"Azure.AI.Projects.TelephonyCallPhase","com.azure.ai.agents.models.TelephonyCallRecord":"Azure.AI.Projects.TelephonyCallRecord","com.azure.ai.agents.models.TelephonyCallStatus":"Azure.AI.Projects.TelephonyCallStatus","com.azure.ai.agents.models.TelephonyCallSummary":"Azure.AI.Projects.TelephonyCallSummary","com.azure.ai.agents.models.TelephonyCallTimestampSource":"Azure.AI.Projects.TelephonyCallTimestampSource","com.azure.ai.agents.models.TelephonyCallTiming":"Azure.AI.Projects.TelephonyCallTiming","com.azure.ai.agents.models.TelephonyCallTrace":"Azure.AI.Projects.TelephonyCallTrace","com.azure.ai.agents.models.TelephonyCallTraceMode":"Azure.AI.Projects.TelephonyCallTraceMode","com.azure.ai.agents.models.TelephonyCallTraceStatus":"Azure.AI.Projects.TelephonyCallTraceStatus","com.azure.ai.agents.models.TelephonyOutboundDestination":"Azure.AI.Projects.TelephonyOutboundDestination","com.azure.ai.agents.models.TelephonyOutboundDestinationType":"Azure.AI.Projects.TelephonyOutboundDestinationType","com.azure.ai.agents.models.TelephonyOutboundFixedIntervalRetryPolicy":"Azure.AI.Projects.TelephonyOutboundFixedIntervalRetryPolicy","com.azure.ai.agents.models.TelephonyOutboundRetryPolicy":"Azure.AI.Projects.TelephonyOutboundRetryPolicy","com.azure.ai.agents.models.TelephonyOutboundRetryPolicyType":"Azure.AI.Projects.TelephonyOutboundRetryPolicyType","com.azure.ai.agents.models.TelephonyProvider":"Azure.AI.Projects.TelephonyProvider","com.azure.ai.agents.models.TelephonyTransferDestination":"Azure.AI.Projects.TelephonyTransferDestination","com.azure.ai.agents.models.TelephonyTransferDestinationKind":"Azure.AI.Projects.TelephonyTransferDestinationKind","com.azure.ai.agents.models.TelephonyTransferTarget":"Azure.AI.Projects.TelephonyTransferTarget","com.azure.ai.agents.models.TelephonyTransferTargets":"Azure.AI.Projects.TelephonyTransferTargets","com.azure.ai.agents.models.TextResponseFormatConfiguration":"OpenAI.TextResponseFormatConfiguration","com.azure.ai.agents.models.TextResponseFormatConfigurationResponseFormatJsonObject":"OpenAI.TextResponseFormatConfigurationResponseFormatJsonObject","com.azure.ai.agents.models.TextResponseFormatConfigurationResponseFormatText":"OpenAI.TextResponseFormatConfigurationResponseFormatText","com.azure.ai.agents.models.TextResponseFormatConfigurationType":"OpenAI.TextResponseFormatConfigurationType","com.azure.ai.agents.models.TextResponseFormatJsonSchema":"OpenAI.TextResponseFormatJsonSchema","com.azure.ai.agents.models.Tool":"OpenAI.Tool","com.azure.ai.agents.models.ToolCallStatus":"Azure.AI.Projects.ToolCallStatus","com.azure.ai.agents.models.ToolConfig":"Azure.AI.Projects.ToolConfig","com.azure.ai.agents.models.ToolProjectConnection":"Azure.AI.Projects.ToolProjectConnection","com.azure.ai.agents.models.ToolSearchExecutionType":"OpenAI.ToolSearchExecutionType","com.azure.ai.agents.models.ToolSearchTool":"OpenAI.ToolSearchToolParam","com.azure.ai.agents.models.ToolSearchToolboxTool":"Azure.AI.Projects.ToolSearchToolboxTool","com.azure.ai.agents.models.ToolType":"OpenAI.ToolType","com.azure.ai.agents.models.ToolboxDetails":"Azure.AI.Projects.ToolboxObject","com.azure.ai.agents.models.ToolboxPolicies":"Azure.AI.Projects.ToolboxPolicies","com.azure.ai.agents.models.ToolboxSearchPreviewToolboxTool":"Azure.AI.Projects.ToolboxSearchPreviewToolboxTool","com.azure.ai.agents.models.ToolboxShellContainerAutoEnvironment":"Azure.AI.Projects.ToolboxShellContainerAutoEnvironment","com.azure.ai.agents.models.ToolboxShellContainerReferenceEnvironment":"Azure.AI.Projects.ToolboxShellContainerReferenceEnvironment","com.azure.ai.agents.models.ToolboxShellEnvironment":"Azure.AI.Projects.ToolboxShellEnvironment","com.azure.ai.agents.models.ToolboxShellNetworkPolicy":"Azure.AI.Projects.ToolboxShellNetworkPolicy","com.azure.ai.agents.models.ToolboxShellNetworkPolicyDisabled":"Azure.AI.Projects.ToolboxShellNetworkPolicyDisabled","com.azure.ai.agents.models.ToolboxSkill":"Azure.AI.Projects.ToolboxSkill","com.azure.ai.agents.models.ToolboxSkillReference":"Azure.AI.Projects.ToolboxSkillReference","com.azure.ai.agents.models.ToolboxTool":"Azure.AI.Projects.ToolboxTool","com.azure.ai.agents.models.ToolboxToolType":"Azure.AI.Projects.ToolboxToolType","com.azure.ai.agents.models.ToolboxVersionDetails":"Azure.AI.Projects.ToolboxVersionObject","com.azure.ai.agents.models.ToolboxVersions":"Azure.AI.Projects.ToolboxVersions","com.azure.ai.agents.models.TranscriptTextInputTokenDetails":"OpenAI.TranscriptTextUsageTokensInputTokenDetails","com.azure.ai.agents.models.TranscriptTextUsage":"OpenAI.CreateTranscriptionResponseJsonUsage","com.azure.ai.agents.models.TranscriptTextUsageDuration":"OpenAI.TranscriptTextUsageDuration","com.azure.ai.agents.models.TranscriptTextUsageTokens":"OpenAI.TranscriptTextUsageTokens","com.azure.ai.agents.models.TranscriptTextUsageType":"OpenAI.CreateTranscriptionResponseJsonUsageType","com.azure.ai.agents.models.TranscriptionLanguage":"OpenAI.TranscriptionLanguage","com.azure.ai.agents.models.TwilioTelephonyBinding":"Azure.AI.Projects.TwilioTelephonyBinding","com.azure.ai.agents.models.TwilioTelephonyBindingListItem":"Azure.AI.Projects.TwilioTelephonyBindingListItem","com.azure.ai.agents.models.UpdateAgentDetailsOptions":"Azure.AI.Projects.patchAgentObject.Request.anonymous","com.azure.ai.agents.models.UpdateTelephonyBindingInput":"Azure.AI.Projects.UpdateTelephonyBindingRequest","com.azure.ai.agents.models.UserConversationSimulationAudioEffect":"Azure.AI.Projects.UserConversationSimulationAudioEffect","com.azure.ai.agents.models.UserConversationSimulationAudioEffectsConfiguration":"Azure.AI.Projects.UserConversationSimulationAudioEffectsConfiguration","com.azure.ai.agents.models.UserConversationSimulationConfiguration":"Azure.AI.Projects.UserConversationSimulationConfiguration","com.azure.ai.agents.models.UserConversationSimulationDefaultInterruptionConfiguration":"Azure.AI.Projects.UserConversationSimulationDefaultInterruptionConfiguration","com.azure.ai.agents.models.UserConversationSimulationInterruptionConfiguration":"Azure.AI.Projects.UserConversationSimulationInterruptionConfiguration","com.azure.ai.agents.models.UserConversationSimulationTestCase":"Azure.AI.Projects.UserConversationSimulationTestCase","com.azure.ai.agents.models.UserConversationSimulationUserBehaviorConfiguration":"Azure.AI.Projects.UserConversationSimulationUserBehaviorConfiguration","com.azure.ai.agents.models.UserProfileMemoryItem":"Azure.AI.Projects.UserProfileMemoryItem","com.azure.ai.agents.models.VersionIndicator":"Azure.AI.Projects.VersionIndicator","com.azure.ai.agents.models.VersionIndicatorType":"Azure.AI.Projects.VersionIndicatorType","com.azure.ai.agents.models.VersionRefIndicator":"Azure.AI.Projects.VersionRefIndicator","com.azure.ai.agents.models.VersionSelectionRule":"Azure.AI.Projects.VersionSelectionRule","com.azure.ai.agents.models.VersionSelector":"Azure.AI.Projects.VersionSelector","com.azure.ai.agents.models.VersionSelectorType":"Azure.AI.Projects.VersionSelectorType","com.azure.ai.agents.models.VoiceAgentAnimationConfiguration":"Azure.AI.Projects.VoiceAgentAnimationConfig","com.azure.ai.agents.models.VoiceAgentAnimationOutputType":"Azure.AI.Projects.VoiceAgentAnimationOutputType","com.azure.ai.agents.models.VoiceAgentAudioConfiguration":"Azure.AI.Projects.VoiceAgentAudioConfig","com.azure.ai.agents.models.VoiceAgentAudioInputConfiguration":"Azure.AI.Projects.VoiceAgentAudioInputConfig","com.azure.ai.agents.models.VoiceAgentAudioOutputConfiguration":"Azure.AI.Projects.VoiceAgentAudioOutputConfig","com.azure.ai.agents.models.VoiceAgentAudioTimestampType":"Azure.AI.Projects.VoiceAgentAudioTimestampType","com.azure.ai.agents.models.VoiceAgentAvatarConfiguration":"Azure.AI.Projects.VoiceAgentAvatarConfig","com.azure.ai.agents.models.VoiceAgentAvatarIceServer":"Azure.AI.Projects.VoiceAgentAvatarIceServer","com.azure.ai.agents.models.VoiceAgentAvatarOutputProtocol":"Azure.AI.Projects.VoiceAgentAvatarOutputProtocol","com.azure.ai.agents.models.VoiceAgentAvatarScene":"Azure.AI.Projects.VoiceAgentAvatarScene","com.azure.ai.agents.models.VoiceAgentAvatarType":"Azure.AI.Projects.VoiceAgentAvatarType","com.azure.ai.agents.models.VoiceAgentAvatarVideoBackground":"Azure.AI.Projects.VoiceAgentAvatarVideoBackground","com.azure.ai.agents.models.VoiceAgentAvatarVideoCrop":"Azure.AI.Projects.VoiceAgentAvatarVideoCrop","com.azure.ai.agents.models.VoiceAgentAvatarVideoParameters":"Azure.AI.Projects.VoiceAgentAvatarVideoParams","com.azure.ai.agents.models.VoiceAgentAvatarVideoResolution":"Azure.AI.Projects.VoiceAgentAvatarVideoResolution","com.azure.ai.agents.models.VoiceAgentAzureSemanticVadEnglishTurnDetection":"Azure.AI.Projects.VoiceAgentAzureSemanticVadEnTurnDetection","com.azure.ai.agents.models.VoiceAgentAzureSemanticVadMultilingualTurnDetection":"Azure.AI.Projects.VoiceAgentAzureSemanticVadMultilingualTurnDetection","com.azure.ai.agents.models.VoiceAgentAzureSemanticVadTurnDetection":"Azure.AI.Projects.VoiceAgentAzureSemanticVadTurnDetection","com.azure.ai.agents.models.VoiceAgentDefinition":"Azure.AI.Projects.VoiceAgentDefinition","com.azure.ai.agents.models.VoiceAgentEchoCancellation":"Azure.AI.Projects.VoiceAgentEchoCancellation","com.azure.ai.agents.models.VoiceAgentEchoCancellationReferenceSource":"Azure.AI.Projects.VoiceAgentEchoCancellationReferenceSource","com.azure.ai.agents.models.VoiceAgentEndConversationSystemTool":"Azure.AI.Projects.VoiceAgentEndConversationSystemTool","com.azure.ai.agents.models.VoiceAgentEndOfUtteranceDetection":"Azure.AI.Projects.VoiceAgentEndOfUtteranceDetection","com.azure.ai.agents.models.VoiceAgentEndOfUtteranceDetectionModel":"Azure.AI.Projects.VoiceAgentEndOfUtteranceDetectionModel","com.azure.ai.agents.models.VoiceAgentEndOfUtteranceThresholdLevel":"Azure.AI.Projects.VoiceAgentEndOfUtteranceThresholdLevel","com.azure.ai.agents.models.VoiceAgentFunctionTool":"Azure.AI.Projects.VoiceAgentFunctionTool","com.azure.ai.agents.models.VoiceAgentFunctionToolType1":null,"com.azure.ai.agents.models.VoiceAgentGreetingConfiguration":"Azure.AI.Projects.VoiceAgentGreetingConfig","com.azure.ai.agents.models.VoiceAgentInputTranscription":"Azure.AI.Projects.VoiceAgentInputTranscription","com.azure.ai.agents.models.VoiceAgentInputTranscriptionModel":"Azure.AI.Projects.VoiceAgentInputTranscriptionModel","com.azure.ai.agents.models.VoiceAgentInterimResponseConfiguration":"Azure.AI.Projects.VoiceAgentInterimResponseConfig","com.azure.ai.agents.models.VoiceAgentInterimResponseTrigger":"Azure.AI.Projects.VoiceAgentInterimResponseTrigger","com.azure.ai.agents.models.VoiceAgentLlmGeneratedGreetingConfiguration":"Azure.AI.Projects.VoiceAgentLlmGeneratedGreetingConfig","com.azure.ai.agents.models.VoiceAgentLlmInterimResponseConfiguration":"Azure.AI.Projects.VoiceAgentLlmInterimResponseConfig","com.azure.ai.agents.models.VoiceAgentMcpTool":"Azure.AI.Projects.VoiceAgentMcpTool","com.azure.ai.agents.models.VoiceAgentNoiseReduction":"Azure.AI.Projects.VoiceAgentNoiseReduction","com.azure.ai.agents.models.VoiceAgentNoiseReductionType":"Azure.AI.Projects.VoiceAgentNoiseReductionType","com.azure.ai.agents.models.VoiceAgentRealtimeResponse":"Azure.AI.Projects.VoiceAgentRealtimeResponse","com.azure.ai.agents.models.VoiceAgentRealtimeResponseBase":"Azure.AI.Projects.VoiceAgentRealtimeResponseBase","com.azure.ai.agents.models.VoiceAgentResponseAnimationBlendshapeDeltaEvent":"Azure.AI.Projects.VoiceAgentServerEventResponseAnimationBlendshapesDelta","com.azure.ai.agents.models.VoiceAgentResponseAnimationBlendshapeDoneEvent":"Azure.AI.Projects.VoiceAgentServerEventResponseAnimationBlendshapesDone","com.azure.ai.agents.models.VoiceAgentResponseAnimationVisemeDeltaEvent":"Azure.AI.Projects.VoiceAgentServerEventResponseAnimationVisemeDelta","com.azure.ai.agents.models.VoiceAgentResponseAnimationVisemeDoneEvent":"Azure.AI.Projects.VoiceAgentServerEventResponseAnimationVisemeDone","com.azure.ai.agents.models.VoiceAgentResponseAudioConfig":"TypeSpec.PickProperties","com.azure.ai.agents.models.VoiceAgentResponseAudioTimestampDeltaEvent":"Azure.AI.Projects.VoiceAgentServerEventResponseAudioTimestampDelta","com.azure.ai.agents.models.VoiceAgentResponseAudioTimestampDoneEvent":"Azure.AI.Projects.VoiceAgentServerEventResponseAudioTimestampDone","com.azure.ai.agents.models.VoiceAgentResponseCreateOptions":"Azure.AI.Projects.VoiceAgentResponseCreateParams","com.azure.ai.agents.models.VoiceAgentResponseVideoDeltaEvent":"Azure.AI.Projects.VoiceAgentServerEventResponseVideoDelta","com.azure.ai.agents.models.VoiceAgentRtcCallErrorDetails":"Azure.AI.Projects.VoiceAgentRtcCallErrorDetails","com.azure.ai.agents.models.VoiceAgentRtcCallErrorEvent":"Azure.AI.Projects.VoiceAgentServerEventRtcCallError","com.azure.ai.agents.models.VoiceAgentRtcCallSdpCreateEvent":"Azure.AI.Projects.VoiceAgentClientEventRtcCallSdpCreate","com.azure.ai.agents.models.VoiceAgentRtcCallSdpCreatedEvent":"Azure.AI.Projects.VoiceAgentServerEventRtcCallSdpCreated","com.azure.ai.agents.models.VoiceAgentSemanticVadTurnDetection":"Azure.AI.Projects.VoiceAgentSemanticVadTurnDetection","com.azure.ai.agents.models.VoiceAgentServerVadTurnDetection":"Azure.AI.Projects.VoiceAgentServerVadTurnDetection","com.azure.ai.agents.models.VoiceAgentSessionAvatarConfiguration":"Azure.AI.Projects.VoiceAgentSessionAvatarConfig","com.azure.ai.agents.models.VoiceAgentSessionAvatarConnectEvent":"Azure.AI.Projects.VoiceAgentClientEventSessionAvatarConnect","com.azure.ai.agents.models.VoiceAgentSessionAvatarConnectingEvent":"Azure.AI.Projects.VoiceAgentServerEventSessionAvatarConnecting","com.azure.ai.agents.models.VoiceAgentSessionAvatarSwitchToIdleEvent":"Azure.AI.Projects.VoiceAgentServerEventSessionAvatarSwitchToIdle","com.azure.ai.agents.models.VoiceAgentSessionAvatarSwitchToSpeakingEvent":"Azure.AI.Projects.VoiceAgentServerEventSessionAvatarSwitchToSpeaking","com.azure.ai.agents.models.VoiceAgentSessionIncludeOption":"Azure.AI.Projects.VoiceAgentSessionIncludeOption","com.azure.ai.agents.models.VoiceAgentSessionResponseConfiguration":"Azure.AI.Projects.VoiceAgentSessionResponseConfig","com.azure.ai.agents.models.VoiceAgentSessionSubagentAbortedEvent":"Azure.AI.Projects.VoiceAgentServerEventSessionSubagentAborted","com.azure.ai.agents.models.VoiceAgentSessionSubagentCompletedEvent":"Azure.AI.Projects.VoiceAgentServerEventSessionSubagentCompleted","com.azure.ai.agents.models.VoiceAgentSessionSubagentStartedEvent":"Azure.AI.Projects.VoiceAgentServerEventSessionSubagentStarted","com.azure.ai.agents.models.VoiceAgentSessionUpdateConfiguration":"Azure.AI.Projects.VoiceAgentSessionUpdateConfig","com.azure.ai.agents.models.VoiceAgentStaticInterimResponseConfiguration":"Azure.AI.Projects.VoiceAgentStaticInterimResponseConfig","com.azure.ai.agents.models.VoiceAgentSubagent":"Azure.AI.Projects.VoiceAgentSubagent","com.azure.ai.agents.models.VoiceAgentSubagentAbortReason":"Azure.AI.Projects.VoiceAgentSubagentAbortReason","com.azure.ai.agents.models.VoiceAgentSubagentConfiguration":"Azure.AI.Projects.VoiceAgentSubagentConfig","com.azure.ai.agents.models.VoiceAgentSubagentResponsePolicy":"Azure.AI.Projects.VoiceAgentSubagentResponsePolicy","com.azure.ai.agents.models.VoiceAgentSystemTool":"Azure.AI.Projects.VoiceAgentSystemTool","com.azure.ai.agents.models.VoiceAgentSystemToolName":"Azure.AI.Projects.VoiceAgentSystemToolName","com.azure.ai.agents.models.VoiceAgentTemplateGreetingConfiguration":"Azure.AI.Projects.VoiceAgentTemplateGreetingConfig","com.azure.ai.agents.models.VoiceAgentTool":"Azure.AI.Projects.VoiceAgentTool","com.azure.ai.agents.models.VoiceAgentToolResponseScheduling":"Azure.AI.Projects.VoiceAgentToolResponseScheduling","com.azure.ai.agents.models.VoiceAgentToolboxTool":"Azure.AI.Projects.VoiceAgentToolboxTool","com.azure.ai.agents.models.VoiceAgentTranscriptionPhrase":"Azure.AI.Projects.VoiceAgentTranscriptionPhrase","com.azure.ai.agents.models.VoiceAgentTranscriptionWord":"Azure.AI.Projects.VoiceAgentTranscriptionWord","com.azure.ai.agents.models.VoiceAgentTransport":"Azure.AI.Projects.VoiceAgentTransport","com.azure.ai.agents.models.VoiceAgentTurnDetectionConfiguration":"Azure.AI.Projects.VoiceAgentTurnDetectionConfig","com.azure.ai.agents.models.VoiceAgentTurnDetectionType":"Azure.AI.Projects.VoiceAgentTurnDetectionType","com.azure.ai.agents.models.VoiceAgentWarningDetails":"Azure.AI.Projects.VoiceAgentServerEventWarningDetails","com.azure.ai.agents.models.VoiceAgentWarningEvent":"Azure.AI.Projects.VoiceAgentServerEventWarning","com.azure.ai.agents.models.VoiceAudioCodec":"Azure.AI.Projects.VoiceAudioCodec","com.azure.ai.agents.models.VoiceAudioContainerFormat":"Azure.AI.Projects.VoiceAudioContainerFormat","com.azure.ai.agents.models.VoiceAudioItem":"Azure.AI.Projects.VoiceAudioItem","com.azure.ai.agents.models.VoiceAudioRole":"Azure.AI.Projects.VoiceAudioRole","com.azure.ai.agents.models.VoiceConversation":"Azure.AI.Projects.VoiceConversation","com.azure.ai.agents.models.VoiceConversationEngine":"Azure.AI.Projects.VoiceConversationEngine","com.azure.ai.agents.models.VoiceConversationStatus":"Azure.AI.Projects.VoiceConversationStatus","com.azure.ai.agents.models.VoiceGeneratedAudioItem":"Azure.AI.Projects.VoiceGeneratedAudioItem","com.azure.ai.agents.models.VoiceHostedAgentConversationEngine":"Azure.AI.Projects.VoiceHostedAgentConversationEngine","com.azure.ai.agents.models.VoiceIds":"OpenAI.VoiceIdsShared","com.azure.ai.agents.models.VoiceModelType":"Azure.AI.Projects.VoiceModelType","com.azure.ai.agents.models.VoiceOutputModality":"Azure.AI.Projects.VoiceOutputModality","com.azure.ai.agents.models.VoiceRecording":"Azure.AI.Projects.VoiceRecording","com.azure.ai.agents.models.VoiceRecordingChannelLayout":"Azure.AI.Projects.VoiceRecordingChannelLayout","com.azure.ai.agents.models.VoiceResponse":"Azure.AI.Projects.VoiceResponse","com.azure.ai.agents.models.VoiceResponseAudio":"Azure.AI.Projects.VoiceResponseAudio","com.azure.ai.agents.models.VoiceResponseAudioOutput":"Azure.AI.Projects.VoiceResponseAudioOutput","com.azure.ai.agents.models.VoiceResponseBase":"Azure.AI.Projects.VoiceResponseBase","com.azure.ai.agents.models.VoiceResponseBaseObject":null,"com.azure.ai.agents.models.VoiceType":"Azure.AI.Projects.VoiceType","com.azure.ai.agents.models.WebIqPreviewTool":"Azure.AI.Projects.WebIQPreviewTool","com.azure.ai.agents.models.WebIqPreviewToolboxTool":"Azure.AI.Projects.WebIQPreviewToolboxTool","com.azure.ai.agents.models.WebSearchApproximateLocation":"OpenAI.WebSearchApproximateLocation","com.azure.ai.agents.models.WebSearchConfiguration":"Azure.AI.Projects.WebSearchConfiguration","com.azure.ai.agents.models.WebSearchPreviewTool":"OpenAI.WebSearchPreviewTool","com.azure.ai.agents.models.WebSearchTool":"OpenAI.WebSearchTool","com.azure.ai.agents.models.WebSearchToolFilters":"OpenAI.WebSearchToolFilters","com.azure.ai.agents.models.WebSearchToolSearchContextSize":"WebSearchToolSearchContextSizeExpandable","com.azure.ai.agents.models.WebSearchToolboxTool":"Azure.AI.Projects.WebSearchToolboxTool","com.azure.ai.agents.models.WorkIqPreviewTool":"Azure.AI.Projects.WorkIQPreviewTool","com.azure.ai.agents.models.WorkIqPreviewToolboxTool":"Azure.AI.Projects.WorkIQPreviewToolboxTool","com.azure.ai.agents.models.WorkflowAgentDefinition":"Azure.AI.Projects.WorkflowAgentDefinition"},"generatedFiles":["src/main/java/com/azure/ai/agents/AgentsAsyncClient.java","src/main/java/com/azure/ai/agents/AgentsClient.java","src/main/java/com/azure/ai/agents/AgentsClientBuilder.java","src/main/java/com/azure/ai/agents/AgentsServiceVersion.java","src/main/java/com/azure/ai/agents/BetaAgentsAsyncClient.java","src/main/java/com/azure/ai/agents/BetaAgentsClient.java","src/main/java/com/azure/ai/agents/BetaMemoryStoresAsyncClient.java","src/main/java/com/azure/ai/agents/BetaMemoryStoresClient.java","src/main/java/com/azure/ai/agents/BetaVoiceAgentsConversationsAsyncClient.java","src/main/java/com/azure/ai/agents/BetaVoiceAgentsConversationsClient.java","src/main/java/com/azure/ai/agents/BetaVoiceAgentsTelephonyAsyncClient.java","src/main/java/com/azure/ai/agents/BetaVoiceAgentsTelephonyClient.java","src/main/java/com/azure/ai/agents/ToolboxesAsyncClient.java","src/main/java/com/azure/ai/agents/ToolboxesClient.java","src/main/java/com/azure/ai/agents/implementation/AgentsClientImpl.java","src/main/java/com/azure/ai/agents/implementation/AgentsImpl.java","src/main/java/com/azure/ai/agents/implementation/BetaAgentsImpl.java","src/main/java/com/azure/ai/agents/implementation/BetaMemoryStoresImpl.java","src/main/java/com/azure/ai/agents/implementation/BetaVoiceAgentsConversationsImpl.java","src/main/java/com/azure/ai/agents/implementation/BetaVoiceAgentsTelephoniesImpl.java","src/main/java/com/azure/ai/agents/implementation/JsonMergePatchHelper.java","src/main/java/com/azure/ai/agents/implementation/MultipartFormDataHelper.java","src/main/java/com/azure/ai/agents/implementation/OperationLocationPollingStrategy.java","src/main/java/com/azure/ai/agents/implementation/PollingUtils.java","src/main/java/com/azure/ai/agents/implementation/SyncOperationLocationPollingStrategy.java","src/main/java/com/azure/ai/agents/implementation/ToolboxesImpl.java","src/main/java/com/azure/ai/agents/implementation/models/AgentDefinitionOptInKeys.java","src/main/java/com/azure/ai/agents/implementation/models/CreateAgentFromCodeContent.java","src/main/java/com/azure/ai/agents/implementation/models/CreateAgentFromManifestRequest.java","src/main/java/com/azure/ai/agents/implementation/models/CreateAgentOptions.java","src/main/java/com/azure/ai/agents/implementation/models/CreateAgentRequest.java","src/main/java/com/azure/ai/agents/implementation/models/CreateAgentVersionFromManifestRequest.java","src/main/java/com/azure/ai/agents/implementation/models/CreateAgentVersionRequest.java","src/main/java/com/azure/ai/agents/implementation/models/CreateMemoryRequest.java","src/main/java/com/azure/ai/agents/implementation/models/CreateMemoryStoreRequest.java","src/main/java/com/azure/ai/agents/implementation/models/CreateSessionRequest.java","src/main/java/com/azure/ai/agents/implementation/models/CreateToolboxVersionRequest.java","src/main/java/com/azure/ai/agents/implementation/models/FoundryFeaturesOptInKeys.java","src/main/java/com/azure/ai/agents/implementation/models/GetMicrosoft365AppPackageRequest.java","src/main/java/com/azure/ai/agents/implementation/models/ListMemoriesRequest.java","src/main/java/com/azure/ai/agents/implementation/models/PublishAgentToMicrosoft365Request.java","src/main/java/com/azure/ai/agents/implementation/models/ReplaceTelephonyTransferTargetsRequest.java","src/main/java/com/azure/ai/agents/implementation/models/SearchMemoriesRequest.java","src/main/java/com/azure/ai/agents/implementation/models/TransferTelephonyCallRequest.java","src/main/java/com/azure/ai/agents/implementation/models/UpdateAgentFromManifestRequest.java","src/main/java/com/azure/ai/agents/implementation/models/UpdateAgentRequest.java","src/main/java/com/azure/ai/agents/implementation/models/UpdateMemoriesRequest.java","src/main/java/com/azure/ai/agents/implementation/models/UpdateMemoryRequest.java","src/main/java/com/azure/ai/agents/implementation/models/UpdateMemoryStoreRequest.java","src/main/java/com/azure/ai/agents/implementation/models/UpdateToolboxInput.java","src/main/java/com/azure/ai/agents/implementation/models/UpdateToolboxRequest.java","src/main/java/com/azure/ai/agents/implementation/models/package-info.java","src/main/java/com/azure/ai/agents/implementation/package-info.java","src/main/java/com/azure/ai/agents/models/A2APreviewTool.java","src/main/java/com/azure/ai/agents/models/A2APreviewToolboxTool.java","src/main/java/com/azure/ai/agents/models/A2AProtocolConfiguration.java","src/main/java/com/azure/ai/agents/models/A2AProtocolVersion.java","src/main/java/com/azure/ai/agents/models/A2ATool.java","src/main/java/com/azure/ai/agents/models/A2AToolCall.java","src/main/java/com/azure/ai/agents/models/A2AToolCallOutput.java","src/main/java/com/azure/ai/agents/models/A2AToolboxTool.java","src/main/java/com/azure/ai/agents/models/AISearchIndexResource.java","src/main/java/com/azure/ai/agents/models/ActivityProtocolAccessBoundary.java","src/main/java/com/azure/ai/agents/models/ActivityProtocolConfiguration.java","src/main/java/com/azure/ai/agents/models/AgentBlueprintReference.java","src/main/java/com/azure/ai/agents/models/AgentBlueprintReferenceType.java","src/main/java/com/azure/ai/agents/models/AgentCard.java","src/main/java/com/azure/ai/agents/models/AgentCardSkill.java","src/main/java/com/azure/ai/agents/models/AgentDefinition.java","src/main/java/com/azure/ai/agents/models/AgentDetails.java","src/main/java/com/azure/ai/agents/models/AgentDetailsVersions.java","src/main/java/com/azure/ai/agents/models/AgentEndpointAuthorizationScheme.java","src/main/java/com/azure/ai/agents/models/AgentEndpointAuthorizationSchemeType.java","src/main/java/com/azure/ai/agents/models/AgentEndpointConfig.java","src/main/java/com/azure/ai/agents/models/AgentEndpointProtocol.java","src/main/java/com/azure/ai/agents/models/AgentHarness.java","src/main/java/com/azure/ai/agents/models/AgentIdentity.java","src/main/java/com/azure/ai/agents/models/AgentIdentityStatus.java","src/main/java/com/azure/ai/agents/models/AgentKind.java","src/main/java/com/azure/ai/agents/models/AgentObjectType.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationAgentCandidateOutput.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationBaselineAgentConfiguration.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationCandidate.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationCandidateEvaluation.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationCandidateExpand.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationCandidateOutput.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationCandidatePromotionInfo.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationCandidateSearchConfiguration.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationCandidateStatus.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationConfiguration.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationConfigurationBase.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationConfigurationType.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationCostEstimate.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationDataSourceType.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationEstimateBand.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationEstimateInputs.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationEstimateResult.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationEvaluationConfiguration.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationEvaluationSet.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationEvaluationSetType.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationEvaluatorReference.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationFoundryAgentTargetConfiguration.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationGoal.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationInstructionsMutation.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationJob.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationJobLatency.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationJobResult.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationJobTokenUsage.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationModelConfiguration.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationModelMutation.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationMutation.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationPromptCandidateOutput.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationResultCandidateSummary.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationSkill.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationSkillsMutation.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationSpace.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationStage.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationStageEstimate.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationTargetCompletionDataSource.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationTargetCompletionDatasetReferenceDataSource.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationTargetCompletionEvaluationSet.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationTargetCompletionInlineDataSource.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationTargetCompletionTestCase.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationTargetConfiguration.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationTargetConfigurationType.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationTerminationReason.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationToolsMutation.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationUserConversationSimulationDataSource.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationUserConversationSimulationDatasetReferenceDataSource.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationUserConversationSimulationEvaluationSet.java","src/main/java/com/azure/ai/agents/models/AgentOptimizationUserConversationSimulationInlineDataSource.java","src/main/java/com/azure/ai/agents/models/AgentReference.java","src/main/java/com/azure/ai/agents/models/AgentSessionResource.java","src/main/java/com/azure/ai/agents/models/AgentSessionStatus.java","src/main/java/com/azure/ai/agents/models/AgentState.java","src/main/java/com/azure/ai/agents/models/AgentStateSource.java","src/main/java/com/azure/ai/agents/models/AgentVersionDetails.java","src/main/java/com/azure/ai/agents/models/AgentVersionStatus.java","src/main/java/com/azure/ai/agents/models/ApiError.java","src/main/java/com/azure/ai/agents/models/ApplyPatchToolParameter.java","src/main/java/com/azure/ai/agents/models/ApproximateLocation.java","src/main/java/com/azure/ai/agents/models/AudioTranscription.java","src/main/java/com/azure/ai/agents/models/AudioTranscriptionModel.java","src/main/java/com/azure/ai/agents/models/AutoCodeInterpreterToolParameter.java","src/main/java/com/azure/ai/agents/models/AzureAISearchQueryType.java","src/main/java/com/azure/ai/agents/models/AzureAISearchTool.java","src/main/java/com/azure/ai/agents/models/AzureAISearchToolCall.java","src/main/java/com/azure/ai/agents/models/AzureAISearchToolCallOutput.java","src/main/java/com/azure/ai/agents/models/AzureAISearchToolResource.java","src/main/java/com/azure/ai/agents/models/AzureAISearchToolboxTool.java","src/main/java/com/azure/ai/agents/models/AzureCreateResponseDetails.java","src/main/java/com/azure/ai/agents/models/AzureCreateResponseOptions.java","src/main/java/com/azure/ai/agents/models/AzureFunctionBinding.java","src/main/java/com/azure/ai/agents/models/AzureFunctionDefinition.java","src/main/java/com/azure/ai/agents/models/AzureFunctionDefinitionDetails.java","src/main/java/com/azure/ai/agents/models/AzureFunctionStorageQueue.java","src/main/java/com/azure/ai/agents/models/AzureFunctionTool.java","src/main/java/com/azure/ai/agents/models/AzureFunctionToolCall.java","src/main/java/com/azure/ai/agents/models/AzureFunctionToolCallOutput.java","src/main/java/com/azure/ai/agents/models/AzureUserSecurityContext.java","src/main/java/com/azure/ai/agents/models/BingCustomSearchConfiguration.java","src/main/java/com/azure/ai/agents/models/BingCustomSearchPreviewTool.java","src/main/java/com/azure/ai/agents/models/BingCustomSearchToolCall.java","src/main/java/com/azure/ai/agents/models/BingCustomSearchToolCallOutput.java","src/main/java/com/azure/ai/agents/models/BingCustomSearchToolParameters.java","src/main/java/com/azure/ai/agents/models/BingGroundingSearchConfiguration.java","src/main/java/com/azure/ai/agents/models/BingGroundingSearchToolParameters.java","src/main/java/com/azure/ai/agents/models/BingGroundingTool.java","src/main/java/com/azure/ai/agents/models/BingGroundingToolCall.java","src/main/java/com/azure/ai/agents/models/BingGroundingToolCallOutput.java","src/main/java/com/azure/ai/agents/models/BotServiceAuthorizationScheme.java","src/main/java/com/azure/ai/agents/models/BotServiceRbacAuthorizationScheme.java","src/main/java/com/azure/ai/agents/models/BotServiceTenantAuthorizationScheme.java","src/main/java/com/azure/ai/agents/models/BrowserAutomationPreviewTool.java","src/main/java/com/azure/ai/agents/models/BrowserAutomationPreviewToolboxTool.java","src/main/java/com/azure/ai/agents/models/BrowserAutomationTool.java","src/main/java/com/azure/ai/agents/models/BrowserAutomationToolCall.java","src/main/java/com/azure/ai/agents/models/BrowserAutomationToolCallOutput.java","src/main/java/com/azure/ai/agents/models/BrowserAutomationToolConnectionParameters.java","src/main/java/com/azure/ai/agents/models/BrowserAutomationToolParameters.java","src/main/java/com/azure/ai/agents/models/BrowserAutomationToolboxTool.java","src/main/java/com/azure/ai/agents/models/CallableToolAllowedCaller.java","src/main/java/com/azure/ai/agents/models/CaptureStructuredOutputsTool.java","src/main/java/com/azure/ai/agents/models/ChatSummaryMemoryItem.java","src/main/java/com/azure/ai/agents/models/CodeConfiguration.java","src/main/java/com/azure/ai/agents/models/CodeDependencyResolution.java","src/main/java/com/azure/ai/agents/models/CodeFileDetails.java","src/main/java/com/azure/ai/agents/models/CodeInterpreterTool.java","src/main/java/com/azure/ai/agents/models/CodeInterpreterToolboxTool.java","src/main/java/com/azure/ai/agents/models/ComputerEnvironment.java","src/main/java/com/azure/ai/agents/models/ComputerTool.java","src/main/java/com/azure/ai/agents/models/ComputerUsePreviewTool.java","src/main/java/com/azure/ai/agents/models/ContainerAutoParameter.java","src/main/java/com/azure/ai/agents/models/ContainerConfiguration.java","src/main/java/com/azure/ai/agents/models/ContainerMemoryLimit.java","src/main/java/com/azure/ai/agents/models/ContainerNetworkPolicyAllowlistParameter.java","src/main/java/com/azure/ai/agents/models/ContainerNetworkPolicyDisabledParameter.java","src/main/java/com/azure/ai/agents/models/ContainerNetworkPolicyDomainSecretParameter.java","src/main/java/com/azure/ai/agents/models/ContainerNetworkPolicyParamType.java","src/main/java/com/azure/ai/agents/models/ContainerNetworkPolicyParameter.java","src/main/java/com/azure/ai/agents/models/ContainerSkill.java","src/main/java/com/azure/ai/agents/models/ContainerSkillType.java","src/main/java/com/azure/ai/agents/models/CreateAgentVersionFromCodeContent.java","src/main/java/com/azure/ai/agents/models/CreateAgentVersionFromCodeMetadata.java","src/main/java/com/azure/ai/agents/models/CreateAgentVersionInput.java","src/main/java/com/azure/ai/agents/models/CreateAgentVersionOptions.java","src/main/java/com/azure/ai/agents/models/CreateTeamsPhoneExtensionTelephonyBindingInput.java","src/main/java/com/azure/ai/agents/models/CreateTelephonyBindingInput.java","src/main/java/com/azure/ai/agents/models/CreateTelephonyCallJobInput.java","src/main/java/com/azure/ai/agents/models/CreateTwilioTelephonyBindingInput.java","src/main/java/com/azure/ai/agents/models/CustomGrammarFormatParameter.java","src/main/java/com/azure/ai/agents/models/CustomTextFormatParameter.java","src/main/java/com/azure/ai/agents/models/CustomToolParamFormat.java","src/main/java/com/azure/ai/agents/models/CustomToolParamFormatType.java","src/main/java/com/azure/ai/agents/models/CustomToolParameter.java","src/main/java/com/azure/ai/agents/models/DigitalWorkerType.java","src/main/java/com/azure/ai/agents/models/EntraAuthorizationScheme.java","src/main/java/com/azure/ai/agents/models/EvaluationAzureStandardVoiceModelConfiguration.java","src/main/java/com/azure/ai/agents/models/EvaluationModelConfiguration.java","src/main/java/com/azure/ai/agents/models/EvaluationVoiceModelConfiguration.java","src/main/java/com/azure/ai/agents/models/ExternalAgentDefinition.java","src/main/java/com/azure/ai/agents/models/FabricDataAgentToolCall.java","src/main/java/com/azure/ai/agents/models/FabricDataAgentToolCallOutput.java","src/main/java/com/azure/ai/agents/models/FabricDataAgentToolParameters.java","src/main/java/com/azure/ai/agents/models/FabricIqPreviewTool.java","src/main/java/com/azure/ai/agents/models/FabricIqPreviewToolboxTool.java","src/main/java/com/azure/ai/agents/models/FileSearchTool.java","src/main/java/com/azure/ai/agents/models/FileSearchToolboxTool.java","src/main/java/com/azure/ai/agents/models/FixedRatioVersionSelectionRule.java","src/main/java/com/azure/ai/agents/models/FunctionShellToolParamEnvironment.java","src/main/java/com/azure/ai/agents/models/FunctionShellToolParamEnvironmentType.java","src/main/java/com/azure/ai/agents/models/FunctionShellToolParameter.java","src/main/java/com/azure/ai/agents/models/FunctionShellToolParameterEnvironmentContainerReferenceParameter.java","src/main/java/com/azure/ai/agents/models/FunctionShellToolParameterEnvironmentLocalEnvironmentParameter.java","src/main/java/com/azure/ai/agents/models/FunctionTool.java","src/main/java/com/azure/ai/agents/models/GetMicrosoft365AppPackageOptions.java","src/main/java/com/azure/ai/agents/models/GitHubCopilotBuiltInTool.java","src/main/java/com/azure/ai/agents/models/GitHubCopilotHarness.java","src/main/java/com/azure/ai/agents/models/GitHubCopilotToolsetConfig.java","src/main/java/com/azure/ai/agents/models/GitHubCopilotToolsetDefaultConfig.java","src/main/java/com/azure/ai/agents/models/GitHubCopilotToolsetPreview.java","src/main/java/com/azure/ai/agents/models/GrammarSyntax.java","src/main/java/com/azure/ai/agents/models/HeaderTelemetryEndpointAuth.java","src/main/java/com/azure/ai/agents/models/HostedAgentDefinition.java","src/main/java/com/azure/ai/agents/models/HybridSearchOptions.java","src/main/java/com/azure/ai/agents/models/ImageGenActionEnum.java","src/main/java/com/azure/ai/agents/models/ImageGenTool.java","src/main/java/com/azure/ai/agents/models/ImageGenToolBackground.java","src/main/java/com/azure/ai/agents/models/ImageGenToolInputImageMask.java","src/main/java/com/azure/ai/agents/models/ImageGenToolModel.java","src/main/java/com/azure/ai/agents/models/ImageGenToolModeration.java","src/main/java/com/azure/ai/agents/models/ImageGenToolOutputFormat.java","src/main/java/com/azure/ai/agents/models/ImageGenToolQuality.java","src/main/java/com/azure/ai/agents/models/ImageGenToolSize.java","src/main/java/com/azure/ai/agents/models/IncludeEnum.java","src/main/java/com/azure/ai/agents/models/InlineSkillParameter.java","src/main/java/com/azure/ai/agents/models/InlineSkillSourceParameter.java","src/main/java/com/azure/ai/agents/models/InputFidelity.java","src/main/java/com/azure/ai/agents/models/InvocationsProtocolConfiguration.java","src/main/java/com/azure/ai/agents/models/InvocationsWsProtocolConfiguration.java","src/main/java/com/azure/ai/agents/models/JobStatus.java","src/main/java/com/azure/ai/agents/models/ListMemoriesOptions.java","src/main/java/com/azure/ai/agents/models/LocalShellToolParameter.java","src/main/java/com/azure/ai/agents/models/LocalSkillParameter.java","src/main/java/com/azure/ai/agents/models/ManagedAgentIdentityBlueprintReference.java","src/main/java/com/azure/ai/agents/models/McpListToolsTool.java","src/main/java/com/azure/ai/agents/models/McpListToolsToolAnnotations.java","src/main/java/com/azure/ai/agents/models/McpListToolsToolInputSchema.java","src/main/java/com/azure/ai/agents/models/McpProtocolConfiguration.java","src/main/java/com/azure/ai/agents/models/McpTool.java","src/main/java/com/azure/ai/agents/models/McpToolConnectorId.java","src/main/java/com/azure/ai/agents/models/McpToolFilter.java","src/main/java/com/azure/ai/agents/models/McpToolRequireApproval.java","src/main/java/com/azure/ai/agents/models/McpToolboxTool.java","src/main/java/com/azure/ai/agents/models/MemoryCommandToolCall.java","src/main/java/com/azure/ai/agents/models/MemoryCommandToolCallOutput.java","src/main/java/com/azure/ai/agents/models/MemoryItem.java","src/main/java/com/azure/ai/agents/models/MemoryItemKind.java","src/main/java/com/azure/ai/agents/models/MemoryOperation.java","src/main/java/com/azure/ai/agents/models/MemoryOperationKind.java","src/main/java/com/azure/ai/agents/models/MemorySearchItem.java","src/main/java/com/azure/ai/agents/models/MemorySearchOptions.java","src/main/java/com/azure/ai/agents/models/MemorySearchPreviewTool.java","src/main/java/com/azure/ai/agents/models/MemorySearchToolCall.java","src/main/java/com/azure/ai/agents/models/MemoryStoreDefaultDefinition.java","src/main/java/com/azure/ai/agents/models/MemoryStoreDefaultOptions.java","src/main/java/com/azure/ai/agents/models/MemoryStoreDefinition.java","src/main/java/com/azure/ai/agents/models/MemoryStoreDetails.java","src/main/java/com/azure/ai/agents/models/MemoryStoreKind.java","src/main/java/com/azure/ai/agents/models/MemoryStoreObjectType.java","src/main/java/com/azure/ai/agents/models/MemoryStoreOperationUsage.java","src/main/java/com/azure/ai/agents/models/MemoryStoreSearchResponse.java","src/main/java/com/azure/ai/agents/models/MemoryStoreUpdateCompletedResult.java","src/main/java/com/azure/ai/agents/models/MemoryStoreUpdateResponse.java","src/main/java/com/azure/ai/agents/models/MemoryStoreUpdateStatus.java","src/main/java/com/azure/ai/agents/models/Microsoft365PermissionScopes.java","src/main/java/com/azure/ai/agents/models/Microsoft365PublishDefaults.java","src/main/java/com/azure/ai/agents/models/Microsoft365PublishResult.java","src/main/java/com/azure/ai/agents/models/Microsoft365PublishScope.java","src/main/java/com/azure/ai/agents/models/MicrosoftFabricPreviewTool.java","src/main/java/com/azure/ai/agents/models/ModelRouterAttempt.java","src/main/java/com/azure/ai/agents/models/ModelRouterAttemptError.java","src/main/java/com/azure/ai/agents/models/ModelRouterAttemptResult.java","src/main/java/com/azure/ai/agents/models/ModelRouterDetails.java","src/main/java/com/azure/ai/agents/models/ModelRouterMode.java","src/main/java/com/azure/ai/agents/models/ModelSamplingParameters.java","src/main/java/com/azure/ai/agents/models/ModelSelectionDetails.java","src/main/java/com/azure/ai/agents/models/NamespaceTool.java","src/main/java/com/azure/ai/agents/models/OpenApiAnonymousAuthDetails.java","src/main/java/com/azure/ai/agents/models/OpenApiAuthDetails.java","src/main/java/com/azure/ai/agents/models/OpenApiAuthType.java","src/main/java/com/azure/ai/agents/models/OpenApiFunctionDefinition.java","src/main/java/com/azure/ai/agents/models/OpenApiFunctionDefinitionFunction.java","src/main/java/com/azure/ai/agents/models/OpenApiManagedAuthDetails.java","src/main/java/com/azure/ai/agents/models/OpenApiManagedSecurityScheme.java","src/main/java/com/azure/ai/agents/models/OpenApiProjectConnectionAuthDetails.java","src/main/java/com/azure/ai/agents/models/OpenApiProjectConnectionSecurityScheme.java","src/main/java/com/azure/ai/agents/models/OpenApiTool.java","src/main/java/com/azure/ai/agents/models/OpenApiToolCall.java","src/main/java/com/azure/ai/agents/models/OpenApiToolCallOutput.java","src/main/java/com/azure/ai/agents/models/OpenApiToolboxTool.java","src/main/java/com/azure/ai/agents/models/OptimizationContext.java","src/main/java/com/azure/ai/agents/models/OptimizationContextType.java","src/main/java/com/azure/ai/agents/models/OtlpTelemetryEndpoint.java","src/main/java/com/azure/ai/agents/models/PageOrder.java","src/main/java/com/azure/ai/agents/models/ProceduralMemoryItem.java","src/main/java/com/azure/ai/agents/models/ProgrammaticToolCallingParameter.java","src/main/java/com/azure/ai/agents/models/PromptAgentDefinition.java","src/main/java/com/azure/ai/agents/models/PromptAgentDefinitionTextOptions.java","src/main/java/com/azure/ai/agents/models/PromptOptimizationConfiguration.java","src/main/java/com/azure/ai/agents/models/ProtocolConfiguration.java","src/main/java/com/azure/ai/agents/models/ProtocolVersionRecord.java","src/main/java/com/azure/ai/agents/models/PstnTelephonyTransferDestination.java","src/main/java/com/azure/ai/agents/models/PublishAgentToMicrosoft365Options.java","src/main/java/com/azure/ai/agents/models/PublishApprovalStatus.java","src/main/java/com/azure/ai/agents/models/RaiConfig.java","src/main/java/com/azure/ai/agents/models/RaiInvocationContentType.java","src/main/java/com/azure/ai/agents/models/RaiInvocationModeration.java","src/main/java/com/azure/ai/agents/models/RaiInvocationResponseMode.java","src/main/java/com/azure/ai/agents/models/RaiSseTextSelector.java","src/main/java/com/azure/ai/agents/models/RankerVersionType.java","src/main/java/com/azure/ai/agents/models/RankingOptions.java","src/main/java/com/azure/ai/agents/models/RealtimeAudioFormat.java","src/main/java/com/azure/ai/agents/models/RealtimeAudioFormatType.java","src/main/java/com/azure/ai/agents/models/RealtimeClientEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeClientEventType.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationCreatedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItem.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemAddedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemAssistantMessage.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemCreateEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemCreatedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemDeleteEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemDeletedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemDoneEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemFunctionCall.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemFunctionCallOutput.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemInputAudioTranscriptionCompletedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemInputAudioTranscriptionDeltaEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemInputAudioTranscriptionFailedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemInputAudioTranscriptionSegmentEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemMessage.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemMessageType.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemObjectType.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemRetrieveEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemRetrievedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemSystemMessage.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemTruncateEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemTruncatedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemType.java","src/main/java/com/azure/ai/agents/models/RealtimeConversationItemUserMessage.java","src/main/java/com/azure/ai/agents/models/RealtimeErrorEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeInputAudioBufferAppendEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeInputAudioBufferClearEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeInputAudioBufferClearedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeInputAudioBufferCommitEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeInputAudioBufferCommittedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeInputAudioBufferDtmfReceivedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeInputAudioBufferSpeechStartedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeInputAudioBufferSpeechStoppedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeInputAudioBufferTimeoutTriggeredEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeMcpApprovalInput.java","src/main/java/com/azure/ai/agents/models/RealtimeMcpApprovalOutput.java","src/main/java/com/azure/ai/agents/models/RealtimeMcpError.java","src/main/java/com/azure/ai/agents/models/RealtimeMcpErrorType.java","src/main/java/com/azure/ai/agents/models/RealtimeMcpHttpError.java","src/main/java/com/azure/ai/agents/models/RealtimeMcpListTools.java","src/main/java/com/azure/ai/agents/models/RealtimeMcpListToolsCompletedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeMcpListToolsFailedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeMcpListToolsInProgressEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeMcpProtocolError.java","src/main/java/com/azure/ai/agents/models/RealtimeMcpToolCall.java","src/main/java/com/azure/ai/agents/models/RealtimeMcpToolExecutionError.java","src/main/java/com/azure/ai/agents/models/RealtimeOutputAudioBufferClearEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeOutputAudioBufferClearedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeOutputAudioBufferStartedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeOutputAudioBufferStoppedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimePcmAudioFormat.java","src/main/java/com/azure/ai/agents/models/RealtimePcmaAudioFormat.java","src/main/java/com/azure/ai/agents/models/RealtimePcmuAudioFormat.java","src/main/java/com/azure/ai/agents/models/RealtimeRateLimitsUpdatedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseAudioDeltaEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseAudioDoneEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseAudioTranscriptDeltaEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseAudioTranscriptDoneEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseCancelEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseContentPart.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseContentPartAddedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseContentPartDoneEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseCreateEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseCreatedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseDoneEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseFunctionCallArgumentsDeltaEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseFunctionCallArgumentsDoneEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseMcpCallArgumentsDeltaEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseMcpCallArgumentsDoneEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseMcpCallCompletedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseMcpCallFailedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseMcpCallInProgressEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseOutputItemAddedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseOutputItemDoneEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseTextDeltaEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeResponseTextDoneEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeSemanticVadTurnDetection.java","src/main/java/com/azure/ai/agents/models/RealtimeServerEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeServerEventType.java","src/main/java/com/azure/ai/agents/models/RealtimeServerVadTurnDetection.java","src/main/java/com/azure/ai/agents/models/RealtimeSessionAudioConfiguration.java","src/main/java/com/azure/ai/agents/models/RealtimeSessionAudioInput.java","src/main/java/com/azure/ai/agents/models/RealtimeSessionAudioOutput.java","src/main/java/com/azure/ai/agents/models/RealtimeSessionConfiguration.java","src/main/java/com/azure/ai/agents/models/RealtimeSessionConfigurationBase.java","src/main/java/com/azure/ai/agents/models/RealtimeSessionCreateRequestGAAudioOutputVoice.java","src/main/java/com/azure/ai/agents/models/RealtimeSessionCreatedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeSessionTracingConfiguration.java","src/main/java/com/azure/ai/agents/models/RealtimeSessionType.java","src/main/java/com/azure/ai/agents/models/RealtimeSessionUpdateEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeSessionUpdatedEvent.java","src/main/java/com/azure/ai/agents/models/RealtimeTranscriptionSessionAudioConfiguration.java","src/main/java/com/azure/ai/agents/models/RealtimeTranscriptionSessionAudioInput.java","src/main/java/com/azure/ai/agents/models/RealtimeTranscriptionSessionConfiguration.java","src/main/java/com/azure/ai/agents/models/RealtimeTurnDetection.java","src/main/java/com/azure/ai/agents/models/RealtimeTurnDetectionType.java","src/main/java/com/azure/ai/agents/models/ReminderPreviewToolboxTool.java","src/main/java/com/azure/ai/agents/models/ResponseFormatJsonSchemaInner.java","src/main/java/com/azure/ai/agents/models/ResponseUsageInputTokensDetails.java","src/main/java/com/azure/ai/agents/models/ResponseUsageOutputTokensDetails.java","src/main/java/com/azure/ai/agents/models/ResponsesProtocolConfiguration.java","src/main/java/com/azure/ai/agents/models/RoutingConfiguration.java","src/main/java/com/azure/ai/agents/models/RoutingTraceEntry.java","src/main/java/com/azure/ai/agents/models/SearchContentType.java","src/main/java/com/azure/ai/agents/models/SearchContextSize.java","src/main/java/com/azure/ai/agents/models/SessionAffinityConfiguration.java","src/main/java/com/azure/ai/agents/models/SessionAffinityDecision.java","src/main/java/com/azure/ai/agents/models/SessionAffinityDetails.java","src/main/java/com/azure/ai/agents/models/SessionAffinityMode.java","src/main/java/com/azure/ai/agents/models/SessionAffinityRequestMode.java","src/main/java/com/azure/ai/agents/models/SessionAffinitySource.java","src/main/java/com/azure/ai/agents/models/SessionConfiguration.java","src/main/java/com/azure/ai/agents/models/SessionDirectoryEntry.java","src/main/java/com/azure/ai/agents/models/SessionFileWriteResult.java","src/main/java/com/azure/ai/agents/models/SessionLogEvent.java","src/main/java/com/azure/ai/agents/models/SessionLogEventType.java","src/main/java/com/azure/ai/agents/models/SharepointGroundingToolCall.java","src/main/java/com/azure/ai/agents/models/SharepointGroundingToolCallOutput.java","src/main/java/com/azure/ai/agents/models/SharepointGroundingToolParameters.java","src/main/java/com/azure/ai/agents/models/SharepointPreviewTool.java","src/main/java/com/azure/ai/agents/models/ShellToolboxTool.java","src/main/java/com/azure/ai/agents/models/SipTelephonyTransferDestination.java","src/main/java/com/azure/ai/agents/models/SkillReference.java","src/main/java/com/azure/ai/agents/models/SkillReferenceParameter.java","src/main/java/com/azure/ai/agents/models/SteeringPromptOptimizationContext.java","src/main/java/com/azure/ai/agents/models/StructuredInputDefinition.java","src/main/java/com/azure/ai/agents/models/StructuredOutputDefinition.java","src/main/java/com/azure/ai/agents/models/TargetAttribute.java","src/main/java/com/azure/ai/agents/models/TeamsPhoneExtensionTelephonyBinding.java","src/main/java/com/azure/ai/agents/models/TeamsPhoneExtensionTelephonyBindingListItem.java","src/main/java/com/azure/ai/agents/models/TeamsTelephonyTransferDestination.java","src/main/java/com/azure/ai/agents/models/TelemetryConfig.java","src/main/java/com/azure/ai/agents/models/TelemetryDataKind.java","src/main/java/com/azure/ai/agents/models/TelemetryEndpoint.java","src/main/java/com/azure/ai/agents/models/TelemetryEndpointAuth.java","src/main/java/com/azure/ai/agents/models/TelemetryEndpointAuthType.java","src/main/java/com/azure/ai/agents/models/TelemetryEndpointKind.java","src/main/java/com/azure/ai/agents/models/TelemetryTransportProtocol.java","src/main/java/com/azure/ai/agents/models/TelephonyBinding.java","src/main/java/com/azure/ai/agents/models/TelephonyBindingListItem.java","src/main/java/com/azure/ai/agents/models/TelephonyBindingStatus.java","src/main/java/com/azure/ai/agents/models/TelephonyCallDurationBasis.java","src/main/java/com/azure/ai/agents/models/TelephonyCallEndReason.java","src/main/java/com/azure/ai/agents/models/TelephonyCallJob.java","src/main/java/com/azure/ai/agents/models/TelephonyCallJobCancellation.java","src/main/java/com/azure/ai/agents/models/TelephonyCallJobSchedule.java","src/main/java/com/azure/ai/agents/models/TelephonyCallJobStatus.java","src/main/java/com/azure/ai/agents/models/TelephonyCallJobTerminalReason.java","src/main/java/com/azure/ai/agents/models/TelephonyCallLifecycleEvent.java","src/main/java/com/azure/ai/agents/models/TelephonyCallLifecycleEventName.java","src/main/java/com/azure/ai/agents/models/TelephonyCallLifecycleEventOutcome.java","src/main/java/com/azure/ai/agents/models/TelephonyCallLifecycleEventReason.java","src/main/java/com/azure/ai/agents/models/TelephonyCallLifecycleEventSource.java","src/main/java/com/azure/ai/agents/models/TelephonyCallPhase.java","src/main/java/com/azure/ai/agents/models/TelephonyCallRecord.java","src/main/java/com/azure/ai/agents/models/TelephonyCallStatus.java","src/main/java/com/azure/ai/agents/models/TelephonyCallSummary.java","src/main/java/com/azure/ai/agents/models/TelephonyCallTimestampSource.java","src/main/java/com/azure/ai/agents/models/TelephonyCallTiming.java","src/main/java/com/azure/ai/agents/models/TelephonyCallTrace.java","src/main/java/com/azure/ai/agents/models/TelephonyCallTraceMode.java","src/main/java/com/azure/ai/agents/models/TelephonyCallTraceStatus.java","src/main/java/com/azure/ai/agents/models/TelephonyOutboundDestination.java","src/main/java/com/azure/ai/agents/models/TelephonyOutboundDestinationType.java","src/main/java/com/azure/ai/agents/models/TelephonyOutboundFixedIntervalRetryPolicy.java","src/main/java/com/azure/ai/agents/models/TelephonyOutboundRetryPolicy.java","src/main/java/com/azure/ai/agents/models/TelephonyOutboundRetryPolicyType.java","src/main/java/com/azure/ai/agents/models/TelephonyProvider.java","src/main/java/com/azure/ai/agents/models/TelephonyTransferDestination.java","src/main/java/com/azure/ai/agents/models/TelephonyTransferDestinationKind.java","src/main/java/com/azure/ai/agents/models/TelephonyTransferTarget.java","src/main/java/com/azure/ai/agents/models/TelephonyTransferTargets.java","src/main/java/com/azure/ai/agents/models/TextResponseFormatConfiguration.java","src/main/java/com/azure/ai/agents/models/TextResponseFormatConfigurationResponseFormatJsonObject.java","src/main/java/com/azure/ai/agents/models/TextResponseFormatConfigurationResponseFormatText.java","src/main/java/com/azure/ai/agents/models/TextResponseFormatConfigurationType.java","src/main/java/com/azure/ai/agents/models/TextResponseFormatJsonSchema.java","src/main/java/com/azure/ai/agents/models/Tool.java","src/main/java/com/azure/ai/agents/models/ToolCallStatus.java","src/main/java/com/azure/ai/agents/models/ToolConfig.java","src/main/java/com/azure/ai/agents/models/ToolProjectConnection.java","src/main/java/com/azure/ai/agents/models/ToolSearchExecutionType.java","src/main/java/com/azure/ai/agents/models/ToolSearchTool.java","src/main/java/com/azure/ai/agents/models/ToolSearchToolboxTool.java","src/main/java/com/azure/ai/agents/models/ToolType.java","src/main/java/com/azure/ai/agents/models/ToolboxDetails.java","src/main/java/com/azure/ai/agents/models/ToolboxPolicies.java","src/main/java/com/azure/ai/agents/models/ToolboxSearchPreviewToolboxTool.java","src/main/java/com/azure/ai/agents/models/ToolboxShellContainerAutoEnvironment.java","src/main/java/com/azure/ai/agents/models/ToolboxShellContainerReferenceEnvironment.java","src/main/java/com/azure/ai/agents/models/ToolboxShellEnvironment.java","src/main/java/com/azure/ai/agents/models/ToolboxShellNetworkPolicy.java","src/main/java/com/azure/ai/agents/models/ToolboxShellNetworkPolicyDisabled.java","src/main/java/com/azure/ai/agents/models/ToolboxSkill.java","src/main/java/com/azure/ai/agents/models/ToolboxSkillReference.java","src/main/java/com/azure/ai/agents/models/ToolboxTool.java","src/main/java/com/azure/ai/agents/models/ToolboxToolType.java","src/main/java/com/azure/ai/agents/models/ToolboxVersionDetails.java","src/main/java/com/azure/ai/agents/models/ToolboxVersions.java","src/main/java/com/azure/ai/agents/models/TranscriptTextInputTokenDetails.java","src/main/java/com/azure/ai/agents/models/TranscriptTextUsage.java","src/main/java/com/azure/ai/agents/models/TranscriptTextUsageDuration.java","src/main/java/com/azure/ai/agents/models/TranscriptTextUsageTokens.java","src/main/java/com/azure/ai/agents/models/TranscriptTextUsageType.java","src/main/java/com/azure/ai/agents/models/TranscriptionLanguage.java","src/main/java/com/azure/ai/agents/models/TwilioTelephonyBinding.java","src/main/java/com/azure/ai/agents/models/TwilioTelephonyBindingListItem.java","src/main/java/com/azure/ai/agents/models/UpdateAgentDetailsOptions.java","src/main/java/com/azure/ai/agents/models/UpdateTelephonyBindingInput.java","src/main/java/com/azure/ai/agents/models/UserConversationSimulationAudioEffect.java","src/main/java/com/azure/ai/agents/models/UserConversationSimulationAudioEffectsConfiguration.java","src/main/java/com/azure/ai/agents/models/UserConversationSimulationConfiguration.java","src/main/java/com/azure/ai/agents/models/UserConversationSimulationDefaultInterruptionConfiguration.java","src/main/java/com/azure/ai/agents/models/UserConversationSimulationInterruptionConfiguration.java","src/main/java/com/azure/ai/agents/models/UserConversationSimulationTestCase.java","src/main/java/com/azure/ai/agents/models/UserConversationSimulationUserBehaviorConfiguration.java","src/main/java/com/azure/ai/agents/models/UserProfileMemoryItem.java","src/main/java/com/azure/ai/agents/models/VersionIndicator.java","src/main/java/com/azure/ai/agents/models/VersionIndicatorType.java","src/main/java/com/azure/ai/agents/models/VersionRefIndicator.java","src/main/java/com/azure/ai/agents/models/VersionSelectionRule.java","src/main/java/com/azure/ai/agents/models/VersionSelector.java","src/main/java/com/azure/ai/agents/models/VersionSelectorType.java","src/main/java/com/azure/ai/agents/models/VoiceAgentAnimationConfiguration.java","src/main/java/com/azure/ai/agents/models/VoiceAgentAnimationOutputType.java","src/main/java/com/azure/ai/agents/models/VoiceAgentAudioConfiguration.java","src/main/java/com/azure/ai/agents/models/VoiceAgentAudioInputConfiguration.java","src/main/java/com/azure/ai/agents/models/VoiceAgentAudioOutputConfiguration.java","src/main/java/com/azure/ai/agents/models/VoiceAgentAudioTimestampType.java","src/main/java/com/azure/ai/agents/models/VoiceAgentAvatarConfiguration.java","src/main/java/com/azure/ai/agents/models/VoiceAgentAvatarIceServer.java","src/main/java/com/azure/ai/agents/models/VoiceAgentAvatarOutputProtocol.java","src/main/java/com/azure/ai/agents/models/VoiceAgentAvatarScene.java","src/main/java/com/azure/ai/agents/models/VoiceAgentAvatarType.java","src/main/java/com/azure/ai/agents/models/VoiceAgentAvatarVideoBackground.java","src/main/java/com/azure/ai/agents/models/VoiceAgentAvatarVideoCrop.java","src/main/java/com/azure/ai/agents/models/VoiceAgentAvatarVideoParameters.java","src/main/java/com/azure/ai/agents/models/VoiceAgentAvatarVideoResolution.java","src/main/java/com/azure/ai/agents/models/VoiceAgentAzureSemanticVadEnglishTurnDetection.java","src/main/java/com/azure/ai/agents/models/VoiceAgentAzureSemanticVadMultilingualTurnDetection.java","src/main/java/com/azure/ai/agents/models/VoiceAgentAzureSemanticVadTurnDetection.java","src/main/java/com/azure/ai/agents/models/VoiceAgentDefinition.java","src/main/java/com/azure/ai/agents/models/VoiceAgentEchoCancellation.java","src/main/java/com/azure/ai/agents/models/VoiceAgentEchoCancellationReferenceSource.java","src/main/java/com/azure/ai/agents/models/VoiceAgentEndConversationSystemTool.java","src/main/java/com/azure/ai/agents/models/VoiceAgentEndOfUtteranceDetection.java","src/main/java/com/azure/ai/agents/models/VoiceAgentEndOfUtteranceDetectionModel.java","src/main/java/com/azure/ai/agents/models/VoiceAgentEndOfUtteranceThresholdLevel.java","src/main/java/com/azure/ai/agents/models/VoiceAgentFunctionTool.java","src/main/java/com/azure/ai/agents/models/VoiceAgentFunctionToolType1.java","src/main/java/com/azure/ai/agents/models/VoiceAgentGreetingConfiguration.java","src/main/java/com/azure/ai/agents/models/VoiceAgentInputTranscription.java","src/main/java/com/azure/ai/agents/models/VoiceAgentInputTranscriptionModel.java","src/main/java/com/azure/ai/agents/models/VoiceAgentInterimResponseConfiguration.java","src/main/java/com/azure/ai/agents/models/VoiceAgentInterimResponseTrigger.java","src/main/java/com/azure/ai/agents/models/VoiceAgentLlmGeneratedGreetingConfiguration.java","src/main/java/com/azure/ai/agents/models/VoiceAgentLlmInterimResponseConfiguration.java","src/main/java/com/azure/ai/agents/models/VoiceAgentMcpTool.java","src/main/java/com/azure/ai/agents/models/VoiceAgentNoiseReduction.java","src/main/java/com/azure/ai/agents/models/VoiceAgentNoiseReductionType.java","src/main/java/com/azure/ai/agents/models/VoiceAgentRealtimeResponse.java","src/main/java/com/azure/ai/agents/models/VoiceAgentRealtimeResponseBase.java","src/main/java/com/azure/ai/agents/models/VoiceAgentResponseAnimationBlendshapeDeltaEvent.java","src/main/java/com/azure/ai/agents/models/VoiceAgentResponseAnimationBlendshapeDoneEvent.java","src/main/java/com/azure/ai/agents/models/VoiceAgentResponseAnimationVisemeDeltaEvent.java","src/main/java/com/azure/ai/agents/models/VoiceAgentResponseAnimationVisemeDoneEvent.java","src/main/java/com/azure/ai/agents/models/VoiceAgentResponseAudioConfig.java","src/main/java/com/azure/ai/agents/models/VoiceAgentResponseAudioTimestampDeltaEvent.java","src/main/java/com/azure/ai/agents/models/VoiceAgentResponseAudioTimestampDoneEvent.java","src/main/java/com/azure/ai/agents/models/VoiceAgentResponseCreateOptions.java","src/main/java/com/azure/ai/agents/models/VoiceAgentResponseVideoDeltaEvent.java","src/main/java/com/azure/ai/agents/models/VoiceAgentRtcCallErrorDetails.java","src/main/java/com/azure/ai/agents/models/VoiceAgentRtcCallErrorEvent.java","src/main/java/com/azure/ai/agents/models/VoiceAgentRtcCallSdpCreateEvent.java","src/main/java/com/azure/ai/agents/models/VoiceAgentRtcCallSdpCreatedEvent.java","src/main/java/com/azure/ai/agents/models/VoiceAgentSemanticVadTurnDetection.java","src/main/java/com/azure/ai/agents/models/VoiceAgentServerVadTurnDetection.java","src/main/java/com/azure/ai/agents/models/VoiceAgentSessionAvatarConfiguration.java","src/main/java/com/azure/ai/agents/models/VoiceAgentSessionAvatarConnectEvent.java","src/main/java/com/azure/ai/agents/models/VoiceAgentSessionAvatarConnectingEvent.java","src/main/java/com/azure/ai/agents/models/VoiceAgentSessionAvatarSwitchToIdleEvent.java","src/main/java/com/azure/ai/agents/models/VoiceAgentSessionAvatarSwitchToSpeakingEvent.java","src/main/java/com/azure/ai/agents/models/VoiceAgentSessionIncludeOption.java","src/main/java/com/azure/ai/agents/models/VoiceAgentSessionResponseConfiguration.java","src/main/java/com/azure/ai/agents/models/VoiceAgentSessionSubagentAbortedEvent.java","src/main/java/com/azure/ai/agents/models/VoiceAgentSessionSubagentCompletedEvent.java","src/main/java/com/azure/ai/agents/models/VoiceAgentSessionSubagentStartedEvent.java","src/main/java/com/azure/ai/agents/models/VoiceAgentSessionUpdateConfiguration.java","src/main/java/com/azure/ai/agents/models/VoiceAgentStaticInterimResponseConfiguration.java","src/main/java/com/azure/ai/agents/models/VoiceAgentSubagent.java","src/main/java/com/azure/ai/agents/models/VoiceAgentSubagentAbortReason.java","src/main/java/com/azure/ai/agents/models/VoiceAgentSubagentConfiguration.java","src/main/java/com/azure/ai/agents/models/VoiceAgentSubagentResponsePolicy.java","src/main/java/com/azure/ai/agents/models/VoiceAgentSystemTool.java","src/main/java/com/azure/ai/agents/models/VoiceAgentSystemToolName.java","src/main/java/com/azure/ai/agents/models/VoiceAgentTemplateGreetingConfiguration.java","src/main/java/com/azure/ai/agents/models/VoiceAgentTool.java","src/main/java/com/azure/ai/agents/models/VoiceAgentToolResponseScheduling.java","src/main/java/com/azure/ai/agents/models/VoiceAgentToolboxTool.java","src/main/java/com/azure/ai/agents/models/VoiceAgentTranscriptionPhrase.java","src/main/java/com/azure/ai/agents/models/VoiceAgentTranscriptionWord.java","src/main/java/com/azure/ai/agents/models/VoiceAgentTransport.java","src/main/java/com/azure/ai/agents/models/VoiceAgentTurnDetectionConfiguration.java","src/main/java/com/azure/ai/agents/models/VoiceAgentTurnDetectionType.java","src/main/java/com/azure/ai/agents/models/VoiceAgentWarningDetails.java","src/main/java/com/azure/ai/agents/models/VoiceAgentWarningEvent.java","src/main/java/com/azure/ai/agents/models/VoiceAudioCodec.java","src/main/java/com/azure/ai/agents/models/VoiceAudioContainerFormat.java","src/main/java/com/azure/ai/agents/models/VoiceAudioItem.java","src/main/java/com/azure/ai/agents/models/VoiceAudioRole.java","src/main/java/com/azure/ai/agents/models/VoiceConversation.java","src/main/java/com/azure/ai/agents/models/VoiceConversationEngine.java","src/main/java/com/azure/ai/agents/models/VoiceConversationStatus.java","src/main/java/com/azure/ai/agents/models/VoiceGeneratedAudioItem.java","src/main/java/com/azure/ai/agents/models/VoiceHostedAgentConversationEngine.java","src/main/java/com/azure/ai/agents/models/VoiceIds.java","src/main/java/com/azure/ai/agents/models/VoiceModelType.java","src/main/java/com/azure/ai/agents/models/VoiceOutputModality.java","src/main/java/com/azure/ai/agents/models/VoiceRecording.java","src/main/java/com/azure/ai/agents/models/VoiceRecordingChannelLayout.java","src/main/java/com/azure/ai/agents/models/VoiceResponse.java","src/main/java/com/azure/ai/agents/models/VoiceResponseAudio.java","src/main/java/com/azure/ai/agents/models/VoiceResponseAudioOutput.java","src/main/java/com/azure/ai/agents/models/VoiceResponseBase.java","src/main/java/com/azure/ai/agents/models/VoiceResponseBaseObject.java","src/main/java/com/azure/ai/agents/models/VoiceType.java","src/main/java/com/azure/ai/agents/models/WebIqPreviewTool.java","src/main/java/com/azure/ai/agents/models/WebIqPreviewToolboxTool.java","src/main/java/com/azure/ai/agents/models/WebSearchApproximateLocation.java","src/main/java/com/azure/ai/agents/models/WebSearchConfiguration.java","src/main/java/com/azure/ai/agents/models/WebSearchPreviewTool.java","src/main/java/com/azure/ai/agents/models/WebSearchTool.java","src/main/java/com/azure/ai/agents/models/WebSearchToolFilters.java","src/main/java/com/azure/ai/agents/models/WebSearchToolSearchContextSize.java","src/main/java/com/azure/ai/agents/models/WebSearchToolboxTool.java","src/main/java/com/azure/ai/agents/models/WorkIqPreviewTool.java","src/main/java/com/azure/ai/agents/models/WorkIqPreviewToolboxTool.java","src/main/java/com/azure/ai/agents/models/WorkflowAgentDefinition.java","src/main/java/com/azure/ai/agents/models/package-info.java","src/main/java/com/azure/ai/agents/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file diff --git a/sdk/ai/azure-ai-agents/src/test/java/com/azure/ai/agents/MemoryStoresAsyncTests.java b/sdk/ai/azure-ai-agents/src/test/java/com/azure/ai/agents/MemoryStoresAsyncTests.java index 93d8e0a0387f1..f32a490b335eb 100644 --- a/sdk/ai/azure-ai-agents/src/test/java/com/azure/ai/agents/MemoryStoresAsyncTests.java +++ b/sdk/ai/azure-ai-agents/src/test/java/com/azure/ai/agents/MemoryStoresAsyncTests.java @@ -19,6 +19,7 @@ import com.azure.core.util.polling.PollerFlux; import com.openai.models.responses.EasyInputMessage; import com.openai.models.responses.ResponseInputItem; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Timeout; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.MethodSource; @@ -37,6 +38,7 @@ @Timeout(30) public class MemoryStoresAsyncTests extends ClientTestBase { + @Disabled("Paging behavior changed; the test may need to be re-recorded.") @ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS) @MethodSource("com.azure.ai.agents.TestUtils#getTestParameters") public void basicMemoryStoresCrud(HttpClient httpClient, AgentsServiceVersion serviceVersion) { diff --git a/sdk/ai/azure-ai-agents/src/test/java/com/azure/ai/agents/MemoryStoresTests.java b/sdk/ai/azure-ai-agents/src/test/java/com/azure/ai/agents/MemoryStoresTests.java index dd0d1890ac6da..7cb6506ae0298 100644 --- a/sdk/ai/azure-ai-agents/src/test/java/com/azure/ai/agents/MemoryStoresTests.java +++ b/sdk/ai/azure-ai-agents/src/test/java/com/azure/ai/agents/MemoryStoresTests.java @@ -10,6 +10,7 @@ import com.azure.core.util.polling.SyncPoller; import com.openai.models.responses.EasyInputMessage; import com.openai.models.responses.ResponseInputItem; +import org.junit.jupiter.api.Disabled; import org.junit.jupiter.api.Timeout; import org.junit.jupiter.params.ParameterizedTest; import org.junit.jupiter.params.provider.MethodSource; @@ -28,6 +29,7 @@ public class MemoryStoresTests extends ClientTestBase { private static final Duration POLL_TIMEOUT = Duration.ofSeconds(30); + @Disabled("Paging behavior changed; the test may need to be re-recorded.") @ParameterizedTest(name = DISPLAY_NAME_WITH_ARGUMENTS) @MethodSource("com.azure.ai.agents.TestUtils#getTestParameters") public void basicMemoryStoresCrud(HttpClient httpClient, AgentsServiceVersion serviceVersion) { diff --git a/sdk/ai/azure-ai-agents/tsp-location.yaml b/sdk/ai/azure-ai-agents/tsp-location.yaml index 6fd64de4af639..d58605e11ab15 100644 --- a/sdk/ai/azure-ai-agents/tsp-location.yaml +++ b/sdk/ai/azure-ai-agents/tsp-location.yaml @@ -1,5 +1,5 @@ directory: specification/ai-foundry/data-plane/Foundry/src/sdk-java-azure-ai-agents -commit: ba8a5e96e8c92e540062922f7bed5a06920f400c +commit: cd75f537d67aef85e3278a6e155dd12945701081 repo: Azure/azure-rest-api-specs additionalDirectories: - specification/ai-foundry/data-plane/Foundry/src/agents diff --git a/sdk/ai/azure-ai-projects/customizations/src/main/java/ProjectsCustomizations.java b/sdk/ai/azure-ai-projects/customizations/src/main/java/ProjectsCustomizations.java index c86467f01a62d..f3a5b8c2e66d2 100644 --- a/sdk/ai/azure-ai-projects/customizations/src/main/java/ProjectsCustomizations.java +++ b/sdk/ai/azure-ai-projects/customizations/src/main/java/ProjectsCustomizations.java @@ -1,6 +1,7 @@ import com.azure.autorest.customization.ClassCustomization; import com.azure.autorest.customization.Customization; import com.azure.autorest.customization.LibraryCustomization; +import com.github.javaparser.StaticJavaParser; import com.github.javaparser.ast.Modifier; import com.github.javaparser.ast.body.FieldDeclaration; import com.github.javaparser.ast.body.MethodDeclaration; @@ -27,11 +28,40 @@ public class ProjectsCustomizations extends Customization { @Override public void customize(LibraryCustomization libraryCustomization, Logger logger) { + stopPagingWhenHasMoreIsFalse(libraryCustomization, logger); protectPolymorphicBaseConstructors(libraryCustomization); annotateBetaClients(libraryCustomization, logger); annotateBetaFields(libraryCustomization, loadBetaAnnotations(logger), logger); } + private void stopPagingWhenHasMoreIsFalse(LibraryCustomization customization, Logger logger) { + int[] customizedMethods = new int[1]; + customization.getPackage("com.azure.ai.projects.implementation").listClasses().forEach(classCustomization -> + classCustomization.customizeAst(ast -> ast.getClassByName(classCustomization.getClassName()) + .ifPresent(clazz -> clazz.getMethodsByName("getNextLink").forEach(method -> { + method.setBody(StaticJavaParser.parseBlock("{\n" + + " try {\n" + + " Object value = binaryData.toObject(Map.class);\n" + + " if (Boolean.FALSE.equals(((Map) value).get(\"has_more\"))) {\n" + + " return null;\n" + + " }\n" + + " for (String segment : path) {\n" + + " value = ((Map) value).get(segment);\n" + + " }\n" + + " return (String) value;\n" + + " } catch (RuntimeException e) {\n" + + " return null;\n" + + " }\n" + + "}")); + customizedMethods[0]++; + })))); + + if (customizedMethods[0] == 0) { + throw new IllegalStateException("No generated getNextLink methods were found."); + } + logger.info("Customized {} paging continuation methods to honor has_more.", customizedMethods[0]); + } + private void protectPolymorphicBaseConstructors(LibraryCustomization customization) { List classNames = Arrays.asList("DataGenerationJobInputs", "DataGenerationJobConfiguration", "DataGenerationJobSource", "EvaluationTaxonomyInput", "EvaluatorDefinition", diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/BetaAgentInsightMonitorsAsyncClient.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/BetaAgentInsightMonitorsAsyncClient.java index 040b00d1d165e..3993b0d3ccfd5 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/BetaAgentInsightMonitorsAsyncClient.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/BetaAgentInsightMonitorsAsyncClient.java @@ -941,65 +941,6 @@ public Mono> updateAgentInsightWithResponse(String monitorI return this.serviceClient.updateAgentInsightWithResponseAsync(monitorId, insightId, update, requestOptions); } - /** - * List Agent Insights monitors, optionally filtered by agent name. - * - * @param after A cursor that identifies the last item in the previous page. - * @param before A cursor that identifies the first item in the next page. - * @param limit The maximum number of items to return. Defaults to 20. - * @param order Sort order by creation time. Defaults to descending. - * @param agentName Filter monitors by agent name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAgentInsightMonitors(String after, String before, Integer limit, - PageOrder order, String agentName) { - // Generated convenience method for listAgentInsightMonitors - RequestOptions requestOptions = new RequestOptions(); - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (agentName != null) { - requestOptions.addQueryParam("agent_name", agentName, false); - } - PagedFlux pagedFluxResponse = listAgentInsightMonitors(requestOptions); - return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { - Flux> flux; - if (pageSizeParam == null) { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage().take(1) - : pagedFluxResponse.byPage(continuationTokenParam).take(1); - } else { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage(pageSizeParam).take(1) - : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); - } - return flux.map(pagedResponse -> new PagedResponseBase( - pagedResponse.getRequest(), pagedResponse.getStatusCode(), pagedResponse.getHeaders(), - pagedResponse.getValue() - .stream() - .map(protocolMethodData -> protocolMethodData.toObject(AgentInsightMonitorListItem.class)) - .collect(Collectors.toList()), - pagedResponse.getContinuationToken(), null)); - }); - } - /** * List Agent Insights monitors, optionally filtered by agent name. * @@ -1015,7 +956,7 @@ public PagedFlux listAgentInsightMonitors(String af public PagedFlux listAgentInsightMonitors() { // Generated convenience method for listAgentInsightMonitors RequestOptions requestOptions = new RequestOptions(); - PagedFlux pagedFluxResponse = listAgentInsightMonitors(requestOptions); + PagedFlux pagedFluxResponse = serviceClient.listAgentInsightMonitorsAsync(null, requestOptions); return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { Flux> flux; if (pageSizeParam == null) { @@ -1203,70 +1144,6 @@ public PollerFlux beginCreateAgentInsigh requestOptions); } - /** - * List Agent Insights runs for a monitor. - * - * @param monitorId The identifier of the monitor. - * @param after A cursor that identifies the last item in the previous page. - * @param before A cursor that identifies the first item in the next page. - * @param limit The maximum number of items to return. Defaults to 20. - * @param order Sort order by creation time. Defaults to descending. - * @param status Filter runs by status. - * @param trigger Filter runs by trigger. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAgentInsightRuns(String monitorId, String after, String before, Integer limit, - PageOrder order, JobStatus status, AgentInsightRunTrigger trigger) { - // Generated convenience method for listAgentInsightRuns - RequestOptions requestOptions = new RequestOptions(); - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (status != null) { - requestOptions.addQueryParam("status", status.toString(), false); - } - if (trigger != null) { - requestOptions.addQueryParam("trigger", trigger.toString(), false); - } - PagedFlux pagedFluxResponse = listAgentInsightRuns(monitorId, requestOptions); - return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { - Flux> flux; - if (pageSizeParam == null) { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage().take(1) - : pagedFluxResponse.byPage(continuationTokenParam).take(1); - } else { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage(pageSizeParam).take(1) - : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); - } - return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), - pagedResponse.getStatusCode(), pagedResponse.getHeaders(), - pagedResponse.getValue() - .stream() - .map(protocolMethodData -> protocolMethodData.toObject(AgentInsightRun.class)) - .collect(Collectors.toList()), - pagedResponse.getContinuationToken(), null)); - }); - } - /** * List Agent Insights runs for a monitor. * @@ -1284,7 +1161,8 @@ public PagedFlux listAgentInsightRuns(String monitorId, String public PagedFlux listAgentInsightRuns(String monitorId) { // Generated convenience method for listAgentInsightRuns RequestOptions requestOptions = new RequestOptions(); - PagedFlux pagedFluxResponse = listAgentInsightRuns(monitorId, requestOptions); + PagedFlux pagedFluxResponse + = serviceClient.listAgentInsightRunsAsync(null, monitorId, requestOptions); return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { Flux> flux; if (pageSizeParam == null) { @@ -1351,80 +1229,6 @@ public Mono cancelAgentInsightRun(String monitorId, String runI .map(protocolMethodData -> protocolMethodData.toObject(AgentInsightRun.class)); } - /** - * List current insights for an Agent Insights monitor. - * - * @param monitorId The identifier of the monitor. - * @param after A cursor that identifies the last item in the previous page. - * @param before A cursor that identifies the first item in the next page. - * @param limit The maximum number of items to return. Defaults to 20. - * @param order Sort order by creation time. Defaults to descending. - * @param category Filter insights by category. - * @param severity Filter insights by severity. - * @param status Filter insights by lifecycle status. - * @param includeDetails Whether to include expanded insight details such as evidence and run links in the response. - * Defaults to false. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listAgentInsights(String monitorId, String after, String before, Integer limit, - PageOrder order, String category, AgentInsightSeverity severity, AgentInsightStatus status, - Boolean includeDetails) { - // Generated convenience method for listAgentInsights - RequestOptions requestOptions = new RequestOptions(); - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (category != null) { - requestOptions.addQueryParam("category", category, false); - } - if (severity != null) { - requestOptions.addQueryParam("severity", severity.toString(), false); - } - if (status != null) { - requestOptions.addQueryParam("status", status.toString(), false); - } - if (includeDetails != null) { - requestOptions.addQueryParam("include_details", String.valueOf(includeDetails), false); - } - PagedFlux pagedFluxResponse = listAgentInsights(monitorId, requestOptions); - return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { - Flux> flux; - if (pageSizeParam == null) { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage().take(1) - : pagedFluxResponse.byPage(continuationTokenParam).take(1); - } else { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage(pageSizeParam).take(1) - : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); - } - return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), - pagedResponse.getStatusCode(), pagedResponse.getHeaders(), - pagedResponse.getValue() - .stream() - .map(protocolMethodData -> protocolMethodData.toObject(AgentInsight.class)) - .collect(Collectors.toList()), - pagedResponse.getContinuationToken(), null)); - }); - } - /** * List current insights for an Agent Insights monitor. * @@ -1442,7 +1246,7 @@ public PagedFlux listAgentInsights(String monitorId, String after, public PagedFlux listAgentInsights(String monitorId) { // Generated convenience method for listAgentInsights RequestOptions requestOptions = new RequestOptions(); - PagedFlux pagedFluxResponse = listAgentInsights(monitorId, requestOptions); + PagedFlux pagedFluxResponse = serviceClient.listAgentInsightsAsync(null, monitorId, requestOptions); return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { Flux> flux; if (pageSizeParam == null) { @@ -1541,4 +1345,194 @@ public Mono updateAgentInsight(String monitorId, String insightId, .flatMap(FluxUtil::toMono) .map(protocolMethodData -> protocolMethodData.toObject(AgentInsight.class)); } + + /** + * List Agent Insights monitors, optionally filtered by agent name. + * + * @param after A cursor that identifies the last item in the previous page. + * @param before A cursor that identifies the first item in the next page. + * @param limit The maximum number of items to return. Defaults to 20. + * @param order Sort order by creation time. Defaults to descending. + * @param agentName Filter monitors by agent name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAgentInsightMonitors(String after, String before, Integer limit, + PageOrder order, String agentName) { + // Generated convenience method for listAgentInsightMonitors + RequestOptions requestOptions = new RequestOptions(); + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (agentName != null) { + requestOptions.addQueryParam("agent_name", agentName, false); + } + PagedFlux pagedFluxResponse = serviceClient.listAgentInsightMonitorsAsync(after, requestOptions); + return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { + Flux> flux; + if (pageSizeParam == null) { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage().take(1) + : pagedFluxResponse.byPage(continuationTokenParam).take(1); + } else { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage(pageSizeParam).take(1) + : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); + } + return flux.map(pagedResponse -> new PagedResponseBase( + pagedResponse.getRequest(), pagedResponse.getStatusCode(), pagedResponse.getHeaders(), + pagedResponse.getValue() + .stream() + .map(protocolMethodData -> protocolMethodData.toObject(AgentInsightMonitorListItem.class)) + .collect(Collectors.toList()), + pagedResponse.getContinuationToken(), null)); + }); + } + + /** + * List Agent Insights runs for a monitor. + * + * @param monitorId The identifier of the monitor. + * @param after A cursor that identifies the last item in the previous page. + * @param before A cursor that identifies the first item in the next page. + * @param limit The maximum number of items to return. Defaults to 20. + * @param order Sort order by creation time. Defaults to descending. + * @param status Filter runs by status. + * @param trigger Filter runs by trigger. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAgentInsightRuns(String monitorId, String after, String before, Integer limit, + PageOrder order, JobStatus status, AgentInsightRunTrigger trigger) { + // Generated convenience method for listAgentInsightRuns + RequestOptions requestOptions = new RequestOptions(); + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (status != null) { + requestOptions.addQueryParam("status", status.toString(), false); + } + if (trigger != null) { + requestOptions.addQueryParam("trigger", trigger.toString(), false); + } + PagedFlux pagedFluxResponse + = serviceClient.listAgentInsightRunsAsync(after, monitorId, requestOptions); + return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { + Flux> flux; + if (pageSizeParam == null) { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage().take(1) + : pagedFluxResponse.byPage(continuationTokenParam).take(1); + } else { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage(pageSizeParam).take(1) + : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); + } + return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), + pagedResponse.getStatusCode(), pagedResponse.getHeaders(), + pagedResponse.getValue() + .stream() + .map(protocolMethodData -> protocolMethodData.toObject(AgentInsightRun.class)) + .collect(Collectors.toList()), + pagedResponse.getContinuationToken(), null)); + }); + } + + /** + * List current insights for an Agent Insights monitor. + * + * @param monitorId The identifier of the monitor. + * @param after A cursor that identifies the last item in the previous page. + * @param before A cursor that identifies the first item in the next page. + * @param limit The maximum number of items to return. Defaults to 20. + * @param order Sort order by creation time. Defaults to descending. + * @param category Filter insights by category. + * @param severity Filter insights by severity. + * @param status Filter insights by lifecycle status. + * @param includeDetails Whether to include expanded insight details such as evidence and run links in the response. + * Defaults to false. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAgentInsights(String monitorId, String after, String before, Integer limit, + PageOrder order, String category, AgentInsightSeverity severity, AgentInsightStatus status, + Boolean includeDetails) { + // Generated convenience method for listAgentInsights + RequestOptions requestOptions = new RequestOptions(); + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (category != null) { + requestOptions.addQueryParam("category", category, false); + } + if (severity != null) { + requestOptions.addQueryParam("severity", severity.toString(), false); + } + if (status != null) { + requestOptions.addQueryParam("status", status.toString(), false); + } + if (includeDetails != null) { + requestOptions.addQueryParam("include_details", String.valueOf(includeDetails), false); + } + PagedFlux pagedFluxResponse + = serviceClient.listAgentInsightsAsync(after, monitorId, requestOptions); + return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { + Flux> flux; + if (pageSizeParam == null) { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage().take(1) + : pagedFluxResponse.byPage(continuationTokenParam).take(1); + } else { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage(pageSizeParam).take(1) + : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); + } + return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), + pagedResponse.getStatusCode(), pagedResponse.getHeaders(), + pagedResponse.getValue() + .stream() + .map(protocolMethodData -> protocolMethodData.toObject(AgentInsight.class)) + .collect(Collectors.toList()), + pagedResponse.getContinuationToken(), null)); + }); + } } diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/BetaAgentInsightMonitorsClient.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/BetaAgentInsightMonitorsClient.java index d548f619c2e48..8dfbd6fba9c6f 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/BetaAgentInsightMonitorsClient.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/BetaAgentInsightMonitorsClient.java @@ -932,47 +932,6 @@ public Response updateAgentInsightWithResponse(String monitorId, Str return this.serviceClient.updateAgentInsightWithResponse(monitorId, insightId, update, requestOptions); } - /** - * List Agent Insights monitors, optionally filtered by agent name. - * - * @param after A cursor that identifies the last item in the previous page. - * @param before A cursor that identifies the first item in the next page. - * @param limit The maximum number of items to return. Defaults to 20. - * @param order Sort order by creation time. Defaults to descending. - * @param agentName Filter monitors by agent name. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listAgentInsightMonitors(String after, String before, - Integer limit, PageOrder order, String agentName) { - // Generated convenience method for listAgentInsightMonitors - RequestOptions requestOptions = new RequestOptions(); - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (agentName != null) { - requestOptions.addQueryParam("agent_name", agentName, false); - } - return serviceClient.listAgentInsightMonitors(requestOptions) - .mapPage(bodyItemValue -> bodyItemValue.toObject(AgentInsightMonitorListItem.class)); - } - /** * List Agent Insights monitors, optionally filtered by agent name. * @@ -988,7 +947,7 @@ public PagedIterable listAgentInsightMonitors(Strin public PagedIterable listAgentInsightMonitors() { // Generated convenience method for listAgentInsightMonitors RequestOptions requestOptions = new RequestOptions(); - return serviceClient.listAgentInsightMonitors(requestOptions) + return serviceClient.listAgentInsightMonitors(null, requestOptions) .mapPage(bodyItemValue -> bodyItemValue.toObject(AgentInsightMonitorListItem.class)); } @@ -1150,52 +1109,6 @@ public SyncPoller beginCreateAgentInsigh return serviceClient.beginCreateAgentInsightRunWithModel(monitorId, BinaryData.fromObject(run), requestOptions); } - /** - * List Agent Insights runs for a monitor. - * - * @param monitorId The identifier of the monitor. - * @param after A cursor that identifies the last item in the previous page. - * @param before A cursor that identifies the first item in the next page. - * @param limit The maximum number of items to return. Defaults to 20. - * @param order Sort order by creation time. Defaults to descending. - * @param status Filter runs by status. - * @param trigger Filter runs by trigger. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listAgentInsightRuns(String monitorId, String after, String before, - Integer limit, PageOrder order, JobStatus status, AgentInsightRunTrigger trigger) { - // Generated convenience method for listAgentInsightRuns - RequestOptions requestOptions = new RequestOptions(); - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (status != null) { - requestOptions.addQueryParam("status", status.toString(), false); - } - if (trigger != null) { - requestOptions.addQueryParam("trigger", trigger.toString(), false); - } - return serviceClient.listAgentInsightRuns(monitorId, requestOptions) - .mapPage(bodyItemValue -> bodyItemValue.toObject(AgentInsightRun.class)); - } - /** * List Agent Insights runs for a monitor. * @@ -1213,7 +1126,7 @@ public PagedIterable listAgentInsightRuns(String monitorId, Str public PagedIterable listAgentInsightRuns(String monitorId) { // Generated convenience method for listAgentInsightRuns RequestOptions requestOptions = new RequestOptions(); - return serviceClient.listAgentInsightRuns(monitorId, requestOptions) + return serviceClient.listAgentInsightRuns(null, monitorId, requestOptions) .mapPage(bodyItemValue -> bodyItemValue.toObject(AgentInsightRun.class)); } @@ -1261,62 +1174,6 @@ public AgentInsightRun cancelAgentInsightRun(String monitorId, String runId) { .toObject(AgentInsightRun.class); } - /** - * List current insights for an Agent Insights monitor. - * - * @param monitorId The identifier of the monitor. - * @param after A cursor that identifies the last item in the previous page. - * @param before A cursor that identifies the first item in the next page. - * @param limit The maximum number of items to return. Defaults to 20. - * @param order Sort order by creation time. Defaults to descending. - * @param category Filter insights by category. - * @param severity Filter insights by severity. - * @param status Filter insights by lifecycle status. - * @param includeDetails Whether to include expanded insight details such as evidence and run links in the response. - * Defaults to false. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listAgentInsights(String monitorId, String after, String before, Integer limit, - PageOrder order, String category, AgentInsightSeverity severity, AgentInsightStatus status, - Boolean includeDetails) { - // Generated convenience method for listAgentInsights - RequestOptions requestOptions = new RequestOptions(); - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (category != null) { - requestOptions.addQueryParam("category", category, false); - } - if (severity != null) { - requestOptions.addQueryParam("severity", severity.toString(), false); - } - if (status != null) { - requestOptions.addQueryParam("status", status.toString(), false); - } - if (includeDetails != null) { - requestOptions.addQueryParam("include_details", String.valueOf(includeDetails), false); - } - return serviceClient.listAgentInsights(monitorId, requestOptions) - .mapPage(bodyItemValue -> bodyItemValue.toObject(AgentInsight.class)); - } - /** * List current insights for an Agent Insights monitor. * @@ -1334,7 +1191,7 @@ public PagedIterable listAgentInsights(String monitorId, String af public PagedIterable listAgentInsights(String monitorId) { // Generated convenience method for listAgentInsights RequestOptions requestOptions = new RequestOptions(); - return serviceClient.listAgentInsights(monitorId, requestOptions) + return serviceClient.listAgentInsights(null, monitorId, requestOptions) .mapPage(bodyItemValue -> bodyItemValue.toObject(AgentInsight.class)); } @@ -1414,4 +1271,138 @@ public AgentInsight updateAgentInsight(String monitorId, String insightId, Agent return updateAgentInsightWithResponse(monitorId, insightId, updateInBinaryData, requestOptions).getValue() .toObject(AgentInsight.class); } + + /** + * List Agent Insights monitors, optionally filtered by agent name. + * + * @param after A cursor that identifies the last item in the previous page. + * @param before A cursor that identifies the first item in the next page. + * @param limit The maximum number of items to return. Defaults to 20. + * @param order Sort order by creation time. Defaults to descending. + * @param agentName Filter monitors by agent name. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listAgentInsightMonitors(String after, String before, + Integer limit, PageOrder order, String agentName) { + // Generated convenience method for listAgentInsightMonitors + RequestOptions requestOptions = new RequestOptions(); + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (agentName != null) { + requestOptions.addQueryParam("agent_name", agentName, false); + } + return serviceClient.listAgentInsightMonitors(after, requestOptions) + .mapPage(bodyItemValue -> bodyItemValue.toObject(AgentInsightMonitorListItem.class)); + } + + /** + * List Agent Insights runs for a monitor. + * + * @param monitorId The identifier of the monitor. + * @param after A cursor that identifies the last item in the previous page. + * @param before A cursor that identifies the first item in the next page. + * @param limit The maximum number of items to return. Defaults to 20. + * @param order Sort order by creation time. Defaults to descending. + * @param status Filter runs by status. + * @param trigger Filter runs by trigger. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listAgentInsightRuns(String monitorId, String after, String before, + Integer limit, PageOrder order, JobStatus status, AgentInsightRunTrigger trigger) { + // Generated convenience method for listAgentInsightRuns + RequestOptions requestOptions = new RequestOptions(); + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (status != null) { + requestOptions.addQueryParam("status", status.toString(), false); + } + if (trigger != null) { + requestOptions.addQueryParam("trigger", trigger.toString(), false); + } + return serviceClient.listAgentInsightRuns(after, monitorId, requestOptions) + .mapPage(bodyItemValue -> bodyItemValue.toObject(AgentInsightRun.class)); + } + + /** + * List current insights for an Agent Insights monitor. + * + * @param monitorId The identifier of the monitor. + * @param after A cursor that identifies the last item in the previous page. + * @param before A cursor that identifies the first item in the next page. + * @param limit The maximum number of items to return. Defaults to 20. + * @param order Sort order by creation time. Defaults to descending. + * @param category Filter insights by category. + * @param severity Filter insights by severity. + * @param status Filter insights by lifecycle status. + * @param includeDetails Whether to include expanded insight details such as evidence and run links in the response. + * Defaults to false. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listAgentInsights(String monitorId, String after, String before, Integer limit, + PageOrder order, String category, AgentInsightSeverity severity, AgentInsightStatus status, + Boolean includeDetails) { + // Generated convenience method for listAgentInsights + RequestOptions requestOptions = new RequestOptions(); + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (category != null) { + requestOptions.addQueryParam("category", category, false); + } + if (severity != null) { + requestOptions.addQueryParam("severity", severity.toString(), false); + } + if (status != null) { + requestOptions.addQueryParam("status", status.toString(), false); + } + if (includeDetails != null) { + requestOptions.addQueryParam("include_details", String.valueOf(includeDetails), false); + } + return serviceClient.listAgentInsights(after, monitorId, requestOptions) + .mapPage(bodyItemValue -> bodyItemValue.toObject(AgentInsight.class)); + } } diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/BetaSkillsAsyncClient.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/BetaSkillsAsyncClient.java index 3966dd6bd2dfc..56252295899db 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/BetaSkillsAsyncClient.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/BetaSkillsAsyncClient.java @@ -517,68 +517,6 @@ public Mono getSkill(String name) { .map(protocolMethodData -> protocolMethodData.toObject(SkillDetails.class)); } - /** - * List skills - * - * Returns the skills available in the current project. - * - * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the - * default is 20. - * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` - * for descending order. - * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include after=obj_foo in order to fetch the next page of the list. - * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include before=obj_foo in order to fetch the previous page of the list. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listSkills(Integer limit, PageOrder order, String after, String before) { - // Generated convenience method for listSkills - RequestOptions requestOptions = new RequestOptions(); - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - PagedFlux pagedFluxResponse = listSkills(requestOptions); - return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { - Flux> flux; - if (pageSizeParam == null) { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage().take(1) - : pagedFluxResponse.byPage(continuationTokenParam).take(1); - } else { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage(pageSizeParam).take(1) - : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); - } - return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), - pagedResponse.getStatusCode(), pagedResponse.getHeaders(), - pagedResponse.getValue() - .stream() - .map(protocolMethodData -> protocolMethodData.toObject(SkillDetails.class)) - .collect(Collectors.toList()), - pagedResponse.getContinuationToken(), null)); - }); - } - /** * List skills * @@ -596,7 +534,7 @@ public PagedFlux listSkills(Integer limit, PageOrder order, String public PagedFlux listSkills() { // Generated convenience method for listSkills RequestOptions requestOptions = new RequestOptions(); - PagedFlux pagedFluxResponse = listSkills(requestOptions); + PagedFlux pagedFluxResponse = serviceClient.listSkillsAsync(null, requestOptions); return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { Flux> flux; if (pageSizeParam == null) { @@ -730,70 +668,6 @@ public Mono createSkillVersionFromFiles(String name, CreateSkillVe .map(protocolMethodData -> protocolMethodData.toObject(SkillVersion.class)); } - /** - * List skill versions - * - * Returns the available versions for the specified skill. - * - * @param name The name of the skill to list versions for. - * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the - * default is 20. - * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` - * for descending order. - * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include after=obj_foo in order to fetch the next page of the list. - * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include before=obj_foo in order to fetch the previous page of the list. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listSkillVersions(String name, Integer limit, PageOrder order, String after, - String before) { - // Generated convenience method for listSkillVersions - RequestOptions requestOptions = new RequestOptions(); - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - PagedFlux pagedFluxResponse = listSkillVersions(name, requestOptions); - return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { - Flux> flux; - if (pageSizeParam == null) { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage().take(1) - : pagedFluxResponse.byPage(continuationTokenParam).take(1); - } else { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage(pageSizeParam).take(1) - : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); - } - return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), - pagedResponse.getStatusCode(), pagedResponse.getHeaders(), - pagedResponse.getValue() - .stream() - .map(protocolMethodData -> protocolMethodData.toObject(SkillVersion.class)) - .collect(Collectors.toList()), - pagedResponse.getContinuationToken(), null)); - }); - } - /** * List skill versions * @@ -813,7 +687,7 @@ public PagedFlux listSkillVersions(String name, Integer limit, Pag public PagedFlux listSkillVersions(String name) { // Generated convenience method for listSkillVersions RequestOptions requestOptions = new RequestOptions(); - PagedFlux pagedFluxResponse = listSkillVersions(name, requestOptions); + PagedFlux pagedFluxResponse = serviceClient.listSkillVersionsAsync(null, name, requestOptions); return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { Flux> flux; if (pageSizeParam == null) { @@ -940,4 +814,124 @@ Mono> createSkillVersionFromFilesWithResponseInternal(Strin // and hence not generated. return this.serviceClient.createSkillVersionFromFilesWithResponseInternalAsync(name, content, requestOptions); } + + /** + * List skills + * + * Returns the skills available in the current project. + * + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listSkills(Integer limit, PageOrder order, String after, String before) { + // Generated convenience method for listSkills + RequestOptions requestOptions = new RequestOptions(); + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + PagedFlux pagedFluxResponse = serviceClient.listSkillsAsync(after, requestOptions); + return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { + Flux> flux; + if (pageSizeParam == null) { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage().take(1) + : pagedFluxResponse.byPage(continuationTokenParam).take(1); + } else { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage(pageSizeParam).take(1) + : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); + } + return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), + pagedResponse.getStatusCode(), pagedResponse.getHeaders(), + pagedResponse.getValue() + .stream() + .map(protocolMethodData -> protocolMethodData.toObject(SkillDetails.class)) + .collect(Collectors.toList()), + pagedResponse.getContinuationToken(), null)); + }); + } + + /** + * List skill versions + * + * Returns the available versions for the specified skill. + * + * @param name The name of the skill to list versions for. + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listSkillVersions(String name, Integer limit, PageOrder order, String after, + String before) { + // Generated convenience method for listSkillVersions + RequestOptions requestOptions = new RequestOptions(); + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + PagedFlux pagedFluxResponse = serviceClient.listSkillVersionsAsync(after, name, requestOptions); + return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { + Flux> flux; + if (pageSizeParam == null) { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage().take(1) + : pagedFluxResponse.byPage(continuationTokenParam).take(1); + } else { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage(pageSizeParam).take(1) + : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); + } + return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), + pagedResponse.getStatusCode(), pagedResponse.getHeaders(), + pagedResponse.getValue() + .stream() + .map(protocolMethodData -> protocolMethodData.toObject(SkillVersion.class)) + .collect(Collectors.toList()), + pagedResponse.getContinuationToken(), null)); + }); + } } diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/BetaSkillsClient.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/BetaSkillsClient.java index dd8641a64dec6..28fbe85962d7e 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/BetaSkillsClient.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/BetaSkillsClient.java @@ -509,50 +509,6 @@ public SkillDetails getSkill(String name) { return getSkillWithResponse(name, requestOptions).getValue().toObject(SkillDetails.class); } - /** - * List skills - * - * Returns the skills available in the current project. - * - * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the - * default is 20. - * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` - * for descending order. - * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include after=obj_foo in order to fetch the next page of the list. - * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include before=obj_foo in order to fetch the previous page of the list. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listSkills(Integer limit, PageOrder order, String after, String before) { - // Generated convenience method for listSkills - RequestOptions requestOptions = new RequestOptions(); - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - return serviceClient.listSkills(requestOptions) - .mapPage(bodyItemValue -> bodyItemValue.toObject(SkillDetails.class)); - } - /** * List skills * @@ -570,7 +526,7 @@ public PagedIterable listSkills(Integer limit, PageOrder order, St public PagedIterable listSkills() { // Generated convenience method for listSkills RequestOptions requestOptions = new RequestOptions(); - return serviceClient.listSkills(requestOptions) + return serviceClient.listSkills(null, requestOptions) .mapPage(bodyItemValue -> bodyItemValue.toObject(SkillDetails.class)); } @@ -684,52 +640,6 @@ public SkillVersion createSkillVersionFromFiles(String name, CreateSkillVersionF requestOptions).getValue().toObject(SkillVersion.class); } - /** - * List skill versions - * - * Returns the available versions for the specified skill. - * - * @param name The name of the skill to list versions for. - * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the - * default is 20. - * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` - * for descending order. - * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include after=obj_foo in order to fetch the next page of the list. - * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include before=obj_foo in order to fetch the previous page of the list. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listSkillVersions(String name, Integer limit, PageOrder order, String after, - String before) { - // Generated convenience method for listSkillVersions - RequestOptions requestOptions = new RequestOptions(); - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - return serviceClient.listSkillVersions(name, requestOptions) - .mapPage(bodyItemValue -> bodyItemValue.toObject(SkillVersion.class)); - } - /** * List skill versions * @@ -749,7 +659,7 @@ public PagedIterable listSkillVersions(String name, Integer limit, public PagedIterable listSkillVersions(String name) { // Generated convenience method for listSkillVersions RequestOptions requestOptions = new RequestOptions(); - return serviceClient.listSkillVersions(name, requestOptions) + return serviceClient.listSkillVersions(null, name, requestOptions) .mapPage(bodyItemValue -> bodyItemValue.toObject(SkillVersion.class)); } @@ -857,4 +767,88 @@ Response createSkillVersionFromFilesWithResponseInternal(String name // and hence not generated. return this.serviceClient.createSkillVersionFromFilesWithResponseInternal(name, content, requestOptions); } + + /** + * List skills + * + * Returns the skills available in the current project. + * + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listSkills(Integer limit, PageOrder order, String after, String before) { + // Generated convenience method for listSkills + RequestOptions requestOptions = new RequestOptions(); + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + return serviceClient.listSkills(after, requestOptions) + .mapPage(bodyItemValue -> bodyItemValue.toObject(SkillDetails.class)); + } + + /** + * List skill versions + * + * Returns the available versions for the specified skill. + * + * @param name The name of the skill to list versions for. + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listSkillVersions(String name, Integer limit, PageOrder order, String after, + String before) { + // Generated convenience method for listSkillVersions + RequestOptions requestOptions = new RequestOptions(); + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + return serviceClient.listSkillVersions(after, name, requestOptions) + .mapPage(bodyItemValue -> bodyItemValue.toObject(SkillVersion.class)); + } } diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/DatasetsAsyncClient.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/DatasetsAsyncClient.java index 289a956578859..1a10e88294c91 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/DatasetsAsyncClient.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/DatasetsAsyncClient.java @@ -1220,69 +1220,6 @@ public Mono getGenerationJob(String jobId) { .map(protocolMethodData -> protocolMethodData.toObject(DataGenerationJob.class)); } - /** - * List data generation jobs - * - * Returns a list of data generation jobs. - * - * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the - * default is 20. - * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` - * for descending order. - * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include after=obj_foo in order to fetch the next page of the list. - * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include before=obj_foo in order to fetch the previous page of the list. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listGenerationJobs(Integer limit, PageOrder order, String after, - String before) { - // Generated convenience method for listGenerationJobs - RequestOptions requestOptions = new RequestOptions(); - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - PagedFlux pagedFluxResponse = listGenerationJobs(requestOptions); - return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { - Flux> flux; - if (pageSizeParam == null) { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage().take(1) - : pagedFluxResponse.byPage(continuationTokenParam).take(1); - } else { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage(pageSizeParam).take(1) - : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); - } - return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), - pagedResponse.getStatusCode(), pagedResponse.getHeaders(), - pagedResponse.getValue() - .stream() - .map(protocolMethodData -> protocolMethodData.toObject(DataGenerationJob.class)) - .collect(Collectors.toList()), - pagedResponse.getContinuationToken(), null)); - }); - } - /** * List data generation jobs * @@ -1300,7 +1237,7 @@ public PagedFlux listGenerationJobs(Integer limit, PageOrder public PagedFlux listGenerationJobs() { // Generated convenience method for listGenerationJobs RequestOptions requestOptions = new RequestOptions(); - PagedFlux pagedFluxResponse = listGenerationJobs(requestOptions); + PagedFlux pagedFluxResponse = serviceClient.listGenerationJobsAsync(null, requestOptions); return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { Flux> flux; if (pageSizeParam == null) { @@ -1417,4 +1354,64 @@ public Mono deleteGenerationJob(String jobId) { RequestOptions requestOptions = new RequestOptions(); return deleteGenerationJobWithResponse(jobId, requestOptions).flatMap(FluxUtil::toMono); } + + /** + * List data generation jobs + * + * Returns a list of data generation jobs. + * + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listGenerationJobs(Integer limit, PageOrder order, String after, + String before) { + // Generated convenience method for listGenerationJobs + RequestOptions requestOptions = new RequestOptions(); + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + PagedFlux pagedFluxResponse = serviceClient.listGenerationJobsAsync(after, requestOptions); + return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { + Flux> flux; + if (pageSizeParam == null) { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage().take(1) + : pagedFluxResponse.byPage(continuationTokenParam).take(1); + } else { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage(pageSizeParam).take(1) + : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); + } + return flux.map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), + pagedResponse.getStatusCode(), pagedResponse.getHeaders(), + pagedResponse.getValue() + .stream() + .map(protocolMethodData -> protocolMethodData.toObject(DataGenerationJob.class)) + .collect(Collectors.toList()), + pagedResponse.getContinuationToken(), null)); + }); + } } diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/DatasetsClient.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/DatasetsClient.java index b6c3adac49dc3..4089891297d5e 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/DatasetsClient.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/DatasetsClient.java @@ -1154,51 +1154,6 @@ public DataGenerationJob getGenerationJob(String jobId) { return getGenerationJobWithResponse(jobId, requestOptions).getValue().toObject(DataGenerationJob.class); } - /** - * List data generation jobs - * - * Returns a list of data generation jobs. - * - * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the - * default is 20. - * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` - * for descending order. - * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include after=obj_foo in order to fetch the next page of the list. - * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include before=obj_foo in order to fetch the previous page of the list. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listGenerationJobs(Integer limit, PageOrder order, String after, - String before) { - // Generated convenience method for listGenerationJobs - RequestOptions requestOptions = new RequestOptions(); - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - return serviceClient.listGenerationJobs(requestOptions) - .mapPage(bodyItemValue -> bodyItemValue.toObject(DataGenerationJob.class)); - } - /** * List data generation jobs * @@ -1216,7 +1171,7 @@ public PagedIterable listGenerationJobs(Integer limit, PageOr public PagedIterable listGenerationJobs() { // Generated convenience method for listGenerationJobs RequestOptions requestOptions = new RequestOptions(); - return serviceClient.listGenerationJobs(requestOptions) + return serviceClient.listGenerationJobs(null, requestOptions) .mapPage(bodyItemValue -> bodyItemValue.toObject(DataGenerationJob.class)); } @@ -1313,4 +1268,46 @@ public void deleteGenerationJob(String jobId) { RequestOptions requestOptions = new RequestOptions(); deleteGenerationJobWithResponse(jobId, requestOptions).getValue(); } + + /** + * List data generation jobs + * + * Returns a list of data generation jobs. + * + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listGenerationJobs(Integer limit, PageOrder order, String after, + String before) { + // Generated convenience method for listGenerationJobs + RequestOptions requestOptions = new RequestOptions(); + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + return serviceClient.listGenerationJobs(after, requestOptions) + .mapPage(bodyItemValue -> bodyItemValue.toObject(DataGenerationJob.class)); + } } diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/EvaluatorsAsyncClient.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/EvaluatorsAsyncClient.java index e0a4ee4ed4f7f..b885b7c5a0477 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/EvaluatorsAsyncClient.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/EvaluatorsAsyncClient.java @@ -1538,73 +1538,6 @@ public Mono getEvaluatorGenerationJob(String jobId) { .map(protocolMethodData -> protocolMethodData.toObject(EvaluatorGenerationJob.class)); } - /** - * List evaluator generation jobs - * - * Returns a list of evaluator generation jobs. The List API has up to a few - * seconds of propagation delay, so a recently created job may not appear - * immediately; use the Get evaluator generation job API with the job ID to - * retrieve a specific job without delay. - * - * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the - * default is 20. - * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` - * for descending order. - * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include after=obj_foo in order to fetch the next page of the list. - * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include before=obj_foo in order to fetch the previous page of the list. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedFlux listEvaluatorGenerationJobs(Integer limit, PageOrder order, String after, - String before) { - // Generated convenience method for listEvaluatorGenerationJobs - RequestOptions requestOptions = new RequestOptions(); - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - PagedFlux pagedFluxResponse = listEvaluatorGenerationJobs(requestOptions); - return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { - Flux> flux; - if (pageSizeParam == null) { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage().take(1) - : pagedFluxResponse.byPage(continuationTokenParam).take(1); - } else { - flux = (continuationTokenParam == null) - ? pagedFluxResponse.byPage(pageSizeParam).take(1) - : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); - } - return flux - .map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), - pagedResponse.getStatusCode(), pagedResponse.getHeaders(), - pagedResponse.getValue() - .stream() - .map(protocolMethodData -> protocolMethodData.toObject(EvaluatorGenerationJob.class)) - .collect(Collectors.toList()), - pagedResponse.getContinuationToken(), null)); - }); - } - /** * List evaluator generation jobs * @@ -1625,7 +1558,7 @@ public PagedFlux listEvaluatorGenerationJobs(Integer lim public PagedFlux listEvaluatorGenerationJobs() { // Generated convenience method for listEvaluatorGenerationJobs RequestOptions requestOptions = new RequestOptions(); - PagedFlux pagedFluxResponse = listEvaluatorGenerationJobs(requestOptions); + PagedFlux pagedFluxResponse = serviceClient.listEvaluatorGenerationJobsAsync(null, requestOptions); return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { Flux> flux; if (pageSizeParam == null) { @@ -1751,4 +1684,68 @@ public Mono deleteEvaluatorGenerationJob(String jobId) { return serviceClient.beginCreateEvaluatorGenerationJobWithModelAsync(BinaryData.fromObject(job), requestOptions); } + + /** + * List evaluator generation jobs + * + * Returns a list of evaluator generation jobs. The List API has up to a few + * seconds of propagation delay, so a recently created job may not appear + * immediately; use the Get evaluator generation job API with the job ID to + * retrieve a specific job without delay. + * + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedFlux}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listEvaluatorGenerationJobs(Integer limit, PageOrder order, String after, + String before) { + // Generated convenience method for listEvaluatorGenerationJobs + RequestOptions requestOptions = new RequestOptions(); + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + PagedFlux pagedFluxResponse = serviceClient.listEvaluatorGenerationJobsAsync(after, requestOptions); + return PagedFlux.create(() -> (continuationTokenParam, pageSizeParam) -> { + Flux> flux; + if (pageSizeParam == null) { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage().take(1) + : pagedFluxResponse.byPage(continuationTokenParam).take(1); + } else { + flux = (continuationTokenParam == null) + ? pagedFluxResponse.byPage(pageSizeParam).take(1) + : pagedFluxResponse.byPage(continuationTokenParam, pageSizeParam).take(1); + } + return flux + .map(pagedResponse -> new PagedResponseBase(pagedResponse.getRequest(), + pagedResponse.getStatusCode(), pagedResponse.getHeaders(), + pagedResponse.getValue() + .stream() + .map(protocolMethodData -> protocolMethodData.toObject(EvaluatorGenerationJob.class)) + .collect(Collectors.toList()), + pagedResponse.getContinuationToken(), null)); + }); + } } diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/EvaluatorsClient.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/EvaluatorsClient.java index 8cd6f25f90ea2..e2757af801aa1 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/EvaluatorsClient.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/EvaluatorsClient.java @@ -1452,54 +1452,6 @@ public EvaluatorGenerationJob getEvaluatorGenerationJob(String jobId) { .toObject(EvaluatorGenerationJob.class); } - /** - * List evaluator generation jobs - * - * Returns a list of evaluator generation jobs. The List API has up to a few - * seconds of propagation delay, so a recently created job may not appear - * immediately; use the Get evaluator generation job API with the job ID to - * retrieve a specific job without delay. - * - * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the - * default is 20. - * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` - * for descending order. - * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include after=obj_foo in order to fetch the next page of the list. - * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. - * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your - * subsequent call can include before=obj_foo in order to fetch the previous page of the list. - * @throws IllegalArgumentException thrown if parameters fail the validation. - * @throws HttpResponseException thrown if the request is rejected by server. - * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. - * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. - * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. - * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. - * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. - */ - @Generated - @ServiceMethod(returns = ReturnType.COLLECTION) - public PagedIterable listEvaluatorGenerationJobs(Integer limit, PageOrder order, - String after, String before) { - // Generated convenience method for listEvaluatorGenerationJobs - RequestOptions requestOptions = new RequestOptions(); - if (limit != null) { - requestOptions.addQueryParam("limit", String.valueOf(limit), false); - } - if (order != null) { - requestOptions.addQueryParam("order", order.toString(), false); - } - if (after != null) { - requestOptions.addQueryParam("after", after, false); - } - if (before != null) { - requestOptions.addQueryParam("before", before, false); - } - return serviceClient.listEvaluatorGenerationJobs(requestOptions) - .mapPage(bodyItemValue -> bodyItemValue.toObject(EvaluatorGenerationJob.class)); - } - /** * List evaluator generation jobs * @@ -1520,7 +1472,7 @@ public PagedIterable listEvaluatorGenerationJobs(Integer public PagedIterable listEvaluatorGenerationJobs() { // Generated convenience method for listEvaluatorGenerationJobs RequestOptions requestOptions = new RequestOptions(); - return serviceClient.listEvaluatorGenerationJobs(requestOptions) + return serviceClient.listEvaluatorGenerationJobs(null, requestOptions) .mapPage(bodyItemValue -> bodyItemValue.toObject(EvaluatorGenerationJob.class)); } @@ -1624,4 +1576,49 @@ public void deleteEvaluatorGenerationJob(String jobId) { RequestOptions requestOptions = new RequestOptions(); return serviceClient.beginCreateEvaluatorGenerationJobWithModel(BinaryData.fromObject(job), requestOptions); } + + /** + * List evaluator generation jobs + * + * Returns a list of evaluator generation jobs. The List API has up to a few + * seconds of propagation delay, so a recently created job may not appear + * immediately; use the Get evaluator generation job API with the job ID to + * retrieve a specific job without delay. + * + * @param limit A limit on the number of objects to be returned. Limit can range between 1 and 100, and the + * default is 20. + * @param order Sort order by the `created_at` timestamp of the objects. `asc` for ascending order and`desc` + * for descending order. + * @param after A cursor for use in pagination. `after` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include after=obj_foo in order to fetch the next page of the list. + * @param before A cursor for use in pagination. `before` is an object ID that defines your place in the list. + * For instance, if you make a list request and receive 100 objects, ending with obj_foo, your + * subsequent call can include before=obj_foo in order to fetch the previous page of the list. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws HttpResponseException thrown if the request is rejected by server. + * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. + * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. + * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return the response data for a requested list of items as paginated response with {@link PagedIterable}. + */ + @Generated + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listEvaluatorGenerationJobs(Integer limit, PageOrder order, + String after, String before) { + // Generated convenience method for listEvaluatorGenerationJobs + RequestOptions requestOptions = new RequestOptions(); + if (limit != null) { + requestOptions.addQueryParam("limit", String.valueOf(limit), false); + } + if (order != null) { + requestOptions.addQueryParam("order", order.toString(), false); + } + if (before != null) { + requestOptions.addQueryParam("before", before, false); + } + return serviceClient.listEvaluatorGenerationJobs(after, requestOptions) + .mapPage(bodyItemValue -> bodyItemValue.toObject(EvaluatorGenerationJob.class)); + } } diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/AIProjectClientImpl.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/AIProjectClientImpl.java index 0693b5fddb4be..959d88f2e1a27 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/AIProjectClientImpl.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/AIProjectClientImpl.java @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) TypeSpec Code Generator. - package com.azure.ai.projects.implementation; import com.azure.ai.projects.AIProjectsServiceVersion; @@ -16,6 +15,7 @@ * Initializes a new instance of the AIProjectClient type. */ public final class AIProjectClientImpl { + /** * Foundry Project endpoint in the form * "https://{ai-services-account-name}.services.ai.azure.com/api/projects/{project-name}". @@ -31,7 +31,7 @@ public final class AIProjectClientImpl { * If you only have one Project in your Foundry Hub, or to target the default Project * in your Hub, use the form * "https://{ai-services-account-name}.services.ai.azure.com/api/projects/_project". - * + * * @return the endpoint value. */ public String getEndpoint() { @@ -45,7 +45,7 @@ public String getEndpoint() { /** * Gets Service version. - * + * * @return the serviceVersion value. */ public AIProjectsServiceVersion getServiceVersion() { @@ -59,7 +59,7 @@ public AIProjectsServiceVersion getServiceVersion() { /** * Gets The HTTP pipeline to send requests through. - * + * * @return the httpPipeline value. */ public HttpPipeline getHttpPipeline() { @@ -73,7 +73,7 @@ public HttpPipeline getHttpPipeline() { /** * Gets The serializer to serialize an object into a string. - * + * * @return the serializerAdapter value. */ public SerializerAdapter getSerializerAdapter() { @@ -87,7 +87,7 @@ public SerializerAdapter getSerializerAdapter() { /** * Gets the BetaAgentInsightMonitorsImpl object to access its operations. - * + * * @return the BetaAgentInsightMonitorsImpl object. */ public BetaAgentInsightMonitorsImpl getBetaAgentInsightMonitors() { @@ -101,7 +101,7 @@ public BetaAgentInsightMonitorsImpl getBetaAgentInsightMonitors() { /** * Gets the BetaModelsImpl object to access its operations. - * + * * @return the BetaModelsImpl object. */ public BetaModelsImpl getBetaModels() { @@ -115,7 +115,7 @@ public BetaModelsImpl getBetaModels() { /** * Gets the BetaRedTeamsImpl object to access its operations. - * + * * @return the BetaRedTeamsImpl object. */ public BetaRedTeamsImpl getBetaRedTeams() { @@ -129,7 +129,7 @@ public BetaRedTeamsImpl getBetaRedTeams() { /** * Gets the BetaEvaluationTaxonomiesImpl object to access its operations. - * + * * @return the BetaEvaluationTaxonomiesImpl object. */ public BetaEvaluationTaxonomiesImpl getBetaEvaluationTaxonomies() { @@ -143,7 +143,7 @@ public BetaEvaluationTaxonomiesImpl getBetaEvaluationTaxonomies() { /** * Gets the BetaEvaluatorsImpl object to access its operations. - * + * * @return the BetaEvaluatorsImpl object. */ public BetaEvaluatorsImpl getBetaEvaluators() { @@ -157,7 +157,7 @@ public BetaEvaluatorsImpl getBetaEvaluators() { /** * Gets the BetaInsightsImpl object to access its operations. - * + * * @return the BetaInsightsImpl object. */ public BetaInsightsImpl getBetaInsights() { @@ -171,7 +171,7 @@ public BetaInsightsImpl getBetaInsights() { /** * Gets the BetaSchedulesImpl object to access its operations. - * + * * @return the BetaSchedulesImpl object. */ public BetaSchedulesImpl getBetaSchedules() { @@ -185,7 +185,7 @@ public BetaSchedulesImpl getBetaSchedules() { /** * Gets the BetaRoutinesImpl object to access its operations. - * + * * @return the BetaRoutinesImpl object. */ public BetaRoutinesImpl getBetaRoutines() { @@ -199,7 +199,7 @@ public BetaRoutinesImpl getBetaRoutines() { /** * Gets the BetaSkillsImpl object to access its operations. - * + * * @return the BetaSkillsImpl object. */ public BetaSkillsImpl getBetaSkills() { @@ -213,7 +213,7 @@ public BetaSkillsImpl getBetaSkills() { /** * Gets the ConnectionsImpl object to access its operations. - * + * * @return the ConnectionsImpl object. */ public ConnectionsImpl getConnections() { @@ -227,7 +227,7 @@ public ConnectionsImpl getConnections() { /** * Gets the DatasetsImpl object to access its operations. - * + * * @return the DatasetsImpl object. */ public DatasetsImpl getDatasets() { @@ -241,7 +241,7 @@ public DatasetsImpl getDatasets() { /** * Gets the IndexesImpl object to access its operations. - * + * * @return the IndexesImpl object. */ public IndexesImpl getIndexes() { @@ -255,7 +255,7 @@ public IndexesImpl getIndexes() { /** * Gets the DeploymentsImpl object to access its operations. - * + * * @return the DeploymentsImpl object. */ public DeploymentsImpl getDeployments() { @@ -269,7 +269,7 @@ public DeploymentsImpl getDeployments() { /** * Gets the EvaluationRulesImpl object to access its operations. - * + * * @return the EvaluationRulesImpl object. */ public EvaluationRulesImpl getEvaluationRules() { @@ -283,7 +283,7 @@ public EvaluationRulesImpl getEvaluationRules() { /** * Gets the EvaluatorsImpl object to access its operations. - * + * * @return the EvaluatorsImpl object. */ public EvaluatorsImpl getEvaluators() { @@ -292,7 +292,7 @@ public EvaluatorsImpl getEvaluators() { /** * Initializes an instance of AIProjectClient client. - * + * * @param endpoint Foundry Project endpoint in the form * "https://{ai-services-account-name}.services.ai.azure.com/api/projects/{project-name}". * If you only have one Project in your Foundry Hub, or to target the default Project @@ -307,7 +307,7 @@ public AIProjectClientImpl(String endpoint, AIProjectsServiceVersion serviceVers /** * Initializes an instance of AIProjectClient client. - * + * * @param httpPipeline The HTTP pipeline to send requests through. * @param endpoint Foundry Project endpoint in the form * "https://{ai-services-account-name}.services.ai.azure.com/api/projects/{project-name}". @@ -322,7 +322,7 @@ public AIProjectClientImpl(HttpPipeline httpPipeline, String endpoint, AIProject /** * Initializes an instance of AIProjectClient client. - * + * * @param httpPipeline The HTTP pipeline to send requests through. * @param serializerAdapter The serializer to serialize an object into a string. * @param endpoint Foundry Project endpoint in the form diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/BetaAgentInsightMonitorsImpl.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/BetaAgentInsightMonitorsImpl.java index 9b14cce7571dc..07073ee80f374 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/BetaAgentInsightMonitorsImpl.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/BetaAgentInsightMonitorsImpl.java @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) TypeSpec Code Generator. - package com.azure.ai.projects.implementation; import com.azure.ai.projects.AIProjectsServiceVersion; @@ -36,6 +35,7 @@ import com.azure.core.util.BinaryData; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; +import com.azure.core.util.UrlBuilder; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.PollingStrategyOptions; import com.azure.core.util.polling.SyncPoller; @@ -50,6 +50,7 @@ * An instance of this class provides access to all the operations defined in BetaAgentInsightMonitors. */ public final class BetaAgentInsightMonitorsImpl { + /** * The proxy service used to perform REST calls. */ @@ -62,7 +63,7 @@ public final class BetaAgentInsightMonitorsImpl { /** * Initializes an instance of BetaAgentInsightMonitorsImpl. - * + * * @param client the instance of the service client containing this operation class. */ BetaAgentInsightMonitorsImpl(AIProjectClientImpl client) { @@ -73,7 +74,7 @@ public final class BetaAgentInsightMonitorsImpl { /** * Gets Service version. - * + * * @return the serviceVersion value. */ public AIProjectsServiceVersion getServiceVersion() { @@ -87,6 +88,7 @@ public AIProjectsServiceVersion getServiceVersion() { @Host("{endpoint}") @ServiceInterface(name = "AIProjectClientBetaAgentInsightMonitors") public interface BetaAgentInsightMonitorsService { + @Get("/agent_insight_monitors") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @@ -409,7 +411,7 @@ Response updateAgentInsightSync(@HostParam("endpoint") String endpoi * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -425,7 +427,7 @@ private Mono> listAgentInsightMonitorsSinglePageAsync( .withContext(context -> service.listAgentInsightMonitors(this.client.getEndpoint(), this.client.getServiceVersion().getVersion(), accept, requestOptions, context)) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null)); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null)); } /** @@ -471,7 +473,7 @@ private Mono> listAgentInsightMonitorsSinglePageAsync( * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -481,7 +483,35 @@ private Mono> listAgentInsightMonitorsSinglePageAsync( */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAgentInsightMonitorsAsync(RequestOptions requestOptions) { - return new PagedFlux<>(() -> listAgentInsightMonitorsSinglePageAsync(requestOptions)); + return listAgentInsightMonitorsAsync(null, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAgentInsightMonitorsAsync(String initialContinuationToken, + RequestOptions requestOptions) { + return new PagedFlux<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listAgentInsightMonitorsSinglePageAsync(requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listAgentInsightMonitorsSinglePageAsync(requestOptionsLocal); + }); } /** @@ -527,7 +557,7 @@ public PagedFlux listAgentInsightMonitorsAsync(RequestOptions reques * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -541,7 +571,7 @@ private PagedResponse listAgentInsightMonitorsSinglePage(RequestOpti Response res = service.listAgentInsightMonitorsSync(this.client.getEndpoint(), this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null); } /** @@ -587,7 +617,7 @@ private PagedResponse listAgentInsightMonitorsSinglePage(RequestOpti * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -597,7 +627,35 @@ private PagedResponse listAgentInsightMonitorsSinglePage(RequestOpti */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listAgentInsightMonitors(RequestOptions requestOptions) { - return new PagedIterable<>(() -> listAgentInsightMonitorsSinglePage(requestOptions)); + return listAgentInsightMonitors(null, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listAgentInsightMonitors(String initialContinuationToken, + RequestOptions requestOptions) { + return new PagedIterable<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listAgentInsightMonitorsSinglePage(requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listAgentInsightMonitorsSinglePage(requestOptionsLocal); + }); } /** @@ -654,7 +712,7 @@ public PagedIterable listAgentInsightMonitors(RequestOptions request * NameTypeDescription * LocationStringURL of the created monitor. * - * + * * @param monitor The monitor to create. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -727,7 +785,7 @@ public Mono> createAgentInsightMonitorWithResponseAsync(Bin * NameTypeDescription * LocationStringURL of the created monitor. * - * + * * @param monitor The monitor to create. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -780,7 +838,7 @@ public Response createAgentInsightMonitorWithResponse(BinaryData mon * } * } * - * + * * @param monitorId The identifier of the monitor. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -831,7 +889,7 @@ public Mono> getAgentInsightMonitorWithResponseAsync(String * } * } * - * + * * @param monitorId The identifier of the monitor. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -849,7 +907,7 @@ public Response getAgentInsightMonitorWithResponse(String monitorId, /** * Delete an Agent Insights monitor and all of its runs, insights, and state. - * + * * @param monitorId The identifier of the monitor. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -867,7 +925,7 @@ public Mono> deleteAgentInsightMonitorWithResponseAsync(String mo /** * Delete an Agent Insights monitor and all of its runs, insights, and state. - * + * * @param monitorId The identifier of the monitor. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -931,7 +989,7 @@ public Response deleteAgentInsightMonitorWithResponse(String monitorId, Re * } * } * - * + * * @param monitorId The identifier of the monitor. * @param monitor The monitor fields to update. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1000,7 +1058,7 @@ public Mono> updateAgentInsightMonitorWithResponseAsync(Str * } * } * - * + * * @param monitorId The identifier of the monitor. * @param monitor The monitor fields to update. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1022,7 +1080,7 @@ public Response updateAgentInsightMonitorWithResponse(String monitor /** * Reset an Agent Insights monitor's overview, checkpoint, and active insight state. - * + * * @param monitorId The identifier of the monitor. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1040,7 +1098,7 @@ public Mono> resetAgentInsightMonitorWithResponseAsync(String mon /** * Reset an Agent Insights monitor's overview, checkpoint, and active insight state. - * + * * @param monitorId The identifier of the monitor. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1133,7 +1191,7 @@ public Response resetAgentInsightMonitorWithResponse(String monitorId, Req * } * } * - * + * * @param monitorId The identifier of the monitor. * @param run Run inputs. Send an empty object to use the default 168-hour lookback window. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1231,7 +1289,7 @@ private Mono> createAgentInsightRunWithResponseAsync(String * } * } * - * + * * @param monitorId The identifier of the monitor. * @param run Run inputs. Send an empty object to use the default 168-hour lookback window. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1329,7 +1387,7 @@ private Response createAgentInsightRunWithResponse(String monitorId, * } * } * - * + * * @param monitorId The identifier of the monitor. * @param run Run inputs. Send an empty object to use the default 168-hour lookback window. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1435,7 +1493,7 @@ public PollerFlux beginCreateAgentInsigh * } * } * - * + * * @param monitorId The identifier of the monitor. * @param run Run inputs. Send an empty object to use the default 168-hour lookback window. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1541,7 +1599,7 @@ public SyncPoller beginCreateAgentInsigh * } * } * - * + * * @param monitorId The identifier of the monitor. * @param run Run inputs. Send an empty object to use the default 168-hour lookback window. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1646,7 +1704,7 @@ public PollerFlux beginCreateAgentInsightRunAsync(String * } * } * - * + * * @param monitorId The identifier of the monitor. * @param run Run inputs. Send an empty object to use the default 168-hour lookback window. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1750,7 +1808,7 @@ public SyncPoller beginCreateAgentInsightRun(String moni * } * } * - * + * * @param monitorId The identifier of the monitor. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1768,7 +1826,7 @@ private Mono> listAgentInsightRunsSinglePageAsync(Stri .withContext(context -> service.listAgentInsightRuns(this.client.getEndpoint(), monitorId, this.client.getServiceVersion().getVersion(), accept, requestOptions, context)) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null)); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null)); } /** @@ -1848,7 +1906,7 @@ private Mono> listAgentInsightRunsSinglePageAsync(Stri * } * } * - * + * * @param monitorId The identifier of the monitor. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1859,7 +1917,35 @@ private Mono> listAgentInsightRunsSinglePageAsync(Stri */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAgentInsightRunsAsync(String monitorId, RequestOptions requestOptions) { - return new PagedFlux<>(() -> listAgentInsightRunsSinglePageAsync(monitorId, requestOptions)); + return listAgentInsightRunsAsync(null, monitorId, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAgentInsightRunsAsync(String initialContinuationToken, String monitorId, + RequestOptions requestOptions) { + return new PagedFlux<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listAgentInsightRunsSinglePageAsync(monitorId, requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listAgentInsightRunsSinglePageAsync(monitorId, requestOptionsLocal); + }); } /** @@ -1939,7 +2025,7 @@ public PagedFlux listAgentInsightRunsAsync(String monitorId, Request * } * } * - * + * * @param monitorId The identifier of the monitor. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1954,7 +2040,7 @@ private PagedResponse listAgentInsightRunsSinglePage(String monitorI Response res = service.listAgentInsightRunsSync(this.client.getEndpoint(), monitorId, this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null); } /** @@ -2034,7 +2120,7 @@ private PagedResponse listAgentInsightRunsSinglePage(String monitorI * } * } * - * + * * @param monitorId The identifier of the monitor. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2045,7 +2131,35 @@ private PagedResponse listAgentInsightRunsSinglePage(String monitorI */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listAgentInsightRuns(String monitorId, RequestOptions requestOptions) { - return new PagedIterable<>(() -> listAgentInsightRunsSinglePage(monitorId, requestOptions)); + return listAgentInsightRuns(null, monitorId, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listAgentInsightRuns(String initialContinuationToken, String monitorId, + RequestOptions requestOptions) { + return new PagedIterable<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listAgentInsightRunsSinglePage(monitorId, requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listAgentInsightRunsSinglePage(monitorId, requestOptionsLocal); + }); } /** @@ -2108,7 +2222,7 @@ public PagedIterable listAgentInsightRuns(String monitorId, RequestO * } * } * - * + * * @param monitorId The identifier of the monitor. * @param runId The identifier of the run. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2186,7 +2300,7 @@ public Mono> getAgentInsightRunWithResponseAsync(String mon * } * } * - * + * * @param monitorId The identifier of the monitor. * @param runId The identifier of the run. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2264,7 +2378,7 @@ public Response getAgentInsightRunWithResponse(String monitorId, Str * } * } * - * + * * @param monitorId The identifier of the monitor. * @param runId The identifier of the run. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2343,7 +2457,7 @@ public Mono> cancelAgentInsightRunWithResponseAsync(String * } * } * - * + * * @param monitorId The identifier of the monitor. * @param runId The identifier of the run. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2438,7 +2552,7 @@ public Response cancelAgentInsightRunWithResponse(String monitorId, * } * } * - * + * * @param monitorId The identifier of the monitor. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2456,7 +2570,7 @@ private Mono> listAgentInsightsSinglePageAsync(String .withContext(context -> service.listAgentInsights(this.client.getEndpoint(), monitorId, this.client.getServiceVersion().getVersion(), accept, requestOptions, context)) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null)); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null)); } /** @@ -2535,7 +2649,7 @@ private Mono> listAgentInsightsSinglePageAsync(String * } * } * - * + * * @param monitorId The identifier of the monitor. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2546,7 +2660,35 @@ private Mono> listAgentInsightsSinglePageAsync(String */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listAgentInsightsAsync(String monitorId, RequestOptions requestOptions) { - return new PagedFlux<>(() -> listAgentInsightsSinglePageAsync(monitorId, requestOptions)); + return listAgentInsightsAsync(null, monitorId, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listAgentInsightsAsync(String initialContinuationToken, String monitorId, + RequestOptions requestOptions) { + return new PagedFlux<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listAgentInsightsSinglePageAsync(monitorId, requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listAgentInsightsSinglePageAsync(monitorId, requestOptionsLocal); + }); } /** @@ -2625,7 +2767,7 @@ public PagedFlux listAgentInsightsAsync(String monitorId, RequestOpt * } * } * - * + * * @param monitorId The identifier of the monitor. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2640,7 +2782,7 @@ private PagedResponse listAgentInsightsSinglePage(String monitorId, Response res = service.listAgentInsightsSync(this.client.getEndpoint(), monitorId, this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null); } /** @@ -2719,7 +2861,7 @@ private PagedResponse listAgentInsightsSinglePage(String monitorId, * } * } * - * + * * @param monitorId The identifier of the monitor. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2730,7 +2872,35 @@ private PagedResponse listAgentInsightsSinglePage(String monitorId, */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listAgentInsights(String monitorId, RequestOptions requestOptions) { - return new PagedIterable<>(() -> listAgentInsightsSinglePage(monitorId, requestOptions)); + return listAgentInsights(null, monitorId, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listAgentInsights(String initialContinuationToken, String monitorId, + RequestOptions requestOptions) { + return new PagedIterable<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listAgentInsightsSinglePage(monitorId, requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listAgentInsightsSinglePage(monitorId, requestOptionsLocal); + }); } /** @@ -2797,7 +2967,7 @@ public PagedIterable listAgentInsights(String monitorId, RequestOpti * } * } * - * + * * @param monitorId The identifier of the monitor. * @param insightId The identifier of the insight. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2880,7 +3050,7 @@ public Mono> getAgentInsightWithResponseAsync(String monito * } * } * - * + * * @param monitorId The identifier of the monitor. * @param insightId The identifier of the insight. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -2964,7 +3134,7 @@ public Response getAgentInsightWithResponse(String monitorId, String * } * } * - * + * * @param monitorId The identifier of the monitor. * @param insightId The identifier of the insight. * @param update The insight fields to update. @@ -3052,7 +3222,7 @@ public Mono> updateAgentInsightWithResponseAsync(String mon * } * } * - * + * * @param monitorId The identifier of the monitor. * @param insightId The identifier of the insight. * @param update The insight fields to update. @@ -3088,6 +3258,9 @@ private List getValues(BinaryData binaryData, String... path) { private String getNextLink(BinaryData binaryData, String... path) { try { Object value = binaryData.toObject(Map.class); + if (Boolean.FALSE.equals(((Map) value).get("has_more"))) { + return null; + } for (String segment : path) { value = ((Map) value).get(segment); } diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/BetaEvaluationTaxonomiesImpl.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/BetaEvaluationTaxonomiesImpl.java index b7fcff804fb86..72eb09ee573f6 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/BetaEvaluationTaxonomiesImpl.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/BetaEvaluationTaxonomiesImpl.java @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) TypeSpec Code Generator. - package com.azure.ai.projects.implementation; import com.azure.ai.projects.AIProjectsServiceVersion; @@ -43,6 +42,7 @@ * An instance of this class provides access to all the operations defined in BetaEvaluationTaxonomies. */ public final class BetaEvaluationTaxonomiesImpl { + /** * The proxy service used to perform REST calls. */ @@ -55,7 +55,7 @@ public final class BetaEvaluationTaxonomiesImpl { /** * Initializes an instance of BetaEvaluationTaxonomiesImpl. - * + * * @param client the instance of the service client containing this operation class. */ BetaEvaluationTaxonomiesImpl(AIProjectClientImpl client) { @@ -66,7 +66,7 @@ public final class BetaEvaluationTaxonomiesImpl { /** * Gets Service version. - * + * * @return the serviceVersion value. */ public AIProjectsServiceVersion getServiceVersion() { @@ -80,6 +80,7 @@ public AIProjectsServiceVersion getServiceVersion() { @Host("{endpoint}") @ServiceInterface(name = "AIProjectClientBetaEvaluationTaxonomies") public interface BetaEvaluationTaxonomiesService { + @Get("/evaluationtaxonomies/{name}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @@ -207,7 +208,7 @@ Response listEvaluationTaxonomiesNextSync( /** * Get an evaluation taxonomy - * + * * Retrieves the specified evaluation taxonomy. *

Response Body Schema

* @@ -252,7 +253,7 @@ Response listEvaluationTaxonomiesNextSync( * } * } * - * + * * @param name The name of the resource. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -260,7 +261,7 @@ Response listEvaluationTaxonomiesNextSync( * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return an evaluation taxonomy - * + * * Retrieves the specified evaluation taxonomy along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -273,7 +274,7 @@ public Mono> getEvaluationTaxonomyWithResponseAsync(String /** * Get an evaluation taxonomy - * + * * Retrieves the specified evaluation taxonomy. *

Response Body Schema

* @@ -318,7 +319,7 @@ public Mono> getEvaluationTaxonomyWithResponseAsync(String * } * } * - * + * * @param name The name of the resource. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -326,7 +327,7 @@ public Mono> getEvaluationTaxonomyWithResponseAsync(String * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return an evaluation taxonomy - * + * * Retrieves the specified evaluation taxonomy along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -338,7 +339,7 @@ public Response getEvaluationTaxonomyWithResponse(String name, Reque /** * List evaluation taxonomies - * + * * Returns the evaluation taxonomies available in the project, optionally filtered by input name or input type. *

Query Parameters

* @@ -391,7 +392,7 @@ public Response getEvaluationTaxonomyWithResponse(String name, Reque * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -412,7 +413,7 @@ private Mono> listEvaluationTaxonomiesSinglePageAsync( /** * List evaluation taxonomies - * + * * Returns the evaluation taxonomies available in the project, optionally filtered by input name or input type. *

Query Parameters

*
@@ -465,7 +466,7 @@ private Mono> listEvaluationTaxonomiesSinglePageAsync( * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -484,7 +485,7 @@ public PagedFlux listEvaluationTaxonomiesAsync(RequestOptions reques /** * List evaluation taxonomies - * + * * Returns the evaluation taxonomies available in the project, optionally filtered by input name or input type. *

Query Parameters

*
@@ -537,7 +538,7 @@ public PagedFlux listEvaluationTaxonomiesAsync(RequestOptions reques * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -556,7 +557,7 @@ private PagedResponse listEvaluationTaxonomiesSinglePage(RequestOpti /** * List evaluation taxonomies - * + * * Returns the evaluation taxonomies available in the project, optionally filtered by input name or input type. *

Query Parameters

*
@@ -609,7 +610,7 @@ private PagedResponse listEvaluationTaxonomiesSinglePage(RequestOpti * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -628,9 +629,9 @@ public PagedIterable listEvaluationTaxonomies(RequestOptions request /** * Delete an evaluation taxonomy - * + * * Removes the specified evaluation taxonomy from the project. - * + * * @param name The name of the resource. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -647,9 +648,9 @@ public Mono> deleteEvaluationTaxonomyWithResponseAsync(String nam /** * Delete an evaluation taxonomy - * + * * Removes the specified evaluation taxonomy from the project. - * + * * @param name The name of the resource. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -666,7 +667,7 @@ public Response deleteEvaluationTaxonomyWithResponse(String name, RequestO /** * Create an evaluation taxonomy - * + * * Creates or replaces the specified evaluation taxonomy with the provided definition. *

Request Body Schema

* @@ -755,7 +756,7 @@ public Response deleteEvaluationTaxonomyWithResponse(String name, RequestO * } * } * - * + * * @param name The name of the evaluation taxonomy. * @param taxonomy The evaluation taxonomy. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -777,7 +778,7 @@ public Mono> createEvaluationTaxonomyWithResponseAsync(Stri /** * Create an evaluation taxonomy - * + * * Creates or replaces the specified evaluation taxonomy with the provided definition. *

Request Body Schema

* @@ -866,7 +867,7 @@ public Mono> createEvaluationTaxonomyWithResponseAsync(Stri * } * } * - * + * * @param name The name of the evaluation taxonomy. * @param taxonomy The evaluation taxonomy. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -888,7 +889,7 @@ public Response createEvaluationTaxonomyWithResponse(String name, Bi /** * Update an evaluation taxonomy - * + * * Modifies the specified evaluation taxonomy with the provided changes. *

Request Body Schema

* @@ -977,7 +978,7 @@ public Response createEvaluationTaxonomyWithResponse(String name, Bi * } * } * - * + * * @param name The name of the evaluation taxonomy. * @param taxonomy The evaluation taxonomy. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -999,7 +1000,7 @@ public Mono> updateEvaluationTaxonomyWithResponseAsync(Stri /** * Update an evaluation taxonomy - * + * * Modifies the specified evaluation taxonomy with the provided changes. *

Request Body Schema

* @@ -1088,7 +1089,7 @@ public Mono> updateEvaluationTaxonomyWithResponseAsync(Stri * } * } * - * + * * @param name The name of the evaluation taxonomy. * @param taxonomy The evaluation taxonomy. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1110,7 +1111,7 @@ public Response updateEvaluationTaxonomyWithResponse(String name, Bi /** * List evaluation taxonomies - * + * * Get the next page of items. *

Response Body Schema

* @@ -1155,7 +1156,7 @@ public Response updateEvaluationTaxonomyWithResponse(String name, Bi * } * } * - * + * * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1178,7 +1179,7 @@ private Mono> listEvaluationTaxonomiesNextSinglePageAs /** * List evaluation taxonomies - * + * * Get the next page of items. *

Response Body Schema

* @@ -1223,7 +1224,7 @@ private Mono> listEvaluationTaxonomiesNextSinglePageAs * } * } * - * + * * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1258,6 +1259,9 @@ private List getValues(BinaryData binaryData, String... path) { private String getNextLink(BinaryData binaryData, String... path) { try { Object value = binaryData.toObject(Map.class); + if (Boolean.FALSE.equals(((Map) value).get("has_more"))) { + return null; + } for (String segment : path) { value = ((Map) value).get(segment); } diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/BetaEvaluatorsImpl.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/BetaEvaluatorsImpl.java index 42d2f7a132ef6..7f91bca9e0355 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/BetaEvaluatorsImpl.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/BetaEvaluatorsImpl.java @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) TypeSpec Code Generator. - package com.azure.ai.projects.implementation; import com.azure.ai.projects.AIProjectsServiceVersion; @@ -33,6 +32,7 @@ * An instance of this class provides access to all the operations defined in BetaEvaluators. */ public final class BetaEvaluatorsImpl { + /** * The proxy service used to perform REST calls. */ @@ -45,7 +45,7 @@ public final class BetaEvaluatorsImpl { /** * Initializes an instance of BetaEvaluatorsImpl. - * + * * @param client the instance of the service client containing this operation class. */ BetaEvaluatorsImpl(AIProjectClientImpl client) { @@ -56,7 +56,7 @@ public final class BetaEvaluatorsImpl { /** * Gets Service version. - * + * * @return the serviceVersion value. */ public AIProjectsServiceVersion getServiceVersion() { @@ -70,6 +70,7 @@ public AIProjectsServiceVersion getServiceVersion() { @Host("{endpoint}") @ServiceInterface(name = "AIProjectClientBetaEvaluators") public interface BetaEvaluatorsService { + @Post("/evaluators/{name}/versions/{version}/startPendingUpload") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @@ -121,7 +122,7 @@ Response getCredentialsSync(@HostParam("endpoint") String endpoint, /** * Start a pending upload - * + * * Initiates a new pending upload or retrieves an existing one for the specified evaluator version. *

Request Body Schema

* @@ -154,7 +155,7 @@ Response getCredentialsSync(@HostParam("endpoint") String endpoint, * } * } * - * + * * @param name The name path parameter. * @param version The specific version id of the EvaluatorVersion to operate on. * @param pendingUploadRequest The pending upload request parameters. @@ -178,7 +179,7 @@ public Mono> startPendingUploadWithResponseAsync(String nam /** * Start a pending upload - * + * * Initiates a new pending upload or retrieves an existing one for the specified evaluator version. *

Request Body Schema

* @@ -211,7 +212,7 @@ public Mono> startPendingUploadWithResponseAsync(String nam * } * } * - * + * * @param name The name path parameter. * @param version The specific version id of the EvaluatorVersion to operate on. * @param pendingUploadRequest The pending upload request parameters. @@ -234,7 +235,7 @@ public Response startPendingUploadWithResponse(String name, String v /** * Get evaluator credentials - * + * * Retrieves SAS credentials for accessing the storage account associated with the specified evaluator version. *

Request Body Schema

* @@ -262,7 +263,7 @@ public Response startPendingUploadWithResponse(String name, String v * } * } * - * + * * @param name The name path parameter. * @param version The specific version id of the EvaluatorVersion to operate on. * @param credentialRequest The credential request parameters. @@ -272,7 +273,7 @@ public Response startPendingUploadWithResponse(String name, String v * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return evaluator credentials - * + * * Retrieves SAS credentials for accessing the storage account associated with the specified evaluator version along * with {@link Response} on successful completion of {@link Mono}. */ @@ -288,7 +289,7 @@ public Mono> getCredentialsWithResponseAsync(String name, S /** * Get evaluator credentials - * + * * Retrieves SAS credentials for accessing the storage account associated with the specified evaluator version. *

Request Body Schema

* @@ -316,7 +317,7 @@ public Mono> getCredentialsWithResponseAsync(String name, S * } * } * - * + * * @param name The name path parameter. * @param version The specific version id of the EvaluatorVersion to operate on. * @param credentialRequest The credential request parameters. @@ -326,7 +327,7 @@ public Mono> getCredentialsWithResponseAsync(String name, S * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return evaluator credentials - * + * * Retrieves SAS credentials for accessing the storage account associated with the specified evaluator version along * with {@link Response}. */ diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/BetaInsightsImpl.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/BetaInsightsImpl.java index 129633475267e..465f923f76702 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/BetaInsightsImpl.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/BetaInsightsImpl.java @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) TypeSpec Code Generator. - package com.azure.ai.projects.implementation; import com.azure.ai.projects.AIProjectsServiceVersion; @@ -45,6 +44,7 @@ * An instance of this class provides access to all the operations defined in BetaInsights. */ public final class BetaInsightsImpl { + /** * The proxy service used to perform REST calls. */ @@ -57,7 +57,7 @@ public final class BetaInsightsImpl { /** * Initializes an instance of BetaInsightsImpl. - * + * * @param client the instance of the service client containing this operation class. */ BetaInsightsImpl(AIProjectClientImpl client) { @@ -68,7 +68,7 @@ public final class BetaInsightsImpl { /** * Gets Service version. - * + * * @return the serviceVersion value. */ public AIProjectsServiceVersion getServiceVersion() { @@ -82,6 +82,7 @@ public AIProjectsServiceVersion getServiceVersion() { @Host("{endpoint}") @ServiceInterface(name = "AIProjectClientBetaInsights") public interface BetaInsightsService { + @Post("/insights") @ExpectedResponses({ 201 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @@ -167,7 +168,7 @@ Response listInsightsNextSync(@PathParam(value = "nextLink", encoded /** * Generate insights - * + * * Generates an insights report from the provided evaluation configuration. *

Header Parameters

*
@@ -221,7 +222,7 @@ Response listInsightsNextSync(@PathParam(value = "nextLink", encoded * } * } * - * + * * @param insight Complete evaluation configuration including data source, evaluators, and result settings. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -256,7 +257,7 @@ public Mono> generateInsightWithResponseAsync(BinaryData in /** * Generate insights - * + * * Generates an insights report from the provided evaluation configuration. *

Header Parameters

*
@@ -310,7 +311,7 @@ public Mono> generateInsightWithResponseAsync(BinaryData in * } * } * - * + * * @param insight Complete evaluation configuration including data source, evaluators, and result settings. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -343,7 +344,7 @@ public Response generateInsightWithResponse(BinaryData insight, Requ /** * Get an insight - * + * * Retrieves the specified insight report and its results. *

Query Parameters

*
@@ -374,7 +375,7 @@ public Response generateInsightWithResponse(BinaryData insight, Requ * } * } * - * + * * @param id The unique identifier for the insights report. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -382,7 +383,7 @@ public Response generateInsightWithResponse(BinaryData insight, Requ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return an insight - * + * * Retrieves the specified insight report and its results along with {@link Response} on successful completion of * {@link Mono}. */ @@ -395,7 +396,7 @@ public Mono> getInsightWithResponseAsync(String id, Request /** * Get an insight - * + * * Retrieves the specified insight report and its results. *

Query Parameters

*
@@ -426,7 +427,7 @@ public Mono> getInsightWithResponseAsync(String id, Request * } * } * - * + * * @param id The unique identifier for the insights report. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -434,7 +435,7 @@ public Mono> getInsightWithResponseAsync(String id, Request * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return an insight - * + * * Retrieves the specified insight report and its results along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -446,7 +447,7 @@ public Response getInsightWithResponse(String id, RequestOptions req /** * List insights - * + * * Returns insights in reverse chronological order, with the most recent entries first. *

Query Parameters

*
@@ -482,7 +483,7 @@ public Response getInsightWithResponse(String id, RequestOptions req * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -503,7 +504,7 @@ private Mono> listInsightsSinglePageAsync(RequestOptio /** * List insights - * + * * Returns insights in reverse chronological order, with the most recent entries first. *

Query Parameters

*
@@ -539,7 +540,7 @@ private Mono> listInsightsSinglePageAsync(RequestOptio * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -558,7 +559,7 @@ public PagedFlux listInsightsAsync(RequestOptions requestOptions) { /** * List insights - * + * * Returns insights in reverse chronological order, with the most recent entries first. *

Query Parameters

*
@@ -594,7 +595,7 @@ public PagedFlux listInsightsAsync(RequestOptions requestOptions) { * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -613,7 +614,7 @@ private PagedResponse listInsightsSinglePage(RequestOptions requestO /** * List insights - * + * * Returns insights in reverse chronological order, with the most recent entries first. *

Query Parameters

*
@@ -649,7 +650,7 @@ private PagedResponse listInsightsSinglePage(RequestOptions requestO * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -668,7 +669,7 @@ public PagedIterable listInsights(RequestOptions requestOptions) { /** * List insights - * + * * Get the next page of items. *

Response Body Schema

* @@ -691,7 +692,7 @@ public PagedIterable listInsights(RequestOptions requestOptions) { * } * } * - * + * * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -713,7 +714,7 @@ private Mono> listInsightsNextSinglePageAsync(String n /** * List insights - * + * * Get the next page of items. *

Response Body Schema

* @@ -736,7 +737,7 @@ private Mono> listInsightsNextSinglePageAsync(String n * } * } * - * + * * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -770,6 +771,9 @@ private List getValues(BinaryData binaryData, String... path) { private String getNextLink(BinaryData binaryData, String... path) { try { Object value = binaryData.toObject(Map.class); + if (Boolean.FALSE.equals(((Map) value).get("has_more"))) { + return null; + } for (String segment : path) { value = ((Map) value).get(segment); } diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/BetaModelsImpl.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/BetaModelsImpl.java index e5b6be69262c6..8d97dde5feb36 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/BetaModelsImpl.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/BetaModelsImpl.java @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) TypeSpec Code Generator. - package com.azure.ai.projects.implementation; import com.azure.ai.projects.AIProjectsServiceVersion; @@ -43,6 +42,7 @@ * An instance of this class provides access to all the operations defined in BetaModels. */ public final class BetaModelsImpl { + /** * The proxy service used to perform REST calls. */ @@ -55,7 +55,7 @@ public final class BetaModelsImpl { /** * Initializes an instance of BetaModelsImpl. - * + * * @param client the instance of the service client containing this operation class. */ BetaModelsImpl(AIProjectClientImpl client) { @@ -66,7 +66,7 @@ public final class BetaModelsImpl { /** * Gets Service version. - * + * * @return the serviceVersion value. */ public AIProjectsServiceVersion getServiceVersion() { @@ -80,6 +80,7 @@ public AIProjectsServiceVersion getServiceVersion() { @Host("{endpoint}") @ServiceInterface(name = "AIProjectClientBetaModels") public interface BetaModelsService { + @Get("/models/{name}/versions") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @@ -303,7 +304,7 @@ Response listLatestModelVersionsNextSync( /** * List versions - * + * * List all versions of the given ModelVersion. *

Response Body Schema

* @@ -347,7 +348,7 @@ Response listLatestModelVersionsNextSync( * } * } * - * + * * @param name The name of the resource. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -370,7 +371,7 @@ private Mono> listModelVersionsSinglePageAsync(String /** * List versions - * + * * List all versions of the given ModelVersion. *

Response Body Schema

* @@ -414,7 +415,7 @@ private Mono> listModelVersionsSinglePageAsync(String * } * } * - * + * * @param name The name of the resource. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -434,7 +435,7 @@ public PagedFlux listModelVersionsAsync(String name, RequestOptions /** * List versions - * + * * List all versions of the given ModelVersion. *

Response Body Schema

* @@ -478,7 +479,7 @@ public PagedFlux listModelVersionsAsync(String name, RequestOptions * } * } * - * + * * @param name The name of the resource. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -498,7 +499,7 @@ private PagedResponse listModelVersionsSinglePage(String name, Reque /** * List versions - * + * * List all versions of the given ModelVersion. *

Response Body Schema

* @@ -542,7 +543,7 @@ private PagedResponse listModelVersionsSinglePage(String name, Reque * } * } * - * + * * @param name The name of the resource. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -562,7 +563,7 @@ public PagedIterable listModelVersions(String name, RequestOptions r /** * List latest versions - * + * * List the latest version of each ModelVersion. *

Response Body Schema

* @@ -606,7 +607,7 @@ public PagedIterable listModelVersions(String name, RequestOptions r * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -627,7 +628,7 @@ private Mono> listLatestModelVersionsSinglePageAsync(R /** * List latest versions - * + * * List the latest version of each ModelVersion. *

Response Body Schema

* @@ -671,7 +672,7 @@ private Mono> listLatestModelVersionsSinglePageAsync(R * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -690,7 +691,7 @@ public PagedFlux listLatestModelVersionsAsync(RequestOptions request /** * List latest versions - * + * * List the latest version of each ModelVersion. *

Response Body Schema

* @@ -734,7 +735,7 @@ public PagedFlux listLatestModelVersionsAsync(RequestOptions request * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -753,7 +754,7 @@ private PagedResponse listLatestModelVersionsSinglePage(RequestOptio /** * List latest versions - * + * * List the latest version of each ModelVersion. *

Response Body Schema

* @@ -797,7 +798,7 @@ private PagedResponse listLatestModelVersionsSinglePage(RequestOptio * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -816,7 +817,7 @@ public PagedIterable listLatestModelVersions(RequestOptions requestO /** * Get a model version - * + * * Retrieves the specified model version, returning 404 if it does not exist. *

Response Body Schema

* @@ -860,7 +861,7 @@ public PagedIterable listLatestModelVersions(RequestOptions requestO * } * } * - * + * * @param name The name of the resource. * @param version The specific version id of the ModelVersion to retrieve. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -869,7 +870,7 @@ public PagedIterable listLatestModelVersions(RequestOptions requestO * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a model version - * + * * Retrieves the specified model version, returning 404 if it does not exist along with {@link Response} on * successful completion of {@link Mono}. */ @@ -883,7 +884,7 @@ public Mono> getModelVersionWithResponseAsync(String name, /** * Get a model version - * + * * Retrieves the specified model version, returning 404 if it does not exist. *

Response Body Schema

* @@ -927,7 +928,7 @@ public Mono> getModelVersionWithResponseAsync(String name, * } * } * - * + * * @param name The name of the resource. * @param version The specific version id of the ModelVersion to retrieve. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -936,7 +937,7 @@ public Mono> getModelVersionWithResponseAsync(String name, * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a model version - * + * * Retrieves the specified model version, returning 404 if it does not exist along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -949,9 +950,9 @@ public Response getModelVersionWithResponse(String name, String vers /** * Delete a model version - * + * * Removes the specified model version. Returns 200 whether the version existed or not. - * + * * @param name The name of the resource. * @param version The version of the ModelVersion to delete. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -970,9 +971,9 @@ public Mono> deleteModelVersionWithResponseAsync(String name, Str /** * Delete a model version - * + * * Removes the specified model version. Returns 200 whether the version existed or not. - * + * * @param name The name of the resource. * @param version The version of the ModelVersion to delete. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -990,7 +991,7 @@ public Response deleteModelVersionWithResponse(String name, String version /** * Update a model version - * + * * Updates an existing model version identified by its version ID. *

Request Body Schema

* @@ -1047,7 +1048,7 @@ public Response deleteModelVersionWithResponse(String name, String version * } * } * - * + * * @param name The name of the resource. * @param version The specific version id of the UpdateModelVersionRequest to create or update. * @param modelVersionUpdate The UpdateModelVersionRequest to create or update. @@ -1070,7 +1071,7 @@ public Mono> updateModelVersionWithResponseAsync(String nam /** * Update a model version - * + * * Updates an existing model version identified by its version ID. *

Request Body Schema

* @@ -1127,7 +1128,7 @@ public Mono> updateModelVersionWithResponseAsync(String nam * } * } * - * + * * @param name The name of the resource. * @param version The specific version id of the UpdateModelVersionRequest to create or update. * @param modelVersionUpdate The UpdateModelVersionRequest to create or update. @@ -1149,7 +1150,7 @@ public Response updateModelVersionWithResponse(String name, String v /** * Create a model version async - * + * * Creates a model version asynchronously with blob content validation. Returns 202 Accepted with a location header * for polling the operation status. *

Request Body Schema

@@ -1212,7 +1213,7 @@ public Response updateModelVersionWithResponse(String name, String v *
* *
NameTypeDescription
LocationStringURL to poll for operation status.
- * + * * @param name Name of the model. * @param version Version of the model. * @param modelVersion Model version to create. @@ -1235,7 +1236,7 @@ public Mono> createModelVersionAsyncWithResponseAsync(Strin /** * Create a model version async - * + * * Creates a model version asynchronously with blob content validation. Returns 202 Accepted with a location header * for polling the operation status. *

Request Body Schema

@@ -1298,7 +1299,7 @@ public Mono> createModelVersionAsyncWithResponseAsync(Strin * NameTypeDescription * LocationStringURL to poll for operation status. * - * + * * @param name Name of the model. * @param version Version of the model. * @param modelVersion Model version to create. @@ -1321,7 +1322,7 @@ public Response createModelVersionAsyncWithResponse(String name, Str /** * Start a pending upload - * + * * Initiates a new pending upload or retrieves an existing one for the specified model version. *

Request Body Schema

* @@ -1354,7 +1355,7 @@ public Response createModelVersionAsyncWithResponse(String name, Str * } * } * - * + * * @param name Name of the model. * @param version Version of the model. * @param pendingUploadRequest The pending upload request request body. @@ -1378,7 +1379,7 @@ public Mono> startModelPendingUploadWithResponseAsync(Strin /** * Start a pending upload - * + * * Initiates a new pending upload or retrieves an existing one for the specified model version. *

Request Body Schema

* @@ -1411,7 +1412,7 @@ public Mono> startModelPendingUploadWithResponseAsync(Strin * } * } * - * + * * @param name Name of the model. * @param version Version of the model. * @param pendingUploadRequest The pending upload request request body. @@ -1434,7 +1435,7 @@ public Response startModelPendingUploadWithResponse(String name, Str /** * Get model asset credentials - * + * * Retrieves temporary credentials for accessing the storage backing the specified model version. *

Request Body Schema

* @@ -1462,7 +1463,7 @@ public Response startModelPendingUploadWithResponse(String name, Str * } * } * - * + * * @param name Name of the model. * @param version Version of the model. * @param credentialRequest The credential request request body. @@ -1472,7 +1473,7 @@ public Response startModelPendingUploadWithResponse(String name, Str * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return model asset credentials - * + * * Retrieves temporary credentials for accessing the storage backing the specified model version along with * {@link Response} on successful completion of {@link Mono}. */ @@ -1488,7 +1489,7 @@ public Mono> getModelCredentialsWithResponseAsync(String na /** * Get model asset credentials - * + * * Retrieves temporary credentials for accessing the storage backing the specified model version. *

Request Body Schema

* @@ -1516,7 +1517,7 @@ public Mono> getModelCredentialsWithResponseAsync(String na * } * } * - * + * * @param name Name of the model. * @param version Version of the model. * @param credentialRequest The credential request request body. @@ -1526,7 +1527,7 @@ public Mono> getModelCredentialsWithResponseAsync(String na * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return model asset credentials - * + * * Retrieves temporary credentials for accessing the storage backing the specified model version along with * {@link Response}. */ @@ -1541,7 +1542,7 @@ public Response getModelCredentialsWithResponse(String name, String /** * List versions - * + * * Get the next page of items. *

Response Body Schema

* @@ -1585,7 +1586,7 @@ public Response getModelCredentialsWithResponse(String name, String * } * } * - * + * * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1608,7 +1609,7 @@ private Mono> listModelVersionsNextSinglePageAsync(Str /** * List versions - * + * * Get the next page of items. *

Response Body Schema

* @@ -1652,7 +1653,7 @@ private Mono> listModelVersionsNextSinglePageAsync(Str * } * } * - * + * * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1672,7 +1673,7 @@ private PagedResponse listModelVersionsNextSinglePage(String nextLin /** * List latest versions - * + * * Get the next page of items. *

Response Body Schema

* @@ -1716,7 +1717,7 @@ private PagedResponse listModelVersionsNextSinglePage(String nextLin * } * } * - * + * * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1739,7 +1740,7 @@ private Mono> listLatestModelVersionsNextSinglePageAsy /** * List latest versions - * + * * Get the next page of items. *

Response Body Schema

* @@ -1783,7 +1784,7 @@ private Mono> listLatestModelVersionsNextSinglePageAsy * } * } * - * + * * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1818,6 +1819,9 @@ private List getValues(BinaryData binaryData, String... path) { private String getNextLink(BinaryData binaryData, String... path) { try { Object value = binaryData.toObject(Map.class); + if (Boolean.FALSE.equals(((Map) value).get("has_more"))) { + return null; + } for (String segment : path) { value = ((Map) value).get(segment); } diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/BetaRedTeamsImpl.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/BetaRedTeamsImpl.java index 39d2467969c48..2380a267a30ae 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/BetaRedTeamsImpl.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/BetaRedTeamsImpl.java @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) TypeSpec Code Generator. - package com.azure.ai.projects.implementation; import com.azure.ai.projects.AIProjectsServiceVersion; @@ -41,6 +40,7 @@ * An instance of this class provides access to all the operations defined in BetaRedTeams. */ public final class BetaRedTeamsImpl { + /** * The proxy service used to perform REST calls. */ @@ -53,7 +53,7 @@ public final class BetaRedTeamsImpl { /** * Initializes an instance of BetaRedTeamsImpl. - * + * * @param client the instance of the service client containing this operation class. */ BetaRedTeamsImpl(AIProjectClientImpl client) { @@ -64,7 +64,7 @@ public final class BetaRedTeamsImpl { /** * Gets Service version. - * + * * @return the serviceVersion value. */ public AIProjectsServiceVersion getServiceVersion() { @@ -78,6 +78,7 @@ public AIProjectsServiceVersion getServiceVersion() { @Host("{endpoint}") @ServiceInterface(name = "AIProjectClientBetaRedTeams") public interface BetaRedTeamsService { + @Get("/redTeams/runs/{name}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @@ -163,7 +164,7 @@ Response listRedTeamsNextSync(@PathParam(value = "nextLink", encoded /** * Get a redteam - * + * * Retrieves the specified redteam and its configuration. *

Response Body Schema

* @@ -194,7 +195,7 @@ Response listRedTeamsNextSync(@PathParam(value = "nextLink", encoded * } * } * - * + * * @param name Identifier of the red team run. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -202,7 +203,7 @@ Response listRedTeamsNextSync(@PathParam(value = "nextLink", encoded * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a redteam - * + * * Retrieves the specified redteam and its configuration along with {@link Response} on successful completion of * {@link Mono}. */ @@ -215,7 +216,7 @@ public Mono> getRedTeamWithResponseAsync(String name, Reque /** * Get a redteam - * + * * Retrieves the specified redteam and its configuration. *

Response Body Schema

* @@ -246,7 +247,7 @@ public Mono> getRedTeamWithResponseAsync(String name, Reque * } * } * - * + * * @param name Identifier of the red team run. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -254,7 +255,7 @@ public Mono> getRedTeamWithResponseAsync(String name, Reque * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a redteam - * + * * Retrieves the specified redteam and its configuration along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -266,7 +267,7 @@ public Response getRedTeamWithResponse(String name, RequestOptions r /** * List redteams - * + * * Returns the redteams available in the current project. *

Response Body Schema

* @@ -297,7 +298,7 @@ public Response getRedTeamWithResponse(String name, RequestOptions r * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -318,7 +319,7 @@ private Mono> listRedTeamsSinglePageAsync(RequestOptio /** * List redteams - * + * * Returns the redteams available in the current project. *

Response Body Schema

* @@ -349,7 +350,7 @@ private Mono> listRedTeamsSinglePageAsync(RequestOptio * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -368,7 +369,7 @@ public PagedFlux listRedTeamsAsync(RequestOptions requestOptions) { /** * List redteams - * + * * Returns the redteams available in the current project. *

Response Body Schema

* @@ -399,7 +400,7 @@ public PagedFlux listRedTeamsAsync(RequestOptions requestOptions) { * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -418,7 +419,7 @@ private PagedResponse listRedTeamsSinglePage(RequestOptions requestO /** * List redteams - * + * * Returns the redteams available in the current project. *

Response Body Schema

* @@ -449,7 +450,7 @@ private PagedResponse listRedTeamsSinglePage(RequestOptions requestO * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -468,7 +469,7 @@ public PagedIterable listRedTeams(RequestOptions requestOptions) { /** * Create a redteam run - * + * * Submits a new redteam run for execution with the provided configuration. *

Request Body Schema

* @@ -529,7 +530,7 @@ public PagedIterable listRedTeams(RequestOptions requestOptions) { * } * } * - * + * * @param redTeam Redteam to be run. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -549,7 +550,7 @@ public Mono> createRedTeamRunWithResponseAsync(BinaryData r /** * Create a redteam run - * + * * Submits a new redteam run for execution with the provided configuration. *

Request Body Schema

* @@ -610,7 +611,7 @@ public Mono> createRedTeamRunWithResponseAsync(BinaryData r * } * } * - * + * * @param redTeam Redteam to be run. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -629,7 +630,7 @@ public Response createRedTeamRunWithResponse(BinaryData redTeam, Req /** * List redteams - * + * * Get the next page of items. *

Response Body Schema

* @@ -660,7 +661,7 @@ public Response createRedTeamRunWithResponse(BinaryData redTeam, Req * } * } * - * + * * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -682,7 +683,7 @@ private Mono> listRedTeamsNextSinglePageAsync(String n /** * List redteams - * + * * Get the next page of items. *

Response Body Schema

* @@ -713,7 +714,7 @@ private Mono> listRedTeamsNextSinglePageAsync(String n * } * } * - * + * * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -747,6 +748,9 @@ private List getValues(BinaryData binaryData, String... path) { private String getNextLink(BinaryData binaryData, String... path) { try { Object value = binaryData.toObject(Map.class); + if (Boolean.FALSE.equals(((Map) value).get("has_more"))) { + return null; + } for (String segment : path) { value = ((Map) value).get(segment); } diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/BetaRoutinesImpl.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/BetaRoutinesImpl.java index 1fca8ba570881..f8a1ea33161cd 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/BetaRoutinesImpl.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/BetaRoutinesImpl.java @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) TypeSpec Code Generator. - package com.azure.ai.projects.implementation; import com.azure.ai.projects.AIProjectsServiceVersion; @@ -43,6 +42,7 @@ * An instance of this class provides access to all the operations defined in BetaRoutines. */ public final class BetaRoutinesImpl { + /** * The proxy service used to perform REST calls. */ @@ -55,7 +55,7 @@ public final class BetaRoutinesImpl { /** * Initializes an instance of BetaRoutinesImpl. - * + * * @param client the instance of the service client containing this operation class. */ BetaRoutinesImpl(AIProjectClientImpl client) { @@ -66,7 +66,7 @@ public final class BetaRoutinesImpl { /** * Gets Service version. - * + * * @return the serviceVersion value. */ public AIProjectsServiceVersion getServiceVersion() { @@ -80,6 +80,7 @@ public AIProjectsServiceVersion getServiceVersion() { @Host("{endpoint}") @ServiceInterface(name = "AIProjectClientBetaRoutines") public interface BetaRoutinesService { + @Put("/routines/{routine_name}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @@ -291,7 +292,7 @@ Response listRoutineRunsNextSync(@PathParam(value = "nextLink", enco /** * Create or update a routine - * + * * Creates a new routine or replaces an existing routine with the supplied definition. *

Request Body Schema

* @@ -336,7 +337,7 @@ Response listRoutineRunsNextSync(@PathParam(value = "nextLink", enco * } * } * - * + * * @param routineName The unique name of the routine. * @param createOrUpdateRoutineRequest The createOrUpdateRoutineRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -359,7 +360,7 @@ public Mono> createOrUpdateRoutineWithResponseAsync(String /** * Create or update a routine - * + * * Creates a new routine or replaces an existing routine with the supplied definition. *

Request Body Schema

* @@ -404,7 +405,7 @@ public Mono> createOrUpdateRoutineWithResponseAsync(String * } * } * - * + * * @param routineName The unique name of the routine. * @param createOrUpdateRoutineRequest The createOrUpdateRoutineRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -426,7 +427,7 @@ public Response createOrUpdateRoutineWithResponse(String routineName /** * Get a routine - * + * * Retrieves the specified routine and its current configuration. *

Response Body Schema

* @@ -449,7 +450,7 @@ public Response createOrUpdateRoutineWithResponse(String routineName * } * } * - * + * * @param routineName The unique name of the routine. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -457,7 +458,7 @@ public Response createOrUpdateRoutineWithResponse(String routineName * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a routine - * + * * Retrieves the specified routine and its current configuration along with {@link Response} on successful * completion of {@link Mono}. */ @@ -470,7 +471,7 @@ public Mono> getRoutineWithResponseAsync(String routineName /** * Get a routine - * + * * Retrieves the specified routine and its current configuration. *

Response Body Schema

* @@ -493,7 +494,7 @@ public Mono> getRoutineWithResponseAsync(String routineName * } * } * - * + * * @param routineName The unique name of the routine. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -501,7 +502,7 @@ public Mono> getRoutineWithResponseAsync(String routineName * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a routine - * + * * Retrieves the specified routine and its current configuration along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -513,7 +514,7 @@ public Response getRoutineWithResponse(String routineName, RequestOp /** * Enable a routine - * + * * Enables the specified routine so it can be dispatched. *

Response Body Schema

* @@ -536,7 +537,7 @@ public Response getRoutineWithResponse(String routineName, RequestOp * } * } * - * + * * @param routineName The unique name of the routine. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -556,7 +557,7 @@ public Mono> enableRoutineWithResponseAsync(String routineN /** * Enable a routine - * + * * Enables the specified routine so it can be dispatched. *

Response Body Schema

* @@ -579,7 +580,7 @@ public Mono> enableRoutineWithResponseAsync(String routineN * } * } * - * + * * @param routineName The unique name of the routine. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -597,7 +598,7 @@ public Response enableRoutineWithResponse(String routineName, Reques /** * Disable a routine - * + * * Disables the specified routine so it no longer runs. *

Response Body Schema

* @@ -620,7 +621,7 @@ public Response enableRoutineWithResponse(String routineName, Reques * } * } * - * + * * @param routineName The unique name of the routine. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -640,7 +641,7 @@ public Mono> disableRoutineWithResponseAsync(String routine /** * Disable a routine - * + * * Disables the specified routine so it no longer runs. *

Response Body Schema

* @@ -663,7 +664,7 @@ public Mono> disableRoutineWithResponseAsync(String routine * } * } * - * + * * @param routineName The unique name of the routine. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -681,7 +682,7 @@ public Response disableRoutineWithResponse(String routineName, Reque /** * List routines - * + * * Returns the routines available in the current project. *

Query Parameters

* @@ -716,7 +717,7 @@ public Response disableRoutineWithResponse(String routineName, Reque * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -737,7 +738,7 @@ private Mono> listRoutinesSinglePageAsync(RequestOptio /** * List routines - * + * * Returns the routines available in the current project. *

Query Parameters

*
@@ -772,7 +773,7 @@ private Mono> listRoutinesSinglePageAsync(RequestOptio * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -791,7 +792,7 @@ public PagedFlux listRoutinesAsync(RequestOptions requestOptions) { /** * List routines - * + * * Returns the routines available in the current project. *

Query Parameters

*
@@ -826,7 +827,7 @@ public PagedFlux listRoutinesAsync(RequestOptions requestOptions) { * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -845,7 +846,7 @@ private PagedResponse listRoutinesSinglePage(RequestOptions requestO /** * List routines - * + * * Returns the routines available in the current project. *

Query Parameters

*
@@ -880,7 +881,7 @@ private PagedResponse listRoutinesSinglePage(RequestOptions requestO * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -899,9 +900,9 @@ public PagedIterable listRoutines(RequestOptions requestOptions) { /** * Delete a routine - * + * * Deletes the specified routine. - * + * * @param routineName The unique name of the routine. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -918,9 +919,9 @@ public Mono> deleteRoutineWithResponseAsync(String routineName, R /** * Delete a routine - * + * * Deletes the specified routine. - * + * * @param routineName The unique name of the routine. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -937,7 +938,7 @@ public Response deleteRoutineWithResponse(String routineName, RequestOptio /** * List prior runs for a routine - * + * * Returns prior runs recorded for the specified routine. *

Query Parameters

*
@@ -986,7 +987,7 @@ public Response deleteRoutineWithResponse(String routineName, RequestOptio * } * } * - * + * * @param routineName The unique name of the routine. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1009,7 +1010,7 @@ private Mono> listRoutineRunsSinglePageAsync(String ro /** * List prior runs for a routine - * + * * Returns prior runs recorded for the specified routine. *

Query Parameters

*
@@ -1058,7 +1059,7 @@ private Mono> listRoutineRunsSinglePageAsync(String ro * } * } * - * + * * @param routineName The unique name of the routine. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1078,7 +1079,7 @@ public PagedFlux listRoutineRunsAsync(String routineName, RequestOpt /** * List prior runs for a routine - * + * * Returns prior runs recorded for the specified routine. *

Query Parameters

*
@@ -1127,7 +1128,7 @@ public PagedFlux listRoutineRunsAsync(String routineName, RequestOpt * } * } * - * + * * @param routineName The unique name of the routine. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1147,7 +1148,7 @@ private PagedResponse listRoutineRunsSinglePage(String routineName, /** * List prior runs for a routine - * + * * Returns prior runs recorded for the specified routine. *

Query Parameters

*
@@ -1196,7 +1197,7 @@ private PagedResponse listRoutineRunsSinglePage(String routineName, * } * } * - * + * * @param routineName The unique name of the routine. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1216,7 +1217,7 @@ public PagedIterable listRoutineRuns(String routineName, RequestOpti /** * Queue an asynchronous routine dispatch - * + * * Queues an asynchronous dispatch for the specified routine. *

Request Body Schema

* @@ -1241,7 +1242,7 @@ public PagedIterable listRoutineRuns(String routineName, RequestOpti * } * } * - * + * * @param routineName The unique name of the routine. * @param dispatchRoutineAsyncRequest The dispatchRoutineAsyncRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1264,7 +1265,7 @@ public Mono> dispatchRoutineWithResponseAsync(String routin /** * Queue an asynchronous routine dispatch - * + * * Queues an asynchronous dispatch for the specified routine. *

Request Body Schema

* @@ -1289,7 +1290,7 @@ public Mono> dispatchRoutineWithResponseAsync(String routin * } * } * - * + * * @param routineName The unique name of the routine. * @param dispatchRoutineAsyncRequest The dispatchRoutineAsyncRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1311,7 +1312,7 @@ public Response dispatchRoutineWithResponse(String routineName, Bina /** * List routines - * + * * Get the next page of items. *

Response Body Schema

* @@ -1334,7 +1335,7 @@ public Response dispatchRoutineWithResponse(String routineName, Bina * } * } * - * + * * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1356,7 +1357,7 @@ private Mono> listRoutinesNextSinglePageAsync(String n /** * List routines - * + * * Get the next page of items. *

Response Body Schema

* @@ -1379,7 +1380,7 @@ private Mono> listRoutinesNextSinglePageAsync(String n * } * } * - * + * * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1399,7 +1400,7 @@ private PagedResponse listRoutinesNextSinglePage(String nextLink, Re /** * List prior runs for a routine - * + * * Get the next page of items. *

Response Body Schema

* @@ -1434,7 +1435,7 @@ private PagedResponse listRoutinesNextSinglePage(String nextLink, Re * } * } * - * + * * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1457,7 +1458,7 @@ private Mono> listRoutineRunsNextSinglePageAsync(Strin /** * List prior runs for a routine - * + * * Get the next page of items. *

Response Body Schema

* @@ -1492,7 +1493,7 @@ private Mono> listRoutineRunsNextSinglePageAsync(Strin * } * } * - * + * * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1526,6 +1527,9 @@ private List getValues(BinaryData binaryData, String... path) { private String getNextLink(BinaryData binaryData, String... path) { try { Object value = binaryData.toObject(Map.class); + if (Boolean.FALSE.equals(((Map) value).get("has_more"))) { + return null; + } for (String segment : path) { value = ((Map) value).get(segment); } diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/BetaSchedulesImpl.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/BetaSchedulesImpl.java index c34b6598510ac..2d2ffc53ade39 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/BetaSchedulesImpl.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/BetaSchedulesImpl.java @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) TypeSpec Code Generator. - package com.azure.ai.projects.implementation; import com.azure.ai.projects.AIProjectsServiceVersion; @@ -42,6 +41,7 @@ * An instance of this class provides access to all the operations defined in BetaSchedules. */ public final class BetaSchedulesImpl { + /** * The proxy service used to perform REST calls. */ @@ -54,7 +54,7 @@ public final class BetaSchedulesImpl { /** * Initializes an instance of BetaSchedulesImpl. - * + * * @param client the instance of the service client containing this operation class. */ BetaSchedulesImpl(AIProjectClientImpl client) { @@ -65,7 +65,7 @@ public final class BetaSchedulesImpl { /** * Gets Service version. - * + * * @return the serviceVersion value. */ public AIProjectsServiceVersion getServiceVersion() { @@ -79,6 +79,7 @@ public AIProjectsServiceVersion getServiceVersion() { @Host("{endpoint}") @ServiceInterface(name = "AIProjectClientBetaSchedules") public interface BetaSchedulesService { + @Delete("/schedules/{id}") @ExpectedResponses({ 204 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @@ -246,9 +247,9 @@ Response listScheduleRunsNextSync(@PathParam(value = "nextLink", enc /** * Delete a schedule - * + * * Deletes the specified schedule resource. - * + * * @param id Identifier of the schedule. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -265,9 +266,9 @@ public Mono> deleteScheduleWithResponseAsync(String id, RequestOp /** * Delete a schedule - * + * * Deletes the specified schedule resource. - * + * * @param id Identifier of the schedule. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -284,7 +285,7 @@ public Response deleteScheduleWithResponse(String id, RequestOptions reque /** * Get a schedule - * + * * Retrieves the specified schedule resource. *

Response Body Schema

* @@ -317,7 +318,7 @@ public Response deleteScheduleWithResponse(String id, RequestOptions reque * } * } * - * + * * @param id Identifier of the schedule. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -325,7 +326,7 @@ public Response deleteScheduleWithResponse(String id, RequestOptions reque * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a schedule - * + * * Retrieves the specified schedule resource along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -337,7 +338,7 @@ public Mono> getScheduleWithResponseAsync(String id, Reques /** * Get a schedule - * + * * Retrieves the specified schedule resource. *

Response Body Schema

* @@ -370,7 +371,7 @@ public Mono> getScheduleWithResponseAsync(String id, Reques * } * } * - * + * * @param id Identifier of the schedule. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -378,7 +379,7 @@ public Mono> getScheduleWithResponseAsync(String id, Reques * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a schedule - * + * * Retrieves the specified schedule resource along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -390,7 +391,7 @@ public Response getScheduleWithResponse(String id, RequestOptions re /** * List schedules - * + * * Returns schedules that match the supplied type and enabled filters. *

Query Parameters

*
@@ -432,7 +433,7 @@ public Response getScheduleWithResponse(String id, RequestOptions re * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -453,7 +454,7 @@ private Mono> listSchedulesSinglePageAsync(RequestOpti /** * List schedules - * + * * Returns schedules that match the supplied type and enabled filters. *

Query Parameters

*
@@ -495,7 +496,7 @@ private Mono> listSchedulesSinglePageAsync(RequestOpti * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -514,7 +515,7 @@ public PagedFlux listSchedulesAsync(RequestOptions requestOptions) { /** * List schedules - * + * * Returns schedules that match the supplied type and enabled filters. *

Query Parameters

*
@@ -556,7 +557,7 @@ public PagedFlux listSchedulesAsync(RequestOptions requestOptions) { * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -575,7 +576,7 @@ private PagedResponse listSchedulesSinglePage(RequestOptions request /** * List schedules - * + * * Returns schedules that match the supplied type and enabled filters. *

Query Parameters

*
@@ -617,7 +618,7 @@ private PagedResponse listSchedulesSinglePage(RequestOptions request * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -636,7 +637,7 @@ public PagedIterable listSchedules(RequestOptions requestOptions) { /** * Create or update a schedule - * + * * Creates a new schedule or updates an existing schedule with the supplied definition. *

Request Body Schema

* @@ -701,7 +702,7 @@ public PagedIterable listSchedules(RequestOptions requestOptions) { * } * } * - * + * * @param id Identifier of the schedule. * @param resource The resource instance. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -722,7 +723,7 @@ public Mono> createOrUpdateScheduleWithResponseAsync(String /** * Create or update a schedule - * + * * Creates a new schedule or updates an existing schedule with the supplied definition. *

Request Body Schema

* @@ -787,7 +788,7 @@ public Mono> createOrUpdateScheduleWithResponseAsync(String * } * } * - * + * * @param id Identifier of the schedule. * @param resource The resource instance. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -809,7 +810,7 @@ public Response createOrUpdateScheduleWithResponse(String id, Binary /** * Get a schedule run - * + * * Retrieves the specified run for a schedule. *

Response Body Schema

* @@ -827,7 +828,7 @@ public Response createOrUpdateScheduleWithResponse(String id, Binary * } * } * - * + * * @param scheduleId The unique identifier of the schedule. * @param runId The unique identifier of the schedule run. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -836,7 +837,7 @@ public Response createOrUpdateScheduleWithResponse(String id, Binary * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a schedule run - * + * * Retrieves the specified run for a schedule along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -849,7 +850,7 @@ public Mono> getScheduleRunWithResponseAsync(String schedul /** * Get a schedule run - * + * * Retrieves the specified run for a schedule. *

Response Body Schema

* @@ -867,7 +868,7 @@ public Mono> getScheduleRunWithResponseAsync(String schedul * } * } * - * + * * @param scheduleId The unique identifier of the schedule. * @param runId The unique identifier of the schedule run. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -876,7 +877,7 @@ public Mono> getScheduleRunWithResponseAsync(String schedul * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a schedule run - * + * * Retrieves the specified run for a schedule along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -889,7 +890,7 @@ public Response getScheduleRunWithResponse(String scheduleId, String /** * List schedule runs - * + * * Returns schedule runs that match the supplied filters. *

Query Parameters

*
@@ -916,7 +917,7 @@ public Response getScheduleRunWithResponse(String scheduleId, String * } * } * - * + * * @param id Identifier of the schedule. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -938,7 +939,7 @@ private Mono> listScheduleRunsSinglePageAsync(String i /** * List schedule runs - * + * * Returns schedule runs that match the supplied filters. *

Query Parameters

*
@@ -965,7 +966,7 @@ private Mono> listScheduleRunsSinglePageAsync(String i * } * } * - * + * * @param id Identifier of the schedule. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -985,7 +986,7 @@ public PagedFlux listScheduleRunsAsync(String id, RequestOptions req /** * List schedule runs - * + * * Returns schedule runs that match the supplied filters. *

Query Parameters

*
@@ -1012,7 +1013,7 @@ public PagedFlux listScheduleRunsAsync(String id, RequestOptions req * } * } * - * + * * @param id Identifier of the schedule. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1032,7 +1033,7 @@ private PagedResponse listScheduleRunsSinglePage(String id, RequestO /** * List schedule runs - * + * * Returns schedule runs that match the supplied filters. *

Query Parameters

*
@@ -1059,7 +1060,7 @@ private PagedResponse listScheduleRunsSinglePage(String id, RequestO * } * } * - * + * * @param id Identifier of the schedule. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1079,7 +1080,7 @@ public PagedIterable listScheduleRuns(String id, RequestOptions requ /** * List schedules - * + * * Get the next page of items. *

Response Body Schema

* @@ -1112,7 +1113,7 @@ public PagedIterable listScheduleRuns(String id, RequestOptions requ * } * } * - * + * * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1134,7 +1135,7 @@ private Mono> listSchedulesNextSinglePageAsync(String /** * List schedules - * + * * Get the next page of items. *

Response Body Schema

* @@ -1167,7 +1168,7 @@ private Mono> listSchedulesNextSinglePageAsync(String * } * } * - * + * * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1187,7 +1188,7 @@ private PagedResponse listSchedulesNextSinglePage(String nextLink, R /** * List schedule runs - * + * * Get the next page of items. *

Response Body Schema

* @@ -1205,7 +1206,7 @@ private PagedResponse listSchedulesNextSinglePage(String nextLink, R * } * } * - * + * * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1228,7 +1229,7 @@ private Mono> listScheduleRunsNextSinglePageAsync(Stri /** * List schedule runs - * + * * Get the next page of items. *

Response Body Schema

* @@ -1246,7 +1247,7 @@ private Mono> listScheduleRunsNextSinglePageAsync(Stri * } * } * - * + * * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1280,6 +1281,9 @@ private List getValues(BinaryData binaryData, String... path) { private String getNextLink(BinaryData binaryData, String... path) { try { Object value = binaryData.toObject(Map.class); + if (Boolean.FALSE.equals(((Map) value).get("has_more"))) { + return null; + } for (String segment : path) { value = ((Map) value).get(segment); } diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/BetaSkillsImpl.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/BetaSkillsImpl.java index 9520356c3571a..05a70c1a09c51 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/BetaSkillsImpl.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/BetaSkillsImpl.java @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) TypeSpec Code Generator. - package com.azure.ai.projects.implementation; import com.azure.ai.projects.AIProjectsServiceVersion; @@ -33,6 +32,7 @@ import com.azure.core.util.BinaryData; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; +import com.azure.core.util.UrlBuilder; import java.util.List; import java.util.Map; import java.util.stream.Collectors; @@ -42,6 +42,7 @@ * An instance of this class provides access to all the operations defined in BetaSkills. */ public final class BetaSkillsImpl { + /** * The proxy service used to perform REST calls. */ @@ -54,7 +55,7 @@ public final class BetaSkillsImpl { /** * Initializes an instance of BetaSkillsImpl. - * + * * @param client the instance of the service client containing this operation class. */ BetaSkillsImpl(AIProjectClientImpl client) { @@ -65,7 +66,7 @@ public final class BetaSkillsImpl { /** * Gets Service version. - * + * * @return the serviceVersion value. */ public AIProjectsServiceVersion getServiceVersion() { @@ -79,6 +80,7 @@ public AIProjectsServiceVersion getServiceVersion() { @Host("{endpoint}") @ServiceInterface(name = "AIProjectClientBetaSkills") public interface BetaSkillsService { + @Get("/skills/{name}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @@ -317,7 +319,7 @@ Response internalDeleteSkillVersionSync(@HostParam("endpoint") Strin /** * Retrieve a skill - * + * * Retrieves the specified skill and its current configuration. *

Response Body Schema

* @@ -333,7 +335,7 @@ Response internalDeleteSkillVersionSync(@HostParam("endpoint") Strin * } * } * - * + * * @param name The unique name of the skill. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -351,7 +353,7 @@ public Mono> getSkillWithResponseAsync(String name, Request /** * Retrieve a skill - * + * * Retrieves the specified skill and its current configuration. *

Response Body Schema

* @@ -367,7 +369,7 @@ public Mono> getSkillWithResponseAsync(String name, Request * } * } * - * + * * @param name The unique name of the skill. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -385,7 +387,7 @@ public Response getSkillWithResponse(String name, RequestOptions req /** * List skills - * + * * Returns the skills available in the current project. *

Query Parameters

*
@@ -421,7 +423,7 @@ public Response getSkillWithResponse(String name, RequestOptions req * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -437,12 +439,12 @@ private Mono> listSkillsSinglePageAsync(RequestOptions .withContext(context -> service.listSkills(this.client.getEndpoint(), this.client.getServiceVersion().getVersion(), accept, requestOptions, context)) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null)); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null)); } /** * List skills - * + * * Returns the skills available in the current project. *

Query Parameters

*
@@ -478,7 +480,7 @@ private Mono> listSkillsSinglePageAsync(RequestOptions * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -488,12 +490,39 @@ private Mono> listSkillsSinglePageAsync(RequestOptions */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listSkillsAsync(RequestOptions requestOptions) { - return new PagedFlux<>(() -> listSkillsSinglePageAsync(requestOptions)); + return listSkillsAsync(null, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listSkillsAsync(String initialContinuationToken, RequestOptions requestOptions) { + return new PagedFlux<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listSkillsSinglePageAsync(requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listSkillsSinglePageAsync(requestOptionsLocal); + }); } /** * List skills - * + * * Returns the skills available in the current project. *

Query Parameters

*
@@ -529,7 +558,7 @@ public PagedFlux listSkillsAsync(RequestOptions requestOptions) { * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -543,12 +572,12 @@ private PagedResponse listSkillsSinglePage(RequestOptions requestOpt Response res = service.listSkillsSync(this.client.getEndpoint(), this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null); } /** * List skills - * + * * Returns the skills available in the current project. *

Query Parameters

*
@@ -584,7 +613,7 @@ private PagedResponse listSkillsSinglePage(RequestOptions requestOpt * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -594,12 +623,39 @@ private PagedResponse listSkillsSinglePage(RequestOptions requestOpt */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listSkills(RequestOptions requestOptions) { - return new PagedIterable<>(() -> listSkillsSinglePage(requestOptions)); + return listSkills(null, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listSkills(String initialContinuationToken, RequestOptions requestOptions) { + return new PagedIterable<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listSkillsSinglePage(requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listSkillsSinglePage(requestOptionsLocal); + }); } /** * Update a skill - * + * * Modifies the specified skill's configuration. *

Request Body Schema

* @@ -625,7 +681,7 @@ public PagedIterable listSkills(RequestOptions requestOptions) { * } * } * - * + * * @param name The name of the skill to update. * @param updateSkillRequest The updateSkillRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -647,7 +703,7 @@ public Mono> updateSkillWithResponseAsync(String name, Bina /** * Update a skill - * + * * Modifies the specified skill's configuration. *

Request Body Schema

* @@ -673,7 +729,7 @@ public Mono> updateSkillWithResponseAsync(String name, Bina * } * } * - * + * * @param name The name of the skill to update. * @param updateSkillRequest The updateSkillRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -694,7 +750,7 @@ public Response updateSkillWithResponse(String name, BinaryData upda /** * Delete a skill - * + * * Removes the specified skill and its associated versions. *

Response Body Schema

* @@ -707,7 +763,7 @@ public Response updateSkillWithResponse(String name, BinaryData upda * } * } * - * + * * @param name The unique name of the skill. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -725,7 +781,7 @@ public Mono> internalDeleteSkillWithResponseAsync(String na /** * Delete a skill - * + * * Removes the specified skill and its associated versions. *

Response Body Schema

* @@ -738,7 +794,7 @@ public Mono> internalDeleteSkillWithResponseAsync(String na * } * } * - * + * * @param name The unique name of the skill. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -756,7 +812,7 @@ public Response internalDeleteSkillWithResponse(String name, Request /** * Create a new version of a skill - * + * * Creates a new version of a skill. If the skill does not exist, it will be created. *

Request Body Schema

* @@ -794,7 +850,7 @@ public Response internalDeleteSkillWithResponse(String name, Request * } * } * - * + * * @param name The name of the skill. If the skill does not exist, it will be created. * @param createSkillVersionRequest The createSkillVersionRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -816,7 +872,7 @@ public Mono> createSkillVersionWithResponseAsync(String nam /** * Create a new version of a skill - * + * * Creates a new version of a skill. If the skill does not exist, it will be created. *

Request Body Schema

* @@ -854,7 +910,7 @@ public Mono> createSkillVersionWithResponseAsync(String nam * } * } * - * + * * @param name The name of the skill. If the skill does not exist, it will be created. * @param createSkillVersionRequest The createSkillVersionRequest parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -876,7 +932,7 @@ public Response createSkillVersionWithResponse(String name, BinaryDa /** * Create a skill version from uploaded files - * + * * Creates a new version of a skill from uploaded files via multipart form data. *

Response Body Schema

* @@ -892,7 +948,7 @@ public Response createSkillVersionWithResponse(String name, BinaryDa * } * } * - * + * * @param name The name of the skill. * @param content The multipart request content. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -913,7 +969,7 @@ public Mono> createSkillVersionFromFilesWithResponseInterna /** * Create a skill version from uploaded files - * + * * Creates a new version of a skill from uploaded files via multipart form data. *

Response Body Schema

* @@ -929,7 +985,7 @@ public Mono> createSkillVersionFromFilesWithResponseInterna * } * } * - * + * * @param name The name of the skill. * @param content The multipart request content. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -950,7 +1006,7 @@ public Response createSkillVersionFromFilesWithResponseInternal(Stri /** * List skill versions - * + * * Returns the available versions for the specified skill. *

Query Parameters

*
@@ -986,7 +1042,7 @@ public Response createSkillVersionFromFilesWithResponseInternal(Stri * } * } * - * + * * @param name The name of the skill to list versions for. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1004,12 +1060,12 @@ private Mono> listSkillVersionsSinglePageAsync(String .withContext(context -> service.listSkillVersions(this.client.getEndpoint(), name, this.client.getServiceVersion().getVersion(), accept, requestOptions, context)) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null)); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null)); } /** * List skill versions - * + * * Returns the available versions for the specified skill. *

Query Parameters

*
@@ -1045,7 +1101,7 @@ private Mono> listSkillVersionsSinglePageAsync(String * } * } * - * + * * @param name The name of the skill to list versions for. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1056,12 +1112,40 @@ private Mono> listSkillVersionsSinglePageAsync(String */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listSkillVersionsAsync(String name, RequestOptions requestOptions) { - return new PagedFlux<>(() -> listSkillVersionsSinglePageAsync(name, requestOptions)); + return listSkillVersionsAsync(null, name, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listSkillVersionsAsync(String initialContinuationToken, String name, + RequestOptions requestOptions) { + return new PagedFlux<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listSkillVersionsSinglePageAsync(name, requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listSkillVersionsSinglePageAsync(name, requestOptionsLocal); + }); } /** * List skill versions - * + * * Returns the available versions for the specified skill. *

Query Parameters

*
@@ -1097,7 +1181,7 @@ public PagedFlux listSkillVersionsAsync(String name, RequestOptions * } * } * - * + * * @param name The name of the skill to list versions for. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1112,12 +1196,12 @@ private PagedResponse listSkillVersionsSinglePage(String name, Reque Response res = service.listSkillVersionsSync(this.client.getEndpoint(), name, this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null); } /** * List skill versions - * + * * Returns the available versions for the specified skill. *

Query Parameters

*
@@ -1153,7 +1237,7 @@ private PagedResponse listSkillVersionsSinglePage(String name, Reque * } * } * - * + * * @param name The name of the skill to list versions for. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1164,12 +1248,40 @@ private PagedResponse listSkillVersionsSinglePage(String name, Reque */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listSkillVersions(String name, RequestOptions requestOptions) { - return new PagedIterable<>(() -> listSkillVersionsSinglePage(name, requestOptions)); + return listSkillVersions(null, name, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listSkillVersions(String initialContinuationToken, String name, + RequestOptions requestOptions) { + return new PagedIterable<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listSkillVersionsSinglePage(name, requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listSkillVersionsSinglePage(name, requestOptionsLocal); + }); } /** * Retrieve a specific version of a skill - * + * * Retrieves the specified version of a skill by name and version identifier. *

Response Body Schema

* @@ -1185,7 +1297,7 @@ public PagedIterable listSkillVersions(String name, RequestOptions r * } * } * - * + * * @param name The name of the skill. * @param version The version identifier to retrieve. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1205,7 +1317,7 @@ public Mono> getSkillVersionWithResponseAsync(String name, /** * Retrieve a specific version of a skill - * + * * Retrieves the specified version of a skill by name and version identifier. *

Response Body Schema

* @@ -1221,7 +1333,7 @@ public Mono> getSkillVersionWithResponseAsync(String name, * } * } * - * + * * @param name The name of the skill. * @param version The version identifier to retrieve. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1241,7 +1353,7 @@ public Response getSkillVersionWithResponse(String name, String vers /** * Download the zip content for the default version of a skill - * + * * Downloads the zip content for the default version of a skill. *

Response Body Schema

* @@ -1250,7 +1362,7 @@ public Response getSkillVersionWithResponse(String name, String vers * BinaryData * } * - * + * * @param name The name of the skill. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1268,7 +1380,7 @@ public Mono> getSkillContentWithResponseAsync(String name, /** * Download the zip content for the default version of a skill - * + * * Downloads the zip content for the default version of a skill. *

Response Body Schema

* @@ -1277,7 +1389,7 @@ public Mono> getSkillContentWithResponseAsync(String name, * BinaryData * } * - * + * * @param name The name of the skill. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1295,7 +1407,7 @@ public Response getSkillContentWithResponse(String name, RequestOpti /** * Download the zip content for a specific version of a skill - * + * * Downloads the zip content for a specific version of a skill. *

Response Body Schema

* @@ -1304,7 +1416,7 @@ public Response getSkillContentWithResponse(String name, RequestOpti * BinaryData * } * - * + * * @param name The name of the skill. * @param version The version to download content for. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1324,7 +1436,7 @@ public Mono> getSkillVersionContentWithResponseAsync(String /** * Download the zip content for a specific version of a skill - * + * * Downloads the zip content for a specific version of a skill. *

Response Body Schema

* @@ -1333,7 +1445,7 @@ public Mono> getSkillVersionContentWithResponseAsync(String * BinaryData * } * - * + * * @param name The name of the skill. * @param version The version to download content for. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1353,7 +1465,7 @@ public Response getSkillVersionContentWithResponse(String name, Stri /** * Delete a specific version of a skill - * + * * Removes the specified version of a skill. *

Response Body Schema

* @@ -1367,7 +1479,7 @@ public Response getSkillVersionContentWithResponse(String name, Stri * } * } * - * + * * @param name The name of the skill. * @param version The version identifier to delete. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1387,7 +1499,7 @@ public Mono> internalDeleteSkillVersionWithResponseAsync(St /** * Delete a specific version of a skill - * + * * Removes the specified version of a skill. *

Response Body Schema

* @@ -1401,7 +1513,7 @@ public Mono> internalDeleteSkillVersionWithResponseAsync(St * } * } * - * + * * @param name The name of the skill. * @param version The version identifier to delete. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1435,6 +1547,9 @@ private List getValues(BinaryData binaryData, String... path) { private String getNextLink(BinaryData binaryData, String... path) { try { Object value = binaryData.toObject(Map.class); + if (Boolean.FALSE.equals(((Map) value).get("has_more"))) { + return null; + } for (String segment : path) { value = ((Map) value).get(segment); } diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/ConnectionsImpl.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/ConnectionsImpl.java index 31c8485c9d13c..cfb10465a326c 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/ConnectionsImpl.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/ConnectionsImpl.java @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) TypeSpec Code Generator. - package com.azure.ai.projects.implementation; import com.azure.ai.projects.AIProjectsServiceVersion; @@ -40,6 +39,7 @@ * An instance of this class provides access to all the operations defined in Connections. */ public final class ConnectionsImpl { + /** * The proxy service used to perform REST calls. */ @@ -52,7 +52,7 @@ public final class ConnectionsImpl { /** * Initializes an instance of ConnectionsImpl. - * + * * @param client the instance of the service client containing this operation class. */ ConnectionsImpl(AIProjectClientImpl client) { @@ -63,7 +63,7 @@ public final class ConnectionsImpl { /** * Gets Service version. - * + * * @return the serviceVersion value. */ public AIProjectsServiceVersion getServiceVersion() { @@ -77,6 +77,7 @@ public AIProjectsServiceVersion getServiceVersion() { @Host("{endpoint}") @ServiceInterface(name = "AIProjectClientConnections") public interface ConnectionsService { + @Get("/connections/{name}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @@ -160,7 +161,7 @@ Response listConnectionsNextSync(@PathParam(value = "nextLink", enco /** * Get a connection - * + * * Retrieves the specified connection and its configuration details without including credential values. *

Response Body Schema

* @@ -189,7 +190,7 @@ Response listConnectionsNextSync(@PathParam(value = "nextLink", enco *
*
x-ms-client-request-idStringAn opaque, globally-unique, client-generated string * identifier for the request.
- * + * * @param name The friendly name of the connection, provided by the user. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -197,7 +198,7 @@ Response listConnectionsNextSync(@PathParam(value = "nextLink", enco * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a connection - * + * * Retrieves the specified connection and its configuration details without including credential values along with * {@link Response} on successful completion of {@link Mono}. */ @@ -210,7 +211,7 @@ public Mono> getConnectionWithResponseAsync(String name, Re /** * Get a connection - * + * * Retrieves the specified connection and its configuration details without including credential values. *

Response Body Schema

* @@ -239,7 +240,7 @@ public Mono> getConnectionWithResponseAsync(String name, Re * x-ms-client-request-idStringAn opaque, globally-unique, client-generated string * identifier for the request. * - * + * * @param name The friendly name of the connection, provided by the user. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -247,7 +248,7 @@ public Mono> getConnectionWithResponseAsync(String name, Re * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a connection - * + * * Retrieves the specified connection and its configuration details without including credential values along with * {@link Response}. */ @@ -260,7 +261,7 @@ public Response getConnectionWithResponse(String name, RequestOption /** * Get a connection with credentials - * + * * Retrieves the specified connection together with its credential values. *

Response Body Schema

* @@ -289,7 +290,7 @@ public Response getConnectionWithResponse(String name, RequestOption * x-ms-client-request-idStringAn opaque, globally-unique, client-generated string * identifier for the request. * - * + * * @param name The friendly name of the connection, provided by the user. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -297,7 +298,7 @@ public Response getConnectionWithResponse(String name, RequestOption * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a connection with credentials - * + * * Retrieves the specified connection together with its credential values along with {@link Response} on successful * completion of {@link Mono}. */ @@ -311,7 +312,7 @@ public Mono> getConnectionWithCredentialsWithResponseAsync( /** * Get a connection with credentials - * + * * Retrieves the specified connection together with its credential values. *

Response Body Schema

* @@ -340,7 +341,7 @@ public Mono> getConnectionWithCredentialsWithResponseAsync( * x-ms-client-request-idStringAn opaque, globally-unique, client-generated string * identifier for the request. * - * + * * @param name The friendly name of the connection, provided by the user. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -348,7 +349,7 @@ public Mono> getConnectionWithCredentialsWithResponseAsync( * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a connection with credentials - * + * * Retrieves the specified connection together with its credential values along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -360,7 +361,7 @@ public Response getConnectionWithCredentialsWithResponse(String name /** * List connections - * + * * Returns the connections available in the current project, optionally filtered by type or default status. *

Query Parameters

* @@ -392,7 +393,7 @@ public Response getConnectionWithCredentialsWithResponse(String name * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -413,7 +414,7 @@ private Mono> listConnectionsSinglePageAsync(RequestOp /** * List connections - * + * * Returns the connections available in the current project, optionally filtered by type or default status. *

Query Parameters

*
@@ -445,7 +446,7 @@ private Mono> listConnectionsSinglePageAsync(RequestOp * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -464,7 +465,7 @@ public PagedFlux listConnectionsAsync(RequestOptions requestOptions) /** * List connections - * + * * Returns the connections available in the current project, optionally filtered by type or default status. *

Query Parameters

*
@@ -496,7 +497,7 @@ public PagedFlux listConnectionsAsync(RequestOptions requestOptions) * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -515,7 +516,7 @@ private PagedResponse listConnectionsSinglePage(RequestOptions reque /** * List connections - * + * * Returns the connections available in the current project, optionally filtered by type or default status. *

Query Parameters

*
@@ -547,7 +548,7 @@ private PagedResponse listConnectionsSinglePage(RequestOptions reque * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -566,7 +567,7 @@ public PagedIterable listConnections(RequestOptions requestOptions) /** * List connections - * + * * Get the next page of items. *

Response Body Schema

* @@ -587,7 +588,7 @@ public PagedIterable listConnections(RequestOptions requestOptions) * } * } * - * + * * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -610,7 +611,7 @@ private Mono> listConnectionsNextSinglePageAsync(Strin /** * List connections - * + * * Get the next page of items. *

Response Body Schema

* @@ -631,7 +632,7 @@ private Mono> listConnectionsNextSinglePageAsync(Strin * } * } * - * + * * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -665,6 +666,9 @@ private List getValues(BinaryData binaryData, String... path) { private String getNextLink(BinaryData binaryData, String... path) { try { Object value = binaryData.toObject(Map.class); + if (Boolean.FALSE.equals(((Map) value).get("has_more"))) { + return null; + } for (String segment : path) { value = ((Map) value).get(segment); } diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/DatasetsImpl.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/DatasetsImpl.java index 6c6313cb5da5a..82120ce562e79 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/DatasetsImpl.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/DatasetsImpl.java @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) TypeSpec Code Generator. - package com.azure.ai.projects.implementation; import com.azure.ai.projects.AIProjectsServiceVersion; @@ -36,6 +35,7 @@ import com.azure.core.util.BinaryData; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; +import com.azure.core.util.UrlBuilder; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.PollingStrategyOptions; import com.azure.core.util.polling.SyncPoller; @@ -50,6 +50,7 @@ * An instance of this class provides access to all the operations defined in Datasets. */ public final class DatasetsImpl { + /** * The proxy service used to perform REST calls. */ @@ -62,7 +63,7 @@ public final class DatasetsImpl { /** * Initializes an instance of DatasetsImpl. - * + * * @param client the instance of the service client containing this operation class. */ DatasetsImpl(AIProjectClientImpl client) { @@ -72,7 +73,7 @@ public final class DatasetsImpl { /** * Gets Service version. - * + * * @return the serviceVersion value. */ public AIProjectsServiceVersion getServiceVersion() { @@ -86,6 +87,7 @@ public AIProjectsServiceVersion getServiceVersion() { @Host("{endpoint}") @ServiceInterface(name = "AIProjectClientDatasets") public interface DatasetsService { + @Get("/datasets/{name}/versions") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @@ -382,7 +384,7 @@ Response listLatestDatasetVersionsNextSync( /** * List versions - * + * * List all versions of the given DatasetVersion. *

Response Body Schema

* @@ -403,7 +405,7 @@ Response listLatestDatasetVersionsNextSync( * } * } * - * + * * @param name The name of the resource. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -426,7 +428,7 @@ private Mono> listDatasetVersionsSinglePageAsync(Strin /** * List versions - * + * * List all versions of the given DatasetVersion. *

Response Body Schema

* @@ -447,7 +449,7 @@ private Mono> listDatasetVersionsSinglePageAsync(Strin * } * } * - * + * * @param name The name of the resource. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -467,7 +469,7 @@ public PagedFlux listDatasetVersionsAsync(String name, RequestOption /** * List versions - * + * * List all versions of the given DatasetVersion. *

Response Body Schema

* @@ -488,7 +490,7 @@ public PagedFlux listDatasetVersionsAsync(String name, RequestOption * } * } * - * + * * @param name The name of the resource. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -508,7 +510,7 @@ private PagedResponse listDatasetVersionsSinglePage(String name, Req /** * List versions - * + * * List all versions of the given DatasetVersion. *

Response Body Schema

* @@ -529,7 +531,7 @@ private PagedResponse listDatasetVersionsSinglePage(String name, Req * } * } * - * + * * @param name The name of the resource. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -549,7 +551,7 @@ public PagedIterable listDatasetVersions(String name, RequestOptions /** * List latest versions - * + * * List the latest version of each DatasetVersion. *

Response Body Schema

* @@ -570,7 +572,7 @@ public PagedIterable listDatasetVersions(String name, RequestOptions * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -591,7 +593,7 @@ private Mono> listLatestDatasetVersionsSinglePageAsync /** * List latest versions - * + * * List the latest version of each DatasetVersion. *

Response Body Schema

* @@ -612,7 +614,7 @@ private Mono> listLatestDatasetVersionsSinglePageAsync * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -631,7 +633,7 @@ public PagedFlux listLatestDatasetVersionsAsync(RequestOptions reque /** * List latest versions - * + * * List the latest version of each DatasetVersion. *

Response Body Schema

* @@ -652,7 +654,7 @@ public PagedFlux listLatestDatasetVersionsAsync(RequestOptions reque * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -671,7 +673,7 @@ private PagedResponse listLatestDatasetVersionsSinglePage(RequestOpt /** * List latest versions - * + * * List the latest version of each DatasetVersion. *

Response Body Schema

* @@ -692,7 +694,7 @@ private PagedResponse listLatestDatasetVersionsSinglePage(RequestOpt * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -711,7 +713,7 @@ public PagedIterable listLatestDatasetVersions(RequestOptions reques /** * Get a version - * + * * Get the specific version of the DatasetVersion. The service returns 404 Not Found error if the DatasetVersion * does not exist. *

Response Body Schema

@@ -733,7 +735,7 @@ public PagedIterable listLatestDatasetVersions(RequestOptions reques * } * } * - * + * * @param name The name of the resource. * @param version The specific version id of the DatasetVersion to retrieve. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -742,7 +744,7 @@ public PagedIterable listLatestDatasetVersions(RequestOptions reques * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a version - * + * * Get the specific version of the DatasetVersion along with {@link Response} on successful completion of * {@link Mono}. */ @@ -756,7 +758,7 @@ public Mono> getDatasetVersionWithResponseAsync(String name /** * Get a version - * + * * Get the specific version of the DatasetVersion. The service returns 404 Not Found error if the DatasetVersion * does not exist. *

Response Body Schema

@@ -778,7 +780,7 @@ public Mono> getDatasetVersionWithResponseAsync(String name * } * } * - * + * * @param name The name of the resource. * @param version The specific version id of the DatasetVersion to retrieve. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -787,7 +789,7 @@ public Mono> getDatasetVersionWithResponseAsync(String name * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a version - * + * * Get the specific version of the DatasetVersion along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -800,10 +802,10 @@ public Response getDatasetVersionWithResponse(String name, String ve /** * Delete a version - * + * * Delete the specific version of the DatasetVersion. The service returns 204 No Content if the DatasetVersion was * deleted successfully or if the DatasetVersion does not exist. - * + * * @param name The name of the resource. * @param version The version of the DatasetVersion to delete. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -822,10 +824,10 @@ public Mono> deleteDatasetVersionWithResponseAsync(String name, S /** * Delete a version - * + * * Delete the specific version of the DatasetVersion. The service returns 204 No Content if the DatasetVersion was * deleted successfully or if the DatasetVersion does not exist. - * + * * @param name The name of the resource. * @param version The version of the DatasetVersion to delete. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -843,7 +845,7 @@ public Response deleteDatasetVersionWithResponse(String name, String versi /** * Create or update a version - * + * * Create a new or update an existing DatasetVersion with the given version id. *

Request Body Schema

* @@ -884,7 +886,7 @@ public Response deleteDatasetVersionWithResponse(String name, String versi * } * } * - * + * * @param name The name of the resource. * @param version The specific version id of the DatasetVersion to create or update. * @param datasetVersion The DatasetVersion to create or update. @@ -907,7 +909,7 @@ public Mono> createOrUpdateDatasetVersionWithResponseAsync( /** * Create or update a version - * + * * Create a new or update an existing DatasetVersion with the given version id. *

Request Body Schema

* @@ -948,7 +950,7 @@ public Mono> createOrUpdateDatasetVersionWithResponseAsync( * } * } * - * + * * @param name The name of the resource. * @param version The specific version id of the DatasetVersion to create or update. * @param datasetVersion The DatasetVersion to create or update. @@ -971,7 +973,7 @@ public Response createOrUpdateDatasetVersionWithResponse(String name /** * Start a pending upload - * + * * Initiates a new pending upload or retrieves an existing one for the specified dataset version. *

Request Body Schema

* @@ -1004,7 +1006,7 @@ public Response createOrUpdateDatasetVersionWithResponse(String name * } * } * - * + * * @param name The name of the resource. * @param version The specific version id of the DatasetVersion to operate on. * @param pendingUploadRequest The pending upload request parameters. @@ -1028,7 +1030,7 @@ public Mono> pendingUploadWithResponseAsync(String name, St /** * Start a pending upload - * + * * Initiates a new pending upload or retrieves an existing one for the specified dataset version. *

Request Body Schema

* @@ -1061,7 +1063,7 @@ public Mono> pendingUploadWithResponseAsync(String name, St * } * } * - * + * * @param name The name of the resource. * @param version The specific version id of the DatasetVersion to operate on. * @param pendingUploadRequest The pending upload request parameters. @@ -1083,7 +1085,7 @@ public Response pendingUploadWithResponse(String name, String versio /** * Get dataset credentials - * + * * Retrieves the SAS credential to access the storage account associated with a dataset version. *

Response Body Schema

* @@ -1101,7 +1103,7 @@ public Response pendingUploadWithResponse(String name, String versio * } * } * - * + * * @param name The name of the resource. * @param version The specific version id of the DatasetVersion to operate on. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1110,7 +1112,7 @@ public Response pendingUploadWithResponse(String name, String versio * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return dataset credentials - * + * * Retrieves the SAS credential to access the storage account associated with a dataset version along with * {@link Response} on successful completion of {@link Mono}. */ @@ -1124,7 +1126,7 @@ public Mono> getCredentialsWithResponseAsync(String name, S /** * Get dataset credentials - * + * * Retrieves the SAS credential to access the storage account associated with a dataset version. *

Response Body Schema

* @@ -1142,7 +1144,7 @@ public Mono> getCredentialsWithResponseAsync(String name, S * } * } * - * + * * @param name The name of the resource. * @param version The specific version id of the DatasetVersion to operate on. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1151,7 +1153,7 @@ public Mono> getCredentialsWithResponseAsync(String name, S * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return dataset credentials - * + * * Retrieves the SAS credential to access the storage account associated with a dataset version along with * {@link Response}. */ @@ -1164,7 +1166,7 @@ public Response getCredentialsWithResponse(String name, String versi /** * Get a data generation job - * + * * Retrieves the specified data generation job and its current status. *

Response Body Schema

* @@ -1235,7 +1237,7 @@ public Response getCredentialsWithResponse(String name, String versi *
* *
NameTypeDescription
Retry-AfterintRecommended number of seconds to wait before polling again.
- * + * * @param jobId The ID of the job. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1243,7 +1245,7 @@ public Response getCredentialsWithResponse(String name, String versi * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a data generation job - * + * * Retrieves the specified data generation job and its current status along with {@link Response} on successful * completion of {@link Mono}. */ @@ -1256,7 +1258,7 @@ public Mono> getGenerationJobWithResponseAsync(String jobId /** * Get a data generation job - * + * * Retrieves the specified data generation job and its current status. *

Response Body Schema

* @@ -1327,7 +1329,7 @@ public Mono> getGenerationJobWithResponseAsync(String jobId * NameTypeDescription * Retry-AfterintRecommended number of seconds to wait before polling again. * - * + * * @param jobId The ID of the job. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1335,7 +1337,7 @@ public Mono> getGenerationJobWithResponseAsync(String jobId * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a data generation job - * + * * Retrieves the specified data generation job and its current status along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1347,7 +1349,7 @@ public Response getGenerationJobWithResponse(String jobId, RequestOp /** * List data generation jobs - * + * * Returns a list of data generation jobs. *

Query Parameters

* @@ -1431,7 +1433,7 @@ public Response getGenerationJobWithResponse(String jobId, RequestOp * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -1447,12 +1449,12 @@ private Mono> listGenerationJobsSinglePageAsync(Reques .withContext(context -> service.listGenerationJobs(this.client.getEndpoint(), this.client.getServiceVersion().getVersion(), accept, requestOptions, context)) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null)); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null)); } /** * List data generation jobs - * + * * Returns a list of data generation jobs. *

Query Parameters

*
@@ -1536,7 +1538,7 @@ private Mono> listGenerationJobsSinglePageAsync(Reques * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -1546,12 +1548,40 @@ private Mono> listGenerationJobsSinglePageAsync(Reques */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listGenerationJobsAsync(RequestOptions requestOptions) { - return new PagedFlux<>(() -> listGenerationJobsSinglePageAsync(requestOptions)); + return listGenerationJobsAsync(null, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listGenerationJobsAsync(String initialContinuationToken, + RequestOptions requestOptions) { + return new PagedFlux<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listGenerationJobsSinglePageAsync(requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listGenerationJobsSinglePageAsync(requestOptionsLocal); + }); } /** * List data generation jobs - * + * * Returns a list of data generation jobs. *

Query Parameters

*
@@ -1635,7 +1665,7 @@ public PagedFlux listGenerationJobsAsync(RequestOptions requestOptio * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -1649,12 +1679,12 @@ private PagedResponse listGenerationJobsSinglePage(RequestOptions re Response res = service.listGenerationJobsSync(this.client.getEndpoint(), this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null); } /** * List data generation jobs - * + * * Returns a list of data generation jobs. *

Query Parameters

*
@@ -1738,7 +1768,7 @@ private PagedResponse listGenerationJobsSinglePage(RequestOptions re * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -1748,12 +1778,40 @@ private PagedResponse listGenerationJobsSinglePage(RequestOptions re */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listGenerationJobs(RequestOptions requestOptions) { - return new PagedIterable<>(() -> listGenerationJobsSinglePage(requestOptions)); + return listGenerationJobs(null, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listGenerationJobs(String initialContinuationToken, + RequestOptions requestOptions) { + return new PagedIterable<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listGenerationJobsSinglePage(requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listGenerationJobsSinglePage(requestOptionsLocal); + }); } /** * Create a data generation job - * + * * Submits a new data generation job for asynchronous execution. *

Header Parameters

*
@@ -1849,7 +1907,7 @@ public PagedIterable listGenerationJobs(RequestOptions requestOption * } * } * - * + * * @param job The data generation job inputs to create. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1869,7 +1927,7 @@ private Mono> createGenerationJobWithResponseAsync(BinaryDa /** * Create a data generation job - * + * * Submits a new data generation job for asynchronous execution. *

Header Parameters

*
@@ -1965,7 +2023,7 @@ private Mono> createGenerationJobWithResponseAsync(BinaryDa * } * } * - * + * * @param job The data generation job inputs to create. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -1984,7 +2042,7 @@ private Response createGenerationJobWithResponse(BinaryData job, Req /** * Create a data generation job - * + * * Submits a new data generation job for asynchronous execution. *

Header Parameters

*
@@ -2080,7 +2138,7 @@ private Response createGenerationJobWithResponse(BinaryData job, Req * } * } * - * + * * @param job The data generation job inputs to create. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2108,7 +2166,7 @@ public PollerFlux beginCreateGenerat /** * Create a data generation job - * + * * Submits a new data generation job for asynchronous execution. *

Header Parameters

*
@@ -2204,7 +2262,7 @@ public PollerFlux beginCreateGenerat * } * } * - * + * * @param job The data generation job inputs to create. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2232,7 +2290,7 @@ public SyncPoller beginCreateGenerat /** * Create a data generation job - * + * * Submits a new data generation job for asynchronous execution. *

Header Parameters

*
@@ -2328,7 +2386,7 @@ public SyncPoller beginCreateGenerat * } * } * - * + * * @param job The data generation job inputs to create. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2355,7 +2413,7 @@ public PollerFlux beginCreateGenerationJobAsync(BinaryDa /** * Create a data generation job - * + * * Submits a new data generation job for asynchronous execution. *

Header Parameters

*
@@ -2451,7 +2509,7 @@ public PollerFlux beginCreateGenerationJobAsync(BinaryDa * } * } * - * + * * @param job The data generation job inputs to create. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2477,7 +2535,7 @@ public SyncPoller beginCreateGenerationJob(BinaryData jo /** * Cancel a data generation job - * + * * Cancels the specified data generation job if it is still in progress. *

Response Body Schema

* @@ -2541,7 +2599,7 @@ public SyncPoller beginCreateGenerationJob(BinaryData jo * } * } * - * + * * @param jobId The ID of the job to cancel. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2560,7 +2618,7 @@ public Mono> cancelGenerationJobWithResponseAsync(String jo /** * Cancel a data generation job - * + * * Cancels the specified data generation job if it is still in progress. *

Response Body Schema

* @@ -2624,7 +2682,7 @@ public Mono> cancelGenerationJobWithResponseAsync(String jo * } * } * - * + * * @param jobId The ID of the job to cancel. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2642,9 +2700,9 @@ public Response cancelGenerationJobWithResponse(String jobId, Reques /** * Delete a data generation job - * + * * Removes the specified data generation job and its associated output. - * + * * @param jobId The ID of the job to delete. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2661,9 +2719,9 @@ public Mono> deleteGenerationJobWithResponseAsync(String jobId, R /** * Delete a data generation job - * + * * Removes the specified data generation job and its associated output. - * + * * @param jobId The ID of the job to delete. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2680,7 +2738,7 @@ public Response deleteGenerationJobWithResponse(String jobId, RequestOptio /** * List versions - * + * * Get the next page of items. *

Response Body Schema

* @@ -2701,7 +2759,7 @@ public Response deleteGenerationJobWithResponse(String jobId, RequestOptio * } * } * - * + * * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2724,7 +2782,7 @@ private Mono> listDatasetVersionsNextSinglePageAsync(S /** * List versions - * + * * Get the next page of items. *

Response Body Schema

* @@ -2745,7 +2803,7 @@ private Mono> listDatasetVersionsNextSinglePageAsync(S * } * } * - * + * * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2766,7 +2824,7 @@ private PagedResponse listDatasetVersionsNextSinglePage(String nextL /** * List latest versions - * + * * Get the next page of items. *

Response Body Schema

* @@ -2787,7 +2845,7 @@ private PagedResponse listDatasetVersionsNextSinglePage(String nextL * } * } * - * + * * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2810,7 +2868,7 @@ private Mono> listLatestDatasetVersionsNextSinglePageA /** * List latest versions - * + * * Get the next page of items. *

Response Body Schema

* @@ -2831,7 +2889,7 @@ private Mono> listLatestDatasetVersionsNextSinglePageA * } * } * - * + * * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2866,6 +2924,9 @@ private List getValues(BinaryData binaryData, String... path) { private String getNextLink(BinaryData binaryData, String... path) { try { Object value = binaryData.toObject(Map.class); + if (Boolean.FALSE.equals(((Map) value).get("has_more"))) { + return null; + } for (String segment : path) { value = ((Map) value).get(segment); } diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/DeploymentsImpl.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/DeploymentsImpl.java index d7998389c5858..fd35c62cf4c7c 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/DeploymentsImpl.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/DeploymentsImpl.java @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) TypeSpec Code Generator. - package com.azure.ai.projects.implementation; import com.azure.ai.projects.AIProjectsServiceVersion; @@ -39,6 +38,7 @@ * An instance of this class provides access to all the operations defined in Deployments. */ public final class DeploymentsImpl { + /** * The proxy service used to perform REST calls. */ @@ -51,7 +51,7 @@ public final class DeploymentsImpl { /** * Initializes an instance of DeploymentsImpl. - * + * * @param client the instance of the service client containing this operation class. */ DeploymentsImpl(AIProjectClientImpl client) { @@ -62,7 +62,7 @@ public final class DeploymentsImpl { /** * Gets Service version. - * + * * @return the serviceVersion value. */ public AIProjectsServiceVersion getServiceVersion() { @@ -76,6 +76,7 @@ public AIProjectsServiceVersion getServiceVersion() { @Host("{endpoint}") @ServiceInterface(name = "AIProjectClientDeployments") public interface DeploymentsService { + @Get("/deployments/{name}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @@ -139,7 +140,7 @@ Response listDeploymentsNextSync(@PathParam(value = "nextLink", enco /** * Get a deployment - * + * * Retrieves a deployed model. *

Response Body Schema

* @@ -159,7 +160,7 @@ Response listDeploymentsNextSync(@PathParam(value = "nextLink", enco *
*
x-ms-client-request-idStringAn opaque, globally-unique, client-generated string * identifier for the request.
- * + * * @param name Name of the deployment. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -167,7 +168,7 @@ Response listDeploymentsNextSync(@PathParam(value = "nextLink", enco * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a deployment - * + * * Retrieves a deployed model along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -179,7 +180,7 @@ public Mono> getDeploymentWithResponseAsync(String name, Re /** * Get a deployment - * + * * Retrieves a deployed model. *

Response Body Schema

* @@ -199,7 +200,7 @@ public Mono> getDeploymentWithResponseAsync(String name, Re * x-ms-client-request-idStringAn opaque, globally-unique, client-generated string * identifier for the request. * - * + * * @param name Name of the deployment. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -207,7 +208,7 @@ public Mono> getDeploymentWithResponseAsync(String name, Re * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a deployment - * + * * Retrieves a deployed model along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -219,7 +220,7 @@ public Response getDeploymentWithResponse(String name, RequestOption /** * List deployments - * + * * Returns the deployed models available in the current project, optionally filtered by publisher, model name, or * deployment type. *

Query Parameters

@@ -243,7 +244,7 @@ public Response getDeploymentWithResponse(String name, RequestOption * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -264,7 +265,7 @@ private Mono> listDeploymentsSinglePageAsync(RequestOp /** * List deployments - * + * * Returns the deployed models available in the current project, optionally filtered by publisher, model name, or * deployment type. *

Query Parameters

@@ -288,7 +289,7 @@ private Mono> listDeploymentsSinglePageAsync(RequestOp * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -307,7 +308,7 @@ public PagedFlux listDeploymentsAsync(RequestOptions requestOptions) /** * List deployments - * + * * Returns the deployed models available in the current project, optionally filtered by publisher, model name, or * deployment type. *

Query Parameters

@@ -331,7 +332,7 @@ public PagedFlux listDeploymentsAsync(RequestOptions requestOptions) * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -350,7 +351,7 @@ private PagedResponse listDeploymentsSinglePage(RequestOptions reque /** * List deployments - * + * * Returns the deployed models available in the current project, optionally filtered by publisher, model name, or * deployment type. *

Query Parameters

@@ -374,7 +375,7 @@ private PagedResponse listDeploymentsSinglePage(RequestOptions reque * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -393,7 +394,7 @@ public PagedIterable listDeployments(RequestOptions requestOptions) /** * List deployments - * + * * Get the next page of items. *

Response Body Schema

* @@ -405,7 +406,7 @@ public PagedIterable listDeployments(RequestOptions requestOptions) * } * } * - * + * * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -428,7 +429,7 @@ private Mono> listDeploymentsNextSinglePageAsync(Strin /** * List deployments - * + * * Get the next page of items. *

Response Body Schema

* @@ -440,7 +441,7 @@ private Mono> listDeploymentsNextSinglePageAsync(Strin * } * } * - * + * * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -474,6 +475,9 @@ private List getValues(BinaryData binaryData, String... path) { private String getNextLink(BinaryData binaryData, String... path) { try { Object value = binaryData.toObject(Map.class); + if (Boolean.FALSE.equals(((Map) value).get("has_more"))) { + return null; + } for (String segment : path) { value = ((Map) value).get(segment); } diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/EvaluationRulesImpl.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/EvaluationRulesImpl.java index 7965cc11acf6d..f1427b081a24c 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/EvaluationRulesImpl.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/EvaluationRulesImpl.java @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) TypeSpec Code Generator. - package com.azure.ai.projects.implementation; import com.azure.ai.projects.AIProjectsServiceVersion; @@ -42,6 +41,7 @@ * An instance of this class provides access to all the operations defined in EvaluationRules. */ public final class EvaluationRulesImpl { + /** * The proxy service used to perform REST calls. */ @@ -54,7 +54,7 @@ public final class EvaluationRulesImpl { /** * Initializes an instance of EvaluationRulesImpl. - * + * * @param client the instance of the service client containing this operation class. */ EvaluationRulesImpl(AIProjectClientImpl client) { @@ -65,7 +65,7 @@ public final class EvaluationRulesImpl { /** * Gets Service version. - * + * * @return the serviceVersion value. */ public AIProjectsServiceVersion getServiceVersion() { @@ -79,6 +79,7 @@ public AIProjectsServiceVersion getServiceVersion() { @Host("{endpoint}") @ServiceInterface(name = "AIProjectClientEvaluationRules") public interface EvaluationRulesService { + @Get("/evaluationrules/{id}") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @@ -184,7 +185,7 @@ Response listEvaluationRulesNextSync(@PathParam(value = "nextLink", /** * Get an evaluation rule - * + * * Retrieves the specified evaluation rule and its configuration. *

Response Body Schema

* @@ -208,7 +209,7 @@ Response listEvaluationRulesNextSync(@PathParam(value = "nextLink", * } * } * - * + * * @param id Unique identifier for the evaluation rule. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -216,7 +217,7 @@ Response listEvaluationRulesNextSync(@PathParam(value = "nextLink", * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return an evaluation rule - * + * * Retrieves the specified evaluation rule and its configuration along with {@link Response} on successful * completion of {@link Mono}. */ @@ -229,7 +230,7 @@ public Mono> getEvaluationRuleWithResponseAsync(String id, /** * Get an evaluation rule - * + * * Retrieves the specified evaluation rule and its configuration. *

Response Body Schema

* @@ -253,7 +254,7 @@ public Mono> getEvaluationRuleWithResponseAsync(String id, * } * } * - * + * * @param id Unique identifier for the evaluation rule. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -261,7 +262,7 @@ public Mono> getEvaluationRuleWithResponseAsync(String id, * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return an evaluation rule - * + * * Retrieves the specified evaluation rule and its configuration along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -273,9 +274,9 @@ public Response getEvaluationRuleWithResponse(String id, RequestOpti /** * Delete an evaluation rule - * + * * Removes the specified evaluation rule from the project. - * + * * @param id Unique identifier for the evaluation rule. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -292,9 +293,9 @@ public Mono> deleteEvaluationRuleWithResponseAsync(String id, Req /** * Delete an evaluation rule - * + * * Removes the specified evaluation rule from the project. - * + * * @param id Unique identifier for the evaluation rule. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -311,7 +312,7 @@ public Response deleteEvaluationRuleWithResponse(String id, RequestOptions /** * Create or update an evaluation rule - * + * * Creates a new evaluation rule, or replaces the existing rule when the identifier matches. *

Request Body Schema

* @@ -358,7 +359,7 @@ public Response deleteEvaluationRuleWithResponse(String id, RequestOptions * } * } * - * + * * @param id Unique identifier for the evaluation rule. * @param evaluationRule Evaluation rule resource. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -380,7 +381,7 @@ public Mono> createOrUpdateEvaluationRuleWithResponseAsync( /** * Create or update an evaluation rule - * + * * Creates a new evaluation rule, or replaces the existing rule when the identifier matches. *

Request Body Schema

* @@ -427,7 +428,7 @@ public Mono> createOrUpdateEvaluationRuleWithResponseAsync( * } * } * - * + * * @param id Unique identifier for the evaluation rule. * @param evaluationRule Evaluation rule resource. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -449,7 +450,7 @@ public Response createOrUpdateEvaluationRuleWithResponse(String id, /** * List evaluation rules - * + * * Returns the evaluation rules configured for the project, optionally filtered by action type, agent name, or * enabled state. *

Query Parameters

@@ -484,7 +485,7 @@ public Response createOrUpdateEvaluationRuleWithResponse(String id, * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -505,7 +506,7 @@ private Mono> listEvaluationRulesSinglePageAsync(Reque /** * List evaluation rules - * + * * Returns the evaluation rules configured for the project, optionally filtered by action type, agent name, or * enabled state. *

Query Parameters

@@ -540,7 +541,7 @@ private Mono> listEvaluationRulesSinglePageAsync(Reque * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -559,7 +560,7 @@ public PagedFlux listEvaluationRulesAsync(RequestOptions requestOpti /** * List evaluation rules - * + * * Returns the evaluation rules configured for the project, optionally filtered by action type, agent name, or * enabled state. *

Query Parameters

@@ -594,7 +595,7 @@ public PagedFlux listEvaluationRulesAsync(RequestOptions requestOpti * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -613,7 +614,7 @@ private PagedResponse listEvaluationRulesSinglePage(RequestOptions r /** * List evaluation rules - * + * * Returns the evaluation rules configured for the project, optionally filtered by action type, agent name, or * enabled state. *

Query Parameters

@@ -648,7 +649,7 @@ private PagedResponse listEvaluationRulesSinglePage(RequestOptions r * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -667,7 +668,7 @@ public PagedIterable listEvaluationRules(RequestOptions requestOptio /** * List evaluation rules - * + * * Get the next page of items. *

Response Body Schema

* @@ -691,7 +692,7 @@ public PagedIterable listEvaluationRules(RequestOptions requestOptio * } * } * - * + * * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -714,7 +715,7 @@ private Mono> listEvaluationRulesNextSinglePageAsync(S /** * List evaluation rules - * + * * Get the next page of items. *

Response Body Schema

* @@ -738,7 +739,7 @@ private Mono> listEvaluationRulesNextSinglePageAsync(S * } * } * - * + * * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -773,6 +774,9 @@ private List getValues(BinaryData binaryData, String... path) { private String getNextLink(BinaryData binaryData, String... path) { try { Object value = binaryData.toObject(Map.class); + if (Boolean.FALSE.equals(((Map) value).get("has_more"))) { + return null; + } for (String segment : path) { value = ((Map) value).get(segment); } diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/EvaluatorsImpl.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/EvaluatorsImpl.java index 033af3603e243..ee721461404f7 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/EvaluatorsImpl.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/EvaluatorsImpl.java @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) TypeSpec Code Generator. - package com.azure.ai.projects.implementation; import com.azure.ai.projects.AIProjectsServiceVersion; @@ -36,6 +35,7 @@ import com.azure.core.util.BinaryData; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; +import com.azure.core.util.UrlBuilder; import com.azure.core.util.polling.PollerFlux; import com.azure.core.util.polling.PollingStrategyOptions; import com.azure.core.util.polling.SyncPoller; @@ -50,6 +50,7 @@ * An instance of this class provides access to all the operations defined in Evaluators. */ public final class EvaluatorsImpl { + /** * The proxy service used to perform REST calls. */ @@ -62,7 +63,7 @@ public final class EvaluatorsImpl { /** * Initializes an instance of EvaluatorsImpl. - * + * * @param client the instance of the service client containing this operation class. */ EvaluatorsImpl(AIProjectClientImpl client) { @@ -73,7 +74,7 @@ public final class EvaluatorsImpl { /** * Gets Service version. - * + * * @return the serviceVersion value. */ public AIProjectsServiceVersion getServiceVersion() { @@ -87,6 +88,7 @@ public AIProjectsServiceVersion getServiceVersion() { @Host("{endpoint}") @ServiceInterface(name = "AIProjectClientEvaluators") public interface EvaluatorsService { + @Get("/evaluators/{name}/versions") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @@ -360,7 +362,7 @@ Response listLatestEvaluatorVersionsNextSync( /** * List evaluator versions - * + * * Returns the available versions for the specified evaluator. *

Query Parameters

* @@ -433,7 +435,7 @@ Response listLatestEvaluatorVersionsNextSync( * } * } * - * + * * @param name The name of the resource. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -456,7 +458,7 @@ private Mono> listEvaluatorVersionsSinglePageAsync(Str /** * List evaluator versions - * + * * Returns the available versions for the specified evaluator. *

Query Parameters

*
@@ -529,7 +531,7 @@ private Mono> listEvaluatorVersionsSinglePageAsync(Str * } * } * - * + * * @param name The name of the resource. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -549,7 +551,7 @@ public PagedFlux listEvaluatorVersionsAsync(String name, RequestOpti /** * List evaluator versions - * + * * Returns the available versions for the specified evaluator. *

Query Parameters

*
@@ -622,7 +624,7 @@ public PagedFlux listEvaluatorVersionsAsync(String name, RequestOpti * } * } * - * + * * @param name The name of the resource. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -642,7 +644,7 @@ private PagedResponse listEvaluatorVersionsSinglePage(String name, R /** * List evaluator versions - * + * * Returns the available versions for the specified evaluator. *

Query Parameters

*
@@ -715,7 +717,7 @@ private PagedResponse listEvaluatorVersionsSinglePage(String name, R * } * } * - * + * * @param name The name of the resource. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -735,7 +737,7 @@ public PagedIterable listEvaluatorVersions(String name, RequestOptio /** * List latest evaluator versions - * + * * Lists the latest version of each evaluator. *

Query Parameters

*
@@ -808,7 +810,7 @@ public PagedIterable listEvaluatorVersions(String name, RequestOptio * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -829,7 +831,7 @@ private Mono> listLatestEvaluatorVersionsSinglePageAsy /** * List latest evaluator versions - * + * * Lists the latest version of each evaluator. *

Query Parameters

*
@@ -902,7 +904,7 @@ private Mono> listLatestEvaluatorVersionsSinglePageAsy * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -921,7 +923,7 @@ public PagedFlux listLatestEvaluatorVersionsAsync(RequestOptions req /** * List latest evaluator versions - * + * * Lists the latest version of each evaluator. *

Query Parameters

*
@@ -994,7 +996,7 @@ public PagedFlux listLatestEvaluatorVersionsAsync(RequestOptions req * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -1013,7 +1015,7 @@ private PagedResponse listLatestEvaluatorVersionsSinglePage(RequestO /** * List latest evaluator versions - * + * * Lists the latest version of each evaluator. *

Query Parameters

*
@@ -1086,7 +1088,7 @@ private PagedResponse listLatestEvaluatorVersionsSinglePage(RequestO * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -1105,7 +1107,7 @@ public PagedIterable listLatestEvaluatorVersions(RequestOptions requ /** * Get an evaluator version - * + * * Retrieves the specified evaluator version, returning 404 if it does not exist. *

Response Body Schema

* @@ -1168,7 +1170,7 @@ public PagedIterable listLatestEvaluatorVersions(RequestOptions requ * } * } * - * + * * @param name The name of the resource. * @param version The specific version id of the EvaluatorVersion to retrieve. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1177,7 +1179,7 @@ public PagedIterable listLatestEvaluatorVersions(RequestOptions requ * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return an evaluator version - * + * * Retrieves the specified evaluator version, returning 404 if it does not exist along with {@link Response} on * successful completion of {@link Mono}. */ @@ -1191,7 +1193,7 @@ public Mono> getEvaluatorVersionWithResponseAsync(String na /** * Get an evaluator version - * + * * Retrieves the specified evaluator version, returning 404 if it does not exist. *

Response Body Schema

* @@ -1254,7 +1256,7 @@ public Mono> getEvaluatorVersionWithResponseAsync(String na * } * } * - * + * * @param name The name of the resource. * @param version The specific version id of the EvaluatorVersion to retrieve. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1263,7 +1265,7 @@ public Mono> getEvaluatorVersionWithResponseAsync(String na * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return an evaluator version - * + * * Retrieves the specified evaluator version, returning 404 if it does not exist along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -1276,9 +1278,9 @@ public Response getEvaluatorVersionWithResponse(String name, String /** * Delete an evaluator version - * + * * Removes the specified evaluator version. Returns 204 whether the version existed or not. - * + * * @param name The name of the resource. * @param version The version of the EvaluatorVersion to delete. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1297,9 +1299,9 @@ public Mono> deleteEvaluatorVersionWithResponseAsync(String name, /** * Delete an evaluator version - * + * * Removes the specified evaluator version. Returns 204 whether the version existed or not. - * + * * @param name The name of the resource. * @param version The version of the EvaluatorVersion to delete. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1318,7 +1320,7 @@ public Response deleteEvaluatorVersionWithResponse(String name, String ver /** * Create an evaluator version - * + * * Creates a new evaluator version with an auto-incremented version identifier. *

Request Body Schema

* @@ -1443,7 +1445,7 @@ public Response deleteEvaluatorVersionWithResponse(String name, String ver * } * } * - * + * * @param name The name of the resource. * @param evaluatorVersion The evaluatorVersion parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1465,7 +1467,7 @@ public Mono> createEvaluatorVersionWithResponseAsync(String /** * Create an evaluator version - * + * * Creates a new evaluator version with an auto-incremented version identifier. *

Request Body Schema

* @@ -1590,7 +1592,7 @@ public Mono> createEvaluatorVersionWithResponseAsync(String * } * } * - * + * * @param name The name of the resource. * @param evaluatorVersion The evaluatorVersion parameter. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -1612,7 +1614,7 @@ public Response createEvaluatorVersionWithResponse(String name, Bina /** * Update an evaluator version - * + * * Updates the specified evaluator version in place. *

Request Body Schema

* @@ -1737,7 +1739,7 @@ public Response createEvaluatorVersionWithResponse(String name, Bina * } * } * - * + * * @param name The name of the resource. * @param version The version of the EvaluatorVersion to update. * @param evaluatorVersion Evaluator resource. @@ -1760,7 +1762,7 @@ public Mono> updateEvaluatorVersionWithResponseAsync(String /** * Update an evaluator version - * + * * Updates the specified evaluator version in place. *

Request Body Schema

* @@ -1885,7 +1887,7 @@ public Mono> updateEvaluatorVersionWithResponseAsync(String * } * } * - * + * * @param name The name of the resource. * @param version The version of the EvaluatorVersion to update. * @param evaluatorVersion Evaluator resource. @@ -1908,7 +1910,7 @@ public Response updateEvaluatorVersionWithResponse(String name, Stri /** * Create an evaluator generation job - * + * * Creates an evaluator generation job. The service generates rubric-based evaluator * definitions from the provided source materials asynchronously. *

Header Parameters

@@ -2049,7 +2051,7 @@ public Response updateEvaluatorVersionWithResponse(String name, Stri * } * } * - * + * * @param job The evaluator generation job inputs to create. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2070,7 +2072,7 @@ private Mono> createEvaluatorGenerationJobWithResponseAsync /** * Create an evaluator generation job - * + * * Creates an evaluator generation job. The service generates rubric-based evaluator * definitions from the provided source materials asynchronously. *

Header Parameters

@@ -2211,7 +2213,7 @@ private Mono> createEvaluatorGenerationJobWithResponseAsync * } * } * - * + * * @param job The evaluator generation job inputs to create. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2232,7 +2234,7 @@ private Response createEvaluatorGenerationJobWithResponse(BinaryData /** * Create an evaluator generation job - * + * * Creates an evaluator generation job. The service generates rubric-based evaluator * definitions from the provided source materials asynchronously. *

Header Parameters

@@ -2373,7 +2375,7 @@ private Response createEvaluatorGenerationJobWithResponse(BinaryData * } * } * - * + * * @param job The evaluator generation job inputs to create. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2402,7 +2404,7 @@ private Response createEvaluatorGenerationJobWithResponse(BinaryData /** * Create an evaluator generation job - * + * * Creates an evaluator generation job. The service generates rubric-based evaluator * definitions from the provided source materials asynchronously. *

Header Parameters

@@ -2543,7 +2545,7 @@ private Response createEvaluatorGenerationJobWithResponse(BinaryData * } * } * - * + * * @param job The evaluator generation job inputs to create. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2572,7 +2574,7 @@ private Response createEvaluatorGenerationJobWithResponse(BinaryData /** * Create an evaluator generation job - * + * * Creates an evaluator generation job. The service generates rubric-based evaluator * definitions from the provided source materials asynchronously. *

Header Parameters

@@ -2713,7 +2715,7 @@ private Response createEvaluatorGenerationJobWithResponse(BinaryData * } * } * - * + * * @param job The evaluator generation job inputs to create. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2741,7 +2743,7 @@ public PollerFlux beginCreateEvaluatorGenerationJobAsync /** * Create an evaluator generation job - * + * * Creates an evaluator generation job. The service generates rubric-based evaluator * definitions from the provided source materials asynchronously. *

Header Parameters

@@ -2882,7 +2884,7 @@ public PollerFlux beginCreateEvaluatorGenerationJobAsync * } * } * - * + * * @param job The evaluator generation job inputs to create. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -2910,7 +2912,7 @@ public SyncPoller beginCreateEvaluatorGenerationJob(Bina /** * Get an evaluator generation job - * + * * Gets the details of an evaluator generation job by its ID. *

Response Body Schema

* @@ -3031,7 +3033,7 @@ public SyncPoller beginCreateEvaluatorGenerationJob(Bina *
* *
NameTypeDescription
Retry-AfterintRecommended number of seconds to wait before polling again.
- * + * * @param jobId The ID of the job. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3039,7 +3041,7 @@ public SyncPoller beginCreateEvaluatorGenerationJob(Bina * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return an evaluator generation job - * + * * Gets the details of an evaluator generation job by its ID along with {@link Response} on successful completion of * {@link Mono}. */ @@ -3053,7 +3055,7 @@ public Mono> getEvaluatorGenerationJobWithResponseAsync(Str /** * Get an evaluator generation job - * + * * Gets the details of an evaluator generation job by its ID. *

Response Body Schema

* @@ -3174,7 +3176,7 @@ public Mono> getEvaluatorGenerationJobWithResponseAsync(Str * NameTypeDescription * Retry-AfterintRecommended number of seconds to wait before polling again. * - * + * * @param jobId The ID of the job. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3182,7 +3184,7 @@ public Mono> getEvaluatorGenerationJobWithResponseAsync(Str * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return an evaluator generation job - * + * * Gets the details of an evaluator generation job by its ID along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -3194,7 +3196,7 @@ public Response getEvaluatorGenerationJobWithResponse(String jobId, /** * List evaluator generation jobs - * + * * Returns a list of evaluator generation jobs. The List API has up to a few * seconds of propagation delay, so a recently created job may not appear * immediately; use the Get evaluator generation job API with the job ID to @@ -3331,7 +3333,7 @@ public Response getEvaluatorGenerationJobWithResponse(String jobId, * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -3347,12 +3349,12 @@ private Mono> listEvaluatorGenerationJobsSinglePageAsy .withContext(context -> service.listEvaluatorGenerationJobs(this.client.getEndpoint(), this.client.getServiceVersion().getVersion(), accept, requestOptions, context)) .map(res -> new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null)); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null)); } /** * List evaluator generation jobs - * + * * Returns a list of evaluator generation jobs. The List API has up to a few * seconds of propagation delay, so a recently created job may not appear * immediately; use the Get evaluator generation job API with the job ID to @@ -3489,7 +3491,7 @@ private Mono> listEvaluatorGenerationJobsSinglePageAsy * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -3499,12 +3501,40 @@ private Mono> listEvaluatorGenerationJobsSinglePageAsy */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedFlux listEvaluatorGenerationJobsAsync(RequestOptions requestOptions) { - return new PagedFlux<>(() -> listEvaluatorGenerationJobsSinglePageAsync(requestOptions)); + return listEvaluatorGenerationJobsAsync(null, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedFlux listEvaluatorGenerationJobsAsync(String initialContinuationToken, + RequestOptions requestOptions) { + return new PagedFlux<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listEvaluatorGenerationJobsSinglePageAsync(requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listEvaluatorGenerationJobsSinglePageAsync(requestOptionsLocal); + }); } /** * List evaluator generation jobs - * + * * Returns a list of evaluator generation jobs. The List API has up to a few * seconds of propagation delay, so a recently created job may not appear * immediately; use the Get evaluator generation job API with the job ID to @@ -3641,7 +3671,7 @@ public PagedFlux listEvaluatorGenerationJobsAsync(RequestOptions req * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -3655,12 +3685,12 @@ private PagedResponse listEvaluatorGenerationJobsSinglePage(RequestO Response res = service.listEvaluatorGenerationJobsSync(this.client.getEndpoint(), this.client.getServiceVersion().getVersion(), accept, requestOptions, Context.NONE); return new PagedResponseBase<>(res.getRequest(), res.getStatusCode(), res.getHeaders(), - getValues(res.getValue(), "data"), null, null); + getValues(res.getValue(), "data"), getNextLink(res.getValue(), "last_id"), null); } /** * List evaluator generation jobs - * + * * Returns a list of evaluator generation jobs. The List API has up to a few * seconds of propagation delay, so a recently created job may not appear * immediately; use the Get evaluator generation job API with the job ID to @@ -3797,7 +3827,7 @@ private PagedResponse listEvaluatorGenerationJobsSinglePage(RequestO * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -3807,12 +3837,40 @@ private PagedResponse listEvaluatorGenerationJobsSinglePage(RequestO */ @ServiceMethod(returns = ReturnType.COLLECTION) public PagedIterable listEvaluatorGenerationJobs(RequestOptions requestOptions) { - return new PagedIterable<>(() -> listEvaluatorGenerationJobsSinglePage(requestOptions)); + return listEvaluatorGenerationJobs(null, requestOptions); + } + + @ServiceMethod(returns = ReturnType.COLLECTION) + public PagedIterable listEvaluatorGenerationJobs(String initialContinuationToken, + RequestOptions requestOptions) { + return new PagedIterable<>(() -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (initialContinuationToken != null) { + requestOptionsLocal.addQueryParam("after", initialContinuationToken, false); + } + return listEvaluatorGenerationJobsSinglePage(requestOptionsLocal); + }, (after) -> { + RequestOptions requestOptionsLocal = requestOptions == null ? new RequestOptions() : requestOptions; + requestOptionsLocal.addRequestCallback(requestLocal -> { + UrlBuilder urlBuilder = UrlBuilder.parse(requestLocal.getUrl()); + urlBuilder.setQueryParameter("after", null); + requestLocal.setUrl(urlBuilder.toString()); + }); + if (after != null) { + requestOptionsLocal.addQueryParam("after", after, false); + } + return listEvaluatorGenerationJobsSinglePage(requestOptionsLocal); + }); } /** * Cancel an evaluator generation job - * + * * Cancels an evaluator generation job by its ID. *

Response Body Schema

* @@ -3926,7 +3984,7 @@ public PagedIterable listEvaluatorGenerationJobs(RequestOptions requ * } * } * - * + * * @param jobId The ID of the job to cancel. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -3946,7 +4004,7 @@ public Mono> cancelEvaluatorGenerationJobWithResponseAsync( /** * Cancel an evaluator generation job - * + * * Cancels an evaluator generation job by its ID. *

Response Body Schema

* @@ -4060,7 +4118,7 @@ public Mono> cancelEvaluatorGenerationJobWithResponseAsync( * } * } * - * + * * @param jobId The ID of the job to cancel. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4079,10 +4137,10 @@ public Response cancelEvaluatorGenerationJobWithResponse(String jobI /** * Delete an evaluator generation job - * + * * Deletes an evaluator generation job by its ID. Deletes the job record only; * the generated evaluator (if any) is preserved. - * + * * @param jobId The ID of the job to delete. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4100,10 +4158,10 @@ public Mono> deleteEvaluatorGenerationJobWithResponseAsync(String /** * Delete an evaluator generation job - * + * * Deletes an evaluator generation job by its ID. Deletes the job record only; * the generated evaluator (if any) is preserved. - * + * * @param jobId The ID of the job to delete. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4120,7 +4178,7 @@ public Response deleteEvaluatorGenerationJobWithResponse(String jobId, Req /** * List evaluator versions - * + * * Get the next page of items. *

Response Body Schema

* @@ -4183,7 +4241,7 @@ public Response deleteEvaluatorGenerationJobWithResponse(String jobId, Req * } * } * - * + * * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4206,7 +4264,7 @@ private Mono> listEvaluatorVersionsNextSinglePageAsync /** * List evaluator versions - * + * * Get the next page of items. *

Response Body Schema

* @@ -4269,7 +4327,7 @@ private Mono> listEvaluatorVersionsNextSinglePageAsync * } * } * - * + * * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4290,7 +4348,7 @@ private PagedResponse listEvaluatorVersionsNextSinglePage(String nex /** * List latest evaluator versions - * + * * Get the next page of items. *

Response Body Schema

* @@ -4353,7 +4411,7 @@ private PagedResponse listEvaluatorVersionsNextSinglePage(String nex * } * } * - * + * * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4376,7 +4434,7 @@ private Mono> listLatestEvaluatorVersionsNextSinglePag /** * List latest evaluator versions - * + * * Get the next page of items. *

Response Body Schema

* @@ -4439,7 +4497,7 @@ private Mono> listLatestEvaluatorVersionsNextSinglePag * } * } * - * + * * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -4474,6 +4532,9 @@ private List getValues(BinaryData binaryData, String... path) { private String getNextLink(BinaryData binaryData, String... path) { try { Object value = binaryData.toObject(Map.class); + if (Boolean.FALSE.equals(((Map) value).get("has_more"))) { + return null; + } for (String segment : path) { value = ((Map) value).get(segment); } diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/IndexesImpl.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/IndexesImpl.java index 5fb9644d7e958..30191dad6e4ca 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/IndexesImpl.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/IndexesImpl.java @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) TypeSpec Code Generator. - package com.azure.ai.projects.implementation; import com.azure.ai.projects.AIProjectsServiceVersion; @@ -42,6 +41,7 @@ * An instance of this class provides access to all the operations defined in Indexes. */ public final class IndexesImpl { + /** * The proxy service used to perform REST calls. */ @@ -54,7 +54,7 @@ public final class IndexesImpl { /** * Initializes an instance of IndexesImpl. - * + * * @param client the instance of the service client containing this operation class. */ IndexesImpl(AIProjectClientImpl client) { @@ -64,7 +64,7 @@ public final class IndexesImpl { /** * Gets Service version. - * + * * @return the serviceVersion value. */ public AIProjectsServiceVersion getServiceVersion() { @@ -78,6 +78,7 @@ public AIProjectsServiceVersion getServiceVersion() { @Host("{endpoint}") @ServiceInterface(name = "AIProjectClientIndexes") public interface IndexesService { + @Get("/indexes/{name}/versions") @ExpectedResponses({ 200 }) @UnexpectedResponseExceptionType(value = ClientAuthenticationException.class, code = { 401 }) @@ -227,7 +228,7 @@ Response listLatestIndexVersionsNextSync( /** * List versions - * + * * List all versions of the given Index. *

Response Body Schema

* @@ -245,7 +246,7 @@ Response listLatestIndexVersionsNextSync( * } * } * - * + * * @param name The name of the resource. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -268,7 +269,7 @@ private Mono> listIndexVersionsSinglePageAsync(String /** * List versions - * + * * List all versions of the given Index. *

Response Body Schema

* @@ -286,7 +287,7 @@ private Mono> listIndexVersionsSinglePageAsync(String * } * } * - * + * * @param name The name of the resource. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -306,7 +307,7 @@ public PagedFlux listIndexVersionsAsync(String name, RequestOptions /** * List versions - * + * * List all versions of the given Index. *

Response Body Schema

* @@ -324,7 +325,7 @@ public PagedFlux listIndexVersionsAsync(String name, RequestOptions * } * } * - * + * * @param name The name of the resource. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -344,7 +345,7 @@ private PagedResponse listIndexVersionsSinglePage(String name, Reque /** * List versions - * + * * List all versions of the given Index. *

Response Body Schema

* @@ -362,7 +363,7 @@ private PagedResponse listIndexVersionsSinglePage(String name, Reque * } * } * - * + * * @param name The name of the resource. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -382,7 +383,7 @@ public PagedIterable listIndexVersions(String name, RequestOptions r /** * List latest versions - * + * * List the latest version of each Index. *

Response Body Schema

* @@ -400,7 +401,7 @@ public PagedIterable listIndexVersions(String name, RequestOptions r * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -421,7 +422,7 @@ private Mono> listLatestIndexVersionsSinglePageAsync(R /** * List latest versions - * + * * List the latest version of each Index. *

Response Body Schema

* @@ -439,7 +440,7 @@ private Mono> listLatestIndexVersionsSinglePageAsync(R * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -458,7 +459,7 @@ public PagedFlux listLatestIndexVersionsAsync(RequestOptions request /** * List latest versions - * + * * List the latest version of each Index. *

Response Body Schema

* @@ -476,7 +477,7 @@ public PagedFlux listLatestIndexVersionsAsync(RequestOptions request * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -495,7 +496,7 @@ private PagedResponse listLatestIndexVersionsSinglePage(RequestOptio /** * List latest versions - * + * * List the latest version of each Index. *

Response Body Schema

* @@ -513,7 +514,7 @@ private PagedResponse listLatestIndexVersionsSinglePage(RequestOptio * } * } * - * + * * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. * @throws ClientAuthenticationException thrown if the request is rejected by server on status code 401. @@ -532,7 +533,7 @@ public PagedIterable listLatestIndexVersions(RequestOptions requestO /** * Get a version - * + * * Get the specific version of the Index. The service returns 404 Not Found error if the Index does not exist. *

Response Body Schema

* @@ -550,7 +551,7 @@ public PagedIterable listLatestIndexVersions(RequestOptions requestO * } * } * - * + * * @param name The name of the resource. * @param version The specific version id of the Index to retrieve. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -559,7 +560,7 @@ public PagedIterable listLatestIndexVersions(RequestOptions requestO * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a version - * + * * Get the specific version of the Index along with {@link Response} on successful completion of {@link Mono}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -572,7 +573,7 @@ public Mono> getIndexVersionWithResponseAsync(String name, /** * Get a version - * + * * Get the specific version of the Index. The service returns 404 Not Found error if the Index does not exist. *

Response Body Schema

* @@ -590,7 +591,7 @@ public Mono> getIndexVersionWithResponseAsync(String name, * } * } * - * + * * @param name The name of the resource. * @param version The specific version id of the Index to retrieve. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -599,7 +600,7 @@ public Mono> getIndexVersionWithResponseAsync(String name, * @throws ResourceNotFoundException thrown if the request is rejected by server on status code 404. * @throws ResourceModifiedException thrown if the request is rejected by server on status code 409. * @return a version - * + * * Get the specific version of the Index along with {@link Response}. */ @ServiceMethod(returns = ReturnType.SINGLE) @@ -612,10 +613,10 @@ public Response getIndexVersionWithResponse(String name, String vers /** * Delete a version - * + * * Delete the specific version of the Index. The service returns 204 No Content if the Index was deleted * successfully or if the Index does not exist. - * + * * @param name The name of the resource. * @param version The version of the Index to delete. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -634,10 +635,10 @@ public Mono> deleteIndexVersionWithResponseAsync(String name, Str /** * Delete a version - * + * * Delete the specific version of the Index. The service returns 204 No Content if the Index was deleted * successfully or if the Index does not exist. - * + * * @param name The name of the resource. * @param version The version of the Index to delete. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. @@ -655,7 +656,7 @@ public Response deleteIndexVersionWithResponse(String name, String version /** * Create or update a version - * + * * Create a new or update an existing Index with the given version id. *

Request Body Schema

* @@ -690,7 +691,7 @@ public Response deleteIndexVersionWithResponse(String name, String version * } * } * - * + * * @param name The name of the resource. * @param version The specific version id of the Index to create or update. * @param index The Index to create or update. @@ -713,7 +714,7 @@ public Mono> createOrUpdateIndexVersionWithResponseAsync(St /** * Create or update a version - * + * * Create a new or update an existing Index with the given version id. *

Request Body Schema

* @@ -748,7 +749,7 @@ public Mono> createOrUpdateIndexVersionWithResponseAsync(St * } * } * - * + * * @param name The name of the resource. * @param version The specific version id of the Index to create or update. * @param index The Index to create or update. @@ -771,7 +772,7 @@ public Response createOrUpdateIndexVersionWithResponse(String name, /** * List versions - * + * * Get the next page of items. *

Response Body Schema

* @@ -789,7 +790,7 @@ public Response createOrUpdateIndexVersionWithResponse(String name, * } * } * - * + * * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -812,7 +813,7 @@ private Mono> listIndexVersionsNextSinglePageAsync(Str /** * List versions - * + * * Get the next page of items. *

Response Body Schema

* @@ -830,7 +831,7 @@ private Mono> listIndexVersionsNextSinglePageAsync(Str * } * } * - * + * * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -850,7 +851,7 @@ private PagedResponse listIndexVersionsNextSinglePage(String nextLin /** * List latest versions - * + * * Get the next page of items. *

Response Body Schema

* @@ -868,7 +869,7 @@ private PagedResponse listIndexVersionsNextSinglePage(String nextLin * } * } * - * + * * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -891,7 +892,7 @@ private Mono> listLatestIndexVersionsNextSinglePageAsy /** * List latest versions - * + * * Get the next page of items. *

Response Body Schema

* @@ -909,7 +910,7 @@ private Mono> listLatestIndexVersionsNextSinglePageAsy * } * } * - * + * * @param nextLink The URL to get the next list of items. * @param requestOptions The options to configure the HTTP request before HTTP client sends it. * @throws HttpResponseException thrown if the request is rejected by server. @@ -944,6 +945,9 @@ private List getValues(BinaryData binaryData, String... path) { private String getNextLink(BinaryData binaryData, String... path) { try { Object value = binaryData.toObject(Map.class); + if (Boolean.FALSE.equals(((Map) value).get("has_more"))) { + return null; + } for (String segment : path) { value = ((Map) value).get(segment); } diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/JsonMergePatchHelper.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/JsonMergePatchHelper.java index 9b8b3ebda15dd..16d085a60d2d6 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/JsonMergePatchHelper.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/JsonMergePatchHelper.java @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) TypeSpec Code Generator. - package com.azure.ai.projects.implementation; import com.azure.ai.projects.models.AIProjectIndex; @@ -18,9 +17,11 @@ * This is the Helper class to enable json merge patch serialization for a model. */ public class JsonMergePatchHelper { + private static AgentInsightMonitorUpdateAccessor agentInsightMonitorUpdateAccessor; public interface AgentInsightMonitorUpdateAccessor { + AgentInsightMonitorUpdate prepareModelForJsonMergePatch(AgentInsightMonitorUpdate agentInsightMonitorUpdate, boolean jsonMergePatchEnabled); @@ -38,6 +39,7 @@ public static AgentInsightMonitorUpdateAccessor getAgentInsightMonitorUpdateAcce private static AgentInsightsOverviewOverrideAccessor agentInsightsOverviewOverrideAccessor; public interface AgentInsightsOverviewOverrideAccessor { + AgentInsightsOverviewOverride prepareModelForJsonMergePatch( AgentInsightsOverviewOverride agentInsightsOverviewOverride, boolean jsonMergePatchEnabled); @@ -55,6 +57,7 @@ public static AgentInsightsOverviewOverrideAccessor getAgentInsightsOverviewOver private static AgentInsightUpdateAccessor agentInsightUpdateAccessor; public interface AgentInsightUpdateAccessor { + AgentInsightUpdate prepareModelForJsonMergePatch(AgentInsightUpdate agentInsightUpdate, boolean jsonMergePatchEnabled); @@ -72,6 +75,7 @@ public static AgentInsightUpdateAccessor getAgentInsightUpdateAccessor() { private static UpdateModelVersionInputAccessor updateModelVersionInputAccessor; public interface UpdateModelVersionInputAccessor { + UpdateModelVersionInput prepareModelForJsonMergePatch(UpdateModelVersionInput updateModelVersionInput, boolean jsonMergePatchEnabled); @@ -89,6 +93,7 @@ public static UpdateModelVersionInputAccessor getUpdateModelVersionInputAccessor private static DatasetVersionAccessor datasetVersionAccessor; public interface DatasetVersionAccessor { + DatasetVersion prepareModelForJsonMergePatch(DatasetVersion datasetVersion, boolean jsonMergePatchEnabled); boolean isJsonMergePatch(DatasetVersion datasetVersion); @@ -121,6 +126,7 @@ public static DatasetVersionAccessor getDatasetVersionAccessor() { private static AIProjectIndexAccessor aIProjectIndexAccessor; public interface AIProjectIndexAccessor { + AIProjectIndex prepareModelForJsonMergePatch(AIProjectIndex aIProjectIndex, boolean jsonMergePatchEnabled); boolean isJsonMergePatch(AIProjectIndex aIProjectIndex); @@ -147,6 +153,7 @@ public static AIProjectIndexAccessor getAIProjectIndexAccessor() { private static FieldMappingAccessor fieldMappingAccessor; public interface FieldMappingAccessor { + FieldMapping prepareModelForJsonMergePatch(FieldMapping fieldMapping, boolean jsonMergePatchEnabled); boolean isJsonMergePatch(FieldMapping fieldMapping); @@ -163,6 +170,7 @@ public static FieldMappingAccessor getFieldMappingAccessor() { private static EmbeddingConfigurationAccessor embeddingConfigurationAccessor; public interface EmbeddingConfigurationAccessor { + EmbeddingConfiguration prepareModelForJsonMergePatch(EmbeddingConfiguration embeddingConfiguration, boolean jsonMergePatchEnabled); diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/MultipartFormDataHelper.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/MultipartFormDataHelper.java index 222b687fd7611..a9bdd3c14d640 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/MultipartFormDataHelper.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/MultipartFormDataHelper.java @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) TypeSpec Code Generator. - package com.azure.ai.projects.implementation; import com.azure.core.http.HttpHeaderName; @@ -17,8 +16,8 @@ import java.util.UUID; // DO NOT modify this helper class - public final class MultipartFormDataHelper { + /** * Line separator for the multipart HTTP request. */ @@ -47,9 +46,11 @@ public final class MultipartFormDataHelper { private final Charset encoderCharset = StandardCharsets.UTF_8; private InputStream requestDataStream = new ByteArrayInputStream(new byte[0]); + private long requestLength = 0; private RequestOptions requestOptions; + private BinaryData requestBody; /** @@ -167,12 +168,9 @@ public MultipartFormDataHelper serializeFileFields(String fieldName, List extends OperationResou private static final ClientLogger LOGGER = new ClientLogger(OperationLocationPollingStrategy.class); private final ObjectSerializer serializer; + private final String endpoint; + private final String propertyName; /** @@ -71,7 +71,6 @@ public OperationLocationPollingStrategy(PollingStrategyOptions pollingStrategyOp public Mono> onInitialResponse(Response response, PollingContext pollingContext, TypeReference pollResponseType) { // Response is Response - HttpHeader operationLocationHeader = response.getHeaders().get(PollingUtils.OPERATION_LOCATION_HEADER); if (operationLocationHeader != null) { pollingContext.setData(PollingUtils.OPERATION_LOCATION_HEADER.getCaseSensitiveName(), @@ -80,7 +79,6 @@ public Mono> onInitialResponse(Response response, PollingCont final String httpMethod = response.getRequest().getHttpMethod().name(); pollingContext.setData(PollingUtils.HTTP_METHOD, httpMethod); pollingContext.setData(PollingUtils.REQUEST_URL, response.getRequest().getUrl().toString()); - if (response.getStatusCode() == 200 || response.getStatusCode() == 201 || response.getStatusCode() == 202 diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/PollingUtils.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/PollingUtils.java index 4adcb687db95a..1ed2a44ce7e56 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/PollingUtils.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/PollingUtils.java @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) TypeSpec Code Generator. - package com.azure.ai.projects.implementation; import com.azure.core.http.HttpHeaderName; @@ -24,7 +23,6 @@ import reactor.core.publisher.Mono; // DO NOT modify this helper class - final class PollingUtils { public static final TypeReference> POST_POLL_RESULT_TYPE_REFERENCE @@ -34,7 +32,9 @@ final class PollingUtils { public static final HttpHeaderName OPERATION_LOCATION_HEADER = HttpHeaderName.fromString("Operation-Location"); public static final String HTTP_METHOD = "httpMethod"; + public static final String REQUEST_URL = "requestURL"; + public static final String POLL_RESPONSE_BODY = "pollResponseBody"; private static final String FORWARD_SLASH = "/"; @@ -47,7 +47,6 @@ public static String getAbsolutePath(String path, String endpoint, ClientLogger throw logger.logExceptionAsError(new IllegalArgumentException( "Relative path requires endpoint to be non-null and non-empty to create an absolute path.")); } - if (endpoint.endsWith(FORWARD_SLASH) && path.startsWith(FORWARD_SLASH)) { return endpoint + path.substring(1); } else if (!endpoint.endsWith(FORWARD_SLASH) && !path.startsWith(FORWARD_SLASH)) { @@ -92,6 +91,7 @@ public static Mono deserializeResponse(BinaryData binaryData, ObjectSeria } private static final HttpHeaderName RETRY_AFTER_MS_HEADER = HttpHeaderName.fromString("retry-after-ms"); + private static final HttpHeaderName X_MS_RETRY_AFTER_MS_HEADER = HttpHeaderName.fromString("x-ms-retry-after-ms"); public static Duration getRetryAfterFromHeaders(HttpHeaders headers, Supplier nowSupplier) { @@ -100,18 +100,15 @@ public static Duration getRetryAfterFromHeaders(HttpHeaders headers, Supplier tryGetDelayMillis(s)); if (retryDelay != null) { return retryDelay; } - // Found 'Retry-After' header. First, attempt to resolve it as a Duration of seconds. If that fails, then // attempt to resolve it as an HTTP date (RFC1123). retryDelay = tryGetRetryDelay(headers, HttpHeaderName.RETRY_AFTER, headerValue -> tryParseLongOrDateTime(headerValue, nowSupplier)); - // Either the retry delay will have been found or it'll be null, null indicates no retry after. return retryDelay; } @@ -119,7 +116,6 @@ public static Duration getRetryAfterFromHeaders(HttpHeaders headers, Supplier delayParser) { String headerValue = headers.getValue(headerName); - return CoreUtils.isNullOrEmpty(headerValue) ? null : delayParser.apply(headerValue); } @@ -127,12 +123,10 @@ private static Duration tryParseLongOrDateTime(String value, Supplier= 0) ? Duration.ofSeconds(delaySeconds) : null; } diff --git a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/SyncOperationLocationPollingStrategy.java b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/SyncOperationLocationPollingStrategy.java index 539953c95f910..229eeac0141a6 100644 --- a/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/SyncOperationLocationPollingStrategy.java +++ b/sdk/ai/azure-ai-projects/src/main/java/com/azure/ai/projects/implementation/SyncOperationLocationPollingStrategy.java @@ -1,7 +1,6 @@ // Copyright (c) Microsoft Corporation. All rights reserved. // Licensed under the MIT License. // Code generated by Microsoft (R) TypeSpec Code Generator. - package com.azure.ai.projects.implementation; import com.azure.core.exception.AzureException; @@ -23,7 +22,6 @@ import java.util.Map; // DO NOT modify this helper class - /** * Implements a synchronous operation location polling strategy, from Operation-Location. * @@ -36,7 +34,9 @@ public final class SyncOperationLocationPollingStrategy extends SyncOperat private static final ClientLogger LOGGER = new ClientLogger(SyncOperationLocationPollingStrategy.class); private final ObjectSerializer serializer; + private final String endpoint; + private final String propertyName; /** @@ -72,7 +72,6 @@ public SyncOperationLocationPollingStrategy(PollingStrategyOptions pollingStrate public PollResponse onInitialResponse(Response response, PollingContext pollingContext, TypeReference pollResponseType) { // Response is Response - HttpHeader operationLocationHeader = response.getHeaders().get(PollingUtils.OPERATION_LOCATION_HEADER); if (operationLocationHeader != null) { pollingContext.setData(PollingUtils.OPERATION_LOCATION_HEADER.getCaseSensitiveName(), @@ -81,7 +80,6 @@ public PollResponse onInitialResponse(Response response, PollingContext final String httpMethod = response.getRequest().getHttpMethod().name(); pollingContext.setData(PollingUtils.HTTP_METHOD, httpMethod); pollingContext.setData(PollingUtils.REQUEST_URL, response.getRequest().getUrl().toString()); - if (response.getStatusCode() == 200 || response.getStatusCode() == 201 || response.getStatusCode() == 202 @@ -97,7 +95,6 @@ public PollResponse onInitialResponse(Response response, PollingContext } return new PollResponse<>(LongRunningOperationStatus.IN_PROGRESS, initialResponseType, retryAfter); } - throw LOGGER.logExceptionAsError(new AzureException( String.format("Operation failed or cancelled with status code %d, '%s' header: %s, and response body: %s", response.getStatusCode(), PollingUtils.OPERATION_LOCATION_HEADER, operationLocationHeader, diff --git a/sdk/ai/azure-ai-projects/src/main/resources/META-INF/azure-ai-projects_metadata.json b/sdk/ai/azure-ai-projects/src/main/resources/META-INF/azure-ai-projects_metadata.json index fd5ed49def5fe..b838801e33949 100644 --- a/sdk/ai/azure-ai-projects/src/main/resources/META-INF/azure-ai-projects_metadata.json +++ b/sdk/ai/azure-ai-projects/src/main/resources/META-INF/azure-ai-projects_metadata.json @@ -1 +1 @@ -{"flavor":"azure","apiVersions":{"Azure.AI.Projects":"v1"},"crossLanguagePackageId":"Azure.AI.Projects","crossLanguageVersion":"f0d3551538c1","crossLanguageDefinitions":{"com.azure.ai.projects.AIProjectClientBuilder":"Azure.AI.Projects","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient":"Azure.AI.Projects.Beta.AgentInsightMonitors","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.beginCreateAgentInsightRun":"Azure.AI.Projects.AgentInsightMonitors.createRun","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.beginCreateAgentInsightRunWithModel":"Azure.AI.Projects.AgentInsightMonitors.createRun","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.cancelAgentInsightRun":"Azure.AI.Projects.AgentInsightMonitors.cancelRun","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.cancelAgentInsightRunWithResponse":"Azure.AI.Projects.AgentInsightMonitors.cancelRun","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.createAgentInsightMonitor":"Azure.AI.Projects.AgentInsightMonitors.create","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.createAgentInsightMonitorWithResponse":"Azure.AI.Projects.AgentInsightMonitors.create","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.deleteAgentInsightMonitor":"Azure.AI.Projects.AgentInsightMonitors.delete","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.deleteAgentInsightMonitorWithResponse":"Azure.AI.Projects.AgentInsightMonitors.delete","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.getAgentInsight":"Azure.AI.Projects.AgentInsightMonitors.getInsight","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.getAgentInsightMonitor":"Azure.AI.Projects.AgentInsightMonitors.get","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.getAgentInsightMonitorWithResponse":"Azure.AI.Projects.AgentInsightMonitors.get","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.getAgentInsightRun":"Azure.AI.Projects.AgentInsightMonitors.getRun","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.getAgentInsightRunWithResponse":"Azure.AI.Projects.AgentInsightMonitors.getRun","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.getAgentInsightWithResponse":"Azure.AI.Projects.AgentInsightMonitors.getInsight","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.listAgentInsightMonitors":"Azure.AI.Projects.AgentInsightMonitors.list","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.listAgentInsightRuns":"Azure.AI.Projects.AgentInsightMonitors.listRuns","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.listAgentInsights":"Azure.AI.Projects.AgentInsightMonitors.listInsights","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.resetAgentInsightMonitor":"Azure.AI.Projects.AgentInsightMonitors.reset","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.resetAgentInsightMonitorWithResponse":"Azure.AI.Projects.AgentInsightMonitors.reset","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.updateAgentInsight":"Azure.AI.Projects.AgentInsightMonitors.updateInsight","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.updateAgentInsightMonitor":"Azure.AI.Projects.AgentInsightMonitors.update","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.updateAgentInsightMonitorWithResponse":"Azure.AI.Projects.AgentInsightMonitors.update","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.updateAgentInsightWithResponse":"Azure.AI.Projects.AgentInsightMonitors.updateInsight","com.azure.ai.projects.BetaAgentInsightMonitorsClient":"Azure.AI.Projects.Beta.AgentInsightMonitors","com.azure.ai.projects.BetaAgentInsightMonitorsClient.beginCreateAgentInsightRun":"Azure.AI.Projects.AgentInsightMonitors.createRun","com.azure.ai.projects.BetaAgentInsightMonitorsClient.beginCreateAgentInsightRunWithModel":"Azure.AI.Projects.AgentInsightMonitors.createRun","com.azure.ai.projects.BetaAgentInsightMonitorsClient.cancelAgentInsightRun":"Azure.AI.Projects.AgentInsightMonitors.cancelRun","com.azure.ai.projects.BetaAgentInsightMonitorsClient.cancelAgentInsightRunWithResponse":"Azure.AI.Projects.AgentInsightMonitors.cancelRun","com.azure.ai.projects.BetaAgentInsightMonitorsClient.createAgentInsightMonitor":"Azure.AI.Projects.AgentInsightMonitors.create","com.azure.ai.projects.BetaAgentInsightMonitorsClient.createAgentInsightMonitorWithResponse":"Azure.AI.Projects.AgentInsightMonitors.create","com.azure.ai.projects.BetaAgentInsightMonitorsClient.deleteAgentInsightMonitor":"Azure.AI.Projects.AgentInsightMonitors.delete","com.azure.ai.projects.BetaAgentInsightMonitorsClient.deleteAgentInsightMonitorWithResponse":"Azure.AI.Projects.AgentInsightMonitors.delete","com.azure.ai.projects.BetaAgentInsightMonitorsClient.getAgentInsight":"Azure.AI.Projects.AgentInsightMonitors.getInsight","com.azure.ai.projects.BetaAgentInsightMonitorsClient.getAgentInsightMonitor":"Azure.AI.Projects.AgentInsightMonitors.get","com.azure.ai.projects.BetaAgentInsightMonitorsClient.getAgentInsightMonitorWithResponse":"Azure.AI.Projects.AgentInsightMonitors.get","com.azure.ai.projects.BetaAgentInsightMonitorsClient.getAgentInsightRun":"Azure.AI.Projects.AgentInsightMonitors.getRun","com.azure.ai.projects.BetaAgentInsightMonitorsClient.getAgentInsightRunWithResponse":"Azure.AI.Projects.AgentInsightMonitors.getRun","com.azure.ai.projects.BetaAgentInsightMonitorsClient.getAgentInsightWithResponse":"Azure.AI.Projects.AgentInsightMonitors.getInsight","com.azure.ai.projects.BetaAgentInsightMonitorsClient.listAgentInsightMonitors":"Azure.AI.Projects.AgentInsightMonitors.list","com.azure.ai.projects.BetaAgentInsightMonitorsClient.listAgentInsightRuns":"Azure.AI.Projects.AgentInsightMonitors.listRuns","com.azure.ai.projects.BetaAgentInsightMonitorsClient.listAgentInsights":"Azure.AI.Projects.AgentInsightMonitors.listInsights","com.azure.ai.projects.BetaAgentInsightMonitorsClient.resetAgentInsightMonitor":"Azure.AI.Projects.AgentInsightMonitors.reset","com.azure.ai.projects.BetaAgentInsightMonitorsClient.resetAgentInsightMonitorWithResponse":"Azure.AI.Projects.AgentInsightMonitors.reset","com.azure.ai.projects.BetaAgentInsightMonitorsClient.updateAgentInsight":"Azure.AI.Projects.AgentInsightMonitors.updateInsight","com.azure.ai.projects.BetaAgentInsightMonitorsClient.updateAgentInsightMonitor":"Azure.AI.Projects.AgentInsightMonitors.update","com.azure.ai.projects.BetaAgentInsightMonitorsClient.updateAgentInsightMonitorWithResponse":"Azure.AI.Projects.AgentInsightMonitors.update","com.azure.ai.projects.BetaAgentInsightMonitorsClient.updateAgentInsightWithResponse":"Azure.AI.Projects.AgentInsightMonitors.updateInsight","com.azure.ai.projects.BetaEvaluationTaxonomiesAsyncClient":"Azure.AI.Projects.Beta.EvaluationTaxonomies","com.azure.ai.projects.BetaEvaluationTaxonomiesAsyncClient.createEvaluationTaxonomy":"Azure.AI.Projects.EvaluationTaxonomies.create","com.azure.ai.projects.BetaEvaluationTaxonomiesAsyncClient.createEvaluationTaxonomyWithResponse":"Azure.AI.Projects.EvaluationTaxonomies.create","com.azure.ai.projects.BetaEvaluationTaxonomiesAsyncClient.deleteEvaluationTaxonomy":"Azure.AI.Projects.EvaluationTaxonomies.delete","com.azure.ai.projects.BetaEvaluationTaxonomiesAsyncClient.deleteEvaluationTaxonomyWithResponse":"Azure.AI.Projects.EvaluationTaxonomies.delete","com.azure.ai.projects.BetaEvaluationTaxonomiesAsyncClient.getEvaluationTaxonomy":"Azure.AI.Projects.EvaluationTaxonomies.get","com.azure.ai.projects.BetaEvaluationTaxonomiesAsyncClient.getEvaluationTaxonomyWithResponse":"Azure.AI.Projects.EvaluationTaxonomies.get","com.azure.ai.projects.BetaEvaluationTaxonomiesAsyncClient.listEvaluationTaxonomies":"Azure.AI.Projects.EvaluationTaxonomies.list","com.azure.ai.projects.BetaEvaluationTaxonomiesAsyncClient.updateEvaluationTaxonomy":"Azure.AI.Projects.EvaluationTaxonomies.update","com.azure.ai.projects.BetaEvaluationTaxonomiesAsyncClient.updateEvaluationTaxonomyWithResponse":"Azure.AI.Projects.EvaluationTaxonomies.update","com.azure.ai.projects.BetaEvaluationTaxonomiesClient":"Azure.AI.Projects.Beta.EvaluationTaxonomies","com.azure.ai.projects.BetaEvaluationTaxonomiesClient.createEvaluationTaxonomy":"Azure.AI.Projects.EvaluationTaxonomies.create","com.azure.ai.projects.BetaEvaluationTaxonomiesClient.createEvaluationTaxonomyWithResponse":"Azure.AI.Projects.EvaluationTaxonomies.create","com.azure.ai.projects.BetaEvaluationTaxonomiesClient.deleteEvaluationTaxonomy":"Azure.AI.Projects.EvaluationTaxonomies.delete","com.azure.ai.projects.BetaEvaluationTaxonomiesClient.deleteEvaluationTaxonomyWithResponse":"Azure.AI.Projects.EvaluationTaxonomies.delete","com.azure.ai.projects.BetaEvaluationTaxonomiesClient.getEvaluationTaxonomy":"Azure.AI.Projects.EvaluationTaxonomies.get","com.azure.ai.projects.BetaEvaluationTaxonomiesClient.getEvaluationTaxonomyWithResponse":"Azure.AI.Projects.EvaluationTaxonomies.get","com.azure.ai.projects.BetaEvaluationTaxonomiesClient.listEvaluationTaxonomies":"Azure.AI.Projects.EvaluationTaxonomies.list","com.azure.ai.projects.BetaEvaluationTaxonomiesClient.updateEvaluationTaxonomy":"Azure.AI.Projects.EvaluationTaxonomies.update","com.azure.ai.projects.BetaEvaluationTaxonomiesClient.updateEvaluationTaxonomyWithResponse":"Azure.AI.Projects.EvaluationTaxonomies.update","com.azure.ai.projects.BetaEvaluatorsAsyncClient":"Azure.AI.Projects.Beta.Evaluators","com.azure.ai.projects.BetaEvaluatorsAsyncClient.getCredentials":"Azure.AI.Projects.Evaluators.getCredentials","com.azure.ai.projects.BetaEvaluatorsAsyncClient.getCredentialsWithResponse":"Azure.AI.Projects.Evaluators.getCredentials","com.azure.ai.projects.BetaEvaluatorsAsyncClient.startPendingUpload":"Azure.AI.Projects.Evaluators.startPendingUpload","com.azure.ai.projects.BetaEvaluatorsAsyncClient.startPendingUploadWithResponse":"Azure.AI.Projects.Evaluators.startPendingUpload","com.azure.ai.projects.BetaEvaluatorsClient":"Azure.AI.Projects.Beta.Evaluators","com.azure.ai.projects.BetaEvaluatorsClient.getCredentials":"Azure.AI.Projects.Evaluators.getCredentials","com.azure.ai.projects.BetaEvaluatorsClient.getCredentialsWithResponse":"Azure.AI.Projects.Evaluators.getCredentials","com.azure.ai.projects.BetaEvaluatorsClient.startPendingUpload":"Azure.AI.Projects.Evaluators.startPendingUpload","com.azure.ai.projects.BetaEvaluatorsClient.startPendingUploadWithResponse":"Azure.AI.Projects.Evaluators.startPendingUpload","com.azure.ai.projects.BetaInsightsAsyncClient":"Azure.AI.Projects.Beta.Insights","com.azure.ai.projects.BetaInsightsAsyncClient.generateInsight":"Azure.AI.Projects.Insights.generate","com.azure.ai.projects.BetaInsightsAsyncClient.generateInsightWithResponse":"Azure.AI.Projects.Insights.generate","com.azure.ai.projects.BetaInsightsAsyncClient.getInsight":"Azure.AI.Projects.Insights.get","com.azure.ai.projects.BetaInsightsAsyncClient.getInsightWithResponse":"Azure.AI.Projects.Insights.get","com.azure.ai.projects.BetaInsightsAsyncClient.listInsights":"Azure.AI.Projects.Insights.list","com.azure.ai.projects.BetaInsightsClient":"Azure.AI.Projects.Beta.Insights","com.azure.ai.projects.BetaInsightsClient.generateInsight":"Azure.AI.Projects.Insights.generate","com.azure.ai.projects.BetaInsightsClient.generateInsightWithResponse":"Azure.AI.Projects.Insights.generate","com.azure.ai.projects.BetaInsightsClient.getInsight":"Azure.AI.Projects.Insights.get","com.azure.ai.projects.BetaInsightsClient.getInsightWithResponse":"Azure.AI.Projects.Insights.get","com.azure.ai.projects.BetaInsightsClient.listInsights":"Azure.AI.Projects.Insights.list","com.azure.ai.projects.BetaModelsAsyncClient":"Azure.AI.Projects.Beta.Models","com.azure.ai.projects.BetaModelsAsyncClient.createModelVersionAsyncWithResponse":"Azure.AI.Projects.Models.createAsync","com.azure.ai.projects.BetaModelsAsyncClient.deleteModelVersion":"Azure.AI.Projects.Models.deleteVersion","com.azure.ai.projects.BetaModelsAsyncClient.deleteModelVersionWithResponse":"Azure.AI.Projects.Models.deleteVersion","com.azure.ai.projects.BetaModelsAsyncClient.getModelCredentials":"Azure.AI.Projects.Models.getCredentials","com.azure.ai.projects.BetaModelsAsyncClient.getModelCredentialsWithResponse":"Azure.AI.Projects.Models.getCredentials","com.azure.ai.projects.BetaModelsAsyncClient.getModelVersion":"Azure.AI.Projects.Models.getVersion","com.azure.ai.projects.BetaModelsAsyncClient.getModelVersionWithResponse":"Azure.AI.Projects.Models.getVersion","com.azure.ai.projects.BetaModelsAsyncClient.listLatestModelVersions":"Azure.AI.Projects.Models.listLatest","com.azure.ai.projects.BetaModelsAsyncClient.listModelVersions":"Azure.AI.Projects.Models.listVersions","com.azure.ai.projects.BetaModelsAsyncClient.startModelPendingUpload":"Azure.AI.Projects.Models.startPendingUpload","com.azure.ai.projects.BetaModelsAsyncClient.startModelPendingUploadWithResponse":"Azure.AI.Projects.Models.startPendingUpload","com.azure.ai.projects.BetaModelsAsyncClient.updateModelVersion":"Azure.AI.Projects.Models.createOrUpdateVersion","com.azure.ai.projects.BetaModelsAsyncClient.updateModelVersionWithResponse":"Azure.AI.Projects.Models.createOrUpdateVersion","com.azure.ai.projects.BetaModelsClient":"Azure.AI.Projects.Beta.Models","com.azure.ai.projects.BetaModelsClient.createModelVersionAsyncWithResponse":"Azure.AI.Projects.Models.createAsync","com.azure.ai.projects.BetaModelsClient.deleteModelVersion":"Azure.AI.Projects.Models.deleteVersion","com.azure.ai.projects.BetaModelsClient.deleteModelVersionWithResponse":"Azure.AI.Projects.Models.deleteVersion","com.azure.ai.projects.BetaModelsClient.getModelCredentials":"Azure.AI.Projects.Models.getCredentials","com.azure.ai.projects.BetaModelsClient.getModelCredentialsWithResponse":"Azure.AI.Projects.Models.getCredentials","com.azure.ai.projects.BetaModelsClient.getModelVersion":"Azure.AI.Projects.Models.getVersion","com.azure.ai.projects.BetaModelsClient.getModelVersionWithResponse":"Azure.AI.Projects.Models.getVersion","com.azure.ai.projects.BetaModelsClient.listLatestModelVersions":"Azure.AI.Projects.Models.listLatest","com.azure.ai.projects.BetaModelsClient.listModelVersions":"Azure.AI.Projects.Models.listVersions","com.azure.ai.projects.BetaModelsClient.startModelPendingUpload":"Azure.AI.Projects.Models.startPendingUpload","com.azure.ai.projects.BetaModelsClient.startModelPendingUploadWithResponse":"Azure.AI.Projects.Models.startPendingUpload","com.azure.ai.projects.BetaModelsClient.updateModelVersion":"Azure.AI.Projects.Models.createOrUpdateVersion","com.azure.ai.projects.BetaModelsClient.updateModelVersionWithResponse":"Azure.AI.Projects.Models.createOrUpdateVersion","com.azure.ai.projects.BetaRedTeamsAsyncClient":"Azure.AI.Projects.Beta.RedTeams","com.azure.ai.projects.BetaRedTeamsAsyncClient.createRedTeamRun":"Azure.AI.Projects.RedTeams.create","com.azure.ai.projects.BetaRedTeamsAsyncClient.createRedTeamRunWithResponse":"Azure.AI.Projects.RedTeams.create","com.azure.ai.projects.BetaRedTeamsAsyncClient.getRedTeam":"Azure.AI.Projects.RedTeams.get","com.azure.ai.projects.BetaRedTeamsAsyncClient.getRedTeamWithResponse":"Azure.AI.Projects.RedTeams.get","com.azure.ai.projects.BetaRedTeamsAsyncClient.listRedTeams":"Azure.AI.Projects.RedTeams.list","com.azure.ai.projects.BetaRedTeamsClient":"Azure.AI.Projects.Beta.RedTeams","com.azure.ai.projects.BetaRedTeamsClient.createRedTeamRun":"Azure.AI.Projects.RedTeams.create","com.azure.ai.projects.BetaRedTeamsClient.createRedTeamRunWithResponse":"Azure.AI.Projects.RedTeams.create","com.azure.ai.projects.BetaRedTeamsClient.getRedTeam":"Azure.AI.Projects.RedTeams.get","com.azure.ai.projects.BetaRedTeamsClient.getRedTeamWithResponse":"Azure.AI.Projects.RedTeams.get","com.azure.ai.projects.BetaRedTeamsClient.listRedTeams":"Azure.AI.Projects.RedTeams.list","com.azure.ai.projects.BetaRoutinesAsyncClient":"Azure.AI.Projects.Beta.Routines","com.azure.ai.projects.BetaRoutinesAsyncClient.createOrUpdateRoutine":"Azure.AI.Projects.Routines.createOrUpdateRoutine","com.azure.ai.projects.BetaRoutinesAsyncClient.createOrUpdateRoutineWithResponse":"Azure.AI.Projects.Routines.createOrUpdateRoutine","com.azure.ai.projects.BetaRoutinesAsyncClient.deleteRoutine":"Azure.AI.Projects.Routines.deleteRoutine","com.azure.ai.projects.BetaRoutinesAsyncClient.deleteRoutineWithResponse":"Azure.AI.Projects.Routines.deleteRoutine","com.azure.ai.projects.BetaRoutinesAsyncClient.disableRoutine":"Azure.AI.Projects.Routines.disableRoutine","com.azure.ai.projects.BetaRoutinesAsyncClient.disableRoutineWithResponse":"Azure.AI.Projects.Routines.disableRoutine","com.azure.ai.projects.BetaRoutinesAsyncClient.dispatchRoutine":"Azure.AI.Projects.Routines.dispatchRoutineAsync","com.azure.ai.projects.BetaRoutinesAsyncClient.dispatchRoutineWithResponse":"Azure.AI.Projects.Routines.dispatchRoutineAsync","com.azure.ai.projects.BetaRoutinesAsyncClient.enableRoutine":"Azure.AI.Projects.Routines.enableRoutine","com.azure.ai.projects.BetaRoutinesAsyncClient.enableRoutineWithResponse":"Azure.AI.Projects.Routines.enableRoutine","com.azure.ai.projects.BetaRoutinesAsyncClient.getRoutine":"Azure.AI.Projects.Routines.getRoutine","com.azure.ai.projects.BetaRoutinesAsyncClient.getRoutineWithResponse":"Azure.AI.Projects.Routines.getRoutine","com.azure.ai.projects.BetaRoutinesAsyncClient.listRoutineRuns":"Azure.AI.Projects.Routines.listRoutineRuns","com.azure.ai.projects.BetaRoutinesAsyncClient.listRoutines":"Azure.AI.Projects.Routines.listRoutines","com.azure.ai.projects.BetaRoutinesClient":"Azure.AI.Projects.Beta.Routines","com.azure.ai.projects.BetaRoutinesClient.createOrUpdateRoutine":"Azure.AI.Projects.Routines.createOrUpdateRoutine","com.azure.ai.projects.BetaRoutinesClient.createOrUpdateRoutineWithResponse":"Azure.AI.Projects.Routines.createOrUpdateRoutine","com.azure.ai.projects.BetaRoutinesClient.deleteRoutine":"Azure.AI.Projects.Routines.deleteRoutine","com.azure.ai.projects.BetaRoutinesClient.deleteRoutineWithResponse":"Azure.AI.Projects.Routines.deleteRoutine","com.azure.ai.projects.BetaRoutinesClient.disableRoutine":"Azure.AI.Projects.Routines.disableRoutine","com.azure.ai.projects.BetaRoutinesClient.disableRoutineWithResponse":"Azure.AI.Projects.Routines.disableRoutine","com.azure.ai.projects.BetaRoutinesClient.dispatchRoutine":"Azure.AI.Projects.Routines.dispatchRoutineAsync","com.azure.ai.projects.BetaRoutinesClient.dispatchRoutineWithResponse":"Azure.AI.Projects.Routines.dispatchRoutineAsync","com.azure.ai.projects.BetaRoutinesClient.enableRoutine":"Azure.AI.Projects.Routines.enableRoutine","com.azure.ai.projects.BetaRoutinesClient.enableRoutineWithResponse":"Azure.AI.Projects.Routines.enableRoutine","com.azure.ai.projects.BetaRoutinesClient.getRoutine":"Azure.AI.Projects.Routines.getRoutine","com.azure.ai.projects.BetaRoutinesClient.getRoutineWithResponse":"Azure.AI.Projects.Routines.getRoutine","com.azure.ai.projects.BetaRoutinesClient.listRoutineRuns":"Azure.AI.Projects.Routines.listRoutineRuns","com.azure.ai.projects.BetaRoutinesClient.listRoutines":"Azure.AI.Projects.Routines.listRoutines","com.azure.ai.projects.BetaSchedulesAsyncClient":"Azure.AI.Projects.Beta.Schedules","com.azure.ai.projects.BetaSchedulesAsyncClient.createOrUpdateSchedule":"Azure.AI.Projects.Schedules.createOrUpdate","com.azure.ai.projects.BetaSchedulesAsyncClient.createOrUpdateScheduleWithResponse":"Azure.AI.Projects.Schedules.createOrUpdate","com.azure.ai.projects.BetaSchedulesAsyncClient.deleteSchedule":"Azure.AI.Projects.Schedules.delete","com.azure.ai.projects.BetaSchedulesAsyncClient.deleteScheduleWithResponse":"Azure.AI.Projects.Schedules.delete","com.azure.ai.projects.BetaSchedulesAsyncClient.getSchedule":"Azure.AI.Projects.Schedules.get","com.azure.ai.projects.BetaSchedulesAsyncClient.getScheduleRun":"Azure.AI.Projects.Schedules.getRun","com.azure.ai.projects.BetaSchedulesAsyncClient.getScheduleRunWithResponse":"Azure.AI.Projects.Schedules.getRun","com.azure.ai.projects.BetaSchedulesAsyncClient.getScheduleWithResponse":"Azure.AI.Projects.Schedules.get","com.azure.ai.projects.BetaSchedulesAsyncClient.listScheduleRuns":"Azure.AI.Projects.Schedules.listRuns","com.azure.ai.projects.BetaSchedulesAsyncClient.listSchedules":"Azure.AI.Projects.Schedules.list","com.azure.ai.projects.BetaSchedulesClient":"Azure.AI.Projects.Beta.Schedules","com.azure.ai.projects.BetaSchedulesClient.createOrUpdateSchedule":"Azure.AI.Projects.Schedules.createOrUpdate","com.azure.ai.projects.BetaSchedulesClient.createOrUpdateScheduleWithResponse":"Azure.AI.Projects.Schedules.createOrUpdate","com.azure.ai.projects.BetaSchedulesClient.deleteSchedule":"Azure.AI.Projects.Schedules.delete","com.azure.ai.projects.BetaSchedulesClient.deleteScheduleWithResponse":"Azure.AI.Projects.Schedules.delete","com.azure.ai.projects.BetaSchedulesClient.getSchedule":"Azure.AI.Projects.Schedules.get","com.azure.ai.projects.BetaSchedulesClient.getScheduleRun":"Azure.AI.Projects.Schedules.getRun","com.azure.ai.projects.BetaSchedulesClient.getScheduleRunWithResponse":"Azure.AI.Projects.Schedules.getRun","com.azure.ai.projects.BetaSchedulesClient.getScheduleWithResponse":"Azure.AI.Projects.Schedules.get","com.azure.ai.projects.BetaSchedulesClient.listScheduleRuns":"Azure.AI.Projects.Schedules.listRuns","com.azure.ai.projects.BetaSchedulesClient.listSchedules":"Azure.AI.Projects.Schedules.list","com.azure.ai.projects.BetaSkillsAsyncClient":"Azure.AI.Projects.Beta.Skills","com.azure.ai.projects.BetaSkillsAsyncClient.createSkillVersion":"Azure.AI.Projects.Skills.createSkillVersion","com.azure.ai.projects.BetaSkillsAsyncClient.createSkillVersionFromFiles":"Azure.AI.Projects.Skills.createSkillVersionFromFiles","com.azure.ai.projects.BetaSkillsAsyncClient.createSkillVersionFromFilesWithResponseInternal":"Azure.AI.Projects.Skills.createSkillVersionFromFiles","com.azure.ai.projects.BetaSkillsAsyncClient.createSkillVersionWithResponse":"Azure.AI.Projects.Skills.createSkillVersion","com.azure.ai.projects.BetaSkillsAsyncClient.getSkill":"Azure.AI.Projects.Skills.getSkill","com.azure.ai.projects.BetaSkillsAsyncClient.getSkillContent":"Azure.AI.Projects.Skills.getSkillContent","com.azure.ai.projects.BetaSkillsAsyncClient.getSkillContentWithResponse":"Azure.AI.Projects.Skills.getSkillContent","com.azure.ai.projects.BetaSkillsAsyncClient.getSkillVersion":"Azure.AI.Projects.Skills.getSkillVersion","com.azure.ai.projects.BetaSkillsAsyncClient.getSkillVersionContent":"Azure.AI.Projects.Skills.getSkillVersionContent","com.azure.ai.projects.BetaSkillsAsyncClient.getSkillVersionContentWithResponse":"Azure.AI.Projects.Skills.getSkillVersionContent","com.azure.ai.projects.BetaSkillsAsyncClient.getSkillVersionWithResponse":"Azure.AI.Projects.Skills.getSkillVersion","com.azure.ai.projects.BetaSkillsAsyncClient.getSkillWithResponse":"Azure.AI.Projects.Skills.getSkill","com.azure.ai.projects.BetaSkillsAsyncClient.listSkillVersions":"Azure.AI.Projects.Skills.listSkillVersions","com.azure.ai.projects.BetaSkillsAsyncClient.listSkills":"Azure.AI.Projects.Skills.listSkills","com.azure.ai.projects.BetaSkillsAsyncClient.updateSkill":"Azure.AI.Projects.Skills.updateSkill","com.azure.ai.projects.BetaSkillsAsyncClient.updateSkillWithResponse":"Azure.AI.Projects.Skills.updateSkill","com.azure.ai.projects.BetaSkillsClient":"Azure.AI.Projects.Beta.Skills","com.azure.ai.projects.BetaSkillsClient.createSkillVersion":"Azure.AI.Projects.Skills.createSkillVersion","com.azure.ai.projects.BetaSkillsClient.createSkillVersionFromFiles":"Azure.AI.Projects.Skills.createSkillVersionFromFiles","com.azure.ai.projects.BetaSkillsClient.createSkillVersionFromFilesWithResponseInternal":"Azure.AI.Projects.Skills.createSkillVersionFromFiles","com.azure.ai.projects.BetaSkillsClient.createSkillVersionWithResponse":"Azure.AI.Projects.Skills.createSkillVersion","com.azure.ai.projects.BetaSkillsClient.getSkill":"Azure.AI.Projects.Skills.getSkill","com.azure.ai.projects.BetaSkillsClient.getSkillContent":"Azure.AI.Projects.Skills.getSkillContent","com.azure.ai.projects.BetaSkillsClient.getSkillContentWithResponse":"Azure.AI.Projects.Skills.getSkillContent","com.azure.ai.projects.BetaSkillsClient.getSkillVersion":"Azure.AI.Projects.Skills.getSkillVersion","com.azure.ai.projects.BetaSkillsClient.getSkillVersionContent":"Azure.AI.Projects.Skills.getSkillVersionContent","com.azure.ai.projects.BetaSkillsClient.getSkillVersionContentWithResponse":"Azure.AI.Projects.Skills.getSkillVersionContent","com.azure.ai.projects.BetaSkillsClient.getSkillVersionWithResponse":"Azure.AI.Projects.Skills.getSkillVersion","com.azure.ai.projects.BetaSkillsClient.getSkillWithResponse":"Azure.AI.Projects.Skills.getSkill","com.azure.ai.projects.BetaSkillsClient.listSkillVersions":"Azure.AI.Projects.Skills.listSkillVersions","com.azure.ai.projects.BetaSkillsClient.listSkills":"Azure.AI.Projects.Skills.listSkills","com.azure.ai.projects.BetaSkillsClient.updateSkill":"Azure.AI.Projects.Skills.updateSkill","com.azure.ai.projects.BetaSkillsClient.updateSkillWithResponse":"Azure.AI.Projects.Skills.updateSkill","com.azure.ai.projects.ConnectionsAsyncClient":"Azure.AI.Projects.Connections","com.azure.ai.projects.ConnectionsAsyncClient.getConnection":"Azure.AI.Projects.Connections.get","com.azure.ai.projects.ConnectionsAsyncClient.getConnectionWithCredentials":"Azure.AI.Projects.Connections.getWithCredentials","com.azure.ai.projects.ConnectionsAsyncClient.getConnectionWithCredentialsWithResponse":"Azure.AI.Projects.Connections.getWithCredentials","com.azure.ai.projects.ConnectionsAsyncClient.getConnectionWithResponse":"Azure.AI.Projects.Connections.get","com.azure.ai.projects.ConnectionsAsyncClient.listConnections":"Azure.AI.Projects.Connections.list","com.azure.ai.projects.ConnectionsClient":"Azure.AI.Projects.Connections","com.azure.ai.projects.ConnectionsClient.getConnection":"Azure.AI.Projects.Connections.get","com.azure.ai.projects.ConnectionsClient.getConnectionWithCredentials":"Azure.AI.Projects.Connections.getWithCredentials","com.azure.ai.projects.ConnectionsClient.getConnectionWithCredentialsWithResponse":"Azure.AI.Projects.Connections.getWithCredentials","com.azure.ai.projects.ConnectionsClient.getConnectionWithResponse":"Azure.AI.Projects.Connections.get","com.azure.ai.projects.ConnectionsClient.listConnections":"Azure.AI.Projects.Connections.list","com.azure.ai.projects.DatasetsAsyncClient":"Azure.AI.Projects.Datasets","com.azure.ai.projects.DatasetsAsyncClient.beginCreateGenerationJob":"Azure.AI.Projects.DataGenerationJobs.create","com.azure.ai.projects.DatasetsAsyncClient.beginCreateGenerationJobWithModel":"Azure.AI.Projects.DataGenerationJobs.create","com.azure.ai.projects.DatasetsAsyncClient.cancelGenerationJob":"Azure.AI.Projects.DataGenerationJobs.cancel","com.azure.ai.projects.DatasetsAsyncClient.cancelGenerationJobWithResponse":"Azure.AI.Projects.DataGenerationJobs.cancel","com.azure.ai.projects.DatasetsAsyncClient.createOrUpdateDatasetVersion":"Azure.AI.Projects.Datasets.createOrUpdateVersion","com.azure.ai.projects.DatasetsAsyncClient.createOrUpdateDatasetVersionWithResponse":"Azure.AI.Projects.Datasets.createOrUpdateVersion","com.azure.ai.projects.DatasetsAsyncClient.deleteDatasetVersion":"Azure.AI.Projects.Datasets.deleteVersion","com.azure.ai.projects.DatasetsAsyncClient.deleteDatasetVersionWithResponse":"Azure.AI.Projects.Datasets.deleteVersion","com.azure.ai.projects.DatasetsAsyncClient.deleteGenerationJob":"Azure.AI.Projects.DataGenerationJobs.delete","com.azure.ai.projects.DatasetsAsyncClient.deleteGenerationJobWithResponse":"Azure.AI.Projects.DataGenerationJobs.delete","com.azure.ai.projects.DatasetsAsyncClient.getCredentials":"Azure.AI.Projects.Datasets.getCredentials","com.azure.ai.projects.DatasetsAsyncClient.getCredentialsWithResponse":"Azure.AI.Projects.Datasets.getCredentials","com.azure.ai.projects.DatasetsAsyncClient.getDatasetVersion":"Azure.AI.Projects.Datasets.getVersion","com.azure.ai.projects.DatasetsAsyncClient.getDatasetVersionWithResponse":"Azure.AI.Projects.Datasets.getVersion","com.azure.ai.projects.DatasetsAsyncClient.getGenerationJob":"Azure.AI.Projects.DataGenerationJobs.get","com.azure.ai.projects.DatasetsAsyncClient.getGenerationJobWithResponse":"Azure.AI.Projects.DataGenerationJobs.get","com.azure.ai.projects.DatasetsAsyncClient.listDatasetVersions":"Azure.AI.Projects.Datasets.listVersions","com.azure.ai.projects.DatasetsAsyncClient.listGenerationJobs":"Azure.AI.Projects.DataGenerationJobs.list","com.azure.ai.projects.DatasetsAsyncClient.listLatestDatasetVersions":"Azure.AI.Projects.Datasets.listLatest","com.azure.ai.projects.DatasetsAsyncClient.pendingUpload":"Azure.AI.Projects.Datasets.startPendingUploadVersion","com.azure.ai.projects.DatasetsAsyncClient.pendingUploadWithResponse":"Azure.AI.Projects.Datasets.startPendingUploadVersion","com.azure.ai.projects.DatasetsClient":"Azure.AI.Projects.Datasets","com.azure.ai.projects.DatasetsClient.beginCreateGenerationJob":"Azure.AI.Projects.DataGenerationJobs.create","com.azure.ai.projects.DatasetsClient.beginCreateGenerationJobWithModel":"Azure.AI.Projects.DataGenerationJobs.create","com.azure.ai.projects.DatasetsClient.cancelGenerationJob":"Azure.AI.Projects.DataGenerationJobs.cancel","com.azure.ai.projects.DatasetsClient.cancelGenerationJobWithResponse":"Azure.AI.Projects.DataGenerationJobs.cancel","com.azure.ai.projects.DatasetsClient.createOrUpdateDatasetVersion":"Azure.AI.Projects.Datasets.createOrUpdateVersion","com.azure.ai.projects.DatasetsClient.createOrUpdateDatasetVersionWithResponse":"Azure.AI.Projects.Datasets.createOrUpdateVersion","com.azure.ai.projects.DatasetsClient.deleteDatasetVersion":"Azure.AI.Projects.Datasets.deleteVersion","com.azure.ai.projects.DatasetsClient.deleteDatasetVersionWithResponse":"Azure.AI.Projects.Datasets.deleteVersion","com.azure.ai.projects.DatasetsClient.deleteGenerationJob":"Azure.AI.Projects.DataGenerationJobs.delete","com.azure.ai.projects.DatasetsClient.deleteGenerationJobWithResponse":"Azure.AI.Projects.DataGenerationJobs.delete","com.azure.ai.projects.DatasetsClient.getCredentials":"Azure.AI.Projects.Datasets.getCredentials","com.azure.ai.projects.DatasetsClient.getCredentialsWithResponse":"Azure.AI.Projects.Datasets.getCredentials","com.azure.ai.projects.DatasetsClient.getDatasetVersion":"Azure.AI.Projects.Datasets.getVersion","com.azure.ai.projects.DatasetsClient.getDatasetVersionWithResponse":"Azure.AI.Projects.Datasets.getVersion","com.azure.ai.projects.DatasetsClient.getGenerationJob":"Azure.AI.Projects.DataGenerationJobs.get","com.azure.ai.projects.DatasetsClient.getGenerationJobWithResponse":"Azure.AI.Projects.DataGenerationJobs.get","com.azure.ai.projects.DatasetsClient.listDatasetVersions":"Azure.AI.Projects.Datasets.listVersions","com.azure.ai.projects.DatasetsClient.listGenerationJobs":"Azure.AI.Projects.DataGenerationJobs.list","com.azure.ai.projects.DatasetsClient.listLatestDatasetVersions":"Azure.AI.Projects.Datasets.listLatest","com.azure.ai.projects.DatasetsClient.pendingUpload":"Azure.AI.Projects.Datasets.startPendingUploadVersion","com.azure.ai.projects.DatasetsClient.pendingUploadWithResponse":"Azure.AI.Projects.Datasets.startPendingUploadVersion","com.azure.ai.projects.DeploymentsAsyncClient":"Azure.AI.Projects.Deployments","com.azure.ai.projects.DeploymentsAsyncClient.getDeployment":"Azure.AI.Projects.Deployments.get","com.azure.ai.projects.DeploymentsAsyncClient.getDeploymentWithResponse":"Azure.AI.Projects.Deployments.get","com.azure.ai.projects.DeploymentsAsyncClient.listDeployments":"Azure.AI.Projects.Deployments.list","com.azure.ai.projects.DeploymentsClient":"Azure.AI.Projects.Deployments","com.azure.ai.projects.DeploymentsClient.getDeployment":"Azure.AI.Projects.Deployments.get","com.azure.ai.projects.DeploymentsClient.getDeploymentWithResponse":"Azure.AI.Projects.Deployments.get","com.azure.ai.projects.DeploymentsClient.listDeployments":"Azure.AI.Projects.Deployments.list","com.azure.ai.projects.EvaluationRulesAsyncClient":"Azure.AI.Projects.EvaluationRules","com.azure.ai.projects.EvaluationRulesAsyncClient.createOrUpdateEvaluationRule":"Azure.AI.Projects.EvaluationRules.createOrUpdate","com.azure.ai.projects.EvaluationRulesAsyncClient.createOrUpdateEvaluationRuleWithResponse":"Azure.AI.Projects.EvaluationRules.createOrUpdate","com.azure.ai.projects.EvaluationRulesAsyncClient.deleteEvaluationRule":"Azure.AI.Projects.EvaluationRules.delete","com.azure.ai.projects.EvaluationRulesAsyncClient.deleteEvaluationRuleWithResponse":"Azure.AI.Projects.EvaluationRules.delete","com.azure.ai.projects.EvaluationRulesAsyncClient.getEvaluationRule":"Azure.AI.Projects.EvaluationRules.get","com.azure.ai.projects.EvaluationRulesAsyncClient.getEvaluationRuleWithResponse":"Azure.AI.Projects.EvaluationRules.get","com.azure.ai.projects.EvaluationRulesAsyncClient.listEvaluationRules":"Azure.AI.Projects.EvaluationRules.list","com.azure.ai.projects.EvaluationRulesClient":"Azure.AI.Projects.EvaluationRules","com.azure.ai.projects.EvaluationRulesClient.createOrUpdateEvaluationRule":"Azure.AI.Projects.EvaluationRules.createOrUpdate","com.azure.ai.projects.EvaluationRulesClient.createOrUpdateEvaluationRuleWithResponse":"Azure.AI.Projects.EvaluationRules.createOrUpdate","com.azure.ai.projects.EvaluationRulesClient.deleteEvaluationRule":"Azure.AI.Projects.EvaluationRules.delete","com.azure.ai.projects.EvaluationRulesClient.deleteEvaluationRuleWithResponse":"Azure.AI.Projects.EvaluationRules.delete","com.azure.ai.projects.EvaluationRulesClient.getEvaluationRule":"Azure.AI.Projects.EvaluationRules.get","com.azure.ai.projects.EvaluationRulesClient.getEvaluationRuleWithResponse":"Azure.AI.Projects.EvaluationRules.get","com.azure.ai.projects.EvaluationRulesClient.listEvaluationRules":"Azure.AI.Projects.EvaluationRules.list","com.azure.ai.projects.EvaluatorsAsyncClient":"Azure.AI.Projects.Evaluators","com.azure.ai.projects.EvaluatorsAsyncClient.beginCreateEvaluatorGenerationJob":"Azure.AI.Projects.EvaluatorGenerationJobs.create","com.azure.ai.projects.EvaluatorsAsyncClient.beginCreateEvaluatorGenerationJobWithModel":"Azure.AI.Projects.EvaluatorGenerationJobs.create","com.azure.ai.projects.EvaluatorsAsyncClient.cancelEvaluatorGenerationJob":"Azure.AI.Projects.EvaluatorGenerationJobs.cancel","com.azure.ai.projects.EvaluatorsAsyncClient.cancelEvaluatorGenerationJobWithResponse":"Azure.AI.Projects.EvaluatorGenerationJobs.cancel","com.azure.ai.projects.EvaluatorsAsyncClient.createEvaluatorVersion":"Azure.AI.Projects.Evaluators.createVersion","com.azure.ai.projects.EvaluatorsAsyncClient.createEvaluatorVersionWithResponse":"Azure.AI.Projects.Evaluators.createVersion","com.azure.ai.projects.EvaluatorsAsyncClient.deleteEvaluatorGenerationJob":"Azure.AI.Projects.EvaluatorGenerationJobs.delete","com.azure.ai.projects.EvaluatorsAsyncClient.deleteEvaluatorGenerationJobWithResponse":"Azure.AI.Projects.EvaluatorGenerationJobs.delete","com.azure.ai.projects.EvaluatorsAsyncClient.deleteEvaluatorVersion":"Azure.AI.Projects.Evaluators.deleteVersion","com.azure.ai.projects.EvaluatorsAsyncClient.deleteEvaluatorVersionWithResponse":"Azure.AI.Projects.Evaluators.deleteVersion","com.azure.ai.projects.EvaluatorsAsyncClient.getEvaluatorGenerationJob":"Azure.AI.Projects.EvaluatorGenerationJobs.get","com.azure.ai.projects.EvaluatorsAsyncClient.getEvaluatorGenerationJobWithResponse":"Azure.AI.Projects.EvaluatorGenerationJobs.get","com.azure.ai.projects.EvaluatorsAsyncClient.getEvaluatorVersion":"Azure.AI.Projects.Evaluators.getVersion","com.azure.ai.projects.EvaluatorsAsyncClient.getEvaluatorVersionWithResponse":"Azure.AI.Projects.Evaluators.getVersion","com.azure.ai.projects.EvaluatorsAsyncClient.listEvaluatorGenerationJobs":"Azure.AI.Projects.EvaluatorGenerationJobs.list","com.azure.ai.projects.EvaluatorsAsyncClient.listEvaluatorVersions":"Azure.AI.Projects.Evaluators.listVersions","com.azure.ai.projects.EvaluatorsAsyncClient.listLatestEvaluatorVersions":"Azure.AI.Projects.Evaluators.listLatestVersions","com.azure.ai.projects.EvaluatorsAsyncClient.updateEvaluatorVersion":"Azure.AI.Projects.Evaluators.updateVersion","com.azure.ai.projects.EvaluatorsAsyncClient.updateEvaluatorVersionWithResponse":"Azure.AI.Projects.Evaluators.updateVersion","com.azure.ai.projects.EvaluatorsClient":"Azure.AI.Projects.Evaluators","com.azure.ai.projects.EvaluatorsClient.beginCreateEvaluatorGenerationJob":"Azure.AI.Projects.EvaluatorGenerationJobs.create","com.azure.ai.projects.EvaluatorsClient.beginCreateEvaluatorGenerationJobWithModel":"Azure.AI.Projects.EvaluatorGenerationJobs.create","com.azure.ai.projects.EvaluatorsClient.cancelEvaluatorGenerationJob":"Azure.AI.Projects.EvaluatorGenerationJobs.cancel","com.azure.ai.projects.EvaluatorsClient.cancelEvaluatorGenerationJobWithResponse":"Azure.AI.Projects.EvaluatorGenerationJobs.cancel","com.azure.ai.projects.EvaluatorsClient.createEvaluatorVersion":"Azure.AI.Projects.Evaluators.createVersion","com.azure.ai.projects.EvaluatorsClient.createEvaluatorVersionWithResponse":"Azure.AI.Projects.Evaluators.createVersion","com.azure.ai.projects.EvaluatorsClient.deleteEvaluatorGenerationJob":"Azure.AI.Projects.EvaluatorGenerationJobs.delete","com.azure.ai.projects.EvaluatorsClient.deleteEvaluatorGenerationJobWithResponse":"Azure.AI.Projects.EvaluatorGenerationJobs.delete","com.azure.ai.projects.EvaluatorsClient.deleteEvaluatorVersion":"Azure.AI.Projects.Evaluators.deleteVersion","com.azure.ai.projects.EvaluatorsClient.deleteEvaluatorVersionWithResponse":"Azure.AI.Projects.Evaluators.deleteVersion","com.azure.ai.projects.EvaluatorsClient.getEvaluatorGenerationJob":"Azure.AI.Projects.EvaluatorGenerationJobs.get","com.azure.ai.projects.EvaluatorsClient.getEvaluatorGenerationJobWithResponse":"Azure.AI.Projects.EvaluatorGenerationJobs.get","com.azure.ai.projects.EvaluatorsClient.getEvaluatorVersion":"Azure.AI.Projects.Evaluators.getVersion","com.azure.ai.projects.EvaluatorsClient.getEvaluatorVersionWithResponse":"Azure.AI.Projects.Evaluators.getVersion","com.azure.ai.projects.EvaluatorsClient.listEvaluatorGenerationJobs":"Azure.AI.Projects.EvaluatorGenerationJobs.list","com.azure.ai.projects.EvaluatorsClient.listEvaluatorVersions":"Azure.AI.Projects.Evaluators.listVersions","com.azure.ai.projects.EvaluatorsClient.listLatestEvaluatorVersions":"Azure.AI.Projects.Evaluators.listLatestVersions","com.azure.ai.projects.EvaluatorsClient.updateEvaluatorVersion":"Azure.AI.Projects.Evaluators.updateVersion","com.azure.ai.projects.EvaluatorsClient.updateEvaluatorVersionWithResponse":"Azure.AI.Projects.Evaluators.updateVersion","com.azure.ai.projects.IndexesAsyncClient":"Azure.AI.Projects.Indexes","com.azure.ai.projects.IndexesAsyncClient.createOrUpdateIndexVersion":"Azure.AI.Projects.Indexes.createOrUpdateVersion","com.azure.ai.projects.IndexesAsyncClient.createOrUpdateIndexVersionWithResponse":"Azure.AI.Projects.Indexes.createOrUpdateVersion","com.azure.ai.projects.IndexesAsyncClient.deleteIndexVersion":"Azure.AI.Projects.Indexes.deleteVersion","com.azure.ai.projects.IndexesAsyncClient.deleteIndexVersionWithResponse":"Azure.AI.Projects.Indexes.deleteVersion","com.azure.ai.projects.IndexesAsyncClient.getIndexVersion":"Azure.AI.Projects.Indexes.getVersion","com.azure.ai.projects.IndexesAsyncClient.getIndexVersionWithResponse":"Azure.AI.Projects.Indexes.getVersion","com.azure.ai.projects.IndexesAsyncClient.listIndexVersions":"Azure.AI.Projects.Indexes.listVersions","com.azure.ai.projects.IndexesAsyncClient.listLatestIndexVersions":"Azure.AI.Projects.Indexes.listLatest","com.azure.ai.projects.IndexesClient":"Azure.AI.Projects.Indexes","com.azure.ai.projects.IndexesClient.createOrUpdateIndexVersion":"Azure.AI.Projects.Indexes.createOrUpdateVersion","com.azure.ai.projects.IndexesClient.createOrUpdateIndexVersionWithResponse":"Azure.AI.Projects.Indexes.createOrUpdateVersion","com.azure.ai.projects.IndexesClient.deleteIndexVersion":"Azure.AI.Projects.Indexes.deleteVersion","com.azure.ai.projects.IndexesClient.deleteIndexVersionWithResponse":"Azure.AI.Projects.Indexes.deleteVersion","com.azure.ai.projects.IndexesClient.getIndexVersion":"Azure.AI.Projects.Indexes.getVersion","com.azure.ai.projects.IndexesClient.getIndexVersionWithResponse":"Azure.AI.Projects.Indexes.getVersion","com.azure.ai.projects.IndexesClient.listIndexVersions":"Azure.AI.Projects.Indexes.listVersions","com.azure.ai.projects.IndexesClient.listLatestIndexVersions":"Azure.AI.Projects.Indexes.listLatest","com.azure.ai.projects.implementation.models.CreateOrUpdateRoutineRequest":"Azure.AI.Projects.createOrUpdateRoutine.Request.anonymous","com.azure.ai.projects.implementation.models.CreateSkillVersionRequest":"Azure.AI.Projects.createSkillVersion.Request.anonymous","com.azure.ai.projects.implementation.models.DispatchRoutineAsyncRequest":"Azure.AI.Projects.dispatchRoutineAsync.Request.anonymous","com.azure.ai.projects.implementation.models.FoundryFeaturesOptInKeys":"Azure.AI.Projects.FoundryFeaturesOptInKeys","com.azure.ai.projects.implementation.models.UpdateSkillRequest":"Azure.AI.Projects.updateSkill.Request.anonymous","com.azure.ai.projects.models.AIProjectIndex":"Azure.AI.Projects.Index","com.azure.ai.projects.models.AgentClusterInsightRequest":"Azure.AI.Projects.AgentClusterInsightRequest","com.azure.ai.projects.models.AgentClusterInsightResult":"Azure.AI.Projects.AgentClusterInsightResult","com.azure.ai.projects.models.AgentDataGenerationJobSource":"Azure.AI.Projects.AgentDataGenerationJobSource","com.azure.ai.projects.models.AgentEvaluatorGenerationJobSource":"Azure.AI.Projects.AgentEvaluatorGenerationJobSource","com.azure.ai.projects.models.AgentInsight":"Azure.AI.Projects.AgentInsight","com.azure.ai.projects.models.AgentInsightDetails":"Azure.AI.Projects.AgentInsightDetails","com.azure.ai.projects.models.AgentInsightEstimatedCost":"Azure.AI.Projects.AgentInsightEstimatedCost","com.azure.ai.projects.models.AgentInsightHighlightedTrace":"Azure.AI.Projects.AgentInsightHighlightedTrace","com.azure.ai.projects.models.AgentInsightLinkedTrace":"Azure.AI.Projects.AgentInsightLinkedTrace","com.azure.ai.projects.models.AgentInsightMonitor":"Azure.AI.Projects.AgentInsightMonitor","com.azure.ai.projects.models.AgentInsightMonitorCreate":"Azure.AI.Projects.AgentInsightMonitorCreate","com.azure.ai.projects.models.AgentInsightMonitorListItem":"Azure.AI.Projects.AgentInsightMonitorListItem","com.azure.ai.projects.models.AgentInsightMonitorUpdate":"Azure.AI.Projects.AgentInsightMonitorUpdate","com.azure.ai.projects.models.AgentInsightOverviewSource":"Azure.AI.Projects.AgentInsightOverviewSource","com.azure.ai.projects.models.AgentInsightPromptSurface":"Azure.AI.Projects.AgentInsightPromptSurface","com.azure.ai.projects.models.AgentInsightProposedFix":"Azure.AI.Projects.AgentInsightProposedFix","com.azure.ai.projects.models.AgentInsightProposedFixChange":"Azure.AI.Projects.AgentInsightProposedFixChange","com.azure.ai.projects.models.AgentInsightProposedFixKind":"Azure.AI.Projects.AgentInsightProposedFixKind","com.azure.ai.projects.models.AgentInsightRecommendedAction":"Azure.AI.Projects.AgentInsightRecommendedAction","com.azure.ai.projects.models.AgentInsightRun":"Azure.AI.Projects.AgentInsightRun","com.azure.ai.projects.models.AgentInsightRunCreate":"Azure.AI.Projects.AgentInsightRunCreate","com.azure.ai.projects.models.AgentInsightRunResult":"Azure.AI.Projects.AgentInsightRunResult","com.azure.ai.projects.models.AgentInsightRunTrigger":"Azure.AI.Projects.AgentInsightRunTrigger","com.azure.ai.projects.models.AgentInsightSeverity":"Azure.AI.Projects.AgentInsightSeverity","com.azure.ai.projects.models.AgentInsightStatus":"Azure.AI.Projects.AgentInsightStatus","com.azure.ai.projects.models.AgentInsightSuspension":"Azure.AI.Projects.AgentInsightSuspension","com.azure.ai.projects.models.AgentInsightTokenUsage":"Azure.AI.Projects.AgentInsightTokenUsage","com.azure.ai.projects.models.AgentInsightUpdate":"Azure.AI.Projects.AgentInsightUpdate","com.azure.ai.projects.models.AgentInsightsOverview":"Azure.AI.Projects.AgentInsightsOverview","com.azure.ai.projects.models.AgentInsightsOverviewOverride":"Azure.AI.Projects.AgentInsightsOverviewOverride","com.azure.ai.projects.models.AgentTaxonomyInput":"Azure.AI.Projects.AgentTaxonomyInput","com.azure.ai.projects.models.AgenticIdentityPreviewCredential":"Azure.AI.Projects.AgenticIdentityPreviewCredentials","com.azure.ai.projects.models.ApiError":"OpenAI.Error","com.azure.ai.projects.models.ApiKeyCredential":"Azure.AI.Projects.ApiKeyCredentials","com.azure.ai.projects.models.ArtifactProfile":"Azure.AI.Projects.ArtifactProfile","com.azure.ai.projects.models.AttackStrategy":"Azure.AI.Projects.AttackStrategy","com.azure.ai.projects.models.AzureAIAgentTarget":"Azure.AI.Projects.AzureAIAgentTarget","com.azure.ai.projects.models.AzureAIModelTarget":"Azure.AI.Projects.AzureAIModelTarget","com.azure.ai.projects.models.AzureAISearchIndex":"Azure.AI.Projects.AzureAISearchIndex","com.azure.ai.projects.models.AzureOpenAIModelConfiguration":"Azure.AI.Projects.AzureOpenAIModelConfiguration","com.azure.ai.projects.models.BaseCredential":"Azure.AI.Projects.BaseCredentials","com.azure.ai.projects.models.BlobReference":"Azure.AI.Projects.BlobReference","com.azure.ai.projects.models.BlobReferenceSasCredential":"Azure.AI.Projects.SasCredential","com.azure.ai.projects.models.ChartCoordinate":"Azure.AI.Projects.ChartCoordinate","com.azure.ai.projects.models.ClusterInsightResult":"Azure.AI.Projects.ClusterInsightResult","com.azure.ai.projects.models.ClusterTokenUsage":"Azure.AI.Projects.ClusterTokenUsage","com.azure.ai.projects.models.CodeBasedEvaluatorDefinition":"Azure.AI.Projects.CodeBasedEvaluatorDefinition","com.azure.ai.projects.models.Connection":"Azure.AI.Projects.Connection","com.azure.ai.projects.models.ConnectionType":"Azure.AI.Projects.ConnectionType","com.azure.ai.projects.models.ContinuousEvaluationRuleAction":"Azure.AI.Projects.ContinuousEvaluationRuleAction","com.azure.ai.projects.models.CosmosDBIndex":"Azure.AI.Projects.CosmosDBIndex","com.azure.ai.projects.models.CreateAsyncResponse":"Azure.AI.Projects.createAsync.Response.anonymous","com.azure.ai.projects.models.CreateSkillVersionFromFilesBody":"Azure.AI.Projects.CreateSkillVersionFromFilesBody","com.azure.ai.projects.models.CredentialType":"Azure.AI.Projects.CredentialType","com.azure.ai.projects.models.CronTrigger":"Azure.AI.Projects.CronTrigger","com.azure.ai.projects.models.CustomCredential":"Azure.AI.Projects.CustomCredential","com.azure.ai.projects.models.CustomRoutineTrigger":"Azure.AI.Projects.CustomRoutineTrigger","com.azure.ai.projects.models.DailyRecurrenceSchedule":"Azure.AI.Projects.DailyRecurrenceSchedule","com.azure.ai.projects.models.DataGenerationJob":"Azure.AI.Projects.DataGenerationJob","com.azure.ai.projects.models.DataGenerationJobConfiguration":"Azure.AI.Projects.DataGenerationJobConfiguration","com.azure.ai.projects.models.DataGenerationJobInputs":"Azure.AI.Projects.DataGenerationJobInputs","com.azure.ai.projects.models.DataGenerationJobOutput":"Azure.AI.Projects.DataGenerationJobOutput","com.azure.ai.projects.models.DataGenerationJobOutputType":"Azure.AI.Projects.DataGenerationJobOutputType","com.azure.ai.projects.models.DataGenerationJobOutputWriteMode":"Azure.AI.Projects.DataGenerationJobOutputWriteMode","com.azure.ai.projects.models.DataGenerationJobResult":"Azure.AI.Projects.DataGenerationJobResult","com.azure.ai.projects.models.DataGenerationJobScenario":"Azure.AI.Projects.DataGenerationJobScenario","com.azure.ai.projects.models.DataGenerationJobSource":"Azure.AI.Projects.DataGenerationJobSource","com.azure.ai.projects.models.DataGenerationJobSourceType":"Azure.AI.Projects.DataGenerationJobSourceType","com.azure.ai.projects.models.DataGenerationJobType":"Azure.AI.Projects.DataGenerationJobType","com.azure.ai.projects.models.DataGenerationModelOptions":"Azure.AI.Projects.DataGenerationModelOptions","com.azure.ai.projects.models.DataGenerationTokenUsage":"Azure.AI.Projects.DataGenerationTokenUsage","com.azure.ai.projects.models.DatasetCredential":"Azure.AI.Projects.AssetCredentialResponse","com.azure.ai.projects.models.DatasetDataGenerationJobOutput":"Azure.AI.Projects.DatasetDataGenerationJobOutput","com.azure.ai.projects.models.DatasetEvaluatorGenerationJobSource":"Azure.AI.Projects.DatasetEvaluatorGenerationJobSource","com.azure.ai.projects.models.DatasetReference":"Azure.AI.Projects.DatasetReference","com.azure.ai.projects.models.DatasetType":"Azure.AI.Projects.DatasetType","com.azure.ai.projects.models.DatasetVersion":"Azure.AI.Projects.DatasetVersion","com.azure.ai.projects.models.Deployment":"Azure.AI.Projects.Deployment","com.azure.ai.projects.models.DeploymentType":"Azure.AI.Projects.DeploymentType","com.azure.ai.projects.models.Dimension":"Azure.AI.Projects.Dimension","com.azure.ai.projects.models.DispatchRoutineResult":"Azure.AI.Projects.DispatchRoutineResponse","com.azure.ai.projects.models.EmbeddingConfiguration":"Azure.AI.Projects.EmbeddingConfiguration","com.azure.ai.projects.models.EndpointBasedEvaluatorDefinition":"Azure.AI.Projects.EndpointBasedEvaluatorDefinition","com.azure.ai.projects.models.EntraIdCredential":"Azure.AI.Projects.EntraIDCredentials","com.azure.ai.projects.models.EvaluationComparisonInsightRequest":"Azure.AI.Projects.EvaluationComparisonInsightRequest","com.azure.ai.projects.models.EvaluationComparisonInsightResult":"Azure.AI.Projects.EvaluationComparisonInsightResult","com.azure.ai.projects.models.EvaluationDataGenerationJob":"Azure.AI.Projects.EvaluationDataGenerationJob","com.azure.ai.projects.models.EvaluationDataGenerationJobInputs":"Azure.AI.Projects.EvaluationDataGenerationJobInputs","com.azure.ai.projects.models.EvaluationDataGenerationJobOutputConfiguration":"Azure.AI.Projects.EvaluationDataGenerationJobOutputConfiguration","com.azure.ai.projects.models.EvaluationLevel":"Azure.AI.Projects.EvaluationLevel","com.azure.ai.projects.models.EvaluationResult":"Azure.AI.Projects.EvalResult","com.azure.ai.projects.models.EvaluationResultSample":"Azure.AI.Projects.EvaluationResultSample","com.azure.ai.projects.models.EvaluationRule":"Azure.AI.Projects.EvaluationRule","com.azure.ai.projects.models.EvaluationRuleAction":"Azure.AI.Projects.EvaluationRuleAction","com.azure.ai.projects.models.EvaluationRuleActionType":"Azure.AI.Projects.EvaluationRuleActionType","com.azure.ai.projects.models.EvaluationRuleEventType":"Azure.AI.Projects.EvaluationRuleEventType","com.azure.ai.projects.models.EvaluationRuleFilter":"Azure.AI.Projects.EvaluationRuleFilter","com.azure.ai.projects.models.EvaluationRunClusterInsightRequest":"Azure.AI.Projects.EvaluationRunClusterInsightRequest","com.azure.ai.projects.models.EvaluationRunClusterInsightResult":"Azure.AI.Projects.EvaluationRunClusterInsightResult","com.azure.ai.projects.models.EvaluationRunResultCompareItem":"Azure.AI.Projects.EvalRunResultCompareItem","com.azure.ai.projects.models.EvaluationRunResultComparison":"Azure.AI.Projects.EvalRunResultComparison","com.azure.ai.projects.models.EvaluationRunResultSummary":"Azure.AI.Projects.EvalRunResultSummary","com.azure.ai.projects.models.EvaluationScheduleTask":"Azure.AI.Projects.EvaluationScheduleTask","com.azure.ai.projects.models.EvaluationTaxonomy":"Azure.AI.Projects.EvaluationTaxonomy","com.azure.ai.projects.models.EvaluationTaxonomyInput":"Azure.AI.Projects.EvaluationTaxonomyInput","com.azure.ai.projects.models.EvaluationTaxonomyInputType":"Azure.AI.Projects.EvaluationTaxonomyInputType","com.azure.ai.projects.models.EvaluatorCategory":"Azure.AI.Projects.EvaluatorCategory","com.azure.ai.projects.models.EvaluatorCredentialInput":"Azure.AI.Projects.EvaluatorCredentialRequest","com.azure.ai.projects.models.EvaluatorDefinition":"Azure.AI.Projects.EvaluatorDefinition","com.azure.ai.projects.models.EvaluatorDefinitionType":"Azure.AI.Projects.EvaluatorDefinitionType","com.azure.ai.projects.models.EvaluatorGenerationArtifacts":"Azure.AI.Projects.EvaluatorGenerationArtifacts","com.azure.ai.projects.models.EvaluatorGenerationInputs":"Azure.AI.Projects.EvaluatorGenerationInputs","com.azure.ai.projects.models.EvaluatorGenerationJob":"Azure.AI.Projects.EvaluatorGenerationJob","com.azure.ai.projects.models.EvaluatorGenerationJobSource":"Azure.AI.Projects.EvaluatorGenerationJobSource","com.azure.ai.projects.models.EvaluatorGenerationJobSourceType":"Azure.AI.Projects.EvaluatorGenerationJobSourceType","com.azure.ai.projects.models.EvaluatorGenerationTokenUsage":"Azure.AI.Projects.EvaluatorGenerationTokenUsage","com.azure.ai.projects.models.EvaluatorMetric":"Azure.AI.Projects.EvaluatorMetric","com.azure.ai.projects.models.EvaluatorMetricDirection":"Azure.AI.Projects.EvaluatorMetricDirection","com.azure.ai.projects.models.EvaluatorMetricType":"Azure.AI.Projects.EvaluatorMetricType","com.azure.ai.projects.models.EvaluatorType":"Azure.AI.Projects.EvaluatorType","com.azure.ai.projects.models.EvaluatorVersion":"Azure.AI.Projects.EvaluatorVersion","com.azure.ai.projects.models.FieldMapping":"Azure.AI.Projects.FieldMapping","com.azure.ai.projects.models.FileDataGenerationJobOutput":"Azure.AI.Projects.FileDataGenerationJobOutput","com.azure.ai.projects.models.FileDataGenerationJobSource":"Azure.AI.Projects.FileDataGenerationJobSource","com.azure.ai.projects.models.FileDatasetVersion":"Azure.AI.Projects.FileDatasetVersion","com.azure.ai.projects.models.FolderDatasetVersion":"Azure.AI.Projects.FolderDatasetVersion","com.azure.ai.projects.models.FoundryModelArtifactProfileCategory":"Azure.AI.Projects.FoundryModelArtifactProfileCategory","com.azure.ai.projects.models.FoundryModelArtifactProfileSignal":"Azure.AI.Projects.FoundryModelArtifactProfileSignal","com.azure.ai.projects.models.FoundryModelSourceType":"Azure.AI.Projects.FoundryModelSourceType","com.azure.ai.projects.models.FoundryModelWarning":"Azure.AI.Projects.FoundryModelWarning","com.azure.ai.projects.models.FoundryModelWarningCode":"Azure.AI.Projects.FoundryModelWarningCode","com.azure.ai.projects.models.FoundryModelWeightType":"Azure.AI.Projects.FoundryModelWeightType","com.azure.ai.projects.models.GenerationWarningType":"Azure.AI.Projects.GenerationWarningType","com.azure.ai.projects.models.GitHubIssueEvent":"Azure.AI.Projects.GitHubIssueEvent","com.azure.ai.projects.models.GitHubIssueRoutineTrigger":"Azure.AI.Projects.GitHubIssueRoutineTrigger","com.azure.ai.projects.models.GraderAzureAIEvaluator":"Azure.AI.Projects.GraderAzureAIEvaluator","com.azure.ai.projects.models.HourlyRecurrenceSchedule":"Azure.AI.Projects.HourlyRecurrenceSchedule","com.azure.ai.projects.models.HumanEvaluationPreviewRuleAction":"Azure.AI.Projects.HumanEvaluationPreviewRuleAction","com.azure.ai.projects.models.IndexType":"Azure.AI.Projects.IndexType","com.azure.ai.projects.models.Insight":"Azure.AI.Projects.Insight","com.azure.ai.projects.models.InsightCluster":"Azure.AI.Projects.InsightCluster","com.azure.ai.projects.models.InsightModelConfiguration":"Azure.AI.Projects.InsightModelConfiguration","com.azure.ai.projects.models.InsightRequest":"Azure.AI.Projects.InsightRequest","com.azure.ai.projects.models.InsightResult":"Azure.AI.Projects.InsightResult","com.azure.ai.projects.models.InsightSample":"Azure.AI.Projects.InsightSample","com.azure.ai.projects.models.InsightScheduleTask":"Azure.AI.Projects.InsightScheduleTask","com.azure.ai.projects.models.InsightSummary":"Azure.AI.Projects.InsightSummary","com.azure.ai.projects.models.InsightType":"Azure.AI.Projects.InsightType","com.azure.ai.projects.models.InsightsMetadata":"Azure.AI.Projects.InsightsMetadata","com.azure.ai.projects.models.InvokeAgentInvocationsApiDispatchPayload":"Azure.AI.Projects.InvokeAgentInvocationsApiDispatchPayload","com.azure.ai.projects.models.InvokeAgentInvocationsApiRoutineAction":"Azure.AI.Projects.InvokeAgentInvocationsApiRoutineAction","com.azure.ai.projects.models.InvokeAgentResponsesApiDispatchPayload":"Azure.AI.Projects.InvokeAgentResponsesApiDispatchPayload","com.azure.ai.projects.models.InvokeAgentResponsesApiRoutineAction":"Azure.AI.Projects.InvokeAgentResponsesApiRoutineAction","com.azure.ai.projects.models.JobStatus":"Azure.AI.Projects.JobStatus","com.azure.ai.projects.models.ListVersionsRequestType":"Azure.AI.Projects.listVersions.RequestType.anonymous","com.azure.ai.projects.models.LoraConfig":"Azure.AI.Projects.LoraConfig","com.azure.ai.projects.models.ManagedAzureAISearchIndex":"Azure.AI.Projects.ManagedAzureAISearchIndex","com.azure.ai.projects.models.ModelCredentialInput":"Azure.AI.Projects.ModelCredentialRequest","com.azure.ai.projects.models.ModelDeployment":"Azure.AI.Projects.ModelDeployment","com.azure.ai.projects.models.ModelDeploymentSku":"Azure.AI.Projects.Sku","com.azure.ai.projects.models.ModelPendingUploadInput":"Azure.AI.Projects.ModelPendingUploadRequest","com.azure.ai.projects.models.ModelPendingUploadResult":"Azure.AI.Projects.ModelPendingUploadResponse","com.azure.ai.projects.models.ModelSamplingParams":"Azure.AI.Projects.ModelSamplingParams","com.azure.ai.projects.models.ModelSourceData":"Azure.AI.Projects.ModelSourceData","com.azure.ai.projects.models.ModelVersion":"Azure.AI.Projects.ModelVersion","com.azure.ai.projects.models.MonthlyRecurrenceSchedule":"Azure.AI.Projects.MonthlyRecurrenceSchedule","com.azure.ai.projects.models.NoAuthenticationCredential":"Azure.AI.Projects.NoAuthenticationCredentials","com.azure.ai.projects.models.OneTimeTrigger":"Azure.AI.Projects.OneTimeTrigger","com.azure.ai.projects.models.OperationStatus":"Azure.Core.Foundations.OperationState","com.azure.ai.projects.models.PendingUploadRequest":"Azure.AI.Projects.PendingUploadRequest","com.azure.ai.projects.models.PendingUploadResponse":"Azure.AI.Projects.PendingUploadResponse","com.azure.ai.projects.models.PendingUploadType":"Azure.AI.Projects.PendingUploadType","com.azure.ai.projects.models.PromptBasedEvaluatorDefinition":"Azure.AI.Projects.PromptBasedEvaluatorDefinition","com.azure.ai.projects.models.PromptDataGenerationJobSource":"Azure.AI.Projects.PromptDataGenerationJobSource","com.azure.ai.projects.models.PromptEvaluatorGenerationJobSource":"Azure.AI.Projects.PromptEvaluatorGenerationJobSource","com.azure.ai.projects.models.RecurrenceSchedule":"Azure.AI.Projects.RecurrenceSchedule","com.azure.ai.projects.models.RecurrenceTrigger":"Azure.AI.Projects.RecurrenceTrigger","com.azure.ai.projects.models.RecurrenceType":"Azure.AI.Projects.RecurrenceType","com.azure.ai.projects.models.RedTeam":"Azure.AI.Projects.RedTeam","com.azure.ai.projects.models.ReinforcementFineTuningDataGenerationJob":"Azure.AI.Projects.ReinforcementFineTuningDataGenerationJob","com.azure.ai.projects.models.ReinforcementFineTuningDataGenerationJobInputs":"Azure.AI.Projects.ReinforcementFineTuningDataGenerationJobInputs","com.azure.ai.projects.models.ReinforcementFineTuningDataGenerationJobOutputConfiguration":"Azure.AI.Projects.ReinforcementFineTuningDataGenerationJobOutputConfiguration","com.azure.ai.projects.models.RiskCategory":"Azure.AI.Projects.RiskCategory","com.azure.ai.projects.models.Routine":"Azure.AI.Projects.Routine","com.azure.ai.projects.models.RoutineAction":"Azure.AI.Projects.RoutineAction","com.azure.ai.projects.models.RoutineActionType":"Azure.AI.Projects.RoutineActionType","com.azure.ai.projects.models.RoutineAttemptSource":"Azure.AI.Projects.RoutineAttemptSource","com.azure.ai.projects.models.RoutineAuthorization":"Azure.AI.Projects.RoutineAuthorization","com.azure.ai.projects.models.RoutineDispatchIdentity":"Azure.AI.Projects.RoutineDispatchIdentity","com.azure.ai.projects.models.RoutineDispatchPayload":"Azure.AI.Projects.RoutineDispatchPayload","com.azure.ai.projects.models.RoutineDispatchPayloadType":"Azure.AI.Projects.RoutineDispatchPayloadType","com.azure.ai.projects.models.RoutineRun":"Azure.AI.Projects.RoutineRun","com.azure.ai.projects.models.RoutineRunPhase":"Azure.AI.Projects.RoutineRunPhase","com.azure.ai.projects.models.RoutineTrigger":"Azure.AI.Projects.RoutineTrigger","com.azure.ai.projects.models.RoutineTriggerType":"Azure.AI.Projects.RoutineTriggerType","com.azure.ai.projects.models.RubricBasedEvaluatorDefinition":"Azure.AI.Projects.RubricBasedEvaluatorDefinition","com.azure.ai.projects.models.RubricGenerationInputQualityWarning":"Azure.AI.Projects.RubricGenerationInputQualityWarning","com.azure.ai.projects.models.RubricGenerationInputQualityWarningCode":"Azure.AI.Projects.RubricGenerationInputQualityWarningCode","com.azure.ai.projects.models.RubricGenerationInputQualityWarningSeverity":"Azure.AI.Projects.RubricGenerationInputQualityWarningSeverity","com.azure.ai.projects.models.RubricGenerationInputQualityWarningSource":"Azure.AI.Projects.RubricGenerationInputQualityWarningSource","com.azure.ai.projects.models.SampleType":"Azure.AI.Projects.SampleType","com.azure.ai.projects.models.SasCredential":"Azure.AI.Projects.SASCredentials","com.azure.ai.projects.models.Schedule":"Azure.AI.Projects.Schedule","com.azure.ai.projects.models.ScheduleProvisioningStatus":"Azure.AI.Projects.ScheduleProvisioningStatus","com.azure.ai.projects.models.ScheduleRoutineTrigger":"Azure.AI.Projects.ScheduleRoutineTrigger","com.azure.ai.projects.models.ScheduleRun":"Azure.AI.Projects.ScheduleRun","com.azure.ai.projects.models.ScheduleTask":"Azure.AI.Projects.ScheduleTask","com.azure.ai.projects.models.ScheduleTaskType":"Azure.AI.Projects.ScheduleTaskType","com.azure.ai.projects.models.SimpleQnADataGenerationJobConfiguration":"Azure.AI.Projects.SimpleQnADataGenerationJobConfiguration","com.azure.ai.projects.models.SimpleQnAFineTuningQuestionType":"Azure.AI.Projects.SimpleQnAFineTuningQuestionType","com.azure.ai.projects.models.SimulationSeedDataGenerationJobConfiguration":"Azure.AI.Projects.SimulationSeedDataGenerationJobConfiguration","com.azure.ai.projects.models.SkillDetails":"Azure.AI.Projects.Skill","com.azure.ai.projects.models.SkillFileDetails":"TypeSpec.Http.File","com.azure.ai.projects.models.SkillInlineContent":"Azure.AI.Projects.SkillInlineContent","com.azure.ai.projects.models.SkillVersion":"Azure.AI.Projects.SkillVersion","com.azure.ai.projects.models.SupervisedFineTuningDataGenerationJob":"Azure.AI.Projects.SupervisedFineTuningDataGenerationJob","com.azure.ai.projects.models.SupervisedFineTuningDataGenerationJobInputs":"Azure.AI.Projects.SupervisedFineTuningDataGenerationJobInputs","com.azure.ai.projects.models.SupervisedFineTuningDataGenerationJobOutputConfiguration":"Azure.AI.Projects.SupervisedFineTuningDataGenerationJobOutputConfiguration","com.azure.ai.projects.models.Target":"Azure.AI.Projects.FoundryEvaluationTarget","com.azure.ai.projects.models.TargetConfig":"Azure.AI.Projects.RedTeamTargetConfig","com.azure.ai.projects.models.TaxonomyCategory":"Azure.AI.Projects.TaxonomyCategory","com.azure.ai.projects.models.TaxonomySubCategory":"Azure.AI.Projects.TaxonomySubCategory","com.azure.ai.projects.models.TestingCriterionAzureAIEvaluator":"Azure.AI.Projects.TestingCriterionAzureAIEvaluator","com.azure.ai.projects.models.TimerRoutineTrigger":"Azure.AI.Projects.TimerRoutineTrigger","com.azure.ai.projects.models.ToolDescription":"Azure.AI.Projects.ToolDescription","com.azure.ai.projects.models.ToolUseFineTuningDataGenerationJobConfiguration":"Azure.AI.Projects.ToolUseFineTuningDataGenerationJobConfiguration","com.azure.ai.projects.models.TracesDataGenerationJobConfiguration":"Azure.AI.Projects.TracesDataGenerationJobConfiguration","com.azure.ai.projects.models.TracesDataGenerationJobSource":"Azure.AI.Projects.TracesDataGenerationJobSource","com.azure.ai.projects.models.TracesEvaluatorGenerationJobSource":"Azure.AI.Projects.TracesEvaluatorGenerationJobSource","com.azure.ai.projects.models.TreatmentEffectType":"Azure.AI.Projects.TreatmentEffectType","com.azure.ai.projects.models.Trigger":"Azure.AI.Projects.Trigger","com.azure.ai.projects.models.TriggerType":"Azure.AI.Projects.TriggerType","com.azure.ai.projects.models.UpdateModelVersionInput":"Azure.AI.Projects.UpdateModelVersionRequest","com.azure.ai.projects.models.WeeklyRecurrenceSchedule":"Azure.AI.Projects.WeeklyRecurrenceSchedule"},"generatedFiles":["src/main/java/com/azure/ai/projects/AIProjectClientBuilder.java","src/main/java/com/azure/ai/projects/AIProjectsServiceVersion.java","src/main/java/com/azure/ai/projects/BetaAgentInsightMonitorsAsyncClient.java","src/main/java/com/azure/ai/projects/BetaAgentInsightMonitorsClient.java","src/main/java/com/azure/ai/projects/BetaEvaluationTaxonomiesAsyncClient.java","src/main/java/com/azure/ai/projects/BetaEvaluationTaxonomiesClient.java","src/main/java/com/azure/ai/projects/BetaEvaluatorsAsyncClient.java","src/main/java/com/azure/ai/projects/BetaEvaluatorsClient.java","src/main/java/com/azure/ai/projects/BetaInsightsAsyncClient.java","src/main/java/com/azure/ai/projects/BetaInsightsClient.java","src/main/java/com/azure/ai/projects/BetaModelsAsyncClient.java","src/main/java/com/azure/ai/projects/BetaModelsClient.java","src/main/java/com/azure/ai/projects/BetaRedTeamsAsyncClient.java","src/main/java/com/azure/ai/projects/BetaRedTeamsClient.java","src/main/java/com/azure/ai/projects/BetaRoutinesAsyncClient.java","src/main/java/com/azure/ai/projects/BetaRoutinesClient.java","src/main/java/com/azure/ai/projects/BetaSchedulesAsyncClient.java","src/main/java/com/azure/ai/projects/BetaSchedulesClient.java","src/main/java/com/azure/ai/projects/BetaSkillsAsyncClient.java","src/main/java/com/azure/ai/projects/BetaSkillsClient.java","src/main/java/com/azure/ai/projects/ConnectionsAsyncClient.java","src/main/java/com/azure/ai/projects/ConnectionsClient.java","src/main/java/com/azure/ai/projects/DatasetsAsyncClient.java","src/main/java/com/azure/ai/projects/DatasetsClient.java","src/main/java/com/azure/ai/projects/DeploymentsAsyncClient.java","src/main/java/com/azure/ai/projects/DeploymentsClient.java","src/main/java/com/azure/ai/projects/EvaluationRulesAsyncClient.java","src/main/java/com/azure/ai/projects/EvaluationRulesClient.java","src/main/java/com/azure/ai/projects/EvaluatorsAsyncClient.java","src/main/java/com/azure/ai/projects/EvaluatorsClient.java","src/main/java/com/azure/ai/projects/IndexesAsyncClient.java","src/main/java/com/azure/ai/projects/IndexesClient.java","src/main/java/com/azure/ai/projects/implementation/AIProjectClientImpl.java","src/main/java/com/azure/ai/projects/implementation/BetaAgentInsightMonitorsImpl.java","src/main/java/com/azure/ai/projects/implementation/BetaEvaluationTaxonomiesImpl.java","src/main/java/com/azure/ai/projects/implementation/BetaEvaluatorsImpl.java","src/main/java/com/azure/ai/projects/implementation/BetaInsightsImpl.java","src/main/java/com/azure/ai/projects/implementation/BetaModelsImpl.java","src/main/java/com/azure/ai/projects/implementation/BetaRedTeamsImpl.java","src/main/java/com/azure/ai/projects/implementation/BetaRoutinesImpl.java","src/main/java/com/azure/ai/projects/implementation/BetaSchedulesImpl.java","src/main/java/com/azure/ai/projects/implementation/BetaSkillsImpl.java","src/main/java/com/azure/ai/projects/implementation/ConnectionsImpl.java","src/main/java/com/azure/ai/projects/implementation/DatasetsImpl.java","src/main/java/com/azure/ai/projects/implementation/DeploymentsImpl.java","src/main/java/com/azure/ai/projects/implementation/EvaluationRulesImpl.java","src/main/java/com/azure/ai/projects/implementation/EvaluatorsImpl.java","src/main/java/com/azure/ai/projects/implementation/IndexesImpl.java","src/main/java/com/azure/ai/projects/implementation/JsonMergePatchHelper.java","src/main/java/com/azure/ai/projects/implementation/MultipartFormDataHelper.java","src/main/java/com/azure/ai/projects/implementation/OperationLocationPollingStrategy.java","src/main/java/com/azure/ai/projects/implementation/PollingUtils.java","src/main/java/com/azure/ai/projects/implementation/SyncOperationLocationPollingStrategy.java","src/main/java/com/azure/ai/projects/implementation/models/CreateOrUpdateRoutineRequest.java","src/main/java/com/azure/ai/projects/implementation/models/CreateSkillVersionRequest.java","src/main/java/com/azure/ai/projects/implementation/models/DispatchRoutineAsyncRequest.java","src/main/java/com/azure/ai/projects/implementation/models/FoundryFeaturesOptInKeys.java","src/main/java/com/azure/ai/projects/implementation/models/UpdateSkillRequest.java","src/main/java/com/azure/ai/projects/implementation/models/package-info.java","src/main/java/com/azure/ai/projects/implementation/package-info.java","src/main/java/com/azure/ai/projects/models/AIProjectIndex.java","src/main/java/com/azure/ai/projects/models/AgentClusterInsightRequest.java","src/main/java/com/azure/ai/projects/models/AgentClusterInsightResult.java","src/main/java/com/azure/ai/projects/models/AgentDataGenerationJobSource.java","src/main/java/com/azure/ai/projects/models/AgentEvaluatorGenerationJobSource.java","src/main/java/com/azure/ai/projects/models/AgentInsight.java","src/main/java/com/azure/ai/projects/models/AgentInsightDetails.java","src/main/java/com/azure/ai/projects/models/AgentInsightEstimatedCost.java","src/main/java/com/azure/ai/projects/models/AgentInsightHighlightedTrace.java","src/main/java/com/azure/ai/projects/models/AgentInsightLinkedTrace.java","src/main/java/com/azure/ai/projects/models/AgentInsightMonitor.java","src/main/java/com/azure/ai/projects/models/AgentInsightMonitorCreate.java","src/main/java/com/azure/ai/projects/models/AgentInsightMonitorListItem.java","src/main/java/com/azure/ai/projects/models/AgentInsightMonitorUpdate.java","src/main/java/com/azure/ai/projects/models/AgentInsightOverviewSource.java","src/main/java/com/azure/ai/projects/models/AgentInsightPromptSurface.java","src/main/java/com/azure/ai/projects/models/AgentInsightProposedFix.java","src/main/java/com/azure/ai/projects/models/AgentInsightProposedFixChange.java","src/main/java/com/azure/ai/projects/models/AgentInsightProposedFixKind.java","src/main/java/com/azure/ai/projects/models/AgentInsightRecommendedAction.java","src/main/java/com/azure/ai/projects/models/AgentInsightRun.java","src/main/java/com/azure/ai/projects/models/AgentInsightRunCreate.java","src/main/java/com/azure/ai/projects/models/AgentInsightRunResult.java","src/main/java/com/azure/ai/projects/models/AgentInsightRunTrigger.java","src/main/java/com/azure/ai/projects/models/AgentInsightSeverity.java","src/main/java/com/azure/ai/projects/models/AgentInsightStatus.java","src/main/java/com/azure/ai/projects/models/AgentInsightSuspension.java","src/main/java/com/azure/ai/projects/models/AgentInsightTokenUsage.java","src/main/java/com/azure/ai/projects/models/AgentInsightUpdate.java","src/main/java/com/azure/ai/projects/models/AgentInsightsOverview.java","src/main/java/com/azure/ai/projects/models/AgentInsightsOverviewOverride.java","src/main/java/com/azure/ai/projects/models/AgentTaxonomyInput.java","src/main/java/com/azure/ai/projects/models/AgenticIdentityPreviewCredential.java","src/main/java/com/azure/ai/projects/models/ApiError.java","src/main/java/com/azure/ai/projects/models/ApiKeyCredential.java","src/main/java/com/azure/ai/projects/models/ArtifactProfile.java","src/main/java/com/azure/ai/projects/models/AttackStrategy.java","src/main/java/com/azure/ai/projects/models/AzureAIAgentTarget.java","src/main/java/com/azure/ai/projects/models/AzureAIModelTarget.java","src/main/java/com/azure/ai/projects/models/AzureAISearchIndex.java","src/main/java/com/azure/ai/projects/models/AzureOpenAIModelConfiguration.java","src/main/java/com/azure/ai/projects/models/BaseCredential.java","src/main/java/com/azure/ai/projects/models/BlobReference.java","src/main/java/com/azure/ai/projects/models/BlobReferenceSasCredential.java","src/main/java/com/azure/ai/projects/models/ChartCoordinate.java","src/main/java/com/azure/ai/projects/models/ClusterInsightResult.java","src/main/java/com/azure/ai/projects/models/ClusterTokenUsage.java","src/main/java/com/azure/ai/projects/models/CodeBasedEvaluatorDefinition.java","src/main/java/com/azure/ai/projects/models/Connection.java","src/main/java/com/azure/ai/projects/models/ConnectionType.java","src/main/java/com/azure/ai/projects/models/ContinuousEvaluationRuleAction.java","src/main/java/com/azure/ai/projects/models/CosmosDBIndex.java","src/main/java/com/azure/ai/projects/models/CreateAsyncResponse.java","src/main/java/com/azure/ai/projects/models/CreateSkillVersionFromFilesBody.java","src/main/java/com/azure/ai/projects/models/CredentialType.java","src/main/java/com/azure/ai/projects/models/CronTrigger.java","src/main/java/com/azure/ai/projects/models/CustomCredential.java","src/main/java/com/azure/ai/projects/models/CustomRoutineTrigger.java","src/main/java/com/azure/ai/projects/models/DailyRecurrenceSchedule.java","src/main/java/com/azure/ai/projects/models/DataGenerationJob.java","src/main/java/com/azure/ai/projects/models/DataGenerationJobConfiguration.java","src/main/java/com/azure/ai/projects/models/DataGenerationJobInputs.java","src/main/java/com/azure/ai/projects/models/DataGenerationJobOutput.java","src/main/java/com/azure/ai/projects/models/DataGenerationJobOutputType.java","src/main/java/com/azure/ai/projects/models/DataGenerationJobOutputWriteMode.java","src/main/java/com/azure/ai/projects/models/DataGenerationJobResult.java","src/main/java/com/azure/ai/projects/models/DataGenerationJobScenario.java","src/main/java/com/azure/ai/projects/models/DataGenerationJobSource.java","src/main/java/com/azure/ai/projects/models/DataGenerationJobSourceType.java","src/main/java/com/azure/ai/projects/models/DataGenerationJobType.java","src/main/java/com/azure/ai/projects/models/DataGenerationModelOptions.java","src/main/java/com/azure/ai/projects/models/DataGenerationTokenUsage.java","src/main/java/com/azure/ai/projects/models/DatasetCredential.java","src/main/java/com/azure/ai/projects/models/DatasetDataGenerationJobOutput.java","src/main/java/com/azure/ai/projects/models/DatasetEvaluatorGenerationJobSource.java","src/main/java/com/azure/ai/projects/models/DatasetReference.java","src/main/java/com/azure/ai/projects/models/DatasetType.java","src/main/java/com/azure/ai/projects/models/DatasetVersion.java","src/main/java/com/azure/ai/projects/models/Deployment.java","src/main/java/com/azure/ai/projects/models/DeploymentType.java","src/main/java/com/azure/ai/projects/models/Dimension.java","src/main/java/com/azure/ai/projects/models/DispatchRoutineResult.java","src/main/java/com/azure/ai/projects/models/EmbeddingConfiguration.java","src/main/java/com/azure/ai/projects/models/EndpointBasedEvaluatorDefinition.java","src/main/java/com/azure/ai/projects/models/EntraIdCredential.java","src/main/java/com/azure/ai/projects/models/EvaluationComparisonInsightRequest.java","src/main/java/com/azure/ai/projects/models/EvaluationComparisonInsightResult.java","src/main/java/com/azure/ai/projects/models/EvaluationDataGenerationJob.java","src/main/java/com/azure/ai/projects/models/EvaluationDataGenerationJobInputs.java","src/main/java/com/azure/ai/projects/models/EvaluationDataGenerationJobOutputConfiguration.java","src/main/java/com/azure/ai/projects/models/EvaluationLevel.java","src/main/java/com/azure/ai/projects/models/EvaluationResult.java","src/main/java/com/azure/ai/projects/models/EvaluationResultSample.java","src/main/java/com/azure/ai/projects/models/EvaluationRule.java","src/main/java/com/azure/ai/projects/models/EvaluationRuleAction.java","src/main/java/com/azure/ai/projects/models/EvaluationRuleActionType.java","src/main/java/com/azure/ai/projects/models/EvaluationRuleEventType.java","src/main/java/com/azure/ai/projects/models/EvaluationRuleFilter.java","src/main/java/com/azure/ai/projects/models/EvaluationRunClusterInsightRequest.java","src/main/java/com/azure/ai/projects/models/EvaluationRunClusterInsightResult.java","src/main/java/com/azure/ai/projects/models/EvaluationRunResultCompareItem.java","src/main/java/com/azure/ai/projects/models/EvaluationRunResultComparison.java","src/main/java/com/azure/ai/projects/models/EvaluationRunResultSummary.java","src/main/java/com/azure/ai/projects/models/EvaluationScheduleTask.java","src/main/java/com/azure/ai/projects/models/EvaluationTaxonomy.java","src/main/java/com/azure/ai/projects/models/EvaluationTaxonomyInput.java","src/main/java/com/azure/ai/projects/models/EvaluationTaxonomyInputType.java","src/main/java/com/azure/ai/projects/models/EvaluatorCategory.java","src/main/java/com/azure/ai/projects/models/EvaluatorCredentialInput.java","src/main/java/com/azure/ai/projects/models/EvaluatorDefinition.java","src/main/java/com/azure/ai/projects/models/EvaluatorDefinitionType.java","src/main/java/com/azure/ai/projects/models/EvaluatorGenerationArtifacts.java","src/main/java/com/azure/ai/projects/models/EvaluatorGenerationInputs.java","src/main/java/com/azure/ai/projects/models/EvaluatorGenerationJob.java","src/main/java/com/azure/ai/projects/models/EvaluatorGenerationJobSource.java","src/main/java/com/azure/ai/projects/models/EvaluatorGenerationJobSourceType.java","src/main/java/com/azure/ai/projects/models/EvaluatorGenerationTokenUsage.java","src/main/java/com/azure/ai/projects/models/EvaluatorMetric.java","src/main/java/com/azure/ai/projects/models/EvaluatorMetricDirection.java","src/main/java/com/azure/ai/projects/models/EvaluatorMetricType.java","src/main/java/com/azure/ai/projects/models/EvaluatorType.java","src/main/java/com/azure/ai/projects/models/EvaluatorVersion.java","src/main/java/com/azure/ai/projects/models/FieldMapping.java","src/main/java/com/azure/ai/projects/models/FileDataGenerationJobOutput.java","src/main/java/com/azure/ai/projects/models/FileDataGenerationJobSource.java","src/main/java/com/azure/ai/projects/models/FileDatasetVersion.java","src/main/java/com/azure/ai/projects/models/FolderDatasetVersion.java","src/main/java/com/azure/ai/projects/models/FoundryModelArtifactProfileCategory.java","src/main/java/com/azure/ai/projects/models/FoundryModelArtifactProfileSignal.java","src/main/java/com/azure/ai/projects/models/FoundryModelSourceType.java","src/main/java/com/azure/ai/projects/models/FoundryModelWarning.java","src/main/java/com/azure/ai/projects/models/FoundryModelWarningCode.java","src/main/java/com/azure/ai/projects/models/FoundryModelWeightType.java","src/main/java/com/azure/ai/projects/models/GenerationWarningType.java","src/main/java/com/azure/ai/projects/models/GitHubIssueEvent.java","src/main/java/com/azure/ai/projects/models/GitHubIssueRoutineTrigger.java","src/main/java/com/azure/ai/projects/models/GraderAzureAIEvaluator.java","src/main/java/com/azure/ai/projects/models/HourlyRecurrenceSchedule.java","src/main/java/com/azure/ai/projects/models/HumanEvaluationPreviewRuleAction.java","src/main/java/com/azure/ai/projects/models/IndexType.java","src/main/java/com/azure/ai/projects/models/Insight.java","src/main/java/com/azure/ai/projects/models/InsightCluster.java","src/main/java/com/azure/ai/projects/models/InsightModelConfiguration.java","src/main/java/com/azure/ai/projects/models/InsightRequest.java","src/main/java/com/azure/ai/projects/models/InsightResult.java","src/main/java/com/azure/ai/projects/models/InsightSample.java","src/main/java/com/azure/ai/projects/models/InsightScheduleTask.java","src/main/java/com/azure/ai/projects/models/InsightSummary.java","src/main/java/com/azure/ai/projects/models/InsightType.java","src/main/java/com/azure/ai/projects/models/InsightsMetadata.java","src/main/java/com/azure/ai/projects/models/InvokeAgentInvocationsApiDispatchPayload.java","src/main/java/com/azure/ai/projects/models/InvokeAgentInvocationsApiRoutineAction.java","src/main/java/com/azure/ai/projects/models/InvokeAgentResponsesApiDispatchPayload.java","src/main/java/com/azure/ai/projects/models/InvokeAgentResponsesApiRoutineAction.java","src/main/java/com/azure/ai/projects/models/JobStatus.java","src/main/java/com/azure/ai/projects/models/ListVersionsRequestType.java","src/main/java/com/azure/ai/projects/models/LoraConfig.java","src/main/java/com/azure/ai/projects/models/ManagedAzureAISearchIndex.java","src/main/java/com/azure/ai/projects/models/ModelCredentialInput.java","src/main/java/com/azure/ai/projects/models/ModelDeployment.java","src/main/java/com/azure/ai/projects/models/ModelDeploymentSku.java","src/main/java/com/azure/ai/projects/models/ModelPendingUploadInput.java","src/main/java/com/azure/ai/projects/models/ModelPendingUploadResult.java","src/main/java/com/azure/ai/projects/models/ModelSamplingParams.java","src/main/java/com/azure/ai/projects/models/ModelSourceData.java","src/main/java/com/azure/ai/projects/models/ModelVersion.java","src/main/java/com/azure/ai/projects/models/MonthlyRecurrenceSchedule.java","src/main/java/com/azure/ai/projects/models/NoAuthenticationCredential.java","src/main/java/com/azure/ai/projects/models/OneTimeTrigger.java","src/main/java/com/azure/ai/projects/models/OperationStatus.java","src/main/java/com/azure/ai/projects/models/PendingUploadRequest.java","src/main/java/com/azure/ai/projects/models/PendingUploadResponse.java","src/main/java/com/azure/ai/projects/models/PendingUploadType.java","src/main/java/com/azure/ai/projects/models/PromptBasedEvaluatorDefinition.java","src/main/java/com/azure/ai/projects/models/PromptDataGenerationJobSource.java","src/main/java/com/azure/ai/projects/models/PromptEvaluatorGenerationJobSource.java","src/main/java/com/azure/ai/projects/models/RecurrenceSchedule.java","src/main/java/com/azure/ai/projects/models/RecurrenceTrigger.java","src/main/java/com/azure/ai/projects/models/RecurrenceType.java","src/main/java/com/azure/ai/projects/models/RedTeam.java","src/main/java/com/azure/ai/projects/models/ReinforcementFineTuningDataGenerationJob.java","src/main/java/com/azure/ai/projects/models/ReinforcementFineTuningDataGenerationJobInputs.java","src/main/java/com/azure/ai/projects/models/ReinforcementFineTuningDataGenerationJobOutputConfiguration.java","src/main/java/com/azure/ai/projects/models/RiskCategory.java","src/main/java/com/azure/ai/projects/models/Routine.java","src/main/java/com/azure/ai/projects/models/RoutineAction.java","src/main/java/com/azure/ai/projects/models/RoutineActionType.java","src/main/java/com/azure/ai/projects/models/RoutineAttemptSource.java","src/main/java/com/azure/ai/projects/models/RoutineAuthorization.java","src/main/java/com/azure/ai/projects/models/RoutineDispatchIdentity.java","src/main/java/com/azure/ai/projects/models/RoutineDispatchPayload.java","src/main/java/com/azure/ai/projects/models/RoutineDispatchPayloadType.java","src/main/java/com/azure/ai/projects/models/RoutineRun.java","src/main/java/com/azure/ai/projects/models/RoutineRunPhase.java","src/main/java/com/azure/ai/projects/models/RoutineTrigger.java","src/main/java/com/azure/ai/projects/models/RoutineTriggerType.java","src/main/java/com/azure/ai/projects/models/RubricBasedEvaluatorDefinition.java","src/main/java/com/azure/ai/projects/models/RubricGenerationInputQualityWarning.java","src/main/java/com/azure/ai/projects/models/RubricGenerationInputQualityWarningCode.java","src/main/java/com/azure/ai/projects/models/RubricGenerationInputQualityWarningSeverity.java","src/main/java/com/azure/ai/projects/models/RubricGenerationInputQualityWarningSource.java","src/main/java/com/azure/ai/projects/models/SampleType.java","src/main/java/com/azure/ai/projects/models/SasCredential.java","src/main/java/com/azure/ai/projects/models/Schedule.java","src/main/java/com/azure/ai/projects/models/ScheduleProvisioningStatus.java","src/main/java/com/azure/ai/projects/models/ScheduleRoutineTrigger.java","src/main/java/com/azure/ai/projects/models/ScheduleRun.java","src/main/java/com/azure/ai/projects/models/ScheduleTask.java","src/main/java/com/azure/ai/projects/models/ScheduleTaskType.java","src/main/java/com/azure/ai/projects/models/SimpleQnADataGenerationJobConfiguration.java","src/main/java/com/azure/ai/projects/models/SimpleQnAFineTuningQuestionType.java","src/main/java/com/azure/ai/projects/models/SimulationSeedDataGenerationJobConfiguration.java","src/main/java/com/azure/ai/projects/models/SkillDetails.java","src/main/java/com/azure/ai/projects/models/SkillFileDetails.java","src/main/java/com/azure/ai/projects/models/SkillInlineContent.java","src/main/java/com/azure/ai/projects/models/SkillVersion.java","src/main/java/com/azure/ai/projects/models/SupervisedFineTuningDataGenerationJob.java","src/main/java/com/azure/ai/projects/models/SupervisedFineTuningDataGenerationJobInputs.java","src/main/java/com/azure/ai/projects/models/SupervisedFineTuningDataGenerationJobOutputConfiguration.java","src/main/java/com/azure/ai/projects/models/Target.java","src/main/java/com/azure/ai/projects/models/TargetConfig.java","src/main/java/com/azure/ai/projects/models/TaxonomyCategory.java","src/main/java/com/azure/ai/projects/models/TaxonomySubCategory.java","src/main/java/com/azure/ai/projects/models/TestingCriterionAzureAIEvaluator.java","src/main/java/com/azure/ai/projects/models/TimerRoutineTrigger.java","src/main/java/com/azure/ai/projects/models/ToolDescription.java","src/main/java/com/azure/ai/projects/models/ToolUseFineTuningDataGenerationJobConfiguration.java","src/main/java/com/azure/ai/projects/models/TracesDataGenerationJobConfiguration.java","src/main/java/com/azure/ai/projects/models/TracesDataGenerationJobSource.java","src/main/java/com/azure/ai/projects/models/TracesEvaluatorGenerationJobSource.java","src/main/java/com/azure/ai/projects/models/TreatmentEffectType.java","src/main/java/com/azure/ai/projects/models/Trigger.java","src/main/java/com/azure/ai/projects/models/TriggerType.java","src/main/java/com/azure/ai/projects/models/UpdateModelVersionInput.java","src/main/java/com/azure/ai/projects/models/WeeklyRecurrenceSchedule.java","src/main/java/com/azure/ai/projects/models/package-info.java","src/main/java/com/azure/ai/projects/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file +{"flavor":"azure","apiVersions":{"Azure.AI.Projects":"v1"},"crossLanguagePackageId":"Azure.AI.Projects","crossLanguageVersion":"c3bdf8ec892a","crossLanguageDefinitions":{"com.azure.ai.projects.AIProjectClientBuilder":"Azure.AI.Projects","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient":"Azure.AI.Projects.Beta.AgentInsightMonitors","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.beginCreateAgentInsightRun":"Azure.AI.Projects.AgentInsightMonitors.createRun","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.beginCreateAgentInsightRunWithModel":"Azure.AI.Projects.AgentInsightMonitors.createRun","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.cancelAgentInsightRun":"Azure.AI.Projects.AgentInsightMonitors.cancelRun","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.cancelAgentInsightRunWithResponse":"Azure.AI.Projects.AgentInsightMonitors.cancelRun","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.createAgentInsightMonitor":"Azure.AI.Projects.AgentInsightMonitors.create","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.createAgentInsightMonitorWithResponse":"Azure.AI.Projects.AgentInsightMonitors.create","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.deleteAgentInsightMonitor":"Azure.AI.Projects.AgentInsightMonitors.delete","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.deleteAgentInsightMonitorWithResponse":"Azure.AI.Projects.AgentInsightMonitors.delete","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.getAgentInsight":"Azure.AI.Projects.AgentInsightMonitors.getInsight","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.getAgentInsightMonitor":"Azure.AI.Projects.AgentInsightMonitors.get","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.getAgentInsightMonitorWithResponse":"Azure.AI.Projects.AgentInsightMonitors.get","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.getAgentInsightRun":"Azure.AI.Projects.AgentInsightMonitors.getRun","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.getAgentInsightRunWithResponse":"Azure.AI.Projects.AgentInsightMonitors.getRun","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.getAgentInsightWithResponse":"Azure.AI.Projects.AgentInsightMonitors.getInsight","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.listAgentInsightMonitors":"Azure.AI.Projects.AgentInsightMonitors.list","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.listAgentInsightRuns":"Azure.AI.Projects.AgentInsightMonitors.listRuns","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.listAgentInsights":"Azure.AI.Projects.AgentInsightMonitors.listInsights","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.resetAgentInsightMonitor":"Azure.AI.Projects.AgentInsightMonitors.reset","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.resetAgentInsightMonitorWithResponse":"Azure.AI.Projects.AgentInsightMonitors.reset","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.updateAgentInsight":"Azure.AI.Projects.AgentInsightMonitors.updateInsight","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.updateAgentInsightMonitor":"Azure.AI.Projects.AgentInsightMonitors.update","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.updateAgentInsightMonitorWithResponse":"Azure.AI.Projects.AgentInsightMonitors.update","com.azure.ai.projects.BetaAgentInsightMonitorsAsyncClient.updateAgentInsightWithResponse":"Azure.AI.Projects.AgentInsightMonitors.updateInsight","com.azure.ai.projects.BetaAgentInsightMonitorsClient":"Azure.AI.Projects.Beta.AgentInsightMonitors","com.azure.ai.projects.BetaAgentInsightMonitorsClient.beginCreateAgentInsightRun":"Azure.AI.Projects.AgentInsightMonitors.createRun","com.azure.ai.projects.BetaAgentInsightMonitorsClient.beginCreateAgentInsightRunWithModel":"Azure.AI.Projects.AgentInsightMonitors.createRun","com.azure.ai.projects.BetaAgentInsightMonitorsClient.cancelAgentInsightRun":"Azure.AI.Projects.AgentInsightMonitors.cancelRun","com.azure.ai.projects.BetaAgentInsightMonitorsClient.cancelAgentInsightRunWithResponse":"Azure.AI.Projects.AgentInsightMonitors.cancelRun","com.azure.ai.projects.BetaAgentInsightMonitorsClient.createAgentInsightMonitor":"Azure.AI.Projects.AgentInsightMonitors.create","com.azure.ai.projects.BetaAgentInsightMonitorsClient.createAgentInsightMonitorWithResponse":"Azure.AI.Projects.AgentInsightMonitors.create","com.azure.ai.projects.BetaAgentInsightMonitorsClient.deleteAgentInsightMonitor":"Azure.AI.Projects.AgentInsightMonitors.delete","com.azure.ai.projects.BetaAgentInsightMonitorsClient.deleteAgentInsightMonitorWithResponse":"Azure.AI.Projects.AgentInsightMonitors.delete","com.azure.ai.projects.BetaAgentInsightMonitorsClient.getAgentInsight":"Azure.AI.Projects.AgentInsightMonitors.getInsight","com.azure.ai.projects.BetaAgentInsightMonitorsClient.getAgentInsightMonitor":"Azure.AI.Projects.AgentInsightMonitors.get","com.azure.ai.projects.BetaAgentInsightMonitorsClient.getAgentInsightMonitorWithResponse":"Azure.AI.Projects.AgentInsightMonitors.get","com.azure.ai.projects.BetaAgentInsightMonitorsClient.getAgentInsightRun":"Azure.AI.Projects.AgentInsightMonitors.getRun","com.azure.ai.projects.BetaAgentInsightMonitorsClient.getAgentInsightRunWithResponse":"Azure.AI.Projects.AgentInsightMonitors.getRun","com.azure.ai.projects.BetaAgentInsightMonitorsClient.getAgentInsightWithResponse":"Azure.AI.Projects.AgentInsightMonitors.getInsight","com.azure.ai.projects.BetaAgentInsightMonitorsClient.listAgentInsightMonitors":"Azure.AI.Projects.AgentInsightMonitors.list","com.azure.ai.projects.BetaAgentInsightMonitorsClient.listAgentInsightRuns":"Azure.AI.Projects.AgentInsightMonitors.listRuns","com.azure.ai.projects.BetaAgentInsightMonitorsClient.listAgentInsights":"Azure.AI.Projects.AgentInsightMonitors.listInsights","com.azure.ai.projects.BetaAgentInsightMonitorsClient.resetAgentInsightMonitor":"Azure.AI.Projects.AgentInsightMonitors.reset","com.azure.ai.projects.BetaAgentInsightMonitorsClient.resetAgentInsightMonitorWithResponse":"Azure.AI.Projects.AgentInsightMonitors.reset","com.azure.ai.projects.BetaAgentInsightMonitorsClient.updateAgentInsight":"Azure.AI.Projects.AgentInsightMonitors.updateInsight","com.azure.ai.projects.BetaAgentInsightMonitorsClient.updateAgentInsightMonitor":"Azure.AI.Projects.AgentInsightMonitors.update","com.azure.ai.projects.BetaAgentInsightMonitorsClient.updateAgentInsightMonitorWithResponse":"Azure.AI.Projects.AgentInsightMonitors.update","com.azure.ai.projects.BetaAgentInsightMonitorsClient.updateAgentInsightWithResponse":"Azure.AI.Projects.AgentInsightMonitors.updateInsight","com.azure.ai.projects.BetaEvaluationTaxonomiesAsyncClient":"Azure.AI.Projects.Beta.EvaluationTaxonomies","com.azure.ai.projects.BetaEvaluationTaxonomiesAsyncClient.createEvaluationTaxonomy":"Azure.AI.Projects.EvaluationTaxonomies.create","com.azure.ai.projects.BetaEvaluationTaxonomiesAsyncClient.createEvaluationTaxonomyWithResponse":"Azure.AI.Projects.EvaluationTaxonomies.create","com.azure.ai.projects.BetaEvaluationTaxonomiesAsyncClient.deleteEvaluationTaxonomy":"Azure.AI.Projects.EvaluationTaxonomies.delete","com.azure.ai.projects.BetaEvaluationTaxonomiesAsyncClient.deleteEvaluationTaxonomyWithResponse":"Azure.AI.Projects.EvaluationTaxonomies.delete","com.azure.ai.projects.BetaEvaluationTaxonomiesAsyncClient.getEvaluationTaxonomy":"Azure.AI.Projects.EvaluationTaxonomies.get","com.azure.ai.projects.BetaEvaluationTaxonomiesAsyncClient.getEvaluationTaxonomyWithResponse":"Azure.AI.Projects.EvaluationTaxonomies.get","com.azure.ai.projects.BetaEvaluationTaxonomiesAsyncClient.listEvaluationTaxonomies":"Azure.AI.Projects.EvaluationTaxonomies.list","com.azure.ai.projects.BetaEvaluationTaxonomiesAsyncClient.updateEvaluationTaxonomy":"Azure.AI.Projects.EvaluationTaxonomies.update","com.azure.ai.projects.BetaEvaluationTaxonomiesAsyncClient.updateEvaluationTaxonomyWithResponse":"Azure.AI.Projects.EvaluationTaxonomies.update","com.azure.ai.projects.BetaEvaluationTaxonomiesClient":"Azure.AI.Projects.Beta.EvaluationTaxonomies","com.azure.ai.projects.BetaEvaluationTaxonomiesClient.createEvaluationTaxonomy":"Azure.AI.Projects.EvaluationTaxonomies.create","com.azure.ai.projects.BetaEvaluationTaxonomiesClient.createEvaluationTaxonomyWithResponse":"Azure.AI.Projects.EvaluationTaxonomies.create","com.azure.ai.projects.BetaEvaluationTaxonomiesClient.deleteEvaluationTaxonomy":"Azure.AI.Projects.EvaluationTaxonomies.delete","com.azure.ai.projects.BetaEvaluationTaxonomiesClient.deleteEvaluationTaxonomyWithResponse":"Azure.AI.Projects.EvaluationTaxonomies.delete","com.azure.ai.projects.BetaEvaluationTaxonomiesClient.getEvaluationTaxonomy":"Azure.AI.Projects.EvaluationTaxonomies.get","com.azure.ai.projects.BetaEvaluationTaxonomiesClient.getEvaluationTaxonomyWithResponse":"Azure.AI.Projects.EvaluationTaxonomies.get","com.azure.ai.projects.BetaEvaluationTaxonomiesClient.listEvaluationTaxonomies":"Azure.AI.Projects.EvaluationTaxonomies.list","com.azure.ai.projects.BetaEvaluationTaxonomiesClient.updateEvaluationTaxonomy":"Azure.AI.Projects.EvaluationTaxonomies.update","com.azure.ai.projects.BetaEvaluationTaxonomiesClient.updateEvaluationTaxonomyWithResponse":"Azure.AI.Projects.EvaluationTaxonomies.update","com.azure.ai.projects.BetaEvaluatorsAsyncClient":"Azure.AI.Projects.Beta.Evaluators","com.azure.ai.projects.BetaEvaluatorsAsyncClient.getCredentials":"Azure.AI.Projects.Evaluators.getCredentials","com.azure.ai.projects.BetaEvaluatorsAsyncClient.getCredentialsWithResponse":"Azure.AI.Projects.Evaluators.getCredentials","com.azure.ai.projects.BetaEvaluatorsAsyncClient.startPendingUpload":"Azure.AI.Projects.Evaluators.startPendingUpload","com.azure.ai.projects.BetaEvaluatorsAsyncClient.startPendingUploadWithResponse":"Azure.AI.Projects.Evaluators.startPendingUpload","com.azure.ai.projects.BetaEvaluatorsClient":"Azure.AI.Projects.Beta.Evaluators","com.azure.ai.projects.BetaEvaluatorsClient.getCredentials":"Azure.AI.Projects.Evaluators.getCredentials","com.azure.ai.projects.BetaEvaluatorsClient.getCredentialsWithResponse":"Azure.AI.Projects.Evaluators.getCredentials","com.azure.ai.projects.BetaEvaluatorsClient.startPendingUpload":"Azure.AI.Projects.Evaluators.startPendingUpload","com.azure.ai.projects.BetaEvaluatorsClient.startPendingUploadWithResponse":"Azure.AI.Projects.Evaluators.startPendingUpload","com.azure.ai.projects.BetaInsightsAsyncClient":"Azure.AI.Projects.Beta.Insights","com.azure.ai.projects.BetaInsightsAsyncClient.generateInsight":"Azure.AI.Projects.Insights.generate","com.azure.ai.projects.BetaInsightsAsyncClient.generateInsightWithResponse":"Azure.AI.Projects.Insights.generate","com.azure.ai.projects.BetaInsightsAsyncClient.getInsight":"Azure.AI.Projects.Insights.get","com.azure.ai.projects.BetaInsightsAsyncClient.getInsightWithResponse":"Azure.AI.Projects.Insights.get","com.azure.ai.projects.BetaInsightsAsyncClient.listInsights":"Azure.AI.Projects.Insights.list","com.azure.ai.projects.BetaInsightsClient":"Azure.AI.Projects.Beta.Insights","com.azure.ai.projects.BetaInsightsClient.generateInsight":"Azure.AI.Projects.Insights.generate","com.azure.ai.projects.BetaInsightsClient.generateInsightWithResponse":"Azure.AI.Projects.Insights.generate","com.azure.ai.projects.BetaInsightsClient.getInsight":"Azure.AI.Projects.Insights.get","com.azure.ai.projects.BetaInsightsClient.getInsightWithResponse":"Azure.AI.Projects.Insights.get","com.azure.ai.projects.BetaInsightsClient.listInsights":"Azure.AI.Projects.Insights.list","com.azure.ai.projects.BetaModelsAsyncClient":"Azure.AI.Projects.Beta.Models","com.azure.ai.projects.BetaModelsAsyncClient.createModelVersionAsyncWithResponse":"Azure.AI.Projects.Models.createAsync","com.azure.ai.projects.BetaModelsAsyncClient.deleteModelVersion":"Azure.AI.Projects.Models.deleteVersion","com.azure.ai.projects.BetaModelsAsyncClient.deleteModelVersionWithResponse":"Azure.AI.Projects.Models.deleteVersion","com.azure.ai.projects.BetaModelsAsyncClient.getModelCredentials":"Azure.AI.Projects.Models.getCredentials","com.azure.ai.projects.BetaModelsAsyncClient.getModelCredentialsWithResponse":"Azure.AI.Projects.Models.getCredentials","com.azure.ai.projects.BetaModelsAsyncClient.getModelVersion":"Azure.AI.Projects.Models.getVersion","com.azure.ai.projects.BetaModelsAsyncClient.getModelVersionWithResponse":"Azure.AI.Projects.Models.getVersion","com.azure.ai.projects.BetaModelsAsyncClient.listLatestModelVersions":"Azure.AI.Projects.Models.listLatest","com.azure.ai.projects.BetaModelsAsyncClient.listModelVersions":"Azure.AI.Projects.Models.listVersions","com.azure.ai.projects.BetaModelsAsyncClient.startModelPendingUpload":"Azure.AI.Projects.Models.startPendingUpload","com.azure.ai.projects.BetaModelsAsyncClient.startModelPendingUploadWithResponse":"Azure.AI.Projects.Models.startPendingUpload","com.azure.ai.projects.BetaModelsAsyncClient.updateModelVersion":"Azure.AI.Projects.Models.createOrUpdateVersion","com.azure.ai.projects.BetaModelsAsyncClient.updateModelVersionWithResponse":"Azure.AI.Projects.Models.createOrUpdateVersion","com.azure.ai.projects.BetaModelsClient":"Azure.AI.Projects.Beta.Models","com.azure.ai.projects.BetaModelsClient.createModelVersionAsyncWithResponse":"Azure.AI.Projects.Models.createAsync","com.azure.ai.projects.BetaModelsClient.deleteModelVersion":"Azure.AI.Projects.Models.deleteVersion","com.azure.ai.projects.BetaModelsClient.deleteModelVersionWithResponse":"Azure.AI.Projects.Models.deleteVersion","com.azure.ai.projects.BetaModelsClient.getModelCredentials":"Azure.AI.Projects.Models.getCredentials","com.azure.ai.projects.BetaModelsClient.getModelCredentialsWithResponse":"Azure.AI.Projects.Models.getCredentials","com.azure.ai.projects.BetaModelsClient.getModelVersion":"Azure.AI.Projects.Models.getVersion","com.azure.ai.projects.BetaModelsClient.getModelVersionWithResponse":"Azure.AI.Projects.Models.getVersion","com.azure.ai.projects.BetaModelsClient.listLatestModelVersions":"Azure.AI.Projects.Models.listLatest","com.azure.ai.projects.BetaModelsClient.listModelVersions":"Azure.AI.Projects.Models.listVersions","com.azure.ai.projects.BetaModelsClient.startModelPendingUpload":"Azure.AI.Projects.Models.startPendingUpload","com.azure.ai.projects.BetaModelsClient.startModelPendingUploadWithResponse":"Azure.AI.Projects.Models.startPendingUpload","com.azure.ai.projects.BetaModelsClient.updateModelVersion":"Azure.AI.Projects.Models.createOrUpdateVersion","com.azure.ai.projects.BetaModelsClient.updateModelVersionWithResponse":"Azure.AI.Projects.Models.createOrUpdateVersion","com.azure.ai.projects.BetaRedTeamsAsyncClient":"Azure.AI.Projects.Beta.RedTeams","com.azure.ai.projects.BetaRedTeamsAsyncClient.createRedTeamRun":"Azure.AI.Projects.RedTeams.create","com.azure.ai.projects.BetaRedTeamsAsyncClient.createRedTeamRunWithResponse":"Azure.AI.Projects.RedTeams.create","com.azure.ai.projects.BetaRedTeamsAsyncClient.getRedTeam":"Azure.AI.Projects.RedTeams.get","com.azure.ai.projects.BetaRedTeamsAsyncClient.getRedTeamWithResponse":"Azure.AI.Projects.RedTeams.get","com.azure.ai.projects.BetaRedTeamsAsyncClient.listRedTeams":"Azure.AI.Projects.RedTeams.list","com.azure.ai.projects.BetaRedTeamsClient":"Azure.AI.Projects.Beta.RedTeams","com.azure.ai.projects.BetaRedTeamsClient.createRedTeamRun":"Azure.AI.Projects.RedTeams.create","com.azure.ai.projects.BetaRedTeamsClient.createRedTeamRunWithResponse":"Azure.AI.Projects.RedTeams.create","com.azure.ai.projects.BetaRedTeamsClient.getRedTeam":"Azure.AI.Projects.RedTeams.get","com.azure.ai.projects.BetaRedTeamsClient.getRedTeamWithResponse":"Azure.AI.Projects.RedTeams.get","com.azure.ai.projects.BetaRedTeamsClient.listRedTeams":"Azure.AI.Projects.RedTeams.list","com.azure.ai.projects.BetaRoutinesAsyncClient":"Azure.AI.Projects.Beta.Routines","com.azure.ai.projects.BetaRoutinesAsyncClient.createOrUpdateRoutine":"Azure.AI.Projects.Routines.createOrUpdateRoutine","com.azure.ai.projects.BetaRoutinesAsyncClient.createOrUpdateRoutineWithResponse":"Azure.AI.Projects.Routines.createOrUpdateRoutine","com.azure.ai.projects.BetaRoutinesAsyncClient.deleteRoutine":"Azure.AI.Projects.Routines.deleteRoutine","com.azure.ai.projects.BetaRoutinesAsyncClient.deleteRoutineWithResponse":"Azure.AI.Projects.Routines.deleteRoutine","com.azure.ai.projects.BetaRoutinesAsyncClient.disableRoutine":"Azure.AI.Projects.Routines.disableRoutine","com.azure.ai.projects.BetaRoutinesAsyncClient.disableRoutineWithResponse":"Azure.AI.Projects.Routines.disableRoutine","com.azure.ai.projects.BetaRoutinesAsyncClient.dispatchRoutine":"Azure.AI.Projects.Routines.dispatchRoutineAsync","com.azure.ai.projects.BetaRoutinesAsyncClient.dispatchRoutineWithResponse":"Azure.AI.Projects.Routines.dispatchRoutineAsync","com.azure.ai.projects.BetaRoutinesAsyncClient.enableRoutine":"Azure.AI.Projects.Routines.enableRoutine","com.azure.ai.projects.BetaRoutinesAsyncClient.enableRoutineWithResponse":"Azure.AI.Projects.Routines.enableRoutine","com.azure.ai.projects.BetaRoutinesAsyncClient.getRoutine":"Azure.AI.Projects.Routines.getRoutine","com.azure.ai.projects.BetaRoutinesAsyncClient.getRoutineWithResponse":"Azure.AI.Projects.Routines.getRoutine","com.azure.ai.projects.BetaRoutinesAsyncClient.listRoutineRuns":"Azure.AI.Projects.Routines.listRoutineRuns","com.azure.ai.projects.BetaRoutinesAsyncClient.listRoutines":"Azure.AI.Projects.Routines.listRoutines","com.azure.ai.projects.BetaRoutinesClient":"Azure.AI.Projects.Beta.Routines","com.azure.ai.projects.BetaRoutinesClient.createOrUpdateRoutine":"Azure.AI.Projects.Routines.createOrUpdateRoutine","com.azure.ai.projects.BetaRoutinesClient.createOrUpdateRoutineWithResponse":"Azure.AI.Projects.Routines.createOrUpdateRoutine","com.azure.ai.projects.BetaRoutinesClient.deleteRoutine":"Azure.AI.Projects.Routines.deleteRoutine","com.azure.ai.projects.BetaRoutinesClient.deleteRoutineWithResponse":"Azure.AI.Projects.Routines.deleteRoutine","com.azure.ai.projects.BetaRoutinesClient.disableRoutine":"Azure.AI.Projects.Routines.disableRoutine","com.azure.ai.projects.BetaRoutinesClient.disableRoutineWithResponse":"Azure.AI.Projects.Routines.disableRoutine","com.azure.ai.projects.BetaRoutinesClient.dispatchRoutine":"Azure.AI.Projects.Routines.dispatchRoutineAsync","com.azure.ai.projects.BetaRoutinesClient.dispatchRoutineWithResponse":"Azure.AI.Projects.Routines.dispatchRoutineAsync","com.azure.ai.projects.BetaRoutinesClient.enableRoutine":"Azure.AI.Projects.Routines.enableRoutine","com.azure.ai.projects.BetaRoutinesClient.enableRoutineWithResponse":"Azure.AI.Projects.Routines.enableRoutine","com.azure.ai.projects.BetaRoutinesClient.getRoutine":"Azure.AI.Projects.Routines.getRoutine","com.azure.ai.projects.BetaRoutinesClient.getRoutineWithResponse":"Azure.AI.Projects.Routines.getRoutine","com.azure.ai.projects.BetaRoutinesClient.listRoutineRuns":"Azure.AI.Projects.Routines.listRoutineRuns","com.azure.ai.projects.BetaRoutinesClient.listRoutines":"Azure.AI.Projects.Routines.listRoutines","com.azure.ai.projects.BetaSchedulesAsyncClient":"Azure.AI.Projects.Beta.Schedules","com.azure.ai.projects.BetaSchedulesAsyncClient.createOrUpdateSchedule":"Azure.AI.Projects.Schedules.createOrUpdate","com.azure.ai.projects.BetaSchedulesAsyncClient.createOrUpdateScheduleWithResponse":"Azure.AI.Projects.Schedules.createOrUpdate","com.azure.ai.projects.BetaSchedulesAsyncClient.deleteSchedule":"Azure.AI.Projects.Schedules.delete","com.azure.ai.projects.BetaSchedulesAsyncClient.deleteScheduleWithResponse":"Azure.AI.Projects.Schedules.delete","com.azure.ai.projects.BetaSchedulesAsyncClient.getSchedule":"Azure.AI.Projects.Schedules.get","com.azure.ai.projects.BetaSchedulesAsyncClient.getScheduleRun":"Azure.AI.Projects.Schedules.getRun","com.azure.ai.projects.BetaSchedulesAsyncClient.getScheduleRunWithResponse":"Azure.AI.Projects.Schedules.getRun","com.azure.ai.projects.BetaSchedulesAsyncClient.getScheduleWithResponse":"Azure.AI.Projects.Schedules.get","com.azure.ai.projects.BetaSchedulesAsyncClient.listScheduleRuns":"Azure.AI.Projects.Schedules.listRuns","com.azure.ai.projects.BetaSchedulesAsyncClient.listSchedules":"Azure.AI.Projects.Schedules.list","com.azure.ai.projects.BetaSchedulesClient":"Azure.AI.Projects.Beta.Schedules","com.azure.ai.projects.BetaSchedulesClient.createOrUpdateSchedule":"Azure.AI.Projects.Schedules.createOrUpdate","com.azure.ai.projects.BetaSchedulesClient.createOrUpdateScheduleWithResponse":"Azure.AI.Projects.Schedules.createOrUpdate","com.azure.ai.projects.BetaSchedulesClient.deleteSchedule":"Azure.AI.Projects.Schedules.delete","com.azure.ai.projects.BetaSchedulesClient.deleteScheduleWithResponse":"Azure.AI.Projects.Schedules.delete","com.azure.ai.projects.BetaSchedulesClient.getSchedule":"Azure.AI.Projects.Schedules.get","com.azure.ai.projects.BetaSchedulesClient.getScheduleRun":"Azure.AI.Projects.Schedules.getRun","com.azure.ai.projects.BetaSchedulesClient.getScheduleRunWithResponse":"Azure.AI.Projects.Schedules.getRun","com.azure.ai.projects.BetaSchedulesClient.getScheduleWithResponse":"Azure.AI.Projects.Schedules.get","com.azure.ai.projects.BetaSchedulesClient.listScheduleRuns":"Azure.AI.Projects.Schedules.listRuns","com.azure.ai.projects.BetaSchedulesClient.listSchedules":"Azure.AI.Projects.Schedules.list","com.azure.ai.projects.BetaSkillsAsyncClient":"Azure.AI.Projects.Beta.Skills","com.azure.ai.projects.BetaSkillsAsyncClient.createSkillVersion":"Azure.AI.Projects.Skills.createSkillVersion","com.azure.ai.projects.BetaSkillsAsyncClient.createSkillVersionFromFiles":"Azure.AI.Projects.Skills.createSkillVersionFromFiles","com.azure.ai.projects.BetaSkillsAsyncClient.createSkillVersionFromFilesWithResponseInternal":"Azure.AI.Projects.Skills.createSkillVersionFromFiles","com.azure.ai.projects.BetaSkillsAsyncClient.createSkillVersionWithResponse":"Azure.AI.Projects.Skills.createSkillVersion","com.azure.ai.projects.BetaSkillsAsyncClient.getSkill":"Azure.AI.Projects.Skills.getSkill","com.azure.ai.projects.BetaSkillsAsyncClient.getSkillContent":"Azure.AI.Projects.Skills.getSkillContent","com.azure.ai.projects.BetaSkillsAsyncClient.getSkillContentWithResponse":"Azure.AI.Projects.Skills.getSkillContent","com.azure.ai.projects.BetaSkillsAsyncClient.getSkillVersion":"Azure.AI.Projects.Skills.getSkillVersion","com.azure.ai.projects.BetaSkillsAsyncClient.getSkillVersionContent":"Azure.AI.Projects.Skills.getSkillVersionContent","com.azure.ai.projects.BetaSkillsAsyncClient.getSkillVersionContentWithResponse":"Azure.AI.Projects.Skills.getSkillVersionContent","com.azure.ai.projects.BetaSkillsAsyncClient.getSkillVersionWithResponse":"Azure.AI.Projects.Skills.getSkillVersion","com.azure.ai.projects.BetaSkillsAsyncClient.getSkillWithResponse":"Azure.AI.Projects.Skills.getSkill","com.azure.ai.projects.BetaSkillsAsyncClient.listSkillVersions":"Azure.AI.Projects.Skills.listSkillVersions","com.azure.ai.projects.BetaSkillsAsyncClient.listSkills":"Azure.AI.Projects.Skills.listSkills","com.azure.ai.projects.BetaSkillsAsyncClient.updateSkill":"Azure.AI.Projects.Skills.updateSkill","com.azure.ai.projects.BetaSkillsAsyncClient.updateSkillWithResponse":"Azure.AI.Projects.Skills.updateSkill","com.azure.ai.projects.BetaSkillsClient":"Azure.AI.Projects.Beta.Skills","com.azure.ai.projects.BetaSkillsClient.createSkillVersion":"Azure.AI.Projects.Skills.createSkillVersion","com.azure.ai.projects.BetaSkillsClient.createSkillVersionFromFiles":"Azure.AI.Projects.Skills.createSkillVersionFromFiles","com.azure.ai.projects.BetaSkillsClient.createSkillVersionFromFilesWithResponseInternal":"Azure.AI.Projects.Skills.createSkillVersionFromFiles","com.azure.ai.projects.BetaSkillsClient.createSkillVersionWithResponse":"Azure.AI.Projects.Skills.createSkillVersion","com.azure.ai.projects.BetaSkillsClient.getSkill":"Azure.AI.Projects.Skills.getSkill","com.azure.ai.projects.BetaSkillsClient.getSkillContent":"Azure.AI.Projects.Skills.getSkillContent","com.azure.ai.projects.BetaSkillsClient.getSkillContentWithResponse":"Azure.AI.Projects.Skills.getSkillContent","com.azure.ai.projects.BetaSkillsClient.getSkillVersion":"Azure.AI.Projects.Skills.getSkillVersion","com.azure.ai.projects.BetaSkillsClient.getSkillVersionContent":"Azure.AI.Projects.Skills.getSkillVersionContent","com.azure.ai.projects.BetaSkillsClient.getSkillVersionContentWithResponse":"Azure.AI.Projects.Skills.getSkillVersionContent","com.azure.ai.projects.BetaSkillsClient.getSkillVersionWithResponse":"Azure.AI.Projects.Skills.getSkillVersion","com.azure.ai.projects.BetaSkillsClient.getSkillWithResponse":"Azure.AI.Projects.Skills.getSkill","com.azure.ai.projects.BetaSkillsClient.listSkillVersions":"Azure.AI.Projects.Skills.listSkillVersions","com.azure.ai.projects.BetaSkillsClient.listSkills":"Azure.AI.Projects.Skills.listSkills","com.azure.ai.projects.BetaSkillsClient.updateSkill":"Azure.AI.Projects.Skills.updateSkill","com.azure.ai.projects.BetaSkillsClient.updateSkillWithResponse":"Azure.AI.Projects.Skills.updateSkill","com.azure.ai.projects.ConnectionsAsyncClient":"Azure.AI.Projects.Connections","com.azure.ai.projects.ConnectionsAsyncClient.getConnection":"Azure.AI.Projects.Connections.get","com.azure.ai.projects.ConnectionsAsyncClient.getConnectionWithCredentials":"Azure.AI.Projects.Connections.getWithCredentials","com.azure.ai.projects.ConnectionsAsyncClient.getConnectionWithCredentialsWithResponse":"Azure.AI.Projects.Connections.getWithCredentials","com.azure.ai.projects.ConnectionsAsyncClient.getConnectionWithResponse":"Azure.AI.Projects.Connections.get","com.azure.ai.projects.ConnectionsAsyncClient.listConnections":"Azure.AI.Projects.Connections.list","com.azure.ai.projects.ConnectionsClient":"Azure.AI.Projects.Connections","com.azure.ai.projects.ConnectionsClient.getConnection":"Azure.AI.Projects.Connections.get","com.azure.ai.projects.ConnectionsClient.getConnectionWithCredentials":"Azure.AI.Projects.Connections.getWithCredentials","com.azure.ai.projects.ConnectionsClient.getConnectionWithCredentialsWithResponse":"Azure.AI.Projects.Connections.getWithCredentials","com.azure.ai.projects.ConnectionsClient.getConnectionWithResponse":"Azure.AI.Projects.Connections.get","com.azure.ai.projects.ConnectionsClient.listConnections":"Azure.AI.Projects.Connections.list","com.azure.ai.projects.DatasetsAsyncClient":"Azure.AI.Projects.Datasets","com.azure.ai.projects.DatasetsAsyncClient.beginCreateGenerationJob":"Azure.AI.Projects.DataGenerationJobs.create","com.azure.ai.projects.DatasetsAsyncClient.beginCreateGenerationJobWithModel":"Azure.AI.Projects.DataGenerationJobs.create","com.azure.ai.projects.DatasetsAsyncClient.cancelGenerationJob":"Azure.AI.Projects.DataGenerationJobs.cancel","com.azure.ai.projects.DatasetsAsyncClient.cancelGenerationJobWithResponse":"Azure.AI.Projects.DataGenerationJobs.cancel","com.azure.ai.projects.DatasetsAsyncClient.createOrUpdateDatasetVersion":"Azure.AI.Projects.Datasets.createOrUpdateVersion","com.azure.ai.projects.DatasetsAsyncClient.createOrUpdateDatasetVersionWithResponse":"Azure.AI.Projects.Datasets.createOrUpdateVersion","com.azure.ai.projects.DatasetsAsyncClient.deleteDatasetVersion":"Azure.AI.Projects.Datasets.deleteVersion","com.azure.ai.projects.DatasetsAsyncClient.deleteDatasetVersionWithResponse":"Azure.AI.Projects.Datasets.deleteVersion","com.azure.ai.projects.DatasetsAsyncClient.deleteGenerationJob":"Azure.AI.Projects.DataGenerationJobs.delete","com.azure.ai.projects.DatasetsAsyncClient.deleteGenerationJobWithResponse":"Azure.AI.Projects.DataGenerationJobs.delete","com.azure.ai.projects.DatasetsAsyncClient.getCredentials":"Azure.AI.Projects.Datasets.getCredentials","com.azure.ai.projects.DatasetsAsyncClient.getCredentialsWithResponse":"Azure.AI.Projects.Datasets.getCredentials","com.azure.ai.projects.DatasetsAsyncClient.getDatasetVersion":"Azure.AI.Projects.Datasets.getVersion","com.azure.ai.projects.DatasetsAsyncClient.getDatasetVersionWithResponse":"Azure.AI.Projects.Datasets.getVersion","com.azure.ai.projects.DatasetsAsyncClient.getGenerationJob":"Azure.AI.Projects.DataGenerationJobs.get","com.azure.ai.projects.DatasetsAsyncClient.getGenerationJobWithResponse":"Azure.AI.Projects.DataGenerationJobs.get","com.azure.ai.projects.DatasetsAsyncClient.listDatasetVersions":"Azure.AI.Projects.Datasets.listVersions","com.azure.ai.projects.DatasetsAsyncClient.listGenerationJobs":"Azure.AI.Projects.DataGenerationJobs.list","com.azure.ai.projects.DatasetsAsyncClient.listLatestDatasetVersions":"Azure.AI.Projects.Datasets.listLatest","com.azure.ai.projects.DatasetsAsyncClient.pendingUpload":"Azure.AI.Projects.Datasets.startPendingUploadVersion","com.azure.ai.projects.DatasetsAsyncClient.pendingUploadWithResponse":"Azure.AI.Projects.Datasets.startPendingUploadVersion","com.azure.ai.projects.DatasetsClient":"Azure.AI.Projects.Datasets","com.azure.ai.projects.DatasetsClient.beginCreateGenerationJob":"Azure.AI.Projects.DataGenerationJobs.create","com.azure.ai.projects.DatasetsClient.beginCreateGenerationJobWithModel":"Azure.AI.Projects.DataGenerationJobs.create","com.azure.ai.projects.DatasetsClient.cancelGenerationJob":"Azure.AI.Projects.DataGenerationJobs.cancel","com.azure.ai.projects.DatasetsClient.cancelGenerationJobWithResponse":"Azure.AI.Projects.DataGenerationJobs.cancel","com.azure.ai.projects.DatasetsClient.createOrUpdateDatasetVersion":"Azure.AI.Projects.Datasets.createOrUpdateVersion","com.azure.ai.projects.DatasetsClient.createOrUpdateDatasetVersionWithResponse":"Azure.AI.Projects.Datasets.createOrUpdateVersion","com.azure.ai.projects.DatasetsClient.deleteDatasetVersion":"Azure.AI.Projects.Datasets.deleteVersion","com.azure.ai.projects.DatasetsClient.deleteDatasetVersionWithResponse":"Azure.AI.Projects.Datasets.deleteVersion","com.azure.ai.projects.DatasetsClient.deleteGenerationJob":"Azure.AI.Projects.DataGenerationJobs.delete","com.azure.ai.projects.DatasetsClient.deleteGenerationJobWithResponse":"Azure.AI.Projects.DataGenerationJobs.delete","com.azure.ai.projects.DatasetsClient.getCredentials":"Azure.AI.Projects.Datasets.getCredentials","com.azure.ai.projects.DatasetsClient.getCredentialsWithResponse":"Azure.AI.Projects.Datasets.getCredentials","com.azure.ai.projects.DatasetsClient.getDatasetVersion":"Azure.AI.Projects.Datasets.getVersion","com.azure.ai.projects.DatasetsClient.getDatasetVersionWithResponse":"Azure.AI.Projects.Datasets.getVersion","com.azure.ai.projects.DatasetsClient.getGenerationJob":"Azure.AI.Projects.DataGenerationJobs.get","com.azure.ai.projects.DatasetsClient.getGenerationJobWithResponse":"Azure.AI.Projects.DataGenerationJobs.get","com.azure.ai.projects.DatasetsClient.listDatasetVersions":"Azure.AI.Projects.Datasets.listVersions","com.azure.ai.projects.DatasetsClient.listGenerationJobs":"Azure.AI.Projects.DataGenerationJobs.list","com.azure.ai.projects.DatasetsClient.listLatestDatasetVersions":"Azure.AI.Projects.Datasets.listLatest","com.azure.ai.projects.DatasetsClient.pendingUpload":"Azure.AI.Projects.Datasets.startPendingUploadVersion","com.azure.ai.projects.DatasetsClient.pendingUploadWithResponse":"Azure.AI.Projects.Datasets.startPendingUploadVersion","com.azure.ai.projects.DeploymentsAsyncClient":"Azure.AI.Projects.Deployments","com.azure.ai.projects.DeploymentsAsyncClient.getDeployment":"Azure.AI.Projects.Deployments.get","com.azure.ai.projects.DeploymentsAsyncClient.getDeploymentWithResponse":"Azure.AI.Projects.Deployments.get","com.azure.ai.projects.DeploymentsAsyncClient.listDeployments":"Azure.AI.Projects.Deployments.list","com.azure.ai.projects.DeploymentsClient":"Azure.AI.Projects.Deployments","com.azure.ai.projects.DeploymentsClient.getDeployment":"Azure.AI.Projects.Deployments.get","com.azure.ai.projects.DeploymentsClient.getDeploymentWithResponse":"Azure.AI.Projects.Deployments.get","com.azure.ai.projects.DeploymentsClient.listDeployments":"Azure.AI.Projects.Deployments.list","com.azure.ai.projects.EvaluationRulesAsyncClient":"Azure.AI.Projects.EvaluationRules","com.azure.ai.projects.EvaluationRulesAsyncClient.createOrUpdateEvaluationRule":"Azure.AI.Projects.EvaluationRules.createOrUpdate","com.azure.ai.projects.EvaluationRulesAsyncClient.createOrUpdateEvaluationRuleWithResponse":"Azure.AI.Projects.EvaluationRules.createOrUpdate","com.azure.ai.projects.EvaluationRulesAsyncClient.deleteEvaluationRule":"Azure.AI.Projects.EvaluationRules.delete","com.azure.ai.projects.EvaluationRulesAsyncClient.deleteEvaluationRuleWithResponse":"Azure.AI.Projects.EvaluationRules.delete","com.azure.ai.projects.EvaluationRulesAsyncClient.getEvaluationRule":"Azure.AI.Projects.EvaluationRules.get","com.azure.ai.projects.EvaluationRulesAsyncClient.getEvaluationRuleWithResponse":"Azure.AI.Projects.EvaluationRules.get","com.azure.ai.projects.EvaluationRulesAsyncClient.listEvaluationRules":"Azure.AI.Projects.EvaluationRules.list","com.azure.ai.projects.EvaluationRulesClient":"Azure.AI.Projects.EvaluationRules","com.azure.ai.projects.EvaluationRulesClient.createOrUpdateEvaluationRule":"Azure.AI.Projects.EvaluationRules.createOrUpdate","com.azure.ai.projects.EvaluationRulesClient.createOrUpdateEvaluationRuleWithResponse":"Azure.AI.Projects.EvaluationRules.createOrUpdate","com.azure.ai.projects.EvaluationRulesClient.deleteEvaluationRule":"Azure.AI.Projects.EvaluationRules.delete","com.azure.ai.projects.EvaluationRulesClient.deleteEvaluationRuleWithResponse":"Azure.AI.Projects.EvaluationRules.delete","com.azure.ai.projects.EvaluationRulesClient.getEvaluationRule":"Azure.AI.Projects.EvaluationRules.get","com.azure.ai.projects.EvaluationRulesClient.getEvaluationRuleWithResponse":"Azure.AI.Projects.EvaluationRules.get","com.azure.ai.projects.EvaluationRulesClient.listEvaluationRules":"Azure.AI.Projects.EvaluationRules.list","com.azure.ai.projects.EvaluatorsAsyncClient":"Azure.AI.Projects.Evaluators","com.azure.ai.projects.EvaluatorsAsyncClient.beginCreateEvaluatorGenerationJob":"Azure.AI.Projects.EvaluatorGenerationJobs.create","com.azure.ai.projects.EvaluatorsAsyncClient.beginCreateEvaluatorGenerationJobWithModel":"Azure.AI.Projects.EvaluatorGenerationJobs.create","com.azure.ai.projects.EvaluatorsAsyncClient.cancelEvaluatorGenerationJob":"Azure.AI.Projects.EvaluatorGenerationJobs.cancel","com.azure.ai.projects.EvaluatorsAsyncClient.cancelEvaluatorGenerationJobWithResponse":"Azure.AI.Projects.EvaluatorGenerationJobs.cancel","com.azure.ai.projects.EvaluatorsAsyncClient.createEvaluatorVersion":"Azure.AI.Projects.Evaluators.createVersion","com.azure.ai.projects.EvaluatorsAsyncClient.createEvaluatorVersionWithResponse":"Azure.AI.Projects.Evaluators.createVersion","com.azure.ai.projects.EvaluatorsAsyncClient.deleteEvaluatorGenerationJob":"Azure.AI.Projects.EvaluatorGenerationJobs.delete","com.azure.ai.projects.EvaluatorsAsyncClient.deleteEvaluatorGenerationJobWithResponse":"Azure.AI.Projects.EvaluatorGenerationJobs.delete","com.azure.ai.projects.EvaluatorsAsyncClient.deleteEvaluatorVersion":"Azure.AI.Projects.Evaluators.deleteVersion","com.azure.ai.projects.EvaluatorsAsyncClient.deleteEvaluatorVersionWithResponse":"Azure.AI.Projects.Evaluators.deleteVersion","com.azure.ai.projects.EvaluatorsAsyncClient.getEvaluatorGenerationJob":"Azure.AI.Projects.EvaluatorGenerationJobs.get","com.azure.ai.projects.EvaluatorsAsyncClient.getEvaluatorGenerationJobWithResponse":"Azure.AI.Projects.EvaluatorGenerationJobs.get","com.azure.ai.projects.EvaluatorsAsyncClient.getEvaluatorVersion":"Azure.AI.Projects.Evaluators.getVersion","com.azure.ai.projects.EvaluatorsAsyncClient.getEvaluatorVersionWithResponse":"Azure.AI.Projects.Evaluators.getVersion","com.azure.ai.projects.EvaluatorsAsyncClient.listEvaluatorGenerationJobs":"Azure.AI.Projects.EvaluatorGenerationJobs.list","com.azure.ai.projects.EvaluatorsAsyncClient.listEvaluatorVersions":"Azure.AI.Projects.Evaluators.listVersions","com.azure.ai.projects.EvaluatorsAsyncClient.listLatestEvaluatorVersions":"Azure.AI.Projects.Evaluators.listLatestVersions","com.azure.ai.projects.EvaluatorsAsyncClient.updateEvaluatorVersion":"Azure.AI.Projects.Evaluators.updateVersion","com.azure.ai.projects.EvaluatorsAsyncClient.updateEvaluatorVersionWithResponse":"Azure.AI.Projects.Evaluators.updateVersion","com.azure.ai.projects.EvaluatorsClient":"Azure.AI.Projects.Evaluators","com.azure.ai.projects.EvaluatorsClient.beginCreateEvaluatorGenerationJob":"Azure.AI.Projects.EvaluatorGenerationJobs.create","com.azure.ai.projects.EvaluatorsClient.beginCreateEvaluatorGenerationJobWithModel":"Azure.AI.Projects.EvaluatorGenerationJobs.create","com.azure.ai.projects.EvaluatorsClient.cancelEvaluatorGenerationJob":"Azure.AI.Projects.EvaluatorGenerationJobs.cancel","com.azure.ai.projects.EvaluatorsClient.cancelEvaluatorGenerationJobWithResponse":"Azure.AI.Projects.EvaluatorGenerationJobs.cancel","com.azure.ai.projects.EvaluatorsClient.createEvaluatorVersion":"Azure.AI.Projects.Evaluators.createVersion","com.azure.ai.projects.EvaluatorsClient.createEvaluatorVersionWithResponse":"Azure.AI.Projects.Evaluators.createVersion","com.azure.ai.projects.EvaluatorsClient.deleteEvaluatorGenerationJob":"Azure.AI.Projects.EvaluatorGenerationJobs.delete","com.azure.ai.projects.EvaluatorsClient.deleteEvaluatorGenerationJobWithResponse":"Azure.AI.Projects.EvaluatorGenerationJobs.delete","com.azure.ai.projects.EvaluatorsClient.deleteEvaluatorVersion":"Azure.AI.Projects.Evaluators.deleteVersion","com.azure.ai.projects.EvaluatorsClient.deleteEvaluatorVersionWithResponse":"Azure.AI.Projects.Evaluators.deleteVersion","com.azure.ai.projects.EvaluatorsClient.getEvaluatorGenerationJob":"Azure.AI.Projects.EvaluatorGenerationJobs.get","com.azure.ai.projects.EvaluatorsClient.getEvaluatorGenerationJobWithResponse":"Azure.AI.Projects.EvaluatorGenerationJobs.get","com.azure.ai.projects.EvaluatorsClient.getEvaluatorVersion":"Azure.AI.Projects.Evaluators.getVersion","com.azure.ai.projects.EvaluatorsClient.getEvaluatorVersionWithResponse":"Azure.AI.Projects.Evaluators.getVersion","com.azure.ai.projects.EvaluatorsClient.listEvaluatorGenerationJobs":"Azure.AI.Projects.EvaluatorGenerationJobs.list","com.azure.ai.projects.EvaluatorsClient.listEvaluatorVersions":"Azure.AI.Projects.Evaluators.listVersions","com.azure.ai.projects.EvaluatorsClient.listLatestEvaluatorVersions":"Azure.AI.Projects.Evaluators.listLatestVersions","com.azure.ai.projects.EvaluatorsClient.updateEvaluatorVersion":"Azure.AI.Projects.Evaluators.updateVersion","com.azure.ai.projects.EvaluatorsClient.updateEvaluatorVersionWithResponse":"Azure.AI.Projects.Evaluators.updateVersion","com.azure.ai.projects.IndexesAsyncClient":"Azure.AI.Projects.Indexes","com.azure.ai.projects.IndexesAsyncClient.createOrUpdateIndexVersion":"Azure.AI.Projects.Indexes.createOrUpdateVersion","com.azure.ai.projects.IndexesAsyncClient.createOrUpdateIndexVersionWithResponse":"Azure.AI.Projects.Indexes.createOrUpdateVersion","com.azure.ai.projects.IndexesAsyncClient.deleteIndexVersion":"Azure.AI.Projects.Indexes.deleteVersion","com.azure.ai.projects.IndexesAsyncClient.deleteIndexVersionWithResponse":"Azure.AI.Projects.Indexes.deleteVersion","com.azure.ai.projects.IndexesAsyncClient.getIndexVersion":"Azure.AI.Projects.Indexes.getVersion","com.azure.ai.projects.IndexesAsyncClient.getIndexVersionWithResponse":"Azure.AI.Projects.Indexes.getVersion","com.azure.ai.projects.IndexesAsyncClient.listIndexVersions":"Azure.AI.Projects.Indexes.listVersions","com.azure.ai.projects.IndexesAsyncClient.listLatestIndexVersions":"Azure.AI.Projects.Indexes.listLatest","com.azure.ai.projects.IndexesClient":"Azure.AI.Projects.Indexes","com.azure.ai.projects.IndexesClient.createOrUpdateIndexVersion":"Azure.AI.Projects.Indexes.createOrUpdateVersion","com.azure.ai.projects.IndexesClient.createOrUpdateIndexVersionWithResponse":"Azure.AI.Projects.Indexes.createOrUpdateVersion","com.azure.ai.projects.IndexesClient.deleteIndexVersion":"Azure.AI.Projects.Indexes.deleteVersion","com.azure.ai.projects.IndexesClient.deleteIndexVersionWithResponse":"Azure.AI.Projects.Indexes.deleteVersion","com.azure.ai.projects.IndexesClient.getIndexVersion":"Azure.AI.Projects.Indexes.getVersion","com.azure.ai.projects.IndexesClient.getIndexVersionWithResponse":"Azure.AI.Projects.Indexes.getVersion","com.azure.ai.projects.IndexesClient.listIndexVersions":"Azure.AI.Projects.Indexes.listVersions","com.azure.ai.projects.IndexesClient.listLatestIndexVersions":"Azure.AI.Projects.Indexes.listLatest","com.azure.ai.projects.implementation.models.CreateOrUpdateRoutineRequest":"Azure.AI.Projects.createOrUpdateRoutine.Request.anonymous","com.azure.ai.projects.implementation.models.CreateSkillVersionRequest":"Azure.AI.Projects.createSkillVersion.Request.anonymous","com.azure.ai.projects.implementation.models.DispatchRoutineAsyncRequest":"Azure.AI.Projects.dispatchRoutineAsync.Request.anonymous","com.azure.ai.projects.implementation.models.FoundryFeaturesOptInKeys":"Azure.AI.Projects.FoundryFeaturesOptInKeys","com.azure.ai.projects.implementation.models.UpdateSkillRequest":"Azure.AI.Projects.updateSkill.Request.anonymous","com.azure.ai.projects.models.AIProjectIndex":"Azure.AI.Projects.Index","com.azure.ai.projects.models.AgentClusterInsightRequest":"Azure.AI.Projects.AgentClusterInsightRequest","com.azure.ai.projects.models.AgentClusterInsightResult":"Azure.AI.Projects.AgentClusterInsightResult","com.azure.ai.projects.models.AgentDataGenerationJobSource":"Azure.AI.Projects.AgentDataGenerationJobSource","com.azure.ai.projects.models.AgentEvaluatorGenerationJobSource":"Azure.AI.Projects.AgentEvaluatorGenerationJobSource","com.azure.ai.projects.models.AgentInsight":"Azure.AI.Projects.AgentInsight","com.azure.ai.projects.models.AgentInsightDetails":"Azure.AI.Projects.AgentInsightDetails","com.azure.ai.projects.models.AgentInsightEstimatedCost":"Azure.AI.Projects.AgentInsightEstimatedCost","com.azure.ai.projects.models.AgentInsightHighlightedTrace":"Azure.AI.Projects.AgentInsightHighlightedTrace","com.azure.ai.projects.models.AgentInsightLinkedTrace":"Azure.AI.Projects.AgentInsightLinkedTrace","com.azure.ai.projects.models.AgentInsightMonitor":"Azure.AI.Projects.AgentInsightMonitor","com.azure.ai.projects.models.AgentInsightMonitorCreate":"Azure.AI.Projects.AgentInsightMonitorCreate","com.azure.ai.projects.models.AgentInsightMonitorListItem":"Azure.AI.Projects.AgentInsightMonitorListItem","com.azure.ai.projects.models.AgentInsightMonitorUpdate":"Azure.AI.Projects.AgentInsightMonitorUpdate","com.azure.ai.projects.models.AgentInsightOverviewSource":"Azure.AI.Projects.AgentInsightOverviewSource","com.azure.ai.projects.models.AgentInsightPromptSurface":"Azure.AI.Projects.AgentInsightPromptSurface","com.azure.ai.projects.models.AgentInsightProposedFix":"Azure.AI.Projects.AgentInsightProposedFix","com.azure.ai.projects.models.AgentInsightProposedFixChange":"Azure.AI.Projects.AgentInsightProposedFixChange","com.azure.ai.projects.models.AgentInsightProposedFixKind":"Azure.AI.Projects.AgentInsightProposedFixKind","com.azure.ai.projects.models.AgentInsightRecommendedAction":"Azure.AI.Projects.AgentInsightRecommendedAction","com.azure.ai.projects.models.AgentInsightRun":"Azure.AI.Projects.AgentInsightRun","com.azure.ai.projects.models.AgentInsightRunCreate":"Azure.AI.Projects.AgentInsightRunCreate","com.azure.ai.projects.models.AgentInsightRunResult":"Azure.AI.Projects.AgentInsightRunResult","com.azure.ai.projects.models.AgentInsightRunTrigger":"Azure.AI.Projects.AgentInsightRunTrigger","com.azure.ai.projects.models.AgentInsightSeverity":"Azure.AI.Projects.AgentInsightSeverity","com.azure.ai.projects.models.AgentInsightStatus":"Azure.AI.Projects.AgentInsightStatus","com.azure.ai.projects.models.AgentInsightSuspension":"Azure.AI.Projects.AgentInsightSuspension","com.azure.ai.projects.models.AgentInsightTokenUsage":"Azure.AI.Projects.AgentInsightTokenUsage","com.azure.ai.projects.models.AgentInsightUpdate":"Azure.AI.Projects.AgentInsightUpdate","com.azure.ai.projects.models.AgentInsightsOverview":"Azure.AI.Projects.AgentInsightsOverview","com.azure.ai.projects.models.AgentInsightsOverviewOverride":"Azure.AI.Projects.AgentInsightsOverviewOverride","com.azure.ai.projects.models.AgentTaxonomyInput":"Azure.AI.Projects.AgentTaxonomyInput","com.azure.ai.projects.models.AgenticIdentityPreviewCredential":"Azure.AI.Projects.AgenticIdentityPreviewCredentials","com.azure.ai.projects.models.ApiError":"OpenAI.Error","com.azure.ai.projects.models.ApiKeyCredential":"Azure.AI.Projects.ApiKeyCredentials","com.azure.ai.projects.models.ArtifactProfile":"Azure.AI.Projects.ArtifactProfile","com.azure.ai.projects.models.AttackStrategy":"Azure.AI.Projects.AttackStrategy","com.azure.ai.projects.models.AzureAIAgentTarget":"Azure.AI.Projects.AzureAIAgentTarget","com.azure.ai.projects.models.AzureAIModelTarget":"Azure.AI.Projects.AzureAIModelTarget","com.azure.ai.projects.models.AzureAISearchIndex":"Azure.AI.Projects.AzureAISearchIndex","com.azure.ai.projects.models.AzureOpenAIModelConfiguration":"Azure.AI.Projects.AzureOpenAIModelConfiguration","com.azure.ai.projects.models.BaseCredential":"Azure.AI.Projects.BaseCredentials","com.azure.ai.projects.models.BlobReference":"Azure.AI.Projects.BlobReference","com.azure.ai.projects.models.BlobReferenceSasCredential":"Azure.AI.Projects.SasCredential","com.azure.ai.projects.models.ChartCoordinate":"Azure.AI.Projects.ChartCoordinate","com.azure.ai.projects.models.ClusterInsightResult":"Azure.AI.Projects.ClusterInsightResult","com.azure.ai.projects.models.ClusterTokenUsage":"Azure.AI.Projects.ClusterTokenUsage","com.azure.ai.projects.models.CodeBasedEvaluatorDefinition":"Azure.AI.Projects.CodeBasedEvaluatorDefinition","com.azure.ai.projects.models.Connection":"Azure.AI.Projects.Connection","com.azure.ai.projects.models.ConnectionType":"Azure.AI.Projects.ConnectionType","com.azure.ai.projects.models.ContinuousEvaluationRuleAction":"Azure.AI.Projects.ContinuousEvaluationRuleAction","com.azure.ai.projects.models.CosmosDBIndex":"Azure.AI.Projects.CosmosDBIndex","com.azure.ai.projects.models.CreateAsyncResponse":"Azure.AI.Projects.createAsync.Response.anonymous","com.azure.ai.projects.models.CreateSkillVersionFromFilesBody":"Azure.AI.Projects.CreateSkillVersionFromFilesBody","com.azure.ai.projects.models.CredentialType":"Azure.AI.Projects.CredentialType","com.azure.ai.projects.models.CronTrigger":"Azure.AI.Projects.CronTrigger","com.azure.ai.projects.models.CustomCredential":"Azure.AI.Projects.CustomCredential","com.azure.ai.projects.models.CustomRoutineTrigger":"Azure.AI.Projects.CustomRoutineTrigger","com.azure.ai.projects.models.DailyRecurrenceSchedule":"Azure.AI.Projects.DailyRecurrenceSchedule","com.azure.ai.projects.models.DataGenerationJob":"Azure.AI.Projects.DataGenerationJob","com.azure.ai.projects.models.DataGenerationJobConfiguration":"Azure.AI.Projects.DataGenerationJobConfiguration","com.azure.ai.projects.models.DataGenerationJobInputs":"Azure.AI.Projects.DataGenerationJobInputs","com.azure.ai.projects.models.DataGenerationJobOutput":"Azure.AI.Projects.DataGenerationJobOutput","com.azure.ai.projects.models.DataGenerationJobOutputType":"Azure.AI.Projects.DataGenerationJobOutputType","com.azure.ai.projects.models.DataGenerationJobOutputWriteMode":"Azure.AI.Projects.DataGenerationJobOutputWriteMode","com.azure.ai.projects.models.DataGenerationJobResult":"Azure.AI.Projects.DataGenerationJobResult","com.azure.ai.projects.models.DataGenerationJobScenario":"Azure.AI.Projects.DataGenerationJobScenario","com.azure.ai.projects.models.DataGenerationJobSource":"Azure.AI.Projects.DataGenerationJobSource","com.azure.ai.projects.models.DataGenerationJobSourceType":"Azure.AI.Projects.DataGenerationJobSourceType","com.azure.ai.projects.models.DataGenerationJobType":"Azure.AI.Projects.DataGenerationJobType","com.azure.ai.projects.models.DataGenerationModelOptions":"Azure.AI.Projects.DataGenerationModelOptions","com.azure.ai.projects.models.DataGenerationTokenUsage":"Azure.AI.Projects.DataGenerationTokenUsage","com.azure.ai.projects.models.DatasetCredential":"Azure.AI.Projects.AssetCredentialResponse","com.azure.ai.projects.models.DatasetDataGenerationJobOutput":"Azure.AI.Projects.DatasetDataGenerationJobOutput","com.azure.ai.projects.models.DatasetEvaluatorGenerationJobSource":"Azure.AI.Projects.DatasetEvaluatorGenerationJobSource","com.azure.ai.projects.models.DatasetReference":"Azure.AI.Projects.DatasetReference","com.azure.ai.projects.models.DatasetType":"Azure.AI.Projects.DatasetType","com.azure.ai.projects.models.DatasetVersion":"Azure.AI.Projects.DatasetVersion","com.azure.ai.projects.models.Deployment":"Azure.AI.Projects.Deployment","com.azure.ai.projects.models.DeploymentType":"Azure.AI.Projects.DeploymentType","com.azure.ai.projects.models.Dimension":"Azure.AI.Projects.Dimension","com.azure.ai.projects.models.DispatchRoutineResult":"Azure.AI.Projects.DispatchRoutineResponse","com.azure.ai.projects.models.EmbeddingConfiguration":"Azure.AI.Projects.EmbeddingConfiguration","com.azure.ai.projects.models.EndpointBasedEvaluatorDefinition":"Azure.AI.Projects.EndpointBasedEvaluatorDefinition","com.azure.ai.projects.models.EntraIdCredential":"Azure.AI.Projects.EntraIDCredentials","com.azure.ai.projects.models.EvaluationComparisonInsightRequest":"Azure.AI.Projects.EvaluationComparisonInsightRequest","com.azure.ai.projects.models.EvaluationComparisonInsightResult":"Azure.AI.Projects.EvaluationComparisonInsightResult","com.azure.ai.projects.models.EvaluationDataGenerationJob":"Azure.AI.Projects.EvaluationDataGenerationJob","com.azure.ai.projects.models.EvaluationDataGenerationJobInputs":"Azure.AI.Projects.EvaluationDataGenerationJobInputs","com.azure.ai.projects.models.EvaluationDataGenerationJobOutputConfiguration":"Azure.AI.Projects.EvaluationDataGenerationJobOutputConfiguration","com.azure.ai.projects.models.EvaluationLevel":"Azure.AI.Projects.EvaluationLevel","com.azure.ai.projects.models.EvaluationResult":"Azure.AI.Projects.EvalResult","com.azure.ai.projects.models.EvaluationResultSample":"Azure.AI.Projects.EvaluationResultSample","com.azure.ai.projects.models.EvaluationRule":"Azure.AI.Projects.EvaluationRule","com.azure.ai.projects.models.EvaluationRuleAction":"Azure.AI.Projects.EvaluationRuleAction","com.azure.ai.projects.models.EvaluationRuleActionType":"Azure.AI.Projects.EvaluationRuleActionType","com.azure.ai.projects.models.EvaluationRuleEventType":"Azure.AI.Projects.EvaluationRuleEventType","com.azure.ai.projects.models.EvaluationRuleFilter":"Azure.AI.Projects.EvaluationRuleFilter","com.azure.ai.projects.models.EvaluationRunClusterInsightRequest":"Azure.AI.Projects.EvaluationRunClusterInsightRequest","com.azure.ai.projects.models.EvaluationRunClusterInsightResult":"Azure.AI.Projects.EvaluationRunClusterInsightResult","com.azure.ai.projects.models.EvaluationRunResultCompareItem":"Azure.AI.Projects.EvalRunResultCompareItem","com.azure.ai.projects.models.EvaluationRunResultComparison":"Azure.AI.Projects.EvalRunResultComparison","com.azure.ai.projects.models.EvaluationRunResultSummary":"Azure.AI.Projects.EvalRunResultSummary","com.azure.ai.projects.models.EvaluationScheduleTask":"Azure.AI.Projects.EvaluationScheduleTask","com.azure.ai.projects.models.EvaluationTaxonomy":"Azure.AI.Projects.EvaluationTaxonomy","com.azure.ai.projects.models.EvaluationTaxonomyInput":"Azure.AI.Projects.EvaluationTaxonomyInput","com.azure.ai.projects.models.EvaluationTaxonomyInputType":"Azure.AI.Projects.EvaluationTaxonomyInputType","com.azure.ai.projects.models.EvaluatorCategory":"Azure.AI.Projects.EvaluatorCategory","com.azure.ai.projects.models.EvaluatorCredentialInput":"Azure.AI.Projects.EvaluatorCredentialRequest","com.azure.ai.projects.models.EvaluatorDefinition":"Azure.AI.Projects.EvaluatorDefinition","com.azure.ai.projects.models.EvaluatorDefinitionType":"Azure.AI.Projects.EvaluatorDefinitionType","com.azure.ai.projects.models.EvaluatorGenerationArtifacts":"Azure.AI.Projects.EvaluatorGenerationArtifacts","com.azure.ai.projects.models.EvaluatorGenerationInputs":"Azure.AI.Projects.EvaluatorGenerationInputs","com.azure.ai.projects.models.EvaluatorGenerationJob":"Azure.AI.Projects.EvaluatorGenerationJob","com.azure.ai.projects.models.EvaluatorGenerationJobSource":"Azure.AI.Projects.EvaluatorGenerationJobSource","com.azure.ai.projects.models.EvaluatorGenerationJobSourceType":"Azure.AI.Projects.EvaluatorGenerationJobSourceType","com.azure.ai.projects.models.EvaluatorGenerationTokenUsage":"Azure.AI.Projects.EvaluatorGenerationTokenUsage","com.azure.ai.projects.models.EvaluatorMetric":"Azure.AI.Projects.EvaluatorMetric","com.azure.ai.projects.models.EvaluatorMetricDirection":"Azure.AI.Projects.EvaluatorMetricDirection","com.azure.ai.projects.models.EvaluatorMetricType":"Azure.AI.Projects.EvaluatorMetricType","com.azure.ai.projects.models.EvaluatorType":"Azure.AI.Projects.EvaluatorType","com.azure.ai.projects.models.EvaluatorVersion":"Azure.AI.Projects.EvaluatorVersion","com.azure.ai.projects.models.FieldMapping":"Azure.AI.Projects.FieldMapping","com.azure.ai.projects.models.FileDataGenerationJobOutput":"Azure.AI.Projects.FileDataGenerationJobOutput","com.azure.ai.projects.models.FileDataGenerationJobSource":"Azure.AI.Projects.FileDataGenerationJobSource","com.azure.ai.projects.models.FileDatasetVersion":"Azure.AI.Projects.FileDatasetVersion","com.azure.ai.projects.models.FolderDatasetVersion":"Azure.AI.Projects.FolderDatasetVersion","com.azure.ai.projects.models.FoundryModelArtifactProfileCategory":"Azure.AI.Projects.FoundryModelArtifactProfileCategory","com.azure.ai.projects.models.FoundryModelArtifactProfileSignal":"Azure.AI.Projects.FoundryModelArtifactProfileSignal","com.azure.ai.projects.models.FoundryModelSourceType":"Azure.AI.Projects.FoundryModelSourceType","com.azure.ai.projects.models.FoundryModelWarning":"Azure.AI.Projects.FoundryModelWarning","com.azure.ai.projects.models.FoundryModelWarningCode":"Azure.AI.Projects.FoundryModelWarningCode","com.azure.ai.projects.models.FoundryModelWeightType":"Azure.AI.Projects.FoundryModelWeightType","com.azure.ai.projects.models.GenerationWarningType":"Azure.AI.Projects.GenerationWarningType","com.azure.ai.projects.models.GitHubIssueEvent":"Azure.AI.Projects.GitHubIssueEvent","com.azure.ai.projects.models.GitHubIssueRoutineTrigger":"Azure.AI.Projects.GitHubIssueRoutineTrigger","com.azure.ai.projects.models.GraderAzureAIEvaluator":"Azure.AI.Projects.GraderAzureAIEvaluator","com.azure.ai.projects.models.HourlyRecurrenceSchedule":"Azure.AI.Projects.HourlyRecurrenceSchedule","com.azure.ai.projects.models.HumanEvaluationPreviewRuleAction":"Azure.AI.Projects.HumanEvaluationPreviewRuleAction","com.azure.ai.projects.models.IndexType":"Azure.AI.Projects.IndexType","com.azure.ai.projects.models.Insight":"Azure.AI.Projects.Insight","com.azure.ai.projects.models.InsightCluster":"Azure.AI.Projects.InsightCluster","com.azure.ai.projects.models.InsightModelConfiguration":"Azure.AI.Projects.InsightModelConfiguration","com.azure.ai.projects.models.InsightRequest":"Azure.AI.Projects.InsightRequest","com.azure.ai.projects.models.InsightResult":"Azure.AI.Projects.InsightResult","com.azure.ai.projects.models.InsightSample":"Azure.AI.Projects.InsightSample","com.azure.ai.projects.models.InsightScheduleTask":"Azure.AI.Projects.InsightScheduleTask","com.azure.ai.projects.models.InsightSummary":"Azure.AI.Projects.InsightSummary","com.azure.ai.projects.models.InsightType":"Azure.AI.Projects.InsightType","com.azure.ai.projects.models.InsightsMetadata":"Azure.AI.Projects.InsightsMetadata","com.azure.ai.projects.models.InvokeAgentInvocationsApiDispatchPayload":"Azure.AI.Projects.InvokeAgentInvocationsApiDispatchPayload","com.azure.ai.projects.models.InvokeAgentInvocationsApiRoutineAction":"Azure.AI.Projects.InvokeAgentInvocationsApiRoutineAction","com.azure.ai.projects.models.InvokeAgentResponsesApiDispatchPayload":"Azure.AI.Projects.InvokeAgentResponsesApiDispatchPayload","com.azure.ai.projects.models.InvokeAgentResponsesApiRoutineAction":"Azure.AI.Projects.InvokeAgentResponsesApiRoutineAction","com.azure.ai.projects.models.JobStatus":"Azure.AI.Projects.JobStatus","com.azure.ai.projects.models.ListVersionsRequestType":"Azure.AI.Projects.listVersions.RequestType.anonymous","com.azure.ai.projects.models.LoraConfig":"Azure.AI.Projects.LoraConfig","com.azure.ai.projects.models.ManagedAzureAISearchIndex":"Azure.AI.Projects.ManagedAzureAISearchIndex","com.azure.ai.projects.models.ModelCredentialInput":"Azure.AI.Projects.ModelCredentialRequest","com.azure.ai.projects.models.ModelDeployment":"Azure.AI.Projects.ModelDeployment","com.azure.ai.projects.models.ModelDeploymentSku":"Azure.AI.Projects.Sku","com.azure.ai.projects.models.ModelPendingUploadInput":"Azure.AI.Projects.ModelPendingUploadRequest","com.azure.ai.projects.models.ModelPendingUploadResult":"Azure.AI.Projects.ModelPendingUploadResponse","com.azure.ai.projects.models.ModelSamplingParams":"Azure.AI.Projects.ModelSamplingParams","com.azure.ai.projects.models.ModelSourceData":"Azure.AI.Projects.ModelSourceData","com.azure.ai.projects.models.ModelVersion":"Azure.AI.Projects.ModelVersion","com.azure.ai.projects.models.MonthlyRecurrenceSchedule":"Azure.AI.Projects.MonthlyRecurrenceSchedule","com.azure.ai.projects.models.NoAuthenticationCredential":"Azure.AI.Projects.NoAuthenticationCredentials","com.azure.ai.projects.models.OneTimeTrigger":"Azure.AI.Projects.OneTimeTrigger","com.azure.ai.projects.models.OperationStatus":"Azure.Core.Foundations.OperationState","com.azure.ai.projects.models.PendingUploadRequest":"Azure.AI.Projects.PendingUploadRequest","com.azure.ai.projects.models.PendingUploadResponse":"Azure.AI.Projects.PendingUploadResponse","com.azure.ai.projects.models.PendingUploadType":"Azure.AI.Projects.PendingUploadType","com.azure.ai.projects.models.PromptBasedEvaluatorDefinition":"Azure.AI.Projects.PromptBasedEvaluatorDefinition","com.azure.ai.projects.models.PromptDataGenerationJobSource":"Azure.AI.Projects.PromptDataGenerationJobSource","com.azure.ai.projects.models.PromptEvaluatorGenerationJobSource":"Azure.AI.Projects.PromptEvaluatorGenerationJobSource","com.azure.ai.projects.models.RecurrenceSchedule":"Azure.AI.Projects.RecurrenceSchedule","com.azure.ai.projects.models.RecurrenceTrigger":"Azure.AI.Projects.RecurrenceTrigger","com.azure.ai.projects.models.RecurrenceType":"Azure.AI.Projects.RecurrenceType","com.azure.ai.projects.models.RedTeam":"Azure.AI.Projects.RedTeam","com.azure.ai.projects.models.ReinforcementFineTuningDataGenerationJob":"Azure.AI.Projects.ReinforcementFineTuningDataGenerationJob","com.azure.ai.projects.models.ReinforcementFineTuningDataGenerationJobInputs":"Azure.AI.Projects.ReinforcementFineTuningDataGenerationJobInputs","com.azure.ai.projects.models.ReinforcementFineTuningDataGenerationJobOutputConfiguration":"Azure.AI.Projects.ReinforcementFineTuningDataGenerationJobOutputConfiguration","com.azure.ai.projects.models.RiskCategory":"Azure.AI.Projects.RiskCategory","com.azure.ai.projects.models.Routine":"Azure.AI.Projects.Routine","com.azure.ai.projects.models.RoutineAction":"Azure.AI.Projects.RoutineAction","com.azure.ai.projects.models.RoutineActionType":"Azure.AI.Projects.RoutineActionType","com.azure.ai.projects.models.RoutineAttemptSource":"Azure.AI.Projects.RoutineAttemptSource","com.azure.ai.projects.models.RoutineAuthorization":"Azure.AI.Projects.RoutineAuthorization","com.azure.ai.projects.models.RoutineDispatchIdentity":"Azure.AI.Projects.RoutineDispatchIdentity","com.azure.ai.projects.models.RoutineDispatchPayload":"Azure.AI.Projects.RoutineDispatchPayload","com.azure.ai.projects.models.RoutineDispatchPayloadType":"Azure.AI.Projects.RoutineDispatchPayloadType","com.azure.ai.projects.models.RoutineRun":"Azure.AI.Projects.RoutineRun","com.azure.ai.projects.models.RoutineRunPhase":"Azure.AI.Projects.RoutineRunPhase","com.azure.ai.projects.models.RoutineTrigger":"Azure.AI.Projects.RoutineTrigger","com.azure.ai.projects.models.RoutineTriggerType":"Azure.AI.Projects.RoutineTriggerType","com.azure.ai.projects.models.RubricBasedEvaluatorDefinition":"Azure.AI.Projects.RubricBasedEvaluatorDefinition","com.azure.ai.projects.models.RubricGenerationInputQualityWarning":"Azure.AI.Projects.RubricGenerationInputQualityWarning","com.azure.ai.projects.models.RubricGenerationInputQualityWarningCode":"Azure.AI.Projects.RubricGenerationInputQualityWarningCode","com.azure.ai.projects.models.RubricGenerationInputQualityWarningSeverity":"Azure.AI.Projects.RubricGenerationInputQualityWarningSeverity","com.azure.ai.projects.models.RubricGenerationInputQualityWarningSource":"Azure.AI.Projects.RubricGenerationInputQualityWarningSource","com.azure.ai.projects.models.SampleType":"Azure.AI.Projects.SampleType","com.azure.ai.projects.models.SasCredential":"Azure.AI.Projects.SASCredentials","com.azure.ai.projects.models.Schedule":"Azure.AI.Projects.Schedule","com.azure.ai.projects.models.ScheduleProvisioningStatus":"Azure.AI.Projects.ScheduleProvisioningStatus","com.azure.ai.projects.models.ScheduleRoutineTrigger":"Azure.AI.Projects.ScheduleRoutineTrigger","com.azure.ai.projects.models.ScheduleRun":"Azure.AI.Projects.ScheduleRun","com.azure.ai.projects.models.ScheduleTask":"Azure.AI.Projects.ScheduleTask","com.azure.ai.projects.models.ScheduleTaskType":"Azure.AI.Projects.ScheduleTaskType","com.azure.ai.projects.models.SimpleQnADataGenerationJobConfiguration":"Azure.AI.Projects.SimpleQnADataGenerationJobConfiguration","com.azure.ai.projects.models.SimpleQnAFineTuningQuestionType":"Azure.AI.Projects.SimpleQnAFineTuningQuestionType","com.azure.ai.projects.models.SimulationSeedDataGenerationJobConfiguration":"Azure.AI.Projects.SimulationSeedDataGenerationJobConfiguration","com.azure.ai.projects.models.SkillDetails":"Azure.AI.Projects.Skill","com.azure.ai.projects.models.SkillFileDetails":"TypeSpec.Http.File","com.azure.ai.projects.models.SkillInlineContent":"Azure.AI.Projects.SkillInlineContent","com.azure.ai.projects.models.SkillVersion":"Azure.AI.Projects.SkillVersion","com.azure.ai.projects.models.SupervisedFineTuningDataGenerationJob":"Azure.AI.Projects.SupervisedFineTuningDataGenerationJob","com.azure.ai.projects.models.SupervisedFineTuningDataGenerationJobInputs":"Azure.AI.Projects.SupervisedFineTuningDataGenerationJobInputs","com.azure.ai.projects.models.SupervisedFineTuningDataGenerationJobOutputConfiguration":"Azure.AI.Projects.SupervisedFineTuningDataGenerationJobOutputConfiguration","com.azure.ai.projects.models.Target":"Azure.AI.Projects.FoundryEvaluationTarget","com.azure.ai.projects.models.TargetConfig":"Azure.AI.Projects.RedTeamTargetConfig","com.azure.ai.projects.models.TaxonomyCategory":"Azure.AI.Projects.TaxonomyCategory","com.azure.ai.projects.models.TaxonomySubCategory":"Azure.AI.Projects.TaxonomySubCategory","com.azure.ai.projects.models.TestingCriterionAzureAIEvaluator":"Azure.AI.Projects.TestingCriterionAzureAIEvaluator","com.azure.ai.projects.models.TimerRoutineTrigger":"Azure.AI.Projects.TimerRoutineTrigger","com.azure.ai.projects.models.ToolDescription":"Azure.AI.Projects.ToolDescription","com.azure.ai.projects.models.ToolUseFineTuningDataGenerationJobConfiguration":"Azure.AI.Projects.ToolUseFineTuningDataGenerationJobConfiguration","com.azure.ai.projects.models.TracesDataGenerationJobConfiguration":"Azure.AI.Projects.TracesDataGenerationJobConfiguration","com.azure.ai.projects.models.TracesDataGenerationJobSource":"Azure.AI.Projects.TracesDataGenerationJobSource","com.azure.ai.projects.models.TracesEvaluatorGenerationJobSource":"Azure.AI.Projects.TracesEvaluatorGenerationJobSource","com.azure.ai.projects.models.TreatmentEffectType":"Azure.AI.Projects.TreatmentEffectType","com.azure.ai.projects.models.Trigger":"Azure.AI.Projects.Trigger","com.azure.ai.projects.models.TriggerType":"Azure.AI.Projects.TriggerType","com.azure.ai.projects.models.UpdateModelVersionInput":"Azure.AI.Projects.UpdateModelVersionRequest","com.azure.ai.projects.models.WeeklyRecurrenceSchedule":"Azure.AI.Projects.WeeklyRecurrenceSchedule"},"generatedFiles":["src/main/java/com/azure/ai/projects/AIProjectClientBuilder.java","src/main/java/com/azure/ai/projects/AIProjectsServiceVersion.java","src/main/java/com/azure/ai/projects/BetaAgentInsightMonitorsAsyncClient.java","src/main/java/com/azure/ai/projects/BetaAgentInsightMonitorsClient.java","src/main/java/com/azure/ai/projects/BetaEvaluationTaxonomiesAsyncClient.java","src/main/java/com/azure/ai/projects/BetaEvaluationTaxonomiesClient.java","src/main/java/com/azure/ai/projects/BetaEvaluatorsAsyncClient.java","src/main/java/com/azure/ai/projects/BetaEvaluatorsClient.java","src/main/java/com/azure/ai/projects/BetaInsightsAsyncClient.java","src/main/java/com/azure/ai/projects/BetaInsightsClient.java","src/main/java/com/azure/ai/projects/BetaModelsAsyncClient.java","src/main/java/com/azure/ai/projects/BetaModelsClient.java","src/main/java/com/azure/ai/projects/BetaRedTeamsAsyncClient.java","src/main/java/com/azure/ai/projects/BetaRedTeamsClient.java","src/main/java/com/azure/ai/projects/BetaRoutinesAsyncClient.java","src/main/java/com/azure/ai/projects/BetaRoutinesClient.java","src/main/java/com/azure/ai/projects/BetaSchedulesAsyncClient.java","src/main/java/com/azure/ai/projects/BetaSchedulesClient.java","src/main/java/com/azure/ai/projects/BetaSkillsAsyncClient.java","src/main/java/com/azure/ai/projects/BetaSkillsClient.java","src/main/java/com/azure/ai/projects/ConnectionsAsyncClient.java","src/main/java/com/azure/ai/projects/ConnectionsClient.java","src/main/java/com/azure/ai/projects/DatasetsAsyncClient.java","src/main/java/com/azure/ai/projects/DatasetsClient.java","src/main/java/com/azure/ai/projects/DeploymentsAsyncClient.java","src/main/java/com/azure/ai/projects/DeploymentsClient.java","src/main/java/com/azure/ai/projects/EvaluationRulesAsyncClient.java","src/main/java/com/azure/ai/projects/EvaluationRulesClient.java","src/main/java/com/azure/ai/projects/EvaluatorsAsyncClient.java","src/main/java/com/azure/ai/projects/EvaluatorsClient.java","src/main/java/com/azure/ai/projects/IndexesAsyncClient.java","src/main/java/com/azure/ai/projects/IndexesClient.java","src/main/java/com/azure/ai/projects/implementation/AIProjectClientImpl.java","src/main/java/com/azure/ai/projects/implementation/BetaAgentInsightMonitorsImpl.java","src/main/java/com/azure/ai/projects/implementation/BetaEvaluationTaxonomiesImpl.java","src/main/java/com/azure/ai/projects/implementation/BetaEvaluatorsImpl.java","src/main/java/com/azure/ai/projects/implementation/BetaInsightsImpl.java","src/main/java/com/azure/ai/projects/implementation/BetaModelsImpl.java","src/main/java/com/azure/ai/projects/implementation/BetaRedTeamsImpl.java","src/main/java/com/azure/ai/projects/implementation/BetaRoutinesImpl.java","src/main/java/com/azure/ai/projects/implementation/BetaSchedulesImpl.java","src/main/java/com/azure/ai/projects/implementation/BetaSkillsImpl.java","src/main/java/com/azure/ai/projects/implementation/ConnectionsImpl.java","src/main/java/com/azure/ai/projects/implementation/DatasetsImpl.java","src/main/java/com/azure/ai/projects/implementation/DeploymentsImpl.java","src/main/java/com/azure/ai/projects/implementation/EvaluationRulesImpl.java","src/main/java/com/azure/ai/projects/implementation/EvaluatorsImpl.java","src/main/java/com/azure/ai/projects/implementation/IndexesImpl.java","src/main/java/com/azure/ai/projects/implementation/JsonMergePatchHelper.java","src/main/java/com/azure/ai/projects/implementation/MultipartFormDataHelper.java","src/main/java/com/azure/ai/projects/implementation/OperationLocationPollingStrategy.java","src/main/java/com/azure/ai/projects/implementation/PollingUtils.java","src/main/java/com/azure/ai/projects/implementation/SyncOperationLocationPollingStrategy.java","src/main/java/com/azure/ai/projects/implementation/models/CreateOrUpdateRoutineRequest.java","src/main/java/com/azure/ai/projects/implementation/models/CreateSkillVersionRequest.java","src/main/java/com/azure/ai/projects/implementation/models/DispatchRoutineAsyncRequest.java","src/main/java/com/azure/ai/projects/implementation/models/FoundryFeaturesOptInKeys.java","src/main/java/com/azure/ai/projects/implementation/models/UpdateSkillRequest.java","src/main/java/com/azure/ai/projects/implementation/models/package-info.java","src/main/java/com/azure/ai/projects/implementation/package-info.java","src/main/java/com/azure/ai/projects/models/AIProjectIndex.java","src/main/java/com/azure/ai/projects/models/AgentClusterInsightRequest.java","src/main/java/com/azure/ai/projects/models/AgentClusterInsightResult.java","src/main/java/com/azure/ai/projects/models/AgentDataGenerationJobSource.java","src/main/java/com/azure/ai/projects/models/AgentEvaluatorGenerationJobSource.java","src/main/java/com/azure/ai/projects/models/AgentInsight.java","src/main/java/com/azure/ai/projects/models/AgentInsightDetails.java","src/main/java/com/azure/ai/projects/models/AgentInsightEstimatedCost.java","src/main/java/com/azure/ai/projects/models/AgentInsightHighlightedTrace.java","src/main/java/com/azure/ai/projects/models/AgentInsightLinkedTrace.java","src/main/java/com/azure/ai/projects/models/AgentInsightMonitor.java","src/main/java/com/azure/ai/projects/models/AgentInsightMonitorCreate.java","src/main/java/com/azure/ai/projects/models/AgentInsightMonitorListItem.java","src/main/java/com/azure/ai/projects/models/AgentInsightMonitorUpdate.java","src/main/java/com/azure/ai/projects/models/AgentInsightOverviewSource.java","src/main/java/com/azure/ai/projects/models/AgentInsightPromptSurface.java","src/main/java/com/azure/ai/projects/models/AgentInsightProposedFix.java","src/main/java/com/azure/ai/projects/models/AgentInsightProposedFixChange.java","src/main/java/com/azure/ai/projects/models/AgentInsightProposedFixKind.java","src/main/java/com/azure/ai/projects/models/AgentInsightRecommendedAction.java","src/main/java/com/azure/ai/projects/models/AgentInsightRun.java","src/main/java/com/azure/ai/projects/models/AgentInsightRunCreate.java","src/main/java/com/azure/ai/projects/models/AgentInsightRunResult.java","src/main/java/com/azure/ai/projects/models/AgentInsightRunTrigger.java","src/main/java/com/azure/ai/projects/models/AgentInsightSeverity.java","src/main/java/com/azure/ai/projects/models/AgentInsightStatus.java","src/main/java/com/azure/ai/projects/models/AgentInsightSuspension.java","src/main/java/com/azure/ai/projects/models/AgentInsightTokenUsage.java","src/main/java/com/azure/ai/projects/models/AgentInsightUpdate.java","src/main/java/com/azure/ai/projects/models/AgentInsightsOverview.java","src/main/java/com/azure/ai/projects/models/AgentInsightsOverviewOverride.java","src/main/java/com/azure/ai/projects/models/AgentTaxonomyInput.java","src/main/java/com/azure/ai/projects/models/AgenticIdentityPreviewCredential.java","src/main/java/com/azure/ai/projects/models/ApiError.java","src/main/java/com/azure/ai/projects/models/ApiKeyCredential.java","src/main/java/com/azure/ai/projects/models/ArtifactProfile.java","src/main/java/com/azure/ai/projects/models/AttackStrategy.java","src/main/java/com/azure/ai/projects/models/AzureAIAgentTarget.java","src/main/java/com/azure/ai/projects/models/AzureAIModelTarget.java","src/main/java/com/azure/ai/projects/models/AzureAISearchIndex.java","src/main/java/com/azure/ai/projects/models/AzureOpenAIModelConfiguration.java","src/main/java/com/azure/ai/projects/models/BaseCredential.java","src/main/java/com/azure/ai/projects/models/BlobReference.java","src/main/java/com/azure/ai/projects/models/BlobReferenceSasCredential.java","src/main/java/com/azure/ai/projects/models/ChartCoordinate.java","src/main/java/com/azure/ai/projects/models/ClusterInsightResult.java","src/main/java/com/azure/ai/projects/models/ClusterTokenUsage.java","src/main/java/com/azure/ai/projects/models/CodeBasedEvaluatorDefinition.java","src/main/java/com/azure/ai/projects/models/Connection.java","src/main/java/com/azure/ai/projects/models/ConnectionType.java","src/main/java/com/azure/ai/projects/models/ContinuousEvaluationRuleAction.java","src/main/java/com/azure/ai/projects/models/CosmosDBIndex.java","src/main/java/com/azure/ai/projects/models/CreateAsyncResponse.java","src/main/java/com/azure/ai/projects/models/CreateSkillVersionFromFilesBody.java","src/main/java/com/azure/ai/projects/models/CredentialType.java","src/main/java/com/azure/ai/projects/models/CronTrigger.java","src/main/java/com/azure/ai/projects/models/CustomCredential.java","src/main/java/com/azure/ai/projects/models/CustomRoutineTrigger.java","src/main/java/com/azure/ai/projects/models/DailyRecurrenceSchedule.java","src/main/java/com/azure/ai/projects/models/DataGenerationJob.java","src/main/java/com/azure/ai/projects/models/DataGenerationJobConfiguration.java","src/main/java/com/azure/ai/projects/models/DataGenerationJobInputs.java","src/main/java/com/azure/ai/projects/models/DataGenerationJobOutput.java","src/main/java/com/azure/ai/projects/models/DataGenerationJobOutputType.java","src/main/java/com/azure/ai/projects/models/DataGenerationJobOutputWriteMode.java","src/main/java/com/azure/ai/projects/models/DataGenerationJobResult.java","src/main/java/com/azure/ai/projects/models/DataGenerationJobScenario.java","src/main/java/com/azure/ai/projects/models/DataGenerationJobSource.java","src/main/java/com/azure/ai/projects/models/DataGenerationJobSourceType.java","src/main/java/com/azure/ai/projects/models/DataGenerationJobType.java","src/main/java/com/azure/ai/projects/models/DataGenerationModelOptions.java","src/main/java/com/azure/ai/projects/models/DataGenerationTokenUsage.java","src/main/java/com/azure/ai/projects/models/DatasetCredential.java","src/main/java/com/azure/ai/projects/models/DatasetDataGenerationJobOutput.java","src/main/java/com/azure/ai/projects/models/DatasetEvaluatorGenerationJobSource.java","src/main/java/com/azure/ai/projects/models/DatasetReference.java","src/main/java/com/azure/ai/projects/models/DatasetType.java","src/main/java/com/azure/ai/projects/models/DatasetVersion.java","src/main/java/com/azure/ai/projects/models/Deployment.java","src/main/java/com/azure/ai/projects/models/DeploymentType.java","src/main/java/com/azure/ai/projects/models/Dimension.java","src/main/java/com/azure/ai/projects/models/DispatchRoutineResult.java","src/main/java/com/azure/ai/projects/models/EmbeddingConfiguration.java","src/main/java/com/azure/ai/projects/models/EndpointBasedEvaluatorDefinition.java","src/main/java/com/azure/ai/projects/models/EntraIdCredential.java","src/main/java/com/azure/ai/projects/models/EvaluationComparisonInsightRequest.java","src/main/java/com/azure/ai/projects/models/EvaluationComparisonInsightResult.java","src/main/java/com/azure/ai/projects/models/EvaluationDataGenerationJob.java","src/main/java/com/azure/ai/projects/models/EvaluationDataGenerationJobInputs.java","src/main/java/com/azure/ai/projects/models/EvaluationDataGenerationJobOutputConfiguration.java","src/main/java/com/azure/ai/projects/models/EvaluationLevel.java","src/main/java/com/azure/ai/projects/models/EvaluationResult.java","src/main/java/com/azure/ai/projects/models/EvaluationResultSample.java","src/main/java/com/azure/ai/projects/models/EvaluationRule.java","src/main/java/com/azure/ai/projects/models/EvaluationRuleAction.java","src/main/java/com/azure/ai/projects/models/EvaluationRuleActionType.java","src/main/java/com/azure/ai/projects/models/EvaluationRuleEventType.java","src/main/java/com/azure/ai/projects/models/EvaluationRuleFilter.java","src/main/java/com/azure/ai/projects/models/EvaluationRunClusterInsightRequest.java","src/main/java/com/azure/ai/projects/models/EvaluationRunClusterInsightResult.java","src/main/java/com/azure/ai/projects/models/EvaluationRunResultCompareItem.java","src/main/java/com/azure/ai/projects/models/EvaluationRunResultComparison.java","src/main/java/com/azure/ai/projects/models/EvaluationRunResultSummary.java","src/main/java/com/azure/ai/projects/models/EvaluationScheduleTask.java","src/main/java/com/azure/ai/projects/models/EvaluationTaxonomy.java","src/main/java/com/azure/ai/projects/models/EvaluationTaxonomyInput.java","src/main/java/com/azure/ai/projects/models/EvaluationTaxonomyInputType.java","src/main/java/com/azure/ai/projects/models/EvaluatorCategory.java","src/main/java/com/azure/ai/projects/models/EvaluatorCredentialInput.java","src/main/java/com/azure/ai/projects/models/EvaluatorDefinition.java","src/main/java/com/azure/ai/projects/models/EvaluatorDefinitionType.java","src/main/java/com/azure/ai/projects/models/EvaluatorGenerationArtifacts.java","src/main/java/com/azure/ai/projects/models/EvaluatorGenerationInputs.java","src/main/java/com/azure/ai/projects/models/EvaluatorGenerationJob.java","src/main/java/com/azure/ai/projects/models/EvaluatorGenerationJobSource.java","src/main/java/com/azure/ai/projects/models/EvaluatorGenerationJobSourceType.java","src/main/java/com/azure/ai/projects/models/EvaluatorGenerationTokenUsage.java","src/main/java/com/azure/ai/projects/models/EvaluatorMetric.java","src/main/java/com/azure/ai/projects/models/EvaluatorMetricDirection.java","src/main/java/com/azure/ai/projects/models/EvaluatorMetricType.java","src/main/java/com/azure/ai/projects/models/EvaluatorType.java","src/main/java/com/azure/ai/projects/models/EvaluatorVersion.java","src/main/java/com/azure/ai/projects/models/FieldMapping.java","src/main/java/com/azure/ai/projects/models/FileDataGenerationJobOutput.java","src/main/java/com/azure/ai/projects/models/FileDataGenerationJobSource.java","src/main/java/com/azure/ai/projects/models/FileDatasetVersion.java","src/main/java/com/azure/ai/projects/models/FolderDatasetVersion.java","src/main/java/com/azure/ai/projects/models/FoundryModelArtifactProfileCategory.java","src/main/java/com/azure/ai/projects/models/FoundryModelArtifactProfileSignal.java","src/main/java/com/azure/ai/projects/models/FoundryModelSourceType.java","src/main/java/com/azure/ai/projects/models/FoundryModelWarning.java","src/main/java/com/azure/ai/projects/models/FoundryModelWarningCode.java","src/main/java/com/azure/ai/projects/models/FoundryModelWeightType.java","src/main/java/com/azure/ai/projects/models/GenerationWarningType.java","src/main/java/com/azure/ai/projects/models/GitHubIssueEvent.java","src/main/java/com/azure/ai/projects/models/GitHubIssueRoutineTrigger.java","src/main/java/com/azure/ai/projects/models/GraderAzureAIEvaluator.java","src/main/java/com/azure/ai/projects/models/HourlyRecurrenceSchedule.java","src/main/java/com/azure/ai/projects/models/HumanEvaluationPreviewRuleAction.java","src/main/java/com/azure/ai/projects/models/IndexType.java","src/main/java/com/azure/ai/projects/models/Insight.java","src/main/java/com/azure/ai/projects/models/InsightCluster.java","src/main/java/com/azure/ai/projects/models/InsightModelConfiguration.java","src/main/java/com/azure/ai/projects/models/InsightRequest.java","src/main/java/com/azure/ai/projects/models/InsightResult.java","src/main/java/com/azure/ai/projects/models/InsightSample.java","src/main/java/com/azure/ai/projects/models/InsightScheduleTask.java","src/main/java/com/azure/ai/projects/models/InsightSummary.java","src/main/java/com/azure/ai/projects/models/InsightType.java","src/main/java/com/azure/ai/projects/models/InsightsMetadata.java","src/main/java/com/azure/ai/projects/models/InvokeAgentInvocationsApiDispatchPayload.java","src/main/java/com/azure/ai/projects/models/InvokeAgentInvocationsApiRoutineAction.java","src/main/java/com/azure/ai/projects/models/InvokeAgentResponsesApiDispatchPayload.java","src/main/java/com/azure/ai/projects/models/InvokeAgentResponsesApiRoutineAction.java","src/main/java/com/azure/ai/projects/models/JobStatus.java","src/main/java/com/azure/ai/projects/models/ListVersionsRequestType.java","src/main/java/com/azure/ai/projects/models/LoraConfig.java","src/main/java/com/azure/ai/projects/models/ManagedAzureAISearchIndex.java","src/main/java/com/azure/ai/projects/models/ModelCredentialInput.java","src/main/java/com/azure/ai/projects/models/ModelDeployment.java","src/main/java/com/azure/ai/projects/models/ModelDeploymentSku.java","src/main/java/com/azure/ai/projects/models/ModelPendingUploadInput.java","src/main/java/com/azure/ai/projects/models/ModelPendingUploadResult.java","src/main/java/com/azure/ai/projects/models/ModelSamplingParams.java","src/main/java/com/azure/ai/projects/models/ModelSourceData.java","src/main/java/com/azure/ai/projects/models/ModelVersion.java","src/main/java/com/azure/ai/projects/models/MonthlyRecurrenceSchedule.java","src/main/java/com/azure/ai/projects/models/NoAuthenticationCredential.java","src/main/java/com/azure/ai/projects/models/OneTimeTrigger.java","src/main/java/com/azure/ai/projects/models/OperationStatus.java","src/main/java/com/azure/ai/projects/models/PendingUploadRequest.java","src/main/java/com/azure/ai/projects/models/PendingUploadResponse.java","src/main/java/com/azure/ai/projects/models/PendingUploadType.java","src/main/java/com/azure/ai/projects/models/PromptBasedEvaluatorDefinition.java","src/main/java/com/azure/ai/projects/models/PromptDataGenerationJobSource.java","src/main/java/com/azure/ai/projects/models/PromptEvaluatorGenerationJobSource.java","src/main/java/com/azure/ai/projects/models/RecurrenceSchedule.java","src/main/java/com/azure/ai/projects/models/RecurrenceTrigger.java","src/main/java/com/azure/ai/projects/models/RecurrenceType.java","src/main/java/com/azure/ai/projects/models/RedTeam.java","src/main/java/com/azure/ai/projects/models/ReinforcementFineTuningDataGenerationJob.java","src/main/java/com/azure/ai/projects/models/ReinforcementFineTuningDataGenerationJobInputs.java","src/main/java/com/azure/ai/projects/models/ReinforcementFineTuningDataGenerationJobOutputConfiguration.java","src/main/java/com/azure/ai/projects/models/RiskCategory.java","src/main/java/com/azure/ai/projects/models/Routine.java","src/main/java/com/azure/ai/projects/models/RoutineAction.java","src/main/java/com/azure/ai/projects/models/RoutineActionType.java","src/main/java/com/azure/ai/projects/models/RoutineAttemptSource.java","src/main/java/com/azure/ai/projects/models/RoutineAuthorization.java","src/main/java/com/azure/ai/projects/models/RoutineDispatchIdentity.java","src/main/java/com/azure/ai/projects/models/RoutineDispatchPayload.java","src/main/java/com/azure/ai/projects/models/RoutineDispatchPayloadType.java","src/main/java/com/azure/ai/projects/models/RoutineRun.java","src/main/java/com/azure/ai/projects/models/RoutineRunPhase.java","src/main/java/com/azure/ai/projects/models/RoutineTrigger.java","src/main/java/com/azure/ai/projects/models/RoutineTriggerType.java","src/main/java/com/azure/ai/projects/models/RubricBasedEvaluatorDefinition.java","src/main/java/com/azure/ai/projects/models/RubricGenerationInputQualityWarning.java","src/main/java/com/azure/ai/projects/models/RubricGenerationInputQualityWarningCode.java","src/main/java/com/azure/ai/projects/models/RubricGenerationInputQualityWarningSeverity.java","src/main/java/com/azure/ai/projects/models/RubricGenerationInputQualityWarningSource.java","src/main/java/com/azure/ai/projects/models/SampleType.java","src/main/java/com/azure/ai/projects/models/SasCredential.java","src/main/java/com/azure/ai/projects/models/Schedule.java","src/main/java/com/azure/ai/projects/models/ScheduleProvisioningStatus.java","src/main/java/com/azure/ai/projects/models/ScheduleRoutineTrigger.java","src/main/java/com/azure/ai/projects/models/ScheduleRun.java","src/main/java/com/azure/ai/projects/models/ScheduleTask.java","src/main/java/com/azure/ai/projects/models/ScheduleTaskType.java","src/main/java/com/azure/ai/projects/models/SimpleQnADataGenerationJobConfiguration.java","src/main/java/com/azure/ai/projects/models/SimpleQnAFineTuningQuestionType.java","src/main/java/com/azure/ai/projects/models/SimulationSeedDataGenerationJobConfiguration.java","src/main/java/com/azure/ai/projects/models/SkillDetails.java","src/main/java/com/azure/ai/projects/models/SkillFileDetails.java","src/main/java/com/azure/ai/projects/models/SkillInlineContent.java","src/main/java/com/azure/ai/projects/models/SkillVersion.java","src/main/java/com/azure/ai/projects/models/SupervisedFineTuningDataGenerationJob.java","src/main/java/com/azure/ai/projects/models/SupervisedFineTuningDataGenerationJobInputs.java","src/main/java/com/azure/ai/projects/models/SupervisedFineTuningDataGenerationJobOutputConfiguration.java","src/main/java/com/azure/ai/projects/models/Target.java","src/main/java/com/azure/ai/projects/models/TargetConfig.java","src/main/java/com/azure/ai/projects/models/TaxonomyCategory.java","src/main/java/com/azure/ai/projects/models/TaxonomySubCategory.java","src/main/java/com/azure/ai/projects/models/TestingCriterionAzureAIEvaluator.java","src/main/java/com/azure/ai/projects/models/TimerRoutineTrigger.java","src/main/java/com/azure/ai/projects/models/ToolDescription.java","src/main/java/com/azure/ai/projects/models/ToolUseFineTuningDataGenerationJobConfiguration.java","src/main/java/com/azure/ai/projects/models/TracesDataGenerationJobConfiguration.java","src/main/java/com/azure/ai/projects/models/TracesDataGenerationJobSource.java","src/main/java/com/azure/ai/projects/models/TracesEvaluatorGenerationJobSource.java","src/main/java/com/azure/ai/projects/models/TreatmentEffectType.java","src/main/java/com/azure/ai/projects/models/Trigger.java","src/main/java/com/azure/ai/projects/models/TriggerType.java","src/main/java/com/azure/ai/projects/models/UpdateModelVersionInput.java","src/main/java/com/azure/ai/projects/models/WeeklyRecurrenceSchedule.java","src/main/java/com/azure/ai/projects/models/package-info.java","src/main/java/com/azure/ai/projects/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file diff --git a/sdk/ai/azure-ai-projects/tsp-location.yaml b/sdk/ai/azure-ai-projects/tsp-location.yaml index cec5602ae2a3a..8cd00aa4b4aec 100644 --- a/sdk/ai/azure-ai-projects/tsp-location.yaml +++ b/sdk/ai/azure-ai-projects/tsp-location.yaml @@ -1,5 +1,5 @@ directory: specification/ai-foundry/data-plane/Foundry/src/sdk-java-azure-ai-projects -commit: ba8a5e96e8c92e540062922f7bed5a06920f400c +commit: cd75f537d67aef85e3278a6e155dd12945701081 repo: Azure/azure-rest-api-specs additionalDirectories: - specification/ai-foundry/data-plane/Foundry/src/sdk-common diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/HostedAgentDeployment.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/HostedAgentDeployment.java index 6824fdf953e46..e8818a20e76f8 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/HostedAgentDeployment.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/HostedAgentDeployment.java @@ -32,6 +32,11 @@ public final class HostedAgentDeployment extends AgentDeploymentProperties { */ private Integer maxReplicas; + /* + * Gets or sets the provisioning state of the agent deployment. + */ + private AgentDeploymentProvisioningState provisioningState; + /** * Creates an instance of HostedAgentDeployment class. */ @@ -88,6 +93,16 @@ public HostedAgentDeployment withMaxReplicas(Integer maxReplicas) { return this; } + /** + * Get the provisioningState property: Gets or sets the provisioning state of the agent deployment. + * + * @return the provisioningState value. + */ + @Override + public AgentDeploymentProvisioningState provisioningState() { + return this.provisioningState; + } + /** * {@inheritDoc} */ @@ -206,8 +221,8 @@ public static HostedAgentDeployment fromJson(JsonReader jsonReader) throws IOExc = reader.readArray(reader1 -> VersionedAgentReference.fromJson(reader1)); deserializedHostedAgentDeployment.withAgents(agents); } else if ("provisioningState".equals(fieldName)) { - deserializedHostedAgentDeployment - .withProvisioningState(AgentDeploymentProvisioningState.fromString(reader.getString())); + deserializedHostedAgentDeployment.provisioningState + = AgentDeploymentProvisioningState.fromString(reader.getString()); } else if ("deploymentType".equals(fieldName)) { deserializedHostedAgentDeployment.deploymentType = AgentDeploymentType.fromString(reader.getString()); diff --git a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedAgentDeployment.java b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedAgentDeployment.java index 79103b0d73d0c..c1ce61c57681d 100644 --- a/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedAgentDeployment.java +++ b/sdk/cognitiveservices/azure-resourcemanager-cognitiveservices/src/main/java/com/azure/resourcemanager/cognitiveservices/models/ManagedAgentDeployment.java @@ -23,6 +23,11 @@ public final class ManagedAgentDeployment extends AgentDeploymentProperties { */ private AgentDeploymentType deploymentType = AgentDeploymentType.MANAGED; + /* + * Gets or sets the provisioning state of the agent deployment. + */ + private AgentDeploymentProvisioningState provisioningState; + /** * Creates an instance of ManagedAgentDeployment class. */ @@ -39,6 +44,16 @@ public AgentDeploymentType deploymentType() { return this.deploymentType; } + /** + * Get the provisioningState property: Gets or sets the provisioning state of the agent deployment. + * + * @return the provisioningState value. + */ + @Override + public AgentDeploymentProvisioningState provisioningState() { + return this.provisioningState; + } + /** * {@inheritDoc} */ @@ -155,8 +170,8 @@ public static ManagedAgentDeployment fromJson(JsonReader jsonReader) throws IOEx = reader.readArray(reader1 -> VersionedAgentReference.fromJson(reader1)); deserializedManagedAgentDeployment.withAgents(agents); } else if ("provisioningState".equals(fieldName)) { - deserializedManagedAgentDeployment - .withProvisioningState(AgentDeploymentProvisioningState.fromString(reader.getString())); + deserializedManagedAgentDeployment.provisioningState + = AgentDeploymentProvisioningState.fromString(reader.getString()); } else if ("deploymentType".equals(fieldName)) { deserializedManagedAgentDeployment.deploymentType = AgentDeploymentType.fromString(reader.getString()); diff --git a/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/models/EdgeActionVersionProperties.java b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/models/EdgeActionVersionProperties.java index a115bba1f0c4c..a937ae88d0cd3 100644 --- a/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/models/EdgeActionVersionProperties.java +++ b/sdk/edgeactions/azure-resourcemanager-edgeactions/src/main/java/com/azure/resourcemanager/edgeactions/models/EdgeActionVersionProperties.java @@ -56,7 +56,7 @@ public EdgeActionVersionProperties() { /** * Get the deploymentType property: The deployment type for the Edge Action version. Set this value when creating * the version. When updating an existing version, any supplied value must match the existing value. - * + * * @return the deploymentType value. */ public EdgeActionVersionDeploymentType deploymentType() { @@ -66,7 +66,7 @@ public EdgeActionVersionDeploymentType deploymentType() { /** * Set the deploymentType property: The deployment type for the Edge Action version. Set this value when creating * the version. When updating an existing version, any supplied value must match the existing value. - * + * * @param deploymentType the deploymentType value to set. * @return the EdgeActionVersionProperties object itself. */ @@ -77,7 +77,7 @@ public EdgeActionVersionProperties withDeploymentType(EdgeActionVersionDeploymen /** * Get the validationStatus property: The validation status. - * + * * @return the validationStatus value. */ public EdgeActionVersionValidationStatus validationStatus() { @@ -86,7 +86,7 @@ public EdgeActionVersionValidationStatus validationStatus() { /** * Get the provisioningState property: The provisioning state. - * + * * @return the provisioningState value. */ public ProvisioningState provisioningState() { @@ -98,7 +98,7 @@ public ProvisioningState provisioningState() { * Edge Action has no default version, the service makes the new version the default even when false is supplied. If * another default version exists, supplying true is rejected. When updating an existing version, any supplied value * must match the existing value. Use swapDefault to change the default version. - * + * * @return the isDefaultVersion value. */ public EdgeActionIsDefaultVersion isDefaultVersion() { @@ -110,7 +110,7 @@ public EdgeActionIsDefaultVersion isDefaultVersion() { * Edge Action has no default version, the service makes the new version the default even when false is supplied. If * another default version exists, supplying true is rejected. When updating an existing version, any supplied value * must match the existing value. Use swapDefault to change the default version. - * + * * @param isDefaultVersion the isDefaultVersion value to set. * @return the EdgeActionVersionProperties object itself. */ @@ -121,7 +121,7 @@ public EdgeActionVersionProperties withIsDefaultVersion(EdgeActionIsDefaultVersi /** * Get the lastPackageUpdateTime property: The last update time in UTC for package update. - * + * * @return the lastPackageUpdateTime value. */ public OffsetDateTime lastPackageUpdateTime() { @@ -143,7 +143,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { /** * Reads an instance of EdgeActionVersionProperties from the JsonReader. - * + * * @param jsonReader The JsonReader being read. * @return An instance of EdgeActionVersionProperties if the JsonReader was pointing to an instance of it, or null * if it was pointing to JSON null. diff --git a/sdk/healthinsights/azure-health-insights-radiologyinsights/src/main/java/com/azure/health/insights/radiologyinsights/models/FhirR4Condition.java b/sdk/healthinsights/azure-health-insights-radiologyinsights/src/main/java/com/azure/health/insights/radiologyinsights/models/FhirR4Condition.java index 68511ac147b8a..30a9d31e20194 100644 --- a/sdk/healthinsights/azure-health-insights-radiologyinsights/src/main/java/com/azure/health/insights/radiologyinsights/models/FhirR4Condition.java +++ b/sdk/healthinsights/azure-health-insights-radiologyinsights/src/main/java/com/azure/health/insights/radiologyinsights/models/FhirR4Condition.java @@ -548,10 +548,10 @@ public static FhirR4Condition fromJson(JsonReader jsonReader) throws IOException deserializedFhirR4Condition.setMeta(meta); deserializedFhirR4Condition.setImplicitRules(implicitRules); deserializedFhirR4Condition.setLanguage(language); - deserializedFhirR4Condition.setText(text); - deserializedFhirR4Condition.setContained(contained); - deserializedFhirR4Condition.setExtension(extension); - deserializedFhirR4Condition.setModifierExtension(modifierExtension); + deserializedFhirR4Condition.text = text; + deserializedFhirR4Condition.contained = contained; + deserializedFhirR4Condition.extension = extension; + deserializedFhirR4Condition.modifierExtension = modifierExtension; deserializedFhirR4Condition.resourceType = resourceType; deserializedFhirR4Condition.identifier = identifier; deserializedFhirR4Condition.clinicalStatus = clinicalStatus; @@ -578,4 +578,72 @@ public static FhirR4Condition fromJson(JsonReader jsonReader) throws IOException return deserializedFhirR4Condition; }); } + + /* + * Extensions that cannot be ignored + */ + @Generated + private List modifierExtension; + + /* + * Additional Content defined by implementations + */ + @Generated + private List extension; + + /* + * Contained, inline Resources + */ + @Generated + private List contained; + + /* + * Text summary of the resource, for human interpretation + */ + @Generated + private FhirR4Narrative text; + + /** + * Get the modifierExtension property: Extensions that cannot be ignored. + * + * @return the modifierExtension value. + */ + @Generated + @Override + public List getModifierExtension() { + return this.modifierExtension; + } + + /** + * Get the extension property: Additional Content defined by implementations. + * + * @return the extension value. + */ + @Generated + @Override + public List getExtension() { + return this.extension; + } + + /** + * Get the contained property: Contained, inline Resources. + * + * @return the contained value. + */ + @Generated + @Override + public List getContained() { + return this.contained; + } + + /** + * Get the text property: Text summary of the resource, for human interpretation. + * + * @return the text value. + */ + @Generated + @Override + public FhirR4Narrative getText() { + return this.text; + } } diff --git a/sdk/healthinsights/azure-health-insights-radiologyinsights/src/main/java/com/azure/health/insights/radiologyinsights/models/FhirR4Observation.java b/sdk/healthinsights/azure-health-insights-radiologyinsights/src/main/java/com/azure/health/insights/radiologyinsights/models/FhirR4Observation.java index 4fb47ff8fbe75..694b5282bf4a1 100644 --- a/sdk/healthinsights/azure-health-insights-radiologyinsights/src/main/java/com/azure/health/insights/radiologyinsights/models/FhirR4Observation.java +++ b/sdk/healthinsights/azure-health-insights-radiologyinsights/src/main/java/com/azure/health/insights/radiologyinsights/models/FhirR4Observation.java @@ -733,10 +733,10 @@ public static FhirR4Observation fromJson(JsonReader jsonReader) throws IOExcepti deserializedFhirR4Observation.setMeta(meta); deserializedFhirR4Observation.setImplicitRules(implicitRules); deserializedFhirR4Observation.setLanguage(language); - deserializedFhirR4Observation.setText(text); - deserializedFhirR4Observation.setContained(contained); - deserializedFhirR4Observation.setExtension(extension); - deserializedFhirR4Observation.setModifierExtension(modifierExtension); + deserializedFhirR4Observation.text = text; + deserializedFhirR4Observation.contained = contained; + deserializedFhirR4Observation.extension = extension; + deserializedFhirR4Observation.modifierExtension = modifierExtension; deserializedFhirR4Observation.resourceType = resourceType; deserializedFhirR4Observation.identifier = identifier; deserializedFhirR4Observation.category = category; @@ -770,4 +770,72 @@ public static FhirR4Observation fromJson(JsonReader jsonReader) throws IOExcepti return deserializedFhirR4Observation; }); } + + /* + * Extensions that cannot be ignored + */ + @Generated + private List modifierExtension; + + /* + * Additional Content defined by implementations + */ + @Generated + private List extension; + + /* + * Contained, inline Resources + */ + @Generated + private List contained; + + /* + * Text summary of the resource, for human interpretation + */ + @Generated + private FhirR4Narrative text; + + /** + * Get the modifierExtension property: Extensions that cannot be ignored. + * + * @return the modifierExtension value. + */ + @Generated + @Override + public List getModifierExtension() { + return this.modifierExtension; + } + + /** + * Get the extension property: Additional Content defined by implementations. + * + * @return the extension value. + */ + @Generated + @Override + public List getExtension() { + return this.extension; + } + + /** + * Get the contained property: Contained, inline Resources. + * + * @return the contained value. + */ + @Generated + @Override + public List getContained() { + return this.contained; + } + + /** + * Get the text property: Text summary of the resource, for human interpretation. + * + * @return the text value. + */ + @Generated + @Override + public FhirR4Narrative getText() { + return this.text; + } } diff --git a/sdk/healthinsights/azure-health-insights-radiologyinsights/src/main/java/com/azure/health/insights/radiologyinsights/models/FhirR4ResearchStudy.java b/sdk/healthinsights/azure-health-insights-radiologyinsights/src/main/java/com/azure/health/insights/radiologyinsights/models/FhirR4ResearchStudy.java index cf6539bbdb6ed..0f4923a69ca08 100644 --- a/sdk/healthinsights/azure-health-insights-radiologyinsights/src/main/java/com/azure/health/insights/radiologyinsights/models/FhirR4ResearchStudy.java +++ b/sdk/healthinsights/azure-health-insights-radiologyinsights/src/main/java/com/azure/health/insights/radiologyinsights/models/FhirR4ResearchStudy.java @@ -598,10 +598,10 @@ public static FhirR4ResearchStudy fromJson(JsonReader jsonReader) throws IOExcep deserializedFhirR4ResearchStudy.setMeta(meta); deserializedFhirR4ResearchStudy.setImplicitRules(implicitRules); deserializedFhirR4ResearchStudy.setLanguage(language); - deserializedFhirR4ResearchStudy.setText(text); - deserializedFhirR4ResearchStudy.setContained(contained); - deserializedFhirR4ResearchStudy.setExtension(extension); - deserializedFhirR4ResearchStudy.setModifierExtension(modifierExtension); + deserializedFhirR4ResearchStudy.text = text; + deserializedFhirR4ResearchStudy.contained = contained; + deserializedFhirR4ResearchStudy.extension = extension; + deserializedFhirR4ResearchStudy.modifierExtension = modifierExtension; deserializedFhirR4ResearchStudy.resourceType = resourceType; deserializedFhirR4ResearchStudy.identifier = identifier; deserializedFhirR4ResearchStudy.title = title; @@ -629,4 +629,72 @@ public static FhirR4ResearchStudy fromJson(JsonReader jsonReader) throws IOExcep return deserializedFhirR4ResearchStudy; }); } + + /* + * Extensions that cannot be ignored + */ + @Generated + private List modifierExtension; + + /* + * Additional Content defined by implementations + */ + @Generated + private List extension; + + /* + * Contained, inline Resources + */ + @Generated + private List contained; + + /* + * Text summary of the resource, for human interpretation + */ + @Generated + private FhirR4Narrative text; + + /** + * Get the modifierExtension property: Extensions that cannot be ignored. + * + * @return the modifierExtension value. + */ + @Generated + @Override + public List getModifierExtension() { + return this.modifierExtension; + } + + /** + * Get the extension property: Additional Content defined by implementations. + * + * @return the extension value. + */ + @Generated + @Override + public List getExtension() { + return this.extension; + } + + /** + * Get the contained property: Contained, inline Resources. + * + * @return the contained value. + */ + @Generated + @Override + public List getContained() { + return this.contained; + } + + /** + * Get the text property: Text summary of the resource, for human interpretation. + * + * @return the text value. + */ + @Generated + @Override + public FhirR4Narrative getText() { + return this.text; + } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSqlRecoveryPoint.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSqlRecoveryPoint.java index 41bb96362b43c..dc318a124a0d5 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSqlRecoveryPoint.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSqlRecoveryPoint.java @@ -26,6 +26,7 @@ public class AzureWorkloadSqlRecoveryPoint extends AzureWorkloadRecoveryPoint { private String objectType = "AzureWorkloadSQLRecoveryPoint"; /* + * * Extended Info that provides data directory details. Will be populated in two cases: * When a specific recovery point is accessed using GetRecoveryPoint * Or when ListRecoveryPoints is called for Log RP only with ExtendedInfo query filter @@ -50,8 +51,8 @@ public String objectType() { } /** - * Get the extendedInfo property: Extended Info that provides data directory details. Will be populated in two - * cases: + * Get the extendedInfo property: + * Extended Info that provides data directory details. Will be populated in two cases: * When a specific recovery point is accessed using GetRecoveryPoint * Or when ListRecoveryPoints is called for Log RP only with ExtendedInfo query filter. * @@ -62,8 +63,8 @@ public AzureWorkloadSqlRecoveryPointExtendedInfo extendedInfo() { } /** - * Set the extendedInfo property: Extended Info that provides data directory details. Will be populated in two - * cases: + * Set the extendedInfo property: + * Extended Info that provides data directory details. Will be populated in two cases: * When a specific recovery point is accessed using GetRecoveryPoint * Or when ListRecoveryPoints is called for Log RP only with ExtendedInfo query filter. * diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/InquiryInfo.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/InquiryInfo.java index 4e21511c6bd12..6e44fe3d15729 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/InquiryInfo.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/InquiryInfo.java @@ -18,6 +18,7 @@ @Fluent public final class InquiryInfo implements JsonSerializable { /* + * * Inquiry Status for this container such as * InProgress | Failed | Succeeded */ @@ -29,6 +30,7 @@ public final class InquiryInfo implements JsonSerializable { private ErrorDetail errorDetail; /* + * * Inquiry Details which will have workload specific details. * For e.g. - For SQL and oracle this will contain different details. */ @@ -41,7 +43,8 @@ public InquiryInfo() { } /** - * Get the status property: Inquiry Status for this container such as + * Get the status property: + * Inquiry Status for this container such as * InProgress | Failed | Succeeded. * * @return the status value. @@ -51,7 +54,8 @@ public String status() { } /** - * Set the status property: Inquiry Status for this container such as + * Set the status property: + * Inquiry Status for this container such as * InProgress | Failed | Succeeded. * * @param status the status value to set. @@ -83,7 +87,8 @@ public InquiryInfo withErrorDetail(ErrorDetail errorDetail) { } /** - * Get the inquiryDetails property: Inquiry Details which will have workload specific details. + * Get the inquiryDetails property: + * Inquiry Details which will have workload specific details. * For e.g. - For SQL and oracle this will contain different details. * * @return the inquiryDetails value. @@ -93,7 +98,8 @@ public List inquiryDetails() { } /** - * Set the inquiryDetails property: Inquiry Details which will have workload specific details. + * Set the inquiryDetails property: + * Inquiry Details which will have workload specific details. * For e.g. - For SQL and oracle this will contain different details. * * @param inquiryDetails the inquiryDetails value to set. diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/models/StatefulServiceProperties.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/models/StatefulServiceProperties.java index 69cd8726f08c0..831c674a5b0c2 100644 --- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/models/StatefulServiceProperties.java +++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/models/StatefulServiceProperties.java @@ -58,6 +58,11 @@ public final class StatefulServiceProperties extends ServiceResourceProperties { */ private OffsetDateTime standByReplicaKeepDuration; + /* + * The current deployment or provisioning state, which only appears in the response + */ + private String provisioningState; + /** * Creates an instance of StatefulServiceProperties class. */ @@ -202,6 +207,17 @@ public StatefulServiceProperties withStandByReplicaKeepDuration(OffsetDateTime s return this; } + /** + * Get the provisioningState property: The current deployment or provisioning state, which only appears in the + * response. + * + * @return the provisioningState value. + */ + @Override + public String provisioningState() { + return this.provisioningState; + } + /** * {@inheritDoc} */ @@ -355,7 +371,7 @@ public static StatefulServiceProperties fromJson(JsonReader jsonReader) throws I } else if ("defaultMoveCost".equals(fieldName)) { deserializedStatefulServiceProperties.withDefaultMoveCost(MoveCost.fromString(reader.getString())); } else if ("provisioningState".equals(fieldName)) { - deserializedStatefulServiceProperties.withProvisioningState(reader.getString()); + deserializedStatefulServiceProperties.provisioningState = reader.getString(); } else if ("serviceTypeName".equals(fieldName)) { deserializedStatefulServiceProperties.withServiceTypeName(reader.getString()); } else if ("partitionDescription".equals(fieldName)) { diff --git a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/models/StatelessServiceProperties.java b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/models/StatelessServiceProperties.java index 96979c4316050..f987168b36759 100644 --- a/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/models/StatelessServiceProperties.java +++ b/sdk/servicefabric/azure-resourcemanager-servicefabric/src/main/java/com/azure/resourcemanager/servicefabric/models/StatelessServiceProperties.java @@ -55,6 +55,11 @@ public final class StatelessServiceProperties extends ServiceResourceProperties */ private byte[] minInstancePercentage; + /* + * The current deployment or provisioning state, which only appears in the response + */ + private String provisioningState; + /** * Creates an instance of StatelessServiceProperties class. */ @@ -175,6 +180,17 @@ public StatelessServiceProperties withMinInstancePercentage(byte[] minInstancePe return this; } + /** + * Get the provisioningState property: The current deployment or provisioning state, which only appears in the + * response. + * + * @return the provisioningState value. + */ + @Override + public String provisioningState() { + return this.provisioningState; + } + /** * {@inheritDoc} */ @@ -317,7 +333,7 @@ public static StatelessServiceProperties fromJson(JsonReader jsonReader) throws } else if ("defaultMoveCost".equals(fieldName)) { deserializedStatelessServiceProperties.withDefaultMoveCost(MoveCost.fromString(reader.getString())); } else if ("provisioningState".equals(fieldName)) { - deserializedStatelessServiceProperties.withProvisioningState(reader.getString()); + deserializedStatelessServiceProperties.provisioningState = reader.getString(); } else if ("serviceTypeName".equals(fieldName)) { deserializedStatelessServiceProperties.withServiceTypeName(reader.getString()); } else if ("partitionDescription".equals(fieldName)) { diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/StatefulServiceProperties.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/StatefulServiceProperties.java index 442cde2572638..efdd6f6ee799b 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/StatefulServiceProperties.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/StatefulServiceProperties.java @@ -61,6 +61,11 @@ public final class StatefulServiceProperties extends ServiceResourceProperties { */ private String servicePlacementTimeLimit; + /* + * The current deployment or provisioning state, which only appears in the response + */ + private String provisioningState; + /** * Creates an instance of StatefulServiceProperties class. */ @@ -227,6 +232,17 @@ public StatefulServiceProperties withServicePlacementTimeLimit(String servicePla return this; } + /** + * Get the provisioningState property: The current deployment or provisioning state, which only appears in the + * response. + * + * @return the provisioningState value. + */ + @Override + public String provisioningState() { + return this.provisioningState; + } + /** * {@inheritDoc} */ @@ -391,7 +407,7 @@ public static StatefulServiceProperties fromJson(JsonReader jsonReader) throws I List scalingPolicies = reader.readArray(reader1 -> ScalingPolicy.fromJson(reader1)); deserializedStatefulServiceProperties.withScalingPolicies(scalingPolicies); } else if ("provisioningState".equals(fieldName)) { - deserializedStatefulServiceProperties.withProvisioningState(reader.getString()); + deserializedStatefulServiceProperties.provisioningState = reader.getString(); } else if ("servicePackageActivationMode".equals(fieldName)) { deserializedStatefulServiceProperties .withServicePackageActivationMode(ServicePackageActivationMode.fromString(reader.getString())); diff --git a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/StatelessServiceProperties.java b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/StatelessServiceProperties.java index 44e41fc7c7a37..cc380ccba56df 100644 --- a/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/StatelessServiceProperties.java +++ b/sdk/servicefabricmanagedclusters/azure-resourcemanager-servicefabricmanagedclusters/src/main/java/com/azure/resourcemanager/servicefabricmanagedclusters/models/StatelessServiceProperties.java @@ -44,6 +44,11 @@ public final class StatelessServiceProperties extends ServiceResourceProperties */ private Integer minInstancePercentage; + /* + * The current deployment or provisioning state, which only appears in the response + */ + private String provisioningState; + /** * Creates an instance of StatelessServiceProperties class. */ @@ -136,6 +141,17 @@ public StatelessServiceProperties withMinInstancePercentage(Integer minInstanceP return this; } + /** + * Get the provisioningState property: The current deployment or provisioning state, which only appears in the + * response. + * + * @return the provisioningState value. + */ + @Override + public String provisioningState() { + return this.provisioningState; + } + /** * {@inheritDoc} */ @@ -296,7 +312,7 @@ public static StatelessServiceProperties fromJson(JsonReader jsonReader) throws List scalingPolicies = reader.readArray(reader1 -> ScalingPolicy.fromJson(reader1)); deserializedStatelessServiceProperties.withScalingPolicies(scalingPolicies); } else if ("provisioningState".equals(fieldName)) { - deserializedStatelessServiceProperties.withProvisioningState(reader.getString()); + deserializedStatelessServiceProperties.provisioningState = reader.getString(); } else if ("servicePackageActivationMode".equals(fieldName)) { deserializedStatelessServiceProperties .withServicePackageActivationMode(ServicePackageActivationMode.fromString(reader.getString())); From 991aa83bf5eca9b4e535e4ef80f387452b5204c8 Mon Sep 17 00:00:00 2001 From: "azure-sdk-automation[bot]" <191533747+azure-sdk-automation[bot]@users.noreply.github.com> Date: Thu, 22 Oct 2026 13:55:11 +0530 Subject: [PATCH 16/22] [AutoPR azure-resourcemanager-recoveryservicesbackup]-generated-from-SDK Generation - Java-6957611 (#50700) * Configurations: 'specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/RecoveryServicesBackup/tspconfig.yaml', and CommitSHA: '3d87fd4a88462f3a3d0e8aaa96949c789ef8260d' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6931523 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * Skip Revapi for Recovery Services Backup Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 3caa07f0-361d-4584-847c-d959e55371f4 * Configurations: 'specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/RecoveryServicesBackup/tspconfig.yaml', and CommitSHA: '6f8edbbe9c190be0e4d61c0018503a406dccbd11' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6957611 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. * Restore Recovery Services Backup RevAPI override Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 187eb2d4-dcbb-4f13-82fa-873ad13f3558 --------- Co-authored-by: azure-sdk Co-authored-by: Weidong Xu Co-authored-by: Copilot <223556219+Copilot@users.noreply.github.com> Copilot-Session: 3caa07f0-361d-4584-847c-d959e55371f4 Copilot-Session: 187eb2d4-dcbb-4f13-82fa-873ad13f3558 --- eng/versioning/version_client.txt | 2 +- .../CHANGELOG.md | 127 ++++- .../README.md | 4 +- .../SAMPLE.md | 389 +++++++++---- .../pom.xml | 5 +- .../RecoveryServicesBackupManager.java | 17 + ...ntainerRefreshOperationStatusesClient.java | 55 ++ .../fluent/RecoveryPointsClient.java | 121 ++++ ...ecoveryServicesBackupManagementClient.java | 7 + .../RPExtendedInfoResourceListInner.java | 99 ++++ ...nerRefreshOperationStatusesClientImpl.java | 173 ++++++ ...ContainerRefreshOperationStatusesImpl.java | 55 ++ .../RPExtendedInfoResourceListImpl.java | 44 ++ .../RecoveryPointsClientImpl.java | 365 ++++++++++++ .../implementation/RecoveryPointsImpl.java | 50 ++ ...eryServicesBackupManagementClientImpl.java | 19 +- ...zureIaaSClassicComputeVMProtectedItem.java | 15 + .../AzureIaaSComputeVMProtectedItem.java | 15 + .../models/AzureIaaSvmProtectedItem.java | 32 ++ .../models/AzureIaaSvmProtectionPolicy.java | 68 +++ .../models/AzureVmWorkloadProtectedItem.java | 2 + .../AzureVmWorkloadProtectionPolicy.java | 30 + ...ureVmWorkloadSQLInstanceProtectedItem.java | 528 ++++++++++++++++++ ...ureVmWorkloadSqlDatabaseProtectedItem.java | 60 ++ ...eWorkloadSqlRecoveryPointExtendedInfo.java | 37 ++ .../models/BackupItemType.java | 5 + .../models/DataSourceType.java | 5 + .../models/DatabaseInRP.java | 91 +++ .../models/DiskInfo.java | 195 +++++++ .../models/DiskInformation.java | 34 ++ .../models/ExistingBasicVMProtection.java | 46 ++ .../models/FilesystemInfo.java | 179 ++++++ .../models/GetRPExtendedInfoRequest.java | 94 ++++ .../GetRPExtendedInfoRequestResource.java | 241 ++++++++ .../models/IaasVMRPExtendedInfo.java | 115 ++++ .../models/InstanceProtectionReadiness.java | 66 +++ .../models/ProtectedItem.java | 2 + ...tionContainerRefreshOperationStatuses.java | 49 ++ .../models/ProtectionLevel.java | 51 ++ .../models/RPExtendedInfo.java | 102 ++++ .../models/RPExtendedInfoResource.java | 196 +++++++ .../models/RPExtendedInfoResourceList.java | 36 ++ .../models/RecoveryPointTierType.java | 62 +- .../models/RecoveryPoints.java | 72 +++ ...tRPExtendedInfoOperationResultHeaders.java | 74 +++ ...RPExtendedInfoOperationResultResponse.java | 41 ++ .../models/SnapshotRecoveryPointInfo.java | 95 ++++ .../models/SnapshotRestoreParameters.java | 33 ++ .../models/StorageSpaceInfo.java | 125 +++++ .../models/VMWorkloadPolicyType.java | 61 ++ ...eAzureWorkloadRestoreOperationRequest.java | 108 ++++ .../models/ValidateOperationRequest.java | 2 + .../models/WorkloadType.java | 5 + ...nager-recoveryservicesbackup_metadata.json | 2 +- .../proxy-config.json | 2 +- .../generated/BackupEnginesGetSamples.java | 2 +- .../generated/BackupEnginesListSamples.java | 2 +- .../generated/BackupJobsListSamples.java | 6 +- .../BackupOperationResultsGetSamples.java | 2 +- .../BackupOperationStatusesGetSamples.java | 2 +- .../generated/BackupPoliciesListSamples.java | 6 +- .../BackupProtectableItemsListSamples.java | 2 +- .../BackupProtectedItemsListSamples.java | 2 +- ...BackupProtectionContainersListSamples.java | 4 +- .../BackupProtectionIntentListSamples.java | 2 +- ...upResourceEncryptionConfigsGetSamples.java | 2 +- ...esourceEncryptionConfigsUpdateSamples.java | 2 +- ...esourceStorageConfigsNonCrrGetSamples.java | 2 +- ...ourceStorageConfigsNonCrrPatchSamples.java | 2 +- ...urceStorageConfigsNonCrrUpdateSamples.java | 2 +- .../BackupResourceVaultConfigsGetSamples.java | 2 +- .../BackupResourceVaultConfigsPutSamples.java | 2 +- ...ckupResourceVaultConfigsUpdateSamples.java | 2 +- .../generated/BackupStatusGetSamples.java | 2 +- .../BackupUsageSummariesListSamples.java | 4 +- .../BackupWorkloadItemsListSamples.java | 2 +- .../generated/BackupsTriggerSamples.java | 2 +- ...pareDataMoveOperationResultGetSamples.java | 2 +- .../ConfigureSourceScanExecuteSamples.java | 2 +- ...eletedProtectionContainersListSamples.java | 2 +- .../ExportJobsOperationResultsGetSamples.java | 2 +- .../FeatureSupportValidateSamples.java | 2 +- .../FetchTieringCostPostSamples.java | 8 +- ...tTieringCostOperationResultGetSamples.java | 2 +- ...antItemRecoveryOperationResultSamples.java | 2 +- ...elRecoveryConnectionsProvisionSamples.java | 2 +- ...LevelRecoveryConnectionsRevokeSamples.java | 2 +- .../JobCancellationsTriggerSamples.java | 2 +- .../generated/JobDetailsGetSamples.java | 2 +- .../JobOperationResultsGetSamples.java | 2 +- .../generated/JobsExportSamples.java | 2 +- .../OperationOperationValidateSamples.java | 4 +- .../generated/OperationsListSamples.java | 2 +- ...rivateEndpointConnectionDeleteSamples.java | 2 +- .../PrivateEndpointConnectionGetSamples.java | 2 +- .../PrivateEndpointConnectionPutSamples.java | 2 +- ...vateEndpointGetOperationStatusSamples.java | 2 +- .../ProtectableContainersListSamples.java | 2 +- ...otectedItemOperationResultsGetSamples.java | 2 +- ...tectedItemOperationStatusesGetSamples.java | 2 +- .../ProtectedItemsCreateOrUpdateSamples.java | 8 +- .../ProtectedItemsDeleteSamples.java | 2 +- .../generated/ProtectedItemsGetSamples.java | 4 +- ...onContainerOperationResultsGetSamples.java | 2 +- ...inerRefreshOperationResultsGetSamples.java | 2 +- ...nerRefreshOperationStatusesGetSamples.java | 25 + .../ProtectionContainersGetSamples.java | 2 +- .../ProtectionContainersInquireSamples.java | 2 +- .../ProtectionContainersRefreshSamples.java | 18 +- .../ProtectionContainersRegisterSamples.java | 10 +- ...ProtectionContainersUnregisterSamples.java | 2 +- ...ProtectionIntentCreateOrUpdateSamples.java | 2 +- .../ProtectionIntentDeleteSamples.java | 2 +- .../generated/ProtectionIntentGetSamples.java | 2 +- .../ProtectionIntentValidateSamples.java | 2 +- ...otectionPoliciesCreateOrUpdateSamples.java | 18 +- .../ProtectionPoliciesDeleteSamples.java | 2 +- .../ProtectionPoliciesGetSamples.java | 4 +- ...ctionPolicyOperationResultsGetSamples.java | 2 +- ...tionPolicyOperationStatusesGetSamples.java | 2 +- ...tRPExtendedInfoOperationResultSamples.java | 25 + ...ecoveryPointsGetRPExtendedInfoSamples.java | 31 + .../generated/RecoveryPointsGetSamples.java | 17 +- .../generated/RecoveryPointsListSamples.java | 2 +- ...ryPointsRecommendedForMoveListSamples.java | 2 +- ...ourceGuardProxyOperationDeleteSamples.java | 2 +- ...ResourceGuardProxyOperationGetSamples.java | 2 +- ...esourceGuardProxyOperationListSamples.java | 2 +- ...ResourceGuardProxyOperationPutSamples.java | 2 +- ...uardProxyOperationUnlockDeleteSamples.java | 2 +- ...urceProviderBmsPrepareDataMoveSamples.java | 2 +- ...urceProviderBmsTriggerDataMoveSamples.java | 2 +- ...urceProviderGetOperationStatusSamples.java | 2 +- ...ourceProviderMoveRecoveryPointSamples.java | 2 +- .../generated/RestoresTriggerSamples.java | 22 +- .../generated/SecurityPINsGetSamples.java | 2 +- .../TieringCostOperationStatusGetSamples.java | 2 +- .../ValidateOperationResultsGetSamples.java | 2 +- .../ValidateOperationStatusesGetSamples.java | 2 +- .../ValidateOperationTriggerSamples.java | 36 +- .../AzureBackupServerContainerTests.java | 74 +-- .../AzureBackupServerEngineTests.java | 38 +- .../AzureFileShareBackupRequestTests.java | 8 +- .../AzureFileShareProtectableItemTests.java | 16 +- .../AzureFileShareProtectionPolicyTests.java | 32 +- ...zureFileShareProvisionIlrRequestTests.java | 13 +- .../AzureFileShareRecoveryPointTests.java | 29 +- .../AzureFileShareRestoreRequestTests.java | 68 ++- ...ureIaaSClassicComputeVMContainerTests.java | 50 +- ...SClassicComputeVMProtectableItemTests.java | 16 +- .../AzureIaaSComputeVMContainerTests.java | 50 +- ...zureIaaSComputeVMProtectableItemTests.java | 16 +- .../AzureIaaSvmJobExtendedInfoTests.java | 28 +- .../AzureIaaSvmJobTaskDetailsTests.java | 18 +- .../AzureIaaSvmProtectionPolicyTests.java | 64 ++- ...veryServiceVaultProtectionIntentTests.java | 32 +- .../AzureResourceProtectionIntentTests.java | 38 +- .../generated/AzureSqlContainerTests.java | 32 +- .../AzureSqlProtectionPolicyTests.java | 14 +- .../generated/AzureStorageContainerTests.java | 78 +-- .../AzureStorageJobExtendedInfoTests.java | 10 +- .../AzureStorageJobTaskDetailsTests.java | 9 +- ...AzureStorageProtectableContainerTests.java | 10 +- ...AppContainerProtectableContainerTests.java | 10 +- ...eVMResourceFeatureSupportRequestTests.java | 13 +- ...ourceFeatureSupportResponseInnerTests.java | 4 +- .../generated/AzureVmWorkloadItemTests.java | 18 +- ...orkloadProtectedItemExtendedInfoTests.java | 44 +- .../AzureVmWorkloadProtectionPolicyTests.java | 145 ++--- ...rkloadSapAseDatabaseWorkloadItemTests.java | 18 +- ...WorkloadSapAseSystemWorkloadItemTests.java | 18 +- ...kloadSapHanaDatabaseWorkloadItemTests.java | 18 +- ...orkloadSapHanaSystemWorkloadItemTests.java | 18 +- ...mWorkloadSqlDatabaseWorkloadItemTests.java | 18 +- ...mWorkloadSqlInstanceWorkloadItemTests.java | 24 +- ...zureWorkloadAutoProtectionIntentTests.java | 32 +- .../AzureWorkloadBackupRequestTests.java | 20 +- ...oadContainerAutoProtectionIntentTests.java | 34 +- .../AzureWorkloadJobExtendedInfoTests.java | 10 +- .../AzureWorkloadJobTaskDetailsTests.java | 9 +- ...WorkloadPointInTimeRecoveryPointTests.java | 30 +- ...orkloadPointInTimeRestoreRequestTests.java | 107 ++-- .../AzureWorkloadRecoveryPointTests.java | 24 +- .../AzureWorkloadRestoreRequestTests.java | 112 ++-- ...adSapAsePointInTimeRecoveryPointTests.java | 32 +- ...dSapAsePointInTimeRestoreRequestTests.java | 102 ++-- ...AzureWorkloadSapAseRecoveryPointTests.java | 29 +- ...zureWorkloadSapAseRestoreRequestTests.java | 90 +-- ...dSapHanaPointInTimeRecoveryPointTests.java | 33 +- ...SapHanaPointInTimeRestoreRequestTests.java | 106 ++-- ...nTimeRestoreWithRehydrateRequestTests.java | 127 +++-- ...zureWorkloadSapHanaRecoveryPointTests.java | 27 +- ...ureWorkloadSapHanaRestoreRequestTests.java | 102 ++-- ...pHanaRestoreWithRehydrateRequestTests.java | 114 ++-- ...eWorkloadSqlAutoProtectionIntentTests.java | 40 +- ...kloadSqlPointInTimeRecoveryPointTests.java | 77 ++- ...loadSqlPointInTimeRestoreRequestTests.java | 136 +++-- ...nTimeRestoreWithRehydrateRequestTests.java | 166 +++--- ...loadSqlRecoveryPointExtendedInfoTests.java | 53 +- .../AzureWorkloadSqlRecoveryPointTests.java | 73 ++- .../AzureWorkloadSqlRestoreRequestTests.java | 149 ++--- ...adSqlRestoreWithRehydrateRequestTests.java | 141 ++--- .../BackupEngineBaseResourceInnerTests.java | 42 +- .../BackupEngineBaseResourceListTests.java | 48 +- .../generated/BackupEngineBaseTests.java | 38 +- .../BackupEngineExtendedInfoTests.java | 18 +- ...BackupEnginesGetWithResponseMockTests.java | 45 +- .../generated/BackupEnginesListMockTests.java | 46 +- .../generated/BackupJobsListMockTests.java | 24 +- .../BackupManagementUsageInnerTests.java | 16 +- .../BackupManagementUsageListTests.java | 18 +- ...rationResultsGetWithResponseMockTests.java | 2 +- .../BackupPoliciesListMockTests.java | 15 +- .../BackupProtectableItemsListMockTests.java | 19 +- .../BackupProtectedItemsListMockTests.java | 38 +- ...ckupProtectionContainersListMockTests.java | 20 +- .../BackupProtectionIntentsListMockTests.java | 18 +- .../generated/BackupRequestResourceTests.java | 20 +- ...onfigsNonCrrsGetWithResponseMockTests.java | 16 +- ...figsNonCrrsPatchWithResponseMockTests.java | 16 +- ...igsNonCrrsUpdateWithResponseMockTests.java | 38 +- ...eVaultConfigsGetWithResponseMockTests.java | 20 +- ...eVaultConfigsPutWithResponseMockTests.java | 57 +- ...ultConfigsUpdateWithResponseMockTests.java | 53 +- .../generated/BackupStatusRequestTests.java | 21 +- .../BackupUsageSummariesListMockTests.java | 20 +- .../BackupWorkloadItemsListMockTests.java | 18 +- .../BackupsTriggerWithResponseMockTests.java | 8 +- ...rationResultsGetWithResponseMockTests.java | 2 +- .../ConfigureSourceScansExecuteMockTests.java | 4 +- .../generated/ContainerIdentityInfoTests.java | 26 +- .../generated/DailyRetentionFormatTests.java | 12 +- .../DailyRetentionScheduleTests.java | 16 +- .../generated/DailyScheduleTests.java | 8 +- .../generated/DataDiskDetailsTests.java | 10 +- .../DataDiskEncryptionSettingsTests.java | 32 +- .../generated/DatabaseInRPTests.java | 19 + .../generated/DayTests.java | 12 +- ...etedProtectionContainersListMockTests.java | 20 +- .../generated/DiskDetailsTests.java | 8 +- .../generated/DiskInfoTests.java | 26 + .../generated/DiskInformationTests.java | 11 +- .../generated/DpmBackupEngineTests.java | 36 +- .../DpmContainerExtendedInfoTests.java | 8 +- .../generated/DpmContainerTests.java | 74 +-- .../generated/DpmErrorInfoTests.java | 7 +- .../generated/DpmJobExtendedInfoTests.java | 16 +- .../generated/DpmJobTaskDetailsTests.java | 12 +- .../generated/DpmJobTests.java | 46 +- .../DpmProtectedItemExtendedInfoTests.java | 84 +-- .../generated/DpmProtectedItemTests.java | 188 ++++--- .../generated/ExtendedLocationTests.java | 14 +- ...SupportsValidateWithResponseMockTests.java | 2 +- ...ingCostInfoForRehydrationRequestTests.java | 26 +- .../FetchTieringCostInfoRequestTests.java | 14 +- ...gCostSavingsInfoForPolicyRequestTests.java | 14 +- ...vingsInfoForProtectedItemRequestTests.java | 27 +- ...ngCostSavingsInfoForVaultRequestTests.java | 14 +- .../FetchTieringCostsPostMockTests.java | 4 +- .../generated/FilesystemInfoTests.java | 35 ++ .../GenericContainerExtendedInfoTests.java | 38 +- .../generated/GenericContainerTests.java | 77 ++- .../generated/GenericProtectedItemTests.java | 125 +++-- .../GenericProtectionPolicyTests.java | 149 +++-- .../generated/GenericRecoveryPointTests.java | 22 +- ...GetRPExtendedInfoRequestResourceTests.java | 52 ++ .../GetRPExtendedInfoRequestTests.java | 28 + ...rationResultsGetWithResponseMockTests.java | 2 +- .../generated/HourlyScheduleTests.java | 20 +- .../generated/IaaSvmContainerTests.java | 50 +- .../generated/IaasVMBackupRequestTests.java | 8 +- .../generated/IaasVMRPExtendedInfoTests.java | 26 + .../generated/IaasVmProtectableItemTests.java | 14 +- .../IaasVmilrRegistrationRequestTests.java | 20 +- .../IdentityBasedRestoreDetailsTests.java | 12 +- .../generated/IdentityInfoTests.java | 13 +- .../generated/IlrRequestResourceTests.java | 21 +- ...emRecoveryOperationResultRequestTests.java | 8 +- .../InstantRPAdditionalDetailsTests.java | 17 +- ...tantItemRecoveryOperationResMockTests.java | 48 -- ...RecoveryOperationResultWithRMockTests.java | 18 +- ...ectionsProvisionWithResponseMockTests.java | 10 +- ...onnectionsRevokeWithResponseMockTests.java | 4 +- ...ellationsTriggerWithResponseMockTests.java | 2 +- .../JobDetailsGetWithResponseMockTests.java | 24 +- ...rationResultsGetWithResponseMockTests.java | 2 +- .../generated/JobResourceInnerTests.java | 22 +- .../generated/JobResourceListTests.java | 25 +- .../generated/JobTests.java | 16 +- .../JobsExportWithResponseMockTests.java | 2 +- ...yPointsRecommendedForMoveRequestTests.java | 15 +- .../generated/LogSchedulePolicyTests.java | 8 +- .../LongTermRetentionPolicyTests.java | 136 ++--- .../MabContainerExtendedInfoTests.java | 32 +- .../generated/MabErrorInfoTests.java | 3 +- ...eFolderProtectedItemExtendedInfoTests.java | 20 +- .../MabFileFolderProtectedItemTests.java | 148 +++-- .../generated/MabJobExtendedInfoTests.java | 16 +- .../generated/MabJobTaskDetailsTests.java | 12 +- .../generated/MabJobTests.java | 38 +- .../generated/MabProtectionPolicyTests.java | 14 +- .../MonthlyRetentionScheduleTests.java | 46 +- .../MoveRPAcrossTiersRequestTests.java | 8 +- .../generated/NameInfoTests.java | 6 +- .../generated/OperationResultInfoTests.java | 4 +- .../generated/OperationsListMockTests.java | 20 +- .../PerDiskEncryptionSetIdTests.java | 16 +- .../generated/PointInTimeRangeTests.java | 6 +- .../PreValidateEnableBackupRequestTests.java | 26 +- ...eEndpointConnectionResourceInnerTests.java | 49 +- .../PrivateEndpointConnectionTests.java | 39 +- ...ateEndpointConnectionsDeleteMockTests.java | 3 +- ...ntConnectionsGetWithResponseMockTests.java | 22 +- ...rivateEndpointConnectionsPutMockTests.java | 40 +- .../generated/PrivateEndpointTests.java | 8 +- ...rivateLinkServiceConnectionStateTests.java | 21 +- ...rotectableContainerResourceInnerTests.java | 16 +- ...ProtectableContainerResourceListTests.java | 19 +- .../generated/ProtectableContainerTests.java | 10 +- .../ProtectableContainersListMockTests.java | 18 +- ...edItemConfigureSourceScanRequestTests.java | 8 +- ...rationResultsGetWithResponseMockTests.java | 36 +- .../ProtectedItemResourceInnerTests.java | 2 +- .../ProtectedItemResourceListTests.java | 37 +- ...ProtectedItemsCreateOrUpdateMockTests.java | 77 ++- ...ectedItemsDeleteWithResponseMockTests.java | 2 +- ...rotectedItemsGetWithResponseMockTests.java | 43 +- ...rationResultsGetWithResponseMockTests.java | 20 +- ...rationResultsGetWithResponseMockTests.java | 2 +- ...ProtectionContainerResourceInnerTests.java | 50 +- .../ProtectionContainerResourceListTests.java | 21 +- .../generated/ProtectionContainerTests.java | 32 +- ...ionContainersGetWithResponseMockTests.java | 20 +- ...ontainersInquireWithResponseMockTests.java | 3 +- ...ontainersRefreshWithResponseMockTests.java | 2 +- ...ProtectionContainersRegisterMockTests.java | 36 +- ...ainersUnregisterWithResponseMockTests.java | 3 +- .../ProtectionIntentResourceInnerTests.java | 50 +- .../ProtectionIntentResourceListTests.java | 20 +- .../generated/ProtectionIntentTests.java | 32 +- ...tsCreateOrUpdateWithResponseMockTests.java | 36 +- ...ionIntentsDeleteWithResponseMockTests.java | 2 +- ...ectionIntentsGetWithResponseMockTests.java | 21 +- ...esCreateOrUpdateWithResponseMockTests.java | 27 +- .../ProtectionPoliciesDeleteMockTests.java | 3 +- ...ctionPoliciesGetWithResponseMockTests.java | 14 +- ...rationResultsGetWithResponseMockTests.java | 14 +- .../ProtectionPolicyResourceInnerTests.java | 34 +- .../ProtectionPolicyResourceListTests.java | 15 +- .../generated/ProtectionPolicyTests.java | 14 +- .../RPExtendedInfoResourceListInnerTests.java | 22 + .../RPExtendedInfoResourceTests.java | 21 + .../generated/RPExtendedInfoTests.java | 16 + .../RecoveryPointDiskConfigurationTests.java | 18 +- ...overyPointImmutabilityPropertiesTests.java | 6 +- .../RecoveryPointMoveReadinessInfoTests.java | 4 +- .../RecoveryPointPropertiesTests.java | 12 +- .../RecoveryPointRehydrationInfoTests.java | 14 +- .../RecoveryPointResourceInnerTests.java | 12 +- .../RecoveryPointResourceListTests.java | 14 +- .../generated/RecoveryPointTests.java | 6 +- .../RecoveryPointTierInformationTests.java | 8 +- .../RecoveryPointTierInformationV2Tests.java | 10 +- ...overyPointsGetRPExtendedInfoMockTests.java | 64 +++ ...oOperationResultWithResponseMockTests.java | 43 ++ ...ecoveryPointsGetWithResponseMockTests.java | 15 +- .../RecoveryPointsListMockTests.java | 14 +- ...ointsRecommendedForMovesListMockTests.java | 25 +- .../ResourceGuardOperationDetailTests.java | 19 +- ...ourceGuardProxyBaseResourceInnerTests.java | 56 +- ...sourceGuardProxyBaseResourceListTests.java | 20 +- .../ResourceGuardProxyBaseTests.java | 36 +- ...OperationsDeleteWithResponseMockTests.java | 2 +- ...oxyOperationsGetWithResponseMockTests.java | 20 +- ...urceGuardProxyOperationsListMockTests.java | 20 +- ...oxyOperationsPutWithResponseMockTests.java | 45 +- ...ionsUnlockDeleteWithResponseMockTests.java | 10 +- .../generated/ResourceListTests.java | 4 +- ...eProvidersBmsPrepareDataMoveMockTests.java | 10 +- ...eProvidersBmsTriggerDataMoveMockTests.java | 14 +- .../generated/RestoreFileSpecsTests.java | 19 +- .../RestoreRequestResourceTests.java | 28 +- .../generated/RestoreRequestTests.java | 10 +- .../generated/RetentionDurationTests.java | 12 +- .../generated/SecuredVMDetailsTests.java | 32 +- .../generated/SecurityPinBaseTests.java | 14 +- .../generated/SettingsTests.java | 12 +- .../generated/SimpleRetentionPolicyTests.java | 12 +- .../generated/SimpleSchedulePolicyTests.java | 47 +- .../SimpleSchedulePolicyV2Tests.java | 45 +- .../SnapshotBackupAdditionalDetailsTests.java | 36 +- .../SnapshotRecoveryPointInfoTests.java | 42 ++ .../SnapshotRestoreParametersTests.java | 18 +- .../generated/SourceSideScanInfoTests.java | 8 +- .../SqlDataDirectoryMappingTests.java | 20 +- .../generated/SqlDataDirectoryTests.java | 11 +- .../generated/StorageSpaceInfoTests.java | 22 + .../generated/SubProtectionPolicyTests.java | 84 +-- .../generated/TargetAfsRestoreInfoTests.java | 12 +- .../TargetDiskNetworkAccessSettingsTests.java | 14 +- .../generated/TargetRestoreInfoTests.java | 26 +- .../generated/ThreatInfoTests.java | 4 +- .../TieringCostRehydrationInfoTests.java | 6 +- .../generated/TieringCostSavingInfoTests.java | 10 +- .../generated/TieringPolicyTests.java | 14 +- .../generated/UnlockDeleteRequestTests.java | 15 +- .../UnlockDeleteResponseInnerTests.java | 6 +- .../UserAssignedIdentityPropertiesTests.java | 12 +- ...erAssignedManagedIdentityDetailsTests.java | 24 +- ...eWorkloadRestoreOperationRequestTests.java | 30 + ...ateIaasVMRestoreOperationRequestTests.java | 11 +- ...ValidateOperationRequestResourceTests.java | 14 +- .../ValidateRestoreOperationRequestTests.java | 11 +- .../generated/VaultJobExtendedInfoTests.java | 8 +- .../generated/VaultRetentionPolicyTests.java | 8 +- .../generated/WeeklyRetentionFormatTests.java | 20 +- .../WeeklyRetentionScheduleTests.java | 22 +- .../generated/WeeklyScheduleTests.java | 14 +- .../WorkloadItemResourceInnerTests.java | 16 +- .../WorkloadItemResourceListTests.java | 18 +- .../generated/WorkloadItemTests.java | 10 +- ...loadProtectableItemResourceInnerTests.java | 16 +- ...kloadProtectableItemResourceListTests.java | 16 +- .../WorkloadProtectableItemTests.java | 8 +- .../YearlyRetentionScheduleTests.java | 40 +- .../tsp-location.yaml | 2 +- 426 files changed, 9135 insertions(+), 4173 deletions(-) create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ProtectionContainerRefreshOperationStatusesClient.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/RPExtendedInfoResourceListInner.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionContainerRefreshOperationStatusesClientImpl.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionContainerRefreshOperationStatusesImpl.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/RPExtendedInfoResourceListImpl.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSQLInstanceProtectedItem.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DatabaseInRP.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DiskInfo.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ExistingBasicVMProtection.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/FilesystemInfo.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/GetRPExtendedInfoRequest.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/GetRPExtendedInfoRequestResource.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/IaasVMRPExtendedInfo.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/InstanceProtectionReadiness.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionContainerRefreshOperationStatuses.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionLevel.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RPExtendedInfo.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RPExtendedInfoResource.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RPExtendedInfoResourceList.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPointsGetRPExtendedInfoOperationResultHeaders.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPointsGetRPExtendedInfoOperationResultResponse.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SnapshotRecoveryPointInfo.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/StorageSpaceInfo.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/VMWorkloadPolicyType.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ValidateAzureWorkloadRestoreOperationRequest.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainerRefreshOperationStatusesGetSamples.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsGetRPExtendedInfoOperationResultSamples.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsGetRPExtendedInfoSamples.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DatabaseInRPTests.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DiskInfoTests.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FilesystemInfoTests.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/GetRPExtendedInfoRequestResourceTests.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/GetRPExtendedInfoRequestTests.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/IaasVMRPExtendedInfoTests.java delete mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ItemLevelRecoveryConnectionsListInstantItemRecoveryOperationResMockTests.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RPExtendedInfoResourceListInnerTests.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RPExtendedInfoResourceTests.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RPExtendedInfoTests.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsGetRPExtendedInfoMockTests.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsGetRPExtendedInfoOperationResultWithResponseMockTests.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SnapshotRecoveryPointInfoTests.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/StorageSpaceInfoTests.java create mode 100644 sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ValidateAzureWorkloadRestoreOperationRequestTests.java diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 64027c5d22703..484b6ebfe2a66 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -365,7 +365,7 @@ com.azure.resourcemanager:azure-resourcemanager-managedapplications;1.0.0;1.1.0- com.azure.resourcemanager:azure-resourcemanager-imagebuilder;1.3.0;1.4.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-maps;1.1.0;1.2.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-botservice;1.0.0;1.1.0-beta.1 -com.azure.resourcemanager:azure-resourcemanager-recoveryservicesbackup;1.8.0;1.9.0-beta.1 +com.azure.resourcemanager:azure-resourcemanager-recoveryservicesbackup;1.8.0;1.9.0 com.azure.resourcemanager:azure-resourcemanager-postgresqlflexibleserver;2.0.0;2.1.0-beta.4 com.azure.resourcemanager:azure-resourcemanager-deviceprovisioningservices;1.2.0;1.3.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-elastic;1.2.0;1.3.0-beta.1 diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/CHANGELOG.md b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/CHANGELOG.md index b74389b8a0270..4d5e6535c23d8 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/CHANGELOG.md +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/CHANGELOG.md @@ -1,14 +1,133 @@ # Release History -## 1.9.0-beta.1 (Unreleased) +## 1.9.0 (2026-10-14) -### Features Added +- Azure Resource Manager Recovery Services Backup client library for Java. This package contains Microsoft Azure SDK for Recovery Services Backup Management SDK. Open API 2.0 Specs for Azure RecoveryServices Backup service. Package api-version 2026-10-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Breaking Changes -### Bugs Fixed +#### `models.RecoveryPointTierType` was modified + +* `models.RecoveryPointTierType[] values()` -> `java.util.Collection values()` +* `valueOf(java.lang.String)` was removed +* `toString()` was removed + +### Features Added + +* `models.StorageSpaceInfo` was added + +* `models.ExistingBasicVMProtection` was added + +* `models.DiskInfo` was added + +* `models.DatabaseInRP` was added + +* `models.ProtectionContainerRefreshOperationStatuses` was added + +* `models.IaasVMRPExtendedInfo` was added + +* `models.RecoveryPointsGetRPExtendedInfoOperationResultResponse` was added + +* `models.ValidateAzureWorkloadRestoreOperationRequest` was added + +* `models.SnapshotRecoveryPointInfo` was added + +* `models.GetRPExtendedInfoRequestResource` was added + +* `models.InstanceProtectionReadiness` was added + +* `models.FilesystemInfo` was added + +* `models.GetRPExtendedInfoRequest` was added + +* `models.RPExtendedInfoResource` was added + +* `models.RPExtendedInfo` was added + +* `models.VMWorkloadPolicyType` was added + +* `models.ProtectionLevel` was added + +* `models.RecoveryPointsGetRPExtendedInfoOperationResultHeaders` was added + +* `models.RPExtendedInfoResourceList` was added + +* `models.AzureVmWorkloadSQLInstanceProtectedItem` was added + +#### `models.AzureIaaSComputeVMProtectedItem` was modified + +* `withExistingBasicVMProtection(models.ExistingBasicVMProtection)` was added + +#### `models.RecoveryPoints` was modified + +* `getRPExtendedInfo(java.lang.String,java.lang.String,java.lang.String,models.GetRPExtendedInfoRequestResource,com.azure.core.util.Context)` was added +* `getRPExtendedInfoOperationResult(java.lang.String,java.lang.String,java.lang.String,java.lang.String)` was added +* `getRPExtendedInfoOperationResultWithResponse(java.lang.String,java.lang.String,java.lang.String,java.lang.String,com.azure.core.util.Context)` was added +* `getRPExtendedInfo(java.lang.String,java.lang.String,java.lang.String,models.GetRPExtendedInfoRequestResource)` was added + +#### `models.DataSourceType` was modified + +* `SQLINSTANCE` was added + +#### `models.AzureIaaSvmProtectedItem` was modified + +* `existingBasicVMProtection()` was added +* `withExistingBasicVMProtection(models.ExistingBasicVMProtection)` was added + +#### `models.WorkloadType` was modified + +* `SQLINSTANCE` was added + +#### `models.AzureIaaSvmProtectionPolicy` was modified + +* `withInstantAccessDurationMinutes(java.lang.Integer)` was added +* `withInstantAccessSnapshotEnabled(java.lang.Boolean)` was added +* `instantAccessSnapshotEnabled()` was added +* `instantAccessDurationMinutes()` was added + +#### `models.AzureVmWorkloadSqlDatabaseProtectedItem` was modified + +* `withProtectionLevel(models.ProtectionLevel)` was added +* `withParentProtectedItem(java.lang.String)` was added +* `parentProtectedItem()` was added +* `protectionLevel()` was added + +#### `models.RecoveryPointTierType` was modified + +* `RecoveryPointTierType()` was added +* `IASNAPSHOT_RP` was added + +#### `models.AzureVmWorkloadProtectionPolicy` was modified + +* `vmWorkloadPolicyType()` was added +* `withVmWorkloadPolicyType(models.VMWorkloadPolicyType)` was added + +#### `models.AzureWorkloadSqlRecoveryPointExtendedInfo` was modified + +* `snapshotRecoveryPointInfo()` was added +* `includedDatabases()` was added + +#### `models.BackupItemType` was modified + +* `SQLINSTANCE` was added + +#### `models.SnapshotRestoreParameters` was modified + +* `withDisksToDetachOnClash(java.util.List)` was added +* `disksToDetachOnClash()` was added + +#### `models.AzureIaaSClassicComputeVMProtectedItem` was modified + +* `withExistingBasicVMProtection(models.ExistingBasicVMProtection)` was added + +#### `RecoveryServicesBackupManager` was modified + +* `protectionContainerRefreshOperationStatuses()` was added + +#### `models.DiskInformation` was modified -### Other Changes +* `diskSizeInGb()` was added +* `storageType()` was added ## 1.8.0 (2026-08-31) diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/README.md b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/README.md index e40bddc321614..1d8b6a0a0e44b 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/README.md +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/README.md @@ -2,7 +2,7 @@ Azure Resource Manager Recovery Services Backup client library for Java. -This package contains Microsoft Azure SDK for Recovery Services Backup Management SDK. Open API 2.0 Specs for Azure RecoveryServices Backup service. Package api-version 2026-08-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). +This package contains Microsoft Azure SDK for Recovery Services Backup Management SDK. Open API 2.0 Specs for Azure RecoveryServices Backup service. Package api-version 2026-10-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## We'd love to hear your feedback @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-recoveryservicesbackup - 1.8.0 + 1.9.0 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/SAMPLE.md b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/SAMPLE.md index 8249f338e2827..b853a5111a473 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/SAMPLE.md +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/SAMPLE.md @@ -165,6 +165,10 @@ - [Get](#protectioncontainerrefreshoperationresults_get) +## ProtectionContainerRefreshOperationStatuses + +- [Get](#protectioncontainerrefreshoperationstatuses_get) + ## ProtectionContainers - [Get](#protectioncontainers_get) @@ -197,6 +201,8 @@ ## RecoveryPoints - [Get](#recoverypoints_get) +- [GetRPExtendedInfo](#recoverypoints_getrpextendedinfo) +- [GetRPExtendedInfoOperationResult](#recoverypoints_getrpextendedinfooperationresult) - [List](#recoverypoints_list) ## RecoveryPointsRecommendedForMove @@ -249,7 +255,7 @@ */ public final class BackupEnginesGetSamples { /* - * x-ms-original-file: 2026-08-01/Dpm/BackupEngines_Get.json + * x-ms-original-file: 2026-10-01/Dpm/BackupEngines_Get.json */ /** * Sample code: Get Dpm/AzureBackupServer/Lajolla Backup Engine Details. @@ -272,7 +278,7 @@ public final class BackupEnginesGetSamples { */ public final class BackupEnginesListSamples { /* - * x-ms-original-file: 2026-08-01/Dpm/BackupEngines_List.json + * x-ms-original-file: 2026-10-01/Dpm/BackupEngines_List.json */ /** * Sample code: List Dpm/AzureBackupServer/Lajolla Backup Engines. @@ -294,7 +300,7 @@ public final class BackupEnginesListSamples { */ public final class BackupJobsListSamples { /* - * x-ms-original-file: 2026-08-01/Common/ListJobs.json + * x-ms-original-file: 2026-10-01/Common/ListJobs.json */ /** * Sample code: List All Jobs. @@ -307,7 +313,7 @@ public final class BackupJobsListSamples { } /* - * x-ms-original-file: 2026-08-01/Common/ListJobsWithAllSupportedFilters.json + * x-ms-original-file: 2026-10-01/Common/ListJobsWithAllSupportedFilters.json */ /** * Sample code: List Jobs With Filters. @@ -323,7 +329,7 @@ public final class BackupJobsListSamples { } /* - * x-ms-original-file: 2026-08-01/Common/ListJobsWithStartTimeAndEndTimeFilters.json + * x-ms-original-file: 2026-10-01/Common/ListJobsWithStartTimeAndEndTimeFilters.json */ /** * Sample code: List Jobs With Time Filter. @@ -348,7 +354,7 @@ public final class BackupJobsListSamples { */ public final class BackupOperationResultsGetSamples { /* - * x-ms-original-file: 2026-08-01/Common/ProtectedItem_Delete_OperationResult.json + * x-ms-original-file: 2026-10-01/Common/ProtectedItem_Delete_OperationResult.json */ /** * Sample code: Get Result for Protected Item Delete Operation. @@ -372,7 +378,7 @@ public final class BackupOperationResultsGetSamples { */ public final class BackupOperationStatusesGetSamples { /* - * x-ms-original-file: 2026-08-01/Common/ProtectedItem_Delete_OperationStatus.json + * x-ms-original-file: 2026-10-01/Common/ProtectedItem_Delete_OperationStatus.json */ /** * Sample code: Get Protected Item Delete Operation Status. @@ -396,7 +402,7 @@ public final class BackupOperationStatusesGetSamples { */ public final class BackupPoliciesListSamples { /* - * x-ms-original-file: 2026-08-01/AzureWorkload/BackupPolicies_List.json + * x-ms-original-file: 2026-10-01/AzureWorkload/BackupPolicies_List.json */ /** * Sample code: List protection policies with backupManagementType filter as AzureWorkload. @@ -411,7 +417,7 @@ public final class BackupPoliciesListSamples { } /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/V2Policy/v2-List-Policies.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/V2Policy/v2-List-Policies.json */ /** * Sample code: List protection policies with backupManagementType filter as AzureIaasVm with both V1 and V2 @@ -427,7 +433,7 @@ public final class BackupPoliciesListSamples { } /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/BackupPolicies_List.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/BackupPolicies_List.json */ /** * Sample code: List protection policies with backupManagementType filter as AzureIaasVm. @@ -451,7 +457,7 @@ public final class BackupPoliciesListSamples { */ public final class BackupProtectableItemsListSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/BackupProtectableItems_List.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/BackupProtectableItems_List.json */ /** * Sample code: List protectable items with backupManagementType filter as AzureIaasVm. @@ -475,7 +481,7 @@ public final class BackupProtectableItemsListSamples { */ public final class BackupProtectedItemsListSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/BackupProtectedItems_List.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/BackupProtectedItems_List.json */ /** * Sample code: List protected items with backupManagementType filter as AzureIaasVm. @@ -499,7 +505,7 @@ public final class BackupProtectedItemsListSamples { */ public final class BackupProtectionContainersListSamples { /* - * x-ms-original-file: 2026-08-01/AzureStorage/ProtectionContainers_List.json + * x-ms-original-file: 2026-10-01/AzureStorage/ProtectionContainers_List.json */ /** * Sample code: List Backup Protection Containers. @@ -513,7 +519,7 @@ public final class BackupProtectionContainersListSamples { } /* - * x-ms-original-file: 2026-08-01/AzureStorage/ProtectionContainers_List_WithAccessType.json + * x-ms-original-file: 2026-10-01/AzureStorage/ProtectionContainers_List_WithAccessType.json */ /** * Sample code: List Backup Protection Containers with Access Type. @@ -537,7 +543,7 @@ public final class BackupProtectionContainersListSamples { */ public final class BackupProtectionIntentListSamples { /* - * x-ms-original-file: 2026-08-01/AzureWorkload/BackupProtectionIntent_List.json + * x-ms-original-file: 2026-10-01/AzureWorkload/BackupProtectionIntent_List.json */ /** * Sample code: List protection intent with backupManagementType filter. @@ -559,7 +565,7 @@ public final class BackupProtectionIntentListSamples { */ public final class BackupResourceEncryptionConfigsGetSamples { /* - * x-ms-original-file: 2026-08-01/BackupResourceEncryptionConfig_Get.json + * x-ms-original-file: 2026-10-01/BackupResourceEncryptionConfig_Get.json */ /** * Sample code: Get Vault Encryption Configuration. @@ -587,7 +593,7 @@ import com.azure.resourcemanager.recoveryservicesbackup.models.InfrastructureEnc */ public final class BackupResourceEncryptionConfigsUpdateSamples { /* - * x-ms-original-file: 2026-08-01/BackupResourceEncryptionConfig_Put.json + * x-ms-original-file: 2026-10-01/BackupResourceEncryptionConfig_Put.json */ /** * Sample code: Update Vault Encryption Configuration. @@ -616,7 +622,7 @@ public final class BackupResourceEncryptionConfigsUpdateSamples { */ public final class BackupResourceStorageConfigsNonCrrGetSamples { /* - * x-ms-original-file: 2026-08-01/Common/BackupStorageConfig_Get.json + * x-ms-original-file: 2026-10-01/Common/BackupStorageConfig_Get.json */ /** * Sample code: Get Vault Storage Configuration. @@ -644,7 +650,7 @@ import com.azure.resourcemanager.recoveryservicesbackup.models.StorageTypeState; */ public final class BackupResourceStorageConfigsNonCrrPatchSamples { /* - * x-ms-original-file: 2026-08-01/Common/BackupStorageConfig_Patch.json + * x-ms-original-file: 2026-10-01/Common/BackupStorageConfig_Patch.json */ /** * Sample code: Update Vault Storage Configuration. @@ -676,7 +682,7 @@ import com.azure.resourcemanager.recoveryservicesbackup.models.StorageTypeState; */ public final class BackupResourceStorageConfigsNonCrrUpdateSamples { /* - * x-ms-original-file: 2026-08-01/Common/BackupStorageConfig_Put.json + * x-ms-original-file: 2026-10-01/Common/BackupStorageConfig_Put.json */ /** * Sample code: Update Vault Storage Configuration. @@ -703,7 +709,7 @@ public final class BackupResourceStorageConfigsNonCrrUpdateSamples { */ public final class BackupResourceVaultConfigsGetSamples { /* - * x-ms-original-file: 2026-08-01/Common/BackupResourceVaultConfigs_Get.json + * x-ms-original-file: 2026-10-01/Common/BackupResourceVaultConfigs_Get.json */ /** * Sample code: Get Vault Security Config. @@ -731,7 +737,7 @@ import com.azure.resourcemanager.recoveryservicesbackup.models.SoftDeleteFeature */ public final class BackupResourceVaultConfigsPutSamples { /* - * x-ms-original-file: 2026-08-01/Common/BackupResourceVaultConfigs_Put.json + * x-ms-original-file: 2026-10-01/Common/BackupResourceVaultConfigs_Put.json */ /** * Sample code: Update Vault Security Config. @@ -762,7 +768,7 @@ import com.azure.resourcemanager.recoveryservicesbackup.models.EnhancedSecurityS */ public final class BackupResourceVaultConfigsUpdateSamples { /* - * x-ms-original-file: 2026-08-01/Common/BackupResourceVaultConfigs_Patch.json + * x-ms-original-file: 2026-10-01/Common/BackupResourceVaultConfigs_Patch.json */ /** * Sample code: Update Vault Security Config. @@ -791,7 +797,7 @@ import com.azure.resourcemanager.recoveryservicesbackup.models.DataSourceType; */ public final class BackupStatusGetSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/GetBackupStatus.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/GetBackupStatus.json */ /** * Sample code: Get Azure Virtual Machine Backup Status. @@ -817,7 +823,7 @@ public final class BackupStatusGetSamples { */ public final class BackupUsageSummariesListSamples { /* - * x-ms-original-file: 2026-08-01/Common/BackupProtectedItem_UsageSummary_Get.json + * x-ms-original-file: 2026-10-01/Common/BackupProtectedItem_UsageSummary_Get.json */ /** * Sample code: Get Protected Items Usages Summary. @@ -832,7 +838,7 @@ public final class BackupUsageSummariesListSamples { } /* - * x-ms-original-file: 2026-08-01/Common/BackupProtectionContainers_UsageSummary_Get.json + * x-ms-original-file: 2026-10-01/Common/BackupProtectionContainers_UsageSummary_Get.json */ /** * Sample code: Get Protected Containers Usages Summary. @@ -856,7 +862,7 @@ public final class BackupUsageSummariesListSamples { */ public final class BackupWorkloadItemsListSamples { /* - * x-ms-original-file: 2026-08-01/AzureWorkload/BackupWorkloadItems_List.json + * x-ms-original-file: 2026-10-01/AzureWorkload/BackupWorkloadItems_List.json */ /** * Sample code: List Workload Items in Container. @@ -883,7 +889,7 @@ import com.azure.resourcemanager.recoveryservicesbackup.models.IaasVMBackupReque */ public final class BackupsTriggerSamples { /* - * x-ms-original-file: 2026-08-01/Common/TriggerBackup_Post.json + * x-ms-original-file: 2026-10-01/Common/TriggerBackup_Post.json */ /** * Sample code: Trigger Backup. @@ -909,7 +915,7 @@ public final class BackupsTriggerSamples { */ public final class BmsPrepareDataMoveOperationResultGetSamples { /* - * x-ms-original-file: 2026-08-01/BackupDataMove/PrepareDataMoveOperationResult_Get.json + * x-ms-original-file: 2026-10-01/BackupDataMove/PrepareDataMoveOperationResult_Get.json */ /** * Sample code: Get operation result for PrepareDataMove. @@ -936,7 +942,7 @@ import com.azure.resourcemanager.recoveryservicesbackup.models.SourceScanAction; */ public final class ConfigureSourceScanExecuteSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/ConfigureSourceScan.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/ConfigureSourceScan.json */ /** * Sample code: Configure Source Scan for Protected Item. @@ -963,7 +969,7 @@ public final class ConfigureSourceScanExecuteSamples { */ public final class DeletedProtectionContainersListSamples { /* - * x-ms-original-file: 2026-08-01/AzureStorage/SoftDeletedContainers_List.json + * x-ms-original-file: 2026-10-01/AzureStorage/SoftDeletedContainers_List.json */ /** * Sample code: List Backup Protection Containers. @@ -986,7 +992,7 @@ public final class DeletedProtectionContainersListSamples { */ public final class ExportJobsOperationResultsGetSamples { /* - * x-ms-original-file: 2026-08-01/Common/ExportJobsOperationResult.json + * x-ms-original-file: 2026-10-01/Common/ExportJobsOperationResult.json */ /** * Sample code: Export Jobs Operation Results. @@ -1012,7 +1018,7 @@ import com.azure.resourcemanager.recoveryservicesbackup.models.AzureVMResourceFe */ public final class FeatureSupportValidateSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/BackupFeature_Validate.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/BackupFeature_Validate.json */ /** * Sample code: Check Azure Vm Backup Feature Support. @@ -1044,7 +1050,7 @@ import com.azure.resourcemanager.recoveryservicesbackup.models.RehydrationPriori */ public final class FetchTieringCostPostSamples { /* - * x-ms-original-file: 2026-08-01/TieringCost/FetchTieringCostForRehydrate.json + * x-ms-original-file: 2026-10-01/TieringCost/FetchTieringCostForRehydrate.json */ /** * Sample code: Get the rehydration cost for recovery point. @@ -1065,7 +1071,7 @@ public final class FetchTieringCostPostSamples { } /* - * x-ms-original-file: 2026-08-01/TieringCost/FetchTieringCostForProtectedItem.json + * x-ms-original-file: 2026-10-01/TieringCost/FetchTieringCostForProtectedItem.json */ /** * Sample code: Get the tiering savings cost info for protected item. @@ -1085,7 +1091,7 @@ public final class FetchTieringCostPostSamples { } /* - * x-ms-original-file: 2026-08-01/TieringCost/FetchTieringCostForPolicy.json + * x-ms-original-file: 2026-10-01/TieringCost/FetchTieringCostForPolicy.json */ /** * Sample code: Get the tiering savings cost info for policy. @@ -1103,7 +1109,7 @@ public final class FetchTieringCostPostSamples { } /* - * x-ms-original-file: 2026-08-01/TieringCost/FetchTieringCostForVault.json + * x-ms-original-file: 2026-10-01/TieringCost/FetchTieringCostForVault.json */ /** * Sample code: Get the tiering savings cost info for vault. @@ -1129,7 +1135,7 @@ public final class FetchTieringCostPostSamples { */ public final class GetTieringCostOperationResultGetSamples { /* - * x-ms-original-file: 2026-08-01/TieringCost/GetTieringCostOperationResult.json + * x-ms-original-file: 2026-10-01/TieringCost/GetTieringCostOperationResult.json */ /** * Sample code: Fetch Tiering Cost Operation Result. @@ -1153,9 +1159,9 @@ import com.azure.resourcemanager.recoveryservicesbackup.models.InstantItemRecove /** * Samples for ItemLevelRecoveryConnections ListInstantItemRecoveryOperationResult. */ -public final class ItemLevelRecoveryConnectionsListInstantItemRecoveryOperationReSamples { +public final class ItemLevelRecoveryConnectionsListInstantItemRecoveryOperationResultSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/ListInstantItemRecoveryOperationResult.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/ListInstantItemRecoveryOperationResult.json */ /** * Sample code: List the Instant Item Recovery operation result (mount scripts) for an active ILR session. @@ -1186,7 +1192,7 @@ import com.azure.resourcemanager.recoveryservicesbackup.models.IlrRequestResourc */ public final class ItemLevelRecoveryConnectionsProvisionSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/Provision_Ilr.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/Provision_Ilr.json */ /** * Sample code: Provision Instant Item Level Recovery for Azure Vm. @@ -1218,7 +1224,7 @@ public final class ItemLevelRecoveryConnectionsProvisionSamples { */ public final class ItemLevelRecoveryConnectionsRevokeSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/Revoke_Ilr.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/Revoke_Ilr.json */ /** * Sample code: Revoke Instant Item Level Recovery for Azure Vm. @@ -1243,7 +1249,7 @@ public final class ItemLevelRecoveryConnectionsRevokeSamples { */ public final class JobCancellationsTriggerSamples { /* - * x-ms-original-file: 2026-08-01/Common/TriggerCancelJob.json + * x-ms-original-file: 2026-10-01/Common/TriggerCancelJob.json */ /** * Sample code: Cancel Job. @@ -1267,7 +1273,7 @@ public final class JobCancellationsTriggerSamples { */ public final class JobDetailsGetSamples { /* - * x-ms-original-file: 2026-08-01/Common/GetJobDetails.json + * x-ms-original-file: 2026-10-01/Common/GetJobDetails.json */ /** * Sample code: Get Job Details. @@ -1291,7 +1297,7 @@ public final class JobDetailsGetSamples { */ public final class JobOperationResultsGetSamples { /* - * x-ms-original-file: 2026-08-01/Common/CancelJobOperationResult.json + * x-ms-original-file: 2026-10-01/Common/CancelJobOperationResult.json */ /** * Sample code: Cancel Job Operation Result. @@ -1315,7 +1321,7 @@ public final class JobOperationResultsGetSamples { */ public final class JobsExportSamples { /* - * x-ms-original-file: 2026-08-01/Common/TriggerExportJobs.json + * x-ms-original-file: 2026-10-01/Common/TriggerExportJobs.json */ /** * Sample code: Export Jobs. @@ -1345,7 +1351,7 @@ import com.azure.resourcemanager.recoveryservicesbackup.models.ValidateOperation */ public final class OperationOperationValidateSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/ValidateOperation_RestoreDisk.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/ValidateOperation_RestoreDisk.json */ /** * Sample code: Validate Operation. @@ -1375,7 +1381,7 @@ public final class OperationOperationValidateSamples { } /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/ValidateOperation_RestoreDisk_IdentityBasedRestoreDetails.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/ValidateOperation_RestoreDisk_IdentityBasedRestoreDetails.json */ /** * Sample code: Validate Operation with identityBasedRestoreDetails. @@ -1414,7 +1420,7 @@ public final class OperationOperationValidateSamples { */ public final class OperationsListSamples { /* - * x-ms-original-file: 2026-08-01/ListOperations.json + * x-ms-original-file: 2026-10-01/ListOperations.json */ /** * Sample code: ListOperations. @@ -1436,7 +1442,7 @@ public final class OperationsListSamples { */ public final class PrivateEndpointGetOperationStatusSamples { /* - * x-ms-original-file: 2026-08-01/PrivateEndpointConnection/GetPrivateEndpointConnectionOperationStatus.json + * x-ms-original-file: 2026-10-01/PrivateEndpointConnection/GetPrivateEndpointConnectionOperationStatus.json */ /** * Sample code: Get OperationStatus. @@ -1461,7 +1467,7 @@ public final class PrivateEndpointGetOperationStatusSamples { */ public final class PrivateEndpointConnectionDeleteSamples { /* - * x-ms-original-file: 2026-08-01/PrivateEndpointConnection/DeletePrivateEndpointConnection.json + * x-ms-original-file: 2026-10-01/PrivateEndpointConnection/DeletePrivateEndpointConnection.json */ /** * Sample code: Delete PrivateEndpointConnection. @@ -1485,7 +1491,7 @@ public final class PrivateEndpointConnectionDeleteSamples { */ public final class PrivateEndpointConnectionGetSamples { /* - * x-ms-original-file: 2026-08-01/PrivateEndpointConnection/GetPrivateEndpointConnection.json + * x-ms-original-file: 2026-10-01/PrivateEndpointConnection/GetPrivateEndpointConnection.json */ /** * Sample code: Get PrivateEndpointConnection. @@ -1518,7 +1524,7 @@ import java.util.Arrays; */ public final class PrivateEndpointConnectionPutSamples { /* - * x-ms-original-file: 2026-08-01/PrivateEndpointConnection/PutPrivateEndpointConnection.json + * x-ms-original-file: 2026-10-01/PrivateEndpointConnection/PutPrivateEndpointConnection.json */ /** * Sample code: Update PrivateEndpointConnection. @@ -1552,7 +1558,7 @@ public final class PrivateEndpointConnectionPutSamples { */ public final class ProtectableContainersListSamples { /* - * x-ms-original-file: 2026-08-01/AzureStorage/ProtectableContainers_List.json + * x-ms-original-file: 2026-10-01/AzureStorage/ProtectableContainers_List.json */ /** * Sample code: List protectable items with backupManagementType filter as AzureStorage. @@ -1577,7 +1583,7 @@ public final class ProtectableContainersListSamples { */ public final class ProtectedItemOperationResultsGetSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/ProtectedItemOperationResults.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/ProtectedItemOperationResults.json */ /** * Sample code: Get Operation Results of Protected Vm. @@ -1603,7 +1609,7 @@ public final class ProtectedItemOperationResultsGetSamples { */ public final class ProtectedItemOperationStatusesGetSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/ProtectedItemOperationStatus.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/ProtectedItemOperationStatus.json */ /** * Sample code: Get Operation Status of Protected Vm. @@ -1625,6 +1631,7 @@ public final class ProtectedItemOperationStatusesGetSamples { ```java import com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSComputeVMProtectedItem; +import com.azure.resourcemanager.recoveryservicesbackup.models.ExistingBasicVMProtection; import com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionState; /** @@ -1632,7 +1639,7 @@ import com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionState; */ public final class ProtectedItemsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/StopProtection.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/StopProtection.json */ /** * Sample code: Stop Protection with retain data on Azure IaasVm. @@ -1652,7 +1659,7 @@ public final class ProtectedItemsCreateOrUpdateSamples { } /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/ConfigureProtection.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/ConfigureProtection.json */ /** * Sample code: Enable Protection on Azure IaasVm. @@ -1668,7 +1675,8 @@ public final class ProtectedItemsCreateOrUpdateSamples { .withProperties(new AzureIaaSComputeVMProtectedItem().withSourceResourceId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1") .withPolicyId( - "/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/DefaultPolicy")) + "/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/DefaultPolicy") + .withExistingBasicVMProtection(ExistingBasicVMProtection.DISABLE_WITH_DELETE_RPS_NOW)) .create(); } } @@ -1682,7 +1690,7 @@ public final class ProtectedItemsCreateOrUpdateSamples { */ public final class ProtectedItemsDeleteSamples { /* - * x-ms-original-file: 2026-08-01/Common/ProtectedItem_Delete.json + * x-ms-original-file: 2026-10-01/Common/ProtectedItem_Delete.json */ /** * Sample code: Delete Protection from Azure Virtual Machine. @@ -1707,7 +1715,7 @@ public final class ProtectedItemsDeleteSamples { */ public final class ProtectedItemsGetSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/ClassicCompute_ProtectedItem_Get.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/ClassicCompute_ProtectedItem_Get.json */ /** * Sample code: Get Protected Classic Virtual Machine Details. @@ -1723,7 +1731,7 @@ public final class ProtectedItemsGetSamples { } /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/Compute_ProtectedItem_Get.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/Compute_ProtectedItem_Get.json */ /** * Sample code: Get Protected Virtual Machine Details. @@ -1748,7 +1756,7 @@ public final class ProtectedItemsGetSamples { */ public final class ProtectionContainerOperationResultsGetSamples { /* - * x-ms-original-file: 2026-08-01/AzureStorage/ProtectionContainers_Inquire_Result.json + * x-ms-original-file: 2026-10-01/AzureStorage/ProtectionContainers_Inquire_Result.json */ /** * Sample code: Get Azure Storage Protection Container Operation Result. @@ -1772,7 +1780,7 @@ public final class ProtectionContainerOperationResultsGetSamples { */ public final class ProtectionContainerRefreshOperationResultsGetSamples { /* - * x-ms-original-file: 2026-08-01/Common/RefreshContainers_OperationResults.json + * x-ms-original-file: 2026-10-01/Common/RefreshContainers_OperationResults.json */ /** * Sample code: Azure Vm Discovery Operation Result. @@ -1788,6 +1796,30 @@ public final class ProtectionContainerRefreshOperationResultsGetSamples { } ``` +### ProtectionContainerRefreshOperationStatuses_Get + +```java +/** + * Samples for ProtectionContainerRefreshOperationStatuses Get. + */ +public final class ProtectionContainerRefreshOperationStatusesGetSamples { + /* + * x-ms-original-file: 2026-10-01/Common/RefreshContainers_OperationStatus.json + */ + /** + * Sample code: Get Fabric Level Operation Status. + * + * @param manager Entry point to RecoveryServicesBackupManager. + */ + public static void getFabricLevelOperationStatus( + com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager manager) { + manager.protectionContainerRefreshOperationStatuses() + .getWithResponse("SwaggerTestRg", "NetSDKTestRsVault", "Azure", "00000000-0000-0000-0000-000000000000", + com.azure.core.util.Context.NONE); + } +} +``` + ### ProtectionContainers_Get ```java @@ -1796,7 +1828,7 @@ public final class ProtectionContainerRefreshOperationResultsGetSamples { */ public final class ProtectionContainersGetSamples { /* - * x-ms-original-file: 2026-08-01/AzureWorkload/ProtectionContainers_Get.json + * x-ms-original-file: 2026-10-01/AzureWorkload/ProtectionContainers_Get.json */ /** * Sample code: Get Protection Container Details. @@ -1820,7 +1852,7 @@ public final class ProtectionContainersGetSamples { */ public final class ProtectionContainersInquireSamples { /* - * x-ms-original-file: 2026-08-01/AzureStorage/ProtectionContainers_Inquire.json + * x-ms-original-file: 2026-10-01/AzureStorage/ProtectionContainers_Inquire.json */ /** * Sample code: Inquire Azure Storage Protection Containers. @@ -1844,7 +1876,7 @@ public final class ProtectionContainersInquireSamples { */ public final class ProtectionContainersRefreshSamples { /* - * x-ms-original-file: 2026-08-01/Common/RefreshContainers.json + * x-ms-original-file: 2026-10-01/Common/RefreshContainers.json */ /** * Sample code: Trigger Azure Vm Discovery. @@ -1856,6 +1888,22 @@ public final class ProtectionContainersRefreshSamples { manager.protectionContainers() .refreshWithResponse("NetSDKTestRsVault", "SwaggerTestRg", "Azure", null, com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2026-10-01/Common/RefreshContainers_CrossSubscription.json + */ + /** + * Sample code: Trigger cross-subscription Azure Workload discovery. + * + * @param manager Entry point to RecoveryServicesBackupManager. + */ + public static void triggerCrossSubscriptionAzureWorkloadDiscovery( + com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager manager) { + manager.protectionContainers() + .refreshWithResponse("NetSDKTestRsVault", "SwaggerTestRg", "Azure", + "backupManagementType eq 'AzureWorkload' and containerSubscriptionId eq 'a76f4f58-8c04-4f53-9e68-4a698b0f43e4'", + com.azure.core.util.Context.NONE); + } } ``` @@ -1874,7 +1922,7 @@ import com.azure.resourcemanager.recoveryservicesbackup.models.OperationType; */ public final class ProtectionContainersRegisterSamples { /* - * x-ms-original-file: 2026-08-01/AzureStorage/ProtectionContainers_ReRegister_SwitchToUAMI.json + * x-ms-original-file: 2026-10-01/AzureStorage/ProtectionContainers_ReRegister_SwitchToUAMI.json */ /** * Sample code: Re-register Azure Storage ProtectionContainers switching to User Assigned Managed Identity. @@ -1900,7 +1948,7 @@ public final class ProtectionContainersRegisterSamples { } /* - * x-ms-original-file: 2026-08-01/AzureStorage/ProtectionContainers_Register.json + * x-ms-original-file: 2026-10-01/AzureStorage/ProtectionContainers_Register.json */ /** * Sample code: RegisterAzure Storage ProtectionContainers. @@ -1921,7 +1969,7 @@ public final class ProtectionContainersRegisterSamples { } /* - * x-ms-original-file: 2026-08-01/AzureStorage/ProtectionContainers_ReRegister_SwitchToSAMI.json + * x-ms-original-file: 2026-10-01/AzureStorage/ProtectionContainers_ReRegister_SwitchToSAMI.json */ /** * Sample code: Re-register Azure Storage ProtectionContainers switching to System Assigned Managed Identity. @@ -1945,7 +1993,7 @@ public final class ProtectionContainersRegisterSamples { } /* - * x-ms-original-file: 2026-08-01/AzureStorage/ProtectionContainers_Register_WithSAMI.json + * x-ms-original-file: 2026-10-01/AzureStorage/ProtectionContainers_Register_WithSAMI.json */ /** * Sample code: Register Azure Storage ProtectionContainers with System Assigned Managed Identity. @@ -1968,7 +2016,7 @@ public final class ProtectionContainersRegisterSamples { } /* - * x-ms-original-file: 2026-08-01/AzureStorage/ProtectionContainers_Register_WithUAMI.json + * x-ms-original-file: 2026-10-01/AzureStorage/ProtectionContainers_Register_WithUAMI.json */ /** * Sample code: Register Azure Storage ProtectionContainers with User Assigned Managed Identity. @@ -2002,7 +2050,7 @@ public final class ProtectionContainersRegisterSamples { */ public final class ProtectionContainersUnregisterSamples { /* - * x-ms-original-file: 2026-08-01/AzureWorkload/ProtectionContainers_Unregister.json + * x-ms-original-file: 2026-10-01/AzureWorkload/ProtectionContainers_Unregister.json */ /** * Sample code: Unregister Protection Container. @@ -2028,7 +2076,7 @@ import com.azure.resourcemanager.recoveryservicesbackup.models.AzureResourceProt */ public final class ProtectionIntentCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/ProtectionIntent_CreateOrUpdate.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/ProtectionIntent_CreateOrUpdate.json */ /** * Sample code: Create or Update Azure Vm Protection Intent. @@ -2057,7 +2105,7 @@ public final class ProtectionIntentCreateOrUpdateSamples { */ public final class ProtectionIntentDeleteSamples { /* - * x-ms-original-file: 2026-08-01/AzureWorkload/BackupProtectionIntent_Delete.json + * x-ms-original-file: 2026-10-01/AzureWorkload/BackupProtectionIntent_Delete.json */ /** * Sample code: Delete Protection intent from item. @@ -2081,7 +2129,7 @@ public final class ProtectionIntentDeleteSamples { */ public final class ProtectionIntentGetSamples { /* - * x-ms-original-file: 2026-08-01/AzureWorkload/BackupProtectionIntent_Get.json + * x-ms-original-file: 2026-10-01/AzureWorkload/BackupProtectionIntent_Get.json */ /** * Sample code: Get ProtectionIntent for an item. @@ -2108,7 +2156,7 @@ import com.azure.resourcemanager.recoveryservicesbackup.models.PreValidateEnable */ public final class ProtectionIntentValidateSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/ProtectionIntent_Validate.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/ProtectionIntent_Validate.json */ /** * Sample code: Validate Enable Protection on Azure Vm. @@ -2169,7 +2217,7 @@ import java.util.Arrays; */ public final class ProtectionPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Simple.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Simple.json */ /** * Sample code: Create or Update Simple Azure Vm Protection Policy. @@ -2193,7 +2241,7 @@ public final class ProtectionPoliciesCreateOrUpdateSamples { } /* - * x-ms-original-file: 2026-08-01/AzureWorkload/ProtectionPolicies_CreateOrUpdate_Complex.json + * x-ms-original-file: 2026-10-01/AzureWorkload/ProtectionPolicies_CreateOrUpdate_Complex.json */ /** * Sample code: Create or Update Full Azure Workload Protection Policy. @@ -2256,7 +2304,7 @@ public final class ProtectionPoliciesCreateOrUpdateSamples { } /* - * x-ms-original-file: 2026-08-01/AzureStorage/ProtectionPolicies_CreateOrUpdate_Daily.json + * x-ms-original-file: 2026-10-01/AzureStorage/ProtectionPolicies_CreateOrUpdate_Daily.json */ /** * Sample code: Create or Update Daily Azure Storage Protection Policy. @@ -2306,7 +2354,7 @@ public final class ProtectionPoliciesCreateOrUpdateSamples { } /* - * x-ms-original-file: 2026-08-01/AzureStorage/ProtectionPolicies_CreateOrUpdate_Hardened.json + * x-ms-original-file: 2026-10-01/AzureStorage/ProtectionPolicies_CreateOrUpdate_Hardened.json */ /** * Sample code: Create or Update Azure Storage Vault Standard Protection Policy. @@ -2361,7 +2409,7 @@ public final class ProtectionPoliciesCreateOrUpdateSamples { } /* - * x-ms-original-file: 2026-08-01/AzureStorage/ProtectionPolicies_CreateOrUpdate_Hourly.json + * x-ms-original-file: 2026-10-01/AzureStorage/ProtectionPolicies_CreateOrUpdate_Hourly.json */ /** * Sample code: Create or Update Hourly Azure Storage Protection Policy. @@ -2406,7 +2454,7 @@ public final class ProtectionPoliciesCreateOrUpdateSamples { } /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Complex.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Complex.json */ /** * Sample code: Create or Update Full Azure Vm Protection Policy. @@ -2456,7 +2504,7 @@ public final class ProtectionPoliciesCreateOrUpdateSamples { } /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/V2Policy/IaaS_v2_hourly.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/V2Policy/IaaS_v2_hourly.json */ /** * Sample code: Create or Update Enhanced Azure Vm Protection Policy with Hourly backup. @@ -2510,7 +2558,7 @@ public final class ProtectionPoliciesCreateOrUpdateSamples { } /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/V2Policy/IaaS_v2_daily.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/V2Policy/IaaS_v2_daily.json */ /** * Sample code: Create or Update Enhanced Azure Vm Protection Policy with daily backup. @@ -2556,6 +2604,8 @@ public final class ProtectionPoliciesCreateOrUpdateSamples { .withRetentionDuration(new RetentionDuration().withCount(10) .withDurationType(RetentionDurationType.YEARS)))) .withInstantRpRetentionRangeInDays(30) + .withInstantAccessSnapshotEnabled(true) + .withInstantAccessDurationMinutes(120) .withTimeZone("India Standard Time") .withPolicyType(IaasvmPolicyType.V2) .withSnapshotConsistencyType(IaasVMSnapshotConsistencyType.ONLY_CRASH_CONSISTENT)) @@ -2572,7 +2622,7 @@ public final class ProtectionPoliciesCreateOrUpdateSamples { */ public final class ProtectionPoliciesDeleteSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/ProtectionPolicies_Delete.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/ProtectionPolicies_Delete.json */ /** * Sample code: Delete Azure Vm Protection Policy. @@ -2595,7 +2645,7 @@ public final class ProtectionPoliciesDeleteSamples { */ public final class ProtectionPoliciesGetSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/ProtectionPolicies_Get.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/ProtectionPolicies_Get.json */ /** * Sample code: Get Azure IaasVm Protection Policy Details. @@ -2609,7 +2659,7 @@ public final class ProtectionPoliciesGetSamples { } /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/V2Policy/v2-Get-Policy.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/V2Policy/v2-Get-Policy.json */ /** * Sample code: Get Azure IaasVm Enhanced Protection Policy Details. @@ -2632,7 +2682,7 @@ public final class ProtectionPoliciesGetSamples { */ public final class ProtectionPolicyOperationResultsGetSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/ProtectionPolicyOperationResults_Get.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/ProtectionPolicyOperationResults_Get.json */ /** * Sample code: Get Protection Policy Operation Results. @@ -2656,7 +2706,7 @@ public final class ProtectionPolicyOperationResultsGetSamples { */ public final class ProtectionPolicyOperationStatusesGetSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/ProtectionPolicyOperationStatuses_Get.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/ProtectionPolicyOperationStatuses_Get.json */ /** * Sample code: Get Protection Policy Operation Status. @@ -2680,7 +2730,22 @@ public final class ProtectionPolicyOperationStatusesGetSamples { */ public final class RecoveryPointsGetSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/RecoveryPoints_Get.json + * x-ms-original-file: 2026-10-01/AzureWorkload/RecoveryPoints_Get_Snapshot.json + */ + /** + * Sample code: Get Azure Workload SQL snapshot recovery point details. + * + * @param manager Entry point to RecoveryServicesBackupManager. + */ + public static void getAzureWorkloadSQLSnapshotRecoveryPointDetails( + com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager manager) { + manager.recoveryPoints() + .getWithResponse("testVault", "testRG", "Azure", "VMAppContainer;Compute;testRG;sqlVm", + "SQLDataBase;mssqlserver;inventory", "1700000000000", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-10-01/AzureIaasVm/RecoveryPoints_Get.json */ /** * Sample code: Get Azure Vm Recovery Point Details. @@ -2697,6 +2762,60 @@ public final class RecoveryPointsGetSamples { } ``` +### RecoveryPoints_GetRPExtendedInfo + +```java +import com.azure.resourcemanager.recoveryservicesbackup.models.GetRPExtendedInfoRequest; +import com.azure.resourcemanager.recoveryservicesbackup.models.GetRPExtendedInfoRequestResource; +import java.util.Arrays; + +/** + * Samples for RecoveryPoints GetRPExtendedInfo. + */ +public final class RecoveryPointsGetRPExtendedInfoSamples { + /* + * x-ms-original-file: 2026-10-01/AzureIaasVm/TriggerGetRPExtendedInfo.json + */ + /** + * Sample code: Trigger Get RP Extended Info. + * + * @param manager Entry point to RecoveryServicesBackupManager. + */ + public static void triggerGetRPExtendedInfo( + com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager manager) { + manager.recoveryPoints() + .getRPExtendedInfo("testRG", "testVault", "Azure", new GetRPExtendedInfoRequestResource() + .withProperties(new GetRPExtendedInfoRequest().withRecoveryPointIds(Arrays.asList( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.RecoveryServices/vaults/testVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;testRG;testvmName/protectedItems/VM;iaasvmcontainerv2;testRG;testvmName/recoveryPoints/348916168024334"))), + com.azure.core.util.Context.NONE); + } +} +``` + +### RecoveryPoints_GetRPExtendedInfoOperationResult + +```java +/** + * Samples for RecoveryPoints GetRPExtendedInfoOperationResult. + */ +public final class RecoveryPointsGetRPExtendedInfoOperationResultSamples { + /* + * x-ms-original-file: 2026-10-01/AzureIaasVm/GetRPExtendedInfoOperationResult.json + */ + /** + * Sample code: Get RP Extended Info Operation Result. + * + * @param manager Entry point to RecoveryServicesBackupManager. + */ + public static void getRPExtendedInfoOperationResult( + com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager manager) { + manager.recoveryPoints() + .getRPExtendedInfoOperationResultWithResponse("testRG", "testVault", "Azure", + "00000000-0000-0000-0000-000000000000", com.azure.core.util.Context.NONE); + } +} +``` + ### RecoveryPoints_List ```java @@ -2705,7 +2824,7 @@ public final class RecoveryPointsGetSamples { */ public final class RecoveryPointsListSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/RecoveryPoints_List.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/RecoveryPoints_List.json */ /** * Sample code: Get Protected Azure Vm Recovery Points. @@ -2733,7 +2852,7 @@ import java.util.Arrays; */ public final class RecoveryPointsRecommendedForMoveListSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/RecoveryPointsRecommendedForMove_List.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/RecoveryPointsRecommendedForMove_List.json */ /** * Sample code: Get Protected Azure Vm Recovery Points Recommended for Move. @@ -2762,7 +2881,7 @@ public final class RecoveryPointsRecommendedForMoveListSamples { */ public final class ResourceGuardProxyOperationDeleteSamples { /* - * x-ms-original-file: 2026-08-01/ResourceGuardProxyCRUD/DeleteResourceGuardProxy.json + * x-ms-original-file: 2026-10-01/ResourceGuardProxyCRUD/DeleteResourceGuardProxy.json */ /** * Sample code: Delete ResourceGuardProxy. @@ -2786,7 +2905,7 @@ public final class ResourceGuardProxyOperationDeleteSamples { */ public final class ResourceGuardProxyOperationGetSamples { /* - * x-ms-original-file: 2026-08-01/ResourceGuardProxyCRUD/GetResourceGuardProxy.json + * x-ms-original-file: 2026-10-01/ResourceGuardProxyCRUD/GetResourceGuardProxy.json */ /** * Sample code: Get ResourceGuardProxy. @@ -2809,7 +2928,7 @@ public final class ResourceGuardProxyOperationGetSamples { */ public final class ResourceGuardProxyOperationListSamples { /* - * x-ms-original-file: 2026-08-01/ResourceGuardProxyCRUD/ListResourceGuardProxy.json + * x-ms-original-file: 2026-10-01/ResourceGuardProxyCRUD/ListResourceGuardProxy.json */ /** * Sample code: Get VaultGuardProxies. @@ -2834,7 +2953,7 @@ import com.azure.resourcemanager.recoveryservicesbackup.models.ResourceGuardProx */ public final class ResourceGuardProxyOperationPutSamples { /* - * x-ms-original-file: 2026-08-01/ResourceGuardProxyCRUD/PutResourceGuardProxy.json + * x-ms-original-file: 2026-10-01/ResourceGuardProxyCRUD/PutResourceGuardProxy.json */ /** * Sample code: Create ResourceGuardProxy. @@ -2864,7 +2983,7 @@ import java.util.Arrays; */ public final class ResourceGuardProxyOperationUnlockDeleteSamples { /* - * x-ms-original-file: 2026-08-01/ResourceGuardProxyCRUD/UnlockDeleteResourceGuardProxy.json + * x-ms-original-file: 2026-10-01/ResourceGuardProxyCRUD/UnlockDeleteResourceGuardProxy.json */ /** * Sample code: UnlockDelete ResourceGuardProxy. @@ -2895,7 +3014,7 @@ import com.azure.resourcemanager.recoveryservicesbackup.models.PrepareDataMoveRe */ public final class ResourceProviderBmsPrepareDataMoveSamples { /* - * x-ms-original-file: 2026-08-01/BackupDataMove/PrepareDataMove_Post.json + * x-ms-original-file: 2026-10-01/BackupDataMove/PrepareDataMove_Post.json */ /** * Sample code: Prepare Data Move. @@ -2924,7 +3043,7 @@ import com.azure.resourcemanager.recoveryservicesbackup.models.TriggerDataMoveRe */ public final class ResourceProviderBmsTriggerDataMoveSamples { /* - * x-ms-original-file: 2026-08-01/BackupDataMove/TriggerDataMove_Post.json + * x-ms-original-file: 2026-10-01/BackupDataMove/TriggerDataMove_Post.json */ /** * Sample code: Trigger Data Move. @@ -2952,7 +3071,7 @@ public final class ResourceProviderBmsTriggerDataMoveSamples { */ public final class ResourceProviderGetOperationStatusSamples { /* - * x-ms-original-file: 2026-08-01/BackupDataMove/BackupDataMoveOperationStatus_Get.json + * x-ms-original-file: 2026-10-01/BackupDataMove/BackupDataMoveOperationStatus_Get.json */ /** * Sample code: Get OperationStatus. @@ -2979,7 +3098,7 @@ import com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryPointTier */ public final class ResourceProviderMoveRecoveryPointSamples { /* - * x-ms-original-file: 2026-08-01/TriggerRecoveryPointMove_Post.json + * x-ms-original-file: 2026-10-01/TriggerRecoveryPointMove_Post.json */ /** * Sample code: Trigger RP Move Operation. @@ -3027,7 +3146,7 @@ import java.util.Arrays; */ public final class RestoresTriggerSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreRequest_DataDiskEncryption.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreRequest_DataDiskEncryption.json */ /** * Sample code: Restore to New Azure IaasVm with IaasVMRestoreRequest with identityBasedRestoreDetails and per disk @@ -3080,7 +3199,7 @@ public final class RestoresTriggerSamples { } /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreWithRehydrationRequest.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreWithRehydrationRequest.json */ /** * Sample code: Restore to New Azure IaasVm with IaasVMRestoreWithRehydrationRequest. @@ -3119,7 +3238,7 @@ public final class RestoresTriggerSamples { } /* - * x-ms-original-file: 2026-08-01/AzureStorage/TriggerRestore_AzureFileShare_WithUAMI.json + * x-ms-original-file: 2026-10-01/AzureStorage/TriggerRestore_AzureFileShare_WithUAMI.json */ /** * Sample code: Restore Azure File Share to Original Location with User Assigned Managed Identity. @@ -3145,7 +3264,7 @@ public final class RestoresTriggerSamples { } /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreRequest.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreRequest.json */ /** * Sample code: Restore to New Azure IaasVm with IaasVMRestoreRequest. @@ -3183,7 +3302,7 @@ public final class RestoresTriggerSamples { /* * x-ms-original-file: - * 2026-08-01/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreRequest_DataDiskEncryption_SingleEntry.json + * 2026-10-01/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreRequest_DataDiskEncryption_SingleEntry.json */ /** * Sample code: Restore to New Azure IaasVm with IaasVMRestoreRequest with identityBasedRestoreDetails and Data Disk @@ -3228,7 +3347,7 @@ public final class RestoresTriggerSamples { } /* - * x-ms-original-file: 2026-08-01/AzureStorage/TriggerRestore_AzureFileShare_WithSAMI.json + * x-ms-original-file: 2026-10-01/AzureStorage/TriggerRestore_AzureFileShare_WithSAMI.json */ /** * Sample code: Restore Azure File Share to Original Location with Managed Identity. @@ -3252,7 +3371,7 @@ public final class RestoresTriggerSamples { } /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreWithRehydrationRequest.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreWithRehydrationRequest.json */ /** * Sample code: Restore Disks with IaasVMRestoreWithRehydrationRequest. @@ -3284,7 +3403,7 @@ public final class RestoresTriggerSamples { /* * x-ms-original-file: - * 2026-08-01/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreRequest_IdentityBasedRestoreDetails.json + * 2026-10-01/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreRequest_IdentityBasedRestoreDetails.json */ /** * Sample code: Restore to New Azure IaasVm with IaasVMRestoreRequest with identityBasedRestoreDetails. @@ -3321,7 +3440,7 @@ public final class RestoresTriggerSamples { } /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreRequest.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreRequest.json */ /** * Sample code: Restore Disks with IaasVMRestoreRequest. @@ -3358,7 +3477,7 @@ public final class RestoresTriggerSamples { /* * x-ms-original-file: - * 2026-08-01/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreRequest_IdentityBasedRestoreDetails.json + * 2026-10-01/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreRequest_IdentityBasedRestoreDetails.json */ /** * Sample code: Restore Disks with IaasVMRestoreRequest with IdentityBasedRestoreDetails. @@ -3389,7 +3508,7 @@ public final class RestoresTriggerSamples { } /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/TriggerRestore_ResourceGuardEnabled.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/TriggerRestore_ResourceGuardEnabled.json */ /** * Sample code: Restore with Resource Guard Enabled. @@ -3432,7 +3551,7 @@ public final class RestoresTriggerSamples { */ public final class SecurityPINsGetSamples { /* - * x-ms-original-file: 2026-08-01/Common/BackupSecurityPin_Get.json + * x-ms-original-file: 2026-10-01/Common/BackupSecurityPin_Get.json */ /** * Sample code: Get Vault Security Pin. @@ -3454,7 +3573,7 @@ public final class SecurityPINsGetSamples { */ public final class TieringCostOperationStatusGetSamples { /* - * x-ms-original-file: 2026-08-01/TieringCost/GetTieringCostOperationStatus.json + * x-ms-original-file: 2026-10-01/TieringCost/GetTieringCostOperationStatus.json */ /** * Sample code: Fetch Tiering Cost Operation Status. @@ -3473,19 +3592,24 @@ public final class TieringCostOperationStatusGetSamples { ### ValidateOperation_Trigger ```java +import com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSqlRestoreRequest; import com.azure.resourcemanager.recoveryservicesbackup.models.EncryptionDetails; import com.azure.resourcemanager.recoveryservicesbackup.models.IaasVMRestoreRequest; import com.azure.resourcemanager.recoveryservicesbackup.models.IdentityInfo; +import com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryMode; import com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryType; +import com.azure.resourcemanager.recoveryservicesbackup.models.SnapshotRestoreParameters; +import com.azure.resourcemanager.recoveryservicesbackup.models.ValidateAzureWorkloadRestoreOperationRequest; import com.azure.resourcemanager.recoveryservicesbackup.models.ValidateIaasVMRestoreOperationRequest; import com.azure.resourcemanager.recoveryservicesbackup.models.ValidateOperationRequestResource; +import java.util.Arrays; /** * Samples for ValidateOperation Trigger. */ public final class ValidateOperationTriggerSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/TriggerValidateOperation_RestoreDisk.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/TriggerValidateOperation_RestoreDisk.json */ /** * Sample code: Trigger Validate Operation. @@ -3513,6 +3637,35 @@ public final class ValidateOperationTriggerSamples { "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asmaskarRG1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/asmaskartestmsi")))), com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2026-10-01/AzureWorkload/TriggerValidateOperation_SnapshotFilesystemClash.json + */ + /** + * Sample code: Validate SQL snapshot restore after resolving filesystem clashes. + * + * @param manager Entry point to RecoveryServicesBackupManager. + */ + public static void validateSQLSnapshotRestoreAfterResolvingFilesystemClashes( + com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager manager) { + manager.validateOperations() + .trigger("testVault", "testRG", new ValidateOperationRequestResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.RecoveryServices/vaults/testVault/backupFabrics/Azure/protectionContainers/VMAppContainer;Compute;testRG;sqlVm/protectedItems/SQLDataBase;mssqlserver;inventory/recoveryPoints/1700000000000") + .withProperties(new ValidateAzureWorkloadRestoreOperationRequest().withRestoreRequest( + new AzureWorkloadSqlRestoreRequest().withRecoveryType(RecoveryType.ALTERNATE_LOCATION) + .withSourceResourceId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Compute/virtualMachines/sqlVm") + .withRecoveryMode(RecoveryMode.fromString("Snapshot")) + .withTargetResourceGroupName("targetRG") + .withSnapshotRestoreParameters(new SnapshotRestoreParameters().withSkipAttachAndMount(false) + .withDisksToDetachOnClash(Arrays.asList( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/targetRG/providers/Microsoft.Compute/disks/sqlDataDisk01", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/targetRG/providers/Microsoft.Compute/disks/sqlLogDisk01"))) + .withTargetVirtualMachineId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/targetRG/providers/Microsoft.Compute/virtualMachines/sqlRestoreVm") + .withShouldUseAlternateTargetLocation(true))), + com.azure.core.util.Context.NONE); + } } ``` @@ -3524,7 +3677,7 @@ public final class ValidateOperationTriggerSamples { */ public final class ValidateOperationResultsGetSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/ValidateOperationResults.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/ValidateOperationResults.json */ /** * Sample code: Get Operation Results of Validate Operation. @@ -3548,7 +3701,7 @@ public final class ValidateOperationResultsGetSamples { */ public final class ValidateOperationStatusesGetSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/ValidateOperationStatus.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/ValidateOperationStatus.json */ /** * Sample code: Get Operation Status of Validate Operation. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/pom.xml b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/pom.xml index b58e6f095e449..139b090f0d90a 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/pom.xml +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/pom.xml @@ -14,11 +14,11 @@ com.azure.resourcemanager azure-resourcemanager-recoveryservicesbackup - 1.9.0-beta.1 + 1.9.0 jar Microsoft Azure SDK for Recovery Services Backup Management - This package contains Microsoft Azure SDK for Recovery Services Backup Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Open API 2.0 Specs for Azure RecoveryServices Backup service. Package api-version 2026-08-01. + This package contains Microsoft Azure SDK for Recovery Services Backup Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Open API 2.0 Specs for Azure RecoveryServices Backup service. Package api-version 2026-10-01. https://github.com/Azure/azure-sdk-for-java @@ -45,6 +45,7 @@ UTF-8 0 0 + true diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/RecoveryServicesBackupManager.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/RecoveryServicesBackupManager.java index df32671715c92..2ce55c91f877e 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/RecoveryServicesBackupManager.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/RecoveryServicesBackupManager.java @@ -63,6 +63,7 @@ import com.azure.resourcemanager.recoveryservicesbackup.implementation.ProtectedItemsImpl; import com.azure.resourcemanager.recoveryservicesbackup.implementation.ProtectionContainerOperationResultsImpl; import com.azure.resourcemanager.recoveryservicesbackup.implementation.ProtectionContainerRefreshOperationResultsImpl; +import com.azure.resourcemanager.recoveryservicesbackup.implementation.ProtectionContainerRefreshOperationStatusesImpl; import com.azure.resourcemanager.recoveryservicesbackup.implementation.ProtectionContainersImpl; import com.azure.resourcemanager.recoveryservicesbackup.implementation.ProtectionIntentsImpl; import com.azure.resourcemanager.recoveryservicesbackup.implementation.ProtectionPoliciesImpl; @@ -117,6 +118,7 @@ import com.azure.resourcemanager.recoveryservicesbackup.models.ProtectedItems; import com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionContainerOperationResults; import com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionContainerRefreshOperationResults; +import com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionContainerRefreshOperationStatuses; import com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionContainers; import com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionIntents; import com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionPolicies; @@ -241,6 +243,8 @@ public final class RecoveryServicesBackupManager { private TieringCostOperationStatus tieringCostOperationStatus; + private ProtectionContainerRefreshOperationStatuses protectionContainerRefreshOperationStatuses; + private ProtectionIntents protectionIntents; private PrivateEndpointConnections privateEndpointConnections; @@ -1067,6 +1071,19 @@ public TieringCostOperationStatus tieringCostOperationStatus() { return tieringCostOperationStatus; } + /** + * Gets the resource collection API of ProtectionContainerRefreshOperationStatuses. + * + * @return Resource collection API of ProtectionContainerRefreshOperationStatuses. + */ + public ProtectionContainerRefreshOperationStatuses protectionContainerRefreshOperationStatuses() { + if (this.protectionContainerRefreshOperationStatuses == null) { + this.protectionContainerRefreshOperationStatuses = new ProtectionContainerRefreshOperationStatusesImpl( + clientObject.getProtectionContainerRefreshOperationStatuses(), this); + } + return protectionContainerRefreshOperationStatuses; + } + /** * Gets the resource collection API of ProtectionIntents. It manages ProtectionIntentResource. * diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ProtectionContainerRefreshOperationStatusesClient.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ProtectionContainerRefreshOperationStatusesClient.java new file mode 100644 index 0000000000000..94ab33ef710fc --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ProtectionContainerRefreshOperationStatusesClient.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.fluent; + +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; +import com.azure.resourcemanager.recoveryservicesbackup.fluent.models.OperationStatusInner; + +/** + * An instance of this class provides access to all the operations defined in + * ProtectionContainerRefreshOperationStatusesClient. + */ +public interface ProtectionContainerRefreshOperationStatusesClient { + /** + * Fetches the status of the fabric level asynchronous operation identified by the given operation id. The status + * can be in progress, completed or failed. You can refer to the OperationStatus enum for all the possible states of + * an operation. This is the endpoint reported in the Azure-AsyncOperation header of the fabric level operations + * that start one, such as RefreshContainers and GetRPExtendedInfo. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the recovery services vault. + * @param fabricName Fabric name associated with the operation. + * @param operationId OperationID which represents the operation whose status needs to be fetched. + * @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 operation status along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + Response getWithResponse(String resourceGroupName, String vaultName, String fabricName, + String operationId, Context context); + + /** + * Fetches the status of the fabric level asynchronous operation identified by the given operation id. The status + * can be in progress, completed or failed. You can refer to the OperationStatus enum for all the possible states of + * an operation. This is the endpoint reported in the Azure-AsyncOperation header of the fabric level operations + * that start one, such as RefreshContainers and GetRPExtendedInfo. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the recovery services vault. + * @param fabricName Fabric name associated with the operation. + * @param operationId OperationID which represents the operation whose status needs to be fetched. + * @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 operation status. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + OperationStatusInner get(String resourceGroupName, String vaultName, String fabricName, String operationId); +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/RecoveryPointsClient.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/RecoveryPointsClient.java index b2f581d0cd8ce..23f638f22166d 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/RecoveryPointsClient.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/RecoveryPointsClient.java @@ -8,8 +8,13 @@ import com.azure.core.annotation.ServiceMethod; import com.azure.core.http.rest.PagedIterable; import com.azure.core.http.rest.Response; +import com.azure.core.management.polling.PollResult; import com.azure.core.util.Context; +import com.azure.core.util.polling.SyncPoller; +import com.azure.resourcemanager.recoveryservicesbackup.fluent.models.RPExtendedInfoResourceListInner; import com.azure.resourcemanager.recoveryservicesbackup.fluent.models.RecoveryPointResourceInner; +import com.azure.resourcemanager.recoveryservicesbackup.models.GetRPExtendedInfoRequestResource; +import com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryPointsGetRPExtendedInfoOperationResultResponse; /** * An instance of this class provides access to all the operations defined in RecoveryPointsClient. @@ -91,4 +96,120 @@ PagedIterable list(String vaultName, String resource @ServiceMethod(returns = ReturnType.COLLECTION) PagedIterable list(String vaultName, String resourceGroupName, String fabricName, String containerName, String protectedItemName, String filter, Context context); + + /** + * Triggers fetching the additional details of a recovery point, which are not returned by the recovery point GET + * API. This is an asynchronous operation. Returns tracking headers which can be tracked using the + * GetRPExtendedInfoOperationResult API. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the recovery services vault. + * @param fabricName Fabric name associated with the backed up items. + * @param parameters Request payload containing the ARM id of the recovery point whose additional details are to be + * fetched. + * @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 list of the additional details of recovery points. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, RPExtendedInfoResourceListInner> beginGetRPExtendedInfo( + String resourceGroupName, String vaultName, String fabricName, GetRPExtendedInfoRequestResource parameters); + + /** + * Triggers fetching the additional details of a recovery point, which are not returned by the recovery point GET + * API. This is an asynchronous operation. Returns tracking headers which can be tracked using the + * GetRPExtendedInfoOperationResult API. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the recovery services vault. + * @param fabricName Fabric name associated with the backed up items. + * @param parameters Request payload containing the ARM id of the recovery point whose additional details are to be + * fetched. + * @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 list of the additional details of recovery points. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + SyncPoller, RPExtendedInfoResourceListInner> beginGetRPExtendedInfo( + String resourceGroupName, String vaultName, String fabricName, GetRPExtendedInfoRequestResource parameters, + Context context); + + /** + * Triggers fetching the additional details of a recovery point, which are not returned by the recovery point GET + * API. This is an asynchronous operation. Returns tracking headers which can be tracked using the + * GetRPExtendedInfoOperationResult API. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the recovery services vault. + * @param fabricName Fabric name associated with the backed up items. + * @param parameters Request payload containing the ARM id of the recovery point whose additional details are to be + * fetched. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of the additional details of recovery points. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + RPExtendedInfoResourceListInner getRPExtendedInfo(String resourceGroupName, String vaultName, String fabricName, + GetRPExtendedInfoRequestResource parameters); + + /** + * Triggers fetching the additional details of a recovery point, which are not returned by the recovery point GET + * API. This is an asynchronous operation. Returns tracking headers which can be tracked using the + * GetRPExtendedInfoOperationResult API. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the recovery services vault. + * @param fabricName Fabric name associated with the backed up items. + * @param parameters Request payload containing the ARM id of the recovery point whose additional details are to be + * fetched. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of the additional details of recovery points. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + RPExtendedInfoResourceListInner getRPExtendedInfo(String resourceGroupName, String vaultName, String fabricName, + GetRPExtendedInfoRequestResource parameters, Context context); + + /** + * Returns the additional details of the recovery points fetched by a prior getRPExtendedInfo operation. Returns + * 202 Accepted while the operation is still running. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the recovery services vault. + * @param fabricName Fabric name associated with the backed up items. + * @param operationId OperationID which represents the prior getRPExtendedInfo operation whose result needs to be + * fetched. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of the additional details of recovery points. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + RecoveryPointsGetRPExtendedInfoOperationResultResponse getRPExtendedInfoOperationResultWithResponse( + String resourceGroupName, String vaultName, String fabricName, String operationId, Context context); + + /** + * Returns the additional details of the recovery points fetched by a prior getRPExtendedInfo operation. Returns + * 202 Accepted while the operation is still running. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the recovery services vault. + * @param fabricName Fabric name associated with the backed up items. + * @param operationId OperationID which represents the prior getRPExtendedInfo operation whose result needs to be + * fetched. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of the additional details of recovery points. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + RPExtendedInfoResourceListInner getRPExtendedInfoOperationResult(String resourceGroupName, String vaultName, + String fabricName, String operationId); } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/RecoveryServicesBackupManagementClient.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/RecoveryServicesBackupManagementClient.java index d3f2a8f803b73..75ab1568a7f71 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/RecoveryServicesBackupManagementClient.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/RecoveryServicesBackupManagementClient.java @@ -382,6 +382,13 @@ public interface RecoveryServicesBackupManagementClient { */ TieringCostOperationStatusClient getTieringCostOperationStatus(); + /** + * Gets the ProtectionContainerRefreshOperationStatusesClient object to access its operations. + * + * @return the ProtectionContainerRefreshOperationStatusesClient object. + */ + ProtectionContainerRefreshOperationStatusesClient getProtectionContainerRefreshOperationStatuses(); + /** * Gets the ProtectionIntentsClient object to access its operations. * diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/RPExtendedInfoResourceListInner.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/RPExtendedInfoResourceListInner.java new file mode 100644 index 0000000000000..be09e7109313b --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/RPExtendedInfoResourceListInner.java @@ -0,0 +1,99 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.fluent.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import com.azure.resourcemanager.recoveryservicesbackup.models.RPExtendedInfoResource; +import com.azure.resourcemanager.recoveryservicesbackup.models.ResourceList; +import java.io.IOException; +import java.util.List; + +/** + * List of the additional details of recovery points. + */ +@Immutable +public final class RPExtendedInfoResourceListInner extends ResourceList { + /* + * List of resources. + */ + private List value; + + /* + * The URI to fetch the next page of resources, with each API call returning up to 200 resources per page. Use + * ListNext() to fetch the next page if the total number of resources exceeds 200. + */ + private String nextLink; + + /** + * Creates an instance of RPExtendedInfoResourceListInner class. + */ + private RPExtendedInfoResourceListInner() { + } + + /** + * Get the value property: List of resources. + * + * @return the value value. + */ + public List value() { + return this.value; + } + + /** + * Get the nextLink property: The URI to fetch the next page of resources, with each API call returning up to 200 + * resources per page. Use ListNext() to fetch the next page if the total number of resources exceeds 200. + * + * @return the nextLink value. + */ + @Override + public String nextLink() { + return this.nextLink; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("nextLink", nextLink()); + jsonWriter.writeArrayField("value", this.value, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RPExtendedInfoResourceListInner from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RPExtendedInfoResourceListInner 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 RPExtendedInfoResourceListInner. + */ + public static RPExtendedInfoResourceListInner fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RPExtendedInfoResourceListInner deserializedRPExtendedInfoResourceListInner + = new RPExtendedInfoResourceListInner(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("nextLink".equals(fieldName)) { + deserializedRPExtendedInfoResourceListInner.nextLink = reader.getString(); + } else if ("value".equals(fieldName)) { + List value + = reader.readArray(reader1 -> RPExtendedInfoResource.fromJson(reader1)); + deserializedRPExtendedInfoResourceListInner.value = value; + } else { + reader.skipChildren(); + } + } + + return deserializedRPExtendedInfoResourceListInner; + }); + } +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionContainerRefreshOperationStatusesClientImpl.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionContainerRefreshOperationStatusesClientImpl.java new file mode 100644 index 0000000000000..5ea083f5e4358 --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionContainerRefreshOperationStatusesClientImpl.java @@ -0,0 +1,173 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.implementation; + +import com.azure.core.annotation.ExpectedResponses; +import com.azure.core.annotation.Get; +import com.azure.core.annotation.HeaderParam; +import com.azure.core.annotation.Headers; +import com.azure.core.annotation.Host; +import com.azure.core.annotation.HostParam; +import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.QueryParam; +import com.azure.core.annotation.ReturnType; +import com.azure.core.annotation.ServiceInterface; +import com.azure.core.annotation.ServiceMethod; +import com.azure.core.annotation.UnexpectedResponseExceptionType; +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.RestProxy; +import com.azure.core.management.exception.ManagementException; +import com.azure.core.util.Context; +import com.azure.core.util.FluxUtil; +import com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainerRefreshOperationStatusesClient; +import com.azure.resourcemanager.recoveryservicesbackup.fluent.models.OperationStatusInner; +import reactor.core.publisher.Mono; + +/** + * An instance of this class provides access to all the operations defined in + * ProtectionContainerRefreshOperationStatusesClient. + */ +public final class ProtectionContainerRefreshOperationStatusesClientImpl + implements ProtectionContainerRefreshOperationStatusesClient { + /** + * The proxy service used to perform REST calls. + */ + private final ProtectionContainerRefreshOperationStatusesService service; + + /** + * The service client containing this operation class. + */ + private final RecoveryServicesBackupManagementClientImpl client; + + /** + * Initializes an instance of ProtectionContainerRefreshOperationStatusesClientImpl. + * + * @param client the instance of the service client containing this operation class. + */ + ProtectionContainerRefreshOperationStatusesClientImpl(RecoveryServicesBackupManagementClientImpl client) { + this.service = RestProxy.create(ProtectionContainerRefreshOperationStatusesService.class, + client.getHttpPipeline(), client.getSerializerAdapter()); + this.client = client; + } + + /** + * The interface defining all the services for + * RecoveryServicesBackupManagementClientProtectionContainerRefreshOperationStatuses to be used by the proxy service + * to perform REST calls. + */ + @Host("{endpoint}") + @ServiceInterface(name = "RecoveryServicesBackupManagementClientProtectionContainerRefreshOperationStatuses") + public interface ProtectionContainerRefreshOperationStatusesService { + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/operationsStatus/{operationId}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono> get(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, + @PathParam("fabricName") String fabricName, @PathParam("operationId") String operationId, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/operationsStatus/{operationId}") + @ExpectedResponses({ 200 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, + @PathParam("fabricName") String fabricName, @PathParam("operationId") String operationId, + @HeaderParam("Accept") String accept, Context context); + } + + /** + * Fetches the status of the fabric level asynchronous operation identified by the given operation id. The status + * can be in progress, completed or failed. You can refer to the OperationStatus enum for all the possible states of + * an operation. This is the endpoint reported in the Azure-AsyncOperation header of the fabric level operations + * that start one, such as RefreshContainers and GetRPExtendedInfo. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the recovery services vault. + * @param fabricName Fabric name associated with the operation. + * @param operationId OperationID which represents the operation whose status needs to be fetched. + * @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 operation status along with {@link Response} on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono> getWithResponseAsync(String resourceGroupName, String vaultName, + String fabricName, String operationId) { + final String accept = "application/json"; + return FluxUtil.withContext(context -> service.get(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, vaultName, fabricName, operationId, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Fetches the status of the fabric level asynchronous operation identified by the given operation id. The status + * can be in progress, completed or failed. You can refer to the OperationStatus enum for all the possible states of + * an operation. This is the endpoint reported in the Azure-AsyncOperation header of the fabric level operations + * that start one, such as RefreshContainers and GetRPExtendedInfo. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the recovery services vault. + * @param fabricName Fabric name associated with the operation. + * @param operationId OperationID which represents the operation whose status needs to be fetched. + * @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 operation status on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getAsync(String resourceGroupName, String vaultName, String fabricName, + String operationId) { + return getWithResponseAsync(resourceGroupName, vaultName, fabricName, operationId) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Fetches the status of the fabric level asynchronous operation identified by the given operation id. The status + * can be in progress, completed or failed. You can refer to the OperationStatus enum for all the possible states of + * an operation. This is the endpoint reported in the Azure-AsyncOperation header of the fabric level operations + * that start one, such as RefreshContainers and GetRPExtendedInfo. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the recovery services vault. + * @param fabricName Fabric name associated with the operation. + * @param operationId OperationID which represents the operation whose status needs to be fetched. + * @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 operation status along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public Response getWithResponse(String resourceGroupName, String vaultName, String fabricName, + String operationId, Context context) { + final String accept = "application/json"; + return service.getSync(this.client.getEndpoint(), this.client.getApiVersion(), this.client.getSubscriptionId(), + resourceGroupName, vaultName, fabricName, operationId, accept, context); + } + + /** + * Fetches the status of the fabric level asynchronous operation identified by the given operation id. The status + * can be in progress, completed or failed. You can refer to the OperationStatus enum for all the possible states of + * an operation. This is the endpoint reported in the Azure-AsyncOperation header of the fabric level operations + * that start one, such as RefreshContainers and GetRPExtendedInfo. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the recovery services vault. + * @param fabricName Fabric name associated with the operation. + * @param operationId OperationID which represents the operation whose status needs to be fetched. + * @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 operation status. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public OperationStatusInner get(String resourceGroupName, String vaultName, String fabricName, String operationId) { + return getWithResponse(resourceGroupName, vaultName, fabricName, operationId, Context.NONE).getValue(); + } +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionContainerRefreshOperationStatusesImpl.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionContainerRefreshOperationStatusesImpl.java new file mode 100644 index 0000000000000..4811d43c968a8 --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionContainerRefreshOperationStatusesImpl.java @@ -0,0 +1,55 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.implementation; + +import com.azure.core.http.rest.Response; +import com.azure.core.http.rest.SimpleResponse; +import com.azure.core.util.Context; +import com.azure.core.util.logging.ClientLogger; +import com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainerRefreshOperationStatusesClient; +import com.azure.resourcemanager.recoveryservicesbackup.fluent.models.OperationStatusInner; +import com.azure.resourcemanager.recoveryservicesbackup.models.OperationStatus; +import com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionContainerRefreshOperationStatuses; + +public final class ProtectionContainerRefreshOperationStatusesImpl + implements ProtectionContainerRefreshOperationStatuses { + private static final ClientLogger LOGGER = new ClientLogger(ProtectionContainerRefreshOperationStatusesImpl.class); + + private final ProtectionContainerRefreshOperationStatusesClient innerClient; + + private final com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager serviceManager; + + public ProtectionContainerRefreshOperationStatusesImpl( + ProtectionContainerRefreshOperationStatusesClient innerClient, + com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager serviceManager) { + this.innerClient = innerClient; + this.serviceManager = serviceManager; + } + + public Response getWithResponse(String resourceGroupName, String vaultName, String fabricName, + String operationId, Context context) { + Response inner + = this.serviceClient().getWithResponse(resourceGroupName, vaultName, fabricName, operationId, context); + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new OperationStatusImpl(inner.getValue(), this.manager())); + } + + public OperationStatus get(String resourceGroupName, String vaultName, String fabricName, String operationId) { + OperationStatusInner inner = this.serviceClient().get(resourceGroupName, vaultName, fabricName, operationId); + if (inner != null) { + return new OperationStatusImpl(inner, this.manager()); + } else { + return null; + } + } + + private ProtectionContainerRefreshOperationStatusesClient serviceClient() { + return this.innerClient; + } + + private com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/RPExtendedInfoResourceListImpl.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/RPExtendedInfoResourceListImpl.java new file mode 100644 index 0000000000000..57b5b78bbf7b5 --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/RPExtendedInfoResourceListImpl.java @@ -0,0 +1,44 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.implementation; + +import com.azure.resourcemanager.recoveryservicesbackup.fluent.models.RPExtendedInfoResourceListInner; +import com.azure.resourcemanager.recoveryservicesbackup.models.RPExtendedInfoResource; +import com.azure.resourcemanager.recoveryservicesbackup.models.RPExtendedInfoResourceList; +import java.util.Collections; +import java.util.List; + +public final class RPExtendedInfoResourceListImpl implements RPExtendedInfoResourceList { + private RPExtendedInfoResourceListInner innerObject; + + private final com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager serviceManager; + + RPExtendedInfoResourceListImpl(RPExtendedInfoResourceListInner innerObject, + com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager serviceManager) { + this.innerObject = innerObject; + this.serviceManager = serviceManager; + } + + public String nextLink() { + return this.innerModel().nextLink(); + } + + public List value() { + List inner = this.innerModel().value(); + if (inner != null) { + return Collections.unmodifiableList(inner); + } else { + return Collections.emptyList(); + } + } + + public RPExtendedInfoResourceListInner innerModel() { + return this.innerObject; + } + + private com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager manager() { + return this.serviceManager; + } +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/RecoveryPointsClientImpl.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/RecoveryPointsClientImpl.java index 32f755725e3f6..17fc68e561ea9 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/RecoveryPointsClientImpl.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/RecoveryPointsClientImpl.java @@ -4,6 +4,7 @@ package com.azure.resourcemanager.recoveryservicesbackup.implementation; +import com.azure.core.annotation.BodyParam; import com.azure.core.annotation.ExpectedResponses; import com.azure.core.annotation.Get; import com.azure.core.annotation.HeaderParam; @@ -11,6 +12,7 @@ import com.azure.core.annotation.Host; import com.azure.core.annotation.HostParam; import com.azure.core.annotation.PathParam; +import com.azure.core.annotation.Post; import com.azure.core.annotation.QueryParam; import com.azure.core.annotation.ReturnType; import com.azure.core.annotation.ServiceInterface; @@ -23,11 +25,20 @@ import com.azure.core.http.rest.Response; import com.azure.core.http.rest.RestProxy; import com.azure.core.management.exception.ManagementException; +import com.azure.core.management.polling.PollResult; +import com.azure.core.util.BinaryData; import com.azure.core.util.Context; import com.azure.core.util.FluxUtil; +import com.azure.core.util.polling.PollerFlux; +import com.azure.core.util.polling.SyncPoller; import com.azure.resourcemanager.recoveryservicesbackup.fluent.RecoveryPointsClient; +import com.azure.resourcemanager.recoveryservicesbackup.fluent.models.RPExtendedInfoResourceListInner; import com.azure.resourcemanager.recoveryservicesbackup.fluent.models.RecoveryPointResourceInner; import com.azure.resourcemanager.recoveryservicesbackup.implementation.models.RecoveryPointResourceList; +import com.azure.resourcemanager.recoveryservicesbackup.models.GetRPExtendedInfoRequestResource; +import com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryPointsGetRPExtendedInfoOperationResultResponse; +import java.nio.ByteBuffer; +import reactor.core.publisher.Flux; import reactor.core.publisher.Mono; /** @@ -108,6 +119,48 @@ Response listSync(@HostParam("endpoint") String endpo @PathParam("protectedItemName") String protectedItemName, @QueryParam("$filter") String filter, @HeaderParam("Accept") String accept, Context context); + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/getRPExtendedInfo") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono>> getRPExtendedInfo(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, + @PathParam("fabricName") String fabricName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") GetRPExtendedInfoRequestResource parameters, Context context); + + @Post("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/getRPExtendedInfo") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Response getRPExtendedInfoSync(@HostParam("endpoint") String endpoint, + @QueryParam("api-version") String apiVersion, @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, + @PathParam("fabricName") String fabricName, @HeaderParam("Content-Type") String contentType, + @HeaderParam("Accept") String accept, + @BodyParam("application/json") GetRPExtendedInfoRequestResource parameters, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/getRPExtendedInfoOperationResult/{operationId}") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + Mono getRPExtendedInfoOperationResult( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, + @PathParam("fabricName") String fabricName, @PathParam("operationId") String operationId, + @HeaderParam("Accept") String accept, Context context); + + @Headers({ "Content-Type: application/json" }) + @Get("/subscriptions/{subscriptionId}/resourceGroups/{resourceGroupName}/providers/Microsoft.RecoveryServices/vaults/{vaultName}/backupFabrics/{fabricName}/getRPExtendedInfoOperationResult/{operationId}") + @ExpectedResponses({ 200, 202 }) + @UnexpectedResponseExceptionType(ManagementException.class) + RecoveryPointsGetRPExtendedInfoOperationResultResponse getRPExtendedInfoOperationResultSync( + @HostParam("endpoint") String endpoint, @QueryParam("api-version") String apiVersion, + @PathParam("subscriptionId") String subscriptionId, + @PathParam("resourceGroupName") String resourceGroupName, @PathParam("vaultName") String vaultName, + @PathParam("fabricName") String fabricName, @PathParam("operationId") String operationId, + @HeaderParam("Accept") String accept, Context context); + @Headers({ "Content-Type: application/json" }) @Get("{nextLink}") @ExpectedResponses({ 200 }) @@ -388,6 +441,318 @@ public PagedIterable list(String vaultName, String r protectedItemName, filter, context), nextLink -> listNextSinglePage(nextLink, context)); } + /** + * Triggers fetching the additional details of a recovery point, which are not returned by the recovery point GET + * API. This is an asynchronous operation. Returns tracking headers which can be tracked using the + * GetRPExtendedInfoOperationResult API. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the recovery services vault. + * @param fabricName Fabric name associated with the backed up items. + * @param parameters Request payload containing the ARM id of the recovery point whose additional details are to be + * fetched. + * @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 list of the additional details of recovery points along with {@link Response} on successful completion of + * {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono>> getRPExtendedInfoWithResponseAsync(String resourceGroupName, + String vaultName, String fabricName, GetRPExtendedInfoRequestResource parameters) { + final String contentType = "application/json"; + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.getRPExtendedInfo(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, vaultName, fabricName, contentType, accept, + parameters, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Triggers fetching the additional details of a recovery point, which are not returned by the recovery point GET + * API. This is an asynchronous operation. Returns tracking headers which can be tracked using the + * GetRPExtendedInfoOperationResult API. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the recovery services vault. + * @param fabricName Fabric name associated with the backed up items. + * @param parameters Request payload containing the ARM id of the recovery point whose additional details are to be + * fetched. + * @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 list of the additional details of recovery points along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response getRPExtendedInfoWithResponse(String resourceGroupName, String vaultName, + String fabricName, GetRPExtendedInfoRequestResource parameters) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.getRPExtendedInfoSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, vaultName, fabricName, contentType, accept, parameters, + Context.NONE); + } + + /** + * Triggers fetching the additional details of a recovery point, which are not returned by the recovery point GET + * API. This is an asynchronous operation. Returns tracking headers which can be tracked using the + * GetRPExtendedInfoOperationResult API. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the recovery services vault. + * @param fabricName Fabric name associated with the backed up items. + * @param parameters Request payload containing the ARM id of the recovery point whose additional details are to be + * fetched. + * @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 list of the additional details of recovery points along with {@link Response}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Response getRPExtendedInfoWithResponse(String resourceGroupName, String vaultName, + String fabricName, GetRPExtendedInfoRequestResource parameters, Context context) { + final String contentType = "application/json"; + final String accept = "application/json"; + return service.getRPExtendedInfoSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, vaultName, fabricName, contentType, accept, parameters, + context); + } + + /** + * Triggers fetching the additional details of a recovery point, which are not returned by the recovery point GET + * API. This is an asynchronous operation. Returns tracking headers which can be tracked using the + * GetRPExtendedInfoOperationResult API. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the recovery services vault. + * @param fabricName Fabric name associated with the backed up items. + * @param parameters Request payload containing the ARM id of the recovery point whose additional details are to be + * fetched. + * @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 list of the additional details of recovery points. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + private PollerFlux, RPExtendedInfoResourceListInner> + beginGetRPExtendedInfoAsync(String resourceGroupName, String vaultName, String fabricName, + GetRPExtendedInfoRequestResource parameters) { + Mono>> mono + = getRPExtendedInfoWithResponseAsync(resourceGroupName, vaultName, fabricName, parameters); + return this.client.getLroResult(mono, + this.client.getHttpPipeline(), RPExtendedInfoResourceListInner.class, RPExtendedInfoResourceListInner.class, + this.client.getContext()); + } + + /** + * Triggers fetching the additional details of a recovery point, which are not returned by the recovery point GET + * API. This is an asynchronous operation. Returns tracking headers which can be tracked using the + * GetRPExtendedInfoOperationResult API. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the recovery services vault. + * @param fabricName Fabric name associated with the backed up items. + * @param parameters Request payload containing the ARM id of the recovery point whose additional details are to be + * fetched. + * @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 list of the additional details of recovery points. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, RPExtendedInfoResourceListInner> + beginGetRPExtendedInfo(String resourceGroupName, String vaultName, String fabricName, + GetRPExtendedInfoRequestResource parameters) { + Response response + = getRPExtendedInfoWithResponse(resourceGroupName, vaultName, fabricName, parameters); + return this.client.getLroResult(response, + RPExtendedInfoResourceListInner.class, RPExtendedInfoResourceListInner.class, Context.NONE); + } + + /** + * Triggers fetching the additional details of a recovery point, which are not returned by the recovery point GET + * API. This is an asynchronous operation. Returns tracking headers which can be tracked using the + * GetRPExtendedInfoOperationResult API. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the recovery services vault. + * @param fabricName Fabric name associated with the backed up items. + * @param parameters Request payload containing the ARM id of the recovery point whose additional details are to be + * fetched. + * @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 list of the additional details of recovery points. + */ + @ServiceMethod(returns = ReturnType.LONG_RUNNING_OPERATION) + public SyncPoller, RPExtendedInfoResourceListInner> + beginGetRPExtendedInfo(String resourceGroupName, String vaultName, String fabricName, + GetRPExtendedInfoRequestResource parameters, Context context) { + Response response + = getRPExtendedInfoWithResponse(resourceGroupName, vaultName, fabricName, parameters, context); + return this.client.getLroResult(response, + RPExtendedInfoResourceListInner.class, RPExtendedInfoResourceListInner.class, context); + } + + /** + * Triggers fetching the additional details of a recovery point, which are not returned by the recovery point GET + * API. This is an asynchronous operation. Returns tracking headers which can be tracked using the + * GetRPExtendedInfoOperationResult API. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the recovery services vault. + * @param fabricName Fabric name associated with the backed up items. + * @param parameters Request payload containing the ARM id of the recovery point whose additional details are to be + * fetched. + * @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 list of the additional details of recovery points on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getRPExtendedInfoAsync(String resourceGroupName, String vaultName, + String fabricName, GetRPExtendedInfoRequestResource parameters) { + return beginGetRPExtendedInfoAsync(resourceGroupName, vaultName, fabricName, parameters).last() + .flatMap(this.client::getLroFinalResultOrError); + } + + /** + * Triggers fetching the additional details of a recovery point, which are not returned by the recovery point GET + * API. This is an asynchronous operation. Returns tracking headers which can be tracked using the + * GetRPExtendedInfoOperationResult API. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the recovery services vault. + * @param fabricName Fabric name associated with the backed up items. + * @param parameters Request payload containing the ARM id of the recovery point whose additional details are to be + * fetched. + * @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 list of the additional details of recovery points. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public RPExtendedInfoResourceListInner getRPExtendedInfo(String resourceGroupName, String vaultName, + String fabricName, GetRPExtendedInfoRequestResource parameters) { + return beginGetRPExtendedInfo(resourceGroupName, vaultName, fabricName, parameters).getFinalResult(); + } + + /** + * Triggers fetching the additional details of a recovery point, which are not returned by the recovery point GET + * API. This is an asynchronous operation. Returns tracking headers which can be tracked using the + * GetRPExtendedInfoOperationResult API. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the recovery services vault. + * @param fabricName Fabric name associated with the backed up items. + * @param parameters Request payload containing the ARM id of the recovery point whose additional details are to be + * fetched. + * @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 list of the additional details of recovery points. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public RPExtendedInfoResourceListInner getRPExtendedInfo(String resourceGroupName, String vaultName, + String fabricName, GetRPExtendedInfoRequestResource parameters, Context context) { + return beginGetRPExtendedInfo(resourceGroupName, vaultName, fabricName, parameters, context).getFinalResult(); + } + + /** + * Returns the additional details of the recovery points fetched by a prior getRPExtendedInfo operation. Returns + * 202 Accepted while the operation is still running. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the recovery services vault. + * @param fabricName Fabric name associated with the backed up items. + * @param operationId OperationID which represents the prior getRPExtendedInfo operation whose result needs to be + * fetched. + * @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 list of the additional details of recovery points on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono + getRPExtendedInfoOperationResultWithResponseAsync(String resourceGroupName, String vaultName, String fabricName, + String operationId) { + final String accept = "application/json"; + return FluxUtil + .withContext(context -> service.getRPExtendedInfoOperationResult(this.client.getEndpoint(), + this.client.getApiVersion(), this.client.getSubscriptionId(), resourceGroupName, vaultName, fabricName, + operationId, accept, context)) + .contextWrite(context -> context.putAll(FluxUtil.toReactorContext(this.client.getContext()).readOnly())); + } + + /** + * Returns the additional details of the recovery points fetched by a prior getRPExtendedInfo operation. Returns + * 202 Accepted while the operation is still running. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the recovery services vault. + * @param fabricName Fabric name associated with the backed up items. + * @param operationId OperationID which represents the prior getRPExtendedInfo operation whose result needs to be + * fetched. + * @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 list of the additional details of recovery points on successful completion of {@link Mono}. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + private Mono getRPExtendedInfoOperationResultAsync(String resourceGroupName, + String vaultName, String fabricName, String operationId) { + return getRPExtendedInfoOperationResultWithResponseAsync(resourceGroupName, vaultName, fabricName, operationId) + .flatMap(res -> Mono.justOrEmpty(res.getValue())); + } + + /** + * Returns the additional details of the recovery points fetched by a prior getRPExtendedInfo operation. Returns + * 202 Accepted while the operation is still running. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the recovery services vault. + * @param fabricName Fabric name associated with the backed up items. + * @param operationId OperationID which represents the prior getRPExtendedInfo operation whose result needs to be + * fetched. + * @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 list of the additional details of recovery points. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public RecoveryPointsGetRPExtendedInfoOperationResultResponse getRPExtendedInfoOperationResultWithResponse( + String resourceGroupName, String vaultName, String fabricName, String operationId, Context context) { + final String accept = "application/json"; + return service.getRPExtendedInfoOperationResultSync(this.client.getEndpoint(), this.client.getApiVersion(), + this.client.getSubscriptionId(), resourceGroupName, vaultName, fabricName, operationId, accept, context); + } + + /** + * Returns the additional details of the recovery points fetched by a prior getRPExtendedInfo operation. Returns + * 202 Accepted while the operation is still running. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the recovery services vault. + * @param fabricName Fabric name associated with the backed up items. + * @param operationId OperationID which represents the prior getRPExtendedInfo operation whose result needs to be + * fetched. + * @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 list of the additional details of recovery points. + */ + @ServiceMethod(returns = ReturnType.SINGLE) + public RPExtendedInfoResourceListInner getRPExtendedInfoOperationResult(String resourceGroupName, String vaultName, + String fabricName, String operationId) { + return getRPExtendedInfoOperationResultWithResponse(resourceGroupName, vaultName, fabricName, operationId, + Context.NONE).getValue(); + } + /** * Get the next page of items. * diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/RecoveryPointsImpl.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/RecoveryPointsImpl.java index 9c7fa664426a9..1aed120aa3755 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/RecoveryPointsImpl.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/RecoveryPointsImpl.java @@ -10,9 +10,13 @@ import com.azure.core.util.Context; import com.azure.core.util.logging.ClientLogger; import com.azure.resourcemanager.recoveryservicesbackup.fluent.RecoveryPointsClient; +import com.azure.resourcemanager.recoveryservicesbackup.fluent.models.RPExtendedInfoResourceListInner; import com.azure.resourcemanager.recoveryservicesbackup.fluent.models.RecoveryPointResourceInner; +import com.azure.resourcemanager.recoveryservicesbackup.models.GetRPExtendedInfoRequestResource; +import com.azure.resourcemanager.recoveryservicesbackup.models.RPExtendedInfoResourceList; import com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryPointResource; import com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryPoints; +import com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryPointsGetRPExtendedInfoOperationResultResponse; public final class RecoveryPointsImpl implements RecoveryPoints { private static final ClientLogger LOGGER = new ClientLogger(RecoveryPointsImpl.class); @@ -61,6 +65,52 @@ public PagedIterable list(String vaultName, String resour return ResourceManagerUtils.mapPage(inner, inner1 -> new RecoveryPointResourceImpl(inner1, this.manager())); } + public RPExtendedInfoResourceList getRPExtendedInfo(String resourceGroupName, String vaultName, String fabricName, + GetRPExtendedInfoRequestResource parameters) { + RPExtendedInfoResourceListInner inner + = this.serviceClient().getRPExtendedInfo(resourceGroupName, vaultName, fabricName, parameters); + if (inner != null) { + return new RPExtendedInfoResourceListImpl(inner, this.manager()); + } else { + return null; + } + } + + public RPExtendedInfoResourceList getRPExtendedInfo(String resourceGroupName, String vaultName, String fabricName, + GetRPExtendedInfoRequestResource parameters, Context context) { + RPExtendedInfoResourceListInner inner + = this.serviceClient().getRPExtendedInfo(resourceGroupName, vaultName, fabricName, parameters, context); + if (inner != null) { + return new RPExtendedInfoResourceListImpl(inner, this.manager()); + } else { + return null; + } + } + + public Response getRPExtendedInfoOperationResultWithResponse(String resourceGroupName, + String vaultName, String fabricName, String operationId, Context context) { + RecoveryPointsGetRPExtendedInfoOperationResultResponse inner = this.serviceClient() + .getRPExtendedInfoOperationResultWithResponse(resourceGroupName, vaultName, fabricName, operationId, + context); + if (inner != null) { + return new SimpleResponse<>(inner.getRequest(), inner.getStatusCode(), inner.getHeaders(), + new RPExtendedInfoResourceListImpl(inner.getValue(), this.manager())); + } else { + return null; + } + } + + public RPExtendedInfoResourceList getRPExtendedInfoOperationResult(String resourceGroupName, String vaultName, + String fabricName, String operationId) { + RPExtendedInfoResourceListInner inner = this.serviceClient() + .getRPExtendedInfoOperationResult(resourceGroupName, vaultName, fabricName, operationId); + if (inner != null) { + return new RPExtendedInfoResourceListImpl(inner, this.manager()); + } else { + return null; + } + } + private RecoveryPointsClient serviceClient() { return this.innerClient; } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/RecoveryServicesBackupManagementClientImpl.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/RecoveryServicesBackupManagementClientImpl.java index 1d987c5f640f6..f324ea7f3fc93 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/RecoveryServicesBackupManagementClientImpl.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/RecoveryServicesBackupManagementClientImpl.java @@ -64,6 +64,7 @@ import com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectedItemsClient; import com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainerOperationResultsClient; import com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainerRefreshOperationResultsClient; +import com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainerRefreshOperationStatusesClient; import com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainersClient; import com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionIntentsClient; import com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionPoliciesClient; @@ -850,6 +851,20 @@ public TieringCostOperationStatusClient getTieringCostOperationStatus() { return this.tieringCostOperationStatus; } + /** + * The ProtectionContainerRefreshOperationStatusesClient object to access its operations. + */ + private final ProtectionContainerRefreshOperationStatusesClient protectionContainerRefreshOperationStatuses; + + /** + * Gets the ProtectionContainerRefreshOperationStatusesClient object to access its operations. + * + * @return the ProtectionContainerRefreshOperationStatusesClient object. + */ + public ProtectionContainerRefreshOperationStatusesClient getProtectionContainerRefreshOperationStatuses() { + return this.protectionContainerRefreshOperationStatuses; + } + /** * The ProtectionIntentsClient object to access its operations. */ @@ -937,7 +952,7 @@ public OperationOperationsClient getOperationOperations() { this.defaultPollInterval = defaultPollInterval; this.endpoint = endpoint; this.subscriptionId = subscriptionId; - this.apiVersion = "2026-08-01"; + this.apiVersion = "2026-10-01"; this.resourceProviders = new ResourceProvidersClientImpl(this); this.operations = new OperationsClientImpl(this); this.backupResourceStorageConfigsNonCrrs = new BackupResourceStorageConfigsNonCrrsClientImpl(this); @@ -987,6 +1002,8 @@ public OperationOperationsClient getOperationOperations() { this.fetchTieringCosts = new FetchTieringCostsClientImpl(this); this.getTieringCostOperationResults = new GetTieringCostOperationResultsClientImpl(this); this.tieringCostOperationStatus = new TieringCostOperationStatusClientImpl(this); + this.protectionContainerRefreshOperationStatuses + = new ProtectionContainerRefreshOperationStatusesClientImpl(this); this.protectionIntents = new ProtectionIntentsClientImpl(this); this.privateEndpointConnections = new PrivateEndpointConnectionsClientImpl(this); this.privateEndpoints = new PrivateEndpointsClientImpl(this); diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSClassicComputeVMProtectedItem.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSClassicComputeVMProtectedItem.java index 8c4433211a1c8..1180440cc4183 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSClassicComputeVMProtectedItem.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSClassicComputeVMProtectedItem.java @@ -104,6 +104,16 @@ public AzureIaaSClassicComputeVMProtectedItem withExtendedProperties(ExtendedPro return this; } + /** + * {@inheritDoc} + */ + @Override + public AzureIaaSClassicComputeVMProtectedItem + withExistingBasicVMProtection(ExistingBasicVMProtection existingBasicVMProtection) { + super.withExistingBasicVMProtection(existingBasicVMProtection); + return this; + } + /** * {@inheritDoc} */ @@ -286,6 +296,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("lastBackupStatus", lastBackupStatus()); jsonWriter.writeJsonField("extendedInfo", extendedInfo()); jsonWriter.writeJsonField("extendedProperties", extendedProperties()); + jsonWriter.writeStringField("existingBasicVMProtection", + existingBasicVMProtection() == null ? null : existingBasicVMProtection().toString()); jsonWriter.writeStringField("protectedItemType", this.protectedItemType); return jsonWriter.writeEndObject(); } @@ -393,6 +405,9 @@ public static AzureIaaSClassicComputeVMProtectedItem fromJson(JsonReader jsonRea } else if ("extendedProperties".equals(fieldName)) { deserializedAzureIaaSClassicComputeVMProtectedItem .withExtendedProperties(ExtendedProperties.fromJson(reader)); + } else if ("existingBasicVMProtection".equals(fieldName)) { + deserializedAzureIaaSClassicComputeVMProtectedItem + .withExistingBasicVMProtection(ExistingBasicVMProtection.fromString(reader.getString())); } else if ("policyType".equals(fieldName)) { deserializedAzureIaaSClassicComputeVMProtectedItem.withPolicyType(reader.getString()); } else if ("protectedItemType".equals(fieldName)) { diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSComputeVMProtectedItem.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSComputeVMProtectedItem.java index be4aae841ce57..02d9a70e8ca4e 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSComputeVMProtectedItem.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSComputeVMProtectedItem.java @@ -104,6 +104,16 @@ public AzureIaaSComputeVMProtectedItem withExtendedProperties(ExtendedProperties return this; } + /** + * {@inheritDoc} + */ + @Override + public AzureIaaSComputeVMProtectedItem + withExistingBasicVMProtection(ExistingBasicVMProtection existingBasicVMProtection) { + super.withExistingBasicVMProtection(existingBasicVMProtection); + return this; + } + /** * {@inheritDoc} */ @@ -285,6 +295,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("lastBackupStatus", lastBackupStatus()); jsonWriter.writeJsonField("extendedInfo", extendedInfo()); jsonWriter.writeJsonField("extendedProperties", extendedProperties()); + jsonWriter.writeStringField("existingBasicVMProtection", + existingBasicVMProtection() == null ? null : existingBasicVMProtection().toString()); jsonWriter.writeStringField("protectedItemType", this.protectedItemType); return jsonWriter.writeEndObject(); } @@ -391,6 +403,9 @@ public static AzureIaaSComputeVMProtectedItem fromJson(JsonReader jsonReader) th } else if ("extendedProperties".equals(fieldName)) { deserializedAzureIaaSComputeVMProtectedItem .withExtendedProperties(ExtendedProperties.fromJson(reader)); + } else if ("existingBasicVMProtection".equals(fieldName)) { + deserializedAzureIaaSComputeVMProtectedItem + .withExistingBasicVMProtection(ExistingBasicVMProtection.fromString(reader.getString())); } else if ("policyType".equals(fieldName)) { deserializedAzureIaaSComputeVMProtectedItem.withPolicyType(reader.getString()); } else if ("protectedItemType".equals(fieldName)) { diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSvmProtectedItem.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSvmProtectedItem.java index 55d5a67485812..e0603cf8ed8d8 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSvmProtectedItem.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSvmProtectedItem.java @@ -85,6 +85,11 @@ public class AzureIaaSvmProtectedItem extends ProtectedItem { */ private ExtendedProperties extendedProperties; + /* + * Specifies how existing Basic VM protection is handled when configuring protection. + */ + private ExistingBasicVMProtection existingBasicVMProtection; + /* * Type of the policy used for protection */ @@ -346,6 +351,28 @@ public AzureIaaSvmProtectedItem withExtendedProperties(ExtendedProperties extend return this; } + /** + * Get the existingBasicVMProtection property: Specifies how existing Basic VM protection is handled when + * configuring protection. + * + * @return the existingBasicVMProtection value. + */ + public ExistingBasicVMProtection existingBasicVMProtection() { + return this.existingBasicVMProtection; + } + + /** + * Set the existingBasicVMProtection property: Specifies how existing Basic VM protection is handled when + * configuring protection. + * + * @param existingBasicVMProtection the existingBasicVMProtection value to set. + * @return the AzureIaaSvmProtectedItem object itself. + */ + public AzureIaaSvmProtectedItem withExistingBasicVMProtection(ExistingBasicVMProtection existingBasicVMProtection) { + this.existingBasicVMProtection = existingBasicVMProtection; + return this; + } + /** * Get the policyType property: Type of the policy used for protection. * @@ -546,6 +573,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStringField("lastBackupStatus", this.lastBackupStatus); jsonWriter.writeJsonField("extendedInfo", this.extendedInfo); jsonWriter.writeJsonField("extendedProperties", this.extendedProperties); + jsonWriter.writeStringField("existingBasicVMProtection", + this.existingBasicVMProtection == null ? null : this.existingBasicVMProtection.toString()); return jsonWriter.writeEndObject(); } @@ -674,6 +703,9 @@ static AzureIaaSvmProtectedItem fromJsonKnownDiscriminator(JsonReader jsonReader = AzureIaaSvmProtectedItemExtendedInfo.fromJson(reader); } else if ("extendedProperties".equals(fieldName)) { deserializedAzureIaaSvmProtectedItem.extendedProperties = ExtendedProperties.fromJson(reader); + } else if ("existingBasicVMProtection".equals(fieldName)) { + deserializedAzureIaaSvmProtectedItem.existingBasicVMProtection + = ExistingBasicVMProtection.fromString(reader.getString()); } else if ("policyType".equals(fieldName)) { deserializedAzureIaaSvmProtectedItem.policyType = reader.getString(); } else { diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSvmProtectionPolicy.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSvmProtectionPolicy.java index 76e1cf5e6b9e5..9681d8c303c0a 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSvmProtectionPolicy.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSvmProtectionPolicy.java @@ -50,6 +50,18 @@ public final class AzureIaaSvmProtectionPolicy extends ProtectionPolicy { */ private Integer instantRpRetentionRangeInDays; + /* + * Specifies whether Instant Access snapshot is enabled for the policy. If false or omitted, + * instantAccessDurationMinutes is ignored and no Instant Access snapshot is retained. + */ + private Boolean instantAccessSnapshotEnabled; + + /* + * Duration in minutes for which the Instant Access snapshot is retained, when instantAccessSnapshotEnabled + * is true. Must be between 60 and 300 minutes; defaults to 300 minutes if not specified. + */ + private Integer instantAccessDurationMinutes; + /* * TimeZone optional input as string. For example: TimeZone = "Pacific Standard Time". */ @@ -186,6 +198,54 @@ public AzureIaaSvmProtectionPolicy withInstantRpRetentionRangeInDays(Integer ins return this; } + /** + * Get the instantAccessSnapshotEnabled property: Specifies whether Instant Access snapshot is enabled for the + * policy. If false or omitted, + * instantAccessDurationMinutes is ignored and no Instant Access snapshot is retained. + * + * @return the instantAccessSnapshotEnabled value. + */ + public Boolean instantAccessSnapshotEnabled() { + return this.instantAccessSnapshotEnabled; + } + + /** + * Set the instantAccessSnapshotEnabled property: Specifies whether Instant Access snapshot is enabled for the + * policy. If false or omitted, + * instantAccessDurationMinutes is ignored and no Instant Access snapshot is retained. + * + * @param instantAccessSnapshotEnabled the instantAccessSnapshotEnabled value to set. + * @return the AzureIaaSvmProtectionPolicy object itself. + */ + public AzureIaaSvmProtectionPolicy withInstantAccessSnapshotEnabled(Boolean instantAccessSnapshotEnabled) { + this.instantAccessSnapshotEnabled = instantAccessSnapshotEnabled; + return this; + } + + /** + * Get the instantAccessDurationMinutes property: Duration in minutes for which the Instant Access snapshot is + * retained, when instantAccessSnapshotEnabled + * is true. Must be between 60 and 300 minutes; defaults to 300 minutes if not specified. + * + * @return the instantAccessDurationMinutes value. + */ + public Integer instantAccessDurationMinutes() { + return this.instantAccessDurationMinutes; + } + + /** + * Set the instantAccessDurationMinutes property: Duration in minutes for which the Instant Access snapshot is + * retained, when instantAccessSnapshotEnabled + * is true. Must be between 60 and 300 minutes; defaults to 300 minutes if not specified. + * + * @param instantAccessDurationMinutes the instantAccessDurationMinutes value to set. + * @return the AzureIaaSvmProtectionPolicy object itself. + */ + public AzureIaaSvmProtectionPolicy withInstantAccessDurationMinutes(Integer instantAccessDurationMinutes) { + this.instantAccessDurationMinutes = instantAccessDurationMinutes; + return this; + } + /** * Get the timeZone property: TimeZone optional input as string. For example: TimeZone = "Pacific Standard Time". * @@ -280,6 +340,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeJsonField("retentionPolicy", this.retentionPolicy); jsonWriter.writeMapField("tieringPolicy", this.tieringPolicy, (writer, element) -> writer.writeJson(element)); jsonWriter.writeNumberField("instantRpRetentionRangeInDays", this.instantRpRetentionRangeInDays); + jsonWriter.writeBooleanField("instantAccessSnapshotEnabled", this.instantAccessSnapshotEnabled); + jsonWriter.writeNumberField("instantAccessDurationMinutes", this.instantAccessDurationMinutes); jsonWriter.writeStringField("timeZone", this.timeZone); jsonWriter.writeStringField("policyType", this.policyType == null ? null : this.policyType.toString()); jsonWriter.writeStringField("snapshotConsistencyType", @@ -325,6 +387,12 @@ public static AzureIaaSvmProtectionPolicy fromJson(JsonReader jsonReader) throws } else if ("instantRpRetentionRangeInDays".equals(fieldName)) { deserializedAzureIaaSvmProtectionPolicy.instantRpRetentionRangeInDays = reader.getNullable(JsonReader::getInt); + } else if ("instantAccessSnapshotEnabled".equals(fieldName)) { + deserializedAzureIaaSvmProtectionPolicy.instantAccessSnapshotEnabled + = reader.getNullable(JsonReader::getBoolean); + } else if ("instantAccessDurationMinutes".equals(fieldName)) { + deserializedAzureIaaSvmProtectionPolicy.instantAccessDurationMinutes + = reader.getNullable(JsonReader::getInt); } else if ("timeZone".equals(fieldName)) { deserializedAzureIaaSvmProtectionPolicy.timeZone = reader.getString(); } else if ("policyType".equals(fieldName)) { diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadProtectedItem.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadProtectedItem.java index 9734b1f0b1be2..d20cca5637fef 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadProtectedItem.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadProtectedItem.java @@ -618,6 +618,8 @@ public static AzureVmWorkloadProtectedItem fromJson(JsonReader jsonReader) throw return AzureVmWorkloadSapHanaDBInstanceProtectedItem.fromJson(readerToUse.reset()); } else if ("AzureVmWorkloadSQLDatabase".equals(discriminatorValue)) { return AzureVmWorkloadSqlDatabaseProtectedItem.fromJson(readerToUse.reset()); + } else if ("AzureVmWorkloadSQLInstance".equals(discriminatorValue)) { + return AzureVmWorkloadSQLInstanceProtectedItem.fromJson(readerToUse.reset()); } else { return fromJsonKnownDiscriminator(readerToUse.reset()); } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadProtectionPolicy.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadProtectionPolicy.java index 1c15a9d805db8..5fb7abc7a9542 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadProtectionPolicy.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadProtectionPolicy.java @@ -27,6 +27,11 @@ public final class AzureVmWorkloadProtectionPolicy extends ProtectionPolicy { */ private WorkloadType workLoadType; + /* + * Type of the protection policy + */ + private VMWorkloadPolicyType vmWorkloadPolicyType; + /* * Common settings for the backup management */ @@ -79,6 +84,26 @@ public AzureVmWorkloadProtectionPolicy withWorkLoadType(WorkloadType workLoadTyp return this; } + /** + * Get the vmWorkloadPolicyType property: Type of the protection policy. + * + * @return the vmWorkloadPolicyType value. + */ + public VMWorkloadPolicyType vmWorkloadPolicyType() { + return this.vmWorkloadPolicyType; + } + + /** + * Set the vmWorkloadPolicyType property: Type of the protection policy. + * + * @param vmWorkloadPolicyType the vmWorkloadPolicyType value to set. + * @return the AzureVmWorkloadProtectionPolicy object itself. + */ + public AzureVmWorkloadProtectionPolicy withVmWorkloadPolicyType(VMWorkloadPolicyType vmWorkloadPolicyType) { + this.vmWorkloadPolicyType = vmWorkloadPolicyType; + return this; + } + /** * Get the settings property: Common settings for the backup management. * @@ -169,6 +194,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { (writer, element) -> writer.writeString(element)); jsonWriter.writeStringField("backupManagementType", this.backupManagementType); jsonWriter.writeStringField("workLoadType", this.workLoadType == null ? null : this.workLoadType.toString()); + jsonWriter.writeStringField("vmWorkloadPolicyType", + this.vmWorkloadPolicyType == null ? null : this.vmWorkloadPolicyType.toString()); jsonWriter.writeJsonField("settings", this.settings); jsonWriter.writeArrayField("subProtectionPolicy", this.subProtectionPolicy, (writer, element) -> writer.writeJson(element)); @@ -204,6 +231,9 @@ public static AzureVmWorkloadProtectionPolicy fromJson(JsonReader jsonReader) th } else if ("workLoadType".equals(fieldName)) { deserializedAzureVmWorkloadProtectionPolicy.workLoadType = WorkloadType.fromString(reader.getString()); + } else if ("vmWorkloadPolicyType".equals(fieldName)) { + deserializedAzureVmWorkloadProtectionPolicy.vmWorkloadPolicyType + = VMWorkloadPolicyType.fromString(reader.getString()); } else if ("settings".equals(fieldName)) { deserializedAzureVmWorkloadProtectionPolicy.settings = Settings.fromJson(reader); } else if ("subProtectionPolicy".equals(fieldName)) { diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSQLInstanceProtectedItem.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSQLInstanceProtectedItem.java new file mode 100644 index 0000000000000..0b95a5db95412 --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSQLInstanceProtectedItem.java @@ -0,0 +1,528 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.util.CoreUtils; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.time.OffsetDateTime; +import java.time.format.DateTimeFormatter; +import java.util.List; +import java.util.Map; + +/** + * Azure VM workload-specific protected item representing SQL Instance. + */ +@Fluent +public final class AzureVmWorkloadSQLInstanceProtectedItem extends AzureVmWorkloadProtectedItem { + /* + * backup item type. + */ + private String protectedItemType = "AzureVmWorkloadSQLInstance"; + + /* + * Name of Child Dbs protected under this parent. + */ + private List childDatabaseNameList; + + /* + * The state of instance protection. + */ + private InstanceProtectionReadiness instanceProtectionReadiness; + + /** + * Creates an instance of AzureVmWorkloadSQLInstanceProtectedItem class. + */ + public AzureVmWorkloadSQLInstanceProtectedItem() { + } + + /** + * Get the protectedItemType property: backup item type. + * + * @return the protectedItemType value. + */ + @Override + public String protectedItemType() { + return this.protectedItemType; + } + + /** + * Get the childDatabaseNameList property: Name of Child Dbs protected under this parent. + * + * @return the childDatabaseNameList value. + */ + public List childDatabaseNameList() { + return this.childDatabaseNameList; + } + + /** + * Set the childDatabaseNameList property: Name of Child Dbs protected under this parent. + * + * @param childDatabaseNameList the childDatabaseNameList value to set. + * @return the AzureVmWorkloadSQLInstanceProtectedItem object itself. + */ + public AzureVmWorkloadSQLInstanceProtectedItem withChildDatabaseNameList(List childDatabaseNameList) { + this.childDatabaseNameList = childDatabaseNameList; + return this; + } + + /** + * Get the instanceProtectionReadiness property: The state of instance protection. + * + * @return the instanceProtectionReadiness value. + */ + public InstanceProtectionReadiness instanceProtectionReadiness() { + return this.instanceProtectionReadiness; + } + + /** + * Set the instanceProtectionReadiness property: The state of instance protection. + * + * @param instanceProtectionReadiness the instanceProtectionReadiness value to set. + * @return the AzureVmWorkloadSQLInstanceProtectedItem object itself. + */ + public AzureVmWorkloadSQLInstanceProtectedItem + withInstanceProtectionReadiness(InstanceProtectionReadiness instanceProtectionReadiness) { + this.instanceProtectionReadiness = instanceProtectionReadiness; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public AzureVmWorkloadSQLInstanceProtectedItem withServerName(String serverName) { + super.withServerName(serverName); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public AzureVmWorkloadSQLInstanceProtectedItem withParentName(String parentName) { + super.withParentName(parentName); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public AzureVmWorkloadSQLInstanceProtectedItem withParentType(String parentType) { + super.withParentType(parentType); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public AzureVmWorkloadSQLInstanceProtectedItem withProtectionState(ProtectionState protectionState) { + super.withProtectionState(protectionState); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public AzureVmWorkloadSQLInstanceProtectedItem withLastBackupStatus(LastBackupStatus lastBackupStatus) { + super.withLastBackupStatus(lastBackupStatus); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public AzureVmWorkloadSQLInstanceProtectedItem withLastBackupTime(OffsetDateTime lastBackupTime) { + super.withLastBackupTime(lastBackupTime); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public AzureVmWorkloadSQLInstanceProtectedItem withLastBackupErrorDetail(ErrorDetail lastBackupErrorDetail) { + super.withLastBackupErrorDetail(lastBackupErrorDetail); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public AzureVmWorkloadSQLInstanceProtectedItem withProtectedItemDataSourceId(String protectedItemDataSourceId) { + super.withProtectedItemDataSourceId(protectedItemDataSourceId); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public AzureVmWorkloadSQLInstanceProtectedItem + withProtectedItemHealthStatus(ProtectedItemHealthStatus protectedItemHealthStatus) { + super.withProtectedItemHealthStatus(protectedItemHealthStatus); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public AzureVmWorkloadSQLInstanceProtectedItem + withExtendedInfo(AzureVmWorkloadProtectedItemExtendedInfo extendedInfo) { + super.withExtendedInfo(extendedInfo); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public AzureVmWorkloadSQLInstanceProtectedItem withKpisHealths(Map kpisHealths) { + super.withKpisHealths(kpisHealths); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public AzureVmWorkloadSQLInstanceProtectedItem withNodesList(List nodesList) { + super.withNodesList(nodesList); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public AzureVmWorkloadSQLInstanceProtectedItem withContainerName(String containerName) { + super.withContainerName(containerName); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public AzureVmWorkloadSQLInstanceProtectedItem withSourceResourceId(String sourceResourceId) { + super.withSourceResourceId(sourceResourceId); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public AzureVmWorkloadSQLInstanceProtectedItem withPolicyId(String policyId) { + super.withPolicyId(policyId); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public AzureVmWorkloadSQLInstanceProtectedItem withLastRecoveryPoint(OffsetDateTime lastRecoveryPoint) { + super.withLastRecoveryPoint(lastRecoveryPoint); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public AzureVmWorkloadSQLInstanceProtectedItem withBackupSetName(String backupSetName) { + super.withBackupSetName(backupSetName); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public AzureVmWorkloadSQLInstanceProtectedItem withCreateMode(CreateMode createMode) { + super.withCreateMode(createMode); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public AzureVmWorkloadSQLInstanceProtectedItem withDeferredDeleteTimeInUtc(OffsetDateTime deferredDeleteTimeInUtc) { + super.withDeferredDeleteTimeInUtc(deferredDeleteTimeInUtc); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public AzureVmWorkloadSQLInstanceProtectedItem + withIsScheduledForDeferredDelete(Boolean isScheduledForDeferredDelete) { + super.withIsScheduledForDeferredDelete(isScheduledForDeferredDelete); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public AzureVmWorkloadSQLInstanceProtectedItem withDeferredDeleteTimeRemaining(String deferredDeleteTimeRemaining) { + super.withDeferredDeleteTimeRemaining(deferredDeleteTimeRemaining); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public AzureVmWorkloadSQLInstanceProtectedItem + withIsDeferredDeleteScheduleUpcoming(Boolean isDeferredDeleteScheduleUpcoming) { + super.withIsDeferredDeleteScheduleUpcoming(isDeferredDeleteScheduleUpcoming); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public AzureVmWorkloadSQLInstanceProtectedItem withIsRehydrate(Boolean isRehydrate) { + super.withIsRehydrate(isRehydrate); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public AzureVmWorkloadSQLInstanceProtectedItem + withResourceGuardOperationRequests(List resourceGuardOperationRequests) { + super.withResourceGuardOperationRequests(resourceGuardOperationRequests); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public AzureVmWorkloadSQLInstanceProtectedItem withIsArchiveEnabled(Boolean isArchiveEnabled) { + super.withIsArchiveEnabled(isArchiveEnabled); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public AzureVmWorkloadSQLInstanceProtectedItem withPolicyName(String policyName) { + super.withPolicyName(policyName); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public AzureVmWorkloadSQLInstanceProtectedItem + withSoftDeleteRetentionPeriodInDays(Integer softDeleteRetentionPeriodInDays) { + super.withSoftDeleteRetentionPeriodInDays(softDeleteRetentionPeriodInDays); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public AzureVmWorkloadSQLInstanceProtectedItem withSourceSideScanInfo(SourceSideScanInfo sourceSideScanInfo) { + super.withSourceSideScanInfo(sourceSideScanInfo); + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("containerName", containerName()); + jsonWriter.writeStringField("sourceResourceId", sourceResourceId()); + jsonWriter.writeStringField("policyId", policyId()); + jsonWriter.writeStringField("lastRecoveryPoint", + lastRecoveryPoint() == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(lastRecoveryPoint())); + jsonWriter.writeStringField("backupSetName", backupSetName()); + jsonWriter.writeStringField("createMode", createMode() == null ? null : createMode().toString()); + jsonWriter.writeStringField("deferredDeleteTimeInUTC", + deferredDeleteTimeInUtc() == null + ? null + : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(deferredDeleteTimeInUtc())); + jsonWriter.writeBooleanField("isScheduledForDeferredDelete", isScheduledForDeferredDelete()); + jsonWriter.writeStringField("deferredDeleteTimeRemaining", deferredDeleteTimeRemaining()); + jsonWriter.writeBooleanField("isDeferredDeleteScheduleUpcoming", isDeferredDeleteScheduleUpcoming()); + jsonWriter.writeBooleanField("isRehydrate", isRehydrate()); + jsonWriter.writeArrayField("resourceGuardOperationRequests", resourceGuardOperationRequests(), + (writer, element) -> writer.writeString(element)); + jsonWriter.writeBooleanField("isArchiveEnabled", isArchiveEnabled()); + jsonWriter.writeStringField("policyName", policyName()); + jsonWriter.writeNumberField("softDeleteRetentionPeriodInDays", softDeleteRetentionPeriodInDays()); + jsonWriter.writeJsonField("sourceSideScanInfo", sourceSideScanInfo()); + jsonWriter.writeStringField("serverName", serverName()); + jsonWriter.writeStringField("parentName", parentName()); + jsonWriter.writeStringField("parentType", parentType()); + jsonWriter.writeStringField("protectionState", protectionState() == null ? null : protectionState().toString()); + jsonWriter.writeStringField("lastBackupStatus", + lastBackupStatus() == null ? null : lastBackupStatus().toString()); + jsonWriter.writeStringField("lastBackupTime", + lastBackupTime() == null ? null : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(lastBackupTime())); + jsonWriter.writeJsonField("lastBackupErrorDetail", lastBackupErrorDetail()); + jsonWriter.writeStringField("protectedItemDataSourceId", protectedItemDataSourceId()); + jsonWriter.writeStringField("protectedItemHealthStatus", + protectedItemHealthStatus() == null ? null : protectedItemHealthStatus().toString()); + jsonWriter.writeJsonField("extendedInfo", extendedInfo()); + jsonWriter.writeMapField("kpisHealths", kpisHealths(), (writer, element) -> writer.writeJson(element)); + jsonWriter.writeArrayField("nodesList", nodesList(), (writer, element) -> writer.writeJson(element)); + jsonWriter.writeStringField("protectedItemType", this.protectedItemType); + jsonWriter.writeArrayField("childDatabaseNameList", this.childDatabaseNameList, + (writer, element) -> writer.writeString(element)); + jsonWriter.writeStringField("instanceProtectionReadiness", + this.instanceProtectionReadiness == null ? null : this.instanceProtectionReadiness.toString()); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of AzureVmWorkloadSQLInstanceProtectedItem from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of AzureVmWorkloadSQLInstanceProtectedItem 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 AzureVmWorkloadSQLInstanceProtectedItem. + */ + public static AzureVmWorkloadSQLInstanceProtectedItem fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + AzureVmWorkloadSQLInstanceProtectedItem deserializedAzureVmWorkloadSQLInstanceProtectedItem + = new AzureVmWorkloadSQLInstanceProtectedItem(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("backupManagementType".equals(fieldName)) { + deserializedAzureVmWorkloadSQLInstanceProtectedItem + .withBackupManagementType(BackupManagementType.fromString(reader.getString())); + } else if ("workloadType".equals(fieldName)) { + deserializedAzureVmWorkloadSQLInstanceProtectedItem + .withWorkloadType(DataSourceType.fromString(reader.getString())); + } else if ("containerName".equals(fieldName)) { + deserializedAzureVmWorkloadSQLInstanceProtectedItem.withContainerName(reader.getString()); + } else if ("sourceResourceId".equals(fieldName)) { + deserializedAzureVmWorkloadSQLInstanceProtectedItem.withSourceResourceId(reader.getString()); + } else if ("policyId".equals(fieldName)) { + deserializedAzureVmWorkloadSQLInstanceProtectedItem.withPolicyId(reader.getString()); + } else if ("lastRecoveryPoint".equals(fieldName)) { + deserializedAzureVmWorkloadSQLInstanceProtectedItem.withLastRecoveryPoint(reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()))); + } else if ("backupSetName".equals(fieldName)) { + deserializedAzureVmWorkloadSQLInstanceProtectedItem.withBackupSetName(reader.getString()); + } else if ("createMode".equals(fieldName)) { + deserializedAzureVmWorkloadSQLInstanceProtectedItem + .withCreateMode(CreateMode.fromString(reader.getString())); + } else if ("deferredDeleteTimeInUTC".equals(fieldName)) { + deserializedAzureVmWorkloadSQLInstanceProtectedItem.withDeferredDeleteTimeInUtc(reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()))); + } else if ("isScheduledForDeferredDelete".equals(fieldName)) { + deserializedAzureVmWorkloadSQLInstanceProtectedItem + .withIsScheduledForDeferredDelete(reader.getNullable(JsonReader::getBoolean)); + } else if ("deferredDeleteTimeRemaining".equals(fieldName)) { + deserializedAzureVmWorkloadSQLInstanceProtectedItem + .withDeferredDeleteTimeRemaining(reader.getString()); + } else if ("isDeferredDeleteScheduleUpcoming".equals(fieldName)) { + deserializedAzureVmWorkloadSQLInstanceProtectedItem + .withIsDeferredDeleteScheduleUpcoming(reader.getNullable(JsonReader::getBoolean)); + } else if ("isRehydrate".equals(fieldName)) { + deserializedAzureVmWorkloadSQLInstanceProtectedItem + .withIsRehydrate(reader.getNullable(JsonReader::getBoolean)); + } else if ("resourceGuardOperationRequests".equals(fieldName)) { + List resourceGuardOperationRequests = reader.readArray(reader1 -> reader1.getString()); + deserializedAzureVmWorkloadSQLInstanceProtectedItem + .withResourceGuardOperationRequests(resourceGuardOperationRequests); + } else if ("isArchiveEnabled".equals(fieldName)) { + deserializedAzureVmWorkloadSQLInstanceProtectedItem + .withIsArchiveEnabled(reader.getNullable(JsonReader::getBoolean)); + } else if ("policyName".equals(fieldName)) { + deserializedAzureVmWorkloadSQLInstanceProtectedItem.withPolicyName(reader.getString()); + } else if ("softDeleteRetentionPeriodInDays".equals(fieldName)) { + deserializedAzureVmWorkloadSQLInstanceProtectedItem + .withSoftDeleteRetentionPeriodInDays(reader.getNullable(JsonReader::getInt)); + } else if ("sourceLocation".equals(fieldName)) { + deserializedAzureVmWorkloadSQLInstanceProtectedItem.withSourceLocation(reader.getString()); + } else if ("vaultId".equals(fieldName)) { + deserializedAzureVmWorkloadSQLInstanceProtectedItem.withVaultId(reader.getString()); + } else if ("sourceSideScanInfo".equals(fieldName)) { + deserializedAzureVmWorkloadSQLInstanceProtectedItem + .withSourceSideScanInfo(SourceSideScanInfo.fromJson(reader)); + } else if ("friendlyName".equals(fieldName)) { + deserializedAzureVmWorkloadSQLInstanceProtectedItem.withFriendlyName(reader.getString()); + } else if ("serverName".equals(fieldName)) { + deserializedAzureVmWorkloadSQLInstanceProtectedItem.withServerName(reader.getString()); + } else if ("parentName".equals(fieldName)) { + deserializedAzureVmWorkloadSQLInstanceProtectedItem.withParentName(reader.getString()); + } else if ("parentType".equals(fieldName)) { + deserializedAzureVmWorkloadSQLInstanceProtectedItem.withParentType(reader.getString()); + } else if ("protectionStatus".equals(fieldName)) { + deserializedAzureVmWorkloadSQLInstanceProtectedItem.withProtectionStatus(reader.getString()); + } else if ("protectionState".equals(fieldName)) { + deserializedAzureVmWorkloadSQLInstanceProtectedItem + .withProtectionState(ProtectionState.fromString(reader.getString())); + } else if ("lastBackupStatus".equals(fieldName)) { + deserializedAzureVmWorkloadSQLInstanceProtectedItem + .withLastBackupStatus(LastBackupStatus.fromString(reader.getString())); + } else if ("lastBackupTime".equals(fieldName)) { + deserializedAzureVmWorkloadSQLInstanceProtectedItem.withLastBackupTime(reader + .getNullable(nonNullReader -> CoreUtils.parseBestOffsetDateTime(nonNullReader.getString()))); + } else if ("lastBackupErrorDetail".equals(fieldName)) { + deserializedAzureVmWorkloadSQLInstanceProtectedItem + .withLastBackupErrorDetail(ErrorDetail.fromJson(reader)); + } else if ("protectedItemDataSourceId".equals(fieldName)) { + deserializedAzureVmWorkloadSQLInstanceProtectedItem + .withProtectedItemDataSourceId(reader.getString()); + } else if ("protectedItemHealthStatus".equals(fieldName)) { + deserializedAzureVmWorkloadSQLInstanceProtectedItem + .withProtectedItemHealthStatus(ProtectedItemHealthStatus.fromString(reader.getString())); + } else if ("extendedInfo".equals(fieldName)) { + deserializedAzureVmWorkloadSQLInstanceProtectedItem + .withExtendedInfo(AzureVmWorkloadProtectedItemExtendedInfo.fromJson(reader)); + } else if ("kpisHealths".equals(fieldName)) { + Map kpisHealths + = reader.readMap(reader1 -> KpiResourceHealthDetails.fromJson(reader1)); + deserializedAzureVmWorkloadSQLInstanceProtectedItem.withKpisHealths(kpisHealths); + } else if ("nodesList".equals(fieldName)) { + List nodesList + = reader.readArray(reader1 -> DistributedNodesInfo.fromJson(reader1)); + deserializedAzureVmWorkloadSQLInstanceProtectedItem.withNodesList(nodesList); + } else if ("protectedItemType".equals(fieldName)) { + deserializedAzureVmWorkloadSQLInstanceProtectedItem.protectedItemType = reader.getString(); + } else if ("childDatabaseNameList".equals(fieldName)) { + List childDatabaseNameList = reader.readArray(reader1 -> reader1.getString()); + deserializedAzureVmWorkloadSQLInstanceProtectedItem.childDatabaseNameList = childDatabaseNameList; + } else if ("instanceProtectionReadiness".equals(fieldName)) { + deserializedAzureVmWorkloadSQLInstanceProtectedItem.instanceProtectionReadiness + = InstanceProtectionReadiness.fromString(reader.getString()); + } else { + reader.skipChildren(); + } + } + + return deserializedAzureVmWorkloadSQLInstanceProtectedItem; + }); + } +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSqlDatabaseProtectedItem.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSqlDatabaseProtectedItem.java index 6ac714d268f2b..e99dff4991a3e 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSqlDatabaseProtectedItem.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSqlDatabaseProtectedItem.java @@ -25,6 +25,16 @@ public final class AzureVmWorkloadSqlDatabaseProtectedItem extends AzureVmWorklo */ private String protectedItemType = "AzureVmWorkloadSQLDatabase"; + /* + * Name of the parent protected item (e.g., SQL Instance name) when this database is protected as part of a parent. + */ + private String parentProtectedItem; + + /* + * Protection type in case protected as part of a parent. + */ + private ProtectionLevel protectionLevel; + /** * Creates an instance of AzureVmWorkloadSqlDatabaseProtectedItem class. */ @@ -41,6 +51,48 @@ public String protectedItemType() { return this.protectedItemType; } + /** + * Get the parentProtectedItem property: Name of the parent protected item (e.g., SQL Instance name) when this + * database is protected as part of a parent. + * + * @return the parentProtectedItem value. + */ + public String parentProtectedItem() { + return this.parentProtectedItem; + } + + /** + * Set the parentProtectedItem property: Name of the parent protected item (e.g., SQL Instance name) when this + * database is protected as part of a parent. + * + * @param parentProtectedItem the parentProtectedItem value to set. + * @return the AzureVmWorkloadSqlDatabaseProtectedItem object itself. + */ + public AzureVmWorkloadSqlDatabaseProtectedItem withParentProtectedItem(String parentProtectedItem) { + this.parentProtectedItem = parentProtectedItem; + return this; + } + + /** + * Get the protectionLevel property: Protection type in case protected as part of a parent. + * + * @return the protectionLevel value. + */ + public ProtectionLevel protectionLevel() { + return this.protectionLevel; + } + + /** + * Set the protectionLevel property: Protection type in case protected as part of a parent. + * + * @param protectionLevel the protectionLevel value to set. + * @return the AzureVmWorkloadSqlDatabaseProtectedItem object itself. + */ + public AzureVmWorkloadSqlDatabaseProtectedItem withProtectionLevel(ProtectionLevel protectionLevel) { + this.protectionLevel = protectionLevel; + return this; + } + /** * {@inheritDoc} */ @@ -342,6 +394,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeMapField("kpisHealths", kpisHealths(), (writer, element) -> writer.writeJson(element)); jsonWriter.writeArrayField("nodesList", nodesList(), (writer, element) -> writer.writeJson(element)); jsonWriter.writeStringField("protectedItemType", this.protectedItemType); + jsonWriter.writeStringField("parentProtectedItem", this.parentProtectedItem); + jsonWriter.writeStringField("protectionLevel", + this.protectionLevel == null ? null : this.protectionLevel.toString()); return jsonWriter.writeEndObject(); } @@ -456,6 +511,11 @@ public static AzureVmWorkloadSqlDatabaseProtectedItem fromJson(JsonReader jsonRe deserializedAzureVmWorkloadSqlDatabaseProtectedItem.withNodesList(nodesList); } else if ("protectedItemType".equals(fieldName)) { deserializedAzureVmWorkloadSqlDatabaseProtectedItem.protectedItemType = reader.getString(); + } else if ("parentProtectedItem".equals(fieldName)) { + deserializedAzureVmWorkloadSqlDatabaseProtectedItem.parentProtectedItem = reader.getString(); + } else if ("protectionLevel".equals(fieldName)) { + deserializedAzureVmWorkloadSqlDatabaseProtectedItem.protectionLevel + = ProtectionLevel.fromString(reader.getString()); } else { reader.skipChildren(); } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSqlRecoveryPointExtendedInfo.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSqlRecoveryPointExtendedInfo.java index 7134a729a034a..f65d072d62c87 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSqlRecoveryPointExtendedInfo.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSqlRecoveryPointExtendedInfo.java @@ -31,6 +31,16 @@ public final class AzureWorkloadSqlRecoveryPointExtendedInfo */ private List dataDirectoryPaths; + /* + * List of databases included in recovery point. + */ + private List includedDatabases; + + /* + * Detailed info of snapshot restore point. + */ + private SnapshotRecoveryPointInfo snapshotRecoveryPointInfo; + /** * Creates an instance of AzureWorkloadSqlRecoveryPointExtendedInfo class. */ @@ -55,6 +65,24 @@ public List dataDirectoryPaths() { return this.dataDirectoryPaths; } + /** + * Get the includedDatabases property: List of databases included in recovery point. + * + * @return the includedDatabases value. + */ + public List includedDatabases() { + return this.includedDatabases; + } + + /** + * Get the snapshotRecoveryPointInfo property: Detailed info of snapshot restore point. + * + * @return the snapshotRecoveryPointInfo value. + */ + public SnapshotRecoveryPointInfo snapshotRecoveryPointInfo() { + return this.snapshotRecoveryPointInfo; + } + /** * {@inheritDoc} */ @@ -67,6 +95,9 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { : DateTimeFormatter.ISO_OFFSET_DATE_TIME.format(this.dataDirectoryTimeInUtc)); jsonWriter.writeArrayField("dataDirectoryPaths", this.dataDirectoryPaths, (writer, element) -> writer.writeJson(element)); + jsonWriter.writeArrayField("includedDatabases", this.includedDatabases, + (writer, element) -> writer.writeJson(element)); + jsonWriter.writeJsonField("snapshotRecoveryPointInfo", this.snapshotRecoveryPointInfo); return jsonWriter.writeEndObject(); } @@ -93,6 +124,12 @@ public static AzureWorkloadSqlRecoveryPointExtendedInfo fromJson(JsonReader json List dataDirectoryPaths = reader.readArray(reader1 -> SqlDataDirectory.fromJson(reader1)); deserializedAzureWorkloadSqlRecoveryPointExtendedInfo.dataDirectoryPaths = dataDirectoryPaths; + } else if ("includedDatabases".equals(fieldName)) { + List includedDatabases = reader.readArray(reader1 -> DatabaseInRP.fromJson(reader1)); + deserializedAzureWorkloadSqlRecoveryPointExtendedInfo.includedDatabases = includedDatabases; + } else if ("snapshotRecoveryPointInfo".equals(fieldName)) { + deserializedAzureWorkloadSqlRecoveryPointExtendedInfo.snapshotRecoveryPointInfo + = SnapshotRecoveryPointInfo.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupItemType.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupItemType.java index 57e21825e2e25..c1920b2aba8ba 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupItemType.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupItemType.java @@ -91,6 +91,11 @@ public final class BackupItemType extends ExpandableStringEnum { */ public static final BackupItemType SAPHANA_DBINSTANCE = fromString("SAPHanaDBInstance"); + /** + * A SQL Server instance. + */ + public static final BackupItemType SQLINSTANCE = fromString("SQLInstance"); + /** * Creates a new instance of BackupItemType value. * diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DataSourceType.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DataSourceType.java index 7e205170f505f..733688f03bfd8 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DataSourceType.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DataSourceType.java @@ -91,6 +91,11 @@ public final class DataSourceType extends ExpandableStringEnum { */ public static final DataSourceType SAPHANA_DBINSTANCE = fromString("SAPHanaDBInstance"); + /** + * A SQL Server instance. + */ + public static final DataSourceType SQLINSTANCE = fromString("SQLInstance"); + /** * Creates a new instance of DataSourceType value. * diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DatabaseInRP.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DatabaseInRP.java new file mode 100644 index 0000000000000..45bdac255da86 --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DatabaseInRP.java @@ -0,0 +1,91 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Database included in RP. + */ +@Immutable +public final class DatabaseInRP implements JsonSerializable { + /* + * Datasource Id for the database. + */ + private String datasourceId; + + /* + * Datasource name for the database. + */ + private String datasourceName; + + /** + * Creates an instance of DatabaseInRP class. + */ + private DatabaseInRP() { + } + + /** + * Get the datasourceId property: Datasource Id for the database. + * + * @return the datasourceId value. + */ + public String datasourceId() { + return this.datasourceId; + } + + /** + * Get the datasourceName property: Datasource name for the database. + * + * @return the datasourceName value. + */ + public String datasourceName() { + return this.datasourceName; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("datasourceId", this.datasourceId); + jsonWriter.writeStringField("datasourceName", this.datasourceName); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DatabaseInRP from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DatabaseInRP 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 DatabaseInRP. + */ + public static DatabaseInRP fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DatabaseInRP deserializedDatabaseInRP = new DatabaseInRP(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("datasourceId".equals(fieldName)) { + deserializedDatabaseInRP.datasourceId = reader.getString(); + } else if ("datasourceName".equals(fieldName)) { + deserializedDatabaseInRP.datasourceName = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedDatabaseInRP; + }); + } +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DiskInfo.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DiskInfo.java new file mode 100644 index 0000000000000..2e91ffea0307b --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DiskInfo.java @@ -0,0 +1,195 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Metadata for a physical disk that backs a filesystem volume or Storage Spaces pool. + * Unlike DiskInformation, this model describes storage topology; DiskInformation only identifies disks included in or + * excluded from a virtual machine recovery point. + */ +@Immutable +public final class DiskInfo implements JsonSerializable { + /* + * Disk number. + */ + private Integer diskNumber; + + /* + * Unique ID of the disk. + */ + private String diskUniqueId; + + /* + * GUID of the disk. + */ + private String diskGuid; + + /* + * Location of the disk. + */ + private String diskLocation; + + /* + * Size of the disk in bytes. + */ + private Long sizeInBytes; + + /* + * Friendly name of the disk. + */ + private String friendlyName; + + /* + * LUN of the disk. + */ + private Integer lun; + + /* + * ARM ID of the managed disk. + */ + private String managedDiskId; + + /** + * Creates an instance of DiskInfo class. + */ + private DiskInfo() { + } + + /** + * Get the diskNumber property: Disk number. + * + * @return the diskNumber value. + */ + public Integer diskNumber() { + return this.diskNumber; + } + + /** + * Get the diskUniqueId property: Unique ID of the disk. + * + * @return the diskUniqueId value. + */ + public String diskUniqueId() { + return this.diskUniqueId; + } + + /** + * Get the diskGuid property: GUID of the disk. + * + * @return the diskGuid value. + */ + public String diskGuid() { + return this.diskGuid; + } + + /** + * Get the diskLocation property: Location of the disk. + * + * @return the diskLocation value. + */ + public String diskLocation() { + return this.diskLocation; + } + + /** + * Get the sizeInBytes property: Size of the disk in bytes. + * + * @return the sizeInBytes value. + */ + public Long sizeInBytes() { + return this.sizeInBytes; + } + + /** + * Get the friendlyName property: Friendly name of the disk. + * + * @return the friendlyName value. + */ + public String friendlyName() { + return this.friendlyName; + } + + /** + * Get the lun property: LUN of the disk. + * + * @return the lun value. + */ + public Integer lun() { + return this.lun; + } + + /** + * Get the managedDiskId property: ARM ID of the managed disk. + * + * @return the managedDiskId value. + */ + public String managedDiskId() { + return this.managedDiskId; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeNumberField("diskNumber", this.diskNumber); + jsonWriter.writeStringField("diskUniqueId", this.diskUniqueId); + jsonWriter.writeStringField("diskGuid", this.diskGuid); + jsonWriter.writeStringField("diskLocation", this.diskLocation); + jsonWriter.writeNumberField("sizeInBytes", this.sizeInBytes); + jsonWriter.writeStringField("friendlyName", this.friendlyName); + jsonWriter.writeNumberField("lun", this.lun); + jsonWriter.writeStringField("managedDiskId", this.managedDiskId); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of DiskInfo from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of DiskInfo 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 DiskInfo. + */ + public static DiskInfo fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + DiskInfo deserializedDiskInfo = new DiskInfo(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("diskNumber".equals(fieldName)) { + deserializedDiskInfo.diskNumber = reader.getNullable(JsonReader::getInt); + } else if ("diskUniqueId".equals(fieldName)) { + deserializedDiskInfo.diskUniqueId = reader.getString(); + } else if ("diskGuid".equals(fieldName)) { + deserializedDiskInfo.diskGuid = reader.getString(); + } else if ("diskLocation".equals(fieldName)) { + deserializedDiskInfo.diskLocation = reader.getString(); + } else if ("sizeInBytes".equals(fieldName)) { + deserializedDiskInfo.sizeInBytes = reader.getNullable(JsonReader::getLong); + } else if ("friendlyName".equals(fieldName)) { + deserializedDiskInfo.friendlyName = reader.getString(); + } else if ("lun".equals(fieldName)) { + deserializedDiskInfo.lun = reader.getNullable(JsonReader::getInt); + } else if ("managedDiskId".equals(fieldName)) { + deserializedDiskInfo.managedDiskId = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedDiskInfo; + }); + } +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DiskInformation.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DiskInformation.java index 3715a00c3159d..e41c650fca744 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DiskInformation.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DiskInformation.java @@ -26,6 +26,16 @@ public final class DiskInformation implements JsonSerializable */ private String name; + /* + * Size of the disk in GB. + */ + private Integer diskSizeInGb; + + /* + * Storage type of the disk. + */ + private String storageType; + /** * Creates an instance of DiskInformation class. */ @@ -50,6 +60,24 @@ public String name() { return this.name; } + /** + * Get the diskSizeInGb property: Size of the disk in GB. + * + * @return the diskSizeInGb value. + */ + public Integer diskSizeInGb() { + return this.diskSizeInGb; + } + + /** + * Get the storageType property: Storage type of the disk. + * + * @return the storageType value. + */ + public String storageType() { + return this.storageType; + } + /** * {@inheritDoc} */ @@ -58,6 +86,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeNumberField("lun", this.lun); jsonWriter.writeStringField("name", this.name); + jsonWriter.writeNumberField("diskSizeInGb", this.diskSizeInGb); + jsonWriter.writeStringField("storageType", this.storageType); return jsonWriter.writeEndObject(); } @@ -80,6 +110,10 @@ public static DiskInformation fromJson(JsonReader jsonReader) throws IOException deserializedDiskInformation.lun = reader.getNullable(JsonReader::getInt); } else if ("name".equals(fieldName)) { deserializedDiskInformation.name = reader.getString(); + } else if ("diskSizeInGb".equals(fieldName)) { + deserializedDiskInformation.diskSizeInGb = reader.getNullable(JsonReader::getInt); + } else if ("storageType".equals(fieldName)) { + deserializedDiskInformation.storageType = reader.getString(); } else { reader.skipChildren(); } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ExistingBasicVMProtection.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ExistingBasicVMProtection.java new file mode 100644 index 0000000000000..80908acea0a62 --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ExistingBasicVMProtection.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.recoveryservicesbackup.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Specifies how existing Basic VM protection is handled when configuring protection. + */ +public final class ExistingBasicVMProtection extends ExpandableStringEnum { + /** + * Disables existing Basic VM protection and immediately deletes its recovery points. + */ + public static final ExistingBasicVMProtection DISABLE_WITH_DELETE_RPS_NOW = fromString("DisableWithDeleteRPsNow"); + + /** + * Creates a new instance of ExistingBasicVMProtection value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ExistingBasicVMProtection() { + } + + /** + * Creates or finds a ExistingBasicVMProtection from its string representation. + * + * @param name a name to look for. + * @return the corresponding ExistingBasicVMProtection. + */ + public static ExistingBasicVMProtection fromString(String name) { + return fromString(name, ExistingBasicVMProtection.class); + } + + /** + * Gets known ExistingBasicVMProtection values. + * + * @return known ExistingBasicVMProtection values. + */ + public static Collection values() { + return values(ExistingBasicVMProtection.class); + } +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/FilesystemInfo.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/FilesystemInfo.java new file mode 100644 index 0000000000000..3eff4561701f2 --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/FilesystemInfo.java @@ -0,0 +1,179 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Per volume filesystem metadata captured on the VM. + */ +@Immutable +public final class FilesystemInfo implements JsonSerializable { + /* + * Volume GUID path. + */ + private String volumeGuid; + + /* + * Filesystem type (NTFS / ReFS / etc.). + */ + private String fileSystemType; + + /* + * Volume label. + */ + private String label; + + /* + * Drive letters / mount points pointing at this volume. + */ + private List accessPaths; + + /* + * True when this volume sits on a Windows Storage Spaces virtual disk. + */ + private Boolean isOnStorageSpace; + + /* + * Storage Spaces pool / virtual-disk identifiers. + */ + private StorageSpaceInfo storageSpaceInfo; + + /* + * Physical disks that back this volume (or the storage pool). + */ + private List diskInfoList; + + /** + * Creates an instance of FilesystemInfo class. + */ + private FilesystemInfo() { + } + + /** + * Get the volumeGuid property: Volume GUID path. + * + * @return the volumeGuid value. + */ + public String volumeGuid() { + return this.volumeGuid; + } + + /** + * Get the fileSystemType property: Filesystem type (NTFS / ReFS / etc.). + * + * @return the fileSystemType value. + */ + public String fileSystemType() { + return this.fileSystemType; + } + + /** + * Get the label property: Volume label. + * + * @return the label value. + */ + public String label() { + return this.label; + } + + /** + * Get the accessPaths property: Drive letters / mount points pointing at this volume. + * + * @return the accessPaths value. + */ + public List accessPaths() { + return this.accessPaths; + } + + /** + * Get the isOnStorageSpace property: True when this volume sits on a Windows Storage Spaces virtual disk. + * + * @return the isOnStorageSpace value. + */ + public Boolean isOnStorageSpace() { + return this.isOnStorageSpace; + } + + /** + * Get the storageSpaceInfo property: Storage Spaces pool / virtual-disk identifiers. + * + * @return the storageSpaceInfo value. + */ + public StorageSpaceInfo storageSpaceInfo() { + return this.storageSpaceInfo; + } + + /** + * Get the diskInfoList property: Physical disks that back this volume (or the storage pool). + * + * @return the diskInfoList value. + */ + public List diskInfoList() { + return this.diskInfoList; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("volumeGuid", this.volumeGuid); + jsonWriter.writeStringField("fileSystemType", this.fileSystemType); + jsonWriter.writeStringField("label", this.label); + jsonWriter.writeArrayField("accessPaths", this.accessPaths, (writer, element) -> writer.writeString(element)); + jsonWriter.writeBooleanField("isOnStorageSpace", this.isOnStorageSpace); + jsonWriter.writeJsonField("storageSpaceInfo", this.storageSpaceInfo); + jsonWriter.writeArrayField("diskInfoList", this.diskInfoList, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of FilesystemInfo from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of FilesystemInfo 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 FilesystemInfo. + */ + public static FilesystemInfo fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + FilesystemInfo deserializedFilesystemInfo = new FilesystemInfo(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("volumeGuid".equals(fieldName)) { + deserializedFilesystemInfo.volumeGuid = reader.getString(); + } else if ("fileSystemType".equals(fieldName)) { + deserializedFilesystemInfo.fileSystemType = reader.getString(); + } else if ("label".equals(fieldName)) { + deserializedFilesystemInfo.label = reader.getString(); + } else if ("accessPaths".equals(fieldName)) { + List accessPaths = reader.readArray(reader1 -> reader1.getString()); + deserializedFilesystemInfo.accessPaths = accessPaths; + } else if ("isOnStorageSpace".equals(fieldName)) { + deserializedFilesystemInfo.isOnStorageSpace = reader.getNullable(JsonReader::getBoolean); + } else if ("storageSpaceInfo".equals(fieldName)) { + deserializedFilesystemInfo.storageSpaceInfo = StorageSpaceInfo.fromJson(reader); + } else if ("diskInfoList".equals(fieldName)) { + List diskInfoList = reader.readArray(reader1 -> DiskInfo.fromJson(reader1)); + deserializedFilesystemInfo.diskInfoList = diskInfoList; + } else { + reader.skipChildren(); + } + } + + return deserializedFilesystemInfo; + }); + } +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/GetRPExtendedInfoRequest.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/GetRPExtendedInfoRequest.java new file mode 100644 index 0000000000000..0d9016e1ff825 --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/GetRPExtendedInfoRequest.java @@ -0,0 +1,94 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.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 for fetching the additional details of a recovery point. + */ +@Fluent +public final class GetRPExtendedInfoRequest implements JsonSerializable { + /* + * ARM id of the recovery point whose additional details are to be fetched. Exactly one recovery point id can be + * specified. + */ + private List recoveryPointIds; + + /** + * Creates an instance of GetRPExtendedInfoRequest class. + */ + public GetRPExtendedInfoRequest() { + } + + /** + * Get the recoveryPointIds property: ARM id of the recovery point whose additional details are to be fetched. + * Exactly one recovery point id can be + * specified. + * + * @return the recoveryPointIds value. + */ + public List recoveryPointIds() { + return this.recoveryPointIds; + } + + /** + * Set the recoveryPointIds property: ARM id of the recovery point whose additional details are to be fetched. + * Exactly one recovery point id can be + * specified. + * + * @param recoveryPointIds the recoveryPointIds value to set. + * @return the GetRPExtendedInfoRequest object itself. + */ + public GetRPExtendedInfoRequest withRecoveryPointIds(List recoveryPointIds) { + this.recoveryPointIds = recoveryPointIds; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeArrayField("recoveryPointIds", this.recoveryPointIds, + (writer, element) -> writer.writeString(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of GetRPExtendedInfoRequest from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of GetRPExtendedInfoRequest 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 GetRPExtendedInfoRequest. + */ + public static GetRPExtendedInfoRequest fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + GetRPExtendedInfoRequest deserializedGetRPExtendedInfoRequest = new GetRPExtendedInfoRequest(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("recoveryPointIds".equals(fieldName)) { + List recoveryPointIds = reader.readArray(reader1 -> reader1.getString()); + deserializedGetRPExtendedInfoRequest.recoveryPointIds = recoveryPointIds; + } else { + reader.skipChildren(); + } + } + + return deserializedGetRPExtendedInfoRequest; + }); + } +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/GetRPExtendedInfoRequestResource.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/GetRPExtendedInfoRequestResource.java new file mode 100644 index 0000000000000..0d56fdb541ad1 --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/GetRPExtendedInfoRequestResource.java @@ -0,0 +1,241 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.models; + +import com.azure.core.annotation.Fluent; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.Map; + +/** + * Request for fetching the additional details of a recovery point, wrapped in a resource envelope. + */ +@Fluent +public final class GetRPExtendedInfoRequestResource extends ProxyResource { + /* + * Resource location. + */ + private String location; + + /* + * Resource tags. + */ + private Map tags; + + /* + * Optional ETag. + */ + private String eTag; + + /* + * GetRPExtendedInfoRequestResource properties + */ + private GetRPExtendedInfoRequest properties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of GetRPExtendedInfoRequestResource class. + */ + public GetRPExtendedInfoRequestResource() { + } + + /** + * Get the location property: Resource location. + * + * @return the location value. + */ + public String location() { + return this.location; + } + + /** + * Set the location property: Resource location. + * + * @param location the location value to set. + * @return the GetRPExtendedInfoRequestResource object itself. + */ + public GetRPExtendedInfoRequestResource withLocation(String location) { + this.location = location; + return this; + } + + /** + * Get the tags property: Resource tags. + * + * @return the tags value. + */ + public Map tags() { + return this.tags; + } + + /** + * Set the tags property: Resource tags. + * + * @param tags the tags value to set. + * @return the GetRPExtendedInfoRequestResource object itself. + */ + public GetRPExtendedInfoRequestResource withTags(Map tags) { + this.tags = tags; + return this; + } + + /** + * Get the eTag property: Optional ETag. + * + * @return the eTag value. + */ + public String eTag() { + return this.eTag; + } + + /** + * Set the eTag property: Optional ETag. + * + * @param eTag the eTag value to set. + * @return the GetRPExtendedInfoRequestResource object itself. + */ + public GetRPExtendedInfoRequestResource withETag(String eTag) { + this.eTag = eTag; + return this; + } + + /** + * Get the properties property: GetRPExtendedInfoRequestResource properties. + * + * @return the properties value. + */ + public GetRPExtendedInfoRequest properties() { + return this.properties; + } + + /** + * Set the properties property: GetRPExtendedInfoRequestResource properties. + * + * @param properties the properties value to set. + * @return the GetRPExtendedInfoRequestResource object itself. + */ + public GetRPExtendedInfoRequestResource withProperties(GetRPExtendedInfoRequest properties) { + this.properties = properties; + return this; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeJsonField("properties", this.properties); + jsonWriter.writeStringField("location", this.location); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + jsonWriter.writeStringField("eTag", this.eTag); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of GetRPExtendedInfoRequestResource from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of GetRPExtendedInfoRequestResource 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 GetRPExtendedInfoRequestResource. + */ + public static GetRPExtendedInfoRequestResource fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + GetRPExtendedInfoRequestResource deserializedGetRPExtendedInfoRequestResource + = new GetRPExtendedInfoRequestResource(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedGetRPExtendedInfoRequestResource.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedGetRPExtendedInfoRequestResource.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedGetRPExtendedInfoRequestResource.type = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedGetRPExtendedInfoRequestResource.properties = GetRPExtendedInfoRequest.fromJson(reader); + } else if ("location".equals(fieldName)) { + deserializedGetRPExtendedInfoRequestResource.location = reader.getString(); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedGetRPExtendedInfoRequestResource.tags = tags; + } else if ("eTag".equals(fieldName)) { + deserializedGetRPExtendedInfoRequestResource.eTag = reader.getString(); + } else if ("systemData".equals(fieldName)) { + deserializedGetRPExtendedInfoRequestResource.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedGetRPExtendedInfoRequestResource; + }); + } +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/IaasVMRPExtendedInfo.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/IaasVMRPExtendedInfo.java new file mode 100644 index 0000000000000..c0883bfec570d --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/IaasVMRPExtendedInfo.java @@ -0,0 +1,115 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Additional details of an IaaS VM recovery point. + */ +@Immutable +public final class IaasVMRPExtendedInfo extends RPExtendedInfo { + /* + * This property will be used as the discriminator for deciding the specific types in the polymorphic chain of + * types. + */ + private String objectType = "IaasVMRPExtendedInfo"; + + /* + * OS disk of the backed up virtual machine. The lun of the OS disk is always -1, since a logical unit number is + * only assigned to data disks. + */ + private DiskInformation osDisk; + + /* + * Data disks of the backed up virtual machine. + */ + private List dataDisks; + + /** + * Creates an instance of IaasVMRPExtendedInfo class. + */ + private IaasVMRPExtendedInfo() { + } + + /** + * Get the objectType property: This property will be used as the discriminator for deciding the specific types in + * the polymorphic chain of types. + * + * @return the objectType value. + */ + @Override + public String objectType() { + return this.objectType; + } + + /** + * Get the osDisk property: OS disk of the backed up virtual machine. The lun of the OS disk is always -1, since a + * logical unit number is + * only assigned to data disks. + * + * @return the osDisk value. + */ + public DiskInformation osDisk() { + return this.osDisk; + } + + /** + * Get the dataDisks property: Data disks of the backed up virtual machine. + * + * @return the dataDisks value. + */ + public List dataDisks() { + return this.dataDisks; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("objectType", this.objectType); + jsonWriter.writeJsonField("osDisk", this.osDisk); + jsonWriter.writeArrayField("dataDisks", this.dataDisks, (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of IaasVMRPExtendedInfo from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of IaasVMRPExtendedInfo 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 IaasVMRPExtendedInfo. + */ + public static IaasVMRPExtendedInfo fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + IaasVMRPExtendedInfo deserializedIaasVMRPExtendedInfo = new IaasVMRPExtendedInfo(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("objectType".equals(fieldName)) { + deserializedIaasVMRPExtendedInfo.objectType = reader.getString(); + } else if ("osDisk".equals(fieldName)) { + deserializedIaasVMRPExtendedInfo.osDisk = DiskInformation.fromJson(reader); + } else if ("dataDisks".equals(fieldName)) { + List dataDisks = reader.readArray(reader1 -> DiskInformation.fromJson(reader1)); + deserializedIaasVMRPExtendedInfo.dataDisks = dataDisks; + } else { + reader.skipChildren(); + } + } + + return deserializedIaasVMRPExtendedInfo; + }); + } +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/InstanceProtectionReadiness.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/InstanceProtectionReadiness.java new file mode 100644 index 0000000000000..6b43efa5b74a6 --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/InstanceProtectionReadiness.java @@ -0,0 +1,66 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * The state of instance protection. + */ +public final class InstanceProtectionReadiness extends ExpandableStringEnum { + /** + * Instance protection readiness is unknown. + */ + public static final InstanceProtectionReadiness UNKNOWN = fromString("Unknown"); + + /** + * Instance is ready for protection. + */ + public static final InstanceProtectionReadiness READY = fromString("Ready"); + + /** + * Backup schedule is disabled for this instance. + */ + public static final InstanceProtectionReadiness SCHEDULE_DISABLED = fromString("ScheduleDisabled"); + + /** + * Instance is partially protected. + */ + public static final InstanceProtectionReadiness PARTIAL_PROTECTION = fromString("PartialProtection"); + + /** + * Instance protection encountered an error. + */ + public static final InstanceProtectionReadiness PROTECTION_ERROR = fromString("ProtectionError"); + + /** + * Creates a new instance of InstanceProtectionReadiness value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public InstanceProtectionReadiness() { + } + + /** + * Creates or finds a InstanceProtectionReadiness from its string representation. + * + * @param name a name to look for. + * @return the corresponding InstanceProtectionReadiness. + */ + public static InstanceProtectionReadiness fromString(String name) { + return fromString(name, InstanceProtectionReadiness.class); + } + + /** + * Gets known InstanceProtectionReadiness values. + * + * @return known InstanceProtectionReadiness values. + */ + public static Collection values() { + return values(InstanceProtectionReadiness.class); + } +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectedItem.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectedItem.java index 8f39388752d56..ede13cd20ae4c 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectedItem.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectedItem.java @@ -627,6 +627,8 @@ public static ProtectedItem fromJson(JsonReader jsonReader) throws IOException { return AzureVmWorkloadSapHanaDBInstanceProtectedItem.fromJson(readerToUse.reset()); } else if ("AzureVmWorkloadSQLDatabase".equals(discriminatorValue)) { return AzureVmWorkloadSqlDatabaseProtectedItem.fromJson(readerToUse.reset()); + } else if ("AzureVmWorkloadSQLInstance".equals(discriminatorValue)) { + return AzureVmWorkloadSQLInstanceProtectedItem.fromJson(readerToUse.reset()); } else if ("DPMProtectedItem".equals(discriminatorValue)) { return DpmProtectedItem.fromJson(readerToUse.reset()); } else if ("GenericProtectedItem".equals(discriminatorValue)) { diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionContainerRefreshOperationStatuses.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionContainerRefreshOperationStatuses.java new file mode 100644 index 0000000000000..c4a726489b64c --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionContainerRefreshOperationStatuses.java @@ -0,0 +1,49 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.models; + +import com.azure.core.http.rest.Response; +import com.azure.core.util.Context; + +/** + * Resource collection API of ProtectionContainerRefreshOperationStatuses. + */ +public interface ProtectionContainerRefreshOperationStatuses { + /** + * Fetches the status of the fabric level asynchronous operation identified by the given operation id. The status + * can be in progress, completed or failed. You can refer to the OperationStatus enum for all the possible states of + * an operation. This is the endpoint reported in the Azure-AsyncOperation header of the fabric level operations + * that start one, such as RefreshContainers and GetRPExtendedInfo. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the recovery services vault. + * @param fabricName Fabric name associated with the operation. + * @param operationId OperationID which represents the operation whose status needs to be fetched. + * @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 operation status along with {@link Response}. + */ + Response getWithResponse(String resourceGroupName, String vaultName, String fabricName, + String operationId, Context context); + + /** + * Fetches the status of the fabric level asynchronous operation identified by the given operation id. The status + * can be in progress, completed or failed. You can refer to the OperationStatus enum for all the possible states of + * an operation. This is the endpoint reported in the Azure-AsyncOperation header of the fabric level operations + * that start one, such as RefreshContainers and GetRPExtendedInfo. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the recovery services vault. + * @param fabricName Fabric name associated with the operation. + * @param operationId OperationID which represents the operation whose status needs to be fetched. + * @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 operation status. + */ + OperationStatus get(String resourceGroupName, String vaultName, String fabricName, String operationId); +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionLevel.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionLevel.java new file mode 100644 index 0000000000000..b94aaf3fb459f --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionLevel.java @@ -0,0 +1,51 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Protection type in case protected as part of a parent. + */ +public final class ProtectionLevel extends ExpandableStringEnum { + /** + * Protected at database level. + */ + public static final ProtectionLevel DATABASE = fromString("Database"); + + /** + * Database protected under an instance. + */ + public static final ProtectionLevel DATABASE_UNDER_INSTANCE = fromString("DatabaseUnderInstance"); + + /** + * Creates a new instance of ProtectionLevel value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public ProtectionLevel() { + } + + /** + * Creates or finds a ProtectionLevel from its string representation. + * + * @param name a name to look for. + * @return the corresponding ProtectionLevel. + */ + public static ProtectionLevel fromString(String name) { + return fromString(name, ProtectionLevel.class); + } + + /** + * Gets known ProtectionLevel values. + * + * @return known ProtectionLevel values. + */ + public static Collection values() { + return values(ProtectionLevel.class); + } +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RPExtendedInfo.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RPExtendedInfo.java new file mode 100644 index 0000000000000..4aac2ef5fed4f --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RPExtendedInfo.java @@ -0,0 +1,102 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Base class for additional details of a recovery point. Workload-specific additional details are derived from + * this class. + */ +@Immutable +public class RPExtendedInfo implements JsonSerializable { + /* + * This property will be used as the discriminator for deciding the specific types in the polymorphic chain of + * types. + */ + private String objectType = "RPExtendedInfo"; + + /** + * Creates an instance of RPExtendedInfo class. + */ + protected RPExtendedInfo() { + } + + /** + * Get the objectType property: This property will be used as the discriminator for deciding the specific types in + * the polymorphic chain of types. + * + * @return the objectType value. + */ + public String objectType() { + return this.objectType; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("objectType", this.objectType); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RPExtendedInfo from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RPExtendedInfo 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 RPExtendedInfo. + */ + public static RPExtendedInfo fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + String discriminatorValue = null; + try (JsonReader readerToUse = reader.bufferObject()) { + readerToUse.nextToken(); // Prepare for reading + while (readerToUse.nextToken() != JsonToken.END_OBJECT) { + String fieldName = readerToUse.getFieldName(); + readerToUse.nextToken(); + if ("objectType".equals(fieldName)) { + discriminatorValue = readerToUse.getString(); + break; + } else { + readerToUse.skipChildren(); + } + } + // Use the discriminator value to determine which subtype should be deserialized. + if ("IaasVMRPExtendedInfo".equals(discriminatorValue)) { + return IaasVMRPExtendedInfo.fromJson(readerToUse.reset()); + } else { + return fromJsonKnownDiscriminator(readerToUse.reset()); + } + } + }); + } + + static RPExtendedInfo fromJsonKnownDiscriminator(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RPExtendedInfo deserializedRPExtendedInfo = new RPExtendedInfo(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("objectType".equals(fieldName)) { + deserializedRPExtendedInfo.objectType = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedRPExtendedInfo; + }); + } +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RPExtendedInfoResource.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RPExtendedInfoResource.java new file mode 100644 index 0000000000000..b8d166e5b7104 --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RPExtendedInfoResource.java @@ -0,0 +1,196 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.management.ProxyResource; +import com.azure.core.management.SystemData; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.Map; + +/** + * Additional details of a recovery point, wrapped in a resource envelope. + */ +@Immutable +public final class RPExtendedInfoResource extends ProxyResource { + /* + * Resource location. + */ + private String location; + + /* + * Resource tags. + */ + private Map tags; + + /* + * Optional ETag. + */ + private String eTag; + + /* + * RPExtendedInfoResource properties + */ + private RPExtendedInfo properties; + + /* + * Azure Resource Manager metadata containing createdBy and modifiedBy information. + */ + private SystemData systemData; + + /* + * The type of the resource. + */ + private String type; + + /* + * The name of the resource. + */ + private String name; + + /* + * Fully qualified resource Id for the resource. + */ + private String id; + + /** + * Creates an instance of RPExtendedInfoResource class. + */ + private RPExtendedInfoResource() { + } + + /** + * Get the location property: Resource location. + * + * @return the location value. + */ + public String location() { + return this.location; + } + + /** + * Get the tags property: Resource tags. + * + * @return the tags value. + */ + public Map tags() { + return this.tags; + } + + /** + * Get the eTag property: Optional ETag. + * + * @return the eTag value. + */ + public String eTag() { + return this.eTag; + } + + /** + * Get the properties property: RPExtendedInfoResource properties. + * + * @return the properties value. + */ + public RPExtendedInfo properties() { + return this.properties; + } + + /** + * Get the systemData property: Azure Resource Manager metadata containing createdBy and modifiedBy information. + * + * @return the systemData value. + */ + public SystemData systemData() { + return this.systemData; + } + + /** + * Get the type property: The type of the resource. + * + * @return the type value. + */ + @Override + public String type() { + return this.type; + } + + /** + * Get the name property: The name of the resource. + * + * @return the name value. + */ + @Override + public String name() { + return this.name; + } + + /** + * Get the id property: Fully qualified resource Id for the resource. + * + * @return the id value. + */ + @Override + public String id() { + return this.id; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("location", this.location); + jsonWriter.writeMapField("tags", this.tags, (writer, element) -> writer.writeString(element)); + jsonWriter.writeStringField("eTag", this.eTag); + jsonWriter.writeJsonField("properties", this.properties); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of RPExtendedInfoResource from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of RPExtendedInfoResource 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 RPExtendedInfoResource. + */ + public static RPExtendedInfoResource fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + RPExtendedInfoResource deserializedRPExtendedInfoResource = new RPExtendedInfoResource(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("id".equals(fieldName)) { + deserializedRPExtendedInfoResource.id = reader.getString(); + } else if ("name".equals(fieldName)) { + deserializedRPExtendedInfoResource.name = reader.getString(); + } else if ("type".equals(fieldName)) { + deserializedRPExtendedInfoResource.type = reader.getString(); + } else if ("location".equals(fieldName)) { + deserializedRPExtendedInfoResource.location = reader.getString(); + } else if ("tags".equals(fieldName)) { + Map tags = reader.readMap(reader1 -> reader1.getString()); + deserializedRPExtendedInfoResource.tags = tags; + } else if ("eTag".equals(fieldName)) { + deserializedRPExtendedInfoResource.eTag = reader.getString(); + } else if ("properties".equals(fieldName)) { + deserializedRPExtendedInfoResource.properties = RPExtendedInfo.fromJson(reader); + } else if ("systemData".equals(fieldName)) { + deserializedRPExtendedInfoResource.systemData = SystemData.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedRPExtendedInfoResource; + }); + } +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RPExtendedInfoResourceList.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RPExtendedInfoResourceList.java new file mode 100644 index 0000000000000..dcde74a77ad68 --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RPExtendedInfoResourceList.java @@ -0,0 +1,36 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.models; + +import com.azure.resourcemanager.recoveryservicesbackup.fluent.models.RPExtendedInfoResourceListInner; +import java.util.List; + +/** + * An immutable client-side representation of RPExtendedInfoResourceList. + */ +public interface RPExtendedInfoResourceList { + /** + * Gets the nextLink property: The URI to fetch the next page of resources, with each API call returning up to 200 + * resources per page. Use ListNext() to fetch the next page if the total number of resources exceeds 200. + * + * @return the nextLink value. + */ + String nextLink(); + + /** + * Gets the value property: List of resources. + * + * @return the value value. + */ + List value(); + + /** + * Gets the inner com.azure.resourcemanager.recoveryservicesbackup.fluent.models.RPExtendedInfoResourceListInner + * object. + * + * @return the inner object. + */ + RPExtendedInfoResourceListInner innerModel(); +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPointTierType.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPointTierType.java index 1eace244fafb6..4aefc9ef3a51c 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPointTierType.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPointTierType.java @@ -4,63 +4,63 @@ package com.azure.resourcemanager.recoveryservicesbackup.models; +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + /** * Recovery point tier type. */ -public enum RecoveryPointTierType { +public final class RecoveryPointTierType extends ExpandableStringEnum { /** - * Enum value Invalid. + * Static value Invalid for RecoveryPointTierType. */ - INVALID("Invalid"), + public static final RecoveryPointTierType INVALID = fromString("Invalid"); /** - * Enum value InstantRP. + * Static value InstantRP for RecoveryPointTierType. */ - INSTANT_RP("InstantRP"), + public static final RecoveryPointTierType INSTANT_RP = fromString("InstantRP"); /** - * Enum value HardenedRP. + * Static value HardenedRP for RecoveryPointTierType. */ - HARDENED_RP("HardenedRP"), + public static final RecoveryPointTierType HARDENED_RP = fromString("HardenedRP"); /** - * Enum value ArchivedRP. + * Static value ArchivedRP for RecoveryPointTierType. */ - ARCHIVED_RP("ArchivedRP"); + public static final RecoveryPointTierType ARCHIVED_RP = fromString("ArchivedRP"); /** - * The actual serialized value for a RecoveryPointTierType instance. + * Instant Access snapshot tier, retained for the policy's instantAccessDurationMinutes. */ - private final String value; + public static final RecoveryPointTierType IASNAPSHOT_RP = fromString("IASnapshotRP"); - RecoveryPointTierType(String value) { - this.value = value; + /** + * Creates a new instance of RecoveryPointTierType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public RecoveryPointTierType() { } /** - * Parses a serialized value to a RecoveryPointTierType instance. + * Creates or finds a RecoveryPointTierType from its string representation. * - * @param value the serialized value to parse. - * @return the parsed RecoveryPointTierType object, or null if unable to parse. + * @param name a name to look for. + * @return the corresponding RecoveryPointTierType. */ - public static RecoveryPointTierType fromString(String value) { - if (value == null) { - return null; - } - RecoveryPointTierType[] items = RecoveryPointTierType.values(); - for (RecoveryPointTierType item : items) { - if (item.toString().equalsIgnoreCase(value)) { - return item; - } - } - return null; + public static RecoveryPointTierType fromString(String name) { + return fromString(name, RecoveryPointTierType.class); } /** - * {@inheritDoc} + * Gets known RecoveryPointTierType values. + * + * @return known RecoveryPointTierType values. */ - @Override - public String toString() { - return this.value; + public static Collection values() { + return values(RecoveryPointTierType.class); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPoints.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPoints.java index 374475e6c2aef..ef60f62980255 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPoints.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPoints.java @@ -84,4 +84,76 @@ PagedIterable list(String vaultName, String resourceGroup */ PagedIterable list(String vaultName, String resourceGroupName, String fabricName, String containerName, String protectedItemName, String filter, Context context); + + /** + * Triggers fetching the additional details of a recovery point, which are not returned by the recovery point GET + * API. This is an asynchronous operation. Returns tracking headers which can be tracked using the + * GetRPExtendedInfoOperationResult API. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the recovery services vault. + * @param fabricName Fabric name associated with the backed up items. + * @param parameters Request payload containing the ARM id of the recovery point whose additional details are to be + * fetched. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of the additional details of recovery points. + */ + RPExtendedInfoResourceList getRPExtendedInfo(String resourceGroupName, String vaultName, String fabricName, + GetRPExtendedInfoRequestResource parameters); + + /** + * Triggers fetching the additional details of a recovery point, which are not returned by the recovery point GET + * API. This is an asynchronous operation. Returns tracking headers which can be tracked using the + * GetRPExtendedInfoOperationResult API. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the recovery services vault. + * @param fabricName Fabric name associated with the backed up items. + * @param parameters Request payload containing the ARM id of the recovery point whose additional details are to be + * fetched. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of the additional details of recovery points. + */ + RPExtendedInfoResourceList getRPExtendedInfo(String resourceGroupName, String vaultName, String fabricName, + GetRPExtendedInfoRequestResource parameters, Context context); + + /** + * Returns the additional details of the recovery points fetched by a prior getRPExtendedInfo operation. Returns + * 202 Accepted while the operation is still running. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the recovery services vault. + * @param fabricName Fabric name associated with the backed up items. + * @param operationId OperationID which represents the prior getRPExtendedInfo operation whose result needs to be + * fetched. + * @param context The context to associate with this operation. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of the additional details of recovery points. + */ + Response getRPExtendedInfoOperationResultWithResponse(String resourceGroupName, + String vaultName, String fabricName, String operationId, Context context); + + /** + * Returns the additional details of the recovery points fetched by a prior getRPExtendedInfo operation. Returns + * 202 Accepted while the operation is still running. + * + * @param resourceGroupName The name of the resource group. The name is case insensitive. + * @param vaultName The name of the recovery services vault. + * @param fabricName Fabric name associated with the backed up items. + * @param operationId OperationID which represents the prior getRPExtendedInfo operation whose result needs to be + * fetched. + * @throws IllegalArgumentException thrown if parameters fail the validation. + * @throws com.azure.core.management.exception.ManagementException thrown if the request is rejected by server. + * @throws RuntimeException all other wrapped checked exceptions if the request fails to be sent. + * @return list of the additional details of recovery points. + */ + RPExtendedInfoResourceList getRPExtendedInfoOperationResult(String resourceGroupName, String vaultName, + String fabricName, String operationId); } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPointsGetRPExtendedInfoOperationResultHeaders.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPointsGetRPExtendedInfoOperationResultHeaders.java new file mode 100644 index 0000000000000..c369e854f5877 --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPointsGetRPExtendedInfoOperationResultHeaders.java @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.models; + +import com.azure.core.annotation.Immutable; +import com.azure.core.http.HttpHeaderName; +import com.azure.core.http.HttpHeaders; + +/** + * The RecoveryPointsGetRPExtendedInfoOperationResultHeaders model. + */ +@Immutable +public final class RecoveryPointsGetRPExtendedInfoOperationResultHeaders { + /* + * The Location property. + */ + private final String location; + + /* + * The Retry-After property. + */ + private final Integer retryAfter; + + /* + * The Azure-AsyncOperation property. + */ + private final String azureAsyncOperation; + + // HttpHeaders containing the raw property values. + /** + * Creates an instance of RecoveryPointsGetRPExtendedInfoOperationResultHeaders class. + * + * @param rawHeaders The raw HttpHeaders that will be used to create the property values. + */ + public RecoveryPointsGetRPExtendedInfoOperationResultHeaders(HttpHeaders rawHeaders) { + this.location = rawHeaders.getValue(HttpHeaderName.LOCATION); + String retryAfter = rawHeaders.getValue(HttpHeaderName.RETRY_AFTER); + if (retryAfter != null) { + this.retryAfter = Integer.parseInt(retryAfter); + } else { + this.retryAfter = null; + } + this.azureAsyncOperation = rawHeaders.getValue(HttpHeaderName.AZURE_ASYNCOPERATION); + } + + /** + * Get the location property: The Location property. + * + * @return the location value. + */ + public String location() { + return this.location; + } + + /** + * Get the retryAfter property: The Retry-After property. + * + * @return the retryAfter value. + */ + public Integer retryAfter() { + return this.retryAfter; + } + + /** + * Get the azureAsyncOperation property: The Azure-AsyncOperation property. + * + * @return the azureAsyncOperation value. + */ + public String azureAsyncOperation() { + return this.azureAsyncOperation; + } +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPointsGetRPExtendedInfoOperationResultResponse.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPointsGetRPExtendedInfoOperationResultResponse.java new file mode 100644 index 0000000000000..5cae5a75526f4 --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPointsGetRPExtendedInfoOperationResultResponse.java @@ -0,0 +1,41 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.models; + +import com.azure.core.http.HttpHeaders; +import com.azure.core.http.HttpRequest; +import com.azure.core.http.rest.ResponseBase; +import com.azure.resourcemanager.recoveryservicesbackup.fluent.models.RPExtendedInfoResourceListInner; + +/** + * Contains all response data for the getRPExtendedInfoOperationResult operation. + */ +public final class RecoveryPointsGetRPExtendedInfoOperationResultResponse + extends ResponseBase { + /** + * Creates an instance of RecoveryPointsGetRPExtendedInfoOperationResultResponse. + * + * @param request the request which resulted in this RecoveryPointsGetRPExtendedInfoOperationResultResponse. + * @param statusCode the status code of the HTTP response. + * @param rawHeaders the raw headers of the HTTP response. + * @param value the deserialized value of the HTTP response. + * @param headers the deserialized headers of the HTTP response. + */ + public RecoveryPointsGetRPExtendedInfoOperationResultResponse(HttpRequest request, int statusCode, + HttpHeaders rawHeaders, RPExtendedInfoResourceListInner value, + RecoveryPointsGetRPExtendedInfoOperationResultHeaders headers) { + super(request, statusCode, rawHeaders, value, headers); + } + + /** + * Gets the deserialized response body. + * + * @return the deserialized response body. + */ + @Override + public RPExtendedInfoResourceListInner getValue() { + return super.getValue(); + } +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SnapshotRecoveryPointInfo.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SnapshotRecoveryPointInfo.java new file mode 100644 index 0000000000000..704051ab0d611 --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SnapshotRecoveryPointInfo.java @@ -0,0 +1,95 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * Extended info class details for workload snapshot. + */ +@Immutable +public final class SnapshotRecoveryPointInfo implements JsonSerializable { + /* + * Resource Group of snapshot restore point. + */ + private String snapshotResourceGroup; + + /* + * Per volume filesystem metadata captured on the VM. + */ + private List sourceFilesystemInfo; + + /** + * Creates an instance of SnapshotRecoveryPointInfo class. + */ + private SnapshotRecoveryPointInfo() { + } + + /** + * Get the snapshotResourceGroup property: Resource Group of snapshot restore point. + * + * @return the snapshotResourceGroup value. + */ + public String snapshotResourceGroup() { + return this.snapshotResourceGroup; + } + + /** + * Get the sourceFilesystemInfo property: Per volume filesystem metadata captured on the VM. + * + * @return the sourceFilesystemInfo value. + */ + public List sourceFilesystemInfo() { + return this.sourceFilesystemInfo; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("snapshotResourceGroup", this.snapshotResourceGroup); + jsonWriter.writeArrayField("sourceFilesystemInfo", this.sourceFilesystemInfo, + (writer, element) -> writer.writeJson(element)); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of SnapshotRecoveryPointInfo from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of SnapshotRecoveryPointInfo 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 SnapshotRecoveryPointInfo. + */ + public static SnapshotRecoveryPointInfo fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + SnapshotRecoveryPointInfo deserializedSnapshotRecoveryPointInfo = new SnapshotRecoveryPointInfo(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("snapshotResourceGroup".equals(fieldName)) { + deserializedSnapshotRecoveryPointInfo.snapshotResourceGroup = reader.getString(); + } else if ("sourceFilesystemInfo".equals(fieldName)) { + List sourceFilesystemInfo + = reader.readArray(reader1 -> FilesystemInfo.fromJson(reader1)); + deserializedSnapshotRecoveryPointInfo.sourceFilesystemInfo = sourceFilesystemInfo; + } else { + reader.skipChildren(); + } + } + + return deserializedSnapshotRecoveryPointInfo; + }); + } +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SnapshotRestoreParameters.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SnapshotRestoreParameters.java index 59bf2f4a060ff..46665df2862a1 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SnapshotRestoreParameters.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SnapshotRestoreParameters.java @@ -10,6 +10,7 @@ import com.azure.json.JsonToken; import com.azure.json.JsonWriter; import java.io.IOException; +import java.util.List; /** * Encapsulates information regarding snapshot recovery for SAP Hana. @@ -26,6 +27,11 @@ public final class SnapshotRestoreParameters implements JsonSerializable disksToDetachOnClash; + /** * Creates an instance of SnapshotRestoreParameters class. */ @@ -72,6 +78,28 @@ public SnapshotRestoreParameters withLogPointInTimeForDBRecovery(String logPoint return this; } + /** + * Get the disksToDetachOnClash property: List of disk ARM IDs the customer should detach in case of filesystem + * clash. + * + * @return the disksToDetachOnClash value. + */ + public List disksToDetachOnClash() { + return this.disksToDetachOnClash; + } + + /** + * Set the disksToDetachOnClash property: List of disk ARM IDs the customer should detach in case of filesystem + * clash. + * + * @param disksToDetachOnClash the disksToDetachOnClash value to set. + * @return the SnapshotRestoreParameters object itself. + */ + public SnapshotRestoreParameters withDisksToDetachOnClash(List disksToDetachOnClash) { + this.disksToDetachOnClash = disksToDetachOnClash; + return this; + } + /** * {@inheritDoc} */ @@ -80,6 +108,8 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeStartObject(); jsonWriter.writeBooleanField("skipAttachAndMount", this.skipAttachAndMount); jsonWriter.writeStringField("logPointInTimeForDBRecovery", this.logPointInTimeForDBRecovery); + jsonWriter.writeArrayField("disksToDetachOnClash", this.disksToDetachOnClash, + (writer, element) -> writer.writeString(element)); return jsonWriter.writeEndObject(); } @@ -103,6 +133,9 @@ public static SnapshotRestoreParameters fromJson(JsonReader jsonReader) throws I = reader.getNullable(JsonReader::getBoolean); } else if ("logPointInTimeForDBRecovery".equals(fieldName)) { deserializedSnapshotRestoreParameters.logPointInTimeForDBRecovery = reader.getString(); + } else if ("disksToDetachOnClash".equals(fieldName)) { + List disksToDetachOnClash = reader.readArray(reader1 -> reader1.getString()); + deserializedSnapshotRestoreParameters.disksToDetachOnClash = disksToDetachOnClash; } else { reader.skipChildren(); } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/StorageSpaceInfo.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/StorageSpaceInfo.java new file mode 100644 index 0000000000000..1e1850147d56a --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/StorageSpaceInfo.java @@ -0,0 +1,125 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Identifiers for a Windows Storage Spaces pool and its virtual disk. + */ +@Immutable +public final class StorageSpaceInfo implements JsonSerializable { + /* + * Unique ID of the storage pool. + */ + private String storagePoolUniqueId; + + /* + * Friendly name of the storage pool. + */ + private String storagePoolFriendlyName; + + /* + * Unique ID of the virtual disk. + */ + private String virtualDiskUniqueId; + + /* + * Friendly name of the virtual disk. + */ + private String virtualDiskFriendlyName; + + /** + * Creates an instance of StorageSpaceInfo class. + */ + private StorageSpaceInfo() { + } + + /** + * Get the storagePoolUniqueId property: Unique ID of the storage pool. + * + * @return the storagePoolUniqueId value. + */ + public String storagePoolUniqueId() { + return this.storagePoolUniqueId; + } + + /** + * Get the storagePoolFriendlyName property: Friendly name of the storage pool. + * + * @return the storagePoolFriendlyName value. + */ + public String storagePoolFriendlyName() { + return this.storagePoolFriendlyName; + } + + /** + * Get the virtualDiskUniqueId property: Unique ID of the virtual disk. + * + * @return the virtualDiskUniqueId value. + */ + public String virtualDiskUniqueId() { + return this.virtualDiskUniqueId; + } + + /** + * Get the virtualDiskFriendlyName property: Friendly name of the virtual disk. + * + * @return the virtualDiskFriendlyName value. + */ + public String virtualDiskFriendlyName() { + return this.virtualDiskFriendlyName; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("storagePoolUniqueId", this.storagePoolUniqueId); + jsonWriter.writeStringField("storagePoolFriendlyName", this.storagePoolFriendlyName); + jsonWriter.writeStringField("virtualDiskUniqueId", this.virtualDiskUniqueId); + jsonWriter.writeStringField("virtualDiskFriendlyName", this.virtualDiskFriendlyName); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of StorageSpaceInfo from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of StorageSpaceInfo 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 StorageSpaceInfo. + */ + public static StorageSpaceInfo fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + StorageSpaceInfo deserializedStorageSpaceInfo = new StorageSpaceInfo(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("storagePoolUniqueId".equals(fieldName)) { + deserializedStorageSpaceInfo.storagePoolUniqueId = reader.getString(); + } else if ("storagePoolFriendlyName".equals(fieldName)) { + deserializedStorageSpaceInfo.storagePoolFriendlyName = reader.getString(); + } else if ("virtualDiskUniqueId".equals(fieldName)) { + deserializedStorageSpaceInfo.virtualDiskUniqueId = reader.getString(); + } else if ("virtualDiskFriendlyName".equals(fieldName)) { + deserializedStorageSpaceInfo.virtualDiskFriendlyName = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedStorageSpaceInfo; + }); + } +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/VMWorkloadPolicyType.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/VMWorkloadPolicyType.java new file mode 100644 index 0000000000000..4e9ecbc30c662 --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/VMWorkloadPolicyType.java @@ -0,0 +1,61 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.models; + +import com.azure.core.util.ExpandableStringEnum; +import java.util.Collection; + +/** + * Type of the protection policy. + */ +public final class VMWorkloadPolicyType extends ExpandableStringEnum { + /** + * Invalid policy type. + */ + public static final VMWorkloadPolicyType INVALID = fromString("Invalid"); + + /** + * Snapshot V1 policy type. + */ + public static final VMWorkloadPolicyType SNAPSHOT_V1 = fromString("SnapshotV1"); + + /** + * Snapshot V2 policy type. + */ + public static final VMWorkloadPolicyType SNAPSHOT_V2 = fromString("SnapshotV2"); + + /** + * Streaming policy type. + */ + public static final VMWorkloadPolicyType STREAMING = fromString("Streaming"); + + /** + * Creates a new instance of VMWorkloadPolicyType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public VMWorkloadPolicyType() { + } + + /** + * Creates or finds a VMWorkloadPolicyType from its string representation. + * + * @param name a name to look for. + * @return the corresponding VMWorkloadPolicyType. + */ + public static VMWorkloadPolicyType fromString(String name) { + return fromString(name, VMWorkloadPolicyType.class); + } + + /** + * Gets known VMWorkloadPolicyType values. + * + * @return known VMWorkloadPolicyType values. + */ + public static Collection values() { + return values(VMWorkloadPolicyType.class); + } +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ValidateAzureWorkloadRestoreOperationRequest.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ValidateAzureWorkloadRestoreOperationRequest.java new file mode 100644 index 0000000000000..d5692b5cce808 --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ValidateAzureWorkloadRestoreOperationRequest.java @@ -0,0 +1,108 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.models; + +import com.azure.core.annotation.Fluent; +import com.azure.json.JsonReader; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * Restore validation request for Azure Workload backups. + * This subtype provides the distinct objectType discriminator used for Azure Workload (SQL/HANA/SAP ASE/AnyDatabase) + * restore validation. + */ +@Fluent +public final class ValidateAzureWorkloadRestoreOperationRequest extends ValidateOperationRequest { + /* + * This property will be used as the discriminator for deciding the specific types in the polymorphic chain of + * types. + */ + private String objectType = "ValidateAzureWorkloadRestoreOperationRequest"; + + /* + * Sets restore request to be validated + */ + private RestoreRequest restoreRequest; + + /** + * Creates an instance of ValidateAzureWorkloadRestoreOperationRequest class. + */ + public ValidateAzureWorkloadRestoreOperationRequest() { + } + + /** + * Get the objectType property: This property will be used as the discriminator for deciding the specific types in + * the polymorphic chain of types. + * + * @return the objectType value. + */ + @Override + public String objectType() { + return this.objectType; + } + + /** + * Get the restoreRequest property: Sets restore request to be validated. + * + * @return the restoreRequest value. + */ + public RestoreRequest restoreRequest() { + return this.restoreRequest; + } + + /** + * Set the restoreRequest property: Sets restore request to be validated. + * + * @param restoreRequest the restoreRequest value to set. + * @return the ValidateAzureWorkloadRestoreOperationRequest object itself. + */ + public ValidateAzureWorkloadRestoreOperationRequest withRestoreRequest(RestoreRequest restoreRequest) { + this.restoreRequest = restoreRequest; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("objectType", this.objectType); + jsonWriter.writeJsonField("restoreRequest", this.restoreRequest); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ValidateAzureWorkloadRestoreOperationRequest from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ValidateAzureWorkloadRestoreOperationRequest 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 ValidateAzureWorkloadRestoreOperationRequest. + */ + public static ValidateAzureWorkloadRestoreOperationRequest fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ValidateAzureWorkloadRestoreOperationRequest deserializedValidateAzureWorkloadRestoreOperationRequest + = new ValidateAzureWorkloadRestoreOperationRequest(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("objectType".equals(fieldName)) { + deserializedValidateAzureWorkloadRestoreOperationRequest.objectType = reader.getString(); + } else if ("restoreRequest".equals(fieldName)) { + deserializedValidateAzureWorkloadRestoreOperationRequest.restoreRequest + = RestoreRequest.fromJson(reader); + } else { + reader.skipChildren(); + } + } + + return deserializedValidateAzureWorkloadRestoreOperationRequest; + }); + } +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ValidateOperationRequest.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ValidateOperationRequest.java index aa6f8b3a50f3d..fed4de251cfff 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ValidateOperationRequest.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ValidateOperationRequest.java @@ -76,6 +76,8 @@ public static ValidateOperationRequest fromJson(JsonReader jsonReader) throws IO return ValidateRestoreOperationRequest.fromJsonKnownDiscriminator(readerToUse.reset()); } else if ("ValidateIaasVMRestoreOperationRequest".equals(discriminatorValue)) { return ValidateIaasVMRestoreOperationRequest.fromJson(readerToUse.reset()); + } else if ("ValidateAzureWorkloadRestoreOperationRequest".equals(discriminatorValue)) { + return ValidateAzureWorkloadRestoreOperationRequest.fromJson(readerToUse.reset()); } else { return fromJsonKnownDiscriminator(readerToUse.reset()); } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/WorkloadType.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/WorkloadType.java index 1fa03c09c9a4c..d0b7b3eb3f0e8 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/WorkloadType.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/WorkloadType.java @@ -91,6 +91,11 @@ public final class WorkloadType extends ExpandableStringEnum { */ public static final WorkloadType SAPHANA_DBINSTANCE = fromString("SAPHanaDBInstance"); + /** + * A SQL Server instance. + */ + public static final WorkloadType SQLINSTANCE = fromString("SQLInstance"); + /** * Creates a new instance of WorkloadType value. * diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/resources/META-INF/azure-resourcemanager-recoveryservicesbackup_metadata.json b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/resources/META-INF/azure-resourcemanager-recoveryservicesbackup_metadata.json index 7e8f40290a1a9..54839d193917c 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/resources/META-INF/azure-resourcemanager-recoveryservicesbackup_metadata.json +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/resources/META-INF/azure-resourcemanager-recoveryservicesbackup_metadata.json @@ -1 +1 @@ -{"flavor":"azure","apiVersions":{"Microsoft.RecoveryServices":"2026-08-01"},"crossLanguagePackageId":"Microsoft.RecoveryServices","crossLanguageVersion":"7b9b01a551c8","crossLanguageDefinitions":{"com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupEnginesClient":"Microsoft.RecoveryServices.BackupEngines","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupEnginesClient.get":"Microsoft.RecoveryServices.BackupEngines.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupEnginesClient.getWithResponse":"Microsoft.RecoveryServices.BackupEngines.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupEnginesClient.list":"Microsoft.RecoveryServices.BackupEngines.list","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupJobsClient":"Microsoft.RecoveryServices.BackupJobs","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupJobsClient.list":"Microsoft.RecoveryServices.BackupJobs.list","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupOperationResultsClient":"Microsoft.RecoveryServices.BackupOperationResults","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupOperationResultsClient.get":"Microsoft.RecoveryServices.BackupOperationResults.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupOperationResultsClient.getWithResponse":"Microsoft.RecoveryServices.BackupOperationResults.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupOperationStatusesClient":"Microsoft.RecoveryServices.BackupOperationStatuses","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupOperationStatusesClient.get":"Microsoft.RecoveryServices.BackupOperationStatuses.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupOperationStatusesClient.getWithResponse":"Microsoft.RecoveryServices.BackupOperationStatuses.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupPoliciesClient":"Microsoft.RecoveryServices.BackupPolicies","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupPoliciesClient.list":"Microsoft.RecoveryServices.BackupPolicies.list","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupProtectableItemsClient":"Microsoft.RecoveryServices.BackupProtectableItems","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupProtectableItemsClient.list":"Microsoft.RecoveryServices.BackupProtectableItems.list","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupProtectedItemsClient":"Microsoft.RecoveryServices.BackupProtectedItems","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupProtectedItemsClient.list":"Microsoft.RecoveryServices.BackupProtectedItems.list","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupProtectionContainersClient":"Microsoft.RecoveryServices.BackupProtectionContainers","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupProtectionContainersClient.list":"Microsoft.RecoveryServices.BackupProtectionContainers.list","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupProtectionIntentsClient":"Microsoft.RecoveryServices.BackupProtectionIntent","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupProtectionIntentsClient.list":"Microsoft.RecoveryServices.BackupProtectionIntent.list","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupResourceEncryptionConfigsClient":"Microsoft.RecoveryServices.BackupResourceEncryptionConfigs","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupResourceEncryptionConfigsClient.get":"Microsoft.RecoveryServices.BackupResourceEncryptionConfigs.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupResourceEncryptionConfigsClient.getWithResponse":"Microsoft.RecoveryServices.BackupResourceEncryptionConfigs.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupResourceEncryptionConfigsClient.update":"Microsoft.RecoveryServices.BackupResourceEncryptionConfigs.update","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupResourceEncryptionConfigsClient.updateWithResponse":"Microsoft.RecoveryServices.BackupResourceEncryptionConfigs.update","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupResourceStorageConfigsNonCrrsClient":"Microsoft.RecoveryServices.BackupResourceStorageConfigsNonCRR","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupResourceStorageConfigsNonCrrsClient.get":"Microsoft.RecoveryServices.BackupResourceStorageConfigsNonCRR.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupResourceStorageConfigsNonCrrsClient.getWithResponse":"Microsoft.RecoveryServices.BackupResourceStorageConfigsNonCRR.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupResourceStorageConfigsNonCrrsClient.patch":"Microsoft.RecoveryServices.BackupResourceStorageConfigsNonCRR.patch","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupResourceStorageConfigsNonCrrsClient.patchWithResponse":"Microsoft.RecoveryServices.BackupResourceStorageConfigsNonCRR.patch","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupResourceStorageConfigsNonCrrsClient.update":"Microsoft.RecoveryServices.BackupResourceStorageConfigsNonCRR.update","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupResourceStorageConfigsNonCrrsClient.updateWithResponse":"Microsoft.RecoveryServices.BackupResourceStorageConfigsNonCRR.update","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupResourceVaultConfigsClient":"Microsoft.RecoveryServices.BackupResourceVaultConfigs","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupResourceVaultConfigsClient.get":"Microsoft.RecoveryServices.BackupResourceVaultConfigs.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupResourceVaultConfigsClient.getWithResponse":"Microsoft.RecoveryServices.BackupResourceVaultConfigs.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupResourceVaultConfigsClient.put":"Microsoft.RecoveryServices.BackupResourceVaultConfigs.put","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupResourceVaultConfigsClient.putWithResponse":"Microsoft.RecoveryServices.BackupResourceVaultConfigs.put","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupResourceVaultConfigsClient.update":"Microsoft.RecoveryServices.BackupResourceVaultConfigs.update","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupResourceVaultConfigsClient.updateWithResponse":"Microsoft.RecoveryServices.BackupResourceVaultConfigs.update","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupStatusClient":"Microsoft.RecoveryServices.BackupStatus","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupStatusClient.get":"Microsoft.RecoveryServices.BackupStatus.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupStatusClient.getWithResponse":"Microsoft.RecoveryServices.BackupStatus.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupUsageSummariesClient":"Microsoft.RecoveryServices.BackupUsageSummaries","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupUsageSummariesClient.list":"Microsoft.RecoveryServices.BackupUsageSummaries.list","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupWorkloadItemsClient":"Microsoft.RecoveryServices.BackupWorkloadItems","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupWorkloadItemsClient.list":"Microsoft.RecoveryServices.BackupWorkloadItems.list","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupsClient":"Microsoft.RecoveryServices.Backups","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupsClient.trigger":"Microsoft.RecoveryServices.Backups.trigger","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupsClient.triggerWithResponse":"Microsoft.RecoveryServices.Backups.trigger","com.azure.resourcemanager.recoveryservicesbackup.fluent.BmsPrepareDataMoveOperationResultsClient":"Microsoft.RecoveryServices.BMSPrepareDataMoveOperationResult","com.azure.resourcemanager.recoveryservicesbackup.fluent.BmsPrepareDataMoveOperationResultsClient.get":"Microsoft.RecoveryServices.BMSPrepareDataMoveOperationResult.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.BmsPrepareDataMoveOperationResultsClient.getWithResponse":"Microsoft.RecoveryServices.BMSPrepareDataMoveOperationResult.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ConfigureSourceScansClient":"Microsoft.RecoveryServices.ConfigureSourceScan","com.azure.resourcemanager.recoveryservicesbackup.fluent.ConfigureSourceScansClient.beginExecute":"Microsoft.RecoveryServices.ConfigureSourceScan.execute","com.azure.resourcemanager.recoveryservicesbackup.fluent.ConfigureSourceScansClient.execute":"Microsoft.RecoveryServices.ConfigureSourceScan.execute","com.azure.resourcemanager.recoveryservicesbackup.fluent.DeletedProtectionContainersClient":"Microsoft.RecoveryServices.DeletedProtectionContainers","com.azure.resourcemanager.recoveryservicesbackup.fluent.DeletedProtectionContainersClient.list":"Microsoft.RecoveryServices.DeletedProtectionContainers.list","com.azure.resourcemanager.recoveryservicesbackup.fluent.ExportJobsOperationResultsClient":"Microsoft.RecoveryServices.ExportJobsOperationResults","com.azure.resourcemanager.recoveryservicesbackup.fluent.ExportJobsOperationResultsClient.get":"Microsoft.RecoveryServices.ExportJobsOperationResults.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ExportJobsOperationResultsClient.getWithResponse":"Microsoft.RecoveryServices.ExportJobsOperationResults.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.FeatureSupportsClient":"Microsoft.RecoveryServices.FeatureSupport","com.azure.resourcemanager.recoveryservicesbackup.fluent.FeatureSupportsClient.validate":"Microsoft.RecoveryServices.FeatureSupport.validate","com.azure.resourcemanager.recoveryservicesbackup.fluent.FeatureSupportsClient.validateWithResponse":"Microsoft.RecoveryServices.FeatureSupport.validate","com.azure.resourcemanager.recoveryservicesbackup.fluent.FetchTieringCostsClient":"Microsoft.RecoveryServices.FetchTieringCost","com.azure.resourcemanager.recoveryservicesbackup.fluent.FetchTieringCostsClient.beginPost":"Microsoft.RecoveryServices.FetchTieringCost.post","com.azure.resourcemanager.recoveryservicesbackup.fluent.FetchTieringCostsClient.post":"Microsoft.RecoveryServices.FetchTieringCost.post","com.azure.resourcemanager.recoveryservicesbackup.fluent.GetTieringCostOperationResultsClient":"Microsoft.RecoveryServices.GetTieringCostOperationResult","com.azure.resourcemanager.recoveryservicesbackup.fluent.GetTieringCostOperationResultsClient.get":"Microsoft.RecoveryServices.GetTieringCostOperationResult.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.GetTieringCostOperationResultsClient.getWithResponse":"Microsoft.RecoveryServices.GetTieringCostOperationResult.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ItemLevelRecoveryConnectionsClient":"Microsoft.RecoveryServices.ItemLevelRecoveryConnections","com.azure.resourcemanager.recoveryservicesbackup.fluent.ItemLevelRecoveryConnectionsClient.listInstantItemRecoveryOperationResult":"Microsoft.RecoveryServices.ItemLevelRecoveryConnections.listInstantItemRecoveryOperationResult","com.azure.resourcemanager.recoveryservicesbackup.fluent.ItemLevelRecoveryConnectionsClient.listInstantItemRecoveryOperationResultWithResponse":"Microsoft.RecoveryServices.ItemLevelRecoveryConnections.listInstantItemRecoveryOperationResult","com.azure.resourcemanager.recoveryservicesbackup.fluent.ItemLevelRecoveryConnectionsClient.provision":"Microsoft.RecoveryServices.ItemLevelRecoveryConnections.provision","com.azure.resourcemanager.recoveryservicesbackup.fluent.ItemLevelRecoveryConnectionsClient.provisionWithResponse":"Microsoft.RecoveryServices.ItemLevelRecoveryConnections.provision","com.azure.resourcemanager.recoveryservicesbackup.fluent.ItemLevelRecoveryConnectionsClient.revoke":"Microsoft.RecoveryServices.ItemLevelRecoveryConnections.revoke","com.azure.resourcemanager.recoveryservicesbackup.fluent.ItemLevelRecoveryConnectionsClient.revokeWithResponse":"Microsoft.RecoveryServices.ItemLevelRecoveryConnections.revoke","com.azure.resourcemanager.recoveryservicesbackup.fluent.JobCancellationsClient":"Microsoft.RecoveryServices.JobCancellations","com.azure.resourcemanager.recoveryservicesbackup.fluent.JobCancellationsClient.trigger":"Microsoft.RecoveryServices.JobCancellations.trigger","com.azure.resourcemanager.recoveryservicesbackup.fluent.JobCancellationsClient.triggerWithResponse":"Microsoft.RecoveryServices.JobCancellations.trigger","com.azure.resourcemanager.recoveryservicesbackup.fluent.JobDetailsClient":"Microsoft.RecoveryServices.JobDetails","com.azure.resourcemanager.recoveryservicesbackup.fluent.JobDetailsClient.get":"Microsoft.RecoveryServices.JobDetails.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.JobDetailsClient.getWithResponse":"Microsoft.RecoveryServices.JobDetails.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.JobOperationResultsClient":"Microsoft.RecoveryServices.JobOperationResults","com.azure.resourcemanager.recoveryservicesbackup.fluent.JobOperationResultsClient.get":"Microsoft.RecoveryServices.JobOperationResults.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.JobOperationResultsClient.getWithResponse":"Microsoft.RecoveryServices.JobOperationResults.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.JobsClient":"Microsoft.RecoveryServices.Jobs","com.azure.resourcemanager.recoveryservicesbackup.fluent.JobsClient.export":"Microsoft.RecoveryServices.Jobs.export","com.azure.resourcemanager.recoveryservicesbackup.fluent.JobsClient.exportWithResponse":"Microsoft.RecoveryServices.Jobs.export","com.azure.resourcemanager.recoveryservicesbackup.fluent.OperationOperationsClient":"Microsoft.RecoveryServices","com.azure.resourcemanager.recoveryservicesbackup.fluent.OperationOperationsClient.validate":"Microsoft.RecoveryServices.OperationOperationGroup.validate","com.azure.resourcemanager.recoveryservicesbackup.fluent.OperationOperationsClient.validateWithResponse":"Microsoft.RecoveryServices.OperationOperationGroup.validate","com.azure.resourcemanager.recoveryservicesbackup.fluent.OperationsClient":"Microsoft.RecoveryServices.Operations","com.azure.resourcemanager.recoveryservicesbackup.fluent.OperationsClient.list":"Azure.ResourceManager.Legacy.Operations.list","com.azure.resourcemanager.recoveryservicesbackup.fluent.PrivateEndpointConnectionsClient":"Microsoft.RecoveryServices","com.azure.resourcemanager.recoveryservicesbackup.fluent.PrivateEndpointConnectionsClient.beginDelete":"Microsoft.RecoveryServices.PrivateEndpointConnectionResources.delete","com.azure.resourcemanager.recoveryservicesbackup.fluent.PrivateEndpointConnectionsClient.beginPut":"Microsoft.RecoveryServices.PrivateEndpointConnectionResources.put","com.azure.resourcemanager.recoveryservicesbackup.fluent.PrivateEndpointConnectionsClient.delete":"Microsoft.RecoveryServices.PrivateEndpointConnectionResources.delete","com.azure.resourcemanager.recoveryservicesbackup.fluent.PrivateEndpointConnectionsClient.get":"Microsoft.RecoveryServices.PrivateEndpointConnectionResources.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.PrivateEndpointConnectionsClient.getWithResponse":"Microsoft.RecoveryServices.PrivateEndpointConnectionResources.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.PrivateEndpointConnectionsClient.put":"Microsoft.RecoveryServices.PrivateEndpointConnectionResources.put","com.azure.resourcemanager.recoveryservicesbackup.fluent.PrivateEndpointsClient":"Microsoft.RecoveryServices","com.azure.resourcemanager.recoveryservicesbackup.fluent.PrivateEndpointsClient.getOperationStatus":"Microsoft.RecoveryServices.PrivateEndpointOperationStatuses.getOperationStatus","com.azure.resourcemanager.recoveryservicesbackup.fluent.PrivateEndpointsClient.getOperationStatusWithResponse":"Microsoft.RecoveryServices.PrivateEndpointOperationStatuses.getOperationStatus","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectableContainersClient":"Microsoft.RecoveryServices.ProtectableContainers","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectableContainersClient.list":"Microsoft.RecoveryServices.ProtectableContainers.list","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectedItemOperationResultsClient":"Microsoft.RecoveryServices.ProtectedItemOperationResults","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectedItemOperationResultsClient.get":"Microsoft.RecoveryServices.ProtectedItemOperationResults.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectedItemOperationResultsClient.getWithResponse":"Microsoft.RecoveryServices.ProtectedItemOperationResults.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectedItemOperationStatusesClient":"Microsoft.RecoveryServices.ProtectedItemOperationStatuses","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectedItemOperationStatusesClient.get":"Microsoft.RecoveryServices.ProtectedItemOperationStatuses.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectedItemOperationStatusesClient.getWithResponse":"Microsoft.RecoveryServices.ProtectedItemOperationStatuses.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectedItemsClient":"Microsoft.RecoveryServices.ProtectedItems","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectedItemsClient.beginCreateOrUpdate":"Microsoft.RecoveryServices.ProtectedItems.createOrUpdate","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectedItemsClient.createOrUpdate":"Microsoft.RecoveryServices.ProtectedItems.createOrUpdate","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectedItemsClient.delete":"Microsoft.RecoveryServices.ProtectedItems.delete","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectedItemsClient.deleteWithResponse":"Microsoft.RecoveryServices.ProtectedItems.delete","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectedItemsClient.get":"Microsoft.RecoveryServices.ProtectedItems.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectedItemsClient.getWithResponse":"Microsoft.RecoveryServices.ProtectedItems.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainerOperationResultsClient":"Microsoft.RecoveryServices.ProtectionContainerOperationResults","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainerOperationResultsClient.get":"Microsoft.RecoveryServices.ProtectionContainerOperationResults.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainerOperationResultsClient.getWithResponse":"Microsoft.RecoveryServices.ProtectionContainerOperationResults.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainerRefreshOperationResultsClient":"Microsoft.RecoveryServices.ProtectionContainerRefreshOperationResults","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainerRefreshOperationResultsClient.get":"Microsoft.RecoveryServices.ProtectionContainerRefreshOperationResults.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainerRefreshOperationResultsClient.getWithResponse":"Microsoft.RecoveryServices.ProtectionContainerRefreshOperationResults.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainersClient":"Microsoft.RecoveryServices.ProtectionContainers","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainersClient.beginRegister":"Microsoft.RecoveryServices.ProtectionContainers.register","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainersClient.get":"Microsoft.RecoveryServices.ProtectionContainers.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainersClient.getWithResponse":"Microsoft.RecoveryServices.ProtectionContainers.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainersClient.inquire":"Microsoft.RecoveryServices.ProtectionContainers.inquire","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainersClient.inquireWithResponse":"Microsoft.RecoveryServices.ProtectionContainers.inquire","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainersClient.refresh":"Microsoft.RecoveryServices.ProtectionContainersOperationGroup.refresh","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainersClient.refreshWithResponse":"Microsoft.RecoveryServices.ProtectionContainersOperationGroup.refresh","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainersClient.register":"Microsoft.RecoveryServices.ProtectionContainers.register","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainersClient.unregister":"Microsoft.RecoveryServices.ProtectionContainers.unregister","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainersClient.unregisterWithResponse":"Microsoft.RecoveryServices.ProtectionContainers.unregister","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionIntentsClient":"Microsoft.RecoveryServices","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionIntentsClient.createOrUpdate":"Microsoft.RecoveryServices.ProtectionIntentResources.createOrUpdate","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionIntentsClient.createOrUpdateWithResponse":"Microsoft.RecoveryServices.ProtectionIntentResources.createOrUpdate","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionIntentsClient.delete":"Microsoft.RecoveryServices.ProtectionIntentResources.delete","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionIntentsClient.deleteWithResponse":"Microsoft.RecoveryServices.ProtectionIntentResources.delete","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionIntentsClient.get":"Microsoft.RecoveryServices.ProtectionIntentResources.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionIntentsClient.getWithResponse":"Microsoft.RecoveryServices.ProtectionIntentResources.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionIntentsClient.validate":"Microsoft.RecoveryServices.ProtectionIntentOperationGroup.validate","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionIntentsClient.validateWithResponse":"Microsoft.RecoveryServices.ProtectionIntentOperationGroup.validate","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionPoliciesClient":"Microsoft.RecoveryServices.ProtectionPolicies","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionPoliciesClient.beginDelete":"Microsoft.RecoveryServices.ProtectionPolicies.delete","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionPoliciesClient.createOrUpdate":"Microsoft.RecoveryServices.ProtectionPolicies.createOrUpdate","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionPoliciesClient.createOrUpdateWithResponse":"Microsoft.RecoveryServices.ProtectionPolicies.createOrUpdate","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionPoliciesClient.delete":"Microsoft.RecoveryServices.ProtectionPolicies.delete","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionPoliciesClient.get":"Microsoft.RecoveryServices.ProtectionPolicies.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionPoliciesClient.getWithResponse":"Microsoft.RecoveryServices.ProtectionPolicies.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionPolicyOperationResultsClient":"Microsoft.RecoveryServices.ProtectionPolicyOperationResults","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionPolicyOperationResultsClient.get":"Microsoft.RecoveryServices.ProtectionPolicyOperationResults.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionPolicyOperationResultsClient.getWithResponse":"Microsoft.RecoveryServices.ProtectionPolicyOperationResults.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionPolicyOperationStatusesClient":"Microsoft.RecoveryServices.ProtectionPolicyOperationStatuses","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionPolicyOperationStatusesClient.get":"Microsoft.RecoveryServices.ProtectionPolicyOperationStatuses.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionPolicyOperationStatusesClient.getWithResponse":"Microsoft.RecoveryServices.ProtectionPolicyOperationStatuses.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.RecoveryPointsClient":"Microsoft.RecoveryServices.RecoveryPoints","com.azure.resourcemanager.recoveryservicesbackup.fluent.RecoveryPointsClient.get":"Microsoft.RecoveryServices.RecoveryPoints.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.RecoveryPointsClient.getWithResponse":"Microsoft.RecoveryServices.RecoveryPoints.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.RecoveryPointsClient.list":"Microsoft.RecoveryServices.RecoveryPoints.list","com.azure.resourcemanager.recoveryservicesbackup.fluent.RecoveryPointsRecommendedForMovesClient":"Microsoft.RecoveryServices.RecoveryPointsRecommendedForMove","com.azure.resourcemanager.recoveryservicesbackup.fluent.RecoveryPointsRecommendedForMovesClient.list":"Microsoft.RecoveryServices.RecoveryPointsRecommendedForMove.list","com.azure.resourcemanager.recoveryservicesbackup.fluent.RecoveryServicesBackupManagementClient":"Microsoft.RecoveryServices","com.azure.resourcemanager.recoveryservicesbackup.fluent.ResourceGuardProxyOperationsClient":"Microsoft.RecoveryServices","com.azure.resourcemanager.recoveryservicesbackup.fluent.ResourceGuardProxyOperationsClient.delete":"Microsoft.RecoveryServices.ResourceGuardProxy.delete","com.azure.resourcemanager.recoveryservicesbackup.fluent.ResourceGuardProxyOperationsClient.deleteWithResponse":"Microsoft.RecoveryServices.ResourceGuardProxy.delete","com.azure.resourcemanager.recoveryservicesbackup.fluent.ResourceGuardProxyOperationsClient.get":"Microsoft.RecoveryServices.ResourceGuardProxy.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ResourceGuardProxyOperationsClient.getWithResponse":"Microsoft.RecoveryServices.ResourceGuardProxy.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ResourceGuardProxyOperationsClient.list":"Microsoft.RecoveryServices.ResourceGuardProxies.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ResourceGuardProxyOperationsClient.put":"Microsoft.RecoveryServices.ResourceGuardProxy.put","com.azure.resourcemanager.recoveryservicesbackup.fluent.ResourceGuardProxyOperationsClient.putWithResponse":"Microsoft.RecoveryServices.ResourceGuardProxy.put","com.azure.resourcemanager.recoveryservicesbackup.fluent.ResourceGuardProxyOperationsClient.unlockDelete":"Microsoft.RecoveryServices.ResourceGuardProxy.unlockDelete","com.azure.resourcemanager.recoveryservicesbackup.fluent.ResourceGuardProxyOperationsClient.unlockDeleteWithResponse":"Microsoft.RecoveryServices.ResourceGuardProxy.unlockDelete","com.azure.resourcemanager.recoveryservicesbackup.fluent.ResourceProvidersClient":"Microsoft.RecoveryServices","com.azure.resourcemanager.recoveryservicesbackup.fluent.ResourceProvidersClient.beginBmsPrepareDataMove":"Microsoft.RecoveryServices.BackupResourceStorageConfigsNonCRR.bmsPrepareDataMove","com.azure.resourcemanager.recoveryservicesbackup.fluent.ResourceProvidersClient.beginBmsTriggerDataMove":"Microsoft.RecoveryServices.BackupResourceStorageConfigsNonCRR.bmsTriggerDataMove","com.azure.resourcemanager.recoveryservicesbackup.fluent.ResourceProvidersClient.beginMoveRecoveryPoint":"Microsoft.RecoveryServices.RecoveryPoints.moveRecoveryPoint","com.azure.resourcemanager.recoveryservicesbackup.fluent.ResourceProvidersClient.bmsPrepareDataMove":"Microsoft.RecoveryServices.BackupResourceStorageConfigsNonCRR.bmsPrepareDataMove","com.azure.resourcemanager.recoveryservicesbackup.fluent.ResourceProvidersClient.bmsTriggerDataMove":"Microsoft.RecoveryServices.BackupResourceStorageConfigsNonCRR.bmsTriggerDataMove","com.azure.resourcemanager.recoveryservicesbackup.fluent.ResourceProvidersClient.getOperationStatus":"Microsoft.RecoveryServices.BackupResourceConfigOperationStatuses.getOperationStatus","com.azure.resourcemanager.recoveryservicesbackup.fluent.ResourceProvidersClient.getOperationStatusWithResponse":"Microsoft.RecoveryServices.BackupResourceConfigOperationStatuses.getOperationStatus","com.azure.resourcemanager.recoveryservicesbackup.fluent.ResourceProvidersClient.moveRecoveryPoint":"Microsoft.RecoveryServices.RecoveryPoints.moveRecoveryPoint","com.azure.resourcemanager.recoveryservicesbackup.fluent.RestoresClient":"Microsoft.RecoveryServices.Restores","com.azure.resourcemanager.recoveryservicesbackup.fluent.RestoresClient.beginTrigger":"Microsoft.RecoveryServices.Restores.trigger","com.azure.resourcemanager.recoveryservicesbackup.fluent.RestoresClient.trigger":"Microsoft.RecoveryServices.Restores.trigger","com.azure.resourcemanager.recoveryservicesbackup.fluent.SecurityPINsClient":"Microsoft.RecoveryServices.SecurityPINs","com.azure.resourcemanager.recoveryservicesbackup.fluent.SecurityPINsClient.get":"Microsoft.RecoveryServices.SecurityPINs.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.SecurityPINsClient.getWithResponse":"Microsoft.RecoveryServices.SecurityPINs.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.TieringCostOperationStatusClient":"Microsoft.RecoveryServices.TieringCostOperationStatus","com.azure.resourcemanager.recoveryservicesbackup.fluent.TieringCostOperationStatusClient.get":"Microsoft.RecoveryServices.TieringCostOperationStatus.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.TieringCostOperationStatusClient.getWithResponse":"Microsoft.RecoveryServices.TieringCostOperationStatus.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ValidateOperationResultsClient":"Microsoft.RecoveryServices.ValidateOperationResults","com.azure.resourcemanager.recoveryservicesbackup.fluent.ValidateOperationResultsClient.get":"Microsoft.RecoveryServices.ValidateOperationResults.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ValidateOperationResultsClient.getWithResponse":"Microsoft.RecoveryServices.ValidateOperationResults.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ValidateOperationStatusesClient":"Microsoft.RecoveryServices.ValidateOperationStatuses","com.azure.resourcemanager.recoveryservicesbackup.fluent.ValidateOperationStatusesClient.get":"Microsoft.RecoveryServices.ValidateOperationStatuses.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ValidateOperationStatusesClient.getWithResponse":"Microsoft.RecoveryServices.ValidateOperationStatuses.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ValidateOperationsClient":"Microsoft.RecoveryServices.ValidateOperation","com.azure.resourcemanager.recoveryservicesbackup.fluent.ValidateOperationsClient.beginTrigger":"Microsoft.RecoveryServices.ValidateOperation.trigger","com.azure.resourcemanager.recoveryservicesbackup.fluent.ValidateOperationsClient.trigger":"Microsoft.RecoveryServices.ValidateOperation.trigger","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.AzureVMResourceFeatureSupportResponseInner":"Microsoft.RecoveryServices.AzureVMResourceFeatureSupportResponse","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.BackupEngineBaseResourceInner":"Microsoft.RecoveryServices.BackupEngineBaseResource","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.BackupManagementUsageInner":"Microsoft.RecoveryServices.BackupManagementUsage","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.BackupResourceConfigResourceInner":"Microsoft.RecoveryServices.BackupResourceConfigResource","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.BackupResourceEncryptionConfigExtendedResourceInner":"Microsoft.RecoveryServices.BackupResourceEncryptionConfigExtendedResource","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.BackupResourceVaultConfigResourceInner":"Microsoft.RecoveryServices.BackupResourceVaultConfigResource","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.BackupStatusResponseInner":"Microsoft.RecoveryServices.BackupStatusResponse","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.ClientDiscoveryValueForSingleApiInner":"Microsoft.RecoveryServices.ClientDiscoveryValueForSingleApi","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.JobResourceInner":"Microsoft.RecoveryServices.JobResource","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.OperationResultInfoBaseResourceInner":"Microsoft.RecoveryServices.OperationResultInfoBaseResource","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.OperationStatusInner":"Microsoft.RecoveryServices.OperationStatus","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.PreValidateEnableBackupResponseInner":"Microsoft.RecoveryServices.PreValidateEnableBackupResponse","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.PrivateEndpointConnectionResourceInner":"Microsoft.RecoveryServices.PrivateEndpointConnectionResource","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.ProtectableContainerResourceInner":"Microsoft.RecoveryServices.ProtectableContainerResource","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.ProtectedItemResourceInner":"Microsoft.RecoveryServices.ProtectedItemResource","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.ProtectionContainerResourceInner":"Microsoft.RecoveryServices.ProtectionContainerResource","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.ProtectionIntentResourceInner":"Microsoft.RecoveryServices.ProtectionIntentResource","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.ProtectionPolicyResourceInner":"Microsoft.RecoveryServices.ProtectionPolicyResource","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.RecoveryPointResourceInner":"Microsoft.RecoveryServices.RecoveryPointResource","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.ResourceGuardProxyBaseResourceInner":"Microsoft.RecoveryServices.ResourceGuardProxyBaseResource","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.TieringCostInfoInner":"Microsoft.RecoveryServices.TieringCostInfo","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.TokenInformationInner":"Microsoft.RecoveryServices.TokenInformation","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.UnlockDeleteResponseInner":"Microsoft.RecoveryServices.UnlockDeleteResponse","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.ValidateOperationsResponseInner":"Microsoft.RecoveryServices.ValidateOperationsResponse","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.VaultStorageConfigOperationResultResponseInner":"Microsoft.RecoveryServices.VaultStorageConfigOperationResultResponse","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.WorkloadItemResourceInner":"Microsoft.RecoveryServices.WorkloadItemResource","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.WorkloadProtectableItemResourceInner":"Microsoft.RecoveryServices.WorkloadProtectableItemResource","com.azure.resourcemanager.recoveryservicesbackup.implementation.RecoveryServicesBackupManagementClientBuilder":"Microsoft.RecoveryServices","com.azure.resourcemanager.recoveryservicesbackup.implementation.models.BackupEngineBaseResourceList":"Microsoft.RecoveryServices.BackupEngineBaseResourceList","com.azure.resourcemanager.recoveryservicesbackup.implementation.models.BackupManagementUsageList":"Microsoft.RecoveryServices.BackupManagementUsageList","com.azure.resourcemanager.recoveryservicesbackup.implementation.models.ClientDiscoveryResponse":"Microsoft.RecoveryServices.ClientDiscoveryResponse","com.azure.resourcemanager.recoveryservicesbackup.implementation.models.JobResourceList":"Microsoft.RecoveryServices.JobResourceList","com.azure.resourcemanager.recoveryservicesbackup.implementation.models.ProtectableContainerResourceList":"Microsoft.RecoveryServices.ProtectableContainerResourceList","com.azure.resourcemanager.recoveryservicesbackup.implementation.models.ProtectedItemResourceList":"Microsoft.RecoveryServices.ProtectedItemResourceList","com.azure.resourcemanager.recoveryservicesbackup.implementation.models.ProtectionContainerResourceList":"Microsoft.RecoveryServices.ProtectionContainerResourceList","com.azure.resourcemanager.recoveryservicesbackup.implementation.models.ProtectionIntentResourceList":"Microsoft.RecoveryServices.ProtectionIntentResourceList","com.azure.resourcemanager.recoveryservicesbackup.implementation.models.ProtectionPolicyResourceList":"Microsoft.RecoveryServices.ProtectionPolicyResourceList","com.azure.resourcemanager.recoveryservicesbackup.implementation.models.RecoveryPointResourceList":"Microsoft.RecoveryServices.RecoveryPointResourceList","com.azure.resourcemanager.recoveryservicesbackup.implementation.models.ResourceGuardProxyBaseResourceList":"Microsoft.RecoveryServices.ResourceGuardProxyBaseResourceList","com.azure.resourcemanager.recoveryservicesbackup.implementation.models.WorkloadItemResourceList":"Microsoft.RecoveryServices.WorkloadItemResourceList","com.azure.resourcemanager.recoveryservicesbackup.implementation.models.WorkloadProtectableItemResourceList":"Microsoft.RecoveryServices.WorkloadProtectableItemResourceList","com.azure.resourcemanager.recoveryservicesbackup.models.AccessType":"Microsoft.RecoveryServices.AccessType","com.azure.resourcemanager.recoveryservicesbackup.models.AcquireStorageAccountLock":"Microsoft.RecoveryServices.AcquireStorageAccountLock","com.azure.resourcemanager.recoveryservicesbackup.models.AzureBackupGoalFeatureSupportRequest":"Microsoft.RecoveryServices.AzureBackupGoalFeatureSupportRequest","com.azure.resourcemanager.recoveryservicesbackup.models.AzureBackupServerContainer":"Microsoft.RecoveryServices.AzureBackupServerContainer","com.azure.resourcemanager.recoveryservicesbackup.models.AzureBackupServerEngine":"Microsoft.RecoveryServices.AzureBackupServerEngine","com.azure.resourcemanager.recoveryservicesbackup.models.AzureFileShareBackupRequest":"Microsoft.RecoveryServices.AzureFileShareBackupRequest","com.azure.resourcemanager.recoveryservicesbackup.models.AzureFileShareProtectableItem":"Microsoft.RecoveryServices.AzureFileShareProtectableItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureFileShareProtectionPolicy":"Microsoft.RecoveryServices.AzureFileShareProtectionPolicy","com.azure.resourcemanager.recoveryservicesbackup.models.AzureFileShareProvisionIlrRequest":"Microsoft.RecoveryServices.AzureFileShareProvisionILRRequest","com.azure.resourcemanager.recoveryservicesbackup.models.AzureFileShareRecoveryPoint":"Microsoft.RecoveryServices.AzureFileShareRecoveryPoint","com.azure.resourcemanager.recoveryservicesbackup.models.AzureFileShareRestoreRequest":"Microsoft.RecoveryServices.AzureFileShareRestoreRequest","com.azure.resourcemanager.recoveryservicesbackup.models.AzureFileShareType":"Microsoft.RecoveryServices.AzureFileShareType","com.azure.resourcemanager.recoveryservicesbackup.models.AzureFileshareProtectedItem":"Microsoft.RecoveryServices.AzureFileshareProtectedItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureFileshareProtectedItemExtendedInfo":"Microsoft.RecoveryServices.AzureFileshareProtectedItemExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSClassicComputeVMContainer":"Microsoft.RecoveryServices.AzureIaaSClassicComputeVMContainer","com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSClassicComputeVMProtectableItem":"Microsoft.RecoveryServices.AzureIaaSClassicComputeVMProtectableItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSClassicComputeVMProtectedItem":"Microsoft.RecoveryServices.AzureIaaSClassicComputeVMProtectedItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSComputeVMContainer":"Microsoft.RecoveryServices.AzureIaaSComputeVMContainer","com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSComputeVMProtectableItem":"Microsoft.RecoveryServices.AzureIaaSComputeVMProtectableItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSComputeVMProtectedItem":"Microsoft.RecoveryServices.AzureIaaSComputeVMProtectedItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSvmErrorInfo":"Microsoft.RecoveryServices.AzureIaaSVMErrorInfo","com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSvmHealthDetails":"Microsoft.RecoveryServices.AzureIaaSVMHealthDetails","com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSvmJob":"Microsoft.RecoveryServices.AzureIaaSVMJob","com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSvmJobExtendedInfo":"Microsoft.RecoveryServices.AzureIaaSVMJobExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSvmJobTaskDetails":"Microsoft.RecoveryServices.AzureIaaSVMJobTaskDetails","com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSvmJobV2":"Microsoft.RecoveryServices.AzureIaaSVMJobV2","com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSvmProtectedItem":"Microsoft.RecoveryServices.AzureIaaSVMProtectedItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSvmProtectedItemExtendedInfo":"Microsoft.RecoveryServices.AzureIaaSVMProtectedItemExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSvmProtectionPolicy":"Microsoft.RecoveryServices.AzureIaaSVMProtectionPolicy","com.azure.resourcemanager.recoveryservicesbackup.models.AzureRecoveryServiceVaultProtectionIntent":"Microsoft.RecoveryServices.AzureRecoveryServiceVaultProtectionIntent","com.azure.resourcemanager.recoveryservicesbackup.models.AzureResourceProtectionIntent":"Microsoft.RecoveryServices.AzureResourceProtectionIntent","com.azure.resourcemanager.recoveryservicesbackup.models.AzureSqlContainer":"Microsoft.RecoveryServices.AzureSqlContainer","com.azure.resourcemanager.recoveryservicesbackup.models.AzureSqlProtectedItem":"Microsoft.RecoveryServices.AzureSqlProtectedItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureSqlProtectedItemExtendedInfo":"Microsoft.RecoveryServices.AzureSqlProtectedItemExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.AzureSqlProtectionPolicy":"Microsoft.RecoveryServices.AzureSqlProtectionPolicy","com.azure.resourcemanager.recoveryservicesbackup.models.AzureSqlagWorkloadContainerProtectionContainer":"Microsoft.RecoveryServices.AzureSQLAGWorkloadContainerProtectionContainer","com.azure.resourcemanager.recoveryservicesbackup.models.AzureStorageContainer":"Microsoft.RecoveryServices.AzureStorageContainer","com.azure.resourcemanager.recoveryservicesbackup.models.AzureStorageErrorInfo":"Microsoft.RecoveryServices.AzureStorageErrorInfo","com.azure.resourcemanager.recoveryservicesbackup.models.AzureStorageJob":"Microsoft.RecoveryServices.AzureStorageJob","com.azure.resourcemanager.recoveryservicesbackup.models.AzureStorageJobExtendedInfo":"Microsoft.RecoveryServices.AzureStorageJobExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.AzureStorageJobTaskDetails":"Microsoft.RecoveryServices.AzureStorageJobTaskDetails","com.azure.resourcemanager.recoveryservicesbackup.models.AzureStorageProtectableContainer":"Microsoft.RecoveryServices.AzureStorageProtectableContainer","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVMAppContainerProtectableContainer":"Microsoft.RecoveryServices.AzureVMAppContainerProtectableContainer","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVMAppContainerProtectionContainer":"Microsoft.RecoveryServices.AzureVMAppContainerProtectionContainer","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVMResourceFeatureSupportRequest":"Microsoft.RecoveryServices.AzureVMResourceFeatureSupportRequest","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadItem":"Microsoft.RecoveryServices.AzureVmWorkloadItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadProtectableItem":"Microsoft.RecoveryServices.AzureVmWorkloadProtectableItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadProtectedItem":"Microsoft.RecoveryServices.AzureVmWorkloadProtectedItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadProtectedItemExtendedInfo":"Microsoft.RecoveryServices.AzureVmWorkloadProtectedItemExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadProtectionPolicy":"Microsoft.RecoveryServices.AzureVmWorkloadProtectionPolicy","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSapAseDatabaseProtectableItem":"Microsoft.RecoveryServices.AzureVmWorkloadSAPAseDatabaseProtectableItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSapAseDatabaseProtectedItem":"Microsoft.RecoveryServices.AzureVmWorkloadSAPAseDatabaseProtectedItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSapAseDatabaseWorkloadItem":"Microsoft.RecoveryServices.AzureVmWorkloadSAPAseDatabaseWorkloadItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSapAseSystemProtectableItem":"Microsoft.RecoveryServices.AzureVmWorkloadSAPAseSystemProtectableItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSapAseSystemWorkloadItem":"Microsoft.RecoveryServices.AzureVmWorkloadSAPAseSystemWorkloadItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSapHanaDBInstance":"Microsoft.RecoveryServices.AzureVmWorkloadSAPHanaDBInstance","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSapHanaDBInstanceProtectedItem":"Microsoft.RecoveryServices.AzureVmWorkloadSAPHanaDBInstanceProtectedItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSapHanaDatabaseProtectableItem":"Microsoft.RecoveryServices.AzureVmWorkloadSAPHanaDatabaseProtectableItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSapHanaDatabaseProtectedItem":"Microsoft.RecoveryServices.AzureVmWorkloadSAPHanaDatabaseProtectedItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSapHanaDatabaseWorkloadItem":"Microsoft.RecoveryServices.AzureVmWorkloadSAPHanaDatabaseWorkloadItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSapHanaHsr":"Microsoft.RecoveryServices.AzureVmWorkloadSAPHanaHSRProtectableItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSapHanaSystemProtectableItem":"Microsoft.RecoveryServices.AzureVmWorkloadSAPHanaSystemProtectableItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSapHanaSystemWorkloadItem":"Microsoft.RecoveryServices.AzureVmWorkloadSAPHanaSystemWorkloadItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSqlAvailabilityGroupProtectableItem":"Microsoft.RecoveryServices.AzureVmWorkloadSQLAvailabilityGroupProtectableItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSqlDatabaseProtectableItem":"Microsoft.RecoveryServices.AzureVmWorkloadSQLDatabaseProtectableItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSqlDatabaseProtectedItem":"Microsoft.RecoveryServices.AzureVmWorkloadSQLDatabaseProtectedItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSqlDatabaseWorkloadItem":"Microsoft.RecoveryServices.AzureVmWorkloadSQLDatabaseWorkloadItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSqlInstanceProtectableItem":"Microsoft.RecoveryServices.AzureVmWorkloadSQLInstanceProtectableItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSqlInstanceWorkloadItem":"Microsoft.RecoveryServices.AzureVmWorkloadSQLInstanceWorkloadItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadAutoProtectionIntent":"Microsoft.RecoveryServices.AzureWorkloadAutoProtectionIntent","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadBackupRequest":"Microsoft.RecoveryServices.AzureWorkloadBackupRequest","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadContainer":"Microsoft.RecoveryServices.AzureWorkloadContainer","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadContainerAutoProtectionIntent":"Microsoft.RecoveryServices.AzureWorkloadContainerAutoProtectionIntent","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadContainerExtendedInfo":"Microsoft.RecoveryServices.AzureWorkloadContainerExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadErrorInfo":"Microsoft.RecoveryServices.AzureWorkloadErrorInfo","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadJob":"Microsoft.RecoveryServices.AzureWorkloadJob","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadJobExtendedInfo":"Microsoft.RecoveryServices.AzureWorkloadJobExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadJobTaskDetails":"Microsoft.RecoveryServices.AzureWorkloadJobTaskDetails","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadPointInTimeRecoveryPoint":"Microsoft.RecoveryServices.AzureWorkloadPointInTimeRecoveryPoint","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadPointInTimeRestoreRequest":"Microsoft.RecoveryServices.AzureWorkloadPointInTimeRestoreRequest","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadRecoveryPoint":"Microsoft.RecoveryServices.AzureWorkloadRecoveryPoint","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadRestoreRequest":"Microsoft.RecoveryServices.AzureWorkloadRestoreRequest","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSapAsePointInTimeRecoveryPoint":"Microsoft.RecoveryServices.AzureWorkloadSAPAsePointInTimeRecoveryPoint","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSapAsePointInTimeRestoreRequest":"Microsoft.RecoveryServices.AzureWorkloadSAPAsePointInTimeRestoreRequest","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSapAseRecoveryPoint":"Microsoft.RecoveryServices.AzureWorkloadSAPAseRecoveryPoint","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSapAseRestoreRequest":"Microsoft.RecoveryServices.AzureWorkloadSAPAseRestoreRequest","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSapHanaPointInTimeRecoveryPoint":"Microsoft.RecoveryServices.AzureWorkloadSAPHanaPointInTimeRecoveryPoint","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSapHanaPointInTimeRestoreRequest":"Microsoft.RecoveryServices.AzureWorkloadSAPHanaPointInTimeRestoreRequest","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSapHanaPointInTimeRestoreWithRehydrateRequest":"Microsoft.RecoveryServices.AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSapHanaRecoveryPoint":"Microsoft.RecoveryServices.AzureWorkloadSAPHanaRecoveryPoint","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSapHanaRestoreRequest":"Microsoft.RecoveryServices.AzureWorkloadSAPHanaRestoreRequest","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSapHanaRestoreWithRehydrateRequest":"Microsoft.RecoveryServices.AzureWorkloadSAPHanaRestoreWithRehydrateRequest","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSqlAutoProtectionIntent":"Microsoft.RecoveryServices.AzureWorkloadSQLAutoProtectionIntent","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSqlPointInTimeRecoveryPoint":"Microsoft.RecoveryServices.AzureWorkloadSQLPointInTimeRecoveryPoint","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSqlPointInTimeRestoreRequest":"Microsoft.RecoveryServices.AzureWorkloadSQLPointInTimeRestoreRequest","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequest":"Microsoft.RecoveryServices.AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSqlRecoveryPoint":"Microsoft.RecoveryServices.AzureWorkloadSQLRecoveryPoint","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSqlRecoveryPointExtendedInfo":"Microsoft.RecoveryServices.AzureWorkloadSQLRecoveryPointExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSqlRestoreRequest":"Microsoft.RecoveryServices.AzureWorkloadSQLRestoreRequest","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSqlRestoreWithRehydrateRequest":"Microsoft.RecoveryServices.AzureWorkloadSQLRestoreWithRehydrateRequest","com.azure.resourcemanager.recoveryservicesbackup.models.BackupEngineBase":"Microsoft.RecoveryServices.BackupEngineBase","com.azure.resourcemanager.recoveryservicesbackup.models.BackupEngineExtendedInfo":"Microsoft.RecoveryServices.BackupEngineExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.BackupEngineType":"Microsoft.RecoveryServices.BackupEngineType","com.azure.resourcemanager.recoveryservicesbackup.models.BackupItemType":"Microsoft.RecoveryServices.BackupItemType","com.azure.resourcemanager.recoveryservicesbackup.models.BackupManagementType":"Microsoft.RecoveryServices.BackupManagementType","com.azure.resourcemanager.recoveryservicesbackup.models.BackupRequest":"Microsoft.RecoveryServices.BackupRequest","com.azure.resourcemanager.recoveryservicesbackup.models.BackupRequestResource":"Microsoft.RecoveryServices.BackupRequestResource","com.azure.resourcemanager.recoveryservicesbackup.models.BackupResourceConfig":"Microsoft.RecoveryServices.BackupResourceConfig","com.azure.resourcemanager.recoveryservicesbackup.models.BackupResourceEncryptionConfig":"Microsoft.RecoveryServices.BackupResourceEncryptionConfig","com.azure.resourcemanager.recoveryservicesbackup.models.BackupResourceEncryptionConfigExtended":"Microsoft.RecoveryServices.BackupResourceEncryptionConfigExtended","com.azure.resourcemanager.recoveryservicesbackup.models.BackupResourceEncryptionConfigResource":"Microsoft.RecoveryServices.BackupResourceEncryptionConfigResource","com.azure.resourcemanager.recoveryservicesbackup.models.BackupResourceVaultConfig":"Microsoft.RecoveryServices.BackupResourceVaultConfig","com.azure.resourcemanager.recoveryservicesbackup.models.BackupStatusRequest":"Microsoft.RecoveryServices.BackupStatusRequest","com.azure.resourcemanager.recoveryservicesbackup.models.BackupType":"Microsoft.RecoveryServices.BackupType","com.azure.resourcemanager.recoveryservicesbackup.models.BekDetails":"Microsoft.RecoveryServices.BEKDetails","com.azure.resourcemanager.recoveryservicesbackup.models.ClientDiscoveryDisplay":"Microsoft.RecoveryServices.ClientDiscoveryDisplay","com.azure.resourcemanager.recoveryservicesbackup.models.ClientDiscoveryForLogSpecification":"Microsoft.RecoveryServices.ClientDiscoveryForLogSpecification","com.azure.resourcemanager.recoveryservicesbackup.models.ClientDiscoveryForProperties":"Microsoft.RecoveryServices.ClientDiscoveryForProperties","com.azure.resourcemanager.recoveryservicesbackup.models.ClientDiscoveryForServiceSpecification":"Microsoft.RecoveryServices.ClientDiscoveryForServiceSpecification","com.azure.resourcemanager.recoveryservicesbackup.models.ClientScriptForConnect":"Microsoft.RecoveryServices.ClientScriptForConnect","com.azure.resourcemanager.recoveryservicesbackup.models.ContainerIdentityInfo":"Microsoft.RecoveryServices.ContainerIdentityInfo","com.azure.resourcemanager.recoveryservicesbackup.models.CopyOptions":"Microsoft.RecoveryServices.CopyOptions","com.azure.resourcemanager.recoveryservicesbackup.models.CreateMode":"Microsoft.RecoveryServices.CreateMode","com.azure.resourcemanager.recoveryservicesbackup.models.DailyRetentionFormat":"Microsoft.RecoveryServices.DailyRetentionFormat","com.azure.resourcemanager.recoveryservicesbackup.models.DailyRetentionSchedule":"Microsoft.RecoveryServices.DailyRetentionSchedule","com.azure.resourcemanager.recoveryservicesbackup.models.DailySchedule":"Microsoft.RecoveryServices.DailySchedule","com.azure.resourcemanager.recoveryservicesbackup.models.DataDiskDetails":"Microsoft.RecoveryServices.DataDiskDetails","com.azure.resourcemanager.recoveryservicesbackup.models.DataDiskEncryptionSettings":"Microsoft.RecoveryServices.DataDiskEncryptionSettings","com.azure.resourcemanager.recoveryservicesbackup.models.DataMoveLevel":"Microsoft.RecoveryServices.DataMoveLevel","com.azure.resourcemanager.recoveryservicesbackup.models.DataSourceType":"Microsoft.RecoveryServices.DataSourceType","com.azure.resourcemanager.recoveryservicesbackup.models.Day":"Microsoft.RecoveryServices.Day","com.azure.resourcemanager.recoveryservicesbackup.models.DayOfWeek":"Microsoft.RecoveryServices.DayOfWeek","com.azure.resourcemanager.recoveryservicesbackup.models.DedupState":"Microsoft.RecoveryServices.DedupState","com.azure.resourcemanager.recoveryservicesbackup.models.DiskDetails":"Microsoft.RecoveryServices.DiskDetails","com.azure.resourcemanager.recoveryservicesbackup.models.DiskExclusionProperties":"Microsoft.RecoveryServices.DiskExclusionProperties","com.azure.resourcemanager.recoveryservicesbackup.models.DiskInformation":"Microsoft.RecoveryServices.DiskInformation","com.azure.resourcemanager.recoveryservicesbackup.models.DistributedNodesInfo":"Microsoft.RecoveryServices.DistributedNodesInfo","com.azure.resourcemanager.recoveryservicesbackup.models.DpmBackupEngine":"Microsoft.RecoveryServices.DpmBackupEngine","com.azure.resourcemanager.recoveryservicesbackup.models.DpmContainer":"Microsoft.RecoveryServices.DpmContainer","com.azure.resourcemanager.recoveryservicesbackup.models.DpmContainerExtendedInfo":"Microsoft.RecoveryServices.DPMContainerExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.DpmErrorInfo":"Microsoft.RecoveryServices.DpmErrorInfo","com.azure.resourcemanager.recoveryservicesbackup.models.DpmJob":"Microsoft.RecoveryServices.DpmJob","com.azure.resourcemanager.recoveryservicesbackup.models.DpmJobExtendedInfo":"Microsoft.RecoveryServices.DpmJobExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.DpmJobTaskDetails":"Microsoft.RecoveryServices.DpmJobTaskDetails","com.azure.resourcemanager.recoveryservicesbackup.models.DpmProtectedItem":"Microsoft.RecoveryServices.DPMProtectedItem","com.azure.resourcemanager.recoveryservicesbackup.models.DpmProtectedItemExtendedInfo":"Microsoft.RecoveryServices.DPMProtectedItemExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.EncryptionAtRestType":"Microsoft.RecoveryServices.EncryptionAtRestType","com.azure.resourcemanager.recoveryservicesbackup.models.EncryptionDetails":"Microsoft.RecoveryServices.EncryptionDetails","com.azure.resourcemanager.recoveryservicesbackup.models.EnhancedSecurityState":"Microsoft.RecoveryServices.EnhancedSecurityState","com.azure.resourcemanager.recoveryservicesbackup.models.ErrorDetail":"Microsoft.RecoveryServices.ErrorDetail","com.azure.resourcemanager.recoveryservicesbackup.models.ExportJobsOperationResultInfo":"Microsoft.RecoveryServices.ExportJobsOperationResultInfo","com.azure.resourcemanager.recoveryservicesbackup.models.ExtendedLocation":"Microsoft.RecoveryServices.ExtendedLocation","com.azure.resourcemanager.recoveryservicesbackup.models.ExtendedProperties":"Microsoft.RecoveryServices.ExtendedProperties","com.azure.resourcemanager.recoveryservicesbackup.models.FabricName":"Microsoft.RecoveryServices.FabricName","com.azure.resourcemanager.recoveryservicesbackup.models.FeatureSupportRequest":"Microsoft.RecoveryServices.FeatureSupportRequest","com.azure.resourcemanager.recoveryservicesbackup.models.FetchTieringCostInfoForRehydrationRequest":"Microsoft.RecoveryServices.FetchTieringCostInfoForRehydrationRequest","com.azure.resourcemanager.recoveryservicesbackup.models.FetchTieringCostInfoRequest":"Microsoft.RecoveryServices.FetchTieringCostInfoRequest","com.azure.resourcemanager.recoveryservicesbackup.models.FetchTieringCostSavingsInfoForPolicyRequest":"Microsoft.RecoveryServices.FetchTieringCostSavingsInfoForPolicyRequest","com.azure.resourcemanager.recoveryservicesbackup.models.FetchTieringCostSavingsInfoForProtectedItemRequest":"Microsoft.RecoveryServices.FetchTieringCostSavingsInfoForProtectedItemRequest","com.azure.resourcemanager.recoveryservicesbackup.models.FetchTieringCostSavingsInfoForVaultRequest":"Microsoft.RecoveryServices.FetchTieringCostSavingsInfoForVaultRequest","com.azure.resourcemanager.recoveryservicesbackup.models.GenericContainer":"Microsoft.RecoveryServices.GenericContainer","com.azure.resourcemanager.recoveryservicesbackup.models.GenericContainerExtendedInfo":"Microsoft.RecoveryServices.GenericContainerExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.GenericProtectedItem":"Microsoft.RecoveryServices.GenericProtectedItem","com.azure.resourcemanager.recoveryservicesbackup.models.GenericProtectionPolicy":"Microsoft.RecoveryServices.GenericProtectionPolicy","com.azure.resourcemanager.recoveryservicesbackup.models.GenericRecoveryPoint":"Microsoft.RecoveryServices.GenericRecoveryPoint","com.azure.resourcemanager.recoveryservicesbackup.models.HealthStatus":"Microsoft.RecoveryServices.HealthStatus","com.azure.resourcemanager.recoveryservicesbackup.models.HourlySchedule":"Microsoft.RecoveryServices.HourlySchedule","com.azure.resourcemanager.recoveryservicesbackup.models.HttpStatusCode":"Microsoft.RecoveryServices.HttpStatusCode","com.azure.resourcemanager.recoveryservicesbackup.models.IaaSvmContainer":"Microsoft.RecoveryServices.IaaSVMContainer","com.azure.resourcemanager.recoveryservicesbackup.models.IaasVMBackupRequest":"Microsoft.RecoveryServices.IaasVMBackupRequest","com.azure.resourcemanager.recoveryservicesbackup.models.IaasVMRecoveryPoint":"Microsoft.RecoveryServices.IaasVMRecoveryPoint","com.azure.resourcemanager.recoveryservicesbackup.models.IaasVMRestoreRequest":"Microsoft.RecoveryServices.IaasVMRestoreRequest","com.azure.resourcemanager.recoveryservicesbackup.models.IaasVMRestoreWithRehydrationRequest":"Microsoft.RecoveryServices.IaasVMRestoreWithRehydrationRequest","com.azure.resourcemanager.recoveryservicesbackup.models.IaasVMSnapshotConsistencyType":"Microsoft.RecoveryServices.IaasVMSnapshotConsistencyType","com.azure.resourcemanager.recoveryservicesbackup.models.IaasVmProtectableItem":"Microsoft.RecoveryServices.IaaSVMProtectableItem","com.azure.resourcemanager.recoveryservicesbackup.models.IaasVmilrRegistrationRequest":"Microsoft.RecoveryServices.IaasVMILRRegistrationRequest","com.azure.resourcemanager.recoveryservicesbackup.models.IaasvmPolicyType":"Microsoft.RecoveryServices.IAASVMPolicyType","com.azure.resourcemanager.recoveryservicesbackup.models.IdentityBasedRestoreDetails":"Microsoft.RecoveryServices.IdentityBasedRestoreDetails","com.azure.resourcemanager.recoveryservicesbackup.models.IdentityInfo":"Microsoft.RecoveryServices.IdentityInfo","com.azure.resourcemanager.recoveryservicesbackup.models.IlrRequest":"Microsoft.RecoveryServices.ILRRequest","com.azure.resourcemanager.recoveryservicesbackup.models.IlrRequestResource":"Microsoft.RecoveryServices.ILRRequestResource","com.azure.resourcemanager.recoveryservicesbackup.models.InfrastructureEncryptionState":"Microsoft.RecoveryServices.InfrastructureEncryptionState","com.azure.resourcemanager.recoveryservicesbackup.models.InquiryInfo":"Microsoft.RecoveryServices.InquiryInfo","com.azure.resourcemanager.recoveryservicesbackup.models.InquiryStatus":"Microsoft.RecoveryServices.InquiryStatus","com.azure.resourcemanager.recoveryservicesbackup.models.InquiryValidation":"Microsoft.RecoveryServices.InquiryValidation","com.azure.resourcemanager.recoveryservicesbackup.models.InstantItemRecoveryOperationResultRequest":"Microsoft.RecoveryServices.InstantItemRecoveryOperationResultRequest","com.azure.resourcemanager.recoveryservicesbackup.models.InstantItemRecoveryTarget":"Microsoft.RecoveryServices.InstantItemRecoveryTarget","com.azure.resourcemanager.recoveryservicesbackup.models.InstantRPAdditionalDetails":"Microsoft.RecoveryServices.InstantRPAdditionalDetails","com.azure.resourcemanager.recoveryservicesbackup.models.Job":"Microsoft.RecoveryServices.Job","com.azure.resourcemanager.recoveryservicesbackup.models.JobSupportedAction":"Microsoft.RecoveryServices.JobSupportedAction","com.azure.resourcemanager.recoveryservicesbackup.models.KekDetails":"Microsoft.RecoveryServices.KEKDetails","com.azure.resourcemanager.recoveryservicesbackup.models.KeyAndSecretDetails":"Microsoft.RecoveryServices.KeyAndSecretDetails","com.azure.resourcemanager.recoveryservicesbackup.models.KpiResourceHealthDetails":"Microsoft.RecoveryServices.KPIResourceHealthDetails","com.azure.resourcemanager.recoveryservicesbackup.models.LastBackupStatus":"Microsoft.RecoveryServices.LastBackupStatus","com.azure.resourcemanager.recoveryservicesbackup.models.LastUpdateStatus":"Microsoft.RecoveryServices.LastUpdateStatus","com.azure.resourcemanager.recoveryservicesbackup.models.ListRecoveryPointsRecommendedForMoveRequest":"Microsoft.RecoveryServices.ListRecoveryPointsRecommendedForMoveRequest","com.azure.resourcemanager.recoveryservicesbackup.models.LogSchedulePolicy":"Microsoft.RecoveryServices.LogSchedulePolicy","com.azure.resourcemanager.recoveryservicesbackup.models.LongTermRetentionPolicy":"Microsoft.RecoveryServices.LongTermRetentionPolicy","com.azure.resourcemanager.recoveryservicesbackup.models.LongTermSchedulePolicy":"Microsoft.RecoveryServices.LongTermSchedulePolicy","com.azure.resourcemanager.recoveryservicesbackup.models.MabContainer":"Microsoft.RecoveryServices.MabContainer","com.azure.resourcemanager.recoveryservicesbackup.models.MabContainerExtendedInfo":"Microsoft.RecoveryServices.MabContainerExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.MabContainerHealthDetails":"Microsoft.RecoveryServices.MABContainerHealthDetails","com.azure.resourcemanager.recoveryservicesbackup.models.MabErrorInfo":"Microsoft.RecoveryServices.MabErrorInfo","com.azure.resourcemanager.recoveryservicesbackup.models.MabFileFolderProtectedItem":"Microsoft.RecoveryServices.MabFileFolderProtectedItem","com.azure.resourcemanager.recoveryservicesbackup.models.MabFileFolderProtectedItemExtendedInfo":"Microsoft.RecoveryServices.MabFileFolderProtectedItemExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.MabJob":"Microsoft.RecoveryServices.MabJob","com.azure.resourcemanager.recoveryservicesbackup.models.MabJobExtendedInfo":"Microsoft.RecoveryServices.MabJobExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.MabJobTaskDetails":"Microsoft.RecoveryServices.MabJobTaskDetails","com.azure.resourcemanager.recoveryservicesbackup.models.MabProtectionPolicy":"Microsoft.RecoveryServices.MabProtectionPolicy","com.azure.resourcemanager.recoveryservicesbackup.models.MabServerType":"Microsoft.RecoveryServices.MabServerType","com.azure.resourcemanager.recoveryservicesbackup.models.MonthOfYear":"Microsoft.RecoveryServices.MonthOfYear","com.azure.resourcemanager.recoveryservicesbackup.models.MonthlyRetentionSchedule":"Microsoft.RecoveryServices.MonthlyRetentionSchedule","com.azure.resourcemanager.recoveryservicesbackup.models.MoveRPAcrossTiersRequest":"Microsoft.RecoveryServices.MoveRPAcrossTiersRequest","com.azure.resourcemanager.recoveryservicesbackup.models.NameInfo":"Microsoft.RecoveryServices.NameInfo","com.azure.resourcemanager.recoveryservicesbackup.models.OperationResultInfo":"Microsoft.RecoveryServices.OperationResultInfo","com.azure.resourcemanager.recoveryservicesbackup.models.OperationResultInfoBase":"Microsoft.RecoveryServices.OperationResultInfoBase","com.azure.resourcemanager.recoveryservicesbackup.models.OperationStatusError":"Microsoft.RecoveryServices.OperationStatusError","com.azure.resourcemanager.recoveryservicesbackup.models.OperationStatusExtendedInfo":"Microsoft.RecoveryServices.OperationStatusExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.OperationStatusJobExtendedInfo":"Microsoft.RecoveryServices.OperationStatusJobExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.OperationStatusJobsExtendedInfo":"Microsoft.RecoveryServices.OperationStatusJobsExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.OperationStatusProvisionIlrExtendedInfo":"Microsoft.RecoveryServices.OperationStatusProvisionILRExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.OperationStatusValidateOperationExtendedInfo":"Microsoft.RecoveryServices.OperationStatusValidateOperationExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.OperationStatusValues":"Microsoft.RecoveryServices.OperationStatusValues","com.azure.resourcemanager.recoveryservicesbackup.models.OperationType":"Microsoft.RecoveryServices.OperationType","com.azure.resourcemanager.recoveryservicesbackup.models.OperationWorkerResponse":"Microsoft.RecoveryServices.OperationWorkerResponse","com.azure.resourcemanager.recoveryservicesbackup.models.OverwriteOptions":"Microsoft.RecoveryServices.OverwriteOptions","com.azure.resourcemanager.recoveryservicesbackup.models.PerDiskEncryptionSetId":"Microsoft.RecoveryServices.PerDiskEncryptionSetId","com.azure.resourcemanager.recoveryservicesbackup.models.PointInTimeRange":"Microsoft.RecoveryServices.PointInTimeRange","com.azure.resourcemanager.recoveryservicesbackup.models.PolicyType":"Microsoft.RecoveryServices.PolicyType","com.azure.resourcemanager.recoveryservicesbackup.models.PreBackupValidation":"Microsoft.RecoveryServices.PreBackupValidation","com.azure.resourcemanager.recoveryservicesbackup.models.PreValidateEnableBackupRequest":"Microsoft.RecoveryServices.PreValidateEnableBackupRequest","com.azure.resourcemanager.recoveryservicesbackup.models.PrepareDataMoveRequest":"Microsoft.RecoveryServices.PrepareDataMoveRequest","com.azure.resourcemanager.recoveryservicesbackup.models.PrepareDataMoveResponse":"Microsoft.RecoveryServices.PrepareDataMoveResponse","com.azure.resourcemanager.recoveryservicesbackup.models.PrivateEndpoint":"Microsoft.RecoveryServices.PrivateEndpoint","com.azure.resourcemanager.recoveryservicesbackup.models.PrivateEndpointConnection":"Microsoft.RecoveryServices.PrivateEndpointConnection","com.azure.resourcemanager.recoveryservicesbackup.models.PrivateEndpointConnectionStatus":"Microsoft.RecoveryServices.PrivateEndpointConnectionStatus","com.azure.resourcemanager.recoveryservicesbackup.models.PrivateLinkServiceConnectionState":"Microsoft.RecoveryServices.PrivateLinkServiceConnectionState","com.azure.resourcemanager.recoveryservicesbackup.models.ProtectableContainer":"Microsoft.RecoveryServices.ProtectableContainer","com.azure.resourcemanager.recoveryservicesbackup.models.ProtectableContainerType":"Microsoft.RecoveryServices.ProtectableContainerType","com.azure.resourcemanager.recoveryservicesbackup.models.ProtectedItem":"Microsoft.RecoveryServices.ProtectedItem","com.azure.resourcemanager.recoveryservicesbackup.models.ProtectedItemConfigureSourceScanRequest":"Microsoft.RecoveryServices.ProtectedItemConfigureSourceScanRequest","com.azure.resourcemanager.recoveryservicesbackup.models.ProtectedItemHealthStatus":"Microsoft.RecoveryServices.ProtectedItemHealthStatus","com.azure.resourcemanager.recoveryservicesbackup.models.ProtectedItemState":"Microsoft.RecoveryServices.ProtectedItemState","com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionContainer":"Microsoft.RecoveryServices.ProtectionContainer","com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionIntent":"Microsoft.RecoveryServices.ProtectionIntent","com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionIntentItemType":"Microsoft.RecoveryServices.ProtectionIntentItemType","com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionPolicy":"Microsoft.RecoveryServices.ProtectionPolicy","com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionState":"Microsoft.RecoveryServices.ProtectionState","com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionStatus":"Microsoft.RecoveryServices.ProtectionStatus","com.azure.resourcemanager.recoveryservicesbackup.models.ProvisioningState":"Microsoft.RecoveryServices.ProvisioningState","com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryMode":"Microsoft.RecoveryServices.RecoveryMode","com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryPoint":"Microsoft.RecoveryServices.RecoveryPoint","com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryPointDiskConfiguration":"Microsoft.RecoveryServices.RecoveryPointDiskConfiguration","com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryPointImmutabilityProperties":"Microsoft.RecoveryServices.RecoveryPointImmutabilityProperties","com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryPointMoveReadinessInfo":"Microsoft.RecoveryServices.RecoveryPointMoveReadinessInfo","com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryPointProperties":"Microsoft.RecoveryServices.RecoveryPointProperties","com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryPointRehydrationInfo":"Microsoft.RecoveryServices.RecoveryPointRehydrationInfo","com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryPointTierInformation":"Microsoft.RecoveryServices.RecoveryPointTierInformation","com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryPointTierInformationV2":"Microsoft.RecoveryServices.RecoveryPointTierInformationV2","com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryPointTierStatus":"Microsoft.RecoveryServices.RecoveryPointTierStatus","com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryPointTierType":"Microsoft.RecoveryServices.RecoveryPointTierType","com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryType":"Microsoft.RecoveryServices.RecoveryType","com.azure.resourcemanager.recoveryservicesbackup.models.RehydrationPriority":"Microsoft.RecoveryServices.RehydrationPriority","com.azure.resourcemanager.recoveryservicesbackup.models.ResourceGuardOperationDetail":"Microsoft.RecoveryServices.ResourceGuardOperationDetail","com.azure.resourcemanager.recoveryservicesbackup.models.ResourceGuardProxyBase":"Microsoft.RecoveryServices.ResourceGuardProxyBase","com.azure.resourcemanager.recoveryservicesbackup.models.ResourceHealthDetails":"Microsoft.RecoveryServices.ResourceHealthDetails","com.azure.resourcemanager.recoveryservicesbackup.models.ResourceHealthStatus":"Microsoft.RecoveryServices.ResourceHealthStatus","com.azure.resourcemanager.recoveryservicesbackup.models.ResourceList":"Microsoft.RecoveryServices.ResourceList","com.azure.resourcemanager.recoveryservicesbackup.models.RestoreFileSpecs":"Microsoft.RecoveryServices.RestoreFileSpecs","com.azure.resourcemanager.recoveryservicesbackup.models.RestorePointType":"Microsoft.RecoveryServices.RestorePointType","com.azure.resourcemanager.recoveryservicesbackup.models.RestoreRequest":"Microsoft.RecoveryServices.RestoreRequest","com.azure.resourcemanager.recoveryservicesbackup.models.RestoreRequestResource":"Microsoft.RecoveryServices.RestoreRequestResource","com.azure.resourcemanager.recoveryservicesbackup.models.RestoreRequestType":"Microsoft.RecoveryServices.RestoreRequestType","com.azure.resourcemanager.recoveryservicesbackup.models.RetentionDuration":"Microsoft.RecoveryServices.RetentionDuration","com.azure.resourcemanager.recoveryservicesbackup.models.RetentionDurationType":"Microsoft.RecoveryServices.RetentionDurationType","com.azure.resourcemanager.recoveryservicesbackup.models.RetentionPolicy":"Microsoft.RecoveryServices.RetentionPolicy","com.azure.resourcemanager.recoveryservicesbackup.models.RetentionScheduleFormat":"Microsoft.RecoveryServices.RetentionScheduleFormat","com.azure.resourcemanager.recoveryservicesbackup.models.SchedulePolicy":"Microsoft.RecoveryServices.SchedulePolicy","com.azure.resourcemanager.recoveryservicesbackup.models.ScheduleRunType":"Microsoft.RecoveryServices.ScheduleRunType","com.azure.resourcemanager.recoveryservicesbackup.models.SecuredVMDetails":"Microsoft.RecoveryServices.SecuredVMDetails","com.azure.resourcemanager.recoveryservicesbackup.models.SecurityPinBase":"Microsoft.RecoveryServices.SecurityPinBase","com.azure.resourcemanager.recoveryservicesbackup.models.Settings":"Microsoft.RecoveryServices.Settings","com.azure.resourcemanager.recoveryservicesbackup.models.SimpleRetentionPolicy":"Microsoft.RecoveryServices.SimpleRetentionPolicy","com.azure.resourcemanager.recoveryservicesbackup.models.SimpleSchedulePolicy":"Microsoft.RecoveryServices.SimpleSchedulePolicy","com.azure.resourcemanager.recoveryservicesbackup.models.SimpleSchedulePolicyV2":"Microsoft.RecoveryServices.SimpleSchedulePolicyV2","com.azure.resourcemanager.recoveryservicesbackup.models.SnapshotBackupAdditionalDetails":"Microsoft.RecoveryServices.SnapshotBackupAdditionalDetails","com.azure.resourcemanager.recoveryservicesbackup.models.SnapshotRestoreParameters":"Microsoft.RecoveryServices.SnapshotRestoreParameters","com.azure.resourcemanager.recoveryservicesbackup.models.SoftDeleteFeatureState":"Microsoft.RecoveryServices.SoftDeleteFeatureState","com.azure.resourcemanager.recoveryservicesbackup.models.SourceScanAction":"Microsoft.RecoveryServices.SourceScanAction","com.azure.resourcemanager.recoveryservicesbackup.models.SourceSideScanInfo":"Microsoft.RecoveryServices.SourceSideScanInfo","com.azure.resourcemanager.recoveryservicesbackup.models.SourceSideScanStatus":"Microsoft.RecoveryServices.SourceSideScanStatus","com.azure.resourcemanager.recoveryservicesbackup.models.SourceSideScanSummary":"Microsoft.RecoveryServices.SourceSideScanSummary","com.azure.resourcemanager.recoveryservicesbackup.models.SqlDataDirectory":"Microsoft.RecoveryServices.SQLDataDirectory","com.azure.resourcemanager.recoveryservicesbackup.models.SqlDataDirectoryMapping":"Microsoft.RecoveryServices.SQLDataDirectoryMapping","com.azure.resourcemanager.recoveryservicesbackup.models.SqlDataDirectoryType":"Microsoft.RecoveryServices.SQLDataDirectoryType","com.azure.resourcemanager.recoveryservicesbackup.models.StorageType":"Microsoft.RecoveryServices.StorageType","com.azure.resourcemanager.recoveryservicesbackup.models.StorageTypeState":"Microsoft.RecoveryServices.StorageTypeState","com.azure.resourcemanager.recoveryservicesbackup.models.SubProtectionPolicy":"Microsoft.RecoveryServices.SubProtectionPolicy","com.azure.resourcemanager.recoveryservicesbackup.models.SupportStatus":"Microsoft.RecoveryServices.SupportStatus","com.azure.resourcemanager.recoveryservicesbackup.models.TargetAfsRestoreInfo":"Microsoft.RecoveryServices.TargetAFSRestoreInfo","com.azure.resourcemanager.recoveryservicesbackup.models.TargetDiskNetworkAccessOption":"Microsoft.RecoveryServices.TargetDiskNetworkAccessOption","com.azure.resourcemanager.recoveryservicesbackup.models.TargetDiskNetworkAccessSettings":"Microsoft.RecoveryServices.TargetDiskNetworkAccessSettings","com.azure.resourcemanager.recoveryservicesbackup.models.TargetRestoreInfo":"Microsoft.RecoveryServices.TargetRestoreInfo","com.azure.resourcemanager.recoveryservicesbackup.models.ThreatInfo":"Microsoft.RecoveryServices.ThreatInfo","com.azure.resourcemanager.recoveryservicesbackup.models.ThreatSeverity":"Microsoft.RecoveryServices.ThreatSeverity","com.azure.resourcemanager.recoveryservicesbackup.models.ThreatState":"Microsoft.RecoveryServices.ThreatState","com.azure.resourcemanager.recoveryservicesbackup.models.ThreatStatus":"Microsoft.RecoveryServices.ThreatStatus","com.azure.resourcemanager.recoveryservicesbackup.models.TieringCostRehydrationInfo":"Microsoft.RecoveryServices.TieringCostRehydrationInfo","com.azure.resourcemanager.recoveryservicesbackup.models.TieringCostSavingInfo":"Microsoft.RecoveryServices.TieringCostSavingInfo","com.azure.resourcemanager.recoveryservicesbackup.models.TieringMode":"Microsoft.RecoveryServices.TieringMode","com.azure.resourcemanager.recoveryservicesbackup.models.TieringPolicy":"Microsoft.RecoveryServices.TieringPolicy","com.azure.resourcemanager.recoveryservicesbackup.models.TriggerDataMoveRequest":"Microsoft.RecoveryServices.TriggerDataMoveRequest","com.azure.resourcemanager.recoveryservicesbackup.models.UnlockDeleteRequest":"Microsoft.RecoveryServices.UnlockDeleteRequest","com.azure.resourcemanager.recoveryservicesbackup.models.UsagesUnit":"Microsoft.RecoveryServices.UsagesUnit","com.azure.resourcemanager.recoveryservicesbackup.models.UserAssignedIdentityProperties":"Microsoft.RecoveryServices.UserAssignedIdentityProperties","com.azure.resourcemanager.recoveryservicesbackup.models.UserAssignedManagedIdentityDetails":"Microsoft.RecoveryServices.UserAssignedManagedIdentityDetails","com.azure.resourcemanager.recoveryservicesbackup.models.ValidateIaasVMRestoreOperationRequest":"Microsoft.RecoveryServices.ValidateIaasVMRestoreOperationRequest","com.azure.resourcemanager.recoveryservicesbackup.models.ValidateOperationRequest":"Microsoft.RecoveryServices.ValidateOperationRequest","com.azure.resourcemanager.recoveryservicesbackup.models.ValidateOperationRequestResource":"Microsoft.RecoveryServices.ValidateOperationRequestResource","com.azure.resourcemanager.recoveryservicesbackup.models.ValidateOperationResponse":"Microsoft.RecoveryServices.ValidateOperationResponse","com.azure.resourcemanager.recoveryservicesbackup.models.ValidateRestoreOperationRequest":"Microsoft.RecoveryServices.ValidateRestoreOperationRequest","com.azure.resourcemanager.recoveryservicesbackup.models.ValidationStatus":"Microsoft.RecoveryServices.ValidationStatus","com.azure.resourcemanager.recoveryservicesbackup.models.VaultJob":"Microsoft.RecoveryServices.VaultJob","com.azure.resourcemanager.recoveryservicesbackup.models.VaultJobErrorInfo":"Microsoft.RecoveryServices.VaultJobErrorInfo","com.azure.resourcemanager.recoveryservicesbackup.models.VaultJobExtendedInfo":"Microsoft.RecoveryServices.VaultJobExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.VaultRetentionPolicy":"Microsoft.RecoveryServices.VaultRetentionPolicy","com.azure.resourcemanager.recoveryservicesbackup.models.VaultSubResourceType":"Microsoft.RecoveryServices.VaultSubResourceType","com.azure.resourcemanager.recoveryservicesbackup.models.WeekOfMonth":"Microsoft.RecoveryServices.WeekOfMonth","com.azure.resourcemanager.recoveryservicesbackup.models.WeeklyRetentionFormat":"Microsoft.RecoveryServices.WeeklyRetentionFormat","com.azure.resourcemanager.recoveryservicesbackup.models.WeeklyRetentionSchedule":"Microsoft.RecoveryServices.WeeklyRetentionSchedule","com.azure.resourcemanager.recoveryservicesbackup.models.WeeklySchedule":"Microsoft.RecoveryServices.WeeklySchedule","com.azure.resourcemanager.recoveryservicesbackup.models.WorkloadInquiryDetails":"Microsoft.RecoveryServices.WorkloadInquiryDetails","com.azure.resourcemanager.recoveryservicesbackup.models.WorkloadItem":"Microsoft.RecoveryServices.WorkloadItem","com.azure.resourcemanager.recoveryservicesbackup.models.WorkloadItemType":"Microsoft.RecoveryServices.WorkloadItemType","com.azure.resourcemanager.recoveryservicesbackup.models.WorkloadProtectableItem":"Microsoft.RecoveryServices.WorkloadProtectableItem","com.azure.resourcemanager.recoveryservicesbackup.models.WorkloadType":"Microsoft.RecoveryServices.WorkloadType","com.azure.resourcemanager.recoveryservicesbackup.models.XcoolState":"Microsoft.RecoveryServices.XcoolState","com.azure.resourcemanager.recoveryservicesbackup.models.YearlyRetentionSchedule":"Microsoft.RecoveryServices.YearlyRetentionSchedule"},"generatedFiles":["src/main/java/com/azure/resourcemanager/recoveryservicesbackup/RecoveryServicesBackupManager.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/BackupEnginesClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/BackupJobsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/BackupOperationResultsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/BackupOperationStatusesClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/BackupPoliciesClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/BackupProtectableItemsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/BackupProtectedItemsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/BackupProtectionContainersClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/BackupProtectionIntentsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/BackupResourceEncryptionConfigsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/BackupResourceStorageConfigsNonCrrsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/BackupResourceVaultConfigsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/BackupStatusClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/BackupUsageSummariesClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/BackupWorkloadItemsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/BackupsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/BmsPrepareDataMoveOperationResultsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ConfigureSourceScansClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/DeletedProtectionContainersClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ExportJobsOperationResultsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/FeatureSupportsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/FetchTieringCostsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/GetTieringCostOperationResultsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ItemLevelRecoveryConnectionsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/JobCancellationsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/JobDetailsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/JobOperationResultsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/JobsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/OperationOperationsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/PrivateEndpointConnectionsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/PrivateEndpointsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ProtectableContainersClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ProtectedItemOperationResultsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ProtectedItemOperationStatusesClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ProtectedItemsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ProtectionContainerOperationResultsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ProtectionContainerRefreshOperationResultsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ProtectionContainersClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ProtectionIntentsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ProtectionPoliciesClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ProtectionPolicyOperationResultsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ProtectionPolicyOperationStatusesClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/RecoveryPointsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/RecoveryPointsRecommendedForMovesClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/RecoveryServicesBackupManagementClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ResourceGuardProxyOperationsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ResourceProvidersClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/RestoresClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/SecurityPINsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/TieringCostOperationStatusClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ValidateOperationResultsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ValidateOperationStatusesClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ValidateOperationsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/AzureVMResourceFeatureSupportResponseInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/BackupEngineBaseResourceInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/BackupManagementUsageInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/BackupResourceConfigResourceInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/BackupResourceEncryptionConfigExtendedResourceInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/BackupResourceVaultConfigResourceInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/BackupStatusResponseInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/ClientDiscoveryValueForSingleApiInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/JobResourceInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/OperationResultInfoBaseResourceInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/OperationStatusInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/PreValidateEnableBackupResponseInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/PrivateEndpointConnectionResourceInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/ProtectableContainerResourceInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/ProtectedItemResourceInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/ProtectionContainerResourceInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/ProtectionIntentResourceInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/ProtectionPolicyResourceInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/RecoveryPointResourceInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/ResourceGuardProxyBaseResourceInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/TieringCostInfoInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/TokenInformationInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/UnlockDeleteResponseInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/ValidateOperationsResponseInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/VaultStorageConfigOperationResultResponseInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/WorkloadItemResourceInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/WorkloadProtectableItemResourceInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/package-info.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/AzureVMResourceFeatureSupportResponseImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupEngineBaseResourceImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupEnginesClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupEnginesImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupJobsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupJobsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupManagementUsageImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupOperationResultsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupOperationResultsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupOperationStatusesClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupOperationStatusesImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupPoliciesClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupPoliciesImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupProtectableItemsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupProtectableItemsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupProtectedItemsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupProtectedItemsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupProtectionContainersClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupProtectionContainersImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupProtectionIntentsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupProtectionIntentsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupResourceConfigResourceImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupResourceEncryptionConfigExtendedResourceImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupResourceEncryptionConfigsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupResourceEncryptionConfigsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupResourceStorageConfigsNonCrrsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupResourceStorageConfigsNonCrrsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupResourceVaultConfigResourceImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupResourceVaultConfigsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupResourceVaultConfigsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupStatusClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupStatusImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupStatusResponseImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupUsageSummariesClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupUsageSummariesImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupWorkloadItemsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupWorkloadItemsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BmsPrepareDataMoveOperationResultsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BmsPrepareDataMoveOperationResultsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ClientDiscoveryValueForSingleApiImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ConfigureSourceScansClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ConfigureSourceScansImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/DeletedProtectionContainersClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/DeletedProtectionContainersImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ExportJobsOperationResultsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ExportJobsOperationResultsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/FeatureSupportsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/FeatureSupportsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/FetchTieringCostsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/FetchTieringCostsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/GetTieringCostOperationResultsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/GetTieringCostOperationResultsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ItemLevelRecoveryConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ItemLevelRecoveryConnectionsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/JobCancellationsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/JobCancellationsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/JobDetailsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/JobDetailsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/JobOperationResultsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/JobOperationResultsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/JobResourceImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/JobsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/JobsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/OperationOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/OperationOperationsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/OperationResultInfoBaseResourceImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/OperationStatusImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/PreValidateEnableBackupResponseImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/PrivateEndpointConnectionResourceImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/PrivateEndpointConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/PrivateEndpointConnectionsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/PrivateEndpointsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/PrivateEndpointsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectableContainerResourceImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectableContainersClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectableContainersImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectedItemOperationResultsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectedItemOperationResultsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectedItemOperationStatusesClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectedItemOperationStatusesImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectedItemResourceImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectedItemsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectedItemsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionContainerOperationResultsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionContainerOperationResultsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionContainerRefreshOperationResultsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionContainerRefreshOperationResultsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionContainerResourceImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionContainersClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionContainersImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionIntentResourceImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionIntentsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionIntentsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionPoliciesClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionPoliciesImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionPolicyOperationResultsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionPolicyOperationResultsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionPolicyOperationStatusesClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionPolicyOperationStatusesImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionPolicyResourceImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/RecoveryPointResourceImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/RecoveryPointsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/RecoveryPointsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/RecoveryPointsRecommendedForMovesClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/RecoveryPointsRecommendedForMovesImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/RecoveryServicesBackupManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/RecoveryServicesBackupManagementClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ResourceGuardProxyBaseResourceImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ResourceGuardProxyOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ResourceGuardProxyOperationsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ResourceProvidersClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ResourceProvidersImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/RestoresClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/RestoresImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/SecurityPINsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/SecurityPINsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/TieringCostInfoImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/TieringCostOperationStatusClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/TieringCostOperationStatusImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/TokenInformationImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/UnlockDeleteResponseImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ValidateOperationResultsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ValidateOperationResultsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ValidateOperationStatusesClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ValidateOperationStatusesImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ValidateOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ValidateOperationsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ValidateOperationsResponseImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/VaultStorageConfigOperationResultResponseImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/WorkloadItemResourceImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/WorkloadProtectableItemResourceImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/models/BackupEngineBaseResourceList.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/models/BackupManagementUsageList.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/models/ClientDiscoveryResponse.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/models/JobResourceList.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/models/ProtectableContainerResourceList.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/models/ProtectedItemResourceList.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/models/ProtectionContainerResourceList.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/models/ProtectionIntentResourceList.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/models/ProtectionPolicyResourceList.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/models/RecoveryPointResourceList.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/models/ResourceGuardProxyBaseResourceList.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/models/WorkloadItemResourceList.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/models/WorkloadProtectableItemResourceList.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/package-info.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AccessType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AcquireStorageAccountLock.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureBackupGoalFeatureSupportRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureBackupServerContainer.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureBackupServerEngine.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureFileShareBackupRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureFileShareProtectableItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureFileShareProtectionPolicy.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureFileShareProvisionIlrRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureFileShareRecoveryPoint.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureFileShareRestoreRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureFileShareType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureFileshareProtectedItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureFileshareProtectedItemExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSClassicComputeVMContainer.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSClassicComputeVMProtectableItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSClassicComputeVMProtectedItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSComputeVMContainer.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSComputeVMProtectableItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSComputeVMProtectedItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSvmErrorInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSvmHealthDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSvmJob.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSvmJobExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSvmJobTaskDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSvmJobV2.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSvmProtectedItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSvmProtectedItemExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSvmProtectionPolicy.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureRecoveryServiceVaultProtectionIntent.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureResourceProtectionIntent.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureSqlContainer.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureSqlProtectedItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureSqlProtectedItemExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureSqlProtectionPolicy.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureSqlagWorkloadContainerProtectionContainer.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureStorageContainer.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureStorageErrorInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureStorageJob.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureStorageJobExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureStorageJobTaskDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureStorageProtectableContainer.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVMAppContainerProtectableContainer.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVMAppContainerProtectionContainer.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVMResourceFeatureSupportRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVMResourceFeatureSupportResponse.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadProtectableItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadProtectedItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadProtectedItemExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadProtectionPolicy.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSapAseDatabaseProtectableItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSapAseDatabaseProtectedItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSapAseDatabaseWorkloadItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSapAseSystemProtectableItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSapAseSystemWorkloadItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSapHanaDBInstance.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSapHanaDBInstanceProtectedItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSapHanaDatabaseProtectableItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSapHanaDatabaseProtectedItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSapHanaDatabaseWorkloadItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSapHanaHsr.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSapHanaSystemProtectableItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSapHanaSystemWorkloadItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSqlAvailabilityGroupProtectableItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSqlDatabaseProtectableItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSqlDatabaseProtectedItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSqlDatabaseWorkloadItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSqlInstanceProtectableItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSqlInstanceWorkloadItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadAutoProtectionIntent.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadBackupRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadContainer.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadContainerAutoProtectionIntent.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadContainerExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadErrorInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadJob.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadJobExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadJobTaskDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadPointInTimeRecoveryPoint.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadPointInTimeRestoreRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadRecoveryPoint.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadRestoreRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSapAsePointInTimeRecoveryPoint.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSapAsePointInTimeRestoreRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSapAseRecoveryPoint.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSapAseRestoreRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSapHanaPointInTimeRecoveryPoint.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSapHanaPointInTimeRestoreRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSapHanaPointInTimeRestoreWithRehydrateRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSapHanaRecoveryPoint.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSapHanaRestoreRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSapHanaRestoreWithRehydrateRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSqlAutoProtectionIntent.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSqlPointInTimeRecoveryPoint.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSqlPointInTimeRestoreRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSqlRecoveryPoint.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSqlRecoveryPointExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSqlRestoreRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSqlRestoreWithRehydrateRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupEngineBase.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupEngineBaseResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupEngineExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupEngineType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupEngines.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupItemType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupJobs.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupManagementType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupManagementUsage.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupOperationResults.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupOperationStatuses.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupPolicies.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupProtectableItems.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupProtectedItems.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupProtectionContainers.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupProtectionIntents.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupRequestResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupResourceConfig.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupResourceConfigResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupResourceEncryptionConfig.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupResourceEncryptionConfigExtended.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupResourceEncryptionConfigExtendedResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupResourceEncryptionConfigResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupResourceEncryptionConfigs.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupResourceStorageConfigsNonCrrs.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupResourceVaultConfig.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupResourceVaultConfigResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupResourceVaultConfigs.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupStatus.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupStatusRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupStatusResponse.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupUsageSummaries.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupWorkloadItems.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/Backups.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BekDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BmsPrepareDataMoveOperationResults.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ClientDiscoveryDisplay.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ClientDiscoveryForLogSpecification.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ClientDiscoveryForProperties.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ClientDiscoveryForServiceSpecification.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ClientDiscoveryValueForSingleApi.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ClientScriptForConnect.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ConfigureSourceScans.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ContainerIdentityInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/CopyOptions.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/CreateMode.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DailyRetentionFormat.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DailyRetentionSchedule.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DailySchedule.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DataDiskDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DataDiskEncryptionSettings.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DataMoveLevel.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DataSourceType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/Day.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DayOfWeek.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DedupState.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DeletedProtectionContainers.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DiskDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DiskExclusionProperties.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DiskInformation.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DistributedNodesInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DpmBackupEngine.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DpmContainer.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DpmContainerExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DpmErrorInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DpmJob.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DpmJobExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DpmJobTaskDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DpmProtectedItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DpmProtectedItemExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/EncryptionAtRestType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/EncryptionDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/EnhancedSecurityState.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ErrorDetail.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ExportJobsOperationResultInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ExportJobsOperationResults.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ExtendedLocation.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ExtendedProperties.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/FabricName.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/FeatureSupportRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/FeatureSupports.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/FetchTieringCostInfoForRehydrationRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/FetchTieringCostInfoRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/FetchTieringCostSavingsInfoForPolicyRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/FetchTieringCostSavingsInfoForProtectedItemRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/FetchTieringCostSavingsInfoForVaultRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/FetchTieringCosts.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/GenericContainer.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/GenericContainerExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/GenericProtectedItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/GenericProtectionPolicy.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/GenericRecoveryPoint.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/GetTieringCostOperationResults.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/HealthStatus.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/HourlySchedule.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/HttpStatusCode.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/IaaSvmContainer.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/IaasVMBackupRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/IaasVMRecoveryPoint.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/IaasVMRestoreRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/IaasVMRestoreWithRehydrationRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/IaasVMSnapshotConsistencyType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/IaasVmProtectableItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/IaasVmilrRegistrationRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/IaasvmPolicyType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/IdentityBasedRestoreDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/IdentityInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/IlrRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/IlrRequestResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/InfrastructureEncryptionState.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/InquiryInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/InquiryStatus.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/InquiryValidation.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/InstantItemRecoveryOperationResultRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/InstantItemRecoveryTarget.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/InstantRPAdditionalDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ItemLevelRecoveryConnections.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/Job.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/JobCancellations.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/JobDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/JobOperationResults.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/JobResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/JobSupportedAction.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/Jobs.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/KekDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/KeyAndSecretDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/KpiResourceHealthDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/LastBackupStatus.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/LastUpdateStatus.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ListRecoveryPointsRecommendedForMoveRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/LogSchedulePolicy.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/LongTermRetentionPolicy.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/LongTermSchedulePolicy.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/MabContainer.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/MabContainerExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/MabContainerHealthDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/MabErrorInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/MabFileFolderProtectedItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/MabFileFolderProtectedItemExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/MabJob.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/MabJobExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/MabJobTaskDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/MabProtectionPolicy.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/MabServerType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/MonthOfYear.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/MonthlyRetentionSchedule.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/MoveRPAcrossTiersRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/NameInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/OperationOperations.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/OperationResultInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/OperationResultInfoBase.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/OperationResultInfoBaseResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/OperationStatus.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/OperationStatusError.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/OperationStatusExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/OperationStatusJobExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/OperationStatusJobsExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/OperationStatusProvisionIlrExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/OperationStatusValidateOperationExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/OperationStatusValues.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/OperationType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/OperationWorkerResponse.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/Operations.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/OverwriteOptions.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/PerDiskEncryptionSetId.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/PointInTimeRange.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/PolicyType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/PreBackupValidation.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/PreValidateEnableBackupRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/PreValidateEnableBackupResponse.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/PrepareDataMoveRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/PrepareDataMoveResponse.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/PrivateEndpoint.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/PrivateEndpointConnection.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/PrivateEndpointConnectionResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/PrivateEndpointConnectionStatus.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/PrivateEndpointConnections.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/PrivateEndpoints.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/PrivateLinkServiceConnectionState.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectableContainer.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectableContainerResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectableContainerType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectableContainers.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectedItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectedItemConfigureSourceScanRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectedItemHealthStatus.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectedItemOperationResults.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectedItemOperationStatuses.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectedItemResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectedItemState.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectedItems.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionContainer.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionContainerOperationResults.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionContainerRefreshOperationResults.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionContainerResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionContainers.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionIntent.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionIntentItemType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionIntentResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionIntents.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionPolicies.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionPolicy.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionPolicyOperationResults.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionPolicyOperationStatuses.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionPolicyResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionState.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionStatus.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProvisioningState.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryMode.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPoint.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPointDiskConfiguration.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPointImmutabilityProperties.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPointMoveReadinessInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPointProperties.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPointRehydrationInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPointResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPointTierInformation.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPointTierInformationV2.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPointTierStatus.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPointTierType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPoints.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPointsRecommendedForMoves.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RehydrationPriority.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ResourceGuardOperationDetail.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ResourceGuardProxyBase.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ResourceGuardProxyBaseResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ResourceGuardProxyOperations.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ResourceHealthDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ResourceHealthStatus.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ResourceList.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ResourceProviders.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RestoreFileSpecs.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RestorePointType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RestoreRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RestoreRequestResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RestoreRequestType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/Restores.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RetentionDuration.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RetentionDurationType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RetentionPolicy.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RetentionScheduleFormat.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SchedulePolicy.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ScheduleRunType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SecuredVMDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SecurityPINs.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SecurityPinBase.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/Settings.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SimpleRetentionPolicy.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SimpleSchedulePolicy.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SimpleSchedulePolicyV2.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SnapshotBackupAdditionalDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SnapshotRestoreParameters.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SoftDeleteFeatureState.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SourceScanAction.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SourceSideScanInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SourceSideScanStatus.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SourceSideScanSummary.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SqlDataDirectory.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SqlDataDirectoryMapping.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SqlDataDirectoryType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/StorageType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/StorageTypeState.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SubProtectionPolicy.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SupportStatus.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/TargetAfsRestoreInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/TargetDiskNetworkAccessOption.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/TargetDiskNetworkAccessSettings.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/TargetRestoreInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ThreatInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ThreatSeverity.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ThreatState.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ThreatStatus.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/TieringCostInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/TieringCostOperationStatus.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/TieringCostRehydrationInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/TieringCostSavingInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/TieringMode.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/TieringPolicy.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/TokenInformation.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/TriggerDataMoveRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/UnlockDeleteRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/UnlockDeleteResponse.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/UsagesUnit.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/UserAssignedIdentityProperties.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/UserAssignedManagedIdentityDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ValidateIaasVMRestoreOperationRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ValidateOperationRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ValidateOperationRequestResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ValidateOperationResponse.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ValidateOperationResults.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ValidateOperationStatuses.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ValidateOperations.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ValidateOperationsResponse.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ValidateRestoreOperationRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ValidationStatus.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/VaultJob.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/VaultJobErrorInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/VaultJobExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/VaultRetentionPolicy.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/VaultStorageConfigOperationResultResponse.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/VaultSubResourceType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/WeekOfMonth.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/WeeklyRetentionFormat.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/WeeklyRetentionSchedule.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/WeeklySchedule.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/WorkloadInquiryDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/WorkloadItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/WorkloadItemResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/WorkloadItemType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/WorkloadProtectableItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/WorkloadProtectableItemResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/WorkloadType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/XcoolState.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/YearlyRetentionSchedule.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/package-info.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file +{"flavor":"azure","apiVersions":{"Microsoft.RecoveryServices":"2026-10-01"},"crossLanguagePackageId":"Microsoft.RecoveryServices","crossLanguageVersion":"f7f804765554","crossLanguageDefinitions":{"com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupEnginesClient":"Microsoft.RecoveryServices.BackupEngines","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupEnginesClient.get":"Microsoft.RecoveryServices.BackupEngines.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupEnginesClient.getWithResponse":"Microsoft.RecoveryServices.BackupEngines.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupEnginesClient.list":"Microsoft.RecoveryServices.BackupEngines.list","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupJobsClient":"Microsoft.RecoveryServices.BackupJobs","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupJobsClient.list":"Microsoft.RecoveryServices.BackupJobs.list","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupOperationResultsClient":"Microsoft.RecoveryServices.BackupOperationResults","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupOperationResultsClient.get":"Microsoft.RecoveryServices.BackupOperationResults.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupOperationResultsClient.getWithResponse":"Microsoft.RecoveryServices.BackupOperationResults.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupOperationStatusesClient":"Microsoft.RecoveryServices.BackupOperationStatuses","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupOperationStatusesClient.get":"Microsoft.RecoveryServices.BackupOperationStatuses.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupOperationStatusesClient.getWithResponse":"Microsoft.RecoveryServices.BackupOperationStatuses.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupPoliciesClient":"Microsoft.RecoveryServices.BackupPolicies","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupPoliciesClient.list":"Microsoft.RecoveryServices.BackupPolicies.list","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupProtectableItemsClient":"Microsoft.RecoveryServices.BackupProtectableItems","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupProtectableItemsClient.list":"Microsoft.RecoveryServices.BackupProtectableItems.list","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupProtectedItemsClient":"Microsoft.RecoveryServices.BackupProtectedItems","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupProtectedItemsClient.list":"Microsoft.RecoveryServices.BackupProtectedItems.list","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupProtectionContainersClient":"Microsoft.RecoveryServices.BackupProtectionContainers","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupProtectionContainersClient.list":"Microsoft.RecoveryServices.BackupProtectionContainers.list","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupProtectionIntentsClient":"Microsoft.RecoveryServices.BackupProtectionIntent","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupProtectionIntentsClient.list":"Microsoft.RecoveryServices.BackupProtectionIntent.list","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupResourceEncryptionConfigsClient":"Microsoft.RecoveryServices.BackupResourceEncryptionConfigs","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupResourceEncryptionConfigsClient.get":"Microsoft.RecoveryServices.BackupResourceEncryptionConfigs.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupResourceEncryptionConfigsClient.getWithResponse":"Microsoft.RecoveryServices.BackupResourceEncryptionConfigs.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupResourceEncryptionConfigsClient.update":"Microsoft.RecoveryServices.BackupResourceEncryptionConfigs.update","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupResourceEncryptionConfigsClient.updateWithResponse":"Microsoft.RecoveryServices.BackupResourceEncryptionConfigs.update","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupResourceStorageConfigsNonCrrsClient":"Microsoft.RecoveryServices.BackupResourceStorageConfigsNonCRR","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupResourceStorageConfigsNonCrrsClient.get":"Microsoft.RecoveryServices.BackupResourceStorageConfigsNonCRR.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupResourceStorageConfigsNonCrrsClient.getWithResponse":"Microsoft.RecoveryServices.BackupResourceStorageConfigsNonCRR.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupResourceStorageConfigsNonCrrsClient.patch":"Microsoft.RecoveryServices.BackupResourceStorageConfigsNonCRR.patch","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupResourceStorageConfigsNonCrrsClient.patchWithResponse":"Microsoft.RecoveryServices.BackupResourceStorageConfigsNonCRR.patch","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupResourceStorageConfigsNonCrrsClient.update":"Microsoft.RecoveryServices.BackupResourceStorageConfigsNonCRR.update","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupResourceStorageConfigsNonCrrsClient.updateWithResponse":"Microsoft.RecoveryServices.BackupResourceStorageConfigsNonCRR.update","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupResourceVaultConfigsClient":"Microsoft.RecoveryServices.BackupResourceVaultConfigs","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupResourceVaultConfigsClient.get":"Microsoft.RecoveryServices.BackupResourceVaultConfigs.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupResourceVaultConfigsClient.getWithResponse":"Microsoft.RecoveryServices.BackupResourceVaultConfigs.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupResourceVaultConfigsClient.put":"Microsoft.RecoveryServices.BackupResourceVaultConfigs.put","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupResourceVaultConfigsClient.putWithResponse":"Microsoft.RecoveryServices.BackupResourceVaultConfigs.put","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupResourceVaultConfigsClient.update":"Microsoft.RecoveryServices.BackupResourceVaultConfigs.update","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupResourceVaultConfigsClient.updateWithResponse":"Microsoft.RecoveryServices.BackupResourceVaultConfigs.update","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupStatusClient":"Microsoft.RecoveryServices.BackupStatus","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupStatusClient.get":"Microsoft.RecoveryServices.BackupStatus.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupStatusClient.getWithResponse":"Microsoft.RecoveryServices.BackupStatus.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupUsageSummariesClient":"Microsoft.RecoveryServices.BackupUsageSummaries","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupUsageSummariesClient.list":"Microsoft.RecoveryServices.BackupUsageSummaries.list","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupWorkloadItemsClient":"Microsoft.RecoveryServices.BackupWorkloadItems","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupWorkloadItemsClient.list":"Microsoft.RecoveryServices.BackupWorkloadItems.list","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupsClient":"Microsoft.RecoveryServices.Backups","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupsClient.trigger":"Microsoft.RecoveryServices.Backups.trigger","com.azure.resourcemanager.recoveryservicesbackup.fluent.BackupsClient.triggerWithResponse":"Microsoft.RecoveryServices.Backups.trigger","com.azure.resourcemanager.recoveryservicesbackup.fluent.BmsPrepareDataMoveOperationResultsClient":"Microsoft.RecoveryServices.BMSPrepareDataMoveOperationResult","com.azure.resourcemanager.recoveryservicesbackup.fluent.BmsPrepareDataMoveOperationResultsClient.get":"Microsoft.RecoveryServices.BMSPrepareDataMoveOperationResult.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.BmsPrepareDataMoveOperationResultsClient.getWithResponse":"Microsoft.RecoveryServices.BMSPrepareDataMoveOperationResult.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ConfigureSourceScansClient":"Microsoft.RecoveryServices.ConfigureSourceScan","com.azure.resourcemanager.recoveryservicesbackup.fluent.ConfigureSourceScansClient.beginExecute":"Microsoft.RecoveryServices.ConfigureSourceScan.execute","com.azure.resourcemanager.recoveryservicesbackup.fluent.ConfigureSourceScansClient.execute":"Microsoft.RecoveryServices.ConfigureSourceScan.execute","com.azure.resourcemanager.recoveryservicesbackup.fluent.DeletedProtectionContainersClient":"Microsoft.RecoveryServices.DeletedProtectionContainers","com.azure.resourcemanager.recoveryservicesbackup.fluent.DeletedProtectionContainersClient.list":"Microsoft.RecoveryServices.DeletedProtectionContainers.list","com.azure.resourcemanager.recoveryservicesbackup.fluent.ExportJobsOperationResultsClient":"Microsoft.RecoveryServices.ExportJobsOperationResults","com.azure.resourcemanager.recoveryservicesbackup.fluent.ExportJobsOperationResultsClient.get":"Microsoft.RecoveryServices.ExportJobsOperationResults.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ExportJobsOperationResultsClient.getWithResponse":"Microsoft.RecoveryServices.ExportJobsOperationResults.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.FeatureSupportsClient":"Microsoft.RecoveryServices.FeatureSupport","com.azure.resourcemanager.recoveryservicesbackup.fluent.FeatureSupportsClient.validate":"Microsoft.RecoveryServices.FeatureSupport.validate","com.azure.resourcemanager.recoveryservicesbackup.fluent.FeatureSupportsClient.validateWithResponse":"Microsoft.RecoveryServices.FeatureSupport.validate","com.azure.resourcemanager.recoveryservicesbackup.fluent.FetchTieringCostsClient":"Microsoft.RecoveryServices.FetchTieringCost","com.azure.resourcemanager.recoveryservicesbackup.fluent.FetchTieringCostsClient.beginPost":"Microsoft.RecoveryServices.FetchTieringCost.post","com.azure.resourcemanager.recoveryservicesbackup.fluent.FetchTieringCostsClient.post":"Microsoft.RecoveryServices.FetchTieringCost.post","com.azure.resourcemanager.recoveryservicesbackup.fluent.GetTieringCostOperationResultsClient":"Microsoft.RecoveryServices.GetTieringCostOperationResult","com.azure.resourcemanager.recoveryservicesbackup.fluent.GetTieringCostOperationResultsClient.get":"Microsoft.RecoveryServices.GetTieringCostOperationResult.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.GetTieringCostOperationResultsClient.getWithResponse":"Microsoft.RecoveryServices.GetTieringCostOperationResult.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ItemLevelRecoveryConnectionsClient":"Microsoft.RecoveryServices.ItemLevelRecoveryConnections","com.azure.resourcemanager.recoveryservicesbackup.fluent.ItemLevelRecoveryConnectionsClient.listInstantItemRecoveryOperationResult":"Microsoft.RecoveryServices.ItemLevelRecoveryConnections.listInstantItemRecoveryOperationResult","com.azure.resourcemanager.recoveryservicesbackup.fluent.ItemLevelRecoveryConnectionsClient.listInstantItemRecoveryOperationResultWithResponse":"Microsoft.RecoveryServices.ItemLevelRecoveryConnections.listInstantItemRecoveryOperationResult","com.azure.resourcemanager.recoveryservicesbackup.fluent.ItemLevelRecoveryConnectionsClient.provision":"Microsoft.RecoveryServices.ItemLevelRecoveryConnections.provision","com.azure.resourcemanager.recoveryservicesbackup.fluent.ItemLevelRecoveryConnectionsClient.provisionWithResponse":"Microsoft.RecoveryServices.ItemLevelRecoveryConnections.provision","com.azure.resourcemanager.recoveryservicesbackup.fluent.ItemLevelRecoveryConnectionsClient.revoke":"Microsoft.RecoveryServices.ItemLevelRecoveryConnections.revoke","com.azure.resourcemanager.recoveryservicesbackup.fluent.ItemLevelRecoveryConnectionsClient.revokeWithResponse":"Microsoft.RecoveryServices.ItemLevelRecoveryConnections.revoke","com.azure.resourcemanager.recoveryservicesbackup.fluent.JobCancellationsClient":"Microsoft.RecoveryServices.JobCancellations","com.azure.resourcemanager.recoveryservicesbackup.fluent.JobCancellationsClient.trigger":"Microsoft.RecoveryServices.JobCancellations.trigger","com.azure.resourcemanager.recoveryservicesbackup.fluent.JobCancellationsClient.triggerWithResponse":"Microsoft.RecoveryServices.JobCancellations.trigger","com.azure.resourcemanager.recoveryservicesbackup.fluent.JobDetailsClient":"Microsoft.RecoveryServices.JobDetails","com.azure.resourcemanager.recoveryservicesbackup.fluent.JobDetailsClient.get":"Microsoft.RecoveryServices.JobDetails.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.JobDetailsClient.getWithResponse":"Microsoft.RecoveryServices.JobDetails.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.JobOperationResultsClient":"Microsoft.RecoveryServices.JobOperationResults","com.azure.resourcemanager.recoveryservicesbackup.fluent.JobOperationResultsClient.get":"Microsoft.RecoveryServices.JobOperationResults.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.JobOperationResultsClient.getWithResponse":"Microsoft.RecoveryServices.JobOperationResults.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.JobsClient":"Microsoft.RecoveryServices.Jobs","com.azure.resourcemanager.recoveryservicesbackup.fluent.JobsClient.export":"Microsoft.RecoveryServices.Jobs.export","com.azure.resourcemanager.recoveryservicesbackup.fluent.JobsClient.exportWithResponse":"Microsoft.RecoveryServices.Jobs.export","com.azure.resourcemanager.recoveryservicesbackup.fluent.OperationOperationsClient":"Microsoft.RecoveryServices","com.azure.resourcemanager.recoveryservicesbackup.fluent.OperationOperationsClient.validate":"Microsoft.RecoveryServices.OperationOperationGroup.validate","com.azure.resourcemanager.recoveryservicesbackup.fluent.OperationOperationsClient.validateWithResponse":"Microsoft.RecoveryServices.OperationOperationGroup.validate","com.azure.resourcemanager.recoveryservicesbackup.fluent.OperationsClient":"Microsoft.RecoveryServices.Operations","com.azure.resourcemanager.recoveryservicesbackup.fluent.OperationsClient.list":"Azure.ResourceManager.Legacy.Operations.list","com.azure.resourcemanager.recoveryservicesbackup.fluent.PrivateEndpointConnectionsClient":"Microsoft.RecoveryServices","com.azure.resourcemanager.recoveryservicesbackup.fluent.PrivateEndpointConnectionsClient.beginDelete":"Microsoft.RecoveryServices.PrivateEndpointConnectionResources.delete","com.azure.resourcemanager.recoveryservicesbackup.fluent.PrivateEndpointConnectionsClient.beginPut":"Microsoft.RecoveryServices.PrivateEndpointConnectionResources.put","com.azure.resourcemanager.recoveryservicesbackup.fluent.PrivateEndpointConnectionsClient.delete":"Microsoft.RecoveryServices.PrivateEndpointConnectionResources.delete","com.azure.resourcemanager.recoveryservicesbackup.fluent.PrivateEndpointConnectionsClient.get":"Microsoft.RecoveryServices.PrivateEndpointConnectionResources.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.PrivateEndpointConnectionsClient.getWithResponse":"Microsoft.RecoveryServices.PrivateEndpointConnectionResources.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.PrivateEndpointConnectionsClient.put":"Microsoft.RecoveryServices.PrivateEndpointConnectionResources.put","com.azure.resourcemanager.recoveryservicesbackup.fluent.PrivateEndpointsClient":"Microsoft.RecoveryServices","com.azure.resourcemanager.recoveryservicesbackup.fluent.PrivateEndpointsClient.getOperationStatus":"Microsoft.RecoveryServices.PrivateEndpointOperationStatuses.getOperationStatus","com.azure.resourcemanager.recoveryservicesbackup.fluent.PrivateEndpointsClient.getOperationStatusWithResponse":"Microsoft.RecoveryServices.PrivateEndpointOperationStatuses.getOperationStatus","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectableContainersClient":"Microsoft.RecoveryServices.ProtectableContainers","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectableContainersClient.list":"Microsoft.RecoveryServices.ProtectableContainers.list","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectedItemOperationResultsClient":"Microsoft.RecoveryServices.ProtectedItemOperationResults","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectedItemOperationResultsClient.get":"Microsoft.RecoveryServices.ProtectedItemOperationResults.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectedItemOperationResultsClient.getWithResponse":"Microsoft.RecoveryServices.ProtectedItemOperationResults.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectedItemOperationStatusesClient":"Microsoft.RecoveryServices.ProtectedItemOperationStatuses","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectedItemOperationStatusesClient.get":"Microsoft.RecoveryServices.ProtectedItemOperationStatuses.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectedItemOperationStatusesClient.getWithResponse":"Microsoft.RecoveryServices.ProtectedItemOperationStatuses.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectedItemsClient":"Microsoft.RecoveryServices.ProtectedItems","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectedItemsClient.beginCreateOrUpdate":"Microsoft.RecoveryServices.ProtectedItems.createOrUpdate","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectedItemsClient.createOrUpdate":"Microsoft.RecoveryServices.ProtectedItems.createOrUpdate","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectedItemsClient.delete":"Microsoft.RecoveryServices.ProtectedItems.delete","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectedItemsClient.deleteWithResponse":"Microsoft.RecoveryServices.ProtectedItems.delete","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectedItemsClient.get":"Microsoft.RecoveryServices.ProtectedItems.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectedItemsClient.getWithResponse":"Microsoft.RecoveryServices.ProtectedItems.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainerOperationResultsClient":"Microsoft.RecoveryServices.ProtectionContainerOperationResults","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainerOperationResultsClient.get":"Microsoft.RecoveryServices.ProtectionContainerOperationResults.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainerOperationResultsClient.getWithResponse":"Microsoft.RecoveryServices.ProtectionContainerOperationResults.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainerRefreshOperationResultsClient":"Microsoft.RecoveryServices.ProtectionContainerRefreshOperationResults","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainerRefreshOperationResultsClient.get":"Microsoft.RecoveryServices.ProtectionContainerRefreshOperationResults.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainerRefreshOperationResultsClient.getWithResponse":"Microsoft.RecoveryServices.ProtectionContainerRefreshOperationResults.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainerRefreshOperationStatusesClient":"Microsoft.RecoveryServices.ProtectionContainerRefreshOperationStatuses","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainerRefreshOperationStatusesClient.get":"Microsoft.RecoveryServices.ProtectionContainerRefreshOperationStatuses.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainerRefreshOperationStatusesClient.getWithResponse":"Microsoft.RecoveryServices.ProtectionContainerRefreshOperationStatuses.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainersClient":"Microsoft.RecoveryServices.ProtectionContainers","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainersClient.beginRegister":"Microsoft.RecoveryServices.ProtectionContainers.register","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainersClient.get":"Microsoft.RecoveryServices.ProtectionContainers.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainersClient.getWithResponse":"Microsoft.RecoveryServices.ProtectionContainers.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainersClient.inquire":"Microsoft.RecoveryServices.ProtectionContainers.inquire","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainersClient.inquireWithResponse":"Microsoft.RecoveryServices.ProtectionContainers.inquire","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainersClient.refresh":"Microsoft.RecoveryServices.ProtectionContainersOperationGroup.refresh","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainersClient.refreshWithResponse":"Microsoft.RecoveryServices.ProtectionContainersOperationGroup.refresh","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainersClient.register":"Microsoft.RecoveryServices.ProtectionContainers.register","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainersClient.unregister":"Microsoft.RecoveryServices.ProtectionContainers.unregister","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionContainersClient.unregisterWithResponse":"Microsoft.RecoveryServices.ProtectionContainers.unregister","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionIntentsClient":"Microsoft.RecoveryServices","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionIntentsClient.createOrUpdate":"Microsoft.RecoveryServices.ProtectionIntentResources.createOrUpdate","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionIntentsClient.createOrUpdateWithResponse":"Microsoft.RecoveryServices.ProtectionIntentResources.createOrUpdate","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionIntentsClient.delete":"Microsoft.RecoveryServices.ProtectionIntentResources.delete","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionIntentsClient.deleteWithResponse":"Microsoft.RecoveryServices.ProtectionIntentResources.delete","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionIntentsClient.get":"Microsoft.RecoveryServices.ProtectionIntentResources.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionIntentsClient.getWithResponse":"Microsoft.RecoveryServices.ProtectionIntentResources.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionIntentsClient.validate":"Microsoft.RecoveryServices.ProtectionIntentOperationGroup.validate","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionIntentsClient.validateWithResponse":"Microsoft.RecoveryServices.ProtectionIntentOperationGroup.validate","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionPoliciesClient":"Microsoft.RecoveryServices.ProtectionPolicies","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionPoliciesClient.beginDelete":"Microsoft.RecoveryServices.ProtectionPolicies.delete","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionPoliciesClient.createOrUpdate":"Microsoft.RecoveryServices.ProtectionPolicies.createOrUpdate","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionPoliciesClient.createOrUpdateWithResponse":"Microsoft.RecoveryServices.ProtectionPolicies.createOrUpdate","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionPoliciesClient.delete":"Microsoft.RecoveryServices.ProtectionPolicies.delete","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionPoliciesClient.get":"Microsoft.RecoveryServices.ProtectionPolicies.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionPoliciesClient.getWithResponse":"Microsoft.RecoveryServices.ProtectionPolicies.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionPolicyOperationResultsClient":"Microsoft.RecoveryServices.ProtectionPolicyOperationResults","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionPolicyOperationResultsClient.get":"Microsoft.RecoveryServices.ProtectionPolicyOperationResults.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionPolicyOperationResultsClient.getWithResponse":"Microsoft.RecoveryServices.ProtectionPolicyOperationResults.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionPolicyOperationStatusesClient":"Microsoft.RecoveryServices.ProtectionPolicyOperationStatuses","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionPolicyOperationStatusesClient.get":"Microsoft.RecoveryServices.ProtectionPolicyOperationStatuses.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ProtectionPolicyOperationStatusesClient.getWithResponse":"Microsoft.RecoveryServices.ProtectionPolicyOperationStatuses.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.RecoveryPointsClient":"Microsoft.RecoveryServices.RecoveryPoints","com.azure.resourcemanager.recoveryservicesbackup.fluent.RecoveryPointsClient.beginGetRPExtendedInfo":"Microsoft.RecoveryServices.RecoveryPointsExtendedInfo.getRPExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.fluent.RecoveryPointsClient.get":"Microsoft.RecoveryServices.RecoveryPoints.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.RecoveryPointsClient.getRPExtendedInfo":"Microsoft.RecoveryServices.RecoveryPointsExtendedInfo.getRPExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.fluent.RecoveryPointsClient.getRPExtendedInfoOperationResult":"Microsoft.RecoveryServices.RecoveryPointsExtendedInfo.getRPExtendedInfoOperationResult","com.azure.resourcemanager.recoveryservicesbackup.fluent.RecoveryPointsClient.getRPExtendedInfoOperationResultWithResponse":"Microsoft.RecoveryServices.RecoveryPointsExtendedInfo.getRPExtendedInfoOperationResult","com.azure.resourcemanager.recoveryservicesbackup.fluent.RecoveryPointsClient.getWithResponse":"Microsoft.RecoveryServices.RecoveryPoints.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.RecoveryPointsClient.list":"Microsoft.RecoveryServices.RecoveryPoints.list","com.azure.resourcemanager.recoveryservicesbackup.fluent.RecoveryPointsRecommendedForMovesClient":"Microsoft.RecoveryServices.RecoveryPointsRecommendedForMove","com.azure.resourcemanager.recoveryservicesbackup.fluent.RecoveryPointsRecommendedForMovesClient.list":"Microsoft.RecoveryServices.RecoveryPointsRecommendedForMove.list","com.azure.resourcemanager.recoveryservicesbackup.fluent.RecoveryServicesBackupManagementClient":"Microsoft.RecoveryServices","com.azure.resourcemanager.recoveryservicesbackup.fluent.ResourceGuardProxyOperationsClient":"Microsoft.RecoveryServices","com.azure.resourcemanager.recoveryservicesbackup.fluent.ResourceGuardProxyOperationsClient.delete":"Microsoft.RecoveryServices.ResourceGuardProxy.delete","com.azure.resourcemanager.recoveryservicesbackup.fluent.ResourceGuardProxyOperationsClient.deleteWithResponse":"Microsoft.RecoveryServices.ResourceGuardProxy.delete","com.azure.resourcemanager.recoveryservicesbackup.fluent.ResourceGuardProxyOperationsClient.get":"Microsoft.RecoveryServices.ResourceGuardProxy.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ResourceGuardProxyOperationsClient.getWithResponse":"Microsoft.RecoveryServices.ResourceGuardProxy.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ResourceGuardProxyOperationsClient.list":"Microsoft.RecoveryServices.ResourceGuardProxies.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ResourceGuardProxyOperationsClient.put":"Microsoft.RecoveryServices.ResourceGuardProxy.put","com.azure.resourcemanager.recoveryservicesbackup.fluent.ResourceGuardProxyOperationsClient.putWithResponse":"Microsoft.RecoveryServices.ResourceGuardProxy.put","com.azure.resourcemanager.recoveryservicesbackup.fluent.ResourceGuardProxyOperationsClient.unlockDelete":"Microsoft.RecoveryServices.ResourceGuardProxy.unlockDelete","com.azure.resourcemanager.recoveryservicesbackup.fluent.ResourceGuardProxyOperationsClient.unlockDeleteWithResponse":"Microsoft.RecoveryServices.ResourceGuardProxy.unlockDelete","com.azure.resourcemanager.recoveryservicesbackup.fluent.ResourceProvidersClient":"Microsoft.RecoveryServices","com.azure.resourcemanager.recoveryservicesbackup.fluent.ResourceProvidersClient.beginBmsPrepareDataMove":"Microsoft.RecoveryServices.BackupResourceStorageConfigsNonCRR.bmsPrepareDataMove","com.azure.resourcemanager.recoveryservicesbackup.fluent.ResourceProvidersClient.beginBmsTriggerDataMove":"Microsoft.RecoveryServices.BackupResourceStorageConfigsNonCRR.bmsTriggerDataMove","com.azure.resourcemanager.recoveryservicesbackup.fluent.ResourceProvidersClient.beginMoveRecoveryPoint":"Microsoft.RecoveryServices.RecoveryPoints.moveRecoveryPoint","com.azure.resourcemanager.recoveryservicesbackup.fluent.ResourceProvidersClient.bmsPrepareDataMove":"Microsoft.RecoveryServices.BackupResourceStorageConfigsNonCRR.bmsPrepareDataMove","com.azure.resourcemanager.recoveryservicesbackup.fluent.ResourceProvidersClient.bmsTriggerDataMove":"Microsoft.RecoveryServices.BackupResourceStorageConfigsNonCRR.bmsTriggerDataMove","com.azure.resourcemanager.recoveryservicesbackup.fluent.ResourceProvidersClient.getOperationStatus":"Microsoft.RecoveryServices.BackupResourceConfigOperationStatuses.getOperationStatus","com.azure.resourcemanager.recoveryservicesbackup.fluent.ResourceProvidersClient.getOperationStatusWithResponse":"Microsoft.RecoveryServices.BackupResourceConfigOperationStatuses.getOperationStatus","com.azure.resourcemanager.recoveryservicesbackup.fluent.ResourceProvidersClient.moveRecoveryPoint":"Microsoft.RecoveryServices.RecoveryPoints.moveRecoveryPoint","com.azure.resourcemanager.recoveryservicesbackup.fluent.RestoresClient":"Microsoft.RecoveryServices.Restores","com.azure.resourcemanager.recoveryservicesbackup.fluent.RestoresClient.beginTrigger":"Microsoft.RecoveryServices.Restores.trigger","com.azure.resourcemanager.recoveryservicesbackup.fluent.RestoresClient.trigger":"Microsoft.RecoveryServices.Restores.trigger","com.azure.resourcemanager.recoveryservicesbackup.fluent.SecurityPINsClient":"Microsoft.RecoveryServices.SecurityPINs","com.azure.resourcemanager.recoveryservicesbackup.fluent.SecurityPINsClient.get":"Microsoft.RecoveryServices.SecurityPINs.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.SecurityPINsClient.getWithResponse":"Microsoft.RecoveryServices.SecurityPINs.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.TieringCostOperationStatusClient":"Microsoft.RecoveryServices.TieringCostOperationStatus","com.azure.resourcemanager.recoveryservicesbackup.fluent.TieringCostOperationStatusClient.get":"Microsoft.RecoveryServices.TieringCostOperationStatus.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.TieringCostOperationStatusClient.getWithResponse":"Microsoft.RecoveryServices.TieringCostOperationStatus.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ValidateOperationResultsClient":"Microsoft.RecoveryServices.ValidateOperationResults","com.azure.resourcemanager.recoveryservicesbackup.fluent.ValidateOperationResultsClient.get":"Microsoft.RecoveryServices.ValidateOperationResults.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ValidateOperationResultsClient.getWithResponse":"Microsoft.RecoveryServices.ValidateOperationResults.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ValidateOperationStatusesClient":"Microsoft.RecoveryServices.ValidateOperationStatuses","com.azure.resourcemanager.recoveryservicesbackup.fluent.ValidateOperationStatusesClient.get":"Microsoft.RecoveryServices.ValidateOperationStatuses.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ValidateOperationStatusesClient.getWithResponse":"Microsoft.RecoveryServices.ValidateOperationStatuses.get","com.azure.resourcemanager.recoveryservicesbackup.fluent.ValidateOperationsClient":"Microsoft.RecoveryServices.ValidateOperation","com.azure.resourcemanager.recoveryservicesbackup.fluent.ValidateOperationsClient.beginTrigger":"Microsoft.RecoveryServices.ValidateOperation.trigger","com.azure.resourcemanager.recoveryservicesbackup.fluent.ValidateOperationsClient.trigger":"Microsoft.RecoveryServices.ValidateOperation.trigger","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.AzureVMResourceFeatureSupportResponseInner":"Microsoft.RecoveryServices.AzureVMResourceFeatureSupportResponse","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.BackupEngineBaseResourceInner":"Microsoft.RecoveryServices.BackupEngineBaseResource","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.BackupManagementUsageInner":"Microsoft.RecoveryServices.BackupManagementUsage","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.BackupResourceConfigResourceInner":"Microsoft.RecoveryServices.BackupResourceConfigResource","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.BackupResourceEncryptionConfigExtendedResourceInner":"Microsoft.RecoveryServices.BackupResourceEncryptionConfigExtendedResource","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.BackupResourceVaultConfigResourceInner":"Microsoft.RecoveryServices.BackupResourceVaultConfigResource","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.BackupStatusResponseInner":"Microsoft.RecoveryServices.BackupStatusResponse","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.ClientDiscoveryValueForSingleApiInner":"Microsoft.RecoveryServices.ClientDiscoveryValueForSingleApi","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.JobResourceInner":"Microsoft.RecoveryServices.JobResource","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.OperationResultInfoBaseResourceInner":"Microsoft.RecoveryServices.OperationResultInfoBaseResource","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.OperationStatusInner":"Microsoft.RecoveryServices.OperationStatus","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.PreValidateEnableBackupResponseInner":"Microsoft.RecoveryServices.PreValidateEnableBackupResponse","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.PrivateEndpointConnectionResourceInner":"Microsoft.RecoveryServices.PrivateEndpointConnectionResource","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.ProtectableContainerResourceInner":"Microsoft.RecoveryServices.ProtectableContainerResource","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.ProtectedItemResourceInner":"Microsoft.RecoveryServices.ProtectedItemResource","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.ProtectionContainerResourceInner":"Microsoft.RecoveryServices.ProtectionContainerResource","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.ProtectionIntentResourceInner":"Microsoft.RecoveryServices.ProtectionIntentResource","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.ProtectionPolicyResourceInner":"Microsoft.RecoveryServices.ProtectionPolicyResource","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.RPExtendedInfoResourceListInner":"Microsoft.RecoveryServices.RPExtendedInfoResourceList","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.RecoveryPointResourceInner":"Microsoft.RecoveryServices.RecoveryPointResource","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.ResourceGuardProxyBaseResourceInner":"Microsoft.RecoveryServices.ResourceGuardProxyBaseResource","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.TieringCostInfoInner":"Microsoft.RecoveryServices.TieringCostInfo","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.TokenInformationInner":"Microsoft.RecoveryServices.TokenInformation","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.UnlockDeleteResponseInner":"Microsoft.RecoveryServices.UnlockDeleteResponse","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.ValidateOperationsResponseInner":"Microsoft.RecoveryServices.ValidateOperationsResponse","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.VaultStorageConfigOperationResultResponseInner":"Microsoft.RecoveryServices.VaultStorageConfigOperationResultResponse","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.WorkloadItemResourceInner":"Microsoft.RecoveryServices.WorkloadItemResource","com.azure.resourcemanager.recoveryservicesbackup.fluent.models.WorkloadProtectableItemResourceInner":"Microsoft.RecoveryServices.WorkloadProtectableItemResource","com.azure.resourcemanager.recoveryservicesbackup.implementation.RecoveryServicesBackupManagementClientBuilder":"Microsoft.RecoveryServices","com.azure.resourcemanager.recoveryservicesbackup.implementation.models.BackupEngineBaseResourceList":"Microsoft.RecoveryServices.BackupEngineBaseResourceList","com.azure.resourcemanager.recoveryservicesbackup.implementation.models.BackupManagementUsageList":"Microsoft.RecoveryServices.BackupManagementUsageList","com.azure.resourcemanager.recoveryservicesbackup.implementation.models.ClientDiscoveryResponse":"Microsoft.RecoveryServices.ClientDiscoveryResponse","com.azure.resourcemanager.recoveryservicesbackup.implementation.models.JobResourceList":"Microsoft.RecoveryServices.JobResourceList","com.azure.resourcemanager.recoveryservicesbackup.implementation.models.ProtectableContainerResourceList":"Microsoft.RecoveryServices.ProtectableContainerResourceList","com.azure.resourcemanager.recoveryservicesbackup.implementation.models.ProtectedItemResourceList":"Microsoft.RecoveryServices.ProtectedItemResourceList","com.azure.resourcemanager.recoveryservicesbackup.implementation.models.ProtectionContainerResourceList":"Microsoft.RecoveryServices.ProtectionContainerResourceList","com.azure.resourcemanager.recoveryservicesbackup.implementation.models.ProtectionIntentResourceList":"Microsoft.RecoveryServices.ProtectionIntentResourceList","com.azure.resourcemanager.recoveryservicesbackup.implementation.models.ProtectionPolicyResourceList":"Microsoft.RecoveryServices.ProtectionPolicyResourceList","com.azure.resourcemanager.recoveryservicesbackup.implementation.models.RecoveryPointResourceList":"Microsoft.RecoveryServices.RecoveryPointResourceList","com.azure.resourcemanager.recoveryservicesbackup.implementation.models.ResourceGuardProxyBaseResourceList":"Microsoft.RecoveryServices.ResourceGuardProxyBaseResourceList","com.azure.resourcemanager.recoveryservicesbackup.implementation.models.WorkloadItemResourceList":"Microsoft.RecoveryServices.WorkloadItemResourceList","com.azure.resourcemanager.recoveryservicesbackup.implementation.models.WorkloadProtectableItemResourceList":"Microsoft.RecoveryServices.WorkloadProtectableItemResourceList","com.azure.resourcemanager.recoveryservicesbackup.models.AccessType":"Microsoft.RecoveryServices.AccessType","com.azure.resourcemanager.recoveryservicesbackup.models.AcquireStorageAccountLock":"Microsoft.RecoveryServices.AcquireStorageAccountLock","com.azure.resourcemanager.recoveryservicesbackup.models.AzureBackupGoalFeatureSupportRequest":"Microsoft.RecoveryServices.AzureBackupGoalFeatureSupportRequest","com.azure.resourcemanager.recoveryservicesbackup.models.AzureBackupServerContainer":"Microsoft.RecoveryServices.AzureBackupServerContainer","com.azure.resourcemanager.recoveryservicesbackup.models.AzureBackupServerEngine":"Microsoft.RecoveryServices.AzureBackupServerEngine","com.azure.resourcemanager.recoveryservicesbackup.models.AzureFileShareBackupRequest":"Microsoft.RecoveryServices.AzureFileShareBackupRequest","com.azure.resourcemanager.recoveryservicesbackup.models.AzureFileShareProtectableItem":"Microsoft.RecoveryServices.AzureFileShareProtectableItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureFileShareProtectionPolicy":"Microsoft.RecoveryServices.AzureFileShareProtectionPolicy","com.azure.resourcemanager.recoveryservicesbackup.models.AzureFileShareProvisionIlrRequest":"Microsoft.RecoveryServices.AzureFileShareProvisionILRRequest","com.azure.resourcemanager.recoveryservicesbackup.models.AzureFileShareRecoveryPoint":"Microsoft.RecoveryServices.AzureFileShareRecoveryPoint","com.azure.resourcemanager.recoveryservicesbackup.models.AzureFileShareRestoreRequest":"Microsoft.RecoveryServices.AzureFileShareRestoreRequest","com.azure.resourcemanager.recoveryservicesbackup.models.AzureFileShareType":"Microsoft.RecoveryServices.AzureFileShareType","com.azure.resourcemanager.recoveryservicesbackup.models.AzureFileshareProtectedItem":"Microsoft.RecoveryServices.AzureFileshareProtectedItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureFileshareProtectedItemExtendedInfo":"Microsoft.RecoveryServices.AzureFileshareProtectedItemExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSClassicComputeVMContainer":"Microsoft.RecoveryServices.AzureIaaSClassicComputeVMContainer","com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSClassicComputeVMProtectableItem":"Microsoft.RecoveryServices.AzureIaaSClassicComputeVMProtectableItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSClassicComputeVMProtectedItem":"Microsoft.RecoveryServices.AzureIaaSClassicComputeVMProtectedItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSComputeVMContainer":"Microsoft.RecoveryServices.AzureIaaSComputeVMContainer","com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSComputeVMProtectableItem":"Microsoft.RecoveryServices.AzureIaaSComputeVMProtectableItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSComputeVMProtectedItem":"Microsoft.RecoveryServices.AzureIaaSComputeVMProtectedItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSvmErrorInfo":"Microsoft.RecoveryServices.AzureIaaSVMErrorInfo","com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSvmHealthDetails":"Microsoft.RecoveryServices.AzureIaaSVMHealthDetails","com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSvmJob":"Microsoft.RecoveryServices.AzureIaaSVMJob","com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSvmJobExtendedInfo":"Microsoft.RecoveryServices.AzureIaaSVMJobExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSvmJobTaskDetails":"Microsoft.RecoveryServices.AzureIaaSVMJobTaskDetails","com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSvmJobV2":"Microsoft.RecoveryServices.AzureIaaSVMJobV2","com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSvmProtectedItem":"Microsoft.RecoveryServices.AzureIaaSVMProtectedItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSvmProtectedItemExtendedInfo":"Microsoft.RecoveryServices.AzureIaaSVMProtectedItemExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSvmProtectionPolicy":"Microsoft.RecoveryServices.AzureIaaSVMProtectionPolicy","com.azure.resourcemanager.recoveryservicesbackup.models.AzureRecoveryServiceVaultProtectionIntent":"Microsoft.RecoveryServices.AzureRecoveryServiceVaultProtectionIntent","com.azure.resourcemanager.recoveryservicesbackup.models.AzureResourceProtectionIntent":"Microsoft.RecoveryServices.AzureResourceProtectionIntent","com.azure.resourcemanager.recoveryservicesbackup.models.AzureSqlContainer":"Microsoft.RecoveryServices.AzureSqlContainer","com.azure.resourcemanager.recoveryservicesbackup.models.AzureSqlProtectedItem":"Microsoft.RecoveryServices.AzureSqlProtectedItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureSqlProtectedItemExtendedInfo":"Microsoft.RecoveryServices.AzureSqlProtectedItemExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.AzureSqlProtectionPolicy":"Microsoft.RecoveryServices.AzureSqlProtectionPolicy","com.azure.resourcemanager.recoveryservicesbackup.models.AzureSqlagWorkloadContainerProtectionContainer":"Microsoft.RecoveryServices.AzureSQLAGWorkloadContainerProtectionContainer","com.azure.resourcemanager.recoveryservicesbackup.models.AzureStorageContainer":"Microsoft.RecoveryServices.AzureStorageContainer","com.azure.resourcemanager.recoveryservicesbackup.models.AzureStorageErrorInfo":"Microsoft.RecoveryServices.AzureStorageErrorInfo","com.azure.resourcemanager.recoveryservicesbackup.models.AzureStorageJob":"Microsoft.RecoveryServices.AzureStorageJob","com.azure.resourcemanager.recoveryservicesbackup.models.AzureStorageJobExtendedInfo":"Microsoft.RecoveryServices.AzureStorageJobExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.AzureStorageJobTaskDetails":"Microsoft.RecoveryServices.AzureStorageJobTaskDetails","com.azure.resourcemanager.recoveryservicesbackup.models.AzureStorageProtectableContainer":"Microsoft.RecoveryServices.AzureStorageProtectableContainer","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVMAppContainerProtectableContainer":"Microsoft.RecoveryServices.AzureVMAppContainerProtectableContainer","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVMAppContainerProtectionContainer":"Microsoft.RecoveryServices.AzureVMAppContainerProtectionContainer","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVMResourceFeatureSupportRequest":"Microsoft.RecoveryServices.AzureVMResourceFeatureSupportRequest","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadItem":"Microsoft.RecoveryServices.AzureVmWorkloadItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadProtectableItem":"Microsoft.RecoveryServices.AzureVmWorkloadProtectableItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadProtectedItem":"Microsoft.RecoveryServices.AzureVmWorkloadProtectedItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadProtectedItemExtendedInfo":"Microsoft.RecoveryServices.AzureVmWorkloadProtectedItemExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadProtectionPolicy":"Microsoft.RecoveryServices.AzureVmWorkloadProtectionPolicy","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSQLInstanceProtectedItem":"Microsoft.RecoveryServices.AzureVmWorkloadSQLInstanceProtectedItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSapAseDatabaseProtectableItem":"Microsoft.RecoveryServices.AzureVmWorkloadSAPAseDatabaseProtectableItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSapAseDatabaseProtectedItem":"Microsoft.RecoveryServices.AzureVmWorkloadSAPAseDatabaseProtectedItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSapAseDatabaseWorkloadItem":"Microsoft.RecoveryServices.AzureVmWorkloadSAPAseDatabaseWorkloadItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSapAseSystemProtectableItem":"Microsoft.RecoveryServices.AzureVmWorkloadSAPAseSystemProtectableItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSapAseSystemWorkloadItem":"Microsoft.RecoveryServices.AzureVmWorkloadSAPAseSystemWorkloadItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSapHanaDBInstance":"Microsoft.RecoveryServices.AzureVmWorkloadSAPHanaDBInstance","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSapHanaDBInstanceProtectedItem":"Microsoft.RecoveryServices.AzureVmWorkloadSAPHanaDBInstanceProtectedItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSapHanaDatabaseProtectableItem":"Microsoft.RecoveryServices.AzureVmWorkloadSAPHanaDatabaseProtectableItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSapHanaDatabaseProtectedItem":"Microsoft.RecoveryServices.AzureVmWorkloadSAPHanaDatabaseProtectedItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSapHanaDatabaseWorkloadItem":"Microsoft.RecoveryServices.AzureVmWorkloadSAPHanaDatabaseWorkloadItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSapHanaHsr":"Microsoft.RecoveryServices.AzureVmWorkloadSAPHanaHSRProtectableItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSapHanaSystemProtectableItem":"Microsoft.RecoveryServices.AzureVmWorkloadSAPHanaSystemProtectableItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSapHanaSystemWorkloadItem":"Microsoft.RecoveryServices.AzureVmWorkloadSAPHanaSystemWorkloadItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSqlAvailabilityGroupProtectableItem":"Microsoft.RecoveryServices.AzureVmWorkloadSQLAvailabilityGroupProtectableItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSqlDatabaseProtectableItem":"Microsoft.RecoveryServices.AzureVmWorkloadSQLDatabaseProtectableItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSqlDatabaseProtectedItem":"Microsoft.RecoveryServices.AzureVmWorkloadSQLDatabaseProtectedItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSqlDatabaseWorkloadItem":"Microsoft.RecoveryServices.AzureVmWorkloadSQLDatabaseWorkloadItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSqlInstanceProtectableItem":"Microsoft.RecoveryServices.AzureVmWorkloadSQLInstanceProtectableItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureVmWorkloadSqlInstanceWorkloadItem":"Microsoft.RecoveryServices.AzureVmWorkloadSQLInstanceWorkloadItem","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadAutoProtectionIntent":"Microsoft.RecoveryServices.AzureWorkloadAutoProtectionIntent","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadBackupRequest":"Microsoft.RecoveryServices.AzureWorkloadBackupRequest","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadContainer":"Microsoft.RecoveryServices.AzureWorkloadContainer","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadContainerAutoProtectionIntent":"Microsoft.RecoveryServices.AzureWorkloadContainerAutoProtectionIntent","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadContainerExtendedInfo":"Microsoft.RecoveryServices.AzureWorkloadContainerExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadErrorInfo":"Microsoft.RecoveryServices.AzureWorkloadErrorInfo","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadJob":"Microsoft.RecoveryServices.AzureWorkloadJob","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadJobExtendedInfo":"Microsoft.RecoveryServices.AzureWorkloadJobExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadJobTaskDetails":"Microsoft.RecoveryServices.AzureWorkloadJobTaskDetails","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadPointInTimeRecoveryPoint":"Microsoft.RecoveryServices.AzureWorkloadPointInTimeRecoveryPoint","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadPointInTimeRestoreRequest":"Microsoft.RecoveryServices.AzureWorkloadPointInTimeRestoreRequest","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadRecoveryPoint":"Microsoft.RecoveryServices.AzureWorkloadRecoveryPoint","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadRestoreRequest":"Microsoft.RecoveryServices.AzureWorkloadRestoreRequest","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSapAsePointInTimeRecoveryPoint":"Microsoft.RecoveryServices.AzureWorkloadSAPAsePointInTimeRecoveryPoint","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSapAsePointInTimeRestoreRequest":"Microsoft.RecoveryServices.AzureWorkloadSAPAsePointInTimeRestoreRequest","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSapAseRecoveryPoint":"Microsoft.RecoveryServices.AzureWorkloadSAPAseRecoveryPoint","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSapAseRestoreRequest":"Microsoft.RecoveryServices.AzureWorkloadSAPAseRestoreRequest","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSapHanaPointInTimeRecoveryPoint":"Microsoft.RecoveryServices.AzureWorkloadSAPHanaPointInTimeRecoveryPoint","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSapHanaPointInTimeRestoreRequest":"Microsoft.RecoveryServices.AzureWorkloadSAPHanaPointInTimeRestoreRequest","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSapHanaPointInTimeRestoreWithRehydrateRequest":"Microsoft.RecoveryServices.AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSapHanaRecoveryPoint":"Microsoft.RecoveryServices.AzureWorkloadSAPHanaRecoveryPoint","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSapHanaRestoreRequest":"Microsoft.RecoveryServices.AzureWorkloadSAPHanaRestoreRequest","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSapHanaRestoreWithRehydrateRequest":"Microsoft.RecoveryServices.AzureWorkloadSAPHanaRestoreWithRehydrateRequest","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSqlAutoProtectionIntent":"Microsoft.RecoveryServices.AzureWorkloadSQLAutoProtectionIntent","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSqlPointInTimeRecoveryPoint":"Microsoft.RecoveryServices.AzureWorkloadSQLPointInTimeRecoveryPoint","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSqlPointInTimeRestoreRequest":"Microsoft.RecoveryServices.AzureWorkloadSQLPointInTimeRestoreRequest","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequest":"Microsoft.RecoveryServices.AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSqlRecoveryPoint":"Microsoft.RecoveryServices.AzureWorkloadSQLRecoveryPoint","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSqlRecoveryPointExtendedInfo":"Microsoft.RecoveryServices.AzureWorkloadSQLRecoveryPointExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSqlRestoreRequest":"Microsoft.RecoveryServices.AzureWorkloadSQLRestoreRequest","com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSqlRestoreWithRehydrateRequest":"Microsoft.RecoveryServices.AzureWorkloadSQLRestoreWithRehydrateRequest","com.azure.resourcemanager.recoveryservicesbackup.models.BackupEngineBase":"Microsoft.RecoveryServices.BackupEngineBase","com.azure.resourcemanager.recoveryservicesbackup.models.BackupEngineExtendedInfo":"Microsoft.RecoveryServices.BackupEngineExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.BackupEngineType":"Microsoft.RecoveryServices.BackupEngineType","com.azure.resourcemanager.recoveryservicesbackup.models.BackupItemType":"Microsoft.RecoveryServices.BackupItemType","com.azure.resourcemanager.recoveryservicesbackup.models.BackupManagementType":"Microsoft.RecoveryServices.BackupManagementType","com.azure.resourcemanager.recoveryservicesbackup.models.BackupRequest":"Microsoft.RecoveryServices.BackupRequest","com.azure.resourcemanager.recoveryservicesbackup.models.BackupRequestResource":"Microsoft.RecoveryServices.BackupRequestResource","com.azure.resourcemanager.recoveryservicesbackup.models.BackupResourceConfig":"Microsoft.RecoveryServices.BackupResourceConfig","com.azure.resourcemanager.recoveryservicesbackup.models.BackupResourceEncryptionConfig":"Microsoft.RecoveryServices.BackupResourceEncryptionConfig","com.azure.resourcemanager.recoveryservicesbackup.models.BackupResourceEncryptionConfigExtended":"Microsoft.RecoveryServices.BackupResourceEncryptionConfigExtended","com.azure.resourcemanager.recoveryservicesbackup.models.BackupResourceEncryptionConfigResource":"Microsoft.RecoveryServices.BackupResourceEncryptionConfigResource","com.azure.resourcemanager.recoveryservicesbackup.models.BackupResourceVaultConfig":"Microsoft.RecoveryServices.BackupResourceVaultConfig","com.azure.resourcemanager.recoveryservicesbackup.models.BackupStatusRequest":"Microsoft.RecoveryServices.BackupStatusRequest","com.azure.resourcemanager.recoveryservicesbackup.models.BackupType":"Microsoft.RecoveryServices.BackupType","com.azure.resourcemanager.recoveryservicesbackup.models.BekDetails":"Microsoft.RecoveryServices.BEKDetails","com.azure.resourcemanager.recoveryservicesbackup.models.ClientDiscoveryDisplay":"Microsoft.RecoveryServices.ClientDiscoveryDisplay","com.azure.resourcemanager.recoveryservicesbackup.models.ClientDiscoveryForLogSpecification":"Microsoft.RecoveryServices.ClientDiscoveryForLogSpecification","com.azure.resourcemanager.recoveryservicesbackup.models.ClientDiscoveryForProperties":"Microsoft.RecoveryServices.ClientDiscoveryForProperties","com.azure.resourcemanager.recoveryservicesbackup.models.ClientDiscoveryForServiceSpecification":"Microsoft.RecoveryServices.ClientDiscoveryForServiceSpecification","com.azure.resourcemanager.recoveryservicesbackup.models.ClientScriptForConnect":"Microsoft.RecoveryServices.ClientScriptForConnect","com.azure.resourcemanager.recoveryservicesbackup.models.ContainerIdentityInfo":"Microsoft.RecoveryServices.ContainerIdentityInfo","com.azure.resourcemanager.recoveryservicesbackup.models.CopyOptions":"Microsoft.RecoveryServices.CopyOptions","com.azure.resourcemanager.recoveryservicesbackup.models.CreateMode":"Microsoft.RecoveryServices.CreateMode","com.azure.resourcemanager.recoveryservicesbackup.models.DailyRetentionFormat":"Microsoft.RecoveryServices.DailyRetentionFormat","com.azure.resourcemanager.recoveryservicesbackup.models.DailyRetentionSchedule":"Microsoft.RecoveryServices.DailyRetentionSchedule","com.azure.resourcemanager.recoveryservicesbackup.models.DailySchedule":"Microsoft.RecoveryServices.DailySchedule","com.azure.resourcemanager.recoveryservicesbackup.models.DataDiskDetails":"Microsoft.RecoveryServices.DataDiskDetails","com.azure.resourcemanager.recoveryservicesbackup.models.DataDiskEncryptionSettings":"Microsoft.RecoveryServices.DataDiskEncryptionSettings","com.azure.resourcemanager.recoveryservicesbackup.models.DataMoveLevel":"Microsoft.RecoveryServices.DataMoveLevel","com.azure.resourcemanager.recoveryservicesbackup.models.DataSourceType":"Microsoft.RecoveryServices.DataSourceType","com.azure.resourcemanager.recoveryservicesbackup.models.DatabaseInRP":"Microsoft.RecoveryServices.DatabaseInRP","com.azure.resourcemanager.recoveryservicesbackup.models.Day":"Microsoft.RecoveryServices.Day","com.azure.resourcemanager.recoveryservicesbackup.models.DayOfWeek":"Microsoft.RecoveryServices.DayOfWeek","com.azure.resourcemanager.recoveryservicesbackup.models.DedupState":"Microsoft.RecoveryServices.DedupState","com.azure.resourcemanager.recoveryservicesbackup.models.DiskDetails":"Microsoft.RecoveryServices.DiskDetails","com.azure.resourcemanager.recoveryservicesbackup.models.DiskExclusionProperties":"Microsoft.RecoveryServices.DiskExclusionProperties","com.azure.resourcemanager.recoveryservicesbackup.models.DiskInfo":"Microsoft.RecoveryServices.DiskInfo","com.azure.resourcemanager.recoveryservicesbackup.models.DiskInformation":"Microsoft.RecoveryServices.DiskInformation","com.azure.resourcemanager.recoveryservicesbackup.models.DistributedNodesInfo":"Microsoft.RecoveryServices.DistributedNodesInfo","com.azure.resourcemanager.recoveryservicesbackup.models.DpmBackupEngine":"Microsoft.RecoveryServices.DpmBackupEngine","com.azure.resourcemanager.recoveryservicesbackup.models.DpmContainer":"Microsoft.RecoveryServices.DpmContainer","com.azure.resourcemanager.recoveryservicesbackup.models.DpmContainerExtendedInfo":"Microsoft.RecoveryServices.DPMContainerExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.DpmErrorInfo":"Microsoft.RecoveryServices.DpmErrorInfo","com.azure.resourcemanager.recoveryservicesbackup.models.DpmJob":"Microsoft.RecoveryServices.DpmJob","com.azure.resourcemanager.recoveryservicesbackup.models.DpmJobExtendedInfo":"Microsoft.RecoveryServices.DpmJobExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.DpmJobTaskDetails":"Microsoft.RecoveryServices.DpmJobTaskDetails","com.azure.resourcemanager.recoveryservicesbackup.models.DpmProtectedItem":"Microsoft.RecoveryServices.DPMProtectedItem","com.azure.resourcemanager.recoveryservicesbackup.models.DpmProtectedItemExtendedInfo":"Microsoft.RecoveryServices.DPMProtectedItemExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.EncryptionAtRestType":"Microsoft.RecoveryServices.EncryptionAtRestType","com.azure.resourcemanager.recoveryservicesbackup.models.EncryptionDetails":"Microsoft.RecoveryServices.EncryptionDetails","com.azure.resourcemanager.recoveryservicesbackup.models.EnhancedSecurityState":"Microsoft.RecoveryServices.EnhancedSecurityState","com.azure.resourcemanager.recoveryservicesbackup.models.ErrorDetail":"Microsoft.RecoveryServices.ErrorDetail","com.azure.resourcemanager.recoveryservicesbackup.models.ExistingBasicVMProtection":"Microsoft.RecoveryServices.ExistingBasicVMProtection","com.azure.resourcemanager.recoveryservicesbackup.models.ExportJobsOperationResultInfo":"Microsoft.RecoveryServices.ExportJobsOperationResultInfo","com.azure.resourcemanager.recoveryservicesbackup.models.ExtendedLocation":"Microsoft.RecoveryServices.ExtendedLocation","com.azure.resourcemanager.recoveryservicesbackup.models.ExtendedProperties":"Microsoft.RecoveryServices.ExtendedProperties","com.azure.resourcemanager.recoveryservicesbackup.models.FabricName":"Microsoft.RecoveryServices.FabricName","com.azure.resourcemanager.recoveryservicesbackup.models.FeatureSupportRequest":"Microsoft.RecoveryServices.FeatureSupportRequest","com.azure.resourcemanager.recoveryservicesbackup.models.FetchTieringCostInfoForRehydrationRequest":"Microsoft.RecoveryServices.FetchTieringCostInfoForRehydrationRequest","com.azure.resourcemanager.recoveryservicesbackup.models.FetchTieringCostInfoRequest":"Microsoft.RecoveryServices.FetchTieringCostInfoRequest","com.azure.resourcemanager.recoveryservicesbackup.models.FetchTieringCostSavingsInfoForPolicyRequest":"Microsoft.RecoveryServices.FetchTieringCostSavingsInfoForPolicyRequest","com.azure.resourcemanager.recoveryservicesbackup.models.FetchTieringCostSavingsInfoForProtectedItemRequest":"Microsoft.RecoveryServices.FetchTieringCostSavingsInfoForProtectedItemRequest","com.azure.resourcemanager.recoveryservicesbackup.models.FetchTieringCostSavingsInfoForVaultRequest":"Microsoft.RecoveryServices.FetchTieringCostSavingsInfoForVaultRequest","com.azure.resourcemanager.recoveryservicesbackup.models.FilesystemInfo":"Microsoft.RecoveryServices.FilesystemInfo","com.azure.resourcemanager.recoveryservicesbackup.models.GenericContainer":"Microsoft.RecoveryServices.GenericContainer","com.azure.resourcemanager.recoveryservicesbackup.models.GenericContainerExtendedInfo":"Microsoft.RecoveryServices.GenericContainerExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.GenericProtectedItem":"Microsoft.RecoveryServices.GenericProtectedItem","com.azure.resourcemanager.recoveryservicesbackup.models.GenericProtectionPolicy":"Microsoft.RecoveryServices.GenericProtectionPolicy","com.azure.resourcemanager.recoveryservicesbackup.models.GenericRecoveryPoint":"Microsoft.RecoveryServices.GenericRecoveryPoint","com.azure.resourcemanager.recoveryservicesbackup.models.GetRPExtendedInfoRequest":"Microsoft.RecoveryServices.GetRPExtendedInfoRequest","com.azure.resourcemanager.recoveryservicesbackup.models.GetRPExtendedInfoRequestResource":"Microsoft.RecoveryServices.GetRPExtendedInfoRequestResource","com.azure.resourcemanager.recoveryservicesbackup.models.HealthStatus":"Microsoft.RecoveryServices.HealthStatus","com.azure.resourcemanager.recoveryservicesbackup.models.HourlySchedule":"Microsoft.RecoveryServices.HourlySchedule","com.azure.resourcemanager.recoveryservicesbackup.models.HttpStatusCode":"Microsoft.RecoveryServices.HttpStatusCode","com.azure.resourcemanager.recoveryservicesbackup.models.IaaSvmContainer":"Microsoft.RecoveryServices.IaaSVMContainer","com.azure.resourcemanager.recoveryservicesbackup.models.IaasVMBackupRequest":"Microsoft.RecoveryServices.IaasVMBackupRequest","com.azure.resourcemanager.recoveryservicesbackup.models.IaasVMRPExtendedInfo":"Microsoft.RecoveryServices.IaasVMRPExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.IaasVMRecoveryPoint":"Microsoft.RecoveryServices.IaasVMRecoveryPoint","com.azure.resourcemanager.recoveryservicesbackup.models.IaasVMRestoreRequest":"Microsoft.RecoveryServices.IaasVMRestoreRequest","com.azure.resourcemanager.recoveryservicesbackup.models.IaasVMRestoreWithRehydrationRequest":"Microsoft.RecoveryServices.IaasVMRestoreWithRehydrationRequest","com.azure.resourcemanager.recoveryservicesbackup.models.IaasVMSnapshotConsistencyType":"Microsoft.RecoveryServices.IaasVMSnapshotConsistencyType","com.azure.resourcemanager.recoveryservicesbackup.models.IaasVmProtectableItem":"Microsoft.RecoveryServices.IaaSVMProtectableItem","com.azure.resourcemanager.recoveryservicesbackup.models.IaasVmilrRegistrationRequest":"Microsoft.RecoveryServices.IaasVMILRRegistrationRequest","com.azure.resourcemanager.recoveryservicesbackup.models.IaasvmPolicyType":"Microsoft.RecoveryServices.IAASVMPolicyType","com.azure.resourcemanager.recoveryservicesbackup.models.IdentityBasedRestoreDetails":"Microsoft.RecoveryServices.IdentityBasedRestoreDetails","com.azure.resourcemanager.recoveryservicesbackup.models.IdentityInfo":"Microsoft.RecoveryServices.IdentityInfo","com.azure.resourcemanager.recoveryservicesbackup.models.IlrRequest":"Microsoft.RecoveryServices.ILRRequest","com.azure.resourcemanager.recoveryservicesbackup.models.IlrRequestResource":"Microsoft.RecoveryServices.ILRRequestResource","com.azure.resourcemanager.recoveryservicesbackup.models.InfrastructureEncryptionState":"Microsoft.RecoveryServices.InfrastructureEncryptionState","com.azure.resourcemanager.recoveryservicesbackup.models.InquiryInfo":"Microsoft.RecoveryServices.InquiryInfo","com.azure.resourcemanager.recoveryservicesbackup.models.InquiryStatus":"Microsoft.RecoveryServices.InquiryStatus","com.azure.resourcemanager.recoveryservicesbackup.models.InquiryValidation":"Microsoft.RecoveryServices.InquiryValidation","com.azure.resourcemanager.recoveryservicesbackup.models.InstanceProtectionReadiness":"Microsoft.RecoveryServices.InstanceProtectionReadiness","com.azure.resourcemanager.recoveryservicesbackup.models.InstantItemRecoveryOperationResultRequest":"Microsoft.RecoveryServices.InstantItemRecoveryOperationResultRequest","com.azure.resourcemanager.recoveryservicesbackup.models.InstantItemRecoveryTarget":"Microsoft.RecoveryServices.InstantItemRecoveryTarget","com.azure.resourcemanager.recoveryservicesbackup.models.InstantRPAdditionalDetails":"Microsoft.RecoveryServices.InstantRPAdditionalDetails","com.azure.resourcemanager.recoveryservicesbackup.models.Job":"Microsoft.RecoveryServices.Job","com.azure.resourcemanager.recoveryservicesbackup.models.JobSupportedAction":"Microsoft.RecoveryServices.JobSupportedAction","com.azure.resourcemanager.recoveryservicesbackup.models.KekDetails":"Microsoft.RecoveryServices.KEKDetails","com.azure.resourcemanager.recoveryservicesbackup.models.KeyAndSecretDetails":"Microsoft.RecoveryServices.KeyAndSecretDetails","com.azure.resourcemanager.recoveryservicesbackup.models.KpiResourceHealthDetails":"Microsoft.RecoveryServices.KPIResourceHealthDetails","com.azure.resourcemanager.recoveryservicesbackup.models.LastBackupStatus":"Microsoft.RecoveryServices.LastBackupStatus","com.azure.resourcemanager.recoveryservicesbackup.models.LastUpdateStatus":"Microsoft.RecoveryServices.LastUpdateStatus","com.azure.resourcemanager.recoveryservicesbackup.models.ListRecoveryPointsRecommendedForMoveRequest":"Microsoft.RecoveryServices.ListRecoveryPointsRecommendedForMoveRequest","com.azure.resourcemanager.recoveryservicesbackup.models.LogSchedulePolicy":"Microsoft.RecoveryServices.LogSchedulePolicy","com.azure.resourcemanager.recoveryservicesbackup.models.LongTermRetentionPolicy":"Microsoft.RecoveryServices.LongTermRetentionPolicy","com.azure.resourcemanager.recoveryservicesbackup.models.LongTermSchedulePolicy":"Microsoft.RecoveryServices.LongTermSchedulePolicy","com.azure.resourcemanager.recoveryservicesbackup.models.MabContainer":"Microsoft.RecoveryServices.MabContainer","com.azure.resourcemanager.recoveryservicesbackup.models.MabContainerExtendedInfo":"Microsoft.RecoveryServices.MabContainerExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.MabContainerHealthDetails":"Microsoft.RecoveryServices.MABContainerHealthDetails","com.azure.resourcemanager.recoveryservicesbackup.models.MabErrorInfo":"Microsoft.RecoveryServices.MabErrorInfo","com.azure.resourcemanager.recoveryservicesbackup.models.MabFileFolderProtectedItem":"Microsoft.RecoveryServices.MabFileFolderProtectedItem","com.azure.resourcemanager.recoveryservicesbackup.models.MabFileFolderProtectedItemExtendedInfo":"Microsoft.RecoveryServices.MabFileFolderProtectedItemExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.MabJob":"Microsoft.RecoveryServices.MabJob","com.azure.resourcemanager.recoveryservicesbackup.models.MabJobExtendedInfo":"Microsoft.RecoveryServices.MabJobExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.MabJobTaskDetails":"Microsoft.RecoveryServices.MabJobTaskDetails","com.azure.resourcemanager.recoveryservicesbackup.models.MabProtectionPolicy":"Microsoft.RecoveryServices.MabProtectionPolicy","com.azure.resourcemanager.recoveryservicesbackup.models.MabServerType":"Microsoft.RecoveryServices.MabServerType","com.azure.resourcemanager.recoveryservicesbackup.models.MonthOfYear":"Microsoft.RecoveryServices.MonthOfYear","com.azure.resourcemanager.recoveryservicesbackup.models.MonthlyRetentionSchedule":"Microsoft.RecoveryServices.MonthlyRetentionSchedule","com.azure.resourcemanager.recoveryservicesbackup.models.MoveRPAcrossTiersRequest":"Microsoft.RecoveryServices.MoveRPAcrossTiersRequest","com.azure.resourcemanager.recoveryservicesbackup.models.NameInfo":"Microsoft.RecoveryServices.NameInfo","com.azure.resourcemanager.recoveryservicesbackup.models.OperationResultInfo":"Microsoft.RecoveryServices.OperationResultInfo","com.azure.resourcemanager.recoveryservicesbackup.models.OperationResultInfoBase":"Microsoft.RecoveryServices.OperationResultInfoBase","com.azure.resourcemanager.recoveryservicesbackup.models.OperationStatusError":"Microsoft.RecoveryServices.OperationStatusError","com.azure.resourcemanager.recoveryservicesbackup.models.OperationStatusExtendedInfo":"Microsoft.RecoveryServices.OperationStatusExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.OperationStatusJobExtendedInfo":"Microsoft.RecoveryServices.OperationStatusJobExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.OperationStatusJobsExtendedInfo":"Microsoft.RecoveryServices.OperationStatusJobsExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.OperationStatusProvisionIlrExtendedInfo":"Microsoft.RecoveryServices.OperationStatusProvisionILRExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.OperationStatusValidateOperationExtendedInfo":"Microsoft.RecoveryServices.OperationStatusValidateOperationExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.OperationStatusValues":"Microsoft.RecoveryServices.OperationStatusValues","com.azure.resourcemanager.recoveryservicesbackup.models.OperationType":"Microsoft.RecoveryServices.OperationType","com.azure.resourcemanager.recoveryservicesbackup.models.OperationWorkerResponse":"Microsoft.RecoveryServices.OperationWorkerResponse","com.azure.resourcemanager.recoveryservicesbackup.models.OverwriteOptions":"Microsoft.RecoveryServices.OverwriteOptions","com.azure.resourcemanager.recoveryservicesbackup.models.PerDiskEncryptionSetId":"Microsoft.RecoveryServices.PerDiskEncryptionSetId","com.azure.resourcemanager.recoveryservicesbackup.models.PointInTimeRange":"Microsoft.RecoveryServices.PointInTimeRange","com.azure.resourcemanager.recoveryservicesbackup.models.PolicyType":"Microsoft.RecoveryServices.PolicyType","com.azure.resourcemanager.recoveryservicesbackup.models.PreBackupValidation":"Microsoft.RecoveryServices.PreBackupValidation","com.azure.resourcemanager.recoveryservicesbackup.models.PreValidateEnableBackupRequest":"Microsoft.RecoveryServices.PreValidateEnableBackupRequest","com.azure.resourcemanager.recoveryservicesbackup.models.PrepareDataMoveRequest":"Microsoft.RecoveryServices.PrepareDataMoveRequest","com.azure.resourcemanager.recoveryservicesbackup.models.PrepareDataMoveResponse":"Microsoft.RecoveryServices.PrepareDataMoveResponse","com.azure.resourcemanager.recoveryservicesbackup.models.PrivateEndpoint":"Microsoft.RecoveryServices.PrivateEndpoint","com.azure.resourcemanager.recoveryservicesbackup.models.PrivateEndpointConnection":"Microsoft.RecoveryServices.PrivateEndpointConnection","com.azure.resourcemanager.recoveryservicesbackup.models.PrivateEndpointConnectionStatus":"Microsoft.RecoveryServices.PrivateEndpointConnectionStatus","com.azure.resourcemanager.recoveryservicesbackup.models.PrivateLinkServiceConnectionState":"Microsoft.RecoveryServices.PrivateLinkServiceConnectionState","com.azure.resourcemanager.recoveryservicesbackup.models.ProtectableContainer":"Microsoft.RecoveryServices.ProtectableContainer","com.azure.resourcemanager.recoveryservicesbackup.models.ProtectableContainerType":"Microsoft.RecoveryServices.ProtectableContainerType","com.azure.resourcemanager.recoveryservicesbackup.models.ProtectedItem":"Microsoft.RecoveryServices.ProtectedItem","com.azure.resourcemanager.recoveryservicesbackup.models.ProtectedItemConfigureSourceScanRequest":"Microsoft.RecoveryServices.ProtectedItemConfigureSourceScanRequest","com.azure.resourcemanager.recoveryservicesbackup.models.ProtectedItemHealthStatus":"Microsoft.RecoveryServices.ProtectedItemHealthStatus","com.azure.resourcemanager.recoveryservicesbackup.models.ProtectedItemState":"Microsoft.RecoveryServices.ProtectedItemState","com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionContainer":"Microsoft.RecoveryServices.ProtectionContainer","com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionIntent":"Microsoft.RecoveryServices.ProtectionIntent","com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionIntentItemType":"Microsoft.RecoveryServices.ProtectionIntentItemType","com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionLevel":"Microsoft.RecoveryServices.ProtectionLevel","com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionPolicy":"Microsoft.RecoveryServices.ProtectionPolicy","com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionState":"Microsoft.RecoveryServices.ProtectionState","com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionStatus":"Microsoft.RecoveryServices.ProtectionStatus","com.azure.resourcemanager.recoveryservicesbackup.models.ProvisioningState":"Microsoft.RecoveryServices.ProvisioningState","com.azure.resourcemanager.recoveryservicesbackup.models.RPExtendedInfo":"Microsoft.RecoveryServices.RPExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.RPExtendedInfoResource":"Microsoft.RecoveryServices.RPExtendedInfoResource","com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryMode":"Microsoft.RecoveryServices.RecoveryMode","com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryPoint":"Microsoft.RecoveryServices.RecoveryPoint","com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryPointDiskConfiguration":"Microsoft.RecoveryServices.RecoveryPointDiskConfiguration","com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryPointImmutabilityProperties":"Microsoft.RecoveryServices.RecoveryPointImmutabilityProperties","com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryPointMoveReadinessInfo":"Microsoft.RecoveryServices.RecoveryPointMoveReadinessInfo","com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryPointProperties":"Microsoft.RecoveryServices.RecoveryPointProperties","com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryPointRehydrationInfo":"Microsoft.RecoveryServices.RecoveryPointRehydrationInfo","com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryPointTierInformation":"Microsoft.RecoveryServices.RecoveryPointTierInformation","com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryPointTierInformationV2":"Microsoft.RecoveryServices.RecoveryPointTierInformationV2","com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryPointTierStatus":"Microsoft.RecoveryServices.RecoveryPointTierStatus","com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryPointTierType":"Microsoft.RecoveryServices.RecoveryPointTierType","com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryPointsGetRPExtendedInfoOperationResultHeaders":null,"com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryType":"Microsoft.RecoveryServices.RecoveryType","com.azure.resourcemanager.recoveryservicesbackup.models.RehydrationPriority":"Microsoft.RecoveryServices.RehydrationPriority","com.azure.resourcemanager.recoveryservicesbackup.models.ResourceGuardOperationDetail":"Microsoft.RecoveryServices.ResourceGuardOperationDetail","com.azure.resourcemanager.recoveryservicesbackup.models.ResourceGuardProxyBase":"Microsoft.RecoveryServices.ResourceGuardProxyBase","com.azure.resourcemanager.recoveryservicesbackup.models.ResourceHealthDetails":"Microsoft.RecoveryServices.ResourceHealthDetails","com.azure.resourcemanager.recoveryservicesbackup.models.ResourceHealthStatus":"Microsoft.RecoveryServices.ResourceHealthStatus","com.azure.resourcemanager.recoveryservicesbackup.models.ResourceList":"Microsoft.RecoveryServices.ResourceList","com.azure.resourcemanager.recoveryservicesbackup.models.RestoreFileSpecs":"Microsoft.RecoveryServices.RestoreFileSpecs","com.azure.resourcemanager.recoveryservicesbackup.models.RestorePointType":"Microsoft.RecoveryServices.RestorePointType","com.azure.resourcemanager.recoveryservicesbackup.models.RestoreRequest":"Microsoft.RecoveryServices.RestoreRequest","com.azure.resourcemanager.recoveryservicesbackup.models.RestoreRequestResource":"Microsoft.RecoveryServices.RestoreRequestResource","com.azure.resourcemanager.recoveryservicesbackup.models.RestoreRequestType":"Microsoft.RecoveryServices.RestoreRequestType","com.azure.resourcemanager.recoveryservicesbackup.models.RetentionDuration":"Microsoft.RecoveryServices.RetentionDuration","com.azure.resourcemanager.recoveryservicesbackup.models.RetentionDurationType":"Microsoft.RecoveryServices.RetentionDurationType","com.azure.resourcemanager.recoveryservicesbackup.models.RetentionPolicy":"Microsoft.RecoveryServices.RetentionPolicy","com.azure.resourcemanager.recoveryservicesbackup.models.RetentionScheduleFormat":"Microsoft.RecoveryServices.RetentionScheduleFormat","com.azure.resourcemanager.recoveryservicesbackup.models.SchedulePolicy":"Microsoft.RecoveryServices.SchedulePolicy","com.azure.resourcemanager.recoveryservicesbackup.models.ScheduleRunType":"Microsoft.RecoveryServices.ScheduleRunType","com.azure.resourcemanager.recoveryservicesbackup.models.SecuredVMDetails":"Microsoft.RecoveryServices.SecuredVMDetails","com.azure.resourcemanager.recoveryservicesbackup.models.SecurityPinBase":"Microsoft.RecoveryServices.SecurityPinBase","com.azure.resourcemanager.recoveryservicesbackup.models.Settings":"Microsoft.RecoveryServices.Settings","com.azure.resourcemanager.recoveryservicesbackup.models.SimpleRetentionPolicy":"Microsoft.RecoveryServices.SimpleRetentionPolicy","com.azure.resourcemanager.recoveryservicesbackup.models.SimpleSchedulePolicy":"Microsoft.RecoveryServices.SimpleSchedulePolicy","com.azure.resourcemanager.recoveryservicesbackup.models.SimpleSchedulePolicyV2":"Microsoft.RecoveryServices.SimpleSchedulePolicyV2","com.azure.resourcemanager.recoveryservicesbackup.models.SnapshotBackupAdditionalDetails":"Microsoft.RecoveryServices.SnapshotBackupAdditionalDetails","com.azure.resourcemanager.recoveryservicesbackup.models.SnapshotRecoveryPointInfo":"Microsoft.RecoveryServices.SnapshotRecoveryPointInfo","com.azure.resourcemanager.recoveryservicesbackup.models.SnapshotRestoreParameters":"Microsoft.RecoveryServices.SnapshotRestoreParameters","com.azure.resourcemanager.recoveryservicesbackup.models.SoftDeleteFeatureState":"Microsoft.RecoveryServices.SoftDeleteFeatureState","com.azure.resourcemanager.recoveryservicesbackup.models.SourceScanAction":"Microsoft.RecoveryServices.SourceScanAction","com.azure.resourcemanager.recoveryservicesbackup.models.SourceSideScanInfo":"Microsoft.RecoveryServices.SourceSideScanInfo","com.azure.resourcemanager.recoveryservicesbackup.models.SourceSideScanStatus":"Microsoft.RecoveryServices.SourceSideScanStatus","com.azure.resourcemanager.recoveryservicesbackup.models.SourceSideScanSummary":"Microsoft.RecoveryServices.SourceSideScanSummary","com.azure.resourcemanager.recoveryservicesbackup.models.SqlDataDirectory":"Microsoft.RecoveryServices.SQLDataDirectory","com.azure.resourcemanager.recoveryservicesbackup.models.SqlDataDirectoryMapping":"Microsoft.RecoveryServices.SQLDataDirectoryMapping","com.azure.resourcemanager.recoveryservicesbackup.models.SqlDataDirectoryType":"Microsoft.RecoveryServices.SQLDataDirectoryType","com.azure.resourcemanager.recoveryservicesbackup.models.StorageSpaceInfo":"Microsoft.RecoveryServices.StorageSpaceInfo","com.azure.resourcemanager.recoveryservicesbackup.models.StorageType":"Microsoft.RecoveryServices.StorageType","com.azure.resourcemanager.recoveryservicesbackup.models.StorageTypeState":"Microsoft.RecoveryServices.StorageTypeState","com.azure.resourcemanager.recoveryservicesbackup.models.SubProtectionPolicy":"Microsoft.RecoveryServices.SubProtectionPolicy","com.azure.resourcemanager.recoveryservicesbackup.models.SupportStatus":"Microsoft.RecoveryServices.SupportStatus","com.azure.resourcemanager.recoveryservicesbackup.models.TargetAfsRestoreInfo":"Microsoft.RecoveryServices.TargetAFSRestoreInfo","com.azure.resourcemanager.recoveryservicesbackup.models.TargetDiskNetworkAccessOption":"Microsoft.RecoveryServices.TargetDiskNetworkAccessOption","com.azure.resourcemanager.recoveryservicesbackup.models.TargetDiskNetworkAccessSettings":"Microsoft.RecoveryServices.TargetDiskNetworkAccessSettings","com.azure.resourcemanager.recoveryservicesbackup.models.TargetRestoreInfo":"Microsoft.RecoveryServices.TargetRestoreInfo","com.azure.resourcemanager.recoveryservicesbackup.models.ThreatInfo":"Microsoft.RecoveryServices.ThreatInfo","com.azure.resourcemanager.recoveryservicesbackup.models.ThreatSeverity":"Microsoft.RecoveryServices.ThreatSeverity","com.azure.resourcemanager.recoveryservicesbackup.models.ThreatState":"Microsoft.RecoveryServices.ThreatState","com.azure.resourcemanager.recoveryservicesbackup.models.ThreatStatus":"Microsoft.RecoveryServices.ThreatStatus","com.azure.resourcemanager.recoveryservicesbackup.models.TieringCostRehydrationInfo":"Microsoft.RecoveryServices.TieringCostRehydrationInfo","com.azure.resourcemanager.recoveryservicesbackup.models.TieringCostSavingInfo":"Microsoft.RecoveryServices.TieringCostSavingInfo","com.azure.resourcemanager.recoveryservicesbackup.models.TieringMode":"Microsoft.RecoveryServices.TieringMode","com.azure.resourcemanager.recoveryservicesbackup.models.TieringPolicy":"Microsoft.RecoveryServices.TieringPolicy","com.azure.resourcemanager.recoveryservicesbackup.models.TriggerDataMoveRequest":"Microsoft.RecoveryServices.TriggerDataMoveRequest","com.azure.resourcemanager.recoveryservicesbackup.models.UnlockDeleteRequest":"Microsoft.RecoveryServices.UnlockDeleteRequest","com.azure.resourcemanager.recoveryservicesbackup.models.UsagesUnit":"Microsoft.RecoveryServices.UsagesUnit","com.azure.resourcemanager.recoveryservicesbackup.models.UserAssignedIdentityProperties":"Microsoft.RecoveryServices.UserAssignedIdentityProperties","com.azure.resourcemanager.recoveryservicesbackup.models.UserAssignedManagedIdentityDetails":"Microsoft.RecoveryServices.UserAssignedManagedIdentityDetails","com.azure.resourcemanager.recoveryservicesbackup.models.VMWorkloadPolicyType":"Microsoft.RecoveryServices.VMWorkloadPolicyType","com.azure.resourcemanager.recoveryservicesbackup.models.ValidateAzureWorkloadRestoreOperationRequest":"Microsoft.RecoveryServices.ValidateAzureWorkloadRestoreOperationRequest","com.azure.resourcemanager.recoveryservicesbackup.models.ValidateIaasVMRestoreOperationRequest":"Microsoft.RecoveryServices.ValidateIaasVMRestoreOperationRequest","com.azure.resourcemanager.recoveryservicesbackup.models.ValidateOperationRequest":"Microsoft.RecoveryServices.ValidateOperationRequest","com.azure.resourcemanager.recoveryservicesbackup.models.ValidateOperationRequestResource":"Microsoft.RecoveryServices.ValidateOperationRequestResource","com.azure.resourcemanager.recoveryservicesbackup.models.ValidateOperationResponse":"Microsoft.RecoveryServices.ValidateOperationResponse","com.azure.resourcemanager.recoveryservicesbackup.models.ValidateRestoreOperationRequest":"Microsoft.RecoveryServices.ValidateRestoreOperationRequest","com.azure.resourcemanager.recoveryservicesbackup.models.ValidationStatus":"Microsoft.RecoveryServices.ValidationStatus","com.azure.resourcemanager.recoveryservicesbackup.models.VaultJob":"Microsoft.RecoveryServices.VaultJob","com.azure.resourcemanager.recoveryservicesbackup.models.VaultJobErrorInfo":"Microsoft.RecoveryServices.VaultJobErrorInfo","com.azure.resourcemanager.recoveryservicesbackup.models.VaultJobExtendedInfo":"Microsoft.RecoveryServices.VaultJobExtendedInfo","com.azure.resourcemanager.recoveryservicesbackup.models.VaultRetentionPolicy":"Microsoft.RecoveryServices.VaultRetentionPolicy","com.azure.resourcemanager.recoveryservicesbackup.models.VaultSubResourceType":"Microsoft.RecoveryServices.VaultSubResourceType","com.azure.resourcemanager.recoveryservicesbackup.models.WeekOfMonth":"Microsoft.RecoveryServices.WeekOfMonth","com.azure.resourcemanager.recoveryservicesbackup.models.WeeklyRetentionFormat":"Microsoft.RecoveryServices.WeeklyRetentionFormat","com.azure.resourcemanager.recoveryservicesbackup.models.WeeklyRetentionSchedule":"Microsoft.RecoveryServices.WeeklyRetentionSchedule","com.azure.resourcemanager.recoveryservicesbackup.models.WeeklySchedule":"Microsoft.RecoveryServices.WeeklySchedule","com.azure.resourcemanager.recoveryservicesbackup.models.WorkloadInquiryDetails":"Microsoft.RecoveryServices.WorkloadInquiryDetails","com.azure.resourcemanager.recoveryservicesbackup.models.WorkloadItem":"Microsoft.RecoveryServices.WorkloadItem","com.azure.resourcemanager.recoveryservicesbackup.models.WorkloadItemType":"Microsoft.RecoveryServices.WorkloadItemType","com.azure.resourcemanager.recoveryservicesbackup.models.WorkloadProtectableItem":"Microsoft.RecoveryServices.WorkloadProtectableItem","com.azure.resourcemanager.recoveryservicesbackup.models.WorkloadType":"Microsoft.RecoveryServices.WorkloadType","com.azure.resourcemanager.recoveryservicesbackup.models.XcoolState":"Microsoft.RecoveryServices.XcoolState","com.azure.resourcemanager.recoveryservicesbackup.models.YearlyRetentionSchedule":"Microsoft.RecoveryServices.YearlyRetentionSchedule"},"generatedFiles":["src/main/java/com/azure/resourcemanager/recoveryservicesbackup/RecoveryServicesBackupManager.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/BackupEnginesClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/BackupJobsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/BackupOperationResultsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/BackupOperationStatusesClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/BackupPoliciesClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/BackupProtectableItemsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/BackupProtectedItemsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/BackupProtectionContainersClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/BackupProtectionIntentsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/BackupResourceEncryptionConfigsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/BackupResourceStorageConfigsNonCrrsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/BackupResourceVaultConfigsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/BackupStatusClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/BackupUsageSummariesClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/BackupWorkloadItemsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/BackupsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/BmsPrepareDataMoveOperationResultsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ConfigureSourceScansClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/DeletedProtectionContainersClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ExportJobsOperationResultsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/FeatureSupportsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/FetchTieringCostsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/GetTieringCostOperationResultsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ItemLevelRecoveryConnectionsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/JobCancellationsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/JobDetailsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/JobOperationResultsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/JobsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/OperationOperationsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/PrivateEndpointConnectionsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/PrivateEndpointsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ProtectableContainersClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ProtectedItemOperationResultsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ProtectedItemOperationStatusesClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ProtectedItemsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ProtectionContainerOperationResultsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ProtectionContainerRefreshOperationResultsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ProtectionContainerRefreshOperationStatusesClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ProtectionContainersClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ProtectionIntentsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ProtectionPoliciesClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ProtectionPolicyOperationResultsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ProtectionPolicyOperationStatusesClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/RecoveryPointsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/RecoveryPointsRecommendedForMovesClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/RecoveryServicesBackupManagementClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ResourceGuardProxyOperationsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ResourceProvidersClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/RestoresClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/SecurityPINsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/TieringCostOperationStatusClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ValidateOperationResultsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ValidateOperationStatusesClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/ValidateOperationsClient.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/AzureVMResourceFeatureSupportResponseInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/BackupEngineBaseResourceInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/BackupManagementUsageInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/BackupResourceConfigResourceInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/BackupResourceEncryptionConfigExtendedResourceInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/BackupResourceVaultConfigResourceInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/BackupStatusResponseInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/ClientDiscoveryValueForSingleApiInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/JobResourceInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/OperationResultInfoBaseResourceInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/OperationStatusInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/PreValidateEnableBackupResponseInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/PrivateEndpointConnectionResourceInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/ProtectableContainerResourceInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/ProtectedItemResourceInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/ProtectionContainerResourceInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/ProtectionIntentResourceInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/ProtectionPolicyResourceInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/RPExtendedInfoResourceListInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/RecoveryPointResourceInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/ResourceGuardProxyBaseResourceInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/TieringCostInfoInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/TokenInformationInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/UnlockDeleteResponseInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/ValidateOperationsResponseInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/VaultStorageConfigOperationResultResponseInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/WorkloadItemResourceInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/WorkloadProtectableItemResourceInner.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/fluent/package-info.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/AzureVMResourceFeatureSupportResponseImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupEngineBaseResourceImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupEnginesClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupEnginesImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupJobsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupJobsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupManagementUsageImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupOperationResultsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupOperationResultsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupOperationStatusesClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupOperationStatusesImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupPoliciesClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupPoliciesImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupProtectableItemsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupProtectableItemsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupProtectedItemsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupProtectedItemsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupProtectionContainersClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupProtectionContainersImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupProtectionIntentsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupProtectionIntentsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupResourceConfigResourceImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupResourceEncryptionConfigExtendedResourceImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupResourceEncryptionConfigsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupResourceEncryptionConfigsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupResourceStorageConfigsNonCrrsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupResourceStorageConfigsNonCrrsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupResourceVaultConfigResourceImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupResourceVaultConfigsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupResourceVaultConfigsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupStatusClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupStatusImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupStatusResponseImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupUsageSummariesClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupUsageSummariesImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupWorkloadItemsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupWorkloadItemsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BackupsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BmsPrepareDataMoveOperationResultsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/BmsPrepareDataMoveOperationResultsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ClientDiscoveryValueForSingleApiImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ConfigureSourceScansClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ConfigureSourceScansImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/DeletedProtectionContainersClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/DeletedProtectionContainersImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ExportJobsOperationResultsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ExportJobsOperationResultsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/FeatureSupportsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/FeatureSupportsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/FetchTieringCostsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/FetchTieringCostsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/GetTieringCostOperationResultsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/GetTieringCostOperationResultsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ItemLevelRecoveryConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ItemLevelRecoveryConnectionsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/JobCancellationsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/JobCancellationsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/JobDetailsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/JobDetailsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/JobOperationResultsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/JobOperationResultsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/JobResourceImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/JobsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/JobsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/OperationOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/OperationOperationsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/OperationResultInfoBaseResourceImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/OperationStatusImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/PreValidateEnableBackupResponseImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/PrivateEndpointConnectionResourceImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/PrivateEndpointConnectionsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/PrivateEndpointConnectionsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/PrivateEndpointsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/PrivateEndpointsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectableContainerResourceImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectableContainersClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectableContainersImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectedItemOperationResultsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectedItemOperationResultsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectedItemOperationStatusesClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectedItemOperationStatusesImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectedItemResourceImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectedItemsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectedItemsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionContainerOperationResultsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionContainerOperationResultsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionContainerRefreshOperationResultsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionContainerRefreshOperationResultsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionContainerRefreshOperationStatusesClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionContainerRefreshOperationStatusesImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionContainerResourceImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionContainersClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionContainersImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionIntentResourceImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionIntentsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionIntentsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionPoliciesClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionPoliciesImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionPolicyOperationResultsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionPolicyOperationResultsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionPolicyOperationStatusesClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionPolicyOperationStatusesImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ProtectionPolicyResourceImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/RPExtendedInfoResourceListImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/RecoveryPointResourceImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/RecoveryPointsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/RecoveryPointsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/RecoveryPointsRecommendedForMovesClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/RecoveryPointsRecommendedForMovesImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/RecoveryServicesBackupManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/RecoveryServicesBackupManagementClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ResourceGuardProxyBaseResourceImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ResourceGuardProxyOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ResourceGuardProxyOperationsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ResourceProvidersClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ResourceProvidersImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/RestoresClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/RestoresImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/SecurityPINsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/SecurityPINsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/TieringCostInfoImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/TieringCostOperationStatusClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/TieringCostOperationStatusImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/TokenInformationImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/UnlockDeleteResponseImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ValidateOperationResultsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ValidateOperationResultsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ValidateOperationStatusesClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ValidateOperationStatusesImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ValidateOperationsClientImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ValidateOperationsImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/ValidateOperationsResponseImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/VaultStorageConfigOperationResultResponseImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/WorkloadItemResourceImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/WorkloadProtectableItemResourceImpl.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/models/BackupEngineBaseResourceList.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/models/BackupManagementUsageList.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/models/ClientDiscoveryResponse.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/models/JobResourceList.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/models/ProtectableContainerResourceList.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/models/ProtectedItemResourceList.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/models/ProtectionContainerResourceList.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/models/ProtectionIntentResourceList.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/models/ProtectionPolicyResourceList.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/models/RecoveryPointResourceList.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/models/ResourceGuardProxyBaseResourceList.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/models/WorkloadItemResourceList.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/models/WorkloadProtectableItemResourceList.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/implementation/package-info.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AccessType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AcquireStorageAccountLock.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureBackupGoalFeatureSupportRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureBackupServerContainer.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureBackupServerEngine.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureFileShareBackupRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureFileShareProtectableItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureFileShareProtectionPolicy.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureFileShareProvisionIlrRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureFileShareRecoveryPoint.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureFileShareRestoreRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureFileShareType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureFileshareProtectedItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureFileshareProtectedItemExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSClassicComputeVMContainer.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSClassicComputeVMProtectableItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSClassicComputeVMProtectedItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSComputeVMContainer.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSComputeVMProtectableItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSComputeVMProtectedItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSvmErrorInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSvmHealthDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSvmJob.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSvmJobExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSvmJobTaskDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSvmJobV2.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSvmProtectedItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSvmProtectedItemExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureIaaSvmProtectionPolicy.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureRecoveryServiceVaultProtectionIntent.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureResourceProtectionIntent.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureSqlContainer.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureSqlProtectedItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureSqlProtectedItemExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureSqlProtectionPolicy.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureSqlagWorkloadContainerProtectionContainer.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureStorageContainer.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureStorageErrorInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureStorageJob.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureStorageJobExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureStorageJobTaskDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureStorageProtectableContainer.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVMAppContainerProtectableContainer.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVMAppContainerProtectionContainer.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVMResourceFeatureSupportRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVMResourceFeatureSupportResponse.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadProtectableItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadProtectedItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadProtectedItemExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadProtectionPolicy.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSQLInstanceProtectedItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSapAseDatabaseProtectableItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSapAseDatabaseProtectedItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSapAseDatabaseWorkloadItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSapAseSystemProtectableItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSapAseSystemWorkloadItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSapHanaDBInstance.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSapHanaDBInstanceProtectedItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSapHanaDatabaseProtectableItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSapHanaDatabaseProtectedItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSapHanaDatabaseWorkloadItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSapHanaHsr.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSapHanaSystemProtectableItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSapHanaSystemWorkloadItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSqlAvailabilityGroupProtectableItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSqlDatabaseProtectableItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSqlDatabaseProtectedItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSqlDatabaseWorkloadItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSqlInstanceProtectableItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureVmWorkloadSqlInstanceWorkloadItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadAutoProtectionIntent.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadBackupRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadContainer.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadContainerAutoProtectionIntent.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadContainerExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadErrorInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadJob.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadJobExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadJobTaskDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadPointInTimeRecoveryPoint.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadPointInTimeRestoreRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadRecoveryPoint.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadRestoreRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSapAsePointInTimeRecoveryPoint.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSapAsePointInTimeRestoreRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSapAseRecoveryPoint.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSapAseRestoreRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSapHanaPointInTimeRecoveryPoint.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSapHanaPointInTimeRestoreRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSapHanaPointInTimeRestoreWithRehydrateRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSapHanaRecoveryPoint.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSapHanaRestoreRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSapHanaRestoreWithRehydrateRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSqlAutoProtectionIntent.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSqlPointInTimeRecoveryPoint.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSqlPointInTimeRestoreRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSqlRecoveryPoint.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSqlRecoveryPointExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSqlRestoreRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/AzureWorkloadSqlRestoreWithRehydrateRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupEngineBase.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupEngineBaseResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupEngineExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupEngineType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupEngines.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupItemType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupJobs.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupManagementType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupManagementUsage.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupOperationResults.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupOperationStatuses.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupPolicies.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupProtectableItems.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupProtectedItems.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupProtectionContainers.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupProtectionIntents.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupRequestResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupResourceConfig.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupResourceConfigResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupResourceEncryptionConfig.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupResourceEncryptionConfigExtended.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupResourceEncryptionConfigExtendedResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupResourceEncryptionConfigResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupResourceEncryptionConfigs.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupResourceStorageConfigsNonCrrs.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupResourceVaultConfig.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupResourceVaultConfigResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupResourceVaultConfigs.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupStatus.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupStatusRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupStatusResponse.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupUsageSummaries.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BackupWorkloadItems.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/Backups.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BekDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/BmsPrepareDataMoveOperationResults.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ClientDiscoveryDisplay.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ClientDiscoveryForLogSpecification.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ClientDiscoveryForProperties.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ClientDiscoveryForServiceSpecification.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ClientDiscoveryValueForSingleApi.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ClientScriptForConnect.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ConfigureSourceScans.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ContainerIdentityInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/CopyOptions.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/CreateMode.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DailyRetentionFormat.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DailyRetentionSchedule.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DailySchedule.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DataDiskDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DataDiskEncryptionSettings.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DataMoveLevel.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DataSourceType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DatabaseInRP.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/Day.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DayOfWeek.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DedupState.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DeletedProtectionContainers.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DiskDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DiskExclusionProperties.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DiskInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DiskInformation.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DistributedNodesInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DpmBackupEngine.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DpmContainer.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DpmContainerExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DpmErrorInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DpmJob.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DpmJobExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DpmJobTaskDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DpmProtectedItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/DpmProtectedItemExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/EncryptionAtRestType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/EncryptionDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/EnhancedSecurityState.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ErrorDetail.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ExistingBasicVMProtection.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ExportJobsOperationResultInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ExportJobsOperationResults.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ExtendedLocation.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ExtendedProperties.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/FabricName.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/FeatureSupportRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/FeatureSupports.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/FetchTieringCostInfoForRehydrationRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/FetchTieringCostInfoRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/FetchTieringCostSavingsInfoForPolicyRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/FetchTieringCostSavingsInfoForProtectedItemRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/FetchTieringCostSavingsInfoForVaultRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/FetchTieringCosts.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/FilesystemInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/GenericContainer.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/GenericContainerExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/GenericProtectedItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/GenericProtectionPolicy.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/GenericRecoveryPoint.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/GetRPExtendedInfoRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/GetRPExtendedInfoRequestResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/GetTieringCostOperationResults.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/HealthStatus.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/HourlySchedule.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/HttpStatusCode.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/IaaSvmContainer.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/IaasVMBackupRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/IaasVMRPExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/IaasVMRecoveryPoint.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/IaasVMRestoreRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/IaasVMRestoreWithRehydrationRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/IaasVMSnapshotConsistencyType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/IaasVmProtectableItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/IaasVmilrRegistrationRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/IaasvmPolicyType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/IdentityBasedRestoreDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/IdentityInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/IlrRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/IlrRequestResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/InfrastructureEncryptionState.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/InquiryInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/InquiryStatus.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/InquiryValidation.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/InstanceProtectionReadiness.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/InstantItemRecoveryOperationResultRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/InstantItemRecoveryTarget.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/InstantRPAdditionalDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ItemLevelRecoveryConnections.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/Job.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/JobCancellations.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/JobDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/JobOperationResults.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/JobResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/JobSupportedAction.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/Jobs.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/KekDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/KeyAndSecretDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/KpiResourceHealthDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/LastBackupStatus.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/LastUpdateStatus.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ListRecoveryPointsRecommendedForMoveRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/LogSchedulePolicy.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/LongTermRetentionPolicy.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/LongTermSchedulePolicy.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/MabContainer.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/MabContainerExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/MabContainerHealthDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/MabErrorInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/MabFileFolderProtectedItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/MabFileFolderProtectedItemExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/MabJob.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/MabJobExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/MabJobTaskDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/MabProtectionPolicy.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/MabServerType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/MonthOfYear.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/MonthlyRetentionSchedule.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/MoveRPAcrossTiersRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/NameInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/OperationOperations.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/OperationResultInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/OperationResultInfoBase.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/OperationResultInfoBaseResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/OperationStatus.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/OperationStatusError.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/OperationStatusExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/OperationStatusJobExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/OperationStatusJobsExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/OperationStatusProvisionIlrExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/OperationStatusValidateOperationExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/OperationStatusValues.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/OperationType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/OperationWorkerResponse.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/Operations.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/OverwriteOptions.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/PerDiskEncryptionSetId.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/PointInTimeRange.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/PolicyType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/PreBackupValidation.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/PreValidateEnableBackupRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/PreValidateEnableBackupResponse.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/PrepareDataMoveRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/PrepareDataMoveResponse.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/PrivateEndpoint.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/PrivateEndpointConnection.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/PrivateEndpointConnectionResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/PrivateEndpointConnectionStatus.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/PrivateEndpointConnections.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/PrivateEndpoints.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/PrivateLinkServiceConnectionState.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectableContainer.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectableContainerResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectableContainerType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectableContainers.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectedItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectedItemConfigureSourceScanRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectedItemHealthStatus.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectedItemOperationResults.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectedItemOperationStatuses.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectedItemResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectedItemState.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectedItems.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionContainer.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionContainerOperationResults.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionContainerRefreshOperationResults.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionContainerRefreshOperationStatuses.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionContainerResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionContainers.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionIntent.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionIntentItemType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionIntentResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionIntents.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionLevel.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionPolicies.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionPolicy.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionPolicyOperationResults.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionPolicyOperationStatuses.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionPolicyResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionState.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProtectionStatus.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ProvisioningState.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RPExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RPExtendedInfoResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RPExtendedInfoResourceList.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryMode.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPoint.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPointDiskConfiguration.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPointImmutabilityProperties.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPointMoveReadinessInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPointProperties.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPointRehydrationInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPointResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPointTierInformation.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPointTierInformationV2.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPointTierStatus.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPointTierType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPoints.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPointsGetRPExtendedInfoOperationResultHeaders.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPointsGetRPExtendedInfoOperationResultResponse.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryPointsRecommendedForMoves.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RecoveryType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RehydrationPriority.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ResourceGuardOperationDetail.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ResourceGuardProxyBase.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ResourceGuardProxyBaseResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ResourceGuardProxyOperations.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ResourceHealthDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ResourceHealthStatus.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ResourceList.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ResourceProviders.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RestoreFileSpecs.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RestorePointType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RestoreRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RestoreRequestResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RestoreRequestType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/Restores.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RetentionDuration.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RetentionDurationType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RetentionPolicy.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/RetentionScheduleFormat.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SchedulePolicy.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ScheduleRunType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SecuredVMDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SecurityPINs.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SecurityPinBase.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/Settings.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SimpleRetentionPolicy.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SimpleSchedulePolicy.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SimpleSchedulePolicyV2.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SnapshotBackupAdditionalDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SnapshotRecoveryPointInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SnapshotRestoreParameters.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SoftDeleteFeatureState.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SourceScanAction.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SourceSideScanInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SourceSideScanStatus.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SourceSideScanSummary.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SqlDataDirectory.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SqlDataDirectoryMapping.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SqlDataDirectoryType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/StorageSpaceInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/StorageType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/StorageTypeState.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SubProtectionPolicy.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/SupportStatus.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/TargetAfsRestoreInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/TargetDiskNetworkAccessOption.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/TargetDiskNetworkAccessSettings.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/TargetRestoreInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ThreatInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ThreatSeverity.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ThreatState.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ThreatStatus.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/TieringCostInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/TieringCostOperationStatus.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/TieringCostRehydrationInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/TieringCostSavingInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/TieringMode.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/TieringPolicy.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/TokenInformation.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/TriggerDataMoveRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/UnlockDeleteRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/UnlockDeleteResponse.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/UsagesUnit.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/UserAssignedIdentityProperties.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/UserAssignedManagedIdentityDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/VMWorkloadPolicyType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ValidateAzureWorkloadRestoreOperationRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ValidateIaasVMRestoreOperationRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ValidateOperationRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ValidateOperationRequestResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ValidateOperationResponse.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ValidateOperationResults.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ValidateOperationStatuses.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ValidateOperations.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ValidateOperationsResponse.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ValidateRestoreOperationRequest.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/ValidationStatus.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/VaultJob.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/VaultJobErrorInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/VaultJobExtendedInfo.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/VaultRetentionPolicy.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/VaultStorageConfigOperationResultResponse.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/VaultSubResourceType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/WeekOfMonth.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/WeeklyRetentionFormat.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/WeeklyRetentionSchedule.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/WeeklySchedule.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/WorkloadInquiryDetails.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/WorkloadItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/WorkloadItemResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/WorkloadItemType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/WorkloadProtectableItem.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/WorkloadProtectableItemResource.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/WorkloadType.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/XcoolState.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/YearlyRetentionSchedule.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/models/package-info.java","src/main/java/com/azure/resourcemanager/recoveryservicesbackup/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-recoveryservicesbackup/proxy-config.json b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-recoveryservicesbackup/proxy-config.json index 991776eecb7f6..98c4528355147 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-recoveryservicesbackup/proxy-config.json +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/main/resources/META-INF/native-image/com.azure.resourcemanager/azure-resourcemanager-recoveryservicesbackup/proxy-config.json @@ -1 +1 @@ -[["com.azure.resourcemanager.recoveryservicesbackup.implementation.BackupEnginesClientImpl$BackupEnginesService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.BackupJobsClientImpl$BackupJobsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.BackupOperationResultsClientImpl$BackupOperationResultsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.BackupOperationStatusesClientImpl$BackupOperationStatusesService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.BackupPoliciesClientImpl$BackupPoliciesService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.BackupProtectableItemsClientImpl$BackupProtectableItemsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.BackupProtectedItemsClientImpl$BackupProtectedItemsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.BackupProtectionContainersClientImpl$BackupProtectionContainersService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.BackupProtectionIntentsClientImpl$BackupProtectionIntentsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.BackupResourceEncryptionConfigsClientImpl$BackupResourceEncryptionConfigsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.BackupResourceStorageConfigsNonCrrsClientImpl$BackupResourceStorageConfigsNonCrrsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.BackupResourceVaultConfigsClientImpl$BackupResourceVaultConfigsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.BackupStatusClientImpl$BackupStatusService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.BackupUsageSummariesClientImpl$BackupUsageSummariesService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.BackupWorkloadItemsClientImpl$BackupWorkloadItemsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.BackupsClientImpl$BackupsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.BmsPrepareDataMoveOperationResultsClientImpl$BmsPrepareDataMoveOperationResultsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ConfigureSourceScansClientImpl$ConfigureSourceScansService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.DeletedProtectionContainersClientImpl$DeletedProtectionContainersService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ExportJobsOperationResultsClientImpl$ExportJobsOperationResultsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.FeatureSupportsClientImpl$FeatureSupportsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.FetchTieringCostsClientImpl$FetchTieringCostsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.GetTieringCostOperationResultsClientImpl$GetTieringCostOperationResultsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ItemLevelRecoveryConnectionsClientImpl$ItemLevelRecoveryConnectionsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.JobCancellationsClientImpl$JobCancellationsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.JobDetailsClientImpl$JobDetailsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.JobOperationResultsClientImpl$JobOperationResultsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.JobsClientImpl$JobsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.OperationOperationsClientImpl$OperationOperationsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.PrivateEndpointConnectionsClientImpl$PrivateEndpointConnectionsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.PrivateEndpointsClientImpl$PrivateEndpointsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ProtectableContainersClientImpl$ProtectableContainersService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ProtectedItemOperationResultsClientImpl$ProtectedItemOperationResultsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ProtectedItemOperationStatusesClientImpl$ProtectedItemOperationStatusesService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ProtectedItemsClientImpl$ProtectedItemsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ProtectionContainerOperationResultsClientImpl$ProtectionContainerOperationResultsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ProtectionContainerRefreshOperationResultsClientImpl$ProtectionContainerRefreshOperationResultsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ProtectionContainersClientImpl$ProtectionContainersService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ProtectionIntentsClientImpl$ProtectionIntentsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ProtectionPoliciesClientImpl$ProtectionPoliciesService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ProtectionPolicyOperationResultsClientImpl$ProtectionPolicyOperationResultsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ProtectionPolicyOperationStatusesClientImpl$ProtectionPolicyOperationStatusesService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.RecoveryPointsClientImpl$RecoveryPointsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.RecoveryPointsRecommendedForMovesClientImpl$RecoveryPointsRecommendedForMovesService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ResourceGuardProxyOperationsClientImpl$ResourceGuardProxyOperationsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ResourceProvidersClientImpl$ResourceProvidersService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.RestoresClientImpl$RestoresService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.SecurityPINsClientImpl$SecurityPINsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.TieringCostOperationStatusClientImpl$TieringCostOperationStatusService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ValidateOperationResultsClientImpl$ValidateOperationResultsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ValidateOperationStatusesClientImpl$ValidateOperationStatusesService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ValidateOperationsClientImpl$ValidateOperationsService"]] \ No newline at end of file +[["com.azure.resourcemanager.recoveryservicesbackup.implementation.BackupEnginesClientImpl$BackupEnginesService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.BackupJobsClientImpl$BackupJobsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.BackupOperationResultsClientImpl$BackupOperationResultsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.BackupOperationStatusesClientImpl$BackupOperationStatusesService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.BackupPoliciesClientImpl$BackupPoliciesService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.BackupProtectableItemsClientImpl$BackupProtectableItemsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.BackupProtectedItemsClientImpl$BackupProtectedItemsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.BackupProtectionContainersClientImpl$BackupProtectionContainersService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.BackupProtectionIntentsClientImpl$BackupProtectionIntentsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.BackupResourceEncryptionConfigsClientImpl$BackupResourceEncryptionConfigsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.BackupResourceStorageConfigsNonCrrsClientImpl$BackupResourceStorageConfigsNonCrrsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.BackupResourceVaultConfigsClientImpl$BackupResourceVaultConfigsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.BackupStatusClientImpl$BackupStatusService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.BackupUsageSummariesClientImpl$BackupUsageSummariesService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.BackupWorkloadItemsClientImpl$BackupWorkloadItemsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.BackupsClientImpl$BackupsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.BmsPrepareDataMoveOperationResultsClientImpl$BmsPrepareDataMoveOperationResultsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ConfigureSourceScansClientImpl$ConfigureSourceScansService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.DeletedProtectionContainersClientImpl$DeletedProtectionContainersService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ExportJobsOperationResultsClientImpl$ExportJobsOperationResultsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.FeatureSupportsClientImpl$FeatureSupportsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.FetchTieringCostsClientImpl$FetchTieringCostsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.GetTieringCostOperationResultsClientImpl$GetTieringCostOperationResultsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ItemLevelRecoveryConnectionsClientImpl$ItemLevelRecoveryConnectionsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.JobCancellationsClientImpl$JobCancellationsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.JobDetailsClientImpl$JobDetailsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.JobOperationResultsClientImpl$JobOperationResultsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.JobsClientImpl$JobsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.OperationOperationsClientImpl$OperationOperationsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.OperationsClientImpl$OperationsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.PrivateEndpointConnectionsClientImpl$PrivateEndpointConnectionsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.PrivateEndpointsClientImpl$PrivateEndpointsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ProtectableContainersClientImpl$ProtectableContainersService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ProtectedItemOperationResultsClientImpl$ProtectedItemOperationResultsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ProtectedItemOperationStatusesClientImpl$ProtectedItemOperationStatusesService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ProtectedItemsClientImpl$ProtectedItemsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ProtectionContainerOperationResultsClientImpl$ProtectionContainerOperationResultsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ProtectionContainerRefreshOperationResultsClientImpl$ProtectionContainerRefreshOperationResultsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ProtectionContainerRefreshOperationStatusesClientImpl$ProtectionContainerRefreshOperationStatusesService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ProtectionContainersClientImpl$ProtectionContainersService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ProtectionIntentsClientImpl$ProtectionIntentsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ProtectionPoliciesClientImpl$ProtectionPoliciesService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ProtectionPolicyOperationResultsClientImpl$ProtectionPolicyOperationResultsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ProtectionPolicyOperationStatusesClientImpl$ProtectionPolicyOperationStatusesService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.RecoveryPointsClientImpl$RecoveryPointsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.RecoveryPointsRecommendedForMovesClientImpl$RecoveryPointsRecommendedForMovesService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ResourceGuardProxyOperationsClientImpl$ResourceGuardProxyOperationsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ResourceProvidersClientImpl$ResourceProvidersService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.RestoresClientImpl$RestoresService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.SecurityPINsClientImpl$SecurityPINsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.TieringCostOperationStatusClientImpl$TieringCostOperationStatusService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ValidateOperationResultsClientImpl$ValidateOperationResultsService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ValidateOperationStatusesClientImpl$ValidateOperationStatusesService"],["com.azure.resourcemanager.recoveryservicesbackup.implementation.ValidateOperationsClientImpl$ValidateOperationsService"]] \ No newline at end of file diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupEnginesGetSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupEnginesGetSamples.java index ac142c9b2e52c..b712e581b9ee0 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupEnginesGetSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupEnginesGetSamples.java @@ -9,7 +9,7 @@ */ public final class BackupEnginesGetSamples { /* - * x-ms-original-file: 2026-08-01/Dpm/BackupEngines_Get.json + * x-ms-original-file: 2026-10-01/Dpm/BackupEngines_Get.json */ /** * Sample code: Get Dpm/AzureBackupServer/Lajolla Backup Engine Details. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupEnginesListSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupEnginesListSamples.java index 9f0da35f7562e..0f48811d825ca 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupEnginesListSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupEnginesListSamples.java @@ -9,7 +9,7 @@ */ public final class BackupEnginesListSamples { /* - * x-ms-original-file: 2026-08-01/Dpm/BackupEngines_List.json + * x-ms-original-file: 2026-10-01/Dpm/BackupEngines_List.json */ /** * Sample code: List Dpm/AzureBackupServer/Lajolla Backup Engines. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupJobsListSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupJobsListSamples.java index 30d377f53d535..a832bdfe30d32 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupJobsListSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupJobsListSamples.java @@ -9,7 +9,7 @@ */ public final class BackupJobsListSamples { /* - * x-ms-original-file: 2026-08-01/Common/ListJobs.json + * x-ms-original-file: 2026-10-01/Common/ListJobs.json */ /** * Sample code: List All Jobs. @@ -22,7 +22,7 @@ public final class BackupJobsListSamples { } /* - * x-ms-original-file: 2026-08-01/Common/ListJobsWithAllSupportedFilters.json + * x-ms-original-file: 2026-10-01/Common/ListJobsWithAllSupportedFilters.json */ /** * Sample code: List Jobs With Filters. @@ -38,7 +38,7 @@ public final class BackupJobsListSamples { } /* - * x-ms-original-file: 2026-08-01/Common/ListJobsWithStartTimeAndEndTimeFilters.json + * x-ms-original-file: 2026-10-01/Common/ListJobsWithStartTimeAndEndTimeFilters.json */ /** * Sample code: List Jobs With Time Filter. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupOperationResultsGetSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupOperationResultsGetSamples.java index 0ceea2f8f164a..077ac1de441d4 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupOperationResultsGetSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupOperationResultsGetSamples.java @@ -9,7 +9,7 @@ */ public final class BackupOperationResultsGetSamples { /* - * x-ms-original-file: 2026-08-01/Common/ProtectedItem_Delete_OperationResult.json + * x-ms-original-file: 2026-10-01/Common/ProtectedItem_Delete_OperationResult.json */ /** * Sample code: Get Result for Protected Item Delete Operation. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupOperationStatusesGetSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupOperationStatusesGetSamples.java index c7ef3fb58a451..ca4130dff97e8 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupOperationStatusesGetSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupOperationStatusesGetSamples.java @@ -9,7 +9,7 @@ */ public final class BackupOperationStatusesGetSamples { /* - * x-ms-original-file: 2026-08-01/Common/ProtectedItem_Delete_OperationStatus.json + * x-ms-original-file: 2026-10-01/Common/ProtectedItem_Delete_OperationStatus.json */ /** * Sample code: Get Protected Item Delete Operation Status. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupPoliciesListSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupPoliciesListSamples.java index 939853c26fa2e..323f703c9bcd4 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupPoliciesListSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupPoliciesListSamples.java @@ -9,7 +9,7 @@ */ public final class BackupPoliciesListSamples { /* - * x-ms-original-file: 2026-08-01/AzureWorkload/BackupPolicies_List.json + * x-ms-original-file: 2026-10-01/AzureWorkload/BackupPolicies_List.json */ /** * Sample code: List protection policies with backupManagementType filter as AzureWorkload. @@ -24,7 +24,7 @@ public static void listProtectionPoliciesWithBackupManagementTypeFilterAsAzureWo } /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/V2Policy/v2-List-Policies.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/V2Policy/v2-List-Policies.json */ /** * Sample code: List protection policies with backupManagementType filter as AzureIaasVm with both V1 and V2 @@ -40,7 +40,7 @@ public static void listProtectionPoliciesWithBackupManagementTypeFilterAsAzureIa } /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/BackupPolicies_List.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/BackupPolicies_List.json */ /** * Sample code: List protection policies with backupManagementType filter as AzureIaasVm. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupProtectableItemsListSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupProtectableItemsListSamples.java index 37a357d61acc0..84d5c154e69ef 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupProtectableItemsListSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupProtectableItemsListSamples.java @@ -9,7 +9,7 @@ */ public final class BackupProtectableItemsListSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/BackupProtectableItems_List.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/BackupProtectableItems_List.json */ /** * Sample code: List protectable items with backupManagementType filter as AzureIaasVm. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupProtectedItemsListSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupProtectedItemsListSamples.java index ee99e169927ed..30df30f19fecd 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupProtectedItemsListSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupProtectedItemsListSamples.java @@ -9,7 +9,7 @@ */ public final class BackupProtectedItemsListSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/BackupProtectedItems_List.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/BackupProtectedItems_List.json */ /** * Sample code: List protected items with backupManagementType filter as AzureIaasVm. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupProtectionContainersListSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupProtectionContainersListSamples.java index ccc61eec5afe9..0a3f0504224f8 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupProtectionContainersListSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupProtectionContainersListSamples.java @@ -9,7 +9,7 @@ */ public final class BackupProtectionContainersListSamples { /* - * x-ms-original-file: 2026-08-01/AzureStorage/ProtectionContainers_List.json + * x-ms-original-file: 2026-10-01/AzureStorage/ProtectionContainers_List.json */ /** * Sample code: List Backup Protection Containers. @@ -23,7 +23,7 @@ public static void listBackupProtectionContainers( } /* - * x-ms-original-file: 2026-08-01/AzureStorage/ProtectionContainers_List_WithAccessType.json + * x-ms-original-file: 2026-10-01/AzureStorage/ProtectionContainers_List_WithAccessType.json */ /** * Sample code: List Backup Protection Containers with Access Type. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupProtectionIntentListSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupProtectionIntentListSamples.java index 7b100a9ac7a9b..81f28a560f8a6 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupProtectionIntentListSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupProtectionIntentListSamples.java @@ -9,7 +9,7 @@ */ public final class BackupProtectionIntentListSamples { /* - * x-ms-original-file: 2026-08-01/AzureWorkload/BackupProtectionIntent_List.json + * x-ms-original-file: 2026-10-01/AzureWorkload/BackupProtectionIntent_List.json */ /** * Sample code: List protection intent with backupManagementType filter. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceEncryptionConfigsGetSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceEncryptionConfigsGetSamples.java index c01cb2479d9d2..f162bea6530b4 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceEncryptionConfigsGetSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceEncryptionConfigsGetSamples.java @@ -9,7 +9,7 @@ */ public final class BackupResourceEncryptionConfigsGetSamples { /* - * x-ms-original-file: 2026-08-01/BackupResourceEncryptionConfig_Get.json + * x-ms-original-file: 2026-10-01/BackupResourceEncryptionConfig_Get.json */ /** * Sample code: Get Vault Encryption Configuration. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceEncryptionConfigsUpdateSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceEncryptionConfigsUpdateSamples.java index 75f2afef5b05a..f304f6c5b4a8c 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceEncryptionConfigsUpdateSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceEncryptionConfigsUpdateSamples.java @@ -14,7 +14,7 @@ */ public final class BackupResourceEncryptionConfigsUpdateSamples { /* - * x-ms-original-file: 2026-08-01/BackupResourceEncryptionConfig_Put.json + * x-ms-original-file: 2026-10-01/BackupResourceEncryptionConfig_Put.json */ /** * Sample code: Update Vault Encryption Configuration. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceStorageConfigsNonCrrGetSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceStorageConfigsNonCrrGetSamples.java index df166251ac956..dcef30e7ab245 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceStorageConfigsNonCrrGetSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceStorageConfigsNonCrrGetSamples.java @@ -9,7 +9,7 @@ */ public final class BackupResourceStorageConfigsNonCrrGetSamples { /* - * x-ms-original-file: 2026-08-01/Common/BackupStorageConfig_Get.json + * x-ms-original-file: 2026-10-01/Common/BackupStorageConfig_Get.json */ /** * Sample code: Get Vault Storage Configuration. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceStorageConfigsNonCrrPatchSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceStorageConfigsNonCrrPatchSamples.java index b2f625a61d07e..84aa5960f5992 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceStorageConfigsNonCrrPatchSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceStorageConfigsNonCrrPatchSamples.java @@ -14,7 +14,7 @@ */ public final class BackupResourceStorageConfigsNonCrrPatchSamples { /* - * x-ms-original-file: 2026-08-01/Common/BackupStorageConfig_Patch.json + * x-ms-original-file: 2026-10-01/Common/BackupStorageConfig_Patch.json */ /** * Sample code: Update Vault Storage Configuration. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceStorageConfigsNonCrrUpdateSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceStorageConfigsNonCrrUpdateSamples.java index dcec41e3b95a2..7906ae03300a6 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceStorageConfigsNonCrrUpdateSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceStorageConfigsNonCrrUpdateSamples.java @@ -14,7 +14,7 @@ */ public final class BackupResourceStorageConfigsNonCrrUpdateSamples { /* - * x-ms-original-file: 2026-08-01/Common/BackupStorageConfig_Put.json + * x-ms-original-file: 2026-10-01/Common/BackupStorageConfig_Put.json */ /** * Sample code: Update Vault Storage Configuration. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceVaultConfigsGetSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceVaultConfigsGetSamples.java index c64aee9e09b66..79ef2f0cfacaa 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceVaultConfigsGetSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceVaultConfigsGetSamples.java @@ -9,7 +9,7 @@ */ public final class BackupResourceVaultConfigsGetSamples { /* - * x-ms-original-file: 2026-08-01/Common/BackupResourceVaultConfigs_Get.json + * x-ms-original-file: 2026-10-01/Common/BackupResourceVaultConfigs_Get.json */ /** * Sample code: Get Vault Security Config. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceVaultConfigsPutSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceVaultConfigsPutSamples.java index 3d35f5a11eaa8..99f63d19633a8 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceVaultConfigsPutSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceVaultConfigsPutSamples.java @@ -14,7 +14,7 @@ */ public final class BackupResourceVaultConfigsPutSamples { /* - * x-ms-original-file: 2026-08-01/Common/BackupResourceVaultConfigs_Put.json + * x-ms-original-file: 2026-10-01/Common/BackupResourceVaultConfigs_Put.json */ /** * Sample code: Update Vault Security Config. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceVaultConfigsUpdateSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceVaultConfigsUpdateSamples.java index 3eaf698aaeac6..4f6d15ce1fdde 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceVaultConfigsUpdateSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceVaultConfigsUpdateSamples.java @@ -13,7 +13,7 @@ */ public final class BackupResourceVaultConfigsUpdateSamples { /* - * x-ms-original-file: 2026-08-01/Common/BackupResourceVaultConfigs_Patch.json + * x-ms-original-file: 2026-10-01/Common/BackupResourceVaultConfigs_Patch.json */ /** * Sample code: Update Vault Security Config. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupStatusGetSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupStatusGetSamples.java index c646201a9c00e..3b00661ac45c1 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupStatusGetSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupStatusGetSamples.java @@ -12,7 +12,7 @@ */ public final class BackupStatusGetSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/GetBackupStatus.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/GetBackupStatus.json */ /** * Sample code: Get Azure Virtual Machine Backup Status. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupUsageSummariesListSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupUsageSummariesListSamples.java index 0f5cab8202e9e..65f514b8aa17f 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupUsageSummariesListSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupUsageSummariesListSamples.java @@ -9,7 +9,7 @@ */ public final class BackupUsageSummariesListSamples { /* - * x-ms-original-file: 2026-08-01/Common/BackupProtectedItem_UsageSummary_Get.json + * x-ms-original-file: 2026-10-01/Common/BackupProtectedItem_UsageSummary_Get.json */ /** * Sample code: Get Protected Items Usages Summary. @@ -24,7 +24,7 @@ public static void getProtectedItemsUsagesSummary( } /* - * x-ms-original-file: 2026-08-01/Common/BackupProtectionContainers_UsageSummary_Get.json + * x-ms-original-file: 2026-10-01/Common/BackupProtectionContainers_UsageSummary_Get.json */ /** * Sample code: Get Protected Containers Usages Summary. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupWorkloadItemsListSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupWorkloadItemsListSamples.java index c9a26e8526897..0dd7b0edc0e2a 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupWorkloadItemsListSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupWorkloadItemsListSamples.java @@ -9,7 +9,7 @@ */ public final class BackupWorkloadItemsListSamples { /* - * x-ms-original-file: 2026-08-01/AzureWorkload/BackupWorkloadItems_List.json + * x-ms-original-file: 2026-10-01/AzureWorkload/BackupWorkloadItems_List.json */ /** * Sample code: List Workload Items in Container. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupsTriggerSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupsTriggerSamples.java index cbcef18f42b1a..765367a4aa50c 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupsTriggerSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupsTriggerSamples.java @@ -12,7 +12,7 @@ */ public final class BackupsTriggerSamples { /* - * x-ms-original-file: 2026-08-01/Common/TriggerBackup_Post.json + * x-ms-original-file: 2026-10-01/Common/TriggerBackup_Post.json */ /** * Sample code: Trigger Backup. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BmsPrepareDataMoveOperationResultGetSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BmsPrepareDataMoveOperationResultGetSamples.java index 36443fe1150f5..c5b535ec69849 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BmsPrepareDataMoveOperationResultGetSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BmsPrepareDataMoveOperationResultGetSamples.java @@ -9,7 +9,7 @@ */ public final class BmsPrepareDataMoveOperationResultGetSamples { /* - * x-ms-original-file: 2026-08-01/BackupDataMove/PrepareDataMoveOperationResult_Get.json + * x-ms-original-file: 2026-10-01/BackupDataMove/PrepareDataMoveOperationResult_Get.json */ /** * Sample code: Get operation result for PrepareDataMove. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ConfigureSourceScanExecuteSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ConfigureSourceScanExecuteSamples.java index 83618ff9c277a..8936b29e57ab9 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ConfigureSourceScanExecuteSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ConfigureSourceScanExecuteSamples.java @@ -12,7 +12,7 @@ */ public final class ConfigureSourceScanExecuteSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/ConfigureSourceScan.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/ConfigureSourceScan.json */ /** * Sample code: Configure Source Scan for Protected Item. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DeletedProtectionContainersListSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DeletedProtectionContainersListSamples.java index 65293f6eeb367..1b3c2bf3c6bef 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DeletedProtectionContainersListSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DeletedProtectionContainersListSamples.java @@ -9,7 +9,7 @@ */ public final class DeletedProtectionContainersListSamples { /* - * x-ms-original-file: 2026-08-01/AzureStorage/SoftDeletedContainers_List.json + * x-ms-original-file: 2026-10-01/AzureStorage/SoftDeletedContainers_List.json */ /** * Sample code: List Backup Protection Containers. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ExportJobsOperationResultsGetSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ExportJobsOperationResultsGetSamples.java index c99ecd608f471..30d38094b622a 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ExportJobsOperationResultsGetSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ExportJobsOperationResultsGetSamples.java @@ -9,7 +9,7 @@ */ public final class ExportJobsOperationResultsGetSamples { /* - * x-ms-original-file: 2026-08-01/Common/ExportJobsOperationResult.json + * x-ms-original-file: 2026-10-01/Common/ExportJobsOperationResult.json */ /** * Sample code: Export Jobs Operation Results. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FeatureSupportValidateSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FeatureSupportValidateSamples.java index 6ccf09cb5b7ed..c93a21efa66f9 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FeatureSupportValidateSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FeatureSupportValidateSamples.java @@ -11,7 +11,7 @@ */ public final class FeatureSupportValidateSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/BackupFeature_Validate.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/BackupFeature_Validate.json */ /** * Sample code: Check Azure Vm Backup Feature Support. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FetchTieringCostPostSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FetchTieringCostPostSamples.java index bb215419e026c..e40fcb885cae3 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FetchTieringCostPostSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FetchTieringCostPostSamples.java @@ -16,7 +16,7 @@ */ public final class FetchTieringCostPostSamples { /* - * x-ms-original-file: 2026-08-01/TieringCost/FetchTieringCostForRehydrate.json + * x-ms-original-file: 2026-10-01/TieringCost/FetchTieringCostForRehydrate.json */ /** * Sample code: Get the rehydration cost for recovery point. @@ -37,7 +37,7 @@ public static void getTheRehydrationCostForRecoveryPoint( } /* - * x-ms-original-file: 2026-08-01/TieringCost/FetchTieringCostForProtectedItem.json + * x-ms-original-file: 2026-10-01/TieringCost/FetchTieringCostForProtectedItem.json */ /** * Sample code: Get the tiering savings cost info for protected item. @@ -57,7 +57,7 @@ public static void getTheTieringSavingsCostInfoForProtectedItem( } /* - * x-ms-original-file: 2026-08-01/TieringCost/FetchTieringCostForPolicy.json + * x-ms-original-file: 2026-10-01/TieringCost/FetchTieringCostForPolicy.json */ /** * Sample code: Get the tiering savings cost info for policy. @@ -75,7 +75,7 @@ public static void getTheTieringSavingsCostInfoForPolicy( } /* - * x-ms-original-file: 2026-08-01/TieringCost/FetchTieringCostForVault.json + * x-ms-original-file: 2026-10-01/TieringCost/FetchTieringCostForVault.json */ /** * Sample code: Get the tiering savings cost info for vault. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/GetTieringCostOperationResultGetSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/GetTieringCostOperationResultGetSamples.java index 6559c2a75c547..3b69f4475e873 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/GetTieringCostOperationResultGetSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/GetTieringCostOperationResultGetSamples.java @@ -9,7 +9,7 @@ */ public final class GetTieringCostOperationResultGetSamples { /* - * x-ms-original-file: 2026-08-01/TieringCost/GetTieringCostOperationResult.json + * x-ms-original-file: 2026-10-01/TieringCost/GetTieringCostOperationResult.json */ /** * Sample code: Fetch Tiering Cost Operation Result. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ItemLevelRecoveryConnectionsListInstantItemRecoveryOperationResultSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ItemLevelRecoveryConnectionsListInstantItemRecoveryOperationResultSamples.java index 9af7a1e6f651c..ff75ca3db4e34 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ItemLevelRecoveryConnectionsListInstantItemRecoveryOperationResultSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ItemLevelRecoveryConnectionsListInstantItemRecoveryOperationResultSamples.java @@ -11,7 +11,7 @@ */ public final class ItemLevelRecoveryConnectionsListInstantItemRecoveryOperationResultSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/ListInstantItemRecoveryOperationResult.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/ListInstantItemRecoveryOperationResult.json */ /** * Sample code: List the Instant Item Recovery operation result (mount scripts) for an active ILR session. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ItemLevelRecoveryConnectionsProvisionSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ItemLevelRecoveryConnectionsProvisionSamples.java index 88ea496f249e4..7a8353ec4f57a 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ItemLevelRecoveryConnectionsProvisionSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ItemLevelRecoveryConnectionsProvisionSamples.java @@ -12,7 +12,7 @@ */ public final class ItemLevelRecoveryConnectionsProvisionSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/Provision_Ilr.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/Provision_Ilr.json */ /** * Sample code: Provision Instant Item Level Recovery for Azure Vm. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ItemLevelRecoveryConnectionsRevokeSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ItemLevelRecoveryConnectionsRevokeSamples.java index 52d11a17cc453..2bc78158d9f08 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ItemLevelRecoveryConnectionsRevokeSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ItemLevelRecoveryConnectionsRevokeSamples.java @@ -9,7 +9,7 @@ */ public final class ItemLevelRecoveryConnectionsRevokeSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/Revoke_Ilr.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/Revoke_Ilr.json */ /** * Sample code: Revoke Instant Item Level Recovery for Azure Vm. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobCancellationsTriggerSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobCancellationsTriggerSamples.java index e7e793d0a706b..bcf357e50fba0 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobCancellationsTriggerSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobCancellationsTriggerSamples.java @@ -9,7 +9,7 @@ */ public final class JobCancellationsTriggerSamples { /* - * x-ms-original-file: 2026-08-01/Common/TriggerCancelJob.json + * x-ms-original-file: 2026-10-01/Common/TriggerCancelJob.json */ /** * Sample code: Cancel Job. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobDetailsGetSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobDetailsGetSamples.java index 8bce9a8769a56..de67b71abb76c 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobDetailsGetSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobDetailsGetSamples.java @@ -9,7 +9,7 @@ */ public final class JobDetailsGetSamples { /* - * x-ms-original-file: 2026-08-01/Common/GetJobDetails.json + * x-ms-original-file: 2026-10-01/Common/GetJobDetails.json */ /** * Sample code: Get Job Details. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobOperationResultsGetSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobOperationResultsGetSamples.java index 860341d47bbc7..990f70fd36c47 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobOperationResultsGetSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobOperationResultsGetSamples.java @@ -9,7 +9,7 @@ */ public final class JobOperationResultsGetSamples { /* - * x-ms-original-file: 2026-08-01/Common/CancelJobOperationResult.json + * x-ms-original-file: 2026-10-01/Common/CancelJobOperationResult.json */ /** * Sample code: Cancel Job Operation Result. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobsExportSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobsExportSamples.java index 528d9463e9e1e..1340617c70f6a 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobsExportSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobsExportSamples.java @@ -9,7 +9,7 @@ */ public final class JobsExportSamples { /* - * x-ms-original-file: 2026-08-01/Common/TriggerExportJobs.json + * x-ms-original-file: 2026-10-01/Common/TriggerExportJobs.json */ /** * Sample code: Export Jobs. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/OperationOperationValidateSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/OperationOperationValidateSamples.java index b5ff9f8f2dc7d..18636fbab2224 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/OperationOperationValidateSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/OperationOperationValidateSamples.java @@ -17,7 +17,7 @@ */ public final class OperationOperationValidateSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/ValidateOperation_RestoreDisk.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/ValidateOperation_RestoreDisk.json */ /** * Sample code: Validate Operation. @@ -47,7 +47,7 @@ public final class OperationOperationValidateSamples { } /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/ValidateOperation_RestoreDisk_IdentityBasedRestoreDetails.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/ValidateOperation_RestoreDisk_IdentityBasedRestoreDetails.json */ /** * Sample code: Validate Operation with identityBasedRestoreDetails. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/OperationsListSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/OperationsListSamples.java index 13906d943a006..c589e11ccebe8 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/OperationsListSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/OperationsListSamples.java @@ -9,7 +9,7 @@ */ public final class OperationsListSamples { /* - * x-ms-original-file: 2026-08-01/ListOperations.json + * x-ms-original-file: 2026-10-01/ListOperations.json */ /** * Sample code: ListOperations. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointConnectionDeleteSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointConnectionDeleteSamples.java index dcc68f5aa06b1..2a610f87242d2 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointConnectionDeleteSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointConnectionDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateEndpointConnectionDeleteSamples { /* - * x-ms-original-file: 2026-08-01/PrivateEndpointConnection/DeletePrivateEndpointConnection.json + * x-ms-original-file: 2026-10-01/PrivateEndpointConnection/DeletePrivateEndpointConnection.json */ /** * Sample code: Delete PrivateEndpointConnection. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointConnectionGetSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointConnectionGetSamples.java index 89c44288a9ede..a709cd39bab2a 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointConnectionGetSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointConnectionGetSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateEndpointConnectionGetSamples { /* - * x-ms-original-file: 2026-08-01/PrivateEndpointConnection/GetPrivateEndpointConnection.json + * x-ms-original-file: 2026-10-01/PrivateEndpointConnection/GetPrivateEndpointConnection.json */ /** * Sample code: Get PrivateEndpointConnection. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointConnectionPutSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointConnectionPutSamples.java index e9f8742286f33..e2b322d85bc70 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointConnectionPutSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointConnectionPutSamples.java @@ -18,7 +18,7 @@ */ public final class PrivateEndpointConnectionPutSamples { /* - * x-ms-original-file: 2026-08-01/PrivateEndpointConnection/PutPrivateEndpointConnection.json + * x-ms-original-file: 2026-10-01/PrivateEndpointConnection/PutPrivateEndpointConnection.json */ /** * Sample code: Update PrivateEndpointConnection. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointGetOperationStatusSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointGetOperationStatusSamples.java index d5fc642cda97c..174e2a86a68f9 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointGetOperationStatusSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointGetOperationStatusSamples.java @@ -9,7 +9,7 @@ */ public final class PrivateEndpointGetOperationStatusSamples { /* - * x-ms-original-file: 2026-08-01/PrivateEndpointConnection/GetPrivateEndpointConnectionOperationStatus.json + * x-ms-original-file: 2026-10-01/PrivateEndpointConnection/GetPrivateEndpointConnectionOperationStatus.json */ /** * Sample code: Get OperationStatus. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectableContainersListSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectableContainersListSamples.java index 20b28f8ae54d2..65f3da92e64ac 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectableContainersListSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectableContainersListSamples.java @@ -9,7 +9,7 @@ */ public final class ProtectableContainersListSamples { /* - * x-ms-original-file: 2026-08-01/AzureStorage/ProtectableContainers_List.json + * x-ms-original-file: 2026-10-01/AzureStorage/ProtectableContainers_List.json */ /** * Sample code: List protectable items with backupManagementType filter as AzureStorage. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemOperationResultsGetSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemOperationResultsGetSamples.java index 63a473283bdd8..0d446e012a53e 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemOperationResultsGetSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemOperationResultsGetSamples.java @@ -9,7 +9,7 @@ */ public final class ProtectedItemOperationResultsGetSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/ProtectedItemOperationResults.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/ProtectedItemOperationResults.json */ /** * Sample code: Get Operation Results of Protected Vm. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemOperationStatusesGetSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemOperationStatusesGetSamples.java index f0b0412085754..09ecdeaca31ed 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemOperationStatusesGetSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemOperationStatusesGetSamples.java @@ -9,7 +9,7 @@ */ public final class ProtectedItemOperationStatusesGetSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/ProtectedItemOperationStatus.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/ProtectedItemOperationStatus.json */ /** * Sample code: Get Operation Status of Protected Vm. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemsCreateOrUpdateSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemsCreateOrUpdateSamples.java index 8eb9837b617cf..f990269082c74 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemsCreateOrUpdateSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemsCreateOrUpdateSamples.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.recoveryservicesbackup.generated; import com.azure.resourcemanager.recoveryservicesbackup.models.AzureIaaSComputeVMProtectedItem; +import com.azure.resourcemanager.recoveryservicesbackup.models.ExistingBasicVMProtection; import com.azure.resourcemanager.recoveryservicesbackup.models.ProtectionState; /** @@ -12,7 +13,7 @@ */ public final class ProtectedItemsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/StopProtection.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/StopProtection.json */ /** * Sample code: Stop Protection with retain data on Azure IaasVm. @@ -32,7 +33,7 @@ public static void stopProtectionWithRetainDataOnAzureIaasVm( } /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/ConfigureProtection.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/ConfigureProtection.json */ /** * Sample code: Enable Protection on Azure IaasVm. @@ -48,7 +49,8 @@ public static void enableProtectionOnAzureIaasVm( .withProperties(new AzureIaaSComputeVMProtectedItem().withSourceResourceId( "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/netsdktestrg/providers/Microsoft.Compute/virtualMachines/netvmtestv2vm1") .withPolicyId( - "/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/DefaultPolicy")) + "/Subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/SwaggerTestRg/providers/Microsoft.RecoveryServices/vaults/NetSDKTestRsVault/backupPolicies/DefaultPolicy") + .withExistingBasicVMProtection(ExistingBasicVMProtection.DISABLE_WITH_DELETE_RPS_NOW)) .create(); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemsDeleteSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemsDeleteSamples.java index badd9c984ea70..362777a9dcf16 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemsDeleteSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class ProtectedItemsDeleteSamples { /* - * x-ms-original-file: 2026-08-01/Common/ProtectedItem_Delete.json + * x-ms-original-file: 2026-10-01/Common/ProtectedItem_Delete.json */ /** * Sample code: Delete Protection from Azure Virtual Machine. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemsGetSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemsGetSamples.java index 8f295b0893dcf..0d39c0cc6e930 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemsGetSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemsGetSamples.java @@ -9,7 +9,7 @@ */ public final class ProtectedItemsGetSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/ClassicCompute_ProtectedItem_Get.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/ClassicCompute_ProtectedItem_Get.json */ /** * Sample code: Get Protected Classic Virtual Machine Details. @@ -25,7 +25,7 @@ public static void getProtectedClassicVirtualMachineDetails( } /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/Compute_ProtectedItem_Get.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/Compute_ProtectedItem_Get.json */ /** * Sample code: Get Protected Virtual Machine Details. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainerOperationResultsGetSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainerOperationResultsGetSamples.java index aeb9451d09f36..31a2dc83dffaa 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainerOperationResultsGetSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainerOperationResultsGetSamples.java @@ -9,7 +9,7 @@ */ public final class ProtectionContainerOperationResultsGetSamples { /* - * x-ms-original-file: 2026-08-01/AzureStorage/ProtectionContainers_Inquire_Result.json + * x-ms-original-file: 2026-10-01/AzureStorage/ProtectionContainers_Inquire_Result.json */ /** * Sample code: Get Azure Storage Protection Container Operation Result. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainerRefreshOperationResultsGetSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainerRefreshOperationResultsGetSamples.java index 5e37e1b96fe90..47ed07308b0bc 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainerRefreshOperationResultsGetSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainerRefreshOperationResultsGetSamples.java @@ -9,7 +9,7 @@ */ public final class ProtectionContainerRefreshOperationResultsGetSamples { /* - * x-ms-original-file: 2026-08-01/Common/RefreshContainers_OperationResults.json + * x-ms-original-file: 2026-10-01/Common/RefreshContainers_OperationResults.json */ /** * Sample code: Azure Vm Discovery Operation Result. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainerRefreshOperationStatusesGetSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainerRefreshOperationStatusesGetSamples.java new file mode 100644 index 0000000000000..508c02ee7b5cf --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainerRefreshOperationStatusesGetSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.generated; + +/** + * Samples for ProtectionContainerRefreshOperationStatuses Get. + */ +public final class ProtectionContainerRefreshOperationStatusesGetSamples { + /* + * x-ms-original-file: 2026-10-01/Common/RefreshContainers_OperationStatus.json + */ + /** + * Sample code: Get Fabric Level Operation Status. + * + * @param manager Entry point to RecoveryServicesBackupManager. + */ + public static void getFabricLevelOperationStatus( + com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager manager) { + manager.protectionContainerRefreshOperationStatuses() + .getWithResponse("SwaggerTestRg", "NetSDKTestRsVault", "Azure", "00000000-0000-0000-0000-000000000000", + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersGetSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersGetSamples.java index 83ca722205177..ff30e932dd711 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersGetSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersGetSamples.java @@ -9,7 +9,7 @@ */ public final class ProtectionContainersGetSamples { /* - * x-ms-original-file: 2026-08-01/AzureWorkload/ProtectionContainers_Get.json + * x-ms-original-file: 2026-10-01/AzureWorkload/ProtectionContainers_Get.json */ /** * Sample code: Get Protection Container Details. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersInquireSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersInquireSamples.java index fc09ab3230873..d7e46b126bf28 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersInquireSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersInquireSamples.java @@ -9,7 +9,7 @@ */ public final class ProtectionContainersInquireSamples { /* - * x-ms-original-file: 2026-08-01/AzureStorage/ProtectionContainers_Inquire.json + * x-ms-original-file: 2026-10-01/AzureStorage/ProtectionContainers_Inquire.json */ /** * Sample code: Inquire Azure Storage Protection Containers. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersRefreshSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersRefreshSamples.java index 8e36da4dc48a7..9610db911ab40 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersRefreshSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersRefreshSamples.java @@ -9,7 +9,7 @@ */ public final class ProtectionContainersRefreshSamples { /* - * x-ms-original-file: 2026-08-01/Common/RefreshContainers.json + * x-ms-original-file: 2026-10-01/Common/RefreshContainers.json */ /** * Sample code: Trigger Azure Vm Discovery. @@ -21,4 +21,20 @@ public static void triggerAzureVmDiscovery( manager.protectionContainers() .refreshWithResponse("NetSDKTestRsVault", "SwaggerTestRg", "Azure", null, com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2026-10-01/Common/RefreshContainers_CrossSubscription.json + */ + /** + * Sample code: Trigger cross-subscription Azure Workload discovery. + * + * @param manager Entry point to RecoveryServicesBackupManager. + */ + public static void triggerCrossSubscriptionAzureWorkloadDiscovery( + com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager manager) { + manager.protectionContainers() + .refreshWithResponse("NetSDKTestRsVault", "SwaggerTestRg", "Azure", + "backupManagementType eq 'AzureWorkload' and containerSubscriptionId eq 'a76f4f58-8c04-4f53-9e68-4a698b0f43e4'", + com.azure.core.util.Context.NONE); + } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersRegisterSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersRegisterSamples.java index b3d6489c33c55..3e4e2d40bccfa 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersRegisterSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersRegisterSamples.java @@ -16,7 +16,7 @@ */ public final class ProtectionContainersRegisterSamples { /* - * x-ms-original-file: 2026-08-01/AzureStorage/ProtectionContainers_ReRegister_SwitchToUAMI.json + * x-ms-original-file: 2026-10-01/AzureStorage/ProtectionContainers_ReRegister_SwitchToUAMI.json */ /** * Sample code: Re-register Azure Storage ProtectionContainers switching to User Assigned Managed Identity. @@ -42,7 +42,7 @@ public static void reRegisterAzureStorageProtectionContainersSwitchingToUserAssi } /* - * x-ms-original-file: 2026-08-01/AzureStorage/ProtectionContainers_Register.json + * x-ms-original-file: 2026-10-01/AzureStorage/ProtectionContainers_Register.json */ /** * Sample code: RegisterAzure Storage ProtectionContainers. @@ -63,7 +63,7 @@ public static void registerAzureStorageProtectionContainers( } /* - * x-ms-original-file: 2026-08-01/AzureStorage/ProtectionContainers_ReRegister_SwitchToSAMI.json + * x-ms-original-file: 2026-10-01/AzureStorage/ProtectionContainers_ReRegister_SwitchToSAMI.json */ /** * Sample code: Re-register Azure Storage ProtectionContainers switching to System Assigned Managed Identity. @@ -87,7 +87,7 @@ public static void reRegisterAzureStorageProtectionContainersSwitchingToSystemAs } /* - * x-ms-original-file: 2026-08-01/AzureStorage/ProtectionContainers_Register_WithSAMI.json + * x-ms-original-file: 2026-10-01/AzureStorage/ProtectionContainers_Register_WithSAMI.json */ /** * Sample code: Register Azure Storage ProtectionContainers with System Assigned Managed Identity. @@ -110,7 +110,7 @@ public static void registerAzureStorageProtectionContainersWithSystemAssignedMan } /* - * x-ms-original-file: 2026-08-01/AzureStorage/ProtectionContainers_Register_WithUAMI.json + * x-ms-original-file: 2026-10-01/AzureStorage/ProtectionContainers_Register_WithUAMI.json */ /** * Sample code: Register Azure Storage ProtectionContainers with User Assigned Managed Identity. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersUnregisterSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersUnregisterSamples.java index 855d349d2174f..9c4f206486c1b 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersUnregisterSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersUnregisterSamples.java @@ -9,7 +9,7 @@ */ public final class ProtectionContainersUnregisterSamples { /* - * x-ms-original-file: 2026-08-01/AzureWorkload/ProtectionContainers_Unregister.json + * x-ms-original-file: 2026-10-01/AzureWorkload/ProtectionContainers_Unregister.json */ /** * Sample code: Unregister Protection Container. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentCreateOrUpdateSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentCreateOrUpdateSamples.java index 74eba0fcb3207..7a309022dad7b 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentCreateOrUpdateSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentCreateOrUpdateSamples.java @@ -11,7 +11,7 @@ */ public final class ProtectionIntentCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/ProtectionIntent_CreateOrUpdate.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/ProtectionIntent_CreateOrUpdate.json */ /** * Sample code: Create or Update Azure Vm Protection Intent. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentDeleteSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentDeleteSamples.java index 6b75ffb456a07..c0bef8ba38559 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentDeleteSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class ProtectionIntentDeleteSamples { /* - * x-ms-original-file: 2026-08-01/AzureWorkload/BackupProtectionIntent_Delete.json + * x-ms-original-file: 2026-10-01/AzureWorkload/BackupProtectionIntent_Delete.json */ /** * Sample code: Delete Protection intent from item. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentGetSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentGetSamples.java index 41bb2b29a2d15..9f3286c2ca004 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentGetSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentGetSamples.java @@ -9,7 +9,7 @@ */ public final class ProtectionIntentGetSamples { /* - * x-ms-original-file: 2026-08-01/AzureWorkload/BackupProtectionIntent_Get.json + * x-ms-original-file: 2026-10-01/AzureWorkload/BackupProtectionIntent_Get.json */ /** * Sample code: Get ProtectionIntent for an item. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentValidateSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentValidateSamples.java index 3ef53c90d7f20..03c4350cd5caa 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentValidateSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentValidateSamples.java @@ -12,7 +12,7 @@ */ public final class ProtectionIntentValidateSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/ProtectionIntent_Validate.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/ProtectionIntent_Validate.json */ /** * Sample code: Validate Enable Protection on Azure Vm. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPoliciesCreateOrUpdateSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPoliciesCreateOrUpdateSamples.java index 9f46ceb852b66..74b8cba55ec50 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPoliciesCreateOrUpdateSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPoliciesCreateOrUpdateSamples.java @@ -41,7 +41,7 @@ */ public final class ProtectionPoliciesCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Simple.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Simple.json */ /** * Sample code: Create or Update Simple Azure Vm Protection Policy. @@ -65,7 +65,7 @@ public static void createOrUpdateSimpleAzureVmProtectionPolicy( } /* - * x-ms-original-file: 2026-08-01/AzureWorkload/ProtectionPolicies_CreateOrUpdate_Complex.json + * x-ms-original-file: 2026-10-01/AzureWorkload/ProtectionPolicies_CreateOrUpdate_Complex.json */ /** * Sample code: Create or Update Full Azure Workload Protection Policy. @@ -128,7 +128,7 @@ public static void createOrUpdateFullAzureWorkloadProtectionPolicy( } /* - * x-ms-original-file: 2026-08-01/AzureStorage/ProtectionPolicies_CreateOrUpdate_Daily.json + * x-ms-original-file: 2026-10-01/AzureStorage/ProtectionPolicies_CreateOrUpdate_Daily.json */ /** * Sample code: Create or Update Daily Azure Storage Protection Policy. @@ -178,7 +178,7 @@ public static void createOrUpdateDailyAzureStorageProtectionPolicy( } /* - * x-ms-original-file: 2026-08-01/AzureStorage/ProtectionPolicies_CreateOrUpdate_Hardened.json + * x-ms-original-file: 2026-10-01/AzureStorage/ProtectionPolicies_CreateOrUpdate_Hardened.json */ /** * Sample code: Create or Update Azure Storage Vault Standard Protection Policy. @@ -233,7 +233,7 @@ public static void createOrUpdateAzureStorageVaultStandardProtectionPolicy( } /* - * x-ms-original-file: 2026-08-01/AzureStorage/ProtectionPolicies_CreateOrUpdate_Hourly.json + * x-ms-original-file: 2026-10-01/AzureStorage/ProtectionPolicies_CreateOrUpdate_Hourly.json */ /** * Sample code: Create or Update Hourly Azure Storage Protection Policy. @@ -278,7 +278,7 @@ public static void createOrUpdateHourlyAzureStorageProtectionPolicy( } /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Complex.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/ProtectionPolicies_CreateOrUpdate_Complex.json */ /** * Sample code: Create or Update Full Azure Vm Protection Policy. @@ -328,7 +328,7 @@ public static void createOrUpdateFullAzureVmProtectionPolicy( } /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/V2Policy/IaaS_v2_hourly.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/V2Policy/IaaS_v2_hourly.json */ /** * Sample code: Create or Update Enhanced Azure Vm Protection Policy with Hourly backup. @@ -382,7 +382,7 @@ public static void createOrUpdateEnhancedAzureVmProtectionPolicyWithHourlyBackup } /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/V2Policy/IaaS_v2_daily.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/V2Policy/IaaS_v2_daily.json */ /** * Sample code: Create or Update Enhanced Azure Vm Protection Policy with daily backup. @@ -428,6 +428,8 @@ public static void createOrUpdateEnhancedAzureVmProtectionPolicyWithDailyBackup( .withRetentionDuration(new RetentionDuration().withCount(10) .withDurationType(RetentionDurationType.YEARS)))) .withInstantRpRetentionRangeInDays(30) + .withInstantAccessSnapshotEnabled(true) + .withInstantAccessDurationMinutes(120) .withTimeZone("India Standard Time") .withPolicyType(IaasvmPolicyType.V2) .withSnapshotConsistencyType(IaasVMSnapshotConsistencyType.ONLY_CRASH_CONSISTENT)) diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPoliciesDeleteSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPoliciesDeleteSamples.java index a3abcfb72065b..34b592103e496 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPoliciesDeleteSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPoliciesDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class ProtectionPoliciesDeleteSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/ProtectionPolicies_Delete.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/ProtectionPolicies_Delete.json */ /** * Sample code: Delete Azure Vm Protection Policy. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPoliciesGetSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPoliciesGetSamples.java index 85ddd18490071..eee9d5b537bd5 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPoliciesGetSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPoliciesGetSamples.java @@ -9,7 +9,7 @@ */ public final class ProtectionPoliciesGetSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/ProtectionPolicies_Get.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/ProtectionPolicies_Get.json */ /** * Sample code: Get Azure IaasVm Protection Policy Details. @@ -23,7 +23,7 @@ public static void getAzureIaasVmProtectionPolicyDetails( } /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/V2Policy/v2-Get-Policy.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/V2Policy/v2-Get-Policy.json */ /** * Sample code: Get Azure IaasVm Enhanced Protection Policy Details. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPolicyOperationResultsGetSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPolicyOperationResultsGetSamples.java index e2f941d05a07e..c794be4fda50a 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPolicyOperationResultsGetSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPolicyOperationResultsGetSamples.java @@ -9,7 +9,7 @@ */ public final class ProtectionPolicyOperationResultsGetSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/ProtectionPolicyOperationResults_Get.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/ProtectionPolicyOperationResults_Get.json */ /** * Sample code: Get Protection Policy Operation Results. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPolicyOperationStatusesGetSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPolicyOperationStatusesGetSamples.java index 2c921e67cdb8a..d8ef9cedcfcf9 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPolicyOperationStatusesGetSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPolicyOperationStatusesGetSamples.java @@ -9,7 +9,7 @@ */ public final class ProtectionPolicyOperationStatusesGetSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/ProtectionPolicyOperationStatuses_Get.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/ProtectionPolicyOperationStatuses_Get.json */ /** * Sample code: Get Protection Policy Operation Status. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsGetRPExtendedInfoOperationResultSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsGetRPExtendedInfoOperationResultSamples.java new file mode 100644 index 0000000000000..04db6992db01c --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsGetRPExtendedInfoOperationResultSamples.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.generated; + +/** + * Samples for RecoveryPoints GetRPExtendedInfoOperationResult. + */ +public final class RecoveryPointsGetRPExtendedInfoOperationResultSamples { + /* + * x-ms-original-file: 2026-10-01/AzureIaasVm/GetRPExtendedInfoOperationResult.json + */ + /** + * Sample code: Get RP Extended Info Operation Result. + * + * @param manager Entry point to RecoveryServicesBackupManager. + */ + public static void getRPExtendedInfoOperationResult( + com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager manager) { + manager.recoveryPoints() + .getRPExtendedInfoOperationResultWithResponse("testRG", "testVault", "Azure", + "00000000-0000-0000-0000-000000000000", com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsGetRPExtendedInfoSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsGetRPExtendedInfoSamples.java new file mode 100644 index 0000000000000..cc9414a8cf935 --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsGetRPExtendedInfoSamples.java @@ -0,0 +1,31 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.generated; + +import com.azure.resourcemanager.recoveryservicesbackup.models.GetRPExtendedInfoRequest; +import com.azure.resourcemanager.recoveryservicesbackup.models.GetRPExtendedInfoRequestResource; +import java.util.Arrays; + +/** + * Samples for RecoveryPoints GetRPExtendedInfo. + */ +public final class RecoveryPointsGetRPExtendedInfoSamples { + /* + * x-ms-original-file: 2026-10-01/AzureIaasVm/TriggerGetRPExtendedInfo.json + */ + /** + * Sample code: Trigger Get RP Extended Info. + * + * @param manager Entry point to RecoveryServicesBackupManager. + */ + public static void triggerGetRPExtendedInfo( + com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager manager) { + manager.recoveryPoints() + .getRPExtendedInfo("testRG", "testVault", "Azure", new GetRPExtendedInfoRequestResource() + .withProperties(new GetRPExtendedInfoRequest().withRecoveryPointIds(Arrays.asList( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.RecoveryServices/vaults/testVault/backupFabrics/Azure/protectionContainers/IaasVMContainer;iaasvmcontainerv2;testRG;testvmName/protectedItems/VM;iaasvmcontainerv2;testRG;testvmName/recoveryPoints/348916168024334"))), + com.azure.core.util.Context.NONE); + } +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsGetSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsGetSamples.java index 1fbbb4df4acde..afff0a5b151d2 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsGetSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsGetSamples.java @@ -9,7 +9,22 @@ */ public final class RecoveryPointsGetSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/RecoveryPoints_Get.json + * x-ms-original-file: 2026-10-01/AzureWorkload/RecoveryPoints_Get_Snapshot.json + */ + /** + * Sample code: Get Azure Workload SQL snapshot recovery point details. + * + * @param manager Entry point to RecoveryServicesBackupManager. + */ + public static void getAzureWorkloadSQLSnapshotRecoveryPointDetails( + com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager manager) { + manager.recoveryPoints() + .getWithResponse("testVault", "testRG", "Azure", "VMAppContainer;Compute;testRG;sqlVm", + "SQLDataBase;mssqlserver;inventory", "1700000000000", com.azure.core.util.Context.NONE); + } + + /* + * x-ms-original-file: 2026-10-01/AzureIaasVm/RecoveryPoints_Get.json */ /** * Sample code: Get Azure Vm Recovery Point Details. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsListSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsListSamples.java index c1e5654049e0e..70a1831f84d6f 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsListSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsListSamples.java @@ -9,7 +9,7 @@ */ public final class RecoveryPointsListSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/RecoveryPoints_List.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/RecoveryPoints_List.json */ /** * Sample code: Get Protected Azure Vm Recovery Points. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsRecommendedForMoveListSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsRecommendedForMoveListSamples.java index f07dfb882a063..1e96f6f5cd94d 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsRecommendedForMoveListSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsRecommendedForMoveListSamples.java @@ -12,7 +12,7 @@ */ public final class RecoveryPointsRecommendedForMoveListSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/RecoveryPointsRecommendedForMove_List.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/RecoveryPointsRecommendedForMove_List.json */ /** * Sample code: Get Protected Azure Vm Recovery Points Recommended for Move. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationDeleteSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationDeleteSamples.java index 0879bb6a1ad22..4e00bd4a31fea 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationDeleteSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class ResourceGuardProxyOperationDeleteSamples { /* - * x-ms-original-file: 2026-08-01/ResourceGuardProxyCRUD/DeleteResourceGuardProxy.json + * x-ms-original-file: 2026-10-01/ResourceGuardProxyCRUD/DeleteResourceGuardProxy.json */ /** * Sample code: Delete ResourceGuardProxy. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationGetSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationGetSamples.java index 70347577e3602..77b38512eb79a 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationGetSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationGetSamples.java @@ -9,7 +9,7 @@ */ public final class ResourceGuardProxyOperationGetSamples { /* - * x-ms-original-file: 2026-08-01/ResourceGuardProxyCRUD/GetResourceGuardProxy.json + * x-ms-original-file: 2026-10-01/ResourceGuardProxyCRUD/GetResourceGuardProxy.json */ /** * Sample code: Get ResourceGuardProxy. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationListSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationListSamples.java index fcd511cb525fa..793225301de08 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationListSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationListSamples.java @@ -9,7 +9,7 @@ */ public final class ResourceGuardProxyOperationListSamples { /* - * x-ms-original-file: 2026-08-01/ResourceGuardProxyCRUD/ListResourceGuardProxy.json + * x-ms-original-file: 2026-10-01/ResourceGuardProxyCRUD/ListResourceGuardProxy.json */ /** * Sample code: Get VaultGuardProxies. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationPutSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationPutSamples.java index 37e5a631b082c..7c99de05fdc7f 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationPutSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationPutSamples.java @@ -11,7 +11,7 @@ */ public final class ResourceGuardProxyOperationPutSamples { /* - * x-ms-original-file: 2026-08-01/ResourceGuardProxyCRUD/PutResourceGuardProxy.json + * x-ms-original-file: 2026-10-01/ResourceGuardProxyCRUD/PutResourceGuardProxy.json */ /** * Sample code: Create ResourceGuardProxy. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationUnlockDeleteSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationUnlockDeleteSamples.java index 7021cd46381e4..a322d61d78ca4 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationUnlockDeleteSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationUnlockDeleteSamples.java @@ -12,7 +12,7 @@ */ public final class ResourceGuardProxyOperationUnlockDeleteSamples { /* - * x-ms-original-file: 2026-08-01/ResourceGuardProxyCRUD/UnlockDeleteResourceGuardProxy.json + * x-ms-original-file: 2026-10-01/ResourceGuardProxyCRUD/UnlockDeleteResourceGuardProxy.json */ /** * Sample code: UnlockDelete ResourceGuardProxy. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceProviderBmsPrepareDataMoveSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceProviderBmsPrepareDataMoveSamples.java index e67188475c452..ae14861c00dd5 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceProviderBmsPrepareDataMoveSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceProviderBmsPrepareDataMoveSamples.java @@ -12,7 +12,7 @@ */ public final class ResourceProviderBmsPrepareDataMoveSamples { /* - * x-ms-original-file: 2026-08-01/BackupDataMove/PrepareDataMove_Post.json + * x-ms-original-file: 2026-10-01/BackupDataMove/PrepareDataMove_Post.json */ /** * Sample code: Prepare Data Move. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceProviderBmsTriggerDataMoveSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceProviderBmsTriggerDataMoveSamples.java index fc107f9ba4b1e..b18c8da0bde2d 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceProviderBmsTriggerDataMoveSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceProviderBmsTriggerDataMoveSamples.java @@ -12,7 +12,7 @@ */ public final class ResourceProviderBmsTriggerDataMoveSamples { /* - * x-ms-original-file: 2026-08-01/BackupDataMove/TriggerDataMove_Post.json + * x-ms-original-file: 2026-10-01/BackupDataMove/TriggerDataMove_Post.json */ /** * Sample code: Trigger Data Move. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceProviderGetOperationStatusSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceProviderGetOperationStatusSamples.java index dc2889b03941c..742ebaebce25a 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceProviderGetOperationStatusSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceProviderGetOperationStatusSamples.java @@ -9,7 +9,7 @@ */ public final class ResourceProviderGetOperationStatusSamples { /* - * x-ms-original-file: 2026-08-01/BackupDataMove/BackupDataMoveOperationStatus_Get.json + * x-ms-original-file: 2026-10-01/BackupDataMove/BackupDataMoveOperationStatus_Get.json */ /** * Sample code: Get OperationStatus. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceProviderMoveRecoveryPointSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceProviderMoveRecoveryPointSamples.java index ee33c8c937e8f..918ca5f8665ee 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceProviderMoveRecoveryPointSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceProviderMoveRecoveryPointSamples.java @@ -12,7 +12,7 @@ */ public final class ResourceProviderMoveRecoveryPointSamples { /* - * x-ms-original-file: 2026-08-01/TriggerRecoveryPointMove_Post.json + * x-ms-original-file: 2026-10-01/TriggerRecoveryPointMove_Post.json */ /** * Sample code: Trigger RP Move Operation. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RestoresTriggerSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RestoresTriggerSamples.java index 478f965b087d8..7c3370be8d336 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RestoresTriggerSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RestoresTriggerSamples.java @@ -28,7 +28,7 @@ */ public final class RestoresTriggerSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreRequest_DataDiskEncryption.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreRequest_DataDiskEncryption.json */ /** * Sample code: Restore to New Azure IaasVm with IaasVMRestoreRequest with identityBasedRestoreDetails and per disk @@ -81,7 +81,7 @@ public final class RestoresTriggerSamples { } /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreWithRehydrationRequest.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreWithRehydrationRequest.json */ /** * Sample code: Restore to New Azure IaasVm with IaasVMRestoreWithRehydrationRequest. @@ -120,7 +120,7 @@ public static void restoreToNewAzureIaasVmWithIaasVMRestoreWithRehydrationReques } /* - * x-ms-original-file: 2026-08-01/AzureStorage/TriggerRestore_AzureFileShare_WithUAMI.json + * x-ms-original-file: 2026-10-01/AzureStorage/TriggerRestore_AzureFileShare_WithUAMI.json */ /** * Sample code: Restore Azure File Share to Original Location with User Assigned Managed Identity. @@ -146,7 +146,7 @@ public static void restoreAzureFileShareToOriginalLocationWithUserAssignedManage } /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreRequest.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreRequest.json */ /** * Sample code: Restore to New Azure IaasVm with IaasVMRestoreRequest. @@ -184,7 +184,7 @@ public static void restoreToNewAzureIaasVmWithIaasVMRestoreRequest( /* * x-ms-original-file: - * 2026-08-01/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreRequest_DataDiskEncryption_SingleEntry.json + * 2026-10-01/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreRequest_DataDiskEncryption_SingleEntry.json */ /** * Sample code: Restore to New Azure IaasVm with IaasVMRestoreRequest with identityBasedRestoreDetails and Data Disk @@ -229,7 +229,7 @@ public static void restoreToNewAzureIaasVmWithIaasVMRestoreRequest( } /* - * x-ms-original-file: 2026-08-01/AzureStorage/TriggerRestore_AzureFileShare_WithSAMI.json + * x-ms-original-file: 2026-10-01/AzureStorage/TriggerRestore_AzureFileShare_WithSAMI.json */ /** * Sample code: Restore Azure File Share to Original Location with Managed Identity. @@ -253,7 +253,7 @@ public static void restoreAzureFileShareToOriginalLocationWithManagedIdentity( } /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreWithRehydrationRequest.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreWithRehydrationRequest.json */ /** * Sample code: Restore Disks with IaasVMRestoreWithRehydrationRequest. @@ -285,7 +285,7 @@ public static void restoreDisksWithIaasVMRestoreWithRehydrationRequest( /* * x-ms-original-file: - * 2026-08-01/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreRequest_IdentityBasedRestoreDetails.json + * 2026-10-01/AzureIaasVm/TriggerRestore_ALR_IaasVMRestoreRequest_IdentityBasedRestoreDetails.json */ /** * Sample code: Restore to New Azure IaasVm with IaasVMRestoreRequest with identityBasedRestoreDetails. @@ -322,7 +322,7 @@ public static void restoreToNewAzureIaasVmWithIaasVMRestoreRequestWithIdentityBa } /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreRequest.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreRequest.json */ /** * Sample code: Restore Disks with IaasVMRestoreRequest. @@ -359,7 +359,7 @@ public static void restoreDisksWithIaasVMRestoreRequest( /* * x-ms-original-file: - * 2026-08-01/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreRequest_IdentityBasedRestoreDetails.json + * 2026-10-01/AzureIaasVm/TriggerRestore_RestoreDisks_IaasVMRestoreRequest_IdentityBasedRestoreDetails.json */ /** * Sample code: Restore Disks with IaasVMRestoreRequest with IdentityBasedRestoreDetails. @@ -390,7 +390,7 @@ public static void restoreDisksWithIaasVMRestoreRequestWithIdentityBasedRestoreD } /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/TriggerRestore_ResourceGuardEnabled.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/TriggerRestore_ResourceGuardEnabled.json */ /** * Sample code: Restore with Resource Guard Enabled. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SecurityPINsGetSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SecurityPINsGetSamples.java index 61224230c4da5..f672e50250c89 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SecurityPINsGetSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SecurityPINsGetSamples.java @@ -9,7 +9,7 @@ */ public final class SecurityPINsGetSamples { /* - * x-ms-original-file: 2026-08-01/Common/BackupSecurityPin_Get.json + * x-ms-original-file: 2026-10-01/Common/BackupSecurityPin_Get.json */ /** * Sample code: Get Vault Security Pin. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/TieringCostOperationStatusGetSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/TieringCostOperationStatusGetSamples.java index a20d2aae21fea..9c7f1d2b464cb 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/TieringCostOperationStatusGetSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/TieringCostOperationStatusGetSamples.java @@ -9,7 +9,7 @@ */ public final class TieringCostOperationStatusGetSamples { /* - * x-ms-original-file: 2026-08-01/TieringCost/GetTieringCostOperationStatus.json + * x-ms-original-file: 2026-10-01/TieringCost/GetTieringCostOperationStatus.json */ /** * Sample code: Fetch Tiering Cost Operation Status. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ValidateOperationResultsGetSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ValidateOperationResultsGetSamples.java index fdd74cffb3c58..ad7c6935afc26 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ValidateOperationResultsGetSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ValidateOperationResultsGetSamples.java @@ -9,7 +9,7 @@ */ public final class ValidateOperationResultsGetSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/ValidateOperationResults.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/ValidateOperationResults.json */ /** * Sample code: Get Operation Results of Validate Operation. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ValidateOperationStatusesGetSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ValidateOperationStatusesGetSamples.java index 0eca8b7c291da..dc5a632aa6ebf 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ValidateOperationStatusesGetSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ValidateOperationStatusesGetSamples.java @@ -9,7 +9,7 @@ */ public final class ValidateOperationStatusesGetSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/ValidateOperationStatus.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/ValidateOperationStatus.json */ /** * Sample code: Get Operation Status of Validate Operation. diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ValidateOperationTriggerSamples.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ValidateOperationTriggerSamples.java index ee076749ab1d0..61e14c5be8eae 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ValidateOperationTriggerSamples.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/samples/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ValidateOperationTriggerSamples.java @@ -4,19 +4,24 @@ package com.azure.resourcemanager.recoveryservicesbackup.generated; +import com.azure.resourcemanager.recoveryservicesbackup.models.AzureWorkloadSqlRestoreRequest; import com.azure.resourcemanager.recoveryservicesbackup.models.EncryptionDetails; import com.azure.resourcemanager.recoveryservicesbackup.models.IaasVMRestoreRequest; import com.azure.resourcemanager.recoveryservicesbackup.models.IdentityInfo; +import com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryMode; import com.azure.resourcemanager.recoveryservicesbackup.models.RecoveryType; +import com.azure.resourcemanager.recoveryservicesbackup.models.SnapshotRestoreParameters; +import com.azure.resourcemanager.recoveryservicesbackup.models.ValidateAzureWorkloadRestoreOperationRequest; import com.azure.resourcemanager.recoveryservicesbackup.models.ValidateIaasVMRestoreOperationRequest; import com.azure.resourcemanager.recoveryservicesbackup.models.ValidateOperationRequestResource; +import java.util.Arrays; /** * Samples for ValidateOperation Trigger. */ public final class ValidateOperationTriggerSamples { /* - * x-ms-original-file: 2026-08-01/AzureIaasVm/TriggerValidateOperation_RestoreDisk.json + * x-ms-original-file: 2026-10-01/AzureIaasVm/TriggerValidateOperation_RestoreDisk.json */ /** * Sample code: Trigger Validate Operation. @@ -44,4 +49,33 @@ public static void triggerValidateOperation( "/subscriptions/00000000-0000-0000-0000-000000000000/resourcegroups/asmaskarRG1/providers/Microsoft.ManagedIdentity/userAssignedIdentities/asmaskartestmsi")))), com.azure.core.util.Context.NONE); } + + /* + * x-ms-original-file: 2026-10-01/AzureWorkload/TriggerValidateOperation_SnapshotFilesystemClash.json + */ + /** + * Sample code: Validate SQL snapshot restore after resolving filesystem clashes. + * + * @param manager Entry point to RecoveryServicesBackupManager. + */ + public static void validateSQLSnapshotRestoreAfterResolvingFilesystemClashes( + com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager manager) { + manager.validateOperations() + .trigger("testVault", "testRG", new ValidateOperationRequestResource().withId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.RecoveryServices/vaults/testVault/backupFabrics/Azure/protectionContainers/VMAppContainer;Compute;testRG;sqlVm/protectedItems/SQLDataBase;mssqlserver;inventory/recoveryPoints/1700000000000") + .withProperties(new ValidateAzureWorkloadRestoreOperationRequest().withRestoreRequest( + new AzureWorkloadSqlRestoreRequest().withRecoveryType(RecoveryType.ALTERNATE_LOCATION) + .withSourceResourceId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/testRG/providers/Microsoft.Compute/virtualMachines/sqlVm") + .withRecoveryMode(RecoveryMode.fromString("Snapshot")) + .withTargetResourceGroupName("targetRG") + .withSnapshotRestoreParameters(new SnapshotRestoreParameters().withSkipAttachAndMount(false) + .withDisksToDetachOnClash(Arrays.asList( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/targetRG/providers/Microsoft.Compute/disks/sqlDataDisk01", + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/targetRG/providers/Microsoft.Compute/disks/sqlLogDisk01"))) + .withTargetVirtualMachineId( + "/subscriptions/00000000-0000-0000-0000-000000000000/resourceGroups/targetRG/providers/Microsoft.Compute/virtualMachines/sqlRestoreVm") + .withShouldUseAlternateTargetLocation(true))), + com.azure.core.util.Context.NONE); + } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureBackupServerContainerTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureBackupServerContainerTests.java index d25c0f3eba8df..c96a57a4b2470 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureBackupServerContainerTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureBackupServerContainerTests.java @@ -16,52 +16,52 @@ public final class AzureBackupServerContainerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureBackupServerContainer model = BinaryData.fromString( - "{\"containerType\":\"AzureBackupServerContainer\",\"canReRegister\":true,\"containerId\":\"crpw\",\"protectedItemCount\":6589417833472886233,\"dpmAgentVersion\":\"oi\",\"dpmServers\":[\"njwmwkpnbsazejj\",\"qkagfhsxt\"],\"upgradeAvailable\":false,\"protectionStatus\":\"zxnfaaz\",\"extendedInfo\":{\"lastRefreshedAt\":\"2021-08-22T16:28:31Z\"},\"friendlyName\":\"kdmkqjjlwuenvrkp\",\"backupManagementType\":\"DefaultBackup\",\"registrationStatus\":\"ibreb\",\"healthStatus\":\"aysjkixqtnqttez\",\"protectableObjectType\":\"fffiak\",\"sourceLocation\":\"pqqmted\"}") + "{\"containerType\":\"AzureBackupServerContainer\",\"canReRegister\":false,\"containerId\":\"iftxfkf\",\"protectedItemCount\":3237549992054377980,\"dpmAgentVersion\":\"hpt\",\"dpmServers\":[\"ucb\",\"qtgdqohmcwsl\",\"riz\",\"tpwb\"],\"upgradeAvailable\":false,\"protectionStatus\":\"libph\",\"extendedInfo\":{\"lastRefreshedAt\":\"2021-08-02T07:30:03Z\"},\"friendlyName\":\"zakakankjpdn\",\"backupManagementType\":\"AzureBackupServer\",\"registrationStatus\":\"joylh\",\"healthStatus\":\"muoyxprimr\",\"protectableObjectType\":\"pteecjme\",\"sourceLocation\":\"ls\"}") .toObject(AzureBackupServerContainer.class); - Assertions.assertEquals("kdmkqjjlwuenvrkp", model.friendlyName()); - Assertions.assertEquals(BackupManagementType.DEFAULT_BACKUP, model.backupManagementType()); - Assertions.assertEquals("ibreb", model.registrationStatus()); - Assertions.assertEquals("aysjkixqtnqttez", model.healthStatus()); - Assertions.assertEquals("fffiak", model.protectableObjectType()); - Assertions.assertTrue(model.canReRegister()); - Assertions.assertEquals("crpw", model.containerId()); - Assertions.assertEquals(6589417833472886233L, model.protectedItemCount()); - Assertions.assertEquals("oi", model.dpmAgentVersion()); - Assertions.assertEquals("njwmwkpnbsazejj", model.dpmServers().get(0)); + Assertions.assertEquals("zakakankjpdn", model.friendlyName()); + Assertions.assertEquals(BackupManagementType.AZURE_BACKUP_SERVER, model.backupManagementType()); + Assertions.assertEquals("joylh", model.registrationStatus()); + Assertions.assertEquals("muoyxprimr", model.healthStatus()); + Assertions.assertEquals("pteecjme", model.protectableObjectType()); + Assertions.assertFalse(model.canReRegister()); + Assertions.assertEquals("iftxfkf", model.containerId()); + Assertions.assertEquals(3237549992054377980L, model.protectedItemCount()); + Assertions.assertEquals("hpt", model.dpmAgentVersion()); + Assertions.assertEquals("ucb", model.dpmServers().get(0)); Assertions.assertFalse(model.upgradeAvailable()); - Assertions.assertEquals("zxnfaaz", model.protectionStatus()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-22T16:28:31Z"), model.extendedInfo().lastRefreshedAt()); + Assertions.assertEquals("libph", model.protectionStatus()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-02T07:30:03Z"), model.extendedInfo().lastRefreshedAt()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AzureBackupServerContainer model = new AzureBackupServerContainer().withFriendlyName("kdmkqjjlwuenvrkp") - .withBackupManagementType(BackupManagementType.DEFAULT_BACKUP) - .withRegistrationStatus("ibreb") - .withHealthStatus("aysjkixqtnqttez") - .withProtectableObjectType("fffiak") - .withCanReRegister(true) - .withContainerId("crpw") - .withProtectedItemCount(6589417833472886233L) - .withDpmAgentVersion("oi") - .withDpmServers(Arrays.asList("njwmwkpnbsazejj", "qkagfhsxt")) + AzureBackupServerContainer model = new AzureBackupServerContainer().withFriendlyName("zakakankjpdn") + .withBackupManagementType(BackupManagementType.AZURE_BACKUP_SERVER) + .withRegistrationStatus("joylh") + .withHealthStatus("muoyxprimr") + .withProtectableObjectType("pteecjme") + .withCanReRegister(false) + .withContainerId("iftxfkf") + .withProtectedItemCount(3237549992054377980L) + .withDpmAgentVersion("hpt") + .withDpmServers(Arrays.asList("ucb", "qtgdqohmcwsl", "riz", "tpwb")) .withUpgradeAvailable(false) - .withProtectionStatus("zxnfaaz") + .withProtectionStatus("libph") .withExtendedInfo( - new DpmContainerExtendedInfo().withLastRefreshedAt(OffsetDateTime.parse("2021-08-22T16:28:31Z"))); + new DpmContainerExtendedInfo().withLastRefreshedAt(OffsetDateTime.parse("2021-08-02T07:30:03Z"))); model = BinaryData.fromObject(model).toObject(AzureBackupServerContainer.class); - Assertions.assertEquals("kdmkqjjlwuenvrkp", model.friendlyName()); - Assertions.assertEquals(BackupManagementType.DEFAULT_BACKUP, model.backupManagementType()); - Assertions.assertEquals("ibreb", model.registrationStatus()); - Assertions.assertEquals("aysjkixqtnqttez", model.healthStatus()); - Assertions.assertEquals("fffiak", model.protectableObjectType()); - Assertions.assertTrue(model.canReRegister()); - Assertions.assertEquals("crpw", model.containerId()); - Assertions.assertEquals(6589417833472886233L, model.protectedItemCount()); - Assertions.assertEquals("oi", model.dpmAgentVersion()); - Assertions.assertEquals("njwmwkpnbsazejj", model.dpmServers().get(0)); + Assertions.assertEquals("zakakankjpdn", model.friendlyName()); + Assertions.assertEquals(BackupManagementType.AZURE_BACKUP_SERVER, model.backupManagementType()); + Assertions.assertEquals("joylh", model.registrationStatus()); + Assertions.assertEquals("muoyxprimr", model.healthStatus()); + Assertions.assertEquals("pteecjme", model.protectableObjectType()); + Assertions.assertFalse(model.canReRegister()); + Assertions.assertEquals("iftxfkf", model.containerId()); + Assertions.assertEquals(3237549992054377980L, model.protectedItemCount()); + Assertions.assertEquals("hpt", model.dpmAgentVersion()); + Assertions.assertEquals("ucb", model.dpmServers().get(0)); Assertions.assertFalse(model.upgradeAvailable()); - Assertions.assertEquals("zxnfaaz", model.protectionStatus()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-22T16:28:31Z"), model.extendedInfo().lastRefreshedAt()); + Assertions.assertEquals("libph", model.protectionStatus()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-02T07:30:03Z"), model.extendedInfo().lastRefreshedAt()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureBackupServerEngineTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureBackupServerEngineTests.java index 359f3f4469a07..8faae7ca9e138 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureBackupServerEngineTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureBackupServerEngineTests.java @@ -14,26 +14,26 @@ public final class AzureBackupServerEngineTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureBackupServerEngine model = BinaryData.fromString( - "{\"backupEngineType\":\"AzureBackupServerEngine\",\"friendlyName\":\"mdptys\",\"backupManagementType\":\"DPM\",\"registrationStatus\":\"gnzxojpslsvj\",\"backupEngineState\":\"liufiqwoyxq\",\"healthStatus\":\"pcohhoucqpqojx\",\"canReRegister\":false,\"backupEngineId\":\"zdcgdzbenr\",\"dpmVersion\":\"cawetzqddt\",\"azureBackupAgentVersion\":\"fljhznamtua\",\"isAzureBackupAgentUpgradeAvailable\":true,\"isDpmUpgradeAvailable\":true,\"extendedInfo\":{\"databaseName\":\"nc\",\"protectedItemsCount\":1574347255,\"protectedServersCount\":1861749735,\"diskCount\":1802914584,\"usedDiskSpace\":70.75716162107719,\"availableDiskSpace\":35.04222984318554,\"refreshedAt\":\"2021-08-14T01:37:51Z\",\"azureProtectedInstances\":1380835029}}") + "{\"backupEngineType\":\"AzureBackupServerEngine\",\"friendlyName\":\"zwjiqullq\",\"backupManagementType\":\"AzureSql\",\"registrationStatus\":\"vr\",\"backupEngineState\":\"mqerndb\",\"healthStatus\":\"yeofltfnnxrkad\",\"canReRegister\":true,\"backupEngineId\":\"nfmuiiiripf\",\"dpmVersion\":\"ykfkx\",\"azureBackupAgentVersion\":\"cbrwjiutgnjizbe\",\"isAzureBackupAgentUpgradeAvailable\":true,\"isDpmUpgradeAvailable\":false,\"extendedInfo\":{\"databaseName\":\"vzbjuyrsrzi\",\"protectedItemsCount\":1354827192,\"protectedServersCount\":1278314848,\"diskCount\":1747735665,\"usedDiskSpace\":24.073319420009632,\"availableDiskSpace\":97.08871055635369,\"refreshedAt\":\"2021-11-02T13:42:42Z\",\"azureProtectedInstances\":1996304749}}") .toObject(AzureBackupServerEngine.class); - Assertions.assertEquals("mdptys", model.friendlyName()); - Assertions.assertEquals(BackupManagementType.DPM, model.backupManagementType()); - Assertions.assertEquals("gnzxojpslsvj", model.registrationStatus()); - Assertions.assertEquals("liufiqwoyxq", model.backupEngineState()); - Assertions.assertEquals("pcohhoucqpqojx", model.healthStatus()); - Assertions.assertFalse(model.canReRegister()); - Assertions.assertEquals("zdcgdzbenr", model.backupEngineId()); - Assertions.assertEquals("cawetzqddt", model.dpmVersion()); - Assertions.assertEquals("fljhznamtua", model.azureBackupAgentVersion()); + Assertions.assertEquals("zwjiqullq", model.friendlyName()); + Assertions.assertEquals(BackupManagementType.AZURE_SQL, model.backupManagementType()); + Assertions.assertEquals("vr", model.registrationStatus()); + Assertions.assertEquals("mqerndb", model.backupEngineState()); + Assertions.assertEquals("yeofltfnnxrkad", model.healthStatus()); + Assertions.assertTrue(model.canReRegister()); + Assertions.assertEquals("nfmuiiiripf", model.backupEngineId()); + Assertions.assertEquals("ykfkx", model.dpmVersion()); + Assertions.assertEquals("cbrwjiutgnjizbe", model.azureBackupAgentVersion()); Assertions.assertTrue(model.isAzureBackupAgentUpgradeAvailable()); - Assertions.assertTrue(model.isDpmUpgradeAvailable()); - Assertions.assertEquals("nc", model.extendedInfo().databaseName()); - Assertions.assertEquals(1574347255, model.extendedInfo().protectedItemsCount()); - Assertions.assertEquals(1861749735, model.extendedInfo().protectedServersCount()); - Assertions.assertEquals(1802914584, model.extendedInfo().diskCount()); - Assertions.assertEquals(70.75716162107719D, model.extendedInfo().usedDiskSpace()); - Assertions.assertEquals(35.04222984318554D, model.extendedInfo().availableDiskSpace()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-14T01:37:51Z"), model.extendedInfo().refreshedAt()); - Assertions.assertEquals(1380835029, model.extendedInfo().azureProtectedInstances()); + Assertions.assertFalse(model.isDpmUpgradeAvailable()); + Assertions.assertEquals("vzbjuyrsrzi", model.extendedInfo().databaseName()); + Assertions.assertEquals(1354827192, model.extendedInfo().protectedItemsCount()); + Assertions.assertEquals(1278314848, model.extendedInfo().protectedServersCount()); + Assertions.assertEquals(1747735665, model.extendedInfo().diskCount()); + Assertions.assertEquals(24.073319420009632D, model.extendedInfo().usedDiskSpace()); + Assertions.assertEquals(97.08871055635369D, model.extendedInfo().availableDiskSpace()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-02T13:42:42Z"), model.extendedInfo().refreshedAt()); + Assertions.assertEquals(1996304749, model.extendedInfo().azureProtectedInstances()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureFileShareBackupRequestTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureFileShareBackupRequestTests.java index b4a3ed552a2d4..cc7e97b2f4d1c 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureFileShareBackupRequestTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureFileShareBackupRequestTests.java @@ -13,16 +13,16 @@ public final class AzureFileShareBackupRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureFileShareBackupRequest model = BinaryData.fromString( - "{\"objectType\":\"AzureFileShareBackupRequest\",\"recoveryPointExpiryTimeInUTC\":\"2021-05-28T21:15:07Z\"}") + "{\"objectType\":\"AzureFileShareBackupRequest\",\"recoveryPointExpiryTimeInUTC\":\"2021-01-10T20:10:28Z\"}") .toObject(AzureFileShareBackupRequest.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-28T21:15:07Z"), model.recoveryPointExpiryTimeInUtc()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-10T20:10:28Z"), model.recoveryPointExpiryTimeInUtc()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AzureFileShareBackupRequest model = new AzureFileShareBackupRequest() - .withRecoveryPointExpiryTimeInUtc(OffsetDateTime.parse("2021-05-28T21:15:07Z")); + .withRecoveryPointExpiryTimeInUtc(OffsetDateTime.parse("2021-01-10T20:10:28Z")); model = BinaryData.fromObject(model).toObject(AzureFileShareBackupRequest.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-28T21:15:07Z"), model.recoveryPointExpiryTimeInUtc()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-10T20:10:28Z"), model.recoveryPointExpiryTimeInUtc()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureFileShareProtectableItemTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureFileShareProtectableItemTests.java index 9777b65e0c5bc..e86d30e5bcde3 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureFileShareProtectableItemTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureFileShareProtectableItemTests.java @@ -14,14 +14,14 @@ public final class AzureFileShareProtectableItemTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureFileShareProtectableItem model = BinaryData.fromString( - "{\"protectableItemType\":\"AzureFileShare\",\"parentContainerFabricId\":\"dbpb\",\"parentContainerFriendlyName\":\"ckdvez\",\"azureFileShareType\":\"Invalid\",\"backupManagementType\":\"sbzhd\",\"workloadType\":\"b\",\"friendlyName\":\"qfblhkalehpa\",\"protectionState\":\"Protecting\"}") + "{\"protectableItemType\":\"AzureFileShare\",\"parentContainerFabricId\":\"hapfjiik\",\"parentContainerFriendlyName\":\"diqfliejhpclbi\",\"azureFileShareType\":\"XSMB\",\"backupManagementType\":\"bwceivbvzip\",\"workloadType\":\"xgoooxzprad\",\"friendlyName\":\"kxknpdg\",\"protectionState\":\"ProtectionFailed\"}") .toObject(AzureFileShareProtectableItem.class); - Assertions.assertEquals("sbzhd", model.backupManagementType()); - Assertions.assertEquals("b", model.workloadType()); - Assertions.assertEquals("qfblhkalehpa", model.friendlyName()); - Assertions.assertEquals(ProtectionStatus.PROTECTING, model.protectionState()); - Assertions.assertEquals("dbpb", model.parentContainerFabricId()); - Assertions.assertEquals("ckdvez", model.parentContainerFriendlyName()); - Assertions.assertEquals(AzureFileShareType.INVALID, model.azureFileShareType()); + Assertions.assertEquals("bwceivbvzip", model.backupManagementType()); + Assertions.assertEquals("xgoooxzprad", model.workloadType()); + Assertions.assertEquals("kxknpdg", model.friendlyName()); + Assertions.assertEquals(ProtectionStatus.PROTECTION_FAILED, model.protectionState()); + Assertions.assertEquals("hapfjiik", model.parentContainerFabricId()); + Assertions.assertEquals("diqfliejhpclbi", model.parentContainerFriendlyName()); + Assertions.assertEquals(AzureFileShareType.XSMB, model.azureFileShareType()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureFileShareProtectionPolicyTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureFileShareProtectionPolicyTests.java index 70ec080be325c..11a3afa9b6cc9 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureFileShareProtectionPolicyTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureFileShareProtectionPolicyTests.java @@ -17,30 +17,30 @@ public final class AzureFileShareProtectionPolicyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureFileShareProtectionPolicy model = BinaryData.fromString( - "{\"backupManagementType\":\"AzureStorage\",\"workLoadType\":\"SAPHanaDatabase\",\"schedulePolicy\":{\"schedulePolicyType\":\"SchedulePolicy\"},\"retentionPolicy\":{\"retentionPolicyType\":\"RetentionPolicy\"},\"vaultRetentionPolicy\":{\"vaultRetention\":{\"retentionPolicyType\":\"RetentionPolicy\"},\"snapshotRetentionInDays\":343346011},\"timeZone\":\"zlwvsgmwohqfz\",\"protectedItemsCount\":589529978,\"resourceGuardOperationRequests\":[\"mmkjsvthnwpztek\",\"vmribiat\"]}") + "{\"backupManagementType\":\"AzureStorage\",\"workLoadType\":\"FileFolder\",\"schedulePolicy\":{\"schedulePolicyType\":\"SchedulePolicy\"},\"retentionPolicy\":{\"retentionPolicyType\":\"RetentionPolicy\"},\"vaultRetentionPolicy\":{\"vaultRetention\":{\"retentionPolicyType\":\"RetentionPolicy\"},\"snapshotRetentionInDays\":1247903870},\"timeZone\":\"xybwfdbkjbzten\",\"protectedItemsCount\":2080896315,\"resourceGuardOperationRequests\":[\"kjtjknsx\"]}") .toObject(AzureFileShareProtectionPolicy.class); - Assertions.assertEquals(589529978, model.protectedItemsCount()); - Assertions.assertEquals("mmkjsvthnwpztek", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals(WorkloadType.SAPHANA_DATABASE, model.workLoadType()); - Assertions.assertEquals(343346011, model.vaultRetentionPolicy().snapshotRetentionInDays()); - Assertions.assertEquals("zlwvsgmwohqfz", model.timeZone()); + Assertions.assertEquals(2080896315, model.protectedItemsCount()); + Assertions.assertEquals("kjtjknsx", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals(WorkloadType.FILE_FOLDER, model.workLoadType()); + Assertions.assertEquals(1247903870, model.vaultRetentionPolicy().snapshotRetentionInDays()); + Assertions.assertEquals("xybwfdbkjbzten", model.timeZone()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AzureFileShareProtectionPolicy model = new AzureFileShareProtectionPolicy().withProtectedItemsCount(589529978) - .withResourceGuardOperationRequests(Arrays.asList("mmkjsvthnwpztek", "vmribiat")) - .withWorkLoadType(WorkloadType.SAPHANA_DATABASE) + AzureFileShareProtectionPolicy model = new AzureFileShareProtectionPolicy().withProtectedItemsCount(2080896315) + .withResourceGuardOperationRequests(Arrays.asList("kjtjknsx")) + .withWorkLoadType(WorkloadType.FILE_FOLDER) .withSchedulePolicy(new SchedulePolicy()) .withRetentionPolicy(new RetentionPolicy()) .withVaultRetentionPolicy(new VaultRetentionPolicy().withVaultRetention(new RetentionPolicy()) - .withSnapshotRetentionInDays(343346011)) - .withTimeZone("zlwvsgmwohqfz"); + .withSnapshotRetentionInDays(1247903870)) + .withTimeZone("xybwfdbkjbzten"); model = BinaryData.fromObject(model).toObject(AzureFileShareProtectionPolicy.class); - Assertions.assertEquals(589529978, model.protectedItemsCount()); - Assertions.assertEquals("mmkjsvthnwpztek", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals(WorkloadType.SAPHANA_DATABASE, model.workLoadType()); - Assertions.assertEquals(343346011, model.vaultRetentionPolicy().snapshotRetentionInDays()); - Assertions.assertEquals("zlwvsgmwohqfz", model.timeZone()); + Assertions.assertEquals(2080896315, model.protectedItemsCount()); + Assertions.assertEquals("kjtjknsx", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals(WorkloadType.FILE_FOLDER, model.workLoadType()); + Assertions.assertEquals(1247903870, model.vaultRetentionPolicy().snapshotRetentionInDays()); + Assertions.assertEquals("xybwfdbkjbzten", model.timeZone()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureFileShareProvisionIlrRequestTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureFileShareProvisionIlrRequestTests.java index e605e94cad3c9..8b14693c4da38 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureFileShareProvisionIlrRequestTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureFileShareProvisionIlrRequestTests.java @@ -12,18 +12,19 @@ public final class AzureFileShareProvisionIlrRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureFileShareProvisionIlrRequest model = BinaryData.fromString( - "{\"objectType\":\"AzureFileShareProvisionILRRequest\",\"recoveryPointId\":\"sihclafzvaylp\",\"sourceResourceId\":\"sqqw\"}") + "{\"objectType\":\"AzureFileShareProvisionILRRequest\",\"recoveryPointId\":\"qinfszpyglqd\",\"sourceResourceId\":\"rjzralcx\"}") .toObject(AzureFileShareProvisionIlrRequest.class); - Assertions.assertEquals("sihclafzvaylp", model.recoveryPointId()); - Assertions.assertEquals("sqqw", model.sourceResourceId()); + Assertions.assertEquals("qinfszpyglqd", model.recoveryPointId()); + Assertions.assertEquals("rjzralcx", model.sourceResourceId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AzureFileShareProvisionIlrRequest model - = new AzureFileShareProvisionIlrRequest().withRecoveryPointId("sihclafzvaylp").withSourceResourceId("sqqw"); + = new AzureFileShareProvisionIlrRequest().withRecoveryPointId("qinfszpyglqd") + .withSourceResourceId("rjzralcx"); model = BinaryData.fromObject(model).toObject(AzureFileShareProvisionIlrRequest.class); - Assertions.assertEquals("sihclafzvaylp", model.recoveryPointId()); - Assertions.assertEquals("sqqw", model.sourceResourceId()); + Assertions.assertEquals("qinfszpyglqd", model.recoveryPointId()); + Assertions.assertEquals("rjzralcx", model.sourceResourceId()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureFileShareRecoveryPointTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureFileShareRecoveryPointTests.java index d6942e2dab131..66dc5b3fdef15 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureFileShareRecoveryPointTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureFileShareRecoveryPointTests.java @@ -18,24 +18,23 @@ public final class AzureFileShareRecoveryPointTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureFileShareRecoveryPoint model = BinaryData.fromString( - "{\"objectType\":\"AzureFileShareRecoveryPoint\",\"recoveryPointType\":\"dxxiv\",\"recoveryPointTime\":\"2021-11-12T19:59:21Z\",\"fileShareSnapshotUri\":\"cqaqtdoqmcbx\",\"recoveryPointSizeInGB\":1289805860,\"recoveryPointProperties\":{\"expiryTime\":\"slqb\",\"ruleName\":\"fxoblytkb\",\"isSoftDeleted\":false,\"immutabilityProperties\":{\"isImmutable\":false,\"expiryTime\":\"2021-10-29T07:54:02Z\"}},\"recoveryPointTierDetails\":[{\"type\":\"ArchivedRP\",\"status\":\"Invalid\",\"extendedInfo\":{\"bfovasrruvwbhsq\":\"vshqjohxcr\",\"gjb\":\"sub\",\"rfbjf\":\"rxbpyb\"}},{\"type\":\"Invalid\",\"status\":\"Disabled\",\"extendedInfo\":{\"znfqqnvwpmqtar\":\"ftpvjzbexil\"}},{\"type\":\"HardenedRP\",\"status\":\"Deleted\",\"extendedInfo\":{\"ewgdrjervn\":\"jhwqytjrybnw\",\"eh\":\"enq\"}}],\"threatStatus\":\"Healthy\",\"threatInfo\":[{\"threatTitle\":\"mifthnzdnd\",\"threatDescription\":\"gnayqigynduh\",\"lastUpdatedTime\":\"2021-02-07T07:32:59Z\",\"threatState\":\"InProgress\",\"threatStartTime\":\"2021-06-18T10:05:08Z\",\"threatEndTime\":\"2021-11-15T18:39:31Z\",\"threatURI\":\"aqolbgycduiertg\",\"threatSeverity\":\"Critical\"}]}") + "{\"objectType\":\"AzureFileShareRecoveryPoint\",\"recoveryPointType\":\"vpnpp\",\"recoveryPointTime\":\"2021-10-20T12:14:16Z\",\"fileShareSnapshotUri\":\"rwdmhdlxyjrxsa\",\"recoveryPointSizeInGB\":2058639805,\"recoveryPointProperties\":{\"expiryTime\":\"ihgwqapnedgfbcv\",\"ruleName\":\"vq\",\"isSoftDeleted\":true,\"immutabilityProperties\":{\"isImmutable\":true,\"expiryTime\":\"2021-09-19T11:38:13Z\"}},\"recoveryPointTierDetails\":[{\"type\":\"HardenedRP\",\"status\":\"Valid\",\"extendedInfo\":{\"dopcjwvnh\":\"sotbob\",\"mgxcxrslpm\":\"ld\",\"qsluicp\":\"twuoegrpkhjwni\"}},{\"type\":\"ArchivedRP\",\"status\":\"Invalid\",\"extendedInfo\":{\"xmodf\":\"vmbmp\",\"rfouyftaakcpw\":\"uefywsbpfvmwy\",\"nubexk\":\"yzvqt\",\"quxvypomgkop\":\"zksmondj\"}},{\"type\":\"Invalid\",\"status\":\"Invalid\",\"extendedInfo\":{\"mocmbqfqvmk\":\"ajqgxy\",\"helxprglya\":\"xozap\",\"kcbcue\":\"dd\"}}],\"threatStatus\":\"Healthy\",\"threatInfo\":[{\"threatTitle\":\"iqi\",\"threatDescription\":\"hos\",\"lastUpdatedTime\":\"2021-06-01T12:21:20Z\",\"threatState\":\"Active\",\"threatStartTime\":\"2021-03-07T23:11:45Z\",\"threatEndTime\":\"2021-03-20T06:50:34Z\",\"threatURI\":\"i\",\"threatSeverity\":\"Critical\"},{\"threatTitle\":\"yiba\",\"threatDescription\":\"fluszdtm\",\"lastUpdatedTime\":\"2021-04-08T13:30:15Z\",\"threatState\":\"Ignored\",\"threatStartTime\":\"2021-04-08T21:25:57Z\",\"threatEndTime\":\"2021-07-22T08:35:36Z\",\"threatURI\":\"qacpiex\",\"threatSeverity\":\"Critical\"}]}") .toObject(AzureFileShareRecoveryPoint.class); Assertions.assertEquals(ThreatStatus.HEALTHY, model.threatStatus()); - Assertions.assertEquals(ThreatState.IN_PROGRESS, model.threatInfo().get(0).threatState()); + Assertions.assertEquals(ThreatState.ACTIVE, model.threatInfo().get(0).threatState()); Assertions.assertEquals(ThreatSeverity.CRITICAL, model.threatInfo().get(0).threatSeverity()); - Assertions.assertEquals("dxxiv", model.recoveryPointType()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-12T19:59:21Z"), model.recoveryPointTime()); - Assertions.assertEquals("cqaqtdoqmcbx", model.fileShareSnapshotUri()); - Assertions.assertEquals(1289805860, model.recoveryPointSizeInGB()); - Assertions.assertEquals("slqb", model.recoveryPointProperties().expiryTime()); - Assertions.assertEquals("fxoblytkb", model.recoveryPointProperties().ruleName()); - Assertions.assertFalse(model.recoveryPointProperties().isSoftDeleted()); - Assertions.assertFalse(model.recoveryPointProperties().immutabilityProperties().isImmutable()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-29T07:54:02Z"), + Assertions.assertEquals("vpnpp", model.recoveryPointType()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-20T12:14:16Z"), model.recoveryPointTime()); + Assertions.assertEquals("rwdmhdlxyjrxsa", model.fileShareSnapshotUri()); + Assertions.assertEquals(2058639805, model.recoveryPointSizeInGB()); + Assertions.assertEquals("ihgwqapnedgfbcv", model.recoveryPointProperties().expiryTime()); + Assertions.assertEquals("vq", model.recoveryPointProperties().ruleName()); + Assertions.assertTrue(model.recoveryPointProperties().isSoftDeleted()); + Assertions.assertTrue(model.recoveryPointProperties().immutabilityProperties().isImmutable()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-19T11:38:13Z"), model.recoveryPointProperties().immutabilityProperties().expiryTime()); - Assertions.assertEquals(RecoveryPointTierType.ARCHIVED_RP, model.recoveryPointTierDetails().get(0).type()); - Assertions.assertEquals(RecoveryPointTierStatus.INVALID, model.recoveryPointTierDetails().get(0).status()); - Assertions.assertEquals("vshqjohxcr", - model.recoveryPointTierDetails().get(0).extendedInfo().get("bfovasrruvwbhsq")); + Assertions.assertEquals(RecoveryPointTierType.HARDENED_RP, model.recoveryPointTierDetails().get(0).type()); + Assertions.assertEquals(RecoveryPointTierStatus.VALID, model.recoveryPointTierDetails().get(0).status()); + Assertions.assertEquals("sotbob", model.recoveryPointTierDetails().get(0).extendedInfo().get("dopcjwvnh")); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureFileShareRestoreRequestTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureFileShareRestoreRequestTests.java index 81535531897d1..a47b82f3ca595 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureFileShareRestoreRequestTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureFileShareRestoreRequestTests.java @@ -19,50 +19,48 @@ public final class AzureFileShareRestoreRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureFileShareRestoreRequest model = BinaryData.fromString( - "{\"objectType\":\"AzureFileShareRestoreRequest\",\"recoveryType\":\"AlternateLocation\",\"sourceResourceId\":\"wmn\",\"copyOptions\":\"FailOnConflict\",\"restoreRequestType\":\"Invalid\",\"restoreFileSpecs\":[{\"path\":\"bvpoekrsgsgbdhu\",\"fileSpecType\":\"gnjdgkynscliqhz\",\"targetFolderPath\":\"xnkomtkubo\"},{\"path\":\"pnvdxz\",\"fileSpecType\":\"ihfrbbcevqa\",\"targetFolderPath\":\"ltd\"}],\"targetDetails\":{\"name\":\"kqo\",\"targetResourceId\":\"ykvgtrdcnifmz\"},\"identityInfo\":{\"isSystemAssignedIdentity\":true,\"managedIdentityResourceId\":\"brn\"},\"resourceGuardOperationRequests\":[\"xmprafwg\"]}") + "{\"objectType\":\"AzureFileShareRestoreRequest\",\"recoveryType\":\"Invalid\",\"sourceResourceId\":\"g\",\"copyOptions\":\"CreateCopy\",\"restoreRequestType\":\"FullShareRestore\",\"restoreFileSpecs\":[{\"path\":\"tdysnaquflq\",\"fileSpecType\":\"tqhamzjrw\",\"targetFolderPath\":\"qzeqyjleziunjxdf\"}],\"targetDetails\":{\"name\":\"tkw\",\"targetResourceId\":\"gyamlbnseqacjjv\"},\"identityInfo\":{\"isSystemAssignedIdentity\":true,\"managedIdentityResourceId\":\"ooqjagmditgueio\"},\"resourceGuardOperationRequests\":[\"bsahrtd\",\"pdelqa\",\"slmot\"]}") .toObject(AzureFileShareRestoreRequest.class); - Assertions.assertEquals("xmprafwg", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals(RecoveryType.ALTERNATE_LOCATION, model.recoveryType()); - Assertions.assertEquals("wmn", model.sourceResourceId()); - Assertions.assertEquals(CopyOptions.FAIL_ON_CONFLICT, model.copyOptions()); - Assertions.assertEquals(RestoreRequestType.INVALID, model.restoreRequestType()); - Assertions.assertEquals("bvpoekrsgsgbdhu", model.restoreFileSpecs().get(0).path()); - Assertions.assertEquals("gnjdgkynscliqhz", model.restoreFileSpecs().get(0).fileSpecType()); - Assertions.assertEquals("xnkomtkubo", model.restoreFileSpecs().get(0).targetFolderPath()); - Assertions.assertEquals("kqo", model.targetDetails().name()); - Assertions.assertEquals("ykvgtrdcnifmz", model.targetDetails().targetResourceId()); + Assertions.assertEquals("bsahrtd", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals(RecoveryType.INVALID, model.recoveryType()); + Assertions.assertEquals("g", model.sourceResourceId()); + Assertions.assertEquals(CopyOptions.CREATE_COPY, model.copyOptions()); + Assertions.assertEquals(RestoreRequestType.FULL_SHARE_RESTORE, model.restoreRequestType()); + Assertions.assertEquals("tdysnaquflq", model.restoreFileSpecs().get(0).path()); + Assertions.assertEquals("tqhamzjrw", model.restoreFileSpecs().get(0).fileSpecType()); + Assertions.assertEquals("qzeqyjleziunjxdf", model.restoreFileSpecs().get(0).targetFolderPath()); + Assertions.assertEquals("tkw", model.targetDetails().name()); + Assertions.assertEquals("gyamlbnseqacjjv", model.targetDetails().targetResourceId()); Assertions.assertTrue(model.identityInfo().isSystemAssignedIdentity()); - Assertions.assertEquals("brn", model.identityInfo().managedIdentityResourceId()); + Assertions.assertEquals("ooqjagmditgueio", model.identityInfo().managedIdentityResourceId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AzureFileShareRestoreRequest model = new AzureFileShareRestoreRequest() - .withResourceGuardOperationRequests(Arrays.asList("xmprafwg")) - .withRecoveryType(RecoveryType.ALTERNATE_LOCATION) - .withSourceResourceId("wmn") - .withCopyOptions(CopyOptions.FAIL_ON_CONFLICT) - .withRestoreRequestType(RestoreRequestType.INVALID) - .withRestoreFileSpecs(Arrays.asList( - new RestoreFileSpecs().withPath("bvpoekrsgsgbdhu") - .withFileSpecType("gnjdgkynscliqhz") - .withTargetFolderPath("xnkomtkubo"), - new RestoreFileSpecs().withPath("pnvdxz").withFileSpecType("ihfrbbcevqa").withTargetFolderPath("ltd"))) - .withTargetDetails(new TargetAfsRestoreInfo().withName("kqo").withTargetResourceId("ykvgtrdcnifmz")) + .withResourceGuardOperationRequests(Arrays.asList("bsahrtd", "pdelqa", "slmot")) + .withRecoveryType(RecoveryType.INVALID) + .withSourceResourceId("g") + .withCopyOptions(CopyOptions.CREATE_COPY) + .withRestoreRequestType(RestoreRequestType.FULL_SHARE_RESTORE) + .withRestoreFileSpecs(Arrays.asList(new RestoreFileSpecs().withPath("tdysnaquflq") + .withFileSpecType("tqhamzjrw") + .withTargetFolderPath("qzeqyjleziunjxdf"))) + .withTargetDetails(new TargetAfsRestoreInfo().withName("tkw").withTargetResourceId("gyamlbnseqacjjv")) .withIdentityInfo( - new IdentityInfo().withIsSystemAssignedIdentity(true).withManagedIdentityResourceId("brn")); + new IdentityInfo().withIsSystemAssignedIdentity(true).withManagedIdentityResourceId("ooqjagmditgueio")); model = BinaryData.fromObject(model).toObject(AzureFileShareRestoreRequest.class); - Assertions.assertEquals("xmprafwg", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals(RecoveryType.ALTERNATE_LOCATION, model.recoveryType()); - Assertions.assertEquals("wmn", model.sourceResourceId()); - Assertions.assertEquals(CopyOptions.FAIL_ON_CONFLICT, model.copyOptions()); - Assertions.assertEquals(RestoreRequestType.INVALID, model.restoreRequestType()); - Assertions.assertEquals("bvpoekrsgsgbdhu", model.restoreFileSpecs().get(0).path()); - Assertions.assertEquals("gnjdgkynscliqhz", model.restoreFileSpecs().get(0).fileSpecType()); - Assertions.assertEquals("xnkomtkubo", model.restoreFileSpecs().get(0).targetFolderPath()); - Assertions.assertEquals("kqo", model.targetDetails().name()); - Assertions.assertEquals("ykvgtrdcnifmz", model.targetDetails().targetResourceId()); + Assertions.assertEquals("bsahrtd", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals(RecoveryType.INVALID, model.recoveryType()); + Assertions.assertEquals("g", model.sourceResourceId()); + Assertions.assertEquals(CopyOptions.CREATE_COPY, model.copyOptions()); + Assertions.assertEquals(RestoreRequestType.FULL_SHARE_RESTORE, model.restoreRequestType()); + Assertions.assertEquals("tdysnaquflq", model.restoreFileSpecs().get(0).path()); + Assertions.assertEquals("tqhamzjrw", model.restoreFileSpecs().get(0).fileSpecType()); + Assertions.assertEquals("qzeqyjleziunjxdf", model.restoreFileSpecs().get(0).targetFolderPath()); + Assertions.assertEquals("tkw", model.targetDetails().name()); + Assertions.assertEquals("gyamlbnseqacjjv", model.targetDetails().targetResourceId()); Assertions.assertTrue(model.identityInfo().isSystemAssignedIdentity()); - Assertions.assertEquals("brn", model.identityInfo().managedIdentityResourceId()); + Assertions.assertEquals("ooqjagmditgueio", model.identityInfo().managedIdentityResourceId()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureIaaSClassicComputeVMContainerTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureIaaSClassicComputeVMContainerTests.java index 8a86033f11ab1..e1132a37494e9 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureIaaSClassicComputeVMContainerTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureIaaSClassicComputeVMContainerTests.java @@ -13,37 +13,37 @@ public final class AzureIaaSClassicComputeVMContainerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureIaaSClassicComputeVMContainer model = BinaryData.fromString( - "{\"containerType\":\"Microsoft.ClassicCompute/virtualMachines\",\"virtualMachineId\":\"sttp\",\"virtualMachineVersion\":\"w\",\"resourceGroup\":\"bnujrywvtylbf\",\"friendlyName\":\"curdoiwiitht\",\"backupManagementType\":\"AzureBackupServer\",\"registrationStatus\":\"xcbihw\",\"healthStatus\":\"nfdn\",\"protectableObjectType\":\"jchrdgoihxumw\",\"sourceLocation\":\"ond\"}") + "{\"containerType\":\"Microsoft.ClassicCompute/virtualMachines\",\"virtualMachineId\":\"qaqhvseufu\",\"virtualMachineVersion\":\"rxpdlcgqlsi\",\"resourceGroup\":\"jqfrddgamquh\",\"friendlyName\":\"srsjuivfc\",\"backupManagementType\":\"AzureStorage\",\"registrationStatus\":\"irnxz\",\"healthStatus\":\"zexrxzbujrt\",\"protectableObjectType\":\"qvwre\",\"sourceLocation\":\"h\"}") .toObject(AzureIaaSClassicComputeVMContainer.class); - Assertions.assertEquals("curdoiwiitht", model.friendlyName()); - Assertions.assertEquals(BackupManagementType.AZURE_BACKUP_SERVER, model.backupManagementType()); - Assertions.assertEquals("xcbihw", model.registrationStatus()); - Assertions.assertEquals("nfdn", model.healthStatus()); - Assertions.assertEquals("jchrdgoihxumw", model.protectableObjectType()); - Assertions.assertEquals("sttp", model.virtualMachineId()); - Assertions.assertEquals("w", model.virtualMachineVersion()); - Assertions.assertEquals("bnujrywvtylbf", model.resourceGroup()); + Assertions.assertEquals("srsjuivfc", model.friendlyName()); + Assertions.assertEquals(BackupManagementType.AZURE_STORAGE, model.backupManagementType()); + Assertions.assertEquals("irnxz", model.registrationStatus()); + Assertions.assertEquals("zexrxzbujrt", model.healthStatus()); + Assertions.assertEquals("qvwre", model.protectableObjectType()); + Assertions.assertEquals("qaqhvseufu", model.virtualMachineId()); + Assertions.assertEquals("rxpdlcgqlsi", model.virtualMachineVersion()); + Assertions.assertEquals("jqfrddgamquh", model.resourceGroup()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AzureIaaSClassicComputeVMContainer model - = new AzureIaaSClassicComputeVMContainer().withFriendlyName("curdoiwiitht") - .withBackupManagementType(BackupManagementType.AZURE_BACKUP_SERVER) - .withRegistrationStatus("xcbihw") - .withHealthStatus("nfdn") - .withProtectableObjectType("jchrdgoihxumw") - .withVirtualMachineId("sttp") - .withVirtualMachineVersion("w") - .withResourceGroup("bnujrywvtylbf"); + = new AzureIaaSClassicComputeVMContainer().withFriendlyName("srsjuivfc") + .withBackupManagementType(BackupManagementType.AZURE_STORAGE) + .withRegistrationStatus("irnxz") + .withHealthStatus("zexrxzbujrt") + .withProtectableObjectType("qvwre") + .withVirtualMachineId("qaqhvseufu") + .withVirtualMachineVersion("rxpdlcgqlsi") + .withResourceGroup("jqfrddgamquh"); model = BinaryData.fromObject(model).toObject(AzureIaaSClassicComputeVMContainer.class); - Assertions.assertEquals("curdoiwiitht", model.friendlyName()); - Assertions.assertEquals(BackupManagementType.AZURE_BACKUP_SERVER, model.backupManagementType()); - Assertions.assertEquals("xcbihw", model.registrationStatus()); - Assertions.assertEquals("nfdn", model.healthStatus()); - Assertions.assertEquals("jchrdgoihxumw", model.protectableObjectType()); - Assertions.assertEquals("sttp", model.virtualMachineId()); - Assertions.assertEquals("w", model.virtualMachineVersion()); - Assertions.assertEquals("bnujrywvtylbf", model.resourceGroup()); + Assertions.assertEquals("srsjuivfc", model.friendlyName()); + Assertions.assertEquals(BackupManagementType.AZURE_STORAGE, model.backupManagementType()); + Assertions.assertEquals("irnxz", model.registrationStatus()); + Assertions.assertEquals("zexrxzbujrt", model.healthStatus()); + Assertions.assertEquals("qvwre", model.protectableObjectType()); + Assertions.assertEquals("qaqhvseufu", model.virtualMachineId()); + Assertions.assertEquals("rxpdlcgqlsi", model.virtualMachineVersion()); + Assertions.assertEquals("jqfrddgamquh", model.resourceGroup()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureIaaSClassicComputeVMProtectableItemTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureIaaSClassicComputeVMProtectableItemTests.java index 53d7d0b707255..93ea251c69490 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureIaaSClassicComputeVMProtectableItemTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureIaaSClassicComputeVMProtectableItemTests.java @@ -13,14 +13,14 @@ public final class AzureIaaSClassicComputeVMProtectableItemTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureIaaSClassicComputeVMProtectableItem model = BinaryData.fromString( - "{\"protectableItemType\":\"Microsoft.ClassicCompute/virtualMachines\",\"virtualMachineId\":\"giqjtiogq\",\"virtualMachineVersion\":\"minict\",\"resourceGroup\":\"aj\",\"backupManagementType\":\"iygspnbonhpczyk\",\"workloadType\":\"tp\",\"friendlyName\":\"xqcsehch\",\"protectionState\":\"ProtectionFailed\"}") + "{\"protectableItemType\":\"Microsoft.ClassicCompute/virtualMachines\",\"virtualMachineId\":\"sugswhgsaod\",\"virtualMachineVersion\":\"wnbaf\",\"resourceGroup\":\"to\",\"backupManagementType\":\"haquvwsxbgnvk\",\"workloadType\":\"vqchoadhrs\",\"friendlyName\":\"vzvsp\",\"protectionState\":\"Invalid\"}") .toObject(AzureIaaSClassicComputeVMProtectableItem.class); - Assertions.assertEquals("iygspnbonhpczyk", model.backupManagementType()); - Assertions.assertEquals("tp", model.workloadType()); - Assertions.assertEquals("xqcsehch", model.friendlyName()); - Assertions.assertEquals(ProtectionStatus.PROTECTION_FAILED, model.protectionState()); - Assertions.assertEquals("giqjtiogq", model.virtualMachineId()); - Assertions.assertEquals("minict", model.virtualMachineVersion()); - Assertions.assertEquals("aj", model.resourceGroup()); + Assertions.assertEquals("haquvwsxbgnvk", model.backupManagementType()); + Assertions.assertEquals("vqchoadhrs", model.workloadType()); + Assertions.assertEquals("vzvsp", model.friendlyName()); + Assertions.assertEquals(ProtectionStatus.INVALID, model.protectionState()); + Assertions.assertEquals("sugswhgsaod", model.virtualMachineId()); + Assertions.assertEquals("wnbaf", model.virtualMachineVersion()); + Assertions.assertEquals("to", model.resourceGroup()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureIaaSComputeVMContainerTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureIaaSComputeVMContainerTests.java index 17551b0399dee..7f7a67baebf55 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureIaaSComputeVMContainerTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureIaaSComputeVMContainerTests.java @@ -13,36 +13,36 @@ public final class AzureIaaSComputeVMContainerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureIaaSComputeVMContainer model = BinaryData.fromString( - "{\"containerType\":\"Microsoft.Compute/virtualMachines\",\"virtualMachineId\":\"yzhftwesgogczh\",\"virtualMachineVersion\":\"nxkrlgnyhmossxkk\",\"resourceGroup\":\"h\",\"friendlyName\":\"gh\",\"backupManagementType\":\"AzureWorkload\",\"registrationStatus\":\"hqxvcxgfrpdsofbs\",\"healthStatus\":\"nsvbuswdv\",\"protectableObjectType\":\"ybycnunvj\",\"sourceLocation\":\"tkfa\"}") + "{\"containerType\":\"Microsoft.Compute/virtualMachines\",\"virtualMachineId\":\"xjmonf\",\"virtualMachineVersion\":\"nwncypuuw\",\"resourceGroup\":\"tvuqjctzenkeifzz\",\"friendlyName\":\"kdasvflyhbxcudch\",\"backupManagementType\":\"MAB\",\"registrationStatus\":\"boldforobwj\",\"healthStatus\":\"izbfhfovvacq\",\"protectableObjectType\":\"tuodxeszabbelaw\",\"sourceLocation\":\"ua\"}") .toObject(AzureIaaSComputeVMContainer.class); - Assertions.assertEquals("gh", model.friendlyName()); - Assertions.assertEquals(BackupManagementType.AZURE_WORKLOAD, model.backupManagementType()); - Assertions.assertEquals("hqxvcxgfrpdsofbs", model.registrationStatus()); - Assertions.assertEquals("nsvbuswdv", model.healthStatus()); - Assertions.assertEquals("ybycnunvj", model.protectableObjectType()); - Assertions.assertEquals("yzhftwesgogczh", model.virtualMachineId()); - Assertions.assertEquals("nxkrlgnyhmossxkk", model.virtualMachineVersion()); - Assertions.assertEquals("h", model.resourceGroup()); + Assertions.assertEquals("kdasvflyhbxcudch", model.friendlyName()); + Assertions.assertEquals(BackupManagementType.MAB, model.backupManagementType()); + Assertions.assertEquals("boldforobwj", model.registrationStatus()); + Assertions.assertEquals("izbfhfovvacq", model.healthStatus()); + Assertions.assertEquals("tuodxeszabbelaw", model.protectableObjectType()); + Assertions.assertEquals("xjmonf", model.virtualMachineId()); + Assertions.assertEquals("nwncypuuw", model.virtualMachineVersion()); + Assertions.assertEquals("tvuqjctzenkeifzz", model.resourceGroup()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AzureIaaSComputeVMContainer model = new AzureIaaSComputeVMContainer().withFriendlyName("gh") - .withBackupManagementType(BackupManagementType.AZURE_WORKLOAD) - .withRegistrationStatus("hqxvcxgfrpdsofbs") - .withHealthStatus("nsvbuswdv") - .withProtectableObjectType("ybycnunvj") - .withVirtualMachineId("yzhftwesgogczh") - .withVirtualMachineVersion("nxkrlgnyhmossxkk") - .withResourceGroup("h"); + AzureIaaSComputeVMContainer model = new AzureIaaSComputeVMContainer().withFriendlyName("kdasvflyhbxcudch") + .withBackupManagementType(BackupManagementType.MAB) + .withRegistrationStatus("boldforobwj") + .withHealthStatus("izbfhfovvacq") + .withProtectableObjectType("tuodxeszabbelaw") + .withVirtualMachineId("xjmonf") + .withVirtualMachineVersion("nwncypuuw") + .withResourceGroup("tvuqjctzenkeifzz"); model = BinaryData.fromObject(model).toObject(AzureIaaSComputeVMContainer.class); - Assertions.assertEquals("gh", model.friendlyName()); - Assertions.assertEquals(BackupManagementType.AZURE_WORKLOAD, model.backupManagementType()); - Assertions.assertEquals("hqxvcxgfrpdsofbs", model.registrationStatus()); - Assertions.assertEquals("nsvbuswdv", model.healthStatus()); - Assertions.assertEquals("ybycnunvj", model.protectableObjectType()); - Assertions.assertEquals("yzhftwesgogczh", model.virtualMachineId()); - Assertions.assertEquals("nxkrlgnyhmossxkk", model.virtualMachineVersion()); - Assertions.assertEquals("h", model.resourceGroup()); + Assertions.assertEquals("kdasvflyhbxcudch", model.friendlyName()); + Assertions.assertEquals(BackupManagementType.MAB, model.backupManagementType()); + Assertions.assertEquals("boldforobwj", model.registrationStatus()); + Assertions.assertEquals("izbfhfovvacq", model.healthStatus()); + Assertions.assertEquals("tuodxeszabbelaw", model.protectableObjectType()); + Assertions.assertEquals("xjmonf", model.virtualMachineId()); + Assertions.assertEquals("nwncypuuw", model.virtualMachineVersion()); + Assertions.assertEquals("tvuqjctzenkeifzz", model.resourceGroup()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureIaaSComputeVMProtectableItemTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureIaaSComputeVMProtectableItemTests.java index ae01af4738c18..d4fcddcf257ed 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureIaaSComputeVMProtectableItemTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureIaaSComputeVMProtectableItemTests.java @@ -13,14 +13,14 @@ public final class AzureIaaSComputeVMProtectableItemTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureIaaSComputeVMProtectableItem model = BinaryData.fromString( - "{\"protectableItemType\":\"Microsoft.Compute/virtualMachines\",\"virtualMachineId\":\"u\",\"virtualMachineVersion\":\"jj\",\"resourceGroup\":\"wbeqrkuor\",\"backupManagementType\":\"ssruqnmdvhazcvj\",\"workloadType\":\"iqswbqer\",\"friendlyName\":\"xiytxtdgukvl\",\"protectionState\":\"ProtectionFailed\"}") + "{\"protectableItemType\":\"Microsoft.Compute/virtualMachines\",\"virtualMachineId\":\"vpaklozkxbz\",\"virtualMachineVersion\":\"ejpl\",\"resourceGroup\":\"anbtttkgsu\",\"backupManagementType\":\"nrswgkpjhboyik\",\"workloadType\":\"huhkslgwlok\",\"friendlyName\":\"eoijyzcqypzqzufg\",\"protectionState\":\"Protecting\"}") .toObject(AzureIaaSComputeVMProtectableItem.class); - Assertions.assertEquals("ssruqnmdvhazcvj", model.backupManagementType()); - Assertions.assertEquals("iqswbqer", model.workloadType()); - Assertions.assertEquals("xiytxtdgukvl", model.friendlyName()); - Assertions.assertEquals(ProtectionStatus.PROTECTION_FAILED, model.protectionState()); - Assertions.assertEquals("u", model.virtualMachineId()); - Assertions.assertEquals("jj", model.virtualMachineVersion()); - Assertions.assertEquals("wbeqrkuor", model.resourceGroup()); + Assertions.assertEquals("nrswgkpjhboyik", model.backupManagementType()); + Assertions.assertEquals("huhkslgwlok", model.workloadType()); + Assertions.assertEquals("eoijyzcqypzqzufg", model.friendlyName()); + Assertions.assertEquals(ProtectionStatus.PROTECTING, model.protectionState()); + Assertions.assertEquals("vpaklozkxbz", model.virtualMachineId()); + Assertions.assertEquals("ejpl", model.virtualMachineVersion()); + Assertions.assertEquals("anbtttkgsu", model.resourceGroup()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureIaaSvmJobExtendedInfoTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureIaaSvmJobExtendedInfoTests.java index 6f112293ca6e5..09e2eefb41c1b 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureIaaSvmJobExtendedInfoTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureIaaSvmJobExtendedInfoTests.java @@ -14,20 +14,20 @@ public final class AzureIaaSvmJobExtendedInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureIaaSvmJobExtendedInfo model = BinaryData.fromString( - "{\"tasksList\":[{\"taskId\":\"nchrszizoyu\",\"startTime\":\"2021-07-26T06:33:37Z\",\"endTime\":\"2021-05-18T10:41:04Z\",\"instanceId\":\"dnb\",\"duration\":\"PT116H59M26S\",\"status\":\"gagflnlgmtrwah\",\"progressPercentage\":10.621998446150371,\"taskExecutionDetails\":\"ftbyrplro\"}],\"propertyBag\":{\"zmkw\":\"igqfusuc\",\"jnhgwydyyn\":\"lsnoxaxmqeqalh\",\"ta\":\"svkhgbv\",\"jcpeogkhnmg\":\"arfdlpukhpyrnei\"},\"internalPropertyBag\":{\"fpazjzoywjxhpd\":\"uxddbhfh\",\"tehtuevrhrljyoog\":\"lontacnpq\",\"sd\":\"xh\",\"arenlvhhtklnvnaf\":\"ugwbsreurfqkf\"},\"progressPercentage\":36.59555541734791,\"estimatedRemainingDuration\":\"edev\",\"dynamicErrorMessage\":\"oslc\"}") + "{\"tasksList\":[{\"taskId\":\"zagxnvhycvdi\",\"startTime\":\"2021-08-25T01:43:42Z\",\"endTime\":\"2021-08-19T02:46:59Z\",\"instanceId\":\"gzgy\",\"duration\":\"PT181H25M23S\",\"status\":\"rw\",\"progressPercentage\":94.41203241882634,\"taskExecutionDetails\":\"ekzkdhmeottaw\"},{\"taskId\":\"osxw\",\"startTime\":\"2021-01-09T00:20:43Z\",\"endTime\":\"2021-02-08T16:03:53Z\",\"instanceId\":\"fv\",\"duration\":\"PT219H13M47S\",\"status\":\"miljpnwynud\",\"progressPercentage\":1.143627389962365,\"taskExecutionDetails\":\"auzpjlx\"}],\"propertyBag\":{\"kihmxrfdsajredn\":\"uxiqhzlraymezxl\",\"pwzyi\":\"yyshtuwgmevua\",\"gzdyimsfayorp\":\"rkgwltxeqip\",\"sl\":\"avkjog\"},\"internalPropertyBag\":{\"vwjtqpkevmyltjc\":\"smjkwynqxaekqsy\",\"cclfgxannn\":\"spxklu\",\"ewxigpxvk\":\"ytzpo\",\"dfaifyzyzeyuube\":\"maupxvpi\"},\"progressPercentage\":33.33003735184607,\"estimatedRemainingDuration\":\"fytoi\",\"dynamicErrorMessage\":\"gygvfltgvdiho\"}") .toObject(AzureIaaSvmJobExtendedInfo.class); - Assertions.assertEquals("nchrszizoyu", model.tasksList().get(0).taskId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-26T06:33:37Z"), model.tasksList().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-18T10:41:04Z"), model.tasksList().get(0).endTime()); - Assertions.assertEquals("dnb", model.tasksList().get(0).instanceId()); - Assertions.assertEquals(Duration.parse("PT116H59M26S"), model.tasksList().get(0).duration()); - Assertions.assertEquals("gagflnlgmtrwah", model.tasksList().get(0).status()); - Assertions.assertEquals(10.621998446150371D, model.tasksList().get(0).progressPercentage()); - Assertions.assertEquals("ftbyrplro", model.tasksList().get(0).taskExecutionDetails()); - Assertions.assertEquals("igqfusuc", model.propertyBag().get("zmkw")); - Assertions.assertEquals("uxddbhfh", model.internalPropertyBag().get("fpazjzoywjxhpd")); - Assertions.assertEquals(36.59555541734791D, model.progressPercentage()); - Assertions.assertEquals("edev", model.estimatedRemainingDuration()); - Assertions.assertEquals("oslc", model.dynamicErrorMessage()); + Assertions.assertEquals("zagxnvhycvdi", model.tasksList().get(0).taskId()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-25T01:43:42Z"), model.tasksList().get(0).startTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-19T02:46:59Z"), model.tasksList().get(0).endTime()); + Assertions.assertEquals("gzgy", model.tasksList().get(0).instanceId()); + Assertions.assertEquals(Duration.parse("PT181H25M23S"), model.tasksList().get(0).duration()); + Assertions.assertEquals("rw", model.tasksList().get(0).status()); + Assertions.assertEquals(94.41203241882634D, model.tasksList().get(0).progressPercentage()); + Assertions.assertEquals("ekzkdhmeottaw", model.tasksList().get(0).taskExecutionDetails()); + Assertions.assertEquals("uxiqhzlraymezxl", model.propertyBag().get("kihmxrfdsajredn")); + Assertions.assertEquals("smjkwynqxaekqsy", model.internalPropertyBag().get("vwjtqpkevmyltjc")); + Assertions.assertEquals(33.33003735184607D, model.progressPercentage()); + Assertions.assertEquals("fytoi", model.estimatedRemainingDuration()); + Assertions.assertEquals("gygvfltgvdiho", model.dynamicErrorMessage()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureIaaSvmJobTaskDetailsTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureIaaSvmJobTaskDetailsTests.java index bc098bdd603f4..ff7c2af5ba4e6 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureIaaSvmJobTaskDetailsTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureIaaSvmJobTaskDetailsTests.java @@ -14,15 +14,15 @@ public final class AzureIaaSvmJobTaskDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureIaaSvmJobTaskDetails model = BinaryData.fromString( - "{\"taskId\":\"y\",\"startTime\":\"2021-08-09T07:54:10Z\",\"endTime\":\"2021-02-03T10:01:03Z\",\"instanceId\":\"nqcymczngnbdxxew\",\"duration\":\"PT121H51M33S\",\"status\":\"vudb\",\"progressPercentage\":98.9480135905309,\"taskExecutionDetails\":\"tvq\"}") + "{\"taskId\":\"krxwet\",\"startTime\":\"2021-03-03T08:34:14Z\",\"endTime\":\"2021-05-20T10:11:19Z\",\"instanceId\":\"rucpcunnuz\",\"duration\":\"PT26H47M8S\",\"status\":\"oenodnaienh\",\"progressPercentage\":99.61060010726467,\"taskExecutionDetails\":\"dnelqkaad\"}") .toObject(AzureIaaSvmJobTaskDetails.class); - Assertions.assertEquals("y", model.taskId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-09T07:54:10Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-03T10:01:03Z"), model.endTime()); - Assertions.assertEquals("nqcymczngnbdxxew", model.instanceId()); - Assertions.assertEquals(Duration.parse("PT121H51M33S"), model.duration()); - Assertions.assertEquals("vudb", model.status()); - Assertions.assertEquals(98.9480135905309D, model.progressPercentage()); - Assertions.assertEquals("tvq", model.taskExecutionDetails()); + Assertions.assertEquals("krxwet", model.taskId()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-03T08:34:14Z"), model.startTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-20T10:11:19Z"), model.endTime()); + Assertions.assertEquals("rucpcunnuz", model.instanceId()); + Assertions.assertEquals(Duration.parse("PT26H47M8S"), model.duration()); + Assertions.assertEquals("oenodnaienh", model.status()); + Assertions.assertEquals(99.61060010726467D, model.progressPercentage()); + Assertions.assertEquals("dnelqkaad", model.taskExecutionDetails()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureIaaSvmProtectionPolicyTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureIaaSvmProtectionPolicyTests.java index 9e0202328a4c8..ebbc21b29dd6c 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureIaaSvmProtectionPolicyTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureIaaSvmProtectionPolicyTests.java @@ -23,47 +23,53 @@ public final class AzureIaaSvmProtectionPolicyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureIaaSvmProtectionPolicy model = BinaryData.fromString( - "{\"backupManagementType\":\"AzureIaasVM\",\"instantRPDetails\":{\"azureBackupRGNamePrefix\":\"ucfotangcf\",\"azureBackupRGNameSuffix\":\"ykzcugswvxwl\"},\"schedulePolicy\":{\"schedulePolicyType\":\"SchedulePolicy\"},\"retentionPolicy\":{\"retentionPolicyType\":\"RetentionPolicy\"},\"tieringPolicy\":{\"xmcuqud\":{\"tieringMode\":\"Invalid\",\"duration\":1774034155,\"durationType\":\"Weeks\"}},\"instantRpRetentionRangeInDays\":1061569656,\"timeZone\":\"lxynpdkvgf\",\"policyType\":\"Invalid\",\"snapshotConsistencyType\":\"OnlyCrashConsistent\",\"protectedItemsCount\":1038771362,\"resourceGuardOperationRequests\":[\"zphdugneiknp\",\"oxgjiuqhibt\",\"z\"]}") + "{\"backupManagementType\":\"AzureIaasVM\",\"instantRPDetails\":{\"azureBackupRGNamePrefix\":\"hcdpkupnqrmgj\",\"azureBackupRGNameSuffix\":\"pkuwxeoioj\"},\"schedulePolicy\":{\"schedulePolicyType\":\"SchedulePolicy\"},\"retentionPolicy\":{\"retentionPolicyType\":\"RetentionPolicy\"},\"tieringPolicy\":{\"bcyaykmmfzs\":{\"tieringMode\":\"TierAfter\",\"duration\":1495529407,\"durationType\":\"Days\"}},\"instantRpRetentionRangeInDays\":1924690078,\"instantAccessSnapshotEnabled\":false,\"instantAccessDurationMinutes\":1740416627,\"timeZone\":\"dew\",\"policyType\":\"Invalid\",\"snapshotConsistencyType\":\"OnlyCrashConsistent\",\"protectedItemsCount\":1848912659,\"resourceGuardOperationRequests\":[\"jazejwwviyoyp\",\"uhbrnnhjxsq\",\"jhqkbiwetpozy\"]}") .toObject(AzureIaaSvmProtectionPolicy.class); - Assertions.assertEquals(1038771362, model.protectedItemsCount()); - Assertions.assertEquals("zphdugneiknp", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals("ucfotangcf", model.instantRPDetails().azureBackupRGNamePrefix()); - Assertions.assertEquals("ykzcugswvxwl", model.instantRPDetails().azureBackupRGNameSuffix()); - Assertions.assertEquals(TieringMode.INVALID, model.tieringPolicy().get("xmcuqud").tieringMode()); - Assertions.assertEquals(1774034155, model.tieringPolicy().get("xmcuqud").duration()); - Assertions.assertEquals(RetentionDurationType.WEEKS, model.tieringPolicy().get("xmcuqud").durationType()); - Assertions.assertEquals(1061569656, model.instantRpRetentionRangeInDays()); - Assertions.assertEquals("lxynpdkvgf", model.timeZone()); + Assertions.assertEquals(1848912659, model.protectedItemsCount()); + Assertions.assertEquals("jazejwwviyoyp", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals("hcdpkupnqrmgj", model.instantRPDetails().azureBackupRGNamePrefix()); + Assertions.assertEquals("pkuwxeoioj", model.instantRPDetails().azureBackupRGNameSuffix()); + Assertions.assertEquals(TieringMode.TIER_AFTER, model.tieringPolicy().get("bcyaykmmfzs").tieringMode()); + Assertions.assertEquals(1495529407, model.tieringPolicy().get("bcyaykmmfzs").duration()); + Assertions.assertEquals(RetentionDurationType.DAYS, model.tieringPolicy().get("bcyaykmmfzs").durationType()); + Assertions.assertEquals(1924690078, model.instantRpRetentionRangeInDays()); + Assertions.assertFalse(model.instantAccessSnapshotEnabled()); + Assertions.assertEquals(1740416627, model.instantAccessDurationMinutes()); + Assertions.assertEquals("dew", model.timeZone()); Assertions.assertEquals(IaasvmPolicyType.INVALID, model.policyType()); Assertions.assertEquals(IaasVMSnapshotConsistencyType.ONLY_CRASH_CONSISTENT, model.snapshotConsistencyType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AzureIaaSvmProtectionPolicy model = new AzureIaaSvmProtectionPolicy().withProtectedItemsCount(1038771362) - .withResourceGuardOperationRequests(Arrays.asList("zphdugneiknp", "oxgjiuqhibt", "z")) - .withInstantRPDetails(new InstantRPAdditionalDetails().withAzureBackupRGNamePrefix("ucfotangcf") - .withAzureBackupRGNameSuffix("ykzcugswvxwl")) + AzureIaaSvmProtectionPolicy model = new AzureIaaSvmProtectionPolicy().withProtectedItemsCount(1848912659) + .withResourceGuardOperationRequests(Arrays.asList("jazejwwviyoyp", "uhbrnnhjxsq", "jhqkbiwetpozy")) + .withInstantRPDetails(new InstantRPAdditionalDetails().withAzureBackupRGNamePrefix("hcdpkupnqrmgj") + .withAzureBackupRGNameSuffix("pkuwxeoioj")) .withSchedulePolicy(new SchedulePolicy()) .withRetentionPolicy(new RetentionPolicy()) - .withTieringPolicy(mapOf("xmcuqud", - new TieringPolicy().withTieringMode(TieringMode.INVALID) - .withDuration(1774034155) - .withDurationType(RetentionDurationType.WEEKS))) - .withInstantRpRetentionRangeInDays(1061569656) - .withTimeZone("lxynpdkvgf") + .withTieringPolicy(mapOf("bcyaykmmfzs", + new TieringPolicy().withTieringMode(TieringMode.TIER_AFTER) + .withDuration(1495529407) + .withDurationType(RetentionDurationType.DAYS))) + .withInstantRpRetentionRangeInDays(1924690078) + .withInstantAccessSnapshotEnabled(false) + .withInstantAccessDurationMinutes(1740416627) + .withTimeZone("dew") .withPolicyType(IaasvmPolicyType.INVALID) .withSnapshotConsistencyType(IaasVMSnapshotConsistencyType.ONLY_CRASH_CONSISTENT); model = BinaryData.fromObject(model).toObject(AzureIaaSvmProtectionPolicy.class); - Assertions.assertEquals(1038771362, model.protectedItemsCount()); - Assertions.assertEquals("zphdugneiknp", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals("ucfotangcf", model.instantRPDetails().azureBackupRGNamePrefix()); - Assertions.assertEquals("ykzcugswvxwl", model.instantRPDetails().azureBackupRGNameSuffix()); - Assertions.assertEquals(TieringMode.INVALID, model.tieringPolicy().get("xmcuqud").tieringMode()); - Assertions.assertEquals(1774034155, model.tieringPolicy().get("xmcuqud").duration()); - Assertions.assertEquals(RetentionDurationType.WEEKS, model.tieringPolicy().get("xmcuqud").durationType()); - Assertions.assertEquals(1061569656, model.instantRpRetentionRangeInDays()); - Assertions.assertEquals("lxynpdkvgf", model.timeZone()); + Assertions.assertEquals(1848912659, model.protectedItemsCount()); + Assertions.assertEquals("jazejwwviyoyp", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals("hcdpkupnqrmgj", model.instantRPDetails().azureBackupRGNamePrefix()); + Assertions.assertEquals("pkuwxeoioj", model.instantRPDetails().azureBackupRGNameSuffix()); + Assertions.assertEquals(TieringMode.TIER_AFTER, model.tieringPolicy().get("bcyaykmmfzs").tieringMode()); + Assertions.assertEquals(1495529407, model.tieringPolicy().get("bcyaykmmfzs").duration()); + Assertions.assertEquals(RetentionDurationType.DAYS, model.tieringPolicy().get("bcyaykmmfzs").durationType()); + Assertions.assertEquals(1924690078, model.instantRpRetentionRangeInDays()); + Assertions.assertFalse(model.instantAccessSnapshotEnabled()); + Assertions.assertEquals(1740416627, model.instantAccessDurationMinutes()); + Assertions.assertEquals("dew", model.timeZone()); Assertions.assertEquals(IaasvmPolicyType.INVALID, model.policyType()); Assertions.assertEquals(IaasVMSnapshotConsistencyType.ONLY_CRASH_CONSISTENT, model.snapshotConsistencyType()); } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureRecoveryServiceVaultProtectionIntentTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureRecoveryServiceVaultProtectionIntentTests.java index 3ba381bb9556f..e7f8333269c05 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureRecoveryServiceVaultProtectionIntentTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureRecoveryServiceVaultProtectionIntentTests.java @@ -14,28 +14,28 @@ public final class AzureRecoveryServiceVaultProtectionIntentTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureRecoveryServiceVaultProtectionIntent model = BinaryData.fromString( - "{\"protectionIntentItemType\":\"RecoveryServiceVaultItem\",\"backupManagementType\":\"AzureWorkload\",\"sourceResourceId\":\"v\",\"itemId\":\"wiswskukjtasbvw\",\"policyId\":\"pkxkdtxfk\",\"protectionState\":\"ProtectionFailed\"}") + "{\"protectionIntentItemType\":\"RecoveryServiceVaultItem\",\"backupManagementType\":\"AzureBackupServer\",\"sourceResourceId\":\"oajxeiygles\",\"itemId\":\"vaexh\",\"policyId\":\"trceqnkbrupob\",\"protectionState\":\"NotProtected\"}") .toObject(AzureRecoveryServiceVaultProtectionIntent.class); - Assertions.assertEquals(BackupManagementType.AZURE_WORKLOAD, model.backupManagementType()); - Assertions.assertEquals("v", model.sourceResourceId()); - Assertions.assertEquals("wiswskukjtasbvw", model.itemId()); - Assertions.assertEquals("pkxkdtxfk", model.policyId()); - Assertions.assertEquals(ProtectionStatus.PROTECTION_FAILED, model.protectionState()); + Assertions.assertEquals(BackupManagementType.AZURE_BACKUP_SERVER, model.backupManagementType()); + Assertions.assertEquals("oajxeiygles", model.sourceResourceId()); + Assertions.assertEquals("vaexh", model.itemId()); + Assertions.assertEquals("trceqnkbrupob", model.policyId()); + Assertions.assertEquals(ProtectionStatus.NOT_PROTECTED, model.protectionState()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AzureRecoveryServiceVaultProtectionIntent model = new AzureRecoveryServiceVaultProtectionIntent() - .withBackupManagementType(BackupManagementType.AZURE_WORKLOAD) - .withSourceResourceId("v") - .withItemId("wiswskukjtasbvw") - .withPolicyId("pkxkdtxfk") - .withProtectionState(ProtectionStatus.PROTECTION_FAILED); + .withBackupManagementType(BackupManagementType.AZURE_BACKUP_SERVER) + .withSourceResourceId("oajxeiygles") + .withItemId("vaexh") + .withPolicyId("trceqnkbrupob") + .withProtectionState(ProtectionStatus.NOT_PROTECTED); model = BinaryData.fromObject(model).toObject(AzureRecoveryServiceVaultProtectionIntent.class); - Assertions.assertEquals(BackupManagementType.AZURE_WORKLOAD, model.backupManagementType()); - Assertions.assertEquals("v", model.sourceResourceId()); - Assertions.assertEquals("wiswskukjtasbvw", model.itemId()); - Assertions.assertEquals("pkxkdtxfk", model.policyId()); - Assertions.assertEquals(ProtectionStatus.PROTECTION_FAILED, model.protectionState()); + Assertions.assertEquals(BackupManagementType.AZURE_BACKUP_SERVER, model.backupManagementType()); + Assertions.assertEquals("oajxeiygles", model.sourceResourceId()); + Assertions.assertEquals("vaexh", model.itemId()); + Assertions.assertEquals("trceqnkbrupob", model.policyId()); + Assertions.assertEquals(ProtectionStatus.NOT_PROTECTED, model.protectionState()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureResourceProtectionIntentTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureResourceProtectionIntentTests.java index a4c71275cedbf..1b0cd307d2b99 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureResourceProtectionIntentTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureResourceProtectionIntentTests.java @@ -14,31 +14,31 @@ public final class AzureResourceProtectionIntentTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureResourceProtectionIntent model = BinaryData.fromString( - "{\"protectionIntentItemType\":\"AzureResourceItem\",\"friendlyName\":\"ndljdjuskbr\",\"backupManagementType\":\"MAB\",\"sourceResourceId\":\"n\",\"itemId\":\"eysfaqegplw\",\"policyId\":\"shwddkvbxgk\",\"protectionState\":\"NotProtected\"}") + "{\"protectionIntentItemType\":\"AzureResourceItem\",\"friendlyName\":\"pdjxqeskoynu\",\"backupManagementType\":\"AzureStorage\",\"sourceResourceId\":\"ckaewsedves\",\"itemId\":\"xegqphr\",\"policyId\":\"nzhctmjtsgh\",\"protectionState\":\"ProtectionFailed\"}") .toObject(AzureResourceProtectionIntent.class); - Assertions.assertEquals(BackupManagementType.MAB, model.backupManagementType()); - Assertions.assertEquals("n", model.sourceResourceId()); - Assertions.assertEquals("eysfaqegplw", model.itemId()); - Assertions.assertEquals("shwddkvbxgk", model.policyId()); - Assertions.assertEquals(ProtectionStatus.NOT_PROTECTED, model.protectionState()); - Assertions.assertEquals("ndljdjuskbr", model.friendlyName()); + Assertions.assertEquals(BackupManagementType.AZURE_STORAGE, model.backupManagementType()); + Assertions.assertEquals("ckaewsedves", model.sourceResourceId()); + Assertions.assertEquals("xegqphr", model.itemId()); + Assertions.assertEquals("nzhctmjtsgh", model.policyId()); + Assertions.assertEquals(ProtectionStatus.PROTECTION_FAILED, model.protectionState()); + Assertions.assertEquals("pdjxqeskoynu", model.friendlyName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AzureResourceProtectionIntent model - = new AzureResourceProtectionIntent().withBackupManagementType(BackupManagementType.MAB) - .withSourceResourceId("n") - .withItemId("eysfaqegplw") - .withPolicyId("shwddkvbxgk") - .withProtectionState(ProtectionStatus.NOT_PROTECTED) - .withFriendlyName("ndljdjuskbr"); + = new AzureResourceProtectionIntent().withBackupManagementType(BackupManagementType.AZURE_STORAGE) + .withSourceResourceId("ckaewsedves") + .withItemId("xegqphr") + .withPolicyId("nzhctmjtsgh") + .withProtectionState(ProtectionStatus.PROTECTION_FAILED) + .withFriendlyName("pdjxqeskoynu"); model = BinaryData.fromObject(model).toObject(AzureResourceProtectionIntent.class); - Assertions.assertEquals(BackupManagementType.MAB, model.backupManagementType()); - Assertions.assertEquals("n", model.sourceResourceId()); - Assertions.assertEquals("eysfaqegplw", model.itemId()); - Assertions.assertEquals("shwddkvbxgk", model.policyId()); - Assertions.assertEquals(ProtectionStatus.NOT_PROTECTED, model.protectionState()); - Assertions.assertEquals("ndljdjuskbr", model.friendlyName()); + Assertions.assertEquals(BackupManagementType.AZURE_STORAGE, model.backupManagementType()); + Assertions.assertEquals("ckaewsedves", model.sourceResourceId()); + Assertions.assertEquals("xegqphr", model.itemId()); + Assertions.assertEquals("nzhctmjtsgh", model.policyId()); + Assertions.assertEquals(ProtectionStatus.PROTECTION_FAILED, model.protectionState()); + Assertions.assertEquals("pdjxqeskoynu", model.friendlyName()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureSqlContainerTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureSqlContainerTests.java index 752806192d9a4..37ee1ce75bdcf 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureSqlContainerTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureSqlContainerTests.java @@ -13,27 +13,27 @@ public final class AzureSqlContainerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureSqlContainer model = BinaryData.fromString( - "{\"containerType\":\"AzureSqlContainer\",\"friendlyName\":\"auutpwoqhihe\",\"backupManagementType\":\"MAB\",\"registrationStatus\":\"zpnfqntcypsxj\",\"healthStatus\":\"oimwkslirc\",\"protectableObjectType\":\"jxv\",\"sourceLocation\":\"fceacvlhvygd\"}") + "{\"containerType\":\"AzureSqlContainer\",\"friendlyName\":\"zabs\",\"backupManagementType\":\"DPM\",\"registrationStatus\":\"phojeevyhy\",\"healthStatus\":\"gzfc\",\"protectableObjectType\":\"gomfgbeglq\",\"sourceLocation\":\"eohibet\"}") .toObject(AzureSqlContainer.class); - Assertions.assertEquals("auutpwoqhihe", model.friendlyName()); - Assertions.assertEquals(BackupManagementType.MAB, model.backupManagementType()); - Assertions.assertEquals("zpnfqntcypsxj", model.registrationStatus()); - Assertions.assertEquals("oimwkslirc", model.healthStatus()); - Assertions.assertEquals("jxv", model.protectableObjectType()); + Assertions.assertEquals("zabs", model.friendlyName()); + Assertions.assertEquals(BackupManagementType.DPM, model.backupManagementType()); + Assertions.assertEquals("phojeevyhy", model.registrationStatus()); + Assertions.assertEquals("gzfc", model.healthStatus()); + Assertions.assertEquals("gomfgbeglq", model.protectableObjectType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AzureSqlContainer model = new AzureSqlContainer().withFriendlyName("auutpwoqhihe") - .withBackupManagementType(BackupManagementType.MAB) - .withRegistrationStatus("zpnfqntcypsxj") - .withHealthStatus("oimwkslirc") - .withProtectableObjectType("jxv"); + AzureSqlContainer model = new AzureSqlContainer().withFriendlyName("zabs") + .withBackupManagementType(BackupManagementType.DPM) + .withRegistrationStatus("phojeevyhy") + .withHealthStatus("gzfc") + .withProtectableObjectType("gomfgbeglq"); model = BinaryData.fromObject(model).toObject(AzureSqlContainer.class); - Assertions.assertEquals("auutpwoqhihe", model.friendlyName()); - Assertions.assertEquals(BackupManagementType.MAB, model.backupManagementType()); - Assertions.assertEquals("zpnfqntcypsxj", model.registrationStatus()); - Assertions.assertEquals("oimwkslirc", model.healthStatus()); - Assertions.assertEquals("jxv", model.protectableObjectType()); + Assertions.assertEquals("zabs", model.friendlyName()); + Assertions.assertEquals(BackupManagementType.DPM, model.backupManagementType()); + Assertions.assertEquals("phojeevyhy", model.registrationStatus()); + Assertions.assertEquals("gzfc", model.healthStatus()); + Assertions.assertEquals("gomfgbeglq", model.protectableObjectType()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureSqlProtectionPolicyTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureSqlProtectionPolicyTests.java index 497fcc4bf9fa7..c85e3946cd9a2 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureSqlProtectionPolicyTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureSqlProtectionPolicyTests.java @@ -14,19 +14,19 @@ public final class AzureSqlProtectionPolicyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureSqlProtectionPolicy model = BinaryData.fromString( - "{\"backupManagementType\":\"AzureSql\",\"retentionPolicy\":{\"retentionPolicyType\":\"RetentionPolicy\"},\"protectedItemsCount\":189610286,\"resourceGuardOperationRequests\":[\"g\"]}") + "{\"backupManagementType\":\"AzureSql\",\"retentionPolicy\":{\"retentionPolicyType\":\"RetentionPolicy\"},\"protectedItemsCount\":246722999,\"resourceGuardOperationRequests\":[\"ziu\",\"fbzkk\",\"tnhqsycl\",\"selpkpbaf\"]}") .toObject(AzureSqlProtectionPolicy.class); - Assertions.assertEquals(189610286, model.protectedItemsCount()); - Assertions.assertEquals("g", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals(246722999, model.protectedItemsCount()); + Assertions.assertEquals("ziu", model.resourceGuardOperationRequests().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AzureSqlProtectionPolicy model = new AzureSqlProtectionPolicy().withProtectedItemsCount(189610286) - .withResourceGuardOperationRequests(Arrays.asList("g")) + AzureSqlProtectionPolicy model = new AzureSqlProtectionPolicy().withProtectedItemsCount(246722999) + .withResourceGuardOperationRequests(Arrays.asList("ziu", "fbzkk", "tnhqsycl", "selpkpbaf")) .withRetentionPolicy(new RetentionPolicy()); model = BinaryData.fromObject(model).toObject(AzureSqlProtectionPolicy.class); - Assertions.assertEquals(189610286, model.protectedItemsCount()); - Assertions.assertEquals("g", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals(246722999, model.protectedItemsCount()); + Assertions.assertEquals("ziu", model.resourceGuardOperationRequests().get(0)); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureStorageContainerTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureStorageContainerTests.java index c106e610bbd4f..6febad09cf8b1 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureStorageContainerTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureStorageContainerTests.java @@ -17,54 +17,54 @@ public final class AzureStorageContainerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureStorageContainer model = BinaryData.fromString( - "{\"containerType\":\"StorageContainer\",\"sourceResourceId\":\"t\",\"storageAccountVersion\":\"rtwnawjslbi\",\"resourceGroup\":\"ojgcyzt\",\"protectedItemCount\":2531418071966060965,\"acquireStorageAccountLock\":\"Acquire\",\"operationType\":\"Reregister\",\"accessType\":\"KeyBased\",\"identityInfo\":{\"isSystemAssignedIdentity\":false,\"managedIdentityResourceId\":\"nrnrp\"},\"friendlyName\":\"huwrykqgaifm\",\"backupManagementType\":\"DefaultBackup\",\"registrationStatus\":\"bydvkhbejdz\",\"healthStatus\":\"cvdsrhnj\",\"protectableObjectType\":\"olvtnovqfzge\",\"sourceLocation\":\"dftuljltduce\"}") + "{\"containerType\":\"StorageContainer\",\"sourceResourceId\":\"uankrrfxeeeb\",\"storageAccountVersion\":\"j\",\"resourceGroup\":\"cvbmqzb\",\"protectedItemCount\":1217844899495018315,\"acquireStorageAccountLock\":\"NotAcquire\",\"operationType\":\"Invalid\",\"accessType\":\"KeyBased\",\"identityInfo\":{\"isSystemAssignedIdentity\":true,\"managedIdentityResourceId\":\"ehjku\"},\"friendlyName\":\"oafgaoql\",\"backupManagementType\":\"AzureIaasVM\",\"registrationStatus\":\"yl\",\"healthStatus\":\"mfgvxirpghriypo\",\"protectableObjectType\":\"yhlqhykprlpyznu\",\"sourceLocation\":\"qdsmexiit\"}") .toObject(AzureStorageContainer.class); - Assertions.assertEquals("huwrykqgaifm", model.friendlyName()); - Assertions.assertEquals(BackupManagementType.DEFAULT_BACKUP, model.backupManagementType()); - Assertions.assertEquals("bydvkhbejdz", model.registrationStatus()); - Assertions.assertEquals("cvdsrhnj", model.healthStatus()); - Assertions.assertEquals("olvtnovqfzge", model.protectableObjectType()); - Assertions.assertEquals("t", model.sourceResourceId()); - Assertions.assertEquals("rtwnawjslbi", model.storageAccountVersion()); - Assertions.assertEquals("ojgcyzt", model.resourceGroup()); - Assertions.assertEquals(2531418071966060965L, model.protectedItemCount()); - Assertions.assertEquals(AcquireStorageAccountLock.ACQUIRE, model.acquireStorageAccountLock()); - Assertions.assertEquals(OperationType.REREGISTER, model.operationType()); + Assertions.assertEquals("oafgaoql", model.friendlyName()); + Assertions.assertEquals(BackupManagementType.AZURE_IAAS_VM, model.backupManagementType()); + Assertions.assertEquals("yl", model.registrationStatus()); + Assertions.assertEquals("mfgvxirpghriypo", model.healthStatus()); + Assertions.assertEquals("yhlqhykprlpyznu", model.protectableObjectType()); + Assertions.assertEquals("uankrrfxeeeb", model.sourceResourceId()); + Assertions.assertEquals("j", model.storageAccountVersion()); + Assertions.assertEquals("cvbmqzb", model.resourceGroup()); + Assertions.assertEquals(1217844899495018315L, model.protectedItemCount()); + Assertions.assertEquals(AcquireStorageAccountLock.NOT_ACQUIRE, model.acquireStorageAccountLock()); + Assertions.assertEquals(OperationType.INVALID, model.operationType()); Assertions.assertEquals(AccessType.KEY_BASED, model.accessType()); - Assertions.assertFalse(model.identityInfo().isSystemAssignedIdentity()); - Assertions.assertEquals("nrnrp", model.identityInfo().managedIdentityResourceId()); + Assertions.assertTrue(model.identityInfo().isSystemAssignedIdentity()); + Assertions.assertEquals("ehjku", model.identityInfo().managedIdentityResourceId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AzureStorageContainer model = new AzureStorageContainer().withFriendlyName("huwrykqgaifm") - .withBackupManagementType(BackupManagementType.DEFAULT_BACKUP) - .withRegistrationStatus("bydvkhbejdz") - .withHealthStatus("cvdsrhnj") - .withProtectableObjectType("olvtnovqfzge") - .withSourceResourceId("t") - .withStorageAccountVersion("rtwnawjslbi") - .withResourceGroup("ojgcyzt") - .withProtectedItemCount(2531418071966060965L) - .withAcquireStorageAccountLock(AcquireStorageAccountLock.ACQUIRE) - .withOperationType(OperationType.REREGISTER) + AzureStorageContainer model = new AzureStorageContainer().withFriendlyName("oafgaoql") + .withBackupManagementType(BackupManagementType.AZURE_IAAS_VM) + .withRegistrationStatus("yl") + .withHealthStatus("mfgvxirpghriypo") + .withProtectableObjectType("yhlqhykprlpyznu") + .withSourceResourceId("uankrrfxeeeb") + .withStorageAccountVersion("j") + .withResourceGroup("cvbmqzb") + .withProtectedItemCount(1217844899495018315L) + .withAcquireStorageAccountLock(AcquireStorageAccountLock.NOT_ACQUIRE) + .withOperationType(OperationType.INVALID) .withAccessType(AccessType.KEY_BASED) .withIdentityInfo( - new IdentityInfo().withIsSystemAssignedIdentity(false).withManagedIdentityResourceId("nrnrp")); + new IdentityInfo().withIsSystemAssignedIdentity(true).withManagedIdentityResourceId("ehjku")); model = BinaryData.fromObject(model).toObject(AzureStorageContainer.class); - Assertions.assertEquals("huwrykqgaifm", model.friendlyName()); - Assertions.assertEquals(BackupManagementType.DEFAULT_BACKUP, model.backupManagementType()); - Assertions.assertEquals("bydvkhbejdz", model.registrationStatus()); - Assertions.assertEquals("cvdsrhnj", model.healthStatus()); - Assertions.assertEquals("olvtnovqfzge", model.protectableObjectType()); - Assertions.assertEquals("t", model.sourceResourceId()); - Assertions.assertEquals("rtwnawjslbi", model.storageAccountVersion()); - Assertions.assertEquals("ojgcyzt", model.resourceGroup()); - Assertions.assertEquals(2531418071966060965L, model.protectedItemCount()); - Assertions.assertEquals(AcquireStorageAccountLock.ACQUIRE, model.acquireStorageAccountLock()); - Assertions.assertEquals(OperationType.REREGISTER, model.operationType()); + Assertions.assertEquals("oafgaoql", model.friendlyName()); + Assertions.assertEquals(BackupManagementType.AZURE_IAAS_VM, model.backupManagementType()); + Assertions.assertEquals("yl", model.registrationStatus()); + Assertions.assertEquals("mfgvxirpghriypo", model.healthStatus()); + Assertions.assertEquals("yhlqhykprlpyznu", model.protectableObjectType()); + Assertions.assertEquals("uankrrfxeeeb", model.sourceResourceId()); + Assertions.assertEquals("j", model.storageAccountVersion()); + Assertions.assertEquals("cvbmqzb", model.resourceGroup()); + Assertions.assertEquals(1217844899495018315L, model.protectedItemCount()); + Assertions.assertEquals(AcquireStorageAccountLock.NOT_ACQUIRE, model.acquireStorageAccountLock()); + Assertions.assertEquals(OperationType.INVALID, model.operationType()); Assertions.assertEquals(AccessType.KEY_BASED, model.accessType()); - Assertions.assertFalse(model.identityInfo().isSystemAssignedIdentity()); - Assertions.assertEquals("nrnrp", model.identityInfo().managedIdentityResourceId()); + Assertions.assertTrue(model.identityInfo().isSystemAssignedIdentity()); + Assertions.assertEquals("ehjku", model.identityInfo().managedIdentityResourceId()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureStorageJobExtendedInfoTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureStorageJobExtendedInfoTests.java index d494fa7951f68..eb46dd269a9e4 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureStorageJobExtendedInfoTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureStorageJobExtendedInfoTests.java @@ -12,11 +12,11 @@ public final class AzureStorageJobExtendedInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureStorageJobExtendedInfo model = BinaryData.fromString( - "{\"tasksList\":[{\"taskId\":\"ytprwnwvroev\",\"status\":\"lyokrrrou\"},{\"taskId\":\"vnsasbcrymodi\",\"status\":\"xkl\"}],\"propertyBag\":{\"vevfxz\":\"xnazpmkml\"},\"dynamicErrorMessage\":\"jhbzxliohrdddtf\"}") + "{\"tasksList\":[{\"taskId\":\"vbqsdt\",\"status\":\"bctvivuzqym\"}],\"propertyBag\":{\"zvbrzcdbanfzndsc\":\"wogtgitsq\"},\"dynamicErrorMessage\":\"xeatkd\"}") .toObject(AzureStorageJobExtendedInfo.class); - Assertions.assertEquals("ytprwnwvroev", model.tasksList().get(0).taskId()); - Assertions.assertEquals("lyokrrrou", model.tasksList().get(0).status()); - Assertions.assertEquals("xnazpmkml", model.propertyBag().get("vevfxz")); - Assertions.assertEquals("jhbzxliohrdddtf", model.dynamicErrorMessage()); + Assertions.assertEquals("vbqsdt", model.tasksList().get(0).taskId()); + Assertions.assertEquals("bctvivuzqym", model.tasksList().get(0).status()); + Assertions.assertEquals("wogtgitsq", model.propertyBag().get("zvbrzcdbanfzndsc")); + Assertions.assertEquals("xeatkd", model.dynamicErrorMessage()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureStorageJobTaskDetailsTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureStorageJobTaskDetailsTests.java index f42f6118d9916..044ed853bc773 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureStorageJobTaskDetailsTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureStorageJobTaskDetailsTests.java @@ -11,10 +11,9 @@ public final class AzureStorageJobTaskDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - AzureStorageJobTaskDetails model - = BinaryData.fromString("{\"taskId\":\"qbawpcbbnzqcykn\",\"status\":\"qofyuicdhzbdy\"}") - .toObject(AzureStorageJobTaskDetails.class); - Assertions.assertEquals("qbawpcbbnzqcykn", model.taskId()); - Assertions.assertEquals("qofyuicdhzbdy", model.status()); + AzureStorageJobTaskDetails model = BinaryData.fromString("{\"taskId\":\"wnrdjyibqbnaom\",\"status\":\"rmkuh\"}") + .toObject(AzureStorageJobTaskDetails.class); + Assertions.assertEquals("wnrdjyibqbnaom", model.taskId()); + Assertions.assertEquals("rmkuh", model.status()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureStorageProtectableContainerTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureStorageProtectableContainerTests.java index 558ddfe279473..8d3803ededa76 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureStorageProtectableContainerTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureStorageProtectableContainerTests.java @@ -13,11 +13,11 @@ public final class AzureStorageProtectableContainerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureStorageProtectableContainer model = BinaryData.fromString( - "{\"protectableContainerType\":\"StorageContainer\",\"friendlyName\":\"pra\",\"backupManagementType\":\"DefaultBackup\",\"healthStatus\":\"geslabnsmj\",\"containerId\":\"ynq\"}") + "{\"protectableContainerType\":\"StorageContainer\",\"friendlyName\":\"syrled\",\"backupManagementType\":\"MAB\",\"healthStatus\":\"tb\",\"containerId\":\"qigdx\"}") .toObject(AzureStorageProtectableContainer.class); - Assertions.assertEquals("pra", model.friendlyName()); - Assertions.assertEquals(BackupManagementType.DEFAULT_BACKUP, model.backupManagementType()); - Assertions.assertEquals("geslabnsmj", model.healthStatus()); - Assertions.assertEquals("ynq", model.containerId()); + Assertions.assertEquals("syrled", model.friendlyName()); + Assertions.assertEquals(BackupManagementType.MAB, model.backupManagementType()); + Assertions.assertEquals("tb", model.healthStatus()); + Assertions.assertEquals("qigdx", model.containerId()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVMAppContainerProtectableContainerTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVMAppContainerProtectableContainerTests.java index d0cfe78135c73..bd569db02bf87 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVMAppContainerProtectableContainerTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVMAppContainerProtectableContainerTests.java @@ -13,11 +13,11 @@ public final class AzureVMAppContainerProtectableContainerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureVMAppContainerProtectableContainer model = BinaryData.fromString( - "{\"protectableContainerType\":\"VMAppContainer\",\"friendlyName\":\"ekqsykvwjtqpkev\",\"backupManagementType\":\"Invalid\",\"healthStatus\":\"jcrspxklurcclfgx\",\"containerId\":\"n\"}") + "{\"protectableContainerType\":\"VMAppContainer\",\"friendlyName\":\"sgeafgfosehx\",\"backupManagementType\":\"AzureSql\",\"healthStatus\":\"ezppkkwaaesk\",\"containerId\":\"jlpzeqtoyrp\"}") .toObject(AzureVMAppContainerProtectableContainer.class); - Assertions.assertEquals("ekqsykvwjtqpkev", model.friendlyName()); - Assertions.assertEquals(BackupManagementType.INVALID, model.backupManagementType()); - Assertions.assertEquals("jcrspxklurcclfgx", model.healthStatus()); - Assertions.assertEquals("n", model.containerId()); + Assertions.assertEquals("sgeafgfosehx", model.friendlyName()); + Assertions.assertEquals(BackupManagementType.AZURE_SQL, model.backupManagementType()); + Assertions.assertEquals("ezppkkwaaesk", model.healthStatus()); + Assertions.assertEquals("jlpzeqtoyrp", model.containerId()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVMResourceFeatureSupportRequestTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVMResourceFeatureSupportRequestTests.java index 19fb8896c4099..5e51f4b553435 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVMResourceFeatureSupportRequestTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVMResourceFeatureSupportRequestTests.java @@ -12,19 +12,18 @@ public final class AzureVMResourceFeatureSupportRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureVMResourceFeatureSupportRequest model = BinaryData - .fromString( - "{\"featureType\":\"AzureVMResourceBackup\",\"vmSize\":\"ewijymrhbguz\",\"vmSku\":\"kyewnfnzhhhqo\"}") + .fromString("{\"featureType\":\"AzureVMResourceBackup\",\"vmSize\":\"vkiwrsiwdyjqu\",\"vmSku\":\"kcrr\"}") .toObject(AzureVMResourceFeatureSupportRequest.class); - Assertions.assertEquals("ewijymrhbguz", model.vmSize()); - Assertions.assertEquals("kyewnfnzhhhqo", model.vmSku()); + Assertions.assertEquals("vkiwrsiwdyjqu", model.vmSize()); + Assertions.assertEquals("kcrr", model.vmSku()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AzureVMResourceFeatureSupportRequest model - = new AzureVMResourceFeatureSupportRequest().withVmSize("ewijymrhbguz").withVmSku("kyewnfnzhhhqo"); + = new AzureVMResourceFeatureSupportRequest().withVmSize("vkiwrsiwdyjqu").withVmSku("kcrr"); model = BinaryData.fromObject(model).toObject(AzureVMResourceFeatureSupportRequest.class); - Assertions.assertEquals("ewijymrhbguz", model.vmSize()); - Assertions.assertEquals("kyewnfnzhhhqo", model.vmSku()); + Assertions.assertEquals("vkiwrsiwdyjqu", model.vmSize()); + Assertions.assertEquals("kcrr", model.vmSku()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVMResourceFeatureSupportResponseInnerTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVMResourceFeatureSupportResponseInnerTests.java index 0d7925c5e1c01..b9b5445052d74 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVMResourceFeatureSupportResponseInnerTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVMResourceFeatureSupportResponseInnerTests.java @@ -12,8 +12,8 @@ public final class AzureVMResourceFeatureSupportResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - AzureVMResourceFeatureSupportResponseInner model = BinaryData.fromString("{\"supportStatus\":\"DefaultON\"}") + AzureVMResourceFeatureSupportResponseInner model = BinaryData.fromString("{\"supportStatus\":\"NotSupported\"}") .toObject(AzureVMResourceFeatureSupportResponseInner.class); - Assertions.assertEquals(SupportStatus.DEFAULT_ON, model.supportStatus()); + Assertions.assertEquals(SupportStatus.NOT_SUPPORTED, model.supportStatus()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVmWorkloadItemTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVmWorkloadItemTests.java index fc8fcb147241e..201313e981dc4 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVmWorkloadItemTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVmWorkloadItemTests.java @@ -13,16 +13,16 @@ public final class AzureVmWorkloadItemTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureVmWorkloadItem model = BinaryData.fromString( - "{\"workloadItemType\":\"AzureVmWorkloadItem\",\"parentName\":\"tjuewbcihx\",\"serverName\":\"whcjyxcc\",\"isAutoProtectable\":true,\"subinquireditemcount\":436827826,\"subWorkloadItemCount\":1093154656,\"backupManagementType\":\"kudzpxgwj\",\"workloadType\":\"mag\",\"friendlyName\":\"cyohpfkyrkdbd\",\"protectionState\":\"NotProtected\"}") + "{\"workloadItemType\":\"AzureVmWorkloadItem\",\"parentName\":\"bsmswziqgf\",\"serverName\":\"okzrus\",\"isAutoProtectable\":true,\"subinquireditemcount\":1276166311,\"subWorkloadItemCount\":1112631338,\"backupManagementType\":\"vfbyc\",\"workloadType\":\"xjww\",\"friendlyName\":\"z\",\"protectionState\":\"ProtectionFailed\"}") .toObject(AzureVmWorkloadItem.class); - Assertions.assertEquals("kudzpxgwj", model.backupManagementType()); - Assertions.assertEquals("mag", model.workloadType()); - Assertions.assertEquals("cyohpfkyrkdbd", model.friendlyName()); - Assertions.assertEquals(ProtectionStatus.NOT_PROTECTED, model.protectionState()); - Assertions.assertEquals("tjuewbcihx", model.parentName()); - Assertions.assertEquals("whcjyxcc", model.serverName()); + Assertions.assertEquals("vfbyc", model.backupManagementType()); + Assertions.assertEquals("xjww", model.workloadType()); + Assertions.assertEquals("z", model.friendlyName()); + Assertions.assertEquals(ProtectionStatus.PROTECTION_FAILED, model.protectionState()); + Assertions.assertEquals("bsmswziqgf", model.parentName()); + Assertions.assertEquals("okzrus", model.serverName()); Assertions.assertTrue(model.isAutoProtectable()); - Assertions.assertEquals(436827826, model.subinquireditemcount()); - Assertions.assertEquals(1093154656, model.subWorkloadItemCount()); + Assertions.assertEquals(1276166311, model.subinquireditemcount()); + Assertions.assertEquals(1112631338, model.subWorkloadItemCount()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVmWorkloadProtectedItemExtendedInfoTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVmWorkloadProtectedItemExtendedInfoTests.java index 25c2db8703767..cb503f0461fce 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVmWorkloadProtectedItemExtendedInfoTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVmWorkloadProtectedItemExtendedInfoTests.java @@ -13,34 +13,34 @@ public final class AzureVmWorkloadProtectedItemExtendedInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureVmWorkloadProtectedItemExtendedInfo model = BinaryData.fromString( - "{\"oldestRecoveryPoint\":\"2021-11-18T07:56:25Z\",\"oldestRecoveryPointInVault\":\"2021-05-15T22:22:36Z\",\"oldestRecoveryPointInArchive\":\"2021-09-30T04:27:50Z\",\"newestRecoveryPointInArchive\":\"2020-12-26T14:51:32Z\",\"recoveryPointCount\":1040307072,\"policyState\":\"zko\",\"recoveryModel\":\"cukoklyaxuconu\"}") + "{\"oldestRecoveryPoint\":\"2021-06-06T09:38:17Z\",\"oldestRecoveryPointInVault\":\"2021-05-16T05:23:49Z\",\"oldestRecoveryPointInArchive\":\"2021-01-31T22:23:26Z\",\"newestRecoveryPointInArchive\":\"2021-03-04T13:42:29Z\",\"recoveryPointCount\":1640197955,\"policyState\":\"j\",\"recoveryModel\":\"idokgjlj\"}") .toObject(AzureVmWorkloadProtectedItemExtendedInfo.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-18T07:56:25Z"), model.oldestRecoveryPoint()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-15T22:22:36Z"), model.oldestRecoveryPointInVault()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-30T04:27:50Z"), model.oldestRecoveryPointInArchive()); - Assertions.assertEquals(OffsetDateTime.parse("2020-12-26T14:51:32Z"), model.newestRecoveryPointInArchive()); - Assertions.assertEquals(1040307072, model.recoveryPointCount()); - Assertions.assertEquals("zko", model.policyState()); - Assertions.assertEquals("cukoklyaxuconu", model.recoveryModel()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-06T09:38:17Z"), model.oldestRecoveryPoint()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-16T05:23:49Z"), model.oldestRecoveryPointInVault()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-31T22:23:26Z"), model.oldestRecoveryPointInArchive()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-04T13:42:29Z"), model.newestRecoveryPointInArchive()); + Assertions.assertEquals(1640197955, model.recoveryPointCount()); + Assertions.assertEquals("j", model.policyState()); + Assertions.assertEquals("idokgjlj", model.recoveryModel()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AzureVmWorkloadProtectedItemExtendedInfo model = new AzureVmWorkloadProtectedItemExtendedInfo() - .withOldestRecoveryPoint(OffsetDateTime.parse("2021-11-18T07:56:25Z")) - .withOldestRecoveryPointInVault(OffsetDateTime.parse("2021-05-15T22:22:36Z")) - .withOldestRecoveryPointInArchive(OffsetDateTime.parse("2021-09-30T04:27:50Z")) - .withNewestRecoveryPointInArchive(OffsetDateTime.parse("2020-12-26T14:51:32Z")) - .withRecoveryPointCount(1040307072) - .withPolicyState("zko") - .withRecoveryModel("cukoklyaxuconu"); + .withOldestRecoveryPoint(OffsetDateTime.parse("2021-06-06T09:38:17Z")) + .withOldestRecoveryPointInVault(OffsetDateTime.parse("2021-05-16T05:23:49Z")) + .withOldestRecoveryPointInArchive(OffsetDateTime.parse("2021-01-31T22:23:26Z")) + .withNewestRecoveryPointInArchive(OffsetDateTime.parse("2021-03-04T13:42:29Z")) + .withRecoveryPointCount(1640197955) + .withPolicyState("j") + .withRecoveryModel("idokgjlj"); model = BinaryData.fromObject(model).toObject(AzureVmWorkloadProtectedItemExtendedInfo.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-18T07:56:25Z"), model.oldestRecoveryPoint()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-15T22:22:36Z"), model.oldestRecoveryPointInVault()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-30T04:27:50Z"), model.oldestRecoveryPointInArchive()); - Assertions.assertEquals(OffsetDateTime.parse("2020-12-26T14:51:32Z"), model.newestRecoveryPointInArchive()); - Assertions.assertEquals(1040307072, model.recoveryPointCount()); - Assertions.assertEquals("zko", model.policyState()); - Assertions.assertEquals("cukoklyaxuconu", model.recoveryModel()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-06T09:38:17Z"), model.oldestRecoveryPoint()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-16T05:23:49Z"), model.oldestRecoveryPointInVault()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-31T22:23:26Z"), model.oldestRecoveryPointInArchive()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-04T13:42:29Z"), model.newestRecoveryPointInArchive()); + Assertions.assertEquals(1640197955, model.recoveryPointCount()); + Assertions.assertEquals("j", model.policyState()); + Assertions.assertEquals("idokgjlj", model.recoveryModel()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVmWorkloadProtectionPolicyTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVmWorkloadProtectionPolicyTests.java index a81420e844c52..d85731466a9b2 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVmWorkloadProtectionPolicyTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVmWorkloadProtectionPolicyTests.java @@ -17,6 +17,7 @@ import com.azure.resourcemanager.recoveryservicesbackup.models.TieringPolicy; import com.azure.resourcemanager.recoveryservicesbackup.models.UserAssignedIdentityProperties; import com.azure.resourcemanager.recoveryservicesbackup.models.UserAssignedManagedIdentityDetails; +import com.azure.resourcemanager.recoveryservicesbackup.models.VMWorkloadPolicyType; import com.azure.resourcemanager.recoveryservicesbackup.models.WorkloadType; import java.util.Arrays; import java.util.HashMap; @@ -27,45 +28,45 @@ public final class AzureVmWorkloadProtectionPolicyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureVmWorkloadProtectionPolicy model = BinaryData.fromString( - "{\"backupManagementType\":\"AzureWorkload\",\"workLoadType\":\"SAPAseDatabase\",\"settings\":{\"timeZone\":\"hdjhhflz\",\"issqlcompression\":true,\"isCompression\":false},\"subProtectionPolicy\":[{\"policyType\":\"CopyOnlyFull\",\"schedulePolicy\":{\"schedulePolicyType\":\"SchedulePolicy\"},\"retentionPolicy\":{\"retentionPolicyType\":\"RetentionPolicy\"},\"tieringPolicy\":{\"oatftgzpnpbswvef\":{\"tieringMode\":\"TierRecommended\",\"duration\":502894547,\"durationType\":\"Days\"}},\"snapshotBackupAdditionalDetails\":{\"instantRpRetentionRangeInDays\":302338769,\"instantRPDetails\":\"rmozihmipgawt\",\"userAssignedManagedIdentityDetails\":{\"identityArmId\":\"ky\",\"identityName\":\"xcjxgrytfmpcy\",\"userAssignedIdentityProperties\":{\"clientId\":\"rmcaykgg\",\"principalId\":\"xu\"}}}},{\"policyType\":\"CopyOnlyFull\",\"schedulePolicy\":{\"schedulePolicyType\":\"SchedulePolicy\"},\"retentionPolicy\":{\"retentionPolicyType\":\"RetentionPolicy\"},\"tieringPolicy\":{\"fnznth\":{\"tieringMode\":\"TierRecommended\",\"duration\":29504887,\"durationType\":\"Days\"}},\"snapshotBackupAdditionalDetails\":{\"instantRpRetentionRangeInDays\":417005856,\"instantRPDetails\":\"aosrxuz\",\"userAssignedManagedIdentityDetails\":{\"identityArmId\":\"mktcqiosmgbza\",\"identityName\":\"xqdlyrtltlapr\",\"userAssignedIdentityProperties\":{\"clientId\":\"katbhjm\",\"principalId\":\"nbsoqeqalarv\"}}}},{\"policyType\":\"SnapshotFull\",\"schedulePolicy\":{\"schedulePolicyType\":\"SchedulePolicy\"},\"retentionPolicy\":{\"retentionPolicyType\":\"RetentionPolicy\"},\"tieringPolicy\":{\"nbmhyree\":{\"tieringMode\":\"DoNotTier\",\"duration\":860612333,\"durationType\":\"Invalid\"},\"pdqmjxlyyzglgouw\":{\"tieringMode\":\"TierAfter\",\"duration\":427882084,\"durationType\":\"Months\"}},\"snapshotBackupAdditionalDetails\":{\"instantRpRetentionRangeInDays\":824246540,\"instantRPDetails\":\"yuojqtobaxk\",\"userAssignedManagedIdentityDetails\":{\"identityArmId\":\"tu\",\"identityName\":\"bfjkw\",\"userAssignedIdentityProperties\":{\"clientId\":\"nkqbhsyrq\",\"principalId\":\"jqhden\"}}}}],\"makePolicyConsistent\":false,\"protectedItemsCount\":1073438207,\"resourceGuardOperationRequests\":[\"kdk\",\"fmjnnawtqa\",\"pxuckpggq\",\"wey\"]}") + "{\"backupManagementType\":\"AzureWorkload\",\"workLoadType\":\"SQLInstance\",\"vmWorkloadPolicyType\":\"Invalid\",\"settings\":{\"timeZone\":\"oaiancznvodrrs\",\"issqlcompression\":true,\"isCompression\":false},\"subProtectionPolicy\":[{\"policyType\":\"Log\",\"schedulePolicy\":{\"schedulePolicyType\":\"SchedulePolicy\"},\"retentionPolicy\":{\"retentionPolicyType\":\"RetentionPolicy\"},\"tieringPolicy\":{\"bqlj\":{\"tieringMode\":\"TierAfter\",\"duration\":911130137,\"durationType\":\"Months\"},\"ocokule\":{\"tieringMode\":\"DoNotTier\",\"duration\":1041753015,\"durationType\":\"Days\"},\"ffaweyur\":{\"tieringMode\":\"TierAfter\",\"duration\":1169307081,\"durationType\":\"Months\"}},\"snapshotBackupAdditionalDetails\":{\"instantRpRetentionRangeInDays\":53244063,\"instantRPDetails\":\"dxravj\",\"userAssignedManagedIdentityDetails\":{\"identityArmId\":\"brxmrgch\",\"identityName\":\"pxkiyf\",\"userAssignedIdentityProperties\":{\"clientId\":\"bajbuscgduusi\",\"principalId\":\"cblevpmc\"}}}}],\"makePolicyConsistent\":false,\"protectedItemsCount\":1886598268,\"resourceGuardOperationRequests\":[\"xlzgsjgkzzl\",\"afhbzf\"]}") .toObject(AzureVmWorkloadProtectionPolicy.class); - Assertions.assertEquals(1073438207, model.protectedItemsCount()); - Assertions.assertEquals("kdk", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals(WorkloadType.SAPASE_DATABASE, model.workLoadType()); - Assertions.assertEquals("hdjhhflz", model.settings().timeZone()); + Assertions.assertEquals(1886598268, model.protectedItemsCount()); + Assertions.assertEquals("xlzgsjgkzzl", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals(WorkloadType.SQLINSTANCE, model.workLoadType()); + Assertions.assertEquals(VMWorkloadPolicyType.INVALID, model.vmWorkloadPolicyType()); + Assertions.assertEquals("oaiancznvodrrs", model.settings().timeZone()); Assertions.assertTrue(model.settings().issqlcompression()); Assertions.assertFalse(model.settings().isCompression()); - Assertions.assertEquals(PolicyType.COPY_ONLY_FULL, model.subProtectionPolicy().get(0).policyType()); - Assertions.assertEquals(TieringMode.TIER_RECOMMENDED, - model.subProtectionPolicy().get(0).tieringPolicy().get("oatftgzpnpbswvef").tieringMode()); - Assertions.assertEquals(502894547, - model.subProtectionPolicy().get(0).tieringPolicy().get("oatftgzpnpbswvef").duration()); - Assertions.assertEquals(RetentionDurationType.DAYS, - model.subProtectionPolicy().get(0).tieringPolicy().get("oatftgzpnpbswvef").durationType()); - Assertions.assertEquals(302338769, + Assertions.assertEquals(PolicyType.LOG, model.subProtectionPolicy().get(0).policyType()); + Assertions.assertEquals(TieringMode.TIER_AFTER, + model.subProtectionPolicy().get(0).tieringPolicy().get("bqlj").tieringMode()); + Assertions.assertEquals(911130137, model.subProtectionPolicy().get(0).tieringPolicy().get("bqlj").duration()); + Assertions.assertEquals(RetentionDurationType.MONTHS, + model.subProtectionPolicy().get(0).tieringPolicy().get("bqlj").durationType()); + Assertions.assertEquals(53244063, model.subProtectionPolicy().get(0).snapshotBackupAdditionalDetails().instantRpRetentionRangeInDays()); - Assertions.assertEquals("rmozihmipgawt", + Assertions.assertEquals("dxravj", model.subProtectionPolicy().get(0).snapshotBackupAdditionalDetails().instantRPDetails()); - Assertions.assertEquals("ky", + Assertions.assertEquals("brxmrgch", model.subProtectionPolicy() .get(0) .snapshotBackupAdditionalDetails() .userAssignedManagedIdentityDetails() .identityArmId()); - Assertions.assertEquals("xcjxgrytfmpcy", + Assertions.assertEquals("pxkiyf", model.subProtectionPolicy() .get(0) .snapshotBackupAdditionalDetails() .userAssignedManagedIdentityDetails() .identityName()); - Assertions.assertEquals("rmcaykgg", + Assertions.assertEquals("bajbuscgduusi", model.subProtectionPolicy() .get(0) .snapshotBackupAdditionalDetails() .userAssignedManagedIdentityDetails() .userAssignedIdentityProperties() .clientId()); - Assertions.assertEquals("xu", + Assertions.assertEquals("cblevpmc", model.subProtectionPolicy() .get(0) .snapshotBackupAdditionalDetails() @@ -77,102 +78,76 @@ public void testDeserialize() throws Exception { @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AzureVmWorkloadProtectionPolicy model = new AzureVmWorkloadProtectionPolicy() - .withProtectedItemsCount(1073438207) - .withResourceGuardOperationRequests(Arrays.asList("kdk", "fmjnnawtqa", "pxuckpggq", "wey")) - .withWorkLoadType(WorkloadType.SAPASE_DATABASE) - .withSettings(new Settings().withTimeZone("hdjhhflz").withIssqlcompression(true).withIsCompression(false)) - .withSubProtectionPolicy(Arrays.asList( - new SubProtectionPolicy().withPolicyType(PolicyType.COPY_ONLY_FULL) + AzureVmWorkloadProtectionPolicy model + = new AzureVmWorkloadProtectionPolicy().withProtectedItemsCount(1886598268) + .withResourceGuardOperationRequests(Arrays.asList("xlzgsjgkzzl", "afhbzf")) + .withWorkLoadType(WorkloadType.SQLINSTANCE) + .withVmWorkloadPolicyType(VMWorkloadPolicyType.INVALID) + .withSettings( + new Settings().withTimeZone("oaiancznvodrrs").withIssqlcompression(true).withIsCompression(false)) + .withSubProtectionPolicy(Arrays.asList(new SubProtectionPolicy().withPolicyType(PolicyType.LOG) .withSchedulePolicy(new SchedulePolicy()) .withRetentionPolicy(new RetentionPolicy()) - .withTieringPolicy(mapOf("oatftgzpnpbswvef", - new TieringPolicy().withTieringMode(TieringMode.TIER_RECOMMENDED) - .withDuration(502894547) - .withDurationType(RetentionDurationType.DAYS))) - .withSnapshotBackupAdditionalDetails(new SnapshotBackupAdditionalDetails() - .withInstantRpRetentionRangeInDays(302338769) - .withInstantRPDetails("rmozihmipgawt") - .withUserAssignedManagedIdentityDetails(new UserAssignedManagedIdentityDetails() - .withIdentityArmId("ky") - .withIdentityName("xcjxgrytfmpcy") - .withUserAssignedIdentityProperties( - new UserAssignedIdentityProperties().withClientId("rmcaykgg").withPrincipalId("xu")))), - new SubProtectionPolicy().withPolicyType(PolicyType.COPY_ONLY_FULL) - .withSchedulePolicy(new SchedulePolicy()) - .withRetentionPolicy(new RetentionPolicy()) - .withTieringPolicy(mapOf("fnznth", - new TieringPolicy().withTieringMode(TieringMode.TIER_RECOMMENDED) - .withDuration(29504887) - .withDurationType(RetentionDurationType.DAYS))) - .withSnapshotBackupAdditionalDetails( - new SnapshotBackupAdditionalDetails().withInstantRpRetentionRangeInDays(417005856) - .withInstantRPDetails("aosrxuz") - .withUserAssignedManagedIdentityDetails( - new UserAssignedManagedIdentityDetails().withIdentityArmId("mktcqiosmgbza") - .withIdentityName("xqdlyrtltlapr") - .withUserAssignedIdentityProperties(new UserAssignedIdentityProperties() - .withClientId("katbhjm") - .withPrincipalId("nbsoqeqalarv")))), - new SubProtectionPolicy().withPolicyType(PolicyType.SNAPSHOT_FULL) - .withSchedulePolicy(new SchedulePolicy()) - .withRetentionPolicy(new RetentionPolicy()) - .withTieringPolicy(mapOf("nbmhyree", + .withTieringPolicy(mapOf("bqlj", + new TieringPolicy().withTieringMode(TieringMode.TIER_AFTER) + .withDuration(911130137) + .withDurationType(RetentionDurationType.MONTHS), + "ocokule", new TieringPolicy().withTieringMode(TieringMode.DO_NOT_TIER) - .withDuration(860612333) - .withDurationType(RetentionDurationType.INVALID), - "pdqmjxlyyzglgouw", + .withDuration(1041753015) + .withDurationType(RetentionDurationType.DAYS), + "ffaweyur", new TieringPolicy().withTieringMode(TieringMode.TIER_AFTER) - .withDuration(427882084) + .withDuration(1169307081) .withDurationType(RetentionDurationType.MONTHS))) .withSnapshotBackupAdditionalDetails( - new SnapshotBackupAdditionalDetails().withInstantRpRetentionRangeInDays(824246540) - .withInstantRPDetails("yuojqtobaxk") + new SnapshotBackupAdditionalDetails().withInstantRpRetentionRangeInDays(53244063) + .withInstantRPDetails("dxravj") .withUserAssignedManagedIdentityDetails( - new UserAssignedManagedIdentityDetails().withIdentityArmId("tu") - .withIdentityName("bfjkw") + new UserAssignedManagedIdentityDetails().withIdentityArmId("brxmrgch") + .withIdentityName("pxkiyf") .withUserAssignedIdentityProperties( - new UserAssignedIdentityProperties().withClientId("nkqbhsyrq") - .withPrincipalId("jqhden")))))) - .withMakePolicyConsistent(false); + new UserAssignedIdentityProperties().withClientId("bajbuscgduusi") + .withPrincipalId("cblevpmc")))))) + .withMakePolicyConsistent(false); model = BinaryData.fromObject(model).toObject(AzureVmWorkloadProtectionPolicy.class); - Assertions.assertEquals(1073438207, model.protectedItemsCount()); - Assertions.assertEquals("kdk", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals(WorkloadType.SAPASE_DATABASE, model.workLoadType()); - Assertions.assertEquals("hdjhhflz", model.settings().timeZone()); + Assertions.assertEquals(1886598268, model.protectedItemsCount()); + Assertions.assertEquals("xlzgsjgkzzl", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals(WorkloadType.SQLINSTANCE, model.workLoadType()); + Assertions.assertEquals(VMWorkloadPolicyType.INVALID, model.vmWorkloadPolicyType()); + Assertions.assertEquals("oaiancznvodrrs", model.settings().timeZone()); Assertions.assertTrue(model.settings().issqlcompression()); Assertions.assertFalse(model.settings().isCompression()); - Assertions.assertEquals(PolicyType.COPY_ONLY_FULL, model.subProtectionPolicy().get(0).policyType()); - Assertions.assertEquals(TieringMode.TIER_RECOMMENDED, - model.subProtectionPolicy().get(0).tieringPolicy().get("oatftgzpnpbswvef").tieringMode()); - Assertions.assertEquals(502894547, - model.subProtectionPolicy().get(0).tieringPolicy().get("oatftgzpnpbswvef").duration()); - Assertions.assertEquals(RetentionDurationType.DAYS, - model.subProtectionPolicy().get(0).tieringPolicy().get("oatftgzpnpbswvef").durationType()); - Assertions.assertEquals(302338769, + Assertions.assertEquals(PolicyType.LOG, model.subProtectionPolicy().get(0).policyType()); + Assertions.assertEquals(TieringMode.TIER_AFTER, + model.subProtectionPolicy().get(0).tieringPolicy().get("bqlj").tieringMode()); + Assertions.assertEquals(911130137, model.subProtectionPolicy().get(0).tieringPolicy().get("bqlj").duration()); + Assertions.assertEquals(RetentionDurationType.MONTHS, + model.subProtectionPolicy().get(0).tieringPolicy().get("bqlj").durationType()); + Assertions.assertEquals(53244063, model.subProtectionPolicy().get(0).snapshotBackupAdditionalDetails().instantRpRetentionRangeInDays()); - Assertions.assertEquals("rmozihmipgawt", + Assertions.assertEquals("dxravj", model.subProtectionPolicy().get(0).snapshotBackupAdditionalDetails().instantRPDetails()); - Assertions.assertEquals("ky", + Assertions.assertEquals("brxmrgch", model.subProtectionPolicy() .get(0) .snapshotBackupAdditionalDetails() .userAssignedManagedIdentityDetails() .identityArmId()); - Assertions.assertEquals("xcjxgrytfmpcy", + Assertions.assertEquals("pxkiyf", model.subProtectionPolicy() .get(0) .snapshotBackupAdditionalDetails() .userAssignedManagedIdentityDetails() .identityName()); - Assertions.assertEquals("rmcaykgg", + Assertions.assertEquals("bajbuscgduusi", model.subProtectionPolicy() .get(0) .snapshotBackupAdditionalDetails() .userAssignedManagedIdentityDetails() .userAssignedIdentityProperties() .clientId()); - Assertions.assertEquals("xu", + Assertions.assertEquals("cblevpmc", model.subProtectionPolicy() .get(0) .snapshotBackupAdditionalDetails() diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVmWorkloadSapAseDatabaseWorkloadItemTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVmWorkloadSapAseDatabaseWorkloadItemTests.java index 2631db1a418ef..9956b1dfa6720 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVmWorkloadSapAseDatabaseWorkloadItemTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVmWorkloadSapAseDatabaseWorkloadItemTests.java @@ -13,16 +13,16 @@ public final class AzureVmWorkloadSapAseDatabaseWorkloadItemTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureVmWorkloadSapAseDatabaseWorkloadItem model = BinaryData.fromString( - "{\"workloadItemType\":\"SAPAseDatabase\",\"parentName\":\"sjkmnwqj\",\"serverName\":\"baiyhddviaceg\",\"isAutoProtectable\":false,\"subinquireditemcount\":1471640459,\"subWorkloadItemCount\":1554775027,\"backupManagementType\":\"vm\",\"workloadType\":\"fnczdwvvbalx\",\"friendlyName\":\"lchpodbzevwrdn\",\"protectionState\":\"Protecting\"}") + "{\"workloadItemType\":\"SAPAseDatabase\",\"parentName\":\"mxqhndvnoamldse\",\"serverName\":\"ohdjhhflzok\",\"isAutoProtectable\":false,\"subinquireditemcount\":94741475,\"subWorkloadItemCount\":220709617,\"backupManagementType\":\"jetagltsxoatft\",\"workloadType\":\"pnpbswveflocc\",\"friendlyName\":\"mozi\",\"protectionState\":\"Invalid\"}") .toObject(AzureVmWorkloadSapAseDatabaseWorkloadItem.class); - Assertions.assertEquals("vm", model.backupManagementType()); - Assertions.assertEquals("fnczdwvvbalx", model.workloadType()); - Assertions.assertEquals("lchpodbzevwrdn", model.friendlyName()); - Assertions.assertEquals(ProtectionStatus.PROTECTING, model.protectionState()); - Assertions.assertEquals("sjkmnwqj", model.parentName()); - Assertions.assertEquals("baiyhddviaceg", model.serverName()); + Assertions.assertEquals("jetagltsxoatft", model.backupManagementType()); + Assertions.assertEquals("pnpbswveflocc", model.workloadType()); + Assertions.assertEquals("mozi", model.friendlyName()); + Assertions.assertEquals(ProtectionStatus.INVALID, model.protectionState()); + Assertions.assertEquals("mxqhndvnoamldse", model.parentName()); + Assertions.assertEquals("ohdjhhflzok", model.serverName()); Assertions.assertFalse(model.isAutoProtectable()); - Assertions.assertEquals(1471640459, model.subinquireditemcount()); - Assertions.assertEquals(1554775027, model.subWorkloadItemCount()); + Assertions.assertEquals(94741475, model.subinquireditemcount()); + Assertions.assertEquals(220709617, model.subWorkloadItemCount()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVmWorkloadSapAseSystemWorkloadItemTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVmWorkloadSapAseSystemWorkloadItemTests.java index 434ce1d276605..72f387ec92e3a 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVmWorkloadSapAseSystemWorkloadItemTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVmWorkloadSapAseSystemWorkloadItemTests.java @@ -13,16 +13,16 @@ public final class AzureVmWorkloadSapAseSystemWorkloadItemTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureVmWorkloadSapAseSystemWorkloadItem model = BinaryData.fromString( - "{\"workloadItemType\":\"SAPAseSystem\",\"parentName\":\"uvsj\",\"serverName\":\"wsmystuluqypf\",\"isAutoProtectable\":false,\"subinquireditemcount\":1961794573,\"subWorkloadItemCount\":335634108,\"backupManagementType\":\"qbmfpjbabwidf\",\"workloadType\":\"sspuunnoxyhkx\",\"friendlyName\":\"ddrihpf\",\"protectionState\":\"Invalid\"}") + "{\"workloadItemType\":\"SAPAseSystem\",\"parentName\":\"g\",\"serverName\":\"txx\",\"isAutoProtectable\":false,\"subinquireditemcount\":2059766507,\"subWorkloadItemCount\":2035831454,\"backupManagementType\":\"xgrytfmp\",\"workloadType\":\"cil\",\"friendlyName\":\"caykggnoxuz\",\"protectionState\":\"Protecting\"}") .toObject(AzureVmWorkloadSapAseSystemWorkloadItem.class); - Assertions.assertEquals("qbmfpjbabwidf", model.backupManagementType()); - Assertions.assertEquals("sspuunnoxyhkx", model.workloadType()); - Assertions.assertEquals("ddrihpf", model.friendlyName()); - Assertions.assertEquals(ProtectionStatus.INVALID, model.protectionState()); - Assertions.assertEquals("uvsj", model.parentName()); - Assertions.assertEquals("wsmystuluqypf", model.serverName()); + Assertions.assertEquals("xgrytfmp", model.backupManagementType()); + Assertions.assertEquals("cil", model.workloadType()); + Assertions.assertEquals("caykggnoxuz", model.friendlyName()); + Assertions.assertEquals(ProtectionStatus.PROTECTING, model.protectionState()); + Assertions.assertEquals("g", model.parentName()); + Assertions.assertEquals("txx", model.serverName()); Assertions.assertFalse(model.isAutoProtectable()); - Assertions.assertEquals(1961794573, model.subinquireditemcount()); - Assertions.assertEquals(335634108, model.subWorkloadItemCount()); + Assertions.assertEquals(2059766507, model.subinquireditemcount()); + Assertions.assertEquals(2035831454, model.subWorkloadItemCount()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVmWorkloadSapHanaDatabaseWorkloadItemTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVmWorkloadSapHanaDatabaseWorkloadItemTests.java index 8abf402906aa1..d3ac4992cf9c0 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVmWorkloadSapHanaDatabaseWorkloadItemTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVmWorkloadSapHanaDatabaseWorkloadItemTests.java @@ -13,16 +13,16 @@ public final class AzureVmWorkloadSapHanaDatabaseWorkloadItemTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureVmWorkloadSapHanaDatabaseWorkloadItem model = BinaryData.fromString( - "{\"workloadItemType\":\"SAPHanaDatabase\",\"parentName\":\"aaewdaomdjv\",\"serverName\":\"jxxkzbrmsgei\",\"isAutoProtectable\":true,\"subinquireditemcount\":1129591709,\"subWorkloadItemCount\":1299849927,\"backupManagementType\":\"ncj\",\"workloadType\":\"onbzoggculapzwy\",\"friendlyName\":\"gogtqxepnylbf\",\"protectionState\":\"Invalid\"}") + "{\"workloadItemType\":\"SAPHanaDatabase\",\"parentName\":\"xwpndfcpf\",\"serverName\":\"nthjtwkjaosrxuzv\",\"isAutoProtectable\":true,\"subinquireditemcount\":2141444105,\"subWorkloadItemCount\":192597448,\"backupManagementType\":\"os\",\"workloadType\":\"bzahgxqd\",\"friendlyName\":\"rtltla\",\"protectionState\":\"Protected\"}") .toObject(AzureVmWorkloadSapHanaDatabaseWorkloadItem.class); - Assertions.assertEquals("ncj", model.backupManagementType()); - Assertions.assertEquals("onbzoggculapzwy", model.workloadType()); - Assertions.assertEquals("gogtqxepnylbf", model.friendlyName()); - Assertions.assertEquals(ProtectionStatus.INVALID, model.protectionState()); - Assertions.assertEquals("aaewdaomdjv", model.parentName()); - Assertions.assertEquals("jxxkzbrmsgei", model.serverName()); + Assertions.assertEquals("os", model.backupManagementType()); + Assertions.assertEquals("bzahgxqd", model.workloadType()); + Assertions.assertEquals("rtltla", model.friendlyName()); + Assertions.assertEquals(ProtectionStatus.PROTECTED, model.protectionState()); + Assertions.assertEquals("xwpndfcpf", model.parentName()); + Assertions.assertEquals("nthjtwkjaosrxuzv", model.serverName()); Assertions.assertTrue(model.isAutoProtectable()); - Assertions.assertEquals(1129591709, model.subinquireditemcount()); - Assertions.assertEquals(1299849927, model.subWorkloadItemCount()); + Assertions.assertEquals(2141444105, model.subinquireditemcount()); + Assertions.assertEquals(192597448, model.subWorkloadItemCount()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVmWorkloadSapHanaSystemWorkloadItemTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVmWorkloadSapHanaSystemWorkloadItemTests.java index 04c95815c9cdc..077292486920a 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVmWorkloadSapHanaSystemWorkloadItemTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVmWorkloadSapHanaSystemWorkloadItemTests.java @@ -13,16 +13,16 @@ public final class AzureVmWorkloadSapHanaSystemWorkloadItemTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureVmWorkloadSapHanaSystemWorkloadItem model = BinaryData.fromString( - "{\"workloadItemType\":\"SAPHanaSystem\",\"parentName\":\"yjt\",\"serverName\":\"of\",\"isAutoProtectable\":true,\"subinquireditemcount\":1407902982,\"subWorkloadItemCount\":1580266173,\"backupManagementType\":\"yfm\",\"workloadType\":\"uxrkjp\",\"friendlyName\":\"w\",\"protectionState\":\"ProtectionFailed\"}") + "{\"workloadItemType\":\"SAPHanaSystem\",\"parentName\":\"zkatb\",\"serverName\":\"mznnbsoqeqalarvl\",\"isAutoProtectable\":false,\"subinquireditemcount\":1544125726,\"subWorkloadItemCount\":2144619087,\"backupManagementType\":\"ebwlnbmhyreeudzq\",\"workloadType\":\"bpdqmjxlyy\",\"friendlyName\":\"lgouwtlmjj\",\"protectionState\":\"ProtectionFailed\"}") .toObject(AzureVmWorkloadSapHanaSystemWorkloadItem.class); - Assertions.assertEquals("yfm", model.backupManagementType()); - Assertions.assertEquals("uxrkjp", model.workloadType()); - Assertions.assertEquals("w", model.friendlyName()); + Assertions.assertEquals("ebwlnbmhyreeudzq", model.backupManagementType()); + Assertions.assertEquals("bpdqmjxlyy", model.workloadType()); + Assertions.assertEquals("lgouwtlmjj", model.friendlyName()); Assertions.assertEquals(ProtectionStatus.PROTECTION_FAILED, model.protectionState()); - Assertions.assertEquals("yjt", model.parentName()); - Assertions.assertEquals("of", model.serverName()); - Assertions.assertTrue(model.isAutoProtectable()); - Assertions.assertEquals(1407902982, model.subinquireditemcount()); - Assertions.assertEquals(1580266173, model.subWorkloadItemCount()); + Assertions.assertEquals("zkatb", model.parentName()); + Assertions.assertEquals("mznnbsoqeqalarvl", model.serverName()); + Assertions.assertFalse(model.isAutoProtectable()); + Assertions.assertEquals(1544125726, model.subinquireditemcount()); + Assertions.assertEquals(2144619087, model.subWorkloadItemCount()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVmWorkloadSqlDatabaseWorkloadItemTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVmWorkloadSqlDatabaseWorkloadItemTests.java index ac0ecc0207b5a..e4f013148734d 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVmWorkloadSqlDatabaseWorkloadItemTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVmWorkloadSqlDatabaseWorkloadItemTests.java @@ -13,16 +13,16 @@ public final class AzureVmWorkloadSqlDatabaseWorkloadItemTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureVmWorkloadSqlDatabaseWorkloadItem model = BinaryData.fromString( - "{\"workloadItemType\":\"SQLDataBase\",\"parentName\":\"iivwzjbhyzsxjrka\",\"serverName\":\"trnegvmnvuqeqvld\",\"isAutoProtectable\":true,\"subinquireditemcount\":608775789,\"subWorkloadItemCount\":900352978,\"backupManagementType\":\"kdmflvestmjlx\",\"workloadType\":\"ilozapeewchpxlk\",\"friendlyName\":\"kuziycsle\",\"protectionState\":\"Protected\"}") + "{\"workloadItemType\":\"SQLDataBase\",\"parentName\":\"qtobaxkjeyt\",\"serverName\":\"lbfjkwr\",\"isAutoProtectable\":true,\"subinquireditemcount\":1630715289,\"subWorkloadItemCount\":2127509542,\"backupManagementType\":\"y\",\"workloadType\":\"unjqh\",\"friendlyName\":\"nxaulk\",\"protectionState\":\"Invalid\"}") .toObject(AzureVmWorkloadSqlDatabaseWorkloadItem.class); - Assertions.assertEquals("kdmflvestmjlx", model.backupManagementType()); - Assertions.assertEquals("ilozapeewchpxlk", model.workloadType()); - Assertions.assertEquals("kuziycsle", model.friendlyName()); - Assertions.assertEquals(ProtectionStatus.PROTECTED, model.protectionState()); - Assertions.assertEquals("iivwzjbhyzsxjrka", model.parentName()); - Assertions.assertEquals("trnegvmnvuqeqvld", model.serverName()); + Assertions.assertEquals("y", model.backupManagementType()); + Assertions.assertEquals("unjqh", model.workloadType()); + Assertions.assertEquals("nxaulk", model.friendlyName()); + Assertions.assertEquals(ProtectionStatus.INVALID, model.protectionState()); + Assertions.assertEquals("qtobaxkjeyt", model.parentName()); + Assertions.assertEquals("lbfjkwr", model.serverName()); Assertions.assertTrue(model.isAutoProtectable()); - Assertions.assertEquals(608775789, model.subinquireditemcount()); - Assertions.assertEquals(900352978, model.subWorkloadItemCount()); + Assertions.assertEquals(1630715289, model.subinquireditemcount()); + Assertions.assertEquals(2127509542, model.subWorkloadItemCount()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVmWorkloadSqlInstanceWorkloadItemTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVmWorkloadSqlInstanceWorkloadItemTests.java index 7f72e29404504..ea7ddc3e9d673 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVmWorkloadSqlInstanceWorkloadItemTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureVmWorkloadSqlInstanceWorkloadItemTests.java @@ -14,19 +14,19 @@ public final class AzureVmWorkloadSqlInstanceWorkloadItemTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureVmWorkloadSqlInstanceWorkloadItem model = BinaryData.fromString( - "{\"workloadItemType\":\"SQLInstance\",\"dataDirectoryPaths\":[{\"type\":\"Invalid\",\"path\":\"tyh\",\"logicalName\":\"qedcgzulwm\"},{\"type\":\"Log\",\"path\":\"zrrjvpgly\",\"logicalName\":\"gkrvqeevto\"}],\"parentName\":\"r\",\"serverName\":\"t\",\"isAutoProtectable\":false,\"subinquireditemcount\":989782858,\"subWorkloadItemCount\":20343154,\"backupManagementType\":\"o\",\"workloadType\":\"vf\",\"friendlyName\":\"awzqadfl\",\"protectionState\":\"Protecting\"}") + "{\"workloadItemType\":\"SQLInstance\",\"dataDirectoryPaths\":[{\"type\":\"Log\",\"path\":\"jnnawtqa\",\"logicalName\":\"xuckpggqoweyir\"},{\"type\":\"Log\",\"path\":\"sn\",\"logicalName\":\"fl\"}],\"parentName\":\"mpizru\",\"serverName\":\"pqxpx\",\"isAutoProtectable\":false,\"subinquireditemcount\":2135849980,\"subWorkloadItemCount\":744816761,\"backupManagementType\":\"aas\",\"workloadType\":\"xtmkzjvkviir\",\"friendlyName\":\"fgrwsdpgratzvz\",\"protectionState\":\"Invalid\"}") .toObject(AzureVmWorkloadSqlInstanceWorkloadItem.class); - Assertions.assertEquals("o", model.backupManagementType()); - Assertions.assertEquals("vf", model.workloadType()); - Assertions.assertEquals("awzqadfl", model.friendlyName()); - Assertions.assertEquals(ProtectionStatus.PROTECTING, model.protectionState()); - Assertions.assertEquals("r", model.parentName()); - Assertions.assertEquals("t", model.serverName()); + Assertions.assertEquals("aas", model.backupManagementType()); + Assertions.assertEquals("xtmkzjvkviir", model.workloadType()); + Assertions.assertEquals("fgrwsdpgratzvz", model.friendlyName()); + Assertions.assertEquals(ProtectionStatus.INVALID, model.protectionState()); + Assertions.assertEquals("mpizru", model.parentName()); + Assertions.assertEquals("pqxpx", model.serverName()); Assertions.assertFalse(model.isAutoProtectable()); - Assertions.assertEquals(989782858, model.subinquireditemcount()); - Assertions.assertEquals(20343154, model.subWorkloadItemCount()); - Assertions.assertEquals(SqlDataDirectoryType.INVALID, model.dataDirectoryPaths().get(0).type()); - Assertions.assertEquals("tyh", model.dataDirectoryPaths().get(0).path()); - Assertions.assertEquals("qedcgzulwm", model.dataDirectoryPaths().get(0).logicalName()); + Assertions.assertEquals(2135849980, model.subinquireditemcount()); + Assertions.assertEquals(744816761, model.subWorkloadItemCount()); + Assertions.assertEquals(SqlDataDirectoryType.LOG, model.dataDirectoryPaths().get(0).type()); + Assertions.assertEquals("jnnawtqa", model.dataDirectoryPaths().get(0).path()); + Assertions.assertEquals("xuckpggqoweyir", model.dataDirectoryPaths().get(0).logicalName()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadAutoProtectionIntentTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadAutoProtectionIntentTests.java index 2edfa15af158b..9ee005334de6e 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadAutoProtectionIntentTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadAutoProtectionIntentTests.java @@ -14,28 +14,28 @@ public final class AzureWorkloadAutoProtectionIntentTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureWorkloadAutoProtectionIntent model = BinaryData.fromString( - "{\"protectionIntentItemType\":\"AzureWorkloadAutoProtectionIntent\",\"backupManagementType\":\"DefaultBackup\",\"sourceResourceId\":\"w\",\"itemId\":\"vgmmbugtyw\",\"policyId\":\"mqaqkueatgroes\",\"protectionState\":\"NotProtected\"}") + "{\"protectionIntentItemType\":\"AzureWorkloadAutoProtectionIntent\",\"backupManagementType\":\"Invalid\",\"sourceResourceId\":\"zacvu\",\"itemId\":\"pjpbibnzpp\",\"policyId\":\"pife\",\"protectionState\":\"Protecting\"}") .toObject(AzureWorkloadAutoProtectionIntent.class); - Assertions.assertEquals(BackupManagementType.DEFAULT_BACKUP, model.backupManagementType()); - Assertions.assertEquals("w", model.sourceResourceId()); - Assertions.assertEquals("vgmmbugtyw", model.itemId()); - Assertions.assertEquals("mqaqkueatgroes", model.policyId()); - Assertions.assertEquals(ProtectionStatus.NOT_PROTECTED, model.protectionState()); + Assertions.assertEquals(BackupManagementType.INVALID, model.backupManagementType()); + Assertions.assertEquals("zacvu", model.sourceResourceId()); + Assertions.assertEquals("pjpbibnzpp", model.itemId()); + Assertions.assertEquals("pife", model.policyId()); + Assertions.assertEquals(ProtectionStatus.PROTECTING, model.protectionState()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AzureWorkloadAutoProtectionIntent model - = new AzureWorkloadAutoProtectionIntent().withBackupManagementType(BackupManagementType.DEFAULT_BACKUP) - .withSourceResourceId("w") - .withItemId("vgmmbugtyw") - .withPolicyId("mqaqkueatgroes") - .withProtectionState(ProtectionStatus.NOT_PROTECTED); + = new AzureWorkloadAutoProtectionIntent().withBackupManagementType(BackupManagementType.INVALID) + .withSourceResourceId("zacvu") + .withItemId("pjpbibnzpp") + .withPolicyId("pife") + .withProtectionState(ProtectionStatus.PROTECTING); model = BinaryData.fromObject(model).toObject(AzureWorkloadAutoProtectionIntent.class); - Assertions.assertEquals(BackupManagementType.DEFAULT_BACKUP, model.backupManagementType()); - Assertions.assertEquals("w", model.sourceResourceId()); - Assertions.assertEquals("vgmmbugtyw", model.itemId()); - Assertions.assertEquals("mqaqkueatgroes", model.policyId()); - Assertions.assertEquals(ProtectionStatus.NOT_PROTECTED, model.protectionState()); + Assertions.assertEquals(BackupManagementType.INVALID, model.backupManagementType()); + Assertions.assertEquals("zacvu", model.sourceResourceId()); + Assertions.assertEquals("pjpbibnzpp", model.itemId()); + Assertions.assertEquals("pife", model.policyId()); + Assertions.assertEquals(ProtectionStatus.PROTECTING, model.protectionState()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadBackupRequestTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadBackupRequestTests.java index f1cdf7844932f..4e9576c681977 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadBackupRequestTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadBackupRequestTests.java @@ -14,21 +14,21 @@ public final class AzureWorkloadBackupRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureWorkloadBackupRequest model = BinaryData.fromString( - "{\"objectType\":\"AzureWorkloadBackupRequest\",\"backupType\":\"SnapshotFull\",\"enableCompression\":true,\"recoveryPointExpiryTimeInUTC\":\"2021-07-13T03:09:26Z\"}") + "{\"objectType\":\"AzureWorkloadBackupRequest\",\"backupType\":\"Incremental\",\"enableCompression\":false,\"recoveryPointExpiryTimeInUTC\":\"2021-02-19T06:27:55Z\"}") .toObject(AzureWorkloadBackupRequest.class); - Assertions.assertEquals(BackupType.SNAPSHOT_FULL, model.backupType()); - Assertions.assertTrue(model.enableCompression()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-13T03:09:26Z"), model.recoveryPointExpiryTimeInUtc()); + Assertions.assertEquals(BackupType.INCREMENTAL, model.backupType()); + Assertions.assertFalse(model.enableCompression()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-19T06:27:55Z"), model.recoveryPointExpiryTimeInUtc()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AzureWorkloadBackupRequest model = new AzureWorkloadBackupRequest().withBackupType(BackupType.SNAPSHOT_FULL) - .withEnableCompression(true) - .withRecoveryPointExpiryTimeInUtc(OffsetDateTime.parse("2021-07-13T03:09:26Z")); + AzureWorkloadBackupRequest model = new AzureWorkloadBackupRequest().withBackupType(BackupType.INCREMENTAL) + .withEnableCompression(false) + .withRecoveryPointExpiryTimeInUtc(OffsetDateTime.parse("2021-02-19T06:27:55Z")); model = BinaryData.fromObject(model).toObject(AzureWorkloadBackupRequest.class); - Assertions.assertEquals(BackupType.SNAPSHOT_FULL, model.backupType()); - Assertions.assertTrue(model.enableCompression()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-13T03:09:26Z"), model.recoveryPointExpiryTimeInUtc()); + Assertions.assertEquals(BackupType.INCREMENTAL, model.backupType()); + Assertions.assertFalse(model.enableCompression()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-19T06:27:55Z"), model.recoveryPointExpiryTimeInUtc()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadContainerAutoProtectionIntentTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadContainerAutoProtectionIntentTests.java index ff9967c0c20b9..67e941ecb34fc 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadContainerAutoProtectionIntentTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadContainerAutoProtectionIntentTests.java @@ -14,28 +14,28 @@ public final class AzureWorkloadContainerAutoProtectionIntentTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureWorkloadContainerAutoProtectionIntent model = BinaryData.fromString( - "{\"protectionIntentItemType\":\"AzureWorkloadContainerAutoProtectionIntent\",\"backupManagementType\":\"AzureWorkload\",\"sourceResourceId\":\"ptdacarvvl\",\"itemId\":\"tymtpoiwenazer\",\"policyId\":\"zrsq\",\"protectionState\":\"Protected\"}") + "{\"protectionIntentItemType\":\"AzureWorkloadContainerAutoProtectionIntent\",\"backupManagementType\":\"Invalid\",\"sourceResourceId\":\"zarpzeqacdldt\",\"itemId\":\"pypefcpczshnuq\",\"policyId\":\"aizu\",\"protectionState\":\"Protecting\"}") .toObject(AzureWorkloadContainerAutoProtectionIntent.class); - Assertions.assertEquals(BackupManagementType.AZURE_WORKLOAD, model.backupManagementType()); - Assertions.assertEquals("ptdacarvvl", model.sourceResourceId()); - Assertions.assertEquals("tymtpoiwenazer", model.itemId()); - Assertions.assertEquals("zrsq", model.policyId()); - Assertions.assertEquals(ProtectionStatus.PROTECTED, model.protectionState()); + Assertions.assertEquals(BackupManagementType.INVALID, model.backupManagementType()); + Assertions.assertEquals("zarpzeqacdldt", model.sourceResourceId()); + Assertions.assertEquals("pypefcpczshnuq", model.itemId()); + Assertions.assertEquals("aizu", model.policyId()); + Assertions.assertEquals(ProtectionStatus.PROTECTING, model.protectionState()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AzureWorkloadContainerAutoProtectionIntent model = new AzureWorkloadContainerAutoProtectionIntent() - .withBackupManagementType(BackupManagementType.AZURE_WORKLOAD) - .withSourceResourceId("ptdacarvvl") - .withItemId("tymtpoiwenazer") - .withPolicyId("zrsq") - .withProtectionState(ProtectionStatus.PROTECTED); + AzureWorkloadContainerAutoProtectionIntent model + = new AzureWorkloadContainerAutoProtectionIntent().withBackupManagementType(BackupManagementType.INVALID) + .withSourceResourceId("zarpzeqacdldt") + .withItemId("pypefcpczshnuq") + .withPolicyId("aizu") + .withProtectionState(ProtectionStatus.PROTECTING); model = BinaryData.fromObject(model).toObject(AzureWorkloadContainerAutoProtectionIntent.class); - Assertions.assertEquals(BackupManagementType.AZURE_WORKLOAD, model.backupManagementType()); - Assertions.assertEquals("ptdacarvvl", model.sourceResourceId()); - Assertions.assertEquals("tymtpoiwenazer", model.itemId()); - Assertions.assertEquals("zrsq", model.policyId()); - Assertions.assertEquals(ProtectionStatus.PROTECTED, model.protectionState()); + Assertions.assertEquals(BackupManagementType.INVALID, model.backupManagementType()); + Assertions.assertEquals("zarpzeqacdldt", model.sourceResourceId()); + Assertions.assertEquals("pypefcpczshnuq", model.itemId()); + Assertions.assertEquals("aizu", model.policyId()); + Assertions.assertEquals(ProtectionStatus.PROTECTING, model.protectionState()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadJobExtendedInfoTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadJobExtendedInfoTests.java index d245540aa51ea..fcc44e4649428 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadJobExtendedInfoTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadJobExtendedInfoTests.java @@ -12,11 +12,11 @@ public final class AzureWorkloadJobExtendedInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureWorkloadJobExtendedInfo model = BinaryData.fromString( - "{\"tasksList\":[{\"taskId\":\"xoy\",\"status\":\"k\"},{\"taskId\":\"aimmoiroqb\",\"status\":\"hbragapyyr\"}],\"propertyBag\":{\"upgahxkum\":\"vbpavbopfppdbw\",\"hqepvufhbzehewh\":\"sjcaacfdmmcpugm\",\"eaclgschorimk\":\"qhnlbqnbld\",\"ucsofldpuviyf\":\"srrm\"},\"dynamicErrorMessage\":\"abeolhbhlvbm\"}") + "{\"tasksList\":[{\"taskId\":\"a\",\"status\":\"gvaknokzwjjzrl\"},{\"taskId\":\"xldzyyfytpqsix\",\"status\":\"m\"},{\"taskId\":\"jivyqlkjuv\",\"status\":\"bmslzoyov\"},{\"taskId\":\"dbpqvybefgvm\",\"status\":\"okcvtlubses\"}],\"propertyBag\":{\"ndzfqivjreuyk\":\"uartrhunlpiryky\"},\"dynamicErrorMessage\":\"mnwagltbxoe\"}") .toObject(AzureWorkloadJobExtendedInfo.class); - Assertions.assertEquals("xoy", model.tasksList().get(0).taskId()); - Assertions.assertEquals("k", model.tasksList().get(0).status()); - Assertions.assertEquals("vbpavbopfppdbw", model.propertyBag().get("upgahxkum")); - Assertions.assertEquals("abeolhbhlvbm", model.dynamicErrorMessage()); + Assertions.assertEquals("a", model.tasksList().get(0).taskId()); + Assertions.assertEquals("gvaknokzwjjzrl", model.tasksList().get(0).status()); + Assertions.assertEquals("uartrhunlpiryky", model.propertyBag().get("ndzfqivjreuyk")); + Assertions.assertEquals("mnwagltbxoe", model.dynamicErrorMessage()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadJobTaskDetailsTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadJobTaskDetailsTests.java index eedf12f286c82..e7fbd5fbb95fc 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadJobTaskDetailsTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadJobTaskDetailsTests.java @@ -11,9 +11,10 @@ public final class AzureWorkloadJobTaskDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - AzureWorkloadJobTaskDetails model = BinaryData.fromString("{\"taskId\":\"qi\",\"status\":\"xtkcudfbsfar\"}") - .toObject(AzureWorkloadJobTaskDetails.class); - Assertions.assertEquals("qi", model.taskId()); - Assertions.assertEquals("xtkcudfbsfar", model.status()); + AzureWorkloadJobTaskDetails model + = BinaryData.fromString("{\"taskId\":\"nqlnfwmyymvqd\",\"status\":\"bhfckdvezcrcssb\"}") + .toObject(AzureWorkloadJobTaskDetails.class); + Assertions.assertEquals("nqlnfwmyymvqd", model.taskId()); + Assertions.assertEquals("bhfckdvezcrcssb", model.status()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadPointInTimeRecoveryPointTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadPointInTimeRecoveryPointTests.java index e071ff5541267..d5dab178f6915 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadPointInTimeRecoveryPointTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadPointInTimeRecoveryPointTests.java @@ -19,27 +19,25 @@ public final class AzureWorkloadPointInTimeRecoveryPointTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureWorkloadPointInTimeRecoveryPoint model = BinaryData.fromString( - "{\"objectType\":\"AzureWorkloadPointInTimeRecoveryPoint\",\"timeRanges\":[{\"startTime\":\"2021-01-24T14:26:11Z\",\"endTime\":\"2021-10-12T01:30:58Z\"}],\"recoveryPointTimeInUTC\":\"2021-01-25T09:43:43Z\",\"type\":\"Log\",\"recoveryPointTierDetails\":[{\"type\":\"ArchivedRP\",\"status\":\"Rehydrated\",\"extendedInfo\":{\"jmygtdsslswtmwer\":\"ucerscdntnevfi\",\"yqsemwa\":\"ofz\",\"tshhszhedp\":\"n\",\"k\":\"vwiwubmwmbesld\"}},{\"type\":\"InstantRP\",\"status\":\"Invalid\",\"extendedInfo\":{\"kqze\":\"gaokonzmnsikv\",\"mhhv\":\"qkdltfz\"}},{\"type\":\"HardenedRP\",\"status\":\"Deleted\",\"extendedInfo\":{\"bxwakbog\":\"dagxtibqd\",\"iplbpodxunkbebxm\":\"xndlkzgxhu\"}}],\"recoveryPointMoveReadinessInfo\":{\"gqrlltmuwla\":{\"isReadyForMove\":true,\"additionalInfo\":\"wlrbqtkoievseo\"},\"pgcjefuzmuvp\":{\"isReadyForMove\":true,\"additionalInfo\":\"zxb\"}},\"recoveryPointProperties\":{\"expiryTime\":\"d\",\"ruleName\":\"orppxebmnzbtb\",\"isSoftDeleted\":false,\"immutabilityProperties\":{\"isImmutable\":false,\"expiryTime\":\"2021-07-30T09:20:18Z\"}},\"threatStatus\":\"Unknown\",\"threatInfo\":[{\"threatTitle\":\"euel\",\"threatDescription\":\"hsd\",\"lastUpdatedTime\":\"2021-11-22T01:42:51Z\",\"threatState\":\"InProgress\",\"threatStartTime\":\"2021-12-10T07:50:41Z\",\"threatEndTime\":\"2021-04-04T21:16:34Z\",\"threatURI\":\"wwquuvxzxclvithh\",\"threatSeverity\":\"Critical\"}]}") + "{\"objectType\":\"AzureWorkloadPointInTimeRecoveryPoint\",\"timeRanges\":[{\"startTime\":\"2021-11-22T09:18:13Z\",\"endTime\":\"2021-07-23T03:32:16Z\"}],\"recoveryPointTimeInUTC\":\"2021-07-30T00:54:27Z\",\"type\":\"Log\",\"recoveryPointTierDetails\":[{\"type\":\"IASnapshotRP\",\"status\":\"Disabled\",\"extendedInfo\":{\"jfqka\":\"arrwlquu\"}},{\"type\":\"IASnapshotRP\",\"status\":\"Invalid\",\"extendedInfo\":{\"uvksgplsaknynfsy\":\"ibwwiftohqkv\"}},{\"type\":\"IASnapshotRP\",\"status\":\"Valid\",\"extendedInfo\":{\"osjswsr\":\"lqiyntorzihl\",\"qioxi\":\"slyzrpzbchckqq\",\"wyhqmibzyhwits\":\"suiizynkedyat\"}}],\"recoveryPointMoveReadinessInfo\":{\"mwzn\":{\"isReadyForMove\":true,\"additionalInfo\":\"pcdpumnz\"}},\"recoveryPointProperties\":{\"expiryTime\":\"iknsorgjh\",\"ruleName\":\"ldtlwwr\",\"isSoftDeleted\":false,\"immutabilityProperties\":{\"isImmutable\":false,\"expiryTime\":\"2021-10-25T17:02:07Z\"}},\"threatStatus\":\"Warning\",\"threatInfo\":[{\"threatTitle\":\"llxdyhgs\",\"threatDescription\":\"cogjltdtbn\",\"lastUpdatedTime\":\"2021-01-21T02:41:17Z\",\"threatState\":\"Ignored\",\"threatStartTime\":\"2021-04-24T13:40:54Z\",\"threatEndTime\":\"2021-05-16T20:34:23Z\",\"threatURI\":\"cikhnv\",\"threatSeverity\":\"Critical\"},{\"threatTitle\":\"gxqquezik\",\"threatDescription\":\"ggxkallatmelwuip\",\"lastUpdatedTime\":\"2021-10-19T09:34:04Z\",\"threatState\":\"Ignored\",\"threatStartTime\":\"2021-11-27T13:08:32Z\",\"threatEndTime\":\"2021-06-18T18:11Z\",\"threatURI\":\"vvcnayr\",\"threatSeverity\":\"Warning\"},{\"threatTitle\":\"xxmueedn\",\"threatDescription\":\"dvstkw\",\"lastUpdatedTime\":\"2021-05-02T23:11:18Z\",\"threatState\":\"Ignored\",\"threatStartTime\":\"2021-06-20T11:42:34Z\",\"threatEndTime\":\"2021-08-29T08:31:09Z\",\"threatURI\":\"mtdaa\",\"threatSeverity\":\"High\"}]}") .toObject(AzureWorkloadPointInTimeRecoveryPoint.class); - Assertions.assertEquals(ThreatStatus.UNKNOWN, model.threatStatus()); - Assertions.assertEquals(ThreatState.IN_PROGRESS, model.threatInfo().get(0).threatState()); + Assertions.assertEquals(ThreatStatus.WARNING, model.threatStatus()); + Assertions.assertEquals(ThreatState.IGNORED, model.threatInfo().get(0).threatState()); Assertions.assertEquals(ThreatSeverity.CRITICAL, model.threatInfo().get(0).threatSeverity()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-25T09:43:43Z"), model.recoveryPointTimeInUtc()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-30T00:54:27Z"), model.recoveryPointTimeInUtc()); Assertions.assertEquals(RestorePointType.LOG, model.type()); - Assertions.assertEquals("ucerscdntnevfi", - model.recoveryPointTierDetails().get(0).extendedInfo().get("jmygtdsslswtmwer")); - Assertions.assertEquals(RecoveryPointTierType.ARCHIVED_RP, model.recoveryPointTierDetails().get(0).type()); - Assertions.assertEquals(RecoveryPointTierStatus.REHYDRATED, model.recoveryPointTierDetails().get(0).status()); - Assertions.assertTrue(model.recoveryPointMoveReadinessInfo().get("gqrlltmuwla").isReadyForMove()); - Assertions.assertEquals("wlrbqtkoievseo", - model.recoveryPointMoveReadinessInfo().get("gqrlltmuwla").additionalInfo()); - Assertions.assertEquals("d", model.recoveryPointProperties().expiryTime()); - Assertions.assertEquals("orppxebmnzbtb", model.recoveryPointProperties().ruleName()); + Assertions.assertEquals("arrwlquu", model.recoveryPointTierDetails().get(0).extendedInfo().get("jfqka")); + Assertions.assertEquals(RecoveryPointTierType.IASNAPSHOT_RP, model.recoveryPointTierDetails().get(0).type()); + Assertions.assertEquals(RecoveryPointTierStatus.DISABLED, model.recoveryPointTierDetails().get(0).status()); + Assertions.assertTrue(model.recoveryPointMoveReadinessInfo().get("mwzn").isReadyForMove()); + Assertions.assertEquals("pcdpumnz", model.recoveryPointMoveReadinessInfo().get("mwzn").additionalInfo()); + Assertions.assertEquals("iknsorgjh", model.recoveryPointProperties().expiryTime()); + Assertions.assertEquals("ldtlwwr", model.recoveryPointProperties().ruleName()); Assertions.assertFalse(model.recoveryPointProperties().isSoftDeleted()); Assertions.assertFalse(model.recoveryPointProperties().immutabilityProperties().isImmutable()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-30T09:20:18Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-10-25T17:02:07Z"), model.recoveryPointProperties().immutabilityProperties().expiryTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-24T14:26:11Z"), model.timeRanges().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-12T01:30:58Z"), model.timeRanges().get(0).endTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-22T09:18:13Z"), model.timeRanges().get(0).startTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-23T03:32:16Z"), model.timeRanges().get(0).endTime()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadPointInTimeRestoreRequestTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadPointInTimeRestoreRequestTests.java index 31754e4dcd085..e1c18d39be512 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadPointInTimeRestoreRequestTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadPointInTimeRestoreRequestTests.java @@ -23,74 +23,77 @@ public final class AzureWorkloadPointInTimeRestoreRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureWorkloadPointInTimeRestoreRequest model = BinaryData.fromString( - "{\"objectType\":\"AzureWorkloadPointInTimeRestoreRequest\",\"pointInTime\":\"2021-09-26T08:33:59Z\",\"recoveryType\":\"OriginalLocation\",\"sourceResourceId\":\"f\",\"propertyBag\":{\"vhmgorffukis\":\"jnaeois\",\"btgn\":\"vwmzhwplefaxvxil\",\"zqlqhyc\":\"nzeyqxtjj\",\"mieknlraria\":\"vodggxdbee\"},\"targetInfo\":{\"overwriteOption\":\"Overwrite\",\"containerId\":\"gy\",\"databaseName\":\"qfby\",\"targetDirectoryForFileRestore\":\"rfgi\"},\"recoveryMode\":\"Invalid\",\"targetResourceGroupName\":\"ojocqwogf\",\"userAssignedManagedIdentityDetails\":{\"identityArmId\":\"vusfzld\",\"identityName\":\"zuxylfsbtkadpyso\",\"userAssignedIdentityProperties\":{\"clientId\":\"tgkbugrjqctojc\",\"principalId\":\"sofieypefojyqd\"}},\"snapshotRestoreParameters\":{\"skipAttachAndMount\":true,\"logPointInTimeForDBRecovery\":\"cp\"},\"targetVirtualMachineId\":\"wkhihihlhzdsqt\",\"resourceGuardOperationRequests\":[\"rgnowcjhfgm\"]}") + "{\"objectType\":\"AzureWorkloadPointInTimeRestoreRequest\",\"pointInTime\":\"2021-11-21T22:56:48Z\",\"recoveryType\":\"OriginalLocation\",\"sourceResourceId\":\"djk\",\"propertyBag\":{\"lglxnfui\":\"sidfv\",\"qogsfikayian\":\"tkbu\",\"t\":\"haru\"},\"targetInfo\":{\"overwriteOption\":\"Invalid\",\"containerId\":\"zyjq\",\"databaseName\":\"vwkpqh\",\"targetDirectoryForFileRestore\":\"enuygbq\"},\"recoveryMode\":\"Invalid\",\"targetResourceGroupName\":\"kewvnqv\",\"userAssignedManagedIdentityDetails\":{\"identityArmId\":\"guaucmfdjwnla\",\"identityName\":\"un\",\"userAssignedIdentityProperties\":{\"clientId\":\"kczvvita\",\"principalId\":\"xmfcsserxhtv\"}},\"snapshotRestoreParameters\":{\"skipAttachAndMount\":true,\"logPointInTimeForDBRecovery\":\"wntsjgqrsxy\",\"disksToDetachOnClash\":[\"uuybnchrsz\",\"zoyuelyetndnbf\",\"yggagflnlgmt\",\"wahzjmucftbyr\"]},\"targetVirtualMachineId\":\"rohkpigqfusu\",\"resourceGuardOperationRequests\":[\"mkwkl\"]}") .toObject(AzureWorkloadPointInTimeRestoreRequest.class); - Assertions.assertEquals("rgnowcjhfgm", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals("mkwkl", model.resourceGuardOperationRequests().get(0)); Assertions.assertEquals(RecoveryType.ORIGINAL_LOCATION, model.recoveryType()); - Assertions.assertEquals("f", model.sourceResourceId()); - Assertions.assertEquals("jnaeois", model.propertyBag().get("vhmgorffukis")); - Assertions.assertEquals(OverwriteOptions.OVERWRITE, model.targetInfo().overwriteOption()); - Assertions.assertEquals("gy", model.targetInfo().containerId()); - Assertions.assertEquals("qfby", model.targetInfo().databaseName()); - Assertions.assertEquals("rfgi", model.targetInfo().targetDirectoryForFileRestore()); + Assertions.assertEquals("djk", model.sourceResourceId()); + Assertions.assertEquals("sidfv", model.propertyBag().get("lglxnfui")); + Assertions.assertEquals(OverwriteOptions.INVALID, model.targetInfo().overwriteOption()); + Assertions.assertEquals("zyjq", model.targetInfo().containerId()); + Assertions.assertEquals("vwkpqh", model.targetInfo().databaseName()); + Assertions.assertEquals("enuygbq", model.targetInfo().targetDirectoryForFileRestore()); Assertions.assertEquals(RecoveryMode.INVALID, model.recoveryMode()); - Assertions.assertEquals("ojocqwogf", model.targetResourceGroupName()); - Assertions.assertEquals("vusfzld", model.userAssignedManagedIdentityDetails().identityArmId()); - Assertions.assertEquals("zuxylfsbtkadpyso", model.userAssignedManagedIdentityDetails().identityName()); - Assertions.assertEquals("tgkbugrjqctojc", + Assertions.assertEquals("kewvnqv", model.targetResourceGroupName()); + Assertions.assertEquals("guaucmfdjwnla", model.userAssignedManagedIdentityDetails().identityArmId()); + Assertions.assertEquals("un", model.userAssignedManagedIdentityDetails().identityName()); + Assertions.assertEquals("kczvvita", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().clientId()); - Assertions.assertEquals("sofieypefojyqd", + Assertions.assertEquals("xmfcsserxhtv", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().principalId()); Assertions.assertTrue(model.snapshotRestoreParameters().skipAttachAndMount()); - Assertions.assertEquals("cp", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); - Assertions.assertEquals("wkhihihlhzdsqt", model.targetVirtualMachineId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-26T08:33:59Z"), model.pointInTime()); + Assertions.assertEquals("wntsjgqrsxy", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); + Assertions.assertEquals("uuybnchrsz", model.snapshotRestoreParameters().disksToDetachOnClash().get(0)); + Assertions.assertEquals("rohkpigqfusu", model.targetVirtualMachineId()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-21T22:56:48Z"), model.pointInTime()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AzureWorkloadPointInTimeRestoreRequest model = new AzureWorkloadPointInTimeRestoreRequest() - .withResourceGuardOperationRequests(Arrays.asList("rgnowcjhfgm")) - .withRecoveryType(RecoveryType.ORIGINAL_LOCATION) - .withSourceResourceId("f") - .withPropertyBag(mapOf("vhmgorffukis", "jnaeois", "btgn", "vwmzhwplefaxvxil", "zqlqhyc", "nzeyqxtjj", - "mieknlraria", "vodggxdbee")) - .withTargetInfo(new TargetRestoreInfo().withOverwriteOption(OverwriteOptions.OVERWRITE) - .withContainerId("gy") - .withDatabaseName("qfby") - .withTargetDirectoryForFileRestore("rfgi")) - .withRecoveryMode(RecoveryMode.INVALID) - .withTargetResourceGroupName("ojocqwogf") - .withUserAssignedManagedIdentityDetails(new UserAssignedManagedIdentityDetails() - .withIdentityArmId("vusfzld") - .withIdentityName("zuxylfsbtkadpyso") - .withUserAssignedIdentityProperties(new UserAssignedIdentityProperties().withClientId("tgkbugrjqctojc") - .withPrincipalId("sofieypefojyqd"))) - .withSnapshotRestoreParameters( - new SnapshotRestoreParameters().withSkipAttachAndMount(true).withLogPointInTimeForDBRecovery("cp")) - .withTargetVirtualMachineId("wkhihihlhzdsqt") - .withPointInTime(OffsetDateTime.parse("2021-09-26T08:33:59Z")); + AzureWorkloadPointInTimeRestoreRequest model + = new AzureWorkloadPointInTimeRestoreRequest().withResourceGuardOperationRequests(Arrays.asList("mkwkl")) + .withRecoveryType(RecoveryType.ORIGINAL_LOCATION) + .withSourceResourceId("djk") + .withPropertyBag(mapOf("lglxnfui", "sidfv", "qogsfikayian", "tkbu", "t", "haru")) + .withTargetInfo(new TargetRestoreInfo().withOverwriteOption(OverwriteOptions.INVALID) + .withContainerId("zyjq") + .withDatabaseName("vwkpqh") + .withTargetDirectoryForFileRestore("enuygbq")) + .withRecoveryMode(RecoveryMode.INVALID) + .withTargetResourceGroupName("kewvnqv") + .withUserAssignedManagedIdentityDetails(new UserAssignedManagedIdentityDetails() + .withIdentityArmId("guaucmfdjwnla") + .withIdentityName("un") + .withUserAssignedIdentityProperties( + new UserAssignedIdentityProperties().withClientId("kczvvita").withPrincipalId("xmfcsserxhtv"))) + .withSnapshotRestoreParameters(new SnapshotRestoreParameters().withSkipAttachAndMount(true) + .withLogPointInTimeForDBRecovery("wntsjgqrsxy") + .withDisksToDetachOnClash( + Arrays.asList("uuybnchrsz", "zoyuelyetndnbf", "yggagflnlgmt", "wahzjmucftbyr"))) + .withTargetVirtualMachineId("rohkpigqfusu") + .withPointInTime(OffsetDateTime.parse("2021-11-21T22:56:48Z")); model = BinaryData.fromObject(model).toObject(AzureWorkloadPointInTimeRestoreRequest.class); - Assertions.assertEquals("rgnowcjhfgm", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals("mkwkl", model.resourceGuardOperationRequests().get(0)); Assertions.assertEquals(RecoveryType.ORIGINAL_LOCATION, model.recoveryType()); - Assertions.assertEquals("f", model.sourceResourceId()); - Assertions.assertEquals("jnaeois", model.propertyBag().get("vhmgorffukis")); - Assertions.assertEquals(OverwriteOptions.OVERWRITE, model.targetInfo().overwriteOption()); - Assertions.assertEquals("gy", model.targetInfo().containerId()); - Assertions.assertEquals("qfby", model.targetInfo().databaseName()); - Assertions.assertEquals("rfgi", model.targetInfo().targetDirectoryForFileRestore()); + Assertions.assertEquals("djk", model.sourceResourceId()); + Assertions.assertEquals("sidfv", model.propertyBag().get("lglxnfui")); + Assertions.assertEquals(OverwriteOptions.INVALID, model.targetInfo().overwriteOption()); + Assertions.assertEquals("zyjq", model.targetInfo().containerId()); + Assertions.assertEquals("vwkpqh", model.targetInfo().databaseName()); + Assertions.assertEquals("enuygbq", model.targetInfo().targetDirectoryForFileRestore()); Assertions.assertEquals(RecoveryMode.INVALID, model.recoveryMode()); - Assertions.assertEquals("ojocqwogf", model.targetResourceGroupName()); - Assertions.assertEquals("vusfzld", model.userAssignedManagedIdentityDetails().identityArmId()); - Assertions.assertEquals("zuxylfsbtkadpyso", model.userAssignedManagedIdentityDetails().identityName()); - Assertions.assertEquals("tgkbugrjqctojc", + Assertions.assertEquals("kewvnqv", model.targetResourceGroupName()); + Assertions.assertEquals("guaucmfdjwnla", model.userAssignedManagedIdentityDetails().identityArmId()); + Assertions.assertEquals("un", model.userAssignedManagedIdentityDetails().identityName()); + Assertions.assertEquals("kczvvita", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().clientId()); - Assertions.assertEquals("sofieypefojyqd", + Assertions.assertEquals("xmfcsserxhtv", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().principalId()); Assertions.assertTrue(model.snapshotRestoreParameters().skipAttachAndMount()); - Assertions.assertEquals("cp", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); - Assertions.assertEquals("wkhihihlhzdsqt", model.targetVirtualMachineId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-26T08:33:59Z"), model.pointInTime()); + Assertions.assertEquals("wntsjgqrsxy", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); + Assertions.assertEquals("uuybnchrsz", model.snapshotRestoreParameters().disksToDetachOnClash().get(0)); + Assertions.assertEquals("rohkpigqfusu", model.targetVirtualMachineId()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-21T22:56:48Z"), model.pointInTime()); } // Use "Map.of" if available diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadRecoveryPointTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadRecoveryPointTests.java index 51088f6ab846c..82d65b3796d90 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadRecoveryPointTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadRecoveryPointTests.java @@ -19,23 +19,23 @@ public final class AzureWorkloadRecoveryPointTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureWorkloadRecoveryPoint model = BinaryData.fromString( - "{\"objectType\":\"AzureWorkloadRecoveryPoint\",\"recoveryPointTimeInUTC\":\"2021-10-14T07:05:12Z\",\"type\":\"Full\",\"recoveryPointTierDetails\":[{\"type\":\"ArchivedRP\",\"status\":\"Disabled\",\"extendedInfo\":{\"btkuwhh\":\"iuqgbdbutauv\",\"koymkcd\":\"hykojoxafnndlpic\"}},{\"type\":\"HardenedRP\",\"status\":\"Deleted\",\"extendedInfo\":{\"ovvqfovljxywsu\":\"q\",\"aeneqnzarrwl\":\"syrsndsytgadgvra\",\"jfqka\":\"uu\"}},{\"type\":\"HardenedRP\",\"status\":\"Invalid\",\"extendedInfo\":{\"uvksgplsaknynfsy\":\"ibwwiftohqkv\"}}],\"recoveryPointMoveReadinessInfo\":{\"odlqiyntor\":{\"isReadyForMove\":true,\"additionalInfo\":\"op\"},\"slyzrpzbchckqq\":{\"isReadyForMove\":false,\"additionalInfo\":\"eosjswsr\"},\"uiizynke\":{\"isReadyForMove\":true,\"additionalInfo\":\"xiy\"}},\"recoveryPointProperties\":{\"expiryTime\":\"trwyhqmib\",\"ruleName\":\"hwit\",\"isSoftDeleted\":true,\"immutabilityProperties\":{\"isImmutable\":true,\"expiryTime\":\"2021-11-23T00:36:56Z\"}},\"threatStatus\":\"Unknown\",\"threatInfo\":[{\"threatTitle\":\"mnzgmwznmabi\",\"threatDescription\":\"sorgj\",\"lastUpdatedTime\":\"2021-10-23T19:23:01Z\",\"threatState\":\"Ignored\",\"threatStartTime\":\"2021-11-28T03:23:51Z\",\"threatEndTime\":\"2021-01-06T16:16:24Z\",\"threatURI\":\"lkdmtncvokotllxd\",\"threatSeverity\":\"High\"},{\"threatTitle\":\"y\",\"threatDescription\":\"ogjltdtbnnhad\",\"lastUpdatedTime\":\"2021-04-24T13:40:54Z\",\"threatState\":\"Active\",\"threatStartTime\":\"2020-12-23T13:08:39Z\",\"threatEndTime\":\"2021-09-01T15:57:06Z\",\"threatURI\":\"nvpamq\",\"threatSeverity\":\"Critical\"}]}") + "{\"objectType\":\"AzureWorkloadRecoveryPoint\",\"recoveryPointTimeInUTC\":\"2021-07-14T09:12:45Z\",\"type\":\"SnapshotCopyOnlyFull\",\"recoveryPointTierDetails\":[{\"type\":\"ArchivedRP\",\"status\":\"Deleted\",\"extendedInfo\":{\"ndo\":\"jmqlgkfb\",\"jitcjedftwwaez\":\"ongbjcnt\",\"i\":\"ojvdcpzfoqo\",\"oxciqopidoamcio\":\"ybxarzgszu\"}},{\"type\":\"ArchivedRP\",\"status\":\"Valid\",\"extendedInfo\":{\"wntoegokdwbwh\":\"bon\",\"t\":\"szzcmrvexztv\"}}],\"recoveryPointMoveReadinessInfo\":{\"wtl\":{\"isReadyForMove\":false,\"additionalInfo\":\"oyzko\"},\"rqf\":{\"isReadyForMove\":true,\"additionalInfo\":\"xawqaldsyuuxim\"},\"r\":{\"isReadyForMove\":true,\"additionalInfo\":\"znkbykutwpfhpagm\"}},\"recoveryPointProperties\":{\"expiryTime\":\"snfdsdoakgtdl\",\"ruleName\":\"kzevdlhewpusds\",\"isSoftDeleted\":true,\"immutabilityProperties\":{\"isImmutable\":true,\"expiryTime\":\"2021-06-20T15:11:08Z\"}},\"threatStatus\":\"NotAvailable\",\"threatInfo\":[{\"threatTitle\":\"cngqqmoakufgmjz\",\"threatDescription\":\"rdgrtw\",\"lastUpdatedTime\":\"2021-01-23T08:17:26Z\",\"threatState\":\"Ignored\",\"threatStartTime\":\"2021-05-21T20:17:09Z\",\"threatEndTime\":\"2021-07-21T23:33:14Z\",\"threatURI\":\"minrfdw\",\"threatSeverity\":\"Informational\"},{\"threatTitle\":\"hziuiefozbhdms\",\"threatDescription\":\"mzqhoftrmaequi\",\"lastUpdatedTime\":\"2021-11-19T19:19:01Z\",\"threatState\":\"Resolved\",\"threatStartTime\":\"2021-09-22T04:08:34Z\",\"threatEndTime\":\"2021-08-02T03:13:09Z\",\"threatURI\":\"qzpiyyl\",\"threatSeverity\":\"High\"}]}") .toObject(AzureWorkloadRecoveryPoint.class); - Assertions.assertEquals(ThreatStatus.UNKNOWN, model.threatStatus()); + Assertions.assertEquals(ThreatStatus.NOT_AVAILABLE, model.threatStatus()); Assertions.assertEquals(ThreatState.IGNORED, model.threatInfo().get(0).threatState()); - Assertions.assertEquals(ThreatSeverity.HIGH, model.threatInfo().get(0).threatSeverity()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-14T07:05:12Z"), model.recoveryPointTimeInUtc()); - Assertions.assertEquals(RestorePointType.FULL, model.type()); - Assertions.assertEquals("iuqgbdbutauv", model.recoveryPointTierDetails().get(0).extendedInfo().get("btkuwhh")); + Assertions.assertEquals(ThreatSeverity.INFORMATIONAL, model.threatInfo().get(0).threatSeverity()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-14T09:12:45Z"), model.recoveryPointTimeInUtc()); + Assertions.assertEquals(RestorePointType.SNAPSHOT_COPY_ONLY_FULL, model.type()); + Assertions.assertEquals("jmqlgkfb", model.recoveryPointTierDetails().get(0).extendedInfo().get("ndo")); Assertions.assertEquals(RecoveryPointTierType.ARCHIVED_RP, model.recoveryPointTierDetails().get(0).type()); - Assertions.assertEquals(RecoveryPointTierStatus.DISABLED, model.recoveryPointTierDetails().get(0).status()); - Assertions.assertTrue(model.recoveryPointMoveReadinessInfo().get("odlqiyntor").isReadyForMove()); - Assertions.assertEquals("op", model.recoveryPointMoveReadinessInfo().get("odlqiyntor").additionalInfo()); - Assertions.assertEquals("trwyhqmib", model.recoveryPointProperties().expiryTime()); - Assertions.assertEquals("hwit", model.recoveryPointProperties().ruleName()); + Assertions.assertEquals(RecoveryPointTierStatus.DELETED, model.recoveryPointTierDetails().get(0).status()); + Assertions.assertFalse(model.recoveryPointMoveReadinessInfo().get("wtl").isReadyForMove()); + Assertions.assertEquals("oyzko", model.recoveryPointMoveReadinessInfo().get("wtl").additionalInfo()); + Assertions.assertEquals("snfdsdoakgtdl", model.recoveryPointProperties().expiryTime()); + Assertions.assertEquals("kzevdlhewpusds", model.recoveryPointProperties().ruleName()); Assertions.assertTrue(model.recoveryPointProperties().isSoftDeleted()); Assertions.assertTrue(model.recoveryPointProperties().immutabilityProperties().isImmutable()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-23T00:36:56Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-06-20T15:11:08Z"), model.recoveryPointProperties().immutabilityProperties().expiryTime()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadRestoreRequestTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadRestoreRequestTests.java index 163aa51eeb08d..53b3e521fe9c9 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadRestoreRequestTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadRestoreRequestTests.java @@ -22,70 +22,74 @@ public final class AzureWorkloadRestoreRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureWorkloadRestoreRequest model = BinaryData.fromString( - "{\"objectType\":\"AzureWorkloadRestoreRequest\",\"recoveryType\":\"AlternateLocation\",\"sourceResourceId\":\"ctxmwoteyowcluq\",\"propertyBag\":{\"fzmpjwyivq\":\"kqvgqouw\",\"huagrttikteusqc\":\"kfxcvhrfs\",\"bl\":\"kvyklxubyjaffmm\"},\"targetInfo\":{\"overwriteOption\":\"Invalid\",\"containerId\":\"bgq\",\"databaseName\":\"rtalmet\",\"targetDirectoryForFileRestore\":\"wgdsl\"},\"recoveryMode\":\"SnapshotAttach\",\"targetResourceGroupName\":\"hrmooi\",\"userAssignedManagedIdentityDetails\":{\"identityArmId\":\"eypxiutcxapzhyr\",\"identityName\":\"togebjoxsl\",\"userAssignedIdentityProperties\":{\"clientId\":\"hlabrq\",\"principalId\":\"kzjcjbtrgae\"}},\"snapshotRestoreParameters\":{\"skipAttachAndMount\":false,\"logPointInTimeForDBRecovery\":\"rxjjstoqbeitpk\"},\"targetVirtualMachineId\":\"tmo\",\"resourceGuardOperationRequests\":[\"lftidgfcwqmpim\"]}") + "{\"objectType\":\"AzureWorkloadRestoreRequest\",\"recoveryType\":\"RestoreDisks\",\"sourceResourceId\":\"axmqeqal\",\"propertyBag\":{\"ydyynfsvkh\":\"nhg\",\"narfdlpukhpyrn\":\"bvqt\",\"hnmgbroux\":\"izjcpeog\"},\"targetInfo\":{\"overwriteOption\":\"Overwrite\",\"containerId\":\"hpfpazjzoywjxhp\",\"databaseName\":\"lontacnpq\",\"targetDirectoryForFileRestore\":\"ehtuevrhr\"},\"recoveryMode\":\"FileRecovery\",\"targetResourceGroupName\":\"ogwxhnsduugwb\",\"userAssignedManagedIdentityDetails\":{\"identityArmId\":\"urfqkfuare\",\"identityName\":\"vhhtklnvnaf\",\"userAssignedIdentityProperties\":{\"clientId\":\"yfedevjbo\",\"principalId\":\"cqxypokkhminq\"}},\"snapshotRestoreParameters\":{\"skipAttachAndMount\":true,\"logPointInTimeForDBRecovery\":\"ngnbdxxew\",\"disksToDetachOnClash\":[\"nvudbchaqdtvqecr\",\"ct\"]},\"targetVirtualMachineId\":\"xdtddmflhuytxzv\",\"resourceGuardOperationRequests\":[\"apxbannovvoxczy\",\"prwnwvroevytlyo\",\"rrrouuxvnsa\"]}") .toObject(AzureWorkloadRestoreRequest.class); - Assertions.assertEquals("lftidgfcwqmpim", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals(RecoveryType.ALTERNATE_LOCATION, model.recoveryType()); - Assertions.assertEquals("ctxmwoteyowcluq", model.sourceResourceId()); - Assertions.assertEquals("kqvgqouw", model.propertyBag().get("fzmpjwyivq")); - Assertions.assertEquals(OverwriteOptions.INVALID, model.targetInfo().overwriteOption()); - Assertions.assertEquals("bgq", model.targetInfo().containerId()); - Assertions.assertEquals("rtalmet", model.targetInfo().databaseName()); - Assertions.assertEquals("wgdsl", model.targetInfo().targetDirectoryForFileRestore()); - Assertions.assertEquals(RecoveryMode.SNAPSHOT_ATTACH, model.recoveryMode()); - Assertions.assertEquals("hrmooi", model.targetResourceGroupName()); - Assertions.assertEquals("eypxiutcxapzhyr", model.userAssignedManagedIdentityDetails().identityArmId()); - Assertions.assertEquals("togebjoxsl", model.userAssignedManagedIdentityDetails().identityName()); - Assertions.assertEquals("hlabrq", + Assertions.assertEquals("apxbannovvoxczy", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals(RecoveryType.RESTORE_DISKS, model.recoveryType()); + Assertions.assertEquals("axmqeqal", model.sourceResourceId()); + Assertions.assertEquals("nhg", model.propertyBag().get("ydyynfsvkh")); + Assertions.assertEquals(OverwriteOptions.OVERWRITE, model.targetInfo().overwriteOption()); + Assertions.assertEquals("hpfpazjzoywjxhp", model.targetInfo().containerId()); + Assertions.assertEquals("lontacnpq", model.targetInfo().databaseName()); + Assertions.assertEquals("ehtuevrhr", model.targetInfo().targetDirectoryForFileRestore()); + Assertions.assertEquals(RecoveryMode.FILE_RECOVERY, model.recoveryMode()); + Assertions.assertEquals("ogwxhnsduugwb", model.targetResourceGroupName()); + Assertions.assertEquals("urfqkfuare", model.userAssignedManagedIdentityDetails().identityArmId()); + Assertions.assertEquals("vhhtklnvnaf", model.userAssignedManagedIdentityDetails().identityName()); + Assertions.assertEquals("yfedevjbo", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().clientId()); - Assertions.assertEquals("kzjcjbtrgae", + Assertions.assertEquals("cqxypokkhminq", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().principalId()); - Assertions.assertFalse(model.snapshotRestoreParameters().skipAttachAndMount()); - Assertions.assertEquals("rxjjstoqbeitpk", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); - Assertions.assertEquals("tmo", model.targetVirtualMachineId()); + Assertions.assertTrue(model.snapshotRestoreParameters().skipAttachAndMount()); + Assertions.assertEquals("ngnbdxxew", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); + Assertions.assertEquals("nvudbchaqdtvqecr", model.snapshotRestoreParameters().disksToDetachOnClash().get(0)); + Assertions.assertEquals("xdtddmflhuytxzv", model.targetVirtualMachineId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AzureWorkloadRestoreRequest model = new AzureWorkloadRestoreRequest() - .withResourceGuardOperationRequests(Arrays.asList("lftidgfcwqmpim")) - .withRecoveryType(RecoveryType.ALTERNATE_LOCATION) - .withSourceResourceId("ctxmwoteyowcluq") - .withPropertyBag(mapOf("fzmpjwyivq", "kqvgqouw", "huagrttikteusqc", "kfxcvhrfs", "bl", "kvyklxubyjaffmm")) - .withTargetInfo(new TargetRestoreInfo().withOverwriteOption(OverwriteOptions.INVALID) - .withContainerId("bgq") - .withDatabaseName("rtalmet") - .withTargetDirectoryForFileRestore("wgdsl")) - .withRecoveryMode(RecoveryMode.SNAPSHOT_ATTACH) - .withTargetResourceGroupName("hrmooi") - .withUserAssignedManagedIdentityDetails( - new UserAssignedManagedIdentityDetails().withIdentityArmId("eypxiutcxapzhyr") - .withIdentityName("togebjoxsl") - .withUserAssignedIdentityProperties( - new UserAssignedIdentityProperties().withClientId("hlabrq").withPrincipalId("kzjcjbtrgae"))) - .withSnapshotRestoreParameters(new SnapshotRestoreParameters().withSkipAttachAndMount(false) - .withLogPointInTimeForDBRecovery("rxjjstoqbeitpk")) - .withTargetVirtualMachineId("tmo"); + AzureWorkloadRestoreRequest model + = new AzureWorkloadRestoreRequest() + .withResourceGuardOperationRequests(Arrays.asList("apxbannovvoxczy", "prwnwvroevytlyo", "rrrouuxvnsa")) + .withRecoveryType(RecoveryType.RESTORE_DISKS) + .withSourceResourceId("axmqeqal") + .withPropertyBag(mapOf("ydyynfsvkh", "nhg", "narfdlpukhpyrn", "bvqt", "hnmgbroux", "izjcpeog")) + .withTargetInfo(new TargetRestoreInfo().withOverwriteOption(OverwriteOptions.OVERWRITE) + .withContainerId("hpfpazjzoywjxhp") + .withDatabaseName("lontacnpq") + .withTargetDirectoryForFileRestore("ehtuevrhr")) + .withRecoveryMode(RecoveryMode.FILE_RECOVERY) + .withTargetResourceGroupName("ogwxhnsduugwb") + .withUserAssignedManagedIdentityDetails(new UserAssignedManagedIdentityDetails() + .withIdentityArmId("urfqkfuare") + .withIdentityName("vhhtklnvnaf") + .withUserAssignedIdentityProperties(new UserAssignedIdentityProperties().withClientId("yfedevjbo") + .withPrincipalId("cqxypokkhminq"))) + .withSnapshotRestoreParameters(new SnapshotRestoreParameters().withSkipAttachAndMount(true) + .withLogPointInTimeForDBRecovery("ngnbdxxew") + .withDisksToDetachOnClash(Arrays.asList("nvudbchaqdtvqecr", "ct"))) + .withTargetVirtualMachineId("xdtddmflhuytxzv"); model = BinaryData.fromObject(model).toObject(AzureWorkloadRestoreRequest.class); - Assertions.assertEquals("lftidgfcwqmpim", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals(RecoveryType.ALTERNATE_LOCATION, model.recoveryType()); - Assertions.assertEquals("ctxmwoteyowcluq", model.sourceResourceId()); - Assertions.assertEquals("kqvgqouw", model.propertyBag().get("fzmpjwyivq")); - Assertions.assertEquals(OverwriteOptions.INVALID, model.targetInfo().overwriteOption()); - Assertions.assertEquals("bgq", model.targetInfo().containerId()); - Assertions.assertEquals("rtalmet", model.targetInfo().databaseName()); - Assertions.assertEquals("wgdsl", model.targetInfo().targetDirectoryForFileRestore()); - Assertions.assertEquals(RecoveryMode.SNAPSHOT_ATTACH, model.recoveryMode()); - Assertions.assertEquals("hrmooi", model.targetResourceGroupName()); - Assertions.assertEquals("eypxiutcxapzhyr", model.userAssignedManagedIdentityDetails().identityArmId()); - Assertions.assertEquals("togebjoxsl", model.userAssignedManagedIdentityDetails().identityName()); - Assertions.assertEquals("hlabrq", + Assertions.assertEquals("apxbannovvoxczy", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals(RecoveryType.RESTORE_DISKS, model.recoveryType()); + Assertions.assertEquals("axmqeqal", model.sourceResourceId()); + Assertions.assertEquals("nhg", model.propertyBag().get("ydyynfsvkh")); + Assertions.assertEquals(OverwriteOptions.OVERWRITE, model.targetInfo().overwriteOption()); + Assertions.assertEquals("hpfpazjzoywjxhp", model.targetInfo().containerId()); + Assertions.assertEquals("lontacnpq", model.targetInfo().databaseName()); + Assertions.assertEquals("ehtuevrhr", model.targetInfo().targetDirectoryForFileRestore()); + Assertions.assertEquals(RecoveryMode.FILE_RECOVERY, model.recoveryMode()); + Assertions.assertEquals("ogwxhnsduugwb", model.targetResourceGroupName()); + Assertions.assertEquals("urfqkfuare", model.userAssignedManagedIdentityDetails().identityArmId()); + Assertions.assertEquals("vhhtklnvnaf", model.userAssignedManagedIdentityDetails().identityName()); + Assertions.assertEquals("yfedevjbo", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().clientId()); - Assertions.assertEquals("kzjcjbtrgae", + Assertions.assertEquals("cqxypokkhminq", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().principalId()); - Assertions.assertFalse(model.snapshotRestoreParameters().skipAttachAndMount()); - Assertions.assertEquals("rxjjstoqbeitpk", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); - Assertions.assertEquals("tmo", model.targetVirtualMachineId()); + Assertions.assertTrue(model.snapshotRestoreParameters().skipAttachAndMount()); + Assertions.assertEquals("ngnbdxxew", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); + Assertions.assertEquals("nvudbchaqdtvqecr", model.snapshotRestoreParameters().disksToDetachOnClash().get(0)); + Assertions.assertEquals("xdtddmflhuytxzv", model.targetVirtualMachineId()); } // Use "Map.of" if available diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapAsePointInTimeRecoveryPointTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapAsePointInTimeRecoveryPointTests.java index 84bfc2ed908be..bca3c3b036894 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapAsePointInTimeRecoveryPointTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapAsePointInTimeRecoveryPointTests.java @@ -19,25 +19,25 @@ public final class AzureWorkloadSapAsePointInTimeRecoveryPointTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureWorkloadSapAsePointInTimeRecoveryPoint model = BinaryData.fromString( - "{\"objectType\":\"AzureWorkloadSAPAsePointInTimeRecoveryPoint\",\"timeRanges\":[{\"startTime\":\"2021-05-07T00:25:25Z\",\"endTime\":\"2021-03-30T01:45:45Z\"},{\"startTime\":\"2021-01-04T01:42:42Z\",\"endTime\":\"2021-03-05T05:10:55Z\"},{\"startTime\":\"2021-03-21T19:22:18Z\",\"endTime\":\"2021-01-14T19:12:22Z\"},{\"startTime\":\"2021-11-18T00:43:07Z\",\"endTime\":\"2021-08-10T17:39:06Z\"}],\"recoveryPointTimeInUTC\":\"2021-11-02T13:15:31Z\",\"type\":\"Full\",\"recoveryPointTierDetails\":[{\"type\":\"Invalid\",\"status\":\"Disabled\",\"extendedInfo\":{\"xvy\":\"ondjmq\"}},{\"type\":\"HardenedRP\",\"status\":\"Disabled\",\"extendedInfo\":{\"jqg\":\"jvp\",\"apvhelxprgly\":\"ysmocmbqfqvmkcxo\"}}],\"recoveryPointMoveReadinessInfo\":{\"rhos\":{\"isReadyForMove\":false,\"additionalInfo\":\"cbcuejrjxgciqi\"}},\"recoveryPointProperties\":{\"expiryTime\":\"qrhzoymibmrqyib\",\"ruleName\":\"wfluszdt\",\"isSoftDeleted\":true,\"immutabilityProperties\":{\"isImmutable\":true,\"expiryTime\":\"2021-06-28T13:04:58Z\"}},\"threatStatus\":\"Warning\",\"threatInfo\":[{\"threatTitle\":\"acpie\",\"threatDescription\":\"btgiwbwoenwas\",\"lastUpdatedTime\":\"2021-04-27T10:32:13Z\",\"threatState\":\"InProgress\",\"threatStartTime\":\"2021-10-17T07:53:24Z\",\"threatEndTime\":\"2021-03-26T12:56:23Z\",\"threatURI\":\"wbpokulpiujwaasi\",\"threatSeverity\":\"Critical\"}]}") + "{\"objectType\":\"AzureWorkloadSAPAsePointInTimeRecoveryPoint\",\"timeRanges\":[{\"startTime\":\"2021-08-03T15:35:30Z\",\"endTime\":\"2021-01-10T17:21:26Z\"}],\"recoveryPointTimeInUTC\":\"2021-06-07T07:50:45Z\",\"type\":\"Incremental\",\"recoveryPointTierDetails\":[{\"type\":\"InstantRP\",\"status\":\"Deleted\",\"extendedInfo\":{\"eptra\":\"oruzfgsquyfxrxx\",\"wlwnwxuqlcv\":\"xje\",\"atdooaojkniod\":\"dy\",\"bw\":\"oo\"}},{\"type\":\"HardenedRP\",\"status\":\"Invalid\",\"extendedInfo\":{\"lfltka\":\"kcrodtjinfw\",\"gaowpulpqblylsyx\":\"jvefkdlfoakggkfp\"}},{\"type\":\"InstantRP\",\"status\":\"Disabled\",\"extendedInfo\":{\"zkfzbeyv\":\"agxsdszuemps\",\"ukzclewyhmlwpaz\":\"nqicvinvkjjxdxrb\",\"cckwyfzqwhxxbu\":\"zpof\",\"zfeqztppri\":\"qa\"}}],\"recoveryPointMoveReadinessInfo\":{\"ncwsob\":{\"isReadyForMove\":true,\"additionalInfo\":\"altol\"},\"cf\":{\"isReadyForMove\":true,\"additionalInfo\":\"dbnw\"},\"sbjjc\":{\"isReadyForMove\":false,\"additionalInfo\":\"dpfuvg\"},\"xqtvcofu\":{\"isReadyForMove\":false,\"additionalInfo\":\"bvtvudutncormr\"}},\"recoveryPointProperties\":{\"expiryTime\":\"vkg\",\"ruleName\":\"bgdknnqv\",\"isSoftDeleted\":false,\"immutabilityProperties\":{\"isImmutable\":true,\"expiryTime\":\"2021-05-22T05:07:43Z\"}},\"threatStatus\":\"NotAvailable\",\"threatInfo\":[{\"threatTitle\":\"gsahmkycgrauw\",\"threatDescription\":\"etaebu\",\"lastUpdatedTime\":\"2021-09-21T03:41:44Z\",\"threatState\":\"Resolved\",\"threatStartTime\":\"2021-01-16T01:35:10Z\",\"threatEndTime\":\"2021-09-18T15:34:48Z\",\"threatURI\":\"l\",\"threatSeverity\":\"Critical\"}]}") .toObject(AzureWorkloadSapAsePointInTimeRecoveryPoint.class); - Assertions.assertEquals(ThreatStatus.WARNING, model.threatStatus()); - Assertions.assertEquals(ThreatState.IN_PROGRESS, model.threatInfo().get(0).threatState()); + Assertions.assertEquals(ThreatStatus.NOT_AVAILABLE, model.threatStatus()); + Assertions.assertEquals(ThreatState.RESOLVED, model.threatInfo().get(0).threatState()); Assertions.assertEquals(ThreatSeverity.CRITICAL, model.threatInfo().get(0).threatSeverity()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-02T13:15:31Z"), model.recoveryPointTimeInUtc()); - Assertions.assertEquals(RestorePointType.FULL, model.type()); - Assertions.assertEquals("ondjmq", model.recoveryPointTierDetails().get(0).extendedInfo().get("xvy")); - Assertions.assertEquals(RecoveryPointTierType.INVALID, model.recoveryPointTierDetails().get(0).type()); - Assertions.assertEquals(RecoveryPointTierStatus.DISABLED, model.recoveryPointTierDetails().get(0).status()); - Assertions.assertFalse(model.recoveryPointMoveReadinessInfo().get("rhos").isReadyForMove()); - Assertions.assertEquals("cbcuejrjxgciqi", model.recoveryPointMoveReadinessInfo().get("rhos").additionalInfo()); - Assertions.assertEquals("qrhzoymibmrqyib", model.recoveryPointProperties().expiryTime()); - Assertions.assertEquals("wfluszdt", model.recoveryPointProperties().ruleName()); - Assertions.assertTrue(model.recoveryPointProperties().isSoftDeleted()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-07T07:50:45Z"), model.recoveryPointTimeInUtc()); + Assertions.assertEquals(RestorePointType.INCREMENTAL, model.type()); + Assertions.assertEquals("oruzfgsquyfxrxx", model.recoveryPointTierDetails().get(0).extendedInfo().get("eptra")); + Assertions.assertEquals(RecoveryPointTierType.INSTANT_RP, model.recoveryPointTierDetails().get(0).type()); + Assertions.assertEquals(RecoveryPointTierStatus.DELETED, model.recoveryPointTierDetails().get(0).status()); + Assertions.assertTrue(model.recoveryPointMoveReadinessInfo().get("ncwsob").isReadyForMove()); + Assertions.assertEquals("altol", model.recoveryPointMoveReadinessInfo().get("ncwsob").additionalInfo()); + Assertions.assertEquals("vkg", model.recoveryPointProperties().expiryTime()); + Assertions.assertEquals("bgdknnqv", model.recoveryPointProperties().ruleName()); + Assertions.assertFalse(model.recoveryPointProperties().isSoftDeleted()); Assertions.assertTrue(model.recoveryPointProperties().immutabilityProperties().isImmutable()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-28T13:04:58Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-05-22T05:07:43Z"), model.recoveryPointProperties().immutabilityProperties().expiryTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-07T00:25:25Z"), model.timeRanges().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-30T01:45:45Z"), model.timeRanges().get(0).endTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-03T15:35:30Z"), model.timeRanges().get(0).startTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-10T17:21:26Z"), model.timeRanges().get(0).endTime()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapAsePointInTimeRestoreRequestTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapAsePointInTimeRestoreRequestTests.java index c6c7dfd578368..03c4e3093f0e0 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapAsePointInTimeRestoreRequestTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapAsePointInTimeRestoreRequestTests.java @@ -23,73 +23,77 @@ public final class AzureWorkloadSapAsePointInTimeRestoreRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureWorkloadSapAsePointInTimeRestoreRequest model = BinaryData.fromString( - "{\"objectType\":\"AzureWorkloadSAPAsePointInTimeRestoreRequest\",\"pointInTime\":\"2021-08-03T07:43:33Z\",\"recoveryType\":\"Offline\",\"sourceResourceId\":\"jraaeranokqguk\",\"propertyBag\":{\"lcdisd\":\"nvbroylaxx\"},\"targetInfo\":{\"overwriteOption\":\"Invalid\",\"containerId\":\"jsvg\",\"databaseName\":\"whryvycytdcl\",\"targetDirectoryForFileRestore\":\"ccknfnwmbtmvp\"},\"recoveryMode\":\"SnapshotAttach\",\"targetResourceGroupName\":\"httz\",\"userAssignedManagedIdentityDetails\":{\"identityArmId\":\"edxihchrphkmcrj\",\"identityName\":\"nsdfzpbgtgky\",\"userAssignedIdentityProperties\":{\"clientId\":\"ghrjeuutl\",\"principalId\":\"ez\"}},\"snapshotRestoreParameters\":{\"skipAttachAndMount\":true,\"logPointInTimeForDBRecovery\":\"vbwnhhtq\"},\"targetVirtualMachineId\":\"ehgpp\",\"resourceGuardOperationRequests\":[\"fhpfeoajvgcxtx\",\"csheafidltugsr\"]}") + "{\"objectType\":\"AzureWorkloadSAPAsePointInTimeRestoreRequest\",\"pointInTime\":\"2021-06-02T01:00:58Z\",\"recoveryType\":\"Offline\",\"sourceResourceId\":\"rupdwvnphcnzq\",\"propertyBag\":{\"smlzzhzdtxetlgy\":\"hmqrhvthlaiwdc\",\"geaar\":\"lhqvlnnpxybafi\",\"lidwcwvmzegjon\":\"gjekglklby\"},\"targetInfo\":{\"overwriteOption\":\"FailOnConflict\",\"containerId\":\"wgdnqzbr\",\"databaseName\":\"spzhzmtksjc\",\"targetDirectoryForFileRestore\":\"digsxcdgl\"},\"recoveryMode\":\"SnapshotAttach\",\"targetResourceGroupName\":\"euachtomfl\",\"userAssignedManagedIdentityDetails\":{\"identityArmId\":\"swfpfmd\",\"identityName\":\"cxnmskwhqjjyslu\",\"userAssignedIdentityProperties\":{\"clientId\":\"shhkvpedw\",\"principalId\":\"lsrhmpqvwwskond\"}},\"snapshotRestoreParameters\":{\"skipAttachAndMount\":false,\"logPointInTimeForDBRecovery\":\"muvqejosovyr\",\"disksToDetachOnClash\":[\"a\",\"sinuqtljqobbpih\"]},\"targetVirtualMachineId\":\"cecybmrqbrjbbmpx\",\"resourceGuardOperationRequests\":[\"yk\",\"rexcrseqwjksghu\",\"gzhxog\"]}") .toObject(AzureWorkloadSapAsePointInTimeRestoreRequest.class); - Assertions.assertEquals("fhpfeoajvgcxtx", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals("yk", model.resourceGuardOperationRequests().get(0)); Assertions.assertEquals(RecoveryType.OFFLINE, model.recoveryType()); - Assertions.assertEquals("jraaeranokqguk", model.sourceResourceId()); - Assertions.assertEquals("nvbroylaxx", model.propertyBag().get("lcdisd")); - Assertions.assertEquals(OverwriteOptions.INVALID, model.targetInfo().overwriteOption()); - Assertions.assertEquals("jsvg", model.targetInfo().containerId()); - Assertions.assertEquals("whryvycytdcl", model.targetInfo().databaseName()); - Assertions.assertEquals("ccknfnwmbtmvp", model.targetInfo().targetDirectoryForFileRestore()); + Assertions.assertEquals("rupdwvnphcnzq", model.sourceResourceId()); + Assertions.assertEquals("hmqrhvthlaiwdc", model.propertyBag().get("smlzzhzdtxetlgy")); + Assertions.assertEquals(OverwriteOptions.FAIL_ON_CONFLICT, model.targetInfo().overwriteOption()); + Assertions.assertEquals("wgdnqzbr", model.targetInfo().containerId()); + Assertions.assertEquals("spzhzmtksjc", model.targetInfo().databaseName()); + Assertions.assertEquals("digsxcdgl", model.targetInfo().targetDirectoryForFileRestore()); Assertions.assertEquals(RecoveryMode.SNAPSHOT_ATTACH, model.recoveryMode()); - Assertions.assertEquals("httz", model.targetResourceGroupName()); - Assertions.assertEquals("edxihchrphkmcrj", model.userAssignedManagedIdentityDetails().identityArmId()); - Assertions.assertEquals("nsdfzpbgtgky", model.userAssignedManagedIdentityDetails().identityName()); - Assertions.assertEquals("ghrjeuutl", + Assertions.assertEquals("euachtomfl", model.targetResourceGroupName()); + Assertions.assertEquals("swfpfmd", model.userAssignedManagedIdentityDetails().identityArmId()); + Assertions.assertEquals("cxnmskwhqjjyslu", model.userAssignedManagedIdentityDetails().identityName()); + Assertions.assertEquals("shhkvpedw", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().clientId()); - Assertions.assertEquals("ez", + Assertions.assertEquals("lsrhmpqvwwskond", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().principalId()); - Assertions.assertTrue(model.snapshotRestoreParameters().skipAttachAndMount()); - Assertions.assertEquals("vbwnhhtq", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); - Assertions.assertEquals("ehgpp", model.targetVirtualMachineId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-03T07:43:33Z"), model.pointInTime()); + Assertions.assertFalse(model.snapshotRestoreParameters().skipAttachAndMount()); + Assertions.assertEquals("muvqejosovyr", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); + Assertions.assertEquals("a", model.snapshotRestoreParameters().disksToDetachOnClash().get(0)); + Assertions.assertEquals("cecybmrqbrjbbmpx", model.targetVirtualMachineId()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-02T01:00:58Z"), model.pointInTime()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AzureWorkloadSapAsePointInTimeRestoreRequest model = new AzureWorkloadSapAsePointInTimeRestoreRequest() - .withResourceGuardOperationRequests(Arrays.asList("fhpfeoajvgcxtx", "csheafidltugsr")) + .withResourceGuardOperationRequests(Arrays.asList("yk", "rexcrseqwjksghu", "gzhxog")) .withRecoveryType(RecoveryType.OFFLINE) - .withSourceResourceId("jraaeranokqguk") - .withPropertyBag(mapOf("lcdisd", "nvbroylaxx")) - .withTargetInfo(new TargetRestoreInfo().withOverwriteOption(OverwriteOptions.INVALID) - .withContainerId("jsvg") - .withDatabaseName("whryvycytdcl") - .withTargetDirectoryForFileRestore("ccknfnwmbtmvp")) + .withSourceResourceId("rupdwvnphcnzq") + .withPropertyBag( + mapOf("smlzzhzdtxetlgy", "hmqrhvthlaiwdc", "geaar", "lhqvlnnpxybafi", "lidwcwvmzegjon", "gjekglklby")) + .withTargetInfo(new TargetRestoreInfo().withOverwriteOption(OverwriteOptions.FAIL_ON_CONFLICT) + .withContainerId("wgdnqzbr") + .withDatabaseName("spzhzmtksjc") + .withTargetDirectoryForFileRestore("digsxcdgl")) .withRecoveryMode(RecoveryMode.SNAPSHOT_ATTACH) - .withTargetResourceGroupName("httz") + .withTargetResourceGroupName("euachtomfl") .withUserAssignedManagedIdentityDetails( - new UserAssignedManagedIdentityDetails().withIdentityArmId("edxihchrphkmcrj") - .withIdentityName("nsdfzpbgtgky") - .withUserAssignedIdentityProperties( - new UserAssignedIdentityProperties().withClientId("ghrjeuutl").withPrincipalId("ez"))) - .withSnapshotRestoreParameters(new SnapshotRestoreParameters().withSkipAttachAndMount(true) - .withLogPointInTimeForDBRecovery("vbwnhhtq")) - .withTargetVirtualMachineId("ehgpp") - .withPointInTime(OffsetDateTime.parse("2021-08-03T07:43:33Z")); + new UserAssignedManagedIdentityDetails().withIdentityArmId("swfpfmd") + .withIdentityName("cxnmskwhqjjyslu") + .withUserAssignedIdentityProperties(new UserAssignedIdentityProperties().withClientId("shhkvpedw") + .withPrincipalId("lsrhmpqvwwskond"))) + .withSnapshotRestoreParameters(new SnapshotRestoreParameters().withSkipAttachAndMount(false) + .withLogPointInTimeForDBRecovery("muvqejosovyr") + .withDisksToDetachOnClash(Arrays.asList("a", "sinuqtljqobbpih"))) + .withTargetVirtualMachineId("cecybmrqbrjbbmpx") + .withPointInTime(OffsetDateTime.parse("2021-06-02T01:00:58Z")); model = BinaryData.fromObject(model).toObject(AzureWorkloadSapAsePointInTimeRestoreRequest.class); - Assertions.assertEquals("fhpfeoajvgcxtx", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals("yk", model.resourceGuardOperationRequests().get(0)); Assertions.assertEquals(RecoveryType.OFFLINE, model.recoveryType()); - Assertions.assertEquals("jraaeranokqguk", model.sourceResourceId()); - Assertions.assertEquals("nvbroylaxx", model.propertyBag().get("lcdisd")); - Assertions.assertEquals(OverwriteOptions.INVALID, model.targetInfo().overwriteOption()); - Assertions.assertEquals("jsvg", model.targetInfo().containerId()); - Assertions.assertEquals("whryvycytdcl", model.targetInfo().databaseName()); - Assertions.assertEquals("ccknfnwmbtmvp", model.targetInfo().targetDirectoryForFileRestore()); + Assertions.assertEquals("rupdwvnphcnzq", model.sourceResourceId()); + Assertions.assertEquals("hmqrhvthlaiwdc", model.propertyBag().get("smlzzhzdtxetlgy")); + Assertions.assertEquals(OverwriteOptions.FAIL_ON_CONFLICT, model.targetInfo().overwriteOption()); + Assertions.assertEquals("wgdnqzbr", model.targetInfo().containerId()); + Assertions.assertEquals("spzhzmtksjc", model.targetInfo().databaseName()); + Assertions.assertEquals("digsxcdgl", model.targetInfo().targetDirectoryForFileRestore()); Assertions.assertEquals(RecoveryMode.SNAPSHOT_ATTACH, model.recoveryMode()); - Assertions.assertEquals("httz", model.targetResourceGroupName()); - Assertions.assertEquals("edxihchrphkmcrj", model.userAssignedManagedIdentityDetails().identityArmId()); - Assertions.assertEquals("nsdfzpbgtgky", model.userAssignedManagedIdentityDetails().identityName()); - Assertions.assertEquals("ghrjeuutl", + Assertions.assertEquals("euachtomfl", model.targetResourceGroupName()); + Assertions.assertEquals("swfpfmd", model.userAssignedManagedIdentityDetails().identityArmId()); + Assertions.assertEquals("cxnmskwhqjjyslu", model.userAssignedManagedIdentityDetails().identityName()); + Assertions.assertEquals("shhkvpedw", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().clientId()); - Assertions.assertEquals("ez", + Assertions.assertEquals("lsrhmpqvwwskond", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().principalId()); - Assertions.assertTrue(model.snapshotRestoreParameters().skipAttachAndMount()); - Assertions.assertEquals("vbwnhhtq", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); - Assertions.assertEquals("ehgpp", model.targetVirtualMachineId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-03T07:43:33Z"), model.pointInTime()); + Assertions.assertFalse(model.snapshotRestoreParameters().skipAttachAndMount()); + Assertions.assertEquals("muvqejosovyr", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); + Assertions.assertEquals("a", model.snapshotRestoreParameters().disksToDetachOnClash().get(0)); + Assertions.assertEquals("cecybmrqbrjbbmpx", model.targetVirtualMachineId()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-02T01:00:58Z"), model.pointInTime()); } // Use "Map.of" if available diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapAseRecoveryPointTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapAseRecoveryPointTests.java index 83c9026f75c93..817889f1883e8 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapAseRecoveryPointTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapAseRecoveryPointTests.java @@ -19,24 +19,23 @@ public final class AzureWorkloadSapAseRecoveryPointTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureWorkloadSapAseRecoveryPoint model = BinaryData.fromString( - "{\"objectType\":\"AzureWorkloadSAPAseRecoveryPoint\",\"recoveryPointTimeInUTC\":\"2021-06-19T07:52:19Z\",\"type\":\"Differential\",\"recoveryPointTierDetails\":[{\"type\":\"HardenedRP\",\"status\":\"Valid\",\"extendedInfo\":{\"yfxrx\":\"tdqoaxoruzfgsq\"}}],\"recoveryPointMoveReadinessInfo\":{\"wxuqlcvydypatdoo\":{\"isReadyForMove\":false,\"additionalInfo\":\"amxjezwlw\"},\"nuj\":{\"isReadyForMove\":false,\"additionalInfo\":\"niodkooeb\"}},\"recoveryPointProperties\":{\"expiryTime\":\"msbvdkcrodtjinf\",\"ruleName\":\"lfltka\",\"isSoftDeleted\":true,\"immutabilityProperties\":{\"isImmutable\":false,\"expiryTime\":\"2021-02-27T20:28:50Z\"}},\"threatStatus\":\"Unknown\",\"threatInfo\":[{\"threatTitle\":\"ggkfpagaowpul\",\"threatDescription\":\"blylsyxkqjnsj\",\"lastUpdatedTime\":\"2021-01-29T11:24:17Z\",\"threatState\":\"Resolved\",\"threatStartTime\":\"2020-12-31T13:39:58Z\",\"threatEndTime\":\"2020-12-21T17:25:21Z\",\"threatURI\":\"sz\",\"threatSeverity\":\"Warning\"},{\"threatTitle\":\"sbzkf\",\"threatDescription\":\"eyvpnqicvinvkj\",\"lastUpdatedTime\":\"2021-10-15T12:56:31Z\",\"threatState\":\"Resolved\",\"threatStartTime\":\"2021-03-13T06:03:41Z\",\"threatEndTime\":\"2021-04-13T12:14:12Z\",\"threatURI\":\"clewyhm\",\"threatSeverity\":\"Warning\"},{\"threatTitle\":\"ztzp\",\"threatDescription\":\"ncckw\",\"lastUpdatedTime\":\"2021-07-01T12:09:49Z\",\"threatState\":\"Ignored\",\"threatStartTime\":\"2021-07-28T19:48:05Z\",\"threatEndTime\":\"2021-09-11T06:40:57Z\",\"threatURI\":\"yq\",\"threatSeverity\":\"Warning\"}]}") + "{\"objectType\":\"AzureWorkloadSAPAseRecoveryPoint\",\"recoveryPointTimeInUTC\":\"2021-06-25T06:45:10Z\",\"type\":\"Incremental\",\"recoveryPointTierDetails\":[{\"type\":\"Invalid\",\"status\":\"Disabled\",\"extendedInfo\":{\"wrv\":\"ikayuhqlbjbsybb\"}},{\"type\":\"IASnapshotRP\",\"status\":\"Disabled\",\"extendedInfo\":{\"wbdsr\":\"ipaslthaqfxssmwu\"}}],\"recoveryPointMoveReadinessInfo\":{\"kdw\":{\"isReadyForMove\":true,\"additionalInfo\":\"neuyow\"},\"rcgp\":{\"isReadyForMove\":false,\"additionalInfo\":\"ib\"}},\"recoveryPointProperties\":{\"expiryTime\":\"zimejzanlfzx\",\"ruleName\":\"vrmbzono\",\"isSoftDeleted\":true,\"immutabilityProperties\":{\"isImmutable\":false,\"expiryTime\":\"2021-03-30T10:26:12Z\"}},\"threatStatus\":\"Healthy\",\"threatInfo\":[{\"threatTitle\":\"frl\",\"threatDescription\":\"szrnwo\",\"lastUpdatedTime\":\"2020-12-28T18:13:42Z\",\"threatState\":\"Ignored\",\"threatStartTime\":\"2020-12-22T05:34:35Z\",\"threatEndTime\":\"2021-03-08T14:36:47Z\",\"threatURI\":\"lwbtlhf\",\"threatSeverity\":\"Critical\"},{\"threatTitle\":\"dhszfjv\",\"threatDescription\":\"gofel\",\"lastUpdatedTime\":\"2021-02-26T15:25:50Z\",\"threatState\":\"Ignored\",\"threatStartTime\":\"2021-09-01T07:33:06Z\",\"threatEndTime\":\"2021-05-17T18:51:39Z\",\"threatURI\":\"vriiio\",\"threatSeverity\":\"Critical\"}]}") .toObject(AzureWorkloadSapAseRecoveryPoint.class); - Assertions.assertEquals(ThreatStatus.UNKNOWN, model.threatStatus()); - Assertions.assertEquals(ThreatState.RESOLVED, model.threatInfo().get(0).threatState()); - Assertions.assertEquals(ThreatSeverity.WARNING, model.threatInfo().get(0).threatSeverity()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-19T07:52:19Z"), model.recoveryPointTimeInUtc()); - Assertions.assertEquals(RestorePointType.DIFFERENTIAL, model.type()); - Assertions.assertEquals("tdqoaxoruzfgsq", model.recoveryPointTierDetails().get(0).extendedInfo().get("yfxrx")); - Assertions.assertEquals(RecoveryPointTierType.HARDENED_RP, model.recoveryPointTierDetails().get(0).type()); - Assertions.assertEquals(RecoveryPointTierStatus.VALID, model.recoveryPointTierDetails().get(0).status()); - Assertions.assertFalse(model.recoveryPointMoveReadinessInfo().get("wxuqlcvydypatdoo").isReadyForMove()); - Assertions.assertEquals("amxjezwlw", - model.recoveryPointMoveReadinessInfo().get("wxuqlcvydypatdoo").additionalInfo()); - Assertions.assertEquals("msbvdkcrodtjinf", model.recoveryPointProperties().expiryTime()); - Assertions.assertEquals("lfltka", model.recoveryPointProperties().ruleName()); + Assertions.assertEquals(ThreatStatus.HEALTHY, model.threatStatus()); + Assertions.assertEquals(ThreatState.IGNORED, model.threatInfo().get(0).threatState()); + Assertions.assertEquals(ThreatSeverity.CRITICAL, model.threatInfo().get(0).threatSeverity()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-25T06:45:10Z"), model.recoveryPointTimeInUtc()); + Assertions.assertEquals(RestorePointType.INCREMENTAL, model.type()); + Assertions.assertEquals("ikayuhqlbjbsybb", model.recoveryPointTierDetails().get(0).extendedInfo().get("wrv")); + Assertions.assertEquals(RecoveryPointTierType.INVALID, model.recoveryPointTierDetails().get(0).type()); + Assertions.assertEquals(RecoveryPointTierStatus.DISABLED, model.recoveryPointTierDetails().get(0).status()); + Assertions.assertTrue(model.recoveryPointMoveReadinessInfo().get("kdw").isReadyForMove()); + Assertions.assertEquals("neuyow", model.recoveryPointMoveReadinessInfo().get("kdw").additionalInfo()); + Assertions.assertEquals("zimejzanlfzx", model.recoveryPointProperties().expiryTime()); + Assertions.assertEquals("vrmbzono", model.recoveryPointProperties().ruleName()); Assertions.assertTrue(model.recoveryPointProperties().isSoftDeleted()); Assertions.assertFalse(model.recoveryPointProperties().immutabilityProperties().isImmutable()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-27T20:28:50Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-03-30T10:26:12Z"), model.recoveryPointProperties().immutabilityProperties().expiryTime()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapAseRestoreRequestTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapAseRestoreRequestTests.java index aa900fd476ad9..a392505698a7d 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapAseRestoreRequestTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapAseRestoreRequestTests.java @@ -22,70 +22,72 @@ public final class AzureWorkloadSapAseRestoreRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureWorkloadSapAseRestoreRequest model = BinaryData.fromString( - "{\"objectType\":\"AzureWorkloadSAPAseRestoreRequest\",\"recoveryType\":\"OriginalLocation\",\"sourceResourceId\":\"ssjhoiftxfkf\",\"propertyBag\":{\"biqtgdq\":\"prhptillu\"},\"targetInfo\":{\"overwriteOption\":\"Invalid\",\"containerId\":\"sldrizetpwbral\",\"databaseName\":\"ibph\",\"targetDirectoryForFileRestore\":\"zmizakakan\"},\"recoveryMode\":\"SnapshotAttachAndRecover\",\"targetResourceGroupName\":\"n\",\"userAssignedManagedIdentityDetails\":{\"identityArmId\":\"ajoylhjl\",\"identityName\":\"oyxprimr\",\"userAssignedIdentityProperties\":{\"clientId\":\"teecjmeislst\",\"principalId\":\"sylwxdzaumweooh\"}},\"snapshotRestoreParameters\":{\"skipAttachAndMount\":true,\"logPointInTimeForDBRecovery\":\"zboyjathwt\"},\"targetVirtualMachineId\":\"lbaemwmdxmeb\",\"resourceGuardOperationRequests\":[\"cjpahl\",\"veabfqxnmwmqtib\",\"yijddtvqcttad\"]}") + "{\"objectType\":\"AzureWorkloadSAPAseRestoreRequest\",\"recoveryType\":\"Offline\",\"sourceResourceId\":\"voujkxibdafhrk\",\"propertyBag\":{\"vfb\":\"omkxf\",\"rhpw\":\"dy\",\"o\":\"gddeimaw\",\"aztb\":\"gkkumuikjcj\"},\"targetInfo\":{\"overwriteOption\":\"Invalid\",\"containerId\":\"owxwcomli\",\"databaseName\":\"twvc\",\"targetDirectoryForFileRestore\":\"swkacvej\"},\"recoveryMode\":\"SnapshotAttachAndRecover\",\"targetResourceGroupName\":\"lvhbwrnf\",\"userAssignedManagedIdentityDetails\":{\"identityArmId\":\"ddpqt\",\"identityName\":\"hn\",\"userAssignedIdentityProperties\":{\"clientId\":\"oya\",\"principalId\":\"coeqswankltytm\"}},\"snapshotRestoreParameters\":{\"skipAttachAndMount\":true,\"logPointInTimeForDBRecovery\":\"nnhdrl\",\"disksToDetachOnClash\":[\"jcsgguxhemlwy\"]},\"targetVirtualMachineId\":\"eeczgfbu\",\"resourceGuardOperationRequests\":[\"elssxblycs\",\"zujksrlsmdes\",\"plpvm\",\"cdoewbidyv\"]}") .toObject(AzureWorkloadSapAseRestoreRequest.class); - Assertions.assertEquals("cjpahl", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals(RecoveryType.ORIGINAL_LOCATION, model.recoveryType()); - Assertions.assertEquals("ssjhoiftxfkf", model.sourceResourceId()); - Assertions.assertEquals("prhptillu", model.propertyBag().get("biqtgdq")); + Assertions.assertEquals("elssxblycs", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals(RecoveryType.OFFLINE, model.recoveryType()); + Assertions.assertEquals("voujkxibdafhrk", model.sourceResourceId()); + Assertions.assertEquals("omkxf", model.propertyBag().get("vfb")); Assertions.assertEquals(OverwriteOptions.INVALID, model.targetInfo().overwriteOption()); - Assertions.assertEquals("sldrizetpwbral", model.targetInfo().containerId()); - Assertions.assertEquals("ibph", model.targetInfo().databaseName()); - Assertions.assertEquals("zmizakakan", model.targetInfo().targetDirectoryForFileRestore()); + Assertions.assertEquals("owxwcomli", model.targetInfo().containerId()); + Assertions.assertEquals("twvc", model.targetInfo().databaseName()); + Assertions.assertEquals("swkacvej", model.targetInfo().targetDirectoryForFileRestore()); Assertions.assertEquals(RecoveryMode.SNAPSHOT_ATTACH_AND_RECOVER, model.recoveryMode()); - Assertions.assertEquals("n", model.targetResourceGroupName()); - Assertions.assertEquals("ajoylhjl", model.userAssignedManagedIdentityDetails().identityArmId()); - Assertions.assertEquals("oyxprimr", model.userAssignedManagedIdentityDetails().identityName()); - Assertions.assertEquals("teecjmeislst", + Assertions.assertEquals("lvhbwrnf", model.targetResourceGroupName()); + Assertions.assertEquals("ddpqt", model.userAssignedManagedIdentityDetails().identityArmId()); + Assertions.assertEquals("hn", model.userAssignedManagedIdentityDetails().identityName()); + Assertions.assertEquals("oya", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().clientId()); - Assertions.assertEquals("sylwxdzaumweooh", + Assertions.assertEquals("coeqswankltytm", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().principalId()); Assertions.assertTrue(model.snapshotRestoreParameters().skipAttachAndMount()); - Assertions.assertEquals("zboyjathwt", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); - Assertions.assertEquals("lbaemwmdxmeb", model.targetVirtualMachineId()); + Assertions.assertEquals("nnhdrl", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); + Assertions.assertEquals("jcsgguxhemlwy", model.snapshotRestoreParameters().disksToDetachOnClash().get(0)); + Assertions.assertEquals("eeczgfbu", model.targetVirtualMachineId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AzureWorkloadSapAseRestoreRequest model = new AzureWorkloadSapAseRestoreRequest() - .withResourceGuardOperationRequests(Arrays.asList("cjpahl", "veabfqxnmwmqtib", "yijddtvqcttad")) - .withRecoveryType(RecoveryType.ORIGINAL_LOCATION) - .withSourceResourceId("ssjhoiftxfkf") - .withPropertyBag(mapOf("biqtgdq", "prhptillu")) + .withResourceGuardOperationRequests(Arrays.asList("elssxblycs", "zujksrlsmdes", "plpvm", "cdoewbidyv")) + .withRecoveryType(RecoveryType.OFFLINE) + .withSourceResourceId("voujkxibdafhrk") + .withPropertyBag(mapOf("vfb", "omkxf", "rhpw", "dy", "o", "gddeimaw", "aztb", "gkkumuikjcj")) .withTargetInfo(new TargetRestoreInfo().withOverwriteOption(OverwriteOptions.INVALID) - .withContainerId("sldrizetpwbral") - .withDatabaseName("ibph") - .withTargetDirectoryForFileRestore("zmizakakan")) + .withContainerId("owxwcomli") + .withDatabaseName("twvc") + .withTargetDirectoryForFileRestore("swkacvej")) .withRecoveryMode(RecoveryMode.SNAPSHOT_ATTACH_AND_RECOVER) - .withTargetResourceGroupName("n") - .withUserAssignedManagedIdentityDetails(new UserAssignedManagedIdentityDetails() - .withIdentityArmId("ajoylhjl") - .withIdentityName("oyxprimr") - .withUserAssignedIdentityProperties(new UserAssignedIdentityProperties().withClientId("teecjmeislst") - .withPrincipalId("sylwxdzaumweooh"))) + .withTargetResourceGroupName("lvhbwrnf") + .withUserAssignedManagedIdentityDetails(new UserAssignedManagedIdentityDetails().withIdentityArmId("ddpqt") + .withIdentityName("hn") + .withUserAssignedIdentityProperties( + new UserAssignedIdentityProperties().withClientId("oya").withPrincipalId("coeqswankltytm"))) .withSnapshotRestoreParameters(new SnapshotRestoreParameters().withSkipAttachAndMount(true) - .withLogPointInTimeForDBRecovery("zboyjathwt")) - .withTargetVirtualMachineId("lbaemwmdxmeb"); + .withLogPointInTimeForDBRecovery("nnhdrl") + .withDisksToDetachOnClash(Arrays.asList("jcsgguxhemlwy"))) + .withTargetVirtualMachineId("eeczgfbu"); model = BinaryData.fromObject(model).toObject(AzureWorkloadSapAseRestoreRequest.class); - Assertions.assertEquals("cjpahl", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals(RecoveryType.ORIGINAL_LOCATION, model.recoveryType()); - Assertions.assertEquals("ssjhoiftxfkf", model.sourceResourceId()); - Assertions.assertEquals("prhptillu", model.propertyBag().get("biqtgdq")); + Assertions.assertEquals("elssxblycs", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals(RecoveryType.OFFLINE, model.recoveryType()); + Assertions.assertEquals("voujkxibdafhrk", model.sourceResourceId()); + Assertions.assertEquals("omkxf", model.propertyBag().get("vfb")); Assertions.assertEquals(OverwriteOptions.INVALID, model.targetInfo().overwriteOption()); - Assertions.assertEquals("sldrizetpwbral", model.targetInfo().containerId()); - Assertions.assertEquals("ibph", model.targetInfo().databaseName()); - Assertions.assertEquals("zmizakakan", model.targetInfo().targetDirectoryForFileRestore()); + Assertions.assertEquals("owxwcomli", model.targetInfo().containerId()); + Assertions.assertEquals("twvc", model.targetInfo().databaseName()); + Assertions.assertEquals("swkacvej", model.targetInfo().targetDirectoryForFileRestore()); Assertions.assertEquals(RecoveryMode.SNAPSHOT_ATTACH_AND_RECOVER, model.recoveryMode()); - Assertions.assertEquals("n", model.targetResourceGroupName()); - Assertions.assertEquals("ajoylhjl", model.userAssignedManagedIdentityDetails().identityArmId()); - Assertions.assertEquals("oyxprimr", model.userAssignedManagedIdentityDetails().identityName()); - Assertions.assertEquals("teecjmeislst", + Assertions.assertEquals("lvhbwrnf", model.targetResourceGroupName()); + Assertions.assertEquals("ddpqt", model.userAssignedManagedIdentityDetails().identityArmId()); + Assertions.assertEquals("hn", model.userAssignedManagedIdentityDetails().identityName()); + Assertions.assertEquals("oya", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().clientId()); - Assertions.assertEquals("sylwxdzaumweooh", + Assertions.assertEquals("coeqswankltytm", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().principalId()); Assertions.assertTrue(model.snapshotRestoreParameters().skipAttachAndMount()); - Assertions.assertEquals("zboyjathwt", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); - Assertions.assertEquals("lbaemwmdxmeb", model.targetVirtualMachineId()); + Assertions.assertEquals("nnhdrl", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); + Assertions.assertEquals("jcsgguxhemlwy", model.snapshotRestoreParameters().disksToDetachOnClash().get(0)); + Assertions.assertEquals("eeczgfbu", model.targetVirtualMachineId()); } // Use "Map.of" if available diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapHanaPointInTimeRecoveryPointTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapHanaPointInTimeRecoveryPointTests.java index 9fde445cab44d..b071ffd122809 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapHanaPointInTimeRecoveryPointTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapHanaPointInTimeRecoveryPointTests.java @@ -19,27 +19,26 @@ public final class AzureWorkloadSapHanaPointInTimeRecoveryPointTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureWorkloadSapHanaPointInTimeRecoveryPoint model = BinaryData.fromString( - "{\"objectType\":\"AzureWorkloadSAPHanaPointInTimeRecoveryPoint\",\"timeRanges\":[{\"startTime\":\"2021-06-03T11:49:50Z\",\"endTime\":\"2021-12-04T21:04:44Z\"},{\"startTime\":\"2021-07-06T22:10:43Z\",\"endTime\":\"2021-02-03T18:39:52Z\"}],\"recoveryPointTimeInUTC\":\"2021-09-10T06:03:01Z\",\"type\":\"Full\",\"recoveryPointTierDetails\":[{\"type\":\"HardenedRP\",\"status\":\"Deleted\",\"extendedInfo\":{\"railvpnppfuf\":\"acffgdkzzewkfvhq\"}}],\"recoveryPointMoveReadinessInfo\":{\"gafcnihgwqapnedg\":{\"isReadyForMove\":false,\"additionalInfo\":\"dlxyjrxs\"},\"dcvd\":{\"isReadyForMove\":true,\"additionalInfo\":\"kcvqvpke\"},\"j\":{\"isReadyForMove\":false,\"additionalInfo\":\"odsotbobzdop\"}},\"recoveryPointProperties\":{\"expiryTime\":\"hdldwmgxcxrsl\",\"ruleName\":\"utwu\",\"isSoftDeleted\":true,\"immutabilityProperties\":{\"isImmutable\":false,\"expiryTime\":\"2021-06-19T23:56:56Z\"}},\"threatStatus\":\"Warning\",\"threatInfo\":[{\"threatTitle\":\"qsluicp\",\"threatDescription\":\"gk\",\"lastUpdatedTime\":\"2021-04-02T01:13:45Z\",\"threatState\":\"Ignored\",\"threatStartTime\":\"2021-08-20T02:02:10Z\",\"threatEndTime\":\"2021-06-04T21:38:56Z\",\"threatURI\":\"odfvuefywsbp\",\"threatSeverity\":\"High\"}]}") + "{\"objectType\":\"AzureWorkloadSAPHanaPointInTimeRecoveryPoint\",\"timeRanges\":[{\"startTime\":\"2021-04-29T07:40:11Z\",\"endTime\":\"2021-06-05T03:50:49Z\"},{\"startTime\":\"2021-10-30T10:52:42Z\",\"endTime\":\"2021-10-26T15:21:06Z\"}],\"recoveryPointTimeInUTC\":\"2021-12-01T19:08:33Z\",\"type\":\"Incremental\",\"recoveryPointTierDetails\":[{\"type\":\"IASnapshotRP\",\"status\":\"Invalid\",\"extendedInfo\":{\"wi\":\"rvmnpkukghimdblx\",\"rey\":\"fnjhfjxwmszkkfo\",\"elpcirelsfeaenwa\":\"kzikfjawneaivxwc\",\"xbjhwuaanozjosph\":\"fatkld\"}},{\"type\":\"Invalid\",\"status\":\"Invalid\",\"extendedInfo\":{\"vimjwos\":\"l\",\"tcs\":\"tx\",\"zikhl\":\"fcktqumiekke\",\"gge\":\"fjhdg\"}}],\"recoveryPointMoveReadinessInfo\":{\"xcyjmoadsuvarmy\":{\"isReadyForMove\":true,\"additionalInfo\":\"aeqidbqfatpxll\"},\"yc\":{\"isReadyForMove\":false,\"additionalInfo\":\"sjqbjhhyxxrw\"},\"xkgymareqnajxqu\":{\"isReadyForMove\":true,\"additionalInfo\":\"p\"}},\"recoveryPointProperties\":{\"expiryTime\":\"ky\",\"ruleName\":\"beddgssofw\",\"isSoftDeleted\":true,\"immutabilityProperties\":{\"isImmutable\":false,\"expiryTime\":\"2021-02-22T22:05:21Z\"}},\"threatStatus\":\"NotAvailable\",\"threatInfo\":[{\"threatTitle\":\"jpxac\",\"threatDescription\":\"udfnbyxba\",\"lastUpdatedTime\":\"2021-12-06T14:29:26Z\",\"threatState\":\"Ignored\",\"threatStartTime\":\"2021-08-01T03:10:23Z\",\"threatEndTime\":\"2021-10-17T00:26:42Z\",\"threatURI\":\"imrzrtuzqog\",\"threatSeverity\":\"Warning\"},{\"threatTitle\":\"evfdnwnwm\",\"threatDescription\":\"zsyyceuzso\",\"lastUpdatedTime\":\"2021-11-16T20:18:39Z\",\"threatState\":\"Resolved\",\"threatStartTime\":\"2021-06-01T21:04:39Z\",\"threatEndTime\":\"2021-03-16T15:21:37Z\",\"threatURI\":\"rthzvaytdwkqbrqu\",\"threatSeverity\":\"Warning\"}]}") .toObject(AzureWorkloadSapHanaPointInTimeRecoveryPoint.class); - Assertions.assertEquals(ThreatStatus.WARNING, model.threatStatus()); + Assertions.assertEquals(ThreatStatus.NOT_AVAILABLE, model.threatStatus()); Assertions.assertEquals(ThreatState.IGNORED, model.threatInfo().get(0).threatState()); - Assertions.assertEquals(ThreatSeverity.HIGH, model.threatInfo().get(0).threatSeverity()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-10T06:03:01Z"), model.recoveryPointTimeInUtc()); - Assertions.assertEquals(RestorePointType.FULL, model.type()); - Assertions.assertEquals("acffgdkzzewkfvhq", - model.recoveryPointTierDetails().get(0).extendedInfo().get("railvpnppfuf")); - Assertions.assertEquals(RecoveryPointTierType.HARDENED_RP, model.recoveryPointTierDetails().get(0).type()); - Assertions.assertEquals(RecoveryPointTierStatus.DELETED, model.recoveryPointTierDetails().get(0).status()); - Assertions.assertFalse(model.recoveryPointMoveReadinessInfo().get("gafcnihgwqapnedg").isReadyForMove()); - Assertions.assertEquals("dlxyjrxs", - model.recoveryPointMoveReadinessInfo().get("gafcnihgwqapnedg").additionalInfo()); - Assertions.assertEquals("hdldwmgxcxrsl", model.recoveryPointProperties().expiryTime()); - Assertions.assertEquals("utwu", model.recoveryPointProperties().ruleName()); + Assertions.assertEquals(ThreatSeverity.WARNING, model.threatInfo().get(0).threatSeverity()); + Assertions.assertEquals(OffsetDateTime.parse("2021-12-01T19:08:33Z"), model.recoveryPointTimeInUtc()); + Assertions.assertEquals(RestorePointType.INCREMENTAL, model.type()); + Assertions.assertEquals("rvmnpkukghimdblx", model.recoveryPointTierDetails().get(0).extendedInfo().get("wi")); + Assertions.assertEquals(RecoveryPointTierType.IASNAPSHOT_RP, model.recoveryPointTierDetails().get(0).type()); + Assertions.assertEquals(RecoveryPointTierStatus.INVALID, model.recoveryPointTierDetails().get(0).status()); + Assertions.assertTrue(model.recoveryPointMoveReadinessInfo().get("xcyjmoadsuvarmy").isReadyForMove()); + Assertions.assertEquals("aeqidbqfatpxll", + model.recoveryPointMoveReadinessInfo().get("xcyjmoadsuvarmy").additionalInfo()); + Assertions.assertEquals("ky", model.recoveryPointProperties().expiryTime()); + Assertions.assertEquals("beddgssofw", model.recoveryPointProperties().ruleName()); Assertions.assertTrue(model.recoveryPointProperties().isSoftDeleted()); Assertions.assertFalse(model.recoveryPointProperties().immutabilityProperties().isImmutable()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-19T23:56:56Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-02-22T22:05:21Z"), model.recoveryPointProperties().immutabilityProperties().expiryTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-03T11:49:50Z"), model.timeRanges().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-12-04T21:04:44Z"), model.timeRanges().get(0).endTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-04-29T07:40:11Z"), model.timeRanges().get(0).startTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-05T03:50:49Z"), model.timeRanges().get(0).endTime()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapHanaPointInTimeRestoreRequestTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapHanaPointInTimeRestoreRequestTests.java index 03243a6d21570..08fa5569bf843 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapHanaPointInTimeRestoreRequestTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapHanaPointInTimeRestoreRequestTests.java @@ -23,72 +23,76 @@ public final class AzureWorkloadSapHanaPointInTimeRestoreRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureWorkloadSapHanaPointInTimeRestoreRequest model = BinaryData.fromString( - "{\"objectType\":\"AzureWorkloadSAPHanaPointInTimeRestoreRequest\",\"pointInTime\":\"2021-01-10T04:33:44Z\",\"recoveryType\":\"Invalid\",\"sourceResourceId\":\"mjyhohujswtwko\",\"propertyBag\":{\"jwltlwtjjgu\":\"culkbawpfaj\",\"oaimlnw\":\"talhsnvkcdmxzr\"},\"targetInfo\":{\"overwriteOption\":\"Invalid\",\"containerId\":\"ylweazulc\",\"databaseName\":\"thwwn\",\"targetDirectoryForFileRestore\":\"hlf\"},\"recoveryMode\":\"Invalid\",\"targetResourceGroupName\":\"ch\",\"userAssignedManagedIdentityDetails\":{\"identityArmId\":\"fb\",\"identityName\":\"snfepgfewetwlyx\",\"userAssignedIdentityProperties\":{\"clientId\":\"xykxhdj\",\"principalId\":\"immbcx\"}},\"snapshotRestoreParameters\":{\"skipAttachAndMount\":true,\"logPointInTimeForDBRecovery\":\"orxvxcjzhqiz\"},\"targetVirtualMachineId\":\"pxtgqscjav\",\"resourceGuardOperationRequests\":[\"uhdqazk\",\"tgguwpijrajcivmm\",\"hfcf\",\"wrxgkneuvy\"]}") + "{\"objectType\":\"AzureWorkloadSAPHanaPointInTimeRestoreRequest\",\"pointInTime\":\"2021-08-25T06:01:43Z\",\"recoveryType\":\"Invalid\",\"sourceResourceId\":\"o\",\"propertyBag\":{\"lmv\":\"rxklobdxnazpmk\",\"zxlioh\":\"vfxzopjh\"},\"targetInfo\":{\"overwriteOption\":\"FailOnConflict\",\"containerId\":\"fg\",\"databaseName\":\"ba\",\"targetDirectoryForFileRestore\":\"cbb\"},\"recoveryMode\":\"SnapshotAttachAndRecover\",\"targetResourceGroupName\":\"yknapqofyuicdh\",\"userAssignedManagedIdentityDetails\":{\"identityArmId\":\"ybww\",\"identityName\":\"d\",\"userAssignedIdentityProperties\":{\"clientId\":\"idmhmwf\",\"principalId\":\"lfmu\"}},\"snapshotRestoreParameters\":{\"skipAttachAndMount\":false,\"logPointInTimeForDBRecovery\":\"ccrrvweyoxoyyu\",\"disksToDetachOnClash\":[\"aimmoiroqb\"]},\"targetVirtualMachineId\":\"hbragapyyr\",\"resourceGuardOperationRequests\":[\"vbpavbopfppdbw\",\"upgahxkum\",\"sjcaacfdmmcpugm\",\"hqepvufhbzehewh\"]}") .toObject(AzureWorkloadSapHanaPointInTimeRestoreRequest.class); - Assertions.assertEquals("uhdqazk", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals("vbpavbopfppdbw", model.resourceGuardOperationRequests().get(0)); Assertions.assertEquals(RecoveryType.INVALID, model.recoveryType()); - Assertions.assertEquals("mjyhohujswtwko", model.sourceResourceId()); - Assertions.assertEquals("culkbawpfaj", model.propertyBag().get("jwltlwtjjgu")); - Assertions.assertEquals(OverwriteOptions.INVALID, model.targetInfo().overwriteOption()); - Assertions.assertEquals("ylweazulc", model.targetInfo().containerId()); - Assertions.assertEquals("thwwn", model.targetInfo().databaseName()); - Assertions.assertEquals("hlf", model.targetInfo().targetDirectoryForFileRestore()); - Assertions.assertEquals(RecoveryMode.INVALID, model.recoveryMode()); - Assertions.assertEquals("ch", model.targetResourceGroupName()); - Assertions.assertEquals("fb", model.userAssignedManagedIdentityDetails().identityArmId()); - Assertions.assertEquals("snfepgfewetwlyx", model.userAssignedManagedIdentityDetails().identityName()); - Assertions.assertEquals("xykxhdj", + Assertions.assertEquals("o", model.sourceResourceId()); + Assertions.assertEquals("rxklobdxnazpmk", model.propertyBag().get("lmv")); + Assertions.assertEquals(OverwriteOptions.FAIL_ON_CONFLICT, model.targetInfo().overwriteOption()); + Assertions.assertEquals("fg", model.targetInfo().containerId()); + Assertions.assertEquals("ba", model.targetInfo().databaseName()); + Assertions.assertEquals("cbb", model.targetInfo().targetDirectoryForFileRestore()); + Assertions.assertEquals(RecoveryMode.SNAPSHOT_ATTACH_AND_RECOVER, model.recoveryMode()); + Assertions.assertEquals("yknapqofyuicdh", model.targetResourceGroupName()); + Assertions.assertEquals("ybww", model.userAssignedManagedIdentityDetails().identityArmId()); + Assertions.assertEquals("d", model.userAssignedManagedIdentityDetails().identityName()); + Assertions.assertEquals("idmhmwf", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().clientId()); - Assertions.assertEquals("immbcx", + Assertions.assertEquals("lfmu", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().principalId()); - Assertions.assertTrue(model.snapshotRestoreParameters().skipAttachAndMount()); - Assertions.assertEquals("orxvxcjzhqiz", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); - Assertions.assertEquals("pxtgqscjav", model.targetVirtualMachineId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-10T04:33:44Z"), model.pointInTime()); + Assertions.assertFalse(model.snapshotRestoreParameters().skipAttachAndMount()); + Assertions.assertEquals("ccrrvweyoxoyyu", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); + Assertions.assertEquals("aimmoiroqb", model.snapshotRestoreParameters().disksToDetachOnClash().get(0)); + Assertions.assertEquals("hbragapyyr", model.targetVirtualMachineId()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-25T06:01:43Z"), model.pointInTime()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AzureWorkloadSapHanaPointInTimeRestoreRequest model = new AzureWorkloadSapHanaPointInTimeRestoreRequest() - .withResourceGuardOperationRequests(Arrays.asList("uhdqazk", "tgguwpijrajcivmm", "hfcf", "wrxgkneuvy")) + .withResourceGuardOperationRequests( + Arrays.asList("vbpavbopfppdbw", "upgahxkum", "sjcaacfdmmcpugm", "hqepvufhbzehewh")) .withRecoveryType(RecoveryType.INVALID) - .withSourceResourceId("mjyhohujswtwko") - .withPropertyBag(mapOf("jwltlwtjjgu", "culkbawpfaj", "oaimlnw", "talhsnvkcdmxzr")) - .withTargetInfo(new TargetRestoreInfo().withOverwriteOption(OverwriteOptions.INVALID) - .withContainerId("ylweazulc") - .withDatabaseName("thwwn") - .withTargetDirectoryForFileRestore("hlf")) - .withRecoveryMode(RecoveryMode.INVALID) - .withTargetResourceGroupName("ch") - .withUserAssignedManagedIdentityDetails(new UserAssignedManagedIdentityDetails().withIdentityArmId("fb") - .withIdentityName("snfepgfewetwlyx") + .withSourceResourceId("o") + .withPropertyBag(mapOf("lmv", "rxklobdxnazpmk", "zxlioh", "vfxzopjh")) + .withTargetInfo(new TargetRestoreInfo().withOverwriteOption(OverwriteOptions.FAIL_ON_CONFLICT) + .withContainerId("fg") + .withDatabaseName("ba") + .withTargetDirectoryForFileRestore("cbb")) + .withRecoveryMode(RecoveryMode.SNAPSHOT_ATTACH_AND_RECOVER) + .withTargetResourceGroupName("yknapqofyuicdh") + .withUserAssignedManagedIdentityDetails(new UserAssignedManagedIdentityDetails().withIdentityArmId("ybww") + .withIdentityName("d") .withUserAssignedIdentityProperties( - new UserAssignedIdentityProperties().withClientId("xykxhdj").withPrincipalId("immbcx"))) - .withSnapshotRestoreParameters(new SnapshotRestoreParameters().withSkipAttachAndMount(true) - .withLogPointInTimeForDBRecovery("orxvxcjzhqiz")) - .withTargetVirtualMachineId("pxtgqscjav") - .withPointInTime(OffsetDateTime.parse("2021-01-10T04:33:44Z")); + new UserAssignedIdentityProperties().withClientId("idmhmwf").withPrincipalId("lfmu"))) + .withSnapshotRestoreParameters(new SnapshotRestoreParameters().withSkipAttachAndMount(false) + .withLogPointInTimeForDBRecovery("ccrrvweyoxoyyu") + .withDisksToDetachOnClash(Arrays.asList("aimmoiroqb"))) + .withTargetVirtualMachineId("hbragapyyr") + .withPointInTime(OffsetDateTime.parse("2021-08-25T06:01:43Z")); model = BinaryData.fromObject(model).toObject(AzureWorkloadSapHanaPointInTimeRestoreRequest.class); - Assertions.assertEquals("uhdqazk", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals("vbpavbopfppdbw", model.resourceGuardOperationRequests().get(0)); Assertions.assertEquals(RecoveryType.INVALID, model.recoveryType()); - Assertions.assertEquals("mjyhohujswtwko", model.sourceResourceId()); - Assertions.assertEquals("culkbawpfaj", model.propertyBag().get("jwltlwtjjgu")); - Assertions.assertEquals(OverwriteOptions.INVALID, model.targetInfo().overwriteOption()); - Assertions.assertEquals("ylweazulc", model.targetInfo().containerId()); - Assertions.assertEquals("thwwn", model.targetInfo().databaseName()); - Assertions.assertEquals("hlf", model.targetInfo().targetDirectoryForFileRestore()); - Assertions.assertEquals(RecoveryMode.INVALID, model.recoveryMode()); - Assertions.assertEquals("ch", model.targetResourceGroupName()); - Assertions.assertEquals("fb", model.userAssignedManagedIdentityDetails().identityArmId()); - Assertions.assertEquals("snfepgfewetwlyx", model.userAssignedManagedIdentityDetails().identityName()); - Assertions.assertEquals("xykxhdj", + Assertions.assertEquals("o", model.sourceResourceId()); + Assertions.assertEquals("rxklobdxnazpmk", model.propertyBag().get("lmv")); + Assertions.assertEquals(OverwriteOptions.FAIL_ON_CONFLICT, model.targetInfo().overwriteOption()); + Assertions.assertEquals("fg", model.targetInfo().containerId()); + Assertions.assertEquals("ba", model.targetInfo().databaseName()); + Assertions.assertEquals("cbb", model.targetInfo().targetDirectoryForFileRestore()); + Assertions.assertEquals(RecoveryMode.SNAPSHOT_ATTACH_AND_RECOVER, model.recoveryMode()); + Assertions.assertEquals("yknapqofyuicdh", model.targetResourceGroupName()); + Assertions.assertEquals("ybww", model.userAssignedManagedIdentityDetails().identityArmId()); + Assertions.assertEquals("d", model.userAssignedManagedIdentityDetails().identityName()); + Assertions.assertEquals("idmhmwf", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().clientId()); - Assertions.assertEquals("immbcx", + Assertions.assertEquals("lfmu", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().principalId()); - Assertions.assertTrue(model.snapshotRestoreParameters().skipAttachAndMount()); - Assertions.assertEquals("orxvxcjzhqiz", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); - Assertions.assertEquals("pxtgqscjav", model.targetVirtualMachineId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-10T04:33:44Z"), model.pointInTime()); + Assertions.assertFalse(model.snapshotRestoreParameters().skipAttachAndMount()); + Assertions.assertEquals("ccrrvweyoxoyyu", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); + Assertions.assertEquals("aimmoiroqb", model.snapshotRestoreParameters().disksToDetachOnClash().get(0)); + Assertions.assertEquals("hbragapyyr", model.targetVirtualMachineId()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-25T06:01:43Z"), model.pointInTime()); } // Use "Map.of" if available diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapHanaPointInTimeRestoreWithRehydrateRequestTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapHanaPointInTimeRestoreWithRehydrateRequestTests.java index 5c5afc6f28910..21cc8639b4557 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapHanaPointInTimeRestoreWithRehydrateRequestTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapHanaPointInTimeRestoreWithRehydrateRequestTests.java @@ -25,81 +25,86 @@ public final class AzureWorkloadSapHanaPointInTimeRestoreWithRehydrateRequestTes @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureWorkloadSapHanaPointInTimeRestoreWithRehydrateRequest model = BinaryData.fromString( - "{\"objectType\":\"AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest\",\"recoveryPointRehydrationInfo\":{\"rehydrationRetentionDuration\":\"qodfvp\",\"rehydrationPriority\":\"High\"},\"pointInTime\":\"2021-06-18T14:08:16Z\",\"recoveryType\":\"Offline\",\"sourceResourceId\":\"bpfgzdj\",\"propertyBag\":{\"qvlgafcqusrdvetn\":\"zflbqvg\",\"uzhyrmewipmvekdx\":\"sdtutnwlduyc\"},\"targetInfo\":{\"overwriteOption\":\"FailOnConflict\",\"containerId\":\"sjjxundxgketw\",\"databaseName\":\"hzjhf\",\"targetDirectoryForFileRestore\":\"hvvmuvgpmun\"},\"recoveryMode\":\"WorkloadRecovery\",\"targetResourceGroupName\":\"vmhfbuz\",\"userAssignedManagedIdentityDetails\":{\"identityArmId\":\"hsasbhu\",\"identityName\":\"pohyuemslynsqyr\",\"userAssignedIdentityProperties\":{\"clientId\":\"obrltt\",\"principalId\":\"sjnygqdnfwqzdzgt\"}},\"snapshotRestoreParameters\":{\"skipAttachAndMount\":false,\"logPointInTimeForDBRecovery\":\"nfhqlyvijouwivk\"},\"targetVirtualMachineId\":\"yzunbixxrtikv\",\"resourceGuardOperationRequests\":[\"pgclrciv\",\"soxfrken\",\"pmyyefrpmpdnqq\"]}") + "{\"objectType\":\"AzureWorkloadSAPHanaPointInTimeRestoreWithRehydrateRequest\",\"recoveryPointRehydrationInfo\":{\"rehydrationRetentionDuration\":\"nlbqnbldxeaclg\",\"rehydrationPriority\":\"Standard\"},\"pointInTime\":\"2021-09-12T01:01:46Z\",\"recoveryType\":\"RestoreDisks\",\"sourceResourceId\":\"rsrrmoucsofldp\",\"propertyBag\":{\"uqibsxtkcu\":\"yfcaabeolhbhlvbm\"},\"targetInfo\":{\"overwriteOption\":\"Overwrite\",\"containerId\":\"arfsi\",\"databaseName\":\"lkjxnqpvwgf\",\"targetDirectoryForFileRestore\":\"mhqykizmdksa\"},\"recoveryMode\":\"Invalid\",\"targetResourceGroupName\":\"luqvoxmycjimryv\",\"userAssignedManagedIdentityDetails\":{\"identityArmId\":\"wwpbmzgwesyd\",\"identityName\":\"wefohecbvo\",\"userAssignedIdentityProperties\":{\"clientId\":\"dy\",\"principalId\":\"eallklmtkhlo\"}},\"snapshotRestoreParameters\":{\"skipAttachAndMount\":true,\"logPointInTimeForDBRecovery\":\"vbrdfjmzsyzfho\",\"disksToDetachOnClash\":[\"ikcyyc\"]},\"targetVirtualMachineId\":\"nsjlpjrtws\",\"resourceGuardOperationRequests\":[\"vuicp\"]}") .toObject(AzureWorkloadSapHanaPointInTimeRestoreWithRehydrateRequest.class); - Assertions.assertEquals("pgclrciv", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals(RecoveryType.OFFLINE, model.recoveryType()); - Assertions.assertEquals("bpfgzdj", model.sourceResourceId()); - Assertions.assertEquals("zflbqvg", model.propertyBag().get("qvlgafcqusrdvetn")); - Assertions.assertEquals(OverwriteOptions.FAIL_ON_CONFLICT, model.targetInfo().overwriteOption()); - Assertions.assertEquals("sjjxundxgketw", model.targetInfo().containerId()); - Assertions.assertEquals("hzjhf", model.targetInfo().databaseName()); - Assertions.assertEquals("hvvmuvgpmun", model.targetInfo().targetDirectoryForFileRestore()); - Assertions.assertEquals(RecoveryMode.WORKLOAD_RECOVERY, model.recoveryMode()); - Assertions.assertEquals("vmhfbuz", model.targetResourceGroupName()); - Assertions.assertEquals("hsasbhu", model.userAssignedManagedIdentityDetails().identityArmId()); - Assertions.assertEquals("pohyuemslynsqyr", model.userAssignedManagedIdentityDetails().identityName()); - Assertions.assertEquals("obrltt", + Assertions.assertEquals("vuicp", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals(RecoveryType.RESTORE_DISKS, model.recoveryType()); + Assertions.assertEquals("rsrrmoucsofldp", model.sourceResourceId()); + Assertions.assertEquals("yfcaabeolhbhlvbm", model.propertyBag().get("uqibsxtkcu")); + Assertions.assertEquals(OverwriteOptions.OVERWRITE, model.targetInfo().overwriteOption()); + Assertions.assertEquals("arfsi", model.targetInfo().containerId()); + Assertions.assertEquals("lkjxnqpvwgf", model.targetInfo().databaseName()); + Assertions.assertEquals("mhqykizmdksa", model.targetInfo().targetDirectoryForFileRestore()); + Assertions.assertEquals(RecoveryMode.INVALID, model.recoveryMode()); + Assertions.assertEquals("luqvoxmycjimryv", model.targetResourceGroupName()); + Assertions.assertEquals("wwpbmzgwesyd", model.userAssignedManagedIdentityDetails().identityArmId()); + Assertions.assertEquals("wefohecbvo", model.userAssignedManagedIdentityDetails().identityName()); + Assertions.assertEquals("dy", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().clientId()); - Assertions.assertEquals("sjnygqdnfwqzdzgt", + Assertions.assertEquals("eallklmtkhlo", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().principalId()); - Assertions.assertFalse(model.snapshotRestoreParameters().skipAttachAndMount()); - Assertions.assertEquals("nfhqlyvijouwivk", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); - Assertions.assertEquals("yzunbixxrtikv", model.targetVirtualMachineId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-18T14:08:16Z"), model.pointInTime()); - Assertions.assertEquals("qodfvp", model.recoveryPointRehydrationInfo().rehydrationRetentionDuration()); - Assertions.assertEquals(RehydrationPriority.HIGH, model.recoveryPointRehydrationInfo().rehydrationPriority()); + Assertions.assertTrue(model.snapshotRestoreParameters().skipAttachAndMount()); + Assertions.assertEquals("vbrdfjmzsyzfho", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); + Assertions.assertEquals("ikcyyc", model.snapshotRestoreParameters().disksToDetachOnClash().get(0)); + Assertions.assertEquals("nsjlpjrtws", model.targetVirtualMachineId()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-12T01:01:46Z"), model.pointInTime()); + Assertions.assertEquals("nlbqnbldxeaclg", model.recoveryPointRehydrationInfo().rehydrationRetentionDuration()); + Assertions.assertEquals(RehydrationPriority.STANDARD, + model.recoveryPointRehydrationInfo().rehydrationPriority()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AzureWorkloadSapHanaPointInTimeRestoreWithRehydrateRequest model = new AzureWorkloadSapHanaPointInTimeRestoreWithRehydrateRequest() - .withResourceGuardOperationRequests(Arrays.asList("pgclrciv", "soxfrken", "pmyyefrpmpdnqq")) - .withRecoveryType(RecoveryType.OFFLINE) - .withSourceResourceId("bpfgzdj") - .withPropertyBag(mapOf("qvlgafcqusrdvetn", "zflbqvg", "uzhyrmewipmvekdx", "sdtutnwlduyc")) - .withTargetInfo(new TargetRestoreInfo().withOverwriteOption(OverwriteOptions.FAIL_ON_CONFLICT) - .withContainerId("sjjxundxgketw") - .withDatabaseName("hzjhf") - .withTargetDirectoryForFileRestore("hvvmuvgpmun")) - .withRecoveryMode(RecoveryMode.WORKLOAD_RECOVERY) - .withTargetResourceGroupName("vmhfbuz") + .withResourceGuardOperationRequests(Arrays.asList("vuicp")) + .withRecoveryType(RecoveryType.RESTORE_DISKS) + .withSourceResourceId("rsrrmoucsofldp") + .withPropertyBag(mapOf("uqibsxtkcu", "yfcaabeolhbhlvbm")) + .withTargetInfo(new TargetRestoreInfo().withOverwriteOption(OverwriteOptions.OVERWRITE) + .withContainerId("arfsi") + .withDatabaseName("lkjxnqpvwgf") + .withTargetDirectoryForFileRestore("mhqykizmdksa")) + .withRecoveryMode(RecoveryMode.INVALID) + .withTargetResourceGroupName("luqvoxmycjimryv") .withUserAssignedManagedIdentityDetails( - new UserAssignedManagedIdentityDetails().withIdentityArmId("hsasbhu") - .withIdentityName("pohyuemslynsqyr") - .withUserAssignedIdentityProperties(new UserAssignedIdentityProperties().withClientId("obrltt") - .withPrincipalId("sjnygqdnfwqzdzgt"))) - .withSnapshotRestoreParameters(new SnapshotRestoreParameters().withSkipAttachAndMount(false) - .withLogPointInTimeForDBRecovery("nfhqlyvijouwivk")) - .withTargetVirtualMachineId("yzunbixxrtikv") - .withPointInTime(OffsetDateTime.parse("2021-06-18T14:08:16Z")) + new UserAssignedManagedIdentityDetails().withIdentityArmId("wwpbmzgwesyd") + .withIdentityName("wefohecbvo") + .withUserAssignedIdentityProperties( + new UserAssignedIdentityProperties().withClientId("dy").withPrincipalId("eallklmtkhlo"))) + .withSnapshotRestoreParameters(new SnapshotRestoreParameters().withSkipAttachAndMount(true) + .withLogPointInTimeForDBRecovery("vbrdfjmzsyzfho") + .withDisksToDetachOnClash(Arrays.asList("ikcyyc"))) + .withTargetVirtualMachineId("nsjlpjrtws") + .withPointInTime(OffsetDateTime.parse("2021-09-12T01:01:46Z")) .withRecoveryPointRehydrationInfo( - new RecoveryPointRehydrationInfo().withRehydrationRetentionDuration("qodfvp") - .withRehydrationPriority(RehydrationPriority.HIGH)); + new RecoveryPointRehydrationInfo().withRehydrationRetentionDuration("nlbqnbldxeaclg") + .withRehydrationPriority(RehydrationPriority.STANDARD)); model = BinaryData.fromObject(model).toObject(AzureWorkloadSapHanaPointInTimeRestoreWithRehydrateRequest.class); - Assertions.assertEquals("pgclrciv", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals(RecoveryType.OFFLINE, model.recoveryType()); - Assertions.assertEquals("bpfgzdj", model.sourceResourceId()); - Assertions.assertEquals("zflbqvg", model.propertyBag().get("qvlgafcqusrdvetn")); - Assertions.assertEquals(OverwriteOptions.FAIL_ON_CONFLICT, model.targetInfo().overwriteOption()); - Assertions.assertEquals("sjjxundxgketw", model.targetInfo().containerId()); - Assertions.assertEquals("hzjhf", model.targetInfo().databaseName()); - Assertions.assertEquals("hvvmuvgpmun", model.targetInfo().targetDirectoryForFileRestore()); - Assertions.assertEquals(RecoveryMode.WORKLOAD_RECOVERY, model.recoveryMode()); - Assertions.assertEquals("vmhfbuz", model.targetResourceGroupName()); - Assertions.assertEquals("hsasbhu", model.userAssignedManagedIdentityDetails().identityArmId()); - Assertions.assertEquals("pohyuemslynsqyr", model.userAssignedManagedIdentityDetails().identityName()); - Assertions.assertEquals("obrltt", + Assertions.assertEquals("vuicp", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals(RecoveryType.RESTORE_DISKS, model.recoveryType()); + Assertions.assertEquals("rsrrmoucsofldp", model.sourceResourceId()); + Assertions.assertEquals("yfcaabeolhbhlvbm", model.propertyBag().get("uqibsxtkcu")); + Assertions.assertEquals(OverwriteOptions.OVERWRITE, model.targetInfo().overwriteOption()); + Assertions.assertEquals("arfsi", model.targetInfo().containerId()); + Assertions.assertEquals("lkjxnqpvwgf", model.targetInfo().databaseName()); + Assertions.assertEquals("mhqykizmdksa", model.targetInfo().targetDirectoryForFileRestore()); + Assertions.assertEquals(RecoveryMode.INVALID, model.recoveryMode()); + Assertions.assertEquals("luqvoxmycjimryv", model.targetResourceGroupName()); + Assertions.assertEquals("wwpbmzgwesyd", model.userAssignedManagedIdentityDetails().identityArmId()); + Assertions.assertEquals("wefohecbvo", model.userAssignedManagedIdentityDetails().identityName()); + Assertions.assertEquals("dy", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().clientId()); - Assertions.assertEquals("sjnygqdnfwqzdzgt", + Assertions.assertEquals("eallklmtkhlo", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().principalId()); - Assertions.assertFalse(model.snapshotRestoreParameters().skipAttachAndMount()); - Assertions.assertEquals("nfhqlyvijouwivk", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); - Assertions.assertEquals("yzunbixxrtikv", model.targetVirtualMachineId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-18T14:08:16Z"), model.pointInTime()); - Assertions.assertEquals("qodfvp", model.recoveryPointRehydrationInfo().rehydrationRetentionDuration()); - Assertions.assertEquals(RehydrationPriority.HIGH, model.recoveryPointRehydrationInfo().rehydrationPriority()); + Assertions.assertTrue(model.snapshotRestoreParameters().skipAttachAndMount()); + Assertions.assertEquals("vbrdfjmzsyzfho", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); + Assertions.assertEquals("ikcyyc", model.snapshotRestoreParameters().disksToDetachOnClash().get(0)); + Assertions.assertEquals("nsjlpjrtws", model.targetVirtualMachineId()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-12T01:01:46Z"), model.pointInTime()); + Assertions.assertEquals("nlbqnbldxeaclg", model.recoveryPointRehydrationInfo().rehydrationRetentionDuration()); + Assertions.assertEquals(RehydrationPriority.STANDARD, + model.recoveryPointRehydrationInfo().rehydrationPriority()); } // Use "Map.of" if available diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapHanaRecoveryPointTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapHanaRecoveryPointTests.java index de965e74b61ec..5473f18b29f54 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapHanaRecoveryPointTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapHanaRecoveryPointTests.java @@ -19,24 +19,23 @@ public final class AzureWorkloadSapHanaRecoveryPointTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureWorkloadSapHanaRecoveryPoint model = BinaryData.fromString( - "{\"objectType\":\"AzureWorkloadSAPHanaRecoveryPoint\",\"recoveryPointTimeInUTC\":\"2021-01-28T23:44:08Z\",\"type\":\"SnapshotFull\",\"recoveryPointTierDetails\":[{\"type\":\"HardenedRP\",\"status\":\"Invalid\",\"extendedInfo\":{\"ipicc\":\"tmelw\",\"hyrnxxmu\":\"zkzivgvvcnay\"}},{\"type\":\"InstantRP\",\"status\":\"Rehydrated\",\"extendedInfo\":{\"tchealmf\":\"wq\",\"iohgwxrtfud\":\"tdaaygdvwvg\",\"mnpkukghimdblxg\":\"epxgyqagvr\"}},{\"type\":\"Invalid\",\"status\":\"Valid\",\"extendedInfo\":{\"rey\":\"mszkkfo\",\"elpcirelsfeaenwa\":\"kzikfjawneaivxwc\"}},{\"type\":\"ArchivedRP\",\"status\":\"Valid\",\"extendedInfo\":{\"youlp\":\"hwuaanozjosp\",\"xitc\":\"rvxaglrvimjwosy\",\"ekkezzikhlyfjh\":\"kfcktqum\"}}],\"recoveryPointMoveReadinessInfo\":{\"qfatpxllrxcyjm\":{\"isReadyForMove\":true,\"additionalInfo\":\"bdunygaeqid\"}},\"recoveryPointProperties\":{\"expiryTime\":\"su\",\"ruleName\":\"r\",\"isSoftDeleted\":true,\"immutabilityProperties\":{\"isImmutable\":false,\"expiryTime\":\"2021-10-21T22:30:59Z\"}},\"threatStatus\":\"Healthy\",\"threatInfo\":[{\"threatTitle\":\"hyxxrwlycoduhpk\",\"threatDescription\":\"gymare\",\"lastUpdatedTime\":\"2021-03-16T20:45:43Z\",\"threatState\":\"Resolved\",\"threatStartTime\":\"2021-06-15T09:27:50Z\",\"threatEndTime\":\"2021-06-13T08:03:20Z\",\"threatURI\":\"ky\",\"threatSeverity\":\"Warning\"},{\"threatTitle\":\"ddg\",\"threatDescription\":\"ofwq\",\"lastUpdatedTime\":\"2021-05-03T03:51:25Z\",\"threatState\":\"Active\",\"threatStartTime\":\"2021-08-07T16:47:04Z\",\"threatEndTime\":\"2021-08-03T18:11:10Z\",\"threatURI\":\"i\",\"threatSeverity\":\"Warning\"},{\"threatTitle\":\"cqqudf\",\"threatDescription\":\"yxbaaabjyvayf\",\"lastUpdatedTime\":\"2021-07-23T05:30:54Z\",\"threatState\":\"InProgress\",\"threatStartTime\":\"2021-09-11T16:38:17Z\",\"threatEndTime\":\"2021-09-02T14:49:34Z\",\"threatURI\":\"ogs\",\"threatSeverity\":\"High\"},{\"threatTitle\":\"vfdnwnwmewzsyyce\",\"threatDescription\":\"soibjudpfrx\",\"lastUpdatedTime\":\"2021-10-06T21:06:57Z\",\"threatState\":\"Ignored\",\"threatStartTime\":\"2021-02-11T18:30:37Z\",\"threatEndTime\":\"2021-08-03T17:35Z\",\"threatURI\":\"wkqbrqu\",\"threatSeverity\":\"Warning\"}]}") + "{\"objectType\":\"AzureWorkloadSAPHanaRecoveryPoint\",\"recoveryPointTimeInUTC\":\"2021-07-29T02:17:13Z\",\"type\":\"Full\",\"recoveryPointTierDetails\":[{\"type\":\"HardenedRP\",\"status\":\"Disabled\",\"extendedInfo\":{\"gwol\":\"qscywu\",\"zbwemh\":\"h\"}},{\"type\":\"ArchivedRP\",\"status\":\"Rehydrated\",\"extendedInfo\":{\"pqwd\":\"swe\",\"mkttlstvlzywem\":\"ggicccnxqhue\",\"lusiy\":\"zrncsdt\",\"cy\":\"bsfgytguslfea\"}}],\"recoveryPointMoveReadinessInfo\":{\"pelol\":{\"isReadyForMove\":true,\"additionalInfo\":\"ejhzisxg\"},\"vu\":{\"isReadyForMove\":false,\"additionalInfo\":\"srp\"},\"wib\":{\"isReadyForMove\":true,\"additionalInfo\":\"ehtwdwrft\"}},\"recoveryPointProperties\":{\"expiryTime\":\"dl\",\"ruleName\":\"shfwpracstwity\",\"isSoftDeleted\":true,\"immutabilityProperties\":{\"isImmutable\":true,\"expiryTime\":\"2021-04-16T00:20:28Z\"}},\"threatStatus\":\"Healthy\",\"threatInfo\":[{\"threatTitle\":\"md\",\"threatDescription\":\"dnwzxltjcvnhltiu\",\"lastUpdatedTime\":\"2021-04-06T04:39:54Z\",\"threatState\":\"InProgress\",\"threatStartTime\":\"2021-08-23T04:40:03Z\",\"threatEndTime\":\"2021-02-16T09:07:58Z\",\"threatURI\":\"ibyqunyowxwlmdj\",\"threatSeverity\":\"Informational\"},{\"threatTitle\":\"g\",\"threatDescription\":\"fvpdbo\",\"lastUpdatedTime\":\"2021-12-02T21:38:46Z\",\"threatState\":\"InProgress\",\"threatStartTime\":\"2021-07-05T22:49:30Z\",\"threatEndTime\":\"2021-04-19T06:09:38Z\",\"threatURI\":\"krribdeibqi\",\"threatSeverity\":\"Critical\"},{\"threatTitle\":\"hvxndzwmkrefajpj\",\"threatDescription\":\"wkqnyhg\",\"lastUpdatedTime\":\"2021-02-13T21:51:24Z\",\"threatState\":\"Ignored\",\"threatStartTime\":\"2021-03-13T11:40:42Z\",\"threatEndTime\":\"2021-01-26T06:16:25Z\",\"threatURI\":\"sjabibs\",\"threatSeverity\":\"Warning\"},{\"threatTitle\":\"wfsdjpvkvpbj\",\"threatDescription\":\"kzbzkdvncjabudu\",\"lastUpdatedTime\":\"2021-02-18T14:39:28Z\",\"threatState\":\"InProgress\",\"threatStartTime\":\"2021-02-19T20:50:36Z\",\"threatEndTime\":\"2021-02-03T01:10:02Z\",\"threatURI\":\"jjklff\",\"threatSeverity\":\"Critical\"}]}") .toObject(AzureWorkloadSapHanaRecoveryPoint.class); Assertions.assertEquals(ThreatStatus.HEALTHY, model.threatStatus()); - Assertions.assertEquals(ThreatState.RESOLVED, model.threatInfo().get(0).threatState()); - Assertions.assertEquals(ThreatSeverity.WARNING, model.threatInfo().get(0).threatSeverity()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-28T23:44:08Z"), model.recoveryPointTimeInUtc()); - Assertions.assertEquals(RestorePointType.SNAPSHOT_FULL, model.type()); - Assertions.assertEquals("tmelw", model.recoveryPointTierDetails().get(0).extendedInfo().get("ipicc")); + Assertions.assertEquals(ThreatState.IN_PROGRESS, model.threatInfo().get(0).threatState()); + Assertions.assertEquals(ThreatSeverity.INFORMATIONAL, model.threatInfo().get(0).threatSeverity()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-29T02:17:13Z"), model.recoveryPointTimeInUtc()); + Assertions.assertEquals(RestorePointType.FULL, model.type()); + Assertions.assertEquals("qscywu", model.recoveryPointTierDetails().get(0).extendedInfo().get("gwol")); Assertions.assertEquals(RecoveryPointTierType.HARDENED_RP, model.recoveryPointTierDetails().get(0).type()); - Assertions.assertEquals(RecoveryPointTierStatus.INVALID, model.recoveryPointTierDetails().get(0).status()); - Assertions.assertTrue(model.recoveryPointMoveReadinessInfo().get("qfatpxllrxcyjm").isReadyForMove()); - Assertions.assertEquals("bdunygaeqid", - model.recoveryPointMoveReadinessInfo().get("qfatpxllrxcyjm").additionalInfo()); - Assertions.assertEquals("su", model.recoveryPointProperties().expiryTime()); - Assertions.assertEquals("r", model.recoveryPointProperties().ruleName()); + Assertions.assertEquals(RecoveryPointTierStatus.DISABLED, model.recoveryPointTierDetails().get(0).status()); + Assertions.assertTrue(model.recoveryPointMoveReadinessInfo().get("pelol").isReadyForMove()); + Assertions.assertEquals("ejhzisxg", model.recoveryPointMoveReadinessInfo().get("pelol").additionalInfo()); + Assertions.assertEquals("dl", model.recoveryPointProperties().expiryTime()); + Assertions.assertEquals("shfwpracstwity", model.recoveryPointProperties().ruleName()); Assertions.assertTrue(model.recoveryPointProperties().isSoftDeleted()); - Assertions.assertFalse(model.recoveryPointProperties().immutabilityProperties().isImmutable()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-21T22:30:59Z"), + Assertions.assertTrue(model.recoveryPointProperties().immutabilityProperties().isImmutable()); + Assertions.assertEquals(OffsetDateTime.parse("2021-04-16T00:20:28Z"), model.recoveryPointProperties().immutabilityProperties().expiryTime()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapHanaRestoreRequestTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapHanaRestoreRequestTests.java index 8145cac954679..de8972c3335dd 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapHanaRestoreRequestTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapHanaRestoreRequestTests.java @@ -22,70 +22,72 @@ public final class AzureWorkloadSapHanaRestoreRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureWorkloadSapHanaRestoreRequest model = BinaryData.fromString( - "{\"objectType\":\"AzureWorkloadSAPHanaRestoreRequest\",\"recoveryType\":\"AlternateLocation\",\"sourceResourceId\":\"gnitgvkxlzyq\",\"propertyBag\":{\"ealzxwhcansymoyq\":\"eg\",\"omfaj\":\"lwigdivbkbx\"},\"targetInfo\":{\"overwriteOption\":\"Invalid\",\"containerId\":\"vdaeyyguxakjsq\",\"databaseName\":\"zbezkgimsidxasic\",\"targetDirectoryForFileRestore\":\"yvvjskgfmo\"},\"recoveryMode\":\"WorkloadRecovery\",\"targetResourceGroupName\":\"pqg\",\"userAssignedManagedIdentityDetails\":{\"identityArmId\":\"eaahhvjhhn\",\"identityName\":\"zybbj\",\"userAssignedIdentityProperties\":{\"clientId\":\"jks\",\"principalId\":\"kyxvxevblbjedn\"}},\"snapshotRestoreParameters\":{\"skipAttachAndMount\":false,\"logPointInTimeForDBRecovery\":\"euaulxu\"},\"targetVirtualMachineId\":\"mjbnk\",\"resourceGuardOperationRequests\":[\"ynenlsvxeizz\",\"wklnsrmffeyc\"]}") + "{\"objectType\":\"AzureWorkloadSAPHanaRestoreRequest\",\"recoveryType\":\"Invalid\",\"sourceResourceId\":\"ubhvj\",\"propertyBag\":{\"zlwhhmemhooclu\":\"ocu\"},\"targetInfo\":{\"overwriteOption\":\"Overwrite\",\"containerId\":\"emc\",\"databaseName\":\"kmmykyujxsglh\",\"targetDirectoryForFileRestore\":\"rryejylmbkzudnig\"},\"recoveryMode\":\"SnapshotAttachAndRecover\",\"targetResourceGroupName\":\"otjewlpxuzzjgnre\",\"userAssignedManagedIdentityDetails\":{\"identityArmId\":\"hqo\",\"identityName\":\"ihiqakydiw\",\"userAssignedIdentityProperties\":{\"clientId\":\"kwpzdqtvh\",\"principalId\":\"podaq\"}},\"snapshotRestoreParameters\":{\"skipAttachAndMount\":false,\"logPointInTimeForDBRecovery\":\"ietgbebjfu\",\"disksToDetachOnClash\":[\"oichdlpnfpubnt\",\"batzviqsows\",\"aelcat\",\"cjuhplrvkm\"]},\"targetVirtualMachineId\":\"wmj\",\"resourceGuardOperationRequests\":[\"fggc\",\"kyylizr\",\"bjpsfxsfuztlvtm\",\"agb\"]}") .toObject(AzureWorkloadSapHanaRestoreRequest.class); - Assertions.assertEquals("ynenlsvxeizz", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals(RecoveryType.ALTERNATE_LOCATION, model.recoveryType()); - Assertions.assertEquals("gnitgvkxlzyq", model.sourceResourceId()); - Assertions.assertEquals("eg", model.propertyBag().get("ealzxwhcansymoyq")); - Assertions.assertEquals(OverwriteOptions.INVALID, model.targetInfo().overwriteOption()); - Assertions.assertEquals("vdaeyyguxakjsq", model.targetInfo().containerId()); - Assertions.assertEquals("zbezkgimsidxasic", model.targetInfo().databaseName()); - Assertions.assertEquals("yvvjskgfmo", model.targetInfo().targetDirectoryForFileRestore()); - Assertions.assertEquals(RecoveryMode.WORKLOAD_RECOVERY, model.recoveryMode()); - Assertions.assertEquals("pqg", model.targetResourceGroupName()); - Assertions.assertEquals("eaahhvjhhn", model.userAssignedManagedIdentityDetails().identityArmId()); - Assertions.assertEquals("zybbj", model.userAssignedManagedIdentityDetails().identityName()); - Assertions.assertEquals("jks", + Assertions.assertEquals("fggc", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals(RecoveryType.INVALID, model.recoveryType()); + Assertions.assertEquals("ubhvj", model.sourceResourceId()); + Assertions.assertEquals("ocu", model.propertyBag().get("zlwhhmemhooclu")); + Assertions.assertEquals(OverwriteOptions.OVERWRITE, model.targetInfo().overwriteOption()); + Assertions.assertEquals("emc", model.targetInfo().containerId()); + Assertions.assertEquals("kmmykyujxsglh", model.targetInfo().databaseName()); + Assertions.assertEquals("rryejylmbkzudnig", model.targetInfo().targetDirectoryForFileRestore()); + Assertions.assertEquals(RecoveryMode.SNAPSHOT_ATTACH_AND_RECOVER, model.recoveryMode()); + Assertions.assertEquals("otjewlpxuzzjgnre", model.targetResourceGroupName()); + Assertions.assertEquals("hqo", model.userAssignedManagedIdentityDetails().identityArmId()); + Assertions.assertEquals("ihiqakydiw", model.userAssignedManagedIdentityDetails().identityName()); + Assertions.assertEquals("kwpzdqtvh", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().clientId()); - Assertions.assertEquals("kyxvxevblbjedn", + Assertions.assertEquals("podaq", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().principalId()); Assertions.assertFalse(model.snapshotRestoreParameters().skipAttachAndMount()); - Assertions.assertEquals("euaulxu", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); - Assertions.assertEquals("mjbnk", model.targetVirtualMachineId()); + Assertions.assertEquals("ietgbebjfu", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); + Assertions.assertEquals("oichdlpnfpubnt", model.snapshotRestoreParameters().disksToDetachOnClash().get(0)); + Assertions.assertEquals("wmj", model.targetVirtualMachineId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AzureWorkloadSapHanaRestoreRequest model = new AzureWorkloadSapHanaRestoreRequest() - .withResourceGuardOperationRequests(Arrays.asList("ynenlsvxeizz", "wklnsrmffeyc")) - .withRecoveryType(RecoveryType.ALTERNATE_LOCATION) - .withSourceResourceId("gnitgvkxlzyq") - .withPropertyBag(mapOf("ealzxwhcansymoyq", "eg", "omfaj", "lwigdivbkbx")) - .withTargetInfo(new TargetRestoreInfo().withOverwriteOption(OverwriteOptions.INVALID) - .withContainerId("vdaeyyguxakjsq") - .withDatabaseName("zbezkgimsidxasic") - .withTargetDirectoryForFileRestore("yvvjskgfmo")) - .withRecoveryMode(RecoveryMode.WORKLOAD_RECOVERY) - .withTargetResourceGroupName("pqg") - .withUserAssignedManagedIdentityDetails( - new UserAssignedManagedIdentityDetails().withIdentityArmId("eaahhvjhhn") - .withIdentityName("zybbj") - .withUserAssignedIdentityProperties( - new UserAssignedIdentityProperties().withClientId("jks").withPrincipalId("kyxvxevblbjedn"))) + .withResourceGuardOperationRequests(Arrays.asList("fggc", "kyylizr", "bjpsfxsfuztlvtm", "agb")) + .withRecoveryType(RecoveryType.INVALID) + .withSourceResourceId("ubhvj") + .withPropertyBag(mapOf("zlwhhmemhooclu", "ocu")) + .withTargetInfo(new TargetRestoreInfo().withOverwriteOption(OverwriteOptions.OVERWRITE) + .withContainerId("emc") + .withDatabaseName("kmmykyujxsglh") + .withTargetDirectoryForFileRestore("rryejylmbkzudnig")) + .withRecoveryMode(RecoveryMode.SNAPSHOT_ATTACH_AND_RECOVER) + .withTargetResourceGroupName("otjewlpxuzzjgnre") + .withUserAssignedManagedIdentityDetails(new UserAssignedManagedIdentityDetails().withIdentityArmId("hqo") + .withIdentityName("ihiqakydiw") + .withUserAssignedIdentityProperties( + new UserAssignedIdentityProperties().withClientId("kwpzdqtvh").withPrincipalId("podaq"))) .withSnapshotRestoreParameters(new SnapshotRestoreParameters().withSkipAttachAndMount(false) - .withLogPointInTimeForDBRecovery("euaulxu")) - .withTargetVirtualMachineId("mjbnk"); + .withLogPointInTimeForDBRecovery("ietgbebjfu") + .withDisksToDetachOnClash(Arrays.asList("oichdlpnfpubnt", "batzviqsows", "aelcat", "cjuhplrvkm"))) + .withTargetVirtualMachineId("wmj"); model = BinaryData.fromObject(model).toObject(AzureWorkloadSapHanaRestoreRequest.class); - Assertions.assertEquals("ynenlsvxeizz", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals(RecoveryType.ALTERNATE_LOCATION, model.recoveryType()); - Assertions.assertEquals("gnitgvkxlzyq", model.sourceResourceId()); - Assertions.assertEquals("eg", model.propertyBag().get("ealzxwhcansymoyq")); - Assertions.assertEquals(OverwriteOptions.INVALID, model.targetInfo().overwriteOption()); - Assertions.assertEquals("vdaeyyguxakjsq", model.targetInfo().containerId()); - Assertions.assertEquals("zbezkgimsidxasic", model.targetInfo().databaseName()); - Assertions.assertEquals("yvvjskgfmo", model.targetInfo().targetDirectoryForFileRestore()); - Assertions.assertEquals(RecoveryMode.WORKLOAD_RECOVERY, model.recoveryMode()); - Assertions.assertEquals("pqg", model.targetResourceGroupName()); - Assertions.assertEquals("eaahhvjhhn", model.userAssignedManagedIdentityDetails().identityArmId()); - Assertions.assertEquals("zybbj", model.userAssignedManagedIdentityDetails().identityName()); - Assertions.assertEquals("jks", + Assertions.assertEquals("fggc", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals(RecoveryType.INVALID, model.recoveryType()); + Assertions.assertEquals("ubhvj", model.sourceResourceId()); + Assertions.assertEquals("ocu", model.propertyBag().get("zlwhhmemhooclu")); + Assertions.assertEquals(OverwriteOptions.OVERWRITE, model.targetInfo().overwriteOption()); + Assertions.assertEquals("emc", model.targetInfo().containerId()); + Assertions.assertEquals("kmmykyujxsglh", model.targetInfo().databaseName()); + Assertions.assertEquals("rryejylmbkzudnig", model.targetInfo().targetDirectoryForFileRestore()); + Assertions.assertEquals(RecoveryMode.SNAPSHOT_ATTACH_AND_RECOVER, model.recoveryMode()); + Assertions.assertEquals("otjewlpxuzzjgnre", model.targetResourceGroupName()); + Assertions.assertEquals("hqo", model.userAssignedManagedIdentityDetails().identityArmId()); + Assertions.assertEquals("ihiqakydiw", model.userAssignedManagedIdentityDetails().identityName()); + Assertions.assertEquals("kwpzdqtvh", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().clientId()); - Assertions.assertEquals("kyxvxevblbjedn", + Assertions.assertEquals("podaq", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().principalId()); Assertions.assertFalse(model.snapshotRestoreParameters().skipAttachAndMount()); - Assertions.assertEquals("euaulxu", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); - Assertions.assertEquals("mjbnk", model.targetVirtualMachineId()); + Assertions.assertEquals("ietgbebjfu", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); + Assertions.assertEquals("oichdlpnfpubnt", model.snapshotRestoreParameters().disksToDetachOnClash().get(0)); + Assertions.assertEquals("wmj", model.targetVirtualMachineId()); } // Use "Map.of" if available diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapHanaRestoreWithRehydrateRequestTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapHanaRestoreWithRehydrateRequestTests.java index c30a318550bae..8666ecb2c7bfc 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapHanaRestoreWithRehydrateRequestTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSapHanaRestoreWithRehydrateRequestTests.java @@ -24,75 +24,79 @@ public final class AzureWorkloadSapHanaRestoreWithRehydrateRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureWorkloadSapHanaRestoreWithRehydrateRequest model = BinaryData.fromString( - "{\"objectType\":\"AzureWorkloadSAPHanaRestoreWithRehydrateRequest\",\"recoveryPointRehydrationInfo\":{\"rehydrationRetentionDuration\":\"tpiymerteea\",\"rehydrationPriority\":\"High\"},\"recoveryType\":\"RestoreDisks\",\"sourceResourceId\":\"kk\",\"propertyBag\":{\"mxvavrefdee\":\"drtkgdoj\",\"xs\":\"vecuijpx\",\"wsawddjibabxvi\":\"wprtu\"},\"targetInfo\":{\"overwriteOption\":\"Overwrite\",\"containerId\":\"zeexavoxtfgle\",\"databaseName\":\"m\",\"targetDirectoryForFileRestore\":\"bwpypqtgsfjacb\"},\"recoveryMode\":\"SnapshotAttach\",\"targetResourceGroupName\":\"xudb\",\"userAssignedManagedIdentityDetails\":{\"identityArmId\":\"d\",\"identityName\":\"nsiru\",\"userAssignedIdentityProperties\":{\"clientId\":\"m\",\"principalId\":\"sckdlp\"}},\"snapshotRestoreParameters\":{\"skipAttachAndMount\":true,\"logPointInTimeForDBRecovery\":\"x\"},\"targetVirtualMachineId\":\"ilcfxwmdboxd\",\"resourceGuardOperationRequests\":[\"ft\",\"fqob\",\"jln\",\"cgcckknhxkizvyt\"]}") + "{\"objectType\":\"AzureWorkloadSAPHanaRestoreWithRehydrateRequest\",\"recoveryPointRehydrationInfo\":{\"rehydrationRetentionDuration\":\"qlvh\",\"rehydrationPriority\":\"High\"},\"recoveryType\":\"AlternateLocation\",\"sourceResourceId\":\"fizr\",\"propertyBag\":{\"jrllf\":\"nmjmvlwyzgiblk\"},\"targetInfo\":{\"overwriteOption\":\"Invalid\",\"containerId\":\"jpu\",\"databaseName\":\"jucejikzoeovvtz\",\"targetDirectoryForFileRestore\":\"et\"},\"recoveryMode\":\"Invalid\",\"targetResourceGroupName\":\"tikyj\",\"userAssignedManagedIdentityDetails\":{\"identityArmId\":\"dbqzolxrzvhqjw\",\"identityName\":\"htgv\",\"userAssignedIdentityProperties\":{\"clientId\":\"c\",\"principalId\":\"kolawjmjsmwrokc\"}},\"snapshotRestoreParameters\":{\"skipAttachAndMount\":false,\"logPointInTimeForDBRecovery\":\"zwyjafitlhgu\",\"disksToDetachOnClash\":[\"chl\",\"mltx\",\"whmozusgzvlnsnnj\"]},\"targetVirtualMachineId\":\"pafolp\",\"resourceGuardOperationRequests\":[\"amxqzragpgdphtv\",\"ulajvlejchc\",\"rlzk\"]}") .toObject(AzureWorkloadSapHanaRestoreWithRehydrateRequest.class); - Assertions.assertEquals("ft", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals(RecoveryType.RESTORE_DISKS, model.recoveryType()); - Assertions.assertEquals("kk", model.sourceResourceId()); - Assertions.assertEquals("drtkgdoj", model.propertyBag().get("mxvavrefdee")); - Assertions.assertEquals(OverwriteOptions.OVERWRITE, model.targetInfo().overwriteOption()); - Assertions.assertEquals("zeexavoxtfgle", model.targetInfo().containerId()); - Assertions.assertEquals("m", model.targetInfo().databaseName()); - Assertions.assertEquals("bwpypqtgsfjacb", model.targetInfo().targetDirectoryForFileRestore()); - Assertions.assertEquals(RecoveryMode.SNAPSHOT_ATTACH, model.recoveryMode()); - Assertions.assertEquals("xudb", model.targetResourceGroupName()); - Assertions.assertEquals("d", model.userAssignedManagedIdentityDetails().identityArmId()); - Assertions.assertEquals("nsiru", model.userAssignedManagedIdentityDetails().identityName()); - Assertions.assertEquals("m", + Assertions.assertEquals("amxqzragpgdphtv", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals(RecoveryType.ALTERNATE_LOCATION, model.recoveryType()); + Assertions.assertEquals("fizr", model.sourceResourceId()); + Assertions.assertEquals("nmjmvlwyzgiblk", model.propertyBag().get("jrllf")); + Assertions.assertEquals(OverwriteOptions.INVALID, model.targetInfo().overwriteOption()); + Assertions.assertEquals("jpu", model.targetInfo().containerId()); + Assertions.assertEquals("jucejikzoeovvtz", model.targetInfo().databaseName()); + Assertions.assertEquals("et", model.targetInfo().targetDirectoryForFileRestore()); + Assertions.assertEquals(RecoveryMode.INVALID, model.recoveryMode()); + Assertions.assertEquals("tikyj", model.targetResourceGroupName()); + Assertions.assertEquals("dbqzolxrzvhqjw", model.userAssignedManagedIdentityDetails().identityArmId()); + Assertions.assertEquals("htgv", model.userAssignedManagedIdentityDetails().identityName()); + Assertions.assertEquals("c", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().clientId()); - Assertions.assertEquals("sckdlp", + Assertions.assertEquals("kolawjmjsmwrokc", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().principalId()); - Assertions.assertTrue(model.snapshotRestoreParameters().skipAttachAndMount()); - Assertions.assertEquals("x", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); - Assertions.assertEquals("ilcfxwmdboxd", model.targetVirtualMachineId()); - Assertions.assertEquals("tpiymerteea", model.recoveryPointRehydrationInfo().rehydrationRetentionDuration()); + Assertions.assertFalse(model.snapshotRestoreParameters().skipAttachAndMount()); + Assertions.assertEquals("zwyjafitlhgu", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); + Assertions.assertEquals("chl", model.snapshotRestoreParameters().disksToDetachOnClash().get(0)); + Assertions.assertEquals("pafolp", model.targetVirtualMachineId()); + Assertions.assertEquals("qlvh", model.recoveryPointRehydrationInfo().rehydrationRetentionDuration()); Assertions.assertEquals(RehydrationPriority.HIGH, model.recoveryPointRehydrationInfo().rehydrationPriority()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AzureWorkloadSapHanaRestoreWithRehydrateRequest model = new AzureWorkloadSapHanaRestoreWithRehydrateRequest() - .withResourceGuardOperationRequests(Arrays.asList("ft", "fqob", "jln", "cgcckknhxkizvyt")) - .withRecoveryType(RecoveryType.RESTORE_DISKS) - .withSourceResourceId("kk") - .withPropertyBag(mapOf("mxvavrefdee", "drtkgdoj", "xs", "vecuijpx", "wsawddjibabxvi", "wprtu")) - .withTargetInfo(new TargetRestoreInfo().withOverwriteOption(OverwriteOptions.OVERWRITE) - .withContainerId("zeexavoxtfgle") - .withDatabaseName("m") - .withTargetDirectoryForFileRestore("bwpypqtgsfjacb")) - .withRecoveryMode(RecoveryMode.SNAPSHOT_ATTACH) - .withTargetResourceGroupName("xudb") - .withUserAssignedManagedIdentityDetails(new UserAssignedManagedIdentityDetails().withIdentityArmId("d") - .withIdentityName("nsiru") - .withUserAssignedIdentityProperties( - new UserAssignedIdentityProperties().withClientId("m").withPrincipalId("sckdlp"))) - .withSnapshotRestoreParameters( - new SnapshotRestoreParameters().withSkipAttachAndMount(true).withLogPointInTimeForDBRecovery("x")) - .withTargetVirtualMachineId("ilcfxwmdboxd") + .withResourceGuardOperationRequests(Arrays.asList("amxqzragpgdphtv", "ulajvlejchc", "rlzk")) + .withRecoveryType(RecoveryType.ALTERNATE_LOCATION) + .withSourceResourceId("fizr") + .withPropertyBag(mapOf("jrllf", "nmjmvlwyzgiblk")) + .withTargetInfo(new TargetRestoreInfo().withOverwriteOption(OverwriteOptions.INVALID) + .withContainerId("jpu") + .withDatabaseName("jucejikzoeovvtz") + .withTargetDirectoryForFileRestore("et")) + .withRecoveryMode(RecoveryMode.INVALID) + .withTargetResourceGroupName("tikyj") + .withUserAssignedManagedIdentityDetails( + new UserAssignedManagedIdentityDetails().withIdentityArmId("dbqzolxrzvhqjw") + .withIdentityName("htgv") + .withUserAssignedIdentityProperties( + new UserAssignedIdentityProperties().withClientId("c").withPrincipalId("kolawjmjsmwrokc"))) + .withSnapshotRestoreParameters(new SnapshotRestoreParameters().withSkipAttachAndMount(false) + .withLogPointInTimeForDBRecovery("zwyjafitlhgu") + .withDisksToDetachOnClash(Arrays.asList("chl", "mltx", "whmozusgzvlnsnnj"))) + .withTargetVirtualMachineId("pafolp") .withRecoveryPointRehydrationInfo( - new RecoveryPointRehydrationInfo().withRehydrationRetentionDuration("tpiymerteea") + new RecoveryPointRehydrationInfo().withRehydrationRetentionDuration("qlvh") .withRehydrationPriority(RehydrationPriority.HIGH)); model = BinaryData.fromObject(model).toObject(AzureWorkloadSapHanaRestoreWithRehydrateRequest.class); - Assertions.assertEquals("ft", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals(RecoveryType.RESTORE_DISKS, model.recoveryType()); - Assertions.assertEquals("kk", model.sourceResourceId()); - Assertions.assertEquals("drtkgdoj", model.propertyBag().get("mxvavrefdee")); - Assertions.assertEquals(OverwriteOptions.OVERWRITE, model.targetInfo().overwriteOption()); - Assertions.assertEquals("zeexavoxtfgle", model.targetInfo().containerId()); - Assertions.assertEquals("m", model.targetInfo().databaseName()); - Assertions.assertEquals("bwpypqtgsfjacb", model.targetInfo().targetDirectoryForFileRestore()); - Assertions.assertEquals(RecoveryMode.SNAPSHOT_ATTACH, model.recoveryMode()); - Assertions.assertEquals("xudb", model.targetResourceGroupName()); - Assertions.assertEquals("d", model.userAssignedManagedIdentityDetails().identityArmId()); - Assertions.assertEquals("nsiru", model.userAssignedManagedIdentityDetails().identityName()); - Assertions.assertEquals("m", + Assertions.assertEquals("amxqzragpgdphtv", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals(RecoveryType.ALTERNATE_LOCATION, model.recoveryType()); + Assertions.assertEquals("fizr", model.sourceResourceId()); + Assertions.assertEquals("nmjmvlwyzgiblk", model.propertyBag().get("jrllf")); + Assertions.assertEquals(OverwriteOptions.INVALID, model.targetInfo().overwriteOption()); + Assertions.assertEquals("jpu", model.targetInfo().containerId()); + Assertions.assertEquals("jucejikzoeovvtz", model.targetInfo().databaseName()); + Assertions.assertEquals("et", model.targetInfo().targetDirectoryForFileRestore()); + Assertions.assertEquals(RecoveryMode.INVALID, model.recoveryMode()); + Assertions.assertEquals("tikyj", model.targetResourceGroupName()); + Assertions.assertEquals("dbqzolxrzvhqjw", model.userAssignedManagedIdentityDetails().identityArmId()); + Assertions.assertEquals("htgv", model.userAssignedManagedIdentityDetails().identityName()); + Assertions.assertEquals("c", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().clientId()); - Assertions.assertEquals("sckdlp", + Assertions.assertEquals("kolawjmjsmwrokc", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().principalId()); - Assertions.assertTrue(model.snapshotRestoreParameters().skipAttachAndMount()); - Assertions.assertEquals("x", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); - Assertions.assertEquals("ilcfxwmdboxd", model.targetVirtualMachineId()); - Assertions.assertEquals("tpiymerteea", model.recoveryPointRehydrationInfo().rehydrationRetentionDuration()); + Assertions.assertFalse(model.snapshotRestoreParameters().skipAttachAndMount()); + Assertions.assertEquals("zwyjafitlhgu", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); + Assertions.assertEquals("chl", model.snapshotRestoreParameters().disksToDetachOnClash().get(0)); + Assertions.assertEquals("pafolp", model.targetVirtualMachineId()); + Assertions.assertEquals("qlvh", model.recoveryPointRehydrationInfo().rehydrationRetentionDuration()); Assertions.assertEquals(RehydrationPriority.HIGH, model.recoveryPointRehydrationInfo().rehydrationPriority()); } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSqlAutoProtectionIntentTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSqlAutoProtectionIntentTests.java index 7b6b77d40a74d..d1a6fdbabb63c 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSqlAutoProtectionIntentTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSqlAutoProtectionIntentTests.java @@ -15,31 +15,31 @@ public final class AzureWorkloadSqlAutoProtectionIntentTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureWorkloadSqlAutoProtectionIntent model = BinaryData.fromString( - "{\"protectionIntentItemType\":\"AzureWorkloadSQLAutoProtectionIntent\",\"workloadItemType\":\"SQLDataBase\",\"backupManagementType\":\"AzureBackupServer\",\"sourceResourceId\":\"fqxkfaoyteh\",\"itemId\":\"uvjmv\",\"policyId\":\"tdwckygr\",\"protectionState\":\"Protected\"}") + "{\"protectionIntentItemType\":\"AzureWorkloadSQLAutoProtectionIntent\",\"workloadItemType\":\"Invalid\",\"backupManagementType\":\"AzureWorkload\",\"sourceResourceId\":\"jclykcg\",\"itemId\":\"rpjl\",\"policyId\":\"zuodacpun\",\"protectionState\":\"Protecting\"}") .toObject(AzureWorkloadSqlAutoProtectionIntent.class); - Assertions.assertEquals(BackupManagementType.AZURE_BACKUP_SERVER, model.backupManagementType()); - Assertions.assertEquals("fqxkfaoyteh", model.sourceResourceId()); - Assertions.assertEquals("uvjmv", model.itemId()); - Assertions.assertEquals("tdwckygr", model.policyId()); - Assertions.assertEquals(ProtectionStatus.PROTECTED, model.protectionState()); - Assertions.assertEquals(WorkloadItemType.SQLDATA_BASE, model.workloadItemType()); + Assertions.assertEquals(BackupManagementType.AZURE_WORKLOAD, model.backupManagementType()); + Assertions.assertEquals("jclykcg", model.sourceResourceId()); + Assertions.assertEquals("rpjl", model.itemId()); + Assertions.assertEquals("zuodacpun", model.policyId()); + Assertions.assertEquals(ProtectionStatus.PROTECTING, model.protectionState()); + Assertions.assertEquals(WorkloadItemType.INVALID, model.workloadItemType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AzureWorkloadSqlAutoProtectionIntent model = new AzureWorkloadSqlAutoProtectionIntent() - .withBackupManagementType(BackupManagementType.AZURE_BACKUP_SERVER) - .withSourceResourceId("fqxkfaoyteh") - .withItemId("uvjmv") - .withPolicyId("tdwckygr") - .withProtectionState(ProtectionStatus.PROTECTED) - .withWorkloadItemType(WorkloadItemType.SQLDATA_BASE); + AzureWorkloadSqlAutoProtectionIntent model + = new AzureWorkloadSqlAutoProtectionIntent().withBackupManagementType(BackupManagementType.AZURE_WORKLOAD) + .withSourceResourceId("jclykcg") + .withItemId("rpjl") + .withPolicyId("zuodacpun") + .withProtectionState(ProtectionStatus.PROTECTING) + .withWorkloadItemType(WorkloadItemType.INVALID); model = BinaryData.fromObject(model).toObject(AzureWorkloadSqlAutoProtectionIntent.class); - Assertions.assertEquals(BackupManagementType.AZURE_BACKUP_SERVER, model.backupManagementType()); - Assertions.assertEquals("fqxkfaoyteh", model.sourceResourceId()); - Assertions.assertEquals("uvjmv", model.itemId()); - Assertions.assertEquals("tdwckygr", model.policyId()); - Assertions.assertEquals(ProtectionStatus.PROTECTED, model.protectionState()); - Assertions.assertEquals(WorkloadItemType.SQLDATA_BASE, model.workloadItemType()); + Assertions.assertEquals(BackupManagementType.AZURE_WORKLOAD, model.backupManagementType()); + Assertions.assertEquals("jclykcg", model.sourceResourceId()); + Assertions.assertEquals("rpjl", model.itemId()); + Assertions.assertEquals("zuodacpun", model.policyId()); + Assertions.assertEquals(ProtectionStatus.PROTECTING, model.protectionState()); + Assertions.assertEquals(WorkloadItemType.INVALID, model.workloadItemType()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSqlPointInTimeRecoveryPointTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSqlPointInTimeRecoveryPointTests.java index 2350f98ec0c5b..b2a63b9f76168 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSqlPointInTimeRecoveryPointTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSqlPointInTimeRecoveryPointTests.java @@ -20,30 +20,71 @@ public final class AzureWorkloadSqlPointInTimeRecoveryPointTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureWorkloadSqlPointInTimeRecoveryPoint model = BinaryData.fromString( - "{\"objectType\":\"AzureWorkloadSQLPointInTimeRecoveryPoint\",\"timeRanges\":[{\"startTime\":\"2021-02-28T13:12:04Z\",\"endTime\":\"2021-04-29T15:05:43Z\"}],\"extendedInfo\":{\"dataDirectoryTimeInUTC\":\"2020-12-26T05:50:43Z\",\"dataDirectoryPaths\":[{\"type\":\"Log\",\"path\":\"jaltolmnc\",\"logicalName\":\"obqwcsdbnwdcfh\"},{\"type\":\"Data\",\"path\":\"pfuvglsbjjca\",\"logicalName\":\"xbvtvudu\"},{\"type\":\"Data\",\"path\":\"rmrlxqtvcof\",\"logicalName\":\"f\"},{\"type\":\"Log\",\"path\":\"jub\",\"logicalName\":\"knnqvsaznq\"}]},\"recoveryPointTimeInUTC\":\"2021-01-16T21:03:09Z\",\"type\":\"Invalid\",\"recoveryPointTierDetails\":[{\"type\":\"HardenedRP\",\"status\":\"Disabled\",\"extendedInfo\":{\"u\":\"auwjuetaebu\",\"l\":\"dmovsm\",\"oefki\":\"wabm\"}},{\"type\":\"HardenedRP\",\"status\":\"Disabled\",\"extendedInfo\":{\"doaon\":\"lgkfbt\",\"ed\":\"bjcntujitc\"}},{\"type\":\"Invalid\",\"status\":\"Deleted\",\"extendedInfo\":{\"i\":\"dcpzfoqo\"}}],\"recoveryPointMoveReadinessInfo\":{\"zuf\":{\"isReadyForMove\":false,\"additionalInfo\":\"zg\"},\"p\":{\"isReadyForMove\":true,\"additionalInfo\":\"q\"},\"bon\":{\"isReadyForMove\":false,\"additionalInfo\":\"mciodhkhazxkhn\"},\"szzcmrvexztv\":{\"isReadyForMove\":false,\"additionalInfo\":\"oegokdwbwh\"}},\"recoveryPointProperties\":{\"expiryTime\":\"gsfraoyzkoow\",\"ruleName\":\"mnguxawqaldsyu\",\"isSoftDeleted\":true,\"immutabilityProperties\":{\"isImmutable\":false,\"expiryTime\":\"2020-12-25T05:18:59Z\"}},\"threatStatus\":\"Unknown\",\"threatInfo\":[{\"threatTitle\":\"znkbykutwpfhpagm\",\"threatDescription\":\"skdsnfdsdoakg\",\"lastUpdatedTime\":\"2021-11-05T14:44:19Z\",\"threatState\":\"Active\",\"threatStartTime\":\"2021-11-30T20:09:20Z\",\"threatEndTime\":\"2021-01-31T23:02:22Z\",\"threatURI\":\"l\",\"threatSeverity\":\"Informational\"},{\"threatTitle\":\"usdsttwv\",\"threatDescription\":\"vbbejdcng\",\"lastUpdatedTime\":\"2021-02-12T16:56:22Z\",\"threatState\":\"InProgress\",\"threatStartTime\":\"2021-01-28T01:08:20Z\",\"threatEndTime\":\"2021-03-29T19:45:43Z\",\"threatURI\":\"jzrwrdgrtw\",\"threatSeverity\":\"Warning\"},{\"threatTitle\":\"uzkopbminrfd\",\"threatDescription\":\"yuhhziu\",\"lastUpdatedTime\":\"2021-07-06T04:06:38Z\",\"threatState\":\"Active\",\"threatStartTime\":\"2021-05-03T20:50:59Z\",\"threatEndTime\":\"2021-02-07T20:29:27Z\",\"threatURI\":\"mlmz\",\"threatSeverity\":\"Warning\"}]}") + "{\"objectType\":\"AzureWorkloadSQLPointInTimeRecoveryPoint\",\"timeRanges\":[{\"startTime\":\"2021-06-23T19:51:13Z\",\"endTime\":\"2021-12-10T23:56:18Z\"},{\"startTime\":\"2021-04-04T08:27:15Z\",\"endTime\":\"2021-09-14T16:01:44Z\"},{\"startTime\":\"2021-03-31T00:55:07Z\",\"endTime\":\"2021-10-16T07:40:20Z\"}],\"extendedInfo\":{\"dataDirectoryTimeInUTC\":\"2021-06-08T15:06:14Z\",\"dataDirectoryPaths\":[{\"type\":\"Log\",\"path\":\"hhxvrhmzkwpj\",\"logicalName\":\"wspughftqsxhqx\"},{\"type\":\"Invalid\",\"path\":\"kndxdigrjgu\",\"logicalName\":\"zdmsyqtfi\"},{\"type\":\"Log\",\"path\":\"otzi\",\"logicalName\":\"amvpphoszqzudph\"},{\"type\":\"Log\",\"path\":\"dkfw\",\"logicalName\":\"wcvtbvkayhmtnvyq\"}],\"includedDatabases\":[{\"datasourceId\":\"zwpcnpwzcjaesg\",\"datasourceName\":\"sccyajguqf\"},{\"datasourceId\":\"ygz\",\"datasourceName\":\"dnkfx\"},{\"datasourceId\":\"emdwzrmuhapfc\",\"datasourceName\":\"psqxq\"}],\"snapshotRecoveryPointInfo\":{\"snapshotResourceGroup\":\"vuoy\",\"sourceFilesystemInfo\":[{\"volumeGuid\":\"elvezrypq\",\"fileSystemType\":\"feo\",\"label\":\"rqwky\",\"accessPaths\":[\"bopgxedkowepbqp\"],\"isOnStorageSpace\":false,\"storageSpaceInfo\":{\"storagePoolUniqueId\":\"wccsnjvcdwxlpqek\",\"storagePoolFriendlyName\":\"nkhtjsyingw\",\"virtualDiskUniqueId\":\"atmtdhtmdvy\",\"virtualDiskFriendlyName\":\"ikdgszywkbir\"},\"diskInfoList\":[{},{},{}]},{\"volumeGuid\":\"hlhkjoqrvqqaatj\",\"fileSystemType\":\"rv\",\"label\":\"upmfiibfg\",\"accessPaths\":[\"ool\",\"rwxkvtkkgl\",\"qwjygvja\",\"vblm\"],\"isOnStorageSpace\":false,\"storageSpaceInfo\":{\"storagePoolUniqueId\":\"hbxvvyhgsopbyrqu\",\"storagePoolFriendlyName\":\"g\",\"virtualDiskUniqueId\":\"vwz\",\"virtualDiskFriendlyName\":\"nhlmctlpdng\"},\"diskInfoList\":[{},{}]}]}},\"recoveryPointTimeInUTC\":\"2021-02-05T15:31:44Z\",\"type\":\"Incremental\",\"recoveryPointTierDetails\":[{\"type\":\"HardenedRP\",\"status\":\"Rehydrated\",\"extendedInfo\":{\"b\":\"egrhbpnaixexc\"}},{\"type\":\"ArchivedRP\",\"status\":\"Deleted\",\"extendedInfo\":{\"nhyjsv\":\"rvqahqkghtpwi\",\"vrvmtgjqppyost\":\"ycxzbfvoo\"}},{\"type\":\"Invalid\",\"status\":\"Invalid\",\"extendedInfo\":{\"afxtsgum\":\"nsxkmcwaekrrjr\",\"pvuzlmv\":\"jglikkxwslolb\",\"gplcrpwjxeznoigb\":\"elfk\"}},{\"type\":\"ArchivedRP\",\"status\":\"Deleted\",\"extendedInfo\":{\"oqkag\":\"azej\"}}],\"recoveryPointMoveReadinessInfo\":{\"dm\":{\"isReadyForMove\":true,\"additionalInfo\":\"augzxnfaazpxdtn\"},\"ou\":{\"isReadyForMove\":false,\"additionalInfo\":\"lwuenvrkp\"}},\"recoveryPointProperties\":{\"expiryTime\":\"rebqaaysjk\",\"ruleName\":\"qtnqtt\",\"isSoftDeleted\":false,\"immutabilityProperties\":{\"isImmutable\":false,\"expiryTime\":\"2021-01-15T10:22:53Z\"}},\"threatStatus\":\"UnHealthy\",\"threatInfo\":[{\"threatTitle\":\"pqqmted\",\"threatDescription\":\"mmji\",\"lastUpdatedTime\":\"2021-01-23T06:09:40Z\",\"threatState\":\"Active\",\"threatStartTime\":\"2021-02-27T20:08:37Z\",\"threatEndTime\":\"2021-03-06T19:52:25Z\",\"threatURI\":\"uyqncygupkvipmd\",\"threatSeverity\":\"Critical\"},{\"threatTitle\":\"qupevzh\",\"threatDescription\":\"totxhojujb\",\"lastUpdatedTime\":\"2021-01-07T11:25:05Z\",\"threatState\":\"Active\",\"threatStartTime\":\"2021-09-11T23:02:16Z\",\"threatEndTime\":\"2021-10-20T01:33:25Z\",\"threatURI\":\"xbjxyfwnylrcools\",\"threatSeverity\":\"Critical\"},{\"threatTitle\":\"iwkkbn\",\"threatDescription\":\"rywvtylbfpn\",\"lastUpdatedTime\":\"2021-10-05T21:52:34Z\",\"threatState\":\"Ignored\",\"threatStartTime\":\"2021-07-17T10:48:48Z\",\"threatEndTime\":\"2021-02-21T18:31:28Z\",\"threatURI\":\"htywubxcbihwq\",\"threatSeverity\":\"Informational\"},{\"threatTitle\":\"ntwjch\",\"threatDescription\":\"goihx\",\"lastUpdatedTime\":\"2021-06-23T07:57Z\",\"threatState\":\"Active\",\"threatStartTime\":\"2021-06-22T06:40:38Z\",\"threatEndTime\":\"2021-07-09T14:12:15Z\",\"threatURI\":\"luudfdlwggytsb\",\"threatSeverity\":\"Informational\"}]}") .toObject(AzureWorkloadSqlPointInTimeRecoveryPoint.class); - Assertions.assertEquals(ThreatStatus.UNKNOWN, model.threatStatus()); + Assertions.assertEquals(ThreatStatus.UN_HEALTHY, model.threatStatus()); Assertions.assertEquals(ThreatState.ACTIVE, model.threatInfo().get(0).threatState()); - Assertions.assertEquals(ThreatSeverity.INFORMATIONAL, model.threatInfo().get(0).threatSeverity()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-16T21:03:09Z"), model.recoveryPointTimeInUtc()); - Assertions.assertEquals(RestorePointType.INVALID, model.type()); - Assertions.assertEquals("auwjuetaebu", model.recoveryPointTierDetails().get(0).extendedInfo().get("u")); + Assertions.assertEquals(ThreatSeverity.CRITICAL, model.threatInfo().get(0).threatSeverity()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-05T15:31:44Z"), model.recoveryPointTimeInUtc()); + Assertions.assertEquals(RestorePointType.INCREMENTAL, model.type()); + Assertions.assertEquals("egrhbpnaixexc", model.recoveryPointTierDetails().get(0).extendedInfo().get("b")); Assertions.assertEquals(RecoveryPointTierType.HARDENED_RP, model.recoveryPointTierDetails().get(0).type()); - Assertions.assertEquals(RecoveryPointTierStatus.DISABLED, model.recoveryPointTierDetails().get(0).status()); - Assertions.assertFalse(model.recoveryPointMoveReadinessInfo().get("zuf").isReadyForMove()); - Assertions.assertEquals("zg", model.recoveryPointMoveReadinessInfo().get("zuf").additionalInfo()); - Assertions.assertEquals("gsfraoyzkoow", model.recoveryPointProperties().expiryTime()); - Assertions.assertEquals("mnguxawqaldsyu", model.recoveryPointProperties().ruleName()); - Assertions.assertTrue(model.recoveryPointProperties().isSoftDeleted()); + Assertions.assertEquals(RecoveryPointTierStatus.REHYDRATED, model.recoveryPointTierDetails().get(0).status()); + Assertions.assertTrue(model.recoveryPointMoveReadinessInfo().get("dm").isReadyForMove()); + Assertions.assertEquals("augzxnfaazpxdtn", model.recoveryPointMoveReadinessInfo().get("dm").additionalInfo()); + Assertions.assertEquals("rebqaaysjk", model.recoveryPointProperties().expiryTime()); + Assertions.assertEquals("qtnqtt", model.recoveryPointProperties().ruleName()); + Assertions.assertFalse(model.recoveryPointProperties().isSoftDeleted()); Assertions.assertFalse(model.recoveryPointProperties().immutabilityProperties().isImmutable()); - Assertions.assertEquals(OffsetDateTime.parse("2020-12-25T05:18:59Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-01-15T10:22:53Z"), model.recoveryPointProperties().immutabilityProperties().expiryTime()); - Assertions.assertEquals(OffsetDateTime.parse("2020-12-26T05:50:43Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-06-08T15:06:14Z"), model.extendedInfo().dataDirectoryTimeInUtc()); Assertions.assertEquals(SqlDataDirectoryType.LOG, model.extendedInfo().dataDirectoryPaths().get(0).type()); - Assertions.assertEquals("jaltolmnc", model.extendedInfo().dataDirectoryPaths().get(0).path()); - Assertions.assertEquals("obqwcsdbnwdcfh", model.extendedInfo().dataDirectoryPaths().get(0).logicalName()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-28T13:12:04Z"), model.timeRanges().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-29T15:05:43Z"), model.timeRanges().get(0).endTime()); + Assertions.assertEquals("hhxvrhmzkwpj", model.extendedInfo().dataDirectoryPaths().get(0).path()); + Assertions.assertEquals("wspughftqsxhqx", model.extendedInfo().dataDirectoryPaths().get(0).logicalName()); + Assertions.assertEquals("zwpcnpwzcjaesg", model.extendedInfo().includedDatabases().get(0).datasourceId()); + Assertions.assertEquals("sccyajguqf", model.extendedInfo().includedDatabases().get(0).datasourceName()); + Assertions.assertEquals("vuoy", model.extendedInfo().snapshotRecoveryPointInfo().snapshotResourceGroup()); + Assertions.assertEquals("elvezrypq", + model.extendedInfo().snapshotRecoveryPointInfo().sourceFilesystemInfo().get(0).volumeGuid()); + Assertions.assertEquals("feo", + model.extendedInfo().snapshotRecoveryPointInfo().sourceFilesystemInfo().get(0).fileSystemType()); + Assertions.assertEquals("rqwky", + model.extendedInfo().snapshotRecoveryPointInfo().sourceFilesystemInfo().get(0).label()); + Assertions.assertEquals("bopgxedkowepbqp", + model.extendedInfo().snapshotRecoveryPointInfo().sourceFilesystemInfo().get(0).accessPaths().get(0)); + Assertions.assertFalse( + model.extendedInfo().snapshotRecoveryPointInfo().sourceFilesystemInfo().get(0).isOnStorageSpace()); + Assertions.assertEquals("wccsnjvcdwxlpqek", + model.extendedInfo() + .snapshotRecoveryPointInfo() + .sourceFilesystemInfo() + .get(0) + .storageSpaceInfo() + .storagePoolUniqueId()); + Assertions.assertEquals("nkhtjsyingw", + model.extendedInfo() + .snapshotRecoveryPointInfo() + .sourceFilesystemInfo() + .get(0) + .storageSpaceInfo() + .storagePoolFriendlyName()); + Assertions.assertEquals("atmtdhtmdvy", + model.extendedInfo() + .snapshotRecoveryPointInfo() + .sourceFilesystemInfo() + .get(0) + .storageSpaceInfo() + .virtualDiskUniqueId()); + Assertions.assertEquals("ikdgszywkbir", + model.extendedInfo() + .snapshotRecoveryPointInfo() + .sourceFilesystemInfo() + .get(0) + .storageSpaceInfo() + .virtualDiskFriendlyName()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-23T19:51:13Z"), model.timeRanges().get(0).startTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-12-10T23:56:18Z"), model.timeRanges().get(0).endTime()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSqlPointInTimeRestoreRequestTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSqlPointInTimeRestoreRequestTests.java index 912b198106646..cfd01628839b7 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSqlPointInTimeRestoreRequestTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSqlPointInTimeRestoreRequestTests.java @@ -25,103 +25,99 @@ public final class AzureWorkloadSqlPointInTimeRestoreRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureWorkloadSqlPointInTimeRestoreRequest model = BinaryData.fromString( - "{\"objectType\":\"AzureWorkloadSQLPointInTimeRestoreRequest\",\"pointInTime\":\"2021-03-03T00:06:25Z\",\"shouldUseAlternateTargetLocation\":false,\"isNonRecoverable\":false,\"alternateDirectoryPaths\":[{\"mappingType\":\"Log\",\"sourceLogicalName\":\"kpn\",\"sourcePath\":\"aapm\",\"targetPath\":\"qmeqwigpibudqwyx\"},{\"mappingType\":\"Data\",\"sourceLogicalName\":\"bpmzzn\",\"sourcePath\":\"ff\",\"targetPath\":\"qitmhheioqaqhv\"},{\"mappingType\":\"Invalid\",\"sourceLogicalName\":\"uqyrxpdl\",\"sourcePath\":\"qlsismjqfrddg\",\"targetPath\":\"quhiosrsjuivf\"},{\"mappingType\":\"Data\",\"sourceLogicalName\":\"yirnxzhcz\",\"sourcePath\":\"rxzbujr\",\"targetPath\":\"hqvwrevkhgnlnzon\"}],\"recoveryType\":\"Offline\",\"sourceResourceId\":\"i\",\"propertyBag\":{\"cof\":\"ncvjts\",\"k\":\"zehtdhgb\",\"zmlovuanash\":\"reljeamur\",\"erbdk\":\"xlpm\"},\"targetInfo\":{\"overwriteOption\":\"Overwrite\",\"containerId\":\"izozsd\",\"databaseName\":\"cxjmonfdgnwncyp\",\"targetDirectoryForFileRestore\":\"w\"},\"recoveryMode\":\"SnapshotAttach\",\"targetResourceGroupName\":\"uqj\",\"userAssignedManagedIdentityDetails\":{\"identityArmId\":\"e\",\"identityName\":\"eifzzhmk\",\"userAssignedIdentityProperties\":{\"clientId\":\"vflyhbxcu\",\"principalId\":\"hxgsrboldfor\"}},\"snapshotRestoreParameters\":{\"skipAttachAndMount\":true,\"logPointInTimeForDBRecovery\":\"vizbfhfo\"},\"targetVirtualMachineId\":\"acqpbtuodxesza\",\"resourceGuardOperationRequests\":[\"l\",\"wumuaslzk\"]}") + "{\"objectType\":\"AzureWorkloadSQLPointInTimeRestoreRequest\",\"pointInTime\":\"2021-10-05T06:28:12Z\",\"shouldUseAlternateTargetLocation\":false,\"isNonRecoverable\":false,\"alternateDirectoryPaths\":[{\"mappingType\":\"Log\",\"sourceLogicalName\":\"ugfsxzecpaxwk\",\"sourcePath\":\"ykhv\",\"targetPath\":\"xepmrut\"},{\"mappingType\":\"Log\",\"sourceLogicalName\":\"aobn\",\"sourcePath\":\"ujdjltymkmvg\",\"targetPath\":\"hywartspph\"}],\"recoveryType\":\"RestoreDisks\",\"sourceResourceId\":\"ykxdssjpemmuc\",\"propertyBag\":{\"kflrmymy\":\"i\",\"lhrisw\":\"nc\",\"cgxuugqkctotiowl\":\"lmiiiovg\"},\"targetInfo\":{\"overwriteOption\":\"Overwrite\",\"containerId\":\"ptjgwdt\",\"databaseName\":\"kranblwphqlkcc\",\"targetDirectoryForFileRestore\":\"gygqwah\"},\"recoveryMode\":\"WorkloadRecovery\",\"targetResourceGroupName\":\"wgniipr\",\"userAssignedManagedIdentityDetails\":{\"identityArmId\":\"awuwzdufypivls\",\"identityName\":\"jpmcub\",\"userAssignedIdentityProperties\":{\"clientId\":\"foxx\",\"principalId\":\"bvphavpm\"}},\"snapshotRestoreParameters\":{\"skipAttachAndMount\":true,\"logPointInTimeForDBRecovery\":\"gvgovpbbttefjo\",\"disksToDetachOnClash\":[\"sqyzqedikdfr\",\"biqmrjgei\",\"fqlggw\"]},\"targetVirtualMachineId\":\"wzcxmjpbyephmgt\",\"resourceGuardOperationRequests\":[\"vrcmyfqipgxhnpo\"]}") .toObject(AzureWorkloadSqlPointInTimeRestoreRequest.class); - Assertions.assertEquals("l", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals(RecoveryType.OFFLINE, model.recoveryType()); - Assertions.assertEquals("i", model.sourceResourceId()); - Assertions.assertEquals("ncvjts", model.propertyBag().get("cof")); + Assertions.assertEquals("vrcmyfqipgxhnpo", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals(RecoveryType.RESTORE_DISKS, model.recoveryType()); + Assertions.assertEquals("ykxdssjpemmuc", model.sourceResourceId()); + Assertions.assertEquals("i", model.propertyBag().get("kflrmymy")); Assertions.assertEquals(OverwriteOptions.OVERWRITE, model.targetInfo().overwriteOption()); - Assertions.assertEquals("izozsd", model.targetInfo().containerId()); - Assertions.assertEquals("cxjmonfdgnwncyp", model.targetInfo().databaseName()); - Assertions.assertEquals("w", model.targetInfo().targetDirectoryForFileRestore()); - Assertions.assertEquals(RecoveryMode.SNAPSHOT_ATTACH, model.recoveryMode()); - Assertions.assertEquals("uqj", model.targetResourceGroupName()); - Assertions.assertEquals("e", model.userAssignedManagedIdentityDetails().identityArmId()); - Assertions.assertEquals("eifzzhmk", model.userAssignedManagedIdentityDetails().identityName()); - Assertions.assertEquals("vflyhbxcu", + Assertions.assertEquals("ptjgwdt", model.targetInfo().containerId()); + Assertions.assertEquals("kranblwphqlkcc", model.targetInfo().databaseName()); + Assertions.assertEquals("gygqwah", model.targetInfo().targetDirectoryForFileRestore()); + Assertions.assertEquals(RecoveryMode.WORKLOAD_RECOVERY, model.recoveryMode()); + Assertions.assertEquals("wgniipr", model.targetResourceGroupName()); + Assertions.assertEquals("awuwzdufypivls", model.userAssignedManagedIdentityDetails().identityArmId()); + Assertions.assertEquals("jpmcub", model.userAssignedManagedIdentityDetails().identityName()); + Assertions.assertEquals("foxx", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().clientId()); - Assertions.assertEquals("hxgsrboldfor", + Assertions.assertEquals("bvphavpm", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().principalId()); Assertions.assertTrue(model.snapshotRestoreParameters().skipAttachAndMount()); - Assertions.assertEquals("vizbfhfo", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); - Assertions.assertEquals("acqpbtuodxesza", model.targetVirtualMachineId()); + Assertions.assertEquals("gvgovpbbttefjo", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); + Assertions.assertEquals("sqyzqedikdfr", model.snapshotRestoreParameters().disksToDetachOnClash().get(0)); + Assertions.assertEquals("wzcxmjpbyephmgt", model.targetVirtualMachineId()); Assertions.assertFalse(model.shouldUseAlternateTargetLocation()); Assertions.assertFalse(model.isNonRecoverable()); Assertions.assertEquals(SqlDataDirectoryType.LOG, model.alternateDirectoryPaths().get(0).mappingType()); - Assertions.assertEquals("kpn", model.alternateDirectoryPaths().get(0).sourceLogicalName()); - Assertions.assertEquals("aapm", model.alternateDirectoryPaths().get(0).sourcePath()); - Assertions.assertEquals("qmeqwigpibudqwyx", model.alternateDirectoryPaths().get(0).targetPath()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-03T00:06:25Z"), model.pointInTime()); + Assertions.assertEquals("ugfsxzecpaxwk", model.alternateDirectoryPaths().get(0).sourceLogicalName()); + Assertions.assertEquals("ykhv", model.alternateDirectoryPaths().get(0).sourcePath()); + Assertions.assertEquals("xepmrut", model.alternateDirectoryPaths().get(0).targetPath()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-05T06:28:12Z"), model.pointInTime()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AzureWorkloadSqlPointInTimeRestoreRequest model = new AzureWorkloadSqlPointInTimeRestoreRequest() - .withResourceGuardOperationRequests(Arrays.asList("l", "wumuaslzk")) - .withRecoveryType(RecoveryType.OFFLINE) - .withSourceResourceId("i") - .withPropertyBag(mapOf("cof", "ncvjts", "k", "zehtdhgb", "zmlovuanash", "reljeamur", "erbdk", "xlpm")) + .withResourceGuardOperationRequests(Arrays.asList("vrcmyfqipgxhnpo")) + .withRecoveryType(RecoveryType.RESTORE_DISKS) + .withSourceResourceId("ykxdssjpemmuc") + .withPropertyBag(mapOf("kflrmymy", "i", "lhrisw", "nc", "cgxuugqkctotiowl", "lmiiiovg")) .withTargetInfo(new TargetRestoreInfo().withOverwriteOption(OverwriteOptions.OVERWRITE) - .withContainerId("izozsd") - .withDatabaseName("cxjmonfdgnwncyp") - .withTargetDirectoryForFileRestore("w")) - .withRecoveryMode(RecoveryMode.SNAPSHOT_ATTACH) - .withTargetResourceGroupName("uqj") - .withUserAssignedManagedIdentityDetails(new UserAssignedManagedIdentityDetails().withIdentityArmId("e") - .withIdentityName("eifzzhmk") - .withUserAssignedIdentityProperties( - new UserAssignedIdentityProperties().withClientId("vflyhbxcu").withPrincipalId("hxgsrboldfor"))) + .withContainerId("ptjgwdt") + .withDatabaseName("kranblwphqlkcc") + .withTargetDirectoryForFileRestore("gygqwah")) + .withRecoveryMode(RecoveryMode.WORKLOAD_RECOVERY) + .withTargetResourceGroupName("wgniipr") + .withUserAssignedManagedIdentityDetails( + new UserAssignedManagedIdentityDetails().withIdentityArmId("awuwzdufypivls") + .withIdentityName("jpmcub") + .withUserAssignedIdentityProperties( + new UserAssignedIdentityProperties().withClientId("foxx").withPrincipalId("bvphavpm"))) .withSnapshotRestoreParameters(new SnapshotRestoreParameters().withSkipAttachAndMount(true) - .withLogPointInTimeForDBRecovery("vizbfhfo")) - .withTargetVirtualMachineId("acqpbtuodxesza") + .withLogPointInTimeForDBRecovery("gvgovpbbttefjo") + .withDisksToDetachOnClash(Arrays.asList("sqyzqedikdfr", "biqmrjgei", "fqlggw"))) + .withTargetVirtualMachineId("wzcxmjpbyephmgt") .withShouldUseAlternateTargetLocation(false) .withIsNonRecoverable(false) .withAlternateDirectoryPaths(Arrays.asList( new SqlDataDirectoryMapping().withMappingType(SqlDataDirectoryType.LOG) - .withSourceLogicalName("kpn") - .withSourcePath("aapm") - .withTargetPath("qmeqwigpibudqwyx"), - new SqlDataDirectoryMapping().withMappingType(SqlDataDirectoryType.DATA) - .withSourceLogicalName("bpmzzn") - .withSourcePath("ff") - .withTargetPath("qitmhheioqaqhv"), - new SqlDataDirectoryMapping().withMappingType(SqlDataDirectoryType.INVALID) - .withSourceLogicalName("uqyrxpdl") - .withSourcePath("qlsismjqfrddg") - .withTargetPath("quhiosrsjuivf"), - new SqlDataDirectoryMapping().withMappingType(SqlDataDirectoryType.DATA) - .withSourceLogicalName("yirnxzhcz") - .withSourcePath("rxzbujr") - .withTargetPath("hqvwrevkhgnlnzon"))) - .withPointInTime(OffsetDateTime.parse("2021-03-03T00:06:25Z")); + .withSourceLogicalName("ugfsxzecpaxwk") + .withSourcePath("ykhv") + .withTargetPath("xepmrut"), + new SqlDataDirectoryMapping().withMappingType(SqlDataDirectoryType.LOG) + .withSourceLogicalName("aobn") + .withSourcePath("ujdjltymkmvg") + .withTargetPath("hywartspph"))) + .withPointInTime(OffsetDateTime.parse("2021-10-05T06:28:12Z")); model = BinaryData.fromObject(model).toObject(AzureWorkloadSqlPointInTimeRestoreRequest.class); - Assertions.assertEquals("l", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals(RecoveryType.OFFLINE, model.recoveryType()); - Assertions.assertEquals("i", model.sourceResourceId()); - Assertions.assertEquals("ncvjts", model.propertyBag().get("cof")); + Assertions.assertEquals("vrcmyfqipgxhnpo", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals(RecoveryType.RESTORE_DISKS, model.recoveryType()); + Assertions.assertEquals("ykxdssjpemmuc", model.sourceResourceId()); + Assertions.assertEquals("i", model.propertyBag().get("kflrmymy")); Assertions.assertEquals(OverwriteOptions.OVERWRITE, model.targetInfo().overwriteOption()); - Assertions.assertEquals("izozsd", model.targetInfo().containerId()); - Assertions.assertEquals("cxjmonfdgnwncyp", model.targetInfo().databaseName()); - Assertions.assertEquals("w", model.targetInfo().targetDirectoryForFileRestore()); - Assertions.assertEquals(RecoveryMode.SNAPSHOT_ATTACH, model.recoveryMode()); - Assertions.assertEquals("uqj", model.targetResourceGroupName()); - Assertions.assertEquals("e", model.userAssignedManagedIdentityDetails().identityArmId()); - Assertions.assertEquals("eifzzhmk", model.userAssignedManagedIdentityDetails().identityName()); - Assertions.assertEquals("vflyhbxcu", + Assertions.assertEquals("ptjgwdt", model.targetInfo().containerId()); + Assertions.assertEquals("kranblwphqlkcc", model.targetInfo().databaseName()); + Assertions.assertEquals("gygqwah", model.targetInfo().targetDirectoryForFileRestore()); + Assertions.assertEquals(RecoveryMode.WORKLOAD_RECOVERY, model.recoveryMode()); + Assertions.assertEquals("wgniipr", model.targetResourceGroupName()); + Assertions.assertEquals("awuwzdufypivls", model.userAssignedManagedIdentityDetails().identityArmId()); + Assertions.assertEquals("jpmcub", model.userAssignedManagedIdentityDetails().identityName()); + Assertions.assertEquals("foxx", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().clientId()); - Assertions.assertEquals("hxgsrboldfor", + Assertions.assertEquals("bvphavpm", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().principalId()); Assertions.assertTrue(model.snapshotRestoreParameters().skipAttachAndMount()); - Assertions.assertEquals("vizbfhfo", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); - Assertions.assertEquals("acqpbtuodxesza", model.targetVirtualMachineId()); + Assertions.assertEquals("gvgovpbbttefjo", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); + Assertions.assertEquals("sqyzqedikdfr", model.snapshotRestoreParameters().disksToDetachOnClash().get(0)); + Assertions.assertEquals("wzcxmjpbyephmgt", model.targetVirtualMachineId()); Assertions.assertFalse(model.shouldUseAlternateTargetLocation()); Assertions.assertFalse(model.isNonRecoverable()); Assertions.assertEquals(SqlDataDirectoryType.LOG, model.alternateDirectoryPaths().get(0).mappingType()); - Assertions.assertEquals("kpn", model.alternateDirectoryPaths().get(0).sourceLogicalName()); - Assertions.assertEquals("aapm", model.alternateDirectoryPaths().get(0).sourcePath()); - Assertions.assertEquals("qmeqwigpibudqwyx", model.alternateDirectoryPaths().get(0).targetPath()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-03T00:06:25Z"), model.pointInTime()); + Assertions.assertEquals("ugfsxzecpaxwk", model.alternateDirectoryPaths().get(0).sourceLogicalName()); + Assertions.assertEquals("ykhv", model.alternateDirectoryPaths().get(0).sourcePath()); + Assertions.assertEquals("xepmrut", model.alternateDirectoryPaths().get(0).targetPath()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-05T06:28:12Z"), model.pointInTime()); } // Use "Map.of" if available diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequestTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequestTests.java index 2c1c6b3394ba3..c89b1ff359072 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequestTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequestTests.java @@ -27,35 +27,36 @@ public final class AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequest model = BinaryData.fromString( - "{\"objectType\":\"AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest\",\"recoveryPointRehydrationInfo\":{\"rehydrationRetentionDuration\":\"woycqucwyha\",\"rehydrationPriority\":\"Standard\"},\"pointInTime\":\"2021-06-28T06:34:10Z\",\"shouldUseAlternateTargetLocation\":true,\"isNonRecoverable\":true,\"alternateDirectoryPaths\":[{\"mappingType\":\"Data\",\"sourceLogicalName\":\"fuurutlwexx\",\"sourcePath\":\"alniexzsrzp\",\"targetPath\":\"pqtybb\"},{\"mappingType\":\"Invalid\",\"sourceLogicalName\":\"dakchzyvl\",\"sourcePath\":\"q\",\"targetPath\":\"kcxk\"}],\"recoveryType\":\"OriginalLocation\",\"sourceResourceId\":\"xmysuxswqrntv\",\"propertyBag\":{\"pwcyyufmhr\":\"jpsttexoq\",\"wmqs\":\"nc\"},\"targetInfo\":{\"overwriteOption\":\"FailOnConflict\",\"containerId\":\"zhlctddunqndyfpc\",\"databaseName\":\"qbnj\",\"targetDirectoryForFileRestore\":\"cgegydcwbo\"},\"recoveryMode\":\"FileRecovery\",\"targetResourceGroupName\":\"vqqolih\",\"userAssignedManagedIdentityDetails\":{\"identityArmId\":\"iouaubrjt\",\"identityName\":\"qxfuojrngif\",\"userAssignedIdentityProperties\":{\"clientId\":\"pasccbi\",\"principalId\":\"mzdlyjdfqwmkyo\"}},\"snapshotRestoreParameters\":{\"skipAttachAndMount\":true,\"logPointInTimeForDBRecovery\":\"ruzslzoj\"},\"targetVirtualMachineId\":\"ctfnmdxotng\",\"resourceGuardOperationRequests\":[\"ugeyzihgrkyuiza\",\"snmfpphojeevy\"]}") + "{\"objectType\":\"AzureWorkloadSQLPointInTimeRestoreWithRehydrateRequest\",\"recoveryPointRehydrationInfo\":{\"rehydrationRetentionDuration\":\"wcabvnuileeya\",\"rehydrationPriority\":\"Standard\"},\"pointInTime\":\"2021-05-19T20:56:27Z\",\"shouldUseAlternateTargetLocation\":false,\"isNonRecoverable\":false,\"alternateDirectoryPaths\":[{\"mappingType\":\"Invalid\",\"sourceLogicalName\":\"xwtoaukhfkvc\",\"sourcePath\":\"izmoaeds\",\"targetPath\":\"wuived\"},{\"mappingType\":\"Invalid\",\"sourceLogicalName\":\"eewxeiqbpsmg\",\"sourcePath\":\"guamlj\",\"targetPath\":\"rgmsplzga\"},{\"mappingType\":\"Log\",\"sourceLogicalName\":\"hhvnewgnxkymp\",\"sourcePath\":\"nxrjkixtwbtaoy\",\"targetPath\":\"yghs\"}],\"recoveryType\":\"Invalid\",\"sourceResourceId\":\"lhkgmnsghp\",\"propertyBag\":{\"jkhvyomacluzvxnq\":\"phdrw\",\"df\":\"hrpq\",\"xuifmcsypobkdqz\":\"mkoisqcssf\",\"dmxzjijpv\":\"dzsylollgtrczz\"},\"targetInfo\":{\"overwriteOption\":\"Overwrite\",\"containerId\":\"ihcirldef\",\"databaseName\":\"dcoxnbk\",\"targetDirectoryForFileRestore\":\"anurnnqb\"},\"recoveryMode\":\"Invalid\",\"targetResourceGroupName\":\"izxqltgrd\",\"userAssignedManagedIdentityDetails\":{\"identityArmId\":\"pxrxvbfihwu\",\"identityName\":\"ctafsrbxrblm\",\"userAssignedIdentityProperties\":{\"clientId\":\"wxihs\",\"principalId\":\"xwqagnepzw\"}},\"snapshotRestoreParameters\":{\"skipAttachAndMount\":false,\"logPointInTimeForDBRecovery\":\"sbq\",\"disksToDetachOnClash\":[\"gwwrxaomzis\",\"lrrcz\",\"zkhhltnjadhqo\"]},\"targetVirtualMachineId\":\"jqoyueayfbpcm\",\"resourceGuardOperationRequests\":[\"byrrueqth\",\"mg\"]}") .toObject(AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequest.class); - Assertions.assertEquals("ugeyzihgrkyuiza", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals(RecoveryType.ORIGINAL_LOCATION, model.recoveryType()); - Assertions.assertEquals("xmysuxswqrntv", model.sourceResourceId()); - Assertions.assertEquals("jpsttexoq", model.propertyBag().get("pwcyyufmhr")); - Assertions.assertEquals(OverwriteOptions.FAIL_ON_CONFLICT, model.targetInfo().overwriteOption()); - Assertions.assertEquals("zhlctddunqndyfpc", model.targetInfo().containerId()); - Assertions.assertEquals("qbnj", model.targetInfo().databaseName()); - Assertions.assertEquals("cgegydcwbo", model.targetInfo().targetDirectoryForFileRestore()); - Assertions.assertEquals(RecoveryMode.FILE_RECOVERY, model.recoveryMode()); - Assertions.assertEquals("vqqolih", model.targetResourceGroupName()); - Assertions.assertEquals("iouaubrjt", model.userAssignedManagedIdentityDetails().identityArmId()); - Assertions.assertEquals("qxfuojrngif", model.userAssignedManagedIdentityDetails().identityName()); - Assertions.assertEquals("pasccbi", + Assertions.assertEquals("byrrueqth", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals(RecoveryType.INVALID, model.recoveryType()); + Assertions.assertEquals("lhkgmnsghp", model.sourceResourceId()); + Assertions.assertEquals("phdrw", model.propertyBag().get("jkhvyomacluzvxnq")); + Assertions.assertEquals(OverwriteOptions.OVERWRITE, model.targetInfo().overwriteOption()); + Assertions.assertEquals("ihcirldef", model.targetInfo().containerId()); + Assertions.assertEquals("dcoxnbk", model.targetInfo().databaseName()); + Assertions.assertEquals("anurnnqb", model.targetInfo().targetDirectoryForFileRestore()); + Assertions.assertEquals(RecoveryMode.INVALID, model.recoveryMode()); + Assertions.assertEquals("izxqltgrd", model.targetResourceGroupName()); + Assertions.assertEquals("pxrxvbfihwu", model.userAssignedManagedIdentityDetails().identityArmId()); + Assertions.assertEquals("ctafsrbxrblm", model.userAssignedManagedIdentityDetails().identityName()); + Assertions.assertEquals("wxihs", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().clientId()); - Assertions.assertEquals("mzdlyjdfqwmkyo", + Assertions.assertEquals("xwqagnepzw", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().principalId()); - Assertions.assertTrue(model.snapshotRestoreParameters().skipAttachAndMount()); - Assertions.assertEquals("ruzslzoj", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); - Assertions.assertEquals("ctfnmdxotng", model.targetVirtualMachineId()); - Assertions.assertTrue(model.shouldUseAlternateTargetLocation()); - Assertions.assertTrue(model.isNonRecoverable()); - Assertions.assertEquals(SqlDataDirectoryType.DATA, model.alternateDirectoryPaths().get(0).mappingType()); - Assertions.assertEquals("fuurutlwexx", model.alternateDirectoryPaths().get(0).sourceLogicalName()); - Assertions.assertEquals("alniexzsrzp", model.alternateDirectoryPaths().get(0).sourcePath()); - Assertions.assertEquals("pqtybb", model.alternateDirectoryPaths().get(0).targetPath()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-28T06:34:10Z"), model.pointInTime()); - Assertions.assertEquals("woycqucwyha", model.recoveryPointRehydrationInfo().rehydrationRetentionDuration()); + Assertions.assertFalse(model.snapshotRestoreParameters().skipAttachAndMount()); + Assertions.assertEquals("sbq", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); + Assertions.assertEquals("gwwrxaomzis", model.snapshotRestoreParameters().disksToDetachOnClash().get(0)); + Assertions.assertEquals("jqoyueayfbpcm", model.targetVirtualMachineId()); + Assertions.assertFalse(model.shouldUseAlternateTargetLocation()); + Assertions.assertFalse(model.isNonRecoverable()); + Assertions.assertEquals(SqlDataDirectoryType.INVALID, model.alternateDirectoryPaths().get(0).mappingType()); + Assertions.assertEquals("xwtoaukhfkvc", model.alternateDirectoryPaths().get(0).sourceLogicalName()); + Assertions.assertEquals("izmoaeds", model.alternateDirectoryPaths().get(0).sourcePath()); + Assertions.assertEquals("wuived", model.alternateDirectoryPaths().get(0).targetPath()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-19T20:56:27Z"), model.pointInTime()); + Assertions.assertEquals("wcabvnuileeya", model.recoveryPointRehydrationInfo().rehydrationRetentionDuration()); Assertions.assertEquals(RehydrationPriority.STANDARD, model.recoveryPointRehydrationInfo().rehydrationPriority()); } @@ -64,67 +65,74 @@ public void testDeserialize() throws Exception { public void testSerialize() throws Exception { AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequest model = new AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequest() - .withResourceGuardOperationRequests(Arrays.asList("ugeyzihgrkyuiza", "snmfpphojeevy")) - .withRecoveryType(RecoveryType.ORIGINAL_LOCATION) - .withSourceResourceId("xmysuxswqrntv") - .withPropertyBag(mapOf("pwcyyufmhr", "jpsttexoq", "wmqs", "nc")) - .withTargetInfo(new TargetRestoreInfo().withOverwriteOption(OverwriteOptions.FAIL_ON_CONFLICT) - .withContainerId("zhlctddunqndyfpc") - .withDatabaseName("qbnj") - .withTargetDirectoryForFileRestore("cgegydcwbo")) - .withRecoveryMode(RecoveryMode.FILE_RECOVERY) - .withTargetResourceGroupName("vqqolih") + .withResourceGuardOperationRequests(Arrays.asList("byrrueqth", "mg")) + .withRecoveryType(RecoveryType.INVALID) + .withSourceResourceId("lhkgmnsghp") + .withPropertyBag(mapOf("jkhvyomacluzvxnq", "phdrw", "df", "hrpq", "xuifmcsypobkdqz", "mkoisqcssf", + "dmxzjijpv", "dzsylollgtrczz")) + .withTargetInfo(new TargetRestoreInfo().withOverwriteOption(OverwriteOptions.OVERWRITE) + .withContainerId("ihcirldef") + .withDatabaseName("dcoxnbk") + .withTargetDirectoryForFileRestore("anurnnqb")) + .withRecoveryMode(RecoveryMode.INVALID) + .withTargetResourceGroupName("izxqltgrd") .withUserAssignedManagedIdentityDetails( - new UserAssignedManagedIdentityDetails().withIdentityArmId("iouaubrjt") - .withIdentityName("qxfuojrngif") - .withUserAssignedIdentityProperties(new UserAssignedIdentityProperties().withClientId("pasccbi") - .withPrincipalId("mzdlyjdfqwmkyo"))) - .withSnapshotRestoreParameters(new SnapshotRestoreParameters().withSkipAttachAndMount(true) - .withLogPointInTimeForDBRecovery("ruzslzoj")) - .withTargetVirtualMachineId("ctfnmdxotng") - .withShouldUseAlternateTargetLocation(true) - .withIsNonRecoverable(true) + new UserAssignedManagedIdentityDetails().withIdentityArmId("pxrxvbfihwu") + .withIdentityName("ctafsrbxrblm") + .withUserAssignedIdentityProperties( + new UserAssignedIdentityProperties().withClientId("wxihs").withPrincipalId("xwqagnepzw"))) + .withSnapshotRestoreParameters(new SnapshotRestoreParameters().withSkipAttachAndMount(false) + .withLogPointInTimeForDBRecovery("sbq") + .withDisksToDetachOnClash(Arrays.asList("gwwrxaomzis", "lrrcz", "zkhhltnjadhqo"))) + .withTargetVirtualMachineId("jqoyueayfbpcm") + .withShouldUseAlternateTargetLocation(false) + .withIsNonRecoverable(false) .withAlternateDirectoryPaths(Arrays.asList( - new SqlDataDirectoryMapping().withMappingType(SqlDataDirectoryType.DATA) - .withSourceLogicalName("fuurutlwexx") - .withSourcePath("alniexzsrzp") - .withTargetPath("pqtybb"), new SqlDataDirectoryMapping().withMappingType(SqlDataDirectoryType.INVALID) - .withSourceLogicalName("dakchzyvl") - .withSourcePath("q") - .withTargetPath("kcxk"))) - .withPointInTime(OffsetDateTime.parse("2021-06-28T06:34:10Z")) + .withSourceLogicalName("xwtoaukhfkvc") + .withSourcePath("izmoaeds") + .withTargetPath("wuived"), + new SqlDataDirectoryMapping().withMappingType(SqlDataDirectoryType.INVALID) + .withSourceLogicalName("eewxeiqbpsmg") + .withSourcePath("guamlj") + .withTargetPath("rgmsplzga"), + new SqlDataDirectoryMapping().withMappingType(SqlDataDirectoryType.LOG) + .withSourceLogicalName("hhvnewgnxkymp") + .withSourcePath("nxrjkixtwbtaoy") + .withTargetPath("yghs"))) + .withPointInTime(OffsetDateTime.parse("2021-05-19T20:56:27Z")) .withRecoveryPointRehydrationInfo( - new RecoveryPointRehydrationInfo().withRehydrationRetentionDuration("woycqucwyha") + new RecoveryPointRehydrationInfo().withRehydrationRetentionDuration("wcabvnuileeya") .withRehydrationPriority(RehydrationPriority.STANDARD)); model = BinaryData.fromObject(model).toObject(AzureWorkloadSqlPointInTimeRestoreWithRehydrateRequest.class); - Assertions.assertEquals("ugeyzihgrkyuiza", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals(RecoveryType.ORIGINAL_LOCATION, model.recoveryType()); - Assertions.assertEquals("xmysuxswqrntv", model.sourceResourceId()); - Assertions.assertEquals("jpsttexoq", model.propertyBag().get("pwcyyufmhr")); - Assertions.assertEquals(OverwriteOptions.FAIL_ON_CONFLICT, model.targetInfo().overwriteOption()); - Assertions.assertEquals("zhlctddunqndyfpc", model.targetInfo().containerId()); - Assertions.assertEquals("qbnj", model.targetInfo().databaseName()); - Assertions.assertEquals("cgegydcwbo", model.targetInfo().targetDirectoryForFileRestore()); - Assertions.assertEquals(RecoveryMode.FILE_RECOVERY, model.recoveryMode()); - Assertions.assertEquals("vqqolih", model.targetResourceGroupName()); - Assertions.assertEquals("iouaubrjt", model.userAssignedManagedIdentityDetails().identityArmId()); - Assertions.assertEquals("qxfuojrngif", model.userAssignedManagedIdentityDetails().identityName()); - Assertions.assertEquals("pasccbi", + Assertions.assertEquals("byrrueqth", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals(RecoveryType.INVALID, model.recoveryType()); + Assertions.assertEquals("lhkgmnsghp", model.sourceResourceId()); + Assertions.assertEquals("phdrw", model.propertyBag().get("jkhvyomacluzvxnq")); + Assertions.assertEquals(OverwriteOptions.OVERWRITE, model.targetInfo().overwriteOption()); + Assertions.assertEquals("ihcirldef", model.targetInfo().containerId()); + Assertions.assertEquals("dcoxnbk", model.targetInfo().databaseName()); + Assertions.assertEquals("anurnnqb", model.targetInfo().targetDirectoryForFileRestore()); + Assertions.assertEquals(RecoveryMode.INVALID, model.recoveryMode()); + Assertions.assertEquals("izxqltgrd", model.targetResourceGroupName()); + Assertions.assertEquals("pxrxvbfihwu", model.userAssignedManagedIdentityDetails().identityArmId()); + Assertions.assertEquals("ctafsrbxrblm", model.userAssignedManagedIdentityDetails().identityName()); + Assertions.assertEquals("wxihs", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().clientId()); - Assertions.assertEquals("mzdlyjdfqwmkyo", + Assertions.assertEquals("xwqagnepzw", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().principalId()); - Assertions.assertTrue(model.snapshotRestoreParameters().skipAttachAndMount()); - Assertions.assertEquals("ruzslzoj", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); - Assertions.assertEquals("ctfnmdxotng", model.targetVirtualMachineId()); - Assertions.assertTrue(model.shouldUseAlternateTargetLocation()); - Assertions.assertTrue(model.isNonRecoverable()); - Assertions.assertEquals(SqlDataDirectoryType.DATA, model.alternateDirectoryPaths().get(0).mappingType()); - Assertions.assertEquals("fuurutlwexx", model.alternateDirectoryPaths().get(0).sourceLogicalName()); - Assertions.assertEquals("alniexzsrzp", model.alternateDirectoryPaths().get(0).sourcePath()); - Assertions.assertEquals("pqtybb", model.alternateDirectoryPaths().get(0).targetPath()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-28T06:34:10Z"), model.pointInTime()); - Assertions.assertEquals("woycqucwyha", model.recoveryPointRehydrationInfo().rehydrationRetentionDuration()); + Assertions.assertFalse(model.snapshotRestoreParameters().skipAttachAndMount()); + Assertions.assertEquals("sbq", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); + Assertions.assertEquals("gwwrxaomzis", model.snapshotRestoreParameters().disksToDetachOnClash().get(0)); + Assertions.assertEquals("jqoyueayfbpcm", model.targetVirtualMachineId()); + Assertions.assertFalse(model.shouldUseAlternateTargetLocation()); + Assertions.assertFalse(model.isNonRecoverable()); + Assertions.assertEquals(SqlDataDirectoryType.INVALID, model.alternateDirectoryPaths().get(0).mappingType()); + Assertions.assertEquals("xwtoaukhfkvc", model.alternateDirectoryPaths().get(0).sourceLogicalName()); + Assertions.assertEquals("izmoaeds", model.alternateDirectoryPaths().get(0).sourcePath()); + Assertions.assertEquals("wuived", model.alternateDirectoryPaths().get(0).targetPath()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-19T20:56:27Z"), model.pointInTime()); + Assertions.assertEquals("wcabvnuileeya", model.recoveryPointRehydrationInfo().rehydrationRetentionDuration()); Assertions.assertEquals(RehydrationPriority.STANDARD, model.recoveryPointRehydrationInfo().rehydrationPriority()); } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSqlRecoveryPointExtendedInfoTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSqlRecoveryPointExtendedInfoTests.java index 7d1fdc321d06f..50c99a5b7d3ba 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSqlRecoveryPointExtendedInfoTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSqlRecoveryPointExtendedInfoTests.java @@ -14,11 +14,54 @@ public final class AzureWorkloadSqlRecoveryPointExtendedInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureWorkloadSqlRecoveryPointExtendedInfo model = BinaryData.fromString( - "{\"dataDirectoryTimeInUTC\":\"2021-06-25T06:45:10Z\",\"dataDirectoryPaths\":[{\"type\":\"Data\",\"path\":\"fzeeyebizik\",\"logicalName\":\"uhqlbjbsybbqwrvt\"},{\"type\":\"Log\",\"path\":\"fp\",\"logicalName\":\"mpipaslthaqfxs\"},{\"type\":\"Log\",\"path\":\"twbdsrezpdrhn\",\"logicalName\":\"yowqkdwytisibir\"}]}") + "{\"dataDirectoryTimeInUTC\":\"2021-08-09T02:09:02Z\",\"dataDirectoryPaths\":[{\"type\":\"Log\",\"path\":\"skh\",\"logicalName\":\"ygo\"},{\"type\":\"Log\",\"path\":\"qfqjbvleorfm\",\"logicalName\":\"iqtqzfavyvnq\"},{\"type\":\"Invalid\",\"path\":\"ryeu\",\"logicalName\":\"jkqa\"}],\"includedDatabases\":[{\"datasourceId\":\"slesjcbhernnt\",\"datasourceName\":\"w\"},{\"datasourceId\":\"cv\",\"datasourceName\":\"uwrbehwagoh\"},{\"datasourceId\":\"f\",\"datasourceName\":\"mrqemvvhmx\"},{\"datasourceId\":\"rjfut\",\"datasourceName\":\"oe\"}],\"snapshotRecoveryPointInfo\":{\"snapshotResourceGroup\":\"ewzcjznmwcp\",\"sourceFilesystemInfo\":[{\"volumeGuid\":\"adraufactkahzo\",\"fileSystemType\":\"jjziuxxpsh\",\"label\":\"e\",\"accessPaths\":[\"fgslqubkwdl\"],\"isOnStorageSpace\":false,\"storageSpaceInfo\":{\"storagePoolUniqueId\":\"utujba\",\"storagePoolFriendlyName\":\"juohminyflnorw\",\"virtualDiskUniqueId\":\"uvwpklvxwmyg\",\"virtualDiskFriendlyName\":\"pgpqchiszepnnb\"},\"diskInfoList\":[{\"diskNumber\":1933702310,\"diskUniqueId\":\"bbdaxco\",\"diskGuid\":\"ozauorsukokwb\",\"diskLocation\":\"lhlv\",\"sizeInBytes\":5310678963156682213,\"friendlyName\":\"zlrphwzs\",\"lun\":450434086,\"managedDiskId\":\"eyuqdunvmnnrwr\"},{\"diskNumber\":736945785,\"diskUniqueId\":\"ktalywjhhgdnhxms\",\"diskGuid\":\"fomiloxgg\",\"diskLocation\":\"fi\",\"sizeInBytes\":573812384778003954,\"friendlyName\":\"uzaofjchvcyyy\",\"lun\":1812829551,\"managedDiskId\":\"otcubi\"}]},{\"volumeGuid\":\"uipwoqonmacje\",\"fileSystemType\":\"izsh\",\"label\":\"cimpevfg\",\"accessPaths\":[\"rrilbywdxsmic\"],\"isOnStorageSpace\":true,\"storageSpaceInfo\":{\"storagePoolUniqueId\":\"scjfnyns\",\"storagePoolFriendlyName\":\"ujiz\",\"virtualDiskUniqueId\":\"oqytibyowbblgy\",\"virtualDiskFriendlyName\":\"utp\"},\"diskInfoList\":[{\"diskNumber\":542259929,\"diskUniqueId\":\"ismsksbpimlqolj\",\"diskGuid\":\"cgxxlxs\",\"diskLocation\":\"gcvizqzdwlvwlyou\",\"sizeInBytes\":1599606688317806600,\"friendlyName\":\"k\",\"lun\":1622283745,\"managedDiskId\":\"yhgk\"},{\"diskNumber\":370188648,\"diskUniqueId\":\"sgow\",\"diskGuid\":\"ttsttktlahbqact\",\"diskLocation\":\"gzukxitmm\",\"sizeInBytes\":5954431271796698360,\"friendlyName\":\"q\",\"lun\":2013453223,\"managedDiskId\":\"xrxc\"}]},{\"volumeGuid\":\"uisavokq\",\"fileSystemType\":\"fvazivjlfrqttba\",\"label\":\"katnwxyi\",\"accessPaths\":[\"dkqqfkuvscxkd\"],\"isOnStorageSpace\":false,\"storageSpaceInfo\":{\"storagePoolUniqueId\":\"vibrxkpmloazuruo\",\"storagePoolFriendlyName\":\"goorbteo\",\"virtualDiskUniqueId\":\"fhjxakvvjgs\",\"virtualDiskFriendlyName\":\"r\"},\"diskInfoList\":[{\"diskNumber\":482425656,\"diskUniqueId\":\"wt\",\"diskGuid\":\"kxn\",\"diskLocation\":\"dabg\",\"sizeInBytes\":475774977196617352,\"friendlyName\":\"juewbcihxuuwhcjy\",\"lun\":2135180508,\"managedDiskId\":\"bvpa\"},{\"diskNumber\":1452415640,\"diskUniqueId\":\"udzpxgwjplmagstc\",\"diskGuid\":\"hpfkyrkdbdgi\",\"diskLocation\":\"sjkmnwqj\",\"sizeInBytes\":5642781519400902015,\"friendlyName\":\"yhddvia\",\"lun\":1955095413,\"managedDiskId\":\"n\"},{\"diskNumber\":1471640459,\"diskUniqueId\":\"pmvmemfnczdwvv\",\"diskGuid\":\"lxlllchpo\",\"diskLocation\":\"zevwrdnhfukuv\",\"sizeInBytes\":1878561844275820156,\"friendlyName\":\"smystuluqypfc\",\"lun\":291266426,\"managedDiskId\":\"chpqbmfpjba\"},{\"diskNumber\":2011821000,\"diskUniqueId\":\"fcxsspuunnoxy\",\"diskGuid\":\"xgqddrih\",\"diskLocation\":\"hoqca\",\"sizeInBytes\":9039296662708326096,\"friendlyName\":\"omdjvlpjxxkzbrm\",\"lun\":1001888045,\"managedDiskId\":\"vsiykzkdncjdxon\"}]},{\"volumeGuid\":\"oggculapz\",\"fileSystemType\":\"rpgogtqxep\",\"label\":\"lbfu\",\"accessPaths\":[\"yjt\"],\"isOnStorageSpace\":false,\"storageSpaceInfo\":{\"storagePoolUniqueId\":\"zhvfcibyfmowuxr\",\"storagePoolFriendlyName\":\"pvdwxf\",\"virtualDiskUniqueId\":\"iivwzjbhyzsxjrka\",\"virtualDiskFriendlyName\":\"trnegvmnvuqeqvld\"},\"diskInfoList\":[{\"diskNumber\":608775789,\"diskUniqueId\":\"bkkd\",\"diskGuid\":\"lves\",\"diskLocation\":\"jlxr\",\"sizeInBytes\":6506157078923372574,\"friendlyName\":\"apeewchpxlkt\",\"lun\":1620250081,\"managedDiskId\":\"iycslevuf\"},{\"diskNumber\":1863886155,\"diskUniqueId\":\"ktyhjt\",\"diskGuid\":\"dcgzul\",\"diskLocation\":\"mrqzzrrjvpgl\",\"sizeInBytes\":7516675391759114962,\"friendlyName\":\"rvqeevtoepryutn\",\"lun\":2045022432,\"managedDiskId\":\"zdmovzv\"},{\"diskNumber\":216394015,\"diskUniqueId\":\"wzqa\",\"diskGuid\":\"lgzurig\",\"diskLocation\":\"ecxn\",\"sizeInBytes\":6914590541087686517,\"friendlyName\":\"kpvzmlq\",\"lun\":412723764,\"managedDiskId\":\"gxobfirclnp\"},{\"diskNumber\":816651113,\"diskUniqueId\":\"yzriykhy\",\"diskGuid\":\"fvjlboxqvkjlmx\",\"diskLocation\":\"mdy\",\"sizeInBytes\":8975628624340233031,\"friendlyName\":\"igu\",\"lun\":1829917026,\"managedDiskId\":\"aauzzptjazysd\"}]}]}}") .toObject(AzureWorkloadSqlRecoveryPointExtendedInfo.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-25T06:45:10Z"), model.dataDirectoryTimeInUtc()); - Assertions.assertEquals(SqlDataDirectoryType.DATA, model.dataDirectoryPaths().get(0).type()); - Assertions.assertEquals("fzeeyebizik", model.dataDirectoryPaths().get(0).path()); - Assertions.assertEquals("uhqlbjbsybbqwrvt", model.dataDirectoryPaths().get(0).logicalName()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-09T02:09:02Z"), model.dataDirectoryTimeInUtc()); + Assertions.assertEquals(SqlDataDirectoryType.LOG, model.dataDirectoryPaths().get(0).type()); + Assertions.assertEquals("skh", model.dataDirectoryPaths().get(0).path()); + Assertions.assertEquals("ygo", model.dataDirectoryPaths().get(0).logicalName()); + Assertions.assertEquals("slesjcbhernnt", model.includedDatabases().get(0).datasourceId()); + Assertions.assertEquals("w", model.includedDatabases().get(0).datasourceName()); + Assertions.assertEquals("ewzcjznmwcp", model.snapshotRecoveryPointInfo().snapshotResourceGroup()); + Assertions.assertEquals("adraufactkahzo", + model.snapshotRecoveryPointInfo().sourceFilesystemInfo().get(0).volumeGuid()); + Assertions.assertEquals("jjziuxxpsh", + model.snapshotRecoveryPointInfo().sourceFilesystemInfo().get(0).fileSystemType()); + Assertions.assertEquals("e", model.snapshotRecoveryPointInfo().sourceFilesystemInfo().get(0).label()); + Assertions.assertEquals("fgslqubkwdl", + model.snapshotRecoveryPointInfo().sourceFilesystemInfo().get(0).accessPaths().get(0)); + Assertions.assertFalse(model.snapshotRecoveryPointInfo().sourceFilesystemInfo().get(0).isOnStorageSpace()); + Assertions.assertEquals("utujba", + model.snapshotRecoveryPointInfo().sourceFilesystemInfo().get(0).storageSpaceInfo().storagePoolUniqueId()); + Assertions.assertEquals("juohminyflnorw", + model.snapshotRecoveryPointInfo() + .sourceFilesystemInfo() + .get(0) + .storageSpaceInfo() + .storagePoolFriendlyName()); + Assertions.assertEquals("uvwpklvxwmyg", + model.snapshotRecoveryPointInfo().sourceFilesystemInfo().get(0).storageSpaceInfo().virtualDiskUniqueId()); + Assertions.assertEquals("pgpqchiszepnnb", + model.snapshotRecoveryPointInfo() + .sourceFilesystemInfo() + .get(0) + .storageSpaceInfo() + .virtualDiskFriendlyName()); + Assertions.assertEquals(1933702310, + model.snapshotRecoveryPointInfo().sourceFilesystemInfo().get(0).diskInfoList().get(0).diskNumber()); + Assertions.assertEquals("bbdaxco", + model.snapshotRecoveryPointInfo().sourceFilesystemInfo().get(0).diskInfoList().get(0).diskUniqueId()); + Assertions.assertEquals("ozauorsukokwb", + model.snapshotRecoveryPointInfo().sourceFilesystemInfo().get(0).diskInfoList().get(0).diskGuid()); + Assertions.assertEquals("lhlv", + model.snapshotRecoveryPointInfo().sourceFilesystemInfo().get(0).diskInfoList().get(0).diskLocation()); + Assertions.assertEquals(5310678963156682213L, + model.snapshotRecoveryPointInfo().sourceFilesystemInfo().get(0).diskInfoList().get(0).sizeInBytes()); + Assertions.assertEquals("zlrphwzs", + model.snapshotRecoveryPointInfo().sourceFilesystemInfo().get(0).diskInfoList().get(0).friendlyName()); + Assertions.assertEquals(450434086, + model.snapshotRecoveryPointInfo().sourceFilesystemInfo().get(0).diskInfoList().get(0).lun()); + Assertions.assertEquals("eyuqdunvmnnrwr", + model.snapshotRecoveryPointInfo().sourceFilesystemInfo().get(0).diskInfoList().get(0).managedDiskId()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSqlRecoveryPointTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSqlRecoveryPointTests.java index fa06fe212100c..f08d56a6e9e84 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSqlRecoveryPointTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSqlRecoveryPointTests.java @@ -20,28 +20,69 @@ public final class AzureWorkloadSqlRecoveryPointTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureWorkloadSqlRecoveryPoint model = BinaryData.fromString( - "{\"objectType\":\"AzureWorkloadSQLRecoveryPoint\",\"extendedInfo\":{\"dataDirectoryTimeInUTC\":\"2021-11-20T14:37:17Z\",\"dataDirectoryPaths\":[{\"type\":\"Invalid\",\"path\":\"iahxicsl\",\"logicalName\":\"oqzpiyylha\"}]},\"recoveryPointTimeInUTC\":\"2021-07-29T02:17:13Z\",\"type\":\"Full\",\"recoveryPointTierDetails\":[{\"type\":\"ArchivedRP\",\"status\":\"Disabled\",\"extendedInfo\":{\"gwol\":\"qscywu\",\"zbwemh\":\"h\"}},{\"type\":\"Invalid\",\"status\":\"Rehydrated\",\"extendedInfo\":{\"pqwd\":\"swe\",\"mkttlstvlzywem\":\"ggicccnxqhue\",\"lusiy\":\"zrncsdt\",\"cy\":\"bsfgytguslfea\"}}],\"recoveryPointMoveReadinessInfo\":{\"pelol\":{\"isReadyForMove\":true,\"additionalInfo\":\"ejhzisxg\"},\"vu\":{\"isReadyForMove\":false,\"additionalInfo\":\"srp\"},\"wib\":{\"isReadyForMove\":true,\"additionalInfo\":\"ehtwdwrft\"}},\"recoveryPointProperties\":{\"expiryTime\":\"dl\",\"ruleName\":\"shfwpracstwity\",\"isSoftDeleted\":true,\"immutabilityProperties\":{\"isImmutable\":true,\"expiryTime\":\"2021-04-16T00:20:28Z\"}},\"threatStatus\":\"Healthy\",\"threatInfo\":[{\"threatTitle\":\"md\",\"threatDescription\":\"dnwzxltjcvnhltiu\",\"lastUpdatedTime\":\"2021-04-06T04:39:54Z\",\"threatState\":\"InProgress\",\"threatStartTime\":\"2021-08-23T04:40:03Z\",\"threatEndTime\":\"2021-02-16T09:07:58Z\",\"threatURI\":\"ibyqunyowxwlmdj\",\"threatSeverity\":\"Informational\"},{\"threatTitle\":\"g\",\"threatDescription\":\"fvpdbo\",\"lastUpdatedTime\":\"2021-12-02T21:38:46Z\",\"threatState\":\"InProgress\",\"threatStartTime\":\"2021-07-05T22:49:30Z\",\"threatEndTime\":\"2021-04-19T06:09:38Z\",\"threatURI\":\"krribdeibqi\",\"threatSeverity\":\"Critical\"},{\"threatTitle\":\"hvxndzwmkrefajpj\",\"threatDescription\":\"wkqnyhg\",\"lastUpdatedTime\":\"2021-02-13T21:51:24Z\",\"threatState\":\"Ignored\",\"threatStartTime\":\"2021-03-13T11:40:42Z\",\"threatEndTime\":\"2021-01-26T06:16:25Z\",\"threatURI\":\"sjabibs\",\"threatSeverity\":\"Warning\"},{\"threatTitle\":\"wfsdjpvkvpbj\",\"threatDescription\":\"kzbzkdvncjabudu\",\"lastUpdatedTime\":\"2021-02-18T14:39:28Z\",\"threatState\":\"InProgress\",\"threatStartTime\":\"2021-02-19T20:50:36Z\",\"threatEndTime\":\"2021-02-03T01:10:02Z\",\"threatURI\":\"jjklff\",\"threatSeverity\":\"Critical\"}]}") + "{\"objectType\":\"AzureWorkloadSQLRecoveryPoint\",\"extendedInfo\":{\"dataDirectoryTimeInUTC\":\"2021-01-09T04:08:29Z\",\"dataDirectoryPaths\":[{\"type\":\"Data\",\"path\":\"qfi\",\"logicalName\":\"x\"},{\"type\":\"Log\",\"path\":\"irgne\",\"logicalName\":\"twqmsniffcdmqnr\"},{\"type\":\"Invalid\",\"path\":\"ijnkrxfrdd\",\"logicalName\":\"ratiz\"}],\"includedDatabases\":[{\"datasourceId\":\"asxifto\",\"datasourceName\":\"yzhftwesgogczh\"},{\"datasourceId\":\"nxkrlgnyhmossxkk\",\"datasourceName\":\"h\"},{\"datasourceId\":\"gh\",\"datasourceName\":\"bdhqxvcxgf\"}],\"snapshotRecoveryPointInfo\":{\"snapshotResourceGroup\":\"sofbshrn\",\"sourceFilesystemInfo\":[{\"volumeGuid\":\"swdvzyybycnun\",\"fileSystemType\":\"srtkfa\",\"label\":\"opqgikyzirtxdyux\",\"accessPaths\":[\"ntps\",\"wgioilqukry\",\"xtqmieoxor\",\"gufhyaomtbg\"],\"isOnStorageSpace\":true,\"storageSpaceInfo\":{\"storagePoolUniqueId\":\"rvk\",\"storagePoolFriendlyName\":\"ovjzhpjbibgjmfx\",\"virtualDiskUniqueId\":\"vfcluyovwxnbkfe\",\"virtualDiskFriendlyName\":\"xscyhwzdgirujbz\"},\"diskInfoList\":[{},{},{}]},{\"volumeGuid\":\"zzbtdcqvpniyujvi\",\"fileSystemType\":\"wdsh\",\"label\":\"snrbgyefrymsgao\",\"accessPaths\":[\"wncot\"],\"isOnStorageSpace\":false,\"storageSpaceInfo\":{\"storagePoolUniqueId\":\"rctym\",\"storagePoolFriendlyName\":\"oftpipiwycz\",\"virtualDiskUniqueId\":\"xacpqjli\",\"virtualDiskFriendlyName\":\"yuspskas\"},\"diskInfoList\":[{},{}]},{\"volumeGuid\":\"fwdgzxulucvp\",\"fileSystemType\":\"rsre\",\"label\":\"vxurisjnhnytxifq\",\"accessPaths\":[\"xmrhu\",\"lw\",\"cesutrgjupauut\"],\"isOnStorageSpace\":false,\"storageSpaceInfo\":{\"storagePoolUniqueId\":\"ih\",\"storagePoolFriendlyName\":\"qg\",\"virtualDiskUniqueId\":\"pnfqntcyp\",\"virtualDiskFriendlyName\":\"jv\"},\"diskInfoList\":[{},{},{}]}]}},\"recoveryPointTimeInUTC\":\"2021-10-31T21:51:36Z\",\"type\":\"Differential\",\"recoveryPointTierDetails\":[{\"type\":\"HardenedRP\",\"status\":\"Disabled\",\"extendedInfo\":{\"t\":\"ceacvlhvygdy\",\"jslb\":\"mrtwna\",\"aeqphchqnr\":\"wkojgcyztsfmzn\"}},{\"type\":\"Invalid\",\"status\":\"Disabled\",\"extendedInfo\":{\"hbejdznxcvdsrhnj\":\"qgaifmviklbydv\"}},{\"type\":\"HardenedRP\",\"status\":\"Deleted\",\"extendedInfo\":{\"ucea\":\"zgemjdftuljlt\"}}],\"recoveryPointMoveReadinessInfo\":{\"ejwcwwqiok\":{\"isReadyForMove\":false,\"additionalInfo\":\"o\"},\"fz\":{\"isReadyForMove\":false,\"additionalInfo\":\"mojmsvpkjprvkw\"}},\"recoveryPointProperties\":{\"expiryTime\":\"yxgtczh\",\"ruleName\":\"dbsdshm\",\"isSoftDeleted\":true,\"immutabilityProperties\":{\"isImmutable\":true,\"expiryTime\":\"2021-12-01T09:32:27Z\"}},\"threatStatus\":\"Warning\",\"threatInfo\":[{\"threatTitle\":\"iplt\",\"threatDescription\":\"htba\",\"lastUpdatedTime\":\"2021-07-30T22:05:34Z\",\"threatState\":\"InProgress\",\"threatStartTime\":\"2021-06-15T04:05:50Z\",\"threatEndTime\":\"2021-01-27T09:50:08Z\",\"threatURI\":\"yklyhpluodpvruud\",\"threatSeverity\":\"Critical\"},{\"threatTitle\":\"bth\",\"threatDescription\":\"tgk\",\"lastUpdatedTime\":\"2021-11-29T07:21:02Z\",\"threatState\":\"Resolved\",\"threatStartTime\":\"2021-04-20T07:04:31Z\",\"threatEndTime\":\"2021-01-30T12:26:40Z\",\"threatURI\":\"edqbc\",\"threatSeverity\":\"Critical\"},{\"threatTitle\":\"h\",\"threatDescription\":\"odqkdlwwqfb\",\"lastUpdatedTime\":\"2021-11-14T02:43:26Z\",\"threatState\":\"InProgress\",\"threatStartTime\":\"2021-05-26T02:30:15Z\",\"threatEndTime\":\"2021-08-17T05:09:37Z\",\"threatURI\":\"mlmbtxhwgfwsrta\",\"threatSeverity\":\"Warning\"}]}") .toObject(AzureWorkloadSqlRecoveryPoint.class); - Assertions.assertEquals(ThreatStatus.HEALTHY, model.threatStatus()); + Assertions.assertEquals(ThreatStatus.WARNING, model.threatStatus()); Assertions.assertEquals(ThreatState.IN_PROGRESS, model.threatInfo().get(0).threatState()); - Assertions.assertEquals(ThreatSeverity.INFORMATIONAL, model.threatInfo().get(0).threatSeverity()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-29T02:17:13Z"), model.recoveryPointTimeInUtc()); - Assertions.assertEquals(RestorePointType.FULL, model.type()); - Assertions.assertEquals("qscywu", model.recoveryPointTierDetails().get(0).extendedInfo().get("gwol")); - Assertions.assertEquals(RecoveryPointTierType.ARCHIVED_RP, model.recoveryPointTierDetails().get(0).type()); + Assertions.assertEquals(ThreatSeverity.CRITICAL, model.threatInfo().get(0).threatSeverity()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-31T21:51:36Z"), model.recoveryPointTimeInUtc()); + Assertions.assertEquals(RestorePointType.DIFFERENTIAL, model.type()); + Assertions.assertEquals("ceacvlhvygdy", model.recoveryPointTierDetails().get(0).extendedInfo().get("t")); + Assertions.assertEquals(RecoveryPointTierType.HARDENED_RP, model.recoveryPointTierDetails().get(0).type()); Assertions.assertEquals(RecoveryPointTierStatus.DISABLED, model.recoveryPointTierDetails().get(0).status()); - Assertions.assertTrue(model.recoveryPointMoveReadinessInfo().get("pelol").isReadyForMove()); - Assertions.assertEquals("ejhzisxg", model.recoveryPointMoveReadinessInfo().get("pelol").additionalInfo()); - Assertions.assertEquals("dl", model.recoveryPointProperties().expiryTime()); - Assertions.assertEquals("shfwpracstwity", model.recoveryPointProperties().ruleName()); + Assertions.assertFalse(model.recoveryPointMoveReadinessInfo().get("ejwcwwqiok").isReadyForMove()); + Assertions.assertEquals("o", model.recoveryPointMoveReadinessInfo().get("ejwcwwqiok").additionalInfo()); + Assertions.assertEquals("yxgtczh", model.recoveryPointProperties().expiryTime()); + Assertions.assertEquals("dbsdshm", model.recoveryPointProperties().ruleName()); Assertions.assertTrue(model.recoveryPointProperties().isSoftDeleted()); Assertions.assertTrue(model.recoveryPointProperties().immutabilityProperties().isImmutable()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-16T00:20:28Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-12-01T09:32:27Z"), model.recoveryPointProperties().immutabilityProperties().expiryTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-20T14:37:17Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-01-09T04:08:29Z"), model.extendedInfo().dataDirectoryTimeInUtc()); - Assertions.assertEquals(SqlDataDirectoryType.INVALID, model.extendedInfo().dataDirectoryPaths().get(0).type()); - Assertions.assertEquals("iahxicsl", model.extendedInfo().dataDirectoryPaths().get(0).path()); - Assertions.assertEquals("oqzpiyylha", model.extendedInfo().dataDirectoryPaths().get(0).logicalName()); + Assertions.assertEquals(SqlDataDirectoryType.DATA, model.extendedInfo().dataDirectoryPaths().get(0).type()); + Assertions.assertEquals("qfi", model.extendedInfo().dataDirectoryPaths().get(0).path()); + Assertions.assertEquals("x", model.extendedInfo().dataDirectoryPaths().get(0).logicalName()); + Assertions.assertEquals("asxifto", model.extendedInfo().includedDatabases().get(0).datasourceId()); + Assertions.assertEquals("yzhftwesgogczh", model.extendedInfo().includedDatabases().get(0).datasourceName()); + Assertions.assertEquals("sofbshrn", model.extendedInfo().snapshotRecoveryPointInfo().snapshotResourceGroup()); + Assertions.assertEquals("swdvzyybycnun", + model.extendedInfo().snapshotRecoveryPointInfo().sourceFilesystemInfo().get(0).volumeGuid()); + Assertions.assertEquals("srtkfa", + model.extendedInfo().snapshotRecoveryPointInfo().sourceFilesystemInfo().get(0).fileSystemType()); + Assertions.assertEquals("opqgikyzirtxdyux", + model.extendedInfo().snapshotRecoveryPointInfo().sourceFilesystemInfo().get(0).label()); + Assertions.assertEquals("ntps", + model.extendedInfo().snapshotRecoveryPointInfo().sourceFilesystemInfo().get(0).accessPaths().get(0)); + Assertions.assertTrue( + model.extendedInfo().snapshotRecoveryPointInfo().sourceFilesystemInfo().get(0).isOnStorageSpace()); + Assertions.assertEquals("rvk", + model.extendedInfo() + .snapshotRecoveryPointInfo() + .sourceFilesystemInfo() + .get(0) + .storageSpaceInfo() + .storagePoolUniqueId()); + Assertions.assertEquals("ovjzhpjbibgjmfx", + model.extendedInfo() + .snapshotRecoveryPointInfo() + .sourceFilesystemInfo() + .get(0) + .storageSpaceInfo() + .storagePoolFriendlyName()); + Assertions.assertEquals("vfcluyovwxnbkfe", + model.extendedInfo() + .snapshotRecoveryPointInfo() + .sourceFilesystemInfo() + .get(0) + .storageSpaceInfo() + .virtualDiskUniqueId()); + Assertions.assertEquals("xscyhwzdgirujbz", + model.extendedInfo() + .snapshotRecoveryPointInfo() + .sourceFilesystemInfo() + .get(0) + .storageSpaceInfo() + .virtualDiskFriendlyName()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSqlRestoreRequestTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSqlRestoreRequestTests.java index b2d66ef6e8891..6786aa317a293 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSqlRestoreRequestTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSqlRestoreRequestTests.java @@ -24,93 +24,100 @@ public final class AzureWorkloadSqlRestoreRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureWorkloadSqlRestoreRequest model = BinaryData.fromString( - "{\"objectType\":\"AzureWorkloadSQLRestoreRequest\",\"shouldUseAlternateTargetLocation\":false,\"isNonRecoverable\":false,\"alternateDirectoryPaths\":[{\"mappingType\":\"Log\",\"sourceLogicalName\":\"gomfgbeglq\",\"sourcePath\":\"eohibet\",\"targetPath\":\"uankrrfxeeeb\"},{\"mappingType\":\"Data\",\"sourceLogicalName\":\"acvbmqz\",\"sourcePath\":\"q\",\"targetPath\":\"aj\"}],\"recoveryType\":\"Offline\",\"sourceResourceId\":\"acevehjkuyx\",\"propertyBag\":{\"faey\":\"gaoql\",\"hriypoqeyhlqhy\":\"inmfgvxirp\"},\"targetInfo\":{\"overwriteOption\":\"Overwrite\",\"containerId\":\"yznuciqd\",\"databaseName\":\"ex\",\"targetDirectoryForFileRestore\":\"tdfuxt\"},\"recoveryMode\":\"Invalid\",\"targetResourceGroupName\":\"ibmi\",\"userAssignedManagedIdentityDetails\":{\"identityArmId\":\"nustgnljh\",\"identityName\":\"g\",\"userAssignedIdentityProperties\":{\"clientId\":\"cmavmqfoudorhcg\",\"principalId\":\"prot\"}},\"snapshotRestoreParameters\":{\"skipAttachAndMount\":false,\"logPointInTimeForDBRecovery\":\"d\"},\"targetVirtualMachineId\":\"xhugcm\",\"resourceGuardOperationRequests\":[\"vlgo\"]}") + "{\"objectType\":\"AzureWorkloadSQLRestoreRequest\",\"shouldUseAlternateTargetLocation\":false,\"isNonRecoverable\":true,\"alternateDirectoryPaths\":[{\"mappingType\":\"Invalid\",\"sourceLogicalName\":\"dhxiidlopedbwd\",\"sourcePath\":\"qyybxubmdnafcbq\",\"targetPath\":\"e\"},{\"mappingType\":\"Log\",\"sourceLogicalName\":\"aqacigeleohd\",\"sourcePath\":\"qvwzkjopwbeonrl\",\"targetPath\":\"zdqyb\"},{\"mappingType\":\"Invalid\",\"sourceLogicalName\":\"kxcpt\",\"sourcePath\":\"qfyiaseqchkr\",\"targetPath\":\"zrazisgyk\"}],\"recoveryType\":\"Offline\",\"sourceResourceId\":\"vanbwzohmnrxxbs\",\"propertyBag\":{\"nzxojpslsvjgpli\":\"linhmdptysprqs\",\"qvapcohhoucq\":\"fiqwoy\",\"jxcx\":\"q\",\"tzqdd\":\"rzdcgdzbenribcaw\"},\"targetInfo\":{\"overwriteOption\":\"Invalid\",\"containerId\":\"jhzn\",\"databaseName\":\"tuatmzwcj\",\"targetDirectoryForFileRestore\":\"cqtjzmi\"},\"recoveryMode\":\"SnapshotAttachAndRecover\",\"targetResourceGroupName\":\"gat\",\"userAssignedManagedIdentityDetails\":{\"identityArmId\":\"vbxngr\",\"identityName\":\"wggahttzlswvaj\",\"userAssignedIdentityProperties\":{\"clientId\":\"t\",\"principalId\":\"joqza\"}},\"snapshotRestoreParameters\":{\"skipAttachAndMount\":false,\"logPointInTimeForDBRecovery\":\"rjzfrgqhaohc\",\"disksToDetachOnClash\":[\"oc\",\"jrohmbpyryxameb\",\"ydyvkfkmro\",\"xne\"]},\"targetVirtualMachineId\":\"sm\",\"resourceGuardOperationRequests\":[\"lfpya\"]}") .toObject(AzureWorkloadSqlRestoreRequest.class); - Assertions.assertEquals("vlgo", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals("lfpya", model.resourceGuardOperationRequests().get(0)); Assertions.assertEquals(RecoveryType.OFFLINE, model.recoveryType()); - Assertions.assertEquals("acevehjkuyx", model.sourceResourceId()); - Assertions.assertEquals("gaoql", model.propertyBag().get("faey")); - Assertions.assertEquals(OverwriteOptions.OVERWRITE, model.targetInfo().overwriteOption()); - Assertions.assertEquals("yznuciqd", model.targetInfo().containerId()); - Assertions.assertEquals("ex", model.targetInfo().databaseName()); - Assertions.assertEquals("tdfuxt", model.targetInfo().targetDirectoryForFileRestore()); - Assertions.assertEquals(RecoveryMode.INVALID, model.recoveryMode()); - Assertions.assertEquals("ibmi", model.targetResourceGroupName()); - Assertions.assertEquals("nustgnljh", model.userAssignedManagedIdentityDetails().identityArmId()); - Assertions.assertEquals("g", model.userAssignedManagedIdentityDetails().identityName()); - Assertions.assertEquals("cmavmqfoudorhcg", + Assertions.assertEquals("vanbwzohmnrxxbs", model.sourceResourceId()); + Assertions.assertEquals("linhmdptysprqs", model.propertyBag().get("nzxojpslsvjgpli")); + Assertions.assertEquals(OverwriteOptions.INVALID, model.targetInfo().overwriteOption()); + Assertions.assertEquals("jhzn", model.targetInfo().containerId()); + Assertions.assertEquals("tuatmzwcj", model.targetInfo().databaseName()); + Assertions.assertEquals("cqtjzmi", model.targetInfo().targetDirectoryForFileRestore()); + Assertions.assertEquals(RecoveryMode.SNAPSHOT_ATTACH_AND_RECOVER, model.recoveryMode()); + Assertions.assertEquals("gat", model.targetResourceGroupName()); + Assertions.assertEquals("vbxngr", model.userAssignedManagedIdentityDetails().identityArmId()); + Assertions.assertEquals("wggahttzlswvaj", model.userAssignedManagedIdentityDetails().identityName()); + Assertions.assertEquals("t", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().clientId()); - Assertions.assertEquals("prot", + Assertions.assertEquals("joqza", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().principalId()); Assertions.assertFalse(model.snapshotRestoreParameters().skipAttachAndMount()); - Assertions.assertEquals("d", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); - Assertions.assertEquals("xhugcm", model.targetVirtualMachineId()); + Assertions.assertEquals("rjzfrgqhaohc", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); + Assertions.assertEquals("oc", model.snapshotRestoreParameters().disksToDetachOnClash().get(0)); + Assertions.assertEquals("sm", model.targetVirtualMachineId()); Assertions.assertFalse(model.shouldUseAlternateTargetLocation()); - Assertions.assertFalse(model.isNonRecoverable()); - Assertions.assertEquals(SqlDataDirectoryType.LOG, model.alternateDirectoryPaths().get(0).mappingType()); - Assertions.assertEquals("gomfgbeglq", model.alternateDirectoryPaths().get(0).sourceLogicalName()); - Assertions.assertEquals("eohibet", model.alternateDirectoryPaths().get(0).sourcePath()); - Assertions.assertEquals("uankrrfxeeeb", model.alternateDirectoryPaths().get(0).targetPath()); + Assertions.assertTrue(model.isNonRecoverable()); + Assertions.assertEquals(SqlDataDirectoryType.INVALID, model.alternateDirectoryPaths().get(0).mappingType()); + Assertions.assertEquals("dhxiidlopedbwd", model.alternateDirectoryPaths().get(0).sourceLogicalName()); + Assertions.assertEquals("qyybxubmdnafcbq", model.alternateDirectoryPaths().get(0).sourcePath()); + Assertions.assertEquals("e", model.alternateDirectoryPaths().get(0).targetPath()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - AzureWorkloadSqlRestoreRequest model - = new AzureWorkloadSqlRestoreRequest().withResourceGuardOperationRequests(Arrays.asList("vlgo")) - .withRecoveryType(RecoveryType.OFFLINE) - .withSourceResourceId("acevehjkuyx") - .withPropertyBag(mapOf("faey", "gaoql", "hriypoqeyhlqhy", "inmfgvxirp")) - .withTargetInfo(new TargetRestoreInfo().withOverwriteOption(OverwriteOptions.OVERWRITE) - .withContainerId("yznuciqd") - .withDatabaseName("ex") - .withTargetDirectoryForFileRestore("tdfuxt")) - .withRecoveryMode(RecoveryMode.INVALID) - .withTargetResourceGroupName("ibmi") - .withUserAssignedManagedIdentityDetails(new UserAssignedManagedIdentityDetails() - .withIdentityArmId("nustgnljh") - .withIdentityName("g") - .withUserAssignedIdentityProperties( - new UserAssignedIdentityProperties().withClientId("cmavmqfoudorhcg").withPrincipalId("prot"))) - .withSnapshotRestoreParameters( - new SnapshotRestoreParameters().withSkipAttachAndMount(false).withLogPointInTimeForDBRecovery("d")) - .withTargetVirtualMachineId("xhugcm") - .withShouldUseAlternateTargetLocation(false) - .withIsNonRecoverable(false) - .withAlternateDirectoryPaths(Arrays.asList( - new SqlDataDirectoryMapping().withMappingType(SqlDataDirectoryType.LOG) - .withSourceLogicalName("gomfgbeglq") - .withSourcePath("eohibet") - .withTargetPath("uankrrfxeeeb"), - new SqlDataDirectoryMapping().withMappingType(SqlDataDirectoryType.DATA) - .withSourceLogicalName("acvbmqz") - .withSourcePath("q") - .withTargetPath("aj"))); + AzureWorkloadSqlRestoreRequest model = new AzureWorkloadSqlRestoreRequest() + .withResourceGuardOperationRequests(Arrays.asList("lfpya")) + .withRecoveryType(RecoveryType.OFFLINE) + .withSourceResourceId("vanbwzohmnrxxbs") + .withPropertyBag(mapOf("nzxojpslsvjgpli", "linhmdptysprqs", "qvapcohhoucq", "fiqwoy", "jxcx", "q", "tzqdd", + "rzdcgdzbenribcaw")) + .withTargetInfo(new TargetRestoreInfo().withOverwriteOption(OverwriteOptions.INVALID) + .withContainerId("jhzn") + .withDatabaseName("tuatmzwcj") + .withTargetDirectoryForFileRestore("cqtjzmi")) + .withRecoveryMode(RecoveryMode.SNAPSHOT_ATTACH_AND_RECOVER) + .withTargetResourceGroupName("gat") + .withUserAssignedManagedIdentityDetails(new UserAssignedManagedIdentityDetails().withIdentityArmId("vbxngr") + .withIdentityName("wggahttzlswvaj") + .withUserAssignedIdentityProperties( + new UserAssignedIdentityProperties().withClientId("t").withPrincipalId("joqza"))) + .withSnapshotRestoreParameters(new SnapshotRestoreParameters().withSkipAttachAndMount(false) + .withLogPointInTimeForDBRecovery("rjzfrgqhaohc") + .withDisksToDetachOnClash(Arrays.asList("oc", "jrohmbpyryxameb", "ydyvkfkmro", "xne"))) + .withTargetVirtualMachineId("sm") + .withShouldUseAlternateTargetLocation(false) + .withIsNonRecoverable(true) + .withAlternateDirectoryPaths(Arrays.asList( + new SqlDataDirectoryMapping().withMappingType(SqlDataDirectoryType.INVALID) + .withSourceLogicalName("dhxiidlopedbwd") + .withSourcePath("qyybxubmdnafcbq") + .withTargetPath("e"), + new SqlDataDirectoryMapping().withMappingType(SqlDataDirectoryType.LOG) + .withSourceLogicalName("aqacigeleohd") + .withSourcePath("qvwzkjopwbeonrl") + .withTargetPath("zdqyb"), + new SqlDataDirectoryMapping().withMappingType(SqlDataDirectoryType.INVALID) + .withSourceLogicalName("kxcpt") + .withSourcePath("qfyiaseqchkr") + .withTargetPath("zrazisgyk"))); model = BinaryData.fromObject(model).toObject(AzureWorkloadSqlRestoreRequest.class); - Assertions.assertEquals("vlgo", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals("lfpya", model.resourceGuardOperationRequests().get(0)); Assertions.assertEquals(RecoveryType.OFFLINE, model.recoveryType()); - Assertions.assertEquals("acevehjkuyx", model.sourceResourceId()); - Assertions.assertEquals("gaoql", model.propertyBag().get("faey")); - Assertions.assertEquals(OverwriteOptions.OVERWRITE, model.targetInfo().overwriteOption()); - Assertions.assertEquals("yznuciqd", model.targetInfo().containerId()); - Assertions.assertEquals("ex", model.targetInfo().databaseName()); - Assertions.assertEquals("tdfuxt", model.targetInfo().targetDirectoryForFileRestore()); - Assertions.assertEquals(RecoveryMode.INVALID, model.recoveryMode()); - Assertions.assertEquals("ibmi", model.targetResourceGroupName()); - Assertions.assertEquals("nustgnljh", model.userAssignedManagedIdentityDetails().identityArmId()); - Assertions.assertEquals("g", model.userAssignedManagedIdentityDetails().identityName()); - Assertions.assertEquals("cmavmqfoudorhcg", + Assertions.assertEquals("vanbwzohmnrxxbs", model.sourceResourceId()); + Assertions.assertEquals("linhmdptysprqs", model.propertyBag().get("nzxojpslsvjgpli")); + Assertions.assertEquals(OverwriteOptions.INVALID, model.targetInfo().overwriteOption()); + Assertions.assertEquals("jhzn", model.targetInfo().containerId()); + Assertions.assertEquals("tuatmzwcj", model.targetInfo().databaseName()); + Assertions.assertEquals("cqtjzmi", model.targetInfo().targetDirectoryForFileRestore()); + Assertions.assertEquals(RecoveryMode.SNAPSHOT_ATTACH_AND_RECOVER, model.recoveryMode()); + Assertions.assertEquals("gat", model.targetResourceGroupName()); + Assertions.assertEquals("vbxngr", model.userAssignedManagedIdentityDetails().identityArmId()); + Assertions.assertEquals("wggahttzlswvaj", model.userAssignedManagedIdentityDetails().identityName()); + Assertions.assertEquals("t", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().clientId()); - Assertions.assertEquals("prot", + Assertions.assertEquals("joqza", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().principalId()); Assertions.assertFalse(model.snapshotRestoreParameters().skipAttachAndMount()); - Assertions.assertEquals("d", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); - Assertions.assertEquals("xhugcm", model.targetVirtualMachineId()); + Assertions.assertEquals("rjzfrgqhaohc", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); + Assertions.assertEquals("oc", model.snapshotRestoreParameters().disksToDetachOnClash().get(0)); + Assertions.assertEquals("sm", model.targetVirtualMachineId()); Assertions.assertFalse(model.shouldUseAlternateTargetLocation()); - Assertions.assertFalse(model.isNonRecoverable()); - Assertions.assertEquals(SqlDataDirectoryType.LOG, model.alternateDirectoryPaths().get(0).mappingType()); - Assertions.assertEquals("gomfgbeglq", model.alternateDirectoryPaths().get(0).sourceLogicalName()); - Assertions.assertEquals("eohibet", model.alternateDirectoryPaths().get(0).sourcePath()); - Assertions.assertEquals("uankrrfxeeeb", model.alternateDirectoryPaths().get(0).targetPath()); + Assertions.assertTrue(model.isNonRecoverable()); + Assertions.assertEquals(SqlDataDirectoryType.INVALID, model.alternateDirectoryPaths().get(0).mappingType()); + Assertions.assertEquals("dhxiidlopedbwd", model.alternateDirectoryPaths().get(0).sourceLogicalName()); + Assertions.assertEquals("qyybxubmdnafcbq", model.alternateDirectoryPaths().get(0).sourcePath()); + Assertions.assertEquals("e", model.alternateDirectoryPaths().get(0).targetPath()); } // Use "Map.of" if available diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSqlRestoreWithRehydrateRequestTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSqlRestoreWithRehydrateRequestTests.java index d3ca2929af9e4..54ebaa75388e6 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSqlRestoreWithRehydrateRequestTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/AzureWorkloadSqlRestoreWithRehydrateRequestTests.java @@ -26,94 +26,107 @@ public final class AzureWorkloadSqlRestoreWithRehydrateRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { AzureWorkloadSqlRestoreWithRehydrateRequest model = BinaryData.fromString( - "{\"objectType\":\"AzureWorkloadSQLRestoreWithRehydrateRequest\",\"recoveryPointRehydrationInfo\":{\"rehydrationRetentionDuration\":\"ftpmdtzfjltfv\",\"rehydrationPriority\":\"High\"},\"shouldUseAlternateTargetLocation\":true,\"isNonRecoverable\":false,\"alternateDirectoryPaths\":[{\"mappingType\":\"Data\",\"sourceLogicalName\":\"vpbdbzqgq\",\"sourcePath\":\"hedsvqwthmkyib\",\"targetPath\":\"sihsgqcwdhohsd\"}],\"recoveryType\":\"RestoreDisks\",\"sourceResourceId\":\"zsu\",\"propertyBag\":{\"muapcvhdbevw\":\"hdxbzlm\",\"qzinkfkbg\":\"qxeysko\",\"owxeqocljmy\":\"z\"},\"targetInfo\":{\"overwriteOption\":\"Invalid\",\"containerId\":\"kjjeokbz\",\"databaseName\":\"ezrxcczurtleipqx\",\"targetDirectoryForFileRestore\":\"wvz\"},\"recoveryMode\":\"SnapshotAttachAndRecover\",\"targetResourceGroupName\":\"dfbzdixzmq\",\"userAssignedManagedIdentityDetails\":{\"identityArmId\":\"d\",\"identityName\":\"opqhewjptmc\",\"userAssignedIdentityProperties\":{\"clientId\":\"ostzelndlatu\",\"principalId\":\"zlbiojlvfhrbbpn\"}},\"snapshotRestoreParameters\":{\"skipAttachAndMount\":false,\"logPointInTimeForDBRecovery\":\"wyyu\"},\"targetVirtualMachineId\":\"ochpprpr\",\"resourceGuardOperationRequests\":[\"okayzejnhlbkp\"]}") + "{\"objectType\":\"AzureWorkloadSQLRestoreWithRehydrateRequest\",\"recoveryPointRehydrationInfo\":{\"rehydrationRetentionDuration\":\"ygvoavyunssxlgh\",\"rehydrationPriority\":\"High\"},\"shouldUseAlternateTargetLocation\":true,\"isNonRecoverable\":false,\"alternateDirectoryPaths\":[{\"mappingType\":\"Data\",\"sourceLogicalName\":\"eksgbuxantuygd\",\"sourcePath\":\"aq\",\"targetPath\":\"irpiwrqofulopmj\"},{\"mappingType\":\"Invalid\",\"sourceLogicalName\":\"whc\",\"sourcePath\":\"pibkephuu\",\"targetPath\":\"rctat\"},{\"mappingType\":\"Invalid\",\"sourceLogicalName\":\"tqpbrlcy\",\"sourcePath\":\"uczkgofxyfsruc\",\"targetPath\":\"rrp\"}],\"recoveryType\":\"AlternateLocation\",\"sourceResourceId\":\"bstvje\",\"propertyBag\":{\"vrmazlpdwwexymzv\":\"rmvvfkoxmlghktui\",\"yy\":\"azipbhpwvqsg\",\"patlbijp\":\"uzivensrpmeyyvp\",\"olmk\":\"gsksrfhf\"},\"targetInfo\":{\"overwriteOption\":\"Overwrite\",\"containerId\":\"cdommpvfqaw\",\"databaseName\":\"gbrt\",\"targetDirectoryForFileRestore\":\"iac\"},\"recoveryMode\":\"RecoveryUsingSnapshot\",\"targetResourceGroupName\":\"xhajlfnth\",\"userAssignedManagedIdentityDetails\":{\"identityArmId\":\"yuttdiygbpvnwswm\",\"identityName\":\"k\",\"userAssignedIdentityProperties\":{\"clientId\":\"wwgzwxjlmecvog\",\"principalId\":\"zyvneezaifghtmo\"}},\"snapshotRestoreParameters\":{\"skipAttachAndMount\":false,\"logPointInTimeForDBRecovery\":\"fhzbkr\",\"disksToDetachOnClash\":[\"javfqn\",\"hnqoewdo\"]},\"targetVirtualMachineId\":\"yetesy\",\"resourceGuardOperationRequests\":[\"dbztjhqtfbov\"]}") .toObject(AzureWorkloadSqlRestoreWithRehydrateRequest.class); - Assertions.assertEquals("okayzejnhlbkp", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals(RecoveryType.RESTORE_DISKS, model.recoveryType()); - Assertions.assertEquals("zsu", model.sourceResourceId()); - Assertions.assertEquals("hdxbzlm", model.propertyBag().get("muapcvhdbevw")); - Assertions.assertEquals(OverwriteOptions.INVALID, model.targetInfo().overwriteOption()); - Assertions.assertEquals("kjjeokbz", model.targetInfo().containerId()); - Assertions.assertEquals("ezrxcczurtleipqx", model.targetInfo().databaseName()); - Assertions.assertEquals("wvz", model.targetInfo().targetDirectoryForFileRestore()); - Assertions.assertEquals(RecoveryMode.SNAPSHOT_ATTACH_AND_RECOVER, model.recoveryMode()); - Assertions.assertEquals("dfbzdixzmq", model.targetResourceGroupName()); - Assertions.assertEquals("d", model.userAssignedManagedIdentityDetails().identityArmId()); - Assertions.assertEquals("opqhewjptmc", model.userAssignedManagedIdentityDetails().identityName()); - Assertions.assertEquals("ostzelndlatu", + Assertions.assertEquals("dbztjhqtfbov", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals(RecoveryType.ALTERNATE_LOCATION, model.recoveryType()); + Assertions.assertEquals("bstvje", model.sourceResourceId()); + Assertions.assertEquals("rmvvfkoxmlghktui", model.propertyBag().get("vrmazlpdwwexymzv")); + Assertions.assertEquals(OverwriteOptions.OVERWRITE, model.targetInfo().overwriteOption()); + Assertions.assertEquals("cdommpvfqaw", model.targetInfo().containerId()); + Assertions.assertEquals("gbrt", model.targetInfo().databaseName()); + Assertions.assertEquals("iac", model.targetInfo().targetDirectoryForFileRestore()); + Assertions.assertEquals(RecoveryMode.RECOVERY_USING_SNAPSHOT, model.recoveryMode()); + Assertions.assertEquals("xhajlfnth", model.targetResourceGroupName()); + Assertions.assertEquals("yuttdiygbpvnwswm", model.userAssignedManagedIdentityDetails().identityArmId()); + Assertions.assertEquals("k", model.userAssignedManagedIdentityDetails().identityName()); + Assertions.assertEquals("wwgzwxjlmecvog", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().clientId()); - Assertions.assertEquals("zlbiojlvfhrbbpn", + Assertions.assertEquals("zyvneezaifghtmo", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().principalId()); Assertions.assertFalse(model.snapshotRestoreParameters().skipAttachAndMount()); - Assertions.assertEquals("wyyu", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); - Assertions.assertEquals("ochpprpr", model.targetVirtualMachineId()); + Assertions.assertEquals("fhzbkr", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); + Assertions.assertEquals("javfqn", model.snapshotRestoreParameters().disksToDetachOnClash().get(0)); + Assertions.assertEquals("yetesy", model.targetVirtualMachineId()); Assertions.assertTrue(model.shouldUseAlternateTargetLocation()); Assertions.assertFalse(model.isNonRecoverable()); Assertions.assertEquals(SqlDataDirectoryType.DATA, model.alternateDirectoryPaths().get(0).mappingType()); - Assertions.assertEquals("vpbdbzqgq", model.alternateDirectoryPaths().get(0).sourceLogicalName()); - Assertions.assertEquals("hedsvqwthmkyib", model.alternateDirectoryPaths().get(0).sourcePath()); - Assertions.assertEquals("sihsgqcwdhohsd", model.alternateDirectoryPaths().get(0).targetPath()); - Assertions.assertEquals("ftpmdtzfjltfv", model.recoveryPointRehydrationInfo().rehydrationRetentionDuration()); + Assertions.assertEquals("eksgbuxantuygd", model.alternateDirectoryPaths().get(0).sourceLogicalName()); + Assertions.assertEquals("aq", model.alternateDirectoryPaths().get(0).sourcePath()); + Assertions.assertEquals("irpiwrqofulopmj", model.alternateDirectoryPaths().get(0).targetPath()); + Assertions.assertEquals("ygvoavyunssxlgh", model.recoveryPointRehydrationInfo().rehydrationRetentionDuration()); Assertions.assertEquals(RehydrationPriority.HIGH, model.recoveryPointRehydrationInfo().rehydrationPriority()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { AzureWorkloadSqlRestoreWithRehydrateRequest model = new AzureWorkloadSqlRestoreWithRehydrateRequest() - .withResourceGuardOperationRequests(Arrays.asList("okayzejnhlbkp")) - .withRecoveryType(RecoveryType.RESTORE_DISKS) - .withSourceResourceId("zsu") - .withPropertyBag(mapOf("muapcvhdbevw", "hdxbzlm", "qzinkfkbg", "qxeysko", "owxeqocljmy", "z")) - .withTargetInfo(new TargetRestoreInfo().withOverwriteOption(OverwriteOptions.INVALID) - .withContainerId("kjjeokbz") - .withDatabaseName("ezrxcczurtleipqx") - .withTargetDirectoryForFileRestore("wvz")) - .withRecoveryMode(RecoveryMode.SNAPSHOT_ATTACH_AND_RECOVER) - .withTargetResourceGroupName("dfbzdixzmq") - .withUserAssignedManagedIdentityDetails(new UserAssignedManagedIdentityDetails().withIdentityArmId("d") - .withIdentityName("opqhewjptmc") - .withUserAssignedIdentityProperties(new UserAssignedIdentityProperties().withClientId("ostzelndlatu") - .withPrincipalId("zlbiojlvfhrbbpn"))) - .withSnapshotRestoreParameters( - new SnapshotRestoreParameters().withSkipAttachAndMount(false).withLogPointInTimeForDBRecovery("wyyu")) - .withTargetVirtualMachineId("ochpprpr") + .withResourceGuardOperationRequests(Arrays.asList("dbztjhqtfbov")) + .withRecoveryType(RecoveryType.ALTERNATE_LOCATION) + .withSourceResourceId("bstvje") + .withPropertyBag(mapOf("vrmazlpdwwexymzv", "rmvvfkoxmlghktui", "yy", "azipbhpwvqsg", "patlbijp", + "uzivensrpmeyyvp", "olmk", "gsksrfhf")) + .withTargetInfo(new TargetRestoreInfo().withOverwriteOption(OverwriteOptions.OVERWRITE) + .withContainerId("cdommpvfqaw") + .withDatabaseName("gbrt") + .withTargetDirectoryForFileRestore("iac")) + .withRecoveryMode(RecoveryMode.RECOVERY_USING_SNAPSHOT) + .withTargetResourceGroupName("xhajlfnth") + .withUserAssignedManagedIdentityDetails(new UserAssignedManagedIdentityDetails() + .withIdentityArmId("yuttdiygbpvnwswm") + .withIdentityName("k") + .withUserAssignedIdentityProperties(new UserAssignedIdentityProperties().withClientId("wwgzwxjlmecvog") + .withPrincipalId("zyvneezaifghtmo"))) + .withSnapshotRestoreParameters(new SnapshotRestoreParameters().withSkipAttachAndMount(false) + .withLogPointInTimeForDBRecovery("fhzbkr") + .withDisksToDetachOnClash(Arrays.asList("javfqn", "hnqoewdo"))) + .withTargetVirtualMachineId("yetesy") .withShouldUseAlternateTargetLocation(true) .withIsNonRecoverable(false) - .withAlternateDirectoryPaths( - Arrays.asList(new SqlDataDirectoryMapping().withMappingType(SqlDataDirectoryType.DATA) - .withSourceLogicalName("vpbdbzqgq") - .withSourcePath("hedsvqwthmkyib") - .withTargetPath("sihsgqcwdhohsd"))) + .withAlternateDirectoryPaths(Arrays.asList( + new SqlDataDirectoryMapping().withMappingType(SqlDataDirectoryType.DATA) + .withSourceLogicalName("eksgbuxantuygd") + .withSourcePath("aq") + .withTargetPath("irpiwrqofulopmj"), + new SqlDataDirectoryMapping().withMappingType(SqlDataDirectoryType.INVALID) + .withSourceLogicalName("whc") + .withSourcePath("pibkephuu") + .withTargetPath("rctat"), + new SqlDataDirectoryMapping().withMappingType(SqlDataDirectoryType.INVALID) + .withSourceLogicalName("tqpbrlcy") + .withSourcePath("uczkgofxyfsruc") + .withTargetPath("rrp"))) .withRecoveryPointRehydrationInfo( - new RecoveryPointRehydrationInfo().withRehydrationRetentionDuration("ftpmdtzfjltfv") + new RecoveryPointRehydrationInfo().withRehydrationRetentionDuration("ygvoavyunssxlgh") .withRehydrationPriority(RehydrationPriority.HIGH)); model = BinaryData.fromObject(model).toObject(AzureWorkloadSqlRestoreWithRehydrateRequest.class); - Assertions.assertEquals("okayzejnhlbkp", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals(RecoveryType.RESTORE_DISKS, model.recoveryType()); - Assertions.assertEquals("zsu", model.sourceResourceId()); - Assertions.assertEquals("hdxbzlm", model.propertyBag().get("muapcvhdbevw")); - Assertions.assertEquals(OverwriteOptions.INVALID, model.targetInfo().overwriteOption()); - Assertions.assertEquals("kjjeokbz", model.targetInfo().containerId()); - Assertions.assertEquals("ezrxcczurtleipqx", model.targetInfo().databaseName()); - Assertions.assertEquals("wvz", model.targetInfo().targetDirectoryForFileRestore()); - Assertions.assertEquals(RecoveryMode.SNAPSHOT_ATTACH_AND_RECOVER, model.recoveryMode()); - Assertions.assertEquals("dfbzdixzmq", model.targetResourceGroupName()); - Assertions.assertEquals("d", model.userAssignedManagedIdentityDetails().identityArmId()); - Assertions.assertEquals("opqhewjptmc", model.userAssignedManagedIdentityDetails().identityName()); - Assertions.assertEquals("ostzelndlatu", + Assertions.assertEquals("dbztjhqtfbov", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals(RecoveryType.ALTERNATE_LOCATION, model.recoveryType()); + Assertions.assertEquals("bstvje", model.sourceResourceId()); + Assertions.assertEquals("rmvvfkoxmlghktui", model.propertyBag().get("vrmazlpdwwexymzv")); + Assertions.assertEquals(OverwriteOptions.OVERWRITE, model.targetInfo().overwriteOption()); + Assertions.assertEquals("cdommpvfqaw", model.targetInfo().containerId()); + Assertions.assertEquals("gbrt", model.targetInfo().databaseName()); + Assertions.assertEquals("iac", model.targetInfo().targetDirectoryForFileRestore()); + Assertions.assertEquals(RecoveryMode.RECOVERY_USING_SNAPSHOT, model.recoveryMode()); + Assertions.assertEquals("xhajlfnth", model.targetResourceGroupName()); + Assertions.assertEquals("yuttdiygbpvnwswm", model.userAssignedManagedIdentityDetails().identityArmId()); + Assertions.assertEquals("k", model.userAssignedManagedIdentityDetails().identityName()); + Assertions.assertEquals("wwgzwxjlmecvog", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().clientId()); - Assertions.assertEquals("zlbiojlvfhrbbpn", + Assertions.assertEquals("zyvneezaifghtmo", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().principalId()); Assertions.assertFalse(model.snapshotRestoreParameters().skipAttachAndMount()); - Assertions.assertEquals("wyyu", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); - Assertions.assertEquals("ochpprpr", model.targetVirtualMachineId()); + Assertions.assertEquals("fhzbkr", model.snapshotRestoreParameters().logPointInTimeForDBRecovery()); + Assertions.assertEquals("javfqn", model.snapshotRestoreParameters().disksToDetachOnClash().get(0)); + Assertions.assertEquals("yetesy", model.targetVirtualMachineId()); Assertions.assertTrue(model.shouldUseAlternateTargetLocation()); Assertions.assertFalse(model.isNonRecoverable()); Assertions.assertEquals(SqlDataDirectoryType.DATA, model.alternateDirectoryPaths().get(0).mappingType()); - Assertions.assertEquals("vpbdbzqgq", model.alternateDirectoryPaths().get(0).sourceLogicalName()); - Assertions.assertEquals("hedsvqwthmkyib", model.alternateDirectoryPaths().get(0).sourcePath()); - Assertions.assertEquals("sihsgqcwdhohsd", model.alternateDirectoryPaths().get(0).targetPath()); - Assertions.assertEquals("ftpmdtzfjltfv", model.recoveryPointRehydrationInfo().rehydrationRetentionDuration()); + Assertions.assertEquals("eksgbuxantuygd", model.alternateDirectoryPaths().get(0).sourceLogicalName()); + Assertions.assertEquals("aq", model.alternateDirectoryPaths().get(0).sourcePath()); + Assertions.assertEquals("irpiwrqofulopmj", model.alternateDirectoryPaths().get(0).targetPath()); + Assertions.assertEquals("ygvoavyunssxlgh", model.recoveryPointRehydrationInfo().rehydrationRetentionDuration()); Assertions.assertEquals(RehydrationPriority.HIGH, model.recoveryPointRehydrationInfo().rehydrationPriority()); } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupEngineBaseResourceInnerTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupEngineBaseResourceInnerTests.java index 7c9d22d1ccc9b..333bba13531f2 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupEngineBaseResourceInnerTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupEngineBaseResourceInnerTests.java @@ -14,30 +14,30 @@ public final class BackupEngineBaseResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BackupEngineBaseResourceInner model = BinaryData.fromString( - "{\"properties\":{\"backupEngineType\":\"BackupEngineBase\",\"friendlyName\":\"b\",\"backupManagementType\":\"MAB\",\"registrationStatus\":\"nurnnq\",\"backupEngineState\":\"q\",\"healthStatus\":\"izxqltgrd\",\"canReRegister\":false,\"backupEngineId\":\"xrxvbfi\",\"dpmVersion\":\"u\",\"azureBackupAgentVersion\":\"ctafsrbxrblm\",\"isAzureBackupAgentUpgradeAvailable\":false,\"isDpmUpgradeAvailable\":true,\"extendedInfo\":{\"databaseName\":\"spnxwqagnepzw\",\"protectedItemsCount\":1055328892,\"protectedServersCount\":2052489280,\"diskCount\":716318057,\"usedDiskSpace\":41.00959248000285,\"availableDiskSpace\":64.49389419945317,\"refreshedAt\":\"2021-01-23T19:03:24Z\",\"azureProtectedInstances\":412798979}},\"tags\":{\"tnjadhq\":\"zisglrrczezkhh\"},\"location\":\"wjqo\",\"eTag\":\"eayfbpcmspl\",\"id\":\"rrueqthwmg\",\"name\":\"mbscbbx\",\"type\":\"gdhxi\"}") + "{\"properties\":{\"backupEngineType\":\"BackupEngineBase\",\"friendlyName\":\"flwfgziiuci\",\"backupManagementType\":\"Invalid\",\"registrationStatus\":\"atlijjjr\",\"backupEngineState\":\"am\",\"healthStatus\":\"szknxkvccxe\",\"canReRegister\":false,\"backupEngineId\":\"unm\",\"dpmVersion\":\"nohikkgq\",\"azureBackupAgentVersion\":\"jwpindedvabbxbh\",\"isAzureBackupAgentUpgradeAvailable\":false,\"isDpmUpgradeAvailable\":false,\"extendedInfo\":{\"databaseName\":\"jywfcfxzirzzih\",\"protectedItemsCount\":1519861948,\"protectedServersCount\":833365863,\"diskCount\":176885524,\"usedDiskSpace\":66.03505441717132,\"availableDiskSpace\":95.99492876704517,\"refreshedAt\":\"2021-01-18T19:10:50Z\",\"azureProtectedInstances\":450644888}},\"tags\":{\"acfrgna\":\"sllfryvdmvxad\",\"fbktyjmfczlf\":\"bab\",\"frbzgowo\":\"yq\"},\"location\":\"mj\",\"eTag\":\"jcx\",\"id\":\"qg\",\"name\":\"hlusrvxisi\",\"type\":\"jceagb\"}") .toObject(BackupEngineBaseResourceInner.class); - Assertions.assertEquals("b", model.properties().friendlyName()); - Assertions.assertEquals(BackupManagementType.MAB, model.properties().backupManagementType()); - Assertions.assertEquals("nurnnq", model.properties().registrationStatus()); - Assertions.assertEquals("q", model.properties().backupEngineState()); - Assertions.assertEquals("izxqltgrd", model.properties().healthStatus()); + Assertions.assertEquals("flwfgziiuci", model.properties().friendlyName()); + Assertions.assertEquals(BackupManagementType.INVALID, model.properties().backupManagementType()); + Assertions.assertEquals("atlijjjr", model.properties().registrationStatus()); + Assertions.assertEquals("am", model.properties().backupEngineState()); + Assertions.assertEquals("szknxkvccxe", model.properties().healthStatus()); Assertions.assertFalse(model.properties().canReRegister()); - Assertions.assertEquals("xrxvbfi", model.properties().backupEngineId()); - Assertions.assertEquals("u", model.properties().dpmVersion()); - Assertions.assertEquals("ctafsrbxrblm", model.properties().azureBackupAgentVersion()); + Assertions.assertEquals("unm", model.properties().backupEngineId()); + Assertions.assertEquals("nohikkgq", model.properties().dpmVersion()); + Assertions.assertEquals("jwpindedvabbxbh", model.properties().azureBackupAgentVersion()); Assertions.assertFalse(model.properties().isAzureBackupAgentUpgradeAvailable()); - Assertions.assertTrue(model.properties().isDpmUpgradeAvailable()); - Assertions.assertEquals("spnxwqagnepzw", model.properties().extendedInfo().databaseName()); - Assertions.assertEquals(1055328892, model.properties().extendedInfo().protectedItemsCount()); - Assertions.assertEquals(2052489280, model.properties().extendedInfo().protectedServersCount()); - Assertions.assertEquals(716318057, model.properties().extendedInfo().diskCount()); - Assertions.assertEquals(41.00959248000285D, model.properties().extendedInfo().usedDiskSpace()); - Assertions.assertEquals(64.49389419945317D, model.properties().extendedInfo().availableDiskSpace()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-23T19:03:24Z"), + Assertions.assertFalse(model.properties().isDpmUpgradeAvailable()); + Assertions.assertEquals("jywfcfxzirzzih", model.properties().extendedInfo().databaseName()); + Assertions.assertEquals(1519861948, model.properties().extendedInfo().protectedItemsCount()); + Assertions.assertEquals(833365863, model.properties().extendedInfo().protectedServersCount()); + Assertions.assertEquals(176885524, model.properties().extendedInfo().diskCount()); + Assertions.assertEquals(66.03505441717132D, model.properties().extendedInfo().usedDiskSpace()); + Assertions.assertEquals(95.99492876704517D, model.properties().extendedInfo().availableDiskSpace()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-18T19:10:50Z"), model.properties().extendedInfo().refreshedAt()); - Assertions.assertEquals(412798979, model.properties().extendedInfo().azureProtectedInstances()); - Assertions.assertEquals("zisglrrczezkhh", model.tags().get("tnjadhq")); - Assertions.assertEquals("wjqo", model.location()); - Assertions.assertEquals("eayfbpcmspl", model.etag()); + Assertions.assertEquals(450644888, model.properties().extendedInfo().azureProtectedInstances()); + Assertions.assertEquals("sllfryvdmvxad", model.tags().get("acfrgna")); + Assertions.assertEquals("mj", model.location()); + Assertions.assertEquals("jcx", model.etag()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupEngineBaseResourceListTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupEngineBaseResourceListTests.java index 2d5f651d03342..c7e3a13f2b59c 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupEngineBaseResourceListTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupEngineBaseResourceListTests.java @@ -14,33 +14,33 @@ public final class BackupEngineBaseResourceListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BackupEngineBaseResourceList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"backupEngineType\":\"BackupEngineBase\",\"friendlyName\":\"gbuxantuygdh\",\"backupManagementType\":\"AzureStorage\",\"registrationStatus\":\"pirpiwrqof\",\"backupEngineState\":\"o\",\"healthStatus\":\"jnlex\",\"canReRegister\":true,\"backupEngineId\":\"jpib\",\"dpmVersion\":\"phuuuerctato\",\"azureBackupAgentVersion\":\"ntqpbr\",\"isAzureBackupAgentUpgradeAvailable\":true,\"isDpmUpgradeAvailable\":false,\"extendedInfo\":{\"databaseName\":\"zkgofxyf\",\"protectedItemsCount\":274075758,\"protectedServersCount\":1766400172,\"diskCount\":681060020,\"usedDiskSpace\":83.9121280770384,\"availableDiskSpace\":30.789371956401023,\"refreshedAt\":\"2021-08-19T22:13:51Z\",\"azureProtectedInstances\":2056089114}},\"tags\":{\"ktuidvrm\":\"aqnrmvvfkoxmlg\",\"mzvlazipbh\":\"zlpdwwex\",\"uuzivensrpmeyyvp\":\"wvqsgny\",\"gsksrfhf\":\"patlbijp\"},\"location\":\"lmknbnxwcdom\",\"eTag\":\"vfqawzfgbrttuiac\",\"id\":\"iexhajl\",\"name\":\"n\",\"type\":\"hiqfyuttdiy\"},{\"properties\":{\"backupEngineType\":\"BackupEngineBase\",\"friendlyName\":\"vnwsw\",\"backupManagementType\":\"AzureBackupServer\",\"registrationStatus\":\"yctww\",\"backupEngineState\":\"wxjlmec\",\"healthStatus\":\"gygzyvn\",\"canReRegister\":true,\"backupEngineId\":\"ifgh\",\"dpmVersion\":\"oqqtl\",\"azureBackupAgentVersion\":\"hzbkrkjj\",\"isAzureBackupAgentUpgradeAvailable\":true,\"isDpmUpgradeAvailable\":false,\"extendedInfo\":{\"databaseName\":\"hnqoewdo\",\"protectedItemsCount\":1601080277,\"protectedServersCount\":1299213069,\"diskCount\":1628355544,\"usedDiskSpace\":32.59646250710032,\"availableDiskSpace\":74.2707669666588,\"refreshedAt\":\"2020-12-26T21:45:19Z\",\"azureProtectedInstances\":1987226038}},\"tags\":{\"ynkbwetnju\":\"fbov\"},\"location\":\"sprkzyaupiac\",\"eTag\":\"n\",\"id\":\"bwqroohtuovm\",\"name\":\"onurjtumghihpv\",\"type\":\"cmslclblyjxltbs\"},{\"properties\":{\"backupEngineType\":\"BackupEngineBase\",\"friendlyName\":\"c\",\"backupManagementType\":\"AzureStorage\",\"registrationStatus\":\"igctmgxuupbezq\",\"backupEngineState\":\"ydrtc\",\"healthStatus\":\"kdqkkyihzt\",\"canReRegister\":false,\"backupEngineId\":\"gqzgwldoychill\",\"dpmVersion\":\"cfehuwaoagu\",\"azureBackupAgentVersion\":\"cqlliz\",\"isAzureBackupAgentUpgradeAvailable\":false,\"isDpmUpgradeAvailable\":false,\"extendedInfo\":{\"databaseName\":\"hrweftkw\",\"protectedItemsCount\":373514137,\"protectedServersCount\":1031638534,\"diskCount\":553468750,\"usedDiskSpace\":72.65863596935012,\"availableDiskSpace\":60.07652419481986,\"refreshedAt\":\"2021-04-06T05:50:50Z\",\"azureProtectedInstances\":1006428749}},\"tags\":{\"d\":\"czhupeukni\",\"es\":\"y\",\"c\":\"ydjfb\",\"hulrtywikdmhla\":\"v\"},\"location\":\"flgbhgau\",\"eTag\":\"dixmxufrsryjq\",\"id\":\"kfnozoeoqbvj\",\"name\":\"vefgwbmqjchntas\",\"type\":\"ay\"},{\"properties\":{\"backupEngineType\":\"BackupEngineBase\",\"friendlyName\":\"ulpzealb\",\"backupManagementType\":\"Invalid\",\"registrationStatus\":\"ojwyvf\",\"backupEngineState\":\"btsuahxs\",\"healthStatus\":\"jcmmzrrscub\",\"canReRegister\":false,\"backupEngineId\":\"rnpxqwodiffjx\",\"dpmVersion\":\"rmmuabwibvjo\",\"azureBackupAgentVersion\":\"onmcyefoyzb\",\"isAzureBackupAgentUpgradeAvailable\":false,\"isDpmUpgradeAvailable\":false,\"extendedInfo\":{\"databaseName\":\"fvfkak\",\"protectedItemsCount\":1325802844,\"protectedServersCount\":223901710,\"diskCount\":1920736915,\"usedDiskSpace\":90.31854472244652,\"availableDiskSpace\":7.704346783847726,\"refreshedAt\":\"2021-07-29T15:52:27Z\",\"azureProtectedInstances\":909885231}},\"tags\":{\"pzaamrdixtreki\":\"uxgvttxpnr\",\"lukkutvlxhrpqhvm\":\"swyskbruffg\",\"randoypmb\":\"lcouqehbhbcdszir\",\"ormkfqlwxldyk\":\"t\"},\"location\":\"sy\",\"eTag\":\"olnjpnnbmjksibj\",\"id\":\"jjxxahmrnadzyqe\",\"name\":\"xyivpinbm\",\"type\":\"wbjijkgq\"}],\"nextLink\":\"h\"}") + "{\"value\":[{\"properties\":{\"backupEngineType\":\"BackupEngineBase\",\"friendlyName\":\"uqqiqezxlhd\",\"backupManagementType\":\"DefaultBackup\",\"registrationStatus\":\"cadwvpsozjii\",\"backupEngineState\":\"riybmrz\",\"healthStatus\":\"pnx\",\"canReRegister\":false,\"backupEngineId\":\"njkgvfnmx\",\"dpmVersion\":\"rsqftib\",\"azureBackupAgentVersion\":\"ibuyvpirf\",\"isAzureBackupAgentUpgradeAvailable\":false,\"isDpmUpgradeAvailable\":true,\"extendedInfo\":{\"databaseName\":\"owsbedenrexkxbh\",\"protectedItemsCount\":83115,\"protectedServersCount\":597932404,\"diskCount\":1049789640,\"usedDiskSpace\":60.381739063388196,\"availableDiskSpace\":48.54549062602398,\"refreshedAt\":\"2021-08-16T20:07:13Z\",\"azureProtectedInstances\":1228263449}},\"tags\":{\"kmq\":\"ajsvk\"},\"location\":\"zkivyhjrliizjix\",\"eTag\":\"fhefk\",\"id\":\"bsolronqqlmg\",\"name\":\"lqxsjxtelex\",\"type\":\"vuqbozoo\"}],\"nextLink\":\"qocarkuzlbc\"}") .toObject(BackupEngineBaseResourceList.class); - Assertions.assertEquals("h", model.nextLink()); - Assertions.assertEquals("gbuxantuygdh", model.value().get(0).properties().friendlyName()); - Assertions.assertEquals(BackupManagementType.AZURE_STORAGE, + Assertions.assertEquals("qocarkuzlbc", model.nextLink()); + Assertions.assertEquals("uqqiqezxlhd", model.value().get(0).properties().friendlyName()); + Assertions.assertEquals(BackupManagementType.DEFAULT_BACKUP, model.value().get(0).properties().backupManagementType()); - Assertions.assertEquals("pirpiwrqof", model.value().get(0).properties().registrationStatus()); - Assertions.assertEquals("o", model.value().get(0).properties().backupEngineState()); - Assertions.assertEquals("jnlex", model.value().get(0).properties().healthStatus()); - Assertions.assertTrue(model.value().get(0).properties().canReRegister()); - Assertions.assertEquals("jpib", model.value().get(0).properties().backupEngineId()); - Assertions.assertEquals("phuuuerctato", model.value().get(0).properties().dpmVersion()); - Assertions.assertEquals("ntqpbr", model.value().get(0).properties().azureBackupAgentVersion()); - Assertions.assertTrue(model.value().get(0).properties().isAzureBackupAgentUpgradeAvailable()); - Assertions.assertFalse(model.value().get(0).properties().isDpmUpgradeAvailable()); - Assertions.assertEquals("zkgofxyf", model.value().get(0).properties().extendedInfo().databaseName()); - Assertions.assertEquals(274075758, model.value().get(0).properties().extendedInfo().protectedItemsCount()); - Assertions.assertEquals(1766400172, model.value().get(0).properties().extendedInfo().protectedServersCount()); - Assertions.assertEquals(681060020, model.value().get(0).properties().extendedInfo().diskCount()); - Assertions.assertEquals(83.9121280770384D, model.value().get(0).properties().extendedInfo().usedDiskSpace()); - Assertions.assertEquals(30.789371956401023D, + Assertions.assertEquals("cadwvpsozjii", model.value().get(0).properties().registrationStatus()); + Assertions.assertEquals("riybmrz", model.value().get(0).properties().backupEngineState()); + Assertions.assertEquals("pnx", model.value().get(0).properties().healthStatus()); + Assertions.assertFalse(model.value().get(0).properties().canReRegister()); + Assertions.assertEquals("njkgvfnmx", model.value().get(0).properties().backupEngineId()); + Assertions.assertEquals("rsqftib", model.value().get(0).properties().dpmVersion()); + Assertions.assertEquals("ibuyvpirf", model.value().get(0).properties().azureBackupAgentVersion()); + Assertions.assertFalse(model.value().get(0).properties().isAzureBackupAgentUpgradeAvailable()); + Assertions.assertTrue(model.value().get(0).properties().isDpmUpgradeAvailable()); + Assertions.assertEquals("owsbedenrexkxbh", model.value().get(0).properties().extendedInfo().databaseName()); + Assertions.assertEquals(83115, model.value().get(0).properties().extendedInfo().protectedItemsCount()); + Assertions.assertEquals(597932404, model.value().get(0).properties().extendedInfo().protectedServersCount()); + Assertions.assertEquals(1049789640, model.value().get(0).properties().extendedInfo().diskCount()); + Assertions.assertEquals(60.381739063388196D, model.value().get(0).properties().extendedInfo().usedDiskSpace()); + Assertions.assertEquals(48.54549062602398D, model.value().get(0).properties().extendedInfo().availableDiskSpace()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-19T22:13:51Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-08-16T20:07:13Z"), model.value().get(0).properties().extendedInfo().refreshedAt()); - Assertions.assertEquals(2056089114, model.value().get(0).properties().extendedInfo().azureProtectedInstances()); - Assertions.assertEquals("aqnrmvvfkoxmlg", model.value().get(0).tags().get("ktuidvrm")); - Assertions.assertEquals("lmknbnxwcdom", model.value().get(0).location()); - Assertions.assertEquals("vfqawzfgbrttuiac", model.value().get(0).etag()); + Assertions.assertEquals(1228263449, model.value().get(0).properties().extendedInfo().azureProtectedInstances()); + Assertions.assertEquals("ajsvk", model.value().get(0).tags().get("kmq")); + Assertions.assertEquals("zkivyhjrliizjix", model.value().get(0).location()); + Assertions.assertEquals("fhefk", model.value().get(0).etag()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupEngineBaseTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupEngineBaseTests.java index ae71d759a6d98..357c8d5cbfa2d 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupEngineBaseTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupEngineBaseTests.java @@ -14,26 +14,26 @@ public final class BackupEngineBaseTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BackupEngineBase model = BinaryData.fromString( - "{\"backupEngineType\":\"BackupEngineBase\",\"friendlyName\":\"lopedbwdpyqyyb\",\"backupManagementType\":\"MAB\",\"registrationStatus\":\"dnafcbqwre\",\"backupEngineState\":\"ela\",\"healthStatus\":\"cigeleohdbvqvw\",\"canReRegister\":true,\"backupEngineId\":\"pwbeonr\",\"dpmVersion\":\"wzdqybxceakxcpts\",\"azureBackupAgentVersion\":\"fyiaseqch\",\"isAzureBackupAgentUpgradeAvailable\":true,\"isDpmUpgradeAvailable\":true,\"extendedInfo\":{\"databaseName\":\"zisgykiuemvanb\",\"protectedItemsCount\":1025517427,\"protectedServersCount\":717470407,\"diskCount\":425650083,\"usedDiskSpace\":47.251977437805714,\"availableDiskSpace\":32.31556619008449,\"refreshedAt\":\"2021-01-19T09:33:12Z\",\"azureProtectedInstances\":1069752468}}") + "{\"backupEngineType\":\"BackupEngineBase\",\"friendlyName\":\"vl\",\"backupManagementType\":\"AzureBackupServer\",\"registrationStatus\":\"wzas\",\"backupEngineState\":\"gon\",\"healthStatus\":\"jfqipubyznclkfk\",\"canReRegister\":false,\"backupEngineId\":\"vop\",\"dpmVersion\":\"tuoqujlyegqavni\",\"azureBackupAgentVersion\":\"lqqbtnyjpylxdbfv\",\"isAzureBackupAgentUpgradeAvailable\":false,\"isDpmUpgradeAvailable\":true,\"extendedInfo\":{\"databaseName\":\"baevwjcnkottl\",\"protectedItemsCount\":2059385500,\"protectedServersCount\":1321268747,\"diskCount\":50404895,\"usedDiskSpace\":43.28383254886443,\"availableDiskSpace\":10.999979448909446,\"refreshedAt\":\"2021-09-19T23:35:29Z\",\"azureProtectedInstances\":537952374}}") .toObject(BackupEngineBase.class); - Assertions.assertEquals("lopedbwdpyqyyb", model.friendlyName()); - Assertions.assertEquals(BackupManagementType.MAB, model.backupManagementType()); - Assertions.assertEquals("dnafcbqwre", model.registrationStatus()); - Assertions.assertEquals("ela", model.backupEngineState()); - Assertions.assertEquals("cigeleohdbvqvw", model.healthStatus()); - Assertions.assertTrue(model.canReRegister()); - Assertions.assertEquals("pwbeonr", model.backupEngineId()); - Assertions.assertEquals("wzdqybxceakxcpts", model.dpmVersion()); - Assertions.assertEquals("fyiaseqch", model.azureBackupAgentVersion()); - Assertions.assertTrue(model.isAzureBackupAgentUpgradeAvailable()); + Assertions.assertEquals("vl", model.friendlyName()); + Assertions.assertEquals(BackupManagementType.AZURE_BACKUP_SERVER, model.backupManagementType()); + Assertions.assertEquals("wzas", model.registrationStatus()); + Assertions.assertEquals("gon", model.backupEngineState()); + Assertions.assertEquals("jfqipubyznclkfk", model.healthStatus()); + Assertions.assertFalse(model.canReRegister()); + Assertions.assertEquals("vop", model.backupEngineId()); + Assertions.assertEquals("tuoqujlyegqavni", model.dpmVersion()); + Assertions.assertEquals("lqqbtnyjpylxdbfv", model.azureBackupAgentVersion()); + Assertions.assertFalse(model.isAzureBackupAgentUpgradeAvailable()); Assertions.assertTrue(model.isDpmUpgradeAvailable()); - Assertions.assertEquals("zisgykiuemvanb", model.extendedInfo().databaseName()); - Assertions.assertEquals(1025517427, model.extendedInfo().protectedItemsCount()); - Assertions.assertEquals(717470407, model.extendedInfo().protectedServersCount()); - Assertions.assertEquals(425650083, model.extendedInfo().diskCount()); - Assertions.assertEquals(47.251977437805714D, model.extendedInfo().usedDiskSpace()); - Assertions.assertEquals(32.31556619008449D, model.extendedInfo().availableDiskSpace()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-19T09:33:12Z"), model.extendedInfo().refreshedAt()); - Assertions.assertEquals(1069752468, model.extendedInfo().azureProtectedInstances()); + Assertions.assertEquals("baevwjcnkottl", model.extendedInfo().databaseName()); + Assertions.assertEquals(2059385500, model.extendedInfo().protectedItemsCount()); + Assertions.assertEquals(1321268747, model.extendedInfo().protectedServersCount()); + Assertions.assertEquals(50404895, model.extendedInfo().diskCount()); + Assertions.assertEquals(43.28383254886443D, model.extendedInfo().usedDiskSpace()); + Assertions.assertEquals(10.999979448909446D, model.extendedInfo().availableDiskSpace()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-19T23:35:29Z"), model.extendedInfo().refreshedAt()); + Assertions.assertEquals(537952374, model.extendedInfo().azureProtectedInstances()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupEngineExtendedInfoTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupEngineExtendedInfoTests.java index 8a57f2136be24..bd57596df096b 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupEngineExtendedInfoTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupEngineExtendedInfoTests.java @@ -13,15 +13,15 @@ public final class BackupEngineExtendedInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BackupEngineExtendedInfo model = BinaryData.fromString( - "{\"databaseName\":\"oavyun\",\"protectedItemsCount\":217010832,\"protectedServersCount\":1206233622,\"diskCount\":1542359378,\"usedDiskSpace\":51.27313668546121,\"availableDiskSpace\":78.26220464084912,\"refreshedAt\":\"2021-03-11T23:56:25Z\",\"azureProtectedInstances\":1800252643}") + "{\"databaseName\":\"xomeikjclwzacn\",\"protectedItemsCount\":86975584,\"protectedServersCount\":586433470,\"diskCount\":520009324,\"usedDiskSpace\":98.4379138582011,\"availableDiskSpace\":55.150817027642454,\"refreshedAt\":\"2021-02-03T02:28:57Z\",\"azureProtectedInstances\":958730236}") .toObject(BackupEngineExtendedInfo.class); - Assertions.assertEquals("oavyun", model.databaseName()); - Assertions.assertEquals(217010832, model.protectedItemsCount()); - Assertions.assertEquals(1206233622, model.protectedServersCount()); - Assertions.assertEquals(1542359378, model.diskCount()); - Assertions.assertEquals(51.27313668546121D, model.usedDiskSpace()); - Assertions.assertEquals(78.26220464084912D, model.availableDiskSpace()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-11T23:56:25Z"), model.refreshedAt()); - Assertions.assertEquals(1800252643, model.azureProtectedInstances()); + Assertions.assertEquals("xomeikjclwzacn", model.databaseName()); + Assertions.assertEquals(86975584, model.protectedItemsCount()); + Assertions.assertEquals(586433470, model.protectedServersCount()); + Assertions.assertEquals(520009324, model.diskCount()); + Assertions.assertEquals(98.4379138582011D, model.usedDiskSpace()); + Assertions.assertEquals(55.150817027642454D, model.availableDiskSpace()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-03T02:28:57Z"), model.refreshedAt()); + Assertions.assertEquals(958730236, model.azureProtectedInstances()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupEnginesGetWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupEnginesGetWithResponseMockTests.java index 7dd08cce651f9..b92d2fc80b135 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupEnginesGetWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupEnginesGetWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class BackupEnginesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"backupEngineType\":\"BackupEngineBase\",\"friendlyName\":\"ougu\",\"backupManagementType\":\"MAB\",\"registrationStatus\":\"opgjttba\",\"backupEngineState\":\"alapdlndbe\",\"healthStatus\":\"bkixvvlwyn\",\"canReRegister\":true,\"backupEngineId\":\"qvzfj\",\"dpmVersion\":\"pu\",\"azureBackupAgentVersion\":\"feuzjljmphfkye\",\"isAzureBackupAgentUpgradeAvailable\":false,\"isDpmUpgradeAvailable\":true,\"extendedInfo\":{\"databaseName\":\"icuydoccn\",\"protectedItemsCount\":124150636,\"protectedServersCount\":1459341104,\"diskCount\":612066259,\"usedDiskSpace\":52.97983016757792,\"availableDiskSpace\":98.27081032996627,\"refreshedAt\":\"2021-04-16T00:14Z\",\"azureProtectedInstances\":2068517552}},\"tags\":{\"iinj\":\"tsdohzniucbdaomb\",\"e\":\"llwkt\",\"lynkgfcfdruw\":\"owavvqxuajgcqw\",\"xxtclhuulri\":\"i\"},\"location\":\"yokvjgbzsxebr\",\"eTag\":\"ttfyhcdjwsuoard\",\"id\":\"gttpufpbpgnrho\",\"name\":\"hujbfwxiplk\",\"type\":\"solsyjprxslwhdm\"}"; + = "{\"properties\":{\"backupEngineType\":\"BackupEngineBase\",\"friendlyName\":\"erxrzutylcurza\",\"backupManagementType\":\"DefaultBackup\",\"registrationStatus\":\"xqaehtd\",\"backupEngineState\":\"mbnvynfaooeacted\",\"healthStatus\":\"lsk\",\"canReRegister\":false,\"backupEngineId\":\"id\",\"dpmVersion\":\"zl\",\"azureBackupAgentVersion\":\"qmtlpbyxroi\",\"isAzureBackupAgentUpgradeAvailable\":false,\"isDpmUpgradeAvailable\":true,\"extendedInfo\":{\"databaseName\":\"fmnoiicsudy\",\"protectedItemsCount\":1401254795,\"protectedServersCount\":402675410,\"diskCount\":121440006,\"usedDiskSpace\":76.67133271538033,\"availableDiskSpace\":74.1606332158542,\"refreshedAt\":\"2021-06-22T17:16:09Z\",\"azureProtectedInstances\":682794845}},\"tags\":{\"sxxhdodp\":\"wg\",\"bdmvsby\":\"wyblv\",\"kmkwjfbo\":\"daelqpv\"},\"location\":\"oggdusxursui\",\"eTag\":\"xcjkcoqwczsy\",\"id\":\"rizfwihvaang\",\"name\":\"tnhjrfdmfd\",\"type\":\"bbaex\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,32 +32,31 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); BackupEngineBaseResource response = manager.backupEngines() - .getWithResponse("uoutmpy", "gleofjsbgbw", "zvdajfwnncf", "aciq", "jjrlhiqlwix", - com.azure.core.util.Context.NONE) + .getWithResponse("plefoi", "yidoxznvg", "dtmuuvd", "wsxmrszb", "nimx", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("ougu", response.properties().friendlyName()); - Assertions.assertEquals(BackupManagementType.MAB, response.properties().backupManagementType()); - Assertions.assertEquals("opgjttba", response.properties().registrationStatus()); - Assertions.assertEquals("alapdlndbe", response.properties().backupEngineState()); - Assertions.assertEquals("bkixvvlwyn", response.properties().healthStatus()); - Assertions.assertTrue(response.properties().canReRegister()); - Assertions.assertEquals("qvzfj", response.properties().backupEngineId()); - Assertions.assertEquals("pu", response.properties().dpmVersion()); - Assertions.assertEquals("feuzjljmphfkye", response.properties().azureBackupAgentVersion()); + Assertions.assertEquals("erxrzutylcurza", response.properties().friendlyName()); + Assertions.assertEquals(BackupManagementType.DEFAULT_BACKUP, response.properties().backupManagementType()); + Assertions.assertEquals("xqaehtd", response.properties().registrationStatus()); + Assertions.assertEquals("mbnvynfaooeacted", response.properties().backupEngineState()); + Assertions.assertEquals("lsk", response.properties().healthStatus()); + Assertions.assertFalse(response.properties().canReRegister()); + Assertions.assertEquals("id", response.properties().backupEngineId()); + Assertions.assertEquals("zl", response.properties().dpmVersion()); + Assertions.assertEquals("qmtlpbyxroi", response.properties().azureBackupAgentVersion()); Assertions.assertFalse(response.properties().isAzureBackupAgentUpgradeAvailable()); Assertions.assertTrue(response.properties().isDpmUpgradeAvailable()); - Assertions.assertEquals("icuydoccn", response.properties().extendedInfo().databaseName()); - Assertions.assertEquals(124150636, response.properties().extendedInfo().protectedItemsCount()); - Assertions.assertEquals(1459341104, response.properties().extendedInfo().protectedServersCount()); - Assertions.assertEquals(612066259, response.properties().extendedInfo().diskCount()); - Assertions.assertEquals(52.97983016757792D, response.properties().extendedInfo().usedDiskSpace()); - Assertions.assertEquals(98.27081032996627D, response.properties().extendedInfo().availableDiskSpace()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-16T00:14Z"), + Assertions.assertEquals("fmnoiicsudy", response.properties().extendedInfo().databaseName()); + Assertions.assertEquals(1401254795, response.properties().extendedInfo().protectedItemsCount()); + Assertions.assertEquals(402675410, response.properties().extendedInfo().protectedServersCount()); + Assertions.assertEquals(121440006, response.properties().extendedInfo().diskCount()); + Assertions.assertEquals(76.67133271538033D, response.properties().extendedInfo().usedDiskSpace()); + Assertions.assertEquals(74.1606332158542D, response.properties().extendedInfo().availableDiskSpace()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-22T17:16:09Z"), response.properties().extendedInfo().refreshedAt()); - Assertions.assertEquals(2068517552, response.properties().extendedInfo().azureProtectedInstances()); - Assertions.assertEquals("tsdohzniucbdaomb", response.tags().get("iinj")); - Assertions.assertEquals("yokvjgbzsxebr", response.location()); - Assertions.assertEquals("ttfyhcdjwsuoard", response.etag()); + Assertions.assertEquals(682794845, response.properties().extendedInfo().azureProtectedInstances()); + Assertions.assertEquals("wg", response.tags().get("sxxhdodp")); + Assertions.assertEquals("oggdusxursui", response.location()); + Assertions.assertEquals("xcjkcoqwczsy", response.etag()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupEnginesListMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupEnginesListMockTests.java index 0b2decf9d3ca9..69f376a974fe2 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupEnginesListMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupEnginesListMockTests.java @@ -23,7 +23,7 @@ public final class BackupEnginesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"backupEngineType\":\"BackupEngineBase\",\"friendlyName\":\"wie\",\"backupManagementType\":\"AzureSql\",\"registrationStatus\":\"aderltfokyk\",\"backupEngineState\":\"imyc\",\"healthStatus\":\"r\",\"canReRegister\":true,\"backupEngineId\":\"zznnuif\",\"dpmVersion\":\"sejegprkjgu\",\"azureBackupAgentVersion\":\"jmwvvbtuqkxxi\",\"isAzureBackupAgentUpgradeAvailable\":false,\"isDpmUpgradeAvailable\":true,\"extendedInfo\":{\"databaseName\":\"ekotjgxi\",\"protectedItemsCount\":121623093,\"protectedServersCount\":1474020309,\"diskCount\":94606470,\"usedDiskSpace\":30.904913379195865,\"availableDiskSpace\":71.9541866120555,\"refreshedAt\":\"2021-01-22T23:04:26Z\",\"azureProtectedInstances\":2093603930}},\"tags\":{\"a\":\"vsk\",\"wkqm\":\"bmgeumexmjbxcbc\"},\"location\":\"apeqiscrpil\",\"eTag\":\"trqrejda\",\"id\":\"uqimldahlfxl\",\"name\":\"uifmuadjnfs\",\"type\":\"cskiioshjgc\"}]}"; + = "{\"value\":[{\"properties\":{\"backupEngineType\":\"BackupEngineBase\",\"friendlyName\":\"cfkumcfjxo\",\"backupManagementType\":\"MAB\",\"registrationStatus\":\"syasvfnkwmygjjek\",\"backupEngineState\":\"nfdrugjqyck\",\"healthStatus\":\"xkrdtul\",\"canReRegister\":false,\"backupEngineId\":\"dklotcsubmzo\",\"dpmVersion\":\"svobchkxfp\",\"azureBackupAgentVersion\":\"dyslbklglmnn\",\"isAzureBackupAgentUpgradeAvailable\":true,\"isDpmUpgradeAvailable\":true,\"extendedInfo\":{\"databaseName\":\"hwyqxridttbsa\",\"protectedItemsCount\":1745940243,\"protectedServersCount\":765983940,\"diskCount\":2117461107,\"usedDiskSpace\":23.717448996920453,\"availableDiskSpace\":45.49459954461717,\"refreshedAt\":\"2021-11-07T10:40:46Z\",\"azureProtectedInstances\":403090142}},\"tags\":{\"fkhkqtwqlep\":\"iizevjykofvez\"},\"location\":\"zkca\",\"eTag\":\"wz\",\"id\":\"togffjwajnrtwz\",\"name\":\"aqkifmxawostfz\",\"type\":\"nhrkmjqncfvdsc\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,36 +33,36 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.backupEngines() - .list("vhtbbzjhfvh", "wzbxpc", "zgihotje", "ohmxvvlrrska", com.azure.core.util.Context.NONE); + .list("jfwtgdfkkaui", "vmuafmc", "fedyuep", "vpltidajjvy", com.azure.core.util.Context.NONE); - Assertions.assertEquals("wie", response.iterator().next().properties().friendlyName()); - Assertions.assertEquals(BackupManagementType.AZURE_SQL, + Assertions.assertEquals("cfkumcfjxo", response.iterator().next().properties().friendlyName()); + Assertions.assertEquals(BackupManagementType.MAB, response.iterator().next().properties().backupManagementType()); - Assertions.assertEquals("aderltfokyk", response.iterator().next().properties().registrationStatus()); - Assertions.assertEquals("imyc", response.iterator().next().properties().backupEngineState()); - Assertions.assertEquals("r", response.iterator().next().properties().healthStatus()); - Assertions.assertTrue(response.iterator().next().properties().canReRegister()); - Assertions.assertEquals("zznnuif", response.iterator().next().properties().backupEngineId()); - Assertions.assertEquals("sejegprkjgu", response.iterator().next().properties().dpmVersion()); - Assertions.assertEquals("jmwvvbtuqkxxi", response.iterator().next().properties().azureBackupAgentVersion()); - Assertions.assertFalse(response.iterator().next().properties().isAzureBackupAgentUpgradeAvailable()); + Assertions.assertEquals("syasvfnkwmygjjek", response.iterator().next().properties().registrationStatus()); + Assertions.assertEquals("nfdrugjqyck", response.iterator().next().properties().backupEngineState()); + Assertions.assertEquals("xkrdtul", response.iterator().next().properties().healthStatus()); + Assertions.assertFalse(response.iterator().next().properties().canReRegister()); + Assertions.assertEquals("dklotcsubmzo", response.iterator().next().properties().backupEngineId()); + Assertions.assertEquals("svobchkxfp", response.iterator().next().properties().dpmVersion()); + Assertions.assertEquals("dyslbklglmnn", response.iterator().next().properties().azureBackupAgentVersion()); + Assertions.assertTrue(response.iterator().next().properties().isAzureBackupAgentUpgradeAvailable()); Assertions.assertTrue(response.iterator().next().properties().isDpmUpgradeAvailable()); - Assertions.assertEquals("ekotjgxi", response.iterator().next().properties().extendedInfo().databaseName()); - Assertions.assertEquals(121623093, + Assertions.assertEquals("hwyqxridttbsa", response.iterator().next().properties().extendedInfo().databaseName()); + Assertions.assertEquals(1745940243, response.iterator().next().properties().extendedInfo().protectedItemsCount()); - Assertions.assertEquals(1474020309, + Assertions.assertEquals(765983940, response.iterator().next().properties().extendedInfo().protectedServersCount()); - Assertions.assertEquals(94606470, response.iterator().next().properties().extendedInfo().diskCount()); - Assertions.assertEquals(30.904913379195865D, + Assertions.assertEquals(2117461107, response.iterator().next().properties().extendedInfo().diskCount()); + Assertions.assertEquals(23.717448996920453D, response.iterator().next().properties().extendedInfo().usedDiskSpace()); - Assertions.assertEquals(71.9541866120555D, + Assertions.assertEquals(45.49459954461717D, response.iterator().next().properties().extendedInfo().availableDiskSpace()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-22T23:04:26Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-11-07T10:40:46Z"), response.iterator().next().properties().extendedInfo().refreshedAt()); - Assertions.assertEquals(2093603930, + Assertions.assertEquals(403090142, response.iterator().next().properties().extendedInfo().azureProtectedInstances()); - Assertions.assertEquals("vsk", response.iterator().next().tags().get("a")); - Assertions.assertEquals("apeqiscrpil", response.iterator().next().location()); - Assertions.assertEquals("trqrejda", response.iterator().next().etag()); + Assertions.assertEquals("iizevjykofvez", response.iterator().next().tags().get("fkhkqtwqlep")); + Assertions.assertEquals("zkca", response.iterator().next().location()); + Assertions.assertEquals("wz", response.iterator().next().etag()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupJobsListMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupJobsListMockTests.java index dd5249029b321..3d90c2820341d 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupJobsListMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupJobsListMockTests.java @@ -23,7 +23,7 @@ public final class BackupJobsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"jobType\":\"Job\",\"entityFriendlyName\":\"xovppqibukklvzr\",\"backupManagementType\":\"DefaultBackup\",\"operation\":\"ccmetjsczivfqb\",\"status\":\"asdsyenzsie\",\"startTime\":\"2021-06-22T22:38:32Z\",\"endTime\":\"2021-08-22T21:04:05Z\",\"activityId\":\"yvdgxlyzk\"},\"tags\":{\"kol\":\"dshezs\"},\"location\":\"pjovmozsayebraz\",\"eTag\":\"lpzbtzuykykipf\",\"id\":\"yepfn\",\"name\":\"cmbezac\",\"type\":\"pztgazwyqejgaaok\"}]}"; + = "{\"value\":[{\"properties\":{\"jobType\":\"Job\",\"entityFriendlyName\":\"ojermhzicsbfdjhy\",\"backupManagementType\":\"Invalid\",\"operation\":\"yukibxigl\",\"status\":\"hzwxq\",\"startTime\":\"2021-04-26T03:29:12Z\",\"endTime\":\"2021-10-03T15:49:59Z\",\"activityId\":\"lhvtozyagj\"},\"tags\":{\"ylhyyx\":\"k\",\"klvqzrwtrdgscn\":\"f\",\"on\":\"q\",\"mezyo\":\"gnwxl\"},\"location\":\"pthceopvkv\",\"eTag\":\"fve\",\"id\":\"bpbokhmml\",\"name\":\"dyarnggcjfwblq\",\"type\":\"xka\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,20 +33,20 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.backupJobs() - .list("nhxmpdxxze", "wwzjwotnxlkfhglh", "foxqwecrsn", "pcs", com.azure.core.util.Context.NONE); + .list("wrdtnagzlgpy", "ixihzqj", "tsmuydqftt", "acybdueurgmcdcpk", com.azure.core.util.Context.NONE); - Assertions.assertEquals("xovppqibukklvzr", response.iterator().next().properties().entityFriendlyName()); - Assertions.assertEquals(BackupManagementType.DEFAULT_BACKUP, + Assertions.assertEquals("ojermhzicsbfdjhy", response.iterator().next().properties().entityFriendlyName()); + Assertions.assertEquals(BackupManagementType.INVALID, response.iterator().next().properties().backupManagementType()); - Assertions.assertEquals("ccmetjsczivfqb", response.iterator().next().properties().operation()); - Assertions.assertEquals("asdsyenzsie", response.iterator().next().properties().status()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-22T22:38:32Z"), + Assertions.assertEquals("yukibxigl", response.iterator().next().properties().operation()); + Assertions.assertEquals("hzwxq", response.iterator().next().properties().status()); + Assertions.assertEquals(OffsetDateTime.parse("2021-04-26T03:29:12Z"), response.iterator().next().properties().startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-22T21:04:05Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-10-03T15:49:59Z"), response.iterator().next().properties().endTime()); - Assertions.assertEquals("yvdgxlyzk", response.iterator().next().properties().activityId()); - Assertions.assertEquals("dshezs", response.iterator().next().tags().get("kol")); - Assertions.assertEquals("pjovmozsayebraz", response.iterator().next().location()); - Assertions.assertEquals("lpzbtzuykykipf", response.iterator().next().etag()); + Assertions.assertEquals("lhvtozyagj", response.iterator().next().properties().activityId()); + Assertions.assertEquals("k", response.iterator().next().tags().get("ylhyyx")); + Assertions.assertEquals("pthceopvkv", response.iterator().next().location()); + Assertions.assertEquals("fve", response.iterator().next().etag()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupManagementUsageInnerTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupManagementUsageInnerTests.java index 1d261f0ff3363..5e1b57bbcabe2 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupManagementUsageInnerTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupManagementUsageInnerTests.java @@ -14,14 +14,14 @@ public final class BackupManagementUsageInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BackupManagementUsageInner model = BinaryData.fromString( - "{\"unit\":\"CountPerSecond\",\"quotaPeriod\":\"tm\",\"nextResetTime\":\"2021-08-25T07:55:06Z\",\"currentValue\":7895575263068629252,\"limit\":1609360141146087924,\"name\":{\"value\":\"apte\",\"localizedValue\":\"excgjokjljnhvl\"}}") + "{\"unit\":\"Count\",\"quotaPeriod\":\"lpmcrdc\",\"nextResetTime\":\"2021-03-23T16:52Z\",\"currentValue\":8588788839939133355,\"limit\":7552638983944997239,\"name\":{\"value\":\"q\",\"localizedValue\":\"arvsx\"}}") .toObject(BackupManagementUsageInner.class); - Assertions.assertEquals(UsagesUnit.COUNT_PER_SECOND, model.unit()); - Assertions.assertEquals("tm", model.quotaPeriod()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-25T07:55:06Z"), model.nextResetTime()); - Assertions.assertEquals(7895575263068629252L, model.currentValue()); - Assertions.assertEquals(1609360141146087924L, model.limit()); - Assertions.assertEquals("apte", model.name().value()); - Assertions.assertEquals("excgjokjljnhvl", model.name().localizedValue()); + Assertions.assertEquals(UsagesUnit.COUNT, model.unit()); + Assertions.assertEquals("lpmcrdc", model.quotaPeriod()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-23T16:52Z"), model.nextResetTime()); + Assertions.assertEquals(8588788839939133355L, model.currentValue()); + Assertions.assertEquals(7552638983944997239L, model.limit()); + Assertions.assertEquals("q", model.name().value()); + Assertions.assertEquals("arvsx", model.name().localizedValue()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupManagementUsageListTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupManagementUsageListTests.java index 96130bb13167f..c998a7b352edd 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupManagementUsageListTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupManagementUsageListTests.java @@ -14,15 +14,15 @@ public final class BackupManagementUsageListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BackupManagementUsageList model = BinaryData.fromString( - "{\"value\":[{\"unit\":\"BytesPerSecond\",\"quotaPeriod\":\"qapfgsdpc\",\"nextResetTime\":\"2021-06-29T02:55:38Z\",\"currentValue\":5845281494856537164,\"limit\":763981426346852383,\"name\":{\"value\":\"ip\",\"localizedValue\":\"q\"}},{\"unit\":\"Seconds\",\"quotaPeriod\":\"kva\",\"nextResetTime\":\"2021-01-13T21:15:49Z\",\"currentValue\":2741279035202365138,\"limit\":7854957214757672302,\"name\":{\"value\":\"wehtaemxh\",\"localizedValue\":\"ysev\"}},{\"unit\":\"CountPerSecond\",\"quotaPeriod\":\"vzrrryveimi\",\"nextResetTime\":\"2021-06-20T09:39:58Z\",\"currentValue\":4011636182860108780,\"limit\":1707511752210444530,\"name\":{\"value\":\"zkaftjvvrux\",\"localizedValue\":\"gsyeipqdsmjtg\"}},{\"unit\":\"Seconds\",\"quotaPeriod\":\"gkkileplkcsmkn\",\"nextResetTime\":\"2021-04-02T07:49:28Z\",\"currentValue\":4403071818761178047,\"limit\":2450896338001974222,\"name\":{\"value\":\"vmq\",\"localizedValue\":\"oygbdgwumgxd\"}}],\"nextLink\":\"hpabgdexjddvjs\"}") + "{\"value\":[{\"unit\":\"CountPerSecond\",\"quotaPeriod\":\"szxhmtvtvegwqiuk\",\"nextResetTime\":\"2021-04-04T14:34:53Z\",\"currentValue\":6706425662635771515,\"limit\":2279367961842482302,\"name\":{\"value\":\"kgkskjivbsshaj\",\"localizedValue\":\"u\"}},{\"unit\":\"Bytes\",\"quotaPeriod\":\"xpgeumilhwuitr\",\"nextResetTime\":\"2021-04-20T21:37:36Z\",\"currentValue\":3469262753459343552,\"limit\":785916091777936105,\"name\":{\"value\":\"nbdbzsxcwqqr\",\"localizedValue\":\"pcbbprtugav\"}},{\"unit\":\"BytesPerSecond\",\"quotaPeriod\":\"yksivmfogdrtbfc\",\"nextResetTime\":\"2021-09-08T23:41:54Z\",\"currentValue\":654845924024515595,\"limit\":6678404517540842296,\"name\":{\"value\":\"xsgm\",\"localizedValue\":\"wvif\"}},{\"unit\":\"Bytes\",\"quotaPeriod\":\"cifhocjxwkl\",\"nextResetTime\":\"2021-08-18T18:47:44Z\",\"currentValue\":1733228757812910435,\"limit\":5752021816013285819,\"name\":{\"value\":\"funlcpxxvi\",\"localizedValue\":\"eyngjg\"}}],\"nextLink\":\"quv\"}") .toObject(BackupManagementUsageList.class); - Assertions.assertEquals("hpabgdexjddvjs", model.nextLink()); - Assertions.assertEquals(UsagesUnit.BYTES_PER_SECOND, model.value().get(0).unit()); - Assertions.assertEquals("qapfgsdpc", model.value().get(0).quotaPeriod()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-29T02:55:38Z"), model.value().get(0).nextResetTime()); - Assertions.assertEquals(5845281494856537164L, model.value().get(0).currentValue()); - Assertions.assertEquals(763981426346852383L, model.value().get(0).limit()); - Assertions.assertEquals("ip", model.value().get(0).name().value()); - Assertions.assertEquals("q", model.value().get(0).name().localizedValue()); + Assertions.assertEquals("quv", model.nextLink()); + Assertions.assertEquals(UsagesUnit.COUNT_PER_SECOND, model.value().get(0).unit()); + Assertions.assertEquals("szxhmtvtvegwqiuk", model.value().get(0).quotaPeriod()); + Assertions.assertEquals(OffsetDateTime.parse("2021-04-04T14:34:53Z"), model.value().get(0).nextResetTime()); + Assertions.assertEquals(6706425662635771515L, model.value().get(0).currentValue()); + Assertions.assertEquals(2279367961842482302L, model.value().get(0).limit()); + Assertions.assertEquals("kgkskjivbsshaj", model.value().get(0).name().value()); + Assertions.assertEquals("u", model.value().get(0).name().localizedValue()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupOperationResultsGetWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupOperationResultsGetWithResponseMockTests.java index cda6e0b9417c9..3eb09bd9034bf 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupOperationResultsGetWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupOperationResultsGetWithResponseMockTests.java @@ -28,7 +28,7 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.backupOperationResults() - .getWithResponse("yvrmkjm", "it", "chwudlxee", com.azure.core.util.Context.NONE); + .getWithResponse("rkgzkyhudbkuw", "zqxlcwe", "kfecjvxf", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupPoliciesListMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupPoliciesListMockTests.java index 5465e55d94bc5..da5ddb172fb7b 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupPoliciesListMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupPoliciesListMockTests.java @@ -22,7 +22,7 @@ public final class BackupPoliciesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"backupManagementType\":\"ProtectionPolicy\",\"protectedItemsCount\":1930297273,\"resourceGuardOperationRequests\":[\"s\",\"mo\"]},\"tags\":{\"ijmri\":\"zhwilzzh\",\"kd\":\"r\",\"bkut\":\"eyttlrcxiv\"},\"location\":\"mltwjfluxynbpvzl\",\"eTag\":\"wa\",\"id\":\"qnjckhmocg\",\"name\":\"shgouarhwvix\",\"type\":\"qggljkybs\"}]}"; + = "{\"value\":[{\"properties\":{\"backupManagementType\":\"ProtectionPolicy\",\"protectedItemsCount\":402964205,\"resourceGuardOperationRequests\":[\"wafbjzmp\",\"rguyfa\"]},\"tags\":{\"cjwwdx\":\"ocbygvthrmxk\",\"acagae\":\"mrawppkeboozfl\"},\"location\":\"oiqclmgdtwgab\",\"eTag\":\"f\",\"id\":\"zbwjecooyvht\",\"name\":\"qbpel\",\"type\":\"iibncgagdvcdqhf\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,12 +32,13 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.backupPolicies().list("qsratjhd", "zybspijhfrzgdkk", "gv", com.azure.core.util.Context.NONE); + = manager.backupPolicies().list("xgkrh", "iehycpnowawonoe", "r", com.azure.core.util.Context.NONE); - Assertions.assertEquals(1930297273, response.iterator().next().properties().protectedItemsCount()); - Assertions.assertEquals("s", response.iterator().next().properties().resourceGuardOperationRequests().get(0)); - Assertions.assertEquals("zhwilzzh", response.iterator().next().tags().get("ijmri")); - Assertions.assertEquals("mltwjfluxynbpvzl", response.iterator().next().location()); - Assertions.assertEquals("wa", response.iterator().next().etag()); + Assertions.assertEquals(402964205, response.iterator().next().properties().protectedItemsCount()); + Assertions.assertEquals("wafbjzmp", + response.iterator().next().properties().resourceGuardOperationRequests().get(0)); + Assertions.assertEquals("ocbygvthrmxk", response.iterator().next().tags().get("cjwwdx")); + Assertions.assertEquals("oiqclmgdtwgab", response.iterator().next().location()); + Assertions.assertEquals("f", response.iterator().next().etag()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupProtectableItemsListMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupProtectableItemsListMockTests.java index 4dea1ef3812fc..f10cc854e02b7 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupProtectableItemsListMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupProtectableItemsListMockTests.java @@ -23,7 +23,7 @@ public final class BackupProtectableItemsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"location\":\"w\",\"tags\":{\"bf\":\"mnc\",\"dfb\":\"uscstunmlh\"},\"eTag\":\"ciichgj\",\"properties\":{\"protectableItemType\":\"WorkloadProtectableItem\",\"backupManagementType\":\"mvxodgwxfkzsif\",\"workloadType\":\"vbdujgcwxvecbb\",\"friendlyName\":\"trdxri\",\"protectionState\":\"ProtectionFailed\"},\"id\":\"bgiark\",\"name\":\"ykpgd\",\"type\":\"xwabzrwiqrxhacl\"}]}"; + = "{\"value\":[{\"location\":\"grkkderfrswq\",\"tags\":{\"cwn\":\"epwoggg\",\"zpgf\":\"htfmcqbsudzpgc\"},\"eTag\":\"mjd\",\"properties\":{\"protectableItemType\":\"WorkloadProtectableItem\",\"backupManagementType\":\"zg\",\"workloadType\":\"odkynrc\",\"friendlyName\":\"avf\",\"protectionState\":\"Protected\"},\"id\":\"mmxjdnajuopj\",\"name\":\"yqmkwlh\",\"type\":\"cwlo\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,15 +33,14 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.backupProtectableItems() - .list("kgd", "hjkrukizyhgs", "tnqsktx", "fpjbqggwe", com.azure.core.util.Context.NONE); + .list("mejjqhddwvmq", "iyoo", "yfozkbnzxbypfqp", "aix", com.azure.core.util.Context.NONE); - Assertions.assertEquals("w", response.iterator().next().location()); - Assertions.assertEquals("mnc", response.iterator().next().tags().get("bf")); - Assertions.assertEquals("ciichgj", response.iterator().next().eTag()); - Assertions.assertEquals("mvxodgwxfkzsif", response.iterator().next().properties().backupManagementType()); - Assertions.assertEquals("vbdujgcwxvecbb", response.iterator().next().properties().workloadType()); - Assertions.assertEquals("trdxri", response.iterator().next().properties().friendlyName()); - Assertions.assertEquals(ProtectionStatus.PROTECTION_FAILED, - response.iterator().next().properties().protectionState()); + Assertions.assertEquals("grkkderfrswq", response.iterator().next().location()); + Assertions.assertEquals("epwoggg", response.iterator().next().tags().get("cwn")); + Assertions.assertEquals("mjd", response.iterator().next().eTag()); + Assertions.assertEquals("zg", response.iterator().next().properties().backupManagementType()); + Assertions.assertEquals("odkynrc", response.iterator().next().properties().workloadType()); + Assertions.assertEquals("avf", response.iterator().next().properties().friendlyName()); + Assertions.assertEquals(ProtectionStatus.PROTECTED, response.iterator().next().properties().protectionState()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupProtectedItemsListMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupProtectedItemsListMockTests.java index 3f15cea15cbd5..4b6262ca7308f 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupProtectedItemsListMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupProtectedItemsListMockTests.java @@ -25,7 +25,7 @@ public final class BackupProtectedItemsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"protectedItemType\":\"ProtectedItem\",\"backupManagementType\":\"MAB\",\"workloadType\":\"VM\",\"containerName\":\"lahfxwccokdxk\",\"sourceResourceId\":\"mkczynuhhoqe\",\"policyId\":\"havl\",\"lastRecoveryPoint\":\"2021-10-11T04:07:20Z\",\"backupSetName\":\"yrqolnthbbnkgz\",\"createMode\":\"Invalid\",\"deferredDeleteTimeInUTC\":\"2021-01-24T18:32:45Z\",\"isScheduledForDeferredDelete\":true,\"deferredDeleteTimeRemaining\":\"jthfceyjnc\",\"isDeferredDeleteScheduleUpcoming\":true,\"isRehydrate\":true,\"resourceGuardOperationRequests\":[\"jbpfiddh\",\"rufzcqyjmq\",\"fuiocuselq\",\"rsazrhxud\"],\"isArchiveEnabled\":false,\"policyName\":\"tffisjmr\",\"softDeleteRetentionPeriodInDays\":1669709441,\"sourceLocation\":\"wdmdlgyqixokwt\",\"vaultId\":\"whvagnqfq\",\"sourceSideScanInfo\":{\"sourceSideScanStatus\":\"ConfigurationFailed\",\"sourceSideScanSummary\":\"Healthy\"}},\"tags\":{\"n\":\"lcaymjchtv\",\"z\":\"laqd\",\"othymgobl\":\"zawatuwqkokbc\",\"gwi\":\"msn\"},\"location\":\"an\",\"eTag\":\"khtmhobcyanrfv\",\"id\":\"vkhgv\",\"name\":\"ogxkfnaoa\",\"type\":\"ymhcctopuo\"}]}"; + = "{\"value\":[{\"properties\":{\"protectedItemType\":\"ProtectedItem\",\"backupManagementType\":\"AzureStorage\",\"workloadType\":\"FileFolder\",\"containerName\":\"umkz\",\"sourceResourceId\":\"lczdprwnh\",\"policyId\":\"qggoxsst\",\"lastRecoveryPoint\":\"2021-08-03T08:45Z\",\"backupSetName\":\"akfrry\",\"createMode\":\"Invalid\",\"deferredDeleteTimeInUTC\":\"2021-02-18T17:48:08Z\",\"isScheduledForDeferredDelete\":false,\"deferredDeleteTimeRemaining\":\"mgnukxrke\",\"isDeferredDeleteScheduleUpcoming\":true,\"isRehydrate\":false,\"resourceGuardOperationRequests\":[\"rlzaudg\",\"tfbclakkuc\",\"dwnhczbutoucgjti\"],\"isArchiveEnabled\":false,\"policyName\":\"yh\",\"softDeleteRetentionPeriodInDays\":142156384,\"sourceLocation\":\"wwvg\",\"vaultId\":\"slvlizedvb\",\"sourceSideScanInfo\":{\"sourceSideScanStatus\":\"Configured\",\"sourceSideScanSummary\":\"Healthy\"}},\"tags\":{\"wkhojqttbspvkhg\":\"ekzyqxadyfhb\"},\"location\":\"qjsgyzst\",\"eTag\":\"rzxrkns\",\"id\":\"rlduyehiiittugy\",\"name\":\"qwrldaxur\",\"type\":\"qa\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,33 +34,33 @@ public void testList() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response - = manager.backupProtectedItems().list("olk", "lirh", "mojusuz", "fjzc", com.azure.core.util.Context.NONE); + PagedIterable response = manager.backupProtectedItems() + .list("udsqcmhnx", "zbuw", "dmac", "bkvnrpbjrmvg", com.azure.core.util.Context.NONE); - Assertions.assertEquals("lahfxwccokdxk", response.iterator().next().properties().containerName()); - Assertions.assertEquals("mkczynuhhoqe", response.iterator().next().properties().sourceResourceId()); - Assertions.assertEquals("havl", response.iterator().next().properties().policyId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-11T04:07:20Z"), + Assertions.assertEquals("umkz", response.iterator().next().properties().containerName()); + Assertions.assertEquals("lczdprwnh", response.iterator().next().properties().sourceResourceId()); + Assertions.assertEquals("qggoxsst", response.iterator().next().properties().policyId()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-03T08:45Z"), response.iterator().next().properties().lastRecoveryPoint()); - Assertions.assertEquals("yrqolnthbbnkgz", response.iterator().next().properties().backupSetName()); + Assertions.assertEquals("akfrry", response.iterator().next().properties().backupSetName()); Assertions.assertEquals(CreateMode.INVALID, response.iterator().next().properties().createMode()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-24T18:32:45Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-02-18T17:48:08Z"), response.iterator().next().properties().deferredDeleteTimeInUtc()); - Assertions.assertTrue(response.iterator().next().properties().isScheduledForDeferredDelete()); - Assertions.assertEquals("jthfceyjnc", response.iterator().next().properties().deferredDeleteTimeRemaining()); + Assertions.assertFalse(response.iterator().next().properties().isScheduledForDeferredDelete()); + Assertions.assertEquals("mgnukxrke", response.iterator().next().properties().deferredDeleteTimeRemaining()); Assertions.assertTrue(response.iterator().next().properties().isDeferredDeleteScheduleUpcoming()); - Assertions.assertTrue(response.iterator().next().properties().isRehydrate()); - Assertions.assertEquals("jbpfiddh", + Assertions.assertFalse(response.iterator().next().properties().isRehydrate()); + Assertions.assertEquals("rlzaudg", response.iterator().next().properties().resourceGuardOperationRequests().get(0)); Assertions.assertFalse(response.iterator().next().properties().isArchiveEnabled()); - Assertions.assertEquals("tffisjmr", response.iterator().next().properties().policyName()); - Assertions.assertEquals(1669709441, response.iterator().next().properties().softDeleteRetentionPeriodInDays()); - Assertions.assertEquals(SourceSideScanStatus.CONFIGURATION_FAILED, + Assertions.assertEquals("yh", response.iterator().next().properties().policyName()); + Assertions.assertEquals(142156384, response.iterator().next().properties().softDeleteRetentionPeriodInDays()); + Assertions.assertEquals(SourceSideScanStatus.CONFIGURED, response.iterator().next().properties().sourceSideScanInfo().sourceSideScanStatus()); Assertions.assertEquals(SourceSideScanSummary.HEALTHY, response.iterator().next().properties().sourceSideScanInfo().sourceSideScanSummary()); - Assertions.assertEquals("lcaymjchtv", response.iterator().next().tags().get("n")); - Assertions.assertEquals("an", response.iterator().next().location()); - Assertions.assertEquals("khtmhobcyanrfv", response.iterator().next().etag()); + Assertions.assertEquals("ekzyqxadyfhb", response.iterator().next().tags().get("wkhojqttbspvkhg")); + Assertions.assertEquals("qjsgyzst", response.iterator().next().location()); + Assertions.assertEquals("rzxrkns", response.iterator().next().etag()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupProtectionContainersListMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupProtectionContainersListMockTests.java index 5934c7942bddd..cddd8e26f371c 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupProtectionContainersListMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupProtectionContainersListMockTests.java @@ -23,7 +23,7 @@ public final class BackupProtectionContainersListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"containerType\":\"ProtectionContainer\",\"friendlyName\":\"bqwuntobuizazzel\",\"backupManagementType\":\"DPM\",\"registrationStatus\":\"djufbnkl\",\"healthStatus\":\"axpegjw\",\"protectableObjectType\":\"bal\",\"sourceLocation\":\"xa\"},\"tags\":{\"tlbtlqho\":\"f\",\"flikyypzkgxfxfmy\":\"xouvmrs\",\"oksz\":\"qsdb\",\"wgpterdiuw\":\"nm\"},\"location\":\"rkskwztsdetjy\",\"eTag\":\"wifcqpolzkgysd\",\"id\":\"yybzoxlvoc\",\"name\":\"tvdxxhe\",\"type\":\"gmlilwzghjhjvmab\"}]}"; + = "{\"value\":[{\"properties\":{\"containerType\":\"ProtectionContainer\",\"friendlyName\":\"dprmimrljdpoqf\",\"backupManagementType\":\"Invalid\",\"registrationStatus\":\"hkftbaewh\",\"healthStatus\":\"cloamfmxtllflt\",\"protectableObjectType\":\"qcnrrfijhggabqb\",\"sourceLocation\":\"mkli\"},\"tags\":{\"tqrxqwqnjxrdf\":\"wdvffhsdpzouh\",\"eapyfmlxrlj\":\"dtullygtavczcxdf\",\"aspiflei\":\"h\",\"hfgsmd\":\"ixlmdbgic\"},\"location\":\"uq\",\"eTag\":\"xtokljmtz\",\"id\":\"axwfqtyyqip\",\"name\":\"cltungbso\",\"type\":\"jck\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,16 +33,16 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.backupProtectionContainers() - .list("dosqkptjqg", "ifmmainwh", "d", com.azure.core.util.Context.NONE); + .list("dejkluxxrwzobuz", "sxgamtdtkw", "pt", com.azure.core.util.Context.NONE); - Assertions.assertEquals("bqwuntobuizazzel", response.iterator().next().properties().friendlyName()); - Assertions.assertEquals(BackupManagementType.DPM, + Assertions.assertEquals("dprmimrljdpoqf", response.iterator().next().properties().friendlyName()); + Assertions.assertEquals(BackupManagementType.INVALID, response.iterator().next().properties().backupManagementType()); - Assertions.assertEquals("djufbnkl", response.iterator().next().properties().registrationStatus()); - Assertions.assertEquals("axpegjw", response.iterator().next().properties().healthStatus()); - Assertions.assertEquals("bal", response.iterator().next().properties().protectableObjectType()); - Assertions.assertEquals("f", response.iterator().next().tags().get("tlbtlqho")); - Assertions.assertEquals("rkskwztsdetjy", response.iterator().next().location()); - Assertions.assertEquals("wifcqpolzkgysd", response.iterator().next().etag()); + Assertions.assertEquals("hkftbaewh", response.iterator().next().properties().registrationStatus()); + Assertions.assertEquals("cloamfmxtllflt", response.iterator().next().properties().healthStatus()); + Assertions.assertEquals("qcnrrfijhggabqb", response.iterator().next().properties().protectableObjectType()); + Assertions.assertEquals("wdvffhsdpzouh", response.iterator().next().tags().get("tqrxqwqnjxrdf")); + Assertions.assertEquals("uq", response.iterator().next().location()); + Assertions.assertEquals("xtokljmtz", response.iterator().next().etag()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupProtectionIntentsListMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupProtectionIntentsListMockTests.java index e9c52907272c5..976a8b6a61ca7 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupProtectionIntentsListMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupProtectionIntentsListMockTests.java @@ -24,7 +24,7 @@ public final class BackupProtectionIntentsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"protectionIntentItemType\":\"ProtectionIntent\",\"backupManagementType\":\"DPM\",\"sourceResourceId\":\"cywhj\",\"itemId\":\"mchqoht\",\"policyId\":\"cpupukiy\",\"protectionState\":\"Protecting\"},\"tags\":{\"osaonhqnamppu\":\"dlvwtiws\",\"eajbkajlcyizyddc\":\"tassaekewna\",\"krvfsxxbydes\":\"xo\",\"nm\":\"lvgecpwgoljtz\"},\"location\":\"dobygoogxqapj\",\"eTag\":\"azyj\",\"id\":\"csa\",\"name\":\"djnosdkvibf\",\"type\":\"sgm\"}]}"; + = "{\"value\":[{\"properties\":{\"protectionIntentItemType\":\"ProtectionIntent\",\"backupManagementType\":\"DPM\",\"sourceResourceId\":\"zvdube\",\"itemId\":\"zygba\",\"policyId\":\"vecovsdqhzr\",\"protectionState\":\"Invalid\"},\"tags\":{\"fjmclngygnhrkomb\":\"rlimzfvppkeqs\",\"dopg\":\"dta\"},\"location\":\"rwjoqtrotpv\",\"eTag\":\"pofyrlmwkptsk\",\"id\":\"jgvhxcc\",\"name\":\"mkakmkook\",\"type\":\"putmgvmuyakm\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,16 +34,16 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.backupProtectionIntents() - .list("oisfmnaybdjn", "umentqontwhymxym", "lwivqt", "wlhlsycoybajasq", com.azure.core.util.Context.NONE); + .list("ynp", "me", "dpabcreuwzosg", "jxvcvaso", com.azure.core.util.Context.NONE); Assertions.assertEquals(BackupManagementType.DPM, response.iterator().next().properties().backupManagementType()); - Assertions.assertEquals("cywhj", response.iterator().next().properties().sourceResourceId()); - Assertions.assertEquals("mchqoht", response.iterator().next().properties().itemId()); - Assertions.assertEquals("cpupukiy", response.iterator().next().properties().policyId()); - Assertions.assertEquals(ProtectionStatus.PROTECTING, response.iterator().next().properties().protectionState()); - Assertions.assertEquals("dlvwtiws", response.iterator().next().tags().get("osaonhqnamppu")); - Assertions.assertEquals("dobygoogxqapj", response.iterator().next().location()); - Assertions.assertEquals("azyj", response.iterator().next().etag()); + Assertions.assertEquals("zvdube", response.iterator().next().properties().sourceResourceId()); + Assertions.assertEquals("zygba", response.iterator().next().properties().itemId()); + Assertions.assertEquals("vecovsdqhzr", response.iterator().next().properties().policyId()); + Assertions.assertEquals(ProtectionStatus.INVALID, response.iterator().next().properties().protectionState()); + Assertions.assertEquals("rlimzfvppkeqs", response.iterator().next().tags().get("fjmclngygnhrkomb")); + Assertions.assertEquals("rwjoqtrotpv", response.iterator().next().location()); + Assertions.assertEquals("pofyrlmwkptsk", response.iterator().next().etag()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupRequestResourceTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupRequestResourceTests.java index 32c07f2460adb..ae100558047ce 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupRequestResourceTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupRequestResourceTests.java @@ -15,23 +15,23 @@ public final class BackupRequestResourceTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BackupRequestResource model = BinaryData.fromString( - "{\"location\":\"krh\",\"tags\":{\"duala\":\"ljuahaquhcdh\",\"rcrgvx\":\"xqpvfadmw\"},\"eTag\":\"gomz\",\"properties\":{\"objectType\":\"BackupRequest\"},\"id\":\"isgwbnbbeldawkz\",\"name\":\"ali\",\"type\":\"urqhaka\"}") + "{\"location\":\"ovbvmeueciv\",\"tags\":{\"ojgjrwjueiotwmc\":\"ce\",\"nrjawgqwg\":\"ytdxwit\",\"klwndnhjdauwhv\":\"hniskxfbkpyc\"},\"eTag\":\"wzbtdhxu\",\"properties\":{\"objectType\":\"BackupRequest\"},\"id\":\"bm\",\"name\":\"ow\",\"type\":\"wpr\"}") .toObject(BackupRequestResource.class); - Assertions.assertEquals("krh", model.location()); - Assertions.assertEquals("ljuahaquhcdh", model.tags().get("duala")); - Assertions.assertEquals("gomz", model.eTag()); + Assertions.assertEquals("ovbvmeueciv", model.location()); + Assertions.assertEquals("ce", model.tags().get("ojgjrwjueiotwmc")); + Assertions.assertEquals("wzbtdhxu", model.eTag()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - BackupRequestResource model = new BackupRequestResource().withLocation("krh") - .withTags(mapOf("duala", "ljuahaquhcdh", "rcrgvx", "xqpvfadmw")) - .withETag("gomz") + BackupRequestResource model = new BackupRequestResource().withLocation("ovbvmeueciv") + .withTags(mapOf("ojgjrwjueiotwmc", "ce", "nrjawgqwg", "ytdxwit", "klwndnhjdauwhv", "hniskxfbkpyc")) + .withETag("wzbtdhxu") .withProperties(new BackupRequest()); model = BinaryData.fromObject(model).toObject(BackupRequestResource.class); - Assertions.assertEquals("krh", model.location()); - Assertions.assertEquals("ljuahaquhcdh", model.tags().get("duala")); - Assertions.assertEquals("gomz", model.eTag()); + Assertions.assertEquals("ovbvmeueciv", model.location()); + Assertions.assertEquals("ce", model.tags().get("ojgjrwjueiotwmc")); + Assertions.assertEquals("wzbtdhxu", model.eTag()); } // Use "Map.of" if available diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceStorageConfigsNonCrrsGetWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceStorageConfigsNonCrrsGetWithResponseMockTests.java index cbaec4ce2c55e..3e3174f1f6fd8 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceStorageConfigsNonCrrsGetWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceStorageConfigsNonCrrsGetWithResponseMockTests.java @@ -25,7 +25,7 @@ public final class BackupResourceStorageConfigsNonCrrsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"storageModelType\":\"Invalid\",\"storageType\":\"ZoneRedundant\",\"storageTypeState\":\"Unlocked\",\"crossRegionRestoreFlag\":true,\"dedupState\":\"Enabled\",\"xcoolState\":\"Enabled\"},\"tags\":{\"xegqphr\":\"wsedvesk\",\"hctmjtsgh\":\"fn\",\"rpzeqac\":\"bcbcpz\"},\"location\":\"dtzmpype\",\"eTag\":\"pc\",\"id\":\"hnuqndaizu\",\"name\":\"fkhuytu\",\"type\":\"zx\"}"; + = "{\"properties\":{\"storageModelType\":\"Invalid\",\"storageType\":\"Invalid\",\"storageTypeState\":\"Locked\",\"crossRegionRestoreFlag\":false,\"dedupState\":\"Enabled\",\"xcoolState\":\"Enabled\"},\"tags\":{\"vskiczd\":\"cqydey\",\"qaboohxbms\":\"rjeizik\",\"d\":\"ycqsxr\"},\"location\":\"wuyqaeo\",\"eTag\":\"jh\",\"id\":\"jkbvhhdaurgho\",\"name\":\"xaex\",\"type\":\"k\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,17 +35,17 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); BackupResourceConfigResource response = manager.backupResourceStorageConfigsNonCrrs() - .getWithResponse("czuod", "cpunettepdjx", com.azure.core.util.Context.NONE) + .getWithResponse("zotfriyrgkoek", "zwx", com.azure.core.util.Context.NONE) .getValue(); Assertions.assertEquals(StorageType.INVALID, response.properties().storageModelType()); - Assertions.assertEquals(StorageType.ZONE_REDUNDANT, response.properties().storageType()); - Assertions.assertEquals(StorageTypeState.UNLOCKED, response.properties().storageTypeState()); - Assertions.assertTrue(response.properties().crossRegionRestoreFlag()); + Assertions.assertEquals(StorageType.INVALID, response.properties().storageType()); + Assertions.assertEquals(StorageTypeState.LOCKED, response.properties().storageTypeState()); + Assertions.assertFalse(response.properties().crossRegionRestoreFlag()); Assertions.assertEquals(DedupState.ENABLED, response.properties().dedupState()); Assertions.assertEquals(XcoolState.ENABLED, response.properties().xcoolState()); - Assertions.assertEquals("wsedvesk", response.tags().get("xegqphr")); - Assertions.assertEquals("dtzmpype", response.location()); - Assertions.assertEquals("pc", response.etag()); + Assertions.assertEquals("cqydey", response.tags().get("vskiczd")); + Assertions.assertEquals("wuyqaeo", response.location()); + Assertions.assertEquals("jh", response.etag()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceStorageConfigsNonCrrsPatchWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceStorageConfigsNonCrrsPatchWithResponseMockTests.java index 59e888c39eba1..bb008fe213fb1 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceStorageConfigsNonCrrsPatchWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceStorageConfigsNonCrrsPatchWithResponseMockTests.java @@ -36,17 +36,17 @@ public void testPatchWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.backupResourceStorageConfigsNonCrrs() - .patchWithResponse("pxvjnzd", "vocoj", + .patchWithResponse("zfymcwmbupyvqyvl", "qiipsejb", new BackupResourceConfigResourceInner() - .withProperties(new BackupResourceConfig().withStorageModelType(StorageType.INVALID) - .withStorageType(StorageType.LOCALLY_REDUNDANT) + .withProperties(new BackupResourceConfig().withStorageModelType(StorageType.ZONE_REDUNDANT) + .withStorageType(StorageType.INVALID) .withStorageTypeState(StorageTypeState.INVALID) .withCrossRegionRestoreFlag(true) - .withDedupState(DedupState.ENABLED) - .withXcoolState(XcoolState.INVALID)) - .withTags(mapOf("ilmhivzkwwwnc", "xv")) - .withLocation("rzd") - .withEtag("lskzptjxul"), + .withDedupState(DedupState.INVALID) + .withXcoolState(XcoolState.DISABLED)) + .withTags(mapOf("dpxot", "snuepywyjln", "weebiphryv", "diiaocqibzji", "w", "jw")) + .withLocation("sratjhdhzyb") + .withEtag("ijh"), com.azure.core.util.Context.NONE); } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceStorageConfigsNonCrrsUpdateWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceStorageConfigsNonCrrsUpdateWithResponseMockTests.java index 2f6d8eb6ce3b6..2e768b415890d 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceStorageConfigsNonCrrsUpdateWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceStorageConfigsNonCrrsUpdateWithResponseMockTests.java @@ -29,7 +29,7 @@ public final class BackupResourceStorageConfigsNonCrrsUpdateWithResponseMockTest @Test public void testUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"storageModelType\":\"LocallyRedundant\",\"storageType\":\"ReadAccessGeoZoneRedundant\",\"storageTypeState\":\"Locked\",\"crossRegionRestoreFlag\":false,\"dedupState\":\"Enabled\",\"xcoolState\":\"Enabled\"},\"tags\":{\"iahxmfqryarvs\":\"gglpmcrdcuelj\"},\"location\":\"qbglcjkaysp\",\"eTag\":\"zodubtlm\",\"id\":\"gblioskkfmkm\",\"name\":\"djxyxgbkkqvjcteo\",\"type\":\"dlrslskk\"}"; + = "{\"properties\":{\"storageModelType\":\"ZoneRedundant\",\"storageType\":\"ReadAccessGeoZoneRedundant\",\"storageTypeState\":\"Invalid\",\"crossRegionRestoreFlag\":false,\"dedupState\":\"Enabled\",\"xcoolState\":\"Disabled\"},\"tags\":{\"wjgquxweyslandkd\":\"efgvqcp\",\"nquoxsotireimse\":\"djhunhghcgawnr\",\"tcyilbvz\":\"bfsx\",\"bjvbzinzab\":\"mxcjzlquzexokjx\"},\"location\":\"vogljsvlpg\",\"eTag\":\"nwcehaqidoyzl\",\"id\":\"iomqoqpepiaea\",\"name\":\"fsergdtpeqnacy\",\"type\":\"eqwbpqqncjubkhj\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -38,30 +38,30 @@ public void testUpdateWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - BackupResourceConfigResource response - = manager.backupResourceStorageConfigsNonCrrs() - .updateWithResponse("mtvtvegwqiukvzwy", "wtthaokgksk", new BackupResourceConfigResourceInner() + BackupResourceConfigResource response = manager.backupResourceStorageConfigsNonCrrs() + .updateWithResponse("xjxjoe", "lqxr", + new BackupResourceConfigResourceInner() .withProperties(new BackupResourceConfig().withStorageModelType(StorageType.LOCALLY_REDUNDANT) - .withStorageType(StorageType.GEO_REDUNDANT) - .withStorageTypeState(StorageTypeState.INVALID) + .withStorageType(StorageType.LOCALLY_REDUNDANT) + .withStorageTypeState(StorageTypeState.UNLOCKED) .withCrossRegionRestoreFlag(true) - .withDedupState(DedupState.INVALID) - .withXcoolState(XcoolState.ENABLED)) - .withTags( - mapOf("exyionofninbd", "xpgeumilhwuitr", "rsmpcbbprtuga", "zsxcwq", "fogdrtbfcm", "bzbcyksiv")) - .withLocation("ftsjcwj") - .withEtag("sgmbawvif"), com.azure.core.util.Context.NONE) - .getValue(); + .withDedupState(DedupState.DISABLED) + .withXcoolState(XcoolState.DISABLED)) + .withTags(mapOf("cdgzseznux", "tzamicbig")) + .withLocation("uairaabmdlqjb") + .withEtag("pfixlhupmo"), + com.azure.core.util.Context.NONE) + .getValue(); - Assertions.assertEquals(StorageType.LOCALLY_REDUNDANT, response.properties().storageModelType()); + Assertions.assertEquals(StorageType.ZONE_REDUNDANT, response.properties().storageModelType()); Assertions.assertEquals(StorageType.READ_ACCESS_GEO_ZONE_REDUNDANT, response.properties().storageType()); - Assertions.assertEquals(StorageTypeState.LOCKED, response.properties().storageTypeState()); + Assertions.assertEquals(StorageTypeState.INVALID, response.properties().storageTypeState()); Assertions.assertFalse(response.properties().crossRegionRestoreFlag()); Assertions.assertEquals(DedupState.ENABLED, response.properties().dedupState()); - Assertions.assertEquals(XcoolState.ENABLED, response.properties().xcoolState()); - Assertions.assertEquals("gglpmcrdcuelj", response.tags().get("iahxmfqryarvs")); - Assertions.assertEquals("qbglcjkaysp", response.location()); - Assertions.assertEquals("zodubtlm", response.etag()); + Assertions.assertEquals(XcoolState.DISABLED, response.properties().xcoolState()); + Assertions.assertEquals("efgvqcp", response.tags().get("wjgquxweyslandkd")); + Assertions.assertEquals("vogljsvlpg", response.location()); + Assertions.assertEquals("nwcehaqidoyzl", response.etag()); } // Use "Map.of" if available diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceVaultConfigsGetWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceVaultConfigsGetWithResponseMockTests.java index 55166029d0781..3956ec9674206 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceVaultConfigsGetWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceVaultConfigsGetWithResponseMockTests.java @@ -25,7 +25,7 @@ public final class BackupResourceVaultConfigsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"storageModelType\":\"Invalid\",\"storageType\":\"GeoRedundant\",\"storageTypeState\":\"Unlocked\",\"enhancedSecurityState\":\"Enabled\",\"softDeleteFeatureState\":\"AlwaysON\",\"softDeleteRetentionPeriodInDays\":1018988354,\"resourceGuardOperationRequests\":[\"veb\",\"qszllrz\",\"smmd\"],\"isSoftDeleteFeatureStateEditable\":true},\"tags\":{\"t\":\"zpimcqrhn\",\"tzarhzvqnsqktc\":\"inklogxs\"},\"location\":\"jwzzoslpk\",\"eTag\":\"tglwkzpgajsqjc\",\"id\":\"qbmfuvqarwz\",\"name\":\"uqrebluimmbwx\",\"type\":\"fgtdmbvx\"}"; + = "{\"properties\":{\"storageModelType\":\"ReadAccessGeoZoneRedundant\",\"storageType\":\"GeoRedundant\",\"storageTypeState\":\"Invalid\",\"enhancedSecurityState\":\"Enabled\",\"softDeleteFeatureState\":\"Enabled\",\"softDeleteRetentionPeriodInDays\":230263685,\"resourceGuardOperationRequests\":[\"jckhmocgj\"],\"isSoftDeleteFeatureStateEditable\":true},\"tags\":{\"hwvixqqggljkybsj\":\"a\"},\"location\":\"lrvtz\",\"eTag\":\"rbctbhpjhxpcvrd\",\"id\":\"eitaneqadynzjahw\",\"name\":\"iuomzczfkiceevs\",\"type\":\"axwspcaxikhfjqeb\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,19 +35,19 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); BackupResourceVaultConfigResource response = manager.backupResourceVaultConfigs() - .getWithResponse("abzfivf", "kpysthhzagjf", com.azure.core.util.Context.NONE) + .getWithResponse("bkut", "umltwjflu", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(StorageType.INVALID, response.properties().storageModelType()); + Assertions.assertEquals(StorageType.READ_ACCESS_GEO_ZONE_REDUNDANT, response.properties().storageModelType()); Assertions.assertEquals(StorageType.GEO_REDUNDANT, response.properties().storageType()); - Assertions.assertEquals(StorageTypeState.UNLOCKED, response.properties().storageTypeState()); + Assertions.assertEquals(StorageTypeState.INVALID, response.properties().storageTypeState()); Assertions.assertEquals(EnhancedSecurityState.ENABLED, response.properties().enhancedSecurityState()); - Assertions.assertEquals(SoftDeleteFeatureState.ALWAYS_ON, response.properties().softDeleteFeatureState()); - Assertions.assertEquals(1018988354, response.properties().softDeleteRetentionPeriodInDays()); - Assertions.assertEquals("veb", response.properties().resourceGuardOperationRequests().get(0)); + Assertions.assertEquals(SoftDeleteFeatureState.ENABLED, response.properties().softDeleteFeatureState()); + Assertions.assertEquals(230263685, response.properties().softDeleteRetentionPeriodInDays()); + Assertions.assertEquals("jckhmocgj", response.properties().resourceGuardOperationRequests().get(0)); Assertions.assertTrue(response.properties().isSoftDeleteFeatureStateEditable()); - Assertions.assertEquals("zpimcqrhn", response.tags().get("t")); - Assertions.assertEquals("jwzzoslpk", response.location()); - Assertions.assertEquals("tglwkzpgajsqjc", response.etag()); + Assertions.assertEquals("a", response.tags().get("hwvixqqggljkybsj")); + Assertions.assertEquals("lrvtz", response.location()); + Assertions.assertEquals("rbctbhpjhxpcvrd", response.etag()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceVaultConfigsPutWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceVaultConfigsPutWithResponseMockTests.java index 0d48e07e8bab2..bd8626e16f799 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceVaultConfigsPutWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceVaultConfigsPutWithResponseMockTests.java @@ -30,7 +30,7 @@ public final class BackupResourceVaultConfigsPutWithResponseMockTests { @Test public void testPutWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"storageModelType\":\"GeoRedundant\",\"storageType\":\"GeoRedundant\",\"storageTypeState\":\"Invalid\",\"enhancedSecurityState\":\"Invalid\",\"softDeleteFeatureState\":\"AlwaysON\",\"softDeleteRetentionPeriodInDays\":1877038769,\"resourceGuardOperationRequests\":[\"jabjqqa\",\"uyvymcnu\",\"ndoabhjxwxqweuip\",\"pvksmit\"],\"isSoftDeleteFeatureStateEditable\":false},\"tags\":{\"clkrdpq\":\"l\",\"d\":\"fhyrfrakk\"},\"location\":\"c\",\"eTag\":\"cmfcnrjajq\",\"id\":\"txjtielnzqgx\",\"name\":\"gfb\",\"type\":\"mtlpqagyno\"}"; + = "{\"properties\":{\"storageModelType\":\"LocallyRedundant\",\"storageType\":\"Invalid\",\"storageTypeState\":\"Unlocked\",\"enhancedSecurityState\":\"Disabled\",\"softDeleteFeatureState\":\"Enabled\",\"softDeleteRetentionPeriodInDays\":1071646507,\"resourceGuardOperationRequests\":[\"bjtvgjsxmtyjj\",\"avdpwwobtdphtits\",\"fofwan\",\"hks\"],\"isSoftDeleteFeatureStateEditable\":true},\"tags\":{\"ybjpozoks\":\"zcgwdfriw\"},\"location\":\"gllixdgbyfgwew\",\"eTag\":\"j\",\"id\":\"prwpxsoohu\",\"name\":\"xlcskltez\",\"type\":\"ugggzlfbgrdcgu\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -39,35 +39,34 @@ public void testPutWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - BackupResourceVaultConfigResource response = manager.backupResourceVaultConfigs() - .putWithResponse("kraokq", "budbt", - new BackupResourceVaultConfigResourceInner() - .withProperties(new BackupResourceVaultConfig().withStorageModelType(StorageType.GEO_REDUNDANT) - .withStorageType(StorageType.LOCALLY_REDUNDANT) - .withStorageTypeState(StorageTypeState.INVALID) - .withEnhancedSecurityState(EnhancedSecurityState.INVALID) - .withSoftDeleteFeatureState(SoftDeleteFeatureState.ENABLED) - .withSoftDeleteRetentionPeriodInDays(2046977221) - .withResourceGuardOperationRequests(Arrays.asList("frkebsmhpd", "jdigatole")) - .withIsSoftDeleteFeatureStateEditable(true)) - .withTags(mapOf("xpdcldpkawnsnl", "tnanqimwb", "bicziuswswj", "imouxwksqmudmfco", "fwbivqvo", - "kbqsjhbtqqvyfscy", "wvbhlimbyq", "fuy")) - .withLocation("r") - .withEtag("dlikcdrdaasa"), - com.azure.core.util.Context.NONE) - .getValue(); + BackupResourceVaultConfigResource response + = manager.backupResourceVaultConfigs() + .putWithResponse("lcxkxgzzromv", "g", new BackupResourceVaultConfigResourceInner() + .withProperties( + new BackupResourceVaultConfig().withStorageModelType(StorageType.READ_ACCESS_GEO_ZONE_REDUNDANT) + .withStorageType(StorageType.LOCALLY_REDUNDANT) + .withStorageTypeState(StorageTypeState.LOCKED) + .withEnhancedSecurityState(EnhancedSecurityState.DISABLED) + .withSoftDeleteFeatureState(SoftDeleteFeatureState.DISABLED) + .withSoftDeleteRetentionPeriodInDays(1549205819) + .withResourceGuardOperationRequests(Arrays.asList("zpatqtd", "swxspvckojaz", "bgspf")) + .withIsSoftDeleteFeatureStateEditable(false)) + .withTags(mapOf("covqseusrfjbdxzf", "zpvpvdyly")) + .withLocation("xm") + .withEtag("muoswkjmdih"), com.azure.core.util.Context.NONE) + .getValue(); - Assertions.assertEquals(StorageType.GEO_REDUNDANT, response.properties().storageModelType()); - Assertions.assertEquals(StorageType.GEO_REDUNDANT, response.properties().storageType()); - Assertions.assertEquals(StorageTypeState.INVALID, response.properties().storageTypeState()); - Assertions.assertEquals(EnhancedSecurityState.INVALID, response.properties().enhancedSecurityState()); - Assertions.assertEquals(SoftDeleteFeatureState.ALWAYS_ON, response.properties().softDeleteFeatureState()); - Assertions.assertEquals(1877038769, response.properties().softDeleteRetentionPeriodInDays()); - Assertions.assertEquals("jabjqqa", response.properties().resourceGuardOperationRequests().get(0)); - Assertions.assertFalse(response.properties().isSoftDeleteFeatureStateEditable()); - Assertions.assertEquals("l", response.tags().get("clkrdpq")); - Assertions.assertEquals("c", response.location()); - Assertions.assertEquals("cmfcnrjajq", response.etag()); + Assertions.assertEquals(StorageType.LOCALLY_REDUNDANT, response.properties().storageModelType()); + Assertions.assertEquals(StorageType.INVALID, response.properties().storageType()); + Assertions.assertEquals(StorageTypeState.UNLOCKED, response.properties().storageTypeState()); + Assertions.assertEquals(EnhancedSecurityState.DISABLED, response.properties().enhancedSecurityState()); + Assertions.assertEquals(SoftDeleteFeatureState.ENABLED, response.properties().softDeleteFeatureState()); + Assertions.assertEquals(1071646507, response.properties().softDeleteRetentionPeriodInDays()); + Assertions.assertEquals("bjtvgjsxmtyjj", response.properties().resourceGuardOperationRequests().get(0)); + Assertions.assertTrue(response.properties().isSoftDeleteFeatureStateEditable()); + Assertions.assertEquals("zcgwdfriw", response.tags().get("ybjpozoks")); + Assertions.assertEquals("gllixdgbyfgwew", response.location()); + Assertions.assertEquals("j", response.etag()); } // Use "Map.of" if available diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceVaultConfigsUpdateWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceVaultConfigsUpdateWithResponseMockTests.java index a930fd76ed420..34f46f0691f55 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceVaultConfigsUpdateWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupResourceVaultConfigsUpdateWithResponseMockTests.java @@ -30,7 +30,7 @@ public final class BackupResourceVaultConfigsUpdateWithResponseMockTests { @Test public void testUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"storageModelType\":\"GeoRedundant\",\"storageType\":\"Invalid\",\"storageTypeState\":\"Unlocked\",\"enhancedSecurityState\":\"Enabled\",\"softDeleteFeatureState\":\"Disabled\",\"softDeleteRetentionPeriodInDays\":486761591,\"resourceGuardOperationRequests\":[\"xrqrkijpeuqlsd\",\"eqztvxwmwwm\",\"swenawwa\"],\"isSoftDeleteFeatureStateEditable\":true},\"tags\":{\"llhsvidmyt\":\"qioulndhzyoeojht\"},\"location\":\"nglxpn\",\"eTag\":\"yoan\",\"id\":\"cswqa\",\"name\":\"ywv\",\"type\":\"xigvjrktpgaeuk\"}"; + = "{\"properties\":{\"storageModelType\":\"ReadAccessGeoZoneRedundant\",\"storageType\":\"GeoRedundant\",\"storageTypeState\":\"Unlocked\",\"enhancedSecurityState\":\"Disabled\",\"softDeleteFeatureState\":\"AlwaysON\",\"softDeleteRetentionPeriodInDays\":1140061400,\"resourceGuardOperationRequests\":[\"zwzlp\",\"btzuykyk\",\"pfs\",\"yepfn\"],\"isSoftDeleteFeatureStateEditable\":true},\"tags\":{\"qejg\":\"zacfpztgazw\",\"gkqzkcyzmffngdyf\":\"aokctgkp\",\"qvhoej\":\"ixrhl\"},\"location\":\"iutg\",\"eTag\":\"mkahpqha\",\"id\":\"ntacih\",\"name\":\"cogmi\",\"type\":\"nmliqmvlbhi\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -39,35 +39,34 @@ public void testUpdateWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - BackupResourceVaultConfigResource response = manager.backupResourceVaultConfigs() - .updateWithResponse("prnzc", "lin", - new BackupResourceVaultConfigResourceInner() - .withProperties(new BackupResourceVaultConfig().withStorageModelType(StorageType.GEO_REDUNDANT) - .withStorageType(StorageType.READ_ACCESS_GEO_ZONE_REDUNDANT) - .withStorageTypeState(StorageTypeState.LOCKED) - .withEnhancedSecurityState(EnhancedSecurityState.ENABLED) - .withSoftDeleteFeatureState(SoftDeleteFeatureState.ENABLED) - .withSoftDeleteRetentionPeriodInDays(1996396504) - .withResourceGuardOperationRequests( - Arrays.asList("iymqr", "qguhfupetasvvo", "sbpkf", "anfkgxsyaowuzow")) - .withIsSoftDeleteFeatureStateEditable(true)) - .withTags(mapOf("rgukxrztio", "kc", "f", "hlutixmqrudjizc")) - .withLocation("crunfhi") - .withEtag("nmfbc"), - com.azure.core.util.Context.NONE) - .getValue(); + BackupResourceVaultConfigResource response + = manager.backupResourceVaultConfigs() + .updateWithResponse("srtmdylperpiltt", "zgczfcmfpfbode", new BackupResourceVaultConfigResourceInner() + .withProperties( + new BackupResourceVaultConfig().withStorageModelType(StorageType.READ_ACCESS_GEO_ZONE_REDUNDANT) + .withStorageType(StorageType.LOCALLY_REDUNDANT) + .withStorageTypeState(StorageTypeState.LOCKED) + .withEnhancedSecurityState(EnhancedSecurityState.DISABLED) + .withSoftDeleteFeatureState(SoftDeleteFeatureState.ENABLED) + .withSoftDeleteRetentionPeriodInDays(217192466) + .withResourceGuardOperationRequests(Arrays.asList("ivmuqkevzgjyp")) + .withIsSoftDeleteFeatureStateEditable(false)) + .withTags(mapOf("wot", "pdxxzetwwz", "fhglhrfo", "xl", "snhpcselqx", "qwec", "ukklvzrlr", "vppqi")) + .withLocation("ccmetjsczivfqb") + .withEtag("asdsyenzsie"), com.azure.core.util.Context.NONE) + .getValue(); - Assertions.assertEquals(StorageType.GEO_REDUNDANT, response.properties().storageModelType()); - Assertions.assertEquals(StorageType.INVALID, response.properties().storageType()); + Assertions.assertEquals(StorageType.READ_ACCESS_GEO_ZONE_REDUNDANT, response.properties().storageModelType()); + Assertions.assertEquals(StorageType.GEO_REDUNDANT, response.properties().storageType()); Assertions.assertEquals(StorageTypeState.UNLOCKED, response.properties().storageTypeState()); - Assertions.assertEquals(EnhancedSecurityState.ENABLED, response.properties().enhancedSecurityState()); - Assertions.assertEquals(SoftDeleteFeatureState.DISABLED, response.properties().softDeleteFeatureState()); - Assertions.assertEquals(486761591, response.properties().softDeleteRetentionPeriodInDays()); - Assertions.assertEquals("xrqrkijpeuqlsd", response.properties().resourceGuardOperationRequests().get(0)); + Assertions.assertEquals(EnhancedSecurityState.DISABLED, response.properties().enhancedSecurityState()); + Assertions.assertEquals(SoftDeleteFeatureState.ALWAYS_ON, response.properties().softDeleteFeatureState()); + Assertions.assertEquals(1140061400, response.properties().softDeleteRetentionPeriodInDays()); + Assertions.assertEquals("zwzlp", response.properties().resourceGuardOperationRequests().get(0)); Assertions.assertTrue(response.properties().isSoftDeleteFeatureStateEditable()); - Assertions.assertEquals("qioulndhzyoeojht", response.tags().get("llhsvidmyt")); - Assertions.assertEquals("nglxpn", response.location()); - Assertions.assertEquals("yoan", response.etag()); + Assertions.assertEquals("zacfpztgazw", response.tags().get("qejg")); + Assertions.assertEquals("iutg", response.location()); + Assertions.assertEquals("mkahpqha", response.etag()); } // Use "Map.of" if available diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupStatusRequestTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupStatusRequestTests.java index 1cc6b5fd51957..78811ff2e0f1a 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupStatusRequestTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupStatusRequestTests.java @@ -13,22 +13,21 @@ public final class BackupStatusRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { BackupStatusRequest model = BinaryData - .fromString( - "{\"resourceType\":\"GenericDataSource\",\"resourceId\":\"znj\",\"poLogicalName\":\"jvaannggiycwkd\"}") + .fromString("{\"resourceType\":\"SAPAseDatabase\",\"resourceId\":\"snxawqyt\",\"poLogicalName\":\"hd\"}") .toObject(BackupStatusRequest.class); - Assertions.assertEquals(DataSourceType.GENERIC_DATA_SOURCE, model.resourceType()); - Assertions.assertEquals("znj", model.resourceId()); - Assertions.assertEquals("jvaannggiycwkd", model.poLogicalName()); + Assertions.assertEquals(DataSourceType.SAPASE_DATABASE, model.resourceType()); + Assertions.assertEquals("snxawqyt", model.resourceId()); + Assertions.assertEquals("hd", model.poLogicalName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - BackupStatusRequest model = new BackupStatusRequest().withResourceType(DataSourceType.GENERIC_DATA_SOURCE) - .withResourceId("znj") - .withPoLogicalName("jvaannggiycwkd"); + BackupStatusRequest model = new BackupStatusRequest().withResourceType(DataSourceType.SAPASE_DATABASE) + .withResourceId("snxawqyt") + .withPoLogicalName("hd"); model = BinaryData.fromObject(model).toObject(BackupStatusRequest.class); - Assertions.assertEquals(DataSourceType.GENERIC_DATA_SOURCE, model.resourceType()); - Assertions.assertEquals("znj", model.resourceId()); - Assertions.assertEquals("jvaannggiycwkd", model.poLogicalName()); + Assertions.assertEquals(DataSourceType.SAPASE_DATABASE, model.resourceType()); + Assertions.assertEquals("snxawqyt", model.resourceId()); + Assertions.assertEquals("hd", model.poLogicalName()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupUsageSummariesListMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupUsageSummariesListMockTests.java index 83b315285caf8..2407426672ec9 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupUsageSummariesListMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupUsageSummariesListMockTests.java @@ -23,7 +23,7 @@ public final class BackupUsageSummariesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"unit\":\"Percent\",\"quotaPeriod\":\"ikff\",\"nextResetTime\":\"2020-12-26T11:09:29Z\",\"currentValue\":4364154755466514636,\"limit\":5760548338791668687,\"name\":{\"value\":\"uldbkke\",\"localizedValue\":\"kj\"}}]}"; + = "{\"value\":[{\"unit\":\"BytesPerSecond\",\"quotaPeriod\":\"zjxxlfe\",\"nextResetTime\":\"2021-02-19T06:22:41Z\",\"currentValue\":3561313061117740832,\"limit\":8457896118699706541,\"name\":{\"value\":\"yyzivrmitcd\",\"localizedValue\":\"hchwhrktjleif\"}}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,16 +32,16 @@ public void testList() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response = manager.backupUsageSummaries() - .list("trnzpducdaaktu", "ktz", "oimyfpqd", "wkppnwyytfvp", com.azure.core.util.Context.NONE); + PagedIterable response + = manager.backupUsageSummaries().list("wk", "fowzkroyr", "urxf", "zqjim", com.azure.core.util.Context.NONE); - Assertions.assertEquals(UsagesUnit.PERCENT, response.iterator().next().unit()); - Assertions.assertEquals("ikff", response.iterator().next().quotaPeriod()); - Assertions.assertEquals(OffsetDateTime.parse("2020-12-26T11:09:29Z"), + Assertions.assertEquals(UsagesUnit.BYTES_PER_SECOND, response.iterator().next().unit()); + Assertions.assertEquals("zjxxlfe", response.iterator().next().quotaPeriod()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-19T06:22:41Z"), response.iterator().next().nextResetTime()); - Assertions.assertEquals(4364154755466514636L, response.iterator().next().currentValue()); - Assertions.assertEquals(5760548338791668687L, response.iterator().next().limit()); - Assertions.assertEquals("uldbkke", response.iterator().next().name().value()); - Assertions.assertEquals("kj", response.iterator().next().name().localizedValue()); + Assertions.assertEquals(3561313061117740832L, response.iterator().next().currentValue()); + Assertions.assertEquals(8457896118699706541L, response.iterator().next().limit()); + Assertions.assertEquals("yyzivrmitcd", response.iterator().next().name().value()); + Assertions.assertEquals("hchwhrktjleif", response.iterator().next().name().localizedValue()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupWorkloadItemsListMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupWorkloadItemsListMockTests.java index 20834ee4103ba..56f1bcb0c0fb6 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupWorkloadItemsListMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupWorkloadItemsListMockTests.java @@ -23,7 +23,7 @@ public final class BackupWorkloadItemsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"location\":\"cqjkedwqu\",\"tags\":{\"qqrsil\":\"ojmrvvxwjongzse\",\"sbvr\":\"chskxxka\",\"rulfuct\":\"aqgvto\"},\"eTag\":\"rthcfjzh\",\"properties\":{\"workloadItemType\":\"WorkloadItem\",\"backupManagementType\":\"ubqjro\",\"workloadType\":\"vrjeqmtzzbeqrztr\",\"friendlyName\":\"lxrdhabsrwrsn\",\"protectionState\":\"Protected\"},\"id\":\"a\",\"name\":\"iwkkvya\",\"type\":\"xkvvcs\"}]}"; + = "{\"value\":[{\"location\":\"ninafhxrz\",\"tags\":{\"rcqxgcbvzarmqc\":\"vztiucwviqllukh\"},\"eTag\":\"okstsinvagovjyh\",\"properties\":{\"workloadItemType\":\"WorkloadItem\",\"backupManagementType\":\"brdvce\",\"workloadType\":\"whitxnmxgnmguzbu\",\"friendlyName\":\"orbalkj\",\"protectionState\":\"Invalid\"},\"id\":\"dhlltqstqkqsyg\",\"name\":\"iynecovagz\",\"type\":\"heu\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,15 +33,15 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.backupWorkloadItems() - .list("aovjow", "zhpabac", "mlyotg", "wsxnsrqor", "genmvceb", "eetqujxcxxq", + .list("y", "kcxwnujvqynvavi", "mdmuqoh", "ihraxqudd", "wjc", "jbrhlhpvzadbw", com.azure.core.util.Context.NONE); - Assertions.assertEquals("cqjkedwqu", response.iterator().next().location()); - Assertions.assertEquals("ojmrvvxwjongzse", response.iterator().next().tags().get("qqrsil")); - Assertions.assertEquals("rthcfjzh", response.iterator().next().eTag()); - Assertions.assertEquals("ubqjro", response.iterator().next().properties().backupManagementType()); - Assertions.assertEquals("vrjeqmtzzbeqrztr", response.iterator().next().properties().workloadType()); - Assertions.assertEquals("lxrdhabsrwrsn", response.iterator().next().properties().friendlyName()); - Assertions.assertEquals(ProtectionStatus.PROTECTED, response.iterator().next().properties().protectionState()); + Assertions.assertEquals("ninafhxrz", response.iterator().next().location()); + Assertions.assertEquals("vztiucwviqllukh", response.iterator().next().tags().get("rcqxgcbvzarmqc")); + Assertions.assertEquals("okstsinvagovjyh", response.iterator().next().eTag()); + Assertions.assertEquals("brdvce", response.iterator().next().properties().backupManagementType()); + Assertions.assertEquals("whitxnmxgnmguzbu", response.iterator().next().properties().workloadType()); + Assertions.assertEquals("orbalkj", response.iterator().next().properties().friendlyName()); + Assertions.assertEquals(ProtectionStatus.INVALID, response.iterator().next().properties().protectionState()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupsTriggerWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupsTriggerWithResponseMockTests.java index 5404011f85f3f..379cdd241d7a5 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupsTriggerWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BackupsTriggerWithResponseMockTests.java @@ -32,10 +32,10 @@ public void testTriggerWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.backups() - .triggerWithResponse("mkekxpkzwaqxo", "qovchiqbp", "vf", "dusztekxby", "gmsfepxyi", - new BackupRequestResource().withLocation("qadagrhr") - .withTags(mapOf("wyjfowxwyovcxjs", "x")) - .withETag("ipcukdveks") + .triggerWithResponse("ikff", "fgkuh", "nwhvuldbkkejj", "jigawgaz", "xjqifhujjsbc", + new BackupRequestResource().withLocation("zaahzbhuroolkoli") + .withTags(mapOf("fjzc", "mojusuz", "kdxkuk", "aaxoialahfxwcc", "vl", "kczynuhhoqeqsh")) + .withETag("k") .withProperties(new BackupRequest()), com.azure.core.util.Context.NONE); diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BmsPrepareDataMoveOperationResultsGetWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BmsPrepareDataMoveOperationResultsGetWithResponseMockTests.java index f8c05a82dd1dd..4a71a52853ade 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BmsPrepareDataMoveOperationResultsGetWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/BmsPrepareDataMoveOperationResultsGetWithResponseMockTests.java @@ -29,7 +29,7 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); VaultStorageConfigOperationResultResponse response = manager.bmsPrepareDataMoveOperationResults() - .getWithResponse("n", "ehokamvfej", "qnttmbq", com.azure.core.util.Context.NONE) + .getWithResponse("mriprlk", "neyttl", "cxiv", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ConfigureSourceScansExecuteMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ConfigureSourceScansExecuteMockTests.java index 41188a5a6766d..90ac8aed35a8c 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ConfigureSourceScansExecuteMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ConfigureSourceScansExecuteMockTests.java @@ -30,8 +30,8 @@ public void testExecute() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.configureSourceScans() - .execute("ggkrehbf", "n", "ybff", "jfiimreoa", "sqtaadusrexxfa", - new ProtectedItemConfigureSourceScanRequest().withSourceScanAction(SourceScanAction.ENABLE), + .execute("zkjthfceyjn", "jmlfuyfjbp", "iddhlrufzc", "yjmqrf", "iocuselqkr", + new ProtectedItemConfigureSourceScanRequest().withSourceScanAction(SourceScanAction.DISABLE), com.azure.core.util.Context.NONE); } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ContainerIdentityInfoTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ContainerIdentityInfoTests.java index 0e5df7d20b0be..12fdd97ceaf0c 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ContainerIdentityInfoTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ContainerIdentityInfoTests.java @@ -12,24 +12,24 @@ public final class ContainerIdentityInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ContainerIdentityInfo model = BinaryData.fromString( - "{\"uniqueName\":\"uayjkqa\",\"aadTenantId\":\"gzslesjcbhernnti\",\"servicePrincipalClientId\":\"djc\",\"audience\":\"quwrbehwag\"}") + "{\"uniqueName\":\"ayzejnhlbkpbz\",\"aadTenantId\":\"piljhahzvech\",\"servicePrincipalClientId\":\"bnwieholew\",\"audience\":\"iuubwefqsf\"}") .toObject(ContainerIdentityInfo.class); - Assertions.assertEquals("uayjkqa", model.uniqueName()); - Assertions.assertEquals("gzslesjcbhernnti", model.aadTenantId()); - Assertions.assertEquals("djc", model.servicePrincipalClientId()); - Assertions.assertEquals("quwrbehwag", model.audience()); + Assertions.assertEquals("ayzejnhlbkpbz", model.uniqueName()); + Assertions.assertEquals("piljhahzvech", model.aadTenantId()); + Assertions.assertEquals("bnwieholew", model.servicePrincipalClientId()); + Assertions.assertEquals("iuubwefqsf", model.audience()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ContainerIdentityInfo model = new ContainerIdentityInfo().withUniqueName("uayjkqa") - .withAadTenantId("gzslesjcbhernnti") - .withServicePrincipalClientId("djc") - .withAudience("quwrbehwag"); + ContainerIdentityInfo model = new ContainerIdentityInfo().withUniqueName("ayzejnhlbkpbz") + .withAadTenantId("piljhahzvech") + .withServicePrincipalClientId("bnwieholew") + .withAudience("iuubwefqsf"); model = BinaryData.fromObject(model).toObject(ContainerIdentityInfo.class); - Assertions.assertEquals("uayjkqa", model.uniqueName()); - Assertions.assertEquals("gzslesjcbhernnti", model.aadTenantId()); - Assertions.assertEquals("djc", model.servicePrincipalClientId()); - Assertions.assertEquals("quwrbehwag", model.audience()); + Assertions.assertEquals("ayzejnhlbkpbz", model.uniqueName()); + Assertions.assertEquals("piljhahzvech", model.aadTenantId()); + Assertions.assertEquals("bnwieholew", model.servicePrincipalClientId()); + Assertions.assertEquals("iuubwefqsf", model.audience()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DailyRetentionFormatTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DailyRetentionFormatTests.java index e988b1522f24a..fa52c06506b8d 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DailyRetentionFormatTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DailyRetentionFormatTests.java @@ -14,18 +14,18 @@ public final class DailyRetentionFormatTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DailyRetentionFormat model - = BinaryData.fromString("{\"daysOfTheMonth\":[{\"date\":2002912568,\"isLast\":false}]}") + = BinaryData.fromString("{\"daysOfTheMonth\":[{\"date\":1201558438,\"isLast\":true}]}") .toObject(DailyRetentionFormat.class); - Assertions.assertEquals(2002912568, model.daysOfTheMonth().get(0).date()); - Assertions.assertFalse(model.daysOfTheMonth().get(0).isLast()); + Assertions.assertEquals(1201558438, model.daysOfTheMonth().get(0).date()); + Assertions.assertTrue(model.daysOfTheMonth().get(0).isLast()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { DailyRetentionFormat model = new DailyRetentionFormat() - .withDaysOfTheMonth(Arrays.asList(new Day().withDate(2002912568).withIsLast(false))); + .withDaysOfTheMonth(Arrays.asList(new Day().withDate(1201558438).withIsLast(true))); model = BinaryData.fromObject(model).toObject(DailyRetentionFormat.class); - Assertions.assertEquals(2002912568, model.daysOfTheMonth().get(0).date()); - Assertions.assertFalse(model.daysOfTheMonth().get(0).isLast()); + Assertions.assertEquals(1201558438, model.daysOfTheMonth().get(0).date()); + Assertions.assertTrue(model.daysOfTheMonth().get(0).isLast()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DailyRetentionScheduleTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DailyRetentionScheduleTests.java index 0a459b468484a..93825f7d29a91 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DailyRetentionScheduleTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DailyRetentionScheduleTests.java @@ -16,23 +16,23 @@ public final class DailyRetentionScheduleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DailyRetentionSchedule model = BinaryData.fromString( - "{\"retentionTimes\":[\"2021-05-10T17:16:55Z\",\"2021-11-26T09:48:43Z\",\"2021-03-26T02:38:58Z\"],\"retentionDuration\":{\"count\":1806194501,\"durationType\":\"Days\"}}") + "{\"retentionTimes\":[\"2021-06-03T23:18:21Z\",\"2021-01-03T15:04:02Z\"],\"retentionDuration\":{\"count\":771009244,\"durationType\":\"Days\"}}") .toObject(DailyRetentionSchedule.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-10T17:16:55Z"), model.retentionTimes().get(0)); - Assertions.assertEquals(1806194501, model.retentionDuration().count()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-03T23:18:21Z"), model.retentionTimes().get(0)); + Assertions.assertEquals(771009244, model.retentionDuration().count()); Assertions.assertEquals(RetentionDurationType.DAYS, model.retentionDuration().durationType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { DailyRetentionSchedule model = new DailyRetentionSchedule() - .withRetentionTimes(Arrays.asList(OffsetDateTime.parse("2021-05-10T17:16:55Z"), - OffsetDateTime.parse("2021-11-26T09:48:43Z"), OffsetDateTime.parse("2021-03-26T02:38:58Z"))) + .withRetentionTimes(Arrays.asList(OffsetDateTime.parse("2021-06-03T23:18:21Z"), + OffsetDateTime.parse("2021-01-03T15:04:02Z"))) .withRetentionDuration( - new RetentionDuration().withCount(1806194501).withDurationType(RetentionDurationType.DAYS)); + new RetentionDuration().withCount(771009244).withDurationType(RetentionDurationType.DAYS)); model = BinaryData.fromObject(model).toObject(DailyRetentionSchedule.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-10T17:16:55Z"), model.retentionTimes().get(0)); - Assertions.assertEquals(1806194501, model.retentionDuration().count()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-03T23:18:21Z"), model.retentionTimes().get(0)); + Assertions.assertEquals(771009244, model.retentionDuration().count()); Assertions.assertEquals(RetentionDurationType.DAYS, model.retentionDuration().durationType()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DailyScheduleTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DailyScheduleTests.java index 62b2c2359c928..ba74b484c5350 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DailyScheduleTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DailyScheduleTests.java @@ -14,15 +14,15 @@ public final class DailyScheduleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DailySchedule model - = BinaryData.fromString("{\"scheduleRunTimes\":[\"2021-01-14T01:37:16Z\"]}").toObject(DailySchedule.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-14T01:37:16Z"), model.scheduleRunTimes().get(0)); + = BinaryData.fromString("{\"scheduleRunTimes\":[\"2021-11-10T20:47:35Z\"]}").toObject(DailySchedule.class); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-10T20:47:35Z"), model.scheduleRunTimes().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { DailySchedule model - = new DailySchedule().withScheduleRunTimes(Arrays.asList(OffsetDateTime.parse("2021-01-14T01:37:16Z"))); + = new DailySchedule().withScheduleRunTimes(Arrays.asList(OffsetDateTime.parse("2021-11-10T20:47:35Z"))); model = BinaryData.fromObject(model).toObject(DailySchedule.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-14T01:37:16Z"), model.scheduleRunTimes().get(0)); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-10T20:47:35Z"), model.scheduleRunTimes().get(0)); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DataDiskDetailsTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DataDiskDetailsTests.java index c47b3a2f6426d..d1ea4bbfae88c 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DataDiskDetailsTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DataDiskDetailsTests.java @@ -11,10 +11,10 @@ public final class DataDiskDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - DataDiskDetails model = BinaryData.fromString( - "{\"encryptedDataDisks\":[{\"lun\":642411394,\"diskName\":\"htjsying\"},{\"lun\":973548614,\"diskName\":\"tmtdhtmdvypgik\"}]}") - .toObject(DataDiskDetails.class); - Assertions.assertEquals(642411394, model.encryptedDataDisks().get(0).lun()); - Assertions.assertEquals("htjsying", model.encryptedDataDisks().get(0).diskName()); + DataDiskDetails model + = BinaryData.fromString("{\"encryptedDataDisks\":[{\"lun\":1714425112,\"diskName\":\"dlpagzrcxfail\"}]}") + .toObject(DataDiskDetails.class); + Assertions.assertEquals(1714425112, model.encryptedDataDisks().get(0).lun()); + Assertions.assertEquals("dlpagzrcxfail", model.encryptedDataDisks().get(0).diskName()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DataDiskEncryptionSettingsTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DataDiskEncryptionSettingsTests.java index 1069cc7195057..6842e82e5bbca 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DataDiskEncryptionSettingsTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DataDiskEncryptionSettingsTests.java @@ -14,28 +14,28 @@ public final class DataDiskEncryptionSettingsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DataDiskEncryptionSettings model = BinaryData.fromString( - "{\"perDiskEncryptionSetIds\":[{\"lun\":1418005039,\"diskEncryptionSetId\":\"iqxeiiqbimht\"},{\"lun\":431144085,\"diskEncryptionSetId\":\"nhe\"},{\"lun\":1960691367,\"diskEncryptionSetId\":\"ofvwbcb\"},{\"lun\":1104394000,\"diskEncryptionSetId\":\"nkbwvqv\"}],\"dataDiskEncryptionSetId\":\"divqi\",\"dataDiskEncryptionIdentity\":\"b\"}") + "{\"perDiskEncryptionSetIds\":[{\"lun\":2136861734,\"diskEncryptionSetId\":\"ahmrnadzyqegxyi\"},{\"lun\":1088320198,\"diskEncryptionSetId\":\"bmh\"},{\"lun\":1256665778,\"diskEncryptionSetId\":\"jkgqxnhmbkez\"},{\"lun\":1549446879,\"diskEncryptionSetId\":\"jvaannggiycwkd\"}],\"dataDiskEncryptionSetId\":\"awxwfek\",\"dataDiskEncryptionIdentity\":\"mrrqmbzmqkratb\"}") .toObject(DataDiskEncryptionSettings.class); - Assertions.assertEquals(1418005039, model.perDiskEncryptionSetIds().get(0).lun()); - Assertions.assertEquals("iqxeiiqbimht", model.perDiskEncryptionSetIds().get(0).diskEncryptionSetId()); - Assertions.assertEquals("divqi", model.dataDiskEncryptionSetId()); - Assertions.assertEquals("b", model.dataDiskEncryptionIdentity()); + Assertions.assertEquals(2136861734, model.perDiskEncryptionSetIds().get(0).lun()); + Assertions.assertEquals("ahmrnadzyqegxyi", model.perDiskEncryptionSetIds().get(0).diskEncryptionSetId()); + Assertions.assertEquals("awxwfek", model.dataDiskEncryptionSetId()); + Assertions.assertEquals("mrrqmbzmqkratb", model.dataDiskEncryptionIdentity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { DataDiskEncryptionSettings model = new DataDiskEncryptionSettings() - .withPerDiskEncryptionSetIds( - Arrays.asList(new PerDiskEncryptionSetId().withLun(1418005039).withDiskEncryptionSetId("iqxeiiqbimht"), - new PerDiskEncryptionSetId().withLun(431144085).withDiskEncryptionSetId("nhe"), - new PerDiskEncryptionSetId().withLun(1960691367).withDiskEncryptionSetId("ofvwbcb"), - new PerDiskEncryptionSetId().withLun(1104394000).withDiskEncryptionSetId("nkbwvqv"))) - .withDataDiskEncryptionSetId("divqi") - .withDataDiskEncryptionIdentity("b"); + .withPerDiskEncryptionSetIds(Arrays.asList( + new PerDiskEncryptionSetId().withLun(2136861734).withDiskEncryptionSetId("ahmrnadzyqegxyi"), + new PerDiskEncryptionSetId().withLun(1088320198).withDiskEncryptionSetId("bmh"), + new PerDiskEncryptionSetId().withLun(1256665778).withDiskEncryptionSetId("jkgqxnhmbkez"), + new PerDiskEncryptionSetId().withLun(1549446879).withDiskEncryptionSetId("jvaannggiycwkd"))) + .withDataDiskEncryptionSetId("awxwfek") + .withDataDiskEncryptionIdentity("mrrqmbzmqkratb"); model = BinaryData.fromObject(model).toObject(DataDiskEncryptionSettings.class); - Assertions.assertEquals(1418005039, model.perDiskEncryptionSetIds().get(0).lun()); - Assertions.assertEquals("iqxeiiqbimht", model.perDiskEncryptionSetIds().get(0).diskEncryptionSetId()); - Assertions.assertEquals("divqi", model.dataDiskEncryptionSetId()); - Assertions.assertEquals("b", model.dataDiskEncryptionIdentity()); + Assertions.assertEquals(2136861734, model.perDiskEncryptionSetIds().get(0).lun()); + Assertions.assertEquals("ahmrnadzyqegxyi", model.perDiskEncryptionSetIds().get(0).diskEncryptionSetId()); + Assertions.assertEquals("awxwfek", model.dataDiskEncryptionSetId()); + Assertions.assertEquals("mrrqmbzmqkratb", model.dataDiskEncryptionIdentity()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DatabaseInRPTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DatabaseInRPTests.java new file mode 100644 index 0000000000000..865dcbe6e05a5 --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DatabaseInRPTests.java @@ -0,0 +1,19 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.recoveryservicesbackup.models.DatabaseInRP; +import org.junit.jupiter.api.Assertions; + +public final class DatabaseInRPTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + DatabaseInRP model = BinaryData.fromString("{\"datasourceId\":\"uyav\",\"datasourceName\":\"wmn\"}") + .toObject(DatabaseInRP.class); + Assertions.assertEquals("uyav", model.datasourceId()); + Assertions.assertEquals("wmn", model.datasourceName()); + } +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DayTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DayTests.java index 41eeb4de38ffc..a022b5ced64ca 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DayTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DayTests.java @@ -11,16 +11,16 @@ public final class DayTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - Day model = BinaryData.fromString("{\"date\":443725115,\"isLast\":true}").toObject(Day.class); - Assertions.assertEquals(443725115, model.date()); - Assertions.assertTrue(model.isLast()); + Day model = BinaryData.fromString("{\"date\":1025170046,\"isLast\":false}").toObject(Day.class); + Assertions.assertEquals(1025170046, model.date()); + Assertions.assertFalse(model.isLast()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - Day model = new Day().withDate(443725115).withIsLast(true); + Day model = new Day().withDate(1025170046).withIsLast(false); model = BinaryData.fromObject(model).toObject(Day.class); - Assertions.assertEquals(443725115, model.date()); - Assertions.assertTrue(model.isLast()); + Assertions.assertEquals(1025170046, model.date()); + Assertions.assertFalse(model.isLast()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DeletedProtectionContainersListMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DeletedProtectionContainersListMockTests.java index af3503887faae..c096203dcc776 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DeletedProtectionContainersListMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DeletedProtectionContainersListMockTests.java @@ -23,7 +23,7 @@ public final class DeletedProtectionContainersListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"containerType\":\"ProtectionContainer\",\"friendlyName\":\"neychbjizq\",\"backupManagementType\":\"MAB\",\"registrationStatus\":\"w\",\"healthStatus\":\"zed\",\"protectableObjectType\":\"l\",\"sourceLocation\":\"borx\"},\"tags\":{\"rbypi\":\"lnfyzav\",\"jtaqhsmqazpdg\":\"dbkp\"},\"location\":\"jhxsht\",\"eTag\":\"gpczqulptk\",\"id\":\"cpxtzhigqqbt\",\"name\":\"mpkjblornsihqh\",\"type\":\"dsmusuaawjakxwj\"}]}"; + = "{\"value\":[{\"properties\":{\"containerType\":\"ProtectionContainer\",\"friendlyName\":\"sswoykdnona\",\"backupManagementType\":\"AzureWorkload\",\"registrationStatus\":\"gzrujlqc\",\"healthStatus\":\"ynlleiqbcbgvsbts\",\"protectableObjectType\":\"toxadhxuvjhxmnr\",\"sourceLocation\":\"tjc\"},\"tags\":{\"dhgjnaqyqi\":\"wmlgicvnpv\",\"vcdsvm\":\"slz\"},\"location\":\"itekdtfobvfiyb\",\"eTag\":\"ich\",\"id\":\"bfzdqekiv\",\"name\":\"cpzcvdizul\",\"type\":\"qtbhtr\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,16 +33,16 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.deletedProtectionContainers() - .list("zbwaybfmdafbgym", "tn", "preojxrjnbsconxa", com.azure.core.util.Context.NONE); + .list("iigz", "kuckgkdskswtiiq", "cqikclsm", com.azure.core.util.Context.NONE); - Assertions.assertEquals("neychbjizq", response.iterator().next().properties().friendlyName()); - Assertions.assertEquals(BackupManagementType.MAB, + Assertions.assertEquals("sswoykdnona", response.iterator().next().properties().friendlyName()); + Assertions.assertEquals(BackupManagementType.AZURE_WORKLOAD, response.iterator().next().properties().backupManagementType()); - Assertions.assertEquals("w", response.iterator().next().properties().registrationStatus()); - Assertions.assertEquals("zed", response.iterator().next().properties().healthStatus()); - Assertions.assertEquals("l", response.iterator().next().properties().protectableObjectType()); - Assertions.assertEquals("lnfyzav", response.iterator().next().tags().get("rbypi")); - Assertions.assertEquals("jhxsht", response.iterator().next().location()); - Assertions.assertEquals("gpczqulptk", response.iterator().next().etag()); + Assertions.assertEquals("gzrujlqc", response.iterator().next().properties().registrationStatus()); + Assertions.assertEquals("ynlleiqbcbgvsbts", response.iterator().next().properties().healthStatus()); + Assertions.assertEquals("toxadhxuvjhxmnr", response.iterator().next().properties().protectableObjectType()); + Assertions.assertEquals("wmlgicvnpv", response.iterator().next().tags().get("dhgjnaqyqi")); + Assertions.assertEquals("itekdtfobvfiyb", response.iterator().next().location()); + Assertions.assertEquals("ich", response.iterator().next().etag()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DiskDetailsTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DiskDetailsTests.java index 49c78ab1f1c0b..7c18512f3f7d4 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DiskDetailsTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DiskDetailsTests.java @@ -11,9 +11,9 @@ public final class DiskDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - DiskDetails model = BinaryData.fromString("{\"lun\":624157964,\"diskName\":\"ywkbirryuzhlhkjo\"}") - .toObject(DiskDetails.class); - Assertions.assertEquals(624157964, model.lun()); - Assertions.assertEquals("ywkbirryuzhlhkjo", model.diskName()); + DiskDetails model + = BinaryData.fromString("{\"lun\":2134277506,\"diskName\":\"m\"}").toObject(DiskDetails.class); + Assertions.assertEquals(2134277506, model.lun()); + Assertions.assertEquals("m", model.diskName()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DiskInfoTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DiskInfoTests.java new file mode 100644 index 0000000000000..aebc350e80e0d --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DiskInfoTests.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.recoveryservicesbackup.models.DiskInfo; +import org.junit.jupiter.api.Assertions; + +public final class DiskInfoTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + DiskInfo model = BinaryData.fromString( + "{\"diskNumber\":1717283486,\"diskUniqueId\":\"v\",\"diskGuid\":\"qvlgafcqusrdvetn\",\"diskLocation\":\"dtutnwldu\",\"sizeInBytes\":6613508255547335147,\"friendlyName\":\"hyrmewipmvekdx\",\"lun\":1124949924,\"managedDiskId\":\"gsjj\"}") + .toObject(DiskInfo.class); + Assertions.assertEquals(1717283486, model.diskNumber()); + Assertions.assertEquals("v", model.diskUniqueId()); + Assertions.assertEquals("qvlgafcqusrdvetn", model.diskGuid()); + Assertions.assertEquals("dtutnwldu", model.diskLocation()); + Assertions.assertEquals(6613508255547335147L, model.sizeInBytes()); + Assertions.assertEquals("hyrmewipmvekdx", model.friendlyName()); + Assertions.assertEquals(1124949924, model.lun()); + Assertions.assertEquals("gsjj", model.managedDiskId()); + } +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DiskInformationTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DiskInformationTests.java index f4ebf93613aad..2965eb48e27ac 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DiskInformationTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DiskInformationTests.java @@ -11,9 +11,12 @@ public final class DiskInformationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - DiskInformation model - = BinaryData.fromString("{\"lun\":1181848977,\"name\":\"qwkyhkobop\"}").toObject(DiskInformation.class); - Assertions.assertEquals(1181848977, model.lun()); - Assertions.assertEquals("qwkyhkobop", model.name()); + DiskInformation model = BinaryData.fromString( + "{\"lun\":1119410287,\"name\":\"glecdmdqbwpypq\",\"diskSizeInGb\":543854908,\"storageType\":\"jacbslhhxudbxvod\"}") + .toObject(DiskInformation.class); + Assertions.assertEquals(1119410287, model.lun()); + Assertions.assertEquals("glecdmdqbwpypq", model.name()); + Assertions.assertEquals(543854908, model.diskSizeInGb()); + Assertions.assertEquals("jacbslhhxudbxvod", model.storageType()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DpmBackupEngineTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DpmBackupEngineTests.java index bde4f0bd8c70b..7f34cb6303da7 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DpmBackupEngineTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DpmBackupEngineTests.java @@ -14,26 +14,26 @@ public final class DpmBackupEngineTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DpmBackupEngine model = BinaryData.fromString( - "{\"backupEngineType\":\"DpmBackupEngine\",\"friendlyName\":\"xngre\",\"backupManagementType\":\"AzureSql\",\"registrationStatus\":\"ahttzlswvajqfut\",\"backupEngineState\":\"joqza\",\"healthStatus\":\"nwqrjzfrgqh\",\"canReRegister\":true,\"backupEngineId\":\"mbuocnjrohmbp\",\"dpmVersion\":\"yx\",\"azureBackupAgentVersion\":\"eblydyv\",\"isAzureBackupAgentUpgradeAvailable\":false,\"isDpmUpgradeAvailable\":true,\"extendedInfo\":{\"databaseName\":\"xne\",\"protectedItemsCount\":400790615,\"protectedServersCount\":652924557,\"diskCount\":923292321,\"usedDiskSpace\":89.43345062107626,\"availableDiskSpace\":44.06707858450298,\"refreshedAt\":\"2021-04-29T12:09:44Z\",\"azureProtectedInstances\":1496889185}}") + "{\"backupEngineType\":\"DpmBackupEngine\",\"friendlyName\":\"pezkis\",\"backupManagementType\":\"AzureStorage\",\"registrationStatus\":\"dghsy\",\"backupEngineState\":\"ry\",\"healthStatus\":\"ufptb\",\"canReRegister\":false,\"backupEngineId\":\"nciuiyqvldaswvpp\",\"dpmVersion\":\"qqzlgcndhz\",\"azureBackupAgentVersion\":\"rfc\",\"isAzureBackupAgentUpgradeAvailable\":false,\"isDpmUpgradeAvailable\":true,\"extendedInfo\":{\"databaseName\":\"s\",\"protectedItemsCount\":803304782,\"protectedServersCount\":139269436,\"diskCount\":200408465,\"usedDiskSpace\":29.512744423807135,\"availableDiskSpace\":26.025746491540357,\"refreshedAt\":\"2021-05-20T14:04:27Z\",\"azureProtectedInstances\":2072400742}}") .toObject(DpmBackupEngine.class); - Assertions.assertEquals("xngre", model.friendlyName()); - Assertions.assertEquals(BackupManagementType.AZURE_SQL, model.backupManagementType()); - Assertions.assertEquals("ahttzlswvajqfut", model.registrationStatus()); - Assertions.assertEquals("joqza", model.backupEngineState()); - Assertions.assertEquals("nwqrjzfrgqh", model.healthStatus()); - Assertions.assertTrue(model.canReRegister()); - Assertions.assertEquals("mbuocnjrohmbp", model.backupEngineId()); - Assertions.assertEquals("yx", model.dpmVersion()); - Assertions.assertEquals("eblydyv", model.azureBackupAgentVersion()); + Assertions.assertEquals("pezkis", model.friendlyName()); + Assertions.assertEquals(BackupManagementType.AZURE_STORAGE, model.backupManagementType()); + Assertions.assertEquals("dghsy", model.registrationStatus()); + Assertions.assertEquals("ry", model.backupEngineState()); + Assertions.assertEquals("ufptb", model.healthStatus()); + Assertions.assertFalse(model.canReRegister()); + Assertions.assertEquals("nciuiyqvldaswvpp", model.backupEngineId()); + Assertions.assertEquals("qqzlgcndhz", model.dpmVersion()); + Assertions.assertEquals("rfc", model.azureBackupAgentVersion()); Assertions.assertFalse(model.isAzureBackupAgentUpgradeAvailable()); Assertions.assertTrue(model.isDpmUpgradeAvailable()); - Assertions.assertEquals("xne", model.extendedInfo().databaseName()); - Assertions.assertEquals(400790615, model.extendedInfo().protectedItemsCount()); - Assertions.assertEquals(652924557, model.extendedInfo().protectedServersCount()); - Assertions.assertEquals(923292321, model.extendedInfo().diskCount()); - Assertions.assertEquals(89.43345062107626D, model.extendedInfo().usedDiskSpace()); - Assertions.assertEquals(44.06707858450298D, model.extendedInfo().availableDiskSpace()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-29T12:09:44Z"), model.extendedInfo().refreshedAt()); - Assertions.assertEquals(1496889185, model.extendedInfo().azureProtectedInstances()); + Assertions.assertEquals("s", model.extendedInfo().databaseName()); + Assertions.assertEquals(803304782, model.extendedInfo().protectedItemsCount()); + Assertions.assertEquals(139269436, model.extendedInfo().protectedServersCount()); + Assertions.assertEquals(200408465, model.extendedInfo().diskCount()); + Assertions.assertEquals(29.512744423807135D, model.extendedInfo().usedDiskSpace()); + Assertions.assertEquals(26.025746491540357D, model.extendedInfo().availableDiskSpace()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-20T14:04:27Z"), model.extendedInfo().refreshedAt()); + Assertions.assertEquals(2072400742, model.extendedInfo().azureProtectedInstances()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DpmContainerExtendedInfoTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DpmContainerExtendedInfoTests.java index e756ef2ee3eef..2258738b21fcc 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DpmContainerExtendedInfoTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DpmContainerExtendedInfoTests.java @@ -12,16 +12,16 @@ public final class DpmContainerExtendedInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - DpmContainerExtendedInfo model = BinaryData.fromString("{\"lastRefreshedAt\":\"2021-04-16T19:38:50Z\"}") + DpmContainerExtendedInfo model = BinaryData.fromString("{\"lastRefreshedAt\":\"2021-08-09T17:56:40Z\"}") .toObject(DpmContainerExtendedInfo.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-16T19:38:50Z"), model.lastRefreshedAt()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-09T17:56:40Z"), model.lastRefreshedAt()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { DpmContainerExtendedInfo model - = new DpmContainerExtendedInfo().withLastRefreshedAt(OffsetDateTime.parse("2021-04-16T19:38:50Z")); + = new DpmContainerExtendedInfo().withLastRefreshedAt(OffsetDateTime.parse("2021-08-09T17:56:40Z")); model = BinaryData.fromObject(model).toObject(DpmContainerExtendedInfo.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-16T19:38:50Z"), model.lastRefreshedAt()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-09T17:56:40Z"), model.lastRefreshedAt()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DpmContainerTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DpmContainerTests.java index ce864e2ccc532..8cf6c758deef1 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DpmContainerTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DpmContainerTests.java @@ -16,52 +16,52 @@ public final class DpmContainerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DpmContainer model = BinaryData.fromString( - "{\"containerType\":\"DPMContainer\",\"canReRegister\":false,\"containerId\":\"jihy\",\"protectedItemCount\":4159702080316838891,\"dpmAgentVersion\":\"vwau\",\"dpmServers\":[\"c\"],\"upgradeAvailable\":true,\"protectionStatus\":\"kvi\",\"extendedInfo\":{\"lastRefreshedAt\":\"2021-05-01T10:24:09Z\"},\"friendlyName\":\"wx\",\"backupManagementType\":\"MAB\",\"registrationStatus\":\"vzhfstotxhoj\",\"healthStatus\":\"bypel\",\"protectableObjectType\":\"uvhixbjxyfwn\",\"sourceLocation\":\"r\"}") + "{\"containerType\":\"DPMContainer\",\"canReRegister\":false,\"containerId\":\"ylw\",\"protectedItemCount\":4021129053674716546,\"dpmAgentVersion\":\"mweoohgu\",\"dpmServers\":[\"zboyjathwt\",\"olbaemwmdx\",\"ebwjscjpahlxvea\"],\"upgradeAvailable\":false,\"protectionStatus\":\"nmwmqtibx\",\"extendedInfo\":{\"lastRefreshedAt\":\"2020-12-25T19:20:35Z\"},\"friendlyName\":\"tvqcttadijaeu\",\"backupManagementType\":\"AzureBackupServer\",\"registrationStatus\":\"ieekpndzaa\",\"healthStatus\":\"udqmeqwigpibudq\",\"protectableObjectType\":\"xebeybpmz\",\"sourceLocation\":\"rtffyaqitmh\"}") .toObject(DpmContainer.class); - Assertions.assertEquals("wx", model.friendlyName()); - Assertions.assertEquals(BackupManagementType.MAB, model.backupManagementType()); - Assertions.assertEquals("vzhfstotxhoj", model.registrationStatus()); - Assertions.assertEquals("bypel", model.healthStatus()); - Assertions.assertEquals("uvhixbjxyfwn", model.protectableObjectType()); + Assertions.assertEquals("tvqcttadijaeu", model.friendlyName()); + Assertions.assertEquals(BackupManagementType.AZURE_BACKUP_SERVER, model.backupManagementType()); + Assertions.assertEquals("ieekpndzaa", model.registrationStatus()); + Assertions.assertEquals("udqmeqwigpibudq", model.healthStatus()); + Assertions.assertEquals("xebeybpmz", model.protectableObjectType()); Assertions.assertFalse(model.canReRegister()); - Assertions.assertEquals("jihy", model.containerId()); - Assertions.assertEquals(4159702080316838891L, model.protectedItemCount()); - Assertions.assertEquals("vwau", model.dpmAgentVersion()); - Assertions.assertEquals("c", model.dpmServers().get(0)); - Assertions.assertTrue(model.upgradeAvailable()); - Assertions.assertEquals("kvi", model.protectionStatus()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-01T10:24:09Z"), model.extendedInfo().lastRefreshedAt()); + Assertions.assertEquals("ylw", model.containerId()); + Assertions.assertEquals(4021129053674716546L, model.protectedItemCount()); + Assertions.assertEquals("mweoohgu", model.dpmAgentVersion()); + Assertions.assertEquals("zboyjathwt", model.dpmServers().get(0)); + Assertions.assertFalse(model.upgradeAvailable()); + Assertions.assertEquals("nmwmqtibx", model.protectionStatus()); + Assertions.assertEquals(OffsetDateTime.parse("2020-12-25T19:20:35Z"), model.extendedInfo().lastRefreshedAt()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - DpmContainer model = new DpmContainer().withFriendlyName("wx") - .withBackupManagementType(BackupManagementType.MAB) - .withRegistrationStatus("vzhfstotxhoj") - .withHealthStatus("bypel") - .withProtectableObjectType("uvhixbjxyfwn") + DpmContainer model = new DpmContainer().withFriendlyName("tvqcttadijaeu") + .withBackupManagementType(BackupManagementType.AZURE_BACKUP_SERVER) + .withRegistrationStatus("ieekpndzaa") + .withHealthStatus("udqmeqwigpibudq") + .withProtectableObjectType("xebeybpmz") .withCanReRegister(false) - .withContainerId("jihy") - .withProtectedItemCount(4159702080316838891L) - .withDpmAgentVersion("vwau") - .withDpmServers(Arrays.asList("c")) - .withUpgradeAvailable(true) - .withProtectionStatus("kvi") + .withContainerId("ylw") + .withProtectedItemCount(4021129053674716546L) + .withDpmAgentVersion("mweoohgu") + .withDpmServers(Arrays.asList("zboyjathwt", "olbaemwmdx", "ebwjscjpahlxvea")) + .withUpgradeAvailable(false) + .withProtectionStatus("nmwmqtibx") .withExtendedInfo( - new DpmContainerExtendedInfo().withLastRefreshedAt(OffsetDateTime.parse("2021-05-01T10:24:09Z"))); + new DpmContainerExtendedInfo().withLastRefreshedAt(OffsetDateTime.parse("2020-12-25T19:20:35Z"))); model = BinaryData.fromObject(model).toObject(DpmContainer.class); - Assertions.assertEquals("wx", model.friendlyName()); - Assertions.assertEquals(BackupManagementType.MAB, model.backupManagementType()); - Assertions.assertEquals("vzhfstotxhoj", model.registrationStatus()); - Assertions.assertEquals("bypel", model.healthStatus()); - Assertions.assertEquals("uvhixbjxyfwn", model.protectableObjectType()); + Assertions.assertEquals("tvqcttadijaeu", model.friendlyName()); + Assertions.assertEquals(BackupManagementType.AZURE_BACKUP_SERVER, model.backupManagementType()); + Assertions.assertEquals("ieekpndzaa", model.registrationStatus()); + Assertions.assertEquals("udqmeqwigpibudq", model.healthStatus()); + Assertions.assertEquals("xebeybpmz", model.protectableObjectType()); Assertions.assertFalse(model.canReRegister()); - Assertions.assertEquals("jihy", model.containerId()); - Assertions.assertEquals(4159702080316838891L, model.protectedItemCount()); - Assertions.assertEquals("vwau", model.dpmAgentVersion()); - Assertions.assertEquals("c", model.dpmServers().get(0)); - Assertions.assertTrue(model.upgradeAvailable()); - Assertions.assertEquals("kvi", model.protectionStatus()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-01T10:24:09Z"), model.extendedInfo().lastRefreshedAt()); + Assertions.assertEquals("ylw", model.containerId()); + Assertions.assertEquals(4021129053674716546L, model.protectedItemCount()); + Assertions.assertEquals("mweoohgu", model.dpmAgentVersion()); + Assertions.assertEquals("zboyjathwt", model.dpmServers().get(0)); + Assertions.assertFalse(model.upgradeAvailable()); + Assertions.assertEquals("nmwmqtibx", model.protectionStatus()); + Assertions.assertEquals(OffsetDateTime.parse("2020-12-25T19:20:35Z"), model.extendedInfo().lastRefreshedAt()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DpmErrorInfoTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DpmErrorInfoTests.java index f1be2513715bd..0174f2f4d4b69 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DpmErrorInfoTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DpmErrorInfoTests.java @@ -12,9 +12,10 @@ public final class DpmErrorInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DpmErrorInfo model = BinaryData - .fromString("{\"errorString\":\"puuyjucejik\",\"recommendations\":[\"ovvtzejetjkln\",\"ikyju\"]}") + .fromString( + "{\"errorString\":\"blxpkkwjdjodq\",\"recommendations\":[\"incnr\",\"mehllizhceu\",\"oqodkadpp\"]}") .toObject(DpmErrorInfo.class); - Assertions.assertEquals("puuyjucejik", model.errorString()); - Assertions.assertEquals("ovvtzejetjkln", model.recommendations().get(0)); + Assertions.assertEquals("blxpkkwjdjodq", model.errorString()); + Assertions.assertEquals("incnr", model.recommendations().get(0)); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DpmJobExtendedInfoTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DpmJobExtendedInfoTests.java index 06f0b8c37b7e6..dfbca23c60c76 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DpmJobExtendedInfoTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DpmJobExtendedInfoTests.java @@ -14,14 +14,14 @@ public final class DpmJobExtendedInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DpmJobExtendedInfo model = BinaryData.fromString( - "{\"tasksList\":[{\"taskId\":\"qzolxrzvhqjw\",\"startTime\":\"2021-07-14T15:45:07Z\",\"endTime\":\"2021-08-23T13:19:33Z\",\"duration\":\"PT123H28M9S\",\"status\":\"pcrrk\"},{\"taskId\":\"awjmjsmw\",\"startTime\":\"2021-10-23T02:20:32Z\",\"endTime\":\"2021-02-20T09:03:30Z\",\"duration\":\"PT118H59M15S\",\"status\":\"zz\"},{\"taskId\":\"jafi\",\"startTime\":\"2021-11-07T06:40:11Z\",\"endTime\":\"2021-12-08T12:52:22Z\",\"duration\":\"PT18H57M38S\",\"status\":\"chl\"},{\"taskId\":\"ltxdwhmozu\",\"startTime\":\"2021-08-26T16:53:30Z\",\"endTime\":\"2021-07-12T17:26:51Z\",\"duration\":\"PT220H8M29S\",\"status\":\"nj\"}],\"propertyBag\":{\"gdphtvdula\":\"afolpymwamxqzrag\",\"jchcsrlzknmzla\":\"vl\"},\"dynamicErrorMessage\":\"updwv\"}") + "{\"tasksList\":[{\"taskId\":\"gqladywrxwhyd\",\"startTime\":\"2021-05-20T20:32:11Z\",\"endTime\":\"2020-12-26T10:13:09Z\",\"duration\":\"PT136H43M8S\",\"status\":\"wzsnuy\"},{\"taskId\":\"lowuowhlxlnwyr\",\"startTime\":\"2021-03-01T09:11:48Z\",\"endTime\":\"2021-07-31T20:27:25Z\",\"duration\":\"PT85H57M41S\",\"status\":\"okzkltr\"},{\"taskId\":\"wtdvrfmvli\",\"startTime\":\"2021-02-07T03:05:10Z\",\"endTime\":\"2021-01-23T14:20:19Z\",\"duration\":\"PT137H3M33S\",\"status\":\"rjidhftukvhdxl\"}],\"propertyBag\":{\"njyixh\":\"jbfqzdk\"},\"dynamicErrorMessage\":\"ratqxmbjro\"}") .toObject(DpmJobExtendedInfo.class); - Assertions.assertEquals("qzolxrzvhqjw", model.tasksList().get(0).taskId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-14T15:45:07Z"), model.tasksList().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-23T13:19:33Z"), model.tasksList().get(0).endTime()); - Assertions.assertEquals(Duration.parse("PT123H28M9S"), model.tasksList().get(0).duration()); - Assertions.assertEquals("pcrrk", model.tasksList().get(0).status()); - Assertions.assertEquals("afolpymwamxqzrag", model.propertyBag().get("gdphtvdula")); - Assertions.assertEquals("updwv", model.dynamicErrorMessage()); + Assertions.assertEquals("gqladywrxwhyd", model.tasksList().get(0).taskId()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-20T20:32:11Z"), model.tasksList().get(0).startTime()); + Assertions.assertEquals(OffsetDateTime.parse("2020-12-26T10:13:09Z"), model.tasksList().get(0).endTime()); + Assertions.assertEquals(Duration.parse("PT136H43M8S"), model.tasksList().get(0).duration()); + Assertions.assertEquals("wzsnuy", model.tasksList().get(0).status()); + Assertions.assertEquals("jbfqzdk", model.propertyBag().get("njyixh")); + Assertions.assertEquals("ratqxmbjro", model.dynamicErrorMessage()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DpmJobTaskDetailsTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DpmJobTaskDetailsTests.java index 01bc1ef7b7977..ce666f1926f54 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DpmJobTaskDetailsTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DpmJobTaskDetailsTests.java @@ -14,12 +14,12 @@ public final class DpmJobTaskDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DpmJobTaskDetails model = BinaryData.fromString( - "{\"taskId\":\"hcnzqt\",\"startTime\":\"2021-11-05T10:32:57Z\",\"endTime\":\"2021-03-15T04:35:14Z\",\"duration\":\"PT9H2M51S\",\"status\":\"thlaiwdcxs\"}") + "{\"taskId\":\"zznval\",\"startTime\":\"2021-07-19T11:38:47Z\",\"endTime\":\"2021-03-09T16:04:05Z\",\"duration\":\"PT53H46M23S\",\"status\":\"xonjtpusl\"}") .toObject(DpmJobTaskDetails.class); - Assertions.assertEquals("hcnzqt", model.taskId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-05T10:32:57Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-15T04:35:14Z"), model.endTime()); - Assertions.assertEquals(Duration.parse("PT9H2M51S"), model.duration()); - Assertions.assertEquals("thlaiwdcxs", model.status()); + Assertions.assertEquals("zznval", model.taskId()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-19T11:38:47Z"), model.startTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-09T16:04:05Z"), model.endTime()); + Assertions.assertEquals(Duration.parse("PT53H46M23S"), model.duration()); + Assertions.assertEquals("xonjtpusl", model.status()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DpmJobTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DpmJobTests.java index a483accc8c750..9ec222fc7a76c 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DpmJobTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DpmJobTests.java @@ -16,31 +16,31 @@ public final class DpmJobTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DpmJob model = BinaryData.fromString( - "{\"jobType\":\"DpmJob\",\"duration\":\"PT113H38M54S\",\"dpmServerName\":\"wlkjxn\",\"containerName\":\"vwgf\",\"containerType\":\"mhqykizmdksa\",\"workloadType\":\"fcluqvo\",\"actionsInfo\":[\"Invalid\",\"Retriable\",\"Cancellable\",\"Invalid\"],\"errorDetails\":[{\"errorString\":\"wgcwwpbmzgwesyds\",\"recommendations\":[\"fo\"]},{\"errorString\":\"cbvopwndyqleallk\",\"recommendations\":[\"khlowkxxpv\",\"rdfjmzsyzfhotl\",\"ikcyyc\",\"unsjlpjrtwszhvvu\"]},{\"errorString\":\"phvtrrmhwrb\",\"recommendations\":[\"yflubhvjglroc\"]},{\"errorString\":\"zlwhhmemhooclu\",\"recommendations\":[\"qmemc\",\"jk\"]}],\"extendedInfo\":{\"tasksList\":[{\"taskId\":\"ujxsglhsr\",\"startTime\":\"2021-02-14T15:52:33Z\",\"endTime\":\"2021-05-24T09:57:26Z\",\"duration\":\"PT228H19M6S\",\"status\":\"bkzudnigrfihot\"},{\"taskId\":\"wlpxuzzjg\",\"startTime\":\"2021-05-28T23:16:03Z\",\"endTime\":\"2021-11-27T19:58:41Z\",\"duration\":\"PT59H58M38S\",\"status\":\"otoihiqa\"},{\"taskId\":\"diw\",\"startTime\":\"2021-01-20T19:06:21Z\",\"endTime\":\"2021-01-24T08:46:06Z\",\"duration\":\"PT209H59M5S\",\"status\":\"qtvhcspodaqax\"},{\"taskId\":\"pie\",\"startTime\":\"2021-03-19T15:50:38Z\",\"endTime\":\"2021-08-18T13:12:40Z\",\"duration\":\"PT225H55M5S\",\"status\":\"lbmoichd\"}],\"propertyBag\":{\"iqsowsaaelc\":\"fpubntnbatz\",\"mjvlgfgg\":\"ttcjuhplrvkmjc\",\"sfuztlvtmv\":\"vkyylizrzbjpsf\"},\"dynamicErrorMessage\":\"bwidql\"},\"entityFriendlyName\":\"ukoveofi\",\"backupManagementType\":\"AzureBackupServer\",\"operation\":\"f\",\"status\":\"jmvl\",\"startTime\":\"2021-02-22T09:15:02Z\",\"endTime\":\"2021-08-27T08:55:36Z\",\"activityId\":\"lkujrllfojui\"}") + "{\"jobType\":\"DpmJob\",\"duration\":\"PT134H44M33S\",\"dpmServerName\":\"ub\",\"containerName\":\"qfblhkalehpa\",\"containerType\":\"wugiqjti\",\"workloadType\":\"qgdm\",\"actionsInfo\":[\"Cancellable\"],\"errorDetails\":[{\"errorString\":\"aj\",\"recommendations\":[\"ygspnbonhpczykm\",\"tp\",\"wxqcsehchkhufmpq\",\"mqyjgy\"]},{\"errorString\":\"ulodsaeuzanhsfnh\",\"recommendations\":[\"wphpzfngqj\"]},{\"errorString\":\"idftujwjjufwbe\",\"recommendations\":[\"uorhtssruqnmdvh\"]}],\"extendedInfo\":{\"tasksList\":[{\"taskId\":\"ytiq\",\"startTime\":\"2021-07-30T02:43:12Z\",\"endTime\":\"2021-10-25T14:43:32Z\",\"duration\":\"PT13H41M23S\",\"status\":\"xiytxtdgukvl\"},{\"taskId\":\"ktg\",\"startTime\":\"2021-12-09T14:14:50Z\",\"endTime\":\"2021-05-30T19:44:42Z\",\"duration\":\"PT125H15M8S\",\"status\":\"bewreswmowegmmut\"},{\"taskId\":\"xeyg\",\"startTime\":\"2021-05-17T10:49:14Z\",\"endTime\":\"2021-02-05T10:08:20Z\",\"duration\":\"PT86H10M57S\",\"status\":\"tnspxlzdesygri\"}],\"propertyBag\":{\"aybfu\":\"iufan\"},\"dynamicErrorMessage\":\"frojsydgr\"},\"entityFriendlyName\":\"dkygywezski\",\"backupManagementType\":\"DefaultBackup\",\"operation\":\"ygzmxieqvdsmak\",\"status\":\"xq\",\"startTime\":\"2020-12-29T07:22:58Z\",\"endTime\":\"2021-07-17T22:01:48Z\",\"activityId\":\"alybxawoijpo\"}") .toObject(DpmJob.class); - Assertions.assertEquals("ukoveofi", model.entityFriendlyName()); - Assertions.assertEquals(BackupManagementType.AZURE_BACKUP_SERVER, model.backupManagementType()); - Assertions.assertEquals("f", model.operation()); - Assertions.assertEquals("jmvl", model.status()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-22T09:15:02Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-27T08:55:36Z"), model.endTime()); - Assertions.assertEquals("lkujrllfojui", model.activityId()); - Assertions.assertEquals(Duration.parse("PT113H38M54S"), model.duration()); - Assertions.assertEquals("wlkjxn", model.dpmServerName()); - Assertions.assertEquals("vwgf", model.containerName()); - Assertions.assertEquals("mhqykizmdksa", model.containerType()); - Assertions.assertEquals("fcluqvo", model.workloadType()); - Assertions.assertEquals(JobSupportedAction.INVALID, model.actionsInfo().get(0)); - Assertions.assertEquals("wgcwwpbmzgwesyds", model.errorDetails().get(0).errorString()); - Assertions.assertEquals("fo", model.errorDetails().get(0).recommendations().get(0)); - Assertions.assertEquals("ujxsglhsr", model.extendedInfo().tasksList().get(0).taskId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-14T15:52:33Z"), + Assertions.assertEquals("dkygywezski", model.entityFriendlyName()); + Assertions.assertEquals(BackupManagementType.DEFAULT_BACKUP, model.backupManagementType()); + Assertions.assertEquals("ygzmxieqvdsmak", model.operation()); + Assertions.assertEquals("xq", model.status()); + Assertions.assertEquals(OffsetDateTime.parse("2020-12-29T07:22:58Z"), model.startTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-17T22:01:48Z"), model.endTime()); + Assertions.assertEquals("alybxawoijpo", model.activityId()); + Assertions.assertEquals(Duration.parse("PT134H44M33S"), model.duration()); + Assertions.assertEquals("ub", model.dpmServerName()); + Assertions.assertEquals("qfblhkalehpa", model.containerName()); + Assertions.assertEquals("wugiqjti", model.containerType()); + Assertions.assertEquals("qgdm", model.workloadType()); + Assertions.assertEquals(JobSupportedAction.CANCELLABLE, model.actionsInfo().get(0)); + Assertions.assertEquals("aj", model.errorDetails().get(0).errorString()); + Assertions.assertEquals("ygspnbonhpczykm", model.errorDetails().get(0).recommendations().get(0)); + Assertions.assertEquals("ytiq", model.extendedInfo().tasksList().get(0).taskId()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-30T02:43:12Z"), model.extendedInfo().tasksList().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-24T09:57:26Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-10-25T14:43:32Z"), model.extendedInfo().tasksList().get(0).endTime()); - Assertions.assertEquals(Duration.parse("PT228H19M6S"), model.extendedInfo().tasksList().get(0).duration()); - Assertions.assertEquals("bkzudnigrfihot", model.extendedInfo().tasksList().get(0).status()); - Assertions.assertEquals("fpubntnbatz", model.extendedInfo().propertyBag().get("iqsowsaaelc")); - Assertions.assertEquals("bwidql", model.extendedInfo().dynamicErrorMessage()); + Assertions.assertEquals(Duration.parse("PT13H41M23S"), model.extendedInfo().tasksList().get(0).duration()); + Assertions.assertEquals("xiytxtdgukvl", model.extendedInfo().tasksList().get(0).status()); + Assertions.assertEquals("iufan", model.extendedInfo().propertyBag().get("aybfu")); + Assertions.assertEquals("frojsydgr", model.extendedInfo().dynamicErrorMessage()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DpmProtectedItemExtendedInfoTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DpmProtectedItemExtendedInfoTests.java index d09da9a61ded5..be04ca2f9c86a 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DpmProtectedItemExtendedInfoTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DpmProtectedItemExtendedInfoTests.java @@ -15,56 +15,56 @@ public final class DpmProtectedItemExtendedInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DpmProtectedItemExtendedInfo model = BinaryData.fromString( - "{\"protectableObjectLoadPath\":{\"lfktsths\":\"xdbabphlwr\",\"twwrqp\":\"cocmnyyaztt\"},\"protected\":true,\"isPresentOnCloud\":false,\"lastBackupStatus\":\"ywbiexzfeyueax\",\"lastRefreshedAt\":\"2021-05-01T16:37:43Z\",\"oldestRecoveryPoint\":\"2021-10-23T16:09:08Z\",\"recoveryPointCount\":1281560612,\"onPremiseOldestRecoveryPoint\":\"2021-09-09T17:36:53Z\",\"onPremiseLatestRecoveryPoint\":\"2021-10-28T10:03:56Z\",\"onPremiseRecoveryPointCount\":582953019,\"isCollocated\":true,\"protectionGroupName\":\"oxaepd\",\"diskStorageUsedInBytes\":\"jancu\",\"totalDiskStorageSizeInBytes\":\"hdwbavxbniwdjs\"}") + "{\"protectableObjectLoadPath\":{\"bbovplwzbhvgyugu\":\"ctyqik\"},\"protected\":true,\"isPresentOnCloud\":true,\"lastBackupStatus\":\"ss\",\"lastRefreshedAt\":\"2021-06-19T09:22Z\",\"oldestRecoveryPoint\":\"2021-06-09T23:09:46Z\",\"recoveryPointCount\":74448491,\"onPremiseOldestRecoveryPoint\":\"2021-09-14T21:04:43Z\",\"onPremiseLatestRecoveryPoint\":\"2021-01-07T21:55:14Z\",\"onPremiseRecoveryPointCount\":301968900,\"isCollocated\":false,\"protectionGroupName\":\"zkd\",\"diskStorageUsedInBytes\":\"lpvlopw\",\"totalDiskStorageSizeInBytes\":\"ighxpk\"}") .toObject(DpmProtectedItemExtendedInfo.class); - Assertions.assertEquals("xdbabphlwr", model.protectableObjectLoadPath().get("lfktsths")); + Assertions.assertEquals("ctyqik", model.protectableObjectLoadPath().get("bbovplwzbhvgyugu")); Assertions.assertTrue(model.protectedProperty()); - Assertions.assertFalse(model.isPresentOnCloud()); - Assertions.assertEquals("ywbiexzfeyueax", model.lastBackupStatus()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-01T16:37:43Z"), model.lastRefreshedAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-23T16:09:08Z"), model.oldestRecoveryPoint()); - Assertions.assertEquals(1281560612, model.recoveryPointCount()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-09T17:36:53Z"), model.onPremiseOldestRecoveryPoint()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-28T10:03:56Z"), model.onPremiseLatestRecoveryPoint()); - Assertions.assertEquals(582953019, model.onPremiseRecoveryPointCount()); - Assertions.assertTrue(model.isCollocated()); - Assertions.assertEquals("oxaepd", model.protectionGroupName()); - Assertions.assertEquals("jancu", model.diskStorageUsedInBytes()); - Assertions.assertEquals("hdwbavxbniwdjs", model.totalDiskStorageSizeInBytes()); + Assertions.assertTrue(model.isPresentOnCloud()); + Assertions.assertEquals("ss", model.lastBackupStatus()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-19T09:22Z"), model.lastRefreshedAt()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-09T23:09:46Z"), model.oldestRecoveryPoint()); + Assertions.assertEquals(74448491, model.recoveryPointCount()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-14T21:04:43Z"), model.onPremiseOldestRecoveryPoint()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-07T21:55:14Z"), model.onPremiseLatestRecoveryPoint()); + Assertions.assertEquals(301968900, model.onPremiseRecoveryPointCount()); + Assertions.assertFalse(model.isCollocated()); + Assertions.assertEquals("zkd", model.protectionGroupName()); + Assertions.assertEquals("lpvlopw", model.diskStorageUsedInBytes()); + Assertions.assertEquals("ighxpk", model.totalDiskStorageSizeInBytes()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - DpmProtectedItemExtendedInfo model = new DpmProtectedItemExtendedInfo() - .withProtectableObjectLoadPath(mapOf("lfktsths", "xdbabphlwr", "twwrqp", "cocmnyyaztt")) - .withProtectedProperty(true) - .withIsPresentOnCloud(false) - .withLastBackupStatus("ywbiexzfeyueax") - .withLastRefreshedAt(OffsetDateTime.parse("2021-05-01T16:37:43Z")) - .withOldestRecoveryPoint(OffsetDateTime.parse("2021-10-23T16:09:08Z")) - .withRecoveryPointCount(1281560612) - .withOnPremiseOldestRecoveryPoint(OffsetDateTime.parse("2021-09-09T17:36:53Z")) - .withOnPremiseLatestRecoveryPoint(OffsetDateTime.parse("2021-10-28T10:03:56Z")) - .withOnPremiseRecoveryPointCount(582953019) - .withIsCollocated(true) - .withProtectionGroupName("oxaepd") - .withDiskStorageUsedInBytes("jancu") - .withTotalDiskStorageSizeInBytes("hdwbavxbniwdjs"); + DpmProtectedItemExtendedInfo model + = new DpmProtectedItemExtendedInfo().withProtectableObjectLoadPath(mapOf("bbovplwzbhvgyugu", "ctyqik")) + .withProtectedProperty(true) + .withIsPresentOnCloud(true) + .withLastBackupStatus("ss") + .withLastRefreshedAt(OffsetDateTime.parse("2021-06-19T09:22Z")) + .withOldestRecoveryPoint(OffsetDateTime.parse("2021-06-09T23:09:46Z")) + .withRecoveryPointCount(74448491) + .withOnPremiseOldestRecoveryPoint(OffsetDateTime.parse("2021-09-14T21:04:43Z")) + .withOnPremiseLatestRecoveryPoint(OffsetDateTime.parse("2021-01-07T21:55:14Z")) + .withOnPremiseRecoveryPointCount(301968900) + .withIsCollocated(false) + .withProtectionGroupName("zkd") + .withDiskStorageUsedInBytes("lpvlopw") + .withTotalDiskStorageSizeInBytes("ighxpk"); model = BinaryData.fromObject(model).toObject(DpmProtectedItemExtendedInfo.class); - Assertions.assertEquals("xdbabphlwr", model.protectableObjectLoadPath().get("lfktsths")); + Assertions.assertEquals("ctyqik", model.protectableObjectLoadPath().get("bbovplwzbhvgyugu")); Assertions.assertTrue(model.protectedProperty()); - Assertions.assertFalse(model.isPresentOnCloud()); - Assertions.assertEquals("ywbiexzfeyueax", model.lastBackupStatus()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-01T16:37:43Z"), model.lastRefreshedAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-23T16:09:08Z"), model.oldestRecoveryPoint()); - Assertions.assertEquals(1281560612, model.recoveryPointCount()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-09T17:36:53Z"), model.onPremiseOldestRecoveryPoint()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-28T10:03:56Z"), model.onPremiseLatestRecoveryPoint()); - Assertions.assertEquals(582953019, model.onPremiseRecoveryPointCount()); - Assertions.assertTrue(model.isCollocated()); - Assertions.assertEquals("oxaepd", model.protectionGroupName()); - Assertions.assertEquals("jancu", model.diskStorageUsedInBytes()); - Assertions.assertEquals("hdwbavxbniwdjs", model.totalDiskStorageSizeInBytes()); + Assertions.assertTrue(model.isPresentOnCloud()); + Assertions.assertEquals("ss", model.lastBackupStatus()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-19T09:22Z"), model.lastRefreshedAt()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-09T23:09:46Z"), model.oldestRecoveryPoint()); + Assertions.assertEquals(74448491, model.recoveryPointCount()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-14T21:04:43Z"), model.onPremiseOldestRecoveryPoint()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-07T21:55:14Z"), model.onPremiseLatestRecoveryPoint()); + Assertions.assertEquals(301968900, model.onPremiseRecoveryPointCount()); + Assertions.assertFalse(model.isCollocated()); + Assertions.assertEquals("zkd", model.protectionGroupName()); + Assertions.assertEquals("lpvlopw", model.diskStorageUsedInBytes()); + Assertions.assertEquals("ighxpk", model.totalDiskStorageSizeInBytes()); } // Use "Map.of" if available diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DpmProtectedItemTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DpmProtectedItemTests.java index 4ae0a8c8baa05..32fb08e96ecbd 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DpmProtectedItemTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/DpmProtectedItemTests.java @@ -22,123 +22,127 @@ public final class DpmProtectedItemTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { DpmProtectedItem model = BinaryData.fromString( - "{\"protectedItemType\":\"DPMProtectedItem\",\"friendlyName\":\"nhwlrsffrzpwvl\",\"backupEngineName\":\"q\",\"protectionState\":\"BackupsSuspended\",\"extendedInfo\":{\"protectableObjectLoadPath\":{\"vf\":\"ihkaetcktvfc\",\"xerf\":\"nkymuctqhjfbebrj\",\"phxepcyvahf\":\"wutttxfvjrbi\",\"gidokgjljyoxgvcl\":\"ljkyqxjvuuj\"},\"protected\":true,\"isPresentOnCloud\":false,\"lastBackupStatus\":\"ghkjeszzhbi\",\"lastRefreshedAt\":\"2021-06-22T13:47:37Z\",\"oldestRecoveryPoint\":\"2021-06-15T17:16:01Z\",\"recoveryPointCount\":502156658,\"onPremiseOldestRecoveryPoint\":\"2021-10-21T07:58:39Z\",\"onPremiseLatestRecoveryPoint\":\"2021-01-08T23:37:59Z\",\"onPremiseRecoveryPointCount\":195417612,\"isCollocated\":false,\"protectionGroupName\":\"mpvecxgodebfqk\",\"diskStorageUsedInBytes\":\"bmpukgriwflz\",\"totalDiskStorageSizeInBytes\":\"bxzpuzycisp\"},\"backupManagementType\":\"DefaultBackup\",\"workloadType\":\"SystemState\",\"containerName\":\"gkbrpyyd\",\"sourceResourceId\":\"bnuqqkpik\",\"policyId\":\"rgvtqag\",\"lastRecoveryPoint\":\"2021-06-01T06:43:51Z\",\"backupSetName\":\"nhijggmebfsi\",\"createMode\":\"Recover\",\"deferredDeleteTimeInUTC\":\"2021-08-14T22:49:32Z\",\"isScheduledForDeferredDelete\":true,\"deferredDeleteTimeRemaining\":\"pnazzm\",\"isDeferredDeleteScheduleUpcoming\":false,\"isRehydrate\":false,\"resourceGuardOperationRequests\":[\"xttd\"],\"isArchiveEnabled\":true,\"policyName\":\"nlankxmyskpb\",\"softDeleteRetentionPeriodInDays\":1074926668,\"sourceLocation\":\"tkcxywnytnrsy\",\"vaultId\":\"qidybyx\",\"sourceSideScanInfo\":{\"sourceSideScanStatus\":\"Configured\",\"sourceSideScanSummary\":\"Suspicious\"}}") + "{\"protectedItemType\":\"DPMProtectedItem\",\"friendlyName\":\"pvecxgodeb\",\"backupEngineName\":\"kk\",\"protectionState\":\"Invalid\",\"extendedInfo\":{\"protectableObjectLoadPath\":{\"wflzlfbxzpuzy\":\"gr\",\"y\":\"ispnqzahmgkbrp\",\"rgvtqag\":\"hibnuqqkpika\"},\"protected\":false,\"isPresentOnCloud\":true,\"lastBackupStatus\":\"ijggmebfsiar\",\"lastRefreshedAt\":\"2021-08-14T22:49:32Z\",\"oldestRecoveryPoint\":\"2021-02-21T10:02:12Z\",\"recoveryPointCount\":357365351,\"onPremiseOldestRecoveryPoint\":\"2021-01-20T10:25:16Z\",\"onPremiseLatestRecoveryPoint\":\"2021-03-17T12:33:19Z\",\"onPremiseRecoveryPointCount\":127337486,\"isCollocated\":false,\"protectionGroupName\":\"mpxttdbhrbnlankx\",\"diskStorageUsedInBytes\":\"skpbhenbtkcxywn\",\"totalDiskStorageSizeInBytes\":\"nrs\"},\"backupManagementType\":\"MAB\",\"workloadType\":\"SQLDB\",\"containerName\":\"ybyxc\",\"sourceResourceId\":\"clha\",\"policyId\":\"dbabp\",\"lastRecoveryPoint\":\"2021-10-01T07:26:45Z\",\"backupSetName\":\"qlfktsths\",\"createMode\":\"Invalid\",\"deferredDeleteTimeInUTC\":\"2021-02-05T13:57:46Z\",\"isScheduledForDeferredDelete\":false,\"deferredDeleteTimeRemaining\":\"azt\",\"isDeferredDeleteScheduleUpcoming\":false,\"isRehydrate\":false,\"resourceGuardOperationRequests\":[\"puedckzywbiexzf\",\"yueaxibxujwb\",\"qwalmuzyoxaepd\",\"zjancuxr\"],\"isArchiveEnabled\":true,\"policyName\":\"avxbniwdjswztsdb\",\"softDeleteRetentionPeriodInDays\":1405817620,\"sourceLocation\":\"ytxhp\",\"vaultId\":\"bzpfzab\",\"sourceSideScanInfo\":{\"sourceSideScanStatus\":\"ConfigurationFailed\",\"sourceSideScanSummary\":\"Healthy\"}}") .toObject(DpmProtectedItem.class); - Assertions.assertEquals("gkbrpyyd", model.containerName()); - Assertions.assertEquals("bnuqqkpik", model.sourceResourceId()); - Assertions.assertEquals("rgvtqag", model.policyId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-01T06:43:51Z"), model.lastRecoveryPoint()); - Assertions.assertEquals("nhijggmebfsi", model.backupSetName()); - Assertions.assertEquals(CreateMode.RECOVER, model.createMode()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-14T22:49:32Z"), model.deferredDeleteTimeInUtc()); - Assertions.assertTrue(model.isScheduledForDeferredDelete()); - Assertions.assertEquals("pnazzm", model.deferredDeleteTimeRemaining()); + Assertions.assertEquals("ybyxc", model.containerName()); + Assertions.assertEquals("clha", model.sourceResourceId()); + Assertions.assertEquals("dbabp", model.policyId()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-01T07:26:45Z"), model.lastRecoveryPoint()); + Assertions.assertEquals("qlfktsths", model.backupSetName()); + Assertions.assertEquals(CreateMode.INVALID, model.createMode()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-05T13:57:46Z"), model.deferredDeleteTimeInUtc()); + Assertions.assertFalse(model.isScheduledForDeferredDelete()); + Assertions.assertEquals("azt", model.deferredDeleteTimeRemaining()); Assertions.assertFalse(model.isDeferredDeleteScheduleUpcoming()); Assertions.assertFalse(model.isRehydrate()); - Assertions.assertEquals("xttd", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals("puedckzywbiexzf", model.resourceGuardOperationRequests().get(0)); Assertions.assertTrue(model.isArchiveEnabled()); - Assertions.assertEquals("nlankxmyskpb", model.policyName()); - Assertions.assertEquals(1074926668, model.softDeleteRetentionPeriodInDays()); - Assertions.assertEquals(SourceSideScanStatus.CONFIGURED, model.sourceSideScanInfo().sourceSideScanStatus()); - Assertions.assertEquals(SourceSideScanSummary.SUSPICIOUS, model.sourceSideScanInfo().sourceSideScanSummary()); - Assertions.assertEquals("nhwlrsffrzpwvl", model.friendlyName()); - Assertions.assertEquals("q", model.backupEngineName()); - Assertions.assertEquals(ProtectedItemState.BACKUPS_SUSPENDED, model.protectionState()); - Assertions.assertEquals("ihkaetcktvfc", model.extendedInfo().protectableObjectLoadPath().get("vf")); - Assertions.assertTrue(model.extendedInfo().protectedProperty()); - Assertions.assertFalse(model.extendedInfo().isPresentOnCloud()); - Assertions.assertEquals("ghkjeszzhbi", model.extendedInfo().lastBackupStatus()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-22T13:47:37Z"), model.extendedInfo().lastRefreshedAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-15T17:16:01Z"), + Assertions.assertEquals("avxbniwdjswztsdb", model.policyName()); + Assertions.assertEquals(1405817620, model.softDeleteRetentionPeriodInDays()); + Assertions.assertEquals(SourceSideScanStatus.CONFIGURATION_FAILED, + model.sourceSideScanInfo().sourceSideScanStatus()); + Assertions.assertEquals(SourceSideScanSummary.HEALTHY, model.sourceSideScanInfo().sourceSideScanSummary()); + Assertions.assertEquals("pvecxgodeb", model.friendlyName()); + Assertions.assertEquals("kk", model.backupEngineName()); + Assertions.assertEquals(ProtectedItemState.INVALID, model.protectionState()); + Assertions.assertEquals("gr", model.extendedInfo().protectableObjectLoadPath().get("wflzlfbxzpuzy")); + Assertions.assertFalse(model.extendedInfo().protectedProperty()); + Assertions.assertTrue(model.extendedInfo().isPresentOnCloud()); + Assertions.assertEquals("ijggmebfsiar", model.extendedInfo().lastBackupStatus()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-14T22:49:32Z"), model.extendedInfo().lastRefreshedAt()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-21T10:02:12Z"), model.extendedInfo().oldestRecoveryPoint()); - Assertions.assertEquals(502156658, model.extendedInfo().recoveryPointCount()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-21T07:58:39Z"), + Assertions.assertEquals(357365351, model.extendedInfo().recoveryPointCount()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-20T10:25:16Z"), model.extendedInfo().onPremiseOldestRecoveryPoint()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-08T23:37:59Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-03-17T12:33:19Z"), model.extendedInfo().onPremiseLatestRecoveryPoint()); - Assertions.assertEquals(195417612, model.extendedInfo().onPremiseRecoveryPointCount()); + Assertions.assertEquals(127337486, model.extendedInfo().onPremiseRecoveryPointCount()); Assertions.assertFalse(model.extendedInfo().isCollocated()); - Assertions.assertEquals("mpvecxgodebfqk", model.extendedInfo().protectionGroupName()); - Assertions.assertEquals("bmpukgriwflz", model.extendedInfo().diskStorageUsedInBytes()); - Assertions.assertEquals("bxzpuzycisp", model.extendedInfo().totalDiskStorageSizeInBytes()); + Assertions.assertEquals("mpxttdbhrbnlankx", model.extendedInfo().protectionGroupName()); + Assertions.assertEquals("skpbhenbtkcxywn", model.extendedInfo().diskStorageUsedInBytes()); + Assertions.assertEquals("nrs", model.extendedInfo().totalDiskStorageSizeInBytes()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - DpmProtectedItem model = new DpmProtectedItem().withContainerName("gkbrpyyd") - .withSourceResourceId("bnuqqkpik") - .withPolicyId("rgvtqag") - .withLastRecoveryPoint(OffsetDateTime.parse("2021-06-01T06:43:51Z")) - .withBackupSetName("nhijggmebfsi") - .withCreateMode(CreateMode.RECOVER) - .withDeferredDeleteTimeInUtc(OffsetDateTime.parse("2021-08-14T22:49:32Z")) - .withIsScheduledForDeferredDelete(true) - .withDeferredDeleteTimeRemaining("pnazzm") + DpmProtectedItem model = new DpmProtectedItem().withContainerName("ybyxc") + .withSourceResourceId("clha") + .withPolicyId("dbabp") + .withLastRecoveryPoint(OffsetDateTime.parse("2021-10-01T07:26:45Z")) + .withBackupSetName("qlfktsths") + .withCreateMode(CreateMode.INVALID) + .withDeferredDeleteTimeInUtc(OffsetDateTime.parse("2021-02-05T13:57:46Z")) + .withIsScheduledForDeferredDelete(false) + .withDeferredDeleteTimeRemaining("azt") .withIsDeferredDeleteScheduleUpcoming(false) .withIsRehydrate(false) - .withResourceGuardOperationRequests(Arrays.asList("xttd")) + .withResourceGuardOperationRequests( + Arrays.asList("puedckzywbiexzf", "yueaxibxujwb", "qwalmuzyoxaepd", "zjancuxr")) .withIsArchiveEnabled(true) - .withPolicyName("nlankxmyskpb") - .withSoftDeleteRetentionPeriodInDays(1074926668) - .withSourceSideScanInfo(new SourceSideScanInfo().withSourceSideScanStatus(SourceSideScanStatus.CONFIGURED) - .withSourceSideScanSummary(SourceSideScanSummary.SUSPICIOUS)) - .withFriendlyName("nhwlrsffrzpwvl") - .withBackupEngineName("q") - .withProtectionState(ProtectedItemState.BACKUPS_SUSPENDED) + .withPolicyName("avxbniwdjswztsdb") + .withSoftDeleteRetentionPeriodInDays(1405817620) + .withSourceSideScanInfo( + new SourceSideScanInfo().withSourceSideScanStatus(SourceSideScanStatus.CONFIGURATION_FAILED) + .withSourceSideScanSummary(SourceSideScanSummary.HEALTHY)) + .withFriendlyName("pvecxgodeb") + .withBackupEngineName("kk") + .withProtectionState(ProtectedItemState.INVALID) .withExtendedInfo(new DpmProtectedItemExtendedInfo() - .withProtectableObjectLoadPath(mapOf("vf", "ihkaetcktvfc", "xerf", "nkymuctqhjfbebrj", "phxepcyvahf", - "wutttxfvjrbi", "gidokgjljyoxgvcl", "ljkyqxjvuuj")) - .withProtectedProperty(true) - .withIsPresentOnCloud(false) - .withLastBackupStatus("ghkjeszzhbi") - .withLastRefreshedAt(OffsetDateTime.parse("2021-06-22T13:47:37Z")) - .withOldestRecoveryPoint(OffsetDateTime.parse("2021-06-15T17:16:01Z")) - .withRecoveryPointCount(502156658) - .withOnPremiseOldestRecoveryPoint(OffsetDateTime.parse("2021-10-21T07:58:39Z")) - .withOnPremiseLatestRecoveryPoint(OffsetDateTime.parse("2021-01-08T23:37:59Z")) - .withOnPremiseRecoveryPointCount(195417612) + .withProtectableObjectLoadPath( + mapOf("wflzlfbxzpuzy", "gr", "y", "ispnqzahmgkbrp", "rgvtqag", "hibnuqqkpika")) + .withProtectedProperty(false) + .withIsPresentOnCloud(true) + .withLastBackupStatus("ijggmebfsiar") + .withLastRefreshedAt(OffsetDateTime.parse("2021-08-14T22:49:32Z")) + .withOldestRecoveryPoint(OffsetDateTime.parse("2021-02-21T10:02:12Z")) + .withRecoveryPointCount(357365351) + .withOnPremiseOldestRecoveryPoint(OffsetDateTime.parse("2021-01-20T10:25:16Z")) + .withOnPremiseLatestRecoveryPoint(OffsetDateTime.parse("2021-03-17T12:33:19Z")) + .withOnPremiseRecoveryPointCount(127337486) .withIsCollocated(false) - .withProtectionGroupName("mpvecxgodebfqk") - .withDiskStorageUsedInBytes("bmpukgriwflz") - .withTotalDiskStorageSizeInBytes("bxzpuzycisp")); + .withProtectionGroupName("mpxttdbhrbnlankx") + .withDiskStorageUsedInBytes("skpbhenbtkcxywn") + .withTotalDiskStorageSizeInBytes("nrs")); model = BinaryData.fromObject(model).toObject(DpmProtectedItem.class); - Assertions.assertEquals("gkbrpyyd", model.containerName()); - Assertions.assertEquals("bnuqqkpik", model.sourceResourceId()); - Assertions.assertEquals("rgvtqag", model.policyId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-01T06:43:51Z"), model.lastRecoveryPoint()); - Assertions.assertEquals("nhijggmebfsi", model.backupSetName()); - Assertions.assertEquals(CreateMode.RECOVER, model.createMode()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-14T22:49:32Z"), model.deferredDeleteTimeInUtc()); - Assertions.assertTrue(model.isScheduledForDeferredDelete()); - Assertions.assertEquals("pnazzm", model.deferredDeleteTimeRemaining()); + Assertions.assertEquals("ybyxc", model.containerName()); + Assertions.assertEquals("clha", model.sourceResourceId()); + Assertions.assertEquals("dbabp", model.policyId()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-01T07:26:45Z"), model.lastRecoveryPoint()); + Assertions.assertEquals("qlfktsths", model.backupSetName()); + Assertions.assertEquals(CreateMode.INVALID, model.createMode()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-05T13:57:46Z"), model.deferredDeleteTimeInUtc()); + Assertions.assertFalse(model.isScheduledForDeferredDelete()); + Assertions.assertEquals("azt", model.deferredDeleteTimeRemaining()); Assertions.assertFalse(model.isDeferredDeleteScheduleUpcoming()); Assertions.assertFalse(model.isRehydrate()); - Assertions.assertEquals("xttd", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals("puedckzywbiexzf", model.resourceGuardOperationRequests().get(0)); Assertions.assertTrue(model.isArchiveEnabled()); - Assertions.assertEquals("nlankxmyskpb", model.policyName()); - Assertions.assertEquals(1074926668, model.softDeleteRetentionPeriodInDays()); - Assertions.assertEquals(SourceSideScanStatus.CONFIGURED, model.sourceSideScanInfo().sourceSideScanStatus()); - Assertions.assertEquals(SourceSideScanSummary.SUSPICIOUS, model.sourceSideScanInfo().sourceSideScanSummary()); - Assertions.assertEquals("nhwlrsffrzpwvl", model.friendlyName()); - Assertions.assertEquals("q", model.backupEngineName()); - Assertions.assertEquals(ProtectedItemState.BACKUPS_SUSPENDED, model.protectionState()); - Assertions.assertEquals("ihkaetcktvfc", model.extendedInfo().protectableObjectLoadPath().get("vf")); - Assertions.assertTrue(model.extendedInfo().protectedProperty()); - Assertions.assertFalse(model.extendedInfo().isPresentOnCloud()); - Assertions.assertEquals("ghkjeszzhbi", model.extendedInfo().lastBackupStatus()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-22T13:47:37Z"), model.extendedInfo().lastRefreshedAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-15T17:16:01Z"), + Assertions.assertEquals("avxbniwdjswztsdb", model.policyName()); + Assertions.assertEquals(1405817620, model.softDeleteRetentionPeriodInDays()); + Assertions.assertEquals(SourceSideScanStatus.CONFIGURATION_FAILED, + model.sourceSideScanInfo().sourceSideScanStatus()); + Assertions.assertEquals(SourceSideScanSummary.HEALTHY, model.sourceSideScanInfo().sourceSideScanSummary()); + Assertions.assertEquals("pvecxgodeb", model.friendlyName()); + Assertions.assertEquals("kk", model.backupEngineName()); + Assertions.assertEquals(ProtectedItemState.INVALID, model.protectionState()); + Assertions.assertEquals("gr", model.extendedInfo().protectableObjectLoadPath().get("wflzlfbxzpuzy")); + Assertions.assertFalse(model.extendedInfo().protectedProperty()); + Assertions.assertTrue(model.extendedInfo().isPresentOnCloud()); + Assertions.assertEquals("ijggmebfsiar", model.extendedInfo().lastBackupStatus()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-14T22:49:32Z"), model.extendedInfo().lastRefreshedAt()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-21T10:02:12Z"), model.extendedInfo().oldestRecoveryPoint()); - Assertions.assertEquals(502156658, model.extendedInfo().recoveryPointCount()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-21T07:58:39Z"), + Assertions.assertEquals(357365351, model.extendedInfo().recoveryPointCount()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-20T10:25:16Z"), model.extendedInfo().onPremiseOldestRecoveryPoint()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-08T23:37:59Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-03-17T12:33:19Z"), model.extendedInfo().onPremiseLatestRecoveryPoint()); - Assertions.assertEquals(195417612, model.extendedInfo().onPremiseRecoveryPointCount()); + Assertions.assertEquals(127337486, model.extendedInfo().onPremiseRecoveryPointCount()); Assertions.assertFalse(model.extendedInfo().isCollocated()); - Assertions.assertEquals("mpvecxgodebfqk", model.extendedInfo().protectionGroupName()); - Assertions.assertEquals("bmpukgriwflz", model.extendedInfo().diskStorageUsedInBytes()); - Assertions.assertEquals("bxzpuzycisp", model.extendedInfo().totalDiskStorageSizeInBytes()); + Assertions.assertEquals("mpxttdbhrbnlankx", model.extendedInfo().protectionGroupName()); + Assertions.assertEquals("skpbhenbtkcxywn", model.extendedInfo().diskStorageUsedInBytes()); + Assertions.assertEquals("nrs", model.extendedInfo().totalDiskStorageSizeInBytes()); } // Use "Map.of" if available diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ExtendedLocationTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ExtendedLocationTests.java index a1c0b1c9c1794..d9773dcc5a565 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ExtendedLocationTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ExtendedLocationTests.java @@ -11,17 +11,17 @@ public final class ExtendedLocationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ExtendedLocation model = BinaryData.fromString("{\"name\":\"edkowepbqpcrfk\",\"type\":\"ccsnjvcdwxlpq\"}") - .toObject(ExtendedLocation.class); - Assertions.assertEquals("edkowepbqpcrfk", model.name()); - Assertions.assertEquals("ccsnjvcdwxlpq", model.type()); + ExtendedLocation model + = BinaryData.fromString("{\"name\":\"nsiru\",\"type\":\"z\"}").toObject(ExtendedLocation.class); + Assertions.assertEquals("nsiru", model.name()); + Assertions.assertEquals("z", model.type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ExtendedLocation model = new ExtendedLocation().withName("edkowepbqpcrfk").withType("ccsnjvcdwxlpq"); + ExtendedLocation model = new ExtendedLocation().withName("nsiru").withType("z"); model = BinaryData.fromObject(model).toObject(ExtendedLocation.class); - Assertions.assertEquals("edkowepbqpcrfk", model.name()); - Assertions.assertEquals("ccsnjvcdwxlpq", model.type()); + Assertions.assertEquals("nsiru", model.name()); + Assertions.assertEquals("z", model.type()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FeatureSupportsValidateWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FeatureSupportsValidateWithResponseMockTests.java index b908294a3304c..e96cd5c3f508b 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FeatureSupportsValidateWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FeatureSupportsValidateWithResponseMockTests.java @@ -32,7 +32,7 @@ public void testValidateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); AzureVMResourceFeatureSupportResponse response = manager.featureSupports() - .validateWithResponse("fkcefeygz", new FeatureSupportRequest(), com.azure.core.util.Context.NONE) + .validateWithResponse("qixbnjrqvzyuexo", new FeatureSupportRequest(), com.azure.core.util.Context.NONE) .getValue(); Assertions.assertEquals(SupportStatus.DEFAULT_ON, response.supportStatus()); diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FetchTieringCostInfoForRehydrationRequestTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FetchTieringCostInfoForRehydrationRequestTests.java index e67b086b0d99b..adc3f22fb68a8 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FetchTieringCostInfoForRehydrationRequestTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FetchTieringCostInfoForRehydrationRequestTests.java @@ -14,13 +14,13 @@ public final class FetchTieringCostInfoForRehydrationRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FetchTieringCostInfoForRehydrationRequest model = BinaryData.fromString( - "{\"objectType\":\"FetchTieringCostInfoForRehydrationRequest\",\"containerName\":\"qilzdc\",\"protectedItemName\":\"uwjoedxnguca\",\"recoveryPointId\":\"fpaurw\",\"rehydrationPriority\":\"High\",\"sourceTierType\":\"HardenedRP\",\"targetTierType\":\"Invalid\"}") + "{\"objectType\":\"FetchTieringCostInfoForRehydrationRequest\",\"containerName\":\"hdklmvetatl\",\"protectedItemName\":\"kfqoixwgiksbb\",\"recoveryPointId\":\"tooxrpog\",\"rehydrationPriority\":\"High\",\"sourceTierType\":\"HardenedRP\",\"targetTierType\":\"ArchivedRP\"}") .toObject(FetchTieringCostInfoForRehydrationRequest.class); Assertions.assertEquals(RecoveryPointTierType.HARDENED_RP, model.sourceTierType()); - Assertions.assertEquals(RecoveryPointTierType.INVALID, model.targetTierType()); - Assertions.assertEquals("qilzdc", model.containerName()); - Assertions.assertEquals("uwjoedxnguca", model.protectedItemName()); - Assertions.assertEquals("fpaurw", model.recoveryPointId()); + Assertions.assertEquals(RecoveryPointTierType.ARCHIVED_RP, model.targetTierType()); + Assertions.assertEquals("hdklmvetatl", model.containerName()); + Assertions.assertEquals("kfqoixwgiksbb", model.protectedItemName()); + Assertions.assertEquals("tooxrpog", model.recoveryPointId()); Assertions.assertEquals(RehydrationPriority.HIGH, model.rehydrationPriority()); } @@ -28,17 +28,17 @@ public void testDeserialize() throws Exception { public void testSerialize() throws Exception { FetchTieringCostInfoForRehydrationRequest model = new FetchTieringCostInfoForRehydrationRequest().withSourceTierType(RecoveryPointTierType.HARDENED_RP) - .withTargetTierType(RecoveryPointTierType.INVALID) - .withContainerName("qilzdc") - .withProtectedItemName("uwjoedxnguca") - .withRecoveryPointId("fpaurw") + .withTargetTierType(RecoveryPointTierType.ARCHIVED_RP) + .withContainerName("hdklmvetatl") + .withProtectedItemName("kfqoixwgiksbb") + .withRecoveryPointId("tooxrpog") .withRehydrationPriority(RehydrationPriority.HIGH); model = BinaryData.fromObject(model).toObject(FetchTieringCostInfoForRehydrationRequest.class); Assertions.assertEquals(RecoveryPointTierType.HARDENED_RP, model.sourceTierType()); - Assertions.assertEquals(RecoveryPointTierType.INVALID, model.targetTierType()); - Assertions.assertEquals("qilzdc", model.containerName()); - Assertions.assertEquals("uwjoedxnguca", model.protectedItemName()); - Assertions.assertEquals("fpaurw", model.recoveryPointId()); + Assertions.assertEquals(RecoveryPointTierType.ARCHIVED_RP, model.targetTierType()); + Assertions.assertEquals("hdklmvetatl", model.containerName()); + Assertions.assertEquals("kfqoixwgiksbb", model.protectedItemName()); + Assertions.assertEquals("tooxrpog", model.recoveryPointId()); Assertions.assertEquals(RehydrationPriority.HIGH, model.rehydrationPriority()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FetchTieringCostInfoRequestTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FetchTieringCostInfoRequestTests.java index 71aadb247dcda..616568404f07b 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FetchTieringCostInfoRequestTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FetchTieringCostInfoRequestTests.java @@ -13,19 +13,19 @@ public final class FetchTieringCostInfoRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FetchTieringCostInfoRequest model = BinaryData.fromString( - "{\"objectType\":\"FetchTieringCostInfoRequest\",\"sourceTierType\":\"ArchivedRP\",\"targetTierType\":\"Invalid\"}") + "{\"objectType\":\"FetchTieringCostInfoRequest\",\"sourceTierType\":\"HardenedRP\",\"targetTierType\":\"IASnapshotRP\"}") .toObject(FetchTieringCostInfoRequest.class); - Assertions.assertEquals(RecoveryPointTierType.ARCHIVED_RP, model.sourceTierType()); - Assertions.assertEquals(RecoveryPointTierType.INVALID, model.targetTierType()); + Assertions.assertEquals(RecoveryPointTierType.HARDENED_RP, model.sourceTierType()); + Assertions.assertEquals(RecoveryPointTierType.IASNAPSHOT_RP, model.targetTierType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { FetchTieringCostInfoRequest model - = new FetchTieringCostInfoRequest().withSourceTierType(RecoveryPointTierType.ARCHIVED_RP) - .withTargetTierType(RecoveryPointTierType.INVALID); + = new FetchTieringCostInfoRequest().withSourceTierType(RecoveryPointTierType.HARDENED_RP) + .withTargetTierType(RecoveryPointTierType.IASNAPSHOT_RP); model = BinaryData.fromObject(model).toObject(FetchTieringCostInfoRequest.class); - Assertions.assertEquals(RecoveryPointTierType.ARCHIVED_RP, model.sourceTierType()); - Assertions.assertEquals(RecoveryPointTierType.INVALID, model.targetTierType()); + Assertions.assertEquals(RecoveryPointTierType.HARDENED_RP, model.sourceTierType()); + Assertions.assertEquals(RecoveryPointTierType.IASNAPSHOT_RP, model.targetTierType()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FetchTieringCostSavingsInfoForPolicyRequestTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FetchTieringCostSavingsInfoForPolicyRequestTests.java index 337757d82acf0..1838afe63ea1e 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FetchTieringCostSavingsInfoForPolicyRequestTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FetchTieringCostSavingsInfoForPolicyRequestTests.java @@ -13,22 +13,22 @@ public final class FetchTieringCostSavingsInfoForPolicyRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FetchTieringCostSavingsInfoForPolicyRequest model = BinaryData.fromString( - "{\"objectType\":\"FetchTieringCostSavingsInfoForPolicyRequest\",\"policyName\":\"fjqq\",\"sourceTierType\":\"HardenedRP\",\"targetTierType\":\"ArchivedRP\"}") + "{\"objectType\":\"FetchTieringCostSavingsInfoForPolicyRequest\",\"policyName\":\"hgjtnhtukfaci\",\"sourceTierType\":\"InstantRP\",\"targetTierType\":\"ArchivedRP\"}") .toObject(FetchTieringCostSavingsInfoForPolicyRequest.class); - Assertions.assertEquals(RecoveryPointTierType.HARDENED_RP, model.sourceTierType()); + Assertions.assertEquals(RecoveryPointTierType.INSTANT_RP, model.sourceTierType()); Assertions.assertEquals(RecoveryPointTierType.ARCHIVED_RP, model.targetTierType()); - Assertions.assertEquals("fjqq", model.policyName()); + Assertions.assertEquals("hgjtnhtukfaci", model.policyName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { FetchTieringCostSavingsInfoForPolicyRequest model - = new FetchTieringCostSavingsInfoForPolicyRequest().withSourceTierType(RecoveryPointTierType.HARDENED_RP) + = new FetchTieringCostSavingsInfoForPolicyRequest().withSourceTierType(RecoveryPointTierType.INSTANT_RP) .withTargetTierType(RecoveryPointTierType.ARCHIVED_RP) - .withPolicyName("fjqq"); + .withPolicyName("hgjtnhtukfaci"); model = BinaryData.fromObject(model).toObject(FetchTieringCostSavingsInfoForPolicyRequest.class); - Assertions.assertEquals(RecoveryPointTierType.HARDENED_RP, model.sourceTierType()); + Assertions.assertEquals(RecoveryPointTierType.INSTANT_RP, model.sourceTierType()); Assertions.assertEquals(RecoveryPointTierType.ARCHIVED_RP, model.targetTierType()); - Assertions.assertEquals("fjqq", model.policyName()); + Assertions.assertEquals("hgjtnhtukfaci", model.policyName()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FetchTieringCostSavingsInfoForProtectedItemRequestTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FetchTieringCostSavingsInfoForProtectedItemRequestTests.java index b18424cd62892..1d79e04a5166a 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FetchTieringCostSavingsInfoForProtectedItemRequestTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FetchTieringCostSavingsInfoForProtectedItemRequestTests.java @@ -13,25 +13,26 @@ public final class FetchTieringCostSavingsInfoForProtectedItemRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FetchTieringCostSavingsInfoForProtectedItemRequest model = BinaryData.fromString( - "{\"objectType\":\"FetchTieringCostSavingsInfoForProtectedItemRequest\",\"containerName\":\"mkxwxdcvjwcyziak\",\"protectedItemName\":\"ciqchxrtuicd\",\"sourceTierType\":\"Invalid\",\"targetTierType\":\"ArchivedRP\"}") + "{\"objectType\":\"FetchTieringCostSavingsInfoForProtectedItemRequest\",\"containerName\":\"fntumeezbxvqx\",\"protectedItemName\":\"nuvwcgasgomtmjzw\",\"sourceTierType\":\"IASnapshotRP\",\"targetTierType\":\"IASnapshotRP\"}") .toObject(FetchTieringCostSavingsInfoForProtectedItemRequest.class); - Assertions.assertEquals(RecoveryPointTierType.INVALID, model.sourceTierType()); - Assertions.assertEquals(RecoveryPointTierType.ARCHIVED_RP, model.targetTierType()); - Assertions.assertEquals("mkxwxdcvjwcyziak", model.containerName()); - Assertions.assertEquals("ciqchxrtuicd", model.protectedItemName()); + Assertions.assertEquals(RecoveryPointTierType.IASNAPSHOT_RP, model.sourceTierType()); + Assertions.assertEquals(RecoveryPointTierType.IASNAPSHOT_RP, model.targetTierType()); + Assertions.assertEquals("fntumeezbxvqx", model.containerName()); + Assertions.assertEquals("nuvwcgasgomtmjzw", model.protectedItemName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { FetchTieringCostSavingsInfoForProtectedItemRequest model - = new FetchTieringCostSavingsInfoForProtectedItemRequest().withSourceTierType(RecoveryPointTierType.INVALID) - .withTargetTierType(RecoveryPointTierType.ARCHIVED_RP) - .withContainerName("mkxwxdcvjwcyziak") - .withProtectedItemName("ciqchxrtuicd"); + = new FetchTieringCostSavingsInfoForProtectedItemRequest() + .withSourceTierType(RecoveryPointTierType.IASNAPSHOT_RP) + .withTargetTierType(RecoveryPointTierType.IASNAPSHOT_RP) + .withContainerName("fntumeezbxvqx") + .withProtectedItemName("nuvwcgasgomtmjzw"); model = BinaryData.fromObject(model).toObject(FetchTieringCostSavingsInfoForProtectedItemRequest.class); - Assertions.assertEquals(RecoveryPointTierType.INVALID, model.sourceTierType()); - Assertions.assertEquals(RecoveryPointTierType.ARCHIVED_RP, model.targetTierType()); - Assertions.assertEquals("mkxwxdcvjwcyziak", model.containerName()); - Assertions.assertEquals("ciqchxrtuicd", model.protectedItemName()); + Assertions.assertEquals(RecoveryPointTierType.IASNAPSHOT_RP, model.sourceTierType()); + Assertions.assertEquals(RecoveryPointTierType.IASNAPSHOT_RP, model.targetTierType()); + Assertions.assertEquals("fntumeezbxvqx", model.containerName()); + Assertions.assertEquals("nuvwcgasgomtmjzw", model.protectedItemName()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FetchTieringCostSavingsInfoForVaultRequestTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FetchTieringCostSavingsInfoForVaultRequestTests.java index 8b75e627a0f2d..bafcd169c936b 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FetchTieringCostSavingsInfoForVaultRequestTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FetchTieringCostSavingsInfoForVaultRequestTests.java @@ -13,19 +13,19 @@ public final class FetchTieringCostSavingsInfoForVaultRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { FetchTieringCostSavingsInfoForVaultRequest model = BinaryData.fromString( - "{\"objectType\":\"FetchTieringCostSavingsInfoForVaultRequest\",\"sourceTierType\":\"HardenedRP\",\"targetTierType\":\"Invalid\"}") + "{\"objectType\":\"FetchTieringCostSavingsInfoForVaultRequest\",\"sourceTierType\":\"Invalid\",\"targetTierType\":\"IASnapshotRP\"}") .toObject(FetchTieringCostSavingsInfoForVaultRequest.class); - Assertions.assertEquals(RecoveryPointTierType.HARDENED_RP, model.sourceTierType()); - Assertions.assertEquals(RecoveryPointTierType.INVALID, model.targetTierType()); + Assertions.assertEquals(RecoveryPointTierType.INVALID, model.sourceTierType()); + Assertions.assertEquals(RecoveryPointTierType.IASNAPSHOT_RP, model.targetTierType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { FetchTieringCostSavingsInfoForVaultRequest model - = new FetchTieringCostSavingsInfoForVaultRequest().withSourceTierType(RecoveryPointTierType.HARDENED_RP) - .withTargetTierType(RecoveryPointTierType.INVALID); + = new FetchTieringCostSavingsInfoForVaultRequest().withSourceTierType(RecoveryPointTierType.INVALID) + .withTargetTierType(RecoveryPointTierType.IASNAPSHOT_RP); model = BinaryData.fromObject(model).toObject(FetchTieringCostSavingsInfoForVaultRequest.class); - Assertions.assertEquals(RecoveryPointTierType.HARDENED_RP, model.sourceTierType()); - Assertions.assertEquals(RecoveryPointTierType.INVALID, model.targetTierType()); + Assertions.assertEquals(RecoveryPointTierType.INVALID, model.sourceTierType()); + Assertions.assertEquals(RecoveryPointTierType.IASNAPSHOT_RP, model.targetTierType()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FetchTieringCostsPostMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FetchTieringCostsPostMockTests.java index f72593965d733..1ad581b38f5c3 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FetchTieringCostsPostMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FetchTieringCostsPostMockTests.java @@ -31,8 +31,8 @@ public void testPost() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); TieringCostInfo response = manager.fetchTieringCosts() - .post("dorgmynltw", "p", - new FetchTieringCostInfoRequest().withSourceTierType(RecoveryPointTierType.ARCHIVED_RP) + .post("yuf", "qjfshtujcyo", + new FetchTieringCostInfoRequest().withSourceTierType(RecoveryPointTierType.HARDENED_RP) .withTargetTierType(RecoveryPointTierType.HARDENED_RP), com.azure.core.util.Context.NONE); diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FilesystemInfoTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FilesystemInfoTests.java new file mode 100644 index 0000000000000..7f72b3a8a2f48 --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/FilesystemInfoTests.java @@ -0,0 +1,35 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.recoveryservicesbackup.models.FilesystemInfo; +import org.junit.jupiter.api.Assertions; + +public final class FilesystemInfoTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + FilesystemInfo model = BinaryData.fromString( + "{\"volumeGuid\":\"vibr\",\"fileSystemType\":\"jsto\",\"label\":\"eitpkxztmo\",\"accessPaths\":[\"lftidgfcwqmpim\"],\"isOnStorageSpace\":false,\"storageSpaceInfo\":{\"storagePoolUniqueId\":\"em\",\"storagePoolFriendlyName\":\"h\",\"virtualDiskUniqueId\":\"uj\",\"virtualDiskFriendlyName\":\"t\"},\"diskInfoList\":[{\"diskNumber\":1779351159,\"diskUniqueId\":\"culkbawpfaj\",\"diskGuid\":\"wltlwtjjguktalh\",\"diskLocation\":\"vkcdmxzr\",\"sizeInBytes\":2563620399740315229,\"friendlyName\":\"lnwiaaomylwe\",\"lun\":835106090,\"managedDiskId\":\"cse\"},{\"diskNumber\":1208874486,\"diskUniqueId\":\"npjhlfzswpchwahf\",\"diskGuid\":\"usnfepgfewet\",\"diskLocation\":\"yxgncxykxhdjhli\",\"sizeInBytes\":3977988438695654095,\"friendlyName\":\"f\",\"lun\":507931039,\"managedDiskId\":\"orxvxcjzhqiz\"},{\"diskNumber\":444626662,\"diskUniqueId\":\"tgqscjavftjuh\",\"diskGuid\":\"azkmtgguwp\",\"diskLocation\":\"r\",\"sizeInBytes\":5791419916882152577,\"friendlyName\":\"m\",\"lun\":1010868676,\"managedDiskId\":\"cf\"}]}") + .toObject(FilesystemInfo.class); + Assertions.assertEquals("vibr", model.volumeGuid()); + Assertions.assertEquals("jsto", model.fileSystemType()); + Assertions.assertEquals("eitpkxztmo", model.label()); + Assertions.assertEquals("lftidgfcwqmpim", model.accessPaths().get(0)); + Assertions.assertFalse(model.isOnStorageSpace()); + Assertions.assertEquals("em", model.storageSpaceInfo().storagePoolUniqueId()); + Assertions.assertEquals("h", model.storageSpaceInfo().storagePoolFriendlyName()); + Assertions.assertEquals("uj", model.storageSpaceInfo().virtualDiskUniqueId()); + Assertions.assertEquals("t", model.storageSpaceInfo().virtualDiskFriendlyName()); + Assertions.assertEquals(1779351159, model.diskInfoList().get(0).diskNumber()); + Assertions.assertEquals("culkbawpfaj", model.diskInfoList().get(0).diskUniqueId()); + Assertions.assertEquals("wltlwtjjguktalh", model.diskInfoList().get(0).diskGuid()); + Assertions.assertEquals("vkcdmxzr", model.diskInfoList().get(0).diskLocation()); + Assertions.assertEquals(2563620399740315229L, model.diskInfoList().get(0).sizeInBytes()); + Assertions.assertEquals("lnwiaaomylwe", model.diskInfoList().get(0).friendlyName()); + Assertions.assertEquals(835106090, model.diskInfoList().get(0).lun()); + Assertions.assertEquals("cse", model.diskInfoList().get(0).managedDiskId()); + } +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/GenericContainerExtendedInfoTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/GenericContainerExtendedInfoTests.java index 07113bc77c1a4..eb1561df6af25 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/GenericContainerExtendedInfoTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/GenericContainerExtendedInfoTests.java @@ -15,31 +15,31 @@ public final class GenericContainerExtendedInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { GenericContainerExtendedInfo model = BinaryData.fromString( - "{\"rawCertData\":\"kxtrq\",\"containerIdentityInfo\":{\"uniqueName\":\"mlmbtxhwgfwsrta\",\"aadTenantId\":\"oezbrhubsk\",\"servicePrincipalClientId\":\"dyg\",\"audience\":\"okkqfqjbvleo\"},\"serviceEndpoints\":{\"bar\":\"luiqtqzfavyvnqq\"}}") + "{\"rawCertData\":\"zrxcczurt\",\"containerIdentityInfo\":{\"uniqueName\":\"pqxbkwvzgnzvdf\",\"aadTenantId\":\"d\",\"servicePrincipalClientId\":\"zmqpnodawopqhewj\",\"audience\":\"mcgsbostzelnd\"},\"serviceEndpoints\":{\"neqvcwwyyurmo\":\"utmzlbiojlvfhrbb\",\"rsnm\":\"hppr\"}}") .toObject(GenericContainerExtendedInfo.class); - Assertions.assertEquals("kxtrq", model.rawCertData()); - Assertions.assertEquals("mlmbtxhwgfwsrta", model.containerIdentityInfo().uniqueName()); - Assertions.assertEquals("oezbrhubsk", model.containerIdentityInfo().aadTenantId()); - Assertions.assertEquals("dyg", model.containerIdentityInfo().servicePrincipalClientId()); - Assertions.assertEquals("okkqfqjbvleo", model.containerIdentityInfo().audience()); - Assertions.assertEquals("luiqtqzfavyvnqq", model.serviceEndpoints().get("bar")); + Assertions.assertEquals("zrxcczurt", model.rawCertData()); + Assertions.assertEquals("pqxbkwvzgnzvdf", model.containerIdentityInfo().uniqueName()); + Assertions.assertEquals("d", model.containerIdentityInfo().aadTenantId()); + Assertions.assertEquals("zmqpnodawopqhewj", model.containerIdentityInfo().servicePrincipalClientId()); + Assertions.assertEquals("mcgsbostzelnd", model.containerIdentityInfo().audience()); + Assertions.assertEquals("utmzlbiojlvfhrbb", model.serviceEndpoints().get("neqvcwwyyurmo")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - GenericContainerExtendedInfo model = new GenericContainerExtendedInfo().withRawCertData("kxtrq") - .withContainerIdentityInfo(new ContainerIdentityInfo().withUniqueName("mlmbtxhwgfwsrta") - .withAadTenantId("oezbrhubsk") - .withServicePrincipalClientId("dyg") - .withAudience("okkqfqjbvleo")) - .withServiceEndpoints(mapOf("bar", "luiqtqzfavyvnqq")); + GenericContainerExtendedInfo model = new GenericContainerExtendedInfo().withRawCertData("zrxcczurt") + .withContainerIdentityInfo(new ContainerIdentityInfo().withUniqueName("pqxbkwvzgnzvdf") + .withAadTenantId("d") + .withServicePrincipalClientId("zmqpnodawopqhewj") + .withAudience("mcgsbostzelnd")) + .withServiceEndpoints(mapOf("neqvcwwyyurmo", "utmzlbiojlvfhrbb", "rsnm", "hppr")); model = BinaryData.fromObject(model).toObject(GenericContainerExtendedInfo.class); - Assertions.assertEquals("kxtrq", model.rawCertData()); - Assertions.assertEquals("mlmbtxhwgfwsrta", model.containerIdentityInfo().uniqueName()); - Assertions.assertEquals("oezbrhubsk", model.containerIdentityInfo().aadTenantId()); - Assertions.assertEquals("dyg", model.containerIdentityInfo().servicePrincipalClientId()); - Assertions.assertEquals("okkqfqjbvleo", model.containerIdentityInfo().audience()); - Assertions.assertEquals("luiqtqzfavyvnqq", model.serviceEndpoints().get("bar")); + Assertions.assertEquals("zrxcczurt", model.rawCertData()); + Assertions.assertEquals("pqxbkwvzgnzvdf", model.containerIdentityInfo().uniqueName()); + Assertions.assertEquals("d", model.containerIdentityInfo().aadTenantId()); + Assertions.assertEquals("zmqpnodawopqhewj", model.containerIdentityInfo().servicePrincipalClientId()); + Assertions.assertEquals("mcgsbostzelnd", model.containerIdentityInfo().audience()); + Assertions.assertEquals("utmzlbiojlvfhrbb", model.serviceEndpoints().get("neqvcwwyyurmo")); } // Use "Map.of" if available diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/GenericContainerTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/GenericContainerTests.java index 2b29d1dcc2d40..bf2d39f1654f9 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/GenericContainerTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/GenericContainerTests.java @@ -17,51 +17,50 @@ public final class GenericContainerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { GenericContainer model = BinaryData.fromString( - "{\"containerType\":\"GenericContainer\",\"fabricName\":\"ejwcwwqiok\",\"extendedInformation\":{\"rawCertData\":\"xmojmsvpkjp\",\"containerIdentityInfo\":{\"uniqueName\":\"wcfzqljyxgt\",\"aadTenantId\":\"heyd\",\"servicePrincipalClientId\":\"dshmkxmaehvbbx\",\"audience\":\"iplt\"},\"serviceEndpoints\":{\"xywr\":\"tbaxk\"}},\"friendlyName\":\"pyklyhpluodpvru\",\"backupManagementType\":\"MAB\",\"registrationStatus\":\"zibt\",\"healthStatus\":\"stgktst\",\"protectableObjectType\":\"xeclzedqbcvhzlhp\",\"sourceLocation\":\"dqkdlwwqfbu\"}") + "{\"containerType\":\"GenericContainer\",\"fabricName\":\"ljhnmgixhcmav\",\"extendedInformation\":{\"rawCertData\":\"oudorhcgyyp\",\"containerIdentityInfo\":{\"uniqueName\":\"wy\",\"aadTenantId\":\"ndm\",\"servicePrincipalClientId\":\"hu\",\"audience\":\"mjkavlgorbmft\"},\"serviceEndpoints\":{\"nzcyjtotp\":\"tzfjltf\",\"bdb\":\"opv\",\"ibcysihsgqc\":\"qgqqihedsvqwthmk\",\"ohdxbzlmcmu\":\"dhohsdtmcdzsuf\"}},\"friendlyName\":\"cvhd\",\"backupManagementType\":\"AzureIaasVM\",\"registrationStatus\":\"qqxeyskon\",\"healthStatus\":\"inkfkbgbz\",\"protectableObjectType\":\"wxeqocljmygvkzqk\",\"sourceLocation\":\"eokbze\"}") .toObject(GenericContainer.class); - Assertions.assertEquals("pyklyhpluodpvru", model.friendlyName()); - Assertions.assertEquals(BackupManagementType.MAB, model.backupManagementType()); - Assertions.assertEquals("zibt", model.registrationStatus()); - Assertions.assertEquals("stgktst", model.healthStatus()); - Assertions.assertEquals("xeclzedqbcvhzlhp", model.protectableObjectType()); - Assertions.assertEquals("ejwcwwqiok", model.fabricName()); - Assertions.assertEquals("xmojmsvpkjp", model.extendedInformation().rawCertData()); - Assertions.assertEquals("wcfzqljyxgt", model.extendedInformation().containerIdentityInfo().uniqueName()); - Assertions.assertEquals("heyd", model.extendedInformation().containerIdentityInfo().aadTenantId()); - Assertions.assertEquals("dshmkxmaehvbbx", - model.extendedInformation().containerIdentityInfo().servicePrincipalClientId()); - Assertions.assertEquals("iplt", model.extendedInformation().containerIdentityInfo().audience()); - Assertions.assertEquals("tbaxk", model.extendedInformation().serviceEndpoints().get("xywr")); + Assertions.assertEquals("cvhd", model.friendlyName()); + Assertions.assertEquals(BackupManagementType.AZURE_IAAS_VM, model.backupManagementType()); + Assertions.assertEquals("qqxeyskon", model.registrationStatus()); + Assertions.assertEquals("inkfkbgbz", model.healthStatus()); + Assertions.assertEquals("wxeqocljmygvkzqk", model.protectableObjectType()); + Assertions.assertEquals("ljhnmgixhcmav", model.fabricName()); + Assertions.assertEquals("oudorhcgyyp", model.extendedInformation().rawCertData()); + Assertions.assertEquals("wy", model.extendedInformation().containerIdentityInfo().uniqueName()); + Assertions.assertEquals("ndm", model.extendedInformation().containerIdentityInfo().aadTenantId()); + Assertions.assertEquals("hu", model.extendedInformation().containerIdentityInfo().servicePrincipalClientId()); + Assertions.assertEquals("mjkavlgorbmft", model.extendedInformation().containerIdentityInfo().audience()); + Assertions.assertEquals("tzfjltf", model.extendedInformation().serviceEndpoints().get("nzcyjtotp")); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - GenericContainer model = new GenericContainer().withFriendlyName("pyklyhpluodpvru") - .withBackupManagementType(BackupManagementType.MAB) - .withRegistrationStatus("zibt") - .withHealthStatus("stgktst") - .withProtectableObjectType("xeclzedqbcvhzlhp") - .withFabricName("ejwcwwqiok") - .withExtendedInformation(new GenericContainerExtendedInfo().withRawCertData("xmojmsvpkjp") - .withContainerIdentityInfo(new ContainerIdentityInfo().withUniqueName("wcfzqljyxgt") - .withAadTenantId("heyd") - .withServicePrincipalClientId("dshmkxmaehvbbx") - .withAudience("iplt")) - .withServiceEndpoints(mapOf("xywr", "tbaxk"))); + GenericContainer model = new GenericContainer().withFriendlyName("cvhd") + .withBackupManagementType(BackupManagementType.AZURE_IAAS_VM) + .withRegistrationStatus("qqxeyskon") + .withHealthStatus("inkfkbgbz") + .withProtectableObjectType("wxeqocljmygvkzqk") + .withFabricName("ljhnmgixhcmav") + .withExtendedInformation(new GenericContainerExtendedInfo().withRawCertData("oudorhcgyyp") + .withContainerIdentityInfo(new ContainerIdentityInfo().withUniqueName("wy") + .withAadTenantId("ndm") + .withServicePrincipalClientId("hu") + .withAudience("mjkavlgorbmft")) + .withServiceEndpoints(mapOf("nzcyjtotp", "tzfjltf", "bdb", "opv", "ibcysihsgqc", "qgqqihedsvqwthmk", + "ohdxbzlmcmu", "dhohsdtmcdzsuf"))); model = BinaryData.fromObject(model).toObject(GenericContainer.class); - Assertions.assertEquals("pyklyhpluodpvru", model.friendlyName()); - Assertions.assertEquals(BackupManagementType.MAB, model.backupManagementType()); - Assertions.assertEquals("zibt", model.registrationStatus()); - Assertions.assertEquals("stgktst", model.healthStatus()); - Assertions.assertEquals("xeclzedqbcvhzlhp", model.protectableObjectType()); - Assertions.assertEquals("ejwcwwqiok", model.fabricName()); - Assertions.assertEquals("xmojmsvpkjp", model.extendedInformation().rawCertData()); - Assertions.assertEquals("wcfzqljyxgt", model.extendedInformation().containerIdentityInfo().uniqueName()); - Assertions.assertEquals("heyd", model.extendedInformation().containerIdentityInfo().aadTenantId()); - Assertions.assertEquals("dshmkxmaehvbbx", - model.extendedInformation().containerIdentityInfo().servicePrincipalClientId()); - Assertions.assertEquals("iplt", model.extendedInformation().containerIdentityInfo().audience()); - Assertions.assertEquals("tbaxk", model.extendedInformation().serviceEndpoints().get("xywr")); + Assertions.assertEquals("cvhd", model.friendlyName()); + Assertions.assertEquals(BackupManagementType.AZURE_IAAS_VM, model.backupManagementType()); + Assertions.assertEquals("qqxeyskon", model.registrationStatus()); + Assertions.assertEquals("inkfkbgbz", model.healthStatus()); + Assertions.assertEquals("wxeqocljmygvkzqk", model.protectableObjectType()); + Assertions.assertEquals("ljhnmgixhcmav", model.fabricName()); + Assertions.assertEquals("oudorhcgyyp", model.extendedInformation().rawCertData()); + Assertions.assertEquals("wy", model.extendedInformation().containerIdentityInfo().uniqueName()); + Assertions.assertEquals("ndm", model.extendedInformation().containerIdentityInfo().aadTenantId()); + Assertions.assertEquals("hu", model.extendedInformation().containerIdentityInfo().servicePrincipalClientId()); + Assertions.assertEquals("mjkavlgorbmft", model.extendedInformation().containerIdentityInfo().audience()); + Assertions.assertEquals("tzfjltf", model.extendedInformation().serviceEndpoints().get("nzcyjtotp")); } // Use "Map.of" if available diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/GenericProtectedItemTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/GenericProtectedItemTests.java index d4e2e06523ee8..5c5ab7ac3fbcd 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/GenericProtectedItemTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/GenericProtectedItemTests.java @@ -21,82 +21,85 @@ public final class GenericProtectedItemTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { GenericProtectedItem model = BinaryData.fromString( - "{\"protectedItemType\":\"GenericProtectedItem\",\"friendlyName\":\"tsdbpgn\",\"policyState\":\"txhp\",\"protectionState\":\"IRPending\",\"protectedItemId\":4021445942662392747,\"sourceAssociations\":{\"lcuhxwtctyqiklb\":\"b\"},\"fabricName\":\"vplwzbhv\",\"backupManagementType\":\"AzureIaasVM\",\"workloadType\":\"SAPHanaDatabase\",\"containerName\":\"svmkfssxquk\",\"sourceResourceId\":\"plgmgsxnk\",\"policyId\":\"kde\",\"lastRecoveryPoint\":\"2021-08-30T18:12:55Z\",\"backupSetName\":\"lopwiyig\",\"createMode\":\"Recover\",\"deferredDeleteTimeInUTC\":\"2021-07-31T13:07:30Z\",\"isScheduledForDeferredDelete\":false,\"deferredDeleteTimeRemaining\":\"aiuebbaumnyqu\",\"isDeferredDeleteScheduleUpcoming\":false,\"isRehydrate\":true,\"resourceGuardOperationRequests\":[\"a\",\"ckhsmtxpsieb\",\"fhvpesaps\"],\"isArchiveEnabled\":false,\"policyName\":\"mhjjdhtldwkyzx\",\"softDeleteRetentionPeriodInDays\":1677238877,\"sourceLocation\":\"ncwscwsvlxoto\",\"vaultId\":\"wrupqsxvnmicykvc\",\"sourceSideScanInfo\":{\"sourceSideScanStatus\":\"Configured\",\"sourceSideScanSummary\":\"Suspicious\"}}") + "{\"protectedItemType\":\"GenericProtectedItem\",\"friendlyName\":\"zb\",\"policyState\":\"uebbaumnyqup\",\"protectionState\":\"ProtectionStopped\",\"protectedItemId\":2245881351334058994,\"sourceAssociations\":{\"fhvpesaps\":\"ckhsmtxpsieb\",\"uutkncw\":\"rdqmhjjdhtldwkyz\",\"wrupqsxvnmicykvc\":\"cwsvlxotog\"},\"fabricName\":\"vei\",\"backupManagementType\":\"DPM\",\"workloadType\":\"Client\",\"containerName\":\"yfjfcnjbkcn\",\"sourceResourceId\":\"hbttkphyw\",\"policyId\":\"vjtoqnermclfp\",\"lastRecoveryPoint\":\"2021-04-27T07:57:49Z\",\"backupSetName\":\"xus\",\"createMode\":\"Default\",\"deferredDeleteTimeInUTC\":\"2021-02-01T08:33:04Z\",\"isScheduledForDeferredDelete\":false,\"deferredDeleteTimeRemaining\":\"psbjta\",\"isDeferredDeleteScheduleUpcoming\":true,\"isRehydrate\":true,\"resourceGuardOperationRequests\":[\"pmueefjzwfqk\",\"ujidsuyono\"],\"isArchiveEnabled\":true,\"policyName\":\"ocqxtccmg\",\"softDeleteRetentionPeriodInDays\":1054992005,\"sourceLocation\":\"ytlmoyrxvwfud\",\"vaultId\":\"zntxhdz\",\"sourceSideScanInfo\":{\"sourceSideScanStatus\":\"Configured\",\"sourceSideScanSummary\":\"NotApplicable\"}}") .toObject(GenericProtectedItem.class); - Assertions.assertEquals("svmkfssxquk", model.containerName()); - Assertions.assertEquals("plgmgsxnk", model.sourceResourceId()); - Assertions.assertEquals("kde", model.policyId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-30T18:12:55Z"), model.lastRecoveryPoint()); - Assertions.assertEquals("lopwiyig", model.backupSetName()); - Assertions.assertEquals(CreateMode.RECOVER, model.createMode()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-31T13:07:30Z"), model.deferredDeleteTimeInUtc()); + Assertions.assertEquals("yfjfcnjbkcn", model.containerName()); + Assertions.assertEquals("hbttkphyw", model.sourceResourceId()); + Assertions.assertEquals("vjtoqnermclfp", model.policyId()); + Assertions.assertEquals(OffsetDateTime.parse("2021-04-27T07:57:49Z"), model.lastRecoveryPoint()); + Assertions.assertEquals("xus", model.backupSetName()); + Assertions.assertEquals(CreateMode.DEFAULT, model.createMode()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-01T08:33:04Z"), model.deferredDeleteTimeInUtc()); Assertions.assertFalse(model.isScheduledForDeferredDelete()); - Assertions.assertEquals("aiuebbaumnyqu", model.deferredDeleteTimeRemaining()); - Assertions.assertFalse(model.isDeferredDeleteScheduleUpcoming()); + Assertions.assertEquals("psbjta", model.deferredDeleteTimeRemaining()); + Assertions.assertTrue(model.isDeferredDeleteScheduleUpcoming()); Assertions.assertTrue(model.isRehydrate()); - Assertions.assertEquals("a", model.resourceGuardOperationRequests().get(0)); - Assertions.assertFalse(model.isArchiveEnabled()); - Assertions.assertEquals("mhjjdhtldwkyzx", model.policyName()); - Assertions.assertEquals(1677238877, model.softDeleteRetentionPeriodInDays()); + Assertions.assertEquals("pmueefjzwfqk", model.resourceGuardOperationRequests().get(0)); + Assertions.assertTrue(model.isArchiveEnabled()); + Assertions.assertEquals("ocqxtccmg", model.policyName()); + Assertions.assertEquals(1054992005, model.softDeleteRetentionPeriodInDays()); Assertions.assertEquals(SourceSideScanStatus.CONFIGURED, model.sourceSideScanInfo().sourceSideScanStatus()); - Assertions.assertEquals(SourceSideScanSummary.SUSPICIOUS, model.sourceSideScanInfo().sourceSideScanSummary()); - Assertions.assertEquals("tsdbpgn", model.friendlyName()); - Assertions.assertEquals("txhp", model.policyState()); - Assertions.assertEquals(ProtectionState.IRPENDING, model.protectionState()); - Assertions.assertEquals(4021445942662392747L, model.protectedItemId()); - Assertions.assertEquals("b", model.sourceAssociations().get("lcuhxwtctyqiklb")); - Assertions.assertEquals("vplwzbhv", model.fabricName()); + Assertions.assertEquals(SourceSideScanSummary.NOT_APPLICABLE, + model.sourceSideScanInfo().sourceSideScanSummary()); + Assertions.assertEquals("zb", model.friendlyName()); + Assertions.assertEquals("uebbaumnyqup", model.policyState()); + Assertions.assertEquals(ProtectionState.PROTECTION_STOPPED, model.protectionState()); + Assertions.assertEquals(2245881351334058994L, model.protectedItemId()); + Assertions.assertEquals("ckhsmtxpsieb", model.sourceAssociations().get("fhvpesaps")); + Assertions.assertEquals("vei", model.fabricName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - GenericProtectedItem model = new GenericProtectedItem().withContainerName("svmkfssxquk") - .withSourceResourceId("plgmgsxnk") - .withPolicyId("kde") - .withLastRecoveryPoint(OffsetDateTime.parse("2021-08-30T18:12:55Z")) - .withBackupSetName("lopwiyig") - .withCreateMode(CreateMode.RECOVER) - .withDeferredDeleteTimeInUtc(OffsetDateTime.parse("2021-07-31T13:07:30Z")) + GenericProtectedItem model = new GenericProtectedItem().withContainerName("yfjfcnjbkcn") + .withSourceResourceId("hbttkphyw") + .withPolicyId("vjtoqnermclfp") + .withLastRecoveryPoint(OffsetDateTime.parse("2021-04-27T07:57:49Z")) + .withBackupSetName("xus") + .withCreateMode(CreateMode.DEFAULT) + .withDeferredDeleteTimeInUtc(OffsetDateTime.parse("2021-02-01T08:33:04Z")) .withIsScheduledForDeferredDelete(false) - .withDeferredDeleteTimeRemaining("aiuebbaumnyqu") - .withIsDeferredDeleteScheduleUpcoming(false) + .withDeferredDeleteTimeRemaining("psbjta") + .withIsDeferredDeleteScheduleUpcoming(true) .withIsRehydrate(true) - .withResourceGuardOperationRequests(Arrays.asList("a", "ckhsmtxpsieb", "fhvpesaps")) - .withIsArchiveEnabled(false) - .withPolicyName("mhjjdhtldwkyzx") - .withSoftDeleteRetentionPeriodInDays(1677238877) + .withResourceGuardOperationRequests(Arrays.asList("pmueefjzwfqk", "ujidsuyono")) + .withIsArchiveEnabled(true) + .withPolicyName("ocqxtccmg") + .withSoftDeleteRetentionPeriodInDays(1054992005) .withSourceSideScanInfo(new SourceSideScanInfo().withSourceSideScanStatus(SourceSideScanStatus.CONFIGURED) - .withSourceSideScanSummary(SourceSideScanSummary.SUSPICIOUS)) - .withFriendlyName("tsdbpgn") - .withPolicyState("txhp") - .withProtectionState(ProtectionState.IRPENDING) - .withProtectedItemId(4021445942662392747L) - .withSourceAssociations(mapOf("lcuhxwtctyqiklb", "b")) - .withFabricName("vplwzbhv"); + .withSourceSideScanSummary(SourceSideScanSummary.NOT_APPLICABLE)) + .withFriendlyName("zb") + .withPolicyState("uebbaumnyqup") + .withProtectionState(ProtectionState.PROTECTION_STOPPED) + .withProtectedItemId(2245881351334058994L) + .withSourceAssociations( + mapOf("fhvpesaps", "ckhsmtxpsieb", "uutkncw", "rdqmhjjdhtldwkyz", "wrupqsxvnmicykvc", "cwsvlxotog")) + .withFabricName("vei"); model = BinaryData.fromObject(model).toObject(GenericProtectedItem.class); - Assertions.assertEquals("svmkfssxquk", model.containerName()); - Assertions.assertEquals("plgmgsxnk", model.sourceResourceId()); - Assertions.assertEquals("kde", model.policyId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-30T18:12:55Z"), model.lastRecoveryPoint()); - Assertions.assertEquals("lopwiyig", model.backupSetName()); - Assertions.assertEquals(CreateMode.RECOVER, model.createMode()); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-31T13:07:30Z"), model.deferredDeleteTimeInUtc()); + Assertions.assertEquals("yfjfcnjbkcn", model.containerName()); + Assertions.assertEquals("hbttkphyw", model.sourceResourceId()); + Assertions.assertEquals("vjtoqnermclfp", model.policyId()); + Assertions.assertEquals(OffsetDateTime.parse("2021-04-27T07:57:49Z"), model.lastRecoveryPoint()); + Assertions.assertEquals("xus", model.backupSetName()); + Assertions.assertEquals(CreateMode.DEFAULT, model.createMode()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-01T08:33:04Z"), model.deferredDeleteTimeInUtc()); Assertions.assertFalse(model.isScheduledForDeferredDelete()); - Assertions.assertEquals("aiuebbaumnyqu", model.deferredDeleteTimeRemaining()); - Assertions.assertFalse(model.isDeferredDeleteScheduleUpcoming()); + Assertions.assertEquals("psbjta", model.deferredDeleteTimeRemaining()); + Assertions.assertTrue(model.isDeferredDeleteScheduleUpcoming()); Assertions.assertTrue(model.isRehydrate()); - Assertions.assertEquals("a", model.resourceGuardOperationRequests().get(0)); - Assertions.assertFalse(model.isArchiveEnabled()); - Assertions.assertEquals("mhjjdhtldwkyzx", model.policyName()); - Assertions.assertEquals(1677238877, model.softDeleteRetentionPeriodInDays()); + Assertions.assertEquals("pmueefjzwfqk", model.resourceGuardOperationRequests().get(0)); + Assertions.assertTrue(model.isArchiveEnabled()); + Assertions.assertEquals("ocqxtccmg", model.policyName()); + Assertions.assertEquals(1054992005, model.softDeleteRetentionPeriodInDays()); Assertions.assertEquals(SourceSideScanStatus.CONFIGURED, model.sourceSideScanInfo().sourceSideScanStatus()); - Assertions.assertEquals(SourceSideScanSummary.SUSPICIOUS, model.sourceSideScanInfo().sourceSideScanSummary()); - Assertions.assertEquals("tsdbpgn", model.friendlyName()); - Assertions.assertEquals("txhp", model.policyState()); - Assertions.assertEquals(ProtectionState.IRPENDING, model.protectionState()); - Assertions.assertEquals(4021445942662392747L, model.protectedItemId()); - Assertions.assertEquals("b", model.sourceAssociations().get("lcuhxwtctyqiklb")); - Assertions.assertEquals("vplwzbhv", model.fabricName()); + Assertions.assertEquals(SourceSideScanSummary.NOT_APPLICABLE, + model.sourceSideScanInfo().sourceSideScanSummary()); + Assertions.assertEquals("zb", model.friendlyName()); + Assertions.assertEquals("uebbaumnyqup", model.policyState()); + Assertions.assertEquals(ProtectionState.PROTECTION_STOPPED, model.protectionState()); + Assertions.assertEquals(2245881351334058994L, model.protectedItemId()); + Assertions.assertEquals("ckhsmtxpsieb", model.sourceAssociations().get("fhvpesaps")); + Assertions.assertEquals("vei", model.fabricName()); } // Use "Map.of" if available diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/GenericProtectionPolicyTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/GenericProtectionPolicyTests.java index 4cac12201d11d..3c10ee3c7e522 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/GenericProtectionPolicyTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/GenericProtectionPolicyTests.java @@ -25,114 +25,167 @@ public final class GenericProtectionPolicyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { GenericProtectionPolicy model = BinaryData.fromString( - "{\"backupManagementType\":\"GenericProtectionPolicy\",\"subProtectionPolicy\":[{\"policyType\":\"SnapshotCopyOnlyFull\",\"schedulePolicy\":{\"schedulePolicyType\":\"SchedulePolicy\"},\"retentionPolicy\":{\"retentionPolicyType\":\"RetentionPolicy\"},\"tieringPolicy\":{\"yhlfb\":{\"tieringMode\":\"DoNotTier\",\"duration\":455213677,\"durationType\":\"Days\"}},\"snapshotBackupAdditionalDetails\":{\"instantRpRetentionRangeInDays\":774397044,\"instantRPDetails\":\"loxoebqin\",\"userAssignedManagedIdentityDetails\":{\"identityArmId\":\"nwjfu\",\"identityName\":\"lafcbahh\",\"userAssignedIdentityProperties\":{\"clientId\":\"ofoiy\",\"principalId\":\"p\"}}}}],\"timeZone\":\"lkmkkholvdndvi\",\"fabricName\":\"ogphuartvtiu\",\"protectedItemsCount\":1323258140,\"resourceGuardOperationRequests\":[\"hnmnahmnx\",\"k\"]}") + "{\"backupManagementType\":\"GenericProtectionPolicy\",\"subProtectionPolicy\":[{\"policyType\":\"Full\",\"schedulePolicy\":{\"schedulePolicyType\":\"SchedulePolicy\"},\"retentionPolicy\":{\"retentionPolicyType\":\"RetentionPolicy\"},\"tieringPolicy\":{\"hyzdfwrs\":{\"tieringMode\":\"TierAfter\",\"duration\":1015294496,\"durationType\":\"Days\"},\"mairrh\":{\"tieringMode\":\"Invalid\",\"duration\":417832295,\"durationType\":\"Years\"},\"wnpqigtuujwouhd\":{\"tieringMode\":\"TierRecommended\",\"duration\":351420394,\"durationType\":\"Months\"}},\"snapshotBackupAdditionalDetails\":{\"instantRpRetentionRangeInDays\":825421933,\"instantRPDetails\":\"rb\",\"userAssignedManagedIdentityDetails\":{\"identityArmId\":\"sjybvitv\",\"identityName\":\"jyaznumtggmu\",\"userAssignedIdentityProperties\":{\"clientId\":\"hozfn\",\"principalId\":\"exlvxnoakiz\"}}}},{\"policyType\":\"Full\",\"schedulePolicy\":{\"schedulePolicyType\":\"SchedulePolicy\"},\"retentionPolicy\":{\"retentionPolicyType\":\"RetentionPolicy\"},\"tieringPolicy\":{\"guyxlyk\":{\"tieringMode\":\"TierRecommended\",\"duration\":427869575,\"durationType\":\"Days\"}},\"snapshotBackupAdditionalDetails\":{\"instantRpRetentionRangeInDays\":533583922,\"instantRPDetails\":\"zc\",\"userAssignedManagedIdentityDetails\":{\"identityArmId\":\"mpe\",\"identityName\":\"lkexaonwivkcqh\",\"userAssignedIdentityProperties\":{\"clientId\":\"xk\",\"principalId\":\"ccrmmk\"}}}},{\"policyType\":\"Log\",\"schedulePolicy\":{\"schedulePolicyType\":\"SchedulePolicy\"},\"retentionPolicy\":{\"retentionPolicyType\":\"RetentionPolicy\"},\"tieringPolicy\":{\"kfq\":{\"tieringMode\":\"DoNotTier\",\"duration\":884411235,\"durationType\":\"Days\"},\"ldudxjascowv\":{\"tieringMode\":\"TierRecommended\",\"duration\":1039827085,\"durationType\":\"Invalid\"},\"phlkksnm\":{\"tieringMode\":\"DoNotTier\",\"duration\":1883163929,\"durationType\":\"Days\"},\"dkz\":{\"tieringMode\":\"TierAfter\",\"duration\":1022903280,\"durationType\":\"Weeks\"}},\"snapshotBackupAdditionalDetails\":{\"instantRpRetentionRangeInDays\":1360413758,\"instantRPDetails\":\"it\",\"userAssignedManagedIdentityDetails\":{\"identityArmId\":\"olyahluqwqulsut\",\"identityName\":\"bhxykfhyqezvqqug\",\"userAssignedIdentityProperties\":{\"clientId\":\"tb\",\"principalId\":\"exreu\"}}}}],\"timeZone\":\"owtljvfw\",\"fabricName\":\"eagk\",\"protectedItemsCount\":327208124,\"resourceGuardOperationRequests\":[\"qtvbczsu\",\"mdgglmepjpfs\",\"ykgsangpszng\",\"fpgylkve\"]}") .toObject(GenericProtectionPolicy.class); - Assertions.assertEquals(1323258140, model.protectedItemsCount()); - Assertions.assertEquals("hnmnahmnx", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals(PolicyType.SNAPSHOT_COPY_ONLY_FULL, model.subProtectionPolicy().get(0).policyType()); - Assertions.assertEquals(TieringMode.DO_NOT_TIER, - model.subProtectionPolicy().get(0).tieringPolicy().get("yhlfb").tieringMode()); - Assertions.assertEquals(455213677, model.subProtectionPolicy().get(0).tieringPolicy().get("yhlfb").duration()); + Assertions.assertEquals(327208124, model.protectedItemsCount()); + Assertions.assertEquals("qtvbczsu", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals(PolicyType.FULL, model.subProtectionPolicy().get(0).policyType()); + Assertions.assertEquals(TieringMode.TIER_AFTER, + model.subProtectionPolicy().get(0).tieringPolicy().get("hyzdfwrs").tieringMode()); + Assertions.assertEquals(1015294496, + model.subProtectionPolicy().get(0).tieringPolicy().get("hyzdfwrs").duration()); Assertions.assertEquals(RetentionDurationType.DAYS, - model.subProtectionPolicy().get(0).tieringPolicy().get("yhlfb").durationType()); - Assertions.assertEquals(774397044, + model.subProtectionPolicy().get(0).tieringPolicy().get("hyzdfwrs").durationType()); + Assertions.assertEquals(825421933, model.subProtectionPolicy().get(0).snapshotBackupAdditionalDetails().instantRpRetentionRangeInDays()); - Assertions.assertEquals("loxoebqin", + Assertions.assertEquals("rb", model.subProtectionPolicy().get(0).snapshotBackupAdditionalDetails().instantRPDetails()); - Assertions.assertEquals("nwjfu", + Assertions.assertEquals("sjybvitv", model.subProtectionPolicy() .get(0) .snapshotBackupAdditionalDetails() .userAssignedManagedIdentityDetails() .identityArmId()); - Assertions.assertEquals("lafcbahh", + Assertions.assertEquals("jyaznumtggmu", model.subProtectionPolicy() .get(0) .snapshotBackupAdditionalDetails() .userAssignedManagedIdentityDetails() .identityName()); - Assertions.assertEquals("ofoiy", + Assertions.assertEquals("hozfn", model.subProtectionPolicy() .get(0) .snapshotBackupAdditionalDetails() .userAssignedManagedIdentityDetails() .userAssignedIdentityProperties() .clientId()); - Assertions.assertEquals("p", + Assertions.assertEquals("exlvxnoakiz", model.subProtectionPolicy() .get(0) .snapshotBackupAdditionalDetails() .userAssignedManagedIdentityDetails() .userAssignedIdentityProperties() .principalId()); - Assertions.assertEquals("lkmkkholvdndvi", model.timeZone()); - Assertions.assertEquals("ogphuartvtiu", model.fabricName()); + Assertions.assertEquals("owtljvfw", model.timeZone()); + Assertions.assertEquals("eagk", model.fabricName()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - GenericProtectionPolicy model - = new GenericProtectionPolicy().withProtectedItemsCount(1323258140) - .withResourceGuardOperationRequests(Arrays.asList("hnmnahmnx", "k")) - .withSubProtectionPolicy(Arrays.asList(new SubProtectionPolicy() - .withPolicyType(PolicyType.SNAPSHOT_COPY_ONLY_FULL) + GenericProtectionPolicy model = new GenericProtectionPolicy().withProtectedItemsCount(327208124) + .withResourceGuardOperationRequests(Arrays.asList("qtvbczsu", "mdgglmepjpfs", "ykgsangpszng", "fpgylkve")) + .withSubProtectionPolicy(Arrays.asList( + new SubProtectionPolicy().withPolicyType(PolicyType.FULL) .withSchedulePolicy(new SchedulePolicy()) .withRetentionPolicy(new RetentionPolicy()) - .withTieringPolicy(mapOf("yhlfb", - new TieringPolicy().withTieringMode(TieringMode.DO_NOT_TIER) - .withDuration(455213677) - .withDurationType(RetentionDurationType.DAYS))) + .withTieringPolicy(mapOf( + "hyzdfwrs", + new TieringPolicy().withTieringMode(TieringMode.TIER_AFTER) + .withDuration(1015294496) + .withDurationType(RetentionDurationType.DAYS), + "mairrh", + new TieringPolicy().withTieringMode(TieringMode.INVALID) + .withDuration(417832295) + .withDurationType(RetentionDurationType.YEARS), + "wnpqigtuujwouhd", + new TieringPolicy().withTieringMode(TieringMode.TIER_RECOMMENDED) + .withDuration(351420394) + .withDurationType(RetentionDurationType.MONTHS))) .withSnapshotBackupAdditionalDetails( - new SnapshotBackupAdditionalDetails().withInstantRpRetentionRangeInDays(774397044) - .withInstantRPDetails("loxoebqin") + new SnapshotBackupAdditionalDetails().withInstantRpRetentionRangeInDays(825421933) + .withInstantRPDetails("rb") .withUserAssignedManagedIdentityDetails(new UserAssignedManagedIdentityDetails() - .withIdentityArmId("nwjfu") - .withIdentityName("lafcbahh") - .withUserAssignedIdentityProperties( - new UserAssignedIdentityProperties().withClientId("ofoiy").withPrincipalId("p")))))) - .withTimeZone("lkmkkholvdndvi") - .withFabricName("ogphuartvtiu"); + .withIdentityArmId("sjybvitv") + .withIdentityName("jyaznumtggmu") + .withUserAssignedIdentityProperties(new UserAssignedIdentityProperties() + .withClientId("hozfn") + .withPrincipalId("exlvxnoakiz")))), + new SubProtectionPolicy().withPolicyType(PolicyType.FULL) + .withSchedulePolicy(new SchedulePolicy()) + .withRetentionPolicy(new RetentionPolicy()) + .withTieringPolicy(mapOf("guyxlyk", + new TieringPolicy().withTieringMode(TieringMode.TIER_RECOMMENDED) + .withDuration(427869575) + .withDurationType(RetentionDurationType.DAYS))) + .withSnapshotBackupAdditionalDetails(new SnapshotBackupAdditionalDetails() + .withInstantRpRetentionRangeInDays(533583922) + .withInstantRPDetails("zc") + .withUserAssignedManagedIdentityDetails(new UserAssignedManagedIdentityDetails() + .withIdentityArmId("mpe") + .withIdentityName("lkexaonwivkcqh") + .withUserAssignedIdentityProperties( + new UserAssignedIdentityProperties().withClientId("xk").withPrincipalId("ccrmmk")))), + new SubProtectionPolicy().withPolicyType(PolicyType.LOG) + .withSchedulePolicy(new SchedulePolicy()) + .withRetentionPolicy(new RetentionPolicy()) + .withTieringPolicy(mapOf("kfq", + new TieringPolicy().withTieringMode(TieringMode.DO_NOT_TIER) + .withDuration(884411235) + .withDurationType(RetentionDurationType.DAYS), + "ldudxjascowv", + new TieringPolicy().withTieringMode(TieringMode.TIER_RECOMMENDED) + .withDuration(1039827085) + .withDurationType(RetentionDurationType.INVALID), + "phlkksnm", + new TieringPolicy().withTieringMode(TieringMode.DO_NOT_TIER) + .withDuration(1883163929) + .withDurationType(RetentionDurationType.DAYS), + "dkz", + new TieringPolicy().withTieringMode(TieringMode.TIER_AFTER) + .withDuration(1022903280) + .withDurationType(RetentionDurationType.WEEKS))) + .withSnapshotBackupAdditionalDetails(new SnapshotBackupAdditionalDetails() + .withInstantRpRetentionRangeInDays(1360413758) + .withInstantRPDetails("it") + .withUserAssignedManagedIdentityDetails(new UserAssignedManagedIdentityDetails() + .withIdentityArmId("olyahluqwqulsut") + .withIdentityName("bhxykfhyqezvqqug") + .withUserAssignedIdentityProperties( + new UserAssignedIdentityProperties().withClientId("tb").withPrincipalId("exreu")))))) + .withTimeZone("owtljvfw") + .withFabricName("eagk"); model = BinaryData.fromObject(model).toObject(GenericProtectionPolicy.class); - Assertions.assertEquals(1323258140, model.protectedItemsCount()); - Assertions.assertEquals("hnmnahmnx", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals(PolicyType.SNAPSHOT_COPY_ONLY_FULL, model.subProtectionPolicy().get(0).policyType()); - Assertions.assertEquals(TieringMode.DO_NOT_TIER, - model.subProtectionPolicy().get(0).tieringPolicy().get("yhlfb").tieringMode()); - Assertions.assertEquals(455213677, model.subProtectionPolicy().get(0).tieringPolicy().get("yhlfb").duration()); + Assertions.assertEquals(327208124, model.protectedItemsCount()); + Assertions.assertEquals("qtvbczsu", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals(PolicyType.FULL, model.subProtectionPolicy().get(0).policyType()); + Assertions.assertEquals(TieringMode.TIER_AFTER, + model.subProtectionPolicy().get(0).tieringPolicy().get("hyzdfwrs").tieringMode()); + Assertions.assertEquals(1015294496, + model.subProtectionPolicy().get(0).tieringPolicy().get("hyzdfwrs").duration()); Assertions.assertEquals(RetentionDurationType.DAYS, - model.subProtectionPolicy().get(0).tieringPolicy().get("yhlfb").durationType()); - Assertions.assertEquals(774397044, + model.subProtectionPolicy().get(0).tieringPolicy().get("hyzdfwrs").durationType()); + Assertions.assertEquals(825421933, model.subProtectionPolicy().get(0).snapshotBackupAdditionalDetails().instantRpRetentionRangeInDays()); - Assertions.assertEquals("loxoebqin", + Assertions.assertEquals("rb", model.subProtectionPolicy().get(0).snapshotBackupAdditionalDetails().instantRPDetails()); - Assertions.assertEquals("nwjfu", + Assertions.assertEquals("sjybvitv", model.subProtectionPolicy() .get(0) .snapshotBackupAdditionalDetails() .userAssignedManagedIdentityDetails() .identityArmId()); - Assertions.assertEquals("lafcbahh", + Assertions.assertEquals("jyaznumtggmu", model.subProtectionPolicy() .get(0) .snapshotBackupAdditionalDetails() .userAssignedManagedIdentityDetails() .identityName()); - Assertions.assertEquals("ofoiy", + Assertions.assertEquals("hozfn", model.subProtectionPolicy() .get(0) .snapshotBackupAdditionalDetails() .userAssignedManagedIdentityDetails() .userAssignedIdentityProperties() .clientId()); - Assertions.assertEquals("p", + Assertions.assertEquals("exlvxnoakiz", model.subProtectionPolicy() .get(0) .snapshotBackupAdditionalDetails() .userAssignedManagedIdentityDetails() .userAssignedIdentityProperties() .principalId()); - Assertions.assertEquals("lkmkkholvdndvi", model.timeZone()); - Assertions.assertEquals("ogphuartvtiu", model.fabricName()); + Assertions.assertEquals("owtljvfw", model.timeZone()); + Assertions.assertEquals("eagk", model.fabricName()); } // Use "Map.of" if available diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/GenericRecoveryPointTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/GenericRecoveryPointTests.java index 1e1fb408717a2..86c5cee187135 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/GenericRecoveryPointTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/GenericRecoveryPointTests.java @@ -16,20 +16,20 @@ public final class GenericRecoveryPointTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { GenericRecoveryPoint model = BinaryData.fromString( - "{\"objectType\":\"GenericRecoveryPoint\",\"friendlyName\":\"jylwbtlhflsj\",\"recoveryPointType\":\"hszfjvfb\",\"recoveryPointTime\":\"2021-08-02T20:09:46Z\",\"recoveryPointAdditionalInfo\":\"ljagrqmqhl\",\"recoveryPointProperties\":{\"expiryTime\":\"iiiojnalghf\",\"ruleName\":\"tvsexsowuel\",\"isSoftDeleted\":true,\"immutabilityProperties\":{\"isImmutable\":false,\"expiryTime\":\"2021-06-13T10:08:13Z\"}},\"threatStatus\":\"NotAvailable\",\"threatInfo\":[{\"threatTitle\":\"zkw\",\"threatDescription\":\"g\",\"lastUpdatedTime\":\"2021-10-11T18:28:46Z\",\"threatState\":\"InProgress\",\"threatStartTime\":\"2021-03-26T20:29:02Z\",\"threatEndTime\":\"2021-10-04T11:20:51Z\",\"threatURI\":\"sxhqxujx\",\"threatSeverity\":\"Informational\"}]}") + "{\"objectType\":\"GenericRecoveryPoint\",\"friendlyName\":\"nbixxrti\",\"recoveryPointType\":\"cpwpg\",\"recoveryPointTime\":\"2021-08-25T01:58:09Z\",\"recoveryPointAdditionalInfo\":\"ivtsoxfrkenxpm\",\"recoveryPointProperties\":{\"expiryTime\":\"frpmpdnqqskaw\",\"ruleName\":\"qvmmbn\",\"isSoftDeleted\":false,\"immutabilityProperties\":{\"isImmutable\":false,\"expiryTime\":\"2021-07-05T10:15:40Z\"}},\"threatStatus\":\"NotAvailable\",\"threatInfo\":[{\"threatTitle\":\"nitgvkxlz\",\"threatDescription\":\"drf\",\"lastUpdatedTime\":\"2021-06-06T10:57:32Z\",\"threatState\":\"Ignored\",\"threatStartTime\":\"2021-08-14T17:21:29Z\",\"threatEndTime\":\"2021-11-13T05:38:27Z\",\"threatURI\":\"cansymoyqhlwigd\",\"threatSeverity\":\"Warning\"},{\"threatTitle\":\"bxgomfaj\",\"threatDescription\":\"asqvd\",\"lastUpdatedTime\":\"2021-08-06T04:39:44Z\",\"threatState\":\"InProgress\",\"threatStartTime\":\"2021-07-22T12:10:30Z\",\"threatEndTime\":\"2021-01-03T11:42:14Z\",\"threatURI\":\"sqzhzbezkg\",\"threatSeverity\":\"Warning\"}]}") .toObject(GenericRecoveryPoint.class); Assertions.assertEquals(ThreatStatus.NOT_AVAILABLE, model.threatStatus()); - Assertions.assertEquals(ThreatState.IN_PROGRESS, model.threatInfo().get(0).threatState()); - Assertions.assertEquals(ThreatSeverity.INFORMATIONAL, model.threatInfo().get(0).threatSeverity()); - Assertions.assertEquals("jylwbtlhflsj", model.friendlyName()); - Assertions.assertEquals("hszfjvfb", model.recoveryPointType()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-02T20:09:46Z"), model.recoveryPointTime()); - Assertions.assertEquals("ljagrqmqhl", model.recoveryPointAdditionalInfo()); - Assertions.assertEquals("iiiojnalghf", model.recoveryPointProperties().expiryTime()); - Assertions.assertEquals("tvsexsowuel", model.recoveryPointProperties().ruleName()); - Assertions.assertTrue(model.recoveryPointProperties().isSoftDeleted()); + Assertions.assertEquals(ThreatState.IGNORED, model.threatInfo().get(0).threatState()); + Assertions.assertEquals(ThreatSeverity.WARNING, model.threatInfo().get(0).threatSeverity()); + Assertions.assertEquals("nbixxrti", model.friendlyName()); + Assertions.assertEquals("cpwpg", model.recoveryPointType()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-25T01:58:09Z"), model.recoveryPointTime()); + Assertions.assertEquals("ivtsoxfrkenxpm", model.recoveryPointAdditionalInfo()); + Assertions.assertEquals("frpmpdnqqskaw", model.recoveryPointProperties().expiryTime()); + Assertions.assertEquals("qvmmbn", model.recoveryPointProperties().ruleName()); + Assertions.assertFalse(model.recoveryPointProperties().isSoftDeleted()); Assertions.assertFalse(model.recoveryPointProperties().immutabilityProperties().isImmutable()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-13T10:08:13Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-07-05T10:15:40Z"), model.recoveryPointProperties().immutabilityProperties().expiryTime()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/GetRPExtendedInfoRequestResourceTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/GetRPExtendedInfoRequestResourceTests.java new file mode 100644 index 0000000000000..a4e1b639fcb26 --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/GetRPExtendedInfoRequestResourceTests.java @@ -0,0 +1,52 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.recoveryservicesbackup.models.GetRPExtendedInfoRequest; +import com.azure.resourcemanager.recoveryservicesbackup.models.GetRPExtendedInfoRequestResource; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; + +public final class GetRPExtendedInfoRequestResourceTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + GetRPExtendedInfoRequestResource model = BinaryData.fromString( + "{\"location\":\"y\",\"tags\":{\"hkwfbkgozxwop\":\"tctbrxkjzwrgxffm\",\"yg\":\"bydpizqaclnapxb\",\"mfcttux\":\"ugjknf\"},\"eTag\":\"yilflqoiquvrehmr\",\"properties\":{\"recoveryPointIds\":[\"hvsujztc\",\"ytqj\",\"w\"]},\"id\":\"uunfprnjletlxsm\",\"name\":\"pddouifamowaziyn\",\"type\":\"nlqwzdvpiwhx\"}") + .toObject(GetRPExtendedInfoRequestResource.class); + Assertions.assertEquals("y", model.location()); + Assertions.assertEquals("tctbrxkjzwrgxffm", model.tags().get("hkwfbkgozxwop")); + Assertions.assertEquals("yilflqoiquvrehmr", model.eTag()); + Assertions.assertEquals("hvsujztc", model.properties().recoveryPointIds().get(0)); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + GetRPExtendedInfoRequestResource model = new GetRPExtendedInfoRequestResource().withLocation("y") + .withTags(mapOf("hkwfbkgozxwop", "tctbrxkjzwrgxffm", "yg", "bydpizqaclnapxb", "mfcttux", "ugjknf")) + .withETag("yilflqoiquvrehmr") + .withProperties( + new GetRPExtendedInfoRequest().withRecoveryPointIds(Arrays.asList("hvsujztc", "ytqj", "w"))); + model = BinaryData.fromObject(model).toObject(GetRPExtendedInfoRequestResource.class); + Assertions.assertEquals("y", model.location()); + Assertions.assertEquals("tctbrxkjzwrgxffm", model.tags().get("hkwfbkgozxwop")); + Assertions.assertEquals("yilflqoiquvrehmr", model.eTag()); + Assertions.assertEquals("hvsujztc", model.properties().recoveryPointIds().get(0)); + } + + // 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/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/GetRPExtendedInfoRequestTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/GetRPExtendedInfoRequestTests.java new file mode 100644 index 0000000000000..498d5317e8111 --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/GetRPExtendedInfoRequestTests.java @@ -0,0 +1,28 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.recoveryservicesbackup.models.GetRPExtendedInfoRequest; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class GetRPExtendedInfoRequestTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + GetRPExtendedInfoRequest model + = BinaryData.fromString("{\"recoveryPointIds\":[\"zdtmaajquhuxylrj\",\"m\",\"ygjbmzyospspsh\"]}") + .toObject(GetRPExtendedInfoRequest.class); + Assertions.assertEquals("zdtmaajquhuxylrj", model.recoveryPointIds().get(0)); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + GetRPExtendedInfoRequest model = new GetRPExtendedInfoRequest() + .withRecoveryPointIds(Arrays.asList("zdtmaajquhuxylrj", "m", "ygjbmzyospspsh")); + model = BinaryData.fromObject(model).toObject(GetRPExtendedInfoRequest.class); + Assertions.assertEquals("zdtmaajquhuxylrj", model.recoveryPointIds().get(0)); + } +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/GetTieringCostOperationResultsGetWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/GetTieringCostOperationResultsGetWithResponseMockTests.java index 5267883b86bac..69157869a5c61 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/GetTieringCostOperationResultsGetWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/GetTieringCostOperationResultsGetWithResponseMockTests.java @@ -29,7 +29,7 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); TieringCostInfo response = manager.getTieringCostOperationResults() - .getWithResponse("foeajogsy", "wetamfddrvlk", "zwbhnrecc", com.azure.core.util.Context.NONE) + .getWithResponse("imwdcsklkqnqvki", "nmbzmecuy", "zwimbzayspz", com.azure.core.util.Context.NONE) .getValue(); } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/HourlyScheduleTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/HourlyScheduleTests.java index f0b17a660a5ad..0c65807d6df37 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/HourlyScheduleTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/HourlyScheduleTests.java @@ -13,21 +13,21 @@ public final class HourlyScheduleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { HourlySchedule model = BinaryData.fromString( - "{\"interval\":350693393,\"scheduleWindowStartTime\":\"2021-05-29T03:48:47Z\",\"scheduleWindowDuration\":2121804794}") + "{\"interval\":1946464383,\"scheduleWindowStartTime\":\"2021-06-10T12:23:34Z\",\"scheduleWindowDuration\":1839569866}") .toObject(HourlySchedule.class); - Assertions.assertEquals(350693393, model.interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-29T03:48:47Z"), model.scheduleWindowStartTime()); - Assertions.assertEquals(2121804794, model.scheduleWindowDuration()); + Assertions.assertEquals(1946464383, model.interval()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-10T12:23:34Z"), model.scheduleWindowStartTime()); + Assertions.assertEquals(1839569866, model.scheduleWindowDuration()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - HourlySchedule model = new HourlySchedule().withInterval(350693393) - .withScheduleWindowStartTime(OffsetDateTime.parse("2021-05-29T03:48:47Z")) - .withScheduleWindowDuration(2121804794); + HourlySchedule model = new HourlySchedule().withInterval(1946464383) + .withScheduleWindowStartTime(OffsetDateTime.parse("2021-06-10T12:23:34Z")) + .withScheduleWindowDuration(1839569866); model = BinaryData.fromObject(model).toObject(HourlySchedule.class); - Assertions.assertEquals(350693393, model.interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-29T03:48:47Z"), model.scheduleWindowStartTime()); - Assertions.assertEquals(2121804794, model.scheduleWindowDuration()); + Assertions.assertEquals(1946464383, model.interval()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-10T12:23:34Z"), model.scheduleWindowStartTime()); + Assertions.assertEquals(1839569866, model.scheduleWindowDuration()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/IaaSvmContainerTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/IaaSvmContainerTests.java index c91a32596e090..7e13aaf1726a0 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/IaaSvmContainerTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/IaaSvmContainerTests.java @@ -13,36 +13,36 @@ public final class IaaSvmContainerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { IaaSvmContainer model = BinaryData.fromString( - "{\"containerType\":\"IaasVMContainer\",\"virtualMachineId\":\"luudfdlwggytsb\",\"virtualMachineVersion\":\"ovvtgseinqfiu\",\"resourceGroup\":\"qknp\",\"friendlyName\":\"gnepttwqmsni\",\"backupManagementType\":\"DPM\",\"registrationStatus\":\"mqnrojlpijnkr\",\"healthStatus\":\"rddh\",\"protectableObjectType\":\"atiz\",\"sourceLocation\":\"onasxifto\"}") + "{\"containerType\":\"IaasVMContainer\",\"virtualMachineId\":\"lnzonzlrpiqywn\",\"virtualMachineVersion\":\"jtszcof\",\"resourceGroup\":\"e\",\"friendlyName\":\"dhgbjkvre\",\"backupManagementType\":\"MAB\",\"registrationStatus\":\"murvzm\",\"healthStatus\":\"vuanashcxlp\",\"protectableObjectType\":\"erbdk\",\"sourceLocation\":\"vidizozsdb\"}") .toObject(IaaSvmContainer.class); - Assertions.assertEquals("gnepttwqmsni", model.friendlyName()); - Assertions.assertEquals(BackupManagementType.DPM, model.backupManagementType()); - Assertions.assertEquals("mqnrojlpijnkr", model.registrationStatus()); - Assertions.assertEquals("rddh", model.healthStatus()); - Assertions.assertEquals("atiz", model.protectableObjectType()); - Assertions.assertEquals("luudfdlwggytsb", model.virtualMachineId()); - Assertions.assertEquals("ovvtgseinqfiu", model.virtualMachineVersion()); - Assertions.assertEquals("qknp", model.resourceGroup()); + Assertions.assertEquals("dhgbjkvre", model.friendlyName()); + Assertions.assertEquals(BackupManagementType.MAB, model.backupManagementType()); + Assertions.assertEquals("murvzm", model.registrationStatus()); + Assertions.assertEquals("vuanashcxlp", model.healthStatus()); + Assertions.assertEquals("erbdk", model.protectableObjectType()); + Assertions.assertEquals("lnzonzlrpiqywn", model.virtualMachineId()); + Assertions.assertEquals("jtszcof", model.virtualMachineVersion()); + Assertions.assertEquals("e", model.resourceGroup()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - IaaSvmContainer model = new IaaSvmContainer().withFriendlyName("gnepttwqmsni") - .withBackupManagementType(BackupManagementType.DPM) - .withRegistrationStatus("mqnrojlpijnkr") - .withHealthStatus("rddh") - .withProtectableObjectType("atiz") - .withVirtualMachineId("luudfdlwggytsb") - .withVirtualMachineVersion("ovvtgseinqfiu") - .withResourceGroup("qknp"); + IaaSvmContainer model = new IaaSvmContainer().withFriendlyName("dhgbjkvre") + .withBackupManagementType(BackupManagementType.MAB) + .withRegistrationStatus("murvzm") + .withHealthStatus("vuanashcxlp") + .withProtectableObjectType("erbdk") + .withVirtualMachineId("lnzonzlrpiqywn") + .withVirtualMachineVersion("jtszcof") + .withResourceGroup("e"); model = BinaryData.fromObject(model).toObject(IaaSvmContainer.class); - Assertions.assertEquals("gnepttwqmsni", model.friendlyName()); - Assertions.assertEquals(BackupManagementType.DPM, model.backupManagementType()); - Assertions.assertEquals("mqnrojlpijnkr", model.registrationStatus()); - Assertions.assertEquals("rddh", model.healthStatus()); - Assertions.assertEquals("atiz", model.protectableObjectType()); - Assertions.assertEquals("luudfdlwggytsb", model.virtualMachineId()); - Assertions.assertEquals("ovvtgseinqfiu", model.virtualMachineVersion()); - Assertions.assertEquals("qknp", model.resourceGroup()); + Assertions.assertEquals("dhgbjkvre", model.friendlyName()); + Assertions.assertEquals(BackupManagementType.MAB, model.backupManagementType()); + Assertions.assertEquals("murvzm", model.registrationStatus()); + Assertions.assertEquals("vuanashcxlp", model.healthStatus()); + Assertions.assertEquals("erbdk", model.protectableObjectType()); + Assertions.assertEquals("lnzonzlrpiqywn", model.virtualMachineId()); + Assertions.assertEquals("jtszcof", model.virtualMachineVersion()); + Assertions.assertEquals("e", model.resourceGroup()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/IaasVMBackupRequestTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/IaasVMBackupRequestTests.java index 71de8ece4006c..af23a53dc42d1 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/IaasVMBackupRequestTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/IaasVMBackupRequestTests.java @@ -14,16 +14,16 @@ public final class IaasVMBackupRequestTests { public void testDeserialize() throws Exception { IaasVMBackupRequest model = BinaryData .fromString( - "{\"objectType\":\"IaasVMBackupRequest\",\"recoveryPointExpiryTimeInUTC\":\"2021-01-14T11:11:18Z\"}") + "{\"objectType\":\"IaasVMBackupRequest\",\"recoveryPointExpiryTimeInUTC\":\"2021-02-13T23:39:41Z\"}") .toObject(IaasVMBackupRequest.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-14T11:11:18Z"), model.recoveryPointExpiryTimeInUtc()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-13T23:39:41Z"), model.recoveryPointExpiryTimeInUtc()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { IaasVMBackupRequest model - = new IaasVMBackupRequest().withRecoveryPointExpiryTimeInUtc(OffsetDateTime.parse("2021-01-14T11:11:18Z")); + = new IaasVMBackupRequest().withRecoveryPointExpiryTimeInUtc(OffsetDateTime.parse("2021-02-13T23:39:41Z")); model = BinaryData.fromObject(model).toObject(IaasVMBackupRequest.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-14T11:11:18Z"), model.recoveryPointExpiryTimeInUtc()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-13T23:39:41Z"), model.recoveryPointExpiryTimeInUtc()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/IaasVMRPExtendedInfoTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/IaasVMRPExtendedInfoTests.java new file mode 100644 index 0000000000000..4e0a4d9de9d65 --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/IaasVMRPExtendedInfoTests.java @@ -0,0 +1,26 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.recoveryservicesbackup.models.IaasVMRPExtendedInfo; +import org.junit.jupiter.api.Assertions; + +public final class IaasVMRPExtendedInfoTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + IaasVMRPExtendedInfo model = BinaryData.fromString( + "{\"objectType\":\"IaasVMRPExtendedInfo\",\"osDisk\":{\"lun\":758253225,\"name\":\"fshfph\",\"diskSizeInGb\":1830915171,\"storageType\":\"lai\"},\"dataDisks\":[{\"lun\":450217205,\"name\":\"whslwkoj\",\"diskSizeInGb\":157420871,\"storageType\":\"dnpdwrpqaf\"},{\"lun\":516084411,\"name\":\"snnfhyetefyp\",\"diskSizeInGb\":1953030957,\"storageType\":\"tfjgt\"},{\"lun\":1677837091,\"name\":\"vzuyturmlmu\",\"diskSizeInGb\":188673440,\"storageType\":\"bauiropi\"}]}") + .toObject(IaasVMRPExtendedInfo.class); + Assertions.assertEquals(758253225, model.osDisk().lun()); + Assertions.assertEquals("fshfph", model.osDisk().name()); + Assertions.assertEquals(1830915171, model.osDisk().diskSizeInGb()); + Assertions.assertEquals("lai", model.osDisk().storageType()); + Assertions.assertEquals(450217205, model.dataDisks().get(0).lun()); + Assertions.assertEquals("whslwkoj", model.dataDisks().get(0).name()); + Assertions.assertEquals(157420871, model.dataDisks().get(0).diskSizeInGb()); + Assertions.assertEquals("dnpdwrpqaf", model.dataDisks().get(0).storageType()); + } +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/IaasVmProtectableItemTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/IaasVmProtectableItemTests.java index bfb1d07c1c170..823a929ea9afc 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/IaasVmProtectableItemTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/IaasVmProtectableItemTests.java @@ -13,14 +13,14 @@ public final class IaasVmProtectableItemTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { IaasVmProtectableItem model = BinaryData.fromString( - "{\"protectableItemType\":\"IaaSVMProtectableItem\",\"virtualMachineId\":\"mpqu\",\"virtualMachineVersion\":\"yjgyd\",\"resourceGroup\":\"lod\",\"backupManagementType\":\"euzanhs\",\"workloadType\":\"hse\",\"friendlyName\":\"phpzfngqjcl\",\"protectionState\":\"Protecting\"}") + "{\"protectableItemType\":\"IaaSVMProtectableItem\",\"virtualMachineId\":\"r\",\"virtualMachineVersion\":\"ajglzrsubklr\",\"resourceGroup\":\"jnltcetjdvqydi\",\"backupManagementType\":\"qkwaruwd\",\"workloadType\":\"qzxoebwgjxbi\",\"friendlyName\":\"nbau\",\"protectionState\":\"Protecting\"}") .toObject(IaasVmProtectableItem.class); - Assertions.assertEquals("euzanhs", model.backupManagementType()); - Assertions.assertEquals("hse", model.workloadType()); - Assertions.assertEquals("phpzfngqjcl", model.friendlyName()); + Assertions.assertEquals("qkwaruwd", model.backupManagementType()); + Assertions.assertEquals("qzxoebwgjxbi", model.workloadType()); + Assertions.assertEquals("nbau", model.friendlyName()); Assertions.assertEquals(ProtectionStatus.PROTECTING, model.protectionState()); - Assertions.assertEquals("mpqu", model.virtualMachineId()); - Assertions.assertEquals("yjgyd", model.virtualMachineVersion()); - Assertions.assertEquals("lod", model.resourceGroup()); + Assertions.assertEquals("r", model.virtualMachineId()); + Assertions.assertEquals("ajglzrsubklr", model.virtualMachineVersion()); + Assertions.assertEquals("jnltcetjdvqydi", model.resourceGroup()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/IaasVmilrRegistrationRequestTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/IaasVmilrRegistrationRequestTests.java index 71845e6c51599..8646ce2d799ab 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/IaasVmilrRegistrationRequestTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/IaasVmilrRegistrationRequestTests.java @@ -12,24 +12,24 @@ public final class IaasVmilrRegistrationRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { IaasVmilrRegistrationRequest model = BinaryData.fromString( - "{\"objectType\":\"IaasVMILRRegistrationRequest\",\"recoveryPointId\":\"cmwqkchcxwa\",\"virtualMachineId\":\"ewzjkjexfd\",\"initiatorName\":\"vhpsylkkshkbffmb\",\"renewExistingRegistration\":false}") + "{\"objectType\":\"IaasVMILRRegistrationRequest\",\"recoveryPointId\":\"byypsjoqcjenky\",\"virtualMachineId\":\"qzvs\",\"initiatorName\":\"fxjelg\",\"renewExistingRegistration\":false}") .toObject(IaasVmilrRegistrationRequest.class); - Assertions.assertEquals("cmwqkchcxwa", model.recoveryPointId()); - Assertions.assertEquals("ewzjkjexfd", model.virtualMachineId()); - Assertions.assertEquals("vhpsylkkshkbffmb", model.initiatorName()); + Assertions.assertEquals("byypsjoqcjenky", model.recoveryPointId()); + Assertions.assertEquals("qzvs", model.virtualMachineId()); + Assertions.assertEquals("fxjelg", model.initiatorName()); Assertions.assertFalse(model.renewExistingRegistration()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - IaasVmilrRegistrationRequest model = new IaasVmilrRegistrationRequest().withRecoveryPointId("cmwqkchcxwa") - .withVirtualMachineId("ewzjkjexfd") - .withInitiatorName("vhpsylkkshkbffmb") + IaasVmilrRegistrationRequest model = new IaasVmilrRegistrationRequest().withRecoveryPointId("byypsjoqcjenky") + .withVirtualMachineId("qzvs") + .withInitiatorName("fxjelg") .withRenewExistingRegistration(false); model = BinaryData.fromObject(model).toObject(IaasVmilrRegistrationRequest.class); - Assertions.assertEquals("cmwqkchcxwa", model.recoveryPointId()); - Assertions.assertEquals("ewzjkjexfd", model.virtualMachineId()); - Assertions.assertEquals("vhpsylkkshkbffmb", model.initiatorName()); + Assertions.assertEquals("byypsjoqcjenky", model.recoveryPointId()); + Assertions.assertEquals("qzvs", model.virtualMachineId()); + Assertions.assertEquals("fxjelg", model.initiatorName()); Assertions.assertFalse(model.renewExistingRegistration()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/IdentityBasedRestoreDetailsTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/IdentityBasedRestoreDetailsTests.java index fac198f4a13bf..f28a2f3cf2e6d 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/IdentityBasedRestoreDetailsTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/IdentityBasedRestoreDetailsTests.java @@ -12,18 +12,18 @@ public final class IdentityBasedRestoreDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { IdentityBasedRestoreDetails model - = BinaryData.fromString("{\"objectType\":\"vwf\",\"targetStorageAccountId\":\"ayxonsupeujl\"}") + = BinaryData.fromString("{\"objectType\":\"rpq\",\"targetStorageAccountId\":\"mblcouqehbhbcds\"}") .toObject(IdentityBasedRestoreDetails.class); - Assertions.assertEquals("vwf", model.objectType()); - Assertions.assertEquals("ayxonsupeujl", model.targetStorageAccountId()); + Assertions.assertEquals("rpq", model.objectType()); + Assertions.assertEquals("mblcouqehbhbcds", model.targetStorageAccountId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { IdentityBasedRestoreDetails model - = new IdentityBasedRestoreDetails().withObjectType("vwf").withTargetStorageAccountId("ayxonsupeujl"); + = new IdentityBasedRestoreDetails().withObjectType("rpq").withTargetStorageAccountId("mblcouqehbhbcds"); model = BinaryData.fromObject(model).toObject(IdentityBasedRestoreDetails.class); - Assertions.assertEquals("vwf", model.objectType()); - Assertions.assertEquals("ayxonsupeujl", model.targetStorageAccountId()); + Assertions.assertEquals("rpq", model.objectType()); + Assertions.assertEquals("mblcouqehbhbcds", model.targetStorageAccountId()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/IdentityInfoTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/IdentityInfoTests.java index 42a39fd9b9aa5..a718eea159146 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/IdentityInfoTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/IdentityInfoTests.java @@ -11,18 +11,19 @@ public final class IdentityInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - IdentityInfo model - = BinaryData.fromString("{\"isSystemAssignedIdentity\":true,\"managedIdentityResourceId\":\"czu\"}") - .toObject(IdentityInfo.class); + IdentityInfo model = BinaryData + .fromString("{\"isSystemAssignedIdentity\":true,\"managedIdentityResourceId\":\"tyasiibmiybnnust\"}") + .toObject(IdentityInfo.class); Assertions.assertTrue(model.isSystemAssignedIdentity()); - Assertions.assertEquals("czu", model.managedIdentityResourceId()); + Assertions.assertEquals("tyasiibmiybnnust", model.managedIdentityResourceId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - IdentityInfo model = new IdentityInfo().withIsSystemAssignedIdentity(true).withManagedIdentityResourceId("czu"); + IdentityInfo model + = new IdentityInfo().withIsSystemAssignedIdentity(true).withManagedIdentityResourceId("tyasiibmiybnnust"); model = BinaryData.fromObject(model).toObject(IdentityInfo.class); Assertions.assertTrue(model.isSystemAssignedIdentity()); - Assertions.assertEquals("czu", model.managedIdentityResourceId()); + Assertions.assertEquals("tyasiibmiybnnust", model.managedIdentityResourceId()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/IlrRequestResourceTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/IlrRequestResourceTests.java index b0a4fe542b716..242a7a4508e9e 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/IlrRequestResourceTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/IlrRequestResourceTests.java @@ -15,24 +15,23 @@ public final class IlrRequestResourceTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { IlrRequestResource model = BinaryData.fromString( - "{\"location\":\"gkxkbsazgakg\",\"tags\":{\"ylnio\":\"rcmjdmspofapvuh\",\"bzjedmstk\":\"rz\",\"nktwfansnvpdibmi\":\"nlvxbcuii\",\"qnyophzfyls\":\"ostbzbkiwb\"},\"eTag\":\"rpfbcunezz\",\"properties\":{\"objectType\":\"IlrRequest\"},\"id\":\"elfwy\",\"name\":\"wl\",\"type\":\"xjwet\"}") + "{\"location\":\"wijymr\",\"tags\":{\"ozkyewnfnzh\":\"u\",\"jkutycyarnr\":\"hqosmf\",\"ghktdpy\":\"ohguabz\"},\"eTag\":\"hcoeocnhzq\",\"properties\":{\"objectType\":\"IlrRequest\"},\"id\":\"tjzcfyjzpt\",\"name\":\"rl\",\"type\":\"h\"}") .toObject(IlrRequestResource.class); - Assertions.assertEquals("gkxkbsazgakg", model.location()); - Assertions.assertEquals("rcmjdmspofapvuh", model.tags().get("ylnio")); - Assertions.assertEquals("rpfbcunezz", model.eTag()); + Assertions.assertEquals("wijymr", model.location()); + Assertions.assertEquals("u", model.tags().get("ozkyewnfnzh")); + Assertions.assertEquals("hcoeocnhzq", model.eTag()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - IlrRequestResource model = new IlrRequestResource().withLocation("gkxkbsazgakg") - .withTags(mapOf("ylnio", "rcmjdmspofapvuh", "bzjedmstk", "rz", "nktwfansnvpdibmi", "nlvxbcuii", - "qnyophzfyls", "ostbzbkiwb")) - .withETag("rpfbcunezz") + IlrRequestResource model = new IlrRequestResource().withLocation("wijymr") + .withTags(mapOf("ozkyewnfnzh", "u", "jkutycyarnr", "hqosmf", "ghktdpy", "ohguabz")) + .withETag("hcoeocnhzq") .withProperties(new IlrRequest()); model = BinaryData.fromObject(model).toObject(IlrRequestResource.class); - Assertions.assertEquals("gkxkbsazgakg", model.location()); - Assertions.assertEquals("rcmjdmspofapvuh", model.tags().get("ylnio")); - Assertions.assertEquals("rpfbcunezz", model.eTag()); + Assertions.assertEquals("wijymr", model.location()); + Assertions.assertEquals("u", model.tags().get("ozkyewnfnzh")); + Assertions.assertEquals("hcoeocnhzq", model.eTag()); } // Use "Map.of" if available diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/InstantItemRecoveryOperationResultRequestTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/InstantItemRecoveryOperationResultRequestTests.java index 3a8e06c214d4b..8c08c2bef51eb 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/InstantItemRecoveryOperationResultRequestTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/InstantItemRecoveryOperationResultRequestTests.java @@ -12,16 +12,16 @@ public final class InstantItemRecoveryOperationResultRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { InstantItemRecoveryOperationResultRequest model - = BinaryData.fromString("{\"provisionInstantItemRecoveryOperationId\":\"jrgywwpgjxsn\"}") + = BinaryData.fromString("{\"provisionInstantItemRecoveryOperationId\":\"zqjhhhqxuwyvca\"}") .toObject(InstantItemRecoveryOperationResultRequest.class); - Assertions.assertEquals("jrgywwpgjxsn", model.provisionInstantItemRecoveryOperationId()); + Assertions.assertEquals("zqjhhhqxuwyvca", model.provisionInstantItemRecoveryOperationId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { InstantItemRecoveryOperationResultRequest model = new InstantItemRecoveryOperationResultRequest() - .withProvisionInstantItemRecoveryOperationId("jrgywwpgjxsn"); + .withProvisionInstantItemRecoveryOperationId("zqjhhhqxuwyvca"); model = BinaryData.fromObject(model).toObject(InstantItemRecoveryOperationResultRequest.class); - Assertions.assertEquals("jrgywwpgjxsn", model.provisionInstantItemRecoveryOperationId()); + Assertions.assertEquals("zqjhhhqxuwyvca", model.provisionInstantItemRecoveryOperationId()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/InstantRPAdditionalDetailsTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/InstantRPAdditionalDetailsTests.java index dfd9ef1644691..32b32c6f3f6e2 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/InstantRPAdditionalDetailsTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/InstantRPAdditionalDetailsTests.java @@ -11,19 +11,20 @@ public final class InstantRPAdditionalDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - InstantRPAdditionalDetails model - = BinaryData.fromString("{\"azureBackupRGNamePrefix\":\"qw\",\"azureBackupRGNameSuffix\":\"d\"}") - .toObject(InstantRPAdditionalDetails.class); - Assertions.assertEquals("qw", model.azureBackupRGNamePrefix()); - Assertions.assertEquals("d", model.azureBackupRGNameSuffix()); + InstantRPAdditionalDetails model = BinaryData + .fromString("{\"azureBackupRGNamePrefix\":\"qiqyhgfsetzlexbs\",\"azureBackupRGNameSuffix\":\"e\"}") + .toObject(InstantRPAdditionalDetails.class); + Assertions.assertEquals("qiqyhgfsetzlexbs", model.azureBackupRGNamePrefix()); + Assertions.assertEquals("e", model.azureBackupRGNameSuffix()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { InstantRPAdditionalDetails model - = new InstantRPAdditionalDetails().withAzureBackupRGNamePrefix("qw").withAzureBackupRGNameSuffix("d"); + = new InstantRPAdditionalDetails().withAzureBackupRGNamePrefix("qiqyhgfsetzlexbs") + .withAzureBackupRGNameSuffix("e"); model = BinaryData.fromObject(model).toObject(InstantRPAdditionalDetails.class); - Assertions.assertEquals("qw", model.azureBackupRGNamePrefix()); - Assertions.assertEquals("d", model.azureBackupRGNameSuffix()); + Assertions.assertEquals("qiqyhgfsetzlexbs", model.azureBackupRGNamePrefix()); + Assertions.assertEquals("e", model.azureBackupRGNameSuffix()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ItemLevelRecoveryConnectionsListInstantItemRecoveryOperationResMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ItemLevelRecoveryConnectionsListInstantItemRecoveryOperationResMockTests.java deleted file mode 100644 index 60fc9e646dbb2..0000000000000 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ItemLevelRecoveryConnectionsListInstantItemRecoveryOperationResMockTests.java +++ /dev/null @@ -1,48 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.recoveryservicesbackup.generated; - -import com.azure.core.credential.AccessToken; -import com.azure.core.http.HttpClient; -import com.azure.core.management.profile.AzureProfile; -import com.azure.core.models.AzureCloud; -import com.azure.core.test.http.MockHttpResponse; -import com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager; -import com.azure.resourcemanager.recoveryservicesbackup.models.InstantItemRecoveryOperationResultRequest; -import com.azure.resourcemanager.recoveryservicesbackup.models.InstantItemRecoveryTarget; -import java.nio.charset.StandardCharsets; -import java.time.OffsetDateTime; -import org.junit.jupiter.api.Assertions; -import org.junit.jupiter.api.Test; -import reactor.core.publisher.Mono; - -public final class ItemLevelRecoveryConnectionsListInstantItemRecoveryOperationResMockTests { - @Test - public void testListInstantItemRecoveryOperationResultWithResponse() throws Exception { - String responseStr - = "{\"clientScripts\":[{\"scriptContent\":\"eq\",\"scriptExtension\":\"fzqxjo\",\"osType\":\"ohtotryegp\",\"url\":\"xrmexznlw\",\"scriptNameSuffix\":\"fokxk\"},{\"scriptContent\":\"p\",\"scriptExtension\":\"rufgjblcdrmyfcem\",\"osType\":\"zgyykyalug\",\"url\":\"dfqnhttwdowrczfj\",\"scriptNameSuffix\":\"nuxxrkkm\"},{\"scriptContent\":\"nulwempdci\",\"scriptExtension\":\"hjulrsulwzpflu\",\"osType\":\"awmhh\",\"url\":\"ot\",\"scriptNameSuffix\":\"iyrgkoek\"},{\"scriptContent\":\"wxxyxhighctx\",\"scriptExtension\":\"molpcqyde\",\"osType\":\"vskiczd\",\"url\":\"jei\",\"scriptNameSuffix\":\"kgqaboo\"}]}"; - - HttpClient httpClient - = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); - RecoveryServicesBackupManager manager = RecoveryServicesBackupManager.configure() - .withHttpClient(httpClient) - .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), - new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - - InstantItemRecoveryTarget response = manager.itemLevelRecoveryConnections() - .listInstantItemRecoveryOperationResultWithResponse("pihtdmiwjekpt", "caydbjzcqymlcfnz", "mhsurlgwqkpmm", - "pstauol", "wiubmomsgvv", "hvvlrl", - new InstantItemRecoveryOperationResultRequest() - .withProvisionInstantItemRecoveryOperationId("hewjjmajnkdflqio"), - com.azure.core.util.Context.NONE) - .getValue(); - - Assertions.assertEquals("eq", response.clientScripts().get(0).scriptContent()); - Assertions.assertEquals("fzqxjo", response.clientScripts().get(0).scriptExtension()); - Assertions.assertEquals("ohtotryegp", response.clientScripts().get(0).osType()); - Assertions.assertEquals("xrmexznlw", response.clientScripts().get(0).url()); - Assertions.assertEquals("fokxk", response.clientScripts().get(0).scriptNameSuffix()); - } -} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ItemLevelRecoveryConnectionsListInstantItemRecoveryOperationResultWithRMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ItemLevelRecoveryConnectionsListInstantItemRecoveryOperationResultWithRMockTests.java index 927188ce75ae7..7d70f22be6d30 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ItemLevelRecoveryConnectionsListInstantItemRecoveryOperationResultWithRMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ItemLevelRecoveryConnectionsListInstantItemRecoveryOperationResultWithRMockTests.java @@ -22,7 +22,7 @@ public final class ItemLevelRecoveryConnectionsListInstantItemRecoveryOperationR @Test public void testListInstantItemRecoveryOperationResultWithResponse() throws Exception { String responseStr - = "{\"clientScripts\":[{\"scriptContent\":\"eq\",\"scriptExtension\":\"fzqxjo\",\"osType\":\"ohtotryegp\",\"url\":\"xrmexznlw\",\"scriptNameSuffix\":\"fokxk\"},{\"scriptContent\":\"p\",\"scriptExtension\":\"rufgjblcdrmyfcem\",\"osType\":\"zgyykyalug\",\"url\":\"dfqnhttwdowrczfj\",\"scriptNameSuffix\":\"nuxxrkkm\"},{\"scriptContent\":\"nulwempdci\",\"scriptExtension\":\"hjulrsulwzpflu\",\"osType\":\"awmhh\",\"url\":\"ot\",\"scriptNameSuffix\":\"iyrgkoek\"},{\"scriptContent\":\"wxxyxhighctx\",\"scriptExtension\":\"molpcqyde\",\"osType\":\"vskiczd\",\"url\":\"jei\",\"scriptNameSuffix\":\"kgqaboo\"}]}"; + = "{\"clientScripts\":[{\"scriptContent\":\"zcrryklleynqa\",\"scriptExtension\":\"kig\",\"osType\":\"clwa\",\"url\":\"v\",\"scriptNameSuffix\":\"hg\"},{\"scriptContent\":\"hetxdqcmyctajqz\",\"scriptExtension\":\"alec\",\"osType\":\"ibiwksdegyxsb\",\"url\":\"zvoikvntwczf\",\"scriptNameSuffix\":\"ushlcxpblalh\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,17 +32,17 @@ public void testListInstantItemRecoveryOperationResultWithResponse() throws Exce new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); InstantItemRecoveryTarget response = manager.itemLevelRecoveryConnections() - .listInstantItemRecoveryOperationResultWithResponse("pihtdmiwjekpt", "caydbjzcqymlcfnz", "mhsurlgwqkpmm", - "pstauol", "wiubmomsgvv", "hvvlrl", + .listInstantItemRecoveryOperationResultWithResponse("rcwgzwllxzlhhf", "xacfculzjrmhp", "ywvyldqpzfzxsox", + "nunjlzkdr", "cqsxytqqtcmiw", "w", new InstantItemRecoveryOperationResultRequest() - .withProvisionInstantItemRecoveryOperationId("hewjjmajnkdflqio"), + .withProvisionInstantItemRecoveryOperationId("svnmeylajamcajy"), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("eq", response.clientScripts().get(0).scriptContent()); - Assertions.assertEquals("fzqxjo", response.clientScripts().get(0).scriptExtension()); - Assertions.assertEquals("ohtotryegp", response.clientScripts().get(0).osType()); - Assertions.assertEquals("xrmexznlw", response.clientScripts().get(0).url()); - Assertions.assertEquals("fokxk", response.clientScripts().get(0).scriptNameSuffix()); + Assertions.assertEquals("zcrryklleynqa", response.clientScripts().get(0).scriptContent()); + Assertions.assertEquals("kig", response.clientScripts().get(0).scriptExtension()); + Assertions.assertEquals("clwa", response.clientScripts().get(0).osType()); + Assertions.assertEquals("v", response.clientScripts().get(0).url()); + Assertions.assertEquals("hg", response.clientScripts().get(0).scriptNameSuffix()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ItemLevelRecoveryConnectionsProvisionWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ItemLevelRecoveryConnectionsProvisionWithResponseMockTests.java index 846ca8f55b5f7..d3e3efd35f0b9 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ItemLevelRecoveryConnectionsProvisionWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ItemLevelRecoveryConnectionsProvisionWithResponseMockTests.java @@ -32,11 +32,11 @@ public void testProvisionWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.itemLevelRecoveryConnections() - .provisionWithResponse("ci", "kwdvbtb", "ekqhs", "htfpwpqb", "ejuwyqwdqigmghgi", "z", - new IlrRequestResource().withLocation("lujkhn") - .withTags(mapOf("cqtwmlmhjnqtq", "rnkfmk", "kddx", "ahjedvragp", "uavt", "jhhkv", "voffbkkwvdxae", - "tbkewkqynspg")) - .withETag("okmyr") + .provisionWithResponse("ezcoioyj", "mfqzwqdnx", "eedcnwmywx", "qzkvemyzdpczaq", "qifdbmptrwtxz", + "isamonatniz", + new IlrRequestResource().withLocation("r") + .withTags(mapOf("xsrgxfqpan", "qjghrmthsplwst", "gzwhsxyrujmtik", "ceov", "ik", "s")) + .withETag("hzixyqhfnkvy") .withProperties(new IlrRequest()), com.azure.core.util.Context.NONE); diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ItemLevelRecoveryConnectionsRevokeWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ItemLevelRecoveryConnectionsRevokeWithResponseMockTests.java index 40fba8a6f60dd..c198d0c1bd657 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ItemLevelRecoveryConnectionsRevokeWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ItemLevelRecoveryConnectionsRevokeWithResponseMockTests.java @@ -28,8 +28,8 @@ public void testRevokeWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.itemLevelRecoveryConnections() - .revokeWithResponse("udivbxnhsqeaeonq", "lwgdhuruz", "tzarogatmoljiy", "mpinmzvfkneerzzt", "knsjulugd", - "bnhrxlelfjhkeiz", com.azure.core.util.Context.NONE); + .revokeWithResponse("saluzyi", "fcvcewbwq", "dgsjsat", "rncmazdfsqxh", "qmr", "jparnpvgrszrbwt", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobCancellationsTriggerWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobCancellationsTriggerWithResponseMockTests.java index a967a96b185a5..b8f6e50dc8420 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobCancellationsTriggerWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobCancellationsTriggerWithResponseMockTests.java @@ -28,7 +28,7 @@ public void testTriggerWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.jobCancellations() - .triggerWithResponse("tgkppgkqzkcyzmff", "gdyfcixrhlcqvhoe", "goiutgw", com.azure.core.util.Context.NONE); + .triggerWithResponse("mcolmu", "pyvaosdkluwzx", "ygz", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobDetailsGetWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobDetailsGetWithResponseMockTests.java index 892236145277f..5721efe368b03 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobDetailsGetWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobDetailsGetWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class JobDetailsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"jobType\":\"Job\",\"entityFriendlyName\":\"pozo\",\"backupManagementType\":\"DPM\",\"operation\":\"gllixdgbyfgwew\",\"status\":\"j\",\"startTime\":\"2021-06-02T02:50:31Z\",\"endTime\":\"2021-04-04T06:15:41Z\",\"activityId\":\"xsooh\"},\"tags\":{\"zuu\":\"lcsklt\",\"grdcgubsrtmdy\":\"ggzlf\",\"ttjzg\":\"perpi\"},\"location\":\"fcm\",\"eTag\":\"fbodetresrgvts\",\"id\":\"vftwaiv\",\"name\":\"uqk\",\"type\":\"vzgjyp\"}"; + = "{\"properties\":{\"jobType\":\"Job\",\"entityFriendlyName\":\"rbzkuastaxk\",\"backupManagementType\":\"AzureStorage\",\"operation\":\"ulhgltoiz\",\"status\":\"vscksgfyys\",\"startTime\":\"2021-11-06T10:49:20Z\",\"endTime\":\"2021-04-27T10:19:04Z\",\"activityId\":\"fxcz\"},\"tags\":{\"ety\":\"ckwrtw\",\"lhpdhwynctaczcnj\":\"eszr\",\"x\":\"mbbfnv\"},\"location\":\"zovnkrtiklsm\",\"eTag\":\"hql\",\"id\":\"qksyiibhyxwbgbu\",\"name\":\"avqdorbccqcd\",\"type\":\"thojvlirknucos\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,18 +32,18 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); JobResource response = manager.jobDetails() - .getWithResponse("obt", "phtitsffofwanmhk", "cauwazcgwdfriwg", com.azure.core.util.Context.NONE) + .getWithResponse("ucumlddauqml", "feothxu", "rigrjdljlkq", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("pozo", response.properties().entityFriendlyName()); - Assertions.assertEquals(BackupManagementType.DPM, response.properties().backupManagementType()); - Assertions.assertEquals("gllixdgbyfgwew", response.properties().operation()); - Assertions.assertEquals("j", response.properties().status()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-02T02:50:31Z"), response.properties().startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-04T06:15:41Z"), response.properties().endTime()); - Assertions.assertEquals("xsooh", response.properties().activityId()); - Assertions.assertEquals("lcsklt", response.tags().get("zuu")); - Assertions.assertEquals("fcm", response.location()); - Assertions.assertEquals("fbodetresrgvts", response.etag()); + Assertions.assertEquals("rbzkuastaxk", response.properties().entityFriendlyName()); + Assertions.assertEquals(BackupManagementType.AZURE_STORAGE, response.properties().backupManagementType()); + Assertions.assertEquals("ulhgltoiz", response.properties().operation()); + Assertions.assertEquals("vscksgfyys", response.properties().status()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-06T10:49:20Z"), response.properties().startTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-04-27T10:19:04Z"), response.properties().endTime()); + Assertions.assertEquals("fxcz", response.properties().activityId()); + Assertions.assertEquals("ckwrtw", response.tags().get("ety")); + Assertions.assertEquals("zovnkrtiklsm", response.location()); + Assertions.assertEquals("hql", response.etag()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobOperationResultsGetWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobOperationResultsGetWithResponseMockTests.java index 93f19650dfc81..4048b6b67de92 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobOperationResultsGetWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobOperationResultsGetWithResponseMockTests.java @@ -28,7 +28,7 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.jobOperationResults() - .getWithResponse("mkahpqha", "yntacihnco", "mip", "mliqmvlb", com.azure.core.util.Context.NONE); + .getWithResponse("tyevjhu", "nobguqisqsqkpdmi", "y", "pnml", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobResourceInnerTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobResourceInnerTests.java index a91333297dfdc..5f2cc5da81774 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobResourceInnerTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobResourceInnerTests.java @@ -14,17 +14,17 @@ public final class JobResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { JobResourceInner model = BinaryData.fromString( - "{\"properties\":{\"jobType\":\"Job\",\"entityFriendlyName\":\"mvcopexcmjurbuhh\",\"backupManagementType\":\"Invalid\",\"operation\":\"ltqs\",\"status\":\"gtuwkff\",\"startTime\":\"2021-02-16T13:39:33Z\",\"endTime\":\"2021-03-08T22:44:25Z\",\"activityId\":\"sidfv\"},\"tags\":{\"ikayiansharuj\":\"lxnfuijtkbusqogs\"},\"location\":\"iqxf\",\"eTag\":\"j\",\"id\":\"tvwkpqhjpenu\",\"name\":\"gbqe\",\"type\":\"qekewvnqvcd\"}") + "{\"properties\":{\"jobType\":\"Job\",\"entityFriendlyName\":\"gmxitpfi\",\"backupManagementType\":\"MAB\",\"operation\":\"dltkrlg\",\"status\":\"tbdrvcqgue\",\"startTime\":\"2021-05-18T02:25:41Z\",\"endTime\":\"2021-08-13T12:33:46Z\",\"activityId\":\"heqdurelyujlfyou\"},\"tags\":{\"brzmqxucycijoclx\":\"kyeclcdigpta\",\"zjd\":\"utgjcyz\",\"jb\":\"r\",\"w\":\"xjeaoqaqbzgyh\"},\"location\":\"uatbwbqamteuliy\",\"eTag\":\"pkcvmwf\",\"id\":\"xxe\",\"name\":\"myw\",\"type\":\"ormcqmic\"}") .toObject(JobResourceInner.class); - Assertions.assertEquals("mvcopexcmjurbuhh", model.properties().entityFriendlyName()); - Assertions.assertEquals(BackupManagementType.INVALID, model.properties().backupManagementType()); - Assertions.assertEquals("ltqs", model.properties().operation()); - Assertions.assertEquals("gtuwkff", model.properties().status()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-16T13:39:33Z"), model.properties().startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-08T22:44:25Z"), model.properties().endTime()); - Assertions.assertEquals("sidfv", model.properties().activityId()); - Assertions.assertEquals("lxnfuijtkbusqogs", model.tags().get("ikayiansharuj")); - Assertions.assertEquals("iqxf", model.location()); - Assertions.assertEquals("j", model.etag()); + Assertions.assertEquals("gmxitpfi", model.properties().entityFriendlyName()); + Assertions.assertEquals(BackupManagementType.MAB, model.properties().backupManagementType()); + Assertions.assertEquals("dltkrlg", model.properties().operation()); + Assertions.assertEquals("tbdrvcqgue", model.properties().status()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-18T02:25:41Z"), model.properties().startTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-13T12:33:46Z"), model.properties().endTime()); + Assertions.assertEquals("heqdurelyujlfyou", model.properties().activityId()); + Assertions.assertEquals("kyeclcdigpta", model.tags().get("brzmqxucycijoclx")); + Assertions.assertEquals("uatbwbqamteuliy", model.location()); + Assertions.assertEquals("pkcvmwf", model.etag()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobResourceListTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobResourceListTests.java index 4f592ac6be909..f83f0223b9c17 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobResourceListTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobResourceListTests.java @@ -14,20 +14,21 @@ public final class JobResourceListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { JobResourceList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"jobType\":\"Job\",\"entityFriendlyName\":\"kltytmhdroz\",\"backupManagementType\":\"DPM\",\"operation\":\"rlktgjcsggu\",\"status\":\"eml\",\"startTime\":\"2021-01-14T16:20:58Z\",\"endTime\":\"2021-01-18T16:45:58Z\",\"activityId\":\"czg\"},\"tags\":{\"zujksrlsmdes\":\"kklelssxblycs\",\"cdoewbidyv\":\"plpvm\"},\"location\":\"owx\",\"eTag\":\"piudeugfsxzecpa\",\"id\":\"kufykhvu\",\"name\":\"xepmrut\",\"type\":\"nabaobnslujd\"},{\"properties\":{\"jobType\":\"Job\",\"entityFriendlyName\":\"ymkmvguihyw\",\"backupManagementType\":\"Invalid\",\"operation\":\"pphkixkykxds\",\"status\":\"pemmucfxhik\",\"startTime\":\"2021-04-05T14:57:51Z\",\"endTime\":\"2021-03-17T05:18:17Z\",\"activityId\":\"myinc\"},\"tags\":{\"gqcg\":\"riswslmiiio\"},\"location\":\"ugqkctotiowlxteq\",\"eTag\":\"tjgwdtguk\",\"id\":\"nblwphqlkcc\",\"name\":\"zgygqwahoiulwgni\",\"type\":\"prglvawuwzduf\"},{\"properties\":{\"jobType\":\"Job\",\"entityFriendlyName\":\"vlsbbjpmcubkmifo\",\"backupManagementType\":\"AzureSql\",\"operation\":\"bvphavpm\",\"status\":\"rbqgvgov\",\"startTime\":\"2021-11-25T13:45:13Z\",\"endTime\":\"2021-12-07T21:11:37Z\",\"activityId\":\"fjoknss\"},\"tags\":{\"iqmrjgeihfqlggw\":\"qedikdfrd\",\"gt\":\"iwzcxmjpbyeph\",\"myqwcab\":\"ljvrcmyfqipgxhnp\"},\"location\":\"ui\",\"eTag\":\"ey\",\"id\":\"wlpaugmrmfjlrxwt\",\"name\":\"aukhfkvcisiz\",\"type\":\"oaedsxjwuivedwcg\"},{\"properties\":{\"jobType\":\"Job\",\"entityFriendlyName\":\"wxeiqbpsmgomg\",\"backupManagementType\":\"DefaultBackup\",\"operation\":\"jdlrgmsplzgaufc\",\"status\":\"hvn\",\"startTime\":\"2021-03-01T02:25:32Z\",\"endTime\":\"2021-07-08T01:10:37Z\",\"activityId\":\"ympqanxrjkixtwb\"},\"tags\":{\"lhkgmnsghp\":\"ypnyghshxc\",\"ac\":\"ycphdrwjjkhvyo\"},\"location\":\"zvxnqmhrp\",\"eTag\":\"df\",\"id\":\"kois\",\"name\":\"css\",\"type\":\"fxuifmcsypobk\"}],\"nextLink\":\"zr\"}") + "{\"value\":[{\"properties\":{\"jobType\":\"Job\",\"entityFriendlyName\":\"tvx\",\"backupManagementType\":\"AzureWorkload\",\"operation\":\"nepubdpkxyqvgx\",\"status\":\"od\",\"startTime\":\"2021-01-23T13:06:49Z\",\"endTime\":\"2021-10-22T15:53:16Z\",\"activityId\":\"xdxuwsaifmc\"},\"tags\":{\"zlehgcvkbcknjolg\":\"s\"},\"location\":\"yxpvelszerqze\",\"eTag\":\"o\",\"id\":\"intxwa\",\"name\":\"jglzoblqwaafrq\",\"type\":\"lhm\"},{\"properties\":{\"jobType\":\"Job\",\"entityFriendlyName\":\"bhdvafjrqpjiy\",\"backupManagementType\":\"AzureBackupServer\",\"operation\":\"rgaxwmzwdf\",\"status\":\"nrzorpd\",\"startTime\":\"2021-02-17T00:36:33Z\",\"endTime\":\"2021-08-07T16:30:46Z\",\"activityId\":\"qjf\"},\"tags\":{\"aqqilzdcduwjoed\":\"saetgzdgvpyig\",\"ilfjqqacdmk\":\"ngucaifpaurww\"},\"location\":\"xdcvjwcy\",\"eTag\":\"akeciqchx\",\"id\":\"uicdsiwdfmmpzhzz\",\"name\":\"vywrgyngydgr\",\"type\":\"x\"}],\"nextLink\":\"akiqa\"}") .toObject(JobResourceList.class); - Assertions.assertEquals("zr", model.nextLink()); - Assertions.assertEquals("kltytmhdroz", model.value().get(0).properties().entityFriendlyName()); - Assertions.assertEquals(BackupManagementType.DPM, model.value().get(0).properties().backupManagementType()); - Assertions.assertEquals("rlktgjcsggu", model.value().get(0).properties().operation()); - Assertions.assertEquals("eml", model.value().get(0).properties().status()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-14T16:20:58Z"), + Assertions.assertEquals("akiqa", model.nextLink()); + Assertions.assertEquals("tvx", model.value().get(0).properties().entityFriendlyName()); + Assertions.assertEquals(BackupManagementType.AZURE_WORKLOAD, + model.value().get(0).properties().backupManagementType()); + Assertions.assertEquals("nepubdpkxyqvgx", model.value().get(0).properties().operation()); + Assertions.assertEquals("od", model.value().get(0).properties().status()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-23T13:06:49Z"), model.value().get(0).properties().startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-18T16:45:58Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-10-22T15:53:16Z"), model.value().get(0).properties().endTime()); - Assertions.assertEquals("czg", model.value().get(0).properties().activityId()); - Assertions.assertEquals("kklelssxblycs", model.value().get(0).tags().get("zujksrlsmdes")); - Assertions.assertEquals("owx", model.value().get(0).location()); - Assertions.assertEquals("piudeugfsxzecpa", model.value().get(0).etag()); + Assertions.assertEquals("xdxuwsaifmc", model.value().get(0).properties().activityId()); + Assertions.assertEquals("s", model.value().get(0).tags().get("zlehgcvkbcknjolg")); + Assertions.assertEquals("yxpvelszerqze", model.value().get(0).location()); + Assertions.assertEquals("o", model.value().get(0).etag()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobTests.java index 29bb30fe8bc0c..f3a20e78164a8 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobTests.java @@ -14,14 +14,14 @@ public final class JobTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { Job model = BinaryData.fromString( - "{\"jobType\":\"Job\",\"entityFriendlyName\":\"uaucmf\",\"backupManagementType\":\"AzureSql\",\"operation\":\"laxpunj\",\"status\":\"kczvvita\",\"startTime\":\"2021-05-17T09:24:22Z\",\"endTime\":\"2021-08-06T19:39:44Z\",\"activityId\":\"sserxhtvsoxhlwn\"}") + "{\"jobType\":\"Job\",\"entityFriendlyName\":\"jqpkzfbo\",\"backupManagementType\":\"DefaultBackup\",\"operation\":\"cs\",\"status\":\"qwixvcpwnk\",\"startTime\":\"2021-05-06T03:16:14Z\",\"endTime\":\"2021-10-03T23:21:25Z\",\"activityId\":\"falickduoiqtamty\"}") .toObject(Job.class); - Assertions.assertEquals("uaucmf", model.entityFriendlyName()); - Assertions.assertEquals(BackupManagementType.AZURE_SQL, model.backupManagementType()); - Assertions.assertEquals("laxpunj", model.operation()); - Assertions.assertEquals("kczvvita", model.status()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-17T09:24:22Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-06T19:39:44Z"), model.endTime()); - Assertions.assertEquals("sserxhtvsoxhlwn", model.activityId()); + Assertions.assertEquals("jqpkzfbo", model.entityFriendlyName()); + Assertions.assertEquals(BackupManagementType.DEFAULT_BACKUP, model.backupManagementType()); + Assertions.assertEquals("cs", model.operation()); + Assertions.assertEquals("qwixvcpwnk", model.status()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-06T03:16:14Z"), model.startTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-03T23:21:25Z"), model.endTime()); + Assertions.assertEquals("falickduoiqtamty", model.activityId()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobsExportWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobsExportWithResponseMockTests.java index 981fb9c44fc29..d88b269b1f2b1 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobsExportWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/JobsExportWithResponseMockTests.java @@ -27,7 +27,7 @@ public void testExportWithResponse() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.jobs().exportWithResponse("gawgazmxjqi", "h", "jjsbcmlzaahzbhur", com.azure.core.util.Context.NONE); + manager.jobs().exportWithResponse("bfi", "lhxfnsmycj", "wlyeyz", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ListRecoveryPointsRecommendedForMoveRequestTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ListRecoveryPointsRecommendedForMoveRequestTests.java index aa5b2e8d49280..dff3104faffe8 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ListRecoveryPointsRecommendedForMoveRequestTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ListRecoveryPointsRecommendedForMoveRequestTests.java @@ -13,19 +13,20 @@ public final class ListRecoveryPointsRecommendedForMoveRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ListRecoveryPointsRecommendedForMoveRequest model = BinaryData - .fromString("{\"objectType\":\"xcug\",\"excludedRPList\":[\"ooxdjebwpuc\",\"wfvovbv\",\"euecivyhzceuoj\"]}") + .fromString( + "{\"objectType\":\"fxobbcsws\",\"excludedRPList\":[\"riplrbpbewtg\",\"fgb\",\"c\",\"wxzvlvqhjkb\"]}") .toObject(ListRecoveryPointsRecommendedForMoveRequest.class); - Assertions.assertEquals("xcug", model.objectType()); - Assertions.assertEquals("ooxdjebwpuc", model.excludedRPList().get(0)); + Assertions.assertEquals("fxobbcsws", model.objectType()); + Assertions.assertEquals("riplrbpbewtg", model.excludedRPList().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ListRecoveryPointsRecommendedForMoveRequest model - = new ListRecoveryPointsRecommendedForMoveRequest().withObjectType("xcug") - .withExcludedRPList(Arrays.asList("ooxdjebwpuc", "wfvovbv", "euecivyhzceuoj")); + = new ListRecoveryPointsRecommendedForMoveRequest().withObjectType("fxobbcsws") + .withExcludedRPList(Arrays.asList("riplrbpbewtg", "fgb", "c", "wxzvlvqhjkb")); model = BinaryData.fromObject(model).toObject(ListRecoveryPointsRecommendedForMoveRequest.class); - Assertions.assertEquals("xcug", model.objectType()); - Assertions.assertEquals("ooxdjebwpuc", model.excludedRPList().get(0)); + Assertions.assertEquals("fxobbcsws", model.objectType()); + Assertions.assertEquals("riplrbpbewtg", model.excludedRPList().get(0)); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/LogSchedulePolicyTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/LogSchedulePolicyTests.java index 56894eec98f15..5153fbc871bc0 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/LogSchedulePolicyTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/LogSchedulePolicyTests.java @@ -12,15 +12,15 @@ public final class LogSchedulePolicyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { LogSchedulePolicy model = BinaryData - .fromString("{\"schedulePolicyType\":\"LogSchedulePolicy\",\"scheduleFrequencyInMins\":1087326396}") + .fromString("{\"schedulePolicyType\":\"LogSchedulePolicy\",\"scheduleFrequencyInMins\":1142162195}") .toObject(LogSchedulePolicy.class); - Assertions.assertEquals(1087326396, model.scheduleFrequencyInMins()); + Assertions.assertEquals(1142162195, model.scheduleFrequencyInMins()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - LogSchedulePolicy model = new LogSchedulePolicy().withScheduleFrequencyInMins(1087326396); + LogSchedulePolicy model = new LogSchedulePolicy().withScheduleFrequencyInMins(1142162195); model = BinaryData.fromObject(model).toObject(LogSchedulePolicy.class); - Assertions.assertEquals(1087326396, model.scheduleFrequencyInMins()); + Assertions.assertEquals(1142162195, model.scheduleFrequencyInMins()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/LongTermRetentionPolicyTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/LongTermRetentionPolicyTests.java index 357f52b510907..82f7df7a9cd9f 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/LongTermRetentionPolicyTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/LongTermRetentionPolicyTests.java @@ -27,43 +27,42 @@ public final class LongTermRetentionPolicyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { LongTermRetentionPolicy model = BinaryData.fromString( - "{\"retentionPolicyType\":\"LongTermRetentionPolicy\",\"dailySchedule\":{\"retentionTimes\":[\"2021-09-03T09:45:28Z\",\"2021-12-04T12:24:02Z\"],\"retentionDuration\":{\"count\":803310481,\"durationType\":\"Invalid\"}},\"weeklySchedule\":{\"daysOfTheWeek\":[\"Sunday\",\"Thursday\"],\"retentionTimes\":[\"2021-05-26T21:18:05Z\",\"2021-08-08T04:54:28Z\"],\"retentionDuration\":{\"count\":1887871151,\"durationType\":\"Years\"}},\"monthlySchedule\":{\"retentionScheduleFormatType\":\"Invalid\",\"retentionScheduleDaily\":{\"daysOfTheMonth\":[{\"date\":1106573164,\"isLast\":true},{\"date\":578758071,\"isLast\":true},{\"date\":1529964299,\"isLast\":false}]},\"retentionScheduleWeekly\":{\"daysOfTheWeek\":[\"Tuesday\",\"Sunday\",\"Thursday\"],\"weeksOfTheMonth\":[\"Last\",\"Last\",\"Invalid\"]},\"retentionTimes\":[\"2021-02-28T02:21:16Z\"],\"retentionDuration\":{\"count\":1907394577,\"durationType\":\"Months\"}},\"yearlySchedule\":{\"retentionScheduleFormatType\":\"Weekly\",\"monthsOfYear\":[\"February\",\"January\",\"February\"],\"retentionScheduleDaily\":{\"daysOfTheMonth\":[{\"date\":487171106,\"isLast\":true},{\"date\":1546979917,\"isLast\":true},{\"date\":896744832,\"isLast\":true},{\"date\":1513875811,\"isLast\":false}]},\"retentionScheduleWeekly\":{\"daysOfTheWeek\":[\"Sunday\",\"Tuesday\"],\"weeksOfTheMonth\":[\"First\",\"Third\",\"Invalid\",\"Invalid\"]},\"retentionTimes\":[\"2021-10-31T10:07:09Z\"],\"retentionDuration\":{\"count\":1877333822,\"durationType\":\"Invalid\"}}}") + "{\"retentionPolicyType\":\"LongTermRetentionPolicy\",\"dailySchedule\":{\"retentionTimes\":[\"2021-07-05T16:04:23Z\",\"2021-11-10T22:18:11Z\",\"2021-09-22T22:07:53Z\"],\"retentionDuration\":{\"count\":555769396,\"durationType\":\"Weeks\"}},\"weeklySchedule\":{\"daysOfTheWeek\":[\"Tuesday\",\"Sunday\",\"Friday\",\"Friday\"],\"retentionTimes\":[\"2021-12-02T15:53:52Z\",\"2021-04-01T08:06:22Z\",\"2021-02-04T13:27:46Z\",\"2021-09-20T07:57:12Z\"],\"retentionDuration\":{\"count\":1760515250,\"durationType\":\"Days\"}},\"monthlySchedule\":{\"retentionScheduleFormatType\":\"Daily\",\"retentionScheduleDaily\":{\"daysOfTheMonth\":[{\"date\":1686682659,\"isLast\":true}]},\"retentionScheduleWeekly\":{\"daysOfTheWeek\":[\"Monday\",\"Thursday\",\"Saturday\"],\"weeksOfTheMonth\":[\"Third\",\"First\",\"Second\",\"Second\"]},\"retentionTimes\":[\"2021-06-29T02:55:38Z\",\"2021-05-18T08:46:16Z\",\"2020-12-31T11:55:50Z\"],\"retentionDuration\":{\"count\":177878287,\"durationType\":\"Months\"}},\"yearlySchedule\":{\"retentionScheduleFormatType\":\"Daily\",\"monthsOfYear\":[\"March\"],\"retentionScheduleDaily\":{\"daysOfTheMonth\":[{\"date\":611963257,\"isLast\":true},{\"date\":1539234550,\"isLast\":true}]},\"retentionScheduleWeekly\":{\"daysOfTheWeek\":[\"Wednesday\",\"Thursday\",\"Friday\"],\"weeksOfTheMonth\":[\"First\",\"First\",\"Fourth\"]},\"retentionTimes\":[\"2021-04-25T17:11:30Z\",\"2021-01-01T11:59:20Z\"],\"retentionDuration\":{\"count\":177564375,\"durationType\":\"Invalid\"}}}") .toObject(LongTermRetentionPolicy.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-03T09:45:28Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-07-05T16:04:23Z"), model.dailySchedule().retentionTimes().get(0)); - Assertions.assertEquals(803310481, model.dailySchedule().retentionDuration().count()); - Assertions.assertEquals(RetentionDurationType.INVALID, - model.dailySchedule().retentionDuration().durationType()); - Assertions.assertEquals(DayOfWeek.SUNDAY, model.weeklySchedule().daysOfTheWeek().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-26T21:18:05Z"), + Assertions.assertEquals(555769396, model.dailySchedule().retentionDuration().count()); + Assertions.assertEquals(RetentionDurationType.WEEKS, model.dailySchedule().retentionDuration().durationType()); + Assertions.assertEquals(DayOfWeek.TUESDAY, model.weeklySchedule().daysOfTheWeek().get(0)); + Assertions.assertEquals(OffsetDateTime.parse("2021-12-02T15:53:52Z"), model.weeklySchedule().retentionTimes().get(0)); - Assertions.assertEquals(1887871151, model.weeklySchedule().retentionDuration().count()); - Assertions.assertEquals(RetentionDurationType.YEARS, model.weeklySchedule().retentionDuration().durationType()); - Assertions.assertEquals(RetentionScheduleFormat.INVALID, model.monthlySchedule().retentionScheduleFormatType()); - Assertions.assertEquals(1106573164, + Assertions.assertEquals(1760515250, model.weeklySchedule().retentionDuration().count()); + Assertions.assertEquals(RetentionDurationType.DAYS, model.weeklySchedule().retentionDuration().durationType()); + Assertions.assertEquals(RetentionScheduleFormat.DAILY, model.monthlySchedule().retentionScheduleFormatType()); + Assertions.assertEquals(1686682659, model.monthlySchedule().retentionScheduleDaily().daysOfTheMonth().get(0).date()); Assertions.assertTrue(model.monthlySchedule().retentionScheduleDaily().daysOfTheMonth().get(0).isLast()); - Assertions.assertEquals(DayOfWeek.TUESDAY, + Assertions.assertEquals(DayOfWeek.MONDAY, model.monthlySchedule().retentionScheduleWeekly().daysOfTheWeek().get(0)); - Assertions.assertEquals(WeekOfMonth.LAST, + Assertions.assertEquals(WeekOfMonth.THIRD, model.monthlySchedule().retentionScheduleWeekly().weeksOfTheMonth().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-28T02:21:16Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-06-29T02:55:38Z"), model.monthlySchedule().retentionTimes().get(0)); - Assertions.assertEquals(1907394577, model.monthlySchedule().retentionDuration().count()); + Assertions.assertEquals(177878287, model.monthlySchedule().retentionDuration().count()); Assertions.assertEquals(RetentionDurationType.MONTHS, model.monthlySchedule().retentionDuration().durationType()); - Assertions.assertEquals(RetentionScheduleFormat.WEEKLY, model.yearlySchedule().retentionScheduleFormatType()); - Assertions.assertEquals(MonthOfYear.FEBRUARY, model.yearlySchedule().monthsOfYear().get(0)); - Assertions.assertEquals(487171106, + Assertions.assertEquals(RetentionScheduleFormat.DAILY, model.yearlySchedule().retentionScheduleFormatType()); + Assertions.assertEquals(MonthOfYear.MARCH, model.yearlySchedule().monthsOfYear().get(0)); + Assertions.assertEquals(611963257, model.yearlySchedule().retentionScheduleDaily().daysOfTheMonth().get(0).date()); Assertions.assertTrue(model.yearlySchedule().retentionScheduleDaily().daysOfTheMonth().get(0).isLast()); - Assertions.assertEquals(DayOfWeek.SUNDAY, + Assertions.assertEquals(DayOfWeek.WEDNESDAY, model.yearlySchedule().retentionScheduleWeekly().daysOfTheWeek().get(0)); Assertions.assertEquals(WeekOfMonth.FIRST, model.yearlySchedule().retentionScheduleWeekly().weeksOfTheMonth().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-31T10:07:09Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-04-25T17:11:30Z"), model.yearlySchedule().retentionTimes().get(0)); - Assertions.assertEquals(1877333822, model.yearlySchedule().retentionDuration().count()); + Assertions.assertEquals(177564375, model.yearlySchedule().retentionDuration().count()); Assertions.assertEquals(RetentionDurationType.INVALID, model.yearlySchedule().retentionDuration().durationType()); } @@ -72,76 +71,77 @@ public void testDeserialize() throws Exception { public void testSerialize() throws Exception { LongTermRetentionPolicy model = new LongTermRetentionPolicy() .withDailySchedule(new DailyRetentionSchedule() - .withRetentionTimes(Arrays.asList(OffsetDateTime.parse("2021-09-03T09:45:28Z"), - OffsetDateTime.parse("2021-12-04T12:24:02Z"))) + .withRetentionTimes(Arrays.asList(OffsetDateTime.parse("2021-07-05T16:04:23Z"), + OffsetDateTime.parse("2021-11-10T22:18:11Z"), OffsetDateTime.parse("2021-09-22T22:07:53Z"))) .withRetentionDuration( - new RetentionDuration().withCount(803310481).withDurationType(RetentionDurationType.INVALID))) - .withWeeklySchedule( - new WeeklyRetentionSchedule().withDaysOfTheWeek(Arrays.asList(DayOfWeek.SUNDAY, DayOfWeek.THURSDAY)) - .withRetentionTimes(Arrays.asList(OffsetDateTime.parse("2021-05-26T21:18:05Z"), - OffsetDateTime.parse("2021-08-08T04:54:28Z"))) - .withRetentionDuration( - new RetentionDuration().withCount(1887871151).withDurationType(RetentionDurationType.YEARS))) + new RetentionDuration().withCount(555769396).withDurationType(RetentionDurationType.WEEKS))) + .withWeeklySchedule(new WeeklyRetentionSchedule() + .withDaysOfTheWeek( + Arrays.asList(DayOfWeek.TUESDAY, DayOfWeek.SUNDAY, DayOfWeek.FRIDAY, DayOfWeek.FRIDAY)) + .withRetentionTimes(Arrays.asList(OffsetDateTime.parse("2021-12-02T15:53:52Z"), + OffsetDateTime.parse("2021-04-01T08:06:22Z"), OffsetDateTime.parse("2021-02-04T13:27:46Z"), + OffsetDateTime.parse("2021-09-20T07:57:12Z"))) + .withRetentionDuration( + new RetentionDuration().withCount(1760515250).withDurationType(RetentionDurationType.DAYS))) .withMonthlySchedule( - new MonthlyRetentionSchedule().withRetentionScheduleFormatType(RetentionScheduleFormat.INVALID) - .withRetentionScheduleDaily(new DailyRetentionFormat().withDaysOfTheMonth(Arrays.asList( - new Day().withDate(1106573164).withIsLast(true), new Day().withDate(578758071).withIsLast(true), - new Day().withDate(1529964299).withIsLast(false)))) + new MonthlyRetentionSchedule().withRetentionScheduleFormatType(RetentionScheduleFormat.DAILY) + .withRetentionScheduleDaily(new DailyRetentionFormat() + .withDaysOfTheMonth(Arrays.asList(new Day().withDate(1686682659).withIsLast(true)))) .withRetentionScheduleWeekly(new WeeklyRetentionFormat() - .withDaysOfTheWeek(Arrays.asList(DayOfWeek.TUESDAY, DayOfWeek.SUNDAY, DayOfWeek.THURSDAY)) - .withWeeksOfTheMonth(Arrays.asList(WeekOfMonth.LAST, WeekOfMonth.LAST, WeekOfMonth.INVALID))) - .withRetentionTimes(Arrays.asList(OffsetDateTime.parse("2021-02-28T02:21:16Z"))) + .withDaysOfTheWeek(Arrays.asList(DayOfWeek.MONDAY, DayOfWeek.THURSDAY, DayOfWeek.SATURDAY)) + .withWeeksOfTheMonth(Arrays.asList(WeekOfMonth.THIRD, WeekOfMonth.FIRST, WeekOfMonth.SECOND, + WeekOfMonth.SECOND))) + .withRetentionTimes(Arrays.asList(OffsetDateTime.parse("2021-06-29T02:55:38Z"), + OffsetDateTime.parse("2021-05-18T08:46:16Z"), OffsetDateTime.parse("2020-12-31T11:55:50Z"))) .withRetentionDuration( - new RetentionDuration().withCount(1907394577).withDurationType(RetentionDurationType.MONTHS))) + new RetentionDuration().withCount(177878287).withDurationType(RetentionDurationType.MONTHS))) .withYearlySchedule(new YearlyRetentionSchedule() - .withRetentionScheduleFormatType(RetentionScheduleFormat.WEEKLY) - .withMonthsOfYear(Arrays.asList(MonthOfYear.FEBRUARY, MonthOfYear.JANUARY, MonthOfYear.FEBRUARY)) + .withRetentionScheduleFormatType(RetentionScheduleFormat.DAILY) + .withMonthsOfYear(Arrays.asList(MonthOfYear.MARCH)) .withRetentionScheduleDaily(new DailyRetentionFormat().withDaysOfTheMonth(Arrays.asList( - new Day().withDate(487171106).withIsLast(true), new Day().withDate(1546979917).withIsLast(true), - new Day().withDate(896744832).withIsLast(true), new Day().withDate(1513875811).withIsLast(false)))) - .withRetentionScheduleWeekly( - new WeeklyRetentionFormat().withDaysOfTheWeek(Arrays.asList(DayOfWeek.SUNDAY, DayOfWeek.TUESDAY)) - .withWeeksOfTheMonth(Arrays.asList(WeekOfMonth.FIRST, WeekOfMonth.THIRD, WeekOfMonth.INVALID, - WeekOfMonth.INVALID))) - .withRetentionTimes(Arrays.asList(OffsetDateTime.parse("2021-10-31T10:07:09Z"))) + new Day().withDate(611963257).withIsLast(true), new Day().withDate(1539234550).withIsLast(true)))) + .withRetentionScheduleWeekly(new WeeklyRetentionFormat() + .withDaysOfTheWeek(Arrays.asList(DayOfWeek.WEDNESDAY, DayOfWeek.THURSDAY, DayOfWeek.FRIDAY)) + .withWeeksOfTheMonth(Arrays.asList(WeekOfMonth.FIRST, WeekOfMonth.FIRST, WeekOfMonth.FOURTH))) + .withRetentionTimes(Arrays.asList(OffsetDateTime.parse("2021-04-25T17:11:30Z"), + OffsetDateTime.parse("2021-01-01T11:59:20Z"))) .withRetentionDuration( - new RetentionDuration().withCount(1877333822).withDurationType(RetentionDurationType.INVALID))); + new RetentionDuration().withCount(177564375).withDurationType(RetentionDurationType.INVALID))); model = BinaryData.fromObject(model).toObject(LongTermRetentionPolicy.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-03T09:45:28Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-07-05T16:04:23Z"), model.dailySchedule().retentionTimes().get(0)); - Assertions.assertEquals(803310481, model.dailySchedule().retentionDuration().count()); - Assertions.assertEquals(RetentionDurationType.INVALID, - model.dailySchedule().retentionDuration().durationType()); - Assertions.assertEquals(DayOfWeek.SUNDAY, model.weeklySchedule().daysOfTheWeek().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-26T21:18:05Z"), + Assertions.assertEquals(555769396, model.dailySchedule().retentionDuration().count()); + Assertions.assertEquals(RetentionDurationType.WEEKS, model.dailySchedule().retentionDuration().durationType()); + Assertions.assertEquals(DayOfWeek.TUESDAY, model.weeklySchedule().daysOfTheWeek().get(0)); + Assertions.assertEquals(OffsetDateTime.parse("2021-12-02T15:53:52Z"), model.weeklySchedule().retentionTimes().get(0)); - Assertions.assertEquals(1887871151, model.weeklySchedule().retentionDuration().count()); - Assertions.assertEquals(RetentionDurationType.YEARS, model.weeklySchedule().retentionDuration().durationType()); - Assertions.assertEquals(RetentionScheduleFormat.INVALID, model.monthlySchedule().retentionScheduleFormatType()); - Assertions.assertEquals(1106573164, + Assertions.assertEquals(1760515250, model.weeklySchedule().retentionDuration().count()); + Assertions.assertEquals(RetentionDurationType.DAYS, model.weeklySchedule().retentionDuration().durationType()); + Assertions.assertEquals(RetentionScheduleFormat.DAILY, model.monthlySchedule().retentionScheduleFormatType()); + Assertions.assertEquals(1686682659, model.monthlySchedule().retentionScheduleDaily().daysOfTheMonth().get(0).date()); Assertions.assertTrue(model.monthlySchedule().retentionScheduleDaily().daysOfTheMonth().get(0).isLast()); - Assertions.assertEquals(DayOfWeek.TUESDAY, + Assertions.assertEquals(DayOfWeek.MONDAY, model.monthlySchedule().retentionScheduleWeekly().daysOfTheWeek().get(0)); - Assertions.assertEquals(WeekOfMonth.LAST, + Assertions.assertEquals(WeekOfMonth.THIRD, model.monthlySchedule().retentionScheduleWeekly().weeksOfTheMonth().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-28T02:21:16Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-06-29T02:55:38Z"), model.monthlySchedule().retentionTimes().get(0)); - Assertions.assertEquals(1907394577, model.monthlySchedule().retentionDuration().count()); + Assertions.assertEquals(177878287, model.monthlySchedule().retentionDuration().count()); Assertions.assertEquals(RetentionDurationType.MONTHS, model.monthlySchedule().retentionDuration().durationType()); - Assertions.assertEquals(RetentionScheduleFormat.WEEKLY, model.yearlySchedule().retentionScheduleFormatType()); - Assertions.assertEquals(MonthOfYear.FEBRUARY, model.yearlySchedule().monthsOfYear().get(0)); - Assertions.assertEquals(487171106, + Assertions.assertEquals(RetentionScheduleFormat.DAILY, model.yearlySchedule().retentionScheduleFormatType()); + Assertions.assertEquals(MonthOfYear.MARCH, model.yearlySchedule().monthsOfYear().get(0)); + Assertions.assertEquals(611963257, model.yearlySchedule().retentionScheduleDaily().daysOfTheMonth().get(0).date()); Assertions.assertTrue(model.yearlySchedule().retentionScheduleDaily().daysOfTheMonth().get(0).isLast()); - Assertions.assertEquals(DayOfWeek.SUNDAY, + Assertions.assertEquals(DayOfWeek.WEDNESDAY, model.yearlySchedule().retentionScheduleWeekly().daysOfTheWeek().get(0)); Assertions.assertEquals(WeekOfMonth.FIRST, model.yearlySchedule().retentionScheduleWeekly().weeksOfTheMonth().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-31T10:07:09Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-04-25T17:11:30Z"), model.yearlySchedule().retentionTimes().get(0)); - Assertions.assertEquals(1877333822, model.yearlySchedule().retentionDuration().count()); + Assertions.assertEquals(177564375, model.yearlySchedule().retentionDuration().count()); Assertions.assertEquals(RetentionDurationType.INVALID, model.yearlySchedule().retentionDuration().durationType()); } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MabContainerExtendedInfoTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MabContainerExtendedInfoTests.java index 538cb1a88c42a..266dd2c455066 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MabContainerExtendedInfoTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MabContainerExtendedInfoTests.java @@ -15,28 +15,28 @@ public final class MabContainerExtendedInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { MabContainerExtendedInfo model = BinaryData.fromString( - "{\"lastRefreshedAt\":\"2021-02-20T11:59:59Z\",\"backupItemType\":\"Invalid\",\"backupItems\":[\"eekulfgslqubkwd\",\"enr\"],\"policyName\":\"utujba\",\"lastBackupStatus\":\"juohminyflnorw\"}") + "{\"lastRefreshedAt\":\"2021-01-26T18:01:46Z\",\"backupItemType\":\"SAPHanaDatabase\",\"backupItems\":[\"mcjn\"],\"policyName\":\"qdqx\",\"lastBackupStatus\":\"jw\"}") .toObject(MabContainerExtendedInfo.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-20T11:59:59Z"), model.lastRefreshedAt()); - Assertions.assertEquals(BackupItemType.INVALID, model.backupItemType()); - Assertions.assertEquals("eekulfgslqubkwd", model.backupItems().get(0)); - Assertions.assertEquals("utujba", model.policyName()); - Assertions.assertEquals("juohminyflnorw", model.lastBackupStatus()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-26T18:01:46Z"), model.lastRefreshedAt()); + Assertions.assertEquals(BackupItemType.SAPHANA_DATABASE, model.backupItemType()); + Assertions.assertEquals("mcjn", model.backupItems().get(0)); + Assertions.assertEquals("qdqx", model.policyName()); + Assertions.assertEquals("jw", model.lastBackupStatus()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { MabContainerExtendedInfo model - = new MabContainerExtendedInfo().withLastRefreshedAt(OffsetDateTime.parse("2021-02-20T11:59:59Z")) - .withBackupItemType(BackupItemType.INVALID) - .withBackupItems(Arrays.asList("eekulfgslqubkwd", "enr")) - .withPolicyName("utujba") - .withLastBackupStatus("juohminyflnorw"); + = new MabContainerExtendedInfo().withLastRefreshedAt(OffsetDateTime.parse("2021-01-26T18:01:46Z")) + .withBackupItemType(BackupItemType.SAPHANA_DATABASE) + .withBackupItems(Arrays.asList("mcjn")) + .withPolicyName("qdqx") + .withLastBackupStatus("jw"); model = BinaryData.fromObject(model).toObject(MabContainerExtendedInfo.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-20T11:59:59Z"), model.lastRefreshedAt()); - Assertions.assertEquals(BackupItemType.INVALID, model.backupItemType()); - Assertions.assertEquals("eekulfgslqubkwd", model.backupItems().get(0)); - Assertions.assertEquals("utujba", model.policyName()); - Assertions.assertEquals("juohminyflnorw", model.lastBackupStatus()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-26T18:01:46Z"), model.lastRefreshedAt()); + Assertions.assertEquals(BackupItemType.SAPHANA_DATABASE, model.backupItemType()); + Assertions.assertEquals("mcjn", model.backupItems().get(0)); + Assertions.assertEquals("qdqx", model.policyName()); + Assertions.assertEquals("jw", model.lastBackupStatus()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MabErrorInfoTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MabErrorInfoTests.java index 7dc04f16aec46..6bc7477e80aaf 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MabErrorInfoTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MabErrorInfoTests.java @@ -10,8 +10,7 @@ public final class MabErrorInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - MabErrorInfo model = BinaryData.fromString( - "{\"errorString\":\"s\",\"recommendations\":[\"jksghudg\",\"hxogjggsvoujkxi\",\"dafhr\",\"mdyomkxfbvfbh\"]}") + MabErrorInfo model = BinaryData.fromString("{\"errorString\":\"b\",\"recommendations\":[\"pcpahprzrvxhmtf\"]}") .toObject(MabErrorInfo.class); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MabFileFolderProtectedItemExtendedInfoTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MabFileFolderProtectedItemExtendedInfoTests.java index 257a6236c61a1..0cbe70c2ef922 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MabFileFolderProtectedItemExtendedInfoTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MabFileFolderProtectedItemExtendedInfoTests.java @@ -13,22 +13,22 @@ public final class MabFileFolderProtectedItemExtendedInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { MabFileFolderProtectedItemExtendedInfo model = BinaryData.fromString( - "{\"lastRefreshedAt\":\"2021-06-26T13:34:53Z\",\"oldestRecoveryPoint\":\"2021-03-01T08:49:54Z\",\"recoveryPointCount\":247000823}") + "{\"lastRefreshedAt\":\"2021-11-10T21:55:57Z\",\"oldestRecoveryPoint\":\"2021-05-23T22:50:57Z\",\"recoveryPointCount\":848210355}") .toObject(MabFileFolderProtectedItemExtendedInfo.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-26T13:34:53Z"), model.lastRefreshedAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-01T08:49:54Z"), model.oldestRecoveryPoint()); - Assertions.assertEquals(247000823, model.recoveryPointCount()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-10T21:55:57Z"), model.lastRefreshedAt()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-23T22:50:57Z"), model.oldestRecoveryPoint()); + Assertions.assertEquals(848210355, model.recoveryPointCount()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { MabFileFolderProtectedItemExtendedInfo model = new MabFileFolderProtectedItemExtendedInfo() - .withLastRefreshedAt(OffsetDateTime.parse("2021-06-26T13:34:53Z")) - .withOldestRecoveryPoint(OffsetDateTime.parse("2021-03-01T08:49:54Z")) - .withRecoveryPointCount(247000823); + .withLastRefreshedAt(OffsetDateTime.parse("2021-11-10T21:55:57Z")) + .withOldestRecoveryPoint(OffsetDateTime.parse("2021-05-23T22:50:57Z")) + .withRecoveryPointCount(848210355); model = BinaryData.fromObject(model).toObject(MabFileFolderProtectedItemExtendedInfo.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-26T13:34:53Z"), model.lastRefreshedAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-01T08:49:54Z"), model.oldestRecoveryPoint()); - Assertions.assertEquals(247000823, model.recoveryPointCount()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-10T21:55:57Z"), model.lastRefreshedAt()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-23T22:50:57Z"), model.oldestRecoveryPoint()); + Assertions.assertEquals(848210355, model.recoveryPointCount()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MabFileFolderProtectedItemTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MabFileFolderProtectedItemTests.java index e1a4e4bb7be0c..2087fcab319be 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MabFileFolderProtectedItemTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MabFileFolderProtectedItemTests.java @@ -19,98 +19,96 @@ public final class MabFileFolderProtectedItemTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { MabFileFolderProtectedItem model = BinaryData.fromString( - "{\"protectedItemType\":\"MabFileFolderProtectedItem\",\"friendlyName\":\"vnotyfjfcnj\",\"computerName\":\"cn\",\"lastBackupStatus\":\"hbttkphyw\",\"lastBackupTime\":\"2021-09-28T11:00:41Z\",\"protectionState\":\"t\",\"deferredDeleteSyncTimeInUTC\":6718667665096544770,\"extendedInfo\":{\"lastRefreshedAt\":\"2021-01-17T17:58:48Z\",\"oldestRecoveryPoint\":\"2021-09-12T23:58:43Z\",\"recoveryPointCount\":1227353846},\"backupManagementType\":\"AzureBackupServer\",\"workloadType\":\"FileFolder\",\"containerName\":\"scrpabgyepsbjt\",\"sourceResourceId\":\"qugxywpmueefjzwf\",\"policyId\":\"q\",\"lastRecoveryPoint\":\"2021-05-17T21:14:55Z\",\"backupSetName\":\"suyonobglaocq\",\"createMode\":\"Default\",\"deferredDeleteTimeInUTC\":\"2020-12-28T11:59Z\",\"isScheduledForDeferredDelete\":true,\"deferredDeleteTimeRemaining\":\"dxyt\",\"isDeferredDeleteScheduleUpcoming\":true,\"isRehydrate\":false,\"resourceGuardOperationRequests\":[\"wfudwpzntxhdzhl\",\"qj\",\"hckfrlhrx\",\"bkyvp\"],\"isArchiveEnabled\":true,\"policyName\":\"uzbpzkafku\",\"softDeleteRetentionPeriodInDays\":2051758335,\"sourceLocation\":\"nwbmeh\",\"vaultId\":\"eyvjusrtslhspkde\",\"sourceSideScanInfo\":{\"sourceSideScanStatus\":\"ConfigurationFailed\",\"sourceSideScanSummary\":\"NotApplicable\"}}") + "{\"protectedItemType\":\"MabFileFolderProtectedItem\",\"friendlyName\":\"ck\",\"computerName\":\"lhrxsbkyvpyc\",\"lastBackupStatus\":\"uzbpzkafku\",\"lastBackupTime\":\"2021-04-24T14:26:07Z\",\"protectionState\":\"nwbmeh\",\"deferredDeleteSyncTimeInUTC\":8624869790262964589,\"extendedInfo\":{\"lastRefreshedAt\":\"2021-10-17T19:30:49Z\",\"oldestRecoveryPoint\":\"2021-09-13T12:12:28Z\",\"recoveryPointCount\":827975291},\"backupManagementType\":\"AzureSql\",\"workloadType\":\"VM\",\"containerName\":\"deemao\",\"sourceResourceId\":\"xagkvtmelmqkrh\",\"policyId\":\"vljua\",\"lastRecoveryPoint\":\"2021-06-16T01:16:38Z\",\"backupSetName\":\"hcdhmdual\",\"createMode\":\"Invalid\",\"deferredDeleteTimeInUTC\":\"2021-03-14T13:57:14Z\",\"isScheduledForDeferredDelete\":false,\"deferredDeleteTimeRemaining\":\"dmwsrcrgvxpvgomz\",\"isDeferredDeleteScheduleUpcoming\":false,\"isRehydrate\":true,\"resourceGuardOperationRequests\":[\"bnbbeldawkz\"],\"isArchiveEnabled\":true,\"policyName\":\"ourqhakau\",\"softDeleteRetentionPeriodInDays\":1375924345,\"sourceLocation\":\"sfwxosowzxc\",\"vaultId\":\"i\",\"sourceSideScanInfo\":{\"sourceSideScanStatus\":\"NotApplicable\",\"sourceSideScanSummary\":\"NotApplicable\"}}") .toObject(MabFileFolderProtectedItem.class); - Assertions.assertEquals("scrpabgyepsbjt", model.containerName()); - Assertions.assertEquals("qugxywpmueefjzwf", model.sourceResourceId()); - Assertions.assertEquals("q", model.policyId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-17T21:14:55Z"), model.lastRecoveryPoint()); - Assertions.assertEquals("suyonobglaocq", model.backupSetName()); - Assertions.assertEquals(CreateMode.DEFAULT, model.createMode()); - Assertions.assertEquals(OffsetDateTime.parse("2020-12-28T11:59Z"), model.deferredDeleteTimeInUtc()); - Assertions.assertTrue(model.isScheduledForDeferredDelete()); - Assertions.assertEquals("dxyt", model.deferredDeleteTimeRemaining()); - Assertions.assertTrue(model.isDeferredDeleteScheduleUpcoming()); - Assertions.assertFalse(model.isRehydrate()); - Assertions.assertEquals("wfudwpzntxhdzhl", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals("deemao", model.containerName()); + Assertions.assertEquals("xagkvtmelmqkrh", model.sourceResourceId()); + Assertions.assertEquals("vljua", model.policyId()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-16T01:16:38Z"), model.lastRecoveryPoint()); + Assertions.assertEquals("hcdhmdual", model.backupSetName()); + Assertions.assertEquals(CreateMode.INVALID, model.createMode()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-14T13:57:14Z"), model.deferredDeleteTimeInUtc()); + Assertions.assertFalse(model.isScheduledForDeferredDelete()); + Assertions.assertEquals("dmwsrcrgvxpvgomz", model.deferredDeleteTimeRemaining()); + Assertions.assertFalse(model.isDeferredDeleteScheduleUpcoming()); + Assertions.assertTrue(model.isRehydrate()); + Assertions.assertEquals("bnbbeldawkz", model.resourceGuardOperationRequests().get(0)); Assertions.assertTrue(model.isArchiveEnabled()); - Assertions.assertEquals("uzbpzkafku", model.policyName()); - Assertions.assertEquals(2051758335, model.softDeleteRetentionPeriodInDays()); - Assertions.assertEquals(SourceSideScanStatus.CONFIGURATION_FAILED, - model.sourceSideScanInfo().sourceSideScanStatus()); + Assertions.assertEquals("ourqhakau", model.policyName()); + Assertions.assertEquals(1375924345, model.softDeleteRetentionPeriodInDays()); + Assertions.assertEquals(SourceSideScanStatus.NOT_APPLICABLE, model.sourceSideScanInfo().sourceSideScanStatus()); Assertions.assertEquals(SourceSideScanSummary.NOT_APPLICABLE, model.sourceSideScanInfo().sourceSideScanSummary()); - Assertions.assertEquals("vnotyfjfcnj", model.friendlyName()); - Assertions.assertEquals("cn", model.computerName()); - Assertions.assertEquals("hbttkphyw", model.lastBackupStatus()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-28T11:00:41Z"), model.lastBackupTime()); - Assertions.assertEquals("t", model.protectionState()); - Assertions.assertEquals(6718667665096544770L, model.deferredDeleteSyncTimeInUtc()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-17T17:58:48Z"), model.extendedInfo().lastRefreshedAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-12T23:58:43Z"), + Assertions.assertEquals("ck", model.friendlyName()); + Assertions.assertEquals("lhrxsbkyvpyc", model.computerName()); + Assertions.assertEquals("uzbpzkafku", model.lastBackupStatus()); + Assertions.assertEquals(OffsetDateTime.parse("2021-04-24T14:26:07Z"), model.lastBackupTime()); + Assertions.assertEquals("nwbmeh", model.protectionState()); + Assertions.assertEquals(8624869790262964589L, model.deferredDeleteSyncTimeInUtc()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-17T19:30:49Z"), model.extendedInfo().lastRefreshedAt()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-13T12:12:28Z"), model.extendedInfo().oldestRecoveryPoint()); - Assertions.assertEquals(1227353846, model.extendedInfo().recoveryPointCount()); + Assertions.assertEquals(827975291, model.extendedInfo().recoveryPointCount()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - MabFileFolderProtectedItem model = new MabFileFolderProtectedItem().withContainerName("scrpabgyepsbjt") - .withSourceResourceId("qugxywpmueefjzwf") - .withPolicyId("q") - .withLastRecoveryPoint(OffsetDateTime.parse("2021-05-17T21:14:55Z")) - .withBackupSetName("suyonobglaocq") - .withCreateMode(CreateMode.DEFAULT) - .withDeferredDeleteTimeInUtc(OffsetDateTime.parse("2020-12-28T11:59Z")) - .withIsScheduledForDeferredDelete(true) - .withDeferredDeleteTimeRemaining("dxyt") - .withIsDeferredDeleteScheduleUpcoming(true) - .withIsRehydrate(false) - .withResourceGuardOperationRequests(Arrays.asList("wfudwpzntxhdzhl", "qj", "hckfrlhrx", "bkyvp")) + MabFileFolderProtectedItem model = new MabFileFolderProtectedItem().withContainerName("deemao") + .withSourceResourceId("xagkvtmelmqkrh") + .withPolicyId("vljua") + .withLastRecoveryPoint(OffsetDateTime.parse("2021-06-16T01:16:38Z")) + .withBackupSetName("hcdhmdual") + .withCreateMode(CreateMode.INVALID) + .withDeferredDeleteTimeInUtc(OffsetDateTime.parse("2021-03-14T13:57:14Z")) + .withIsScheduledForDeferredDelete(false) + .withDeferredDeleteTimeRemaining("dmwsrcrgvxpvgomz") + .withIsDeferredDeleteScheduleUpcoming(false) + .withIsRehydrate(true) + .withResourceGuardOperationRequests(Arrays.asList("bnbbeldawkz")) .withIsArchiveEnabled(true) - .withPolicyName("uzbpzkafku") - .withSoftDeleteRetentionPeriodInDays(2051758335) + .withPolicyName("ourqhakau") + .withSoftDeleteRetentionPeriodInDays(1375924345) .withSourceSideScanInfo( - new SourceSideScanInfo().withSourceSideScanStatus(SourceSideScanStatus.CONFIGURATION_FAILED) + new SourceSideScanInfo().withSourceSideScanStatus(SourceSideScanStatus.NOT_APPLICABLE) .withSourceSideScanSummary(SourceSideScanSummary.NOT_APPLICABLE)) - .withFriendlyName("vnotyfjfcnj") - .withComputerName("cn") - .withLastBackupStatus("hbttkphyw") - .withLastBackupTime(OffsetDateTime.parse("2021-09-28T11:00:41Z")) - .withProtectionState("t") - .withDeferredDeleteSyncTimeInUtc(6718667665096544770L) + .withFriendlyName("ck") + .withComputerName("lhrxsbkyvpyc") + .withLastBackupStatus("uzbpzkafku") + .withLastBackupTime(OffsetDateTime.parse("2021-04-24T14:26:07Z")) + .withProtectionState("nwbmeh") + .withDeferredDeleteSyncTimeInUtc(8624869790262964589L) .withExtendedInfo(new MabFileFolderProtectedItemExtendedInfo() - .withLastRefreshedAt(OffsetDateTime.parse("2021-01-17T17:58:48Z")) - .withOldestRecoveryPoint(OffsetDateTime.parse("2021-09-12T23:58:43Z")) - .withRecoveryPointCount(1227353846)); + .withLastRefreshedAt(OffsetDateTime.parse("2021-10-17T19:30:49Z")) + .withOldestRecoveryPoint(OffsetDateTime.parse("2021-09-13T12:12:28Z")) + .withRecoveryPointCount(827975291)); model = BinaryData.fromObject(model).toObject(MabFileFolderProtectedItem.class); - Assertions.assertEquals("scrpabgyepsbjt", model.containerName()); - Assertions.assertEquals("qugxywpmueefjzwf", model.sourceResourceId()); - Assertions.assertEquals("q", model.policyId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-17T21:14:55Z"), model.lastRecoveryPoint()); - Assertions.assertEquals("suyonobglaocq", model.backupSetName()); - Assertions.assertEquals(CreateMode.DEFAULT, model.createMode()); - Assertions.assertEquals(OffsetDateTime.parse("2020-12-28T11:59Z"), model.deferredDeleteTimeInUtc()); - Assertions.assertTrue(model.isScheduledForDeferredDelete()); - Assertions.assertEquals("dxyt", model.deferredDeleteTimeRemaining()); - Assertions.assertTrue(model.isDeferredDeleteScheduleUpcoming()); - Assertions.assertFalse(model.isRehydrate()); - Assertions.assertEquals("wfudwpzntxhdzhl", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals("deemao", model.containerName()); + Assertions.assertEquals("xagkvtmelmqkrh", model.sourceResourceId()); + Assertions.assertEquals("vljua", model.policyId()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-16T01:16:38Z"), model.lastRecoveryPoint()); + Assertions.assertEquals("hcdhmdual", model.backupSetName()); + Assertions.assertEquals(CreateMode.INVALID, model.createMode()); + Assertions.assertEquals(OffsetDateTime.parse("2021-03-14T13:57:14Z"), model.deferredDeleteTimeInUtc()); + Assertions.assertFalse(model.isScheduledForDeferredDelete()); + Assertions.assertEquals("dmwsrcrgvxpvgomz", model.deferredDeleteTimeRemaining()); + Assertions.assertFalse(model.isDeferredDeleteScheduleUpcoming()); + Assertions.assertTrue(model.isRehydrate()); + Assertions.assertEquals("bnbbeldawkz", model.resourceGuardOperationRequests().get(0)); Assertions.assertTrue(model.isArchiveEnabled()); - Assertions.assertEquals("uzbpzkafku", model.policyName()); - Assertions.assertEquals(2051758335, model.softDeleteRetentionPeriodInDays()); - Assertions.assertEquals(SourceSideScanStatus.CONFIGURATION_FAILED, - model.sourceSideScanInfo().sourceSideScanStatus()); + Assertions.assertEquals("ourqhakau", model.policyName()); + Assertions.assertEquals(1375924345, model.softDeleteRetentionPeriodInDays()); + Assertions.assertEquals(SourceSideScanStatus.NOT_APPLICABLE, model.sourceSideScanInfo().sourceSideScanStatus()); Assertions.assertEquals(SourceSideScanSummary.NOT_APPLICABLE, model.sourceSideScanInfo().sourceSideScanSummary()); - Assertions.assertEquals("vnotyfjfcnj", model.friendlyName()); - Assertions.assertEquals("cn", model.computerName()); - Assertions.assertEquals("hbttkphyw", model.lastBackupStatus()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-28T11:00:41Z"), model.lastBackupTime()); - Assertions.assertEquals("t", model.protectionState()); - Assertions.assertEquals(6718667665096544770L, model.deferredDeleteSyncTimeInUtc()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-17T17:58:48Z"), model.extendedInfo().lastRefreshedAt()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-12T23:58:43Z"), + Assertions.assertEquals("ck", model.friendlyName()); + Assertions.assertEquals("lhrxsbkyvpyc", model.computerName()); + Assertions.assertEquals("uzbpzkafku", model.lastBackupStatus()); + Assertions.assertEquals(OffsetDateTime.parse("2021-04-24T14:26:07Z"), model.lastBackupTime()); + Assertions.assertEquals("nwbmeh", model.protectionState()); + Assertions.assertEquals(8624869790262964589L, model.deferredDeleteSyncTimeInUtc()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-17T19:30:49Z"), model.extendedInfo().lastRefreshedAt()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-13T12:12:28Z"), model.extendedInfo().oldestRecoveryPoint()); - Assertions.assertEquals(1227353846, model.extendedInfo().recoveryPointCount()); + Assertions.assertEquals(827975291, model.extendedInfo().recoveryPointCount()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MabJobExtendedInfoTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MabJobExtendedInfoTests.java index 230047b11cf39..98e54e52ab8b9 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MabJobExtendedInfoTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MabJobExtendedInfoTests.java @@ -14,14 +14,14 @@ public final class MabJobExtendedInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { MabJobExtendedInfo model = BinaryData.fromString( - "{\"tasksList\":[{\"taskId\":\"hpwpgddeimawzovg\",\"startTime\":\"2021-01-30T08:36:14Z\",\"endTime\":\"2021-01-03T22:32:44Z\",\"duration\":\"PT99H14M36S\",\"status\":\"cjc\"}],\"propertyBag\":{\"wcoml\":\"bwsnsqow\"},\"dynamicErrorMessage\":\"ytwvczcswkacve\"}") + "{\"tasksList\":[{\"taskId\":\"xzcmjhngxno\",\"startTime\":\"2021-11-07T12:11:11Z\",\"endTime\":\"2021-11-30T21:38:03Z\",\"duration\":\"PT214H55M32S\",\"status\":\"jevhdlmydidw\"},{\"taskId\":\"pfwwt\",\"startTime\":\"2021-05-13T01:39:31Z\",\"endTime\":\"2020-12-22T04:54:50Z\",\"duration\":\"PT159H5M10S\",\"status\":\"hmwcdbck\"}],\"propertyBag\":{\"jzrbhtmeplv\":\"kxkxhnegk\",\"pgsn\":\"kaobrl\",\"a\":\"agnchjhgemuowaky\"},\"dynamicErrorMessage\":\"jymxcgqt\"}") .toObject(MabJobExtendedInfo.class); - Assertions.assertEquals("hpwpgddeimawzovg", model.tasksList().get(0).taskId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-30T08:36:14Z"), model.tasksList().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-03T22:32:44Z"), model.tasksList().get(0).endTime()); - Assertions.assertEquals(Duration.parse("PT99H14M36S"), model.tasksList().get(0).duration()); - Assertions.assertEquals("cjc", model.tasksList().get(0).status()); - Assertions.assertEquals("bwsnsqow", model.propertyBag().get("wcoml")); - Assertions.assertEquals("ytwvczcswkacve", model.dynamicErrorMessage()); + Assertions.assertEquals("xzcmjhngxno", model.tasksList().get(0).taskId()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-07T12:11:11Z"), model.tasksList().get(0).startTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-30T21:38:03Z"), model.tasksList().get(0).endTime()); + Assertions.assertEquals(Duration.parse("PT214H55M32S"), model.tasksList().get(0).duration()); + Assertions.assertEquals("jevhdlmydidw", model.tasksList().get(0).status()); + Assertions.assertEquals("kxkxhnegk", model.propertyBag().get("jzrbhtmeplv")); + Assertions.assertEquals("jymxcgqt", model.dynamicErrorMessage()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MabJobTaskDetailsTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MabJobTaskDetailsTests.java index 844219fdf9fd6..2e3ecb72ed520 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MabJobTaskDetailsTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MabJobTaskDetailsTests.java @@ -14,12 +14,12 @@ public final class MabJobTaskDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { MabJobTaskDetails model = BinaryData.fromString( - "{\"taskId\":\"fdv\",\"startTime\":\"2021-09-10T06:38:11Z\",\"endTime\":\"2021-06-19T14:56:15Z\",\"duration\":\"PT121H57M15S\",\"status\":\"xt\"}") + "{\"taskId\":\"drclssoljome\",\"startTime\":\"2021-04-14T06:24:59Z\",\"endTime\":\"2021-08-30T05:33:12Z\",\"duration\":\"PT22H16M25S\",\"status\":\"vgjcodkkg\"}") .toObject(MabJobTaskDetails.class); - Assertions.assertEquals("fdv", model.taskId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-10T06:38:11Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-19T14:56:15Z"), model.endTime()); - Assertions.assertEquals(Duration.parse("PT121H57M15S"), model.duration()); - Assertions.assertEquals("xt", model.status()); + Assertions.assertEquals("drclssoljome", model.taskId()); + Assertions.assertEquals(OffsetDateTime.parse("2021-04-14T06:24:59Z"), model.startTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-30T05:33:12Z"), model.endTime()); + Assertions.assertEquals(Duration.parse("PT22H16M25S"), model.duration()); + Assertions.assertEquals("vgjcodkkg", model.status()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MabJobTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MabJobTests.java index c0823bcfbed51..efaafe73ef004 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MabJobTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MabJobTests.java @@ -18,28 +18,28 @@ public final class MabJobTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { MabJob model = BinaryData.fromString( - "{\"jobType\":\"MabJob\",\"duration\":\"PT59H44M43S\",\"actionsInfo\":[\"Cancellable\",\"Cancellable\",\"Cancellable\",\"Retriable\"],\"mabServerName\":\"tlgy\",\"mabServerType\":\"AzureSqlContainer\",\"workloadType\":\"Exchange\",\"errorDetails\":[{\"errorString\":\"pxy\",\"recommendations\":[\"iqge\",\"arbgjekgl\"]}],\"extendedInfo\":{\"tasksList\":[{\"taskId\":\"lidwcwvmzegjon\",\"startTime\":\"2021-11-01T23:59:01Z\",\"endTime\":\"2021-09-01T17:18:48Z\",\"duration\":\"PT146H11M50S\",\"status\":\"n\"},{\"taskId\":\"brfkspz\",\"startTime\":\"2021-07-07T14:38:55Z\",\"endTime\":\"2021-05-16T14:03:13Z\",\"duration\":\"PT152H19M18S\",\"status\":\"itdigsxcdgljp\"},{\"taskId\":\"euachtomfl\",\"startTime\":\"2021-06-15T16:37:02Z\",\"endTime\":\"2021-07-09T14:11:36Z\",\"duration\":\"PT197H20M35S\",\"status\":\"mdgycxn\"}],\"propertyBag\":{\"pedwqsl\":\"whqjjyslurlpshhk\",\"ndcbrwi\":\"rhmpqvwwsk\"},\"dynamicErrorMessage\":\"vqejosovy\"},\"entityFriendlyName\":\"leaesi\",\"backupManagementType\":\"AzureIaasVM\",\"operation\":\"ljqobbpihehcecyb\",\"status\":\"qbr\",\"startTime\":\"2021-11-01T08:52:29Z\",\"endTime\":\"2020-12-31T15:46:22Z\",\"activityId\":\"dlvykfrex\"}") + "{\"jobType\":\"MabJob\",\"duration\":\"PT41H36M26S\",\"actionsInfo\":[\"Cancellable\"],\"mabServerName\":\"otz\",\"mabServerType\":\"DPMContainer\",\"workloadType\":\"SAPHanaDatabase\",\"errorDetails\":[{\"errorString\":\"ryf\",\"recommendations\":[\"asigrowsocne\",\"uygdjboqgr\"]}],\"extendedInfo\":{\"tasksList\":[{\"taskId\":\"qevadrmmw\",\"startTime\":\"2021-08-07T05:06:34Z\",\"endTime\":\"2021-06-28T17:19:04Z\",\"duration\":\"PT43H5M20S\",\"status\":\"z\"},{\"taskId\":\"iidisczskoswoqiq\",\"startTime\":\"2021-01-11T05:00:37Z\",\"endTime\":\"2021-11-05T09:28:24Z\",\"duration\":\"PT100H19M4S\",\"status\":\"krrcoiisbamnpp\"}],\"propertyBag\":{\"zxuizhyhnepkpe\":\"kuztdsbezaxyfu\",\"xdazv\":\"iarxqiubxdukec\",\"dblnsntrp\":\"hctmmkosz\"},\"dynamicErrorMessage\":\"qkio\"},\"entityFriendlyName\":\"btfmhklbnldpvcbh\",\"backupManagementType\":\"Invalid\",\"operation\":\"quwusq\",\"status\":\"trpb\",\"startTime\":\"2021-05-29T20:09:55Z\",\"endTime\":\"2021-02-20T07:50:30Z\",\"activityId\":\"atvlmbjwcolbm\"}") .toObject(MabJob.class); - Assertions.assertEquals("leaesi", model.entityFriendlyName()); - Assertions.assertEquals(BackupManagementType.AZURE_IAAS_VM, model.backupManagementType()); - Assertions.assertEquals("ljqobbpihehcecyb", model.operation()); - Assertions.assertEquals("qbr", model.status()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-01T08:52:29Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2020-12-31T15:46:22Z"), model.endTime()); - Assertions.assertEquals("dlvykfrex", model.activityId()); - Assertions.assertEquals(Duration.parse("PT59H44M43S"), model.duration()); + Assertions.assertEquals("btfmhklbnldpvcbh", model.entityFriendlyName()); + Assertions.assertEquals(BackupManagementType.INVALID, model.backupManagementType()); + Assertions.assertEquals("quwusq", model.operation()); + Assertions.assertEquals("trpb", model.status()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-29T20:09:55Z"), model.startTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-20T07:50:30Z"), model.endTime()); + Assertions.assertEquals("atvlmbjwcolbm", model.activityId()); + Assertions.assertEquals(Duration.parse("PT41H36M26S"), model.duration()); Assertions.assertEquals(JobSupportedAction.CANCELLABLE, model.actionsInfo().get(0)); - Assertions.assertEquals("tlgy", model.mabServerName()); - Assertions.assertEquals(MabServerType.AZURE_SQL_CONTAINER, model.mabServerType()); - Assertions.assertEquals(WorkloadType.EXCHANGE, model.workloadType()); - Assertions.assertEquals("lidwcwvmzegjon", model.extendedInfo().tasksList().get(0).taskId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-01T23:59:01Z"), + Assertions.assertEquals("otz", model.mabServerName()); + Assertions.assertEquals(MabServerType.DPMCONTAINER, model.mabServerType()); + Assertions.assertEquals(WorkloadType.SAPHANA_DATABASE, model.workloadType()); + Assertions.assertEquals("qevadrmmw", model.extendedInfo().tasksList().get(0).taskId()); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-07T05:06:34Z"), model.extendedInfo().tasksList().get(0).startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-01T17:18:48Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-06-28T17:19:04Z"), model.extendedInfo().tasksList().get(0).endTime()); - Assertions.assertEquals(Duration.parse("PT146H11M50S"), model.extendedInfo().tasksList().get(0).duration()); - Assertions.assertEquals("n", model.extendedInfo().tasksList().get(0).status()); - Assertions.assertEquals("whqjjyslurlpshhk", model.extendedInfo().propertyBag().get("pedwqsl")); - Assertions.assertEquals("vqejosovy", model.extendedInfo().dynamicErrorMessage()); + Assertions.assertEquals(Duration.parse("PT43H5M20S"), model.extendedInfo().tasksList().get(0).duration()); + Assertions.assertEquals("z", model.extendedInfo().tasksList().get(0).status()); + Assertions.assertEquals("kuztdsbezaxyfu", model.extendedInfo().propertyBag().get("zxuizhyhnepkpe")); + Assertions.assertEquals("qkio", model.extendedInfo().dynamicErrorMessage()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MabProtectionPolicyTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MabProtectionPolicyTests.java index b03c88373042c..8f64a12cc3890 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MabProtectionPolicyTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MabProtectionPolicyTests.java @@ -15,20 +15,20 @@ public final class MabProtectionPolicyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { MabProtectionPolicy model = BinaryData.fromString( - "{\"backupManagementType\":\"MAB\",\"schedulePolicy\":{\"schedulePolicyType\":\"SchedulePolicy\"},\"retentionPolicy\":{\"retentionPolicyType\":\"RetentionPolicy\"},\"protectedItemsCount\":715189012,\"resourceGuardOperationRequests\":[\"weooxffifhxwrs\",\"ewmozqvbu\",\"qmamhsycxhxzga\"]}") + "{\"backupManagementType\":\"MAB\",\"schedulePolicy\":{\"schedulePolicyType\":\"SchedulePolicy\"},\"retentionPolicy\":{\"retentionPolicyType\":\"RetentionPolicy\"},\"protectedItemsCount\":1118320263,\"resourceGuardOperationRequests\":[\"oady\",\"dm\",\"rgjfoknubnoi\"]}") .toObject(MabProtectionPolicy.class); - Assertions.assertEquals(715189012, model.protectedItemsCount()); - Assertions.assertEquals("weooxffifhxwrs", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals(1118320263, model.protectedItemsCount()); + Assertions.assertEquals("oady", model.resourceGuardOperationRequests().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - MabProtectionPolicy model = new MabProtectionPolicy().withProtectedItemsCount(715189012) - .withResourceGuardOperationRequests(Arrays.asList("weooxffifhxwrs", "ewmozqvbu", "qmamhsycxhxzga")) + MabProtectionPolicy model = new MabProtectionPolicy().withProtectedItemsCount(1118320263) + .withResourceGuardOperationRequests(Arrays.asList("oady", "dm", "rgjfoknubnoi")) .withSchedulePolicy(new SchedulePolicy()) .withRetentionPolicy(new RetentionPolicy()); model = BinaryData.fromObject(model).toObject(MabProtectionPolicy.class); - Assertions.assertEquals(715189012, model.protectedItemsCount()); - Assertions.assertEquals("weooxffifhxwrs", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals(1118320263, model.protectedItemsCount()); + Assertions.assertEquals("oady", model.resourceGuardOperationRequests().get(0)); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MonthlyRetentionScheduleTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MonthlyRetentionScheduleTests.java index 9c6c636917cbd..e9661e2626e13 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MonthlyRetentionScheduleTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MonthlyRetentionScheduleTests.java @@ -22,40 +22,40 @@ public final class MonthlyRetentionScheduleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { MonthlyRetentionSchedule model = BinaryData.fromString( - "{\"retentionScheduleFormatType\":\"Weekly\",\"retentionScheduleDaily\":{\"daysOfTheMonth\":[{\"date\":38455799,\"isLast\":false},{\"date\":1879073988,\"isLast\":true},{\"date\":1957867929,\"isLast\":false}]},\"retentionScheduleWeekly\":{\"daysOfTheWeek\":[\"Tuesday\",\"Wednesday\",\"Saturday\"],\"weeksOfTheMonth\":[\"First\",\"Fourth\",\"Fourth\",\"Last\"]},\"retentionTimes\":[\"2021-03-04T11:55:21Z\"],\"retentionDuration\":{\"count\":2064014477,\"durationType\":\"Weeks\"}}") + "{\"retentionScheduleFormatType\":\"Daily\",\"retentionScheduleDaily\":{\"daysOfTheMonth\":[{\"date\":754737870,\"isLast\":true},{\"date\":1055282303,\"isLast\":true},{\"date\":1064338012,\"isLast\":false},{\"date\":1747696995,\"isLast\":true}]},\"retentionScheduleWeekly\":{\"daysOfTheWeek\":[\"Monday\",\"Sunday\",\"Friday\"],\"weeksOfTheMonth\":[\"Invalid\",\"First\"]},\"retentionTimes\":[\"2021-10-04T09:07:52Z\",\"2021-08-13T10:39:49Z\"],\"retentionDuration\":{\"count\":1163580415,\"durationType\":\"Weeks\"}}") .toObject(MonthlyRetentionSchedule.class); - Assertions.assertEquals(RetentionScheduleFormat.WEEKLY, model.retentionScheduleFormatType()); - Assertions.assertEquals(38455799, model.retentionScheduleDaily().daysOfTheMonth().get(0).date()); - Assertions.assertFalse(model.retentionScheduleDaily().daysOfTheMonth().get(0).isLast()); - Assertions.assertEquals(DayOfWeek.TUESDAY, model.retentionScheduleWeekly().daysOfTheWeek().get(0)); - Assertions.assertEquals(WeekOfMonth.FIRST, model.retentionScheduleWeekly().weeksOfTheMonth().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-04T11:55:21Z"), model.retentionTimes().get(0)); - Assertions.assertEquals(2064014477, model.retentionDuration().count()); + Assertions.assertEquals(RetentionScheduleFormat.DAILY, model.retentionScheduleFormatType()); + Assertions.assertEquals(754737870, model.retentionScheduleDaily().daysOfTheMonth().get(0).date()); + Assertions.assertTrue(model.retentionScheduleDaily().daysOfTheMonth().get(0).isLast()); + Assertions.assertEquals(DayOfWeek.MONDAY, model.retentionScheduleWeekly().daysOfTheWeek().get(0)); + Assertions.assertEquals(WeekOfMonth.INVALID, model.retentionScheduleWeekly().weeksOfTheMonth().get(0)); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-04T09:07:52Z"), model.retentionTimes().get(0)); + Assertions.assertEquals(1163580415, model.retentionDuration().count()); Assertions.assertEquals(RetentionDurationType.WEEKS, model.retentionDuration().durationType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { MonthlyRetentionSchedule model - = new MonthlyRetentionSchedule().withRetentionScheduleFormatType(RetentionScheduleFormat.WEEKLY) + = new MonthlyRetentionSchedule().withRetentionScheduleFormatType(RetentionScheduleFormat.DAILY) .withRetentionScheduleDaily(new DailyRetentionFormat().withDaysOfTheMonth(Arrays.asList( - new Day().withDate(38455799).withIsLast(false), new Day().withDate(1879073988).withIsLast(true), - new Day().withDate(1957867929).withIsLast(false)))) + new Day().withDate(754737870).withIsLast(true), new Day().withDate(1055282303).withIsLast(true), + new Day().withDate(1064338012).withIsLast(false), new Day().withDate(1747696995).withIsLast(true)))) .withRetentionScheduleWeekly(new WeeklyRetentionFormat() - .withDaysOfTheWeek(Arrays.asList(DayOfWeek.TUESDAY, DayOfWeek.WEDNESDAY, DayOfWeek.SATURDAY)) - .withWeeksOfTheMonth( - Arrays.asList(WeekOfMonth.FIRST, WeekOfMonth.FOURTH, WeekOfMonth.FOURTH, WeekOfMonth.LAST))) - .withRetentionTimes(Arrays.asList(OffsetDateTime.parse("2021-03-04T11:55:21Z"))) + .withDaysOfTheWeek(Arrays.asList(DayOfWeek.MONDAY, DayOfWeek.SUNDAY, DayOfWeek.FRIDAY)) + .withWeeksOfTheMonth(Arrays.asList(WeekOfMonth.INVALID, WeekOfMonth.FIRST))) + .withRetentionTimes(Arrays.asList(OffsetDateTime.parse("2021-10-04T09:07:52Z"), + OffsetDateTime.parse("2021-08-13T10:39:49Z"))) .withRetentionDuration( - new RetentionDuration().withCount(2064014477).withDurationType(RetentionDurationType.WEEKS)); + new RetentionDuration().withCount(1163580415).withDurationType(RetentionDurationType.WEEKS)); model = BinaryData.fromObject(model).toObject(MonthlyRetentionSchedule.class); - Assertions.assertEquals(RetentionScheduleFormat.WEEKLY, model.retentionScheduleFormatType()); - Assertions.assertEquals(38455799, model.retentionScheduleDaily().daysOfTheMonth().get(0).date()); - Assertions.assertFalse(model.retentionScheduleDaily().daysOfTheMonth().get(0).isLast()); - Assertions.assertEquals(DayOfWeek.TUESDAY, model.retentionScheduleWeekly().daysOfTheWeek().get(0)); - Assertions.assertEquals(WeekOfMonth.FIRST, model.retentionScheduleWeekly().weeksOfTheMonth().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-03-04T11:55:21Z"), model.retentionTimes().get(0)); - Assertions.assertEquals(2064014477, model.retentionDuration().count()); + Assertions.assertEquals(RetentionScheduleFormat.DAILY, model.retentionScheduleFormatType()); + Assertions.assertEquals(754737870, model.retentionScheduleDaily().daysOfTheMonth().get(0).date()); + Assertions.assertTrue(model.retentionScheduleDaily().daysOfTheMonth().get(0).isLast()); + Assertions.assertEquals(DayOfWeek.MONDAY, model.retentionScheduleWeekly().daysOfTheWeek().get(0)); + Assertions.assertEquals(WeekOfMonth.INVALID, model.retentionScheduleWeekly().weeksOfTheMonth().get(0)); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-04T09:07:52Z"), model.retentionTimes().get(0)); + Assertions.assertEquals(1163580415, model.retentionDuration().count()); Assertions.assertEquals(RetentionDurationType.WEEKS, model.retentionDuration().durationType()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MoveRPAcrossTiersRequestTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MoveRPAcrossTiersRequestTests.java index fc1143377b957..1cb940a691556 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MoveRPAcrossTiersRequestTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/MoveRPAcrossTiersRequestTests.java @@ -13,21 +13,21 @@ public final class MoveRPAcrossTiersRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { MoveRPAcrossTiersRequest model = BinaryData.fromString( - "{\"objectType\":\"ixjsprozvcputeg\",\"sourceTierType\":\"ArchivedRP\",\"targetTierType\":\"InstantRP\"}") + "{\"objectType\":\"ixjsprozvcputeg\",\"sourceTierType\":\"IASnapshotRP\",\"targetTierType\":\"InstantRP\"}") .toObject(MoveRPAcrossTiersRequest.class); Assertions.assertEquals("ixjsprozvcputeg", model.objectType()); - Assertions.assertEquals(RecoveryPointTierType.ARCHIVED_RP, model.sourceTierType()); + Assertions.assertEquals(RecoveryPointTierType.IASNAPSHOT_RP, model.sourceTierType()); Assertions.assertEquals(RecoveryPointTierType.INSTANT_RP, model.targetTierType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { MoveRPAcrossTiersRequest model = new MoveRPAcrossTiersRequest().withObjectType("ixjsprozvcputeg") - .withSourceTierType(RecoveryPointTierType.ARCHIVED_RP) + .withSourceTierType(RecoveryPointTierType.IASNAPSHOT_RP) .withTargetTierType(RecoveryPointTierType.INSTANT_RP); model = BinaryData.fromObject(model).toObject(MoveRPAcrossTiersRequest.class); Assertions.assertEquals("ixjsprozvcputeg", model.objectType()); - Assertions.assertEquals(RecoveryPointTierType.ARCHIVED_RP, model.sourceTierType()); + Assertions.assertEquals(RecoveryPointTierType.IASNAPSHOT_RP, model.sourceTierType()); Assertions.assertEquals(RecoveryPointTierType.INSTANT_RP, model.targetTierType()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/NameInfoTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/NameInfoTests.java index a2a7cab878aa9..8ede99717c386 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/NameInfoTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/NameInfoTests.java @@ -11,9 +11,9 @@ public final class NameInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - NameInfo model = BinaryData.fromString("{\"value\":\"bekpeeksnbksdqhj\",\"localizedValue\":\"klxesl\"}") + NameInfo model = BinaryData.fromString("{\"value\":\"bglcjkayspthzodu\",\"localizedValue\":\"lmjtg\"}") .toObject(NameInfo.class); - Assertions.assertEquals("bekpeeksnbksdqhj", model.value()); - Assertions.assertEquals("klxesl", model.localizedValue()); + Assertions.assertEquals("bglcjkayspthzodu", model.value()); + Assertions.assertEquals("lmjtg", model.localizedValue()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/OperationResultInfoTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/OperationResultInfoTests.java index 3a47beff797b4..5adbf844776a8 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/OperationResultInfoTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/OperationResultInfoTests.java @@ -12,8 +12,8 @@ public final class OperationResultInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OperationResultInfo model - = BinaryData.fromString("{\"objectType\":\"OperationResultInfo\",\"jobList\":[\"uaurkihcir\",\"defxrdc\"]}") + = BinaryData.fromString("{\"objectType\":\"OperationResultInfo\",\"jobList\":[\"hqfgqkayejsx\"]}") .toObject(OperationResultInfo.class); - Assertions.assertEquals("uaurkihcir", model.jobList().get(0)); + Assertions.assertEquals("hqfgqkayejsx", model.jobList().get(0)); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/OperationsListMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/OperationsListMockTests.java index 953f5263cc358..5b9b1724baf6f 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/OperationsListMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/OperationsListMockTests.java @@ -22,7 +22,7 @@ public final class OperationsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"name\":\"vkrmukmyjmkx\",\"display\":{\"provider\":\"csl\",\"resource\":\"fkqidnqtoqxjhq\",\"operation\":\"s\",\"description\":\"tkbtnqlrngl\"},\"origin\":\"biipsnawwlqkznx\",\"properties\":{\"serviceSpecification\":{\"logSpecifications\":[{\"name\":\"icctkw\",\"displayName\":\"qqoajxeiyglesrw\",\"blobDuration\":\"exh\"},{\"name\":\"trceqnkbrupob\",\"displayName\":\"dmljzacvumepjp\",\"blobDuration\":\"bn\"},{\"name\":\"phepifexleqirc\",\"displayName\":\"cly\",\"blobDuration\":\"gxvrpjl\"}]}}}]}"; + = "{\"value\":[{\"name\":\"u\",\"display\":{\"provider\":\"wiubmomsgvv\",\"resource\":\"vvlrlohewjjmajn\",\"operation\":\"flqio\",\"description\":\"waeqkzfzqxjosho\"},\"origin\":\"otryegp\",\"properties\":{\"serviceSpecification\":{\"logSpecifications\":[{\"name\":\"xznlwkbfokxk\",\"displayName\":\"p\",\"blobDuration\":\"rufgjblcdrmyfcem\"},{\"name\":\"zgyykyalug\",\"displayName\":\"dfqnhttwdowrczfj\",\"blobDuration\":\"nuxxrkkm\"},{\"name\":\"nulwempdci\",\"displayName\":\"hjulrsulwzpflu\",\"blobDuration\":\"awmhh\"}]}}}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,17 +34,17 @@ public void testList() throws Exception { PagedIterable response = manager.operations().list(com.azure.core.util.Context.NONE); - Assertions.assertEquals("vkrmukmyjmkx", response.iterator().next().name()); - Assertions.assertEquals("csl", response.iterator().next().display().provider()); - Assertions.assertEquals("fkqidnqtoqxjhq", response.iterator().next().display().resource()); - Assertions.assertEquals("s", response.iterator().next().display().operation()); - Assertions.assertEquals("tkbtnqlrngl", response.iterator().next().display().description()); - Assertions.assertEquals("biipsnawwlqkznx", response.iterator().next().origin()); - Assertions.assertEquals("icctkw", + Assertions.assertEquals("u", response.iterator().next().name()); + Assertions.assertEquals("wiubmomsgvv", response.iterator().next().display().provider()); + Assertions.assertEquals("vvlrlohewjjmajn", response.iterator().next().display().resource()); + Assertions.assertEquals("flqio", response.iterator().next().display().operation()); + Assertions.assertEquals("waeqkzfzqxjosho", response.iterator().next().display().description()); + Assertions.assertEquals("otryegp", response.iterator().next().origin()); + Assertions.assertEquals("xznlwkbfokxk", response.iterator().next().properties().serviceSpecification().logSpecifications().get(0).name()); - Assertions.assertEquals("qqoajxeiyglesrw", + Assertions.assertEquals("p", response.iterator().next().properties().serviceSpecification().logSpecifications().get(0).displayName()); - Assertions.assertEquals("exh", + Assertions.assertEquals("rufgjblcdrmyfcem", response.iterator().next().properties().serviceSpecification().logSpecifications().get(0).blobDuration()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PerDiskEncryptionSetIdTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PerDiskEncryptionSetIdTests.java index d2c2fd86f4c8a..3db1083d9362b 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PerDiskEncryptionSetIdTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PerDiskEncryptionSetIdTests.java @@ -11,19 +11,17 @@ public final class PerDiskEncryptionSetIdTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - PerDiskEncryptionSetId model - = BinaryData.fromString("{\"lun\":1610520770,\"diskEncryptionSetId\":\"bzuwfmdurag\"}") - .toObject(PerDiskEncryptionSetId.class); - Assertions.assertEquals(1610520770, model.lun()); - Assertions.assertEquals("bzuwfmdurag", model.diskEncryptionSetId()); + PerDiskEncryptionSetId model = BinaryData.fromString("{\"lun\":722001458,\"diskEncryptionSetId\":\"jsi\"}") + .toObject(PerDiskEncryptionSetId.class); + Assertions.assertEquals(722001458, model.lun()); + Assertions.assertEquals("jsi", model.diskEncryptionSetId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - PerDiskEncryptionSetId model - = new PerDiskEncryptionSetId().withLun(1610520770).withDiskEncryptionSetId("bzuwfmdurag"); + PerDiskEncryptionSetId model = new PerDiskEncryptionSetId().withLun(722001458).withDiskEncryptionSetId("jsi"); model = BinaryData.fromObject(model).toObject(PerDiskEncryptionSetId.class); - Assertions.assertEquals(1610520770, model.lun()); - Assertions.assertEquals("bzuwfmdurag", model.diskEncryptionSetId()); + Assertions.assertEquals(722001458, model.lun()); + Assertions.assertEquals("jsi", model.diskEncryptionSetId()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PointInTimeRangeTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PointInTimeRangeTests.java index d2496fed44fbf..379c0d1f852ca 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PointInTimeRangeTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PointInTimeRangeTests.java @@ -13,9 +13,9 @@ public final class PointInTimeRangeTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PointInTimeRange model - = BinaryData.fromString("{\"startTime\":\"2021-11-14T04:35:06Z\",\"endTime\":\"2021-08-16T12:50:07Z\"}") + = BinaryData.fromString("{\"startTime\":\"2021-09-14T08:28:18Z\",\"endTime\":\"2021-02-20T10:22:37Z\"}") .toObject(PointInTimeRange.class); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-14T04:35:06Z"), model.startTime()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-16T12:50:07Z"), model.endTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-14T08:28:18Z"), model.startTime()); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-20T10:22:37Z"), model.endTime()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PreValidateEnableBackupRequestTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PreValidateEnableBackupRequestTests.java index 238ea26e45d8a..9e21f29896a51 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PreValidateEnableBackupRequestTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PreValidateEnableBackupRequestTests.java @@ -13,25 +13,25 @@ public final class PreValidateEnableBackupRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PreValidateEnableBackupRequest model = BinaryData.fromString( - "{\"resourceType\":\"SAPHanaDatabase\",\"resourceId\":\"gydgrpxncakiq\",\"vaultId\":\"ndjrkclamggl\",\"properties\":\"mfejdoqeykglty\"}") + "{\"resourceType\":\"Invalid\",\"resourceId\":\"gfredmlscg\",\"vaultId\":\"lccnaovjowaz\",\"properties\":\"abacomlyotgkws\"}") .toObject(PreValidateEnableBackupRequest.class); - Assertions.assertEquals(DataSourceType.SAPHANA_DATABASE, model.resourceType()); - Assertions.assertEquals("gydgrpxncakiq", model.resourceId()); - Assertions.assertEquals("ndjrkclamggl", model.vaultId()); - Assertions.assertEquals("mfejdoqeykglty", model.properties()); + Assertions.assertEquals(DataSourceType.INVALID, model.resourceType()); + Assertions.assertEquals("gfredmlscg", model.resourceId()); + Assertions.assertEquals("lccnaovjowaz", model.vaultId()); + Assertions.assertEquals("abacomlyotgkws", model.properties()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { PreValidateEnableBackupRequest model - = new PreValidateEnableBackupRequest().withResourceType(DataSourceType.SAPHANA_DATABASE) - .withResourceId("gydgrpxncakiq") - .withVaultId("ndjrkclamggl") - .withProperties("mfejdoqeykglty"); + = new PreValidateEnableBackupRequest().withResourceType(DataSourceType.INVALID) + .withResourceId("gfredmlscg") + .withVaultId("lccnaovjowaz") + .withProperties("abacomlyotgkws"); model = BinaryData.fromObject(model).toObject(PreValidateEnableBackupRequest.class); - Assertions.assertEquals(DataSourceType.SAPHANA_DATABASE, model.resourceType()); - Assertions.assertEquals("gydgrpxncakiq", model.resourceId()); - Assertions.assertEquals("ndjrkclamggl", model.vaultId()); - Assertions.assertEquals("mfejdoqeykglty", model.properties()); + Assertions.assertEquals(DataSourceType.INVALID, model.resourceType()); + Assertions.assertEquals("gfredmlscg", model.resourceId()); + Assertions.assertEquals("lccnaovjowaz", model.vaultId()); + Assertions.assertEquals("abacomlyotgkws", model.properties()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointConnectionResourceInnerTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointConnectionResourceInnerTests.java index b2afaef8a793a..735c303322a97 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointConnectionResourceInnerTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointConnectionResourceInnerTests.java @@ -21,45 +21,46 @@ public final class PrivateEndpointConnectionResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateEndpointConnectionResourceInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Deleting\",\"privateEndpoint\":{\"id\":\"lgflwfg\"},\"groupIds\":[\"AzureBackup\",\"AzureBackup\",\"AzureBackup\"],\"privateLinkServiceConnectionState\":{\"status\":\"Disconnected\",\"description\":\"atlijjjr\",\"actionsRequired\":\"am\"}},\"tags\":{\"cxetyvkunmignoh\":\"zknxkv\",\"gqogjwpindedva\":\"k\",\"wfcfxzirzz\":\"bxbhmedeilbj\"},\"location\":\"vwypusuvjsl\",\"eTag\":\"wci\",\"id\":\"jsllfryvd\",\"name\":\"vxadqacfrgnawbab\",\"type\":\"fbktyjmfczlf\"}") + "{\"properties\":{\"provisioningState\":\"Deleting\",\"privateEndpoint\":{\"id\":\"c\"},\"groupIds\":[\"AzureBackup\",\"AzureSiteRecovery\"],\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"xcxxqndcqjkedw\",\"actionsRequired\":\"rcgojmrvvx\"}},\"tags\":{\"ehqqrsilcchs\":\"ngz\",\"bvriaqgvtojrulfu\":\"xxkan\",\"jzhxlyubqjrost\":\"tejrthc\",\"alx\":\"rjeqmtzzbeqrztr\"},\"location\":\"habsrwrsnrh\",\"eTag\":\"a\",\"id\":\"wk\",\"name\":\"vyanxkvvcsemsvu\",\"type\":\"djkqxetqmm\"}") .toObject(PrivateEndpointConnectionResourceInner.class); Assertions.assertEquals(ProvisioningState.DELETING, model.properties().provisioningState()); - Assertions.assertEquals("lgflwfg", model.properties().privateEndpoint().id()); + Assertions.assertEquals("c", model.properties().privateEndpoint().id()); Assertions.assertEquals(VaultSubResourceType.AZURE_BACKUP, model.properties().groupIds().get(0)); - Assertions.assertEquals(PrivateEndpointConnectionStatus.DISCONNECTED, + Assertions.assertEquals(PrivateEndpointConnectionStatus.APPROVED, model.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("atlijjjr", model.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("am", model.properties().privateLinkServiceConnectionState().actionRequired()); - Assertions.assertEquals("zknxkv", model.tags().get("cxetyvkunmignoh")); - Assertions.assertEquals("vwypusuvjsl", model.location()); - Assertions.assertEquals("wci", model.etag()); + Assertions.assertEquals("xcxxqndcqjkedw", model.properties().privateLinkServiceConnectionState().description()); + Assertions.assertEquals("rcgojmrvvx", model.properties().privateLinkServiceConnectionState().actionRequired()); + Assertions.assertEquals("ngz", model.tags().get("ehqqrsilcchs")); + Assertions.assertEquals("habsrwrsnrh", model.location()); + Assertions.assertEquals("a", model.etag()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { PrivateEndpointConnectionResourceInner model = new PrivateEndpointConnectionResourceInner() .withProperties(new PrivateEndpointConnection().withProvisioningState(ProvisioningState.DELETING) - .withPrivateEndpoint(new PrivateEndpoint().withId("lgflwfg")) - .withGroupIds(Arrays.asList(VaultSubResourceType.AZURE_BACKUP, VaultSubResourceType.AZURE_BACKUP, - VaultSubResourceType.AZURE_BACKUP)) + .withPrivateEndpoint(new PrivateEndpoint().withId("c")) + .withGroupIds( + Arrays.asList(VaultSubResourceType.AZURE_BACKUP, VaultSubResourceType.AZURE_SITE_RECOVERY)) .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointConnectionStatus.DISCONNECTED) - .withDescription("atlijjjr") - .withActionRequired("am"))) - .withTags(mapOf("cxetyvkunmignoh", "zknxkv", "gqogjwpindedva", "k", "wfcfxzirzz", "bxbhmedeilbj")) - .withLocation("vwypusuvjsl") - .withEtag("wci"); + new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointConnectionStatus.APPROVED) + .withDescription("xcxxqndcqjkedw") + .withActionRequired("rcgojmrvvx"))) + .withTags(mapOf("ehqqrsilcchs", "ngz", "bvriaqgvtojrulfu", "xxkan", "jzhxlyubqjrost", "tejrthc", "alx", + "rjeqmtzzbeqrztr")) + .withLocation("habsrwrsnrh") + .withEtag("a"); model = BinaryData.fromObject(model).toObject(PrivateEndpointConnectionResourceInner.class); Assertions.assertEquals(ProvisioningState.DELETING, model.properties().provisioningState()); - Assertions.assertEquals("lgflwfg", model.properties().privateEndpoint().id()); + Assertions.assertEquals("c", model.properties().privateEndpoint().id()); Assertions.assertEquals(VaultSubResourceType.AZURE_BACKUP, model.properties().groupIds().get(0)); - Assertions.assertEquals(PrivateEndpointConnectionStatus.DISCONNECTED, + Assertions.assertEquals(PrivateEndpointConnectionStatus.APPROVED, model.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("atlijjjr", model.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("am", model.properties().privateLinkServiceConnectionState().actionRequired()); - Assertions.assertEquals("zknxkv", model.tags().get("cxetyvkunmignoh")); - Assertions.assertEquals("vwypusuvjsl", model.location()); - Assertions.assertEquals("wci", model.etag()); + Assertions.assertEquals("xcxxqndcqjkedw", model.properties().privateLinkServiceConnectionState().description()); + Assertions.assertEquals("rcgojmrvvx", model.properties().privateLinkServiceConnectionState().actionRequired()); + Assertions.assertEquals("ngz", model.tags().get("ehqqrsilcchs")); + Assertions.assertEquals("habsrwrsnrh", model.location()); + Assertions.assertEquals("a", model.etag()); } // Use "Map.of" if available diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointConnectionTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointConnectionTests.java index 695bb335de3e1..0ffe2826af8a7 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointConnectionTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointConnectionTests.java @@ -18,35 +18,34 @@ public final class PrivateEndpointConnectionTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateEndpointConnection model = BinaryData.fromString( - "{\"provisioningState\":\"Pending\",\"privateEndpoint\":{\"id\":\"rbzg\"},\"groupIds\":[\"AzureSiteRecovery\",\"AzureSiteRecovery\",\"AzureBackup_secondary\"],\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"cxn\",\"actionsRequired\":\"gxhlusr\"}}") + "{\"provisioningState\":\"Deleting\",\"privateEndpoint\":{\"id\":\"jxnw\"},\"groupIds\":[\"AzureBackup\"],\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"lehzlxpgfq\",\"actionsRequired\":\"zpw\"}}") .toObject(PrivateEndpointConnection.class); - Assertions.assertEquals(ProvisioningState.PENDING, model.provisioningState()); - Assertions.assertEquals("rbzg", model.privateEndpoint().id()); - Assertions.assertEquals(VaultSubResourceType.AZURE_SITE_RECOVERY, model.groupIds().get(0)); - Assertions.assertEquals(PrivateEndpointConnectionStatus.REJECTED, + Assertions.assertEquals(ProvisioningState.DELETING, model.provisioningState()); + Assertions.assertEquals("jxnw", model.privateEndpoint().id()); + Assertions.assertEquals(VaultSubResourceType.AZURE_BACKUP, model.groupIds().get(0)); + Assertions.assertEquals(PrivateEndpointConnectionStatus.APPROVED, model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("cxn", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("gxhlusr", model.privateLinkServiceConnectionState().actionRequired()); + Assertions.assertEquals("lehzlxpgfq", model.privateLinkServiceConnectionState().description()); + Assertions.assertEquals("zpw", model.privateLinkServiceConnectionState().actionRequired()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { PrivateEndpointConnection model - = new PrivateEndpointConnection().withProvisioningState(ProvisioningState.PENDING) - .withPrivateEndpoint(new PrivateEndpoint().withId("rbzg")) - .withGroupIds(Arrays.asList(VaultSubResourceType.AZURE_SITE_RECOVERY, - VaultSubResourceType.AZURE_SITE_RECOVERY, VaultSubResourceType.AZURE_BACKUP_SECONDARY)) + = new PrivateEndpointConnection().withProvisioningState(ProvisioningState.DELETING) + .withPrivateEndpoint(new PrivateEndpoint().withId("jxnw")) + .withGroupIds(Arrays.asList(VaultSubResourceType.AZURE_BACKUP)) .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointConnectionStatus.REJECTED) - .withDescription("cxn") - .withActionRequired("gxhlusr")); + new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointConnectionStatus.APPROVED) + .withDescription("lehzlxpgfq") + .withActionRequired("zpw")); model = BinaryData.fromObject(model).toObject(PrivateEndpointConnection.class); - Assertions.assertEquals(ProvisioningState.PENDING, model.provisioningState()); - Assertions.assertEquals("rbzg", model.privateEndpoint().id()); - Assertions.assertEquals(VaultSubResourceType.AZURE_SITE_RECOVERY, model.groupIds().get(0)); - Assertions.assertEquals(PrivateEndpointConnectionStatus.REJECTED, + Assertions.assertEquals(ProvisioningState.DELETING, model.provisioningState()); + Assertions.assertEquals("jxnw", model.privateEndpoint().id()); + Assertions.assertEquals(VaultSubResourceType.AZURE_BACKUP, model.groupIds().get(0)); + Assertions.assertEquals(PrivateEndpointConnectionStatus.APPROVED, model.privateLinkServiceConnectionState().status()); - Assertions.assertEquals("cxn", model.privateLinkServiceConnectionState().description()); - Assertions.assertEquals("gxhlusr", model.privateLinkServiceConnectionState().actionRequired()); + Assertions.assertEquals("lehzlxpgfq", model.privateLinkServiceConnectionState().description()); + Assertions.assertEquals("zpw", model.privateLinkServiceConnectionState().actionRequired()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointConnectionsDeleteMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointConnectionsDeleteMockTests.java index 47e53ace2b892..07f64dbd66bfd 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointConnectionsDeleteMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointConnectionsDeleteMockTests.java @@ -27,7 +27,8 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.privateEndpointConnections().delete("usi", "oqcah", "sgbjmlree", com.azure.core.util.Context.NONE); + manager.privateEndpointConnections() + .delete("xydgtokvqbvwg", "gwzpvxak", "lhpses", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java index 9c8955984a6ac..f0785495c3723 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointConnectionsGetWithResponseMockTests.java @@ -24,7 +24,7 @@ public final class PrivateEndpointConnectionsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"privateEndpoint\":{\"id\":\"ynts\"},\"groupIds\":[\"AzureBackup\",\"AzureSiteRecovery\",\"AzureBackup\"],\"privateLinkServiceConnectionState\":{\"status\":\"Disconnected\",\"description\":\"kmoogjrhs\",\"actionsRequired\":\"w\"}},\"tags\":{\"u\":\"g\",\"fdz\":\"cfogxhcxnwjt\",\"uzfwo\":\"c\",\"ednlwglihezo\":\"wakukzkdtzxs\"},\"location\":\"cm\",\"eTag\":\"isnionetbzdrdpue\",\"id\":\"kgtlzl\",\"name\":\"trlxcznnhzkbn\",\"type\":\"mxlxmwtygeq\"}"; + = "{\"properties\":{\"provisioningState\":\"Failed\",\"privateEndpoint\":{\"id\":\"gszplus\"},\"groupIds\":[\"AzureBackup\",\"AzureBackup\",\"AzureBackup\"],\"privateLinkServiceConnectionState\":{\"status\":\"Approved\",\"description\":\"gpgvokyejidbdq\",\"actionsRequired\":\"qunycwztlvvw\"}},\"tags\":{\"trepw\":\"rkky\",\"dofuckclb\":\"wfkcauxuvavcpf\"},\"location\":\"luevsolzwilfng\",\"eTag\":\"fsqebuuxjxhfxf\",\"id\":\"pdkktpmbmxbmbr\",\"name\":\"gzzxljbkhxsd\",\"type\":\"laumydmhweqjf\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,18 +34,20 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PrivateEndpointConnectionResource response = manager.privateEndpointConnections() - .getWithResponse("huosgwqpsqaz", "hqodv", "gcnbhcbmjk", com.azure.core.util.Context.NONE) + .getWithResponse("tjva", "yyznmrgcdogcvuc", "ytoxuwhttnzq", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(ProvisioningState.SUCCEEDED, response.properties().provisioningState()); - Assertions.assertEquals("ynts", response.properties().privateEndpoint().id()); + Assertions.assertEquals(ProvisioningState.FAILED, response.properties().provisioningState()); + Assertions.assertEquals("gszplus", response.properties().privateEndpoint().id()); Assertions.assertEquals(VaultSubResourceType.AZURE_BACKUP, response.properties().groupIds().get(0)); - Assertions.assertEquals(PrivateEndpointConnectionStatus.DISCONNECTED, + Assertions.assertEquals(PrivateEndpointConnectionStatus.APPROVED, response.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("kmoogjrhs", response.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("w", response.properties().privateLinkServiceConnectionState().actionRequired()); - Assertions.assertEquals("g", response.tags().get("u")); - Assertions.assertEquals("cm", response.location()); - Assertions.assertEquals("isnionetbzdrdpue", response.etag()); + Assertions.assertEquals("gpgvokyejidbdq", + response.properties().privateLinkServiceConnectionState().description()); + Assertions.assertEquals("qunycwztlvvw", + response.properties().privateLinkServiceConnectionState().actionRequired()); + Assertions.assertEquals("rkky", response.tags().get("trepw")); + Assertions.assertEquals("luevsolzwilfng", response.location()); + Assertions.assertEquals("fsqebuuxjxhfxf", response.etag()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointConnectionsPutMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointConnectionsPutMockTests.java index e243dee25e2f7..1e1eb0da13a8e 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointConnectionsPutMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointConnectionsPutMockTests.java @@ -30,7 +30,7 @@ public final class PrivateEndpointConnectionsPutMockTests { @Test public void testPut() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"privateEndpoint\":{\"id\":\"ymkouih\"},\"groupIds\":[\"AzureBackup\",\"AzureBackup\"],\"privateLinkServiceConnectionState\":{\"status\":\"Rejected\",\"description\":\"gzhogsmgbvmtd\",\"actionsRequired\":\"qbe\"}},\"tags\":{\"wznhtfgfic\":\"fveglabtvkb\",\"paczmuh\":\"dyhi\"},\"location\":\"akznhokhoitwhr\",\"eTag\":\"dmmazdnc\",\"id\":\"dbjp\",\"name\":\"lhzqpxzbawkikcdg\",\"type\":\"hbssdpjeyo\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"privateEndpoint\":{\"id\":\"vmzrq\"},\"groupIds\":[\"AzureBackup\"],\"privateLinkServiceConnectionState\":{\"status\":\"Disconnected\",\"description\":\"nllaslkskh\",\"actionsRequired\":\"jpv\"}},\"tags\":{\"wbqgroigbsfsgsa\":\"hxjtgzgtai\",\"xspmrjc\":\"nwldfmhljq\",\"hsxrznmgsdaluyc\":\"ryldsxeb\"},\"location\":\"efrbhseuerbg\",\"eTag\":\"ebjludc\",\"id\":\"tujraxdtpryjm\",\"name\":\"tnsewou\",\"type\":\"ly\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -40,31 +40,31 @@ public void testPut() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PrivateEndpointConnectionResource response = manager.privateEndpointConnections() - .define("qmipfj") - .withExistingVault("rfwss", "vlcwlisolntfxxc") - .withRegion("fliwoynguuzhwvl") - .withTags(mapOf("c", "vhxqqmqipaydhfnz", "wbwmbnlslcefiq", "mtfshksnyzmspa", "ih", "ktwtk")) - .withProperties(new PrivateEndpointConnection().withProvisioningState(ProvisioningState.FAILED) - .withPrivateEndpoint(new PrivateEndpoint().withId("zms")) - .withGroupIds(Arrays.asList(VaultSubResourceType.AZURE_BACKUP, VaultSubResourceType.AZURE_BACKUP)) + .define("vxcgdhyhgoqgs") + .withExistingVault("fga", "qiy") + .withRegion("crxoxdj") + .withTags(mapOf("v", "la", "hapejov", "foc", "oeehpmjenvjeatea", "kwxnhwhhnoyrza")) + .withProperties(new PrivateEndpointConnection().withProvisioningState(ProvisioningState.SUCCEEDED) + .withPrivateEndpoint(new PrivateEndpoint().withId("jrcbqpbispglq")) + .withGroupIds(Arrays.asList(VaultSubResourceType.AZURE_SITE_RECOVERY, + VaultSubResourceType.AZURE_SITE_RECOVERY, VaultSubResourceType.AZURE_BACKUP_SECONDARY)) .withPrivateLinkServiceConnectionState( - new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointConnectionStatus.APPROVED) - .withDescription("ulnvgskj") - .withActionRequired("xjdzjs"))) - .withEtag("p") + new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointConnectionStatus.PENDING) + .withDescription("oovtyjztivfwjlo") + .withActionRequired("ekfsrm"))) + .withEtag("dnaryyinzk") .create(); Assertions.assertEquals(ProvisioningState.SUCCEEDED, response.properties().provisioningState()); - Assertions.assertEquals("ymkouih", response.properties().privateEndpoint().id()); + Assertions.assertEquals("vmzrq", response.properties().privateEndpoint().id()); Assertions.assertEquals(VaultSubResourceType.AZURE_BACKUP, response.properties().groupIds().get(0)); - Assertions.assertEquals(PrivateEndpointConnectionStatus.REJECTED, + Assertions.assertEquals(PrivateEndpointConnectionStatus.DISCONNECTED, response.properties().privateLinkServiceConnectionState().status()); - Assertions.assertEquals("gzhogsmgbvmtd", - response.properties().privateLinkServiceConnectionState().description()); - Assertions.assertEquals("qbe", response.properties().privateLinkServiceConnectionState().actionRequired()); - Assertions.assertEquals("fveglabtvkb", response.tags().get("wznhtfgfic")); - Assertions.assertEquals("akznhokhoitwhr", response.location()); - Assertions.assertEquals("dmmazdnc", response.etag()); + Assertions.assertEquals("nllaslkskh", response.properties().privateLinkServiceConnectionState().description()); + Assertions.assertEquals("jpv", response.properties().privateLinkServiceConnectionState().actionRequired()); + Assertions.assertEquals("hxjtgzgtai", response.tags().get("wbqgroigbsfsgsa")); + Assertions.assertEquals("efrbhseuerbg", response.location()); + Assertions.assertEquals("ebjludc", response.etag()); } // Use "Map.of" if available diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointTests.java index d8b19e82505b4..e34bd384c8b74 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateEndpointTests.java @@ -11,14 +11,14 @@ public final class PrivateEndpointTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - PrivateEndpoint model = BinaryData.fromString("{\"id\":\"i\"}").toObject(PrivateEndpoint.class); - Assertions.assertEquals("i", model.id()); + PrivateEndpoint model = BinaryData.fromString("{\"id\":\"belwcer\"}").toObject(PrivateEndpoint.class); + Assertions.assertEquals("belwcer", model.id()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - PrivateEndpoint model = new PrivateEndpoint().withId("i"); + PrivateEndpoint model = new PrivateEndpoint().withId("belwcer"); model = BinaryData.fromObject(model).toObject(PrivateEndpoint.class); - Assertions.assertEquals("i", model.id()); + Assertions.assertEquals("belwcer", model.id()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateLinkServiceConnectionStateTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateLinkServiceConnectionStateTests.java index 44e81e4d8b735..8e64c57c5897e 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateLinkServiceConnectionStateTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/PrivateLinkServiceConnectionStateTests.java @@ -13,23 +13,22 @@ public final class PrivateLinkServiceConnectionStateTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PrivateLinkServiceConnectionState model = BinaryData - .fromString( - "{\"status\":\"Rejected\",\"description\":\"ceagbjqvlsumywz\",\"actionsRequired\":\"hxgonoyjf\"}") + .fromString("{\"status\":\"Pending\",\"description\":\"pjxljtxb\",\"actionsRequired\":\"qtbxxniuisdzh\"}") .toObject(PrivateLinkServiceConnectionState.class); - Assertions.assertEquals(PrivateEndpointConnectionStatus.REJECTED, model.status()); - Assertions.assertEquals("ceagbjqvlsumywz", model.description()); - Assertions.assertEquals("hxgonoyjf", model.actionRequired()); + Assertions.assertEquals(PrivateEndpointConnectionStatus.PENDING, model.status()); + Assertions.assertEquals("pjxljtxb", model.description()); + Assertions.assertEquals("qtbxxniuisdzh", model.actionRequired()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { PrivateLinkServiceConnectionState model - = new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointConnectionStatus.REJECTED) - .withDescription("ceagbjqvlsumywz") - .withActionRequired("hxgonoyjf"); + = new PrivateLinkServiceConnectionState().withStatus(PrivateEndpointConnectionStatus.PENDING) + .withDescription("pjxljtxb") + .withActionRequired("qtbxxniuisdzh"); model = BinaryData.fromObject(model).toObject(PrivateLinkServiceConnectionState.class); - Assertions.assertEquals(PrivateEndpointConnectionStatus.REJECTED, model.status()); - Assertions.assertEquals("ceagbjqvlsumywz", model.description()); - Assertions.assertEquals("hxgonoyjf", model.actionRequired()); + Assertions.assertEquals(PrivateEndpointConnectionStatus.PENDING, model.status()); + Assertions.assertEquals("pjxljtxb", model.description()); + Assertions.assertEquals("qtbxxniuisdzh", model.actionRequired()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectableContainerResourceInnerTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectableContainerResourceInnerTests.java index ee1fbd0bd5f6f..f6dbf033802a3 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectableContainerResourceInnerTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectableContainerResourceInnerTests.java @@ -13,14 +13,14 @@ public final class ProtectableContainerResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProtectableContainerResourceInner model = BinaryData.fromString( - "{\"location\":\"wzawnvsbcfhzagxn\",\"tags\":{\"mwrzregzgyufutrw\":\"cvd\",\"hmeott\":\"weryekzk\"},\"eTag\":\"jyosxwwh\",\"properties\":{\"protectableContainerType\":\"ProtectableContainer\",\"friendlyName\":\"tfvpndpmiljpn\",\"backupManagementType\":\"AzureBackupServer\",\"healthStatus\":\"dqllzsauzpjlxeeh\",\"containerId\":\"iqhzlr\"},\"id\":\"mezx\",\"name\":\"skihmxrfd\",\"type\":\"ajrednwyyshtuw\"}") + "{\"location\":\"sgglmv\",\"tags\":{\"jctibpvbkae\":\"tuz\",\"akw\":\"xsmzygdf\"},\"eTag\":\"ivmakx\",\"properties\":{\"protectableContainerType\":\"ProtectableContainer\",\"friendlyName\":\"owljuxlkbectvtfj\",\"backupManagementType\":\"Invalid\",\"healthStatus\":\"chmaiubavlzwpvgm\",\"containerId\":\"lkzazmgok\"},\"id\":\"gjqafkmkrokzr\",\"name\":\"hqet\",\"type\":\"pqrtvaoznqni\"}") .toObject(ProtectableContainerResourceInner.class); - Assertions.assertEquals("wzawnvsbcfhzagxn", model.location()); - Assertions.assertEquals("cvd", model.tags().get("mwrzregzgyufutrw")); - Assertions.assertEquals("jyosxwwh", model.eTag()); - Assertions.assertEquals("tfvpndpmiljpn", model.properties().friendlyName()); - Assertions.assertEquals(BackupManagementType.AZURE_BACKUP_SERVER, model.properties().backupManagementType()); - Assertions.assertEquals("dqllzsauzpjlxeeh", model.properties().healthStatus()); - Assertions.assertEquals("iqhzlr", model.properties().containerId()); + Assertions.assertEquals("sgglmv", model.location()); + Assertions.assertEquals("tuz", model.tags().get("jctibpvbkae")); + Assertions.assertEquals("ivmakx", model.eTag()); + Assertions.assertEquals("owljuxlkbectvtfj", model.properties().friendlyName()); + Assertions.assertEquals(BackupManagementType.INVALID, model.properties().backupManagementType()); + Assertions.assertEquals("chmaiubavlzwpvgm", model.properties().healthStatus()); + Assertions.assertEquals("lkzazmgok", model.properties().containerId()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectableContainerResourceListTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectableContainerResourceListTests.java index 813cf8b3ee0e2..5fdb72a5aad93 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectableContainerResourceListTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectableContainerResourceListTests.java @@ -13,16 +13,15 @@ public final class ProtectableContainerResourceListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProtectableContainerResourceList model = BinaryData.fromString( - "{\"value\":[{\"location\":\"oclxiut\",\"tags\":{\"r\":\"yzyzjd\",\"xjeaoqaqbzgyh\":\"jb\",\"v\":\"w\",\"e\":\"atbwbqam\"},\"eTag\":\"iyslpkcvmwfaux\",\"properties\":{\"protectableContainerType\":\"ProtectableContainer\",\"friendlyName\":\"myw\",\"backupManagementType\":\"AzureIaasVM\",\"healthStatus\":\"c\",\"containerId\":\"iciijqpkzfbojx\"},\"id\":\"cs\",\"name\":\"yqwixvcpwnkwywzw\",\"type\":\"falickduoiqtamty\"}],\"nextLink\":\"kn\"}") + "{\"value\":[{\"location\":\"mpwctoflds\",\"tags\":{\"g\":\"dhztxkbr\"},\"eTag\":\"wjiyewhfjsrwq\",\"properties\":{\"protectableContainerType\":\"ProtectableContainer\",\"friendlyName\":\"tfgcwvrr\",\"backupManagementType\":\"Invalid\",\"healthStatus\":\"tycnawthvmaxg\",\"containerId\":\"yeamcmhudf\"},\"id\":\"cehokw\",\"name\":\"pqtwloesqrggvrb\",\"type\":\"yrukoi\"},{\"location\":\"ciduwjle\",\"tags\":{\"yxpzruzythqk\":\"lh\",\"xdm\":\"whbgxvellvul\",\"lyymffhmjpddny\":\"itmujdtvm\",\"mzjqrbr\":\"fzuvrzmz\"},\"eTag\":\"nmdyfoebo\",\"properties\":{\"protectableContainerType\":\"ProtectableContainer\",\"friendlyName\":\"pp\",\"backupManagementType\":\"Invalid\",\"healthStatus\":\"h\",\"containerId\":\"kpjtnqjilaywk\"},\"id\":\"wm\",\"name\":\"syril\",\"type\":\"hxdqaol\"},{\"location\":\"lnkkbjpjvlywltmf\",\"tags\":{\"zgczeu\":\"bjwhlwyjfnqzocr\",\"iekoif\":\"tgxdncaqt\"},\"eTag\":\"nyttzgix\",\"properties\":{\"protectableContainerType\":\"ProtectableContainer\",\"friendlyName\":\"ihlgm\",\"backupManagementType\":\"AzureStorage\",\"healthStatus\":\"lqtxnrflkndrn\",\"containerId\":\"gfjo\"},\"id\":\"daqotwfh\",\"name\":\"pxwgsa\",\"type\":\"vcipo\"},{\"location\":\"afcz\",\"tags\":{\"itjn\":\"ljcirvpefycdvei\"},\"eTag\":\"zaj\",\"properties\":{\"protectableContainerType\":\"ProtectableContainer\",\"friendlyName\":\"jhwjuyxx\",\"backupManagementType\":\"AzureIaasVM\",\"healthStatus\":\"mvuaytuadxkxe\",\"containerId\":\"wp\"},\"id\":\"ghyksarcdrnxs\",\"name\":\"u\",\"type\":\"lzladltxkpbqh\"}],\"nextLink\":\"dqqjwkrhwzdano\"}") .toObject(ProtectableContainerResourceList.class); - Assertions.assertEquals("kn", model.nextLink()); - Assertions.assertEquals("oclxiut", model.value().get(0).location()); - Assertions.assertEquals("yzyzjd", model.value().get(0).tags().get("r")); - Assertions.assertEquals("iyslpkcvmwfaux", model.value().get(0).eTag()); - Assertions.assertEquals("myw", model.value().get(0).properties().friendlyName()); - Assertions.assertEquals(BackupManagementType.AZURE_IAAS_VM, - model.value().get(0).properties().backupManagementType()); - Assertions.assertEquals("c", model.value().get(0).properties().healthStatus()); - Assertions.assertEquals("iciijqpkzfbojx", model.value().get(0).properties().containerId()); + Assertions.assertEquals("dqqjwkrhwzdano", model.nextLink()); + Assertions.assertEquals("mpwctoflds", model.value().get(0).location()); + Assertions.assertEquals("dhztxkbr", model.value().get(0).tags().get("g")); + Assertions.assertEquals("wjiyewhfjsrwq", model.value().get(0).eTag()); + Assertions.assertEquals("tfgcwvrr", model.value().get(0).properties().friendlyName()); + Assertions.assertEquals(BackupManagementType.INVALID, model.value().get(0).properties().backupManagementType()); + Assertions.assertEquals("tycnawthvmaxg", model.value().get(0).properties().healthStatus()); + Assertions.assertEquals("yeamcmhudf", model.value().get(0).properties().containerId()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectableContainerTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectableContainerTests.java index 18c5da209e042..7db02b6316896 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectableContainerTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectableContainerTests.java @@ -13,11 +13,11 @@ public final class ProtectableContainerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProtectableContainer model = BinaryData.fromString( - "{\"protectableContainerType\":\"ProtectableContainer\",\"friendlyName\":\"evuafpwzyifrk\",\"backupManagementType\":\"AzureStorage\",\"healthStatus\":\"xeqipx\",\"containerId\":\"dyimsfay\"}") + "{\"protectableContainerType\":\"ProtectableContainer\",\"friendlyName\":\"ezeagmceituuge\",\"backupManagementType\":\"AzureBackupServer\",\"healthStatus\":\"jstlzmblsyj\",\"containerId\":\"olctae\"}") .toObject(ProtectableContainer.class); - Assertions.assertEquals("evuafpwzyifrk", model.friendlyName()); - Assertions.assertEquals(BackupManagementType.AZURE_STORAGE, model.backupManagementType()); - Assertions.assertEquals("xeqipx", model.healthStatus()); - Assertions.assertEquals("dyimsfay", model.containerId()); + Assertions.assertEquals("ezeagmceituuge", model.friendlyName()); + Assertions.assertEquals(BackupManagementType.AZURE_BACKUP_SERVER, model.backupManagementType()); + Assertions.assertEquals("jstlzmblsyj", model.healthStatus()); + Assertions.assertEquals("olctae", model.containerId()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectableContainersListMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectableContainersListMockTests.java index 6a7599d0ad9af..6e3ea6bebbf81 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectableContainersListMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectableContainersListMockTests.java @@ -23,7 +23,7 @@ public final class ProtectableContainersListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"location\":\"xopgehpadkmd\",\"tags\":{\"sirncclabvoy\":\"szxvctkbbxuhar\",\"ghdsaidjanormov\":\"gsuxxczbmyqj\",\"hdeeljslkyozdsfz\":\"xxurntujmoilunwe\",\"htslejtvxj\":\"uegrh\"},\"eTag\":\"vgjbfio\",\"properties\":{\"protectableContainerType\":\"ProtectableContainer\",\"friendlyName\":\"jod\",\"backupManagementType\":\"AzureBackupServer\",\"healthStatus\":\"qqw\",\"containerId\":\"q\"},\"id\":\"oxsazuxejgwe\",\"name\":\"ywnfyszzaczs\",\"type\":\"nqbdnddbboz\"}]}"; + = "{\"value\":[{\"location\":\"xgdebxl\",\"tags\":{\"irhpfabenq\":\"no\",\"mgewayxf\":\"am\"},\"eTag\":\"bcpjstbhem\",\"properties\":{\"protectableContainerType\":\"ProtectableContainer\",\"friendlyName\":\"csqsnxfbx\",\"backupManagementType\":\"AzureSql\",\"healthStatus\":\"pdr\",\"containerId\":\"yvbsuadu\"},\"id\":\"odkaxpfobkzhm\",\"name\":\"jdqltdeluqro\",\"type\":\"adhfztlray\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,15 +33,15 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.protectableContainers() - .list("otnplfacqocc", "rqxw", "tjtdrhutfd", "a", com.azure.core.util.Context.NONE); + .list("dqumqvfm", "caddtgc", "xegtvgwyur", "elfnzzryiz", com.azure.core.util.Context.NONE); - Assertions.assertEquals("xopgehpadkmd", response.iterator().next().location()); - Assertions.assertEquals("szxvctkbbxuhar", response.iterator().next().tags().get("sirncclabvoy")); - Assertions.assertEquals("vgjbfio", response.iterator().next().eTag()); - Assertions.assertEquals("jod", response.iterator().next().properties().friendlyName()); - Assertions.assertEquals(BackupManagementType.AZURE_BACKUP_SERVER, + Assertions.assertEquals("xgdebxl", response.iterator().next().location()); + Assertions.assertEquals("no", response.iterator().next().tags().get("irhpfabenq")); + Assertions.assertEquals("bcpjstbhem", response.iterator().next().eTag()); + Assertions.assertEquals("csqsnxfbx", response.iterator().next().properties().friendlyName()); + Assertions.assertEquals(BackupManagementType.AZURE_SQL, response.iterator().next().properties().backupManagementType()); - Assertions.assertEquals("qqw", response.iterator().next().properties().healthStatus()); - Assertions.assertEquals("q", response.iterator().next().properties().containerId()); + Assertions.assertEquals("pdr", response.iterator().next().properties().healthStatus()); + Assertions.assertEquals("yvbsuadu", response.iterator().next().properties().containerId()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemConfigureSourceScanRequestTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemConfigureSourceScanRequestTests.java index 671f1e2367d89..864b0450424db 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemConfigureSourceScanRequestTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemConfigureSourceScanRequestTests.java @@ -12,16 +12,16 @@ public final class ProtectedItemConfigureSourceScanRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ProtectedItemConfigureSourceScanRequest model = BinaryData.fromString("{\"sourceScanAction\":\"Enable\"}") + ProtectedItemConfigureSourceScanRequest model = BinaryData.fromString("{\"sourceScanAction\":\"Disable\"}") .toObject(ProtectedItemConfigureSourceScanRequest.class); - Assertions.assertEquals(SourceScanAction.ENABLE, model.sourceScanAction()); + Assertions.assertEquals(SourceScanAction.DISABLE, model.sourceScanAction()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ProtectedItemConfigureSourceScanRequest model - = new ProtectedItemConfigureSourceScanRequest().withSourceScanAction(SourceScanAction.ENABLE); + = new ProtectedItemConfigureSourceScanRequest().withSourceScanAction(SourceScanAction.DISABLE); model = BinaryData.fromObject(model).toObject(ProtectedItemConfigureSourceScanRequest.class); - Assertions.assertEquals(SourceScanAction.ENABLE, model.sourceScanAction()); + Assertions.assertEquals(SourceScanAction.DISABLE, model.sourceScanAction()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemOperationResultsGetWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemOperationResultsGetWithResponseMockTests.java index 973bd12dcd3d5..d1de6181a9397 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemOperationResultsGetWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemOperationResultsGetWithResponseMockTests.java @@ -24,7 +24,7 @@ public final class ProtectedItemOperationResultsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"protectedItemType\":\"ProtectedItem\",\"backupManagementType\":\"AzureStorage\",\"workloadType\":\"Exchange\",\"containerName\":\"ribqlotokh\",\"sourceResourceId\":\"wtaznkcqw\",\"policyId\":\"wjyofgwhnkbtl\",\"lastRecoveryPoint\":\"2021-04-14T10:42:51Z\",\"backupSetName\":\"smctsn\",\"createMode\":\"Invalid\",\"deferredDeleteTimeInUTC\":\"2021-05-30T12:30:35Z\",\"isScheduledForDeferredDelete\":true,\"deferredDeleteTimeRemaining\":\"isubxbteog\",\"isDeferredDeleteScheduleUpcoming\":true,\"isRehydrate\":false,\"resourceGuardOperationRequests\":[\"ykwlefksxqceazf\",\"xgnmqvzvluyq\"],\"isArchiveEnabled\":false,\"policyName\":\"ssscyvai\",\"softDeleteRetentionPeriodInDays\":91783567,\"sourceLocation\":\"acvfyeowps\",\"vaultId\":\"tjdhsoymhpvtyq\",\"sourceSideScanInfo\":{\"sourceSideScanStatus\":\"ConfigurationFailed\",\"sourceSideScanSummary\":\"NoThreatsReported\"}},\"tags\":{\"stkfvvdshxcdeds\":\"ou\",\"rf\":\"enygnxcgjtfrnquk\",\"nlrxsmyltrwntfmt\":\"s\"},\"location\":\"wjdxw\",\"eTag\":\"zkurrdreyzj\",\"id\":\"setwwjw\",\"name\":\"zqs\",\"type\":\"uzu\"}"; + = "{\"properties\":{\"protectedItemType\":\"ProtectedItem\",\"backupManagementType\":\"DPM\",\"workloadType\":\"Client\",\"containerName\":\"tqsmoxsa\",\"sourceResourceId\":\"xej\",\"policyId\":\"ecywn\",\"lastRecoveryPoint\":\"2021-05-10T21:17:50Z\",\"backupSetName\":\"za\",\"createMode\":\"Invalid\",\"deferredDeleteTimeInUTC\":\"2021-12-07T02:03:22Z\",\"isScheduledForDeferredDelete\":false,\"deferredDeleteTimeRemaining\":\"nddbbozsyvr\",\"isDeferredDeleteScheduleUpcoming\":true,\"isRehydrate\":true,\"resourceGuardOperationRequests\":[\"rchwudlxeei\",\"tpmnoe\",\"hqlfmsib\"],\"isArchiveEnabled\":false,\"policyName\":\"fgxkydpmypgf\",\"softDeleteRetentionPeriodInDays\":1621792370,\"sourceLocation\":\"ywhlakxpe\",\"vaultId\":\"ewp\",\"sourceSideScanInfo\":{\"sourceSideScanStatus\":\"ConfigurationFailed\",\"sourceSideScanSummary\":\"Suspicious\"}},\"tags\":{\"w\":\"qcrzgeuqxbpia\",\"gddhjkrukizyhgs\":\"aujegqdtadra\",\"fpjbqggwe\":\"tnqsktx\",\"cstu\":\"iwdhdmncgbfzu\"},\"location\":\"lhxd\",\"eTag\":\"klciichgjsysm\",\"id\":\"o\",\"name\":\"gwxfkzsi\",\"type\":\"cuvbdujgcwxvec\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,33 +34,33 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ProtectedItemResource response = manager.protectedItemOperationResults() - .getWithResponse("gzlrqhbj", "qogdx", "bsfp", "xxtjlflecomi", "xojjl", "xxdhilzzdzzqjm", + .getWithResponse("jslkyozdsfzjue", "rhrhtsl", "jtv", "j", "xvgjbfi", "bpnjodf", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("ribqlotokh", response.properties().containerName()); - Assertions.assertEquals("wtaznkcqw", response.properties().sourceResourceId()); - Assertions.assertEquals("wjyofgwhnkbtl", response.properties().policyId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-14T10:42:51Z"), + Assertions.assertEquals("tqsmoxsa", response.properties().containerName()); + Assertions.assertEquals("xej", response.properties().sourceResourceId()); + Assertions.assertEquals("ecywn", response.properties().policyId()); + Assertions.assertEquals(OffsetDateTime.parse("2021-05-10T21:17:50Z"), response.properties().lastRecoveryPoint()); - Assertions.assertEquals("smctsn", response.properties().backupSetName()); + Assertions.assertEquals("za", response.properties().backupSetName()); Assertions.assertEquals(CreateMode.INVALID, response.properties().createMode()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-30T12:30:35Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-12-07T02:03:22Z"), response.properties().deferredDeleteTimeInUtc()); - Assertions.assertTrue(response.properties().isScheduledForDeferredDelete()); - Assertions.assertEquals("isubxbteog", response.properties().deferredDeleteTimeRemaining()); + Assertions.assertFalse(response.properties().isScheduledForDeferredDelete()); + Assertions.assertEquals("nddbbozsyvr", response.properties().deferredDeleteTimeRemaining()); Assertions.assertTrue(response.properties().isDeferredDeleteScheduleUpcoming()); - Assertions.assertFalse(response.properties().isRehydrate()); - Assertions.assertEquals("ykwlefksxqceazf", response.properties().resourceGuardOperationRequests().get(0)); + Assertions.assertTrue(response.properties().isRehydrate()); + Assertions.assertEquals("rchwudlxeei", response.properties().resourceGuardOperationRequests().get(0)); Assertions.assertFalse(response.properties().isArchiveEnabled()); - Assertions.assertEquals("ssscyvai", response.properties().policyName()); - Assertions.assertEquals(91783567, response.properties().softDeleteRetentionPeriodInDays()); + Assertions.assertEquals("fgxkydpmypgf", response.properties().policyName()); + Assertions.assertEquals(1621792370, response.properties().softDeleteRetentionPeriodInDays()); Assertions.assertEquals(SourceSideScanStatus.CONFIGURATION_FAILED, response.properties().sourceSideScanInfo().sourceSideScanStatus()); - Assertions.assertEquals(SourceSideScanSummary.NO_THREATS_REPORTED, + Assertions.assertEquals(SourceSideScanSummary.SUSPICIOUS, response.properties().sourceSideScanInfo().sourceSideScanSummary()); - Assertions.assertEquals("ou", response.tags().get("stkfvvdshxcdeds")); - Assertions.assertEquals("wjdxw", response.location()); - Assertions.assertEquals("zkurrdreyzj", response.etag()); + Assertions.assertEquals("qcrzgeuqxbpia", response.tags().get("w")); + Assertions.assertEquals("lhxd", response.location()); + Assertions.assertEquals("klciichgjsysm", response.etag()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemResourceInnerTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemResourceInnerTests.java index 1f097da0d423e..117504900bd00 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemResourceInnerTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemResourceInnerTests.java @@ -21,7 +21,7 @@ public final class ProtectedItemResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProtectedItemResourceInner model = BinaryData.fromString( - "{\"properties\":{\"protectedItemType\":\"ProtectedItem\",\"backupManagementType\":\"Invalid\",\"workloadType\":\"SAPAseDatabase\",\"containerName\":\"ionpimexg\",\"sourceResourceId\":\"xgcp\",\"policyId\":\"gmaajrm\",\"lastRecoveryPoint\":\"2021-03-11T04:53:43Z\",\"backupSetName\":\"zrlovmclwhijcoej\",\"createMode\":\"Recover\",\"deferredDeleteTimeInUTC\":\"2021-04-06T12:53:23Z\",\"isScheduledForDeferredDelete\":false,\"deferredDeleteTimeRemaining\":\"sycbkbfk\",\"isDeferredDeleteScheduleUpcoming\":false,\"isRehydrate\":false,\"resourceGuardOperationRequests\":[\"xppofmxaxcfjp\",\"ddtocjjxhvp\"],\"isArchiveEnabled\":false,\"policyName\":\"xhdzxibqeojnx\",\"softDeleteRetentionPeriodInDays\":2010157167,\"sourceLocation\":\"ddntwndei\",\"vaultId\":\"twnpzaoqvuhrhcf\",\"sourceSideScanInfo\":{\"sourceSideScanStatus\":\"NotConfigured\",\"sourceSideScanSummary\":\"Suspicious\"}},\"tags\":{\"xmqci\":\"jthjqkwpyei\",\"hkh\":\"q\",\"ghmewuam\":\"xuigdtopbobj\"},\"location\":\"hrzayvvtpgvdf\",\"eTag\":\"otkftutqxlngx\",\"id\":\"fgugnxkrxdqmid\",\"name\":\"thz\",\"type\":\"vqdra\"}") + "{\"properties\":{\"protectedItemType\":\"ProtectedItem\",\"backupManagementType\":\"Invalid\",\"workloadType\":\"SAPHanaDBInstance\",\"containerName\":\"ionpimexg\",\"sourceResourceId\":\"xgcp\",\"policyId\":\"gmaajrm\",\"lastRecoveryPoint\":\"2021-03-11T04:53:43Z\",\"backupSetName\":\"zrlovmclwhijcoej\",\"createMode\":\"Recover\",\"deferredDeleteTimeInUTC\":\"2021-04-06T12:53:23Z\",\"isScheduledForDeferredDelete\":false,\"deferredDeleteTimeRemaining\":\"sycbkbfk\",\"isDeferredDeleteScheduleUpcoming\":false,\"isRehydrate\":false,\"resourceGuardOperationRequests\":[\"xppofmxaxcfjp\",\"ddtocjjxhvp\"],\"isArchiveEnabled\":false,\"policyName\":\"xhdzxibqeojnx\",\"softDeleteRetentionPeriodInDays\":2010157167,\"sourceLocation\":\"ddntwndei\",\"vaultId\":\"twnpzaoqvuhrhcf\",\"sourceSideScanInfo\":{\"sourceSideScanStatus\":\"NotConfigured\",\"sourceSideScanSummary\":\"Suspicious\"}},\"tags\":{\"xmqci\":\"jthjqkwpyei\",\"hkh\":\"q\",\"ghmewuam\":\"xuigdtopbobj\"},\"location\":\"hrzayvvtpgvdf\",\"eTag\":\"otkftutqxlngx\",\"id\":\"fgugnxkrxdqmid\",\"name\":\"thz\",\"type\":\"vqdra\"}") .toObject(ProtectedItemResourceInner.class); Assertions.assertEquals("ionpimexg", model.properties().containerName()); Assertions.assertEquals("xgcp", model.properties().sourceResourceId()); diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemResourceListTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemResourceListTests.java index 0a9b0adbc0e47..d3c221dac8710 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemResourceListTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemResourceListTests.java @@ -16,33 +16,32 @@ public final class ProtectedItemResourceListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProtectedItemResourceList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"protectedItemType\":\"ProtectedItem\",\"backupManagementType\":\"AzureStorage\",\"workloadType\":\"FileFolder\",\"containerName\":\"qmavnw\",\"sourceResourceId\":\"wgoknlejjjkx\",\"policyId\":\"wfd\",\"lastRecoveryPoint\":\"2021-09-07T07:03:44Z\",\"backupSetName\":\"ztensvkzykjtj\",\"createMode\":\"Default\",\"deferredDeleteTimeInUTC\":\"2021-01-24T10:59:51Z\",\"isScheduledForDeferredDelete\":false,\"deferredDeleteTimeRemaining\":\"hcdpkupnqrmgj\",\"isDeferredDeleteScheduleUpcoming\":true,\"isRehydrate\":true,\"resourceGuardOperationRequests\":[\"eoiojfizfavkjzw\",\"bcyaykmmfzs\"],\"isArchiveEnabled\":true,\"policyName\":\"rzx\",\"softDeleteRetentionPeriodInDays\":1654114991,\"sourceLocation\":\"srsx\",\"vaultId\":\"plbjaze\",\"sourceSideScanInfo\":{\"sourceSideScanStatus\":\"ConfigurationFailed\",\"sourceSideScanSummary\":\"Suspicious\"}},\"tags\":{\"hbrnnhjx\":\"ps\"},\"location\":\"wjh\",\"eTag\":\"biwetpo\",\"id\":\"c\",\"name\":\"qiqyhgfsetzlexbs\",\"type\":\"ledynojpz\"},{\"properties\":{\"protectedItemType\":\"ProtectedItem\",\"backupManagementType\":\"AzureWorkload\",\"workloadType\":\"SystemState\",\"containerName\":\"kdtnhqsyclj\",\"sourceResourceId\":\"lpkpbafvafhl\",\"policyId\":\"lc\",\"lastRecoveryPoint\":\"2021-05-04T18:16:01Z\",\"backupSetName\":\"xrhyzdfwrsofplt\",\"createMode\":\"Invalid\",\"deferredDeleteTimeInUTC\":\"2021-08-25T12:25:16Z\",\"isScheduledForDeferredDelete\":true,\"deferredDeleteTimeRemaining\":\"vhfn\",\"isDeferredDeleteScheduleUpcoming\":true,\"isRehydrate\":false,\"resourceGuardOperationRequests\":[\"igtuu\",\"wouhdawsi\",\"rb\",\"bxsjybvitvqkj\"],\"isArchiveEnabled\":true,\"policyName\":\"umtggmuwdchozfn\",\"softDeleteRetentionPeriodInDays\":737761166,\"sourceLocation\":\"lv\",\"vaultId\":\"oakizvoai\",\"sourceSideScanInfo\":{\"sourceSideScanStatus\":\"Configured\",\"sourceSideScanSummary\":\"Unknown\"}},\"tags\":{\"zc\":\"iguyxlykwphv\",\"onwivkcqhrxhxkn\":\"xhmpejtlkex\",\"upijubyqjfkakfq\":\"ccrmmk\"},\"location\":\"kemyil\",\"eTag\":\"dxjascowvfdj\",\"id\":\"dxphlk\",\"name\":\"snmgzvyfi\",\"type\":\"dkz\"},{\"properties\":{\"protectedItemType\":\"ProtectedItem\",\"backupManagementType\":\"MAB\",\"workloadType\":\"VM\",\"containerName\":\"huqol\",\"sourceResourceId\":\"hluqwquls\",\"policyId\":\"rjb\",\"lastRecoveryPoint\":\"2021-06-06T03:06:35Z\",\"backupSetName\":\"fhyqezvqqugdrft\",\"createMode\":\"Recover\",\"deferredDeleteTimeInUTC\":\"2021-01-25T09:01:22Z\",\"isScheduledForDeferredDelete\":false,\"deferredDeleteTimeRemaining\":\"quowtljvfwhrea\",\"isDeferredDeleteScheduleUpcoming\":false,\"isRehydrate\":false,\"resourceGuardOperationRequests\":[\"qtvbczsu\",\"mdgglmepjpfs\",\"ykgsangpszng\",\"fpgylkve\"],\"isArchiveEnabled\":false,\"policyName\":\"cngoadyedmzrg\",\"softDeleteRetentionPeriodInDays\":1272753259,\"sourceLocation\":\"nub\",\"vaultId\":\"itpkpztrgdg\",\"sourceSideScanInfo\":{\"sourceSideScanStatus\":\"ConfigurationFailed\",\"sourceSideScanSummary\":\"Healthy\"}},\"tags\":{\"qi\":\"wugyx\"},\"location\":\"eialwvskb\",\"eTag\":\"z\",\"id\":\"aq\",\"name\":\"yltcoqcuj\",\"type\":\"dsxzakuejkmvb\"},{\"properties\":{\"protectedItemType\":\"ProtectedItem\",\"backupManagementType\":\"AzureIaasVM\",\"workloadType\":\"Sharepoint\",\"containerName\":\"cvovjufyc\",\"sourceResourceId\":\"mlbemy\",\"policyId\":\"iriuxegthortu\",\"lastRecoveryPoint\":\"2021-02-02T10:39:58Z\",\"backupSetName\":\"pjfe\",\"createMode\":\"Default\",\"deferredDeleteTimeInUTC\":\"2021-04-18T11:59:41Z\",\"isScheduledForDeferredDelete\":false,\"deferredDeleteTimeRemaining\":\"bgqnz\",\"isDeferredDeleteScheduleUpcoming\":false,\"isRehydrate\":true,\"resourceGuardOperationRequests\":[\"alwcjgckbb\",\"ccgzpraoxnyu\"],\"isArchiveEnabled\":false,\"policyName\":\"sgftipwc\",\"softDeleteRetentionPeriodInDays\":1912841634,\"sourceLocation\":\"bh\",\"vaultId\":\"dxyurnpnuhza\",\"sourceSideScanInfo\":{\"sourceSideScanStatus\":\"NotConfigured\",\"sourceSideScanSummary\":\"Suspicious\"}},\"tags\":{\"xvatvcr\":\"gbylbuig\"},\"location\":\"lbnb\",\"eTag\":\"vhcs\",\"id\":\"zlwxaeaovur\",\"name\":\"xdndsbdweaderzm\",\"type\":\"ntopa\"}],\"nextLink\":\"tmvmmagoaqylkjz\"}") + "{\"value\":[{\"properties\":{\"protectedItemType\":\"ProtectedItem\",\"backupManagementType\":\"AzureSql\",\"workloadType\":\"VMwareVM\",\"containerName\":\"kmfd\",\"sourceResourceId\":\"yxgbkkqvjcteoedl\",\"policyId\":\"lskkzpxvj\",\"lastRecoveryPoint\":\"2021-11-12T04:28:43Z\",\"backupSetName\":\"vocoj\",\"createMode\":\"Default\",\"deferredDeleteTimeInUTC\":\"2021-10-07T09:17:41Z\",\"isScheduledForDeferredDelete\":true,\"deferredDeleteTimeRemaining\":\"fsnggytexvzilm\",\"isDeferredDeleteScheduleUpcoming\":true,\"isRehydrate\":false,\"resourceGuardOperationRequests\":[\"wncknr\"],\"isArchiveEnabled\":true,\"policyName\":\"lskzptjxul\",\"softDeleteRetentionPeriodInDays\":1218735552,\"sourceLocation\":\"yrth\",\"vaultId\":\"lehmcgcjeinueho\",\"sourceSideScanInfo\":{\"sourceSideScanStatus\":\"ConfigurationFailed\",\"sourceSideScanSummary\":\"Unknown\"}},\"tags\":{\"abzfivf\":\"qnttmbq\"},\"location\":\"pysthhz\",\"eTag\":\"jfwyyrlhgenuze\",\"id\":\"vkvebaqsz\",\"name\":\"lrz\",\"type\":\"smmd\"},{\"properties\":{\"protectedItemType\":\"ProtectedItem\",\"backupManagementType\":\"DefaultBackup\",\"workloadType\":\"FileFolder\",\"containerName\":\"imcqrh\",\"sourceResourceId\":\"t\",\"policyId\":\"nklogxsvtzarhzv\",\"lastRecoveryPoint\":\"2021-01-21T05:04:35Z\",\"backupSetName\":\"kt\",\"createMode\":\"Default\",\"deferredDeleteTimeInUTC\":\"2020-12-31T13:57:49Z\",\"isScheduledForDeferredDelete\":true,\"deferredDeleteTimeRemaining\":\"slpkybtg\",\"isDeferredDeleteScheduleUpcoming\":false,\"isRehydrate\":true,\"resourceGuardOperationRequests\":[\"jsqjcemqbm\",\"uvqarwzxu\",\"rebluimmbwxsf\",\"td\"],\"isArchiveEnabled\":true,\"policyName\":\"ekraokqkbudbt\",\"softDeleteRetentionPeriodInDays\":1049629285,\"sourceLocation\":\"bavly\",\"vaultId\":\"aaknwfr\",\"sourceSideScanInfo\":{\"sourceSideScanStatus\":\"Configured\",\"sourceSideScanSummary\":\"NotApplicable\"}},\"tags\":{\"gatolekscbctnan\":\"ujd\",\"wnsnlaimouxwks\":\"imwbzxpdcldpk\",\"fco\":\"mud\",\"kbqsjhbtqqvyfscy\":\"bicziuswswj\"},\"location\":\"wbivqvogfuyzwvbh\",\"eTag\":\"mb\",\"id\":\"ecr\",\"name\":\"odlikcdrdaasax\",\"type\":\"obsmf\"},{\"properties\":{\"protectedItemType\":\"ProtectedItem\",\"backupManagementType\":\"AzureWorkload\",\"workloadType\":\"AzureFileShare\",\"containerName\":\"ukosrn\",\"sourceResourceId\":\"nvzmlnkoywsx\",\"policyId\":\"abjqqaxuyvymcnud\",\"lastRecoveryPoint\":\"2021-10-27T04:20:03Z\",\"backupSetName\":\"bhjxwxqweuipmpv\",\"createMode\":\"Default\",\"deferredDeleteTimeInUTC\":\"2021-08-03T02:18:50Z\",\"isScheduledForDeferredDelete\":true,\"deferredDeleteTimeRemaining\":\"xtlt\",\"isDeferredDeleteScheduleUpcoming\":true,\"isRehydrate\":true,\"resourceGuardOperationRequests\":[\"gfhyrfra\",\"kldgrcwfcmfc\"],\"isArchiveEnabled\":true,\"policyName\":\"jqmatxjtielnzq\",\"softDeleteRetentionPeriodInDays\":963386262,\"sourceLocation\":\"fbbmtlp\",\"vaultId\":\"gynoiprnzcali\",\"sourceSideScanInfo\":{\"sourceSideScanStatus\":\"ConfigurationFailed\",\"sourceSideScanSummary\":\"Healthy\"}},\"tags\":{\"mqimiymqru\":\"aqzi\"},\"location\":\"u\",\"eTag\":\"upet\",\"id\":\"vvoqsbpkf\",\"name\":\"anfkgxsyaowuzow\",\"type\":\"uohdkcprgukxr\"},{\"properties\":{\"protectedItemType\":\"ProtectedItem\",\"backupManagementType\":\"MAB\",\"workloadType\":\"AzureSqlDb\",\"containerName\":\"utixmqrudjiz\",\"sourceResourceId\":\"f\",\"policyId\":\"crunfhi\",\"lastRecoveryPoint\":\"2021-10-15T10:57:58Z\",\"backupSetName\":\"fbcpaqktkrumzu\",\"createMode\":\"Default\",\"deferredDeleteTimeInUTC\":\"2021-05-21T20:17:50Z\",\"isScheduledForDeferredDelete\":false,\"deferredDeleteTimeRemaining\":\"xo\",\"isDeferredDeleteScheduleUpcoming\":true,\"isRehydrate\":true,\"resourceGuardOperationRequests\":[\"q\",\"gvqrnhyhlwcj\"],\"isArchiveEnabled\":false,\"policyName\":\"jhffbxrqrkij\",\"softDeleteRetentionPeriodInDays\":1416331081,\"sourceLocation\":\"lsdxeqztvxwmw\",\"vaultId\":\"jswenaw\",\"sourceSideScanInfo\":{\"sourceSideScanStatus\":\"ConfigurationFailed\",\"sourceSideScanSummary\":\"NoThreatsReported\"}},\"tags\":{\"jhtollh\":\"ioulndhzyoe\",\"glxpnovyoanfbcsw\":\"vidmytzl\",\"t\":\"agyw\",\"aeukyawohpm\":\"igvjrktp\"},\"location\":\"qnucs\",\"eTag\":\"hsidsjtdlpbnin\",\"id\":\"azlsvbzfcpuo\",\"name\":\"e\",\"type\":\"wjcciklhsy\"}],\"nextLink\":\"rdrenxo\"}") .toObject(ProtectedItemResourceList.class); - Assertions.assertEquals("tmvmmagoaqylkjz", model.nextLink()); - Assertions.assertEquals("qmavnw", model.value().get(0).properties().containerName()); - Assertions.assertEquals("wgoknlejjjkx", model.value().get(0).properties().sourceResourceId()); - Assertions.assertEquals("wfd", model.value().get(0).properties().policyId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-09-07T07:03:44Z"), + Assertions.assertEquals("rdrenxo", model.nextLink()); + Assertions.assertEquals("kmfd", model.value().get(0).properties().containerName()); + Assertions.assertEquals("yxgbkkqvjcteoedl", model.value().get(0).properties().sourceResourceId()); + Assertions.assertEquals("lskkzpxvj", model.value().get(0).properties().policyId()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-12T04:28:43Z"), model.value().get(0).properties().lastRecoveryPoint()); - Assertions.assertEquals("ztensvkzykjtj", model.value().get(0).properties().backupSetName()); + Assertions.assertEquals("vocoj", model.value().get(0).properties().backupSetName()); Assertions.assertEquals(CreateMode.DEFAULT, model.value().get(0).properties().createMode()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-24T10:59:51Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-10-07T09:17:41Z"), model.value().get(0).properties().deferredDeleteTimeInUtc()); - Assertions.assertFalse(model.value().get(0).properties().isScheduledForDeferredDelete()); - Assertions.assertEquals("hcdpkupnqrmgj", model.value().get(0).properties().deferredDeleteTimeRemaining()); + Assertions.assertTrue(model.value().get(0).properties().isScheduledForDeferredDelete()); + Assertions.assertEquals("fsnggytexvzilm", model.value().get(0).properties().deferredDeleteTimeRemaining()); Assertions.assertTrue(model.value().get(0).properties().isDeferredDeleteScheduleUpcoming()); - Assertions.assertTrue(model.value().get(0).properties().isRehydrate()); - Assertions.assertEquals("eoiojfizfavkjzw", - model.value().get(0).properties().resourceGuardOperationRequests().get(0)); + Assertions.assertFalse(model.value().get(0).properties().isRehydrate()); + Assertions.assertEquals("wncknr", model.value().get(0).properties().resourceGuardOperationRequests().get(0)); Assertions.assertTrue(model.value().get(0).properties().isArchiveEnabled()); - Assertions.assertEquals("rzx", model.value().get(0).properties().policyName()); - Assertions.assertEquals(1654114991, model.value().get(0).properties().softDeleteRetentionPeriodInDays()); + Assertions.assertEquals("lskzptjxul", model.value().get(0).properties().policyName()); + Assertions.assertEquals(1218735552, model.value().get(0).properties().softDeleteRetentionPeriodInDays()); Assertions.assertEquals(SourceSideScanStatus.CONFIGURATION_FAILED, model.value().get(0).properties().sourceSideScanInfo().sourceSideScanStatus()); - Assertions.assertEquals(SourceSideScanSummary.SUSPICIOUS, + Assertions.assertEquals(SourceSideScanSummary.UNKNOWN, model.value().get(0).properties().sourceSideScanInfo().sourceSideScanSummary()); - Assertions.assertEquals("ps", model.value().get(0).tags().get("hbrnnhjx")); - Assertions.assertEquals("wjh", model.value().get(0).location()); - Assertions.assertEquals("biwetpo", model.value().get(0).etag()); + Assertions.assertEquals("qnttmbq", model.value().get(0).tags().get("abzfivf")); + Assertions.assertEquals("pysthhz", model.value().get(0).location()); + Assertions.assertEquals("jfwyyrlhgenuze", model.value().get(0).etag()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemsCreateOrUpdateMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemsCreateOrUpdateMockTests.java index 0fcca101f10d9..85b2917cae41b 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemsCreateOrUpdateMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemsCreateOrUpdateMockTests.java @@ -29,7 +29,7 @@ public final class ProtectedItemsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"protectedItemType\":\"ProtectedItem\",\"backupManagementType\":\"AzureStorage\",\"workloadType\":\"Client\",\"containerName\":\"ehxsmzygdfwakws\",\"sourceResourceId\":\"vmakxhysowljuxl\",\"policyId\":\"ect\",\"lastRecoveryPoint\":\"2021-10-10T22:31:31Z\",\"backupSetName\":\"mskdch\",\"createMode\":\"Recover\",\"deferredDeleteTimeInUTC\":\"2021-02-08T17:44:50Z\",\"isScheduledForDeferredDelete\":false,\"deferredDeleteTimeRemaining\":\"zwpvgmfa\",\"isDeferredDeleteScheduleUpcoming\":false,\"isRehydrate\":true,\"resourceGuardOperationRequests\":[\"oke\",\"gjqafkmkrokzr\",\"hqet\"],\"isArchiveEnabled\":true,\"policyName\":\"tvaoznqn\",\"softDeleteRetentionPeriodInDays\":1833808282,\"sourceLocation\":\"zeagmceituuge\",\"vaultId\":\"fpjstlzmb\",\"sourceSideScanInfo\":{\"sourceSideScanStatus\":\"NotApplicable\",\"sourceSideScanSummary\":\"Healthy\"}},\"tags\":{\"djcustbvtqig\":\"ctaebfsyrl\",\"sehxlzsxezp\":\"xzvsgeafgf\"},\"location\":\"kwaaesk\",\"eTag\":\"jlpzeqtoyrp\",\"id\":\"xlaj\",\"name\":\"llpquevhamfo\",\"type\":\"gwb\"}"; + = "{\"properties\":{\"protectedItemType\":\"ProtectedItem\",\"backupManagementType\":\"AzureWorkload\",\"workloadType\":\"SQLDataBase\",\"containerName\":\"coybaj\",\"sourceResourceId\":\"qubfajcyw\",\"policyId\":\"qwmchqohtfxc\",\"lastRecoveryPoint\":\"2021-07-06T05:42:22Z\",\"backupSetName\":\"kiymjzpwd\",\"createMode\":\"Default\",\"deferredDeleteTimeInUTC\":\"2021-09-20T12:38:25Z\",\"isScheduledForDeferredDelete\":true,\"deferredDeleteTimeRemaining\":\"osaonhqnamppu\",\"isDeferredDeleteScheduleUpcoming\":false,\"isRehydrate\":true,\"resourceGuardOperationRequests\":[\"kewnazeajbkajl\",\"yizyddcvxodk\",\"vfsxx\"],\"isArchiveEnabled\":false,\"policyName\":\"sqlv\",\"softDeleteRetentionPeriodInDays\":1742759496,\"sourceLocation\":\"wgoljtzx\",\"vaultId\":\"xsdobygoogxqapjx\",\"sourceSideScanInfo\":{\"sourceSideScanStatus\":\"NotApplicable\",\"sourceSideScanSummary\":\"Unknown\"}},\"tags\":{\"os\":\"saodj\"},\"location\":\"vibfasgmatrnzpd\",\"eTag\":\"daaktuj\",\"id\":\"zboimyfpqdo\",\"name\":\"kpp\",\"type\":\"wyytfvpctf\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -39,56 +39,55 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ProtectedItemResource response = manager.protectedItems() - .define("lmhxdqaolfylnk") - .withExistingProtectionContainer("jpp", "laohoqkp", "t", "qjilaywkdcwmqsyr") - .withRegion("drnxsluvlzla") - .withTags(mapOf("a", "qbwpntghyk")) - .withProperties(new ProtectedItem().withContainerName("ywltmfwobbjwhlwy") - .withSourceResourceId("nqzocrdzg") - .withPolicyId("euntgxdncaqtti") - .withLastRecoveryPoint(OffsetDateTime.parse("2021-10-09T15:57:20Z")) - .withBackupSetName("fuvnyttzgixgyri") - .withCreateMode(CreateMode.RECOVER) - .withDeferredDeleteTimeInUtc(OffsetDateTime.parse("2021-09-27T12:06:12Z")) - .withIsScheduledForDeferredDelete(false) - .withDeferredDeleteTimeRemaining("lqtxnrflkndrn") - .withIsDeferredDeleteScheduleUpcoming(false) + .define("qkxximwgxql") + .withExistingProtectionContainer("ccgrvkcxzznn", "i", "ersejeg", "rkjguwrjmwvvbt") + .withRegion("oisfmnaybdjn") + .withTags(mapOf("woxzgwpsyxji", "xpyl", "rdkdkgaw", "eypdvrbk", "q", "wjxildfkcefeyg")) + .withProperties(new ProtectedItem().withContainerName("xieqfky") + .withSourceResourceId("iwvjaqupbyyn") + .withPolicyId("kpajbmgeume") + .withLastRecoveryPoint(OffsetDateTime.parse("2021-11-04T04:32:14Z")) + .withBackupSetName("xcbccwkqmt") + .withCreateMode(CreateMode.INVALID) + .withDeferredDeleteTimeInUtc(OffsetDateTime.parse("2021-04-13T19:59:52Z")) + .withIsScheduledForDeferredDelete(true) + .withDeferredDeleteTimeRemaining("rpilgftrqrejdaah") + .withIsDeferredDeleteScheduleUpcoming(true) .withIsRehydrate(true) - .withResourceGuardOperationRequests( - Arrays.asList("hdaqotwfhipxwg", "abvcipowzaf", "zuu", "ljcirvpefycdvei")) - .withIsArchiveEnabled(false) - .withPolicyName("nsxzajlns") - .withSoftDeleteRetentionPeriodInDays(1426845278) + .withResourceGuardOperationRequests(Arrays.asList("hlf", "lmuifmua", "jn", "snc")) + .withIsArchiveEnabled(true) + .withPolicyName("oshjgcze") + .withSoftDeleteRetentionPeriodInDays(1352581201) .withSourceSideScanInfo( new SourceSideScanInfo().withSourceSideScanStatus(SourceSideScanStatus.CONFIGURED) - .withSourceSideScanSummary(SourceSideScanSummary.HEALTHY))) - .withEtag("t") + .withSourceSideScanSummary(SourceSideScanSummary.NOT_APPLICABLE))) + .withEtag("mentqo") .create(); - Assertions.assertEquals("ehxsmzygdfwakws", response.properties().containerName()); - Assertions.assertEquals("vmakxhysowljuxl", response.properties().sourceResourceId()); - Assertions.assertEquals("ect", response.properties().policyId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-10T22:31:31Z"), + Assertions.assertEquals("coybaj", response.properties().containerName()); + Assertions.assertEquals("qubfajcyw", response.properties().sourceResourceId()); + Assertions.assertEquals("qwmchqohtfxc", response.properties().policyId()); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-06T05:42:22Z"), response.properties().lastRecoveryPoint()); - Assertions.assertEquals("mskdch", response.properties().backupSetName()); - Assertions.assertEquals(CreateMode.RECOVER, response.properties().createMode()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-08T17:44:50Z"), + Assertions.assertEquals("kiymjzpwd", response.properties().backupSetName()); + Assertions.assertEquals(CreateMode.DEFAULT, response.properties().createMode()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-20T12:38:25Z"), response.properties().deferredDeleteTimeInUtc()); - Assertions.assertFalse(response.properties().isScheduledForDeferredDelete()); - Assertions.assertEquals("zwpvgmfa", response.properties().deferredDeleteTimeRemaining()); + Assertions.assertTrue(response.properties().isScheduledForDeferredDelete()); + Assertions.assertEquals("osaonhqnamppu", response.properties().deferredDeleteTimeRemaining()); Assertions.assertFalse(response.properties().isDeferredDeleteScheduleUpcoming()); Assertions.assertTrue(response.properties().isRehydrate()); - Assertions.assertEquals("oke", response.properties().resourceGuardOperationRequests().get(0)); - Assertions.assertTrue(response.properties().isArchiveEnabled()); - Assertions.assertEquals("tvaoznqn", response.properties().policyName()); - Assertions.assertEquals(1833808282, response.properties().softDeleteRetentionPeriodInDays()); + Assertions.assertEquals("kewnazeajbkajl", response.properties().resourceGuardOperationRequests().get(0)); + Assertions.assertFalse(response.properties().isArchiveEnabled()); + Assertions.assertEquals("sqlv", response.properties().policyName()); + Assertions.assertEquals(1742759496, response.properties().softDeleteRetentionPeriodInDays()); Assertions.assertEquals(SourceSideScanStatus.NOT_APPLICABLE, response.properties().sourceSideScanInfo().sourceSideScanStatus()); - Assertions.assertEquals(SourceSideScanSummary.HEALTHY, + Assertions.assertEquals(SourceSideScanSummary.UNKNOWN, response.properties().sourceSideScanInfo().sourceSideScanSummary()); - Assertions.assertEquals("ctaebfsyrl", response.tags().get("djcustbvtqig")); - Assertions.assertEquals("kwaaesk", response.location()); - Assertions.assertEquals("jlpzeqtoyrp", response.etag()); + Assertions.assertEquals("saodj", response.tags().get("os")); + Assertions.assertEquals("vibfasgmatrnzpd", response.location()); + Assertions.assertEquals("daaktuj", response.etag()); } // Use "Map.of" if available diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemsDeleteWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemsDeleteWithResponseMockTests.java index 20e2aa840737e..65ac0df9ff9bd 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemsDeleteWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemsDeleteWithResponseMockTests.java @@ -28,7 +28,7 @@ public void testDeleteWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.protectedItems() - .deleteWithResponse("vm", "lyymffhmjpddny", "fzuvrzmz", "mzjqrbr", "vnmdyfoeboj", + .deleteWithResponse("zgihotje", "ohmxvvlrrska", "bxwie", "xuy", "derltfokyksyim", com.azure.core.util.Context.NONE); } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemsGetWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemsGetWithResponseMockTests.java index 3738c2414026e..2aa376d177aea 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemsGetWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectedItemsGetWithResponseMockTests.java @@ -24,7 +24,7 @@ public final class ProtectedItemsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"protectedItemType\":\"ProtectedItem\",\"backupManagementType\":\"AzureSql\",\"workloadType\":\"FileFolder\",\"containerName\":\"ogfkbebauzlqb\",\"sourceResourceId\":\"xwpfhnjzud\",\"policyId\":\"pzkg\",\"lastRecoveryPoint\":\"2021-05-02T04:07:54Z\",\"backupSetName\":\"ywhczzq\",\"createMode\":\"Recover\",\"deferredDeleteTimeInUTC\":\"2021-08-06T20:30:35Z\",\"isScheduledForDeferredDelete\":false,\"deferredDeleteTimeRemaining\":\"dygisrzwnykd\",\"isDeferredDeleteScheduleUpcoming\":false,\"isRehydrate\":false,\"resourceGuardOperationRequests\":[\"mpwctoflds\",\"acdhztxkbr\",\"g\"],\"isArchiveEnabled\":true,\"policyName\":\"iyewhfjsrwqr\",\"softDeleteRetentionPeriodInDays\":1923013205,\"sourceLocation\":\"gcwvrrmdqntycna\",\"vaultId\":\"hvmaxgnuyeamcmhu\",\"sourceSideScanInfo\":{\"sourceSideScanStatus\":\"NotConfigured\",\"sourceSideScanSummary\":\"Unknown\"}},\"tags\":{\"cpqtwloesq\":\"k\",\"uwj\":\"ggvrbnyrukoilaci\",\"pjlh\":\"e\"},\"location\":\"xpzruzythqkk\",\"eTag\":\"bg\",\"id\":\"ellv\",\"name\":\"lnx\",\"type\":\"mnitmujd\"}"; + = "{\"properties\":{\"protectedItemType\":\"ProtectedItem\",\"backupManagementType\":\"Invalid\",\"workloadType\":\"Client\",\"containerName\":\"mi\",\"sourceResourceId\":\"ydoccnxshanzb\",\"policyId\":\"adh\",\"lastRecoveryPoint\":\"2021-04-16T00:14Z\",\"backupSetName\":\"caatsdohzniucbda\",\"createMode\":\"Default\",\"deferredDeleteTimeInUTC\":\"2020-12-29T12:30:58Z\",\"isScheduledForDeferredDelete\":true,\"deferredDeleteTimeRemaining\":\"d\",\"isDeferredDeleteScheduleUpcoming\":true,\"isRehydrate\":true,\"resourceGuardOperationRequests\":[\"pow\"],\"isArchiveEnabled\":true,\"policyName\":\"xu\",\"softDeleteRetentionPeriodInDays\":26858435,\"sourceLocation\":\"qwulynkgfcfdru\",\"vaultId\":\"i\",\"sourceSideScanInfo\":{\"sourceSideScanStatus\":\"ConfigurationFailed\",\"sourceSideScanSummary\":\"NotApplicable\"}},\"tags\":{\"okvjgbzsxebrslt\":\"ulriqb\",\"uoard\":\"fyhcdjw\",\"g\":\"agttpufpb\"},\"location\":\"holhujbfw\",\"eTag\":\"plkys\",\"id\":\"syjprxslwhdmcvh\",\"name\":\"b\",\"type\":\"zjhfvhuwzbxpc\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,33 +34,32 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ProtectedItemResource response = manager.protectedItems() - .getWithResponse("yehqbeivdlhydwb", "bfgrlpunytjlkes", "mpathubtah", "e", "niiwllbvgwz", "fftedousnktj", + .getWithResponse("uxtndopgjttbasua", "ap", "lndbeaqbkixv", "lwynpbbfqvzfj", "spugzfeuzjljmph", "ky", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("ogfkbebauzlqb", response.properties().containerName()); - Assertions.assertEquals("xwpfhnjzud", response.properties().sourceResourceId()); - Assertions.assertEquals("pzkg", response.properties().policyId()); - Assertions.assertEquals(OffsetDateTime.parse("2021-05-02T04:07:54Z"), - response.properties().lastRecoveryPoint()); - Assertions.assertEquals("ywhczzq", response.properties().backupSetName()); - Assertions.assertEquals(CreateMode.RECOVER, response.properties().createMode()); - Assertions.assertEquals(OffsetDateTime.parse("2021-08-06T20:30:35Z"), + Assertions.assertEquals("mi", response.properties().containerName()); + Assertions.assertEquals("ydoccnxshanzb", response.properties().sourceResourceId()); + Assertions.assertEquals("adh", response.properties().policyId()); + Assertions.assertEquals(OffsetDateTime.parse("2021-04-16T00:14Z"), response.properties().lastRecoveryPoint()); + Assertions.assertEquals("caatsdohzniucbda", response.properties().backupSetName()); + Assertions.assertEquals(CreateMode.DEFAULT, response.properties().createMode()); + Assertions.assertEquals(OffsetDateTime.parse("2020-12-29T12:30:58Z"), response.properties().deferredDeleteTimeInUtc()); - Assertions.assertFalse(response.properties().isScheduledForDeferredDelete()); - Assertions.assertEquals("dygisrzwnykd", response.properties().deferredDeleteTimeRemaining()); - Assertions.assertFalse(response.properties().isDeferredDeleteScheduleUpcoming()); - Assertions.assertFalse(response.properties().isRehydrate()); - Assertions.assertEquals("mpwctoflds", response.properties().resourceGuardOperationRequests().get(0)); + Assertions.assertTrue(response.properties().isScheduledForDeferredDelete()); + Assertions.assertEquals("d", response.properties().deferredDeleteTimeRemaining()); + Assertions.assertTrue(response.properties().isDeferredDeleteScheduleUpcoming()); + Assertions.assertTrue(response.properties().isRehydrate()); + Assertions.assertEquals("pow", response.properties().resourceGuardOperationRequests().get(0)); Assertions.assertTrue(response.properties().isArchiveEnabled()); - Assertions.assertEquals("iyewhfjsrwqr", response.properties().policyName()); - Assertions.assertEquals(1923013205, response.properties().softDeleteRetentionPeriodInDays()); - Assertions.assertEquals(SourceSideScanStatus.NOT_CONFIGURED, + Assertions.assertEquals("xu", response.properties().policyName()); + Assertions.assertEquals(26858435, response.properties().softDeleteRetentionPeriodInDays()); + Assertions.assertEquals(SourceSideScanStatus.CONFIGURATION_FAILED, response.properties().sourceSideScanInfo().sourceSideScanStatus()); - Assertions.assertEquals(SourceSideScanSummary.UNKNOWN, + Assertions.assertEquals(SourceSideScanSummary.NOT_APPLICABLE, response.properties().sourceSideScanInfo().sourceSideScanSummary()); - Assertions.assertEquals("k", response.tags().get("cpqtwloesq")); - Assertions.assertEquals("xpzruzythqkk", response.location()); - Assertions.assertEquals("bg", response.etag()); + Assertions.assertEquals("ulriqb", response.tags().get("okvjgbzsxebrslt")); + Assertions.assertEquals("holhujbfw", response.location()); + Assertions.assertEquals("plkys", response.etag()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainerOperationResultsGetWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainerOperationResultsGetWithResponseMockTests.java index 97b243b9990a8..8cf054c6f60cb 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainerOperationResultsGetWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainerOperationResultsGetWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class ProtectionContainerOperationResultsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"containerType\":\"ProtectionContainer\",\"friendlyName\":\"ibelwcerwkw\",\"backupManagementType\":\"AzureIaasVM\",\"registrationStatus\":\"ljtxbus\",\"healthStatus\":\"bxxn\",\"protectableObjectType\":\"i\",\"sourceLocation\":\"zhgbdgzpagsecn\"},\"tags\":{\"qrgxf\":\"u\"},\"location\":\"mqiyn\",\"eTag\":\"oellnkkiiwvmt\",\"id\":\"xpymdjfuaxro\",\"name\":\"vqpilrguncanldu\",\"type\":\"zorxsb\"}"; + = "{\"properties\":{\"containerType\":\"ProtectionContainer\",\"friendlyName\":\"ho\",\"backupManagementType\":\"AzureBackupServer\",\"registrationStatus\":\"xhmehjnhjiotif\",\"healthStatus\":\"bcngkegxc\",\"protectableObjectType\":\"xbbfetwil\",\"sourceLocation\":\"zox\"},\"tags\":{\"olqownki\":\"qlf\"},\"location\":\"jew\",\"eTag\":\"hwkxjjmztnl\",\"id\":\"oodtm\",\"name\":\"ecdh\",\"type\":\"yswcrptveajczx\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,17 +32,17 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ProtectionContainerResource response = manager.protectionContainerOperationResults() - .getWithResponse("msvuvdjkqxetq", "mlivrjjxnwx", "chp", "jxlehzlx", "gfquwz", + .getWithResponse("anlxunpq", "ckqiawzlzk", "aslgacizuxlrarwp", "wsaudoejtighsxj", "ytnkqb", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("ibelwcerwkw", response.properties().friendlyName()); - Assertions.assertEquals(BackupManagementType.AZURE_IAAS_VM, response.properties().backupManagementType()); - Assertions.assertEquals("ljtxbus", response.properties().registrationStatus()); - Assertions.assertEquals("bxxn", response.properties().healthStatus()); - Assertions.assertEquals("i", response.properties().protectableObjectType()); - Assertions.assertEquals("u", response.tags().get("qrgxf")); - Assertions.assertEquals("mqiyn", response.location()); - Assertions.assertEquals("oellnkkiiwvmt", response.etag()); + Assertions.assertEquals("ho", response.properties().friendlyName()); + Assertions.assertEquals(BackupManagementType.AZURE_BACKUP_SERVER, response.properties().backupManagementType()); + Assertions.assertEquals("xhmehjnhjiotif", response.properties().registrationStatus()); + Assertions.assertEquals("bcngkegxc", response.properties().healthStatus()); + Assertions.assertEquals("xbbfetwil", response.properties().protectableObjectType()); + Assertions.assertEquals("qlf", response.tags().get("olqownki")); + Assertions.assertEquals("jew", response.location()); + Assertions.assertEquals("hwkxjjmztnl", response.etag()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainerRefreshOperationResultsGetWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainerRefreshOperationResultsGetWithResponseMockTests.java index 70511b56c59ca..cbc3f3ab27b7b 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainerRefreshOperationResultsGetWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainerRefreshOperationResultsGetWithResponseMockTests.java @@ -28,7 +28,7 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.protectionContainerRefreshOperationResults() - .getWithResponse("hieproq", "smfx", "cvprst", "kitbfjtd", com.azure.core.util.Context.NONE); + .getWithResponse("rhzz", "opueo", "usvwluj", "pwnibittozt", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainerResourceInnerTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainerResourceInnerTests.java index af36bda749b78..5bfa2dfdf08db 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainerResourceInnerTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainerResourceInnerTests.java @@ -16,38 +16,38 @@ public final class ProtectionContainerResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProtectionContainerResourceInner model = BinaryData.fromString( - "{\"properties\":{\"containerType\":\"ProtectionContainer\",\"friendlyName\":\"vblm\",\"backupManagementType\":\"DPM\",\"registrationStatus\":\"uhbxvvy\",\"healthStatus\":\"s\",\"protectableObjectType\":\"byrqufeg\",\"sourceLocation\":\"vwz\"},\"tags\":{\"hrixkwmy\":\"hlmctlpdngitvgb\",\"hbpnaixexccbd\":\"jejveg\",\"htpwij\":\"eaxhcexdrrvqahqk\"},\"location\":\"yjsvfyc\",\"eTag\":\"bfvoowvrv\",\"id\":\"gjqppy\",\"name\":\"s\",\"type\":\"ronzmyhgfip\"}") + "{\"properties\":{\"containerType\":\"ProtectionContainer\",\"friendlyName\":\"okqgukkjq\",\"backupManagementType\":\"AzureBackupServer\",\"registrationStatus\":\"oylaxxul\",\"healthStatus\":\"isdos\",\"protectableObjectType\":\"b\",\"sourceLocation\":\"vgjrwhr\"},\"tags\":{\"tmvpdvjdhtt\":\"cytdclxgccknfnwm\"},\"location\":\"efedxihchrphkm\",\"eTag\":\"jdqnsdfzpbgt\",\"id\":\"ylkdghrje\",\"name\":\"utlwxezwzhok\",\"type\":\"bwnhhtql\"}") .toObject(ProtectionContainerResourceInner.class); - Assertions.assertEquals("vblm", model.properties().friendlyName()); - Assertions.assertEquals(BackupManagementType.DPM, model.properties().backupManagementType()); - Assertions.assertEquals("uhbxvvy", model.properties().registrationStatus()); - Assertions.assertEquals("s", model.properties().healthStatus()); - Assertions.assertEquals("byrqufeg", model.properties().protectableObjectType()); - Assertions.assertEquals("hlmctlpdngitvgb", model.tags().get("hrixkwmy")); - Assertions.assertEquals("yjsvfyc", model.location()); - Assertions.assertEquals("bfvoowvrv", model.etag()); + Assertions.assertEquals("okqgukkjq", model.properties().friendlyName()); + Assertions.assertEquals(BackupManagementType.AZURE_BACKUP_SERVER, model.properties().backupManagementType()); + Assertions.assertEquals("oylaxxul", model.properties().registrationStatus()); + Assertions.assertEquals("isdos", model.properties().healthStatus()); + Assertions.assertEquals("b", model.properties().protectableObjectType()); + Assertions.assertEquals("cytdclxgccknfnwm", model.tags().get("tmvpdvjdhtt")); + Assertions.assertEquals("efedxihchrphkm", model.location()); + Assertions.assertEquals("jdqnsdfzpbgt", model.etag()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ProtectionContainerResourceInner model = new ProtectionContainerResourceInner() - .withProperties(new ProtectionContainer().withFriendlyName("vblm") - .withBackupManagementType(BackupManagementType.DPM) - .withRegistrationStatus("uhbxvvy") - .withHealthStatus("s") - .withProtectableObjectType("byrqufeg")) - .withTags(mapOf("hrixkwmy", "hlmctlpdngitvgb", "hbpnaixexccbd", "jejveg", "htpwij", "eaxhcexdrrvqahqk")) - .withLocation("yjsvfyc") - .withEtag("bfvoowvrv"); + .withProperties(new ProtectionContainer().withFriendlyName("okqgukkjq") + .withBackupManagementType(BackupManagementType.AZURE_BACKUP_SERVER) + .withRegistrationStatus("oylaxxul") + .withHealthStatus("isdos") + .withProtectableObjectType("b")) + .withTags(mapOf("tmvpdvjdhtt", "cytdclxgccknfnwm")) + .withLocation("efedxihchrphkm") + .withEtag("jdqnsdfzpbgt"); model = BinaryData.fromObject(model).toObject(ProtectionContainerResourceInner.class); - Assertions.assertEquals("vblm", model.properties().friendlyName()); - Assertions.assertEquals(BackupManagementType.DPM, model.properties().backupManagementType()); - Assertions.assertEquals("uhbxvvy", model.properties().registrationStatus()); - Assertions.assertEquals("s", model.properties().healthStatus()); - Assertions.assertEquals("byrqufeg", model.properties().protectableObjectType()); - Assertions.assertEquals("hlmctlpdngitvgb", model.tags().get("hrixkwmy")); - Assertions.assertEquals("yjsvfyc", model.location()); - Assertions.assertEquals("bfvoowvrv", model.etag()); + Assertions.assertEquals("okqgukkjq", model.properties().friendlyName()); + Assertions.assertEquals(BackupManagementType.AZURE_BACKUP_SERVER, model.properties().backupManagementType()); + Assertions.assertEquals("oylaxxul", model.properties().registrationStatus()); + Assertions.assertEquals("isdos", model.properties().healthStatus()); + Assertions.assertEquals("b", model.properties().protectableObjectType()); + Assertions.assertEquals("cytdclxgccknfnwm", model.tags().get("tmvpdvjdhtt")); + Assertions.assertEquals("efedxihchrphkm", model.location()); + Assertions.assertEquals("jdqnsdfzpbgt", model.etag()); } // Use "Map.of" if available diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainerResourceListTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainerResourceListTests.java index e335210574f4d..802b58df51182 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainerResourceListTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainerResourceListTests.java @@ -13,17 +13,16 @@ public final class ProtectionContainerResourceListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProtectionContainerResourceList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"containerType\":\"ProtectionContainer\",\"friendlyName\":\"v\",\"backupManagementType\":\"AzureBackupServer\",\"registrationStatus\":\"mmkoszudb\",\"healthStatus\":\"s\",\"protectableObjectType\":\"rpcaqkiofkbtf\",\"sourceLocation\":\"kl\"},\"tags\":{\"wusqx\":\"dpvcbhhezyq\"},\"location\":\"rp\",\"eTag\":\"r\",\"id\":\"uuatvlmbjwcol\",\"name\":\"mxlbn\",\"type\":\"tpc\"},{\"properties\":{\"containerType\":\"ProtectionContainer\",\"friendlyName\":\"pr\",\"backupManagementType\":\"MAB\",\"registrationStatus\":\"hmtfho\",\"healthStatus\":\"xzcmjhngxno\",\"protectableObjectType\":\"xtdisnjevhd\",\"sourceLocation\":\"ydidwhepfwwtjf\"},\"tags\":{\"wcdbckyoik\":\"sxxh\",\"rbhtmeplvukaobr\":\"kxhnegknj\",\"jhgem\":\"bpgsnbagnc\",\"ywalhjymxcg\":\"owa\"},\"location\":\"agdrcls\",\"eTag\":\"ljomevt\",\"id\":\"cnlbv\",\"name\":\"jcodkkgjiiytssi\",\"type\":\"izbcufqbvntnr\"},{\"properties\":{\"containerType\":\"ProtectionContainer\",\"friendlyName\":\"sorhcekx\",\"backupManagementType\":\"DPM\",\"registrationStatus\":\"km\",\"healthStatus\":\"pwzvmdoksqdti\",\"protectableObjectType\":\"wxlboncqbazqicq\",\"sourceLocation\":\"ygtvxbyjanepub\"},\"tags\":{\"i\":\"xyqvg\",\"tvo\":\"od\",\"s\":\"kxdxuwsaifmcwn\",\"y\":\"zlehgcvkbcknjolg\"},\"location\":\"pvelszerqze\",\"eTag\":\"o\",\"id\":\"intxwa\",\"name\":\"jglzoblqwaafrq\",\"type\":\"lhm\"}],\"nextLink\":\"qb\"}") + "{\"value\":[{\"properties\":{\"containerType\":\"ProtectionContainer\",\"friendlyName\":\"izerw\",\"backupManagementType\":\"MAB\",\"registrationStatus\":\"smxubvf\",\"healthStatus\":\"gfcoc\",\"protectableObjectType\":\"hpriylfm\",\"sourceLocation\":\"trauds\"},\"tags\":{\"gpqtmo\":\"cdculr\",\"shqrdgrt\":\"hvrztnvg\",\"fa\":\"mewjzlpyk\"},\"location\":\"wjcayerzrr\",\"eTag\":\"syb\",\"id\":\"polwzrghsrlei\",\"name\":\"kfscjfncjwv\",\"type\":\"ag\"},{\"properties\":{\"containerType\":\"ProtectionContainer\",\"friendlyName\":\"tltng\",\"backupManagementType\":\"AzureWorkload\",\"registrationStatus\":\"uptrklz\",\"healthStatus\":\"jajwolxfsvag\",\"protectableObjectType\":\"pynwlslrcigtzjcv\",\"sourceLocation\":\"qlapsnsso\"},\"tags\":{\"vyezslpux\":\"pavidnievwffc\",\"gpazwu\":\"cbdsvalpnptwtrk\"},\"location\":\"yqvnjobfe\",\"eTag\":\"ldiuhzzgqlm\",\"id\":\"ewzgiud\",\"name\":\"p\",\"type\":\"pqht\"}],\"nextLink\":\"hnmhkrezsdsux\"}") .toObject(ProtectionContainerResourceList.class); - Assertions.assertEquals("qb", model.nextLink()); - Assertions.assertEquals("v", model.value().get(0).properties().friendlyName()); - Assertions.assertEquals(BackupManagementType.AZURE_BACKUP_SERVER, - model.value().get(0).properties().backupManagementType()); - Assertions.assertEquals("mmkoszudb", model.value().get(0).properties().registrationStatus()); - Assertions.assertEquals("s", model.value().get(0).properties().healthStatus()); - Assertions.assertEquals("rpcaqkiofkbtf", model.value().get(0).properties().protectableObjectType()); - Assertions.assertEquals("dpvcbhhezyq", model.value().get(0).tags().get("wusqx")); - Assertions.assertEquals("rp", model.value().get(0).location()); - Assertions.assertEquals("r", model.value().get(0).etag()); + Assertions.assertEquals("hnmhkrezsdsux", model.nextLink()); + Assertions.assertEquals("izerw", model.value().get(0).properties().friendlyName()); + Assertions.assertEquals(BackupManagementType.MAB, model.value().get(0).properties().backupManagementType()); + Assertions.assertEquals("smxubvf", model.value().get(0).properties().registrationStatus()); + Assertions.assertEquals("gfcoc", model.value().get(0).properties().healthStatus()); + Assertions.assertEquals("hpriylfm", model.value().get(0).properties().protectableObjectType()); + Assertions.assertEquals("cdculr", model.value().get(0).tags().get("gpqtmo")); + Assertions.assertEquals("wjcayerzrr", model.value().get(0).location()); + Assertions.assertEquals("syb", model.value().get(0).etag()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainerTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainerTests.java index 7647c22a3cc7a..4876dd54c814f 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainerTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainerTests.java @@ -13,27 +13,27 @@ public final class ProtectionContainerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProtectionContainer model = BinaryData.fromString( - "{\"containerType\":\"ProtectionContainer\",\"friendlyName\":\"xkmcwaekrrjre\",\"backupManagementType\":\"AzureIaasVM\",\"registrationStatus\":\"sgumhjglikkxwsl\",\"healthStatus\":\"bq\",\"protectableObjectType\":\"uzlm\",\"sourceLocation\":\"elfk\"}") + "{\"containerType\":\"ProtectionContainer\",\"friendlyName\":\"hgppipifhpfeoa\",\"backupManagementType\":\"Invalid\",\"registrationStatus\":\"xtxj\",\"healthStatus\":\"heafidlt\",\"protectableObjectType\":\"sr\",\"sourceLocation\":\"mks\"}") .toObject(ProtectionContainer.class); - Assertions.assertEquals("xkmcwaekrrjre", model.friendlyName()); - Assertions.assertEquals(BackupManagementType.AZURE_IAAS_VM, model.backupManagementType()); - Assertions.assertEquals("sgumhjglikkxwsl", model.registrationStatus()); - Assertions.assertEquals("bq", model.healthStatus()); - Assertions.assertEquals("uzlm", model.protectableObjectType()); + Assertions.assertEquals("hgppipifhpfeoa", model.friendlyName()); + Assertions.assertEquals(BackupManagementType.INVALID, model.backupManagementType()); + Assertions.assertEquals("xtxj", model.registrationStatus()); + Assertions.assertEquals("heafidlt", model.healthStatus()); + Assertions.assertEquals("sr", model.protectableObjectType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ProtectionContainer model = new ProtectionContainer().withFriendlyName("xkmcwaekrrjre") - .withBackupManagementType(BackupManagementType.AZURE_IAAS_VM) - .withRegistrationStatus("sgumhjglikkxwsl") - .withHealthStatus("bq") - .withProtectableObjectType("uzlm"); + ProtectionContainer model = new ProtectionContainer().withFriendlyName("hgppipifhpfeoa") + .withBackupManagementType(BackupManagementType.INVALID) + .withRegistrationStatus("xtxj") + .withHealthStatus("heafidlt") + .withProtectableObjectType("sr"); model = BinaryData.fromObject(model).toObject(ProtectionContainer.class); - Assertions.assertEquals("xkmcwaekrrjre", model.friendlyName()); - Assertions.assertEquals(BackupManagementType.AZURE_IAAS_VM, model.backupManagementType()); - Assertions.assertEquals("sgumhjglikkxwsl", model.registrationStatus()); - Assertions.assertEquals("bq", model.healthStatus()); - Assertions.assertEquals("uzlm", model.protectableObjectType()); + Assertions.assertEquals("hgppipifhpfeoa", model.friendlyName()); + Assertions.assertEquals(BackupManagementType.INVALID, model.backupManagementType()); + Assertions.assertEquals("xtxj", model.registrationStatus()); + Assertions.assertEquals("heafidlt", model.healthStatus()); + Assertions.assertEquals("sr", model.protectableObjectType()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersGetWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersGetWithResponseMockTests.java index d62e556247dea..79648e7b61ea3 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersGetWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersGetWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class ProtectionContainersGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"containerType\":\"ProtectionContainer\",\"friendlyName\":\"gpewq\",\"backupManagementType\":\"AzureWorkload\",\"registrationStatus\":\"mdpv\",\"healthStatus\":\"glq\",\"protectableObjectType\":\"kn\",\"sourceLocation\":\"clctzey\"},\"tags\":{\"v\":\"ndc\",\"uwkudrbcp\":\"wzqauxzanhmkvf\"},\"location\":\"xudqyemebunaucmc\",\"eTag\":\"tneemmjauwcgxef\",\"id\":\"haitranize\",\"name\":\"wgudasmxu\",\"type\":\"vfbngfco\"}"; + = "{\"properties\":{\"containerType\":\"ProtectionContainer\",\"friendlyName\":\"xhaclcdosqkptjq\",\"backupManagementType\":\"Invalid\",\"registrationStatus\":\"mmainwhe\",\"healthStatus\":\"kp\",\"protectableObjectType\":\"wuntobuiz\",\"sourceLocation\":\"zelwgvydjufbnkl\"},\"tags\":{\"dabalfdxaglzfytl\":\"xpegj\",\"pxouvmr\":\"tlqh\"},\"location\":\"flikyypzkgxfxfmy\",\"eTag\":\"sdbpokszanmh\",\"id\":\"pter\",\"name\":\"iuwkirkskwzts\",\"type\":\"etjygowifcqpolz\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,16 +32,16 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ProtectionContainerResource response = manager.protectionContainers() - .getWithResponse("kykcyqhyqqzz", "c", "keys", "ewfopazdazg", com.azure.core.util.Context.NONE) + .getWithResponse("bwjtrdx", "izagbbgiar", "sy", "pgdqxwabzrw", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("gpewq", response.properties().friendlyName()); - Assertions.assertEquals(BackupManagementType.AZURE_WORKLOAD, response.properties().backupManagementType()); - Assertions.assertEquals("mdpv", response.properties().registrationStatus()); - Assertions.assertEquals("glq", response.properties().healthStatus()); - Assertions.assertEquals("kn", response.properties().protectableObjectType()); - Assertions.assertEquals("ndc", response.tags().get("v")); - Assertions.assertEquals("xudqyemebunaucmc", response.location()); - Assertions.assertEquals("tneemmjauwcgxef", response.etag()); + Assertions.assertEquals("xhaclcdosqkptjq", response.properties().friendlyName()); + Assertions.assertEquals(BackupManagementType.INVALID, response.properties().backupManagementType()); + Assertions.assertEquals("mmainwhe", response.properties().registrationStatus()); + Assertions.assertEquals("kp", response.properties().healthStatus()); + Assertions.assertEquals("wuntobuiz", response.properties().protectableObjectType()); + Assertions.assertEquals("xpegj", response.tags().get("dabalfdxaglzfytl")); + Assertions.assertEquals("flikyypzkgxfxfmy", response.location()); + Assertions.assertEquals("sdbpokszanmh", response.etag()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersInquireWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersInquireWithResponseMockTests.java index 60d8fc4c788e6..22f1c11454e43 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersInquireWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersInquireWithResponseMockTests.java @@ -28,7 +28,8 @@ public void testInquireWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.protectionContainers() - .inquireWithResponse("lregpq", "moj", "vr", "tnvgyshqrdgrt", "mewjzlpyk", com.azure.core.util.Context.NONE); + .inquireWithResponse("b", "mdafbgymqt", "apr", "ojxrjnbsconxavi", "neychbjizq", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersRefreshWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersRefreshWithResponseMockTests.java index beebbd8ffa1ba..9ac9803532139 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersRefreshWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersRefreshWithResponseMockTests.java @@ -28,7 +28,7 @@ public void testRefreshWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.protectionContainers() - .refreshWithResponse("fa", "zwjcaye", "zrransyb", "lpolwzrghsrle", com.azure.core.util.Context.NONE); + .refreshWithResponse("sgnwdxzedpq", "rfbo", "xi", "mlnfyz", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersRegisterMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersRegisterMockTests.java index 47395c1bc917a..c053acbb640cd 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersRegisterMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersRegisterMockTests.java @@ -25,7 +25,7 @@ public final class ProtectionContainersRegisterMockTests { @Test public void testRegister() throws Exception { String responseStr - = "{\"properties\":{\"containerType\":\"ProtectionContainer\",\"friendlyName\":\"inymmqgwokmikp\",\"backupManagementType\":\"AzureBackupServer\",\"registrationStatus\":\"mjxuvjipfdvhaxd\",\"healthStatus\":\"zaehpphthd\",\"protectableObjectType\":\"mvetatlakfq\",\"sourceLocation\":\"xwgiks\"},\"tags\":{\"phchgjtnhtukfaci\":\"tooxrpog\",\"tumeezbxvqxb\":\"mbf\"},\"location\":\"vwcga\",\"eTag\":\"omtmjzwxuqgov\",\"id\":\"pwwztjfmkkhtgf\",\"name\":\"edmls\",\"type\":\"grllcc\"}"; + = "{\"properties\":{\"containerType\":\"ProtectionContainer\",\"friendlyName\":\"hhwmjpjbweunxcq\",\"backupManagementType\":\"AzureWorkload\",\"registrationStatus\":\"ufoihppiybxv\",\"healthStatus\":\"zuzpbgkzcs\",\"protectableObjectType\":\"iuzvkunhdimju\",\"sourceLocation\":\"irzkaugpucdo\"},\"tags\":{\"o\":\"plw\",\"xwr\":\"m\"},\"location\":\"vzklkvbgikyjtka\",\"eTag\":\"lbis\",\"id\":\"vpz\",\"name\":\"ptuoska\",\"type\":\"izjixwfgcd\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,26 +35,26 @@ public void testRegister() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ProtectionContainerResource response = manager.protectionContainers() - .define("klzmijajw") - .withExistingBackupFabric("nkfscjfn", "jwvuag", "qwtltngvmreupt") - .withRegion("vnjobfelhldiuhzz") - .withTags(mapOf("xgcbdsvalpnpt", "zslp", "x", "trkxgpazwu")) - .withProperties(new ProtectionContainer().withFriendlyName("fsvagh") + .define("zqulptkbv") + .withExistingBackupFabric("vfrbypic", "bkpdjtaqhsmq", "zpdgonjhxshthmgp") + .withRegion("mynltwmpftmfoeaj") + .withTags(mapOf("sjtgirnbgmgmddo", "vqban")) + .withProperties(new ProtectionContainer().withFriendlyName("tzhigqqbtim") .withBackupManagementType(BackupManagementType.AZURE_IAAS_VM) - .withRegistrationStatus("wl") - .withHealthStatus("rcigtzjcvbxq") - .withProtectableObjectType("psnssovyxp")) - .withEtag("lmfaewzgiudjp") + .withRegistrationStatus("lornsihqh") + .withHealthStatus("smusuaawj") + .withProtectableObjectType("xwjnfcz")) + .withEtag("syxwetamfdd") .create(); - Assertions.assertEquals("inymmqgwokmikp", response.properties().friendlyName()); - Assertions.assertEquals(BackupManagementType.AZURE_BACKUP_SERVER, response.properties().backupManagementType()); - Assertions.assertEquals("mjxuvjipfdvhaxd", response.properties().registrationStatus()); - Assertions.assertEquals("zaehpphthd", response.properties().healthStatus()); - Assertions.assertEquals("mvetatlakfq", response.properties().protectableObjectType()); - Assertions.assertEquals("tooxrpog", response.tags().get("phchgjtnhtukfaci")); - Assertions.assertEquals("vwcga", response.location()); - Assertions.assertEquals("omtmjzwxuqgov", response.etag()); + Assertions.assertEquals("hhwmjpjbweunxcq", response.properties().friendlyName()); + Assertions.assertEquals(BackupManagementType.AZURE_WORKLOAD, response.properties().backupManagementType()); + Assertions.assertEquals("ufoihppiybxv", response.properties().registrationStatus()); + Assertions.assertEquals("zuzpbgkzcs", response.properties().healthStatus()); + Assertions.assertEquals("iuzvkunhdimju", response.properties().protectableObjectType()); + Assertions.assertEquals("plw", response.tags().get("o")); + Assertions.assertEquals("vzklkvbgikyjtka", response.location()); + Assertions.assertEquals("lbis", response.etag()); } // Use "Map.of" if available diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersUnregisterWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersUnregisterWithResponseMockTests.java index 2214678cb4a26..1ebcb88fcc304 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersUnregisterWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionContainersUnregisterWithResponseMockTests.java @@ -28,7 +28,8 @@ public void testUnregisterWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.protectionContainers() - .unregisterWithResponse("ef", "priylfmp", "trauds", "hlcdc", com.azure.core.util.Context.NONE); + .unregisterWithResponse("gysdgzyyb", "oxlvocptvdxxheig", "lilw", "ghjhjvmabzzbwa", + com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentResourceInnerTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentResourceInnerTests.java index d7f2ad690589f..4d14a79b6604c 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentResourceInnerTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentResourceInnerTests.java @@ -17,38 +17,38 @@ public final class ProtectionIntentResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProtectionIntentResourceInner model = BinaryData.fromString( - "{\"properties\":{\"protectionIntentItemType\":\"ProtectionIntent\",\"backupManagementType\":\"MAB\",\"sourceResourceId\":\"ffaweyur\",\"itemId\":\"hy\",\"policyId\":\"xra\",\"protectionState\":\"Protected\"},\"tags\":{\"apx\":\"brxmrgch\",\"uusioycblev\":\"iyfjjkbajbuscg\"},\"location\":\"clujyx\",\"eTag\":\"xlzgsjgkzzl\",\"id\":\"fhbzffovwmbjlzq\",\"name\":\"czpgvdwnapfdq\",\"type\":\"owftptnuwjtks\"}") + "{\"properties\":{\"protectionIntentItemType\":\"ProtectionIntent\",\"backupManagementType\":\"AzureWorkload\",\"sourceResourceId\":\"tuh\",\"itemId\":\"fefyihduyeuyld\",\"policyId\":\"mtybkcgsu\",\"protectionState\":\"Protecting\"},\"tags\":{\"ciatxtjrrl\":\"nmwynefxexl\"},\"location\":\"dskjhhxdlaj\",\"eTag\":\"xcxscvslxlh\",\"id\":\"vkrmukmyjmkx\",\"name\":\"ttcslojfkqi\",\"type\":\"nqtoqx\"}") .toObject(ProtectionIntentResourceInner.class); - Assertions.assertEquals(BackupManagementType.MAB, model.properties().backupManagementType()); - Assertions.assertEquals("ffaweyur", model.properties().sourceResourceId()); - Assertions.assertEquals("hy", model.properties().itemId()); - Assertions.assertEquals("xra", model.properties().policyId()); - Assertions.assertEquals(ProtectionStatus.PROTECTED, model.properties().protectionState()); - Assertions.assertEquals("brxmrgch", model.tags().get("apx")); - Assertions.assertEquals("clujyx", model.location()); - Assertions.assertEquals("xlzgsjgkzzl", model.etag()); + Assertions.assertEquals(BackupManagementType.AZURE_WORKLOAD, model.properties().backupManagementType()); + Assertions.assertEquals("tuh", model.properties().sourceResourceId()); + Assertions.assertEquals("fefyihduyeuyld", model.properties().itemId()); + Assertions.assertEquals("mtybkcgsu", model.properties().policyId()); + Assertions.assertEquals(ProtectionStatus.PROTECTING, model.properties().protectionState()); + Assertions.assertEquals("nmwynefxexl", model.tags().get("ciatxtjrrl")); + Assertions.assertEquals("dskjhhxdlaj", model.location()); + Assertions.assertEquals("xcxscvslxlh", model.etag()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ProtectionIntentResourceInner model = new ProtectionIntentResourceInner() - .withProperties(new ProtectionIntent().withBackupManagementType(BackupManagementType.MAB) - .withSourceResourceId("ffaweyur") - .withItemId("hy") - .withPolicyId("xra") - .withProtectionState(ProtectionStatus.PROTECTED)) - .withTags(mapOf("apx", "brxmrgch", "uusioycblev", "iyfjjkbajbuscg")) - .withLocation("clujyx") - .withEtag("xlzgsjgkzzl"); + .withProperties(new ProtectionIntent().withBackupManagementType(BackupManagementType.AZURE_WORKLOAD) + .withSourceResourceId("tuh") + .withItemId("fefyihduyeuyld") + .withPolicyId("mtybkcgsu") + .withProtectionState(ProtectionStatus.PROTECTING)) + .withTags(mapOf("ciatxtjrrl", "nmwynefxexl")) + .withLocation("dskjhhxdlaj") + .withEtag("xcxscvslxlh"); model = BinaryData.fromObject(model).toObject(ProtectionIntentResourceInner.class); - Assertions.assertEquals(BackupManagementType.MAB, model.properties().backupManagementType()); - Assertions.assertEquals("ffaweyur", model.properties().sourceResourceId()); - Assertions.assertEquals("hy", model.properties().itemId()); - Assertions.assertEquals("xra", model.properties().policyId()); - Assertions.assertEquals(ProtectionStatus.PROTECTED, model.properties().protectionState()); - Assertions.assertEquals("brxmrgch", model.tags().get("apx")); - Assertions.assertEquals("clujyx", model.location()); - Assertions.assertEquals("xlzgsjgkzzl", model.etag()); + Assertions.assertEquals(BackupManagementType.AZURE_WORKLOAD, model.properties().backupManagementType()); + Assertions.assertEquals("tuh", model.properties().sourceResourceId()); + Assertions.assertEquals("fefyihduyeuyld", model.properties().itemId()); + Assertions.assertEquals("mtybkcgsu", model.properties().policyId()); + Assertions.assertEquals(ProtectionStatus.PROTECTING, model.properties().protectionState()); + Assertions.assertEquals("nmwynefxexl", model.tags().get("ciatxtjrrl")); + Assertions.assertEquals("dskjhhxdlaj", model.location()); + Assertions.assertEquals("xcxscvslxlh", model.etag()); } // Use "Map.of" if available diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentResourceListTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentResourceListTests.java index 32bf671bcb686..cb0ae04479408 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentResourceListTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentResourceListTests.java @@ -14,17 +14,17 @@ public final class ProtectionIntentResourceListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProtectionIntentResourceList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"protectionIntentItemType\":\"ProtectionIntent\",\"backupManagementType\":\"AzureIaasVM\",\"sourceResourceId\":\"cyar\",\"itemId\":\"oohguabzoghkt\",\"policyId\":\"yczhco\",\"protectionState\":\"Protecting\"},\"tags\":{\"tjzcfyjzpt\":\"zqro\",\"h\":\"rl\"},\"location\":\"qinfszpyglqd\",\"eTag\":\"rjzralcx\",\"id\":\"byypsjoqcjenky\",\"name\":\"fq\",\"type\":\"vsqxfxjelgcmpzqj\"},{\"properties\":{\"protectionIntentItemType\":\"ProtectionIntent\",\"backupManagementType\":\"DefaultBackup\",\"sourceResourceId\":\"uwyvcacoyvi\",\"itemId\":\"s\",\"policyId\":\"usjszlbscm\",\"protectionState\":\"Protected\"},\"tags\":{\"nwyvq\":\"iufehgmvf\"},\"location\":\"rerlniy\",\"eTag\":\"lyfwxzutg\",\"id\":\"twhghmupgxyjtc\",\"name\":\"xabb\",\"type\":\"jf\"},{\"properties\":{\"protectionIntentItemType\":\"ProtectionIntent\",\"backupManagementType\":\"Invalid\",\"sourceResourceId\":\"bbklqpxzuca\",\"itemId\":\"ddwwnlzafwxudgnh\",\"policyId\":\"okrtalvnb\",\"protectionState\":\"Protecting\"},\"tags\":{\"kyrdnqodx\":\"meluclvdjj\",\"aqnvzoqgyipemchg\":\"hhxhq\"},\"location\":\"sczuejdtxptlghwz\",\"eTag\":\"mewjjstliuhq\",\"id\":\"moaiancz\",\"name\":\"vodrrslblxydkxr\",\"type\":\"vvbxiwkgfbqljnq\"}],\"nextLink\":\"ychocokulehu\"}") + "{\"value\":[{\"properties\":{\"protectionIntentItemType\":\"ProtectionIntent\",\"backupManagementType\":\"AzureWorkload\",\"sourceResourceId\":\"h\",\"itemId\":\"ddacbcbgydlqidy\",\"policyId\":\"hmptyrilkfbn\",\"protectionState\":\"Protected\"},\"tags\":{\"fnqt\":\"ztpb\"},\"location\":\"to\",\"eTag\":\"lswbnf\",\"id\":\"epl\",\"name\":\"wqjnsfzygleexa\",\"type\":\"vmywhsbrcarycsjj\"},{\"properties\":{\"protectionIntentItemType\":\"ProtectionIntent\",\"backupManagementType\":\"DPM\",\"sourceResourceId\":\"qajuvehzptdmk\",\"itemId\":\"bhmpfulubefgybp\",\"policyId\":\"bfununmpzkrv\",\"protectionState\":\"Protecting\"},\"tags\":{\"cwnphbkgfyrtogm\":\"dschlzvfictnkjjw\",\"ev\":\"mjpjscdfpdqwty\",\"x\":\"wmseharxifvqn\",\"sidqpxlbtpakft\":\"mbpjptnvwjh\"},\"location\":\"atw\",\"eTag\":\"kyutrymdwmfjhpyc\",\"id\":\"q\",\"name\":\"vdwkqpldr\",\"type\":\"efgnaavuagnt\"}],\"nextLink\":\"aou\"}") .toObject(ProtectionIntentResourceList.class); - Assertions.assertEquals("ychocokulehu", model.nextLink()); - Assertions.assertEquals(BackupManagementType.AZURE_IAAS_VM, + Assertions.assertEquals("aou", model.nextLink()); + Assertions.assertEquals(BackupManagementType.AZURE_WORKLOAD, model.value().get(0).properties().backupManagementType()); - Assertions.assertEquals("cyar", model.value().get(0).properties().sourceResourceId()); - Assertions.assertEquals("oohguabzoghkt", model.value().get(0).properties().itemId()); - Assertions.assertEquals("yczhco", model.value().get(0).properties().policyId()); - Assertions.assertEquals(ProtectionStatus.PROTECTING, model.value().get(0).properties().protectionState()); - Assertions.assertEquals("zqro", model.value().get(0).tags().get("tjzcfyjzpt")); - Assertions.assertEquals("qinfszpyglqd", model.value().get(0).location()); - Assertions.assertEquals("rjzralcx", model.value().get(0).etag()); + Assertions.assertEquals("h", model.value().get(0).properties().sourceResourceId()); + Assertions.assertEquals("ddacbcbgydlqidy", model.value().get(0).properties().itemId()); + Assertions.assertEquals("hmptyrilkfbn", model.value().get(0).properties().policyId()); + Assertions.assertEquals(ProtectionStatus.PROTECTED, model.value().get(0).properties().protectionState()); + Assertions.assertEquals("ztpb", model.value().get(0).tags().get("fnqt")); + Assertions.assertEquals("to", model.value().get(0).location()); + Assertions.assertEquals("lswbnf", model.value().get(0).etag()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentTests.java index 3b3427a982903..00bc507a70b4a 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentTests.java @@ -14,27 +14,27 @@ public final class ProtectionIntentTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProtectionIntent model = BinaryData.fromString( - "{\"protectionIntentItemType\":\"ProtectionIntent\",\"backupManagementType\":\"AzureWorkload\",\"sourceResourceId\":\"gqy\",\"itemId\":\"eseyqr\",\"policyId\":\"y\",\"protectionState\":\"Protecting\"}") + "{\"protectionIntentItemType\":\"ProtectionIntent\",\"backupManagementType\":\"AzureStorage\",\"sourceResourceId\":\"csqhtkbtnqlrng\",\"itemId\":\"mbiipsnawwlqk\",\"policyId\":\"xhhllxricct\",\"protectionState\":\"Invalid\"}") .toObject(ProtectionIntent.class); - Assertions.assertEquals(BackupManagementType.AZURE_WORKLOAD, model.backupManagementType()); - Assertions.assertEquals("gqy", model.sourceResourceId()); - Assertions.assertEquals("eseyqr", model.itemId()); - Assertions.assertEquals("y", model.policyId()); - Assertions.assertEquals(ProtectionStatus.PROTECTING, model.protectionState()); + Assertions.assertEquals(BackupManagementType.AZURE_STORAGE, model.backupManagementType()); + Assertions.assertEquals("csqhtkbtnqlrng", model.sourceResourceId()); + Assertions.assertEquals("mbiipsnawwlqk", model.itemId()); + Assertions.assertEquals("xhhllxricct", model.policyId()); + Assertions.assertEquals(ProtectionStatus.INVALID, model.protectionState()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ProtectionIntent model = new ProtectionIntent().withBackupManagementType(BackupManagementType.AZURE_WORKLOAD) - .withSourceResourceId("gqy") - .withItemId("eseyqr") - .withPolicyId("y") - .withProtectionState(ProtectionStatus.PROTECTING); + ProtectionIntent model = new ProtectionIntent().withBackupManagementType(BackupManagementType.AZURE_STORAGE) + .withSourceResourceId("csqhtkbtnqlrng") + .withItemId("mbiipsnawwlqk") + .withPolicyId("xhhllxricct") + .withProtectionState(ProtectionStatus.INVALID); model = BinaryData.fromObject(model).toObject(ProtectionIntent.class); - Assertions.assertEquals(BackupManagementType.AZURE_WORKLOAD, model.backupManagementType()); - Assertions.assertEquals("gqy", model.sourceResourceId()); - Assertions.assertEquals("eseyqr", model.itemId()); - Assertions.assertEquals("y", model.policyId()); - Assertions.assertEquals(ProtectionStatus.PROTECTING, model.protectionState()); + Assertions.assertEquals(BackupManagementType.AZURE_STORAGE, model.backupManagementType()); + Assertions.assertEquals("csqhtkbtnqlrng", model.sourceResourceId()); + Assertions.assertEquals("mbiipsnawwlqk", model.itemId()); + Assertions.assertEquals("xhhllxricct", model.policyId()); + Assertions.assertEquals(ProtectionStatus.INVALID, model.protectionState()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentsCreateOrUpdateWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentsCreateOrUpdateWithResponseMockTests.java index d050136557ee8..2fa4d342d182e 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentsCreateOrUpdateWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentsCreateOrUpdateWithResponseMockTests.java @@ -26,7 +26,7 @@ public final class ProtectionIntentsCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"protectionIntentItemType\":\"ProtectionIntent\",\"backupManagementType\":\"AzureBackupServer\",\"sourceResourceId\":\"jmztnlmso\",\"itemId\":\"tmvecdhdyswcrptv\",\"policyId\":\"jczxvlgsrg\",\"protectionState\":\"Protected\"},\"tags\":{\"lmcskyk\":\"rpywlptyuqh\",\"ycpawm\":\"fuofixcnpcfykkp\",\"dpwrp\":\"jp\"},\"location\":\"pcf\",\"eTag\":\"wzlgzawkgy\",\"id\":\"eyam\",\"name\":\"nidmdiaw\",\"type\":\"zxkzrntmkct\"}"; + = "{\"properties\":{\"protectionIntentItemType\":\"ProtectionIntent\",\"backupManagementType\":\"AzureBackupServer\",\"sourceResourceId\":\"ytgrhzbqfd\",\"itemId\":\"aw\",\"policyId\":\"tvcshtkutzcttb\",\"protectionState\":\"NotProtected\"},\"tags\":{\"mmtzjgc\":\"d\",\"tbwjjirmuydgftt\":\"jf\"},\"location\":\"ofgeoagf\",\"eTag\":\"ftnxodwxmdajwiy\",\"id\":\"gsevmdm\",\"name\":\"enlrstgf\",\"type\":\"zljdnci\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -36,26 +36,26 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ProtectionIntentResource response = manager.protectionIntents() - .define("laslgacizux") - .withExistingBackupFabric("vagzkheuba", "lxu", "pqcckqiawzlz") - .withRegion("ngkegxcypxbbfe") - .withTags(mapOf("nhjiotiffb", "vuuwxhmeh")) - .withProperties(new ProtectionIntent().withBackupManagementType(BackupManagementType.AZURE_IAAS_VM) - .withSourceResourceId("p") - .withItemId("saudoejtighsx") - .withPolicyId("ytnkqb") - .withProtectionState(ProtectionStatus.INVALID)) - .withEtag("ilyrzoxp") + .define("juxkqll") + .withExistingBackupFabric("cuxd", "zcqipsdudgcozzo", "ehxlantolamlb") + .withRegion("ytijcxfnond") + .withTags(mapOf("huioaeoc", "fgslglhpryjfz", "kbdgddkrh", "ajtfey", "tjwwg", "ccxbeuuqutkz")) + .withProperties(new ProtectionIntent().withBackupManagementType(BackupManagementType.MAB) + .withSourceResourceId("wdtgckzdqiqdl") + .withItemId("trkwxo") + .withPolicyId("wxsuy") + .withProtectionState(ProtectionStatus.NOT_PROTECTED)) + .withEtag("jdydhq") .create(); Assertions.assertEquals(BackupManagementType.AZURE_BACKUP_SERVER, response.properties().backupManagementType()); - Assertions.assertEquals("jmztnlmso", response.properties().sourceResourceId()); - Assertions.assertEquals("tmvecdhdyswcrptv", response.properties().itemId()); - Assertions.assertEquals("jczxvlgsrg", response.properties().policyId()); - Assertions.assertEquals(ProtectionStatus.PROTECTED, response.properties().protectionState()); - Assertions.assertEquals("rpywlptyuqh", response.tags().get("lmcskyk")); - Assertions.assertEquals("pcf", response.location()); - Assertions.assertEquals("wzlgzawkgy", response.etag()); + Assertions.assertEquals("ytgrhzbqfd", response.properties().sourceResourceId()); + Assertions.assertEquals("aw", response.properties().itemId()); + Assertions.assertEquals("tvcshtkutzcttb", response.properties().policyId()); + Assertions.assertEquals(ProtectionStatus.NOT_PROTECTED, response.properties().protectionState()); + Assertions.assertEquals("d", response.tags().get("mmtzjgc")); + Assertions.assertEquals("ofgeoagf", response.location()); + Assertions.assertEquals("ftnxodwxmdajwiy", response.etag()); } // Use "Map.of" if available diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentsDeleteWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentsDeleteWithResponseMockTests.java index 19575de064c48..e03705185f342 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentsDeleteWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentsDeleteWithResponseMockTests.java @@ -28,7 +28,7 @@ public void testDeleteWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.protectionIntents() - .deleteWithResponse("cqx", "cbvzarmqcb", "okstsinvagovjyh", "rxbrdv", com.azure.core.util.Context.NONE); + .deleteWithResponse("uif", "ulxfaryrvjl", "dezvjqw", "hoyiyaxqvjweiw", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentsGetWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentsGetWithResponseMockTests.java index 07410f81c5119..ccfd7b325f5d7 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentsGetWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionIntentsGetWithResponseMockTests.java @@ -23,7 +23,7 @@ public final class ProtectionIntentsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"protectionIntentItemType\":\"ProtectionIntent\",\"backupManagementType\":\"DefaultBackup\",\"sourceResourceId\":\"hxw\",\"itemId\":\"lvzkl\",\"policyId\":\"bgikyjtkakvlbi\",\"protectionState\":\"Protected\"},\"tags\":{\"oizjixwfgcdiyk\":\"zaptuosk\",\"wnujvqynvav\":\"c\",\"xquddrw\":\"tmdmuqohhihr\"},\"location\":\"ljbrhlhpvzadbw\",\"eTag\":\"ninafhxrz\",\"id\":\"m\",\"name\":\"ztiucwviql\",\"type\":\"ukhk\"}"; + = "{\"properties\":{\"protectionIntentItemType\":\"ProtectionIntent\",\"backupManagementType\":\"DPM\",\"sourceResourceId\":\"uorinikcedpk\",\"itemId\":\"iwm\",\"policyId\":\"mqr\",\"protectionState\":\"NotProtected\"},\"tags\":{\"mbxiqahra\":\"vyczyayubt\",\"lnupoyryefqmw\":\"pxmib\"},\"location\":\"yztxlno\",\"eTag\":\"pbjceegvy\",\"id\":\"ztkutnj\",\"name\":\"llukkreh\",\"type\":\"htmjo\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,17 +33,16 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ProtectionIntentResource response = manager.protectionIntents() - .getWithResponse("gnzuzpbgkzcsc", "iuzvkunhdimju", "ti", "zkaugpucdocfqpl", - com.azure.core.util.Context.NONE) + .getWithResponse("bsat", "oiauesugmocpcj", "cboe", "rgttw", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(BackupManagementType.DEFAULT_BACKUP, response.properties().backupManagementType()); - Assertions.assertEquals("hxw", response.properties().sourceResourceId()); - Assertions.assertEquals("lvzkl", response.properties().itemId()); - Assertions.assertEquals("bgikyjtkakvlbi", response.properties().policyId()); - Assertions.assertEquals(ProtectionStatus.PROTECTED, response.properties().protectionState()); - Assertions.assertEquals("zaptuosk", response.tags().get("oizjixwfgcdiyk")); - Assertions.assertEquals("ljbrhlhpvzadbw", response.location()); - Assertions.assertEquals("ninafhxrz", response.etag()); + Assertions.assertEquals(BackupManagementType.DPM, response.properties().backupManagementType()); + Assertions.assertEquals("uorinikcedpk", response.properties().sourceResourceId()); + Assertions.assertEquals("iwm", response.properties().itemId()); + Assertions.assertEquals("mqr", response.properties().policyId()); + Assertions.assertEquals(ProtectionStatus.NOT_PROTECTED, response.properties().protectionState()); + Assertions.assertEquals("vyczyayubt", response.tags().get("mbxiqahra")); + Assertions.assertEquals("yztxlno", response.location()); + Assertions.assertEquals("pbjceegvy", response.etag()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPoliciesCreateOrUpdateWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPoliciesCreateOrUpdateWithResponseMockTests.java index ef7c75f7d3fda..276beb1314fdd 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPoliciesCreateOrUpdateWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPoliciesCreateOrUpdateWithResponseMockTests.java @@ -25,7 +25,7 @@ public final class ProtectionPoliciesCreateOrUpdateWithResponseMockTests { @Test public void testCreateOrUpdateWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"backupManagementType\":\"ProtectionPolicy\",\"protectedItemsCount\":716942894,\"resourceGuardOperationRequests\":[\"ymc\",\"m\"]},\"tags\":{\"jbsv\":\"yvqyvliqiips\",\"n\":\"iaieswhddzydi\"},\"location\":\"pywyjlnld\",\"eTag\":\"ottdiiaocqibzj\",\"id\":\"weebiphryv\",\"name\":\"jw\",\"type\":\"w\"}"; + = "{\"properties\":{\"backupManagementType\":\"ProtectionPolicy\",\"protectedItemsCount\":56660569,\"resourceGuardOperationRequests\":[\"m\",\"ghnysvlpyeuu\"]},\"tags\":{\"xvhhyqq\":\"dixqbo\",\"xch\":\"gatxgrznmginmtsd\",\"jca\":\"kibmgjymn\"},\"location\":\"irwcqzoofjnqjsv\",\"eTag\":\"fbhtleberp\",\"id\":\"jeknfqnw\",\"name\":\"j\",\"type\":\"xowkdnj\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,20 +35,21 @@ public void testCreateOrUpdateWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ProtectionPolicyResource response = manager.protectionPolicies() - .define("djhunhghcgawnr") - .withExistingVault("efgvqcp", "wjgquxweyslandkd") - .withRegion("oqpe") - .withTags(mapOf("quzexokjxebjvbz", "stcyilbvzmmxcjz", "abwmvogljsv", "n", "ehaqidoyzltgio", "pgidnw")) - .withProperties(new ProtectionPolicy().withProtectedItemsCount(1512061909) - .withResourceGuardOperationRequests(Arrays.asList("sotirei", "seob"))) - .withEtag("aeapfsergd") + .define("rcmvouujx") + .withExistingVault("xmzrmtmvwitu", "eyyjshcybwfuppox") + .withRegion("zvfbhwbdquf") + .withTags(mapOf("hxorpwaltzwu", "ebwf", "h", "exojfccy", "hvazjpwexcdr", "rh", "euxsphlokfpmijp", + "probzzxezmnrkjgp")) + .withProperties(new ProtectionPolicy().withProtectedItemsCount(185040641) + .withResourceGuardOperationRequests(Arrays.asList("xrezsvavlrxi", "jmoywlunpipcwybs", "fncn", "atpf"))) + .withEtag("gnrglaqrwyamb") .create(); - Assertions.assertEquals(716942894, response.properties().protectedItemsCount()); - Assertions.assertEquals("ymc", response.properties().resourceGuardOperationRequests().get(0)); - Assertions.assertEquals("yvqyvliqiips", response.tags().get("jbsv")); - Assertions.assertEquals("pywyjlnld", response.location()); - Assertions.assertEquals("ottdiiaocqibzj", response.etag()); + Assertions.assertEquals(56660569, response.properties().protectedItemsCount()); + Assertions.assertEquals("m", response.properties().resourceGuardOperationRequests().get(0)); + Assertions.assertEquals("dixqbo", response.tags().get("xvhhyqq")); + Assertions.assertEquals("irwcqzoofjnqjsv", response.location()); + Assertions.assertEquals("fbhtleberp", response.etag()); } // Use "Map.of" if available diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPoliciesDeleteMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPoliciesDeleteMockTests.java index 58892a587fac0..581f32c1f14b2 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPoliciesDeleteMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPoliciesDeleteMockTests.java @@ -27,7 +27,8 @@ public void testDelete() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - manager.protectionPolicies().delete("ufssjyghsfxr", "bh", "mmgmqf", com.azure.core.util.Context.NONE); + manager.protectionPolicies() + .delete("tsbbibtic", "hqvumspbfs", "eqbbewfcuqfpy", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPoliciesGetWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPoliciesGetWithResponseMockTests.java index 3b9ba6bcf894f..bf8f427802231 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPoliciesGetWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPoliciesGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class ProtectionPoliciesGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"backupManagementType\":\"ProtectionPolicy\",\"protectedItemsCount\":1596343736,\"resourceGuardOperationRequests\":[\"k\",\"xjxjoe\"]},\"tags\":{\"o\":\"xrkdknkobektm\",\"gwcd\":\"omtzamicb\",\"m\":\"zseznuxkeuairaa\"},\"location\":\"qjbedpfix\",\"eTag\":\"upmomihzbd\",\"id\":\"xpkcdp\",\"name\":\"eyxel\",\"type\":\"icghfl\"}"; + = "{\"properties\":{\"backupManagementType\":\"ProtectionPolicy\",\"protectedItemsCount\":112729320,\"resourceGuardOperationRequests\":[\"lrtbfij\",\"z\",\"aoijolb\"]},\"tags\":{\"e\":\"ktwieope\",\"wrswyiljp\":\"xq\",\"xyauxre\":\"bkgx\",\"mcnltmwytkujsqyc\":\"do\"},\"location\":\"oxfab\",\"eTag\":\"gpwb\",\"id\":\"hr\",\"name\":\"ali\",\"type\":\"rycgnwplrrbph\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,13 +31,13 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ProtectionPolicyResource response = manager.protectionPolicies() - .getWithResponse("xbmsgycqsx", "mdvewuyqaeohpjh", "ejkbvhhdaurgho", com.azure.core.util.Context.NONE) + .getWithResponse("ezpfki", "said", "zsaaoqdsgptotxjq", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(1596343736, response.properties().protectedItemsCount()); - Assertions.assertEquals("k", response.properties().resourceGuardOperationRequests().get(0)); - Assertions.assertEquals("xrkdknkobektm", response.tags().get("o")); - Assertions.assertEquals("qjbedpfix", response.location()); - Assertions.assertEquals("upmomihzbd", response.etag()); + Assertions.assertEquals(112729320, response.properties().protectedItemsCount()); + Assertions.assertEquals("lrtbfij", response.properties().resourceGuardOperationRequests().get(0)); + Assertions.assertEquals("ktwieope", response.tags().get("e")); + Assertions.assertEquals("oxfab", response.location()); + Assertions.assertEquals("gpwb", response.etag()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPolicyOperationResultsGetWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPolicyOperationResultsGetWithResponseMockTests.java index 7c911ad1864b2..3d537845ec441 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPolicyOperationResultsGetWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPolicyOperationResultsGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class ProtectionPolicyOperationResultsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"backupManagementType\":\"ProtectionPolicy\",\"protectedItemsCount\":1706168437,\"resourceGuardOperationRequests\":[\"ahwriuomzczfk\",\"ceevsa\",\"xwspcaxikhfjq\",\"bglcxkxgzzromvy\"]},\"tags\":{\"srfsvpinkzpatqt\":\"emtm\"},\"location\":\"swxspvckojaz\",\"eTag\":\"gspftesu\",\"id\":\"pvpvd\",\"name\":\"lyt\",\"type\":\"ovqseusrfjbdx\"}"; + = "{\"properties\":{\"backupManagementType\":\"ProtectionPolicy\",\"protectedItemsCount\":140087096,\"resourceGuardOperationRequests\":[\"tcvbzwgwhgk\"]},\"tags\":{\"atfybip\":\"auoors\"},\"location\":\"dm\",\"eTag\":\"qbdqnasttuxvz\",\"id\":\"ayopbtsixhgvbhx\",\"name\":\"ndztgsq\",\"type\":\"ayqmarxneibpgbrh\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,13 +31,13 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ProtectionPolicyResource response = manager.protectionPolicyOperationResults() - .getWithResponse("rcl", "vtzqnrbctbhp", "hxpcvrdnyeita", "eq", com.azure.core.util.Context.NONE) + .getWithResponse("zbpyf", "ofdf", "htncwmhjobzrfp", "iz", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals(1706168437, response.properties().protectedItemsCount()); - Assertions.assertEquals("ahwriuomzczfk", response.properties().resourceGuardOperationRequests().get(0)); - Assertions.assertEquals("emtm", response.tags().get("srfsvpinkzpatqt")); - Assertions.assertEquals("swxspvckojaz", response.location()); - Assertions.assertEquals("gspftesu", response.etag()); + Assertions.assertEquals(140087096, response.properties().protectedItemsCount()); + Assertions.assertEquals("tcvbzwgwhgk", response.properties().resourceGuardOperationRequests().get(0)); + Assertions.assertEquals("auoors", response.tags().get("atfybip")); + Assertions.assertEquals("dm", response.location()); + Assertions.assertEquals("qbdqnasttuxvz", response.etag()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPolicyResourceInnerTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPolicyResourceInnerTests.java index c938b101e9197..8c4ba940dfd56 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPolicyResourceInnerTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPolicyResourceInnerTests.java @@ -16,30 +16,30 @@ public final class ProtectionPolicyResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProtectionPolicyResourceInner model = BinaryData.fromString( - "{\"properties\":{\"backupManagementType\":\"ProtectionPolicy\",\"protectedItemsCount\":277669482,\"resourceGuardOperationRequests\":[\"icgaao\",\"pttaqutd\",\"wemxswvruunzz\",\"gehkfkimrtixokff\"]},\"tags\":{\"shiy\":\"nljqepqwhixmons\",\"du\":\"gvelfc\",\"rds\":\"cb\",\"b\":\"uwc\"},\"location\":\"gstmninwjizciln\",\"eTag\":\"gshejjtbxqmulux\",\"id\":\"qzvnersbycucr\",\"name\":\"namikzebrqbsms\",\"type\":\"ziqgfuh\"}") + "{\"properties\":{\"backupManagementType\":\"ProtectionPolicy\",\"protectedItemsCount\":260933240,\"resourceGuardOperationRequests\":[\"bsizus\",\"szlbscm\",\"lzijiufehgmvflnw\",\"v\"]},\"tags\":{\"yl\":\"rerlniy\",\"ztwhghmupg\":\"fwxzutg\",\"nbbklqpxzucafed\":\"yjtcdxabbujftab\",\"ookrtalvnbw\":\"wwnlzafwxudgnh\"},\"location\":\"bemeluclvd\",\"eTag\":\"ukyrdnqodxahh\",\"id\":\"qfaqnvzoqg\",\"name\":\"ipemchgavscz\",\"type\":\"ejdtxptl\"}") .toObject(ProtectionPolicyResourceInner.class); - Assertions.assertEquals(277669482, model.properties().protectedItemsCount()); - Assertions.assertEquals("icgaao", model.properties().resourceGuardOperationRequests().get(0)); - Assertions.assertEquals("nljqepqwhixmons", model.tags().get("shiy")); - Assertions.assertEquals("gstmninwjizciln", model.location()); - Assertions.assertEquals("gshejjtbxqmulux", model.etag()); + Assertions.assertEquals(260933240, model.properties().protectedItemsCount()); + Assertions.assertEquals("bsizus", model.properties().resourceGuardOperationRequests().get(0)); + Assertions.assertEquals("rerlniy", model.tags().get("yl")); + Assertions.assertEquals("bemeluclvd", model.location()); + Assertions.assertEquals("ukyrdnqodxahh", model.etag()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ProtectionPolicyResourceInner model = new ProtectionPolicyResourceInner() - .withProperties(new ProtectionPolicy().withProtectedItemsCount(277669482) - .withResourceGuardOperationRequests( - Arrays.asList("icgaao", "pttaqutd", "wemxswvruunzz", "gehkfkimrtixokff"))) - .withTags(mapOf("shiy", "nljqepqwhixmons", "du", "gvelfc", "rds", "cb", "b", "uwc")) - .withLocation("gstmninwjizciln") - .withEtag("gshejjtbxqmulux"); + .withProperties(new ProtectionPolicy().withProtectedItemsCount(260933240) + .withResourceGuardOperationRequests(Arrays.asList("bsizus", "szlbscm", "lzijiufehgmvflnw", "v"))) + .withTags(mapOf("yl", "rerlniy", "ztwhghmupg", "fwxzutg", "nbbklqpxzucafed", "yjtcdxabbujftab", + "ookrtalvnbw", "wwnlzafwxudgnh")) + .withLocation("bemeluclvd") + .withEtag("ukyrdnqodxahh"); model = BinaryData.fromObject(model).toObject(ProtectionPolicyResourceInner.class); - Assertions.assertEquals(277669482, model.properties().protectedItemsCount()); - Assertions.assertEquals("icgaao", model.properties().resourceGuardOperationRequests().get(0)); - Assertions.assertEquals("nljqepqwhixmons", model.tags().get("shiy")); - Assertions.assertEquals("gstmninwjizciln", model.location()); - Assertions.assertEquals("gshejjtbxqmulux", model.etag()); + Assertions.assertEquals(260933240, model.properties().protectedItemsCount()); + Assertions.assertEquals("bsizus", model.properties().resourceGuardOperationRequests().get(0)); + Assertions.assertEquals("rerlniy", model.tags().get("yl")); + Assertions.assertEquals("bemeluclvd", model.location()); + Assertions.assertEquals("ukyrdnqodxahh", model.etag()); } // Use "Map.of" if available diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPolicyResourceListTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPolicyResourceListTests.java index 2dc67963112a4..a0d3f3d2f5ec4 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPolicyResourceListTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPolicyResourceListTests.java @@ -12,14 +12,13 @@ public final class ProtectionPolicyResourceListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProtectionPolicyResourceList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"backupManagementType\":\"ProtectionPolicy\",\"protectedItemsCount\":184475150,\"resourceGuardOperationRequests\":[\"vmfqhppubo\",\"sepdfgk\",\"tdherngbtcjuahok\"]},\"tags\":{\"ofshfphwpnulaiyw\":\"bkau\",\"ywhslwkojpllndnp\":\"e\",\"yetefyp\":\"wrpqafgfugsnnf\"},\"location\":\"octfjgtixrjvzuyt\",\"eTag\":\"mlmuowol\",\"id\":\"uir\",\"name\":\"p\",\"type\":\"ons\"},{\"properties\":{\"backupManagementType\":\"ProtectionPolicy\",\"protectedItemsCount\":1067511250,\"resourceGuardOperationRequests\":[\"gajinnixjawrtmj\",\"jmyccxlzhcoxov\",\"ekhenl\",\"sfnrdtjxt\"]},\"tags\":{\"jvidttge\":\"cq\",\"iesfuug\":\"uslvyjtcvuwkasi\",\"xu\":\"tuqfecjxeygtu\"},\"location\":\"buew\",\"eTag\":\"s\",\"id\":\"jlxuz\",\"name\":\"hwpusxj\",\"type\":\"aqehg\"},{\"properties\":{\"backupManagementType\":\"ProtectionPolicy\",\"protectedItemsCount\":1004006437,\"resourceGuardOperationRequests\":[\"qatucoigebxnc\",\"wfepbnwgfmx\",\"gcgbjb\",\"dlfgtdysnaq\"]},\"tags\":{\"zjrwdkqze\":\"qbctqha\",\"fza\":\"yjleziunjx\",\"eg\":\"tkw\",\"uooqjagmdit\":\"amlbnseqacjjvpil\"},\"location\":\"eiookjbsah\",\"eTag\":\"dt\",\"id\":\"elqacslmot\",\"name\":\"ebnfxofvc\",\"type\":\"k\"}],\"nextLink\":\"irazftxejwabmd\"}") + "{\"value\":[{\"properties\":{\"backupManagementType\":\"ProtectionPolicy\",\"protectedItemsCount\":1947750114,\"resourceGuardOperationRequests\":[\"dgxvco\",\"raswugyxpqit\",\"eialwvskb\",\"hzacaqtyltco\"]},\"tags\":{\"zakuejk\":\"jpds\",\"vjufycsjmlbe\":\"vbiztjofqcv\",\"iuxegth\":\"yeji\"},\"location\":\"tudaw\",\"eTag\":\"jfel\",\"id\":\"rpptcbgqnzmnhiil\",\"name\":\"alwcjgckbb\",\"type\":\"ccgzpraoxnyu\"},{\"properties\":{\"backupManagementType\":\"ProtectionPolicy\",\"protectedItemsCount\":1782927877,\"resourceGuardOperationRequests\":[\"ftipwcxbyubhiq\",\"xyur\"]},\"tags\":{\"byl\":\"uhzafccnuhii\",\"vxva\":\"ui\",\"lbnb\":\"vcrk\"},\"location\":\"vhcs\",\"eTag\":\"zlwxaeaovur\",\"id\":\"dndsbdweade\",\"name\":\"zmwntopagt\",\"type\":\"mvmmagoaqylkjz\"}],\"nextLink\":\"iua\"}") .toObject(ProtectionPolicyResourceList.class); - Assertions.assertEquals("irazftxejwabmd", model.nextLink()); - Assertions.assertEquals(184475150, model.value().get(0).properties().protectedItemsCount()); - Assertions.assertEquals("vmfqhppubo", - model.value().get(0).properties().resourceGuardOperationRequests().get(0)); - Assertions.assertEquals("bkau", model.value().get(0).tags().get("ofshfphwpnulaiyw")); - Assertions.assertEquals("octfjgtixrjvzuyt", model.value().get(0).location()); - Assertions.assertEquals("mlmuowol", model.value().get(0).etag()); + Assertions.assertEquals("iua", model.nextLink()); + Assertions.assertEquals(1947750114, model.value().get(0).properties().protectedItemsCount()); + Assertions.assertEquals("dgxvco", model.value().get(0).properties().resourceGuardOperationRequests().get(0)); + Assertions.assertEquals("jpds", model.value().get(0).tags().get("zakuejk")); + Assertions.assertEquals("tudaw", model.value().get(0).location()); + Assertions.assertEquals("jfel", model.value().get(0).etag()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPolicyTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPolicyTests.java index ae8de45599455..05d0d1e145f07 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPolicyTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ProtectionPolicyTests.java @@ -13,18 +13,18 @@ public final class ProtectionPolicyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ProtectionPolicy model = BinaryData.fromString( - "{\"backupManagementType\":\"ProtectionPolicy\",\"protectedItemsCount\":1603302916,\"resourceGuardOperationRequests\":[\"swhvhczznvfbycj\",\"xjww\",\"xzv\",\"mwmxqhndvnoamld\"]}") + "{\"backupManagementType\":\"ProtectionPolicy\",\"protectedItemsCount\":1022480930,\"resourceGuardOperationRequests\":[\"omew\",\"j\",\"tl\"]}") .toObject(ProtectionPolicy.class); - Assertions.assertEquals(1603302916, model.protectedItemsCount()); - Assertions.assertEquals("swhvhczznvfbycj", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals(1022480930, model.protectedItemsCount()); + Assertions.assertEquals("omew", model.resourceGuardOperationRequests().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ProtectionPolicy model = new ProtectionPolicy().withProtectedItemsCount(1603302916) - .withResourceGuardOperationRequests(Arrays.asList("swhvhczznvfbycj", "xjww", "xzv", "mwmxqhndvnoamld")); + ProtectionPolicy model = new ProtectionPolicy().withProtectedItemsCount(1022480930) + .withResourceGuardOperationRequests(Arrays.asList("omew", "j", "tl")); model = BinaryData.fromObject(model).toObject(ProtectionPolicy.class); - Assertions.assertEquals(1603302916, model.protectedItemsCount()); - Assertions.assertEquals("swhvhczznvfbycj", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals(1022480930, model.protectedItemsCount()); + Assertions.assertEquals("omew", model.resourceGuardOperationRequests().get(0)); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RPExtendedInfoResourceListInnerTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RPExtendedInfoResourceListInnerTests.java new file mode 100644 index 0000000000000..c8526ba31978e --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RPExtendedInfoResourceListInnerTests.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.recoveryservicesbackup.fluent.models.RPExtendedInfoResourceListInner; +import org.junit.jupiter.api.Assertions; + +public final class RPExtendedInfoResourceListInnerTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + RPExtendedInfoResourceListInner model = BinaryData.fromString( + "{\"value\":[{\"location\":\"yjpmspbpssdfppyo\",\"tags\":{\"unjdx\":\"eyujtvczkcnyxrx\",\"ivbgkcv\":\"glnkvxlxpagl\"},\"eTag\":\"pzvuqdflvo\",\"properties\":{\"objectType\":\"RPExtendedInfo\"},\"id\":\"pfpubcpzgpx\",\"name\":\"ivhjknidi\",\"type\":\"gqjxgpnrhgovfgp\"},{\"location\":\"qmhhaowj\",\"tags\":{\"fvxcnqmxqpswo\":\"vuporqzdfuydzv\",\"bemzqkzszuwi\":\"mvkhlggd\",\"ljfp\":\"tglxx\",\"pqcbfrmbodthsq\":\"picrmnzhrgmqgjsx\"},\"eTag\":\"vriibakclacjfr\",\"properties\":{\"objectType\":\"RPExtendedInfo\"},\"id\":\"usx\",\"name\":\"uzlwvsgmw\",\"type\":\"hqf\"},{\"location\":\"zvuxm\",\"tags\":{\"wpztekovmribia\":\"svth\",\"gcfh\":\"tgplucfota\",\"zqwmvt\":\"ykzcugswvxwl\",\"ynpdkvgfab\":\"njmxmcuqudtcvcl\"},\"eTag\":\"yjibuzphdugne\",\"properties\":{\"objectType\":\"RPExtendedInfo\"},\"id\":\"pgoxgji\",\"name\":\"qhibtozipqwjedm\",\"type\":\"rrxxgewpktvq\"},{\"location\":\"kmqp\",\"tags\":{\"oxoebqi\":\"hlfbcgwgc\",\"ujqlafcbahh\":\"jipnwj\"},\"eTag\":\"pofoi\",\"properties\":{\"objectType\":\"RPExtendedInfo\"},\"id\":\"p\",\"name\":\"ilkmk\",\"type\":\"holvdn\"}],\"nextLink\":\"iauogphuartv\"}") + .toObject(RPExtendedInfoResourceListInner.class); + Assertions.assertEquals("iauogphuartv", model.nextLink()); + Assertions.assertEquals("yjpmspbpssdfppyo", model.value().get(0).location()); + Assertions.assertEquals("eyujtvczkcnyxrx", model.value().get(0).tags().get("unjdx")); + Assertions.assertEquals("pzvuqdflvo", model.value().get(0).eTag()); + } +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RPExtendedInfoResourceTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RPExtendedInfoResourceTests.java new file mode 100644 index 0000000000000..92736e06a8d81 --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RPExtendedInfoResourceTests.java @@ -0,0 +1,21 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.recoveryservicesbackup.models.RPExtendedInfoResource; +import org.junit.jupiter.api.Assertions; + +public final class RPExtendedInfoResourceTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + RPExtendedInfoResource model = BinaryData.fromString( + "{\"location\":\"ukyefchnmnahmnxh\",\"tags\":{\"fifhxwrsnew\":\"qirwrweoox\",\"sycxhxzgaz\":\"ozqvbubqmam\"},\"eTag\":\"abo\",\"properties\":{\"objectType\":\"RPExtendedInfo\"},\"id\":\"mfqhppubowse\",\"name\":\"dfgkmtdh\",\"type\":\"rngbtcjuahokqtob\"}") + .toObject(RPExtendedInfoResource.class); + Assertions.assertEquals("ukyefchnmnahmnxh", model.location()); + Assertions.assertEquals("qirwrweoox", model.tags().get("fifhxwrsnew")); + Assertions.assertEquals("abo", model.eTag()); + } +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RPExtendedInfoTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RPExtendedInfoTests.java new file mode 100644 index 0000000000000..e426ef30402ab --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RPExtendedInfoTests.java @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.recoveryservicesbackup.models.RPExtendedInfo; + +public final class RPExtendedInfoTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + RPExtendedInfo model + = BinaryData.fromString("{\"objectType\":\"RPExtendedInfo\"}").toObject(RPExtendedInfo.class); + } +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointDiskConfigurationTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointDiskConfigurationTests.java index 72e7d37a790a1..346fc37c6a22e 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointDiskConfigurationTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointDiskConfigurationTests.java @@ -12,13 +12,17 @@ public final class RecoveryPointDiskConfigurationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RecoveryPointDiskConfiguration model = BinaryData.fromString( - "{\"numberOfDisksIncludedInBackup\":180338782,\"numberOfDisksAttachedToVm\":1102080272,\"includedDiskList\":[{\"lun\":647378344,\"name\":\"gvvs\"},{\"lun\":1469869368,\"name\":\"jguq\"},{\"lun\":1811586286,\"name\":\"gzlvdnkfxu\"}],\"excludedDiskList\":[{\"lun\":1547666647,\"name\":\"rmuhapfcq\"},{\"lun\":1535415834,\"name\":\"xqv\"},{\"lun\":1014865004,\"name\":\"oymgccelvezr\"},{\"lun\":58606398,\"name\":\"mfe\"}]}") + "{\"numberOfDisksIncludedInBackup\":1476296254,\"numberOfDisksAttachedToVm\":915753980,\"includedDiskList\":[{\"lun\":1430018563,\"name\":\"xeizzg\",\"diskSizeInGb\":1958797848,\"storageType\":\"srmffeycxcktpiym\"},{\"lun\":1764465622,\"name\":\"eammxqiekkkzddr\",\"diskSizeInGb\":205119429,\"storageType\":\"ojbmxv\"}],\"excludedDiskList\":[{\"lun\":1699732408,\"name\":\"eesvecu\",\"diskSizeInGb\":2054437598,\"storageType\":\"txsu\"},{\"lun\":1728879575,\"name\":\"ujwsawddjibabxvi\",\"diskSizeInGb\":1579058461,\"storageType\":\"tzeexav\"}]}") .toObject(RecoveryPointDiskConfiguration.class); - Assertions.assertEquals(180338782, model.numberOfDisksIncludedInBackup()); - Assertions.assertEquals(1102080272, model.numberOfDisksAttachedToVm()); - Assertions.assertEquals(647378344, model.includedDiskList().get(0).lun()); - Assertions.assertEquals("gvvs", model.includedDiskList().get(0).name()); - Assertions.assertEquals(1547666647, model.excludedDiskList().get(0).lun()); - Assertions.assertEquals("rmuhapfcq", model.excludedDiskList().get(0).name()); + Assertions.assertEquals(1476296254, model.numberOfDisksIncludedInBackup()); + Assertions.assertEquals(915753980, model.numberOfDisksAttachedToVm()); + Assertions.assertEquals(1430018563, model.includedDiskList().get(0).lun()); + Assertions.assertEquals("xeizzg", model.includedDiskList().get(0).name()); + Assertions.assertEquals(1958797848, model.includedDiskList().get(0).diskSizeInGb()); + Assertions.assertEquals("srmffeycxcktpiym", model.includedDiskList().get(0).storageType()); + Assertions.assertEquals(1699732408, model.excludedDiskList().get(0).lun()); + Assertions.assertEquals("eesvecu", model.excludedDiskList().get(0).name()); + Assertions.assertEquals(2054437598, model.excludedDiskList().get(0).diskSizeInGb()); + Assertions.assertEquals("txsu", model.excludedDiskList().get(0).storageType()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointImmutabilityPropertiesTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointImmutabilityPropertiesTests.java index 149088aa746eb..755bf824f3a92 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointImmutabilityPropertiesTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointImmutabilityPropertiesTests.java @@ -13,9 +13,9 @@ public final class RecoveryPointImmutabilityPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RecoveryPointImmutabilityProperties model - = BinaryData.fromString("{\"isImmutable\":false,\"expiryTime\":\"2021-10-08T12:30:55Z\"}") + = BinaryData.fromString("{\"isImmutable\":true,\"expiryTime\":\"2021-10-02T17:21:38Z\"}") .toObject(RecoveryPointImmutabilityProperties.class); - Assertions.assertFalse(model.isImmutable()); - Assertions.assertEquals(OffsetDateTime.parse("2021-10-08T12:30:55Z"), model.expiryTime()); + Assertions.assertTrue(model.isImmutable()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-02T17:21:38Z"), model.expiryTime()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointMoveReadinessInfoTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointMoveReadinessInfoTests.java index 522be06ec708f..0e5caa11c9ae4 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointMoveReadinessInfoTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointMoveReadinessInfoTests.java @@ -12,9 +12,9 @@ public final class RecoveryPointMoveReadinessInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RecoveryPointMoveReadinessInfo model - = BinaryData.fromString("{\"isReadyForMove\":false,\"additionalInfo\":\"rnwoiindfp\"}") + = BinaryData.fromString("{\"isReadyForMove\":false,\"additionalInfo\":\"uwivkxoy\"}") .toObject(RecoveryPointMoveReadinessInfo.class); Assertions.assertFalse(model.isReadyForMove()); - Assertions.assertEquals("rnwoiindfp", model.additionalInfo()); + Assertions.assertEquals("uwivkxoy", model.additionalInfo()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointPropertiesTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointPropertiesTests.java index 6091252dcc3de..8f1b8cfa3faf7 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointPropertiesTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointPropertiesTests.java @@ -13,13 +13,13 @@ public final class RecoveryPointPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RecoveryPointProperties model = BinaryData.fromString( - "{\"expiryTime\":\"vaolpsslqlf\",\"ruleName\":\"dnbbglzps\",\"isSoftDeleted\":true,\"immutabilityProperties\":{\"isImmutable\":true,\"expiryTime\":\"2021-11-22T15:14:34Z\"}}") + "{\"expiryTime\":\"iwbwoenwashrtdtk\",\"ruleName\":\"qxwbpokulpiu\",\"isSoftDeleted\":false,\"immutabilityProperties\":{\"isImmutable\":false,\"expiryTime\":\"2021-06-01T21:52:28Z\"}}") .toObject(RecoveryPointProperties.class); - Assertions.assertEquals("vaolpsslqlf", model.expiryTime()); - Assertions.assertEquals("dnbbglzps", model.ruleName()); - Assertions.assertTrue(model.isSoftDeleted()); - Assertions.assertTrue(model.immutabilityProperties().isImmutable()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-22T15:14:34Z"), + Assertions.assertEquals("iwbwoenwashrtdtk", model.expiryTime()); + Assertions.assertEquals("qxwbpokulpiu", model.ruleName()); + Assertions.assertFalse(model.isSoftDeleted()); + Assertions.assertFalse(model.immutabilityProperties().isImmutable()); + Assertions.assertEquals(OffsetDateTime.parse("2021-06-01T21:52:28Z"), model.immutabilityProperties().expiryTime()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointRehydrationInfoTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointRehydrationInfoTests.java index 2d2952a915ba3..6c758ece6513c 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointRehydrationInfoTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointRehydrationInfoTests.java @@ -13,19 +13,19 @@ public final class RecoveryPointRehydrationInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RecoveryPointRehydrationInfo model = BinaryData - .fromString("{\"rehydrationRetentionDuration\":\"awaoqvmmbnpqfrt\",\"rehydrationPriority\":\"High\"}") + .fromString("{\"rehydrationRetentionDuration\":\"trrmhwrb\",\"rehydrationPriority\":\"Standard\"}") .toObject(RecoveryPointRehydrationInfo.class); - Assertions.assertEquals("awaoqvmmbnpqfrt", model.rehydrationRetentionDuration()); - Assertions.assertEquals(RehydrationPriority.HIGH, model.rehydrationPriority()); + Assertions.assertEquals("trrmhwrb", model.rehydrationRetentionDuration()); + Assertions.assertEquals(RehydrationPriority.STANDARD, model.rehydrationPriority()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { RecoveryPointRehydrationInfo model - = new RecoveryPointRehydrationInfo().withRehydrationRetentionDuration("awaoqvmmbnpqfrt") - .withRehydrationPriority(RehydrationPriority.HIGH); + = new RecoveryPointRehydrationInfo().withRehydrationRetentionDuration("trrmhwrb") + .withRehydrationPriority(RehydrationPriority.STANDARD); model = BinaryData.fromObject(model).toObject(RecoveryPointRehydrationInfo.class); - Assertions.assertEquals("awaoqvmmbnpqfrt", model.rehydrationRetentionDuration()); - Assertions.assertEquals(RehydrationPriority.HIGH, model.rehydrationPriority()); + Assertions.assertEquals("trrmhwrb", model.rehydrationRetentionDuration()); + Assertions.assertEquals(RehydrationPriority.STANDARD, model.rehydrationPriority()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointResourceInnerTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointResourceInnerTests.java index e75a222001c33..9e5473adb30eb 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointResourceInnerTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointResourceInnerTests.java @@ -15,13 +15,13 @@ public final class RecoveryPointResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RecoveryPointResourceInner model = BinaryData.fromString( - "{\"properties\":{\"objectType\":\"RecoveryPoint\",\"threatStatus\":\"NotAvailable\",\"threatInfo\":[{\"threatTitle\":\"btdzumveekg\",\"threatDescription\":\"ozuhkfp\",\"lastUpdatedTime\":\"2021-02-19T22:50:40Z\",\"threatState\":\"Active\",\"threatStartTime\":\"2021-01-11T16:44:39Z\",\"threatEndTime\":\"2021-03-14T10:54:45Z\",\"threatURI\":\"us\",\"threatSeverity\":\"Warning\"},{\"threatTitle\":\"uwaboekqvke\",\"threatDescription\":\"smv\",\"lastUpdatedTime\":\"2021-08-06T12:01:01Z\",\"threatState\":\"Resolved\",\"threatStartTime\":\"2021-09-20T16:59Z\",\"threatEndTime\":\"2021-05-30T09:03:19Z\",\"threatURI\":\"caalnjixisxyaw\",\"threatSeverity\":\"Informational\"},{\"threatTitle\":\"qcslyjpkiid\",\"threatDescription\":\"exznelixhnr\",\"lastUpdatedTime\":\"2021-05-07T02:19:01Z\",\"threatState\":\"InProgress\",\"threatStartTime\":\"2021-05-23T04:05:07Z\",\"threatEndTime\":\"2021-12-04T17:09:45Z\",\"threatURI\":\"nalaulppg\",\"threatSeverity\":\"Informational\"}]},\"tags\":{\"pgylg\":\"apnyiropuhpig\",\"medjvcslynqwwncw\":\"git\",\"pkteo\":\"zhxgktrmgucn\",\"pfqbuaceopzf\":\"llwptfdy\"},\"location\":\"hhuao\",\"eTag\":\"pcqeqx\",\"id\":\"z\",\"name\":\"ahzxctobgbk\",\"type\":\"moizpos\"}") + "{\"properties\":{\"objectType\":\"RecoveryPoint\",\"threatStatus\":\"Warning\",\"threatInfo\":[{\"threatTitle\":\"d\",\"threatDescription\":\"vwiwubmwmbesld\",\"lastUpdatedTime\":\"2021-06-09T22:01:08Z\",\"threatState\":\"InProgress\",\"threatStartTime\":\"2021-10-08T02:57:33Z\",\"threatEndTime\":\"2021-05-13T14:02:05Z\",\"threatURI\":\"cxogaokonzm\",\"threatSeverity\":\"Warning\"}]},\"tags\":{\"v\":\"mkqzeqqkdltfzxmh\",\"tibqdxbxwakb\":\"gureodkwobdag\"},\"location\":\"qxn\",\"eTag\":\"kzgxhurip\",\"id\":\"podxunkb\",\"name\":\"bxmubyynt\",\"type\":\"lrb\"}") .toObject(RecoveryPointResourceInner.class); - Assertions.assertEquals(ThreatStatus.NOT_AVAILABLE, model.properties().threatStatus()); - Assertions.assertEquals(ThreatState.ACTIVE, model.properties().threatInfo().get(0).threatState()); + Assertions.assertEquals(ThreatStatus.WARNING, model.properties().threatStatus()); + Assertions.assertEquals(ThreatState.IN_PROGRESS, model.properties().threatInfo().get(0).threatState()); Assertions.assertEquals(ThreatSeverity.WARNING, model.properties().threatInfo().get(0).threatSeverity()); - Assertions.assertEquals("apnyiropuhpig", model.tags().get("pgylg")); - Assertions.assertEquals("hhuao", model.location()); - Assertions.assertEquals("pcqeqx", model.etag()); + Assertions.assertEquals("mkqzeqqkdltfzxmh", model.tags().get("v")); + Assertions.assertEquals("qxn", model.location()); + Assertions.assertEquals("kzgxhurip", model.etag()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointResourceListTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointResourceListTests.java index a220f18972afb..668c224307435 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointResourceListTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointResourceListTests.java @@ -15,16 +15,16 @@ public final class RecoveryPointResourceListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RecoveryPointResourceList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"objectType\":\"RecoveryPoint\",\"threatStatus\":\"Healthy\",\"threatInfo\":[{\"threatTitle\":\"twm\",\"threatDescription\":\"ytdxwit\",\"lastUpdatedTime\":\"2021-05-14T21:36:27Z\",\"threatState\":\"Ignored\",\"threatStartTime\":\"2021-06-11T21:37:26Z\",\"threatEndTime\":\"2021-05-13T06:47:58Z\",\"threatURI\":\"xhniskxfbkpycgk\",\"threatSeverity\":\"High\"},{\"threatTitle\":\"nhjdauw\",\"threatDescription\":\"ylwz\",\"lastUpdatedTime\":\"2021-10-03T03:59:01Z\",\"threatState\":\"Ignored\",\"threatStartTime\":\"2021-11-19T04:43:06Z\",\"threatEndTime\":\"2021-01-21T23:49:51Z\",\"threatURI\":\"mpowuwpr\",\"threatSeverity\":\"Critical\"},{\"threatTitle\":\"eualupjmkhf\",\"threatDescription\":\"bbcswsrtjri\",\"lastUpdatedTime\":\"2021-03-19T14:55:09Z\",\"threatState\":\"Resolved\",\"threatStartTime\":\"2021-02-14T13:28:23Z\",\"threatEndTime\":\"2021-08-24T01:12:20Z\",\"threatURI\":\"hfgblc\",\"threatSeverity\":\"Informational\"},{\"threatTitle\":\"vlvqhjkbegi\",\"threatDescription\":\"nmxiebwwaloayqc\",\"lastUpdatedTime\":\"2021-09-09T06:40:06Z\",\"threatState\":\"InProgress\",\"threatStartTime\":\"2021-07-21T21:53:41Z\",\"threatEndTime\":\"2021-02-05T05:03:57Z\",\"threatURI\":\"yzm\",\"threatSeverity\":\"Informational\"}]},\"tags\":{\"nftguvriuhpr\":\"gmtsavjcbpwxqpsr\",\"ro\":\"mdyvxqtayriw\",\"mcqibycnojv\":\"qbex\"},\"location\":\"mefqsgzvahapjyzh\",\"eTag\":\"gqzcjr\",\"id\":\"djzlmwlx\",\"name\":\"vu\",\"type\":\"fhzovawjvzunluth\"}],\"nextLink\":\"prnxipeil\"}") + "{\"value\":[{\"properties\":{\"objectType\":\"RecoveryPoint\",\"threatStatus\":\"Healthy\",\"threatInfo\":[{\"threatTitle\":\"ebwwaloayqc\",\"threatDescription\":\"rtzju\",\"lastUpdatedTime\":\"2021-08-18T20:27:18Z\",\"threatState\":\"Active\",\"threatStartTime\":\"2021-12-06T07:29:40Z\",\"threatEndTime\":\"2021-09-28T00:19:47Z\",\"threatURI\":\"ngmtsavjcb\",\"threatSeverity\":\"Warning\"},{\"threatTitle\":\"p\",\"threatDescription\":\"knftguvriuh\",\"lastUpdatedTime\":\"2020-12-28T15:07:37Z\",\"threatState\":\"Ignored\",\"threatStartTime\":\"2021-06-28T04:39:12Z\",\"threatEndTime\":\"2021-10-23T15:26:13Z\",\"threatURI\":\"ayriwwroyqbexrm\",\"threatSeverity\":\"High\"},{\"threatTitle\":\"ycnojvknmefqsg\",\"threatDescription\":\"ah\",\"lastUpdatedTime\":\"2021-04-03T04:06:05Z\",\"threatState\":\"Resolved\",\"threatStartTime\":\"2021-09-29T06:33:19Z\",\"threatEndTime\":\"2021-04-21T18:37:49Z\",\"threatURI\":\"zcjrvxdjzlmwlx\",\"threatSeverity\":\"Critical\"},{\"threatTitle\":\"fhzovawjvzunluth\",\"threatDescription\":\"prnxipeil\",\"lastUpdatedTime\":\"2021-07-12T01:35:59Z\",\"threatState\":\"InProgress\",\"threatStartTime\":\"2021-10-12T12:24:32Z\",\"threatEndTime\":\"2021-06-21T03:54:01Z\",\"threatURI\":\"ltskzbbtd\",\"threatSeverity\":\"Critical\"}]},\"tags\":{\"wozuhkf\":\"ekg\"},\"location\":\"sjyofdx\",\"eTag\":\"us\",\"id\":\"touwaboekqv\",\"name\":\"elnsmvbxw\",\"type\":\"jsflhhcaalnjix\"},{\"properties\":{\"objectType\":\"RecoveryPoint\",\"threatStatus\":\"Healthy\",\"threatInfo\":[{\"threatTitle\":\"oyaqcslyjpkiid\",\"threatDescription\":\"exznelixhnr\",\"lastUpdatedTime\":\"2021-05-07T02:19:01Z\",\"threatState\":\"InProgress\",\"threatStartTime\":\"2021-05-23T04:05:07Z\",\"threatEndTime\":\"2021-12-04T17:09:45Z\",\"threatURI\":\"nalaulppg\",\"threatSeverity\":\"Informational\"}]},\"tags\":{\"pgylg\":\"apnyiropuhpig\",\"medjvcslynqwwncw\":\"git\",\"pkteo\":\"zhxgktrmgucn\",\"pfqbuaceopzf\":\"llwptfdy\"},\"location\":\"hhuao\",\"eTag\":\"pcqeqx\",\"id\":\"z\",\"name\":\"ahzxctobgbk\",\"type\":\"moizpos\"},{\"properties\":{\"objectType\":\"RecoveryPoint\",\"threatStatus\":\"NotAvailable\",\"threatInfo\":[{\"threatTitle\":\"unrmfqjhhkxb\",\"threatDescription\":\"jy\",\"lastUpdatedTime\":\"2021-01-10T13:36:41Z\",\"threatState\":\"Ignored\",\"threatStartTime\":\"2021-12-01T23:11:57Z\",\"threatEndTime\":\"2021-11-25T10:52:17Z\",\"threatURI\":\"divkrt\",\"threatSeverity\":\"Critical\"},{\"threatTitle\":\"qzvszjf\",\"threatDescription\":\"vjfdx\",\"lastUpdatedTime\":\"2021-07-25T03:32:12Z\",\"threatState\":\"Active\",\"threatStartTime\":\"2021-08-28T01:45:57Z\",\"threatEndTime\":\"2021-02-03T22:58:32Z\",\"threatURI\":\"qtdo\",\"threatSeverity\":\"Informational\"},{\"threatTitle\":\"xv\",\"threatDescription\":\"xyslqbh\",\"lastUpdatedTime\":\"2021-02-23T20:11:15Z\",\"threatState\":\"InProgress\",\"threatStartTime\":\"2021-08-05T08:56:45Z\",\"threatEndTime\":\"2021-07-14T10:36:47Z\",\"threatURI\":\"lmpewwwfbkr\",\"threatSeverity\":\"Critical\"}]},\"tags\":{\"vasrruvwb\":\"shqjohxcrsbf\",\"ybsrfbjfdtwss\":\"sqfsubcgjbirxb\",\"tpvjzbexilzznfqq\":\"t\"},\"location\":\"wpmqt\",\"eTag\":\"uoujmkcjhwqy\",\"id\":\"r\",\"name\":\"bnw\",\"type\":\"ewgdrjervn\"},{\"properties\":{\"objectType\":\"RecoveryPoint\",\"threatStatus\":\"Unknown\",\"threatInfo\":[{\"threatTitle\":\"indoygmifthnzd\",\"threatDescription\":\"sl\",\"lastUpdatedTime\":\"2021-07-27T07:40:17Z\",\"threatState\":\"Active\",\"threatStartTime\":\"2021-02-27T02:28:12Z\",\"threatEndTime\":\"2021-01-30T19:32:48Z\",\"threatURI\":\"uhavhql\",\"threatSeverity\":\"Warning\"}]},\"tags\":{\"cym\":\"aqolbgycduiertg\",\"lqlfm\":\"aolps\",\"iydmcwyhzdxs\":\"dnbbglzps\",\"od\":\"adbzmnvdfznud\"},\"location\":\"zbn\",\"eTag\":\"lylpstdb\",\"id\":\"xsrz\",\"name\":\"zucerscdntnev\",\"type\":\"iwjmygtdssls\"}],\"nextLink\":\"mweriofzpy\"}") .toObject(RecoveryPointResourceList.class); - Assertions.assertEquals("prnxipeil", model.nextLink()); + Assertions.assertEquals("mweriofzpy", model.nextLink()); Assertions.assertEquals(ThreatStatus.HEALTHY, model.value().get(0).properties().threatStatus()); - Assertions.assertEquals(ThreatState.IGNORED, + Assertions.assertEquals(ThreatState.ACTIVE, model.value().get(0).properties().threatInfo().get(0).threatState()); - Assertions.assertEquals(ThreatSeverity.HIGH, + Assertions.assertEquals(ThreatSeverity.WARNING, model.value().get(0).properties().threatInfo().get(0).threatSeverity()); - Assertions.assertEquals("gmtsavjcbpwxqpsr", model.value().get(0).tags().get("nftguvriuhpr")); - Assertions.assertEquals("mefqsgzvahapjyzh", model.value().get(0).location()); - Assertions.assertEquals("gqzcjr", model.value().get(0).etag()); + Assertions.assertEquals("ekg", model.value().get(0).tags().get("wozuhkf")); + Assertions.assertEquals("sjyofdx", model.value().get(0).location()); + Assertions.assertEquals("us", model.value().get(0).etag()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointTests.java index fa6c8de0d83b1..5c342ebd2f744 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointTests.java @@ -15,10 +15,10 @@ public final class RecoveryPointTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RecoveryPoint model = BinaryData.fromString( - "{\"objectType\":\"RecoveryPoint\",\"threatStatus\":\"UnHealthy\",\"threatInfo\":[{\"threatTitle\":\"bunrmfqjhhk\",\"threatDescription\":\"pvjymjhxxjyng\",\"lastUpdatedTime\":\"2021-04-19T20:15:23Z\",\"threatState\":\"Ignored\",\"threatStartTime\":\"2021-04-07T12:52:17Z\",\"threatEndTime\":\"2021-10-05T00:25:34Z\",\"threatURI\":\"xqzvszjfa\",\"threatSeverity\":\"Critical\"}]}") + "{\"objectType\":\"RecoveryPoint\",\"threatStatus\":\"NotAvailable\",\"threatInfo\":[{\"threatTitle\":\"vseotgqrl\",\"threatDescription\":\"muwlauwzizxbm\",\"lastUpdatedTime\":\"2021-06-20T04:01:26Z\",\"threatState\":\"Ignored\",\"threatStartTime\":\"2021-05-08T07:32:01Z\",\"threatEndTime\":\"2021-09-15T06:09:09Z\",\"threatURI\":\"vpbttd\",\"threatSeverity\":\"Informational\"},{\"threatTitle\":\"p\",\"threatDescription\":\"ebmnzbtbhjpglk\",\"lastUpdatedTime\":\"2021-09-29T06:58:20Z\",\"threatState\":\"Active\",\"threatStartTime\":\"2021-07-06T14:55:49Z\",\"threatEndTime\":\"2021-06-02T04:41:52Z\",\"threatURI\":\"fphsdyhtozfikdow\",\"threatSeverity\":\"High\"},{\"threatTitle\":\"v\",\"threatDescription\":\"xclvit\",\"lastUpdatedTime\":\"2021-05-03T20:49:25Z\",\"threatState\":\"Active\",\"threatStartTime\":\"2021-10-16T01:53:59Z\",\"threatEndTime\":\"2021-06-03T11:49:50Z\",\"threatURI\":\"b\",\"threatSeverity\":\"High\"},{\"threatTitle\":\"fwdsj\",\"threatDescription\":\"aljutiiswac\",\"lastUpdatedTime\":\"2021-11-02T15:00:13Z\",\"threatState\":\"Active\",\"threatStartTime\":\"2021-08-03T21:42:41Z\",\"threatEndTime\":\"2021-09-01T23:23:38Z\",\"threatURI\":\"fvhqc\",\"threatSeverity\":\"Informational\"}]}") .toObject(RecoveryPoint.class); - Assertions.assertEquals(ThreatStatus.UN_HEALTHY, model.threatStatus()); + Assertions.assertEquals(ThreatStatus.NOT_AVAILABLE, model.threatStatus()); Assertions.assertEquals(ThreatState.IGNORED, model.threatInfo().get(0).threatState()); - Assertions.assertEquals(ThreatSeverity.CRITICAL, model.threatInfo().get(0).threatSeverity()); + Assertions.assertEquals(ThreatSeverity.INFORMATIONAL, model.threatInfo().get(0).threatSeverity()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointTierInformationTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointTierInformationTests.java index 885eda631f4a0..06d15aa66d07e 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointTierInformationTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointTierInformationTests.java @@ -13,11 +13,11 @@ public final class RecoveryPointTierInformationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - RecoveryPointTierInformation model = BinaryData - .fromString("{\"type\":\"HardenedRP\",\"status\":\"Invalid\",\"extendedInfo\":{\"od\":\"bzmnvdfznud\"}}") + RecoveryPointTierInformation model = BinaryData.fromString( + "{\"type\":\"IASnapshotRP\",\"status\":\"Invalid\",\"extendedInfo\":{\"wcciuqgbdbu\":\"rpqlp\",\"joxafnndlpi\":\"auvfbtkuwhhmhyk\",\"kpw\":\"hkoymkcdyhbp\",\"jxywsuws\":\"reqnovvqfov\"}}") .toObject(RecoveryPointTierInformation.class); - Assertions.assertEquals(RecoveryPointTierType.HARDENED_RP, model.type()); + Assertions.assertEquals(RecoveryPointTierType.IASNAPSHOT_RP, model.type()); Assertions.assertEquals(RecoveryPointTierStatus.INVALID, model.status()); - Assertions.assertEquals("bzmnvdfznud", model.extendedInfo().get("od")); + Assertions.assertEquals("rpqlp", model.extendedInfo().get("wcciuqgbdbu")); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointTierInformationV2Tests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointTierInformationV2Tests.java index c22e455d34f02..7f318bd91da5d 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointTierInformationV2Tests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointTierInformationV2Tests.java @@ -13,11 +13,11 @@ public final class RecoveryPointTierInformationV2Tests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - RecoveryPointTierInformationV2 model = BinaryData - .fromString("{\"type\":\"InstantRP\",\"status\":\"Deleted\",\"extendedInfo\":{\"frl\":\"nokixrjqcirgz\"}}") + RecoveryPointTierInformationV2 model = BinaryData.fromString( + "{\"type\":\"Invalid\",\"status\":\"Valid\",\"extendedInfo\":{\"uvgp\":\"hfjmhvv\",\"uzjyihsasbhudypo\":\"uneqsxvmhf\",\"slynsqyrpfoo\":\"yue\",\"zdzgtilaxhnfhqly\":\"rlttymsjnygqdnfw\"}}") .toObject(RecoveryPointTierInformationV2.class); - Assertions.assertEquals("nokixrjqcirgz", model.extendedInfo().get("frl")); - Assertions.assertEquals(RecoveryPointTierType.INSTANT_RP, model.type()); - Assertions.assertEquals(RecoveryPointTierStatus.DELETED, model.status()); + Assertions.assertEquals("hfjmhvv", model.extendedInfo().get("uvgp")); + Assertions.assertEquals(RecoveryPointTierType.INVALID, model.type()); + Assertions.assertEquals(RecoveryPointTierStatus.VALID, model.status()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsGetRPExtendedInfoMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsGetRPExtendedInfoMockTests.java new file mode 100644 index 0000000000000..0ce361a07d530 --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsGetRPExtendedInfoMockTests.java @@ -0,0 +1,64 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager; +import com.azure.resourcemanager.recoveryservicesbackup.models.GetRPExtendedInfoRequest; +import com.azure.resourcemanager.recoveryservicesbackup.models.GetRPExtendedInfoRequestResource; +import com.azure.resourcemanager.recoveryservicesbackup.models.RPExtendedInfoResourceList; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import java.util.Arrays; +import java.util.HashMap; +import java.util.Map; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class RecoveryPointsGetRPExtendedInfoMockTests { + @Test + public void testGetRPExtendedInfo() throws Exception { + String responseStr + = "{\"value\":[{\"location\":\"jqgir\",\"tags\":{\"vctsfaeuhw\":\"lyvxchp\"},\"eTag\":\"knstvzuzha\",\"properties\":{\"objectType\":\"RPExtendedInfo\"},\"id\":\"mlppdpgzvzqazvb\",\"name\":\"arkptgongruatsyi\",\"type\":\"sjqhenigbeqngu\"},{\"location\":\"byjdeayscse\",\"tags\":{\"vmuw\":\"jemexmnv\",\"rdlhvdvmiphbe\":\"xlniwmcpm\",\"kdclacroczf\":\"eqjzm\"},\"eTag\":\"ner\",\"properties\":{\"objectType\":\"RPExtendedInfo\"},\"id\":\"uxzshxz\",\"name\":\"zbzuzudlev\",\"type\":\"skejcgwfsgq\"}],\"nextLink\":\"t\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + RecoveryServicesBackupManager manager = RecoveryServicesBackupManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + RPExtendedInfoResourceList response = manager.recoveryPoints() + .getRPExtendedInfo("ficudyhiz", "aczmuh", "cakznhokhoitwhrj", + new GetRPExtendedInfoRequestResource().withLocation("mmazdnckid") + .withTags(mapOf("zbawkikcdgfh", "glhzqp", "cfiwhagxsurejq", "ssdpjeyoqxded")) + .withETag("hzzbgullcxiqq") + .withProperties(new GetRPExtendedInfoRequest() + .withRecoveryPointIds(Arrays.asList("koxdupnamgl", "ouigdmfivjqte", "dqqigdydkghpc"))), + com.azure.core.util.Context.NONE); + + Assertions.assertEquals("t", response.nextLink()); + Assertions.assertEquals("jqgir", response.value().get(0).location()); + Assertions.assertEquals("lyvxchp", response.value().get(0).tags().get("vctsfaeuhw")); + Assertions.assertEquals("knstvzuzha", response.value().get(0).eTag()); + } + + // 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/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsGetRPExtendedInfoOperationResultWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsGetRPExtendedInfoOperationResultWithResponseMockTests.java new file mode 100644 index 0000000000000..99fb7850903b2 --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsGetRPExtendedInfoOperationResultWithResponseMockTests.java @@ -0,0 +1,43 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.generated; + +import com.azure.core.credential.AccessToken; +import com.azure.core.http.HttpClient; +import com.azure.core.management.profile.AzureProfile; +import com.azure.core.models.AzureCloud; +import com.azure.core.test.http.MockHttpResponse; +import com.azure.resourcemanager.recoveryservicesbackup.RecoveryServicesBackupManager; +import com.azure.resourcemanager.recoveryservicesbackup.models.RPExtendedInfoResourceList; +import java.nio.charset.StandardCharsets; +import java.time.OffsetDateTime; +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; +import reactor.core.publisher.Mono; + +public final class RecoveryPointsGetRPExtendedInfoOperationResultWithResponseMockTests { + @Test + public void testGetRPExtendedInfoOperationResultWithResponse() throws Exception { + String responseStr + = "{\"value\":[{\"location\":\"ucaonz\",\"tags\":{\"krdemdi\":\"bvb\",\"ydamisvpztdivykp\":\"ackzidgzw\",\"shxuknsykdtoi\":\"kqejtpjfojiunr\"},\"eTag\":\"ancdrc\",\"properties\":{\"objectType\":\"RPExtendedInfo\"},\"id\":\"vx\",\"name\":\"ldxonckb\",\"type\":\"lblfxlupibaqzizx\"},{\"location\":\"zweghlwwbogvg\",\"tags\":{\"fvdstrkzxsgt\":\"qiyndveqels\"},\"eTag\":\"svlrdsmovpimynd\",\"properties\":{\"objectType\":\"RPExtendedInfo\"},\"id\":\"a\",\"name\":\"nrqa\",\"type\":\"otnn\"},{\"location\":\"olousdvrg\",\"tags\":{\"wz\":\"m\",\"qgkujds\":\"drpizfulgyctsdb\",\"eurbtigapdyarik\":\"oxrqw\",\"kfqbriqulwwt\":\"ejdpdfhtwm\"},\"eTag\":\"meqkvy\",\"properties\":{\"objectType\":\"RPExtendedInfo\"},\"id\":\"kpoyuohue\",\"name\":\"snaajph\",\"type\":\"poejnglpwsa\"}],\"nextLink\":\"xjsumx\"}"; + + HttpClient httpClient + = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); + RecoveryServicesBackupManager manager = RecoveryServicesBackupManager.configure() + .withHttpClient(httpClient) + .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), + new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); + + RPExtendedInfoResourceList response = manager.recoveryPoints() + .getRPExtendedInfoOperationResultWithResponse("ecupy", "ijpardavsjcf", "azpzdqwuz", "cmcokxizekuv", + com.azure.core.util.Context.NONE) + .getValue(); + + Assertions.assertEquals("xjsumx", response.nextLink()); + Assertions.assertEquals("ucaonz", response.value().get(0).location()); + Assertions.assertEquals("bvb", response.value().get(0).tags().get("krdemdi")); + Assertions.assertEquals("ancdrc", response.value().get(0).eTag()); + } +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsGetWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsGetWithResponseMockTests.java index 17a3a87300829..a05937003fbe2 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsGetWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsGetWithResponseMockTests.java @@ -24,7 +24,7 @@ public final class RecoveryPointsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"objectType\":\"RecoveryPoint\",\"threatStatus\":\"UnHealthy\",\"threatInfo\":[{\"threatTitle\":\"cpj\",\"threatDescription\":\"uqgixex\",\"lastUpdatedTime\":\"2021-04-05T10:28:16Z\",\"threatState\":\"Ignored\",\"threatStartTime\":\"2021-11-27T14:04:08Z\",\"threatEndTime\":\"2021-09-02T04:57:07Z\",\"threatURI\":\"huerkjddvrglie\",\"threatSeverity\":\"Warning\"},{\"threatTitle\":\"vbiiftksdwgdnk\",\"threatDescription\":\"gmwdh\",\"lastUpdatedTime\":\"2021-04-19T17:37:58Z\",\"threatState\":\"InProgress\",\"threatStartTime\":\"2021-04-01T00:54:20Z\",\"threatEndTime\":\"2021-09-27T11:55:39Z\",\"threatURI\":\"g\",\"threatSeverity\":\"Warning\"},{\"threatTitle\":\"t\",\"threatDescription\":\"aqgzekajclyzgs\",\"lastUpdatedTime\":\"2021-04-21T17:36:16Z\",\"threatState\":\"Active\",\"threatStartTime\":\"2021-11-11T22:10:46Z\",\"threatEndTime\":\"2021-04-21T21:06:45Z\",\"threatURI\":\"otvmrxk\",\"threatSeverity\":\"Warning\"},{\"threatTitle\":\"vvjbhvhdiqayf\",\"threatDescription\":\"iyu\",\"lastUpdatedTime\":\"2021-06-15T23:07:24Z\",\"threatState\":\"Active\",\"threatStartTime\":\"2021-07-01T21:53:07Z\",\"threatEndTime\":\"2021-09-15T12:15:44Z\",\"threatURI\":\"hyibdrqrswh\",\"threatSeverity\":\"High\"}]},\"tags\":{\"owtjo\":\"y\",\"vjnn\":\"ztfwfqchvcz\"},\"location\":\"agfyvrtpqpe\",\"eTag\":\"z\",\"id\":\"krepdqhqyhwqwem\",\"name\":\"xqabckmzeoxi\",\"type\":\"hgreohtwhlpuz\"}"; + = "{\"properties\":{\"objectType\":\"RecoveryPoint\",\"threatStatus\":\"UnHealthy\",\"threatInfo\":[{\"threatTitle\":\"fpcfjf\",\"threatDescription\":\"lgzawkgyepeyamnn\",\"lastUpdatedTime\":\"2021-02-15T10:13:01Z\",\"threatState\":\"Active\",\"threatStartTime\":\"2021-01-16T09:56:14Z\",\"threatEndTime\":\"2021-07-02T14:34:17Z\",\"threatURI\":\"kzrn\",\"threatSeverity\":\"Critical\"},{\"threatTitle\":\"tdhuo\",\"threatDescription\":\"wqpsqaz\",\"lastUpdatedTime\":\"2021-01-30T13:42:07Z\",\"threatState\":\"Resolved\",\"threatStartTime\":\"2021-06-25T01:03:25Z\",\"threatEndTime\":\"2021-11-30T20:35:22Z\",\"threatURI\":\"bh\",\"threatSeverity\":\"Informational\"}]},\"tags\":{\"ftvhkmoogj\":\"ztibniyntsxjmfm\",\"gmjgrul\":\"hskb\"},\"location\":\"ogxhcxn\",\"eTag\":\"tpfdzxcouzfwofwa\",\"id\":\"kzkdtzxsoednlwg\",\"name\":\"ihezomucmq\",\"type\":\"isnionetbzdrdpue\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,14 +34,15 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); RecoveryPointResource response = manager.recoveryPoints() - .getWithResponse("x", "qk", "xym", "kqv", "qepdx", "ltuubw", com.azure.core.util.Context.NONE) + .getWithResponse("lgsrgkrfizrpywlp", "yuqh", "lmcskyk", "fuofixcnpcfykkp", "ycpawm", "jp", + com.azure.core.util.Context.NONE) .getValue(); Assertions.assertEquals(ThreatStatus.UN_HEALTHY, response.properties().threatStatus()); - Assertions.assertEquals(ThreatState.IGNORED, response.properties().threatInfo().get(0).threatState()); - Assertions.assertEquals(ThreatSeverity.WARNING, response.properties().threatInfo().get(0).threatSeverity()); - Assertions.assertEquals("y", response.tags().get("owtjo")); - Assertions.assertEquals("agfyvrtpqpe", response.location()); - Assertions.assertEquals("z", response.etag()); + Assertions.assertEquals(ThreatState.ACTIVE, response.properties().threatInfo().get(0).threatState()); + Assertions.assertEquals(ThreatSeverity.CRITICAL, response.properties().threatInfo().get(0).threatSeverity()); + Assertions.assertEquals("ztibniyntsxjmfm", response.tags().get("ftvhkmoogj")); + Assertions.assertEquals("ogxhcxn", response.location()); + Assertions.assertEquals("tpfdzxcouzfwofwa", response.etag()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsListMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsListMockTests.java index 0e846c8530d8a..5faafeab88618 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsListMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsListMockTests.java @@ -25,7 +25,7 @@ public final class RecoveryPointsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"objectType\":\"RecoveryPoint\",\"threatStatus\":\"Warning\",\"threatInfo\":[{\"threatTitle\":\"tbgnixxowwzkyfw\",\"threatDescription\":\"piw\",\"lastUpdatedTime\":\"2021-08-14T23:51:50Z\",\"threatState\":\"InProgress\",\"threatStartTime\":\"2021-08-28T14:18:59Z\",\"threatEndTime\":\"2021-10-19T01:59:07Z\",\"threatURI\":\"kldmaxxijv\",\"threatSeverity\":\"Critical\"},{\"threatTitle\":\"dgkjgyacwra\",\"threatDescription\":\"kwefc\",\"lastUpdatedTime\":\"2021-06-27T07:32:28Z\",\"threatState\":\"InProgress\",\"threatStartTime\":\"2021-03-26T00:02:18Z\",\"threatEndTime\":\"2021-02-03T01:23:38Z\",\"threatURI\":\"wyxqiclad\",\"threatSeverity\":\"Informational\"}]},\"tags\":{\"quvjez\":\"vuqmcbymsfobj\",\"mvpsimioyo\":\"j\",\"clibbfqpsp\":\"glkmiqwnnr\",\"exzgpmnmabedd\":\"ladydgnhautwu\"},\"location\":\"lwgdfpfqfpcvs\",\"eTag\":\"l\",\"id\":\"rvwerfwxbsmtb\",\"name\":\"jj\",\"type\":\"h\"}]}"; + = "{\"value\":[{\"properties\":{\"objectType\":\"RecoveryPoint\",\"threatStatus\":\"Unknown\",\"threatInfo\":[{\"threatTitle\":\"rfwss\",\"threatDescription\":\"lc\",\"lastUpdatedTime\":\"2021-02-12T01:55:01Z\",\"threatState\":\"InProgress\",\"threatStartTime\":\"2021-07-29T07:10:03Z\",\"threatEndTime\":\"2021-01-16T18:52:39Z\",\"threatURI\":\"xcrqmipfjwfo\",\"threatSeverity\":\"Warning\"},{\"threatTitle\":\"mshxxba\",\"threatDescription\":\"abuln\",\"lastUpdatedTime\":\"2021-08-20T06:54:22Z\",\"threatState\":\"Ignored\",\"threatStartTime\":\"2021-08-29T03:37:05Z\",\"threatEndTime\":\"2021-07-03T04:06:17Z\",\"threatURI\":\"zjsjzn\",\"threatSeverity\":\"Critical\"},{\"threatTitle\":\"qmqipaydhfnzoc\",\"threatDescription\":\"tfshksnyzm\",\"lastUpdatedTime\":\"2021-08-16T00:12:21Z\",\"threatState\":\"Resolved\",\"threatStartTime\":\"2021-11-06T05:00:45Z\",\"threatEndTime\":\"2021-12-10T05:04:56Z\",\"threatURI\":\"lslcefiqdktwtkvi\",\"threatSeverity\":\"High\"},{\"threatTitle\":\"liwoyngu\",\"threatDescription\":\"hwvladpc\",\"lastUpdatedTime\":\"2021-01-14T14:10:41Z\",\"threatState\":\"Active\",\"threatStartTime\":\"2020-12-30T21:03:56Z\",\"threatEndTime\":\"2021-03-03T17:17:38Z\",\"threatURI\":\"ekymffztsilscvqs\",\"threatSeverity\":\"Warning\"}]},\"tags\":{\"eseuugci\":\"fymkouih\"},\"location\":\"hogsmgbvmtd\",\"eTag\":\"qbe\",\"id\":\"nfvegl\",\"name\":\"btvkbi\",\"type\":\"znhtf\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,15 +35,15 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response = manager.recoveryPoints() - .list("pceeznzangprbf", "xyxz", "bcip", "msexroqr", "dktxfv", "nfee", com.azure.core.util.Context.NONE); + .list("xkgtlzlmtrlxcznn", "zkbnbmxl", "mwt", "g", "qzusitoq", "ahfsgb", com.azure.core.util.Context.NONE); - Assertions.assertEquals(ThreatStatus.WARNING, response.iterator().next().properties().threatStatus()); + Assertions.assertEquals(ThreatStatus.UNKNOWN, response.iterator().next().properties().threatStatus()); Assertions.assertEquals(ThreatState.IN_PROGRESS, response.iterator().next().properties().threatInfo().get(0).threatState()); - Assertions.assertEquals(ThreatSeverity.CRITICAL, + Assertions.assertEquals(ThreatSeverity.WARNING, response.iterator().next().properties().threatInfo().get(0).threatSeverity()); - Assertions.assertEquals("vuqmcbymsfobj", response.iterator().next().tags().get("quvjez")); - Assertions.assertEquals("lwgdfpfqfpcvs", response.iterator().next().location()); - Assertions.assertEquals("l", response.iterator().next().etag()); + Assertions.assertEquals("fymkouih", response.iterator().next().tags().get("eseuugci")); + Assertions.assertEquals("hogsmgbvmtd", response.iterator().next().location()); + Assertions.assertEquals("qbe", response.iterator().next().etag()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsRecommendedForMovesListMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsRecommendedForMovesListMockTests.java index 619f7be9d4112..ca38148764419 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsRecommendedForMovesListMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RecoveryPointsRecommendedForMovesListMockTests.java @@ -27,7 +27,7 @@ public final class RecoveryPointsRecommendedForMovesListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"objectType\":\"RecoveryPoint\",\"threatStatus\":\"Unknown\",\"threatInfo\":[{\"threatTitle\":\"hkruwaedrympmlqo\",\"threatDescription\":\"hzdue\",\"lastUpdatedTime\":\"2021-06-30T16:50:48Z\",\"threatState\":\"Resolved\",\"threatStartTime\":\"2021-02-27T06:21:47Z\",\"threatEndTime\":\"2021-09-12T20:56:42Z\",\"threatURI\":\"njdiqfliejhpcl\",\"threatSeverity\":\"High\"},{\"threatTitle\":\"fsbw\",\"threatDescription\":\"ivbvzi\",\"lastUpdatedTime\":\"2021-02-23T02:17:57Z\",\"threatState\":\"InProgress\",\"threatStartTime\":\"2021-06-29T22:39:20Z\",\"threatEndTime\":\"2020-12-25T18:58:32Z\",\"threatURI\":\"pradmskxknpdgzi\",\"threatSeverity\":\"Warning\"},{\"threatTitle\":\"gswhgsaodkw\",\"threatDescription\":\"bafo\",\"lastUpdatedTime\":\"2021-07-22T11:05:09Z\",\"threatState\":\"Ignored\",\"threatStartTime\":\"2021-08-05T04:27:02Z\",\"threatEndTime\":\"2021-08-24T11:15:50Z\",\"threatURI\":\"sxbgnvkervqchoa\",\"threatSeverity\":\"Warning\"},{\"threatTitle\":\"xq\",\"threatDescription\":\"vspabdsrgfajgl\",\"lastUpdatedTime\":\"2021-09-18T18:05:11Z\",\"threatState\":\"InProgress\",\"threatStartTime\":\"2021-06-07T01:35:08Z\",\"threatEndTime\":\"2021-03-02T01:46:57Z\",\"threatURI\":\"jnltcetjdvqydi\",\"threatSeverity\":\"High\"}]},\"tags\":{\"jxbibanb\":\"aruwdxvqzxoebw\"},\"location\":\"pwtzvpakloz\",\"eTag\":\"bzrpejp\",\"id\":\"s\",\"name\":\"nbtttkgsuxu\",\"type\":\"rswgkpjhboyikeb\"}]}"; + = "{\"value\":[{\"properties\":{\"objectType\":\"RecoveryPoint\",\"threatStatus\":\"Warning\",\"threatInfo\":[{\"threatTitle\":\"atuwqkokbc\",\"threatDescription\":\"thymgobl\",\"lastUpdatedTime\":\"2021-11-11T10:03:36Z\",\"threatState\":\"InProgress\",\"threatStartTime\":\"2021-08-28T08:03:40Z\",\"threatEndTime\":\"2021-05-21T12:25:24Z\",\"threatURI\":\"an\",\"threatSeverity\":\"Informational\"},{\"threatTitle\":\"t\",\"threatDescription\":\"obcyanrfvqtvk\",\"lastUpdatedTime\":\"2021-05-24T07:59:38Z\",\"threatState\":\"Ignored\",\"threatStartTime\":\"2021-04-14T06:39:10Z\",\"threatEndTime\":\"2021-05-31T14:18:32Z\",\"threatURI\":\"aoaqymhccto\",\"threatSeverity\":\"Critical\"},{\"threatTitle\":\"yrnskb\",\"threatDescription\":\"quhczygxvh\",\"lastUpdatedTime\":\"2021-02-06T07:03:13Z\",\"threatState\":\"Active\",\"threatStartTime\":\"2021-03-23T23:26:48Z\",\"threatEndTime\":\"2021-10-23T09:19:50Z\",\"threatURI\":\"hscozawmvgxsmpk\",\"threatSeverity\":\"High\"},{\"threatTitle\":\"rfljfewxq\",\"threatDescription\":\"oxudnmckap\",\"lastUpdatedTime\":\"2021-11-23T22:05:55Z\",\"threatState\":\"InProgress\",\"threatStartTime\":\"2021-10-11T06:59:10Z\",\"threatEndTime\":\"2021-07-21T21:15:21Z\",\"threatURI\":\"ncdgmoqueq\",\"threatSeverity\":\"Critical\"}]},\"tags\":{\"jouw\":\"owl\",\"xmcvprstvkitbfjt\":\"ldxwhieproqksm\"},\"location\":\"otnplfacqocc\",\"eTag\":\"qxwetjtd\",\"id\":\"u\",\"name\":\"fdoadtxopgeh\",\"type\":\"adkm\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -36,19 +36,20 @@ public void testList() throws Exception { .authenticate(tokenRequestContext -> Mono.just(new AccessToken("this_is_a_token", OffsetDateTime.MAX)), new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); - PagedIterable response = manager.recoveryPointsRecommendedForMoves() - .list("wudohzilfm", "l", "kpsimsfeypofqp", "bh", "qgsdr", - new ListRecoveryPointsRecommendedForMoveRequest().withObjectType("ttjxophgerhsmvgo") - .withExcludedRPList(Arrays.asList("zmqilrixysfnim")), - com.azure.core.util.Context.NONE); + PagedIterable response + = manager.recoveryPointsRecommendedForMoves() + .list("rhxuddqmdt", "fisjmrkk", "mw", "mdlgy", "ixokwtjawhv", + new ListRecoveryPointsRecommendedForMoveRequest().withObjectType("nqf") + .withExcludedRPList(Arrays.asList("lcvmyolcaymjch", "vsnvlaq")), + com.azure.core.util.Context.NONE); - Assertions.assertEquals(ThreatStatus.UNKNOWN, response.iterator().next().properties().threatStatus()); - Assertions.assertEquals(ThreatState.RESOLVED, + Assertions.assertEquals(ThreatStatus.WARNING, response.iterator().next().properties().threatStatus()); + Assertions.assertEquals(ThreatState.IN_PROGRESS, response.iterator().next().properties().threatInfo().get(0).threatState()); - Assertions.assertEquals(ThreatSeverity.HIGH, + Assertions.assertEquals(ThreatSeverity.INFORMATIONAL, response.iterator().next().properties().threatInfo().get(0).threatSeverity()); - Assertions.assertEquals("aruwdxvqzxoebw", response.iterator().next().tags().get("jxbibanb")); - Assertions.assertEquals("pwtzvpakloz", response.iterator().next().location()); - Assertions.assertEquals("bzrpejp", response.iterator().next().etag()); + Assertions.assertEquals("owl", response.iterator().next().tags().get("jouw")); + Assertions.assertEquals("otnplfacqocc", response.iterator().next().location()); + Assertions.assertEquals("qxwetjtd", response.iterator().next().etag()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardOperationDetailTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardOperationDetailTests.java index ae3a6e818756a..62777abc6951b 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardOperationDetailTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardOperationDetailTests.java @@ -11,20 +11,19 @@ public final class ResourceGuardOperationDetailTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ResourceGuardOperationDetail model = BinaryData - .fromString("{\"vaultCriticalOperation\":\"bjczjnciuiyqvlda\",\"defaultResourceRequest\":\"v\"}") - .toObject(ResourceGuardOperationDetail.class); - Assertions.assertEquals("bjczjnciuiyqvlda", model.vaultCriticalOperation()); - Assertions.assertEquals("v", model.defaultResourceRequest()); + ResourceGuardOperationDetail model + = BinaryData.fromString("{\"vaultCriticalOperation\":\"hdiqayfl\",\"defaultResourceRequest\":\"yu\"}") + .toObject(ResourceGuardOperationDetail.class); + Assertions.assertEquals("hdiqayfl", model.vaultCriticalOperation()); + Assertions.assertEquals("yu", model.defaultResourceRequest()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ResourceGuardOperationDetail model - = new ResourceGuardOperationDetail().withVaultCriticalOperation("bjczjnciuiyqvlda") - .withDefaultResourceRequest("v"); + ResourceGuardOperationDetail model = new ResourceGuardOperationDetail().withVaultCriticalOperation("hdiqayfl") + .withDefaultResourceRequest("yu"); model = BinaryData.fromObject(model).toObject(ResourceGuardOperationDetail.class); - Assertions.assertEquals("bjczjnciuiyqvlda", model.vaultCriticalOperation()); - Assertions.assertEquals("v", model.defaultResourceRequest()); + Assertions.assertEquals("hdiqayfl", model.vaultCriticalOperation()); + Assertions.assertEquals("yu", model.defaultResourceRequest()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyBaseResourceInnerTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyBaseResourceInnerTests.java index 4b5653b0db0bd..33bfd027d5ed7 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyBaseResourceInnerTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyBaseResourceInnerTests.java @@ -17,45 +17,47 @@ public final class ResourceGuardProxyBaseResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ResourceGuardProxyBaseResourceInner model = BinaryData.fromString( - "{\"properties\":{\"resourceGuardResourceId\":\"puby\",\"resourceGuardOperationDetails\":[{\"vaultCriticalOperation\":\"k\",\"defaultResourceRequest\":\"eebgvopemtuoqu\"},{\"vaultCriticalOperation\":\"yegq\",\"defaultResourceRequest\":\"nigflqqbtnyj\"}],\"lastUpdatedTime\":\"lxdbfvabmvms\",\"description\":\"aevwjcnkot\"},\"tags\":{\"zwjiqullq\":\"uhvajmailfemjjza\",\"yeofltfnnxrkad\":\"bdmvrscmqerndbr\"},\"location\":\"ynnfmuiii\",\"eTag\":\"pfoh\",\"id\":\"fkx\",\"name\":\"bcbrwjiutgnjizbe\",\"type\":\"woiymrvz\"}") + "{\"properties\":{\"resourceGuardResourceId\":\"d\",\"resourceGuardOperationDetails\":[{\"vaultCriticalOperation\":\"gsecnadbuwqrgx\",\"defaultResourceRequest\":\"lmqiynezoel\"},{\"vaultCriticalOperation\":\"kki\",\"defaultResourceRequest\":\"vmtumxpym\"},{\"vaultCriticalOperation\":\"fua\",\"defaultResourceRequest\":\"oqvqpilr\"}],\"lastUpdatedTime\":\"ncanlduwzor\",\"description\":\"bm\"},\"tags\":{\"tuubwyvpjb\":\"klxymxkqvfqepdxc\"},\"location\":\"cpj\",\"eTag\":\"uqgixex\",\"id\":\"dfbwljav\",\"name\":\"uerkjddvrg\",\"type\":\"iegftc\"}") .toObject(ResourceGuardProxyBaseResourceInner.class); - Assertions.assertEquals("puby", model.properties().resourceGuardResourceId()); - Assertions.assertEquals("k", + Assertions.assertEquals("d", model.properties().resourceGuardResourceId()); + Assertions.assertEquals("gsecnadbuwqrgx", model.properties().resourceGuardOperationDetails().get(0).vaultCriticalOperation()); - Assertions.assertEquals("eebgvopemtuoqu", + Assertions.assertEquals("lmqiynezoel", model.properties().resourceGuardOperationDetails().get(0).defaultResourceRequest()); - Assertions.assertEquals("lxdbfvabmvms", model.properties().lastUpdatedTime()); - Assertions.assertEquals("aevwjcnkot", model.properties().description()); - Assertions.assertEquals("uhvajmailfemjjza", model.tags().get("zwjiqullq")); - Assertions.assertEquals("ynnfmuiii", model.location()); - Assertions.assertEquals("pfoh", model.etag()); + Assertions.assertEquals("ncanlduwzor", model.properties().lastUpdatedTime()); + Assertions.assertEquals("bm", model.properties().description()); + Assertions.assertEquals("klxymxkqvfqepdxc", model.tags().get("tuubwyvpjb")); + Assertions.assertEquals("cpj", model.location()); + Assertions.assertEquals("uqgixex", model.etag()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ResourceGuardProxyBaseResourceInner model = new ResourceGuardProxyBaseResourceInner() - .withProperties(new ResourceGuardProxyBase().withResourceGuardResourceId("puby") + .withProperties(new ResourceGuardProxyBase().withResourceGuardResourceId("d") .withResourceGuardOperationDetails(Arrays.asList( - new ResourceGuardOperationDetail().withVaultCriticalOperation("k") - .withDefaultResourceRequest("eebgvopemtuoqu"), - new ResourceGuardOperationDetail().withVaultCriticalOperation("yegq") - .withDefaultResourceRequest("nigflqqbtnyj"))) - .withLastUpdatedTime("lxdbfvabmvms") - .withDescription("aevwjcnkot")) - .withTags(mapOf("zwjiqullq", "uhvajmailfemjjza", "yeofltfnnxrkad", "bdmvrscmqerndbr")) - .withLocation("ynnfmuiii") - .withEtag("pfoh"); + new ResourceGuardOperationDetail().withVaultCriticalOperation("gsecnadbuwqrgx") + .withDefaultResourceRequest("lmqiynezoel"), + new ResourceGuardOperationDetail().withVaultCriticalOperation("kki") + .withDefaultResourceRequest("vmtumxpym"), + new ResourceGuardOperationDetail().withVaultCriticalOperation("fua") + .withDefaultResourceRequest("oqvqpilr"))) + .withLastUpdatedTime("ncanlduwzor") + .withDescription("bm")) + .withTags(mapOf("tuubwyvpjb", "klxymxkqvfqepdxc")) + .withLocation("cpj") + .withEtag("uqgixex"); model = BinaryData.fromObject(model).toObject(ResourceGuardProxyBaseResourceInner.class); - Assertions.assertEquals("puby", model.properties().resourceGuardResourceId()); - Assertions.assertEquals("k", + Assertions.assertEquals("d", model.properties().resourceGuardResourceId()); + Assertions.assertEquals("gsecnadbuwqrgx", model.properties().resourceGuardOperationDetails().get(0).vaultCriticalOperation()); - Assertions.assertEquals("eebgvopemtuoqu", + Assertions.assertEquals("lmqiynezoel", model.properties().resourceGuardOperationDetails().get(0).defaultResourceRequest()); - Assertions.assertEquals("lxdbfvabmvms", model.properties().lastUpdatedTime()); - Assertions.assertEquals("aevwjcnkot", model.properties().description()); - Assertions.assertEquals("uhvajmailfemjjza", model.tags().get("zwjiqullq")); - Assertions.assertEquals("ynnfmuiii", model.location()); - Assertions.assertEquals("pfoh", model.etag()); + Assertions.assertEquals("ncanlduwzor", model.properties().lastUpdatedTime()); + Assertions.assertEquals("bm", model.properties().description()); + Assertions.assertEquals("klxymxkqvfqepdxc", model.tags().get("tuubwyvpjb")); + Assertions.assertEquals("cpj", model.location()); + Assertions.assertEquals("uqgixex", model.etag()); } // Use "Map.of" if available diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyBaseResourceListTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyBaseResourceListTests.java index 520a9c950a744..52f3d6ebcd7f5 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyBaseResourceListTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyBaseResourceListTests.java @@ -12,18 +12,18 @@ public final class ResourceGuardProxyBaseResourceListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ResourceGuardProxyBaseResourceList model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"resourceGuardResourceId\":\"s\",\"resourceGuardOperationDetails\":[{\"vaultCriticalOperation\":\"wkpphefsb\",\"defaultResourceRequest\":\"lbzxomeikjc\"}],\"lastUpdatedTime\":\"zacn\",\"description\":\"pfsuqtaaz\"},\"tags\":{\"hdjzqdcadwvpsoz\":\"xyxoyfpuqqiqezx\",\"pnx\":\"iihjriybmrzo\"},\"location\":\"v\",\"eTag\":\"jkgv\",\"id\":\"mxaursqftibtyi\",\"name\":\"uyvpirf\",\"type\":\"jpnqnoowsbeden\"},{\"properties\":{\"resourceGuardResourceId\":\"xkxbhxvu\",\"resourceGuardOperationDetails\":[{\"vaultCriticalOperation\":\"gmnhjevd\",\"defaultResourceRequest\":\"nfa\"}],\"lastUpdatedTime\":\"vkskmqozzk\",\"description\":\"yhjrliizji\"},\"tags\":{\"absol\":\"fhefk\",\"qxsjxte\":\"onqqlmgn\",\"ocarkuzlbcnndt\":\"exhvuqbozoolz\"},\"location\":\"xawqy\",\"eTag\":\"lhdyzmyckzex\",\"id\":\"akckywym\",\"name\":\"gaabjkdtf\",\"type\":\"hfaogzv\"},{\"properties\":{\"resourceGuardResourceId\":\"wrsiwdyjqurykc\",\"resourceGuardOperationDetails\":[{\"vaultCriticalOperation\":\"eek\",\"defaultResourceRequest\":\"uehogdd\"},{\"vaultCriticalOperation\":\"bcbgydlqidywmhm\",\"defaultResourceRequest\":\"yrilkfb\"},{\"vaultCriticalOperation\":\"qqxvztpbn\",\"defaultResourceRequest\":\"qtxjtomalswbnfdd\"}],\"lastUpdatedTime\":\"ldwq\",\"description\":\"sfzygleexahv\"},\"tags\":{\"sjjzyvoaqajuveh\":\"hsbrcary\",\"be\":\"ptdmkrrbhmpful\",\"ununm\":\"gybpmfb\"},\"location\":\"krvfyifkdschl\",\"eTag\":\"fict\",\"id\":\"jjwgcwnp\",\"name\":\"bkgfyrtogmhmjpjs\",\"type\":\"dfpdqwtygevg\"}],\"nextLink\":\"sehar\"}") + "{\"value\":[{\"properties\":{\"resourceGuardResourceId\":\"vczevjn\",\"resourceGuardOperationDetails\":[{\"vaultCriticalOperation\":\"gfyvrtpqpe\",\"defaultResourceRequest\":\"z\"},{\"vaultCriticalOperation\":\"krepdqhqyhwqwem\",\"defaultResourceRequest\":\"qabckmzeoxin\"},{\"vaultCriticalOperation\":\"re\",\"defaultResourceRequest\":\"twhlpuzjpce\"}],\"lastUpdatedTime\":\"nzangprbfaxy\",\"description\":\"lbciphmsexro\"},\"tags\":{\"nfee\":\"dktxfv\",\"bgnixxoww\":\"gpkrie\"},\"location\":\"yfwnw\",\"eTag\":\"wxeiicrmpepk\",\"id\":\"maxxijvskwsdgkjg\",\"name\":\"acwras\",\"type\":\"kwefc\"},{\"properties\":{\"resourceGuardResourceId\":\"inwoqartwyxq\",\"resourceGuardOperationDetails\":[{\"vaultCriticalOperation\":\"dvatdavuqm\",\"defaultResourceRequest\":\"ymsfobjlqu\"}],\"lastUpdatedTime\":\"ezcjumvpsi\",\"description\":\"oyoiglkmiqw\"},\"tags\":{\"fqpspkladyd\":\"aclib\",\"be\":\"nhautwukexzgpmnm\",\"fpcvstclgqrvwerf\":\"dqilwgdfpf\",\"hci\":\"xbsmtbljje\"},\"location\":\"wdv\",\"eTag\":\"brekqhsqhtf\",\"id\":\"pqbye\",\"name\":\"uwyqwdq\",\"type\":\"gmghginztxlujkhn\"}],\"nextLink\":\"mrnkfmkhcqtwml\"}") .toObject(ResourceGuardProxyBaseResourceList.class); - Assertions.assertEquals("sehar", model.nextLink()); - Assertions.assertEquals("s", model.value().get(0).properties().resourceGuardResourceId()); - Assertions.assertEquals("wkpphefsb", + Assertions.assertEquals("mrnkfmkhcqtwml", model.nextLink()); + Assertions.assertEquals("vczevjn", model.value().get(0).properties().resourceGuardResourceId()); + Assertions.assertEquals("gfyvrtpqpe", model.value().get(0).properties().resourceGuardOperationDetails().get(0).vaultCriticalOperation()); - Assertions.assertEquals("lbzxomeikjc", + Assertions.assertEquals("z", model.value().get(0).properties().resourceGuardOperationDetails().get(0).defaultResourceRequest()); - Assertions.assertEquals("zacn", model.value().get(0).properties().lastUpdatedTime()); - Assertions.assertEquals("pfsuqtaaz", model.value().get(0).properties().description()); - Assertions.assertEquals("xyxoyfpuqqiqezx", model.value().get(0).tags().get("hdjzqdcadwvpsoz")); - Assertions.assertEquals("v", model.value().get(0).location()); - Assertions.assertEquals("jkgv", model.value().get(0).etag()); + Assertions.assertEquals("nzangprbfaxy", model.value().get(0).properties().lastUpdatedTime()); + Assertions.assertEquals("lbciphmsexro", model.value().get(0).properties().description()); + Assertions.assertEquals("dktxfv", model.value().get(0).tags().get("nfee")); + Assertions.assertEquals("yfwnw", model.value().get(0).location()); + Assertions.assertEquals("wxeiicrmpepk", model.value().get(0).etag()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyBaseTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyBaseTests.java index fc376dd609cd8..64d171a41638a 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyBaseTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyBaseTests.java @@ -14,28 +14,30 @@ public final class ResourceGuardProxyBaseTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ResourceGuardProxyBase model = BinaryData.fromString( - "{\"resourceGuardResourceId\":\"juyrsrziuctixg\",\"resourceGuardOperationDetails\":[{\"vaultCriticalOperation\":\"ifrevk\",\"defaultResourceRequest\":\"pezkis\"}],\"lastUpdatedTime\":\"jm\",\"description\":\"hsyparybjuf\"}") + "{\"resourceGuardResourceId\":\"biiftksdwgdnk\",\"resourceGuardOperationDetails\":[{\"vaultCriticalOperation\":\"wdhcebuvczldb\",\"defaultResourceRequest\":\"zoutb\"},{\"vaultCriticalOperation\":\"qgz\",\"defaultResourceRequest\":\"ajclyzgsnorbjg\"}],\"lastUpdatedTime\":\"zjotvmrxkhlo\",\"description\":\"vjb\"}") .toObject(ResourceGuardProxyBase.class); - Assertions.assertEquals("juyrsrziuctixg", model.resourceGuardResourceId()); - Assertions.assertEquals("ifrevk", model.resourceGuardOperationDetails().get(0).vaultCriticalOperation()); - Assertions.assertEquals("pezkis", model.resourceGuardOperationDetails().get(0).defaultResourceRequest()); - Assertions.assertEquals("jm", model.lastUpdatedTime()); - Assertions.assertEquals("hsyparybjuf", model.description()); + Assertions.assertEquals("biiftksdwgdnk", model.resourceGuardResourceId()); + Assertions.assertEquals("wdhcebuvczldb", model.resourceGuardOperationDetails().get(0).vaultCriticalOperation()); + Assertions.assertEquals("zoutb", model.resourceGuardOperationDetails().get(0).defaultResourceRequest()); + Assertions.assertEquals("zjotvmrxkhlo", model.lastUpdatedTime()); + Assertions.assertEquals("vjb", model.description()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ResourceGuardProxyBase model = new ResourceGuardProxyBase().withResourceGuardResourceId("juyrsrziuctixg") - .withResourceGuardOperationDetails( - Arrays.asList(new ResourceGuardOperationDetail().withVaultCriticalOperation("ifrevk") - .withDefaultResourceRequest("pezkis"))) - .withLastUpdatedTime("jm") - .withDescription("hsyparybjuf"); + ResourceGuardProxyBase model = new ResourceGuardProxyBase().withResourceGuardResourceId("biiftksdwgdnk") + .withResourceGuardOperationDetails(Arrays.asList( + new ResourceGuardOperationDetail().withVaultCriticalOperation("wdhcebuvczldb") + .withDefaultResourceRequest("zoutb"), + new ResourceGuardOperationDetail().withVaultCriticalOperation("qgz") + .withDefaultResourceRequest("ajclyzgsnorbjg"))) + .withLastUpdatedTime("zjotvmrxkhlo") + .withDescription("vjb"); model = BinaryData.fromObject(model).toObject(ResourceGuardProxyBase.class); - Assertions.assertEquals("juyrsrziuctixg", model.resourceGuardResourceId()); - Assertions.assertEquals("ifrevk", model.resourceGuardOperationDetails().get(0).vaultCriticalOperation()); - Assertions.assertEquals("pezkis", model.resourceGuardOperationDetails().get(0).defaultResourceRequest()); - Assertions.assertEquals("jm", model.lastUpdatedTime()); - Assertions.assertEquals("hsyparybjuf", model.description()); + Assertions.assertEquals("biiftksdwgdnk", model.resourceGuardResourceId()); + Assertions.assertEquals("wdhcebuvczldb", model.resourceGuardOperationDetails().get(0).vaultCriticalOperation()); + Assertions.assertEquals("zoutb", model.resourceGuardOperationDetails().get(0).defaultResourceRequest()); + Assertions.assertEquals("zjotvmrxkhlo", model.lastUpdatedTime()); + Assertions.assertEquals("vjb", model.description()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationsDeleteWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationsDeleteWithResponseMockTests.java index 49a0b38f5e77b..ac5c39eecd0b7 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationsDeleteWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationsDeleteWithResponseMockTests.java @@ -28,7 +28,7 @@ public void testDeleteWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.resourceGuardProxyOperations() - .deleteWithResponse("unerke", "uxzshxz", "zbzuzudlev", com.azure.core.util.Context.NONE); + .deleteWithResponse("detsz", "canzb", "ekwuyckyvn", com.azure.core.util.Context.NONE); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationsGetWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationsGetWithResponseMockTests.java index f32da06d8c662..036285a95acdc 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationsGetWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationsGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class ResourceGuardProxyOperationsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"resourceGuardResourceId\":\"jajodmkrr\",\"resourceGuardOperationDetails\":[{\"vaultCriticalOperation\":\"qvqokql\",\"defaultResourceRequest\":\"qg\"},{\"vaultCriticalOperation\":\"abwlyvx\",\"defaultResourceRequest\":\"pqvctsfaeuhwwsk\"}],\"lastUpdatedTime\":\"tvzuzhasup\",\"description\":\"p\"},\"tags\":{\"gongr\":\"gzvzqazvbkarkp\",\"eq\":\"atsyiysjqhenig\",\"ysc\":\"gubabyjde\"},\"location\":\"ydzjemexm\",\"eTag\":\"kvmuwrxlniwmcp\",\"id\":\"rdlhvdvmiphbe\",\"name\":\"eqjzm\",\"type\":\"kdclacroczf\"}"; + = "{\"properties\":{\"resourceGuardResourceId\":\"paslavxjfiuofpi\",\"resourceGuardOperationDetails\":[{\"vaultCriticalOperation\":\"lvs\",\"defaultResourceRequest\":\"ywjopac\"},{\"vaultCriticalOperation\":\"hydv\",\"defaultResourceRequest\":\"mfngpmillxgjsci\"},{\"vaultCriticalOperation\":\"gsoriobij\",\"defaultResourceRequest\":\"ydyeuy\"}],\"lastUpdatedTime\":\"bok\",\"description\":\"r\"},\"tags\":{\"io\":\"b\",\"ctqkmvjanx\":\"dweoftnorwaigsi\"},\"location\":\"fffhtjnwos\",\"eTag\":\"fjxtvlxxzqfc\",\"id\":\"riomxeezwyhj\",\"name\":\"bjiqegmxdbsoh\",\"type\":\"whpyvdk\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,18 +31,18 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ResourceGuardProxyBaseResource response = manager.resourceGuardProxyOperations() - .getWithResponse("qigdydkghpcvr", "qirvtk", "yhhmvfxl", com.azure.core.util.Context.NONE) + .getWithResponse("cvvuj", "xayg", "xrkgjn", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("jajodmkrr", response.properties().resourceGuardResourceId()); - Assertions.assertEquals("qvqokql", + Assertions.assertEquals("paslavxjfiuofpi", response.properties().resourceGuardResourceId()); + Assertions.assertEquals("lvs", response.properties().resourceGuardOperationDetails().get(0).vaultCriticalOperation()); - Assertions.assertEquals("qg", + Assertions.assertEquals("ywjopac", response.properties().resourceGuardOperationDetails().get(0).defaultResourceRequest()); - Assertions.assertEquals("tvzuzhasup", response.properties().lastUpdatedTime()); - Assertions.assertEquals("p", response.properties().description()); - Assertions.assertEquals("gzvzqazvbkarkp", response.tags().get("gongr")); - Assertions.assertEquals("ydzjemexm", response.location()); - Assertions.assertEquals("kvmuwrxlniwmcp", response.etag()); + Assertions.assertEquals("bok", response.properties().lastUpdatedTime()); + Assertions.assertEquals("r", response.properties().description()); + Assertions.assertEquals("b", response.tags().get("io")); + Assertions.assertEquals("fffhtjnwos", response.location()); + Assertions.assertEquals("fjxtvlxxzqfc", response.etag()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationsListMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationsListMockTests.java index 8c66825937094..48692d3284938 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationsListMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationsListMockTests.java @@ -22,7 +22,7 @@ public final class ResourceGuardProxyOperationsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"resourceGuardResourceId\":\"damisvpztdi\",\"resourceGuardOperationDetails\":[{\"vaultCriticalOperation\":\"xkqejtpjfojiunr\",\"defaultResourceRequest\":\"hxuk\"},{\"vaultCriticalOperation\":\"ykd\",\"defaultResourceRequest\":\"iboancdrcoanvx\"},{\"vaultCriticalOperation\":\"dxonckbn\",\"defaultResourceRequest\":\"lfxlupibaqzizxzp\"},{\"vaultCriticalOperation\":\"eghlw\",\"defaultResourceRequest\":\"ogvgfklqiyn\"}],\"lastUpdatedTime\":\"eqelsb\",\"description\":\"dstrkzxsgtz\"},\"tags\":{\"smovpi\":\"lr\",\"dnox\":\"y\",\"qaqotnn\":\"xn\"},\"location\":\"olousdvrg\",\"eTag\":\"qmawzjdrpizfu\",\"id\":\"yctsdbtqgkuj\",\"name\":\"sooxrqw\",\"type\":\"eurbtigapdyarik\"}]}"; + = "{\"value\":[{\"properties\":{\"resourceGuardResourceId\":\"kbkkteoze\",\"resourceGuardOperationDetails\":[{\"vaultCriticalOperation\":\"korvvm\",\"defaultResourceRequest\":\"cof\"}],\"lastUpdatedTime\":\"h\",\"description\":\"snosnqliwkmzojf\"},\"tags\":{\"bjbhrpgiqsttc\":\"alhtgmknaz\",\"jiwifhbksldttoh\":\"crcmmaixp\"},\"location\":\"lna\",\"eTag\":\"tgs\",\"id\":\"ikvllrhtpmgl\",\"name\":\"k\",\"type\":\"ikmtrawrqkza\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,17 +32,17 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.resourceGuardProxyOperations().list("krdemdi", "ackzidgzw", com.azure.core.util.Context.NONE); + = manager.resourceGuardProxyOperations().list("gqwlxrhg", "vhvtq", com.azure.core.util.Context.NONE); - Assertions.assertEquals("damisvpztdi", response.iterator().next().properties().resourceGuardResourceId()); - Assertions.assertEquals("xkqejtpjfojiunr", + Assertions.assertEquals("kbkkteoze", response.iterator().next().properties().resourceGuardResourceId()); + Assertions.assertEquals("korvvm", response.iterator().next().properties().resourceGuardOperationDetails().get(0).vaultCriticalOperation()); - Assertions.assertEquals("hxuk", + Assertions.assertEquals("cof", response.iterator().next().properties().resourceGuardOperationDetails().get(0).defaultResourceRequest()); - Assertions.assertEquals("eqelsb", response.iterator().next().properties().lastUpdatedTime()); - Assertions.assertEquals("dstrkzxsgtz", response.iterator().next().properties().description()); - Assertions.assertEquals("lr", response.iterator().next().tags().get("smovpi")); - Assertions.assertEquals("olousdvrg", response.iterator().next().location()); - Assertions.assertEquals("qmawzjdrpizfu", response.iterator().next().etag()); + Assertions.assertEquals("h", response.iterator().next().properties().lastUpdatedTime()); + Assertions.assertEquals("snosnqliwkmzojf", response.iterator().next().properties().description()); + Assertions.assertEquals("alhtgmknaz", response.iterator().next().tags().get("bjbhrpgiqsttc")); + Assertions.assertEquals("lna", response.iterator().next().location()); + Assertions.assertEquals("tgs", response.iterator().next().etag()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationsPutWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationsPutWithResponseMockTests.java index 454de67cca4c4..3de529fadd0db 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationsPutWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationsPutWithResponseMockTests.java @@ -26,7 +26,7 @@ public final class ResourceGuardProxyOperationsPutWithResponseMockTests { @Test public void testPutWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"resourceGuardResourceId\":\"jopnouhbqezk\",\"resourceGuardOperationDetails\":[{\"vaultCriticalOperation\":\"lu\",\"defaultResourceRequest\":\"igfcvcewbwqhd\"},{\"vaultCriticalOperation\":\"jsatm\",\"defaultResourceRequest\":\"c\"}],\"lastUpdatedTime\":\"zdfsqxhyqmr\",\"description\":\"parn\"},\"tags\":{\"bwtdr\":\"rsz\",\"acfculzjrmhpf\":\"wgzwllxzlhhfi\",\"xsoxi\":\"wvyldqpzf\",\"xytqq\":\"unjlzkdrocq\"},\"location\":\"miwdwisvnme\",\"eTag\":\"ajamc\",\"id\":\"yh\",\"name\":\"tpzcr\",\"type\":\"yklleynqanhkiggl\"}"; + = "{\"properties\":{\"resourceGuardResourceId\":\"ymgqbgcx\",\"resourceGuardOperationDetails\":[{\"vaultCriticalOperation\":\"gzxlermkmerghski\",\"defaultResourceRequest\":\"npupkcbkfuk\"},{\"vaultCriticalOperation\":\"jqnvtsdyd\",\"defaultResourceRequest\":\"kpafyaloowwziz\"}],\"lastUpdatedTime\":\"yuf\",\"description\":\"zstifgufyj\"},\"tags\":{\"djokgwesym\":\"qiyv\",\"qpfzlpejtznxlue\":\"qh\"},\"location\":\"jqbbgsimwejlw\",\"eTag\":\"bpjzobdwbcpraswk\",\"id\":\"ydtnaczkfwfatgaw\",\"name\":\"hnskivdwgtqcume\",\"type\":\"saaqgoq\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -36,33 +36,32 @@ public void testPutWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ResourceGuardProxyBaseResource response = manager.resourceGuardProxyOperations() - .define("jmeqkvy") - .withExistingVault("ejdpdfhtwm", "kfqbriqulwwt") - .withRegion("zwhsxyrujmt") - .withTags(mapOf("izexroqsqj", "samonat", "splwsttxs", "hrmt", "ceov", "gxfqpan")) - .withProperties(new ResourceGuardProxyBase().withResourceGuardResourceId("okpoyuoh") + .define("lweeprne") + .withExistingVault("bun", "paklw") + .withRegion("gejcvjkjyczc") + .withTags( + mapOf("weiib", "mcqidkltvdhqnufb", "vfnybydh", "toj", "rhjkehw", "ihaouwudhua", "qircamqprlob", "umo")) + .withProperties(new ResourceGuardProxyBase().withResourceGuardResourceId("l") .withResourceGuardOperationDetails(Arrays.asList( - new ResourceGuardOperationDetail().withVaultCriticalOperation("na") - .withDefaultResourceRequest("phmpoejnglpwsada"), - new ResourceGuardOperationDetail().withVaultCriticalOperation("sumxpezcoioyj") - .withDefaultResourceRequest("fqzwqdnxkeed"), - new ResourceGuardOperationDetail().withVaultCriticalOperation("wmywxfqzkvemy") - .withDefaultResourceRequest("pczaqpqif"))) - .withLastUpdatedTime("m") - .withDescription("rwtx")) - .withEtag("eslikyohzixyqhf") + new ResourceGuardOperationDetail().withVaultCriticalOperation("zfjsxscbd") + .withDefaultResourceRequest("apgrcqe"), + new ResourceGuardOperationDetail().withVaultCriticalOperation("vrdjomln") + .withDefaultResourceRequest("bvvdlsflxkqesd"))) + .withLastUpdatedTime("dsbgzan") + .withDescription("inm")) + .withEtag("age") .create(); - Assertions.assertEquals("jopnouhbqezk", response.properties().resourceGuardResourceId()); - Assertions.assertEquals("lu", + Assertions.assertEquals("ymgqbgcx", response.properties().resourceGuardResourceId()); + Assertions.assertEquals("gzxlermkmerghski", response.properties().resourceGuardOperationDetails().get(0).vaultCriticalOperation()); - Assertions.assertEquals("igfcvcewbwqhd", + Assertions.assertEquals("npupkcbkfuk", response.properties().resourceGuardOperationDetails().get(0).defaultResourceRequest()); - Assertions.assertEquals("zdfsqxhyqmr", response.properties().lastUpdatedTime()); - Assertions.assertEquals("parn", response.properties().description()); - Assertions.assertEquals("rsz", response.tags().get("bwtdr")); - Assertions.assertEquals("miwdwisvnme", response.location()); - Assertions.assertEquals("ajamc", response.etag()); + Assertions.assertEquals("yuf", response.properties().lastUpdatedTime()); + Assertions.assertEquals("zstifgufyj", response.properties().description()); + Assertions.assertEquals("qiyv", response.tags().get("djokgwesym")); + Assertions.assertEquals("jqbbgsimwejlw", response.location()); + Assertions.assertEquals("bpjzobdwbcpraswk", response.etag()); } // Use "Map.of" if available diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationsUnlockDeleteWithResponseMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationsUnlockDeleteWithResponseMockTests.java index 389985d6fa5b5..dbc3ff4a7993b 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationsUnlockDeleteWithResponseMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceGuardProxyOperationsUnlockDeleteWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class ResourceGuardProxyOperationsUnlockDeleteWithResponseMockTests { @Test public void testUnlockDeleteWithResponse() throws Exception { - String responseStr = "{\"unlockDeleteExpiryTime\":\"bvb\"}"; + String responseStr = "{\"unlockDeleteExpiryTime\":\"twujjzgx\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,13 +32,13 @@ public void testUnlockDeleteWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); UnlockDeleteResponse response = manager.resourceGuardProxyOperations() - .unlockDeleteWithResponse("skejcgwfsgq", "styec", "pyuijp", + .unlockDeleteWithResponse("nsm", "ffiwjbctvbp", "ujqjtotdxp", new UnlockDeleteRequest() - .withResourceGuardOperationRequests(Arrays.asList("avsjcfmazpzdq", "uzvcmcok", "izekuvfrj")) - .withResourceToBeDeleted("caonzv"), + .withResourceGuardOperationRequests(Arrays.asList("slhwuusieckty", "h", "uxidhhxomilddxj")) + .withResourceToBeDeleted("ugxwjwilmqrslaat"), com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("bvb", response.unlockDeleteExpiryTime()); + Assertions.assertEquals("twujjzgx", response.unlockDeleteExpiryTime()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceListTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceListTests.java index 32c75080123be..5f6f407827fa8 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceListTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceListTests.java @@ -11,7 +11,7 @@ public final class ResourceListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ResourceList model = BinaryData.fromString("{\"nextLink\":\"zuaejxd\"}").toObject(ResourceList.class); - Assertions.assertEquals("zuaejxd", model.nextLink()); + ResourceList model = BinaryData.fromString("{\"nextLink\":\"emwabnet\"}").toObject(ResourceList.class); + Assertions.assertEquals("emwabnet", model.nextLink()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceProvidersBmsPrepareDataMoveMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceProvidersBmsPrepareDataMoveMockTests.java index 329f684888528..5dbf7d4ec78f8 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceProvidersBmsPrepareDataMoveMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceProvidersBmsPrepareDataMoveMockTests.java @@ -31,11 +31,11 @@ public void testBmsPrepareDataMove() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.resourceProviders() - .bmsPrepareDataMove("ifvqnr", "tmbpjp", - new PrepareDataMoveRequest().withTargetResourceId("nvwjhrsidqpxl") - .withTargetRegion("tpakf") - .withDataMoveLevel(DataMoveLevel.VAULT) - .withSourceContainerArmIds(Arrays.asList("twmykyut")) + .bmsPrepareDataMove("hjnqt", "eahjedv", + new PrepareDataMoveRequest().withTargetResourceId("agpokddxe") + .withTargetRegion("hhkvguavtptbk") + .withDataMoveLevel(DataMoveLevel.CONTAINER) + .withSourceContainerArmIds(Arrays.asList("yn", "pgb", "offbkkwvdxaexqok")) .withIgnoreMoved(false), com.azure.core.util.Context.NONE); diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceProvidersBmsTriggerDataMoveMockTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceProvidersBmsTriggerDataMoveMockTests.java index b615d7fa68f50..d81c420d5c8bf 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceProvidersBmsTriggerDataMoveMockTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ResourceProvidersBmsTriggerDataMoveMockTests.java @@ -31,13 +31,13 @@ public void testBmsTriggerDataMove() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); manager.resourceProviders() - .bmsTriggerDataMove("dwmf", "hpycvjqdvdwkq", - new TriggerDataMoveRequest().withSourceResourceId("ldrlefgnaavua") - .withSourceRegion("n") - .withDataMoveLevel(DataMoveLevel.CONTAINER) - .withCorrelationId("taoutnpdct") - .withSourceContainerArmIds(Arrays.asList("pfe", "y", "hduyeuyldph", "tybkcgs")) - .withPauseGC(false), + .bmsTriggerDataMove("ljialzbn", "brqlpbcjtrpz", + new TriggerDataMoveRequest().withSourceResourceId("yudivbxnhsqeaeo") + .withSourceRegion("qelwgdhuruzytza") + .withDataMoveLevel(DataMoveLevel.INVALID) + .withCorrelationId("gatmoljiy") + .withSourceContainerArmIds(Arrays.asList("inmzvfkne")) + .withPauseGC(true), com.azure.core.util.Context.NONE); } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RestoreFileSpecsTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RestoreFileSpecsTests.java index bd2193b8edded..71966c089fc4d 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RestoreFileSpecsTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RestoreFileSpecsTests.java @@ -12,20 +12,21 @@ public final class RestoreFileSpecsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RestoreFileSpecs model = BinaryData - .fromString("{\"path\":\"hocxvdfffwafqrou\",\"fileSpecType\":\"spave\",\"targetFolderPath\":\"r\"}") + .fromString("{\"path\":\"bnfxofvc\",\"fileSpecType\":\"gdirazf\",\"targetFolderPath\":\"ejwabmdujtmvco\"}") .toObject(RestoreFileSpecs.class); - Assertions.assertEquals("hocxvdfffwafqrou", model.path()); - Assertions.assertEquals("spave", model.fileSpecType()); - Assertions.assertEquals("r", model.targetFolderPath()); + Assertions.assertEquals("bnfxofvc", model.path()); + Assertions.assertEquals("gdirazf", model.fileSpecType()); + Assertions.assertEquals("ejwabmdujtmvco", model.targetFolderPath()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RestoreFileSpecs model - = new RestoreFileSpecs().withPath("hocxvdfffwafqrou").withFileSpecType("spave").withTargetFolderPath("r"); + RestoreFileSpecs model = new RestoreFileSpecs().withPath("bnfxofvc") + .withFileSpecType("gdirazf") + .withTargetFolderPath("ejwabmdujtmvco"); model = BinaryData.fromObject(model).toObject(RestoreFileSpecs.class); - Assertions.assertEquals("hocxvdfffwafqrou", model.path()); - Assertions.assertEquals("spave", model.fileSpecType()); - Assertions.assertEquals("r", model.targetFolderPath()); + Assertions.assertEquals("bnfxofvc", model.path()); + Assertions.assertEquals("gdirazf", model.fileSpecType()); + Assertions.assertEquals("ejwabmdujtmvco", model.targetFolderPath()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RestoreRequestResourceTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RestoreRequestResourceTests.java index da03b626b24de..034107acfc666 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RestoreRequestResourceTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RestoreRequestResourceTests.java @@ -16,26 +16,26 @@ public final class RestoreRequestResourceTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RestoreRequestResource model = BinaryData.fromString( - "{\"location\":\"iglaecx\",\"tags\":{\"mlqtmldgxob\":\"icokpv\"},\"eTag\":\"rclnpkc\",\"properties\":{\"objectType\":\"RestoreRequest\",\"resourceGuardOperationRequests\":[\"riykhyawfvjlbox\",\"vkjlmxhom\"]},\"id\":\"nhdwdigumbnra\",\"name\":\"uzzptjazysdz\",\"type\":\"ezwwv\"}") + "{\"location\":\"szonwpngajinn\",\"tags\":{\"coxovn\":\"awrtmjfjmyccxlz\",\"nrd\":\"khenlus\",\"tjvidt\":\"jxtxrdc\"},\"eTag\":\"epu\",\"properties\":{\"objectType\":\"RestoreRequest\",\"resourceGuardOperationRequests\":[\"jtcvuwkasizies\",\"uughtuqfecjxeyg\"]},\"id\":\"hxuicbuewmrs\",\"name\":\"njlx\",\"type\":\"zrhwp\"}") .toObject(RestoreRequestResource.class); - Assertions.assertEquals("iglaecx", model.location()); - Assertions.assertEquals("icokpv", model.tags().get("mlqtmldgxob")); - Assertions.assertEquals("rclnpkc", model.eTag()); - Assertions.assertEquals("riykhyawfvjlbox", model.properties().resourceGuardOperationRequests().get(0)); + Assertions.assertEquals("szonwpngajinn", model.location()); + Assertions.assertEquals("awrtmjfjmyccxlz", model.tags().get("coxovn")); + Assertions.assertEquals("epu", model.eTag()); + Assertions.assertEquals("jtcvuwkasizies", model.properties().resourceGuardOperationRequests().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RestoreRequestResource model = new RestoreRequestResource().withLocation("iglaecx") - .withTags(mapOf("mlqtmldgxob", "icokpv")) - .withETag("rclnpkc") - .withProperties( - new RestoreRequest().withResourceGuardOperationRequests(Arrays.asList("riykhyawfvjlbox", "vkjlmxhom"))); + RestoreRequestResource model = new RestoreRequestResource().withLocation("szonwpngajinn") + .withTags(mapOf("coxovn", "awrtmjfjmyccxlz", "nrd", "khenlus", "tjvidt", "jxtxrdc")) + .withETag("epu") + .withProperties(new RestoreRequest() + .withResourceGuardOperationRequests(Arrays.asList("jtcvuwkasizies", "uughtuqfecjxeyg"))); model = BinaryData.fromObject(model).toObject(RestoreRequestResource.class); - Assertions.assertEquals("iglaecx", model.location()); - Assertions.assertEquals("icokpv", model.tags().get("mlqtmldgxob")); - Assertions.assertEquals("rclnpkc", model.eTag()); - Assertions.assertEquals("riykhyawfvjlbox", model.properties().resourceGuardOperationRequests().get(0)); + Assertions.assertEquals("szonwpngajinn", model.location()); + Assertions.assertEquals("awrtmjfjmyccxlz", model.tags().get("coxovn")); + Assertions.assertEquals("epu", model.eTag()); + Assertions.assertEquals("jtcvuwkasizies", model.properties().resourceGuardOperationRequests().get(0)); } // Use "Map.of" if available diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RestoreRequestTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RestoreRequestTests.java index 97927c4b4be5e..a14937030f69b 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RestoreRequestTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RestoreRequestTests.java @@ -13,16 +13,16 @@ public final class RestoreRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { RestoreRequest model = BinaryData.fromString( - "{\"objectType\":\"RestoreRequest\",\"resourceGuardOperationRequests\":[\"yuvvfonkp\",\"hqyikvy\",\"auy\"]}") + "{\"objectType\":\"RestoreRequest\",\"resourceGuardOperationRequests\":[\"jbaqehgpdoh\",\"jqatucoigebxn\",\"nwfepbnwg\",\"m\"]}") .toObject(RestoreRequest.class); - Assertions.assertEquals("yuvvfonkp", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals("jbaqehgpdoh", model.resourceGuardOperationRequests().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - RestoreRequest model - = new RestoreRequest().withResourceGuardOperationRequests(Arrays.asList("yuvvfonkp", "hqyikvy", "auy")); + RestoreRequest model = new RestoreRequest() + .withResourceGuardOperationRequests(Arrays.asList("jbaqehgpdoh", "jqatucoigebxn", "nwfepbnwg", "m")); model = BinaryData.fromObject(model).toObject(RestoreRequest.class); - Assertions.assertEquals("yuvvfonkp", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals("jbaqehgpdoh", model.resourceGuardOperationRequests().get(0)); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RetentionDurationTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RetentionDurationTests.java index 9adb4bd3c4c5e..0d0ec40aa6b4e 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RetentionDurationTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/RetentionDurationTests.java @@ -12,18 +12,18 @@ public final class RetentionDurationTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - RetentionDuration model = BinaryData.fromString("{\"count\":391317433,\"durationType\":\"Days\"}") + RetentionDuration model = BinaryData.fromString("{\"count\":1097433567,\"durationType\":\"Years\"}") .toObject(RetentionDuration.class); - Assertions.assertEquals(391317433, model.count()); - Assertions.assertEquals(RetentionDurationType.DAYS, model.durationType()); + Assertions.assertEquals(1097433567, model.count()); + Assertions.assertEquals(RetentionDurationType.YEARS, model.durationType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { RetentionDuration model - = new RetentionDuration().withCount(391317433).withDurationType(RetentionDurationType.DAYS); + = new RetentionDuration().withCount(1097433567).withDurationType(RetentionDurationType.YEARS); model = BinaryData.fromObject(model).toObject(RetentionDuration.class); - Assertions.assertEquals(391317433, model.count()); - Assertions.assertEquals(RetentionDurationType.DAYS, model.durationType()); + Assertions.assertEquals(1097433567, model.count()); + Assertions.assertEquals(RetentionDurationType.YEARS, model.durationType()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SecuredVMDetailsTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SecuredVMDetailsTests.java index 93db5495e9197..07c68cf09ac92 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SecuredVMDetailsTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SecuredVMDetailsTests.java @@ -15,30 +15,30 @@ public final class SecuredVMDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SecuredVMDetails model = BinaryData.fromString( - "{\"securedVMOsDiskEncryptionSetId\":\"nh\",\"dataDiskEncryptionSettings\":{\"perDiskEncryptionSetIds\":[{\"lun\":1417564823,\"diskEncryptionSetId\":\"zoibgsxg\"}],\"dataDiskEncryptionSetId\":\"fyq\",\"dataDiskEncryptionIdentity\":\"mpqoxw\"}}") + "{\"securedVMOsDiskEncryptionSetId\":\"ryrando\",\"dataDiskEncryptionSettings\":{\"perDiskEncryptionSetIds\":[{\"lun\":45721178,\"diskEncryptionSetId\":\"ormkfqlwxldyk\"}],\"dataDiskEncryptionSetId\":\"sy\",\"dataDiskEncryptionIdentity\":\"olnjpnnbmjksibj\"}}") .toObject(SecuredVMDetails.class); - Assertions.assertEquals("nh", model.securedVmosDiskEncryptionSetId()); - Assertions.assertEquals(1417564823, model.dataDiskEncryptionSettings().perDiskEncryptionSetIds().get(0).lun()); - Assertions.assertEquals("zoibgsxg", + Assertions.assertEquals("ryrando", model.securedVmosDiskEncryptionSetId()); + Assertions.assertEquals(45721178, model.dataDiskEncryptionSettings().perDiskEncryptionSetIds().get(0).lun()); + Assertions.assertEquals("ormkfqlwxldyk", model.dataDiskEncryptionSettings().perDiskEncryptionSetIds().get(0).diskEncryptionSetId()); - Assertions.assertEquals("fyq", model.dataDiskEncryptionSettings().dataDiskEncryptionSetId()); - Assertions.assertEquals("mpqoxw", model.dataDiskEncryptionSettings().dataDiskEncryptionIdentity()); + Assertions.assertEquals("sy", model.dataDiskEncryptionSettings().dataDiskEncryptionSetId()); + Assertions.assertEquals("olnjpnnbmjksibj", model.dataDiskEncryptionSettings().dataDiskEncryptionIdentity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SecuredVMDetails model = new SecuredVMDetails().withSecuredVmosDiskEncryptionSetId("nh") + SecuredVMDetails model = new SecuredVMDetails().withSecuredVmosDiskEncryptionSetId("ryrando") .withDataDiskEncryptionSettings(new DataDiskEncryptionSettings() - .withPerDiskEncryptionSetIds( - Arrays.asList(new PerDiskEncryptionSetId().withLun(1417564823).withDiskEncryptionSetId("zoibgsxg"))) - .withDataDiskEncryptionSetId("fyq") - .withDataDiskEncryptionIdentity("mpqoxw")); + .withPerDiskEncryptionSetIds(Arrays + .asList(new PerDiskEncryptionSetId().withLun(45721178).withDiskEncryptionSetId("ormkfqlwxldyk"))) + .withDataDiskEncryptionSetId("sy") + .withDataDiskEncryptionIdentity("olnjpnnbmjksibj")); model = BinaryData.fromObject(model).toObject(SecuredVMDetails.class); - Assertions.assertEquals("nh", model.securedVmosDiskEncryptionSetId()); - Assertions.assertEquals(1417564823, model.dataDiskEncryptionSettings().perDiskEncryptionSetIds().get(0).lun()); - Assertions.assertEquals("zoibgsxg", + Assertions.assertEquals("ryrando", model.securedVmosDiskEncryptionSetId()); + Assertions.assertEquals(45721178, model.dataDiskEncryptionSettings().perDiskEncryptionSetIds().get(0).lun()); + Assertions.assertEquals("ormkfqlwxldyk", model.dataDiskEncryptionSettings().perDiskEncryptionSetIds().get(0).diskEncryptionSetId()); - Assertions.assertEquals("fyq", model.dataDiskEncryptionSettings().dataDiskEncryptionSetId()); - Assertions.assertEquals("mpqoxw", model.dataDiskEncryptionSettings().dataDiskEncryptionIdentity()); + Assertions.assertEquals("sy", model.dataDiskEncryptionSettings().dataDiskEncryptionSetId()); + Assertions.assertEquals("olnjpnnbmjksibj", model.dataDiskEncryptionSettings().dataDiskEncryptionIdentity()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SecurityPinBaseTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SecurityPinBaseTests.java index 062a13d227c63..fce2ad4fb2dcd 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SecurityPinBaseTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SecurityPinBaseTests.java @@ -12,17 +12,17 @@ public final class SecurityPinBaseTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - SecurityPinBase model = BinaryData.fromString( - "{\"resourceGuardOperationRequests\":[\"afjrqpjiyrqjcrg\",\"xwmzwdfkbnrz\",\"rpdltbq\",\"tqjfgxxsaet\"]}") - .toObject(SecurityPinBase.class); - Assertions.assertEquals("afjrqpjiyrqjcrg", model.resourceGuardOperationRequests().get(0)); + SecurityPinBase model + = BinaryData.fromString("{\"resourceGuardOperationRequests\":[\"dgcruxspinymm\",\"gwokmikpazfbmjxu\"]}") + .toObject(SecurityPinBase.class); + Assertions.assertEquals("dgcruxspinymm", model.resourceGuardOperationRequests().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SecurityPinBase model = new SecurityPinBase().withResourceGuardOperationRequests( - Arrays.asList("afjrqpjiyrqjcrg", "xwmzwdfkbnrz", "rpdltbq", "tqjfgxxsaet")); + SecurityPinBase model = new SecurityPinBase() + .withResourceGuardOperationRequests(Arrays.asList("dgcruxspinymm", "gwokmikpazfbmjxu")); model = BinaryData.fromObject(model).toObject(SecurityPinBase.class); - Assertions.assertEquals("afjrqpjiyrqjcrg", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals("dgcruxspinymm", model.resourceGuardOperationRequests().get(0)); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SettingsTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SettingsTests.java index 3659792c04cbc..045cde9c97839 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SettingsTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SettingsTests.java @@ -12,20 +12,20 @@ public final class SettingsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { Settings model = BinaryData - .fromString("{\"timeZone\":\"dhlisngwflqqmpi\",\"issqlcompression\":true,\"isCompression\":false}") + .fromString("{\"timeZone\":\"vwmbjlzqsczpg\",\"issqlcompression\":false,\"isCompression\":false}") .toObject(Settings.class); - Assertions.assertEquals("dhlisngwflqqmpi", model.timeZone()); - Assertions.assertTrue(model.issqlcompression()); + Assertions.assertEquals("vwmbjlzqsczpg", model.timeZone()); + Assertions.assertFalse(model.issqlcompression()); Assertions.assertFalse(model.isCompression()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { Settings model - = new Settings().withTimeZone("dhlisngwflqqmpi").withIssqlcompression(true).withIsCompression(false); + = new Settings().withTimeZone("vwmbjlzqsczpg").withIssqlcompression(false).withIsCompression(false); model = BinaryData.fromObject(model).toObject(Settings.class); - Assertions.assertEquals("dhlisngwflqqmpi", model.timeZone()); - Assertions.assertTrue(model.issqlcompression()); + Assertions.assertEquals("vwmbjlzqsczpg", model.timeZone()); + Assertions.assertFalse(model.issqlcompression()); Assertions.assertFalse(model.isCompression()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SimpleRetentionPolicyTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SimpleRetentionPolicyTests.java index 8d472cfb82b98..b78529b982fb7 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SimpleRetentionPolicyTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SimpleRetentionPolicyTests.java @@ -14,18 +14,18 @@ public final class SimpleRetentionPolicyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SimpleRetentionPolicy model = BinaryData.fromString( - "{\"retentionPolicyType\":\"SimpleRetentionPolicy\",\"retentionDuration\":{\"count\":1864583942,\"durationType\":\"Weeks\"}}") + "{\"retentionPolicyType\":\"SimpleRetentionPolicy\",\"retentionDuration\":{\"count\":1031241635,\"durationType\":\"Months\"}}") .toObject(SimpleRetentionPolicy.class); - Assertions.assertEquals(1864583942, model.retentionDuration().count()); - Assertions.assertEquals(RetentionDurationType.WEEKS, model.retentionDuration().durationType()); + Assertions.assertEquals(1031241635, model.retentionDuration().count()); + Assertions.assertEquals(RetentionDurationType.MONTHS, model.retentionDuration().durationType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { SimpleRetentionPolicy model = new SimpleRetentionPolicy().withRetentionDuration( - new RetentionDuration().withCount(1864583942).withDurationType(RetentionDurationType.WEEKS)); + new RetentionDuration().withCount(1031241635).withDurationType(RetentionDurationType.MONTHS)); model = BinaryData.fromObject(model).toObject(SimpleRetentionPolicy.class); - Assertions.assertEquals(1864583942, model.retentionDuration().count()); - Assertions.assertEquals(RetentionDurationType.WEEKS, model.retentionDuration().durationType()); + Assertions.assertEquals(1031241635, model.retentionDuration().count()); + Assertions.assertEquals(RetentionDurationType.MONTHS, model.retentionDuration().durationType()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SimpleSchedulePolicyTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SimpleSchedulePolicyTests.java index 0a8a708ee8977..da97905b0ee4b 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SimpleSchedulePolicyTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SimpleSchedulePolicyTests.java @@ -17,35 +17,38 @@ public final class SimpleSchedulePolicyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SimpleSchedulePolicy model = BinaryData.fromString( - "{\"schedulePolicyType\":\"SimpleSchedulePolicy\",\"scheduleRunFrequency\":\"Hourly\",\"scheduleRunDays\":[\"Friday\",\"Wednesday\",\"Monday\"],\"scheduleRunTimes\":[\"2021-07-13T11:30:30Z\"],\"hourlySchedule\":{\"interval\":1864719010,\"scheduleWindowStartTime\":\"2021-01-25T18:03:32Z\",\"scheduleWindowDuration\":636230588},\"scheduleWeeklyFrequency\":1323375031}") + "{\"schedulePolicyType\":\"SimpleSchedulePolicy\",\"scheduleRunFrequency\":\"Daily\",\"scheduleRunDays\":[\"Thursday\",\"Sunday\",\"Saturday\",\"Sunday\"],\"scheduleRunTimes\":[\"2021-07-11T04:52:14Z\",\"2021-04-25T00:13:22Z\",\"2021-11-05T05:11:54Z\",\"2021-08-19T15:20:52Z\"],\"hourlySchedule\":{\"interval\":408886616,\"scheduleWindowStartTime\":\"2021-09-17T05:04:53Z\",\"scheduleWindowDuration\":1138069123},\"scheduleWeeklyFrequency\":995715779}") .toObject(SimpleSchedulePolicy.class); - Assertions.assertEquals(ScheduleRunType.HOURLY, model.scheduleRunFrequency()); - Assertions.assertEquals(DayOfWeek.FRIDAY, model.scheduleRunDays().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-13T11:30:30Z"), model.scheduleRunTimes().get(0)); - Assertions.assertEquals(1864719010, model.hourlySchedule().interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-25T18:03:32Z"), + Assertions.assertEquals(ScheduleRunType.DAILY, model.scheduleRunFrequency()); + Assertions.assertEquals(DayOfWeek.THURSDAY, model.scheduleRunDays().get(0)); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-11T04:52:14Z"), model.scheduleRunTimes().get(0)); + Assertions.assertEquals(408886616, model.hourlySchedule().interval()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-17T05:04:53Z"), model.hourlySchedule().scheduleWindowStartTime()); - Assertions.assertEquals(636230588, model.hourlySchedule().scheduleWindowDuration()); - Assertions.assertEquals(1323375031, model.scheduleWeeklyFrequency()); + Assertions.assertEquals(1138069123, model.hourlySchedule().scheduleWindowDuration()); + Assertions.assertEquals(995715779, model.scheduleWeeklyFrequency()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SimpleSchedulePolicy model = new SimpleSchedulePolicy().withScheduleRunFrequency(ScheduleRunType.HOURLY) - .withScheduleRunDays(Arrays.asList(DayOfWeek.FRIDAY, DayOfWeek.WEDNESDAY, DayOfWeek.MONDAY)) - .withScheduleRunTimes(Arrays.asList(OffsetDateTime.parse("2021-07-13T11:30:30Z"))) - .withHourlySchedule(new HourlySchedule().withInterval(1864719010) - .withScheduleWindowStartTime(OffsetDateTime.parse("2021-01-25T18:03:32Z")) - .withScheduleWindowDuration(636230588)) - .withScheduleWeeklyFrequency(1323375031); + SimpleSchedulePolicy model = new SimpleSchedulePolicy().withScheduleRunFrequency(ScheduleRunType.DAILY) + .withScheduleRunDays( + Arrays.asList(DayOfWeek.THURSDAY, DayOfWeek.SUNDAY, DayOfWeek.SATURDAY, DayOfWeek.SUNDAY)) + .withScheduleRunTimes(Arrays.asList(OffsetDateTime.parse("2021-07-11T04:52:14Z"), + OffsetDateTime.parse("2021-04-25T00:13:22Z"), OffsetDateTime.parse("2021-11-05T05:11:54Z"), + OffsetDateTime.parse("2021-08-19T15:20:52Z"))) + .withHourlySchedule(new HourlySchedule().withInterval(408886616) + .withScheduleWindowStartTime(OffsetDateTime.parse("2021-09-17T05:04:53Z")) + .withScheduleWindowDuration(1138069123)) + .withScheduleWeeklyFrequency(995715779); model = BinaryData.fromObject(model).toObject(SimpleSchedulePolicy.class); - Assertions.assertEquals(ScheduleRunType.HOURLY, model.scheduleRunFrequency()); - Assertions.assertEquals(DayOfWeek.FRIDAY, model.scheduleRunDays().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-13T11:30:30Z"), model.scheduleRunTimes().get(0)); - Assertions.assertEquals(1864719010, model.hourlySchedule().interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-25T18:03:32Z"), + Assertions.assertEquals(ScheduleRunType.DAILY, model.scheduleRunFrequency()); + Assertions.assertEquals(DayOfWeek.THURSDAY, model.scheduleRunDays().get(0)); + Assertions.assertEquals(OffsetDateTime.parse("2021-07-11T04:52:14Z"), model.scheduleRunTimes().get(0)); + Assertions.assertEquals(408886616, model.hourlySchedule().interval()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-17T05:04:53Z"), model.hourlySchedule().scheduleWindowStartTime()); - Assertions.assertEquals(636230588, model.hourlySchedule().scheduleWindowDuration()); - Assertions.assertEquals(1323375031, model.scheduleWeeklyFrequency()); + Assertions.assertEquals(1138069123, model.hourlySchedule().scheduleWindowDuration()); + Assertions.assertEquals(995715779, model.scheduleWeeklyFrequency()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SimpleSchedulePolicyV2Tests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SimpleSchedulePolicyV2Tests.java index 0d080503aebc4..c644a1df88c37 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SimpleSchedulePolicyV2Tests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SimpleSchedulePolicyV2Tests.java @@ -19,45 +19,42 @@ public final class SimpleSchedulePolicyV2Tests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SimpleSchedulePolicyV2 model = BinaryData.fromString( - "{\"schedulePolicyType\":\"SimpleSchedulePolicyV2\",\"scheduleRunFrequency\":\"Invalid\",\"hourlySchedule\":{\"interval\":1685978755,\"scheduleWindowStartTime\":\"2021-06-15T20:37:55Z\",\"scheduleWindowDuration\":982986419},\"dailySchedule\":{\"scheduleRunTimes\":[\"2021-11-05T20:45:49Z\",\"2021-07-19T13:49:59Z\",\"2021-01-25T05:03:18Z\"]},\"weeklySchedule\":{\"scheduleRunDays\":[\"Sunday\",\"Sunday\",\"Wednesday\",\"Wednesday\"],\"scheduleRunTimes\":[\"2021-06-07T06:06:17Z\",\"2021-10-04T21:24:51Z\",\"2021-05-26T04:45:22Z\",\"2021-01-07T05:44:35Z\"]}}") + "{\"schedulePolicyType\":\"SimpleSchedulePolicyV2\",\"scheduleRunFrequency\":\"Invalid\",\"hourlySchedule\":{\"interval\":178482301,\"scheduleWindowStartTime\":\"2021-11-21T07:30:22Z\",\"scheduleWindowDuration\":1467529685},\"dailySchedule\":{\"scheduleRunTimes\":[\"2021-09-15T13:29:42Z\"]},\"weeklySchedule\":{\"scheduleRunDays\":[\"Tuesday\"],\"scheduleRunTimes\":[\"2021-02-09T04:37:43Z\",\"2021-11-04T02:30:34Z\",\"2021-07-04T00:30:44Z\",\"2020-12-21T02:35:09Z\"]}}") .toObject(SimpleSchedulePolicyV2.class); Assertions.assertEquals(ScheduleRunType.INVALID, model.scheduleRunFrequency()); - Assertions.assertEquals(1685978755, model.hourlySchedule().interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-15T20:37:55Z"), + Assertions.assertEquals(178482301, model.hourlySchedule().interval()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-21T07:30:22Z"), model.hourlySchedule().scheduleWindowStartTime()); - Assertions.assertEquals(982986419, model.hourlySchedule().scheduleWindowDuration()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-05T20:45:49Z"), + Assertions.assertEquals(1467529685, model.hourlySchedule().scheduleWindowDuration()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-15T13:29:42Z"), model.dailySchedule().scheduleRunTimes().get(0)); - Assertions.assertEquals(DayOfWeek.SUNDAY, model.weeklySchedule().scheduleRunDays().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-07T06:06:17Z"), + Assertions.assertEquals(DayOfWeek.TUESDAY, model.weeklySchedule().scheduleRunDays().get(0)); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-09T04:37:43Z"), model.weeklySchedule().scheduleRunTimes().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { SimpleSchedulePolicyV2 model = new SimpleSchedulePolicyV2().withScheduleRunFrequency(ScheduleRunType.INVALID) - .withHourlySchedule(new HourlySchedule().withInterval(1685978755) - .withScheduleWindowStartTime(OffsetDateTime.parse("2021-06-15T20:37:55Z")) - .withScheduleWindowDuration(982986419)) + .withHourlySchedule(new HourlySchedule().withInterval(178482301) + .withScheduleWindowStartTime(OffsetDateTime.parse("2021-11-21T07:30:22Z")) + .withScheduleWindowDuration(1467529685)) .withDailySchedule( - new DailySchedule().withScheduleRunTimes(Arrays.asList(OffsetDateTime.parse("2021-11-05T20:45:49Z"), - OffsetDateTime.parse("2021-07-19T13:49:59Z"), OffsetDateTime.parse("2021-01-25T05:03:18Z")))) - .withWeeklySchedule(new WeeklySchedule() - .withScheduleRunDays( - Arrays.asList(DayOfWeek.SUNDAY, DayOfWeek.SUNDAY, DayOfWeek.WEDNESDAY, DayOfWeek.WEDNESDAY)) - .withScheduleRunTimes(Arrays.asList(OffsetDateTime.parse("2021-06-07T06:06:17Z"), - OffsetDateTime.parse("2021-10-04T21:24:51Z"), OffsetDateTime.parse("2021-05-26T04:45:22Z"), - OffsetDateTime.parse("2021-01-07T05:44:35Z")))); + new DailySchedule().withScheduleRunTimes(Arrays.asList(OffsetDateTime.parse("2021-09-15T13:29:42Z")))) + .withWeeklySchedule(new WeeklySchedule().withScheduleRunDays(Arrays.asList(DayOfWeek.TUESDAY)) + .withScheduleRunTimes(Arrays.asList(OffsetDateTime.parse("2021-02-09T04:37:43Z"), + OffsetDateTime.parse("2021-11-04T02:30:34Z"), OffsetDateTime.parse("2021-07-04T00:30:44Z"), + OffsetDateTime.parse("2020-12-21T02:35:09Z")))); model = BinaryData.fromObject(model).toObject(SimpleSchedulePolicyV2.class); Assertions.assertEquals(ScheduleRunType.INVALID, model.scheduleRunFrequency()); - Assertions.assertEquals(1685978755, model.hourlySchedule().interval()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-15T20:37:55Z"), + Assertions.assertEquals(178482301, model.hourlySchedule().interval()); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-21T07:30:22Z"), model.hourlySchedule().scheduleWindowStartTime()); - Assertions.assertEquals(982986419, model.hourlySchedule().scheduleWindowDuration()); - Assertions.assertEquals(OffsetDateTime.parse("2021-11-05T20:45:49Z"), + Assertions.assertEquals(1467529685, model.hourlySchedule().scheduleWindowDuration()); + Assertions.assertEquals(OffsetDateTime.parse("2021-09-15T13:29:42Z"), model.dailySchedule().scheduleRunTimes().get(0)); - Assertions.assertEquals(DayOfWeek.SUNDAY, model.weeklySchedule().scheduleRunDays().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-07T06:06:17Z"), + Assertions.assertEquals(DayOfWeek.TUESDAY, model.weeklySchedule().scheduleRunDays().get(0)); + Assertions.assertEquals(OffsetDateTime.parse("2021-02-09T04:37:43Z"), model.weeklySchedule().scheduleRunTimes().get(0)); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SnapshotBackupAdditionalDetailsTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SnapshotBackupAdditionalDetailsTests.java index ca30d0ada7b23..1f85c5403d261 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SnapshotBackupAdditionalDetailsTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SnapshotBackupAdditionalDetailsTests.java @@ -14,36 +14,36 @@ public final class SnapshotBackupAdditionalDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SnapshotBackupAdditionalDetails model = BinaryData.fromString( - "{\"instantRpRetentionRangeInDays\":1086614322,\"instantRPDetails\":\"xxhljfpgpic\",\"userAssignedManagedIdentityDetails\":{\"identityArmId\":\"zhrgmqgjsxvpqc\",\"identityName\":\"rmbodt\",\"userAssignedIdentityProperties\":{\"clientId\":\"qgvriibakcla\",\"principalId\":\"fr\"}}}") + "{\"instantRpRetentionRangeInDays\":1157714909,\"instantRPDetails\":\"kjljnhv\",\"userAssignedManagedIdentityDetails\":{\"identityArmId\":\"bekpeeksnbksdqhj\",\"identityName\":\"klxesl\",\"userAssignedIdentityProperties\":{\"clientId\":\"ustcpoq\",\"principalId\":\"vnwqjwgo\"}}}") .toObject(SnapshotBackupAdditionalDetails.class); - Assertions.assertEquals(1086614322, model.instantRpRetentionRangeInDays()); - Assertions.assertEquals("xxhljfpgpic", model.instantRPDetails()); - Assertions.assertEquals("zhrgmqgjsxvpqc", model.userAssignedManagedIdentityDetails().identityArmId()); - Assertions.assertEquals("rmbodt", model.userAssignedManagedIdentityDetails().identityName()); - Assertions.assertEquals("qgvriibakcla", + Assertions.assertEquals(1157714909, model.instantRpRetentionRangeInDays()); + Assertions.assertEquals("kjljnhv", model.instantRPDetails()); + Assertions.assertEquals("bekpeeksnbksdqhj", model.userAssignedManagedIdentityDetails().identityArmId()); + Assertions.assertEquals("klxesl", model.userAssignedManagedIdentityDetails().identityName()); + Assertions.assertEquals("ustcpoq", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().clientId()); - Assertions.assertEquals("fr", + Assertions.assertEquals("vnwqjwgo", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().principalId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { SnapshotBackupAdditionalDetails model - = new SnapshotBackupAdditionalDetails().withInstantRpRetentionRangeInDays(1086614322) - .withInstantRPDetails("xxhljfpgpic") + = new SnapshotBackupAdditionalDetails().withInstantRpRetentionRangeInDays(1157714909) + .withInstantRPDetails("kjljnhv") .withUserAssignedManagedIdentityDetails( - new UserAssignedManagedIdentityDetails().withIdentityArmId("zhrgmqgjsxvpqc") - .withIdentityName("rmbodt") + new UserAssignedManagedIdentityDetails().withIdentityArmId("bekpeeksnbksdqhj") + .withIdentityName("klxesl") .withUserAssignedIdentityProperties( - new UserAssignedIdentityProperties().withClientId("qgvriibakcla").withPrincipalId("fr"))); + new UserAssignedIdentityProperties().withClientId("ustcpoq").withPrincipalId("vnwqjwgo"))); model = BinaryData.fromObject(model).toObject(SnapshotBackupAdditionalDetails.class); - Assertions.assertEquals(1086614322, model.instantRpRetentionRangeInDays()); - Assertions.assertEquals("xxhljfpgpic", model.instantRPDetails()); - Assertions.assertEquals("zhrgmqgjsxvpqc", model.userAssignedManagedIdentityDetails().identityArmId()); - Assertions.assertEquals("rmbodt", model.userAssignedManagedIdentityDetails().identityName()); - Assertions.assertEquals("qgvriibakcla", + Assertions.assertEquals(1157714909, model.instantRpRetentionRangeInDays()); + Assertions.assertEquals("kjljnhv", model.instantRPDetails()); + Assertions.assertEquals("bekpeeksnbksdqhj", model.userAssignedManagedIdentityDetails().identityArmId()); + Assertions.assertEquals("klxesl", model.userAssignedManagedIdentityDetails().identityName()); + Assertions.assertEquals("ustcpoq", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().clientId()); - Assertions.assertEquals("fr", + Assertions.assertEquals("vnwqjwgo", model.userAssignedManagedIdentityDetails().userAssignedIdentityProperties().principalId()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SnapshotRecoveryPointInfoTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SnapshotRecoveryPointInfoTests.java new file mode 100644 index 0000000000000..d7ac3b2e90d31 --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SnapshotRecoveryPointInfoTests.java @@ -0,0 +1,42 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.recoveryservicesbackup.models.SnapshotRecoveryPointInfo; +import org.junit.jupiter.api.Assertions; + +public final class SnapshotRecoveryPointInfoTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + SnapshotRecoveryPointInfo model = BinaryData.fromString( + "{\"snapshotResourceGroup\":\"ttijfybvpoekrs\",\"sourceFilesystemInfo\":[{\"volumeGuid\":\"dhuzqgnjdgk\",\"fileSystemType\":\"scliq\",\"label\":\"vhxnk\",\"accessPaths\":[\"kubotppnvdxz\",\"hihfrbbcevqagtlt\",\"hlfkqojpy\"],\"isOnStorageSpace\":false,\"storageSpaceInfo\":{\"storagePoolUniqueId\":\"dcnifmz\",\"storagePoolFriendlyName\":\"dymbrny\",\"virtualDiskUniqueId\":\"xmprafwg\",\"virtualDiskFriendlyName\":\"hocxvdfffwafqrou\"},\"diskInfoList\":[{\"diskNumber\":1222177326,\"diskUniqueId\":\"ehhr\",\"diskGuid\":\"bunzozudh\",\"diskLocation\":\"gkmoyxcdyuibhmfd\",\"sizeInBytes\":7341813993234583610,\"friendlyName\":\"vfvfcj\",\"lun\":640278837,\"managedDiskId\":\"isrvhm\"},{\"diskNumber\":144501476,\"diskUniqueId\":\"fukiscvwmzhw\",\"diskGuid\":\"efaxvxilc\",\"diskLocation\":\"gnhnzeyq\",\"sizeInBytes\":5185737822021669291,\"friendlyName\":\"zqlqhyc\",\"lun\":1332514758,\"managedDiskId\":\"ggxdb\"}]},{\"volumeGuid\":\"smieknlra\",\"fileSystemType\":\"aawiuagydwqfb\",\"label\":\"yr\",\"accessPaths\":[\"agt\",\"ojocqwogf\"],\"isOnStorageSpace\":true,\"storageSpaceInfo\":{\"storagePoolUniqueId\":\"sfzldmoz\",\"storagePoolFriendlyName\":\"ylfsbtk\",\"virtualDiskUniqueId\":\"pysownbt\",\"virtualDiskFriendlyName\":\"bugrj\"},\"diskInfoList\":[{\"diskNumber\":490054164,\"diskUniqueId\":\"mi\",\"diskGuid\":\"fieypefojyqdhcup\",\"diskLocation\":\"plcwkhi\",\"sizeInBytes\":7515214033184287815,\"friendlyName\":\"zdsqtzbsrgnow\",\"lun\":994844547,\"managedDiskId\":\"gmvecactxmw\"}]},{\"volumeGuid\":\"e\",\"fileSystemType\":\"wcluqovekqvgq\",\"label\":\"wifzmp\",\"accessPaths\":[\"ivqikfxcvhr\",\"sphuagrttikteus\",\"c\",\"kvyklxubyjaffmm\"],\"isOnStorageSpace\":true,\"storageSpaceInfo\":{\"storagePoolUniqueId\":\"cuubgq\",\"storagePoolFriendlyName\":\"rtalmet\",\"virtualDiskUniqueId\":\"wgdsl\",\"virtualDiskFriendlyName\":\"ihhrmo\"},\"diskInfoList\":[{\"diskNumber\":1309261520,\"diskUniqueId\":\"ypxiutcxap\",\"diskGuid\":\"y\",\"diskLocation\":\"etoge\",\"sizeInBytes\":5156254503454235801,\"friendlyName\":\"lhvnhlab\",\"lun\":413797833,\"managedDiskId\":\"kzjcjbtrgae\"}]}]}") + .toObject(SnapshotRecoveryPointInfo.class); + Assertions.assertEquals("ttijfybvpoekrs", model.snapshotResourceGroup()); + Assertions.assertEquals("dhuzqgnjdgk", model.sourceFilesystemInfo().get(0).volumeGuid()); + Assertions.assertEquals("scliq", model.sourceFilesystemInfo().get(0).fileSystemType()); + Assertions.assertEquals("vhxnk", model.sourceFilesystemInfo().get(0).label()); + Assertions.assertEquals("kubotppnvdxz", model.sourceFilesystemInfo().get(0).accessPaths().get(0)); + Assertions.assertFalse(model.sourceFilesystemInfo().get(0).isOnStorageSpace()); + Assertions.assertEquals("dcnifmz", + model.sourceFilesystemInfo().get(0).storageSpaceInfo().storagePoolUniqueId()); + Assertions.assertEquals("dymbrny", + model.sourceFilesystemInfo().get(0).storageSpaceInfo().storagePoolFriendlyName()); + Assertions.assertEquals("xmprafwg", + model.sourceFilesystemInfo().get(0).storageSpaceInfo().virtualDiskUniqueId()); + Assertions.assertEquals("hocxvdfffwafqrou", + model.sourceFilesystemInfo().get(0).storageSpaceInfo().virtualDiskFriendlyName()); + Assertions.assertEquals(1222177326, model.sourceFilesystemInfo().get(0).diskInfoList().get(0).diskNumber()); + Assertions.assertEquals("ehhr", model.sourceFilesystemInfo().get(0).diskInfoList().get(0).diskUniqueId()); + Assertions.assertEquals("bunzozudh", model.sourceFilesystemInfo().get(0).diskInfoList().get(0).diskGuid()); + Assertions.assertEquals("gkmoyxcdyuibhmfd", + model.sourceFilesystemInfo().get(0).diskInfoList().get(0).diskLocation()); + Assertions.assertEquals(7341813993234583610L, + model.sourceFilesystemInfo().get(0).diskInfoList().get(0).sizeInBytes()); + Assertions.assertEquals("vfvfcj", model.sourceFilesystemInfo().get(0).diskInfoList().get(0).friendlyName()); + Assertions.assertEquals(640278837, model.sourceFilesystemInfo().get(0).diskInfoList().get(0).lun()); + Assertions.assertEquals("isrvhm", model.sourceFilesystemInfo().get(0).diskInfoList().get(0).managedDiskId()); + } +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SnapshotRestoreParametersTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SnapshotRestoreParametersTests.java index d48cb146bdecd..3cecc20728790 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SnapshotRestoreParametersTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SnapshotRestoreParametersTests.java @@ -6,24 +6,28 @@ import com.azure.core.util.BinaryData; import com.azure.resourcemanager.recoveryservicesbackup.models.SnapshotRestoreParameters; +import java.util.Arrays; import org.junit.jupiter.api.Assertions; public final class SnapshotRestoreParametersTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - SnapshotRestoreParameters model - = BinaryData.fromString("{\"skipAttachAndMount\":false,\"logPointInTimeForDBRecovery\":\"gny\"}") - .toObject(SnapshotRestoreParameters.class); + SnapshotRestoreParameters model = BinaryData.fromString( + "{\"skipAttachAndMount\":false,\"logPointInTimeForDBRecovery\":\"cqlliz\",\"disksToDetachOnClash\":[\"csjvhrwef\"]}") + .toObject(SnapshotRestoreParameters.class); Assertions.assertFalse(model.skipAttachAndMount()); - Assertions.assertEquals("gny", model.logPointInTimeForDBRecovery()); + Assertions.assertEquals("cqlliz", model.logPointInTimeForDBRecovery()); + Assertions.assertEquals("csjvhrwef", model.disksToDetachOnClash().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SnapshotRestoreParameters model - = new SnapshotRestoreParameters().withSkipAttachAndMount(false).withLogPointInTimeForDBRecovery("gny"); + SnapshotRestoreParameters model = new SnapshotRestoreParameters().withSkipAttachAndMount(false) + .withLogPointInTimeForDBRecovery("cqlliz") + .withDisksToDetachOnClash(Arrays.asList("csjvhrwef")); model = BinaryData.fromObject(model).toObject(SnapshotRestoreParameters.class); Assertions.assertFalse(model.skipAttachAndMount()); - Assertions.assertEquals("gny", model.logPointInTimeForDBRecovery()); + Assertions.assertEquals("cqlliz", model.logPointInTimeForDBRecovery()); + Assertions.assertEquals("csjvhrwef", model.disksToDetachOnClash().get(0)); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SourceSideScanInfoTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SourceSideScanInfoTests.java index 00aef17710e1d..41d072fcb715a 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SourceSideScanInfoTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SourceSideScanInfoTests.java @@ -14,19 +14,19 @@ public final class SourceSideScanInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SourceSideScanInfo model = BinaryData - .fromString("{\"sourceSideScanStatus\":\"NotConfigured\",\"sourceSideScanSummary\":\"NotApplicable\"}") + .fromString("{\"sourceSideScanStatus\":\"NotConfigured\",\"sourceSideScanSummary\":\"Unknown\"}") .toObject(SourceSideScanInfo.class); Assertions.assertEquals(SourceSideScanStatus.NOT_CONFIGURED, model.sourceSideScanStatus()); - Assertions.assertEquals(SourceSideScanSummary.NOT_APPLICABLE, model.sourceSideScanSummary()); + Assertions.assertEquals(SourceSideScanSummary.UNKNOWN, model.sourceSideScanSummary()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { SourceSideScanInfo model = new SourceSideScanInfo().withSourceSideScanStatus(SourceSideScanStatus.NOT_CONFIGURED) - .withSourceSideScanSummary(SourceSideScanSummary.NOT_APPLICABLE); + .withSourceSideScanSummary(SourceSideScanSummary.UNKNOWN); model = BinaryData.fromObject(model).toObject(SourceSideScanInfo.class); Assertions.assertEquals(SourceSideScanStatus.NOT_CONFIGURED, model.sourceSideScanStatus()); - Assertions.assertEquals(SourceSideScanSummary.NOT_APPLICABLE, model.sourceSideScanSummary()); + Assertions.assertEquals(SourceSideScanSummary.UNKNOWN, model.sourceSideScanSummary()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SqlDataDirectoryMappingTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SqlDataDirectoryMappingTests.java index bfc7a38eb732a..26eee39473a85 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SqlDataDirectoryMappingTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SqlDataDirectoryMappingTests.java @@ -13,24 +13,24 @@ public final class SqlDataDirectoryMappingTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SqlDataDirectoryMapping model = BinaryData.fromString( - "{\"mappingType\":\"Data\",\"sourceLogicalName\":\"piljhahzvech\",\"sourcePath\":\"bnwieholew\",\"targetPath\":\"iuubwefqsf\"}") + "{\"mappingType\":\"Data\",\"sourceLogicalName\":\"bwetnjuhpsp\",\"sourcePath\":\"zyaupiac\",\"targetPath\":\"n\"}") .toObject(SqlDataDirectoryMapping.class); Assertions.assertEquals(SqlDataDirectoryType.DATA, model.mappingType()); - Assertions.assertEquals("piljhahzvech", model.sourceLogicalName()); - Assertions.assertEquals("bnwieholew", model.sourcePath()); - Assertions.assertEquals("iuubwefqsf", model.targetPath()); + Assertions.assertEquals("bwetnjuhpsp", model.sourceLogicalName()); + Assertions.assertEquals("zyaupiac", model.sourcePath()); + Assertions.assertEquals("n", model.targetPath()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { SqlDataDirectoryMapping model = new SqlDataDirectoryMapping().withMappingType(SqlDataDirectoryType.DATA) - .withSourceLogicalName("piljhahzvech") - .withSourcePath("bnwieholew") - .withTargetPath("iuubwefqsf"); + .withSourceLogicalName("bwetnjuhpsp") + .withSourcePath("zyaupiac") + .withTargetPath("n"); model = BinaryData.fromObject(model).toObject(SqlDataDirectoryMapping.class); Assertions.assertEquals(SqlDataDirectoryType.DATA, model.mappingType()); - Assertions.assertEquals("piljhahzvech", model.sourceLogicalName()); - Assertions.assertEquals("bnwieholew", model.sourcePath()); - Assertions.assertEquals("iuubwefqsf", model.targetPath()); + Assertions.assertEquals("bwetnjuhpsp", model.sourceLogicalName()); + Assertions.assertEquals("zyaupiac", model.sourcePath()); + Assertions.assertEquals("n", model.targetPath()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SqlDataDirectoryTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SqlDataDirectoryTests.java index a814d258b51dc..94ba96cc24d03 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SqlDataDirectoryTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SqlDataDirectoryTests.java @@ -12,10 +12,11 @@ public final class SqlDataDirectoryTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - SqlDataDirectory model = BinaryData.fromString("{\"type\":\"Log\",\"path\":\"kpzi\",\"logicalName\":\"j\"}") - .toObject(SqlDataDirectory.class); - Assertions.assertEquals(SqlDataDirectoryType.LOG, model.type()); - Assertions.assertEquals("kpzi", model.path()); - Assertions.assertEquals("j", model.logicalName()); + SqlDataDirectory model + = BinaryData.fromString("{\"type\":\"Invalid\",\"path\":\"wwvaiqyuvvfonk\",\"logicalName\":\"hqyikvy\"}") + .toObject(SqlDataDirectory.class); + Assertions.assertEquals(SqlDataDirectoryType.INVALID, model.type()); + Assertions.assertEquals("wwvaiqyuvvfonk", model.path()); + Assertions.assertEquals("hqyikvy", model.logicalName()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/StorageSpaceInfoTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/StorageSpaceInfoTests.java new file mode 100644 index 0000000000000..a0ed66fddb922 --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/StorageSpaceInfoTests.java @@ -0,0 +1,22 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.recoveryservicesbackup.models.StorageSpaceInfo; +import org.junit.jupiter.api.Assertions; + +public final class StorageSpaceInfoTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + StorageSpaceInfo model = BinaryData.fromString( + "{\"storagePoolUniqueId\":\"rxgkne\",\"storagePoolFriendlyName\":\"yinzqodfvpgs\",\"virtualDiskUniqueId\":\"xgsg\",\"virtualDiskFriendlyName\":\"fgzdjtxvz\"}") + .toObject(StorageSpaceInfo.class); + Assertions.assertEquals("rxgkne", model.storagePoolUniqueId()); + Assertions.assertEquals("yinzqodfvpgs", model.storagePoolFriendlyName()); + Assertions.assertEquals("xgsg", model.virtualDiskUniqueId()); + Assertions.assertEquals("fgzdjtxvz", model.virtualDiskFriendlyName()); + } +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SubProtectionPolicyTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SubProtectionPolicyTests.java index a2d5eb4616bcb..6d17a6ee27058 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SubProtectionPolicyTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/SubProtectionPolicyTests.java @@ -23,25 +23,24 @@ public final class SubProtectionPolicyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { SubProtectionPolicy model = BinaryData.fromString( - "{\"policyType\":\"SnapshotFull\",\"schedulePolicy\":{\"schedulePolicyType\":\"SchedulePolicy\"},\"retentionPolicy\":{\"retentionPolicyType\":\"RetentionPolicy\"},\"tieringPolicy\":{\"saasiixtmkzj\":{\"tieringMode\":\"TierRecommended\",\"duration\":2135849980,\"durationType\":\"Invalid\"},\"gfgrwsdp\":{\"tieringMode\":\"TierAfter\",\"duration\":679945701,\"durationType\":\"Invalid\"},\"bglbyvict\":{\"tieringMode\":\"Invalid\",\"duration\":145136330,\"durationType\":\"Invalid\"}},\"snapshotBackupAdditionalDetails\":{\"instantRpRetentionRangeInDays\":1709678755,\"instantRPDetails\":\"kjzwrgxf\",\"userAssignedManagedIdentityDetails\":{\"identityArmId\":\"hkwfbkgozxwop\",\"identityName\":\"yd\",\"userAssignedIdentityProperties\":{\"clientId\":\"qaclnapxbiy\",\"principalId\":\"ugjknf\"}}}}") + "{\"policyType\":\"CopyOnlyFull\",\"schedulePolicy\":{\"schedulePolicyType\":\"SchedulePolicy\"},\"retentionPolicy\":{\"retentionPolicyType\":\"RetentionPolicy\"},\"tieringPolicy\":{\"uwjtks\":{\"tieringMode\":\"TierRecommended\",\"duration\":1137093270,\"durationType\":\"Weeks\"},\"hleseyqrh\":{\"tieringMode\":\"DoNotTier\",\"duration\":588054641,\"durationType\":\"Weeks\"},\"jv\":{\"tieringMode\":\"TierRecommended\",\"duration\":1615599775,\"durationType\":\"Days\"},\"kukjtasb\":{\"tieringMode\":\"DoNotTier\",\"duration\":1584832044,\"durationType\":\"Weeks\"}},\"snapshotBackupAdditionalDetails\":{\"instantRpRetentionRangeInDays\":1738944236,\"instantRPDetails\":\"kxkdtxfkndlq\",\"userAssignedManagedIdentityDetails\":{\"identityArmId\":\"knvgmmbugtywat\",\"identityName\":\"aqkue\",\"userAssignedIdentityProperties\":{\"clientId\":\"roeshoygzc\",\"principalId\":\"fqxkfaoyteh\"}}}}") .toObject(SubProtectionPolicy.class); - Assertions.assertEquals(PolicyType.SNAPSHOT_FULL, model.policyType()); - Assertions.assertEquals(TieringMode.TIER_RECOMMENDED, model.tieringPolicy().get("saasiixtmkzj").tieringMode()); - Assertions.assertEquals(2135849980, model.tieringPolicy().get("saasiixtmkzj").duration()); - Assertions.assertEquals(RetentionDurationType.INVALID, - model.tieringPolicy().get("saasiixtmkzj").durationType()); - Assertions.assertEquals(1709678755, model.snapshotBackupAdditionalDetails().instantRpRetentionRangeInDays()); - Assertions.assertEquals("kjzwrgxf", model.snapshotBackupAdditionalDetails().instantRPDetails()); - Assertions.assertEquals("hkwfbkgozxwop", + Assertions.assertEquals(PolicyType.COPY_ONLY_FULL, model.policyType()); + Assertions.assertEquals(TieringMode.TIER_RECOMMENDED, model.tieringPolicy().get("uwjtks").tieringMode()); + Assertions.assertEquals(1137093270, model.tieringPolicy().get("uwjtks").duration()); + Assertions.assertEquals(RetentionDurationType.WEEKS, model.tieringPolicy().get("uwjtks").durationType()); + Assertions.assertEquals(1738944236, model.snapshotBackupAdditionalDetails().instantRpRetentionRangeInDays()); + Assertions.assertEquals("kxkdtxfkndlq", model.snapshotBackupAdditionalDetails().instantRPDetails()); + Assertions.assertEquals("knvgmmbugtywat", model.snapshotBackupAdditionalDetails().userAssignedManagedIdentityDetails().identityArmId()); - Assertions.assertEquals("yd", + Assertions.assertEquals("aqkue", model.snapshotBackupAdditionalDetails().userAssignedManagedIdentityDetails().identityName()); - Assertions.assertEquals("qaclnapxbiy", + Assertions.assertEquals("roeshoygzc", model.snapshotBackupAdditionalDetails() .userAssignedManagedIdentityDetails() .userAssignedIdentityProperties() .clientId()); - Assertions.assertEquals("ugjknf", + Assertions.assertEquals("fqxkfaoyteh", model.snapshotBackupAdditionalDetails() .userAssignedManagedIdentityDetails() .userAssignedIdentityProperties() @@ -50,47 +49,50 @@ public void testDeserialize() throws Exception { @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - SubProtectionPolicy model = new SubProtectionPolicy().withPolicyType(PolicyType.SNAPSHOT_FULL) + SubProtectionPolicy model = new SubProtectionPolicy().withPolicyType(PolicyType.COPY_ONLY_FULL) .withSchedulePolicy(new SchedulePolicy()) .withRetentionPolicy(new RetentionPolicy()) - .withTieringPolicy(mapOf("saasiixtmkzj", + .withTieringPolicy(mapOf("uwjtks", new TieringPolicy().withTieringMode(TieringMode.TIER_RECOMMENDED) - .withDuration(2135849980) - .withDurationType(RetentionDurationType.INVALID), - "gfgrwsdp", - new TieringPolicy().withTieringMode(TieringMode.TIER_AFTER) - .withDuration(679945701) - .withDurationType(RetentionDurationType.INVALID), - "bglbyvict", - new TieringPolicy().withTieringMode(TieringMode.INVALID) - .withDuration(145136330) - .withDurationType(RetentionDurationType.INVALID))) + .withDuration(1137093270) + .withDurationType(RetentionDurationType.WEEKS), + "hleseyqrh", + new TieringPolicy().withTieringMode(TieringMode.DO_NOT_TIER) + .withDuration(588054641) + .withDurationType(RetentionDurationType.WEEKS), + "jv", + new TieringPolicy().withTieringMode(TieringMode.TIER_RECOMMENDED) + .withDuration(1615599775) + .withDurationType(RetentionDurationType.DAYS), + "kukjtasb", + new TieringPolicy().withTieringMode(TieringMode.DO_NOT_TIER) + .withDuration(1584832044) + .withDurationType(RetentionDurationType.WEEKS))) .withSnapshotBackupAdditionalDetails(new SnapshotBackupAdditionalDetails() - .withInstantRpRetentionRangeInDays(1709678755) - .withInstantRPDetails("kjzwrgxf") + .withInstantRpRetentionRangeInDays(1738944236) + .withInstantRPDetails("kxkdtxfkndlq") .withUserAssignedManagedIdentityDetails(new UserAssignedManagedIdentityDetails() - .withIdentityArmId("hkwfbkgozxwop") - .withIdentityName("yd") - .withUserAssignedIdentityProperties( - new UserAssignedIdentityProperties().withClientId("qaclnapxbiy").withPrincipalId("ugjknf")))); + .withIdentityArmId("knvgmmbugtywat") + .withIdentityName("aqkue") + .withUserAssignedIdentityProperties(new UserAssignedIdentityProperties().withClientId("roeshoygzc") + .withPrincipalId("fqxkfaoyteh")))); model = BinaryData.fromObject(model).toObject(SubProtectionPolicy.class); - Assertions.assertEquals(PolicyType.SNAPSHOT_FULL, model.policyType()); - Assertions.assertEquals(TieringMode.TIER_RECOMMENDED, model.tieringPolicy().get("saasiixtmkzj").tieringMode()); - Assertions.assertEquals(2135849980, model.tieringPolicy().get("saasiixtmkzj").duration()); - Assertions.assertEquals(RetentionDurationType.INVALID, - model.tieringPolicy().get("saasiixtmkzj").durationType()); - Assertions.assertEquals(1709678755, model.snapshotBackupAdditionalDetails().instantRpRetentionRangeInDays()); - Assertions.assertEquals("kjzwrgxf", model.snapshotBackupAdditionalDetails().instantRPDetails()); - Assertions.assertEquals("hkwfbkgozxwop", + Assertions.assertEquals(PolicyType.COPY_ONLY_FULL, model.policyType()); + Assertions.assertEquals(TieringMode.TIER_RECOMMENDED, model.tieringPolicy().get("uwjtks").tieringMode()); + Assertions.assertEquals(1137093270, model.tieringPolicy().get("uwjtks").duration()); + Assertions.assertEquals(RetentionDurationType.WEEKS, model.tieringPolicy().get("uwjtks").durationType()); + Assertions.assertEquals(1738944236, model.snapshotBackupAdditionalDetails().instantRpRetentionRangeInDays()); + Assertions.assertEquals("kxkdtxfkndlq", model.snapshotBackupAdditionalDetails().instantRPDetails()); + Assertions.assertEquals("knvgmmbugtywat", model.snapshotBackupAdditionalDetails().userAssignedManagedIdentityDetails().identityArmId()); - Assertions.assertEquals("yd", + Assertions.assertEquals("aqkue", model.snapshotBackupAdditionalDetails().userAssignedManagedIdentityDetails().identityName()); - Assertions.assertEquals("qaclnapxbiy", + Assertions.assertEquals("roeshoygzc", model.snapshotBackupAdditionalDetails() .userAssignedManagedIdentityDetails() .userAssignedIdentityProperties() .clientId()); - Assertions.assertEquals("ugjknf", + Assertions.assertEquals("fqxkfaoyteh", model.snapshotBackupAdditionalDetails() .userAssignedManagedIdentityDetails() .userAssignedIdentityProperties() diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/TargetAfsRestoreInfoTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/TargetAfsRestoreInfoTests.java index 7e7a7070ffc64..18403eb5c93bd 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/TargetAfsRestoreInfoTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/TargetAfsRestoreInfoTests.java @@ -12,18 +12,18 @@ public final class TargetAfsRestoreInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TargetAfsRestoreInfo model - = BinaryData.fromString("{\"name\":\"bunzozudh\",\"targetResourceId\":\"gkmoyxcdyuibhmfd\"}") + = BinaryData.fromString("{\"name\":\"xcmjurbu\",\"targetResourceId\":\"lkyqltqsrog\"}") .toObject(TargetAfsRestoreInfo.class); - Assertions.assertEquals("bunzozudh", model.name()); - Assertions.assertEquals("gkmoyxcdyuibhmfd", model.targetResourceId()); + Assertions.assertEquals("xcmjurbu", model.name()); + Assertions.assertEquals("lkyqltqsrog", model.targetResourceId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { TargetAfsRestoreInfo model - = new TargetAfsRestoreInfo().withName("bunzozudh").withTargetResourceId("gkmoyxcdyuibhmfd"); + = new TargetAfsRestoreInfo().withName("xcmjurbu").withTargetResourceId("lkyqltqsrog"); model = BinaryData.fromObject(model).toObject(TargetAfsRestoreInfo.class); - Assertions.assertEquals("bunzozudh", model.name()); - Assertions.assertEquals("gkmoyxcdyuibhmfd", model.targetResourceId()); + Assertions.assertEquals("xcmjurbu", model.name()); + Assertions.assertEquals("lkyqltqsrog", model.targetResourceId()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/TargetDiskNetworkAccessSettingsTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/TargetDiskNetworkAccessSettingsTests.java index 6acceb5c2fd81..3237bf18d4776 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/TargetDiskNetworkAccessSettingsTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/TargetDiskNetworkAccessSettingsTests.java @@ -13,21 +13,21 @@ public final class TargetDiskNetworkAccessSettingsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TargetDiskNetworkAccessSettings model = BinaryData.fromString( - "{\"targetDiskNetworkAccessOption\":\"EnablePublicAccessForAllDisks\",\"targetDiskAccessId\":\"vcjfelisdjubggb\"}") + "{\"targetDiskNetworkAccessOption\":\"EnablePrivateAccessForAllDisks\",\"targetDiskAccessId\":\"kfpksokdgo\"}") .toObject(TargetDiskNetworkAccessSettings.class); - Assertions.assertEquals(TargetDiskNetworkAccessOption.ENABLE_PUBLIC_ACCESS_FOR_ALL_DISKS, + Assertions.assertEquals(TargetDiskNetworkAccessOption.ENABLE_PRIVATE_ACCESS_FOR_ALL_DISKS, model.targetDiskNetworkAccessOption()); - Assertions.assertEquals("vcjfelisdjubggb", model.targetDiskAccessId()); + Assertions.assertEquals("kfpksokdgo", model.targetDiskAccessId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { TargetDiskNetworkAccessSettings model = new TargetDiskNetworkAccessSettings() - .withTargetDiskNetworkAccessOption(TargetDiskNetworkAccessOption.ENABLE_PUBLIC_ACCESS_FOR_ALL_DISKS) - .withTargetDiskAccessId("vcjfelisdjubggb"); + .withTargetDiskNetworkAccessOption(TargetDiskNetworkAccessOption.ENABLE_PRIVATE_ACCESS_FOR_ALL_DISKS) + .withTargetDiskAccessId("kfpksokdgo"); model = BinaryData.fromObject(model).toObject(TargetDiskNetworkAccessSettings.class); - Assertions.assertEquals(TargetDiskNetworkAccessOption.ENABLE_PUBLIC_ACCESS_FOR_ALL_DISKS, + Assertions.assertEquals(TargetDiskNetworkAccessOption.ENABLE_PRIVATE_ACCESS_FOR_ALL_DISKS, model.targetDiskNetworkAccessOption()); - Assertions.assertEquals("vcjfelisdjubggb", model.targetDiskAccessId()); + Assertions.assertEquals("kfpksokdgo", model.targetDiskAccessId()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/TargetRestoreInfoTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/TargetRestoreInfoTests.java index 4310a259aecf0..f5a7519c757f2 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/TargetRestoreInfoTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/TargetRestoreInfoTests.java @@ -13,24 +13,24 @@ public final class TargetRestoreInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TargetRestoreInfo model = BinaryData.fromString( - "{\"overwriteOption\":\"Invalid\",\"containerId\":\"tf\",\"databaseName\":\"rqwexjkmfxapjwog\",\"targetDirectoryForFileRestore\":\"nobpudcdabtqwpw\"}") + "{\"overwriteOption\":\"Overwrite\",\"containerId\":\"qroohtu\",\"databaseName\":\"maonurj\",\"targetDirectoryForFileRestore\":\"mghihp\"}") .toObject(TargetRestoreInfo.class); - Assertions.assertEquals(OverwriteOptions.INVALID, model.overwriteOption()); - Assertions.assertEquals("tf", model.containerId()); - Assertions.assertEquals("rqwexjkmfxapjwog", model.databaseName()); - Assertions.assertEquals("nobpudcdabtqwpw", model.targetDirectoryForFileRestore()); + Assertions.assertEquals(OverwriteOptions.OVERWRITE, model.overwriteOption()); + Assertions.assertEquals("qroohtu", model.containerId()); + Assertions.assertEquals("maonurj", model.databaseName()); + Assertions.assertEquals("mghihp", model.targetDirectoryForFileRestore()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - TargetRestoreInfo model = new TargetRestoreInfo().withOverwriteOption(OverwriteOptions.INVALID) - .withContainerId("tf") - .withDatabaseName("rqwexjkmfxapjwog") - .withTargetDirectoryForFileRestore("nobpudcdabtqwpw"); + TargetRestoreInfo model = new TargetRestoreInfo().withOverwriteOption(OverwriteOptions.OVERWRITE) + .withContainerId("qroohtu") + .withDatabaseName("maonurj") + .withTargetDirectoryForFileRestore("mghihp"); model = BinaryData.fromObject(model).toObject(TargetRestoreInfo.class); - Assertions.assertEquals(OverwriteOptions.INVALID, model.overwriteOption()); - Assertions.assertEquals("tf", model.containerId()); - Assertions.assertEquals("rqwexjkmfxapjwog", model.databaseName()); - Assertions.assertEquals("nobpudcdabtqwpw", model.targetDirectoryForFileRestore()); + Assertions.assertEquals(OverwriteOptions.OVERWRITE, model.overwriteOption()); + Assertions.assertEquals("qroohtu", model.containerId()); + Assertions.assertEquals("maonurj", model.databaseName()); + Assertions.assertEquals("mghihp", model.targetDirectoryForFileRestore()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ThreatInfoTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ThreatInfoTests.java index 38247e9076a4a..ddfc0c19c85a7 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ThreatInfoTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ThreatInfoTests.java @@ -14,9 +14,9 @@ public final class ThreatInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ThreatInfo model = BinaryData.fromString( - "{\"threatTitle\":\"vqqaatjinrvgo\",\"threatDescription\":\"mfiibfggj\",\"lastUpdatedTime\":\"2021-04-08T04:20:38Z\",\"threatState\":\"InProgress\",\"threatStartTime\":\"2021-03-31T22:10:33Z\",\"threatEndTime\":\"2021-01-31T00:57:49Z\",\"threatURI\":\"tkkgllqwjy\",\"threatSeverity\":\"Warning\"}") + "{\"threatTitle\":\"oxdfgsftu\",\"threatDescription\":\"obrjlnacgcc\",\"lastUpdatedTime\":\"2021-02-22T05:42:06Z\",\"threatState\":\"InProgress\",\"threatStartTime\":\"2021-09-27T05:45:42Z\",\"threatEndTime\":\"2021-03-12T19:47:17Z\",\"threatURI\":\"tnrzvuljra\",\"threatSeverity\":\"Critical\"}") .toObject(ThreatInfo.class); Assertions.assertEquals(ThreatState.IN_PROGRESS, model.threatState()); - Assertions.assertEquals(ThreatSeverity.WARNING, model.threatSeverity()); + Assertions.assertEquals(ThreatSeverity.CRITICAL, model.threatSeverity()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/TieringCostRehydrationInfoTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/TieringCostRehydrationInfoTests.java index 1dec4d405b8b8..f19bcf4b48d34 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/TieringCostRehydrationInfoTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/TieringCostRehydrationInfoTests.java @@ -12,9 +12,9 @@ public final class TieringCostRehydrationInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TieringCostRehydrationInfo model = BinaryData.fromString( - "{\"objectType\":\"TieringCostRehydrationInfo\",\"rehydrationSizeInBytes\":1023621337894474473,\"retailRehydrationCostPerGBPerMonth\":1.183436206533206}") + "{\"objectType\":\"TieringCostRehydrationInfo\",\"rehydrationSizeInBytes\":2277744799537260183,\"retailRehydrationCostPerGBPerMonth\":36.29599037046825}") .toObject(TieringCostRehydrationInfo.class); - Assertions.assertEquals(1023621337894474473L, model.rehydrationSizeInBytes()); - Assertions.assertEquals(1.183436206533206, model.retailRehydrationCostPerGBPerMonth()); + Assertions.assertEquals(2277744799537260183L, model.rehydrationSizeInBytes()); + Assertions.assertEquals(36.29599037046825, model.retailRehydrationCostPerGBPerMonth()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/TieringCostSavingInfoTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/TieringCostSavingInfoTests.java index 15d77cada0365..632ad8993c2ca 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/TieringCostSavingInfoTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/TieringCostSavingInfoTests.java @@ -12,11 +12,11 @@ public final class TieringCostSavingInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TieringCostSavingInfo model = BinaryData.fromString( - "{\"objectType\":\"TieringCostSavingInfo\",\"sourceTierSizeReductionInBytes\":5375436957038506450,\"targetTierSizeIncreaseInBytes\":2456794768398423703,\"retailSourceTierCostPerGBPerMonth\":71.6414818811735,\"retailTargetTierCostPerGBPerMonth\":39.83678643707781}") + "{\"objectType\":\"TieringCostSavingInfo\",\"sourceTierSizeReductionInBytes\":4635782517706692377,\"targetTierSizeIncreaseInBytes\":2129174428071148931,\"retailSourceTierCostPerGBPerMonth\":20.846906648974006,\"retailTargetTierCostPerGBPerMonth\":71.73476210782826}") .toObject(TieringCostSavingInfo.class); - Assertions.assertEquals(5375436957038506450L, model.sourceTierSizeReductionInBytes()); - Assertions.assertEquals(2456794768398423703L, model.targetTierSizeIncreaseInBytes()); - Assertions.assertEquals(71.6414818811735, model.retailSourceTierCostPerGBPerMonth()); - Assertions.assertEquals(39.83678643707781, model.retailTargetTierCostPerGBPerMonth()); + Assertions.assertEquals(4635782517706692377L, model.sourceTierSizeReductionInBytes()); + Assertions.assertEquals(2129174428071148931L, model.targetTierSizeIncreaseInBytes()); + Assertions.assertEquals(20.846906648974006, model.retailSourceTierCostPerGBPerMonth()); + Assertions.assertEquals(71.73476210782826, model.retailTargetTierCostPerGBPerMonth()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/TieringPolicyTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/TieringPolicyTests.java index ee3a1ef2fa97d..9a52339b65031 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/TieringPolicyTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/TieringPolicyTests.java @@ -14,21 +14,21 @@ public final class TieringPolicyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TieringPolicy model - = BinaryData.fromString("{\"tieringMode\":\"Invalid\",\"duration\":369373593,\"durationType\":\"Months\"}") + = BinaryData.fromString("{\"tieringMode\":\"Invalid\",\"duration\":1499657526,\"durationType\":\"Days\"}") .toObject(TieringPolicy.class); Assertions.assertEquals(TieringMode.INVALID, model.tieringMode()); - Assertions.assertEquals(369373593, model.duration()); - Assertions.assertEquals(RetentionDurationType.MONTHS, model.durationType()); + Assertions.assertEquals(1499657526, model.duration()); + Assertions.assertEquals(RetentionDurationType.DAYS, model.durationType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { TieringPolicy model = new TieringPolicy().withTieringMode(TieringMode.INVALID) - .withDuration(369373593) - .withDurationType(RetentionDurationType.MONTHS); + .withDuration(1499657526) + .withDurationType(RetentionDurationType.DAYS); model = BinaryData.fromObject(model).toObject(TieringPolicy.class); Assertions.assertEquals(TieringMode.INVALID, model.tieringMode()); - Assertions.assertEquals(369373593, model.duration()); - Assertions.assertEquals(RetentionDurationType.MONTHS, model.durationType()); + Assertions.assertEquals(1499657526, model.duration()); + Assertions.assertEquals(RetentionDurationType.DAYS, model.durationType()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/UnlockDeleteRequestTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/UnlockDeleteRequestTests.java index 51e687b8ec5da..5ef6938078355 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/UnlockDeleteRequestTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/UnlockDeleteRequestTests.java @@ -13,19 +13,20 @@ public final class UnlockDeleteRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UnlockDeleteRequest model = BinaryData - .fromString("{\"resourceGuardOperationRequests\":[\"sqqzlgcndhz\"],\"resourceToBeDeleted\":\"rfc\"}") + .fromString( + "{\"resourceGuardOperationRequests\":[\"uudtelv\"],\"resourceToBeDeleted\":\"ibdrqrswhbuubpyr\"}") .toObject(UnlockDeleteRequest.class); - Assertions.assertEquals("sqqzlgcndhz", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals("rfc", model.resourceToBeDeleted()); + Assertions.assertEquals("uudtelv", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals("ibdrqrswhbuubpyr", model.resourceToBeDeleted()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { UnlockDeleteRequest model - = new UnlockDeleteRequest().withResourceGuardOperationRequests(Arrays.asList("sqqzlgcndhz")) - .withResourceToBeDeleted("rfc"); + = new UnlockDeleteRequest().withResourceGuardOperationRequests(Arrays.asList("uudtelv")) + .withResourceToBeDeleted("ibdrqrswhbuubpyr"); model = BinaryData.fromObject(model).toObject(UnlockDeleteRequest.class); - Assertions.assertEquals("sqqzlgcndhz", model.resourceGuardOperationRequests().get(0)); - Assertions.assertEquals("rfc", model.resourceToBeDeleted()); + Assertions.assertEquals("uudtelv", model.resourceGuardOperationRequests().get(0)); + Assertions.assertEquals("ibdrqrswhbuubpyr", model.resourceToBeDeleted()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/UnlockDeleteResponseInnerTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/UnlockDeleteResponseInnerTests.java index 6a271ee1539f1..8a6eb39a1ac55 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/UnlockDeleteResponseInnerTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/UnlockDeleteResponseInnerTests.java @@ -11,8 +11,8 @@ public final class UnlockDeleteResponseInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - UnlockDeleteResponseInner model - = BinaryData.fromString("{\"unlockDeleteExpiryTime\":\"r\"}").toObject(UnlockDeleteResponseInner.class); - Assertions.assertEquals("r", model.unlockDeleteExpiryTime()); + UnlockDeleteResponseInner model = BinaryData.fromString("{\"unlockDeleteExpiryTime\":\"tjoxztfw\"}") + .toObject(UnlockDeleteResponseInner.class); + Assertions.assertEquals("tjoxztfw", model.unlockDeleteExpiryTime()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/UserAssignedIdentityPropertiesTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/UserAssignedIdentityPropertiesTests.java index 32eec4c1dc2ef..0386b7ccc4f93 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/UserAssignedIdentityPropertiesTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/UserAssignedIdentityPropertiesTests.java @@ -12,18 +12,18 @@ public final class UserAssignedIdentityPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UserAssignedIdentityProperties model - = BinaryData.fromString("{\"clientId\":\"z\",\"principalId\":\"qnmcjngzqdqx\"}") + = BinaryData.fromString("{\"clientId\":\"mgqzgwldoyc\",\"principalId\":\"llcecfehuwaoa\"}") .toObject(UserAssignedIdentityProperties.class); - Assertions.assertEquals("z", model.clientId()); - Assertions.assertEquals("qnmcjngzqdqx", model.principalId()); + Assertions.assertEquals("mgqzgwldoyc", model.clientId()); + Assertions.assertEquals("llcecfehuwaoa", model.principalId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { UserAssignedIdentityProperties model - = new UserAssignedIdentityProperties().withClientId("z").withPrincipalId("qnmcjngzqdqx"); + = new UserAssignedIdentityProperties().withClientId("mgqzgwldoyc").withPrincipalId("llcecfehuwaoa"); model = BinaryData.fromObject(model).toObject(UserAssignedIdentityProperties.class); - Assertions.assertEquals("z", model.clientId()); - Assertions.assertEquals("qnmcjngzqdqx", model.principalId()); + Assertions.assertEquals("mgqzgwldoyc", model.clientId()); + Assertions.assertEquals("llcecfehuwaoa", model.principalId()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/UserAssignedManagedIdentityDetailsTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/UserAssignedManagedIdentityDetailsTests.java index 9299974bedbfc..82a48a216fa2d 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/UserAssignedManagedIdentityDetailsTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/UserAssignedManagedIdentityDetailsTests.java @@ -13,25 +13,25 @@ public final class UserAssignedManagedIdentityDetailsTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UserAssignedManagedIdentityDetails model = BinaryData.fromString( - "{\"identityArmId\":\"wbzasqbuclj\",\"identityName\":\"yexaoguy\",\"userAssignedIdentityProperties\":{\"clientId\":\"ids\",\"principalId\":\"ultxijjumfq\"}}") + "{\"identityArmId\":\"cmslclblyjxltbs\",\"identityName\":\"scvsfxigctm\",\"userAssignedIdentityProperties\":{\"clientId\":\"upbezqccydrt\",\"principalId\":\"ukdqkkyihztg\"}}") .toObject(UserAssignedManagedIdentityDetails.class); - Assertions.assertEquals("wbzasqbuclj", model.identityArmId()); - Assertions.assertEquals("yexaoguy", model.identityName()); - Assertions.assertEquals("ids", model.userAssignedIdentityProperties().clientId()); - Assertions.assertEquals("ultxijjumfq", model.userAssignedIdentityProperties().principalId()); + Assertions.assertEquals("cmslclblyjxltbs", model.identityArmId()); + Assertions.assertEquals("scvsfxigctm", model.identityName()); + Assertions.assertEquals("upbezqccydrt", model.userAssignedIdentityProperties().clientId()); + Assertions.assertEquals("ukdqkkyihztg", model.userAssignedIdentityProperties().principalId()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { UserAssignedManagedIdentityDetails model - = new UserAssignedManagedIdentityDetails().withIdentityArmId("wbzasqbuclj") - .withIdentityName("yexaoguy") + = new UserAssignedManagedIdentityDetails().withIdentityArmId("cmslclblyjxltbs") + .withIdentityName("scvsfxigctm") .withUserAssignedIdentityProperties( - new UserAssignedIdentityProperties().withClientId("ids").withPrincipalId("ultxijjumfq")); + new UserAssignedIdentityProperties().withClientId("upbezqccydrt").withPrincipalId("ukdqkkyihztg")); model = BinaryData.fromObject(model).toObject(UserAssignedManagedIdentityDetails.class); - Assertions.assertEquals("wbzasqbuclj", model.identityArmId()); - Assertions.assertEquals("yexaoguy", model.identityName()); - Assertions.assertEquals("ids", model.userAssignedIdentityProperties().clientId()); - Assertions.assertEquals("ultxijjumfq", model.userAssignedIdentityProperties().principalId()); + Assertions.assertEquals("cmslclblyjxltbs", model.identityArmId()); + Assertions.assertEquals("scvsfxigctm", model.identityName()); + Assertions.assertEquals("upbezqccydrt", model.userAssignedIdentityProperties().clientId()); + Assertions.assertEquals("ukdqkkyihztg", model.userAssignedIdentityProperties().principalId()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ValidateAzureWorkloadRestoreOperationRequestTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ValidateAzureWorkloadRestoreOperationRequestTests.java new file mode 100644 index 0000000000000..f392e20b6e900 --- /dev/null +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ValidateAzureWorkloadRestoreOperationRequestTests.java @@ -0,0 +1,30 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.recoveryservicesbackup.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.recoveryservicesbackup.models.RestoreRequest; +import com.azure.resourcemanager.recoveryservicesbackup.models.ValidateAzureWorkloadRestoreOperationRequest; +import java.util.Arrays; +import org.junit.jupiter.api.Assertions; + +public final class ValidateAzureWorkloadRestoreOperationRequestTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ValidateAzureWorkloadRestoreOperationRequest model = BinaryData.fromString( + "{\"objectType\":\"ValidateAzureWorkloadRestoreOperationRequest\",\"restoreRequest\":{\"objectType\":\"RestoreRequest\",\"resourceGuardOperationRequests\":[\"pfhnjzudrt\",\"zkg\",\"eboywhczzqrhm\",\"gqbedygi\"]}}") + .toObject(ValidateAzureWorkloadRestoreOperationRequest.class); + Assertions.assertEquals("pfhnjzudrt", model.restoreRequest().resourceGuardOperationRequests().get(0)); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ValidateAzureWorkloadRestoreOperationRequest model + = new ValidateAzureWorkloadRestoreOperationRequest().withRestoreRequest(new RestoreRequest() + .withResourceGuardOperationRequests(Arrays.asList("pfhnjzudrt", "zkg", "eboywhczzqrhm", "gqbedygi"))); + model = BinaryData.fromObject(model).toObject(ValidateAzureWorkloadRestoreOperationRequest.class); + Assertions.assertEquals("pfhnjzudrt", model.restoreRequest().resourceGuardOperationRequests().get(0)); + } +} diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ValidateIaasVMRestoreOperationRequestTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ValidateIaasVMRestoreOperationRequestTests.java index 05a4cb668c2ff..15e7b806a4335 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ValidateIaasVMRestoreOperationRequestTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ValidateIaasVMRestoreOperationRequestTests.java @@ -14,17 +14,16 @@ public final class ValidateIaasVMRestoreOperationRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ValidateIaasVMRestoreOperationRequest model = BinaryData.fromString( - "{\"objectType\":\"ValidateIaasVMRestoreOperationRequest\",\"restoreRequest\":{\"objectType\":\"RestoreRequest\",\"resourceGuardOperationRequests\":[\"tpfinzcpdltkr\",\"gjmtbdrvcqguefzh\",\"mpheqdur\"]}}") + "{\"objectType\":\"ValidateIaasVMRestoreOperationRequest\",\"restoreRequest\":{\"objectType\":\"RestoreRequest\",\"resourceGuardOperationRequests\":[\"bfgrlpunytjlkes\",\"mpathubtah\"]}}") .toObject(ValidateIaasVMRestoreOperationRequest.class); - Assertions.assertEquals("tpfinzcpdltkr", model.restoreRequest().resourceGuardOperationRequests().get(0)); + Assertions.assertEquals("bfgrlpunytjlkes", model.restoreRequest().resourceGuardOperationRequests().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ValidateIaasVMRestoreOperationRequest model - = new ValidateIaasVMRestoreOperationRequest().withRestoreRequest(new RestoreRequest() - .withResourceGuardOperationRequests(Arrays.asList("tpfinzcpdltkr", "gjmtbdrvcqguefzh", "mpheqdur"))); + ValidateIaasVMRestoreOperationRequest model = new ValidateIaasVMRestoreOperationRequest().withRestoreRequest( + new RestoreRequest().withResourceGuardOperationRequests(Arrays.asList("bfgrlpunytjlkes", "mpathubtah"))); model = BinaryData.fromObject(model).toObject(ValidateIaasVMRestoreOperationRequest.class); - Assertions.assertEquals("tpfinzcpdltkr", model.restoreRequest().resourceGuardOperationRequests().get(0)); + Assertions.assertEquals("bfgrlpunytjlkes", model.restoreRequest().resourceGuardOperationRequests().get(0)); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ValidateOperationRequestResourceTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ValidateOperationRequestResourceTests.java index 2d00406bde896..5c03b924cb717 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ValidateOperationRequestResourceTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ValidateOperationRequestResourceTests.java @@ -12,17 +12,17 @@ public final class ValidateOperationRequestResourceTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ValidateOperationRequestResource model - = BinaryData.fromString("{\"id\":\"jiuazjc\",\"properties\":{\"objectType\":\"ValidateOperationRequest\"}}") - .toObject(ValidateOperationRequestResource.class); - Assertions.assertEquals("jiuazjc", model.id()); + ValidateOperationRequestResource model = BinaryData + .fromString("{\"id\":\"riyehqbeivdlhy\",\"properties\":{\"objectType\":\"ValidateOperationRequest\"}}") + .toObject(ValidateOperationRequestResource.class); + Assertions.assertEquals("riyehqbeivdlhy", model.id()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ValidateOperationRequestResource model - = new ValidateOperationRequestResource().withId("jiuazjc").withProperties(new ValidateOperationRequest()); + ValidateOperationRequestResource model = new ValidateOperationRequestResource().withId("riyehqbeivdlhy") + .withProperties(new ValidateOperationRequest()); model = BinaryData.fromObject(model).toObject(ValidateOperationRequestResource.class); - Assertions.assertEquals("jiuazjc", model.id()); + Assertions.assertEquals("riyehqbeivdlhy", model.id()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ValidateRestoreOperationRequestTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ValidateRestoreOperationRequestTests.java index ecddbf6074b2e..64ad36b6474bc 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ValidateRestoreOperationRequestTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/ValidateRestoreOperationRequestTests.java @@ -14,16 +14,17 @@ public final class ValidateRestoreOperationRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ValidateRestoreOperationRequest model = BinaryData.fromString( - "{\"objectType\":\"ValidateRestoreOperationRequest\",\"restoreRequest\":{\"objectType\":\"RestoreRequest\",\"resourceGuardOperationRequests\":[\"jlfyou\",\"pckyec\",\"cdigpt\"]}}") + "{\"objectType\":\"ValidateRestoreOperationRequest\",\"restoreRequest\":{\"objectType\":\"RestoreRequest\",\"resourceGuardOperationRequests\":[\"iiwllbvgwzsf\",\"tedousnktjtgrava\",\"ogfkbebauzlqb\"]}}") .toObject(ValidateRestoreOperationRequest.class); - Assertions.assertEquals("jlfyou", model.restoreRequest().resourceGuardOperationRequests().get(0)); + Assertions.assertEquals("iiwllbvgwzsf", model.restoreRequest().resourceGuardOperationRequests().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ValidateRestoreOperationRequest model = new ValidateRestoreOperationRequest().withRestoreRequest( - new RestoreRequest().withResourceGuardOperationRequests(Arrays.asList("jlfyou", "pckyec", "cdigpt"))); + ValidateRestoreOperationRequest model = new ValidateRestoreOperationRequest() + .withRestoreRequest(new RestoreRequest().withResourceGuardOperationRequests( + Arrays.asList("iiwllbvgwzsf", "tedousnktjtgrava", "ogfkbebauzlqb"))); model = BinaryData.fromObject(model).toObject(ValidateRestoreOperationRequest.class); - Assertions.assertEquals("jlfyou", model.restoreRequest().resourceGuardOperationRequests().get(0)); + Assertions.assertEquals("iiwllbvgwzsf", model.restoreRequest().resourceGuardOperationRequests().get(0)); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/VaultJobExtendedInfoTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/VaultJobExtendedInfoTests.java index a6f2596fb7011..94a06e4f38f1d 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/VaultJobExtendedInfoTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/VaultJobExtendedInfoTests.java @@ -11,8 +11,10 @@ public final class VaultJobExtendedInfoTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - VaultJobExtendedInfo model - = BinaryData.fromString("{\"propertyBag\":{\"oe\":\"yank\"}}").toObject(VaultJobExtendedInfo.class); - Assertions.assertEquals("yank", model.propertyBag().get("oe")); + VaultJobExtendedInfo model = BinaryData + .fromString( + "{\"propertyBag\":{\"ntnrgmqsorh\":\"fqb\",\"ykmxcpwzvm\":\"ekxgn\",\"wlwxlboncqbazqic\":\"oksqdt\"}}") + .toObject(VaultJobExtendedInfo.class); + Assertions.assertEquals("fqb", model.propertyBag().get("ntnrgmqsorh")); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/VaultRetentionPolicyTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/VaultRetentionPolicyTests.java index 422d84cbe41ca..b04a111e8104b 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/VaultRetentionPolicyTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/VaultRetentionPolicyTests.java @@ -13,16 +13,16 @@ public final class VaultRetentionPolicyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { VaultRetentionPolicy model = BinaryData.fromString( - "{\"vaultRetention\":{\"retentionPolicyType\":\"RetentionPolicy\"},\"snapshotRetentionInDays\":2029027223}") + "{\"vaultRetention\":{\"retentionPolicyType\":\"RetentionPolicy\"},\"snapshotRetentionInDays\":1717861767}") .toObject(VaultRetentionPolicy.class); - Assertions.assertEquals(2029027223, model.snapshotRetentionInDays()); + Assertions.assertEquals(1717861767, model.snapshotRetentionInDays()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { VaultRetentionPolicy model = new VaultRetentionPolicy().withVaultRetention(new RetentionPolicy()) - .withSnapshotRetentionInDays(2029027223); + .withSnapshotRetentionInDays(1717861767); model = BinaryData.fromObject(model).toObject(VaultRetentionPolicy.class); - Assertions.assertEquals(2029027223, model.snapshotRetentionInDays()); + Assertions.assertEquals(1717861767, model.snapshotRetentionInDays()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/WeeklyRetentionFormatTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/WeeklyRetentionFormatTests.java index 622b73a4dc9b0..63b2299652708 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/WeeklyRetentionFormatTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/WeeklyRetentionFormatTests.java @@ -14,21 +14,21 @@ public final class WeeklyRetentionFormatTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - WeeklyRetentionFormat model = BinaryData - .fromString( - "{\"daysOfTheWeek\":[\"Monday\",\"Saturday\"],\"weeksOfTheMonth\":[\"First\",\"Second\",\"Last\"]}") + WeeklyRetentionFormat model = BinaryData.fromString( + "{\"daysOfTheWeek\":[\"Saturday\",\"Wednesday\",\"Sunday\",\"Sunday\"],\"weeksOfTheMonth\":[\"Fourth\",\"Fourth\",\"Last\"]}") .toObject(WeeklyRetentionFormat.class); - Assertions.assertEquals(DayOfWeek.MONDAY, model.daysOfTheWeek().get(0)); - Assertions.assertEquals(WeekOfMonth.FIRST, model.weeksOfTheMonth().get(0)); + Assertions.assertEquals(DayOfWeek.SATURDAY, model.daysOfTheWeek().get(0)); + Assertions.assertEquals(WeekOfMonth.FOURTH, model.weeksOfTheMonth().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - WeeklyRetentionFormat model - = new WeeklyRetentionFormat().withDaysOfTheWeek(Arrays.asList(DayOfWeek.MONDAY, DayOfWeek.SATURDAY)) - .withWeeksOfTheMonth(Arrays.asList(WeekOfMonth.FIRST, WeekOfMonth.SECOND, WeekOfMonth.LAST)); + WeeklyRetentionFormat model = new WeeklyRetentionFormat() + .withDaysOfTheWeek( + Arrays.asList(DayOfWeek.SATURDAY, DayOfWeek.WEDNESDAY, DayOfWeek.SUNDAY, DayOfWeek.SUNDAY)) + .withWeeksOfTheMonth(Arrays.asList(WeekOfMonth.FOURTH, WeekOfMonth.FOURTH, WeekOfMonth.LAST)); model = BinaryData.fromObject(model).toObject(WeeklyRetentionFormat.class); - Assertions.assertEquals(DayOfWeek.MONDAY, model.daysOfTheWeek().get(0)); - Assertions.assertEquals(WeekOfMonth.FIRST, model.weeksOfTheMonth().get(0)); + Assertions.assertEquals(DayOfWeek.SATURDAY, model.daysOfTheWeek().get(0)); + Assertions.assertEquals(WeekOfMonth.FOURTH, model.weeksOfTheMonth().get(0)); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/WeeklyRetentionScheduleTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/WeeklyRetentionScheduleTests.java index a4a56bbaad2b8..e9f0564cb69ab 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/WeeklyRetentionScheduleTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/WeeklyRetentionScheduleTests.java @@ -17,26 +17,26 @@ public final class WeeklyRetentionScheduleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WeeklyRetentionSchedule model = BinaryData.fromString( - "{\"daysOfTheWeek\":[\"Sunday\",\"Thursday\",\"Monday\",\"Saturday\"],\"retentionTimes\":[\"2021-07-08T18:18:21Z\"],\"retentionDuration\":{\"count\":1404666086,\"durationType\":\"Months\"}}") + "{\"daysOfTheWeek\":[\"Tuesday\",\"Sunday\",\"Sunday\",\"Thursday\"],\"retentionTimes\":[\"2021-01-21T20:15:41Z\",\"2021-02-04T14:25:58Z\",\"2021-03-21T15:10:17Z\"],\"retentionDuration\":{\"count\":997445403,\"durationType\":\"Months\"}}") .toObject(WeeklyRetentionSchedule.class); - Assertions.assertEquals(DayOfWeek.SUNDAY, model.daysOfTheWeek().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-08T18:18:21Z"), model.retentionTimes().get(0)); - Assertions.assertEquals(1404666086, model.retentionDuration().count()); + Assertions.assertEquals(DayOfWeek.TUESDAY, model.daysOfTheWeek().get(0)); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-21T20:15:41Z"), model.retentionTimes().get(0)); + Assertions.assertEquals(997445403, model.retentionDuration().count()); Assertions.assertEquals(RetentionDurationType.MONTHS, model.retentionDuration().durationType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { WeeklyRetentionSchedule model = new WeeklyRetentionSchedule() - .withDaysOfTheWeek( - Arrays.asList(DayOfWeek.SUNDAY, DayOfWeek.THURSDAY, DayOfWeek.MONDAY, DayOfWeek.SATURDAY)) - .withRetentionTimes(Arrays.asList(OffsetDateTime.parse("2021-07-08T18:18:21Z"))) + .withDaysOfTheWeek(Arrays.asList(DayOfWeek.TUESDAY, DayOfWeek.SUNDAY, DayOfWeek.SUNDAY, DayOfWeek.THURSDAY)) + .withRetentionTimes(Arrays.asList(OffsetDateTime.parse("2021-01-21T20:15:41Z"), + OffsetDateTime.parse("2021-02-04T14:25:58Z"), OffsetDateTime.parse("2021-03-21T15:10:17Z"))) .withRetentionDuration( - new RetentionDuration().withCount(1404666086).withDurationType(RetentionDurationType.MONTHS)); + new RetentionDuration().withCount(997445403).withDurationType(RetentionDurationType.MONTHS)); model = BinaryData.fromObject(model).toObject(WeeklyRetentionSchedule.class); - Assertions.assertEquals(DayOfWeek.SUNDAY, model.daysOfTheWeek().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-07-08T18:18:21Z"), model.retentionTimes().get(0)); - Assertions.assertEquals(1404666086, model.retentionDuration().count()); + Assertions.assertEquals(DayOfWeek.TUESDAY, model.daysOfTheWeek().get(0)); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-21T20:15:41Z"), model.retentionTimes().get(0)); + Assertions.assertEquals(997445403, model.retentionDuration().count()); Assertions.assertEquals(RetentionDurationType.MONTHS, model.retentionDuration().durationType()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/WeeklyScheduleTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/WeeklyScheduleTests.java index 1eb20c76d4c97..5285d37d8ff8a 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/WeeklyScheduleTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/WeeklyScheduleTests.java @@ -15,20 +15,20 @@ public final class WeeklyScheduleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WeeklySchedule model = BinaryData.fromString( - "{\"scheduleRunDays\":[\"Friday\",\"Monday\",\"Wednesday\",\"Sunday\"],\"scheduleRunTimes\":[\"2021-04-20T11:51:51Z\"]}") + "{\"scheduleRunDays\":[\"Friday\",\"Thursday\"],\"scheduleRunTimes\":[\"2021-11-09T08:51:20Z\",\"2021-09-13T14:02:46Z\",\"2021-03-24T18:46Z\"]}") .toObject(WeeklySchedule.class); Assertions.assertEquals(DayOfWeek.FRIDAY, model.scheduleRunDays().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-20T11:51:51Z"), model.scheduleRunTimes().get(0)); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-09T08:51:20Z"), model.scheduleRunTimes().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - WeeklySchedule model = new WeeklySchedule() - .withScheduleRunDays( - Arrays.asList(DayOfWeek.FRIDAY, DayOfWeek.MONDAY, DayOfWeek.WEDNESDAY, DayOfWeek.SUNDAY)) - .withScheduleRunTimes(Arrays.asList(OffsetDateTime.parse("2021-04-20T11:51:51Z"))); + WeeklySchedule model + = new WeeklySchedule().withScheduleRunDays(Arrays.asList(DayOfWeek.FRIDAY, DayOfWeek.THURSDAY)) + .withScheduleRunTimes(Arrays.asList(OffsetDateTime.parse("2021-11-09T08:51:20Z"), + OffsetDateTime.parse("2021-09-13T14:02:46Z"), OffsetDateTime.parse("2021-03-24T18:46Z"))); model = BinaryData.fromObject(model).toObject(WeeklySchedule.class); Assertions.assertEquals(DayOfWeek.FRIDAY, model.scheduleRunDays().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-04-20T11:51:51Z"), model.scheduleRunTimes().get(0)); + Assertions.assertEquals(OffsetDateTime.parse("2021-11-09T08:51:20Z"), model.scheduleRunTimes().get(0)); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/WorkloadItemResourceInnerTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/WorkloadItemResourceInnerTests.java index 0bba22e3e808c..1592d9d7b4fd1 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/WorkloadItemResourceInnerTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/WorkloadItemResourceInnerTests.java @@ -13,14 +13,14 @@ public final class WorkloadItemResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadItemResourceInner model = BinaryData.fromString( - "{\"location\":\"owzfttsttkt\",\"tags\":{\"tmmqtgqqqxhrn\":\"bqactxtgzukx\"},\"eTag\":\"xcpjuisavokqdzf\",\"properties\":{\"workloadItemType\":\"WorkloadItem\",\"backupManagementType\":\"ivjlfrqttbajlka\",\"workloadType\":\"wxyiopidkqq\",\"friendlyName\":\"uvscxkdmligov\",\"protectionState\":\"Protecting\"},\"id\":\"kpmloa\",\"name\":\"uruocbgo\",\"type\":\"rb\"}") + "{\"location\":\"ewzjkjexfd\",\"tags\":{\"bffmbmxz\":\"hpsylkksh\",\"jx\":\"rgywwp\",\"gaao\":\"nptfujgi\",\"wemxswvruunzz\":\"pttaqutd\"},\"eTag\":\"ehkfkimrtixok\",\"properties\":{\"workloadItemType\":\"WorkloadItem\",\"backupManagementType\":\"yinljqe\",\"workloadType\":\"whixmonstsh\",\"friendlyName\":\"xgvelfclduccbird\",\"protectionState\":\"Invalid\"},\"id\":\"cobiegstmninwjiz\",\"name\":\"i\",\"type\":\"nghgshej\"}") .toObject(WorkloadItemResourceInner.class); - Assertions.assertEquals("owzfttsttkt", model.location()); - Assertions.assertEquals("bqactxtgzukx", model.tags().get("tmmqtgqqqxhrn")); - Assertions.assertEquals("xcpjuisavokqdzf", model.eTag()); - Assertions.assertEquals("ivjlfrqttbajlka", model.properties().backupManagementType()); - Assertions.assertEquals("wxyiopidkqq", model.properties().workloadType()); - Assertions.assertEquals("uvscxkdmligov", model.properties().friendlyName()); - Assertions.assertEquals(ProtectionStatus.PROTECTING, model.properties().protectionState()); + Assertions.assertEquals("ewzjkjexfd", model.location()); + Assertions.assertEquals("hpsylkksh", model.tags().get("bffmbmxz")); + Assertions.assertEquals("ehkfkimrtixok", model.eTag()); + Assertions.assertEquals("yinljqe", model.properties().backupManagementType()); + Assertions.assertEquals("whixmonstsh", model.properties().workloadType()); + Assertions.assertEquals("xgvelfclduccbird", model.properties().friendlyName()); + Assertions.assertEquals(ProtectionStatus.INVALID, model.properties().protectionState()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/WorkloadItemResourceListTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/WorkloadItemResourceListTests.java index 642f2bf685ac6..b06820d4cf65e 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/WorkloadItemResourceListTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/WorkloadItemResourceListTests.java @@ -13,15 +13,15 @@ public final class WorkloadItemResourceListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadItemResourceList model = BinaryData.fromString( - "{\"value\":[{\"location\":\"klvxwmyg\",\"tags\":{\"sze\":\"gpqch\",\"rxgibbd\":\"nnbj\",\"kokwbqplhlvnu\":\"xconfozauors\",\"phwzsoldweyuqdu\":\"epzl\"},\"eTag\":\"mnnrwr\",\"properties\":{\"workloadItemType\":\"WorkloadItem\",\"backupManagementType\":\"rk\",\"workloadType\":\"lywjhh\",\"friendlyName\":\"nhxmsi\",\"protectionState\":\"Invalid\"},\"id\":\"iloxggdufiq\",\"name\":\"dieuzaofj\",\"type\":\"hvcyyysfg\"},{\"location\":\"tcubiipuipwoqonm\",\"tags\":{\"shqvcimpev\":\"ekni\",\"bywdxsmicc\":\"gmblrri\",\"zdvoqytibyowbb\":\"rwfscjfnynszquj\"},\"eTag\":\"yavutpthjoxois\",\"properties\":{\"workloadItemType\":\"WorkloadItem\",\"backupManagementType\":\"sbpimlq\",\"workloadType\":\"jxkcgxxlxsff\",\"friendlyName\":\"vizqzdwl\",\"protectionState\":\"NotProtected\"},\"id\":\"oupfgfb\",\"name\":\"jub\",\"type\":\"yhgk\"}],\"nextLink\":\"in\"}") + "{\"value\":[{\"location\":\"fzsvtuikzh\",\"tags\":{\"nzrdpsovwxz\":\"glcfhmlrqryxyn\",\"hv\":\"ptgoeiybbabp\",\"igjkskyrio\":\"slkvntjl\",\"mifrygznmma\":\"vzidsxwaab\"},\"eTag\":\"izkzobgo\",\"properties\":{\"workloadItemType\":\"WorkloadItem\",\"backupManagementType\":\"hsln\",\"workloadType\":\"xieixynllxec\",\"friendlyName\":\"rojphslhcawjutif\",\"protectionState\":\"Protected\"},\"id\":\"vigorqjbttzhragl\",\"name\":\"afhonqj\",\"type\":\"jeick\"},{\"location\":\"vcpopmxe\",\"tags\":{\"jedexxmlf\":\"clt\",\"uamwabzxrvxc\":\"kqscazuawxtzx\",\"sphaivmxyasflvg\":\"s\"},\"eTag\":\"zwywako\",\"properties\":{\"workloadItemType\":\"WorkloadItem\",\"backupManagementType\":\"nsmjbl\",\"workloadType\":\"jhlnymzotqyryu\",\"friendlyName\":\"bmqqvxmvw\",\"protectionState\":\"ProtectionFailed\"},\"id\":\"yxonsupe\",\"name\":\"jlzqnhc\",\"type\":\"sqltnzo\"},{\"location\":\"gsxgnxfyqon\",\"tags\":{\"dofdbxiqx\":\"ox\",\"htmwwinh\":\"iiqbi\"},\"eTag\":\"f\",\"properties\":{\"workloadItemType\":\"WorkloadItem\",\"backupManagementType\":\"fvwbcb\",\"workloadType\":\"mbnkb\",\"friendlyName\":\"qvxkd\",\"protectionState\":\"Protecting\"},\"id\":\"heb\",\"name\":\"tswbzuwfmd\",\"type\":\"ragegi\"},{\"location\":\"cjfelisdjubgg\",\"tags\":{\"cyrcmjdmspo\":\"gkxkbsazgakg\",\"rylniofrzg\":\"apvu\",\"bcuiiz\":\"zjedmstkvnlv\"},\"eTag\":\"twfans\",\"properties\":{\"workloadItemType\":\"WorkloadItem\",\"backupManagementType\":\"dibmikostbzbkiwb\",\"workloadType\":\"n\",\"friendlyName\":\"phzfylsgcrp\",\"protectionState\":\"Protected\"},\"id\":\"nezzcezelfwyfwlw\",\"name\":\"jwetnpsihcla\",\"type\":\"zvaylptrsqqw\"}],\"nextLink\":\"cmwqkchcxwa\"}") .toObject(WorkloadItemResourceList.class); - Assertions.assertEquals("in", model.nextLink()); - Assertions.assertEquals("klvxwmyg", model.value().get(0).location()); - Assertions.assertEquals("gpqch", model.value().get(0).tags().get("sze")); - Assertions.assertEquals("mnnrwr", model.value().get(0).eTag()); - Assertions.assertEquals("rk", model.value().get(0).properties().backupManagementType()); - Assertions.assertEquals("lywjhh", model.value().get(0).properties().workloadType()); - Assertions.assertEquals("nhxmsi", model.value().get(0).properties().friendlyName()); - Assertions.assertEquals(ProtectionStatus.INVALID, model.value().get(0).properties().protectionState()); + Assertions.assertEquals("cmwqkchcxwa", model.nextLink()); + Assertions.assertEquals("fzsvtuikzh", model.value().get(0).location()); + Assertions.assertEquals("glcfhmlrqryxyn", model.value().get(0).tags().get("nzrdpsovwxz")); + Assertions.assertEquals("izkzobgo", model.value().get(0).eTag()); + Assertions.assertEquals("hsln", model.value().get(0).properties().backupManagementType()); + Assertions.assertEquals("xieixynllxec", model.value().get(0).properties().workloadType()); + Assertions.assertEquals("rojphslhcawjutif", model.value().get(0).properties().friendlyName()); + Assertions.assertEquals(ProtectionStatus.PROTECTED, model.value().get(0).properties().protectionState()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/WorkloadItemTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/WorkloadItemTests.java index 8d42d701bbc34..3f4a51bb6a3f7 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/WorkloadItemTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/WorkloadItemTests.java @@ -13,11 +13,11 @@ public final class WorkloadItemTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadItem model = BinaryData.fromString( - "{\"workloadItemType\":\"WorkloadItem\",\"backupManagementType\":\"oybfhjxakvvj\",\"workloadType\":\"lordilmywwtkgkxn\",\"friendlyName\":\"dabg\",\"protectionState\":\"NotProtected\"}") + "{\"workloadItemType\":\"WorkloadItem\",\"backupManagementType\":\"bxqmu\",\"workloadType\":\"xlxqzvn\",\"friendlyName\":\"sbycucrwnamikz\",\"protectionState\":\"Invalid\"}") .toObject(WorkloadItem.class); - Assertions.assertEquals("oybfhjxakvvj", model.backupManagementType()); - Assertions.assertEquals("lordilmywwtkgkxn", model.workloadType()); - Assertions.assertEquals("dabg", model.friendlyName()); - Assertions.assertEquals(ProtectionStatus.NOT_PROTECTED, model.protectionState()); + Assertions.assertEquals("bxqmu", model.backupManagementType()); + Assertions.assertEquals("xlxqzvn", model.workloadType()); + Assertions.assertEquals("sbycucrwnamikz", model.friendlyName()); + Assertions.assertEquals(ProtectionStatus.INVALID, model.protectionState()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/WorkloadProtectableItemResourceInnerTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/WorkloadProtectableItemResourceInnerTests.java index 3e05244e202b6..aee81eb71097d 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/WorkloadProtectableItemResourceInnerTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/WorkloadProtectableItemResourceInnerTests.java @@ -13,14 +13,14 @@ public final class WorkloadProtectableItemResourceInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadProtectableItemResourceInner model = BinaryData.fromString( - "{\"location\":\"qsix\",\"tags\":{\"vyqlkjuvsmbmslzo\":\"puj\"},\"eTag\":\"vwzdbpqvyb\",\"properties\":{\"protectableItemType\":\"WorkloadProtectableItem\",\"backupManagementType\":\"vmx\",\"workloadType\":\"kcvtl\",\"friendlyName\":\"seskvcuar\",\"protectionState\":\"Protecting\"},\"id\":\"nlp\",\"name\":\"rykycndzfqivjr\",\"type\":\"uykbbmn\"}") + "{\"location\":\"bfrnuybffljfii\",\"tags\":{\"taadu\":\"oags\",\"wudohzilfm\":\"rexxfavs\"},\"eTag\":\"ikpsimsfeypof\",\"properties\":{\"protectableItemType\":\"WorkloadProtectableItem\",\"backupManagementType\":\"bh\",\"workloadType\":\"gsdrm\",\"friendlyName\":\"tjxophgerhsmv\",\"protectionState\":\"Protected\"},\"id\":\"wzm\",\"name\":\"ilrixysf\",\"type\":\"imsqywwwmhk\"}") .toObject(WorkloadProtectableItemResourceInner.class); - Assertions.assertEquals("qsix", model.location()); - Assertions.assertEquals("puj", model.tags().get("vyqlkjuvsmbmslzo")); - Assertions.assertEquals("vwzdbpqvyb", model.eTag()); - Assertions.assertEquals("vmx", model.properties().backupManagementType()); - Assertions.assertEquals("kcvtl", model.properties().workloadType()); - Assertions.assertEquals("seskvcuar", model.properties().friendlyName()); - Assertions.assertEquals(ProtectionStatus.PROTECTING, model.properties().protectionState()); + Assertions.assertEquals("bfrnuybffljfii", model.location()); + Assertions.assertEquals("oags", model.tags().get("taadu")); + Assertions.assertEquals("ikpsimsfeypof", model.eTag()); + Assertions.assertEquals("bh", model.properties().backupManagementType()); + Assertions.assertEquals("gsdrm", model.properties().workloadType()); + Assertions.assertEquals("tjxophgerhsmv", model.properties().friendlyName()); + Assertions.assertEquals(ProtectionStatus.PROTECTED, model.properties().protectionState()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/WorkloadProtectableItemResourceListTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/WorkloadProtectableItemResourceListTests.java index 733b0468b4d72..414018ab994cd 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/WorkloadProtectableItemResourceListTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/WorkloadProtectableItemResourceListTests.java @@ -13,15 +13,15 @@ public final class WorkloadProtectableItemResourceListTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadProtectableItemResourceList model = BinaryData.fromString( - "{\"value\":[{\"location\":\"zposewxigpxvkqm\",\"tags\":{\"f\":\"xvpif\",\"yzeyuubeid\":\"ify\",\"gygvfltgvdiho\":\"zlfytoit\"},\"eTag\":\"krxwet\",\"properties\":{\"protectableItemType\":\"WorkloadProtectableItem\",\"backupManagementType\":\"rcyrucpcunnu\",\"workloadType\":\"qumoeno\",\"friendlyName\":\"aienhqhsknd\",\"protectionState\":\"Invalid\"},\"id\":\"kaa\",\"name\":\"lknwfoanniyop\",\"type\":\"txiv\"},{\"location\":\"rl\",\"tags\":{\"hblkwqpatvbq\":\"ucae\",\"vuzqymt\":\"dtcjbctv\",\"gitsqh\":\"owog\",\"nfzndscxmxeat\":\"vbrzcdb\"},\"eTag\":\"bmwnrdjyibqb\",\"properties\":{\"protectableItemType\":\"WorkloadProtectableItem\",\"backupManagementType\":\"mhjrm\",\"workloadType\":\"hmaxljalfi\",\"friendlyName\":\"jmobca\",\"protectionState\":\"NotProtected\"},\"id\":\"xxqcwgaxf\",\"name\":\"vaknokzwjj\",\"type\":\"r\"}],\"nextLink\":\"ixldzyyfy\"}") + "{\"value\":[{\"location\":\"aj\",\"tags\":{\"evhamfowg\":\"pq\",\"ofqovchiqbplv\":\"btmkekxpkzwaq\",\"ztekxbyjgmsfep\":\"idu\"},\"eTag\":\"ihpq\",\"properties\":{\"protectableItemType\":\"WorkloadProtectableItem\",\"backupManagementType\":\"grhrdic\",\"workloadType\":\"wyjfowxwyovcxjs\",\"friendlyName\":\"ipcukdveks\",\"protectionState\":\"Invalid\"},\"id\":\"duchvls\",\"name\":\"rdpibfd\",\"type\":\"jdusspyszekb\"}],\"nextLink\":\"lkaaggkr\"}") .toObject(WorkloadProtectableItemResourceList.class); - Assertions.assertEquals("ixldzyyfy", model.nextLink()); - Assertions.assertEquals("zposewxigpxvkqm", model.value().get(0).location()); - Assertions.assertEquals("xvpif", model.value().get(0).tags().get("f")); - Assertions.assertEquals("krxwet", model.value().get(0).eTag()); - Assertions.assertEquals("rcyrucpcunnu", model.value().get(0).properties().backupManagementType()); - Assertions.assertEquals("qumoeno", model.value().get(0).properties().workloadType()); - Assertions.assertEquals("aienhqhsknd", model.value().get(0).properties().friendlyName()); + Assertions.assertEquals("lkaaggkr", model.nextLink()); + Assertions.assertEquals("aj", model.value().get(0).location()); + Assertions.assertEquals("pq", model.value().get(0).tags().get("evhamfowg")); + Assertions.assertEquals("ihpq", model.value().get(0).eTag()); + Assertions.assertEquals("grhrdic", model.value().get(0).properties().backupManagementType()); + Assertions.assertEquals("wyjfowxwyovcxjs", model.value().get(0).properties().workloadType()); + Assertions.assertEquals("ipcukdveks", model.value().get(0).properties().friendlyName()); Assertions.assertEquals(ProtectionStatus.INVALID, model.value().get(0).properties().protectionState()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/WorkloadProtectableItemTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/WorkloadProtectableItemTests.java index ed8e8610ddfc8..6398a59f22e58 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/WorkloadProtectableItemTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/WorkloadProtectableItemTests.java @@ -13,11 +13,11 @@ public final class WorkloadProtectableItemTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { WorkloadProtectableItem model = BinaryData.fromString( - "{\"protectableItemType\":\"WorkloadProtectableItem\",\"backupManagementType\":\"gltbxoeeo\",\"workloadType\":\"lnf\",\"friendlyName\":\"y\",\"protectionState\":\"ProtectionFailed\"}") + "{\"protectableItemType\":\"WorkloadProtectableItem\",\"backupManagementType\":\"wa\",\"workloadType\":\"rympmlq\",\"friendlyName\":\"nhzd\",\"protectionState\":\"ProtectionFailed\"}") .toObject(WorkloadProtectableItem.class); - Assertions.assertEquals("gltbxoeeo", model.backupManagementType()); - Assertions.assertEquals("lnf", model.workloadType()); - Assertions.assertEquals("y", model.friendlyName()); + Assertions.assertEquals("wa", model.backupManagementType()); + Assertions.assertEquals("rympmlq", model.workloadType()); + Assertions.assertEquals("nhzd", model.friendlyName()); Assertions.assertEquals(ProtectionStatus.PROTECTION_FAILED, model.protectionState()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/YearlyRetentionScheduleTests.java b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/YearlyRetentionScheduleTests.java index 34e030995cee5..82aabcc1161fc 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/YearlyRetentionScheduleTests.java +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/src/test/java/com/azure/resourcemanager/recoveryservicesbackup/generated/YearlyRetentionScheduleTests.java @@ -23,16 +23,16 @@ public final class YearlyRetentionScheduleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { YearlyRetentionSchedule model = BinaryData.fromString( - "{\"retentionScheduleFormatType\":\"Invalid\",\"monthsOfYear\":[\"May\"],\"retentionScheduleDaily\":{\"daysOfTheMonth\":[{\"date\":1783861602,\"isLast\":true},{\"date\":167308671,\"isLast\":false}]},\"retentionScheduleWeekly\":{\"daysOfTheWeek\":[\"Friday\",\"Thursday\",\"Thursday\",\"Wednesday\"],\"weeksOfTheMonth\":[\"Last\",\"Invalid\"]},\"retentionTimes\":[\"2021-12-01T08:12:15Z\"],\"retentionDuration\":{\"count\":1474487411,\"durationType\":\"Days\"}}") + "{\"retentionScheduleFormatType\":\"Invalid\",\"monthsOfYear\":[\"June\",\"September\",\"July\"],\"retentionScheduleDaily\":{\"daysOfTheMonth\":[{\"date\":548622893,\"isLast\":true},{\"date\":660013017,\"isLast\":true},{\"date\":769482384,\"isLast\":true}]},\"retentionScheduleWeekly\":{\"daysOfTheWeek\":[\"Wednesday\",\"Tuesday\",\"Wednesday\",\"Monday\"],\"weeksOfTheMonth\":[\"Invalid\"]},\"retentionTimes\":[\"2021-08-25T07:55:06Z\",\"2021-05-12T00:10:25Z\"],\"retentionDuration\":{\"count\":829365709,\"durationType\":\"Days\"}}") .toObject(YearlyRetentionSchedule.class); Assertions.assertEquals(RetentionScheduleFormat.INVALID, model.retentionScheduleFormatType()); - Assertions.assertEquals(MonthOfYear.MAY, model.monthsOfYear().get(0)); - Assertions.assertEquals(1783861602, model.retentionScheduleDaily().daysOfTheMonth().get(0).date()); + Assertions.assertEquals(MonthOfYear.JUNE, model.monthsOfYear().get(0)); + Assertions.assertEquals(548622893, model.retentionScheduleDaily().daysOfTheMonth().get(0).date()); Assertions.assertTrue(model.retentionScheduleDaily().daysOfTheMonth().get(0).isLast()); - Assertions.assertEquals(DayOfWeek.FRIDAY, model.retentionScheduleWeekly().daysOfTheWeek().get(0)); - Assertions.assertEquals(WeekOfMonth.LAST, model.retentionScheduleWeekly().weeksOfTheMonth().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-12-01T08:12:15Z"), model.retentionTimes().get(0)); - Assertions.assertEquals(1474487411, model.retentionDuration().count()); + Assertions.assertEquals(DayOfWeek.WEDNESDAY, model.retentionScheduleWeekly().daysOfTheWeek().get(0)); + Assertions.assertEquals(WeekOfMonth.INVALID, model.retentionScheduleWeekly().weeksOfTheMonth().get(0)); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-25T07:55:06Z"), model.retentionTimes().get(0)); + Assertions.assertEquals(829365709, model.retentionDuration().count()); Assertions.assertEquals(RetentionDurationType.DAYS, model.retentionDuration().durationType()); } @@ -40,25 +40,27 @@ public void testDeserialize() throws Exception { public void testSerialize() throws Exception { YearlyRetentionSchedule model = new YearlyRetentionSchedule().withRetentionScheduleFormatType(RetentionScheduleFormat.INVALID) - .withMonthsOfYear(Arrays.asList(MonthOfYear.MAY)) + .withMonthsOfYear(Arrays.asList(MonthOfYear.JUNE, MonthOfYear.SEPTEMBER, MonthOfYear.JULY)) .withRetentionScheduleDaily(new DailyRetentionFormat().withDaysOfTheMonth(Arrays.asList( - new Day().withDate(1783861602).withIsLast(true), new Day().withDate(167308671).withIsLast(false)))) + new Day().withDate(548622893).withIsLast(true), new Day().withDate(660013017).withIsLast(true), + new Day().withDate(769482384).withIsLast(true)))) .withRetentionScheduleWeekly(new WeeklyRetentionFormat() .withDaysOfTheWeek( - Arrays.asList(DayOfWeek.FRIDAY, DayOfWeek.THURSDAY, DayOfWeek.THURSDAY, DayOfWeek.WEDNESDAY)) - .withWeeksOfTheMonth(Arrays.asList(WeekOfMonth.LAST, WeekOfMonth.INVALID))) - .withRetentionTimes(Arrays.asList(OffsetDateTime.parse("2021-12-01T08:12:15Z"))) + Arrays.asList(DayOfWeek.WEDNESDAY, DayOfWeek.TUESDAY, DayOfWeek.WEDNESDAY, DayOfWeek.MONDAY)) + .withWeeksOfTheMonth(Arrays.asList(WeekOfMonth.INVALID))) + .withRetentionTimes(Arrays.asList(OffsetDateTime.parse("2021-08-25T07:55:06Z"), + OffsetDateTime.parse("2021-05-12T00:10:25Z"))) .withRetentionDuration( - new RetentionDuration().withCount(1474487411).withDurationType(RetentionDurationType.DAYS)); + new RetentionDuration().withCount(829365709).withDurationType(RetentionDurationType.DAYS)); model = BinaryData.fromObject(model).toObject(YearlyRetentionSchedule.class); Assertions.assertEquals(RetentionScheduleFormat.INVALID, model.retentionScheduleFormatType()); - Assertions.assertEquals(MonthOfYear.MAY, model.monthsOfYear().get(0)); - Assertions.assertEquals(1783861602, model.retentionScheduleDaily().daysOfTheMonth().get(0).date()); + Assertions.assertEquals(MonthOfYear.JUNE, model.monthsOfYear().get(0)); + Assertions.assertEquals(548622893, model.retentionScheduleDaily().daysOfTheMonth().get(0).date()); Assertions.assertTrue(model.retentionScheduleDaily().daysOfTheMonth().get(0).isLast()); - Assertions.assertEquals(DayOfWeek.FRIDAY, model.retentionScheduleWeekly().daysOfTheWeek().get(0)); - Assertions.assertEquals(WeekOfMonth.LAST, model.retentionScheduleWeekly().weeksOfTheMonth().get(0)); - Assertions.assertEquals(OffsetDateTime.parse("2021-12-01T08:12:15Z"), model.retentionTimes().get(0)); - Assertions.assertEquals(1474487411, model.retentionDuration().count()); + Assertions.assertEquals(DayOfWeek.WEDNESDAY, model.retentionScheduleWeekly().daysOfTheWeek().get(0)); + Assertions.assertEquals(WeekOfMonth.INVALID, model.retentionScheduleWeekly().weeksOfTheMonth().get(0)); + Assertions.assertEquals(OffsetDateTime.parse("2021-08-25T07:55:06Z"), model.retentionTimes().get(0)); + Assertions.assertEquals(829365709, model.retentionDuration().count()); Assertions.assertEquals(RetentionDurationType.DAYS, model.retentionDuration().durationType()); } } diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/tsp-location.yaml b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/tsp-location.yaml index 133b370147470..db025fdc10aaa 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/tsp-location.yaml +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/recoveryservicesbackup/resource-manager/Microsoft.RecoveryServices/RecoveryServicesBackup -commit: 2d645bb640d282452aa5e0b827a74615c7c530e5 +commit: 6f8edbbe9c190be0e4d61c0018503a406dccbd11 repo: Azure/azure-rest-api-specs additionalDirectories: From e633d9b650ba3fa1a870fa48b1b4beea945742ce Mon Sep 17 00:00:00 2001 From: "azure-sdk-automation[bot]" <191533747+azure-sdk-automation[bot]@users.noreply.github.com> Date: Thu, 22 Oct 2026 16:51:47 +0800 Subject: [PATCH 17/22] Increment package versions for containerservice releases (#50915) Co-authored-by: azure-sdk --- eng/versioning/version_client.txt | 2 +- .../CHANGELOG.md | 10 ++++++++++ .../azure-resourcemanager-containerservice/pom.xml | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 484b6ebfe2a66..aef3012b17166 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -268,7 +268,7 @@ com.azure.resourcemanager:azure-resourcemanager-cdn;2.53.12;2.54.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-compute;2.62.0;2.63.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-containerinstance;2.53.15;2.54.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-containerregistry;2.55.6;2.56.0-beta.4 -com.azure.resourcemanager:azure-resourcemanager-containerservice;2.65.0;2.66.0-beta.1 +com.azure.resourcemanager:azure-resourcemanager-containerservice;2.65.0;2.66.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-cosmos;2.55.3;2.56.0-beta.2 com.azure.resourcemanager:azure-resourcemanager-dns;2.53.12;2.54.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-eventhubs;2.53.13;2.54.0-beta.1 diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/CHANGELOG.md b/sdk/containerservice/azure-resourcemanager-containerservice/CHANGELOG.md index 701cd0d2583b2..b629013db6d35 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/CHANGELOG.md +++ b/sdk/containerservice/azure-resourcemanager-containerservice/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 2.66.0-beta.2 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 2.66.0-beta.1 (2026-10-21) - Package api-version 2026-08-02-preview. diff --git a/sdk/containerservice/azure-resourcemanager-containerservice/pom.xml b/sdk/containerservice/azure-resourcemanager-containerservice/pom.xml index bb23151dae3ee..af612f3545223 100644 --- a/sdk/containerservice/azure-resourcemanager-containerservice/pom.xml +++ b/sdk/containerservice/azure-resourcemanager-containerservice/pom.xml @@ -10,7 +10,7 @@ com.azure.resourcemanager azure-resourcemanager-containerservice - 2.66.0-beta.1 + 2.66.0-beta.2 jar Microsoft Azure SDK for Container Service Management From c428662126ce6ba8873d45ddcd676e6807b69940 Mon Sep 17 00:00:00 2001 From: Xiaofei Cao <92354331+XiaofeiCao@users.noreply.github.com> Date: Thu, 22 Oct 2026 17:32:38 +0800 Subject: [PATCH 18/22] Improve changelog reporting for class/interface transitions (#50914) * Improve changelog reporting for class/interface transitions Report class-to-interface and interface-to-class changes explicitly and omit method changes explained only by the corresponding abstractness transition. Preserve independent API changes and cover Markdown and JSON output. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 519cce06-f39b-471d-ba8e-8a4448e8102d * Refine structured type-transition descriptions Store the shared type transition separately and render subject-first breaking-change items while preserving Markdown output. Co-authored-by: Copilot App <223556219+Copilot@users.noreply.github.com> Copilot-Session: 519cce06-f39b-471d-ba8e-8a4448e8102d --------- Copilot-Session: 519cce06-f39b-471d-ba8e-8a4448e8102d --- .../tools/changelog/changelog/ChangeLog.java | 34 +++ .../tools/changelog/utils/BreakingChange.java | 24 +- .../tools/changelog/BreakingChangeTests.java | 21 ++ .../tools/changelog/TypeChangeTests.java | 223 ++++++++++++++++++ 4 files changed, 294 insertions(+), 8 deletions(-) create mode 100644 eng/automation/changelog/src/test/java/com/azure/resourcemanager/tools/changelog/TypeChangeTests.java diff --git a/eng/automation/changelog/src/main/java/com/azure/resourcemanager/tools/changelog/changelog/ChangeLog.java b/eng/automation/changelog/src/main/java/com/azure/resourcemanager/tools/changelog/changelog/ChangeLog.java index e6229474ced4f..18bfe6e034527 100644 --- a/eng/automation/changelog/src/main/java/com/azure/resourcemanager/tools/changelog/changelog/ChangeLog.java +++ b/eng/automation/changelog/src/main/java/com/azure/resourcemanager/tools/changelog/changelog/ChangeLog.java @@ -10,10 +10,13 @@ import japicmp.model.AccessModifier; import japicmp.model.JApiChangeStatus; import japicmp.model.JApiClass; +import japicmp.model.JApiClassType; +import japicmp.model.JApiClassType.ClassType; import japicmp.model.JApiConstructor; import japicmp.model.JApiField; import japicmp.model.JApiMethod; import japicmp.model.StaticModifier; +import javassist.CtMethod; import javassist.bytecode.AccessFlag; import java.util.ArrayList; @@ -125,6 +128,11 @@ private void calcChangeLogForClass() { case NEW: newFeature.add(String.format("* `%s` was added", getJApiClass().getFullyQualifiedName())); break; case REMOVED: breakingChange.setClassLevelChangeType(BreakingChange.Type.REMOVED); break; default: + if (isClassTypeChange(ClassType.CLASS, ClassType.INTERFACE)) { + breakingChange.addClassTypeChange("a class", "an interface"); + } else if (isClassTypeChange(ClassType.INTERFACE, ClassType.CLASS)) { + breakingChange.addClassTypeChange("an interface", "a class"); + } boolean checkReturnType = !ClassName.name(getJApiClass()).equals("Definition"); allMethods.getConstructors().forEach(constructor -> this.calcChangelogForConstructor(constructor)); allMethods.getMethods().forEach(method -> this.calcChangelogForMethod(method, checkReturnType)); @@ -150,6 +158,9 @@ private void calcChangelogForMethod(JApiMethod method, boolean checkReturnType) breakingChange.addMethodLevelChange(String.format("`%s` was removed", MethodName.name(method.getOldMethod().get()))); break; case MODIFIED: + if (isRedundantAbstractnessChange(method)) { + break; + } if (!checkReturnType){ if (!method.getOldMethod().get().getLongName().equals(method.getNewMethod().get().getLongName())) { breakingChange.addMethodLevelChange(String.format("`%s` -> `%s`", MethodName.name(method.getOldMethod().get()), MethodName.name(method.getNewMethod().get()))); @@ -161,6 +172,29 @@ private void calcChangelogForMethod(JApiMethod method, boolean checkReturnType) } } + private boolean isClassTypeChange(ClassType oldType, ClassType newType) { + JApiClassType classType = getJApiClass().getClassType(); + return classType.getOldTypeOptional().isPresent() && classType.getNewTypeOptional().isPresent() + && classType.getOldTypeOptional().get() == oldType && classType.getNewTypeOptional().get() == newType; + } + + private boolean isRedundantAbstractnessChange(JApiMethod method) { + boolean toInterface = isClassTypeChange(ClassType.CLASS, ClassType.INTERFACE); + if ((!toInterface && !isClassTypeChange(ClassType.INTERFACE, ClassType.CLASS)) + || !method.getjApiClass().getFullyQualifiedName().equals(getJApiClass().getFullyQualifiedName())) { + return false; + } + CtMethod oldMethod = method.getOldMethod().get(); + CtMethod newMethod = method.getNewMethod().get(); + return oldMethod.getSignature().equals(newMethod.getSignature()) + && Objects.equals(oldMethod.getGenericSignature(), newMethod.getGenericSignature()) + && (oldMethod.getModifiers() ^ newMethod.getModifiers()) == AccessFlag.ABSTRACT + && ((newMethod.getModifiers() & AccessFlag.ABSTRACT) != 0) == toInterface + && method.getAnnotations().stream().allMatch(annotation -> annotation.getChangeStatus() == JApiChangeStatus.UNCHANGED) + && method.getExceptions().stream().allMatch(exception -> exception.getChangeStatus() == JApiChangeStatus.UNCHANGED) + && method.getAttributes().stream().allMatch(attribute -> attribute.getChangeStatus() == JApiChangeStatus.UNCHANGED); + } + private void calcChangelogForConstructor(JApiConstructor constructor) { switch (constructor.getChangeStatus()) { case NEW: diff --git a/eng/automation/changelog/src/main/java/com/azure/resourcemanager/tools/changelog/utils/BreakingChange.java b/eng/automation/changelog/src/main/java/com/azure/resourcemanager/tools/changelog/utils/BreakingChange.java index 16d7ae46a1b4d..86b1ba472a177 100644 --- a/eng/automation/changelog/src/main/java/com/azure/resourcemanager/tools/changelog/utils/BreakingChange.java +++ b/eng/automation/changelog/src/main/java/com/azure/resourcemanager/tools/changelog/utils/BreakingChange.java @@ -16,6 +16,7 @@ public class BreakingChange { private final String className; private Type type; + private final Set classTypeChanges = new LinkedHashSet<>(); private final Set methodChanges = new LinkedHashSet<>(); private final Set fieldChanges = new LinkedHashSet<>(); private final Set stageChanges = new LinkedHashSet<>(); @@ -39,6 +40,11 @@ public void addMethodLevelChange(String content) { methodChanges.add(content); } + public void addClassTypeChange(String oldType, String newType) { + setClassLevelChangeType(Type.MODIFIED); + classTypeChanges.add(String.format("%s to %s", oldType, newType)); + } + public void addFieldLevelChange(String content) { setClassLevelChangeType(Type.MODIFIED); fieldChanges.add(content); @@ -56,7 +62,10 @@ public String getForChangelog() { StringBuilder builder = new StringBuilder(); builder.append(String.format("#### `%s` was %s\n\n", className, type.getDisplayName())); int count = 0; - List innerChanges = Stream.concat(Stream.concat(stageChanges.stream(), fieldChanges.stream()), methodChanges.stream()).collect(Collectors.toList()); + List innerChanges = Stream.of(classTypeChanges.stream().map(change -> String.format("Changed from %s.", change)), + stageChanges.stream(), fieldChanges.stream(), methodChanges.stream()) + .flatMap(changes -> changes) + .collect(Collectors.toList()); for (String methodChange : innerChanges) { builder .append("* ") @@ -73,16 +82,15 @@ public String getForChangelog() { public Collection getItems() { if (type == Type.NOT_CHANGED) { return Collections.emptyList(); - } else if (methodChanges.isEmpty() && fieldChanges.isEmpty() && stageChanges.isEmpty()) { + } else if (classTypeChanges.isEmpty() && methodChanges.isEmpty() && fieldChanges.isEmpty() && stageChanges.isEmpty()) { return Collections.singleton(String.format("Class `%s` was %s.", className, type.getDisplayName())); } else { - return Stream.concat( - Stream.concat( - stageChanges.stream().map(stageChange -> String.format("%s in class `%s`.", stageChange, className)), - fieldChanges.stream().map(fieldChange -> String.format("Field %s in class `%s`.", fieldChange, className)) - ), + return Stream.of( + classTypeChanges.stream().map(change -> String.format("Type `%s` changed from %s.", className, change)), + stageChanges.stream().map(stageChange -> String.format("%s in class `%s`.", stageChange, className)), + fieldChanges.stream().map(fieldChange -> String.format("Field %s in class `%s`.", fieldChange, className)), methodChanges.stream().map(methodChange -> String.format("Method %s in class `%s`.", methodChange, className)) - ).collect(Collectors.toList()); + ).flatMap(changes -> changes).collect(Collectors.toList()); } } diff --git a/eng/automation/changelog/src/test/java/com/azure/resourcemanager/tools/changelog/BreakingChangeTests.java b/eng/automation/changelog/src/test/java/com/azure/resourcemanager/tools/changelog/BreakingChangeTests.java index e7f1a0f2e8287..26723c93433d1 100644 --- a/eng/automation/changelog/src/test/java/com/azure/resourcemanager/tools/changelog/BreakingChangeTests.java +++ b/eng/automation/changelog/src/test/java/com/azure/resourcemanager/tools/changelog/BreakingChangeTests.java @@ -44,6 +44,27 @@ public void testBreakingChange() { Assertions.assertEquals("Field `SWAGGER_LINK_JSON` was removed in class `MyClass`.", it.next()); } + @Test + public void testClassTypeChangeDetails() { + BreakingChange breakingChange = BreakingChange.onJavaClass("MyClass"); + breakingChange.addClassTypeChange("a class", "an interface"); + breakingChange.addClassTypeChange("a class", "an interface"); + breakingChange.addMethodLevelChange("`sku()` was removed"); + breakingChange.addFieldLevelChange("`VALUE` was removed"); + breakingChange.addStageLevelChange("Required stage 3 was removed"); + + Assertions.assertEquals("#### `MyClass` was modified\n\n" + + "* Changed from a class to an interface.\n" + + "* Required stage 3 was removed\n" + + "* `VALUE` was removed\n" + + "* `sku()` was removed\n\n", breakingChange.getForChangelog()); + Assertions.assertEquals(java.util.Arrays.asList( + "Type `MyClass` changed from a class to an interface.", + "Required stage 3 was removed in class `MyClass`.", + "Field `VALUE` was removed in class `MyClass`.", + "Method `sku()` was removed in class `MyClass`."), breakingChange.getItems()); + } + @Test public void testCompareJars() { URL oldJar = BreakingChangeTests.class.getResource("/old.jar"); diff --git a/eng/automation/changelog/src/test/java/com/azure/resourcemanager/tools/changelog/TypeChangeTests.java b/eng/automation/changelog/src/test/java/com/azure/resourcemanager/tools/changelog/TypeChangeTests.java new file mode 100644 index 0000000000000..3a705257f999b --- /dev/null +++ b/eng/automation/changelog/src/test/java/com/azure/resourcemanager/tools/changelog/TypeChangeTests.java @@ -0,0 +1,223 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.resourcemanager.tools.changelog; + +import javassist.ClassPool; +import javassist.CtClass; +import javassist.CtConstructor; +import javassist.CtNewConstructor; +import javassist.CtNewMethod; +import javassist.Modifier; +import org.json.JSONObject; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.io.TempDir; + +import java.nio.file.Files; +import java.nio.file.Path; +import java.util.jar.JarEntry; +import java.util.jar.JarOutputStream; + +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertTrue; + +public class TypeChangeTests { + private static final String CLASS_NAME = "com.azure.test.ResourceOperation"; + private static final int CLASS = Modifier.PUBLIC; + private static final int INTERFACE = Modifier.PUBLIC | Modifier.INTERFACE | Modifier.ABSTRACT; + + @TempDir + Path tempDir; + + @Test + public void testClassToInterface() throws Exception { + JSONObject result = compare(CLASS | Modifier.FINAL, INTERFACE, + new String[] { "public String errorCode() { return null; }" }, + new String[] { "public abstract String errorCode();" }); + + assertOnlyTypeChange(result, "a class", "an interface"); + } + + @Test + public void testInterfaceToClass() throws Exception { + JSONObject result = compare(INTERFACE, CLASS, + new String[] { "public abstract String errorCode();" }, + new String[] { "public String errorCode() { return null; }" }); + + assertOnlyTypeChange(result, "an interface", "a class"); + } + + @Test + public void testInterfaceToAbstractClass() throws Exception { + JSONObject result = compare(INTERFACE, CLASS | Modifier.ABSTRACT, + new String[] { "public abstract String errorCode();" }, + new String[] { "public abstract String errorCode();" }); + + assertOnlyTypeChange(result, "an interface", "a class"); + } + + @Test + public void testTypeChangesWithoutMethods() throws Exception { + assertOnlyTypeChange(compare(CLASS, INTERFACE, new String[0], new String[0]), "a class", "an interface"); + assertOnlyTypeChange(compare(INTERFACE, CLASS, new String[0], new String[0]), "an interface", "a class"); + } + + @Test + public void testReturnTypeChangesAreRetained() throws Exception { + for (boolean toInterface : new boolean[] { true, false }) { + JSONObject result = compare(toInterface ? CLASS : INTERFACE, toInterface ? INTERFACE : CLASS, + new String[] { toInterface + ? "public String errorCode() { return null; }" + : "public abstract String errorCode();" }, + new String[] { toInterface + ? "public abstract Object errorCode();" + : "public Object errorCode() { return null; }" }); + + assertChange(result, "`java.lang.String errorCode()` -> `java.lang.Object errorCode()`"); + assertEquals(2, result.getJSONArray("breakingChanges").length()); + } + } + + @Test + public void testParameterChangesAreRetained() throws Exception { + for (boolean toInterface : new boolean[] { true, false }) { + JSONObject result = compare(toInterface ? CLASS : INTERFACE, toInterface ? INTERFACE : CLASS, + new String[] { toInterface + ? "public String errorCode(String code) { return code; }" + : "public abstract String errorCode(String code);" }, + new String[] { toInterface + ? "public abstract String errorCode(int code);" + : "public String errorCode(int code) { return null; }" }); + + assertChange(result, "`errorCode(java.lang.String)` was removed"); + assertTrue(result.getString("changelog").contains("`errorCode(int)` was added")); + } + } + + @Test + public void testAddedAndRemovedMethodsAreRetained() throws Exception { + JSONObject result = compare(CLASS, INTERFACE, + new String[] { + "public String errorCode() { return null; }", + "public static Object fromJson(Object reader) { return null; }", + "public Object toJson(Object writer) { return null; }" + }, + new String[] { + "public abstract String errorCode();", + "public abstract Object innerModel();" + }); + + assertChange(result, "`fromJson(java.lang.Object)` was removed"); + assertChange(result, "`toJson(java.lang.Object)` was removed"); + assertTrue(result.getString("changelog").contains("### Features Added")); + assertTrue(result.getString("changelog").contains("`innerModel()` was added")); + assertFalse(result.getString("changelog").contains("errorCode()")); + assertEquals(3, result.getJSONArray("breakingChanges").length()); + + JSONObject reversed = compare(INTERFACE, CLASS, + new String[] { "public abstract Object innerModel();" }, + new String[] { "public Object toJson(Object writer) { return null; }" }); + assertChange(reversed, "`innerModel()` was removed"); + assertTrue(reversed.getString("changelog").contains("`toJson(java.lang.Object)` was added")); + } + + @Test + public void testIndependentModifiersAreRetained() throws Exception { + JSONObject result = compare(CLASS, INTERFACE, + new String[] { "public static String errorCode() { return null; }" }, + new String[] { "public abstract String errorCode();" }); + assertChange(result, "`java.lang.String errorCode()` -> `java.lang.String errorCode()`"); + assertEquals(2, result.getJSONArray("breakingChanges").length()); + + JSONObject reversed = compare(INTERFACE, CLASS, + new String[] { "public abstract String errorCode();" }, + new String[] { "public static String errorCode() { return null; }" }); + assertChange(reversed, "`java.lang.String errorCode()` -> `java.lang.String errorCode()`"); + assertEquals(2, reversed.getJSONArray("breakingChanges").length()); + } + + @Test + public void testAbstractnessChangeWithoutTypeChangeIsRetained() throws Exception { + JSONObject result = compare(CLASS | Modifier.ABSTRACT, CLASS | Modifier.ABSTRACT, + new String[] { "public String errorCode() { return null; }" }, + new String[] { "public abstract String errorCode();" }); + + assertChange(result, "`java.lang.String errorCode()` -> `java.lang.String errorCode()`"); + assertEquals(1, result.getJSONArray("breakingChanges").length()); + assertFalse(result.getString("changelog").contains("Changed from")); + } + + @Test + public void testExceptionChangeAlongsideTypeChangeIsRetained() throws Exception { + JSONObject result = compare(CLASS, INTERFACE, + new String[] { "public String errorCode() { return null; }" }, + new String[] { "public abstract String errorCode() throws java.io.IOException;" }); + + assertChange(result, "`java.lang.String errorCode()` -> `java.lang.String errorCode()`"); + assertEquals(2, result.getJSONArray("breakingChanges").length()); + } + + private static void assertOnlyTypeChange(JSONObject result, String oldType, String newType) { + String change = "Changed from " + oldType + " to " + newType; + assertEquals("### Breaking Changes\n\n#### `ResourceOperation` was modified\n\n* " + change + ".\n\n", + result.getString("changelog")); + assertEquals(1, result.getJSONArray("breakingChanges").length()); + assertEquals("Type `" + CLASS_NAME + "` changed from " + oldType + " to " + newType + ".", + result.getJSONArray("breakingChanges").getString(0)); + } + + private static void assertChange(JSONObject result, String change) { + assertTrue(result.getString("changelog").contains(change), result.toString()); + assertTrue(result.getJSONArray("breakingChanges").toList() + .contains("Method " + change + " in class `" + CLASS_NAME + "`."), result.toString()); + } + + private JSONObject compare(int oldModifiers, int newModifiers, String[] oldMethods, String[] newMethods) + throws Exception { + Path oldJar = createJar(tempDir.resolve("old.jar"), oldModifiers, oldMethods); + Path newJar = createJar(tempDir.resolve("new.jar"), newModifiers, newMethods); + String previousOldJar = System.getProperty("OLD_JAR"); + String previousNewJar = System.getProperty("NEW_JAR"); + try { + System.setProperty("OLD_JAR", oldJar.toString()); + System.setProperty("NEW_JAR", newJar.toString()); + return Main.getChangelog(); + } finally { + restoreProperty("OLD_JAR", previousOldJar); + restoreProperty("NEW_JAR", previousNewJar); + } + } + + private static Path createJar(Path path, int modifiers, String[] methods) throws Exception { + ClassPool pool = new ClassPool(true); + CtClass type = Modifier.isInterface(modifiers) ? pool.makeInterface(CLASS_NAME) : pool.makeClass(CLASS_NAME); + try { + type.setModifiers(modifiers); + if (!type.isInterface()) { + CtConstructor constructor = CtNewConstructor.defaultConstructor(type); + constructor.setModifiers(Modifier.PRIVATE); + type.addConstructor(constructor); + } + for (String method : methods) { + type.addMethod(CtNewMethod.make(method, type)); + } + try (JarOutputStream jar = new JarOutputStream(Files.newOutputStream(path))) { + jar.putNextEntry(new JarEntry(CLASS_NAME.replace('.', '/') + ".class")); + jar.write(type.toBytecode()); + jar.closeEntry(); + } + } finally { + type.detach(); + } + return path; + } + + private static void restoreProperty(String name, String previousValue) { + if (previousValue == null) { + System.clearProperty(name); + } else { + System.setProperty(name, previousValue); + } + } +} From 29fced16bb1da2c0526a54806ee486b67ab0f60f Mon Sep 17 00:00:00 2001 From: Alan Zimmer <48699787+alzimmermsft@users.noreply.github.com> Date: Thu, 22 Oct 2026 08:13:26 -0400 Subject: [PATCH 19/22] Mark a few outputs as non-production (#50898) --- eng/pipelines/templates/jobs/build-validate-pom.yml | 1 + eng/pipelines/templates/jobs/ci.tests.yml | 3 +++ eng/pipelines/templates/jobs/ci.versions.tests.yml | 1 + eng/pipelines/templates/jobs/live.tests.yml | 2 ++ eng/pipelines/templates/jobs/native.live.tests.yml | 1 + 5 files changed, 8 insertions(+) diff --git a/eng/pipelines/templates/jobs/build-validate-pom.yml b/eng/pipelines/templates/jobs/build-validate-pom.yml index 9fb2e6b17d570..4d3aa86f6cfb8 100644 --- a/eng/pipelines/templates/jobs/build-validate-pom.yml +++ b/eng/pipelines/templates/jobs/build-validate-pom.yml @@ -16,6 +16,7 @@ jobs: displayName: 'Capture repo state for analysis' targetPath: '$(System.DefaultWorkingDirectory)' artifactName: 'repository' + isProduction: false sbomEnabled: false pool: diff --git a/eng/pipelines/templates/jobs/ci.tests.yml b/eng/pipelines/templates/jobs/ci.tests.yml index eb00e853e385b..61ef2ff7a617a 100644 --- a/eng/pipelines/templates/jobs/ci.tests.yml +++ b/eng/pipelines/templates/jobs/ci.tests.yml @@ -105,6 +105,7 @@ jobs: targetPath: $(System.DefaultWorkingDirectory)/troubleshooting displayName: 'Capture troubleshooting artifacts' condition: and(not(succeeded()), eq(variables['HAS_TROUBLESHOOTING'], 'true')) + isProduction: false sbomEnabled: false - output: pipelineArtifact @@ -112,6 +113,7 @@ jobs: targetPath: '$(System.DefaultWorkingDirectory)' displayName: 'Capture repo state for analysis' condition: or(eq(variables['CaptureRepositoryOnFailure'], 'true'), and(failed(), eq(variables['Build.Reason'],'Schedule'))) + isProduction: false sbomEnabled: false # See eng/common/pipelines/templates/steps/upload-llm-artifacts.yml for corresponding file copy step @@ -119,6 +121,7 @@ jobs: targetPath: '$(Build.ArtifactStagingDirectory)/llm-artifacts' artifactName: "LLM Artifacts - $(System.JobName) - $(System.JobAttempt)" condition: eq(variables['uploadLlmArtifacts'], 'true') + isProduction: false sbomEnabled: false steps: diff --git a/eng/pipelines/templates/jobs/ci.versions.tests.yml b/eng/pipelines/templates/jobs/ci.versions.tests.yml index 07d8c4b01fba4..5518e2bf759de 100644 --- a/eng/pipelines/templates/jobs/ci.versions.tests.yml +++ b/eng/pipelines/templates/jobs/ci.versions.tests.yml @@ -55,6 +55,7 @@ jobs: targetPath: '$(System.DefaultWorkingDirectory)' displayName: 'Capture repo state for analysis' condition: or(eq(variables['CaptureRepositoryOnFailure'], 'true'), and(failed(), eq(variables['Build.Reason'],'Schedule'))) + isProduction: false sbomEnabled: false - ${{ each versionOverride in parameters.VersionOverrides }}: diff --git a/eng/pipelines/templates/jobs/live.tests.yml b/eng/pipelines/templates/jobs/live.tests.yml index cfc8a2a3d9fdc..6f1e7cf5ba004 100644 --- a/eng/pipelines/templates/jobs/live.tests.yml +++ b/eng/pipelines/templates/jobs/live.tests.yml @@ -67,6 +67,7 @@ jobs: targetPath: $(System.DefaultWorkingDirectory)/troubleshooting displayName: 'Capture troubleshooting artifacts' condition: and(not(succeeded()), eq(variables['HAS_TROUBLESHOOTING'], 'true')) + isProduction: false sbomEnabled: false - output: pipelineArtifact @@ -74,6 +75,7 @@ jobs: targetPath: '$(System.DefaultWorkingDirectory)' displayName: 'Capture repo state for analysis' condition: or(eq(variables['CaptureRepositoryOnFailure'], 'true'), and(failed(), eq(variables['Build.Reason'],'Schedule'))) + isProduction: false sbomEnabled: false steps: diff --git a/eng/pipelines/templates/jobs/native.live.tests.yml b/eng/pipelines/templates/jobs/native.live.tests.yml index e53078d5db6c9..c30da02607c74 100644 --- a/eng/pipelines/templates/jobs/native.live.tests.yml +++ b/eng/pipelines/templates/jobs/native.live.tests.yml @@ -106,6 +106,7 @@ jobs: targetPath: $(System.DefaultWorkingDirectory)/troubleshooting displayName: 'Capture troubleshooting artifacts' condition: and(not(succeeded()), eq(variables['HAS_TROUBLESHOOTING'], 'true')) + isProduction: false sbomEnabled: false steps: From 68a0107bfefdea4ed4aaa9a3e16cb9d1b3f9f72b Mon Sep 17 00:00:00 2001 From: "azure-sdk-automation[bot]" <191533747+azure-sdk-automation[bot]@users.noreply.github.com> Date: Thu, 22 Oct 2026 08:14:02 -0400 Subject: [PATCH 20/22] Increment package versions for recoveryservicesbackup auto-releases (#50919) Co-authored-by: azure-sdk --- eng/versioning/version_client.txt | 2 +- .../CHANGELOG.md | 10 ++++++++++ .../pom.xml | 2 +- 3 files changed, 12 insertions(+), 2 deletions(-) diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index aef3012b17166..1f1eead30937e 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -365,7 +365,7 @@ com.azure.resourcemanager:azure-resourcemanager-managedapplications;1.0.0;1.1.0- com.azure.resourcemanager:azure-resourcemanager-imagebuilder;1.3.0;1.4.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-maps;1.1.0;1.2.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-botservice;1.0.0;1.1.0-beta.1 -com.azure.resourcemanager:azure-resourcemanager-recoveryservicesbackup;1.8.0;1.9.0 +com.azure.resourcemanager:azure-resourcemanager-recoveryservicesbackup;1.9.0;1.10.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-postgresqlflexibleserver;2.0.0;2.1.0-beta.4 com.azure.resourcemanager:azure-resourcemanager-deviceprovisioningservices;1.2.0;1.3.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-elastic;1.2.0;1.3.0-beta.1 diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/CHANGELOG.md b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/CHANGELOG.md index 4d5e6535c23d8..36b6853518af5 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/CHANGELOG.md +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/CHANGELOG.md @@ -1,5 +1,15 @@ # Release History +## 1.10.0-beta.1 (Unreleased) + +### Features Added + +### Breaking Changes + +### Bugs Fixed + +### Other Changes + ## 1.9.0 (2026-10-14) - Azure Resource Manager Recovery Services Backup client library for Java. This package contains Microsoft Azure SDK for Recovery Services Backup Management SDK. Open API 2.0 Specs for Azure RecoveryServices Backup service. Package api-version 2026-10-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). diff --git a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/pom.xml b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/pom.xml index 139b090f0d90a..36ced9c744293 100644 --- a/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/pom.xml +++ b/sdk/recoveryservicesbackup/azure-resourcemanager-recoveryservicesbackup/pom.xml @@ -14,7 +14,7 @@ com.azure.resourcemanager azure-resourcemanager-recoveryservicesbackup - 1.9.0 + 1.10.0-beta.1 jar Microsoft Azure SDK for Recovery Services Backup Management From e386e50b307151f6971f57a9189a5ef2996c8668 Mon Sep 17 00:00:00 2001 From: "azure-sdk-automation[bot]" <191533747+azure-sdk-automation[bot]@users.noreply.github.com> Date: Thu, 22 Oct 2026 10:22:13 -0400 Subject: [PATCH 21/22] Configurations: 'specification/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/hcpopenshiftclusters/tspconfig.yaml', and CommitSHA: '322d99debcab19ffe9f41bfbd44631b9ba0de3b3' in SpecRepo: 'https://github.com/Azure/azure-rest-api-specs' Pipeline run: https://dev.azure.com/azure-sdk/internal/_build/results?buildId=6984420 Refer to https://eng.ms/docs/products/azure-developer-experience/develop/sdk-release/sdk-release-prerequisites to prepare for SDK release. (#50901) Co-authored-by: azure-sdk --- eng/versioning/version_client.txt | 2 +- .../CHANGELOG.md | 44 +++++- .../README.md | 4 +- .../SAMPLE.md | 48 +++--- .../pom.xml | 6 +- ...stedControlPlanesManagementClientImpl.java | 2 +- .../models/ClusterActiveVersion.java | 74 +++++++++ .../models/ClusterAutoscalingProfile.java | 31 ++-- .../models/ClusterResourceStatus.java | 101 ++++++++++++ .../models/ContainerRegistryProfile.java | 87 +++++++++++ .../redhatopenshifthcp/models/DnsProfile.java | 16 +- .../models/ExternalAuthClaimProfile.java | 4 +- .../models/ExternalAuthProperties.java | 6 +- ...s.java => ExternalAuthResourceStatus.java} | 24 +-- .../models/GroupClaimProfile.java | 12 +- .../models/HcpOpenShiftClusterProperties.java | 12 +- .../models/KmsEncryptionProfile.java | 28 ++++ .../models/KmsKeyVaultType.java | 51 ++++++ .../models/NodePoolActiveVersion.java | 74 +++++++++ .../models/NodePoolPlatformProfile.java | 6 +- .../models/NodePoolProperties.java | 44 ++++-- .../models/NodePoolResourceStatus.java | 97 ++++++++++++ .../models/NodePoolVersionProfile.java | 9 ++ .../models/PlatformProfile.java | 43 +++++- .../models/TokenIssuerProfile.java | 29 ++-- .../models/UsernameClaimProfile.java | 6 +- .../models/VersionProfile.java | 9 ++ ...cemanager-redhatopenshifthcp_metadata.json | 2 +- .../ExternalAuthsCreateOrUpdateSamples.java | 2 +- .../generated/ExternalAuthsDeleteSamples.java | 2 +- .../generated/ExternalAuthsGetSamples.java | 2 +- .../ExternalAuthsListByParentSamples.java | 2 +- .../generated/ExternalAuthsUpdateSamples.java | 2 +- ...penShiftClustersCreateOrUpdateSamples.java | 2 +- .../HcpOpenShiftClustersDeleteSamples.java | 2 +- ...hiftClustersGetByResourceGroupSamples.java | 2 +- ...iftClustersListByResourceGroupSamples.java | 2 +- .../HcpOpenShiftClustersListSamples.java | 2 +- ...ClustersRequestAdminCredentialSamples.java | 2 +- ...ShiftClustersRevokeCredentialsSamples.java | 2 +- .../HcpOpenShiftClustersUpdateSamples.java | 2 +- .../HcpOpenShiftVersionsGetSamples.java | 2 +- .../HcpOpenShiftVersionsListSamples.java | 2 +- ...HcpOperatorIdentityRoleSetsGetSamples.java | 2 +- ...cpOperatorIdentityRoleSetsListSamples.java | 2 +- .../NodePoolsCreateOrUpdateSamples.java | 2 +- .../generated/NodePoolsDeleteSamples.java | 2 +- .../generated/NodePoolsGetSamples.java | 2 +- .../NodePoolsListByParentSamples.java | 2 +- .../generated/NodePoolsUpdateSamples.java | 2 +- .../generated/OperationsListSamples.java | 4 +- .../generated/ClusterActiveVersionTests.java | 16 ++ .../ClusterAutoscalingProfileTests.java | 26 ++-- .../generated/ClusterResourceStatusTests.java | 17 ++ .../generated/ConditionTests.java | 2 +- .../ContainerRegistryProfileTests.java | 25 +++ .../generated/DnsProfileTests.java | 11 +- .../ExternalAuthClaimProfileTests.java | 41 +++-- ...ternalAuthClientComponentProfileTests.java | 12 +- .../ExternalAuthClientProfileTests.java | 30 ++-- .../generated/ExternalAuthInnerTests.java | 145 ++++++++---------- .../ExternalAuthListResultTests.java | 24 +-- .../ExternalAuthPropertiesTests.java | 125 +++++++++------ .../ExternalAuthResourceStatusTests.java | 17 ++ .../ExternalAuthsCreateOrUpdateMockTests.java | 106 ++++++------- ...ExternalAuthsGetWithResponseMockTests.java | 32 ++-- .../ExternalAuthsListByParentMockTests.java | 33 ++-- .../generated/GroupClaimProfileTests.java | 12 +- ...ShiftClusterAdminCredentialInnerTests.java | 2 +- ...iftClusterAdminCredentialRequestTests.java | 8 +- ...ustersRequestAdminCredentialMockTests.java | 6 +- .../HcpOpenShiftVersionInnerTests.java | 8 +- .../HcpOpenShiftVersionListResultTests.java | 8 +- .../HcpOpenShiftVersionPropertiesTests.java | 8 +- ...ShiftVersionsGetWithResponseMockTests.java | 10 +- .../HcpOpenShiftVersionsListMockTests.java | 8 +- .../HcpOperatorIdentityRoleSetInnerTests.java | 17 +- ...peratorIdentityRoleSetListResultTests.java | 19 ++- ...peratorIdentityRoleSetPropertiesTests.java | 16 +- ...ntityRoleSetsGetWithResponseMockTests.java | 18 +-- ...OperatorIdentityRoleSetsListMockTests.java | 18 +-- .../generated/ImageDigestMirrorTests.java | 15 +- .../generated/KmsKeyTests.java | 13 +- .../ManagedServiceIdentityTests.java | 10 +- .../generated/NetworkProfileTests.java | 8 +- .../generated/NodePoolActiveVersionTests.java | 16 ++ .../generated/NodePoolAutoScalingTests.java | 12 +- .../NodePoolPlatformProfileTests.java | 32 ++-- .../NodePoolResourceStatusTests.java | 17 ++ .../NodePoolVersionProfileTests.java | 16 +- .../generated/OperationsListMockTests.java | 2 +- .../generated/OperatorIdentityRolesTests.java | 8 +- .../OperatorsAuthenticationProfileTests.java | 22 ++- .../generated/OsDiskProfileTests.java | 26 ++-- .../generated/PlatformProfileTests.java | 8 +- .../generated/ResourceStatusTests.java | 17 -- .../generated/RoleDefinitionTests.java | 8 +- .../TokenClaimMappingsProfileTests.java | 24 +-- .../TokenClaimValidationRuleTests.java | 16 +- .../generated/TokenIssuerProfileTests.java | 23 +-- .../generated/TokenRequiredClaimTests.java | 12 +- .../UserAssignedIdentitiesProfileTests.java | 23 ++- .../generated/UserAssignedIdentityTests.java | 5 +- .../generated/UsernameClaimProfileTests.java | 18 +-- .../generated/VersionProfileTests.java | 14 +- .../tsp-location.yaml | 2 +- 106 files changed, 1401 insertions(+), 705 deletions(-) create mode 100644 sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ClusterActiveVersion.java create mode 100644 sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ClusterResourceStatus.java create mode 100644 sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ContainerRegistryProfile.java rename sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/{ResourceStatus.java => ExternalAuthResourceStatus.java} (64%) create mode 100644 sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/KmsKeyVaultType.java create mode 100644 sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/NodePoolActiveVersion.java create mode 100644 sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/NodePoolResourceStatus.java create mode 100644 sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ClusterActiveVersionTests.java create mode 100644 sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ClusterResourceStatusTests.java create mode 100644 sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ContainerRegistryProfileTests.java create mode 100644 sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthResourceStatusTests.java create mode 100644 sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolActiveVersionTests.java create mode 100644 sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolResourceStatusTests.java delete mode 100644 sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ResourceStatusTests.java diff --git a/eng/versioning/version_client.txt b/eng/versioning/version_client.txt index 1f1eead30937e..081d129bd0d02 100644 --- a/eng/versioning/version_client.txt +++ b/eng/versioning/version_client.txt @@ -518,7 +518,7 @@ com.azure.resourcemanager:azure-resourcemanager-containerservicepreparedimgspec; com.azure.resourcemanager:azure-resourcemanager-enclave;1.0.0;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-containerserviceaimanager;1.0.0-beta.2;1.0.0-beta.3 com.azure.resourcemanager:azure-resourcemanager-platformvalidation;1.0.0-beta.1;1.0.0-beta.2 -com.azure.resourcemanager:azure-resourcemanager-redhatopenshifthcp;1.0.0-beta.1;1.0.0-beta.2 +com.azure.resourcemanager:azure-resourcemanager-redhatopenshifthcp;1.0.0-beta.1;1.0.0 com.azure.resourcemanager:azure-resourcemanager-storagesync;1.0.0;1.1.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-edgeoperator;1.0.0-beta.1;1.0.0-beta.1 com.azure.resourcemanager:azure-resourcemanager-resources-deployments;1.0.0;1.1.0-beta.1 diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/CHANGELOG.md b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/CHANGELOG.md index c530626bfe8e2..c9774a3d1c577 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/CHANGELOG.md +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/CHANGELOG.md @@ -1,14 +1,50 @@ # Release History -## 1.0.0-beta.2 (Unreleased) +## 1.0.0 (2026-10-21) -### Features Added +- Azure Resource Manager Red Hat OpenShift Hosted Control Planes client library for Java. This package contains Microsoft Azure SDK for Red Hat OpenShift Hosted Control Planes Management SDK. Package api-version 2026-10-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ### Breaking Changes -### Bugs Fixed +#### `models.ResourceStatus` was removed + +#### `models.HcpOpenShiftClusterProperties` was modified + +* `models.ResourceStatus status()` -> `models.ClusterResourceStatus status()` + +#### `models.NodePoolProperties` was modified + +* `models.ResourceStatus status()` -> `models.NodePoolResourceStatus status()` + +#### `models.ExternalAuthProperties` was modified + +* `models.ResourceStatus status()` -> `models.ExternalAuthResourceStatus status()` + +### Features Added + +* `models.ClusterActiveVersion` was added + +* `models.KmsKeyVaultType` was added + +* `models.NodePoolActiveVersion` was added + +* `models.ContainerRegistryProfile` was added + +* `models.ExternalAuthResourceStatus` was added + +* `models.ClusterResourceStatus` was added + +* `models.NodePoolResourceStatus` was added + +#### `models.KmsEncryptionProfile` was modified + +* `keyVaultType()` was added +* `withKeyVaultType(models.KmsKeyVaultType)` was added + +#### `models.PlatformProfile` was modified -### Other Changes +* `withContainerRegistry(models.ContainerRegistryProfile)` was added +* `containerRegistry()` was added ## 1.0.0-beta.1 (2026-08-19) diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/README.md b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/README.md index 058a634a02750..40aa82ace5ec7 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/README.md +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/README.md @@ -2,7 +2,7 @@ Azure Resource Manager Red Hat OpenShift Hosted Control Planes client library for Java. -This package contains Microsoft Azure SDK for Red Hat OpenShift Hosted Control Planes Management SDK. Package api-version 2026-09-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 Red Hat OpenShift Hosted Control Planes Management SDK. Package api-version 2026-10-01. For documentation on how to use this package, please see [Azure Management Libraries for Java](https://aka.ms/azsdk/java/mgmt). ## We'd love to hear your feedback @@ -32,7 +32,7 @@ Various documentation is available to help you get started com.azure.resourcemanager azure-resourcemanager-redhatopenshifthcp - 1.0.0-beta.1 + 1.0.0 ``` [//]: # ({x-version-update-end}) diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/SAMPLE.md b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/SAMPLE.md index 8eed389f7f2b7..336a83197b1a4 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/SAMPLE.md +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/SAMPLE.md @@ -64,7 +64,7 @@ import java.util.Arrays; */ public final class ExternalAuthsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-09-01-preview/ExternalAuths_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/ExternalAuths_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: ExternalAuths_CreateOrUpdate_MaximumSet. @@ -111,7 +111,7 @@ public final class ExternalAuthsCreateOrUpdateSamples { */ public final class ExternalAuthsDeleteSamples { /* - * x-ms-original-file: 2026-09-01-preview/ExternalAuths_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/ExternalAuths_Delete_MaximumSet_Gen.json */ /** * Sample code: ExternalAuths_Delete_MaximumSet. @@ -134,7 +134,7 @@ public final class ExternalAuthsDeleteSamples { */ public final class ExternalAuthsGetSamples { /* - * x-ms-original-file: 2026-09-01-preview/ExternalAuths_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/ExternalAuths_Get_MaximumSet_Gen.json */ /** * Sample code: ExternalAuths_Get_MaximumSet. @@ -157,7 +157,7 @@ public final class ExternalAuthsGetSamples { */ public final class ExternalAuthsListByParentSamples { /* - * x-ms-original-file: 2026-09-01-preview/ExternalAuths_ListByParent_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/ExternalAuths_ListByParent_MaximumSet_Gen.json */ /** * Sample code: ExternalAuths_ListByParent_MaximumSet. @@ -195,7 +195,7 @@ import java.util.Arrays; */ public final class ExternalAuthsUpdateSamples { /* - * x-ms-original-file: 2026-09-01-preview/ExternalAuths_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/ExternalAuths_Update_MaximumSet_Gen.json */ /** * Sample code: ExternalAuths_Update_MaximumSet. @@ -275,7 +275,7 @@ import java.util.Map; */ public final class HcpOpenShiftClustersCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-09-01-preview/HcpOpenShiftClusters_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/HcpOpenShiftClusters_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: HcpOpenShiftClusters_CreateOrUpdate. @@ -365,7 +365,7 @@ public final class HcpOpenShiftClustersCreateOrUpdateSamples { */ public final class HcpOpenShiftClustersDeleteSamples { /* - * x-ms-original-file: 2026-09-01-preview/HcpOpenShiftClusters_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/HcpOpenShiftClusters_Delete_MaximumSet_Gen.json */ /** * Sample code: HcpOpenShiftClusters_Delete. @@ -387,7 +387,7 @@ public final class HcpOpenShiftClustersDeleteSamples { */ public final class HcpOpenShiftClustersGetByResourceGroupSamples { /* - * x-ms-original-file: 2026-09-01-preview/HcpOpenShiftClusters_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/HcpOpenShiftClusters_Get_MaximumSet_Gen.json */ /** * Sample code: HcpOpenShiftClusters_Get. @@ -410,7 +410,7 @@ public final class HcpOpenShiftClustersGetByResourceGroupSamples { */ public final class HcpOpenShiftClustersListSamples { /* - * x-ms-original-file: 2026-09-01-preview/HcpOpenShiftClusters_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/HcpOpenShiftClusters_ListBySubscription_MaximumSet_Gen.json */ /** * Sample code: HcpOpenShiftClusters_ListBySubscription. @@ -432,7 +432,7 @@ public final class HcpOpenShiftClustersListSamples { */ public final class HcpOpenShiftClustersListByResourceGroupSamples { /* - * x-ms-original-file: 2026-09-01-preview/HcpOpenShiftClusters_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/HcpOpenShiftClusters_ListByResourceGroup_MaximumSet_Gen.json */ /** * Sample code: HcpOpenShiftClusters_ListByResourceGroup. @@ -456,7 +456,7 @@ import com.azure.resourcemanager.redhatopenshifthcp.models.HcpOpenShiftClusterAd */ public final class HcpOpenShiftClustersRequestAdminCredentialSamples { /* - * x-ms-original-file: 2026-09-01-preview/HcpOpenShiftClusters_RequestAdminCredential_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/HcpOpenShiftClusters_RequestAdminCredential_MaximumSet_Gen.json */ /** * Sample code: HcpOpenShiftClusters_RequestAdminCredential_MaximumSet. @@ -482,7 +482,7 @@ public final class HcpOpenShiftClustersRequestAdminCredentialSamples { */ public final class HcpOpenShiftClustersRevokeCredentialsSamples { /* - * x-ms-original-file: 2026-09-01-preview/HcpOpenShiftClusters_RevokeCredentials_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/HcpOpenShiftClusters_RevokeCredentials_MaximumSet_Gen.json */ /** * Sample code: HcpOpenShiftClusters_RevokeCredentials_MaximumSet. @@ -512,7 +512,7 @@ import java.util.Map; */ public final class HcpOpenShiftClustersUpdateSamples { /* - * x-ms-original-file: 2026-09-01-preview/HcpOpenShiftClusters_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/HcpOpenShiftClusters_Update_MaximumSet_Gen.json */ /** * Sample code: HcpOpenShiftClusters_Update. @@ -555,7 +555,7 @@ public final class HcpOpenShiftClustersUpdateSamples { */ public final class HcpOpenShiftVersionsGetSamples { /* - * x-ms-original-file: 2026-09-01-preview/HcpOpenShiftVersions_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/HcpOpenShiftVersions_Get_MaximumSet_Gen.json */ /** * Sample code: HcpOpenShiftVersions_Get_MaximumSet - generated by [MaximumSet] rule. @@ -577,7 +577,7 @@ public final class HcpOpenShiftVersionsGetSamples { */ public final class HcpOpenShiftVersionsListSamples { /* - * x-ms-original-file: 2026-09-01-preview/HcpOpenShiftVersions_List_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/HcpOpenShiftVersions_List_MaximumSet_Gen.json */ /** * Sample code: HcpOpenShiftVersions_List_MaximumSet - generated by [MaximumSet] rule. @@ -599,7 +599,7 @@ public final class HcpOpenShiftVersionsListSamples { */ public final class HcpOperatorIdentityRoleSetsGetSamples { /* - * x-ms-original-file: 2026-09-01-preview/HcpOperatorIdentityRoleSets_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/HcpOperatorIdentityRoleSets_Get_MaximumSet_Gen.json */ /** * Sample code: HcpOperatorIdentityRoleSets_Get_MaximumSet. @@ -622,7 +622,7 @@ public final class HcpOperatorIdentityRoleSetsGetSamples { */ public final class HcpOperatorIdentityRoleSetsListSamples { /* - * x-ms-original-file: 2026-09-01-preview/HcpOperatorIdentityRoleSets_List_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/HcpOperatorIdentityRoleSets_List_MaximumSet_Gen.json */ /** * Sample code: HcpOperatorIdentityRoleSets_List_MaximumSet. @@ -658,7 +658,7 @@ import java.util.Map; */ public final class NodePoolsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-09-01-preview/NodePools_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/NodePools_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: NodePools_CreateOrUpdate. @@ -716,7 +716,7 @@ public final class NodePoolsCreateOrUpdateSamples { */ public final class NodePoolsDeleteSamples { /* - * x-ms-original-file: 2026-09-01-preview/NodePools_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/NodePools_Delete_MaximumSet_Gen.json */ /** * Sample code: NodePools_Delete. @@ -738,7 +738,7 @@ public final class NodePoolsDeleteSamples { */ public final class NodePoolsGetSamples { /* - * x-ms-original-file: 2026-09-01-preview/NodePools_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/NodePools_Get_MaximumSet_Gen.json */ /** * Sample code: NodePools_Get. @@ -761,7 +761,7 @@ public final class NodePoolsGetSamples { */ public final class NodePoolsListByParentSamples { /* - * x-ms-original-file: 2026-09-01-preview/NodePools_ListByParent_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/NodePools_ListByParent_MaximumSet_Gen.json */ /** * Sample code: NodePools_ListByParent. @@ -796,7 +796,7 @@ import java.util.Map; */ public final class NodePoolsUpdateSamples { /* - * x-ms-original-file: 2026-09-01-preview/NodePools_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/NodePools_Update_MaximumSet_Gen.json */ /** * Sample code: NodePools_Update. @@ -843,7 +843,7 @@ public final class NodePoolsUpdateSamples { */ public final class OperationsListSamples { /* - * x-ms-original-file: 2026-09-01-preview/Operations_List_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/Operations_List_MaximumSet_Gen.json */ /** * Sample code: Operations_List_Maximum. @@ -856,7 +856,7 @@ public final class OperationsListSamples { } /* - * x-ms-original-file: 2026-09-01-preview/Operations_List_MinimumSet_Gen.json + * x-ms-original-file: 2026-10-01/Operations_List_MinimumSet_Gen.json */ /** * Sample code: Operations_List_Minimum. diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/pom.xml b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/pom.xml index 5ab8376b84cc6..3dcdde2f95d62 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/pom.xml +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/pom.xml @@ -14,11 +14,11 @@ com.azure.resourcemanager azure-resourcemanager-redhatopenshifthcp - 1.0.0-beta.2 + 1.0.0 jar Microsoft Azure SDK for Red Hat OpenShift Hosted Control Planes Management - This package contains Microsoft Azure SDK for Red Hat OpenShift Hosted Control Planes Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package api-version 2026-09-01-preview. + This package contains Microsoft Azure SDK for Red Hat OpenShift Hosted Control Planes Management SDK. For documentation on how to use this package, please see https://aka.ms/azsdk/java/mgmt. Package api-version 2026-10-01. https://github.com/Azure/azure-sdk-for-java @@ -45,7 +45,7 @@ UTF-8 0 0 - true + false diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/RedHatOpenShiftHostedControlPlanesManagementClientImpl.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/RedHatOpenShiftHostedControlPlanesManagementClientImpl.java index 24452462d4da7..4c57d4daa6762 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/RedHatOpenShiftHostedControlPlanesManagementClientImpl.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/RedHatOpenShiftHostedControlPlanesManagementClientImpl.java @@ -234,7 +234,7 @@ public HcpOperatorIdentityRoleSetsClient getHcpOperatorIdentityRoleSets() { this.defaultPollInterval = defaultPollInterval; this.endpoint = endpoint; this.subscriptionId = subscriptionId; - this.apiVersion = "2026-09-01-preview"; + this.apiVersion = "2026-10-01"; this.operations = new OperationsClientImpl(this); this.hcpOpenShiftClusters = new HcpOpenShiftClustersClientImpl(this); this.nodePools = new NodePoolsClientImpl(this); diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ClusterActiveVersion.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ClusterActiveVersion.java new file mode 100644 index 0000000000000..a5e7aca973a46 --- /dev/null +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ClusterActiveVersion.java @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.redhatopenshifthcp.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * ClusterActiveVersion represents a version of a resource. + */ +@Immutable +public final class ClusterActiveVersion implements JsonSerializable { + /* + * The version of the resource. Specified in major.minor, same as the input + */ + private String version; + + /** + * Creates an instance of ClusterActiveVersion class. + */ + private ClusterActiveVersion() { + } + + /** + * Get the version property: The version of the resource. Specified in major.minor, same as the input. + * + * @return the version value. + */ + public String version() { + return this.version; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterActiveVersion from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterActiveVersion 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 ClusterActiveVersion. + */ + public static ClusterActiveVersion fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterActiveVersion deserializedClusterActiveVersion = new ClusterActiveVersion(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("version".equals(fieldName)) { + deserializedClusterActiveVersion.version = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedClusterActiveVersion; + }); + } +} diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ClusterAutoscalingProfile.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ClusterAutoscalingProfile.java index c5be321e78e84..529e2baae44cd 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ClusterAutoscalingProfile.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ClusterAutoscalingProfile.java @@ -18,14 +18,15 @@ @Fluent public final class ClusterAutoscalingProfile implements JsonSerializable { /* - * maxNodesTotal is the maximum allowable number of nodes for the Autoscaler scale out to be operational. - * The autoscaler will not grow the cluster beyond this number. If omitted, the autoscaler will not have a maximum - * limit. + * maxNodesTotal is the maximum allowable number of nodes. The autoscaler will not grow the cluster beyond this + * number. + * If omitted, the autoscaler will not have a maximum limit. */ private Integer maxNodesTotal; /* - * maxPodGracePeriod is the maximum seconds to wait for graceful pod termination before scaling down a NodePool. + * maxPodGracePeriodSeconds is the maximum amount of time in seconds to wait for graceful pod termination before + * scaling down a NodePool. * The default is 600 seconds. */ private Integer maxPodGracePeriodSeconds; @@ -52,10 +53,9 @@ public ClusterAutoscalingProfile() { } /** - * Get the maxNodesTotal property: maxNodesTotal is the maximum allowable number of nodes for the Autoscaler scale - * out to be operational. - * The autoscaler will not grow the cluster beyond this number. If omitted, the autoscaler will not have a maximum - * limit. + * Get the maxNodesTotal property: maxNodesTotal is the maximum allowable number of nodes. The autoscaler will not + * grow the cluster beyond this number. + * If omitted, the autoscaler will not have a maximum limit. * * @return the maxNodesTotal value. */ @@ -64,10 +64,9 @@ public Integer maxNodesTotal() { } /** - * Set the maxNodesTotal property: maxNodesTotal is the maximum allowable number of nodes for the Autoscaler scale - * out to be operational. - * The autoscaler will not grow the cluster beyond this number. If omitted, the autoscaler will not have a maximum - * limit. + * Set the maxNodesTotal property: maxNodesTotal is the maximum allowable number of nodes. The autoscaler will not + * grow the cluster beyond this number. + * If omitted, the autoscaler will not have a maximum limit. * * @param maxNodesTotal the maxNodesTotal value to set. * @return the ClusterAutoscalingProfile object itself. @@ -78,8 +77,8 @@ public ClusterAutoscalingProfile withMaxNodesTotal(Integer maxNodesTotal) { } /** - * Get the maxPodGracePeriodSeconds property: maxPodGracePeriod is the maximum seconds to wait for graceful pod - * termination before scaling down a NodePool. + * Get the maxPodGracePeriodSeconds property: maxPodGracePeriodSeconds is the maximum amount of time in seconds to + * wait for graceful pod termination before scaling down a NodePool. * The default is 600 seconds. * * @return the maxPodGracePeriodSeconds value. @@ -89,8 +88,8 @@ public Integer maxPodGracePeriodSeconds() { } /** - * Set the maxPodGracePeriodSeconds property: maxPodGracePeriod is the maximum seconds to wait for graceful pod - * termination before scaling down a NodePool. + * Set the maxPodGracePeriodSeconds property: maxPodGracePeriodSeconds is the maximum amount of time in seconds to + * wait for graceful pod termination before scaling down a NodePool. * The default is 600 seconds. * * @param maxPodGracePeriodSeconds the maxPodGracePeriodSeconds value to set. diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ClusterResourceStatus.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ClusterResourceStatus.java new file mode 100644 index 0000000000000..65464e5f39b9c --- /dev/null +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ClusterResourceStatus.java @@ -0,0 +1,101 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.redhatopenshifthcp.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * ClusterResourceStatus represents the observed status of the cluster resource. + */ +@Immutable +public final class ClusterResourceStatus implements JsonSerializable { + /* + * The conditions on the resource + */ + private List conditions; + + /* + * The observed active versions of the cluster. + * During upgrades, both the previous and target versions may be + * active simultaneously until the rollout completes, so this + * array can contain more than one entry. The ordering of entries + * has no meaning. + */ + private List activeVersions; + + /** + * Creates an instance of ClusterResourceStatus class. + */ + private ClusterResourceStatus() { + } + + /** + * Get the conditions property: The conditions on the resource. + * + * @return the conditions value. + */ + public List conditions() { + return this.conditions; + } + + /** + * Get the activeVersions property: The observed active versions of the cluster. + * During upgrades, both the previous and target versions may be + * active simultaneously until the rollout completes, so this + * array can contain more than one entry. The ordering of entries + * has no meaning. + * + * @return the activeVersions value. + */ + public List activeVersions() { + return this.activeVersions; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ClusterResourceStatus from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ClusterResourceStatus 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 ClusterResourceStatus. + */ + public static ClusterResourceStatus fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ClusterResourceStatus deserializedClusterResourceStatus = new ClusterResourceStatus(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("conditions".equals(fieldName)) { + List conditions = reader.readArray(reader1 -> Condition.fromJson(reader1)); + deserializedClusterResourceStatus.conditions = conditions; + } else if ("activeVersions".equals(fieldName)) { + List activeVersions + = reader.readArray(reader1 -> ClusterActiveVersion.fromJson(reader1)); + deserializedClusterResourceStatus.activeVersions = activeVersions; + } else { + reader.skipChildren(); + } + } + + return deserializedClusterResourceStatus; + }); + } +} diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ContainerRegistryProfile.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ContainerRegistryProfile.java new file mode 100644 index 0000000000000..152233f6e09f7 --- /dev/null +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ContainerRegistryProfile.java @@ -0,0 +1,87 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.redhatopenshifthcp.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; + +/** + * Azure Container Registry configuration for a cluster. + * Configures how worker nodes authenticate container image pulls + * from Azure Container Registry (ACR). + */ +@Fluent +public final class ContainerRegistryProfile implements JsonSerializable { + /* + * The user-assigned managed identity used for container registry image pulls. + */ + private String managedIdentity; + + /** + * Creates an instance of ContainerRegistryProfile class. + */ + public ContainerRegistryProfile() { + } + + /** + * Get the managedIdentity property: The user-assigned managed identity used for container registry image pulls. + * + * @return the managedIdentity value. + */ + public String managedIdentity() { + return this.managedIdentity; + } + + /** + * Set the managedIdentity property: The user-assigned managed identity used for container registry image pulls. + * + * @param managedIdentity the managedIdentity value to set. + * @return the ContainerRegistryProfile object itself. + */ + public ContainerRegistryProfile withManagedIdentity(String managedIdentity) { + this.managedIdentity = managedIdentity; + return this; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + jsonWriter.writeStringField("managedIdentity", this.managedIdentity); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of ContainerRegistryProfile from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of ContainerRegistryProfile 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 ContainerRegistryProfile. + */ + public static ContainerRegistryProfile fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + ContainerRegistryProfile deserializedContainerRegistryProfile = new ContainerRegistryProfile(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("managedIdentity".equals(fieldName)) { + deserializedContainerRegistryProfile.managedIdentity = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedContainerRegistryProfile; + }); + } +} diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/DnsProfile.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/DnsProfile.java index 9bb688df4415d..9a1c0f8843fa1 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/DnsProfile.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/DnsProfile.java @@ -22,8 +22,8 @@ public final class DnsProfile implements JsonSerializable { private String baseDomain; /* - * BaseDomainPrefix is the unique name of the cluster representing the OpenShift's cluster name. - * BaseDomainPrefix is the name that will appear in the cluster's DNS, provisioned cloud providers resources + * BaseDomainPrefix is the base domain prefix for the cluster ingress. It will be used to + * configure ingress in the cluster through the subdomain "BaseDomainPrefix.BaseDomain". */ private String baseDomainPrefix; @@ -43,9 +43,9 @@ public String baseDomain() { } /** - * Get the baseDomainPrefix property: BaseDomainPrefix is the unique name of the cluster representing the - * OpenShift's cluster name. - * BaseDomainPrefix is the name that will appear in the cluster's DNS, provisioned cloud providers resources. + * Get the baseDomainPrefix property: BaseDomainPrefix is the base domain prefix for the cluster ingress. It will be + * used to + * configure ingress in the cluster through the subdomain "BaseDomainPrefix.BaseDomain". * * @return the baseDomainPrefix value. */ @@ -54,9 +54,9 @@ public String baseDomainPrefix() { } /** - * Set the baseDomainPrefix property: BaseDomainPrefix is the unique name of the cluster representing the - * OpenShift's cluster name. - * BaseDomainPrefix is the name that will appear in the cluster's DNS, provisioned cloud providers resources. + * Set the baseDomainPrefix property: BaseDomainPrefix is the base domain prefix for the cluster ingress. It will be + * used to + * configure ingress in the cluster through the subdomain "BaseDomainPrefix.BaseDomain". * * @param baseDomainPrefix the baseDomainPrefix value to set. * @return the DnsProfile object itself. diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ExternalAuthClaimProfile.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ExternalAuthClaimProfile.java index 6ab49a6926ce6..ed8f2c392f6ad 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ExternalAuthClaimProfile.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ExternalAuthClaimProfile.java @@ -18,12 +18,12 @@ @Fluent public final class ExternalAuthClaimProfile implements JsonSerializable { /* - * The claim mappings + * The claim mappings. */ private TokenClaimMappingsProfile mappings; /* - * The claim validation rules + * The claim validation rules. */ private List validationRules; diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ExternalAuthProperties.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ExternalAuthProperties.java index 064d48a48711e..6b2bde3a62987 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ExternalAuthProperties.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ExternalAuthProperties.java @@ -25,7 +25,7 @@ public final class ExternalAuthProperties implements JsonSerializable clients = reader.readArray(reader1 -> ExternalAuthClientProfile.fromJson(reader1)); diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ResourceStatus.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ExternalAuthResourceStatus.java similarity index 64% rename from sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ResourceStatus.java rename to sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ExternalAuthResourceStatus.java index 3401e978812d8..8b3ec98ab93c2 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ResourceStatus.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ExternalAuthResourceStatus.java @@ -13,19 +13,19 @@ import java.util.List; /** - * ResourceStatus represents the observed status of the resource. + * ExternalAuthResourceStatus represents the observed status of the external auth resource. */ @Immutable -public final class ResourceStatus implements JsonSerializable { +public final class ExternalAuthResourceStatus implements JsonSerializable { /* * The conditions on the resource */ private List conditions; /** - * Creates an instance of ResourceStatus class. + * Creates an instance of ExternalAuthResourceStatus class. */ - private ResourceStatus() { + private ExternalAuthResourceStatus() { } /** @@ -47,29 +47,29 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { } /** - * Reads an instance of ResourceStatus from the JsonReader. + * Reads an instance of ExternalAuthResourceStatus from the JsonReader. * * @param jsonReader The JsonReader being read. - * @return An instance of ResourceStatus 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 ResourceStatus. + * @return An instance of ExternalAuthResourceStatus 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 ExternalAuthResourceStatus. */ - public static ResourceStatus fromJson(JsonReader jsonReader) throws IOException { + public static ExternalAuthResourceStatus fromJson(JsonReader jsonReader) throws IOException { return jsonReader.readObject(reader -> { - ResourceStatus deserializedResourceStatus = new ResourceStatus(); + ExternalAuthResourceStatus deserializedExternalAuthResourceStatus = new ExternalAuthResourceStatus(); while (reader.nextToken() != JsonToken.END_OBJECT) { String fieldName = reader.getFieldName(); reader.nextToken(); if ("conditions".equals(fieldName)) { List conditions = reader.readArray(reader1 -> Condition.fromJson(reader1)); - deserializedResourceStatus.conditions = conditions; + deserializedExternalAuthResourceStatus.conditions = conditions; } else { reader.skipChildren(); } } - return deserializedResourceStatus; + return deserializedExternalAuthResourceStatus; }); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/GroupClaimProfile.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/GroupClaimProfile.java index 744d6fcaebc6c..509112804462e 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/GroupClaimProfile.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/GroupClaimProfile.java @@ -29,8 +29,8 @@ public final class GroupClaimProfile implements JsonSerializable { + /** + * Standard Azure Key Vault. + */ + public static final KmsKeyVaultType KEY_VAULT = fromString("KeyVault"); + + /** + * Azure Managed Hardware Security Module. + */ + public static final KmsKeyVaultType MANAGED_HSM = fromString("ManagedHSM"); + + /** + * Creates a new instance of KmsKeyVaultType value. + * + * @deprecated Use the {@link #fromString(String)} factory method. + */ + @Deprecated + public KmsKeyVaultType() { + } + + /** + * Creates or finds a KmsKeyVaultType from its string representation. + * + * @param name a name to look for. + * @return the corresponding KmsKeyVaultType. + */ + public static KmsKeyVaultType fromString(String name) { + return fromString(name, KmsKeyVaultType.class); + } + + /** + * Gets known KmsKeyVaultType values. + * + * @return known KmsKeyVaultType values. + */ + public static Collection values() { + return values(KmsKeyVaultType.class); + } +} diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/NodePoolActiveVersion.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/NodePoolActiveVersion.java new file mode 100644 index 0000000000000..3523aebb1ab5a --- /dev/null +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/NodePoolActiveVersion.java @@ -0,0 +1,74 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.redhatopenshifthcp.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; + +/** + * NodePoolActiveVersion represents a version of a resource. + */ +@Immutable +public final class NodePoolActiveVersion implements JsonSerializable { + /* + * The version of the resource. Specified in major.minor.patch, same as the input + */ + private String version; + + /** + * Creates an instance of NodePoolActiveVersion class. + */ + private NodePoolActiveVersion() { + } + + /** + * Get the version property: The version of the resource. Specified in major.minor.patch, same as the input. + * + * @return the version value. + */ + public String version() { + return this.version; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of NodePoolActiveVersion from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of NodePoolActiveVersion 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 NodePoolActiveVersion. + */ + public static NodePoolActiveVersion fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + NodePoolActiveVersion deserializedNodePoolActiveVersion = new NodePoolActiveVersion(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("version".equals(fieldName)) { + deserializedNodePoolActiveVersion.version = reader.getString(); + } else { + reader.skipChildren(); + } + } + + return deserializedNodePoolActiveVersion; + }); + } +} diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/NodePoolPlatformProfile.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/NodePoolPlatformProfile.java index 3cb807be38f58..ab3bbd8116140 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/NodePoolPlatformProfile.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/NodePoolPlatformProfile.java @@ -17,7 +17,7 @@ @Fluent public final class NodePoolPlatformProfile implements JsonSerializable { /* - * The Azure resource ID of the worker subnet + * The Azure resource ID of the worker subnet. * Note that a subnet cannot be reused between ARO-HCP Clusters, however the * same subnet can be used for NodePools of the same cluster. */ @@ -55,7 +55,7 @@ public NodePoolPlatformProfile() { } /** - * Get the subnetId property: The Azure resource ID of the worker subnet + * Get the subnetId property: The Azure resource ID of the worker subnet. * Note that a subnet cannot be reused between ARO-HCP Clusters, however the * same subnet can be used for NodePools of the same cluster. * @@ -66,7 +66,7 @@ public String subnetId() { } /** - * Set the subnetId property: The Azure resource ID of the worker subnet + * Set the subnetId property: The Azure resource ID of the worker subnet. * Note that a subnet cannot be reused between ARO-HCP Clusters, however the * same subnet can be used for NodePools of the same cluster. * diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/NodePoolProperties.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/NodePoolProperties.java index c9e94ab44f269..3c2d5b7f5b707 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/NodePoolProperties.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/NodePoolProperties.java @@ -42,7 +42,13 @@ public final class NodePoolProperties implements JsonSerializable labels; /* - * Taints for the nodes + * Taints for the nodes. */ private List taints; @@ -79,7 +85,7 @@ public final class NodePoolProperties implements JsonSerializable labels() { } /** - * Set the labels property: Kubernetes labels to propagate to the NodePool Nodes + * Set the labels property: Kubernetes labels to propagate to the NodePool Nodes. * Note that when the labels are updated this is only applied to newly - * create nodes in the Nodepool, existing node labels remain unchanged. + * created nodes in the NodePool, existing node labels remain unchanged. * * @param labels the labels value to set. * @return the NodePoolProperties object itself. @@ -291,7 +309,7 @@ public NodePoolProperties withNodeDrainTimeoutMinutes(Integer nodeDrainTimeoutMi * * @return the status value. */ - public ResourceStatus status() { + public NodePoolResourceStatus status() { return this.status; } @@ -349,7 +367,7 @@ public static NodePoolProperties fromJson(JsonReader jsonReader) throws IOExcept } else if ("nodeDrainTimeoutMinutes".equals(fieldName)) { deserializedNodePoolProperties.nodeDrainTimeoutMinutes = reader.getNullable(JsonReader::getInt); } else if ("status".equals(fieldName)) { - deserializedNodePoolProperties.status = ResourceStatus.fromJson(reader); + deserializedNodePoolProperties.status = NodePoolResourceStatus.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/NodePoolResourceStatus.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/NodePoolResourceStatus.java new file mode 100644 index 0000000000000..4b3e76476608e --- /dev/null +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/NodePoolResourceStatus.java @@ -0,0 +1,97 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.redhatopenshifthcp.models; + +import com.azure.core.annotation.Immutable; +import com.azure.json.JsonReader; +import com.azure.json.JsonSerializable; +import com.azure.json.JsonToken; +import com.azure.json.JsonWriter; +import java.io.IOException; +import java.util.List; + +/** + * NodePoolResourceStatus represents the observed status of the nodepool resource. + */ +@Immutable +public final class NodePoolResourceStatus implements JsonSerializable { + /* + * The conditions on the resource + */ + private List conditions; + + /* + * The observed active versions of the node pool. + * During upgrades, it is common for multiple versions to be active at the same time + * while old nodes are drained and replaced. The ordering of entries has no meaning. + */ + private List activeVersions; + + /** + * Creates an instance of NodePoolResourceStatus class. + */ + private NodePoolResourceStatus() { + } + + /** + * Get the conditions property: The conditions on the resource. + * + * @return the conditions value. + */ + public List conditions() { + return this.conditions; + } + + /** + * Get the activeVersions property: The observed active versions of the node pool. + * During upgrades, it is common for multiple versions to be active at the same time + * while old nodes are drained and replaced. The ordering of entries has no meaning. + * + * @return the activeVersions value. + */ + public List activeVersions() { + return this.activeVersions; + } + + /** + * {@inheritDoc} + */ + @Override + public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { + jsonWriter.writeStartObject(); + return jsonWriter.writeEndObject(); + } + + /** + * Reads an instance of NodePoolResourceStatus from the JsonReader. + * + * @param jsonReader The JsonReader being read. + * @return An instance of NodePoolResourceStatus 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 NodePoolResourceStatus. + */ + public static NodePoolResourceStatus fromJson(JsonReader jsonReader) throws IOException { + return jsonReader.readObject(reader -> { + NodePoolResourceStatus deserializedNodePoolResourceStatus = new NodePoolResourceStatus(); + while (reader.nextToken() != JsonToken.END_OBJECT) { + String fieldName = reader.getFieldName(); + reader.nextToken(); + + if ("conditions".equals(fieldName)) { + List conditions = reader.readArray(reader1 -> Condition.fromJson(reader1)); + deserializedNodePoolResourceStatus.conditions = conditions; + } else if ("activeVersions".equals(fieldName)) { + List activeVersions + = reader.readArray(reader1 -> NodePoolActiveVersion.fromJson(reader1)); + deserializedNodePoolResourceStatus.activeVersions = activeVersions; + } else { + reader.skipChildren(); + } + } + + return deserializedNodePoolResourceStatus; + }); + } +} diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/NodePoolVersionProfile.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/NodePoolVersionProfile.java index 1e1db39720b1c..761779e228081 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/NodePoolVersionProfile.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/NodePoolVersionProfile.java @@ -26,6 +26,9 @@ public final class NodePoolVersionProfile implements JsonSerializable { /* - * Resource group name to put cluster resources + * The name of the resource group to put cluster resources in. * * If not specified then a unique name is generated from the * following pattern @@ -31,7 +31,7 @@ public final class PlatformProfile implements JsonSerializable private String managedResourceGroup; /* - * The Azure resource ID of the worker subnet + * The Azure resource ID of the worker subnet. * Note that a subnet cannot be reused between ARO-HCP Clusters. */ private String subnetId; @@ -61,6 +61,12 @@ public final class PlatformProfile implements JsonSerializable */ private OperatorsAuthenticationProfile operatorsAuthentication; + /* + * Azure Container Registry configuration for authenticating image pulls + * on the cluster's worker nodes. + */ + private ContainerRegistryProfile containerRegistry; + /* * URL for the OIDC provider to be used for authentication * to authenticate against user Azure cloud account @@ -74,7 +80,7 @@ public PlatformProfile() { } /** - * Get the managedResourceGroup property: Resource group name to put cluster resources + * Get the managedResourceGroup property: The name of the resource group to put cluster resources in. * * If not specified then a unique name is generated from the * following pattern @@ -92,7 +98,7 @@ public String managedResourceGroup() { } /** - * Set the managedResourceGroup property: Resource group name to put cluster resources + * Set the managedResourceGroup property: The name of the resource group to put cluster resources in. * * If not specified then a unique name is generated from the * following pattern @@ -112,7 +118,7 @@ public PlatformProfile withManagedResourceGroup(String managedResourceGroup) { } /** - * Get the subnetId property: The Azure resource ID of the worker subnet + * Get the subnetId property: The Azure resource ID of the worker subnet. * Note that a subnet cannot be reused between ARO-HCP Clusters. * * @return the subnetId value. @@ -122,7 +128,7 @@ public String subnetId() { } /** - * Set the subnetId property: The Azure resource ID of the worker subnet + * Set the subnetId property: The Azure resource ID of the worker subnet. * Note that a subnet cannot be reused between ARO-HCP Clusters. * * @param subnetId the subnetId value to set. @@ -227,6 +233,28 @@ public PlatformProfile withOperatorsAuthentication(OperatorsAuthenticationProfil return this; } + /** + * Get the containerRegistry property: Azure Container Registry configuration for authenticating image pulls + * on the cluster's worker nodes. + * + * @return the containerRegistry value. + */ + public ContainerRegistryProfile containerRegistry() { + return this.containerRegistry; + } + + /** + * Set the containerRegistry property: Azure Container Registry configuration for authenticating image pulls + * on the cluster's worker nodes. + * + * @param containerRegistry the containerRegistry value to set. + * @return the PlatformProfile object itself. + */ + public PlatformProfile withContainerRegistry(ContainerRegistryProfile containerRegistry) { + this.containerRegistry = containerRegistry; + return this; + } + /** * Get the issuerUrl property: URL for the OIDC provider to be used for authentication * to authenticate against user Azure cloud account. @@ -249,6 +277,7 @@ public JsonWriter toJson(JsonWriter jsonWriter) throws IOException { jsonWriter.writeJsonField("operatorsAuthentication", this.operatorsAuthentication); jsonWriter.writeStringField("managedResourceGroup", this.managedResourceGroup); jsonWriter.writeStringField("outboundType", this.outboundType == null ? null : this.outboundType.toString()); + jsonWriter.writeJsonField("containerRegistry", this.containerRegistry); return jsonWriter.writeEndObject(); } @@ -283,6 +312,8 @@ public static PlatformProfile fromJson(JsonReader jsonReader) throws IOException deserializedPlatformProfile.managedResourceGroup = reader.getString(); } else if ("outboundType".equals(fieldName)) { deserializedPlatformProfile.outboundType = OutboundType.fromString(reader.getString()); + } else if ("containerRegistry".equals(fieldName)) { + deserializedPlatformProfile.containerRegistry = ContainerRegistryProfile.fromJson(reader); } else { reader.skipChildren(); } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/TokenIssuerProfile.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/TokenIssuerProfile.java index 94f8fc0c7e256..4f48bbf86e059 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/TokenIssuerProfile.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/TokenIssuerProfile.java @@ -29,16 +29,15 @@ public final class TokenIssuerProfile implements JsonSerializable audiences; /* - * The issuer of the token + * The issuer of the token. * * Certificate bundle to use to validate server certificates for the configured URL. * It must be PEM encoded and when not specified, the system trust is used. @@ -80,11 +79,11 @@ public TokenIssuerProfile withUrl(String url) { } /** - * Get the audiences property: This configures the acceptable audiences the JWT token, issued by the identity - * provider, must be issued to. At least one of the entries must match the - * 'aud' claim in the JWT token. + * Get the audiences property: This configures the acceptable audiences for JWT tokens issued by the identity + * provider. + * At least one of the entries must match the 'aud' claim in the JWT token. * - * audiences must contain at least one entry and must not exceed ten entries. + * Audiences must contain at least one entry and must not exceed ten entries. * * @return the audiences value. */ @@ -93,11 +92,11 @@ public List audiences() { } /** - * Set the audiences property: This configures the acceptable audiences the JWT token, issued by the identity - * provider, must be issued to. At least one of the entries must match the - * 'aud' claim in the JWT token. + * Set the audiences property: This configures the acceptable audiences for JWT tokens issued by the identity + * provider. + * At least one of the entries must match the 'aud' claim in the JWT token. * - * audiences must contain at least one entry and must not exceed ten entries. + * Audiences must contain at least one entry and must not exceed ten entries. * * @param audiences the audiences value to set. * @return the TokenIssuerProfile object itself. @@ -108,7 +107,7 @@ public TokenIssuerProfile withAudiences(List audiences) { } /** - * Get the ca property: The issuer of the token + * Get the ca property: The issuer of the token. * * Certificate bundle to use to validate server certificates for the configured URL. * It must be PEM encoded and when not specified, the system trust is used. @@ -120,7 +119,7 @@ public String ca() { } /** - * Set the ca property: The issuer of the token + * Set the ca property: The issuer of the token. * * Certificate bundle to use to validate server certificates for the configured URL. * It must be PEM encoded and when not specified, the system trust is used. diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/UsernameClaimProfile.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/UsernameClaimProfile.java index 5712833db6e2b..333e01df6ba87 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/UsernameClaimProfile.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/UsernameClaimProfile.java @@ -25,7 +25,7 @@ public final class UsernameClaimProfile implements JsonSerializable { * Each version belongs to only a single set. * * If not specified, the default value is 'stable'. + * + * This property is intended to be updateable, but that support is not yet + * complete. Until then, changing this value after cluster creation is rejected. */ private String channelGroup; @@ -61,6 +64,9 @@ public VersionProfile withId(String id) { * * If not specified, the default value is 'stable'. * + * This property is intended to be updateable, but that support is not yet + * complete. Until then, changing this value after cluster creation is rejected. + * * @return the channelGroup value. */ public String channelGroup() { @@ -73,6 +79,9 @@ public String channelGroup() { * * If not specified, the default value is 'stable'. * + * This property is intended to be updateable, but that support is not yet + * complete. Until then, changing this value after cluster creation is rejected. + * * @param channelGroup the channelGroup value to set. * @return the VersionProfile object itself. */ diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/resources/META-INF/azure-resourcemanager-redhatopenshifthcp_metadata.json b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/resources/META-INF/azure-resourcemanager-redhatopenshifthcp_metadata.json index 4083f3c90f13b..efdf8678ff1f0 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/resources/META-INF/azure-resourcemanager-redhatopenshifthcp_metadata.json +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/main/resources/META-INF/azure-resourcemanager-redhatopenshifthcp_metadata.json @@ -1 +1 @@ -{"flavor":"azure","apiVersions":{"Microsoft.RedHatOpenShift":"2026-09-01-preview"},"crossLanguagePackageId":"Microsoft.RedHatOpenShift","crossLanguageVersion":"466c1d0d0b9a","crossLanguageDefinitions":{"com.azure.resourcemanager.redhatopenshifthcp.fluent.ExternalAuthsClient":"Microsoft.RedHatOpenShift.ExternalAuths","com.azure.resourcemanager.redhatopenshifthcp.fluent.ExternalAuthsClient.beginCreateOrUpdate":"Microsoft.RedHatOpenShift.ExternalAuths.createOrUpdate","com.azure.resourcemanager.redhatopenshifthcp.fluent.ExternalAuthsClient.beginDelete":"Microsoft.RedHatOpenShift.ExternalAuths.delete","com.azure.resourcemanager.redhatopenshifthcp.fluent.ExternalAuthsClient.beginUpdate":"Microsoft.RedHatOpenShift.ExternalAuths.update","com.azure.resourcemanager.redhatopenshifthcp.fluent.ExternalAuthsClient.createOrUpdate":"Microsoft.RedHatOpenShift.ExternalAuths.createOrUpdate","com.azure.resourcemanager.redhatopenshifthcp.fluent.ExternalAuthsClient.delete":"Microsoft.RedHatOpenShift.ExternalAuths.delete","com.azure.resourcemanager.redhatopenshifthcp.fluent.ExternalAuthsClient.get":"Microsoft.RedHatOpenShift.ExternalAuths.get","com.azure.resourcemanager.redhatopenshifthcp.fluent.ExternalAuthsClient.getWithResponse":"Microsoft.RedHatOpenShift.ExternalAuths.get","com.azure.resourcemanager.redhatopenshifthcp.fluent.ExternalAuthsClient.listByParent":"Microsoft.RedHatOpenShift.ExternalAuths.listByParent","com.azure.resourcemanager.redhatopenshifthcp.fluent.ExternalAuthsClient.update":"Microsoft.RedHatOpenShift.ExternalAuths.update","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOpenShiftClustersClient":"Microsoft.RedHatOpenShift.HcpOpenShiftClusters","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOpenShiftClustersClient.beginCreateOrUpdate":"Microsoft.RedHatOpenShift.HcpOpenShiftClusters.createOrUpdate","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOpenShiftClustersClient.beginDelete":"Microsoft.RedHatOpenShift.HcpOpenShiftClusters.delete","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOpenShiftClustersClient.beginRequestAdminCredential":"Microsoft.RedHatOpenShift.HcpOpenShiftClusters.requestAdminCredential","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOpenShiftClustersClient.beginRevokeCredentials":"Microsoft.RedHatOpenShift.HcpOpenShiftClusters.revokeCredentials","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOpenShiftClustersClient.beginUpdate":"Microsoft.RedHatOpenShift.HcpOpenShiftClusters.update","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOpenShiftClustersClient.createOrUpdate":"Microsoft.RedHatOpenShift.HcpOpenShiftClusters.createOrUpdate","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOpenShiftClustersClient.delete":"Microsoft.RedHatOpenShift.HcpOpenShiftClusters.delete","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOpenShiftClustersClient.getByResourceGroup":"Microsoft.RedHatOpenShift.HcpOpenShiftClusters.get","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOpenShiftClustersClient.getByResourceGroupWithResponse":"Microsoft.RedHatOpenShift.HcpOpenShiftClusters.get","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOpenShiftClustersClient.list":"Microsoft.RedHatOpenShift.HcpOpenShiftClusters.listBySubscription","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOpenShiftClustersClient.listByResourceGroup":"Microsoft.RedHatOpenShift.HcpOpenShiftClusters.listByResourceGroup","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOpenShiftClustersClient.requestAdminCredential":"Microsoft.RedHatOpenShift.HcpOpenShiftClusters.requestAdminCredential","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOpenShiftClustersClient.revokeCredentials":"Microsoft.RedHatOpenShift.HcpOpenShiftClusters.revokeCredentials","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOpenShiftClustersClient.update":"Microsoft.RedHatOpenShift.HcpOpenShiftClusters.update","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOpenShiftVersionsClient":"Microsoft.RedHatOpenShift.HcpOpenShiftVersions","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOpenShiftVersionsClient.get":"Microsoft.RedHatOpenShift.HcpOpenShiftVersions.get","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOpenShiftVersionsClient.getWithResponse":"Microsoft.RedHatOpenShift.HcpOpenShiftVersions.get","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOpenShiftVersionsClient.list":"Microsoft.RedHatOpenShift.HcpOpenShiftVersions.list","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOperatorIdentityRoleSetsClient":"Microsoft.RedHatOpenShift.HcpOperatorIdentityRoleSets","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOperatorIdentityRoleSetsClient.get":"Microsoft.RedHatOpenShift.HcpOperatorIdentityRoleSets.get","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOperatorIdentityRoleSetsClient.getWithResponse":"Microsoft.RedHatOpenShift.HcpOperatorIdentityRoleSets.get","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOperatorIdentityRoleSetsClient.list":"Microsoft.RedHatOpenShift.HcpOperatorIdentityRoleSets.list","com.azure.resourcemanager.redhatopenshifthcp.fluent.NodePoolsClient":"Microsoft.RedHatOpenShift.NodePools","com.azure.resourcemanager.redhatopenshifthcp.fluent.NodePoolsClient.beginCreateOrUpdate":"Microsoft.RedHatOpenShift.NodePools.createOrUpdate","com.azure.resourcemanager.redhatopenshifthcp.fluent.NodePoolsClient.beginDelete":"Microsoft.RedHatOpenShift.NodePools.delete","com.azure.resourcemanager.redhatopenshifthcp.fluent.NodePoolsClient.beginUpdate":"Microsoft.RedHatOpenShift.NodePools.update","com.azure.resourcemanager.redhatopenshifthcp.fluent.NodePoolsClient.createOrUpdate":"Microsoft.RedHatOpenShift.NodePools.createOrUpdate","com.azure.resourcemanager.redhatopenshifthcp.fluent.NodePoolsClient.delete":"Microsoft.RedHatOpenShift.NodePools.delete","com.azure.resourcemanager.redhatopenshifthcp.fluent.NodePoolsClient.get":"Microsoft.RedHatOpenShift.NodePools.get","com.azure.resourcemanager.redhatopenshifthcp.fluent.NodePoolsClient.getWithResponse":"Microsoft.RedHatOpenShift.NodePools.get","com.azure.resourcemanager.redhatopenshifthcp.fluent.NodePoolsClient.listByParent":"Microsoft.RedHatOpenShift.NodePools.listByParent","com.azure.resourcemanager.redhatopenshifthcp.fluent.NodePoolsClient.update":"Microsoft.RedHatOpenShift.NodePools.update","com.azure.resourcemanager.redhatopenshifthcp.fluent.OperationsClient":"Microsoft.RedHatOpenShift.Operations","com.azure.resourcemanager.redhatopenshifthcp.fluent.OperationsClient.list":"Azure.ResourceManager.Operations.list","com.azure.resourcemanager.redhatopenshifthcp.fluent.RedHatOpenShiftHostedControlPlanesManagementClient":"Microsoft.RedHatOpenShift","com.azure.resourcemanager.redhatopenshifthcp.fluent.models.ExternalAuthInner":"Microsoft.RedHatOpenShift.ExternalAuth","com.azure.resourcemanager.redhatopenshifthcp.fluent.models.HcpOpenShiftClusterAdminCredentialInner":"Microsoft.RedHatOpenShift.HcpOpenShiftClusterAdminCredential","com.azure.resourcemanager.redhatopenshifthcp.fluent.models.HcpOpenShiftClusterInner":"Microsoft.RedHatOpenShift.HcpOpenShiftCluster","com.azure.resourcemanager.redhatopenshifthcp.fluent.models.HcpOpenShiftVersionInner":"Microsoft.RedHatOpenShift.HcpOpenShiftVersion","com.azure.resourcemanager.redhatopenshifthcp.fluent.models.HcpOperatorIdentityRoleSetInner":"Microsoft.RedHatOpenShift.HcpOperatorIdentityRoleSet","com.azure.resourcemanager.redhatopenshifthcp.fluent.models.NodePoolInner":"Microsoft.RedHatOpenShift.NodePool","com.azure.resourcemanager.redhatopenshifthcp.fluent.models.OperationInner":"Azure.ResourceManager.CommonTypes.Operation","com.azure.resourcemanager.redhatopenshifthcp.implementation.RedHatOpenShiftHostedControlPlanesManagementClientBuilder":"Microsoft.RedHatOpenShift","com.azure.resourcemanager.redhatopenshifthcp.implementation.models.ExternalAuthListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.redhatopenshifthcp.implementation.models.HcpOpenShiftClusterListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.redhatopenshifthcp.implementation.models.HcpOpenShiftVersionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.redhatopenshifthcp.implementation.models.HcpOperatorIdentityRoleSetListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.redhatopenshifthcp.implementation.models.NodePoolListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.redhatopenshifthcp.implementation.models.OperationListResult":"Azure.ResourceManager.CommonTypes.OperationListResult","com.azure.resourcemanager.redhatopenshifthcp.models.ActionType":"Azure.ResourceManager.CommonTypes.ActionType","com.azure.resourcemanager.redhatopenshifthcp.models.ApiProfile":"Microsoft.RedHatOpenShift.ApiProfile","com.azure.resourcemanager.redhatopenshifthcp.models.ClusterAutoscalingProfile":"Microsoft.RedHatOpenShift.ClusterAutoscalingProfile","com.azure.resourcemanager.redhatopenshifthcp.models.ClusterImageRegistryProfile":"Microsoft.RedHatOpenShift.ClusterImageRegistryProfile","com.azure.resourcemanager.redhatopenshifthcp.models.ClusterImageRegistryState":"Microsoft.RedHatOpenShift.ClusterImageRegistryState","com.azure.resourcemanager.redhatopenshifthcp.models.Condition":"Microsoft.RedHatOpenShift.Condition","com.azure.resourcemanager.redhatopenshifthcp.models.ConditionType":"Microsoft.RedHatOpenShift.ConditionType","com.azure.resourcemanager.redhatopenshifthcp.models.ConsoleProfile":"Microsoft.RedHatOpenShift.ConsoleProfile","com.azure.resourcemanager.redhatopenshifthcp.models.CryptoRestrictions":"Microsoft.RedHatOpenShift.CryptoRestrictions","com.azure.resourcemanager.redhatopenshifthcp.models.CustomerManagedEncryptionProfile":"Microsoft.RedHatOpenShift.CustomerManagedEncryptionProfile","com.azure.resourcemanager.redhatopenshifthcp.models.CustomerManagedEncryptionType":"Microsoft.RedHatOpenShift.CustomerManagedEncryptionType","com.azure.resourcemanager.redhatopenshifthcp.models.DiskStorageAccountType":"Microsoft.RedHatOpenShift.DiskStorageAccountType","com.azure.resourcemanager.redhatopenshifthcp.models.DnsProfile":"Microsoft.RedHatOpenShift.DnsProfile","com.azure.resourcemanager.redhatopenshifthcp.models.Effect":"Microsoft.RedHatOpenShift.Effect","com.azure.resourcemanager.redhatopenshifthcp.models.EtcdDataEncryptionKeyManagementModeType":"Microsoft.RedHatOpenShift.EtcdDataEncryptionKeyManagementModeType","com.azure.resourcemanager.redhatopenshifthcp.models.EtcdDataEncryptionProfile":"Microsoft.RedHatOpenShift.EtcdDataEncryptionProfile","com.azure.resourcemanager.redhatopenshifthcp.models.EtcdProfile":"Microsoft.RedHatOpenShift.EtcdProfile","com.azure.resourcemanager.redhatopenshifthcp.models.ExternalAuthClaimProfile":"Microsoft.RedHatOpenShift.ExternalAuthClaimProfile","com.azure.resourcemanager.redhatopenshifthcp.models.ExternalAuthClientComponentProfile":"Microsoft.RedHatOpenShift.ExternalAuthClientComponentProfile","com.azure.resourcemanager.redhatopenshifthcp.models.ExternalAuthClientProfile":"Microsoft.RedHatOpenShift.ExternalAuthClientProfile","com.azure.resourcemanager.redhatopenshifthcp.models.ExternalAuthClientType":"Microsoft.RedHatOpenShift.ExternalAuthClientType","com.azure.resourcemanager.redhatopenshifthcp.models.ExternalAuthProperties":"Microsoft.RedHatOpenShift.ExternalAuthProperties","com.azure.resourcemanager.redhatopenshifthcp.models.ExternalAuthProvisioningState":"Microsoft.RedHatOpenShift.ExternalAuthProvisioningState","com.azure.resourcemanager.redhatopenshifthcp.models.GroupClaimProfile":"Microsoft.RedHatOpenShift.GroupClaimProfile","com.azure.resourcemanager.redhatopenshifthcp.models.HcpOpenShiftClusterAdminCredentialRequest":"Microsoft.RedHatOpenShift.HcpOpenShiftClusterAdminCredentialRequest","com.azure.resourcemanager.redhatopenshifthcp.models.HcpOpenShiftClusterProperties":"Microsoft.RedHatOpenShift.HcpOpenShiftClusterProperties","com.azure.resourcemanager.redhatopenshifthcp.models.HcpOpenShiftVersionProperties":"Microsoft.RedHatOpenShift.HcpOpenShiftVersionProperties","com.azure.resourcemanager.redhatopenshifthcp.models.HcpOperatorIdentityRoleSetProperties":"Microsoft.RedHatOpenShift.HcpOperatorIdentityRoleSetProperties","com.azure.resourcemanager.redhatopenshifthcp.models.ImageDigestMirror":"Microsoft.RedHatOpenShift.ImageDigestMirror","com.azure.resourcemanager.redhatopenshifthcp.models.IngressProfile":"Microsoft.RedHatOpenShift.IngressProfile","com.azure.resourcemanager.redhatopenshifthcp.models.IngressType":"Microsoft.RedHatOpenShift.IngressType","com.azure.resourcemanager.redhatopenshifthcp.models.KeyVaultVisibility":"Microsoft.RedHatOpenShift.KeyVaultVisibility","com.azure.resourcemanager.redhatopenshifthcp.models.KmsEncryptionProfile":"Microsoft.RedHatOpenShift.KmsEncryptionProfile","com.azure.resourcemanager.redhatopenshifthcp.models.KmsKey":"Microsoft.RedHatOpenShift.KmsKey","com.azure.resourcemanager.redhatopenshifthcp.models.Label":"Microsoft.RedHatOpenShift.Label","com.azure.resourcemanager.redhatopenshifthcp.models.ManagedServiceIdentity":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentity","com.azure.resourcemanager.redhatopenshifthcp.models.ManagedServiceIdentityType":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType","com.azure.resourcemanager.redhatopenshifthcp.models.NetworkProfile":"Microsoft.RedHatOpenShift.NetworkProfile","com.azure.resourcemanager.redhatopenshifthcp.models.NetworkType":"Microsoft.RedHatOpenShift.NetworkType","com.azure.resourcemanager.redhatopenshifthcp.models.NodePoolAutoScaling":"Microsoft.RedHatOpenShift.NodePoolAutoScaling","com.azure.resourcemanager.redhatopenshifthcp.models.NodePoolPlatformProfile":"Microsoft.RedHatOpenShift.NodePoolPlatformProfile","com.azure.resourcemanager.redhatopenshifthcp.models.NodePoolProperties":"Microsoft.RedHatOpenShift.NodePoolProperties","com.azure.resourcemanager.redhatopenshifthcp.models.NodePoolVersionProfile":"Microsoft.RedHatOpenShift.NodePoolVersionProfile","com.azure.resourcemanager.redhatopenshifthcp.models.OperationDisplay":"Azure.ResourceManager.CommonTypes.OperationDisplay","com.azure.resourcemanager.redhatopenshifthcp.models.OperatorIdentityRequired":"Microsoft.RedHatOpenShift.OperatorIdentityRequired","com.azure.resourcemanager.redhatopenshifthcp.models.OperatorIdentityRoles":"Microsoft.RedHatOpenShift.OperatorIdentityRoles","com.azure.resourcemanager.redhatopenshifthcp.models.OperatorsAuthenticationProfile":"Microsoft.RedHatOpenShift.OperatorsAuthenticationProfile","com.azure.resourcemanager.redhatopenshifthcp.models.Origin":"Azure.ResourceManager.CommonTypes.Origin","com.azure.resourcemanager.redhatopenshifthcp.models.OsDiskProfile":"Microsoft.RedHatOpenShift.OsDiskProfile","com.azure.resourcemanager.redhatopenshifthcp.models.OsDiskType":"Microsoft.RedHatOpenShift.OsDiskType","com.azure.resourcemanager.redhatopenshifthcp.models.OutboundType":"Microsoft.RedHatOpenShift.OutboundType","com.azure.resourcemanager.redhatopenshifthcp.models.PlatformProfile":"Microsoft.RedHatOpenShift.PlatformProfile","com.azure.resourcemanager.redhatopenshifthcp.models.ProvisioningState":"Microsoft.RedHatOpenShift.ProvisioningState","com.azure.resourcemanager.redhatopenshifthcp.models.ResourceStatus":"Microsoft.RedHatOpenShift.ResourceStatus","com.azure.resourcemanager.redhatopenshifthcp.models.RoleDefinition":"Microsoft.RedHatOpenShift.RoleDefinition","com.azure.resourcemanager.redhatopenshifthcp.models.StatusType":"Microsoft.RedHatOpenShift.StatusType","com.azure.resourcemanager.redhatopenshifthcp.models.Taint":"Microsoft.RedHatOpenShift.Taint","com.azure.resourcemanager.redhatopenshifthcp.models.TokenClaimMappingsProfile":"Microsoft.RedHatOpenShift.TokenClaimMappingsProfile","com.azure.resourcemanager.redhatopenshifthcp.models.TokenClaimValidationRule":"Microsoft.RedHatOpenShift.TokenClaimValidationRule","com.azure.resourcemanager.redhatopenshifthcp.models.TokenIssuerProfile":"Microsoft.RedHatOpenShift.TokenIssuerProfile","com.azure.resourcemanager.redhatopenshifthcp.models.TokenRequiredClaim":"Microsoft.RedHatOpenShift.TokenRequiredClaim","com.azure.resourcemanager.redhatopenshifthcp.models.TokenValidationRuleType":"Microsoft.RedHatOpenShift.TokenValidationRuleType","com.azure.resourcemanager.redhatopenshifthcp.models.UserAssignedIdentitiesProfile":"Microsoft.RedHatOpenShift.UserAssignedIdentitiesProfile","com.azure.resourcemanager.redhatopenshifthcp.models.UserAssignedIdentity":"Azure.ResourceManager.CommonTypes.UserAssignedIdentity","com.azure.resourcemanager.redhatopenshifthcp.models.UsernameClaimPrefixPolicy":"Microsoft.RedHatOpenShift.UsernameClaimPrefixPolicy","com.azure.resourcemanager.redhatopenshifthcp.models.UsernameClaimProfile":"Microsoft.RedHatOpenShift.UsernameClaimProfile","com.azure.resourcemanager.redhatopenshifthcp.models.VersionProfile":"Microsoft.RedHatOpenShift.VersionProfile","com.azure.resourcemanager.redhatopenshifthcp.models.Visibility":"Microsoft.RedHatOpenShift.Visibility"},"generatedFiles":["src/main/java/com/azure/resourcemanager/redhatopenshifthcp/RedHatOpenShiftHostedControlPlanesManager.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/fluent/ExternalAuthsClient.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/fluent/HcpOpenShiftClustersClient.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/fluent/HcpOpenShiftVersionsClient.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/fluent/HcpOperatorIdentityRoleSetsClient.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/fluent/NodePoolsClient.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/fluent/RedHatOpenShiftHostedControlPlanesManagementClient.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/fluent/models/ExternalAuthInner.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/fluent/models/HcpOpenShiftClusterAdminCredentialInner.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/fluent/models/HcpOpenShiftClusterInner.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/fluent/models/HcpOpenShiftVersionInner.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/fluent/models/HcpOperatorIdentityRoleSetInner.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/fluent/models/NodePoolInner.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/fluent/package-info.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/ExternalAuthImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/ExternalAuthsClientImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/ExternalAuthsImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/HcpOpenShiftClusterAdminCredentialImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/HcpOpenShiftClusterImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/HcpOpenShiftClustersClientImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/HcpOpenShiftClustersImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/HcpOpenShiftVersionImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/HcpOpenShiftVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/HcpOpenShiftVersionsImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/HcpOperatorIdentityRoleSetImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/HcpOperatorIdentityRoleSetsClientImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/HcpOperatorIdentityRoleSetsImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/NodePoolImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/NodePoolsClientImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/NodePoolsImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/OperationImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/RedHatOpenShiftHostedControlPlanesManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/RedHatOpenShiftHostedControlPlanesManagementClientImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/models/ExternalAuthListResult.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/models/HcpOpenShiftClusterListResult.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/models/HcpOpenShiftVersionListResult.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/models/HcpOperatorIdentityRoleSetListResult.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/models/NodePoolListResult.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/package-info.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ActionType.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ApiProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ClusterAutoscalingProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ClusterImageRegistryProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ClusterImageRegistryState.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/Condition.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ConditionType.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ConsoleProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/CryptoRestrictions.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/CustomerManagedEncryptionProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/CustomerManagedEncryptionType.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/DiskStorageAccountType.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/DnsProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/Effect.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/EtcdDataEncryptionKeyManagementModeType.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/EtcdDataEncryptionProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/EtcdProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ExternalAuth.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ExternalAuthClaimProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ExternalAuthClientComponentProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ExternalAuthClientProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ExternalAuthClientType.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ExternalAuthProperties.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ExternalAuthProvisioningState.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ExternalAuths.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/GroupClaimProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/HcpOpenShiftCluster.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/HcpOpenShiftClusterAdminCredential.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/HcpOpenShiftClusterAdminCredentialRequest.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/HcpOpenShiftClusterProperties.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/HcpOpenShiftClusters.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/HcpOpenShiftVersion.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/HcpOpenShiftVersionProperties.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/HcpOpenShiftVersions.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/HcpOperatorIdentityRoleSet.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/HcpOperatorIdentityRoleSetProperties.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/HcpOperatorIdentityRoleSets.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ImageDigestMirror.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/IngressProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/IngressType.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/KeyVaultVisibility.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/KmsEncryptionProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/KmsKey.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/Label.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ManagedServiceIdentity.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ManagedServiceIdentityType.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/NetworkProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/NetworkType.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/NodePool.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/NodePoolAutoScaling.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/NodePoolPlatformProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/NodePoolProperties.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/NodePoolVersionProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/NodePools.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/Operation.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/Operations.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/OperatorIdentityRequired.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/OperatorIdentityRoles.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/OperatorsAuthenticationProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/Origin.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/OsDiskProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/OsDiskType.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/OutboundType.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/PlatformProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ProvisioningState.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ResourceStatus.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/RoleDefinition.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/StatusType.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/Taint.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/TokenClaimMappingsProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/TokenClaimValidationRule.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/TokenIssuerProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/TokenRequiredClaim.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/TokenValidationRuleType.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/UserAssignedIdentitiesProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/UsernameClaimPrefixPolicy.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/UsernameClaimProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/VersionProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/Visibility.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/package-info.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file +{"flavor":"azure","apiVersions":{"Microsoft.RedHatOpenShift":"2026-10-01"},"crossLanguagePackageId":"Microsoft.RedHatOpenShift","crossLanguageVersion":"99f42749ff6e","crossLanguageDefinitions":{"com.azure.resourcemanager.redhatopenshifthcp.fluent.ExternalAuthsClient":"Microsoft.RedHatOpenShift.ExternalAuths","com.azure.resourcemanager.redhatopenshifthcp.fluent.ExternalAuthsClient.beginCreateOrUpdate":"Microsoft.RedHatOpenShift.ExternalAuths.createOrUpdate","com.azure.resourcemanager.redhatopenshifthcp.fluent.ExternalAuthsClient.beginDelete":"Microsoft.RedHatOpenShift.ExternalAuths.delete","com.azure.resourcemanager.redhatopenshifthcp.fluent.ExternalAuthsClient.beginUpdate":"Microsoft.RedHatOpenShift.ExternalAuths.update","com.azure.resourcemanager.redhatopenshifthcp.fluent.ExternalAuthsClient.createOrUpdate":"Microsoft.RedHatOpenShift.ExternalAuths.createOrUpdate","com.azure.resourcemanager.redhatopenshifthcp.fluent.ExternalAuthsClient.delete":"Microsoft.RedHatOpenShift.ExternalAuths.delete","com.azure.resourcemanager.redhatopenshifthcp.fluent.ExternalAuthsClient.get":"Microsoft.RedHatOpenShift.ExternalAuths.get","com.azure.resourcemanager.redhatopenshifthcp.fluent.ExternalAuthsClient.getWithResponse":"Microsoft.RedHatOpenShift.ExternalAuths.get","com.azure.resourcemanager.redhatopenshifthcp.fluent.ExternalAuthsClient.listByParent":"Microsoft.RedHatOpenShift.ExternalAuths.listByParent","com.azure.resourcemanager.redhatopenshifthcp.fluent.ExternalAuthsClient.update":"Microsoft.RedHatOpenShift.ExternalAuths.update","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOpenShiftClustersClient":"Microsoft.RedHatOpenShift.HcpOpenShiftClusters","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOpenShiftClustersClient.beginCreateOrUpdate":"Microsoft.RedHatOpenShift.HcpOpenShiftClusters.createOrUpdate","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOpenShiftClustersClient.beginDelete":"Microsoft.RedHatOpenShift.HcpOpenShiftClusters.delete","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOpenShiftClustersClient.beginRequestAdminCredential":"Microsoft.RedHatOpenShift.HcpOpenShiftClusters.requestAdminCredential","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOpenShiftClustersClient.beginRevokeCredentials":"Microsoft.RedHatOpenShift.HcpOpenShiftClusters.revokeCredentials","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOpenShiftClustersClient.beginUpdate":"Microsoft.RedHatOpenShift.HcpOpenShiftClusters.update","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOpenShiftClustersClient.createOrUpdate":"Microsoft.RedHatOpenShift.HcpOpenShiftClusters.createOrUpdate","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOpenShiftClustersClient.delete":"Microsoft.RedHatOpenShift.HcpOpenShiftClusters.delete","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOpenShiftClustersClient.getByResourceGroup":"Microsoft.RedHatOpenShift.HcpOpenShiftClusters.get","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOpenShiftClustersClient.getByResourceGroupWithResponse":"Microsoft.RedHatOpenShift.HcpOpenShiftClusters.get","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOpenShiftClustersClient.list":"Microsoft.RedHatOpenShift.HcpOpenShiftClusters.listBySubscription","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOpenShiftClustersClient.listByResourceGroup":"Microsoft.RedHatOpenShift.HcpOpenShiftClusters.listByResourceGroup","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOpenShiftClustersClient.requestAdminCredential":"Microsoft.RedHatOpenShift.HcpOpenShiftClusters.requestAdminCredential","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOpenShiftClustersClient.revokeCredentials":"Microsoft.RedHatOpenShift.HcpOpenShiftClusters.revokeCredentials","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOpenShiftClustersClient.update":"Microsoft.RedHatOpenShift.HcpOpenShiftClusters.update","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOpenShiftVersionsClient":"Microsoft.RedHatOpenShift.HcpOpenShiftVersions","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOpenShiftVersionsClient.get":"Microsoft.RedHatOpenShift.HcpOpenShiftVersions.get","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOpenShiftVersionsClient.getWithResponse":"Microsoft.RedHatOpenShift.HcpOpenShiftVersions.get","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOpenShiftVersionsClient.list":"Microsoft.RedHatOpenShift.HcpOpenShiftVersions.list","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOperatorIdentityRoleSetsClient":"Microsoft.RedHatOpenShift.HcpOperatorIdentityRoleSets","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOperatorIdentityRoleSetsClient.get":"Microsoft.RedHatOpenShift.HcpOperatorIdentityRoleSets.get","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOperatorIdentityRoleSetsClient.getWithResponse":"Microsoft.RedHatOpenShift.HcpOperatorIdentityRoleSets.get","com.azure.resourcemanager.redhatopenshifthcp.fluent.HcpOperatorIdentityRoleSetsClient.list":"Microsoft.RedHatOpenShift.HcpOperatorIdentityRoleSets.list","com.azure.resourcemanager.redhatopenshifthcp.fluent.NodePoolsClient":"Microsoft.RedHatOpenShift.NodePools","com.azure.resourcemanager.redhatopenshifthcp.fluent.NodePoolsClient.beginCreateOrUpdate":"Microsoft.RedHatOpenShift.NodePools.createOrUpdate","com.azure.resourcemanager.redhatopenshifthcp.fluent.NodePoolsClient.beginDelete":"Microsoft.RedHatOpenShift.NodePools.delete","com.azure.resourcemanager.redhatopenshifthcp.fluent.NodePoolsClient.beginUpdate":"Microsoft.RedHatOpenShift.NodePools.update","com.azure.resourcemanager.redhatopenshifthcp.fluent.NodePoolsClient.createOrUpdate":"Microsoft.RedHatOpenShift.NodePools.createOrUpdate","com.azure.resourcemanager.redhatopenshifthcp.fluent.NodePoolsClient.delete":"Microsoft.RedHatOpenShift.NodePools.delete","com.azure.resourcemanager.redhatopenshifthcp.fluent.NodePoolsClient.get":"Microsoft.RedHatOpenShift.NodePools.get","com.azure.resourcemanager.redhatopenshifthcp.fluent.NodePoolsClient.getWithResponse":"Microsoft.RedHatOpenShift.NodePools.get","com.azure.resourcemanager.redhatopenshifthcp.fluent.NodePoolsClient.listByParent":"Microsoft.RedHatOpenShift.NodePools.listByParent","com.azure.resourcemanager.redhatopenshifthcp.fluent.NodePoolsClient.update":"Microsoft.RedHatOpenShift.NodePools.update","com.azure.resourcemanager.redhatopenshifthcp.fluent.OperationsClient":"Microsoft.RedHatOpenShift.Operations","com.azure.resourcemanager.redhatopenshifthcp.fluent.OperationsClient.list":"Azure.ResourceManager.Operations.list","com.azure.resourcemanager.redhatopenshifthcp.fluent.RedHatOpenShiftHostedControlPlanesManagementClient":"Microsoft.RedHatOpenShift","com.azure.resourcemanager.redhatopenshifthcp.fluent.models.ExternalAuthInner":"Microsoft.RedHatOpenShift.ExternalAuth","com.azure.resourcemanager.redhatopenshifthcp.fluent.models.HcpOpenShiftClusterAdminCredentialInner":"Microsoft.RedHatOpenShift.HcpOpenShiftClusterAdminCredential","com.azure.resourcemanager.redhatopenshifthcp.fluent.models.HcpOpenShiftClusterInner":"Microsoft.RedHatOpenShift.HcpOpenShiftCluster","com.azure.resourcemanager.redhatopenshifthcp.fluent.models.HcpOpenShiftVersionInner":"Microsoft.RedHatOpenShift.HcpOpenShiftVersion","com.azure.resourcemanager.redhatopenshifthcp.fluent.models.HcpOperatorIdentityRoleSetInner":"Microsoft.RedHatOpenShift.HcpOperatorIdentityRoleSet","com.azure.resourcemanager.redhatopenshifthcp.fluent.models.NodePoolInner":"Microsoft.RedHatOpenShift.NodePool","com.azure.resourcemanager.redhatopenshifthcp.fluent.models.OperationInner":"Azure.ResourceManager.CommonTypes.Operation","com.azure.resourcemanager.redhatopenshifthcp.implementation.RedHatOpenShiftHostedControlPlanesManagementClientBuilder":"Microsoft.RedHatOpenShift","com.azure.resourcemanager.redhatopenshifthcp.implementation.models.ExternalAuthListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.redhatopenshifthcp.implementation.models.HcpOpenShiftClusterListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.redhatopenshifthcp.implementation.models.HcpOpenShiftVersionListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.redhatopenshifthcp.implementation.models.HcpOperatorIdentityRoleSetListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.redhatopenshifthcp.implementation.models.NodePoolListResult":"Azure.ResourceManager.ResourceListResult","com.azure.resourcemanager.redhatopenshifthcp.implementation.models.OperationListResult":"Azure.ResourceManager.CommonTypes.OperationListResult","com.azure.resourcemanager.redhatopenshifthcp.models.ActionType":"Azure.ResourceManager.CommonTypes.ActionType","com.azure.resourcemanager.redhatopenshifthcp.models.ApiProfile":"Microsoft.RedHatOpenShift.ApiProfile","com.azure.resourcemanager.redhatopenshifthcp.models.ClusterActiveVersion":"Microsoft.RedHatOpenShift.ClusterActiveVersion","com.azure.resourcemanager.redhatopenshifthcp.models.ClusterAutoscalingProfile":"Microsoft.RedHatOpenShift.ClusterAutoscalingProfile","com.azure.resourcemanager.redhatopenshifthcp.models.ClusterImageRegistryProfile":"Microsoft.RedHatOpenShift.ClusterImageRegistryProfile","com.azure.resourcemanager.redhatopenshifthcp.models.ClusterImageRegistryState":"Microsoft.RedHatOpenShift.ClusterImageRegistryState","com.azure.resourcemanager.redhatopenshifthcp.models.ClusterResourceStatus":"Microsoft.RedHatOpenShift.ClusterResourceStatus","com.azure.resourcemanager.redhatopenshifthcp.models.Condition":"Microsoft.RedHatOpenShift.Condition","com.azure.resourcemanager.redhatopenshifthcp.models.ConditionType":"Microsoft.RedHatOpenShift.ConditionType","com.azure.resourcemanager.redhatopenshifthcp.models.ConsoleProfile":"Microsoft.RedHatOpenShift.ConsoleProfile","com.azure.resourcemanager.redhatopenshifthcp.models.ContainerRegistryProfile":"Microsoft.RedHatOpenShift.ContainerRegistryProfile","com.azure.resourcemanager.redhatopenshifthcp.models.CryptoRestrictions":"Microsoft.RedHatOpenShift.CryptoRestrictions","com.azure.resourcemanager.redhatopenshifthcp.models.CustomerManagedEncryptionProfile":"Microsoft.RedHatOpenShift.CustomerManagedEncryptionProfile","com.azure.resourcemanager.redhatopenshifthcp.models.CustomerManagedEncryptionType":"Microsoft.RedHatOpenShift.CustomerManagedEncryptionType","com.azure.resourcemanager.redhatopenshifthcp.models.DiskStorageAccountType":"Microsoft.RedHatOpenShift.DiskStorageAccountType","com.azure.resourcemanager.redhatopenshifthcp.models.DnsProfile":"Microsoft.RedHatOpenShift.DnsProfile","com.azure.resourcemanager.redhatopenshifthcp.models.Effect":"Microsoft.RedHatOpenShift.Effect","com.azure.resourcemanager.redhatopenshifthcp.models.EtcdDataEncryptionKeyManagementModeType":"Microsoft.RedHatOpenShift.EtcdDataEncryptionKeyManagementModeType","com.azure.resourcemanager.redhatopenshifthcp.models.EtcdDataEncryptionProfile":"Microsoft.RedHatOpenShift.EtcdDataEncryptionProfile","com.azure.resourcemanager.redhatopenshifthcp.models.EtcdProfile":"Microsoft.RedHatOpenShift.EtcdProfile","com.azure.resourcemanager.redhatopenshifthcp.models.ExternalAuthClaimProfile":"Microsoft.RedHatOpenShift.ExternalAuthClaimProfile","com.azure.resourcemanager.redhatopenshifthcp.models.ExternalAuthClientComponentProfile":"Microsoft.RedHatOpenShift.ExternalAuthClientComponentProfile","com.azure.resourcemanager.redhatopenshifthcp.models.ExternalAuthClientProfile":"Microsoft.RedHatOpenShift.ExternalAuthClientProfile","com.azure.resourcemanager.redhatopenshifthcp.models.ExternalAuthClientType":"Microsoft.RedHatOpenShift.ExternalAuthClientType","com.azure.resourcemanager.redhatopenshifthcp.models.ExternalAuthProperties":"Microsoft.RedHatOpenShift.ExternalAuthProperties","com.azure.resourcemanager.redhatopenshifthcp.models.ExternalAuthProvisioningState":"Microsoft.RedHatOpenShift.ExternalAuthProvisioningState","com.azure.resourcemanager.redhatopenshifthcp.models.ExternalAuthResourceStatus":"Microsoft.RedHatOpenShift.ExternalAuthResourceStatus","com.azure.resourcemanager.redhatopenshifthcp.models.GroupClaimProfile":"Microsoft.RedHatOpenShift.GroupClaimProfile","com.azure.resourcemanager.redhatopenshifthcp.models.HcpOpenShiftClusterAdminCredentialRequest":"Microsoft.RedHatOpenShift.HcpOpenShiftClusterAdminCredentialRequest","com.azure.resourcemanager.redhatopenshifthcp.models.HcpOpenShiftClusterProperties":"Microsoft.RedHatOpenShift.HcpOpenShiftClusterProperties","com.azure.resourcemanager.redhatopenshifthcp.models.HcpOpenShiftVersionProperties":"Microsoft.RedHatOpenShift.HcpOpenShiftVersionProperties","com.azure.resourcemanager.redhatopenshifthcp.models.HcpOperatorIdentityRoleSetProperties":"Microsoft.RedHatOpenShift.HcpOperatorIdentityRoleSetProperties","com.azure.resourcemanager.redhatopenshifthcp.models.ImageDigestMirror":"Microsoft.RedHatOpenShift.ImageDigestMirror","com.azure.resourcemanager.redhatopenshifthcp.models.IngressProfile":"Microsoft.RedHatOpenShift.IngressProfile","com.azure.resourcemanager.redhatopenshifthcp.models.IngressType":"Microsoft.RedHatOpenShift.IngressType","com.azure.resourcemanager.redhatopenshifthcp.models.KeyVaultVisibility":"Microsoft.RedHatOpenShift.KeyVaultVisibility","com.azure.resourcemanager.redhatopenshifthcp.models.KmsEncryptionProfile":"Microsoft.RedHatOpenShift.KmsEncryptionProfile","com.azure.resourcemanager.redhatopenshifthcp.models.KmsKey":"Microsoft.RedHatOpenShift.KmsKey","com.azure.resourcemanager.redhatopenshifthcp.models.KmsKeyVaultType":"Microsoft.RedHatOpenShift.KmsKeyVaultType","com.azure.resourcemanager.redhatopenshifthcp.models.Label":"Microsoft.RedHatOpenShift.Label","com.azure.resourcemanager.redhatopenshifthcp.models.ManagedServiceIdentity":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentity","com.azure.resourcemanager.redhatopenshifthcp.models.ManagedServiceIdentityType":"Azure.ResourceManager.CommonTypes.ManagedServiceIdentityType","com.azure.resourcemanager.redhatopenshifthcp.models.NetworkProfile":"Microsoft.RedHatOpenShift.NetworkProfile","com.azure.resourcemanager.redhatopenshifthcp.models.NetworkType":"Microsoft.RedHatOpenShift.NetworkType","com.azure.resourcemanager.redhatopenshifthcp.models.NodePoolActiveVersion":"Microsoft.RedHatOpenShift.NodePoolActiveVersion","com.azure.resourcemanager.redhatopenshifthcp.models.NodePoolAutoScaling":"Microsoft.RedHatOpenShift.NodePoolAutoScaling","com.azure.resourcemanager.redhatopenshifthcp.models.NodePoolPlatformProfile":"Microsoft.RedHatOpenShift.NodePoolPlatformProfile","com.azure.resourcemanager.redhatopenshifthcp.models.NodePoolProperties":"Microsoft.RedHatOpenShift.NodePoolProperties","com.azure.resourcemanager.redhatopenshifthcp.models.NodePoolResourceStatus":"Microsoft.RedHatOpenShift.NodePoolResourceStatus","com.azure.resourcemanager.redhatopenshifthcp.models.NodePoolVersionProfile":"Microsoft.RedHatOpenShift.NodePoolVersionProfile","com.azure.resourcemanager.redhatopenshifthcp.models.OperationDisplay":"Azure.ResourceManager.CommonTypes.OperationDisplay","com.azure.resourcemanager.redhatopenshifthcp.models.OperatorIdentityRequired":"Microsoft.RedHatOpenShift.OperatorIdentityRequired","com.azure.resourcemanager.redhatopenshifthcp.models.OperatorIdentityRoles":"Microsoft.RedHatOpenShift.OperatorIdentityRoles","com.azure.resourcemanager.redhatopenshifthcp.models.OperatorsAuthenticationProfile":"Microsoft.RedHatOpenShift.OperatorsAuthenticationProfile","com.azure.resourcemanager.redhatopenshifthcp.models.Origin":"Azure.ResourceManager.CommonTypes.Origin","com.azure.resourcemanager.redhatopenshifthcp.models.OsDiskProfile":"Microsoft.RedHatOpenShift.OsDiskProfile","com.azure.resourcemanager.redhatopenshifthcp.models.OsDiskType":"Microsoft.RedHatOpenShift.OsDiskType","com.azure.resourcemanager.redhatopenshifthcp.models.OutboundType":"Microsoft.RedHatOpenShift.OutboundType","com.azure.resourcemanager.redhatopenshifthcp.models.PlatformProfile":"Microsoft.RedHatOpenShift.PlatformProfile","com.azure.resourcemanager.redhatopenshifthcp.models.ProvisioningState":"Microsoft.RedHatOpenShift.ProvisioningState","com.azure.resourcemanager.redhatopenshifthcp.models.RoleDefinition":"Microsoft.RedHatOpenShift.RoleDefinition","com.azure.resourcemanager.redhatopenshifthcp.models.StatusType":"Microsoft.RedHatOpenShift.StatusType","com.azure.resourcemanager.redhatopenshifthcp.models.Taint":"Microsoft.RedHatOpenShift.Taint","com.azure.resourcemanager.redhatopenshifthcp.models.TokenClaimMappingsProfile":"Microsoft.RedHatOpenShift.TokenClaimMappingsProfile","com.azure.resourcemanager.redhatopenshifthcp.models.TokenClaimValidationRule":"Microsoft.RedHatOpenShift.TokenClaimValidationRule","com.azure.resourcemanager.redhatopenshifthcp.models.TokenIssuerProfile":"Microsoft.RedHatOpenShift.TokenIssuerProfile","com.azure.resourcemanager.redhatopenshifthcp.models.TokenRequiredClaim":"Microsoft.RedHatOpenShift.TokenRequiredClaim","com.azure.resourcemanager.redhatopenshifthcp.models.TokenValidationRuleType":"Microsoft.RedHatOpenShift.TokenValidationRuleType","com.azure.resourcemanager.redhatopenshifthcp.models.UserAssignedIdentitiesProfile":"Microsoft.RedHatOpenShift.UserAssignedIdentitiesProfile","com.azure.resourcemanager.redhatopenshifthcp.models.UserAssignedIdentity":"Azure.ResourceManager.CommonTypes.UserAssignedIdentity","com.azure.resourcemanager.redhatopenshifthcp.models.UsernameClaimPrefixPolicy":"Microsoft.RedHatOpenShift.UsernameClaimPrefixPolicy","com.azure.resourcemanager.redhatopenshifthcp.models.UsernameClaimProfile":"Microsoft.RedHatOpenShift.UsernameClaimProfile","com.azure.resourcemanager.redhatopenshifthcp.models.VersionProfile":"Microsoft.RedHatOpenShift.VersionProfile","com.azure.resourcemanager.redhatopenshifthcp.models.Visibility":"Microsoft.RedHatOpenShift.Visibility"},"generatedFiles":["src/main/java/com/azure/resourcemanager/redhatopenshifthcp/RedHatOpenShiftHostedControlPlanesManager.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/fluent/ExternalAuthsClient.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/fluent/HcpOpenShiftClustersClient.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/fluent/HcpOpenShiftVersionsClient.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/fluent/HcpOperatorIdentityRoleSetsClient.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/fluent/NodePoolsClient.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/fluent/OperationsClient.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/fluent/RedHatOpenShiftHostedControlPlanesManagementClient.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/fluent/models/ExternalAuthInner.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/fluent/models/HcpOpenShiftClusterAdminCredentialInner.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/fluent/models/HcpOpenShiftClusterInner.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/fluent/models/HcpOpenShiftVersionInner.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/fluent/models/HcpOperatorIdentityRoleSetInner.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/fluent/models/NodePoolInner.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/fluent/models/OperationInner.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/fluent/models/package-info.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/fluent/package-info.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/ExternalAuthImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/ExternalAuthsClientImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/ExternalAuthsImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/HcpOpenShiftClusterAdminCredentialImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/HcpOpenShiftClusterImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/HcpOpenShiftClustersClientImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/HcpOpenShiftClustersImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/HcpOpenShiftVersionImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/HcpOpenShiftVersionsClientImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/HcpOpenShiftVersionsImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/HcpOperatorIdentityRoleSetImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/HcpOperatorIdentityRoleSetsClientImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/HcpOperatorIdentityRoleSetsImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/NodePoolImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/NodePoolsClientImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/NodePoolsImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/OperationImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/OperationsClientImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/OperationsImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/RedHatOpenShiftHostedControlPlanesManagementClientBuilder.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/RedHatOpenShiftHostedControlPlanesManagementClientImpl.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/ResourceManagerUtils.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/models/ExternalAuthListResult.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/models/HcpOpenShiftClusterListResult.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/models/HcpOpenShiftVersionListResult.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/models/HcpOperatorIdentityRoleSetListResult.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/models/NodePoolListResult.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/models/OperationListResult.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/implementation/package-info.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ActionType.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ApiProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ClusterActiveVersion.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ClusterAutoscalingProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ClusterImageRegistryProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ClusterImageRegistryState.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ClusterResourceStatus.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/Condition.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ConditionType.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ConsoleProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ContainerRegistryProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/CryptoRestrictions.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/CustomerManagedEncryptionProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/CustomerManagedEncryptionType.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/DiskStorageAccountType.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/DnsProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/Effect.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/EtcdDataEncryptionKeyManagementModeType.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/EtcdDataEncryptionProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/EtcdProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ExternalAuth.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ExternalAuthClaimProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ExternalAuthClientComponentProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ExternalAuthClientProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ExternalAuthClientType.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ExternalAuthProperties.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ExternalAuthProvisioningState.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ExternalAuthResourceStatus.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ExternalAuths.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/GroupClaimProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/HcpOpenShiftCluster.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/HcpOpenShiftClusterAdminCredential.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/HcpOpenShiftClusterAdminCredentialRequest.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/HcpOpenShiftClusterProperties.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/HcpOpenShiftClusters.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/HcpOpenShiftVersion.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/HcpOpenShiftVersionProperties.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/HcpOpenShiftVersions.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/HcpOperatorIdentityRoleSet.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/HcpOperatorIdentityRoleSetProperties.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/HcpOperatorIdentityRoleSets.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ImageDigestMirror.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/IngressProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/IngressType.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/KeyVaultVisibility.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/KmsEncryptionProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/KmsKey.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/KmsKeyVaultType.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/Label.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ManagedServiceIdentity.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ManagedServiceIdentityType.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/NetworkProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/NetworkType.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/NodePool.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/NodePoolActiveVersion.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/NodePoolAutoScaling.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/NodePoolPlatformProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/NodePoolProperties.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/NodePoolResourceStatus.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/NodePoolVersionProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/NodePools.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/Operation.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/OperationDisplay.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/Operations.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/OperatorIdentityRequired.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/OperatorIdentityRoles.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/OperatorsAuthenticationProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/Origin.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/OsDiskProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/OsDiskType.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/OutboundType.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/PlatformProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/ProvisioningState.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/RoleDefinition.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/StatusType.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/Taint.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/TokenClaimMappingsProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/TokenClaimValidationRule.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/TokenIssuerProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/TokenRequiredClaim.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/TokenValidationRuleType.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/UserAssignedIdentitiesProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/UserAssignedIdentity.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/UsernameClaimPrefixPolicy.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/UsernameClaimProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/VersionProfile.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/Visibility.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/models/package-info.java","src/main/java/com/azure/resourcemanager/redhatopenshifthcp/package-info.java","src/main/java/module-info.java"]} \ No newline at end of file diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthsCreateOrUpdateSamples.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthsCreateOrUpdateSamples.java index 66e50ead61792..22ff6a58caad6 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthsCreateOrUpdateSamples.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthsCreateOrUpdateSamples.java @@ -24,7 +24,7 @@ */ public final class ExternalAuthsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-09-01-preview/ExternalAuths_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/ExternalAuths_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: ExternalAuths_CreateOrUpdate_MaximumSet. diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthsDeleteSamples.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthsDeleteSamples.java index f3618ecbf3efa..2b68206b4077d 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthsDeleteSamples.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class ExternalAuthsDeleteSamples { /* - * x-ms-original-file: 2026-09-01-preview/ExternalAuths_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/ExternalAuths_Delete_MaximumSet_Gen.json */ /** * Sample code: ExternalAuths_Delete_MaximumSet. diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthsGetSamples.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthsGetSamples.java index 370a52f01fa1d..228794b4677fb 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthsGetSamples.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthsGetSamples.java @@ -9,7 +9,7 @@ */ public final class ExternalAuthsGetSamples { /* - * x-ms-original-file: 2026-09-01-preview/ExternalAuths_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/ExternalAuths_Get_MaximumSet_Gen.json */ /** * Sample code: ExternalAuths_Get_MaximumSet. diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthsListByParentSamples.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthsListByParentSamples.java index f6ac1c6741e1f..406badbe28fe5 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthsListByParentSamples.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthsListByParentSamples.java @@ -9,7 +9,7 @@ */ public final class ExternalAuthsListByParentSamples { /* - * x-ms-original-file: 2026-09-01-preview/ExternalAuths_ListByParent_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/ExternalAuths_ListByParent_MaximumSet_Gen.json */ /** * Sample code: ExternalAuths_ListByParent_MaximumSet. diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthsUpdateSamples.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthsUpdateSamples.java index 1311e83a2e54f..bb4115c0328ca 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthsUpdateSamples.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthsUpdateSamples.java @@ -25,7 +25,7 @@ */ public final class ExternalAuthsUpdateSamples { /* - * x-ms-original-file: 2026-09-01-preview/ExternalAuths_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/ExternalAuths_Update_MaximumSet_Gen.json */ /** * Sample code: ExternalAuths_Update_MaximumSet. diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClustersCreateOrUpdateSamples.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClustersCreateOrUpdateSamples.java index 05abffaf20916..41399149dce03 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClustersCreateOrUpdateSamples.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClustersCreateOrUpdateSamples.java @@ -42,7 +42,7 @@ */ public final class HcpOpenShiftClustersCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-09-01-preview/HcpOpenShiftClusters_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/HcpOpenShiftClusters_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: HcpOpenShiftClusters_CreateOrUpdate. diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClustersDeleteSamples.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClustersDeleteSamples.java index 5f46864e497fc..708fbd6394345 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClustersDeleteSamples.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClustersDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class HcpOpenShiftClustersDeleteSamples { /* - * x-ms-original-file: 2026-09-01-preview/HcpOpenShiftClusters_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/HcpOpenShiftClusters_Delete_MaximumSet_Gen.json */ /** * Sample code: HcpOpenShiftClusters_Delete. diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClustersGetByResourceGroupSamples.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClustersGetByResourceGroupSamples.java index 1e0790281cc88..fb8b82b33d848 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClustersGetByResourceGroupSamples.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClustersGetByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class HcpOpenShiftClustersGetByResourceGroupSamples { /* - * x-ms-original-file: 2026-09-01-preview/HcpOpenShiftClusters_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/HcpOpenShiftClusters_Get_MaximumSet_Gen.json */ /** * Sample code: HcpOpenShiftClusters_Get. diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClustersListByResourceGroupSamples.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClustersListByResourceGroupSamples.java index 41dc90e166b6b..a628da476ac65 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClustersListByResourceGroupSamples.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClustersListByResourceGroupSamples.java @@ -9,7 +9,7 @@ */ public final class HcpOpenShiftClustersListByResourceGroupSamples { /* - * x-ms-original-file: 2026-09-01-preview/HcpOpenShiftClusters_ListByResourceGroup_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/HcpOpenShiftClusters_ListByResourceGroup_MaximumSet_Gen.json */ /** * Sample code: HcpOpenShiftClusters_ListByResourceGroup. diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClustersListSamples.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClustersListSamples.java index fa5af47704097..2810e6547d2dd 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClustersListSamples.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClustersListSamples.java @@ -9,7 +9,7 @@ */ public final class HcpOpenShiftClustersListSamples { /* - * x-ms-original-file: 2026-09-01-preview/HcpOpenShiftClusters_ListBySubscription_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/HcpOpenShiftClusters_ListBySubscription_MaximumSet_Gen.json */ /** * Sample code: HcpOpenShiftClusters_ListBySubscription. diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClustersRequestAdminCredentialSamples.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClustersRequestAdminCredentialSamples.java index bed09bab71f08..44801d015c130 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClustersRequestAdminCredentialSamples.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClustersRequestAdminCredentialSamples.java @@ -11,7 +11,7 @@ */ public final class HcpOpenShiftClustersRequestAdminCredentialSamples { /* - * x-ms-original-file: 2026-09-01-preview/HcpOpenShiftClusters_RequestAdminCredential_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/HcpOpenShiftClusters_RequestAdminCredential_MaximumSet_Gen.json */ /** * Sample code: HcpOpenShiftClusters_RequestAdminCredential_MaximumSet. diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClustersRevokeCredentialsSamples.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClustersRevokeCredentialsSamples.java index ecab85cf69bda..6cf279462ca78 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClustersRevokeCredentialsSamples.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClustersRevokeCredentialsSamples.java @@ -9,7 +9,7 @@ */ public final class HcpOpenShiftClustersRevokeCredentialsSamples { /* - * x-ms-original-file: 2026-09-01-preview/HcpOpenShiftClusters_RevokeCredentials_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/HcpOpenShiftClusters_RevokeCredentials_MaximumSet_Gen.json */ /** * Sample code: HcpOpenShiftClusters_RevokeCredentials_MaximumSet. diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClustersUpdateSamples.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClustersUpdateSamples.java index 3b86feda16a19..97757782faad3 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClustersUpdateSamples.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClustersUpdateSamples.java @@ -16,7 +16,7 @@ */ public final class HcpOpenShiftClustersUpdateSamples { /* - * x-ms-original-file: 2026-09-01-preview/HcpOpenShiftClusters_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/HcpOpenShiftClusters_Update_MaximumSet_Gen.json */ /** * Sample code: HcpOpenShiftClusters_Update. diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftVersionsGetSamples.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftVersionsGetSamples.java index 665275da45dba..3a308d6e297e5 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftVersionsGetSamples.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftVersionsGetSamples.java @@ -9,7 +9,7 @@ */ public final class HcpOpenShiftVersionsGetSamples { /* - * x-ms-original-file: 2026-09-01-preview/HcpOpenShiftVersions_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/HcpOpenShiftVersions_Get_MaximumSet_Gen.json */ /** * Sample code: HcpOpenShiftVersions_Get_MaximumSet - generated by [MaximumSet] rule. diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftVersionsListSamples.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftVersionsListSamples.java index 011423d2ff4fe..4f0f6ac00c93a 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftVersionsListSamples.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftVersionsListSamples.java @@ -9,7 +9,7 @@ */ public final class HcpOpenShiftVersionsListSamples { /* - * x-ms-original-file: 2026-09-01-preview/HcpOpenShiftVersions_List_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/HcpOpenShiftVersions_List_MaximumSet_Gen.json */ /** * Sample code: HcpOpenShiftVersions_List_MaximumSet - generated by [MaximumSet] rule. diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOperatorIdentityRoleSetsGetSamples.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOperatorIdentityRoleSetsGetSamples.java index 66aee02f9ae0e..a5b05a2ce86b4 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOperatorIdentityRoleSetsGetSamples.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOperatorIdentityRoleSetsGetSamples.java @@ -9,7 +9,7 @@ */ public final class HcpOperatorIdentityRoleSetsGetSamples { /* - * x-ms-original-file: 2026-09-01-preview/HcpOperatorIdentityRoleSets_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/HcpOperatorIdentityRoleSets_Get_MaximumSet_Gen.json */ /** * Sample code: HcpOperatorIdentityRoleSets_Get_MaximumSet. diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOperatorIdentityRoleSetsListSamples.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOperatorIdentityRoleSetsListSamples.java index 346d934b73113..12f261fa7809b 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOperatorIdentityRoleSetsListSamples.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOperatorIdentityRoleSetsListSamples.java @@ -9,7 +9,7 @@ */ public final class HcpOperatorIdentityRoleSetsListSamples { /* - * x-ms-original-file: 2026-09-01-preview/HcpOperatorIdentityRoleSets_List_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/HcpOperatorIdentityRoleSets_List_MaximumSet_Gen.json */ /** * Sample code: HcpOperatorIdentityRoleSets_List_MaximumSet. diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolsCreateOrUpdateSamples.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolsCreateOrUpdateSamples.java index 40c87944f5503..f67c55a252c1e 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolsCreateOrUpdateSamples.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolsCreateOrUpdateSamples.java @@ -23,7 +23,7 @@ */ public final class NodePoolsCreateOrUpdateSamples { /* - * x-ms-original-file: 2026-09-01-preview/NodePools_CreateOrUpdate_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/NodePools_CreateOrUpdate_MaximumSet_Gen.json */ /** * Sample code: NodePools_CreateOrUpdate. diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolsDeleteSamples.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolsDeleteSamples.java index a1faea5805740..dee730d9abf7a 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolsDeleteSamples.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolsDeleteSamples.java @@ -9,7 +9,7 @@ */ public final class NodePoolsDeleteSamples { /* - * x-ms-original-file: 2026-09-01-preview/NodePools_Delete_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/NodePools_Delete_MaximumSet_Gen.json */ /** * Sample code: NodePools_Delete. diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolsGetSamples.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolsGetSamples.java index 704b7204145f6..02bf382f08f8c 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolsGetSamples.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolsGetSamples.java @@ -9,7 +9,7 @@ */ public final class NodePoolsGetSamples { /* - * x-ms-original-file: 2026-09-01-preview/NodePools_Get_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/NodePools_Get_MaximumSet_Gen.json */ /** * Sample code: NodePools_Get. diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolsListByParentSamples.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolsListByParentSamples.java index acbe4932ad7af..e11d6b74cbd38 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolsListByParentSamples.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolsListByParentSamples.java @@ -9,7 +9,7 @@ */ public final class NodePoolsListByParentSamples { /* - * x-ms-original-file: 2026-09-01-preview/NodePools_ListByParent_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/NodePools_ListByParent_MaximumSet_Gen.json */ /** * Sample code: NodePools_ListByParent. diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolsUpdateSamples.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolsUpdateSamples.java index 711da064504dd..eef5cd4e87d36 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolsUpdateSamples.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolsUpdateSamples.java @@ -22,7 +22,7 @@ */ public final class NodePoolsUpdateSamples { /* - * x-ms-original-file: 2026-09-01-preview/NodePools_Update_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/NodePools_Update_MaximumSet_Gen.json */ /** * Sample code: NodePools_Update. diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/OperationsListSamples.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/OperationsListSamples.java index e19420d65066b..bc830395aa906 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/OperationsListSamples.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/samples/java/com/azure/resourcemanager/redhatopenshifthcp/generated/OperationsListSamples.java @@ -9,7 +9,7 @@ */ public final class OperationsListSamples { /* - * x-ms-original-file: 2026-09-01-preview/Operations_List_MaximumSet_Gen.json + * x-ms-original-file: 2026-10-01/Operations_List_MaximumSet_Gen.json */ /** * Sample code: Operations_List_Maximum. @@ -22,7 +22,7 @@ public static void operationsListMaximum( } /* - * x-ms-original-file: 2026-09-01-preview/Operations_List_MinimumSet_Gen.json + * x-ms-original-file: 2026-10-01/Operations_List_MinimumSet_Gen.json */ /** * Sample code: Operations_List_Minimum. diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ClusterActiveVersionTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ClusterActiveVersionTests.java new file mode 100644 index 0000000000000..b06fd2cba079f --- /dev/null +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ClusterActiveVersionTests.java @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.redhatopenshifthcp.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.redhatopenshifthcp.models.ClusterActiveVersion; + +public final class ClusterActiveVersionTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ClusterActiveVersion model + = BinaryData.fromString("{\"version\":\"hix\"}").toObject(ClusterActiveVersion.class); + } +} diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ClusterAutoscalingProfileTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ClusterAutoscalingProfileTests.java index c153488fe79f2..e4b0446c57159 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ClusterAutoscalingProfileTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ClusterAutoscalingProfileTests.java @@ -12,24 +12,24 @@ public final class ClusterAutoscalingProfileTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ClusterAutoscalingProfile model = BinaryData.fromString( - "{\"maxNodesTotal\":865429737,\"maxPodGracePeriodSeconds\":1555681942,\"maxNodeProvisionTimeSeconds\":1341897858,\"podPriorityThreshold\":1455975978}") + "{\"maxNodesTotal\":1381464845,\"maxPodGracePeriodSeconds\":1134924822,\"maxNodeProvisionTimeSeconds\":303743621,\"podPriorityThreshold\":743908174}") .toObject(ClusterAutoscalingProfile.class); - Assertions.assertEquals(865429737, model.maxNodesTotal()); - Assertions.assertEquals(1555681942, model.maxPodGracePeriodSeconds()); - Assertions.assertEquals(1341897858, model.maxNodeProvisionTimeSeconds()); - Assertions.assertEquals(1455975978, model.podPriorityThreshold()); + Assertions.assertEquals(1381464845, model.maxNodesTotal()); + Assertions.assertEquals(1134924822, model.maxPodGracePeriodSeconds()); + Assertions.assertEquals(303743621, model.maxNodeProvisionTimeSeconds()); + Assertions.assertEquals(743908174, model.podPriorityThreshold()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ClusterAutoscalingProfile model = new ClusterAutoscalingProfile().withMaxNodesTotal(865429737) - .withMaxPodGracePeriodSeconds(1555681942) - .withMaxNodeProvisionTimeSeconds(1341897858) - .withPodPriorityThreshold(1455975978); + ClusterAutoscalingProfile model = new ClusterAutoscalingProfile().withMaxNodesTotal(1381464845) + .withMaxPodGracePeriodSeconds(1134924822) + .withMaxNodeProvisionTimeSeconds(303743621) + .withPodPriorityThreshold(743908174); model = BinaryData.fromObject(model).toObject(ClusterAutoscalingProfile.class); - Assertions.assertEquals(865429737, model.maxNodesTotal()); - Assertions.assertEquals(1555681942, model.maxPodGracePeriodSeconds()); - Assertions.assertEquals(1341897858, model.maxNodeProvisionTimeSeconds()); - Assertions.assertEquals(1455975978, model.podPriorityThreshold()); + Assertions.assertEquals(1381464845, model.maxNodesTotal()); + Assertions.assertEquals(1134924822, model.maxPodGracePeriodSeconds()); + Assertions.assertEquals(303743621, model.maxNodeProvisionTimeSeconds()); + Assertions.assertEquals(743908174, model.podPriorityThreshold()); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ClusterResourceStatusTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ClusterResourceStatusTests.java new file mode 100644 index 0000000000000..b62855dfe5b28 --- /dev/null +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ClusterResourceStatusTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.redhatopenshifthcp.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.redhatopenshifthcp.models.ClusterResourceStatus; + +public final class ClusterResourceStatusTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ClusterResourceStatus model = BinaryData.fromString( + "{\"conditions\":[{\"type\":\"Available\",\"status\":\"False\",\"lastTransitionTime\":\"2021-03-15T18:11:23Z\",\"reason\":\"tbzaqsqsycbkbfk\",\"message\":\"ukdkexxppofmxa\"},{\"type\":\"Available\",\"status\":\"True\",\"lastTransitionTime\":\"2021-05-17T10:42:59Z\",\"reason\":\"pg\",\"message\":\"dtocj\"},{\"type\":\"Available\",\"status\":\"False\",\"lastTransitionTime\":\"2021-01-25T11:02:33Z\",\"reason\":\"pmouexhdz\",\"message\":\"i\"},{\"type\":\"Available\",\"status\":\"False\",\"lastTransitionTime\":\"2021-10-19T08:53:02Z\",\"reason\":\"jnxqbzvddntwn\",\"message\":\"eic\"}],\"activeVersions\":[{\"version\":\"npzaoq\"}]}") + .toObject(ClusterResourceStatus.class); + } +} diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ConditionTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ConditionTests.java index edba069e23cc0..773e73e68868c 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ConditionTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ConditionTests.java @@ -11,7 +11,7 @@ public final class ConditionTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { Condition model = BinaryData.fromString( - "{\"type\":\"Progressing\",\"status\":\"False\",\"lastTransitionTime\":\"2021-01-23T19:42:32Z\",\"reason\":\"ixuigdtopbobj\",\"message\":\"ghmewuam\"}") + "{\"type\":\"Available\",\"status\":\"True\",\"lastTransitionTime\":\"2021-09-17T10:09:05Z\",\"reason\":\"hcffcyddglmjthjq\",\"message\":\"wpyeicxmqciwqvh\"}") .toObject(Condition.class); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ContainerRegistryProfileTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ContainerRegistryProfileTests.java new file mode 100644 index 0000000000000..e0f693d923519 --- /dev/null +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ContainerRegistryProfileTests.java @@ -0,0 +1,25 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.redhatopenshifthcp.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.redhatopenshifthcp.models.ContainerRegistryProfile; +import org.junit.jupiter.api.Assertions; + +public final class ContainerRegistryProfileTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ContainerRegistryProfile model + = BinaryData.fromString("{\"managedIdentity\":\"ljavbqid\"}").toObject(ContainerRegistryProfile.class); + Assertions.assertEquals("ljavbqid", model.managedIdentity()); + } + + @org.junit.jupiter.api.Test + public void testSerialize() throws Exception { + ContainerRegistryProfile model = new ContainerRegistryProfile().withManagedIdentity("ljavbqid"); + model = BinaryData.fromObject(model).toObject(ContainerRegistryProfile.class); + Assertions.assertEquals("ljavbqid", model.managedIdentity()); + } +} diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/DnsProfileTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/DnsProfileTests.java index 13037c949425d..ab317aebb759d 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/DnsProfileTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/DnsProfileTests.java @@ -11,16 +11,15 @@ public final class DnsProfileTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - DnsProfile model - = BinaryData.fromString("{\"baseDomain\":\"hsgcbacphejkot\",\"baseDomainPrefix\":\"qgoulznd\"}") - .toObject(DnsProfile.class); - Assertions.assertEquals("qgoulznd", model.baseDomainPrefix()); + DnsProfile model = BinaryData.fromString("{\"baseDomain\":\"bacphejko\",\"baseDomainPrefix\":\"nqgoulzndli\"}") + .toObject(DnsProfile.class); + Assertions.assertEquals("nqgoulzndli", model.baseDomainPrefix()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - DnsProfile model = new DnsProfile().withBaseDomainPrefix("qgoulznd"); + DnsProfile model = new DnsProfile().withBaseDomainPrefix("nqgoulzndli"); model = BinaryData.fromObject(model).toObject(DnsProfile.class); - Assertions.assertEquals("qgoulznd", model.baseDomainPrefix()); + Assertions.assertEquals("nqgoulzndli", model.baseDomainPrefix()); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthClaimProfileTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthClaimProfileTests.java index 89ec189ee686b..97b3443d83b22 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthClaimProfileTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthClaimProfileTests.java @@ -20,38 +20,37 @@ public final class ExternalAuthClaimProfileTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ExternalAuthClaimProfile model = BinaryData.fromString( - "{\"mappings\":{\"username\":{\"claim\":\"zkd\",\"prefix\":\"lpvlopw\",\"prefixPolicy\":\"NoPrefix\"},\"groups\":{\"claim\":\"hxpkd\",\"prefix\":\"baiuebbaumny\"}},\"validationRules\":[{\"type\":\"RequiredClaim\",\"requiredClaim\":{\"claim\":\"ojnabckhsmtxpsie\",\"requiredValue\":\"tfhvpesapskrdqmh\"}}]}") + "{\"mappings\":{\"username\":{\"claim\":\"crpab\",\"prefix\":\"epsbjtazqu\",\"prefixPolicy\":\"Prefix\"},\"groups\":{\"claim\":\"pmueefjzwfqk\",\"prefix\":\"jidsuyonobglaoc\"}},\"validationRules\":[{\"type\":\"RequiredClaim\",\"requiredClaim\":{\"claim\":\"g\",\"requiredValue\":\"udxytlmoyrx\"}}]}") .toObject(ExternalAuthClaimProfile.class); - Assertions.assertEquals("zkd", model.mappings().username().claim()); - Assertions.assertEquals("lpvlopw", model.mappings().username().prefix()); - Assertions.assertEquals(UsernameClaimPrefixPolicy.NO_PREFIX, model.mappings().username().prefixPolicy()); - Assertions.assertEquals("hxpkd", model.mappings().groups().claim()); - Assertions.assertEquals("baiuebbaumny", model.mappings().groups().prefix()); + Assertions.assertEquals("crpab", model.mappings().username().claim()); + Assertions.assertEquals("epsbjtazqu", model.mappings().username().prefix()); + Assertions.assertEquals(UsernameClaimPrefixPolicy.PREFIX, model.mappings().username().prefixPolicy()); + Assertions.assertEquals("pmueefjzwfqk", model.mappings().groups().claim()); + Assertions.assertEquals("jidsuyonobglaoc", model.mappings().groups().prefix()); Assertions.assertEquals(TokenValidationRuleType.REQUIRED_CLAIM, model.validationRules().get(0).type()); - Assertions.assertEquals("ojnabckhsmtxpsie", model.validationRules().get(0).requiredClaim().claim()); - Assertions.assertEquals("tfhvpesapskrdqmh", model.validationRules().get(0).requiredClaim().requiredValue()); + Assertions.assertEquals("g", model.validationRules().get(0).requiredClaim().claim()); + Assertions.assertEquals("udxytlmoyrx", model.validationRules().get(0).requiredClaim().requiredValue()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ExternalAuthClaimProfile model = new ExternalAuthClaimProfile() .withMappings(new TokenClaimMappingsProfile() - .withUsername(new UsernameClaimProfile().withClaim("zkd") - .withPrefix("lpvlopw") - .withPrefixPolicy(UsernameClaimPrefixPolicy.NO_PREFIX)) - .withGroups(new GroupClaimProfile().withClaim("hxpkd").withPrefix("baiuebbaumny"))) + .withUsername(new UsernameClaimProfile().withClaim("crpab") + .withPrefix("epsbjtazqu") + .withPrefixPolicy(UsernameClaimPrefixPolicy.PREFIX)) + .withGroups(new GroupClaimProfile().withClaim("pmueefjzwfqk").withPrefix("jidsuyonobglaoc"))) .withValidationRules( Arrays.asList(new TokenClaimValidationRule().withType(TokenValidationRuleType.REQUIRED_CLAIM) - .withRequiredClaim( - new TokenRequiredClaim().withClaim("ojnabckhsmtxpsie").withRequiredValue("tfhvpesapskrdqmh")))); + .withRequiredClaim(new TokenRequiredClaim().withClaim("g").withRequiredValue("udxytlmoyrx")))); model = BinaryData.fromObject(model).toObject(ExternalAuthClaimProfile.class); - Assertions.assertEquals("zkd", model.mappings().username().claim()); - Assertions.assertEquals("lpvlopw", model.mappings().username().prefix()); - Assertions.assertEquals(UsernameClaimPrefixPolicy.NO_PREFIX, model.mappings().username().prefixPolicy()); - Assertions.assertEquals("hxpkd", model.mappings().groups().claim()); - Assertions.assertEquals("baiuebbaumny", model.mappings().groups().prefix()); + Assertions.assertEquals("crpab", model.mappings().username().claim()); + Assertions.assertEquals("epsbjtazqu", model.mappings().username().prefix()); + Assertions.assertEquals(UsernameClaimPrefixPolicy.PREFIX, model.mappings().username().prefixPolicy()); + Assertions.assertEquals("pmueefjzwfqk", model.mappings().groups().claim()); + Assertions.assertEquals("jidsuyonobglaoc", model.mappings().groups().prefix()); Assertions.assertEquals(TokenValidationRuleType.REQUIRED_CLAIM, model.validationRules().get(0).type()); - Assertions.assertEquals("ojnabckhsmtxpsie", model.validationRules().get(0).requiredClaim().claim()); - Assertions.assertEquals("tfhvpesapskrdqmh", model.validationRules().get(0).requiredClaim().requiredValue()); + Assertions.assertEquals("g", model.validationRules().get(0).requiredClaim().claim()); + Assertions.assertEquals("udxytlmoyrx", model.validationRules().get(0).requiredClaim().requiredValue()); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthClientComponentProfileTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthClientComponentProfileTests.java index e60c8d9e3bf16..83dfda791875c 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthClientComponentProfileTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthClientComponentProfileTests.java @@ -12,18 +12,18 @@ public final class ExternalAuthClientComponentProfileTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ExternalAuthClientComponentProfile model - = BinaryData.fromString("{\"name\":\"vmkfssxqu\",\"authClientNamespace\":\"kfplgmgsxnk\"}") + = BinaryData.fromString("{\"name\":\"t\",\"authClientNamespace\":\"qnermclfplphoxu\"}") .toObject(ExternalAuthClientComponentProfile.class); - Assertions.assertEquals("vmkfssxqu", model.name()); - Assertions.assertEquals("kfplgmgsxnk", model.authClientNamespace()); + Assertions.assertEquals("t", model.name()); + Assertions.assertEquals("qnermclfplphoxu", model.authClientNamespace()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ExternalAuthClientComponentProfile model - = new ExternalAuthClientComponentProfile().withName("vmkfssxqu").withAuthClientNamespace("kfplgmgsxnk"); + = new ExternalAuthClientComponentProfile().withName("t").withAuthClientNamespace("qnermclfplphoxu"); model = BinaryData.fromObject(model).toObject(ExternalAuthClientComponentProfile.class); - Assertions.assertEquals("vmkfssxqu", model.name()); - Assertions.assertEquals("kfplgmgsxnk", model.authClientNamespace()); + Assertions.assertEquals("t", model.name()); + Assertions.assertEquals("qnermclfplphoxu", model.authClientNamespace()); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthClientProfileTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthClientProfileTests.java index 0b3fd1b9beeb0..927af0f68fe4a 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthClientProfileTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthClientProfileTests.java @@ -15,28 +15,28 @@ public final class ExternalAuthClientProfileTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ExternalAuthClientProfile model = BinaryData.fromString( - "{\"component\":{\"name\":\"rhdwbavxbniw\",\"authClientNamespace\":\"jswztsdbpg\"},\"clientId\":\"xytxhpzxbz\",\"extraScopes\":[\"abgl\",\"uhxwtctyqiklbbov\",\"lwzbhvgyugu\"],\"type\":\"Public\"}") + "{\"component\":{\"name\":\"vnotyfjfcnj\",\"authClientNamespace\":\"k\"},\"clientId\":\"nxdhbt\",\"extraScopes\":[\"h\",\"wpn\"],\"type\":\"Confidential\"}") .toObject(ExternalAuthClientProfile.class); - Assertions.assertEquals("rhdwbavxbniw", model.component().name()); - Assertions.assertEquals("jswztsdbpg", model.component().authClientNamespace()); - Assertions.assertEquals("xytxhpzxbz", model.clientId()); - Assertions.assertEquals("abgl", model.extraScopes().get(0)); - Assertions.assertEquals(ExternalAuthClientType.PUBLIC, model.type()); + Assertions.assertEquals("vnotyfjfcnj", model.component().name()); + Assertions.assertEquals("k", model.component().authClientNamespace()); + Assertions.assertEquals("nxdhbt", model.clientId()); + Assertions.assertEquals("h", model.extraScopes().get(0)); + Assertions.assertEquals(ExternalAuthClientType.CONFIDENTIAL, model.type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ExternalAuthClientProfile model = new ExternalAuthClientProfile() .withComponent( - new ExternalAuthClientComponentProfile().withName("rhdwbavxbniw").withAuthClientNamespace("jswztsdbpg")) - .withClientId("xytxhpzxbz") - .withExtraScopes(Arrays.asList("abgl", "uhxwtctyqiklbbov", "lwzbhvgyugu")) - .withType(ExternalAuthClientType.PUBLIC); + new ExternalAuthClientComponentProfile().withName("vnotyfjfcnj").withAuthClientNamespace("k")) + .withClientId("nxdhbt") + .withExtraScopes(Arrays.asList("h", "wpn")) + .withType(ExternalAuthClientType.CONFIDENTIAL); model = BinaryData.fromObject(model).toObject(ExternalAuthClientProfile.class); - Assertions.assertEquals("rhdwbavxbniw", model.component().name()); - Assertions.assertEquals("jswztsdbpg", model.component().authClientNamespace()); - Assertions.assertEquals("xytxhpzxbz", model.clientId()); - Assertions.assertEquals("abgl", model.extraScopes().get(0)); - Assertions.assertEquals(ExternalAuthClientType.PUBLIC, model.type()); + Assertions.assertEquals("vnotyfjfcnj", model.component().name()); + Assertions.assertEquals("k", model.component().authClientNamespace()); + Assertions.assertEquals("nxdhbt", model.clientId()); + Assertions.assertEquals("h", model.extraScopes().get(0)); + Assertions.assertEquals(ExternalAuthClientType.CONFIDENTIAL, model.type()); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthInnerTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthInnerTests.java index f12847596bb1f..43a20b28cd75b 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthInnerTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthInnerTests.java @@ -26,101 +26,82 @@ public final class ExternalAuthInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ExternalAuthInner model = BinaryData.fromString( - "{\"properties\":{\"provisioningState\":\"Deleting\",\"status\":{\"conditions\":[{\"type\":\"Progressing\",\"status\":\"Unknown\",\"lastTransitionTime\":\"2021-05-23T11:48:05Z\",\"reason\":\"cciw\",\"message\":\"zjuqkhrsaj\"},{\"type\":\"Progressing\",\"status\":\"False\",\"lastTransitionTime\":\"2021-10-13T04:47:14Z\",\"reason\":\"ofoskghs\",\"message\":\"uuimjmvxieduug\"},{\"type\":\"Available\",\"status\":\"Unknown\",\"lastTransitionTime\":\"2021-02-15T23:42:02Z\",\"reason\":\"rrfbyaosvexcson\",\"message\":\"clhocohsl\"},{\"type\":\"Available\",\"status\":\"True\",\"lastTransitionTime\":\"2021-07-23T13:03:47Z\",\"reason\":\"eggzfb\",\"message\":\"hfmvfaxkffe\"}]},\"issuer\":{\"url\":\"ithlvmezyvshxm\",\"audiences\":[\"bbzoggig\",\"xwburvjxxjns\"],\"ca\":\"dptkoenkouk\"},\"clients\":[{\"component\":{\"name\":\"dwtiukbldngkp\",\"authClientNamespace\":\"cipazyxoegukgjnp\"},\"clientId\":\"ucgygevqz\",\"extraScopes\":[\"pmr\"],\"type\":\"Confidential\"},{\"component\":{\"name\":\"izcdrqjsd\",\"authClientNamespace\":\"ydnfyhxdeoejz\"},\"clientId\":\"cwif\",\"extraScopes\":[\"tgzfbishcbkh\",\"jdeyeamdpha\"],\"type\":\"Public\"},{\"component\":{\"name\":\"lpbuxwgipwhonowk\",\"authClientNamespace\":\"shwankixzbinje\"},\"clientId\":\"uttmrywnuzoqft\",\"extraScopes\":[\"zrnkcqvyxlwh\",\"lsicohoqqnwv\",\"ryavwhheunmmqh\",\"yxzk\"],\"type\":\"Confidential\"}],\"claim\":{\"mappings\":{\"username\":{\"claim\":\"ocukoklyax\",\"prefix\":\"onuq\",\"prefixPolicy\":\"Prefix\"},\"groups\":{\"claim\":\"beypewrmjmw\",\"prefix\":\"jektcxsenh\"}},\"validationRules\":[{\"type\":\"RequiredClaim\",\"requiredClaim\":{\"claim\":\"rzpwvlqdqgbiq\",\"requiredValue\":\"lihkaetcktvfc\"}},{\"type\":\"RequiredClaim\",\"requiredClaim\":{\"claim\":\"nkymuctqhjfbebrj\",\"requiredValue\":\"xerf\"}},{\"type\":\"RequiredClaim\",\"requiredClaim\":{\"claim\":\"ttxfvjr\",\"requiredValue\":\"i\"}},{\"type\":\"RequiredClaim\",\"requiredClaim\":{\"claim\":\"epcyvahfnlj\",\"requiredValue\":\"yq\"}}]}},\"id\":\"vuujq\",\"name\":\"idokgjlj\",\"type\":\"oxgvclt\"}") + "{\"properties\":{\"provisioningState\":\"AwaitingSecret\",\"status\":{\"conditions\":[{\"type\":\"Available\",\"status\":\"Unknown\",\"lastTransitionTime\":\"2021-10-23T12:01:36Z\",\"reason\":\"onpc\",\"message\":\"hocohslkev\"}]},\"issuer\":{\"url\":\"eggzfb\",\"audiences\":[\"fmvfaxkffeiit\",\"lvmezyvshxmzsbbz\",\"ggi\"],\"ca\":\"xwburvjxxjns\"},\"clients\":[{\"component\":{\"name\":\"ptkoenkoukn\",\"authClientNamespace\":\"udwtiukbl\"},\"clientId\":\"ngkpocipazy\",\"extraScopes\":[\"gukgjnpiucgygevq\",\"ntypmrbpizcdrqj\",\"dpydn\"],\"type\":\"Public\"},{\"component\":{\"name\":\"hxdeoejz\",\"authClientNamespace\":\"cwif\"},\"clientId\":\"jttgzf\",\"extraScopes\":[\"hcbkhajde\",\"eamdp\",\"agalpbuxwgipwhon\",\"wkgshwa\"],\"type\":\"Confidential\"},{\"component\":{\"name\":\"ixzbinjeputtmryw\",\"authClientNamespace\":\"uzoqft\"},\"clientId\":\"yqzrnkcqvyxlw\",\"extraScopes\":[\"sicohoqqnwvlry\",\"vwhheunmmqhgyx\",\"konocu\"],\"type\":\"Public\"}],\"claim\":{\"mappings\":{\"username\":{\"claim\":\"klyaxuconu\",\"prefix\":\"zf\",\"prefixPolicy\":\"None\"},\"groups\":{\"claim\":\"pewr\",\"prefix\":\"mwvvjektcxsenhw\"}},\"validationRules\":[{\"type\":\"RequiredClaim\",\"requiredClaim\":{\"claim\":\"zpwv\",\"requiredValue\":\"qdqgbi\"}}]}},\"id\":\"lihkaetcktvfc\",\"name\":\"vf\",\"type\":\"nkymuctqhjfbebrj\"}") .toObject(ExternalAuthInner.class); - Assertions.assertEquals("ithlvmezyvshxm", model.properties().issuer().url()); - Assertions.assertEquals("bbzoggig", model.properties().issuer().audiences().get(0)); - Assertions.assertEquals("dptkoenkouk", model.properties().issuer().ca()); - Assertions.assertEquals("dwtiukbldngkp", model.properties().clients().get(0).component().name()); - Assertions.assertEquals("cipazyxoegukgjnp", - model.properties().clients().get(0).component().authClientNamespace()); - Assertions.assertEquals("ucgygevqz", model.properties().clients().get(0).clientId()); - Assertions.assertEquals("pmr", model.properties().clients().get(0).extraScopes().get(0)); - Assertions.assertEquals(ExternalAuthClientType.CONFIDENTIAL, model.properties().clients().get(0).type()); - Assertions.assertEquals("ocukoklyax", model.properties().claim().mappings().username().claim()); - Assertions.assertEquals("onuq", model.properties().claim().mappings().username().prefix()); - Assertions.assertEquals(UsernameClaimPrefixPolicy.PREFIX, + Assertions.assertEquals("eggzfb", model.properties().issuer().url()); + Assertions.assertEquals("fmvfaxkffeiit", model.properties().issuer().audiences().get(0)); + Assertions.assertEquals("xwburvjxxjns", model.properties().issuer().ca()); + Assertions.assertEquals("ptkoenkoukn", model.properties().clients().get(0).component().name()); + Assertions.assertEquals("udwtiukbl", model.properties().clients().get(0).component().authClientNamespace()); + Assertions.assertEquals("ngkpocipazy", model.properties().clients().get(0).clientId()); + Assertions.assertEquals("gukgjnpiucgygevq", model.properties().clients().get(0).extraScopes().get(0)); + Assertions.assertEquals(ExternalAuthClientType.PUBLIC, model.properties().clients().get(0).type()); + Assertions.assertEquals("klyaxuconu", model.properties().claim().mappings().username().claim()); + Assertions.assertEquals("zf", model.properties().claim().mappings().username().prefix()); + Assertions.assertEquals(UsernameClaimPrefixPolicy.NONE, model.properties().claim().mappings().username().prefixPolicy()); - Assertions.assertEquals("beypewrmjmw", model.properties().claim().mappings().groups().claim()); - Assertions.assertEquals("jektcxsenh", model.properties().claim().mappings().groups().prefix()); + Assertions.assertEquals("pewr", model.properties().claim().mappings().groups().claim()); + Assertions.assertEquals("mwvvjektcxsenhw", model.properties().claim().mappings().groups().prefix()); Assertions.assertEquals(TokenValidationRuleType.REQUIRED_CLAIM, model.properties().claim().validationRules().get(0).type()); - Assertions.assertEquals("rzpwvlqdqgbiq", - model.properties().claim().validationRules().get(0).requiredClaim().claim()); - Assertions.assertEquals("lihkaetcktvfc", + Assertions.assertEquals("zpwv", model.properties().claim().validationRules().get(0).requiredClaim().claim()); + Assertions.assertEquals("qdqgbi", model.properties().claim().validationRules().get(0).requiredClaim().requiredValue()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ExternalAuthInner model - = new ExternalAuthInner() - .withProperties( - new ExternalAuthProperties() - .withIssuer(new TokenIssuerProfile().withUrl("ithlvmezyvshxm") - .withAudiences(Arrays.asList("bbzoggig", "xwburvjxxjns")) - .withCa("dptkoenkouk")) - .withClients( - Arrays.asList( - new ExternalAuthClientProfile() - .withComponent(new ExternalAuthClientComponentProfile().withName("dwtiukbldngkp") - .withAuthClientNamespace("cipazyxoegukgjnp")) - .withClientId("ucgygevqz") - .withExtraScopes(Arrays.asList("pmr")) - .withType(ExternalAuthClientType.CONFIDENTIAL), - new ExternalAuthClientProfile() - .withComponent(new ExternalAuthClientComponentProfile().withName("izcdrqjsd") - .withAuthClientNamespace("ydnfyhxdeoejz")) - .withClientId("cwif") - .withExtraScopes(Arrays.asList("tgzfbishcbkh", "jdeyeamdpha")) - .withType(ExternalAuthClientType.PUBLIC), - new ExternalAuthClientProfile() - .withComponent(new ExternalAuthClientComponentProfile().withName("lpbuxwgipwhonowk") - .withAuthClientNamespace("shwankixzbinje")) - .withClientId("uttmrywnuzoqft") - .withExtraScopes( - Arrays.asList("zrnkcqvyxlwh", "lsicohoqqnwv", "ryavwhheunmmqh", "yxzk")) - .withType(ExternalAuthClientType.CONFIDENTIAL))) - .withClaim(new ExternalAuthClaimProfile() - .withMappings(new TokenClaimMappingsProfile() - .withUsername(new UsernameClaimProfile().withClaim("ocukoklyax") - .withPrefix("onuq") - .withPrefixPolicy(UsernameClaimPrefixPolicy.PREFIX)) - .withGroups(new GroupClaimProfile().withClaim("beypewrmjmw").withPrefix("jektcxsenh"))) - .withValidationRules(Arrays.asList( - new TokenClaimValidationRule().withType(TokenValidationRuleType.REQUIRED_CLAIM) - .withRequiredClaim(new TokenRequiredClaim().withClaim("rzpwvlqdqgbiq") - .withRequiredValue("lihkaetcktvfc")), - new TokenClaimValidationRule().withType(TokenValidationRuleType.REQUIRED_CLAIM) - .withRequiredClaim(new TokenRequiredClaim().withClaim("nkymuctqhjfbebrj") - .withRequiredValue("xerf")), - new TokenClaimValidationRule().withType(TokenValidationRuleType.REQUIRED_CLAIM) - .withRequiredClaim( - new TokenRequiredClaim().withClaim("ttxfvjr").withRequiredValue("i")), - new TokenClaimValidationRule().withType(TokenValidationRuleType.REQUIRED_CLAIM) - .withRequiredClaim( - new TokenRequiredClaim().withClaim("epcyvahfnlj").withRequiredValue("yq")))))); + ExternalAuthInner model = new ExternalAuthInner().withProperties(new ExternalAuthProperties() + .withIssuer(new TokenIssuerProfile().withUrl("eggzfb") + .withAudiences(Arrays.asList("fmvfaxkffeiit", "lvmezyvshxmzsbbz", "ggi")) + .withCa("xwburvjxxjns")) + .withClients(Arrays.asList( + new ExternalAuthClientProfile() + .withComponent(new ExternalAuthClientComponentProfile().withName("ptkoenkoukn") + .withAuthClientNamespace("udwtiukbl")) + .withClientId("ngkpocipazy") + .withExtraScopes(Arrays.asList("gukgjnpiucgygevq", "ntypmrbpizcdrqj", "dpydn")) + .withType(ExternalAuthClientType.PUBLIC), + new ExternalAuthClientProfile() + .withComponent( + new ExternalAuthClientComponentProfile().withName("hxdeoejz").withAuthClientNamespace("cwif")) + .withClientId("jttgzf") + .withExtraScopes(Arrays.asList("hcbkhajde", "eamdp", "agalpbuxwgipwhon", "wkgshwa")) + .withType(ExternalAuthClientType.CONFIDENTIAL), + new ExternalAuthClientProfile() + .withComponent(new ExternalAuthClientComponentProfile().withName("ixzbinjeputtmryw") + .withAuthClientNamespace("uzoqft")) + .withClientId("yqzrnkcqvyxlw") + .withExtraScopes(Arrays.asList("sicohoqqnwvlry", "vwhheunmmqhgyx", "konocu")) + .withType(ExternalAuthClientType.PUBLIC))) + .withClaim(new ExternalAuthClaimProfile() + .withMappings(new TokenClaimMappingsProfile() + .withUsername(new UsernameClaimProfile().withClaim("klyaxuconu") + .withPrefix("zf") + .withPrefixPolicy(UsernameClaimPrefixPolicy.NONE)) + .withGroups(new GroupClaimProfile().withClaim("pewr").withPrefix("mwvvjektcxsenhw"))) + .withValidationRules( + Arrays.asList(new TokenClaimValidationRule().withType(TokenValidationRuleType.REQUIRED_CLAIM) + .withRequiredClaim(new TokenRequiredClaim().withClaim("zpwv").withRequiredValue("qdqgbi")))))); model = BinaryData.fromObject(model).toObject(ExternalAuthInner.class); - Assertions.assertEquals("ithlvmezyvshxm", model.properties().issuer().url()); - Assertions.assertEquals("bbzoggig", model.properties().issuer().audiences().get(0)); - Assertions.assertEquals("dptkoenkouk", model.properties().issuer().ca()); - Assertions.assertEquals("dwtiukbldngkp", model.properties().clients().get(0).component().name()); - Assertions.assertEquals("cipazyxoegukgjnp", - model.properties().clients().get(0).component().authClientNamespace()); - Assertions.assertEquals("ucgygevqz", model.properties().clients().get(0).clientId()); - Assertions.assertEquals("pmr", model.properties().clients().get(0).extraScopes().get(0)); - Assertions.assertEquals(ExternalAuthClientType.CONFIDENTIAL, model.properties().clients().get(0).type()); - Assertions.assertEquals("ocukoklyax", model.properties().claim().mappings().username().claim()); - Assertions.assertEquals("onuq", model.properties().claim().mappings().username().prefix()); - Assertions.assertEquals(UsernameClaimPrefixPolicy.PREFIX, + Assertions.assertEquals("eggzfb", model.properties().issuer().url()); + Assertions.assertEquals("fmvfaxkffeiit", model.properties().issuer().audiences().get(0)); + Assertions.assertEquals("xwburvjxxjns", model.properties().issuer().ca()); + Assertions.assertEquals("ptkoenkoukn", model.properties().clients().get(0).component().name()); + Assertions.assertEquals("udwtiukbl", model.properties().clients().get(0).component().authClientNamespace()); + Assertions.assertEquals("ngkpocipazy", model.properties().clients().get(0).clientId()); + Assertions.assertEquals("gukgjnpiucgygevq", model.properties().clients().get(0).extraScopes().get(0)); + Assertions.assertEquals(ExternalAuthClientType.PUBLIC, model.properties().clients().get(0).type()); + Assertions.assertEquals("klyaxuconu", model.properties().claim().mappings().username().claim()); + Assertions.assertEquals("zf", model.properties().claim().mappings().username().prefix()); + Assertions.assertEquals(UsernameClaimPrefixPolicy.NONE, model.properties().claim().mappings().username().prefixPolicy()); - Assertions.assertEquals("beypewrmjmw", model.properties().claim().mappings().groups().claim()); - Assertions.assertEquals("jektcxsenh", model.properties().claim().mappings().groups().prefix()); + Assertions.assertEquals("pewr", model.properties().claim().mappings().groups().claim()); + Assertions.assertEquals("mwvvjektcxsenhw", model.properties().claim().mappings().groups().prefix()); Assertions.assertEquals(TokenValidationRuleType.REQUIRED_CLAIM, model.properties().claim().validationRules().get(0).type()); - Assertions.assertEquals("rzpwvlqdqgbiq", - model.properties().claim().validationRules().get(0).requiredClaim().claim()); - Assertions.assertEquals("lihkaetcktvfc", + Assertions.assertEquals("zpwv", model.properties().claim().validationRules().get(0).requiredClaim().claim()); + Assertions.assertEquals("qdqgbi", model.properties().claim().validationRules().get(0).requiredClaim().requiredValue()); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthListResultTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthListResultTests.java index 4fff2de152ab3..047879ed74798 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthListResultTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthListResultTests.java @@ -13,21 +13,21 @@ public final class ExternalAuthListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ExternalAuthListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"provisioningState\":\"Failed\",\"status\":{\"conditions\":[{\"type\":\"Available\",\"status\":\"Unknown\",\"lastTransitionTime\":\"2021-02-03T02:36:14Z\",\"reason\":\"dxyt\",\"message\":\"moyrxvwfudwpz\"},{\"type\":\"Progressing\",\"status\":\"True\",\"lastTransitionTime\":\"2021-08-24T16:23:13Z\",\"reason\":\"dzhlrq\",\"message\":\"bh\"},{\"type\":\"Degraded\",\"status\":\"False\",\"lastTransitionTime\":\"2021-02-03T03:57:15Z\",\"reason\":\"lhrxsbkyvpyc\",\"message\":\"n\"},{\"type\":\"Available\",\"status\":\"True\",\"lastTransitionTime\":\"2021-05-16T01:44:09Z\",\"reason\":\"zka\",\"message\":\"kuwbcrnwb\"}]},\"issuer\":{\"url\":\"ehhseyvjusrts\",\"audiences\":[\"spkdee\",\"aofmxagkvtme\",\"mqkrhahvljuahaqu\"],\"ca\":\"dhmdua\"},\"clients\":[{\"component\":{\"name\":\"xqpvfadmw\",\"authClientNamespace\":\"rcrgvx\"},\"clientId\":\"vgomz\",\"extraScopes\":[\"isgwbnbbeldawkz\",\"ali\"],\"type\":\"Confidential\"}],\"claim\":{\"mappings\":{\"username\":{\"claim\":\"rqhakauha\"},\"groups\":{\"claim\":\"sfwxosowzxc\"}},\"validationRules\":[{}]}},\"id\":\"jooxdjebw\",\"name\":\"ucww\",\"type\":\"vo\"}],\"nextLink\":\"vmeueci\"}") + "{\"value\":[{\"properties\":{\"provisioningState\":\"Canceled\",\"status\":{\"conditions\":[{\"type\":\"Progressing\",\"status\":\"Unknown\",\"lastTransitionTime\":\"2021-03-14T19:51:15Z\",\"reason\":\"misgwbnb\",\"message\":\"e\"},{\"type\":\"Degraded\",\"status\":\"False\",\"lastTransitionTime\":\"2021-03-30T10:55:40Z\",\"reason\":\"k\",\"message\":\"baliourqhakauha\"},{\"type\":\"Progressing\",\"status\":\"Unknown\",\"lastTransitionTime\":\"2021-08-15T03:29:20Z\",\"reason\":\"wxosowzxcug\",\"message\":\"cjooxdjebwpucwwf\"}]},\"issuer\":{\"url\":\"ovbvmeueciv\",\"audiences\":[\"zceuojgjrw\",\"ueiotwmcdyt\",\"x\",\"it\"],\"ca\":\"rjaw\"},\"clients\":[{\"component\":{\"name\":\"gxhnisk\",\"authClientNamespace\":\"fbkp\"},\"clientId\":\"cg\",\"extraScopes\":[\"ndnhj\",\"auwhvylwzbtdhx\"],\"type\":\"Confidential\"},{\"component\":{\"name\":\"znbmpowuwprzq\",\"authClientNamespace\":\"veual\"},\"clientId\":\"pjmkhfxobbc\",\"extraScopes\":[\"rtjriplrbpbew\"],\"type\":\"Confidential\"}],\"claim\":{\"mappings\":{\"username\":{\"claim\":\"hfgblc\"},\"groups\":{\"claim\":\"xzvlvqhjkbegib\"}},\"validationRules\":[{},{}]}},\"id\":\"iebwwaloayqcgwrt\",\"name\":\"j\",\"type\":\"zg\"},{\"properties\":{\"provisioningState\":\"AwaitingSecret\",\"status\":{\"conditions\":[{\"type\":\"Progressing\",\"status\":\"False\",\"lastTransitionTime\":\"2021-10-09T13:49:19Z\",\"reason\":\"mtsavjcbpwxqp\",\"message\":\"rknftguvriuhprwm\"},{\"type\":\"Available\",\"status\":\"True\",\"lastTransitionTime\":\"2021-01-30T20:43:49Z\",\"reason\":\"qtayri\",\"message\":\"wroyqbexrmcq\"},{\"type\":\"Degraded\",\"status\":\"False\",\"lastTransitionTime\":\"2021-08-26T17:02:46Z\",\"reason\":\"nojvknmefqsg\",\"message\":\"vah\"},{\"type\":\"Degraded\",\"status\":\"Unknown\",\"lastTransitionTime\":\"2021-01-29T21:47:45Z\",\"reason\":\"zhpvgqzcjrvxd\",\"message\":\"zlmwlxkvugfhz\"}]},\"issuer\":{\"url\":\"vawjvzunlu\",\"audiences\":[\"nnprn\",\"i\"],\"ca\":\"ilpjzuaejxdult\"},\"clients\":[{\"component\":{\"name\":\"bbtdzumvee\",\"authClientNamespace\":\"gpw\"},\"clientId\":\"zuhkfpbsjyof\",\"extraScopes\":[\"uusdttouwa\"],\"type\":\"Confidential\"},{\"component\":{\"name\":\"ekqvkeln\",\"authClientNamespace\":\"mvb\"},\"clientId\":\"wyjsflhhcaalnjix\",\"extraScopes\":[\"yaw\",\"oyaqcslyjpkiid\"],\"type\":\"Confidential\"},{\"component\":{\"name\":\"exznelixhnr\",\"authClientNamespace\":\"tfolhbnx\"},\"clientId\":\"nalaulppg\",\"extraScopes\":[\"pnapnyiropuh\",\"igvpgylg\",\"git\",\"medjvcslynqwwncw\"],\"type\":\"Public\"}],\"claim\":{\"mappings\":{\"username\":{\"claim\":\"hxg\"},\"groups\":{\"claim\":\"rmgucnap\"}},\"validationRules\":[{},{},{},{}]}},\"id\":\"ellwptfdy\",\"name\":\"pfqbuaceopzf\",\"type\":\"rhhuaopppcqeqx\"}],\"nextLink\":\"z\"}") .toObject(ExternalAuthListResult.class); - Assertions.assertEquals("ehhseyvjusrts", model.value().get(0).properties().issuer().url()); - Assertions.assertEquals("spkdee", model.value().get(0).properties().issuer().audiences().get(0)); - Assertions.assertEquals("dhmdua", model.value().get(0).properties().issuer().ca()); - Assertions.assertEquals("xqpvfadmw", model.value().get(0).properties().clients().get(0).component().name()); - Assertions.assertEquals("rcrgvx", + Assertions.assertEquals("ovbvmeueciv", model.value().get(0).properties().issuer().url()); + Assertions.assertEquals("zceuojgjrw", model.value().get(0).properties().issuer().audiences().get(0)); + Assertions.assertEquals("rjaw", model.value().get(0).properties().issuer().ca()); + Assertions.assertEquals("gxhnisk", model.value().get(0).properties().clients().get(0).component().name()); + Assertions.assertEquals("fbkp", model.value().get(0).properties().clients().get(0).component().authClientNamespace()); - Assertions.assertEquals("vgomz", model.value().get(0).properties().clients().get(0).clientId()); - Assertions.assertEquals("isgwbnbbeldawkz", - model.value().get(0).properties().clients().get(0).extraScopes().get(0)); + Assertions.assertEquals("cg", model.value().get(0).properties().clients().get(0).clientId()); + Assertions.assertEquals("ndnhj", model.value().get(0).properties().clients().get(0).extraScopes().get(0)); Assertions.assertEquals(ExternalAuthClientType.CONFIDENTIAL, model.value().get(0).properties().clients().get(0).type()); - Assertions.assertEquals("rqhakauha", model.value().get(0).properties().claim().mappings().username().claim()); - Assertions.assertEquals("sfwxosowzxc", model.value().get(0).properties().claim().mappings().groups().claim()); - Assertions.assertEquals("vmeueci", model.nextLink()); + Assertions.assertEquals("hfgblc", model.value().get(0).properties().claim().mappings().username().claim()); + Assertions.assertEquals("xzvlvqhjkbegib", + model.value().get(0).properties().claim().mappings().groups().claim()); + Assertions.assertEquals("z", model.nextLink()); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthPropertiesTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthPropertiesTests.java index a72471b3f494d..b1993c4306390 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthPropertiesTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthPropertiesTests.java @@ -25,66 +25,89 @@ public final class ExternalAuthPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ExternalAuthProperties model = BinaryData.fromString( - "{\"provisioningState\":\"Provisioning\",\"status\":{\"conditions\":[{\"type\":\"Available\",\"status\":\"True\",\"lastTransitionTime\":\"2021-02-26T13:03:30Z\",\"reason\":\"esz\",\"message\":\"hbijhtxfvgxb\"},{\"type\":\"Progressing\",\"status\":\"Unknown\",\"lastTransitionTime\":\"2021-01-19T10:57:10Z\",\"reason\":\"nehmpvecx\",\"message\":\"odebfqkkrbmpu\"},{\"type\":\"Progressing\",\"status\":\"True\",\"lastTransitionTime\":\"2021-10-09T22:24:23Z\",\"reason\":\"wflzlfbxzpuzy\",\"message\":\"ispnqzahmgkbrp\"}]},\"issuer\":{\"url\":\"y\",\"audiences\":[\"ibnuqqkpik\",\"drgvtqagn\",\"uynhijg\"],\"ca\":\"ebf\"},\"clients\":[{\"component\":{\"name\":\"rbu\",\"authClientNamespace\":\"rcvpnazzmhjrunmp\"},\"clientId\":\"ttdbhrbnl\",\"extraScopes\":[\"xmyskp\"],\"type\":\"Public\"}],\"claim\":{\"mappings\":{\"username\":{\"claim\":\"enbtkcxywny\",\"prefix\":\"rsyn\",\"prefixPolicy\":\"None\"},\"groups\":{\"claim\":\"ybyxc\",\"prefix\":\"clha\"}},\"validationRules\":[{\"type\":\"RequiredClaim\",\"requiredClaim\":{\"claim\":\"p\",\"requiredValue\":\"lwrq\"}},{\"type\":\"RequiredClaim\",\"requiredClaim\":{\"claim\":\"sthsu\",\"requiredValue\":\"ocmnyyazttbtwwrq\"}}]}}") + "{\"provisioningState\":\"Deleting\",\"status\":{\"conditions\":[{\"type\":\"Degraded\",\"status\":\"True\",\"lastTransitionTime\":\"2021-09-07T01:58:14Z\",\"reason\":\"ttxfvjr\",\"message\":\"i\"},{\"type\":\"Available\",\"status\":\"Unknown\",\"lastTransitionTime\":\"2021-06-25T23:55:57Z\",\"reason\":\"epcyvahfnlj\",\"message\":\"yq\"},{\"type\":\"Progressing\",\"status\":\"Unknown\",\"lastTransitionTime\":\"2021-07-11T10:53:21Z\",\"reason\":\"ujqgidok\",\"message\":\"jljyoxgv\"},{\"type\":\"Available\",\"status\":\"True\",\"lastTransitionTime\":\"2021-09-09T05:02:09Z\",\"reason\":\"gsncghkjeszz\",\"message\":\"bijhtxfvgxbf\"}]},\"issuer\":{\"url\":\"mxnehmp\",\"audiences\":[\"cxgod\"],\"ca\":\"fqkkr\"},\"clients\":[{\"component\":{\"name\":\"ukgri\",\"authClientNamespace\":\"flz\"},\"clientId\":\"fbxzpuzycisp\",\"extraScopes\":[\"ahmgkbrp\",\"y\",\"hibnuqqkpika\",\"rgvtqag\"],\"type\":\"Public\"},{\"component\":{\"name\":\"uynhijg\",\"authClientNamespace\":\"mebf\"},\"clientId\":\"iarbutrcvpna\",\"extraScopes\":[\"hj\",\"unmpxttd\",\"hrbnlankxmyskpbh\",\"nbtkcxywnytnr\"],\"type\":\"Confidential\"},{\"component\":{\"name\":\"nlqidybyxczf\",\"authClientNamespace\":\"lhaaxdbabp\"},\"clientId\":\"lwrq\",\"extraScopes\":[\"tsthsucocm\",\"yyazttbt\",\"wrqpue\",\"ckzywbiexzfeyue\"],\"type\":\"Public\"},{\"component\":{\"name\":\"ibx\",\"authClientNamespace\":\"jwbhqwalmuz\"},\"clientId\":\"oxaepd\",\"extraScopes\":[\"ancuxrhd\",\"bavxbniwdjswzt\"],\"type\":\"Public\"}],\"claim\":{\"mappings\":{\"username\":{\"claim\":\"bpg\",\"prefix\":\"ytxhp\",\"prefixPolicy\":\"NoPrefix\"},\"groups\":{\"claim\":\"pfza\",\"prefix\":\"lcuhxwtctyqiklb\"}},\"validationRules\":[{\"type\":\"RequiredClaim\",\"requiredClaim\":{\"claim\":\"zbhvgyuguosv\",\"requiredValue\":\"kfssxqukkf\"}},{\"type\":\"RequiredClaim\",\"requiredClaim\":{\"claim\":\"gsxnkjzkdeslpv\",\"requiredValue\":\"opwi\"}}]}}") .toObject(ExternalAuthProperties.class); - Assertions.assertEquals("y", model.issuer().url()); - Assertions.assertEquals("ibnuqqkpik", model.issuer().audiences().get(0)); - Assertions.assertEquals("ebf", model.issuer().ca()); - Assertions.assertEquals("rbu", model.clients().get(0).component().name()); - Assertions.assertEquals("rcvpnazzmhjrunmp", model.clients().get(0).component().authClientNamespace()); - Assertions.assertEquals("ttdbhrbnl", model.clients().get(0).clientId()); - Assertions.assertEquals("xmyskp", model.clients().get(0).extraScopes().get(0)); + Assertions.assertEquals("mxnehmp", model.issuer().url()); + Assertions.assertEquals("cxgod", model.issuer().audiences().get(0)); + Assertions.assertEquals("fqkkr", model.issuer().ca()); + Assertions.assertEquals("ukgri", model.clients().get(0).component().name()); + Assertions.assertEquals("flz", model.clients().get(0).component().authClientNamespace()); + Assertions.assertEquals("fbxzpuzycisp", model.clients().get(0).clientId()); + Assertions.assertEquals("ahmgkbrp", model.clients().get(0).extraScopes().get(0)); Assertions.assertEquals(ExternalAuthClientType.PUBLIC, model.clients().get(0).type()); - Assertions.assertEquals("enbtkcxywny", model.claim().mappings().username().claim()); - Assertions.assertEquals("rsyn", model.claim().mappings().username().prefix()); - Assertions.assertEquals(UsernameClaimPrefixPolicy.NONE, model.claim().mappings().username().prefixPolicy()); - Assertions.assertEquals("ybyxc", model.claim().mappings().groups().claim()); - Assertions.assertEquals("clha", model.claim().mappings().groups().prefix()); + Assertions.assertEquals("bpg", model.claim().mappings().username().claim()); + Assertions.assertEquals("ytxhp", model.claim().mappings().username().prefix()); + Assertions.assertEquals(UsernameClaimPrefixPolicy.NO_PREFIX, + model.claim().mappings().username().prefixPolicy()); + Assertions.assertEquals("pfza", model.claim().mappings().groups().claim()); + Assertions.assertEquals("lcuhxwtctyqiklb", model.claim().mappings().groups().prefix()); Assertions.assertEquals(TokenValidationRuleType.REQUIRED_CLAIM, model.claim().validationRules().get(0).type()); - Assertions.assertEquals("p", model.claim().validationRules().get(0).requiredClaim().claim()); - Assertions.assertEquals("lwrq", model.claim().validationRules().get(0).requiredClaim().requiredValue()); + Assertions.assertEquals("zbhvgyuguosv", model.claim().validationRules().get(0).requiredClaim().claim()); + Assertions.assertEquals("kfssxqukkf", model.claim().validationRules().get(0).requiredClaim().requiredValue()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ExternalAuthProperties model = new ExternalAuthProperties() - .withIssuer(new TokenIssuerProfile().withUrl("y") - .withAudiences(Arrays.asList("ibnuqqkpik", "drgvtqagn", "uynhijg")) - .withCa("ebf")) - .withClients(Arrays.asList(new ExternalAuthClientProfile() - .withComponent(new ExternalAuthClientComponentProfile().withName("rbu") - .withAuthClientNamespace("rcvpnazzmhjrunmp")) - .withClientId("ttdbhrbnl") - .withExtraScopes(Arrays.asList("xmyskp")) - .withType(ExternalAuthClientType.PUBLIC))) - .withClaim(new ExternalAuthClaimProfile() - .withMappings(new TokenClaimMappingsProfile() - .withUsername(new UsernameClaimProfile().withClaim("enbtkcxywny") - .withPrefix("rsyn") - .withPrefixPolicy(UsernameClaimPrefixPolicy.NONE)) - .withGroups(new GroupClaimProfile().withClaim("ybyxc").withPrefix("clha"))) - .withValidationRules(Arrays.asList( - new TokenClaimValidationRule().withType(TokenValidationRuleType.REQUIRED_CLAIM) - .withRequiredClaim(new TokenRequiredClaim().withClaim("p").withRequiredValue("lwrq")), - new TokenClaimValidationRule().withType(TokenValidationRuleType.REQUIRED_CLAIM) - .withRequiredClaim( - new TokenRequiredClaim().withClaim("sthsu").withRequiredValue("ocmnyyazttbtwwrq"))))); + ExternalAuthProperties model + = new ExternalAuthProperties() + .withIssuer( + new TokenIssuerProfile().withUrl("mxnehmp").withAudiences(Arrays.asList("cxgod")).withCa("fqkkr")) + .withClients( + Arrays.asList( + new ExternalAuthClientProfile() + .withComponent(new ExternalAuthClientComponentProfile().withName("ukgri") + .withAuthClientNamespace("flz")) + .withClientId("fbxzpuzycisp") + .withExtraScopes(Arrays.asList("ahmgkbrp", "y", "hibnuqqkpika", "rgvtqag")) + .withType(ExternalAuthClientType.PUBLIC), + new ExternalAuthClientProfile() + .withComponent(new ExternalAuthClientComponentProfile().withName("uynhijg") + .withAuthClientNamespace("mebf")) + .withClientId("iarbutrcvpna") + .withExtraScopes(Arrays.asList("hj", "unmpxttd", "hrbnlankxmyskpbh", "nbtkcxywnytnr")) + .withType(ExternalAuthClientType.CONFIDENTIAL), + new ExternalAuthClientProfile() + .withComponent(new ExternalAuthClientComponentProfile().withName("nlqidybyxczf") + .withAuthClientNamespace("lhaaxdbabp")) + .withClientId("lwrq") + .withExtraScopes(Arrays.asList("tsthsucocm", "yyazttbt", "wrqpue", "ckzywbiexzfeyue")) + .withType(ExternalAuthClientType.PUBLIC), + new ExternalAuthClientProfile() + .withComponent(new ExternalAuthClientComponentProfile().withName("ibx") + .withAuthClientNamespace("jwbhqwalmuz")) + .withClientId("oxaepd") + .withExtraScopes(Arrays.asList("ancuxrhd", "bavxbniwdjswzt")) + .withType(ExternalAuthClientType.PUBLIC))) + .withClaim(new ExternalAuthClaimProfile() + .withMappings(new TokenClaimMappingsProfile() + .withUsername(new UsernameClaimProfile().withClaim("bpg") + .withPrefix("ytxhp") + .withPrefixPolicy(UsernameClaimPrefixPolicy.NO_PREFIX)) + .withGroups(new GroupClaimProfile().withClaim("pfza").withPrefix("lcuhxwtctyqiklb"))) + .withValidationRules(Arrays.asList( + new TokenClaimValidationRule().withType(TokenValidationRuleType.REQUIRED_CLAIM) + .withRequiredClaim( + new TokenRequiredClaim().withClaim("zbhvgyuguosv").withRequiredValue("kfssxqukkf")), + new TokenClaimValidationRule().withType(TokenValidationRuleType.REQUIRED_CLAIM) + .withRequiredClaim( + new TokenRequiredClaim().withClaim("gsxnkjzkdeslpv").withRequiredValue("opwi"))))); model = BinaryData.fromObject(model).toObject(ExternalAuthProperties.class); - Assertions.assertEquals("y", model.issuer().url()); - Assertions.assertEquals("ibnuqqkpik", model.issuer().audiences().get(0)); - Assertions.assertEquals("ebf", model.issuer().ca()); - Assertions.assertEquals("rbu", model.clients().get(0).component().name()); - Assertions.assertEquals("rcvpnazzmhjrunmp", model.clients().get(0).component().authClientNamespace()); - Assertions.assertEquals("ttdbhrbnl", model.clients().get(0).clientId()); - Assertions.assertEquals("xmyskp", model.clients().get(0).extraScopes().get(0)); + Assertions.assertEquals("mxnehmp", model.issuer().url()); + Assertions.assertEquals("cxgod", model.issuer().audiences().get(0)); + Assertions.assertEquals("fqkkr", model.issuer().ca()); + Assertions.assertEquals("ukgri", model.clients().get(0).component().name()); + Assertions.assertEquals("flz", model.clients().get(0).component().authClientNamespace()); + Assertions.assertEquals("fbxzpuzycisp", model.clients().get(0).clientId()); + Assertions.assertEquals("ahmgkbrp", model.clients().get(0).extraScopes().get(0)); Assertions.assertEquals(ExternalAuthClientType.PUBLIC, model.clients().get(0).type()); - Assertions.assertEquals("enbtkcxywny", model.claim().mappings().username().claim()); - Assertions.assertEquals("rsyn", model.claim().mappings().username().prefix()); - Assertions.assertEquals(UsernameClaimPrefixPolicy.NONE, model.claim().mappings().username().prefixPolicy()); - Assertions.assertEquals("ybyxc", model.claim().mappings().groups().claim()); - Assertions.assertEquals("clha", model.claim().mappings().groups().prefix()); + Assertions.assertEquals("bpg", model.claim().mappings().username().claim()); + Assertions.assertEquals("ytxhp", model.claim().mappings().username().prefix()); + Assertions.assertEquals(UsernameClaimPrefixPolicy.NO_PREFIX, + model.claim().mappings().username().prefixPolicy()); + Assertions.assertEquals("pfza", model.claim().mappings().groups().claim()); + Assertions.assertEquals("lcuhxwtctyqiklb", model.claim().mappings().groups().prefix()); Assertions.assertEquals(TokenValidationRuleType.REQUIRED_CLAIM, model.claim().validationRules().get(0).type()); - Assertions.assertEquals("p", model.claim().validationRules().get(0).requiredClaim().claim()); - Assertions.assertEquals("lwrq", model.claim().validationRules().get(0).requiredClaim().requiredValue()); + Assertions.assertEquals("zbhvgyuguosv", model.claim().validationRules().get(0).requiredClaim().claim()); + Assertions.assertEquals("kfssxqukkf", model.claim().validationRules().get(0).requiredClaim().requiredValue()); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthResourceStatusTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthResourceStatusTests.java new file mode 100644 index 0000000000000..13c8324b6a4cb --- /dev/null +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthResourceStatusTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.redhatopenshifthcp.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.redhatopenshifthcp.models.ExternalAuthResourceStatus; + +public final class ExternalAuthResourceStatusTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + ExternalAuthResourceStatus model = BinaryData.fromString( + "{\"conditions\":[{\"type\":\"Progressing\",\"status\":\"True\",\"lastTransitionTime\":\"2021-09-27T18:37:59Z\",\"reason\":\"kdwzbaiuebbaumny\",\"message\":\"upedeojnabckhs\"},{\"type\":\"Degraded\",\"status\":\"True\",\"lastTransitionTime\":\"2021-11-09T03:48:05Z\",\"reason\":\"siebtfhvpesapskr\",\"message\":\"qmhjjdhtld\"}]}") + .toObject(ExternalAuthResourceStatus.class); + } +} diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthsCreateOrUpdateMockTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthsCreateOrUpdateMockTests.java index f90c397a0aab9..bbd926ed1108d 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthsCreateOrUpdateMockTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthsCreateOrUpdateMockTests.java @@ -35,7 +35,7 @@ public final class ExternalAuthsCreateOrUpdateMockTests { @Test public void testCreateOrUpdate() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":{\"conditions\":[{\"type\":\"Available\",\"status\":\"True\",\"lastTransitionTime\":\"2021-02-19T04:07:09Z\",\"reason\":\"on\",\"message\":\"myhgfipnsxkmc\"},{\"type\":\"Available\",\"status\":\"Unknown\",\"lastTransitionTime\":\"2020-12-24T09:43:24Z\",\"reason\":\"rrjreafxtsgu\",\"message\":\"hjglikk\"}]},\"issuer\":{\"url\":\"wslolbqp\",\"audiences\":[\"zlmvfelfktgp\"],\"ca\":\"rpw\"},\"clients\":[{\"component\":{\"name\":\"znoigbrn\",\"authClientNamespace\":\"w\"},\"clientId\":\"wkpnbsaz\",\"extraScopes\":[\"oqkag\",\"hsxttaugzxnf\",\"azpxdtnkdmkqjjl\"],\"type\":\"Confidential\"},{\"component\":{\"name\":\"envrkpyouaibrebq\",\"authClientNamespace\":\"aysjkixqtnqttez\"},\"clientId\":\"wfff\",\"extraScopes\":[\"pjpqqmtedltmmji\"],\"type\":\"Public\"}],\"claim\":{\"mappings\":{\"username\":{\"claim\":\"eozphv\",\"prefix\":\"uyqncygupkvipmd\",\"prefixPolicy\":\"NoPrefix\"},\"groups\":{\"claim\":\"qupevzh\",\"prefix\":\"totxhojujb\"}},\"validationRules\":[{\"type\":\"RequiredClaim\",\"requiredClaim\":{\"claim\":\"uvhixbjxyfwn\",\"requiredValue\":\"lrcoolsttpki\"}},{\"type\":\"RequiredClaim\",\"requiredClaim\":{\"claim\":\"nujrywvtyl\",\"requiredValue\":\"fpncurdo\"}},{\"type\":\"RequiredClaim\",\"requiredClaim\":{\"claim\":\"thtywub\",\"requiredValue\":\"cbihwqk\"}},{\"type\":\"RequiredClaim\",\"requiredClaim\":{\"claim\":\"twjchrdg\",\"requiredValue\":\"ihxumwctondzj\"}}]}},\"id\":\"udfdlwgg\",\"name\":\"tsbwtovvtgse\",\"type\":\"nqfiufxqknpi\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":{\"conditions\":[{\"type\":\"Progressing\",\"status\":\"False\",\"lastTransitionTime\":\"2021-08-31T13:08:30Z\",\"reason\":\"soldweyuqdunv\",\"message\":\"nnrwrbiork\"},{\"type\":\"Available\",\"status\":\"True\",\"lastTransitionTime\":\"2021-08-10T02:45:15Z\",\"reason\":\"wjhhgdnhxmsivf\",\"message\":\"miloxggdufiqndie\"},{\"type\":\"Progressing\",\"status\":\"Unknown\",\"lastTransitionTime\":\"2021-01-19T01:18:02Z\",\"reason\":\"fjchvc\",\"message\":\"yysfgdot\"},{\"type\":\"Progressing\",\"status\":\"False\",\"lastTransitionTime\":\"2021-03-25T23:54:59Z\",\"reason\":\"ip\",\"message\":\"ipwoqonmacjek\"}]},\"issuer\":{\"url\":\"izsh\",\"audiences\":[\"cimpevfg\",\"b\"],\"ca\":\"rilbywdx\"},\"clients\":[{\"component\":{\"name\":\"ccwr\",\"authClientNamespace\":\"fscjfnynszquji\"},\"clientId\":\"dvoqyt\",\"extraScopes\":[\"owbb\"],\"type\":\"Confidential\"}],\"claim\":{\"mappings\":{\"username\":{\"claim\":\"yavutpthjoxois\",\"prefix\":\"ksbpimlqoljx\",\"prefixPolicy\":\"None\"},\"groups\":{\"claim\":\"xlx\",\"prefix\":\"fgcviz\"}},\"validationRules\":[{\"type\":\"RequiredClaim\",\"requiredClaim\":{\"claim\":\"w\",\"requiredValue\":\"youpfgfbkj\"}}]}},\"id\":\"dyhgkfminsg\",\"name\":\"wzf\",\"type\":\"tsttktlahbq\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -45,69 +45,61 @@ public void testCreateOrUpdate() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ExternalAuth response = manager.externalAuths() - .define("otzi") - .withExistingHcpOpenShiftCluster("fzdm", "yqtfihwh") + .define("ydbsd") + .withExistingHcpOpenShiftCluster("cfzq", "jyxgtczh") .withProperties(new ExternalAuthProperties() - .withIssuer(new TokenIssuerProfile().withUrl("cjaesgvvs") - .withAudiences(Arrays.asList("yajguqfhwygzlv", "nk")) - .withCa("usemdwzrmuhap")) - .withClients(Arrays.asList( - new ExternalAuthClientProfile() - .withComponent(new ExternalAuthClientComponentProfile().withName("dpsqx") - .withAuthClientNamespace("vpsvuoymgcce")) - .withClientId("vezrypqlmfeo") - .withExtraScopes(Arrays.asList("qwkyhkobop", "xedk")) - .withType(ExternalAuthClientType.CONFIDENTIAL), - new ExternalAuthClientProfile() - .withComponent(new ExternalAuthClientComponentProfile().withName("epbqpcrfkbw") - .withAuthClientNamespace("csnjvcdwxlpqekft")) - .withClientId("khtj") - .withExtraScopes(Arrays.asList("ngwfqatm")) - .withType(ExternalAuthClientType.PUBLIC), - new ExternalAuthClientProfile() - .withComponent(new ExternalAuthClientComponentProfile().withName("htmdvy") - .withAuthClientNamespace("gikdgsz")) - .withClientId("w") - .withExtraScopes(Arrays.asList("rryuzhlhkjo", "rvqqaatj", "nrvgoupmfiibfgg")) - .withType(ExternalAuthClientType.PUBLIC))) - .withClaim(new ExternalAuthClaimProfile() - .withMappings(new TokenClaimMappingsProfile() - .withUsername(new UsernameClaimProfile().withClaim("ool") - .withPrefix("wxkvtkkgll") - .withPrefixPolicy(UsernameClaimPrefixPolicy.PREFIX)) - .withGroups(new GroupClaimProfile().withClaim("gvjayvblmh").withPrefix("zuhbxvvyhgsopb"))) - .withValidationRules( - Arrays.asList(new TokenClaimValidationRule().withType(TokenValidationRuleType.REQUIRED_CLAIM) - .withRequiredClaim(new TokenRequiredClaim().withClaim("g").withRequiredValue("uvwzfbnh")), - new TokenClaimValidationRule().withType(TokenValidationRuleType.REQUIRED_CLAIM) - .withRequiredClaim(new TokenRequiredClaim().withClaim("l").withRequiredValue("dn")), - new TokenClaimValidationRule().withType(TokenValidationRuleType.REQUIRED_CLAIM) - .withRequiredClaim(new TokenRequiredClaim().withClaim("gbmhrixkwmyi") - .withRequiredValue("ejvegrhbpnaixex")), - new TokenClaimValidationRule().withType(TokenValidationRuleType.REQUIRED_CLAIM) - .withRequiredClaim(new TokenRequiredClaim().withClaim("reaxhcexdr") - .withRequiredValue("vqahqkghtpwi")))))) + .withIssuer(new TokenIssuerProfile().withUrl("qfbumlkxtrqjf") + .withAudiences(Arrays.asList("lmbtxhwgfwsrt", "wcoezbrhub", "kh", "dyg")) + .withCa("okkqfqjbvleo")) + .withClients(Arrays.asList(new ExternalAuthClientProfile() + .withComponent(new ExternalAuthClientComponentProfile().withName("luiqtqzfavyvnqq") + .withAuthClientNamespace("bar")) + .withClientId("euayjkqabqgzsles") + .withExtraScopes(Arrays.asList("hernntiewdjc", "bquwrbehw", "gohbuffkmrq")) + .withType(ExternalAuthClientType.PUBLIC))) + .withClaim( + new ExternalAuthClaimProfile() + .withMappings(new TokenClaimMappingsProfile() + .withUsername(new UsernameClaimProfile().withClaim("vvhmxtdrj") + .withPrefix("tac") + .withPrefixPolicy(UsernameClaimPrefixPolicy.PREFIX)) + .withGroups(new GroupClaimProfile().withClaim("vewzcj").withPrefix("m"))) + .withValidationRules( + Arrays + .asList( + new TokenClaimValidationRule().withType(TokenValidationRuleType.REQUIRED_CLAIM) + .withRequiredClaim(new TokenRequiredClaim().withClaim("aadraufactkahz") + .withRequiredValue("v")), + new TokenClaimValidationRule().withType(TokenValidationRuleType.REQUIRED_CLAIM) + .withRequiredClaim(new TokenRequiredClaim().withClaim("iuxxpshneekulfg") + .withRequiredValue("lqubkwdlen")), + new TokenClaimValidationRule().withType(TokenValidationRuleType.REQUIRED_CLAIM) + .withRequiredClaim(new TokenRequiredClaim().withClaim("tujbazpju") + .withRequiredValue("hminyflnorwmduv")), + new TokenClaimValidationRule().withType(TokenValidationRuleType.REQUIRED_CLAIM) + .withRequiredClaim(new TokenRequiredClaim().withClaim("vxwmygd") + .withRequiredValue("pgpqchiszepnnb")))))) .create(); - Assertions.assertEquals("wslolbqp", response.properties().issuer().url()); - Assertions.assertEquals("zlmvfelfktgp", response.properties().issuer().audiences().get(0)); - Assertions.assertEquals("rpw", response.properties().issuer().ca()); - Assertions.assertEquals("znoigbrn", response.properties().clients().get(0).component().name()); - Assertions.assertEquals("w", response.properties().clients().get(0).component().authClientNamespace()); - Assertions.assertEquals("wkpnbsaz", response.properties().clients().get(0).clientId()); - Assertions.assertEquals("oqkag", response.properties().clients().get(0).extraScopes().get(0)); + Assertions.assertEquals("izsh", response.properties().issuer().url()); + Assertions.assertEquals("cimpevfg", response.properties().issuer().audiences().get(0)); + Assertions.assertEquals("rilbywdx", response.properties().issuer().ca()); + Assertions.assertEquals("ccwr", response.properties().clients().get(0).component().name()); + Assertions.assertEquals("fscjfnynszquji", + response.properties().clients().get(0).component().authClientNamespace()); + Assertions.assertEquals("dvoqyt", response.properties().clients().get(0).clientId()); + Assertions.assertEquals("owbb", response.properties().clients().get(0).extraScopes().get(0)); Assertions.assertEquals(ExternalAuthClientType.CONFIDENTIAL, response.properties().clients().get(0).type()); - Assertions.assertEquals("eozphv", response.properties().claim().mappings().username().claim()); - Assertions.assertEquals("uyqncygupkvipmd", response.properties().claim().mappings().username().prefix()); - Assertions.assertEquals(UsernameClaimPrefixPolicy.NO_PREFIX, + Assertions.assertEquals("yavutpthjoxois", response.properties().claim().mappings().username().claim()); + Assertions.assertEquals("ksbpimlqoljx", response.properties().claim().mappings().username().prefix()); + Assertions.assertEquals(UsernameClaimPrefixPolicy.NONE, response.properties().claim().mappings().username().prefixPolicy()); - Assertions.assertEquals("qupevzh", response.properties().claim().mappings().groups().claim()); - Assertions.assertEquals("totxhojujb", response.properties().claim().mappings().groups().prefix()); + Assertions.assertEquals("xlx", response.properties().claim().mappings().groups().claim()); + Assertions.assertEquals("fgcviz", response.properties().claim().mappings().groups().prefix()); Assertions.assertEquals(TokenValidationRuleType.REQUIRED_CLAIM, response.properties().claim().validationRules().get(0).type()); - Assertions.assertEquals("uvhixbjxyfwn", - response.properties().claim().validationRules().get(0).requiredClaim().claim()); - Assertions.assertEquals("lrcoolsttpki", + Assertions.assertEquals("w", response.properties().claim().validationRules().get(0).requiredClaim().claim()); + Assertions.assertEquals("youpfgfbkj", response.properties().claim().validationRules().get(0).requiredClaim().requiredValue()); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthsGetWithResponseMockTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthsGetWithResponseMockTests.java index cb7f79162a778..10770449d61ed 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthsGetWithResponseMockTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthsGetWithResponseMockTests.java @@ -24,7 +24,7 @@ public final class ExternalAuthsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"provisioningState\":\"Deleting\",\"status\":{\"conditions\":[{\"type\":\"Progressing\",\"status\":\"False\",\"lastTransitionTime\":\"2021-03-24T07:54:48Z\",\"reason\":\"azxkhnzbonlwnto\",\"message\":\"gokdwbwhks\"},{\"type\":\"Degraded\",\"status\":\"False\",\"lastTransitionTime\":\"2021-11-07T16:03:36Z\",\"reason\":\"rvexztvb\",\"message\":\"qgsfraoyzkoow\"}]},\"issuer\":{\"url\":\"lmnguxaw\",\"audiences\":[\"ldsyuuximerqfob\",\"yznkby\"],\"ca\":\"t\"},\"clients\":[{\"component\":{\"name\":\"hpagm\",\"authClientNamespace\":\"r\"},\"clientId\":\"kdsnfdsdoakgtdl\",\"extraScopes\":[\"zev\",\"l\",\"ewpusdsttwvogvb\",\"ejdcngqqmoakuf\"],\"type\":\"Confidential\"},{\"component\":{\"name\":\"jzrwrdgrtw\",\"authClientNamespace\":\"enuuzkopbm\"},\"clientId\":\"nrfdw\",\"extraScopes\":[\"hhziuief\",\"zbhd\",\"smlmzqhoftrm\",\"equi\"],\"type\":\"Public\"},{\"component\":{\"name\":\"xicslfao\",\"authClientNamespace\":\"z\"},\"clientId\":\"iyylhalnswhccsp\",\"extraScopes\":[\"ivwitqscywugg\",\"oluhczbwemh\",\"i\"],\"type\":\"Confidential\"},{\"component\":{\"name\":\"brgz\",\"authClientNamespace\":\"wmsweypqwd\"},\"clientId\":\"ggicccnxqhue\",\"extraScopes\":[\"ttlstvlzywemhz\"],\"type\":\"Public\"}],\"claim\":{\"mappings\":{\"username\":{\"claim\":\"csdtclusiypbs\",\"prefix\":\"ytguslf\",\"prefixPolicy\":\"None\"},\"groups\":{\"claim\":\"ygqukyhejh\",\"prefix\":\"sx\"}},\"validationRules\":[{\"type\":\"RequiredClaim\",\"requiredClaim\":{\"claim\":\"lppvksrpq\",\"requiredValue\":\"ujzra\"}},{\"type\":\"RequiredClaim\",\"requiredClaim\":{\"claim\":\"dw\",\"requiredValue\":\"ftswibyrcdlbhsh\"}}]}},\"id\":\"p\",\"name\":\"acstwityk\",\"type\":\"evxccedcp\"}"; + = "{\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":{\"conditions\":[{\"type\":\"Degraded\",\"status\":\"False\",\"lastTransitionTime\":\"2021-01-29T16:46:41Z\",\"reason\":\"iwkkbn\",\"message\":\"jrywvtylbfpnc\"},{\"type\":\"Degraded\",\"status\":\"False\",\"lastTransitionTime\":\"2021-09-18T15:56:11Z\",\"reason\":\"iwii\",\"message\":\"htywubxcbihwq\"},{\"type\":\"Degraded\",\"status\":\"False\",\"lastTransitionTime\":\"2021-05-24T07:25:33Z\",\"reason\":\"ntwjch\",\"message\":\"dgoihxumwctondzj\"},{\"type\":\"Progressing\",\"status\":\"False\",\"lastTransitionTime\":\"2021-02-01T20:04:58Z\",\"reason\":\"fdlwg\",\"message\":\"ytsbwtovv\"}]},\"issuer\":{\"url\":\"gseinq\",\"audiences\":[\"ufxqknpirgnepttw\",\"msniffc\",\"mqnrojlpijnkr\"],\"ca\":\"rddh\"},\"clients\":[{\"component\":{\"name\":\"tizzronasxif\",\"authClientNamespace\":\"ozqyzh\"},\"clientId\":\"tw\",\"extraScopes\":[\"ogczhonnxkrlg\",\"yhmossxkkg\",\"h\",\"rghxjb\"],\"type\":\"Public\"}],\"claim\":{\"mappings\":{\"username\":{\"claim\":\"qxvcxgfrpdsofb\",\"prefix\":\"rnsvbuswd\",\"prefixPolicy\":\"None\"},\"groups\":{\"claim\":\"bycnunvjsrtkf\",\"prefix\":\"nopqgikyzirtx\"}},\"validationRules\":[{\"type\":\"RequiredClaim\",\"requiredClaim\":{\"claim\":\"jntpsewgioilqu\",\"requiredValue\":\"rydxtqm\"}},{\"type\":\"RequiredClaim\",\"requiredClaim\":{\"claim\":\"orgguf\",\"requiredValue\":\"yaomtb\"}},{\"type\":\"RequiredClaim\",\"requiredClaim\":{\"claim\":\"vgrvkffo\",\"requiredValue\":\"jzhpjbibgjmfx\"}}]}},\"id\":\"vfcluyovwxnbkfe\",\"name\":\"zxscyhwzdgirujb\",\"type\":\"bomvzzbtdcqv\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -34,28 +34,28 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); ExternalAuth response = manager.externalAuths() - .getWithResponse("ftwwaezkojvdc", "zfoqouicybxar", "gszufoxciqopid", com.azure.core.util.Context.NONE) + .getWithResponse("vhixbjxy", "w", "yl", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("lmnguxaw", response.properties().issuer().url()); - Assertions.assertEquals("ldsyuuximerqfob", response.properties().issuer().audiences().get(0)); - Assertions.assertEquals("t", response.properties().issuer().ca()); - Assertions.assertEquals("hpagm", response.properties().clients().get(0).component().name()); - Assertions.assertEquals("r", response.properties().clients().get(0).component().authClientNamespace()); - Assertions.assertEquals("kdsnfdsdoakgtdl", response.properties().clients().get(0).clientId()); - Assertions.assertEquals("zev", response.properties().clients().get(0).extraScopes().get(0)); - Assertions.assertEquals(ExternalAuthClientType.CONFIDENTIAL, response.properties().clients().get(0).type()); - Assertions.assertEquals("csdtclusiypbs", response.properties().claim().mappings().username().claim()); - Assertions.assertEquals("ytguslf", response.properties().claim().mappings().username().prefix()); + Assertions.assertEquals("gseinq", response.properties().issuer().url()); + Assertions.assertEquals("ufxqknpirgnepttw", response.properties().issuer().audiences().get(0)); + Assertions.assertEquals("rddh", response.properties().issuer().ca()); + Assertions.assertEquals("tizzronasxif", response.properties().clients().get(0).component().name()); + Assertions.assertEquals("ozqyzh", response.properties().clients().get(0).component().authClientNamespace()); + Assertions.assertEquals("tw", response.properties().clients().get(0).clientId()); + Assertions.assertEquals("ogczhonnxkrlg", response.properties().clients().get(0).extraScopes().get(0)); + Assertions.assertEquals(ExternalAuthClientType.PUBLIC, response.properties().clients().get(0).type()); + Assertions.assertEquals("qxvcxgfrpdsofb", response.properties().claim().mappings().username().claim()); + Assertions.assertEquals("rnsvbuswd", response.properties().claim().mappings().username().prefix()); Assertions.assertEquals(UsernameClaimPrefixPolicy.NONE, response.properties().claim().mappings().username().prefixPolicy()); - Assertions.assertEquals("ygqukyhejh", response.properties().claim().mappings().groups().claim()); - Assertions.assertEquals("sx", response.properties().claim().mappings().groups().prefix()); + Assertions.assertEquals("bycnunvjsrtkf", response.properties().claim().mappings().groups().claim()); + Assertions.assertEquals("nopqgikyzirtx", response.properties().claim().mappings().groups().prefix()); Assertions.assertEquals(TokenValidationRuleType.REQUIRED_CLAIM, response.properties().claim().validationRules().get(0).type()); - Assertions.assertEquals("lppvksrpq", + Assertions.assertEquals("jntpsewgioilqu", response.properties().claim().validationRules().get(0).requiredClaim().claim()); - Assertions.assertEquals("ujzra", + Assertions.assertEquals("rydxtqm", response.properties().claim().validationRules().get(0).requiredClaim().requiredValue()); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthsListByParentMockTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthsListByParentMockTests.java index 87aff2a5edea2..c5605c1cce15c 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthsListByParentMockTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ExternalAuthsListByParentMockTests.java @@ -25,7 +25,7 @@ public final class ExternalAuthsListByParentMockTests { @Test public void testListByParent() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"provisioningState\":\"AwaitingSecret\",\"status\":{\"conditions\":[{\"type\":\"Degraded\",\"status\":\"True\",\"lastTransitionTime\":\"2021-04-11T19:28:53Z\",\"reason\":\"ltiugcxnavv\",\"message\":\"xqi\"},{\"type\":\"Degraded\",\"status\":\"Unknown\",\"lastTransitionTime\":\"2021-03-07T11:40:10Z\",\"reason\":\"nyowxwlmdjrkvfg\",\"message\":\"vfvpdbodaciz\"},{\"type\":\"Available\",\"status\":\"False\",\"lastTransitionTime\":\"2021-04-19T06:09:38Z\",\"reason\":\"hkr\",\"message\":\"ibdeibq\"}]},\"issuer\":{\"url\":\"p\",\"audiences\":[\"ghvxndzwmkrefa\"],\"ca\":\"jorwkqnyhgbij\"},\"clients\":[{\"component\":{\"name\":\"vfxzsjab\",\"authClientNamespace\":\"bsystawfsdjpvk\"},\"clientId\":\"p\",\"extraScopes\":[\"bkzbzkd\",\"ncj\",\"budurgkakmo\"],\"type\":\"Public\"},{\"component\":{\"name\":\"hjjklff\",\"authClientNamespace\":\"mouwqlgzrfzeey\"},\"clientId\":\"bizikayuhq\",\"extraScopes\":[\"bs\",\"bbqwrvtldg\"],\"type\":\"Confidential\"},{\"component\":{\"name\":\"pgvmpipaslthaqfx\",\"authClientNamespace\":\"smwutwbdsrezpd\"},\"clientId\":\"hneuyowqkd\",\"extraScopes\":[\"i\"],\"type\":\"Confidential\"},{\"component\":{\"name\":\"bi\",\"authClientNamespace\":\"cgpik\"},\"clientId\":\"zimejzanlfzx\",\"extraScopes\":[\"rmbzo\",\"okixrjqcir\"],\"type\":\"Confidential\"}],\"claim\":{\"mappings\":{\"username\":{\"claim\":\"pfrlazsz\",\"prefix\":\"woiindf\",\"prefixPolicy\":\"NoPrefix\"},\"groups\":{\"claim\":\"ylwbtlhflsjcdhsz\",\"prefix\":\"vfbgofeljagrqmqh\"}},\"validationRules\":[{\"type\":\"RequiredClaim\",\"requiredClaim\":{\"claim\":\"iojnalghfkvtv\",\"requiredValue\":\"ex\"}},{\"type\":\"RequiredClaim\",\"requiredClaim\":{\"claim\":\"el\",\"requiredValue\":\"qhhahhxvrhmzkwpj\"}}]}},\"id\":\"wspughftqsxhqx\",\"name\":\"j\",\"type\":\"ukndxdigrjgu\"}]}"; + = "{\"value\":[{\"properties\":{\"provisioningState\":\"Succeeded\",\"status\":{\"conditions\":[{\"type\":\"Available\",\"status\":\"True\",\"lastTransitionTime\":\"2021-08-04T00:45:18Z\",\"reason\":\"gaojf\",\"message\":\"wncot\"},{\"type\":\"Degraded\",\"status\":\"Unknown\",\"lastTransitionTime\":\"2021-02-05T02:24:03Z\",\"reason\":\"irctymoxoftpipiw\",\"message\":\"czuhxacpqjlihh\"},{\"type\":\"Degraded\",\"status\":\"True\",\"lastTransitionTime\":\"2021-01-19T04:40:02Z\",\"reason\":\"skasdvlmfwdgzxu\",\"message\":\"ucvpamrs\"}]},\"issuer\":{\"url\":\"euzvx\",\"audiences\":[\"i\",\"jn\",\"nytx\",\"fq\"],\"ca\":\"gxmrhublwp\"},\"clients\":[{\"component\":{\"name\":\"utr\",\"authClientNamespace\":\"jupauut\"},\"clientId\":\"woqhihe\",\"extraScopes\":[\"w\"],\"type\":\"Public\"},{\"component\":{\"name\":\"nfqn\",\"authClientNamespace\":\"cypsxjv\"},\"clientId\":\"oimwkslirc\",\"extraScopes\":[\"xvydfceacvlhvygd\"],\"type\":\"Public\"}],\"claim\":{\"mappings\":{\"username\":{\"claim\":\"t\",\"prefix\":\"rtwnawjslbi\",\"prefixPolicy\":\"NoPrefix\"},\"groups\":{\"claim\":\"gcyztsfmznbae\",\"prefix\":\"hchqnrnrpx\"}},\"validationRules\":[{\"type\":\"RequiredClaim\",\"requiredClaim\":{\"claim\":\"k\",\"requiredValue\":\"gaifmvik\"}},{\"type\":\"RequiredClaim\",\"requiredClaim\":{\"claim\":\"vkhbejdznx\",\"requiredValue\":\"vdsrhnjiv\"}},{\"type\":\"RequiredClaim\",\"requiredClaim\":{\"claim\":\"novqfzge\",\"requiredValue\":\"jdftuljltd\"}},{\"type\":\"RequiredClaim\",\"requiredClaim\":{\"claim\":\"mtmczuome\",\"requiredValue\":\"wcw\"}}]}},\"id\":\"ioknssxmoj\",\"name\":\"sv\",\"type\":\"kjprvk\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -35,35 +35,32 @@ public void testListByParent() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.externalAuths().listByParent("md", "odn", com.azure.core.util.Context.NONE); + = manager.externalAuths().listByParent("niyujv", "ylwdshfssn", com.azure.core.util.Context.NONE); - Assertions.assertEquals("p", response.iterator().next().properties().issuer().url()); - Assertions.assertEquals("ghvxndzwmkrefa", response.iterator().next().properties().issuer().audiences().get(0)); - Assertions.assertEquals("jorwkqnyhgbij", response.iterator().next().properties().issuer().ca()); - Assertions.assertEquals("vfxzsjab", - response.iterator().next().properties().clients().get(0).component().name()); - Assertions.assertEquals("bsystawfsdjpvk", + Assertions.assertEquals("euzvx", response.iterator().next().properties().issuer().url()); + Assertions.assertEquals("i", response.iterator().next().properties().issuer().audiences().get(0)); + Assertions.assertEquals("gxmrhublwp", response.iterator().next().properties().issuer().ca()); + Assertions.assertEquals("utr", response.iterator().next().properties().clients().get(0).component().name()); + Assertions.assertEquals("jupauut", response.iterator().next().properties().clients().get(0).component().authClientNamespace()); - Assertions.assertEquals("p", response.iterator().next().properties().clients().get(0).clientId()); - Assertions.assertEquals("bkzbzkd", - response.iterator().next().properties().clients().get(0).extraScopes().get(0)); + Assertions.assertEquals("woqhihe", response.iterator().next().properties().clients().get(0).clientId()); + Assertions.assertEquals("w", response.iterator().next().properties().clients().get(0).extraScopes().get(0)); Assertions.assertEquals(ExternalAuthClientType.PUBLIC, response.iterator().next().properties().clients().get(0).type()); - Assertions.assertEquals("pfrlazsz", - response.iterator().next().properties().claim().mappings().username().claim()); - Assertions.assertEquals("woiindf", + Assertions.assertEquals("t", response.iterator().next().properties().claim().mappings().username().claim()); + Assertions.assertEquals("rtwnawjslbi", response.iterator().next().properties().claim().mappings().username().prefix()); Assertions.assertEquals(UsernameClaimPrefixPolicy.NO_PREFIX, response.iterator().next().properties().claim().mappings().username().prefixPolicy()); - Assertions.assertEquals("ylwbtlhflsjcdhsz", + Assertions.assertEquals("gcyztsfmznbae", response.iterator().next().properties().claim().mappings().groups().claim()); - Assertions.assertEquals("vfbgofeljagrqmqh", + Assertions.assertEquals("hchqnrnrpx", response.iterator().next().properties().claim().mappings().groups().prefix()); Assertions.assertEquals(TokenValidationRuleType.REQUIRED_CLAIM, response.iterator().next().properties().claim().validationRules().get(0).type()); - Assertions.assertEquals("iojnalghfkvtv", + Assertions.assertEquals("k", response.iterator().next().properties().claim().validationRules().get(0).requiredClaim().claim()); - Assertions.assertEquals("ex", + Assertions.assertEquals("gaifmvik", response.iterator().next().properties().claim().validationRules().get(0).requiredClaim().requiredValue()); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/GroupClaimProfileTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/GroupClaimProfileTests.java index 20200508a823c..58b436a1759d7 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/GroupClaimProfileTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/GroupClaimProfileTests.java @@ -11,17 +11,17 @@ public final class GroupClaimProfileTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - GroupClaimProfile model = BinaryData.fromString("{\"claim\":\"h\",\"prefix\":\"pnvjtoqnermclf\"}") + GroupClaimProfile model = BinaryData.fromString("{\"claim\":\"fm\",\"prefix\":\"gkvtmelmqkrhah\"}") .toObject(GroupClaimProfile.class); - Assertions.assertEquals("h", model.claim()); - Assertions.assertEquals("pnvjtoqnermclf", model.prefix()); + Assertions.assertEquals("fm", model.claim()); + Assertions.assertEquals("gkvtmelmqkrhah", model.prefix()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - GroupClaimProfile model = new GroupClaimProfile().withClaim("h").withPrefix("pnvjtoqnermclf"); + GroupClaimProfile model = new GroupClaimProfile().withClaim("fm").withPrefix("gkvtmelmqkrhah"); model = BinaryData.fromObject(model).toObject(GroupClaimProfile.class); - Assertions.assertEquals("h", model.claim()); - Assertions.assertEquals("pnvjtoqnermclf", model.prefix()); + Assertions.assertEquals("fm", model.claim()); + Assertions.assertEquals("gkvtmelmqkrhah", model.prefix()); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClusterAdminCredentialInnerTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClusterAdminCredentialInnerTests.java index 75836352f264f..d1023bc9b25bb 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClusterAdminCredentialInnerTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClusterAdminCredentialInnerTests.java @@ -11,7 +11,7 @@ public final class HcpOpenShiftClusterAdminCredentialInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { HcpOpenShiftClusterAdminCredentialInner model - = BinaryData.fromString("{\"kubeconfig\":\"cftadeh\",\"expirationTimestamp\":\"2020-12-20T16:44:21Z\"}") + = BinaryData.fromString("{\"kubeconfig\":\"b\",\"expirationTimestamp\":\"2021-04-23T00:27:35Z\"}") .toObject(HcpOpenShiftClusterAdminCredentialInner.class); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClusterAdminCredentialRequestTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClusterAdminCredentialRequestTests.java index 5e8d7a3c9d991..fea8711dd008c 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClusterAdminCredentialRequestTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClusterAdminCredentialRequestTests.java @@ -12,16 +12,16 @@ public final class HcpOpenShiftClusterAdminCredentialRequestTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { HcpOpenShiftClusterAdminCredentialRequest model - = BinaryData.fromString("{\"certificateSigningRequest\":\"pwlbjnpg\"}") + = BinaryData.fromString("{\"certificateSigningRequest\":\"gual\"}") .toObject(HcpOpenShiftClusterAdminCredentialRequest.class); - Assertions.assertEquals("pwlbjnpg", model.certificateSigningRequest()); + Assertions.assertEquals("gual", model.certificateSigningRequest()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { HcpOpenShiftClusterAdminCredentialRequest model - = new HcpOpenShiftClusterAdminCredentialRequest().withCertificateSigningRequest("pwlbjnpg"); + = new HcpOpenShiftClusterAdminCredentialRequest().withCertificateSigningRequest("gual"); model = BinaryData.fromObject(model).toObject(HcpOpenShiftClusterAdminCredentialRequest.class); - Assertions.assertEquals("pwlbjnpg", model.certificateSigningRequest()); + Assertions.assertEquals("gual", model.certificateSigningRequest()); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClustersRequestAdminCredentialMockTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClustersRequestAdminCredentialMockTests.java index d57911ec97f73..df59e5d4b0372 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClustersRequestAdminCredentialMockTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftClustersRequestAdminCredentialMockTests.java @@ -20,7 +20,7 @@ public final class HcpOpenShiftClustersRequestAdminCredentialMockTests { @Test public void testRequestAdminCredential() throws Exception { - String responseStr = "{\"kubeconfig\":\"oz\",\"expirationTimestamp\":\"2021-03-28T00:35:09Z\"}"; + String responseStr = "{\"kubeconfig\":\"hfkvtvsexsowuel\",\"expirationTimestamp\":\"2021-08-05T12:32:54Z\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -30,8 +30,8 @@ public void testRequestAdminCredential() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); HcpOpenShiftClusterAdminCredential response = manager.hcpOpenShiftClusters() - .requestAdminCredential("vxwc", "elpcirelsfeaenwa", - new HcpOpenShiftClusterAdminCredentialRequest().withCertificateSigningRequest("atklddxbjhwuaa"), + .requestAdminCredential("qhl", "vriiio", + new HcpOpenShiftClusterAdminCredentialRequest().withCertificateSigningRequest("al"), com.azure.core.util.Context.NONE); } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftVersionInnerTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftVersionInnerTests.java index 0082ae08c0a09..b2214ccdc827a 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftVersionInnerTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftVersionInnerTests.java @@ -13,10 +13,10 @@ public final class HcpOpenShiftVersionInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { HcpOpenShiftVersionInner model = BinaryData.fromString( - "{\"properties\":{\"channelGroup\":\"hzceuojgjrwjue\",\"enabled\":false,\"endOfLifeTimestamp\":\"2021-12-06T14:18:50Z\"},\"id\":\"mcdytdxwitxnrj\",\"name\":\"wgqwgxhn\",\"type\":\"skxfbk\"}") + "{\"properties\":{\"channelGroup\":\"hzxct\",\"enabled\":true,\"endOfLifeTimestamp\":\"2021-10-01T04:47:29Z\"},\"id\":\"kdmoi\",\"name\":\"postmgrcfbunrm\",\"type\":\"qjhhkxbpv\"}") .toObject(HcpOpenShiftVersionInner.class); - Assertions.assertEquals("hzceuojgjrwjue", model.properties().channelGroup()); - Assertions.assertFalse(model.properties().enabled()); - Assertions.assertEquals(OffsetDateTime.parse("2021-12-06T14:18:50Z"), model.properties().endOfLifeTimestamp()); + Assertions.assertEquals("hzxct", model.properties().channelGroup()); + Assertions.assertTrue(model.properties().enabled()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-01T04:47:29Z"), model.properties().endOfLifeTimestamp()); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftVersionListResultTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftVersionListResultTests.java index 58223f2d4b574..cc695815b9c7c 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftVersionListResultTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftVersionListResultTests.java @@ -13,12 +13,12 @@ public final class HcpOpenShiftVersionListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { HcpOpenShiftVersionListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"channelGroup\":\"ndnhj\",\"enabled\":true,\"endOfLifeTimestamp\":\"2021-02-14T21:50:58Z\"},\"id\":\"hvylwzbt\",\"name\":\"h\",\"type\":\"ujznb\"}],\"nextLink\":\"ow\"}") + "{\"value\":[{\"properties\":{\"channelGroup\":\"qzvszjf\",\"enabled\":true,\"endOfLifeTimestamp\":\"2021-03-12T20:34:44Z\"},\"id\":\"fdxxivetvtcqaqtd\",\"name\":\"qmcbxvwvxyslqbhs\",\"type\":\"xoblytkbl\"}],\"nextLink\":\"ewwwfbkrvrnsv\"}") .toObject(HcpOpenShiftVersionListResult.class); - Assertions.assertEquals("ndnhj", model.value().get(0).properties().channelGroup()); + Assertions.assertEquals("qzvszjf", model.value().get(0).properties().channelGroup()); Assertions.assertTrue(model.value().get(0).properties().enabled()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-14T21:50:58Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-03-12T20:34:44Z"), model.value().get(0).properties().endOfLifeTimestamp()); - Assertions.assertEquals("ow", model.nextLink()); + Assertions.assertEquals("ewwwfbkrvrnsv", model.nextLink()); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftVersionPropertiesTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftVersionPropertiesTests.java index 0df42fcdb3032..65efbca86125b 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftVersionPropertiesTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftVersionPropertiesTests.java @@ -12,11 +12,11 @@ public final class HcpOpenShiftVersionPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - HcpOpenShiftVersionProperties model = BinaryData - .fromString("{\"channelGroup\":\"y\",\"enabled\":false,\"endOfLifeTimestamp\":\"2021-02-14T18:57Z\"}") + HcpOpenShiftVersionProperties model = BinaryData.fromString( + "{\"channelGroup\":\"ymjhxxjyngudivkr\",\"enabled\":false,\"endOfLifeTimestamp\":\"2021-10-05T00:25:34Z\"}") .toObject(HcpOpenShiftVersionProperties.class); - Assertions.assertEquals("y", model.channelGroup()); + Assertions.assertEquals("ymjhxxjyngudivkr", model.channelGroup()); Assertions.assertFalse(model.enabled()); - Assertions.assertEquals(OffsetDateTime.parse("2021-02-14T18:57Z"), model.endOfLifeTimestamp()); + Assertions.assertEquals(OffsetDateTime.parse("2021-10-05T00:25:34Z"), model.endOfLifeTimestamp()); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftVersionsGetWithResponseMockTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftVersionsGetWithResponseMockTests.java index eb2b56a29caaf..abd060cf46054 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftVersionsGetWithResponseMockTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftVersionsGetWithResponseMockTests.java @@ -21,7 +21,7 @@ public final class HcpOpenShiftVersionsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"channelGroup\":\"xfrdd\",\"enabled\":false,\"endOfLifeTimestamp\":\"2021-01-09T04:43:14Z\"},\"id\":\"tizzronasxif\",\"name\":\"ozqyzh\",\"type\":\"tw\"}"; + = "{\"properties\":{\"channelGroup\":\"rxcpjuisavo\",\"enabled\":true,\"endOfLifeTimestamp\":\"2021-01-28T07:43:14Z\"},\"id\":\"fvazivjlfrqttba\",\"name\":\"lkatnwxyiopidkqq\",\"type\":\"kuvscxkdm\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -31,12 +31,12 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); HcpOpenShiftVersion response = manager.hcpOpenShiftVersions() - .getWithResponse("gnepttwqmsni", "fcdmqnrojlpijn", com.azure.core.util.Context.NONE) + .getWithResponse("ctxtgzukxi", "mmqtgqqqxhr", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("xfrdd", response.properties().channelGroup()); - Assertions.assertFalse(response.properties().enabled()); - Assertions.assertEquals(OffsetDateTime.parse("2021-01-09T04:43:14Z"), + Assertions.assertEquals("rxcpjuisavo", response.properties().channelGroup()); + Assertions.assertTrue(response.properties().enabled()); + Assertions.assertEquals(OffsetDateTime.parse("2021-01-28T07:43:14Z"), response.properties().endOfLifeTimestamp()); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftVersionsListMockTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftVersionsListMockTests.java index a38c9a02f432b..1c9a976dbb34b 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftVersionsListMockTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOpenShiftVersionsListMockTests.java @@ -22,7 +22,7 @@ public final class HcpOpenShiftVersionsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"channelGroup\":\"gnyhmossxkkg\",\"enabled\":false,\"endOfLifeTimestamp\":\"2021-06-21T18:07:23Z\"},\"id\":\"hxjbdhqxvc\",\"name\":\"gf\",\"type\":\"pdso\"}]}"; + = "{\"value\":[{\"properties\":{\"channelGroup\":\"xk\",\"enabled\":false,\"endOfLifeTimestamp\":\"2021-02-06T07:28:46Z\"},\"id\":\"azur\",\"name\":\"ocbgoorbteoyb\",\"type\":\"hjxa\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,11 +32,11 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.hcpOpenShiftVersions().list("sgogczhonnxk", com.azure.core.util.Context.NONE); + = manager.hcpOpenShiftVersions().list("igovi", com.azure.core.util.Context.NONE); - Assertions.assertEquals("gnyhmossxkkg", response.iterator().next().properties().channelGroup()); + Assertions.assertEquals("xk", response.iterator().next().properties().channelGroup()); Assertions.assertFalse(response.iterator().next().properties().enabled()); - Assertions.assertEquals(OffsetDateTime.parse("2021-06-21T18:07:23Z"), + Assertions.assertEquals(OffsetDateTime.parse("2021-02-06T07:28:46Z"), response.iterator().next().properties().endOfLifeTimestamp()); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOperatorIdentityRoleSetInnerTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOperatorIdentityRoleSetInnerTests.java index 7ac5332ebe959..d4e8bfc1407f8 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOperatorIdentityRoleSetInnerTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOperatorIdentityRoleSetInnerTests.java @@ -13,20 +13,21 @@ public final class HcpOperatorIdentityRoleSetInnerTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { HcpOperatorIdentityRoleSetInner model = BinaryData.fromString( - "{\"properties\":{\"controlPlaneOperators\":[{\"name\":\"ouwaboekqvkeln\",\"required\":\"Always\",\"roleDefinitions\":[{\"name\":\"bxwyjsflhhcaa\",\"resourceId\":\"n\"},{\"name\":\"ixisxyawjoy\",\"resourceId\":\"qcslyjpkiid\"},{\"name\":\"yexz\",\"resourceId\":\"eli\"}]},{\"name\":\"hnrztfol\",\"required\":\"OnEnablement\",\"roleDefinitions\":[{\"name\":\"xknalaulppg\",\"resourceId\":\"dtpnapnyiropuhp\"},{\"name\":\"gvpgy\",\"resourceId\":\"gqgitxmedjvcsl\"},{\"name\":\"n\",\"resourceId\":\"wwncwzzhxgk\"}]},{\"name\":\"rmgucnap\",\"required\":\"Always\",\"roleDefinitions\":[{\"name\":\"oellwp\",\"resourceId\":\"fdygpfqbuaceopz\"},{\"name\":\"qrhhu\",\"resourceId\":\"opppcqeq\"},{\"name\":\"ol\",\"resourceId\":\"dahzxctobg\"},{\"name\":\"kdmoi\",\"resourceId\":\"postmgrcfbunrm\"}]}],\"dataPlaneOperators\":[{\"name\":\"jhhkxbp\",\"required\":\"Always\",\"roleDefinitions\":[{\"name\":\"mjh\",\"resourceId\":\"xjyngudivk\"},{\"name\":\"tswb\",\"resourceId\":\"qzvszjf\"},{\"name\":\"uvjfdxxive\",\"resourceId\":\"vtcqaqtdo\"},{\"name\":\"mcbxvwvxysl\",\"resourceId\":\"bhsfxob\"}]},{\"name\":\"ytkblmpew\",\"required\":\"OnEnablement\",\"roleDefinitions\":[{\"name\":\"bkrvrnsvshqj\",\"resourceId\":\"hxcr\"},{\"name\":\"bfovasrruvwbhsq\",\"resourceId\":\"sub\"},{\"name\":\"gjb\",\"resourceId\":\"rxbpyb\"}]},{\"name\":\"rfbjf\",\"required\":\"Always\",\"roleDefinitions\":[{\"name\":\"ssotftpv\",\"resourceId\":\"zbexilzznfqqnvw\"}]}]},\"id\":\"qtaruoujmkcjhwq\",\"name\":\"tjrybnwjewgdr\",\"type\":\"ervnaenqpehi\"}") + "{\"properties\":{\"controlPlaneOperators\":[{\"name\":\"itc\",\"required\":\"Always\",\"roleDefinitions\":[{\"name\":\"cktqumiekkezzi\",\"resourceId\":\"hlyfjhdgqgg\"},{\"name\":\"bdunygaeqid\",\"resourceId\":\"qfatpxllrxcyjm\"},{\"name\":\"a\",\"resourceId\":\"su\"}]}],\"dataPlaneOperators\":[{\"name\":\"r\",\"required\":\"OnEnablement\",\"roleDefinitions\":[{\"name\":\"dmjsjqb\",\"resourceId\":\"hhyxxrw\"},{\"name\":\"yc\",\"resourceId\":\"duhpk\"},{\"name\":\"kgymareqnajxqug\",\"resourceId\":\"hky\"},{\"name\":\"ubeddg\",\"resourceId\":\"sofwqmzqalkrmnji\"}]}]},\"id\":\"xacqqudfnbyx\",\"name\":\"aaabjyvayff\",\"type\":\"m\"}") .toObject(HcpOperatorIdentityRoleSetInner.class); - Assertions.assertEquals("ouwaboekqvkeln", model.properties().controlPlaneOperators().get(0).name()); + Assertions.assertEquals("itc", model.properties().controlPlaneOperators().get(0).name()); Assertions.assertEquals(OperatorIdentityRequired.ALWAYS, model.properties().controlPlaneOperators().get(0).required()); - Assertions.assertEquals("bxwyjsflhhcaa", + Assertions.assertEquals("cktqumiekkezzi", model.properties().controlPlaneOperators().get(0).roleDefinitions().get(0).name()); - Assertions.assertEquals("n", + Assertions.assertEquals("hlyfjhdgqgg", model.properties().controlPlaneOperators().get(0).roleDefinitions().get(0).resourceId()); - Assertions.assertEquals("jhhkxbp", model.properties().dataPlaneOperators().get(0).name()); - Assertions.assertEquals(OperatorIdentityRequired.ALWAYS, + Assertions.assertEquals("r", model.properties().dataPlaneOperators().get(0).name()); + Assertions.assertEquals(OperatorIdentityRequired.ON_ENABLEMENT, model.properties().dataPlaneOperators().get(0).required()); - Assertions.assertEquals("mjh", model.properties().dataPlaneOperators().get(0).roleDefinitions().get(0).name()); - Assertions.assertEquals("xjyngudivk", + Assertions.assertEquals("dmjsjqb", + model.properties().dataPlaneOperators().get(0).roleDefinitions().get(0).name()); + Assertions.assertEquals("hhyxxrw", model.properties().dataPlaneOperators().get(0).roleDefinitions().get(0).resourceId()); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOperatorIdentityRoleSetListResultTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOperatorIdentityRoleSetListResultTests.java index 4b21b29d27120..f94a2a47e47aa 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOperatorIdentityRoleSetListResultTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOperatorIdentityRoleSetListResultTests.java @@ -13,24 +13,23 @@ public final class HcpOperatorIdentityRoleSetListResultTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { HcpOperatorIdentityRoleSetListResult model = BinaryData.fromString( - "{\"value\":[{\"properties\":{\"controlPlaneOperators\":[{\"name\":\"zqlveualupjmkhf\",\"required\":\"Always\",\"roleDefinitions\":[{\"name\":\"bcswsrt\",\"resourceId\":\"riplrbpbewtg\"},{\"name\":\"fgb\",\"resourceId\":\"c\"},{\"name\":\"wxzvlvqhjkb\",\"resourceId\":\"gibtnm\"}]},{\"name\":\"iebwwaloayqcgwrt\",\"required\":\"Always\",\"roleDefinitions\":[{\"name\":\"zg\",\"resourceId\":\"yzm\"},{\"name\":\"txon\",\"resourceId\":\"mtsavjcbpwxqp\"},{\"name\":\"rknftguvriuhprwm\",\"resourceId\":\"yvxqtayriwwroy\"}]}],\"dataPlaneOperators\":[{\"name\":\"exrmcqibycnojvk\",\"required\":\"OnEnablement\",\"roleDefinitions\":[{\"name\":\"fqsgzvahapjy\",\"resourceId\":\"hpvgqz\"}]},{\"name\":\"j\",\"required\":\"OnEnablement\",\"roleDefinitions\":[{\"name\":\"djzlmwlx\",\"resourceId\":\"vu\"},{\"name\":\"fhzovawjvzunluth\",\"resourceId\":\"n\"},{\"name\":\"rnxipei\",\"resourceId\":\"pjzu\"}]}]},\"id\":\"jxdultskzbbtdzu\",\"name\":\"veekgpwozuhkfp\",\"type\":\"sjyofdx\"}],\"nextLink\":\"us\"}") + "{\"value\":[{\"properties\":{\"controlPlaneOperators\":[{\"name\":\"ohxcrsbfova\",\"required\":\"OnEnablement\",\"roleDefinitions\":[{\"name\":\"uvwbhsqfs\",\"resourceId\":\"bcgjbirxbp\"}]},{\"name\":\"bsrfbj\",\"required\":\"Always\",\"roleDefinitions\":[{\"name\":\"w\",\"resourceId\":\"sotftpvj\"}]}],\"dataPlaneOperators\":[{\"name\":\"exilzznfqqnvwpmq\",\"required\":\"OnEnablement\",\"roleDefinitions\":[{\"name\":\"uoujmkcjhwqy\",\"resourceId\":\"jrybnwjewgdrjer\"},{\"name\":\"naenqpehindo\",\"resourceId\":\"gmifthnzd\"}]},{\"name\":\"dslgnayqigynduh\",\"required\":\"OnEnablement\",\"roleDefinitions\":[{\"name\":\"qlkth\",\"resourceId\":\"maqolbgycduie\"},{\"name\":\"tgccymvaolpss\",\"resourceId\":\"qlfmmdnbb\"},{\"name\":\"lzpswiydm\",\"resourceId\":\"wyhzdx\"}]},{\"name\":\"sadbz\",\"required\":\"OnEnablement\",\"roleDefinitions\":[{\"name\":\"dfznudaodv\",\"resourceId\":\"zbn\"},{\"name\":\"blylpstdbh\",\"resourceId\":\"xsrz\"},{\"name\":\"zucerscdntnev\",\"resourceId\":\"iwjmygtdssls\"},{\"name\":\"tmweriofzpyq\",\"resourceId\":\"emwabnet\"}]},{\"name\":\"hhszh\",\"required\":\"Always\",\"roleDefinitions\":[{\"name\":\"lvwiwubmwmbesl\",\"resourceId\":\"nkww\"},{\"name\":\"pp\",\"resourceId\":\"flcxoga\"},{\"name\":\"konzmnsik\",\"resourceId\":\"mkqzeqqkdltfzxmh\"},{\"name\":\"v\",\"resourceId\":\"gureodkwobdag\"}]}]},\"id\":\"ibqdxbxwakbogqx\",\"name\":\"dlkzgxhuri\",\"type\":\"lbpodxunk\"},{\"properties\":{\"controlPlaneOperators\":[{\"name\":\"xmubyyntwlrbq\",\"required\":\"Always\",\"roleDefinitions\":[{\"name\":\"ievseotgqrllt\",\"resourceId\":\"u\"},{\"name\":\"lauwzizxbmpgcjef\",\"resourceId\":\"zmuvpbttdumorppx\"},{\"name\":\"bmnzbtbhjpgl\",\"resourceId\":\"fgohdneuelfphs\"},{\"name\":\"yhtozfikdowwqu\",\"resourceId\":\"v\"}]},{\"name\":\"zx\",\"required\":\"OnEnablement\",\"roleDefinitions\":[{\"name\":\"ithhqzon\",\"resourceId\":\"sg\"},{\"name\":\"b\",\"resourceId\":\"c\"}]},{\"name\":\"hfwdsjnkaljutiis\",\"required\":\"OnEnablement\",\"roleDefinitions\":[{\"name\":\"ffgdkz\",\"resourceId\":\"ewkfvhqcrai\"},{\"name\":\"vpnpp\",\"resourceId\":\"uflrwd\"},{\"name\":\"hdlxyjrxsagafcn\",\"resourceId\":\"hgw\"}]}],\"dataPlaneOperators\":[{\"name\":\"pnedgf\",\"required\":\"OnEnablement\",\"roleDefinitions\":[{\"name\":\"kcvqvpke\",\"resourceId\":\"dcvd\"},{\"name\":\"hvoodsotbobzd\",\"resourceId\":\"pcjwv\"},{\"name\":\"hdldwmgxcxrsl\",\"resourceId\":\"mutwuoe\"}]},{\"name\":\"rpkhjwn\",\"required\":\"Always\",\"roleDefinitions\":[{\"name\":\"sluicpdggkzz\",\"resourceId\":\"vmbmp\"},{\"name\":\"xmodf\",\"resourceId\":\"uefywsbpfvmwy\"}]},{\"name\":\"rfouyftaakcpw\",\"required\":\"Always\",\"roleDefinitions\":[{\"name\":\"vqtmnub\",\"resourceId\":\"xkp\"},{\"name\":\"ksmond\",\"resourceId\":\"mquxvypo\"},{\"name\":\"gkopkwhojvpajqgx\",\"resourceId\":\"smocmbq\"}]}]},\"id\":\"vmkcx\",\"name\":\"zapvhelx\",\"type\":\"rgly\"},{\"properties\":{\"controlPlaneOperators\":[{\"name\":\"dckcbc\",\"required\":\"OnEnablement\",\"roleDefinitions\":[{\"name\":\"rjxgciqib\",\"resourceId\":\"hos\"},{\"name\":\"sdqrhzoymibmrq\",\"resourceId\":\"ibahwflus\"},{\"name\":\"dtmhrkwofyyvoqa\",\"resourceId\":\"piexpbtgiw\"},{\"name\":\"wo\",\"resourceId\":\"nwashrtd\"}]}],\"dataPlaneOperators\":[{\"name\":\"cnqxwbpokulpi\",\"required\":\"Always\",\"roleDefinitions\":[{\"name\":\"aasipqi\",\"resourceId\":\"obyu\"},{\"name\":\"erpqlpqwcciuqg\",\"resourceId\":\"dbutauvfbtkuwhh\"}]},{\"name\":\"hykojoxafnndlpic\",\"required\":\"Always\",\"roleDefinitions\":[{\"name\":\"ymkcdyhb\",\"resourceId\":\"kkpwdreqnovvq\"}]},{\"name\":\"ovljxywsu\",\"required\":\"OnEnablement\",\"roleDefinitions\":[{\"name\":\"rsndsytgadgvra\",\"resourceId\":\"aeneqnzarrwl\"}]}]},\"id\":\"uijfqk\",\"name\":\"cewiipfpub\",\"type\":\"ibwwiftohqkv\"},{\"properties\":{\"controlPlaneOperators\":[{\"name\":\"ksgplsa\",\"required\":\"OnEnablement\",\"roleDefinitions\":[{\"name\":\"n\",\"resourceId\":\"synljphuopxodl\"}]},{\"name\":\"iyntorzihle\",\"required\":\"Always\",\"roleDefinitions\":[{\"name\":\"swsrms\",\"resourceId\":\"yzrpzbchckqqzq\"},{\"name\":\"ox\",\"resourceId\":\"ysuiizynkedya\"},{\"name\":\"rwyhqmibzyhwitsm\",\"resourceId\":\"pyy\"}]},{\"name\":\"pcdpumnz\",\"required\":\"Always\",\"roleDefinitions\":[{\"name\":\"z\",\"resourceId\":\"mabiknsorgjhxb\"}]},{\"name\":\"dtlwwrlkd\",\"required\":\"Always\",\"roleDefinitions\":[{\"name\":\"cvokotllxdyhg\",\"resourceId\":\"y\"},{\"name\":\"cogjltdtbn\",\"resourceId\":\"hadoocrk\"},{\"name\":\"cikhnv\",\"resourceId\":\"amqgxqquezikyw\"},{\"name\":\"gxk\",\"resourceId\":\"lla\"}]}],\"dataPlaneOperators\":[{\"name\":\"elwuipi\",\"required\":\"OnEnablement\",\"roleDefinitions\":[{\"name\":\"zkzivgvvcnay\",\"resourceId\":\"hyrnxxmu\"},{\"name\":\"edndr\",\"resourceId\":\"v\"}]},{\"name\":\"tkwqqtchealm\",\"required\":\"Always\",\"roleDefinitions\":[{\"name\":\"d\",\"resourceId\":\"aygdvwvgpioh\"},{\"name\":\"wxrt\",\"resourceId\":\"udxepxgyqagv\"},{\"name\":\"vmnpkukghimdblx\",\"resourceId\":\"wi\"}]},{\"name\":\"fnjhfjxwmszkkfo\",\"required\":\"Always\",\"roleDefinitions\":[{\"name\":\"yfkzik\",\"resourceId\":\"jawneaiv\"},{\"name\":\"wczelpci\",\"resourceId\":\"elsfeaen\"},{\"name\":\"abfatkl\",\"resourceId\":\"dxbjhwuaanozj\"}]}]},\"id\":\"ph\",\"name\":\"oulpjrv\",\"type\":\"ag\"}],\"nextLink\":\"vimjwos\"}") .toObject(HcpOperatorIdentityRoleSetListResult.class); - Assertions.assertEquals("zqlveualupjmkhf", - model.value().get(0).properties().controlPlaneOperators().get(0).name()); - Assertions.assertEquals(OperatorIdentityRequired.ALWAYS, + Assertions.assertEquals("ohxcrsbfova", model.value().get(0).properties().controlPlaneOperators().get(0).name()); + Assertions.assertEquals(OperatorIdentityRequired.ON_ENABLEMENT, model.value().get(0).properties().controlPlaneOperators().get(0).required()); - Assertions.assertEquals("bcswsrt", + Assertions.assertEquals("uvwbhsqfs", model.value().get(0).properties().controlPlaneOperators().get(0).roleDefinitions().get(0).name()); - Assertions.assertEquals("riplrbpbewtg", + Assertions.assertEquals("bcgjbirxbp", model.value().get(0).properties().controlPlaneOperators().get(0).roleDefinitions().get(0).resourceId()); - Assertions.assertEquals("exrmcqibycnojvk", + Assertions.assertEquals("exilzznfqqnvwpmq", model.value().get(0).properties().dataPlaneOperators().get(0).name()); Assertions.assertEquals(OperatorIdentityRequired.ON_ENABLEMENT, model.value().get(0).properties().dataPlaneOperators().get(0).required()); - Assertions.assertEquals("fqsgzvahapjy", + Assertions.assertEquals("uoujmkcjhwqy", model.value().get(0).properties().dataPlaneOperators().get(0).roleDefinitions().get(0).name()); - Assertions.assertEquals("hpvgqz", + Assertions.assertEquals("jrybnwjewgdrjer", model.value().get(0).properties().dataPlaneOperators().get(0).roleDefinitions().get(0).resourceId()); - Assertions.assertEquals("us", model.nextLink()); + Assertions.assertEquals("vimjwos", model.nextLink()); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOperatorIdentityRoleSetPropertiesTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOperatorIdentityRoleSetPropertiesTests.java index 252053fb83f3a..55c32bd5b8ba8 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOperatorIdentityRoleSetPropertiesTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOperatorIdentityRoleSetPropertiesTests.java @@ -13,17 +13,17 @@ public final class HcpOperatorIdentityRoleSetPropertiesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { HcpOperatorIdentityRoleSetProperties model = BinaryData.fromString( - "{\"controlPlaneOperators\":[{\"name\":\"oygmift\",\"required\":\"OnEnablement\",\"roleDefinitions\":[{\"name\":\"d\",\"resourceId\":\"dslgnayqigynduh\"},{\"name\":\"vhqlkthumaqo\",\"resourceId\":\"bgycduiertgccym\"}]}],\"dataPlaneOperators\":[{\"name\":\"olpsslqlf\",\"required\":\"OnEnablement\",\"roleDefinitions\":[{\"name\":\"n\",\"resourceId\":\"bglzpswi\"},{\"name\":\"d\",\"resourceId\":\"cwyhzdxssa\"},{\"name\":\"bzmnvdfznud\",\"resourceId\":\"od\"}]},{\"name\":\"xzb\",\"required\":\"OnEnablement\",\"roleDefinitions\":[{\"name\":\"lylpstdb\",\"resourceId\":\"hxsrzdzucersc\"},{\"name\":\"ntnev\",\"resourceId\":\"iwjmygtdssls\"},{\"name\":\"tmweriofzpyq\",\"resourceId\":\"emwabnet\"}]}]}") + "{\"controlPlaneOperators\":[{\"name\":\"rtuzqogs\",\"required\":\"OnEnablement\",\"roleDefinitions\":[{\"name\":\"evfdnwnwm\",\"resourceId\":\"wzsyyceuzs\"},{\"name\":\"i\",\"resourceId\":\"judpfrxt\"}]},{\"name\":\"thzvaytdwkqbrqu\",\"required\":\"Always\",\"roleDefinitions\":[{\"name\":\"xhexiilivpdti\",\"resourceId\":\"r\"},{\"name\":\"tdqoaxoruzfgsq\",\"resourceId\":\"yfxrx\"},{\"name\":\"l\",\"resourceId\":\"ptramxj\"}]}],\"dataPlaneOperators\":[{\"name\":\"wlwnwxuqlcv\",\"required\":\"Always\",\"roleDefinitions\":[{\"name\":\"patdooaojkniodko\",\"resourceId\":\"ebwnujhe\"},{\"name\":\"msbvdkcrodtjinf\",\"resourceId\":\"jlfltkacjvefkdlf\"},{\"name\":\"akggkfpag\",\"resourceId\":\"owpulpq\"},{\"name\":\"lyls\",\"resourceId\":\"xkqjnsjervt\"}]}]}") .toObject(HcpOperatorIdentityRoleSetProperties.class); - Assertions.assertEquals("oygmift", model.controlPlaneOperators().get(0).name()); + Assertions.assertEquals("rtuzqogs", model.controlPlaneOperators().get(0).name()); Assertions.assertEquals(OperatorIdentityRequired.ON_ENABLEMENT, model.controlPlaneOperators().get(0).required()); - Assertions.assertEquals("d", model.controlPlaneOperators().get(0).roleDefinitions().get(0).name()); - Assertions.assertEquals("dslgnayqigynduh", + Assertions.assertEquals("evfdnwnwm", model.controlPlaneOperators().get(0).roleDefinitions().get(0).name()); + Assertions.assertEquals("wzsyyceuzs", model.controlPlaneOperators().get(0).roleDefinitions().get(0).resourceId()); - Assertions.assertEquals("olpsslqlf", model.dataPlaneOperators().get(0).name()); - Assertions.assertEquals(OperatorIdentityRequired.ON_ENABLEMENT, model.dataPlaneOperators().get(0).required()); - Assertions.assertEquals("n", model.dataPlaneOperators().get(0).roleDefinitions().get(0).name()); - Assertions.assertEquals("bglzpswi", model.dataPlaneOperators().get(0).roleDefinitions().get(0).resourceId()); + Assertions.assertEquals("wlwnwxuqlcv", model.dataPlaneOperators().get(0).name()); + Assertions.assertEquals(OperatorIdentityRequired.ALWAYS, model.dataPlaneOperators().get(0).required()); + Assertions.assertEquals("patdooaojkniodko", model.dataPlaneOperators().get(0).roleDefinitions().get(0).name()); + Assertions.assertEquals("ebwnujhe", model.dataPlaneOperators().get(0).roleDefinitions().get(0).resourceId()); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOperatorIdentityRoleSetsGetWithResponseMockTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOperatorIdentityRoleSetsGetWithResponseMockTests.java index d54b17a13b340..c30e6e65d5b8c 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOperatorIdentityRoleSetsGetWithResponseMockTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOperatorIdentityRoleSetsGetWithResponseMockTests.java @@ -22,7 +22,7 @@ public final class HcpOperatorIdentityRoleSetsGetWithResponseMockTests { @Test public void testGetWithResponse() throws Exception { String responseStr - = "{\"properties\":{\"controlPlaneOperators\":[{\"name\":\"mfwdgzxu\",\"required\":\"Always\",\"roleDefinitions\":[{\"name\":\"vpa\",\"resourceId\":\"rsre\"}]},{\"name\":\"zvxurisjnhny\",\"required\":\"OnEnablement\",\"roleDefinitions\":[{\"name\":\"fq\",\"resourceId\":\"zgxmr\"},{\"name\":\"ublwpcesutrg\",\"resourceId\":\"upauut\"}]}],\"dataPlaneOperators\":[{\"name\":\"oqh\",\"required\":\"Always\",\"roleDefinitions\":[{\"name\":\"jqgwzp\",\"resourceId\":\"fqntcyp\"},{\"name\":\"xjvfoimwksl\",\"resourceId\":\"rcizjxvyd\"}]},{\"name\":\"ceacvlhvygdy\",\"required\":\"Always\",\"roleDefinitions\":[{\"name\":\"mrtwna\",\"resourceId\":\"jslb\"},{\"name\":\"wkojgcyztsfmzn\",\"resourceId\":\"aeqphchqnr\"},{\"name\":\"rpxeh\",\"resourceId\":\"wrykqgai\"}]}]},\"id\":\"viklb\",\"name\":\"dvk\",\"type\":\"bejdznxcv\"}"; + = "{\"properties\":{\"controlPlaneOperators\":[{\"name\":\"vjlboxqvk\",\"required\":\"OnEnablement\",\"roleDefinitions\":[{\"name\":\"xhom\",\"resourceId\":\"ynhdwdigum\"}]},{\"name\":\"nraauzz\",\"required\":\"Always\",\"roleDefinitions\":[{\"name\":\"a\",\"resourceId\":\"ysdzhez\"},{\"name\":\"wva\",\"resourceId\":\"qyuvvfonkp\"},{\"name\":\"hqyikvy\",\"resourceId\":\"auy\"},{\"name\":\"vluwmncsttij\",\"resourceId\":\"y\"}]},{\"name\":\"vpo\",\"required\":\"Always\",\"roleDefinitions\":[{\"name\":\"sgsgbdhu\",\"resourceId\":\"qgnjdgkynscli\"}]},{\"name\":\"hzvhxnkomtkubo\",\"required\":\"Always\",\"roleDefinitions\":[{\"name\":\"nvdxzxhihfrbbc\",\"resourceId\":\"vqagtltdhlf\"},{\"name\":\"qojpy\",\"resourceId\":\"vgtrdcnifmzzs\"}]}],\"dataPlaneOperators\":[{\"name\":\"m\",\"required\":\"Always\",\"roleDefinitions\":[{\"name\":\"ysuxmprafwgck\",\"resourceId\":\"ocxvdfffwafqr\"},{\"name\":\"udaspavehh\",\"resourceId\":\"vkbunzozudh\"},{\"name\":\"xg\",\"resourceId\":\"moy\"},{\"name\":\"cdyuibhmfdnbzyd\",\"resourceId\":\"f\"}]},{\"name\":\"fcjnaeoisrvhmgor\",\"required\":\"OnEnablement\",\"roleDefinitions\":[{\"name\":\"kiscvwmzhwpl\",\"resourceId\":\"faxvxil\"},{\"name\":\"btgn\",\"resourceId\":\"nzeyqxtjj\"},{\"name\":\"zqlqhyc\",\"resourceId\":\"vodggxdbee\"}]},{\"name\":\"mieknlraria\",\"required\":\"OnEnablement\",\"roleDefinitions\":[{\"name\":\"uagydwqfbylyrf\",\"resourceId\":\"iagtc\"},{\"name\":\"jocqwogfnzjvusf\",\"resourceId\":\"ld\"},{\"name\":\"ozuxylfsbtkadpys\",\"resourceId\":\"wn\"},{\"name\":\"tgkbugrjqctojc\",\"resourceId\":\"isofieypefojyqd\"}]},{\"name\":\"cuplcplcwkhih\",\"required\":\"OnEnablement\",\"roleDefinitions\":[{\"name\":\"hzdsqtzbsrgnow\",\"resourceId\":\"jhf\"},{\"name\":\"mvec\",\"resourceId\":\"ctxmwoteyowcluq\"},{\"name\":\"vekqvgqo\",\"resourceId\":\"wifzmp\"}]}]},\"id\":\"yivqikfxcvhrfsp\",\"name\":\"uagrttikteusqc\",\"type\":\"kvyklxubyjaffmm\"}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -32,22 +32,22 @@ public void testGetWithResponse() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); HcpOperatorIdentityRoleSet response = manager.hcpOperatorIdentityRoleSets() - .getWithResponse("h", "yuspskas", com.azure.core.util.Context.NONE) + .getWithResponse("iayz", "iykhy", com.azure.core.util.Context.NONE) .getValue(); - Assertions.assertEquals("mfwdgzxu", response.properties().controlPlaneOperators().get(0).name()); - Assertions.assertEquals(OperatorIdentityRequired.ALWAYS, + Assertions.assertEquals("vjlboxqvk", response.properties().controlPlaneOperators().get(0).name()); + Assertions.assertEquals(OperatorIdentityRequired.ON_ENABLEMENT, response.properties().controlPlaneOperators().get(0).required()); - Assertions.assertEquals("vpa", + Assertions.assertEquals("xhom", response.properties().controlPlaneOperators().get(0).roleDefinitions().get(0).name()); - Assertions.assertEquals("rsre", + Assertions.assertEquals("ynhdwdigum", response.properties().controlPlaneOperators().get(0).roleDefinitions().get(0).resourceId()); - Assertions.assertEquals("oqh", response.properties().dataPlaneOperators().get(0).name()); + Assertions.assertEquals("m", response.properties().dataPlaneOperators().get(0).name()); Assertions.assertEquals(OperatorIdentityRequired.ALWAYS, response.properties().dataPlaneOperators().get(0).required()); - Assertions.assertEquals("jqgwzp", + Assertions.assertEquals("ysuxmprafwgck", response.properties().dataPlaneOperators().get(0).roleDefinitions().get(0).name()); - Assertions.assertEquals("fqntcyp", + Assertions.assertEquals("ocxvdfffwafqr", response.properties().dataPlaneOperators().get(0).roleDefinitions().get(0).resourceId()); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOperatorIdentityRoleSetsListMockTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOperatorIdentityRoleSetsListMockTests.java index 710ac54de84f6..ae7e3a823b13a 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOperatorIdentityRoleSetsListMockTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/HcpOperatorIdentityRoleSetsListMockTests.java @@ -23,7 +23,7 @@ public final class HcpOperatorIdentityRoleSetsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"properties\":{\"controlPlaneOperators\":[{\"name\":\"ybycnunvj\",\"required\":\"OnEnablement\",\"roleDefinitions\":[{\"name\":\"kfawnopqgikyz\",\"resourceId\":\"rtxdyuxzejnt\"}]},{\"name\":\"sewgioilqukr\",\"required\":\"OnEnablement\",\"roleDefinitions\":[{\"name\":\"tqmieox\",\"resourceId\":\"rgguf\"},{\"name\":\"yaomtb\",\"resourceId\":\"hhavgrvkffovjz\"},{\"name\":\"pjbi\",\"resourceId\":\"gjmfxumvfcl\"}]}],\"dataPlaneOperators\":[{\"name\":\"ovwxnbkfezzxsc\",\"required\":\"OnEnablement\",\"roleDefinitions\":[{\"name\":\"zdgiruj\",\"resourceId\":\"zbomvzzbtdcqvpni\"},{\"name\":\"ujviylwdshfs\",\"resourceId\":\"n\"},{\"name\":\"bgye\",\"resourceId\":\"rymsgaojfmw\"}]}]},\"id\":\"otmrfhir\",\"name\":\"tymoxoftp\",\"type\":\"piwyczuhxacpqjl\"}]}"; + = "{\"value\":[{\"properties\":{\"controlPlaneOperators\":[{\"name\":\"mywwtkgkxnyed\",\"required\":\"Always\",\"roleDefinitions\":[{\"name\":\"yvudtjuewbci\",\"resourceId\":\"xuuwhcj\"},{\"name\":\"xccybvpa\",\"resourceId\":\"akkud\"},{\"name\":\"px\",\"resourceId\":\"wjplma\"}]},{\"name\":\"stcyohpfkyrkdbd\",\"required\":\"OnEnablement\",\"roleDefinitions\":[{\"name\":\"gsj\",\"resourceId\":\"mnwqj\"},{\"name\":\"obaiyhddviaceg\",\"resourceId\":\"n\"},{\"name\":\"ntfpmvmemfnc\",\"resourceId\":\"dwvvba\"}]},{\"name\":\"xlllchp\",\"required\":\"Always\",\"roleDefinitions\":[{\"name\":\"zevwrdnhfukuv\",\"resourceId\":\"jcswsmys\"},{\"name\":\"uluqypfc\",\"resourceId\":\"lerchpq\"}]},{\"name\":\"mfpjbabw\",\"required\":\"Always\",\"roleDefinitions\":[{\"name\":\"cxsspuunnoxyh\",\"resourceId\":\"xgqddrih\"},{\"name\":\"fhoqca\",\"resourceId\":\"ewda\"},{\"name\":\"mdjvlpj\",\"resourceId\":\"xkzb\"},{\"name\":\"msgeivsiykzk\",\"resourceId\":\"ncj\"}]}],\"dataPlaneOperators\":[{\"name\":\"onbzoggculapzwy\",\"required\":\"OnEnablement\",\"roleDefinitions\":[{\"name\":\"ogtqxepnylbf\",\"resourceId\":\"ajlyjtlvofqzhv\"},{\"name\":\"cib\",\"resourceId\":\"fmo\"},{\"name\":\"uxrkjp\",\"resourceId\":\"dwxf\"},{\"name\":\"wiivwzjbhyzsx\",\"resourceId\":\"rkambt\"}]},{\"name\":\"negvmnvuqe\",\"required\":\"Always\",\"roleDefinitions\":[{\"name\":\"dspastjbkkdmfl\",\"resourceId\":\"est\"}]},{\"name\":\"jlxr\",\"required\":\"OnEnablement\",\"roleDefinitions\":[{\"name\":\"ozapeew\",\"resourceId\":\"hpxlktwkuziycs\"},{\"name\":\"evufuztck\",\"resourceId\":\"yhjtqedcgzu\"},{\"name\":\"wmmrq\",\"resourceId\":\"zrrjvpgly\"},{\"name\":\"zgkrvqe\",\"resourceId\":\"vtoepryutnw\"}]},{\"name\":\"tpzdmovzvfvaawzq\",\"required\":\"Always\",\"roleDefinitions\":[{\"name\":\"lgzurig\",\"resourceId\":\"aecxndtic\"}]}]},\"id\":\"pvz\",\"name\":\"lqtmldgxob\",\"type\":\"irclnpk\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); @@ -33,15 +33,15 @@ public void testList() throws Exception { new AzureProfile("", "", AzureCloud.AZURE_PUBLIC_CLOUD)); PagedIterable response - = manager.hcpOperatorIdentityRoleSets().list("bshrnsvbuswd", com.azure.core.util.Context.NONE); + = manager.hcpOperatorIdentityRoleSets().list("vvjgslor", com.azure.core.util.Context.NONE); - Assertions.assertEquals("ybycnunvj", + Assertions.assertEquals("mywwtkgkxnyed", response.iterator().next().properties().controlPlaneOperators().get(0).name()); - Assertions.assertEquals(OperatorIdentityRequired.ON_ENABLEMENT, + Assertions.assertEquals(OperatorIdentityRequired.ALWAYS, response.iterator().next().properties().controlPlaneOperators().get(0).required()); - Assertions.assertEquals("kfawnopqgikyz", + Assertions.assertEquals("yvudtjuewbci", response.iterator().next().properties().controlPlaneOperators().get(0).roleDefinitions().get(0).name()); - Assertions.assertEquals("rtxdyuxzejnt", + Assertions.assertEquals("xuuwhcj", response.iterator() .next() .properties() @@ -50,13 +50,13 @@ public void testList() throws Exception { .roleDefinitions() .get(0) .resourceId()); - Assertions.assertEquals("ovwxnbkfezzxsc", + Assertions.assertEquals("onbzoggculapzwy", response.iterator().next().properties().dataPlaneOperators().get(0).name()); Assertions.assertEquals(OperatorIdentityRequired.ON_ENABLEMENT, response.iterator().next().properties().dataPlaneOperators().get(0).required()); - Assertions.assertEquals("zdgiruj", + Assertions.assertEquals("ogtqxepnylbf", response.iterator().next().properties().dataPlaneOperators().get(0).roleDefinitions().get(0).name()); - Assertions.assertEquals("zbomvzzbtdcqvpni", + Assertions.assertEquals("ajlyjtlvofqzhv", response.iterator().next().properties().dataPlaneOperators().get(0).roleDefinitions().get(0).resourceId()); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ImageDigestMirrorTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ImageDigestMirrorTests.java index aea87bd69e4c2..86f5f12a98a0d 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ImageDigestMirrorTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ImageDigestMirrorTests.java @@ -12,19 +12,18 @@ public final class ImageDigestMirrorTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - ImageDigestMirror model - = BinaryData.fromString("{\"source\":\"ukdkexxppofmxa\",\"mirrors\":[\"fjpgddtocjjxhvp\"]}") - .toObject(ImageDigestMirror.class); - Assertions.assertEquals("ukdkexxppofmxa", model.source()); - Assertions.assertEquals("fjpgddtocjjxhvp", model.mirrors().get(0)); + ImageDigestMirror model = BinaryData.fromString("{\"source\":\"gmaajrm\",\"mirrors\":[\"jwzrl\",\"vmclw\"]}") + .toObject(ImageDigestMirror.class); + Assertions.assertEquals("gmaajrm", model.source()); + Assertions.assertEquals("jwzrl", model.mirrors().get(0)); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { ImageDigestMirror model - = new ImageDigestMirror().withSource("ukdkexxppofmxa").withMirrors(Arrays.asList("fjpgddtocjjxhvp")); + = new ImageDigestMirror().withSource("gmaajrm").withMirrors(Arrays.asList("jwzrl", "vmclw")); model = BinaryData.fromObject(model).toObject(ImageDigestMirror.class); - Assertions.assertEquals("ukdkexxppofmxa", model.source()); - Assertions.assertEquals("fjpgddtocjjxhvp", model.mirrors().get(0)); + Assertions.assertEquals("gmaajrm", model.source()); + Assertions.assertEquals("jwzrl", model.mirrors().get(0)); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/KmsKeyTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/KmsKeyTests.java index 012469722113a..614fd9c2fed56 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/KmsKeyTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/KmsKeyTests.java @@ -11,17 +11,16 @@ public final class KmsKeyTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - KmsKey model - = BinaryData.fromString("{\"name\":\"ijcoejctb\",\"version\":\"aqsqsycbkbfk\"}").toObject(KmsKey.class); - Assertions.assertEquals("ijcoejctb", model.name()); - Assertions.assertEquals("aqsqsycbkbfk", model.version()); + KmsKey model = BinaryData.fromString("{\"name\":\"onpimexgstxg\",\"version\":\"po\"}").toObject(KmsKey.class); + Assertions.assertEquals("onpimexgstxg", model.name()); + Assertions.assertEquals("po", model.version()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - KmsKey model = new KmsKey().withName("ijcoejctb").withVersion("aqsqsycbkbfk"); + KmsKey model = new KmsKey().withName("onpimexgstxg").withVersion("po"); model = BinaryData.fromObject(model).toObject(KmsKey.class); - Assertions.assertEquals("ijcoejctb", model.name()); - Assertions.assertEquals("aqsqsycbkbfk", model.version()); + Assertions.assertEquals("onpimexgstxg", model.name()); + Assertions.assertEquals("po", model.version()); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ManagedServiceIdentityTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ManagedServiceIdentityTests.java index f1f7bbc714dab..d9177bf3ca13c 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ManagedServiceIdentityTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ManagedServiceIdentityTests.java @@ -16,17 +16,17 @@ public final class ManagedServiceIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { ManagedServiceIdentity model = BinaryData.fromString( - "{\"principalId\":\"hrzayvvtpgvdf\",\"tenantId\":\"otkftutqxlngx\",\"type\":\"SystemAssigned\",\"userAssignedIdentities\":{\"hjybigehoqfbo\":{\"principalId\":\"gnxkrxdqmidtth\",\"clientId\":\"vqdra\"}}}") + "{\"principalId\":\"gdtopbobjogh\",\"tenantId\":\"w\",\"type\":\"None\",\"userAssignedIdentities\":{\"efgugnxk\":{\"principalId\":\"hrzayvvtpgvdf\",\"clientId\":\"otkftutqxlngx\"}}}") .toObject(ManagedServiceIdentity.class); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.type()); + Assertions.assertEquals(ManagedServiceIdentityType.NONE, model.type()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - ManagedServiceIdentity model = new ManagedServiceIdentity().withType(ManagedServiceIdentityType.SYSTEM_ASSIGNED) - .withUserAssignedIdentities(mapOf("hjybigehoqfbo", new UserAssignedIdentity())); + ManagedServiceIdentity model = new ManagedServiceIdentity().withType(ManagedServiceIdentityType.NONE) + .withUserAssignedIdentities(mapOf("efgugnxk", new UserAssignedIdentity())); model = BinaryData.fromObject(model).toObject(ManagedServiceIdentity.class); - Assertions.assertEquals(ManagedServiceIdentityType.SYSTEM_ASSIGNED, model.type()); + Assertions.assertEquals(ManagedServiceIdentityType.NONE, model.type()); } // Use "Map.of" if available diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NetworkProfileTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NetworkProfileTests.java index 43b19ec33a963..b60f825882a56 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NetworkProfileTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NetworkProfileTests.java @@ -13,10 +13,10 @@ public final class NetworkProfileTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NetworkProfile model = BinaryData.fromString( - "{\"networkType\":\"OVNKubernetes\",\"podCidr\":\"yqkgfg\",\"serviceCidr\":\"madgakeqsrxyb\",\"machineCidr\":\"qedqytbciqfoufl\",\"hostPrefix\":1004345628}") + "{\"networkType\":\"OVNKubernetes\",\"podCidr\":\"kgfg\",\"serviceCidr\":\"madgakeqsrxyb\",\"machineCidr\":\"qedqytbciqfoufl\",\"hostPrefix\":1004345628}") .toObject(NetworkProfile.class); Assertions.assertEquals(NetworkType.OVNKUBERNETES, model.networkType()); - Assertions.assertEquals("yqkgfg", model.podCIDR()); + Assertions.assertEquals("kgfg", model.podCIDR()); Assertions.assertEquals("madgakeqsrxyb", model.serviceCIDR()); Assertions.assertEquals("qedqytbciqfoufl", model.machineCIDR()); Assertions.assertEquals(1004345628, model.hostPrefix()); @@ -25,13 +25,13 @@ public void testDeserialize() throws Exception { @org.junit.jupiter.api.Test public void testSerialize() throws Exception { NetworkProfile model = new NetworkProfile().withNetworkType(NetworkType.OVNKUBERNETES) - .withPodCIDR("yqkgfg") + .withPodCIDR("kgfg") .withServiceCIDR("madgakeqsrxyb") .withMachineCIDR("qedqytbciqfoufl") .withHostPrefix(1004345628); model = BinaryData.fromObject(model).toObject(NetworkProfile.class); Assertions.assertEquals(NetworkType.OVNKUBERNETES, model.networkType()); - Assertions.assertEquals("yqkgfg", model.podCIDR()); + Assertions.assertEquals("kgfg", model.podCIDR()); Assertions.assertEquals("madgakeqsrxyb", model.serviceCIDR()); Assertions.assertEquals("qedqytbciqfoufl", model.machineCIDR()); Assertions.assertEquals(1004345628, model.hostPrefix()); diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolActiveVersionTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolActiveVersionTests.java new file mode 100644 index 0000000000000..7521143bb661c --- /dev/null +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolActiveVersionTests.java @@ -0,0 +1,16 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.redhatopenshifthcp.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.redhatopenshifthcp.models.NodePoolActiveVersion; + +public final class NodePoolActiveVersionTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + NodePoolActiveVersion model + = BinaryData.fromString("{\"version\":\"zwtruwiqzbqjvsov\"}").toObject(NodePoolActiveVersion.class); + } +} diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolAutoScalingTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolAutoScalingTests.java index ce78e9989ef91..47660ac9910b3 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolAutoScalingTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolAutoScalingTests.java @@ -12,16 +12,16 @@ public final class NodePoolAutoScalingTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NodePoolAutoScaling model - = BinaryData.fromString("{\"min\":2073255975,\"max\":334875262}").toObject(NodePoolAutoScaling.class); - Assertions.assertEquals(2073255975, model.min()); - Assertions.assertEquals(334875262, model.max()); + = BinaryData.fromString("{\"min\":1852056449,\"max\":427242708}").toObject(NodePoolAutoScaling.class); + Assertions.assertEquals(1852056449, model.min()); + Assertions.assertEquals(427242708, model.max()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - NodePoolAutoScaling model = new NodePoolAutoScaling().withMin(2073255975).withMax(334875262); + NodePoolAutoScaling model = new NodePoolAutoScaling().withMin(1852056449).withMax(427242708); model = BinaryData.fromObject(model).toObject(NodePoolAutoScaling.class); - Assertions.assertEquals(2073255975, model.min()); - Assertions.assertEquals(334875262, model.max()); + Assertions.assertEquals(1852056449, model.min()); + Assertions.assertEquals(427242708, model.max()); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolPlatformProfileTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolPlatformProfileTests.java index 7e2d11b4f5d6e..e7fb40ea5b46e 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolPlatformProfileTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolPlatformProfileTests.java @@ -15,36 +15,36 @@ public final class NodePoolPlatformProfileTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { NodePoolPlatformProfile model = BinaryData.fromString( - "{\"subnetId\":\"hy\",\"vmSize\":\"ltrpmopj\",\"enableEncryptionAtHost\":false,\"osDisk\":{\"sizeGiB\":61877127,\"diskStorageAccountType\":\"Premium_LRS\",\"encryptionSetId\":\"hfuiuaodsfc\",\"diskType\":\"Managed\"},\"availabilityZone\":\"odpuozmyzydag\"}") + "{\"subnetId\":\"noae\",\"vmSize\":\"pfhyhl\",\"enableEncryptionAtHost\":false,\"osDisk\":{\"sizeGiB\":2119975108,\"diskStorageAccountType\":\"Premium_LRS\",\"encryptionSetId\":\"matuok\",\"diskType\":\"Managed\"},\"availabilityZone\":\"iuaod\"}") .toObject(NodePoolPlatformProfile.class); - Assertions.assertEquals("hy", model.subnetId()); - Assertions.assertEquals("ltrpmopj", model.vmSize()); + Assertions.assertEquals("noae", model.subnetId()); + Assertions.assertEquals("pfhyhl", model.vmSize()); Assertions.assertFalse(model.enableEncryptionAtHost()); - Assertions.assertEquals(61877127, model.osDisk().sizeGiB()); + Assertions.assertEquals(2119975108, model.osDisk().sizeGiB()); Assertions.assertEquals(DiskStorageAccountType.PREMIUM_LRS, model.osDisk().diskStorageAccountType()); - Assertions.assertEquals("hfuiuaodsfc", model.osDisk().encryptionSetId()); + Assertions.assertEquals("matuok", model.osDisk().encryptionSetId()); Assertions.assertEquals(OsDiskType.MANAGED, model.osDisk().diskType()); - Assertions.assertEquals("odpuozmyzydag", model.availabilityZone()); + Assertions.assertEquals("iuaod", model.availabilityZone()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - NodePoolPlatformProfile model = new NodePoolPlatformProfile().withSubnetId("hy") - .withVmSize("ltrpmopj") + NodePoolPlatformProfile model = new NodePoolPlatformProfile().withSubnetId("noae") + .withVmSize("pfhyhl") .withEnableEncryptionAtHost(false) - .withOsDisk(new OsDiskProfile().withSizeGiB(61877127) + .withOsDisk(new OsDiskProfile().withSizeGiB(2119975108) .withDiskStorageAccountType(DiskStorageAccountType.PREMIUM_LRS) - .withEncryptionSetId("hfuiuaodsfc") + .withEncryptionSetId("matuok") .withDiskType(OsDiskType.MANAGED)) - .withAvailabilityZone("odpuozmyzydag"); + .withAvailabilityZone("iuaod"); model = BinaryData.fromObject(model).toObject(NodePoolPlatformProfile.class); - Assertions.assertEquals("hy", model.subnetId()); - Assertions.assertEquals("ltrpmopj", model.vmSize()); + Assertions.assertEquals("noae", model.subnetId()); + Assertions.assertEquals("pfhyhl", model.vmSize()); Assertions.assertFalse(model.enableEncryptionAtHost()); - Assertions.assertEquals(61877127, model.osDisk().sizeGiB()); + Assertions.assertEquals(2119975108, model.osDisk().sizeGiB()); Assertions.assertEquals(DiskStorageAccountType.PREMIUM_LRS, model.osDisk().diskStorageAccountType()); - Assertions.assertEquals("hfuiuaodsfc", model.osDisk().encryptionSetId()); + Assertions.assertEquals("matuok", model.osDisk().encryptionSetId()); Assertions.assertEquals(OsDiskType.MANAGED, model.osDisk().diskType()); - Assertions.assertEquals("odpuozmyzydag", model.availabilityZone()); + Assertions.assertEquals("iuaod", model.availabilityZone()); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolResourceStatusTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolResourceStatusTests.java new file mode 100644 index 0000000000000..343e76a5bb854 --- /dev/null +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolResourceStatusTests.java @@ -0,0 +1,17 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. +// Code generated by Microsoft (R) TypeSpec Code Generator. + +package com.azure.resourcemanager.redhatopenshifthcp.generated; + +import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.redhatopenshifthcp.models.NodePoolResourceStatus; + +public final class NodePoolResourceStatusTests { + @org.junit.jupiter.api.Test + public void testDeserialize() throws Exception { + NodePoolResourceStatus model = BinaryData.fromString( + "{\"conditions\":[{\"type\":\"Progressing\",\"status\":\"Unknown\",\"lastTransitionTime\":\"2021-01-06T03:50:02Z\",\"reason\":\"yocf\",\"message\":\"fksymddystki\"},{\"type\":\"Available\",\"status\":\"Unknown\",\"lastTransitionTime\":\"2021-01-17T08:36:03Z\",\"reason\":\"qyud\",\"message\":\"o\"},{\"type\":\"Progressing\",\"status\":\"False\",\"lastTransitionTime\":\"2021-10-12T18:50Z\",\"reason\":\"b\",\"message\":\"oczvy\"},{\"type\":\"Available\",\"status\":\"True\",\"lastTransitionTime\":\"2021-01-23T09:13:04Z\",\"reason\":\"vkd\",\"message\":\"jsllrmv\"}],\"activeVersions\":[{\"version\":\"watkpnpulexxb\"}]}") + .toObject(NodePoolResourceStatus.class); + } +} diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolVersionProfileTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolVersionProfileTests.java index 64366dfa69f6a..0d6b9366ff971 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolVersionProfileTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/NodePoolVersionProfileTests.java @@ -11,17 +11,19 @@ public final class NodePoolVersionProfileTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - NodePoolVersionProfile model = BinaryData.fromString("{\"id\":\"mdajv\",\"channelGroup\":\"sounqecanoaeu\"}") - .toObject(NodePoolVersionProfile.class); - Assertions.assertEquals("mdajv", model.id()); - Assertions.assertEquals("sounqecanoaeu", model.channelGroup()); + NodePoolVersionProfile model + = BinaryData.fromString("{\"id\":\"pngjcrcczsqpjhvm\",\"channelGroup\":\"jvnysounqe\"}") + .toObject(NodePoolVersionProfile.class); + Assertions.assertEquals("pngjcrcczsqpjhvm", model.id()); + Assertions.assertEquals("jvnysounqe", model.channelGroup()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - NodePoolVersionProfile model = new NodePoolVersionProfile().withId("mdajv").withChannelGroup("sounqecanoaeu"); + NodePoolVersionProfile model + = new NodePoolVersionProfile().withId("pngjcrcczsqpjhvm").withChannelGroup("jvnysounqe"); model = BinaryData.fromObject(model).toObject(NodePoolVersionProfile.class); - Assertions.assertEquals("mdajv", model.id()); - Assertions.assertEquals("sounqecanoaeu", model.channelGroup()); + Assertions.assertEquals("pngjcrcczsqpjhvm", model.id()); + Assertions.assertEquals("jvnysounqe", model.channelGroup()); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/OperationsListMockTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/OperationsListMockTests.java index e26b767a97186..1c6afbb516911 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/OperationsListMockTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/OperationsListMockTests.java @@ -21,7 +21,7 @@ public final class OperationsListMockTests { @Test public void testList() throws Exception { String responseStr - = "{\"value\":[{\"name\":\"odxun\",\"isDataAction\":true,\"display\":{\"provider\":\"mubyynt\",\"resource\":\"rbqtkoie\",\"operation\":\"eotg\",\"description\":\"l\"},\"origin\":\"user\",\"actionType\":\"Internal\"}]}"; + = "{\"value\":[{\"name\":\"lt\",\"isDataAction\":true,\"display\":{\"provider\":\"wsobqwcsdbn\",\"resource\":\"cf\",\"operation\":\"cqdpfuv\",\"description\":\"sbjjc\"},\"origin\":\"user\",\"actionType\":\"Internal\"}]}"; HttpClient httpClient = response -> Mono.just(new MockHttpResponse(response, 200, responseStr.getBytes(StandardCharsets.UTF_8))); diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/OperatorIdentityRolesTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/OperatorIdentityRolesTests.java index da2dc63a0a1f1..4e3e6d442d38a 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/OperatorIdentityRolesTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/OperatorIdentityRolesTests.java @@ -13,11 +13,11 @@ public final class OperatorIdentityRolesTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OperatorIdentityRoles model = BinaryData.fromString( - "{\"name\":\"hhszh\",\"required\":\"Always\",\"roleDefinitions\":[{\"name\":\"lvwiwubmwmbesl\",\"resourceId\":\"nkww\"},{\"name\":\"pp\",\"resourceId\":\"flcxoga\"},{\"name\":\"konzmnsik\",\"resourceId\":\"mkqzeqqkdltfzxmh\"},{\"name\":\"v\",\"resourceId\":\"gureodkwobdag\"}]}") + "{\"name\":\"agxsdszuemps\",\"required\":\"Always\",\"roleDefinitions\":[{\"name\":\"f\",\"resourceId\":\"beyvpnqicvinvkjj\"},{\"name\":\"dxrbuukzcle\",\"resourceId\":\"yhmlwpaztzp\"},{\"name\":\"fn\",\"resourceId\":\"ckw\"},{\"name\":\"fz\",\"resourceId\":\"whxxbuyqax\"}]}") .toObject(OperatorIdentityRoles.class); - Assertions.assertEquals("hhszh", model.name()); + Assertions.assertEquals("agxsdszuemps", model.name()); Assertions.assertEquals(OperatorIdentityRequired.ALWAYS, model.required()); - Assertions.assertEquals("lvwiwubmwmbesl", model.roleDefinitions().get(0).name()); - Assertions.assertEquals("nkww", model.roleDefinitions().get(0).resourceId()); + Assertions.assertEquals("f", model.roleDefinitions().get(0).name()); + Assertions.assertEquals("beyvpnqicvinvkjj", model.roleDefinitions().get(0).resourceId()); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/OperatorsAuthenticationProfileTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/OperatorsAuthenticationProfileTests.java index 8a22fa8abc96d..6a5458585773e 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/OperatorsAuthenticationProfileTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/OperatorsAuthenticationProfileTests.java @@ -15,12 +15,11 @@ public final class OperatorsAuthenticationProfileTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OperatorsAuthenticationProfile model = BinaryData.fromString( - "{\"userAssignedIdentities\":{\"controlPlaneOperators\":{\"zuhtymwisdkfthwx\":\"fidfvzw\",\"mijcmmxdcufufs\":\"nteiwaopv\",\"fycc\":\"pymzidnsezcxtbzs\"},\"dataPlaneOperators\":{\"jeiachboosfl\":\"ewmdw\",\"fqpte\":\"ro\",\"i\":\"hzzvypyq\",\"npvswjdkirso\":\"z\"},\"serviceManagedIdentity\":\"dqxhcrmnohjtckwh\"}}") + "{\"userAssignedIdentities\":{\"controlPlaneOperators\":{\"mwisdkfthwxmnt\":\"uht\",\"aop\":\"i\",\"jcmmxdcufufsrp\":\"km\",\"sgfyccsnew\":\"mzidnsezcxtb\"},\"dataPlaneOperators\":{\"oosflnr\":\"wzjeiach\",\"vypyqrimzinpv\":\"sfqpteehz\",\"rsoodqxhcrmnoh\":\"wjdk\"},\"serviceManagedIdentity\":\"t\"}}") .toObject(OperatorsAuthenticationProfile.class); - Assertions.assertEquals("fidfvzw", - model.userAssignedIdentities().controlPlaneOperators().get("zuhtymwisdkfthwx")); - Assertions.assertEquals("ewmdw", model.userAssignedIdentities().dataPlaneOperators().get("jeiachboosfl")); - Assertions.assertEquals("dqxhcrmnohjtckwh", model.userAssignedIdentities().serviceManagedIdentity()); + Assertions.assertEquals("uht", model.userAssignedIdentities().controlPlaneOperators().get("mwisdkfthwxmnt")); + Assertions.assertEquals("wzjeiach", model.userAssignedIdentities().dataPlaneOperators().get("oosflnr")); + Assertions.assertEquals("t", model.userAssignedIdentities().serviceManagedIdentity()); } @org.junit.jupiter.api.Test @@ -28,15 +27,14 @@ public void testSerialize() throws Exception { OperatorsAuthenticationProfile model = new OperatorsAuthenticationProfile().withUserAssignedIdentities(new UserAssignedIdentitiesProfile() .withControlPlaneOperators( - mapOf("zuhtymwisdkfthwx", "fidfvzw", "mijcmmxdcufufs", "nteiwaopv", "fycc", "pymzidnsezcxtbzs")) + mapOf("mwisdkfthwxmnt", "uht", "aop", "i", "jcmmxdcufufsrp", "km", "sgfyccsnew", "mzidnsezcxtb")) .withDataPlaneOperators( - mapOf("jeiachboosfl", "ewmdw", "fqpte", "ro", "i", "hzzvypyq", "npvswjdkirso", "z")) - .withServiceManagedIdentity("dqxhcrmnohjtckwh")); + mapOf("oosflnr", "wzjeiach", "vypyqrimzinpv", "sfqpteehz", "rsoodqxhcrmnoh", "wjdk")) + .withServiceManagedIdentity("t")); model = BinaryData.fromObject(model).toObject(OperatorsAuthenticationProfile.class); - Assertions.assertEquals("fidfvzw", - model.userAssignedIdentities().controlPlaneOperators().get("zuhtymwisdkfthwx")); - Assertions.assertEquals("ewmdw", model.userAssignedIdentities().dataPlaneOperators().get("jeiachboosfl")); - Assertions.assertEquals("dqxhcrmnohjtckwh", model.userAssignedIdentities().serviceManagedIdentity()); + Assertions.assertEquals("uht", model.userAssignedIdentities().controlPlaneOperators().get("mwisdkfthwxmnt")); + Assertions.assertEquals("wzjeiach", model.userAssignedIdentities().dataPlaneOperators().get("oosflnr")); + Assertions.assertEquals("t", model.userAssignedIdentities().serviceManagedIdentity()); } // Use "Map.of" if available diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/OsDiskProfileTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/OsDiskProfileTests.java index f8c3d9ec31b42..78e9e37383fb3 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/OsDiskProfileTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/OsDiskProfileTests.java @@ -14,24 +14,24 @@ public final class OsDiskProfileTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { OsDiskProfile model = BinaryData.fromString( - "{\"sizeGiB\":119879881,\"diskStorageAccountType\":\"StandardSSD_LRS\",\"encryptionSetId\":\"zyiuokk\",\"diskType\":\"Ephemeral\"}") + "{\"sizeGiB\":2105680522,\"diskStorageAccountType\":\"Premium_LRS\",\"encryptionSetId\":\"xodpuozmyzydagfu\",\"diskType\":\"Managed\"}") .toObject(OsDiskProfile.class); - Assertions.assertEquals(119879881, model.sizeGiB()); - Assertions.assertEquals(DiskStorageAccountType.STANDARD_SSD_LRS, model.diskStorageAccountType()); - Assertions.assertEquals("zyiuokk", model.encryptionSetId()); - Assertions.assertEquals(OsDiskType.EPHEMERAL, model.diskType()); + Assertions.assertEquals(2105680522, model.sizeGiB()); + Assertions.assertEquals(DiskStorageAccountType.PREMIUM_LRS, model.diskStorageAccountType()); + Assertions.assertEquals("xodpuozmyzydagfu", model.encryptionSetId()); + Assertions.assertEquals(OsDiskType.MANAGED, model.diskType()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - OsDiskProfile model = new OsDiskProfile().withSizeGiB(119879881) - .withDiskStorageAccountType(DiskStorageAccountType.STANDARD_SSD_LRS) - .withEncryptionSetId("zyiuokk") - .withDiskType(OsDiskType.EPHEMERAL); + OsDiskProfile model = new OsDiskProfile().withSizeGiB(2105680522) + .withDiskStorageAccountType(DiskStorageAccountType.PREMIUM_LRS) + .withEncryptionSetId("xodpuozmyzydagfu") + .withDiskType(OsDiskType.MANAGED); model = BinaryData.fromObject(model).toObject(OsDiskProfile.class); - Assertions.assertEquals(119879881, model.sizeGiB()); - Assertions.assertEquals(DiskStorageAccountType.STANDARD_SSD_LRS, model.diskStorageAccountType()); - Assertions.assertEquals("zyiuokk", model.encryptionSetId()); - Assertions.assertEquals(OsDiskType.EPHEMERAL, model.diskType()); + Assertions.assertEquals(2105680522, model.sizeGiB()); + Assertions.assertEquals(DiskStorageAccountType.PREMIUM_LRS, model.diskStorageAccountType()); + Assertions.assertEquals("xodpuozmyzydagfu", model.encryptionSetId()); + Assertions.assertEquals(OsDiskType.MANAGED, model.diskType()); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/PlatformProfileTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/PlatformProfileTests.java index 6fd9e03aa7000..d96ddf22621a8 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/PlatformProfileTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/PlatformProfileTests.java @@ -5,6 +5,7 @@ package com.azure.resourcemanager.redhatopenshifthcp.generated; import com.azure.core.util.BinaryData; +import com.azure.resourcemanager.redhatopenshifthcp.models.ContainerRegistryProfile; import com.azure.resourcemanager.redhatopenshifthcp.models.OperatorsAuthenticationProfile; import com.azure.resourcemanager.redhatopenshifthcp.models.OutboundType; import com.azure.resourcemanager.redhatopenshifthcp.models.PlatformProfile; @@ -17,7 +18,7 @@ public final class PlatformProfileTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { PlatformProfile model = BinaryData.fromString( - "{\"managedResourceGroup\":\"svqwhbmdgbbjfd\",\"subnetId\":\"gmbmbexppbh\",\"vnetIntegrationSubnetId\":\"q\",\"outboundType\":\"LoadBalancer\",\"networkSecurityGroupId\":\"lfp\",\"operatorsAuthentication\":{\"userAssignedIdentities\":{\"controlPlaneOperators\":{\"lgbquxig\":\"s\",\"rkujy\":\"yjgzjaoyfhrtxiln\",\"rlyxwjkcprbnw\":\"vlejuvfqa\"},\"dataPlaneOperators\":{\"ysszdnrujqguh\":\"gjvtbv\",\"prwzwbnguitnwui\":\"uouq\"},\"serviceManagedIdentity\":\"gazxuf\"}},\"issuerUrl\":\"zuckyfi\"}") + "{\"managedResourceGroup\":\"svqwhbmdgbbjfd\",\"subnetId\":\"gmbmbexppbh\",\"vnetIntegrationSubnetId\":\"q\",\"outboundType\":\"LoadBalancer\",\"networkSecurityGroupId\":\"lfp\",\"operatorsAuthentication\":{\"userAssignedIdentities\":{\"controlPlaneOperators\":{\"lgbquxig\":\"s\",\"rkujy\":\"yjgzjaoyfhrtxiln\",\"rlyxwjkcprbnw\":\"vlejuvfqa\"},\"dataPlaneOperators\":{\"ysszdnrujqguh\":\"gjvtbv\",\"prwzwbnguitnwui\":\"uouq\"},\"serviceManagedIdentity\":\"gazxuf\"}},\"containerRegistry\":{\"managedIdentity\":\"ckyfih\"},\"issuerUrl\":\"fidfvzw\"}") .toObject(PlatformProfile.class); Assertions.assertEquals("svqwhbmdgbbjfd", model.managedResourceGroup()); Assertions.assertEquals("gmbmbexppbh", model.subnetId()); @@ -30,6 +31,7 @@ public void testDeserialize() throws Exception { model.operatorsAuthentication().userAssignedIdentities().dataPlaneOperators().get("ysszdnrujqguh")); Assertions.assertEquals("gazxuf", model.operatorsAuthentication().userAssignedIdentities().serviceManagedIdentity()); + Assertions.assertEquals("ckyfih", model.containerRegistry().managedIdentity()); } @org.junit.jupiter.api.Test @@ -44,7 +46,8 @@ public void testSerialize() throws Exception { .withControlPlaneOperators( mapOf("lgbquxig", "s", "rkujy", "yjgzjaoyfhrtxiln", "rlyxwjkcprbnw", "vlejuvfqa")) .withDataPlaneOperators(mapOf("ysszdnrujqguh", "gjvtbv", "prwzwbnguitnwui", "uouq")) - .withServiceManagedIdentity("gazxuf"))); + .withServiceManagedIdentity("gazxuf"))) + .withContainerRegistry(new ContainerRegistryProfile().withManagedIdentity("ckyfih")); model = BinaryData.fromObject(model).toObject(PlatformProfile.class); Assertions.assertEquals("svqwhbmdgbbjfd", model.managedResourceGroup()); Assertions.assertEquals("gmbmbexppbh", model.subnetId()); @@ -57,6 +60,7 @@ public void testSerialize() throws Exception { model.operatorsAuthentication().userAssignedIdentities().dataPlaneOperators().get("ysszdnrujqguh")); Assertions.assertEquals("gazxuf", model.operatorsAuthentication().userAssignedIdentities().serviceManagedIdentity()); + Assertions.assertEquals("ckyfih", model.containerRegistry().managedIdentity()); } // Use "Map.of" if available diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ResourceStatusTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ResourceStatusTests.java deleted file mode 100644 index ce1e4eb36bcd3..0000000000000 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/ResourceStatusTests.java +++ /dev/null @@ -1,17 +0,0 @@ -// Copyright (c) Microsoft Corporation. All rights reserved. -// Licensed under the MIT License. -// Code generated by Microsoft (R) TypeSpec Code Generator. - -package com.azure.resourcemanager.redhatopenshifthcp.generated; - -import com.azure.core.util.BinaryData; -import com.azure.resourcemanager.redhatopenshifthcp.models.ResourceStatus; - -public final class ResourceStatusTests { - @org.junit.jupiter.api.Test - public void testDeserialize() throws Exception { - ResourceStatus model = BinaryData.fromString( - "{\"conditions\":[{\"type\":\"Degraded\",\"status\":\"False\",\"lastTransitionTime\":\"2021-11-04T00:28:23Z\",\"reason\":\"xibqeojnx\",\"message\":\"bzv\"},{\"type\":\"Degraded\",\"status\":\"False\",\"lastTransitionTime\":\"2021-01-10T12:02:15Z\",\"reason\":\"wndeicbtwnp\",\"message\":\"aoqvuh\"},{\"type\":\"Progressing\",\"status\":\"Unknown\",\"lastTransitionTime\":\"2021-10-26T22:45:48Z\",\"reason\":\"fcyddg\",\"message\":\"mjthjqkwp\"},{\"type\":\"Available\",\"status\":\"False\",\"lastTransitionTime\":\"2021-07-04T22:32:14Z\",\"reason\":\"xmqci\",\"message\":\"q\"}]}") - .toObject(ResourceStatus.class); - } -} diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/RoleDefinitionTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/RoleDefinitionTests.java index f33f3d6492bc7..c98a50fabd6d6 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/RoleDefinitionTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/RoleDefinitionTests.java @@ -11,9 +11,9 @@ public final class RoleDefinitionTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - RoleDefinition model = BinaryData.fromString("{\"name\":\"tibqdxbxwakb\",\"resourceId\":\"gqxndlkzgxhuripl\"}") - .toObject(RoleDefinition.class); - Assertions.assertEquals("tibqdxbxwakb", model.name()); - Assertions.assertEquals("gqxndlkzgxhuripl", model.resourceId()); + RoleDefinition model + = BinaryData.fromString("{\"name\":\"feqztppriol\",\"resourceId\":\"or\"}").toObject(RoleDefinition.class); + Assertions.assertEquals("feqztppriol", model.name()); + Assertions.assertEquals("or", model.resourceId()); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/TokenClaimMappingsProfileTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/TokenClaimMappingsProfileTests.java index 1d0809a916ed7..f4377ab8349f6 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/TokenClaimMappingsProfileTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/TokenClaimMappingsProfileTests.java @@ -15,27 +15,27 @@ public final class TokenClaimMappingsProfileTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { TokenClaimMappingsProfile model = BinaryData.fromString( - "{\"username\":{\"claim\":\"jdhtldwkyzxu\",\"prefix\":\"kn\",\"prefixPolicy\":\"Prefix\"},\"groups\":{\"claim\":\"wsvlxotogtwrupqs\",\"prefix\":\"nmic\"}}") + "{\"username\":{\"claim\":\"wfudwpzntxhdzhl\",\"prefix\":\"jbhckfrlhr\",\"prefixPolicy\":\"Prefix\"},\"groups\":{\"claim\":\"yvpycanuzbpzk\",\"prefix\":\"kuwbcrnwb\"}}") .toObject(TokenClaimMappingsProfile.class); - Assertions.assertEquals("jdhtldwkyzxu", model.username().claim()); - Assertions.assertEquals("kn", model.username().prefix()); + Assertions.assertEquals("wfudwpzntxhdzhl", model.username().claim()); + Assertions.assertEquals("jbhckfrlhr", model.username().prefix()); Assertions.assertEquals(UsernameClaimPrefixPolicy.PREFIX, model.username().prefixPolicy()); - Assertions.assertEquals("wsvlxotogtwrupqs", model.groups().claim()); - Assertions.assertEquals("nmic", model.groups().prefix()); + Assertions.assertEquals("yvpycanuzbpzk", model.groups().claim()); + Assertions.assertEquals("kuwbcrnwb", model.groups().prefix()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { TokenClaimMappingsProfile model = new TokenClaimMappingsProfile() - .withUsername(new UsernameClaimProfile().withClaim("jdhtldwkyzxu") - .withPrefix("kn") + .withUsername(new UsernameClaimProfile().withClaim("wfudwpzntxhdzhl") + .withPrefix("jbhckfrlhr") .withPrefixPolicy(UsernameClaimPrefixPolicy.PREFIX)) - .withGroups(new GroupClaimProfile().withClaim("wsvlxotogtwrupqs").withPrefix("nmic")); + .withGroups(new GroupClaimProfile().withClaim("yvpycanuzbpzk").withPrefix("kuwbcrnwb")); model = BinaryData.fromObject(model).toObject(TokenClaimMappingsProfile.class); - Assertions.assertEquals("jdhtldwkyzxu", model.username().claim()); - Assertions.assertEquals("kn", model.username().prefix()); + Assertions.assertEquals("wfudwpzntxhdzhl", model.username().claim()); + Assertions.assertEquals("jbhckfrlhr", model.username().prefix()); Assertions.assertEquals(UsernameClaimPrefixPolicy.PREFIX, model.username().prefixPolicy()); - Assertions.assertEquals("wsvlxotogtwrupqs", model.groups().claim()); - Assertions.assertEquals("nmic", model.groups().prefix()); + Assertions.assertEquals("yvpycanuzbpzk", model.groups().claim()); + Assertions.assertEquals("kuwbcrnwb", model.groups().prefix()); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/TokenClaimValidationRuleTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/TokenClaimValidationRuleTests.java index 5f8a8f4858659..62b60b4d5a73c 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/TokenClaimValidationRuleTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/TokenClaimValidationRuleTests.java @@ -13,22 +13,22 @@ public final class TokenClaimValidationRuleTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - TokenClaimValidationRule model = BinaryData.fromString( - "{\"type\":\"RequiredClaim\",\"requiredClaim\":{\"claim\":\"oxuscrpabgyepsbj\",\"requiredValue\":\"azqugxywpmueefj\"}}") + TokenClaimValidationRule model = BinaryData + .fromString( + "{\"type\":\"RequiredClaim\",\"requiredClaim\":{\"claim\":\"ahaquh\",\"requiredValue\":\"dhmdua\"}}") .toObject(TokenClaimValidationRule.class); Assertions.assertEquals(TokenValidationRuleType.REQUIRED_CLAIM, model.type()); - Assertions.assertEquals("oxuscrpabgyepsbj", model.requiredClaim().claim()); - Assertions.assertEquals("azqugxywpmueefj", model.requiredClaim().requiredValue()); + Assertions.assertEquals("ahaquh", model.requiredClaim().claim()); + Assertions.assertEquals("dhmdua", model.requiredClaim().requiredValue()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { TokenClaimValidationRule model = new TokenClaimValidationRule().withType(TokenValidationRuleType.REQUIRED_CLAIM) - .withRequiredClaim( - new TokenRequiredClaim().withClaim("oxuscrpabgyepsbj").withRequiredValue("azqugxywpmueefj")); + .withRequiredClaim(new TokenRequiredClaim().withClaim("ahaquh").withRequiredValue("dhmdua")); model = BinaryData.fromObject(model).toObject(TokenClaimValidationRule.class); Assertions.assertEquals(TokenValidationRuleType.REQUIRED_CLAIM, model.type()); - Assertions.assertEquals("oxuscrpabgyepsbj", model.requiredClaim().claim()); - Assertions.assertEquals("azqugxywpmueefj", model.requiredClaim().requiredValue()); + Assertions.assertEquals("ahaquh", model.requiredClaim().claim()); + Assertions.assertEquals("dhmdua", model.requiredClaim().requiredValue()); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/TokenIssuerProfileTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/TokenIssuerProfileTests.java index b628d2b086f01..bebc0652efa0e 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/TokenIssuerProfileTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/TokenIssuerProfileTests.java @@ -12,22 +12,23 @@ public final class TokenIssuerProfileTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - TokenIssuerProfile model = BinaryData.fromString( - "{\"url\":\"uedck\",\"audiences\":[\"wbiexzfey\",\"eaxib\",\"ujwb\",\"qwalmuzyoxaepd\"],\"ca\":\"jancu\"}") + TokenIssuerProfile model = BinaryData + .fromString( + "{\"url\":\"kyzxuutk\",\"audiences\":[\"ws\",\"wsvlxotogtwrupqs\",\"vnm\"],\"ca\":\"ykvceoveil\"}") .toObject(TokenIssuerProfile.class); - Assertions.assertEquals("uedck", model.url()); - Assertions.assertEquals("wbiexzfey", model.audiences().get(0)); - Assertions.assertEquals("jancu", model.ca()); + Assertions.assertEquals("kyzxuutk", model.url()); + Assertions.assertEquals("ws", model.audiences().get(0)); + Assertions.assertEquals("ykvceoveil", model.ca()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - TokenIssuerProfile model = new TokenIssuerProfile().withUrl("uedck") - .withAudiences(Arrays.asList("wbiexzfey", "eaxib", "ujwb", "qwalmuzyoxaepd")) - .withCa("jancu"); + TokenIssuerProfile model = new TokenIssuerProfile().withUrl("kyzxuutk") + .withAudiences(Arrays.asList("ws", "wsvlxotogtwrupqs", "vnm")) + .withCa("ykvceoveil"); model = BinaryData.fromObject(model).toObject(TokenIssuerProfile.class); - Assertions.assertEquals("uedck", model.url()); - Assertions.assertEquals("wbiexzfey", model.audiences().get(0)); - Assertions.assertEquals("jancu", model.ca()); + Assertions.assertEquals("kyzxuutk", model.url()); + Assertions.assertEquals("ws", model.audiences().get(0)); + Assertions.assertEquals("ykvceoveil", model.ca()); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/TokenRequiredClaimTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/TokenRequiredClaimTests.java index 4b250b0ec04b9..cd18e86f73a4b 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/TokenRequiredClaimTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/TokenRequiredClaimTests.java @@ -11,17 +11,17 @@ public final class TokenRequiredClaimTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - TokenRequiredClaim model = BinaryData.fromString("{\"claim\":\"wfqkquj\",\"requiredValue\":\"dsuyonobgla\"}") + TokenRequiredClaim model = BinaryData.fromString("{\"claim\":\"aex\",\"requiredValue\":\"pvfadmwsrcr\"}") .toObject(TokenRequiredClaim.class); - Assertions.assertEquals("wfqkquj", model.claim()); - Assertions.assertEquals("dsuyonobgla", model.requiredValue()); + Assertions.assertEquals("aex", model.claim()); + Assertions.assertEquals("pvfadmwsrcr", model.requiredValue()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - TokenRequiredClaim model = new TokenRequiredClaim().withClaim("wfqkquj").withRequiredValue("dsuyonobgla"); + TokenRequiredClaim model = new TokenRequiredClaim().withClaim("aex").withRequiredValue("pvfadmwsrcr"); model = BinaryData.fromObject(model).toObject(TokenRequiredClaim.class); - Assertions.assertEquals("wfqkquj", model.claim()); - Assertions.assertEquals("dsuyonobgla", model.requiredValue()); + Assertions.assertEquals("aex", model.claim()); + Assertions.assertEquals("pvfadmwsrcr", model.requiredValue()); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/UserAssignedIdentitiesProfileTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/UserAssignedIdentitiesProfileTests.java index 0b7991b8bbe0b..4beda13adf73c 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/UserAssignedIdentitiesProfileTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/UserAssignedIdentitiesProfileTests.java @@ -14,24 +14,23 @@ public final class UserAssignedIdentitiesProfileTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { UserAssignedIdentitiesProfile model = BinaryData.fromString( - "{\"controlPlaneOperators\":{\"bznorcjxvsnby\":\"oifiyipjxsqwpgr\",\"cyshurzafbljjgp\":\"qabnmoc\",\"bqidtqaj\":\"toqcjmklja\",\"khbzhfepgzg\":\"yulpkudjkr\"},\"dataPlaneOperators\":{\"ierhhbcsglummaj\":\"xzlocxscp\"},\"serviceManagedIdentity\":\"j\"}") + "{\"controlPlaneOperators\":{\"xsqwpgrjbznorc\":\"whdsoifiyip\"},\"dataPlaneOperators\":{\"xqabnmocpcysh\":\"vsnb\"},\"serviceManagedIdentity\":\"rzafbljjgpbtoqcj\"}") .toObject(UserAssignedIdentitiesProfile.class); - Assertions.assertEquals("oifiyipjxsqwpgr", model.controlPlaneOperators().get("bznorcjxvsnby")); - Assertions.assertEquals("xzlocxscp", model.dataPlaneOperators().get("ierhhbcsglummaj")); - Assertions.assertEquals("j", model.serviceManagedIdentity()); + Assertions.assertEquals("whdsoifiyip", model.controlPlaneOperators().get("xsqwpgrjbznorc")); + Assertions.assertEquals("vsnb", model.dataPlaneOperators().get("xqabnmocpcysh")); + Assertions.assertEquals("rzafbljjgpbtoqcj", model.serviceManagedIdentity()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - UserAssignedIdentitiesProfile model = new UserAssignedIdentitiesProfile() - .withControlPlaneOperators(mapOf("bznorcjxvsnby", "oifiyipjxsqwpgr", "cyshurzafbljjgp", "qabnmoc", - "bqidtqaj", "toqcjmklja", "khbzhfepgzg", "yulpkudjkr")) - .withDataPlaneOperators(mapOf("ierhhbcsglummaj", "xzlocxscp")) - .withServiceManagedIdentity("j"); + UserAssignedIdentitiesProfile model + = new UserAssignedIdentitiesProfile().withControlPlaneOperators(mapOf("xsqwpgrjbznorc", "whdsoifiyip")) + .withDataPlaneOperators(mapOf("xqabnmocpcysh", "vsnb")) + .withServiceManagedIdentity("rzafbljjgpbtoqcj"); model = BinaryData.fromObject(model).toObject(UserAssignedIdentitiesProfile.class); - Assertions.assertEquals("oifiyipjxsqwpgr", model.controlPlaneOperators().get("bznorcjxvsnby")); - Assertions.assertEquals("xzlocxscp", model.dataPlaneOperators().get("ierhhbcsglummaj")); - Assertions.assertEquals("j", model.serviceManagedIdentity()); + Assertions.assertEquals("whdsoifiyip", model.controlPlaneOperators().get("xsqwpgrjbznorc")); + Assertions.assertEquals("vsnb", model.dataPlaneOperators().get("xqabnmocpcysh")); + Assertions.assertEquals("rzafbljjgpbtoqcj", model.serviceManagedIdentity()); } // Use "Map.of" if available diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/UserAssignedIdentityTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/UserAssignedIdentityTests.java index 87ce1c5f1d729..5a6a0d1d477cf 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/UserAssignedIdentityTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/UserAssignedIdentityTests.java @@ -10,9 +10,8 @@ public final class UserAssignedIdentityTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - UserAssignedIdentity model - = BinaryData.fromString("{\"principalId\":\"kanyktzlcuiywg\",\"clientId\":\"wgndrvynhzgpp\"}") - .toObject(UserAssignedIdentity.class); + UserAssignedIdentity model = BinaryData.fromString("{\"principalId\":\"dqmidtt\",\"clientId\":\"rvqdra\"}") + .toObject(UserAssignedIdentity.class); } @org.junit.jupiter.api.Test diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/UsernameClaimProfileTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/UsernameClaimProfileTests.java index dfb7ef20fff39..d5abfeab62c97 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/UsernameClaimProfileTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/UsernameClaimProfileTests.java @@ -12,22 +12,22 @@ public final class UsernameClaimProfileTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - UsernameClaimProfile model = BinaryData - .fromString("{\"claim\":\"kvceoveilovnotyf\",\"prefix\":\"cnjbkcnxdhbt\",\"prefixPolicy\":\"NoPrefix\"}") - .toObject(UsernameClaimProfile.class); - Assertions.assertEquals("kvceoveilovnotyf", model.claim()); - Assertions.assertEquals("cnjbkcnxdhbt", model.prefix()); + UsernameClaimProfile model + = BinaryData.fromString("{\"claim\":\"ehhseyvjusrts\",\"prefix\":\"spkdee\",\"prefixPolicy\":\"NoPrefix\"}") + .toObject(UsernameClaimProfile.class); + Assertions.assertEquals("ehhseyvjusrts", model.claim()); + Assertions.assertEquals("spkdee", model.prefix()); Assertions.assertEquals(UsernameClaimPrefixPolicy.NO_PREFIX, model.prefixPolicy()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - UsernameClaimProfile model = new UsernameClaimProfile().withClaim("kvceoveilovnotyf") - .withPrefix("cnjbkcnxdhbt") + UsernameClaimProfile model = new UsernameClaimProfile().withClaim("ehhseyvjusrts") + .withPrefix("spkdee") .withPrefixPolicy(UsernameClaimPrefixPolicy.NO_PREFIX); model = BinaryData.fromObject(model).toObject(UsernameClaimProfile.class); - Assertions.assertEquals("kvceoveilovnotyf", model.claim()); - Assertions.assertEquals("cnjbkcnxdhbt", model.prefix()); + Assertions.assertEquals("ehhseyvjusrts", model.claim()); + Assertions.assertEquals("spkdee", model.prefix()); Assertions.assertEquals(UsernameClaimPrefixPolicy.NO_PREFIX, model.prefixPolicy()); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/VersionProfileTests.java b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/VersionProfileTests.java index 50b31c1247938..14317e0589f2a 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/VersionProfileTests.java +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/src/test/java/com/azure/resourcemanager/redhatopenshifthcp/generated/VersionProfileTests.java @@ -11,17 +11,17 @@ public final class VersionProfileTests { @org.junit.jupiter.api.Test public void testDeserialize() throws Exception { - VersionProfile model - = BinaryData.fromString("{\"id\":\"ypl\",\"channelGroup\":\"kbasyypn\"}").toObject(VersionProfile.class); - Assertions.assertEquals("ypl", model.id()); - Assertions.assertEquals("kbasyypn", model.channelGroup()); + VersionProfile model = BinaryData.fromString("{\"id\":\"ukjfkgiawxklr\",\"channelGroup\":\"lwckbasyypnddhs\"}") + .toObject(VersionProfile.class); + Assertions.assertEquals("ukjfkgiawxklr", model.id()); + Assertions.assertEquals("lwckbasyypnddhs", model.channelGroup()); } @org.junit.jupiter.api.Test public void testSerialize() throws Exception { - VersionProfile model = new VersionProfile().withId("ypl").withChannelGroup("kbasyypn"); + VersionProfile model = new VersionProfile().withId("ukjfkgiawxklr").withChannelGroup("lwckbasyypnddhs"); model = BinaryData.fromObject(model).toObject(VersionProfile.class); - Assertions.assertEquals("ypl", model.id()); - Assertions.assertEquals("kbasyypn", model.channelGroup()); + Assertions.assertEquals("ukjfkgiawxklr", model.id()); + Assertions.assertEquals("lwckbasyypnddhs", model.channelGroup()); } } diff --git a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/tsp-location.yaml b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/tsp-location.yaml index daa5662dd5983..e00968b8e8a77 100644 --- a/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/tsp-location.yaml +++ b/sdk/redhatopenshifthcp/azure-resourcemanager-redhatopenshifthcp/tsp-location.yaml @@ -1,4 +1,4 @@ directory: specification/redhatopenshift/resource-manager/Microsoft.RedHatOpenShift/hcpopenshiftclusters -commit: de0093f36a71cd80110b11aa06cdd28ca2e28e1c +commit: 322d99debcab19ffe9f41bfbd44631b9ba0de3b3 repo: Azure/azure-rest-api-specs additionalDirectories: From fd4a97ed084a2ed2ecd567e8e99ab70044ba57d2 Mon Sep 17 00:00:00 2001 From: browndav-msft Date: Thu, 22 Oct 2026 12:01:36 -0400 Subject: [PATCH 22/22] [Storage] Fix storage service-version gates for all-version tests (#50294) * Fix storage service-version gates for all-version tests The all-versions matrix configures AZURE_LIVE_TEST_SERVICE_VERSION using enum names such as V2021_06_08, while @RequiredServiceVersion uses wire values. For example, QueueServiceAsyncApiTests requires "2026-02-06". The gate compared both values using Enum.toString(), so "2026-02-06" was unresolved and returned ordinal -1. As a result, the 2026-only test ran against the 2021 service version instead of being skipped. Resolve enum names and wire values explicitly, and reject unknown versions rather than failing open. * add skips when version does not exist with warnings for skips when a service version is not found * fails for unknown service versions, defaults to latest when version not provided --- .../RequiredServiceVersionExtension.java | 85 +++++++++++----- .../RequiredServiceVersionExtensionTests.java | 96 +++++++++++++++++++ 2 files changed, 156 insertions(+), 25 deletions(-) create mode 100644 sdk/storage/azure-storage-common/src/test/java/com/azure/storage/common/test/shared/extensions/RequiredServiceVersionExtensionTests.java diff --git a/sdk/storage/azure-storage-common/src/test-shared/java/com/azure/storage/common/test/shared/extensions/RequiredServiceVersionExtension.java b/sdk/storage/azure-storage-common/src/test-shared/java/com/azure/storage/common/test/shared/extensions/RequiredServiceVersionExtension.java index 4b0384c1665f7..989d128693a55 100644 --- a/sdk/storage/azure-storage-common/src/test-shared/java/com/azure/storage/common/test/shared/extensions/RequiredServiceVersionExtension.java +++ b/sdk/storage/azure-storage-common/src/test-shared/java/com/azure/storage/common/test/shared/extensions/RequiredServiceVersionExtension.java @@ -11,7 +11,6 @@ import java.lang.reflect.InvocationTargetException; import java.util.Map; -import java.util.Objects; import java.util.concurrent.ConcurrentHashMap; import static org.junit.platform.commons.util.AnnotationUtils.findAnnotation; @@ -25,6 +24,27 @@ public class RequiredServiceVersionExtension implements ExecutionCondition { private static final Map>, ServiceVersion> LATEST_SERVICE_VERSIONS = new ConcurrentHashMap<>(); + static ConditionEvaluationResult evaluateServiceVersion( + Class> targetEnumClass, String minServiceVersion, + String configuredServiceVersion) { + ServiceVersion[] serviceVersions = getServiceVersions(targetEnumClass); + int minOrdinal = getRequiredServiceVersionOrdinal(serviceVersions, minServiceVersion); + + if (configuredServiceVersion == null) { + // Fall back to "latest" service version if environment variable is not set. + configuredServiceVersion = getLatestServiceVersion(targetEnumClass).getVersion(); + } + + int configuredOrdinal = getConfiguredServiceVersionOrdinal(serviceVersions, configuredServiceVersion, + targetEnumClass); + + return configuredOrdinal < minOrdinal + ? ConditionEvaluationResult.disabled( + String.format("Test requires minimum service version '%s'.", minServiceVersion)) + : ConditionEvaluationResult.enabled( + String.format("Configured service version meets minimum version '%s'.", minServiceVersion)); + } + @Override public ConditionEvaluationResult evaluateExecutionCondition(ExtensionContext context) { // Check for the RequiredServiceVersion annotation on the test method. @@ -36,28 +56,9 @@ public ConditionEvaluationResult evaluateExecutionCondition(ExtensionContext con return ConditionEvaluationResult.enabled("No service version required"); } - if (shouldSkip(requiredServiceVersion.clazz(), requiredServiceVersion.min())) { - return ConditionEvaluationResult.disabled("Test ignored to run with " + requiredServiceVersion.min() - + " service version"); - } else { - return ConditionEvaluationResult.enabled("Test enabled to run with " + requiredServiceVersion.min() - + " service version"); - } - } - - private static boolean shouldSkip(Class> targetEnumClass, - String minServiceVersion) { - ServiceVersion[] serviceVersions = getServiceVersions(targetEnumClass); - String environmentServiceVersion = TestEnvironment.getInstance().getServiceVersion(); - if (environmentServiceVersion == null) { - // Fall back to "latest" service version if environment variable is not set. - environmentServiceVersion = getLatestServiceVersion(targetEnumClass).toString(); - } - - int minOrdinal = getOrdinal(serviceVersions, minServiceVersion); - int environmentOrdinal = getOrdinal(serviceVersions, environmentServiceVersion); - - return environmentOrdinal < minOrdinal; + String configuredServiceVersion = TestEnvironment.getInstance().getServiceVersion(); + return evaluateServiceVersion(requiredServiceVersion.clazz(), requiredServiceVersion.min(), + configuredServiceVersion); } private static ServiceVersion[] getServiceVersions(Class> clazz) { @@ -74,9 +75,43 @@ private static ServiceVersion getLatestServiceVersion(Class> targetEnumClass) { + int ordinal = findServiceVersionOrdinal(serviceVersions, target); + if (ordinal == -1) { + throw new IllegalArgumentException(String.format( + "AZURE_LIVE_TEST_SERVICE_VERSION '%s' is not supported by %s.", target, + targetEnumClass.getSimpleName())); + } + return ordinal; + } + + /* + * Resolves either a service wire value or enum name, returning -1 when the version is absent. + */ + private static int findServiceVersionOrdinal(ServiceVersion[] serviceVersions, String target) { for (int i = 0; i < serviceVersions.length; i++) { - if (Objects.equals(String.valueOf(serviceVersions[i]), target)) { + ServiceVersion serviceVersion = serviceVersions[i]; + Enum serviceVersionEnum = (Enum) serviceVersion; + + if (target.equals(serviceVersion.getVersion()) || target.equals(serviceVersionEnum.name())) { return i; } } diff --git a/sdk/storage/azure-storage-common/src/test/java/com/azure/storage/common/test/shared/extensions/RequiredServiceVersionExtensionTests.java b/sdk/storage/azure-storage-common/src/test/java/com/azure/storage/common/test/shared/extensions/RequiredServiceVersionExtensionTests.java new file mode 100644 index 0000000000000..47af181128027 --- /dev/null +++ b/sdk/storage/azure-storage-common/src/test/java/com/azure/storage/common/test/shared/extensions/RequiredServiceVersionExtensionTests.java @@ -0,0 +1,96 @@ +// Copyright (c) Microsoft Corporation. All rights reserved. +// Licensed under the MIT License. + +package com.azure.storage.common.test.shared.extensions; + +import com.azure.core.util.ServiceVersion; +import org.junit.jupiter.api.Test; +import org.junit.jupiter.api.extension.ConditionEvaluationResult; +import org.junit.jupiter.params.ParameterizedTest; +import org.junit.jupiter.params.provider.NullSource; +import org.junit.jupiter.params.provider.ValueSource; + +import static com.azure.storage.common.test.shared.extensions.RequiredServiceVersionExtension.evaluateServiceVersion; +import static org.junit.jupiter.api.Assertions.assertEquals; +import static org.junit.jupiter.api.Assertions.assertFalse; +import static org.junit.jupiter.api.Assertions.assertThrows; +import static org.junit.jupiter.api.Assertions.assertTrue; + +public class RequiredServiceVersionExtensionTests { + private static final String UNKNOWN_SERVICE_VERSION = "0001-01-01"; + + @Test + public void comparesRequiredWireValueToConfiguredEnumNameInServiceVersionOrder() { + ConditionEvaluationResult olderVersion + = evaluate(TestServiceVersion.V2026_08_06.getVersion(), TestServiceVersion.V2026_06_06.name()); + + assertTrue(olderVersion.isDisabled()); + assertEquals("Test requires minimum service version '2026-08-06'.", + olderVersion.getReason().orElseThrow(AssertionError::new)); + assertFalse( + evaluate(TestServiceVersion.V2026_08_06.getVersion(), TestServiceVersion.V2026_08_06.name()).isDisabled()); + assertFalse( + evaluate(TestServiceVersion.V2026_08_06.getVersion(), TestServiceVersion.V2026_10_06.name()).isDisabled()); + } + + @Test + public void resolvesEnumNamesAndWireValues() { + assertFalse( + evaluate(TestServiceVersion.V2026_08_06.name(), TestServiceVersion.V2026_10_06.name()).isDisabled()); + assertFalse(evaluate(TestServiceVersion.V2026_08_06.getVersion(), TestServiceVersion.V2026_10_06.getVersion()) + .isDisabled()); + } + + @Test + public void defaultsToLatestWireValue() { + ConditionEvaluationResult result + = evaluateServiceVersion(TestServiceVersion.class, TestServiceVersion.V2026_10_06.getVersion(), null); + + assertFalse(result.isDisabled()); + } + + @ParameterizedTest + @ValueSource(strings = { "V2027_03_07", "2027-03-07", "not-a-service-version" }) + public void rejectsUnknownConfiguredVersion(String unknownServiceVersion) { + IllegalArgumentException exception + = assertThrows(IllegalArgumentException.class, () -> evaluateServiceVersion(TestServiceVersion.class, + TestServiceVersion.V2026_08_06.getVersion(), unknownServiceVersion)); + + assertEquals("AZURE_LIVE_TEST_SERVICE_VERSION '" + unknownServiceVersion + "' is not supported by " + + TestServiceVersion.class.getSimpleName() + ".", exception.getMessage()); + } + + @ParameterizedTest + @NullSource + @ValueSource(strings = { "V2026_10_06", "not-a-service-version" }) + public void rejectsUnknownMinimumVersionBeforeConfiguredVersion(String configuredServiceVersion) { + IllegalArgumentException exception = assertThrows(IllegalArgumentException.class, + () -> evaluateServiceVersion(TestServiceVersion.class, UNKNOWN_SERVICE_VERSION, configuredServiceVersion)); + + assertEquals("Minimum service version '" + UNKNOWN_SERVICE_VERSION + "' is not supported.", + exception.getMessage()); + } + + private static ConditionEvaluationResult evaluate(String minimumServiceVersion, String configuredServiceVersion) { + return evaluateServiceVersion(TestServiceVersion.class, minimumServiceVersion, configuredServiceVersion); + } + + enum TestServiceVersion implements ServiceVersion { + V2026_06_06("2026-06-06"), V2026_08_06("2026-08-06"), V2026_10_06("2026-10-06"); + + private final String version; + + TestServiceVersion(String version) { + this.version = version; + } + + @Override + public String getVersion() { + return version; + } + + public static TestServiceVersion getLatest() { + return V2026_10_06; + } + } +}